diff --git a/CHANGELOG.md b/CHANGELOG.md index c02db6c4c4..fc14e8d38e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,13 @@ +Release v1.43.43 (2022-04-20) +=== + +### Service Client Updates +* `service/connect`: Updates service API, documentation, and paginators +* `service/macie2`: Updates service API and documentation +* `service/mgn`: Updates service API and documentation +* `service/rds`: Updates service API, documentation, waiters, paginators, and examples + * Added a new cluster-level attribute to set the capacity range for Aurora Serverless v2 instances. + Release v1.43.42 (2022-04-19) === diff --git a/aws/endpoints/defaults.go b/aws/endpoints/defaults.go index 27ef3813b5..8e41aa0ea4 100644 --- a/aws/endpoints/defaults.go +++ b/aws/endpoints/defaults.go @@ -5673,6 +5673,9 @@ var awsPartition = partition{ endpointKey{ Region: "ap-southeast-2", }: endpoint{}, + endpointKey{ + Region: "ap-southeast-3", + }: endpoint{}, endpointKey{ Region: "ca-central-1", }: endpoint{}, diff --git a/aws/version.go b/aws/version.go index 2f055b57c5..823cf0b265 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.42" +const SDKVersion = "1.43.43" diff --git a/models/apis/connect/2017-08-08/api-2.json b/models/apis/connect/2017-08-08/api-2.json index 89c521929e..cacb44f78f 100644 --- a/models/apis/connect/2017-08-08/api-2.json +++ b/models/apis/connect/2017-08-08/api-2.json @@ -114,6 +114,21 @@ {"shape":"ThrottlingException"} ] }, + "AssociatePhoneNumberContactFlow":{ + "name":"AssociatePhoneNumberContactFlow", + "http":{ + "method":"PUT", + "requestUri":"/phone-number/{PhoneNumberId}/contact-flow" + }, + "input":{"shape":"AssociatePhoneNumberContactFlowRequest"}, + "errors":[ + {"shape":"InvalidParameterException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ThrottlingException"}, + {"shape":"InternalServiceException"}, + {"shape":"AccessDeniedException"} + ] + }, "AssociateQueueQuickConnects":{ "name":"AssociateQueueQuickConnects", "http":{ @@ -163,6 +178,23 @@ {"shape":"ThrottlingException"} ] }, + "ClaimPhoneNumber":{ + "name":"ClaimPhoneNumber", + "http":{ + "method":"POST", + "requestUri":"/phone-number/claim" + }, + "input":{"shape":"ClaimPhoneNumberRequest"}, + "output":{"shape":"ClaimPhoneNumberResponse"}, + "errors":[ + {"shape":"InvalidParameterException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ThrottlingException"}, + {"shape":"InternalServiceException"}, + {"shape":"IdempotencyException"}, + {"shape":"AccessDeniedException"} + ] + }, "CreateAgentStatus":{ "name":"CreateAgentStatus", "http":{ @@ -710,6 +742,22 @@ {"shape":"ThrottlingException"} ] }, + "DescribePhoneNumber":{ + "name":"DescribePhoneNumber", + "http":{ + "method":"GET", + "requestUri":"/phone-number/{PhoneNumberId}" + }, + "input":{"shape":"DescribePhoneNumberRequest"}, + "output":{"shape":"DescribePhoneNumberResponse"}, + "errors":[ + {"shape":"InvalidParameterException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ThrottlingException"}, + {"shape":"InternalServiceException"}, + {"shape":"AccessDeniedException"} + ] + }, "DescribeQueue":{ "name":"DescribeQueue", "http":{ @@ -912,6 +960,21 @@ {"shape":"ThrottlingException"} ] }, + "DisassociatePhoneNumberContactFlow":{ + "name":"DisassociatePhoneNumberContactFlow", + "http":{ + "method":"DELETE", + "requestUri":"/phone-number/{PhoneNumberId}/contact-flow" + }, + "input":{"shape":"DisassociatePhoneNumberContactFlowRequest"}, + "errors":[ + {"shape":"InvalidParameterException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ThrottlingException"}, + {"shape":"InternalServiceException"}, + {"shape":"AccessDeniedException"} + ] + }, "DisassociateQueueQuickConnects":{ "name":"DisassociateQueueQuickConnects", "http":{ @@ -1255,6 +1318,22 @@ {"shape":"InternalServiceException"} ] }, + "ListPhoneNumbersV2":{ + "name":"ListPhoneNumbersV2", + "http":{ + "method":"POST", + "requestUri":"/phone-number/list" + }, + "input":{"shape":"ListPhoneNumbersV2Request"}, + "output":{"shape":"ListPhoneNumbersV2Response"}, + "errors":[ + {"shape":"InvalidParameterException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ThrottlingException"}, + {"shape":"InternalServiceException"}, + {"shape":"AccessDeniedException"} + ] + }, "ListPrompts":{ "name":"ListPrompts", "http":{ @@ -1462,6 +1541,23 @@ {"shape":"InternalServiceException"} ] }, + "ReleasePhoneNumber":{ + "name":"ReleasePhoneNumber", + "http":{ + "method":"DELETE", + "requestUri":"/phone-number/{PhoneNumberId}" + }, + "input":{"shape":"ReleasePhoneNumberRequest"}, + "errors":[ + {"shape":"InvalidParameterException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ThrottlingException"}, + {"shape":"InternalServiceException"}, + {"shape":"ResourceInUseException"}, + {"shape":"IdempotencyException"}, + {"shape":"AccessDeniedException"} + ] + }, "ResumeContactRecording":{ "name":"ResumeContactRecording", "http":{ @@ -1476,6 +1572,21 @@ {"shape":"InternalServiceException"} ] }, + "SearchAvailablePhoneNumbers":{ + "name":"SearchAvailablePhoneNumbers", + "http":{ + "method":"POST", + "requestUri":"/phone-number/search-available" + }, + "input":{"shape":"SearchAvailablePhoneNumbersRequest"}, + "output":{"shape":"SearchAvailablePhoneNumbersResponse"}, + "errors":[ + {"shape":"InvalidParameterException"}, + {"shape":"ThrottlingException"}, + {"shape":"InternalServiceException"}, + {"shape":"AccessDeniedException"} + ] + }, "SearchVocabularies":{ "name":"SearchVocabularies", "http":{ @@ -1856,6 +1967,24 @@ {"shape":"ThrottlingException"} ] }, + "UpdatePhoneNumber":{ + "name":"UpdatePhoneNumber", + "http":{ + "method":"PUT", + "requestUri":"/phone-number/{PhoneNumberId}" + }, + "input":{"shape":"UpdatePhoneNumberRequest"}, + "output":{"shape":"UpdatePhoneNumberResponse"}, + "errors":[ + {"shape":"InvalidParameterException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ThrottlingException"}, + {"shape":"InternalServiceException"}, + {"shape":"ResourceInUseException"}, + {"shape":"IdempotencyException"}, + {"shape":"AccessDeniedException"} + ] + }, "UpdateQueueHoursOfOperation":{ "name":"UpdateQueueHoursOfOperation", "http":{ @@ -2367,6 +2496,23 @@ "LexBot":{"shape":"LexBot"} } }, + "AssociatePhoneNumberContactFlowRequest":{ + "type":"structure", + "required":[ + "PhoneNumberId", + "InstanceId", + "ContactFlowId" + ], + "members":{ + "PhoneNumberId":{ + "shape":"PhoneNumberId", + "location":"uri", + "locationName":"PhoneNumberId" + }, + "InstanceId":{"shape":"InstanceId"}, + "ContactFlowId":{"shape":"ContactFlowId"} + } + }, "AssociateQueueQuickConnectsRequest":{ "type":"structure", "required":[ @@ -2470,6 +2616,18 @@ "member":{"shape":"Attribute"} }, "AutoAccept":{"type":"boolean"}, + "AvailableNumberSummary":{ + "type":"structure", + "members":{ + "PhoneNumber":{"shape":"PhoneNumber"}, + "PhoneNumberCountryCode":{"shape":"PhoneNumberCountryCode"}, + "PhoneNumberType":{"shape":"PhoneNumberType"} + } + }, + "AvailableNumbersList":{ + "type":"list", + "member":{"shape":"AvailableNumberSummary"} + }, "Boolean":{"type":"boolean"}, "BotName":{ "type":"string", @@ -2536,6 +2694,44 @@ "max":350, "min":1 }, + "ClaimPhoneNumberRequest":{ + "type":"structure", + "required":[ + "TargetArn", + "PhoneNumber" + ], + "members":{ + "TargetArn":{"shape":"ARN"}, + "PhoneNumber":{"shape":"PhoneNumber"}, + "PhoneNumberDescription":{"shape":"PhoneNumberDescription"}, + "Tags":{"shape":"TagMap"}, + "ClientToken":{ + "shape":"ClientToken", + "idempotencyToken":true + } + } + }, + "ClaimPhoneNumberResponse":{ + "type":"structure", + "members":{ + "PhoneNumberId":{"shape":"PhoneNumberId"}, + "PhoneNumberArn":{"shape":"ARN"} + } + }, + "ClaimedPhoneNumberSummary":{ + "type":"structure", + "members":{ + "PhoneNumberId":{"shape":"PhoneNumberId"}, + "PhoneNumberArn":{"shape":"ARN"}, + "PhoneNumber":{"shape":"PhoneNumber"}, + "PhoneNumberCountryCode":{"shape":"PhoneNumberCountryCode"}, + "PhoneNumberType":{"shape":"PhoneNumberType"}, + "PhoneNumberDescription":{"shape":"PhoneNumberDescription"}, + "TargetArn":{"shape":"ARN"}, + "Tags":{"shape":"TagMap"}, + "PhoneNumberStatus":{"shape":"PhoneNumberStatus"} + } + }, "ClientToken":{ "type":"string", "max":500 @@ -3648,6 +3844,23 @@ "StorageConfig":{"shape":"InstanceStorageConfig"} } }, + "DescribePhoneNumberRequest":{ + "type":"structure", + "required":["PhoneNumberId"], + "members":{ + "PhoneNumberId":{ + "shape":"PhoneNumberId", + "location":"uri", + "locationName":"PhoneNumberId" + } + } + }, + "DescribePhoneNumberResponse":{ + "type":"structure", + "members":{ + "ClaimedPhoneNumberSummary":{"shape":"ClaimedPhoneNumberSummary"} + } + }, "DescribeQueueRequest":{ "type":"structure", "required":[ @@ -3984,6 +4197,25 @@ } } }, + "DisassociatePhoneNumberContactFlowRequest":{ + "type":"structure", + "required":[ + "PhoneNumberId", + "InstanceId" + ], + "members":{ + "PhoneNumberId":{ + "shape":"PhoneNumberId", + "location":"uri", + "locationName":"PhoneNumberId" + }, + "InstanceId":{ + "shape":"InstanceId", + "location":"querystring", + "locationName":"instanceId" + } + } + }, "DisassociateQueueQuickConnectsRequest":{ "type":"structure", "required":[ @@ -4652,6 +4884,11 @@ "EncryptionConfig":{"shape":"EncryptionConfig"} } }, + "LargeNextToken":{ + "type":"string", + "max":100000, + "min":1 + }, "LexBot":{ "type":"structure", "members":{ @@ -5172,6 +5409,42 @@ "NextToken":{"shape":"NextToken"} } }, + "ListPhoneNumbersSummary":{ + "type":"structure", + "members":{ + "PhoneNumberId":{"shape":"PhoneNumberId"}, + "PhoneNumberArn":{"shape":"ARN"}, + "PhoneNumber":{"shape":"PhoneNumber"}, + "PhoneNumberCountryCode":{"shape":"PhoneNumberCountryCode"}, + "PhoneNumberType":{"shape":"PhoneNumberType"}, + "TargetArn":{"shape":"ARN"} + } + }, + "ListPhoneNumbersSummaryList":{ + "type":"list", + "member":{"shape":"ListPhoneNumbersSummary"} + }, + "ListPhoneNumbersV2Request":{ + "type":"structure", + "members":{ + "TargetArn":{"shape":"ARN"}, + "MaxResults":{ + "shape":"MaxResult1000", + "box":true + }, + "NextToken":{"shape":"LargeNextToken"}, + "PhoneNumberCountryCodes":{"shape":"PhoneNumberCountryCodes"}, + "PhoneNumberTypes":{"shape":"PhoneNumberTypes"}, + "PhoneNumberPrefix":{"shape":"PhoneNumberPrefix"} + } + }, + "ListPhoneNumbersV2Response":{ + "type":"structure", + "members":{ + "NextToken":{"shape":"LargeNextToken"}, + "ListPhoneNumbersSummaryList":{"shape":"ListPhoneNumbersSummaryList"} + } + }, "ListPromptsRequest":{ "type":"structure", "required":["InstanceId"], @@ -5696,7 +5969,10 @@ "member":{"shape":"SecurityProfilePermission"}, "max":500 }, - "PhoneNumber":{"type":"string"}, + "PhoneNumber":{ + "type":"string", + "pattern":"\\\\+[1-9]\\\\d{1,14}$" + }, "PhoneNumberCountryCode":{ "type":"string", "enum":[ @@ -5944,7 +6220,17 @@ "member":{"shape":"PhoneNumberCountryCode"}, "max":10 }, + "PhoneNumberDescription":{ + "type":"string", + "max":500, + "min":0, + "pattern":"^[\\W\\S_]*" + }, "PhoneNumberId":{"type":"string"}, + "PhoneNumberPrefix":{ + "type":"string", + "pattern":"\\\\+?[0-9]{1,11}" + }, "PhoneNumberQuickConnectConfig":{ "type":"structure", "required":["PhoneNumber"], @@ -5952,6 +6238,13 @@ "PhoneNumber":{"shape":"PhoneNumber"} } }, + "PhoneNumberStatus":{ + "type":"structure", + "members":{ + "Status":{"shape":"PhoneNumberWorkflowStatus"}, + "Message":{"shape":"PhoneNumberWorkflowMessage"} + } + }, "PhoneNumberSummary":{ "type":"structure", "members":{ @@ -5978,6 +6271,20 @@ "member":{"shape":"PhoneNumberType"}, "max":2 }, + "PhoneNumberWorkflowMessage":{ + "type":"string", + "max":255, + "min":0, + "pattern":"^[\\W\\S_]*" + }, + "PhoneNumberWorkflowStatus":{ + "type":"string", + "enum":[ + "CLAIMED", + "IN_PROGRESS", + "FAILED" + ] + }, "PhoneType":{ "type":"string", "enum":[ @@ -6245,6 +6552,23 @@ "max":4096, "min":0 }, + "ReleasePhoneNumberRequest":{ + "type":"structure", + "required":["PhoneNumberId"], + "members":{ + "PhoneNumberId":{ + "shape":"PhoneNumberId", + "location":"uri", + "locationName":"PhoneNumberId" + }, + "ClientToken":{ + "shape":"ClientToken", + "idempotencyToken":true, + "location":"querystring", + "locationName":"clientToken" + } + } + }, "ResourceConflictException":{ "type":"structure", "members":{ @@ -6412,6 +6736,32 @@ "EncryptionConfig":{"shape":"EncryptionConfig"} } }, + "SearchAvailablePhoneNumbersRequest":{ + "type":"structure", + "required":[ + "TargetArn", + "PhoneNumberCountryCode", + "PhoneNumberType" + ], + "members":{ + "TargetArn":{"shape":"ARN"}, + "PhoneNumberCountryCode":{"shape":"PhoneNumberCountryCode"}, + "PhoneNumberType":{"shape":"PhoneNumberType"}, + "PhoneNumberPrefix":{"shape":"PhoneNumberPrefix"}, + "MaxResults":{ + "shape":"MaxResult10", + "box":true + }, + "NextToken":{"shape":"LargeNextToken"} + } + }, + "SearchAvailablePhoneNumbersResponse":{ + "type":"structure", + "members":{ + "NextToken":{"shape":"LargeNextToken"}, + "AvailableNumbersList":{"shape":"AvailableNumbersList"} + } + }, "SearchVocabulariesRequest":{ "type":"structure", "required":["InstanceId"], @@ -7131,6 +7481,32 @@ "StorageConfig":{"shape":"InstanceStorageConfig"} } }, + "UpdatePhoneNumberRequest":{ + "type":"structure", + "required":[ + "PhoneNumberId", + "TargetArn" + ], + "members":{ + "PhoneNumberId":{ + "shape":"PhoneNumberId", + "location":"uri", + "locationName":"PhoneNumberId" + }, + "TargetArn":{"shape":"ARN"}, + "ClientToken":{ + "shape":"ClientToken", + "idempotencyToken":true + } + } + }, + "UpdatePhoneNumberResponse":{ + "type":"structure", + "members":{ + "PhoneNumberId":{"shape":"PhoneNumberId"}, + "PhoneNumberArn":{"shape":"ARN"} + } + }, "UpdateQueueHoursOfOperationRequest":{ "type":"structure", "required":[ diff --git a/models/apis/connect/2017-08-08/docs-2.json b/models/apis/connect/2017-08-08/docs-2.json index 4fffff6f11..6cf31ade22 100644 --- a/models/apis/connect/2017-08-08/docs-2.json +++ b/models/apis/connect/2017-08-08/docs-2.json @@ -8,9 +8,11 @@ "AssociateInstanceStorageConfig": "

This API is in preview release for Amazon Connect and is subject to change.

Associates a storage resource type for the first time. You can only associate one type of storage configuration in a single call. This means, for example, that you can't define an instance with multiple S3 buckets for storing chat transcripts.

This API does not create a resource that doesn't exist. It only associates it to the instance. Ensure that the resource being specified in the storage configuration, like an S3 bucket, exists when being used for association.

", "AssociateLambdaFunction": "

This API is in preview release for Amazon Connect and is subject to change.

Allows the specified Amazon Connect instance to access the specified Lambda function.

", "AssociateLexBot": "

This API is in preview release for Amazon Connect and is subject to change.

Allows the specified Amazon Connect instance to access the specified Amazon Lex bot.

", + "AssociatePhoneNumberContactFlow": "

