diff --git a/CHANGELOG.md b/CHANGELOG.md
index 7e56481b814..f4c51b5211f 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,16 @@
+Release v1.43.30 (2022-03-31)
+===
+
+### Service Client Updates
+* `service/auditmanager`: Updates service documentation
+* `service/cloudcontrol`: Updates service API and documentation
+* `service/databrew`: Updates service API and documentation
+* `service/grafana`: Updates service API and documentation
+* `service/pinpoint-sms-voice-v2`: Adds new service
+* `service/route53-recovery-cluster`: Updates service API, documentation, and paginators
+* `service/workspaces`: Updates service API and documentation
+ * Added APIs that allow you to customize the logo, login message, and help links in the WorkSpaces client login page. To learn more, visit https://docs.aws.amazon.com/workspaces/latest/adminguide/customize-branding.html
+
Release v1.43.29 (2022-03-30)
===
diff --git a/aws/endpoints/defaults.go b/aws/endpoints/defaults.go
index cb5eab41f5f..10f26d71cdb 100644
--- a/aws/endpoints/defaults.go
+++ b/aws/endpoints/defaults.go
@@ -5222,6 +5222,147 @@ var awsPartition = partition{
}: endpoint{},
},
},
+ "data-ats.iot": service{
+ Defaults: endpointDefaults{
+ defaultKey{}: endpoint{
+ Protocols: []string{"https"},
+ CredentialScope: credentialScope{
+ Service: "iotdata",
+ },
+ },
+ },
+ Endpoints: serviceEndpoints{
+ endpointKey{
+ Region: "ap-east-1",
+ }: endpoint{},
+ endpointKey{
+ Region: "ap-northeast-1",
+ }: endpoint{},
+ endpointKey{
+ Region: "ap-northeast-2",
+ }: endpoint{},
+ endpointKey{
+ Region: "ap-south-1",
+ }: endpoint{},
+ endpointKey{
+ Region: "ap-southeast-1",
+ }: endpoint{},
+ endpointKey{
+ Region: "ap-southeast-2",
+ }: endpoint{},
+ endpointKey{
+ Region: "ca-central-1",
+ }: endpoint{},
+ endpointKey{
+ Region: "ca-central-1",
+ Variant: fipsVariant,
+ }: endpoint{
+ Hostname: "data.iot-fips.ca-central-1.amazonaws.com",
+ },
+ endpointKey{
+ Region: "eu-central-1",
+ }: endpoint{},
+ endpointKey{
+ Region: "eu-north-1",
+ }: endpoint{},
+ endpointKey{
+ Region: "eu-west-1",
+ }: endpoint{},
+ endpointKey{
+ Region: "eu-west-2",
+ }: endpoint{},
+ endpointKey{
+ Region: "eu-west-3",
+ }: endpoint{},
+ endpointKey{
+ Region: "fips-ca-central-1",
+ }: endpoint{
+ Hostname: "data.iot-fips.ca-central-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Service: "iotdata",
+ },
+ Deprecated: boxedTrue,
+ },
+ endpointKey{
+ Region: "fips-us-east-1",
+ }: endpoint{
+ Hostname: "data.iot-fips.us-east-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Service: "iotdata",
+ },
+ Deprecated: boxedTrue,
+ },
+ endpointKey{
+ Region: "fips-us-east-2",
+ }: endpoint{
+ Hostname: "data.iot-fips.us-east-2.amazonaws.com",
+ CredentialScope: credentialScope{
+ Service: "iotdata",
+ },
+ Deprecated: boxedTrue,
+ },
+ endpointKey{
+ Region: "fips-us-west-1",
+ }: endpoint{
+ Hostname: "data.iot-fips.us-west-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Service: "iotdata",
+ },
+ Deprecated: boxedTrue,
+ },
+ endpointKey{
+ Region: "fips-us-west-2",
+ }: endpoint{
+ Hostname: "data.iot-fips.us-west-2.amazonaws.com",
+ CredentialScope: credentialScope{
+ Service: "iotdata",
+ },
+ Deprecated: boxedTrue,
+ },
+ endpointKey{
+ Region: "me-south-1",
+ }: endpoint{},
+ endpointKey{
+ Region: "sa-east-1",
+ }: endpoint{},
+ endpointKey{
+ Region: "us-east-1",
+ }: endpoint{},
+ endpointKey{
+ Region: "us-east-1",
+ Variant: fipsVariant,
+ }: endpoint{
+ Hostname: "data.iot-fips.us-east-1.amazonaws.com",
+ },
+ endpointKey{
+ Region: "us-east-2",
+ }: endpoint{},
+ endpointKey{
+ Region: "us-east-2",
+ Variant: fipsVariant,
+ }: endpoint{
+ Hostname: "data.iot-fips.us-east-2.amazonaws.com",
+ },
+ endpointKey{
+ Region: "us-west-1",
+ }: endpoint{},
+ endpointKey{
+ Region: "us-west-1",
+ Variant: fipsVariant,
+ }: endpoint{
+ Hostname: "data.iot-fips.us-west-1.amazonaws.com",
+ },
+ endpointKey{
+ Region: "us-west-2",
+ }: endpoint{},
+ endpointKey{
+ Region: "us-west-2",
+ Variant: fipsVariant,
+ }: endpoint{
+ Hostname: "data.iot-fips.us-west-2.amazonaws.com",
+ },
+ },
+ },
"data.jobs.iot": service{
Endpoints: serviceEndpoints{
endpointKey{
@@ -18696,6 +18837,9 @@ var awsPartition = partition{
endpointKey{
Region: "ap-southeast-2",
}: endpoint{},
+ endpointKey{
+ Region: "ap-southeast-3",
+ }: endpoint{},
endpointKey{
Region: "ca-central-1",
}: endpoint{},
@@ -22427,6 +22571,16 @@ var awscnPartition = partition{
},
},
},
+ "cloudcontrolapi": service{
+ Endpoints: serviceEndpoints{
+ endpointKey{
+ Region: "cn-north-1",
+ }: endpoint{},
+ endpointKey{
+ Region: "cn-northwest-1",
+ }: endpoint{},
+ },
+ },
"cloudformation": service{
Endpoints: serviceEndpoints{
endpointKey{
@@ -22546,6 +22700,24 @@ var awscnPartition = partition{
}: endpoint{},
},
},
+ "data-ats.iot": service{
+ Defaults: endpointDefaults{
+ defaultKey{}: endpoint{
+ Protocols: []string{"https"},
+ CredentialScope: credentialScope{
+ Service: "iotdata",
+ },
+ },
+ },
+ Endpoints: serviceEndpoints{
+ endpointKey{
+ Region: "cn-north-1",
+ }: endpoint{},
+ endpointKey{
+ Region: "cn-northwest-1",
+ }: endpoint{},
+ },
+ },
"data.jobs.iot": service{
Endpoints: serviceEndpoints{
endpointKey{
@@ -24799,6 +24971,54 @@ var awsusgovPartition = partition{
}: endpoint{},
},
},
+ "data-ats.iot": service{
+ Defaults: endpointDefaults{
+ defaultKey{}: endpoint{
+ Protocols: []string{"https"},
+ CredentialScope: credentialScope{
+ Service: "iotdata",
+ },
+ },
+ },
+ Endpoints: serviceEndpoints{
+ endpointKey{
+ Region: "fips-us-gov-east-1",
+ }: endpoint{
+ Hostname: "data.iot-fips.us-gov-east-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Service: "iotdata",
+ },
+ Deprecated: boxedTrue,
+ },
+ endpointKey{
+ Region: "fips-us-gov-west-1",
+ }: endpoint{
+ Hostname: "data.iot-fips.us-gov-west-1.amazonaws.com",
+ CredentialScope: credentialScope{
+ Service: "iotdata",
+ },
+ Deprecated: boxedTrue,
+ },
+ endpointKey{
+ Region: "us-gov-east-1",
+ }: endpoint{},
+ endpointKey{
+ Region: "us-gov-east-1",
+ Variant: fipsVariant,
+ }: endpoint{
+ Hostname: "data.iot-fips.us-gov-east-1.amazonaws.com",
+ },
+ endpointKey{
+ Region: "us-gov-west-1",
+ }: endpoint{},
+ endpointKey{
+ Region: "us-gov-west-1",
+ Variant: fipsVariant,
+ }: endpoint{
+ Hostname: "data.iot-fips.us-gov-west-1.amazonaws.com",
+ },
+ },
+ },
"data.jobs.iot": service{
Endpoints: serviceEndpoints{
endpointKey{
diff --git a/aws/version.go b/aws/version.go
index 3add42273d7..15c602281ec 100644
--- a/aws/version.go
+++ b/aws/version.go
@@ -5,4 +5,4 @@ package aws
const SDKName = "aws-sdk-go"
// SDKVersion is the version of this SDK
-const SDKVersion = "1.43.29"
+const SDKVersion = "1.43.30"
diff --git a/models/apis/auditmanager/2017-07-25/docs-2.json b/models/apis/auditmanager/2017-07-25/docs-2.json
index e3d7bf3ee51..08010e49cb4 100644
--- a/models/apis/auditmanager/2017-07-25/docs-2.json
+++ b/models/apis/auditmanager/2017-07-25/docs-2.json
@@ -17,8 +17,8 @@
"DeleteAssessmentFrameworkShare": "
Deletes a share request for a custom framework in Audit Manager.
",
"DeleteAssessmentReport": " Deletes an assessment report from an assessment in Audit Manager.
",
"DeleteControl": " Deletes a custom control in Audit Manager.
",
- "DeregisterAccount": " Deregisters an account in Audit Manager.
",
- "DeregisterOrganizationAdminAccount": "Removes the specified member Amazon Web Services account as a delegated administrator for Audit Manager.
When you remove a delegated administrator from your Audit Manager settings, you continue to have access to the evidence that you previously collected under that account. This is also the case when you deregister a delegated administrator from Audit Manager. However, Audit Manager will stop collecting and attaching evidence to that delegated administrator account moving forward.
",
+ "DeregisterAccount": " Deregisters an account in Audit Manager.
When you deregister your account from Audit Manager, your data isn’t deleted. If you want to delete your resource data, you must perform that task separately before you deregister your account. Either, you can do this in the Audit Manager console. Or, you can use one of the delete API operations that are provided by Audit Manager.
To delete your Audit Manager resource data, see the following instructions:
At this time, Audit Manager doesn't provide an option to delete evidence. All available delete operations are listed above.
",
+ "DeregisterOrganizationAdminAccount": "Removes the specified Amazon Web Services account as a delegated administrator for Audit Manager.
When you remove a delegated administrator from your Audit Manager settings, you continue to have access to the evidence that you previously collected under that account. This is also the case when you deregister a delegated administrator from Organizations. However, Audit Manager will stop collecting and attaching evidence to that delegated administrator account moving forward.
When you deregister a delegated administrator account for Audit Manager, the data for that account isn’t deleted. If you want to delete resource data for a delegated administrator account, you must perform that task separately before you deregister the account. Either, you can do this in the Audit Manager console. Or, you can use one of the delete API operations that are provided by Audit Manager.
To delete your Audit Manager resource data, see the following instructions:
At this time, Audit Manager doesn't provide an option to delete evidence. All available delete operations are listed above.
",
"DisassociateAssessmentReportEvidenceFolder": " Disassociates an evidence folder from the specified assessment report in Audit Manager.
",
"GetAccountStatus": " Returns the registration status of an account in Audit Manager.
",
"GetAssessment": "Returns an assessment from Audit Manager.
",
diff --git a/models/apis/cloudcontrol/2021-09-30/api-2.json b/models/apis/cloudcontrol/2021-09-30/api-2.json
index c4eb4753a36..43cc8d9e10f 100644
--- a/models/apis/cloudcontrol/2021-09-30/api-2.json
+++ b/models/apis/cloudcontrol/2021-09-30/api-2.json
@@ -493,7 +493,6 @@
"type":"string",
"max":65536,
"min":1,
- "pattern":"(.|\\s)*",
"sensitive":true
},
"PrivateTypeException":{
@@ -522,7 +521,6 @@
"type":"string",
"max":16384,
"min":1,
- "pattern":"(.|\\s)*",
"sensitive":true
},
"RequestToken":{
@@ -596,8 +594,7 @@
},
"StatusMessage":{
"type":"string",
- "max":1024,
- "pattern":"(.|\\s)*"
+ "max":1024
},
"ThrottlingException":{
"type":"structure",
diff --git a/models/apis/cloudcontrol/2021-09-30/docs-2.json b/models/apis/cloudcontrol/2021-09-30/docs-2.json
index 98b481f8fbb..0e665d15857 100644
--- a/models/apis/cloudcontrol/2021-09-30/docs-2.json
+++ b/models/apis/cloudcontrol/2021-09-30/docs-2.json
@@ -1,15 +1,15 @@
{
"version": "2.0",
- "service": "Use Amazon Web Services Cloud Control API to create, read, update, delete, and list (CRUD-L) your cloud resources that belong to a wide range of services--both Amazon Web Services and third-party. With the Cloud Control API standardized set of application programming interfaces (APIs), you can perform CRUD-L operations on any supported resources in your Amazon Web Services account. Using Cloud Control API, you won't have to generate code or scripts specific to each individual service responsible for those resources.
For more information about Amazon Web Services Cloud Control API, see the Amazon Web Services Cloud Control API User Guide.
",
+ "service": "For more information about Amazon Web Services Cloud Control API, see the Amazon Web Services Cloud Control API User Guide.
",
"operations": {
- "CancelResourceRequest": "Cancels the specified resource operation request. For more information, see Canceling resource operation requests in the Amazon Web Services Cloud Control API User Guide.
Only resource operations requests with a status of PENDING
or IN_PROGRESS
can be cancelled.
",
+ "CancelResourceRequest": "Cancels the specified resource operation request. For more information, see Canceling resource operation requests in the Amazon Web Services Cloud Control API User Guide.
Only resource operations requests with a status of PENDING
or IN_PROGRESS
can be canceled.
",
"CreateResource": "Creates the specified resource. For more information, see Creating a resource in the Amazon Web Services Cloud Control API User Guide.
After you have initiated a resource creation request, you can monitor the progress of your request by calling GetResourceRequestStatus using the RequestToken
of the ProgressEvent
type returned by CreateResource
.
",
"DeleteResource": "Deletes the specified resource. For details, see Deleting a resource in the Amazon Web Services Cloud Control API User Guide.
After you have initiated a resource deletion request, you can monitor the progress of your request by calling GetResourceRequestStatus using the RequestToken
of the ProgressEvent
returned by DeleteResource
.
",
- "GetResource": "Returns information about the current state of the specified resource. For details, see Reading a resource's current state.
You can use this action to return information about an existing resource in your account and Amazon Web Services Region, whether or not those resources were provisioned using Cloud Control API.
",
+ "GetResource": "Returns information about the current state of the specified resource. For details, see Reading a resource's current state.
You can use this action to return information about an existing resource in your account and Amazon Web Services Region, whether those resources were provisioned using Cloud Control API.
",
"GetResourceRequestStatus": "Returns the current status of a resource operation request. For more information, see Tracking the progress of resource operation requests in the Amazon Web Services Cloud Control API User Guide.
",
- "ListResourceRequests": "Returns existing resource operation requests. This includes requests of all status types. For more information, see Listing active resource operation requests in the Amazon Web Services Cloud Control API User Guide.
Resource operation requests expire after seven days.
",
- "ListResources": "Returns information about the specified resources. For more information, see Discovering resources in the Amazon Web Services Cloud Control API User Guide.
You can use this action to return information about existing resources in your account and Amazon Web Services Region, whether or not those resources were provisioned using Cloud Control API.
",
- "UpdateResource": "Updates the specified property values in the resource.
You specify your resource property updates as a list of patch operations contained in a JSON patch document that adheres to the RFC 6902 - JavaScript Object Notation (JSON) Patch standard.
For details on how Cloud Control API performs resource update operations, see Updating a resource in the Amazon Web Services Cloud Control API User Guide.
After you have initiated a resource update request, you can monitor the progress of your request by calling GetResourceRequestStatus using the RequestToken
of the ProgressEvent
returned by UpdateResource
.
For more information about the properties of a specific resource, refer to the related topic for the resource in the Resource and property types reference in the Amazon Web Services CloudFormation Users Guide.
"
+ "ListResourceRequests": "Returns existing resource operation requests. This includes requests of all status types. For more information, see Listing active resource operation requests in the Amazon Web Services Cloud Control API User Guide.
Resource operation requests expire after 7 days.
",
+ "ListResources": "Returns information about the specified resources. For more information, see Discovering resources in the Amazon Web Services Cloud Control API User Guide.
You can use this action to return information about existing resources in your account and Amazon Web Services Region, whether those resources were provisioned using Cloud Control API.
",
+ "UpdateResource": "Updates the specified property values in the resource.
You specify your resource property updates as a list of patch operations contained in a JSON patch document that adheres to the RFC 6902 - JavaScript Object Notation (JSON) Patch standard.
For details on how Cloud Control API performs resource update operations, see Updating a resource in the Amazon Web Services Cloud Control API User Guide.
After you have initiated a resource update request, you can monitor the progress of your request by calling GetResourceRequestStatus using the RequestToken
of the ProgressEvent
returned by UpdateResource
.
For more information about the properties of a specific resource, refer to the related topic for the resource in the Resource and property types reference in the CloudFormation Users Guide.
"
},
"shapes": {
"AlreadyExistsException": {
@@ -36,7 +36,7 @@
}
},
"ClientTokenConflictException": {
- "base": "The specified client token has already been used in another resource request.
It is best practice for client tokens to be unique for each resource operation request. However, client token expire after 36 hours.
",
+ "base": "The specified client token has already been used in another resource request.
It's best practice for client tokens to be unique for each resource operation request. However, client token expire after 36 hours.
",
"refs": {
}
},
@@ -97,7 +97,7 @@
}
},
"GeneralServiceException": {
- "base": "The resource handler has returned that the downstream service generated an error that does not map to any other handler error code.
",
+ "base": "The resource handler has returned that the downstream service generated an error that doesn't map to any other handler error code.
",
"refs": {
}
},
@@ -147,11 +147,11 @@
"Identifier": {
"base": null,
"refs": {
- "DeleteResourceInput$Identifier": "The identifier for the resource.
You can specify the primary identifier, or any secondary identifier defined for the resource type in its resource schema. You can only specify one identifier. Primary identifiers can be specified as a string or JSON; secondary identifiers must be specified as JSON.
For compound primary identifiers (that is, one that consists of multiple resource properties strung together), to specify the primary identifier as a string, list the property values in the order they are specified in the primary identifier definition, separated by |
.
For more information, see Identifying resources in the Amazon Web Services Cloud Control API User Guide.
",
- "GetResourceInput$Identifier": "The identifier for the resource.
You can specify the primary identifier, or any secondary identifier defined for the resource type in its resource schema. You can only specify one identifier. Primary identifiers can be specified as a string or JSON; secondary identifiers must be specified as JSON.
For compound primary identifiers (that is, one that consists of multiple resource properties strung together), to specify the primary identifier as a string, list the property values in the order they are specified in the primary identifier definition, separated by |
.
For more information, see Identifying resources in the Amazon Web Services Cloud Control API User Guide.
",
+ "DeleteResourceInput$Identifier": "The identifier for the resource.
You can specify the primary identifier, or any secondary identifier defined for the resource type in its resource schema. You can only specify one identifier. Primary identifiers can be specified as a string or JSON; secondary identifiers must be specified as JSON.
For compound primary identifiers (that is, one that consists of multiple resource properties strung together), to specify the primary identifier as a string, list the property values in the order they are specified in the primary identifier definition, separated by |
.
For more information, see Identifying resources in the Amazon Web Services Cloud Control API User Guide.
",
+ "GetResourceInput$Identifier": "The identifier for the resource.
You can specify the primary identifier, or any secondary identifier defined for the resource type in its resource schema. You can only specify one identifier. Primary identifiers can be specified as a string or JSON; secondary identifiers must be specified as JSON.
For compound primary identifiers (that is, one that consists of multiple resource properties strung together), to specify the primary identifier as a string, list the property values in the order they are specified in the primary identifier definition, separated by |
.
For more information, see Identifying resources in the Amazon Web Services Cloud Control API User Guide.
",
"ProgressEvent$Identifier": "The primary identifier for the resource.
In some cases, the resource identifier may be available before the resource operation has reached a status of SUCCESS
.
",
"ResourceDescription$Identifier": "The primary identifier for the resource.
For more information, see Identifying resources in the Amazon Web Services Cloud Control API User Guide.
",
- "UpdateResourceInput$Identifier": "The identifier for the resource.
You can specify the primary identifier, or any secondary identifier defined for the resource type in its resource schema. You can only specify one identifier. Primary identifiers can be specified as a string or JSON; secondary identifiers must be specified as JSON.
For compound primary identifiers (that is, one that consists of multiple resource properties strung together), to specify the primary identifier as a string, list the property values in the order they are specified in the primary identifier definition, separated by |
.
For more information, see Identifying resources in the Amazon Web Services Cloud Control API User Guide.
"
+ "UpdateResourceInput$Identifier": "The identifier for the resource.
You can specify the primary identifier, or any secondary identifier defined for the resource type in its resource schema. You can only specify one identifier. Primary identifiers can be specified as a string or JSON; secondary identifiers must be specified as JSON.
For compound primary identifiers (that is, one that consists of multiple resource properties strung together), to specify the primary identifier as a string, list the property values in the order they are specified in the primary identifier definition, separated by |
.
For more information, see Identifying resources in the Amazon Web Services Cloud Control API User Guide.
"
}
},
"InvalidCredentialsException": {
@@ -188,11 +188,11 @@
"base": null,
"refs": {
"ListResourceRequestsInput$MaxResults": "The maximum number of results to be returned with a single call. If the number of available results exceeds this maximum, the response includes a NextToken
value that you can assign to the NextToken
request parameter to get the next set of results.
The default is 20
.
",
- "ListResourcesInput$MaxResults": "The maximum number of results to be returned with a single call. If the number of available results exceeds this maximum, the response includes a NextToken
value that you can assign to the NextToken
request parameter to get the next set of results.
The default is 20
.
"
+ "ListResourcesInput$MaxResults": "Reserved.
"
}
},
"NetworkFailureException": {
- "base": "The resource handler has returned that the request could not be completed due to networking issues, such as a failure to receive a response from the server.
",
+ "base": "The resource handler has returned that the request couldn't be completed due to networking issues, such as a failure to receive a response from the server.
",
"refs": {
}
},
@@ -209,7 +209,7 @@
}
},
"NotUpdatableException": {
- "base": "One or more properties included in this resource operation are defined as create-only, and therefore cannot be updated.
",
+ "base": "One or more properties included in this resource operation are defined as create-only, and therefore can't be updated.
",
"refs": {
}
},
@@ -224,13 +224,13 @@
"base": null,
"refs": {
"OperationStatuses$member": null,
- "ProgressEvent$OperationStatus": "The current status of the resource operation request.
-
PENDING
: The resource operation has not yet started.
-
IN_PROGRESS
: The resource operation is currently in progress.
-
SUCCESS
: The resource operation has successfully completed.
-
FAILED
: The resource operation has failed. Refer to the error code and status message for more information.
-
CANCEL_IN_PROGRESS
: The resource operation is in the process of being canceled.
-
CANCEL_COMPLETE
: The resource operation has been canceled.
"
+ "ProgressEvent$OperationStatus": "The current status of the resource operation request.
-
PENDING
: The resource operation hasn't yet started.
-
IN_PROGRESS
: The resource operation is currently in progress.
-
SUCCESS
: The resource operation has successfully completed.
-
FAILED
: The resource operation has failed. Refer to the error code and status message for more information.
-
CANCEL_IN_PROGRESS
: The resource operation is in the process of being canceled.
-
CANCEL_COMPLETE
: The resource operation has been canceled.
"
}
},
"OperationStatuses": {
"base": null,
"refs": {
- "ResourceRequestStatusFilter$OperationStatuses": "The operation statuses to include in the filter.
-
PENDING
: The operation has been requested, but not yet initiated.
-
IN_PROGRESS
: The operation is currently in progress.
-
SUCCESS
: The operation has successfully completed.
-
FAILED
: The operation has failed.
-
CANCEL_IN_PROGRESS
: The operation is currently in the process of being canceled.
-
CANCEL_COMPLETE
: The operation has been canceled.
"
+ "ResourceRequestStatusFilter$OperationStatuses": "The operation statuses to include in the filter.
-
PENDING
: The operation has been requested, but not yet initiated.
-
IN_PROGRESS
: The operation is in progress.
-
SUCCESS
: The operation completed.
-
FAILED
: The operation failed.
-
CANCEL_IN_PROGRESS
: The operation is in the process of being canceled.
-
CANCEL_COMPLETE
: The operation has been canceled.
"
}
},
"Operations": {
@@ -246,7 +246,7 @@
}
},
"PrivateTypeException": {
- "base": "Cloud Control API has not received a valid response from the resource handler, due to a configuration error. This includes issues such as the resource handler returning an invalid response, or timing out.
",
+ "base": "Cloud Control API hasn't received a valid response from the resource handler, due to a configuration error. This includes issues such as the resource handler returning an invalid response, or timing out.
",
"refs": {
}
},
@@ -264,7 +264,7 @@
"Properties": {
"base": null,
"refs": {
- "CreateResourceInput$DesiredState": "Structured data format representing the desired state of the resource, consisting of that resource's properties and their desired values.
Cloud Control API currently supports JSON as a structured data format.
Specify the desired state as one of the following:
For more information, see Composing the desired state of the resource in the Amazon Web Services Cloud Control API User Guide.
For more information about the properties of a specific resource, refer to the related topic for the resource in the Resource and property types reference in the Amazon Web Services CloudFormation Users Guide.
",
+ "CreateResourceInput$DesiredState": "Structured data format representing the desired state of the resource, consisting of that resource's properties and their desired values.
Cloud Control API currently supports JSON as a structured data format.
Specify the desired state as one of the following:
For more information, see Composing the desired state of the resource in the Amazon Web Services Cloud Control API User Guide.
For more information about the properties of a specific resource, refer to the related topic for the resource in the Resource and property types reference in the CloudFormation Users Guide.
",
"ListResourcesInput$ResourceModel": "The resource model to use to select the resources to return.
",
"ProgressEvent$ResourceModel": "A JSON string containing the resource model, consisting of each resource property and its current value.
",
"ResourceDescription$Properties": "A list of the resource properties and their current values.
"
@@ -279,12 +279,12 @@
}
},
"RequestTokenNotFoundException": {
- "base": "A resource operation with the specified request token cannot be found.
",
+ "base": "A resource operation with the specified request token can't be found.
",
"refs": {
}
},
"ResourceConflictException": {
- "base": "The resource is temporarily unavailable to be acted upon. For example, if the resource is currently undergoing an operation and cannot be acted upon until that operation is finished.
",
+ "base": "The resource is temporarily unavailable to be acted upon. For example, if the resource is currently undergoing an operation and can't be acted upon until that operation is finished.
",
"refs": {
}
},
@@ -302,7 +302,7 @@
}
},
"ResourceNotFoundException": {
- "base": "A resource with the specified identifier cannot be found.
",
+ "base": "A resource with the specified identifier can't be found.
",
"refs": {
}
},
@@ -321,11 +321,11 @@
"RoleArn": {
"base": null,
"refs": {
- "CreateResourceInput$RoleArn": "The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) for Cloud Control API to use when performing this resource operation. The role specified must have the permissions required for this operation. The necessary permissions for each event handler are defined in the handlers
section of the resource type definition schema.
If you do not specify a role, Cloud Control API uses a temporary session created using your Amazon Web Services user credentials.
For more information, see Specifying credentials in the Amazon Web Services Cloud Control API User Guide.
",
- "DeleteResourceInput$RoleArn": "The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) for Cloud Control API to use when performing this resource operation. The role specified must have the permissions required for this operation. The necessary permissions for each event handler are defined in the handlers
section of the resource type definition schema.
If you do not specify a role, Cloud Control API uses a temporary session created using your Amazon Web Services user credentials.
For more information, see Specifying credentials in the Amazon Web Services Cloud Control API User Guide.
",
- "GetResourceInput$RoleArn": "The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) for Cloud Control API to use when performing this resource operation. The role specified must have the permissions required for this operation. The necessary permissions for each event handler are defined in the handlers
section of the resource type definition schema.
If you do not specify a role, Cloud Control API uses a temporary session created using your Amazon Web Services user credentials.
For more information, see Specifying credentials in the Amazon Web Services Cloud Control API User Guide.
",
- "ListResourcesInput$RoleArn": "The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) for Cloud Control API to use when performing this resource operation. The role specified must have the permissions required for this operation. The necessary permissions for each event handler are defined in the handlers
section of the resource type definition schema.
If you do not specify a role, Cloud Control API uses a temporary session created using your Amazon Web Services user credentials.
For more information, see Specifying credentials in the Amazon Web Services Cloud Control API User Guide.
",
- "UpdateResourceInput$RoleArn": "The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) for Cloud Control API to use when performing this resource operation. The role specified must have the permissions required for this operation. The necessary permissions for each event handler are defined in the handlers
section of the resource type definition schema.
If you do not specify a role, Cloud Control API uses a temporary session created using your Amazon Web Services user credentials.
For more information, see Specifying credentials in the Amazon Web Services Cloud Control API User Guide.
"
+ "CreateResourceInput$RoleArn": "The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role for Cloud Control API to use when performing this resource operation. The role specified must have the permissions required for this operation. The necessary permissions for each event handler are defined in the handlers
section of the resource type definition schema.
If you do not specify a role, Cloud Control API uses a temporary session created using your Amazon Web Services user credentials.
For more information, see Specifying credentials in the Amazon Web Services Cloud Control API User Guide.
",
+ "DeleteResourceInput$RoleArn": "The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role for Cloud Control API to use when performing this resource operation. The role specified must have the permissions required for this operation. The necessary permissions for each event handler are defined in the handlers
section of the resource type definition schema.
If you do not specify a role, Cloud Control API uses a temporary session created using your Amazon Web Services user credentials.
For more information, see Specifying credentials in the Amazon Web Services Cloud Control API User Guide.
",
+ "GetResourceInput$RoleArn": "The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role for Cloud Control API to use when performing this resource operation. The role specified must have the permissions required for this operation. The necessary permissions for each event handler are defined in the handlers
section of the resource type definition schema.
If you do not specify a role, Cloud Control API uses a temporary session created using your Amazon Web Services user credentials.
For more information, see Specifying credentials in the Amazon Web Services Cloud Control API User Guide.
",
+ "ListResourcesInput$RoleArn": "The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role for Cloud Control API to use when performing this resource operation. The role specified must have the permissions required for this operation. The necessary permissions for each event handler are defined in the handlers
section of the resource type definition schema.
If you do not specify a role, Cloud Control API uses a temporary session created using your Amazon Web Services user credentials.
For more information, see Specifying credentials in the Amazon Web Services Cloud Control API User Guide.
",
+ "UpdateResourceInput$RoleArn": "The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role for Cloud Control API to use when performing this resource operation. The role specified must have the permissions required for this operation. The necessary permissions for each event handler are defined in the handlers
section of the resource type definition schema.
If you do not specify a role, Cloud Control API uses a temporary session created using your Amazon Web Services user credentials.
For more information, see Specifying credentials in the Amazon Web Services Cloud Control API User Guide.
"
}
},
"ServiceInternalErrorException": {
@@ -370,7 +370,7 @@
}
},
"TypeNotFoundException": {
- "base": "The specified extension does not exist in the CloudFormation registry.
",
+ "base": "The specified extension doesn't exist in the CloudFormation registry.
",
"refs": {
}
},
@@ -385,7 +385,7 @@
}
},
"UnsupportedActionException": {
- "base": "The specified resource does not support this resource operation.
",
+ "base": "The specified resource doesn't support this resource operation.
",
"refs": {
}
},
diff --git a/models/apis/databrew/2017-07-25/api-2.json b/models/apis/databrew/2017-07-25/api-2.json
index 6695fca3f3b..1750c43c653 100644
--- a/models/apis/databrew/2017-07-25/api-2.json
+++ b/models/apis/databrew/2017-07-25/api-2.json
@@ -1583,7 +1583,8 @@
"CSV",
"JSON",
"PARQUET",
- "EXCEL"
+ "EXCEL",
+ "ORC"
]
},
"InternalServerException":{
diff --git a/models/apis/databrew/2017-07-25/docs-2.json b/models/apis/databrew/2017-07-25/docs-2.json
index 1e76eb8c665..b71b4f63902 100644
--- a/models/apis/databrew/2017-07-25/docs-2.json
+++ b/models/apis/databrew/2017-07-25/docs-2.json
@@ -479,7 +479,7 @@
}
},
"DatasetParameter": {
- "base": "Represents a dataset paramater that defines type and conditions for a parameter in the Amazon S3 path of the dataset.
",
+ "base": "Represents a dataset parameter that defines type and conditions for a parameter in the Amazon S3 path of the dataset.
",
"refs": {
"PathParametersMap$value": null
}
@@ -740,7 +740,7 @@
"base": null,
"refs": {
"FilterExpression$Expression": "The expression which includes condition names followed by substitution variables, possibly grouped and combined with other conditions. For example, \"(starts_with :prefix1 or starts_with :prefix2) and (ends_with :suffix1 or ends_with :suffix2)\". Substitution variables should start with ':' symbol.
",
- "Rule$CheckExpression": "The expression which includes column references, condition names followed by variable references, possibly grouped and combined with other conditions. For example, (:col1 starts_with :prefix1 or :col1 starts_with :prefix2) and (:col1 ends_with :suffix1 or :col1 ends_with :suffix2)
. Column and value references are substitution variables that should start with the ':' symbol. Depending on the context, substitution variables' values can be either an actual value or a column name. These values are defined in the SubstitutionMap. If a CheckExpression starts with a column reference, then ColumnSelectors in the rule should be null. If ColumnSelectors has been defined, then there should be no columnn reference in the left side of a condition, for example, is_between :val1 and :val2
.
For more information, see Available checks
"
+ "Rule$CheckExpression": "The expression which includes column references, condition names followed by variable references, possibly grouped and combined with other conditions. For example, (:col1 starts_with :prefix1 or :col1 starts_with :prefix2) and (:col1 ends_with :suffix1 or :col1 ends_with :suffix2)
. Column and value references are substitution variables that should start with the ':' symbol. Depending on the context, substitution variables' values can be either an actual value or a column name. These values are defined in the SubstitutionMap. If a CheckExpression starts with a column reference, then ColumnSelectors in the rule should be null. If ColumnSelectors has been defined, then there should be no column reference in the left side of a condition, for example, is_between :val1 and :val2
.
For more information, see Available checks
"
}
},
"FilesLimit": {
@@ -1168,7 +1168,7 @@
"Order": {
"base": null,
"refs": {
- "FilesLimit$Order": "A criteria to use for Amazon S3 files sorting before their selection. By default uses DESCENDING order, i.e. most recent files are selected first. Anotherpossible value is ASCENDING.
"
+ "FilesLimit$Order": "A criteria to use for Amazon S3 files sorting before their selection. By default uses DESCENDING order, i.e. most recent files are selected first. Another possible value is ASCENDING.
"
}
},
"OrderedBy": {
diff --git a/models/apis/grafana/2020-08-18/api-2.json b/models/apis/grafana/2020-08-18/api-2.json
index 3c15293f280..7a6114e7d65 100644
--- a/models/apis/grafana/2020-08-18/api-2.json
+++ b/models/apis/grafana/2020-08-18/api-2.json
@@ -135,6 +135,23 @@
{"shape":"InternalServerException"}
]
},
+ "ListTagsForResource":{
+ "name":"ListTagsForResource",
+ "http":{
+ "method":"GET",
+ "requestUri":"/tags/{resourceArn}",
+ "responseCode":200
+ },
+ "input":{"shape":"ListTagsForResourceRequest"},
+ "output":{"shape":"ListTagsForResourceResponse"},
+ "errors":[
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"ThrottlingException"},
+ {"shape":"ValidationException"},
+ {"shape":"AccessDeniedException"},
+ {"shape":"InternalServerException"}
+ ]
+ },
"ListWorkspaces":{
"name":"ListWorkspaces",
"http":{
@@ -150,6 +167,41 @@
{"shape":"InternalServerException"}
]
},
+ "TagResource":{
+ "name":"TagResource",
+ "http":{
+ "method":"POST",
+ "requestUri":"/tags/{resourceArn}",
+ "responseCode":200
+ },
+ "input":{"shape":"TagResourceRequest"},
+ "output":{"shape":"TagResourceResponse"},
+ "errors":[
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"ThrottlingException"},
+ {"shape":"ValidationException"},
+ {"shape":"AccessDeniedException"},
+ {"shape":"InternalServerException"}
+ ]
+ },
+ "UntagResource":{
+ "name":"UntagResource",
+ "http":{
+ "method":"DELETE",
+ "requestUri":"/tags/{resourceArn}",
+ "responseCode":200
+ },
+ "input":{"shape":"UntagResourceRequest"},
+ "output":{"shape":"UntagResourceResponse"},
+ "errors":[
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"ThrottlingException"},
+ {"shape":"ValidationException"},
+ {"shape":"AccessDeniedException"},
+ {"shape":"InternalServerException"}
+ ],
+ "idempotent":true
+ },
"UpdatePermissions":{
"name":"UpdatePermissions",
"http":{
@@ -352,6 +404,7 @@
"organizationRoleName":{"shape":"OrganizationRoleName"},
"permissionType":{"shape":"PermissionType"},
"stackSetName":{"shape":"StackSetName"},
+ "tags":{"shape":"TagMap"},
"workspaceDataSources":{"shape":"DataSourceTypesList"},
"workspaceDescription":{"shape":"Description"},
"workspaceName":{"shape":"WorkspaceName"},
@@ -375,7 +428,9 @@
"PROMETHEUS",
"XRAY",
"TIMESTREAM",
- "SITEWISE"
+ "SITEWISE",
+ "ATHENA",
+ "REDSHIFT"
]
},
"DataSourceTypesList":{
@@ -574,6 +629,23 @@
"permissions":{"shape":"PermissionEntryList"}
}
},
+ "ListTagsForResourceRequest":{
+ "type":"structure",
+ "required":["resourceArn"],
+ "members":{
+ "resourceArn":{
+ "shape":"String",
+ "location":"uri",
+ "locationName":"resourceArn"
+ }
+ }
+ },
+ "ListTagsForResourceResponse":{
+ "type":"structure",
+ "members":{
+ "tags":{"shape":"TagMap"}
+ }
+ },
"ListWorkspacesRequest":{
"type":"structure",
"members":{
@@ -744,6 +816,47 @@
},
"StackSetName":{"type":"string"},
"String":{"type":"string"},
+ "TagKey":{
+ "type":"string",
+ "max":128,
+ "min":1
+ },
+ "TagKeys":{
+ "type":"list",
+ "member":{"shape":"TagKey"}
+ },
+ "TagMap":{
+ "type":"map",
+ "key":{"shape":"TagKey"},
+ "value":{"shape":"TagValue"},
+ "max":50,
+ "min":0
+ },
+ "TagResourceRequest":{
+ "type":"structure",
+ "required":[
+ "resourceArn",
+ "tags"
+ ],
+ "members":{
+ "resourceArn":{
+ "shape":"String",
+ "location":"uri",
+ "locationName":"resourceArn"
+ },
+ "tags":{"shape":"TagMap"}
+ }
+ },
+ "TagResourceResponse":{
+ "type":"structure",
+ "members":{
+ }
+ },
+ "TagValue":{
+ "type":"string",
+ "max":256,
+ "min":0
+ },
"ThrottlingException":{
"type":"structure",
"required":["message"],
@@ -765,6 +878,30 @@
"retryable":{"throttling":false}
},
"Timestamp":{"type":"timestamp"},
+ "UntagResourceRequest":{
+ "type":"structure",
+ "required":[
+ "resourceArn",
+ "tagKeys"
+ ],
+ "members":{
+ "resourceArn":{
+ "shape":"String",
+ "location":"uri",
+ "locationName":"resourceArn"
+ },
+ "tagKeys":{
+ "shape":"TagKeys",
+ "location":"querystring",
+ "locationName":"tagKeys"
+ }
+ }
+ },
+ "UntagResourceResponse":{
+ "type":"structure",
+ "members":{
+ }
+ },
"UpdateAction":{
"type":"string",
"enum":[
@@ -983,6 +1120,7 @@
"permissionType":{"shape":"PermissionType"},
"stackSetName":{"shape":"StackSetName"},
"status":{"shape":"WorkspaceStatus"},
+ "tags":{"shape":"TagMap"},
"workspaceRoleArn":{"shape":"IamRoleArn"}
}
},
@@ -1036,7 +1174,8 @@
"modified":{"shape":"Timestamp"},
"name":{"shape":"WorkspaceName"},
"notificationDestinations":{"shape":"NotificationDestinationsList"},
- "status":{"shape":"WorkspaceStatus"}
+ "status":{"shape":"WorkspaceStatus"},
+ "tags":{"shape":"TagMap"}
}
}
}
diff --git a/models/apis/grafana/2020-08-18/docs-2.json b/models/apis/grafana/2020-08-18/docs-2.json
index 2c1b54027b0..e228fb9979b 100644
--- a/models/apis/grafana/2020-08-18/docs-2.json
+++ b/models/apis/grafana/2020-08-18/docs-2.json
@@ -9,7 +9,10 @@
"DescribeWorkspaceAuthentication": "Displays information about the authentication methods used in one Amazon Managed Grafana workspace.
",
"DisassociateLicense": "Removes the Grafana Enterprise license from a workspace.
",
"ListPermissions": "Lists the users and groups who have the Grafana Admin
and Editor
roles in this workspace. If you use this operation without specifying userId
or groupId
, the operation returns the roles of all users and groups. If you specify a userId
or a groupId
, only the roles for that user or group are returned. If you do this, you can specify only one userId
or one groupId
.
",
+ "ListTagsForResource": "The ListTagsForResource
operation returns the tags that are associated with the Amazon Managed Service for Grafana resource specified by the resourceArn
. Currently, the only resource that can be tagged is a workspace.
",
"ListWorkspaces": "Returns a list of Amazon Managed Grafana workspaces in the account, with some information about each workspace. For more complete information about one workspace, use DescribeWorkspace.
",
+ "TagResource": "The TagResource
operation associates tags with an Amazon Managed Grafana resource. Currently, the only resource that can be tagged is workspaces.
If you specify a new tag key for the resource, this tag is appended to the list of tags associated with the resource. If you specify a tag key that is already associated with the resource, the new tag value that you specify replaces the previous value for that tag.
",
+ "UntagResource": "The UntagResource
operation removes the association of the tag with the Amazon Managed Grafana resource.
",
"UpdatePermissions": "Updates which users in a workspace have the Grafana Admin
or Editor
roles.
",
"UpdateWorkspace": "Modifies an existing Amazon Managed Grafana workspace. If you use this operation and omit any optional parameters, the existing values of those parameters are not changed.
To modify the user authentication methods that the workspace uses, such as SAML or Amazon Web Services SSO, use UpdateWorkspaceAuthentication.
To modify which users in the workspace have the Admin
and Editor
Grafana roles, use UpdatePermissions.
",
"UpdateWorkspaceAuthentication": "Use this operation to define the identity provider (IdP) that this workspace authenticates users from, using SAML. You can also map SAML assertion attributes to workspace user information and define which groups in the assertion attribute are to have the Admin
and Editor
roles in the workspace.
"
@@ -176,7 +179,7 @@
"Description": {
"base": null,
"refs": {
- "CreateWorkspaceRequest$workspaceDescription": "A description for the workspace. This is used only to help you identify this workspace.
",
+ "CreateWorkspaceRequest$workspaceDescription": "A description for the workspace. This is used only to help you identify this workspace.
Pattern: ^[\\\\p{L}\\\\p{Z}\\\\p{N}\\\\p{P}]{0,2048}$
",
"UpdateWorkspaceRequest$workspaceDescription": "A description for the workspace. This is used only to help you identify this workspace.
",
"WorkspaceDescription$description": "The user-defined description of the workspace.
",
"WorkspaceSummary$description": "The customer-entered description of the workspace.
"
@@ -209,7 +212,7 @@
"IamRoleArn": {
"base": null,
"refs": {
- "CreateWorkspaceRequest$workspaceRoleArn": "The workspace needs an IAM role that grants permissions to the Amazon Web Services resources that the workspace will view data from. If you already have a role that you want to use, specify it here. If you omit this field and you specify some Amazon Web Services resources in workspaceDataSources
or workspaceNotificationDestinations
, a new IAM role with the necessary permissions is automatically created.
",
+ "CreateWorkspaceRequest$workspaceRoleArn": "The workspace needs an IAM role that grants permissions to the Amazon Web Services resources that the workspace will view data from. If you already have a role that you want to use, specify it here. The permission type should be set to CUSTOMER_MANAGED
.
",
"UpdateWorkspaceRequest$workspaceRoleArn": "The workspace needs an IAM role that grants permissions to the Amazon Web Services resources that the workspace will view data from. If you already have a role that you want to use, specify it here. If you omit this field and you specify some Amazon Web Services resources in workspaceDataSources
or workspaceNotificationDestinations
, a new IAM role with the necessary permissions is automatically created.
",
"WorkspaceDescription$workspaceRoleArn": "The IAM role that grants permissions to the Amazon Web Services resources that the workspace will view data from. This role must already exist.
"
}
@@ -262,6 +265,16 @@
"refs": {
}
},
+ "ListTagsForResourceRequest": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "ListTagsForResourceResponse": {
+ "base": null,
+ "refs": {
+ }
+ },
"ListWorkspacesRequest": {
"base": null,
"refs": {
@@ -345,7 +358,7 @@
"PermissionType": {
"base": null,
"refs": {
- "CreateWorkspaceRequest$permissionType": "If you specify Service Managed
, Amazon Managed Grafana automatically creates the IAM roles and provisions the permissions that the workspace needs to use Amazon Web Services data sources and notification channels.
If you specify CUSTOMER_MANAGED
, you will manage those roles and permissions yourself. If you are creating this workspace in a member account of an organization that is not a delegated administrator account, and you want the workspace to access data sources in other Amazon Web Services accounts in the organization, you must choose CUSTOMER_MANAGED
.
For more information, see Amazon Managed Grafana permissions and policies for Amazon Web Services data sources and notification channels
",
+ "CreateWorkspaceRequest$permissionType": "If you specify SERVICE_MANAGED
on AWS Grafana console, Amazon Managed Grafana automatically creates the IAM roles and provisions the permissions that the workspace needs to use Amazon Web Services data sources and notification channels. In CLI mode, the permissionType SERVICE_MANAGED
will not create the IAM role for you.
If you specify CUSTOMER_MANAGED
, you will manage those roles and permissions yourself. If you are creating this workspace in a member account of an organization that is not a delegated administrator account, and you want the workspace to access data sources in other Amazon Web Services accounts in the organization, you must choose CUSTOMER_MANAGED
.
For more information, see Amazon Managed Grafana permissions and policies for Amazon Web Services data sources and notification channels.
",
"UpdateWorkspaceRequest$permissionType": "If you specify Service Managed
, Amazon Managed Grafana automatically creates the IAM roles and provisions the permissions that the workspace needs to use Amazon Web Services data sources and notification channels.
If you specify CUSTOMER_MANAGED
, you will manage those roles and permissions yourself. If you are creating this workspace in a member account of an organization and that account is not a delegated administrator account, and you want the workspace to access data sources in other Amazon Web Services accounts in the organization, you must choose CUSTOMER_MANAGED
.
For more information, see Amazon Managed Grafana permissions and policies for Amazon Web Services data sources and notification channels
",
"WorkspaceDescription$permissionType": "If this is Service Managed
, Amazon Managed Grafana automatically creates the IAM roles and provisions the permissions that the workspace needs to use Amazon Web Services data sources and notification channels.
If this is CUSTOMER_MANAGED
, you manage those roles and permissions yourself. If you are creating this workspace in a member account of an organization and that account is not a delegated administrator account, and you want the workspace to access data sources in other Amazon Web Services accounts in the organization, you must choose CUSTOMER_MANAGED
.
For more information, see Amazon Managed Grafana permissions and policies for Amazon Web Services data sources and notification channels
"
}
@@ -417,7 +430,7 @@
"refs": {
"ListPermissionsRequest$groupId": "(Optional) Limits the results to only the group that matches this ID.
",
"ListPermissionsRequest$userId": "(Optional) Limits the results to only the user that matches this ID.
",
- "User$id": "The ID of the user or group.
"
+ "User$id": "The ID of the user or group.
Pattern: ^([0-9a-fA-F]{10}-|)[A-Fa-f0-9]{8}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{12}$
"
}
},
"StackSetName": {
@@ -437,6 +450,7 @@
"ConflictException$resourceType": "The type of the resource that is associated with the error.
",
"IdpMetadata$xml": "The actual full metadata file, in XML format.
",
"InternalServerException$message": "A description of the error.
",
+ "ListTagsForResourceRequest$resourceArn": "The ARN of the resource the list of tags are associated with.
",
"ResourceNotFoundException$message": "The value of a parameter in the request caused an error.
",
"ResourceNotFoundException$resourceId": "The ID of the resource that is associated with the error.
",
"ResourceNotFoundException$resourceType": "The type of the resource that is associated with the error.
",
@@ -445,15 +459,56 @@
"ServiceQuotaExceededException$resourceId": "The ID of the resource that is associated with the error.
",
"ServiceQuotaExceededException$resourceType": "The type of the resource that is associated with the error.
",
"ServiceQuotaExceededException$serviceCode": "The value of a parameter in the request caused an error.
",
+ "TagResourceRequest$resourceArn": "The ARN of the resource the tag is associated with.
",
"ThrottlingException$message": "A description of the error.
",
"ThrottlingException$quotaCode": "The ID of the service quota that was exceeded.
",
"ThrottlingException$serviceCode": "The ID of the service that is associated with the error.
",
+ "UntagResourceRequest$resourceArn": "The ARN of the resource the tag association is removed from.
",
"UpdateError$message": "The message for this error.
",
"ValidationException$message": "A description of the error.
",
"ValidationExceptionField$message": "A message describing why this field couldn't be validated.
",
"ValidationExceptionField$name": "The name of the field that caused the validation error.
"
}
},
+ "TagKey": {
+ "base": null,
+ "refs": {
+ "TagKeys$member": null,
+ "TagMap$key": null
+ }
+ },
+ "TagKeys": {
+ "base": null,
+ "refs": {
+ "UntagResourceRequest$tagKeys": "The key values of the tag to be removed from the resource.
"
+ }
+ },
+ "TagMap": {
+ "base": null,
+ "refs": {
+ "CreateWorkspaceRequest$tags": "The list of tags associated with the workspace.
",
+ "ListTagsForResourceResponse$tags": "The list of tags that are associated with the resource.
",
+ "TagResourceRequest$tags": "The list of tag keys and values to associate with the resource. You can associate tag keys only, tags (key and values) only or a combination of tag keys and tags.
",
+ "WorkspaceDescription$tags": "The list of tags associated with the workspace.
",
+ "WorkspaceSummary$tags": "The list of tags associated with the workspace.
"
+ }
+ },
+ "TagResourceRequest": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "TagResourceResponse": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "TagValue": {
+ "base": null,
+ "refs": {
+ "TagMap$value": null
+ }
+ },
"ThrottlingException": {
"base": "The request was denied because of request throttling. Retry the request.
",
"refs": {
@@ -470,6 +525,16 @@
"WorkspaceSummary$modified": "The most recent date that the workspace was modified.
"
}
},
+ "UntagResourceRequest": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "UntagResourceResponse": {
+ "base": null,
+ "refs": {
+ }
+ },
"UpdateAction": {
"base": null,
"refs": {
diff --git a/models/apis/pinpoint-sms-voice-v2/2022-03-31/api-2.json b/models/apis/pinpoint-sms-voice-v2/2022-03-31/api-2.json
new file mode 100644
index 00000000000..abc304faaf6
--- /dev/null
+++ b/models/apis/pinpoint-sms-voice-v2/2022-03-31/api-2.json
@@ -0,0 +1,2764 @@
+{
+ "version":"2.0",
+ "metadata":{
+ "apiVersion":"2022-03-31",
+ "endpointPrefix":"sms-voice",
+ "jsonVersion":"1.0",
+ "protocol":"json",
+ "serviceFullName":"Amazon Pinpoint SMS Voice V2",
+ "serviceId":"Pinpoint SMS Voice V2",
+ "signatureVersion":"v4",
+ "signingName":"sms-voice",
+ "targetPrefix":"PinpointSMSVoiceV2",
+ "uid":"pinpoint-sms-voice-v2-2022-03-31"
+ },
+ "operations":{
+ "AssociateOriginationIdentity":{
+ "name":"AssociateOriginationIdentity",
+ "http":{
+ "method":"POST",
+ "requestUri":"/"
+ },
+ "input":{"shape":"AssociateOriginationIdentityRequest"},
+ "output":{"shape":"AssociateOriginationIdentityResult"},
+ "errors":[
+ {"shape":"ServiceQuotaExceededException"},
+ {"shape":"ThrottlingException"},
+ {"shape":"AccessDeniedException"},
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"ValidationException"},
+ {"shape":"ConflictException"},
+ {"shape":"InternalServerException"}
+ ]
+ },
+ "CreateConfigurationSet":{
+ "name":"CreateConfigurationSet",
+ "http":{
+ "method":"POST",
+ "requestUri":"/"
+ },
+ "input":{"shape":"CreateConfigurationSetRequest"},
+ "output":{"shape":"CreateConfigurationSetResult"},
+ "errors":[
+ {"shape":"ServiceQuotaExceededException"},
+ {"shape":"ThrottlingException"},
+ {"shape":"AccessDeniedException"},
+ {"shape":"ValidationException"},
+ {"shape":"ConflictException"},
+ {"shape":"InternalServerException"}
+ ]
+ },
+ "CreateEventDestination":{
+ "name":"CreateEventDestination",
+ "http":{
+ "method":"POST",
+ "requestUri":"/"
+ },
+ "input":{"shape":"CreateEventDestinationRequest"},
+ "output":{"shape":"CreateEventDestinationResult"},
+ "errors":[
+ {"shape":"ServiceQuotaExceededException"},
+ {"shape":"ThrottlingException"},
+ {"shape":"AccessDeniedException"},
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"ValidationException"},
+ {"shape":"ConflictException"},
+ {"shape":"InternalServerException"}
+ ]
+ },
+ "CreateOptOutList":{
+ "name":"CreateOptOutList",
+ "http":{
+ "method":"POST",
+ "requestUri":"/"
+ },
+ "input":{"shape":"CreateOptOutListRequest"},
+ "output":{"shape":"CreateOptOutListResult"},
+ "errors":[
+ {"shape":"ServiceQuotaExceededException"},
+ {"shape":"ThrottlingException"},
+ {"shape":"AccessDeniedException"},
+ {"shape":"ValidationException"},
+ {"shape":"ConflictException"},
+ {"shape":"InternalServerException"}
+ ]
+ },
+ "CreatePool":{
+ "name":"CreatePool",
+ "http":{
+ "method":"POST",
+ "requestUri":"/"
+ },
+ "input":{"shape":"CreatePoolRequest"},
+ "output":{"shape":"CreatePoolResult"},
+ "errors":[
+ {"shape":"ServiceQuotaExceededException"},
+ {"shape":"ThrottlingException"},
+ {"shape":"AccessDeniedException"},
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"ValidationException"},
+ {"shape":"ConflictException"},
+ {"shape":"InternalServerException"}
+ ]
+ },
+ "DeleteConfigurationSet":{
+ "name":"DeleteConfigurationSet",
+ "http":{
+ "method":"POST",
+ "requestUri":"/"
+ },
+ "input":{"shape":"DeleteConfigurationSetRequest"},
+ "output":{"shape":"DeleteConfigurationSetResult"},
+ "errors":[
+ {"shape":"ThrottlingException"},
+ {"shape":"AccessDeniedException"},
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"ValidationException"},
+ {"shape":"InternalServerException"}
+ ]
+ },
+ "DeleteDefaultMessageType":{
+ "name":"DeleteDefaultMessageType",
+ "http":{
+ "method":"POST",
+ "requestUri":"/"
+ },
+ "input":{"shape":"DeleteDefaultMessageTypeRequest"},
+ "output":{"shape":"DeleteDefaultMessageTypeResult"},
+ "errors":[
+ {"shape":"ThrottlingException"},
+ {"shape":"AccessDeniedException"},
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"ValidationException"},
+ {"shape":"InternalServerException"}
+ ]
+ },
+ "DeleteDefaultSenderId":{
+ "name":"DeleteDefaultSenderId",
+ "http":{
+ "method":"POST",
+ "requestUri":"/"
+ },
+ "input":{"shape":"DeleteDefaultSenderIdRequest"},
+ "output":{"shape":"DeleteDefaultSenderIdResult"},
+ "errors":[
+ {"shape":"ThrottlingException"},
+ {"shape":"AccessDeniedException"},
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"ValidationException"},
+ {"shape":"InternalServerException"}
+ ]
+ },
+ "DeleteEventDestination":{
+ "name":"DeleteEventDestination",
+ "http":{
+ "method":"POST",
+ "requestUri":"/"
+ },
+ "input":{"shape":"DeleteEventDestinationRequest"},
+ "output":{"shape":"DeleteEventDestinationResult"},
+ "errors":[
+ {"shape":"ThrottlingException"},
+ {"shape":"AccessDeniedException"},
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"ValidationException"},
+ {"shape":"InternalServerException"}
+ ]
+ },
+ "DeleteKeyword":{
+ "name":"DeleteKeyword",
+ "http":{
+ "method":"POST",
+ "requestUri":"/"
+ },
+ "input":{"shape":"DeleteKeywordRequest"},
+ "output":{"shape":"DeleteKeywordResult"},
+ "errors":[
+ {"shape":"ThrottlingException"},
+ {"shape":"AccessDeniedException"},
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"ValidationException"},
+ {"shape":"ConflictException"},
+ {"shape":"InternalServerException"}
+ ]
+ },
+ "DeleteOptOutList":{
+ "name":"DeleteOptOutList",
+ "http":{
+ "method":"POST",
+ "requestUri":"/"
+ },
+ "input":{"shape":"DeleteOptOutListRequest"},
+ "output":{"shape":"DeleteOptOutListResult"},
+ "errors":[
+ {"shape":"ThrottlingException"},
+ {"shape":"AccessDeniedException"},
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"ValidationException"},
+ {"shape":"ConflictException"},
+ {"shape":"InternalServerException"}
+ ]
+ },
+ "DeleteOptedOutNumber":{
+ "name":"DeleteOptedOutNumber",
+ "http":{
+ "method":"POST",
+ "requestUri":"/"
+ },
+ "input":{"shape":"DeleteOptedOutNumberRequest"},
+ "output":{"shape":"DeleteOptedOutNumberResult"},
+ "errors":[
+ {"shape":"ThrottlingException"},
+ {"shape":"AccessDeniedException"},
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"ValidationException"},
+ {"shape":"ConflictException"},
+ {"shape":"InternalServerException"}
+ ]
+ },
+ "DeletePool":{
+ "name":"DeletePool",
+ "http":{
+ "method":"POST",
+ "requestUri":"/"
+ },
+ "input":{"shape":"DeletePoolRequest"},
+ "output":{"shape":"DeletePoolResult"},
+ "errors":[
+ {"shape":"ThrottlingException"},
+ {"shape":"AccessDeniedException"},
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"ValidationException"},
+ {"shape":"ConflictException"},
+ {"shape":"InternalServerException"}
+ ]
+ },
+ "DeleteTextMessageSpendLimitOverride":{
+ "name":"DeleteTextMessageSpendLimitOverride",
+ "http":{
+ "method":"POST",
+ "requestUri":"/"
+ },
+ "input":{"shape":"DeleteTextMessageSpendLimitOverrideRequest"},
+ "output":{"shape":"DeleteTextMessageSpendLimitOverrideResult"},
+ "errors":[
+ {"shape":"ThrottlingException"},
+ {"shape":"AccessDeniedException"},
+ {"shape":"ValidationException"},
+ {"shape":"InternalServerException"}
+ ]
+ },
+ "DeleteVoiceMessageSpendLimitOverride":{
+ "name":"DeleteVoiceMessageSpendLimitOverride",
+ "http":{
+ "method":"POST",
+ "requestUri":"/"
+ },
+ "input":{"shape":"DeleteVoiceMessageSpendLimitOverrideRequest"},
+ "output":{"shape":"DeleteVoiceMessageSpendLimitOverrideResult"},
+ "errors":[
+ {"shape":"ThrottlingException"},
+ {"shape":"AccessDeniedException"},
+ {"shape":"ValidationException"},
+ {"shape":"InternalServerException"}
+ ]
+ },
+ "DescribeAccountAttributes":{
+ "name":"DescribeAccountAttributes",
+ "http":{
+ "method":"POST",
+ "requestUri":"/"
+ },
+ "input":{"shape":"DescribeAccountAttributesRequest"},
+ "output":{"shape":"DescribeAccountAttributesResult"},
+ "errors":[
+ {"shape":"ThrottlingException"},
+ {"shape":"AccessDeniedException"},
+ {"shape":"ValidationException"},
+ {"shape":"InternalServerException"}
+ ]
+ },
+ "DescribeAccountLimits":{
+ "name":"DescribeAccountLimits",
+ "http":{
+ "method":"POST",
+ "requestUri":"/"
+ },
+ "input":{"shape":"DescribeAccountLimitsRequest"},
+ "output":{"shape":"DescribeAccountLimitsResult"},
+ "errors":[
+ {"shape":"ThrottlingException"},
+ {"shape":"AccessDeniedException"},
+ {"shape":"ValidationException"},
+ {"shape":"InternalServerException"}
+ ]
+ },
+ "DescribeConfigurationSets":{
+ "name":"DescribeConfigurationSets",
+ "http":{
+ "method":"POST",
+ "requestUri":"/"
+ },
+ "input":{"shape":"DescribeConfigurationSetsRequest"},
+ "output":{"shape":"DescribeConfigurationSetsResult"},
+ "errors":[
+ {"shape":"ThrottlingException"},
+ {"shape":"AccessDeniedException"},
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"ValidationException"},
+ {"shape":"InternalServerException"}
+ ]
+ },
+ "DescribeKeywords":{
+ "name":"DescribeKeywords",
+ "http":{
+ "method":"POST",
+ "requestUri":"/"
+ },
+ "input":{"shape":"DescribeKeywordsRequest"},
+ "output":{"shape":"DescribeKeywordsResult"},
+ "errors":[
+ {"shape":"ThrottlingException"},
+ {"shape":"AccessDeniedException"},
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"ValidationException"},
+ {"shape":"InternalServerException"}
+ ]
+ },
+ "DescribeOptOutLists":{
+ "name":"DescribeOptOutLists",
+ "http":{
+ "method":"POST",
+ "requestUri":"/"
+ },
+ "input":{"shape":"DescribeOptOutListsRequest"},
+ "output":{"shape":"DescribeOptOutListsResult"},
+ "errors":[
+ {"shape":"ThrottlingException"},
+ {"shape":"AccessDeniedException"},
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"ValidationException"},
+ {"shape":"InternalServerException"}
+ ]
+ },
+ "DescribeOptedOutNumbers":{
+ "name":"DescribeOptedOutNumbers",
+ "http":{
+ "method":"POST",
+ "requestUri":"/"
+ },
+ "input":{"shape":"DescribeOptedOutNumbersRequest"},
+ "output":{"shape":"DescribeOptedOutNumbersResult"},
+ "errors":[
+ {"shape":"ThrottlingException"},
+ {"shape":"AccessDeniedException"},
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"ValidationException"},
+ {"shape":"InternalServerException"}
+ ]
+ },
+ "DescribePhoneNumbers":{
+ "name":"DescribePhoneNumbers",
+ "http":{
+ "method":"POST",
+ "requestUri":"/"
+ },
+ "input":{"shape":"DescribePhoneNumbersRequest"},
+ "output":{"shape":"DescribePhoneNumbersResult"},
+ "errors":[
+ {"shape":"ThrottlingException"},
+ {"shape":"AccessDeniedException"},
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"ValidationException"},
+ {"shape":"InternalServerException"}
+ ]
+ },
+ "DescribePools":{
+ "name":"DescribePools",
+ "http":{
+ "method":"POST",
+ "requestUri":"/"
+ },
+ "input":{"shape":"DescribePoolsRequest"},
+ "output":{"shape":"DescribePoolsResult"},
+ "errors":[
+ {"shape":"ThrottlingException"},
+ {"shape":"AccessDeniedException"},
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"ValidationException"},
+ {"shape":"InternalServerException"}
+ ]
+ },
+ "DescribeSenderIds":{
+ "name":"DescribeSenderIds",
+ "http":{
+ "method":"POST",
+ "requestUri":"/"
+ },
+ "input":{"shape":"DescribeSenderIdsRequest"},
+ "output":{"shape":"DescribeSenderIdsResult"},
+ "errors":[
+ {"shape":"ThrottlingException"},
+ {"shape":"AccessDeniedException"},
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"ValidationException"},
+ {"shape":"InternalServerException"}
+ ]
+ },
+ "DescribeSpendLimits":{
+ "name":"DescribeSpendLimits",
+ "http":{
+ "method":"POST",
+ "requestUri":"/"
+ },
+ "input":{"shape":"DescribeSpendLimitsRequest"},
+ "output":{"shape":"DescribeSpendLimitsResult"},
+ "errors":[
+ {"shape":"ThrottlingException"},
+ {"shape":"AccessDeniedException"},
+ {"shape":"ValidationException"},
+ {"shape":"InternalServerException"}
+ ]
+ },
+ "DisassociateOriginationIdentity":{
+ "name":"DisassociateOriginationIdentity",
+ "http":{
+ "method":"POST",
+ "requestUri":"/"
+ },
+ "input":{"shape":"DisassociateOriginationIdentityRequest"},
+ "output":{"shape":"DisassociateOriginationIdentityResult"},
+ "errors":[
+ {"shape":"ThrottlingException"},
+ {"shape":"AccessDeniedException"},
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"ValidationException"},
+ {"shape":"ConflictException"},
+ {"shape":"InternalServerException"}
+ ]
+ },
+ "ListPoolOriginationIdentities":{
+ "name":"ListPoolOriginationIdentities",
+ "http":{
+ "method":"POST",
+ "requestUri":"/"
+ },
+ "input":{"shape":"ListPoolOriginationIdentitiesRequest"},
+ "output":{"shape":"ListPoolOriginationIdentitiesResult"},
+ "errors":[
+ {"shape":"ThrottlingException"},
+ {"shape":"AccessDeniedException"},
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"ValidationException"},
+ {"shape":"InternalServerException"}
+ ]
+ },
+ "ListTagsForResource":{
+ "name":"ListTagsForResource",
+ "http":{
+ "method":"POST",
+ "requestUri":"/"
+ },
+ "input":{"shape":"ListTagsForResourceRequest"},
+ "output":{"shape":"ListTagsForResourceResult"},
+ "errors":[
+ {"shape":"ThrottlingException"},
+ {"shape":"AccessDeniedException"},
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"ValidationException"},
+ {"shape":"InternalServerException"}
+ ]
+ },
+ "PutKeyword":{
+ "name":"PutKeyword",
+ "http":{
+ "method":"POST",
+ "requestUri":"/"
+ },
+ "input":{"shape":"PutKeywordRequest"},
+ "output":{"shape":"PutKeywordResult"},
+ "errors":[
+ {"shape":"ServiceQuotaExceededException"},
+ {"shape":"ThrottlingException"},
+ {"shape":"AccessDeniedException"},
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"ValidationException"},
+ {"shape":"ConflictException"},
+ {"shape":"InternalServerException"}
+ ]
+ },
+ "PutOptedOutNumber":{
+ "name":"PutOptedOutNumber",
+ "http":{
+ "method":"POST",
+ "requestUri":"/"
+ },
+ "input":{"shape":"PutOptedOutNumberRequest"},
+ "output":{"shape":"PutOptedOutNumberResult"},
+ "errors":[
+ {"shape":"ThrottlingException"},
+ {"shape":"AccessDeniedException"},
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"ValidationException"},
+ {"shape":"InternalServerException"}
+ ]
+ },
+ "ReleasePhoneNumber":{
+ "name":"ReleasePhoneNumber",
+ "http":{
+ "method":"POST",
+ "requestUri":"/"
+ },
+ "input":{"shape":"ReleasePhoneNumberRequest"},
+ "output":{"shape":"ReleasePhoneNumberResult"},
+ "errors":[
+ {"shape":"ThrottlingException"},
+ {"shape":"AccessDeniedException"},
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"ValidationException"},
+ {"shape":"ConflictException"},
+ {"shape":"InternalServerException"}
+ ]
+ },
+ "RequestPhoneNumber":{
+ "name":"RequestPhoneNumber",
+ "http":{
+ "method":"POST",
+ "requestUri":"/"
+ },
+ "input":{"shape":"RequestPhoneNumberRequest"},
+ "output":{"shape":"RequestPhoneNumberResult"},
+ "errors":[
+ {"shape":"ServiceQuotaExceededException"},
+ {"shape":"ThrottlingException"},
+ {"shape":"AccessDeniedException"},
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"ValidationException"},
+ {"shape":"ConflictException"},
+ {"shape":"InternalServerException"}
+ ]
+ },
+ "SendTextMessage":{
+ "name":"SendTextMessage",
+ "http":{
+ "method":"POST",
+ "requestUri":"/"
+ },
+ "input":{"shape":"SendTextMessageRequest"},
+ "output":{"shape":"SendTextMessageResult"},
+ "errors":[
+ {"shape":"ServiceQuotaExceededException"},
+ {"shape":"ThrottlingException"},
+ {"shape":"AccessDeniedException"},
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"ValidationException"},
+ {"shape":"ConflictException"},
+ {"shape":"InternalServerException"}
+ ]
+ },
+ "SendVoiceMessage":{
+ "name":"SendVoiceMessage",
+ "http":{
+ "method":"POST",
+ "requestUri":"/"
+ },
+ "input":{"shape":"SendVoiceMessageRequest"},
+ "output":{"shape":"SendVoiceMessageResult"},
+ "errors":[
+ {"shape":"ServiceQuotaExceededException"},
+ {"shape":"ThrottlingException"},
+ {"shape":"AccessDeniedException"},
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"ValidationException"},
+ {"shape":"ConflictException"},
+ {"shape":"InternalServerException"}
+ ]
+ },
+ "SetDefaultMessageType":{
+ "name":"SetDefaultMessageType",
+ "http":{
+ "method":"POST",
+ "requestUri":"/"
+ },
+ "input":{"shape":"SetDefaultMessageTypeRequest"},
+ "output":{"shape":"SetDefaultMessageTypeResult"},
+ "errors":[
+ {"shape":"ThrottlingException"},
+ {"shape":"AccessDeniedException"},
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"ValidationException"},
+ {"shape":"InternalServerException"}
+ ]
+ },
+ "SetDefaultSenderId":{
+ "name":"SetDefaultSenderId",
+ "http":{
+ "method":"POST",
+ "requestUri":"/"
+ },
+ "input":{"shape":"SetDefaultSenderIdRequest"},
+ "output":{"shape":"SetDefaultSenderIdResult"},
+ "errors":[
+ {"shape":"ThrottlingException"},
+ {"shape":"AccessDeniedException"},
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"ValidationException"},
+ {"shape":"InternalServerException"}
+ ]
+ },
+ "SetTextMessageSpendLimitOverride":{
+ "name":"SetTextMessageSpendLimitOverride",
+ "http":{
+ "method":"POST",
+ "requestUri":"/"
+ },
+ "input":{"shape":"SetTextMessageSpendLimitOverrideRequest"},
+ "output":{"shape":"SetTextMessageSpendLimitOverrideResult"},
+ "errors":[
+ {"shape":"ThrottlingException"},
+ {"shape":"AccessDeniedException"},
+ {"shape":"ValidationException"},
+ {"shape":"InternalServerException"}
+ ]
+ },
+ "SetVoiceMessageSpendLimitOverride":{
+ "name":"SetVoiceMessageSpendLimitOverride",
+ "http":{
+ "method":"POST",
+ "requestUri":"/"
+ },
+ "input":{"shape":"SetVoiceMessageSpendLimitOverrideRequest"},
+ "output":{"shape":"SetVoiceMessageSpendLimitOverrideResult"},
+ "errors":[
+ {"shape":"ThrottlingException"},
+ {"shape":"AccessDeniedException"},
+ {"shape":"ValidationException"},
+ {"shape":"InternalServerException"}
+ ]
+ },
+ "TagResource":{
+ "name":"TagResource",
+ "http":{
+ "method":"POST",
+ "requestUri":"/"
+ },
+ "input":{"shape":"TagResourceRequest"},
+ "output":{"shape":"TagResourceResult"},
+ "errors":[
+ {"shape":"ServiceQuotaExceededException"},
+ {"shape":"ThrottlingException"},
+ {"shape":"AccessDeniedException"},
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"ValidationException"},
+ {"shape":"InternalServerException"}
+ ]
+ },
+ "UntagResource":{
+ "name":"UntagResource",
+ "http":{
+ "method":"POST",
+ "requestUri":"/"
+ },
+ "input":{"shape":"UntagResourceRequest"},
+ "output":{"shape":"UntagResourceResult"},
+ "errors":[
+ {"shape":"ThrottlingException"},
+ {"shape":"AccessDeniedException"},
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"ValidationException"},
+ {"shape":"InternalServerException"}
+ ]
+ },
+ "UpdateEventDestination":{
+ "name":"UpdateEventDestination",
+ "http":{
+ "method":"POST",
+ "requestUri":"/"
+ },
+ "input":{"shape":"UpdateEventDestinationRequest"},
+ "output":{"shape":"UpdateEventDestinationResult"},
+ "errors":[
+ {"shape":"ThrottlingException"},
+ {"shape":"AccessDeniedException"},
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"ValidationException"},
+ {"shape":"ConflictException"},
+ {"shape":"InternalServerException"}
+ ]
+ },
+ "UpdatePhoneNumber":{
+ "name":"UpdatePhoneNumber",
+ "http":{
+ "method":"POST",
+ "requestUri":"/"
+ },
+ "input":{"shape":"UpdatePhoneNumberRequest"},
+ "output":{"shape":"UpdatePhoneNumberResult"},
+ "errors":[
+ {"shape":"ThrottlingException"},
+ {"shape":"AccessDeniedException"},
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"ValidationException"},
+ {"shape":"ConflictException"},
+ {"shape":"InternalServerException"}
+ ]
+ },
+ "UpdatePool":{
+ "name":"UpdatePool",
+ "http":{
+ "method":"POST",
+ "requestUri":"/"
+ },
+ "input":{"shape":"UpdatePoolRequest"},
+ "output":{"shape":"UpdatePoolResult"},
+ "errors":[
+ {"shape":"ThrottlingException"},
+ {"shape":"AccessDeniedException"},
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"ValidationException"},
+ {"shape":"ConflictException"},
+ {"shape":"InternalServerException"}
+ ]
+ }
+ },
+ "shapes":{
+ "AccessDeniedException":{
+ "type":"structure",
+ "members":{
+ "Message":{"shape":"String"},
+ "Reason":{"shape":"AccessDeniedExceptionReason"}
+ },
+ "exception":true
+ },
+ "AccessDeniedExceptionReason":{
+ "type":"string",
+ "enum":[
+ "INSUFFICIENT_ACCOUNT_REPUTATION",
+ "ACCOUNT_DISABLED"
+ ]
+ },
+ "AccountAttribute":{
+ "type":"structure",
+ "required":[
+ "Name",
+ "Value"
+ ],
+ "members":{
+ "Name":{"shape":"AccountAttributeName"},
+ "Value":{"shape":"String"}
+ }
+ },
+ "AccountAttributeList":{
+ "type":"list",
+ "member":{"shape":"AccountAttribute"}
+ },
+ "AccountAttributeName":{
+ "type":"string",
+ "enum":["ACCOUNT_TIER"]
+ },
+ "AccountLimit":{
+ "type":"structure",
+ "required":[
+ "Name",
+ "Used",
+ "Max"
+ ],
+ "members":{
+ "Name":{"shape":"AccountLimitName"},
+ "Used":{"shape":"PrimitiveLong"},
+ "Max":{"shape":"PrimitiveLong"}
+ }
+ },
+ "AccountLimitList":{
+ "type":"list",
+ "member":{"shape":"AccountLimit"}
+ },
+ "AccountLimitName":{
+ "type":"string",
+ "enum":[
+ "PHONE_NUMBERS",
+ "POOLS",
+ "CONFIGURATION_SETS",
+ "OPT_OUT_LISTS"
+ ]
+ },
+ "AmazonResourceName":{
+ "type":"string",
+ "max":256,
+ "min":20,
+ "pattern":"arn:[A-Za-z0-9_:/-]+"
+ },
+ "AssociateOriginationIdentityRequest":{
+ "type":"structure",
+ "required":[
+ "PoolId",
+ "OriginationIdentity",
+ "IsoCountryCode"
+ ],
+ "members":{
+ "PoolId":{"shape":"PoolIdOrArn"},
+ "OriginationIdentity":{"shape":"PhoneOrSenderIdOrArn"},
+ "IsoCountryCode":{"shape":"IsoCountryCode"},
+ "ClientToken":{
+ "shape":"ClientToken",
+ "idempotencyToken":true
+ }
+ }
+ },
+ "AssociateOriginationIdentityResult":{
+ "type":"structure",
+ "members":{
+ "PoolArn":{"shape":"String"},
+ "PoolId":{"shape":"String"},
+ "OriginationIdentityArn":{"shape":"String"},
+ "OriginationIdentity":{"shape":"String"},
+ "IsoCountryCode":{"shape":"IsoCountryCode"}
+ }
+ },
+ "Boolean":{
+ "type":"boolean",
+ "box":true
+ },
+ "ClientToken":{
+ "type":"string",
+ "max":64,
+ "min":1,
+ "pattern":"[!-~]+"
+ },
+ "CloudWatchLogsDestination":{
+ "type":"structure",
+ "required":[
+ "IamRoleArn",
+ "LogGroupArn"
+ ],
+ "members":{
+ "IamRoleArn":{"shape":"IamRoleArn"},
+ "LogGroupArn":{"shape":"LogGroupArn"}
+ }
+ },
+ "ConfigurationSetFilter":{
+ "type":"structure",
+ "required":[
+ "Name",
+ "Values"
+ ],
+ "members":{
+ "Name":{"shape":"ConfigurationSetFilterName"},
+ "Values":{"shape":"FilterValueList"}
+ }
+ },
+ "ConfigurationSetFilterList":{
+ "type":"list",
+ "member":{"shape":"ConfigurationSetFilter"},
+ "max":20,
+ "min":0
+ },
+ "ConfigurationSetFilterName":{
+ "type":"string",
+ "enum":[
+ "event-destination-name",
+ "matching-event-types",
+ "default-message-type",
+ "default-sender-id"
+ ]
+ },
+ "ConfigurationSetInformation":{
+ "type":"structure",
+ "required":[
+ "ConfigurationSetArn",
+ "ConfigurationSetName",
+ "EventDestinations",
+ "CreatedTimestamp"
+ ],
+ "members":{
+ "ConfigurationSetArn":{"shape":"String"},
+ "ConfigurationSetName":{"shape":"ConfigurationSetName"},
+ "EventDestinations":{"shape":"EventDestinationList"},
+ "DefaultMessageType":{"shape":"MessageType"},
+ "DefaultSenderId":{"shape":"SenderId"},
+ "CreatedTimestamp":{"shape":"Timestamp"}
+ }
+ },
+ "ConfigurationSetInformationList":{
+ "type":"list",
+ "member":{"shape":"ConfigurationSetInformation"}
+ },
+ "ConfigurationSetName":{
+ "type":"string",
+ "max":64,
+ "min":1,
+ "pattern":"[A-Za-z0-9_-]+"
+ },
+ "ConfigurationSetNameList":{
+ "type":"list",
+ "member":{"shape":"ConfigurationSetNameOrArn"},
+ "max":5,
+ "min":0
+ },
+ "ConfigurationSetNameOrArn":{
+ "type":"string",
+ "max":256,
+ "min":1,
+ "pattern":"[A-Za-z0-9_:/-]+"
+ },
+ "ConflictException":{
+ "type":"structure",
+ "members":{
+ "Message":{"shape":"String"},
+ "Reason":{"shape":"ConflictExceptionReason"},
+ "ResourceType":{"shape":"ResourceType"},
+ "ResourceId":{"shape":"String"}
+ },
+ "exception":true
+ },
+ "ConflictExceptionReason":{
+ "type":"string",
+ "enum":[
+ "DELETION_PROTECTION_ENABLED",
+ "DESTINATION_PHONE_NUMBER_NOT_VERIFIED",
+ "DESTINATION_PHONE_NUMBER_OPTED_OUT",
+ "EVENT_DESTINATION_MISMATCH",
+ "KEYWORD_MISMATCH",
+ "LAST_PHONE_NUMBER",
+ "SELF_MANAGED_OPT_OUTS_MISMATCH",
+ "MESSAGE_TYPE_MISMATCH",
+ "NO_ORIGINATION_IDENTITIES_FOUND",
+ "OPT_OUT_LIST_MISMATCH",
+ "PHONE_NUMBER_ASSOCIATED_TO_POOL",
+ "PHONE_NUMBER_NOT_ASSOCIATED_TO_POOL",
+ "PHONE_NUMBER_NOT_IN_REGISTRATION_REGION",
+ "RESOURCE_ALREADY_EXISTS",
+ "RESOURCE_DELETION_NOT_ALLOWED",
+ "RESOURCE_MODIFICATION_NOT_ALLOWED",
+ "RESOURCE_NOT_ACTIVE",
+ "RESOURCE_NOT_EMPTY",
+ "TWO_WAY_CONFIG_MISMATCH"
+ ]
+ },
+ "ContextKey":{
+ "type":"string",
+ "max":100,
+ "min":1,
+ "pattern":"\\S+"
+ },
+ "ContextMap":{
+ "type":"map",
+ "key":{"shape":"ContextKey"},
+ "value":{"shape":"ContextValue"},
+ "max":5,
+ "min":0
+ },
+ "ContextValue":{
+ "type":"string",
+ "max":800,
+ "min":1,
+ "pattern":"\\S+"
+ },
+ "CreateConfigurationSetRequest":{
+ "type":"structure",
+ "required":["ConfigurationSetName"],
+ "members":{
+ "ConfigurationSetName":{"shape":"ConfigurationSetName"},
+ "Tags":{"shape":"TagList"},
+ "ClientToken":{
+ "shape":"ClientToken",
+ "idempotencyToken":true
+ }
+ }
+ },
+ "CreateConfigurationSetResult":{
+ "type":"structure",
+ "members":{
+ "ConfigurationSetArn":{"shape":"String"},
+ "ConfigurationSetName":{"shape":"ConfigurationSetName"},
+ "Tags":{"shape":"TagList"},
+ "CreatedTimestamp":{"shape":"Timestamp"}
+ }
+ },
+ "CreateEventDestinationRequest":{
+ "type":"structure",
+ "required":[
+ "ConfigurationSetName",
+ "EventDestinationName",
+ "MatchingEventTypes"
+ ],
+ "members":{
+ "ConfigurationSetName":{"shape":"ConfigurationSetNameOrArn"},
+ "EventDestinationName":{"shape":"EventDestinationName"},
+ "MatchingEventTypes":{"shape":"EventTypeList"},
+ "CloudWatchLogsDestination":{"shape":"CloudWatchLogsDestination"},
+ "KinesisFirehoseDestination":{"shape":"KinesisFirehoseDestination"},
+ "SnsDestination":{"shape":"SnsDestination"},
+ "ClientToken":{
+ "shape":"ClientToken",
+ "idempotencyToken":true
+ }
+ }
+ },
+ "CreateEventDestinationResult":{
+ "type":"structure",
+ "members":{
+ "ConfigurationSetArn":{"shape":"String"},
+ "ConfigurationSetName":{"shape":"ConfigurationSetName"},
+ "EventDestination":{"shape":"EventDestination"}
+ }
+ },
+ "CreateOptOutListRequest":{
+ "type":"structure",
+ "required":["OptOutListName"],
+ "members":{
+ "OptOutListName":{"shape":"OptOutListName"},
+ "Tags":{"shape":"TagList"},
+ "ClientToken":{
+ "shape":"ClientToken",
+ "idempotencyToken":true
+ }
+ }
+ },
+ "CreateOptOutListResult":{
+ "type":"structure",
+ "members":{
+ "OptOutListArn":{"shape":"String"},
+ "OptOutListName":{"shape":"OptOutListName"},
+ "Tags":{"shape":"TagList"},
+ "CreatedTimestamp":{"shape":"Timestamp"}
+ }
+ },
+ "CreatePoolRequest":{
+ "type":"structure",
+ "required":[
+ "OriginationIdentity",
+ "IsoCountryCode",
+ "MessageType"
+ ],
+ "members":{
+ "OriginationIdentity":{"shape":"PhoneOrSenderIdOrArn"},
+ "IsoCountryCode":{"shape":"IsoCountryCode"},
+ "MessageType":{"shape":"MessageType"},
+ "DeletionProtectionEnabled":{"shape":"Boolean"},
+ "Tags":{"shape":"TagList"},
+ "ClientToken":{
+ "shape":"ClientToken",
+ "idempotencyToken":true
+ }
+ }
+ },
+ "CreatePoolResult":{
+ "type":"structure",
+ "members":{
+ "PoolArn":{"shape":"String"},
+ "PoolId":{"shape":"String"},
+ "Status":{"shape":"PoolStatus"},
+ "MessageType":{"shape":"MessageType"},
+ "TwoWayEnabled":{"shape":"PrimitiveBoolean"},
+ "TwoWayChannelArn":{"shape":"TwoWayChannelArn"},
+ "SelfManagedOptOutsEnabled":{"shape":"PrimitiveBoolean"},
+ "OptOutListName":{"shape":"OptOutListName"},
+ "SharedRoutesEnabled":{"shape":"PrimitiveBoolean"},
+ "DeletionProtectionEnabled":{"shape":"PrimitiveBoolean"},
+ "Tags":{"shape":"TagList"},
+ "CreatedTimestamp":{"shape":"Timestamp"}
+ }
+ },
+ "DeleteConfigurationSetRequest":{
+ "type":"structure",
+ "required":["ConfigurationSetName"],
+ "members":{
+ "ConfigurationSetName":{"shape":"ConfigurationSetNameOrArn"}
+ }
+ },
+ "DeleteConfigurationSetResult":{
+ "type":"structure",
+ "members":{
+ "ConfigurationSetArn":{"shape":"String"},
+ "ConfigurationSetName":{"shape":"ConfigurationSetName"},
+ "EventDestinations":{"shape":"EventDestinationList"},
+ "DefaultMessageType":{"shape":"MessageType"},
+ "DefaultSenderId":{"shape":"SenderId"},
+ "CreatedTimestamp":{"shape":"Timestamp"}
+ }
+ },
+ "DeleteDefaultMessageTypeRequest":{
+ "type":"structure",
+ "required":["ConfigurationSetName"],
+ "members":{
+ "ConfigurationSetName":{"shape":"ConfigurationSetNameOrArn"}
+ }
+ },
+ "DeleteDefaultMessageTypeResult":{
+ "type":"structure",
+ "members":{
+ "ConfigurationSetArn":{"shape":"String"},
+ "ConfigurationSetName":{"shape":"ConfigurationSetName"},
+ "MessageType":{"shape":"MessageType"}
+ }
+ },
+ "DeleteDefaultSenderIdRequest":{
+ "type":"structure",
+ "required":["ConfigurationSetName"],
+ "members":{
+ "ConfigurationSetName":{"shape":"ConfigurationSetNameOrArn"}
+ }
+ },
+ "DeleteDefaultSenderIdResult":{
+ "type":"structure",
+ "members":{
+ "ConfigurationSetArn":{"shape":"String"},
+ "ConfigurationSetName":{"shape":"ConfigurationSetName"},
+ "SenderId":{"shape":"SenderId"}
+ }
+ },
+ "DeleteEventDestinationRequest":{
+ "type":"structure",
+ "required":[
+ "ConfigurationSetName",
+ "EventDestinationName"
+ ],
+ "members":{
+ "ConfigurationSetName":{"shape":"ConfigurationSetNameOrArn"},
+ "EventDestinationName":{"shape":"EventDestinationName"}
+ }
+ },
+ "DeleteEventDestinationResult":{
+ "type":"structure",
+ "members":{
+ "ConfigurationSetArn":{"shape":"String"},
+ "ConfigurationSetName":{"shape":"ConfigurationSetName"},
+ "EventDestination":{"shape":"EventDestination"}
+ }
+ },
+ "DeleteKeywordRequest":{
+ "type":"structure",
+ "required":[
+ "OriginationIdentity",
+ "Keyword"
+ ],
+ "members":{
+ "OriginationIdentity":{"shape":"PhoneOrPoolIdOrArn"},
+ "Keyword":{"shape":"Keyword"}
+ }
+ },
+ "DeleteKeywordResult":{
+ "type":"structure",
+ "members":{
+ "OriginationIdentityArn":{"shape":"String"},
+ "OriginationIdentity":{"shape":"String"},
+ "Keyword":{"shape":"Keyword"},
+ "KeywordMessage":{"shape":"KeywordMessage"},
+ "KeywordAction":{"shape":"KeywordAction"}
+ }
+ },
+ "DeleteOptOutListRequest":{
+ "type":"structure",
+ "required":["OptOutListName"],
+ "members":{
+ "OptOutListName":{"shape":"OptOutListNameOrArn"}
+ }
+ },
+ "DeleteOptOutListResult":{
+ "type":"structure",
+ "members":{
+ "OptOutListArn":{"shape":"String"},
+ "OptOutListName":{"shape":"OptOutListName"},
+ "CreatedTimestamp":{"shape":"Timestamp"}
+ }
+ },
+ "DeleteOptedOutNumberRequest":{
+ "type":"structure",
+ "required":[
+ "OptOutListName",
+ "OptedOutNumber"
+ ],
+ "members":{
+ "OptOutListName":{"shape":"OptOutListNameOrArn"},
+ "OptedOutNumber":{"shape":"PhoneNumber"}
+ }
+ },
+ "DeleteOptedOutNumberResult":{
+ "type":"structure",
+ "members":{
+ "OptOutListArn":{"shape":"String"},
+ "OptOutListName":{"shape":"OptOutListName"},
+ "OptedOutNumber":{"shape":"PhoneNumber"},
+ "OptedOutTimestamp":{"shape":"Timestamp"},
+ "EndUserOptedOut":{"shape":"PrimitiveBoolean"}
+ }
+ },
+ "DeletePoolRequest":{
+ "type":"structure",
+ "required":["PoolId"],
+ "members":{
+ "PoolId":{"shape":"PoolIdOrArn"}
+ }
+ },
+ "DeletePoolResult":{
+ "type":"structure",
+ "members":{
+ "PoolArn":{"shape":"String"},
+ "PoolId":{"shape":"String"},
+ "Status":{"shape":"PoolStatus"},
+ "MessageType":{"shape":"MessageType"},
+ "TwoWayEnabled":{"shape":"PrimitiveBoolean"},
+ "TwoWayChannelArn":{"shape":"TwoWayChannelArn"},
+ "SelfManagedOptOutsEnabled":{"shape":"PrimitiveBoolean"},
+ "OptOutListName":{"shape":"OptOutListName"},
+ "SharedRoutesEnabled":{"shape":"PrimitiveBoolean"},
+ "CreatedTimestamp":{"shape":"Timestamp"}
+ }
+ },
+ "DeleteTextMessageSpendLimitOverrideRequest":{
+ "type":"structure",
+ "members":{
+ }
+ },
+ "DeleteTextMessageSpendLimitOverrideResult":{
+ "type":"structure",
+ "members":{
+ "MonthlyLimit":{"shape":"MonthlyLimit"}
+ }
+ },
+ "DeleteVoiceMessageSpendLimitOverrideRequest":{
+ "type":"structure",
+ "members":{
+ }
+ },
+ "DeleteVoiceMessageSpendLimitOverrideResult":{
+ "type":"structure",
+ "members":{
+ "MonthlyLimit":{"shape":"MonthlyLimit"}
+ }
+ },
+ "DeliveryStreamArn":{
+ "type":"string",
+ "max":2048,
+ "min":20,
+ "pattern":"arn:\\S+"
+ },
+ "DescribeAccountAttributesRequest":{
+ "type":"structure",
+ "members":{
+ "NextToken":{"shape":"NextToken"},
+ "MaxResults":{"shape":"MaxResults"}
+ }
+ },
+ "DescribeAccountAttributesResult":{
+ "type":"structure",
+ "members":{
+ "AccountAttributes":{"shape":"AccountAttributeList"},
+ "NextToken":{"shape":"NextToken"}
+ }
+ },
+ "DescribeAccountLimitsRequest":{
+ "type":"structure",
+ "members":{
+ "NextToken":{"shape":"NextToken"},
+ "MaxResults":{"shape":"MaxResults"}
+ }
+ },
+ "DescribeAccountLimitsResult":{
+ "type":"structure",
+ "members":{
+ "AccountLimits":{"shape":"AccountLimitList"},
+ "NextToken":{"shape":"NextToken"}
+ }
+ },
+ "DescribeConfigurationSetsRequest":{
+ "type":"structure",
+ "members":{
+ "ConfigurationSetNames":{"shape":"ConfigurationSetNameList"},
+ "Filters":{"shape":"ConfigurationSetFilterList"},
+ "NextToken":{"shape":"NextToken"},
+ "MaxResults":{"shape":"MaxResults"}
+ }
+ },
+ "DescribeConfigurationSetsResult":{
+ "type":"structure",
+ "members":{
+ "ConfigurationSets":{"shape":"ConfigurationSetInformationList"},
+ "NextToken":{"shape":"NextToken"}
+ }
+ },
+ "DescribeKeywordsRequest":{
+ "type":"structure",
+ "required":["OriginationIdentity"],
+ "members":{
+ "OriginationIdentity":{"shape":"PhoneOrPoolIdOrArn"},
+ "Keywords":{"shape":"KeywordList"},
+ "Filters":{"shape":"KeywordFilterList"},
+ "NextToken":{"shape":"NextToken"},
+ "MaxResults":{"shape":"MaxResults"}
+ }
+ },
+ "DescribeKeywordsResult":{
+ "type":"structure",
+ "members":{
+ "OriginationIdentityArn":{"shape":"String"},
+ "OriginationIdentity":{"shape":"String"},
+ "Keywords":{"shape":"KeywordInformationList"},
+ "NextToken":{"shape":"NextToken"}
+ }
+ },
+ "DescribeOptOutListsRequest":{
+ "type":"structure",
+ "members":{
+ "OptOutListNames":{"shape":"OptOutListNameList"},
+ "NextToken":{"shape":"NextToken"},
+ "MaxResults":{"shape":"MaxResults"}
+ }
+ },
+ "DescribeOptOutListsResult":{
+ "type":"structure",
+ "members":{
+ "OptOutLists":{"shape":"OptOutListInformationList"},
+ "NextToken":{"shape":"NextToken"}
+ }
+ },
+ "DescribeOptedOutNumbersRequest":{
+ "type":"structure",
+ "required":["OptOutListName"],
+ "members":{
+ "OptOutListName":{"shape":"OptOutListNameOrArn"},
+ "OptedOutNumbers":{"shape":"OptedOutNumberList"},
+ "Filters":{"shape":"OptedOutFilterList"},
+ "NextToken":{"shape":"NextToken"},
+ "MaxResults":{"shape":"MaxResults"}
+ }
+ },
+ "DescribeOptedOutNumbersResult":{
+ "type":"structure",
+ "members":{
+ "OptOutListArn":{"shape":"String"},
+ "OptOutListName":{"shape":"OptOutListName"},
+ "OptedOutNumbers":{"shape":"OptedOutNumberInformationList"},
+ "NextToken":{"shape":"NextToken"}
+ }
+ },
+ "DescribePhoneNumbersRequest":{
+ "type":"structure",
+ "members":{
+ "PhoneNumberIds":{"shape":"PhoneNumberIdList"},
+ "Filters":{"shape":"PhoneNumberFilterList"},
+ "NextToken":{"shape":"NextToken"},
+ "MaxResults":{"shape":"MaxResults"}
+ }
+ },
+ "DescribePhoneNumbersResult":{
+ "type":"structure",
+ "members":{
+ "PhoneNumbers":{"shape":"PhoneNumberInformationList"},
+ "NextToken":{"shape":"NextToken"}
+ }
+ },
+ "DescribePoolsRequest":{
+ "type":"structure",
+ "members":{
+ "PoolIds":{"shape":"PoolIdList"},
+ "Filters":{"shape":"PoolFilterList"},
+ "NextToken":{"shape":"NextToken"},
+ "MaxResults":{"shape":"MaxResults"}
+ }
+ },
+ "DescribePoolsResult":{
+ "type":"structure",
+ "members":{
+ "Pools":{"shape":"PoolInformationList"},
+ "NextToken":{"shape":"NextToken"}
+ }
+ },
+ "DescribeSenderIdsRequest":{
+ "type":"structure",
+ "members":{
+ "SenderIds":{"shape":"SenderIdList"},
+ "Filters":{"shape":"SenderIdFilterList"},
+ "NextToken":{"shape":"NextToken"},
+ "MaxResults":{"shape":"MaxResults"}
+ }
+ },
+ "DescribeSenderIdsResult":{
+ "type":"structure",
+ "members":{
+ "SenderIds":{"shape":"SenderIdInformationList"},
+ "NextToken":{"shape":"NextToken"}
+ }
+ },
+ "DescribeSpendLimitsRequest":{
+ "type":"structure",
+ "members":{
+ "NextToken":{"shape":"NextToken"},
+ "MaxResults":{"shape":"MaxResults"}
+ }
+ },
+ "DescribeSpendLimitsResult":{
+ "type":"structure",
+ "members":{
+ "SpendLimits":{"shape":"SpendLimitList"},
+ "NextToken":{"shape":"NextToken"}
+ }
+ },
+ "DestinationCountryParameterKey":{
+ "type":"string",
+ "enum":[
+ "IN_TEMPLATE_ID",
+ "IN_ENTITY_ID"
+ ]
+ },
+ "DestinationCountryParameterValue":{
+ "type":"string",
+ "max":64,
+ "min":1,
+ "pattern":"\\S+"
+ },
+ "DestinationCountryParameters":{
+ "type":"map",
+ "key":{"shape":"DestinationCountryParameterKey"},
+ "value":{"shape":"DestinationCountryParameterValue"},
+ "max":10,
+ "min":0
+ },
+ "DisassociateOriginationIdentityRequest":{
+ "type":"structure",
+ "required":[
+ "PoolId",
+ "OriginationIdentity",
+ "IsoCountryCode"
+ ],
+ "members":{
+ "PoolId":{"shape":"PoolIdOrArn"},
+ "OriginationIdentity":{"shape":"PhoneOrSenderIdOrArn"},
+ "IsoCountryCode":{"shape":"IsoCountryCode"},
+ "ClientToken":{
+ "shape":"ClientToken",
+ "idempotencyToken":true
+ }
+ }
+ },
+ "DisassociateOriginationIdentityResult":{
+ "type":"structure",
+ "members":{
+ "PoolArn":{"shape":"String"},
+ "PoolId":{"shape":"String"},
+ "OriginationIdentityArn":{"shape":"String"},
+ "OriginationIdentity":{"shape":"String"},
+ "IsoCountryCode":{"shape":"IsoCountryCode"}
+ }
+ },
+ "EventDestination":{
+ "type":"structure",
+ "required":[
+ "EventDestinationName",
+ "Enabled",
+ "MatchingEventTypes"
+ ],
+ "members":{
+ "EventDestinationName":{"shape":"EventDestinationName"},
+ "Enabled":{"shape":"Boolean"},
+ "MatchingEventTypes":{"shape":"EventTypeList"},
+ "CloudWatchLogsDestination":{"shape":"CloudWatchLogsDestination"},
+ "KinesisFirehoseDestination":{"shape":"KinesisFirehoseDestination"},
+ "SnsDestination":{"shape":"SnsDestination"}
+ }
+ },
+ "EventDestinationList":{
+ "type":"list",
+ "member":{"shape":"EventDestination"}
+ },
+ "EventDestinationName":{
+ "type":"string",
+ "max":64,
+ "min":1,
+ "pattern":"[A-Za-z0-9_-]+"
+ },
+ "EventType":{
+ "type":"string",
+ "enum":[
+ "ALL",
+ "TEXT_ALL",
+ "TEXT_SENT",
+ "TEXT_PENDING",
+ "TEXT_QUEUED",
+ "TEXT_SUCCESSFUL",
+ "TEXT_DELIVERED",
+ "TEXT_INVALID",
+ "TEXT_INVALID_MESSAGE",
+ "TEXT_UNREACHABLE",
+ "TEXT_CARRIER_UNREACHABLE",
+ "TEXT_BLOCKED",
+ "TEXT_CARRIER_BLOCKED",
+ "TEXT_SPAM",
+ "TEXT_UNKNOWN",
+ "TEXT_TTL_EXPIRED",
+ "VOICE_ALL",
+ "VOICE_INITIATED",
+ "VOICE_RINGING",
+ "VOICE_ANSWERED",
+ "VOICE_COMPLETED",
+ "VOICE_BUSY",
+ "VOICE_NO_ANSWER",
+ "VOICE_FAILED",
+ "VOICE_TTL_EXPIRED"
+ ]
+ },
+ "EventTypeList":{
+ "type":"list",
+ "member":{"shape":"EventType"},
+ "max":25,
+ "min":1
+ },
+ "FilterValue":{
+ "type":"string",
+ "max":100,
+ "min":1,
+ "pattern":"[A-Za-z0-9_-]+"
+ },
+ "FilterValueList":{
+ "type":"list",
+ "member":{"shape":"FilterValue"},
+ "max":20,
+ "min":1
+ },
+ "IamRoleArn":{
+ "type":"string",
+ "max":2048,
+ "min":20,
+ "pattern":"arn:\\S+"
+ },
+ "InternalServerException":{
+ "type":"structure",
+ "members":{
+ "Message":{"shape":"String"},
+ "RequestId":{"shape":"String"}
+ },
+ "exception":true,
+ "fault":true,
+ "retryable":{"throttling":false}
+ },
+ "IsoCountryCode":{
+ "type":"string",
+ "max":2,
+ "min":2,
+ "pattern":"[A-Z]{2}"
+ },
+ "Keyword":{
+ "type":"string",
+ "max":30,
+ "min":1,
+ "pattern":"[ \\S]+"
+ },
+ "KeywordAction":{
+ "type":"string",
+ "enum":[
+ "AUTOMATIC_RESPONSE",
+ "OPT_OUT",
+ "OPT_IN"
+ ]
+ },
+ "KeywordFilter":{
+ "type":"structure",
+ "required":[
+ "Name",
+ "Values"
+ ],
+ "members":{
+ "Name":{"shape":"KeywordFilterName"},
+ "Values":{"shape":"FilterValueList"}
+ }
+ },
+ "KeywordFilterList":{
+ "type":"list",
+ "member":{"shape":"KeywordFilter"},
+ "max":20,
+ "min":0
+ },
+ "KeywordFilterName":{
+ "type":"string",
+ "enum":["keyword-action"]
+ },
+ "KeywordInformation":{
+ "type":"structure",
+ "required":[
+ "Keyword",
+ "KeywordMessage",
+ "KeywordAction"
+ ],
+ "members":{
+ "Keyword":{"shape":"Keyword"},
+ "KeywordMessage":{"shape":"KeywordMessage"},
+ "KeywordAction":{"shape":"KeywordAction"}
+ }
+ },
+ "KeywordInformationList":{
+ "type":"list",
+ "member":{"shape":"KeywordInformation"}
+ },
+ "KeywordList":{
+ "type":"list",
+ "member":{"shape":"Keyword"},
+ "max":5,
+ "min":0
+ },
+ "KeywordMessage":{
+ "type":"string",
+ "max":1600,
+ "min":1,
+ "pattern":"(?!\\s*$)[\\s\\S]+"
+ },
+ "KinesisFirehoseDestination":{
+ "type":"structure",
+ "required":[
+ "IamRoleArn",
+ "DeliveryStreamArn"
+ ],
+ "members":{
+ "IamRoleArn":{"shape":"IamRoleArn"},
+ "DeliveryStreamArn":{"shape":"DeliveryStreamArn"}
+ }
+ },
+ "ListPoolOriginationIdentitiesRequest":{
+ "type":"structure",
+ "required":["PoolId"],
+ "members":{
+ "PoolId":{"shape":"PoolIdOrArn"},
+ "Filters":{"shape":"PoolOriginationIdentitiesFilterList"},
+ "NextToken":{"shape":"NextToken"},
+ "MaxResults":{"shape":"MaxResults"}
+ }
+ },
+ "ListPoolOriginationIdentitiesResult":{
+ "type":"structure",
+ "members":{
+ "PoolArn":{"shape":"String"},
+ "PoolId":{"shape":"String"},
+ "OriginationIdentities":{"shape":"OriginationIdentityMetadataList"},
+ "NextToken":{"shape":"NextToken"}
+ }
+ },
+ "ListTagsForResourceRequest":{
+ "type":"structure",
+ "required":["ResourceArn"],
+ "members":{
+ "ResourceArn":{"shape":"AmazonResourceName"}
+ }
+ },
+ "ListTagsForResourceResult":{
+ "type":"structure",
+ "members":{
+ "ResourceArn":{"shape":"AmazonResourceName"},
+ "Tags":{"shape":"TagList"}
+ }
+ },
+ "LogGroupArn":{
+ "type":"string",
+ "max":2048,
+ "min":20,
+ "pattern":"arn:\\S+"
+ },
+ "MaxPrice":{
+ "type":"string",
+ "max":8,
+ "min":2,
+ "pattern":"[0-9]{0,2}\\.[0-9]{1,5}"
+ },
+ "MaxResults":{
+ "type":"integer",
+ "box":true,
+ "max":100,
+ "min":1
+ },
+ "MessageType":{
+ "type":"string",
+ "enum":[
+ "TRANSACTIONAL",
+ "PROMOTIONAL"
+ ]
+ },
+ "MessageTypeList":{
+ "type":"list",
+ "member":{"shape":"MessageType"}
+ },
+ "MonthlyLimit":{
+ "type":"long",
+ "box":true,
+ "max":1000000000,
+ "min":0
+ },
+ "NextToken":{
+ "type":"string",
+ "max":1024,
+ "min":1,
+ "pattern":".+"
+ },
+ "NonEmptyTagList":{
+ "type":"list",
+ "member":{"shape":"Tag"},
+ "max":200,
+ "min":1
+ },
+ "NumberCapability":{
+ "type":"string",
+ "enum":[
+ "SMS",
+ "VOICE"
+ ]
+ },
+ "NumberCapabilityList":{
+ "type":"list",
+ "member":{"shape":"NumberCapability"},
+ "max":2,
+ "min":1
+ },
+ "NumberStatus":{
+ "type":"string",
+ "enum":[
+ "PENDING",
+ "ACTIVE",
+ "ASSOCIATING",
+ "DISASSOCIATING",
+ "DELETED"
+ ]
+ },
+ "NumberType":{
+ "type":"string",
+ "enum":[
+ "SHORT_CODE",
+ "LONG_CODE",
+ "TOLL_FREE",
+ "TEN_DLC"
+ ]
+ },
+ "OptOutListInformation":{
+ "type":"structure",
+ "required":[
+ "OptOutListArn",
+ "OptOutListName",
+ "CreatedTimestamp"
+ ],
+ "members":{
+ "OptOutListArn":{"shape":"String"},
+ "OptOutListName":{"shape":"OptOutListName"},
+ "CreatedTimestamp":{"shape":"Timestamp"}
+ }
+ },
+ "OptOutListInformationList":{
+ "type":"list",
+ "member":{"shape":"OptOutListInformation"}
+ },
+ "OptOutListName":{
+ "type":"string",
+ "max":64,
+ "min":1,
+ "pattern":"[A-Za-z0-9_-]+"
+ },
+ "OptOutListNameList":{
+ "type":"list",
+ "member":{"shape":"OptOutListNameOrArn"},
+ "max":5,
+ "min":0
+ },
+ "OptOutListNameOrArn":{
+ "type":"string",
+ "max":256,
+ "min":1,
+ "pattern":"[A-Za-z0-9_:/-]+"
+ },
+ "OptedOutFilter":{
+ "type":"structure",
+ "required":[
+ "Name",
+ "Values"
+ ],
+ "members":{
+ "Name":{"shape":"OptedOutFilterName"},
+ "Values":{"shape":"FilterValueList"}
+ }
+ },
+ "OptedOutFilterList":{
+ "type":"list",
+ "member":{"shape":"OptedOutFilter"},
+ "max":20,
+ "min":0
+ },
+ "OptedOutFilterName":{
+ "type":"string",
+ "enum":["end-user-opted-out"]
+ },
+ "OptedOutNumberInformation":{
+ "type":"structure",
+ "required":[
+ "OptedOutNumber",
+ "OptedOutTimestamp",
+ "EndUserOptedOut"
+ ],
+ "members":{
+ "OptedOutNumber":{"shape":"PhoneNumber"},
+ "OptedOutTimestamp":{"shape":"Timestamp"},
+ "EndUserOptedOut":{"shape":"PrimitiveBoolean"}
+ }
+ },
+ "OptedOutNumberInformationList":{
+ "type":"list",
+ "member":{"shape":"OptedOutNumberInformation"}
+ },
+ "OptedOutNumberList":{
+ "type":"list",
+ "member":{"shape":"PhoneNumber"},
+ "max":5,
+ "min":0
+ },
+ "OriginationIdentityMetadata":{
+ "type":"structure",
+ "required":[
+ "OriginationIdentityArn",
+ "OriginationIdentity",
+ "IsoCountryCode",
+ "NumberCapabilities"
+ ],
+ "members":{
+ "OriginationIdentityArn":{"shape":"String"},
+ "OriginationIdentity":{"shape":"String"},
+ "IsoCountryCode":{"shape":"IsoCountryCode"},
+ "NumberCapabilities":{"shape":"NumberCapabilityList"}
+ }
+ },
+ "OriginationIdentityMetadataList":{
+ "type":"list",
+ "member":{"shape":"OriginationIdentityMetadata"}
+ },
+ "PhoneNumber":{
+ "type":"string",
+ "max":20,
+ "min":1,
+ "pattern":"\\+?[1-9][0-9]{1,18}"
+ },
+ "PhoneNumberFilter":{
+ "type":"structure",
+ "required":[
+ "Name",
+ "Values"
+ ],
+ "members":{
+ "Name":{"shape":"PhoneNumberFilterName"},
+ "Values":{"shape":"FilterValueList"}
+ }
+ },
+ "PhoneNumberFilterList":{
+ "type":"list",
+ "member":{"shape":"PhoneNumberFilter"},
+ "max":20,
+ "min":0
+ },
+ "PhoneNumberFilterName":{
+ "type":"string",
+ "enum":[
+ "status",
+ "iso-country-code",
+ "message-type",
+ "number-capability",
+ "number-type",
+ "two-way-enabled",
+ "self-managed-opt-outs-enabled",
+ "opt-out-list-name",
+ "deletion-protection-enabled"
+ ]
+ },
+ "PhoneNumberIdList":{
+ "type":"list",
+ "member":{"shape":"PhoneNumberIdOrArn"},
+ "max":5,
+ "min":0
+ },
+ "PhoneNumberIdOrArn":{
+ "type":"string",
+ "max":256,
+ "min":1,
+ "pattern":"[A-Za-z0-9_:/-]+"
+ },
+ "PhoneNumberInformation":{
+ "type":"structure",
+ "required":[
+ "PhoneNumberArn",
+ "PhoneNumber",
+ "Status",
+ "IsoCountryCode",
+ "MessageType",
+ "NumberCapabilities",
+ "NumberType",
+ "MonthlyLeasingPrice",
+ "TwoWayEnabled",
+ "SelfManagedOptOutsEnabled",
+ "OptOutListName",
+ "DeletionProtectionEnabled",
+ "CreatedTimestamp"
+ ],
+ "members":{
+ "PhoneNumberArn":{"shape":"String"},
+ "PhoneNumberId":{"shape":"String"},
+ "PhoneNumber":{"shape":"PhoneNumber"},
+ "Status":{"shape":"NumberStatus"},
+ "IsoCountryCode":{"shape":"IsoCountryCode"},
+ "MessageType":{"shape":"MessageType"},
+ "NumberCapabilities":{"shape":"NumberCapabilityList"},
+ "NumberType":{"shape":"NumberType"},
+ "MonthlyLeasingPrice":{"shape":"String"},
+ "TwoWayEnabled":{"shape":"PrimitiveBoolean"},
+ "TwoWayChannelArn":{"shape":"TwoWayChannelArn"},
+ "SelfManagedOptOutsEnabled":{"shape":"PrimitiveBoolean"},
+ "OptOutListName":{"shape":"OptOutListName"},
+ "DeletionProtectionEnabled":{"shape":"PrimitiveBoolean"},
+ "PoolId":{"shape":"String"},
+ "CreatedTimestamp":{"shape":"Timestamp"}
+ }
+ },
+ "PhoneNumberInformationList":{
+ "type":"list",
+ "member":{"shape":"PhoneNumberInformation"}
+ },
+ "PhoneOrPoolIdOrArn":{
+ "type":"string",
+ "max":256,
+ "min":1,
+ "pattern":"[A-Za-z0-9_:/-]+"
+ },
+ "PhoneOrSenderIdOrArn":{
+ "type":"string",
+ "max":256,
+ "min":1,
+ "pattern":"[A-Za-z0-9_:/-]+"
+ },
+ "PoolFilter":{
+ "type":"structure",
+ "required":[
+ "Name",
+ "Values"
+ ],
+ "members":{
+ "Name":{"shape":"PoolFilterName"},
+ "Values":{"shape":"FilterValueList"}
+ }
+ },
+ "PoolFilterList":{
+ "type":"list",
+ "member":{"shape":"PoolFilter"},
+ "max":20,
+ "min":0
+ },
+ "PoolFilterName":{
+ "type":"string",
+ "enum":[
+ "status",
+ "message-type",
+ "two-way-enabled",
+ "self-managed-opt-outs-enabled",
+ "opt-out-list-name",
+ "shared-routes-enabled",
+ "deletion-protection-enabled"
+ ]
+ },
+ "PoolIdList":{
+ "type":"list",
+ "member":{"shape":"PoolIdOrArn"},
+ "max":5,
+ "min":0
+ },
+ "PoolIdOrArn":{
+ "type":"string",
+ "max":256,
+ "min":1,
+ "pattern":"[A-Za-z0-9_:/-]+"
+ },
+ "PoolInformation":{
+ "type":"structure",
+ "required":[
+ "PoolArn",
+ "PoolId",
+ "Status",
+ "MessageType",
+ "TwoWayEnabled",
+ "SelfManagedOptOutsEnabled",
+ "OptOutListName",
+ "SharedRoutesEnabled",
+ "DeletionProtectionEnabled",
+ "CreatedTimestamp"
+ ],
+ "members":{
+ "PoolArn":{"shape":"String"},
+ "PoolId":{"shape":"String"},
+ "Status":{"shape":"PoolStatus"},
+ "MessageType":{"shape":"MessageType"},
+ "TwoWayEnabled":{"shape":"PrimitiveBoolean"},
+ "TwoWayChannelArn":{"shape":"TwoWayChannelArn"},
+ "SelfManagedOptOutsEnabled":{"shape":"PrimitiveBoolean"},
+ "OptOutListName":{"shape":"OptOutListName"},
+ "SharedRoutesEnabled":{"shape":"PrimitiveBoolean"},
+ "DeletionProtectionEnabled":{"shape":"PrimitiveBoolean"},
+ "CreatedTimestamp":{"shape":"Timestamp"}
+ }
+ },
+ "PoolInformationList":{
+ "type":"list",
+ "member":{"shape":"PoolInformation"}
+ },
+ "PoolOriginationIdentitiesFilter":{
+ "type":"structure",
+ "required":[
+ "Name",
+ "Values"
+ ],
+ "members":{
+ "Name":{"shape":"PoolOriginationIdentitiesFilterName"},
+ "Values":{"shape":"FilterValueList"}
+ }
+ },
+ "PoolOriginationIdentitiesFilterList":{
+ "type":"list",
+ "member":{"shape":"PoolOriginationIdentitiesFilter"},
+ "max":20,
+ "min":0
+ },
+ "PoolOriginationIdentitiesFilterName":{
+ "type":"string",
+ "enum":[
+ "iso-country-code",
+ "number-capability"
+ ]
+ },
+ "PoolStatus":{
+ "type":"string",
+ "enum":[
+ "CREATING",
+ "ACTIVE",
+ "DELETING"
+ ]
+ },
+ "PrimitiveBoolean":{"type":"boolean"},
+ "PrimitiveLong":{"type":"long"},
+ "PutKeywordRequest":{
+ "type":"structure",
+ "required":[
+ "OriginationIdentity",
+ "Keyword",
+ "KeywordMessage"
+ ],
+ "members":{
+ "OriginationIdentity":{"shape":"PhoneOrPoolIdOrArn"},
+ "Keyword":{"shape":"Keyword"},
+ "KeywordMessage":{"shape":"KeywordMessage"},
+ "KeywordAction":{"shape":"KeywordAction"}
+ }
+ },
+ "PutKeywordResult":{
+ "type":"structure",
+ "members":{
+ "OriginationIdentityArn":{"shape":"String"},
+ "OriginationIdentity":{"shape":"String"},
+ "Keyword":{"shape":"Keyword"},
+ "KeywordMessage":{"shape":"KeywordMessage"},
+ "KeywordAction":{"shape":"KeywordAction"}
+ }
+ },
+ "PutOptedOutNumberRequest":{
+ "type":"structure",
+ "required":[
+ "OptOutListName",
+ "OptedOutNumber"
+ ],
+ "members":{
+ "OptOutListName":{"shape":"OptOutListNameOrArn"},
+ "OptedOutNumber":{"shape":"PhoneNumber"}
+ }
+ },
+ "PutOptedOutNumberResult":{
+ "type":"structure",
+ "members":{
+ "OptOutListArn":{"shape":"String"},
+ "OptOutListName":{"shape":"OptOutListName"},
+ "OptedOutNumber":{"shape":"PhoneNumber"},
+ "OptedOutTimestamp":{"shape":"Timestamp"},
+ "EndUserOptedOut":{"shape":"PrimitiveBoolean"}
+ }
+ },
+ "RegistrationId":{
+ "type":"string",
+ "max":64,
+ "min":1,
+ "pattern":"\\S+"
+ },
+ "ReleasePhoneNumberRequest":{
+ "type":"structure",
+ "required":["PhoneNumberId"],
+ "members":{
+ "PhoneNumberId":{"shape":"PhoneNumberIdOrArn"}
+ }
+ },
+ "ReleasePhoneNumberResult":{
+ "type":"structure",
+ "members":{
+ "PhoneNumberArn":{"shape":"String"},
+ "PhoneNumberId":{"shape":"String"},
+ "PhoneNumber":{"shape":"PhoneNumber"},
+ "Status":{"shape":"NumberStatus"},
+ "IsoCountryCode":{"shape":"IsoCountryCode"},
+ "MessageType":{"shape":"MessageType"},
+ "NumberCapabilities":{"shape":"NumberCapabilityList"},
+ "NumberType":{"shape":"NumberType"},
+ "MonthlyLeasingPrice":{"shape":"String"},
+ "TwoWayEnabled":{"shape":"PrimitiveBoolean"},
+ "TwoWayChannelArn":{"shape":"TwoWayChannelArn"},
+ "SelfManagedOptOutsEnabled":{"shape":"PrimitiveBoolean"},
+ "OptOutListName":{"shape":"OptOutListName"},
+ "CreatedTimestamp":{"shape":"Timestamp"}
+ }
+ },
+ "RequestPhoneNumberRequest":{
+ "type":"structure",
+ "required":[
+ "IsoCountryCode",
+ "MessageType",
+ "NumberCapabilities",
+ "NumberType"
+ ],
+ "members":{
+ "IsoCountryCode":{"shape":"IsoCountryCode"},
+ "MessageType":{"shape":"MessageType"},
+ "NumberCapabilities":{"shape":"NumberCapabilityList"},
+ "NumberType":{"shape":"RequestableNumberType"},
+ "OptOutListName":{"shape":"OptOutListNameOrArn"},
+ "PoolId":{"shape":"PoolIdOrArn"},
+ "RegistrationId":{"shape":"RegistrationId"},
+ "DeletionProtectionEnabled":{"shape":"Boolean"},
+ "Tags":{"shape":"TagList"},
+ "ClientToken":{
+ "shape":"ClientToken",
+ "idempotencyToken":true
+ }
+ }
+ },
+ "RequestPhoneNumberResult":{
+ "type":"structure",
+ "members":{
+ "PhoneNumberArn":{"shape":"String"},
+ "PhoneNumberId":{"shape":"String"},
+ "PhoneNumber":{"shape":"PhoneNumber"},
+ "Status":{"shape":"NumberStatus"},
+ "IsoCountryCode":{"shape":"IsoCountryCode"},
+ "MessageType":{"shape":"MessageType"},
+ "NumberCapabilities":{"shape":"NumberCapabilityList"},
+ "NumberType":{"shape":"RequestableNumberType"},
+ "MonthlyLeasingPrice":{"shape":"String"},
+ "TwoWayEnabled":{"shape":"PrimitiveBoolean"},
+ "TwoWayChannelArn":{"shape":"TwoWayChannelArn"},
+ "SelfManagedOptOutsEnabled":{"shape":"PrimitiveBoolean"},
+ "OptOutListName":{"shape":"OptOutListName"},
+ "DeletionProtectionEnabled":{"shape":"PrimitiveBoolean"},
+ "PoolId":{"shape":"String"},
+ "Tags":{"shape":"TagList"},
+ "CreatedTimestamp":{"shape":"Timestamp"}
+ }
+ },
+ "RequestableNumberType":{
+ "type":"string",
+ "enum":[
+ "LONG_CODE",
+ "TOLL_FREE",
+ "TEN_DLC"
+ ]
+ },
+ "ResourceNotFoundException":{
+ "type":"structure",
+ "members":{
+ "Message":{"shape":"String"},
+ "ResourceType":{"shape":"ResourceType"},
+ "ResourceId":{"shape":"String"}
+ },
+ "exception":true
+ },
+ "ResourceType":{
+ "type":"string",
+ "enum":[
+ "account",
+ "phone-number",
+ "sender-id",
+ "pool",
+ "configuration-set",
+ "opt-out-list",
+ "event-destination",
+ "keyword",
+ "opted-out-number",
+ "registration"
+ ]
+ },
+ "SendTextMessageRequest":{
+ "type":"structure",
+ "required":["DestinationPhoneNumber"],
+ "members":{
+ "DestinationPhoneNumber":{"shape":"PhoneNumber"},
+ "OriginationIdentity":{"shape":"TextMessageOriginationIdentity"},
+ "MessageBody":{"shape":"TextMessageBody"},
+ "MessageType":{"shape":"MessageType"},
+ "Keyword":{"shape":"Keyword"},
+ "ConfigurationSetName":{"shape":"ConfigurationSetNameOrArn"},
+ "MaxPrice":{"shape":"MaxPrice"},
+ "TimeToLive":{"shape":"TimeToLive"},
+ "Context":{"shape":"ContextMap"},
+ "DestinationCountryParameters":{"shape":"DestinationCountryParameters"},
+ "DryRun":{"shape":"PrimitiveBoolean"}
+ }
+ },
+ "SendTextMessageResult":{
+ "type":"structure",
+ "members":{
+ "MessageId":{"shape":"String"}
+ }
+ },
+ "SendVoiceMessageRequest":{
+ "type":"structure",
+ "required":[
+ "DestinationPhoneNumber",
+ "OriginationIdentity"
+ ],
+ "members":{
+ "DestinationPhoneNumber":{"shape":"PhoneNumber"},
+ "OriginationIdentity":{"shape":"VoiceMessageOriginationIdentity"},
+ "MessageBody":{"shape":"VoiceMessageBody"},
+ "MessageBodyTextType":{"shape":"VoiceMessageBodyTextType"},
+ "VoiceId":{"shape":"VoiceId"},
+ "ConfigurationSetName":{"shape":"ConfigurationSetNameOrArn"},
+ "MaxPricePerMinute":{"shape":"MaxPrice"},
+ "TimeToLive":{"shape":"TimeToLive"},
+ "Context":{"shape":"ContextMap"},
+ "DryRun":{"shape":"PrimitiveBoolean"}
+ }
+ },
+ "SendVoiceMessageResult":{
+ "type":"structure",
+ "members":{
+ "MessageId":{"shape":"String"}
+ }
+ },
+ "SenderId":{
+ "type":"string",
+ "max":11,
+ "min":1,
+ "pattern":"[A-Za-z0-9_-]+"
+ },
+ "SenderIdAndCountry":{
+ "type":"structure",
+ "required":[
+ "SenderId",
+ "IsoCountryCode"
+ ],
+ "members":{
+ "SenderId":{"shape":"SenderIdOrArn"},
+ "IsoCountryCode":{"shape":"IsoCountryCode"}
+ }
+ },
+ "SenderIdFilter":{
+ "type":"structure",
+ "required":[
+ "Name",
+ "Values"
+ ],
+ "members":{
+ "Name":{"shape":"SenderIdFilterName"},
+ "Values":{"shape":"FilterValueList"}
+ }
+ },
+ "SenderIdFilterList":{
+ "type":"list",
+ "member":{"shape":"SenderIdFilter"},
+ "max":20,
+ "min":0
+ },
+ "SenderIdFilterName":{
+ "type":"string",
+ "enum":[
+ "sender-id",
+ "iso-country-code",
+ "message-type"
+ ]
+ },
+ "SenderIdInformation":{
+ "type":"structure",
+ "required":[
+ "SenderIdArn",
+ "SenderId",
+ "IsoCountryCode",
+ "MessageTypes",
+ "MonthlyLeasingPrice"
+ ],
+ "members":{
+ "SenderIdArn":{"shape":"String"},
+ "SenderId":{"shape":"SenderId"},
+ "IsoCountryCode":{"shape":"IsoCountryCode"},
+ "MessageTypes":{"shape":"MessageTypeList"},
+ "MonthlyLeasingPrice":{"shape":"String"}
+ }
+ },
+ "SenderIdInformationList":{
+ "type":"list",
+ "member":{"shape":"SenderIdInformation"}
+ },
+ "SenderIdList":{
+ "type":"list",
+ "member":{"shape":"SenderIdAndCountry"},
+ "max":5,
+ "min":0
+ },
+ "SenderIdOrArn":{
+ "type":"string",
+ "max":256,
+ "min":1,
+ "pattern":"[A-Za-z0-9_:/-]+"
+ },
+ "ServiceQuotaExceededException":{
+ "type":"structure",
+ "members":{
+ "Message":{"shape":"String"},
+ "Reason":{"shape":"ServiceQuotaExceededExceptionReason"}
+ },
+ "exception":true
+ },
+ "ServiceQuotaExceededExceptionReason":{
+ "type":"string",
+ "enum":[
+ "CONFIGURATION_SETS_PER_ACCOUNT",
+ "DAILY_DESTINATION_CALL_LIMIT",
+ "EVENT_DESTINATIONS_PER_CONFIGURATION_SET",
+ "KEYWORDS_PER_PHONE_NUMBER",
+ "KEYWORDS_PER_POOL",
+ "MONTHLY_SPEND_LIMIT_REACHED_FOR_TEXT",
+ "MONTHLY_SPEND_LIMIT_REACHED_FOR_VOICE",
+ "OPT_OUT_LISTS_PER_ACCOUNT",
+ "ORIGINATION_IDENTITIES_PER_POOL",
+ "PHONE_NUMBERS_PER_ACCOUNT",
+ "PHONE_NUMBERS_PER_REGISTRATION",
+ "POOLS_PER_ACCOUNT",
+ "TAGS_PER_RESOURCE"
+ ]
+ },
+ "SetDefaultMessageTypeRequest":{
+ "type":"structure",
+ "required":[
+ "ConfigurationSetName",
+ "MessageType"
+ ],
+ "members":{
+ "ConfigurationSetName":{"shape":"ConfigurationSetNameOrArn"},
+ "MessageType":{"shape":"MessageType"}
+ }
+ },
+ "SetDefaultMessageTypeResult":{
+ "type":"structure",
+ "members":{
+ "ConfigurationSetArn":{"shape":"String"},
+ "ConfigurationSetName":{"shape":"ConfigurationSetName"},
+ "MessageType":{"shape":"MessageType"}
+ }
+ },
+ "SetDefaultSenderIdRequest":{
+ "type":"structure",
+ "required":[
+ "ConfigurationSetName",
+ "SenderId"
+ ],
+ "members":{
+ "ConfigurationSetName":{"shape":"ConfigurationSetNameOrArn"},
+ "SenderId":{"shape":"SenderId"}
+ }
+ },
+ "SetDefaultSenderIdResult":{
+ "type":"structure",
+ "members":{
+ "ConfigurationSetArn":{"shape":"String"},
+ "ConfigurationSetName":{"shape":"ConfigurationSetName"},
+ "SenderId":{"shape":"SenderId"}
+ }
+ },
+ "SetTextMessageSpendLimitOverrideRequest":{
+ "type":"structure",
+ "required":["MonthlyLimit"],
+ "members":{
+ "MonthlyLimit":{"shape":"MonthlyLimit"}
+ }
+ },
+ "SetTextMessageSpendLimitOverrideResult":{
+ "type":"structure",
+ "members":{
+ "MonthlyLimit":{"shape":"MonthlyLimit"}
+ }
+ },
+ "SetVoiceMessageSpendLimitOverrideRequest":{
+ "type":"structure",
+ "required":["MonthlyLimit"],
+ "members":{
+ "MonthlyLimit":{"shape":"MonthlyLimit"}
+ }
+ },
+ "SetVoiceMessageSpendLimitOverrideResult":{
+ "type":"structure",
+ "members":{
+ "MonthlyLimit":{"shape":"MonthlyLimit"}
+ }
+ },
+ "SnsDestination":{
+ "type":"structure",
+ "required":["TopicArn"],
+ "members":{
+ "TopicArn":{"shape":"SnsTopicArn"}
+ }
+ },
+ "SnsTopicArn":{
+ "type":"string",
+ "max":2048,
+ "min":20,
+ "pattern":"arn:\\S+"
+ },
+ "SpendLimit":{
+ "type":"structure",
+ "required":[
+ "Name",
+ "EnforcedLimit",
+ "MaxLimit",
+ "Overridden"
+ ],
+ "members":{
+ "Name":{"shape":"SpendLimitName"},
+ "EnforcedLimit":{"shape":"PrimitiveLong"},
+ "MaxLimit":{"shape":"PrimitiveLong"},
+ "Overridden":{"shape":"PrimitiveBoolean"}
+ }
+ },
+ "SpendLimitList":{
+ "type":"list",
+ "member":{"shape":"SpendLimit"}
+ },
+ "SpendLimitName":{
+ "type":"string",
+ "enum":[
+ "TEXT_MESSAGE_MONTHLY_SPEND_LIMIT",
+ "VOICE_MESSAGE_MONTHLY_SPEND_LIMIT"
+ ]
+ },
+ "String":{"type":"string"},
+ "Tag":{
+ "type":"structure",
+ "required":[
+ "Key",
+ "Value"
+ ],
+ "members":{
+ "Key":{"shape":"TagKey"},
+ "Value":{"shape":"TagValue"}
+ }
+ },
+ "TagKey":{
+ "type":"string",
+ "max":128,
+ "min":1,
+ "pattern":".+"
+ },
+ "TagKeyList":{
+ "type":"list",
+ "member":{"shape":"TagKey"},
+ "max":200,
+ "min":1
+ },
+ "TagList":{
+ "type":"list",
+ "member":{"shape":"Tag"},
+ "max":200,
+ "min":0
+ },
+ "TagResourceRequest":{
+ "type":"structure",
+ "required":[
+ "ResourceArn",
+ "Tags"
+ ],
+ "members":{
+ "ResourceArn":{"shape":"AmazonResourceName"},
+ "Tags":{"shape":"NonEmptyTagList"}
+ }
+ },
+ "TagResourceResult":{
+ "type":"structure",
+ "members":{
+ }
+ },
+ "TagValue":{
+ "type":"string",
+ "max":256,
+ "min":0,
+ "pattern":".*"
+ },
+ "TextMessageBody":{
+ "type":"string",
+ "max":1600,
+ "min":1,
+ "pattern":"(?!\\s*$)[\\s\\S]+"
+ },
+ "TextMessageOriginationIdentity":{
+ "type":"string",
+ "max":256,
+ "min":1,
+ "pattern":"[A-Za-z0-9_:/\\+-]+"
+ },
+ "ThrottlingException":{
+ "type":"structure",
+ "members":{
+ "Message":{"shape":"String"}
+ },
+ "exception":true,
+ "retryable":{"throttling":true}
+ },
+ "TimeToLive":{
+ "type":"integer",
+ "box":true,
+ "max":259200,
+ "min":5
+ },
+ "Timestamp":{"type":"timestamp"},
+ "TwoWayChannelArn":{
+ "type":"string",
+ "max":2048,
+ "min":20,
+ "pattern":"arn:\\S+"
+ },
+ "UntagResourceRequest":{
+ "type":"structure",
+ "required":[
+ "ResourceArn",
+ "TagKeys"
+ ],
+ "members":{
+ "ResourceArn":{"shape":"AmazonResourceName"},
+ "TagKeys":{"shape":"TagKeyList"}
+ }
+ },
+ "UntagResourceResult":{
+ "type":"structure",
+ "members":{
+ }
+ },
+ "UpdateEventDestinationRequest":{
+ "type":"structure",
+ "required":[
+ "ConfigurationSetName",
+ "EventDestinationName"
+ ],
+ "members":{
+ "ConfigurationSetName":{"shape":"ConfigurationSetNameOrArn"},
+ "EventDestinationName":{"shape":"EventDestinationName"},
+ "Enabled":{"shape":"Boolean"},
+ "MatchingEventTypes":{"shape":"EventTypeList"},
+ "CloudWatchLogsDestination":{"shape":"CloudWatchLogsDestination"},
+ "KinesisFirehoseDestination":{"shape":"KinesisFirehoseDestination"},
+ "SnsDestination":{"shape":"SnsDestination"}
+ }
+ },
+ "UpdateEventDestinationResult":{
+ "type":"structure",
+ "members":{
+ "ConfigurationSetArn":{"shape":"String"},
+ "ConfigurationSetName":{"shape":"ConfigurationSetName"},
+ "EventDestination":{"shape":"EventDestination"}
+ }
+ },
+ "UpdatePhoneNumberRequest":{
+ "type":"structure",
+ "required":["PhoneNumberId"],
+ "members":{
+ "PhoneNumberId":{"shape":"PhoneNumberIdOrArn"},
+ "TwoWayEnabled":{"shape":"Boolean"},
+ "TwoWayChannelArn":{"shape":"TwoWayChannelArn"},
+ "SelfManagedOptOutsEnabled":{"shape":"Boolean"},
+ "OptOutListName":{"shape":"OptOutListNameOrArn"},
+ "DeletionProtectionEnabled":{"shape":"Boolean"}
+ }
+ },
+ "UpdatePhoneNumberResult":{
+ "type":"structure",
+ "members":{
+ "PhoneNumberArn":{"shape":"String"},
+ "PhoneNumberId":{"shape":"String"},
+ "PhoneNumber":{"shape":"PhoneNumber"},
+ "Status":{"shape":"NumberStatus"},
+ "IsoCountryCode":{"shape":"IsoCountryCode"},
+ "MessageType":{"shape":"MessageType"},
+ "NumberCapabilities":{"shape":"NumberCapabilityList"},
+ "NumberType":{"shape":"NumberType"},
+ "MonthlyLeasingPrice":{"shape":"String"},
+ "TwoWayEnabled":{"shape":"PrimitiveBoolean"},
+ "TwoWayChannelArn":{"shape":"TwoWayChannelArn"},
+ "SelfManagedOptOutsEnabled":{"shape":"PrimitiveBoolean"},
+ "OptOutListName":{"shape":"OptOutListName"},
+ "DeletionProtectionEnabled":{"shape":"PrimitiveBoolean"},
+ "CreatedTimestamp":{"shape":"Timestamp"}
+ }
+ },
+ "UpdatePoolRequest":{
+ "type":"structure",
+ "required":["PoolId"],
+ "members":{
+ "PoolId":{"shape":"PoolIdOrArn"},
+ "TwoWayEnabled":{"shape":"Boolean"},
+ "TwoWayChannelArn":{"shape":"TwoWayChannelArn"},
+ "SelfManagedOptOutsEnabled":{"shape":"Boolean"},
+ "OptOutListName":{"shape":"OptOutListNameOrArn"},
+ "SharedRoutesEnabled":{"shape":"Boolean"},
+ "DeletionProtectionEnabled":{"shape":"Boolean"}
+ }
+ },
+ "UpdatePoolResult":{
+ "type":"structure",
+ "members":{
+ "PoolArn":{"shape":"String"},
+ "PoolId":{"shape":"String"},
+ "Status":{"shape":"PoolStatus"},
+ "MessageType":{"shape":"MessageType"},
+ "TwoWayEnabled":{"shape":"PrimitiveBoolean"},
+ "TwoWayChannelArn":{"shape":"TwoWayChannelArn"},
+ "SelfManagedOptOutsEnabled":{"shape":"PrimitiveBoolean"},
+ "OptOutListName":{"shape":"OptOutListName"},
+ "SharedRoutesEnabled":{"shape":"PrimitiveBoolean"},
+ "DeletionProtectionEnabled":{"shape":"PrimitiveBoolean"},
+ "CreatedTimestamp":{"shape":"Timestamp"}
+ }
+ },
+ "ValidationException":{
+ "type":"structure",
+ "members":{
+ "Message":{"shape":"String"},
+ "Reason":{"shape":"ValidationExceptionReason"},
+ "Fields":{"shape":"ValidationExceptionFieldList"}
+ },
+ "exception":true
+ },
+ "ValidationExceptionField":{
+ "type":"structure",
+ "required":[
+ "Name",
+ "Message"
+ ],
+ "members":{
+ "Name":{"shape":"String"},
+ "Message":{"shape":"String"}
+ }
+ },
+ "ValidationExceptionFieldList":{
+ "type":"list",
+ "member":{"shape":"ValidationExceptionField"}
+ },
+ "ValidationExceptionReason":{
+ "type":"string",
+ "enum":[
+ "UNKNOWN_OPERATION",
+ "CANNOT_PARSE",
+ "FIELD_VALIDATION_FAILED",
+ "OTHER",
+ "INVALID_PARAMETER",
+ "INVALID_ARN",
+ "INVALID_IDENTITY_FOR_DESTINATION_COUNTRY",
+ "DESTINATION_COUNTRY_BLOCKED",
+ "CANNOT_ADD_OPTED_OUT_NUMBER",
+ "COUNTRY_CODE_MISMATCH",
+ "INVALID_FILTER_VALUES",
+ "INVALID_NEXT_TOKEN",
+ "MISSING_PARAMETER",
+ "PARAMETERS_CANNOT_BE_USED_TOGETHER",
+ "PHONE_NUMBER_CANNOT_BE_OPTED_IN",
+ "PHONE_NUMBER_CANNOT_BE_RELEASED",
+ "PRICE_OVER_THRESHOLD",
+ "REQUESTED_SPEND_LIMIT_HIGHER_THAN_SERVICE_LIMIT",
+ "SENDER_ID_NOT_REGISTERED",
+ "SENDER_ID_NOT_SUPPORTED",
+ "TWO_WAY_NOT_ENABLED",
+ "TWO_WAY_NOT_SUPPORTED_IN_COUNTRY",
+ "TWO_WAY_NOT_SUPPORTED_IN_REGION",
+ "TWO_WAY_TOPIC_NOT_PRESENT"
+ ]
+ },
+ "VoiceId":{
+ "type":"string",
+ "enum":[
+ "AMY",
+ "ASTRID",
+ "BIANCA",
+ "BRIAN",
+ "CAMILA",
+ "CARLA",
+ "CARMEN",
+ "CELINE",
+ "CHANTAL",
+ "CONCHITA",
+ "CRISTIANO",
+ "DORA",
+ "EMMA",
+ "ENRIQUE",
+ "EWA",
+ "FILIZ",
+ "GERAINT",
+ "GIORGIO",
+ "GWYNETH",
+ "HANS",
+ "INES",
+ "IVY",
+ "JACEK",
+ "JAN",
+ "JOANNA",
+ "JOEY",
+ "JUSTIN",
+ "KARL",
+ "KENDRA",
+ "KIMBERLY",
+ "LEA",
+ "LIV",
+ "LOTTE",
+ "LUCIA",
+ "LUPE",
+ "MADS",
+ "MAJA",
+ "MARLENE",
+ "MATHIEU",
+ "MATTHEW",
+ "MAXIM",
+ "MIA",
+ "MIGUEL",
+ "MIZUKI",
+ "NAJA",
+ "NICOLE",
+ "PENELOPE",
+ "RAVEENA",
+ "RICARDO",
+ "RUBEN",
+ "RUSSELL",
+ "SALLI",
+ "SEOYEON",
+ "TAKUMI",
+ "TATYANA",
+ "VICKI",
+ "VITORIA",
+ "ZEINA",
+ "ZHIYU"
+ ]
+ },
+ "VoiceMessageBody":{
+ "type":"string",
+ "max":6000,
+ "min":1,
+ "pattern":"(?!\\s*$)[\\s\\S]+"
+ },
+ "VoiceMessageBodyTextType":{
+ "type":"string",
+ "enum":[
+ "TEXT",
+ "SSML"
+ ]
+ },
+ "VoiceMessageOriginationIdentity":{
+ "type":"string",
+ "max":256,
+ "min":1,
+ "pattern":"[A-Za-z0-9_:/\\+-]+"
+ }
+ }
+}
diff --git a/models/apis/pinpoint-sms-voice-v2/2022-03-31/docs-2.json b/models/apis/pinpoint-sms-voice-v2/2022-03-31/docs-2.json
new file mode 100644
index 00000000000..36b3a27ae86
--- /dev/null
+++ b/models/apis/pinpoint-sms-voice-v2/2022-03-31/docs-2.json
@@ -0,0 +1,1641 @@
+{
+ "version": "2.0",
+ "service": "Welcome to the Amazon Pinpoint SMS and Voice, version 2 API Reference. This guide provides information about Amazon Pinpoint SMS and Voice, version 2 API resources, including supported HTTP methods, parameters, and schemas.
Amazon Pinpoint is an Amazon Web Services service that you can use to engage with your recipients across multiple messaging channels. The Amazon Pinpoint SMS and Voice, version 2 API provides programmatic access to options that are unique to the SMS and voice channels and supplements the resources provided by the Amazon Pinpoint API.
If you're new to Amazon Pinpoint, it's also helpful to review the Amazon Pinpoint Developer Guide. The Amazon Pinpoint Developer Guide provides tutorials, code samples, and procedures that demonstrate how to use Amazon Pinpoint features programmatically and how to integrate Amazon Pinpoint functionality into mobile apps and other types of applications. The guide also provides key information, such as Amazon Pinpoint integration with other Amazon Web Services services, and the quotas that apply to use of the service.
",
+ "operations": {
+ "AssociateOriginationIdentity": "Associates the specified origination identity with a pool.
If the origination identity is a phone number and is already associated with another pool, an Error is returned. A sender ID can be associated with multiple pools.
If the origination identity configuration doesn't match the pool's configuration, an Error is returned.
",
+ "CreateConfigurationSet": "Creates a new configuration set. After you create the configuration set, you can add one or more event destinations to it.
A configuration set is a set of rules that you apply to the SMS and voice messages that you send.
When you send a message, you can optionally specify a single configuration set.
",
+ "CreateEventDestination": "Creates a new event destination in a configuration set.
An event destination is a location where you send message events. The event options are Amazon CloudWatch, Amazon Kinesis Data Firehose, or Amazon SNS. For example, when a message is delivered successfully, you can send information about that event to an event destination, or send notifications to endpoints that are subscribed to an Amazon SNS topic.
Each configuration set can contain between 0 and 5 event destinations. Each event destination can contain a reference to a single destination, such as a CloudWatch or Kinesis Data Firehose destination.
",
+ "CreateOptOutList": "Creates a new opt-out list.
If the opt-out list name already exists, an Error is returned.
An opt-out list is a list of phone numbers that are opted out, meaning you can't send SMS or voice messages to them. If end user replies with the keyword \"STOP,\" an entry for the phone number is added to the opt-out list. In addition to STOP, your recipients can use any supported opt-out keyword, such as CANCEL or OPTOUT. For a list of supported opt-out keywords, see SMS opt out in the Amazon Pinpoint User Guide.
",
+ "CreatePool": "Creates a new pool and associates the specified origination identity to the pool. A pool can include one or more phone numbers and SenderIds that are associated with your Amazon Web Services account.
The new pool inherits its configuration from the specified origination identity. This includes keywords, message type, opt-out list, two-way configuration, and self-managed opt-out configuration. Deletion protection isn't inherited from the origination identity and defaults to false.
If the origination identity is a phone number and is already associated with another pool, an Error is returned. A sender ID can be associated with multiple pools.
",
+ "DeleteConfigurationSet": "Deletes an existing configuration set.
A configuration set is a set of rules that you apply to voice and SMS messages that you send. In a configuration set, you can specify a destination for specific types of events related to voice and SMS messages.
",
+ "DeleteDefaultMessageType": "Deletes an existing default message type on a configuration set.
A message type is a type of messages that you plan to send. If you send account-related messages or time-sensitive messages such as one-time passcodes, choose Transactional. If you plan to send messages that contain marketing material or other promotional content, choose Promotional. This setting applies to your entire Amazon Web Services account.
",
+ "DeleteDefaultSenderId": "Deletes an existing default sender ID on a configuration set.
A default sender ID is the identity that appears on recipients' devices when they receive SMS messages. Support for sender ID capabilities varies by country or region.
",
+ "DeleteEventDestination": "Deletes an existing event destination.
An event destination is a location where you send response information about the messages that you send. For example, when a message is delivered successfully, you can send information about that event to an Amazon CloudWatch destination, or send notifications to endpoints that are subscribed to an Amazon SNS topic.
",
+ "DeleteKeyword": "Deletes an existing keyword from an origination phone number or pool.
A keyword is a word that you can search for on a particular phone number or pool. It is also a specific word or phrase that an end user can send to your number to elicit a response, such as an informational message or a special offer. When your number receives a message that begins with a keyword, Amazon Pinpoint responds with a customizable message.
Keywords \"HELP\" and \"STOP\" can't be deleted or modified.
",
+ "DeleteOptOutList": "Deletes an existing opt-out list. All opted out phone numbers in the opt-out list are deleted.
If the specified opt-out list name doesn't exist or is in-use by an origination phone number or pool, an Error is returned.
",
+ "DeleteOptedOutNumber": "Deletes an existing opted out destination phone number from the specified opt-out list.
Each destination phone number can only be deleted once every 30 days.
If the specified destination phone number doesn't exist or if the opt-out list doesn't exist, an Error is returned.
",
+ "DeletePool": "Deletes an existing pool. Deleting a pool disassociates all origination identities from that pool.
If the pool status isn't active or if deletion protection is enabled, an Error is returned.
A pool is a collection of phone numbers and SenderIds. A pool can include one or more phone numbers and SenderIds that are associated with your Amazon Web Services account.
",
+ "DeleteTextMessageSpendLimitOverride": "Deletes an account-level monthly spending limit override for sending text messages. Deleting a spend limit override will set the EnforcedLimit
to equal the MaxLimit
, which is controlled by Amazon Web Services. For more information on spend limits (quotas) see Amazon Pinpoint quotas in the Amazon Pinpoint Developer Guide.
",
+ "DeleteVoiceMessageSpendLimitOverride": "Deletes an account level monthly spend limit override for sending voice messages. Deleting a spend limit override sets the EnforcedLimit
equal to the MaxLimit
, which is controlled by Amazon Web Services. For more information on spending limits (quotas) see Amazon Pinpoint quotas in the Amazon Pinpoint Developer Guide.
",
+ "DescribeAccountAttributes": "Describes attributes of your Amazon Web Services account. The supported account attributes include account tier, which indicates whether your account is in the sandbox or production environment. When you're ready to move your account out of the sandbox, create an Amazon Web Services Support case for a service limit increase request.
New Amazon Pinpoint accounts are placed into an SMS or voice sandbox. The sandbox protects both Amazon Web Services end recipients and SMS or voice recipients from fraud and abuse.
",
+ "DescribeAccountLimits": "Describes the current Amazon Pinpoint SMS Voice V2 resource quotas for your account. The description for a quota includes the quota name, current usage toward that quota, and the quota's maximum value.
When you establish an Amazon Web Services account, the account has initial quotas on the maximum number of configuration sets, opt-out lists, phone numbers, and pools that you can create in a given Region. For more information see Amazon Pinpoint quotas in the Amazon Pinpoint Developer Guide.
",
+ "DescribeConfigurationSets": "Describes the specified configuration sets or all in your account.
If you specify configuration set names, the output includes information for only the specified configuration sets. If you specify filters, the output includes information for only those configuration sets that meet the filter criteria. If you don't specify configuration set names or filters, the output includes information for all configuration sets.
If you specify a configuration set name that isn't valid, an error is returned.
",
+ "DescribeKeywords": "Describes the specified keywords or all keywords on your origination phone number or pool.
A keyword is a word that you can search for on a particular phone number or pool. It is also a specific word or phrase that an end user can send to your number to elicit a response, such as an informational message or a special offer. When your number receives a message that begins with a keyword, Amazon Pinpoint responds with a customizable message.
If you specify a keyword that isn't valid, an Error is returned.
",
+ "DescribeOptOutLists": "Describes the specified opt-out list or all opt-out lists in your account.
If you specify opt-out list names, the output includes information for only the specified opt-out lists. Opt-out lists include only those that meet the filter criteria. If you don't specify opt-out list names or filters, the output includes information for all opt-out lists.
If you specify an opt-out list name that isn't valid, an Error is returned.
",
+ "DescribeOptedOutNumbers": "Describes the specified opted out destination numbers or all opted out destination numbers in an opt-out list.
If you specify opted out numbers, the output includes information for only the specified opted out numbers. If you specify filters, the output includes information for only those opted out numbers that meet the filter criteria. If you don't specify opted out numbers or filters, the output includes information for all opted out destination numbers in your opt-out list.
If you specify an opted out number that isn't valid, an Error is returned.
",
+ "DescribePhoneNumbers": "Describes the specified origination phone number, or all the phone numbers in your account.
If you specify phone number IDs, the output includes information for only the specified phone numbers. If you specify filters, the output includes information for only those phone numbers that meet the filter criteria. If you don't specify phone number IDs or filters, the output includes information for all phone numbers.
If you specify a phone number ID that isn't valid, an Error is returned.
",
+ "DescribePools": "Retrieves the specified pools or all pools associated with your Amazon Web Services account.
If you specify pool IDs, the output includes information for only the specified pools. If you specify filters, the output includes information for only those pools that meet the filter criteria. If you don't specify pool IDs or filters, the output includes information for all pools.
If you specify a pool ID that isn't valid, an Error is returned.
A pool is a collection of phone numbers and SenderIds. A pool can include one or more phone numbers and SenderIds that are associated with your Amazon Web Services account.
",
+ "DescribeSenderIds": "Describes the specified SenderIds or all SenderIds associated with your Amazon Web Services account.
If you specify SenderIds, the output includes information for only the specified SenderIds. If you specify filters, the output includes information for only those SenderIds that meet the filter criteria. If you don't specify SenderIds or filters, the output includes information for all SenderIds.
f you specify a sender ID that isn't valid, an Error is returned.
",
+ "DescribeSpendLimits": "Describes the current Amazon Pinpoint monthly spend limits for sending voice and text messages.
When you establish an Amazon Web Services account, the account has initial monthly spend limit in a given Region. For more information on increasing your monthly spend limit, see Requesting increases to your monthly SMS spending quota for Amazon Pinpoint in the Amazon Pinpoint User Guide.
",
+ "DisassociateOriginationIdentity": "Removes the specified origination identity from an existing pool.
If the origination identity isn't associated with the specified pool, an Error is returned.
",
+ "ListPoolOriginationIdentities": "Lists all associated origination identities in your pool.
If you specify filters, the output includes information for only those origination identities that meet the filter criteria.
",
+ "ListTagsForResource": "List all tags associated with a resource.
",
+ "PutKeyword": "Creates or updates a keyword configuration on an origination phone number or pool.
A keyword is a word that you can search for on a particular phone number or pool. It is also a specific word or phrase that an end user can send to your number to elicit a response, such as an informational message or a special offer. When your number receives a message that begins with a keyword, Amazon Pinpoint responds with a customizable message.
If you specify a keyword that isn't valid, an Error is returned.
",
+ "PutOptedOutNumber": "Creates an opted out destination phone number in the opt-out list.
If the destination phone number isn't valid or if the specified opt-out list doesn't exist, an Error is returned.
",
+ "ReleasePhoneNumber": "Releases an existing origination phone number in your account. Once released, a phone number is no longer available for sending messages.
If the origination phone number has deletion protection enabled or is associated with a pool, an Error is returned.
",
+ "RequestPhoneNumber": "Request an origination phone number for use in your account. For more information on phone number request see Requesting a number in the Amazon Pinpoint User Guide.
",
+ "SendTextMessage": "Creates a new text message and sends it to a recipient's phone number.
SMS throughput limits are measured in Message Parts per Second (MPS). Your MPS limit depends on the destination country of your messages, as well as the type of phone number (origination number) that you use to send the message. For more information, see Message Parts per Second (MPS) limits in the Amazon Pinpoint User Guide.
",
+ "SendVoiceMessage": "Allows you to send a request that sends a text message through Amazon Pinpoint. This operation uses Amazon Polly to convert a text script into a voice message.
",
+ "SetDefaultMessageType": "Sets the default message type on a configuration set.
Choose the category of SMS messages that you plan to send from this account. If you send account-related messages or time-sensitive messages such as one-time passcodes, choose Transactional. If you plan to send messages that contain marketing material or other promotional content, choose Promotional. This setting applies to your entire Amazon Web Services account.
",
+ "SetDefaultSenderId": "Sets default sender ID on a configuration set.
When sending a text message to a destination country that supports sender IDs, the default sender ID on the configuration set specified will be used if no dedicated origination phone numbers or registered sender IDs are available in your account.
",
+ "SetTextMessageSpendLimitOverride": "Sets an account level monthly spend limit override for sending text messages. The requested spend limit must be less than or equal to the MaxLimit
, which is set by Amazon Web Services.
",
+ "SetVoiceMessageSpendLimitOverride": "Sets an account level monthly spend limit override for sending voice messages. The requested spend limit must be less than or equal to the MaxLimit
, which is set by Amazon Web Services.
",
+ "TagResource": "Adds or overwrites only the specified tags for the specified Amazon Pinpoint SMS Voice, version 2 resource. When you specify an existing tag key, the value is overwritten with the new value. Each resource can have a maximum of 50 tags. Each tag consists of a key and an optional value. Tag keys must be unique per resource. For more information about tags, see Tagging Amazon Pinpoint resources in the Amazon Pinpoint Developer Guide.
",
+ "UntagResource": "Removes the association of the specified tags from an Amazon Pinpoint SMS Voice V2 resource. For more information on tags see Tagging Amazon Pinpoint resources in the Amazon Pinpoint Developer Guide.
",
+ "UpdateEventDestination": "Updates an existing event destination in a configuration set. You can update the IAM role ARN for CloudWatch Logs and Kinesis Data Firehose. You can also enable or disable the event destination.
You may want to update an event destination to change its matching event types or updating the destination resource ARN. You can't change an event destination's type between CloudWatch Logs, Kinesis Data Firehose, and Amazon SNS.
",
+ "UpdatePhoneNumber": "Updates the configuration of an existing origination phone number. You can update the opt-out list, enable or disable two-way messaging, change the TwoWayChannelArn, enable or disable self-managed opt-outs, and enable or disable deletion protection.
If the origination phone number is associated with a pool, an Error is returned.
",
+ "UpdatePool": "Updates the configuration of an existing pool. You can update the opt-out list, enable or disable two-way messaging, change the TwoWayChannelArn
, enable or disable self-managed opt-outs, enable or disable deletion protection, and enable or disable shared routes.
"
+ },
+ "shapes": {
+ "AccessDeniedException": {
+ "base": "The request was denied because you don't have sufficient permissions to access the resource.
",
+ "refs": {
+ }
+ },
+ "AccessDeniedExceptionReason": {
+ "base": null,
+ "refs": {
+ "AccessDeniedException$Reason": "The reason for the exception.
"
+ }
+ },
+ "AccountAttribute": {
+ "base": "Displays the attributes associated with a single Amazon Web Services account.
",
+ "refs": {
+ "AccountAttributeList$member": null
+ }
+ },
+ "AccountAttributeList": {
+ "base": null,
+ "refs": {
+ "DescribeAccountAttributesResult$AccountAttributes": "An array of AccountAttributes objects.
"
+ }
+ },
+ "AccountAttributeName": {
+ "base": null,
+ "refs": {
+ "AccountAttribute$Name": "The name of the account attribute.
"
+ }
+ },
+ "AccountLimit": {
+ "base": "The current resource quotas associated with an Amazon Web Services account.
",
+ "refs": {
+ "AccountLimitList$member": null
+ }
+ },
+ "AccountLimitList": {
+ "base": null,
+ "refs": {
+ "DescribeAccountLimitsResult$AccountLimits": "An array of AccountLimit objects that show the current spend limits.
"
+ }
+ },
+ "AccountLimitName": {
+ "base": null,
+ "refs": {
+ "AccountLimit$Name": "The name of the attribute to apply the account limit to.
"
+ }
+ },
+ "AmazonResourceName": {
+ "base": null,
+ "refs": {
+ "ListTagsForResourceRequest$ResourceArn": "The Amazon Resource Name (ARN) of the resource to query for.
",
+ "ListTagsForResourceResult$ResourceArn": "The ARN of the resource.
",
+ "TagResourceRequest$ResourceArn": "The Amazon Resource Name (ARN) of the resource.
",
+ "UntagResourceRequest$ResourceArn": "The Amazon Resource Name (ARN) of the resource.
"
+ }
+ },
+ "AssociateOriginationIdentityRequest": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "AssociateOriginationIdentityResult": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "Boolean": {
+ "base": null,
+ "refs": {
+ "CreatePoolRequest$DeletionProtectionEnabled": "By default this is set to false. When set to true the pool can't be deleted. You can change this value using the UpdatePool action.
",
+ "EventDestination$Enabled": "When set to true events will be logged.
",
+ "RequestPhoneNumberRequest$DeletionProtectionEnabled": "By default this is set to false. When set to true the phone number can't be deleted.
",
+ "UpdateEventDestinationRequest$Enabled": "When set to true logging is enabled.
",
+ "UpdatePhoneNumberRequest$TwoWayEnabled": "By default this is set to false. When set to true you can receive incoming text messages from your end recipients.
",
+ "UpdatePhoneNumberRequest$SelfManagedOptOutsEnabled": "By default this is set to false. When an end recipient sends a message that begins with HELP or STOP to one of your dedicated numbers, Amazon Pinpoint automatically replies with a customizable message and adds the end recipient to the OptOutList. When set to true you're responsible for responding to HELP and STOP requests. You're also responsible for tracking and honoring opt-out requests.
",
+ "UpdatePhoneNumberRequest$DeletionProtectionEnabled": "By default this is set to false. When set to true the phone number can't be deleted.
",
+ "UpdatePoolRequest$TwoWayEnabled": "By default this is set to false. When set to true you can receive incoming text messages from your end recipients.
",
+ "UpdatePoolRequest$SelfManagedOptOutsEnabled": "By default this is set to false. When an end recipient sends a message that begins with HELP or STOP to one of your dedicated numbers, Amazon Pinpoint automatically replies with a customizable message and adds the end recipient to the OptOutList. When set to true you're responsible for responding to HELP and STOP requests. You're also responsible for tracking and honoring opt-out requests.
",
+ "UpdatePoolRequest$SharedRoutesEnabled": "Indicates whether shared routes are enabled for the pool.
",
+ "UpdatePoolRequest$DeletionProtectionEnabled": "When set to true the pool can't be deleted.
"
+ }
+ },
+ "ClientToken": {
+ "base": null,
+ "refs": {
+ "AssociateOriginationIdentityRequest$ClientToken": "Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you don't specify a client token, a randomly generated token is used for the request to ensure idempotency.
",
+ "CreateConfigurationSetRequest$ClientToken": "Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you don't specify a client token, a randomly generated token is used for the request to ensure idempotency.
",
+ "CreateEventDestinationRequest$ClientToken": "Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you don't specify a client token, a randomly generated token is used for the request to ensure idempotency.
",
+ "CreateOptOutListRequest$ClientToken": "Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you don't specify a client token, a randomly generated token is used for the request to ensure idempotency.
",
+ "CreatePoolRequest$ClientToken": "Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you don't specify a client token, a randomly generated token is used for the request to ensure idempotency.
",
+ "DisassociateOriginationIdentityRequest$ClientToken": "Unique, case-sensitive identifier you provide to ensure the idempotency of the request. If you don't specify a client token, a randomly generated token is used for the request to ensure idempotency.
",
+ "RequestPhoneNumberRequest$ClientToken": "Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you don't specify a client token, a randomly generated token is used for the request to ensure idempotency.
"
+ }
+ },
+ "CloudWatchLogsDestination": {
+ "base": "Contains the destination configuration to use when publishing message sending events.
",
+ "refs": {
+ "CreateEventDestinationRequest$CloudWatchLogsDestination": "An object that contains information about an event destination for logging to Amazon CloudWatch logs.
",
+ "EventDestination$CloudWatchLogsDestination": "An object that contains information about an event destination that sends logging events to Amazon CloudWatch logs.
",
+ "UpdateEventDestinationRequest$CloudWatchLogsDestination": "An object that contains information about an event destination that sends data to CloudWatch Logs.
"
+ }
+ },
+ "ConfigurationSetFilter": {
+ "base": "The information for configuration sets that meet a specified criteria.
",
+ "refs": {
+ "ConfigurationSetFilterList$member": null
+ }
+ },
+ "ConfigurationSetFilterList": {
+ "base": null,
+ "refs": {
+ "DescribeConfigurationSetsRequest$Filters": "An array of filters to apply to the results that are returned.
"
+ }
+ },
+ "ConfigurationSetFilterName": {
+ "base": null,
+ "refs": {
+ "ConfigurationSetFilter$Name": "The name of the attribute to filter on.
"
+ }
+ },
+ "ConfigurationSetInformation": {
+ "base": "Information related to a given configuration set in your Amazon Web Services account.
",
+ "refs": {
+ "ConfigurationSetInformationList$member": null
+ }
+ },
+ "ConfigurationSetInformationList": {
+ "base": null,
+ "refs": {
+ "DescribeConfigurationSetsResult$ConfigurationSets": "An array of ConfigurationSets objects.
"
+ }
+ },
+ "ConfigurationSetName": {
+ "base": null,
+ "refs": {
+ "ConfigurationSetInformation$ConfigurationSetName": "The name of the ConfigurationSet.
",
+ "CreateConfigurationSetRequest$ConfigurationSetName": "The name to use for the new configuration set.
",
+ "CreateConfigurationSetResult$ConfigurationSetName": "The name of the new configuration set.
",
+ "CreateEventDestinationResult$ConfigurationSetName": "The name of the configuration set.
",
+ "DeleteConfigurationSetResult$ConfigurationSetName": "The name of the deleted configuration set.
",
+ "DeleteDefaultMessageTypeResult$ConfigurationSetName": "The name of the configuration set.
",
+ "DeleteDefaultSenderIdResult$ConfigurationSetName": "The name of the configuration set.
",
+ "DeleteEventDestinationResult$ConfigurationSetName": "The name of the configuration set the event destination was deleted from.
",
+ "SetDefaultMessageTypeResult$ConfigurationSetName": "The name of the configuration set that was updated.
",
+ "SetDefaultSenderIdResult$ConfigurationSetName": "The name of the configuration set that was updated.
",
+ "UpdateEventDestinationResult$ConfigurationSetName": "The name of the configuration set.
"
+ }
+ },
+ "ConfigurationSetNameList": {
+ "base": null,
+ "refs": {
+ "DescribeConfigurationSetsRequest$ConfigurationSetNames": "An array of strings. Each element can be either a ConfigurationSetName or ConfigurationSetArn.
"
+ }
+ },
+ "ConfigurationSetNameOrArn": {
+ "base": null,
+ "refs": {
+ "ConfigurationSetNameList$member": null,
+ "CreateEventDestinationRequest$ConfigurationSetName": "Either the name of the configuration set or the configuration set ARN to apply event logging to. The ConfigurateSetName and ConfigurationSetArn can be found using the DescribeConfigurationSets action.
",
+ "DeleteConfigurationSetRequest$ConfigurationSetName": "The name of the configuration set or the configuration set ARN that you want to delete. The ConfigurationSetName and ConfigurationSetArn can be found using the DescribeConfigurationSets action.
",
+ "DeleteDefaultMessageTypeRequest$ConfigurationSetName": "The name of the configuration set or the configuration set Amazon Resource Name (ARN) to delete the default message type from. The ConfigurationSetName and ConfigurationSetArn can be found using the DescribeConfigurationSets action.
",
+ "DeleteDefaultSenderIdRequest$ConfigurationSetName": "The name of the configuration set or the configuration set Amazon Resource Name (ARN) to delete the default sender ID from. The ConfigurationSetName and ConfigurationSetArn can be found using the DescribeConfigurationSets action.
",
+ "DeleteEventDestinationRequest$ConfigurationSetName": "The name of the configuration set or the configuration set's Amazon Resource Name (ARN) to remove the event destination from. The ConfigurateSetName and ConfigurationSetArn can be found using the DescribeConfigurationSets action.
",
+ "SendTextMessageRequest$ConfigurationSetName": "The name of the configuration set to use. This can be either the ConfigurationSetName or ConfigurationSetArn.
",
+ "SendVoiceMessageRequest$ConfigurationSetName": "The name of the configuration set to use. This can be either the ConfigurationSetName or ConfigurationSetArn.
",
+ "SetDefaultMessageTypeRequest$ConfigurationSetName": "The configuration set to update with a new default message type. This field can be the ConsigurationSetName or ConfigurationSetArn.
",
+ "SetDefaultSenderIdRequest$ConfigurationSetName": "The configuration set to updated with a new default SenderId. This field can be the ConsigurationSetName or ConfigurationSetArn.
",
+ "UpdateEventDestinationRequest$ConfigurationSetName": "The configuration set to update with the new event destination. Valid values for this can be the ConfigurationSetName or ConfigurationSetArn.
"
+ }
+ },
+ "ConflictException": {
+ "base": "Your request has conflicting operations. This can occur if you're trying to perform more than one operation on the same resource at the same time or it could be that the requested action isn't valid for the current state or configuration of the resource.
",
+ "refs": {
+ }
+ },
+ "ConflictExceptionReason": {
+ "base": null,
+ "refs": {
+ "ConflictException$Reason": "The reason for the exception.
"
+ }
+ },
+ "ContextKey": {
+ "base": null,
+ "refs": {
+ "ContextMap$key": null
+ }
+ },
+ "ContextMap": {
+ "base": null,
+ "refs": {
+ "SendTextMessageRequest$Context": "You can specify custom data in this field. If you do, that data is logged to the event destination.
",
+ "SendVoiceMessageRequest$Context": "You can specify custom data in this field. If you do, that data is logged to the event destination.
"
+ }
+ },
+ "ContextValue": {
+ "base": null,
+ "refs": {
+ "ContextMap$value": null
+ }
+ },
+ "CreateConfigurationSetRequest": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "CreateConfigurationSetResult": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "CreateEventDestinationRequest": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "CreateEventDestinationResult": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "CreateOptOutListRequest": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "CreateOptOutListResult": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "CreatePoolRequest": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "CreatePoolResult": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "DeleteConfigurationSetRequest": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "DeleteConfigurationSetResult": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "DeleteDefaultMessageTypeRequest": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "DeleteDefaultMessageTypeResult": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "DeleteDefaultSenderIdRequest": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "DeleteDefaultSenderIdResult": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "DeleteEventDestinationRequest": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "DeleteEventDestinationResult": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "DeleteKeywordRequest": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "DeleteKeywordResult": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "DeleteOptOutListRequest": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "DeleteOptOutListResult": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "DeleteOptedOutNumberRequest": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "DeleteOptedOutNumberResult": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "DeletePoolRequest": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "DeletePoolResult": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "DeleteTextMessageSpendLimitOverrideRequest": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "DeleteTextMessageSpendLimitOverrideResult": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "DeleteVoiceMessageSpendLimitOverrideRequest": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "DeleteVoiceMessageSpendLimitOverrideResult": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "DeliveryStreamArn": {
+ "base": null,
+ "refs": {
+ "KinesisFirehoseDestination$DeliveryStreamArn": "The Amazon Resource Name (ARN) of the delivery stream.
"
+ }
+ },
+ "DescribeAccountAttributesRequest": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "DescribeAccountAttributesResult": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "DescribeAccountLimitsRequest": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "DescribeAccountLimitsResult": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "DescribeConfigurationSetsRequest": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "DescribeConfigurationSetsResult": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "DescribeKeywordsRequest": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "DescribeKeywordsResult": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "DescribeOptOutListsRequest": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "DescribeOptOutListsResult": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "DescribeOptedOutNumbersRequest": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "DescribeOptedOutNumbersResult": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "DescribePhoneNumbersRequest": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "DescribePhoneNumbersResult": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "DescribePoolsRequest": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "DescribePoolsResult": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "DescribeSenderIdsRequest": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "DescribeSenderIdsResult": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "DescribeSpendLimitsRequest": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "DescribeSpendLimitsResult": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "DestinationCountryParameterKey": {
+ "base": null,
+ "refs": {
+ "DestinationCountryParameters$key": null
+ }
+ },
+ "DestinationCountryParameterValue": {
+ "base": null,
+ "refs": {
+ "DestinationCountryParameters$value": null
+ }
+ },
+ "DestinationCountryParameters": {
+ "base": null,
+ "refs": {
+ "SendTextMessageRequest$DestinationCountryParameters": "This field is used for any country-specific registration requirements. Currently, this setting is only used when you send messages to recipients in India using a sender ID. For more information see Special requirements for sending SMS messages to recipients in India.
"
+ }
+ },
+ "DisassociateOriginationIdentityRequest": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "DisassociateOriginationIdentityResult": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "EventDestination": {
+ "base": "Contains information about an event destination.
Event destinations are associated with configuration sets, which enable you to publish message sending events to Amazon CloudWatch, Amazon Kinesis Data Firehose, or Amazon SNS.
",
+ "refs": {
+ "CreateEventDestinationResult$EventDestination": "The details of the destination where events are logged.
",
+ "DeleteEventDestinationResult$EventDestination": "The event destination object that was deleted.
",
+ "EventDestinationList$member": null,
+ "UpdateEventDestinationResult$EventDestination": "An EventDestination object containing the details of where events will be logged.
"
+ }
+ },
+ "EventDestinationList": {
+ "base": null,
+ "refs": {
+ "ConfigurationSetInformation$EventDestinations": "An array of EventDestination objects that describe any events to log and where to log them.
",
+ "DeleteConfigurationSetResult$EventDestinations": "An array of any EventDestination objects that were associated with the deleted configuration set.
"
+ }
+ },
+ "EventDestinationName": {
+ "base": null,
+ "refs": {
+ "CreateEventDestinationRequest$EventDestinationName": "The name that identifies the event destination.
",
+ "DeleteEventDestinationRequest$EventDestinationName": "The name of the event destination to delete.
",
+ "EventDestination$EventDestinationName": "The name of the EventDestination.
",
+ "UpdateEventDestinationRequest$EventDestinationName": "The name to use for the event destination.
"
+ }
+ },
+ "EventType": {
+ "base": null,
+ "refs": {
+ "EventTypeList$member": null
+ }
+ },
+ "EventTypeList": {
+ "base": null,
+ "refs": {
+ "CreateEventDestinationRequest$MatchingEventTypes": "An array of event types that determine which events to log. If \"ALL\" is used, then Amazon Pinpoint logs every event type.
",
+ "EventDestination$MatchingEventTypes": "An array of event types that determine which events to log.
",
+ "UpdateEventDestinationRequest$MatchingEventTypes": "An array of event types that determine which events to log.
"
+ }
+ },
+ "FilterValue": {
+ "base": null,
+ "refs": {
+ "FilterValueList$member": null
+ }
+ },
+ "FilterValueList": {
+ "base": null,
+ "refs": {
+ "ConfigurationSetFilter$Values": "An array values to filter for.
",
+ "KeywordFilter$Values": "An array values to filter for.
",
+ "OptedOutFilter$Values": "An array of values to filter for.
",
+ "PhoneNumberFilter$Values": "An array values to filter for.
",
+ "PoolFilter$Values": "An array values to filter for.
",
+ "PoolOriginationIdentitiesFilter$Values": "An array values to filter for.
",
+ "SenderIdFilter$Values": "An array of values to filter for.
"
+ }
+ },
+ "IamRoleArn": {
+ "base": null,
+ "refs": {
+ "CloudWatchLogsDestination$IamRoleArn": "The Amazon Resource Name (ARN) of an Amazon Identity and Access Management (IAM) role that is able to write event data to an Amazon CloudWatch destination.
",
+ "KinesisFirehoseDestination$IamRoleArn": "The ARN of an Amazon Identity and Access Management (IAM) role that is able to write event data to an Amazon Firehose destination.
"
+ }
+ },
+ "InternalServerException": {
+ "base": "The API encountered an unexpected error and couldn't complete the request. You might be able to successfully issue the request again in the future.
",
+ "refs": {
+ }
+ },
+ "IsoCountryCode": {
+ "base": null,
+ "refs": {
+ "AssociateOriginationIdentityRequest$IsoCountryCode": "The new two-character code, in ISO 3166-1 alpha-2 format, for the country or region of the origination identity.
",
+ "AssociateOriginationIdentityResult$IsoCountryCode": "The two-character code, in ISO 3166-1 alpha-2 format, for the country or region.
",
+ "CreatePoolRequest$IsoCountryCode": "The new two-character code, in ISO 3166-1 alpha-2 format, for the country or region of the new pool.
",
+ "DisassociateOriginationIdentityRequest$IsoCountryCode": "The two-character code, in ISO 3166-1 alpha-2 format, for the country or region.
",
+ "DisassociateOriginationIdentityResult$IsoCountryCode": "The two-character code, in ISO 3166-1 alpha-2 format, for the country or region.
",
+ "OriginationIdentityMetadata$IsoCountryCode": "The two-character code, in ISO 3166-1 alpha-2 format, for the country or region.
",
+ "PhoneNumberInformation$IsoCountryCode": "The two-character code, in ISO 3166-1 alpha-2 format, for the country or region.
",
+ "ReleasePhoneNumberResult$IsoCountryCode": "The two-character code, in ISO 3166-1 alpha-2 format, for the country or region.
",
+ "RequestPhoneNumberRequest$IsoCountryCode": "The two-character code, in ISO 3166-1 alpha-2 format, for the country or region.
",
+ "RequestPhoneNumberResult$IsoCountryCode": "The two-character code, in ISO 3166-1 alpha-2 format, for the country or region.
",
+ "SenderIdAndCountry$IsoCountryCode": "The two-character code, in ISO 3166-1 alpha-2 format, for the country or region.
",
+ "SenderIdInformation$IsoCountryCode": "The two-character code, in ISO 3166-1 alpha-2 format, for the country or region.
",
+ "UpdatePhoneNumberResult$IsoCountryCode": "The two-character code, in ISO 3166-1 alpha-2 format, for the country or region.
"
+ }
+ },
+ "Keyword": {
+ "base": null,
+ "refs": {
+ "DeleteKeywordRequest$Keyword": "The keyword to delete.
",
+ "DeleteKeywordResult$Keyword": "The keyword that was deleted.
",
+ "KeywordInformation$Keyword": "The keyword as a string.
",
+ "KeywordList$member": null,
+ "PutKeywordRequest$Keyword": "The new keyword to add.
",
+ "PutKeywordResult$Keyword": "The keyword that was added.
",
+ "SendTextMessageRequest$Keyword": "When you register a short code in the US, you must specify a program name. If you don’t have a US short code, omit this attribute.
"
+ }
+ },
+ "KeywordAction": {
+ "base": null,
+ "refs": {
+ "DeleteKeywordResult$KeywordAction": "The action that was associated with the deleted keyword.
",
+ "KeywordInformation$KeywordAction": "The action to perform for the keyword.
",
+ "PutKeywordRequest$KeywordAction": "The action to perform for the new keyword when it is received.
",
+ "PutKeywordResult$KeywordAction": "The action to perform when the keyword is used.
"
+ }
+ },
+ "KeywordFilter": {
+ "base": "The information for keywords that meet a specified criteria.
",
+ "refs": {
+ "KeywordFilterList$member": null
+ }
+ },
+ "KeywordFilterList": {
+ "base": null,
+ "refs": {
+ "DescribeKeywordsRequest$Filters": "An array of keyword filters to filter the results.
"
+ }
+ },
+ "KeywordFilterName": {
+ "base": null,
+ "refs": {
+ "KeywordFilter$Name": "The name of the attribute to filter on.
"
+ }
+ },
+ "KeywordInformation": {
+ "base": "The information for all keywords in a pool.
",
+ "refs": {
+ "KeywordInformationList$member": null
+ }
+ },
+ "KeywordInformationList": {
+ "base": null,
+ "refs": {
+ "DescribeKeywordsResult$Keywords": "An array of KeywordInformation objects that contain the results.
"
+ }
+ },
+ "KeywordList": {
+ "base": null,
+ "refs": {
+ "DescribeKeywordsRequest$Keywords": "An array of keywords to search for.
"
+ }
+ },
+ "KeywordMessage": {
+ "base": null,
+ "refs": {
+ "DeleteKeywordResult$KeywordMessage": "The message that was associated with the deleted keyword.
",
+ "KeywordInformation$KeywordMessage": "A custom message that can be used with the keyword.
",
+ "PutKeywordRequest$KeywordMessage": "The message associated with the keyword.
-
AUTOMATIC_RESPONSE: A message is sent to the recipient.
-
OPT_OUT: Keeps the recipient from receiving future messages.
-
OPT_IN: The recipient wants to receive future messages.
",
+ "PutKeywordResult$KeywordMessage": "The message associated with the keyword.
"
+ }
+ },
+ "KinesisFirehoseDestination": {
+ "base": "Contains the delivery stream Amazon Resource Name (ARN), and the ARN of the Identity and Access Management (IAM) role associated with an Kinesis Data Firehose event destination.
Event destinations, such as Kinesis Data Firehose, are associated with configuration sets, which enable you to publish message sending events.
",
+ "refs": {
+ "CreateEventDestinationRequest$KinesisFirehoseDestination": "An object that contains information about an event destination for logging to Amazon Kinesis Data Firehose.
",
+ "EventDestination$KinesisFirehoseDestination": "An object that contains information about an event destination for logging to Amazon Kinesis Data Firehose.
",
+ "UpdateEventDestinationRequest$KinesisFirehoseDestination": "An object that contains information about an event destination for logging to Kinesis Data Firehose.
"
+ }
+ },
+ "ListPoolOriginationIdentitiesRequest": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "ListPoolOriginationIdentitiesResult": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "ListTagsForResourceRequest": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "ListTagsForResourceResult": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "LogGroupArn": {
+ "base": null,
+ "refs": {
+ "CloudWatchLogsDestination$LogGroupArn": "The name of the Amazon CloudWatch log group that you want to record events in.
"
+ }
+ },
+ "MaxPrice": {
+ "base": null,
+ "refs": {
+ "SendTextMessageRequest$MaxPrice": "The maximum amount that you want to spend, in US dollars, per each text message part. A text message can contain multiple parts.
",
+ "SendVoiceMessageRequest$MaxPricePerMinute": "The maximum amount to spend per voice message, in US dollars.
"
+ }
+ },
+ "MaxResults": {
+ "base": null,
+ "refs": {
+ "DescribeAccountAttributesRequest$MaxResults": "The maximum number of results to return per each request.
",
+ "DescribeAccountLimitsRequest$MaxResults": "The maximum number of results to return per each request.
",
+ "DescribeConfigurationSetsRequest$MaxResults": "The maximum number of results to return per each request.
",
+ "DescribeKeywordsRequest$MaxResults": "The maximum number of results to return per each request.
",
+ "DescribeOptOutListsRequest$MaxResults": "The maximum number of results to return per each request.
",
+ "DescribeOptedOutNumbersRequest$MaxResults": "The maximum number of results to return per each request.
",
+ "DescribePhoneNumbersRequest$MaxResults": "The maximum number of results to return per each request.
",
+ "DescribePoolsRequest$MaxResults": "The maximum number of results to return per each request.
",
+ "DescribeSenderIdsRequest$MaxResults": "The maximum number of results to return per each request.
",
+ "DescribeSpendLimitsRequest$MaxResults": "The maximum number of results to return per each request.
",
+ "ListPoolOriginationIdentitiesRequest$MaxResults": "The maximum number of results to return per each request.
"
+ }
+ },
+ "MessageType": {
+ "base": null,
+ "refs": {
+ "ConfigurationSetInformation$DefaultMessageType": "The type of message. Valid values are TRANSACTIONAL for messages that are critical or time-sensitive and PROMOTIONAL for messages that aren't critical or time-sensitive.
",
+ "CreatePoolRequest$MessageType": "The type of message. Valid values are TRANSACTIONAL for messages that are critical or time-sensitive and PROMOTIONAL for messages that aren't critical or time-sensitive.
",
+ "CreatePoolResult$MessageType": "The type of message for the pool to use.
",
+ "DeleteConfigurationSetResult$DefaultMessageType": "The default message type of the configuration set that was deleted.
",
+ "DeleteDefaultMessageTypeResult$MessageType": "The current message type for the configuration set.
",
+ "DeletePoolResult$MessageType": "The message type that was associated with the deleted pool.
",
+ "MessageTypeList$member": null,
+ "PhoneNumberInformation$MessageType": "The type of message. Valid values are TRANSACTIONAL for messages that are critical or time-sensitive and PROMOTIONAL for messages that aren't critical or time-sensitive.
",
+ "PoolInformation$MessageType": "The type of message. Valid values are TRANSACTIONAL for messages that are critical or time-sensitive and PROMOTIONAL for messages that aren't critical or time-sensitive.
",
+ "ReleasePhoneNumberResult$MessageType": "The message type that was associated with the phone number.
",
+ "RequestPhoneNumberRequest$MessageType": "The type of message. Valid values are TRANSACTIONAL for messages that are critical or time-sensitive and PROMOTIONAL for messages that aren't critical or time-sensitive.
",
+ "RequestPhoneNumberResult$MessageType": "The type of message. Valid values are TRANSACTIONAL for messages that are critical or time-sensitive and PROMOTIONAL for messages that aren't critical or time-sensitive.
",
+ "SendTextMessageRequest$MessageType": "The type of message. Valid values are TRANSACTIONAL for messages that are critical or time-sensitive and PROMOTIONAL for messages that aren't critical or time-sensitive.
",
+ "SetDefaultMessageTypeRequest$MessageType": "The type of message. Valid values are TRANSACTIONAL for messages that are critical or time-sensitive and PROMOTIONAL for messages that aren't critical or time-sensitive.
",
+ "SetDefaultMessageTypeResult$MessageType": "The new default message type of the configuration set.
",
+ "UpdatePhoneNumberResult$MessageType": "The type of message. Valid values are TRANSACTIONAL for messages that are critical or time-sensitive and PROMOTIONAL for messages that aren't critical or time-sensitive.
",
+ "UpdatePoolResult$MessageType": "The type of message for the pool to use.
"
+ }
+ },
+ "MessageTypeList": {
+ "base": null,
+ "refs": {
+ "SenderIdInformation$MessageTypes": "The type of message. Valid values are TRANSACTIONAL for messages that are critical or time-sensitive and PROMOTIONAL for messages that aren't critical or time-sensitive.
"
+ }
+ },
+ "MonthlyLimit": {
+ "base": null,
+ "refs": {
+ "DeleteTextMessageSpendLimitOverrideResult$MonthlyLimit": "The current monthly limit, in US dollars.
",
+ "DeleteVoiceMessageSpendLimitOverrideResult$MonthlyLimit": "The current monthly limit, in US dollars.
",
+ "SetTextMessageSpendLimitOverrideRequest$MonthlyLimit": "The new monthly limit to enforce on text messages.
",
+ "SetTextMessageSpendLimitOverrideResult$MonthlyLimit": "The current monthly limit to enforce on sending text messages.
",
+ "SetVoiceMessageSpendLimitOverrideRequest$MonthlyLimit": "The new monthly limit to enforce on voice messages.
",
+ "SetVoiceMessageSpendLimitOverrideResult$MonthlyLimit": "The current monthly limit to enforce on sending voice messages.
"
+ }
+ },
+ "NextToken": {
+ "base": null,
+ "refs": {
+ "DescribeAccountAttributesRequest$NextToken": "The token to be used for the next set of paginated results. You don't need to supply a value for this field in the initial request.
",
+ "DescribeAccountAttributesResult$NextToken": "The token to be used for the next set of paginated results. If this field is empty then there are no more results.
",
+ "DescribeAccountLimitsRequest$NextToken": "The token to be used for the next set of paginated results. You don't need to supply a value for this field in the initial request.
",
+ "DescribeAccountLimitsResult$NextToken": "The token to be used for the next set of paginated results. If this field is empty then there are no more results.
",
+ "DescribeConfigurationSetsRequest$NextToken": "The token to be used for the next set of paginated results. You don't need to supply a value for this field in the initial request.
",
+ "DescribeConfigurationSetsResult$NextToken": "The token to be used for the next set of paginated results. If this field is empty then there are no more results.
",
+ "DescribeKeywordsRequest$NextToken": "The token to be used for the next set of paginated results. You don't need to supply a value for this field in the initial request.
",
+ "DescribeKeywordsResult$NextToken": "The token to be used for the next set of paginated results. If this field is empty then there are no more results.
",
+ "DescribeOptOutListsRequest$NextToken": "The token to be used for the next set of paginated results. You don't need to supply a value for this field in the initial request.
",
+ "DescribeOptOutListsResult$NextToken": "The token to be used for the next set of paginated results. If this field is empty then there are no more results.
",
+ "DescribeOptedOutNumbersRequest$NextToken": "The token to be used for the next set of paginated results. You don't need to supply a value for this field in the initial request.
",
+ "DescribeOptedOutNumbersResult$NextToken": "The token to be used for the next set of paginated results. If this field is empty then there are no more results.
",
+ "DescribePhoneNumbersRequest$NextToken": "The token to be used for the next set of paginated results. You don't need to supply a value for this field in the initial request.
",
+ "DescribePhoneNumbersResult$NextToken": "The token to be used for the next set of paginated results. If this field is empty then there are no more results.
",
+ "DescribePoolsRequest$NextToken": "The token to be used for the next set of paginated results. You don't need to supply a value for this field in the initial request.
",
+ "DescribePoolsResult$NextToken": "The token to be used for the next set of paginated results. If this field is empty then there are no more results.
",
+ "DescribeSenderIdsRequest$NextToken": "The token to be used for the next set of paginated results. You don't need to supply a value for this field in the initial request.
",
+ "DescribeSenderIdsResult$NextToken": "The token to be used for the next set of paginated results. If this field is empty then there are no more results.
",
+ "DescribeSpendLimitsRequest$NextToken": "The token to be used for the next set of paginated results. You don't need to supply a value for this field in the initial request.
",
+ "DescribeSpendLimitsResult$NextToken": "The token to be used for the next set of paginated results. If this field is empty then there are no more results.
",
+ "ListPoolOriginationIdentitiesRequest$NextToken": "The token to be used for the next set of paginated results. You don't need to supply a value for this field in the initial request.
",
+ "ListPoolOriginationIdentitiesResult$NextToken": "The token to be used for the next set of paginated results. If this field is empty then there are no more results.
"
+ }
+ },
+ "NonEmptyTagList": {
+ "base": null,
+ "refs": {
+ "TagResourceRequest$Tags": "An array of key and value pair tags that are associated with the resource.
"
+ }
+ },
+ "NumberCapability": {
+ "base": null,
+ "refs": {
+ "NumberCapabilityList$member": null
+ }
+ },
+ "NumberCapabilityList": {
+ "base": null,
+ "refs": {
+ "OriginationIdentityMetadata$NumberCapabilities": "Describes if the origination identity can be used for text messages, voice calls or both.
",
+ "PhoneNumberInformation$NumberCapabilities": "Describes if the origination identity can be used for text messages, voice calls or both.
",
+ "ReleasePhoneNumberResult$NumberCapabilities": "Specifies if the number could be used for text messages, voice, or both.
",
+ "RequestPhoneNumberRequest$NumberCapabilities": "Indicates if the phone number will be used for text messages, voice messages, or both.
",
+ "RequestPhoneNumberResult$NumberCapabilities": "Indicates if the phone number will be used for text messages, voice messages or both.
",
+ "UpdatePhoneNumberResult$NumberCapabilities": "Specifies if the number could be used for text messages, voice or both.
"
+ }
+ },
+ "NumberStatus": {
+ "base": null,
+ "refs": {
+ "PhoneNumberInformation$Status": "The current status of the phone number.
",
+ "ReleasePhoneNumberResult$Status": "The current status of the request.
",
+ "RequestPhoneNumberResult$Status": "The current status of the request.
",
+ "UpdatePhoneNumberResult$Status": "The current status of the request.
"
+ }
+ },
+ "NumberType": {
+ "base": null,
+ "refs": {
+ "PhoneNumberInformation$NumberType": "The type of phone number.
",
+ "ReleasePhoneNumberResult$NumberType": "The type of number that was released.
",
+ "UpdatePhoneNumberResult$NumberType": "The type of number that was requested.
"
+ }
+ },
+ "OptOutListInformation": {
+ "base": "The information for all OptOutList in an Amazon Web Services account.
",
+ "refs": {
+ "OptOutListInformationList$member": null
+ }
+ },
+ "OptOutListInformationList": {
+ "base": null,
+ "refs": {
+ "DescribeOptOutListsResult$OptOutLists": "An array of OptOutListInformation objects that contain the details for the requested OptOutLists.
"
+ }
+ },
+ "OptOutListName": {
+ "base": null,
+ "refs": {
+ "CreateOptOutListRequest$OptOutListName": "The name of the new OptOutList.
",
+ "CreateOptOutListResult$OptOutListName": "The name of the new OptOutList.
",
+ "CreatePoolResult$OptOutListName": "The name of the OptOutList associated with the pool.
",
+ "DeleteOptOutListResult$OptOutListName": "The name of the OptOutList that was removed.
",
+ "DeleteOptedOutNumberResult$OptOutListName": "The OptOutListName that the phone number was removed from.
",
+ "DeletePoolResult$OptOutListName": "The name of the OptOutList that was associated with the deleted pool.
",
+ "DescribeOptedOutNumbersResult$OptOutListName": "The name of the OptOutList.
",
+ "OptOutListInformation$OptOutListName": "The name of the OptOutList.
",
+ "PhoneNumberInformation$OptOutListName": "The name of the OptOutList associated with the phone number.
",
+ "PoolInformation$OptOutListName": "The name of the OptOutList associated with the pool.
",
+ "PutOptedOutNumberResult$OptOutListName": "The OptOutListName that the phone number was removed from.
",
+ "ReleasePhoneNumberResult$OptOutListName": "The name of the OptOutList that was associated with the phone number.
",
+ "RequestPhoneNumberResult$OptOutListName": "The name of the OptOutList that is associated with the requested phone number.
",
+ "UpdatePhoneNumberResult$OptOutListName": "The name of the OptOutList associated with the phone number.
",
+ "UpdatePoolResult$OptOutListName": "The name of the OptOutList associated with the pool.
"
+ }
+ },
+ "OptOutListNameList": {
+ "base": null,
+ "refs": {
+ "DescribeOptOutListsRequest$OptOutListNames": "The OptOutLists to show the details of. This is an array of strings that can be either the OptOutListName or OptOutListArn.
"
+ }
+ },
+ "OptOutListNameOrArn": {
+ "base": null,
+ "refs": {
+ "DeleteOptOutListRequest$OptOutListName": "The OptOutListName or OptOutListArn of the OptOutList to delete. You can use DescribeOptOutLists to find the values for OptOutListName and OptOutListArn.
",
+ "DeleteOptedOutNumberRequest$OptOutListName": "The OptOutListName or OptOutListArn to remove the phone number from.
",
+ "DescribeOptedOutNumbersRequest$OptOutListName": "The OptOutListName or OptOutListArn of the OptOutList. You can use DescribeOptOutLists to find the values for OptOutListName and OptOutListArn.
",
+ "OptOutListNameList$member": null,
+ "PutOptedOutNumberRequest$OptOutListName": "The OptOutListName or OptOutListArn to add the phone number to.
",
+ "RequestPhoneNumberRequest$OptOutListName": "The name of the OptOutList to associate with the phone number. You can use the OutOutListName or OptPutListArn.
",
+ "UpdatePhoneNumberRequest$OptOutListName": "The OptOutList to add the phone number to. Valid values for this field can be either the OutOutListName or OutOutListArn.
",
+ "UpdatePoolRequest$OptOutListName": "The OptOutList to associate with the pool. Valid values are either OptOutListName or OptOutListArn.
"
+ }
+ },
+ "OptedOutFilter": {
+ "base": "The information for opted out numbers that meet a specified criteria.
",
+ "refs": {
+ "OptedOutFilterList$member": null
+ }
+ },
+ "OptedOutFilterList": {
+ "base": null,
+ "refs": {
+ "DescribeOptedOutNumbersRequest$Filters": "An array of OptedOutFilter objects to filter the results on.
"
+ }
+ },
+ "OptedOutFilterName": {
+ "base": null,
+ "refs": {
+ "OptedOutFilter$Name": "The name of the attribute to filter on.
"
+ }
+ },
+ "OptedOutNumberInformation": {
+ "base": "The information for an opted out number in an Amazon Web Services account.
",
+ "refs": {
+ "OptedOutNumberInformationList$member": null
+ }
+ },
+ "OptedOutNumberInformationList": {
+ "base": null,
+ "refs": {
+ "DescribeOptedOutNumbersResult$OptedOutNumbers": "An array of OptedOutNumbersInformation objects that provide information about the requested OptedOutNumbers.
"
+ }
+ },
+ "OptedOutNumberList": {
+ "base": null,
+ "refs": {
+ "DescribeOptedOutNumbersRequest$OptedOutNumbers": "An array of phone numbers to search for in the OptOutList.
"
+ }
+ },
+ "OriginationIdentityMetadata": {
+ "base": "The metadata for an origination identity associated with a pool.
",
+ "refs": {
+ "OriginationIdentityMetadataList$member": null
+ }
+ },
+ "OriginationIdentityMetadataList": {
+ "base": null,
+ "refs": {
+ "ListPoolOriginationIdentitiesResult$OriginationIdentities": "An array of any OriginationIdentityMetadata objects.
"
+ }
+ },
+ "PhoneNumber": {
+ "base": null,
+ "refs": {
+ "DeleteOptedOutNumberRequest$OptedOutNumber": "The phone number, in E.164 format, to remove from the OptOutList.
",
+ "DeleteOptedOutNumberResult$OptedOutNumber": "The phone number that was removed from the OptOutList.
",
+ "OptedOutNumberInformation$OptedOutNumber": "The phone number that is opted out.
",
+ "OptedOutNumberList$member": null,
+ "PhoneNumberInformation$PhoneNumber": "The phone number in E.164 format.
",
+ "PutOptedOutNumberRequest$OptedOutNumber": "The phone number to add to the OptOutList in E.164 format.
",
+ "PutOptedOutNumberResult$OptedOutNumber": "The phone number that was added to the OptOutList.
",
+ "ReleasePhoneNumberResult$PhoneNumber": "The phone number that was released.
",
+ "RequestPhoneNumberResult$PhoneNumber": "The new phone number that was requested.
",
+ "SendTextMessageRequest$DestinationPhoneNumber": "The destination phone number in E.164 format.
",
+ "SendVoiceMessageRequest$DestinationPhoneNumber": "The destination phone number in E.164 format.
",
+ "UpdatePhoneNumberResult$PhoneNumber": "The phone number that was updated.
"
+ }
+ },
+ "PhoneNumberFilter": {
+ "base": "The information for a phone number that meets a specified criteria.
",
+ "refs": {
+ "PhoneNumberFilterList$member": null
+ }
+ },
+ "PhoneNumberFilterList": {
+ "base": null,
+ "refs": {
+ "DescribePhoneNumbersRequest$Filters": "An array of PhoneNumberFilter objects to filter the results.
"
+ }
+ },
+ "PhoneNumberFilterName": {
+ "base": null,
+ "refs": {
+ "PhoneNumberFilter$Name": "The name of the attribute to filter on.
"
+ }
+ },
+ "PhoneNumberIdList": {
+ "base": null,
+ "refs": {
+ "DescribePhoneNumbersRequest$PhoneNumberIds": "The unique identifier of phone numbers to find information about. This is an array of strings that can be either the PhoneNumberId or PhoneNumberArn.
"
+ }
+ },
+ "PhoneNumberIdOrArn": {
+ "base": null,
+ "refs": {
+ "PhoneNumberIdList$member": null,
+ "ReleasePhoneNumberRequest$PhoneNumberId": "The PhoneNumberId or PhoneNumberArn of the phone number to release. You can use DescribePhoneNumbers to get the values for PhoneNumberId and PhoneNumberArn.
",
+ "UpdatePhoneNumberRequest$PhoneNumberId": "The unique identifier of the phone number. Valid values for this field can be either the PhoneNumberId or PhoneNumberArn.
"
+ }
+ },
+ "PhoneNumberInformation": {
+ "base": "The information for a phone number in an Amazon Web Services account.
",
+ "refs": {
+ "PhoneNumberInformationList$member": null
+ }
+ },
+ "PhoneNumberInformationList": {
+ "base": null,
+ "refs": {
+ "DescribePhoneNumbersResult$PhoneNumbers": "An array of PhoneNumberInformation objects that contain the details for the requested phone numbers.
"
+ }
+ },
+ "PhoneOrPoolIdOrArn": {
+ "base": null,
+ "refs": {
+ "DeleteKeywordRequest$OriginationIdentity": "The origination identity to use such as a PhoneNumberId, PhoneNumberArn, PoolId or PoolArn. You can use DescribePhoneNumbers to find the values for PhoneNumberId and PhoneNumberArn and DescribePools to find the values of PoolId and PoolArn.
",
+ "DescribeKeywordsRequest$OriginationIdentity": "The origination identity to use such as a PhoneNumberId, PhoneNumberArn, SenderId or SenderIdArn. You can use DescribePhoneNumbers to find the values for PhoneNumberId and PhoneNumberArn while DescribeSenderIds can be used to get the values for SenderId and SenderIdArn.
",
+ "PutKeywordRequest$OriginationIdentity": "The origination identity to use such as a PhoneNumberId, PhoneNumberArn, SenderId or SenderIdArn. You can use DescribePhoneNumbers get the values for PhoneNumberId and PhoneNumberArn while DescribeSenderIds can be used to get the values for SenderId and SenderIdArn.
"
+ }
+ },
+ "PhoneOrSenderIdOrArn": {
+ "base": null,
+ "refs": {
+ "AssociateOriginationIdentityRequest$OriginationIdentity": "The origination identity to use, such as PhoneNumberId, PhoneNumberArn, SenderId, or SenderIdArn. You can use DescribePhoneNumbers to find the values for PhoneNumberId and PhoneNumberArn, while DescribeSenderIds can be used to get the values for SenderId and SenderIdArn.
",
+ "CreatePoolRequest$OriginationIdentity": "The origination identity to use such as a PhoneNumberId, PhoneNumberArn, SenderId or SenderIdArn. You can use DescribePhoneNumbers to find the values for PhoneNumberId and PhoneNumberArn while DescribeSenderIds can be used to get the values for SenderId and SenderIdArn.
",
+ "DisassociateOriginationIdentityRequest$OriginationIdentity": "The origination identity to use such as a PhoneNumberId, PhoneNumberArn, SenderId or SenderIdArn. You can use DescribePhoneNumbers find the values for PhoneNumberId and PhoneNumberArn, or use DescribeSenderIds to get the values for SenderId and SenderIdArn.
"
+ }
+ },
+ "PoolFilter": {
+ "base": "The information for a pool that meets a specified criteria.
",
+ "refs": {
+ "PoolFilterList$member": null
+ }
+ },
+ "PoolFilterList": {
+ "base": null,
+ "refs": {
+ "DescribePoolsRequest$Filters": "An array of PoolFilter objects to filter the results.
"
+ }
+ },
+ "PoolFilterName": {
+ "base": null,
+ "refs": {
+ "PoolFilter$Name": "The name of the attribute to filter on.
"
+ }
+ },
+ "PoolIdList": {
+ "base": null,
+ "refs": {
+ "DescribePoolsRequest$PoolIds": "The unique identifier of pools to find. This is an array of strings that can be either the PoolId or PoolArn.
"
+ }
+ },
+ "PoolIdOrArn": {
+ "base": null,
+ "refs": {
+ "AssociateOriginationIdentityRequest$PoolId": "The pool to update with the new Identity. This value can be either the PoolId or PoolArn, and you can find these values using DescribePools.
",
+ "DeletePoolRequest$PoolId": "The PoolId or PoolArn of the pool to delete. You can use DescribePools to find the values for PoolId and PoolArn .
",
+ "DisassociateOriginationIdentityRequest$PoolId": "The unique identifier for the pool to disassociate with the origination identity. This value can be either the PoolId or PoolArn.
",
+ "ListPoolOriginationIdentitiesRequest$PoolId": "The unique identifier for the pool. This value can be either the PoolId or PoolArn.
",
+ "PoolIdList$member": null,
+ "RequestPhoneNumberRequest$PoolId": "The pool to associated with the phone number. You can use the PoolId or PoolArn.
",
+ "UpdatePoolRequest$PoolId": "The unique identifier of the pool to update. Valid values are either the PoolId or PoolArn.
"
+ }
+ },
+ "PoolInformation": {
+ "base": "The information for a pool in an Amazon Web Services account.
",
+ "refs": {
+ "PoolInformationList$member": null
+ }
+ },
+ "PoolInformationList": {
+ "base": null,
+ "refs": {
+ "DescribePoolsResult$Pools": "An array of PoolInformation objects that contain the details for the requested pools.
"
+ }
+ },
+ "PoolOriginationIdentitiesFilter": {
+ "base": "Information about origination identities associated with a pool that meets a specified criteria.
",
+ "refs": {
+ "PoolOriginationIdentitiesFilterList$member": null
+ }
+ },
+ "PoolOriginationIdentitiesFilterList": {
+ "base": null,
+ "refs": {
+ "ListPoolOriginationIdentitiesRequest$Filters": "An array of PoolOriginationIdentitiesFilter objects to filter the results..
"
+ }
+ },
+ "PoolOriginationIdentitiesFilterName": {
+ "base": null,
+ "refs": {
+ "PoolOriginationIdentitiesFilter$Name": "The name of the attribute to filter on.
"
+ }
+ },
+ "PoolStatus": {
+ "base": null,
+ "refs": {
+ "CreatePoolResult$Status": "The current status of the pool.
-
CREATING: The pool is currently being created and isn't yet available for use.
-
ACTIVE: The pool is active and available for use.
-
DELETING: The pool is being deleted.
",
+ "DeletePoolResult$Status": "The current status of the pool.
-
CREATING: The pool is currently being created and isn't yet available for use.
-
ACTIVE: The pool is active and available for use.
-
DELETING: The pool is being deleted.
",
+ "PoolInformation$Status": "The current status of the pool.
",
+ "UpdatePoolResult$Status": "The current status of the pool update request.
"
+ }
+ },
+ "PrimitiveBoolean": {
+ "base": null,
+ "refs": {
+ "CreatePoolResult$TwoWayEnabled": "By default this is set to false. When set to true you can receive incoming text messages from your end recipients.
",
+ "CreatePoolResult$SelfManagedOptOutsEnabled": "By default this is set to false. When an end recipient sends a message that begins with HELP or STOP to one of your dedicated numbers, Amazon Pinpoint automatically replies with a customizable message and adds the end recipient to the OptOutList. When set to true you're responsible for responding to HELP and STOP requests. You're also responsible for tracking and honoring opt-out requests.
",
+ "CreatePoolResult$SharedRoutesEnabled": "Indicates whether shared routes are enabled for the pool.
",
+ "CreatePoolResult$DeletionProtectionEnabled": "When set to true deletion protection is enabled. By default this is set to false.
",
+ "DeleteOptedOutNumberResult$EndUserOptedOut": "This is true if it was the end user who requested their phone number be removed.
",
+ "DeletePoolResult$TwoWayEnabled": "By default this is set to false. When set to true you can receive incoming text messages from your end recipients.
",
+ "DeletePoolResult$SelfManagedOptOutsEnabled": "By default this is set to false. When an end recipient sends a message that begins with HELP or STOP to one of your dedicated numbers, Amazon Pinpoint automatically replies with a customizable message and adds the end recipient to the OptOutList. When set to true you're responsible for responding to HELP and STOP requests. You're also responsible for tracking and honoring opt-out requests.
",
+ "DeletePoolResult$SharedRoutesEnabled": "Indicates whether shared routes are enabled for the pool.
",
+ "OptedOutNumberInformation$EndUserOptedOut": "This is set to true if it was the end recipient that opted out.
",
+ "PhoneNumberInformation$TwoWayEnabled": "By default this is set to false. When set to true you can receive incoming text messages from your end recipients using the TwoWayChannelArn.
",
+ "PhoneNumberInformation$SelfManagedOptOutsEnabled": "When set to false an end recipient sends a message that begins with HELP or STOP to one of your dedicated numbers, Amazon Pinpoint automatically replies with a customizable message and adds the end recipient to the OptOutList. When set to true you're responsible for responding to HELP and STOP requests. You're also responsible for tracking and honoring opt-out request. For more information see Self-managed opt-outs
",
+ "PhoneNumberInformation$DeletionProtectionEnabled": "When set to true the phone number can't be deleted.
",
+ "PoolInformation$TwoWayEnabled": "When set to true you can receive incoming text messages from your end recipients using the TwoWayChannelArn.
",
+ "PoolInformation$SelfManagedOptOutsEnabled": "When set to false, an end recipient sends a message that begins with HELP or STOP to one of your dedicated numbers, Amazon Pinpoint automatically replies with a customizable message and adds the end recipient to the OptOutList. When set to true you're responsible for responding to HELP and STOP requests. You're also responsible for tracking and honoring opt-out requests. For more information see Self-managed opt-outs
",
+ "PoolInformation$SharedRoutesEnabled": "Allows you to enable shared routes on your pool.
By default, this is set to False
. If you set this value to True
, your messages are sent using phone numbers or sender IDs (depending on the country) that are shared with other Amazon Pinpoint users. In some countries, such as the United States, senders aren't allowed to use shared routes and must use a dedicated phone number or short code.
",
+ "PoolInformation$DeletionProtectionEnabled": "When set to true the pool can't be deleted.
",
+ "PutOptedOutNumberResult$EndUserOptedOut": "This is true if it was the end user who requested their phone number be removed.
",
+ "ReleasePhoneNumberResult$TwoWayEnabled": "By default this is set to false. When set to true you can receive incoming text messages from your end recipients.
",
+ "ReleasePhoneNumberResult$SelfManagedOptOutsEnabled": "By default this is set to false. When an end recipient sends a message that begins with HELP or STOP to one of your dedicated numbers, Amazon Pinpoint automatically replies with a customizable message and adds the end recipient to the OptOutList. When set to true you're responsible for responding to HELP and STOP requests. You're also responsible for tracking and honoring opt-out requests.
",
+ "RequestPhoneNumberResult$TwoWayEnabled": "By default this is set to false. When set to true you can receive incoming text messages from your end recipients.
",
+ "RequestPhoneNumberResult$SelfManagedOptOutsEnabled": "By default this is set to false. When an end recipient sends a message that begins with HELP or STOP to one of your dedicated numbers, Amazon Pinpoint automatically replies with a customizable message and adds the end recipient to the OptOutList. When set to true you're responsible for responding to HELP and STOP requests. You're also responsible for tracking and honoring opt-out requests.
",
+ "RequestPhoneNumberResult$DeletionProtectionEnabled": "By default this is set to false. When set to true the phone number can't be deleted.
",
+ "SendTextMessageRequest$DryRun": "When set to true, the message is checked and validated, but isn't sent to the end recipient.
",
+ "SendVoiceMessageRequest$DryRun": "When set to true, the message is checked and validated, but isn't sent to the end recipient.
",
+ "SpendLimit$Overridden": "When set to True
, the value that has been specified in the EnforcedLimit
is used to determine the maximum amount in US dollars that can be spent to send messages each month, in US dollars.
",
+ "UpdatePhoneNumberResult$TwoWayEnabled": "By default this is set to false. When set to true you can receive incoming text messages from your end recipients.
",
+ "UpdatePhoneNumberResult$SelfManagedOptOutsEnabled": "This is true if self managed opt-out are enabled.
",
+ "UpdatePhoneNumberResult$DeletionProtectionEnabled": "When set to true the phone number can't be deleted.
",
+ "UpdatePoolResult$TwoWayEnabled": "By default this is set to false. When set to true you can receive incoming text messages from your end recipients.
",
+ "UpdatePoolResult$SelfManagedOptOutsEnabled": "When an end recipient sends a message that begins with HELP or STOP to one of your dedicated numbers, Amazon Pinpoint automatically replies with a customizable message and adds the end recipient to the OptOutList. When set to true you're responsible for responding to HELP and STOP requests. You're also responsible for tracking and honoring opt-out requests.
",
+ "UpdatePoolResult$SharedRoutesEnabled": "Indicates whether shared routes are enabled for the pool.
",
+ "UpdatePoolResult$DeletionProtectionEnabled": "When set to true the pool can't be deleted.
"
+ }
+ },
+ "PrimitiveLong": {
+ "base": null,
+ "refs": {
+ "AccountLimit$Used": "The current amount that has been spent, in US dollars.
",
+ "AccountLimit$Max": "The Amazon Web Services set limit for that resource type, in US dollars.
",
+ "SpendLimit$EnforcedLimit": "The maximum amount of money, in US dollars, that you want to be able to spend sending messages each month. This value has to be less than or equal to the amount in MaxLimit
. To use this custom limit, Overridden
must be set to true.
",
+ "SpendLimit$MaxLimit": " The maximum amount of money that you are able to spend to send messages each month, in US dollars.
"
+ }
+ },
+ "PutKeywordRequest": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "PutKeywordResult": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "PutOptedOutNumberRequest": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "PutOptedOutNumberResult": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "RegistrationId": {
+ "base": null,
+ "refs": {
+ "RequestPhoneNumberRequest$RegistrationId": "Use this field to attach your phone number for an external registration process.
"
+ }
+ },
+ "ReleasePhoneNumberRequest": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "ReleasePhoneNumberResult": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "RequestPhoneNumberRequest": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "RequestPhoneNumberResult": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "RequestableNumberType": {
+ "base": null,
+ "refs": {
+ "RequestPhoneNumberRequest$NumberType": "The type of phone number to request.
",
+ "RequestPhoneNumberResult$NumberType": "The type of number that was released.
"
+ }
+ },
+ "ResourceNotFoundException": {
+ "base": "A requested resource couldn't be found.
",
+ "refs": {
+ }
+ },
+ "ResourceType": {
+ "base": null,
+ "refs": {
+ "ConflictException$ResourceType": "The type of resource that caused the exception.
",
+ "ResourceNotFoundException$ResourceType": "The type of resource that caused the exception.
"
+ }
+ },
+ "SendTextMessageRequest": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "SendTextMessageResult": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "SendVoiceMessageRequest": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "SendVoiceMessageResult": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "SenderId": {
+ "base": null,
+ "refs": {
+ "ConfigurationSetInformation$DefaultSenderId": "The default sender ID used by the ConfigurationSet.
",
+ "DeleteConfigurationSetResult$DefaultSenderId": "The default Sender ID of the configuration set that was deleted.
",
+ "DeleteDefaultSenderIdResult$SenderId": "The current sender ID for the configuration set.
",
+ "SenderIdInformation$SenderId": "The alphanumeric sender ID in a specific country that you'd like to describe.
",
+ "SetDefaultSenderIdRequest$SenderId": "The current sender ID for the configuration set. When sending a text message to a destination country which supports SenderIds, the default sender ID on the configuration set specified on SendTextMessage will be used if no dedicated origination phone numbers or registered SenderIds are available in your account, instead of a generic sender ID, such as 'NOTICE'.
",
+ "SetDefaultSenderIdResult$SenderId": "The default sender ID to set for the ConfigurationSet.
"
+ }
+ },
+ "SenderIdAndCountry": {
+ "base": " The alphanumeric sender ID in a specific country that you want to describe. For more information on sender IDs see Requesting sender IDs for SMS messaging with Amazon Pinpoint in the Amazon Pinpoint User Guide.
",
+ "refs": {
+ "SenderIdList$member": null
+ }
+ },
+ "SenderIdFilter": {
+ "base": "The information for a sender ID that meets a specified criteria.
",
+ "refs": {
+ "SenderIdFilterList$member": null
+ }
+ },
+ "SenderIdFilterList": {
+ "base": null,
+ "refs": {
+ "DescribeSenderIdsRequest$Filters": "An array of SenderIdFilter objects to filter the results.
"
+ }
+ },
+ "SenderIdFilterName": {
+ "base": null,
+ "refs": {
+ "SenderIdFilter$Name": "The name of the attribute to filter on.
"
+ }
+ },
+ "SenderIdInformation": {
+ "base": "The information for all SenderIds in an Amazon Web Services account.
",
+ "refs": {
+ "SenderIdInformationList$member": null
+ }
+ },
+ "SenderIdInformationList": {
+ "base": null,
+ "refs": {
+ "DescribeSenderIdsResult$SenderIds": "An array of SernderIdInformation objects that contain the details for the requested SenderIds.
"
+ }
+ },
+ "SenderIdList": {
+ "base": null,
+ "refs": {
+ "DescribeSenderIdsRequest$SenderIds": "An array of SenderIdAndCountry objects to search for.
"
+ }
+ },
+ "SenderIdOrArn": {
+ "base": null,
+ "refs": {
+ "SenderIdAndCountry$SenderId": "The unique identifier of the sender.
"
+ }
+ },
+ "ServiceQuotaExceededException": {
+ "base": "The request would cause a service quota to be exceeded.
",
+ "refs": {
+ }
+ },
+ "ServiceQuotaExceededExceptionReason": {
+ "base": null,
+ "refs": {
+ "ServiceQuotaExceededException$Reason": "The reason for the exception.
"
+ }
+ },
+ "SetDefaultMessageTypeRequest": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "SetDefaultMessageTypeResult": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "SetDefaultSenderIdRequest": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "SetDefaultSenderIdResult": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "SetTextMessageSpendLimitOverrideRequest": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "SetTextMessageSpendLimitOverrideResult": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "SetVoiceMessageSpendLimitOverrideRequest": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "SetVoiceMessageSpendLimitOverrideResult": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "SnsDestination": {
+ "base": "An object that defines an Amazon SNS destination for events. You can use Amazon SNS to send notification when certain events occur.
",
+ "refs": {
+ "CreateEventDestinationRequest$SnsDestination": "An object that contains information about an event destination for logging to Amazon SNS.
",
+ "EventDestination$SnsDestination": "An object that contains information about an event destination that sends logging events to Amazon SNS.
",
+ "UpdateEventDestinationRequest$SnsDestination": "An object that contains information about an event destination that sends data to Amazon SNS.
"
+ }
+ },
+ "SnsTopicArn": {
+ "base": null,
+ "refs": {
+ "SnsDestination$TopicArn": "The Amazon Resource Name (ARN) of the Amazon SNS topic that you want to publish events to.
"
+ }
+ },
+ "SpendLimit": {
+ "base": "Describes the current Amazon Pinpoint monthly spend limits for sending voice and text messages. For more information on increasing your monthly spend limit, see Requesting increases to your monthly SMS spending quota for Amazon Pinpoint in the Amazon Pinpoint User Guide.
",
+ "refs": {
+ "SpendLimitList$member": null
+ }
+ },
+ "SpendLimitList": {
+ "base": null,
+ "refs": {
+ "DescribeSpendLimitsResult$SpendLimits": "An array of SpendLimit objects that contain the details for the requested spend limits.
"
+ }
+ },
+ "SpendLimitName": {
+ "base": null,
+ "refs": {
+ "SpendLimit$Name": "The name for the SpendLimit.
"
+ }
+ },
+ "String": {
+ "base": null,
+ "refs": {
+ "AccessDeniedException$Message": null,
+ "AccountAttribute$Value": "The value associated with the account attribute name.
",
+ "AssociateOriginationIdentityResult$PoolArn": "The Amazon Resource Name (ARN) of the pool that is now associated with the origination identity.
",
+ "AssociateOriginationIdentityResult$PoolId": "The PoolId of the pool that is now associated with the origination identity.
",
+ "AssociateOriginationIdentityResult$OriginationIdentityArn": "The PhoneNumberArn or SenderIdArn of the origination identity.
",
+ "AssociateOriginationIdentityResult$OriginationIdentity": "The PhoneNumberId or SenderId of the origination identity.
",
+ "ConfigurationSetInformation$ConfigurationSetArn": "The Resource Name (ARN) of the ConfigurationSet.
",
+ "ConflictException$Message": null,
+ "ConflictException$ResourceId": "The unique identifier of the request.
",
+ "CreateConfigurationSetResult$ConfigurationSetArn": "The Amazon Resource Name (ARN) of the newly created configuration set.
",
+ "CreateEventDestinationResult$ConfigurationSetArn": "The ARN of the configuration set.
",
+ "CreateOptOutListResult$OptOutListArn": "The Amazon Resource Name (ARN) for the OptOutList.
",
+ "CreatePoolResult$PoolArn": "The Amazon Resource Name (ARN) for the pool.
",
+ "CreatePoolResult$PoolId": "The unique identifier for the pool.
",
+ "DeleteConfigurationSetResult$ConfigurationSetArn": "The Amazon Resource Name (ARN) of the deleted configuration set.
",
+ "DeleteDefaultMessageTypeResult$ConfigurationSetArn": "The Amazon Resource Name (ARN) of the configuration set.
",
+ "DeleteDefaultSenderIdResult$ConfigurationSetArn": "The Amazon Resource Name (ARN) of the configuration set.
",
+ "DeleteEventDestinationResult$ConfigurationSetArn": "The Amazon Resource Name (ARN) of the configuration set.
",
+ "DeleteKeywordResult$OriginationIdentityArn": "The PhoneNumberArn or PoolArn that the keyword was associated with.
",
+ "DeleteKeywordResult$OriginationIdentity": "The PhoneNumberId or PoolId that the keyword was associated with.
",
+ "DeleteOptOutListResult$OptOutListArn": "The Amazon Resource Name (ARN) of the OptOutList that was removed.
",
+ "DeleteOptedOutNumberResult$OptOutListArn": "The OptOutListArn that the phone number was removed from.
",
+ "DeletePoolResult$PoolArn": "The Amazon Resource Name (ARN) of the pool that was deleted.
",
+ "DeletePoolResult$PoolId": "The PoolId of the pool that was deleted.
",
+ "DescribeKeywordsResult$OriginationIdentityArn": "The PhoneNumberArn or PoolArn that is associated with the OriginationIdentity.
",
+ "DescribeKeywordsResult$OriginationIdentity": "The PhoneNumberId or PoolId that is associated with the OriginationIdentity.
",
+ "DescribeOptedOutNumbersResult$OptOutListArn": "The Amazon Resource Name (ARN) of the OptOutList.
",
+ "DisassociateOriginationIdentityResult$PoolArn": "The Amazon Resource Name (ARN) of the pool.
",
+ "DisassociateOriginationIdentityResult$PoolId": "The PoolId of the pool no longer associated with the origination identity.
",
+ "DisassociateOriginationIdentityResult$OriginationIdentityArn": "The PhoneNumberArn or SenderIdArn of the origination identity.
",
+ "DisassociateOriginationIdentityResult$OriginationIdentity": "The PhoneNumberId or SenderId of the origination identity.
",
+ "InternalServerException$Message": null,
+ "InternalServerException$RequestId": "The unique identifier of the request.
",
+ "ListPoolOriginationIdentitiesResult$PoolArn": "The Amazon Resource Name (ARN) for the pool.
",
+ "ListPoolOriginationIdentitiesResult$PoolId": "The unique PoolId of the pool.
",
+ "OptOutListInformation$OptOutListArn": "The Amazon Resource Name (ARN) of the OptOutList.
",
+ "OriginationIdentityMetadata$OriginationIdentityArn": "The Amazon Resource Name (ARN) associated with the origination identity.
",
+ "OriginationIdentityMetadata$OriginationIdentity": "The unique identifier of the origination identity.
",
+ "PhoneNumberInformation$PhoneNumberArn": "The Amazon Resource Name (ARN) associated with the phone number.
",
+ "PhoneNumberInformation$PhoneNumberId": "The unique identifier for the phone number.
",
+ "PhoneNumberInformation$MonthlyLeasingPrice": "The price, in US dollars, to lease the phone number.
",
+ "PhoneNumberInformation$PoolId": "The unique identifier of the pool associated with the phone number.
",
+ "PoolInformation$PoolArn": "The Amazon Resource Name (ARN) for the pool.
",
+ "PoolInformation$PoolId": "The unique identifier for the pool.
",
+ "PutKeywordResult$OriginationIdentityArn": "The PhoneNumberArn or PoolArn that the keyword was associated with.
",
+ "PutKeywordResult$OriginationIdentity": "The PhoneNumberId or PoolId that the keyword was associated with.
",
+ "PutOptedOutNumberResult$OptOutListArn": "The OptOutListArn that the phone number was removed from.
",
+ "ReleasePhoneNumberResult$PhoneNumberArn": "The PhoneNumberArn of the phone number that was released.
",
+ "ReleasePhoneNumberResult$PhoneNumberId": "The PhoneNumberId of the phone number that was released.
",
+ "ReleasePhoneNumberResult$MonthlyLeasingPrice": "The monthly price of the phone number, in US dollars.
",
+ "RequestPhoneNumberResult$PhoneNumberArn": "The Amazon Resource Name (ARN) of the requested phone number.
",
+ "RequestPhoneNumberResult$PhoneNumberId": "The unique identifier of the new phone number.
",
+ "RequestPhoneNumberResult$MonthlyLeasingPrice": "The monthly price, in US dollars, to lease the phone number.
",
+ "RequestPhoneNumberResult$PoolId": "The unique identifier of the pool associated with the phone number
",
+ "ResourceNotFoundException$Message": null,
+ "ResourceNotFoundException$ResourceId": "The unique identifier of the resource.
",
+ "SendTextMessageResult$MessageId": "The unique identifier for the message.
",
+ "SendVoiceMessageResult$MessageId": "The unique identifier for the message.
",
+ "SenderIdInformation$SenderIdArn": "The Amazon Resource Name (ARN) associated with the SenderId.
",
+ "SenderIdInformation$MonthlyLeasingPrice": "The monthly leasing price, in US dollars.
",
+ "ServiceQuotaExceededException$Message": null,
+ "SetDefaultMessageTypeResult$ConfigurationSetArn": "The Amazon Resource Name (ARN) of the updated configuration set.
",
+ "SetDefaultSenderIdResult$ConfigurationSetArn": "The Amazon Resource Name (ARN) of the updated configuration set.
",
+ "ThrottlingException$Message": null,
+ "UpdateEventDestinationResult$ConfigurationSetArn": "The Amazon Resource Name (ARN) for the ConfigurationSet that was updated.
",
+ "UpdatePhoneNumberResult$PhoneNumberArn": "The Amazon Resource Name (ARN) of the updated phone number.
",
+ "UpdatePhoneNumberResult$PhoneNumberId": "The unique identifier of the phone number.
",
+ "UpdatePhoneNumberResult$MonthlyLeasingPrice": "The monthly leasing price of the phone number, in US dollars.
",
+ "UpdatePoolResult$PoolArn": "The ARN of the pool.
",
+ "UpdatePoolResult$PoolId": "The unique identifier of the pool.
",
+ "ValidationException$Message": null,
+ "ValidationExceptionField$Name": "The name of the field.
",
+ "ValidationExceptionField$Message": "The message associated with the validation exception with information to help determine its cause.
"
+ }
+ },
+ "Tag": {
+ "base": "The list of tags to be added to the specified topic.
",
+ "refs": {
+ "NonEmptyTagList$member": null,
+ "TagList$member": null
+ }
+ },
+ "TagKey": {
+ "base": null,
+ "refs": {
+ "Tag$Key": "The key identifier, or name, of the tag.
",
+ "TagKeyList$member": null
+ }
+ },
+ "TagKeyList": {
+ "base": null,
+ "refs": {
+ "UntagResourceRequest$TagKeys": "An array of tag key values to unassociate with the resource.
"
+ }
+ },
+ "TagList": {
+ "base": null,
+ "refs": {
+ "CreateConfigurationSetRequest$Tags": "An array of key and value pair tags that's associated with the new configuration set.
",
+ "CreateConfigurationSetResult$Tags": "An array of key and value pair tags that's associated with the configuration set.
",
+ "CreateOptOutListRequest$Tags": "An array of tags (key and value pairs) to associate with the new OptOutList.
",
+ "CreateOptOutListResult$Tags": "An array of tags (key and value pairs) associated with the new OptOutList.
",
+ "CreatePoolRequest$Tags": "An array of tags (key and value pairs) associated with the pool.
",
+ "CreatePoolResult$Tags": "An array of tags (key and value pairs) associated with the pool.
",
+ "ListTagsForResourceResult$Tags": "An array of key and value pair tags that are associated with the resource.
",
+ "RequestPhoneNumberRequest$Tags": "An array of tags (key and value pairs) associate with the requested phone number.
",
+ "RequestPhoneNumberResult$Tags": "An array of key and value pair tags that are associated with the phone number.
"
+ }
+ },
+ "TagResourceRequest": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "TagResourceResult": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "TagValue": {
+ "base": null,
+ "refs": {
+ "Tag$Value": "The string value associated with the key of the tag.
"
+ }
+ },
+ "TextMessageBody": {
+ "base": null,
+ "refs": {
+ "SendTextMessageRequest$MessageBody": "The body of the text message.
"
+ }
+ },
+ "TextMessageOriginationIdentity": {
+ "base": null,
+ "refs": {
+ "SendTextMessageRequest$OriginationIdentity": "The origination identity of the message. This can be either the PhoneNumber, PhoneNumberId, PhoneNumberArn, SenderId, SenderIdArn, PoolId, or PoolArn.
"
+ }
+ },
+ "ThrottlingException": {
+ "base": "An error that occurred because too many requests were sent during a certain amount of time.
",
+ "refs": {
+ }
+ },
+ "TimeToLive": {
+ "base": null,
+ "refs": {
+ "SendTextMessageRequest$TimeToLive": "How long the text message is valid for. By default this is 72 hours.
",
+ "SendVoiceMessageRequest$TimeToLive": "How long the voice message is valid for. By default this is 72 hours.
"
+ }
+ },
+ "Timestamp": {
+ "base": null,
+ "refs": {
+ "ConfigurationSetInformation$CreatedTimestamp": "The time when the ConfigurationSet was created, in UNIX epoch time format.
",
+ "CreateConfigurationSetResult$CreatedTimestamp": "The time when the configuration set was created, in UNIX epoch time format.
",
+ "CreateOptOutListResult$CreatedTimestamp": "The time when the pool was created, in UNIX epoch time format.
",
+ "CreatePoolResult$CreatedTimestamp": "The time when the pool was created, in UNIX epoch time format.
",
+ "DeleteConfigurationSetResult$CreatedTimestamp": "The time that the deleted configuration set was created in UNIX epoch time format.
",
+ "DeleteOptOutListResult$CreatedTimestamp": "The time when the OptOutList was created, in UNIX epoch time format.
",
+ "DeleteOptedOutNumberResult$OptedOutTimestamp": "The time that the number was removed at, in UNIX epoch time format.
",
+ "DeletePoolResult$CreatedTimestamp": "The time when the pool was created, in UNIX epoch time format.
",
+ "OptOutListInformation$CreatedTimestamp": "The time when the OutOutList was created, in UNIX epoch time format.
",
+ "OptedOutNumberInformation$OptedOutTimestamp": "The time that the op tout occurred, in UNIX epoch time format.
",
+ "PhoneNumberInformation$CreatedTimestamp": "The time when the phone number was created, in UNIX epoch time format.
",
+ "PoolInformation$CreatedTimestamp": "The time when the pool was created, in UNIX epoch time format.
",
+ "PutOptedOutNumberResult$OptedOutTimestamp": "The time that the phone number was added to the OptOutList, in UNIX epoch time format.
",
+ "ReleasePhoneNumberResult$CreatedTimestamp": "The time when the phone number was created, in UNIX epoch time format.
",
+ "RequestPhoneNumberResult$CreatedTimestamp": "The time when the phone number was created, in UNIX epoch time format.
",
+ "UpdatePhoneNumberResult$CreatedTimestamp": "The time when the phone number was created, in UNIX epoch time format.
",
+ "UpdatePoolResult$CreatedTimestamp": "The time when the pool was created, in UNIX epoch time format.
"
+ }
+ },
+ "TwoWayChannelArn": {
+ "base": null,
+ "refs": {
+ "CreatePoolResult$TwoWayChannelArn": "The Amazon Resource Name (ARN) of the two way channel.
",
+ "DeletePoolResult$TwoWayChannelArn": "The Amazon Resource Name (ARN) of the TwoWayChannel.
",
+ "PhoneNumberInformation$TwoWayChannelArn": "The Amazon Resource Name (ARN) of the two way channel.
",
+ "PoolInformation$TwoWayChannelArn": "The Amazon Resource Name (ARN) of the two way channel.
",
+ "ReleasePhoneNumberResult$TwoWayChannelArn": "The Amazon Resource Name (ARN) of the TwoWayChannel.
",
+ "RequestPhoneNumberResult$TwoWayChannelArn": "The ARN used to identify the two way channel.
",
+ "UpdatePhoneNumberRequest$TwoWayChannelArn": "The Amazon Resource Name (ARN) of the two way channel.
",
+ "UpdatePhoneNumberResult$TwoWayChannelArn": "The Amazon Resource Name (ARN) of the two way channel.
",
+ "UpdatePoolRequest$TwoWayChannelArn": "The Amazon Resource Name (ARN) of the two way channel.
",
+ "UpdatePoolResult$TwoWayChannelArn": "The Amazon Resource Name (ARN) of the two way channel.
"
+ }
+ },
+ "UntagResourceRequest": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "UntagResourceResult": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "UpdateEventDestinationRequest": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "UpdateEventDestinationResult": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "UpdatePhoneNumberRequest": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "UpdatePhoneNumberResult": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "UpdatePoolRequest": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "UpdatePoolResult": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "ValidationException": {
+ "base": "A validation exception for a field.
",
+ "refs": {
+ }
+ },
+ "ValidationExceptionField": {
+ "base": "The field associated with the validation exception.
",
+ "refs": {
+ "ValidationExceptionFieldList$member": null
+ }
+ },
+ "ValidationExceptionFieldList": {
+ "base": null,
+ "refs": {
+ "ValidationException$Fields": "The field that failed validation.
"
+ }
+ },
+ "ValidationExceptionReason": {
+ "base": null,
+ "refs": {
+ "ValidationException$Reason": "The reason for the exception.
"
+ }
+ },
+ "VoiceId": {
+ "base": null,
+ "refs": {
+ "SendVoiceMessageRequest$VoiceId": "The voice for the Amazon Polly service to use. By default this is set to \"MATTHEW\".
"
+ }
+ },
+ "VoiceMessageBody": {
+ "base": null,
+ "refs": {
+ "SendVoiceMessageRequest$MessageBody": "The text to convert to a voice message.
"
+ }
+ },
+ "VoiceMessageBodyTextType": {
+ "base": null,
+ "refs": {
+ "SendVoiceMessageRequest$MessageBodyTextType": "Specifies if the MessageBody field contains text or speech synthesis markup language (SSML).
"
+ }
+ },
+ "VoiceMessageOriginationIdentity": {
+ "base": null,
+ "refs": {
+ "SendVoiceMessageRequest$OriginationIdentity": "The origination identity to use for the voice call. This can be the PhoneNumber, PhoneNumberId, PhoneNumberArn, PoolId, or PoolArn.
"
+ }
+ }
+ }
+}
diff --git a/models/apis/pinpoint-sms-voice-v2/2022-03-31/examples-1.json b/models/apis/pinpoint-sms-voice-v2/2022-03-31/examples-1.json
new file mode 100644
index 00000000000..0ea7e3b0bbe
--- /dev/null
+++ b/models/apis/pinpoint-sms-voice-v2/2022-03-31/examples-1.json
@@ -0,0 +1,5 @@
+{
+ "version": "1.0",
+ "examples": {
+ }
+}
diff --git a/models/apis/pinpoint-sms-voice-v2/2022-03-31/paginators-1.json b/models/apis/pinpoint-sms-voice-v2/2022-03-31/paginators-1.json
new file mode 100644
index 00000000000..ecdcd93a201
--- /dev/null
+++ b/models/apis/pinpoint-sms-voice-v2/2022-03-31/paginators-1.json
@@ -0,0 +1,70 @@
+{
+ "pagination": {
+ "DescribeAccountAttributes": {
+ "input_token": "NextToken",
+ "output_token": "NextToken",
+ "limit_key": "MaxResults",
+ "result_key": "AccountAttributes"
+ },
+ "DescribeAccountLimits": {
+ "input_token": "NextToken",
+ "output_token": "NextToken",
+ "limit_key": "MaxResults",
+ "result_key": "AccountLimits"
+ },
+ "DescribeConfigurationSets": {
+ "input_token": "NextToken",
+ "output_token": "NextToken",
+ "limit_key": "MaxResults",
+ "result_key": "ConfigurationSets"
+ },
+ "DescribeKeywords": {
+ "input_token": "NextToken",
+ "output_token": "NextToken",
+ "limit_key": "MaxResults",
+ "result_key": "Keywords"
+ },
+ "DescribeOptOutLists": {
+ "input_token": "NextToken",
+ "output_token": "NextToken",
+ "limit_key": "MaxResults",
+ "result_key": "OptOutLists"
+ },
+ "DescribeOptedOutNumbers": {
+ "input_token": "NextToken",
+ "output_token": "NextToken",
+ "limit_key": "MaxResults",
+ "result_key": "OptedOutNumbers"
+ },
+ "DescribePhoneNumbers": {
+ "input_token": "NextToken",
+ "output_token": "NextToken",
+ "limit_key": "MaxResults",
+ "result_key": "PhoneNumbers"
+ },
+ "DescribePools": {
+ "input_token": "NextToken",
+ "output_token": "NextToken",
+ "limit_key": "MaxResults",
+ "result_key": "Pools"
+ },
+ "DescribeSenderIds": {
+ "input_token": "NextToken",
+ "output_token": "NextToken",
+ "limit_key": "MaxResults",
+ "result_key": "SenderIds"
+ },
+ "DescribeSpendLimits": {
+ "input_token": "NextToken",
+ "output_token": "NextToken",
+ "limit_key": "MaxResults",
+ "result_key": "SpendLimits"
+ },
+ "ListPoolOriginationIdentities": {
+ "input_token": "NextToken",
+ "output_token": "NextToken",
+ "limit_key": "MaxResults",
+ "result_key": "OriginationIdentities"
+ }
+ }
+}
diff --git a/models/apis/pinpoint-sms-voice-v2/2022-03-31/smoke.json b/models/apis/pinpoint-sms-voice-v2/2022-03-31/smoke.json
new file mode 100644
index 00000000000..a9756813e4a
--- /dev/null
+++ b/models/apis/pinpoint-sms-voice-v2/2022-03-31/smoke.json
@@ -0,0 +1,6 @@
+{
+ "version": 1,
+ "defaultRegion": "us-west-2",
+ "testCases": [
+ ]
+}
diff --git a/models/apis/pinpoint-sms-voice-v2/2022-03-31/waiters-2.json b/models/apis/pinpoint-sms-voice-v2/2022-03-31/waiters-2.json
new file mode 100644
index 00000000000..13f60ee66be
--- /dev/null
+++ b/models/apis/pinpoint-sms-voice-v2/2022-03-31/waiters-2.json
@@ -0,0 +1,5 @@
+{
+ "version": 2,
+ "waiters": {
+ }
+}
diff --git a/models/apis/route53-recovery-cluster/2019-12-02/api-2.json b/models/apis/route53-recovery-cluster/2019-12-02/api-2.json
index d005650aa3b..cb159ca9087 100644
--- a/models/apis/route53-recovery-cluster/2019-12-02/api-2.json
+++ b/models/apis/route53-recovery-cluster/2019-12-02/api-2.json
@@ -30,6 +30,23 @@
{"shape":"EndpointTemporarilyUnavailableException"}
]
},
+ "ListRoutingControls":{
+ "name":"ListRoutingControls",
+ "http":{
+ "method":"POST",
+ "requestUri":"/"
+ },
+ "input":{"shape":"ListRoutingControlsRequest"},
+ "output":{"shape":"ListRoutingControlsResponse"},
+ "errors":[
+ {"shape":"AccessDeniedException"},
+ {"shape":"InternalServerException"},
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"ValidationException"},
+ {"shape":"ThrottlingException"},
+ {"shape":"EndpointTemporarilyUnavailableException"}
+ ]
+ },
"UpdateRoutingControlState":{
"name":"UpdateRoutingControlState",
"http":{
@@ -63,7 +80,8 @@
{"shape":"ValidationException"},
{"shape":"ThrottlingException"},
{"shape":"EndpointTemporarilyUnavailableException"},
- {"shape":"ConflictException"}
+ {"shape":"ConflictException"},
+ {"shape":"ServiceLimitExceededException"}
]
}
},
@@ -100,6 +118,12 @@
},
"exception":true
},
+ "ControlPanelName":{
+ "type":"string",
+ "max":64,
+ "min":1,
+ "pattern":"^\\S+$"
+ },
"EndpointTemporarilyUnavailableException":{
"type":"structure",
"required":["message"],
@@ -123,7 +147,8 @@
],
"members":{
"RoutingControlArn":{"shape":"Arn"},
- "RoutingControlState":{"shape":"RoutingControlState"}
+ "RoutingControlState":{"shape":"RoutingControlState"},
+ "RoutingControlName":{"shape":"RoutingControlName"}
}
},
"InternalServerException":{
@@ -136,6 +161,35 @@
"exception":true,
"fault":true
},
+ "ListRoutingControlsRequest":{
+ "type":"structure",
+ "members":{
+ "ControlPanelArn":{"shape":"Arn"},
+ "NextToken":{"shape":"PageToken"},
+ "MaxResults":{
+ "shape":"MaxResults",
+ "box":true
+ }
+ }
+ },
+ "ListRoutingControlsResponse":{
+ "type":"structure",
+ "required":["RoutingControls"],
+ "members":{
+ "RoutingControls":{"shape":"RoutingControls"},
+ "NextToken":{"shape":"PageToken"}
+ }
+ },
+ "MaxResults":{
+ "type":"integer",
+ "min":1
+ },
+ "PageToken":{
+ "type":"string",
+ "max":8096,
+ "min":1,
+ "pattern":"[\\S]*"
+ },
"ResourceNotFoundException":{
"type":"structure",
"required":[
@@ -151,6 +205,22 @@
"exception":true
},
"RetryAfterSeconds":{"type":"integer"},
+ "RoutingControl":{
+ "type":"structure",
+ "members":{
+ "ControlPanelArn":{"shape":"Arn"},
+ "ControlPanelName":{"shape":"ControlPanelName"},
+ "RoutingControlArn":{"shape":"Arn"},
+ "RoutingControlName":{"shape":"RoutingControlName"},
+ "RoutingControlState":{"shape":"RoutingControlState"}
+ }
+ },
+ "RoutingControlName":{
+ "type":"string",
+ "max":64,
+ "min":1,
+ "pattern":"^\\S+$"
+ },
"RoutingControlState":{
"type":"string",
"enum":[
@@ -158,6 +228,26 @@
"Off"
]
},
+ "RoutingControls":{
+ "type":"list",
+ "member":{"shape":"RoutingControl"}
+ },
+ "ServiceLimitExceededException":{
+ "type":"structure",
+ "required":[
+ "message",
+ "limitCode",
+ "serviceCode"
+ ],
+ "members":{
+ "message":{"shape":"String"},
+ "resourceId":{"shape":"String"},
+ "resourceType":{"shape":"String"},
+ "limitCode":{"shape":"String"},
+ "serviceCode":{"shape":"String"}
+ },
+ "exception":true
+ },
"String":{"type":"string"},
"ThrottlingException":{
"type":"structure",
diff --git a/models/apis/route53-recovery-cluster/2019-12-02/docs-2.json b/models/apis/route53-recovery-cluster/2019-12-02/docs-2.json
index 025b2e5a0de..ce62949c043 100644
--- a/models/apis/route53-recovery-cluster/2019-12-02/docs-2.json
+++ b/models/apis/route53-recovery-cluster/2019-12-02/docs-2.json
@@ -1,14 +1,15 @@
{
"version": "2.0",
- "service": "Welcome to the Routing Control (Recovery Cluster) API Reference Guide for Amazon Route 53 Application Recovery Controller.
With Amazon Route 53 Application Recovery Controller, you can use routing control with extreme reliability to recover applications by rerouting traffic across Availability Zones or AWS Regions. Routing controls are simple on/off switches hosted on a highly available cluster in Application Recovery Controller. A cluster provides a set of five redundant Regional endpoints against which you can run API calls to get or update the state of routing controls. To implement failover, you set one routing control on and another one off, to reroute traffic from one Availability Zone or Amazon Web Services Region to another.
Be aware that you must specify the Regional endpoints for a cluster when you work with API cluster operations to get or update routing control states in Application Recovery Controller. In addition, you must specify the US West (Oregon) Region for Application Recovery Controller API calls. For example, use the parameter region us-west-2
with AWS CLI commands. For more information, see Get and update routing control states using the API in the Amazon Route 53 Application Recovery Controller Developer Guide.
This API guide includes information about the API operations for how to get and update routing control states in Application Recovery Controller. You also must set up the structures to support routing controls: clusters and control panels.
For more information about working with routing control in Application Recovery Controller, see the following:
",
+ "service": "Welcome to the Routing Control (Recovery Cluster) API Reference Guide for Amazon Route 53 Application Recovery Controller.
With Route 53 ARC, you can use routing control with extreme reliability to recover applications by rerouting traffic across Availability Zones or Amazon Web Services Regions. Routing controls are simple on/off switches hosted on a highly available cluster in Route 53 ARC. A cluster provides a set of five redundant Regional endpoints against which you can run API calls to get or update the state of routing controls. To implement failover, you set one routing control On and another one Off, to reroute traffic from one Availability Zone or Amazon Web Services Region to another.
Be aware that you must specify a Regional endpoint for a cluster when you work with API cluster operations to get or update routing control states in Route 53 ARC. In addition, you must specify the US West (Oregon) Region for Route 53 ARC API calls. For example, use the parameter --region us-west-2
with AWS CLI commands. For more information, see Get and update routing control states using the API in the Amazon Route 53 Application Recovery Controller Developer Guide.
This API guide includes information about the API operations for how to get and update routing control states in Route 53 ARC. To work with routing control in Route 53 ARC, you must first create the required components (clusters, control panels, and routing controls) using the recovery cluster configuration API.
For more information about working with routing control in Route 53 ARC, see the following:
-
Create clusters, control panels, and routing controls by using API operations. For more information, see the Recovery Control Configuration API Reference Guide for Amazon Route 53 Application Recovery Controller.
-
Learn about the components in recovery control, including clusters, routing controls, and control panels, and how to work with Route 53 ARC in the Amazon Web Services console. For more information, see Recovery control components in the Amazon Route 53 Application Recovery Controller Developer Guide.
-
Route 53 ARC also provides readiness checks that continually audit resources to help make sure that your applications are scaled and ready to handle failover traffic. For more information about the related API operations, see the Recovery Readiness API Reference Guide for Amazon Route 53 Application Recovery Controller.
-
For more information about creating resilient applications and preparing for recovery readiness with Route 53 ARC, see the Amazon Route 53 Application Recovery Controller Developer Guide.
",
"operations": {
- "GetRoutingControlState": "Get the state for a routing control. A routing control is a simple on/off switch that you can use to route traffic to cells. When the state is On, traffic flows to a cell. When it's Off, traffic does not flow.
Before you can create a routing control, you must first create a cluster to host the control in a control panel. For more information, see Create routing control structures in the Amazon Route 53 Application Recovery Controller Developer Guide. Then you access one of the endpoints for the cluster to get or update the routing control state to redirect traffic.
You must specify Regional endpoints when you work with API cluster operations to get or update routing control states in Application Recovery Controller.
To see a code example for getting a routing control state, including accessing Regional cluster endpoints in sequence, see API examples in the Amazon Route 53 Application Recovery Controller Developer Guide.
Learn more about working with routing controls in the following topics in the Amazon Route 53 Application Recovery Controller Developer Guide:
",
- "UpdateRoutingControlState": "Set the state of the routing control to reroute traffic. You can set the value to be On or Off. When the state is On, traffic flows to a cell. When it's Off, traffic does not flow.
With Application Recovery Controller, you can add safety rules for routing controls, which are safeguards for routing control state updates that help prevent unexpected outcomes, like fail open traffic routing. However, there are scenarios when you might want to bypass the routing control safeguards that are enforced with safety rules that you've configured. For example, you might want to fail over quickly for disaster recovery, and one or more safety rules might be unexpectedly preventing you from updating a routing control state to reroute traffic. In a \"break glass\" scenario like this, you can override one or more safety rules to change a routing control state and fail over your application.
The SafetyRulesToOverride
property enables you override one or more safety rules and update routing control states. For more information, see Override safety rules to reroute traffic in the Amazon Route 53 Application Recovery Controller Developer Guide.
You must specify Regional endpoints when you work with API cluster operations to get or update routing control states in Application Recovery Controller.
To see a code example for getting a routing control state, including accessing Regional cluster endpoints in sequence, see API examples in the Amazon Route 53 Application Recovery Controller Developer Guide.
",
- "UpdateRoutingControlStates": "Set multiple routing control states. You can set the value for each state to be On or Off. When the state is On, traffic flows to a cell. When it's Off, traffic does not flow.
With Application Recovery Controller, you can add safety rules for routing controls, which are safeguards for routing control state updates that help prevent unexpected outcomes, like fail open traffic routing. However, there are scenarios when you might want to bypass the routing control safeguards that are enforced with safety rules that you've configured. For example, you might want to fail over quickly for disaster recovery, and one or more safety rules might be unexpectedly preventing you from updating a routing control state to reroute traffic. In a \"break glass\" scenario like this, you can override one or more safety rules to change a routing control state and fail over your application.
The SafetyRulesToOverride
property enables you override one or more safety rules and update routing control states. For more information, see Override safety rules to reroute traffic in the Amazon Route 53 Application Recovery Controller Developer Guide.
You must specify Regional endpoints when you work with API cluster operations to get or update routing control states in Application Recovery Controller.
To see a code example for getting a routing control state, including accessing Regional cluster endpoints in sequence, see API examples in the Amazon Route 53 Application Recovery Controller Developer Guide.
"
+ "GetRoutingControlState": "Get the state for a routing control. A routing control is a simple on/off switch that you can use to route traffic to cells. When a routing control state is On, traffic flows to a cell. When the state is Off, traffic does not flow.
Before you can create a routing control, you must first create a cluster, and then host the control in a control panel on the cluster. For more information, see Create routing control structures in the Amazon Route 53 Application Recovery Controller Developer Guide. You access one of the endpoints for the cluster to get or update the routing control state to redirect traffic for your application.
You must specify Regional endpoints when you work with API cluster operations to get or update routing control states in Route 53 ARC.
To see a code example for getting a routing control state, including accessing Regional cluster endpoints in sequence, see API examples in the Amazon Route 53 Application Recovery Controller Developer Guide.
Learn more about working with routing controls in the following topics in the Amazon Route 53 Application Recovery Controller Developer Guide:
",
+ "ListRoutingControls": "List routing control names and Amazon Resource Names (ARNs), as well as the routing control state for each routing control, along with the control panel name and control panel ARN for the routing controls. If you specify a control panel ARN, this call lists the routing controls in the control panel. Otherwise, it lists all the routing controls in the cluster.
A routing control is a simple on/off switch in Route 53 ARC that you can use to route traffic to cells. When a routing control state is On, traffic flows to a cell. When the state is Off, traffic does not flow.
Before you can create a routing control, you must first create a cluster, and then host the control in a control panel on the cluster. For more information, see Create routing control structures in the Amazon Route 53 Application Recovery Controller Developer Guide. You access one of the endpoints for the cluster to get or update the routing control state to redirect traffic for your application.
You must specify Regional endpoints when you work with API cluster operations to use this API operation to list routing controls in Route 53 ARC.
Learn more about working with routing controls in the following topics in the Amazon Route 53 Application Recovery Controller Developer Guide:
",
+ "UpdateRoutingControlState": "Set the state of the routing control to reroute traffic. You can set the value to be On or Off. When the state is On, traffic flows to a cell. When the state is Off, traffic does not flow.
With Route 53 ARC, you can add safety rules for routing controls, which are safeguards for routing control state updates that help prevent unexpected outcomes, like fail open traffic routing. However, there are scenarios when you might want to bypass the routing control safeguards that are enforced with safety rules that you've configured. For example, you might want to fail over quickly for disaster recovery, and one or more safety rules might be unexpectedly preventing you from updating a routing control state to reroute traffic. In a \"break glass\" scenario like this, you can override one or more safety rules to change a routing control state and fail over your application.
The SafetyRulesToOverride
property enables you override one or more safety rules and update routing control states. For more information, see Override safety rules to reroute traffic in the Amazon Route 53 Application Recovery Controller Developer Guide.
You must specify Regional endpoints when you work with API cluster operations to get or update routing control states in Route 53 ARC.
To see a code example for getting a routing control state, including accessing Regional cluster endpoints in sequence, see API examples in the Amazon Route 53 Application Recovery Controller Developer Guide.
",
+ "UpdateRoutingControlStates": "Set multiple routing control states. You can set the value for each state to be On or Off. When the state is On, traffic flows to a cell. When it's Off, traffic does not flow.
With Route 53 ARC, you can add safety rules for routing controls, which are safeguards for routing control state updates that help prevent unexpected outcomes, like fail open traffic routing. However, there are scenarios when you might want to bypass the routing control safeguards that are enforced with safety rules that you've configured. For example, you might want to fail over quickly for disaster recovery, and one or more safety rules might be unexpectedly preventing you from updating a routing control state to reroute traffic. In a \"break glass\" scenario like this, you can override one or more safety rules to change a routing control state and fail over your application.
The SafetyRulesToOverride
property enables you override one or more safety rules and update routing control states. For more information, see Override safety rules to reroute traffic in the Amazon Route 53 Application Recovery Controller Developer Guide.
You must specify Regional endpoints when you work with API cluster operations to get or update routing control states in Route 53 ARC.
To see a code example for getting a routing control state, including accessing Regional cluster endpoints in sequence, see API examples in the Amazon Route 53 Application Recovery Controller Developer Guide.
"
},
"shapes": {
"AccessDeniedException": {
- "base": "You don't have sufficient permissions to query the routing control state.
",
+ "base": "You don't have sufficient permissions to perform this action.
",
"refs": {
}
},
@@ -16,17 +17,20 @@
"base": null,
"refs": {
"Arns$member": null,
- "GetRoutingControlStateRequest$RoutingControlArn": "The Amazon Resource Number (ARN) for the routing control that you want to get the state for.
",
- "GetRoutingControlStateResponse$RoutingControlArn": "The Amazon Resource Number (ARN) of the response.
",
- "UpdateRoutingControlStateEntry$RoutingControlArn": "The Amazon Resource Number (ARN) for a routing control state entry.
",
- "UpdateRoutingControlStateRequest$RoutingControlArn": "The Amazon Resource Number (ARN) for the routing control that you want to update the state for.
"
+ "GetRoutingControlStateRequest$RoutingControlArn": "The Amazon Resource Name (ARN) for the routing control that you want to get the state for.
",
+ "GetRoutingControlStateResponse$RoutingControlArn": "The Amazon Resource Name (ARN) of the response.
",
+ "ListRoutingControlsRequest$ControlPanelArn": "The Amazon Resource Name (ARN) of the control panel of the routing controls to list.
",
+ "RoutingControl$ControlPanelArn": "The Amazon Resource Name (ARN) of the control panel where the routing control is located.
",
+ "RoutingControl$RoutingControlArn": "The Amazon Resource Name (ARN) of the routing control.
",
+ "UpdateRoutingControlStateEntry$RoutingControlArn": "The Amazon Resource Name (ARN) for a routing control state entry.
",
+ "UpdateRoutingControlStateRequest$RoutingControlArn": "The Amazon Resource Name (ARN) for the routing control that you want to update the state for.
"
}
},
"Arns": {
"base": null,
"refs": {
- "UpdateRoutingControlStateRequest$SafetyRulesToOverride": "The Amazon Resource Numbers (ARNs) for the safety rules that you want to override when you're updating the state of a routing control. You can override one safety rule or multiple safety rules by including one or more ARNs, separated by commas.
For more information, see Override safety rules to reroute traffic in the Amazon Route 53 Application Recovery Controller Developer Guide.
",
- "UpdateRoutingControlStatesRequest$SafetyRulesToOverride": "The Amazon Resource Numbers (ARNs) for the safety rules that you want to override when you're updating routing control states. You can override one safety rule or multiple safety rules by including one or more ARNs, separated by commas.
For more information, see Override safety rules to reroute traffic in the Amazon Route 53 Application Recovery Controller Developer Guide.
"
+ "UpdateRoutingControlStateRequest$SafetyRulesToOverride": "The Amazon Resource Names (ARNs) for the safety rules that you want to override when you're updating the state of a routing control. You can override one safety rule or multiple safety rules by including one or more ARNs, separated by commas.
For more information, see Override safety rules to reroute traffic in the Amazon Route 53 Application Recovery Controller Developer Guide.
",
+ "UpdateRoutingControlStatesRequest$SafetyRulesToOverride": "The Amazon Resource Names (ARNs) for the safety rules that you want to override when you're updating routing control states. You can override one safety rule or multiple safety rules by including one or more ARNs, separated by commas.
For more information, see Override safety rules to reroute traffic in the Amazon Route 53 Application Recovery Controller Developer Guide.
"
}
},
"ConflictException": {
@@ -34,6 +38,12 @@
"refs": {
}
},
+ "ControlPanelName": {
+ "base": null,
+ "refs": {
+ "RoutingControl$ControlPanelName": "The name of the control panel where the routing control is located.
"
+ }
+ },
"EndpointTemporarilyUnavailableException": {
"base": "The cluster endpoint isn't available. Try another cluster endpoint.
",
"refs": {
@@ -54,8 +64,31 @@
"refs": {
}
},
+ "ListRoutingControlsRequest": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "ListRoutingControlsResponse": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "MaxResults": {
+ "base": null,
+ "refs": {
+ "ListRoutingControlsRequest$MaxResults": "The number of routing controls objects that you want to return with this call. The default value is 500.
"
+ }
+ },
+ "PageToken": {
+ "base": null,
+ "refs": {
+ "ListRoutingControlsRequest$NextToken": "The token for the next set of results. You receive this token from a previous call.
",
+ "ListRoutingControlsResponse$NextToken": "The token for the next set of results. You receive this token from a previous call.
"
+ }
+ },
"ResourceNotFoundException": {
- "base": "The request references a routing control that was not found.
",
+ "base": "The request references a routing control or control panel that was not found.
",
"refs": {
}
},
@@ -66,14 +99,39 @@
"ThrottlingException$retryAfterSeconds": null
}
},
+ "RoutingControl": {
+ "base": "A routing control, which is a simple on/off switch that you can use to route traffic to cells. When a routing control state is On, traffic flows to a cell. When the state is Off, traffic does not flow.
",
+ "refs": {
+ "RoutingControls$member": null
+ }
+ },
+ "RoutingControlName": {
+ "base": null,
+ "refs": {
+ "GetRoutingControlStateResponse$RoutingControlName": "The routing control name.
",
+ "RoutingControl$RoutingControlName": "The name of the routing control.
"
+ }
+ },
"RoutingControlState": {
"base": null,
"refs": {
"GetRoutingControlStateResponse$RoutingControlState": "The state of the routing control.
",
+ "RoutingControl$RoutingControlState": "The current state of the routing control. When a routing control state is On, traffic flows to a cell. When the state is Off, traffic does not flow.
",
"UpdateRoutingControlStateEntry$RoutingControlState": "The routing control state in a set of routing control state entries.
",
"UpdateRoutingControlStateRequest$RoutingControlState": "The state of the routing control. You can set the value to be On or Off.
"
}
},
+ "RoutingControls": {
+ "base": null,
+ "refs": {
+ "ListRoutingControlsResponse$RoutingControls": "The list of routing controls.
"
+ }
+ },
+ "ServiceLimitExceededException": {
+ "base": "The request can't update that many routing control states at the same time. Try again with fewer routing control states.
",
+ "refs": {
+ }
+ },
"String": {
"base": null,
"refs": {
@@ -86,6 +144,11 @@
"ResourceNotFoundException$message": null,
"ResourceNotFoundException$resourceId": "Hypothetical resource identifier that was not found",
"ResourceNotFoundException$resourceType": "Hypothetical resource type that was not found",
+ "ServiceLimitExceededException$message": null,
+ "ServiceLimitExceededException$resourceId": "The resource identifier of the limit that was exceeded.
",
+ "ServiceLimitExceededException$resourceType": "The resource type of the limit that was exceeded.
",
+ "ServiceLimitExceededException$limitCode": "The code of the limit that was exceeded.
",
+ "ServiceLimitExceededException$serviceCode": "The service code of the limit that was exceeded.
",
"ThrottlingException$message": null,
"ValidationException$message": null,
"ValidationExceptionField$name": "The field that had the validation exception.
",
diff --git a/models/apis/route53-recovery-cluster/2019-12-02/paginators-1.json b/models/apis/route53-recovery-cluster/2019-12-02/paginators-1.json
index 5677bd8e4a2..a2ef01b9f6e 100644
--- a/models/apis/route53-recovery-cluster/2019-12-02/paginators-1.json
+++ b/models/apis/route53-recovery-cluster/2019-12-02/paginators-1.json
@@ -1,4 +1,10 @@
{
"pagination": {
+ "ListRoutingControls": {
+ "input_token": "NextToken",
+ "output_token": "NextToken",
+ "limit_key": "MaxResults",
+ "result_key": "RoutingControls"
+ }
}
}
diff --git a/models/apis/workspaces/2015-04-08/api-2.json b/models/apis/workspaces/2015-04-08/api-2.json
index 8884e5c5e1a..a866ea1afae 100644
--- a/models/apis/workspaces/2015-04-08/api-2.json
+++ b/models/apis/workspaces/2015-04-08/api-2.json
@@ -191,6 +191,20 @@
{"shape":"InvalidParameterValuesException"}
]
},
+ "DeleteClientBranding":{
+ "name":"DeleteClientBranding",
+ "http":{
+ "method":"POST",
+ "requestUri":"/"
+ },
+ "input":{"shape":"DeleteClientBrandingRequest"},
+ "output":{"shape":"DeleteClientBrandingResult"},
+ "errors":[
+ {"shape":"InvalidParameterValuesException"},
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"AccessDeniedException"}
+ ]
+ },
"DeleteConnectClientAddIn":{
"name":"DeleteConnectClientAddIn",
"http":{
@@ -319,6 +333,20 @@
{"shape":"AccessDeniedException"}
]
},
+ "DescribeClientBranding":{
+ "name":"DescribeClientBranding",
+ "http":{
+ "method":"POST",
+ "requestUri":"/"
+ },
+ "input":{"shape":"DescribeClientBrandingRequest"},
+ "output":{"shape":"DescribeClientBrandingResult"},
+ "errors":[
+ {"shape":"InvalidParameterValuesException"},
+ {"shape":"ResourceNotFoundException"},
+ {"shape":"AccessDeniedException"}
+ ]
+ },
"DescribeClientProperties":{
"name":"DescribeClientProperties",
"http":{
@@ -521,6 +549,20 @@
{"shape":"AccessDeniedException"}
]
},
+ "ImportClientBranding":{
+ "name":"ImportClientBranding",
+ "http":{
+ "method":"POST",
+ "requestUri":"/"
+ },
+ "input":{"shape":"ImportClientBrandingRequest"},
+ "output":{"shape":"ImportClientBrandingResult"},
+ "errors":[
+ {"shape":"InvalidParameterValuesException"},
+ {"shape":"ResourceLimitExceededException"},
+ {"shape":"AccessDeniedException"}
+ ]
+ },
"ImportWorkspaceImage":{
"name":"ImportWorkspaceImage",
"http":{
@@ -990,6 +1032,41 @@
"member":{"shape":"WorkspaceBundle"}
},
"BundleOwner":{"type":"string"},
+ "ClientDeviceType":{
+ "type":"string",
+ "enum":[
+ "DeviceTypeWindows",
+ "DeviceTypeOsx",
+ "DeviceTypeAndroid",
+ "DeviceTypeIos",
+ "DeviceTypeLinux",
+ "DeviceTypeWeb"
+ ]
+ },
+ "ClientDeviceTypeList":{
+ "type":"list",
+ "member":{"shape":"ClientDeviceType"},
+ "max":6,
+ "min":1
+ },
+ "ClientEmail":{
+ "type":"string",
+ "max":64,
+ "min":6,
+ "pattern":"^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,4}$"
+ },
+ "ClientLocale":{
+ "type":"string",
+ "max":5,
+ "min":5,
+ "pattern":"^[a-z]{2}_[A-Z]{2}$"
+ },
+ "ClientLoginMessage":{
+ "type":"string",
+ "max":600,
+ "min":0,
+ "pattern":"^.*$"
+ },
"ClientProperties":{
"type":"structure",
"members":{
@@ -1007,6 +1084,12 @@
"ClientProperties":{"shape":"ClientProperties"}
}
},
+ "ClientUrl":{
+ "type":"string",
+ "max":200,
+ "min":1,
+ "pattern":"^(http|https)\\://\\S+"
+ },
"Compute":{
"type":"string",
"enum":[
@@ -1299,6 +1382,31 @@
"DISABLED"
]
},
+ "DefaultClientBrandingAttributes":{
+ "type":"structure",
+ "members":{
+ "LogoUrl":{"shape":"ClientUrl"},
+ "SupportEmail":{"shape":"ClientEmail"},
+ "SupportLink":{"shape":"ClientUrl"},
+ "ForgotPasswordLink":{"shape":"ClientUrl"},
+ "LoginMessage":{"shape":"LoginMessage"}
+ }
+ },
+ "DefaultImportClientBrandingAttributes":{
+ "type":"structure",
+ "members":{
+ "Logo":{"shape":"DefaultLogo"},
+ "SupportEmail":{"shape":"ClientEmail"},
+ "SupportLink":{"shape":"ClientUrl"},
+ "ForgotPasswordLink":{"shape":"ClientUrl"},
+ "LoginMessage":{"shape":"LoginMessage"}
+ }
+ },
+ "DefaultLogo":{
+ "type":"blob",
+ "max":1500000,
+ "min":1
+ },
"DefaultOu":{"type":"string"},
"DefaultWorkspaceCreationProperties":{
"type":"structure",
@@ -1311,6 +1419,22 @@
"EnableMaintenanceMode":{"shape":"BooleanObject"}
}
},
+ "DeleteClientBrandingRequest":{
+ "type":"structure",
+ "required":[
+ "ResourceId",
+ "Platforms"
+ ],
+ "members":{
+ "ResourceId":{"shape":"DirectoryId"},
+ "Platforms":{"shape":"ClientDeviceTypeList"}
+ }
+ },
+ "DeleteClientBrandingResult":{
+ "type":"structure",
+ "members":{
+ }
+ },
"DeleteConnectClientAddInRequest":{
"type":"structure",
"required":[
@@ -1427,6 +1551,24 @@
"DedicatedTenancyManagementCidrRange":{"shape":"DedicatedTenancyManagementCidrRange"}
}
},
+ "DescribeClientBrandingRequest":{
+ "type":"structure",
+ "required":["ResourceId"],
+ "members":{
+ "ResourceId":{"shape":"DirectoryId"}
+ }
+ },
+ "DescribeClientBrandingResult":{
+ "type":"structure",
+ "members":{
+ "DeviceTypeWindows":{"shape":"DefaultClientBrandingAttributes"},
+ "DeviceTypeOsx":{"shape":"DefaultClientBrandingAttributes"},
+ "DeviceTypeAndroid":{"shape":"DefaultClientBrandingAttributes"},
+ "DeviceTypeIos":{"shape":"IosClientBrandingAttributes"},
+ "DeviceTypeLinux":{"shape":"DefaultClientBrandingAttributes"},
+ "DeviceTypeWeb":{"shape":"DefaultClientBrandingAttributes"}
+ }
+ },
"DescribeClientPropertiesRequest":{
"type":"structure",
"required":["ResourceIds"],
@@ -1739,6 +1881,30 @@
"SHARED"
]
},
+ "ImportClientBrandingRequest":{
+ "type":"structure",
+ "required":["ResourceId"],
+ "members":{
+ "ResourceId":{"shape":"DirectoryId"},
+ "DeviceTypeWindows":{"shape":"DefaultImportClientBrandingAttributes"},
+ "DeviceTypeOsx":{"shape":"DefaultImportClientBrandingAttributes"},
+ "DeviceTypeAndroid":{"shape":"DefaultImportClientBrandingAttributes"},
+ "DeviceTypeIos":{"shape":"IosImportClientBrandingAttributes"},
+ "DeviceTypeLinux":{"shape":"DefaultImportClientBrandingAttributes"},
+ "DeviceTypeWeb":{"shape":"DefaultImportClientBrandingAttributes"}
+ }
+ },
+ "ImportClientBrandingResult":{
+ "type":"structure",
+ "members":{
+ "DeviceTypeWindows":{"shape":"DefaultClientBrandingAttributes"},
+ "DeviceTypeOsx":{"shape":"DefaultClientBrandingAttributes"},
+ "DeviceTypeAndroid":{"shape":"DefaultClientBrandingAttributes"},
+ "DeviceTypeIos":{"shape":"IosClientBrandingAttributes"},
+ "DeviceTypeLinux":{"shape":"DefaultClientBrandingAttributes"},
+ "DeviceTypeWeb":{"shape":"DefaultClientBrandingAttributes"}
+ }
+ },
"ImportWorkspaceImageRequest":{
"type":"structure",
"required":[
@@ -1776,6 +1942,45 @@
},
"exception":true
},
+ "Ios2XLogo":{
+ "type":"blob",
+ "max":1770000,
+ "min":1
+ },
+ "Ios3XLogo":{
+ "type":"blob",
+ "max":1770000,
+ "min":1
+ },
+ "IosClientBrandingAttributes":{
+ "type":"structure",
+ "members":{
+ "LogoUrl":{"shape":"ClientUrl"},
+ "Logo2xUrl":{"shape":"ClientUrl"},
+ "Logo3xUrl":{"shape":"ClientUrl"},
+ "SupportEmail":{"shape":"ClientEmail"},
+ "SupportLink":{"shape":"ClientUrl"},
+ "ForgotPasswordLink":{"shape":"ClientUrl"},
+ "LoginMessage":{"shape":"LoginMessage"}
+ }
+ },
+ "IosImportClientBrandingAttributes":{
+ "type":"structure",
+ "members":{
+ "Logo":{"shape":"IosLogo"},
+ "Logo2x":{"shape":"Ios2XLogo"},
+ "Logo3x":{"shape":"Ios3XLogo"},
+ "SupportEmail":{"shape":"ClientEmail"},
+ "SupportLink":{"shape":"ClientUrl"},
+ "ForgotPasswordLink":{"shape":"ClientUrl"},
+ "LoginMessage":{"shape":"LoginMessage"}
+ }
+ },
+ "IosLogo":{
+ "type":"blob",
+ "max":447000,
+ "min":1
+ },
"IpAddress":{"type":"string"},
"IpGroupDesc":{"type":"string"},
"IpGroupId":{
@@ -1825,6 +2030,11 @@
"NextToken":{"shape":"PaginationToken"}
}
},
+ "LoginMessage":{
+ "type":"map",
+ "key":{"shape":"ClientLocale"},
+ "value":{"shape":"ClientLoginMessage"}
+ },
"ManagementCidrRangeConstraint":{
"type":"string",
"pattern":"^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\\/(3[0-2]|[1-2][0-9]|[0-9]))$"
diff --git a/models/apis/workspaces/2015-04-08/docs-2.json b/models/apis/workspaces/2015-04-08/docs-2.json
index 8ad457135d5..51020b06284 100644
--- a/models/apis/workspaces/2015-04-08/docs-2.json
+++ b/models/apis/workspaces/2015-04-08/docs-2.json
@@ -1,6 +1,6 @@
{
"version": "2.0",
- "service": "Amazon WorkSpaces Service Amazon WorkSpaces enables you to provision virtual, cloud-based Microsoft Windows and Amazon Linux desktops for your users.
",
+ "service": "Amazon WorkSpaces Service Amazon WorkSpaces enables you to provision virtual, cloud-based Microsoft Windows or Amazon Linux desktops for your users, known as WorkSpaces. WorkSpaces eliminates the need to procure and deploy hardware or install complex software. You can quickly add or remove users as your needs change. Users can access their virtual desktops from multiple devices or web browsers.
This API Reference provides detailed information about the actions, data types, parameters, and errors of the WorkSpaces service. For more information about the supported Amazon Web Services Regions, endpoints, and service quotas of the Amazon WorkSpaces service, see WorkSpaces endpoints and quotas in the Amazon Web Services General Reference.
You can also manage your WorkSpaces resources using the WorkSpaces console, Command Line Interface (CLI), and SDKs. For more information about administering WorkSpaces, see the Amazon WorkSpaces Administration Guide. For more information about using the Amazon WorkSpaces client application or web browser to access provisioned WorkSpaces, see the Amazon WorkSpaces User Guide. For more information about using the CLI to manage your WorkSpaces resources, see the WorkSpaces section of the CLI Reference.
",
"operations": {
"AssociateConnectionAlias": "Associates the specified connection alias with the specified directory to enable cross-Region redirection. For more information, see Cross-Region Redirection for Amazon WorkSpaces.
Before performing this operation, call DescribeConnectionAliases to make sure that the current state of the connection alias is CREATED
.
",
"AssociateIpGroups": "Associates the specified IP access control group with the specified directory.
",
@@ -13,6 +13,7 @@
"CreateUpdatedWorkspaceImage": "Creates a new updated WorkSpace image based on the specified source image. The new updated WorkSpace image has the latest drivers and other updates required by the Amazon WorkSpaces components.
To determine which WorkSpace images need to be updated with the latest Amazon WorkSpaces requirements, use DescribeWorkspaceImages.
-
Only Windows 10, Windows Sever 2016, and Windows Server 2019 WorkSpace images can be programmatically updated at this time.
-
Microsoft Windows updates and other application updates are not included in the update process.
-
The source WorkSpace image is not deleted. You can delete the source image after you've verified your new updated image and created a new bundle.
",
"CreateWorkspaceBundle": "Creates the specified WorkSpace bundle. For more information about creating WorkSpace bundles, see Create a Custom WorkSpaces Image and Bundle.
",
"CreateWorkspaces": "Creates one or more WorkSpaces.
This operation is asynchronous and returns before the WorkSpaces are created.
",
+ "DeleteClientBranding": "Deletes customized client branding. Client branding allows you to customize your WorkSpace's client login portal. You can tailor your login portal company logo, the support email address, support link, link to reset password, and a custom message for users trying to sign in.
After you delete your customized client branding, your login portal reverts to the default client branding.
",
"DeleteConnectClientAddIn": "Deletes a client-add-in for Amazon Connect that is configured within a directory.
",
"DeleteConnectionAlias": "Deletes the specified connection alias. For more information, see Cross-Region Redirection for Amazon WorkSpaces.
If you will no longer be using a fully qualified domain name (FQDN) as the registration code for your WorkSpaces users, you must take certain precautions to prevent potential security issues. For more information, see Security Considerations if You Stop Using Cross-Region Redirection.
To delete a connection alias that has been shared, the shared account must first disassociate the connection alias from any directories it has been associated with. Then you must unshare the connection alias from the account it has been shared with. You can delete a connection alias only after it is no longer shared with any accounts or associated with any directories.
",
"DeleteIpGroup": "Deletes the specified IP access control group.
You cannot delete an IP access control group that is associated with a directory.
",
@@ -22,6 +23,7 @@
"DeregisterWorkspaceDirectory": "Deregisters the specified directory. This operation is asynchronous and returns before the WorkSpace directory is deregistered. If any WorkSpaces are registered to this directory, you must remove them before you can deregister the directory.
Simple AD and AD Connector are made available to you free of charge to use with WorkSpaces. If there are no WorkSpaces being used with your Simple AD or AD Connector directory for 30 consecutive days, this directory will be automatically deregistered for use with Amazon WorkSpaces, and you will be charged for this directory as per the Directory Service pricing terms.
To delete empty directories, see Delete the Directory for Your WorkSpaces. If you delete your Simple AD or AD Connector directory, you can always create a new one when you want to start using WorkSpaces again.
",
"DescribeAccount": "Retrieves a list that describes the configuration of Bring Your Own License (BYOL) for the specified account.
",
"DescribeAccountModifications": "Retrieves a list that describes modifications to the configuration of Bring Your Own License (BYOL) for the specified account.
",
+ "DescribeClientBranding": "Describes the specified client branding. Client branding allows you to customize the log in page of various device types for your users. You can add your company logo, the support email address, support link, link to reset password, and a custom message for users trying to sign in.
Only device types that have branding information configured will be shown in the response.
",
"DescribeClientProperties": "Retrieves a list that describes one or more specified Amazon WorkSpaces clients.
",
"DescribeConnectClientAddIns": "Retrieves a list of Amazon Connect client add-ins that have been created.
",
"DescribeConnectionAliasPermissions": "Describes the permissions that the owner of a connection alias has granted to another Amazon Web Services account for the specified connection alias. For more information, see Cross-Region Redirection for Amazon WorkSpaces.
",
@@ -37,6 +39,7 @@
"DescribeWorkspacesConnectionStatus": "Describes the connection status of the specified WorkSpaces.
",
"DisassociateConnectionAlias": "Disassociates a connection alias from a directory. Disassociating a connection alias disables cross-Region redirection between two directories in different Regions. For more information, see Cross-Region Redirection for Amazon WorkSpaces.
Before performing this operation, call DescribeConnectionAliases to make sure that the current state of the connection alias is CREATED
.
",
"DisassociateIpGroups": "Disassociates the specified IP access control group from the specified directory.
",
+ "ImportClientBranding": "Imports client branding. Client branding allows you to customize your WorkSpace's client login portal. You can tailor your login portal company logo, the support email address, support link, link to reset password, and a custom message for users trying to sign in.
After you import client branding, the default branding experience for the specified platform type is replaced with the imported experience
-
You must specify at least one platform type when importing client branding.
-
You can import up to 6 MB of data with each request. If your request exceeds this limit, you can import client branding for different platform types using separate requests.
-
In each platform type, the SupportEmail
and SupportLink
parameters are mutually exclusive. You can specify only one parameter for each platform type, but not both.
-
Imported data can take up to a minute to appear in the WorkSpaces client.
",
"ImportWorkspaceImage": "Imports the specified Windows 10 Bring Your Own License (BYOL) image into Amazon WorkSpaces. The image must be an already licensed Amazon EC2 image that is in your Amazon Web Services account, and you must own the image. For more information about creating BYOL images, see Bring Your Own Windows Desktop Licenses.
",
"ListAvailableManagementCidrRanges": "Retrieves a list of IP address ranges, specified as IPv4 CIDR blocks, that you can use for the network management interface when you enable Bring Your Own License (BYOL).
This operation can be run only by Amazon Web Services accounts that are enabled for BYOL. If your account isn't enabled for BYOL, you'll receive an AccessDeniedException
error.
The management network interface is connected to a secure Amazon WorkSpaces management network. It is used for interactive streaming of the WorkSpace desktop to Amazon WorkSpaces clients, and to allow Amazon WorkSpaces to manage the WorkSpace.
",
"MigrateWorkspace": "Migrates a WorkSpace from one operating system or bundle type to another, while retaining the data on the user volume.
The migration process recreates the WorkSpace by using a new root volume from the target bundle image and the user volume from the last available snapshot of the original WorkSpace. During migration, the original D:\\Users\\%USERNAME%
user profile folder is renamed to D:\\Users\\%USERNAME%MMddyyTHHmmss%.NotMigrated
. A new D:\\Users\\%USERNAME%\\
folder is generated by the new OS. Certain files in the old user profile are moved to the new user profile.
For available migration scenarios, details about what happens during migration, and best practices, see Migrate a WorkSpace.
",
@@ -242,6 +245,39 @@
"WorkspaceBundle$Owner": "The owner of the bundle. This is the account identifier of the owner, or AMAZON
if the bundle is provided by Amazon Web Services.
"
}
},
+ "ClientDeviceType": {
+ "base": null,
+ "refs": {
+ "ClientDeviceTypeList$member": null
+ }
+ },
+ "ClientDeviceTypeList": {
+ "base": null,
+ "refs": {
+ "DeleteClientBrandingRequest$Platforms": "The device type for which you want to delete client branding.
"
+ }
+ },
+ "ClientEmail": {
+ "base": null,
+ "refs": {
+ "DefaultClientBrandingAttributes$SupportEmail": "The support email. The company's customer support email address.
-
In each platform type, the SupportEmail
and SupportLink
parameters are mutually exclusive. You can specify one parameter for each platform type, but not both.
-
The default email is workspaces-feedback@amazon.com
.
",
+ "DefaultImportClientBrandingAttributes$SupportEmail": "The support email. The company's customer support email address.
-
In each platform type, the SupportEmail
and SupportLink
parameters are mutually exclusive. You can specify one parameter for each platform type, but not both.
-
The default email is workspaces-feedback@amazon.com
.
",
+ "IosClientBrandingAttributes$SupportEmail": "The support email. The company's customer support email address.
-
In each platform type, the SupportEmail
and SupportLink
parameters are mutually exclusive. You can specify one parameter for each platform type, but not both.
-
The default email is workspaces-feedback@amazon.com
.
",
+ "IosImportClientBrandingAttributes$SupportEmail": "The support email. The company's customer support email address.
-
In each platform type, the SupportEmail
and SupportLink
parameters are mutually exclusive. You can specify one parameter for each platform type, but not both.
-
The default email is workspaces-feedback@amazon.com
.
"
+ }
+ },
+ "ClientLocale": {
+ "base": null,
+ "refs": {
+ "LoginMessage$key": null
+ }
+ },
+ "ClientLoginMessage": {
+ "base": null,
+ "refs": {
+ "LoginMessage$value": null
+ }
+ },
"ClientProperties": {
"base": "Describes an Amazon WorkSpaces client.
",
"refs": {
@@ -261,6 +297,23 @@
"ClientPropertiesList$member": null
}
},
+ "ClientUrl": {
+ "base": null,
+ "refs": {
+ "DefaultClientBrandingAttributes$LogoUrl": "The logo URL. This is the link where users can download the logo image. The only supported image format is .png
.
",
+ "DefaultClientBrandingAttributes$SupportLink": "The support link. The link for the company's customer support page for their WorkSpace.
-
In each platform type, the SupportEmail
and SupportLink
parameters are mutually exclusive.You can specify one parameter for each platform type, but not both.
-
The default support link is workspaces-feedback@amazon.com
.
",
+ "DefaultClientBrandingAttributes$ForgotPasswordLink": "The forgotten password link. This is the web address that users can go to if they forget the password for their WorkSpace.
",
+ "DefaultImportClientBrandingAttributes$SupportLink": "The support link. The link for the company's customer support page for their WorkSpace.
-
In each platform type, the SupportEmail
and SupportLink
parameters are mutually exclusive. You can specify one parameter for each platform type, but not both.
-
The default support link is workspaces-feedback@amazon.com
.
",
+ "DefaultImportClientBrandingAttributes$ForgotPasswordLink": "The forgotten password link. This is the web address that users can go to if they forget the password for their WorkSpace.
",
+ "IosClientBrandingAttributes$LogoUrl": "The logo. This is the link where users can download the logo image. This is the standard-resolution display that has a 1:1 pixel density (or @1x), where one pixel is equal to one point.
",
+ "IosClientBrandingAttributes$Logo2xUrl": "The @2x version of the logo. This is the higher resolution display that offers a scale factor of 2.0 (or @2x).
For more information about iOS image size and resolution, see Image Size and Resolution in the Apple Human Interface Guidelines.
",
+ "IosClientBrandingAttributes$Logo3xUrl": "The @3x version of the logo. This is the higher resolution display that offers a scale factor of 3.0 (or @3x).
For more information about iOS image size and resolution, see Image Size and Resolution in the Apple Human Interface Guidelines.
",
+ "IosClientBrandingAttributes$SupportLink": "The support link. The link for the company's customer support page for their WorkSpace.
-
In each platform type, the SupportEmail
and SupportLink
parameters are mutually exclusive. You can specify one parameter for each platform type, but not both.
-
The default support link is workspaces-feedback@amazon.com
.
",
+ "IosClientBrandingAttributes$ForgotPasswordLink": "The forgotten password link. This is the web address that users can go to if they forget the password for their WorkSpace.
",
+ "IosImportClientBrandingAttributes$SupportLink": "The support link. The link for the company's customer support page for their WorkSpace.
-
In each platform type, the SupportEmail
and SupportLink
parameters are mutually exclusive. You can specify one parameter for each platform type, but not both.
-
The default support link is workspaces-feedback@amazon.com
.
",
+ "IosImportClientBrandingAttributes$ForgotPasswordLink": "The forgotten password link. This is the web address that users can go to if they forget the password for their WorkSpace.
"
+ }
+ },
"Compute": {
"base": null,
"refs": {
@@ -490,6 +543,37 @@
"DescribeAccountResult$DedicatedTenancySupport": "The status of BYOL (whether BYOL is enabled or disabled).
"
}
},
+ "DefaultClientBrandingAttributes": {
+ "base": "Returns default client branding attributes that were imported. These attributes display on the client login screen.
Client branding attributes are public facing. Ensure that you don't include sensitive information.
",
+ "refs": {
+ "DescribeClientBrandingResult$DeviceTypeWindows": "The branding information for Windows devices.
",
+ "DescribeClientBrandingResult$DeviceTypeOsx": "The branding information for macOS devices.
",
+ "DescribeClientBrandingResult$DeviceTypeAndroid": "The branding information for Android devices.
",
+ "DescribeClientBrandingResult$DeviceTypeLinux": "The branding information for Linux devices.
",
+ "DescribeClientBrandingResult$DeviceTypeWeb": "The branding information for Web access.
",
+ "ImportClientBrandingResult$DeviceTypeWindows": "The branding information configured for Windows devices.
",
+ "ImportClientBrandingResult$DeviceTypeOsx": "The branding information configured for macOS devices.
",
+ "ImportClientBrandingResult$DeviceTypeAndroid": "The branding information configured for Android devices.
",
+ "ImportClientBrandingResult$DeviceTypeLinux": "The branding information configured for Linux devices.
",
+ "ImportClientBrandingResult$DeviceTypeWeb": "The branding information configured for web access.
"
+ }
+ },
+ "DefaultImportClientBrandingAttributes": {
+ "base": "The default client branding attributes to be imported. These attributes display on the client login screen.
Client branding attributes are public facing. Ensure that you do not include sensitive information.
",
+ "refs": {
+ "ImportClientBrandingRequest$DeviceTypeWindows": "The branding information to import for Windows devices.
",
+ "ImportClientBrandingRequest$DeviceTypeOsx": "The branding information to import for macOS devices.
",
+ "ImportClientBrandingRequest$DeviceTypeAndroid": "The branding information to import for Android devices.
",
+ "ImportClientBrandingRequest$DeviceTypeLinux": "The branding information to import for Linux devices.
",
+ "ImportClientBrandingRequest$DeviceTypeWeb": "The branding information to import for web access.
"
+ }
+ },
+ "DefaultLogo": {
+ "base": null,
+ "refs": {
+ "DefaultImportClientBrandingAttributes$Logo": "The logo. This is the link where users can download the logo image. The only image format accepted is .png
.
"
+ }
+ },
"DefaultOu": {
"base": null,
"refs": {
@@ -503,6 +587,16 @@
"WorkspaceDirectory$WorkspaceCreationProperties": "The default creation properties for all WorkSpaces in the directory.
"
}
},
+ "DeleteClientBrandingRequest": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "DeleteClientBrandingResult": {
+ "base": null,
+ "refs": {
+ }
+ },
"DeleteConnectClientAddInRequest": {
"base": null,
"refs": {
@@ -593,6 +687,16 @@
"refs": {
}
},
+ "DescribeClientBrandingRequest": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "DescribeClientBrandingResult": {
+ "base": null,
+ "refs": {
+ }
+ },
"DescribeClientPropertiesRequest": {
"base": null,
"refs": {
@@ -740,12 +844,15 @@
"AssociateIpGroupsRequest$DirectoryId": "The identifier of the directory.
",
"ConnectClientAddIn$ResourceId": "The directory identifier for which the client add-in is configured.
",
"CreateConnectClientAddInRequest$ResourceId": "The directory identifier for which to configure the client add-in.
",
+ "DeleteClientBrandingRequest$ResourceId": "The directory identifier of the WorkSpace for which you want to delete client branding.
",
"DeleteConnectClientAddInRequest$ResourceId": "The directory identifier for which the client add-in is configured.
",
"DeregisterWorkspaceDirectoryRequest$DirectoryId": "The identifier of the directory. If any WorkSpaces are registered to this directory, you must remove them before you deregister the directory, or you will receive an OperationNotSupportedException error.
",
+ "DescribeClientBrandingRequest$ResourceId": "The directory identifier of the WorkSpace for which you want to view client branding information.
",
"DescribeConnectClientAddInsRequest$ResourceId": "The directory identifier for which the client add-in is configured.
",
"DescribeWorkspacesRequest$DirectoryId": "The identifier of the directory. In addition, you can optionally specify a specific directory user (see UserName
). You cannot combine this parameter with any other filter.
",
"DirectoryIdList$member": null,
"DisassociateIpGroupsRequest$DirectoryId": "The identifier of the directory.
",
+ "ImportClientBrandingRequest$ResourceId": "The directory identifier of the WorkSpace for which you want to import client branding.
",
"ModifySelfservicePermissionsRequest$ResourceId": "The identifier of the directory.
",
"ModifyWorkspaceAccessPropertiesRequest$ResourceId": "The identifier of the directory.
",
"ModifyWorkspaceCreationPropertiesRequest$ResourceId": "The identifier of the directory.
",
@@ -902,6 +1009,16 @@
"DescribeWorkspaceImagesRequest$ImageType": "The type (owned or shared) of the image.
"
}
},
+ "ImportClientBrandingRequest": {
+ "base": null,
+ "refs": {
+ }
+ },
+ "ImportClientBrandingResult": {
+ "base": null,
+ "refs": {
+ }
+ },
"ImportWorkspaceImageRequest": {
"base": null,
"refs": {
@@ -922,6 +1039,37 @@
"refs": {
}
},
+ "Ios2XLogo": {
+ "base": null,
+ "refs": {
+ "IosImportClientBrandingAttributes$Logo2x": "The @2x version of the logo. This is the higher resolution display that offers a scale factor of 2.0 (or @2x).
For more information about iOS image size and resolution, see Image Size and Resolution in the Apple Human Interface Guidelines.
"
+ }
+ },
+ "Ios3XLogo": {
+ "base": null,
+ "refs": {
+ "IosImportClientBrandingAttributes$Logo3x": "The @3x version of the logo. This is the higher resolution display that offers a scale factor of 3.0 (or @3x).
For more information about iOS image size and resolution, see Image Size and Resolution in the Apple Human Interface Guidelines.
"
+ }
+ },
+ "IosClientBrandingAttributes": {
+ "base": "The client branding attributes for iOS device types. These attributes are displayed on the iOS client login screen only.
Client branding attributes are public facing. Ensure you do not include sensitive information.
",
+ "refs": {
+ "DescribeClientBrandingResult$DeviceTypeIos": "The branding information for iOS devices.
",
+ "ImportClientBrandingResult$DeviceTypeIos": "The branding information configured for iOS devices.
"
+ }
+ },
+ "IosImportClientBrandingAttributes": {
+ "base": "The client branding attributes to import for iOS device types. These attributes are displayed on the iOS client login screen.
Client branding attributes are public facing. Ensure you do not include sensitive information.
",
+ "refs": {
+ "ImportClientBrandingRequest$DeviceTypeIos": "The branding information to import for iOS devices.
"
+ }
+ },
+ "IosLogo": {
+ "base": null,
+ "refs": {
+ "IosImportClientBrandingAttributes$Logo": "The logo. This is the link where users can download the logo image. This is the standard-resolution display that has a 1:1 pixel density (or @1x), where one pixel is equal to one point.
"
+ }
+ },
"IpAddress": {
"base": null,
"refs": {
@@ -1021,6 +1169,15 @@
"refs": {
}
},
+ "LoginMessage": {
+ "base": null,
+ "refs": {
+ "DefaultClientBrandingAttributes$LoginMessage": "The login message. Specified as a key value pair, in which the key is a locale and the value is the localized message for that locale. The only key supported is en_US
.
",
+ "DefaultImportClientBrandingAttributes$LoginMessage": "The login message. Specified as a key value pair, in which the key is a locale and the value is the localized message for that locale. The only key supported is en_US
.
",
+ "IosClientBrandingAttributes$LoginMessage": "The login message. Specified as a key value pair, in which the key is a locale and the value is the localized message for that locale. The only key supported is en_US
.
",
+ "IosImportClientBrandingAttributes$LoginMessage": "The login message. Specified as a key value pair, in which the key is a locale and the value is the localized message for that locale. The only key supported is en_US
.
"
+ }
+ },
"ManagementCidrRangeConstraint": {
"base": null,
"refs": {
diff --git a/models/endpoints/endpoints.json b/models/endpoints/endpoints.json
index 67e514269d7..a4ad2618f59 100644
--- a/models/endpoints/endpoints.json
+++ b/models/endpoints/endpoints.json
@@ -2866,6 +2866,94 @@
"us-east-1" : { }
}
},
+ "data-ats.iot" : {
+ "defaults" : {
+ "credentialScope" : {
+ "service" : "iotdata"
+ },
+ "protocols" : [ "https" ]
+ },
+ "endpoints" : {
+ "ap-east-1" : { },
+ "ap-northeast-1" : { },
+ "ap-northeast-2" : { },
+ "ap-south-1" : { },
+ "ap-southeast-1" : { },
+ "ap-southeast-2" : { },
+ "ca-central-1" : {
+ "variants" : [ {
+ "hostname" : "data.iot-fips.ca-central-1.amazonaws.com",
+ "tags" : [ "fips" ]
+ } ]
+ },
+ "eu-central-1" : { },
+ "eu-north-1" : { },
+ "eu-west-1" : { },
+ "eu-west-2" : { },
+ "eu-west-3" : { },
+ "fips-ca-central-1" : {
+ "credentialScope" : {
+ "service" : "iotdata"
+ },
+ "deprecated" : true,
+ "hostname" : "data.iot-fips.ca-central-1.amazonaws.com"
+ },
+ "fips-us-east-1" : {
+ "credentialScope" : {
+ "service" : "iotdata"
+ },
+ "deprecated" : true,
+ "hostname" : "data.iot-fips.us-east-1.amazonaws.com"
+ },
+ "fips-us-east-2" : {
+ "credentialScope" : {
+ "service" : "iotdata"
+ },
+ "deprecated" : true,
+ "hostname" : "data.iot-fips.us-east-2.amazonaws.com"
+ },
+ "fips-us-west-1" : {
+ "credentialScope" : {
+ "service" : "iotdata"
+ },
+ "deprecated" : true,
+ "hostname" : "data.iot-fips.us-west-1.amazonaws.com"
+ },
+ "fips-us-west-2" : {
+ "credentialScope" : {
+ "service" : "iotdata"
+ },
+ "deprecated" : true,
+ "hostname" : "data.iot-fips.us-west-2.amazonaws.com"
+ },
+ "me-south-1" : { },
+ "sa-east-1" : { },
+ "us-east-1" : {
+ "variants" : [ {
+ "hostname" : "data.iot-fips.us-east-1.amazonaws.com",
+ "tags" : [ "fips" ]
+ } ]
+ },
+ "us-east-2" : {
+ "variants" : [ {
+ "hostname" : "data.iot-fips.us-east-2.amazonaws.com",
+ "tags" : [ "fips" ]
+ } ]
+ },
+ "us-west-1" : {
+ "variants" : [ {
+ "hostname" : "data.iot-fips.us-west-1.amazonaws.com",
+ "tags" : [ "fips" ]
+ } ]
+ },
+ "us-west-2" : {
+ "variants" : [ {
+ "hostname" : "data.iot-fips.us-west-2.amazonaws.com",
+ "tags" : [ "fips" ]
+ } ]
+ }
+ }
+ },
"data.iot" : {
"defaults" : {
"credentialScope" : {
@@ -10899,6 +10987,7 @@
"ap-south-1" : { },
"ap-southeast-1" : { },
"ap-southeast-2" : { },
+ "ap-southeast-3" : { },
"ca-central-1" : { },
"eu-central-1" : { },
"eu-north-1" : { },
@@ -13131,6 +13220,12 @@
"isRegionalized" : false,
"partitionEndpoint" : "aws-cn-global"
},
+ "cloudcontrolapi" : {
+ "endpoints" : {
+ "cn-north-1" : { },
+ "cn-northwest-1" : { }
+ }
+ },
"cloudformation" : {
"endpoints" : {
"cn-north-1" : { },
@@ -13212,6 +13307,18 @@
"cn-northwest-1" : { }
}
},
+ "data-ats.iot" : {
+ "defaults" : {
+ "credentialScope" : {
+ "service" : "iotdata"
+ },
+ "protocols" : [ "https" ]
+ },
+ "endpoints" : {
+ "cn-north-1" : { },
+ "cn-northwest-1" : { }
+ }
+ },
"data.iot" : {
"defaults" : {
"credentialScope" : {
@@ -14773,6 +14880,42 @@
"us-gov-west-1" : { }
}
},
+ "data-ats.iot" : {
+ "defaults" : {
+ "credentialScope" : {
+ "service" : "iotdata"
+ },
+ "protocols" : [ "https" ]
+ },
+ "endpoints" : {
+ "fips-us-gov-east-1" : {
+ "credentialScope" : {
+ "service" : "iotdata"
+ },
+ "deprecated" : true,
+ "hostname" : "data.iot-fips.us-gov-east-1.amazonaws.com"
+ },
+ "fips-us-gov-west-1" : {
+ "credentialScope" : {
+ "service" : "iotdata"
+ },
+ "deprecated" : true,
+ "hostname" : "data.iot-fips.us-gov-west-1.amazonaws.com"
+ },
+ "us-gov-east-1" : {
+ "variants" : [ {
+ "hostname" : "data.iot-fips.us-gov-east-1.amazonaws.com",
+ "tags" : [ "fips" ]
+ } ]
+ },
+ "us-gov-west-1" : {
+ "variants" : [ {
+ "hostname" : "data.iot-fips.us-gov-west-1.amazonaws.com",
+ "tags" : [ "fips" ]
+ } ]
+ }
+ }
+ },
"data.iot" : {
"defaults" : {
"credentialScope" : {
diff --git a/service/auditmanager/api.go b/service/auditmanager/api.go
index c4a6113024d..ad25cfb540b 100644
--- a/service/auditmanager/api.go
+++ b/service/auditmanager/api.go
@@ -1417,6 +1417,37 @@ func (c *AuditManager) DeregisterAccountRequest(input *DeregisterAccountInput) (
//
// Deregisters an account in Audit Manager.
//
+// When you deregister your account from Audit Manager, your data isn’t deleted.
+// If you want to delete your resource data, you must perform that task separately
+// before you deregister your account. Either, you can do this in the Audit
+// Manager console. Or, you can use one of the delete API operations that are
+// provided by Audit Manager.
+//
+// To delete your Audit Manager resource data, see the following instructions:
+//
+// * DeleteAssessment (https://docs.aws.amazon.com/audit-manager/latest/APIReference/API_DeleteAssessment.html)
+// (see also: Deleting an assessment (https://docs.aws.amazon.com/audit-manager/latest/userguide/delete-assessment.html)
+// in the Audit Manager User Guide)
+//
+// * DeleteAssessmentFramework (https://docs.aws.amazon.com/audit-manager/latest/APIReference/API_DeleteAssessmentFramework.html)
+// (see also: Deleting a custom framework (https://docs.aws.amazon.com/audit-manager/latest/userguide/delete-custom-framework.html)
+// in the Audit Manager User Guide)
+//
+// * DeleteAssessmentFrameworkShare (https://docs.aws.amazon.com/audit-manager/latest/APIReference/API_DeleteAssessmentFrameworkShare.html)
+// (see also: Deleting a share request (https://docs.aws.amazon.com/audit-manager/latest/userguide/deleting-shared-framework-requests.html)
+// in the Audit Manager User Guide)
+//
+// * DeleteAssessmentReport (https://docs.aws.amazon.com/audit-manager/latest/APIReference/API_DeleteAssessmentReport.html)
+// (see also: Deleting an assessment report (https://docs.aws.amazon.com/audit-manager/latest/userguide/generate-assessment-report.html#delete-assessment-report-steps)
+// in the Audit Manager User Guide)
+//
+// * DeleteControl (https://docs.aws.amazon.com/audit-manager/latest/APIReference/API_DeleteControl.html)
+// (see also: Deleting a custom control (https://docs.aws.amazon.com/audit-manager/latest/userguide/delete-controls.html)
+// in the Audit Manager User Guide)
+//
+// At this time, Audit Manager doesn't provide an option to delete evidence.
+// All available delete operations are listed above.
+//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
@@ -1506,15 +1537,47 @@ func (c *AuditManager) DeregisterOrganizationAdminAccountRequest(input *Deregist
// DeregisterOrganizationAdminAccount API operation for AWS Audit Manager.
//
-// Removes the specified member Amazon Web Services account as a delegated administrator
+// Removes the specified Amazon Web Services account as a delegated administrator
// for Audit Manager.
//
// When you remove a delegated administrator from your Audit Manager settings,
// you continue to have access to the evidence that you previously collected
// under that account. This is also the case when you deregister a delegated
-// administrator from Audit Manager. However, Audit Manager will stop collecting
+// administrator from Organizations. However, Audit Manager will stop collecting
// and attaching evidence to that delegated administrator account moving forward.
//
+// When you deregister a delegated administrator account for Audit Manager,
+// the data for that account isn’t deleted. If you want to delete resource
+// data for a delegated administrator account, you must perform that task separately
+// before you deregister the account. Either, you can do this in the Audit Manager
+// console. Or, you can use one of the delete API operations that are provided
+// by Audit Manager.
+//
+// To delete your Audit Manager resource data, see the following instructions:
+//
+// * DeleteAssessment (https://docs.aws.amazon.com/audit-manager/latest/APIReference/API_DeleteAssessment.html)
+// (see also: Deleting an assessment (https://docs.aws.amazon.com/audit-manager/latest/userguide/delete-assessment.html)
+// in the Audit Manager User Guide)
+//
+// * DeleteAssessmentFramework (https://docs.aws.amazon.com/audit-manager/latest/APIReference/API_DeleteAssessmentFramework.html)
+// (see also: Deleting a custom framework (https://docs.aws.amazon.com/audit-manager/latest/userguide/delete-custom-framework.html)
+// in the Audit Manager User Guide)
+//
+// * DeleteAssessmentFrameworkShare (https://docs.aws.amazon.com/audit-manager/latest/APIReference/API_DeleteAssessmentFrameworkShare.html)
+// (see also: Deleting a share request (https://docs.aws.amazon.com/audit-manager/latest/userguide/deleting-shared-framework-requests.html)
+// in the Audit Manager User Guide)
+//
+// * DeleteAssessmentReport (https://docs.aws.amazon.com/audit-manager/latest/APIReference/API_DeleteAssessmentReport.html)
+// (see also: Deleting an assessment report (https://docs.aws.amazon.com/audit-manager/latest/userguide/generate-assessment-report.html#delete-assessment-report-steps)
+// in the Audit Manager User Guide)
+//
+// * DeleteControl (https://docs.aws.amazon.com/audit-manager/latest/APIReference/API_DeleteControl.html)
+// (see also: Deleting a custom control (https://docs.aws.amazon.com/audit-manager/latest/userguide/delete-controls.html)
+// in the Audit Manager User Guide)
+//
+// At this time, Audit Manager doesn't provide an option to delete evidence.
+// All available delete operations are listed above.
+//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
diff --git a/service/cloudcontrolapi/api.go b/service/cloudcontrolapi/api.go
index 4c44dfc03ff..e6272f158a1 100644
--- a/service/cloudcontrolapi/api.go
+++ b/service/cloudcontrolapi/api.go
@@ -61,7 +61,7 @@ func (c *CloudControlApi) CancelResourceRequestRequest(input *CancelResourceRequ
// in the Amazon Web Services Cloud Control API User Guide.
//
// Only resource operations requests with a status of PENDING or IN_PROGRESS
-// can be cancelled.
+// can be canceled.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
@@ -72,7 +72,7 @@ func (c *CloudControlApi) CancelResourceRequestRequest(input *CancelResourceRequ
//
// Returned Error Types:
// * RequestTokenNotFoundException
-// A resource operation with the specified request token cannot be found.
+// A resource operation with the specified request token can't be found.
//
// * ConcurrentModificationException
// The resource is currently being modified by another operation.
@@ -165,21 +165,21 @@ func (c *CloudControlApi) CreateResourceRequest(input *CreateResourceInput) (req
// * ClientTokenConflictException
// The specified client token has already been used in another resource request.
//
-// It is best practice for client tokens to be unique for each resource operation
+// It's best practice for client tokens to be unique for each resource operation
// request. However, client token expire after 36 hours.
//
// * UnsupportedActionException
-// The specified resource does not support this resource operation.
+// The specified resource doesn't support this resource operation.
//
// * TypeNotFoundException
-// The specified extension does not exist in the CloudFormation registry.
+// The specified extension doesn't exist in the CloudFormation registry.
//
// * AlreadyExistsException
// The resource with the name requested already exists.
//
// * GeneralServiceException
// The resource handler has returned that the downstream service generated an
-// error that does not map to any other handler error code.
+// error that doesn't map to any other handler error code.
//
// * HandlerInternalFailureException
// The resource handler has returned that an unexpected error occurred within
@@ -194,12 +194,12 @@ func (c *CloudControlApi) CreateResourceRequest(input *CreateResourceInput) (req
// a generic exception.
//
// * NetworkFailureException
-// The resource handler has returned that the request could not be completed
+// The resource handler has returned that the request couldn't be completed
// due to networking issues, such as a failure to receive a response from the
// server.
//
// * ResourceNotFoundException
-// A resource with the specified identifier cannot be found.
+// A resource with the specified identifier can't be found.
//
// * NotStabilizedException
// The resource handler has returned that the downstream resource failed to
@@ -207,11 +207,11 @@ func (c *CloudControlApi) CreateResourceRequest(input *CreateResourceInput) (req
//
// * NotUpdatableException
// One or more properties included in this resource operation are defined as
-// create-only, and therefore cannot be updated.
+// create-only, and therefore can't be updated.
//
// * ResourceConflictException
// The resource is temporarily unavailable to be acted upon. For example, if
-// the resource is currently undergoing an operation and cannot be acted upon
+// the resource is currently undergoing an operation and can't be acted upon
// until that operation is finished.
//
// * ServiceInternalErrorException
@@ -226,7 +226,7 @@ func (c *CloudControlApi) CreateResourceRequest(input *CreateResourceInput) (req
// The request was denied due to request throttling.
//
// * PrivateTypeException
-// Cloud Control API has not received a valid response from the resource handler,
+// Cloud Control API hasn't received a valid response from the resource handler,
// due to a configuration error. This includes issues such as the resource handler
// returning an invalid response, or timing out.
//
@@ -321,21 +321,21 @@ func (c *CloudControlApi) DeleteResourceRequest(input *DeleteResourceInput) (req
// * ClientTokenConflictException
// The specified client token has already been used in another resource request.
//
-// It is best practice for client tokens to be unique for each resource operation
+// It's best practice for client tokens to be unique for each resource operation
// request. However, client token expire after 36 hours.
//
// * UnsupportedActionException
-// The specified resource does not support this resource operation.
+// The specified resource doesn't support this resource operation.
//
// * TypeNotFoundException
-// The specified extension does not exist in the CloudFormation registry.
+// The specified extension doesn't exist in the CloudFormation registry.
//
// * AlreadyExistsException
// The resource with the name requested already exists.
//
// * GeneralServiceException
// The resource handler has returned that the downstream service generated an
-// error that does not map to any other handler error code.
+// error that doesn't map to any other handler error code.
//
// * HandlerInternalFailureException
// The resource handler has returned that an unexpected error occurred within
@@ -350,12 +350,12 @@ func (c *CloudControlApi) DeleteResourceRequest(input *DeleteResourceInput) (req
// a generic exception.
//
// * NetworkFailureException
-// The resource handler has returned that the request could not be completed
+// The resource handler has returned that the request couldn't be completed
// due to networking issues, such as a failure to receive a response from the
// server.
//
// * ResourceNotFoundException
-// A resource with the specified identifier cannot be found.
+// A resource with the specified identifier can't be found.
//
// * NotStabilizedException
// The resource handler has returned that the downstream resource failed to
@@ -363,11 +363,11 @@ func (c *CloudControlApi) DeleteResourceRequest(input *DeleteResourceInput) (req
//
// * NotUpdatableException
// One or more properties included in this resource operation are defined as
-// create-only, and therefore cannot be updated.
+// create-only, and therefore can't be updated.
//
// * ResourceConflictException
// The resource is temporarily unavailable to be acted upon. For example, if
-// the resource is currently undergoing an operation and cannot be acted upon
+// the resource is currently undergoing an operation and can't be acted upon
// until that operation is finished.
//
// * ServiceInternalErrorException
@@ -382,7 +382,7 @@ func (c *CloudControlApi) DeleteResourceRequest(input *DeleteResourceInput) (req
// The request was denied due to request throttling.
//
// * PrivateTypeException
-// Cloud Control API has not received a valid response from the resource handler,
+// Cloud Control API hasn't received a valid response from the resource handler,
// due to a configuration error. This includes issues such as the resource handler
// returning an invalid response, or timing out.
//
@@ -460,8 +460,8 @@ func (c *CloudControlApi) GetResourceRequest(input *GetResourceInput) (req *requ
// details, see Reading a resource's current state (https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-operations-read.html).
//
// You can use this action to return information about an existing resource
-// in your account and Amazon Web Services Region, whether or not those resources
-// were provisioned using Cloud Control API.
+// in your account and Amazon Web Services Region, whether those resources were
+// provisioned using Cloud Control API.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
@@ -472,17 +472,17 @@ func (c *CloudControlApi) GetResourceRequest(input *GetResourceInput) (req *requ
//
// Returned Error Types:
// * UnsupportedActionException
-// The specified resource does not support this resource operation.
+// The specified resource doesn't support this resource operation.
//
// * TypeNotFoundException
-// The specified extension does not exist in the CloudFormation registry.
+// The specified extension doesn't exist in the CloudFormation registry.
//
// * AlreadyExistsException
// The resource with the name requested already exists.
//
// * GeneralServiceException
// The resource handler has returned that the downstream service generated an
-// error that does not map to any other handler error code.
+// error that doesn't map to any other handler error code.
//
// * HandlerInternalFailureException
// The resource handler has returned that an unexpected error occurred within
@@ -497,12 +497,12 @@ func (c *CloudControlApi) GetResourceRequest(input *GetResourceInput) (req *requ
// a generic exception.
//
// * NetworkFailureException
-// The resource handler has returned that the request could not be completed
+// The resource handler has returned that the request couldn't be completed
// due to networking issues, such as a failure to receive a response from the
// server.
//
// * ResourceNotFoundException
-// A resource with the specified identifier cannot be found.
+// A resource with the specified identifier can't be found.
//
// * NotStabilizedException
// The resource handler has returned that the downstream resource failed to
@@ -510,11 +510,11 @@ func (c *CloudControlApi) GetResourceRequest(input *GetResourceInput) (req *requ
//
// * NotUpdatableException
// One or more properties included in this resource operation are defined as
-// create-only, and therefore cannot be updated.
+// create-only, and therefore can't be updated.
//
// * ResourceConflictException
// The resource is temporarily unavailable to be acted upon. For example, if
-// the resource is currently undergoing an operation and cannot be acted upon
+// the resource is currently undergoing an operation and can't be acted upon
// until that operation is finished.
//
// * ServiceInternalErrorException
@@ -529,7 +529,7 @@ func (c *CloudControlApi) GetResourceRequest(input *GetResourceInput) (req *requ
// The request was denied due to request throttling.
//
// * PrivateTypeException
-// Cloud Control API has not received a valid response from the resource handler,
+// Cloud Control API hasn't received a valid response from the resource handler,
// due to a configuration error. This includes issues such as the resource handler
// returning an invalid response, or timing out.
//
@@ -616,7 +616,7 @@ func (c *CloudControlApi) GetResourceRequestStatusRequest(input *GetResourceRequ
//
// Returned Error Types:
// * RequestTokenNotFoundException
-// A resource operation with the specified request token cannot be found.
+// A resource operation with the specified request token can't be found.
//
// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudcontrol-2021-09-30/GetResourceRequestStatus
func (c *CloudControlApi) GetResourceRequestStatus(input *GetResourceRequestStatusInput) (*GetResourceRequestStatusOutput, error) {
@@ -695,7 +695,7 @@ func (c *CloudControlApi) ListResourceRequestsRequest(input *ListResourceRequest
// requests (https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-operations-manage-requests.html#resource-operations-manage-requests-list)
// in the Amazon Web Services Cloud Control API User Guide.
//
-// Resource operation requests expire after seven days.
+// Resource operation requests expire after 7 days.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
@@ -828,12 +828,12 @@ func (c *CloudControlApi) ListResourcesRequest(input *ListResourcesInput) (req *
// ListResources API operation for AWS Cloud Control API.
//
// Returns information about the specified resources. For more information,
-// see Discovering resources (cloudcontrolapi/latest/userguide/resource-operations-list.html)
+// see Discovering resources (https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/resource-operations-list.html)
// in the Amazon Web Services Cloud Control API User Guide.
//
// You can use this action to return information about existing resources in
-// your account and Amazon Web Services Region, whether or not those resources
-// were provisioned using Cloud Control API.
+// your account and Amazon Web Services Region, whether those resources were
+// provisioned using Cloud Control API.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
@@ -844,17 +844,17 @@ func (c *CloudControlApi) ListResourcesRequest(input *ListResourcesInput) (req *
//
// Returned Error Types:
// * UnsupportedActionException
-// The specified resource does not support this resource operation.
+// The specified resource doesn't support this resource operation.
//
// * TypeNotFoundException
-// The specified extension does not exist in the CloudFormation registry.
+// The specified extension doesn't exist in the CloudFormation registry.
//
// * AlreadyExistsException
// The resource with the name requested already exists.
//
// * GeneralServiceException
// The resource handler has returned that the downstream service generated an
-// error that does not map to any other handler error code.
+// error that doesn't map to any other handler error code.
//
// * HandlerInternalFailureException
// The resource handler has returned that an unexpected error occurred within
@@ -869,12 +869,12 @@ func (c *CloudControlApi) ListResourcesRequest(input *ListResourcesInput) (req *
// a generic exception.
//
// * NetworkFailureException
-// The resource handler has returned that the request could not be completed
+// The resource handler has returned that the request couldn't be completed
// due to networking issues, such as a failure to receive a response from the
// server.
//
// * ResourceNotFoundException
-// A resource with the specified identifier cannot be found.
+// A resource with the specified identifier can't be found.
//
// * NotStabilizedException
// The resource handler has returned that the downstream resource failed to
@@ -882,11 +882,11 @@ func (c *CloudControlApi) ListResourcesRequest(input *ListResourcesInput) (req *
//
// * NotUpdatableException
// One or more properties included in this resource operation are defined as
-// create-only, and therefore cannot be updated.
+// create-only, and therefore can't be updated.
//
// * ResourceConflictException
// The resource is temporarily unavailable to be acted upon. For example, if
-// the resource is currently undergoing an operation and cannot be acted upon
+// the resource is currently undergoing an operation and can't be acted upon
// until that operation is finished.
//
// * ServiceInternalErrorException
@@ -901,7 +901,7 @@ func (c *CloudControlApi) ListResourcesRequest(input *ListResourcesInput) (req *
// The request was denied due to request throttling.
//
// * PrivateTypeException
-// Cloud Control API has not received a valid response from the resource handler,
+// Cloud Control API hasn't received a valid response from the resource handler,
// due to a configuration error. This includes issues such as the resource handler
// returning an invalid response, or timing out.
//
@@ -1045,7 +1045,7 @@ func (c *CloudControlApi) UpdateResourceRequest(input *UpdateResourceInput) (req
// For more information about the properties of a specific resource, refer to
// the related topic for the resource in the Resource and property types reference
// (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-template-resource-type-ref.html)
-// in the Amazon Web Services CloudFormation Users Guide.
+// in the CloudFormation Users Guide.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
@@ -1061,21 +1061,21 @@ func (c *CloudControlApi) UpdateResourceRequest(input *UpdateResourceInput) (req
// * ClientTokenConflictException
// The specified client token has already been used in another resource request.
//
-// It is best practice for client tokens to be unique for each resource operation
+// It's best practice for client tokens to be unique for each resource operation
// request. However, client token expire after 36 hours.
//
// * UnsupportedActionException
-// The specified resource does not support this resource operation.
+// The specified resource doesn't support this resource operation.
//
// * TypeNotFoundException
-// The specified extension does not exist in the CloudFormation registry.
+// The specified extension doesn't exist in the CloudFormation registry.
//
// * AlreadyExistsException
// The resource with the name requested already exists.
//
// * GeneralServiceException
// The resource handler has returned that the downstream service generated an
-// error that does not map to any other handler error code.
+// error that doesn't map to any other handler error code.
//
// * HandlerInternalFailureException
// The resource handler has returned that an unexpected error occurred within
@@ -1090,12 +1090,12 @@ func (c *CloudControlApi) UpdateResourceRequest(input *UpdateResourceInput) (req
// a generic exception.
//
// * NetworkFailureException
-// The resource handler has returned that the request could not be completed
+// The resource handler has returned that the request couldn't be completed
// due to networking issues, such as a failure to receive a response from the
// server.
//
// * ResourceNotFoundException
-// A resource with the specified identifier cannot be found.
+// A resource with the specified identifier can't be found.
//
// * NotStabilizedException
// The resource handler has returned that the downstream resource failed to
@@ -1103,11 +1103,11 @@ func (c *CloudControlApi) UpdateResourceRequest(input *UpdateResourceInput) (req
//
// * NotUpdatableException
// One or more properties included in this resource operation are defined as
-// create-only, and therefore cannot be updated.
+// create-only, and therefore can't be updated.
//
// * ResourceConflictException
// The resource is temporarily unavailable to be acted upon. For example, if
-// the resource is currently undergoing an operation and cannot be acted upon
+// the resource is currently undergoing an operation and can't be acted upon
// until that operation is finished.
//
// * ServiceInternalErrorException
@@ -1122,7 +1122,7 @@ func (c *CloudControlApi) UpdateResourceRequest(input *UpdateResourceInput) (req
// The request was denied due to request throttling.
//
// * PrivateTypeException
-// Cloud Control API has not received a valid response from the resource handler,
+// Cloud Control API hasn't received a valid response from the resource handler,
// due to a configuration error. This includes issues such as the resource handler
// returning an invalid response, or timing out.
//
@@ -1301,7 +1301,7 @@ func (s *CancelResourceRequestOutput) SetProgressEvent(v *ProgressEvent) *Cancel
// The specified client token has already been used in another resource request.
//
-// It is best practice for client tokens to be unique for each resource operation
+// It's best practice for client tokens to be unique for each resource operation
// request. However, client token expire after 36 hours.
type ClientTokenConflictException struct {
_ struct{} `type:"structure"`
@@ -1531,7 +1531,7 @@ type CreateResourceInput struct {
// For more information about the properties of a specific resource, refer to
// the related topic for the resource in the Resource and property types reference
// (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-template-resource-type-ref.html)
- // in the Amazon Web Services CloudFormation Users Guide.
+ // in the CloudFormation Users Guide.
//
// DesiredState is a sensitive parameter and its value will be
// replaced with "sensitive" in string returned by CreateResourceInput's
@@ -1541,9 +1541,9 @@ type CreateResourceInput struct {
DesiredState *string `min:"1" type:"string" required:"true" sensitive:"true"`
// The Amazon Resource Name (ARN) of the Identity and Access Management (IAM)
- // for Cloud Control API to use when performing this resource operation. The
- // role specified must have the permissions required for this operation. The
- // necessary permissions for each event handler are defined in the handlers
+ // role for Cloud Control API to use when performing this resource operation.
+ // The role specified must have the permissions required for this operation.
+ // The necessary permissions for each event handler are defined in the handlers
// (https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/resource-type-schema.html#schema-properties-handlers)
// section of the resource type definition schema (https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/resource-type-schema.html).
//
@@ -1718,9 +1718,9 @@ type DeleteResourceInput struct {
Identifier *string `min:"1" type:"string" required:"true"`
// The Amazon Resource Name (ARN) of the Identity and Access Management (IAM)
- // for Cloud Control API to use when performing this resource operation. The
- // role specified must have the permissions required for this operation. The
- // necessary permissions for each event handler are defined in the handlers
+ // role for Cloud Control API to use when performing this resource operation.
+ // The role specified must have the permissions required for this operation.
+ // The necessary permissions for each event handler are defined in the handlers
// (https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/resource-type-schema.html#schema-properties-handlers)
// section of the resource type definition schema (https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/resource-type-schema.html).
//
@@ -1857,7 +1857,7 @@ func (s *DeleteResourceOutput) SetProgressEvent(v *ProgressEvent) *DeleteResourc
}
// The resource handler has returned that the downstream service generated an
-// error that does not map to any other handler error code.
+// error that doesn't map to any other handler error code.
type GeneralServiceException struct {
_ struct{} `type:"structure"`
RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
@@ -1943,9 +1943,9 @@ type GetResourceInput struct {
Identifier *string `min:"1" type:"string" required:"true"`
// The Amazon Resource Name (ARN) of the Identity and Access Management (IAM)
- // for Cloud Control API to use when performing this resource operation. The
- // role specified must have the permissions required for this operation. The
- // necessary permissions for each event handler are defined in the handlers
+ // role for Cloud Control API to use when performing this resource operation.
+ // The role specified must have the permissions required for this operation.
+ // The necessary permissions for each event handler are defined in the handlers
// (https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/resource-type-schema.html#schema-properties-handlers)
// section of the resource type definition schema (https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/resource-type-schema.html).
//
@@ -2540,12 +2540,7 @@ func (s *ListResourceRequestsOutput) SetResourceRequestStatusSummaries(v []*Prog
type ListResourcesInput struct {
_ struct{} `type:"structure"`
- // The maximum number of results to be returned with a single call. If the number
- // of available results exceeds this maximum, the response includes a NextToken
- // value that you can assign to the NextToken request parameter to get the next
- // set of results.
- //
- // The default is 20.
+ // Reserved.
MaxResults *int64 `min:"1" type:"integer"`
// If the previous paginated request didn't return all of the remaining results,
@@ -2563,9 +2558,9 @@ type ListResourcesInput struct {
ResourceModel *string `min:"1" type:"string" sensitive:"true"`
// The Amazon Resource Name (ARN) of the Identity and Access Management (IAM)
- // for Cloud Control API to use when performing this resource operation. The
- // role specified must have the permissions required for this operation. The
- // necessary permissions for each event handler are defined in the handlers
+ // role for Cloud Control API to use when performing this resource operation.
+ // The role specified must have the permissions required for this operation.
+ // The necessary permissions for each event handler are defined in the handlers
// (https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/resource-type-schema.html#schema-properties-handlers)
// section of the resource type definition schema (https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/resource-type-schema.html).
//
@@ -2725,7 +2720,7 @@ func (s *ListResourcesOutput) SetTypeName(v string) *ListResourcesOutput {
return s
}
-// The resource handler has returned that the request could not be completed
+// The resource handler has returned that the request couldn't be completed
// due to networking issues, such as a failure to receive a response from the
// server.
type NetworkFailureException struct {
@@ -2857,7 +2852,7 @@ func (s *NotStabilizedException) RequestID() string {
}
// One or more properties included in this resource operation are defined as
-// create-only, and therefore cannot be updated.
+// create-only, and therefore can't be updated.
type NotUpdatableException struct {
_ struct{} `type:"structure"`
RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
@@ -2921,7 +2916,7 @@ func (s *NotUpdatableException) RequestID() string {
return s.RespMetadata.RequestID
}
-// Cloud Control API has not received a valid response from the resource handler,
+// Cloud Control API hasn't received a valid response from the resource handler,
// due to a configuration error. This includes issues such as the resource handler
// returning an invalid response, or timing out.
type PrivateTypeException struct {
@@ -3013,7 +3008,7 @@ type ProgressEvent struct {
// The current status of the resource operation request.
//
- // * PENDING: The resource operation has not yet started.
+ // * PENDING: The resource operation hasn't yet started.
//
// * IN_PROGRESS: The resource operation is currently in progress.
//
@@ -3130,7 +3125,7 @@ func (s *ProgressEvent) SetTypeName(v string) *ProgressEvent {
return s
}
-// A resource operation with the specified request token cannot be found.
+// A resource operation with the specified request token can't be found.
type RequestTokenNotFoundException struct {
_ struct{} `type:"structure"`
RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
@@ -3195,7 +3190,7 @@ func (s *RequestTokenNotFoundException) RequestID() string {
}
// The resource is temporarily unavailable to be acted upon. For example, if
-// the resource is currently undergoing an operation and cannot be acted upon
+// the resource is currently undergoing an operation and can't be acted upon
// until that operation is finished.
type ResourceConflictException struct {
_ struct{} `type:"structure"`
@@ -3308,7 +3303,7 @@ func (s *ResourceDescription) SetProperties(v string) *ResourceDescription {
return s
}
-// A resource with the specified identifier cannot be found.
+// A resource with the specified identifier can't be found.
type ResourceNotFoundException struct {
_ struct{} `type:"structure"`
RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
@@ -3380,14 +3375,13 @@ type ResourceRequestStatusFilter struct {
//
// * PENDING: The operation has been requested, but not yet initiated.
//
- // * IN_PROGRESS: The operation is currently in progress.
+ // * IN_PROGRESS: The operation is in progress.
//
- // * SUCCESS: The operation has successfully completed.
+ // * SUCCESS: The operation completed.
//
- // * FAILED: The operation has failed.
+ // * FAILED: The operation failed.
//
- // * CANCEL_IN_PROGRESS: The operation is currently in the process of being
- // canceled.
+ // * CANCEL_IN_PROGRESS: The operation is in the process of being canceled.
//
// * CANCEL_COMPLETE: The operation has been canceled.
OperationStatuses []*string `type:"list" enum:"OperationStatus"`
@@ -3620,7 +3614,7 @@ func (s *ThrottlingException) RequestID() string {
return s.RespMetadata.RequestID
}
-// The specified extension does not exist in the CloudFormation registry.
+// The specified extension doesn't exist in the CloudFormation registry.
type TypeNotFoundException struct {
_ struct{} `type:"structure"`
RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
@@ -3684,7 +3678,7 @@ func (s *TypeNotFoundException) RequestID() string {
return s.RespMetadata.RequestID
}
-// The specified resource does not support this resource operation.
+// The specified resource doesn't support this resource operation.
type UnsupportedActionException struct {
_ struct{} `type:"structure"`
RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
@@ -3799,9 +3793,9 @@ type UpdateResourceInput struct {
PatchDocument *string `min:"1" type:"string" required:"true" sensitive:"true"`
// The Amazon Resource Name (ARN) of the Identity and Access Management (IAM)
- // for Cloud Control API to use when performing this resource operation. The
- // role specified must have the permissions required for this operation. The
- // necessary permissions for each event handler are defined in the handlers
+ // role for Cloud Control API to use when performing this resource operation.
+ // The role specified must have the permissions required for this operation.
+ // The necessary permissions for each event handler are defined in the handlers
// (https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/resource-type-schema.html#schema-properties-handlers)
// section of the resource type definition schema (https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/resource-type-schema.html).
//
diff --git a/service/cloudcontrolapi/doc.go b/service/cloudcontrolapi/doc.go
index cafc4d6506e..e918b8cbde7 100644
--- a/service/cloudcontrolapi/doc.go
+++ b/service/cloudcontrolapi/doc.go
@@ -3,14 +3,6 @@
// Package cloudcontrolapi provides the client and types for making API
// requests to AWS Cloud Control API.
//
-// Use Amazon Web Services Cloud Control API to create, read, update, delete,
-// and list (CRUD-L) your cloud resources that belong to a wide range of services--both
-// Amazon Web Services and third-party. With the Cloud Control API standardized
-// set of application programming interfaces (APIs), you can perform CRUD-L
-// operations on any supported resources in your Amazon Web Services account.
-// Using Cloud Control API, you won't have to generate code or scripts specific
-// to each individual service responsible for those resources.
-//
// For more information about Amazon Web Services Cloud Control API, see the
// Amazon Web Services Cloud Control API User Guide (https://docs.aws.amazon.com/cloudcontrolapi/latest/userguide/what-is-cloudcontrolapi.html).
//
diff --git a/service/cloudcontrolapi/errors.go b/service/cloudcontrolapi/errors.go
index 1991518f616..6e2770928b4 100644
--- a/service/cloudcontrolapi/errors.go
+++ b/service/cloudcontrolapi/errors.go
@@ -19,7 +19,7 @@ const (
//
// The specified client token has already been used in another resource request.
//
- // It is best practice for client tokens to be unique for each resource operation
+ // It's best practice for client tokens to be unique for each resource operation
// request. However, client token expire after 36 hours.
ErrCodeClientTokenConflictException = "ClientTokenConflictException"
@@ -39,7 +39,7 @@ const (
// "GeneralServiceException".
//
// The resource handler has returned that the downstream service generated an
- // error that does not map to any other handler error code.
+ // error that doesn't map to any other handler error code.
ErrCodeGeneralServiceException = "GeneralServiceException"
// ErrCodeHandlerFailureException for service response error code
@@ -73,7 +73,7 @@ const (
// ErrCodeNetworkFailureException for service response error code
// "NetworkFailureException".
//
- // The resource handler has returned that the request could not be completed
+ // The resource handler has returned that the request couldn't be completed
// due to networking issues, such as a failure to receive a response from the
// server.
ErrCodeNetworkFailureException = "NetworkFailureException"
@@ -89,13 +89,13 @@ const (
// "NotUpdatableException".
//
// One or more properties included in this resource operation are defined as
- // create-only, and therefore cannot be updated.
+ // create-only, and therefore can't be updated.
ErrCodeNotUpdatableException = "NotUpdatableException"
// ErrCodePrivateTypeException for service response error code
// "PrivateTypeException".
//
- // Cloud Control API has not received a valid response from the resource handler,
+ // Cloud Control API hasn't received a valid response from the resource handler,
// due to a configuration error. This includes issues such as the resource handler
// returning an invalid response, or timing out.
ErrCodePrivateTypeException = "PrivateTypeException"
@@ -103,21 +103,21 @@ const (
// ErrCodeRequestTokenNotFoundException for service response error code
// "RequestTokenNotFoundException".
//
- // A resource operation with the specified request token cannot be found.
+ // A resource operation with the specified request token can't be found.
ErrCodeRequestTokenNotFoundException = "RequestTokenNotFoundException"
// ErrCodeResourceConflictException for service response error code
// "ResourceConflictException".
//
// The resource is temporarily unavailable to be acted upon. For example, if
- // the resource is currently undergoing an operation and cannot be acted upon
+ // the resource is currently undergoing an operation and can't be acted upon
// until that operation is finished.
ErrCodeResourceConflictException = "ResourceConflictException"
// ErrCodeResourceNotFoundException for service response error code
// "ResourceNotFoundException".
//
- // A resource with the specified identifier cannot be found.
+ // A resource with the specified identifier can't be found.
ErrCodeResourceNotFoundException = "ResourceNotFoundException"
// ErrCodeServiceInternalErrorException for service response error code
@@ -143,13 +143,13 @@ const (
// ErrCodeTypeNotFoundException for service response error code
// "TypeNotFoundException".
//
- // The specified extension does not exist in the CloudFormation registry.
+ // The specified extension doesn't exist in the CloudFormation registry.
ErrCodeTypeNotFoundException = "TypeNotFoundException"
// ErrCodeUnsupportedActionException for service response error code
// "UnsupportedActionException".
//
- // The specified resource does not support this resource operation.
+ // The specified resource doesn't support this resource operation.
ErrCodeUnsupportedActionException = "UnsupportedActionException"
)
diff --git a/service/gluedatabrew/api.go b/service/gluedatabrew/api.go
index 9d43119d672..e005df648e5 100644
--- a/service/gluedatabrew/api.go
+++ b/service/gluedatabrew/api.go
@@ -6686,7 +6686,7 @@ func (s *Dataset) SetTags(v map[string]*string) *Dataset {
return s
}
-// Represents a dataset paramater that defines type and conditions for a parameter
+// Represents a dataset parameter that defines type and conditions for a parameter
// in the Amazon S3 path of the dataset.
type DatasetParameter struct {
_ struct{} `type:"structure"`
@@ -9087,7 +9087,7 @@ type FilesLimit struct {
// A criteria to use for Amazon S3 files sorting before their selection. By
// default uses DESCENDING order, i.e. most recent files are selected first.
- // Anotherpossible value is ASCENDING.
+ // Another possible value is ASCENDING.
Order *string `type:"string" enum:"Order"`
// A criteria to use for Amazon S3 files sorting before their selection. By
@@ -12099,7 +12099,7 @@ type Rule struct {
// actual value or a column name. These values are defined in the SubstitutionMap.
// If a CheckExpression starts with a column reference, then ColumnSelectors
// in the rule should be null. If ColumnSelectors has been defined, then there
- // should be no columnn reference in the left side of a condition, for example,
+ // should be no column reference in the left side of a condition, for example,
// is_between :val1 and :val2.
//
// For more information, see Available checks (https://docs.aws.amazon.com/databrew/latest/dg/profile.data-quality-available-checks.html)
@@ -14950,6 +14950,9 @@ const (
// InputFormatExcel is a InputFormat enum value
InputFormatExcel = "EXCEL"
+
+ // InputFormatOrc is a InputFormat enum value
+ InputFormatOrc = "ORC"
)
// InputFormat_Values returns all elements of the InputFormat enum
@@ -14959,6 +14962,7 @@ func InputFormat_Values() []string {
InputFormatJson,
InputFormatParquet,
InputFormatExcel,
+ InputFormatOrc,
}
}
diff --git a/service/managedgrafana/api.go b/service/managedgrafana/api.go
index cd713571202..37a1dc0633f 100644
--- a/service/managedgrafana/api.go
+++ b/service/managedgrafana/api.go
@@ -10,6 +10,7 @@ import (
"github.com/aws/aws-sdk-go/aws/awsutil"
"github.com/aws/aws-sdk-go/aws/request"
"github.com/aws/aws-sdk-go/private/protocol"
+ "github.com/aws/aws-sdk-go/private/protocol/restjson"
)
const opAssociateLicense = "AssociateLicense"
@@ -725,6 +726,99 @@ func (c *ManagedGrafana) ListPermissionsPagesWithContext(ctx aws.Context, input
return p.Err()
}
+const opListTagsForResource = "ListTagsForResource"
+
+// ListTagsForResourceRequest generates a "aws/request.Request" representing the
+// client's request for the ListTagsForResource operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See ListTagsForResource for more information on using the ListTagsForResource
+// API call, and error handling.
+//
+// This method is useful when you want to inject custom logic or configuration
+// into the SDK's request lifecycle. Such as custom headers, or retry logic.
+//
+//
+// // Example sending a request using the ListTagsForResourceRequest method.
+// req, resp := client.ListTagsForResourceRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/grafana-2020-08-18/ListTagsForResource
+func (c *ManagedGrafana) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req *request.Request, output *ListTagsForResourceOutput) {
+ op := &request.Operation{
+ Name: opListTagsForResource,
+ HTTPMethod: "GET",
+ HTTPPath: "/tags/{resourceArn}",
+ }
+
+ if input == nil {
+ input = &ListTagsForResourceInput{}
+ }
+
+ output = &ListTagsForResourceOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// ListTagsForResource API operation for Amazon Managed Grafana.
+//
+// The ListTagsForResource operation returns the tags that are associated with
+// the Amazon Managed Service for Grafana resource specified by the resourceArn.
+// Currently, the only resource that can be tagged is a workspace.
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for Amazon Managed Grafana's
+// API operation ListTagsForResource for usage and error information.
+//
+// Returned Error Types:
+// * ResourceNotFoundException
+// The request references a resource that does not exist.
+//
+// * ThrottlingException
+// The request was denied because of request throttling. Retry the request.
+//
+// * ValidationException
+// The value of a parameter in the request caused an error.
+//
+// * AccessDeniedException
+// You do not have sufficient permissions to perform this action.
+//
+// * InternalServerException
+// Unexpected error while processing the request. Retry the request.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/grafana-2020-08-18/ListTagsForResource
+func (c *ManagedGrafana) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) {
+ req, out := c.ListTagsForResourceRequest(input)
+ return out, req.Send()
+}
+
+// ListTagsForResourceWithContext is the same as ListTagsForResource with the addition of
+// the ability to pass a context and additional request options.
+//
+// See ListTagsForResource for details on how to use this API operation.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *ManagedGrafana) ListTagsForResourceWithContext(ctx aws.Context, input *ListTagsForResourceInput, opts ...request.Option) (*ListTagsForResourceOutput, error) {
+ req, out := c.ListTagsForResourceRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
const opListWorkspaces = "ListWorkspaces"
// ListWorkspacesRequest generates a "aws/request.Request" representing the
@@ -870,6 +964,197 @@ func (c *ManagedGrafana) ListWorkspacesPagesWithContext(ctx aws.Context, input *
return p.Err()
}
+const opTagResource = "TagResource"
+
+// TagResourceRequest generates a "aws/request.Request" representing the
+// client's request for the TagResource operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See TagResource for more information on using the TagResource
+// API call, and error handling.
+//
+// This method is useful when you want to inject custom logic or configuration
+// into the SDK's request lifecycle. Such as custom headers, or retry logic.
+//
+//
+// // Example sending a request using the TagResourceRequest method.
+// req, resp := client.TagResourceRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/grafana-2020-08-18/TagResource
+func (c *ManagedGrafana) TagResourceRequest(input *TagResourceInput) (req *request.Request, output *TagResourceOutput) {
+ op := &request.Operation{
+ Name: opTagResource,
+ HTTPMethod: "POST",
+ HTTPPath: "/tags/{resourceArn}",
+ }
+
+ if input == nil {
+ input = &TagResourceInput{}
+ }
+
+ output = &TagResourceOutput{}
+ req = c.newRequest(op, input, output)
+ req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
+ return
+}
+
+// TagResource API operation for Amazon Managed Grafana.
+//
+// The TagResource operation associates tags with an Amazon Managed Grafana
+// resource. Currently, the only resource that can be tagged is workspaces.
+//
+// If you specify a new tag key for the resource, this tag is appended to the
+// list of tags associated with the resource. If you specify a tag key that
+// is already associated with the resource, the new tag value that you specify
+// replaces the previous value for that tag.
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for Amazon Managed Grafana's
+// API operation TagResource for usage and error information.
+//
+// Returned Error Types:
+// * ResourceNotFoundException
+// The request references a resource that does not exist.
+//
+// * ThrottlingException
+// The request was denied because of request throttling. Retry the request.
+//
+// * ValidationException
+// The value of a parameter in the request caused an error.
+//
+// * AccessDeniedException
+// You do not have sufficient permissions to perform this action.
+//
+// * InternalServerException
+// Unexpected error while processing the request. Retry the request.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/grafana-2020-08-18/TagResource
+func (c *ManagedGrafana) TagResource(input *TagResourceInput) (*TagResourceOutput, error) {
+ req, out := c.TagResourceRequest(input)
+ return out, req.Send()
+}
+
+// TagResourceWithContext is the same as TagResource with the addition of
+// the ability to pass a context and additional request options.
+//
+// See TagResource for details on how to use this API operation.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *ManagedGrafana) TagResourceWithContext(ctx aws.Context, input *TagResourceInput, opts ...request.Option) (*TagResourceOutput, error) {
+ req, out := c.TagResourceRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+const opUntagResource = "UntagResource"
+
+// UntagResourceRequest generates a "aws/request.Request" representing the
+// client's request for the UntagResource operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See UntagResource for more information on using the UntagResource
+// API call, and error handling.
+//
+// This method is useful when you want to inject custom logic or configuration
+// into the SDK's request lifecycle. Such as custom headers, or retry logic.
+//
+//
+// // Example sending a request using the UntagResourceRequest method.
+// req, resp := client.UntagResourceRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/grafana-2020-08-18/UntagResource
+func (c *ManagedGrafana) UntagResourceRequest(input *UntagResourceInput) (req *request.Request, output *UntagResourceOutput) {
+ op := &request.Operation{
+ Name: opUntagResource,
+ HTTPMethod: "DELETE",
+ HTTPPath: "/tags/{resourceArn}",
+ }
+
+ if input == nil {
+ input = &UntagResourceInput{}
+ }
+
+ output = &UntagResourceOutput{}
+ req = c.newRequest(op, input, output)
+ req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
+ return
+}
+
+// UntagResource API operation for Amazon Managed Grafana.
+//
+// The UntagResource operation removes the association of the tag with the Amazon
+// Managed Grafana resource.
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for Amazon Managed Grafana's
+// API operation UntagResource for usage and error information.
+//
+// Returned Error Types:
+// * ResourceNotFoundException
+// The request references a resource that does not exist.
+//
+// * ThrottlingException
+// The request was denied because of request throttling. Retry the request.
+//
+// * ValidationException
+// The value of a parameter in the request caused an error.
+//
+// * AccessDeniedException
+// You do not have sufficient permissions to perform this action.
+//
+// * InternalServerException
+// Unexpected error while processing the request. Retry the request.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/grafana-2020-08-18/UntagResource
+func (c *ManagedGrafana) UntagResource(input *UntagResourceInput) (*UntagResourceOutput, error) {
+ req, out := c.UntagResourceRequest(input)
+ return out, req.Send()
+}
+
+// UntagResourceWithContext is the same as UntagResource with the addition of
+// the ability to pass a context and additional request options.
+//
+// See UntagResource for details on how to use this API operation.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *ManagedGrafana) UntagResourceWithContext(ctx aws.Context, input *UntagResourceInput, opts ...request.Option) (*UntagResourceOutput, error) {
+ req, out := c.UntagResourceRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
const opUpdatePermissions = "UpdatePermissions"
// UpdatePermissionsRequest generates a "aws/request.Request" representing the
@@ -1681,9 +1966,11 @@ type CreateWorkspaceInput struct {
// String and GoString methods.
OrganizationRoleName *string `locationName:"organizationRoleName" min:"1" type:"string" sensitive:"true"`
- // If you specify Service Managed, Amazon Managed Grafana automatically creates
- // the IAM roles and provisions the permissions that the workspace needs to
- // use Amazon Web Services data sources and notification channels.
+ // If you specify SERVICE_MANAGED on AWS Grafana console, Amazon Managed Grafana
+ // automatically creates the IAM roles and provisions the permissions that the
+ // workspace needs to use Amazon Web Services data sources and notification
+ // channels. In CLI mode, the permissionType SERVICE_MANAGED will not create
+ // the IAM role for you.
//
// If you specify CUSTOMER_MANAGED, you will manage those roles and permissions
// yourself. If you are creating this workspace in a member account of an organization
@@ -1692,7 +1979,7 @@ type CreateWorkspaceInput struct {
// you must choose CUSTOMER_MANAGED.
//
// For more information, see Amazon Managed Grafana permissions and policies
- // for Amazon Web Services data sources and notification channels (https://docs.aws.amazon.com/grafana/latest/userguide/AMG-manage-permissions.html)
+ // for Amazon Web Services data sources and notification channels (https://docs.aws.amazon.com/grafana/latest/userguide/AMG-manage-permissions.html).
//
// PermissionType is a required field
PermissionType *string `locationName:"permissionType" type:"string" required:"true" enum:"PermissionType"`
@@ -1701,6 +1988,9 @@ type CreateWorkspaceInput struct {
// be used for this workspace.
StackSetName *string `locationName:"stackSetName" type:"string"`
+ // The list of tags associated with the workspace.
+ Tags map[string]*string `locationName:"tags" type:"map"`
+
// Specify the Amazon Web Services data sources that you want to be queried
// in this workspace. Specifying these data sources here enables Amazon Managed
// Grafana to create IAM roles and permissions that allow Amazon Managed Grafana
@@ -1715,6 +2005,8 @@ type CreateWorkspaceInput struct {
// A description for the workspace. This is used only to help you identify this
// workspace.
//
+ // Pattern: ^[\\p{L}\\p{Z}\\p{N}\\p{P}]{0,2048}$
+ //
// WorkspaceDescription is a sensitive parameter and its value will be
// replaced with "sensitive" in string returned by CreateWorkspaceInput's
// String and GoString methods.
@@ -1744,10 +2036,8 @@ type CreateWorkspaceInput struct {
// The workspace needs an IAM role that grants permissions to the Amazon Web
// Services resources that the workspace will view data from. If you already
- // have a role that you want to use, specify it here. If you omit this field
- // and you specify some Amazon Web Services resources in workspaceDataSources
- // or workspaceNotificationDestinations, a new IAM role with the necessary permissions
- // is automatically created.
+ // have a role that you want to use, specify it here. The permission type should
+ // be set to CUSTOMER_MANAGED.
//
// WorkspaceRoleArn is a sensitive parameter and its value will be
// replaced with "sensitive" in string returned by CreateWorkspaceInput's
@@ -1834,6 +2124,12 @@ func (s *CreateWorkspaceInput) SetStackSetName(v string) *CreateWorkspaceInput {
return s
}
+// SetTags sets the Tags field's value.
+func (s *CreateWorkspaceInput) SetTags(v map[string]*string) *CreateWorkspaceInput {
+ s.Tags = v
+ return s
+}
+
// SetWorkspaceDataSources sets the WorkspaceDataSources field's value.
func (s *CreateWorkspaceInput) SetWorkspaceDataSources(v []*string) *CreateWorkspaceInput {
s.WorkspaceDataSources = v
@@ -2523,6 +2819,86 @@ func (s *ListPermissionsOutput) SetPermissions(v []*PermissionEntry) *ListPermis
return s
}
+type ListTagsForResourceInput struct {
+ _ struct{} `type:"structure" nopayload:"true"`
+
+ // The ARN of the resource the list of tags are associated with.
+ //
+ // ResourceArn is a required field
+ ResourceArn *string `location:"uri" locationName:"resourceArn" type:"string" required:"true"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s ListTagsForResourceInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s ListTagsForResourceInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *ListTagsForResourceInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "ListTagsForResourceInput"}
+ if s.ResourceArn == nil {
+ invalidParams.Add(request.NewErrParamRequired("ResourceArn"))
+ }
+ if s.ResourceArn != nil && len(*s.ResourceArn) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetResourceArn sets the ResourceArn field's value.
+func (s *ListTagsForResourceInput) SetResourceArn(v string) *ListTagsForResourceInput {
+ s.ResourceArn = &v
+ return s
+}
+
+type ListTagsForResourceOutput struct {
+ _ struct{} `type:"structure"`
+
+ // The list of tags that are associated with the resource.
+ Tags map[string]*string `locationName:"tags" type:"map"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s ListTagsForResourceOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s ListTagsForResourceOutput) GoString() string {
+ return s.String()
+}
+
+// SetTags sets the Tags field's value.
+func (s *ListTagsForResourceOutput) SetTags(v map[string]*string) *ListTagsForResourceOutput {
+ s.Tags = v
+ return s
+}
+
type ListWorkspacesInput struct {
_ struct{} `type:"structure" nopayload:"true"`
@@ -3013,6 +3389,93 @@ func (s *ServiceQuotaExceededException) RequestID() string {
return s.RespMetadata.RequestID
}
+type TagResourceInput struct {
+ _ struct{} `type:"structure"`
+
+ // The ARN of the resource the tag is associated with.
+ //
+ // ResourceArn is a required field
+ ResourceArn *string `location:"uri" locationName:"resourceArn" type:"string" required:"true"`
+
+ // The list of tag keys and values to associate with the resource. You can associate
+ // tag keys only, tags (key and values) only or a combination of tag keys and
+ // tags.
+ //
+ // Tags is a required field
+ Tags map[string]*string `locationName:"tags" type:"map" required:"true"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s TagResourceInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s TagResourceInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *TagResourceInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "TagResourceInput"}
+ if s.ResourceArn == nil {
+ invalidParams.Add(request.NewErrParamRequired("ResourceArn"))
+ }
+ if s.ResourceArn != nil && len(*s.ResourceArn) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1))
+ }
+ if s.Tags == nil {
+ invalidParams.Add(request.NewErrParamRequired("Tags"))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetResourceArn sets the ResourceArn field's value.
+func (s *TagResourceInput) SetResourceArn(v string) *TagResourceInput {
+ s.ResourceArn = &v
+ return s
+}
+
+// SetTags sets the Tags field's value.
+func (s *TagResourceInput) SetTags(v map[string]*string) *TagResourceInput {
+ s.Tags = v
+ return s
+}
+
+type TagResourceOutput struct {
+ _ struct{} `type:"structure"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s TagResourceOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s TagResourceOutput) GoString() string {
+ return s.String()
+}
+
// The request was denied because of request throttling. Retry the request.
type ThrottlingException struct {
_ struct{} `type:"structure"`
@@ -3087,6 +3550,91 @@ func (s *ThrottlingException) RequestID() string {
return s.RespMetadata.RequestID
}
+type UntagResourceInput struct {
+ _ struct{} `type:"structure" nopayload:"true"`
+
+ // The ARN of the resource the tag association is removed from.
+ //
+ // ResourceArn is a required field
+ ResourceArn *string `location:"uri" locationName:"resourceArn" type:"string" required:"true"`
+
+ // The key values of the tag to be removed from the resource.
+ //
+ // TagKeys is a required field
+ TagKeys []*string `location:"querystring" locationName:"tagKeys" type:"list" required:"true"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s UntagResourceInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s UntagResourceInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *UntagResourceInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "UntagResourceInput"}
+ if s.ResourceArn == nil {
+ invalidParams.Add(request.NewErrParamRequired("ResourceArn"))
+ }
+ if s.ResourceArn != nil && len(*s.ResourceArn) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1))
+ }
+ if s.TagKeys == nil {
+ invalidParams.Add(request.NewErrParamRequired("TagKeys"))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetResourceArn sets the ResourceArn field's value.
+func (s *UntagResourceInput) SetResourceArn(v string) *UntagResourceInput {
+ s.ResourceArn = &v
+ return s
+}
+
+// SetTagKeys sets the TagKeys field's value.
+func (s *UntagResourceInput) SetTagKeys(v []*string) *UntagResourceInput {
+ s.TagKeys = v
+ return s
+}
+
+type UntagResourceOutput struct {
+ _ struct{} `type:"structure"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s UntagResourceOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s UntagResourceOutput) GoString() string {
+ return s.String()
+}
+
// A structure containing information about one error encountered while performing
// an UpdatePermissions (https://docs.aws.amazon.com/grafana/latest/APIReference/API_UpdatePermissions.html)
// operation.
@@ -3694,6 +4242,8 @@ type User struct {
// The ID of the user or group.
//
+ // Pattern: ^([0-9a-fA-F]{10}-|)[A-Fa-f0-9]{8}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{12}$
+ //
// Id is a required field
Id *string `locationName:"id" min:"1" type:"string" required:"true"`
@@ -3995,6 +4545,9 @@ type WorkspaceDescription struct {
// Status is a required field
Status *string `locationName:"status" type:"string" required:"true" enum:"WorkspaceStatus"`
+ // The list of tags associated with the workspace.
+ Tags map[string]*string `locationName:"tags" type:"map"`
+
// The IAM role that grants permissions to the Amazon Web Services resources
// that the workspace will view data from. This role must already exist.
//
@@ -4142,6 +4695,12 @@ func (s *WorkspaceDescription) SetStatus(v string) *WorkspaceDescription {
return s
}
+// SetTags sets the Tags field's value.
+func (s *WorkspaceDescription) SetTags(v map[string]*string) *WorkspaceDescription {
+ s.Tags = v
+ return s
+}
+
// SetWorkspaceRoleArn sets the WorkspaceRoleArn field's value.
func (s *WorkspaceDescription) SetWorkspaceRoleArn(v string) *WorkspaceDescription {
s.WorkspaceRoleArn = &v
@@ -4206,6 +4765,9 @@ type WorkspaceSummary struct {
//
// Status is a required field
Status *string `locationName:"status" type:"string" required:"true" enum:"WorkspaceStatus"`
+
+ // The list of tags associated with the workspace.
+ Tags map[string]*string `locationName:"tags" type:"map"`
}
// String returns the string representation.
@@ -4286,6 +4848,12 @@ func (s *WorkspaceSummary) SetStatus(v string) *WorkspaceSummary {
return s
}
+// SetTags sets the Tags field's value.
+func (s *WorkspaceSummary) SetTags(v map[string]*string) *WorkspaceSummary {
+ s.Tags = v
+ return s
+}
+
const (
// AccountAccessTypeCurrentAccount is a AccountAccessType enum value
AccountAccessTypeCurrentAccount = "CURRENT_ACCOUNT"
@@ -4336,6 +4904,12 @@ const (
// DataSourceTypeSitewise is a DataSourceType enum value
DataSourceTypeSitewise = "SITEWISE"
+
+ // DataSourceTypeAthena is a DataSourceType enum value
+ DataSourceTypeAthena = "ATHENA"
+
+ // DataSourceTypeRedshift is a DataSourceType enum value
+ DataSourceTypeRedshift = "REDSHIFT"
)
// DataSourceType_Values returns all elements of the DataSourceType enum
@@ -4347,6 +4921,8 @@ func DataSourceType_Values() []string {
DataSourceTypeXray,
DataSourceTypeTimestream,
DataSourceTypeSitewise,
+ DataSourceTypeAthena,
+ DataSourceTypeRedshift,
}
}
diff --git a/service/managedgrafana/managedgrafanaiface/interface.go b/service/managedgrafana/managedgrafanaiface/interface.go
index 4922a9daa32..e5294f5c049 100644
--- a/service/managedgrafana/managedgrafanaiface/interface.go
+++ b/service/managedgrafana/managedgrafanaiface/interface.go
@@ -91,6 +91,10 @@ type ManagedGrafanaAPI interface {
ListPermissionsPages(*managedgrafana.ListPermissionsInput, func(*managedgrafana.ListPermissionsOutput, bool) bool) error
ListPermissionsPagesWithContext(aws.Context, *managedgrafana.ListPermissionsInput, func(*managedgrafana.ListPermissionsOutput, bool) bool, ...request.Option) error
+ ListTagsForResource(*managedgrafana.ListTagsForResourceInput) (*managedgrafana.ListTagsForResourceOutput, error)
+ ListTagsForResourceWithContext(aws.Context, *managedgrafana.ListTagsForResourceInput, ...request.Option) (*managedgrafana.ListTagsForResourceOutput, error)
+ ListTagsForResourceRequest(*managedgrafana.ListTagsForResourceInput) (*request.Request, *managedgrafana.ListTagsForResourceOutput)
+
ListWorkspaces(*managedgrafana.ListWorkspacesInput) (*managedgrafana.ListWorkspacesOutput, error)
ListWorkspacesWithContext(aws.Context, *managedgrafana.ListWorkspacesInput, ...request.Option) (*managedgrafana.ListWorkspacesOutput, error)
ListWorkspacesRequest(*managedgrafana.ListWorkspacesInput) (*request.Request, *managedgrafana.ListWorkspacesOutput)
@@ -98,6 +102,14 @@ type ManagedGrafanaAPI interface {
ListWorkspacesPages(*managedgrafana.ListWorkspacesInput, func(*managedgrafana.ListWorkspacesOutput, bool) bool) error
ListWorkspacesPagesWithContext(aws.Context, *managedgrafana.ListWorkspacesInput, func(*managedgrafana.ListWorkspacesOutput, bool) bool, ...request.Option) error
+ TagResource(*managedgrafana.TagResourceInput) (*managedgrafana.TagResourceOutput, error)
+ TagResourceWithContext(aws.Context, *managedgrafana.TagResourceInput, ...request.Option) (*managedgrafana.TagResourceOutput, error)
+ TagResourceRequest(*managedgrafana.TagResourceInput) (*request.Request, *managedgrafana.TagResourceOutput)
+
+ UntagResource(*managedgrafana.UntagResourceInput) (*managedgrafana.UntagResourceOutput, error)
+ UntagResourceWithContext(aws.Context, *managedgrafana.UntagResourceInput, ...request.Option) (*managedgrafana.UntagResourceOutput, error)
+ UntagResourceRequest(*managedgrafana.UntagResourceInput) (*request.Request, *managedgrafana.UntagResourceOutput)
+
UpdatePermissions(*managedgrafana.UpdatePermissionsInput) (*managedgrafana.UpdatePermissionsOutput, error)
UpdatePermissionsWithContext(aws.Context, *managedgrafana.UpdatePermissionsInput, ...request.Option) (*managedgrafana.UpdatePermissionsOutput, error)
UpdatePermissionsRequest(*managedgrafana.UpdatePermissionsInput) (*request.Request, *managedgrafana.UpdatePermissionsOutput)
diff --git a/service/pinpointsmsvoicev2/api.go b/service/pinpointsmsvoicev2/api.go
new file mode 100644
index 00000000000..3b2a83b97f3
--- /dev/null
+++ b/service/pinpointsmsvoicev2/api.go
@@ -0,0 +1,14687 @@
+// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
+
+package pinpointsmsvoicev2
+
+import (
+ "fmt"
+ "time"
+
+ "github.com/aws/aws-sdk-go/aws"
+ "github.com/aws/aws-sdk-go/aws/awsutil"
+ "github.com/aws/aws-sdk-go/aws/request"
+ "github.com/aws/aws-sdk-go/private/protocol"
+ "github.com/aws/aws-sdk-go/private/protocol/jsonrpc"
+)
+
+const opAssociateOriginationIdentity = "AssociateOriginationIdentity"
+
+// AssociateOriginationIdentityRequest generates a "aws/request.Request" representing the
+// client's request for the AssociateOriginationIdentity operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See AssociateOriginationIdentity for more information on using the AssociateOriginationIdentity
+// API call, and error handling.
+//
+// This method is useful when you want to inject custom logic or configuration
+// into the SDK's request lifecycle. Such as custom headers, or retry logic.
+//
+//
+// // Example sending a request using the AssociateOriginationIdentityRequest method.
+// req, resp := client.AssociateOriginationIdentityRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-v2-2022-03-31/AssociateOriginationIdentity
+func (c *PinpointSMSVoiceV2) AssociateOriginationIdentityRequest(input *AssociateOriginationIdentityInput) (req *request.Request, output *AssociateOriginationIdentityOutput) {
+ op := &request.Operation{
+ Name: opAssociateOriginationIdentity,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ }
+
+ if input == nil {
+ input = &AssociateOriginationIdentityInput{}
+ }
+
+ output = &AssociateOriginationIdentityOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// AssociateOriginationIdentity API operation for Amazon Pinpoint SMS Voice V2.
+//
+// Associates the specified origination identity with a pool.
+//
+// If the origination identity is a phone number and is already associated with
+// another pool, an Error is returned. A sender ID can be associated with multiple
+// pools.
+//
+// If the origination identity configuration doesn't match the pool's configuration,
+// an Error is returned.
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for Amazon Pinpoint SMS Voice V2's
+// API operation AssociateOriginationIdentity for usage and error information.
+//
+// Returned Error Types:
+// * ServiceQuotaExceededException
+// The request would cause a service quota to be exceeded.
+//
+// * ThrottlingException
+// An error that occurred because too many requests were sent during a certain
+// amount of time.
+//
+// * AccessDeniedException
+// The request was denied because you don't have sufficient permissions to access
+// the resource.
+//
+// * ResourceNotFoundException
+// A requested resource couldn't be found.
+//
+// * ValidationException
+// A validation exception for a field.
+//
+// * ConflictException
+// Your request has conflicting operations. This can occur if you're trying
+// to perform more than one operation on the same resource at the same time
+// or it could be that the requested action isn't valid for the current state
+// or configuration of the resource.
+//
+// * InternalServerException
+// The API encountered an unexpected error and couldn't complete the request.
+// You might be able to successfully issue the request again in the future.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-v2-2022-03-31/AssociateOriginationIdentity
+func (c *PinpointSMSVoiceV2) AssociateOriginationIdentity(input *AssociateOriginationIdentityInput) (*AssociateOriginationIdentityOutput, error) {
+ req, out := c.AssociateOriginationIdentityRequest(input)
+ return out, req.Send()
+}
+
+// AssociateOriginationIdentityWithContext is the same as AssociateOriginationIdentity with the addition of
+// the ability to pass a context and additional request options.
+//
+// See AssociateOriginationIdentity for details on how to use this API operation.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *PinpointSMSVoiceV2) AssociateOriginationIdentityWithContext(ctx aws.Context, input *AssociateOriginationIdentityInput, opts ...request.Option) (*AssociateOriginationIdentityOutput, error) {
+ req, out := c.AssociateOriginationIdentityRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+const opCreateConfigurationSet = "CreateConfigurationSet"
+
+// CreateConfigurationSetRequest generates a "aws/request.Request" representing the
+// client's request for the CreateConfigurationSet operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See CreateConfigurationSet for more information on using the CreateConfigurationSet
+// API call, and error handling.
+//
+// This method is useful when you want to inject custom logic or configuration
+// into the SDK's request lifecycle. Such as custom headers, or retry logic.
+//
+//
+// // Example sending a request using the CreateConfigurationSetRequest method.
+// req, resp := client.CreateConfigurationSetRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-v2-2022-03-31/CreateConfigurationSet
+func (c *PinpointSMSVoiceV2) CreateConfigurationSetRequest(input *CreateConfigurationSetInput) (req *request.Request, output *CreateConfigurationSetOutput) {
+ op := &request.Operation{
+ Name: opCreateConfigurationSet,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ }
+
+ if input == nil {
+ input = &CreateConfigurationSetInput{}
+ }
+
+ output = &CreateConfigurationSetOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// CreateConfigurationSet API operation for Amazon Pinpoint SMS Voice V2.
+//
+// Creates a new configuration set. After you create the configuration set,
+// you can add one or more event destinations to it.
+//
+// A configuration set is a set of rules that you apply to the SMS and voice
+// messages that you send.
+//
+// When you send a message, you can optionally specify a single configuration
+// set.
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for Amazon Pinpoint SMS Voice V2's
+// API operation CreateConfigurationSet for usage and error information.
+//
+// Returned Error Types:
+// * ServiceQuotaExceededException
+// The request would cause a service quota to be exceeded.
+//
+// * ThrottlingException
+// An error that occurred because too many requests were sent during a certain
+// amount of time.
+//
+// * AccessDeniedException
+// The request was denied because you don't have sufficient permissions to access
+// the resource.
+//
+// * ValidationException
+// A validation exception for a field.
+//
+// * ConflictException
+// Your request has conflicting operations. This can occur if you're trying
+// to perform more than one operation on the same resource at the same time
+// or it could be that the requested action isn't valid for the current state
+// or configuration of the resource.
+//
+// * InternalServerException
+// The API encountered an unexpected error and couldn't complete the request.
+// You might be able to successfully issue the request again in the future.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-v2-2022-03-31/CreateConfigurationSet
+func (c *PinpointSMSVoiceV2) CreateConfigurationSet(input *CreateConfigurationSetInput) (*CreateConfigurationSetOutput, error) {
+ req, out := c.CreateConfigurationSetRequest(input)
+ return out, req.Send()
+}
+
+// CreateConfigurationSetWithContext is the same as CreateConfigurationSet with the addition of
+// the ability to pass a context and additional request options.
+//
+// See CreateConfigurationSet for details on how to use this API operation.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *PinpointSMSVoiceV2) CreateConfigurationSetWithContext(ctx aws.Context, input *CreateConfigurationSetInput, opts ...request.Option) (*CreateConfigurationSetOutput, error) {
+ req, out := c.CreateConfigurationSetRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+const opCreateEventDestination = "CreateEventDestination"
+
+// CreateEventDestinationRequest generates a "aws/request.Request" representing the
+// client's request for the CreateEventDestination operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See CreateEventDestination for more information on using the CreateEventDestination
+// API call, and error handling.
+//
+// This method is useful when you want to inject custom logic or configuration
+// into the SDK's request lifecycle. Such as custom headers, or retry logic.
+//
+//
+// // Example sending a request using the CreateEventDestinationRequest method.
+// req, resp := client.CreateEventDestinationRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-v2-2022-03-31/CreateEventDestination
+func (c *PinpointSMSVoiceV2) CreateEventDestinationRequest(input *CreateEventDestinationInput) (req *request.Request, output *CreateEventDestinationOutput) {
+ op := &request.Operation{
+ Name: opCreateEventDestination,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ }
+
+ if input == nil {
+ input = &CreateEventDestinationInput{}
+ }
+
+ output = &CreateEventDestinationOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// CreateEventDestination API operation for Amazon Pinpoint SMS Voice V2.
+//
+// Creates a new event destination in a configuration set.
+//
+// An event destination is a location where you send message events. The event
+// options are Amazon CloudWatch, Amazon Kinesis Data Firehose, or Amazon SNS.
+// For example, when a message is delivered successfully, you can send information
+// about that event to an event destination, or send notifications to endpoints
+// that are subscribed to an Amazon SNS topic.
+//
+// Each configuration set can contain between 0 and 5 event destinations. Each
+// event destination can contain a reference to a single destination, such as
+// a CloudWatch or Kinesis Data Firehose destination.
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for Amazon Pinpoint SMS Voice V2's
+// API operation CreateEventDestination for usage and error information.
+//
+// Returned Error Types:
+// * ServiceQuotaExceededException
+// The request would cause a service quota to be exceeded.
+//
+// * ThrottlingException
+// An error that occurred because too many requests were sent during a certain
+// amount of time.
+//
+// * AccessDeniedException
+// The request was denied because you don't have sufficient permissions to access
+// the resource.
+//
+// * ResourceNotFoundException
+// A requested resource couldn't be found.
+//
+// * ValidationException
+// A validation exception for a field.
+//
+// * ConflictException
+// Your request has conflicting operations. This can occur if you're trying
+// to perform more than one operation on the same resource at the same time
+// or it could be that the requested action isn't valid for the current state
+// or configuration of the resource.
+//
+// * InternalServerException
+// The API encountered an unexpected error and couldn't complete the request.
+// You might be able to successfully issue the request again in the future.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-v2-2022-03-31/CreateEventDestination
+func (c *PinpointSMSVoiceV2) CreateEventDestination(input *CreateEventDestinationInput) (*CreateEventDestinationOutput, error) {
+ req, out := c.CreateEventDestinationRequest(input)
+ return out, req.Send()
+}
+
+// CreateEventDestinationWithContext is the same as CreateEventDestination with the addition of
+// the ability to pass a context and additional request options.
+//
+// See CreateEventDestination for details on how to use this API operation.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *PinpointSMSVoiceV2) CreateEventDestinationWithContext(ctx aws.Context, input *CreateEventDestinationInput, opts ...request.Option) (*CreateEventDestinationOutput, error) {
+ req, out := c.CreateEventDestinationRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+const opCreateOptOutList = "CreateOptOutList"
+
+// CreateOptOutListRequest generates a "aws/request.Request" representing the
+// client's request for the CreateOptOutList operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See CreateOptOutList for more information on using the CreateOptOutList
+// API call, and error handling.
+//
+// This method is useful when you want to inject custom logic or configuration
+// into the SDK's request lifecycle. Such as custom headers, or retry logic.
+//
+//
+// // Example sending a request using the CreateOptOutListRequest method.
+// req, resp := client.CreateOptOutListRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-v2-2022-03-31/CreateOptOutList
+func (c *PinpointSMSVoiceV2) CreateOptOutListRequest(input *CreateOptOutListInput) (req *request.Request, output *CreateOptOutListOutput) {
+ op := &request.Operation{
+ Name: opCreateOptOutList,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ }
+
+ if input == nil {
+ input = &CreateOptOutListInput{}
+ }
+
+ output = &CreateOptOutListOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// CreateOptOutList API operation for Amazon Pinpoint SMS Voice V2.
+//
+// Creates a new opt-out list.
+//
+// If the opt-out list name already exists, an Error is returned.
+//
+// An opt-out list is a list of phone numbers that are opted out, meaning you
+// can't send SMS or voice messages to them. If end user replies with the keyword
+// "STOP," an entry for the phone number is added to the opt-out list. In addition
+// to STOP, your recipients can use any supported opt-out keyword, such as CANCEL
+// or OPTOUT. For a list of supported opt-out keywords, see SMS opt out (https://docs.aws.amazon.com/pinpoint/latest/userguide/channels-sms-manage.html#channels-sms-manage-optout)
+// in the Amazon Pinpoint User Guide.
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for Amazon Pinpoint SMS Voice V2's
+// API operation CreateOptOutList for usage and error information.
+//
+// Returned Error Types:
+// * ServiceQuotaExceededException
+// The request would cause a service quota to be exceeded.
+//
+// * ThrottlingException
+// An error that occurred because too many requests were sent during a certain
+// amount of time.
+//
+// * AccessDeniedException
+// The request was denied because you don't have sufficient permissions to access
+// the resource.
+//
+// * ValidationException
+// A validation exception for a field.
+//
+// * ConflictException
+// Your request has conflicting operations. This can occur if you're trying
+// to perform more than one operation on the same resource at the same time
+// or it could be that the requested action isn't valid for the current state
+// or configuration of the resource.
+//
+// * InternalServerException
+// The API encountered an unexpected error and couldn't complete the request.
+// You might be able to successfully issue the request again in the future.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-v2-2022-03-31/CreateOptOutList
+func (c *PinpointSMSVoiceV2) CreateOptOutList(input *CreateOptOutListInput) (*CreateOptOutListOutput, error) {
+ req, out := c.CreateOptOutListRequest(input)
+ return out, req.Send()
+}
+
+// CreateOptOutListWithContext is the same as CreateOptOutList with the addition of
+// the ability to pass a context and additional request options.
+//
+// See CreateOptOutList for details on how to use this API operation.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *PinpointSMSVoiceV2) CreateOptOutListWithContext(ctx aws.Context, input *CreateOptOutListInput, opts ...request.Option) (*CreateOptOutListOutput, error) {
+ req, out := c.CreateOptOutListRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+const opCreatePool = "CreatePool"
+
+// CreatePoolRequest generates a "aws/request.Request" representing the
+// client's request for the CreatePool operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See CreatePool for more information on using the CreatePool
+// API call, and error handling.
+//
+// This method is useful when you want to inject custom logic or configuration
+// into the SDK's request lifecycle. Such as custom headers, or retry logic.
+//
+//
+// // Example sending a request using the CreatePoolRequest method.
+// req, resp := client.CreatePoolRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-v2-2022-03-31/CreatePool
+func (c *PinpointSMSVoiceV2) CreatePoolRequest(input *CreatePoolInput) (req *request.Request, output *CreatePoolOutput) {
+ op := &request.Operation{
+ Name: opCreatePool,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ }
+
+ if input == nil {
+ input = &CreatePoolInput{}
+ }
+
+ output = &CreatePoolOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// CreatePool API operation for Amazon Pinpoint SMS Voice V2.
+//
+// Creates a new pool and associates the specified origination identity to the
+// pool. A pool can include one or more phone numbers and SenderIds that are
+// associated with your Amazon Web Services account.
+//
+// The new pool inherits its configuration from the specified origination identity.
+// This includes keywords, message type, opt-out list, two-way configuration,
+// and self-managed opt-out configuration. Deletion protection isn't inherited
+// from the origination identity and defaults to false.
+//
+// If the origination identity is a phone number and is already associated with
+// another pool, an Error is returned. A sender ID can be associated with multiple
+// pools.
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for Amazon Pinpoint SMS Voice V2's
+// API operation CreatePool for usage and error information.
+//
+// Returned Error Types:
+// * ServiceQuotaExceededException
+// The request would cause a service quota to be exceeded.
+//
+// * ThrottlingException
+// An error that occurred because too many requests were sent during a certain
+// amount of time.
+//
+// * AccessDeniedException
+// The request was denied because you don't have sufficient permissions to access
+// the resource.
+//
+// * ResourceNotFoundException
+// A requested resource couldn't be found.
+//
+// * ValidationException
+// A validation exception for a field.
+//
+// * ConflictException
+// Your request has conflicting operations. This can occur if you're trying
+// to perform more than one operation on the same resource at the same time
+// or it could be that the requested action isn't valid for the current state
+// or configuration of the resource.
+//
+// * InternalServerException
+// The API encountered an unexpected error and couldn't complete the request.
+// You might be able to successfully issue the request again in the future.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-v2-2022-03-31/CreatePool
+func (c *PinpointSMSVoiceV2) CreatePool(input *CreatePoolInput) (*CreatePoolOutput, error) {
+ req, out := c.CreatePoolRequest(input)
+ return out, req.Send()
+}
+
+// CreatePoolWithContext is the same as CreatePool with the addition of
+// the ability to pass a context and additional request options.
+//
+// See CreatePool for details on how to use this API operation.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *PinpointSMSVoiceV2) CreatePoolWithContext(ctx aws.Context, input *CreatePoolInput, opts ...request.Option) (*CreatePoolOutput, error) {
+ req, out := c.CreatePoolRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+const opDeleteConfigurationSet = "DeleteConfigurationSet"
+
+// DeleteConfigurationSetRequest generates a "aws/request.Request" representing the
+// client's request for the DeleteConfigurationSet operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See DeleteConfigurationSet for more information on using the DeleteConfigurationSet
+// API call, and error handling.
+//
+// This method is useful when you want to inject custom logic or configuration
+// into the SDK's request lifecycle. Such as custom headers, or retry logic.
+//
+//
+// // Example sending a request using the DeleteConfigurationSetRequest method.
+// req, resp := client.DeleteConfigurationSetRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-v2-2022-03-31/DeleteConfigurationSet
+func (c *PinpointSMSVoiceV2) DeleteConfigurationSetRequest(input *DeleteConfigurationSetInput) (req *request.Request, output *DeleteConfigurationSetOutput) {
+ op := &request.Operation{
+ Name: opDeleteConfigurationSet,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ }
+
+ if input == nil {
+ input = &DeleteConfigurationSetInput{}
+ }
+
+ output = &DeleteConfigurationSetOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// DeleteConfigurationSet API operation for Amazon Pinpoint SMS Voice V2.
+//
+// Deletes an existing configuration set.
+//
+// A configuration set is a set of rules that you apply to voice and SMS messages
+// that you send. In a configuration set, you can specify a destination for
+// specific types of events related to voice and SMS messages.
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for Amazon Pinpoint SMS Voice V2's
+// API operation DeleteConfigurationSet for usage and error information.
+//
+// Returned Error Types:
+// * ThrottlingException
+// An error that occurred because too many requests were sent during a certain
+// amount of time.
+//
+// * AccessDeniedException
+// The request was denied because you don't have sufficient permissions to access
+// the resource.
+//
+// * ResourceNotFoundException
+// A requested resource couldn't be found.
+//
+// * ValidationException
+// A validation exception for a field.
+//
+// * InternalServerException
+// The API encountered an unexpected error and couldn't complete the request.
+// You might be able to successfully issue the request again in the future.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-v2-2022-03-31/DeleteConfigurationSet
+func (c *PinpointSMSVoiceV2) DeleteConfigurationSet(input *DeleteConfigurationSetInput) (*DeleteConfigurationSetOutput, error) {
+ req, out := c.DeleteConfigurationSetRequest(input)
+ return out, req.Send()
+}
+
+// DeleteConfigurationSetWithContext is the same as DeleteConfigurationSet with the addition of
+// the ability to pass a context and additional request options.
+//
+// See DeleteConfigurationSet for details on how to use this API operation.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *PinpointSMSVoiceV2) DeleteConfigurationSetWithContext(ctx aws.Context, input *DeleteConfigurationSetInput, opts ...request.Option) (*DeleteConfigurationSetOutput, error) {
+ req, out := c.DeleteConfigurationSetRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+const opDeleteDefaultMessageType = "DeleteDefaultMessageType"
+
+// DeleteDefaultMessageTypeRequest generates a "aws/request.Request" representing the
+// client's request for the DeleteDefaultMessageType operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See DeleteDefaultMessageType for more information on using the DeleteDefaultMessageType
+// API call, and error handling.
+//
+// This method is useful when you want to inject custom logic or configuration
+// into the SDK's request lifecycle. Such as custom headers, or retry logic.
+//
+//
+// // Example sending a request using the DeleteDefaultMessageTypeRequest method.
+// req, resp := client.DeleteDefaultMessageTypeRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-v2-2022-03-31/DeleteDefaultMessageType
+func (c *PinpointSMSVoiceV2) DeleteDefaultMessageTypeRequest(input *DeleteDefaultMessageTypeInput) (req *request.Request, output *DeleteDefaultMessageTypeOutput) {
+ op := &request.Operation{
+ Name: opDeleteDefaultMessageType,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ }
+
+ if input == nil {
+ input = &DeleteDefaultMessageTypeInput{}
+ }
+
+ output = &DeleteDefaultMessageTypeOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// DeleteDefaultMessageType API operation for Amazon Pinpoint SMS Voice V2.
+//
+// Deletes an existing default message type on a configuration set.
+//
+// A message type is a type of messages that you plan to send. If you send account-related
+// messages or time-sensitive messages such as one-time passcodes, choose Transactional.
+// If you plan to send messages that contain marketing material or other promotional
+// content, choose Promotional. This setting applies to your entire Amazon Web
+// Services account.
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for Amazon Pinpoint SMS Voice V2's
+// API operation DeleteDefaultMessageType for usage and error information.
+//
+// Returned Error Types:
+// * ThrottlingException
+// An error that occurred because too many requests were sent during a certain
+// amount of time.
+//
+// * AccessDeniedException
+// The request was denied because you don't have sufficient permissions to access
+// the resource.
+//
+// * ResourceNotFoundException
+// A requested resource couldn't be found.
+//
+// * ValidationException
+// A validation exception for a field.
+//
+// * InternalServerException
+// The API encountered an unexpected error and couldn't complete the request.
+// You might be able to successfully issue the request again in the future.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-v2-2022-03-31/DeleteDefaultMessageType
+func (c *PinpointSMSVoiceV2) DeleteDefaultMessageType(input *DeleteDefaultMessageTypeInput) (*DeleteDefaultMessageTypeOutput, error) {
+ req, out := c.DeleteDefaultMessageTypeRequest(input)
+ return out, req.Send()
+}
+
+// DeleteDefaultMessageTypeWithContext is the same as DeleteDefaultMessageType with the addition of
+// the ability to pass a context and additional request options.
+//
+// See DeleteDefaultMessageType for details on how to use this API operation.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *PinpointSMSVoiceV2) DeleteDefaultMessageTypeWithContext(ctx aws.Context, input *DeleteDefaultMessageTypeInput, opts ...request.Option) (*DeleteDefaultMessageTypeOutput, error) {
+ req, out := c.DeleteDefaultMessageTypeRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+const opDeleteDefaultSenderId = "DeleteDefaultSenderId"
+
+// DeleteDefaultSenderIdRequest generates a "aws/request.Request" representing the
+// client's request for the DeleteDefaultSenderId operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See DeleteDefaultSenderId for more information on using the DeleteDefaultSenderId
+// API call, and error handling.
+//
+// This method is useful when you want to inject custom logic or configuration
+// into the SDK's request lifecycle. Such as custom headers, or retry logic.
+//
+//
+// // Example sending a request using the DeleteDefaultSenderIdRequest method.
+// req, resp := client.DeleteDefaultSenderIdRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-v2-2022-03-31/DeleteDefaultSenderId
+func (c *PinpointSMSVoiceV2) DeleteDefaultSenderIdRequest(input *DeleteDefaultSenderIdInput) (req *request.Request, output *DeleteDefaultSenderIdOutput) {
+ op := &request.Operation{
+ Name: opDeleteDefaultSenderId,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ }
+
+ if input == nil {
+ input = &DeleteDefaultSenderIdInput{}
+ }
+
+ output = &DeleteDefaultSenderIdOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// DeleteDefaultSenderId API operation for Amazon Pinpoint SMS Voice V2.
+//
+// Deletes an existing default sender ID on a configuration set.
+//
+// A default sender ID is the identity that appears on recipients' devices when
+// they receive SMS messages. Support for sender ID capabilities varies by country
+// or region.
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for Amazon Pinpoint SMS Voice V2's
+// API operation DeleteDefaultSenderId for usage and error information.
+//
+// Returned Error Types:
+// * ThrottlingException
+// An error that occurred because too many requests were sent during a certain
+// amount of time.
+//
+// * AccessDeniedException
+// The request was denied because you don't have sufficient permissions to access
+// the resource.
+//
+// * ResourceNotFoundException
+// A requested resource couldn't be found.
+//
+// * ValidationException
+// A validation exception for a field.
+//
+// * InternalServerException
+// The API encountered an unexpected error and couldn't complete the request.
+// You might be able to successfully issue the request again in the future.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-v2-2022-03-31/DeleteDefaultSenderId
+func (c *PinpointSMSVoiceV2) DeleteDefaultSenderId(input *DeleteDefaultSenderIdInput) (*DeleteDefaultSenderIdOutput, error) {
+ req, out := c.DeleteDefaultSenderIdRequest(input)
+ return out, req.Send()
+}
+
+// DeleteDefaultSenderIdWithContext is the same as DeleteDefaultSenderId with the addition of
+// the ability to pass a context and additional request options.
+//
+// See DeleteDefaultSenderId for details on how to use this API operation.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *PinpointSMSVoiceV2) DeleteDefaultSenderIdWithContext(ctx aws.Context, input *DeleteDefaultSenderIdInput, opts ...request.Option) (*DeleteDefaultSenderIdOutput, error) {
+ req, out := c.DeleteDefaultSenderIdRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+const opDeleteEventDestination = "DeleteEventDestination"
+
+// DeleteEventDestinationRequest generates a "aws/request.Request" representing the
+// client's request for the DeleteEventDestination operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See DeleteEventDestination for more information on using the DeleteEventDestination
+// API call, and error handling.
+//
+// This method is useful when you want to inject custom logic or configuration
+// into the SDK's request lifecycle. Such as custom headers, or retry logic.
+//
+//
+// // Example sending a request using the DeleteEventDestinationRequest method.
+// req, resp := client.DeleteEventDestinationRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-v2-2022-03-31/DeleteEventDestination
+func (c *PinpointSMSVoiceV2) DeleteEventDestinationRequest(input *DeleteEventDestinationInput) (req *request.Request, output *DeleteEventDestinationOutput) {
+ op := &request.Operation{
+ Name: opDeleteEventDestination,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ }
+
+ if input == nil {
+ input = &DeleteEventDestinationInput{}
+ }
+
+ output = &DeleteEventDestinationOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// DeleteEventDestination API operation for Amazon Pinpoint SMS Voice V2.
+//
+// Deletes an existing event destination.
+//
+// An event destination is a location where you send response information about
+// the messages that you send. For example, when a message is delivered successfully,
+// you can send information about that event to an Amazon CloudWatch destination,
+// or send notifications to endpoints that are subscribed to an Amazon SNS topic.
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for Amazon Pinpoint SMS Voice V2's
+// API operation DeleteEventDestination for usage and error information.
+//
+// Returned Error Types:
+// * ThrottlingException
+// An error that occurred because too many requests were sent during a certain
+// amount of time.
+//
+// * AccessDeniedException
+// The request was denied because you don't have sufficient permissions to access
+// the resource.
+//
+// * ResourceNotFoundException
+// A requested resource couldn't be found.
+//
+// * ValidationException
+// A validation exception for a field.
+//
+// * InternalServerException
+// The API encountered an unexpected error and couldn't complete the request.
+// You might be able to successfully issue the request again in the future.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-v2-2022-03-31/DeleteEventDestination
+func (c *PinpointSMSVoiceV2) DeleteEventDestination(input *DeleteEventDestinationInput) (*DeleteEventDestinationOutput, error) {
+ req, out := c.DeleteEventDestinationRequest(input)
+ return out, req.Send()
+}
+
+// DeleteEventDestinationWithContext is the same as DeleteEventDestination with the addition of
+// the ability to pass a context and additional request options.
+//
+// See DeleteEventDestination for details on how to use this API operation.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *PinpointSMSVoiceV2) DeleteEventDestinationWithContext(ctx aws.Context, input *DeleteEventDestinationInput, opts ...request.Option) (*DeleteEventDestinationOutput, error) {
+ req, out := c.DeleteEventDestinationRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+const opDeleteKeyword = "DeleteKeyword"
+
+// DeleteKeywordRequest generates a "aws/request.Request" representing the
+// client's request for the DeleteKeyword operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See DeleteKeyword for more information on using the DeleteKeyword
+// API call, and error handling.
+//
+// This method is useful when you want to inject custom logic or configuration
+// into the SDK's request lifecycle. Such as custom headers, or retry logic.
+//
+//
+// // Example sending a request using the DeleteKeywordRequest method.
+// req, resp := client.DeleteKeywordRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-v2-2022-03-31/DeleteKeyword
+func (c *PinpointSMSVoiceV2) DeleteKeywordRequest(input *DeleteKeywordInput) (req *request.Request, output *DeleteKeywordOutput) {
+ op := &request.Operation{
+ Name: opDeleteKeyword,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ }
+
+ if input == nil {
+ input = &DeleteKeywordInput{}
+ }
+
+ output = &DeleteKeywordOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// DeleteKeyword API operation for Amazon Pinpoint SMS Voice V2.
+//
+// Deletes an existing keyword from an origination phone number or pool.
+//
+// A keyword is a word that you can search for on a particular phone number
+// or pool. It is also a specific word or phrase that an end user can send to
+// your number to elicit a response, such as an informational message or a special
+// offer. When your number receives a message that begins with a keyword, Amazon
+// Pinpoint responds with a customizable message.
+//
+// Keywords "HELP" and "STOP" can't be deleted or modified.
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for Amazon Pinpoint SMS Voice V2's
+// API operation DeleteKeyword for usage and error information.
+//
+// Returned Error Types:
+// * ThrottlingException
+// An error that occurred because too many requests were sent during a certain
+// amount of time.
+//
+// * AccessDeniedException
+// The request was denied because you don't have sufficient permissions to access
+// the resource.
+//
+// * ResourceNotFoundException
+// A requested resource couldn't be found.
+//
+// * ValidationException
+// A validation exception for a field.
+//
+// * ConflictException
+// Your request has conflicting operations. This can occur if you're trying
+// to perform more than one operation on the same resource at the same time
+// or it could be that the requested action isn't valid for the current state
+// or configuration of the resource.
+//
+// * InternalServerException
+// The API encountered an unexpected error and couldn't complete the request.
+// You might be able to successfully issue the request again in the future.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-v2-2022-03-31/DeleteKeyword
+func (c *PinpointSMSVoiceV2) DeleteKeyword(input *DeleteKeywordInput) (*DeleteKeywordOutput, error) {
+ req, out := c.DeleteKeywordRequest(input)
+ return out, req.Send()
+}
+
+// DeleteKeywordWithContext is the same as DeleteKeyword with the addition of
+// the ability to pass a context and additional request options.
+//
+// See DeleteKeyword for details on how to use this API operation.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *PinpointSMSVoiceV2) DeleteKeywordWithContext(ctx aws.Context, input *DeleteKeywordInput, opts ...request.Option) (*DeleteKeywordOutput, error) {
+ req, out := c.DeleteKeywordRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+const opDeleteOptOutList = "DeleteOptOutList"
+
+// DeleteOptOutListRequest generates a "aws/request.Request" representing the
+// client's request for the DeleteOptOutList operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See DeleteOptOutList for more information on using the DeleteOptOutList
+// API call, and error handling.
+//
+// This method is useful when you want to inject custom logic or configuration
+// into the SDK's request lifecycle. Such as custom headers, or retry logic.
+//
+//
+// // Example sending a request using the DeleteOptOutListRequest method.
+// req, resp := client.DeleteOptOutListRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-v2-2022-03-31/DeleteOptOutList
+func (c *PinpointSMSVoiceV2) DeleteOptOutListRequest(input *DeleteOptOutListInput) (req *request.Request, output *DeleteOptOutListOutput) {
+ op := &request.Operation{
+ Name: opDeleteOptOutList,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ }
+
+ if input == nil {
+ input = &DeleteOptOutListInput{}
+ }
+
+ output = &DeleteOptOutListOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// DeleteOptOutList API operation for Amazon Pinpoint SMS Voice V2.
+//
+// Deletes an existing opt-out list. All opted out phone numbers in the opt-out
+// list are deleted.
+//
+// If the specified opt-out list name doesn't exist or is in-use by an origination
+// phone number or pool, an Error is returned.
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for Amazon Pinpoint SMS Voice V2's
+// API operation DeleteOptOutList for usage and error information.
+//
+// Returned Error Types:
+// * ThrottlingException
+// An error that occurred because too many requests were sent during a certain
+// amount of time.
+//
+// * AccessDeniedException
+// The request was denied because you don't have sufficient permissions to access
+// the resource.
+//
+// * ResourceNotFoundException
+// A requested resource couldn't be found.
+//
+// * ValidationException
+// A validation exception for a field.
+//
+// * ConflictException
+// Your request has conflicting operations. This can occur if you're trying
+// to perform more than one operation on the same resource at the same time
+// or it could be that the requested action isn't valid for the current state
+// or configuration of the resource.
+//
+// * InternalServerException
+// The API encountered an unexpected error and couldn't complete the request.
+// You might be able to successfully issue the request again in the future.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-v2-2022-03-31/DeleteOptOutList
+func (c *PinpointSMSVoiceV2) DeleteOptOutList(input *DeleteOptOutListInput) (*DeleteOptOutListOutput, error) {
+ req, out := c.DeleteOptOutListRequest(input)
+ return out, req.Send()
+}
+
+// DeleteOptOutListWithContext is the same as DeleteOptOutList with the addition of
+// the ability to pass a context and additional request options.
+//
+// See DeleteOptOutList for details on how to use this API operation.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *PinpointSMSVoiceV2) DeleteOptOutListWithContext(ctx aws.Context, input *DeleteOptOutListInput, opts ...request.Option) (*DeleteOptOutListOutput, error) {
+ req, out := c.DeleteOptOutListRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+const opDeleteOptedOutNumber = "DeleteOptedOutNumber"
+
+// DeleteOptedOutNumberRequest generates a "aws/request.Request" representing the
+// client's request for the DeleteOptedOutNumber operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See DeleteOptedOutNumber for more information on using the DeleteOptedOutNumber
+// API call, and error handling.
+//
+// This method is useful when you want to inject custom logic or configuration
+// into the SDK's request lifecycle. Such as custom headers, or retry logic.
+//
+//
+// // Example sending a request using the DeleteOptedOutNumberRequest method.
+// req, resp := client.DeleteOptedOutNumberRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-v2-2022-03-31/DeleteOptedOutNumber
+func (c *PinpointSMSVoiceV2) DeleteOptedOutNumberRequest(input *DeleteOptedOutNumberInput) (req *request.Request, output *DeleteOptedOutNumberOutput) {
+ op := &request.Operation{
+ Name: opDeleteOptedOutNumber,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ }
+
+ if input == nil {
+ input = &DeleteOptedOutNumberInput{}
+ }
+
+ output = &DeleteOptedOutNumberOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// DeleteOptedOutNumber API operation for Amazon Pinpoint SMS Voice V2.
+//
+// Deletes an existing opted out destination phone number from the specified
+// opt-out list.
+//
+// Each destination phone number can only be deleted once every 30 days.
+//
+// If the specified destination phone number doesn't exist or if the opt-out
+// list doesn't exist, an Error is returned.
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for Amazon Pinpoint SMS Voice V2's
+// API operation DeleteOptedOutNumber for usage and error information.
+//
+// Returned Error Types:
+// * ThrottlingException
+// An error that occurred because too many requests were sent during a certain
+// amount of time.
+//
+// * AccessDeniedException
+// The request was denied because you don't have sufficient permissions to access
+// the resource.
+//
+// * ResourceNotFoundException
+// A requested resource couldn't be found.
+//
+// * ValidationException
+// A validation exception for a field.
+//
+// * ConflictException
+// Your request has conflicting operations. This can occur if you're trying
+// to perform more than one operation on the same resource at the same time
+// or it could be that the requested action isn't valid for the current state
+// or configuration of the resource.
+//
+// * InternalServerException
+// The API encountered an unexpected error and couldn't complete the request.
+// You might be able to successfully issue the request again in the future.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-v2-2022-03-31/DeleteOptedOutNumber
+func (c *PinpointSMSVoiceV2) DeleteOptedOutNumber(input *DeleteOptedOutNumberInput) (*DeleteOptedOutNumberOutput, error) {
+ req, out := c.DeleteOptedOutNumberRequest(input)
+ return out, req.Send()
+}
+
+// DeleteOptedOutNumberWithContext is the same as DeleteOptedOutNumber with the addition of
+// the ability to pass a context and additional request options.
+//
+// See DeleteOptedOutNumber for details on how to use this API operation.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *PinpointSMSVoiceV2) DeleteOptedOutNumberWithContext(ctx aws.Context, input *DeleteOptedOutNumberInput, opts ...request.Option) (*DeleteOptedOutNumberOutput, error) {
+ req, out := c.DeleteOptedOutNumberRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+const opDeletePool = "DeletePool"
+
+// DeletePoolRequest generates a "aws/request.Request" representing the
+// client's request for the DeletePool operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See DeletePool for more information on using the DeletePool
+// API call, and error handling.
+//
+// This method is useful when you want to inject custom logic or configuration
+// into the SDK's request lifecycle. Such as custom headers, or retry logic.
+//
+//
+// // Example sending a request using the DeletePoolRequest method.
+// req, resp := client.DeletePoolRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-v2-2022-03-31/DeletePool
+func (c *PinpointSMSVoiceV2) DeletePoolRequest(input *DeletePoolInput) (req *request.Request, output *DeletePoolOutput) {
+ op := &request.Operation{
+ Name: opDeletePool,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ }
+
+ if input == nil {
+ input = &DeletePoolInput{}
+ }
+
+ output = &DeletePoolOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// DeletePool API operation for Amazon Pinpoint SMS Voice V2.
+//
+// Deletes an existing pool. Deleting a pool disassociates all origination identities
+// from that pool.
+//
+// If the pool status isn't active or if deletion protection is enabled, an
+// Error is returned.
+//
+// A pool is a collection of phone numbers and SenderIds. A pool can include
+// one or more phone numbers and SenderIds that are associated with your Amazon
+// Web Services account.
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for Amazon Pinpoint SMS Voice V2's
+// API operation DeletePool for usage and error information.
+//
+// Returned Error Types:
+// * ThrottlingException
+// An error that occurred because too many requests were sent during a certain
+// amount of time.
+//
+// * AccessDeniedException
+// The request was denied because you don't have sufficient permissions to access
+// the resource.
+//
+// * ResourceNotFoundException
+// A requested resource couldn't be found.
+//
+// * ValidationException
+// A validation exception for a field.
+//
+// * ConflictException
+// Your request has conflicting operations. This can occur if you're trying
+// to perform more than one operation on the same resource at the same time
+// or it could be that the requested action isn't valid for the current state
+// or configuration of the resource.
+//
+// * InternalServerException
+// The API encountered an unexpected error and couldn't complete the request.
+// You might be able to successfully issue the request again in the future.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-v2-2022-03-31/DeletePool
+func (c *PinpointSMSVoiceV2) DeletePool(input *DeletePoolInput) (*DeletePoolOutput, error) {
+ req, out := c.DeletePoolRequest(input)
+ return out, req.Send()
+}
+
+// DeletePoolWithContext is the same as DeletePool with the addition of
+// the ability to pass a context and additional request options.
+//
+// See DeletePool for details on how to use this API operation.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *PinpointSMSVoiceV2) DeletePoolWithContext(ctx aws.Context, input *DeletePoolInput, opts ...request.Option) (*DeletePoolOutput, error) {
+ req, out := c.DeletePoolRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+const opDeleteTextMessageSpendLimitOverride = "DeleteTextMessageSpendLimitOverride"
+
+// DeleteTextMessageSpendLimitOverrideRequest generates a "aws/request.Request" representing the
+// client's request for the DeleteTextMessageSpendLimitOverride operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See DeleteTextMessageSpendLimitOverride for more information on using the DeleteTextMessageSpendLimitOverride
+// API call, and error handling.
+//
+// This method is useful when you want to inject custom logic or configuration
+// into the SDK's request lifecycle. Such as custom headers, or retry logic.
+//
+//
+// // Example sending a request using the DeleteTextMessageSpendLimitOverrideRequest method.
+// req, resp := client.DeleteTextMessageSpendLimitOverrideRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-v2-2022-03-31/DeleteTextMessageSpendLimitOverride
+func (c *PinpointSMSVoiceV2) DeleteTextMessageSpendLimitOverrideRequest(input *DeleteTextMessageSpendLimitOverrideInput) (req *request.Request, output *DeleteTextMessageSpendLimitOverrideOutput) {
+ op := &request.Operation{
+ Name: opDeleteTextMessageSpendLimitOverride,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ }
+
+ if input == nil {
+ input = &DeleteTextMessageSpendLimitOverrideInput{}
+ }
+
+ output = &DeleteTextMessageSpendLimitOverrideOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// DeleteTextMessageSpendLimitOverride API operation for Amazon Pinpoint SMS Voice V2.
+//
+// Deletes an account-level monthly spending limit override for sending text
+// messages. Deleting a spend limit override will set the EnforcedLimit to equal
+// the MaxLimit, which is controlled by Amazon Web Services. For more information
+// on spend limits (quotas) see Amazon Pinpoint quotas (https://docs.aws.amazon.com/pinpoint/latest/developerguide/quotas.html)
+// in the Amazon Pinpoint Developer Guide.
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for Amazon Pinpoint SMS Voice V2's
+// API operation DeleteTextMessageSpendLimitOverride for usage and error information.
+//
+// Returned Error Types:
+// * ThrottlingException
+// An error that occurred because too many requests were sent during a certain
+// amount of time.
+//
+// * AccessDeniedException
+// The request was denied because you don't have sufficient permissions to access
+// the resource.
+//
+// * ValidationException
+// A validation exception for a field.
+//
+// * InternalServerException
+// The API encountered an unexpected error and couldn't complete the request.
+// You might be able to successfully issue the request again in the future.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-v2-2022-03-31/DeleteTextMessageSpendLimitOverride
+func (c *PinpointSMSVoiceV2) DeleteTextMessageSpendLimitOverride(input *DeleteTextMessageSpendLimitOverrideInput) (*DeleteTextMessageSpendLimitOverrideOutput, error) {
+ req, out := c.DeleteTextMessageSpendLimitOverrideRequest(input)
+ return out, req.Send()
+}
+
+// DeleteTextMessageSpendLimitOverrideWithContext is the same as DeleteTextMessageSpendLimitOverride with the addition of
+// the ability to pass a context and additional request options.
+//
+// See DeleteTextMessageSpendLimitOverride for details on how to use this API operation.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *PinpointSMSVoiceV2) DeleteTextMessageSpendLimitOverrideWithContext(ctx aws.Context, input *DeleteTextMessageSpendLimitOverrideInput, opts ...request.Option) (*DeleteTextMessageSpendLimitOverrideOutput, error) {
+ req, out := c.DeleteTextMessageSpendLimitOverrideRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+const opDeleteVoiceMessageSpendLimitOverride = "DeleteVoiceMessageSpendLimitOverride"
+
+// DeleteVoiceMessageSpendLimitOverrideRequest generates a "aws/request.Request" representing the
+// client's request for the DeleteVoiceMessageSpendLimitOverride operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See DeleteVoiceMessageSpendLimitOverride for more information on using the DeleteVoiceMessageSpendLimitOverride
+// API call, and error handling.
+//
+// This method is useful when you want to inject custom logic or configuration
+// into the SDK's request lifecycle. Such as custom headers, or retry logic.
+//
+//
+// // Example sending a request using the DeleteVoiceMessageSpendLimitOverrideRequest method.
+// req, resp := client.DeleteVoiceMessageSpendLimitOverrideRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-v2-2022-03-31/DeleteVoiceMessageSpendLimitOverride
+func (c *PinpointSMSVoiceV2) DeleteVoiceMessageSpendLimitOverrideRequest(input *DeleteVoiceMessageSpendLimitOverrideInput) (req *request.Request, output *DeleteVoiceMessageSpendLimitOverrideOutput) {
+ op := &request.Operation{
+ Name: opDeleteVoiceMessageSpendLimitOverride,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ }
+
+ if input == nil {
+ input = &DeleteVoiceMessageSpendLimitOverrideInput{}
+ }
+
+ output = &DeleteVoiceMessageSpendLimitOverrideOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// DeleteVoiceMessageSpendLimitOverride API operation for Amazon Pinpoint SMS Voice V2.
+//
+// Deletes an account level monthly spend limit override for sending voice messages.
+// Deleting a spend limit override sets the EnforcedLimit equal to the MaxLimit,
+// which is controlled by Amazon Web Services. For more information on spending
+// limits (quotas) see Amazon Pinpoint quotas (https://docs.aws.amazon.com/pinpoint/latest/developerguide/quotas.html)
+// in the Amazon Pinpoint Developer Guide.
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for Amazon Pinpoint SMS Voice V2's
+// API operation DeleteVoiceMessageSpendLimitOverride for usage and error information.
+//
+// Returned Error Types:
+// * ThrottlingException
+// An error that occurred because too many requests were sent during a certain
+// amount of time.
+//
+// * AccessDeniedException
+// The request was denied because you don't have sufficient permissions to access
+// the resource.
+//
+// * ValidationException
+// A validation exception for a field.
+//
+// * InternalServerException
+// The API encountered an unexpected error and couldn't complete the request.
+// You might be able to successfully issue the request again in the future.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-v2-2022-03-31/DeleteVoiceMessageSpendLimitOverride
+func (c *PinpointSMSVoiceV2) DeleteVoiceMessageSpendLimitOverride(input *DeleteVoiceMessageSpendLimitOverrideInput) (*DeleteVoiceMessageSpendLimitOverrideOutput, error) {
+ req, out := c.DeleteVoiceMessageSpendLimitOverrideRequest(input)
+ return out, req.Send()
+}
+
+// DeleteVoiceMessageSpendLimitOverrideWithContext is the same as DeleteVoiceMessageSpendLimitOverride with the addition of
+// the ability to pass a context and additional request options.
+//
+// See DeleteVoiceMessageSpendLimitOverride for details on how to use this API operation.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *PinpointSMSVoiceV2) DeleteVoiceMessageSpendLimitOverrideWithContext(ctx aws.Context, input *DeleteVoiceMessageSpendLimitOverrideInput, opts ...request.Option) (*DeleteVoiceMessageSpendLimitOverrideOutput, error) {
+ req, out := c.DeleteVoiceMessageSpendLimitOverrideRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+const opDescribeAccountAttributes = "DescribeAccountAttributes"
+
+// DescribeAccountAttributesRequest generates a "aws/request.Request" representing the
+// client's request for the DescribeAccountAttributes operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See DescribeAccountAttributes for more information on using the DescribeAccountAttributes
+// API call, and error handling.
+//
+// This method is useful when you want to inject custom logic or configuration
+// into the SDK's request lifecycle. Such as custom headers, or retry logic.
+//
+//
+// // Example sending a request using the DescribeAccountAttributesRequest method.
+// req, resp := client.DescribeAccountAttributesRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-v2-2022-03-31/DescribeAccountAttributes
+func (c *PinpointSMSVoiceV2) DescribeAccountAttributesRequest(input *DescribeAccountAttributesInput) (req *request.Request, output *DescribeAccountAttributesOutput) {
+ op := &request.Operation{
+ Name: opDescribeAccountAttributes,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ Paginator: &request.Paginator{
+ InputTokens: []string{"NextToken"},
+ OutputTokens: []string{"NextToken"},
+ LimitToken: "MaxResults",
+ TruncationToken: "",
+ },
+ }
+
+ if input == nil {
+ input = &DescribeAccountAttributesInput{}
+ }
+
+ output = &DescribeAccountAttributesOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// DescribeAccountAttributes API operation for Amazon Pinpoint SMS Voice V2.
+//
+// Describes attributes of your Amazon Web Services account. The supported account
+// attributes include account tier, which indicates whether your account is
+// in the sandbox or production environment. When you're ready to move your
+// account out of the sandbox, create an Amazon Web Services Support case for
+// a service limit increase request.
+//
+// New Amazon Pinpoint accounts are placed into an SMS or voice sandbox. The
+// sandbox protects both Amazon Web Services end recipients and SMS or voice
+// recipients from fraud and abuse.
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for Amazon Pinpoint SMS Voice V2's
+// API operation DescribeAccountAttributes for usage and error information.
+//
+// Returned Error Types:
+// * ThrottlingException
+// An error that occurred because too many requests were sent during a certain
+// amount of time.
+//
+// * AccessDeniedException
+// The request was denied because you don't have sufficient permissions to access
+// the resource.
+//
+// * ValidationException
+// A validation exception for a field.
+//
+// * InternalServerException
+// The API encountered an unexpected error and couldn't complete the request.
+// You might be able to successfully issue the request again in the future.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-v2-2022-03-31/DescribeAccountAttributes
+func (c *PinpointSMSVoiceV2) DescribeAccountAttributes(input *DescribeAccountAttributesInput) (*DescribeAccountAttributesOutput, error) {
+ req, out := c.DescribeAccountAttributesRequest(input)
+ return out, req.Send()
+}
+
+// DescribeAccountAttributesWithContext is the same as DescribeAccountAttributes with the addition of
+// the ability to pass a context and additional request options.
+//
+// See DescribeAccountAttributes for details on how to use this API operation.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *PinpointSMSVoiceV2) DescribeAccountAttributesWithContext(ctx aws.Context, input *DescribeAccountAttributesInput, opts ...request.Option) (*DescribeAccountAttributesOutput, error) {
+ req, out := c.DescribeAccountAttributesRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+// DescribeAccountAttributesPages iterates over the pages of a DescribeAccountAttributes operation,
+// calling the "fn" function with the response data for each page. To stop
+// iterating, return false from the fn function.
+//
+// See DescribeAccountAttributes method for more information on how to use this operation.
+//
+// Note: This operation can generate multiple requests to a service.
+//
+// // Example iterating over at most 3 pages of a DescribeAccountAttributes operation.
+// pageNum := 0
+// err := client.DescribeAccountAttributesPages(params,
+// func(page *pinpointsmsvoicev2.DescribeAccountAttributesOutput, lastPage bool) bool {
+// pageNum++
+// fmt.Println(page)
+// return pageNum <= 3
+// })
+//
+func (c *PinpointSMSVoiceV2) DescribeAccountAttributesPages(input *DescribeAccountAttributesInput, fn func(*DescribeAccountAttributesOutput, bool) bool) error {
+ return c.DescribeAccountAttributesPagesWithContext(aws.BackgroundContext(), input, fn)
+}
+
+// DescribeAccountAttributesPagesWithContext same as DescribeAccountAttributesPages except
+// it takes a Context and allows setting request options on the pages.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *PinpointSMSVoiceV2) DescribeAccountAttributesPagesWithContext(ctx aws.Context, input *DescribeAccountAttributesInput, fn func(*DescribeAccountAttributesOutput, bool) bool, opts ...request.Option) error {
+ p := request.Pagination{
+ NewRequest: func() (*request.Request, error) {
+ var inCpy *DescribeAccountAttributesInput
+ if input != nil {
+ tmp := *input
+ inCpy = &tmp
+ }
+ req, _ := c.DescribeAccountAttributesRequest(inCpy)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return req, nil
+ },
+ }
+
+ for p.Next() {
+ if !fn(p.Page().(*DescribeAccountAttributesOutput), !p.HasNextPage()) {
+ break
+ }
+ }
+
+ return p.Err()
+}
+
+const opDescribeAccountLimits = "DescribeAccountLimits"
+
+// DescribeAccountLimitsRequest generates a "aws/request.Request" representing the
+// client's request for the DescribeAccountLimits operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See DescribeAccountLimits for more information on using the DescribeAccountLimits
+// API call, and error handling.
+//
+// This method is useful when you want to inject custom logic or configuration
+// into the SDK's request lifecycle. Such as custom headers, or retry logic.
+//
+//
+// // Example sending a request using the DescribeAccountLimitsRequest method.
+// req, resp := client.DescribeAccountLimitsRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-v2-2022-03-31/DescribeAccountLimits
+func (c *PinpointSMSVoiceV2) DescribeAccountLimitsRequest(input *DescribeAccountLimitsInput) (req *request.Request, output *DescribeAccountLimitsOutput) {
+ op := &request.Operation{
+ Name: opDescribeAccountLimits,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ Paginator: &request.Paginator{
+ InputTokens: []string{"NextToken"},
+ OutputTokens: []string{"NextToken"},
+ LimitToken: "MaxResults",
+ TruncationToken: "",
+ },
+ }
+
+ if input == nil {
+ input = &DescribeAccountLimitsInput{}
+ }
+
+ output = &DescribeAccountLimitsOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// DescribeAccountLimits API operation for Amazon Pinpoint SMS Voice V2.
+//
+// Describes the current Amazon Pinpoint SMS Voice V2 resource quotas for your
+// account. The description for a quota includes the quota name, current usage
+// toward that quota, and the quota's maximum value.
+//
+// When you establish an Amazon Web Services account, the account has initial
+// quotas on the maximum number of configuration sets, opt-out lists, phone
+// numbers, and pools that you can create in a given Region. For more information
+// see Amazon Pinpoint quotas (https://docs.aws.amazon.com/pinpoint/latest/developerguide/quotas.html)
+// in the Amazon Pinpoint Developer Guide.
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for Amazon Pinpoint SMS Voice V2's
+// API operation DescribeAccountLimits for usage and error information.
+//
+// Returned Error Types:
+// * ThrottlingException
+// An error that occurred because too many requests were sent during a certain
+// amount of time.
+//
+// * AccessDeniedException
+// The request was denied because you don't have sufficient permissions to access
+// the resource.
+//
+// * ValidationException
+// A validation exception for a field.
+//
+// * InternalServerException
+// The API encountered an unexpected error and couldn't complete the request.
+// You might be able to successfully issue the request again in the future.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-v2-2022-03-31/DescribeAccountLimits
+func (c *PinpointSMSVoiceV2) DescribeAccountLimits(input *DescribeAccountLimitsInput) (*DescribeAccountLimitsOutput, error) {
+ req, out := c.DescribeAccountLimitsRequest(input)
+ return out, req.Send()
+}
+
+// DescribeAccountLimitsWithContext is the same as DescribeAccountLimits with the addition of
+// the ability to pass a context and additional request options.
+//
+// See DescribeAccountLimits for details on how to use this API operation.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *PinpointSMSVoiceV2) DescribeAccountLimitsWithContext(ctx aws.Context, input *DescribeAccountLimitsInput, opts ...request.Option) (*DescribeAccountLimitsOutput, error) {
+ req, out := c.DescribeAccountLimitsRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+// DescribeAccountLimitsPages iterates over the pages of a DescribeAccountLimits operation,
+// calling the "fn" function with the response data for each page. To stop
+// iterating, return false from the fn function.
+//
+// See DescribeAccountLimits method for more information on how to use this operation.
+//
+// Note: This operation can generate multiple requests to a service.
+//
+// // Example iterating over at most 3 pages of a DescribeAccountLimits operation.
+// pageNum := 0
+// err := client.DescribeAccountLimitsPages(params,
+// func(page *pinpointsmsvoicev2.DescribeAccountLimitsOutput, lastPage bool) bool {
+// pageNum++
+// fmt.Println(page)
+// return pageNum <= 3
+// })
+//
+func (c *PinpointSMSVoiceV2) DescribeAccountLimitsPages(input *DescribeAccountLimitsInput, fn func(*DescribeAccountLimitsOutput, bool) bool) error {
+ return c.DescribeAccountLimitsPagesWithContext(aws.BackgroundContext(), input, fn)
+}
+
+// DescribeAccountLimitsPagesWithContext same as DescribeAccountLimitsPages except
+// it takes a Context and allows setting request options on the pages.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *PinpointSMSVoiceV2) DescribeAccountLimitsPagesWithContext(ctx aws.Context, input *DescribeAccountLimitsInput, fn func(*DescribeAccountLimitsOutput, bool) bool, opts ...request.Option) error {
+ p := request.Pagination{
+ NewRequest: func() (*request.Request, error) {
+ var inCpy *DescribeAccountLimitsInput
+ if input != nil {
+ tmp := *input
+ inCpy = &tmp
+ }
+ req, _ := c.DescribeAccountLimitsRequest(inCpy)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return req, nil
+ },
+ }
+
+ for p.Next() {
+ if !fn(p.Page().(*DescribeAccountLimitsOutput), !p.HasNextPage()) {
+ break
+ }
+ }
+
+ return p.Err()
+}
+
+const opDescribeConfigurationSets = "DescribeConfigurationSets"
+
+// DescribeConfigurationSetsRequest generates a "aws/request.Request" representing the
+// client's request for the DescribeConfigurationSets operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See DescribeConfigurationSets for more information on using the DescribeConfigurationSets
+// API call, and error handling.
+//
+// This method is useful when you want to inject custom logic or configuration
+// into the SDK's request lifecycle. Such as custom headers, or retry logic.
+//
+//
+// // Example sending a request using the DescribeConfigurationSetsRequest method.
+// req, resp := client.DescribeConfigurationSetsRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-v2-2022-03-31/DescribeConfigurationSets
+func (c *PinpointSMSVoiceV2) DescribeConfigurationSetsRequest(input *DescribeConfigurationSetsInput) (req *request.Request, output *DescribeConfigurationSetsOutput) {
+ op := &request.Operation{
+ Name: opDescribeConfigurationSets,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ Paginator: &request.Paginator{
+ InputTokens: []string{"NextToken"},
+ OutputTokens: []string{"NextToken"},
+ LimitToken: "MaxResults",
+ TruncationToken: "",
+ },
+ }
+
+ if input == nil {
+ input = &DescribeConfigurationSetsInput{}
+ }
+
+ output = &DescribeConfigurationSetsOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// DescribeConfigurationSets API operation for Amazon Pinpoint SMS Voice V2.
+//
+// Describes the specified configuration sets or all in your account.
+//
+// If you specify configuration set names, the output includes information for
+// only the specified configuration sets. If you specify filters, the output
+// includes information for only those configuration sets that meet the filter
+// criteria. If you don't specify configuration set names or filters, the output
+// includes information for all configuration sets.
+//
+// If you specify a configuration set name that isn't valid, an error is returned.
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for Amazon Pinpoint SMS Voice V2's
+// API operation DescribeConfigurationSets for usage and error information.
+//
+// Returned Error Types:
+// * ThrottlingException
+// An error that occurred because too many requests were sent during a certain
+// amount of time.
+//
+// * AccessDeniedException
+// The request was denied because you don't have sufficient permissions to access
+// the resource.
+//
+// * ResourceNotFoundException
+// A requested resource couldn't be found.
+//
+// * ValidationException
+// A validation exception for a field.
+//
+// * InternalServerException
+// The API encountered an unexpected error and couldn't complete the request.
+// You might be able to successfully issue the request again in the future.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-v2-2022-03-31/DescribeConfigurationSets
+func (c *PinpointSMSVoiceV2) DescribeConfigurationSets(input *DescribeConfigurationSetsInput) (*DescribeConfigurationSetsOutput, error) {
+ req, out := c.DescribeConfigurationSetsRequest(input)
+ return out, req.Send()
+}
+
+// DescribeConfigurationSetsWithContext is the same as DescribeConfigurationSets with the addition of
+// the ability to pass a context and additional request options.
+//
+// See DescribeConfigurationSets for details on how to use this API operation.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *PinpointSMSVoiceV2) DescribeConfigurationSetsWithContext(ctx aws.Context, input *DescribeConfigurationSetsInput, opts ...request.Option) (*DescribeConfigurationSetsOutput, error) {
+ req, out := c.DescribeConfigurationSetsRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+// DescribeConfigurationSetsPages iterates over the pages of a DescribeConfigurationSets operation,
+// calling the "fn" function with the response data for each page. To stop
+// iterating, return false from the fn function.
+//
+// See DescribeConfigurationSets method for more information on how to use this operation.
+//
+// Note: This operation can generate multiple requests to a service.
+//
+// // Example iterating over at most 3 pages of a DescribeConfigurationSets operation.
+// pageNum := 0
+// err := client.DescribeConfigurationSetsPages(params,
+// func(page *pinpointsmsvoicev2.DescribeConfigurationSetsOutput, lastPage bool) bool {
+// pageNum++
+// fmt.Println(page)
+// return pageNum <= 3
+// })
+//
+func (c *PinpointSMSVoiceV2) DescribeConfigurationSetsPages(input *DescribeConfigurationSetsInput, fn func(*DescribeConfigurationSetsOutput, bool) bool) error {
+ return c.DescribeConfigurationSetsPagesWithContext(aws.BackgroundContext(), input, fn)
+}
+
+// DescribeConfigurationSetsPagesWithContext same as DescribeConfigurationSetsPages except
+// it takes a Context and allows setting request options on the pages.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *PinpointSMSVoiceV2) DescribeConfigurationSetsPagesWithContext(ctx aws.Context, input *DescribeConfigurationSetsInput, fn func(*DescribeConfigurationSetsOutput, bool) bool, opts ...request.Option) error {
+ p := request.Pagination{
+ NewRequest: func() (*request.Request, error) {
+ var inCpy *DescribeConfigurationSetsInput
+ if input != nil {
+ tmp := *input
+ inCpy = &tmp
+ }
+ req, _ := c.DescribeConfigurationSetsRequest(inCpy)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return req, nil
+ },
+ }
+
+ for p.Next() {
+ if !fn(p.Page().(*DescribeConfigurationSetsOutput), !p.HasNextPage()) {
+ break
+ }
+ }
+
+ return p.Err()
+}
+
+const opDescribeKeywords = "DescribeKeywords"
+
+// DescribeKeywordsRequest generates a "aws/request.Request" representing the
+// client's request for the DescribeKeywords operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See DescribeKeywords for more information on using the DescribeKeywords
+// API call, and error handling.
+//
+// This method is useful when you want to inject custom logic or configuration
+// into the SDK's request lifecycle. Such as custom headers, or retry logic.
+//
+//
+// // Example sending a request using the DescribeKeywordsRequest method.
+// req, resp := client.DescribeKeywordsRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-v2-2022-03-31/DescribeKeywords
+func (c *PinpointSMSVoiceV2) DescribeKeywordsRequest(input *DescribeKeywordsInput) (req *request.Request, output *DescribeKeywordsOutput) {
+ op := &request.Operation{
+ Name: opDescribeKeywords,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ Paginator: &request.Paginator{
+ InputTokens: []string{"NextToken"},
+ OutputTokens: []string{"NextToken"},
+ LimitToken: "MaxResults",
+ TruncationToken: "",
+ },
+ }
+
+ if input == nil {
+ input = &DescribeKeywordsInput{}
+ }
+
+ output = &DescribeKeywordsOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// DescribeKeywords API operation for Amazon Pinpoint SMS Voice V2.
+//
+// Describes the specified keywords or all keywords on your origination phone
+// number or pool.
+//
+// A keyword is a word that you can search for on a particular phone number
+// or pool. It is also a specific word or phrase that an end user can send to
+// your number to elicit a response, such as an informational message or a special
+// offer. When your number receives a message that begins with a keyword, Amazon
+// Pinpoint responds with a customizable message.
+//
+// If you specify a keyword that isn't valid, an Error is returned.
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for Amazon Pinpoint SMS Voice V2's
+// API operation DescribeKeywords for usage and error information.
+//
+// Returned Error Types:
+// * ThrottlingException
+// An error that occurred because too many requests were sent during a certain
+// amount of time.
+//
+// * AccessDeniedException
+// The request was denied because you don't have sufficient permissions to access
+// the resource.
+//
+// * ResourceNotFoundException
+// A requested resource couldn't be found.
+//
+// * ValidationException
+// A validation exception for a field.
+//
+// * InternalServerException
+// The API encountered an unexpected error and couldn't complete the request.
+// You might be able to successfully issue the request again in the future.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-v2-2022-03-31/DescribeKeywords
+func (c *PinpointSMSVoiceV2) DescribeKeywords(input *DescribeKeywordsInput) (*DescribeKeywordsOutput, error) {
+ req, out := c.DescribeKeywordsRequest(input)
+ return out, req.Send()
+}
+
+// DescribeKeywordsWithContext is the same as DescribeKeywords with the addition of
+// the ability to pass a context and additional request options.
+//
+// See DescribeKeywords for details on how to use this API operation.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *PinpointSMSVoiceV2) DescribeKeywordsWithContext(ctx aws.Context, input *DescribeKeywordsInput, opts ...request.Option) (*DescribeKeywordsOutput, error) {
+ req, out := c.DescribeKeywordsRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+// DescribeKeywordsPages iterates over the pages of a DescribeKeywords operation,
+// calling the "fn" function with the response data for each page. To stop
+// iterating, return false from the fn function.
+//
+// See DescribeKeywords method for more information on how to use this operation.
+//
+// Note: This operation can generate multiple requests to a service.
+//
+// // Example iterating over at most 3 pages of a DescribeKeywords operation.
+// pageNum := 0
+// err := client.DescribeKeywordsPages(params,
+// func(page *pinpointsmsvoicev2.DescribeKeywordsOutput, lastPage bool) bool {
+// pageNum++
+// fmt.Println(page)
+// return pageNum <= 3
+// })
+//
+func (c *PinpointSMSVoiceV2) DescribeKeywordsPages(input *DescribeKeywordsInput, fn func(*DescribeKeywordsOutput, bool) bool) error {
+ return c.DescribeKeywordsPagesWithContext(aws.BackgroundContext(), input, fn)
+}
+
+// DescribeKeywordsPagesWithContext same as DescribeKeywordsPages except
+// it takes a Context and allows setting request options on the pages.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *PinpointSMSVoiceV2) DescribeKeywordsPagesWithContext(ctx aws.Context, input *DescribeKeywordsInput, fn func(*DescribeKeywordsOutput, bool) bool, opts ...request.Option) error {
+ p := request.Pagination{
+ NewRequest: func() (*request.Request, error) {
+ var inCpy *DescribeKeywordsInput
+ if input != nil {
+ tmp := *input
+ inCpy = &tmp
+ }
+ req, _ := c.DescribeKeywordsRequest(inCpy)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return req, nil
+ },
+ }
+
+ for p.Next() {
+ if !fn(p.Page().(*DescribeKeywordsOutput), !p.HasNextPage()) {
+ break
+ }
+ }
+
+ return p.Err()
+}
+
+const opDescribeOptOutLists = "DescribeOptOutLists"
+
+// DescribeOptOutListsRequest generates a "aws/request.Request" representing the
+// client's request for the DescribeOptOutLists operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See DescribeOptOutLists for more information on using the DescribeOptOutLists
+// API call, and error handling.
+//
+// This method is useful when you want to inject custom logic or configuration
+// into the SDK's request lifecycle. Such as custom headers, or retry logic.
+//
+//
+// // Example sending a request using the DescribeOptOutListsRequest method.
+// req, resp := client.DescribeOptOutListsRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-v2-2022-03-31/DescribeOptOutLists
+func (c *PinpointSMSVoiceV2) DescribeOptOutListsRequest(input *DescribeOptOutListsInput) (req *request.Request, output *DescribeOptOutListsOutput) {
+ op := &request.Operation{
+ Name: opDescribeOptOutLists,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ Paginator: &request.Paginator{
+ InputTokens: []string{"NextToken"},
+ OutputTokens: []string{"NextToken"},
+ LimitToken: "MaxResults",
+ TruncationToken: "",
+ },
+ }
+
+ if input == nil {
+ input = &DescribeOptOutListsInput{}
+ }
+
+ output = &DescribeOptOutListsOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// DescribeOptOutLists API operation for Amazon Pinpoint SMS Voice V2.
+//
+// Describes the specified opt-out list or all opt-out lists in your account.
+//
+// If you specify opt-out list names, the output includes information for only
+// the specified opt-out lists. Opt-out lists include only those that meet the
+// filter criteria. If you don't specify opt-out list names or filters, the
+// output includes information for all opt-out lists.
+//
+// If you specify an opt-out list name that isn't valid, an Error is returned.
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for Amazon Pinpoint SMS Voice V2's
+// API operation DescribeOptOutLists for usage and error information.
+//
+// Returned Error Types:
+// * ThrottlingException
+// An error that occurred because too many requests were sent during a certain
+// amount of time.
+//
+// * AccessDeniedException
+// The request was denied because you don't have sufficient permissions to access
+// the resource.
+//
+// * ResourceNotFoundException
+// A requested resource couldn't be found.
+//
+// * ValidationException
+// A validation exception for a field.
+//
+// * InternalServerException
+// The API encountered an unexpected error and couldn't complete the request.
+// You might be able to successfully issue the request again in the future.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-v2-2022-03-31/DescribeOptOutLists
+func (c *PinpointSMSVoiceV2) DescribeOptOutLists(input *DescribeOptOutListsInput) (*DescribeOptOutListsOutput, error) {
+ req, out := c.DescribeOptOutListsRequest(input)
+ return out, req.Send()
+}
+
+// DescribeOptOutListsWithContext is the same as DescribeOptOutLists with the addition of
+// the ability to pass a context and additional request options.
+//
+// See DescribeOptOutLists for details on how to use this API operation.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *PinpointSMSVoiceV2) DescribeOptOutListsWithContext(ctx aws.Context, input *DescribeOptOutListsInput, opts ...request.Option) (*DescribeOptOutListsOutput, error) {
+ req, out := c.DescribeOptOutListsRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+// DescribeOptOutListsPages iterates over the pages of a DescribeOptOutLists operation,
+// calling the "fn" function with the response data for each page. To stop
+// iterating, return false from the fn function.
+//
+// See DescribeOptOutLists method for more information on how to use this operation.
+//
+// Note: This operation can generate multiple requests to a service.
+//
+// // Example iterating over at most 3 pages of a DescribeOptOutLists operation.
+// pageNum := 0
+// err := client.DescribeOptOutListsPages(params,
+// func(page *pinpointsmsvoicev2.DescribeOptOutListsOutput, lastPage bool) bool {
+// pageNum++
+// fmt.Println(page)
+// return pageNum <= 3
+// })
+//
+func (c *PinpointSMSVoiceV2) DescribeOptOutListsPages(input *DescribeOptOutListsInput, fn func(*DescribeOptOutListsOutput, bool) bool) error {
+ return c.DescribeOptOutListsPagesWithContext(aws.BackgroundContext(), input, fn)
+}
+
+// DescribeOptOutListsPagesWithContext same as DescribeOptOutListsPages except
+// it takes a Context and allows setting request options on the pages.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *PinpointSMSVoiceV2) DescribeOptOutListsPagesWithContext(ctx aws.Context, input *DescribeOptOutListsInput, fn func(*DescribeOptOutListsOutput, bool) bool, opts ...request.Option) error {
+ p := request.Pagination{
+ NewRequest: func() (*request.Request, error) {
+ var inCpy *DescribeOptOutListsInput
+ if input != nil {
+ tmp := *input
+ inCpy = &tmp
+ }
+ req, _ := c.DescribeOptOutListsRequest(inCpy)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return req, nil
+ },
+ }
+
+ for p.Next() {
+ if !fn(p.Page().(*DescribeOptOutListsOutput), !p.HasNextPage()) {
+ break
+ }
+ }
+
+ return p.Err()
+}
+
+const opDescribeOptedOutNumbers = "DescribeOptedOutNumbers"
+
+// DescribeOptedOutNumbersRequest generates a "aws/request.Request" representing the
+// client's request for the DescribeOptedOutNumbers operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See DescribeOptedOutNumbers for more information on using the DescribeOptedOutNumbers
+// API call, and error handling.
+//
+// This method is useful when you want to inject custom logic or configuration
+// into the SDK's request lifecycle. Such as custom headers, or retry logic.
+//
+//
+// // Example sending a request using the DescribeOptedOutNumbersRequest method.
+// req, resp := client.DescribeOptedOutNumbersRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-v2-2022-03-31/DescribeOptedOutNumbers
+func (c *PinpointSMSVoiceV2) DescribeOptedOutNumbersRequest(input *DescribeOptedOutNumbersInput) (req *request.Request, output *DescribeOptedOutNumbersOutput) {
+ op := &request.Operation{
+ Name: opDescribeOptedOutNumbers,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ Paginator: &request.Paginator{
+ InputTokens: []string{"NextToken"},
+ OutputTokens: []string{"NextToken"},
+ LimitToken: "MaxResults",
+ TruncationToken: "",
+ },
+ }
+
+ if input == nil {
+ input = &DescribeOptedOutNumbersInput{}
+ }
+
+ output = &DescribeOptedOutNumbersOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// DescribeOptedOutNumbers API operation for Amazon Pinpoint SMS Voice V2.
+//
+// Describes the specified opted out destination numbers or all opted out destination
+// numbers in an opt-out list.
+//
+// If you specify opted out numbers, the output includes information for only
+// the specified opted out numbers. If you specify filters, the output includes
+// information for only those opted out numbers that meet the filter criteria.
+// If you don't specify opted out numbers or filters, the output includes information
+// for all opted out destination numbers in your opt-out list.
+//
+// If you specify an opted out number that isn't valid, an Error is returned.
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for Amazon Pinpoint SMS Voice V2's
+// API operation DescribeOptedOutNumbers for usage and error information.
+//
+// Returned Error Types:
+// * ThrottlingException
+// An error that occurred because too many requests were sent during a certain
+// amount of time.
+//
+// * AccessDeniedException
+// The request was denied because you don't have sufficient permissions to access
+// the resource.
+//
+// * ResourceNotFoundException
+// A requested resource couldn't be found.
+//
+// * ValidationException
+// A validation exception for a field.
+//
+// * InternalServerException
+// The API encountered an unexpected error and couldn't complete the request.
+// You might be able to successfully issue the request again in the future.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-v2-2022-03-31/DescribeOptedOutNumbers
+func (c *PinpointSMSVoiceV2) DescribeOptedOutNumbers(input *DescribeOptedOutNumbersInput) (*DescribeOptedOutNumbersOutput, error) {
+ req, out := c.DescribeOptedOutNumbersRequest(input)
+ return out, req.Send()
+}
+
+// DescribeOptedOutNumbersWithContext is the same as DescribeOptedOutNumbers with the addition of
+// the ability to pass a context and additional request options.
+//
+// See DescribeOptedOutNumbers for details on how to use this API operation.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *PinpointSMSVoiceV2) DescribeOptedOutNumbersWithContext(ctx aws.Context, input *DescribeOptedOutNumbersInput, opts ...request.Option) (*DescribeOptedOutNumbersOutput, error) {
+ req, out := c.DescribeOptedOutNumbersRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+// DescribeOptedOutNumbersPages iterates over the pages of a DescribeOptedOutNumbers operation,
+// calling the "fn" function with the response data for each page. To stop
+// iterating, return false from the fn function.
+//
+// See DescribeOptedOutNumbers method for more information on how to use this operation.
+//
+// Note: This operation can generate multiple requests to a service.
+//
+// // Example iterating over at most 3 pages of a DescribeOptedOutNumbers operation.
+// pageNum := 0
+// err := client.DescribeOptedOutNumbersPages(params,
+// func(page *pinpointsmsvoicev2.DescribeOptedOutNumbersOutput, lastPage bool) bool {
+// pageNum++
+// fmt.Println(page)
+// return pageNum <= 3
+// })
+//
+func (c *PinpointSMSVoiceV2) DescribeOptedOutNumbersPages(input *DescribeOptedOutNumbersInput, fn func(*DescribeOptedOutNumbersOutput, bool) bool) error {
+ return c.DescribeOptedOutNumbersPagesWithContext(aws.BackgroundContext(), input, fn)
+}
+
+// DescribeOptedOutNumbersPagesWithContext same as DescribeOptedOutNumbersPages except
+// it takes a Context and allows setting request options on the pages.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *PinpointSMSVoiceV2) DescribeOptedOutNumbersPagesWithContext(ctx aws.Context, input *DescribeOptedOutNumbersInput, fn func(*DescribeOptedOutNumbersOutput, bool) bool, opts ...request.Option) error {
+ p := request.Pagination{
+ NewRequest: func() (*request.Request, error) {
+ var inCpy *DescribeOptedOutNumbersInput
+ if input != nil {
+ tmp := *input
+ inCpy = &tmp
+ }
+ req, _ := c.DescribeOptedOutNumbersRequest(inCpy)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return req, nil
+ },
+ }
+
+ for p.Next() {
+ if !fn(p.Page().(*DescribeOptedOutNumbersOutput), !p.HasNextPage()) {
+ break
+ }
+ }
+
+ return p.Err()
+}
+
+const opDescribePhoneNumbers = "DescribePhoneNumbers"
+
+// DescribePhoneNumbersRequest generates a "aws/request.Request" representing the
+// client's request for the DescribePhoneNumbers operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See DescribePhoneNumbers for more information on using the DescribePhoneNumbers
+// API call, and error handling.
+//
+// This method is useful when you want to inject custom logic or configuration
+// into the SDK's request lifecycle. Such as custom headers, or retry logic.
+//
+//
+// // Example sending a request using the DescribePhoneNumbersRequest method.
+// req, resp := client.DescribePhoneNumbersRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-v2-2022-03-31/DescribePhoneNumbers
+func (c *PinpointSMSVoiceV2) DescribePhoneNumbersRequest(input *DescribePhoneNumbersInput) (req *request.Request, output *DescribePhoneNumbersOutput) {
+ op := &request.Operation{
+ Name: opDescribePhoneNumbers,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ Paginator: &request.Paginator{
+ InputTokens: []string{"NextToken"},
+ OutputTokens: []string{"NextToken"},
+ LimitToken: "MaxResults",
+ TruncationToken: "",
+ },
+ }
+
+ if input == nil {
+ input = &DescribePhoneNumbersInput{}
+ }
+
+ output = &DescribePhoneNumbersOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// DescribePhoneNumbers API operation for Amazon Pinpoint SMS Voice V2.
+//
+// Describes the specified origination phone number, or all the phone numbers
+// in your account.
+//
+// If you specify phone number IDs, the output includes information for only
+// the specified phone numbers. If you specify filters, the output includes
+// information for only those phone numbers that meet the filter criteria. If
+// you don't specify phone number IDs or filters, the output includes information
+// for all phone numbers.
+//
+// If you specify a phone number ID that isn't valid, an Error is returned.
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for Amazon Pinpoint SMS Voice V2's
+// API operation DescribePhoneNumbers for usage and error information.
+//
+// Returned Error Types:
+// * ThrottlingException
+// An error that occurred because too many requests were sent during a certain
+// amount of time.
+//
+// * AccessDeniedException
+// The request was denied because you don't have sufficient permissions to access
+// the resource.
+//
+// * ResourceNotFoundException
+// A requested resource couldn't be found.
+//
+// * ValidationException
+// A validation exception for a field.
+//
+// * InternalServerException
+// The API encountered an unexpected error and couldn't complete the request.
+// You might be able to successfully issue the request again in the future.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-v2-2022-03-31/DescribePhoneNumbers
+func (c *PinpointSMSVoiceV2) DescribePhoneNumbers(input *DescribePhoneNumbersInput) (*DescribePhoneNumbersOutput, error) {
+ req, out := c.DescribePhoneNumbersRequest(input)
+ return out, req.Send()
+}
+
+// DescribePhoneNumbersWithContext is the same as DescribePhoneNumbers with the addition of
+// the ability to pass a context and additional request options.
+//
+// See DescribePhoneNumbers for details on how to use this API operation.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *PinpointSMSVoiceV2) DescribePhoneNumbersWithContext(ctx aws.Context, input *DescribePhoneNumbersInput, opts ...request.Option) (*DescribePhoneNumbersOutput, error) {
+ req, out := c.DescribePhoneNumbersRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+// DescribePhoneNumbersPages iterates over the pages of a DescribePhoneNumbers operation,
+// calling the "fn" function with the response data for each page. To stop
+// iterating, return false from the fn function.
+//
+// See DescribePhoneNumbers method for more information on how to use this operation.
+//
+// Note: This operation can generate multiple requests to a service.
+//
+// // Example iterating over at most 3 pages of a DescribePhoneNumbers operation.
+// pageNum := 0
+// err := client.DescribePhoneNumbersPages(params,
+// func(page *pinpointsmsvoicev2.DescribePhoneNumbersOutput, lastPage bool) bool {
+// pageNum++
+// fmt.Println(page)
+// return pageNum <= 3
+// })
+//
+func (c *PinpointSMSVoiceV2) DescribePhoneNumbersPages(input *DescribePhoneNumbersInput, fn func(*DescribePhoneNumbersOutput, bool) bool) error {
+ return c.DescribePhoneNumbersPagesWithContext(aws.BackgroundContext(), input, fn)
+}
+
+// DescribePhoneNumbersPagesWithContext same as DescribePhoneNumbersPages except
+// it takes a Context and allows setting request options on the pages.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *PinpointSMSVoiceV2) DescribePhoneNumbersPagesWithContext(ctx aws.Context, input *DescribePhoneNumbersInput, fn func(*DescribePhoneNumbersOutput, bool) bool, opts ...request.Option) error {
+ p := request.Pagination{
+ NewRequest: func() (*request.Request, error) {
+ var inCpy *DescribePhoneNumbersInput
+ if input != nil {
+ tmp := *input
+ inCpy = &tmp
+ }
+ req, _ := c.DescribePhoneNumbersRequest(inCpy)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return req, nil
+ },
+ }
+
+ for p.Next() {
+ if !fn(p.Page().(*DescribePhoneNumbersOutput), !p.HasNextPage()) {
+ break
+ }
+ }
+
+ return p.Err()
+}
+
+const opDescribePools = "DescribePools"
+
+// DescribePoolsRequest generates a "aws/request.Request" representing the
+// client's request for the DescribePools operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See DescribePools for more information on using the DescribePools
+// API call, and error handling.
+//
+// This method is useful when you want to inject custom logic or configuration
+// into the SDK's request lifecycle. Such as custom headers, or retry logic.
+//
+//
+// // Example sending a request using the DescribePoolsRequest method.
+// req, resp := client.DescribePoolsRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-v2-2022-03-31/DescribePools
+func (c *PinpointSMSVoiceV2) DescribePoolsRequest(input *DescribePoolsInput) (req *request.Request, output *DescribePoolsOutput) {
+ op := &request.Operation{
+ Name: opDescribePools,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ Paginator: &request.Paginator{
+ InputTokens: []string{"NextToken"},
+ OutputTokens: []string{"NextToken"},
+ LimitToken: "MaxResults",
+ TruncationToken: "",
+ },
+ }
+
+ if input == nil {
+ input = &DescribePoolsInput{}
+ }
+
+ output = &DescribePoolsOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// DescribePools API operation for Amazon Pinpoint SMS Voice V2.
+//
+// Retrieves the specified pools or all pools associated with your Amazon Web
+// Services account.
+//
+// If you specify pool IDs, the output includes information for only the specified
+// pools. If you specify filters, the output includes information for only those
+// pools that meet the filter criteria. If you don't specify pool IDs or filters,
+// the output includes information for all pools.
+//
+// If you specify a pool ID that isn't valid, an Error is returned.
+//
+// A pool is a collection of phone numbers and SenderIds. A pool can include
+// one or more phone numbers and SenderIds that are associated with your Amazon
+// Web Services account.
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for Amazon Pinpoint SMS Voice V2's
+// API operation DescribePools for usage and error information.
+//
+// Returned Error Types:
+// * ThrottlingException
+// An error that occurred because too many requests were sent during a certain
+// amount of time.
+//
+// * AccessDeniedException
+// The request was denied because you don't have sufficient permissions to access
+// the resource.
+//
+// * ResourceNotFoundException
+// A requested resource couldn't be found.
+//
+// * ValidationException
+// A validation exception for a field.
+//
+// * InternalServerException
+// The API encountered an unexpected error and couldn't complete the request.
+// You might be able to successfully issue the request again in the future.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-v2-2022-03-31/DescribePools
+func (c *PinpointSMSVoiceV2) DescribePools(input *DescribePoolsInput) (*DescribePoolsOutput, error) {
+ req, out := c.DescribePoolsRequest(input)
+ return out, req.Send()
+}
+
+// DescribePoolsWithContext is the same as DescribePools with the addition of
+// the ability to pass a context and additional request options.
+//
+// See DescribePools for details on how to use this API operation.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *PinpointSMSVoiceV2) DescribePoolsWithContext(ctx aws.Context, input *DescribePoolsInput, opts ...request.Option) (*DescribePoolsOutput, error) {
+ req, out := c.DescribePoolsRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+// DescribePoolsPages iterates over the pages of a DescribePools operation,
+// calling the "fn" function with the response data for each page. To stop
+// iterating, return false from the fn function.
+//
+// See DescribePools method for more information on how to use this operation.
+//
+// Note: This operation can generate multiple requests to a service.
+//
+// // Example iterating over at most 3 pages of a DescribePools operation.
+// pageNum := 0
+// err := client.DescribePoolsPages(params,
+// func(page *pinpointsmsvoicev2.DescribePoolsOutput, lastPage bool) bool {
+// pageNum++
+// fmt.Println(page)
+// return pageNum <= 3
+// })
+//
+func (c *PinpointSMSVoiceV2) DescribePoolsPages(input *DescribePoolsInput, fn func(*DescribePoolsOutput, bool) bool) error {
+ return c.DescribePoolsPagesWithContext(aws.BackgroundContext(), input, fn)
+}
+
+// DescribePoolsPagesWithContext same as DescribePoolsPages except
+// it takes a Context and allows setting request options on the pages.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *PinpointSMSVoiceV2) DescribePoolsPagesWithContext(ctx aws.Context, input *DescribePoolsInput, fn func(*DescribePoolsOutput, bool) bool, opts ...request.Option) error {
+ p := request.Pagination{
+ NewRequest: func() (*request.Request, error) {
+ var inCpy *DescribePoolsInput
+ if input != nil {
+ tmp := *input
+ inCpy = &tmp
+ }
+ req, _ := c.DescribePoolsRequest(inCpy)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return req, nil
+ },
+ }
+
+ for p.Next() {
+ if !fn(p.Page().(*DescribePoolsOutput), !p.HasNextPage()) {
+ break
+ }
+ }
+
+ return p.Err()
+}
+
+const opDescribeSenderIds = "DescribeSenderIds"
+
+// DescribeSenderIdsRequest generates a "aws/request.Request" representing the
+// client's request for the DescribeSenderIds operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See DescribeSenderIds for more information on using the DescribeSenderIds
+// API call, and error handling.
+//
+// This method is useful when you want to inject custom logic or configuration
+// into the SDK's request lifecycle. Such as custom headers, or retry logic.
+//
+//
+// // Example sending a request using the DescribeSenderIdsRequest method.
+// req, resp := client.DescribeSenderIdsRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-v2-2022-03-31/DescribeSenderIds
+func (c *PinpointSMSVoiceV2) DescribeSenderIdsRequest(input *DescribeSenderIdsInput) (req *request.Request, output *DescribeSenderIdsOutput) {
+ op := &request.Operation{
+ Name: opDescribeSenderIds,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ Paginator: &request.Paginator{
+ InputTokens: []string{"NextToken"},
+ OutputTokens: []string{"NextToken"},
+ LimitToken: "MaxResults",
+ TruncationToken: "",
+ },
+ }
+
+ if input == nil {
+ input = &DescribeSenderIdsInput{}
+ }
+
+ output = &DescribeSenderIdsOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// DescribeSenderIds API operation for Amazon Pinpoint SMS Voice V2.
+//
+// Describes the specified SenderIds or all SenderIds associated with your Amazon
+// Web Services account.
+//
+// If you specify SenderIds, the output includes information for only the specified
+// SenderIds. If you specify filters, the output includes information for only
+// those SenderIds that meet the filter criteria. If you don't specify SenderIds
+// or filters, the output includes information for all SenderIds.
+//
+// f you specify a sender ID that isn't valid, an Error is returned.
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for Amazon Pinpoint SMS Voice V2's
+// API operation DescribeSenderIds for usage and error information.
+//
+// Returned Error Types:
+// * ThrottlingException
+// An error that occurred because too many requests were sent during a certain
+// amount of time.
+//
+// * AccessDeniedException
+// The request was denied because you don't have sufficient permissions to access
+// the resource.
+//
+// * ResourceNotFoundException
+// A requested resource couldn't be found.
+//
+// * ValidationException
+// A validation exception for a field.
+//
+// * InternalServerException
+// The API encountered an unexpected error and couldn't complete the request.
+// You might be able to successfully issue the request again in the future.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-v2-2022-03-31/DescribeSenderIds
+func (c *PinpointSMSVoiceV2) DescribeSenderIds(input *DescribeSenderIdsInput) (*DescribeSenderIdsOutput, error) {
+ req, out := c.DescribeSenderIdsRequest(input)
+ return out, req.Send()
+}
+
+// DescribeSenderIdsWithContext is the same as DescribeSenderIds with the addition of
+// the ability to pass a context and additional request options.
+//
+// See DescribeSenderIds for details on how to use this API operation.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *PinpointSMSVoiceV2) DescribeSenderIdsWithContext(ctx aws.Context, input *DescribeSenderIdsInput, opts ...request.Option) (*DescribeSenderIdsOutput, error) {
+ req, out := c.DescribeSenderIdsRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+// DescribeSenderIdsPages iterates over the pages of a DescribeSenderIds operation,
+// calling the "fn" function with the response data for each page. To stop
+// iterating, return false from the fn function.
+//
+// See DescribeSenderIds method for more information on how to use this operation.
+//
+// Note: This operation can generate multiple requests to a service.
+//
+// // Example iterating over at most 3 pages of a DescribeSenderIds operation.
+// pageNum := 0
+// err := client.DescribeSenderIdsPages(params,
+// func(page *pinpointsmsvoicev2.DescribeSenderIdsOutput, lastPage bool) bool {
+// pageNum++
+// fmt.Println(page)
+// return pageNum <= 3
+// })
+//
+func (c *PinpointSMSVoiceV2) DescribeSenderIdsPages(input *DescribeSenderIdsInput, fn func(*DescribeSenderIdsOutput, bool) bool) error {
+ return c.DescribeSenderIdsPagesWithContext(aws.BackgroundContext(), input, fn)
+}
+
+// DescribeSenderIdsPagesWithContext same as DescribeSenderIdsPages except
+// it takes a Context and allows setting request options on the pages.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *PinpointSMSVoiceV2) DescribeSenderIdsPagesWithContext(ctx aws.Context, input *DescribeSenderIdsInput, fn func(*DescribeSenderIdsOutput, bool) bool, opts ...request.Option) error {
+ p := request.Pagination{
+ NewRequest: func() (*request.Request, error) {
+ var inCpy *DescribeSenderIdsInput
+ if input != nil {
+ tmp := *input
+ inCpy = &tmp
+ }
+ req, _ := c.DescribeSenderIdsRequest(inCpy)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return req, nil
+ },
+ }
+
+ for p.Next() {
+ if !fn(p.Page().(*DescribeSenderIdsOutput), !p.HasNextPage()) {
+ break
+ }
+ }
+
+ return p.Err()
+}
+
+const opDescribeSpendLimits = "DescribeSpendLimits"
+
+// DescribeSpendLimitsRequest generates a "aws/request.Request" representing the
+// client's request for the DescribeSpendLimits operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See DescribeSpendLimits for more information on using the DescribeSpendLimits
+// API call, and error handling.
+//
+// This method is useful when you want to inject custom logic or configuration
+// into the SDK's request lifecycle. Such as custom headers, or retry logic.
+//
+//
+// // Example sending a request using the DescribeSpendLimitsRequest method.
+// req, resp := client.DescribeSpendLimitsRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-v2-2022-03-31/DescribeSpendLimits
+func (c *PinpointSMSVoiceV2) DescribeSpendLimitsRequest(input *DescribeSpendLimitsInput) (req *request.Request, output *DescribeSpendLimitsOutput) {
+ op := &request.Operation{
+ Name: opDescribeSpendLimits,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ Paginator: &request.Paginator{
+ InputTokens: []string{"NextToken"},
+ OutputTokens: []string{"NextToken"},
+ LimitToken: "MaxResults",
+ TruncationToken: "",
+ },
+ }
+
+ if input == nil {
+ input = &DescribeSpendLimitsInput{}
+ }
+
+ output = &DescribeSpendLimitsOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// DescribeSpendLimits API operation for Amazon Pinpoint SMS Voice V2.
+//
+// Describes the current Amazon Pinpoint monthly spend limits for sending voice
+// and text messages.
+//
+// When you establish an Amazon Web Services account, the account has initial
+// monthly spend limit in a given Region. For more information on increasing
+// your monthly spend limit, see Requesting increases to your monthly SMS spending
+// quota for Amazon Pinpoint (https://docs.aws.amazon.com/pinpoint/latest/userguide/channels-sms-awssupport-spend-threshold.html)
+// in the Amazon Pinpoint User Guide.
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for Amazon Pinpoint SMS Voice V2's
+// API operation DescribeSpendLimits for usage and error information.
+//
+// Returned Error Types:
+// * ThrottlingException
+// An error that occurred because too many requests were sent during a certain
+// amount of time.
+//
+// * AccessDeniedException
+// The request was denied because you don't have sufficient permissions to access
+// the resource.
+//
+// * ValidationException
+// A validation exception for a field.
+//
+// * InternalServerException
+// The API encountered an unexpected error and couldn't complete the request.
+// You might be able to successfully issue the request again in the future.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-v2-2022-03-31/DescribeSpendLimits
+func (c *PinpointSMSVoiceV2) DescribeSpendLimits(input *DescribeSpendLimitsInput) (*DescribeSpendLimitsOutput, error) {
+ req, out := c.DescribeSpendLimitsRequest(input)
+ return out, req.Send()
+}
+
+// DescribeSpendLimitsWithContext is the same as DescribeSpendLimits with the addition of
+// the ability to pass a context and additional request options.
+//
+// See DescribeSpendLimits for details on how to use this API operation.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *PinpointSMSVoiceV2) DescribeSpendLimitsWithContext(ctx aws.Context, input *DescribeSpendLimitsInput, opts ...request.Option) (*DescribeSpendLimitsOutput, error) {
+ req, out := c.DescribeSpendLimitsRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+// DescribeSpendLimitsPages iterates over the pages of a DescribeSpendLimits operation,
+// calling the "fn" function with the response data for each page. To stop
+// iterating, return false from the fn function.
+//
+// See DescribeSpendLimits method for more information on how to use this operation.
+//
+// Note: This operation can generate multiple requests to a service.
+//
+// // Example iterating over at most 3 pages of a DescribeSpendLimits operation.
+// pageNum := 0
+// err := client.DescribeSpendLimitsPages(params,
+// func(page *pinpointsmsvoicev2.DescribeSpendLimitsOutput, lastPage bool) bool {
+// pageNum++
+// fmt.Println(page)
+// return pageNum <= 3
+// })
+//
+func (c *PinpointSMSVoiceV2) DescribeSpendLimitsPages(input *DescribeSpendLimitsInput, fn func(*DescribeSpendLimitsOutput, bool) bool) error {
+ return c.DescribeSpendLimitsPagesWithContext(aws.BackgroundContext(), input, fn)
+}
+
+// DescribeSpendLimitsPagesWithContext same as DescribeSpendLimitsPages except
+// it takes a Context and allows setting request options on the pages.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *PinpointSMSVoiceV2) DescribeSpendLimitsPagesWithContext(ctx aws.Context, input *DescribeSpendLimitsInput, fn func(*DescribeSpendLimitsOutput, bool) bool, opts ...request.Option) error {
+ p := request.Pagination{
+ NewRequest: func() (*request.Request, error) {
+ var inCpy *DescribeSpendLimitsInput
+ if input != nil {
+ tmp := *input
+ inCpy = &tmp
+ }
+ req, _ := c.DescribeSpendLimitsRequest(inCpy)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return req, nil
+ },
+ }
+
+ for p.Next() {
+ if !fn(p.Page().(*DescribeSpendLimitsOutput), !p.HasNextPage()) {
+ break
+ }
+ }
+
+ return p.Err()
+}
+
+const opDisassociateOriginationIdentity = "DisassociateOriginationIdentity"
+
+// DisassociateOriginationIdentityRequest generates a "aws/request.Request" representing the
+// client's request for the DisassociateOriginationIdentity operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See DisassociateOriginationIdentity for more information on using the DisassociateOriginationIdentity
+// API call, and error handling.
+//
+// This method is useful when you want to inject custom logic or configuration
+// into the SDK's request lifecycle. Such as custom headers, or retry logic.
+//
+//
+// // Example sending a request using the DisassociateOriginationIdentityRequest method.
+// req, resp := client.DisassociateOriginationIdentityRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-v2-2022-03-31/DisassociateOriginationIdentity
+func (c *PinpointSMSVoiceV2) DisassociateOriginationIdentityRequest(input *DisassociateOriginationIdentityInput) (req *request.Request, output *DisassociateOriginationIdentityOutput) {
+ op := &request.Operation{
+ Name: opDisassociateOriginationIdentity,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ }
+
+ if input == nil {
+ input = &DisassociateOriginationIdentityInput{}
+ }
+
+ output = &DisassociateOriginationIdentityOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// DisassociateOriginationIdentity API operation for Amazon Pinpoint SMS Voice V2.
+//
+// Removes the specified origination identity from an existing pool.
+//
+// If the origination identity isn't associated with the specified pool, an
+// Error is returned.
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for Amazon Pinpoint SMS Voice V2's
+// API operation DisassociateOriginationIdentity for usage and error information.
+//
+// Returned Error Types:
+// * ThrottlingException
+// An error that occurred because too many requests were sent during a certain
+// amount of time.
+//
+// * AccessDeniedException
+// The request was denied because you don't have sufficient permissions to access
+// the resource.
+//
+// * ResourceNotFoundException
+// A requested resource couldn't be found.
+//
+// * ValidationException
+// A validation exception for a field.
+//
+// * ConflictException
+// Your request has conflicting operations. This can occur if you're trying
+// to perform more than one operation on the same resource at the same time
+// or it could be that the requested action isn't valid for the current state
+// or configuration of the resource.
+//
+// * InternalServerException
+// The API encountered an unexpected error and couldn't complete the request.
+// You might be able to successfully issue the request again in the future.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-v2-2022-03-31/DisassociateOriginationIdentity
+func (c *PinpointSMSVoiceV2) DisassociateOriginationIdentity(input *DisassociateOriginationIdentityInput) (*DisassociateOriginationIdentityOutput, error) {
+ req, out := c.DisassociateOriginationIdentityRequest(input)
+ return out, req.Send()
+}
+
+// DisassociateOriginationIdentityWithContext is the same as DisassociateOriginationIdentity with the addition of
+// the ability to pass a context and additional request options.
+//
+// See DisassociateOriginationIdentity for details on how to use this API operation.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *PinpointSMSVoiceV2) DisassociateOriginationIdentityWithContext(ctx aws.Context, input *DisassociateOriginationIdentityInput, opts ...request.Option) (*DisassociateOriginationIdentityOutput, error) {
+ req, out := c.DisassociateOriginationIdentityRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+const opListPoolOriginationIdentities = "ListPoolOriginationIdentities"
+
+// ListPoolOriginationIdentitiesRequest generates a "aws/request.Request" representing the
+// client's request for the ListPoolOriginationIdentities operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See ListPoolOriginationIdentities for more information on using the ListPoolOriginationIdentities
+// API call, and error handling.
+//
+// This method is useful when you want to inject custom logic or configuration
+// into the SDK's request lifecycle. Such as custom headers, or retry logic.
+//
+//
+// // Example sending a request using the ListPoolOriginationIdentitiesRequest method.
+// req, resp := client.ListPoolOriginationIdentitiesRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-v2-2022-03-31/ListPoolOriginationIdentities
+func (c *PinpointSMSVoiceV2) ListPoolOriginationIdentitiesRequest(input *ListPoolOriginationIdentitiesInput) (req *request.Request, output *ListPoolOriginationIdentitiesOutput) {
+ op := &request.Operation{
+ Name: opListPoolOriginationIdentities,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ Paginator: &request.Paginator{
+ InputTokens: []string{"NextToken"},
+ OutputTokens: []string{"NextToken"},
+ LimitToken: "MaxResults",
+ TruncationToken: "",
+ },
+ }
+
+ if input == nil {
+ input = &ListPoolOriginationIdentitiesInput{}
+ }
+
+ output = &ListPoolOriginationIdentitiesOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// ListPoolOriginationIdentities API operation for Amazon Pinpoint SMS Voice V2.
+//
+// Lists all associated origination identities in your pool.
+//
+// If you specify filters, the output includes information for only those origination
+// identities that meet the filter criteria.
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for Amazon Pinpoint SMS Voice V2's
+// API operation ListPoolOriginationIdentities for usage and error information.
+//
+// Returned Error Types:
+// * ThrottlingException
+// An error that occurred because too many requests were sent during a certain
+// amount of time.
+//
+// * AccessDeniedException
+// The request was denied because you don't have sufficient permissions to access
+// the resource.
+//
+// * ResourceNotFoundException
+// A requested resource couldn't be found.
+//
+// * ValidationException
+// A validation exception for a field.
+//
+// * InternalServerException
+// The API encountered an unexpected error and couldn't complete the request.
+// You might be able to successfully issue the request again in the future.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-v2-2022-03-31/ListPoolOriginationIdentities
+func (c *PinpointSMSVoiceV2) ListPoolOriginationIdentities(input *ListPoolOriginationIdentitiesInput) (*ListPoolOriginationIdentitiesOutput, error) {
+ req, out := c.ListPoolOriginationIdentitiesRequest(input)
+ return out, req.Send()
+}
+
+// ListPoolOriginationIdentitiesWithContext is the same as ListPoolOriginationIdentities with the addition of
+// the ability to pass a context and additional request options.
+//
+// See ListPoolOriginationIdentities for details on how to use this API operation.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *PinpointSMSVoiceV2) ListPoolOriginationIdentitiesWithContext(ctx aws.Context, input *ListPoolOriginationIdentitiesInput, opts ...request.Option) (*ListPoolOriginationIdentitiesOutput, error) {
+ req, out := c.ListPoolOriginationIdentitiesRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+// ListPoolOriginationIdentitiesPages iterates over the pages of a ListPoolOriginationIdentities operation,
+// calling the "fn" function with the response data for each page. To stop
+// iterating, return false from the fn function.
+//
+// See ListPoolOriginationIdentities method for more information on how to use this operation.
+//
+// Note: This operation can generate multiple requests to a service.
+//
+// // Example iterating over at most 3 pages of a ListPoolOriginationIdentities operation.
+// pageNum := 0
+// err := client.ListPoolOriginationIdentitiesPages(params,
+// func(page *pinpointsmsvoicev2.ListPoolOriginationIdentitiesOutput, lastPage bool) bool {
+// pageNum++
+// fmt.Println(page)
+// return pageNum <= 3
+// })
+//
+func (c *PinpointSMSVoiceV2) ListPoolOriginationIdentitiesPages(input *ListPoolOriginationIdentitiesInput, fn func(*ListPoolOriginationIdentitiesOutput, bool) bool) error {
+ return c.ListPoolOriginationIdentitiesPagesWithContext(aws.BackgroundContext(), input, fn)
+}
+
+// ListPoolOriginationIdentitiesPagesWithContext same as ListPoolOriginationIdentitiesPages except
+// it takes a Context and allows setting request options on the pages.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *PinpointSMSVoiceV2) ListPoolOriginationIdentitiesPagesWithContext(ctx aws.Context, input *ListPoolOriginationIdentitiesInput, fn func(*ListPoolOriginationIdentitiesOutput, bool) bool, opts ...request.Option) error {
+ p := request.Pagination{
+ NewRequest: func() (*request.Request, error) {
+ var inCpy *ListPoolOriginationIdentitiesInput
+ if input != nil {
+ tmp := *input
+ inCpy = &tmp
+ }
+ req, _ := c.ListPoolOriginationIdentitiesRequest(inCpy)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return req, nil
+ },
+ }
+
+ for p.Next() {
+ if !fn(p.Page().(*ListPoolOriginationIdentitiesOutput), !p.HasNextPage()) {
+ break
+ }
+ }
+
+ return p.Err()
+}
+
+const opListTagsForResource = "ListTagsForResource"
+
+// ListTagsForResourceRequest generates a "aws/request.Request" representing the
+// client's request for the ListTagsForResource operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See ListTagsForResource for more information on using the ListTagsForResource
+// API call, and error handling.
+//
+// This method is useful when you want to inject custom logic or configuration
+// into the SDK's request lifecycle. Such as custom headers, or retry logic.
+//
+//
+// // Example sending a request using the ListTagsForResourceRequest method.
+// req, resp := client.ListTagsForResourceRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-v2-2022-03-31/ListTagsForResource
+func (c *PinpointSMSVoiceV2) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req *request.Request, output *ListTagsForResourceOutput) {
+ op := &request.Operation{
+ Name: opListTagsForResource,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ }
+
+ if input == nil {
+ input = &ListTagsForResourceInput{}
+ }
+
+ output = &ListTagsForResourceOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// ListTagsForResource API operation for Amazon Pinpoint SMS Voice V2.
+//
+// List all tags associated with a resource.
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for Amazon Pinpoint SMS Voice V2's
+// API operation ListTagsForResource for usage and error information.
+//
+// Returned Error Types:
+// * ThrottlingException
+// An error that occurred because too many requests were sent during a certain
+// amount of time.
+//
+// * AccessDeniedException
+// The request was denied because you don't have sufficient permissions to access
+// the resource.
+//
+// * ResourceNotFoundException
+// A requested resource couldn't be found.
+//
+// * ValidationException
+// A validation exception for a field.
+//
+// * InternalServerException
+// The API encountered an unexpected error and couldn't complete the request.
+// You might be able to successfully issue the request again in the future.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-v2-2022-03-31/ListTagsForResource
+func (c *PinpointSMSVoiceV2) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) {
+ req, out := c.ListTagsForResourceRequest(input)
+ return out, req.Send()
+}
+
+// ListTagsForResourceWithContext is the same as ListTagsForResource with the addition of
+// the ability to pass a context and additional request options.
+//
+// See ListTagsForResource for details on how to use this API operation.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *PinpointSMSVoiceV2) ListTagsForResourceWithContext(ctx aws.Context, input *ListTagsForResourceInput, opts ...request.Option) (*ListTagsForResourceOutput, error) {
+ req, out := c.ListTagsForResourceRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+const opPutKeyword = "PutKeyword"
+
+// PutKeywordRequest generates a "aws/request.Request" representing the
+// client's request for the PutKeyword operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See PutKeyword for more information on using the PutKeyword
+// API call, and error handling.
+//
+// This method is useful when you want to inject custom logic or configuration
+// into the SDK's request lifecycle. Such as custom headers, or retry logic.
+//
+//
+// // Example sending a request using the PutKeywordRequest method.
+// req, resp := client.PutKeywordRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-v2-2022-03-31/PutKeyword
+func (c *PinpointSMSVoiceV2) PutKeywordRequest(input *PutKeywordInput) (req *request.Request, output *PutKeywordOutput) {
+ op := &request.Operation{
+ Name: opPutKeyword,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ }
+
+ if input == nil {
+ input = &PutKeywordInput{}
+ }
+
+ output = &PutKeywordOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// PutKeyword API operation for Amazon Pinpoint SMS Voice V2.
+//
+// Creates or updates a keyword configuration on an origination phone number
+// or pool.
+//
+// A keyword is a word that you can search for on a particular phone number
+// or pool. It is also a specific word or phrase that an end user can send to
+// your number to elicit a response, such as an informational message or a special
+// offer. When your number receives a message that begins with a keyword, Amazon
+// Pinpoint responds with a customizable message.
+//
+// If you specify a keyword that isn't valid, an Error is returned.
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for Amazon Pinpoint SMS Voice V2's
+// API operation PutKeyword for usage and error information.
+//
+// Returned Error Types:
+// * ServiceQuotaExceededException
+// The request would cause a service quota to be exceeded.
+//
+// * ThrottlingException
+// An error that occurred because too many requests were sent during a certain
+// amount of time.
+//
+// * AccessDeniedException
+// The request was denied because you don't have sufficient permissions to access
+// the resource.
+//
+// * ResourceNotFoundException
+// A requested resource couldn't be found.
+//
+// * ValidationException
+// A validation exception for a field.
+//
+// * ConflictException
+// Your request has conflicting operations. This can occur if you're trying
+// to perform more than one operation on the same resource at the same time
+// or it could be that the requested action isn't valid for the current state
+// or configuration of the resource.
+//
+// * InternalServerException
+// The API encountered an unexpected error and couldn't complete the request.
+// You might be able to successfully issue the request again in the future.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-v2-2022-03-31/PutKeyword
+func (c *PinpointSMSVoiceV2) PutKeyword(input *PutKeywordInput) (*PutKeywordOutput, error) {
+ req, out := c.PutKeywordRequest(input)
+ return out, req.Send()
+}
+
+// PutKeywordWithContext is the same as PutKeyword with the addition of
+// the ability to pass a context and additional request options.
+//
+// See PutKeyword for details on how to use this API operation.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *PinpointSMSVoiceV2) PutKeywordWithContext(ctx aws.Context, input *PutKeywordInput, opts ...request.Option) (*PutKeywordOutput, error) {
+ req, out := c.PutKeywordRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+const opPutOptedOutNumber = "PutOptedOutNumber"
+
+// PutOptedOutNumberRequest generates a "aws/request.Request" representing the
+// client's request for the PutOptedOutNumber operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See PutOptedOutNumber for more information on using the PutOptedOutNumber
+// API call, and error handling.
+//
+// This method is useful when you want to inject custom logic or configuration
+// into the SDK's request lifecycle. Such as custom headers, or retry logic.
+//
+//
+// // Example sending a request using the PutOptedOutNumberRequest method.
+// req, resp := client.PutOptedOutNumberRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-v2-2022-03-31/PutOptedOutNumber
+func (c *PinpointSMSVoiceV2) PutOptedOutNumberRequest(input *PutOptedOutNumberInput) (req *request.Request, output *PutOptedOutNumberOutput) {
+ op := &request.Operation{
+ Name: opPutOptedOutNumber,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ }
+
+ if input == nil {
+ input = &PutOptedOutNumberInput{}
+ }
+
+ output = &PutOptedOutNumberOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// PutOptedOutNumber API operation for Amazon Pinpoint SMS Voice V2.
+//
+// Creates an opted out destination phone number in the opt-out list.
+//
+// If the destination phone number isn't valid or if the specified opt-out list
+// doesn't exist, an Error is returned.
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for Amazon Pinpoint SMS Voice V2's
+// API operation PutOptedOutNumber for usage and error information.
+//
+// Returned Error Types:
+// * ThrottlingException
+// An error that occurred because too many requests were sent during a certain
+// amount of time.
+//
+// * AccessDeniedException
+// The request was denied because you don't have sufficient permissions to access
+// the resource.
+//
+// * ResourceNotFoundException
+// A requested resource couldn't be found.
+//
+// * ValidationException
+// A validation exception for a field.
+//
+// * InternalServerException
+// The API encountered an unexpected error and couldn't complete the request.
+// You might be able to successfully issue the request again in the future.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-v2-2022-03-31/PutOptedOutNumber
+func (c *PinpointSMSVoiceV2) PutOptedOutNumber(input *PutOptedOutNumberInput) (*PutOptedOutNumberOutput, error) {
+ req, out := c.PutOptedOutNumberRequest(input)
+ return out, req.Send()
+}
+
+// PutOptedOutNumberWithContext is the same as PutOptedOutNumber with the addition of
+// the ability to pass a context and additional request options.
+//
+// See PutOptedOutNumber for details on how to use this API operation.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *PinpointSMSVoiceV2) PutOptedOutNumberWithContext(ctx aws.Context, input *PutOptedOutNumberInput, opts ...request.Option) (*PutOptedOutNumberOutput, error) {
+ req, out := c.PutOptedOutNumberRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+const opReleasePhoneNumber = "ReleasePhoneNumber"
+
+// ReleasePhoneNumberRequest generates a "aws/request.Request" representing the
+// client's request for the ReleasePhoneNumber operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See ReleasePhoneNumber for more information on using the ReleasePhoneNumber
+// API call, and error handling.
+//
+// This method is useful when you want to inject custom logic or configuration
+// into the SDK's request lifecycle. Such as custom headers, or retry logic.
+//
+//
+// // Example sending a request using the ReleasePhoneNumberRequest method.
+// req, resp := client.ReleasePhoneNumberRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-v2-2022-03-31/ReleasePhoneNumber
+func (c *PinpointSMSVoiceV2) ReleasePhoneNumberRequest(input *ReleasePhoneNumberInput) (req *request.Request, output *ReleasePhoneNumberOutput) {
+ op := &request.Operation{
+ Name: opReleasePhoneNumber,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ }
+
+ if input == nil {
+ input = &ReleasePhoneNumberInput{}
+ }
+
+ output = &ReleasePhoneNumberOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// ReleasePhoneNumber API operation for Amazon Pinpoint SMS Voice V2.
+//
+// Releases an existing origination phone number in your account. Once released,
+// a phone number is no longer available for sending messages.
+//
+// If the origination phone number has deletion protection enabled or is associated
+// with a pool, an Error is returned.
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for Amazon Pinpoint SMS Voice V2's
+// API operation ReleasePhoneNumber for usage and error information.
+//
+// Returned Error Types:
+// * ThrottlingException
+// An error that occurred because too many requests were sent during a certain
+// amount of time.
+//
+// * AccessDeniedException
+// The request was denied because you don't have sufficient permissions to access
+// the resource.
+//
+// * ResourceNotFoundException
+// A requested resource couldn't be found.
+//
+// * ValidationException
+// A validation exception for a field.
+//
+// * ConflictException
+// Your request has conflicting operations. This can occur if you're trying
+// to perform more than one operation on the same resource at the same time
+// or it could be that the requested action isn't valid for the current state
+// or configuration of the resource.
+//
+// * InternalServerException
+// The API encountered an unexpected error and couldn't complete the request.
+// You might be able to successfully issue the request again in the future.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-v2-2022-03-31/ReleasePhoneNumber
+func (c *PinpointSMSVoiceV2) ReleasePhoneNumber(input *ReleasePhoneNumberInput) (*ReleasePhoneNumberOutput, error) {
+ req, out := c.ReleasePhoneNumberRequest(input)
+ return out, req.Send()
+}
+
+// ReleasePhoneNumberWithContext is the same as ReleasePhoneNumber with the addition of
+// the ability to pass a context and additional request options.
+//
+// See ReleasePhoneNumber for details on how to use this API operation.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *PinpointSMSVoiceV2) ReleasePhoneNumberWithContext(ctx aws.Context, input *ReleasePhoneNumberInput, opts ...request.Option) (*ReleasePhoneNumberOutput, error) {
+ req, out := c.ReleasePhoneNumberRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+const opRequestPhoneNumber = "RequestPhoneNumber"
+
+// RequestPhoneNumberRequest generates a "aws/request.Request" representing the
+// client's request for the RequestPhoneNumber operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See RequestPhoneNumber for more information on using the RequestPhoneNumber
+// API call, and error handling.
+//
+// This method is useful when you want to inject custom logic or configuration
+// into the SDK's request lifecycle. Such as custom headers, or retry logic.
+//
+//
+// // Example sending a request using the RequestPhoneNumberRequest method.
+// req, resp := client.RequestPhoneNumberRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-v2-2022-03-31/RequestPhoneNumber
+func (c *PinpointSMSVoiceV2) RequestPhoneNumberRequest(input *RequestPhoneNumberInput) (req *request.Request, output *RequestPhoneNumberOutput) {
+ op := &request.Operation{
+ Name: opRequestPhoneNumber,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ }
+
+ if input == nil {
+ input = &RequestPhoneNumberInput{}
+ }
+
+ output = &RequestPhoneNumberOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// RequestPhoneNumber API operation for Amazon Pinpoint SMS Voice V2.
+//
+// Request an origination phone number for use in your account. For more information
+// on phone number request see Requesting a number (https://docs.aws.amazon.com/pinpoint/latest/userguide/settings-sms-request-number.html)
+// in the Amazon Pinpoint User Guide.
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for Amazon Pinpoint SMS Voice V2's
+// API operation RequestPhoneNumber for usage and error information.
+//
+// Returned Error Types:
+// * ServiceQuotaExceededException
+// The request would cause a service quota to be exceeded.
+//
+// * ThrottlingException
+// An error that occurred because too many requests were sent during a certain
+// amount of time.
+//
+// * AccessDeniedException
+// The request was denied because you don't have sufficient permissions to access
+// the resource.
+//
+// * ResourceNotFoundException
+// A requested resource couldn't be found.
+//
+// * ValidationException
+// A validation exception for a field.
+//
+// * ConflictException
+// Your request has conflicting operations. This can occur if you're trying
+// to perform more than one operation on the same resource at the same time
+// or it could be that the requested action isn't valid for the current state
+// or configuration of the resource.
+//
+// * InternalServerException
+// The API encountered an unexpected error and couldn't complete the request.
+// You might be able to successfully issue the request again in the future.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-v2-2022-03-31/RequestPhoneNumber
+func (c *PinpointSMSVoiceV2) RequestPhoneNumber(input *RequestPhoneNumberInput) (*RequestPhoneNumberOutput, error) {
+ req, out := c.RequestPhoneNumberRequest(input)
+ return out, req.Send()
+}
+
+// RequestPhoneNumberWithContext is the same as RequestPhoneNumber with the addition of
+// the ability to pass a context and additional request options.
+//
+// See RequestPhoneNumber for details on how to use this API operation.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *PinpointSMSVoiceV2) RequestPhoneNumberWithContext(ctx aws.Context, input *RequestPhoneNumberInput, opts ...request.Option) (*RequestPhoneNumberOutput, error) {
+ req, out := c.RequestPhoneNumberRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+const opSendTextMessage = "SendTextMessage"
+
+// SendTextMessageRequest generates a "aws/request.Request" representing the
+// client's request for the SendTextMessage operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See SendTextMessage for more information on using the SendTextMessage
+// API call, and error handling.
+//
+// This method is useful when you want to inject custom logic or configuration
+// into the SDK's request lifecycle. Such as custom headers, or retry logic.
+//
+//
+// // Example sending a request using the SendTextMessageRequest method.
+// req, resp := client.SendTextMessageRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-v2-2022-03-31/SendTextMessage
+func (c *PinpointSMSVoiceV2) SendTextMessageRequest(input *SendTextMessageInput) (req *request.Request, output *SendTextMessageOutput) {
+ op := &request.Operation{
+ Name: opSendTextMessage,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ }
+
+ if input == nil {
+ input = &SendTextMessageInput{}
+ }
+
+ output = &SendTextMessageOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// SendTextMessage API operation for Amazon Pinpoint SMS Voice V2.
+//
+// Creates a new text message and sends it to a recipient's phone number.
+//
+// SMS throughput limits are measured in Message Parts per Second (MPS). Your
+// MPS limit depends on the destination country of your messages, as well as
+// the type of phone number (origination number) that you use to send the message.
+// For more information, see Message Parts per Second (MPS) limits (https://docs.aws.amazon.com/pinpoint/latest/userguide/channels-sms-limitations-mps.html)
+// in the Amazon Pinpoint User Guide.
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for Amazon Pinpoint SMS Voice V2's
+// API operation SendTextMessage for usage and error information.
+//
+// Returned Error Types:
+// * ServiceQuotaExceededException
+// The request would cause a service quota to be exceeded.
+//
+// * ThrottlingException
+// An error that occurred because too many requests were sent during a certain
+// amount of time.
+//
+// * AccessDeniedException
+// The request was denied because you don't have sufficient permissions to access
+// the resource.
+//
+// * ResourceNotFoundException
+// A requested resource couldn't be found.
+//
+// * ValidationException
+// A validation exception for a field.
+//
+// * ConflictException
+// Your request has conflicting operations. This can occur if you're trying
+// to perform more than one operation on the same resource at the same time
+// or it could be that the requested action isn't valid for the current state
+// or configuration of the resource.
+//
+// * InternalServerException
+// The API encountered an unexpected error and couldn't complete the request.
+// You might be able to successfully issue the request again in the future.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-v2-2022-03-31/SendTextMessage
+func (c *PinpointSMSVoiceV2) SendTextMessage(input *SendTextMessageInput) (*SendTextMessageOutput, error) {
+ req, out := c.SendTextMessageRequest(input)
+ return out, req.Send()
+}
+
+// SendTextMessageWithContext is the same as SendTextMessage with the addition of
+// the ability to pass a context and additional request options.
+//
+// See SendTextMessage for details on how to use this API operation.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *PinpointSMSVoiceV2) SendTextMessageWithContext(ctx aws.Context, input *SendTextMessageInput, opts ...request.Option) (*SendTextMessageOutput, error) {
+ req, out := c.SendTextMessageRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+const opSendVoiceMessage = "SendVoiceMessage"
+
+// SendVoiceMessageRequest generates a "aws/request.Request" representing the
+// client's request for the SendVoiceMessage operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See SendVoiceMessage for more information on using the SendVoiceMessage
+// API call, and error handling.
+//
+// This method is useful when you want to inject custom logic or configuration
+// into the SDK's request lifecycle. Such as custom headers, or retry logic.
+//
+//
+// // Example sending a request using the SendVoiceMessageRequest method.
+// req, resp := client.SendVoiceMessageRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-v2-2022-03-31/SendVoiceMessage
+func (c *PinpointSMSVoiceV2) SendVoiceMessageRequest(input *SendVoiceMessageInput) (req *request.Request, output *SendVoiceMessageOutput) {
+ op := &request.Operation{
+ Name: opSendVoiceMessage,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ }
+
+ if input == nil {
+ input = &SendVoiceMessageInput{}
+ }
+
+ output = &SendVoiceMessageOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// SendVoiceMessage API operation for Amazon Pinpoint SMS Voice V2.
+//
+// Allows you to send a request that sends a text message through Amazon Pinpoint.
+// This operation uses Amazon Polly (http://aws.amazon.com/polly/) to convert
+// a text script into a voice message.
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for Amazon Pinpoint SMS Voice V2's
+// API operation SendVoiceMessage for usage and error information.
+//
+// Returned Error Types:
+// * ServiceQuotaExceededException
+// The request would cause a service quota to be exceeded.
+//
+// * ThrottlingException
+// An error that occurred because too many requests were sent during a certain
+// amount of time.
+//
+// * AccessDeniedException
+// The request was denied because you don't have sufficient permissions to access
+// the resource.
+//
+// * ResourceNotFoundException
+// A requested resource couldn't be found.
+//
+// * ValidationException
+// A validation exception for a field.
+//
+// * ConflictException
+// Your request has conflicting operations. This can occur if you're trying
+// to perform more than one operation on the same resource at the same time
+// or it could be that the requested action isn't valid for the current state
+// or configuration of the resource.
+//
+// * InternalServerException
+// The API encountered an unexpected error and couldn't complete the request.
+// You might be able to successfully issue the request again in the future.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-v2-2022-03-31/SendVoiceMessage
+func (c *PinpointSMSVoiceV2) SendVoiceMessage(input *SendVoiceMessageInput) (*SendVoiceMessageOutput, error) {
+ req, out := c.SendVoiceMessageRequest(input)
+ return out, req.Send()
+}
+
+// SendVoiceMessageWithContext is the same as SendVoiceMessage with the addition of
+// the ability to pass a context and additional request options.
+//
+// See SendVoiceMessage for details on how to use this API operation.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *PinpointSMSVoiceV2) SendVoiceMessageWithContext(ctx aws.Context, input *SendVoiceMessageInput, opts ...request.Option) (*SendVoiceMessageOutput, error) {
+ req, out := c.SendVoiceMessageRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+const opSetDefaultMessageType = "SetDefaultMessageType"
+
+// SetDefaultMessageTypeRequest generates a "aws/request.Request" representing the
+// client's request for the SetDefaultMessageType operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See SetDefaultMessageType for more information on using the SetDefaultMessageType
+// API call, and error handling.
+//
+// This method is useful when you want to inject custom logic or configuration
+// into the SDK's request lifecycle. Such as custom headers, or retry logic.
+//
+//
+// // Example sending a request using the SetDefaultMessageTypeRequest method.
+// req, resp := client.SetDefaultMessageTypeRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-v2-2022-03-31/SetDefaultMessageType
+func (c *PinpointSMSVoiceV2) SetDefaultMessageTypeRequest(input *SetDefaultMessageTypeInput) (req *request.Request, output *SetDefaultMessageTypeOutput) {
+ op := &request.Operation{
+ Name: opSetDefaultMessageType,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ }
+
+ if input == nil {
+ input = &SetDefaultMessageTypeInput{}
+ }
+
+ output = &SetDefaultMessageTypeOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// SetDefaultMessageType API operation for Amazon Pinpoint SMS Voice V2.
+//
+// Sets the default message type on a configuration set.
+//
+// Choose the category of SMS messages that you plan to send from this account.
+// If you send account-related messages or time-sensitive messages such as one-time
+// passcodes, choose Transactional. If you plan to send messages that contain
+// marketing material or other promotional content, choose Promotional. This
+// setting applies to your entire Amazon Web Services account.
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for Amazon Pinpoint SMS Voice V2's
+// API operation SetDefaultMessageType for usage and error information.
+//
+// Returned Error Types:
+// * ThrottlingException
+// An error that occurred because too many requests were sent during a certain
+// amount of time.
+//
+// * AccessDeniedException
+// The request was denied because you don't have sufficient permissions to access
+// the resource.
+//
+// * ResourceNotFoundException
+// A requested resource couldn't be found.
+//
+// * ValidationException
+// A validation exception for a field.
+//
+// * InternalServerException
+// The API encountered an unexpected error and couldn't complete the request.
+// You might be able to successfully issue the request again in the future.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-v2-2022-03-31/SetDefaultMessageType
+func (c *PinpointSMSVoiceV2) SetDefaultMessageType(input *SetDefaultMessageTypeInput) (*SetDefaultMessageTypeOutput, error) {
+ req, out := c.SetDefaultMessageTypeRequest(input)
+ return out, req.Send()
+}
+
+// SetDefaultMessageTypeWithContext is the same as SetDefaultMessageType with the addition of
+// the ability to pass a context and additional request options.
+//
+// See SetDefaultMessageType for details on how to use this API operation.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *PinpointSMSVoiceV2) SetDefaultMessageTypeWithContext(ctx aws.Context, input *SetDefaultMessageTypeInput, opts ...request.Option) (*SetDefaultMessageTypeOutput, error) {
+ req, out := c.SetDefaultMessageTypeRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+const opSetDefaultSenderId = "SetDefaultSenderId"
+
+// SetDefaultSenderIdRequest generates a "aws/request.Request" representing the
+// client's request for the SetDefaultSenderId operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See SetDefaultSenderId for more information on using the SetDefaultSenderId
+// API call, and error handling.
+//
+// This method is useful when you want to inject custom logic or configuration
+// into the SDK's request lifecycle. Such as custom headers, or retry logic.
+//
+//
+// // Example sending a request using the SetDefaultSenderIdRequest method.
+// req, resp := client.SetDefaultSenderIdRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-v2-2022-03-31/SetDefaultSenderId
+func (c *PinpointSMSVoiceV2) SetDefaultSenderIdRequest(input *SetDefaultSenderIdInput) (req *request.Request, output *SetDefaultSenderIdOutput) {
+ op := &request.Operation{
+ Name: opSetDefaultSenderId,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ }
+
+ if input == nil {
+ input = &SetDefaultSenderIdInput{}
+ }
+
+ output = &SetDefaultSenderIdOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// SetDefaultSenderId API operation for Amazon Pinpoint SMS Voice V2.
+//
+// Sets default sender ID on a configuration set.
+//
+// When sending a text message to a destination country that supports sender
+// IDs, the default sender ID on the configuration set specified will be used
+// if no dedicated origination phone numbers or registered sender IDs are available
+// in your account.
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for Amazon Pinpoint SMS Voice V2's
+// API operation SetDefaultSenderId for usage and error information.
+//
+// Returned Error Types:
+// * ThrottlingException
+// An error that occurred because too many requests were sent during a certain
+// amount of time.
+//
+// * AccessDeniedException
+// The request was denied because you don't have sufficient permissions to access
+// the resource.
+//
+// * ResourceNotFoundException
+// A requested resource couldn't be found.
+//
+// * ValidationException
+// A validation exception for a field.
+//
+// * InternalServerException
+// The API encountered an unexpected error and couldn't complete the request.
+// You might be able to successfully issue the request again in the future.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-v2-2022-03-31/SetDefaultSenderId
+func (c *PinpointSMSVoiceV2) SetDefaultSenderId(input *SetDefaultSenderIdInput) (*SetDefaultSenderIdOutput, error) {
+ req, out := c.SetDefaultSenderIdRequest(input)
+ return out, req.Send()
+}
+
+// SetDefaultSenderIdWithContext is the same as SetDefaultSenderId with the addition of
+// the ability to pass a context and additional request options.
+//
+// See SetDefaultSenderId for details on how to use this API operation.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *PinpointSMSVoiceV2) SetDefaultSenderIdWithContext(ctx aws.Context, input *SetDefaultSenderIdInput, opts ...request.Option) (*SetDefaultSenderIdOutput, error) {
+ req, out := c.SetDefaultSenderIdRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+const opSetTextMessageSpendLimitOverride = "SetTextMessageSpendLimitOverride"
+
+// SetTextMessageSpendLimitOverrideRequest generates a "aws/request.Request" representing the
+// client's request for the SetTextMessageSpendLimitOverride operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See SetTextMessageSpendLimitOverride for more information on using the SetTextMessageSpendLimitOverride
+// API call, and error handling.
+//
+// This method is useful when you want to inject custom logic or configuration
+// into the SDK's request lifecycle. Such as custom headers, or retry logic.
+//
+//
+// // Example sending a request using the SetTextMessageSpendLimitOverrideRequest method.
+// req, resp := client.SetTextMessageSpendLimitOverrideRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-v2-2022-03-31/SetTextMessageSpendLimitOverride
+func (c *PinpointSMSVoiceV2) SetTextMessageSpendLimitOverrideRequest(input *SetTextMessageSpendLimitOverrideInput) (req *request.Request, output *SetTextMessageSpendLimitOverrideOutput) {
+ op := &request.Operation{
+ Name: opSetTextMessageSpendLimitOverride,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ }
+
+ if input == nil {
+ input = &SetTextMessageSpendLimitOverrideInput{}
+ }
+
+ output = &SetTextMessageSpendLimitOverrideOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// SetTextMessageSpendLimitOverride API operation for Amazon Pinpoint SMS Voice V2.
+//
+// Sets an account level monthly spend limit override for sending text messages.
+// The requested spend limit must be less than or equal to the MaxLimit, which
+// is set by Amazon Web Services.
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for Amazon Pinpoint SMS Voice V2's
+// API operation SetTextMessageSpendLimitOverride for usage and error information.
+//
+// Returned Error Types:
+// * ThrottlingException
+// An error that occurred because too many requests were sent during a certain
+// amount of time.
+//
+// * AccessDeniedException
+// The request was denied because you don't have sufficient permissions to access
+// the resource.
+//
+// * ValidationException
+// A validation exception for a field.
+//
+// * InternalServerException
+// The API encountered an unexpected error and couldn't complete the request.
+// You might be able to successfully issue the request again in the future.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-v2-2022-03-31/SetTextMessageSpendLimitOverride
+func (c *PinpointSMSVoiceV2) SetTextMessageSpendLimitOverride(input *SetTextMessageSpendLimitOverrideInput) (*SetTextMessageSpendLimitOverrideOutput, error) {
+ req, out := c.SetTextMessageSpendLimitOverrideRequest(input)
+ return out, req.Send()
+}
+
+// SetTextMessageSpendLimitOverrideWithContext is the same as SetTextMessageSpendLimitOverride with the addition of
+// the ability to pass a context and additional request options.
+//
+// See SetTextMessageSpendLimitOverride for details on how to use this API operation.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *PinpointSMSVoiceV2) SetTextMessageSpendLimitOverrideWithContext(ctx aws.Context, input *SetTextMessageSpendLimitOverrideInput, opts ...request.Option) (*SetTextMessageSpendLimitOverrideOutput, error) {
+ req, out := c.SetTextMessageSpendLimitOverrideRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+const opSetVoiceMessageSpendLimitOverride = "SetVoiceMessageSpendLimitOverride"
+
+// SetVoiceMessageSpendLimitOverrideRequest generates a "aws/request.Request" representing the
+// client's request for the SetVoiceMessageSpendLimitOverride operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See SetVoiceMessageSpendLimitOverride for more information on using the SetVoiceMessageSpendLimitOverride
+// API call, and error handling.
+//
+// This method is useful when you want to inject custom logic or configuration
+// into the SDK's request lifecycle. Such as custom headers, or retry logic.
+//
+//
+// // Example sending a request using the SetVoiceMessageSpendLimitOverrideRequest method.
+// req, resp := client.SetVoiceMessageSpendLimitOverrideRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-v2-2022-03-31/SetVoiceMessageSpendLimitOverride
+func (c *PinpointSMSVoiceV2) SetVoiceMessageSpendLimitOverrideRequest(input *SetVoiceMessageSpendLimitOverrideInput) (req *request.Request, output *SetVoiceMessageSpendLimitOverrideOutput) {
+ op := &request.Operation{
+ Name: opSetVoiceMessageSpendLimitOverride,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ }
+
+ if input == nil {
+ input = &SetVoiceMessageSpendLimitOverrideInput{}
+ }
+
+ output = &SetVoiceMessageSpendLimitOverrideOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// SetVoiceMessageSpendLimitOverride API operation for Amazon Pinpoint SMS Voice V2.
+//
+// Sets an account level monthly spend limit override for sending voice messages.
+// The requested spend limit must be less than or equal to the MaxLimit, which
+// is set by Amazon Web Services.
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for Amazon Pinpoint SMS Voice V2's
+// API operation SetVoiceMessageSpendLimitOverride for usage and error information.
+//
+// Returned Error Types:
+// * ThrottlingException
+// An error that occurred because too many requests were sent during a certain
+// amount of time.
+//
+// * AccessDeniedException
+// The request was denied because you don't have sufficient permissions to access
+// the resource.
+//
+// * ValidationException
+// A validation exception for a field.
+//
+// * InternalServerException
+// The API encountered an unexpected error and couldn't complete the request.
+// You might be able to successfully issue the request again in the future.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-v2-2022-03-31/SetVoiceMessageSpendLimitOverride
+func (c *PinpointSMSVoiceV2) SetVoiceMessageSpendLimitOverride(input *SetVoiceMessageSpendLimitOverrideInput) (*SetVoiceMessageSpendLimitOverrideOutput, error) {
+ req, out := c.SetVoiceMessageSpendLimitOverrideRequest(input)
+ return out, req.Send()
+}
+
+// SetVoiceMessageSpendLimitOverrideWithContext is the same as SetVoiceMessageSpendLimitOverride with the addition of
+// the ability to pass a context and additional request options.
+//
+// See SetVoiceMessageSpendLimitOverride for details on how to use this API operation.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *PinpointSMSVoiceV2) SetVoiceMessageSpendLimitOverrideWithContext(ctx aws.Context, input *SetVoiceMessageSpendLimitOverrideInput, opts ...request.Option) (*SetVoiceMessageSpendLimitOverrideOutput, error) {
+ req, out := c.SetVoiceMessageSpendLimitOverrideRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+const opTagResource = "TagResource"
+
+// TagResourceRequest generates a "aws/request.Request" representing the
+// client's request for the TagResource operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See TagResource for more information on using the TagResource
+// API call, and error handling.
+//
+// This method is useful when you want to inject custom logic or configuration
+// into the SDK's request lifecycle. Such as custom headers, or retry logic.
+//
+//
+// // Example sending a request using the TagResourceRequest method.
+// req, resp := client.TagResourceRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-v2-2022-03-31/TagResource
+func (c *PinpointSMSVoiceV2) TagResourceRequest(input *TagResourceInput) (req *request.Request, output *TagResourceOutput) {
+ op := &request.Operation{
+ Name: opTagResource,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ }
+
+ if input == nil {
+ input = &TagResourceInput{}
+ }
+
+ output = &TagResourceOutput{}
+ req = c.newRequest(op, input, output)
+ req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
+ return
+}
+
+// TagResource API operation for Amazon Pinpoint SMS Voice V2.
+//
+// Adds or overwrites only the specified tags for the specified Amazon Pinpoint
+// SMS Voice, version 2 resource. When you specify an existing tag key, the
+// value is overwritten with the new value. Each resource can have a maximum
+// of 50 tags. Each tag consists of a key and an optional value. Tag keys must
+// be unique per resource. For more information about tags, see Tagging Amazon
+// Pinpoint resources (https://docs.aws.amazon.com/pinpoint/latest/developerguide/tagging-resources.html)
+// in the Amazon Pinpoint Developer Guide.
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for Amazon Pinpoint SMS Voice V2's
+// API operation TagResource for usage and error information.
+//
+// Returned Error Types:
+// * ServiceQuotaExceededException
+// The request would cause a service quota to be exceeded.
+//
+// * ThrottlingException
+// An error that occurred because too many requests were sent during a certain
+// amount of time.
+//
+// * AccessDeniedException
+// The request was denied because you don't have sufficient permissions to access
+// the resource.
+//
+// * ResourceNotFoundException
+// A requested resource couldn't be found.
+//
+// * ValidationException
+// A validation exception for a field.
+//
+// * InternalServerException
+// The API encountered an unexpected error and couldn't complete the request.
+// You might be able to successfully issue the request again in the future.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-v2-2022-03-31/TagResource
+func (c *PinpointSMSVoiceV2) TagResource(input *TagResourceInput) (*TagResourceOutput, error) {
+ req, out := c.TagResourceRequest(input)
+ return out, req.Send()
+}
+
+// TagResourceWithContext is the same as TagResource with the addition of
+// the ability to pass a context and additional request options.
+//
+// See TagResource for details on how to use this API operation.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *PinpointSMSVoiceV2) TagResourceWithContext(ctx aws.Context, input *TagResourceInput, opts ...request.Option) (*TagResourceOutput, error) {
+ req, out := c.TagResourceRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+const opUntagResource = "UntagResource"
+
+// UntagResourceRequest generates a "aws/request.Request" representing the
+// client's request for the UntagResource operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See UntagResource for more information on using the UntagResource
+// API call, and error handling.
+//
+// This method is useful when you want to inject custom logic or configuration
+// into the SDK's request lifecycle. Such as custom headers, or retry logic.
+//
+//
+// // Example sending a request using the UntagResourceRequest method.
+// req, resp := client.UntagResourceRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-v2-2022-03-31/UntagResource
+func (c *PinpointSMSVoiceV2) UntagResourceRequest(input *UntagResourceInput) (req *request.Request, output *UntagResourceOutput) {
+ op := &request.Operation{
+ Name: opUntagResource,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ }
+
+ if input == nil {
+ input = &UntagResourceInput{}
+ }
+
+ output = &UntagResourceOutput{}
+ req = c.newRequest(op, input, output)
+ req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
+ return
+}
+
+// UntagResource API operation for Amazon Pinpoint SMS Voice V2.
+//
+// Removes the association of the specified tags from an Amazon Pinpoint SMS
+// Voice V2 resource. For more information on tags see Tagging Amazon Pinpoint
+// resources (https://docs.aws.amazon.com/pinpoint/latest/developerguide/tagging-resources.html)
+// in the Amazon Pinpoint Developer Guide.
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for Amazon Pinpoint SMS Voice V2's
+// API operation UntagResource for usage and error information.
+//
+// Returned Error Types:
+// * ThrottlingException
+// An error that occurred because too many requests were sent during a certain
+// amount of time.
+//
+// * AccessDeniedException
+// The request was denied because you don't have sufficient permissions to access
+// the resource.
+//
+// * ResourceNotFoundException
+// A requested resource couldn't be found.
+//
+// * ValidationException
+// A validation exception for a field.
+//
+// * InternalServerException
+// The API encountered an unexpected error and couldn't complete the request.
+// You might be able to successfully issue the request again in the future.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-v2-2022-03-31/UntagResource
+func (c *PinpointSMSVoiceV2) UntagResource(input *UntagResourceInput) (*UntagResourceOutput, error) {
+ req, out := c.UntagResourceRequest(input)
+ return out, req.Send()
+}
+
+// UntagResourceWithContext is the same as UntagResource with the addition of
+// the ability to pass a context and additional request options.
+//
+// See UntagResource for details on how to use this API operation.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *PinpointSMSVoiceV2) UntagResourceWithContext(ctx aws.Context, input *UntagResourceInput, opts ...request.Option) (*UntagResourceOutput, error) {
+ req, out := c.UntagResourceRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+const opUpdateEventDestination = "UpdateEventDestination"
+
+// UpdateEventDestinationRequest generates a "aws/request.Request" representing the
+// client's request for the UpdateEventDestination operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See UpdateEventDestination for more information on using the UpdateEventDestination
+// API call, and error handling.
+//
+// This method is useful when you want to inject custom logic or configuration
+// into the SDK's request lifecycle. Such as custom headers, or retry logic.
+//
+//
+// // Example sending a request using the UpdateEventDestinationRequest method.
+// req, resp := client.UpdateEventDestinationRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-v2-2022-03-31/UpdateEventDestination
+func (c *PinpointSMSVoiceV2) UpdateEventDestinationRequest(input *UpdateEventDestinationInput) (req *request.Request, output *UpdateEventDestinationOutput) {
+ op := &request.Operation{
+ Name: opUpdateEventDestination,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ }
+
+ if input == nil {
+ input = &UpdateEventDestinationInput{}
+ }
+
+ output = &UpdateEventDestinationOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// UpdateEventDestination API operation for Amazon Pinpoint SMS Voice V2.
+//
+// Updates an existing event destination in a configuration set. You can update
+// the IAM role ARN for CloudWatch Logs and Kinesis Data Firehose. You can also
+// enable or disable the event destination.
+//
+// You may want to update an event destination to change its matching event
+// types or updating the destination resource ARN. You can't change an event
+// destination's type between CloudWatch Logs, Kinesis Data Firehose, and Amazon
+// SNS.
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for Amazon Pinpoint SMS Voice V2's
+// API operation UpdateEventDestination for usage and error information.
+//
+// Returned Error Types:
+// * ThrottlingException
+// An error that occurred because too many requests were sent during a certain
+// amount of time.
+//
+// * AccessDeniedException
+// The request was denied because you don't have sufficient permissions to access
+// the resource.
+//
+// * ResourceNotFoundException
+// A requested resource couldn't be found.
+//
+// * ValidationException
+// A validation exception for a field.
+//
+// * ConflictException
+// Your request has conflicting operations. This can occur if you're trying
+// to perform more than one operation on the same resource at the same time
+// or it could be that the requested action isn't valid for the current state
+// or configuration of the resource.
+//
+// * InternalServerException
+// The API encountered an unexpected error and couldn't complete the request.
+// You might be able to successfully issue the request again in the future.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-v2-2022-03-31/UpdateEventDestination
+func (c *PinpointSMSVoiceV2) UpdateEventDestination(input *UpdateEventDestinationInput) (*UpdateEventDestinationOutput, error) {
+ req, out := c.UpdateEventDestinationRequest(input)
+ return out, req.Send()
+}
+
+// UpdateEventDestinationWithContext is the same as UpdateEventDestination with the addition of
+// the ability to pass a context and additional request options.
+//
+// See UpdateEventDestination for details on how to use this API operation.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *PinpointSMSVoiceV2) UpdateEventDestinationWithContext(ctx aws.Context, input *UpdateEventDestinationInput, opts ...request.Option) (*UpdateEventDestinationOutput, error) {
+ req, out := c.UpdateEventDestinationRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+const opUpdatePhoneNumber = "UpdatePhoneNumber"
+
+// UpdatePhoneNumberRequest generates a "aws/request.Request" representing the
+// client's request for the UpdatePhoneNumber operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See UpdatePhoneNumber for more information on using the UpdatePhoneNumber
+// API call, and error handling.
+//
+// This method is useful when you want to inject custom logic or configuration
+// into the SDK's request lifecycle. Such as custom headers, or retry logic.
+//
+//
+// // Example sending a request using the UpdatePhoneNumberRequest method.
+// req, resp := client.UpdatePhoneNumberRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-v2-2022-03-31/UpdatePhoneNumber
+func (c *PinpointSMSVoiceV2) UpdatePhoneNumberRequest(input *UpdatePhoneNumberInput) (req *request.Request, output *UpdatePhoneNumberOutput) {
+ op := &request.Operation{
+ Name: opUpdatePhoneNumber,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ }
+
+ if input == nil {
+ input = &UpdatePhoneNumberInput{}
+ }
+
+ output = &UpdatePhoneNumberOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// UpdatePhoneNumber API operation for Amazon Pinpoint SMS Voice V2.
+//
+// Updates the configuration of an existing origination phone number. You can
+// update the opt-out list, enable or disable two-way messaging, change the
+// TwoWayChannelArn, enable or disable self-managed opt-outs, and enable or
+// disable deletion protection.
+//
+// If the origination phone number is associated with a pool, an Error is returned.
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for Amazon Pinpoint SMS Voice V2's
+// API operation UpdatePhoneNumber for usage and error information.
+//
+// Returned Error Types:
+// * ThrottlingException
+// An error that occurred because too many requests were sent during a certain
+// amount of time.
+//
+// * AccessDeniedException
+// The request was denied because you don't have sufficient permissions to access
+// the resource.
+//
+// * ResourceNotFoundException
+// A requested resource couldn't be found.
+//
+// * ValidationException
+// A validation exception for a field.
+//
+// * ConflictException
+// Your request has conflicting operations. This can occur if you're trying
+// to perform more than one operation on the same resource at the same time
+// or it could be that the requested action isn't valid for the current state
+// or configuration of the resource.
+//
+// * InternalServerException
+// The API encountered an unexpected error and couldn't complete the request.
+// You might be able to successfully issue the request again in the future.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-v2-2022-03-31/UpdatePhoneNumber
+func (c *PinpointSMSVoiceV2) UpdatePhoneNumber(input *UpdatePhoneNumberInput) (*UpdatePhoneNumberOutput, error) {
+ req, out := c.UpdatePhoneNumberRequest(input)
+ return out, req.Send()
+}
+
+// UpdatePhoneNumberWithContext is the same as UpdatePhoneNumber with the addition of
+// the ability to pass a context and additional request options.
+//
+// See UpdatePhoneNumber for details on how to use this API operation.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *PinpointSMSVoiceV2) UpdatePhoneNumberWithContext(ctx aws.Context, input *UpdatePhoneNumberInput, opts ...request.Option) (*UpdatePhoneNumberOutput, error) {
+ req, out := c.UpdatePhoneNumberRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+const opUpdatePool = "UpdatePool"
+
+// UpdatePoolRequest generates a "aws/request.Request" representing the
+// client's request for the UpdatePool operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See UpdatePool for more information on using the UpdatePool
+// API call, and error handling.
+//
+// This method is useful when you want to inject custom logic or configuration
+// into the SDK's request lifecycle. Such as custom headers, or retry logic.
+//
+//
+// // Example sending a request using the UpdatePoolRequest method.
+// req, resp := client.UpdatePoolRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-v2-2022-03-31/UpdatePool
+func (c *PinpointSMSVoiceV2) UpdatePoolRequest(input *UpdatePoolInput) (req *request.Request, output *UpdatePoolOutput) {
+ op := &request.Operation{
+ Name: opUpdatePool,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ }
+
+ if input == nil {
+ input = &UpdatePoolInput{}
+ }
+
+ output = &UpdatePoolOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// UpdatePool API operation for Amazon Pinpoint SMS Voice V2.
+//
+// Updates the configuration of an existing pool. You can update the opt-out
+// list, enable or disable two-way messaging, change the TwoWayChannelArn, enable
+// or disable self-managed opt-outs, enable or disable deletion protection,
+// and enable or disable shared routes.
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for Amazon Pinpoint SMS Voice V2's
+// API operation UpdatePool for usage and error information.
+//
+// Returned Error Types:
+// * ThrottlingException
+// An error that occurred because too many requests were sent during a certain
+// amount of time.
+//
+// * AccessDeniedException
+// The request was denied because you don't have sufficient permissions to access
+// the resource.
+//
+// * ResourceNotFoundException
+// A requested resource couldn't be found.
+//
+// * ValidationException
+// A validation exception for a field.
+//
+// * ConflictException
+// Your request has conflicting operations. This can occur if you're trying
+// to perform more than one operation on the same resource at the same time
+// or it could be that the requested action isn't valid for the current state
+// or configuration of the resource.
+//
+// * InternalServerException
+// The API encountered an unexpected error and couldn't complete the request.
+// You might be able to successfully issue the request again in the future.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-v2-2022-03-31/UpdatePool
+func (c *PinpointSMSVoiceV2) UpdatePool(input *UpdatePoolInput) (*UpdatePoolOutput, error) {
+ req, out := c.UpdatePoolRequest(input)
+ return out, req.Send()
+}
+
+// UpdatePoolWithContext is the same as UpdatePool with the addition of
+// the ability to pass a context and additional request options.
+//
+// See UpdatePool for details on how to use this API operation.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *PinpointSMSVoiceV2) UpdatePoolWithContext(ctx aws.Context, input *UpdatePoolInput, opts ...request.Option) (*UpdatePoolOutput, error) {
+ req, out := c.UpdatePoolRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+// The request was denied because you don't have sufficient permissions to access
+// the resource.
+type AccessDeniedException struct {
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
+
+ Message_ *string `locationName:"Message" type:"string"`
+
+ // The reason for the exception.
+ Reason *string `type:"string" enum:"AccessDeniedExceptionReason"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s AccessDeniedException) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s AccessDeniedException) GoString() string {
+ return s.String()
+}
+
+func newErrorAccessDeniedException(v protocol.ResponseMetadata) error {
+ return &AccessDeniedException{
+ RespMetadata: v,
+ }
+}
+
+// Code returns the exception type name.
+func (s *AccessDeniedException) Code() string {
+ return "AccessDeniedException"
+}
+
+// Message returns the exception's message.
+func (s *AccessDeniedException) Message() string {
+ if s.Message_ != nil {
+ return *s.Message_
+ }
+ return ""
+}
+
+// OrigErr always returns nil, satisfies awserr.Error interface.
+func (s *AccessDeniedException) OrigErr() error {
+ return nil
+}
+
+func (s *AccessDeniedException) Error() string {
+ return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
+}
+
+// Status code returns the HTTP status code for the request's response error.
+func (s *AccessDeniedException) StatusCode() int {
+ return s.RespMetadata.StatusCode
+}
+
+// RequestID returns the service's response RequestID for request.
+func (s *AccessDeniedException) RequestID() string {
+ return s.RespMetadata.RequestID
+}
+
+// Displays the attributes associated with a single Amazon Web Services account.
+type AccountAttribute struct {
+ _ struct{} `type:"structure"`
+
+ // The name of the account attribute.
+ //
+ // Name is a required field
+ Name *string `type:"string" required:"true" enum:"AccountAttributeName"`
+
+ // The value associated with the account attribute name.
+ //
+ // Value is a required field
+ Value *string `type:"string" required:"true"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s AccountAttribute) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s AccountAttribute) GoString() string {
+ return s.String()
+}
+
+// SetName sets the Name field's value.
+func (s *AccountAttribute) SetName(v string) *AccountAttribute {
+ s.Name = &v
+ return s
+}
+
+// SetValue sets the Value field's value.
+func (s *AccountAttribute) SetValue(v string) *AccountAttribute {
+ s.Value = &v
+ return s
+}
+
+// The current resource quotas associated with an Amazon Web Services account.
+type AccountLimit struct {
+ _ struct{} `type:"structure"`
+
+ // The Amazon Web Services set limit for that resource type, in US dollars.
+ //
+ // Max is a required field
+ Max *int64 `type:"long" required:"true"`
+
+ // The name of the attribute to apply the account limit to.
+ //
+ // Name is a required field
+ Name *string `type:"string" required:"true" enum:"AccountLimitName"`
+
+ // The current amount that has been spent, in US dollars.
+ //
+ // Used is a required field
+ Used *int64 `type:"long" required:"true"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s AccountLimit) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s AccountLimit) GoString() string {
+ return s.String()
+}
+
+// SetMax sets the Max field's value.
+func (s *AccountLimit) SetMax(v int64) *AccountLimit {
+ s.Max = &v
+ return s
+}
+
+// SetName sets the Name field's value.
+func (s *AccountLimit) SetName(v string) *AccountLimit {
+ s.Name = &v
+ return s
+}
+
+// SetUsed sets the Used field's value.
+func (s *AccountLimit) SetUsed(v int64) *AccountLimit {
+ s.Used = &v
+ return s
+}
+
+type AssociateOriginationIdentityInput struct {
+ _ struct{} `type:"structure"`
+
+ // Unique, case-sensitive identifier that you provide to ensure the idempotency
+ // of the request. If you don't specify a client token, a randomly generated
+ // token is used for the request to ensure idempotency.
+ ClientToken *string `min:"1" type:"string" idempotencyToken:"true"`
+
+ // The new two-character code, in ISO 3166-1 alpha-2 format, for the country
+ // or region of the origination identity.
+ //
+ // IsoCountryCode is a required field
+ IsoCountryCode *string `min:"2" type:"string" required:"true"`
+
+ // The origination identity to use, such as PhoneNumberId, PhoneNumberArn, SenderId,
+ // or SenderIdArn. You can use DescribePhoneNumbers to find the values for PhoneNumberId
+ // and PhoneNumberArn, while DescribeSenderIds can be used to get the values
+ // for SenderId and SenderIdArn.
+ //
+ // OriginationIdentity is a required field
+ OriginationIdentity *string `min:"1" type:"string" required:"true"`
+
+ // The pool to update with the new Identity. This value can be either the PoolId
+ // or PoolArn, and you can find these values using DescribePools.
+ //
+ // PoolId is a required field
+ PoolId *string `min:"1" type:"string" required:"true"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s AssociateOriginationIdentityInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s AssociateOriginationIdentityInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *AssociateOriginationIdentityInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "AssociateOriginationIdentityInput"}
+ if s.ClientToken != nil && len(*s.ClientToken) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("ClientToken", 1))
+ }
+ if s.IsoCountryCode == nil {
+ invalidParams.Add(request.NewErrParamRequired("IsoCountryCode"))
+ }
+ if s.IsoCountryCode != nil && len(*s.IsoCountryCode) < 2 {
+ invalidParams.Add(request.NewErrParamMinLen("IsoCountryCode", 2))
+ }
+ if s.OriginationIdentity == nil {
+ invalidParams.Add(request.NewErrParamRequired("OriginationIdentity"))
+ }
+ if s.OriginationIdentity != nil && len(*s.OriginationIdentity) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("OriginationIdentity", 1))
+ }
+ if s.PoolId == nil {
+ invalidParams.Add(request.NewErrParamRequired("PoolId"))
+ }
+ if s.PoolId != nil && len(*s.PoolId) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("PoolId", 1))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetClientToken sets the ClientToken field's value.
+func (s *AssociateOriginationIdentityInput) SetClientToken(v string) *AssociateOriginationIdentityInput {
+ s.ClientToken = &v
+ return s
+}
+
+// SetIsoCountryCode sets the IsoCountryCode field's value.
+func (s *AssociateOriginationIdentityInput) SetIsoCountryCode(v string) *AssociateOriginationIdentityInput {
+ s.IsoCountryCode = &v
+ return s
+}
+
+// SetOriginationIdentity sets the OriginationIdentity field's value.
+func (s *AssociateOriginationIdentityInput) SetOriginationIdentity(v string) *AssociateOriginationIdentityInput {
+ s.OriginationIdentity = &v
+ return s
+}
+
+// SetPoolId sets the PoolId field's value.
+func (s *AssociateOriginationIdentityInput) SetPoolId(v string) *AssociateOriginationIdentityInput {
+ s.PoolId = &v
+ return s
+}
+
+type AssociateOriginationIdentityOutput struct {
+ _ struct{} `type:"structure"`
+
+ // The two-character code, in ISO 3166-1 alpha-2 format, for the country or
+ // region.
+ IsoCountryCode *string `min:"2" type:"string"`
+
+ // The PhoneNumberId or SenderId of the origination identity.
+ OriginationIdentity *string `type:"string"`
+
+ // The PhoneNumberArn or SenderIdArn of the origination identity.
+ OriginationIdentityArn *string `type:"string"`
+
+ // The Amazon Resource Name (ARN) of the pool that is now associated with the
+ // origination identity.
+ PoolArn *string `type:"string"`
+
+ // The PoolId of the pool that is now associated with the origination identity.
+ PoolId *string `type:"string"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s AssociateOriginationIdentityOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s AssociateOriginationIdentityOutput) GoString() string {
+ return s.String()
+}
+
+// SetIsoCountryCode sets the IsoCountryCode field's value.
+func (s *AssociateOriginationIdentityOutput) SetIsoCountryCode(v string) *AssociateOriginationIdentityOutput {
+ s.IsoCountryCode = &v
+ return s
+}
+
+// SetOriginationIdentity sets the OriginationIdentity field's value.
+func (s *AssociateOriginationIdentityOutput) SetOriginationIdentity(v string) *AssociateOriginationIdentityOutput {
+ s.OriginationIdentity = &v
+ return s
+}
+
+// SetOriginationIdentityArn sets the OriginationIdentityArn field's value.
+func (s *AssociateOriginationIdentityOutput) SetOriginationIdentityArn(v string) *AssociateOriginationIdentityOutput {
+ s.OriginationIdentityArn = &v
+ return s
+}
+
+// SetPoolArn sets the PoolArn field's value.
+func (s *AssociateOriginationIdentityOutput) SetPoolArn(v string) *AssociateOriginationIdentityOutput {
+ s.PoolArn = &v
+ return s
+}
+
+// SetPoolId sets the PoolId field's value.
+func (s *AssociateOriginationIdentityOutput) SetPoolId(v string) *AssociateOriginationIdentityOutput {
+ s.PoolId = &v
+ return s
+}
+
+// Contains the destination configuration to use when publishing message sending
+// events.
+type CloudWatchLogsDestination struct {
+ _ struct{} `type:"structure"`
+
+ // The Amazon Resource Name (ARN) of an Amazon Identity and Access Management
+ // (IAM) role that is able to write event data to an Amazon CloudWatch destination.
+ //
+ // IamRoleArn is a required field
+ IamRoleArn *string `min:"20" type:"string" required:"true"`
+
+ // The name of the Amazon CloudWatch log group that you want to record events
+ // in.
+ //
+ // LogGroupArn is a required field
+ LogGroupArn *string `min:"20" type:"string" required:"true"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s CloudWatchLogsDestination) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s CloudWatchLogsDestination) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *CloudWatchLogsDestination) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "CloudWatchLogsDestination"}
+ if s.IamRoleArn == nil {
+ invalidParams.Add(request.NewErrParamRequired("IamRoleArn"))
+ }
+ if s.IamRoleArn != nil && len(*s.IamRoleArn) < 20 {
+ invalidParams.Add(request.NewErrParamMinLen("IamRoleArn", 20))
+ }
+ if s.LogGroupArn == nil {
+ invalidParams.Add(request.NewErrParamRequired("LogGroupArn"))
+ }
+ if s.LogGroupArn != nil && len(*s.LogGroupArn) < 20 {
+ invalidParams.Add(request.NewErrParamMinLen("LogGroupArn", 20))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetIamRoleArn sets the IamRoleArn field's value.
+func (s *CloudWatchLogsDestination) SetIamRoleArn(v string) *CloudWatchLogsDestination {
+ s.IamRoleArn = &v
+ return s
+}
+
+// SetLogGroupArn sets the LogGroupArn field's value.
+func (s *CloudWatchLogsDestination) SetLogGroupArn(v string) *CloudWatchLogsDestination {
+ s.LogGroupArn = &v
+ return s
+}
+
+// The information for configuration sets that meet a specified criteria.
+type ConfigurationSetFilter struct {
+ _ struct{} `type:"structure"`
+
+ // The name of the attribute to filter on.
+ //
+ // Name is a required field
+ Name *string `type:"string" required:"true" enum:"ConfigurationSetFilterName"`
+
+ // An array values to filter for.
+ //
+ // Values is a required field
+ Values []*string `min:"1" type:"list" required:"true"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s ConfigurationSetFilter) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s ConfigurationSetFilter) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *ConfigurationSetFilter) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "ConfigurationSetFilter"}
+ if s.Name == nil {
+ invalidParams.Add(request.NewErrParamRequired("Name"))
+ }
+ if s.Values == nil {
+ invalidParams.Add(request.NewErrParamRequired("Values"))
+ }
+ if s.Values != nil && len(s.Values) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("Values", 1))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetName sets the Name field's value.
+func (s *ConfigurationSetFilter) SetName(v string) *ConfigurationSetFilter {
+ s.Name = &v
+ return s
+}
+
+// SetValues sets the Values field's value.
+func (s *ConfigurationSetFilter) SetValues(v []*string) *ConfigurationSetFilter {
+ s.Values = v
+ return s
+}
+
+// Information related to a given configuration set in your Amazon Web Services
+// account.
+type ConfigurationSetInformation struct {
+ _ struct{} `type:"structure"`
+
+ // The Resource Name (ARN) of the ConfigurationSet.
+ //
+ // ConfigurationSetArn is a required field
+ ConfigurationSetArn *string `type:"string" required:"true"`
+
+ // The name of the ConfigurationSet.
+ //
+ // ConfigurationSetName is a required field
+ ConfigurationSetName *string `min:"1" type:"string" required:"true"`
+
+ // The time when the ConfigurationSet was created, in UNIX epoch time (https://www.epochconverter.com/)
+ // format.
+ //
+ // CreatedTimestamp is a required field
+ CreatedTimestamp *time.Time `type:"timestamp" required:"true"`
+
+ // The type of message. Valid values are TRANSACTIONAL for messages that are
+ // critical or time-sensitive and PROMOTIONAL for messages that aren't critical
+ // or time-sensitive.
+ DefaultMessageType *string `type:"string" enum:"MessageType"`
+
+ // The default sender ID used by the ConfigurationSet.
+ DefaultSenderId *string `min:"1" type:"string"`
+
+ // An array of EventDestination objects that describe any events to log and
+ // where to log them.
+ //
+ // EventDestinations is a required field
+ EventDestinations []*EventDestination `type:"list" required:"true"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s ConfigurationSetInformation) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s ConfigurationSetInformation) GoString() string {
+ return s.String()
+}
+
+// SetConfigurationSetArn sets the ConfigurationSetArn field's value.
+func (s *ConfigurationSetInformation) SetConfigurationSetArn(v string) *ConfigurationSetInformation {
+ s.ConfigurationSetArn = &v
+ return s
+}
+
+// SetConfigurationSetName sets the ConfigurationSetName field's value.
+func (s *ConfigurationSetInformation) SetConfigurationSetName(v string) *ConfigurationSetInformation {
+ s.ConfigurationSetName = &v
+ return s
+}
+
+// SetCreatedTimestamp sets the CreatedTimestamp field's value.
+func (s *ConfigurationSetInformation) SetCreatedTimestamp(v time.Time) *ConfigurationSetInformation {
+ s.CreatedTimestamp = &v
+ return s
+}
+
+// SetDefaultMessageType sets the DefaultMessageType field's value.
+func (s *ConfigurationSetInformation) SetDefaultMessageType(v string) *ConfigurationSetInformation {
+ s.DefaultMessageType = &v
+ return s
+}
+
+// SetDefaultSenderId sets the DefaultSenderId field's value.
+func (s *ConfigurationSetInformation) SetDefaultSenderId(v string) *ConfigurationSetInformation {
+ s.DefaultSenderId = &v
+ return s
+}
+
+// SetEventDestinations sets the EventDestinations field's value.
+func (s *ConfigurationSetInformation) SetEventDestinations(v []*EventDestination) *ConfigurationSetInformation {
+ s.EventDestinations = v
+ return s
+}
+
+// Your request has conflicting operations. This can occur if you're trying
+// to perform more than one operation on the same resource at the same time
+// or it could be that the requested action isn't valid for the current state
+// or configuration of the resource.
+type ConflictException struct {
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
+
+ Message_ *string `locationName:"Message" type:"string"`
+
+ // The reason for the exception.
+ Reason *string `type:"string" enum:"ConflictExceptionReason"`
+
+ // The unique identifier of the request.
+ ResourceId *string `type:"string"`
+
+ // The type of resource that caused the exception.
+ ResourceType *string `type:"string" enum:"ResourceType"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s ConflictException) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s ConflictException) GoString() string {
+ return s.String()
+}
+
+func newErrorConflictException(v protocol.ResponseMetadata) error {
+ return &ConflictException{
+ RespMetadata: v,
+ }
+}
+
+// Code returns the exception type name.
+func (s *ConflictException) Code() string {
+ return "ConflictException"
+}
+
+// Message returns the exception's message.
+func (s *ConflictException) Message() string {
+ if s.Message_ != nil {
+ return *s.Message_
+ }
+ return ""
+}
+
+// OrigErr always returns nil, satisfies awserr.Error interface.
+func (s *ConflictException) OrigErr() error {
+ return nil
+}
+
+func (s *ConflictException) Error() string {
+ return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
+}
+
+// Status code returns the HTTP status code for the request's response error.
+func (s *ConflictException) StatusCode() int {
+ return s.RespMetadata.StatusCode
+}
+
+// RequestID returns the service's response RequestID for request.
+func (s *ConflictException) RequestID() string {
+ return s.RespMetadata.RequestID
+}
+
+type CreateConfigurationSetInput struct {
+ _ struct{} `type:"structure"`
+
+ // Unique, case-sensitive identifier that you provide to ensure the idempotency
+ // of the request. If you don't specify a client token, a randomly generated
+ // token is used for the request to ensure idempotency.
+ ClientToken *string `min:"1" type:"string" idempotencyToken:"true"`
+
+ // The name to use for the new configuration set.
+ //
+ // ConfigurationSetName is a required field
+ ConfigurationSetName *string `min:"1" type:"string" required:"true"`
+
+ // An array of key and value pair tags that's associated with the new configuration
+ // set.
+ Tags []*Tag `type:"list"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s CreateConfigurationSetInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s CreateConfigurationSetInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *CreateConfigurationSetInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "CreateConfigurationSetInput"}
+ if s.ClientToken != nil && len(*s.ClientToken) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("ClientToken", 1))
+ }
+ if s.ConfigurationSetName == nil {
+ invalidParams.Add(request.NewErrParamRequired("ConfigurationSetName"))
+ }
+ if s.ConfigurationSetName != nil && len(*s.ConfigurationSetName) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("ConfigurationSetName", 1))
+ }
+ if s.Tags != nil {
+ for i, v := range s.Tags {
+ if v == nil {
+ continue
+ }
+ if err := v.Validate(); err != nil {
+ invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams))
+ }
+ }
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetClientToken sets the ClientToken field's value.
+func (s *CreateConfigurationSetInput) SetClientToken(v string) *CreateConfigurationSetInput {
+ s.ClientToken = &v
+ return s
+}
+
+// SetConfigurationSetName sets the ConfigurationSetName field's value.
+func (s *CreateConfigurationSetInput) SetConfigurationSetName(v string) *CreateConfigurationSetInput {
+ s.ConfigurationSetName = &v
+ return s
+}
+
+// SetTags sets the Tags field's value.
+func (s *CreateConfigurationSetInput) SetTags(v []*Tag) *CreateConfigurationSetInput {
+ s.Tags = v
+ return s
+}
+
+type CreateConfigurationSetOutput struct {
+ _ struct{} `type:"structure"`
+
+ // The Amazon Resource Name (ARN) of the newly created configuration set.
+ ConfigurationSetArn *string `type:"string"`
+
+ // The name of the new configuration set.
+ ConfigurationSetName *string `min:"1" type:"string"`
+
+ // The time when the configuration set was created, in UNIX epoch time (https://www.epochconverter.com/)
+ // format.
+ CreatedTimestamp *time.Time `type:"timestamp"`
+
+ // An array of key and value pair tags that's associated with the configuration
+ // set.
+ Tags []*Tag `type:"list"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s CreateConfigurationSetOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s CreateConfigurationSetOutput) GoString() string {
+ return s.String()
+}
+
+// SetConfigurationSetArn sets the ConfigurationSetArn field's value.
+func (s *CreateConfigurationSetOutput) SetConfigurationSetArn(v string) *CreateConfigurationSetOutput {
+ s.ConfigurationSetArn = &v
+ return s
+}
+
+// SetConfigurationSetName sets the ConfigurationSetName field's value.
+func (s *CreateConfigurationSetOutput) SetConfigurationSetName(v string) *CreateConfigurationSetOutput {
+ s.ConfigurationSetName = &v
+ return s
+}
+
+// SetCreatedTimestamp sets the CreatedTimestamp field's value.
+func (s *CreateConfigurationSetOutput) SetCreatedTimestamp(v time.Time) *CreateConfigurationSetOutput {
+ s.CreatedTimestamp = &v
+ return s
+}
+
+// SetTags sets the Tags field's value.
+func (s *CreateConfigurationSetOutput) SetTags(v []*Tag) *CreateConfigurationSetOutput {
+ s.Tags = v
+ return s
+}
+
+type CreateEventDestinationInput struct {
+ _ struct{} `type:"structure"`
+
+ // Unique, case-sensitive identifier that you provide to ensure the idempotency
+ // of the request. If you don't specify a client token, a randomly generated
+ // token is used for the request to ensure idempotency.
+ ClientToken *string `min:"1" type:"string" idempotencyToken:"true"`
+
+ // An object that contains information about an event destination for logging
+ // to Amazon CloudWatch logs.
+ CloudWatchLogsDestination *CloudWatchLogsDestination `type:"structure"`
+
+ // Either the name of the configuration set or the configuration set ARN to
+ // apply event logging to. The ConfigurateSetName and ConfigurationSetArn can
+ // be found using the DescribeConfigurationSets action.
+ //
+ // ConfigurationSetName is a required field
+ ConfigurationSetName *string `min:"1" type:"string" required:"true"`
+
+ // The name that identifies the event destination.
+ //
+ // EventDestinationName is a required field
+ EventDestinationName *string `min:"1" type:"string" required:"true"`
+
+ // An object that contains information about an event destination for logging
+ // to Amazon Kinesis Data Firehose.
+ KinesisFirehoseDestination *KinesisFirehoseDestination `type:"structure"`
+
+ // An array of event types that determine which events to log. If "ALL" is used,
+ // then Amazon Pinpoint logs every event type.
+ //
+ // MatchingEventTypes is a required field
+ MatchingEventTypes []*string `min:"1" type:"list" required:"true" enum:"EventType"`
+
+ // An object that contains information about an event destination for logging
+ // to Amazon SNS.
+ SnsDestination *SnsDestination `type:"structure"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s CreateEventDestinationInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s CreateEventDestinationInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *CreateEventDestinationInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "CreateEventDestinationInput"}
+ if s.ClientToken != nil && len(*s.ClientToken) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("ClientToken", 1))
+ }
+ if s.ConfigurationSetName == nil {
+ invalidParams.Add(request.NewErrParamRequired("ConfigurationSetName"))
+ }
+ if s.ConfigurationSetName != nil && len(*s.ConfigurationSetName) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("ConfigurationSetName", 1))
+ }
+ if s.EventDestinationName == nil {
+ invalidParams.Add(request.NewErrParamRequired("EventDestinationName"))
+ }
+ if s.EventDestinationName != nil && len(*s.EventDestinationName) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("EventDestinationName", 1))
+ }
+ if s.MatchingEventTypes == nil {
+ invalidParams.Add(request.NewErrParamRequired("MatchingEventTypes"))
+ }
+ if s.MatchingEventTypes != nil && len(s.MatchingEventTypes) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("MatchingEventTypes", 1))
+ }
+ if s.CloudWatchLogsDestination != nil {
+ if err := s.CloudWatchLogsDestination.Validate(); err != nil {
+ invalidParams.AddNested("CloudWatchLogsDestination", err.(request.ErrInvalidParams))
+ }
+ }
+ if s.KinesisFirehoseDestination != nil {
+ if err := s.KinesisFirehoseDestination.Validate(); err != nil {
+ invalidParams.AddNested("KinesisFirehoseDestination", err.(request.ErrInvalidParams))
+ }
+ }
+ if s.SnsDestination != nil {
+ if err := s.SnsDestination.Validate(); err != nil {
+ invalidParams.AddNested("SnsDestination", err.(request.ErrInvalidParams))
+ }
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetClientToken sets the ClientToken field's value.
+func (s *CreateEventDestinationInput) SetClientToken(v string) *CreateEventDestinationInput {
+ s.ClientToken = &v
+ return s
+}
+
+// SetCloudWatchLogsDestination sets the CloudWatchLogsDestination field's value.
+func (s *CreateEventDestinationInput) SetCloudWatchLogsDestination(v *CloudWatchLogsDestination) *CreateEventDestinationInput {
+ s.CloudWatchLogsDestination = v
+ return s
+}
+
+// SetConfigurationSetName sets the ConfigurationSetName field's value.
+func (s *CreateEventDestinationInput) SetConfigurationSetName(v string) *CreateEventDestinationInput {
+ s.ConfigurationSetName = &v
+ return s
+}
+
+// SetEventDestinationName sets the EventDestinationName field's value.
+func (s *CreateEventDestinationInput) SetEventDestinationName(v string) *CreateEventDestinationInput {
+ s.EventDestinationName = &v
+ return s
+}
+
+// SetKinesisFirehoseDestination sets the KinesisFirehoseDestination field's value.
+func (s *CreateEventDestinationInput) SetKinesisFirehoseDestination(v *KinesisFirehoseDestination) *CreateEventDestinationInput {
+ s.KinesisFirehoseDestination = v
+ return s
+}
+
+// SetMatchingEventTypes sets the MatchingEventTypes field's value.
+func (s *CreateEventDestinationInput) SetMatchingEventTypes(v []*string) *CreateEventDestinationInput {
+ s.MatchingEventTypes = v
+ return s
+}
+
+// SetSnsDestination sets the SnsDestination field's value.
+func (s *CreateEventDestinationInput) SetSnsDestination(v *SnsDestination) *CreateEventDestinationInput {
+ s.SnsDestination = v
+ return s
+}
+
+type CreateEventDestinationOutput struct {
+ _ struct{} `type:"structure"`
+
+ // The ARN of the configuration set.
+ ConfigurationSetArn *string `type:"string"`
+
+ // The name of the configuration set.
+ ConfigurationSetName *string `min:"1" type:"string"`
+
+ // The details of the destination where events are logged.
+ EventDestination *EventDestination `type:"structure"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s CreateEventDestinationOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s CreateEventDestinationOutput) GoString() string {
+ return s.String()
+}
+
+// SetConfigurationSetArn sets the ConfigurationSetArn field's value.
+func (s *CreateEventDestinationOutput) SetConfigurationSetArn(v string) *CreateEventDestinationOutput {
+ s.ConfigurationSetArn = &v
+ return s
+}
+
+// SetConfigurationSetName sets the ConfigurationSetName field's value.
+func (s *CreateEventDestinationOutput) SetConfigurationSetName(v string) *CreateEventDestinationOutput {
+ s.ConfigurationSetName = &v
+ return s
+}
+
+// SetEventDestination sets the EventDestination field's value.
+func (s *CreateEventDestinationOutput) SetEventDestination(v *EventDestination) *CreateEventDestinationOutput {
+ s.EventDestination = v
+ return s
+}
+
+type CreateOptOutListInput struct {
+ _ struct{} `type:"structure"`
+
+ // Unique, case-sensitive identifier that you provide to ensure the idempotency
+ // of the request. If you don't specify a client token, a randomly generated
+ // token is used for the request to ensure idempotency.
+ ClientToken *string `min:"1" type:"string" idempotencyToken:"true"`
+
+ // The name of the new OptOutList.
+ //
+ // OptOutListName is a required field
+ OptOutListName *string `min:"1" type:"string" required:"true"`
+
+ // An array of tags (key and value pairs) to associate with the new OptOutList.
+ Tags []*Tag `type:"list"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s CreateOptOutListInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s CreateOptOutListInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *CreateOptOutListInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "CreateOptOutListInput"}
+ if s.ClientToken != nil && len(*s.ClientToken) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("ClientToken", 1))
+ }
+ if s.OptOutListName == nil {
+ invalidParams.Add(request.NewErrParamRequired("OptOutListName"))
+ }
+ if s.OptOutListName != nil && len(*s.OptOutListName) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("OptOutListName", 1))
+ }
+ if s.Tags != nil {
+ for i, v := range s.Tags {
+ if v == nil {
+ continue
+ }
+ if err := v.Validate(); err != nil {
+ invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams))
+ }
+ }
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetClientToken sets the ClientToken field's value.
+func (s *CreateOptOutListInput) SetClientToken(v string) *CreateOptOutListInput {
+ s.ClientToken = &v
+ return s
+}
+
+// SetOptOutListName sets the OptOutListName field's value.
+func (s *CreateOptOutListInput) SetOptOutListName(v string) *CreateOptOutListInput {
+ s.OptOutListName = &v
+ return s
+}
+
+// SetTags sets the Tags field's value.
+func (s *CreateOptOutListInput) SetTags(v []*Tag) *CreateOptOutListInput {
+ s.Tags = v
+ return s
+}
+
+type CreateOptOutListOutput struct {
+ _ struct{} `type:"structure"`
+
+ // The time when the pool was created, in UNIX epoch time (https://www.epochconverter.com/)
+ // format.
+ CreatedTimestamp *time.Time `type:"timestamp"`
+
+ // The Amazon Resource Name (ARN) for the OptOutList.
+ OptOutListArn *string `type:"string"`
+
+ // The name of the new OptOutList.
+ OptOutListName *string `min:"1" type:"string"`
+
+ // An array of tags (key and value pairs) associated with the new OptOutList.
+ Tags []*Tag `type:"list"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s CreateOptOutListOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s CreateOptOutListOutput) GoString() string {
+ return s.String()
+}
+
+// SetCreatedTimestamp sets the CreatedTimestamp field's value.
+func (s *CreateOptOutListOutput) SetCreatedTimestamp(v time.Time) *CreateOptOutListOutput {
+ s.CreatedTimestamp = &v
+ return s
+}
+
+// SetOptOutListArn sets the OptOutListArn field's value.
+func (s *CreateOptOutListOutput) SetOptOutListArn(v string) *CreateOptOutListOutput {
+ s.OptOutListArn = &v
+ return s
+}
+
+// SetOptOutListName sets the OptOutListName field's value.
+func (s *CreateOptOutListOutput) SetOptOutListName(v string) *CreateOptOutListOutput {
+ s.OptOutListName = &v
+ return s
+}
+
+// SetTags sets the Tags field's value.
+func (s *CreateOptOutListOutput) SetTags(v []*Tag) *CreateOptOutListOutput {
+ s.Tags = v
+ return s
+}
+
+type CreatePoolInput struct {
+ _ struct{} `type:"structure"`
+
+ // Unique, case-sensitive identifier that you provide to ensure the idempotency
+ // of the request. If you don't specify a client token, a randomly generated
+ // token is used for the request to ensure idempotency.
+ ClientToken *string `min:"1" type:"string" idempotencyToken:"true"`
+
+ // By default this is set to false. When set to true the pool can't be deleted.
+ // You can change this value using the UpdatePool action.
+ DeletionProtectionEnabled *bool `type:"boolean"`
+
+ // The new two-character code, in ISO 3166-1 alpha-2 format, for the country
+ // or region of the new pool.
+ //
+ // IsoCountryCode is a required field
+ IsoCountryCode *string `min:"2" type:"string" required:"true"`
+
+ // The type of message. Valid values are TRANSACTIONAL for messages that are
+ // critical or time-sensitive and PROMOTIONAL for messages that aren't critical
+ // or time-sensitive.
+ //
+ // MessageType is a required field
+ MessageType *string `type:"string" required:"true" enum:"MessageType"`
+
+ // The origination identity to use such as a PhoneNumberId, PhoneNumberArn,
+ // SenderId or SenderIdArn. You can use DescribePhoneNumbers to find the values
+ // for PhoneNumberId and PhoneNumberArn while DescribeSenderIds can be used
+ // to get the values for SenderId and SenderIdArn.
+ //
+ // OriginationIdentity is a required field
+ OriginationIdentity *string `min:"1" type:"string" required:"true"`
+
+ // An array of tags (key and value pairs) associated with the pool.
+ Tags []*Tag `type:"list"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s CreatePoolInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s CreatePoolInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *CreatePoolInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "CreatePoolInput"}
+ if s.ClientToken != nil && len(*s.ClientToken) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("ClientToken", 1))
+ }
+ if s.IsoCountryCode == nil {
+ invalidParams.Add(request.NewErrParamRequired("IsoCountryCode"))
+ }
+ if s.IsoCountryCode != nil && len(*s.IsoCountryCode) < 2 {
+ invalidParams.Add(request.NewErrParamMinLen("IsoCountryCode", 2))
+ }
+ if s.MessageType == nil {
+ invalidParams.Add(request.NewErrParamRequired("MessageType"))
+ }
+ if s.OriginationIdentity == nil {
+ invalidParams.Add(request.NewErrParamRequired("OriginationIdentity"))
+ }
+ if s.OriginationIdentity != nil && len(*s.OriginationIdentity) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("OriginationIdentity", 1))
+ }
+ if s.Tags != nil {
+ for i, v := range s.Tags {
+ if v == nil {
+ continue
+ }
+ if err := v.Validate(); err != nil {
+ invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams))
+ }
+ }
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetClientToken sets the ClientToken field's value.
+func (s *CreatePoolInput) SetClientToken(v string) *CreatePoolInput {
+ s.ClientToken = &v
+ return s
+}
+
+// SetDeletionProtectionEnabled sets the DeletionProtectionEnabled field's value.
+func (s *CreatePoolInput) SetDeletionProtectionEnabled(v bool) *CreatePoolInput {
+ s.DeletionProtectionEnabled = &v
+ return s
+}
+
+// SetIsoCountryCode sets the IsoCountryCode field's value.
+func (s *CreatePoolInput) SetIsoCountryCode(v string) *CreatePoolInput {
+ s.IsoCountryCode = &v
+ return s
+}
+
+// SetMessageType sets the MessageType field's value.
+func (s *CreatePoolInput) SetMessageType(v string) *CreatePoolInput {
+ s.MessageType = &v
+ return s
+}
+
+// SetOriginationIdentity sets the OriginationIdentity field's value.
+func (s *CreatePoolInput) SetOriginationIdentity(v string) *CreatePoolInput {
+ s.OriginationIdentity = &v
+ return s
+}
+
+// SetTags sets the Tags field's value.
+func (s *CreatePoolInput) SetTags(v []*Tag) *CreatePoolInput {
+ s.Tags = v
+ return s
+}
+
+type CreatePoolOutput struct {
+ _ struct{} `type:"structure"`
+
+ // The time when the pool was created, in UNIX epoch time (https://www.epochconverter.com/)
+ // format.
+ CreatedTimestamp *time.Time `type:"timestamp"`
+
+ // When set to true deletion protection is enabled. By default this is set to
+ // false.
+ DeletionProtectionEnabled *bool `type:"boolean"`
+
+ // The type of message for the pool to use.
+ MessageType *string `type:"string" enum:"MessageType"`
+
+ // The name of the OptOutList associated with the pool.
+ OptOutListName *string `min:"1" type:"string"`
+
+ // The Amazon Resource Name (ARN) for the pool.
+ PoolArn *string `type:"string"`
+
+ // The unique identifier for the pool.
+ PoolId *string `type:"string"`
+
+ // By default this is set to false. When an end recipient sends a message that
+ // begins with HELP or STOP to one of your dedicated numbers, Amazon Pinpoint
+ // automatically replies with a customizable message and adds the end recipient
+ // to the OptOutList. When set to true you're responsible for responding to
+ // HELP and STOP requests. You're also responsible for tracking and honoring
+ // opt-out requests.
+ SelfManagedOptOutsEnabled *bool `type:"boolean"`
+
+ // Indicates whether shared routes are enabled for the pool.
+ SharedRoutesEnabled *bool `type:"boolean"`
+
+ // The current status of the pool.
+ //
+ // * CREATING: The pool is currently being created and isn't yet available
+ // for use.
+ //
+ // * ACTIVE: The pool is active and available for use.
+ //
+ // * DELETING: The pool is being deleted.
+ Status *string `type:"string" enum:"PoolStatus"`
+
+ // An array of tags (key and value pairs) associated with the pool.
+ Tags []*Tag `type:"list"`
+
+ // The Amazon Resource Name (ARN) of the two way channel.
+ TwoWayChannelArn *string `min:"20" type:"string"`
+
+ // By default this is set to false. When set to true you can receive incoming
+ // text messages from your end recipients.
+ TwoWayEnabled *bool `type:"boolean"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s CreatePoolOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s CreatePoolOutput) GoString() string {
+ return s.String()
+}
+
+// SetCreatedTimestamp sets the CreatedTimestamp field's value.
+func (s *CreatePoolOutput) SetCreatedTimestamp(v time.Time) *CreatePoolOutput {
+ s.CreatedTimestamp = &v
+ return s
+}
+
+// SetDeletionProtectionEnabled sets the DeletionProtectionEnabled field's value.
+func (s *CreatePoolOutput) SetDeletionProtectionEnabled(v bool) *CreatePoolOutput {
+ s.DeletionProtectionEnabled = &v
+ return s
+}
+
+// SetMessageType sets the MessageType field's value.
+func (s *CreatePoolOutput) SetMessageType(v string) *CreatePoolOutput {
+ s.MessageType = &v
+ return s
+}
+
+// SetOptOutListName sets the OptOutListName field's value.
+func (s *CreatePoolOutput) SetOptOutListName(v string) *CreatePoolOutput {
+ s.OptOutListName = &v
+ return s
+}
+
+// SetPoolArn sets the PoolArn field's value.
+func (s *CreatePoolOutput) SetPoolArn(v string) *CreatePoolOutput {
+ s.PoolArn = &v
+ return s
+}
+
+// SetPoolId sets the PoolId field's value.
+func (s *CreatePoolOutput) SetPoolId(v string) *CreatePoolOutput {
+ s.PoolId = &v
+ return s
+}
+
+// SetSelfManagedOptOutsEnabled sets the SelfManagedOptOutsEnabled field's value.
+func (s *CreatePoolOutput) SetSelfManagedOptOutsEnabled(v bool) *CreatePoolOutput {
+ s.SelfManagedOptOutsEnabled = &v
+ return s
+}
+
+// SetSharedRoutesEnabled sets the SharedRoutesEnabled field's value.
+func (s *CreatePoolOutput) SetSharedRoutesEnabled(v bool) *CreatePoolOutput {
+ s.SharedRoutesEnabled = &v
+ return s
+}
+
+// SetStatus sets the Status field's value.
+func (s *CreatePoolOutput) SetStatus(v string) *CreatePoolOutput {
+ s.Status = &v
+ return s
+}
+
+// SetTags sets the Tags field's value.
+func (s *CreatePoolOutput) SetTags(v []*Tag) *CreatePoolOutput {
+ s.Tags = v
+ return s
+}
+
+// SetTwoWayChannelArn sets the TwoWayChannelArn field's value.
+func (s *CreatePoolOutput) SetTwoWayChannelArn(v string) *CreatePoolOutput {
+ s.TwoWayChannelArn = &v
+ return s
+}
+
+// SetTwoWayEnabled sets the TwoWayEnabled field's value.
+func (s *CreatePoolOutput) SetTwoWayEnabled(v bool) *CreatePoolOutput {
+ s.TwoWayEnabled = &v
+ return s
+}
+
+type DeleteConfigurationSetInput struct {
+ _ struct{} `type:"structure"`
+
+ // The name of the configuration set or the configuration set ARN that you want
+ // to delete. The ConfigurationSetName and ConfigurationSetArn can be found
+ // using the DescribeConfigurationSets action.
+ //
+ // ConfigurationSetName is a required field
+ ConfigurationSetName *string `min:"1" type:"string" required:"true"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DeleteConfigurationSetInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DeleteConfigurationSetInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *DeleteConfigurationSetInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "DeleteConfigurationSetInput"}
+ if s.ConfigurationSetName == nil {
+ invalidParams.Add(request.NewErrParamRequired("ConfigurationSetName"))
+ }
+ if s.ConfigurationSetName != nil && len(*s.ConfigurationSetName) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("ConfigurationSetName", 1))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetConfigurationSetName sets the ConfigurationSetName field's value.
+func (s *DeleteConfigurationSetInput) SetConfigurationSetName(v string) *DeleteConfigurationSetInput {
+ s.ConfigurationSetName = &v
+ return s
+}
+
+type DeleteConfigurationSetOutput struct {
+ _ struct{} `type:"structure"`
+
+ // The Amazon Resource Name (ARN) of the deleted configuration set.
+ ConfigurationSetArn *string `type:"string"`
+
+ // The name of the deleted configuration set.
+ ConfigurationSetName *string `min:"1" type:"string"`
+
+ // The time that the deleted configuration set was created in UNIX epoch time
+ // (https://www.epochconverter.com/) format.
+ CreatedTimestamp *time.Time `type:"timestamp"`
+
+ // The default message type of the configuration set that was deleted.
+ DefaultMessageType *string `type:"string" enum:"MessageType"`
+
+ // The default Sender ID of the configuration set that was deleted.
+ DefaultSenderId *string `min:"1" type:"string"`
+
+ // An array of any EventDestination objects that were associated with the deleted
+ // configuration set.
+ EventDestinations []*EventDestination `type:"list"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DeleteConfigurationSetOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DeleteConfigurationSetOutput) GoString() string {
+ return s.String()
+}
+
+// SetConfigurationSetArn sets the ConfigurationSetArn field's value.
+func (s *DeleteConfigurationSetOutput) SetConfigurationSetArn(v string) *DeleteConfigurationSetOutput {
+ s.ConfigurationSetArn = &v
+ return s
+}
+
+// SetConfigurationSetName sets the ConfigurationSetName field's value.
+func (s *DeleteConfigurationSetOutput) SetConfigurationSetName(v string) *DeleteConfigurationSetOutput {
+ s.ConfigurationSetName = &v
+ return s
+}
+
+// SetCreatedTimestamp sets the CreatedTimestamp field's value.
+func (s *DeleteConfigurationSetOutput) SetCreatedTimestamp(v time.Time) *DeleteConfigurationSetOutput {
+ s.CreatedTimestamp = &v
+ return s
+}
+
+// SetDefaultMessageType sets the DefaultMessageType field's value.
+func (s *DeleteConfigurationSetOutput) SetDefaultMessageType(v string) *DeleteConfigurationSetOutput {
+ s.DefaultMessageType = &v
+ return s
+}
+
+// SetDefaultSenderId sets the DefaultSenderId field's value.
+func (s *DeleteConfigurationSetOutput) SetDefaultSenderId(v string) *DeleteConfigurationSetOutput {
+ s.DefaultSenderId = &v
+ return s
+}
+
+// SetEventDestinations sets the EventDestinations field's value.
+func (s *DeleteConfigurationSetOutput) SetEventDestinations(v []*EventDestination) *DeleteConfigurationSetOutput {
+ s.EventDestinations = v
+ return s
+}
+
+type DeleteDefaultMessageTypeInput struct {
+ _ struct{} `type:"structure"`
+
+ // The name of the configuration set or the configuration set Amazon Resource
+ // Name (ARN) to delete the default message type from. The ConfigurationSetName
+ // and ConfigurationSetArn can be found using the DescribeConfigurationSets
+ // action.
+ //
+ // ConfigurationSetName is a required field
+ ConfigurationSetName *string `min:"1" type:"string" required:"true"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DeleteDefaultMessageTypeInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DeleteDefaultMessageTypeInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *DeleteDefaultMessageTypeInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "DeleteDefaultMessageTypeInput"}
+ if s.ConfigurationSetName == nil {
+ invalidParams.Add(request.NewErrParamRequired("ConfigurationSetName"))
+ }
+ if s.ConfigurationSetName != nil && len(*s.ConfigurationSetName) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("ConfigurationSetName", 1))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetConfigurationSetName sets the ConfigurationSetName field's value.
+func (s *DeleteDefaultMessageTypeInput) SetConfigurationSetName(v string) *DeleteDefaultMessageTypeInput {
+ s.ConfigurationSetName = &v
+ return s
+}
+
+type DeleteDefaultMessageTypeOutput struct {
+ _ struct{} `type:"structure"`
+
+ // The Amazon Resource Name (ARN) of the configuration set.
+ ConfigurationSetArn *string `type:"string"`
+
+ // The name of the configuration set.
+ ConfigurationSetName *string `min:"1" type:"string"`
+
+ // The current message type for the configuration set.
+ MessageType *string `type:"string" enum:"MessageType"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DeleteDefaultMessageTypeOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DeleteDefaultMessageTypeOutput) GoString() string {
+ return s.String()
+}
+
+// SetConfigurationSetArn sets the ConfigurationSetArn field's value.
+func (s *DeleteDefaultMessageTypeOutput) SetConfigurationSetArn(v string) *DeleteDefaultMessageTypeOutput {
+ s.ConfigurationSetArn = &v
+ return s
+}
+
+// SetConfigurationSetName sets the ConfigurationSetName field's value.
+func (s *DeleteDefaultMessageTypeOutput) SetConfigurationSetName(v string) *DeleteDefaultMessageTypeOutput {
+ s.ConfigurationSetName = &v
+ return s
+}
+
+// SetMessageType sets the MessageType field's value.
+func (s *DeleteDefaultMessageTypeOutput) SetMessageType(v string) *DeleteDefaultMessageTypeOutput {
+ s.MessageType = &v
+ return s
+}
+
+type DeleteDefaultSenderIdInput struct {
+ _ struct{} `type:"structure"`
+
+ // The name of the configuration set or the configuration set Amazon Resource
+ // Name (ARN) to delete the default sender ID from. The ConfigurationSetName
+ // and ConfigurationSetArn can be found using the DescribeConfigurationSets
+ // action.
+ //
+ // ConfigurationSetName is a required field
+ ConfigurationSetName *string `min:"1" type:"string" required:"true"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DeleteDefaultSenderIdInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DeleteDefaultSenderIdInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *DeleteDefaultSenderIdInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "DeleteDefaultSenderIdInput"}
+ if s.ConfigurationSetName == nil {
+ invalidParams.Add(request.NewErrParamRequired("ConfigurationSetName"))
+ }
+ if s.ConfigurationSetName != nil && len(*s.ConfigurationSetName) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("ConfigurationSetName", 1))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetConfigurationSetName sets the ConfigurationSetName field's value.
+func (s *DeleteDefaultSenderIdInput) SetConfigurationSetName(v string) *DeleteDefaultSenderIdInput {
+ s.ConfigurationSetName = &v
+ return s
+}
+
+type DeleteDefaultSenderIdOutput struct {
+ _ struct{} `type:"structure"`
+
+ // The Amazon Resource Name (ARN) of the configuration set.
+ ConfigurationSetArn *string `type:"string"`
+
+ // The name of the configuration set.
+ ConfigurationSetName *string `min:"1" type:"string"`
+
+ // The current sender ID for the configuration set.
+ SenderId *string `min:"1" type:"string"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DeleteDefaultSenderIdOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DeleteDefaultSenderIdOutput) GoString() string {
+ return s.String()
+}
+
+// SetConfigurationSetArn sets the ConfigurationSetArn field's value.
+func (s *DeleteDefaultSenderIdOutput) SetConfigurationSetArn(v string) *DeleteDefaultSenderIdOutput {
+ s.ConfigurationSetArn = &v
+ return s
+}
+
+// SetConfigurationSetName sets the ConfigurationSetName field's value.
+func (s *DeleteDefaultSenderIdOutput) SetConfigurationSetName(v string) *DeleteDefaultSenderIdOutput {
+ s.ConfigurationSetName = &v
+ return s
+}
+
+// SetSenderId sets the SenderId field's value.
+func (s *DeleteDefaultSenderIdOutput) SetSenderId(v string) *DeleteDefaultSenderIdOutput {
+ s.SenderId = &v
+ return s
+}
+
+type DeleteEventDestinationInput struct {
+ _ struct{} `type:"structure"`
+
+ // The name of the configuration set or the configuration set's Amazon Resource
+ // Name (ARN) to remove the event destination from. The ConfigurateSetName and
+ // ConfigurationSetArn can be found using the DescribeConfigurationSets action.
+ //
+ // ConfigurationSetName is a required field
+ ConfigurationSetName *string `min:"1" type:"string" required:"true"`
+
+ // The name of the event destination to delete.
+ //
+ // EventDestinationName is a required field
+ EventDestinationName *string `min:"1" type:"string" required:"true"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DeleteEventDestinationInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DeleteEventDestinationInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *DeleteEventDestinationInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "DeleteEventDestinationInput"}
+ if s.ConfigurationSetName == nil {
+ invalidParams.Add(request.NewErrParamRequired("ConfigurationSetName"))
+ }
+ if s.ConfigurationSetName != nil && len(*s.ConfigurationSetName) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("ConfigurationSetName", 1))
+ }
+ if s.EventDestinationName == nil {
+ invalidParams.Add(request.NewErrParamRequired("EventDestinationName"))
+ }
+ if s.EventDestinationName != nil && len(*s.EventDestinationName) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("EventDestinationName", 1))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetConfigurationSetName sets the ConfigurationSetName field's value.
+func (s *DeleteEventDestinationInput) SetConfigurationSetName(v string) *DeleteEventDestinationInput {
+ s.ConfigurationSetName = &v
+ return s
+}
+
+// SetEventDestinationName sets the EventDestinationName field's value.
+func (s *DeleteEventDestinationInput) SetEventDestinationName(v string) *DeleteEventDestinationInput {
+ s.EventDestinationName = &v
+ return s
+}
+
+type DeleteEventDestinationOutput struct {
+ _ struct{} `type:"structure"`
+
+ // The Amazon Resource Name (ARN) of the configuration set.
+ ConfigurationSetArn *string `type:"string"`
+
+ // The name of the configuration set the event destination was deleted from.
+ ConfigurationSetName *string `min:"1" type:"string"`
+
+ // The event destination object that was deleted.
+ EventDestination *EventDestination `type:"structure"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DeleteEventDestinationOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DeleteEventDestinationOutput) GoString() string {
+ return s.String()
+}
+
+// SetConfigurationSetArn sets the ConfigurationSetArn field's value.
+func (s *DeleteEventDestinationOutput) SetConfigurationSetArn(v string) *DeleteEventDestinationOutput {
+ s.ConfigurationSetArn = &v
+ return s
+}
+
+// SetConfigurationSetName sets the ConfigurationSetName field's value.
+func (s *DeleteEventDestinationOutput) SetConfigurationSetName(v string) *DeleteEventDestinationOutput {
+ s.ConfigurationSetName = &v
+ return s
+}
+
+// SetEventDestination sets the EventDestination field's value.
+func (s *DeleteEventDestinationOutput) SetEventDestination(v *EventDestination) *DeleteEventDestinationOutput {
+ s.EventDestination = v
+ return s
+}
+
+type DeleteKeywordInput struct {
+ _ struct{} `type:"structure"`
+
+ // The keyword to delete.
+ //
+ // Keyword is a required field
+ Keyword *string `min:"1" type:"string" required:"true"`
+
+ // The origination identity to use such as a PhoneNumberId, PhoneNumberArn,
+ // PoolId or PoolArn. You can use DescribePhoneNumbers to find the values for
+ // PhoneNumberId and PhoneNumberArn and DescribePools to find the values of
+ // PoolId and PoolArn.
+ //
+ // OriginationIdentity is a required field
+ OriginationIdentity *string `min:"1" type:"string" required:"true"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DeleteKeywordInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DeleteKeywordInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *DeleteKeywordInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "DeleteKeywordInput"}
+ if s.Keyword == nil {
+ invalidParams.Add(request.NewErrParamRequired("Keyword"))
+ }
+ if s.Keyword != nil && len(*s.Keyword) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("Keyword", 1))
+ }
+ if s.OriginationIdentity == nil {
+ invalidParams.Add(request.NewErrParamRequired("OriginationIdentity"))
+ }
+ if s.OriginationIdentity != nil && len(*s.OriginationIdentity) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("OriginationIdentity", 1))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetKeyword sets the Keyword field's value.
+func (s *DeleteKeywordInput) SetKeyword(v string) *DeleteKeywordInput {
+ s.Keyword = &v
+ return s
+}
+
+// SetOriginationIdentity sets the OriginationIdentity field's value.
+func (s *DeleteKeywordInput) SetOriginationIdentity(v string) *DeleteKeywordInput {
+ s.OriginationIdentity = &v
+ return s
+}
+
+type DeleteKeywordOutput struct {
+ _ struct{} `type:"structure"`
+
+ // The keyword that was deleted.
+ Keyword *string `min:"1" type:"string"`
+
+ // The action that was associated with the deleted keyword.
+ KeywordAction *string `type:"string" enum:"KeywordAction"`
+
+ // The message that was associated with the deleted keyword.
+ KeywordMessage *string `min:"1" type:"string"`
+
+ // The PhoneNumberId or PoolId that the keyword was associated with.
+ OriginationIdentity *string `type:"string"`
+
+ // The PhoneNumberArn or PoolArn that the keyword was associated with.
+ OriginationIdentityArn *string `type:"string"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DeleteKeywordOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DeleteKeywordOutput) GoString() string {
+ return s.String()
+}
+
+// SetKeyword sets the Keyword field's value.
+func (s *DeleteKeywordOutput) SetKeyword(v string) *DeleteKeywordOutput {
+ s.Keyword = &v
+ return s
+}
+
+// SetKeywordAction sets the KeywordAction field's value.
+func (s *DeleteKeywordOutput) SetKeywordAction(v string) *DeleteKeywordOutput {
+ s.KeywordAction = &v
+ return s
+}
+
+// SetKeywordMessage sets the KeywordMessage field's value.
+func (s *DeleteKeywordOutput) SetKeywordMessage(v string) *DeleteKeywordOutput {
+ s.KeywordMessage = &v
+ return s
+}
+
+// SetOriginationIdentity sets the OriginationIdentity field's value.
+func (s *DeleteKeywordOutput) SetOriginationIdentity(v string) *DeleteKeywordOutput {
+ s.OriginationIdentity = &v
+ return s
+}
+
+// SetOriginationIdentityArn sets the OriginationIdentityArn field's value.
+func (s *DeleteKeywordOutput) SetOriginationIdentityArn(v string) *DeleteKeywordOutput {
+ s.OriginationIdentityArn = &v
+ return s
+}
+
+type DeleteOptOutListInput struct {
+ _ struct{} `type:"structure"`
+
+ // The OptOutListName or OptOutListArn of the OptOutList to delete. You can
+ // use DescribeOptOutLists to find the values for OptOutListName and OptOutListArn.
+ //
+ // OptOutListName is a required field
+ OptOutListName *string `min:"1" type:"string" required:"true"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DeleteOptOutListInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DeleteOptOutListInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *DeleteOptOutListInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "DeleteOptOutListInput"}
+ if s.OptOutListName == nil {
+ invalidParams.Add(request.NewErrParamRequired("OptOutListName"))
+ }
+ if s.OptOutListName != nil && len(*s.OptOutListName) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("OptOutListName", 1))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetOptOutListName sets the OptOutListName field's value.
+func (s *DeleteOptOutListInput) SetOptOutListName(v string) *DeleteOptOutListInput {
+ s.OptOutListName = &v
+ return s
+}
+
+type DeleteOptOutListOutput struct {
+ _ struct{} `type:"structure"`
+
+ // The time when the OptOutList was created, in UNIX epoch time (https://www.epochconverter.com/)
+ // format.
+ CreatedTimestamp *time.Time `type:"timestamp"`
+
+ // The Amazon Resource Name (ARN) of the OptOutList that was removed.
+ OptOutListArn *string `type:"string"`
+
+ // The name of the OptOutList that was removed.
+ OptOutListName *string `min:"1" type:"string"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DeleteOptOutListOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DeleteOptOutListOutput) GoString() string {
+ return s.String()
+}
+
+// SetCreatedTimestamp sets the CreatedTimestamp field's value.
+func (s *DeleteOptOutListOutput) SetCreatedTimestamp(v time.Time) *DeleteOptOutListOutput {
+ s.CreatedTimestamp = &v
+ return s
+}
+
+// SetOptOutListArn sets the OptOutListArn field's value.
+func (s *DeleteOptOutListOutput) SetOptOutListArn(v string) *DeleteOptOutListOutput {
+ s.OptOutListArn = &v
+ return s
+}
+
+// SetOptOutListName sets the OptOutListName field's value.
+func (s *DeleteOptOutListOutput) SetOptOutListName(v string) *DeleteOptOutListOutput {
+ s.OptOutListName = &v
+ return s
+}
+
+type DeleteOptedOutNumberInput struct {
+ _ struct{} `type:"structure"`
+
+ // The OptOutListName or OptOutListArn to remove the phone number from.
+ //
+ // OptOutListName is a required field
+ OptOutListName *string `min:"1" type:"string" required:"true"`
+
+ // The phone number, in E.164 format, to remove from the OptOutList.
+ //
+ // OptedOutNumber is a required field
+ OptedOutNumber *string `min:"1" type:"string" required:"true"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DeleteOptedOutNumberInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DeleteOptedOutNumberInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *DeleteOptedOutNumberInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "DeleteOptedOutNumberInput"}
+ if s.OptOutListName == nil {
+ invalidParams.Add(request.NewErrParamRequired("OptOutListName"))
+ }
+ if s.OptOutListName != nil && len(*s.OptOutListName) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("OptOutListName", 1))
+ }
+ if s.OptedOutNumber == nil {
+ invalidParams.Add(request.NewErrParamRequired("OptedOutNumber"))
+ }
+ if s.OptedOutNumber != nil && len(*s.OptedOutNumber) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("OptedOutNumber", 1))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetOptOutListName sets the OptOutListName field's value.
+func (s *DeleteOptedOutNumberInput) SetOptOutListName(v string) *DeleteOptedOutNumberInput {
+ s.OptOutListName = &v
+ return s
+}
+
+// SetOptedOutNumber sets the OptedOutNumber field's value.
+func (s *DeleteOptedOutNumberInput) SetOptedOutNumber(v string) *DeleteOptedOutNumberInput {
+ s.OptedOutNumber = &v
+ return s
+}
+
+type DeleteOptedOutNumberOutput struct {
+ _ struct{} `type:"structure"`
+
+ // This is true if it was the end user who requested their phone number be removed.
+ EndUserOptedOut *bool `type:"boolean"`
+
+ // The OptOutListArn that the phone number was removed from.
+ OptOutListArn *string `type:"string"`
+
+ // The OptOutListName that the phone number was removed from.
+ OptOutListName *string `min:"1" type:"string"`
+
+ // The phone number that was removed from the OptOutList.
+ OptedOutNumber *string `min:"1" type:"string"`
+
+ // The time that the number was removed at, in UNIX epoch time (https://www.epochconverter.com/)
+ // format.
+ OptedOutTimestamp *time.Time `type:"timestamp"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DeleteOptedOutNumberOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DeleteOptedOutNumberOutput) GoString() string {
+ return s.String()
+}
+
+// SetEndUserOptedOut sets the EndUserOptedOut field's value.
+func (s *DeleteOptedOutNumberOutput) SetEndUserOptedOut(v bool) *DeleteOptedOutNumberOutput {
+ s.EndUserOptedOut = &v
+ return s
+}
+
+// SetOptOutListArn sets the OptOutListArn field's value.
+func (s *DeleteOptedOutNumberOutput) SetOptOutListArn(v string) *DeleteOptedOutNumberOutput {
+ s.OptOutListArn = &v
+ return s
+}
+
+// SetOptOutListName sets the OptOutListName field's value.
+func (s *DeleteOptedOutNumberOutput) SetOptOutListName(v string) *DeleteOptedOutNumberOutput {
+ s.OptOutListName = &v
+ return s
+}
+
+// SetOptedOutNumber sets the OptedOutNumber field's value.
+func (s *DeleteOptedOutNumberOutput) SetOptedOutNumber(v string) *DeleteOptedOutNumberOutput {
+ s.OptedOutNumber = &v
+ return s
+}
+
+// SetOptedOutTimestamp sets the OptedOutTimestamp field's value.
+func (s *DeleteOptedOutNumberOutput) SetOptedOutTimestamp(v time.Time) *DeleteOptedOutNumberOutput {
+ s.OptedOutTimestamp = &v
+ return s
+}
+
+type DeletePoolInput struct {
+ _ struct{} `type:"structure"`
+
+ // The PoolId or PoolArn of the pool to delete. You can use DescribePools to
+ // find the values for PoolId and PoolArn .
+ //
+ // PoolId is a required field
+ PoolId *string `min:"1" type:"string" required:"true"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DeletePoolInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DeletePoolInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *DeletePoolInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "DeletePoolInput"}
+ if s.PoolId == nil {
+ invalidParams.Add(request.NewErrParamRequired("PoolId"))
+ }
+ if s.PoolId != nil && len(*s.PoolId) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("PoolId", 1))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetPoolId sets the PoolId field's value.
+func (s *DeletePoolInput) SetPoolId(v string) *DeletePoolInput {
+ s.PoolId = &v
+ return s
+}
+
+type DeletePoolOutput struct {
+ _ struct{} `type:"structure"`
+
+ // The time when the pool was created, in UNIX epoch time (https://www.epochconverter.com/)
+ // format.
+ CreatedTimestamp *time.Time `type:"timestamp"`
+
+ // The message type that was associated with the deleted pool.
+ MessageType *string `type:"string" enum:"MessageType"`
+
+ // The name of the OptOutList that was associated with the deleted pool.
+ OptOutListName *string `min:"1" type:"string"`
+
+ // The Amazon Resource Name (ARN) of the pool that was deleted.
+ PoolArn *string `type:"string"`
+
+ // The PoolId of the pool that was deleted.
+ PoolId *string `type:"string"`
+
+ // By default this is set to false. When an end recipient sends a message that
+ // begins with HELP or STOP to one of your dedicated numbers, Amazon Pinpoint
+ // automatically replies with a customizable message and adds the end recipient
+ // to the OptOutList. When set to true you're responsible for responding to
+ // HELP and STOP requests. You're also responsible for tracking and honoring
+ // opt-out requests.
+ SelfManagedOptOutsEnabled *bool `type:"boolean"`
+
+ // Indicates whether shared routes are enabled for the pool.
+ SharedRoutesEnabled *bool `type:"boolean"`
+
+ // The current status of the pool.
+ //
+ // * CREATING: The pool is currently being created and isn't yet available
+ // for use.
+ //
+ // * ACTIVE: The pool is active and available for use.
+ //
+ // * DELETING: The pool is being deleted.
+ Status *string `type:"string" enum:"PoolStatus"`
+
+ // The Amazon Resource Name (ARN) of the TwoWayChannel.
+ TwoWayChannelArn *string `min:"20" type:"string"`
+
+ // By default this is set to false. When set to true you can receive incoming
+ // text messages from your end recipients.
+ TwoWayEnabled *bool `type:"boolean"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DeletePoolOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DeletePoolOutput) GoString() string {
+ return s.String()
+}
+
+// SetCreatedTimestamp sets the CreatedTimestamp field's value.
+func (s *DeletePoolOutput) SetCreatedTimestamp(v time.Time) *DeletePoolOutput {
+ s.CreatedTimestamp = &v
+ return s
+}
+
+// SetMessageType sets the MessageType field's value.
+func (s *DeletePoolOutput) SetMessageType(v string) *DeletePoolOutput {
+ s.MessageType = &v
+ return s
+}
+
+// SetOptOutListName sets the OptOutListName field's value.
+func (s *DeletePoolOutput) SetOptOutListName(v string) *DeletePoolOutput {
+ s.OptOutListName = &v
+ return s
+}
+
+// SetPoolArn sets the PoolArn field's value.
+func (s *DeletePoolOutput) SetPoolArn(v string) *DeletePoolOutput {
+ s.PoolArn = &v
+ return s
+}
+
+// SetPoolId sets the PoolId field's value.
+func (s *DeletePoolOutput) SetPoolId(v string) *DeletePoolOutput {
+ s.PoolId = &v
+ return s
+}
+
+// SetSelfManagedOptOutsEnabled sets the SelfManagedOptOutsEnabled field's value.
+func (s *DeletePoolOutput) SetSelfManagedOptOutsEnabled(v bool) *DeletePoolOutput {
+ s.SelfManagedOptOutsEnabled = &v
+ return s
+}
+
+// SetSharedRoutesEnabled sets the SharedRoutesEnabled field's value.
+func (s *DeletePoolOutput) SetSharedRoutesEnabled(v bool) *DeletePoolOutput {
+ s.SharedRoutesEnabled = &v
+ return s
+}
+
+// SetStatus sets the Status field's value.
+func (s *DeletePoolOutput) SetStatus(v string) *DeletePoolOutput {
+ s.Status = &v
+ return s
+}
+
+// SetTwoWayChannelArn sets the TwoWayChannelArn field's value.
+func (s *DeletePoolOutput) SetTwoWayChannelArn(v string) *DeletePoolOutput {
+ s.TwoWayChannelArn = &v
+ return s
+}
+
+// SetTwoWayEnabled sets the TwoWayEnabled field's value.
+func (s *DeletePoolOutput) SetTwoWayEnabled(v bool) *DeletePoolOutput {
+ s.TwoWayEnabled = &v
+ return s
+}
+
+type DeleteTextMessageSpendLimitOverrideInput struct {
+ _ struct{} `type:"structure"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DeleteTextMessageSpendLimitOverrideInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DeleteTextMessageSpendLimitOverrideInput) GoString() string {
+ return s.String()
+}
+
+type DeleteTextMessageSpendLimitOverrideOutput struct {
+ _ struct{} `type:"structure"`
+
+ // The current monthly limit, in US dollars.
+ MonthlyLimit *int64 `type:"long"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DeleteTextMessageSpendLimitOverrideOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DeleteTextMessageSpendLimitOverrideOutput) GoString() string {
+ return s.String()
+}
+
+// SetMonthlyLimit sets the MonthlyLimit field's value.
+func (s *DeleteTextMessageSpendLimitOverrideOutput) SetMonthlyLimit(v int64) *DeleteTextMessageSpendLimitOverrideOutput {
+ s.MonthlyLimit = &v
+ return s
+}
+
+type DeleteVoiceMessageSpendLimitOverrideInput struct {
+ _ struct{} `type:"structure"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DeleteVoiceMessageSpendLimitOverrideInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DeleteVoiceMessageSpendLimitOverrideInput) GoString() string {
+ return s.String()
+}
+
+type DeleteVoiceMessageSpendLimitOverrideOutput struct {
+ _ struct{} `type:"structure"`
+
+ // The current monthly limit, in US dollars.
+ MonthlyLimit *int64 `type:"long"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DeleteVoiceMessageSpendLimitOverrideOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DeleteVoiceMessageSpendLimitOverrideOutput) GoString() string {
+ return s.String()
+}
+
+// SetMonthlyLimit sets the MonthlyLimit field's value.
+func (s *DeleteVoiceMessageSpendLimitOverrideOutput) SetMonthlyLimit(v int64) *DeleteVoiceMessageSpendLimitOverrideOutput {
+ s.MonthlyLimit = &v
+ return s
+}
+
+type DescribeAccountAttributesInput struct {
+ _ struct{} `type:"structure"`
+
+ // The maximum number of results to return per each request.
+ MaxResults *int64 `min:"1" type:"integer"`
+
+ // The token to be used for the next set of paginated results. You don't need
+ // to supply a value for this field in the initial request.
+ NextToken *string `min:"1" type:"string"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DescribeAccountAttributesInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DescribeAccountAttributesInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *DescribeAccountAttributesInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "DescribeAccountAttributesInput"}
+ if s.MaxResults != nil && *s.MaxResults < 1 {
+ invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
+ }
+ if s.NextToken != nil && len(*s.NextToken) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetMaxResults sets the MaxResults field's value.
+func (s *DescribeAccountAttributesInput) SetMaxResults(v int64) *DescribeAccountAttributesInput {
+ s.MaxResults = &v
+ return s
+}
+
+// SetNextToken sets the NextToken field's value.
+func (s *DescribeAccountAttributesInput) SetNextToken(v string) *DescribeAccountAttributesInput {
+ s.NextToken = &v
+ return s
+}
+
+type DescribeAccountAttributesOutput struct {
+ _ struct{} `type:"structure"`
+
+ // An array of AccountAttributes objects.
+ AccountAttributes []*AccountAttribute `type:"list"`
+
+ // The token to be used for the next set of paginated results. If this field
+ // is empty then there are no more results.
+ NextToken *string `min:"1" type:"string"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DescribeAccountAttributesOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DescribeAccountAttributesOutput) GoString() string {
+ return s.String()
+}
+
+// SetAccountAttributes sets the AccountAttributes field's value.
+func (s *DescribeAccountAttributesOutput) SetAccountAttributes(v []*AccountAttribute) *DescribeAccountAttributesOutput {
+ s.AccountAttributes = v
+ return s
+}
+
+// SetNextToken sets the NextToken field's value.
+func (s *DescribeAccountAttributesOutput) SetNextToken(v string) *DescribeAccountAttributesOutput {
+ s.NextToken = &v
+ return s
+}
+
+type DescribeAccountLimitsInput struct {
+ _ struct{} `type:"structure"`
+
+ // The maximum number of results to return per each request.
+ MaxResults *int64 `min:"1" type:"integer"`
+
+ // The token to be used for the next set of paginated results. You don't need
+ // to supply a value for this field in the initial request.
+ NextToken *string `min:"1" type:"string"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DescribeAccountLimitsInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DescribeAccountLimitsInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *DescribeAccountLimitsInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "DescribeAccountLimitsInput"}
+ if s.MaxResults != nil && *s.MaxResults < 1 {
+ invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
+ }
+ if s.NextToken != nil && len(*s.NextToken) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetMaxResults sets the MaxResults field's value.
+func (s *DescribeAccountLimitsInput) SetMaxResults(v int64) *DescribeAccountLimitsInput {
+ s.MaxResults = &v
+ return s
+}
+
+// SetNextToken sets the NextToken field's value.
+func (s *DescribeAccountLimitsInput) SetNextToken(v string) *DescribeAccountLimitsInput {
+ s.NextToken = &v
+ return s
+}
+
+type DescribeAccountLimitsOutput struct {
+ _ struct{} `type:"structure"`
+
+ // An array of AccountLimit objects that show the current spend limits.
+ AccountLimits []*AccountLimit `type:"list"`
+
+ // The token to be used for the next set of paginated results. If this field
+ // is empty then there are no more results.
+ NextToken *string `min:"1" type:"string"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DescribeAccountLimitsOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DescribeAccountLimitsOutput) GoString() string {
+ return s.String()
+}
+
+// SetAccountLimits sets the AccountLimits field's value.
+func (s *DescribeAccountLimitsOutput) SetAccountLimits(v []*AccountLimit) *DescribeAccountLimitsOutput {
+ s.AccountLimits = v
+ return s
+}
+
+// SetNextToken sets the NextToken field's value.
+func (s *DescribeAccountLimitsOutput) SetNextToken(v string) *DescribeAccountLimitsOutput {
+ s.NextToken = &v
+ return s
+}
+
+type DescribeConfigurationSetsInput struct {
+ _ struct{} `type:"structure"`
+
+ // An array of strings. Each element can be either a ConfigurationSetName or
+ // ConfigurationSetArn.
+ ConfigurationSetNames []*string `type:"list"`
+
+ // An array of filters to apply to the results that are returned.
+ Filters []*ConfigurationSetFilter `type:"list"`
+
+ // The maximum number of results to return per each request.
+ MaxResults *int64 `min:"1" type:"integer"`
+
+ // The token to be used for the next set of paginated results. You don't need
+ // to supply a value for this field in the initial request.
+ NextToken *string `min:"1" type:"string"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DescribeConfigurationSetsInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DescribeConfigurationSetsInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *DescribeConfigurationSetsInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "DescribeConfigurationSetsInput"}
+ if s.MaxResults != nil && *s.MaxResults < 1 {
+ invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
+ }
+ if s.NextToken != nil && len(*s.NextToken) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
+ }
+ if s.Filters != nil {
+ for i, v := range s.Filters {
+ if v == nil {
+ continue
+ }
+ if err := v.Validate(); err != nil {
+ invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams))
+ }
+ }
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetConfigurationSetNames sets the ConfigurationSetNames field's value.
+func (s *DescribeConfigurationSetsInput) SetConfigurationSetNames(v []*string) *DescribeConfigurationSetsInput {
+ s.ConfigurationSetNames = v
+ return s
+}
+
+// SetFilters sets the Filters field's value.
+func (s *DescribeConfigurationSetsInput) SetFilters(v []*ConfigurationSetFilter) *DescribeConfigurationSetsInput {
+ s.Filters = v
+ return s
+}
+
+// SetMaxResults sets the MaxResults field's value.
+func (s *DescribeConfigurationSetsInput) SetMaxResults(v int64) *DescribeConfigurationSetsInput {
+ s.MaxResults = &v
+ return s
+}
+
+// SetNextToken sets the NextToken field's value.
+func (s *DescribeConfigurationSetsInput) SetNextToken(v string) *DescribeConfigurationSetsInput {
+ s.NextToken = &v
+ return s
+}
+
+type DescribeConfigurationSetsOutput struct {
+ _ struct{} `type:"structure"`
+
+ // An array of ConfigurationSets objects.
+ ConfigurationSets []*ConfigurationSetInformation `type:"list"`
+
+ // The token to be used for the next set of paginated results. If this field
+ // is empty then there are no more results.
+ NextToken *string `min:"1" type:"string"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DescribeConfigurationSetsOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DescribeConfigurationSetsOutput) GoString() string {
+ return s.String()
+}
+
+// SetConfigurationSets sets the ConfigurationSets field's value.
+func (s *DescribeConfigurationSetsOutput) SetConfigurationSets(v []*ConfigurationSetInformation) *DescribeConfigurationSetsOutput {
+ s.ConfigurationSets = v
+ return s
+}
+
+// SetNextToken sets the NextToken field's value.
+func (s *DescribeConfigurationSetsOutput) SetNextToken(v string) *DescribeConfigurationSetsOutput {
+ s.NextToken = &v
+ return s
+}
+
+type DescribeKeywordsInput struct {
+ _ struct{} `type:"structure"`
+
+ // An array of keyword filters to filter the results.
+ Filters []*KeywordFilter `type:"list"`
+
+ // An array of keywords to search for.
+ Keywords []*string `type:"list"`
+
+ // The maximum number of results to return per each request.
+ MaxResults *int64 `min:"1" type:"integer"`
+
+ // The token to be used for the next set of paginated results. You don't need
+ // to supply a value for this field in the initial request.
+ NextToken *string `min:"1" type:"string"`
+
+ // The origination identity to use such as a PhoneNumberId, PhoneNumberArn,
+ // SenderId or SenderIdArn. You can use DescribePhoneNumbers to find the values
+ // for PhoneNumberId and PhoneNumberArn while DescribeSenderIds can be used
+ // to get the values for SenderId and SenderIdArn.
+ //
+ // OriginationIdentity is a required field
+ OriginationIdentity *string `min:"1" type:"string" required:"true"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DescribeKeywordsInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DescribeKeywordsInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *DescribeKeywordsInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "DescribeKeywordsInput"}
+ if s.MaxResults != nil && *s.MaxResults < 1 {
+ invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
+ }
+ if s.NextToken != nil && len(*s.NextToken) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
+ }
+ if s.OriginationIdentity == nil {
+ invalidParams.Add(request.NewErrParamRequired("OriginationIdentity"))
+ }
+ if s.OriginationIdentity != nil && len(*s.OriginationIdentity) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("OriginationIdentity", 1))
+ }
+ if s.Filters != nil {
+ for i, v := range s.Filters {
+ if v == nil {
+ continue
+ }
+ if err := v.Validate(); err != nil {
+ invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams))
+ }
+ }
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetFilters sets the Filters field's value.
+func (s *DescribeKeywordsInput) SetFilters(v []*KeywordFilter) *DescribeKeywordsInput {
+ s.Filters = v
+ return s
+}
+
+// SetKeywords sets the Keywords field's value.
+func (s *DescribeKeywordsInput) SetKeywords(v []*string) *DescribeKeywordsInput {
+ s.Keywords = v
+ return s
+}
+
+// SetMaxResults sets the MaxResults field's value.
+func (s *DescribeKeywordsInput) SetMaxResults(v int64) *DescribeKeywordsInput {
+ s.MaxResults = &v
+ return s
+}
+
+// SetNextToken sets the NextToken field's value.
+func (s *DescribeKeywordsInput) SetNextToken(v string) *DescribeKeywordsInput {
+ s.NextToken = &v
+ return s
+}
+
+// SetOriginationIdentity sets the OriginationIdentity field's value.
+func (s *DescribeKeywordsInput) SetOriginationIdentity(v string) *DescribeKeywordsInput {
+ s.OriginationIdentity = &v
+ return s
+}
+
+type DescribeKeywordsOutput struct {
+ _ struct{} `type:"structure"`
+
+ // An array of KeywordInformation objects that contain the results.
+ Keywords []*KeywordInformation `type:"list"`
+
+ // The token to be used for the next set of paginated results. If this field
+ // is empty then there are no more results.
+ NextToken *string `min:"1" type:"string"`
+
+ // The PhoneNumberId or PoolId that is associated with the OriginationIdentity.
+ OriginationIdentity *string `type:"string"`
+
+ // The PhoneNumberArn or PoolArn that is associated with the OriginationIdentity.
+ OriginationIdentityArn *string `type:"string"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DescribeKeywordsOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DescribeKeywordsOutput) GoString() string {
+ return s.String()
+}
+
+// SetKeywords sets the Keywords field's value.
+func (s *DescribeKeywordsOutput) SetKeywords(v []*KeywordInformation) *DescribeKeywordsOutput {
+ s.Keywords = v
+ return s
+}
+
+// SetNextToken sets the NextToken field's value.
+func (s *DescribeKeywordsOutput) SetNextToken(v string) *DescribeKeywordsOutput {
+ s.NextToken = &v
+ return s
+}
+
+// SetOriginationIdentity sets the OriginationIdentity field's value.
+func (s *DescribeKeywordsOutput) SetOriginationIdentity(v string) *DescribeKeywordsOutput {
+ s.OriginationIdentity = &v
+ return s
+}
+
+// SetOriginationIdentityArn sets the OriginationIdentityArn field's value.
+func (s *DescribeKeywordsOutput) SetOriginationIdentityArn(v string) *DescribeKeywordsOutput {
+ s.OriginationIdentityArn = &v
+ return s
+}
+
+type DescribeOptOutListsInput struct {
+ _ struct{} `type:"structure"`
+
+ // The maximum number of results to return per each request.
+ MaxResults *int64 `min:"1" type:"integer"`
+
+ // The token to be used for the next set of paginated results. You don't need
+ // to supply a value for this field in the initial request.
+ NextToken *string `min:"1" type:"string"`
+
+ // The OptOutLists to show the details of. This is an array of strings that
+ // can be either the OptOutListName or OptOutListArn.
+ OptOutListNames []*string `type:"list"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DescribeOptOutListsInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DescribeOptOutListsInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *DescribeOptOutListsInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "DescribeOptOutListsInput"}
+ if s.MaxResults != nil && *s.MaxResults < 1 {
+ invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
+ }
+ if s.NextToken != nil && len(*s.NextToken) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetMaxResults sets the MaxResults field's value.
+func (s *DescribeOptOutListsInput) SetMaxResults(v int64) *DescribeOptOutListsInput {
+ s.MaxResults = &v
+ return s
+}
+
+// SetNextToken sets the NextToken field's value.
+func (s *DescribeOptOutListsInput) SetNextToken(v string) *DescribeOptOutListsInput {
+ s.NextToken = &v
+ return s
+}
+
+// SetOptOutListNames sets the OptOutListNames field's value.
+func (s *DescribeOptOutListsInput) SetOptOutListNames(v []*string) *DescribeOptOutListsInput {
+ s.OptOutListNames = v
+ return s
+}
+
+type DescribeOptOutListsOutput struct {
+ _ struct{} `type:"structure"`
+
+ // The token to be used for the next set of paginated results. If this field
+ // is empty then there are no more results.
+ NextToken *string `min:"1" type:"string"`
+
+ // An array of OptOutListInformation objects that contain the details for the
+ // requested OptOutLists.
+ OptOutLists []*OptOutListInformation `type:"list"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DescribeOptOutListsOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DescribeOptOutListsOutput) GoString() string {
+ return s.String()
+}
+
+// SetNextToken sets the NextToken field's value.
+func (s *DescribeOptOutListsOutput) SetNextToken(v string) *DescribeOptOutListsOutput {
+ s.NextToken = &v
+ return s
+}
+
+// SetOptOutLists sets the OptOutLists field's value.
+func (s *DescribeOptOutListsOutput) SetOptOutLists(v []*OptOutListInformation) *DescribeOptOutListsOutput {
+ s.OptOutLists = v
+ return s
+}
+
+type DescribeOptedOutNumbersInput struct {
+ _ struct{} `type:"structure"`
+
+ // An array of OptedOutFilter objects to filter the results on.
+ Filters []*OptedOutFilter `type:"list"`
+
+ // The maximum number of results to return per each request.
+ MaxResults *int64 `min:"1" type:"integer"`
+
+ // The token to be used for the next set of paginated results. You don't need
+ // to supply a value for this field in the initial request.
+ NextToken *string `min:"1" type:"string"`
+
+ // The OptOutListName or OptOutListArn of the OptOutList. You can use DescribeOptOutLists
+ // to find the values for OptOutListName and OptOutListArn.
+ //
+ // OptOutListName is a required field
+ OptOutListName *string `min:"1" type:"string" required:"true"`
+
+ // An array of phone numbers to search for in the OptOutList.
+ OptedOutNumbers []*string `type:"list"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DescribeOptedOutNumbersInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DescribeOptedOutNumbersInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *DescribeOptedOutNumbersInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "DescribeOptedOutNumbersInput"}
+ if s.MaxResults != nil && *s.MaxResults < 1 {
+ invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
+ }
+ if s.NextToken != nil && len(*s.NextToken) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
+ }
+ if s.OptOutListName == nil {
+ invalidParams.Add(request.NewErrParamRequired("OptOutListName"))
+ }
+ if s.OptOutListName != nil && len(*s.OptOutListName) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("OptOutListName", 1))
+ }
+ if s.Filters != nil {
+ for i, v := range s.Filters {
+ if v == nil {
+ continue
+ }
+ if err := v.Validate(); err != nil {
+ invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams))
+ }
+ }
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetFilters sets the Filters field's value.
+func (s *DescribeOptedOutNumbersInput) SetFilters(v []*OptedOutFilter) *DescribeOptedOutNumbersInput {
+ s.Filters = v
+ return s
+}
+
+// SetMaxResults sets the MaxResults field's value.
+func (s *DescribeOptedOutNumbersInput) SetMaxResults(v int64) *DescribeOptedOutNumbersInput {
+ s.MaxResults = &v
+ return s
+}
+
+// SetNextToken sets the NextToken field's value.
+func (s *DescribeOptedOutNumbersInput) SetNextToken(v string) *DescribeOptedOutNumbersInput {
+ s.NextToken = &v
+ return s
+}
+
+// SetOptOutListName sets the OptOutListName field's value.
+func (s *DescribeOptedOutNumbersInput) SetOptOutListName(v string) *DescribeOptedOutNumbersInput {
+ s.OptOutListName = &v
+ return s
+}
+
+// SetOptedOutNumbers sets the OptedOutNumbers field's value.
+func (s *DescribeOptedOutNumbersInput) SetOptedOutNumbers(v []*string) *DescribeOptedOutNumbersInput {
+ s.OptedOutNumbers = v
+ return s
+}
+
+type DescribeOptedOutNumbersOutput struct {
+ _ struct{} `type:"structure"`
+
+ // The token to be used for the next set of paginated results. If this field
+ // is empty then there are no more results.
+ NextToken *string `min:"1" type:"string"`
+
+ // The Amazon Resource Name (ARN) of the OptOutList.
+ OptOutListArn *string `type:"string"`
+
+ // The name of the OptOutList.
+ OptOutListName *string `min:"1" type:"string"`
+
+ // An array of OptedOutNumbersInformation objects that provide information about
+ // the requested OptedOutNumbers.
+ OptedOutNumbers []*OptedOutNumberInformation `type:"list"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DescribeOptedOutNumbersOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DescribeOptedOutNumbersOutput) GoString() string {
+ return s.String()
+}
+
+// SetNextToken sets the NextToken field's value.
+func (s *DescribeOptedOutNumbersOutput) SetNextToken(v string) *DescribeOptedOutNumbersOutput {
+ s.NextToken = &v
+ return s
+}
+
+// SetOptOutListArn sets the OptOutListArn field's value.
+func (s *DescribeOptedOutNumbersOutput) SetOptOutListArn(v string) *DescribeOptedOutNumbersOutput {
+ s.OptOutListArn = &v
+ return s
+}
+
+// SetOptOutListName sets the OptOutListName field's value.
+func (s *DescribeOptedOutNumbersOutput) SetOptOutListName(v string) *DescribeOptedOutNumbersOutput {
+ s.OptOutListName = &v
+ return s
+}
+
+// SetOptedOutNumbers sets the OptedOutNumbers field's value.
+func (s *DescribeOptedOutNumbersOutput) SetOptedOutNumbers(v []*OptedOutNumberInformation) *DescribeOptedOutNumbersOutput {
+ s.OptedOutNumbers = v
+ return s
+}
+
+type DescribePhoneNumbersInput struct {
+ _ struct{} `type:"structure"`
+
+ // An array of PhoneNumberFilter objects to filter the results.
+ Filters []*PhoneNumberFilter `type:"list"`
+
+ // The maximum number of results to return per each request.
+ MaxResults *int64 `min:"1" type:"integer"`
+
+ // The token to be used for the next set of paginated results. You don't need
+ // to supply a value for this field in the initial request.
+ NextToken *string `min:"1" type:"string"`
+
+ // The unique identifier of phone numbers to find information about. This is
+ // an array of strings that can be either the PhoneNumberId or PhoneNumberArn.
+ PhoneNumberIds []*string `type:"list"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DescribePhoneNumbersInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DescribePhoneNumbersInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *DescribePhoneNumbersInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "DescribePhoneNumbersInput"}
+ if s.MaxResults != nil && *s.MaxResults < 1 {
+ invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
+ }
+ if s.NextToken != nil && len(*s.NextToken) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
+ }
+ if s.Filters != nil {
+ for i, v := range s.Filters {
+ if v == nil {
+ continue
+ }
+ if err := v.Validate(); err != nil {
+ invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams))
+ }
+ }
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetFilters sets the Filters field's value.
+func (s *DescribePhoneNumbersInput) SetFilters(v []*PhoneNumberFilter) *DescribePhoneNumbersInput {
+ s.Filters = v
+ return s
+}
+
+// SetMaxResults sets the MaxResults field's value.
+func (s *DescribePhoneNumbersInput) SetMaxResults(v int64) *DescribePhoneNumbersInput {
+ s.MaxResults = &v
+ return s
+}
+
+// SetNextToken sets the NextToken field's value.
+func (s *DescribePhoneNumbersInput) SetNextToken(v string) *DescribePhoneNumbersInput {
+ s.NextToken = &v
+ return s
+}
+
+// SetPhoneNumberIds sets the PhoneNumberIds field's value.
+func (s *DescribePhoneNumbersInput) SetPhoneNumberIds(v []*string) *DescribePhoneNumbersInput {
+ s.PhoneNumberIds = v
+ return s
+}
+
+type DescribePhoneNumbersOutput struct {
+ _ struct{} `type:"structure"`
+
+ // The token to be used for the next set of paginated results. If this field
+ // is empty then there are no more results.
+ NextToken *string `min:"1" type:"string"`
+
+ // An array of PhoneNumberInformation objects that contain the details for the
+ // requested phone numbers.
+ PhoneNumbers []*PhoneNumberInformation `type:"list"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DescribePhoneNumbersOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DescribePhoneNumbersOutput) GoString() string {
+ return s.String()
+}
+
+// SetNextToken sets the NextToken field's value.
+func (s *DescribePhoneNumbersOutput) SetNextToken(v string) *DescribePhoneNumbersOutput {
+ s.NextToken = &v
+ return s
+}
+
+// SetPhoneNumbers sets the PhoneNumbers field's value.
+func (s *DescribePhoneNumbersOutput) SetPhoneNumbers(v []*PhoneNumberInformation) *DescribePhoneNumbersOutput {
+ s.PhoneNumbers = v
+ return s
+}
+
+type DescribePoolsInput struct {
+ _ struct{} `type:"structure"`
+
+ // An array of PoolFilter objects to filter the results.
+ Filters []*PoolFilter `type:"list"`
+
+ // The maximum number of results to return per each request.
+ MaxResults *int64 `min:"1" type:"integer"`
+
+ // The token to be used for the next set of paginated results. You don't need
+ // to supply a value for this field in the initial request.
+ NextToken *string `min:"1" type:"string"`
+
+ // The unique identifier of pools to find. This is an array of strings that
+ // can be either the PoolId or PoolArn.
+ PoolIds []*string `type:"list"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DescribePoolsInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DescribePoolsInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *DescribePoolsInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "DescribePoolsInput"}
+ if s.MaxResults != nil && *s.MaxResults < 1 {
+ invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
+ }
+ if s.NextToken != nil && len(*s.NextToken) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
+ }
+ if s.Filters != nil {
+ for i, v := range s.Filters {
+ if v == nil {
+ continue
+ }
+ if err := v.Validate(); err != nil {
+ invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams))
+ }
+ }
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetFilters sets the Filters field's value.
+func (s *DescribePoolsInput) SetFilters(v []*PoolFilter) *DescribePoolsInput {
+ s.Filters = v
+ return s
+}
+
+// SetMaxResults sets the MaxResults field's value.
+func (s *DescribePoolsInput) SetMaxResults(v int64) *DescribePoolsInput {
+ s.MaxResults = &v
+ return s
+}
+
+// SetNextToken sets the NextToken field's value.
+func (s *DescribePoolsInput) SetNextToken(v string) *DescribePoolsInput {
+ s.NextToken = &v
+ return s
+}
+
+// SetPoolIds sets the PoolIds field's value.
+func (s *DescribePoolsInput) SetPoolIds(v []*string) *DescribePoolsInput {
+ s.PoolIds = v
+ return s
+}
+
+type DescribePoolsOutput struct {
+ _ struct{} `type:"structure"`
+
+ // The token to be used for the next set of paginated results. If this field
+ // is empty then there are no more results.
+ NextToken *string `min:"1" type:"string"`
+
+ // An array of PoolInformation objects that contain the details for the requested
+ // pools.
+ Pools []*PoolInformation `type:"list"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DescribePoolsOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DescribePoolsOutput) GoString() string {
+ return s.String()
+}
+
+// SetNextToken sets the NextToken field's value.
+func (s *DescribePoolsOutput) SetNextToken(v string) *DescribePoolsOutput {
+ s.NextToken = &v
+ return s
+}
+
+// SetPools sets the Pools field's value.
+func (s *DescribePoolsOutput) SetPools(v []*PoolInformation) *DescribePoolsOutput {
+ s.Pools = v
+ return s
+}
+
+type DescribeSenderIdsInput struct {
+ _ struct{} `type:"structure"`
+
+ // An array of SenderIdFilter objects to filter the results.
+ Filters []*SenderIdFilter `type:"list"`
+
+ // The maximum number of results to return per each request.
+ MaxResults *int64 `min:"1" type:"integer"`
+
+ // The token to be used for the next set of paginated results. You don't need
+ // to supply a value for this field in the initial request.
+ NextToken *string `min:"1" type:"string"`
+
+ // An array of SenderIdAndCountry objects to search for.
+ SenderIds []*SenderIdAndCountry `type:"list"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DescribeSenderIdsInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DescribeSenderIdsInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *DescribeSenderIdsInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "DescribeSenderIdsInput"}
+ if s.MaxResults != nil && *s.MaxResults < 1 {
+ invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
+ }
+ if s.NextToken != nil && len(*s.NextToken) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
+ }
+ if s.Filters != nil {
+ for i, v := range s.Filters {
+ if v == nil {
+ continue
+ }
+ if err := v.Validate(); err != nil {
+ invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams))
+ }
+ }
+ }
+ if s.SenderIds != nil {
+ for i, v := range s.SenderIds {
+ if v == nil {
+ continue
+ }
+ if err := v.Validate(); err != nil {
+ invalidParams.AddNested(fmt.Sprintf("%s[%v]", "SenderIds", i), err.(request.ErrInvalidParams))
+ }
+ }
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetFilters sets the Filters field's value.
+func (s *DescribeSenderIdsInput) SetFilters(v []*SenderIdFilter) *DescribeSenderIdsInput {
+ s.Filters = v
+ return s
+}
+
+// SetMaxResults sets the MaxResults field's value.
+func (s *DescribeSenderIdsInput) SetMaxResults(v int64) *DescribeSenderIdsInput {
+ s.MaxResults = &v
+ return s
+}
+
+// SetNextToken sets the NextToken field's value.
+func (s *DescribeSenderIdsInput) SetNextToken(v string) *DescribeSenderIdsInput {
+ s.NextToken = &v
+ return s
+}
+
+// SetSenderIds sets the SenderIds field's value.
+func (s *DescribeSenderIdsInput) SetSenderIds(v []*SenderIdAndCountry) *DescribeSenderIdsInput {
+ s.SenderIds = v
+ return s
+}
+
+type DescribeSenderIdsOutput struct {
+ _ struct{} `type:"structure"`
+
+ // The token to be used for the next set of paginated results. If this field
+ // is empty then there are no more results.
+ NextToken *string `min:"1" type:"string"`
+
+ // An array of SernderIdInformation objects that contain the details for the
+ // requested SenderIds.
+ SenderIds []*SenderIdInformation `type:"list"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DescribeSenderIdsOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DescribeSenderIdsOutput) GoString() string {
+ return s.String()
+}
+
+// SetNextToken sets the NextToken field's value.
+func (s *DescribeSenderIdsOutput) SetNextToken(v string) *DescribeSenderIdsOutput {
+ s.NextToken = &v
+ return s
+}
+
+// SetSenderIds sets the SenderIds field's value.
+func (s *DescribeSenderIdsOutput) SetSenderIds(v []*SenderIdInformation) *DescribeSenderIdsOutput {
+ s.SenderIds = v
+ return s
+}
+
+type DescribeSpendLimitsInput struct {
+ _ struct{} `type:"structure"`
+
+ // The maximum number of results to return per each request.
+ MaxResults *int64 `min:"1" type:"integer"`
+
+ // The token to be used for the next set of paginated results. You don't need
+ // to supply a value for this field in the initial request.
+ NextToken *string `min:"1" type:"string"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DescribeSpendLimitsInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DescribeSpendLimitsInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *DescribeSpendLimitsInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "DescribeSpendLimitsInput"}
+ if s.MaxResults != nil && *s.MaxResults < 1 {
+ invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
+ }
+ if s.NextToken != nil && len(*s.NextToken) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetMaxResults sets the MaxResults field's value.
+func (s *DescribeSpendLimitsInput) SetMaxResults(v int64) *DescribeSpendLimitsInput {
+ s.MaxResults = &v
+ return s
+}
+
+// SetNextToken sets the NextToken field's value.
+func (s *DescribeSpendLimitsInput) SetNextToken(v string) *DescribeSpendLimitsInput {
+ s.NextToken = &v
+ return s
+}
+
+type DescribeSpendLimitsOutput struct {
+ _ struct{} `type:"structure"`
+
+ // The token to be used for the next set of paginated results. If this field
+ // is empty then there are no more results.
+ NextToken *string `min:"1" type:"string"`
+
+ // An array of SpendLimit objects that contain the details for the requested
+ // spend limits.
+ SpendLimits []*SpendLimit `type:"list"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DescribeSpendLimitsOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DescribeSpendLimitsOutput) GoString() string {
+ return s.String()
+}
+
+// SetNextToken sets the NextToken field's value.
+func (s *DescribeSpendLimitsOutput) SetNextToken(v string) *DescribeSpendLimitsOutput {
+ s.NextToken = &v
+ return s
+}
+
+// SetSpendLimits sets the SpendLimits field's value.
+func (s *DescribeSpendLimitsOutput) SetSpendLimits(v []*SpendLimit) *DescribeSpendLimitsOutput {
+ s.SpendLimits = v
+ return s
+}
+
+type DisassociateOriginationIdentityInput struct {
+ _ struct{} `type:"structure"`
+
+ // Unique, case-sensitive identifier you provide to ensure the idempotency of
+ // the request. If you don't specify a client token, a randomly generated token
+ // is used for the request to ensure idempotency.
+ ClientToken *string `min:"1" type:"string" idempotencyToken:"true"`
+
+ // The two-character code, in ISO 3166-1 alpha-2 format, for the country or
+ // region.
+ //
+ // IsoCountryCode is a required field
+ IsoCountryCode *string `min:"2" type:"string" required:"true"`
+
+ // The origination identity to use such as a PhoneNumberId, PhoneNumberArn,
+ // SenderId or SenderIdArn. You can use DescribePhoneNumbers find the values
+ // for PhoneNumberId and PhoneNumberArn, or use DescribeSenderIds to get the
+ // values for SenderId and SenderIdArn.
+ //
+ // OriginationIdentity is a required field
+ OriginationIdentity *string `min:"1" type:"string" required:"true"`
+
+ // The unique identifier for the pool to disassociate with the origination identity.
+ // This value can be either the PoolId or PoolArn.
+ //
+ // PoolId is a required field
+ PoolId *string `min:"1" type:"string" required:"true"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DisassociateOriginationIdentityInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DisassociateOriginationIdentityInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *DisassociateOriginationIdentityInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "DisassociateOriginationIdentityInput"}
+ if s.ClientToken != nil && len(*s.ClientToken) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("ClientToken", 1))
+ }
+ if s.IsoCountryCode == nil {
+ invalidParams.Add(request.NewErrParamRequired("IsoCountryCode"))
+ }
+ if s.IsoCountryCode != nil && len(*s.IsoCountryCode) < 2 {
+ invalidParams.Add(request.NewErrParamMinLen("IsoCountryCode", 2))
+ }
+ if s.OriginationIdentity == nil {
+ invalidParams.Add(request.NewErrParamRequired("OriginationIdentity"))
+ }
+ if s.OriginationIdentity != nil && len(*s.OriginationIdentity) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("OriginationIdentity", 1))
+ }
+ if s.PoolId == nil {
+ invalidParams.Add(request.NewErrParamRequired("PoolId"))
+ }
+ if s.PoolId != nil && len(*s.PoolId) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("PoolId", 1))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetClientToken sets the ClientToken field's value.
+func (s *DisassociateOriginationIdentityInput) SetClientToken(v string) *DisassociateOriginationIdentityInput {
+ s.ClientToken = &v
+ return s
+}
+
+// SetIsoCountryCode sets the IsoCountryCode field's value.
+func (s *DisassociateOriginationIdentityInput) SetIsoCountryCode(v string) *DisassociateOriginationIdentityInput {
+ s.IsoCountryCode = &v
+ return s
+}
+
+// SetOriginationIdentity sets the OriginationIdentity field's value.
+func (s *DisassociateOriginationIdentityInput) SetOriginationIdentity(v string) *DisassociateOriginationIdentityInput {
+ s.OriginationIdentity = &v
+ return s
+}
+
+// SetPoolId sets the PoolId field's value.
+func (s *DisassociateOriginationIdentityInput) SetPoolId(v string) *DisassociateOriginationIdentityInput {
+ s.PoolId = &v
+ return s
+}
+
+type DisassociateOriginationIdentityOutput struct {
+ _ struct{} `type:"structure"`
+
+ // The two-character code, in ISO 3166-1 alpha-2 format, for the country or
+ // region.
+ IsoCountryCode *string `min:"2" type:"string"`
+
+ // The PhoneNumberId or SenderId of the origination identity.
+ OriginationIdentity *string `type:"string"`
+
+ // The PhoneNumberArn or SenderIdArn of the origination identity.
+ OriginationIdentityArn *string `type:"string"`
+
+ // The Amazon Resource Name (ARN) of the pool.
+ PoolArn *string `type:"string"`
+
+ // The PoolId of the pool no longer associated with the origination identity.
+ PoolId *string `type:"string"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DisassociateOriginationIdentityOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DisassociateOriginationIdentityOutput) GoString() string {
+ return s.String()
+}
+
+// SetIsoCountryCode sets the IsoCountryCode field's value.
+func (s *DisassociateOriginationIdentityOutput) SetIsoCountryCode(v string) *DisassociateOriginationIdentityOutput {
+ s.IsoCountryCode = &v
+ return s
+}
+
+// SetOriginationIdentity sets the OriginationIdentity field's value.
+func (s *DisassociateOriginationIdentityOutput) SetOriginationIdentity(v string) *DisassociateOriginationIdentityOutput {
+ s.OriginationIdentity = &v
+ return s
+}
+
+// SetOriginationIdentityArn sets the OriginationIdentityArn field's value.
+func (s *DisassociateOriginationIdentityOutput) SetOriginationIdentityArn(v string) *DisassociateOriginationIdentityOutput {
+ s.OriginationIdentityArn = &v
+ return s
+}
+
+// SetPoolArn sets the PoolArn field's value.
+func (s *DisassociateOriginationIdentityOutput) SetPoolArn(v string) *DisassociateOriginationIdentityOutput {
+ s.PoolArn = &v
+ return s
+}
+
+// SetPoolId sets the PoolId field's value.
+func (s *DisassociateOriginationIdentityOutput) SetPoolId(v string) *DisassociateOriginationIdentityOutput {
+ s.PoolId = &v
+ return s
+}
+
+// Contains information about an event destination.
+//
+// Event destinations are associated with configuration sets, which enable you
+// to publish message sending events to Amazon CloudWatch, Amazon Kinesis Data
+// Firehose, or Amazon SNS.
+type EventDestination struct {
+ _ struct{} `type:"structure"`
+
+ // An object that contains information about an event destination that sends
+ // logging events to Amazon CloudWatch logs.
+ CloudWatchLogsDestination *CloudWatchLogsDestination `type:"structure"`
+
+ // When set to true events will be logged.
+ //
+ // Enabled is a required field
+ Enabled *bool `type:"boolean" required:"true"`
+
+ // The name of the EventDestination.
+ //
+ // EventDestinationName is a required field
+ EventDestinationName *string `min:"1" type:"string" required:"true"`
+
+ // An object that contains information about an event destination for logging
+ // to Amazon Kinesis Data Firehose.
+ KinesisFirehoseDestination *KinesisFirehoseDestination `type:"structure"`
+
+ // An array of event types that determine which events to log.
+ //
+ // MatchingEventTypes is a required field
+ MatchingEventTypes []*string `min:"1" type:"list" required:"true" enum:"EventType"`
+
+ // An object that contains information about an event destination that sends
+ // logging events to Amazon SNS.
+ SnsDestination *SnsDestination `type:"structure"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s EventDestination) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s EventDestination) GoString() string {
+ return s.String()
+}
+
+// SetCloudWatchLogsDestination sets the CloudWatchLogsDestination field's value.
+func (s *EventDestination) SetCloudWatchLogsDestination(v *CloudWatchLogsDestination) *EventDestination {
+ s.CloudWatchLogsDestination = v
+ return s
+}
+
+// SetEnabled sets the Enabled field's value.
+func (s *EventDestination) SetEnabled(v bool) *EventDestination {
+ s.Enabled = &v
+ return s
+}
+
+// SetEventDestinationName sets the EventDestinationName field's value.
+func (s *EventDestination) SetEventDestinationName(v string) *EventDestination {
+ s.EventDestinationName = &v
+ return s
+}
+
+// SetKinesisFirehoseDestination sets the KinesisFirehoseDestination field's value.
+func (s *EventDestination) SetKinesisFirehoseDestination(v *KinesisFirehoseDestination) *EventDestination {
+ s.KinesisFirehoseDestination = v
+ return s
+}
+
+// SetMatchingEventTypes sets the MatchingEventTypes field's value.
+func (s *EventDestination) SetMatchingEventTypes(v []*string) *EventDestination {
+ s.MatchingEventTypes = v
+ return s
+}
+
+// SetSnsDestination sets the SnsDestination field's value.
+func (s *EventDestination) SetSnsDestination(v *SnsDestination) *EventDestination {
+ s.SnsDestination = v
+ return s
+}
+
+// The API encountered an unexpected error and couldn't complete the request.
+// You might be able to successfully issue the request again in the future.
+type InternalServerException struct {
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
+
+ Message_ *string `locationName:"Message" type:"string"`
+
+ // The unique identifier of the request.
+ RequestId *string `type:"string"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s InternalServerException) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s InternalServerException) GoString() string {
+ return s.String()
+}
+
+func newErrorInternalServerException(v protocol.ResponseMetadata) error {
+ return &InternalServerException{
+ RespMetadata: v,
+ }
+}
+
+// Code returns the exception type name.
+func (s *InternalServerException) Code() string {
+ return "InternalServerException"
+}
+
+// Message returns the exception's message.
+func (s *InternalServerException) Message() string {
+ if s.Message_ != nil {
+ return *s.Message_
+ }
+ return ""
+}
+
+// OrigErr always returns nil, satisfies awserr.Error interface.
+func (s *InternalServerException) OrigErr() error {
+ return nil
+}
+
+func (s *InternalServerException) Error() string {
+ return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
+}
+
+// Status code returns the HTTP status code for the request's response error.
+func (s *InternalServerException) StatusCode() int {
+ return s.RespMetadata.StatusCode
+}
+
+// RequestID returns the service's response RequestID for request.
+func (s *InternalServerException) RequestID() string {
+ return s.RespMetadata.RequestID
+}
+
+// The information for keywords that meet a specified criteria.
+type KeywordFilter struct {
+ _ struct{} `type:"structure"`
+
+ // The name of the attribute to filter on.
+ //
+ // Name is a required field
+ Name *string `type:"string" required:"true" enum:"KeywordFilterName"`
+
+ // An array values to filter for.
+ //
+ // Values is a required field
+ Values []*string `min:"1" type:"list" required:"true"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s KeywordFilter) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s KeywordFilter) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *KeywordFilter) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "KeywordFilter"}
+ if s.Name == nil {
+ invalidParams.Add(request.NewErrParamRequired("Name"))
+ }
+ if s.Values == nil {
+ invalidParams.Add(request.NewErrParamRequired("Values"))
+ }
+ if s.Values != nil && len(s.Values) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("Values", 1))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetName sets the Name field's value.
+func (s *KeywordFilter) SetName(v string) *KeywordFilter {
+ s.Name = &v
+ return s
+}
+
+// SetValues sets the Values field's value.
+func (s *KeywordFilter) SetValues(v []*string) *KeywordFilter {
+ s.Values = v
+ return s
+}
+
+// The information for all keywords in a pool.
+type KeywordInformation struct {
+ _ struct{} `type:"structure"`
+
+ // The keyword as a string.
+ //
+ // Keyword is a required field
+ Keyword *string `min:"1" type:"string" required:"true"`
+
+ // The action to perform for the keyword.
+ //
+ // KeywordAction is a required field
+ KeywordAction *string `type:"string" required:"true" enum:"KeywordAction"`
+
+ // A custom message that can be used with the keyword.
+ //
+ // KeywordMessage is a required field
+ KeywordMessage *string `min:"1" type:"string" required:"true"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s KeywordInformation) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s KeywordInformation) GoString() string {
+ return s.String()
+}
+
+// SetKeyword sets the Keyword field's value.
+func (s *KeywordInformation) SetKeyword(v string) *KeywordInformation {
+ s.Keyword = &v
+ return s
+}
+
+// SetKeywordAction sets the KeywordAction field's value.
+func (s *KeywordInformation) SetKeywordAction(v string) *KeywordInformation {
+ s.KeywordAction = &v
+ return s
+}
+
+// SetKeywordMessage sets the KeywordMessage field's value.
+func (s *KeywordInformation) SetKeywordMessage(v string) *KeywordInformation {
+ s.KeywordMessage = &v
+ return s
+}
+
+// Contains the delivery stream Amazon Resource Name (ARN), and the ARN of the
+// Identity and Access Management (IAM) role associated with an Kinesis Data
+// Firehose event destination.
+//
+// Event destinations, such as Kinesis Data Firehose, are associated with configuration
+// sets, which enable you to publish message sending events.
+type KinesisFirehoseDestination struct {
+ _ struct{} `type:"structure"`
+
+ // The Amazon Resource Name (ARN) of the delivery stream.
+ //
+ // DeliveryStreamArn is a required field
+ DeliveryStreamArn *string `min:"20" type:"string" required:"true"`
+
+ // The ARN of an Amazon Identity and Access Management (IAM) role that is able
+ // to write event data to an Amazon Firehose destination.
+ //
+ // IamRoleArn is a required field
+ IamRoleArn *string `min:"20" type:"string" required:"true"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s KinesisFirehoseDestination) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s KinesisFirehoseDestination) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *KinesisFirehoseDestination) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "KinesisFirehoseDestination"}
+ if s.DeliveryStreamArn == nil {
+ invalidParams.Add(request.NewErrParamRequired("DeliveryStreamArn"))
+ }
+ if s.DeliveryStreamArn != nil && len(*s.DeliveryStreamArn) < 20 {
+ invalidParams.Add(request.NewErrParamMinLen("DeliveryStreamArn", 20))
+ }
+ if s.IamRoleArn == nil {
+ invalidParams.Add(request.NewErrParamRequired("IamRoleArn"))
+ }
+ if s.IamRoleArn != nil && len(*s.IamRoleArn) < 20 {
+ invalidParams.Add(request.NewErrParamMinLen("IamRoleArn", 20))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetDeliveryStreamArn sets the DeliveryStreamArn field's value.
+func (s *KinesisFirehoseDestination) SetDeliveryStreamArn(v string) *KinesisFirehoseDestination {
+ s.DeliveryStreamArn = &v
+ return s
+}
+
+// SetIamRoleArn sets the IamRoleArn field's value.
+func (s *KinesisFirehoseDestination) SetIamRoleArn(v string) *KinesisFirehoseDestination {
+ s.IamRoleArn = &v
+ return s
+}
+
+type ListPoolOriginationIdentitiesInput struct {
+ _ struct{} `type:"structure"`
+
+ // An array of PoolOriginationIdentitiesFilter objects to filter the results..
+ Filters []*PoolOriginationIdentitiesFilter `type:"list"`
+
+ // The maximum number of results to return per each request.
+ MaxResults *int64 `min:"1" type:"integer"`
+
+ // The token to be used for the next set of paginated results. You don't need
+ // to supply a value for this field in the initial request.
+ NextToken *string `min:"1" type:"string"`
+
+ // The unique identifier for the pool. This value can be either the PoolId or
+ // PoolArn.
+ //
+ // PoolId is a required field
+ PoolId *string `min:"1" type:"string" required:"true"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s ListPoolOriginationIdentitiesInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s ListPoolOriginationIdentitiesInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *ListPoolOriginationIdentitiesInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "ListPoolOriginationIdentitiesInput"}
+ if s.MaxResults != nil && *s.MaxResults < 1 {
+ invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
+ }
+ if s.NextToken != nil && len(*s.NextToken) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
+ }
+ if s.PoolId == nil {
+ invalidParams.Add(request.NewErrParamRequired("PoolId"))
+ }
+ if s.PoolId != nil && len(*s.PoolId) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("PoolId", 1))
+ }
+ if s.Filters != nil {
+ for i, v := range s.Filters {
+ if v == nil {
+ continue
+ }
+ if err := v.Validate(); err != nil {
+ invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams))
+ }
+ }
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetFilters sets the Filters field's value.
+func (s *ListPoolOriginationIdentitiesInput) SetFilters(v []*PoolOriginationIdentitiesFilter) *ListPoolOriginationIdentitiesInput {
+ s.Filters = v
+ return s
+}
+
+// SetMaxResults sets the MaxResults field's value.
+func (s *ListPoolOriginationIdentitiesInput) SetMaxResults(v int64) *ListPoolOriginationIdentitiesInput {
+ s.MaxResults = &v
+ return s
+}
+
+// SetNextToken sets the NextToken field's value.
+func (s *ListPoolOriginationIdentitiesInput) SetNextToken(v string) *ListPoolOriginationIdentitiesInput {
+ s.NextToken = &v
+ return s
+}
+
+// SetPoolId sets the PoolId field's value.
+func (s *ListPoolOriginationIdentitiesInput) SetPoolId(v string) *ListPoolOriginationIdentitiesInput {
+ s.PoolId = &v
+ return s
+}
+
+type ListPoolOriginationIdentitiesOutput struct {
+ _ struct{} `type:"structure"`
+
+ // The token to be used for the next set of paginated results. If this field
+ // is empty then there are no more results.
+ NextToken *string `min:"1" type:"string"`
+
+ // An array of any OriginationIdentityMetadata objects.
+ OriginationIdentities []*OriginationIdentityMetadata `type:"list"`
+
+ // The Amazon Resource Name (ARN) for the pool.
+ PoolArn *string `type:"string"`
+
+ // The unique PoolId of the pool.
+ PoolId *string `type:"string"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s ListPoolOriginationIdentitiesOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s ListPoolOriginationIdentitiesOutput) GoString() string {
+ return s.String()
+}
+
+// SetNextToken sets the NextToken field's value.
+func (s *ListPoolOriginationIdentitiesOutput) SetNextToken(v string) *ListPoolOriginationIdentitiesOutput {
+ s.NextToken = &v
+ return s
+}
+
+// SetOriginationIdentities sets the OriginationIdentities field's value.
+func (s *ListPoolOriginationIdentitiesOutput) SetOriginationIdentities(v []*OriginationIdentityMetadata) *ListPoolOriginationIdentitiesOutput {
+ s.OriginationIdentities = v
+ return s
+}
+
+// SetPoolArn sets the PoolArn field's value.
+func (s *ListPoolOriginationIdentitiesOutput) SetPoolArn(v string) *ListPoolOriginationIdentitiesOutput {
+ s.PoolArn = &v
+ return s
+}
+
+// SetPoolId sets the PoolId field's value.
+func (s *ListPoolOriginationIdentitiesOutput) SetPoolId(v string) *ListPoolOriginationIdentitiesOutput {
+ s.PoolId = &v
+ return s
+}
+
+type ListTagsForResourceInput struct {
+ _ struct{} `type:"structure"`
+
+ // The Amazon Resource Name (ARN) of the resource to query for.
+ //
+ // ResourceArn is a required field
+ ResourceArn *string `min:"20" type:"string" required:"true"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s ListTagsForResourceInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s ListTagsForResourceInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *ListTagsForResourceInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "ListTagsForResourceInput"}
+ if s.ResourceArn == nil {
+ invalidParams.Add(request.NewErrParamRequired("ResourceArn"))
+ }
+ if s.ResourceArn != nil && len(*s.ResourceArn) < 20 {
+ invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 20))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetResourceArn sets the ResourceArn field's value.
+func (s *ListTagsForResourceInput) SetResourceArn(v string) *ListTagsForResourceInput {
+ s.ResourceArn = &v
+ return s
+}
+
+type ListTagsForResourceOutput struct {
+ _ struct{} `type:"structure"`
+
+ // The ARN of the resource.
+ ResourceArn *string `min:"20" type:"string"`
+
+ // An array of key and value pair tags that are associated with the resource.
+ Tags []*Tag `type:"list"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s ListTagsForResourceOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s ListTagsForResourceOutput) GoString() string {
+ return s.String()
+}
+
+// SetResourceArn sets the ResourceArn field's value.
+func (s *ListTagsForResourceOutput) SetResourceArn(v string) *ListTagsForResourceOutput {
+ s.ResourceArn = &v
+ return s
+}
+
+// SetTags sets the Tags field's value.
+func (s *ListTagsForResourceOutput) SetTags(v []*Tag) *ListTagsForResourceOutput {
+ s.Tags = v
+ return s
+}
+
+// The information for all OptOutList in an Amazon Web Services account.
+type OptOutListInformation struct {
+ _ struct{} `type:"structure"`
+
+ // The time when the OutOutList was created, in UNIX epoch time (https://www.epochconverter.com/)
+ // format.
+ //
+ // CreatedTimestamp is a required field
+ CreatedTimestamp *time.Time `type:"timestamp" required:"true"`
+
+ // The Amazon Resource Name (ARN) of the OptOutList.
+ //
+ // OptOutListArn is a required field
+ OptOutListArn *string `type:"string" required:"true"`
+
+ // The name of the OptOutList.
+ //
+ // OptOutListName is a required field
+ OptOutListName *string `min:"1" type:"string" required:"true"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s OptOutListInformation) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s OptOutListInformation) GoString() string {
+ return s.String()
+}
+
+// SetCreatedTimestamp sets the CreatedTimestamp field's value.
+func (s *OptOutListInformation) SetCreatedTimestamp(v time.Time) *OptOutListInformation {
+ s.CreatedTimestamp = &v
+ return s
+}
+
+// SetOptOutListArn sets the OptOutListArn field's value.
+func (s *OptOutListInformation) SetOptOutListArn(v string) *OptOutListInformation {
+ s.OptOutListArn = &v
+ return s
+}
+
+// SetOptOutListName sets the OptOutListName field's value.
+func (s *OptOutListInformation) SetOptOutListName(v string) *OptOutListInformation {
+ s.OptOutListName = &v
+ return s
+}
+
+// The information for opted out numbers that meet a specified criteria.
+type OptedOutFilter struct {
+ _ struct{} `type:"structure"`
+
+ // The name of the attribute to filter on.
+ //
+ // Name is a required field
+ Name *string `type:"string" required:"true" enum:"OptedOutFilterName"`
+
+ // An array of values to filter for.
+ //
+ // Values is a required field
+ Values []*string `min:"1" type:"list" required:"true"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s OptedOutFilter) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s OptedOutFilter) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *OptedOutFilter) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "OptedOutFilter"}
+ if s.Name == nil {
+ invalidParams.Add(request.NewErrParamRequired("Name"))
+ }
+ if s.Values == nil {
+ invalidParams.Add(request.NewErrParamRequired("Values"))
+ }
+ if s.Values != nil && len(s.Values) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("Values", 1))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetName sets the Name field's value.
+func (s *OptedOutFilter) SetName(v string) *OptedOutFilter {
+ s.Name = &v
+ return s
+}
+
+// SetValues sets the Values field's value.
+func (s *OptedOutFilter) SetValues(v []*string) *OptedOutFilter {
+ s.Values = v
+ return s
+}
+
+// The information for an opted out number in an Amazon Web Services account.
+type OptedOutNumberInformation struct {
+ _ struct{} `type:"structure"`
+
+ // This is set to true if it was the end recipient that opted out.
+ //
+ // EndUserOptedOut is a required field
+ EndUserOptedOut *bool `type:"boolean" required:"true"`
+
+ // The phone number that is opted out.
+ //
+ // OptedOutNumber is a required field
+ OptedOutNumber *string `min:"1" type:"string" required:"true"`
+
+ // The time that the op tout occurred, in UNIX epoch time (https://www.epochconverter.com/)
+ // format.
+ //
+ // OptedOutTimestamp is a required field
+ OptedOutTimestamp *time.Time `type:"timestamp" required:"true"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s OptedOutNumberInformation) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s OptedOutNumberInformation) GoString() string {
+ return s.String()
+}
+
+// SetEndUserOptedOut sets the EndUserOptedOut field's value.
+func (s *OptedOutNumberInformation) SetEndUserOptedOut(v bool) *OptedOutNumberInformation {
+ s.EndUserOptedOut = &v
+ return s
+}
+
+// SetOptedOutNumber sets the OptedOutNumber field's value.
+func (s *OptedOutNumberInformation) SetOptedOutNumber(v string) *OptedOutNumberInformation {
+ s.OptedOutNumber = &v
+ return s
+}
+
+// SetOptedOutTimestamp sets the OptedOutTimestamp field's value.
+func (s *OptedOutNumberInformation) SetOptedOutTimestamp(v time.Time) *OptedOutNumberInformation {
+ s.OptedOutTimestamp = &v
+ return s
+}
+
+// The metadata for an origination identity associated with a pool.
+type OriginationIdentityMetadata struct {
+ _ struct{} `type:"structure"`
+
+ // The two-character code, in ISO 3166-1 alpha-2 format, for the country or
+ // region.
+ //
+ // IsoCountryCode is a required field
+ IsoCountryCode *string `min:"2" type:"string" required:"true"`
+
+ // Describes if the origination identity can be used for text messages, voice
+ // calls or both.
+ //
+ // NumberCapabilities is a required field
+ NumberCapabilities []*string `min:"1" type:"list" required:"true" enum:"NumberCapability"`
+
+ // The unique identifier of the origination identity.
+ //
+ // OriginationIdentity is a required field
+ OriginationIdentity *string `type:"string" required:"true"`
+
+ // The Amazon Resource Name (ARN) associated with the origination identity.
+ //
+ // OriginationIdentityArn is a required field
+ OriginationIdentityArn *string `type:"string" required:"true"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s OriginationIdentityMetadata) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s OriginationIdentityMetadata) GoString() string {
+ return s.String()
+}
+
+// SetIsoCountryCode sets the IsoCountryCode field's value.
+func (s *OriginationIdentityMetadata) SetIsoCountryCode(v string) *OriginationIdentityMetadata {
+ s.IsoCountryCode = &v
+ return s
+}
+
+// SetNumberCapabilities sets the NumberCapabilities field's value.
+func (s *OriginationIdentityMetadata) SetNumberCapabilities(v []*string) *OriginationIdentityMetadata {
+ s.NumberCapabilities = v
+ return s
+}
+
+// SetOriginationIdentity sets the OriginationIdentity field's value.
+func (s *OriginationIdentityMetadata) SetOriginationIdentity(v string) *OriginationIdentityMetadata {
+ s.OriginationIdentity = &v
+ return s
+}
+
+// SetOriginationIdentityArn sets the OriginationIdentityArn field's value.
+func (s *OriginationIdentityMetadata) SetOriginationIdentityArn(v string) *OriginationIdentityMetadata {
+ s.OriginationIdentityArn = &v
+ return s
+}
+
+// The information for a phone number that meets a specified criteria.
+type PhoneNumberFilter struct {
+ _ struct{} `type:"structure"`
+
+ // The name of the attribute to filter on.
+ //
+ // Name is a required field
+ Name *string `type:"string" required:"true" enum:"PhoneNumberFilterName"`
+
+ // An array values to filter for.
+ //
+ // Values is a required field
+ Values []*string `min:"1" type:"list" required:"true"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s PhoneNumberFilter) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s PhoneNumberFilter) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *PhoneNumberFilter) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "PhoneNumberFilter"}
+ if s.Name == nil {
+ invalidParams.Add(request.NewErrParamRequired("Name"))
+ }
+ if s.Values == nil {
+ invalidParams.Add(request.NewErrParamRequired("Values"))
+ }
+ if s.Values != nil && len(s.Values) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("Values", 1))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetName sets the Name field's value.
+func (s *PhoneNumberFilter) SetName(v string) *PhoneNumberFilter {
+ s.Name = &v
+ return s
+}
+
+// SetValues sets the Values field's value.
+func (s *PhoneNumberFilter) SetValues(v []*string) *PhoneNumberFilter {
+ s.Values = v
+ return s
+}
+
+// The information for a phone number in an Amazon Web Services account.
+type PhoneNumberInformation struct {
+ _ struct{} `type:"structure"`
+
+ // The time when the phone number was created, in UNIX epoch time (https://www.epochconverter.com/)
+ // format.
+ //
+ // CreatedTimestamp is a required field
+ CreatedTimestamp *time.Time `type:"timestamp" required:"true"`
+
+ // When set to true the phone number can't be deleted.
+ //
+ // DeletionProtectionEnabled is a required field
+ DeletionProtectionEnabled *bool `type:"boolean" required:"true"`
+
+ // The two-character code, in ISO 3166-1 alpha-2 format, for the country or
+ // region.
+ //
+ // IsoCountryCode is a required field
+ IsoCountryCode *string `min:"2" type:"string" required:"true"`
+
+ // The type of message. Valid values are TRANSACTIONAL for messages that are
+ // critical or time-sensitive and PROMOTIONAL for messages that aren't critical
+ // or time-sensitive.
+ //
+ // MessageType is a required field
+ MessageType *string `type:"string" required:"true" enum:"MessageType"`
+
+ // The price, in US dollars, to lease the phone number.
+ //
+ // MonthlyLeasingPrice is a required field
+ MonthlyLeasingPrice *string `type:"string" required:"true"`
+
+ // Describes if the origination identity can be used for text messages, voice
+ // calls or both.
+ //
+ // NumberCapabilities is a required field
+ NumberCapabilities []*string `min:"1" type:"list" required:"true" enum:"NumberCapability"`
+
+ // The type of phone number.
+ //
+ // NumberType is a required field
+ NumberType *string `type:"string" required:"true" enum:"NumberType"`
+
+ // The name of the OptOutList associated with the phone number.
+ //
+ // OptOutListName is a required field
+ OptOutListName *string `min:"1" type:"string" required:"true"`
+
+ // The phone number in E.164 format.
+ //
+ // PhoneNumber is a required field
+ PhoneNumber *string `min:"1" type:"string" required:"true"`
+
+ // The Amazon Resource Name (ARN) associated with the phone number.
+ //
+ // PhoneNumberArn is a required field
+ PhoneNumberArn *string `type:"string" required:"true"`
+
+ // The unique identifier for the phone number.
+ PhoneNumberId *string `type:"string"`
+
+ // The unique identifier of the pool associated with the phone number.
+ PoolId *string `type:"string"`
+
+ // When set to false an end recipient sends a message that begins with HELP
+ // or STOP to one of your dedicated numbers, Amazon Pinpoint automatically replies
+ // with a customizable message and adds the end recipient to the OptOutList.
+ // When set to true you're responsible for responding to HELP and STOP requests.
+ // You're also responsible for tracking and honoring opt-out request. For more
+ // information see Self-managed opt-outs (https://docs.aws.amazon.com/pinpoint/latest/userguide/settings-sms-managing.html#settings-account-sms-self-managed-opt-out)
+ //
+ // SelfManagedOptOutsEnabled is a required field
+ SelfManagedOptOutsEnabled *bool `type:"boolean" required:"true"`
+
+ // The current status of the phone number.
+ //
+ // Status is a required field
+ Status *string `type:"string" required:"true" enum:"NumberStatus"`
+
+ // The Amazon Resource Name (ARN) of the two way channel.
+ TwoWayChannelArn *string `min:"20" type:"string"`
+
+ // By default this is set to false. When set to true you can receive incoming
+ // text messages from your end recipients using the TwoWayChannelArn.
+ //
+ // TwoWayEnabled is a required field
+ TwoWayEnabled *bool `type:"boolean" required:"true"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s PhoneNumberInformation) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s PhoneNumberInformation) GoString() string {
+ return s.String()
+}
+
+// SetCreatedTimestamp sets the CreatedTimestamp field's value.
+func (s *PhoneNumberInformation) SetCreatedTimestamp(v time.Time) *PhoneNumberInformation {
+ s.CreatedTimestamp = &v
+ return s
+}
+
+// SetDeletionProtectionEnabled sets the DeletionProtectionEnabled field's value.
+func (s *PhoneNumberInformation) SetDeletionProtectionEnabled(v bool) *PhoneNumberInformation {
+ s.DeletionProtectionEnabled = &v
+ return s
+}
+
+// SetIsoCountryCode sets the IsoCountryCode field's value.
+func (s *PhoneNumberInformation) SetIsoCountryCode(v string) *PhoneNumberInformation {
+ s.IsoCountryCode = &v
+ return s
+}
+
+// SetMessageType sets the MessageType field's value.
+func (s *PhoneNumberInformation) SetMessageType(v string) *PhoneNumberInformation {
+ s.MessageType = &v
+ return s
+}
+
+// SetMonthlyLeasingPrice sets the MonthlyLeasingPrice field's value.
+func (s *PhoneNumberInformation) SetMonthlyLeasingPrice(v string) *PhoneNumberInformation {
+ s.MonthlyLeasingPrice = &v
+ return s
+}
+
+// SetNumberCapabilities sets the NumberCapabilities field's value.
+func (s *PhoneNumberInformation) SetNumberCapabilities(v []*string) *PhoneNumberInformation {
+ s.NumberCapabilities = v
+ return s
+}
+
+// SetNumberType sets the NumberType field's value.
+func (s *PhoneNumberInformation) SetNumberType(v string) *PhoneNumberInformation {
+ s.NumberType = &v
+ return s
+}
+
+// SetOptOutListName sets the OptOutListName field's value.
+func (s *PhoneNumberInformation) SetOptOutListName(v string) *PhoneNumberInformation {
+ s.OptOutListName = &v
+ return s
+}
+
+// SetPhoneNumber sets the PhoneNumber field's value.
+func (s *PhoneNumberInformation) SetPhoneNumber(v string) *PhoneNumberInformation {
+ s.PhoneNumber = &v
+ return s
+}
+
+// SetPhoneNumberArn sets the PhoneNumberArn field's value.
+func (s *PhoneNumberInformation) SetPhoneNumberArn(v string) *PhoneNumberInformation {
+ s.PhoneNumberArn = &v
+ return s
+}
+
+// SetPhoneNumberId sets the PhoneNumberId field's value.
+func (s *PhoneNumberInformation) SetPhoneNumberId(v string) *PhoneNumberInformation {
+ s.PhoneNumberId = &v
+ return s
+}
+
+// SetPoolId sets the PoolId field's value.
+func (s *PhoneNumberInformation) SetPoolId(v string) *PhoneNumberInformation {
+ s.PoolId = &v
+ return s
+}
+
+// SetSelfManagedOptOutsEnabled sets the SelfManagedOptOutsEnabled field's value.
+func (s *PhoneNumberInformation) SetSelfManagedOptOutsEnabled(v bool) *PhoneNumberInformation {
+ s.SelfManagedOptOutsEnabled = &v
+ return s
+}
+
+// SetStatus sets the Status field's value.
+func (s *PhoneNumberInformation) SetStatus(v string) *PhoneNumberInformation {
+ s.Status = &v
+ return s
+}
+
+// SetTwoWayChannelArn sets the TwoWayChannelArn field's value.
+func (s *PhoneNumberInformation) SetTwoWayChannelArn(v string) *PhoneNumberInformation {
+ s.TwoWayChannelArn = &v
+ return s
+}
+
+// SetTwoWayEnabled sets the TwoWayEnabled field's value.
+func (s *PhoneNumberInformation) SetTwoWayEnabled(v bool) *PhoneNumberInformation {
+ s.TwoWayEnabled = &v
+ return s
+}
+
+// The information for a pool that meets a specified criteria.
+type PoolFilter struct {
+ _ struct{} `type:"structure"`
+
+ // The name of the attribute to filter on.
+ //
+ // Name is a required field
+ Name *string `type:"string" required:"true" enum:"PoolFilterName"`
+
+ // An array values to filter for.
+ //
+ // Values is a required field
+ Values []*string `min:"1" type:"list" required:"true"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s PoolFilter) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s PoolFilter) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *PoolFilter) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "PoolFilter"}
+ if s.Name == nil {
+ invalidParams.Add(request.NewErrParamRequired("Name"))
+ }
+ if s.Values == nil {
+ invalidParams.Add(request.NewErrParamRequired("Values"))
+ }
+ if s.Values != nil && len(s.Values) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("Values", 1))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetName sets the Name field's value.
+func (s *PoolFilter) SetName(v string) *PoolFilter {
+ s.Name = &v
+ return s
+}
+
+// SetValues sets the Values field's value.
+func (s *PoolFilter) SetValues(v []*string) *PoolFilter {
+ s.Values = v
+ return s
+}
+
+// The information for a pool in an Amazon Web Services account.
+type PoolInformation struct {
+ _ struct{} `type:"structure"`
+
+ // The time when the pool was created, in UNIX epoch time (https://www.epochconverter.com/)
+ // format.
+ //
+ // CreatedTimestamp is a required field
+ CreatedTimestamp *time.Time `type:"timestamp" required:"true"`
+
+ // When set to true the pool can't be deleted.
+ //
+ // DeletionProtectionEnabled is a required field
+ DeletionProtectionEnabled *bool `type:"boolean" required:"true"`
+
+ // The type of message. Valid values are TRANSACTIONAL for messages that are
+ // critical or time-sensitive and PROMOTIONAL for messages that aren't critical
+ // or time-sensitive.
+ //
+ // MessageType is a required field
+ MessageType *string `type:"string" required:"true" enum:"MessageType"`
+
+ // The name of the OptOutList associated with the pool.
+ //
+ // OptOutListName is a required field
+ OptOutListName *string `min:"1" type:"string" required:"true"`
+
+ // The Amazon Resource Name (ARN) for the pool.
+ //
+ // PoolArn is a required field
+ PoolArn *string `type:"string" required:"true"`
+
+ // The unique identifier for the pool.
+ //
+ // PoolId is a required field
+ PoolId *string `type:"string" required:"true"`
+
+ // When set to false, an end recipient sends a message that begins with HELP
+ // or STOP to one of your dedicated numbers, Amazon Pinpoint automatically replies
+ // with a customizable message and adds the end recipient to the OptOutList.
+ // When set to true you're responsible for responding to HELP and STOP requests.
+ // You're also responsible for tracking and honoring opt-out requests. For more
+ // information see Self-managed opt-outs (https://docs.aws.amazon.com/pinpoint/latest/userguide/settings-sms-managing.html#settings-account-sms-self-managed-opt-out)
+ //
+ // SelfManagedOptOutsEnabled is a required field
+ SelfManagedOptOutsEnabled *bool `type:"boolean" required:"true"`
+
+ // Allows you to enable shared routes on your pool.
+ //
+ // By default, this is set to False. If you set this value to True, your messages
+ // are sent using phone numbers or sender IDs (depending on the country) that
+ // are shared with other Amazon Pinpoint users. In some countries, such as the
+ // United States, senders aren't allowed to use shared routes and must use a
+ // dedicated phone number or short code.
+ //
+ // SharedRoutesEnabled is a required field
+ SharedRoutesEnabled *bool `type:"boolean" required:"true"`
+
+ // The current status of the pool.
+ //
+ // Status is a required field
+ Status *string `type:"string" required:"true" enum:"PoolStatus"`
+
+ // The Amazon Resource Name (ARN) of the two way channel.
+ TwoWayChannelArn *string `min:"20" type:"string"`
+
+ // When set to true you can receive incoming text messages from your end recipients
+ // using the TwoWayChannelArn.
+ //
+ // TwoWayEnabled is a required field
+ TwoWayEnabled *bool `type:"boolean" required:"true"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s PoolInformation) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s PoolInformation) GoString() string {
+ return s.String()
+}
+
+// SetCreatedTimestamp sets the CreatedTimestamp field's value.
+func (s *PoolInformation) SetCreatedTimestamp(v time.Time) *PoolInformation {
+ s.CreatedTimestamp = &v
+ return s
+}
+
+// SetDeletionProtectionEnabled sets the DeletionProtectionEnabled field's value.
+func (s *PoolInformation) SetDeletionProtectionEnabled(v bool) *PoolInformation {
+ s.DeletionProtectionEnabled = &v
+ return s
+}
+
+// SetMessageType sets the MessageType field's value.
+func (s *PoolInformation) SetMessageType(v string) *PoolInformation {
+ s.MessageType = &v
+ return s
+}
+
+// SetOptOutListName sets the OptOutListName field's value.
+func (s *PoolInformation) SetOptOutListName(v string) *PoolInformation {
+ s.OptOutListName = &v
+ return s
+}
+
+// SetPoolArn sets the PoolArn field's value.
+func (s *PoolInformation) SetPoolArn(v string) *PoolInformation {
+ s.PoolArn = &v
+ return s
+}
+
+// SetPoolId sets the PoolId field's value.
+func (s *PoolInformation) SetPoolId(v string) *PoolInformation {
+ s.PoolId = &v
+ return s
+}
+
+// SetSelfManagedOptOutsEnabled sets the SelfManagedOptOutsEnabled field's value.
+func (s *PoolInformation) SetSelfManagedOptOutsEnabled(v bool) *PoolInformation {
+ s.SelfManagedOptOutsEnabled = &v
+ return s
+}
+
+// SetSharedRoutesEnabled sets the SharedRoutesEnabled field's value.
+func (s *PoolInformation) SetSharedRoutesEnabled(v bool) *PoolInformation {
+ s.SharedRoutesEnabled = &v
+ return s
+}
+
+// SetStatus sets the Status field's value.
+func (s *PoolInformation) SetStatus(v string) *PoolInformation {
+ s.Status = &v
+ return s
+}
+
+// SetTwoWayChannelArn sets the TwoWayChannelArn field's value.
+func (s *PoolInformation) SetTwoWayChannelArn(v string) *PoolInformation {
+ s.TwoWayChannelArn = &v
+ return s
+}
+
+// SetTwoWayEnabled sets the TwoWayEnabled field's value.
+func (s *PoolInformation) SetTwoWayEnabled(v bool) *PoolInformation {
+ s.TwoWayEnabled = &v
+ return s
+}
+
+// Information about origination identities associated with a pool that meets
+// a specified criteria.
+type PoolOriginationIdentitiesFilter struct {
+ _ struct{} `type:"structure"`
+
+ // The name of the attribute to filter on.
+ //
+ // Name is a required field
+ Name *string `type:"string" required:"true" enum:"PoolOriginationIdentitiesFilterName"`
+
+ // An array values to filter for.
+ //
+ // Values is a required field
+ Values []*string `min:"1" type:"list" required:"true"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s PoolOriginationIdentitiesFilter) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s PoolOriginationIdentitiesFilter) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *PoolOriginationIdentitiesFilter) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "PoolOriginationIdentitiesFilter"}
+ if s.Name == nil {
+ invalidParams.Add(request.NewErrParamRequired("Name"))
+ }
+ if s.Values == nil {
+ invalidParams.Add(request.NewErrParamRequired("Values"))
+ }
+ if s.Values != nil && len(s.Values) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("Values", 1))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetName sets the Name field's value.
+func (s *PoolOriginationIdentitiesFilter) SetName(v string) *PoolOriginationIdentitiesFilter {
+ s.Name = &v
+ return s
+}
+
+// SetValues sets the Values field's value.
+func (s *PoolOriginationIdentitiesFilter) SetValues(v []*string) *PoolOriginationIdentitiesFilter {
+ s.Values = v
+ return s
+}
+
+type PutKeywordInput struct {
+ _ struct{} `type:"structure"`
+
+ // The new keyword to add.
+ //
+ // Keyword is a required field
+ Keyword *string `min:"1" type:"string" required:"true"`
+
+ // The action to perform for the new keyword when it is received.
+ KeywordAction *string `type:"string" enum:"KeywordAction"`
+
+ // The message associated with the keyword.
+ //
+ // * AUTOMATIC_RESPONSE: A message is sent to the recipient.
+ //
+ // * OPT_OUT: Keeps the recipient from receiving future messages.
+ //
+ // * OPT_IN: The recipient wants to receive future messages.
+ //
+ // KeywordMessage is a required field
+ KeywordMessage *string `min:"1" type:"string" required:"true"`
+
+ // The origination identity to use such as a PhoneNumberId, PhoneNumberArn,
+ // SenderId or SenderIdArn. You can use DescribePhoneNumbers get the values
+ // for PhoneNumberId and PhoneNumberArn while DescribeSenderIds can be used
+ // to get the values for SenderId and SenderIdArn.
+ //
+ // OriginationIdentity is a required field
+ OriginationIdentity *string `min:"1" type:"string" required:"true"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s PutKeywordInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s PutKeywordInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *PutKeywordInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "PutKeywordInput"}
+ if s.Keyword == nil {
+ invalidParams.Add(request.NewErrParamRequired("Keyword"))
+ }
+ if s.Keyword != nil && len(*s.Keyword) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("Keyword", 1))
+ }
+ if s.KeywordMessage == nil {
+ invalidParams.Add(request.NewErrParamRequired("KeywordMessage"))
+ }
+ if s.KeywordMessage != nil && len(*s.KeywordMessage) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("KeywordMessage", 1))
+ }
+ if s.OriginationIdentity == nil {
+ invalidParams.Add(request.NewErrParamRequired("OriginationIdentity"))
+ }
+ if s.OriginationIdentity != nil && len(*s.OriginationIdentity) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("OriginationIdentity", 1))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetKeyword sets the Keyword field's value.
+func (s *PutKeywordInput) SetKeyword(v string) *PutKeywordInput {
+ s.Keyword = &v
+ return s
+}
+
+// SetKeywordAction sets the KeywordAction field's value.
+func (s *PutKeywordInput) SetKeywordAction(v string) *PutKeywordInput {
+ s.KeywordAction = &v
+ return s
+}
+
+// SetKeywordMessage sets the KeywordMessage field's value.
+func (s *PutKeywordInput) SetKeywordMessage(v string) *PutKeywordInput {
+ s.KeywordMessage = &v
+ return s
+}
+
+// SetOriginationIdentity sets the OriginationIdentity field's value.
+func (s *PutKeywordInput) SetOriginationIdentity(v string) *PutKeywordInput {
+ s.OriginationIdentity = &v
+ return s
+}
+
+type PutKeywordOutput struct {
+ _ struct{} `type:"structure"`
+
+ // The keyword that was added.
+ Keyword *string `min:"1" type:"string"`
+
+ // The action to perform when the keyword is used.
+ KeywordAction *string `type:"string" enum:"KeywordAction"`
+
+ // The message associated with the keyword.
+ KeywordMessage *string `min:"1" type:"string"`
+
+ // The PhoneNumberId or PoolId that the keyword was associated with.
+ OriginationIdentity *string `type:"string"`
+
+ // The PhoneNumberArn or PoolArn that the keyword was associated with.
+ OriginationIdentityArn *string `type:"string"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s PutKeywordOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s PutKeywordOutput) GoString() string {
+ return s.String()
+}
+
+// SetKeyword sets the Keyword field's value.
+func (s *PutKeywordOutput) SetKeyword(v string) *PutKeywordOutput {
+ s.Keyword = &v
+ return s
+}
+
+// SetKeywordAction sets the KeywordAction field's value.
+func (s *PutKeywordOutput) SetKeywordAction(v string) *PutKeywordOutput {
+ s.KeywordAction = &v
+ return s
+}
+
+// SetKeywordMessage sets the KeywordMessage field's value.
+func (s *PutKeywordOutput) SetKeywordMessage(v string) *PutKeywordOutput {
+ s.KeywordMessage = &v
+ return s
+}
+
+// SetOriginationIdentity sets the OriginationIdentity field's value.
+func (s *PutKeywordOutput) SetOriginationIdentity(v string) *PutKeywordOutput {
+ s.OriginationIdentity = &v
+ return s
+}
+
+// SetOriginationIdentityArn sets the OriginationIdentityArn field's value.
+func (s *PutKeywordOutput) SetOriginationIdentityArn(v string) *PutKeywordOutput {
+ s.OriginationIdentityArn = &v
+ return s
+}
+
+type PutOptedOutNumberInput struct {
+ _ struct{} `type:"structure"`
+
+ // The OptOutListName or OptOutListArn to add the phone number to.
+ //
+ // OptOutListName is a required field
+ OptOutListName *string `min:"1" type:"string" required:"true"`
+
+ // The phone number to add to the OptOutList in E.164 format.
+ //
+ // OptedOutNumber is a required field
+ OptedOutNumber *string `min:"1" type:"string" required:"true"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s PutOptedOutNumberInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s PutOptedOutNumberInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *PutOptedOutNumberInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "PutOptedOutNumberInput"}
+ if s.OptOutListName == nil {
+ invalidParams.Add(request.NewErrParamRequired("OptOutListName"))
+ }
+ if s.OptOutListName != nil && len(*s.OptOutListName) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("OptOutListName", 1))
+ }
+ if s.OptedOutNumber == nil {
+ invalidParams.Add(request.NewErrParamRequired("OptedOutNumber"))
+ }
+ if s.OptedOutNumber != nil && len(*s.OptedOutNumber) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("OptedOutNumber", 1))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetOptOutListName sets the OptOutListName field's value.
+func (s *PutOptedOutNumberInput) SetOptOutListName(v string) *PutOptedOutNumberInput {
+ s.OptOutListName = &v
+ return s
+}
+
+// SetOptedOutNumber sets the OptedOutNumber field's value.
+func (s *PutOptedOutNumberInput) SetOptedOutNumber(v string) *PutOptedOutNumberInput {
+ s.OptedOutNumber = &v
+ return s
+}
+
+type PutOptedOutNumberOutput struct {
+ _ struct{} `type:"structure"`
+
+ // This is true if it was the end user who requested their phone number be removed.
+ EndUserOptedOut *bool `type:"boolean"`
+
+ // The OptOutListArn that the phone number was removed from.
+ OptOutListArn *string `type:"string"`
+
+ // The OptOutListName that the phone number was removed from.
+ OptOutListName *string `min:"1" type:"string"`
+
+ // The phone number that was added to the OptOutList.
+ OptedOutNumber *string `min:"1" type:"string"`
+
+ // The time that the phone number was added to the OptOutList, in UNIX epoch
+ // time (https://www.epochconverter.com/) format.
+ OptedOutTimestamp *time.Time `type:"timestamp"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s PutOptedOutNumberOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s PutOptedOutNumberOutput) GoString() string {
+ return s.String()
+}
+
+// SetEndUserOptedOut sets the EndUserOptedOut field's value.
+func (s *PutOptedOutNumberOutput) SetEndUserOptedOut(v bool) *PutOptedOutNumberOutput {
+ s.EndUserOptedOut = &v
+ return s
+}
+
+// SetOptOutListArn sets the OptOutListArn field's value.
+func (s *PutOptedOutNumberOutput) SetOptOutListArn(v string) *PutOptedOutNumberOutput {
+ s.OptOutListArn = &v
+ return s
+}
+
+// SetOptOutListName sets the OptOutListName field's value.
+func (s *PutOptedOutNumberOutput) SetOptOutListName(v string) *PutOptedOutNumberOutput {
+ s.OptOutListName = &v
+ return s
+}
+
+// SetOptedOutNumber sets the OptedOutNumber field's value.
+func (s *PutOptedOutNumberOutput) SetOptedOutNumber(v string) *PutOptedOutNumberOutput {
+ s.OptedOutNumber = &v
+ return s
+}
+
+// SetOptedOutTimestamp sets the OptedOutTimestamp field's value.
+func (s *PutOptedOutNumberOutput) SetOptedOutTimestamp(v time.Time) *PutOptedOutNumberOutput {
+ s.OptedOutTimestamp = &v
+ return s
+}
+
+type ReleasePhoneNumberInput struct {
+ _ struct{} `type:"structure"`
+
+ // The PhoneNumberId or PhoneNumberArn of the phone number to release. You can
+ // use DescribePhoneNumbers to get the values for PhoneNumberId and PhoneNumberArn.
+ //
+ // PhoneNumberId is a required field
+ PhoneNumberId *string `min:"1" type:"string" required:"true"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s ReleasePhoneNumberInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s ReleasePhoneNumberInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *ReleasePhoneNumberInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "ReleasePhoneNumberInput"}
+ if s.PhoneNumberId == nil {
+ invalidParams.Add(request.NewErrParamRequired("PhoneNumberId"))
+ }
+ if s.PhoneNumberId != nil && len(*s.PhoneNumberId) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("PhoneNumberId", 1))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetPhoneNumberId sets the PhoneNumberId field's value.
+func (s *ReleasePhoneNumberInput) SetPhoneNumberId(v string) *ReleasePhoneNumberInput {
+ s.PhoneNumberId = &v
+ return s
+}
+
+type ReleasePhoneNumberOutput struct {
+ _ struct{} `type:"structure"`
+
+ // The time when the phone number was created, in UNIX epoch time (https://www.epochconverter.com/)
+ // format.
+ CreatedTimestamp *time.Time `type:"timestamp"`
+
+ // The two-character code, in ISO 3166-1 alpha-2 format, for the country or
+ // region.
+ IsoCountryCode *string `min:"2" type:"string"`
+
+ // The message type that was associated with the phone number.
+ MessageType *string `type:"string" enum:"MessageType"`
+
+ // The monthly price of the phone number, in US dollars.
+ MonthlyLeasingPrice *string `type:"string"`
+
+ // Specifies if the number could be used for text messages, voice, or both.
+ NumberCapabilities []*string `min:"1" type:"list" enum:"NumberCapability"`
+
+ // The type of number that was released.
+ NumberType *string `type:"string" enum:"NumberType"`
+
+ // The name of the OptOutList that was associated with the phone number.
+ OptOutListName *string `min:"1" type:"string"`
+
+ // The phone number that was released.
+ PhoneNumber *string `min:"1" type:"string"`
+
+ // The PhoneNumberArn of the phone number that was released.
+ PhoneNumberArn *string `type:"string"`
+
+ // The PhoneNumberId of the phone number that was released.
+ PhoneNumberId *string `type:"string"`
+
+ // By default this is set to false. When an end recipient sends a message that
+ // begins with HELP or STOP to one of your dedicated numbers, Amazon Pinpoint
+ // automatically replies with a customizable message and adds the end recipient
+ // to the OptOutList. When set to true you're responsible for responding to
+ // HELP and STOP requests. You're also responsible for tracking and honoring
+ // opt-out requests.
+ SelfManagedOptOutsEnabled *bool `type:"boolean"`
+
+ // The current status of the request.
+ Status *string `type:"string" enum:"NumberStatus"`
+
+ // The Amazon Resource Name (ARN) of the TwoWayChannel.
+ TwoWayChannelArn *string `min:"20" type:"string"`
+
+ // By default this is set to false. When set to true you can receive incoming
+ // text messages from your end recipients.
+ TwoWayEnabled *bool `type:"boolean"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s ReleasePhoneNumberOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s ReleasePhoneNumberOutput) GoString() string {
+ return s.String()
+}
+
+// SetCreatedTimestamp sets the CreatedTimestamp field's value.
+func (s *ReleasePhoneNumberOutput) SetCreatedTimestamp(v time.Time) *ReleasePhoneNumberOutput {
+ s.CreatedTimestamp = &v
+ return s
+}
+
+// SetIsoCountryCode sets the IsoCountryCode field's value.
+func (s *ReleasePhoneNumberOutput) SetIsoCountryCode(v string) *ReleasePhoneNumberOutput {
+ s.IsoCountryCode = &v
+ return s
+}
+
+// SetMessageType sets the MessageType field's value.
+func (s *ReleasePhoneNumberOutput) SetMessageType(v string) *ReleasePhoneNumberOutput {
+ s.MessageType = &v
+ return s
+}
+
+// SetMonthlyLeasingPrice sets the MonthlyLeasingPrice field's value.
+func (s *ReleasePhoneNumberOutput) SetMonthlyLeasingPrice(v string) *ReleasePhoneNumberOutput {
+ s.MonthlyLeasingPrice = &v
+ return s
+}
+
+// SetNumberCapabilities sets the NumberCapabilities field's value.
+func (s *ReleasePhoneNumberOutput) SetNumberCapabilities(v []*string) *ReleasePhoneNumberOutput {
+ s.NumberCapabilities = v
+ return s
+}
+
+// SetNumberType sets the NumberType field's value.
+func (s *ReleasePhoneNumberOutput) SetNumberType(v string) *ReleasePhoneNumberOutput {
+ s.NumberType = &v
+ return s
+}
+
+// SetOptOutListName sets the OptOutListName field's value.
+func (s *ReleasePhoneNumberOutput) SetOptOutListName(v string) *ReleasePhoneNumberOutput {
+ s.OptOutListName = &v
+ return s
+}
+
+// SetPhoneNumber sets the PhoneNumber field's value.
+func (s *ReleasePhoneNumberOutput) SetPhoneNumber(v string) *ReleasePhoneNumberOutput {
+ s.PhoneNumber = &v
+ return s
+}
+
+// SetPhoneNumberArn sets the PhoneNumberArn field's value.
+func (s *ReleasePhoneNumberOutput) SetPhoneNumberArn(v string) *ReleasePhoneNumberOutput {
+ s.PhoneNumberArn = &v
+ return s
+}
+
+// SetPhoneNumberId sets the PhoneNumberId field's value.
+func (s *ReleasePhoneNumberOutput) SetPhoneNumberId(v string) *ReleasePhoneNumberOutput {
+ s.PhoneNumberId = &v
+ return s
+}
+
+// SetSelfManagedOptOutsEnabled sets the SelfManagedOptOutsEnabled field's value.
+func (s *ReleasePhoneNumberOutput) SetSelfManagedOptOutsEnabled(v bool) *ReleasePhoneNumberOutput {
+ s.SelfManagedOptOutsEnabled = &v
+ return s
+}
+
+// SetStatus sets the Status field's value.
+func (s *ReleasePhoneNumberOutput) SetStatus(v string) *ReleasePhoneNumberOutput {
+ s.Status = &v
+ return s
+}
+
+// SetTwoWayChannelArn sets the TwoWayChannelArn field's value.
+func (s *ReleasePhoneNumberOutput) SetTwoWayChannelArn(v string) *ReleasePhoneNumberOutput {
+ s.TwoWayChannelArn = &v
+ return s
+}
+
+// SetTwoWayEnabled sets the TwoWayEnabled field's value.
+func (s *ReleasePhoneNumberOutput) SetTwoWayEnabled(v bool) *ReleasePhoneNumberOutput {
+ s.TwoWayEnabled = &v
+ return s
+}
+
+type RequestPhoneNumberInput struct {
+ _ struct{} `type:"structure"`
+
+ // Unique, case-sensitive identifier that you provide to ensure the idempotency
+ // of the request. If you don't specify a client token, a randomly generated
+ // token is used for the request to ensure idempotency.
+ ClientToken *string `min:"1" type:"string" idempotencyToken:"true"`
+
+ // By default this is set to false. When set to true the phone number can't
+ // be deleted.
+ DeletionProtectionEnabled *bool `type:"boolean"`
+
+ // The two-character code, in ISO 3166-1 alpha-2 format, for the country or
+ // region.
+ //
+ // IsoCountryCode is a required field
+ IsoCountryCode *string `min:"2" type:"string" required:"true"`
+
+ // The type of message. Valid values are TRANSACTIONAL for messages that are
+ // critical or time-sensitive and PROMOTIONAL for messages that aren't critical
+ // or time-sensitive.
+ //
+ // MessageType is a required field
+ MessageType *string `type:"string" required:"true" enum:"MessageType"`
+
+ // Indicates if the phone number will be used for text messages, voice messages,
+ // or both.
+ //
+ // NumberCapabilities is a required field
+ NumberCapabilities []*string `min:"1" type:"list" required:"true" enum:"NumberCapability"`
+
+ // The type of phone number to request.
+ //
+ // NumberType is a required field
+ NumberType *string `type:"string" required:"true" enum:"RequestableNumberType"`
+
+ // The name of the OptOutList to associate with the phone number. You can use
+ // the OutOutListName or OptPutListArn.
+ OptOutListName *string `min:"1" type:"string"`
+
+ // The pool to associated with the phone number. You can use the PoolId or PoolArn.
+ PoolId *string `min:"1" type:"string"`
+
+ // Use this field to attach your phone number for an external registration process.
+ RegistrationId *string `min:"1" type:"string"`
+
+ // An array of tags (key and value pairs) associate with the requested phone
+ // number.
+ Tags []*Tag `type:"list"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s RequestPhoneNumberInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s RequestPhoneNumberInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *RequestPhoneNumberInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "RequestPhoneNumberInput"}
+ if s.ClientToken != nil && len(*s.ClientToken) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("ClientToken", 1))
+ }
+ if s.IsoCountryCode == nil {
+ invalidParams.Add(request.NewErrParamRequired("IsoCountryCode"))
+ }
+ if s.IsoCountryCode != nil && len(*s.IsoCountryCode) < 2 {
+ invalidParams.Add(request.NewErrParamMinLen("IsoCountryCode", 2))
+ }
+ if s.MessageType == nil {
+ invalidParams.Add(request.NewErrParamRequired("MessageType"))
+ }
+ if s.NumberCapabilities == nil {
+ invalidParams.Add(request.NewErrParamRequired("NumberCapabilities"))
+ }
+ if s.NumberCapabilities != nil && len(s.NumberCapabilities) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("NumberCapabilities", 1))
+ }
+ if s.NumberType == nil {
+ invalidParams.Add(request.NewErrParamRequired("NumberType"))
+ }
+ if s.OptOutListName != nil && len(*s.OptOutListName) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("OptOutListName", 1))
+ }
+ if s.PoolId != nil && len(*s.PoolId) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("PoolId", 1))
+ }
+ if s.RegistrationId != nil && len(*s.RegistrationId) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("RegistrationId", 1))
+ }
+ if s.Tags != nil {
+ for i, v := range s.Tags {
+ if v == nil {
+ continue
+ }
+ if err := v.Validate(); err != nil {
+ invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams))
+ }
+ }
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetClientToken sets the ClientToken field's value.
+func (s *RequestPhoneNumberInput) SetClientToken(v string) *RequestPhoneNumberInput {
+ s.ClientToken = &v
+ return s
+}
+
+// SetDeletionProtectionEnabled sets the DeletionProtectionEnabled field's value.
+func (s *RequestPhoneNumberInput) SetDeletionProtectionEnabled(v bool) *RequestPhoneNumberInput {
+ s.DeletionProtectionEnabled = &v
+ return s
+}
+
+// SetIsoCountryCode sets the IsoCountryCode field's value.
+func (s *RequestPhoneNumberInput) SetIsoCountryCode(v string) *RequestPhoneNumberInput {
+ s.IsoCountryCode = &v
+ return s
+}
+
+// SetMessageType sets the MessageType field's value.
+func (s *RequestPhoneNumberInput) SetMessageType(v string) *RequestPhoneNumberInput {
+ s.MessageType = &v
+ return s
+}
+
+// SetNumberCapabilities sets the NumberCapabilities field's value.
+func (s *RequestPhoneNumberInput) SetNumberCapabilities(v []*string) *RequestPhoneNumberInput {
+ s.NumberCapabilities = v
+ return s
+}
+
+// SetNumberType sets the NumberType field's value.
+func (s *RequestPhoneNumberInput) SetNumberType(v string) *RequestPhoneNumberInput {
+ s.NumberType = &v
+ return s
+}
+
+// SetOptOutListName sets the OptOutListName field's value.
+func (s *RequestPhoneNumberInput) SetOptOutListName(v string) *RequestPhoneNumberInput {
+ s.OptOutListName = &v
+ return s
+}
+
+// SetPoolId sets the PoolId field's value.
+func (s *RequestPhoneNumberInput) SetPoolId(v string) *RequestPhoneNumberInput {
+ s.PoolId = &v
+ return s
+}
+
+// SetRegistrationId sets the RegistrationId field's value.
+func (s *RequestPhoneNumberInput) SetRegistrationId(v string) *RequestPhoneNumberInput {
+ s.RegistrationId = &v
+ return s
+}
+
+// SetTags sets the Tags field's value.
+func (s *RequestPhoneNumberInput) SetTags(v []*Tag) *RequestPhoneNumberInput {
+ s.Tags = v
+ return s
+}
+
+type RequestPhoneNumberOutput struct {
+ _ struct{} `type:"structure"`
+
+ // The time when the phone number was created, in UNIX epoch time (https://www.epochconverter.com/)
+ // format.
+ CreatedTimestamp *time.Time `type:"timestamp"`
+
+ // By default this is set to false. When set to true the phone number can't
+ // be deleted.
+ DeletionProtectionEnabled *bool `type:"boolean"`
+
+ // The two-character code, in ISO 3166-1 alpha-2 format, for the country or
+ // region.
+ IsoCountryCode *string `min:"2" type:"string"`
+
+ // The type of message. Valid values are TRANSACTIONAL for messages that are
+ // critical or time-sensitive and PROMOTIONAL for messages that aren't critical
+ // or time-sensitive.
+ MessageType *string `type:"string" enum:"MessageType"`
+
+ // The monthly price, in US dollars, to lease the phone number.
+ MonthlyLeasingPrice *string `type:"string"`
+
+ // Indicates if the phone number will be used for text messages, voice messages
+ // or both.
+ NumberCapabilities []*string `min:"1" type:"list" enum:"NumberCapability"`
+
+ // The type of number that was released.
+ NumberType *string `type:"string" enum:"RequestableNumberType"`
+
+ // The name of the OptOutList that is associated with the requested phone number.
+ OptOutListName *string `min:"1" type:"string"`
+
+ // The new phone number that was requested.
+ PhoneNumber *string `min:"1" type:"string"`
+
+ // The Amazon Resource Name (ARN) of the requested phone number.
+ PhoneNumberArn *string `type:"string"`
+
+ // The unique identifier of the new phone number.
+ PhoneNumberId *string `type:"string"`
+
+ // The unique identifier of the pool associated with the phone number
+ PoolId *string `type:"string"`
+
+ // By default this is set to false. When an end recipient sends a message that
+ // begins with HELP or STOP to one of your dedicated numbers, Amazon Pinpoint
+ // automatically replies with a customizable message and adds the end recipient
+ // to the OptOutList. When set to true you're responsible for responding to
+ // HELP and STOP requests. You're also responsible for tracking and honoring
+ // opt-out requests.
+ SelfManagedOptOutsEnabled *bool `type:"boolean"`
+
+ // The current status of the request.
+ Status *string `type:"string" enum:"NumberStatus"`
+
+ // An array of key and value pair tags that are associated with the phone number.
+ Tags []*Tag `type:"list"`
+
+ // The ARN used to identify the two way channel.
+ TwoWayChannelArn *string `min:"20" type:"string"`
+
+ // By default this is set to false. When set to true you can receive incoming
+ // text messages from your end recipients.
+ TwoWayEnabled *bool `type:"boolean"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s RequestPhoneNumberOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s RequestPhoneNumberOutput) GoString() string {
+ return s.String()
+}
+
+// SetCreatedTimestamp sets the CreatedTimestamp field's value.
+func (s *RequestPhoneNumberOutput) SetCreatedTimestamp(v time.Time) *RequestPhoneNumberOutput {
+ s.CreatedTimestamp = &v
+ return s
+}
+
+// SetDeletionProtectionEnabled sets the DeletionProtectionEnabled field's value.
+func (s *RequestPhoneNumberOutput) SetDeletionProtectionEnabled(v bool) *RequestPhoneNumberOutput {
+ s.DeletionProtectionEnabled = &v
+ return s
+}
+
+// SetIsoCountryCode sets the IsoCountryCode field's value.
+func (s *RequestPhoneNumberOutput) SetIsoCountryCode(v string) *RequestPhoneNumberOutput {
+ s.IsoCountryCode = &v
+ return s
+}
+
+// SetMessageType sets the MessageType field's value.
+func (s *RequestPhoneNumberOutput) SetMessageType(v string) *RequestPhoneNumberOutput {
+ s.MessageType = &v
+ return s
+}
+
+// SetMonthlyLeasingPrice sets the MonthlyLeasingPrice field's value.
+func (s *RequestPhoneNumberOutput) SetMonthlyLeasingPrice(v string) *RequestPhoneNumberOutput {
+ s.MonthlyLeasingPrice = &v
+ return s
+}
+
+// SetNumberCapabilities sets the NumberCapabilities field's value.
+func (s *RequestPhoneNumberOutput) SetNumberCapabilities(v []*string) *RequestPhoneNumberOutput {
+ s.NumberCapabilities = v
+ return s
+}
+
+// SetNumberType sets the NumberType field's value.
+func (s *RequestPhoneNumberOutput) SetNumberType(v string) *RequestPhoneNumberOutput {
+ s.NumberType = &v
+ return s
+}
+
+// SetOptOutListName sets the OptOutListName field's value.
+func (s *RequestPhoneNumberOutput) SetOptOutListName(v string) *RequestPhoneNumberOutput {
+ s.OptOutListName = &v
+ return s
+}
+
+// SetPhoneNumber sets the PhoneNumber field's value.
+func (s *RequestPhoneNumberOutput) SetPhoneNumber(v string) *RequestPhoneNumberOutput {
+ s.PhoneNumber = &v
+ return s
+}
+
+// SetPhoneNumberArn sets the PhoneNumberArn field's value.
+func (s *RequestPhoneNumberOutput) SetPhoneNumberArn(v string) *RequestPhoneNumberOutput {
+ s.PhoneNumberArn = &v
+ return s
+}
+
+// SetPhoneNumberId sets the PhoneNumberId field's value.
+func (s *RequestPhoneNumberOutput) SetPhoneNumberId(v string) *RequestPhoneNumberOutput {
+ s.PhoneNumberId = &v
+ return s
+}
+
+// SetPoolId sets the PoolId field's value.
+func (s *RequestPhoneNumberOutput) SetPoolId(v string) *RequestPhoneNumberOutput {
+ s.PoolId = &v
+ return s
+}
+
+// SetSelfManagedOptOutsEnabled sets the SelfManagedOptOutsEnabled field's value.
+func (s *RequestPhoneNumberOutput) SetSelfManagedOptOutsEnabled(v bool) *RequestPhoneNumberOutput {
+ s.SelfManagedOptOutsEnabled = &v
+ return s
+}
+
+// SetStatus sets the Status field's value.
+func (s *RequestPhoneNumberOutput) SetStatus(v string) *RequestPhoneNumberOutput {
+ s.Status = &v
+ return s
+}
+
+// SetTags sets the Tags field's value.
+func (s *RequestPhoneNumberOutput) SetTags(v []*Tag) *RequestPhoneNumberOutput {
+ s.Tags = v
+ return s
+}
+
+// SetTwoWayChannelArn sets the TwoWayChannelArn field's value.
+func (s *RequestPhoneNumberOutput) SetTwoWayChannelArn(v string) *RequestPhoneNumberOutput {
+ s.TwoWayChannelArn = &v
+ return s
+}
+
+// SetTwoWayEnabled sets the TwoWayEnabled field's value.
+func (s *RequestPhoneNumberOutput) SetTwoWayEnabled(v bool) *RequestPhoneNumberOutput {
+ s.TwoWayEnabled = &v
+ return s
+}
+
+// A requested resource couldn't be found.
+type ResourceNotFoundException struct {
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
+
+ Message_ *string `locationName:"Message" type:"string"`
+
+ // The unique identifier of the resource.
+ ResourceId *string `type:"string"`
+
+ // The type of resource that caused the exception.
+ ResourceType *string `type:"string" enum:"ResourceType"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s ResourceNotFoundException) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s ResourceNotFoundException) GoString() string {
+ return s.String()
+}
+
+func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error {
+ return &ResourceNotFoundException{
+ RespMetadata: v,
+ }
+}
+
+// Code returns the exception type name.
+func (s *ResourceNotFoundException) Code() string {
+ return "ResourceNotFoundException"
+}
+
+// Message returns the exception's message.
+func (s *ResourceNotFoundException) Message() string {
+ if s.Message_ != nil {
+ return *s.Message_
+ }
+ return ""
+}
+
+// OrigErr always returns nil, satisfies awserr.Error interface.
+func (s *ResourceNotFoundException) OrigErr() error {
+ return nil
+}
+
+func (s *ResourceNotFoundException) Error() string {
+ return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
+}
+
+// Status code returns the HTTP status code for the request's response error.
+func (s *ResourceNotFoundException) StatusCode() int {
+ return s.RespMetadata.StatusCode
+}
+
+// RequestID returns the service's response RequestID for request.
+func (s *ResourceNotFoundException) RequestID() string {
+ return s.RespMetadata.RequestID
+}
+
+type SendTextMessageInput struct {
+ _ struct{} `type:"structure"`
+
+ // The name of the configuration set to use. This can be either the ConfigurationSetName
+ // or ConfigurationSetArn.
+ ConfigurationSetName *string `min:"1" type:"string"`
+
+ // You can specify custom data in this field. If you do, that data is logged
+ // to the event destination.
+ Context map[string]*string `type:"map"`
+
+ // This field is used for any country-specific registration requirements. Currently,
+ // this setting is only used when you send messages to recipients in India using
+ // a sender ID. For more information see Special requirements for sending SMS
+ // messages to recipients in India (https://docs.aws.amazon.com/pinpoint/latest/userguide/channels-sms-senderid-india.html).
+ DestinationCountryParameters map[string]*string `type:"map"`
+
+ // The destination phone number in E.164 format.
+ //
+ // DestinationPhoneNumber is a required field
+ DestinationPhoneNumber *string `min:"1" type:"string" required:"true"`
+
+ // When set to true, the message is checked and validated, but isn't sent to
+ // the end recipient.
+ DryRun *bool `type:"boolean"`
+
+ // When you register a short code in the US, you must specify a program name.
+ // If you don’t have a US short code, omit this attribute.
+ Keyword *string `min:"1" type:"string"`
+
+ // The maximum amount that you want to spend, in US dollars, per each text message
+ // part. A text message can contain multiple parts.
+ MaxPrice *string `min:"2" type:"string"`
+
+ // The body of the text message.
+ MessageBody *string `min:"1" type:"string"`
+
+ // The type of message. Valid values are TRANSACTIONAL for messages that are
+ // critical or time-sensitive and PROMOTIONAL for messages that aren't critical
+ // or time-sensitive.
+ MessageType *string `type:"string" enum:"MessageType"`
+
+ // The origination identity of the message. This can be either the PhoneNumber,
+ // PhoneNumberId, PhoneNumberArn, SenderId, SenderIdArn, PoolId, or PoolArn.
+ OriginationIdentity *string `min:"1" type:"string"`
+
+ // How long the text message is valid for. By default this is 72 hours.
+ TimeToLive *int64 `min:"5" type:"integer"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s SendTextMessageInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s SendTextMessageInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *SendTextMessageInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "SendTextMessageInput"}
+ if s.ConfigurationSetName != nil && len(*s.ConfigurationSetName) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("ConfigurationSetName", 1))
+ }
+ if s.DestinationPhoneNumber == nil {
+ invalidParams.Add(request.NewErrParamRequired("DestinationPhoneNumber"))
+ }
+ if s.DestinationPhoneNumber != nil && len(*s.DestinationPhoneNumber) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("DestinationPhoneNumber", 1))
+ }
+ if s.Keyword != nil && len(*s.Keyword) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("Keyword", 1))
+ }
+ if s.MaxPrice != nil && len(*s.MaxPrice) < 2 {
+ invalidParams.Add(request.NewErrParamMinLen("MaxPrice", 2))
+ }
+ if s.MessageBody != nil && len(*s.MessageBody) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("MessageBody", 1))
+ }
+ if s.OriginationIdentity != nil && len(*s.OriginationIdentity) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("OriginationIdentity", 1))
+ }
+ if s.TimeToLive != nil && *s.TimeToLive < 5 {
+ invalidParams.Add(request.NewErrParamMinValue("TimeToLive", 5))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetConfigurationSetName sets the ConfigurationSetName field's value.
+func (s *SendTextMessageInput) SetConfigurationSetName(v string) *SendTextMessageInput {
+ s.ConfigurationSetName = &v
+ return s
+}
+
+// SetContext sets the Context field's value.
+func (s *SendTextMessageInput) SetContext(v map[string]*string) *SendTextMessageInput {
+ s.Context = v
+ return s
+}
+
+// SetDestinationCountryParameters sets the DestinationCountryParameters field's value.
+func (s *SendTextMessageInput) SetDestinationCountryParameters(v map[string]*string) *SendTextMessageInput {
+ s.DestinationCountryParameters = v
+ return s
+}
+
+// SetDestinationPhoneNumber sets the DestinationPhoneNumber field's value.
+func (s *SendTextMessageInput) SetDestinationPhoneNumber(v string) *SendTextMessageInput {
+ s.DestinationPhoneNumber = &v
+ return s
+}
+
+// SetDryRun sets the DryRun field's value.
+func (s *SendTextMessageInput) SetDryRun(v bool) *SendTextMessageInput {
+ s.DryRun = &v
+ return s
+}
+
+// SetKeyword sets the Keyword field's value.
+func (s *SendTextMessageInput) SetKeyword(v string) *SendTextMessageInput {
+ s.Keyword = &v
+ return s
+}
+
+// SetMaxPrice sets the MaxPrice field's value.
+func (s *SendTextMessageInput) SetMaxPrice(v string) *SendTextMessageInput {
+ s.MaxPrice = &v
+ return s
+}
+
+// SetMessageBody sets the MessageBody field's value.
+func (s *SendTextMessageInput) SetMessageBody(v string) *SendTextMessageInput {
+ s.MessageBody = &v
+ return s
+}
+
+// SetMessageType sets the MessageType field's value.
+func (s *SendTextMessageInput) SetMessageType(v string) *SendTextMessageInput {
+ s.MessageType = &v
+ return s
+}
+
+// SetOriginationIdentity sets the OriginationIdentity field's value.
+func (s *SendTextMessageInput) SetOriginationIdentity(v string) *SendTextMessageInput {
+ s.OriginationIdentity = &v
+ return s
+}
+
+// SetTimeToLive sets the TimeToLive field's value.
+func (s *SendTextMessageInput) SetTimeToLive(v int64) *SendTextMessageInput {
+ s.TimeToLive = &v
+ return s
+}
+
+type SendTextMessageOutput struct {
+ _ struct{} `type:"structure"`
+
+ // The unique identifier for the message.
+ MessageId *string `type:"string"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s SendTextMessageOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s SendTextMessageOutput) GoString() string {
+ return s.String()
+}
+
+// SetMessageId sets the MessageId field's value.
+func (s *SendTextMessageOutput) SetMessageId(v string) *SendTextMessageOutput {
+ s.MessageId = &v
+ return s
+}
+
+type SendVoiceMessageInput struct {
+ _ struct{} `type:"structure"`
+
+ // The name of the configuration set to use. This can be either the ConfigurationSetName
+ // or ConfigurationSetArn.
+ ConfigurationSetName *string `min:"1" type:"string"`
+
+ // You can specify custom data in this field. If you do, that data is logged
+ // to the event destination.
+ Context map[string]*string `type:"map"`
+
+ // The destination phone number in E.164 format.
+ //
+ // DestinationPhoneNumber is a required field
+ DestinationPhoneNumber *string `min:"1" type:"string" required:"true"`
+
+ // When set to true, the message is checked and validated, but isn't sent to
+ // the end recipient.
+ DryRun *bool `type:"boolean"`
+
+ // The maximum amount to spend per voice message, in US dollars.
+ MaxPricePerMinute *string `min:"2" type:"string"`
+
+ // The text to convert to a voice message.
+ MessageBody *string `min:"1" type:"string"`
+
+ // Specifies if the MessageBody field contains text or speech synthesis markup
+ // language (SSML) (https://docs.aws.amazon.com/polly/latest/dg/what-is.html).
+ //
+ // * TEXT: This is the default value. When used the maximum character limit
+ // is 3000.
+ //
+ // * SSML: When used the maximum character limit is 6000 including SSML tagging.
+ MessageBodyTextType *string `type:"string" enum:"VoiceMessageBodyTextType"`
+
+ // The origination identity to use for the voice call. This can be the PhoneNumber,
+ // PhoneNumberId, PhoneNumberArn, PoolId, or PoolArn.
+ //
+ // OriginationIdentity is a required field
+ OriginationIdentity *string `min:"1" type:"string" required:"true"`
+
+ // How long the voice message is valid for. By default this is 72 hours.
+ TimeToLive *int64 `min:"5" type:"integer"`
+
+ // The voice for the Amazon Polly (https://docs.aws.amazon.com/polly/latest/dg/what-is.html)
+ // service to use. By default this is set to "MATTHEW".
+ VoiceId *string `type:"string" enum:"VoiceId"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s SendVoiceMessageInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s SendVoiceMessageInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *SendVoiceMessageInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "SendVoiceMessageInput"}
+ if s.ConfigurationSetName != nil && len(*s.ConfigurationSetName) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("ConfigurationSetName", 1))
+ }
+ if s.DestinationPhoneNumber == nil {
+ invalidParams.Add(request.NewErrParamRequired("DestinationPhoneNumber"))
+ }
+ if s.DestinationPhoneNumber != nil && len(*s.DestinationPhoneNumber) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("DestinationPhoneNumber", 1))
+ }
+ if s.MaxPricePerMinute != nil && len(*s.MaxPricePerMinute) < 2 {
+ invalidParams.Add(request.NewErrParamMinLen("MaxPricePerMinute", 2))
+ }
+ if s.MessageBody != nil && len(*s.MessageBody) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("MessageBody", 1))
+ }
+ if s.OriginationIdentity == nil {
+ invalidParams.Add(request.NewErrParamRequired("OriginationIdentity"))
+ }
+ if s.OriginationIdentity != nil && len(*s.OriginationIdentity) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("OriginationIdentity", 1))
+ }
+ if s.TimeToLive != nil && *s.TimeToLive < 5 {
+ invalidParams.Add(request.NewErrParamMinValue("TimeToLive", 5))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetConfigurationSetName sets the ConfigurationSetName field's value.
+func (s *SendVoiceMessageInput) SetConfigurationSetName(v string) *SendVoiceMessageInput {
+ s.ConfigurationSetName = &v
+ return s
+}
+
+// SetContext sets the Context field's value.
+func (s *SendVoiceMessageInput) SetContext(v map[string]*string) *SendVoiceMessageInput {
+ s.Context = v
+ return s
+}
+
+// SetDestinationPhoneNumber sets the DestinationPhoneNumber field's value.
+func (s *SendVoiceMessageInput) SetDestinationPhoneNumber(v string) *SendVoiceMessageInput {
+ s.DestinationPhoneNumber = &v
+ return s
+}
+
+// SetDryRun sets the DryRun field's value.
+func (s *SendVoiceMessageInput) SetDryRun(v bool) *SendVoiceMessageInput {
+ s.DryRun = &v
+ return s
+}
+
+// SetMaxPricePerMinute sets the MaxPricePerMinute field's value.
+func (s *SendVoiceMessageInput) SetMaxPricePerMinute(v string) *SendVoiceMessageInput {
+ s.MaxPricePerMinute = &v
+ return s
+}
+
+// SetMessageBody sets the MessageBody field's value.
+func (s *SendVoiceMessageInput) SetMessageBody(v string) *SendVoiceMessageInput {
+ s.MessageBody = &v
+ return s
+}
+
+// SetMessageBodyTextType sets the MessageBodyTextType field's value.
+func (s *SendVoiceMessageInput) SetMessageBodyTextType(v string) *SendVoiceMessageInput {
+ s.MessageBodyTextType = &v
+ return s
+}
+
+// SetOriginationIdentity sets the OriginationIdentity field's value.
+func (s *SendVoiceMessageInput) SetOriginationIdentity(v string) *SendVoiceMessageInput {
+ s.OriginationIdentity = &v
+ return s
+}
+
+// SetTimeToLive sets the TimeToLive field's value.
+func (s *SendVoiceMessageInput) SetTimeToLive(v int64) *SendVoiceMessageInput {
+ s.TimeToLive = &v
+ return s
+}
+
+// SetVoiceId sets the VoiceId field's value.
+func (s *SendVoiceMessageInput) SetVoiceId(v string) *SendVoiceMessageInput {
+ s.VoiceId = &v
+ return s
+}
+
+type SendVoiceMessageOutput struct {
+ _ struct{} `type:"structure"`
+
+ // The unique identifier for the message.
+ MessageId *string `type:"string"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s SendVoiceMessageOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s SendVoiceMessageOutput) GoString() string {
+ return s.String()
+}
+
+// SetMessageId sets the MessageId field's value.
+func (s *SendVoiceMessageOutput) SetMessageId(v string) *SendVoiceMessageOutput {
+ s.MessageId = &v
+ return s
+}
+
+// The alphanumeric sender ID in a specific country that you want to describe.
+// For more information on sender IDs see Requesting sender IDs for SMS messaging
+// with Amazon Pinpoint (https://docs.aws.amazon.com/pinpoint/latest/userguide/channels-sms-awssupport-sender-id.html)
+// in the Amazon Pinpoint User Guide.
+type SenderIdAndCountry struct {
+ _ struct{} `type:"structure"`
+
+ // The two-character code, in ISO 3166-1 alpha-2 format, for the country or
+ // region.
+ //
+ // IsoCountryCode is a required field
+ IsoCountryCode *string `min:"2" type:"string" required:"true"`
+
+ // The unique identifier of the sender.
+ //
+ // SenderId is a required field
+ SenderId *string `min:"1" type:"string" required:"true"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s SenderIdAndCountry) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s SenderIdAndCountry) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *SenderIdAndCountry) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "SenderIdAndCountry"}
+ if s.IsoCountryCode == nil {
+ invalidParams.Add(request.NewErrParamRequired("IsoCountryCode"))
+ }
+ if s.IsoCountryCode != nil && len(*s.IsoCountryCode) < 2 {
+ invalidParams.Add(request.NewErrParamMinLen("IsoCountryCode", 2))
+ }
+ if s.SenderId == nil {
+ invalidParams.Add(request.NewErrParamRequired("SenderId"))
+ }
+ if s.SenderId != nil && len(*s.SenderId) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("SenderId", 1))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetIsoCountryCode sets the IsoCountryCode field's value.
+func (s *SenderIdAndCountry) SetIsoCountryCode(v string) *SenderIdAndCountry {
+ s.IsoCountryCode = &v
+ return s
+}
+
+// SetSenderId sets the SenderId field's value.
+func (s *SenderIdAndCountry) SetSenderId(v string) *SenderIdAndCountry {
+ s.SenderId = &v
+ return s
+}
+
+// The information for a sender ID that meets a specified criteria.
+type SenderIdFilter struct {
+ _ struct{} `type:"structure"`
+
+ // The name of the attribute to filter on.
+ //
+ // Name is a required field
+ Name *string `type:"string" required:"true" enum:"SenderIdFilterName"`
+
+ // An array of values to filter for.
+ //
+ // Values is a required field
+ Values []*string `min:"1" type:"list" required:"true"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s SenderIdFilter) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s SenderIdFilter) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *SenderIdFilter) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "SenderIdFilter"}
+ if s.Name == nil {
+ invalidParams.Add(request.NewErrParamRequired("Name"))
+ }
+ if s.Values == nil {
+ invalidParams.Add(request.NewErrParamRequired("Values"))
+ }
+ if s.Values != nil && len(s.Values) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("Values", 1))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetName sets the Name field's value.
+func (s *SenderIdFilter) SetName(v string) *SenderIdFilter {
+ s.Name = &v
+ return s
+}
+
+// SetValues sets the Values field's value.
+func (s *SenderIdFilter) SetValues(v []*string) *SenderIdFilter {
+ s.Values = v
+ return s
+}
+
+// The information for all SenderIds in an Amazon Web Services account.
+type SenderIdInformation struct {
+ _ struct{} `type:"structure"`
+
+ // The two-character code, in ISO 3166-1 alpha-2 format, for the country or
+ // region.
+ //
+ // IsoCountryCode is a required field
+ IsoCountryCode *string `min:"2" type:"string" required:"true"`
+
+ // The type of message. Valid values are TRANSACTIONAL for messages that are
+ // critical or time-sensitive and PROMOTIONAL for messages that aren't critical
+ // or time-sensitive.
+ //
+ // MessageTypes is a required field
+ MessageTypes []*string `type:"list" required:"true" enum:"MessageType"`
+
+ // The monthly leasing price, in US dollars.
+ //
+ // MonthlyLeasingPrice is a required field
+ MonthlyLeasingPrice *string `type:"string" required:"true"`
+
+ // The alphanumeric sender ID in a specific country that you'd like to describe.
+ //
+ // SenderId is a required field
+ SenderId *string `min:"1" type:"string" required:"true"`
+
+ // The Amazon Resource Name (ARN) associated with the SenderId.
+ //
+ // SenderIdArn is a required field
+ SenderIdArn *string `type:"string" required:"true"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s SenderIdInformation) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s SenderIdInformation) GoString() string {
+ return s.String()
+}
+
+// SetIsoCountryCode sets the IsoCountryCode field's value.
+func (s *SenderIdInformation) SetIsoCountryCode(v string) *SenderIdInformation {
+ s.IsoCountryCode = &v
+ return s
+}
+
+// SetMessageTypes sets the MessageTypes field's value.
+func (s *SenderIdInformation) SetMessageTypes(v []*string) *SenderIdInformation {
+ s.MessageTypes = v
+ return s
+}
+
+// SetMonthlyLeasingPrice sets the MonthlyLeasingPrice field's value.
+func (s *SenderIdInformation) SetMonthlyLeasingPrice(v string) *SenderIdInformation {
+ s.MonthlyLeasingPrice = &v
+ return s
+}
+
+// SetSenderId sets the SenderId field's value.
+func (s *SenderIdInformation) SetSenderId(v string) *SenderIdInformation {
+ s.SenderId = &v
+ return s
+}
+
+// SetSenderIdArn sets the SenderIdArn field's value.
+func (s *SenderIdInformation) SetSenderIdArn(v string) *SenderIdInformation {
+ s.SenderIdArn = &v
+ return s
+}
+
+// The request would cause a service quota to be exceeded.
+type ServiceQuotaExceededException struct {
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
+
+ Message_ *string `locationName:"Message" type:"string"`
+
+ // The reason for the exception.
+ Reason *string `type:"string" enum:"ServiceQuotaExceededExceptionReason"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s ServiceQuotaExceededException) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s ServiceQuotaExceededException) GoString() string {
+ return s.String()
+}
+
+func newErrorServiceQuotaExceededException(v protocol.ResponseMetadata) error {
+ return &ServiceQuotaExceededException{
+ RespMetadata: v,
+ }
+}
+
+// Code returns the exception type name.
+func (s *ServiceQuotaExceededException) Code() string {
+ return "ServiceQuotaExceededException"
+}
+
+// Message returns the exception's message.
+func (s *ServiceQuotaExceededException) Message() string {
+ if s.Message_ != nil {
+ return *s.Message_
+ }
+ return ""
+}
+
+// OrigErr always returns nil, satisfies awserr.Error interface.
+func (s *ServiceQuotaExceededException) OrigErr() error {
+ return nil
+}
+
+func (s *ServiceQuotaExceededException) Error() string {
+ return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
+}
+
+// Status code returns the HTTP status code for the request's response error.
+func (s *ServiceQuotaExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
+}
+
+// RequestID returns the service's response RequestID for request.
+func (s *ServiceQuotaExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
+}
+
+type SetDefaultMessageTypeInput struct {
+ _ struct{} `type:"structure"`
+
+ // The configuration set to update with a new default message type. This field
+ // can be the ConsigurationSetName or ConfigurationSetArn.
+ //
+ // ConfigurationSetName is a required field
+ ConfigurationSetName *string `min:"1" type:"string" required:"true"`
+
+ // The type of message. Valid values are TRANSACTIONAL for messages that are
+ // critical or time-sensitive and PROMOTIONAL for messages that aren't critical
+ // or time-sensitive.
+ //
+ // MessageType is a required field
+ MessageType *string `type:"string" required:"true" enum:"MessageType"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s SetDefaultMessageTypeInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s SetDefaultMessageTypeInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *SetDefaultMessageTypeInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "SetDefaultMessageTypeInput"}
+ if s.ConfigurationSetName == nil {
+ invalidParams.Add(request.NewErrParamRequired("ConfigurationSetName"))
+ }
+ if s.ConfigurationSetName != nil && len(*s.ConfigurationSetName) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("ConfigurationSetName", 1))
+ }
+ if s.MessageType == nil {
+ invalidParams.Add(request.NewErrParamRequired("MessageType"))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetConfigurationSetName sets the ConfigurationSetName field's value.
+func (s *SetDefaultMessageTypeInput) SetConfigurationSetName(v string) *SetDefaultMessageTypeInput {
+ s.ConfigurationSetName = &v
+ return s
+}
+
+// SetMessageType sets the MessageType field's value.
+func (s *SetDefaultMessageTypeInput) SetMessageType(v string) *SetDefaultMessageTypeInput {
+ s.MessageType = &v
+ return s
+}
+
+type SetDefaultMessageTypeOutput struct {
+ _ struct{} `type:"structure"`
+
+ // The Amazon Resource Name (ARN) of the updated configuration set.
+ ConfigurationSetArn *string `type:"string"`
+
+ // The name of the configuration set that was updated.
+ ConfigurationSetName *string `min:"1" type:"string"`
+
+ // The new default message type of the configuration set.
+ MessageType *string `type:"string" enum:"MessageType"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s SetDefaultMessageTypeOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s SetDefaultMessageTypeOutput) GoString() string {
+ return s.String()
+}
+
+// SetConfigurationSetArn sets the ConfigurationSetArn field's value.
+func (s *SetDefaultMessageTypeOutput) SetConfigurationSetArn(v string) *SetDefaultMessageTypeOutput {
+ s.ConfigurationSetArn = &v
+ return s
+}
+
+// SetConfigurationSetName sets the ConfigurationSetName field's value.
+func (s *SetDefaultMessageTypeOutput) SetConfigurationSetName(v string) *SetDefaultMessageTypeOutput {
+ s.ConfigurationSetName = &v
+ return s
+}
+
+// SetMessageType sets the MessageType field's value.
+func (s *SetDefaultMessageTypeOutput) SetMessageType(v string) *SetDefaultMessageTypeOutput {
+ s.MessageType = &v
+ return s
+}
+
+type SetDefaultSenderIdInput struct {
+ _ struct{} `type:"structure"`
+
+ // The configuration set to updated with a new default SenderId. This field
+ // can be the ConsigurationSetName or ConfigurationSetArn.
+ //
+ // ConfigurationSetName is a required field
+ ConfigurationSetName *string `min:"1" type:"string" required:"true"`
+
+ // The current sender ID for the configuration set. When sending a text message
+ // to a destination country which supports SenderIds, the default sender ID
+ // on the configuration set specified on SendTextMessage will be used if no
+ // dedicated origination phone numbers or registered SenderIds are available
+ // in your account, instead of a generic sender ID, such as 'NOTICE'.
+ //
+ // SenderId is a required field
+ SenderId *string `min:"1" type:"string" required:"true"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s SetDefaultSenderIdInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s SetDefaultSenderIdInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *SetDefaultSenderIdInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "SetDefaultSenderIdInput"}
+ if s.ConfigurationSetName == nil {
+ invalidParams.Add(request.NewErrParamRequired("ConfigurationSetName"))
+ }
+ if s.ConfigurationSetName != nil && len(*s.ConfigurationSetName) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("ConfigurationSetName", 1))
+ }
+ if s.SenderId == nil {
+ invalidParams.Add(request.NewErrParamRequired("SenderId"))
+ }
+ if s.SenderId != nil && len(*s.SenderId) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("SenderId", 1))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetConfigurationSetName sets the ConfigurationSetName field's value.
+func (s *SetDefaultSenderIdInput) SetConfigurationSetName(v string) *SetDefaultSenderIdInput {
+ s.ConfigurationSetName = &v
+ return s
+}
+
+// SetSenderId sets the SenderId field's value.
+func (s *SetDefaultSenderIdInput) SetSenderId(v string) *SetDefaultSenderIdInput {
+ s.SenderId = &v
+ return s
+}
+
+type SetDefaultSenderIdOutput struct {
+ _ struct{} `type:"structure"`
+
+ // The Amazon Resource Name (ARN) of the updated configuration set.
+ ConfigurationSetArn *string `type:"string"`
+
+ // The name of the configuration set that was updated.
+ ConfigurationSetName *string `min:"1" type:"string"`
+
+ // The default sender ID to set for the ConfigurationSet.
+ SenderId *string `min:"1" type:"string"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s SetDefaultSenderIdOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s SetDefaultSenderIdOutput) GoString() string {
+ return s.String()
+}
+
+// SetConfigurationSetArn sets the ConfigurationSetArn field's value.
+func (s *SetDefaultSenderIdOutput) SetConfigurationSetArn(v string) *SetDefaultSenderIdOutput {
+ s.ConfigurationSetArn = &v
+ return s
+}
+
+// SetConfigurationSetName sets the ConfigurationSetName field's value.
+func (s *SetDefaultSenderIdOutput) SetConfigurationSetName(v string) *SetDefaultSenderIdOutput {
+ s.ConfigurationSetName = &v
+ return s
+}
+
+// SetSenderId sets the SenderId field's value.
+func (s *SetDefaultSenderIdOutput) SetSenderId(v string) *SetDefaultSenderIdOutput {
+ s.SenderId = &v
+ return s
+}
+
+type SetTextMessageSpendLimitOverrideInput struct {
+ _ struct{} `type:"structure"`
+
+ // The new monthly limit to enforce on text messages.
+ //
+ // MonthlyLimit is a required field
+ MonthlyLimit *int64 `type:"long" required:"true"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s SetTextMessageSpendLimitOverrideInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s SetTextMessageSpendLimitOverrideInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *SetTextMessageSpendLimitOverrideInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "SetTextMessageSpendLimitOverrideInput"}
+ if s.MonthlyLimit == nil {
+ invalidParams.Add(request.NewErrParamRequired("MonthlyLimit"))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetMonthlyLimit sets the MonthlyLimit field's value.
+func (s *SetTextMessageSpendLimitOverrideInput) SetMonthlyLimit(v int64) *SetTextMessageSpendLimitOverrideInput {
+ s.MonthlyLimit = &v
+ return s
+}
+
+type SetTextMessageSpendLimitOverrideOutput struct {
+ _ struct{} `type:"structure"`
+
+ // The current monthly limit to enforce on sending text messages.
+ MonthlyLimit *int64 `type:"long"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s SetTextMessageSpendLimitOverrideOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s SetTextMessageSpendLimitOverrideOutput) GoString() string {
+ return s.String()
+}
+
+// SetMonthlyLimit sets the MonthlyLimit field's value.
+func (s *SetTextMessageSpendLimitOverrideOutput) SetMonthlyLimit(v int64) *SetTextMessageSpendLimitOverrideOutput {
+ s.MonthlyLimit = &v
+ return s
+}
+
+type SetVoiceMessageSpendLimitOverrideInput struct {
+ _ struct{} `type:"structure"`
+
+ // The new monthly limit to enforce on voice messages.
+ //
+ // MonthlyLimit is a required field
+ MonthlyLimit *int64 `type:"long" required:"true"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s SetVoiceMessageSpendLimitOverrideInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s SetVoiceMessageSpendLimitOverrideInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *SetVoiceMessageSpendLimitOverrideInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "SetVoiceMessageSpendLimitOverrideInput"}
+ if s.MonthlyLimit == nil {
+ invalidParams.Add(request.NewErrParamRequired("MonthlyLimit"))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetMonthlyLimit sets the MonthlyLimit field's value.
+func (s *SetVoiceMessageSpendLimitOverrideInput) SetMonthlyLimit(v int64) *SetVoiceMessageSpendLimitOverrideInput {
+ s.MonthlyLimit = &v
+ return s
+}
+
+type SetVoiceMessageSpendLimitOverrideOutput struct {
+ _ struct{} `type:"structure"`
+
+ // The current monthly limit to enforce on sending voice messages.
+ MonthlyLimit *int64 `type:"long"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s SetVoiceMessageSpendLimitOverrideOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s SetVoiceMessageSpendLimitOverrideOutput) GoString() string {
+ return s.String()
+}
+
+// SetMonthlyLimit sets the MonthlyLimit field's value.
+func (s *SetVoiceMessageSpendLimitOverrideOutput) SetMonthlyLimit(v int64) *SetVoiceMessageSpendLimitOverrideOutput {
+ s.MonthlyLimit = &v
+ return s
+}
+
+// An object that defines an Amazon SNS destination for events. You can use
+// Amazon SNS to send notification when certain events occur.
+type SnsDestination struct {
+ _ struct{} `type:"structure"`
+
+ // The Amazon Resource Name (ARN) of the Amazon SNS topic that you want to publish
+ // events to.
+ //
+ // TopicArn is a required field
+ TopicArn *string `min:"20" type:"string" required:"true"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s SnsDestination) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s SnsDestination) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *SnsDestination) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "SnsDestination"}
+ if s.TopicArn == nil {
+ invalidParams.Add(request.NewErrParamRequired("TopicArn"))
+ }
+ if s.TopicArn != nil && len(*s.TopicArn) < 20 {
+ invalidParams.Add(request.NewErrParamMinLen("TopicArn", 20))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetTopicArn sets the TopicArn field's value.
+func (s *SnsDestination) SetTopicArn(v string) *SnsDestination {
+ s.TopicArn = &v
+ return s
+}
+
+// Describes the current Amazon Pinpoint monthly spend limits for sending voice
+// and text messages. For more information on increasing your monthly spend
+// limit, see Requesting increases to your monthly SMS spending quota for Amazon
+// Pinpoint (https://docs.aws.amazon.com/pinpoint/latest/userguide/channels-sms-awssupport-spend-threshold.html)
+// in the Amazon Pinpoint User Guide.
+type SpendLimit struct {
+ _ struct{} `type:"structure"`
+
+ // The maximum amount of money, in US dollars, that you want to be able to spend
+ // sending messages each month. This value has to be less than or equal to the
+ // amount in MaxLimit. To use this custom limit, Overridden must be set to true.
+ //
+ // EnforcedLimit is a required field
+ EnforcedLimit *int64 `type:"long" required:"true"`
+
+ // The maximum amount of money that you are able to spend to send messages each
+ // month, in US dollars.
+ //
+ // MaxLimit is a required field
+ MaxLimit *int64 `type:"long" required:"true"`
+
+ // The name for the SpendLimit.
+ //
+ // Name is a required field
+ Name *string `type:"string" required:"true" enum:"SpendLimitName"`
+
+ // When set to True, the value that has been specified in the EnforcedLimit
+ // is used to determine the maximum amount in US dollars that can be spent to
+ // send messages each month, in US dollars.
+ //
+ // Overridden is a required field
+ Overridden *bool `type:"boolean" required:"true"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s SpendLimit) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s SpendLimit) GoString() string {
+ return s.String()
+}
+
+// SetEnforcedLimit sets the EnforcedLimit field's value.
+func (s *SpendLimit) SetEnforcedLimit(v int64) *SpendLimit {
+ s.EnforcedLimit = &v
+ return s
+}
+
+// SetMaxLimit sets the MaxLimit field's value.
+func (s *SpendLimit) SetMaxLimit(v int64) *SpendLimit {
+ s.MaxLimit = &v
+ return s
+}
+
+// SetName sets the Name field's value.
+func (s *SpendLimit) SetName(v string) *SpendLimit {
+ s.Name = &v
+ return s
+}
+
+// SetOverridden sets the Overridden field's value.
+func (s *SpendLimit) SetOverridden(v bool) *SpendLimit {
+ s.Overridden = &v
+ return s
+}
+
+// The list of tags to be added to the specified topic.
+type Tag struct {
+ _ struct{} `type:"structure"`
+
+ // The key identifier, or name, of the tag.
+ //
+ // Key is a required field
+ Key *string `min:"1" type:"string" required:"true"`
+
+ // The string value associated with the key of the tag.
+ //
+ // Value is a required field
+ Value *string `type:"string" required:"true"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s Tag) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s Tag) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *Tag) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "Tag"}
+ if s.Key == nil {
+ invalidParams.Add(request.NewErrParamRequired("Key"))
+ }
+ if s.Key != nil && len(*s.Key) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("Key", 1))
+ }
+ if s.Value == nil {
+ invalidParams.Add(request.NewErrParamRequired("Value"))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetKey sets the Key field's value.
+func (s *Tag) SetKey(v string) *Tag {
+ s.Key = &v
+ return s
+}
+
+// SetValue sets the Value field's value.
+func (s *Tag) SetValue(v string) *Tag {
+ s.Value = &v
+ return s
+}
+
+type TagResourceInput struct {
+ _ struct{} `type:"structure"`
+
+ // The Amazon Resource Name (ARN) of the resource.
+ //
+ // ResourceArn is a required field
+ ResourceArn *string `min:"20" type:"string" required:"true"`
+
+ // An array of key and value pair tags that are associated with the resource.
+ //
+ // Tags is a required field
+ Tags []*Tag `min:"1" type:"list" required:"true"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s TagResourceInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s TagResourceInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *TagResourceInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "TagResourceInput"}
+ if s.ResourceArn == nil {
+ invalidParams.Add(request.NewErrParamRequired("ResourceArn"))
+ }
+ if s.ResourceArn != nil && len(*s.ResourceArn) < 20 {
+ invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 20))
+ }
+ if s.Tags == nil {
+ invalidParams.Add(request.NewErrParamRequired("Tags"))
+ }
+ if s.Tags != nil && len(s.Tags) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("Tags", 1))
+ }
+ if s.Tags != nil {
+ for i, v := range s.Tags {
+ if v == nil {
+ continue
+ }
+ if err := v.Validate(); err != nil {
+ invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams))
+ }
+ }
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetResourceArn sets the ResourceArn field's value.
+func (s *TagResourceInput) SetResourceArn(v string) *TagResourceInput {
+ s.ResourceArn = &v
+ return s
+}
+
+// SetTags sets the Tags field's value.
+func (s *TagResourceInput) SetTags(v []*Tag) *TagResourceInput {
+ s.Tags = v
+ return s
+}
+
+type TagResourceOutput struct {
+ _ struct{} `type:"structure"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s TagResourceOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s TagResourceOutput) GoString() string {
+ return s.String()
+}
+
+// An error that occurred because too many requests were sent during a certain
+// amount of time.
+type ThrottlingException struct {
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
+
+ Message_ *string `locationName:"Message" type:"string"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s ThrottlingException) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s ThrottlingException) GoString() string {
+ return s.String()
+}
+
+func newErrorThrottlingException(v protocol.ResponseMetadata) error {
+ return &ThrottlingException{
+ RespMetadata: v,
+ }
+}
+
+// Code returns the exception type name.
+func (s *ThrottlingException) Code() string {
+ return "ThrottlingException"
+}
+
+// Message returns the exception's message.
+func (s *ThrottlingException) Message() string {
+ if s.Message_ != nil {
+ return *s.Message_
+ }
+ return ""
+}
+
+// OrigErr always returns nil, satisfies awserr.Error interface.
+func (s *ThrottlingException) OrigErr() error {
+ return nil
+}
+
+func (s *ThrottlingException) Error() string {
+ return fmt.Sprintf("%s: %s", s.Code(), s.Message())
+}
+
+// Status code returns the HTTP status code for the request's response error.
+func (s *ThrottlingException) StatusCode() int {
+ return s.RespMetadata.StatusCode
+}
+
+// RequestID returns the service's response RequestID for request.
+func (s *ThrottlingException) RequestID() string {
+ return s.RespMetadata.RequestID
+}
+
+type UntagResourceInput struct {
+ _ struct{} `type:"structure"`
+
+ // The Amazon Resource Name (ARN) of the resource.
+ //
+ // ResourceArn is a required field
+ ResourceArn *string `min:"20" type:"string" required:"true"`
+
+ // An array of tag key values to unassociate with the resource.
+ //
+ // TagKeys is a required field
+ TagKeys []*string `min:"1" type:"list" required:"true"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s UntagResourceInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s UntagResourceInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *UntagResourceInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "UntagResourceInput"}
+ if s.ResourceArn == nil {
+ invalidParams.Add(request.NewErrParamRequired("ResourceArn"))
+ }
+ if s.ResourceArn != nil && len(*s.ResourceArn) < 20 {
+ invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 20))
+ }
+ if s.TagKeys == nil {
+ invalidParams.Add(request.NewErrParamRequired("TagKeys"))
+ }
+ if s.TagKeys != nil && len(s.TagKeys) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("TagKeys", 1))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetResourceArn sets the ResourceArn field's value.
+func (s *UntagResourceInput) SetResourceArn(v string) *UntagResourceInput {
+ s.ResourceArn = &v
+ return s
+}
+
+// SetTagKeys sets the TagKeys field's value.
+func (s *UntagResourceInput) SetTagKeys(v []*string) *UntagResourceInput {
+ s.TagKeys = v
+ return s
+}
+
+type UntagResourceOutput struct {
+ _ struct{} `type:"structure"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s UntagResourceOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s UntagResourceOutput) GoString() string {
+ return s.String()
+}
+
+type UpdateEventDestinationInput struct {
+ _ struct{} `type:"structure"`
+
+ // An object that contains information about an event destination that sends
+ // data to CloudWatch Logs.
+ CloudWatchLogsDestination *CloudWatchLogsDestination `type:"structure"`
+
+ // The configuration set to update with the new event destination. Valid values
+ // for this can be the ConfigurationSetName or ConfigurationSetArn.
+ //
+ // ConfigurationSetName is a required field
+ ConfigurationSetName *string `min:"1" type:"string" required:"true"`
+
+ // When set to true logging is enabled.
+ Enabled *bool `type:"boolean"`
+
+ // The name to use for the event destination.
+ //
+ // EventDestinationName is a required field
+ EventDestinationName *string `min:"1" type:"string" required:"true"`
+
+ // An object that contains information about an event destination for logging
+ // to Kinesis Data Firehose.
+ KinesisFirehoseDestination *KinesisFirehoseDestination `type:"structure"`
+
+ // An array of event types that determine which events to log.
+ MatchingEventTypes []*string `min:"1" type:"list" enum:"EventType"`
+
+ // An object that contains information about an event destination that sends
+ // data to Amazon SNS.
+ SnsDestination *SnsDestination `type:"structure"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s UpdateEventDestinationInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s UpdateEventDestinationInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *UpdateEventDestinationInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "UpdateEventDestinationInput"}
+ if s.ConfigurationSetName == nil {
+ invalidParams.Add(request.NewErrParamRequired("ConfigurationSetName"))
+ }
+ if s.ConfigurationSetName != nil && len(*s.ConfigurationSetName) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("ConfigurationSetName", 1))
+ }
+ if s.EventDestinationName == nil {
+ invalidParams.Add(request.NewErrParamRequired("EventDestinationName"))
+ }
+ if s.EventDestinationName != nil && len(*s.EventDestinationName) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("EventDestinationName", 1))
+ }
+ if s.MatchingEventTypes != nil && len(s.MatchingEventTypes) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("MatchingEventTypes", 1))
+ }
+ if s.CloudWatchLogsDestination != nil {
+ if err := s.CloudWatchLogsDestination.Validate(); err != nil {
+ invalidParams.AddNested("CloudWatchLogsDestination", err.(request.ErrInvalidParams))
+ }
+ }
+ if s.KinesisFirehoseDestination != nil {
+ if err := s.KinesisFirehoseDestination.Validate(); err != nil {
+ invalidParams.AddNested("KinesisFirehoseDestination", err.(request.ErrInvalidParams))
+ }
+ }
+ if s.SnsDestination != nil {
+ if err := s.SnsDestination.Validate(); err != nil {
+ invalidParams.AddNested("SnsDestination", err.(request.ErrInvalidParams))
+ }
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetCloudWatchLogsDestination sets the CloudWatchLogsDestination field's value.
+func (s *UpdateEventDestinationInput) SetCloudWatchLogsDestination(v *CloudWatchLogsDestination) *UpdateEventDestinationInput {
+ s.CloudWatchLogsDestination = v
+ return s
+}
+
+// SetConfigurationSetName sets the ConfigurationSetName field's value.
+func (s *UpdateEventDestinationInput) SetConfigurationSetName(v string) *UpdateEventDestinationInput {
+ s.ConfigurationSetName = &v
+ return s
+}
+
+// SetEnabled sets the Enabled field's value.
+func (s *UpdateEventDestinationInput) SetEnabled(v bool) *UpdateEventDestinationInput {
+ s.Enabled = &v
+ return s
+}
+
+// SetEventDestinationName sets the EventDestinationName field's value.
+func (s *UpdateEventDestinationInput) SetEventDestinationName(v string) *UpdateEventDestinationInput {
+ s.EventDestinationName = &v
+ return s
+}
+
+// SetKinesisFirehoseDestination sets the KinesisFirehoseDestination field's value.
+func (s *UpdateEventDestinationInput) SetKinesisFirehoseDestination(v *KinesisFirehoseDestination) *UpdateEventDestinationInput {
+ s.KinesisFirehoseDestination = v
+ return s
+}
+
+// SetMatchingEventTypes sets the MatchingEventTypes field's value.
+func (s *UpdateEventDestinationInput) SetMatchingEventTypes(v []*string) *UpdateEventDestinationInput {
+ s.MatchingEventTypes = v
+ return s
+}
+
+// SetSnsDestination sets the SnsDestination field's value.
+func (s *UpdateEventDestinationInput) SetSnsDestination(v *SnsDestination) *UpdateEventDestinationInput {
+ s.SnsDestination = v
+ return s
+}
+
+type UpdateEventDestinationOutput struct {
+ _ struct{} `type:"structure"`
+
+ // The Amazon Resource Name (ARN) for the ConfigurationSet that was updated.
+ ConfigurationSetArn *string `type:"string"`
+
+ // The name of the configuration set.
+ ConfigurationSetName *string `min:"1" type:"string"`
+
+ // An EventDestination object containing the details of where events will be
+ // logged.
+ EventDestination *EventDestination `type:"structure"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s UpdateEventDestinationOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s UpdateEventDestinationOutput) GoString() string {
+ return s.String()
+}
+
+// SetConfigurationSetArn sets the ConfigurationSetArn field's value.
+func (s *UpdateEventDestinationOutput) SetConfigurationSetArn(v string) *UpdateEventDestinationOutput {
+ s.ConfigurationSetArn = &v
+ return s
+}
+
+// SetConfigurationSetName sets the ConfigurationSetName field's value.
+func (s *UpdateEventDestinationOutput) SetConfigurationSetName(v string) *UpdateEventDestinationOutput {
+ s.ConfigurationSetName = &v
+ return s
+}
+
+// SetEventDestination sets the EventDestination field's value.
+func (s *UpdateEventDestinationOutput) SetEventDestination(v *EventDestination) *UpdateEventDestinationOutput {
+ s.EventDestination = v
+ return s
+}
+
+type UpdatePhoneNumberInput struct {
+ _ struct{} `type:"structure"`
+
+ // By default this is set to false. When set to true the phone number can't
+ // be deleted.
+ DeletionProtectionEnabled *bool `type:"boolean"`
+
+ // The OptOutList to add the phone number to. Valid values for this field can
+ // be either the OutOutListName or OutOutListArn.
+ OptOutListName *string `min:"1" type:"string"`
+
+ // The unique identifier of the phone number. Valid values for this field can
+ // be either the PhoneNumberId or PhoneNumberArn.
+ //
+ // PhoneNumberId is a required field
+ PhoneNumberId *string `min:"1" type:"string" required:"true"`
+
+ // By default this is set to false. When an end recipient sends a message that
+ // begins with HELP or STOP to one of your dedicated numbers, Amazon Pinpoint
+ // automatically replies with a customizable message and adds the end recipient
+ // to the OptOutList. When set to true you're responsible for responding to
+ // HELP and STOP requests. You're also responsible for tracking and honoring
+ // opt-out requests.
+ SelfManagedOptOutsEnabled *bool `type:"boolean"`
+
+ // The Amazon Resource Name (ARN) of the two way channel.
+ TwoWayChannelArn *string `min:"20" type:"string"`
+
+ // By default this is set to false. When set to true you can receive incoming
+ // text messages from your end recipients.
+ TwoWayEnabled *bool `type:"boolean"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s UpdatePhoneNumberInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s UpdatePhoneNumberInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *UpdatePhoneNumberInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "UpdatePhoneNumberInput"}
+ if s.OptOutListName != nil && len(*s.OptOutListName) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("OptOutListName", 1))
+ }
+ if s.PhoneNumberId == nil {
+ invalidParams.Add(request.NewErrParamRequired("PhoneNumberId"))
+ }
+ if s.PhoneNumberId != nil && len(*s.PhoneNumberId) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("PhoneNumberId", 1))
+ }
+ if s.TwoWayChannelArn != nil && len(*s.TwoWayChannelArn) < 20 {
+ invalidParams.Add(request.NewErrParamMinLen("TwoWayChannelArn", 20))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetDeletionProtectionEnabled sets the DeletionProtectionEnabled field's value.
+func (s *UpdatePhoneNumberInput) SetDeletionProtectionEnabled(v bool) *UpdatePhoneNumberInput {
+ s.DeletionProtectionEnabled = &v
+ return s
+}
+
+// SetOptOutListName sets the OptOutListName field's value.
+func (s *UpdatePhoneNumberInput) SetOptOutListName(v string) *UpdatePhoneNumberInput {
+ s.OptOutListName = &v
+ return s
+}
+
+// SetPhoneNumberId sets the PhoneNumberId field's value.
+func (s *UpdatePhoneNumberInput) SetPhoneNumberId(v string) *UpdatePhoneNumberInput {
+ s.PhoneNumberId = &v
+ return s
+}
+
+// SetSelfManagedOptOutsEnabled sets the SelfManagedOptOutsEnabled field's value.
+func (s *UpdatePhoneNumberInput) SetSelfManagedOptOutsEnabled(v bool) *UpdatePhoneNumberInput {
+ s.SelfManagedOptOutsEnabled = &v
+ return s
+}
+
+// SetTwoWayChannelArn sets the TwoWayChannelArn field's value.
+func (s *UpdatePhoneNumberInput) SetTwoWayChannelArn(v string) *UpdatePhoneNumberInput {
+ s.TwoWayChannelArn = &v
+ return s
+}
+
+// SetTwoWayEnabled sets the TwoWayEnabled field's value.
+func (s *UpdatePhoneNumberInput) SetTwoWayEnabled(v bool) *UpdatePhoneNumberInput {
+ s.TwoWayEnabled = &v
+ return s
+}
+
+type UpdatePhoneNumberOutput struct {
+ _ struct{} `type:"structure"`
+
+ // The time when the phone number was created, in UNIX epoch time (https://www.epochconverter.com/)
+ // format.
+ CreatedTimestamp *time.Time `type:"timestamp"`
+
+ // When set to true the phone number can't be deleted.
+ DeletionProtectionEnabled *bool `type:"boolean"`
+
+ // The two-character code, in ISO 3166-1 alpha-2 format, for the country or
+ // region.
+ IsoCountryCode *string `min:"2" type:"string"`
+
+ // The type of message. Valid values are TRANSACTIONAL for messages that are
+ // critical or time-sensitive and PROMOTIONAL for messages that aren't critical
+ // or time-sensitive.
+ MessageType *string `type:"string" enum:"MessageType"`
+
+ // The monthly leasing price of the phone number, in US dollars.
+ MonthlyLeasingPrice *string `type:"string"`
+
+ // Specifies if the number could be used for text messages, voice or both.
+ NumberCapabilities []*string `min:"1" type:"list" enum:"NumberCapability"`
+
+ // The type of number that was requested.
+ NumberType *string `type:"string" enum:"NumberType"`
+
+ // The name of the OptOutList associated with the phone number.
+ OptOutListName *string `min:"1" type:"string"`
+
+ // The phone number that was updated.
+ PhoneNumber *string `min:"1" type:"string"`
+
+ // The Amazon Resource Name (ARN) of the updated phone number.
+ PhoneNumberArn *string `type:"string"`
+
+ // The unique identifier of the phone number.
+ PhoneNumberId *string `type:"string"`
+
+ // This is true if self managed opt-out are enabled.
+ SelfManagedOptOutsEnabled *bool `type:"boolean"`
+
+ // The current status of the request.
+ Status *string `type:"string" enum:"NumberStatus"`
+
+ // The Amazon Resource Name (ARN) of the two way channel.
+ TwoWayChannelArn *string `min:"20" type:"string"`
+
+ // By default this is set to false. When set to true you can receive incoming
+ // text messages from your end recipients.
+ TwoWayEnabled *bool `type:"boolean"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s UpdatePhoneNumberOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s UpdatePhoneNumberOutput) GoString() string {
+ return s.String()
+}
+
+// SetCreatedTimestamp sets the CreatedTimestamp field's value.
+func (s *UpdatePhoneNumberOutput) SetCreatedTimestamp(v time.Time) *UpdatePhoneNumberOutput {
+ s.CreatedTimestamp = &v
+ return s
+}
+
+// SetDeletionProtectionEnabled sets the DeletionProtectionEnabled field's value.
+func (s *UpdatePhoneNumberOutput) SetDeletionProtectionEnabled(v bool) *UpdatePhoneNumberOutput {
+ s.DeletionProtectionEnabled = &v
+ return s
+}
+
+// SetIsoCountryCode sets the IsoCountryCode field's value.
+func (s *UpdatePhoneNumberOutput) SetIsoCountryCode(v string) *UpdatePhoneNumberOutput {
+ s.IsoCountryCode = &v
+ return s
+}
+
+// SetMessageType sets the MessageType field's value.
+func (s *UpdatePhoneNumberOutput) SetMessageType(v string) *UpdatePhoneNumberOutput {
+ s.MessageType = &v
+ return s
+}
+
+// SetMonthlyLeasingPrice sets the MonthlyLeasingPrice field's value.
+func (s *UpdatePhoneNumberOutput) SetMonthlyLeasingPrice(v string) *UpdatePhoneNumberOutput {
+ s.MonthlyLeasingPrice = &v
+ return s
+}
+
+// SetNumberCapabilities sets the NumberCapabilities field's value.
+func (s *UpdatePhoneNumberOutput) SetNumberCapabilities(v []*string) *UpdatePhoneNumberOutput {
+ s.NumberCapabilities = v
+ return s
+}
+
+// SetNumberType sets the NumberType field's value.
+func (s *UpdatePhoneNumberOutput) SetNumberType(v string) *UpdatePhoneNumberOutput {
+ s.NumberType = &v
+ return s
+}
+
+// SetOptOutListName sets the OptOutListName field's value.
+func (s *UpdatePhoneNumberOutput) SetOptOutListName(v string) *UpdatePhoneNumberOutput {
+ s.OptOutListName = &v
+ return s
+}
+
+// SetPhoneNumber sets the PhoneNumber field's value.
+func (s *UpdatePhoneNumberOutput) SetPhoneNumber(v string) *UpdatePhoneNumberOutput {
+ s.PhoneNumber = &v
+ return s
+}
+
+// SetPhoneNumberArn sets the PhoneNumberArn field's value.
+func (s *UpdatePhoneNumberOutput) SetPhoneNumberArn(v string) *UpdatePhoneNumberOutput {
+ s.PhoneNumberArn = &v
+ return s
+}
+
+// SetPhoneNumberId sets the PhoneNumberId field's value.
+func (s *UpdatePhoneNumberOutput) SetPhoneNumberId(v string) *UpdatePhoneNumberOutput {
+ s.PhoneNumberId = &v
+ return s
+}
+
+// SetSelfManagedOptOutsEnabled sets the SelfManagedOptOutsEnabled field's value.
+func (s *UpdatePhoneNumberOutput) SetSelfManagedOptOutsEnabled(v bool) *UpdatePhoneNumberOutput {
+ s.SelfManagedOptOutsEnabled = &v
+ return s
+}
+
+// SetStatus sets the Status field's value.
+func (s *UpdatePhoneNumberOutput) SetStatus(v string) *UpdatePhoneNumberOutput {
+ s.Status = &v
+ return s
+}
+
+// SetTwoWayChannelArn sets the TwoWayChannelArn field's value.
+func (s *UpdatePhoneNumberOutput) SetTwoWayChannelArn(v string) *UpdatePhoneNumberOutput {
+ s.TwoWayChannelArn = &v
+ return s
+}
+
+// SetTwoWayEnabled sets the TwoWayEnabled field's value.
+func (s *UpdatePhoneNumberOutput) SetTwoWayEnabled(v bool) *UpdatePhoneNumberOutput {
+ s.TwoWayEnabled = &v
+ return s
+}
+
+type UpdatePoolInput struct {
+ _ struct{} `type:"structure"`
+
+ // When set to true the pool can't be deleted.
+ DeletionProtectionEnabled *bool `type:"boolean"`
+
+ // The OptOutList to associate with the pool. Valid values are either OptOutListName
+ // or OptOutListArn.
+ OptOutListName *string `min:"1" type:"string"`
+
+ // The unique identifier of the pool to update. Valid values are either the
+ // PoolId or PoolArn.
+ //
+ // PoolId is a required field
+ PoolId *string `min:"1" type:"string" required:"true"`
+
+ // By default this is set to false. When an end recipient sends a message that
+ // begins with HELP or STOP to one of your dedicated numbers, Amazon Pinpoint
+ // automatically replies with a customizable message and adds the end recipient
+ // to the OptOutList. When set to true you're responsible for responding to
+ // HELP and STOP requests. You're also responsible for tracking and honoring
+ // opt-out requests.
+ SelfManagedOptOutsEnabled *bool `type:"boolean"`
+
+ // Indicates whether shared routes are enabled for the pool.
+ SharedRoutesEnabled *bool `type:"boolean"`
+
+ // The Amazon Resource Name (ARN) of the two way channel.
+ TwoWayChannelArn *string `min:"20" type:"string"`
+
+ // By default this is set to false. When set to true you can receive incoming
+ // text messages from your end recipients.
+ TwoWayEnabled *bool `type:"boolean"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s UpdatePoolInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s UpdatePoolInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *UpdatePoolInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "UpdatePoolInput"}
+ if s.OptOutListName != nil && len(*s.OptOutListName) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("OptOutListName", 1))
+ }
+ if s.PoolId == nil {
+ invalidParams.Add(request.NewErrParamRequired("PoolId"))
+ }
+ if s.PoolId != nil && len(*s.PoolId) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("PoolId", 1))
+ }
+ if s.TwoWayChannelArn != nil && len(*s.TwoWayChannelArn) < 20 {
+ invalidParams.Add(request.NewErrParamMinLen("TwoWayChannelArn", 20))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetDeletionProtectionEnabled sets the DeletionProtectionEnabled field's value.
+func (s *UpdatePoolInput) SetDeletionProtectionEnabled(v bool) *UpdatePoolInput {
+ s.DeletionProtectionEnabled = &v
+ return s
+}
+
+// SetOptOutListName sets the OptOutListName field's value.
+func (s *UpdatePoolInput) SetOptOutListName(v string) *UpdatePoolInput {
+ s.OptOutListName = &v
+ return s
+}
+
+// SetPoolId sets the PoolId field's value.
+func (s *UpdatePoolInput) SetPoolId(v string) *UpdatePoolInput {
+ s.PoolId = &v
+ return s
+}
+
+// SetSelfManagedOptOutsEnabled sets the SelfManagedOptOutsEnabled field's value.
+func (s *UpdatePoolInput) SetSelfManagedOptOutsEnabled(v bool) *UpdatePoolInput {
+ s.SelfManagedOptOutsEnabled = &v
+ return s
+}
+
+// SetSharedRoutesEnabled sets the SharedRoutesEnabled field's value.
+func (s *UpdatePoolInput) SetSharedRoutesEnabled(v bool) *UpdatePoolInput {
+ s.SharedRoutesEnabled = &v
+ return s
+}
+
+// SetTwoWayChannelArn sets the TwoWayChannelArn field's value.
+func (s *UpdatePoolInput) SetTwoWayChannelArn(v string) *UpdatePoolInput {
+ s.TwoWayChannelArn = &v
+ return s
+}
+
+// SetTwoWayEnabled sets the TwoWayEnabled field's value.
+func (s *UpdatePoolInput) SetTwoWayEnabled(v bool) *UpdatePoolInput {
+ s.TwoWayEnabled = &v
+ return s
+}
+
+type UpdatePoolOutput struct {
+ _ struct{} `type:"structure"`
+
+ // The time when the pool was created, in UNIX epoch time (https://www.epochconverter.com/)
+ // format.
+ CreatedTimestamp *time.Time `type:"timestamp"`
+
+ // When set to true the pool can't be deleted.
+ DeletionProtectionEnabled *bool `type:"boolean"`
+
+ // The type of message for the pool to use.
+ MessageType *string `type:"string" enum:"MessageType"`
+
+ // The name of the OptOutList associated with the pool.
+ OptOutListName *string `min:"1" type:"string"`
+
+ // The ARN of the pool.
+ PoolArn *string `type:"string"`
+
+ // The unique identifier of the pool.
+ PoolId *string `type:"string"`
+
+ // When an end recipient sends a message that begins with HELP or STOP to one
+ // of your dedicated numbers, Amazon Pinpoint automatically replies with a customizable
+ // message and adds the end recipient to the OptOutList. When set to true you're
+ // responsible for responding to HELP and STOP requests. You're also responsible
+ // for tracking and honoring opt-out requests.
+ SelfManagedOptOutsEnabled *bool `type:"boolean"`
+
+ // Indicates whether shared routes are enabled for the pool.
+ SharedRoutesEnabled *bool `type:"boolean"`
+
+ // The current status of the pool update request.
+ Status *string `type:"string" enum:"PoolStatus"`
+
+ // The Amazon Resource Name (ARN) of the two way channel.
+ TwoWayChannelArn *string `min:"20" type:"string"`
+
+ // By default this is set to false. When set to true you can receive incoming
+ // text messages from your end recipients.
+ TwoWayEnabled *bool `type:"boolean"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s UpdatePoolOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s UpdatePoolOutput) GoString() string {
+ return s.String()
+}
+
+// SetCreatedTimestamp sets the CreatedTimestamp field's value.
+func (s *UpdatePoolOutput) SetCreatedTimestamp(v time.Time) *UpdatePoolOutput {
+ s.CreatedTimestamp = &v
+ return s
+}
+
+// SetDeletionProtectionEnabled sets the DeletionProtectionEnabled field's value.
+func (s *UpdatePoolOutput) SetDeletionProtectionEnabled(v bool) *UpdatePoolOutput {
+ s.DeletionProtectionEnabled = &v
+ return s
+}
+
+// SetMessageType sets the MessageType field's value.
+func (s *UpdatePoolOutput) SetMessageType(v string) *UpdatePoolOutput {
+ s.MessageType = &v
+ return s
+}
+
+// SetOptOutListName sets the OptOutListName field's value.
+func (s *UpdatePoolOutput) SetOptOutListName(v string) *UpdatePoolOutput {
+ s.OptOutListName = &v
+ return s
+}
+
+// SetPoolArn sets the PoolArn field's value.
+func (s *UpdatePoolOutput) SetPoolArn(v string) *UpdatePoolOutput {
+ s.PoolArn = &v
+ return s
+}
+
+// SetPoolId sets the PoolId field's value.
+func (s *UpdatePoolOutput) SetPoolId(v string) *UpdatePoolOutput {
+ s.PoolId = &v
+ return s
+}
+
+// SetSelfManagedOptOutsEnabled sets the SelfManagedOptOutsEnabled field's value.
+func (s *UpdatePoolOutput) SetSelfManagedOptOutsEnabled(v bool) *UpdatePoolOutput {
+ s.SelfManagedOptOutsEnabled = &v
+ return s
+}
+
+// SetSharedRoutesEnabled sets the SharedRoutesEnabled field's value.
+func (s *UpdatePoolOutput) SetSharedRoutesEnabled(v bool) *UpdatePoolOutput {
+ s.SharedRoutesEnabled = &v
+ return s
+}
+
+// SetStatus sets the Status field's value.
+func (s *UpdatePoolOutput) SetStatus(v string) *UpdatePoolOutput {
+ s.Status = &v
+ return s
+}
+
+// SetTwoWayChannelArn sets the TwoWayChannelArn field's value.
+func (s *UpdatePoolOutput) SetTwoWayChannelArn(v string) *UpdatePoolOutput {
+ s.TwoWayChannelArn = &v
+ return s
+}
+
+// SetTwoWayEnabled sets the TwoWayEnabled field's value.
+func (s *UpdatePoolOutput) SetTwoWayEnabled(v bool) *UpdatePoolOutput {
+ s.TwoWayEnabled = &v
+ return s
+}
+
+// A validation exception for a field.
+type ValidationException struct {
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
+
+ // The field that failed validation.
+ Fields []*ValidationExceptionField `type:"list"`
+
+ Message_ *string `locationName:"Message" type:"string"`
+
+ // The reason for the exception.
+ Reason *string `type:"string" enum:"ValidationExceptionReason"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s ValidationException) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s ValidationException) GoString() string {
+ return s.String()
+}
+
+func newErrorValidationException(v protocol.ResponseMetadata) error {
+ return &ValidationException{
+ RespMetadata: v,
+ }
+}
+
+// Code returns the exception type name.
+func (s *ValidationException) Code() string {
+ return "ValidationException"
+}
+
+// Message returns the exception's message.
+func (s *ValidationException) Message() string {
+ if s.Message_ != nil {
+ return *s.Message_
+ }
+ return ""
+}
+
+// OrigErr always returns nil, satisfies awserr.Error interface.
+func (s *ValidationException) OrigErr() error {
+ return nil
+}
+
+func (s *ValidationException) Error() string {
+ return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
+}
+
+// Status code returns the HTTP status code for the request's response error.
+func (s *ValidationException) StatusCode() int {
+ return s.RespMetadata.StatusCode
+}
+
+// RequestID returns the service's response RequestID for request.
+func (s *ValidationException) RequestID() string {
+ return s.RespMetadata.RequestID
+}
+
+// The field associated with the validation exception.
+type ValidationExceptionField struct {
+ _ struct{} `type:"structure"`
+
+ // The message associated with the validation exception with information to
+ // help determine its cause.
+ //
+ // Message is a required field
+ Message *string `type:"string" required:"true"`
+
+ // The name of the field.
+ //
+ // Name is a required field
+ Name *string `type:"string" required:"true"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s ValidationExceptionField) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s ValidationExceptionField) GoString() string {
+ return s.String()
+}
+
+// SetMessage sets the Message field's value.
+func (s *ValidationExceptionField) SetMessage(v string) *ValidationExceptionField {
+ s.Message = &v
+ return s
+}
+
+// SetName sets the Name field's value.
+func (s *ValidationExceptionField) SetName(v string) *ValidationExceptionField {
+ s.Name = &v
+ return s
+}
+
+const (
+ // AccessDeniedExceptionReasonInsufficientAccountReputation is a AccessDeniedExceptionReason enum value
+ AccessDeniedExceptionReasonInsufficientAccountReputation = "INSUFFICIENT_ACCOUNT_REPUTATION"
+
+ // AccessDeniedExceptionReasonAccountDisabled is a AccessDeniedExceptionReason enum value
+ AccessDeniedExceptionReasonAccountDisabled = "ACCOUNT_DISABLED"
+)
+
+// AccessDeniedExceptionReason_Values returns all elements of the AccessDeniedExceptionReason enum
+func AccessDeniedExceptionReason_Values() []string {
+ return []string{
+ AccessDeniedExceptionReasonInsufficientAccountReputation,
+ AccessDeniedExceptionReasonAccountDisabled,
+ }
+}
+
+const (
+ // AccountAttributeNameAccountTier is a AccountAttributeName enum value
+ AccountAttributeNameAccountTier = "ACCOUNT_TIER"
+)
+
+// AccountAttributeName_Values returns all elements of the AccountAttributeName enum
+func AccountAttributeName_Values() []string {
+ return []string{
+ AccountAttributeNameAccountTier,
+ }
+}
+
+const (
+ // AccountLimitNamePhoneNumbers is a AccountLimitName enum value
+ AccountLimitNamePhoneNumbers = "PHONE_NUMBERS"
+
+ // AccountLimitNamePools is a AccountLimitName enum value
+ AccountLimitNamePools = "POOLS"
+
+ // AccountLimitNameConfigurationSets is a AccountLimitName enum value
+ AccountLimitNameConfigurationSets = "CONFIGURATION_SETS"
+
+ // AccountLimitNameOptOutLists is a AccountLimitName enum value
+ AccountLimitNameOptOutLists = "OPT_OUT_LISTS"
+)
+
+// AccountLimitName_Values returns all elements of the AccountLimitName enum
+func AccountLimitName_Values() []string {
+ return []string{
+ AccountLimitNamePhoneNumbers,
+ AccountLimitNamePools,
+ AccountLimitNameConfigurationSets,
+ AccountLimitNameOptOutLists,
+ }
+}
+
+const (
+ // ConfigurationSetFilterNameEventDestinationName is a ConfigurationSetFilterName enum value
+ ConfigurationSetFilterNameEventDestinationName = "event-destination-name"
+
+ // ConfigurationSetFilterNameMatchingEventTypes is a ConfigurationSetFilterName enum value
+ ConfigurationSetFilterNameMatchingEventTypes = "matching-event-types"
+
+ // ConfigurationSetFilterNameDefaultMessageType is a ConfigurationSetFilterName enum value
+ ConfigurationSetFilterNameDefaultMessageType = "default-message-type"
+
+ // ConfigurationSetFilterNameDefaultSenderId is a ConfigurationSetFilterName enum value
+ ConfigurationSetFilterNameDefaultSenderId = "default-sender-id"
+)
+
+// ConfigurationSetFilterName_Values returns all elements of the ConfigurationSetFilterName enum
+func ConfigurationSetFilterName_Values() []string {
+ return []string{
+ ConfigurationSetFilterNameEventDestinationName,
+ ConfigurationSetFilterNameMatchingEventTypes,
+ ConfigurationSetFilterNameDefaultMessageType,
+ ConfigurationSetFilterNameDefaultSenderId,
+ }
+}
+
+const (
+ // ConflictExceptionReasonDeletionProtectionEnabled is a ConflictExceptionReason enum value
+ ConflictExceptionReasonDeletionProtectionEnabled = "DELETION_PROTECTION_ENABLED"
+
+ // ConflictExceptionReasonDestinationPhoneNumberNotVerified is a ConflictExceptionReason enum value
+ ConflictExceptionReasonDestinationPhoneNumberNotVerified = "DESTINATION_PHONE_NUMBER_NOT_VERIFIED"
+
+ // ConflictExceptionReasonDestinationPhoneNumberOptedOut is a ConflictExceptionReason enum value
+ ConflictExceptionReasonDestinationPhoneNumberOptedOut = "DESTINATION_PHONE_NUMBER_OPTED_OUT"
+
+ // ConflictExceptionReasonEventDestinationMismatch is a ConflictExceptionReason enum value
+ ConflictExceptionReasonEventDestinationMismatch = "EVENT_DESTINATION_MISMATCH"
+
+ // ConflictExceptionReasonKeywordMismatch is a ConflictExceptionReason enum value
+ ConflictExceptionReasonKeywordMismatch = "KEYWORD_MISMATCH"
+
+ // ConflictExceptionReasonLastPhoneNumber is a ConflictExceptionReason enum value
+ ConflictExceptionReasonLastPhoneNumber = "LAST_PHONE_NUMBER"
+
+ // ConflictExceptionReasonSelfManagedOptOutsMismatch is a ConflictExceptionReason enum value
+ ConflictExceptionReasonSelfManagedOptOutsMismatch = "SELF_MANAGED_OPT_OUTS_MISMATCH"
+
+ // ConflictExceptionReasonMessageTypeMismatch is a ConflictExceptionReason enum value
+ ConflictExceptionReasonMessageTypeMismatch = "MESSAGE_TYPE_MISMATCH"
+
+ // ConflictExceptionReasonNoOriginationIdentitiesFound is a ConflictExceptionReason enum value
+ ConflictExceptionReasonNoOriginationIdentitiesFound = "NO_ORIGINATION_IDENTITIES_FOUND"
+
+ // ConflictExceptionReasonOptOutListMismatch is a ConflictExceptionReason enum value
+ ConflictExceptionReasonOptOutListMismatch = "OPT_OUT_LIST_MISMATCH"
+
+ // ConflictExceptionReasonPhoneNumberAssociatedToPool is a ConflictExceptionReason enum value
+ ConflictExceptionReasonPhoneNumberAssociatedToPool = "PHONE_NUMBER_ASSOCIATED_TO_POOL"
+
+ // ConflictExceptionReasonPhoneNumberNotAssociatedToPool is a ConflictExceptionReason enum value
+ ConflictExceptionReasonPhoneNumberNotAssociatedToPool = "PHONE_NUMBER_NOT_ASSOCIATED_TO_POOL"
+
+ // ConflictExceptionReasonPhoneNumberNotInRegistrationRegion is a ConflictExceptionReason enum value
+ ConflictExceptionReasonPhoneNumberNotInRegistrationRegion = "PHONE_NUMBER_NOT_IN_REGISTRATION_REGION"
+
+ // ConflictExceptionReasonResourceAlreadyExists is a ConflictExceptionReason enum value
+ ConflictExceptionReasonResourceAlreadyExists = "RESOURCE_ALREADY_EXISTS"
+
+ // ConflictExceptionReasonResourceDeletionNotAllowed is a ConflictExceptionReason enum value
+ ConflictExceptionReasonResourceDeletionNotAllowed = "RESOURCE_DELETION_NOT_ALLOWED"
+
+ // ConflictExceptionReasonResourceModificationNotAllowed is a ConflictExceptionReason enum value
+ ConflictExceptionReasonResourceModificationNotAllowed = "RESOURCE_MODIFICATION_NOT_ALLOWED"
+
+ // ConflictExceptionReasonResourceNotActive is a ConflictExceptionReason enum value
+ ConflictExceptionReasonResourceNotActive = "RESOURCE_NOT_ACTIVE"
+
+ // ConflictExceptionReasonResourceNotEmpty is a ConflictExceptionReason enum value
+ ConflictExceptionReasonResourceNotEmpty = "RESOURCE_NOT_EMPTY"
+
+ // ConflictExceptionReasonTwoWayConfigMismatch is a ConflictExceptionReason enum value
+ ConflictExceptionReasonTwoWayConfigMismatch = "TWO_WAY_CONFIG_MISMATCH"
+)
+
+// ConflictExceptionReason_Values returns all elements of the ConflictExceptionReason enum
+func ConflictExceptionReason_Values() []string {
+ return []string{
+ ConflictExceptionReasonDeletionProtectionEnabled,
+ ConflictExceptionReasonDestinationPhoneNumberNotVerified,
+ ConflictExceptionReasonDestinationPhoneNumberOptedOut,
+ ConflictExceptionReasonEventDestinationMismatch,
+ ConflictExceptionReasonKeywordMismatch,
+ ConflictExceptionReasonLastPhoneNumber,
+ ConflictExceptionReasonSelfManagedOptOutsMismatch,
+ ConflictExceptionReasonMessageTypeMismatch,
+ ConflictExceptionReasonNoOriginationIdentitiesFound,
+ ConflictExceptionReasonOptOutListMismatch,
+ ConflictExceptionReasonPhoneNumberAssociatedToPool,
+ ConflictExceptionReasonPhoneNumberNotAssociatedToPool,
+ ConflictExceptionReasonPhoneNumberNotInRegistrationRegion,
+ ConflictExceptionReasonResourceAlreadyExists,
+ ConflictExceptionReasonResourceDeletionNotAllowed,
+ ConflictExceptionReasonResourceModificationNotAllowed,
+ ConflictExceptionReasonResourceNotActive,
+ ConflictExceptionReasonResourceNotEmpty,
+ ConflictExceptionReasonTwoWayConfigMismatch,
+ }
+}
+
+const (
+ // DestinationCountryParameterKeyInTemplateId is a DestinationCountryParameterKey enum value
+ DestinationCountryParameterKeyInTemplateId = "IN_TEMPLATE_ID"
+
+ // DestinationCountryParameterKeyInEntityId is a DestinationCountryParameterKey enum value
+ DestinationCountryParameterKeyInEntityId = "IN_ENTITY_ID"
+)
+
+// DestinationCountryParameterKey_Values returns all elements of the DestinationCountryParameterKey enum
+func DestinationCountryParameterKey_Values() []string {
+ return []string{
+ DestinationCountryParameterKeyInTemplateId,
+ DestinationCountryParameterKeyInEntityId,
+ }
+}
+
+const (
+ // EventTypeAll is a EventType enum value
+ EventTypeAll = "ALL"
+
+ // EventTypeTextAll is a EventType enum value
+ EventTypeTextAll = "TEXT_ALL"
+
+ // EventTypeTextSent is a EventType enum value
+ EventTypeTextSent = "TEXT_SENT"
+
+ // EventTypeTextPending is a EventType enum value
+ EventTypeTextPending = "TEXT_PENDING"
+
+ // EventTypeTextQueued is a EventType enum value
+ EventTypeTextQueued = "TEXT_QUEUED"
+
+ // EventTypeTextSuccessful is a EventType enum value
+ EventTypeTextSuccessful = "TEXT_SUCCESSFUL"
+
+ // EventTypeTextDelivered is a EventType enum value
+ EventTypeTextDelivered = "TEXT_DELIVERED"
+
+ // EventTypeTextInvalid is a EventType enum value
+ EventTypeTextInvalid = "TEXT_INVALID"
+
+ // EventTypeTextInvalidMessage is a EventType enum value
+ EventTypeTextInvalidMessage = "TEXT_INVALID_MESSAGE"
+
+ // EventTypeTextUnreachable is a EventType enum value
+ EventTypeTextUnreachable = "TEXT_UNREACHABLE"
+
+ // EventTypeTextCarrierUnreachable is a EventType enum value
+ EventTypeTextCarrierUnreachable = "TEXT_CARRIER_UNREACHABLE"
+
+ // EventTypeTextBlocked is a EventType enum value
+ EventTypeTextBlocked = "TEXT_BLOCKED"
+
+ // EventTypeTextCarrierBlocked is a EventType enum value
+ EventTypeTextCarrierBlocked = "TEXT_CARRIER_BLOCKED"
+
+ // EventTypeTextSpam is a EventType enum value
+ EventTypeTextSpam = "TEXT_SPAM"
+
+ // EventTypeTextUnknown is a EventType enum value
+ EventTypeTextUnknown = "TEXT_UNKNOWN"
+
+ // EventTypeTextTtlExpired is a EventType enum value
+ EventTypeTextTtlExpired = "TEXT_TTL_EXPIRED"
+
+ // EventTypeVoiceAll is a EventType enum value
+ EventTypeVoiceAll = "VOICE_ALL"
+
+ // EventTypeVoiceInitiated is a EventType enum value
+ EventTypeVoiceInitiated = "VOICE_INITIATED"
+
+ // EventTypeVoiceRinging is a EventType enum value
+ EventTypeVoiceRinging = "VOICE_RINGING"
+
+ // EventTypeVoiceAnswered is a EventType enum value
+ EventTypeVoiceAnswered = "VOICE_ANSWERED"
+
+ // EventTypeVoiceCompleted is a EventType enum value
+ EventTypeVoiceCompleted = "VOICE_COMPLETED"
+
+ // EventTypeVoiceBusy is a EventType enum value
+ EventTypeVoiceBusy = "VOICE_BUSY"
+
+ // EventTypeVoiceNoAnswer is a EventType enum value
+ EventTypeVoiceNoAnswer = "VOICE_NO_ANSWER"
+
+ // EventTypeVoiceFailed is a EventType enum value
+ EventTypeVoiceFailed = "VOICE_FAILED"
+
+ // EventTypeVoiceTtlExpired is a EventType enum value
+ EventTypeVoiceTtlExpired = "VOICE_TTL_EXPIRED"
+)
+
+// EventType_Values returns all elements of the EventType enum
+func EventType_Values() []string {
+ return []string{
+ EventTypeAll,
+ EventTypeTextAll,
+ EventTypeTextSent,
+ EventTypeTextPending,
+ EventTypeTextQueued,
+ EventTypeTextSuccessful,
+ EventTypeTextDelivered,
+ EventTypeTextInvalid,
+ EventTypeTextInvalidMessage,
+ EventTypeTextUnreachable,
+ EventTypeTextCarrierUnreachable,
+ EventTypeTextBlocked,
+ EventTypeTextCarrierBlocked,
+ EventTypeTextSpam,
+ EventTypeTextUnknown,
+ EventTypeTextTtlExpired,
+ EventTypeVoiceAll,
+ EventTypeVoiceInitiated,
+ EventTypeVoiceRinging,
+ EventTypeVoiceAnswered,
+ EventTypeVoiceCompleted,
+ EventTypeVoiceBusy,
+ EventTypeVoiceNoAnswer,
+ EventTypeVoiceFailed,
+ EventTypeVoiceTtlExpired,
+ }
+}
+
+const (
+ // KeywordActionAutomaticResponse is a KeywordAction enum value
+ KeywordActionAutomaticResponse = "AUTOMATIC_RESPONSE"
+
+ // KeywordActionOptOut is a KeywordAction enum value
+ KeywordActionOptOut = "OPT_OUT"
+
+ // KeywordActionOptIn is a KeywordAction enum value
+ KeywordActionOptIn = "OPT_IN"
+)
+
+// KeywordAction_Values returns all elements of the KeywordAction enum
+func KeywordAction_Values() []string {
+ return []string{
+ KeywordActionAutomaticResponse,
+ KeywordActionOptOut,
+ KeywordActionOptIn,
+ }
+}
+
+const (
+ // KeywordFilterNameKeywordAction is a KeywordFilterName enum value
+ KeywordFilterNameKeywordAction = "keyword-action"
+)
+
+// KeywordFilterName_Values returns all elements of the KeywordFilterName enum
+func KeywordFilterName_Values() []string {
+ return []string{
+ KeywordFilterNameKeywordAction,
+ }
+}
+
+const (
+ // MessageTypeTransactional is a MessageType enum value
+ MessageTypeTransactional = "TRANSACTIONAL"
+
+ // MessageTypePromotional is a MessageType enum value
+ MessageTypePromotional = "PROMOTIONAL"
+)
+
+// MessageType_Values returns all elements of the MessageType enum
+func MessageType_Values() []string {
+ return []string{
+ MessageTypeTransactional,
+ MessageTypePromotional,
+ }
+}
+
+const (
+ // NumberCapabilitySms is a NumberCapability enum value
+ NumberCapabilitySms = "SMS"
+
+ // NumberCapabilityVoice is a NumberCapability enum value
+ NumberCapabilityVoice = "VOICE"
+)
+
+// NumberCapability_Values returns all elements of the NumberCapability enum
+func NumberCapability_Values() []string {
+ return []string{
+ NumberCapabilitySms,
+ NumberCapabilityVoice,
+ }
+}
+
+const (
+ // NumberStatusPending is a NumberStatus enum value
+ NumberStatusPending = "PENDING"
+
+ // NumberStatusActive is a NumberStatus enum value
+ NumberStatusActive = "ACTIVE"
+
+ // NumberStatusAssociating is a NumberStatus enum value
+ NumberStatusAssociating = "ASSOCIATING"
+
+ // NumberStatusDisassociating is a NumberStatus enum value
+ NumberStatusDisassociating = "DISASSOCIATING"
+
+ // NumberStatusDeleted is a NumberStatus enum value
+ NumberStatusDeleted = "DELETED"
+)
+
+// NumberStatus_Values returns all elements of the NumberStatus enum
+func NumberStatus_Values() []string {
+ return []string{
+ NumberStatusPending,
+ NumberStatusActive,
+ NumberStatusAssociating,
+ NumberStatusDisassociating,
+ NumberStatusDeleted,
+ }
+}
+
+const (
+ // NumberTypeShortCode is a NumberType enum value
+ NumberTypeShortCode = "SHORT_CODE"
+
+ // NumberTypeLongCode is a NumberType enum value
+ NumberTypeLongCode = "LONG_CODE"
+
+ // NumberTypeTollFree is a NumberType enum value
+ NumberTypeTollFree = "TOLL_FREE"
+
+ // NumberTypeTenDlc is a NumberType enum value
+ NumberTypeTenDlc = "TEN_DLC"
+)
+
+// NumberType_Values returns all elements of the NumberType enum
+func NumberType_Values() []string {
+ return []string{
+ NumberTypeShortCode,
+ NumberTypeLongCode,
+ NumberTypeTollFree,
+ NumberTypeTenDlc,
+ }
+}
+
+const (
+ // OptedOutFilterNameEndUserOptedOut is a OptedOutFilterName enum value
+ OptedOutFilterNameEndUserOptedOut = "end-user-opted-out"
+)
+
+// OptedOutFilterName_Values returns all elements of the OptedOutFilterName enum
+func OptedOutFilterName_Values() []string {
+ return []string{
+ OptedOutFilterNameEndUserOptedOut,
+ }
+}
+
+const (
+ // PhoneNumberFilterNameStatus is a PhoneNumberFilterName enum value
+ PhoneNumberFilterNameStatus = "status"
+
+ // PhoneNumberFilterNameIsoCountryCode is a PhoneNumberFilterName enum value
+ PhoneNumberFilterNameIsoCountryCode = "iso-country-code"
+
+ // PhoneNumberFilterNameMessageType is a PhoneNumberFilterName enum value
+ PhoneNumberFilterNameMessageType = "message-type"
+
+ // PhoneNumberFilterNameNumberCapability is a PhoneNumberFilterName enum value
+ PhoneNumberFilterNameNumberCapability = "number-capability"
+
+ // PhoneNumberFilterNameNumberType is a PhoneNumberFilterName enum value
+ PhoneNumberFilterNameNumberType = "number-type"
+
+ // PhoneNumberFilterNameTwoWayEnabled is a PhoneNumberFilterName enum value
+ PhoneNumberFilterNameTwoWayEnabled = "two-way-enabled"
+
+ // PhoneNumberFilterNameSelfManagedOptOutsEnabled is a PhoneNumberFilterName enum value
+ PhoneNumberFilterNameSelfManagedOptOutsEnabled = "self-managed-opt-outs-enabled"
+
+ // PhoneNumberFilterNameOptOutListName is a PhoneNumberFilterName enum value
+ PhoneNumberFilterNameOptOutListName = "opt-out-list-name"
+
+ // PhoneNumberFilterNameDeletionProtectionEnabled is a PhoneNumberFilterName enum value
+ PhoneNumberFilterNameDeletionProtectionEnabled = "deletion-protection-enabled"
+)
+
+// PhoneNumberFilterName_Values returns all elements of the PhoneNumberFilterName enum
+func PhoneNumberFilterName_Values() []string {
+ return []string{
+ PhoneNumberFilterNameStatus,
+ PhoneNumberFilterNameIsoCountryCode,
+ PhoneNumberFilterNameMessageType,
+ PhoneNumberFilterNameNumberCapability,
+ PhoneNumberFilterNameNumberType,
+ PhoneNumberFilterNameTwoWayEnabled,
+ PhoneNumberFilterNameSelfManagedOptOutsEnabled,
+ PhoneNumberFilterNameOptOutListName,
+ PhoneNumberFilterNameDeletionProtectionEnabled,
+ }
+}
+
+const (
+ // PoolFilterNameStatus is a PoolFilterName enum value
+ PoolFilterNameStatus = "status"
+
+ // PoolFilterNameMessageType is a PoolFilterName enum value
+ PoolFilterNameMessageType = "message-type"
+
+ // PoolFilterNameTwoWayEnabled is a PoolFilterName enum value
+ PoolFilterNameTwoWayEnabled = "two-way-enabled"
+
+ // PoolFilterNameSelfManagedOptOutsEnabled is a PoolFilterName enum value
+ PoolFilterNameSelfManagedOptOutsEnabled = "self-managed-opt-outs-enabled"
+
+ // PoolFilterNameOptOutListName is a PoolFilterName enum value
+ PoolFilterNameOptOutListName = "opt-out-list-name"
+
+ // PoolFilterNameSharedRoutesEnabled is a PoolFilterName enum value
+ PoolFilterNameSharedRoutesEnabled = "shared-routes-enabled"
+
+ // PoolFilterNameDeletionProtectionEnabled is a PoolFilterName enum value
+ PoolFilterNameDeletionProtectionEnabled = "deletion-protection-enabled"
+)
+
+// PoolFilterName_Values returns all elements of the PoolFilterName enum
+func PoolFilterName_Values() []string {
+ return []string{
+ PoolFilterNameStatus,
+ PoolFilterNameMessageType,
+ PoolFilterNameTwoWayEnabled,
+ PoolFilterNameSelfManagedOptOutsEnabled,
+ PoolFilterNameOptOutListName,
+ PoolFilterNameSharedRoutesEnabled,
+ PoolFilterNameDeletionProtectionEnabled,
+ }
+}
+
+const (
+ // PoolOriginationIdentitiesFilterNameIsoCountryCode is a PoolOriginationIdentitiesFilterName enum value
+ PoolOriginationIdentitiesFilterNameIsoCountryCode = "iso-country-code"
+
+ // PoolOriginationIdentitiesFilterNameNumberCapability is a PoolOriginationIdentitiesFilterName enum value
+ PoolOriginationIdentitiesFilterNameNumberCapability = "number-capability"
+)
+
+// PoolOriginationIdentitiesFilterName_Values returns all elements of the PoolOriginationIdentitiesFilterName enum
+func PoolOriginationIdentitiesFilterName_Values() []string {
+ return []string{
+ PoolOriginationIdentitiesFilterNameIsoCountryCode,
+ PoolOriginationIdentitiesFilterNameNumberCapability,
+ }
+}
+
+const (
+ // PoolStatusCreating is a PoolStatus enum value
+ PoolStatusCreating = "CREATING"
+
+ // PoolStatusActive is a PoolStatus enum value
+ PoolStatusActive = "ACTIVE"
+
+ // PoolStatusDeleting is a PoolStatus enum value
+ PoolStatusDeleting = "DELETING"
+)
+
+// PoolStatus_Values returns all elements of the PoolStatus enum
+func PoolStatus_Values() []string {
+ return []string{
+ PoolStatusCreating,
+ PoolStatusActive,
+ PoolStatusDeleting,
+ }
+}
+
+const (
+ // RequestableNumberTypeLongCode is a RequestableNumberType enum value
+ RequestableNumberTypeLongCode = "LONG_CODE"
+
+ // RequestableNumberTypeTollFree is a RequestableNumberType enum value
+ RequestableNumberTypeTollFree = "TOLL_FREE"
+
+ // RequestableNumberTypeTenDlc is a RequestableNumberType enum value
+ RequestableNumberTypeTenDlc = "TEN_DLC"
+)
+
+// RequestableNumberType_Values returns all elements of the RequestableNumberType enum
+func RequestableNumberType_Values() []string {
+ return []string{
+ RequestableNumberTypeLongCode,
+ RequestableNumberTypeTollFree,
+ RequestableNumberTypeTenDlc,
+ }
+}
+
+const (
+ // ResourceTypeAccount is a ResourceType enum value
+ ResourceTypeAccount = "account"
+
+ // ResourceTypePhoneNumber is a ResourceType enum value
+ ResourceTypePhoneNumber = "phone-number"
+
+ // ResourceTypeSenderId is a ResourceType enum value
+ ResourceTypeSenderId = "sender-id"
+
+ // ResourceTypePool is a ResourceType enum value
+ ResourceTypePool = "pool"
+
+ // ResourceTypeConfigurationSet is a ResourceType enum value
+ ResourceTypeConfigurationSet = "configuration-set"
+
+ // ResourceTypeOptOutList is a ResourceType enum value
+ ResourceTypeOptOutList = "opt-out-list"
+
+ // ResourceTypeEventDestination is a ResourceType enum value
+ ResourceTypeEventDestination = "event-destination"
+
+ // ResourceTypeKeyword is a ResourceType enum value
+ ResourceTypeKeyword = "keyword"
+
+ // ResourceTypeOptedOutNumber is a ResourceType enum value
+ ResourceTypeOptedOutNumber = "opted-out-number"
+
+ // ResourceTypeRegistration is a ResourceType enum value
+ ResourceTypeRegistration = "registration"
+)
+
+// ResourceType_Values returns all elements of the ResourceType enum
+func ResourceType_Values() []string {
+ return []string{
+ ResourceTypeAccount,
+ ResourceTypePhoneNumber,
+ ResourceTypeSenderId,
+ ResourceTypePool,
+ ResourceTypeConfigurationSet,
+ ResourceTypeOptOutList,
+ ResourceTypeEventDestination,
+ ResourceTypeKeyword,
+ ResourceTypeOptedOutNumber,
+ ResourceTypeRegistration,
+ }
+}
+
+const (
+ // SenderIdFilterNameSenderId is a SenderIdFilterName enum value
+ SenderIdFilterNameSenderId = "sender-id"
+
+ // SenderIdFilterNameIsoCountryCode is a SenderIdFilterName enum value
+ SenderIdFilterNameIsoCountryCode = "iso-country-code"
+
+ // SenderIdFilterNameMessageType is a SenderIdFilterName enum value
+ SenderIdFilterNameMessageType = "message-type"
+)
+
+// SenderIdFilterName_Values returns all elements of the SenderIdFilterName enum
+func SenderIdFilterName_Values() []string {
+ return []string{
+ SenderIdFilterNameSenderId,
+ SenderIdFilterNameIsoCountryCode,
+ SenderIdFilterNameMessageType,
+ }
+}
+
+const (
+ // ServiceQuotaExceededExceptionReasonConfigurationSetsPerAccount is a ServiceQuotaExceededExceptionReason enum value
+ ServiceQuotaExceededExceptionReasonConfigurationSetsPerAccount = "CONFIGURATION_SETS_PER_ACCOUNT"
+
+ // ServiceQuotaExceededExceptionReasonDailyDestinationCallLimit is a ServiceQuotaExceededExceptionReason enum value
+ ServiceQuotaExceededExceptionReasonDailyDestinationCallLimit = "DAILY_DESTINATION_CALL_LIMIT"
+
+ // ServiceQuotaExceededExceptionReasonEventDestinationsPerConfigurationSet is a ServiceQuotaExceededExceptionReason enum value
+ ServiceQuotaExceededExceptionReasonEventDestinationsPerConfigurationSet = "EVENT_DESTINATIONS_PER_CONFIGURATION_SET"
+
+ // ServiceQuotaExceededExceptionReasonKeywordsPerPhoneNumber is a ServiceQuotaExceededExceptionReason enum value
+ ServiceQuotaExceededExceptionReasonKeywordsPerPhoneNumber = "KEYWORDS_PER_PHONE_NUMBER"
+
+ // ServiceQuotaExceededExceptionReasonKeywordsPerPool is a ServiceQuotaExceededExceptionReason enum value
+ ServiceQuotaExceededExceptionReasonKeywordsPerPool = "KEYWORDS_PER_POOL"
+
+ // ServiceQuotaExceededExceptionReasonMonthlySpendLimitReachedForText is a ServiceQuotaExceededExceptionReason enum value
+ ServiceQuotaExceededExceptionReasonMonthlySpendLimitReachedForText = "MONTHLY_SPEND_LIMIT_REACHED_FOR_TEXT"
+
+ // ServiceQuotaExceededExceptionReasonMonthlySpendLimitReachedForVoice is a ServiceQuotaExceededExceptionReason enum value
+ ServiceQuotaExceededExceptionReasonMonthlySpendLimitReachedForVoice = "MONTHLY_SPEND_LIMIT_REACHED_FOR_VOICE"
+
+ // ServiceQuotaExceededExceptionReasonOptOutListsPerAccount is a ServiceQuotaExceededExceptionReason enum value
+ ServiceQuotaExceededExceptionReasonOptOutListsPerAccount = "OPT_OUT_LISTS_PER_ACCOUNT"
+
+ // ServiceQuotaExceededExceptionReasonOriginationIdentitiesPerPool is a ServiceQuotaExceededExceptionReason enum value
+ ServiceQuotaExceededExceptionReasonOriginationIdentitiesPerPool = "ORIGINATION_IDENTITIES_PER_POOL"
+
+ // ServiceQuotaExceededExceptionReasonPhoneNumbersPerAccount is a ServiceQuotaExceededExceptionReason enum value
+ ServiceQuotaExceededExceptionReasonPhoneNumbersPerAccount = "PHONE_NUMBERS_PER_ACCOUNT"
+
+ // ServiceQuotaExceededExceptionReasonPhoneNumbersPerRegistration is a ServiceQuotaExceededExceptionReason enum value
+ ServiceQuotaExceededExceptionReasonPhoneNumbersPerRegistration = "PHONE_NUMBERS_PER_REGISTRATION"
+
+ // ServiceQuotaExceededExceptionReasonPoolsPerAccount is a ServiceQuotaExceededExceptionReason enum value
+ ServiceQuotaExceededExceptionReasonPoolsPerAccount = "POOLS_PER_ACCOUNT"
+
+ // ServiceQuotaExceededExceptionReasonTagsPerResource is a ServiceQuotaExceededExceptionReason enum value
+ ServiceQuotaExceededExceptionReasonTagsPerResource = "TAGS_PER_RESOURCE"
+)
+
+// ServiceQuotaExceededExceptionReason_Values returns all elements of the ServiceQuotaExceededExceptionReason enum
+func ServiceQuotaExceededExceptionReason_Values() []string {
+ return []string{
+ ServiceQuotaExceededExceptionReasonConfigurationSetsPerAccount,
+ ServiceQuotaExceededExceptionReasonDailyDestinationCallLimit,
+ ServiceQuotaExceededExceptionReasonEventDestinationsPerConfigurationSet,
+ ServiceQuotaExceededExceptionReasonKeywordsPerPhoneNumber,
+ ServiceQuotaExceededExceptionReasonKeywordsPerPool,
+ ServiceQuotaExceededExceptionReasonMonthlySpendLimitReachedForText,
+ ServiceQuotaExceededExceptionReasonMonthlySpendLimitReachedForVoice,
+ ServiceQuotaExceededExceptionReasonOptOutListsPerAccount,
+ ServiceQuotaExceededExceptionReasonOriginationIdentitiesPerPool,
+ ServiceQuotaExceededExceptionReasonPhoneNumbersPerAccount,
+ ServiceQuotaExceededExceptionReasonPhoneNumbersPerRegistration,
+ ServiceQuotaExceededExceptionReasonPoolsPerAccount,
+ ServiceQuotaExceededExceptionReasonTagsPerResource,
+ }
+}
+
+const (
+ // SpendLimitNameTextMessageMonthlySpendLimit is a SpendLimitName enum value
+ SpendLimitNameTextMessageMonthlySpendLimit = "TEXT_MESSAGE_MONTHLY_SPEND_LIMIT"
+
+ // SpendLimitNameVoiceMessageMonthlySpendLimit is a SpendLimitName enum value
+ SpendLimitNameVoiceMessageMonthlySpendLimit = "VOICE_MESSAGE_MONTHLY_SPEND_LIMIT"
+)
+
+// SpendLimitName_Values returns all elements of the SpendLimitName enum
+func SpendLimitName_Values() []string {
+ return []string{
+ SpendLimitNameTextMessageMonthlySpendLimit,
+ SpendLimitNameVoiceMessageMonthlySpendLimit,
+ }
+}
+
+const (
+ // ValidationExceptionReasonUnknownOperation is a ValidationExceptionReason enum value
+ ValidationExceptionReasonUnknownOperation = "UNKNOWN_OPERATION"
+
+ // ValidationExceptionReasonCannotParse is a ValidationExceptionReason enum value
+ ValidationExceptionReasonCannotParse = "CANNOT_PARSE"
+
+ // ValidationExceptionReasonFieldValidationFailed is a ValidationExceptionReason enum value
+ ValidationExceptionReasonFieldValidationFailed = "FIELD_VALIDATION_FAILED"
+
+ // ValidationExceptionReasonOther is a ValidationExceptionReason enum value
+ ValidationExceptionReasonOther = "OTHER"
+
+ // ValidationExceptionReasonInvalidParameter is a ValidationExceptionReason enum value
+ ValidationExceptionReasonInvalidParameter = "INVALID_PARAMETER"
+
+ // ValidationExceptionReasonInvalidArn is a ValidationExceptionReason enum value
+ ValidationExceptionReasonInvalidArn = "INVALID_ARN"
+
+ // ValidationExceptionReasonInvalidIdentityForDestinationCountry is a ValidationExceptionReason enum value
+ ValidationExceptionReasonInvalidIdentityForDestinationCountry = "INVALID_IDENTITY_FOR_DESTINATION_COUNTRY"
+
+ // ValidationExceptionReasonDestinationCountryBlocked is a ValidationExceptionReason enum value
+ ValidationExceptionReasonDestinationCountryBlocked = "DESTINATION_COUNTRY_BLOCKED"
+
+ // ValidationExceptionReasonCannotAddOptedOutNumber is a ValidationExceptionReason enum value
+ ValidationExceptionReasonCannotAddOptedOutNumber = "CANNOT_ADD_OPTED_OUT_NUMBER"
+
+ // ValidationExceptionReasonCountryCodeMismatch is a ValidationExceptionReason enum value
+ ValidationExceptionReasonCountryCodeMismatch = "COUNTRY_CODE_MISMATCH"
+
+ // ValidationExceptionReasonInvalidFilterValues is a ValidationExceptionReason enum value
+ ValidationExceptionReasonInvalidFilterValues = "INVALID_FILTER_VALUES"
+
+ // ValidationExceptionReasonInvalidNextToken is a ValidationExceptionReason enum value
+ ValidationExceptionReasonInvalidNextToken = "INVALID_NEXT_TOKEN"
+
+ // ValidationExceptionReasonMissingParameter is a ValidationExceptionReason enum value
+ ValidationExceptionReasonMissingParameter = "MISSING_PARAMETER"
+
+ // ValidationExceptionReasonParametersCannotBeUsedTogether is a ValidationExceptionReason enum value
+ ValidationExceptionReasonParametersCannotBeUsedTogether = "PARAMETERS_CANNOT_BE_USED_TOGETHER"
+
+ // ValidationExceptionReasonPhoneNumberCannotBeOptedIn is a ValidationExceptionReason enum value
+ ValidationExceptionReasonPhoneNumberCannotBeOptedIn = "PHONE_NUMBER_CANNOT_BE_OPTED_IN"
+
+ // ValidationExceptionReasonPhoneNumberCannotBeReleased is a ValidationExceptionReason enum value
+ ValidationExceptionReasonPhoneNumberCannotBeReleased = "PHONE_NUMBER_CANNOT_BE_RELEASED"
+
+ // ValidationExceptionReasonPriceOverThreshold is a ValidationExceptionReason enum value
+ ValidationExceptionReasonPriceOverThreshold = "PRICE_OVER_THRESHOLD"
+
+ // ValidationExceptionReasonRequestedSpendLimitHigherThanServiceLimit is a ValidationExceptionReason enum value
+ ValidationExceptionReasonRequestedSpendLimitHigherThanServiceLimit = "REQUESTED_SPEND_LIMIT_HIGHER_THAN_SERVICE_LIMIT"
+
+ // ValidationExceptionReasonSenderIdNotRegistered is a ValidationExceptionReason enum value
+ ValidationExceptionReasonSenderIdNotRegistered = "SENDER_ID_NOT_REGISTERED"
+
+ // ValidationExceptionReasonSenderIdNotSupported is a ValidationExceptionReason enum value
+ ValidationExceptionReasonSenderIdNotSupported = "SENDER_ID_NOT_SUPPORTED"
+
+ // ValidationExceptionReasonTwoWayNotEnabled is a ValidationExceptionReason enum value
+ ValidationExceptionReasonTwoWayNotEnabled = "TWO_WAY_NOT_ENABLED"
+
+ // ValidationExceptionReasonTwoWayNotSupportedInCountry is a ValidationExceptionReason enum value
+ ValidationExceptionReasonTwoWayNotSupportedInCountry = "TWO_WAY_NOT_SUPPORTED_IN_COUNTRY"
+
+ // ValidationExceptionReasonTwoWayNotSupportedInRegion is a ValidationExceptionReason enum value
+ ValidationExceptionReasonTwoWayNotSupportedInRegion = "TWO_WAY_NOT_SUPPORTED_IN_REGION"
+
+ // ValidationExceptionReasonTwoWayTopicNotPresent is a ValidationExceptionReason enum value
+ ValidationExceptionReasonTwoWayTopicNotPresent = "TWO_WAY_TOPIC_NOT_PRESENT"
+)
+
+// ValidationExceptionReason_Values returns all elements of the ValidationExceptionReason enum
+func ValidationExceptionReason_Values() []string {
+ return []string{
+ ValidationExceptionReasonUnknownOperation,
+ ValidationExceptionReasonCannotParse,
+ ValidationExceptionReasonFieldValidationFailed,
+ ValidationExceptionReasonOther,
+ ValidationExceptionReasonInvalidParameter,
+ ValidationExceptionReasonInvalidArn,
+ ValidationExceptionReasonInvalidIdentityForDestinationCountry,
+ ValidationExceptionReasonDestinationCountryBlocked,
+ ValidationExceptionReasonCannotAddOptedOutNumber,
+ ValidationExceptionReasonCountryCodeMismatch,
+ ValidationExceptionReasonInvalidFilterValues,
+ ValidationExceptionReasonInvalidNextToken,
+ ValidationExceptionReasonMissingParameter,
+ ValidationExceptionReasonParametersCannotBeUsedTogether,
+ ValidationExceptionReasonPhoneNumberCannotBeOptedIn,
+ ValidationExceptionReasonPhoneNumberCannotBeReleased,
+ ValidationExceptionReasonPriceOverThreshold,
+ ValidationExceptionReasonRequestedSpendLimitHigherThanServiceLimit,
+ ValidationExceptionReasonSenderIdNotRegistered,
+ ValidationExceptionReasonSenderIdNotSupported,
+ ValidationExceptionReasonTwoWayNotEnabled,
+ ValidationExceptionReasonTwoWayNotSupportedInCountry,
+ ValidationExceptionReasonTwoWayNotSupportedInRegion,
+ ValidationExceptionReasonTwoWayTopicNotPresent,
+ }
+}
+
+const (
+ // VoiceIdAmy is a VoiceId enum value
+ VoiceIdAmy = "AMY"
+
+ // VoiceIdAstrid is a VoiceId enum value
+ VoiceIdAstrid = "ASTRID"
+
+ // VoiceIdBianca is a VoiceId enum value
+ VoiceIdBianca = "BIANCA"
+
+ // VoiceIdBrian is a VoiceId enum value
+ VoiceIdBrian = "BRIAN"
+
+ // VoiceIdCamila is a VoiceId enum value
+ VoiceIdCamila = "CAMILA"
+
+ // VoiceIdCarla is a VoiceId enum value
+ VoiceIdCarla = "CARLA"
+
+ // VoiceIdCarmen is a VoiceId enum value
+ VoiceIdCarmen = "CARMEN"
+
+ // VoiceIdCeline is a VoiceId enum value
+ VoiceIdCeline = "CELINE"
+
+ // VoiceIdChantal is a VoiceId enum value
+ VoiceIdChantal = "CHANTAL"
+
+ // VoiceIdConchita is a VoiceId enum value
+ VoiceIdConchita = "CONCHITA"
+
+ // VoiceIdCristiano is a VoiceId enum value
+ VoiceIdCristiano = "CRISTIANO"
+
+ // VoiceIdDora is a VoiceId enum value
+ VoiceIdDora = "DORA"
+
+ // VoiceIdEmma is a VoiceId enum value
+ VoiceIdEmma = "EMMA"
+
+ // VoiceIdEnrique is a VoiceId enum value
+ VoiceIdEnrique = "ENRIQUE"
+
+ // VoiceIdEwa is a VoiceId enum value
+ VoiceIdEwa = "EWA"
+
+ // VoiceIdFiliz is a VoiceId enum value
+ VoiceIdFiliz = "FILIZ"
+
+ // VoiceIdGeraint is a VoiceId enum value
+ VoiceIdGeraint = "GERAINT"
+
+ // VoiceIdGiorgio is a VoiceId enum value
+ VoiceIdGiorgio = "GIORGIO"
+
+ // VoiceIdGwyneth is a VoiceId enum value
+ VoiceIdGwyneth = "GWYNETH"
+
+ // VoiceIdHans is a VoiceId enum value
+ VoiceIdHans = "HANS"
+
+ // VoiceIdInes is a VoiceId enum value
+ VoiceIdInes = "INES"
+
+ // VoiceIdIvy is a VoiceId enum value
+ VoiceIdIvy = "IVY"
+
+ // VoiceIdJacek is a VoiceId enum value
+ VoiceIdJacek = "JACEK"
+
+ // VoiceIdJan is a VoiceId enum value
+ VoiceIdJan = "JAN"
+
+ // VoiceIdJoanna is a VoiceId enum value
+ VoiceIdJoanna = "JOANNA"
+
+ // VoiceIdJoey is a VoiceId enum value
+ VoiceIdJoey = "JOEY"
+
+ // VoiceIdJustin is a VoiceId enum value
+ VoiceIdJustin = "JUSTIN"
+
+ // VoiceIdKarl is a VoiceId enum value
+ VoiceIdKarl = "KARL"
+
+ // VoiceIdKendra is a VoiceId enum value
+ VoiceIdKendra = "KENDRA"
+
+ // VoiceIdKimberly is a VoiceId enum value
+ VoiceIdKimberly = "KIMBERLY"
+
+ // VoiceIdLea is a VoiceId enum value
+ VoiceIdLea = "LEA"
+
+ // VoiceIdLiv is a VoiceId enum value
+ VoiceIdLiv = "LIV"
+
+ // VoiceIdLotte is a VoiceId enum value
+ VoiceIdLotte = "LOTTE"
+
+ // VoiceIdLucia is a VoiceId enum value
+ VoiceIdLucia = "LUCIA"
+
+ // VoiceIdLupe is a VoiceId enum value
+ VoiceIdLupe = "LUPE"
+
+ // VoiceIdMads is a VoiceId enum value
+ VoiceIdMads = "MADS"
+
+ // VoiceIdMaja is a VoiceId enum value
+ VoiceIdMaja = "MAJA"
+
+ // VoiceIdMarlene is a VoiceId enum value
+ VoiceIdMarlene = "MARLENE"
+
+ // VoiceIdMathieu is a VoiceId enum value
+ VoiceIdMathieu = "MATHIEU"
+
+ // VoiceIdMatthew is a VoiceId enum value
+ VoiceIdMatthew = "MATTHEW"
+
+ // VoiceIdMaxim is a VoiceId enum value
+ VoiceIdMaxim = "MAXIM"
+
+ // VoiceIdMia is a VoiceId enum value
+ VoiceIdMia = "MIA"
+
+ // VoiceIdMiguel is a VoiceId enum value
+ VoiceIdMiguel = "MIGUEL"
+
+ // VoiceIdMizuki is a VoiceId enum value
+ VoiceIdMizuki = "MIZUKI"
+
+ // VoiceIdNaja is a VoiceId enum value
+ VoiceIdNaja = "NAJA"
+
+ // VoiceIdNicole is a VoiceId enum value
+ VoiceIdNicole = "NICOLE"
+
+ // VoiceIdPenelope is a VoiceId enum value
+ VoiceIdPenelope = "PENELOPE"
+
+ // VoiceIdRaveena is a VoiceId enum value
+ VoiceIdRaveena = "RAVEENA"
+
+ // VoiceIdRicardo is a VoiceId enum value
+ VoiceIdRicardo = "RICARDO"
+
+ // VoiceIdRuben is a VoiceId enum value
+ VoiceIdRuben = "RUBEN"
+
+ // VoiceIdRussell is a VoiceId enum value
+ VoiceIdRussell = "RUSSELL"
+
+ // VoiceIdSalli is a VoiceId enum value
+ VoiceIdSalli = "SALLI"
+
+ // VoiceIdSeoyeon is a VoiceId enum value
+ VoiceIdSeoyeon = "SEOYEON"
+
+ // VoiceIdTakumi is a VoiceId enum value
+ VoiceIdTakumi = "TAKUMI"
+
+ // VoiceIdTatyana is a VoiceId enum value
+ VoiceIdTatyana = "TATYANA"
+
+ // VoiceIdVicki is a VoiceId enum value
+ VoiceIdVicki = "VICKI"
+
+ // VoiceIdVitoria is a VoiceId enum value
+ VoiceIdVitoria = "VITORIA"
+
+ // VoiceIdZeina is a VoiceId enum value
+ VoiceIdZeina = "ZEINA"
+
+ // VoiceIdZhiyu is a VoiceId enum value
+ VoiceIdZhiyu = "ZHIYU"
+)
+
+// VoiceId_Values returns all elements of the VoiceId enum
+func VoiceId_Values() []string {
+ return []string{
+ VoiceIdAmy,
+ VoiceIdAstrid,
+ VoiceIdBianca,
+ VoiceIdBrian,
+ VoiceIdCamila,
+ VoiceIdCarla,
+ VoiceIdCarmen,
+ VoiceIdCeline,
+ VoiceIdChantal,
+ VoiceIdConchita,
+ VoiceIdCristiano,
+ VoiceIdDora,
+ VoiceIdEmma,
+ VoiceIdEnrique,
+ VoiceIdEwa,
+ VoiceIdFiliz,
+ VoiceIdGeraint,
+ VoiceIdGiorgio,
+ VoiceIdGwyneth,
+ VoiceIdHans,
+ VoiceIdInes,
+ VoiceIdIvy,
+ VoiceIdJacek,
+ VoiceIdJan,
+ VoiceIdJoanna,
+ VoiceIdJoey,
+ VoiceIdJustin,
+ VoiceIdKarl,
+ VoiceIdKendra,
+ VoiceIdKimberly,
+ VoiceIdLea,
+ VoiceIdLiv,
+ VoiceIdLotte,
+ VoiceIdLucia,
+ VoiceIdLupe,
+ VoiceIdMads,
+ VoiceIdMaja,
+ VoiceIdMarlene,
+ VoiceIdMathieu,
+ VoiceIdMatthew,
+ VoiceIdMaxim,
+ VoiceIdMia,
+ VoiceIdMiguel,
+ VoiceIdMizuki,
+ VoiceIdNaja,
+ VoiceIdNicole,
+ VoiceIdPenelope,
+ VoiceIdRaveena,
+ VoiceIdRicardo,
+ VoiceIdRuben,
+ VoiceIdRussell,
+ VoiceIdSalli,
+ VoiceIdSeoyeon,
+ VoiceIdTakumi,
+ VoiceIdTatyana,
+ VoiceIdVicki,
+ VoiceIdVitoria,
+ VoiceIdZeina,
+ VoiceIdZhiyu,
+ }
+}
+
+const (
+ // VoiceMessageBodyTextTypeText is a VoiceMessageBodyTextType enum value
+ VoiceMessageBodyTextTypeText = "TEXT"
+
+ // VoiceMessageBodyTextTypeSsml is a VoiceMessageBodyTextType enum value
+ VoiceMessageBodyTextTypeSsml = "SSML"
+)
+
+// VoiceMessageBodyTextType_Values returns all elements of the VoiceMessageBodyTextType enum
+func VoiceMessageBodyTextType_Values() []string {
+ return []string{
+ VoiceMessageBodyTextTypeText,
+ VoiceMessageBodyTextTypeSsml,
+ }
+}
diff --git a/service/pinpointsmsvoicev2/doc.go b/service/pinpointsmsvoicev2/doc.go
new file mode 100644
index 00000000000..cf5930222d6
--- /dev/null
+++ b/service/pinpointsmsvoicev2/doc.go
@@ -0,0 +1,45 @@
+// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
+
+// Package pinpointsmsvoicev2 provides the client and types for making API
+// requests to Amazon Pinpoint SMS Voice V2.
+//
+// Welcome to the Amazon Pinpoint SMS and Voice, version 2 API Reference. This
+// guide provides information about Amazon Pinpoint SMS and Voice, version 2
+// API resources, including supported HTTP methods, parameters, and schemas.
+//
+// Amazon Pinpoint is an Amazon Web Services service that you can use to engage
+// with your recipients across multiple messaging channels. The Amazon Pinpoint
+// SMS and Voice, version 2 API provides programmatic access to options that
+// are unique to the SMS and voice channels and supplements the resources provided
+// by the Amazon Pinpoint API.
+//
+// If you're new to Amazon Pinpoint, it's also helpful to review the Amazon
+// Pinpoint Developer Guide (https://docs.aws.amazon.com/pinpoint/latest/developerguide/welcome.html).
+// The Amazon Pinpoint Developer Guide provides tutorials, code samples, and
+// procedures that demonstrate how to use Amazon Pinpoint features programmatically
+// and how to integrate Amazon Pinpoint functionality into mobile apps and other
+// types of applications. The guide also provides key information, such as Amazon
+// Pinpoint integration with other Amazon Web Services services, and the quotas
+// that apply to use of the service.
+//
+// See https://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-v2-2022-03-31 for more information on this service.
+//
+// See pinpointsmsvoicev2 package documentation for more information.
+// https://docs.aws.amazon.com/sdk-for-go/api/service/pinpointsmsvoicev2/
+//
+// Using the Client
+//
+// To contact Amazon Pinpoint SMS Voice V2 with the SDK use the New function to create
+// a new service client. With that client you can make API requests to the service.
+// These clients are safe to use concurrently.
+//
+// See the SDK's documentation for more information on how to use the SDK.
+// https://docs.aws.amazon.com/sdk-for-go/api/
+//
+// See aws.Config documentation for more information on configuring SDK clients.
+// https://docs.aws.amazon.com/sdk-for-go/api/aws/#Config
+//
+// See the Amazon Pinpoint SMS Voice V2 client PinpointSMSVoiceV2 for more
+// information on creating client for this service.
+// https://docs.aws.amazon.com/sdk-for-go/api/service/pinpointsmsvoicev2/#New
+package pinpointsmsvoicev2
diff --git a/service/pinpointsmsvoicev2/errors.go b/service/pinpointsmsvoicev2/errors.go
new file mode 100644
index 00000000000..638d9491176
--- /dev/null
+++ b/service/pinpointsmsvoicev2/errors.go
@@ -0,0 +1,68 @@
+// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
+
+package pinpointsmsvoicev2
+
+import (
+ "github.com/aws/aws-sdk-go/private/protocol"
+)
+
+const (
+
+ // ErrCodeAccessDeniedException for service response error code
+ // "AccessDeniedException".
+ //
+ // The request was denied because you don't have sufficient permissions to access
+ // the resource.
+ ErrCodeAccessDeniedException = "AccessDeniedException"
+
+ // ErrCodeConflictException for service response error code
+ // "ConflictException".
+ //
+ // Your request has conflicting operations. This can occur if you're trying
+ // to perform more than one operation on the same resource at the same time
+ // or it could be that the requested action isn't valid for the current state
+ // or configuration of the resource.
+ ErrCodeConflictException = "ConflictException"
+
+ // ErrCodeInternalServerException for service response error code
+ // "InternalServerException".
+ //
+ // The API encountered an unexpected error and couldn't complete the request.
+ // You might be able to successfully issue the request again in the future.
+ ErrCodeInternalServerException = "InternalServerException"
+
+ // ErrCodeResourceNotFoundException for service response error code
+ // "ResourceNotFoundException".
+ //
+ // A requested resource couldn't be found.
+ ErrCodeResourceNotFoundException = "ResourceNotFoundException"
+
+ // ErrCodeServiceQuotaExceededException for service response error code
+ // "ServiceQuotaExceededException".
+ //
+ // The request would cause a service quota to be exceeded.
+ ErrCodeServiceQuotaExceededException = "ServiceQuotaExceededException"
+
+ // ErrCodeThrottlingException for service response error code
+ // "ThrottlingException".
+ //
+ // An error that occurred because too many requests were sent during a certain
+ // amount of time.
+ ErrCodeThrottlingException = "ThrottlingException"
+
+ // ErrCodeValidationException for service response error code
+ // "ValidationException".
+ //
+ // A validation exception for a field.
+ ErrCodeValidationException = "ValidationException"
+)
+
+var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
+ "AccessDeniedException": newErrorAccessDeniedException,
+ "ConflictException": newErrorConflictException,
+ "InternalServerException": newErrorInternalServerException,
+ "ResourceNotFoundException": newErrorResourceNotFoundException,
+ "ServiceQuotaExceededException": newErrorServiceQuotaExceededException,
+ "ThrottlingException": newErrorThrottlingException,
+ "ValidationException": newErrorValidationException,
+}
diff --git a/service/pinpointsmsvoicev2/pinpointsmsvoicev2iface/interface.go b/service/pinpointsmsvoicev2/pinpointsmsvoicev2iface/interface.go
new file mode 100644
index 00000000000..081a7f7ff10
--- /dev/null
+++ b/service/pinpointsmsvoicev2/pinpointsmsvoicev2iface/interface.go
@@ -0,0 +1,269 @@
+// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
+
+// Package pinpointsmsvoicev2iface provides an interface to enable mocking the Amazon Pinpoint SMS Voice V2 service client
+// for testing your code.
+//
+// It is important to note that this interface will have breaking changes
+// when the service model is updated and adds new API operations, paginators,
+// and waiters.
+package pinpointsmsvoicev2iface
+
+import (
+ "github.com/aws/aws-sdk-go/aws"
+ "github.com/aws/aws-sdk-go/aws/request"
+ "github.com/aws/aws-sdk-go/service/pinpointsmsvoicev2"
+)
+
+// PinpointSMSVoiceV2API provides an interface to enable mocking the
+// pinpointsmsvoicev2.PinpointSMSVoiceV2 service client's API operation,
+// paginators, and waiters. This make unit testing your code that calls out
+// to the SDK's service client's calls easier.
+//
+// The best way to use this interface is so the SDK's service client's calls
+// can be stubbed out for unit testing your code with the SDK without needing
+// to inject custom request handlers into the SDK's request pipeline.
+//
+// // myFunc uses an SDK service client to make a request to
+// // Amazon Pinpoint SMS Voice V2.
+// func myFunc(svc pinpointsmsvoicev2iface.PinpointSMSVoiceV2API) bool {
+// // Make svc.AssociateOriginationIdentity request
+// }
+//
+// func main() {
+// sess := session.New()
+// svc := pinpointsmsvoicev2.New(sess)
+//
+// myFunc(svc)
+// }
+//
+// In your _test.go file:
+//
+// // Define a mock struct to be used in your unit tests of myFunc.
+// type mockPinpointSMSVoiceV2Client struct {
+// pinpointsmsvoicev2iface.PinpointSMSVoiceV2API
+// }
+// func (m *mockPinpointSMSVoiceV2Client) AssociateOriginationIdentity(input *pinpointsmsvoicev2.AssociateOriginationIdentityInput) (*pinpointsmsvoicev2.AssociateOriginationIdentityOutput, error) {
+// // mock response/functionality
+// }
+//
+// func TestMyFunc(t *testing.T) {
+// // Setup Test
+// mockSvc := &mockPinpointSMSVoiceV2Client{}
+//
+// myfunc(mockSvc)
+//
+// // Verify myFunc's functionality
+// }
+//
+// It is important to note that this interface will have breaking changes
+// when the service model is updated and adds new API operations, paginators,
+// and waiters. Its suggested to use the pattern above for testing, or using
+// tooling to generate mocks to satisfy the interfaces.
+type PinpointSMSVoiceV2API interface {
+ AssociateOriginationIdentity(*pinpointsmsvoicev2.AssociateOriginationIdentityInput) (*pinpointsmsvoicev2.AssociateOriginationIdentityOutput, error)
+ AssociateOriginationIdentityWithContext(aws.Context, *pinpointsmsvoicev2.AssociateOriginationIdentityInput, ...request.Option) (*pinpointsmsvoicev2.AssociateOriginationIdentityOutput, error)
+ AssociateOriginationIdentityRequest(*pinpointsmsvoicev2.AssociateOriginationIdentityInput) (*request.Request, *pinpointsmsvoicev2.AssociateOriginationIdentityOutput)
+
+ CreateConfigurationSet(*pinpointsmsvoicev2.CreateConfigurationSetInput) (*pinpointsmsvoicev2.CreateConfigurationSetOutput, error)
+ CreateConfigurationSetWithContext(aws.Context, *pinpointsmsvoicev2.CreateConfigurationSetInput, ...request.Option) (*pinpointsmsvoicev2.CreateConfigurationSetOutput, error)
+ CreateConfigurationSetRequest(*pinpointsmsvoicev2.CreateConfigurationSetInput) (*request.Request, *pinpointsmsvoicev2.CreateConfigurationSetOutput)
+
+ CreateEventDestination(*pinpointsmsvoicev2.CreateEventDestinationInput) (*pinpointsmsvoicev2.CreateEventDestinationOutput, error)
+ CreateEventDestinationWithContext(aws.Context, *pinpointsmsvoicev2.CreateEventDestinationInput, ...request.Option) (*pinpointsmsvoicev2.CreateEventDestinationOutput, error)
+ CreateEventDestinationRequest(*pinpointsmsvoicev2.CreateEventDestinationInput) (*request.Request, *pinpointsmsvoicev2.CreateEventDestinationOutput)
+
+ CreateOptOutList(*pinpointsmsvoicev2.CreateOptOutListInput) (*pinpointsmsvoicev2.CreateOptOutListOutput, error)
+ CreateOptOutListWithContext(aws.Context, *pinpointsmsvoicev2.CreateOptOutListInput, ...request.Option) (*pinpointsmsvoicev2.CreateOptOutListOutput, error)
+ CreateOptOutListRequest(*pinpointsmsvoicev2.CreateOptOutListInput) (*request.Request, *pinpointsmsvoicev2.CreateOptOutListOutput)
+
+ CreatePool(*pinpointsmsvoicev2.CreatePoolInput) (*pinpointsmsvoicev2.CreatePoolOutput, error)
+ CreatePoolWithContext(aws.Context, *pinpointsmsvoicev2.CreatePoolInput, ...request.Option) (*pinpointsmsvoicev2.CreatePoolOutput, error)
+ CreatePoolRequest(*pinpointsmsvoicev2.CreatePoolInput) (*request.Request, *pinpointsmsvoicev2.CreatePoolOutput)
+
+ DeleteConfigurationSet(*pinpointsmsvoicev2.DeleteConfigurationSetInput) (*pinpointsmsvoicev2.DeleteConfigurationSetOutput, error)
+ DeleteConfigurationSetWithContext(aws.Context, *pinpointsmsvoicev2.DeleteConfigurationSetInput, ...request.Option) (*pinpointsmsvoicev2.DeleteConfigurationSetOutput, error)
+ DeleteConfigurationSetRequest(*pinpointsmsvoicev2.DeleteConfigurationSetInput) (*request.Request, *pinpointsmsvoicev2.DeleteConfigurationSetOutput)
+
+ DeleteDefaultMessageType(*pinpointsmsvoicev2.DeleteDefaultMessageTypeInput) (*pinpointsmsvoicev2.DeleteDefaultMessageTypeOutput, error)
+ DeleteDefaultMessageTypeWithContext(aws.Context, *pinpointsmsvoicev2.DeleteDefaultMessageTypeInput, ...request.Option) (*pinpointsmsvoicev2.DeleteDefaultMessageTypeOutput, error)
+ DeleteDefaultMessageTypeRequest(*pinpointsmsvoicev2.DeleteDefaultMessageTypeInput) (*request.Request, *pinpointsmsvoicev2.DeleteDefaultMessageTypeOutput)
+
+ DeleteDefaultSenderId(*pinpointsmsvoicev2.DeleteDefaultSenderIdInput) (*pinpointsmsvoicev2.DeleteDefaultSenderIdOutput, error)
+ DeleteDefaultSenderIdWithContext(aws.Context, *pinpointsmsvoicev2.DeleteDefaultSenderIdInput, ...request.Option) (*pinpointsmsvoicev2.DeleteDefaultSenderIdOutput, error)
+ DeleteDefaultSenderIdRequest(*pinpointsmsvoicev2.DeleteDefaultSenderIdInput) (*request.Request, *pinpointsmsvoicev2.DeleteDefaultSenderIdOutput)
+
+ DeleteEventDestination(*pinpointsmsvoicev2.DeleteEventDestinationInput) (*pinpointsmsvoicev2.DeleteEventDestinationOutput, error)
+ DeleteEventDestinationWithContext(aws.Context, *pinpointsmsvoicev2.DeleteEventDestinationInput, ...request.Option) (*pinpointsmsvoicev2.DeleteEventDestinationOutput, error)
+ DeleteEventDestinationRequest(*pinpointsmsvoicev2.DeleteEventDestinationInput) (*request.Request, *pinpointsmsvoicev2.DeleteEventDestinationOutput)
+
+ DeleteKeyword(*pinpointsmsvoicev2.DeleteKeywordInput) (*pinpointsmsvoicev2.DeleteKeywordOutput, error)
+ DeleteKeywordWithContext(aws.Context, *pinpointsmsvoicev2.DeleteKeywordInput, ...request.Option) (*pinpointsmsvoicev2.DeleteKeywordOutput, error)
+ DeleteKeywordRequest(*pinpointsmsvoicev2.DeleteKeywordInput) (*request.Request, *pinpointsmsvoicev2.DeleteKeywordOutput)
+
+ DeleteOptOutList(*pinpointsmsvoicev2.DeleteOptOutListInput) (*pinpointsmsvoicev2.DeleteOptOutListOutput, error)
+ DeleteOptOutListWithContext(aws.Context, *pinpointsmsvoicev2.DeleteOptOutListInput, ...request.Option) (*pinpointsmsvoicev2.DeleteOptOutListOutput, error)
+ DeleteOptOutListRequest(*pinpointsmsvoicev2.DeleteOptOutListInput) (*request.Request, *pinpointsmsvoicev2.DeleteOptOutListOutput)
+
+ DeleteOptedOutNumber(*pinpointsmsvoicev2.DeleteOptedOutNumberInput) (*pinpointsmsvoicev2.DeleteOptedOutNumberOutput, error)
+ DeleteOptedOutNumberWithContext(aws.Context, *pinpointsmsvoicev2.DeleteOptedOutNumberInput, ...request.Option) (*pinpointsmsvoicev2.DeleteOptedOutNumberOutput, error)
+ DeleteOptedOutNumberRequest(*pinpointsmsvoicev2.DeleteOptedOutNumberInput) (*request.Request, *pinpointsmsvoicev2.DeleteOptedOutNumberOutput)
+
+ DeletePool(*pinpointsmsvoicev2.DeletePoolInput) (*pinpointsmsvoicev2.DeletePoolOutput, error)
+ DeletePoolWithContext(aws.Context, *pinpointsmsvoicev2.DeletePoolInput, ...request.Option) (*pinpointsmsvoicev2.DeletePoolOutput, error)
+ DeletePoolRequest(*pinpointsmsvoicev2.DeletePoolInput) (*request.Request, *pinpointsmsvoicev2.DeletePoolOutput)
+
+ DeleteTextMessageSpendLimitOverride(*pinpointsmsvoicev2.DeleteTextMessageSpendLimitOverrideInput) (*pinpointsmsvoicev2.DeleteTextMessageSpendLimitOverrideOutput, error)
+ DeleteTextMessageSpendLimitOverrideWithContext(aws.Context, *pinpointsmsvoicev2.DeleteTextMessageSpendLimitOverrideInput, ...request.Option) (*pinpointsmsvoicev2.DeleteTextMessageSpendLimitOverrideOutput, error)
+ DeleteTextMessageSpendLimitOverrideRequest(*pinpointsmsvoicev2.DeleteTextMessageSpendLimitOverrideInput) (*request.Request, *pinpointsmsvoicev2.DeleteTextMessageSpendLimitOverrideOutput)
+
+ DeleteVoiceMessageSpendLimitOverride(*pinpointsmsvoicev2.DeleteVoiceMessageSpendLimitOverrideInput) (*pinpointsmsvoicev2.DeleteVoiceMessageSpendLimitOverrideOutput, error)
+ DeleteVoiceMessageSpendLimitOverrideWithContext(aws.Context, *pinpointsmsvoicev2.DeleteVoiceMessageSpendLimitOverrideInput, ...request.Option) (*pinpointsmsvoicev2.DeleteVoiceMessageSpendLimitOverrideOutput, error)
+ DeleteVoiceMessageSpendLimitOverrideRequest(*pinpointsmsvoicev2.DeleteVoiceMessageSpendLimitOverrideInput) (*request.Request, *pinpointsmsvoicev2.DeleteVoiceMessageSpendLimitOverrideOutput)
+
+ DescribeAccountAttributes(*pinpointsmsvoicev2.DescribeAccountAttributesInput) (*pinpointsmsvoicev2.DescribeAccountAttributesOutput, error)
+ DescribeAccountAttributesWithContext(aws.Context, *pinpointsmsvoicev2.DescribeAccountAttributesInput, ...request.Option) (*pinpointsmsvoicev2.DescribeAccountAttributesOutput, error)
+ DescribeAccountAttributesRequest(*pinpointsmsvoicev2.DescribeAccountAttributesInput) (*request.Request, *pinpointsmsvoicev2.DescribeAccountAttributesOutput)
+
+ DescribeAccountAttributesPages(*pinpointsmsvoicev2.DescribeAccountAttributesInput, func(*pinpointsmsvoicev2.DescribeAccountAttributesOutput, bool) bool) error
+ DescribeAccountAttributesPagesWithContext(aws.Context, *pinpointsmsvoicev2.DescribeAccountAttributesInput, func(*pinpointsmsvoicev2.DescribeAccountAttributesOutput, bool) bool, ...request.Option) error
+
+ DescribeAccountLimits(*pinpointsmsvoicev2.DescribeAccountLimitsInput) (*pinpointsmsvoicev2.DescribeAccountLimitsOutput, error)
+ DescribeAccountLimitsWithContext(aws.Context, *pinpointsmsvoicev2.DescribeAccountLimitsInput, ...request.Option) (*pinpointsmsvoicev2.DescribeAccountLimitsOutput, error)
+ DescribeAccountLimitsRequest(*pinpointsmsvoicev2.DescribeAccountLimitsInput) (*request.Request, *pinpointsmsvoicev2.DescribeAccountLimitsOutput)
+
+ DescribeAccountLimitsPages(*pinpointsmsvoicev2.DescribeAccountLimitsInput, func(*pinpointsmsvoicev2.DescribeAccountLimitsOutput, bool) bool) error
+ DescribeAccountLimitsPagesWithContext(aws.Context, *pinpointsmsvoicev2.DescribeAccountLimitsInput, func(*pinpointsmsvoicev2.DescribeAccountLimitsOutput, bool) bool, ...request.Option) error
+
+ DescribeConfigurationSets(*pinpointsmsvoicev2.DescribeConfigurationSetsInput) (*pinpointsmsvoicev2.DescribeConfigurationSetsOutput, error)
+ DescribeConfigurationSetsWithContext(aws.Context, *pinpointsmsvoicev2.DescribeConfigurationSetsInput, ...request.Option) (*pinpointsmsvoicev2.DescribeConfigurationSetsOutput, error)
+ DescribeConfigurationSetsRequest(*pinpointsmsvoicev2.DescribeConfigurationSetsInput) (*request.Request, *pinpointsmsvoicev2.DescribeConfigurationSetsOutput)
+
+ DescribeConfigurationSetsPages(*pinpointsmsvoicev2.DescribeConfigurationSetsInput, func(*pinpointsmsvoicev2.DescribeConfigurationSetsOutput, bool) bool) error
+ DescribeConfigurationSetsPagesWithContext(aws.Context, *pinpointsmsvoicev2.DescribeConfigurationSetsInput, func(*pinpointsmsvoicev2.DescribeConfigurationSetsOutput, bool) bool, ...request.Option) error
+
+ DescribeKeywords(*pinpointsmsvoicev2.DescribeKeywordsInput) (*pinpointsmsvoicev2.DescribeKeywordsOutput, error)
+ DescribeKeywordsWithContext(aws.Context, *pinpointsmsvoicev2.DescribeKeywordsInput, ...request.Option) (*pinpointsmsvoicev2.DescribeKeywordsOutput, error)
+ DescribeKeywordsRequest(*pinpointsmsvoicev2.DescribeKeywordsInput) (*request.Request, *pinpointsmsvoicev2.DescribeKeywordsOutput)
+
+ DescribeKeywordsPages(*pinpointsmsvoicev2.DescribeKeywordsInput, func(*pinpointsmsvoicev2.DescribeKeywordsOutput, bool) bool) error
+ DescribeKeywordsPagesWithContext(aws.Context, *pinpointsmsvoicev2.DescribeKeywordsInput, func(*pinpointsmsvoicev2.DescribeKeywordsOutput, bool) bool, ...request.Option) error
+
+ DescribeOptOutLists(*pinpointsmsvoicev2.DescribeOptOutListsInput) (*pinpointsmsvoicev2.DescribeOptOutListsOutput, error)
+ DescribeOptOutListsWithContext(aws.Context, *pinpointsmsvoicev2.DescribeOptOutListsInput, ...request.Option) (*pinpointsmsvoicev2.DescribeOptOutListsOutput, error)
+ DescribeOptOutListsRequest(*pinpointsmsvoicev2.DescribeOptOutListsInput) (*request.Request, *pinpointsmsvoicev2.DescribeOptOutListsOutput)
+
+ DescribeOptOutListsPages(*pinpointsmsvoicev2.DescribeOptOutListsInput, func(*pinpointsmsvoicev2.DescribeOptOutListsOutput, bool) bool) error
+ DescribeOptOutListsPagesWithContext(aws.Context, *pinpointsmsvoicev2.DescribeOptOutListsInput, func(*pinpointsmsvoicev2.DescribeOptOutListsOutput, bool) bool, ...request.Option) error
+
+ DescribeOptedOutNumbers(*pinpointsmsvoicev2.DescribeOptedOutNumbersInput) (*pinpointsmsvoicev2.DescribeOptedOutNumbersOutput, error)
+ DescribeOptedOutNumbersWithContext(aws.Context, *pinpointsmsvoicev2.DescribeOptedOutNumbersInput, ...request.Option) (*pinpointsmsvoicev2.DescribeOptedOutNumbersOutput, error)
+ DescribeOptedOutNumbersRequest(*pinpointsmsvoicev2.DescribeOptedOutNumbersInput) (*request.Request, *pinpointsmsvoicev2.DescribeOptedOutNumbersOutput)
+
+ DescribeOptedOutNumbersPages(*pinpointsmsvoicev2.DescribeOptedOutNumbersInput, func(*pinpointsmsvoicev2.DescribeOptedOutNumbersOutput, bool) bool) error
+ DescribeOptedOutNumbersPagesWithContext(aws.Context, *pinpointsmsvoicev2.DescribeOptedOutNumbersInput, func(*pinpointsmsvoicev2.DescribeOptedOutNumbersOutput, bool) bool, ...request.Option) error
+
+ DescribePhoneNumbers(*pinpointsmsvoicev2.DescribePhoneNumbersInput) (*pinpointsmsvoicev2.DescribePhoneNumbersOutput, error)
+ DescribePhoneNumbersWithContext(aws.Context, *pinpointsmsvoicev2.DescribePhoneNumbersInput, ...request.Option) (*pinpointsmsvoicev2.DescribePhoneNumbersOutput, error)
+ DescribePhoneNumbersRequest(*pinpointsmsvoicev2.DescribePhoneNumbersInput) (*request.Request, *pinpointsmsvoicev2.DescribePhoneNumbersOutput)
+
+ DescribePhoneNumbersPages(*pinpointsmsvoicev2.DescribePhoneNumbersInput, func(*pinpointsmsvoicev2.DescribePhoneNumbersOutput, bool) bool) error
+ DescribePhoneNumbersPagesWithContext(aws.Context, *pinpointsmsvoicev2.DescribePhoneNumbersInput, func(*pinpointsmsvoicev2.DescribePhoneNumbersOutput, bool) bool, ...request.Option) error
+
+ DescribePools(*pinpointsmsvoicev2.DescribePoolsInput) (*pinpointsmsvoicev2.DescribePoolsOutput, error)
+ DescribePoolsWithContext(aws.Context, *pinpointsmsvoicev2.DescribePoolsInput, ...request.Option) (*pinpointsmsvoicev2.DescribePoolsOutput, error)
+ DescribePoolsRequest(*pinpointsmsvoicev2.DescribePoolsInput) (*request.Request, *pinpointsmsvoicev2.DescribePoolsOutput)
+
+ DescribePoolsPages(*pinpointsmsvoicev2.DescribePoolsInput, func(*pinpointsmsvoicev2.DescribePoolsOutput, bool) bool) error
+ DescribePoolsPagesWithContext(aws.Context, *pinpointsmsvoicev2.DescribePoolsInput, func(*pinpointsmsvoicev2.DescribePoolsOutput, bool) bool, ...request.Option) error
+
+ DescribeSenderIds(*pinpointsmsvoicev2.DescribeSenderIdsInput) (*pinpointsmsvoicev2.DescribeSenderIdsOutput, error)
+ DescribeSenderIdsWithContext(aws.Context, *pinpointsmsvoicev2.DescribeSenderIdsInput, ...request.Option) (*pinpointsmsvoicev2.DescribeSenderIdsOutput, error)
+ DescribeSenderIdsRequest(*pinpointsmsvoicev2.DescribeSenderIdsInput) (*request.Request, *pinpointsmsvoicev2.DescribeSenderIdsOutput)
+
+ DescribeSenderIdsPages(*pinpointsmsvoicev2.DescribeSenderIdsInput, func(*pinpointsmsvoicev2.DescribeSenderIdsOutput, bool) bool) error
+ DescribeSenderIdsPagesWithContext(aws.Context, *pinpointsmsvoicev2.DescribeSenderIdsInput, func(*pinpointsmsvoicev2.DescribeSenderIdsOutput, bool) bool, ...request.Option) error
+
+ DescribeSpendLimits(*pinpointsmsvoicev2.DescribeSpendLimitsInput) (*pinpointsmsvoicev2.DescribeSpendLimitsOutput, error)
+ DescribeSpendLimitsWithContext(aws.Context, *pinpointsmsvoicev2.DescribeSpendLimitsInput, ...request.Option) (*pinpointsmsvoicev2.DescribeSpendLimitsOutput, error)
+ DescribeSpendLimitsRequest(*pinpointsmsvoicev2.DescribeSpendLimitsInput) (*request.Request, *pinpointsmsvoicev2.DescribeSpendLimitsOutput)
+
+ DescribeSpendLimitsPages(*pinpointsmsvoicev2.DescribeSpendLimitsInput, func(*pinpointsmsvoicev2.DescribeSpendLimitsOutput, bool) bool) error
+ DescribeSpendLimitsPagesWithContext(aws.Context, *pinpointsmsvoicev2.DescribeSpendLimitsInput, func(*pinpointsmsvoicev2.DescribeSpendLimitsOutput, bool) bool, ...request.Option) error
+
+ DisassociateOriginationIdentity(*pinpointsmsvoicev2.DisassociateOriginationIdentityInput) (*pinpointsmsvoicev2.DisassociateOriginationIdentityOutput, error)
+ DisassociateOriginationIdentityWithContext(aws.Context, *pinpointsmsvoicev2.DisassociateOriginationIdentityInput, ...request.Option) (*pinpointsmsvoicev2.DisassociateOriginationIdentityOutput, error)
+ DisassociateOriginationIdentityRequest(*pinpointsmsvoicev2.DisassociateOriginationIdentityInput) (*request.Request, *pinpointsmsvoicev2.DisassociateOriginationIdentityOutput)
+
+ ListPoolOriginationIdentities(*pinpointsmsvoicev2.ListPoolOriginationIdentitiesInput) (*pinpointsmsvoicev2.ListPoolOriginationIdentitiesOutput, error)
+ ListPoolOriginationIdentitiesWithContext(aws.Context, *pinpointsmsvoicev2.ListPoolOriginationIdentitiesInput, ...request.Option) (*pinpointsmsvoicev2.ListPoolOriginationIdentitiesOutput, error)
+ ListPoolOriginationIdentitiesRequest(*pinpointsmsvoicev2.ListPoolOriginationIdentitiesInput) (*request.Request, *pinpointsmsvoicev2.ListPoolOriginationIdentitiesOutput)
+
+ ListPoolOriginationIdentitiesPages(*pinpointsmsvoicev2.ListPoolOriginationIdentitiesInput, func(*pinpointsmsvoicev2.ListPoolOriginationIdentitiesOutput, bool) bool) error
+ ListPoolOriginationIdentitiesPagesWithContext(aws.Context, *pinpointsmsvoicev2.ListPoolOriginationIdentitiesInput, func(*pinpointsmsvoicev2.ListPoolOriginationIdentitiesOutput, bool) bool, ...request.Option) error
+
+ ListTagsForResource(*pinpointsmsvoicev2.ListTagsForResourceInput) (*pinpointsmsvoicev2.ListTagsForResourceOutput, error)
+ ListTagsForResourceWithContext(aws.Context, *pinpointsmsvoicev2.ListTagsForResourceInput, ...request.Option) (*pinpointsmsvoicev2.ListTagsForResourceOutput, error)
+ ListTagsForResourceRequest(*pinpointsmsvoicev2.ListTagsForResourceInput) (*request.Request, *pinpointsmsvoicev2.ListTagsForResourceOutput)
+
+ PutKeyword(*pinpointsmsvoicev2.PutKeywordInput) (*pinpointsmsvoicev2.PutKeywordOutput, error)
+ PutKeywordWithContext(aws.Context, *pinpointsmsvoicev2.PutKeywordInput, ...request.Option) (*pinpointsmsvoicev2.PutKeywordOutput, error)
+ PutKeywordRequest(*pinpointsmsvoicev2.PutKeywordInput) (*request.Request, *pinpointsmsvoicev2.PutKeywordOutput)
+
+ PutOptedOutNumber(*pinpointsmsvoicev2.PutOptedOutNumberInput) (*pinpointsmsvoicev2.PutOptedOutNumberOutput, error)
+ PutOptedOutNumberWithContext(aws.Context, *pinpointsmsvoicev2.PutOptedOutNumberInput, ...request.Option) (*pinpointsmsvoicev2.PutOptedOutNumberOutput, error)
+ PutOptedOutNumberRequest(*pinpointsmsvoicev2.PutOptedOutNumberInput) (*request.Request, *pinpointsmsvoicev2.PutOptedOutNumberOutput)
+
+ ReleasePhoneNumber(*pinpointsmsvoicev2.ReleasePhoneNumberInput) (*pinpointsmsvoicev2.ReleasePhoneNumberOutput, error)
+ ReleasePhoneNumberWithContext(aws.Context, *pinpointsmsvoicev2.ReleasePhoneNumberInput, ...request.Option) (*pinpointsmsvoicev2.ReleasePhoneNumberOutput, error)
+ ReleasePhoneNumberRequest(*pinpointsmsvoicev2.ReleasePhoneNumberInput) (*request.Request, *pinpointsmsvoicev2.ReleasePhoneNumberOutput)
+
+ RequestPhoneNumber(*pinpointsmsvoicev2.RequestPhoneNumberInput) (*pinpointsmsvoicev2.RequestPhoneNumberOutput, error)
+ RequestPhoneNumberWithContext(aws.Context, *pinpointsmsvoicev2.RequestPhoneNumberInput, ...request.Option) (*pinpointsmsvoicev2.RequestPhoneNumberOutput, error)
+ RequestPhoneNumberRequest(*pinpointsmsvoicev2.RequestPhoneNumberInput) (*request.Request, *pinpointsmsvoicev2.RequestPhoneNumberOutput)
+
+ SendTextMessage(*pinpointsmsvoicev2.SendTextMessageInput) (*pinpointsmsvoicev2.SendTextMessageOutput, error)
+ SendTextMessageWithContext(aws.Context, *pinpointsmsvoicev2.SendTextMessageInput, ...request.Option) (*pinpointsmsvoicev2.SendTextMessageOutput, error)
+ SendTextMessageRequest(*pinpointsmsvoicev2.SendTextMessageInput) (*request.Request, *pinpointsmsvoicev2.SendTextMessageOutput)
+
+ SendVoiceMessage(*pinpointsmsvoicev2.SendVoiceMessageInput) (*pinpointsmsvoicev2.SendVoiceMessageOutput, error)
+ SendVoiceMessageWithContext(aws.Context, *pinpointsmsvoicev2.SendVoiceMessageInput, ...request.Option) (*pinpointsmsvoicev2.SendVoiceMessageOutput, error)
+ SendVoiceMessageRequest(*pinpointsmsvoicev2.SendVoiceMessageInput) (*request.Request, *pinpointsmsvoicev2.SendVoiceMessageOutput)
+
+ SetDefaultMessageType(*pinpointsmsvoicev2.SetDefaultMessageTypeInput) (*pinpointsmsvoicev2.SetDefaultMessageTypeOutput, error)
+ SetDefaultMessageTypeWithContext(aws.Context, *pinpointsmsvoicev2.SetDefaultMessageTypeInput, ...request.Option) (*pinpointsmsvoicev2.SetDefaultMessageTypeOutput, error)
+ SetDefaultMessageTypeRequest(*pinpointsmsvoicev2.SetDefaultMessageTypeInput) (*request.Request, *pinpointsmsvoicev2.SetDefaultMessageTypeOutput)
+
+ SetDefaultSenderId(*pinpointsmsvoicev2.SetDefaultSenderIdInput) (*pinpointsmsvoicev2.SetDefaultSenderIdOutput, error)
+ SetDefaultSenderIdWithContext(aws.Context, *pinpointsmsvoicev2.SetDefaultSenderIdInput, ...request.Option) (*pinpointsmsvoicev2.SetDefaultSenderIdOutput, error)
+ SetDefaultSenderIdRequest(*pinpointsmsvoicev2.SetDefaultSenderIdInput) (*request.Request, *pinpointsmsvoicev2.SetDefaultSenderIdOutput)
+
+ SetTextMessageSpendLimitOverride(*pinpointsmsvoicev2.SetTextMessageSpendLimitOverrideInput) (*pinpointsmsvoicev2.SetTextMessageSpendLimitOverrideOutput, error)
+ SetTextMessageSpendLimitOverrideWithContext(aws.Context, *pinpointsmsvoicev2.SetTextMessageSpendLimitOverrideInput, ...request.Option) (*pinpointsmsvoicev2.SetTextMessageSpendLimitOverrideOutput, error)
+ SetTextMessageSpendLimitOverrideRequest(*pinpointsmsvoicev2.SetTextMessageSpendLimitOverrideInput) (*request.Request, *pinpointsmsvoicev2.SetTextMessageSpendLimitOverrideOutput)
+
+ SetVoiceMessageSpendLimitOverride(*pinpointsmsvoicev2.SetVoiceMessageSpendLimitOverrideInput) (*pinpointsmsvoicev2.SetVoiceMessageSpendLimitOverrideOutput, error)
+ SetVoiceMessageSpendLimitOverrideWithContext(aws.Context, *pinpointsmsvoicev2.SetVoiceMessageSpendLimitOverrideInput, ...request.Option) (*pinpointsmsvoicev2.SetVoiceMessageSpendLimitOverrideOutput, error)
+ SetVoiceMessageSpendLimitOverrideRequest(*pinpointsmsvoicev2.SetVoiceMessageSpendLimitOverrideInput) (*request.Request, *pinpointsmsvoicev2.SetVoiceMessageSpendLimitOverrideOutput)
+
+ TagResource(*pinpointsmsvoicev2.TagResourceInput) (*pinpointsmsvoicev2.TagResourceOutput, error)
+ TagResourceWithContext(aws.Context, *pinpointsmsvoicev2.TagResourceInput, ...request.Option) (*pinpointsmsvoicev2.TagResourceOutput, error)
+ TagResourceRequest(*pinpointsmsvoicev2.TagResourceInput) (*request.Request, *pinpointsmsvoicev2.TagResourceOutput)
+
+ UntagResource(*pinpointsmsvoicev2.UntagResourceInput) (*pinpointsmsvoicev2.UntagResourceOutput, error)
+ UntagResourceWithContext(aws.Context, *pinpointsmsvoicev2.UntagResourceInput, ...request.Option) (*pinpointsmsvoicev2.UntagResourceOutput, error)
+ UntagResourceRequest(*pinpointsmsvoicev2.UntagResourceInput) (*request.Request, *pinpointsmsvoicev2.UntagResourceOutput)
+
+ UpdateEventDestination(*pinpointsmsvoicev2.UpdateEventDestinationInput) (*pinpointsmsvoicev2.UpdateEventDestinationOutput, error)
+ UpdateEventDestinationWithContext(aws.Context, *pinpointsmsvoicev2.UpdateEventDestinationInput, ...request.Option) (*pinpointsmsvoicev2.UpdateEventDestinationOutput, error)
+ UpdateEventDestinationRequest(*pinpointsmsvoicev2.UpdateEventDestinationInput) (*request.Request, *pinpointsmsvoicev2.UpdateEventDestinationOutput)
+
+ UpdatePhoneNumber(*pinpointsmsvoicev2.UpdatePhoneNumberInput) (*pinpointsmsvoicev2.UpdatePhoneNumberOutput, error)
+ UpdatePhoneNumberWithContext(aws.Context, *pinpointsmsvoicev2.UpdatePhoneNumberInput, ...request.Option) (*pinpointsmsvoicev2.UpdatePhoneNumberOutput, error)
+ UpdatePhoneNumberRequest(*pinpointsmsvoicev2.UpdatePhoneNumberInput) (*request.Request, *pinpointsmsvoicev2.UpdatePhoneNumberOutput)
+
+ UpdatePool(*pinpointsmsvoicev2.UpdatePoolInput) (*pinpointsmsvoicev2.UpdatePoolOutput, error)
+ UpdatePoolWithContext(aws.Context, *pinpointsmsvoicev2.UpdatePoolInput, ...request.Option) (*pinpointsmsvoicev2.UpdatePoolOutput, error)
+ UpdatePoolRequest(*pinpointsmsvoicev2.UpdatePoolInput) (*request.Request, *pinpointsmsvoicev2.UpdatePoolOutput)
+}
+
+var _ PinpointSMSVoiceV2API = (*pinpointsmsvoicev2.PinpointSMSVoiceV2)(nil)
diff --git a/service/pinpointsmsvoicev2/service.go b/service/pinpointsmsvoicev2/service.go
new file mode 100644
index 00000000000..7e1c24ee8d9
--- /dev/null
+++ b/service/pinpointsmsvoicev2/service.go
@@ -0,0 +1,107 @@
+// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
+
+package pinpointsmsvoicev2
+
+import (
+ "github.com/aws/aws-sdk-go/aws"
+ "github.com/aws/aws-sdk-go/aws/client"
+ "github.com/aws/aws-sdk-go/aws/client/metadata"
+ "github.com/aws/aws-sdk-go/aws/request"
+ "github.com/aws/aws-sdk-go/aws/signer/v4"
+ "github.com/aws/aws-sdk-go/private/protocol"
+ "github.com/aws/aws-sdk-go/private/protocol/jsonrpc"
+)
+
+// PinpointSMSVoiceV2 provides the API operation methods for making requests to
+// Amazon Pinpoint SMS Voice V2. See this package's package overview docs
+// for details on the service.
+//
+// PinpointSMSVoiceV2 methods are safe to use concurrently. It is not safe to
+// modify mutate any of the struct's properties though.
+type PinpointSMSVoiceV2 struct {
+ *client.Client
+}
+
+// Used for custom client initialization logic
+var initClient func(*client.Client)
+
+// Used for custom request initialization logic
+var initRequest func(*request.Request)
+
+// Service information constants
+const (
+ ServiceName = "Pinpoint SMS Voice V2" // Name of service.
+ EndpointsID = "sms-voice" // ID to lookup a service endpoint with.
+ ServiceID = "Pinpoint SMS Voice V2" // ServiceID is a unique identifier of a specific service.
+)
+
+// New creates a new instance of the PinpointSMSVoiceV2 client with a session.
+// If additional configuration is needed for the client instance use the optional
+// aws.Config parameter to add your extra config.
+//
+// Example:
+// mySession := session.Must(session.NewSession())
+//
+// // Create a PinpointSMSVoiceV2 client from just a session.
+// svc := pinpointsmsvoicev2.New(mySession)
+//
+// // Create a PinpointSMSVoiceV2 client with additional configuration
+// svc := pinpointsmsvoicev2.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
+func New(p client.ConfigProvider, cfgs ...*aws.Config) *PinpointSMSVoiceV2 {
+ c := p.ClientConfig(EndpointsID, cfgs...)
+ if c.SigningNameDerived || len(c.SigningName) == 0 {
+ c.SigningName = "sms-voice"
+ }
+ return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion)
+}
+
+// newClient creates, initializes and returns a new service client instance.
+func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName, resolvedRegion string) *PinpointSMSVoiceV2 {
+ svc := &PinpointSMSVoiceV2{
+ Client: client.New(
+ cfg,
+ metadata.ClientInfo{
+ ServiceName: ServiceName,
+ ServiceID: ServiceID,
+ SigningName: signingName,
+ SigningRegion: signingRegion,
+ PartitionID: partitionID,
+ Endpoint: endpoint,
+ APIVersion: "2022-03-31",
+ ResolvedRegion: resolvedRegion,
+ JSONVersion: "1.0",
+ TargetPrefix: "PinpointSMSVoiceV2",
+ },
+ handlers,
+ ),
+ }
+
+ // Handlers
+ svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
+ svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler)
+ svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler)
+ svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler)
+ svc.Handlers.UnmarshalError.PushBackNamed(
+ protocol.NewUnmarshalErrorHandler(jsonrpc.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(),
+ )
+
+ // Run custom client initialization if present
+ if initClient != nil {
+ initClient(svc.Client)
+ }
+
+ return svc
+}
+
+// newRequest creates a new request for a PinpointSMSVoiceV2 operation and runs any
+// custom request initialization.
+func (c *PinpointSMSVoiceV2) newRequest(op *request.Operation, params, data interface{}) *request.Request {
+ req := c.NewRequest(op, params, data)
+
+ // Run custom request initialization if present
+ if initRequest != nil {
+ initRequest(req)
+ }
+
+ return req
+}
diff --git a/service/route53recoverycluster/api.go b/service/route53recoverycluster/api.go
index c1db7624d29..b2ed090aa67 100644
--- a/service/route53recoverycluster/api.go
+++ b/service/route53recoverycluster/api.go
@@ -57,18 +57,19 @@ func (c *Route53RecoveryCluster) GetRoutingControlStateRequest(input *GetRouting
// GetRoutingControlState API operation for Route53 Recovery Cluster.
//
// Get the state for a routing control. A routing control is a simple on/off
-// switch that you can use to route traffic to cells. When the state is On,
-// traffic flows to a cell. When it's Off, traffic does not flow.
+// switch that you can use to route traffic to cells. When a routing control
+// state is On, traffic flows to a cell. When the state is Off, traffic does
+// not flow.
//
-// Before you can create a routing control, you must first create a cluster
-// to host the control in a control panel. For more information, see Create
-// routing control structures (https://docs.aws.amazon.com/r53recovery/latest/dg/routing-control.create.html)
-// in the Amazon Route 53 Application Recovery Controller Developer Guide. Then
-// you access one of the endpoints for the cluster to get or update the routing
-// control state to redirect traffic.
+// Before you can create a routing control, you must first create a cluster,
+// and then host the control in a control panel on the cluster. For more information,
+// see Create routing control structures (https://docs.aws.amazon.com/r53recovery/latest/dg/routing-control.create.html)
+// in the Amazon Route 53 Application Recovery Controller Developer Guide. You
+// access one of the endpoints for the cluster to get or update the routing
+// control state to redirect traffic for your application.
//
// You must specify Regional endpoints when you work with API cluster operations
-// to get or update routing control states in Application Recovery Controller.
+// to get or update routing control states in Route 53 ARC.
//
// To see a code example for getting a routing control state, including accessing
// Regional cluster endpoints in sequence, see API examples (https://docs.aws.amazon.com/r53recovery/latest/dg/service_code_examples_actions.html)
@@ -79,7 +80,7 @@ func (c *Route53RecoveryCluster) GetRoutingControlStateRequest(input *GetRouting
//
// * Viewing and updating routing control states (https://docs.aws.amazon.com/r53recovery/latest/dg/routing-control.update.html)
//
-// * Working with routing controls overall (https://docs.aws.amazon.com/r53recovery/latest/dg/routing-control.html)
+// * Working with routing controls in Route 53 ARC (https://docs.aws.amazon.com/r53recovery/latest/dg/routing-control.html)
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
@@ -90,13 +91,13 @@ func (c *Route53RecoveryCluster) GetRoutingControlStateRequest(input *GetRouting
//
// Returned Error Types:
// * AccessDeniedException
-// You don't have sufficient permissions to query the routing control state.
+// You don't have sufficient permissions to perform this action.
//
// * InternalServerException
// There was an unexpected error during processing of the request.
//
// * ResourceNotFoundException
-// The request references a routing control that was not found.
+// The request references a routing control or control panel that was not found.
//
// * ValidationException
// There was a validation error on the request.
@@ -129,6 +130,183 @@ func (c *Route53RecoveryCluster) GetRoutingControlStateWithContext(ctx aws.Conte
return out, req.Send()
}
+const opListRoutingControls = "ListRoutingControls"
+
+// ListRoutingControlsRequest generates a "aws/request.Request" representing the
+// client's request for the ListRoutingControls operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See ListRoutingControls for more information on using the ListRoutingControls
+// API call, and error handling.
+//
+// This method is useful when you want to inject custom logic or configuration
+// into the SDK's request lifecycle. Such as custom headers, or retry logic.
+//
+//
+// // Example sending a request using the ListRoutingControlsRequest method.
+// req, resp := client.ListRoutingControlsRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/route53-recovery-cluster-2019-12-02/ListRoutingControls
+func (c *Route53RecoveryCluster) ListRoutingControlsRequest(input *ListRoutingControlsInput) (req *request.Request, output *ListRoutingControlsOutput) {
+ op := &request.Operation{
+ Name: opListRoutingControls,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ Paginator: &request.Paginator{
+ InputTokens: []string{"NextToken"},
+ OutputTokens: []string{"NextToken"},
+ LimitToken: "MaxResults",
+ TruncationToken: "",
+ },
+ }
+
+ if input == nil {
+ input = &ListRoutingControlsInput{}
+ }
+
+ output = &ListRoutingControlsOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// ListRoutingControls API operation for Route53 Recovery Cluster.
+//
+// List routing control names and Amazon Resource Names (ARNs), as well as the
+// routing control state for each routing control, along with the control panel
+// name and control panel ARN for the routing controls. If you specify a control
+// panel ARN, this call lists the routing controls in the control panel. Otherwise,
+// it lists all the routing controls in the cluster.
+//
+// A routing control is a simple on/off switch in Route 53 ARC that you can
+// use to route traffic to cells. When a routing control state is On, traffic
+// flows to a cell. When the state is Off, traffic does not flow.
+//
+// Before you can create a routing control, you must first create a cluster,
+// and then host the control in a control panel on the cluster. For more information,
+// see Create routing control structures (https://docs.aws.amazon.com/r53recovery/latest/dg/routing-control.create.html)
+// in the Amazon Route 53 Application Recovery Controller Developer Guide. You
+// access one of the endpoints for the cluster to get or update the routing
+// control state to redirect traffic for your application.
+//
+// You must specify Regional endpoints when you work with API cluster operations
+// to use this API operation to list routing controls in Route 53 ARC.
+//
+// Learn more about working with routing controls in the following topics in
+// the Amazon Route 53 Application Recovery Controller Developer Guide:
+//
+// * Viewing and updating routing control states (https://docs.aws.amazon.com/r53recovery/latest/dg/routing-control.update.html)
+//
+// * Working with routing controls in Route 53 ARC (https://docs.aws.amazon.com/r53recovery/latest/dg/routing-control.html)
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for Route53 Recovery Cluster's
+// API operation ListRoutingControls for usage and error information.
+//
+// Returned Error Types:
+// * AccessDeniedException
+// You don't have sufficient permissions to perform this action.
+//
+// * InternalServerException
+// There was an unexpected error during processing of the request.
+//
+// * ResourceNotFoundException
+// The request references a routing control or control panel that was not found.
+//
+// * ValidationException
+// There was a validation error on the request.
+//
+// * ThrottlingException
+// The request was denied because of request throttling.
+//
+// * EndpointTemporarilyUnavailableException
+// The cluster endpoint isn't available. Try another cluster endpoint.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/route53-recovery-cluster-2019-12-02/ListRoutingControls
+func (c *Route53RecoveryCluster) ListRoutingControls(input *ListRoutingControlsInput) (*ListRoutingControlsOutput, error) {
+ req, out := c.ListRoutingControlsRequest(input)
+ return out, req.Send()
+}
+
+// ListRoutingControlsWithContext is the same as ListRoutingControls with the addition of
+// the ability to pass a context and additional request options.
+//
+// See ListRoutingControls for details on how to use this API operation.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *Route53RecoveryCluster) ListRoutingControlsWithContext(ctx aws.Context, input *ListRoutingControlsInput, opts ...request.Option) (*ListRoutingControlsOutput, error) {
+ req, out := c.ListRoutingControlsRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
+// ListRoutingControlsPages iterates over the pages of a ListRoutingControls operation,
+// calling the "fn" function with the response data for each page. To stop
+// iterating, return false from the fn function.
+//
+// See ListRoutingControls method for more information on how to use this operation.
+//
+// Note: This operation can generate multiple requests to a service.
+//
+// // Example iterating over at most 3 pages of a ListRoutingControls operation.
+// pageNum := 0
+// err := client.ListRoutingControlsPages(params,
+// func(page *route53recoverycluster.ListRoutingControlsOutput, lastPage bool) bool {
+// pageNum++
+// fmt.Println(page)
+// return pageNum <= 3
+// })
+//
+func (c *Route53RecoveryCluster) ListRoutingControlsPages(input *ListRoutingControlsInput, fn func(*ListRoutingControlsOutput, bool) bool) error {
+ return c.ListRoutingControlsPagesWithContext(aws.BackgroundContext(), input, fn)
+}
+
+// ListRoutingControlsPagesWithContext same as ListRoutingControlsPages except
+// it takes a Context and allows setting request options on the pages.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *Route53RecoveryCluster) ListRoutingControlsPagesWithContext(ctx aws.Context, input *ListRoutingControlsInput, fn func(*ListRoutingControlsOutput, bool) bool, opts ...request.Option) error {
+ p := request.Pagination{
+ NewRequest: func() (*request.Request, error) {
+ var inCpy *ListRoutingControlsInput
+ if input != nil {
+ tmp := *input
+ inCpy = &tmp
+ }
+ req, _ := c.ListRoutingControlsRequest(inCpy)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return req, nil
+ },
+ }
+
+ for p.Next() {
+ if !fn(p.Page().(*ListRoutingControlsOutput), !p.HasNextPage()) {
+ break
+ }
+ }
+
+ return p.Err()
+}
+
const opUpdateRoutingControlState = "UpdateRoutingControlState"
// UpdateRoutingControlStateRequest generates a "aws/request.Request" representing the
@@ -176,18 +354,17 @@ func (c *Route53RecoveryCluster) UpdateRoutingControlStateRequest(input *UpdateR
//
// Set the state of the routing control to reroute traffic. You can set the
// value to be On or Off. When the state is On, traffic flows to a cell. When
-// it's Off, traffic does not flow.
-//
-// With Application Recovery Controller, you can add safety rules for routing
-// controls, which are safeguards for routing control state updates that help
-// prevent unexpected outcomes, like fail open traffic routing. However, there
-// are scenarios when you might want to bypass the routing control safeguards
-// that are enforced with safety rules that you've configured. For example,
-// you might want to fail over quickly for disaster recovery, and one or more
-// safety rules might be unexpectedly preventing you from updating a routing
-// control state to reroute traffic. In a "break glass" scenario like this,
-// you can override one or more safety rules to change a routing control state
-// and fail over your application.
+// the state is Off, traffic does not flow.
+//
+// With Route 53 ARC, you can add safety rules for routing controls, which are
+// safeguards for routing control state updates that help prevent unexpected
+// outcomes, like fail open traffic routing. However, there are scenarios when
+// you might want to bypass the routing control safeguards that are enforced
+// with safety rules that you've configured. For example, you might want to
+// fail over quickly for disaster recovery, and one or more safety rules might
+// be unexpectedly preventing you from updating a routing control state to reroute
+// traffic. In a "break glass" scenario like this, you can override one or more
+// safety rules to change a routing control state and fail over your application.
//
// The SafetyRulesToOverride property enables you override one or more safety
// rules and update routing control states. For more information, see Override
@@ -195,7 +372,7 @@ func (c *Route53RecoveryCluster) UpdateRoutingControlStateRequest(input *UpdateR
// in the Amazon Route 53 Application Recovery Controller Developer Guide.
//
// You must specify Regional endpoints when you work with API cluster operations
-// to get or update routing control states in Application Recovery Controller.
+// to get or update routing control states in Route 53 ARC.
//
// To see a code example for getting a routing control state, including accessing
// Regional cluster endpoints in sequence, see API examples (https://docs.aws.amazon.com/r53recovery/latest/dg/service_code_examples_actions.html)
@@ -214,13 +391,13 @@ func (c *Route53RecoveryCluster) UpdateRoutingControlStateRequest(input *UpdateR
//
// Returned Error Types:
// * AccessDeniedException
-// You don't have sufficient permissions to query the routing control state.
+// You don't have sufficient permissions to perform this action.
//
// * InternalServerException
// There was an unexpected error during processing of the request.
//
// * ResourceNotFoundException
-// The request references a routing control that was not found.
+// The request references a routing control or control panel that was not found.
//
// * ValidationException
// There was a validation error on the request.
@@ -305,16 +482,15 @@ func (c *Route53RecoveryCluster) UpdateRoutingControlStatesRequest(input *Update
// to be On or Off. When the state is On, traffic flows to a cell. When it's
// Off, traffic does not flow.
//
-// With Application Recovery Controller, you can add safety rules for routing
-// controls, which are safeguards for routing control state updates that help
-// prevent unexpected outcomes, like fail open traffic routing. However, there
-// are scenarios when you might want to bypass the routing control safeguards
-// that are enforced with safety rules that you've configured. For example,
-// you might want to fail over quickly for disaster recovery, and one or more
-// safety rules might be unexpectedly preventing you from updating a routing
-// control state to reroute traffic. In a "break glass" scenario like this,
-// you can override one or more safety rules to change a routing control state
-// and fail over your application.
+// With Route 53 ARC, you can add safety rules for routing controls, which are
+// safeguards for routing control state updates that help prevent unexpected
+// outcomes, like fail open traffic routing. However, there are scenarios when
+// you might want to bypass the routing control safeguards that are enforced
+// with safety rules that you've configured. For example, you might want to
+// fail over quickly for disaster recovery, and one or more safety rules might
+// be unexpectedly preventing you from updating a routing control state to reroute
+// traffic. In a "break glass" scenario like this, you can override one or more
+// safety rules to change a routing control state and fail over your application.
//
// The SafetyRulesToOverride property enables you override one or more safety
// rules and update routing control states. For more information, see Override
@@ -322,7 +498,7 @@ func (c *Route53RecoveryCluster) UpdateRoutingControlStatesRequest(input *Update
// in the Amazon Route 53 Application Recovery Controller Developer Guide.
//
// You must specify Regional endpoints when you work with API cluster operations
-// to get or update routing control states in Application Recovery Controller.
+// to get or update routing control states in Route 53 ARC.
//
// To see a code example for getting a routing control state, including accessing
// Regional cluster endpoints in sequence, see API examples (https://docs.aws.amazon.com/r53recovery/latest/dg/service_code_examples_actions.html)
@@ -341,13 +517,13 @@ func (c *Route53RecoveryCluster) UpdateRoutingControlStatesRequest(input *Update
//
// Returned Error Types:
// * AccessDeniedException
-// You don't have sufficient permissions to query the routing control state.
+// You don't have sufficient permissions to perform this action.
//
// * InternalServerException
// There was an unexpected error during processing of the request.
//
// * ResourceNotFoundException
-// The request references a routing control that was not found.
+// The request references a routing control or control panel that was not found.
//
// * ValidationException
// There was a validation error on the request.
@@ -361,6 +537,10 @@ func (c *Route53RecoveryCluster) UpdateRoutingControlStatesRequest(input *Update
// * ConflictException
// There was a conflict with this request. Try again.
//
+// * ServiceLimitExceededException
+// The request can't update that many routing control states at the same time.
+// Try again with fewer routing control states.
+//
// See also, https://docs.aws.amazon.com/goto/WebAPI/route53-recovery-cluster-2019-12-02/UpdateRoutingControlStates
func (c *Route53RecoveryCluster) UpdateRoutingControlStates(input *UpdateRoutingControlStatesInput) (*UpdateRoutingControlStatesOutput, error) {
req, out := c.UpdateRoutingControlStatesRequest(input)
@@ -383,7 +563,7 @@ func (c *Route53RecoveryCluster) UpdateRoutingControlStatesWithContext(ctx aws.C
return out, req.Send()
}
-// You don't have sufficient permissions to query the routing control state.
+// You don't have sufficient permissions to perform this action.
type AccessDeniedException struct {
_ struct{} `type:"structure"`
RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
@@ -589,8 +769,8 @@ func (s *EndpointTemporarilyUnavailableException) RequestID() string {
type GetRoutingControlStateInput struct {
_ struct{} `type:"structure"`
- // The Amazon Resource Number (ARN) for the routing control that you want to
- // get the state for.
+ // The Amazon Resource Name (ARN) for the routing control that you want to get
+ // the state for.
//
// RoutingControlArn is a required field
RoutingControlArn *string `min:"1" type:"string" required:"true"`
@@ -639,11 +819,14 @@ func (s *GetRoutingControlStateInput) SetRoutingControlArn(v string) *GetRouting
type GetRoutingControlStateOutput struct {
_ struct{} `type:"structure"`
- // The Amazon Resource Number (ARN) of the response.
+ // The Amazon Resource Name (ARN) of the response.
//
// RoutingControlArn is a required field
RoutingControlArn *string `min:"1" type:"string" required:"true"`
+ // The routing control name.
+ RoutingControlName *string `min:"1" type:"string"`
+
// The state of the routing control.
//
// RoutingControlState is a required field
@@ -674,6 +857,12 @@ func (s *GetRoutingControlStateOutput) SetRoutingControlArn(v string) *GetRoutin
return s
}
+// SetRoutingControlName sets the RoutingControlName field's value.
+func (s *GetRoutingControlStateOutput) SetRoutingControlName(v string) *GetRoutingControlStateOutput {
+ s.RoutingControlName = &v
+ return s
+}
+
// SetRoutingControlState sets the RoutingControlState field's value.
func (s *GetRoutingControlStateOutput) SetRoutingControlState(v string) *GetRoutingControlStateOutput {
s.RoutingControlState = &v
@@ -747,7 +936,121 @@ func (s *InternalServerException) RequestID() string {
return s.RespMetadata.RequestID
}
-// The request references a routing control that was not found.
+type ListRoutingControlsInput struct {
+ _ struct{} `type:"structure"`
+
+ // The Amazon Resource Name (ARN) of the control panel of the routing controls
+ // to list.
+ ControlPanelArn *string `min:"1" type:"string"`
+
+ // The number of routing controls objects that you want to return with this
+ // call. The default value is 500.
+ MaxResults *int64 `min:"1" type:"integer"`
+
+ // The token for the next set of results. You receive this token from a previous
+ // call.
+ NextToken *string `min:"1" type:"string"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s ListRoutingControlsInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s ListRoutingControlsInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *ListRoutingControlsInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "ListRoutingControlsInput"}
+ if s.ControlPanelArn != nil && len(*s.ControlPanelArn) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("ControlPanelArn", 1))
+ }
+ if s.MaxResults != nil && *s.MaxResults < 1 {
+ invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
+ }
+ if s.NextToken != nil && len(*s.NextToken) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetControlPanelArn sets the ControlPanelArn field's value.
+func (s *ListRoutingControlsInput) SetControlPanelArn(v string) *ListRoutingControlsInput {
+ s.ControlPanelArn = &v
+ return s
+}
+
+// SetMaxResults sets the MaxResults field's value.
+func (s *ListRoutingControlsInput) SetMaxResults(v int64) *ListRoutingControlsInput {
+ s.MaxResults = &v
+ return s
+}
+
+// SetNextToken sets the NextToken field's value.
+func (s *ListRoutingControlsInput) SetNextToken(v string) *ListRoutingControlsInput {
+ s.NextToken = &v
+ return s
+}
+
+type ListRoutingControlsOutput struct {
+ _ struct{} `type:"structure"`
+
+ // The token for the next set of results. You receive this token from a previous
+ // call.
+ NextToken *string `min:"1" type:"string"`
+
+ // The list of routing controls.
+ //
+ // RoutingControls is a required field
+ RoutingControls []*RoutingControl `type:"list" required:"true"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s ListRoutingControlsOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s ListRoutingControlsOutput) GoString() string {
+ return s.String()
+}
+
+// SetNextToken sets the NextToken field's value.
+func (s *ListRoutingControlsOutput) SetNextToken(v string) *ListRoutingControlsOutput {
+ s.NextToken = &v
+ return s
+}
+
+// SetRoutingControls sets the RoutingControls field's value.
+func (s *ListRoutingControlsOutput) SetRoutingControls(v []*RoutingControl) *ListRoutingControlsOutput {
+ s.RoutingControls = v
+ return s
+}
+
+// The request references a routing control or control panel that was not found.
type ResourceNotFoundException struct {
_ struct{} `type:"structure"`
RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
@@ -821,6 +1124,159 @@ func (s *ResourceNotFoundException) RequestID() string {
return s.RespMetadata.RequestID
}
+// A routing control, which is a simple on/off switch that you can use to route
+// traffic to cells. When a routing control state is On, traffic flows to a
+// cell. When the state is Off, traffic does not flow.
+type RoutingControl struct {
+ _ struct{} `type:"structure"`
+
+ // The Amazon Resource Name (ARN) of the control panel where the routing control
+ // is located.
+ ControlPanelArn *string `min:"1" type:"string"`
+
+ // The name of the control panel where the routing control is located.
+ ControlPanelName *string `min:"1" type:"string"`
+
+ // The Amazon Resource Name (ARN) of the routing control.
+ RoutingControlArn *string `min:"1" type:"string"`
+
+ // The name of the routing control.
+ RoutingControlName *string `min:"1" type:"string"`
+
+ // The current state of the routing control. When a routing control state is
+ // On, traffic flows to a cell. When the state is Off, traffic does not flow.
+ RoutingControlState *string `type:"string" enum:"RoutingControlState"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s RoutingControl) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s RoutingControl) GoString() string {
+ return s.String()
+}
+
+// SetControlPanelArn sets the ControlPanelArn field's value.
+func (s *RoutingControl) SetControlPanelArn(v string) *RoutingControl {
+ s.ControlPanelArn = &v
+ return s
+}
+
+// SetControlPanelName sets the ControlPanelName field's value.
+func (s *RoutingControl) SetControlPanelName(v string) *RoutingControl {
+ s.ControlPanelName = &v
+ return s
+}
+
+// SetRoutingControlArn sets the RoutingControlArn field's value.
+func (s *RoutingControl) SetRoutingControlArn(v string) *RoutingControl {
+ s.RoutingControlArn = &v
+ return s
+}
+
+// SetRoutingControlName sets the RoutingControlName field's value.
+func (s *RoutingControl) SetRoutingControlName(v string) *RoutingControl {
+ s.RoutingControlName = &v
+ return s
+}
+
+// SetRoutingControlState sets the RoutingControlState field's value.
+func (s *RoutingControl) SetRoutingControlState(v string) *RoutingControl {
+ s.RoutingControlState = &v
+ return s
+}
+
+// The request can't update that many routing control states at the same time.
+// Try again with fewer routing control states.
+type ServiceLimitExceededException struct {
+ _ struct{} `type:"structure"`
+ RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
+
+ // The code of the limit that was exceeded.
+ //
+ // LimitCode is a required field
+ LimitCode *string `locationName:"limitCode" type:"string" required:"true"`
+
+ Message_ *string `locationName:"message" type:"string"`
+
+ // The resource identifier of the limit that was exceeded.
+ ResourceId *string `locationName:"resourceId" type:"string"`
+
+ // The resource type of the limit that was exceeded.
+ ResourceType *string `locationName:"resourceType" type:"string"`
+
+ // The service code of the limit that was exceeded.
+ //
+ // ServiceCode is a required field
+ ServiceCode *string `locationName:"serviceCode" type:"string" required:"true"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s ServiceLimitExceededException) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s ServiceLimitExceededException) GoString() string {
+ return s.String()
+}
+
+func newErrorServiceLimitExceededException(v protocol.ResponseMetadata) error {
+ return &ServiceLimitExceededException{
+ RespMetadata: v,
+ }
+}
+
+// Code returns the exception type name.
+func (s *ServiceLimitExceededException) Code() string {
+ return "ServiceLimitExceededException"
+}
+
+// Message returns the exception's message.
+func (s *ServiceLimitExceededException) Message() string {
+ if s.Message_ != nil {
+ return *s.Message_
+ }
+ return ""
+}
+
+// OrigErr always returns nil, satisfies awserr.Error interface.
+func (s *ServiceLimitExceededException) OrigErr() error {
+ return nil
+}
+
+func (s *ServiceLimitExceededException) Error() string {
+ return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
+}
+
+// Status code returns the HTTP status code for the request's response error.
+func (s *ServiceLimitExceededException) StatusCode() int {
+ return s.RespMetadata.StatusCode
+}
+
+// RequestID returns the service's response RequestID for request.
+func (s *ServiceLimitExceededException) RequestID() string {
+ return s.RespMetadata.RequestID
+}
+
// The request was denied because of request throttling.
type ThrottlingException struct {
_ struct{} `type:"structure"`
@@ -892,7 +1348,7 @@ func (s *ThrottlingException) RequestID() string {
type UpdateRoutingControlStateEntry struct {
_ struct{} `type:"structure"`
- // The Amazon Resource Number (ARN) for a routing control state entry.
+ // The Amazon Resource Name (ARN) for a routing control state entry.
//
// RoutingControlArn is a required field
RoutingControlArn *string `min:"1" type:"string" required:"true"`
@@ -955,8 +1411,8 @@ func (s *UpdateRoutingControlStateEntry) SetRoutingControlState(v string) *Updat
type UpdateRoutingControlStateInput struct {
_ struct{} `type:"structure"`
- // The Amazon Resource Number (ARN) for the routing control that you want to
- // update the state for.
+ // The Amazon Resource Name (ARN) for the routing control that you want to update
+ // the state for.
//
// RoutingControlArn is a required field
RoutingControlArn *string `min:"1" type:"string" required:"true"`
@@ -966,9 +1422,9 @@ type UpdateRoutingControlStateInput struct {
// RoutingControlState is a required field
RoutingControlState *string `type:"string" required:"true" enum:"RoutingControlState"`
- // The Amazon Resource Numbers (ARNs) for the safety rules that you want to
- // override when you're updating the state of a routing control. You can override
- // one safety rule or multiple safety rules by including one or more ARNs, separated
+ // The Amazon Resource Names (ARNs) for the safety rules that you want to override
+ // when you're updating the state of a routing control. You can override one
+ // safety rule or multiple safety rules by including one or more ARNs, separated
// by commas.
//
// For more information, see Override safety rules to reroute traffic (https://docs.aws.amazon.com/r53recovery/latest/dg/routing-control.override-safety-rule.html)
@@ -1056,10 +1512,10 @@ func (s UpdateRoutingControlStateOutput) GoString() string {
type UpdateRoutingControlStatesInput struct {
_ struct{} `type:"structure"`
- // The Amazon Resource Numbers (ARNs) for the safety rules that you want to
- // override when you're updating routing control states. You can override one
- // safety rule or multiple safety rules by including one or more ARNs, separated
- // by commas.
+ // The Amazon Resource Names (ARNs) for the safety rules that you want to override
+ // when you're updating routing control states. You can override one safety
+ // rule or multiple safety rules by including one or more ARNs, separated by
+ // commas.
//
// For more information, see Override safety rules to reroute traffic (https://docs.aws.amazon.com/r53recovery/latest/dg/routing-control.override-safety-rule.html)
// in the Amazon Route 53 Application Recovery Controller Developer Guide.
diff --git a/service/route53recoverycluster/doc.go b/service/route53recoverycluster/doc.go
index 4b1259ed1f0..e9ee97b743e 100644
--- a/service/route53recoverycluster/doc.go
+++ b/service/route53recoverycluster/doc.go
@@ -6,51 +6,51 @@
// Welcome to the Routing Control (Recovery Cluster) API Reference Guide for
// Amazon Route 53 Application Recovery Controller.
//
-// With Amazon Route 53 Application Recovery Controller, you can use routing
-// control with extreme reliability to recover applications by rerouting traffic
-// across Availability Zones or AWS Regions. Routing controls are simple on/off
-// switches hosted on a highly available cluster in Application Recovery Controller.
-// A cluster provides a set of five redundant Regional endpoints against which
-// you can run API calls to get or update the state of routing controls. To
-// implement failover, you set one routing control on and another one off, to
-// reroute traffic from one Availability Zone or Amazon Web Services Region
-// to another.
-//
-// Be aware that you must specify the Regional endpoints for a cluster when
-// you work with API cluster operations to get or update routing control states
-// in Application Recovery Controller. In addition, you must specify the US
-// West (Oregon) Region for Application Recovery Controller API calls. For example,
-// use the parameter region us-west-2 with AWS CLI commands. For more information,
-// see Get and update routing control states using the API (https://docs.aws.amazon.com/r53recovery/latest/dg/routing-control.update.api.html)
+// With Route 53 ARC, you can use routing control with extreme reliability to
+// recover applications by rerouting traffic across Availability Zones or Amazon
+// Web Services Regions. Routing controls are simple on/off switches hosted
+// on a highly available cluster in Route 53 ARC. A cluster provides a set of
+// five redundant Regional endpoints against which you can run API calls to
+// get or update the state of routing controls. To implement failover, you set
+// one routing control On and another one Off, to reroute traffic from one Availability
+// Zone or Amazon Web Services Region to another.
+//
+// Be aware that you must specify a Regional endpoint for a cluster when you
+// work with API cluster operations to get or update routing control states
+// in Route 53 ARC. In addition, you must specify the US West (Oregon) Region
+// for Route 53 ARC API calls. For example, use the parameter --region us-west-2
+// with AWS CLI commands. For more information, see Get and update routing control
+// states using the API (https://docs.aws.amazon.com/r53recovery/latest/dg/routing-control.update.api.html)
// in the Amazon Route 53 Application Recovery Controller Developer Guide.
//
// This API guide includes information about the API operations for how to get
-// and update routing control states in Application Recovery Controller. You
-// also must set up the structures to support routing controls: clusters and
-// control panels.
-//
-// For more information about working with routing control in Application Recovery
-// Controller, see the following:
-//
-// * To create clusters, routing controls, and control panels by using the
-// control plane API for routing control, see the Recovery Control Configuration
-// API Reference Guide for Amazon Route 53 Application Recovery Controller
-// (https://docs.aws.amazon.com/recovery-cluster/latest/api/).
-//
-// * Learn about the components in recovery control configuration, including
-// clusters, routing controls, and control panels. For more information,
-// see Recovery control components (https://docs.aws.amazon.com/r53recovery/latest/dg/introduction-components.html#introduction-components-routing)
+// and update routing control states in Route 53 ARC. To work with routing control
+// in Route 53 ARC, you must first create the required components (clusters,
+// control panels, and routing controls) using the recovery cluster configuration
+// API.
+//
+// For more information about working with routing control in Route 53 ARC,
+// see the following:
+//
+// * Create clusters, control panels, and routing controls by using API operations.
+// For more information, see the Recovery Control Configuration API Reference
+// Guide for Amazon Route 53 Application Recovery Controller (https://docs.aws.amazon.com/recovery-cluster/latest/api/).
+//
+// * Learn about the components in recovery control, including clusters,
+// routing controls, and control panels, and how to work with Route 53 ARC
+// in the Amazon Web Services console. For more information, see Recovery
+// control components (https://docs.aws.amazon.com/r53recovery/latest/dg/introduction-components.html#introduction-components-routing)
// in the Amazon Route 53 Application Recovery Controller Developer Guide.
//
-// * Application Recovery Controller also provides readiness checks that
-// run continually to help make sure that your applications are scaled and
-// ready to handle failover traffic. For more information about the related
-// API actions, see the Recovery Readiness API Reference Guide for Amazon
-// Route 53 Application Recovery Controller (https://docs.aws.amazon.com/recovery-readiness/latest/api/).
+// * Route 53 ARC also provides readiness checks that continually audit resources
+// to help make sure that your applications are scaled and ready to handle
+// failover traffic. For more information about the related API operations,
+// see the Recovery Readiness API Reference Guide for Amazon Route 53 Application
+// Recovery Controller (https://docs.aws.amazon.com/recovery-readiness/latest/api/).
//
// * For more information about creating resilient applications and preparing
-// for recovery readiness with Application Recovery Controller, see the Amazon
-// Route 53 Application Recovery Controller Developer Guide (https://docs.aws.amazon.com/r53recovery/latest/dg/).
+// for recovery readiness with Route 53 ARC, see the Amazon Route 53 Application
+// Recovery Controller Developer Guide (https://docs.aws.amazon.com/r53recovery/latest/dg/).
//
// See https://docs.aws.amazon.com/goto/WebAPI/route53-recovery-cluster-2019-12-02 for more information on this service.
//
diff --git a/service/route53recoverycluster/errors.go b/service/route53recoverycluster/errors.go
index e2b633bcea6..88e53da86dc 100644
--- a/service/route53recoverycluster/errors.go
+++ b/service/route53recoverycluster/errors.go
@@ -11,7 +11,7 @@ const (
// ErrCodeAccessDeniedException for service response error code
// "AccessDeniedException".
//
- // You don't have sufficient permissions to query the routing control state.
+ // You don't have sufficient permissions to perform this action.
ErrCodeAccessDeniedException = "AccessDeniedException"
// ErrCodeConflictException for service response error code
@@ -35,9 +35,16 @@ const (
// ErrCodeResourceNotFoundException for service response error code
// "ResourceNotFoundException".
//
- // The request references a routing control that was not found.
+ // The request references a routing control or control panel that was not found.
ErrCodeResourceNotFoundException = "ResourceNotFoundException"
+ // ErrCodeServiceLimitExceededException for service response error code
+ // "ServiceLimitExceededException".
+ //
+ // The request can't update that many routing control states at the same time.
+ // Try again with fewer routing control states.
+ ErrCodeServiceLimitExceededException = "ServiceLimitExceededException"
+
// ErrCodeThrottlingException for service response error code
// "ThrottlingException".
//
@@ -57,6 +64,7 @@ var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
"EndpointTemporarilyUnavailableException": newErrorEndpointTemporarilyUnavailableException,
"InternalServerException": newErrorInternalServerException,
"ResourceNotFoundException": newErrorResourceNotFoundException,
+ "ServiceLimitExceededException": newErrorServiceLimitExceededException,
"ThrottlingException": newErrorThrottlingException,
"ValidationException": newErrorValidationException,
}
diff --git a/service/route53recoverycluster/route53recoveryclusteriface/interface.go b/service/route53recoverycluster/route53recoveryclusteriface/interface.go
index cd368717304..2217c8203c2 100644
--- a/service/route53recoverycluster/route53recoveryclusteriface/interface.go
+++ b/service/route53recoverycluster/route53recoveryclusteriface/interface.go
@@ -64,6 +64,13 @@ type Route53RecoveryClusterAPI interface {
GetRoutingControlStateWithContext(aws.Context, *route53recoverycluster.GetRoutingControlStateInput, ...request.Option) (*route53recoverycluster.GetRoutingControlStateOutput, error)
GetRoutingControlStateRequest(*route53recoverycluster.GetRoutingControlStateInput) (*request.Request, *route53recoverycluster.GetRoutingControlStateOutput)
+ ListRoutingControls(*route53recoverycluster.ListRoutingControlsInput) (*route53recoverycluster.ListRoutingControlsOutput, error)
+ ListRoutingControlsWithContext(aws.Context, *route53recoverycluster.ListRoutingControlsInput, ...request.Option) (*route53recoverycluster.ListRoutingControlsOutput, error)
+ ListRoutingControlsRequest(*route53recoverycluster.ListRoutingControlsInput) (*request.Request, *route53recoverycluster.ListRoutingControlsOutput)
+
+ ListRoutingControlsPages(*route53recoverycluster.ListRoutingControlsInput, func(*route53recoverycluster.ListRoutingControlsOutput, bool) bool) error
+ ListRoutingControlsPagesWithContext(aws.Context, *route53recoverycluster.ListRoutingControlsInput, func(*route53recoverycluster.ListRoutingControlsOutput, bool) bool, ...request.Option) error
+
UpdateRoutingControlState(*route53recoverycluster.UpdateRoutingControlStateInput) (*route53recoverycluster.UpdateRoutingControlStateOutput, error)
UpdateRoutingControlStateWithContext(aws.Context, *route53recoverycluster.UpdateRoutingControlStateInput, ...request.Option) (*route53recoverycluster.UpdateRoutingControlStateOutput, error)
UpdateRoutingControlStateRequest(*route53recoverycluster.UpdateRoutingControlStateInput) (*request.Request, *route53recoverycluster.UpdateRoutingControlStateOutput)
diff --git a/service/workspaces/api.go b/service/workspaces/api.go
index d76daa1f917..f97e156dc74 100644
--- a/service/workspaces/api.go
+++ b/service/workspaces/api.go
@@ -1083,6 +1083,98 @@ func (c *WorkSpaces) CreateWorkspacesWithContext(ctx aws.Context, input *CreateW
return out, req.Send()
}
+const opDeleteClientBranding = "DeleteClientBranding"
+
+// DeleteClientBrandingRequest generates a "aws/request.Request" representing the
+// client's request for the DeleteClientBranding operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See DeleteClientBranding for more information on using the DeleteClientBranding
+// API call, and error handling.
+//
+// This method is useful when you want to inject custom logic or configuration
+// into the SDK's request lifecycle. Such as custom headers, or retry logic.
+//
+//
+// // Example sending a request using the DeleteClientBrandingRequest method.
+// req, resp := client.DeleteClientBrandingRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/DeleteClientBranding
+func (c *WorkSpaces) DeleteClientBrandingRequest(input *DeleteClientBrandingInput) (req *request.Request, output *DeleteClientBrandingOutput) {
+ op := &request.Operation{
+ Name: opDeleteClientBranding,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ }
+
+ if input == nil {
+ input = &DeleteClientBrandingInput{}
+ }
+
+ output = &DeleteClientBrandingOutput{}
+ req = c.newRequest(op, input, output)
+ req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
+ return
+}
+
+// DeleteClientBranding API operation for Amazon WorkSpaces.
+//
+// Deletes customized client branding. Client branding allows you to customize
+// your WorkSpace's client login portal. You can tailor your login portal company
+// logo, the support email address, support link, link to reset password, and
+// a custom message for users trying to sign in.
+//
+// After you delete your customized client branding, your login portal reverts
+// to the default client branding.
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for Amazon WorkSpaces's
+// API operation DeleteClientBranding for usage and error information.
+//
+// Returned Error Types:
+// * InvalidParameterValuesException
+// One or more parameter values are not valid.
+//
+// * ResourceNotFoundException
+// The resource could not be found.
+//
+// * AccessDeniedException
+// The user is not authorized to access a resource.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/DeleteClientBranding
+func (c *WorkSpaces) DeleteClientBranding(input *DeleteClientBrandingInput) (*DeleteClientBrandingOutput, error) {
+ req, out := c.DeleteClientBrandingRequest(input)
+ return out, req.Send()
+}
+
+// DeleteClientBrandingWithContext is the same as DeleteClientBranding with the addition of
+// the ability to pass a context and additional request options.
+//
+// See DeleteClientBranding for details on how to use this API operation.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *WorkSpaces) DeleteClientBrandingWithContext(ctx aws.Context, input *DeleteClientBrandingInput, opts ...request.Option) (*DeleteClientBrandingOutput, error) {
+ req, out := c.DeleteClientBrandingRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
const opDeleteConnectClientAddIn = "DeleteConnectClientAddIn"
// DeleteConnectClientAddInRequest generates a "aws/request.Request" representing the
@@ -1893,6 +1985,97 @@ func (c *WorkSpaces) DescribeAccountModificationsWithContext(ctx aws.Context, in
return out, req.Send()
}
+const opDescribeClientBranding = "DescribeClientBranding"
+
+// DescribeClientBrandingRequest generates a "aws/request.Request" representing the
+// client's request for the DescribeClientBranding operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See DescribeClientBranding for more information on using the DescribeClientBranding
+// API call, and error handling.
+//
+// This method is useful when you want to inject custom logic or configuration
+// into the SDK's request lifecycle. Such as custom headers, or retry logic.
+//
+//
+// // Example sending a request using the DescribeClientBrandingRequest method.
+// req, resp := client.DescribeClientBrandingRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/DescribeClientBranding
+func (c *WorkSpaces) DescribeClientBrandingRequest(input *DescribeClientBrandingInput) (req *request.Request, output *DescribeClientBrandingOutput) {
+ op := &request.Operation{
+ Name: opDescribeClientBranding,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ }
+
+ if input == nil {
+ input = &DescribeClientBrandingInput{}
+ }
+
+ output = &DescribeClientBrandingOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// DescribeClientBranding API operation for Amazon WorkSpaces.
+//
+// Describes the specified client branding. Client branding allows you to customize
+// the log in page of various device types for your users. You can add your
+// company logo, the support email address, support link, link to reset password,
+// and a custom message for users trying to sign in.
+//
+// Only device types that have branding information configured will be shown
+// in the response.
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for Amazon WorkSpaces's
+// API operation DescribeClientBranding for usage and error information.
+//
+// Returned Error Types:
+// * InvalidParameterValuesException
+// One or more parameter values are not valid.
+//
+// * ResourceNotFoundException
+// The resource could not be found.
+//
+// * AccessDeniedException
+// The user is not authorized to access a resource.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/DescribeClientBranding
+func (c *WorkSpaces) DescribeClientBranding(input *DescribeClientBrandingInput) (*DescribeClientBrandingOutput, error) {
+ req, out := c.DescribeClientBrandingRequest(input)
+ return out, req.Send()
+}
+
+// DescribeClientBrandingWithContext is the same as DescribeClientBranding with the addition of
+// the ability to pass a context and additional request options.
+//
+// See DescribeClientBranding for details on how to use this API operation.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *WorkSpaces) DescribeClientBrandingWithContext(ctx aws.Context, input *DescribeClientBrandingInput, opts ...request.Option) (*DescribeClientBrandingOutput, error) {
+ req, out := c.DescribeClientBrandingRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
const opDescribeClientProperties = "DescribeClientProperties"
// DescribeClientPropertiesRequest generates a "aws/request.Request" representing the
@@ -3338,6 +3521,109 @@ func (c *WorkSpaces) DisassociateIpGroupsWithContext(ctx aws.Context, input *Dis
return out, req.Send()
}
+const opImportClientBranding = "ImportClientBranding"
+
+// ImportClientBrandingRequest generates a "aws/request.Request" representing the
+// client's request for the ImportClientBranding operation. The "output" return
+// value will be populated with the request's response once the request completes
+// successfully.
+//
+// Use "Send" method on the returned Request to send the API call to the service.
+// the "output" return value is not valid until after Send returns without error.
+//
+// See ImportClientBranding for more information on using the ImportClientBranding
+// API call, and error handling.
+//
+// This method is useful when you want to inject custom logic or configuration
+// into the SDK's request lifecycle. Such as custom headers, or retry logic.
+//
+//
+// // Example sending a request using the ImportClientBrandingRequest method.
+// req, resp := client.ImportClientBrandingRequest(params)
+//
+// err := req.Send()
+// if err == nil { // resp is now filled
+// fmt.Println(resp)
+// }
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/ImportClientBranding
+func (c *WorkSpaces) ImportClientBrandingRequest(input *ImportClientBrandingInput) (req *request.Request, output *ImportClientBrandingOutput) {
+ op := &request.Operation{
+ Name: opImportClientBranding,
+ HTTPMethod: "POST",
+ HTTPPath: "/",
+ }
+
+ if input == nil {
+ input = &ImportClientBrandingInput{}
+ }
+
+ output = &ImportClientBrandingOutput{}
+ req = c.newRequest(op, input, output)
+ return
+}
+
+// ImportClientBranding API operation for Amazon WorkSpaces.
+//
+// Imports client branding. Client branding allows you to customize your WorkSpace's
+// client login portal. You can tailor your login portal company logo, the support
+// email address, support link, link to reset password, and a custom message
+// for users trying to sign in.
+//
+// After you import client branding, the default branding experience for the
+// specified platform type is replaced with the imported experience
+//
+// * You must specify at least one platform type when importing client branding.
+//
+// * You can import up to 6 MB of data with each request. If your request
+// exceeds this limit, you can import client branding for different platform
+// types using separate requests.
+//
+// * In each platform type, the SupportEmail and SupportLink parameters are
+// mutually exclusive. You can specify only one parameter for each platform
+// type, but not both.
+//
+// * Imported data can take up to a minute to appear in the WorkSpaces client.
+//
+// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
+// with awserr.Error's Code and Message methods to get detailed information about
+// the error.
+//
+// See the AWS API reference guide for Amazon WorkSpaces's
+// API operation ImportClientBranding for usage and error information.
+//
+// Returned Error Types:
+// * InvalidParameterValuesException
+// One or more parameter values are not valid.
+//
+// * ResourceLimitExceededException
+// Your resource limits have been exceeded.
+//
+// * AccessDeniedException
+// The user is not authorized to access a resource.
+//
+// See also, https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/ImportClientBranding
+func (c *WorkSpaces) ImportClientBranding(input *ImportClientBrandingInput) (*ImportClientBrandingOutput, error) {
+ req, out := c.ImportClientBrandingRequest(input)
+ return out, req.Send()
+}
+
+// ImportClientBrandingWithContext is the same as ImportClientBranding with the addition of
+// the ability to pass a context and additional request options.
+//
+// See ImportClientBranding for details on how to use this API operation.
+//
+// The context must be non-nil and will be used for request cancellation. If
+// the context is nil a panic will occur. In the future the SDK may create
+// sub-contexts for http.Requests. See https://golang.org/pkg/context/
+// for more information on using Contexts.
+func (c *WorkSpaces) ImportClientBrandingWithContext(ctx aws.Context, input *ImportClientBrandingInput, opts ...request.Option) (*ImportClientBrandingOutput, error) {
+ req, out := c.ImportClientBrandingRequest(input)
+ req.SetContext(ctx)
+ req.ApplyOptions(opts...)
+ return out, req.Send()
+}
+
const opImportWorkspaceImage = "ImportWorkspaceImage"
// ImportWorkspaceImageRequest generates a "aws/request.Request" representing the
@@ -7247,40 +7533,45 @@ func (s *CreateWorkspacesOutput) SetPendingRequests(v []*Workspace) *CreateWorks
return s
}
-// Describes the default values that are used to create WorkSpaces. For more
-// information, see Update Directory Details for Your WorkSpaces (https://docs.aws.amazon.com/workspaces/latest/adminguide/update-directory-details.html).
-type DefaultWorkspaceCreationProperties struct {
+// Returns default client branding attributes that were imported. These attributes
+// display on the client login screen.
+//
+// Client branding attributes are public facing. Ensure that you don't include
+// sensitive information.
+type DefaultClientBrandingAttributes struct {
_ struct{} `type:"structure"`
- // The identifier of the default security group to apply to WorkSpaces when
- // they are created. For more information, see Security Groups for Your WorkSpaces
- // (https://docs.aws.amazon.com/workspaces/latest/adminguide/amazon-workspaces-security-groups.html).
- CustomSecurityGroupId *string `min:"11" type:"string"`
-
- // The organizational unit (OU) in the directory for the WorkSpace machine accounts.
- DefaultOu *string `type:"string"`
+ // The forgotten password link. This is the web address that users can go to
+ // if they forget the password for their WorkSpace.
+ ForgotPasswordLink *string `min:"1" type:"string"`
- // Specifies whether to automatically assign an Elastic public IP address to
- // WorkSpaces in this directory by default. If enabled, the Elastic public IP
- // address allows outbound internet access from your WorkSpaces when you’re
- // using an internet gateway in the Amazon VPC in which your WorkSpaces are
- // located. If you're using a Network Address Translation (NAT) gateway for
- // outbound internet access from your VPC, or if your WorkSpaces are in public
- // subnets and you manually assign them Elastic IP addresses, you should disable
- // this setting. This setting applies to new WorkSpaces that you launch or to
- // existing WorkSpaces that you rebuild. For more information, see Configure
- // a VPC for Amazon WorkSpaces (https://docs.aws.amazon.com/workspaces/latest/adminguide/amazon-workspaces-vpc.html).
- EnableInternetAccess *bool `type:"boolean"`
+ // The login message. Specified as a key value pair, in which the key is a locale
+ // and the value is the localized message for that locale. The only key supported
+ // is en_US.
+ LoginMessage map[string]*string `type:"map"`
- // Specifies whether maintenance mode is enabled for WorkSpaces. For more information,
- // see WorkSpace Maintenance (https://docs.aws.amazon.com/workspaces/latest/adminguide/workspace-maintenance.html).
- EnableMaintenanceMode *bool `type:"boolean"`
+ // The logo URL. This is the link where users can download the logo image. The
+ // only supported image format is .png.
+ LogoUrl *string `min:"1" type:"string"`
- // Specifies whether the directory is enabled for Amazon WorkDocs.
- EnableWorkDocs *bool `type:"boolean"`
+ // The support email. The company's customer support email address.
+ //
+ // * In each platform type, the SupportEmail and SupportLink parameters are
+ // mutually exclusive. You can specify one parameter for each platform type,
+ // but not both.
+ //
+ // * The default email is workspaces-feedback@amazon.com.
+ SupportEmail *string `min:"6" type:"string"`
- // Specifies whether WorkSpace users are local administrators on their WorkSpaces.
- UserEnabledAsLocalAdministrator *bool `type:"boolean"`
+ // The support link. The link for the company's customer support page for their
+ // WorkSpace.
+ //
+ // * In each platform type, the SupportEmail and SupportLink parameters are
+ // mutually exclusive.You can specify one parameter for each platform type,
+ // but not both.
+ //
+ // * The default support link is workspaces-feedback@amazon.com.
+ SupportLink *string `min:"1" type:"string"`
}
// String returns the string representation.
@@ -7288,7 +7579,7 @@ type DefaultWorkspaceCreationProperties struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s DefaultWorkspaceCreationProperties) String() string {
+func (s DefaultClientBrandingAttributes) String() string {
return awsutil.Prettify(s)
}
@@ -7297,45 +7588,330 @@ func (s DefaultWorkspaceCreationProperties) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s DefaultWorkspaceCreationProperties) GoString() string {
+func (s DefaultClientBrandingAttributes) GoString() string {
return s.String()
}
-// SetCustomSecurityGroupId sets the CustomSecurityGroupId field's value.
-func (s *DefaultWorkspaceCreationProperties) SetCustomSecurityGroupId(v string) *DefaultWorkspaceCreationProperties {
- s.CustomSecurityGroupId = &v
+// SetForgotPasswordLink sets the ForgotPasswordLink field's value.
+func (s *DefaultClientBrandingAttributes) SetForgotPasswordLink(v string) *DefaultClientBrandingAttributes {
+ s.ForgotPasswordLink = &v
return s
}
-// SetDefaultOu sets the DefaultOu field's value.
-func (s *DefaultWorkspaceCreationProperties) SetDefaultOu(v string) *DefaultWorkspaceCreationProperties {
- s.DefaultOu = &v
+// SetLoginMessage sets the LoginMessage field's value.
+func (s *DefaultClientBrandingAttributes) SetLoginMessage(v map[string]*string) *DefaultClientBrandingAttributes {
+ s.LoginMessage = v
return s
}
-// SetEnableInternetAccess sets the EnableInternetAccess field's value.
-func (s *DefaultWorkspaceCreationProperties) SetEnableInternetAccess(v bool) *DefaultWorkspaceCreationProperties {
- s.EnableInternetAccess = &v
+// SetLogoUrl sets the LogoUrl field's value.
+func (s *DefaultClientBrandingAttributes) SetLogoUrl(v string) *DefaultClientBrandingAttributes {
+ s.LogoUrl = &v
return s
}
-// SetEnableMaintenanceMode sets the EnableMaintenanceMode field's value.
-func (s *DefaultWorkspaceCreationProperties) SetEnableMaintenanceMode(v bool) *DefaultWorkspaceCreationProperties {
- s.EnableMaintenanceMode = &v
+// SetSupportEmail sets the SupportEmail field's value.
+func (s *DefaultClientBrandingAttributes) SetSupportEmail(v string) *DefaultClientBrandingAttributes {
+ s.SupportEmail = &v
return s
}
-// SetEnableWorkDocs sets the EnableWorkDocs field's value.
-func (s *DefaultWorkspaceCreationProperties) SetEnableWorkDocs(v bool) *DefaultWorkspaceCreationProperties {
- s.EnableWorkDocs = &v
+// SetSupportLink sets the SupportLink field's value.
+func (s *DefaultClientBrandingAttributes) SetSupportLink(v string) *DefaultClientBrandingAttributes {
+ s.SupportLink = &v
return s
}
-// SetUserEnabledAsLocalAdministrator sets the UserEnabledAsLocalAdministrator field's value.
-func (s *DefaultWorkspaceCreationProperties) SetUserEnabledAsLocalAdministrator(v bool) *DefaultWorkspaceCreationProperties {
- s.UserEnabledAsLocalAdministrator = &v
- return s
-}
+// The default client branding attributes to be imported. These attributes display
+// on the client login screen.
+//
+// Client branding attributes are public facing. Ensure that you do not include
+// sensitive information.
+type DefaultImportClientBrandingAttributes struct {
+ _ struct{} `type:"structure"`
+
+ // The forgotten password link. This is the web address that users can go to
+ // if they forget the password for their WorkSpace.
+ ForgotPasswordLink *string `min:"1" type:"string"`
+
+ // The login message. Specified as a key value pair, in which the key is a locale
+ // and the value is the localized message for that locale. The only key supported
+ // is en_US.
+ LoginMessage map[string]*string `type:"map"`
+
+ // The logo. This is the link where users can download the logo image. The only
+ // image format accepted is .png.
+ // Logo is automatically base64 encoded/decoded by the SDK.
+ Logo []byte `min:"1" type:"blob"`
+
+ // The support email. The company's customer support email address.
+ //
+ // * In each platform type, the SupportEmail and SupportLink parameters are
+ // mutually exclusive. You can specify one parameter for each platform type,
+ // but not both.
+ //
+ // * The default email is workspaces-feedback@amazon.com.
+ SupportEmail *string `min:"6" type:"string"`
+
+ // The support link. The link for the company's customer support page for their
+ // WorkSpace.
+ //
+ // * In each platform type, the SupportEmail and SupportLink parameters are
+ // mutually exclusive. You can specify one parameter for each platform type,
+ // but not both.
+ //
+ // * The default support link is workspaces-feedback@amazon.com.
+ SupportLink *string `min:"1" type:"string"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DefaultImportClientBrandingAttributes) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DefaultImportClientBrandingAttributes) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *DefaultImportClientBrandingAttributes) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "DefaultImportClientBrandingAttributes"}
+ if s.ForgotPasswordLink != nil && len(*s.ForgotPasswordLink) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("ForgotPasswordLink", 1))
+ }
+ if s.Logo != nil && len(s.Logo) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("Logo", 1))
+ }
+ if s.SupportEmail != nil && len(*s.SupportEmail) < 6 {
+ invalidParams.Add(request.NewErrParamMinLen("SupportEmail", 6))
+ }
+ if s.SupportLink != nil && len(*s.SupportLink) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("SupportLink", 1))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetForgotPasswordLink sets the ForgotPasswordLink field's value.
+func (s *DefaultImportClientBrandingAttributes) SetForgotPasswordLink(v string) *DefaultImportClientBrandingAttributes {
+ s.ForgotPasswordLink = &v
+ return s
+}
+
+// SetLoginMessage sets the LoginMessage field's value.
+func (s *DefaultImportClientBrandingAttributes) SetLoginMessage(v map[string]*string) *DefaultImportClientBrandingAttributes {
+ s.LoginMessage = v
+ return s
+}
+
+// SetLogo sets the Logo field's value.
+func (s *DefaultImportClientBrandingAttributes) SetLogo(v []byte) *DefaultImportClientBrandingAttributes {
+ s.Logo = v
+ return s
+}
+
+// SetSupportEmail sets the SupportEmail field's value.
+func (s *DefaultImportClientBrandingAttributes) SetSupportEmail(v string) *DefaultImportClientBrandingAttributes {
+ s.SupportEmail = &v
+ return s
+}
+
+// SetSupportLink sets the SupportLink field's value.
+func (s *DefaultImportClientBrandingAttributes) SetSupportLink(v string) *DefaultImportClientBrandingAttributes {
+ s.SupportLink = &v
+ return s
+}
+
+// Describes the default values that are used to create WorkSpaces. For more
+// information, see Update Directory Details for Your WorkSpaces (https://docs.aws.amazon.com/workspaces/latest/adminguide/update-directory-details.html).
+type DefaultWorkspaceCreationProperties struct {
+ _ struct{} `type:"structure"`
+
+ // The identifier of the default security group to apply to WorkSpaces when
+ // they are created. For more information, see Security Groups for Your WorkSpaces
+ // (https://docs.aws.amazon.com/workspaces/latest/adminguide/amazon-workspaces-security-groups.html).
+ CustomSecurityGroupId *string `min:"11" type:"string"`
+
+ // The organizational unit (OU) in the directory for the WorkSpace machine accounts.
+ DefaultOu *string `type:"string"`
+
+ // Specifies whether to automatically assign an Elastic public IP address to
+ // WorkSpaces in this directory by default. If enabled, the Elastic public IP
+ // address allows outbound internet access from your WorkSpaces when you’re
+ // using an internet gateway in the Amazon VPC in which your WorkSpaces are
+ // located. If you're using a Network Address Translation (NAT) gateway for
+ // outbound internet access from your VPC, or if your WorkSpaces are in public
+ // subnets and you manually assign them Elastic IP addresses, you should disable
+ // this setting. This setting applies to new WorkSpaces that you launch or to
+ // existing WorkSpaces that you rebuild. For more information, see Configure
+ // a VPC for Amazon WorkSpaces (https://docs.aws.amazon.com/workspaces/latest/adminguide/amazon-workspaces-vpc.html).
+ EnableInternetAccess *bool `type:"boolean"`
+
+ // Specifies whether maintenance mode is enabled for WorkSpaces. For more information,
+ // see WorkSpace Maintenance (https://docs.aws.amazon.com/workspaces/latest/adminguide/workspace-maintenance.html).
+ EnableMaintenanceMode *bool `type:"boolean"`
+
+ // Specifies whether the directory is enabled for Amazon WorkDocs.
+ EnableWorkDocs *bool `type:"boolean"`
+
+ // Specifies whether WorkSpace users are local administrators on their WorkSpaces.
+ UserEnabledAsLocalAdministrator *bool `type:"boolean"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DefaultWorkspaceCreationProperties) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DefaultWorkspaceCreationProperties) GoString() string {
+ return s.String()
+}
+
+// SetCustomSecurityGroupId sets the CustomSecurityGroupId field's value.
+func (s *DefaultWorkspaceCreationProperties) SetCustomSecurityGroupId(v string) *DefaultWorkspaceCreationProperties {
+ s.CustomSecurityGroupId = &v
+ return s
+}
+
+// SetDefaultOu sets the DefaultOu field's value.
+func (s *DefaultWorkspaceCreationProperties) SetDefaultOu(v string) *DefaultWorkspaceCreationProperties {
+ s.DefaultOu = &v
+ return s
+}
+
+// SetEnableInternetAccess sets the EnableInternetAccess field's value.
+func (s *DefaultWorkspaceCreationProperties) SetEnableInternetAccess(v bool) *DefaultWorkspaceCreationProperties {
+ s.EnableInternetAccess = &v
+ return s
+}
+
+// SetEnableMaintenanceMode sets the EnableMaintenanceMode field's value.
+func (s *DefaultWorkspaceCreationProperties) SetEnableMaintenanceMode(v bool) *DefaultWorkspaceCreationProperties {
+ s.EnableMaintenanceMode = &v
+ return s
+}
+
+// SetEnableWorkDocs sets the EnableWorkDocs field's value.
+func (s *DefaultWorkspaceCreationProperties) SetEnableWorkDocs(v bool) *DefaultWorkspaceCreationProperties {
+ s.EnableWorkDocs = &v
+ return s
+}
+
+// SetUserEnabledAsLocalAdministrator sets the UserEnabledAsLocalAdministrator field's value.
+func (s *DefaultWorkspaceCreationProperties) SetUserEnabledAsLocalAdministrator(v bool) *DefaultWorkspaceCreationProperties {
+ s.UserEnabledAsLocalAdministrator = &v
+ return s
+}
+
+type DeleteClientBrandingInput struct {
+ _ struct{} `type:"structure"`
+
+ // The device type for which you want to delete client branding.
+ //
+ // Platforms is a required field
+ Platforms []*string `min:"1" type:"list" required:"true" enum:"ClientDeviceType"`
+
+ // The directory identifier of the WorkSpace for which you want to delete client
+ // branding.
+ //
+ // ResourceId is a required field
+ ResourceId *string `min:"10" type:"string" required:"true"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DeleteClientBrandingInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DeleteClientBrandingInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *DeleteClientBrandingInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "DeleteClientBrandingInput"}
+ if s.Platforms == nil {
+ invalidParams.Add(request.NewErrParamRequired("Platforms"))
+ }
+ if s.Platforms != nil && len(s.Platforms) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("Platforms", 1))
+ }
+ if s.ResourceId == nil {
+ invalidParams.Add(request.NewErrParamRequired("ResourceId"))
+ }
+ if s.ResourceId != nil && len(*s.ResourceId) < 10 {
+ invalidParams.Add(request.NewErrParamMinLen("ResourceId", 10))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetPlatforms sets the Platforms field's value.
+func (s *DeleteClientBrandingInput) SetPlatforms(v []*string) *DeleteClientBrandingInput {
+ s.Platforms = v
+ return s
+}
+
+// SetResourceId sets the ResourceId field's value.
+func (s *DeleteClientBrandingInput) SetResourceId(v string) *DeleteClientBrandingInput {
+ s.ResourceId = &v
+ return s
+}
+
+type DeleteClientBrandingOutput struct {
+ _ struct{} `type:"structure"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DeleteClientBrandingOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DeleteClientBrandingOutput) GoString() string {
+ return s.String()
+}
type DeleteConnectClientAddInInput struct {
_ struct{} `type:"structure"`
@@ -7999,6 +8575,132 @@ func (s *DescribeAccountOutput) SetDedicatedTenancySupport(v string) *DescribeAc
return s
}
+type DescribeClientBrandingInput struct {
+ _ struct{} `type:"structure"`
+
+ // The directory identifier of the WorkSpace for which you want to view client
+ // branding information.
+ //
+ // ResourceId is a required field
+ ResourceId *string `min:"10" type:"string" required:"true"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DescribeClientBrandingInput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DescribeClientBrandingInput) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *DescribeClientBrandingInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "DescribeClientBrandingInput"}
+ if s.ResourceId == nil {
+ invalidParams.Add(request.NewErrParamRequired("ResourceId"))
+ }
+ if s.ResourceId != nil && len(*s.ResourceId) < 10 {
+ invalidParams.Add(request.NewErrParamMinLen("ResourceId", 10))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetResourceId sets the ResourceId field's value.
+func (s *DescribeClientBrandingInput) SetResourceId(v string) *DescribeClientBrandingInput {
+ s.ResourceId = &v
+ return s
+}
+
+type DescribeClientBrandingOutput struct {
+ _ struct{} `type:"structure"`
+
+ // The branding information for Android devices.
+ DeviceTypeAndroid *DefaultClientBrandingAttributes `type:"structure"`
+
+ // The branding information for iOS devices.
+ DeviceTypeIos *IosClientBrandingAttributes `type:"structure"`
+
+ // The branding information for Linux devices.
+ DeviceTypeLinux *DefaultClientBrandingAttributes `type:"structure"`
+
+ // The branding information for macOS devices.
+ DeviceTypeOsx *DefaultClientBrandingAttributes `type:"structure"`
+
+ // The branding information for Web access.
+ DeviceTypeWeb *DefaultClientBrandingAttributes `type:"structure"`
+
+ // The branding information for Windows devices.
+ DeviceTypeWindows *DefaultClientBrandingAttributes `type:"structure"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DescribeClientBrandingOutput) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s DescribeClientBrandingOutput) GoString() string {
+ return s.String()
+}
+
+// SetDeviceTypeAndroid sets the DeviceTypeAndroid field's value.
+func (s *DescribeClientBrandingOutput) SetDeviceTypeAndroid(v *DefaultClientBrandingAttributes) *DescribeClientBrandingOutput {
+ s.DeviceTypeAndroid = v
+ return s
+}
+
+// SetDeviceTypeIos sets the DeviceTypeIos field's value.
+func (s *DescribeClientBrandingOutput) SetDeviceTypeIos(v *IosClientBrandingAttributes) *DescribeClientBrandingOutput {
+ s.DeviceTypeIos = v
+ return s
+}
+
+// SetDeviceTypeLinux sets the DeviceTypeLinux field's value.
+func (s *DescribeClientBrandingOutput) SetDeviceTypeLinux(v *DefaultClientBrandingAttributes) *DescribeClientBrandingOutput {
+ s.DeviceTypeLinux = v
+ return s
+}
+
+// SetDeviceTypeOsx sets the DeviceTypeOsx field's value.
+func (s *DescribeClientBrandingOutput) SetDeviceTypeOsx(v *DefaultClientBrandingAttributes) *DescribeClientBrandingOutput {
+ s.DeviceTypeOsx = v
+ return s
+}
+
+// SetDeviceTypeWeb sets the DeviceTypeWeb field's value.
+func (s *DescribeClientBrandingOutput) SetDeviceTypeWeb(v *DefaultClientBrandingAttributes) *DescribeClientBrandingOutput {
+ s.DeviceTypeWeb = v
+ return s
+}
+
+// SetDeviceTypeWindows sets the DeviceTypeWindows field's value.
+func (s *DescribeClientBrandingOutput) SetDeviceTypeWindows(v *DefaultClientBrandingAttributes) *DescribeClientBrandingOutput {
+ s.DeviceTypeWindows = v
+ return s
+}
+
type DescribeClientPropertiesInput struct {
_ struct{} `type:"structure"`
@@ -9610,7 +10312,159 @@ type FailedCreateWorkspaceRequest struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s FailedCreateWorkspaceRequest) String() string {
+func (s FailedCreateWorkspaceRequest) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s FailedCreateWorkspaceRequest) GoString() string {
+ return s.String()
+}
+
+// SetErrorCode sets the ErrorCode field's value.
+func (s *FailedCreateWorkspaceRequest) SetErrorCode(v string) *FailedCreateWorkspaceRequest {
+ s.ErrorCode = &v
+ return s
+}
+
+// SetErrorMessage sets the ErrorMessage field's value.
+func (s *FailedCreateWorkspaceRequest) SetErrorMessage(v string) *FailedCreateWorkspaceRequest {
+ s.ErrorMessage = &v
+ return s
+}
+
+// SetWorkspaceRequest sets the WorkspaceRequest field's value.
+func (s *FailedCreateWorkspaceRequest) SetWorkspaceRequest(v *WorkspaceRequest) *FailedCreateWorkspaceRequest {
+ s.WorkspaceRequest = v
+ return s
+}
+
+// Describes a WorkSpace that could not be rebooted. (RebootWorkspaces), rebuilt
+// (RebuildWorkspaces), restored (RestoreWorkspace), terminated (TerminateWorkspaces),
+// started (StartWorkspaces), or stopped (StopWorkspaces).
+type FailedWorkspaceChangeRequest struct {
+ _ struct{} `type:"structure"`
+
+ // The error code that is returned if the WorkSpace cannot be rebooted.
+ ErrorCode *string `type:"string"`
+
+ // The text of the error message that is returned if the WorkSpace cannot be
+ // rebooted.
+ ErrorMessage *string `type:"string"`
+
+ // The identifier of the WorkSpace.
+ WorkspaceId *string `type:"string"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s FailedWorkspaceChangeRequest) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s FailedWorkspaceChangeRequest) GoString() string {
+ return s.String()
+}
+
+// SetErrorCode sets the ErrorCode field's value.
+func (s *FailedWorkspaceChangeRequest) SetErrorCode(v string) *FailedWorkspaceChangeRequest {
+ s.ErrorCode = &v
+ return s
+}
+
+// SetErrorMessage sets the ErrorMessage field's value.
+func (s *FailedWorkspaceChangeRequest) SetErrorMessage(v string) *FailedWorkspaceChangeRequest {
+ s.ErrorMessage = &v
+ return s
+}
+
+// SetWorkspaceId sets the WorkspaceId field's value.
+func (s *FailedWorkspaceChangeRequest) SetWorkspaceId(v string) *FailedWorkspaceChangeRequest {
+ s.WorkspaceId = &v
+ return s
+}
+
+// Describes the Amazon Web Services accounts that have been granted permission
+// to use a shared image. For more information about sharing images, see Share
+// or Unshare a Custom WorkSpaces Image (https://docs.aws.amazon.com/workspaces/latest/adminguide/share-custom-image.html).
+type ImagePermission struct {
+ _ struct{} `type:"structure"`
+
+ // The identifier of the Amazon Web Services account that an image has been
+ // shared with.
+ SharedAccountId *string `type:"string"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s ImagePermission) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s ImagePermission) GoString() string {
+ return s.String()
+}
+
+// SetSharedAccountId sets the SharedAccountId field's value.
+func (s *ImagePermission) SetSharedAccountId(v string) *ImagePermission {
+ s.SharedAccountId = &v
+ return s
+}
+
+type ImportClientBrandingInput struct {
+ _ struct{} `type:"structure"`
+
+ // The branding information to import for Android devices.
+ DeviceTypeAndroid *DefaultImportClientBrandingAttributes `type:"structure"`
+
+ // The branding information to import for iOS devices.
+ DeviceTypeIos *IosImportClientBrandingAttributes `type:"structure"`
+
+ // The branding information to import for Linux devices.
+ DeviceTypeLinux *DefaultImportClientBrandingAttributes `type:"structure"`
+
+ // The branding information to import for macOS devices.
+ DeviceTypeOsx *DefaultImportClientBrandingAttributes `type:"structure"`
+
+ // The branding information to import for web access.
+ DeviceTypeWeb *DefaultImportClientBrandingAttributes `type:"structure"`
+
+ // The branding information to import for Windows devices.
+ DeviceTypeWindows *DefaultImportClientBrandingAttributes `type:"structure"`
+
+ // The directory identifier of the WorkSpace for which you want to import client
+ // branding.
+ //
+ // ResourceId is a required field
+ ResourceId *string `min:"10" type:"string" required:"true"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s ImportClientBrandingInput) String() string {
return awsutil.Prettify(s)
}
@@ -9619,43 +10473,118 @@ func (s FailedCreateWorkspaceRequest) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s FailedCreateWorkspaceRequest) GoString() string {
+func (s ImportClientBrandingInput) GoString() string {
return s.String()
}
-// SetErrorCode sets the ErrorCode field's value.
-func (s *FailedCreateWorkspaceRequest) SetErrorCode(v string) *FailedCreateWorkspaceRequest {
- s.ErrorCode = &v
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *ImportClientBrandingInput) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "ImportClientBrandingInput"}
+ if s.ResourceId == nil {
+ invalidParams.Add(request.NewErrParamRequired("ResourceId"))
+ }
+ if s.ResourceId != nil && len(*s.ResourceId) < 10 {
+ invalidParams.Add(request.NewErrParamMinLen("ResourceId", 10))
+ }
+ if s.DeviceTypeAndroid != nil {
+ if err := s.DeviceTypeAndroid.Validate(); err != nil {
+ invalidParams.AddNested("DeviceTypeAndroid", err.(request.ErrInvalidParams))
+ }
+ }
+ if s.DeviceTypeIos != nil {
+ if err := s.DeviceTypeIos.Validate(); err != nil {
+ invalidParams.AddNested("DeviceTypeIos", err.(request.ErrInvalidParams))
+ }
+ }
+ if s.DeviceTypeLinux != nil {
+ if err := s.DeviceTypeLinux.Validate(); err != nil {
+ invalidParams.AddNested("DeviceTypeLinux", err.(request.ErrInvalidParams))
+ }
+ }
+ if s.DeviceTypeOsx != nil {
+ if err := s.DeviceTypeOsx.Validate(); err != nil {
+ invalidParams.AddNested("DeviceTypeOsx", err.(request.ErrInvalidParams))
+ }
+ }
+ if s.DeviceTypeWeb != nil {
+ if err := s.DeviceTypeWeb.Validate(); err != nil {
+ invalidParams.AddNested("DeviceTypeWeb", err.(request.ErrInvalidParams))
+ }
+ }
+ if s.DeviceTypeWindows != nil {
+ if err := s.DeviceTypeWindows.Validate(); err != nil {
+ invalidParams.AddNested("DeviceTypeWindows", err.(request.ErrInvalidParams))
+ }
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetDeviceTypeAndroid sets the DeviceTypeAndroid field's value.
+func (s *ImportClientBrandingInput) SetDeviceTypeAndroid(v *DefaultImportClientBrandingAttributes) *ImportClientBrandingInput {
+ s.DeviceTypeAndroid = v
return s
}
-// SetErrorMessage sets the ErrorMessage field's value.
-func (s *FailedCreateWorkspaceRequest) SetErrorMessage(v string) *FailedCreateWorkspaceRequest {
- s.ErrorMessage = &v
+// SetDeviceTypeIos sets the DeviceTypeIos field's value.
+func (s *ImportClientBrandingInput) SetDeviceTypeIos(v *IosImportClientBrandingAttributes) *ImportClientBrandingInput {
+ s.DeviceTypeIos = v
return s
}
-// SetWorkspaceRequest sets the WorkspaceRequest field's value.
-func (s *FailedCreateWorkspaceRequest) SetWorkspaceRequest(v *WorkspaceRequest) *FailedCreateWorkspaceRequest {
- s.WorkspaceRequest = v
+// SetDeviceTypeLinux sets the DeviceTypeLinux field's value.
+func (s *ImportClientBrandingInput) SetDeviceTypeLinux(v *DefaultImportClientBrandingAttributes) *ImportClientBrandingInput {
+ s.DeviceTypeLinux = v
return s
}
-// Describes a WorkSpace that could not be rebooted. (RebootWorkspaces), rebuilt
-// (RebuildWorkspaces), restored (RestoreWorkspace), terminated (TerminateWorkspaces),
-// started (StartWorkspaces), or stopped (StopWorkspaces).
-type FailedWorkspaceChangeRequest struct {
+// SetDeviceTypeOsx sets the DeviceTypeOsx field's value.
+func (s *ImportClientBrandingInput) SetDeviceTypeOsx(v *DefaultImportClientBrandingAttributes) *ImportClientBrandingInput {
+ s.DeviceTypeOsx = v
+ return s
+}
+
+// SetDeviceTypeWeb sets the DeviceTypeWeb field's value.
+func (s *ImportClientBrandingInput) SetDeviceTypeWeb(v *DefaultImportClientBrandingAttributes) *ImportClientBrandingInput {
+ s.DeviceTypeWeb = v
+ return s
+}
+
+// SetDeviceTypeWindows sets the DeviceTypeWindows field's value.
+func (s *ImportClientBrandingInput) SetDeviceTypeWindows(v *DefaultImportClientBrandingAttributes) *ImportClientBrandingInput {
+ s.DeviceTypeWindows = v
+ return s
+}
+
+// SetResourceId sets the ResourceId field's value.
+func (s *ImportClientBrandingInput) SetResourceId(v string) *ImportClientBrandingInput {
+ s.ResourceId = &v
+ return s
+}
+
+type ImportClientBrandingOutput struct {
_ struct{} `type:"structure"`
- // The error code that is returned if the WorkSpace cannot be rebooted.
- ErrorCode *string `type:"string"`
+ // The branding information configured for Android devices.
+ DeviceTypeAndroid *DefaultClientBrandingAttributes `type:"structure"`
- // The text of the error message that is returned if the WorkSpace cannot be
- // rebooted.
- ErrorMessage *string `type:"string"`
+ // The branding information configured for iOS devices.
+ DeviceTypeIos *IosClientBrandingAttributes `type:"structure"`
- // The identifier of the WorkSpace.
- WorkspaceId *string `type:"string"`
+ // The branding information configured for Linux devices.
+ DeviceTypeLinux *DefaultClientBrandingAttributes `type:"structure"`
+
+ // The branding information configured for macOS devices.
+ DeviceTypeOsx *DefaultClientBrandingAttributes `type:"structure"`
+
+ // The branding information configured for web access.
+ DeviceTypeWeb *DefaultClientBrandingAttributes `type:"structure"`
+
+ // The branding information configured for Windows devices.
+ DeviceTypeWindows *DefaultClientBrandingAttributes `type:"structure"`
}
// String returns the string representation.
@@ -9663,7 +10592,7 @@ type FailedWorkspaceChangeRequest struct {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s FailedWorkspaceChangeRequest) String() string {
+func (s ImportClientBrandingOutput) String() string {
return awsutil.Prettify(s)
}
@@ -9672,60 +10601,43 @@ func (s FailedWorkspaceChangeRequest) String() string {
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
-func (s FailedWorkspaceChangeRequest) GoString() string {
+func (s ImportClientBrandingOutput) GoString() string {
return s.String()
}
-// SetErrorCode sets the ErrorCode field's value.
-func (s *FailedWorkspaceChangeRequest) SetErrorCode(v string) *FailedWorkspaceChangeRequest {
- s.ErrorCode = &v
+// SetDeviceTypeAndroid sets the DeviceTypeAndroid field's value.
+func (s *ImportClientBrandingOutput) SetDeviceTypeAndroid(v *DefaultClientBrandingAttributes) *ImportClientBrandingOutput {
+ s.DeviceTypeAndroid = v
return s
}
-// SetErrorMessage sets the ErrorMessage field's value.
-func (s *FailedWorkspaceChangeRequest) SetErrorMessage(v string) *FailedWorkspaceChangeRequest {
- s.ErrorMessage = &v
+// SetDeviceTypeIos sets the DeviceTypeIos field's value.
+func (s *ImportClientBrandingOutput) SetDeviceTypeIos(v *IosClientBrandingAttributes) *ImportClientBrandingOutput {
+ s.DeviceTypeIos = v
return s
}
-// SetWorkspaceId sets the WorkspaceId field's value.
-func (s *FailedWorkspaceChangeRequest) SetWorkspaceId(v string) *FailedWorkspaceChangeRequest {
- s.WorkspaceId = &v
+// SetDeviceTypeLinux sets the DeviceTypeLinux field's value.
+func (s *ImportClientBrandingOutput) SetDeviceTypeLinux(v *DefaultClientBrandingAttributes) *ImportClientBrandingOutput {
+ s.DeviceTypeLinux = v
return s
}
-// Describes the Amazon Web Services accounts that have been granted permission
-// to use a shared image. For more information about sharing images, see Share
-// or Unshare a Custom WorkSpaces Image (https://docs.aws.amazon.com/workspaces/latest/adminguide/share-custom-image.html).
-type ImagePermission struct {
- _ struct{} `type:"structure"`
-
- // The identifier of the Amazon Web Services account that an image has been
- // shared with.
- SharedAccountId *string `type:"string"`
-}
-
-// String returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s ImagePermission) String() string {
- return awsutil.Prettify(s)
+// SetDeviceTypeOsx sets the DeviceTypeOsx field's value.
+func (s *ImportClientBrandingOutput) SetDeviceTypeOsx(v *DefaultClientBrandingAttributes) *ImportClientBrandingOutput {
+ s.DeviceTypeOsx = v
+ return s
}
-// GoString returns the string representation.
-//
-// API parameter values that are decorated as "sensitive" in the API will not
-// be included in the string output. The member name will be present, but the
-// value will be replaced with "sensitive".
-func (s ImagePermission) GoString() string {
- return s.String()
+// SetDeviceTypeWeb sets the DeviceTypeWeb field's value.
+func (s *ImportClientBrandingOutput) SetDeviceTypeWeb(v *DefaultClientBrandingAttributes) *ImportClientBrandingOutput {
+ s.DeviceTypeWeb = v
+ return s
}
-// SetSharedAccountId sets the SharedAccountId field's value.
-func (s *ImagePermission) SetSharedAccountId(v string) *ImagePermission {
- s.SharedAccountId = &v
+// SetDeviceTypeWindows sets the DeviceTypeWindows field's value.
+func (s *ImportClientBrandingOutput) SetDeviceTypeWindows(v *DefaultClientBrandingAttributes) *ImportClientBrandingOutput {
+ s.DeviceTypeWindows = v
return s
}
@@ -10024,6 +10936,273 @@ func (s *InvalidResourceStateException) RequestID() string {
return s.RespMetadata.RequestID
}
+// The client branding attributes for iOS device types. These attributes are
+// displayed on the iOS client login screen only.
+//
+// Client branding attributes are public facing. Ensure you do not include sensitive
+// information.
+type IosClientBrandingAttributes struct {
+ _ struct{} `type:"structure"`
+
+ // The forgotten password link. This is the web address that users can go to
+ // if they forget the password for their WorkSpace.
+ ForgotPasswordLink *string `min:"1" type:"string"`
+
+ // The login message. Specified as a key value pair, in which the key is a locale
+ // and the value is the localized message for that locale. The only key supported
+ // is en_US.
+ LoginMessage map[string]*string `type:"map"`
+
+ // The @2x version of the logo. This is the higher resolution display that offers
+ // a scale factor of 2.0 (or @2x).
+ //
+ // For more information about iOS image size and resolution, see Image Size
+ // and Resolution (https://developer.apple.com/design/human-interface-guidelines/ios/icons-and-images/image-size-and-resolution/)
+ // in the Apple Human Interface Guidelines.
+ Logo2xUrl *string `min:"1" type:"string"`
+
+ // The @3x version of the logo. This is the higher resolution display that offers
+ // a scale factor of 3.0 (or @3x).
+ //
+ // For more information about iOS image size and resolution, see Image Size
+ // and Resolution (https://developer.apple.com/design/human-interface-guidelines/ios/icons-and-images/image-size-and-resolution/)
+ // in the Apple Human Interface Guidelines.
+ Logo3xUrl *string `min:"1" type:"string"`
+
+ // The logo. This is the link where users can download the logo image. This
+ // is the standard-resolution display that has a 1:1 pixel density (or @1x),
+ // where one pixel is equal to one point.
+ LogoUrl *string `min:"1" type:"string"`
+
+ // The support email. The company's customer support email address.
+ //
+ // * In each platform type, the SupportEmail and SupportLink parameters are
+ // mutually exclusive. You can specify one parameter for each platform type,
+ // but not both.
+ //
+ // * The default email is workspaces-feedback@amazon.com.
+ SupportEmail *string `min:"6" type:"string"`
+
+ // The support link. The link for the company's customer support page for their
+ // WorkSpace.
+ //
+ // * In each platform type, the SupportEmail and SupportLink parameters are
+ // mutually exclusive. You can specify one parameter for each platform type,
+ // but not both.
+ //
+ // * The default support link is workspaces-feedback@amazon.com.
+ SupportLink *string `min:"1" type:"string"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s IosClientBrandingAttributes) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s IosClientBrandingAttributes) GoString() string {
+ return s.String()
+}
+
+// SetForgotPasswordLink sets the ForgotPasswordLink field's value.
+func (s *IosClientBrandingAttributes) SetForgotPasswordLink(v string) *IosClientBrandingAttributes {
+ s.ForgotPasswordLink = &v
+ return s
+}
+
+// SetLoginMessage sets the LoginMessage field's value.
+func (s *IosClientBrandingAttributes) SetLoginMessage(v map[string]*string) *IosClientBrandingAttributes {
+ s.LoginMessage = v
+ return s
+}
+
+// SetLogo2xUrl sets the Logo2xUrl field's value.
+func (s *IosClientBrandingAttributes) SetLogo2xUrl(v string) *IosClientBrandingAttributes {
+ s.Logo2xUrl = &v
+ return s
+}
+
+// SetLogo3xUrl sets the Logo3xUrl field's value.
+func (s *IosClientBrandingAttributes) SetLogo3xUrl(v string) *IosClientBrandingAttributes {
+ s.Logo3xUrl = &v
+ return s
+}
+
+// SetLogoUrl sets the LogoUrl field's value.
+func (s *IosClientBrandingAttributes) SetLogoUrl(v string) *IosClientBrandingAttributes {
+ s.LogoUrl = &v
+ return s
+}
+
+// SetSupportEmail sets the SupportEmail field's value.
+func (s *IosClientBrandingAttributes) SetSupportEmail(v string) *IosClientBrandingAttributes {
+ s.SupportEmail = &v
+ return s
+}
+
+// SetSupportLink sets the SupportLink field's value.
+func (s *IosClientBrandingAttributes) SetSupportLink(v string) *IosClientBrandingAttributes {
+ s.SupportLink = &v
+ return s
+}
+
+// The client branding attributes to import for iOS device types. These attributes
+// are displayed on the iOS client login screen.
+//
+// Client branding attributes are public facing. Ensure you do not include sensitive
+// information.
+type IosImportClientBrandingAttributes struct {
+ _ struct{} `type:"structure"`
+
+ // The forgotten password link. This is the web address that users can go to
+ // if they forget the password for their WorkSpace.
+ ForgotPasswordLink *string `min:"1" type:"string"`
+
+ // The login message. Specified as a key value pair, in which the key is a locale
+ // and the value is the localized message for that locale. The only key supported
+ // is en_US.
+ LoginMessage map[string]*string `type:"map"`
+
+ // The logo. This is the link where users can download the logo image. This
+ // is the standard-resolution display that has a 1:1 pixel density (or @1x),
+ // where one pixel is equal to one point.
+ // Logo is automatically base64 encoded/decoded by the SDK.
+ Logo []byte `min:"1" type:"blob"`
+
+ // The @2x version of the logo. This is the higher resolution display that offers
+ // a scale factor of 2.0 (or @2x).
+ //
+ // For more information about iOS image size and resolution, see Image Size
+ // and Resolution (https://developer.apple.com/design/human-interface-guidelines/ios/icons-and-images/image-size-and-resolution/)
+ // in the Apple Human Interface Guidelines.
+ // Logo2x is automatically base64 encoded/decoded by the SDK.
+ Logo2x []byte `min:"1" type:"blob"`
+
+ // The @3x version of the logo. This is the higher resolution display that offers
+ // a scale factor of 3.0 (or @3x).
+ //
+ // For more information about iOS image size and resolution, see Image Size
+ // and Resolution (https://developer.apple.com/design/human-interface-guidelines/ios/icons-and-images/image-size-and-resolution/)
+ // in the Apple Human Interface Guidelines.
+ // Logo3x is automatically base64 encoded/decoded by the SDK.
+ Logo3x []byte `min:"1" type:"blob"`
+
+ // The support email. The company's customer support email address.
+ //
+ // * In each platform type, the SupportEmail and SupportLink parameters are
+ // mutually exclusive. You can specify one parameter for each platform type,
+ // but not both.
+ //
+ // * The default email is workspaces-feedback@amazon.com.
+ SupportEmail *string `min:"6" type:"string"`
+
+ // The support link. The link for the company's customer support page for their
+ // WorkSpace.
+ //
+ // * In each platform type, the SupportEmail and SupportLink parameters are
+ // mutually exclusive. You can specify one parameter for each platform type,
+ // but not both.
+ //
+ // * The default support link is workspaces-feedback@amazon.com.
+ SupportLink *string `min:"1" type:"string"`
+}
+
+// String returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s IosImportClientBrandingAttributes) String() string {
+ return awsutil.Prettify(s)
+}
+
+// GoString returns the string representation.
+//
+// API parameter values that are decorated as "sensitive" in the API will not
+// be included in the string output. The member name will be present, but the
+// value will be replaced with "sensitive".
+func (s IosImportClientBrandingAttributes) GoString() string {
+ return s.String()
+}
+
+// Validate inspects the fields of the type to determine if they are valid.
+func (s *IosImportClientBrandingAttributes) Validate() error {
+ invalidParams := request.ErrInvalidParams{Context: "IosImportClientBrandingAttributes"}
+ if s.ForgotPasswordLink != nil && len(*s.ForgotPasswordLink) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("ForgotPasswordLink", 1))
+ }
+ if s.Logo != nil && len(s.Logo) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("Logo", 1))
+ }
+ if s.Logo2x != nil && len(s.Logo2x) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("Logo2x", 1))
+ }
+ if s.Logo3x != nil && len(s.Logo3x) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("Logo3x", 1))
+ }
+ if s.SupportEmail != nil && len(*s.SupportEmail) < 6 {
+ invalidParams.Add(request.NewErrParamMinLen("SupportEmail", 6))
+ }
+ if s.SupportLink != nil && len(*s.SupportLink) < 1 {
+ invalidParams.Add(request.NewErrParamMinLen("SupportLink", 1))
+ }
+
+ if invalidParams.Len() > 0 {
+ return invalidParams
+ }
+ return nil
+}
+
+// SetForgotPasswordLink sets the ForgotPasswordLink field's value.
+func (s *IosImportClientBrandingAttributes) SetForgotPasswordLink(v string) *IosImportClientBrandingAttributes {
+ s.ForgotPasswordLink = &v
+ return s
+}
+
+// SetLoginMessage sets the LoginMessage field's value.
+func (s *IosImportClientBrandingAttributes) SetLoginMessage(v map[string]*string) *IosImportClientBrandingAttributes {
+ s.LoginMessage = v
+ return s
+}
+
+// SetLogo sets the Logo field's value.
+func (s *IosImportClientBrandingAttributes) SetLogo(v []byte) *IosImportClientBrandingAttributes {
+ s.Logo = v
+ return s
+}
+
+// SetLogo2x sets the Logo2x field's value.
+func (s *IosImportClientBrandingAttributes) SetLogo2x(v []byte) *IosImportClientBrandingAttributes {
+ s.Logo2x = v
+ return s
+}
+
+// SetLogo3x sets the Logo3x field's value.
+func (s *IosImportClientBrandingAttributes) SetLogo3x(v []byte) *IosImportClientBrandingAttributes {
+ s.Logo3x = v
+ return s
+}
+
+// SetSupportEmail sets the SupportEmail field's value.
+func (s *IosImportClientBrandingAttributes) SetSupportEmail(v string) *IosImportClientBrandingAttributes {
+ s.SupportEmail = &v
+ return s
+}
+
+// SetSupportLink sets the SupportLink field's value.
+func (s *IosImportClientBrandingAttributes) SetSupportLink(v string) *IosImportClientBrandingAttributes {
+ s.SupportLink = &v
+ return s
+}
+
// Describes an IP access control group.
type IpGroup struct {
_ struct{} `type:"structure"`
@@ -14521,6 +15700,38 @@ func AssociationStatus_Values() []string {
}
}
+const (
+ // ClientDeviceTypeDeviceTypeWindows is a ClientDeviceType enum value
+ ClientDeviceTypeDeviceTypeWindows = "DeviceTypeWindows"
+
+ // ClientDeviceTypeDeviceTypeOsx is a ClientDeviceType enum value
+ ClientDeviceTypeDeviceTypeOsx = "DeviceTypeOsx"
+
+ // ClientDeviceTypeDeviceTypeAndroid is a ClientDeviceType enum value
+ ClientDeviceTypeDeviceTypeAndroid = "DeviceTypeAndroid"
+
+ // ClientDeviceTypeDeviceTypeIos is a ClientDeviceType enum value
+ ClientDeviceTypeDeviceTypeIos = "DeviceTypeIos"
+
+ // ClientDeviceTypeDeviceTypeLinux is a ClientDeviceType enum value
+ ClientDeviceTypeDeviceTypeLinux = "DeviceTypeLinux"
+
+ // ClientDeviceTypeDeviceTypeWeb is a ClientDeviceType enum value
+ ClientDeviceTypeDeviceTypeWeb = "DeviceTypeWeb"
+)
+
+// ClientDeviceType_Values returns all elements of the ClientDeviceType enum
+func ClientDeviceType_Values() []string {
+ return []string{
+ ClientDeviceTypeDeviceTypeWindows,
+ ClientDeviceTypeDeviceTypeOsx,
+ ClientDeviceTypeDeviceTypeAndroid,
+ ClientDeviceTypeDeviceTypeIos,
+ ClientDeviceTypeDeviceTypeLinux,
+ ClientDeviceTypeDeviceTypeWeb,
+ }
+}
+
const (
// ComputeValue is a Compute enum value
ComputeValue = "VALUE"
diff --git a/service/workspaces/doc.go b/service/workspaces/doc.go
index 882a1973f0d..2f5b430bd7d 100644
--- a/service/workspaces/doc.go
+++ b/service/workspaces/doc.go
@@ -4,7 +4,25 @@
// requests to Amazon WorkSpaces.
//
// Amazon WorkSpaces enables you to provision virtual, cloud-based Microsoft
-// Windows and Amazon Linux desktops for your users.
+// Windows or Amazon Linux desktops for your users, known as WorkSpaces. WorkSpaces
+// eliminates the need to procure and deploy hardware or install complex software.
+// You can quickly add or remove users as your needs change. Users can access
+// their virtual desktops from multiple devices or web browsers.
+//
+// This API Reference provides detailed information about the actions, data
+// types, parameters, and errors of the WorkSpaces service. For more information
+// about the supported Amazon Web Services Regions, endpoints, and service quotas
+// of the Amazon WorkSpaces service, see WorkSpaces endpoints and quotas (https://docs.aws.amazon.com/general/latest/gr/wsp.html)
+// in the Amazon Web Services General Reference.
+//
+// You can also manage your WorkSpaces resources using the WorkSpaces console,
+// Command Line Interface (CLI), and SDKs. For more information about administering
+// WorkSpaces, see the Amazon WorkSpaces Administration Guide (https://docs.aws.amazon.com/workspaces/latest/adminguide/).
+// For more information about using the Amazon WorkSpaces client application
+// or web browser to access provisioned WorkSpaces, see the Amazon WorkSpaces
+// User Guide (https://docs.aws.amazon.com/workspaces/latest/userguide/). For
+// more information about using the CLI to manage your WorkSpaces resources,
+// see the WorkSpaces section of the CLI Reference (https://docs.aws.amazon.com/cli/latest/reference/workspaces/index.html).
//
// See https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08 for more information on this service.
//
diff --git a/service/workspaces/workspacesiface/interface.go b/service/workspaces/workspacesiface/interface.go
index 4ee719f13fe..67b5db338cf 100644
--- a/service/workspaces/workspacesiface/interface.go
+++ b/service/workspaces/workspacesiface/interface.go
@@ -104,6 +104,10 @@ type WorkSpacesAPI interface {
CreateWorkspacesWithContext(aws.Context, *workspaces.CreateWorkspacesInput, ...request.Option) (*workspaces.CreateWorkspacesOutput, error)
CreateWorkspacesRequest(*workspaces.CreateWorkspacesInput) (*request.Request, *workspaces.CreateWorkspacesOutput)
+ DeleteClientBranding(*workspaces.DeleteClientBrandingInput) (*workspaces.DeleteClientBrandingOutput, error)
+ DeleteClientBrandingWithContext(aws.Context, *workspaces.DeleteClientBrandingInput, ...request.Option) (*workspaces.DeleteClientBrandingOutput, error)
+ DeleteClientBrandingRequest(*workspaces.DeleteClientBrandingInput) (*request.Request, *workspaces.DeleteClientBrandingOutput)
+
DeleteConnectClientAddIn(*workspaces.DeleteConnectClientAddInInput) (*workspaces.DeleteConnectClientAddInOutput, error)
DeleteConnectClientAddInWithContext(aws.Context, *workspaces.DeleteConnectClientAddInInput, ...request.Option) (*workspaces.DeleteConnectClientAddInOutput, error)
DeleteConnectClientAddInRequest(*workspaces.DeleteConnectClientAddInInput) (*request.Request, *workspaces.DeleteConnectClientAddInOutput)
@@ -140,6 +144,10 @@ type WorkSpacesAPI interface {
DescribeAccountModificationsWithContext(aws.Context, *workspaces.DescribeAccountModificationsInput, ...request.Option) (*workspaces.DescribeAccountModificationsOutput, error)
DescribeAccountModificationsRequest(*workspaces.DescribeAccountModificationsInput) (*request.Request, *workspaces.DescribeAccountModificationsOutput)
+ DescribeClientBranding(*workspaces.DescribeClientBrandingInput) (*workspaces.DescribeClientBrandingOutput, error)
+ DescribeClientBrandingWithContext(aws.Context, *workspaces.DescribeClientBrandingInput, ...request.Option) (*workspaces.DescribeClientBrandingOutput, error)
+ DescribeClientBrandingRequest(*workspaces.DescribeClientBrandingInput) (*request.Request, *workspaces.DescribeClientBrandingOutput)
+
DescribeClientProperties(*workspaces.DescribeClientPropertiesInput) (*workspaces.DescribeClientPropertiesOutput, error)
DescribeClientPropertiesWithContext(aws.Context, *workspaces.DescribeClientPropertiesInput, ...request.Option) (*workspaces.DescribeClientPropertiesOutput, error)
DescribeClientPropertiesRequest(*workspaces.DescribeClientPropertiesInput) (*request.Request, *workspaces.DescribeClientPropertiesOutput)
@@ -209,6 +217,10 @@ type WorkSpacesAPI interface {
DisassociateIpGroupsWithContext(aws.Context, *workspaces.DisassociateIpGroupsInput, ...request.Option) (*workspaces.DisassociateIpGroupsOutput, error)
DisassociateIpGroupsRequest(*workspaces.DisassociateIpGroupsInput) (*request.Request, *workspaces.DisassociateIpGroupsOutput)
+ ImportClientBranding(*workspaces.ImportClientBrandingInput) (*workspaces.ImportClientBrandingOutput, error)
+ ImportClientBrandingWithContext(aws.Context, *workspaces.ImportClientBrandingInput, ...request.Option) (*workspaces.ImportClientBrandingOutput, error)
+ ImportClientBrandingRequest(*workspaces.ImportClientBrandingInput) (*request.Request, *workspaces.ImportClientBrandingOutput)
+
ImportWorkspaceImage(*workspaces.ImportWorkspaceImageInput) (*workspaces.ImportWorkspaceImageOutput, error)
ImportWorkspaceImageWithContext(aws.Context, *workspaces.ImportWorkspaceImageInput, ...request.Option) (*workspaces.ImportWorkspaceImageOutput, error)
ImportWorkspaceImageRequest(*workspaces.ImportWorkspaceImageInput) (*request.Request, *workspaces.ImportWorkspaceImageOutput)