Associates a contact flow with a phone number claimed to your Amazon Connect instance.

", "AssociateQueueQuickConnects": "

This API is in preview release for Amazon Connect and is subject to change.

Associates a set of quick connects with a queue.

", "AssociateRoutingProfileQueues": "

Associates a set of queues with a routing profile.

", "AssociateSecurityKey": "

This API is in preview release for Amazon Connect and is subject to change.

Associates a security key to the instance.

", + "ClaimPhoneNumber": "

Claims an available phone number to your Amazon Connect instance.

", "CreateAgentStatus": "

This API is in preview release for Amazon Connect and is subject to change.

Creates an agent status for the specified Amazon Connect instance.

", "CreateContactFlow": "

Creates a contact flow for the specified Amazon Connect instance.

You can also create and update contact flows using the Amazon Connect Flow language.

", "CreateContactFlowModule": "

Creates a contact flow module for the specified Amazon Connect instance.

", @@ -44,6 +46,7 @@ "DescribeInstance": "

This API is in preview release for Amazon Connect and is subject to change.

Returns the current state of the specified instance identifier. It tracks the instance while it is being created and returns an error status, if applicable.

If an instance is not created successfully, the instance status reason field returns details relevant to the reason. The instance in a failed state is returned only for 24 hours after the CreateInstance API was invoked.

", "DescribeInstanceAttribute": "

This API is in preview release for Amazon Connect and is subject to change.

Describes the specified instance attribute.

", "DescribeInstanceStorageConfig": "

This API is in preview release for Amazon Connect and is subject to change.

Retrieves the current storage configurations for the specified resource type, association ID, and instance ID.

", + "DescribePhoneNumber": "

Gets details and status of a phone number that’s claimed to your Amazon Connect instance

", "DescribeQueue": "

This API is in preview release for Amazon Connect and is subject to change.

Describes the specified queue.

", "DescribeQuickConnect": "

Describes the quick connect.

", "DescribeRoutingProfile": "

Describes the specified routing profile.

", @@ -57,6 +60,7 @@ "DisassociateInstanceStorageConfig": "

This API is in preview release for Amazon Connect and is subject to change.

Removes the storage type configurations for the specified resource type and association ID.

", "DisassociateLambdaFunction": "

This API is in preview release for Amazon Connect and is subject to change.

Remove the Lambda function from the dropdown options available in the relevant contact flow blocks.

", "DisassociateLexBot": "

This API is in preview release for Amazon Connect and is subject to change.

Revokes authorization from the specified instance to access the specified Amazon Lex bot.

", + "DisassociatePhoneNumberContactFlow": "

Removes the contact flow association from a phone number claimed to your Amazon Connect instance, if a contact flow association exists.

", "DisassociateQueueQuickConnects": "

This API is in preview release for Amazon Connect and is subject to change.

Disassociates a set of quick connects from a queue.

", "DisassociateRoutingProfileQueues": "

Disassociates a set of queues from a routing profile.

", "DisassociateSecurityKey": "

This API is in preview release for Amazon Connect and is subject to change.

Deletes the specified security key.

", @@ -79,6 +83,7 @@ "ListLambdaFunctions": "

This API is in preview release for Amazon Connect and is subject to change.

Returns a paginated list of all Lambda functions that display in the dropdown options in the relevant contact flow blocks.

", "ListLexBots": "

This API is in preview release for Amazon Connect and is subject to change.

Returns a paginated list of all the Amazon Lex bots currently associated with the instance.

", "ListPhoneNumbers": "

Provides information about the phone numbers for the specified Amazon Connect instance.

For more information about phone numbers, see Set Up Phone Numbers for Your Contact Center in the Amazon Connect Administrator Guide.

", + "ListPhoneNumbersV2": "

Lists phone numbers claimed to your Amazon Connect instance.

For more information about phone numbers, see Set Up Phone Numbers for Your Contact Center in the Amazon Connect Administrator Guide.

", "ListPrompts": "

Provides information about the prompts for the specified Amazon Connect instance.

", "ListQueueQuickConnects": "

This API is in preview release for Amazon Connect and is subject to change.

Lists the quick connects associated with a queue.

", "ListQueues": "

Provides information about the queues for the specified Amazon Connect instance.

If you do not specify a QueueTypes parameter, both standard and agent queues are returned. This might cause an unexpected truncation of results if you have more than 1000 agents and you limit the number of results of the API call in code.

For more information about queues, see Queues: Standard and Agent in the Amazon Connect Administrator Guide.

", @@ -92,7 +97,9 @@ "ListUseCases": "

Lists the use cases for the integration association.

", "ListUserHierarchyGroups": "

Provides summary information about the hierarchy groups for the specified Amazon Connect instance.

For more information about agent hierarchies, see Set Up Agent Hierarchies in the Amazon Connect Administrator Guide.

", "ListUsers": "

Provides summary information about the users for the specified Amazon Connect instance.

", + "ReleasePhoneNumber": "

Releases a phone number previously claimed to an Amazon Connect instance.

", "ResumeContactRecording": "

When a contact is being recorded, and the recording has been suspended using SuspendContactRecording, this API resumes recording the call.

Only voice recordings are supported at this time.

", + "SearchAvailablePhoneNumbers": "

Searches for available phone numbers that you can claim to your Amazon Connect instance.

", "SearchVocabularies": "

Searches for vocabularies within a specific Amazon Connect instance using State, NameStartsWith, and LanguageCode.

", "StartChatContact": "

Initiates a contact flow to start a new chat for the customer. Response of this API provides a token required to obtain credentials from the CreateParticipantConnection API in the Amazon Connect Participant Service.

When a new chat contact is successfully created, clients must subscribe to the participant’s connection for the created chat within 5 minutes. This is achieved by invoking CreateParticipantConnection with WEBSOCKET and CONNECTION_CREDENTIALS.

A 429 error occurs in the following situations:

If you use the ChatDurationInMinutes parameter and receive a 400 error, your account may not support the ability to configure custom chat durations. For more information, contact Amazon Web Services Support.

For more information about chat, see Chat in the Amazon Connect Administrator Guide.

", "StartContactRecording": "

Starts recording the contact:

StartContactRecording is a one-time action. For example, if you use StopContactRecording to stop recording an ongoing call, you can't use StartContactRecording to restart it. For scenarios where the recording has started and you want to suspend and resume it, such as when collecting sensitive information (for example, a credit card number), use SuspendContactRecording and ResumeContactRecording.

You can use this API to override the recording behavior configured in the Set recording behavior block.

Only voice recordings are supported at this time.

", @@ -103,7 +110,7 @@ "StopContactRecording": "

Stops recording a call when a contact is being recorded. StopContactRecording is a one-time action. If you use StopContactRecording to stop recording an ongoing call, you can't use StartContactRecording to restart it. For scenarios where the recording has started and you want to suspend it for sensitive information (for example, to collect a credit card number), and then restart it, use SuspendContactRecording and ResumeContactRecording.

Only voice recordings are supported at this time.

", "StopContactStreaming": "

Ends message streaming on a specified contact. To restart message streaming on that contact, call the StartContactStreaming API.

", "SuspendContactRecording": "

When a contact is being recorded, this API suspends recording the call. For example, you might suspend the call recording while collecting sensitive information, such as a credit card number. Then use ResumeContactRecording to restart recording.

The period of time that the recording is suspended is filled with silence in the final recording.

Only voice recordings are supported at this time.

", - "TagResource": "

Adds the specified tags to the specified resource.

The supported resource types are users, routing profiles, queues, quick connects, contact flows, agent status, and hours of operation.

For sample policies that use tags, see Amazon Connect Identity-Based Policy Examples in the Amazon Connect Administrator Guide.

", + "TagResource": "

Adds the specified tags to the specified resource.

The supported resource types are users, routing profiles, queues, quick connects, contact flows, agent status, hours of operation, and phone number.

For sample policies that use tags, see Amazon Connect Identity-Based Policy Examples in the Amazon Connect Administrator Guide.

", "UntagResource": "

Removes the specified tags from the specified resource.

", "UpdateAgentStatus": "

This API is in preview release for Amazon Connect and is subject to change.

Updates agent status.

", "UpdateContact": "

This API is in preview release for Amazon Connect and is subject to change.

Adds or updates user-defined contact information associated with the specified contact. At least one field to be updated must be present in the request.

You can add or update user-defined contact information for both ongoing and completed contacts.

", @@ -117,6 +124,7 @@ "UpdateHoursOfOperation": "

This API is in preview release for Amazon Connect and is subject to change.

Updates the hours of operation.

", "UpdateInstanceAttribute": "

This API is in preview release for Amazon Connect and is subject to change.

Updates the value for the specified attribute type.

", "UpdateInstanceStorageConfig": "

This API is in preview release for Amazon Connect and is subject to change.

Updates an existing configuration for a resource type. This API is idempotent.

", + "UpdatePhoneNumber": "

Updates your claimed phone number from its current Amazon Connect instance to another Amazon Connect instance in the same Region.

", "UpdateQueueHoursOfOperation": "

This API is in preview release for Amazon Connect and is subject to change.

Updates the hours of operation for the specified queue.

", "UpdateQueueMaxContacts": "

This API is in preview release for Amazon Connect and is subject to change.

Updates the maximum number of contacts allowed in a queue before it is considered full.

", "UpdateQueueName": "

This API is in preview release for Amazon Connect and is subject to change.

Updates the name and description of a queue. At least Name or Description must be provided.

", @@ -143,6 +151,10 @@ "refs": { "AgentStatus$AgentStatusARN": "

The Amazon Resource Name (ARN) of the agent status.

", "AgentStatusSummary$Arn": "

The Amazon Resource Name (ARN) for the agent status.

", + "ClaimPhoneNumberRequest$TargetArn": "

The Amazon Resource Name (ARN) for Amazon Connect instances that phone numbers are claimed to.

", + "ClaimPhoneNumberResponse$PhoneNumberArn": "

The Amazon Resource Name (ARN) of the phone number.

", + "ClaimedPhoneNumberSummary$PhoneNumberArn": "

The Amazon Resource Name (ARN) of the phone number.

", + "ClaimedPhoneNumberSummary$TargetArn": "

The Amazon Resource Name (ARN) for Amazon Connect instances that phone numbers are claimed to.

", "Contact$Arn": "

The Amazon Resource Name (ARN) for the contact.

", "ContactFlow$Arn": "

The Amazon Resource Name (ARN) of the contact flow.

", "ContactFlowModule$Arn": "

The Amazon Resource Name (ARN).

", @@ -177,6 +189,9 @@ "IntegrationAssociationSummary$IntegrationArn": "

The Amazon Resource Name (ARN) for the AppIntegration.

", "KinesisFirehoseConfig$FirehoseArn": "

The Amazon Resource Name (ARN) of the delivery stream.

", "KinesisStreamConfig$StreamArn": "

The Amazon Resource Name (ARN) of the data stream.

", + "ListPhoneNumbersSummary$PhoneNumberArn": "

The Amazon Resource Name (ARN) of the phone number.

", + "ListPhoneNumbersSummary$TargetArn": "

The Amazon Resource Name (ARN) for Amazon Connect instances that phone numbers are claimed to.

", + "ListPhoneNumbersV2Request$TargetArn": "

The Amazon Resource Name (ARN) for Amazon Connect instances that phone numbers are claimed to. If TargetArn input is not provided, this API lists numbers claimed to all the Amazon Connect instances belonging to your account.

", "ListTagsForResourceRequest$resourceArn": "

The Amazon Resource Name (ARN) of the resource.

", "PhoneNumberSummary$Arn": "

The Amazon Resource Name (ARN) of the phone number.

", "PromptSummary$Arn": "

The Amazon Resource Name (ARN) of the prompt.

", @@ -189,10 +204,13 @@ "RoutingProfile$RoutingProfileArn": "

The Amazon Resource Name (ARN) of the routing profile.

", "RoutingProfileQueueConfigSummary$QueueArn": "

The Amazon Resource Name (ARN) of the queue.

", "RoutingProfileSummary$Arn": "

The Amazon Resource Name (ARN) of the routing profile.

", + "SearchAvailablePhoneNumbersRequest$TargetArn": "

The Amazon Resource Name (ARN) for Amazon Connect instances that phone numbers are claimed to.

", "SecurityProfile$Arn": "

The Amazon Resource Name (ARN) for the secruity profile.

", "SecurityProfileSummary$Arn": "

The Amazon Resource Name (ARN) of the security profile.

", "TagResourceRequest$resourceArn": "

The Amazon Resource Name (ARN) of the resource.

", "UntagResourceRequest$resourceArn": "

The Amazon Resource Name (ARN) of the resource.

", + "UpdatePhoneNumberRequest$TargetArn": "

The Amazon Resource Name (ARN) for Amazon Connect instances that phone numbers are claimed to.

", + "UpdatePhoneNumberResponse$PhoneNumberArn": "

The Amazon Resource Name (ARN) of the phone number.

", "UseCase$UseCaseArn": "

The Amazon Resource Name (ARN) for the use case.

", "User$Arn": "

The Amazon Resource Name (ARN) of the user account.

", "UserSummary$Arn": "

The Amazon Resource Name (ARN) of the user account.

", @@ -369,6 +387,11 @@ "refs": { } }, + "AssociatePhoneNumberContactFlowRequest": { + "base": null, + "refs": { + } + }, "AssociateQueueQuickConnectsRequest": { "base": null, "refs": { @@ -449,6 +472,18 @@ "UserPhoneConfig$AutoAccept": "

The Auto accept setting.

" } }, + "AvailableNumberSummary": { + "base": "

Information about available phone numbers.

", + "refs": { + "AvailableNumbersList$member": null + } + }, + "AvailableNumbersList": { + "base": null, + "refs": { + "SearchAvailablePhoneNumbersResponse$AvailableNumbersList": "

A list of available phone numbers that you can claim for your Amazon Connect instance.

" + } + }, "Boolean": { "base": null, "refs": { @@ -529,16 +564,35 @@ "ChatStreamingConfiguration$StreamingEndpointArn": "

The Amazon Resource Name (ARN) of the standard Amazon SNS topic. The Amazon Resource Name (ARN) of the streaming endpoint that is used to publish real-time message streaming for chat conversations.

" } }, + "ClaimPhoneNumberRequest": { + "base": null, + "refs": { + } + }, + "ClaimPhoneNumberResponse": { + "base": null, + "refs": { + } + }, + "ClaimedPhoneNumberSummary": { + "base": "

Information about a phone number that has been claimed to your Amazon Connect instance.

", + "refs": { + "DescribePhoneNumberResponse$ClaimedPhoneNumberSummary": "

Information about a phone number that's been claimed to your Amazon Connect instance.

" + } + }, "ClientToken": { "base": null, "refs": { + "ClaimPhoneNumberRequest$ClientToken": "

A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.

", "CreateContactFlowModuleRequest$ClientToken": "

A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.

", "CreateInstanceRequest$ClientToken": "

The idempotency token.

", "CreateVocabularyRequest$ClientToken": "

A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If a create request is received more than once with same client token, subsequent requests return the previous response without creating a vocabulary again.

", + "ReleasePhoneNumberRequest$ClientToken": "

A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.

", "StartChatContactRequest$ClientToken": "

A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.

", "StartContactStreamingRequest$ClientToken": "

A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.

", "StartOutboundVoiceContactRequest$ClientToken": "

A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. The token is valid for 7 days after creation. If a contact is already started, the contact ID is returned.

", - "StartTaskContactRequest$ClientToken": "

A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.

" + "StartTaskContactRequest$ClientToken": "

A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.

", + "UpdatePhoneNumberRequest$ClientToken": "

A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.

" } }, "CommonNameLength127": { @@ -596,6 +650,7 @@ "ContactFlowId": { "base": null, "refs": { + "AssociatePhoneNumberContactFlowRequest$ContactFlowId": "

The identifier of the contact flow.

", "ContactFlow$Id": "

The identifier of the contact flow.

", "ContactFlowSummary$Id": "

The identifier of the contact flow.

", "CreateContactFlowResponse$ContactFlowId": "

The identifier of the contact flow.

", @@ -1132,6 +1187,16 @@ "refs": { } }, + "DescribePhoneNumberRequest": { + "base": null, + "refs": { + } + }, + "DescribePhoneNumberResponse": { + "base": null, + "refs": { + } + }, "DescribeQueueRequest": { "base": null, "refs": { @@ -1286,6 +1351,11 @@ "refs": { } }, + "DisassociatePhoneNumberContactFlowRequest": { + "base": null, + "refs": { + } + }, "DisassociateQueueQuickConnectsRequest": { "base": null, "refs": { @@ -1674,6 +1744,7 @@ "AssociateInstanceStorageConfigRequest$InstanceId": "

The identifier of the Amazon Connect instance. You can find the instanceId in the ARN of the instance.

", "AssociateLambdaFunctionRequest$InstanceId": "

The identifier of the Amazon Connect instance. You can find the instanceId in the ARN of the instance.

", "AssociateLexBotRequest$InstanceId": "

The identifier of the Amazon Connect instance. You can find the instanceId in the ARN of the instance.

", + "AssociatePhoneNumberContactFlowRequest$InstanceId": "

The identifier of the Amazon Connect instance. You can find the instanceId in the ARN of the instance.

", "AssociateQueueQuickConnectsRequest$InstanceId": "

The identifier of the Amazon Connect instance. You can find the instanceId in the ARN of the instance.

", "AssociateRoutingProfileQueuesRequest$InstanceId": "

The identifier of the Amazon Connect instance. You can find the instanceId in the ARN of the instance.

", "AssociateSecurityKeyRequest$InstanceId": "

The identifier of the Amazon Connect instance. You can find the instanceId in the ARN of the instance.

", @@ -1724,6 +1795,7 @@ "DisassociateInstanceStorageConfigRequest$InstanceId": "

The identifier of the Amazon Connect instance. You can find the instanceId in the ARN of the instance.

", "DisassociateLambdaFunctionRequest$InstanceId": "

The identifier of the Amazon Connect instance. You can find the instanceId in the ARN of the instance..

", "DisassociateLexBotRequest$InstanceId": "

The identifier of the Amazon Connect instance. You can find the instanceId in the ARN of the instance.

", + "DisassociatePhoneNumberContactFlowRequest$InstanceId": "

The identifier of the Amazon Connect instance. You can find the instanceId in the ARN of the instance.

", "DisassociateQueueQuickConnectsRequest$InstanceId": "

The identifier of the Amazon Connect instance. You can find the instanceId in the ARN of the instance.

", "DisassociateRoutingProfileQueuesRequest$InstanceId": "

The identifier of the Amazon Connect instance. You can find the instanceId in the ARN of the instance.

", "DisassociateSecurityKeyRequest$InstanceId": "

The identifier of the Amazon Connect instance. You can find the instanceId in the ARN of the instance.

", @@ -1936,6 +2008,15 @@ "InstanceStorageConfig$KinesisVideoStreamConfig": "

The configuration of the Kinesis video stream.

" } }, + "LargeNextToken": { + "base": null, + "refs": { + "ListPhoneNumbersV2Request$NextToken": "

The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.

", + "ListPhoneNumbersV2Response$NextToken": "

If there are additional results, this is the token for the next set of results.

", + "SearchAvailablePhoneNumbersRequest$NextToken": "

The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.

", + "SearchAvailablePhoneNumbersResponse$NextToken": "

If there are additional results, this is the token for the next set of results.

" + } + }, "LexBot": { "base": "

Configuration information of an Amazon Lex bot.

", "refs": { @@ -2140,6 +2221,28 @@ "refs": { } }, + "ListPhoneNumbersSummary": { + "base": "

Information about phone numbers that have been claimed to your Amazon Connect instance.

", + "refs": { + "ListPhoneNumbersSummaryList$member": null + } + }, + "ListPhoneNumbersSummaryList": { + "base": null, + "refs": { + "ListPhoneNumbersV2Response$ListPhoneNumbersSummaryList": "

Information about phone numbers that have been claimed to your Amazon Connect instances.

" + } + }, + "ListPhoneNumbersV2Request": { + "base": null, + "refs": { + } + }, + "ListPhoneNumbersV2Response": { + "base": null, + "refs": { + } + }, "ListPromptsRequest": { "base": null, "refs": { @@ -2274,7 +2377,8 @@ "base": null, "refs": { "ListInstanceStorageConfigsRequest$MaxResults": "

The maximum number of results to return per page.

", - "ListInstancesRequest$MaxResults": "

The maximum number of results to return per page.

" + "ListInstancesRequest$MaxResults": "

The maximum number of results to return per page.

", + "SearchAvailablePhoneNumbersRequest$MaxResults": "

The maximum number of results to return per page.

" } }, "MaxResult100": { @@ -2298,6 +2402,7 @@ "ListContactFlowsRequest$MaxResults": "

The maximum number of results to return per page.

", "ListHoursOfOperationsRequest$MaxResults": "

The maximum number of results to return per page.

", "ListPhoneNumbersRequest$MaxResults": "

The maximum number of results to return per page.

", + "ListPhoneNumbersV2Request$MaxResults": "

The maximum number of results to return per page.

", "ListPromptsRequest$MaxResults": "

The maximum number of results to return per page.

", "ListQueuesRequest$MaxResults": "

The maximum number of results to return per page.

", "ListQuickConnectsRequest$MaxResults": "

The maximum number of results to return per page.

", @@ -2523,6 +2628,10 @@ "PhoneNumber": { "base": null, "refs": { + "AvailableNumberSummary$PhoneNumber": "

The phone number. Phone numbers are formatted [+] [country code] [subscriber number including area code].

", + "ClaimPhoneNumberRequest$PhoneNumber": "

The phone number you want to claim. Phone numbers are formatted [+] [country code] [subscriber number including area code].

", + "ClaimedPhoneNumberSummary$PhoneNumber": "

The phone number. Phone numbers are formatted [+] [country code] [subscriber number including area code].

", + "ListPhoneNumbersSummary$PhoneNumber": "

The phone number. Phone numbers are formatted [+] [country code] [subscriber number including area code].

", "PhoneNumberQuickConnectConfig$PhoneNumber": "

The phone number in E.164 format.

", "PhoneNumberSummary$PhoneNumber": "

The phone number.

", "StartOutboundVoiceContactRequest$DestinationPhoneNumber": "

The phone number of the customer, in E.164 format.

", @@ -2533,21 +2642,49 @@ "PhoneNumberCountryCode": { "base": null, "refs": { + "AvailableNumberSummary$PhoneNumberCountryCode": "

The ISO country code.

", + "ClaimedPhoneNumberSummary$PhoneNumberCountryCode": "

The ISO country code.

", + "ListPhoneNumbersSummary$PhoneNumberCountryCode": "

The ISO country code.

", "PhoneNumberCountryCodes$member": null, - "PhoneNumberSummary$PhoneNumberCountryCode": "

The ISO country code.

" + "PhoneNumberSummary$PhoneNumberCountryCode": "

The ISO country code.

", + "SearchAvailablePhoneNumbersRequest$PhoneNumberCountryCode": "

The ISO country code.

" } }, "PhoneNumberCountryCodes": { "base": null, "refs": { - "ListPhoneNumbersRequest$PhoneNumberCountryCodes": "

The ISO country code.

" + "ListPhoneNumbersRequest$PhoneNumberCountryCodes": "

The ISO country code.

", + "ListPhoneNumbersV2Request$PhoneNumberCountryCodes": "

The ISO country code.

" + } + }, + "PhoneNumberDescription": { + "base": null, + "refs": { + "ClaimPhoneNumberRequest$PhoneNumberDescription": "

The description of the phone number.

", + "ClaimedPhoneNumberSummary$PhoneNumberDescription": "

The description of the phone number.

" } }, "PhoneNumberId": { "base": null, "refs": { + "AssociatePhoneNumberContactFlowRequest$PhoneNumberId": "

A unique identifier for the phone number.

", + "ClaimPhoneNumberResponse$PhoneNumberId": "

The identifier of the phone number.

", + "ClaimedPhoneNumberSummary$PhoneNumberId": "

The identifier of the phone number.

", + "DescribePhoneNumberRequest$PhoneNumberId": "

The identifier of the phone number.

", + "DisassociatePhoneNumberContactFlowRequest$PhoneNumberId": "

The identifier of the phone number.

", + "ListPhoneNumbersSummary$PhoneNumberId": "

The identifier of the phone number.

", "OutboundCallerConfig$OutboundCallerIdNumberId": "

The caller ID number.

", - "PhoneNumberSummary$Id": "

The identifier of the phone number.

" + "PhoneNumberSummary$Id": "

The identifier of the phone number.

", + "ReleasePhoneNumberRequest$PhoneNumberId": "

The identifier of the phone number.

", + "UpdatePhoneNumberRequest$PhoneNumberId": "

The identifier of the phone number.

", + "UpdatePhoneNumberResponse$PhoneNumberId": "

The identifier of the phone number.

" + } + }, + "PhoneNumberPrefix": { + "base": null, + "refs": { + "ListPhoneNumbersV2Request$PhoneNumberPrefix": "

The prefix of the phone number. If provided, it must contain + as part of the country code.

", + "SearchAvailablePhoneNumbersRequest$PhoneNumberPrefix": "

The prefix of the phone number. If provided, it must contain + as part of the country code.

" } }, "PhoneNumberQuickConnectConfig": { @@ -2556,6 +2693,12 @@ "QuickConnectConfig$PhoneConfig": "

The phone configuration. This is required only if QuickConnectType is PHONE_NUMBER.

" } }, + "PhoneNumberStatus": { + "base": "

The status of the phone number.

", + "refs": { + "ClaimedPhoneNumberSummary$PhoneNumberStatus": "

The status of the phone number.

" + } + }, "PhoneNumberSummary": { "base": "

Contains summary information about a phone number for a contact center.

", "refs": { @@ -2571,14 +2714,31 @@ "PhoneNumberType": { "base": null, "refs": { + "AvailableNumberSummary$PhoneNumberType": "

The type of phone number.

", + "ClaimedPhoneNumberSummary$PhoneNumberType": "

The type of phone number.

", + "ListPhoneNumbersSummary$PhoneNumberType": "

The type of phone number.

", "PhoneNumberSummary$PhoneNumberType": "

The type of phone number.

", - "PhoneNumberTypes$member": null + "PhoneNumberTypes$member": null, + "SearchAvailablePhoneNumbersRequest$PhoneNumberType": "

The type of phone number.

" } }, "PhoneNumberTypes": { "base": null, "refs": { - "ListPhoneNumbersRequest$PhoneNumberTypes": "

The type of phone number.

" + "ListPhoneNumbersRequest$PhoneNumberTypes": "

The type of phone number.

", + "ListPhoneNumbersV2Request$PhoneNumberTypes": "

The type of phone number.

" + } + }, + "PhoneNumberWorkflowMessage": { + "base": null, + "refs": { + "PhoneNumberStatus$Message": "

The status message.

" + } + }, + "PhoneNumberWorkflowStatus": { + "base": null, + "refs": { + "PhoneNumberStatus$Status": "

The status.

" } }, "PhoneType": { @@ -2887,6 +3047,11 @@ "UrlReference$Value": "

A valid URL.

" } }, + "ReleasePhoneNumberRequest": { + "base": null, + "refs": { + } + }, "ResourceConflictException": { "base": "

A resource already has that name.

", "refs": { @@ -3017,6 +3182,16 @@ "InstanceStorageConfig$S3Config": "

The S3 bucket configuration.

" } }, + "SearchAvailablePhoneNumbersRequest": { + "base": null, + "refs": { + } + }, + "SearchAvailablePhoneNumbersResponse": { + "base": null, + "refs": { + } + }, "SearchVocabulariesRequest": { "base": null, "refs": { @@ -3270,6 +3445,8 @@ "base": null, "refs": { "AgentStatus$Tags": "

The tags used to organize, track, or control access for this resource.

", + "ClaimPhoneNumberRequest$Tags": "

The tags used to organize, track, or control access for this resource.

", + "ClaimedPhoneNumberSummary$Tags": "

The tags used to organize, track, or control access for this resource.

", "ContactFlow$Tags": "

One or more tags.

", "ContactFlowModule$Tags": "

The tags used to organize, track, or control access for this resource.

", "CreateAgentStatusRequest$Tags": "

The tags used to organize, track, or control access for this resource.

", @@ -3464,6 +3641,16 @@ "refs": { } }, + "UpdatePhoneNumberRequest": { + "base": null, + "refs": { + } + }, + "UpdatePhoneNumberResponse": { + "base": null, + "refs": { + } + }, "UpdateQueueHoursOfOperationRequest": { "base": null, "refs": { diff --git a/models/apis/connect/2017-08-08/paginators-1.json b/models/apis/connect/2017-08-08/paginators-1.json index 91f5bbf7db..79de7d24b6 100644 --- a/models/apis/connect/2017-08-08/paginators-1.json +++ b/models/apis/connect/2017-08-08/paginators-1.json @@ -99,6 +99,12 @@ "output_token": "NextToken", "result_key": "PhoneNumberSummaryList" }, + "ListPhoneNumbersV2": { + "input_token": "NextToken", + "limit_key": "MaxResults", + "output_token": "NextToken", + "result_key": "ListPhoneNumbersSummaryList" + }, "ListPrompts": { "input_token": "NextToken", "limit_key": "MaxResults", @@ -171,6 +177,12 @@ "output_token": "NextToken", "result_key": "UserSummaryList" }, + "SearchAvailablePhoneNumbers": { + "input_token": "NextToken", + "limit_key": "MaxResults", + "output_token": "NextToken", + "result_key": "AvailableNumbersList" + }, "SearchVocabularies": { "input_token": "NextToken", "limit_key": "MaxResults", diff --git a/models/apis/macie2/2020-01-01/api-2.json b/models/apis/macie2/2020-01-01/api-2.json index abcb6ce6ba..89a824dbef 100644 --- a/models/apis/macie2/2020-01-01/api-2.json +++ b/models/apis/macie2/2020-01-01/api-2.json @@ -2631,6 +2631,10 @@ "shape": "__string", "locationName": "jobId" }, + "originType": { + "shape": "OriginType", + "locationName": "originType" + }, "result": { "shape": "ClassificationResult", "locationName": "result" @@ -5074,6 +5078,12 @@ "DESC" ] }, + "OriginType": { + "type": "string", + "enum": [ + "SENSITIVE_DATA_DISCOVERY_JOB" + ] + }, "Page": { "type": "structure", "members": { diff --git a/models/apis/macie2/2020-01-01/docs-2.json b/models/apis/macie2/2020-01-01/docs-2.json index b2e2e32e64..9c527fe929 100644 --- a/models/apis/macie2/2020-01-01/docs-2.json +++ b/models/apis/macie2/2020-01-01/docs-2.json @@ -250,7 +250,7 @@ } }, "ClassificationDetails" : { - "base" : "

Provides information about a sensitive data finding, including the classification job that produced the finding.

", + "base" : "

Provides information about a sensitive data finding and the details of the finding.

", "refs" : { "Finding$ClassificationDetails" : "

The details of a sensitive data finding. This value is null for a policy finding.

" } @@ -710,7 +710,7 @@ } }, "JobComparator" : { - "base" : "

The operator to use in a condition. Valid values are:

", + "base" : "

The operator to use in a condition. Depending on the type of condition, possible values are:

", "refs" : { "ListJobsFilterTerm$Comparator" : "

The operator to use to filter the results.

", "SimpleCriterionForJob$Comparator" : "

The operator to use in the condition. Valid values are EQ (equals) and NE (not equals).

", @@ -959,6 +959,12 @@ "UsageStatisticsSortBy$OrderBy" : "

The sort order to apply to the results, based on the value for the field specified by the key property. Valid values are: ASC, sort the results in ascending order; and, DESC, sort the results in descending order.

" } }, + "OriginType" : { + "base" : "

Specifies how Amazon Macie found the sensitive data that produced a finding. The only possible value is:

", + "refs" : { + "ClassificationDetails$OriginType" : "

Specifies how Amazon Macie found the sensitive data that produced the finding: SENSITIVE_DATA_DISCOVERY_JOB, for a classification job.

" + } + }, "Page" : { "base" : "

Specifies the location of an occurrence of sensitive data in an Adobe Portable Document Format file.

", "refs" : { @@ -998,7 +1004,7 @@ } }, "Ranges" : { - "base" : null, + "base" : "

Specifies the locations of occurrences of sensitive data in a non-binary text file.

", "refs" : { "Occurrences$LineRanges" : "

An array of objects, one for each occurrence of sensitive data in a non-binary text file, such as an HTML, TXT, or XML file. Each Range object specifies a line or inclusive range of lines that contains the sensitive data, and the position of the data on the specified line or lines.

This value is often null for file types that are supported by Cell, Page, or Record objects. Exceptions are the location of sensitive data in: unstructured sections of an otherwise structured file, such as a comment in a file; a malformed file that Amazon Macie analyzes as plain text; and, a CSV or TSV file that has any column names that contain sensitive data.

", "Occurrences$OffsetRanges" : "

Reserved for future use.

" @@ -1011,7 +1017,7 @@ } }, "Records" : { - "base" : null, + "base" : "

Specifies the locations of occurrences of sensitive data in an Apache Avro object container or a structured data file.

", "refs" : { "Occurrences$Records" : "

An array of objects, one for each occurrence of sensitive data in an Apache Avro object container, Apache Parquet file, JSON file, or JSON Lines file. This value is null for all other types of files.

For an Avro object container or Parquet file, each Record object specifies a record index and the path to a field in a record that contains the sensitive data. For a JSON or JSON Lines file, each Record object specifies the path to a field or array that contains the sensitive data. For a JSON Lines file, it also specifies the index of the line that contains the data.

" } @@ -1757,7 +1763,7 @@ "DescribeClassificationJobResponse$ManagedDataIdentifierIds" : "

An array of unique identifiers, one for each managed data identifier that the job is explicitly configured to include (use) or exclude (not use) when it analyzes data. Inclusion or exclusion depends on the managed data identifier selection type specified for the job (managedDataIdentifierSelector). This value is null if the job's managed data identifier selection type is ALL or the job uses only custom data identifiers (customDataIdentifierIds) to analyze data.

", "GetCustomDataIdentifierResponse$IgnoreWords" : "

An array that lists specific character sequences (ignore words) to exclude from the results. If the text matched by the regular expression contains any string in this array, Amazon Macie ignores it. Ignore words are case sensitive.

", "GetCustomDataIdentifierResponse$Keywords" : "

An array that lists specific character sequences (keywords), one of which must be within proximity (maximumMatchDistance) of the regular expression to match. Keywords aren't case sensitive.

", - "GetFindingsRequest$FindingIds" : "

An array of strings that lists the unique identifiers for the findings to retrieve.

", + "GetFindingsRequest$FindingIds" : "

An array of strings that lists the unique identifiers for the findings to retrieve. You can specify as many as 50 unique identifiers in this array.

", "ListFindingsResponse$FindingIds" : "

An array of strings, where each string is the unique identifier for a finding that meets the filter criteria specified in the request.

", "ListJobsFilterTerm$Values" : "

An array that lists one or more values to use to filter the results.

", "ReplicationDetails$ReplicationAccounts" : "

An array of Amazon Web Services account IDs, one for each Amazon Web Services account that the bucket is configured to replicate one or more objects to.

", diff --git a/models/apis/mgn/2020-02-26/api-2.json b/models/apis/mgn/2020-02-26/api-2.json index e2f2561944..c2082f219a 100644 --- a/models/apis/mgn/2020-02-26/api-2.json +++ b/models/apis/mgn/2020-02-26/api-2.json @@ -760,7 +760,6 @@ }, "DescribeJobsRequest":{ "type":"structure", - "required":["filters"], "members":{ "filters":{"shape":"DescribeJobsRequestFilters"}, "maxResults":{"shape":"StrictlyPositiveInteger"}, @@ -790,7 +789,6 @@ }, "DescribeReplicationConfigurationTemplatesRequest":{ "type":"structure", - "required":["replicationConfigurationTemplateIDs"], "members":{ "maxResults":{"shape":"StrictlyPositiveInteger"}, "nextToken":{"shape":"PaginationToken"}, @@ -806,7 +804,6 @@ }, "DescribeSourceServersRequest":{ "type":"structure", - "required":["filters"], "members":{ "filters":{"shape":"DescribeSourceServersRequestFilters"}, "maxResults":{"shape":"StrictlyPositiveInteger"}, @@ -1414,6 +1411,7 @@ "code":{"shape":"LargeBoundedString"}, "message":{"shape":"LargeBoundedString"}, "quotaCode":{"shape":"LargeBoundedString"}, + "quotaValue":{"shape":"StrictlyPositiveInteger"}, "resourceId":{"shape":"LargeBoundedString"}, "resourceType":{"shape":"LargeBoundedString"}, "serviceCode":{"shape":"LargeBoundedString"} diff --git a/models/apis/mgn/2020-02-26/docs-2.json b/models/apis/mgn/2020-02-26/docs-2.json index 23b1b7057d..cbdc4aa32a 100644 --- a/models/apis/mgn/2020-02-26/docs-2.json +++ b/models/apis/mgn/2020-02-26/docs-2.json @@ -942,7 +942,8 @@ "DescribeJobsRequest$maxResults": "

Request to describe job log items by max results.

", "DescribeReplicationConfigurationTemplatesRequest$maxResults": "

Request to describe Replication Configuration template by max results.

", "DescribeSourceServersRequest$maxResults": "

Request to filter Source Servers list by maximum results.

", - "DescribeVcenterClientsRequest$maxResults": "

Maximum results to be returned in DescribeVcenterClients.

" + "DescribeVcenterClientsRequest$maxResults": "

Maximum results to be returned in DescribeVcenterClients.

", + "ServiceQuotaExceededException$quotaValue": "

Exceeded the service quota value.

" } }, "SubnetID": { diff --git a/models/apis/rds/2014-10-31/api-2.json b/models/apis/rds/2014-10-31/api-2.json index 5e5ca06da9..fb4fe3f9cf 100644 --- a/models/apis/rds/2014-10-31/api-2.json +++ b/models/apis/rds/2014-10-31/api-2.json @@ -2920,7 +2920,8 @@ "MonitoringRoleArn":{"shape":"String"}, "EnablePerformanceInsights":{"shape":"BooleanOptional"}, "PerformanceInsightsKMSKeyId":{"shape":"String"}, - "PerformanceInsightsRetentionPeriod":{"shape":"IntegerOptional"} + "PerformanceInsightsRetentionPeriod":{"shape":"IntegerOptional"}, + "ServerlessV2ScalingConfiguration":{"shape":"ServerlessV2ScalingConfiguration"} } }, "CreateDBClusterParameterGroupMessage":{ @@ -3408,7 +3409,8 @@ "MonitoringRoleArn":{"shape":"String"}, "PerformanceInsightsEnabled":{"shape":"BooleanOptional"}, "PerformanceInsightsKMSKeyId":{"shape":"String"}, - "PerformanceInsightsRetentionPeriod":{"shape":"IntegerOptional"} + "PerformanceInsightsRetentionPeriod":{"shape":"IntegerOptional"}, + "ServerlessV2ScalingConfiguration":{"shape":"ServerlessV2ScalingConfigurationInfo"} }, "wrapper":true }, @@ -6296,7 +6298,8 @@ "MonitoringRoleArn":{"shape":"String"}, "EnablePerformanceInsights":{"shape":"BooleanOptional"}, "PerformanceInsightsKMSKeyId":{"shape":"String"}, - "PerformanceInsightsRetentionPeriod":{"shape":"IntegerOptional"} + "PerformanceInsightsRetentionPeriod":{"shape":"IntegerOptional"}, + "ServerlessV2ScalingConfiguration":{"shape":"ServerlessV2ScalingConfiguration"} } }, "ModifyDBClusterParameterGroupMessage":{ @@ -7371,7 +7374,8 @@ "DeletionProtection":{"shape":"BooleanOptional"}, "CopyTagsToSnapshot":{"shape":"BooleanOptional"}, "Domain":{"shape":"String"}, - "DomainIAMRoleName":{"shape":"String"} + "DomainIAMRoleName":{"shape":"String"}, + "ServerlessV2ScalingConfiguration":{"shape":"ServerlessV2ScalingConfiguration"} } }, "RestoreDBClusterFromS3Result":{ @@ -7413,7 +7417,8 @@ "DBClusterInstanceClass":{"shape":"String"}, "StorageType":{"shape":"String"}, "Iops":{"shape":"IntegerOptional"}, - "PubliclyAccessible":{"shape":"BooleanOptional"} + "PubliclyAccessible":{"shape":"BooleanOptional"}, + "ServerlessV2ScalingConfiguration":{"shape":"ServerlessV2ScalingConfiguration"} } }, "RestoreDBClusterFromSnapshotResult":{ @@ -7453,7 +7458,8 @@ "DBClusterInstanceClass":{"shape":"String"}, "StorageType":{"shape":"String"}, "PubliclyAccessible":{"shape":"BooleanOptional"}, - "Iops":{"shape":"IntegerOptional"} + "Iops":{"shape":"IntegerOptional"}, + "ServerlessV2ScalingConfiguration":{"shape":"ServerlessV2ScalingConfiguration"} } }, "RestoreDBClusterToPointInTimeResult":{ @@ -7699,6 +7705,20 @@ "SecondsBeforeTimeout":{"shape":"IntegerOptional"} } }, + "ServerlessV2ScalingConfiguration":{ + "type":"structure", + "members":{ + "MinCapacity":{"shape":"DoubleOptional"}, + "MaxCapacity":{"shape":"DoubleOptional"} + } + }, + "ServerlessV2ScalingConfigurationInfo":{ + "type":"structure", + "members":{ + "MinCapacity":{"shape":"DoubleOptional"}, + "MaxCapacity":{"shape":"DoubleOptional"} + } + }, "SharedSnapshotQuotaExceededFault":{ "type":"structure", "members":{ diff --git a/models/apis/rds/2014-10-31/docs-2.json b/models/apis/rds/2014-10-31/docs-2.json index b0754276f5..9cf1b17f2b 100644 --- a/models/apis/rds/2014-10-31/docs-2.json +++ b/models/apis/rds/2014-10-31/docs-2.json @@ -2018,7 +2018,11 @@ "base": null, "refs": { "OrderableDBInstanceOption$MinIopsPerGib": "

Minimum provisioned IOPS per GiB for a DB instance.

", - "OrderableDBInstanceOption$MaxIopsPerGib": "

Maximum provisioned IOPS per GiB for a DB instance.

" + "OrderableDBInstanceOption$MaxIopsPerGib": "

Maximum provisioned IOPS per GiB for a DB instance.

", + "ServerlessV2ScalingConfiguration$MinCapacity": "

The minimum number of Aurora capacity units (ACUs) for a DB instance in an Aurora Serverless v2 cluster. You can specify ACU values in half-step increments, such as 8, 8.5, 9, and so on. The smallest value that you can use is 0.5.

", + "ServerlessV2ScalingConfiguration$MaxCapacity": "

The maximum number of Aurora capacity units (ACUs) for a DB instance in an Aurora Serverless v2 cluster. You can specify ACU values in half-step increments, such as 40, 40.5, 41, and so on. The largest value that you can use is 128.

", + "ServerlessV2ScalingConfigurationInfo$MinCapacity": "

The minimum number of Aurora capacity units (ACUs) for a DB instance in an Aurora Serverless v2 cluster. You can specify ACU values in half-step increments, such as 8, 8.5, 9, and so on. The smallest value that you can use is 0.5.

", + "ServerlessV2ScalingConfigurationInfo$MaxCapacity": "

The maximum number of Aurora capacity units (ACUs) for a DB instance in an Aurora Serverless v2 cluster. You can specify ACU values in half-step increments, such as 40, 40.5, 41, and so on. The largest value that you can use is 128.

" } }, "DoubleRange": { @@ -3507,6 +3511,22 @@ "DBCluster$ScalingConfigurationInfo": null } }, + "ServerlessV2ScalingConfiguration": { + "base": "

Contains the scaling configuration of an Aurora Serverless v2 DB cluster.

For more information, see Using Amazon Aurora Serverless v2 in the Amazon Aurora User Guide.

", + "refs": { + "CreateDBClusterMessage$ServerlessV2ScalingConfiguration": null, + "ModifyDBClusterMessage$ServerlessV2ScalingConfiguration": null, + "RestoreDBClusterFromS3Message$ServerlessV2ScalingConfiguration": null, + "RestoreDBClusterFromSnapshotMessage$ServerlessV2ScalingConfiguration": null, + "RestoreDBClusterToPointInTimeMessage$ServerlessV2ScalingConfiguration": null + } + }, + "ServerlessV2ScalingConfigurationInfo": { + "base": "

Shows the scaling configuration for an Aurora Serverless v2 DB cluster.

For more information, see Using Amazon Aurora Serverless v2 in the Amazon Aurora User Guide.

", + "refs": { + "DBCluster$ServerlessV2ScalingConfiguration": null + } + }, "SharedSnapshotQuotaExceededFault": { "base": "

You have exceeded the maximum number of accounts that you can share a manual DB snapshot with.

", "refs": { diff --git a/models/endpoints/endpoints.json b/models/endpoints/endpoints.json index 13cbfa6565..b4d5cc45bd 100644 --- a/models/endpoints/endpoints.json +++ b/models/endpoints/endpoints.json @@ -3195,6 +3195,7 @@ "ap-south-1" : { }, "ap-southeast-1" : { }, "ap-southeast-2" : { }, + "ap-southeast-3" : { }, "ca-central-1" : { "variants" : [ { "hostname" : "datasync-fips.ca-central-1.amazonaws.com", diff --git a/service/connect/api.go b/service/connect/api.go index ff383a0ebc..a85f2b20db 100644 --- a/service/connect/api.go +++ b/service/connect/api.go @@ -613,6 +613,99 @@ func (c *Connect) AssociateLexBotWithContext(ctx aws.Context, input *AssociateLe return out, req.Send() } +const opAssociatePhoneNumberContactFlow = "AssociatePhoneNumberContactFlow" + +// AssociatePhoneNumberContactFlowRequest generates a "aws/request.Request" representing the +// client's request for the AssociatePhoneNumberContactFlow 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 AssociatePhoneNumberContactFlow for more information on using the AssociatePhoneNumberContactFlow +// 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 AssociatePhoneNumberContactFlowRequest method. +// req, resp := client.AssociatePhoneNumberContactFlowRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/AssociatePhoneNumberContactFlow +func (c *Connect) AssociatePhoneNumberContactFlowRequest(input *AssociatePhoneNumberContactFlowInput) (req *request.Request, output *AssociatePhoneNumberContactFlowOutput) { + op := &request.Operation{ + Name: opAssociatePhoneNumberContactFlow, + HTTPMethod: "PUT", + HTTPPath: "/phone-number/{PhoneNumberId}/contact-flow", + } + + if input == nil { + input = &AssociatePhoneNumberContactFlowInput{} + } + + output = &AssociatePhoneNumberContactFlowOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// AssociatePhoneNumberContactFlow API operation for Amazon Connect Service. +// +// Associates a contact flow with a phone number claimed to your Amazon Connect +// instance. +// +// 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 Connect Service's +// API operation AssociatePhoneNumberContactFlow for usage and error information. +// +// Returned Error Types: +// * InvalidParameterException +// One or more of the specified parameters are not valid. +// +// * ResourceNotFoundException +// The specified resource was not found. +// +// * ThrottlingException +// The throttling limit has been exceeded. +// +// * InternalServiceException +// Request processing failed because of an error or failure with the service. +// +// * AccessDeniedException +// You do not have sufficient permissions to perform this action. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/AssociatePhoneNumberContactFlow +func (c *Connect) AssociatePhoneNumberContactFlow(input *AssociatePhoneNumberContactFlowInput) (*AssociatePhoneNumberContactFlowOutput, error) { + req, out := c.AssociatePhoneNumberContactFlowRequest(input) + return out, req.Send() +} + +// AssociatePhoneNumberContactFlowWithContext is the same as AssociatePhoneNumberContactFlow with the addition of +// the ability to pass a context and additional request options. +// +// See AssociatePhoneNumberContactFlow 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 *Connect) AssociatePhoneNumberContactFlowWithContext(ctx aws.Context, input *AssociatePhoneNumberContactFlowInput, opts ...request.Option) (*AssociatePhoneNumberContactFlowOutput, error) { + req, out := c.AssociatePhoneNumberContactFlowRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opAssociateQueueQuickConnects = "AssociateQueueQuickConnects" // AssociateQueueQuickConnectsRequest generates a "aws/request.Request" representing the @@ -901,6 +994,100 @@ func (c *Connect) AssociateSecurityKeyWithContext(ctx aws.Context, input *Associ return out, req.Send() } +const opClaimPhoneNumber = "ClaimPhoneNumber" + +// ClaimPhoneNumberRequest generates a "aws/request.Request" representing the +// client's request for the ClaimPhoneNumber 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 ClaimPhoneNumber for more information on using the ClaimPhoneNumber +// 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 ClaimPhoneNumberRequest method. +// req, resp := client.ClaimPhoneNumberRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/ClaimPhoneNumber +func (c *Connect) ClaimPhoneNumberRequest(input *ClaimPhoneNumberInput) (req *request.Request, output *ClaimPhoneNumberOutput) { + op := &request.Operation{ + Name: opClaimPhoneNumber, + HTTPMethod: "POST", + HTTPPath: "/phone-number/claim", + } + + if input == nil { + input = &ClaimPhoneNumberInput{} + } + + output = &ClaimPhoneNumberOutput{} + req = c.newRequest(op, input, output) + return +} + +// ClaimPhoneNumber API operation for Amazon Connect Service. +// +// Claims an available phone number to your Amazon Connect instance. +// +// 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 Connect Service's +// API operation ClaimPhoneNumber for usage and error information. +// +// Returned Error Types: +// * InvalidParameterException +// One or more of the specified parameters are not valid. +// +// * ResourceNotFoundException +// The specified resource was not found. +// +// * ThrottlingException +// The throttling limit has been exceeded. +// +// * InternalServiceException +// Request processing failed because of an error or failure with the service. +// +// * IdempotencyException +// An entity with the same name already exists. +// +// * AccessDeniedException +// You do not have sufficient permissions to perform this action. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/ClaimPhoneNumber +func (c *Connect) ClaimPhoneNumber(input *ClaimPhoneNumberInput) (*ClaimPhoneNumberOutput, error) { + req, out := c.ClaimPhoneNumberRequest(input) + return out, req.Send() +} + +// ClaimPhoneNumberWithContext is the same as ClaimPhoneNumber with the addition of +// the ability to pass a context and additional request options. +// +// See ClaimPhoneNumber 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 *Connect) ClaimPhoneNumberWithContext(ctx aws.Context, input *ClaimPhoneNumberInput, opts ...request.Option) (*ClaimPhoneNumberOutput, error) { + req, out := c.ClaimPhoneNumberRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opCreateAgentStatus = "CreateAgentStatus" // CreateAgentStatusRequest generates a "aws/request.Request" representing the @@ -4070,6 +4257,98 @@ func (c *Connect) DescribeInstanceStorageConfigWithContext(ctx aws.Context, inpu return out, req.Send() } +const opDescribePhoneNumber = "DescribePhoneNumber" + +// DescribePhoneNumberRequest generates a "aws/request.Request" representing the +// client's request for the DescribePhoneNumber 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 DescribePhoneNumber for more information on using the DescribePhoneNumber +// 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 DescribePhoneNumberRequest method. +// req, resp := client.DescribePhoneNumberRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/DescribePhoneNumber +func (c *Connect) DescribePhoneNumberRequest(input *DescribePhoneNumberInput) (req *request.Request, output *DescribePhoneNumberOutput) { + op := &request.Operation{ + Name: opDescribePhoneNumber, + HTTPMethod: "GET", + HTTPPath: "/phone-number/{PhoneNumberId}", + } + + if input == nil { + input = &DescribePhoneNumberInput{} + } + + output = &DescribePhoneNumberOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribePhoneNumber API operation for Amazon Connect Service. +// +// Gets details and status of a phone number that’s claimed to your Amazon +// Connect instance +// +// 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 Connect Service's +// API operation DescribePhoneNumber for usage and error information. +// +// Returned Error Types: +// * InvalidParameterException +// One or more of the specified parameters are not valid. +// +// * ResourceNotFoundException +// The specified resource was not found. +// +// * ThrottlingException +// The throttling limit has been exceeded. +// +// * InternalServiceException +// Request processing failed because of an error or failure with the service. +// +// * AccessDeniedException +// You do not have sufficient permissions to perform this action. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/DescribePhoneNumber +func (c *Connect) DescribePhoneNumber(input *DescribePhoneNumberInput) (*DescribePhoneNumberOutput, error) { + req, out := c.DescribePhoneNumberRequest(input) + return out, req.Send() +} + +// DescribePhoneNumberWithContext is the same as DescribePhoneNumber with the addition of +// the ability to pass a context and additional request options. +// +// See DescribePhoneNumber 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 *Connect) DescribePhoneNumberWithContext(ctx aws.Context, input *DescribePhoneNumberInput, opts ...request.Option) (*DescribePhoneNumberOutput, error) { + req, out := c.DescribePhoneNumberRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opDescribeQueue = "DescribeQueue" // DescribeQueueRequest generates a "aws/request.Request" representing the @@ -5275,6 +5554,99 @@ func (c *Connect) DisassociateLexBotWithContext(ctx aws.Context, input *Disassoc return out, req.Send() } +const opDisassociatePhoneNumberContactFlow = "DisassociatePhoneNumberContactFlow" + +// DisassociatePhoneNumberContactFlowRequest generates a "aws/request.Request" representing the +// client's request for the DisassociatePhoneNumberContactFlow 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 DisassociatePhoneNumberContactFlow for more information on using the DisassociatePhoneNumberContactFlow +// 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 DisassociatePhoneNumberContactFlowRequest method. +// req, resp := client.DisassociatePhoneNumberContactFlowRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/DisassociatePhoneNumberContactFlow +func (c *Connect) DisassociatePhoneNumberContactFlowRequest(input *DisassociatePhoneNumberContactFlowInput) (req *request.Request, output *DisassociatePhoneNumberContactFlowOutput) { + op := &request.Operation{ + Name: opDisassociatePhoneNumberContactFlow, + HTTPMethod: "DELETE", + HTTPPath: "/phone-number/{PhoneNumberId}/contact-flow", + } + + if input == nil { + input = &DisassociatePhoneNumberContactFlowInput{} + } + + output = &DisassociatePhoneNumberContactFlowOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// DisassociatePhoneNumberContactFlow API operation for Amazon Connect Service. +// +// Removes the contact flow association from a phone number claimed to your +// Amazon Connect instance, if a contact flow association exists. +// +// 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 Connect Service's +// API operation DisassociatePhoneNumberContactFlow for usage and error information. +// +// Returned Error Types: +// * InvalidParameterException +// One or more of the specified parameters are not valid. +// +// * ResourceNotFoundException +// The specified resource was not found. +// +// * ThrottlingException +// The throttling limit has been exceeded. +// +// * InternalServiceException +// Request processing failed because of an error or failure with the service. +// +// * AccessDeniedException +// You do not have sufficient permissions to perform this action. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/DisassociatePhoneNumberContactFlow +func (c *Connect) DisassociatePhoneNumberContactFlow(input *DisassociatePhoneNumberContactFlowInput) (*DisassociatePhoneNumberContactFlowOutput, error) { + req, out := c.DisassociatePhoneNumberContactFlowRequest(input) + return out, req.Send() +} + +// DisassociatePhoneNumberContactFlowWithContext is the same as DisassociatePhoneNumberContactFlow with the addition of +// the ability to pass a context and additional request options. +// +// See DisassociatePhoneNumberContactFlow 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 *Connect) DisassociatePhoneNumberContactFlowWithContext(ctx aws.Context, input *DisassociatePhoneNumberContactFlowInput, opts ...request.Option) (*DisassociatePhoneNumberContactFlowOutput, error) { + req, out := c.DisassociatePhoneNumberContactFlowRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opDisassociateQueueQuickConnects = "DisassociateQueueQuickConnects" // DisassociateQueueQuickConnectsRequest generates a "aws/request.Request" representing the @@ -8310,6 +8682,159 @@ func (c *Connect) ListPhoneNumbersPagesWithContext(ctx aws.Context, input *ListP return p.Err() } +const opListPhoneNumbersV2 = "ListPhoneNumbersV2" + +// ListPhoneNumbersV2Request generates a "aws/request.Request" representing the +// client's request for the ListPhoneNumbersV2 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 ListPhoneNumbersV2 for more information on using the ListPhoneNumbersV2 +// 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 ListPhoneNumbersV2Request method. +// req, resp := client.ListPhoneNumbersV2Request(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/ListPhoneNumbersV2 +func (c *Connect) ListPhoneNumbersV2Request(input *ListPhoneNumbersV2Input) (req *request.Request, output *ListPhoneNumbersV2Output) { + op := &request.Operation{ + Name: opListPhoneNumbersV2, + HTTPMethod: "POST", + HTTPPath: "/phone-number/list", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListPhoneNumbersV2Input{} + } + + output = &ListPhoneNumbersV2Output{} + req = c.newRequest(op, input, output) + return +} + +// ListPhoneNumbersV2 API operation for Amazon Connect Service. +// +// Lists phone numbers claimed to your Amazon Connect instance. +// +// For more information about phone numbers, see Set Up Phone Numbers for Your +// Contact Center (https://docs.aws.amazon.com/connect/latest/adminguide/contact-center-phone-number.html) +// in the Amazon Connect Administrator 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 Connect Service's +// API operation ListPhoneNumbersV2 for usage and error information. +// +// Returned Error Types: +// * InvalidParameterException +// One or more of the specified parameters are not valid. +// +// * ResourceNotFoundException +// The specified resource was not found. +// +// * ThrottlingException +// The throttling limit has been exceeded. +// +// * InternalServiceException +// Request processing failed because of an error or failure with the service. +// +// * AccessDeniedException +// You do not have sufficient permissions to perform this action. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/ListPhoneNumbersV2 +func (c *Connect) ListPhoneNumbersV2(input *ListPhoneNumbersV2Input) (*ListPhoneNumbersV2Output, error) { + req, out := c.ListPhoneNumbersV2Request(input) + return out, req.Send() +} + +// ListPhoneNumbersV2WithContext is the same as ListPhoneNumbersV2 with the addition of +// the ability to pass a context and additional request options. +// +// See ListPhoneNumbersV2 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 *Connect) ListPhoneNumbersV2WithContext(ctx aws.Context, input *ListPhoneNumbersV2Input, opts ...request.Option) (*ListPhoneNumbersV2Output, error) { + req, out := c.ListPhoneNumbersV2Request(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// ListPhoneNumbersV2Pages iterates over the pages of a ListPhoneNumbersV2 operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListPhoneNumbersV2 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 ListPhoneNumbersV2 operation. +// pageNum := 0 +// err := client.ListPhoneNumbersV2Pages(params, +// func(page *connect.ListPhoneNumbersV2Output, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *Connect) ListPhoneNumbersV2Pages(input *ListPhoneNumbersV2Input, fn func(*ListPhoneNumbersV2Output, bool) bool) error { + return c.ListPhoneNumbersV2PagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListPhoneNumbersV2PagesWithContext same as ListPhoneNumbersV2Pages 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 *Connect) ListPhoneNumbersV2PagesWithContext(ctx aws.Context, input *ListPhoneNumbersV2Input, fn func(*ListPhoneNumbersV2Output, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListPhoneNumbersV2Input + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListPhoneNumbersV2Request(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListPhoneNumbersV2Output), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + const opListPrompts = "ListPrompts" // ListPromptsRequest generates a "aws/request.Request" representing the @@ -10220,6 +10745,104 @@ func (c *Connect) ListUsersPagesWithContext(ctx aws.Context, input *ListUsersInp return p.Err() } +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/connect-2017-08-08/ReleasePhoneNumber +func (c *Connect) ReleasePhoneNumberRequest(input *ReleasePhoneNumberInput) (req *request.Request, output *ReleasePhoneNumberOutput) { + op := &request.Operation{ + Name: opReleasePhoneNumber, + HTTPMethod: "DELETE", + HTTPPath: "/phone-number/{PhoneNumberId}", + } + + if input == nil { + input = &ReleasePhoneNumberInput{} + } + + output = &ReleasePhoneNumberOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// ReleasePhoneNumber API operation for Amazon Connect Service. +// +// Releases a phone number previously claimed to an Amazon Connect instance. +// +// 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 Connect Service's +// API operation ReleasePhoneNumber for usage and error information. +// +// Returned Error Types: +// * InvalidParameterException +// One or more of the specified parameters are not valid. +// +// * ResourceNotFoundException +// The specified resource was not found. +// +// * ThrottlingException +// The throttling limit has been exceeded. +// +// * InternalServiceException +// Request processing failed because of an error or failure with the service. +// +// * ResourceInUseException +// That resource is already in use. Please try another. +// +// * IdempotencyException +// An entity with the same name already exists. +// +// * AccessDeniedException +// You do not have sufficient permissions to perform this action. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/ReleasePhoneNumber +func (c *Connect) 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 *Connect) 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 opResumeContactRecording = "ResumeContactRecording" // ResumeContactRecordingRequest generates a "aws/request.Request" representing the @@ -10309,6 +10932,153 @@ func (c *Connect) ResumeContactRecordingWithContext(ctx aws.Context, input *Resu return out, req.Send() } +const opSearchAvailablePhoneNumbers = "SearchAvailablePhoneNumbers" + +// SearchAvailablePhoneNumbersRequest generates a "aws/request.Request" representing the +// client's request for the SearchAvailablePhoneNumbers 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 SearchAvailablePhoneNumbers for more information on using the SearchAvailablePhoneNumbers +// 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 SearchAvailablePhoneNumbersRequest method. +// req, resp := client.SearchAvailablePhoneNumbersRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/SearchAvailablePhoneNumbers +func (c *Connect) SearchAvailablePhoneNumbersRequest(input *SearchAvailablePhoneNumbersInput) (req *request.Request, output *SearchAvailablePhoneNumbersOutput) { + op := &request.Operation{ + Name: opSearchAvailablePhoneNumbers, + HTTPMethod: "POST", + HTTPPath: "/phone-number/search-available", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &SearchAvailablePhoneNumbersInput{} + } + + output = &SearchAvailablePhoneNumbersOutput{} + req = c.newRequest(op, input, output) + return +} + +// SearchAvailablePhoneNumbers API operation for Amazon Connect Service. +// +// Searches for available phone numbers that you can claim to your Amazon Connect +// instance. +// +// 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 Connect Service's +// API operation SearchAvailablePhoneNumbers for usage and error information. +// +// Returned Error Types: +// * InvalidParameterException +// One or more of the specified parameters are not valid. +// +// * ThrottlingException +// The throttling limit has been exceeded. +// +// * InternalServiceException +// Request processing failed because of an error or failure with the service. +// +// * AccessDeniedException +// You do not have sufficient permissions to perform this action. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/SearchAvailablePhoneNumbers +func (c *Connect) SearchAvailablePhoneNumbers(input *SearchAvailablePhoneNumbersInput) (*SearchAvailablePhoneNumbersOutput, error) { + req, out := c.SearchAvailablePhoneNumbersRequest(input) + return out, req.Send() +} + +// SearchAvailablePhoneNumbersWithContext is the same as SearchAvailablePhoneNumbers with the addition of +// the ability to pass a context and additional request options. +// +// See SearchAvailablePhoneNumbers 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 *Connect) SearchAvailablePhoneNumbersWithContext(ctx aws.Context, input *SearchAvailablePhoneNumbersInput, opts ...request.Option) (*SearchAvailablePhoneNumbersOutput, error) { + req, out := c.SearchAvailablePhoneNumbersRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// SearchAvailablePhoneNumbersPages iterates over the pages of a SearchAvailablePhoneNumbers operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See SearchAvailablePhoneNumbers 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 SearchAvailablePhoneNumbers operation. +// pageNum := 0 +// err := client.SearchAvailablePhoneNumbersPages(params, +// func(page *connect.SearchAvailablePhoneNumbersOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *Connect) SearchAvailablePhoneNumbersPages(input *SearchAvailablePhoneNumbersInput, fn func(*SearchAvailablePhoneNumbersOutput, bool) bool) error { + return c.SearchAvailablePhoneNumbersPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// SearchAvailablePhoneNumbersPagesWithContext same as SearchAvailablePhoneNumbersPages 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 *Connect) SearchAvailablePhoneNumbersPagesWithContext(ctx aws.Context, input *SearchAvailablePhoneNumbersInput, fn func(*SearchAvailablePhoneNumbersOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *SearchAvailablePhoneNumbersInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.SearchAvailablePhoneNumbersRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*SearchAvailablePhoneNumbersOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + const opSearchVocabularies = "SearchVocabularies" // SearchVocabulariesRequest generates a "aws/request.Request" representing the @@ -11407,7 +12177,7 @@ func (c *Connect) TagResourceRequest(input *TagResourceInput) (req *request.Requ // Adds the specified tags to the specified resource. // // The supported resource types are users, routing profiles, queues, quick connects, -// contact flows, agent status, and hours of operation. +// contact flows, agent status, hours of operation, and phone number. // // For sample policies that use tags, see Amazon Connect Identity-Based Policy // Examples (https://docs.aws.amazon.com/connect/latest/adminguide/security_iam_id-based-policy-examples.html) @@ -12724,6 +13494,104 @@ func (c *Connect) UpdateInstanceStorageConfigWithContext(ctx aws.Context, input 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/connect-2017-08-08/UpdatePhoneNumber +func (c *Connect) UpdatePhoneNumberRequest(input *UpdatePhoneNumberInput) (req *request.Request, output *UpdatePhoneNumberOutput) { + op := &request.Operation{ + Name: opUpdatePhoneNumber, + HTTPMethod: "PUT", + HTTPPath: "/phone-number/{PhoneNumberId}", + } + + if input == nil { + input = &UpdatePhoneNumberInput{} + } + + output = &UpdatePhoneNumberOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdatePhoneNumber API operation for Amazon Connect Service. +// +// Updates your claimed phone number from its current Amazon Connect instance +// to another Amazon Connect instance in the same 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 Connect Service's +// API operation UpdatePhoneNumber for usage and error information. +// +// Returned Error Types: +// * InvalidParameterException +// One or more of the specified parameters are not valid. +// +// * ResourceNotFoundException +// The specified resource was not found. +// +// * ThrottlingException +// The throttling limit has been exceeded. +// +// * InternalServiceException +// Request processing failed because of an error or failure with the service. +// +// * ResourceInUseException +// That resource is already in use. Please try another. +// +// * IdempotencyException +// An entity with the same name already exists. +// +// * AccessDeniedException +// You do not have sufficient permissions to perform this action. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/UpdatePhoneNumber +func (c *Connect) 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 *Connect) 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 opUpdateQueueHoursOfOperation = "UpdateQueueHoursOfOperation" // UpdateQueueHoursOfOperationRequest generates a "aws/request.Request" representing the @@ -15387,6 +16255,109 @@ func (s AssociateLexBotOutput) GoString() string { return s.String() } +type AssociatePhoneNumberContactFlowInput struct { + _ struct{} `type:"structure"` + + // The identifier of the contact flow. + // + // ContactFlowId is a required field + ContactFlowId *string `type:"string" required:"true"` + + // The identifier of the Amazon Connect instance. You can find the instanceId + // in the ARN of the instance. + // + // InstanceId is a required field + InstanceId *string `min:"1" type:"string" required:"true"` + + // A unique identifier for the phone number. + // + // PhoneNumberId is a required field + PhoneNumberId *string `location:"uri" locationName:"PhoneNumberId" 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 AssociatePhoneNumberContactFlowInput) 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 AssociatePhoneNumberContactFlowInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AssociatePhoneNumberContactFlowInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AssociatePhoneNumberContactFlowInput"} + if s.ContactFlowId == nil { + invalidParams.Add(request.NewErrParamRequired("ContactFlowId")) + } + if s.InstanceId == nil { + invalidParams.Add(request.NewErrParamRequired("InstanceId")) + } + if s.InstanceId != nil && len(*s.InstanceId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("InstanceId", 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 invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetContactFlowId sets the ContactFlowId field's value. +func (s *AssociatePhoneNumberContactFlowInput) SetContactFlowId(v string) *AssociatePhoneNumberContactFlowInput { + s.ContactFlowId = &v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *AssociatePhoneNumberContactFlowInput) SetInstanceId(v string) *AssociatePhoneNumberContactFlowInput { + s.InstanceId = &v + return s +} + +// SetPhoneNumberId sets the PhoneNumberId field's value. +func (s *AssociatePhoneNumberContactFlowInput) SetPhoneNumberId(v string) *AssociatePhoneNumberContactFlowInput { + s.PhoneNumberId = &v + return s +} + +type AssociatePhoneNumberContactFlowOutput 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 AssociatePhoneNumberContactFlowOutput) 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 AssociatePhoneNumberContactFlowOutput) GoString() string { + return s.String() +} + type AssociateQueueQuickConnectsInput struct { _ struct{} `type:"structure"` @@ -15800,6 +16771,57 @@ func (s *Attribute) SetValue(v string) *Attribute { return s } +// Information about available phone numbers. +type AvailableNumberSummary struct { + _ struct{} `type:"structure"` + + // The phone number. Phone numbers are formatted [+] [country code] [subscriber + // number including area code]. + PhoneNumber *string `type:"string"` + + // The ISO country code. + PhoneNumberCountryCode *string `type:"string" enum:"PhoneNumberCountryCode"` + + // The type of phone number. + PhoneNumberType *string `type:"string" enum:"PhoneNumberType"` +} + +// 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 AvailableNumberSummary) 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 AvailableNumberSummary) GoString() string { + return s.String() +} + +// SetPhoneNumber sets the PhoneNumber field's value. +func (s *AvailableNumberSummary) SetPhoneNumber(v string) *AvailableNumberSummary { + s.PhoneNumber = &v + return s +} + +// SetPhoneNumberCountryCode sets the PhoneNumberCountryCode field's value. +func (s *AvailableNumberSummary) SetPhoneNumberCountryCode(v string) *AvailableNumberSummary { + s.PhoneNumberCountryCode = &v + return s +} + +// SetPhoneNumberType sets the PhoneNumberType field's value. +func (s *AvailableNumberSummary) SetPhoneNumberType(v string) *AvailableNumberSummary { + s.PhoneNumberType = &v + return s +} + // A chat message. type ChatMessage struct { _ struct{} `type:"structure"` @@ -15919,6 +16941,246 @@ func (s *ChatStreamingConfiguration) SetStreamingEndpointArn(v string) *ChatStre return s } +type ClaimPhoneNumberInput struct { + _ struct{} `type:"structure"` + + // A unique, case-sensitive identifier that you provide to ensure the idempotency + // of the request. + ClientToken *string `type:"string" idempotencyToken:"true"` + + // The phone number you want to claim. Phone numbers are formatted [+] [country + // code] [subscriber number including area code]. + // + // PhoneNumber is a required field + PhoneNumber *string `type:"string" required:"true"` + + // The description of the phone number. + PhoneNumberDescription *string `type:"string"` + + // The tags used to organize, track, or control access for this resource. + Tags map[string]*string `min:"1" type:"map"` + + // The Amazon Resource Name (ARN) for Amazon Connect instances that phone numbers + // are claimed to. + // + // TargetArn is a required field + TargetArn *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 ClaimPhoneNumberInput) 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 ClaimPhoneNumberInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ClaimPhoneNumberInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ClaimPhoneNumberInput"} + if s.PhoneNumber == nil { + invalidParams.Add(request.NewErrParamRequired("PhoneNumber")) + } + if s.Tags != nil && len(s.Tags) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Tags", 1)) + } + if s.TargetArn == nil { + invalidParams.Add(request.NewErrParamRequired("TargetArn")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetClientToken sets the ClientToken field's value. +func (s *ClaimPhoneNumberInput) SetClientToken(v string) *ClaimPhoneNumberInput { + s.ClientToken = &v + return s +} + +// SetPhoneNumber sets the PhoneNumber field's value. +func (s *ClaimPhoneNumberInput) SetPhoneNumber(v string) *ClaimPhoneNumberInput { + s.PhoneNumber = &v + return s +} + +// SetPhoneNumberDescription sets the PhoneNumberDescription field's value. +func (s *ClaimPhoneNumberInput) SetPhoneNumberDescription(v string) *ClaimPhoneNumberInput { + s.PhoneNumberDescription = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *ClaimPhoneNumberInput) SetTags(v map[string]*string) *ClaimPhoneNumberInput { + s.Tags = v + return s +} + +// SetTargetArn sets the TargetArn field's value. +func (s *ClaimPhoneNumberInput) SetTargetArn(v string) *ClaimPhoneNumberInput { + s.TargetArn = &v + return s +} + +type ClaimPhoneNumberOutput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the phone number. + PhoneNumberArn *string `type:"string"` + + // The identifier of the phone number. + PhoneNumberId *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 ClaimPhoneNumberOutput) 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 ClaimPhoneNumberOutput) GoString() string { + return s.String() +} + +// SetPhoneNumberArn sets the PhoneNumberArn field's value. +func (s *ClaimPhoneNumberOutput) SetPhoneNumberArn(v string) *ClaimPhoneNumberOutput { + s.PhoneNumberArn = &v + return s +} + +// SetPhoneNumberId sets the PhoneNumberId field's value. +func (s *ClaimPhoneNumberOutput) SetPhoneNumberId(v string) *ClaimPhoneNumberOutput { + s.PhoneNumberId = &v + return s +} + +// Information about a phone number that has been claimed to your Amazon Connect +// instance. +type ClaimedPhoneNumberSummary struct { + _ struct{} `type:"structure"` + + // The phone number. Phone numbers are formatted [+] [country code] [subscriber + // number including area code]. + PhoneNumber *string `type:"string"` + + // The Amazon Resource Name (ARN) of the phone number. + PhoneNumberArn *string `type:"string"` + + // The ISO country code. + PhoneNumberCountryCode *string `type:"string" enum:"PhoneNumberCountryCode"` + + // The description of the phone number. + PhoneNumberDescription *string `type:"string"` + + // The identifier of the phone number. + PhoneNumberId *string `type:"string"` + + // The status of the phone number. + PhoneNumberStatus *PhoneNumberStatus `type:"structure"` + + // The type of phone number. + PhoneNumberType *string `type:"string" enum:"PhoneNumberType"` + + // The tags used to organize, track, or control access for this resource. + Tags map[string]*string `min:"1" type:"map"` + + // The Amazon Resource Name (ARN) for Amazon Connect instances that phone numbers + // are claimed to. + TargetArn *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 ClaimedPhoneNumberSummary) 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 ClaimedPhoneNumberSummary) GoString() string { + return s.String() +} + +// SetPhoneNumber sets the PhoneNumber field's value. +func (s *ClaimedPhoneNumberSummary) SetPhoneNumber(v string) *ClaimedPhoneNumberSummary { + s.PhoneNumber = &v + return s +} + +// SetPhoneNumberArn sets the PhoneNumberArn field's value. +func (s *ClaimedPhoneNumberSummary) SetPhoneNumberArn(v string) *ClaimedPhoneNumberSummary { + s.PhoneNumberArn = &v + return s +} + +// SetPhoneNumberCountryCode sets the PhoneNumberCountryCode field's value. +func (s *ClaimedPhoneNumberSummary) SetPhoneNumberCountryCode(v string) *ClaimedPhoneNumberSummary { + s.PhoneNumberCountryCode = &v + return s +} + +// SetPhoneNumberDescription sets the PhoneNumberDescription field's value. +func (s *ClaimedPhoneNumberSummary) SetPhoneNumberDescription(v string) *ClaimedPhoneNumberSummary { + s.PhoneNumberDescription = &v + return s +} + +// SetPhoneNumberId sets the PhoneNumberId field's value. +func (s *ClaimedPhoneNumberSummary) SetPhoneNumberId(v string) *ClaimedPhoneNumberSummary { + s.PhoneNumberId = &v + return s +} + +// SetPhoneNumberStatus sets the PhoneNumberStatus field's value. +func (s *ClaimedPhoneNumberSummary) SetPhoneNumberStatus(v *PhoneNumberStatus) *ClaimedPhoneNumberSummary { + s.PhoneNumberStatus = v + return s +} + +// SetPhoneNumberType sets the PhoneNumberType field's value. +func (s *ClaimedPhoneNumberSummary) SetPhoneNumberType(v string) *ClaimedPhoneNumberSummary { + s.PhoneNumberType = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *ClaimedPhoneNumberSummary) SetTags(v map[string]*string) *ClaimedPhoneNumberSummary { + s.Tags = v + return s +} + +// SetTargetArn sets the TargetArn field's value. +func (s *ClaimedPhoneNumberSummary) SetTargetArn(v string) *ClaimedPhoneNumberSummary { + s.TargetArn = &v + return s +} + // Contains information about a contact. type Contact struct { _ struct{} `type:"structure"` @@ -20866,6 +22128,87 @@ func (s *DescribeInstanceStorageConfigOutput) SetStorageConfig(v *InstanceStorag return s } +type DescribePhoneNumberInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // The identifier of the phone number. + // + // PhoneNumberId is a required field + PhoneNumberId *string `location:"uri" locationName:"PhoneNumberId" 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 DescribePhoneNumberInput) 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 DescribePhoneNumberInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribePhoneNumberInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribePhoneNumberInput"} + 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 *DescribePhoneNumberInput) SetPhoneNumberId(v string) *DescribePhoneNumberInput { + s.PhoneNumberId = &v + return s +} + +type DescribePhoneNumberOutput struct { + _ struct{} `type:"structure"` + + // Information about a phone number that's been claimed to your Amazon Connect + // instance. + ClaimedPhoneNumberSummary *ClaimedPhoneNumberSummary `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 DescribePhoneNumberOutput) 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 DescribePhoneNumberOutput) GoString() string { + return s.String() +} + +// SetClaimedPhoneNumberSummary sets the ClaimedPhoneNumberSummary field's value. +func (s *DescribePhoneNumberOutput) SetClaimedPhoneNumberSummary(v *ClaimedPhoneNumberSummary) *DescribePhoneNumberOutput { + s.ClaimedPhoneNumberSummary = v + return s +} + type DescribeQueueInput struct { _ struct{} `type:"structure" nopayload:"true"` @@ -22217,6 +23560,95 @@ func (s DisassociateLexBotOutput) GoString() string { return s.String() } +type DisassociatePhoneNumberContactFlowInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // The identifier of the Amazon Connect instance. You can find the instanceId + // in the ARN of the instance. + // + // InstanceId is a required field + InstanceId *string `location:"querystring" locationName:"instanceId" min:"1" type:"string" required:"true"` + + // The identifier of the phone number. + // + // PhoneNumberId is a required field + PhoneNumberId *string `location:"uri" locationName:"PhoneNumberId" 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 DisassociatePhoneNumberContactFlowInput) 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 DisassociatePhoneNumberContactFlowInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DisassociatePhoneNumberContactFlowInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DisassociatePhoneNumberContactFlowInput"} + if s.InstanceId == nil { + invalidParams.Add(request.NewErrParamRequired("InstanceId")) + } + if s.InstanceId != nil && len(*s.InstanceId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("InstanceId", 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 invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetInstanceId sets the InstanceId field's value. +func (s *DisassociatePhoneNumberContactFlowInput) SetInstanceId(v string) *DisassociatePhoneNumberContactFlowInput { + s.InstanceId = &v + return s +} + +// SetPhoneNumberId sets the PhoneNumberId field's value. +func (s *DisassociatePhoneNumberContactFlowInput) SetPhoneNumberId(v string) *DisassociatePhoneNumberContactFlowInput { + s.PhoneNumberId = &v + return s +} + +type DisassociatePhoneNumberContactFlowOutput 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 DisassociatePhoneNumberContactFlowOutput) 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 DisassociatePhoneNumberContactFlowOutput) GoString() string { + return s.String() +} + type DisassociateQueueQuickConnectsInput struct { _ struct{} `type:"structure"` @@ -27436,6 +28868,223 @@ func (s *ListPhoneNumbersOutput) SetPhoneNumberSummaryList(v []*PhoneNumberSumma return s } +// Information about phone numbers that have been claimed to your Amazon Connect +// instance. +type ListPhoneNumbersSummary struct { + _ struct{} `type:"structure"` + + // The phone number. Phone numbers are formatted [+] [country code] [subscriber + // number including area code]. + PhoneNumber *string `type:"string"` + + // The Amazon Resource Name (ARN) of the phone number. + PhoneNumberArn *string `type:"string"` + + // The ISO country code. + PhoneNumberCountryCode *string `type:"string" enum:"PhoneNumberCountryCode"` + + // The identifier of the phone number. + PhoneNumberId *string `type:"string"` + + // The type of phone number. + PhoneNumberType *string `type:"string" enum:"PhoneNumberType"` + + // The Amazon Resource Name (ARN) for Amazon Connect instances that phone numbers + // are claimed to. + TargetArn *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 ListPhoneNumbersSummary) 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 ListPhoneNumbersSummary) GoString() string { + return s.String() +} + +// SetPhoneNumber sets the PhoneNumber field's value. +func (s *ListPhoneNumbersSummary) SetPhoneNumber(v string) *ListPhoneNumbersSummary { + s.PhoneNumber = &v + return s +} + +// SetPhoneNumberArn sets the PhoneNumberArn field's value. +func (s *ListPhoneNumbersSummary) SetPhoneNumberArn(v string) *ListPhoneNumbersSummary { + s.PhoneNumberArn = &v + return s +} + +// SetPhoneNumberCountryCode sets the PhoneNumberCountryCode field's value. +func (s *ListPhoneNumbersSummary) SetPhoneNumberCountryCode(v string) *ListPhoneNumbersSummary { + s.PhoneNumberCountryCode = &v + return s +} + +// SetPhoneNumberId sets the PhoneNumberId field's value. +func (s *ListPhoneNumbersSummary) SetPhoneNumberId(v string) *ListPhoneNumbersSummary { + s.PhoneNumberId = &v + return s +} + +// SetPhoneNumberType sets the PhoneNumberType field's value. +func (s *ListPhoneNumbersSummary) SetPhoneNumberType(v string) *ListPhoneNumbersSummary { + s.PhoneNumberType = &v + return s +} + +// SetTargetArn sets the TargetArn field's value. +func (s *ListPhoneNumbersSummary) SetTargetArn(v string) *ListPhoneNumbersSummary { + s.TargetArn = &v + return s +} + +type ListPhoneNumbersV2Input struct { + _ struct{} `type:"structure"` + + // The maximum number of results to return per page. + MaxResults *int64 `min:"1" type:"integer"` + + // The token for the next set of results. Use the value returned in the previous + // response in the next request to retrieve the next set of results. + NextToken *string `min:"1" type:"string"` + + // The ISO country code. + PhoneNumberCountryCodes []*string `type:"list" enum:"PhoneNumberCountryCode"` + + // The prefix of the phone number. If provided, it must contain + as part of + // the country code. + PhoneNumberPrefix *string `type:"string"` + + // The type of phone number. + PhoneNumberTypes []*string `type:"list" enum:"PhoneNumberType"` + + // The Amazon Resource Name (ARN) for Amazon Connect instances that phone numbers + // are claimed to. If TargetArn input is not provided, this API lists numbers + // claimed to all the Amazon Connect instances belonging to your account. + TargetArn *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 ListPhoneNumbersV2Input) 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 ListPhoneNumbersV2Input) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListPhoneNumbersV2Input) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListPhoneNumbersV2Input"} + 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 *ListPhoneNumbersV2Input) SetMaxResults(v int64) *ListPhoneNumbersV2Input { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListPhoneNumbersV2Input) SetNextToken(v string) *ListPhoneNumbersV2Input { + s.NextToken = &v + return s +} + +// SetPhoneNumberCountryCodes sets the PhoneNumberCountryCodes field's value. +func (s *ListPhoneNumbersV2Input) SetPhoneNumberCountryCodes(v []*string) *ListPhoneNumbersV2Input { + s.PhoneNumberCountryCodes = v + return s +} + +// SetPhoneNumberPrefix sets the PhoneNumberPrefix field's value. +func (s *ListPhoneNumbersV2Input) SetPhoneNumberPrefix(v string) *ListPhoneNumbersV2Input { + s.PhoneNumberPrefix = &v + return s +} + +// SetPhoneNumberTypes sets the PhoneNumberTypes field's value. +func (s *ListPhoneNumbersV2Input) SetPhoneNumberTypes(v []*string) *ListPhoneNumbersV2Input { + s.PhoneNumberTypes = v + return s +} + +// SetTargetArn sets the TargetArn field's value. +func (s *ListPhoneNumbersV2Input) SetTargetArn(v string) *ListPhoneNumbersV2Input { + s.TargetArn = &v + return s +} + +type ListPhoneNumbersV2Output struct { + _ struct{} `type:"structure"` + + // Information about phone numbers that have been claimed to your Amazon Connect + // instances. + ListPhoneNumbersSummaryList []*ListPhoneNumbersSummary `type:"list"` + + // If there are additional results, this is the token for the next set of 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 ListPhoneNumbersV2Output) 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 ListPhoneNumbersV2Output) GoString() string { + return s.String() +} + +// SetListPhoneNumbersSummaryList sets the ListPhoneNumbersSummaryList field's value. +func (s *ListPhoneNumbersV2Output) SetListPhoneNumbersSummaryList(v []*ListPhoneNumbersSummary) *ListPhoneNumbersV2Output { + s.ListPhoneNumbersSummaryList = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListPhoneNumbersV2Output) SetNextToken(v string) *ListPhoneNumbersV2Output { + s.NextToken = &v + return s +} + type ListPromptsInput struct { _ struct{} `type:"structure" nopayload:"true"` @@ -29245,6 +30894,47 @@ func (s *PhoneNumberQuickConnectConfig) SetPhoneNumber(v string) *PhoneNumberQui return s } +// The status of the phone number. +type PhoneNumberStatus struct { + _ struct{} `type:"structure"` + + // The status message. + Message *string `type:"string"` + + // The status. + Status *string `type:"string" enum:"PhoneNumberWorkflowStatus"` +} + +// 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 PhoneNumberStatus) 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 PhoneNumberStatus) GoString() string { + return s.String() +} + +// SetMessage sets the Message field's value. +func (s *PhoneNumberStatus) SetMessage(v string) *PhoneNumberStatus { + s.Message = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *PhoneNumberStatus) SetStatus(v string) *PhoneNumberStatus { + s.Status = &v + return s +} + // Contains summary information about a phone number for a contact center. type PhoneNumberSummary struct { _ struct{} `type:"structure"` @@ -30040,6 +31730,87 @@ func (s *ReferenceSummary) SetUrl(v *UrlReference) *ReferenceSummary { return s } +type ReleasePhoneNumberInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // A unique, case-sensitive identifier that you provide to ensure the idempotency + // of the request. + ClientToken *string `location:"querystring" locationName:"clientToken" type:"string" idempotencyToken:"true"` + + // The identifier of the phone number. + // + // PhoneNumberId is a required field + PhoneNumberId *string `location:"uri" locationName:"PhoneNumberId" 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 +} + +// SetClientToken sets the ClientToken field's value. +func (s *ReleasePhoneNumberInput) SetClientToken(v string) *ReleasePhoneNumberInput { + s.ClientToken = &v + return s +} + +// 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"` +} + +// 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() +} + // A resource already has that name. type ResourceConflictException struct { _ struct{} `type:"structure"` @@ -30817,6 +32588,157 @@ func (s *S3Config) SetEncryptionConfig(v *EncryptionConfig) *S3Config { return s } +type SearchAvailablePhoneNumbersInput struct { + _ struct{} `type:"structure"` + + // The maximum number of results to return per page. + MaxResults *int64 `min:"1" type:"integer"` + + // The token for the next set of results. Use the value returned in the previous + // response in the next request to retrieve the next set of results. + NextToken *string `min:"1" type:"string"` + + // The ISO country code. + // + // PhoneNumberCountryCode is a required field + PhoneNumberCountryCode *string `type:"string" required:"true" enum:"PhoneNumberCountryCode"` + + // The prefix of the phone number. If provided, it must contain + as part of + // the country code. + PhoneNumberPrefix *string `type:"string"` + + // The type of phone number. + // + // PhoneNumberType is a required field + PhoneNumberType *string `type:"string" required:"true" enum:"PhoneNumberType"` + + // The Amazon Resource Name (ARN) for Amazon Connect instances that phone numbers + // are claimed to. + // + // TargetArn is a required field + TargetArn *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 SearchAvailablePhoneNumbersInput) 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 SearchAvailablePhoneNumbersInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *SearchAvailablePhoneNumbersInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "SearchAvailablePhoneNumbersInput"} + 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.PhoneNumberCountryCode == nil { + invalidParams.Add(request.NewErrParamRequired("PhoneNumberCountryCode")) + } + if s.PhoneNumberType == nil { + invalidParams.Add(request.NewErrParamRequired("PhoneNumberType")) + } + if s.TargetArn == nil { + invalidParams.Add(request.NewErrParamRequired("TargetArn")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetMaxResults sets the MaxResults field's value. +func (s *SearchAvailablePhoneNumbersInput) SetMaxResults(v int64) *SearchAvailablePhoneNumbersInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *SearchAvailablePhoneNumbersInput) SetNextToken(v string) *SearchAvailablePhoneNumbersInput { + s.NextToken = &v + return s +} + +// SetPhoneNumberCountryCode sets the PhoneNumberCountryCode field's value. +func (s *SearchAvailablePhoneNumbersInput) SetPhoneNumberCountryCode(v string) *SearchAvailablePhoneNumbersInput { + s.PhoneNumberCountryCode = &v + return s +} + +// SetPhoneNumberPrefix sets the PhoneNumberPrefix field's value. +func (s *SearchAvailablePhoneNumbersInput) SetPhoneNumberPrefix(v string) *SearchAvailablePhoneNumbersInput { + s.PhoneNumberPrefix = &v + return s +} + +// SetPhoneNumberType sets the PhoneNumberType field's value. +func (s *SearchAvailablePhoneNumbersInput) SetPhoneNumberType(v string) *SearchAvailablePhoneNumbersInput { + s.PhoneNumberType = &v + return s +} + +// SetTargetArn sets the TargetArn field's value. +func (s *SearchAvailablePhoneNumbersInput) SetTargetArn(v string) *SearchAvailablePhoneNumbersInput { + s.TargetArn = &v + return s +} + +type SearchAvailablePhoneNumbersOutput struct { + _ struct{} `type:"structure"` + + // A list of available phone numbers that you can claim for your Amazon Connect + // instance. + AvailableNumbersList []*AvailableNumberSummary `type:"list"` + + // If there are additional results, this is the token for the next set of 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 SearchAvailablePhoneNumbersOutput) 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 SearchAvailablePhoneNumbersOutput) GoString() string { + return s.String() +} + +// SetAvailableNumbersList sets the AvailableNumbersList field's value. +func (s *SearchAvailablePhoneNumbersOutput) SetAvailableNumbersList(v []*AvailableNumberSummary) *SearchAvailablePhoneNumbersOutput { + s.AvailableNumbersList = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *SearchAvailablePhoneNumbersOutput) SetNextToken(v string) *SearchAvailablePhoneNumbersOutput { + s.NextToken = &v + return s +} + type SearchVocabulariesInput struct { _ struct{} `type:"structure"` @@ -34145,6 +36067,120 @@ func (s UpdateInstanceStorageConfigOutput) GoString() string { return s.String() } +type UpdatePhoneNumberInput struct { + _ struct{} `type:"structure"` + + // A unique, case-sensitive identifier that you provide to ensure the idempotency + // of the request. + ClientToken *string `type:"string" idempotencyToken:"true"` + + // The identifier of the phone number. + // + // PhoneNumberId is a required field + PhoneNumberId *string `location:"uri" locationName:"PhoneNumberId" type:"string" required:"true"` + + // The Amazon Resource Name (ARN) for Amazon Connect instances that phone numbers + // are claimed to. + // + // TargetArn is a required field + TargetArn *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 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.PhoneNumberId == nil { + invalidParams.Add(request.NewErrParamRequired("PhoneNumberId")) + } + if s.PhoneNumberId != nil && len(*s.PhoneNumberId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("PhoneNumberId", 1)) + } + if s.TargetArn == nil { + invalidParams.Add(request.NewErrParamRequired("TargetArn")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetClientToken sets the ClientToken field's value. +func (s *UpdatePhoneNumberInput) SetClientToken(v string) *UpdatePhoneNumberInput { + s.ClientToken = &v + return s +} + +// SetPhoneNumberId sets the PhoneNumberId field's value. +func (s *UpdatePhoneNumberInput) SetPhoneNumberId(v string) *UpdatePhoneNumberInput { + s.PhoneNumberId = &v + return s +} + +// SetTargetArn sets the TargetArn field's value. +func (s *UpdatePhoneNumberInput) SetTargetArn(v string) *UpdatePhoneNumberInput { + s.TargetArn = &v + return s +} + +type UpdatePhoneNumberOutput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the phone number. + PhoneNumberArn *string `type:"string"` + + // The identifier of the phone number. + PhoneNumberId *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 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() +} + +// 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 +} + type UpdateQueueHoursOfOperationInput struct { _ struct{} `type:"structure"` @@ -38493,6 +40529,26 @@ func PhoneNumberType_Values() []string { } } +const ( + // PhoneNumberWorkflowStatusClaimed is a PhoneNumberWorkflowStatus enum value + PhoneNumberWorkflowStatusClaimed = "CLAIMED" + + // PhoneNumberWorkflowStatusInProgress is a PhoneNumberWorkflowStatus enum value + PhoneNumberWorkflowStatusInProgress = "IN_PROGRESS" + + // PhoneNumberWorkflowStatusFailed is a PhoneNumberWorkflowStatus enum value + PhoneNumberWorkflowStatusFailed = "FAILED" +) + +// PhoneNumberWorkflowStatus_Values returns all elements of the PhoneNumberWorkflowStatus enum +func PhoneNumberWorkflowStatus_Values() []string { + return []string{ + PhoneNumberWorkflowStatusClaimed, + PhoneNumberWorkflowStatusInProgress, + PhoneNumberWorkflowStatusFailed, + } +} + const ( // PhoneTypeSoftPhone is a PhoneType enum value PhoneTypeSoftPhone = "SOFT_PHONE" diff --git a/service/connect/connectiface/interface.go b/service/connect/connectiface/interface.go index 50e087f87f..fe180a800f 100644 --- a/service/connect/connectiface/interface.go +++ b/service/connect/connectiface/interface.go @@ -84,6 +84,10 @@ type ConnectAPI interface { AssociateLexBotWithContext(aws.Context, *connect.AssociateLexBotInput, ...request.Option) (*connect.AssociateLexBotOutput, error) AssociateLexBotRequest(*connect.AssociateLexBotInput) (*request.Request, *connect.AssociateLexBotOutput) + AssociatePhoneNumberContactFlow(*connect.AssociatePhoneNumberContactFlowInput) (*connect.AssociatePhoneNumberContactFlowOutput, error) + AssociatePhoneNumberContactFlowWithContext(aws.Context, *connect.AssociatePhoneNumberContactFlowInput, ...request.Option) (*connect.AssociatePhoneNumberContactFlowOutput, error) + AssociatePhoneNumberContactFlowRequest(*connect.AssociatePhoneNumberContactFlowInput) (*request.Request, *connect.AssociatePhoneNumberContactFlowOutput) + AssociateQueueQuickConnects(*connect.AssociateQueueQuickConnectsInput) (*connect.AssociateQueueQuickConnectsOutput, error) AssociateQueueQuickConnectsWithContext(aws.Context, *connect.AssociateQueueQuickConnectsInput, ...request.Option) (*connect.AssociateQueueQuickConnectsOutput, error) AssociateQueueQuickConnectsRequest(*connect.AssociateQueueQuickConnectsInput) (*request.Request, *connect.AssociateQueueQuickConnectsOutput) @@ -96,6 +100,10 @@ type ConnectAPI interface { AssociateSecurityKeyWithContext(aws.Context, *connect.AssociateSecurityKeyInput, ...request.Option) (*connect.AssociateSecurityKeyOutput, error) AssociateSecurityKeyRequest(*connect.AssociateSecurityKeyInput) (*request.Request, *connect.AssociateSecurityKeyOutput) + ClaimPhoneNumber(*connect.ClaimPhoneNumberInput) (*connect.ClaimPhoneNumberOutput, error) + ClaimPhoneNumberWithContext(aws.Context, *connect.ClaimPhoneNumberInput, ...request.Option) (*connect.ClaimPhoneNumberOutput, error) + ClaimPhoneNumberRequest(*connect.ClaimPhoneNumberInput) (*request.Request, *connect.ClaimPhoneNumberOutput) + CreateAgentStatus(*connect.CreateAgentStatusInput) (*connect.CreateAgentStatusOutput, error) CreateAgentStatusWithContext(aws.Context, *connect.CreateAgentStatusInput, ...request.Option) (*connect.CreateAgentStatusOutput, error) CreateAgentStatusRequest(*connect.CreateAgentStatusInput) (*request.Request, *connect.CreateAgentStatusOutput) @@ -228,6 +236,10 @@ type ConnectAPI interface { DescribeInstanceStorageConfigWithContext(aws.Context, *connect.DescribeInstanceStorageConfigInput, ...request.Option) (*connect.DescribeInstanceStorageConfigOutput, error) DescribeInstanceStorageConfigRequest(*connect.DescribeInstanceStorageConfigInput) (*request.Request, *connect.DescribeInstanceStorageConfigOutput) + DescribePhoneNumber(*connect.DescribePhoneNumberInput) (*connect.DescribePhoneNumberOutput, error) + DescribePhoneNumberWithContext(aws.Context, *connect.DescribePhoneNumberInput, ...request.Option) (*connect.DescribePhoneNumberOutput, error) + DescribePhoneNumberRequest(*connect.DescribePhoneNumberInput) (*request.Request, *connect.DescribePhoneNumberOutput) + DescribeQueue(*connect.DescribeQueueInput) (*connect.DescribeQueueOutput, error) DescribeQueueWithContext(aws.Context, *connect.DescribeQueueInput, ...request.Option) (*connect.DescribeQueueOutput, error) DescribeQueueRequest(*connect.DescribeQueueInput) (*request.Request, *connect.DescribeQueueOutput) @@ -280,6 +292,10 @@ type ConnectAPI interface { DisassociateLexBotWithContext(aws.Context, *connect.DisassociateLexBotInput, ...request.Option) (*connect.DisassociateLexBotOutput, error) DisassociateLexBotRequest(*connect.DisassociateLexBotInput) (*request.Request, *connect.DisassociateLexBotOutput) + DisassociatePhoneNumberContactFlow(*connect.DisassociatePhoneNumberContactFlowInput) (*connect.DisassociatePhoneNumberContactFlowOutput, error) + DisassociatePhoneNumberContactFlowWithContext(aws.Context, *connect.DisassociatePhoneNumberContactFlowInput, ...request.Option) (*connect.DisassociatePhoneNumberContactFlowOutput, error) + DisassociatePhoneNumberContactFlowRequest(*connect.DisassociatePhoneNumberContactFlowInput) (*request.Request, *connect.DisassociatePhoneNumberContactFlowOutput) + DisassociateQueueQuickConnects(*connect.DisassociateQueueQuickConnectsInput) (*connect.DisassociateQueueQuickConnectsOutput, error) DisassociateQueueQuickConnectsWithContext(aws.Context, *connect.DisassociateQueueQuickConnectsInput, ...request.Option) (*connect.DisassociateQueueQuickConnectsOutput, error) DisassociateQueueQuickConnectsRequest(*connect.DisassociateQueueQuickConnectsInput) (*request.Request, *connect.DisassociateQueueQuickConnectsOutput) @@ -419,6 +435,13 @@ type ConnectAPI interface { ListPhoneNumbersPages(*connect.ListPhoneNumbersInput, func(*connect.ListPhoneNumbersOutput, bool) bool) error ListPhoneNumbersPagesWithContext(aws.Context, *connect.ListPhoneNumbersInput, func(*connect.ListPhoneNumbersOutput, bool) bool, ...request.Option) error + ListPhoneNumbersV2(*connect.ListPhoneNumbersV2Input) (*connect.ListPhoneNumbersV2Output, error) + ListPhoneNumbersV2WithContext(aws.Context, *connect.ListPhoneNumbersV2Input, ...request.Option) (*connect.ListPhoneNumbersV2Output, error) + ListPhoneNumbersV2Request(*connect.ListPhoneNumbersV2Input) (*request.Request, *connect.ListPhoneNumbersV2Output) + + ListPhoneNumbersV2Pages(*connect.ListPhoneNumbersV2Input, func(*connect.ListPhoneNumbersV2Output, bool) bool) error + ListPhoneNumbersV2PagesWithContext(aws.Context, *connect.ListPhoneNumbersV2Input, func(*connect.ListPhoneNumbersV2Output, bool) bool, ...request.Option) error + ListPrompts(*connect.ListPromptsInput) (*connect.ListPromptsOutput, error) ListPromptsWithContext(aws.Context, *connect.ListPromptsInput, ...request.Option) (*connect.ListPromptsOutput, error) ListPromptsRequest(*connect.ListPromptsInput) (*request.Request, *connect.ListPromptsOutput) @@ -507,10 +530,21 @@ type ConnectAPI interface { ListUsersPages(*connect.ListUsersInput, func(*connect.ListUsersOutput, bool) bool) error ListUsersPagesWithContext(aws.Context, *connect.ListUsersInput, func(*connect.ListUsersOutput, bool) bool, ...request.Option) error + ReleasePhoneNumber(*connect.ReleasePhoneNumberInput) (*connect.ReleasePhoneNumberOutput, error) + ReleasePhoneNumberWithContext(aws.Context, *connect.ReleasePhoneNumberInput, ...request.Option) (*connect.ReleasePhoneNumberOutput, error) + ReleasePhoneNumberRequest(*connect.ReleasePhoneNumberInput) (*request.Request, *connect.ReleasePhoneNumberOutput) + ResumeContactRecording(*connect.ResumeContactRecordingInput) (*connect.ResumeContactRecordingOutput, error) ResumeContactRecordingWithContext(aws.Context, *connect.ResumeContactRecordingInput, ...request.Option) (*connect.ResumeContactRecordingOutput, error) ResumeContactRecordingRequest(*connect.ResumeContactRecordingInput) (*request.Request, *connect.ResumeContactRecordingOutput) + SearchAvailablePhoneNumbers(*connect.SearchAvailablePhoneNumbersInput) (*connect.SearchAvailablePhoneNumbersOutput, error) + SearchAvailablePhoneNumbersWithContext(aws.Context, *connect.SearchAvailablePhoneNumbersInput, ...request.Option) (*connect.SearchAvailablePhoneNumbersOutput, error) + SearchAvailablePhoneNumbersRequest(*connect.SearchAvailablePhoneNumbersInput) (*request.Request, *connect.SearchAvailablePhoneNumbersOutput) + + SearchAvailablePhoneNumbersPages(*connect.SearchAvailablePhoneNumbersInput, func(*connect.SearchAvailablePhoneNumbersOutput, bool) bool) error + SearchAvailablePhoneNumbersPagesWithContext(aws.Context, *connect.SearchAvailablePhoneNumbersInput, func(*connect.SearchAvailablePhoneNumbersOutput, bool) bool, ...request.Option) error + SearchVocabularies(*connect.SearchVocabulariesInput) (*connect.SearchVocabulariesOutput, error) SearchVocabulariesWithContext(aws.Context, *connect.SearchVocabulariesInput, ...request.Option) (*connect.SearchVocabulariesOutput, error) SearchVocabulariesRequest(*connect.SearchVocabulariesInput) (*request.Request, *connect.SearchVocabulariesOutput) @@ -610,6 +644,10 @@ type ConnectAPI interface { UpdateInstanceStorageConfigWithContext(aws.Context, *connect.UpdateInstanceStorageConfigInput, ...request.Option) (*connect.UpdateInstanceStorageConfigOutput, error) UpdateInstanceStorageConfigRequest(*connect.UpdateInstanceStorageConfigInput) (*request.Request, *connect.UpdateInstanceStorageConfigOutput) + UpdatePhoneNumber(*connect.UpdatePhoneNumberInput) (*connect.UpdatePhoneNumberOutput, error) + UpdatePhoneNumberWithContext(aws.Context, *connect.UpdatePhoneNumberInput, ...request.Option) (*connect.UpdatePhoneNumberOutput, error) + UpdatePhoneNumberRequest(*connect.UpdatePhoneNumberInput) (*request.Request, *connect.UpdatePhoneNumberOutput) + UpdateQueueHoursOfOperation(*connect.UpdateQueueHoursOfOperationInput) (*connect.UpdateQueueHoursOfOperationOutput, error) UpdateQueueHoursOfOperationWithContext(aws.Context, *connect.UpdateQueueHoursOfOperationInput, ...request.Option) (*connect.UpdateQueueHoursOfOperationOutput, error) UpdateQueueHoursOfOperationRequest(*connect.UpdateQueueHoursOfOperationInput) (*request.Request, *connect.UpdateQueueHoursOfOperationOutput) diff --git a/service/macie2/api.go b/service/macie2/api.go index b9869b1d92..c01761b94b 100644 --- a/service/macie2/api.go +++ b/service/macie2/api.go @@ -8050,8 +8050,8 @@ func (s *Cell) SetRow(v int64) *Cell { return s } -// Provides information about a sensitive data finding, including the classification -// job that produced the finding. +// Provides information about a sensitive data finding and the details of the +// finding. type ClassificationDetails struct { _ struct{} `type:"structure"` @@ -8061,6 +8061,10 @@ type ClassificationDetails struct { JobId *string `locationName:"jobId" type:"string"` + // Specifies how Amazon Macie found the sensitive data that produced a finding. + // The only possible value is: + OriginType *string `locationName:"originType" type:"string" enum:"OriginType"` + // Provides the details of a sensitive data finding, including the types, number // of occurrences, and locations of the sensitive data that was detected. Result *ClassificationResult `locationName:"result" type:"structure"` @@ -8102,6 +8106,12 @@ func (s *ClassificationDetails) SetJobId(v string) *ClassificationDetails { return s } +// SetOriginType sets the OriginType field's value. +func (s *ClassificationDetails) SetOriginType(v string) *ClassificationDetails { + s.OriginType = &v + return s +} + // SetResult sets the Result field's value. func (s *ClassificationDetails) SetResult(v *ClassificationResult) *ClassificationDetails { s.Result = v @@ -10830,8 +10840,8 @@ type Finding struct { // The category of the finding. Valid values are: Category *string `locationName:"category" type:"string" enum:"FindingCategory"` - // Provides information about a sensitive data finding, including the classification - // job that produced the finding. + // Provides information about a sensitive data finding and the details of the + // finding. ClassificationDetails *ClassificationDetails `locationName:"classificationDetails" type:"structure"` Count *int64 `locationName:"count" type:"long"` @@ -13986,7 +13996,8 @@ func (s *ListJobsFilterCriteria) SetIncludes(v []*ListJobsFilterTerm) *ListJobsF type ListJobsFilterTerm struct { _ struct{} `type:"structure"` - // The operator to use in a condition. Valid values are: + // The operator to use in a condition. Depending on the type of condition, possible + // values are: Comparator *string `locationName:"comparator" type:"string" enum:"JobComparator"` // The property to use to filter the results. Valid values are: @@ -14910,14 +14921,20 @@ type Occurrences struct { // workbook, CSV file, or TSV file. Cells []*Cell `locationName:"cells" type:"list"` + // Specifies the locations of occurrences of sensitive data in a non-binary + // text file. LineRanges []*Range `locationName:"lineRanges" type:"list"` + // Specifies the locations of occurrences of sensitive data in a non-binary + // text file. OffsetRanges []*Range `locationName:"offsetRanges" type:"list"` // Specifies the location of occurrences of sensitive data in an Adobe Portable // Document Format file. Pages []*Page `locationName:"pages" type:"list"` + // Specifies the locations of occurrences of sensitive data in an Apache Avro + // object container or a structured data file. Records []*Record `locationName:"records" type:"list"` } @@ -16960,7 +16977,8 @@ func (s *SeverityLevel) SetSeverity(v string) *SeverityLevel { type SimpleCriterionForJob struct { _ struct{} `type:"structure"` - // The operator to use in a condition. Valid values are: + // The operator to use in a condition. Depending on the type of condition, possible + // values are: Comparator *string `locationName:"comparator" type:"string" enum:"JobComparator"` // The property to use in a condition that determines whether an S3 bucket is @@ -17011,7 +17029,8 @@ func (s *SimpleCriterionForJob) SetValues(v []*string) *SimpleCriterionForJob { type SimpleScopeTerm struct { _ struct{} `type:"structure"` - // The operator to use in a condition. Valid values are: + // The operator to use in a condition. Depending on the type of condition, possible + // values are: Comparator *string `locationName:"comparator" type:"string" enum:"JobComparator"` // The property to use in a condition that determines whether an S3 object is @@ -17140,7 +17159,8 @@ func (s *Statistics) SetNumberOfRuns(v float64) *Statistics { type TagCriterionForJob struct { _ struct{} `type:"structure"` - // The operator to use in a condition. Valid values are: + // The operator to use in a condition. Depending on the type of condition, possible + // values are: Comparator *string `locationName:"comparator" type:"string" enum:"JobComparator"` TagValues []*TagCriterionPairForJob `locationName:"tagValues" type:"list"` @@ -17312,7 +17332,8 @@ func (s TagResourceOutput) GoString() string { type TagScopeTerm struct { _ struct{} `type:"structure"` - // The operator to use in a condition. Valid values are: + // The operator to use in a condition. Depending on the type of condition, possible + // values are: Comparator *string `locationName:"comparator" type:"string" enum:"JobComparator"` Key *string `locationName:"key" type:"string"` @@ -19108,7 +19129,8 @@ func IsMonitoredByJob_Values() []string { } } -// The operator to use in a condition. Valid values are: +// The operator to use in a condition. Depending on the type of condition, possible +// values are: const ( // JobComparatorEq is a JobComparator enum value JobComparatorEq = "EQ" @@ -19327,6 +19349,20 @@ func OrderBy_Values() []string { } } +// Specifies how Amazon Macie found the sensitive data that produced a finding. +// The only possible value is: +const ( + // OriginTypeSensitiveDataDiscoveryJob is a OriginType enum value + OriginTypeSensitiveDataDiscoveryJob = "SENSITIVE_DATA_DISCOVERY_JOB" +) + +// OriginType_Values returns all elements of the OriginType enum +func OriginType_Values() []string { + return []string{ + OriginTypeSensitiveDataDiscoveryJob, + } +} + // The current status of the relationship between an account and an associated // Amazon Macie administrator account. Possible values are: const ( diff --git a/service/mgn/api.go b/service/mgn/api.go index c953fc321c..984ce79a87 100644 --- a/service/mgn/api.go +++ b/service/mgn/api.go @@ -4354,9 +4354,7 @@ type DescribeJobsInput struct { _ struct{} `type:"structure"` // Request to describe Job log filters. - // - // Filters is a required field - Filters *DescribeJobsRequestFilters `locationName:"filters" type:"structure" required:"true"` + Filters *DescribeJobsRequestFilters `locationName:"filters" type:"structure"` // Request to describe job log items by max results. MaxResults *int64 `locationName:"maxResults" min:"1" type:"integer"` @@ -4386,9 +4384,6 @@ func (s DescribeJobsInput) GoString() string { // Validate inspects the fields of the type to determine if they are valid. func (s *DescribeJobsInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DescribeJobsInput"} - if s.Filters == nil { - invalidParams.Add(request.NewErrParamRequired("Filters")) - } if s.MaxResults != nil && *s.MaxResults < 1 { invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } @@ -4538,9 +4533,7 @@ type DescribeReplicationConfigurationTemplatesInput struct { NextToken *string `locationName:"nextToken" type:"string"` // Request to describe Replication Configuration template by template IDs. - // - // ReplicationConfigurationTemplateIDs is a required field - ReplicationConfigurationTemplateIDs []*string `locationName:"replicationConfigurationTemplateIDs" type:"list" required:"true"` + ReplicationConfigurationTemplateIDs []*string `locationName:"replicationConfigurationTemplateIDs" type:"list"` } // String returns the string representation. @@ -4567,9 +4560,6 @@ func (s *DescribeReplicationConfigurationTemplatesInput) Validate() error { if s.MaxResults != nil && *s.MaxResults < 1 { invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } - if s.ReplicationConfigurationTemplateIDs == nil { - invalidParams.Add(request.NewErrParamRequired("ReplicationConfigurationTemplateIDs")) - } if invalidParams.Len() > 0 { return invalidParams @@ -4639,9 +4629,7 @@ type DescribeSourceServersInput struct { _ struct{} `type:"structure"` // Request to filter Source Servers list. - // - // Filters is a required field - Filters *DescribeSourceServersRequestFilters `locationName:"filters" type:"structure" required:"true"` + Filters *DescribeSourceServersRequestFilters `locationName:"filters" type:"structure"` // Request to filter Source Servers list by maximum results. MaxResults *int64 `locationName:"maxResults" min:"1" type:"integer"` @@ -4671,9 +4659,6 @@ func (s DescribeSourceServersInput) GoString() string { // Validate inspects the fields of the type to determine if they are valid. func (s *DescribeSourceServersInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "DescribeSourceServersInput"} - if s.Filters == nil { - invalidParams.Add(request.NewErrParamRequired("Filters")) - } if s.MaxResults != nil && *s.MaxResults < 1 { invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } @@ -7362,6 +7347,9 @@ type ServiceQuotaExceededException struct { // Exceeded the service quota code. QuotaCode *string `locationName:"quotaCode" type:"string"` + // Exceeded the service quota value. + QuotaValue *int64 `locationName:"quotaValue" min:"1" type:"integer"` + // Exceeded the service quota resource ID. ResourceId *string `locationName:"resourceId" type:"string"` diff --git a/service/rds/api.go b/service/rds/api.go index 883fdd4ebf..8b727cce3d 100644 --- a/service/rds/api.go +++ b/service/rds/api.go @@ -18892,6 +18892,12 @@ type CreateDBClusterInput struct { // Valid for: Aurora DB clusters only ScalingConfiguration *ScalingConfiguration `type:"structure"` + // Contains the scaling configuration of an Aurora Serverless v2 DB cluster. + // + // For more information, see Using Amazon Aurora Serverless v2 (https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless-v2.html) + // in the Amazon Aurora User Guide. + ServerlessV2ScalingConfiguration *ServerlessV2ScalingConfiguration `type:"structure"` + // SourceRegion is the source region where the resource exists. This is not // sent over the wire and is only used for presigning. This value should always // have the same region as the source ARN. @@ -19206,6 +19212,12 @@ func (s *CreateDBClusterInput) SetScalingConfiguration(v *ScalingConfiguration) return s } +// SetServerlessV2ScalingConfiguration sets the ServerlessV2ScalingConfiguration field's value. +func (s *CreateDBClusterInput) SetServerlessV2ScalingConfiguration(v *ServerlessV2ScalingConfiguration) *CreateDBClusterInput { + s.ServerlessV2ScalingConfiguration = v + return s +} + // SetSourceRegion sets the SourceRegion field's value. func (s *CreateDBClusterInput) SetSourceRegion(v string) *CreateDBClusterInput { s.SourceRegion = &v @@ -23216,6 +23228,12 @@ type DBCluster struct { // in the Amazon Aurora User Guide. ScalingConfigurationInfo *ScalingConfigurationInfo `type:"structure"` + // Shows the scaling configuration for an Aurora Serverless v2 DB cluster. + // + // For more information, see Using Amazon Aurora Serverless v2 (https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless-v2.html) + // in the Amazon Aurora User Guide. + ServerlessV2ScalingConfiguration *ServerlessV2ScalingConfigurationInfo `type:"structure"` + // Specifies the current state of this DB cluster. Status *string `type:"string"` @@ -23625,6 +23643,12 @@ func (s *DBCluster) SetScalingConfigurationInfo(v *ScalingConfigurationInfo) *DB return s } +// SetServerlessV2ScalingConfiguration sets the ServerlessV2ScalingConfiguration field's value. +func (s *DBCluster) SetServerlessV2ScalingConfiguration(v *ServerlessV2ScalingConfigurationInfo) *DBCluster { + s.ServerlessV2ScalingConfiguration = v + return s +} + // SetStatus sets the Status field's value. func (s *DBCluster) SetStatus(v string) *DBCluster { s.Status = &v @@ -37895,6 +37919,12 @@ type ModifyDBClusterInput struct { // Valid for: Aurora DB clusters only ScalingConfiguration *ScalingConfiguration `type:"structure"` + // Contains the scaling configuration of an Aurora Serverless v2 DB cluster. + // + // For more information, see Using Amazon Aurora Serverless v2 (https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless-v2.html) + // in the Amazon Aurora User Guide. + ServerlessV2ScalingConfiguration *ServerlessV2ScalingConfiguration `type:"structure"` + // Specifies the storage type to be associated with the DB cluster. // // Valid values: io1 @@ -38135,6 +38165,12 @@ func (s *ModifyDBClusterInput) SetScalingConfiguration(v *ScalingConfiguration) return s } +// SetServerlessV2ScalingConfiguration sets the ServerlessV2ScalingConfiguration field's value. +func (s *ModifyDBClusterInput) SetServerlessV2ScalingConfiguration(v *ServerlessV2ScalingConfiguration) *ModifyDBClusterInput { + s.ServerlessV2ScalingConfiguration = v + return s +} + // SetStorageType sets the StorageType field's value. func (s *ModifyDBClusterInput) SetStorageType(v string) *ModifyDBClusterInput { s.StorageType = &v @@ -44219,6 +44255,12 @@ type RestoreDBClusterFromS3Input struct { // the Amazon S3 bucket. S3Prefix *string `type:"string"` + // Contains the scaling configuration of an Aurora Serverless v2 DB cluster. + // + // For more information, see Using Amazon Aurora Serverless v2 (https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless-v2.html) + // in the Amazon Aurora User Guide. + ServerlessV2ScalingConfiguration *ServerlessV2ScalingConfiguration `type:"structure"` + // The identifier for the database engine that was backed up to create the files // stored in the Amazon S3 bucket. // @@ -44455,6 +44497,12 @@ func (s *RestoreDBClusterFromS3Input) SetS3Prefix(v string) *RestoreDBClusterFro return s } +// SetServerlessV2ScalingConfiguration sets the ServerlessV2ScalingConfiguration field's value. +func (s *RestoreDBClusterFromS3Input) SetServerlessV2ScalingConfiguration(v *ServerlessV2ScalingConfiguration) *RestoreDBClusterFromS3Input { + s.ServerlessV2ScalingConfiguration = v + return s +} + // SetSourceEngine sets the SourceEngine field's value. func (s *RestoreDBClusterFromS3Input) SetSourceEngine(v string) *RestoreDBClusterFromS3Input { s.SourceEngine = &v @@ -44846,6 +44894,12 @@ type RestoreDBClusterFromSnapshotInput struct { // Valid for: Aurora DB clusters only ScalingConfiguration *ScalingConfiguration `type:"structure"` + // Contains the scaling configuration of an Aurora Serverless v2 DB cluster. + // + // For more information, see Using Amazon Aurora Serverless v2 (https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless-v2.html) + // in the Amazon Aurora User Guide. + ServerlessV2ScalingConfiguration *ServerlessV2ScalingConfiguration `type:"structure"` + // The identifier for the DB snapshot or DB cluster snapshot to restore from. // // You can use either the name or the Amazon Resource Name (ARN) to specify @@ -45053,6 +45107,12 @@ func (s *RestoreDBClusterFromSnapshotInput) SetScalingConfiguration(v *ScalingCo return s } +// SetServerlessV2ScalingConfiguration sets the ServerlessV2ScalingConfiguration field's value. +func (s *RestoreDBClusterFromSnapshotInput) SetServerlessV2ScalingConfiguration(v *ServerlessV2ScalingConfiguration) *RestoreDBClusterFromSnapshotInput { + s.ServerlessV2ScalingConfiguration = v + return s +} + // SetSnapshotIdentifier sets the SnapshotIdentifier field's value. func (s *RestoreDBClusterFromSnapshotInput) SetSnapshotIdentifier(v string) *RestoreDBClusterFromSnapshotInput { s.SnapshotIdentifier = &v @@ -45407,6 +45467,12 @@ type RestoreDBClusterToPointInTimeInput struct { // Valid for: Aurora DB clusters only ScalingConfiguration *ScalingConfiguration `type:"structure"` + // Contains the scaling configuration of an Aurora Serverless v2 DB cluster. + // + // For more information, see Using Amazon Aurora Serverless v2 (https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless-v2.html) + // in the Amazon Aurora User Guide. + ServerlessV2ScalingConfiguration *ServerlessV2ScalingConfiguration `type:"structure"` + // The identifier of the source DB cluster from which to restore. // // Constraints: @@ -45603,6 +45669,12 @@ func (s *RestoreDBClusterToPointInTimeInput) SetScalingConfiguration(v *ScalingC return s } +// SetServerlessV2ScalingConfiguration sets the ServerlessV2ScalingConfiguration field's value. +func (s *RestoreDBClusterToPointInTimeInput) SetServerlessV2ScalingConfiguration(v *ServerlessV2ScalingConfiguration) *RestoreDBClusterToPointInTimeInput { + s.ServerlessV2ScalingConfiguration = v + return s +} + // SetSourceDBClusterIdentifier sets the SourceDBClusterIdentifier field's value. func (s *RestoreDBClusterToPointInTimeInput) SetSourceDBClusterIdentifier(v string) *RestoreDBClusterToPointInTimeInput { s.SourceDBClusterIdentifier = &v @@ -47966,6 +48038,102 @@ func (s *ScalingConfigurationInfo) SetTimeoutAction(v string) *ScalingConfigurat return s } +// Contains the scaling configuration of an Aurora Serverless v2 DB cluster. +// +// For more information, see Using Amazon Aurora Serverless v2 (https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless-v2.html) +// in the Amazon Aurora User Guide. +type ServerlessV2ScalingConfiguration struct { + _ struct{} `type:"structure"` + + // The maximum number of Aurora capacity units (ACUs) for a DB instance in an + // Aurora Serverless v2 cluster. You can specify ACU values in half-step increments, + // such as 40, 40.5, 41, and so on. The largest value that you can use is 128. + MaxCapacity *float64 `type:"double"` + + // The minimum number of Aurora capacity units (ACUs) for a DB instance in an + // Aurora Serverless v2 cluster. You can specify ACU values in half-step increments, + // such as 8, 8.5, 9, and so on. The smallest value that you can use is 0.5. + MinCapacity *float64 `type:"double"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ServerlessV2ScalingConfiguration) 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 ServerlessV2ScalingConfiguration) GoString() string { + return s.String() +} + +// SetMaxCapacity sets the MaxCapacity field's value. +func (s *ServerlessV2ScalingConfiguration) SetMaxCapacity(v float64) *ServerlessV2ScalingConfiguration { + s.MaxCapacity = &v + return s +} + +// SetMinCapacity sets the MinCapacity field's value. +func (s *ServerlessV2ScalingConfiguration) SetMinCapacity(v float64) *ServerlessV2ScalingConfiguration { + s.MinCapacity = &v + return s +} + +// Shows the scaling configuration for an Aurora Serverless v2 DB cluster. +// +// For more information, see Using Amazon Aurora Serverless v2 (https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless-v2.html) +// in the Amazon Aurora User Guide. +type ServerlessV2ScalingConfigurationInfo struct { + _ struct{} `type:"structure"` + + // The maximum number of Aurora capacity units (ACUs) for a DB instance in an + // Aurora Serverless v2 cluster. You can specify ACU values in half-step increments, + // such as 40, 40.5, 41, and so on. The largest value that you can use is 128. + MaxCapacity *float64 `type:"double"` + + // The minimum number of Aurora capacity units (ACUs) for a DB instance in an + // Aurora Serverless v2 cluster. You can specify ACU values in half-step increments, + // such as 8, 8.5, 9, and so on. The smallest value that you can use is 0.5. + MinCapacity *float64 `type:"double"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ServerlessV2ScalingConfigurationInfo) 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 ServerlessV2ScalingConfigurationInfo) GoString() string { + return s.String() +} + +// SetMaxCapacity sets the MaxCapacity field's value. +func (s *ServerlessV2ScalingConfigurationInfo) SetMaxCapacity(v float64) *ServerlessV2ScalingConfigurationInfo { + s.MaxCapacity = &v + return s +} + +// SetMinCapacity sets the MinCapacity field's value. +func (s *ServerlessV2ScalingConfigurationInfo) SetMinCapacity(v float64) *ServerlessV2ScalingConfigurationInfo { + s.MinCapacity = &v + return s +} + // Contains an Amazon Web Services Region name as the result of a successful // call to the DescribeSourceRegions action. type SourceRegion struct {