diff --git a/CHANGELOG.md b/CHANGELOG.md index 786626e10b..765cd2fe2e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,36 @@ +Release v1.25.18 (2019-10-23) +=== + +### Service Client Updates +* `service/connect`: Updates service API, documentation, and paginators +* `service/polly`: Updates service API + * Amazon Polly adds new female voices: US Spanish - Lupe and Brazilian Portuguese - Camila; both voices are available in Standard and Neural engine. +* `service/sts`: Updates service documentation + * AWS Security Token Service (STS) now supports a regional configuration flag to make the client respect the region without the need for the endpoint parameter. + +### SDK Enhancements +* `aws/endpoints`: Adds support for STS Regional Flags ([#2779](https://github.com/aws/aws-sdk-go/pull/2779)) + * Implements STS regional flag, with support for `legacy` and `regional` options. Defaults to `legacy`. Legacy, will force all regions specified in aws/endpoints/sts_legacy_regions.go to resolve to the STS global endpoint, sts.amazonaws.com. This is the SDK's current behavior. + * When the flag's value is `regional` the SDK will resolve the endpoint based on the endpoints.json model. This allows STS to update their service's modeled endpoints to be regionalized for all regions. When `regional` turned on use `aws-global` as the region to use the global endpoint. + * `AWS_STS_REGIONAL_ENDPOINTS=regional` for environment, or `sts_regional_endpoints=regional` in shared config file. + * The regions the SDK defaults to the STS global endpoint in `legacy` mode are: + * ap-northeast-1 + * ap-south-1 + * ap-southeast-1 + * ap-southeast-2 + * aws-global + * ca-central-1 + * eu-central-1 + * eu-north-1 + * eu-west-1 + * eu-west-2 + * eu-west-3 + * sa-east-1 + * us-east-1 + * us-east-2 + * us-west-1 + * us-west-2 + Release v1.25.17 (2019-10-22) === diff --git a/CHANGELOG_PENDING.md b/CHANGELOG_PENDING.md index 621f721024..8a1927a39c 100644 --- a/CHANGELOG_PENDING.md +++ b/CHANGELOG_PENDING.md @@ -1,26 +1,5 @@ ### SDK Features ### SDK Enhancements -* `aws/endpoints`: Adds support for STS Regional Flags ([#2779](https://github.com/aws/aws-sdk-go/pull/2779)) - * Implements STS regional flag, with support for `legacy` and `regional` options. Defaults to `legacy`. Legacy, will force all regions specified in aws/endpoints/sts_legacy_regions.go to resolve to the STS global endpoint, sts.amazonaws.com. This is the SDK's current behavior. - * When the flag's value is `regional` the SDK will resolve the endpoint based on the endpoints.json model. This allows STS to update their service's modeled endpoints to be regionalized for all regions. When `regional` turned on use `aws-global` as the region to use the global endpoint. - * `AWS_STS_REGIONAL_ENDPOINTS=regional` for environment, or `sts_regional_endpoints=regional` in shared config file. - * The regions the SDK defaults to the STS global endpoint in `legacy` mode are: - * ap-northeast-1 - * ap-south-1 - * ap-southeast-1 - * ap-southeast-2 - * aws-global - * ca-central-1 - * eu-central-1 - * eu-north-1 - * eu-west-1 - * eu-west-2 - * eu-west-3 - * sa-east-1 - * us-east-1 - * us-east-2 - * us-west-1 - * us-west-2 ### SDK Bugs diff --git a/aws/endpoints/defaults.go b/aws/endpoints/defaults.go index 2166d236a7..b799188863 100644 --- a/aws/endpoints/defaults.go +++ b/aws/endpoints/defaults.go @@ -3578,44 +3578,29 @@ var awsPartition = partition{ }, "sts": service{ PartitionEndpoint: "aws-global", - Defaults: endpoint{ - Hostname: "sts.amazonaws.com", - CredentialScope: credentialScope{ - Region: "us-east-1", - }, - }, + Endpoints: endpoints{ - "ap-east-1": endpoint{ - Hostname: "sts.ap-east-1.amazonaws.com", - CredentialScope: credentialScope{ - Region: "ap-east-1", - }, - }, + "ap-east-1": endpoint{}, "ap-northeast-1": endpoint{}, - "ap-northeast-2": endpoint{ - Hostname: "sts.ap-northeast-2.amazonaws.com", - CredentialScope: credentialScope{ - Region: "ap-northeast-2", - }, - }, + "ap-northeast-2": endpoint{}, "ap-south-1": endpoint{}, "ap-southeast-1": endpoint{}, "ap-southeast-2": endpoint{}, - "aws-global": endpoint{}, - "ca-central-1": endpoint{}, - "eu-central-1": endpoint{}, - "eu-north-1": endpoint{}, - "eu-west-1": endpoint{}, - "eu-west-2": endpoint{}, - "eu-west-3": endpoint{}, - "me-south-1": endpoint{ - Hostname: "sts.me-south-1.amazonaws.com", + "aws-global": endpoint{ + Hostname: "sts.amazonaws.com", CredentialScope: credentialScope{ - Region: "me-south-1", + Region: "us-east-1", }, }, - "sa-east-1": endpoint{}, - "us-east-1": endpoint{}, + "ca-central-1": endpoint{}, + "eu-central-1": endpoint{}, + "eu-north-1": endpoint{}, + "eu-west-1": endpoint{}, + "eu-west-2": endpoint{}, + "eu-west-3": endpoint{}, + "me-south-1": endpoint{}, + "sa-east-1": endpoint{}, + "us-east-1": endpoint{}, "us-east-1-fips": endpoint{ Hostname: "sts-fips.us-east-1.amazonaws.com", CredentialScope: credentialScope{ diff --git a/aws/version.go b/aws/version.go index d7bdb56fc4..88b036f1f6 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.25.17" +const SDKVersion = "1.25.18" diff --git a/models/apis/connect/2017-08-08/api-2.json b/models/apis/connect/2017-08-08/api-2.json index 32b0172ded..2c626e13e0 100644 --- a/models/apis/connect/2017-08-08/api-2.json +++ b/models/apis/connect/2017-08-08/api-2.json @@ -157,6 +157,70 @@ {"shape":"ResourceNotFoundException"} ] }, + "ListContactFlows":{ + "name":"ListContactFlows", + "http":{ + "method":"GET", + "requestUri":"/contact-flows-summary/{InstanceId}" + }, + "input":{"shape":"ListContactFlowsRequest"}, + "output":{"shape":"ListContactFlowsResponse"}, + "errors":[ + {"shape":"InvalidRequestException"}, + {"shape":"InvalidParameterException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ThrottlingException"}, + {"shape":"InternalServiceException"} + ] + }, + "ListHoursOfOperations":{ + "name":"ListHoursOfOperations", + "http":{ + "method":"GET", + "requestUri":"/hours-of-operations-summary/{InstanceId}" + }, + "input":{"shape":"ListHoursOfOperationsRequest"}, + "output":{"shape":"ListHoursOfOperationsResponse"}, + "errors":[ + {"shape":"InvalidRequestException"}, + {"shape":"InvalidParameterException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ThrottlingException"}, + {"shape":"InternalServiceException"} + ] + }, + "ListPhoneNumbers":{ + "name":"ListPhoneNumbers", + "http":{ + "method":"GET", + "requestUri":"/phone-numbers-summary/{InstanceId}" + }, + "input":{"shape":"ListPhoneNumbersRequest"}, + "output":{"shape":"ListPhoneNumbersResponse"}, + "errors":[ + {"shape":"InvalidRequestException"}, + {"shape":"InvalidParameterException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ThrottlingException"}, + {"shape":"InternalServiceException"} + ] + }, + "ListQueues":{ + "name":"ListQueues", + "http":{ + "method":"GET", + "requestUri":"/queues-summary/{InstanceId}" + }, + "input":{"shape":"ListQueuesRequest"}, + "output":{"shape":"ListQueuesResponse"}, + "errors":[ + {"shape":"InvalidRequestException"}, + {"shape":"InvalidParameterException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ThrottlingException"}, + {"shape":"InternalServiceException"} + ] + }, "ListRoutingProfiles":{ "name":"ListRoutingProfiles", "http":{ @@ -405,6 +469,39 @@ "type":"string", "max":500 }, + "ContactFlowName":{"type":"string"}, + "ContactFlowSummary":{ + "type":"structure", + "members":{ + "Id":{"shape":"ContactFlowId"}, + "Arn":{"shape":"ARN"}, + "Name":{"shape":"ContactFlowName"}, + "ContactFlowType":{"shape":"ContactFlowType"} + } + }, + "ContactFlowSummaryList":{ + "type":"list", + "member":{"shape":"ContactFlowSummary"} + }, + "ContactFlowType":{ + "type":"string", + "enum":[ + "CONTACT_FLOW", + "CUSTOMER_QUEUE", + "CUSTOMER_HOLD", + "CUSTOMER_WHISPER", + "AGENT_HOLD", + "AGENT_WHISPER", + "OUTBOUND_WHISPER", + "AGENT_TRANSFER", + "QUEUE_TRANSFER" + ] + }, + "ContactFlowTypes":{ + "type":"list", + "member":{"shape":"ContactFlowType"}, + "max":10 + }, "ContactId":{ "type":"string", "max":256, @@ -872,6 +969,20 @@ "type":"list", "member":{"shape":"HistoricalMetric"} }, + "HoursOfOperationId":{"type":"string"}, + "HoursOfOperationName":{"type":"string"}, + "HoursOfOperationSummary":{ + "type":"structure", + "members":{ + "Id":{"shape":"HoursOfOperationId"}, + "Arn":{"shape":"ARN"}, + "Name":{"shape":"HoursOfOperationName"} + } + }, + "HoursOfOperationSummaryList":{ + "type":"list", + "member":{"shape":"HoursOfOperationSummary"} + }, "InstanceId":{ "type":"string", "max":100, @@ -909,6 +1020,138 @@ "error":{"httpStatusCode":429}, "exception":true }, + "ListContactFlowsRequest":{ + "type":"structure", + "required":["InstanceId"], + "members":{ + "InstanceId":{ + "shape":"InstanceId", + "location":"uri", + "locationName":"InstanceId" + }, + "ContactFlowTypes":{ + "shape":"ContactFlowTypes", + "location":"querystring", + "locationName":"contactFlowTypes" + }, + "NextToken":{ + "shape":"NextToken", + "location":"querystring", + "locationName":"nextToken" + }, + "MaxResults":{ + "shape":"MaxResult1000", + "location":"querystring", + "locationName":"maxResults" + } + } + }, + "ListContactFlowsResponse":{ + "type":"structure", + "members":{ + "ContactFlowSummaryList":{"shape":"ContactFlowSummaryList"}, + "NextToken":{"shape":"NextToken"} + } + }, + "ListHoursOfOperationsRequest":{ + "type":"structure", + "required":["InstanceId"], + "members":{ + "InstanceId":{ + "shape":"InstanceId", + "location":"uri", + "locationName":"InstanceId" + }, + "NextToken":{ + "shape":"NextToken", + "location":"querystring", + "locationName":"nextToken" + }, + "MaxResults":{ + "shape":"MaxResult1000", + "location":"querystring", + "locationName":"maxResults" + } + } + }, + "ListHoursOfOperationsResponse":{ + "type":"structure", + "members":{ + "HoursOfOperationSummaryList":{"shape":"HoursOfOperationSummaryList"}, + "NextToken":{"shape":"NextToken"} + } + }, + "ListPhoneNumbersRequest":{ + "type":"structure", + "required":["InstanceId"], + "members":{ + "InstanceId":{ + "shape":"InstanceId", + "location":"uri", + "locationName":"InstanceId" + }, + "PhoneNumberTypes":{ + "shape":"PhoneNumberTypes", + "location":"querystring", + "locationName":"phoneNumberTypes" + }, + "PhoneNumberCountryCodes":{ + "shape":"PhoneNumberCountryCodes", + "location":"querystring", + "locationName":"phoneNumberCountryCodes" + }, + "NextToken":{ + "shape":"NextToken", + "location":"querystring", + "locationName":"nextToken" + }, + "MaxResults":{ + "shape":"MaxResult1000", + "location":"querystring", + "locationName":"maxResults" + } + } + }, + "ListPhoneNumbersResponse":{ + "type":"structure", + "members":{ + "PhoneNumberSummaryList":{"shape":"PhoneNumberSummaryList"}, + "NextToken":{"shape":"NextToken"} + } + }, + "ListQueuesRequest":{ + "type":"structure", + "required":["InstanceId"], + "members":{ + "InstanceId":{ + "shape":"InstanceId", + "location":"uri", + "locationName":"InstanceId" + }, + "QueueTypes":{ + "shape":"QueueTypes", + "location":"querystring", + "locationName":"queueTypes" + }, + "NextToken":{ + "shape":"NextToken", + "location":"querystring", + "locationName":"nextToken" + }, + "MaxResults":{ + "shape":"MaxResult1000", + "location":"querystring", + "locationName":"maxResults" + } + } + }, + "ListQueuesResponse":{ + "type":"structure", + "members":{ + "QueueSummaryList":{"shape":"QueueSummaryList"}, + "NextToken":{"shape":"NextToken"} + } + }, "ListRoutingProfilesRequest":{ "type":"structure", "required":["InstanceId"], @@ -1050,6 +1293,280 @@ "pattern":"/^(?=.*[a-z])(?=.*[A-Z])(?=.*\\d)[a-zA-Z\\d\\S]{8,64}$/" }, "PhoneNumber":{"type":"string"}, + "PhoneNumberCountryCode":{ + "type":"string", + "enum":[ + "AF", + "AL", + "DZ", + "AS", + "AD", + "AO", + "AI", + "AQ", + "AG", + "AR", + "AM", + "AW", + "AU", + "AT", + "AZ", + "BS", + "BH", + "BD", + "BB", + "BY", + "BE", + "BZ", + "BJ", + "BM", + "BT", + "BO", + "BA", + "BW", + "BR", + "IO", + "VG", + "BN", + "BG", + "BF", + "BI", + "KH", + "CM", + "CA", + "CV", + "KY", + "CF", + "TD", + "CL", + "CN", + "CX", + "CC", + "CO", + "KM", + "CK", + "CR", + "HR", + "CU", + "CW", + "CY", + "CZ", + "CD", + "DK", + "DJ", + "DM", + "DO", + "TL", + "EC", + "EG", + "SV", + "GQ", + "ER", + "EE", + "ET", + "FK", + "FO", + "FJ", + "FI", + "FR", + "PF", + "GA", + "GM", + "GE", + "DE", + "GH", + "GI", + "GR", + "GL", + "GD", + "GU", + "GT", + "GG", + "GN", + "GW", + "GY", + "HT", + "HN", + "HK", + "HU", + "IS", + "IN", + "ID", + "IR", + "IQ", + "IE", + "IM", + "IL", + "IT", + "CI", + "JM", + "JP", + "JE", + "JO", + "KZ", + "KE", + "KI", + "KW", + "KG", + "LA", + "LV", + "LB", + "LS", + "LR", + "LY", + "LI", + "LT", + "LU", + "MO", + "MK", + "MG", + "MW", + "MY", + "MV", + "ML", + "MT", + "MH", + "MR", + "MU", + "YT", + "MX", + "FM", + "MD", + "MC", + "MN", + "ME", + "MS", + "MA", + "MZ", + "MM", + "NA", + "NR", + "NP", + "NL", + "AN", + "NC", + "NZ", + "NI", + "NE", + "NG", + "NU", + "KP", + "MP", + "NO", + "OM", + "PK", + "PW", + "PA", + "PG", + "PY", + "PE", + "PH", + "PN", + "PL", + "PT", + "PR", + "QA", + "CG", + "RE", + "RO", + "RU", + "RW", + "BL", + "SH", + "KN", + "LC", + "MF", + "PM", + "VC", + "WS", + "SM", + "ST", + "SA", + "SN", + "RS", + "SC", + "SL", + "SG", + "SX", + "SK", + "SI", + "SB", + "SO", + "ZA", + "KR", + "ES", + "LK", + "SD", + "SR", + "SJ", + "SZ", + "SE", + "CH", + "SY", + "TW", + "TJ", + "TZ", + "TH", + "TG", + "TK", + "TO", + "TT", + "TN", + "TR", + "TM", + "TC", + "TV", + "VI", + "UG", + "UA", + "AE", + "GB", + "US", + "UY", + "UZ", + "VU", + "VA", + "VE", + "VN", + "WF", + "EH", + "YE", + "ZM", + "ZW" + ] + }, + "PhoneNumberCountryCodes":{ + "type":"list", + "member":{"shape":"PhoneNumberCountryCode"}, + "max":10 + }, + "PhoneNumberId":{"type":"string"}, + "PhoneNumberSummary":{ + "type":"structure", + "members":{ + "Id":{"shape":"PhoneNumberId"}, + "Arn":{"shape":"ARN"}, + "PhoneNumber":{"shape":"PhoneNumber"}, + "PhoneNumberType":{"shape":"PhoneNumberType"}, + "PhoneNumberCountryCode":{"shape":"PhoneNumberCountryCode"} + } + }, + "PhoneNumberSummaryList":{ + "type":"list", + "member":{"shape":"PhoneNumberSummary"} + }, + "PhoneNumberType":{ + "type":"string", + "enum":[ + "TOLL_FREE", + "DID" + ] + }, + "PhoneNumberTypes":{ + "type":"list", + "member":{"shape":"PhoneNumberType"}, + "max":2 + }, "PhoneType":{ "type":"string", "enum":[ @@ -1058,6 +1575,11 @@ ] }, "QueueId":{"type":"string"}, + "QueueName":{ + "type":"string", + "max":256, + "min":1 + }, "QueueReference":{ "type":"structure", "members":{ @@ -1065,6 +1587,31 @@ "Arn":{"shape":"ARN"} } }, + "QueueSummary":{ + "type":"structure", + "members":{ + "Id":{"shape":"QueueId"}, + "Arn":{"shape":"ARN"}, + "Name":{"shape":"QueueName"}, + "QueueType":{"shape":"QueueType"} + } + }, + "QueueSummaryList":{ + "type":"list", + "member":{"shape":"QueueSummary"} + }, + "QueueType":{ + "type":"string", + "enum":[ + "STANDARD", + "AGENT" + ] + }, + "QueueTypes":{ + "type":"list", + "member":{"shape":"QueueType"}, + "max":2 + }, "Queues":{ "type":"list", "member":{"shape":"QueueId"}, diff --git a/models/apis/connect/2017-08-08/docs-2.json b/models/apis/connect/2017-08-08/docs-2.json index 8bc60fd1ff..e321b6592e 100644 --- a/models/apis/connect/2017-08-08/docs-2.json +++ b/models/apis/connect/2017-08-08/docs-2.json @@ -1,68 +1,76 @@ { "version": "2.0", - "service": "

The Amazon Connect API Reference provides descriptions, syntax, and usage examples for each of the Amazon Connect actions, data types, parameters, and errors. Amazon Connect is a cloud-based contact center solution that makes it easy to set up and manage a customer contact center and provide reliable customer engagement at any scale.

Throttling limits for the Amazon Connect API operations:

For the GetMetricData and GetCurrentMetricData operations, a RateLimit of 5 per second, and a BurstLimit of 8 per second.

For all other operations, a RateLimit of 2 per second, and a BurstLimit of 5 per second.

You can request an increase to the throttling limits by submitting a Amazon Connect service limits increase form. You must be signed in to your AWS account to access the form.

", + "service": "

Amazon Connect is a cloud-based contact center solution that makes it easy to set up and manage a customer contact center and provide reliable customer engagement at any scale.

Amazon Connect provides rich metrics and real-time reporting that allow you to optimize contact routing. You can also resolve customer issues more efficiently by putting customers in touch with the right agents.

There are limits to the number of Amazon Connect resources that you can create and limits to the number of requests that you can make per second. For more information, see Amazon Connect Service Limits in the Amazon Connect Administrator Guide.

", "operations": { - "CreateUser": "

Creates a new user account in your Amazon Connect instance.

", - "DeleteUser": "

Deletes a user account from Amazon Connect.

", - "DescribeUser": "

Returns a User object that contains information about the user account specified by the UserId.

", - "DescribeUserHierarchyGroup": "

Returns a HierarchyGroup object that includes information about a hierarchy group in your instance.

", - "DescribeUserHierarchyStructure": "

Returns a HiearchyGroupStructure object, which contains data about the levels in the agent hierarchy.

", - "GetContactAttributes": "

Retrieves the contact attributes associated with a contact.

", - "GetCurrentMetricData": "

The GetCurrentMetricData operation retrieves current metric data from your Amazon Connect instance.

If you are using an IAM account, it must have permission to the connect:GetCurrentMetricData action.

", + "CreateUser": "

Creates a user account for the specified Amazon Connect instance.

", + "DeleteUser": "

Deletes a user account from the specified Amazon Connect instance.

", + "DescribeUser": "

Describes the specified user account.

", + "DescribeUserHierarchyGroup": "

Describes the specified hierarchy group.

", + "DescribeUserHierarchyStructure": "

Describes the hierarchy structure of the specified Amazon Connect instance.

", + "GetContactAttributes": "

Retrieves the contact attributes for the specified contact.

", + "GetCurrentMetricData": "

Gets the real-time metric data from the specified Amazon Connect instance.

For more information, see Real-time Metrics Reports in the Amazon Connect Administrator Guide.

", "GetFederationToken": "

Retrieves a token for federation.

", - "GetMetricData": "

The GetMetricData operation retrieves historical metrics data from your Amazon Connect instance.

If you are using an IAM account, it must have permission to the connect:GetMetricData action.

", - "ListRoutingProfiles": "

Returns an array of RoutingProfileSummary objects that includes information about the routing profiles in your instance.

", - "ListSecurityProfiles": "

Returns an array of SecurityProfileSummary objects that contain information about the security profiles in your instance, including the ARN, Id, and Name of the security profile.

", - "ListUserHierarchyGroups": "

Returns a UserHierarchyGroupSummaryList, which is an array of HierarchyGroupSummary objects that contain information about the hierarchy groups in your instance.

", - "ListUsers": "

Returns a UserSummaryList, which is an array of UserSummary objects.

", - "StartOutboundVoiceContact": "

The StartOutboundVoiceContact operation initiates a contact flow to place an outbound call to a customer.

If you are using an IAM account, it must have permission to the connect:StartOutboundVoiceContact action.

There is a 60 second dialing timeout for this operation. If the call is not connected after 60 seconds, the call fails.

", - "StopContact": "

Ends the contact initiated by the StartOutboundVoiceContact operation.

If you are using an IAM account, it must have permission to the connect:StopContact action.

", - "UpdateContactAttributes": "

The UpdateContactAttributes operation lets you programmatically create new, or update existing, contact attributes associated with a contact. You can use the operation to add or update attributes for both ongoing and completed contacts. For example, you can update the customer's name or the reason the customer called while the call is active, or add notes about steps that the agent took during the call that are displayed to the next agent that takes the call. You can also use the UpdateContactAttributes operation to update attributes for a contact using data from your CRM application and save the data with the contact in Amazon Connect. You could also flag calls for additional analysis, such as legal review or identifying abusive callers.

Contact attributes are available in Amazon Connect for 24 months, and are then deleted.

Important:

You cannot use the operation to update attributes for contacts that occurred prior to the release of the API, September 12, 2018. You can update attributes only for contacts that started after the release of the API. If you attempt to update attributes for a contact that occurred prior to the release of the API, a 400 error is returned. This applies also to queued callbacks that were initiated prior to the release of the API but are still active in your instance.

", - "UpdateUserHierarchy": "

Assigns the specified hierarchy group to the user.

", - "UpdateUserIdentityInfo": "

Updates the identity information for the specified user in a UserIdentityInfo object, including email, first name, and last name.

", - "UpdateUserPhoneConfig": "

Updates the phone configuration settings in the UserPhoneConfig object for the specified user.

", - "UpdateUserRoutingProfile": "

Assigns the specified routing profile to a user.

", - "UpdateUserSecurityProfiles": "

Updates the security profiles assigned to the user.

" + "GetMetricData": "

Gets historical metric data from the specified Amazon Connect instance.

For more information, see Historical Metrics Reports in the Amazon Connect Administrator Guide.

", + "ListContactFlows": "

Provides information about the contact flows for the specified Amazon Connect instance.

", + "ListHoursOfOperations": "

Provides information about the hours of operation for the specified Amazon Connect instance.

", + "ListPhoneNumbers": "

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

", + "ListQueues": "

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

", + "ListRoutingProfiles": "

Provides summary information about the routing profiles for the specified Amazon Connect instance.

", + "ListSecurityProfiles": "

Provides summary information about the security profiles for the specified Amazon Connect instance.

", + "ListUserHierarchyGroups": "

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

", + "ListUsers": "

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

", + "StartOutboundVoiceContact": "

Initiates a contact flow to place an outbound call to a customer.

There is a 60 second dialing timeout for this operation. If the call is not connected after 60 seconds, it fails.

", + "StopContact": "

Ends the specified contact.

", + "UpdateContactAttributes": "

Creates or updates the contact attributes associated with the specified contact.

You can add or update attributes for both ongoing and completed contacts. For example, you can update the customer's name or the reason the customer called while the call is active, or add notes about steps that the agent took during the call that are displayed to the next agent that takes the call. You can also update attributes for a contact using data from your CRM application and save the data with the contact in Amazon Connect. You could also flag calls for additional analysis, such as legal review or identifying abusive callers.

Contact attributes are available in Amazon Connect for 24 months, and are then deleted.

Important: You cannot use the operation to update attributes for contacts that occurred prior to the release of the API, September 12, 2018. You can update attributes only for contacts that started after the release of the API. If you attempt to update attributes for a contact that occurred prior to the release of the API, a 400 error is returned. This applies also to queued callbacks that were initiated prior to the release of the API but are still active in your instance.

", + "UpdateUserHierarchy": "

Assigns the specified hierarchy group to the specified user.

", + "UpdateUserIdentityInfo": "

Updates the identity information for the specified user.

", + "UpdateUserPhoneConfig": "

Updates the phone configuration settings for the specified user.

", + "UpdateUserRoutingProfile": "

Assigns the specified routing profile to the specified user.

", + "UpdateUserSecurityProfiles": "

Assigns the specified security profiles to the specified user.

" }, "shapes": { "ARN": { "base": null, "refs": { - "CreateUserResponse$UserArn": "

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

", - "HierarchyGroup$Arn": "

The Amazon Resource Name (ARN) for the hierarchy group.

", - "HierarchyGroupSummary$Arn": "

The ARN for the hierarchy group.

", - "HierarchyLevel$Arn": "

The ARN for the hierarchy group level.

", - "QueueReference$Arn": "

The Amazon Resource Name (ARN) of queue.

", - "RoutingProfileSummary$Arn": "

The ARN of the routing profile.

", - "SecurityProfileSummary$Arn": "

The ARN of the security profile.

", - "User$Arn": "

The ARN of the user account.

", - "UserSummary$Arn": "

The ARN for the user account.

" + "ContactFlowSummary$Arn": "

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

", + "CreateUserResponse$UserArn": "

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

", + "HierarchyGroup$Arn": "

The Amazon Resource Name (ARN) of the hierarchy group.

", + "HierarchyGroupSummary$Arn": "

The Amazon Resource Name (ARN) of the hierarchy group.

", + "HierarchyLevel$Arn": "

The Amazon Resource Name (ARN) of the hierarchy level.

", + "HoursOfOperationSummary$Arn": "

The Amazon Resource Name (ARN) of the hours of operation.

", + "PhoneNumberSummary$Arn": "

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

", + "QueueReference$Arn": "

The Amazon Resource Name (ARN) of the queue.

", + "QueueSummary$Arn": "

The Amazon Resource Name (ARN) of the queue.

", + "RoutingProfileSummary$Arn": "

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

", + "SecurityProfileSummary$Arn": "

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

", + "User$Arn": "

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

", + "UserSummary$Arn": "

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

" } }, "AfterContactWorkTimeLimit": { "base": null, "refs": { - "UserPhoneConfig$AfterContactWorkTimeLimit": "

The After Call Work (ACW) timeout setting, in seconds, for the user.

" + "UserPhoneConfig$AfterContactWorkTimeLimit": "

The After Call Work (ACW) timeout setting, in seconds.

" } }, "AgentFirstName": { "base": null, "refs": { - "UserIdentityInfo$FirstName": "

The first name used in the user account. This is required if you are using Amazon Connect or SAML for identity management.

" + "UserIdentityInfo$FirstName": "

The first name. This is required if you are using Amazon Connect or SAML for identity management.

" } }, "AgentLastName": { "base": null, "refs": { - "UserIdentityInfo$LastName": "

The last name used in the user account. This is required if you are using Amazon Connect or SAML for identity management.

" + "UserIdentityInfo$LastName": "

The last name. This is required if you are using Amazon Connect or SAML for identity management.

" } }, "AgentUsername": { "base": null, "refs": { - "CreateUserRequest$Username": "

The user name in Amazon Connect for the account to create. If you are using SAML for identity management in your Amazon Connect, the value for Username can include up to 64 characters from [a-zA-Z0-9_-.\\@]+.

", + "CreateUserRequest$Username": "

The user name for the account. For instances not using SAML for identity management, the user name can include up to 20 characters. If you are using SAML for identity management, the user name can include up to 64 characters from [a-zA-Z0-9_-.\\@]+.

", "User$Username": "

The user name assigned to the user account.

", - "UserSummary$Username": "

The Amazon Connect user name for the user account.

" + "UserSummary$Username": "

The Amazon Connect user name of the user account.

" } }, "AttributeName": { @@ -80,28 +88,28 @@ "Attributes": { "base": null, "refs": { - "GetContactAttributesResponse$Attributes": "

The attributes to update.

", - "StartOutboundVoiceContactRequest$Attributes": "

Specify a custom key-value pair using an attribute map. The attributes are standard Amazon Connect attributes, and can be accessed in contact flows just like any other contact attributes.

There can be up to 32,768 UTF-8 bytes across all key-value pairs per contact. Attribute keys can include only alphanumeric, dash, and underscore characters.

For example, if you want play a greeting when the customer answers the call, you can pass the customer name in attributes similar to the following:

", - "UpdateContactAttributesRequest$Attributes": "

Specify a custom key-value pair using an attribute map. The attributes are standard Amazon Connect attributes, and can be accessed in contact flows just like any other contact attributes.

There can be up to 32,768 UTF-8 bytes across all key-value pairs per contact. Attribute keys can include only alphanumeric, dash, and underscore characters.

" + "GetContactAttributesResponse$Attributes": "

Information about the attributes.

", + "StartOutboundVoiceContactRequest$Attributes": "

A custom key-value pair using an attribute map. The attributes are standard Amazon Connect attributes, and can be accessed in contact flows just like any other contact attributes.

There can be up to 32,768 UTF-8 bytes across all key-value pairs per contact. Attribute keys can include only alphanumeric, dash, and underscore characters.

", + "UpdateContactAttributesRequest$Attributes": "

The Amazon Connect attributes. These attributes can be accessed in contact flows just like any other contact attributes.

You can have up to 32,768 UTF-8 bytes across all attributes for a contact. Attribute keys can include only alphanumeric, dash, and underscore characters.

" } }, "AutoAccept": { "base": null, "refs": { - "UserPhoneConfig$AutoAccept": "

The Auto accept setting for the user, Yes or No.

" + "UserPhoneConfig$AutoAccept": "

The Auto accept setting.

" } }, "Channel": { "base": null, "refs": { "Channels$member": null, - "Dimensions$Channel": "

The channel used for grouping and filters. Only VOICE is supported.

" + "Dimensions$Channel": "

The channel used for grouping and filters.

" } }, "Channels": { "base": null, "refs": { - "Filters$Channels": "

The Channel to use as a filter for the metrics returned. Only VOICE is supported.

" + "Filters$Channels": "

The channel to use to filter the metrics.

" } }, "ClientToken": { @@ -113,22 +121,54 @@ "Comparison": { "base": null, "refs": { - "Threshold$Comparison": "

The Threshold to use to compare service level metrics to. Only \"Less than\" (LT) comparisons are supported.

" + "Threshold$Comparison": "

The type of comparison. Only \"less than\" (LT) comparisons are supported.

" } }, "ContactFlowId": { "base": null, "refs": { - "StartOutboundVoiceContactRequest$ContactFlowId": "

The identifier for the contact flow to connect the outbound call to.

To find the ContactFlowId, open the contact flow you want to use in the Amazon Connect contact flow editor. The ID for the contact flow is displayed in the address bar as part of the URL. For example, the contact flow ID is the set of characters at the end of the URL, after 'contact-flow/' such as 78ea8fd5-2659-4f2b-b528-699760ccfc1b.

" + "ContactFlowSummary$Id": "

The identifier of the contact flow.

", + "StartOutboundVoiceContactRequest$ContactFlowId": "

The identifier of the contact flow for the outbound call.

" + } + }, + "ContactFlowName": { + "base": null, + "refs": { + "ContactFlowSummary$Name": "

The name of the contact flow.

" + } + }, + "ContactFlowSummary": { + "base": "

Contains summary information about a contact flow.

", + "refs": { + "ContactFlowSummaryList$member": null + } + }, + "ContactFlowSummaryList": { + "base": null, + "refs": { + "ListContactFlowsResponse$ContactFlowSummaryList": "

Information about the contact flows.

" + } + }, + "ContactFlowType": { + "base": null, + "refs": { + "ContactFlowSummary$ContactFlowType": "

The type of contact flow.

", + "ContactFlowTypes$member": null + } + }, + "ContactFlowTypes": { + "base": null, + "refs": { + "ListContactFlowsRequest$ContactFlowTypes": "

The type of contact flow.

" } }, "ContactId": { "base": null, "refs": { - "GetContactAttributesRequest$InitialContactId": "

The ID for the initial contact in Amazon Connect associated with the attributes to update.

", - "StartOutboundVoiceContactResponse$ContactId": "

The unique identifier of this contact within your Amazon Connect instance.

", - "StopContactRequest$ContactId": "

The unique identifier of the contact to end.

", - "UpdateContactAttributesRequest$InitialContactId": "

The unique identifier of the contact for which to update attributes. This is the identifier for the contact associated with the first interaction with the contact center.

" + "GetContactAttributesRequest$InitialContactId": "

The identifier of the initial contact.

", + "StartOutboundVoiceContactResponse$ContactId": "

The identifier of this contact within the Amazon Connect instance.

", + "StopContactRequest$ContactId": "

The ID of the contact.

", + "UpdateContactAttributesRequest$InitialContactId": "

The identifier of the contact. This is the identifier of the contact associated with the first interaction with the contact center.

" } }, "ContactNotFoundException": { @@ -147,20 +187,20 @@ } }, "Credentials": { - "base": "

The credentials to use for federation.

", + "base": "

Contains credentials to use for federation.

", "refs": { "GetFederationTokenResponse$Credentials": "

The credentials to use for federation.

" } }, "CurrentMetric": { - "base": "

A CurrentMetric object that contains the Name and Unit for the metric.

", + "base": "

Contains information about a real-time metric.

", "refs": { - "CurrentMetricData$Metric": "

The metric in a CurrentMetricData object.

", + "CurrentMetricData$Metric": "

Information about the metric.

", "CurrentMetrics$member": null } }, "CurrentMetricData": { - "base": "

A CurrentMetricData object.

", + "base": "

Contains the data for a real-time metric.

", "refs": { "CurrentMetricDataCollections$member": null } @@ -168,17 +208,17 @@ "CurrentMetricDataCollections": { "base": null, "refs": { - "CurrentMetricResult$Collections": "

The Collections for the CurrentMetricResult object.

" + "CurrentMetricResult$Collections": "

The set of metrics.

" } }, "CurrentMetricName": { - "base": "

A list of current metric names.

", + "base": "

The current metric names.

", "refs": { "CurrentMetric$Name": "

The name of the metric.

" } }, "CurrentMetricResult": { - "base": "

A CurrentMetricResult object.

", + "base": "

Contains information about a set of real-time metrics.

", "refs": { "CurrentMetricResults$member": null } @@ -186,13 +226,13 @@ "CurrentMetricResults": { "base": null, "refs": { - "GetCurrentMetricDataResponse$MetricResults": "

A list of CurrentMetricResult objects organized by Dimensions combining with CurrentMetricDataCollections.

Dimensions is the resourceId specified in the Filters of the request.

Collections is a list of CurrentMetricData objects with corresponding values to the CurrentMetrics specified in the request.

If no Grouping is specified in the request, Collections is a summary for the CurrentMetric returned.

" + "GetCurrentMetricDataResponse$MetricResults": "

Information about the real-time metrics.

" } }, "CurrentMetrics": { "base": null, "refs": { - "GetCurrentMetricDataRequest$CurrentMetrics": "

A list of CurrentMetric objects for the metrics to retrieve. Each CurrentMetric includes a name of a metric to retrieve and the unit to use for it. You must list each metric to retrieve data for in the request.

The following metrics are available:

AGENTS_AVAILABLE

Unit: COUNT

AGENTS_ONLINE

Unit: COUNT

AGENTS_ON_CALL

Unit: COUNT

AGENTS_STAFFED

Unit: COUNT

AGENTS_AFTER_CONTACT_WORK

Unit: COUNT

AGENTS_NON_PRODUCTIVE

Unit: COUNT

AGENTS_ERROR

Unit: COUNT

CONTACTS_IN_QUEUE

Unit: COUNT

OLDEST_CONTACT_AGE

Unit: SECONDS

CONTACTS_SCHEDULED

Unit: COUNT

" + "GetCurrentMetricDataRequest$CurrentMetrics": "

The metrics to retrieve. Specify the name and unit for each metric. The following metrics are available:

AGENTS_AFTER_CONTACT_WORK

Unit: COUNT

AGENTS_AVAILABLE

Unit: COUNT

AGENTS_ERROR

Unit: COUNT

AGENTS_NON_PRODUCTIVE

Unit: COUNT

AGENTS_ON_CALL

Unit: COUNT

AGENTS_ONLINE

Unit: COUNT

AGENTS_STAFFED

Unit: COUNT

CONTACTS_IN_QUEUE

Unit: COUNT

CONTACTS_SCHEDULED

Unit: COUNT

OLDEST_CONTACT_AGE

Unit: SECONDS

" } }, "DeleteUserRequest": { @@ -236,35 +276,35 @@ } }, "Dimensions": { - "base": "

A Dimensions object that includes the Channel and Queue for the metric.

", + "base": "

Contains information about the dimensions for a set of metrics.

", "refs": { - "CurrentMetricResult$Dimensions": "

The Dimensions for the CurrentMetricResult object.

", - "HistoricalMetricResult$Dimensions": "

The Dimensions for the metrics.

" + "CurrentMetricResult$Dimensions": "

The dimensions for the metrics.

", + "HistoricalMetricResult$Dimensions": "

The dimension for the metrics.

" } }, "DirectoryUserId": { "base": null, "refs": { - "CreateUserRequest$DirectoryUserId": "

The unique identifier for the user account in the directory service directory used for identity management. If Amazon Connect is unable to access the existing directory, you can use the DirectoryUserId to authenticate users. If you include the parameter, it is assumed that Amazon Connect cannot access the directory. If the parameter is not included, the UserIdentityInfo is used to authenticate users from your existing directory.

This parameter is required if you are using an existing directory for identity management in Amazon Connect when Amazon Connect cannot access your directory to authenticate users. If you are using SAML for identity management and include this parameter, an InvalidRequestException is returned.

", - "User$DirectoryUserId": "

The directory Id for the user account in the existing directory used for identity management.

" + "CreateUserRequest$DirectoryUserId": "

The identifier of the user account in the directory used for identity management. If Amazon Connect cannot access the directory, you can specify this identifier to authenticate users. If you include the identifier, we assume that Amazon Connect cannot access the directory. Otherwise, the identity information is used to authenticate users from your directory.

This parameter is required if you are using an existing directory for identity management in Amazon Connect when Amazon Connect cannot access your directory to authenticate users. If you are using SAML for identity management and include this parameter, an error is returned.

", + "User$DirectoryUserId": "

The identifier of the user account in the directory used for identity management.

" } }, "DuplicateResourceException": { - "base": "

A resource with that name already exists.

", + "base": "

A resource with the specified name already exists.

", "refs": { } }, "Email": { "base": null, "refs": { - "UserIdentityInfo$Email": "

The email address added to the user account. If you are using SAML for identity management and include this parameter, an InvalidRequestException is returned.

" + "UserIdentityInfo$Email": "

The email address. If you are using SAML for identity management and include this parameter, an error is returned.

" } }, "Filters": { - "base": "

The filter, either channel or queues, to apply to the metric results retrieved.

", + "base": "

Contains the filter to apply when retrieving metrics.

", "refs": { - "GetCurrentMetricDataRequest$Filters": "

A Filters object that contains a list of queue IDs or queue ARNs, up to 100, or list of Channels to use to filter the metrics returned in the response. Metric data is retrieved only for the resources associated with the queue IDs, ARNs, or Channels included in the filter. You can include both IDs and ARNs in the same request. To retrieve metrics for all queues, add the queue ID or ARN for each queue in your instance. Only VOICE is supported for Channels.

To find the ARN for a queue, open the queue you want to use in the Amazon Connect Queue editor. The ARN for the queue is displayed in the address bar as part of the URL. For example, the queue ARN is the set of characters at the end of the URL, after 'id=' such as arn:aws:connect:us-east-1:270923740243:instance/78fb859d-1b7d-44b1-8aa3-12f0835c5855/queue/1d1a4575-9618-40ab-bbeb-81e45795fe61. The queue ID is also included in the URL, and is the string after 'queue/'.

", - "GetMetricDataRequest$Filters": "

A Filters object that contains a list of queue IDs or queue ARNs, up to 100, or a list of Channels to use to filter the metrics returned in the response. Metric data is retrieved only for the resources associated with the IDs, ARNs, or Channels included in the filter. You can use both IDs and ARNs together in a request. Only VOICE is supported for Channel.

To find the ARN for a queue, open the queue you want to use in the Amazon Connect Queue editor. The ARN for the queue is displayed in the address bar as part of the URL. For example, the queue ARN is the set of characters at the end of the URL, after 'id=' such as arn:aws:connect:us-east-1:270923740243:instance/78fb859d-1b7d-44b1-8aa3-12f0835c5855/queue/1d1a4575-9618-40ab-bbeb-81e45795fe61. The queue ID is also included in the URL, and is the string after 'queue/'.

" + "GetCurrentMetricDataRequest$Filters": "

The queues, up to 100, or channels, to use to filter the metrics returned. Metric data is retrieved only for the resources associated with the queues or channels included in the filter. You can include both queue IDs and queue ARNs in the same request. The only supported channel is VOICE.

", + "GetMetricDataRequest$Filters": "

The queues, up to 100, or channels, to use to filter the metrics returned. Metric data is retrieved only for the resources associated with the queues or channels included in the filter. You can include both queue IDs and queue ARNs in the same request. The only supported channel is VOICE.

" } }, "GetContactAttributesRequest": { @@ -316,95 +356,95 @@ "Groupings": { "base": null, "refs": { - "GetCurrentMetricDataRequest$Groupings": "

The grouping applied to the metrics returned. For example, when grouped by QUEUE, the metrics returned apply to each queue rather than aggregated for all queues. If you group by CHANNEL, you should include a Channels filter. The only supported channel is VOICE.

If no Grouping is included in the request, a summary of CurrentMetrics is returned.

", - "GetMetricDataRequest$Groupings": "

The grouping applied to the metrics returned. For example, when results are grouped by queueId, the metrics returned are grouped by queue. The values returned apply to the metrics for each queue rather than aggregated for all queues.

The current version supports grouping by Queue

If no Grouping is included in the request, a summary of HistoricalMetrics for all queues is returned.

" + "GetCurrentMetricDataRequest$Groupings": "

The grouping applied to the metrics returned. For example, when grouped by QUEUE, the metrics returned apply to each queue rather than aggregated for all queues. If you group by CHANNEL, you should include a Channels filter. The only supported channel is VOICE.

If no Grouping is included in the request, a summary of metrics is returned.

", + "GetMetricDataRequest$Groupings": "

The grouping applied to the metrics returned. For example, when results are grouped by queue, the metrics returned are grouped by queue. The values returned apply to the metrics for each queue rather than aggregated for all queues.

The only supported grouping is QUEUE.

If no grouping is specified, a summary of metrics for all queues is returned.

" } }, "HierarchyGroup": { - "base": "

A HierarchyGroup object that contains information about a hierarchy group in your Amazon Connect instance.

", + "base": "

Contains information about a hierarchy group.

", "refs": { - "DescribeUserHierarchyGroupResponse$HierarchyGroup": "

Returns a HierarchyGroup object.

" + "DescribeUserHierarchyGroupResponse$HierarchyGroup": "

Information about the hierarchy group.

" } }, "HierarchyGroupId": { "base": null, "refs": { - "CreateUserRequest$HierarchyGroupId": "

The unique identifier for the hierarchy group to assign to the user created.

", - "DescribeUserHierarchyGroupRequest$HierarchyGroupId": "

The identifier for the hierarchy group to return.

", - "HierarchyGroup$Id": "

The identifier for the hierarchy group.

", + "CreateUserRequest$HierarchyGroupId": "

The identifier of the hierarchy group for the user.

", + "DescribeUserHierarchyGroupRequest$HierarchyGroupId": "

The identifier of the hierarchy group.

", + "HierarchyGroup$Id": "

The identifier of the hierarchy group.

", "HierarchyGroupSummary$Id": "

The identifier of the hierarchy group.

", - "UpdateUserHierarchyRequest$HierarchyGroupId": "

The identifier for the hierarchy group to assign to the user.

", - "User$HierarchyGroupId": "

The identifier for the hierarchy group assigned to the user.

" + "UpdateUserHierarchyRequest$HierarchyGroupId": "

The identifier of the hierarchy group.

", + "User$HierarchyGroupId": "

The identifier of the hierarchy group for the user.

" } }, "HierarchyGroupName": { "base": null, "refs": { - "HierarchyGroup$Name": "

The name of the hierarchy group in your instance.

", + "HierarchyGroup$Name": "

The name of the hierarchy group.

", "HierarchyGroupSummary$Name": "

The name of the hierarchy group.

" } }, "HierarchyGroupSummary": { - "base": "

A HierarchyGroupSummary object that contains information about the hierarchy group, including ARN, Id, and Name.

", + "base": "

Contains summary information about a hierarchy group.

", "refs": { "HierarchyGroupSummaryList$member": null, - "HierarchyPath$LevelOne": "

A HierarchyGroupSummary object that contains information about the level of the hierarchy group, including ARN, Id, and Name.

", - "HierarchyPath$LevelTwo": "

A HierarchyGroupSummary object that contains information about the level of the hierarchy group, including ARN, Id, and Name.

", - "HierarchyPath$LevelThree": "

A HierarchyGroupSummary object that contains information about the level of the hierarchy group, including ARN, Id, and Name.

", - "HierarchyPath$LevelFour": "

A HierarchyGroupSummary object that contains information about the level of the hierarchy group, including ARN, Id, and Name.

", - "HierarchyPath$LevelFive": "

A HierarchyGroupSummary object that contains information about the level of the hierarchy group, including ARN, Id, and Name.

" + "HierarchyPath$LevelOne": "

Information about level one.

", + "HierarchyPath$LevelTwo": "

Information about level two.

", + "HierarchyPath$LevelThree": "

Information about level three.

", + "HierarchyPath$LevelFour": "

Information about level four.

", + "HierarchyPath$LevelFive": "

Information about level five.

" } }, "HierarchyGroupSummaryList": { "base": null, "refs": { - "ListUserHierarchyGroupsResponse$UserHierarchyGroupSummaryList": "

An array of HierarchyGroupSummary objects.

" + "ListUserHierarchyGroupsResponse$UserHierarchyGroupSummaryList": "

Information about the hierarchy groups.

" } }, "HierarchyLevel": { - "base": "

A HierarchyLevel object that contains information about the levels in a hierarchy group, including ARN, Id, and Name.

", + "base": "

Contains information about a hierarchy level.

", "refs": { - "HierarchyStructure$LevelOne": "

A HierarchyLevel object that contains information about the hierarchy group level.

", - "HierarchyStructure$LevelTwo": "

A HierarchyLevel object that contains information about the hierarchy group level.

", - "HierarchyStructure$LevelThree": "

A HierarchyLevel object that contains information about the hierarchy group level.

", - "HierarchyStructure$LevelFour": "

A HierarchyLevel object that contains information about the hierarchy group level.

", - "HierarchyStructure$LevelFive": "

A HierarchyLevel object that contains information about the hierarchy group level.

" + "HierarchyStructure$LevelOne": "

Information about level one.

", + "HierarchyStructure$LevelTwo": "

Information about level two.

", + "HierarchyStructure$LevelThree": "

Information about level three.

", + "HierarchyStructure$LevelFour": "

Information about level four.

", + "HierarchyStructure$LevelFive": "

Information about level five.

" } }, "HierarchyLevelId": { "base": null, "refs": { - "HierarchyGroup$LevelId": "

The identifier for the level in the hierarchy group.

", - "HierarchyLevel$Id": "

The identifier for the hierarchy group level.

" + "HierarchyGroup$LevelId": "

The identifier of the level in the hierarchy group.

", + "HierarchyLevel$Id": "

The identifier of the hierarchy level.

" } }, "HierarchyLevelName": { "base": null, "refs": { - "HierarchyLevel$Name": "

The name of the hierarchy group level.

" + "HierarchyLevel$Name": "

The name of the hierarchy level.

" } }, "HierarchyPath": { - "base": "

A HierarchyPath object that contains information about the levels of the hierarchy group.

", + "base": "

Contains information about the levels of a hierarchy group.

", "refs": { - "HierarchyGroup$HierarchyPath": "

A HierarchyPath object that contains information about the levels in the hierarchy group.

" + "HierarchyGroup$HierarchyPath": "

Information about the levels in the hierarchy group.

" } }, "HierarchyStructure": { - "base": "

A HierarchyStructure object that contains information about the hierarchy group structure.

", + "base": "

Contains information about a hierarchy structure.

", "refs": { - "DescribeUserHierarchyStructureResponse$HierarchyStructure": "

A HierarchyStructure object.

" + "DescribeUserHierarchyStructureResponse$HierarchyStructure": "

Information about the hierarchy structure.

" } }, "HistoricalMetric": { - "base": "

A HistoricalMetric object that contains the Name, Unit, Statistic, and Threshold for the metric.

", + "base": "

Contains information about a historical metric.

", "refs": { - "HistoricalMetricData$Metric": "

A HistoricalMetric object.

", + "HistoricalMetricData$Metric": "

Information about the metric.

", "HistoricalMetrics$member": null } }, "HistoricalMetricData": { - "base": "

A HistoricalMetricData object than contains a Metric and a Value.

", + "base": "

Contains the data for a historical metric.

", "refs": { "HistoricalMetricDataCollections$member": null } @@ -412,17 +452,17 @@ "HistoricalMetricDataCollections": { "base": null, "refs": { - "HistoricalMetricResult$Collections": "

A list of HistoricalMetricData objects.

" + "HistoricalMetricResult$Collections": "

The set of metrics.

" } }, "HistoricalMetricName": { - "base": "

A list of historical metric names.

", + "base": "

The historical metric names.

", "refs": { - "HistoricalMetric$Name": "

The name of the historical metric.

" + "HistoricalMetric$Name": "

The name of the metric.

" } }, "HistoricalMetricResult": { - "base": "

The metrics data returned from a GetMetricData operation.

", + "base": "

Contains information about the historical metrics retrieved.

", "refs": { "HistoricalMetricResults$member": null } @@ -430,39 +470,67 @@ "HistoricalMetricResults": { "base": null, "refs": { - "GetMetricDataResponse$MetricResults": "

A list of HistoricalMetricResult objects, organized by Dimensions, which is the ID of the resource specified in the Filters used for the request. The metrics are combined with the metrics included in Collections, which is a list of HisotricalMetricData objects.

If no Grouping is specified in the request, Collections includes summary data for the HistoricalMetrics.

" + "GetMetricDataResponse$MetricResults": "

Information about the historical metrics.

If no grouping is specified, a summary of metric data is returned.

" } }, "HistoricalMetrics": { "base": null, "refs": { - "GetMetricDataRequest$HistoricalMetrics": "

A list of HistoricalMetric objects that contain the metrics to retrieve with the request.

A HistoricalMetric object contains: HistoricalMetricName, Statistic, Threshold, and Unit.

You must list each metric to retrieve data for in the request. For each historical metric you include in the request, you must include a Unit and a Statistic.

The following historical metrics are available:

CONTACTS_QUEUED

Unit: COUNT

Statistic: SUM

CONTACTS_HANDLED

Unit: COUNT

Statistics: SUM

CONTACTS_ABANDONED

Unit: COUNT

Statistics: SUM

CONTACTS_CONSULTED

Unit: COUNT

Statistics: SUM

CONTACTS_AGENT_HUNG_UP_FIRST

Unit: COUNT

Statistics: SUM

CONTACTS_HANDLED_INCOMING

Unit: COUNT

Statistics: SUM

CONTACTS_HANDLED_OUTBOUND

Unit: COUNT

Statistics: SUM

CONTACTS_HOLD_ABANDONS

Unit: COUNT

Statistics: SUM

CONTACTS_TRANSFERRED_IN

Unit: COUNT

Statistics: SUM

CONTACTS_TRANSFERRED_OUT

Unit: COUNT

Statistics: SUM

CONTACTS_TRANSFERRED_IN_FROM_QUEUE

Unit: COUNT

Statistics: SUM

CONTACTS_TRANSFERRED_OUT_FROM_QUEUE

Unit: COUNT

Statistics: SUM

CALLBACK_CONTACTS_HANDLED

Unit: COUNT

Statistics: SUM

CALLBACK_CONTACTS_HANDLED

Unit: COUNT

Statistics: SUM

API_CONTACTS_HANDLED

Unit: COUNT

Statistics: SUM

CONTACTS_MISSED

Unit: COUNT

Statistics: SUM

OCCUPANCY

Unit: PERCENT

Statistics: AVG

HANDLE_TIME

Unit: SECONDS

Statistics: AVG

AFTER_CONTACT_WORK_TIME

Unit: SECONDS

Statistics: AVG

QUEUED_TIME

Unit: SECONDS

Statistics: MAX

ABANDON_TIME

Unit: COUNT

Statistics: SUM

QUEUE_ANSWER_TIME

Unit: SECONDS

Statistics: AVG

HOLD_TIME

Unit: SECONDS

Statistics: AVG

INTERACTION_TIME

Unit: SECONDS

Statistics: AVG

INTERACTION_AND_HOLD_TIME

Unit: SECONDS

Statistics: AVG

SERVICE_LEVEL

Unit: PERCENT

Statistics: AVG

Threshold: Only \"Less than\" comparisons are supported, with the following service level thresholds: 15, 20, 25, 30, 45, 60, 90, 120, 180, 240, 300, 600

" + "GetMetricDataRequest$HistoricalMetrics": "

The metrics to retrieve. Specify the name, unit, and statistic for each metric. The following historical metrics are available:

ABANDON_TIME

Unit: SECONDS

Statistic: AVG

AFTER_CONTACT_WORK_TIME

Unit: SECONDS

Statistic: AVG

API_CONTACTS_HANDLED

Unit: COUNT

Statistic: SUM

CALLBACK_CONTACTS_HANDLED

Unit: COUNT

Statistic: SUM

CONTACTS_ABANDONED

Unit: COUNT

Statistic: SUM

CONTACTS_AGENT_HUNG_UP_FIRST

Unit: COUNT

Statistic: SUM

CONTACTS_CONSULTED

Unit: COUNT

Statistic: SUM

CONTACTS_HANDLED

Unit: COUNT

Statistic: SUM

CONTACTS_HANDLED_INCOMING

Unit: COUNT

Statistic: SUM

CONTACTS_HANDLED_OUTBOUND

Unit: COUNT

Statistic: SUM

CONTACTS_HOLD_ABANDONS

Unit: COUNT

Statistic: SUM

CONTACTS_MISSED

Unit: COUNT

Statistic: SUM

CONTACTS_QUEUED

Unit: COUNT

Statistic: SUM

CONTACTS_TRANSFERRED_IN

Unit: COUNT

Statistic: SUM

CONTACTS_TRANSFERRED_IN_FROM_QUEUE

Unit: COUNT

Statistic: SUM

CONTACTS_TRANSFERRED_OUT

Unit: COUNT

Statistic: SUM

CONTACTS_TRANSFERRED_OUT_FROM_QUEUE

Unit: COUNT

Statistic: SUM

HANDLE_TIME

Unit: SECONDS

Statistic: AVG

HOLD_TIME

Unit: SECONDS

Statistic: AVG

INTERACTION_AND_HOLD_TIME

Unit: SECONDS

Statistic: AVG

INTERACTION_TIME

Unit: SECONDS

Statistic: AVG

OCCUPANCY

Unit: PERCENT

Statistic: AVG

QUEUE_ANSWER_TIME

Unit: SECONDS

Statistic: AVG

QUEUED_TIME

Unit: SECONDS

Statistic: MAX

SERVICE_LEVEL

Unit: PERCENT

Statistic: AVG

Threshold: Only \"Less than\" comparisons are supported, with the following service level thresholds: 15, 20, 25, 30, 45, 60, 90, 120, 180, 240, 300, 600

" + } + }, + "HoursOfOperationId": { + "base": null, + "refs": { + "HoursOfOperationSummary$Id": "

The identifier of the hours of operation.

" + } + }, + "HoursOfOperationName": { + "base": null, + "refs": { + "HoursOfOperationSummary$Name": "

The name of the hours of operation.

" + } + }, + "HoursOfOperationSummary": { + "base": "

Contains summary information about hours of operation for a contact center.

", + "refs": { + "HoursOfOperationSummaryList$member": null + } + }, + "HoursOfOperationSummaryList": { + "base": null, + "refs": { + "ListHoursOfOperationsResponse$HoursOfOperationSummaryList": "

Information about the hours of operation.

" } }, "InstanceId": { "base": null, "refs": { - "CreateUserRequest$InstanceId": "

The identifier for your Amazon Connect instance. To find the ID of your instance, open the AWS console and select Amazon Connect. Select the alias of the instance in the Instance alias column. The instance ID is displayed in the Overview section of your instance settings. For example, the instance ID is the set of characters at the end of the instance ARN, after instance/, such as 10a4c4eb-f57e-4d4c-b602-bf39176ced07.

", - "DeleteUserRequest$InstanceId": "

The identifier for your Amazon Connect instance. To find the ID of your instance, open the AWS console and select Amazon Connect. Select the alias of the instance in the Instance alias column. The instance ID is displayed in the Overview section of your instance settings. For example, the instance ID is the set of characters at the end of the instance ARN, after instance/, such as 10a4c4eb-f57e-4d4c-b602-bf39176ced07.

", - "DescribeUserHierarchyGroupRequest$InstanceId": "

The identifier for your Amazon Connect instance. To find the ID of your instance, open the AWS console and select Amazon Connect. Select the alias of the instance in the Instance alias column. The instance ID is displayed in the Overview section of your instance settings. For example, the instance ID is the set of characters at the end of the instance ARN, after instance/, such as 10a4c4eb-f57e-4d4c-b602-bf39176ced07.

", - "DescribeUserHierarchyStructureRequest$InstanceId": "

The identifier for your Amazon Connect instance. To find the ID of your instance, open the AWS console and select Amazon Connect. Select the alias of the instance in the Instance alias column. The instance ID is displayed in the Overview section of your instance settings. For example, the instance ID is the set of characters at the end of the instance ARN, after instance/, such as 10a4c4eb-f57e-4d4c-b602-bf39176ced07.

", - "DescribeUserRequest$InstanceId": "

The identifier for your Amazon Connect instance. To find the ID of your instance, open the AWS console and select Amazon Connect. Select the alias of the instance in the Instance alias column. The instance ID is displayed in the Overview section of your instance settings. For example, the instance ID is the set of characters at the end of the instance ARN, after instance/, such as 10a4c4eb-f57e-4d4c-b602-bf39176ced07.

", - "GetContactAttributesRequest$InstanceId": "

The instance ID for the instance from which to retrieve contact attributes.

", - "GetCurrentMetricDataRequest$InstanceId": "

The identifier for your Amazon Connect instance. To find the ID of your instance, open the AWS console and select Amazon Connect. Select the alias of the instance in the Instance alias column. The instance ID is displayed in the Overview section of your instance settings. For example, the instance ID is the set of characters at the end of the instance ARN, after instance/, such as 10a4c4eb-f57e-4d4c-b602-bf39176ced07.

", - "GetFederationTokenRequest$InstanceId": "

The identifier for your Amazon Connect instance. To find the ID of your instance, open the AWS console and select Amazon Connect. Select the alias of the instance in the Instance alias column. The instance ID is displayed in the Overview section of your instance settings. For example, the instance ID is the set of characters at the end of the instance ARN, after instance/, such as 10a4c4eb-f57e-4d4c-b602-bf39176ced07.

", - "GetMetricDataRequest$InstanceId": "

The identifier for your Amazon Connect instance. To find the ID of your instance, open the AWS console and select Amazon Connect. Select the alias of the instance in the Instance alias column. The instance ID is displayed in the Overview section of your instance settings. For example, the instance ID is the set of characters at the end of the instance ARN, after instance/, such as 10a4c4eb-f57e-4d4c-b602-bf39176ced07.

", - "ListRoutingProfilesRequest$InstanceId": "

The identifier for your Amazon Connect instance. To find the ID of your instance, open the AWS console and select Amazon Connect. Select the alias of the instance in the Instance alias column. The instance ID is displayed in the Overview section of your instance settings. For example, the instance ID is the set of characters at the end of the instance ARN, after instance/, such as 10a4c4eb-f57e-4d4c-b602-bf39176ced07.

", - "ListSecurityProfilesRequest$InstanceId": "

The identifier for your Amazon Connect instance. To find the ID of your instance, open the AWS console and select Amazon Connect. Select the alias of the instance in the Instance alias column. The instance ID is displayed in the Overview section of your instance settings. For example, the instance ID is the set of characters at the end of the instance ARN, after instance/, such as 10a4c4eb-f57e-4d4c-b602-bf39176ced07.

", - "ListUserHierarchyGroupsRequest$InstanceId": "

The identifier for your Amazon Connect instance. To find the ID of your instance, open the AWS console and select Amazon Connect. Select the alias of the instance in the Instance alias column. The instance ID is displayed in the Overview section of your instance settings. For example, the instance ID is the set of characters at the end of the instance ARN, after instance/, such as 10a4c4eb-f57e-4d4c-b602-bf39176ced07.

", - "ListUsersRequest$InstanceId": "

The identifier for your Amazon Connect instance. To find the ID of your instance, open the AWS console and select Amazon Connect. Select the alias of the instance in the Instance alias column. The instance ID is displayed in the Overview section of your instance settings. For example, the instance ID is the set of characters at the end of the instance ARN, after instance/, such as 10a4c4eb-f57e-4d4c-b602-bf39176ced07.

", - "StartOutboundVoiceContactRequest$InstanceId": "

The identifier for your Amazon Connect instance. To find the ID of your instance, open the AWS console and select Amazon Connect. Select the alias of the instance in the Instance alias column. The instance ID is displayed in the Overview section of your instance settings. For example, the instance ID is the set of characters at the end of the instance ARN, after instance/, such as 10a4c4eb-f57e-4d4c-b602-bf39176ced07.

", - "StopContactRequest$InstanceId": "

The identifier for your Amazon Connect instance. To find the ID of your instance, open the AWS console and select Amazon Connect. Select the alias of the instance in the Instance alias column. The instance ID is displayed in the Overview section of your instance settings. For example, the instance ID is the set of characters at the end of the instance ARN, after instance/, such as 10a4c4eb-f57e-4d4c-b602-bf39176ced07.

", - "UpdateContactAttributesRequest$InstanceId": "

The identifier for your Amazon Connect instance. To find the ID of your instance, open the AWS console and select Amazon Connect. Select the alias of the instance in the Instance alias column. The instance ID is displayed in the Overview section of your instance settings. For example, the instance ID is the set of characters at the end of the instance ARN, after instance/, such as 10a4c4eb-f57e-4d4c-b602-bf39176ced07.

", - "UpdateUserHierarchyRequest$InstanceId": "

The identifier for your Amazon Connect instance. To find the ID of your instance, open the AWS console and select Amazon Connect. Select the alias of the instance in the Instance alias column. The instance ID is displayed in the Overview section of your instance settings. For example, the instance ID is the set of characters at the end of the instance ARN, after instance/, such as 10a4c4eb-f57e-4d4c-b602-bf39176ced07.

", - "UpdateUserIdentityInfoRequest$InstanceId": "

The identifier for your Amazon Connect instance. To find the ID of your instance, open the AWS console and select Amazon Connect. Select the alias of the instance in the Instance alias column. The instance ID is displayed in the Overview section of your instance settings. For example, the instance ID is the set of characters at the end of the instance ARN, after instance/, such as 10a4c4eb-f57e-4d4c-b602-bf39176ced07.

", - "UpdateUserPhoneConfigRequest$InstanceId": "

The identifier for your Amazon Connect instance. To find the ID of your instance, open the AWS console and select Amazon Connect. Select the alias of the instance in the Instance alias column. The instance ID is displayed in the Overview section of your instance settings. For example, the instance ID is the set of characters at the end of the instance ARN, after instance/, such as 10a4c4eb-f57e-4d4c-b602-bf39176ced07.

", - "UpdateUserRoutingProfileRequest$InstanceId": "

The identifier for your Amazon Connect instance. To find the ID of your instance, open the AWS console and select Amazon Connect. Select the alias of the instance in the Instance alias column. The instance ID is displayed in the Overview section of your instance settings. For example, the instance ID is the set of characters at the end of the instance ARN, after instance/, such as 10a4c4eb-f57e-4d4c-b602-bf39176ced07.

", - "UpdateUserSecurityProfilesRequest$InstanceId": "

The identifier for your Amazon Connect instance. To find the ID of your instance, open the AWS console and select Amazon Connect. Select the alias of the instance in the Instance alias column. The instance ID is displayed in the Overview section of your instance settings. For example, the instance ID is the set of characters at the end of the instance ARN, after instance/, such as 10a4c4eb-f57e-4d4c-b602-bf39176ced07.

" + "CreateUserRequest$InstanceId": "

The identifier of the Amazon Connect instance.

", + "DeleteUserRequest$InstanceId": "

The identifier of the Amazon Connect instance.

", + "DescribeUserHierarchyGroupRequest$InstanceId": "

The identifier of the Amazon Connect instance.

", + "DescribeUserHierarchyStructureRequest$InstanceId": "

The identifier of the Amazon Connect instance.

", + "DescribeUserRequest$InstanceId": "

The identifier of the Amazon Connect instance.

", + "GetContactAttributesRequest$InstanceId": "

The identifier of the Amazon Connect instance.

", + "GetCurrentMetricDataRequest$InstanceId": "

The identifier of the Amazon Connect instance.

", + "GetFederationTokenRequest$InstanceId": "

The identifier of the Amazon Connect instance.

", + "GetMetricDataRequest$InstanceId": "

The identifier of the Amazon Connect instance.

", + "ListContactFlowsRequest$InstanceId": "

The identifier of the Amazon Connect instance.

", + "ListHoursOfOperationsRequest$InstanceId": "

The identifier of the Amazon Connect instance.

", + "ListPhoneNumbersRequest$InstanceId": "

The identifier of the Amazon Connect instance.

", + "ListQueuesRequest$InstanceId": "

The identifier of the Amazon Connect instance.

", + "ListRoutingProfilesRequest$InstanceId": "

The identifier of the Amazon Connect instance.

", + "ListSecurityProfilesRequest$InstanceId": "

The identifier of the Amazon Connect instance.

", + "ListUserHierarchyGroupsRequest$InstanceId": "

The identifier of the Amazon Connect instance.

", + "ListUsersRequest$InstanceId": "

The identifier of the Amazon Connect instance.

", + "StartOutboundVoiceContactRequest$InstanceId": "

The identifier of the Amazon Connect instance.

", + "StopContactRequest$InstanceId": "

The identifier of the Amazon Connect instance.

", + "UpdateContactAttributesRequest$InstanceId": "

The identifier of the Amazon Connect instance.

", + "UpdateUserHierarchyRequest$InstanceId": "

The identifier of the Amazon Connect instance.

", + "UpdateUserIdentityInfoRequest$InstanceId": "

The identifier of the Amazon Connect instance.

", + "UpdateUserPhoneConfigRequest$InstanceId": "

The identifier of the Amazon Connect instance.

", + "UpdateUserRoutingProfileRequest$InstanceId": "

The identifier of the Amazon Connect instance.

", + "UpdateUserSecurityProfilesRequest$InstanceId": "

The identifier of the Amazon Connect instance.

" } }, "InternalServiceException": { @@ -471,7 +539,7 @@ } }, "InvalidParameterException": { - "base": "

One or more of the parameters provided to the operation are not valid.

", + "base": "

One or more of the specified parameters are not valid.

", "refs": { } }, @@ -481,7 +549,47 @@ } }, "LimitExceededException": { - "base": "

The allowed limit for the resource has been reached.

", + "base": "

The allowed limit for the resource has been exceeded.

", + "refs": { + } + }, + "ListContactFlowsRequest": { + "base": null, + "refs": { + } + }, + "ListContactFlowsResponse": { + "base": null, + "refs": { + } + }, + "ListHoursOfOperationsRequest": { + "base": null, + "refs": { + } + }, + "ListHoursOfOperationsResponse": { + "base": null, + "refs": { + } + }, + "ListPhoneNumbersRequest": { + "base": null, + "refs": { + } + }, + "ListPhoneNumbersResponse": { + "base": null, + "refs": { + } + }, + "ListQueuesRequest": { + "base": null, + "refs": { + } + }, + "ListQueuesResponse": { + "base": null, "refs": { } }, @@ -528,17 +636,21 @@ "MaxResult100": { "base": null, "refs": { - "GetCurrentMetricDataRequest$MaxResults": "

MaxResults indicates the maximum number of results to return per page in the response, between 1 and 100.

", - "GetMetricDataRequest$MaxResults": "

Indicates the maximum number of results to return per page in the response, between 1-100.

" + "GetCurrentMetricDataRequest$MaxResults": "

The maximimum number of results to return per page.

", + "GetMetricDataRequest$MaxResults": "

The maximimum number of results to return per page.

" } }, "MaxResult1000": { "base": null, "refs": { - "ListRoutingProfilesRequest$MaxResults": "

The maximum number of routing profiles to return in the response.

", - "ListSecurityProfilesRequest$MaxResults": "

The maximum number of security profiles to return.

", - "ListUserHierarchyGroupsRequest$MaxResults": "

The maximum number of hierarchy groups to return.

", - "ListUsersRequest$MaxResults": "

The maximum number of results to return in the response.

" + "ListContactFlowsRequest$MaxResults": "

The maximimum number of results to return per page.

", + "ListHoursOfOperationsRequest$MaxResults": "

The maximimum number of results to return per page.

", + "ListPhoneNumbersRequest$MaxResults": "

The maximimum number of results to return per page.

", + "ListQueuesRequest$MaxResults": "

The maximimum number of results to return per page.

", + "ListRoutingProfilesRequest$MaxResults": "

The maximimum number of results to return per page.

", + "ListSecurityProfilesRequest$MaxResults": "

The maximimum number of results to return per page.

", + "ListUserHierarchyGroupsRequest$MaxResults": "

The maximimum number of results to return per page.

", + "ListUsersRequest$MaxResults": "

The maximimum number of results to return per page.

" } }, "Message": { @@ -560,18 +672,26 @@ "NextToken": { "base": null, "refs": { - "GetCurrentMetricDataRequest$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.

The token expires after 5 minutes from the time it is created. Subsequent requests that use the NextToken must use the same request parameters as the request that generated the token.

", - "GetCurrentMetricDataResponse$NextToken": "

A string returned in the response. Use the value returned in the response as the value of the NextToken in a subsequent request to retrieve the next set of results.

The token expires after 5 minutes from the time it is created. Subsequent requests that use the NextToken must use the same request parameters as the request that generated the token.

", + "GetCurrentMetricDataRequest$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.

The token expires after 5 minutes from the time it is created. Subsequent requests that use the token must use the same request parameters as the request that generated the token.

", + "GetCurrentMetricDataResponse$NextToken": "

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

The token expires after 5 minutes from the time it is created. Subsequent requests that use the token must use the same request parameters as the request that generated the token.

", "GetMetricDataRequest$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.

", - "GetMetricDataResponse$NextToken": "

A string returned in the response. Use the value returned in the response as the value of the NextToken in a subsequent request to retrieve the next set of results.

The token expires after 5 minutes from the time it is created. Subsequent requests that use the NextToken must use the same request parameters as the request that generated the token.

", + "GetMetricDataResponse$NextToken": "

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

The token expires after 5 minutes from the time it is created. Subsequent requests that use the token must use the same request parameters as the request that generated the token.

", + "ListContactFlowsRequest$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.

", + "ListContactFlowsResponse$NextToken": "

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

", + "ListHoursOfOperationsRequest$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.

", + "ListHoursOfOperationsResponse$NextToken": "

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

", + "ListPhoneNumbersRequest$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.

", + "ListPhoneNumbersResponse$NextToken": "

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

", + "ListQueuesRequest$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.

", + "ListQueuesResponse$NextToken": "

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

", "ListRoutingProfilesRequest$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.

", - "ListRoutingProfilesResponse$NextToken": "

A string returned in the response. Use the value returned in the response as the value of the NextToken in a subsequent request to retrieve the next set of results.

", + "ListRoutingProfilesResponse$NextToken": "

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

", "ListSecurityProfilesRequest$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.

", - "ListSecurityProfilesResponse$NextToken": "

A string returned in the response. Use the value returned in the response as the value of the NextToken in a subsequent request to retrieve the next set of results.

", + "ListSecurityProfilesResponse$NextToken": "

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

", "ListUserHierarchyGroupsRequest$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.

", - "ListUserHierarchyGroupsResponse$NextToken": "

A string returned in the response. Use the value returned in the response as the value of the NextToken in a subsequent request to retrieve the next set of results.

", + "ListUserHierarchyGroupsResponse$NextToken": "

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

", "ListUsersRequest$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.

", - "ListUsersResponse$NextToken": "

A string returned in the response. Use the value returned in the response as the value of the NextToken in a subsequent request to retrieve the next set of results.

" + "ListUsersResponse$NextToken": "

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

" } }, "OutboundContactNotPermittedException": { @@ -582,41 +702,118 @@ "Password": { "base": null, "refs": { - "CreateUserRequest$Password": "

The password for the user account to create. This is required if you are using Amazon Connect for identity management. If you are using SAML for identity management and include this parameter, an InvalidRequestException is returned.

" + "CreateUserRequest$Password": "

The password for the user account. A password is required if you are using Amazon Connect for identity management. Otherwise, it is an error to include a password.

" } }, "PhoneNumber": { "base": null, "refs": { - "StartOutboundVoiceContactRequest$DestinationPhoneNumber": "

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

", - "StartOutboundVoiceContactRequest$SourcePhoneNumber": "

The phone number, in E.164 format, associated with your Amazon Connect instance to use for the outbound call.

", + "PhoneNumberSummary$PhoneNumber": "

The phone number.

", + "StartOutboundVoiceContactRequest$DestinationPhoneNumber": "

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

", + "StartOutboundVoiceContactRequest$SourcePhoneNumber": "

The phone number associated with the Amazon Connect instance, in E.164 format. If you do not specify a source phone number, you must specify a queue.

", "UserPhoneConfig$DeskPhoneNumber": "

The phone number for the user's desk phone.

" } }, + "PhoneNumberCountryCode": { + "base": null, + "refs": { + "PhoneNumberCountryCodes$member": null, + "PhoneNumberSummary$PhoneNumberCountryCode": "

The ISO country code.

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

The ISO country code.

" + } + }, + "PhoneNumberId": { + "base": null, + "refs": { + "PhoneNumberSummary$Id": "

The identifier of the phone number.

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

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

", + "refs": { + "PhoneNumberSummaryList$member": null + } + }, + "PhoneNumberSummaryList": { + "base": null, + "refs": { + "ListPhoneNumbersResponse$PhoneNumberSummaryList": "

Information about the phone numbers.

" + } + }, + "PhoneNumberType": { + "base": null, + "refs": { + "PhoneNumberSummary$PhoneNumberType": "

The type of phone number.

", + "PhoneNumberTypes$member": null + } + }, + "PhoneNumberTypes": { + "base": null, + "refs": { + "ListPhoneNumbersRequest$PhoneNumberTypes": "

The type of phone number.

" + } + }, "PhoneType": { "base": null, "refs": { - "UserPhoneConfig$PhoneType": "

The phone type selected for the user, either Soft phone or Desk phone.

" + "UserPhoneConfig$PhoneType": "

The phone type.

" } }, "QueueId": { "base": null, "refs": { - "QueueReference$Id": "

The ID of the queue associated with the metrics returned.

", + "QueueReference$Id": "

The identifier of the queue.

", + "QueueSummary$Id": "

The identifier of the queue.

", "Queues$member": null, - "StartOutboundVoiceContactRequest$QueueId": "

The queue to add the call to. If you specify a queue, the phone displayed for caller ID is the phone number specified in the queue. If you do not specify a queue, the queue used will be the queue defined in the contact flow.

To find the QueueId, open the queue you want to use in the Amazon Connect Queue editor. The ID for the queue is displayed in the address bar as part of the URL. For example, the queue ID is the set of characters at the end of the URL, after 'queue/' such as queue/aeg40574-2d01-51c3-73d6-bf8624d2168c.

" + "StartOutboundVoiceContactRequest$QueueId": "

The queue for the call. If you specify a queue, the phone displayed for caller ID is the phone number specified in the queue. If you do not specify a queue, the queue defined in the contact flow is used. If you do not specify a queue, you must specify a source phone number.

" + } + }, + "QueueName": { + "base": null, + "refs": { + "QueueSummary$Name": "

The name of the queue.

" } }, "QueueReference": { - "base": "

A QueueReference object that contains the the QueueId and ARN for the queue resource for which metrics are returned.

", + "base": "

Contains information about a queue resource for which metrics are returned.

", + "refs": { + "Dimensions$Queue": "

Information about the queue for which metrics are returned.

" + } + }, + "QueueSummary": { + "base": "

Contains summary information about a queue.

", + "refs": { + "QueueSummaryList$member": null + } + }, + "QueueSummaryList": { + "base": null, + "refs": { + "ListQueuesResponse$QueueSummaryList": "

Information about the queues.

" + } + }, + "QueueType": { + "base": null, + "refs": { + "QueueSummary$QueueType": "

The type of queue.

", + "QueueTypes$member": null + } + }, + "QueueTypes": { + "base": null, "refs": { - "Dimensions$Queue": "

A QueueReference object used as one part of dimension for the metrics results.

" + "ListQueuesRequest$QueueTypes": "

The type of queue.

" } }, "Queues": { "base": null, "refs": { - "Filters$Queues": "

A list of up to 100 queue IDs or queue ARNs to use to filter the metrics retrieved. You can include both IDs and ARNs in a request.

" + "Filters$Queues": "

The queues to use to filter the metrics. You can specify up to 100 queues per request.

" } }, "ResourceNotFoundException": { @@ -627,10 +824,10 @@ "RoutingProfileId": { "base": null, "refs": { - "CreateUserRequest$RoutingProfileId": "

The unique identifier for the routing profile to assign to the user created.

", + "CreateUserRequest$RoutingProfileId": "

The identifier of the routing profile for the user.

", "RoutingProfileSummary$Id": "

The identifier of the routing profile.

", - "UpdateUserRoutingProfileRequest$RoutingProfileId": "

The identifier of the routing profile to assign to the user.

", - "User$RoutingProfileId": "

The identifier of the routing profile assigned to the user.

" + "UpdateUserRoutingProfileRequest$RoutingProfileId": "

The identifier of the routing profile for the user.

", + "User$RoutingProfileId": "

The identifier of the routing profile for the user.

" } }, "RoutingProfileName": { @@ -640,7 +837,7 @@ } }, "RoutingProfileSummary": { - "base": "

A RoutingProfileSummary object that contains information about a routing profile, including ARN, Id, and Name.

", + "base": "

Contains summary information about a routing profile.

", "refs": { "RoutingProfileSummaryList$member": null } @@ -648,7 +845,7 @@ "RoutingProfileSummaryList": { "base": null, "refs": { - "ListRoutingProfilesResponse$RoutingProfileSummaryList": "

An array of RoutingProfileSummary objects that include the ARN, Id, and Name of the routing profile.

" + "ListRoutingProfilesResponse$RoutingProfileSummaryList": "

Information about the routing profiles.

" } }, "SecurityProfileId": { @@ -661,9 +858,9 @@ "SecurityProfileIds": { "base": null, "refs": { - "CreateUserRequest$SecurityProfileIds": "

The unique identifier of the security profile to assign to the user created.

", - "UpdateUserSecurityProfilesRequest$SecurityProfileIds": "

The identifiers for the security profiles to assign to the user.

", - "User$SecurityProfileIds": "

The identifier(s) for the security profile assigned to the user.

" + "CreateUserRequest$SecurityProfileIds": "

The identifier of the security profile for the user.

", + "UpdateUserSecurityProfilesRequest$SecurityProfileIds": "

The identifiers of the security profiles for the user.

", + "User$SecurityProfileIds": "

The identifiers of the security profiles for the user.

" } }, "SecurityProfileName": { @@ -673,7 +870,7 @@ } }, "SecurityProfileSummary": { - "base": "

A SecurityProfileSummary object that contains information about a security profile, including ARN, Id, Name.

", + "base": "

Contains information about a security profile.

", "refs": { "SecurityProfileSummaryList$member": null } @@ -681,13 +878,13 @@ "SecurityProfileSummaryList": { "base": null, "refs": { - "ListSecurityProfilesResponse$SecurityProfileSummaryList": "

An array of SecurityProfileSummary objects.

" + "ListSecurityProfilesResponse$SecurityProfileSummaryList": "

Information about the security profiles.

" } }, "SecurityToken": { "base": null, "refs": { - "Credentials$AccessToken": "

An access token generated for a federated user to access Amazon Connect

", + "Credentials$AccessToken": "

An access token generated for a federated user to access Amazon Connect.

", "Credentials$RefreshToken": "

Renews a token generated for a user to access the Amazon Connect instance.

" } }, @@ -718,7 +915,7 @@ } }, "Threshold": { - "base": "

A Threshold object that includes a comparison and ThresholdValue to compare to. Used with service level metrics.

", + "base": "

Contains information about the threshold for service level metrics.

", "refs": { "HistoricalMetric$Threshold": "

The threshold for the metric, used with service level metrics.

" } @@ -726,7 +923,7 @@ "ThresholdValue": { "base": null, "refs": { - "Threshold$ThresholdValue": "

The value of the threshold to compare the metric to. Only \"Less than\" (LT) comparisons are supported.

" + "Threshold$ThresholdValue": "

The threshold value to compare.

" } }, "ThrottlingException": { @@ -777,32 +974,32 @@ } }, "User": { - "base": "

A User object that contains information about a user account in your Amazon Connect instance, including configuration settings.

", + "base": "

Contains information about a user account for a Amazon Connect instance.

", "refs": { - "DescribeUserResponse$User": "

A User object that contains information about the user account and configuration settings.

" + "DescribeUserResponse$User": "

Information about the user account and configuration settings.

" } }, "UserId": { "base": null, "refs": { - "CreateUserResponse$UserId": "

The unique identifier for the user account in Amazon Connect

", - "DeleteUserRequest$UserId": "

The unique identifier of the user to delete.

", - "DescribeUserRequest$UserId": "

Unique identifier for the user account to return.

", - "UpdateUserHierarchyRequest$UserId": "

The identifier of the user account to assign the hierarchy group to.

", - "UpdateUserIdentityInfoRequest$UserId": "

The identifier for the user account to update identity information for.

", - "UpdateUserPhoneConfigRequest$UserId": "

The identifier for the user account to change phone settings for.

", - "UpdateUserRoutingProfileRequest$UserId": "

The identifier for the user account to assign the routing profile to.

", - "UpdateUserSecurityProfilesRequest$UserId": "

The identifier of the user account to assign the security profiles.

", + "CreateUserResponse$UserId": "

The identifier of the user account.

", + "DeleteUserRequest$UserId": "

The identifier of the user.

", + "DescribeUserRequest$UserId": "

The identifier of the user account.

", + "UpdateUserHierarchyRequest$UserId": "

The identifier of the user account.

", + "UpdateUserIdentityInfoRequest$UserId": "

The identifier of the user account.

", + "UpdateUserPhoneConfigRequest$UserId": "

The identifier of the user account.

", + "UpdateUserRoutingProfileRequest$UserId": "

The identifier of the user account.

", + "UpdateUserSecurityProfilesRequest$UserId": "

The identifier of the user account.

", "User$Id": "

The identifier of the user account.

", - "UserSummary$Id": "

The identifier for the user account.

" + "UserSummary$Id": "

The identifier of the user account.

" } }, "UserIdentityInfo": { - "base": "

A UserIdentityInfo object that contains information about the user's identity, including email address, first name, and last name.

", + "base": "

Contains information about the identity of a user.

", "refs": { - "CreateUserRequest$IdentityInfo": "

Information about the user, including email address, first name, and last name.

", - "UpdateUserIdentityInfoRequest$IdentityInfo": "

A UserIdentityInfo object.

", - "User$IdentityInfo": "

A UserIdentityInfo object.

" + "CreateUserRequest$IdentityInfo": "

The information about the identity of the user.

", + "UpdateUserIdentityInfoRequest$IdentityInfo": "

The identity information for the user.

", + "User$IdentityInfo": "

Information about the user identity.

" } }, "UserNotFoundException": { @@ -811,15 +1008,15 @@ } }, "UserPhoneConfig": { - "base": "

A UserPhoneConfig object that contains information about the user phone configuration settings.

", + "base": "

Contains information about the phone configuration settings for a user.

", "refs": { - "CreateUserRequest$PhoneConfig": "

Specifies the phone settings for the user, including AfterContactWorkTimeLimit, AutoAccept, DeskPhoneNumber, and PhoneType.

", - "UpdateUserPhoneConfigRequest$PhoneConfig": "

A UserPhoneConfig object that contains settings for AfterContactWorkTimeLimit, AutoAccept, DeskPhoneNumber, and PhoneType to assign to the user.

", - "User$PhoneConfig": "

A UserPhoneConfig object.

" + "CreateUserRequest$PhoneConfig": "

The phone settings for the user.

", + "UpdateUserPhoneConfigRequest$PhoneConfig": "

Information about phone configuration settings for the user.

", + "User$PhoneConfig": "

Information about the phone configuration for the user.

" } }, "UserSummary": { - "base": "

A UserSummary object that contains Information about a user, including ARN, Id, and user name.

", + "base": "

Contains summary information about a user.

", "refs": { "UserSummaryList$member": null } @@ -827,24 +1024,24 @@ "UserSummaryList": { "base": null, "refs": { - "ListUsersResponse$UserSummaryList": "

An array of UserSummary objects that contain information about the users in your instance.

" + "ListUsersResponse$UserSummaryList": "

Information about the users.

" } }, "Value": { "base": null, "refs": { - "CurrentMetricData$Value": "

The value of the metric in the CurrentMetricData object.

", - "HistoricalMetricData$Value": "

The Value of the metric.

" + "CurrentMetricData$Value": "

The value of the metric.

", + "HistoricalMetricData$Value": "

The value of the metric.

" } }, "timestamp": { "base": null, "refs": { - "Credentials$AccessTokenExpiration": "

A token generated with an expiration time for the session a user is logged in to Amazon Connect

", + "Credentials$AccessTokenExpiration": "

A token generated with an expiration time for the session a user is logged in to Amazon Connect.

", "Credentials$RefreshTokenExpiration": "

Renews the expiration timer for a generated token.

", - "GetCurrentMetricDataResponse$DataSnapshotTime": "

The time at which CurrentMetricData was retrieved and cached for pagination.

", - "GetMetricDataRequest$StartTime": "

The timestamp, in UNIX Epoch time format, at which to start the reporting interval for the retrieval of historical metrics data. The time must be specified using a multiple of 5 minutes, such as 10:05, 10:10, 10:15.

StartTime cannot be earlier than 24 hours before the time of the request. Historical metrics are available in Amazon Connect only for 24 hours.

", - "GetMetricDataRequest$EndTime": "

The timestamp, in UNIX Epoch time format, at which to end the reporting interval for the retrieval of historical metrics data. The time must be specified using an interval of 5 minutes, such as 11:00, 11:05, 11:10, and must be later than the StartTime timestamp.

The time range between StartTime and EndTime must be less than 24 hours.

" + "GetCurrentMetricDataResponse$DataSnapshotTime": "

The time at which the metrics were retrieved and cached for pagination.

", + "GetMetricDataRequest$StartTime": "

The timestamp, in UNIX Epoch time format, at which to start the reporting interval for the retrieval of historical metrics data. The time must be specified using a multiple of 5 minutes, such as 10:05, 10:10, 10:15.

The start time cannot be earlier than 24 hours before the time of the request. Historical metrics are available only for 24 hours.

", + "GetMetricDataRequest$EndTime": "

The timestamp, in UNIX Epoch time format, at which to end the reporting interval for the retrieval of historical metrics data. The time must be specified using an interval of 5 minutes, such as 11:00, 11:05, 11:10, and must be later than the start time timestamp.

The time range between the start and end time must be less than 24 hours.

" } } } diff --git a/models/apis/connect/2017-08-08/paginators-1.json b/models/apis/connect/2017-08-08/paginators-1.json index 443b131f44..5607eb5ebc 100644 --- a/models/apis/connect/2017-08-08/paginators-1.json +++ b/models/apis/connect/2017-08-08/paginators-1.json @@ -2,13 +2,61 @@ "pagination": { "GetCurrentMetricData": { "input_token": "NextToken", - "output_token": "NextToken", - "limit_key": "MaxResults" + "limit_key": "MaxResults", + "output_token": "NextToken" }, "GetMetricData": { "input_token": "NextToken", + "limit_key": "MaxResults", + "output_token": "NextToken" + }, + "ListContactFlows": { + "input_token": "NextToken", + "limit_key": "MaxResults", + "output_token": "NextToken", + "result_key": "ContactFlowSummaryList" + }, + "ListHoursOfOperations": { + "input_token": "NextToken", + "limit_key": "MaxResults", + "output_token": "NextToken", + "result_key": "HoursOfOperationSummaryList" + }, + "ListPhoneNumbers": { + "input_token": "NextToken", + "limit_key": "MaxResults", + "output_token": "NextToken", + "result_key": "PhoneNumberSummaryList" + }, + "ListQueues": { + "input_token": "NextToken", + "limit_key": "MaxResults", + "output_token": "NextToken", + "result_key": "QueueSummaryList" + }, + "ListRoutingProfiles": { + "input_token": "NextToken", + "limit_key": "MaxResults", + "output_token": "NextToken", + "result_key": "RoutingProfileSummaryList" + }, + "ListSecurityProfiles": { + "input_token": "NextToken", + "limit_key": "MaxResults", + "output_token": "NextToken", + "result_key": "SecurityProfileSummaryList" + }, + "ListUserHierarchyGroups": { + "input_token": "NextToken", + "limit_key": "MaxResults", + "output_token": "NextToken", + "result_key": "UserHierarchyGroupSummaryList" + }, + "ListUsers": { + "input_token": "NextToken", + "limit_key": "MaxResults", "output_token": "NextToken", - "limit_key": "MaxResults" + "result_key": "UserSummaryList" } } -} +} \ No newline at end of file diff --git a/models/apis/polly/2016-06-10/api-2.json b/models/apis/polly/2016-06-10/api-2.json index 7af518aa2d..b3322f8d80 100644 --- a/models/apis/polly/2016-06-10/api-2.json +++ b/models/apis/polly/2016-06-10/api-2.json @@ -766,6 +766,7 @@ "Astrid", "Bianca", "Brian", + "Camila", "Carla", "Carmen", "Celine", @@ -795,6 +796,7 @@ "Liv", "Lotte", "Lucia", + "Lupe", "Mads", "Maja", "Marlene", diff --git a/models/apis/sts/2011-06-15/docs-2.json b/models/apis/sts/2011-06-15/docs-2.json index bd24445f13..adec4d2118 100644 --- a/models/apis/sts/2011-06-15/docs-2.json +++ b/models/apis/sts/2011-06-15/docs-2.json @@ -139,7 +139,7 @@ } }, "InvalidAuthorizationMessageException": { - "base": "

The error returned if the message passed to DecodeAuthorizationMessage was invalid. This can happen if the token contains invalid characters, such as linebreaks.

", + "base": "

This error is returned if the message passed to DecodeAuthorizationMessage was invalid. This can happen if the token contains invalid characters, such as linebreaks.

", "refs": { } }, diff --git a/models/endpoints/endpoints.json b/models/endpoints/endpoints.json index d5aa0a429d..79e2a99f93 100644 --- a/models/endpoints/endpoints.json +++ b/models/endpoints/endpoints.json @@ -3382,42 +3382,26 @@ } }, "sts" : { - "defaults" : { - "credentialScope" : { - "region" : "us-east-1" - }, - "hostname" : "sts.amazonaws.com" - }, "endpoints" : { - "ap-east-1" : { - "credentialScope" : { - "region" : "ap-east-1" - }, - "hostname" : "sts.ap-east-1.amazonaws.com" - }, + "ap-east-1" : { }, "ap-northeast-1" : { }, - "ap-northeast-2" : { - "credentialScope" : { - "region" : "ap-northeast-2" - }, - "hostname" : "sts.ap-northeast-2.amazonaws.com" - }, + "ap-northeast-2" : { }, "ap-south-1" : { }, "ap-southeast-1" : { }, "ap-southeast-2" : { }, - "aws-global" : { }, + "aws-global" : { + "credentialScope" : { + "region" : "us-east-1" + }, + "hostname" : "sts.amazonaws.com" + }, "ca-central-1" : { }, "eu-central-1" : { }, "eu-north-1" : { }, "eu-west-1" : { }, "eu-west-2" : { }, "eu-west-3" : { }, - "me-south-1" : { - "credentialScope" : { - "region" : "me-south-1" - }, - "hostname" : "sts.me-south-1.amazonaws.com" - }, + "me-south-1" : { }, "sa-east-1" : { }, "us-east-1" : { }, "us-east-1-fips" : { diff --git a/service/connect/api.go b/service/connect/api.go index 8e61bd27a0..b4b16fe484 100644 --- a/service/connect/api.go +++ b/service/connect/api.go @@ -56,7 +56,7 @@ func (c *Connect) CreateUserRequest(input *CreateUserInput) (req *request.Reques // CreateUser API operation for Amazon Connect Service. // -// Creates a new user account in your Amazon Connect instance. +// Creates a user account for the specified 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 @@ -70,13 +70,13 @@ func (c *Connect) CreateUserRequest(input *CreateUserInput) (req *request.Reques // The request is not valid. // // * ErrCodeInvalidParameterException "InvalidParameterException" -// One or more of the parameters provided to the operation are not valid. +// One or more of the specified parameters are not valid. // // * ErrCodeLimitExceededException "LimitExceededException" -// The allowed limit for the resource has been reached. +// The allowed limit for the resource has been exceeded. // // * ErrCodeDuplicateResourceException "DuplicateResourceException" -// A resource with that name already exists. +// A resource with the specified name already exists. // // * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The specified resource was not found. @@ -154,7 +154,7 @@ func (c *Connect) DeleteUserRequest(input *DeleteUserInput) (req *request.Reques // DeleteUser API operation for Amazon Connect Service. // -// Deletes a user account from Amazon Connect. +// Deletes a user account from the specified 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 @@ -168,7 +168,7 @@ func (c *Connect) DeleteUserRequest(input *DeleteUserInput) (req *request.Reques // The request is not valid. // // * ErrCodeInvalidParameterException "InvalidParameterException" -// One or more of the parameters provided to the operation are not valid. +// One or more of the specified parameters are not valid. // // * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The specified resource was not found. @@ -245,8 +245,7 @@ func (c *Connect) DescribeUserRequest(input *DescribeUserInput) (req *request.Re // DescribeUser API operation for Amazon Connect Service. // -// Returns a User object that contains information about the user account specified -// by the UserId. +// Describes the specified user account. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -260,7 +259,7 @@ func (c *Connect) DescribeUserRequest(input *DescribeUserInput) (req *request.Re // The request is not valid. // // * ErrCodeInvalidParameterException "InvalidParameterException" -// One or more of the parameters provided to the operation are not valid. +// One or more of the specified parameters are not valid. // // * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The specified resource was not found. @@ -337,8 +336,7 @@ func (c *Connect) DescribeUserHierarchyGroupRequest(input *DescribeUserHierarchy // DescribeUserHierarchyGroup API operation for Amazon Connect Service. // -// Returns a HierarchyGroup object that includes information about a hierarchy -// group in your instance. +// Describes the specified hierarchy group. // // 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 @@ -352,7 +350,7 @@ func (c *Connect) DescribeUserHierarchyGroupRequest(input *DescribeUserHierarchy // The request is not valid. // // * ErrCodeInvalidParameterException "InvalidParameterException" -// One or more of the parameters provided to the operation are not valid. +// One or more of the specified parameters are not valid. // // * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The specified resource was not found. @@ -429,8 +427,7 @@ func (c *Connect) DescribeUserHierarchyStructureRequest(input *DescribeUserHiera // DescribeUserHierarchyStructure API operation for Amazon Connect Service. // -// Returns a HiearchyGroupStructure object, which contains data about the levels -// in the agent hierarchy. +// Describes the hierarchy structure of the specified 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 @@ -444,7 +441,7 @@ func (c *Connect) DescribeUserHierarchyStructureRequest(input *DescribeUserHiera // The request is not valid. // // * ErrCodeInvalidParameterException "InvalidParameterException" -// One or more of the parameters provided to the operation are not valid. +// One or more of the specified parameters are not valid. // // * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The specified resource was not found. @@ -521,7 +518,7 @@ func (c *Connect) GetContactAttributesRequest(input *GetContactAttributesInput) // GetContactAttributes API operation for Amazon Connect Service. // -// Retrieves the contact attributes associated with a contact. +// Retrieves the contact attributes for the specified contact. // // 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 @@ -612,11 +609,10 @@ func (c *Connect) GetCurrentMetricDataRequest(input *GetCurrentMetricDataInput) // GetCurrentMetricData API operation for Amazon Connect Service. // -// The GetCurrentMetricData operation retrieves current metric data from your -// Amazon Connect instance. +// Gets the real-time metric data from the specified Amazon Connect instance. // -// If you are using an IAM account, it must have permission to the connect:GetCurrentMetricData -// action. +// For more information, see Real-time Metrics Reports (https://docs.aws.amazon.com/connect/latest/adminguide/real-time-metrics-reports.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 @@ -630,7 +626,7 @@ func (c *Connect) GetCurrentMetricDataRequest(input *GetCurrentMetricDataInput) // The request is not valid. // // * ErrCodeInvalidParameterException "InvalidParameterException" -// One or more of the parameters provided to the operation are not valid. +// One or more of the specified parameters are not valid. // // * ErrCodeInternalServiceException "InternalServiceException" // Request processing failed due to an error or failure with the service. @@ -771,7 +767,7 @@ func (c *Connect) GetFederationTokenRequest(input *GetFederationTokenInput) (req // The request is not valid. // // * ErrCodeInvalidParameterException "InvalidParameterException" -// One or more of the parameters provided to the operation are not valid. +// One or more of the specified parameters are not valid. // // * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The specified resource was not found. @@ -783,7 +779,7 @@ func (c *Connect) GetFederationTokenRequest(input *GetFederationTokenInput) (req // Request processing failed due to an error or failure with the service. // // * ErrCodeDuplicateResourceException "DuplicateResourceException" -// A resource with that name already exists. +// A resource with the specified name already exists. // // See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/GetFederationToken func (c *Connect) GetFederationToken(input *GetFederationTokenInput) (*GetFederationTokenOutput, error) { @@ -857,11 +853,10 @@ func (c *Connect) GetMetricDataRequest(input *GetMetricDataInput) (req *request. // GetMetricData API operation for Amazon Connect Service. // -// The GetMetricData operation retrieves historical metrics data from your Amazon -// Connect instance. +// Gets historical metric data from the specified Amazon Connect instance. // -// If you are using an IAM account, it must have permission to the connect:GetMetricData -// action. +// For more information, see Historical Metrics Reports (https://docs.aws.amazon.com/connect/latest/adminguide/historical-metrics.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 @@ -875,7 +870,7 @@ func (c *Connect) GetMetricDataRequest(input *GetMetricDataInput) (req *request. // The request is not valid. // // * ErrCodeInvalidParameterException "InvalidParameterException" -// One or more of the parameters provided to the operation are not valid. +// One or more of the specified parameters are not valid. // // * ErrCodeInternalServiceException "InternalServiceException" // Request processing failed due to an error or failure with the service. @@ -958,66 +953,72 @@ func (c *Connect) GetMetricDataPagesWithContext(ctx aws.Context, input *GetMetri return p.Err() } -const opListRoutingProfiles = "ListRoutingProfiles" +const opListContactFlows = "ListContactFlows" -// ListRoutingProfilesRequest generates a "aws/request.Request" representing the -// client's request for the ListRoutingProfiles operation. The "output" return +// ListContactFlowsRequest generates a "aws/request.Request" representing the +// client's request for the ListContactFlows 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 ListRoutingProfiles for more information on using the ListRoutingProfiles +// See ListContactFlows for more information on using the ListContactFlows // 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 ListRoutingProfilesRequest method. -// req, resp := client.ListRoutingProfilesRequest(params) +// // Example sending a request using the ListContactFlowsRequest method. +// req, resp := client.ListContactFlowsRequest(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/ListRoutingProfiles -func (c *Connect) ListRoutingProfilesRequest(input *ListRoutingProfilesInput) (req *request.Request, output *ListRoutingProfilesOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/ListContactFlows +func (c *Connect) ListContactFlowsRequest(input *ListContactFlowsInput) (req *request.Request, output *ListContactFlowsOutput) { op := &request.Operation{ - Name: opListRoutingProfiles, + Name: opListContactFlows, HTTPMethod: "GET", - HTTPPath: "/routing-profiles-summary/{InstanceId}", + HTTPPath: "/contact-flows-summary/{InstanceId}", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, } if input == nil { - input = &ListRoutingProfilesInput{} + input = &ListContactFlowsInput{} } - output = &ListRoutingProfilesOutput{} + output = &ListContactFlowsOutput{} req = c.newRequest(op, input, output) return } -// ListRoutingProfiles API operation for Amazon Connect Service. +// ListContactFlows API operation for Amazon Connect Service. // -// Returns an array of RoutingProfileSummary objects that includes information -// about the routing profiles in your instance. +// Provides information about the contact flows for the specified 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 ListRoutingProfiles for usage and error information. +// API operation ListContactFlows for usage and error information. // // Returned Error Codes: // * ErrCodeInvalidRequestException "InvalidRequestException" // The request is not valid. // // * ErrCodeInvalidParameterException "InvalidParameterException" -// One or more of the parameters provided to the operation are not valid. +// One or more of the specified parameters are not valid. // // * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The specified resource was not found. @@ -1028,89 +1029,144 @@ func (c *Connect) ListRoutingProfilesRequest(input *ListRoutingProfilesInput) (r // * ErrCodeInternalServiceException "InternalServiceException" // Request processing failed due to an error or failure with the service. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/ListRoutingProfiles -func (c *Connect) ListRoutingProfiles(input *ListRoutingProfilesInput) (*ListRoutingProfilesOutput, error) { - req, out := c.ListRoutingProfilesRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/ListContactFlows +func (c *Connect) ListContactFlows(input *ListContactFlowsInput) (*ListContactFlowsOutput, error) { + req, out := c.ListContactFlowsRequest(input) return out, req.Send() } -// ListRoutingProfilesWithContext is the same as ListRoutingProfiles with the addition of +// ListContactFlowsWithContext is the same as ListContactFlows with the addition of // the ability to pass a context and additional request options. // -// See ListRoutingProfiles for details on how to use this API operation. +// See ListContactFlows 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) ListRoutingProfilesWithContext(ctx aws.Context, input *ListRoutingProfilesInput, opts ...request.Option) (*ListRoutingProfilesOutput, error) { - req, out := c.ListRoutingProfilesRequest(input) +func (c *Connect) ListContactFlowsWithContext(ctx aws.Context, input *ListContactFlowsInput, opts ...request.Option) (*ListContactFlowsOutput, error) { + req, out := c.ListContactFlowsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opListSecurityProfiles = "ListSecurityProfiles" +// ListContactFlowsPages iterates over the pages of a ListContactFlows operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListContactFlows 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 ListContactFlows operation. +// pageNum := 0 +// err := client.ListContactFlowsPages(params, +// func(page *connect.ListContactFlowsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *Connect) ListContactFlowsPages(input *ListContactFlowsInput, fn func(*ListContactFlowsOutput, bool) bool) error { + return c.ListContactFlowsPagesWithContext(aws.BackgroundContext(), input, fn) +} -// ListSecurityProfilesRequest generates a "aws/request.Request" representing the -// client's request for the ListSecurityProfiles operation. The "output" return +// ListContactFlowsPagesWithContext same as ListContactFlowsPages 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) ListContactFlowsPagesWithContext(ctx aws.Context, input *ListContactFlowsInput, fn func(*ListContactFlowsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListContactFlowsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListContactFlowsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + cont := true + for p.Next() && cont { + cont = fn(p.Page().(*ListContactFlowsOutput), !p.HasNextPage()) + } + return p.Err() +} + +const opListHoursOfOperations = "ListHoursOfOperations" + +// ListHoursOfOperationsRequest generates a "aws/request.Request" representing the +// client's request for the ListHoursOfOperations 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 ListSecurityProfiles for more information on using the ListSecurityProfiles +// See ListHoursOfOperations for more information on using the ListHoursOfOperations // 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 ListSecurityProfilesRequest method. -// req, resp := client.ListSecurityProfilesRequest(params) +// // Example sending a request using the ListHoursOfOperationsRequest method. +// req, resp := client.ListHoursOfOperationsRequest(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/ListSecurityProfiles -func (c *Connect) ListSecurityProfilesRequest(input *ListSecurityProfilesInput) (req *request.Request, output *ListSecurityProfilesOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/ListHoursOfOperations +func (c *Connect) ListHoursOfOperationsRequest(input *ListHoursOfOperationsInput) (req *request.Request, output *ListHoursOfOperationsOutput) { op := &request.Operation{ - Name: opListSecurityProfiles, + Name: opListHoursOfOperations, HTTPMethod: "GET", - HTTPPath: "/security-profiles-summary/{InstanceId}", + HTTPPath: "/hours-of-operations-summary/{InstanceId}", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, } if input == nil { - input = &ListSecurityProfilesInput{} + input = &ListHoursOfOperationsInput{} } - output = &ListSecurityProfilesOutput{} + output = &ListHoursOfOperationsOutput{} req = c.newRequest(op, input, output) return } -// ListSecurityProfiles API operation for Amazon Connect Service. +// ListHoursOfOperations API operation for Amazon Connect Service. // -// Returns an array of SecurityProfileSummary objects that contain information -// about the security profiles in your instance, including the ARN, Id, and -// Name of the security profile. +// Provides information about the hours of operation for the specified 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 ListSecurityProfiles for usage and error information. +// API operation ListHoursOfOperations for usage and error information. // // Returned Error Codes: // * ErrCodeInvalidRequestException "InvalidRequestException" // The request is not valid. // // * ErrCodeInvalidParameterException "InvalidParameterException" -// One or more of the parameters provided to the operation are not valid. +// One or more of the specified parameters are not valid. // // * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The specified resource was not found. @@ -1121,88 +1177,144 @@ func (c *Connect) ListSecurityProfilesRequest(input *ListSecurityProfilesInput) // * ErrCodeInternalServiceException "InternalServiceException" // Request processing failed due to an error or failure with the service. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/ListSecurityProfiles -func (c *Connect) ListSecurityProfiles(input *ListSecurityProfilesInput) (*ListSecurityProfilesOutput, error) { - req, out := c.ListSecurityProfilesRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/ListHoursOfOperations +func (c *Connect) ListHoursOfOperations(input *ListHoursOfOperationsInput) (*ListHoursOfOperationsOutput, error) { + req, out := c.ListHoursOfOperationsRequest(input) return out, req.Send() } -// ListSecurityProfilesWithContext is the same as ListSecurityProfiles with the addition of +// ListHoursOfOperationsWithContext is the same as ListHoursOfOperations with the addition of // the ability to pass a context and additional request options. // -// See ListSecurityProfiles for details on how to use this API operation. +// See ListHoursOfOperations 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) ListSecurityProfilesWithContext(ctx aws.Context, input *ListSecurityProfilesInput, opts ...request.Option) (*ListSecurityProfilesOutput, error) { - req, out := c.ListSecurityProfilesRequest(input) +func (c *Connect) ListHoursOfOperationsWithContext(ctx aws.Context, input *ListHoursOfOperationsInput, opts ...request.Option) (*ListHoursOfOperationsOutput, error) { + req, out := c.ListHoursOfOperationsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opListUserHierarchyGroups = "ListUserHierarchyGroups" +// ListHoursOfOperationsPages iterates over the pages of a ListHoursOfOperations operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListHoursOfOperations 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 ListHoursOfOperations operation. +// pageNum := 0 +// err := client.ListHoursOfOperationsPages(params, +// func(page *connect.ListHoursOfOperationsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *Connect) ListHoursOfOperationsPages(input *ListHoursOfOperationsInput, fn func(*ListHoursOfOperationsOutput, bool) bool) error { + return c.ListHoursOfOperationsPagesWithContext(aws.BackgroundContext(), input, fn) +} -// ListUserHierarchyGroupsRequest generates a "aws/request.Request" representing the -// client's request for the ListUserHierarchyGroups operation. The "output" return +// ListHoursOfOperationsPagesWithContext same as ListHoursOfOperationsPages 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) ListHoursOfOperationsPagesWithContext(ctx aws.Context, input *ListHoursOfOperationsInput, fn func(*ListHoursOfOperationsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListHoursOfOperationsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListHoursOfOperationsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + cont := true + for p.Next() && cont { + cont = fn(p.Page().(*ListHoursOfOperationsOutput), !p.HasNextPage()) + } + return p.Err() +} + +const opListPhoneNumbers = "ListPhoneNumbers" + +// ListPhoneNumbersRequest generates a "aws/request.Request" representing the +// client's request for the ListPhoneNumbers 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 ListUserHierarchyGroups for more information on using the ListUserHierarchyGroups +// See ListPhoneNumbers for more information on using the ListPhoneNumbers // 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 ListUserHierarchyGroupsRequest method. -// req, resp := client.ListUserHierarchyGroupsRequest(params) +// // Example sending a request using the ListPhoneNumbersRequest method. +// req, resp := client.ListPhoneNumbersRequest(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/ListUserHierarchyGroups -func (c *Connect) ListUserHierarchyGroupsRequest(input *ListUserHierarchyGroupsInput) (req *request.Request, output *ListUserHierarchyGroupsOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/ListPhoneNumbers +func (c *Connect) ListPhoneNumbersRequest(input *ListPhoneNumbersInput) (req *request.Request, output *ListPhoneNumbersOutput) { op := &request.Operation{ - Name: opListUserHierarchyGroups, + Name: opListPhoneNumbers, HTTPMethod: "GET", - HTTPPath: "/user-hierarchy-groups-summary/{InstanceId}", + HTTPPath: "/phone-numbers-summary/{InstanceId}", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, } if input == nil { - input = &ListUserHierarchyGroupsInput{} + input = &ListPhoneNumbersInput{} } - output = &ListUserHierarchyGroupsOutput{} + output = &ListPhoneNumbersOutput{} req = c.newRequest(op, input, output) return } -// ListUserHierarchyGroups API operation for Amazon Connect Service. +// ListPhoneNumbers API operation for Amazon Connect Service. // -// Returns a UserHierarchyGroupSummaryList, which is an array of HierarchyGroupSummary -// objects that contain information about the hierarchy groups in your instance. +// Provides information about the phone numbers for the specified 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 ListUserHierarchyGroups for usage and error information. +// API operation ListPhoneNumbers for usage and error information. // // Returned Error Codes: // * ErrCodeInvalidRequestException "InvalidRequestException" // The request is not valid. // // * ErrCodeInvalidParameterException "InvalidParameterException" -// One or more of the parameters provided to the operation are not valid. +// One or more of the specified parameters are not valid. // // * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The specified resource was not found. @@ -1213,87 +1325,143 @@ func (c *Connect) ListUserHierarchyGroupsRequest(input *ListUserHierarchyGroupsI // * ErrCodeInternalServiceException "InternalServiceException" // Request processing failed due to an error or failure with the service. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/ListUserHierarchyGroups -func (c *Connect) ListUserHierarchyGroups(input *ListUserHierarchyGroupsInput) (*ListUserHierarchyGroupsOutput, error) { - req, out := c.ListUserHierarchyGroupsRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/ListPhoneNumbers +func (c *Connect) ListPhoneNumbers(input *ListPhoneNumbersInput) (*ListPhoneNumbersOutput, error) { + req, out := c.ListPhoneNumbersRequest(input) return out, req.Send() } -// ListUserHierarchyGroupsWithContext is the same as ListUserHierarchyGroups with the addition of +// ListPhoneNumbersWithContext is the same as ListPhoneNumbers with the addition of // the ability to pass a context and additional request options. // -// See ListUserHierarchyGroups for details on how to use this API operation. +// See ListPhoneNumbers 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) ListUserHierarchyGroupsWithContext(ctx aws.Context, input *ListUserHierarchyGroupsInput, opts ...request.Option) (*ListUserHierarchyGroupsOutput, error) { - req, out := c.ListUserHierarchyGroupsRequest(input) +func (c *Connect) ListPhoneNumbersWithContext(ctx aws.Context, input *ListPhoneNumbersInput, opts ...request.Option) (*ListPhoneNumbersOutput, error) { + req, out := c.ListPhoneNumbersRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opListUsers = "ListUsers" +// ListPhoneNumbersPages iterates over the pages of a ListPhoneNumbers operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListPhoneNumbers 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 ListPhoneNumbers operation. +// pageNum := 0 +// err := client.ListPhoneNumbersPages(params, +// func(page *connect.ListPhoneNumbersOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *Connect) ListPhoneNumbersPages(input *ListPhoneNumbersInput, fn func(*ListPhoneNumbersOutput, bool) bool) error { + return c.ListPhoneNumbersPagesWithContext(aws.BackgroundContext(), input, fn) +} -// ListUsersRequest generates a "aws/request.Request" representing the -// client's request for the ListUsers operation. The "output" return +// ListPhoneNumbersPagesWithContext same as ListPhoneNumbersPages 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) ListPhoneNumbersPagesWithContext(ctx aws.Context, input *ListPhoneNumbersInput, fn func(*ListPhoneNumbersOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListPhoneNumbersInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListPhoneNumbersRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + cont := true + for p.Next() && cont { + cont = fn(p.Page().(*ListPhoneNumbersOutput), !p.HasNextPage()) + } + return p.Err() +} + +const opListQueues = "ListQueues" + +// ListQueuesRequest generates a "aws/request.Request" representing the +// client's request for the ListQueues 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 ListUsers for more information on using the ListUsers +// See ListQueues for more information on using the ListQueues // 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 ListUsersRequest method. -// req, resp := client.ListUsersRequest(params) +// // Example sending a request using the ListQueuesRequest method. +// req, resp := client.ListQueuesRequest(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/ListUsers -func (c *Connect) ListUsersRequest(input *ListUsersInput) (req *request.Request, output *ListUsersOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/ListQueues +func (c *Connect) ListQueuesRequest(input *ListQueuesInput) (req *request.Request, output *ListQueuesOutput) { op := &request.Operation{ - Name: opListUsers, + Name: opListQueues, HTTPMethod: "GET", - HTTPPath: "/users-summary/{InstanceId}", + HTTPPath: "/queues-summary/{InstanceId}", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, } if input == nil { - input = &ListUsersInput{} + input = &ListQueuesInput{} } - output = &ListUsersOutput{} + output = &ListQueuesOutput{} req = c.newRequest(op, input, output) return } -// ListUsers API operation for Amazon Connect Service. +// ListQueues API operation for Amazon Connect Service. // -// Returns a UserSummaryList, which is an array of UserSummary objects. +// Provides information about the queues for the specified 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 ListUsers for usage and error information. +// API operation ListQueues for usage and error information. // // Returned Error Codes: // * ErrCodeInvalidRequestException "InvalidRequestException" // The request is not valid. // // * ErrCodeInvalidParameterException "InvalidParameterException" -// One or more of the parameters provided to the operation are not valid. +// One or more of the specified parameters are not valid. // // * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The specified resource was not found. @@ -1304,398 +1472,440 @@ func (c *Connect) ListUsersRequest(input *ListUsersInput) (req *request.Request, // * ErrCodeInternalServiceException "InternalServiceException" // Request processing failed due to an error or failure with the service. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/ListUsers -func (c *Connect) ListUsers(input *ListUsersInput) (*ListUsersOutput, error) { - req, out := c.ListUsersRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/ListQueues +func (c *Connect) ListQueues(input *ListQueuesInput) (*ListQueuesOutput, error) { + req, out := c.ListQueuesRequest(input) return out, req.Send() } -// ListUsersWithContext is the same as ListUsers with the addition of +// ListQueuesWithContext is the same as ListQueues with the addition of // the ability to pass a context and additional request options. // -// See ListUsers for details on how to use this API operation. +// See ListQueues 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) ListUsersWithContext(ctx aws.Context, input *ListUsersInput, opts ...request.Option) (*ListUsersOutput, error) { - req, out := c.ListUsersRequest(input) +func (c *Connect) ListQueuesWithContext(ctx aws.Context, input *ListQueuesInput, opts ...request.Option) (*ListQueuesOutput, error) { + req, out := c.ListQueuesRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opStartOutboundVoiceContact = "StartOutboundVoiceContact" - -// StartOutboundVoiceContactRequest generates a "aws/request.Request" representing the -// client's request for the StartOutboundVoiceContact 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. +// ListQueuesPages iterates over the pages of a ListQueues operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. // -// See StartOutboundVoiceContact for more information on using the StartOutboundVoiceContact -// API call, and error handling. +// See ListQueues method for more information on how to use this operation. // -// 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. +// Note: This operation can generate multiple requests to a service. // +// // Example iterating over at most 3 pages of a ListQueues operation. +// pageNum := 0 +// err := client.ListQueuesPages(params, +// func(page *connect.ListQueuesOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) // -// // Example sending a request using the StartOutboundVoiceContactRequest method. -// req, resp := client.StartOutboundVoiceContactRequest(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/StartOutboundVoiceContact -func (c *Connect) StartOutboundVoiceContactRequest(input *StartOutboundVoiceContactInput) (req *request.Request, output *StartOutboundVoiceContactOutput) { - op := &request.Operation{ - Name: opStartOutboundVoiceContact, - HTTPMethod: "PUT", - HTTPPath: "/contact/outbound-voice", - } - - if input == nil { - input = &StartOutboundVoiceContactInput{} - } - - output = &StartOutboundVoiceContactOutput{} - req = c.newRequest(op, input, output) - return -} - -// StartOutboundVoiceContact API operation for Amazon Connect Service. -// -// The StartOutboundVoiceContact operation initiates a contact flow to place -// an outbound call to a customer. -// -// If you are using an IAM account, it must have permission to the connect:StartOutboundVoiceContact -// action. -// -// There is a 60 second dialing timeout for this operation. If the call is not -// connected after 60 seconds, the call fails. -// -// 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 StartOutboundVoiceContact for usage and error information. -// -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" -// The request is not valid. -// -// * ErrCodeInvalidParameterException "InvalidParameterException" -// One or more of the parameters provided to the operation are not valid. -// -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" -// The specified resource was not found. -// -// * ErrCodeInternalServiceException "InternalServiceException" -// Request processing failed due to an error or failure with the service. -// -// * ErrCodeLimitExceededException "LimitExceededException" -// The allowed limit for the resource has been reached. -// -// * ErrCodeDestinationNotAllowedException "DestinationNotAllowedException" -// Outbound calls to the destination number are not allowed. -// -// * ErrCodeOutboundContactNotPermittedException "OutboundContactNotPermittedException" -// The contact is not permitted. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/StartOutboundVoiceContact -func (c *Connect) StartOutboundVoiceContact(input *StartOutboundVoiceContactInput) (*StartOutboundVoiceContactOutput, error) { - req, out := c.StartOutboundVoiceContactRequest(input) - return out, req.Send() -} - -// StartOutboundVoiceContactWithContext is the same as StartOutboundVoiceContact with the addition of -// the ability to pass a context and additional request options. -// -// See StartOutboundVoiceContact for details on how to use this API operation. +func (c *Connect) ListQueuesPages(input *ListQueuesInput, fn func(*ListQueuesOutput, bool) bool) error { + return c.ListQueuesPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListQueuesPagesWithContext same as ListQueuesPages 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) StartOutboundVoiceContactWithContext(ctx aws.Context, input *StartOutboundVoiceContactInput, opts ...request.Option) (*StartOutboundVoiceContactOutput, error) { - req, out := c.StartOutboundVoiceContactRequest(input) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return out, req.Send() +func (c *Connect) ListQueuesPagesWithContext(ctx aws.Context, input *ListQueuesInput, fn func(*ListQueuesOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListQueuesInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListQueuesRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + cont := true + for p.Next() && cont { + cont = fn(p.Page().(*ListQueuesOutput), !p.HasNextPage()) + } + return p.Err() } -const opStopContact = "StopContact" +const opListRoutingProfiles = "ListRoutingProfiles" -// StopContactRequest generates a "aws/request.Request" representing the -// client's request for the StopContact operation. The "output" return +// ListRoutingProfilesRequest generates a "aws/request.Request" representing the +// client's request for the ListRoutingProfiles 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 StopContact for more information on using the StopContact +// See ListRoutingProfiles for more information on using the ListRoutingProfiles // 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 StopContactRequest method. -// req, resp := client.StopContactRequest(params) +// // Example sending a request using the ListRoutingProfilesRequest method. +// req, resp := client.ListRoutingProfilesRequest(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/StopContact -func (c *Connect) StopContactRequest(input *StopContactInput) (req *request.Request, output *StopContactOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/ListRoutingProfiles +func (c *Connect) ListRoutingProfilesRequest(input *ListRoutingProfilesInput) (req *request.Request, output *ListRoutingProfilesOutput) { op := &request.Operation{ - Name: opStopContact, - HTTPMethod: "POST", - HTTPPath: "/contact/stop", + Name: opListRoutingProfiles, + HTTPMethod: "GET", + HTTPPath: "/routing-profiles-summary/{InstanceId}", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, } if input == nil { - input = &StopContactInput{} + input = &ListRoutingProfilesInput{} } - output = &StopContactOutput{} + output = &ListRoutingProfilesOutput{} req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// StopContact API operation for Amazon Connect Service. -// -// Ends the contact initiated by the StartOutboundVoiceContact operation. +// ListRoutingProfiles API operation for Amazon Connect Service. // -// If you are using an IAM account, it must have permission to the connect:StopContact -// action. +// Provides summary information about the routing profiles for the specified +// 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 StopContact for usage and error information. +// API operation ListRoutingProfiles for usage and error information. // // Returned Error Codes: // * ErrCodeInvalidRequestException "InvalidRequestException" // The request is not valid. // -// * ErrCodeContactNotFoundException "ContactNotFoundException" -// The contact with the specified ID is not active or does not exist. -// // * ErrCodeInvalidParameterException "InvalidParameterException" -// One or more of the parameters provided to the operation are not valid. +// One or more of the specified parameters are not valid. // // * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The specified resource was not found. // +// * ErrCodeThrottlingException "ThrottlingException" +// The throttling limit has been exceeded. +// // * ErrCodeInternalServiceException "InternalServiceException" // Request processing failed due to an error or failure with the service. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/StopContact -func (c *Connect) StopContact(input *StopContactInput) (*StopContactOutput, error) { - req, out := c.StopContactRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/ListRoutingProfiles +func (c *Connect) ListRoutingProfiles(input *ListRoutingProfilesInput) (*ListRoutingProfilesOutput, error) { + req, out := c.ListRoutingProfilesRequest(input) return out, req.Send() } -// StopContactWithContext is the same as StopContact with the addition of +// ListRoutingProfilesWithContext is the same as ListRoutingProfiles with the addition of // the ability to pass a context and additional request options. // -// See StopContact for details on how to use this API operation. +// See ListRoutingProfiles 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) StopContactWithContext(ctx aws.Context, input *StopContactInput, opts ...request.Option) (*StopContactOutput, error) { - req, out := c.StopContactRequest(input) +func (c *Connect) ListRoutingProfilesWithContext(ctx aws.Context, input *ListRoutingProfilesInput, opts ...request.Option) (*ListRoutingProfilesOutput, error) { + req, out := c.ListRoutingProfilesRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opUpdateContactAttributes = "UpdateContactAttributes" +// ListRoutingProfilesPages iterates over the pages of a ListRoutingProfiles operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListRoutingProfiles 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 ListRoutingProfiles operation. +// pageNum := 0 +// err := client.ListRoutingProfilesPages(params, +// func(page *connect.ListRoutingProfilesOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *Connect) ListRoutingProfilesPages(input *ListRoutingProfilesInput, fn func(*ListRoutingProfilesOutput, bool) bool) error { + return c.ListRoutingProfilesPagesWithContext(aws.BackgroundContext(), input, fn) +} -// UpdateContactAttributesRequest generates a "aws/request.Request" representing the -// client's request for the UpdateContactAttributes operation. The "output" return +// ListRoutingProfilesPagesWithContext same as ListRoutingProfilesPages 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) ListRoutingProfilesPagesWithContext(ctx aws.Context, input *ListRoutingProfilesInput, fn func(*ListRoutingProfilesOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListRoutingProfilesInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListRoutingProfilesRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + cont := true + for p.Next() && cont { + cont = fn(p.Page().(*ListRoutingProfilesOutput), !p.HasNextPage()) + } + return p.Err() +} + +const opListSecurityProfiles = "ListSecurityProfiles" + +// ListSecurityProfilesRequest generates a "aws/request.Request" representing the +// client's request for the ListSecurityProfiles 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 UpdateContactAttributes for more information on using the UpdateContactAttributes +// See ListSecurityProfiles for more information on using the ListSecurityProfiles // 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 UpdateContactAttributesRequest method. -// req, resp := client.UpdateContactAttributesRequest(params) +// // Example sending a request using the ListSecurityProfilesRequest method. +// req, resp := client.ListSecurityProfilesRequest(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/UpdateContactAttributes -func (c *Connect) UpdateContactAttributesRequest(input *UpdateContactAttributesInput) (req *request.Request, output *UpdateContactAttributesOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/ListSecurityProfiles +func (c *Connect) ListSecurityProfilesRequest(input *ListSecurityProfilesInput) (req *request.Request, output *ListSecurityProfilesOutput) { op := &request.Operation{ - Name: opUpdateContactAttributes, - HTTPMethod: "POST", - HTTPPath: "/contact/attributes", + Name: opListSecurityProfiles, + HTTPMethod: "GET", + HTTPPath: "/security-profiles-summary/{InstanceId}", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, } if input == nil { - input = &UpdateContactAttributesInput{} + input = &ListSecurityProfilesInput{} } - output = &UpdateContactAttributesOutput{} + output = &ListSecurityProfilesOutput{} req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// UpdateContactAttributes API operation for Amazon Connect Service. -// -// The UpdateContactAttributes operation lets you programmatically create new, -// or update existing, contact attributes associated with a contact. You can -// use the operation to add or update attributes for both ongoing and completed -// contacts. For example, you can update the customer's name or the reason the -// customer called while the call is active, or add notes about steps that the -// agent took during the call that are displayed to the next agent that takes -// the call. You can also use the UpdateContactAttributes operation to update -// attributes for a contact using data from your CRM application and save the -// data with the contact in Amazon Connect. You could also flag calls for additional -// analysis, such as legal review or identifying abusive callers. -// -// Contact attributes are available in Amazon Connect for 24 months, and are -// then deleted. -// -// Important: +// ListSecurityProfiles API operation for Amazon Connect Service. // -// You cannot use the operation to update attributes for contacts that occurred -// prior to the release of the API, September 12, 2018. You can update attributes -// only for contacts that started after the release of the API. If you attempt -// to update attributes for a contact that occurred prior to the release of -// the API, a 400 error is returned. This applies also to queued callbacks that -// were initiated prior to the release of the API but are still active in your -// instance. +// Provides summary information about the security profiles for the specified +// 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 UpdateContactAttributes for usage and error information. +// API operation ListSecurityProfiles for usage and error information. // // Returned Error Codes: // * ErrCodeInvalidRequestException "InvalidRequestException" // The request is not valid. // // * ErrCodeInvalidParameterException "InvalidParameterException" -// One or more of the parameters provided to the operation are not valid. +// One or more of the specified parameters are not valid. // // * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The specified resource was not found. // +// * ErrCodeThrottlingException "ThrottlingException" +// The throttling limit has been exceeded. +// // * ErrCodeInternalServiceException "InternalServiceException" // Request processing failed due to an error or failure with the service. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/UpdateContactAttributes -func (c *Connect) UpdateContactAttributes(input *UpdateContactAttributesInput) (*UpdateContactAttributesOutput, error) { - req, out := c.UpdateContactAttributesRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/ListSecurityProfiles +func (c *Connect) ListSecurityProfiles(input *ListSecurityProfilesInput) (*ListSecurityProfilesOutput, error) { + req, out := c.ListSecurityProfilesRequest(input) return out, req.Send() } -// UpdateContactAttributesWithContext is the same as UpdateContactAttributes with the addition of +// ListSecurityProfilesWithContext is the same as ListSecurityProfiles with the addition of // the ability to pass a context and additional request options. // -// See UpdateContactAttributes for details on how to use this API operation. +// See ListSecurityProfiles 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) UpdateContactAttributesWithContext(ctx aws.Context, input *UpdateContactAttributesInput, opts ...request.Option) (*UpdateContactAttributesOutput, error) { - req, out := c.UpdateContactAttributesRequest(input) +func (c *Connect) ListSecurityProfilesWithContext(ctx aws.Context, input *ListSecurityProfilesInput, opts ...request.Option) (*ListSecurityProfilesOutput, error) { + req, out := c.ListSecurityProfilesRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opUpdateUserHierarchy = "UpdateUserHierarchy" - -// UpdateUserHierarchyRequest generates a "aws/request.Request" representing the -// client's request for the UpdateUserHierarchy operation. The "output" return -// value will be populated with the request's response once the request completes -// successfully. +// ListSecurityProfilesPages iterates over the pages of a ListSecurityProfiles operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. // -// 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 ListSecurityProfiles method for more information on how to use this operation. // -// See UpdateUserHierarchy for more information on using the UpdateUserHierarchy -// API call, and error handling. +// Note: This operation can generate multiple requests to a service. // -// This method is useful when you want to inject custom logic or configuration +// // Example iterating over at most 3 pages of a ListSecurityProfiles operation. +// pageNum := 0 +// err := client.ListSecurityProfilesPages(params, +// func(page *connect.ListSecurityProfilesOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *Connect) ListSecurityProfilesPages(input *ListSecurityProfilesInput, fn func(*ListSecurityProfilesOutput, bool) bool) error { + return c.ListSecurityProfilesPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListSecurityProfilesPagesWithContext same as ListSecurityProfilesPages 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) ListSecurityProfilesPagesWithContext(ctx aws.Context, input *ListSecurityProfilesInput, fn func(*ListSecurityProfilesOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListSecurityProfilesInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListSecurityProfilesRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + cont := true + for p.Next() && cont { + cont = fn(p.Page().(*ListSecurityProfilesOutput), !p.HasNextPage()) + } + return p.Err() +} + +const opListUserHierarchyGroups = "ListUserHierarchyGroups" + +// ListUserHierarchyGroupsRequest generates a "aws/request.Request" representing the +// client's request for the ListUserHierarchyGroups 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 ListUserHierarchyGroups for more information on using the ListUserHierarchyGroups +// 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 UpdateUserHierarchyRequest method. -// req, resp := client.UpdateUserHierarchyRequest(params) +// // Example sending a request using the ListUserHierarchyGroupsRequest method. +// req, resp := client.ListUserHierarchyGroupsRequest(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/UpdateUserHierarchy -func (c *Connect) UpdateUserHierarchyRequest(input *UpdateUserHierarchyInput) (req *request.Request, output *UpdateUserHierarchyOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/ListUserHierarchyGroups +func (c *Connect) ListUserHierarchyGroupsRequest(input *ListUserHierarchyGroupsInput) (req *request.Request, output *ListUserHierarchyGroupsOutput) { op := &request.Operation{ - Name: opUpdateUserHierarchy, - HTTPMethod: "POST", - HTTPPath: "/users/{InstanceId}/{UserId}/hierarchy", + Name: opListUserHierarchyGroups, + HTTPMethod: "GET", + HTTPPath: "/user-hierarchy-groups-summary/{InstanceId}", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, } if input == nil { - input = &UpdateUserHierarchyInput{} + input = &ListUserHierarchyGroupsInput{} } - output = &UpdateUserHierarchyOutput{} + output = &ListUserHierarchyGroupsOutput{} req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// UpdateUserHierarchy API operation for Amazon Connect Service. +// ListUserHierarchyGroups API operation for Amazon Connect Service. // -// Assigns the specified hierarchy group to the user. +// Provides summary information about the hierarchy groups for the specified +// 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 UpdateUserHierarchy for usage and error information. +// API operation ListUserHierarchyGroups for usage and error information. // // Returned Error Codes: // * ErrCodeInvalidRequestException "InvalidRequestException" // The request is not valid. // // * ErrCodeInvalidParameterException "InvalidParameterException" -// One or more of the parameters provided to the operation are not valid. +// One or more of the specified parameters are not valid. // // * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The specified resource was not found. @@ -1706,89 +1916,144 @@ func (c *Connect) UpdateUserHierarchyRequest(input *UpdateUserHierarchyInput) (r // * ErrCodeInternalServiceException "InternalServiceException" // Request processing failed due to an error or failure with the service. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/UpdateUserHierarchy -func (c *Connect) UpdateUserHierarchy(input *UpdateUserHierarchyInput) (*UpdateUserHierarchyOutput, error) { - req, out := c.UpdateUserHierarchyRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/ListUserHierarchyGroups +func (c *Connect) ListUserHierarchyGroups(input *ListUserHierarchyGroupsInput) (*ListUserHierarchyGroupsOutput, error) { + req, out := c.ListUserHierarchyGroupsRequest(input) return out, req.Send() } -// UpdateUserHierarchyWithContext is the same as UpdateUserHierarchy with the addition of +// ListUserHierarchyGroupsWithContext is the same as ListUserHierarchyGroups with the addition of // the ability to pass a context and additional request options. // -// See UpdateUserHierarchy for details on how to use this API operation. +// See ListUserHierarchyGroups 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) UpdateUserHierarchyWithContext(ctx aws.Context, input *UpdateUserHierarchyInput, opts ...request.Option) (*UpdateUserHierarchyOutput, error) { - req, out := c.UpdateUserHierarchyRequest(input) +func (c *Connect) ListUserHierarchyGroupsWithContext(ctx aws.Context, input *ListUserHierarchyGroupsInput, opts ...request.Option) (*ListUserHierarchyGroupsOutput, error) { + req, out := c.ListUserHierarchyGroupsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opUpdateUserIdentityInfo = "UpdateUserIdentityInfo" +// ListUserHierarchyGroupsPages iterates over the pages of a ListUserHierarchyGroups operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListUserHierarchyGroups 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 ListUserHierarchyGroups operation. +// pageNum := 0 +// err := client.ListUserHierarchyGroupsPages(params, +// func(page *connect.ListUserHierarchyGroupsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *Connect) ListUserHierarchyGroupsPages(input *ListUserHierarchyGroupsInput, fn func(*ListUserHierarchyGroupsOutput, bool) bool) error { + return c.ListUserHierarchyGroupsPagesWithContext(aws.BackgroundContext(), input, fn) +} -// UpdateUserIdentityInfoRequest generates a "aws/request.Request" representing the -// client's request for the UpdateUserIdentityInfo operation. The "output" return +// ListUserHierarchyGroupsPagesWithContext same as ListUserHierarchyGroupsPages 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) ListUserHierarchyGroupsPagesWithContext(ctx aws.Context, input *ListUserHierarchyGroupsInput, fn func(*ListUserHierarchyGroupsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListUserHierarchyGroupsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListUserHierarchyGroupsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + cont := true + for p.Next() && cont { + cont = fn(p.Page().(*ListUserHierarchyGroupsOutput), !p.HasNextPage()) + } + return p.Err() +} + +const opListUsers = "ListUsers" + +// ListUsersRequest generates a "aws/request.Request" representing the +// client's request for the ListUsers 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 UpdateUserIdentityInfo for more information on using the UpdateUserIdentityInfo +// See ListUsers for more information on using the ListUsers // 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 UpdateUserIdentityInfoRequest method. -// req, resp := client.UpdateUserIdentityInfoRequest(params) +// // Example sending a request using the ListUsersRequest method. +// req, resp := client.ListUsersRequest(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/UpdateUserIdentityInfo -func (c *Connect) UpdateUserIdentityInfoRequest(input *UpdateUserIdentityInfoInput) (req *request.Request, output *UpdateUserIdentityInfoOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/ListUsers +func (c *Connect) ListUsersRequest(input *ListUsersInput) (req *request.Request, output *ListUsersOutput) { op := &request.Operation{ - Name: opUpdateUserIdentityInfo, - HTTPMethod: "POST", - HTTPPath: "/users/{InstanceId}/{UserId}/identity-info", + Name: opListUsers, + HTTPMethod: "GET", + HTTPPath: "/users-summary/{InstanceId}", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, } if input == nil { - input = &UpdateUserIdentityInfoInput{} + input = &ListUsersInput{} } - output = &UpdateUserIdentityInfoOutput{} + output = &ListUsersOutput{} req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// UpdateUserIdentityInfo API operation for Amazon Connect Service. +// ListUsers API operation for Amazon Connect Service. // -// Updates the identity information for the specified user in a UserIdentityInfo -// object, including email, first name, and last name. +// Provides summary information about the users for the specified 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 UpdateUserIdentityInfo for usage and error information. +// API operation ListUsers for usage and error information. // // Returned Error Codes: // * ErrCodeInvalidRequestException "InvalidRequestException" // The request is not valid. // // * ErrCodeInvalidParameterException "InvalidParameterException" -// One or more of the parameters provided to the operation are not valid. +// One or more of the specified parameters are not valid. // // * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The specified resource was not found. @@ -1799,396 +2064,975 @@ func (c *Connect) UpdateUserIdentityInfoRequest(input *UpdateUserIdentityInfoInp // * ErrCodeInternalServiceException "InternalServiceException" // Request processing failed due to an error or failure with the service. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/UpdateUserIdentityInfo -func (c *Connect) UpdateUserIdentityInfo(input *UpdateUserIdentityInfoInput) (*UpdateUserIdentityInfoOutput, error) { - req, out := c.UpdateUserIdentityInfoRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/ListUsers +func (c *Connect) ListUsers(input *ListUsersInput) (*ListUsersOutput, error) { + req, out := c.ListUsersRequest(input) return out, req.Send() } -// UpdateUserIdentityInfoWithContext is the same as UpdateUserIdentityInfo with the addition of +// ListUsersWithContext is the same as ListUsers with the addition of // the ability to pass a context and additional request options. // -// See UpdateUserIdentityInfo for details on how to use this API operation. +// See ListUsers 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) UpdateUserIdentityInfoWithContext(ctx aws.Context, input *UpdateUserIdentityInfoInput, opts ...request.Option) (*UpdateUserIdentityInfoOutput, error) { - req, out := c.UpdateUserIdentityInfoRequest(input) +func (c *Connect) ListUsersWithContext(ctx aws.Context, input *ListUsersInput, opts ...request.Option) (*ListUsersOutput, error) { + req, out := c.ListUsersRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opUpdateUserPhoneConfig = "UpdateUserPhoneConfig" +// ListUsersPages iterates over the pages of a ListUsers operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListUsers 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 ListUsers operation. +// pageNum := 0 +// err := client.ListUsersPages(params, +// func(page *connect.ListUsersOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *Connect) ListUsersPages(input *ListUsersInput, fn func(*ListUsersOutput, bool) bool) error { + return c.ListUsersPagesWithContext(aws.BackgroundContext(), input, fn) +} -// UpdateUserPhoneConfigRequest generates a "aws/request.Request" representing the -// client's request for the UpdateUserPhoneConfig operation. The "output" return +// ListUsersPagesWithContext same as ListUsersPages 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) ListUsersPagesWithContext(ctx aws.Context, input *ListUsersInput, fn func(*ListUsersOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListUsersInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListUsersRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + cont := true + for p.Next() && cont { + cont = fn(p.Page().(*ListUsersOutput), !p.HasNextPage()) + } + return p.Err() +} + +const opStartOutboundVoiceContact = "StartOutboundVoiceContact" + +// StartOutboundVoiceContactRequest generates a "aws/request.Request" representing the +// client's request for the StartOutboundVoiceContact 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 UpdateUserPhoneConfig for more information on using the UpdateUserPhoneConfig +// See StartOutboundVoiceContact for more information on using the StartOutboundVoiceContact // 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 UpdateUserPhoneConfigRequest method. -// req, resp := client.UpdateUserPhoneConfigRequest(params) +// // Example sending a request using the StartOutboundVoiceContactRequest method. +// req, resp := client.StartOutboundVoiceContactRequest(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/UpdateUserPhoneConfig -func (c *Connect) UpdateUserPhoneConfigRequest(input *UpdateUserPhoneConfigInput) (req *request.Request, output *UpdateUserPhoneConfigOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/StartOutboundVoiceContact +func (c *Connect) StartOutboundVoiceContactRequest(input *StartOutboundVoiceContactInput) (req *request.Request, output *StartOutboundVoiceContactOutput) { op := &request.Operation{ - Name: opUpdateUserPhoneConfig, - HTTPMethod: "POST", - HTTPPath: "/users/{InstanceId}/{UserId}/phone-config", + Name: opStartOutboundVoiceContact, + HTTPMethod: "PUT", + HTTPPath: "/contact/outbound-voice", } if input == nil { - input = &UpdateUserPhoneConfigInput{} + input = &StartOutboundVoiceContactInput{} } - output = &UpdateUserPhoneConfigOutput{} + output = &StartOutboundVoiceContactOutput{} req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// UpdateUserPhoneConfig API operation for Amazon Connect Service. +// StartOutboundVoiceContact API operation for Amazon Connect Service. +// +// Initiates a contact flow to place an outbound call to a customer. // -// Updates the phone configuration settings in the UserPhoneConfig object for -// the specified user. +// There is a 60 second dialing timeout for this operation. If the call is not +// connected after 60 seconds, it fails. // // 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 UpdateUserPhoneConfig for usage and error information. +// API operation StartOutboundVoiceContact for usage and error information. // // Returned Error Codes: // * ErrCodeInvalidRequestException "InvalidRequestException" // The request is not valid. // // * ErrCodeInvalidParameterException "InvalidParameterException" -// One or more of the parameters provided to the operation are not valid. +// One or more of the specified parameters are not valid. // // * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The specified resource was not found. // -// * ErrCodeThrottlingException "ThrottlingException" -// The throttling limit has been exceeded. -// // * ErrCodeInternalServiceException "InternalServiceException" // Request processing failed due to an error or failure with the service. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/UpdateUserPhoneConfig -func (c *Connect) UpdateUserPhoneConfig(input *UpdateUserPhoneConfigInput) (*UpdateUserPhoneConfigOutput, error) { - req, out := c.UpdateUserPhoneConfigRequest(input) +// * ErrCodeLimitExceededException "LimitExceededException" +// The allowed limit for the resource has been exceeded. +// +// * ErrCodeDestinationNotAllowedException "DestinationNotAllowedException" +// Outbound calls to the destination number are not allowed. +// +// * ErrCodeOutboundContactNotPermittedException "OutboundContactNotPermittedException" +// The contact is not permitted. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/StartOutboundVoiceContact +func (c *Connect) StartOutboundVoiceContact(input *StartOutboundVoiceContactInput) (*StartOutboundVoiceContactOutput, error) { + req, out := c.StartOutboundVoiceContactRequest(input) return out, req.Send() } -// UpdateUserPhoneConfigWithContext is the same as UpdateUserPhoneConfig with the addition of +// StartOutboundVoiceContactWithContext is the same as StartOutboundVoiceContact with the addition of // the ability to pass a context and additional request options. // -// See UpdateUserPhoneConfig for details on how to use this API operation. +// See StartOutboundVoiceContact 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) UpdateUserPhoneConfigWithContext(ctx aws.Context, input *UpdateUserPhoneConfigInput, opts ...request.Option) (*UpdateUserPhoneConfigOutput, error) { - req, out := c.UpdateUserPhoneConfigRequest(input) +func (c *Connect) StartOutboundVoiceContactWithContext(ctx aws.Context, input *StartOutboundVoiceContactInput, opts ...request.Option) (*StartOutboundVoiceContactOutput, error) { + req, out := c.StartOutboundVoiceContactRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opUpdateUserRoutingProfile = "UpdateUserRoutingProfile" +const opStopContact = "StopContact" -// UpdateUserRoutingProfileRequest generates a "aws/request.Request" representing the -// client's request for the UpdateUserRoutingProfile operation. The "output" return +// StopContactRequest generates a "aws/request.Request" representing the +// client's request for the StopContact 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 UpdateUserRoutingProfile for more information on using the UpdateUserRoutingProfile +// See StopContact for more information on using the StopContact // 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 UpdateUserRoutingProfileRequest method. -// req, resp := client.UpdateUserRoutingProfileRequest(params) +// // Example sending a request using the StopContactRequest method. +// req, resp := client.StopContactRequest(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/UpdateUserRoutingProfile -func (c *Connect) UpdateUserRoutingProfileRequest(input *UpdateUserRoutingProfileInput) (req *request.Request, output *UpdateUserRoutingProfileOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/StopContact +func (c *Connect) StopContactRequest(input *StopContactInput) (req *request.Request, output *StopContactOutput) { op := &request.Operation{ - Name: opUpdateUserRoutingProfile, + Name: opStopContact, HTTPMethod: "POST", - HTTPPath: "/users/{InstanceId}/{UserId}/routing-profile", + HTTPPath: "/contact/stop", } if input == nil { - input = &UpdateUserRoutingProfileInput{} + input = &StopContactInput{} } - output = &UpdateUserRoutingProfileOutput{} + output = &StopContactOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// UpdateUserRoutingProfile API operation for Amazon Connect Service. +// StopContact API operation for Amazon Connect Service. // -// Assigns the specified routing profile to a user. +// Ends the specified contact. // // 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 UpdateUserRoutingProfile for usage and error information. +// API operation StopContact for usage and error information. // // Returned Error Codes: // * ErrCodeInvalidRequestException "InvalidRequestException" // The request is not valid. // +// * ErrCodeContactNotFoundException "ContactNotFoundException" +// The contact with the specified ID is not active or does not exist. +// // * ErrCodeInvalidParameterException "InvalidParameterException" -// One or more of the parameters provided to the operation are not valid. +// One or more of the specified parameters are not valid. // // * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The specified resource was not found. // -// * ErrCodeThrottlingException "ThrottlingException" -// The throttling limit has been exceeded. -// // * ErrCodeInternalServiceException "InternalServiceException" // Request processing failed due to an error or failure with the service. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/UpdateUserRoutingProfile -func (c *Connect) UpdateUserRoutingProfile(input *UpdateUserRoutingProfileInput) (*UpdateUserRoutingProfileOutput, error) { - req, out := c.UpdateUserRoutingProfileRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/StopContact +func (c *Connect) StopContact(input *StopContactInput) (*StopContactOutput, error) { + req, out := c.StopContactRequest(input) return out, req.Send() } -// UpdateUserRoutingProfileWithContext is the same as UpdateUserRoutingProfile with the addition of +// StopContactWithContext is the same as StopContact with the addition of // the ability to pass a context and additional request options. // -// See UpdateUserRoutingProfile for details on how to use this API operation. +// See StopContact 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) UpdateUserRoutingProfileWithContext(ctx aws.Context, input *UpdateUserRoutingProfileInput, opts ...request.Option) (*UpdateUserRoutingProfileOutput, error) { - req, out := c.UpdateUserRoutingProfileRequest(input) +func (c *Connect) StopContactWithContext(ctx aws.Context, input *StopContactInput, opts ...request.Option) (*StopContactOutput, error) { + req, out := c.StopContactRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opUpdateUserSecurityProfiles = "UpdateUserSecurityProfiles" +const opUpdateContactAttributes = "UpdateContactAttributes" -// UpdateUserSecurityProfilesRequest generates a "aws/request.Request" representing the -// client's request for the UpdateUserSecurityProfiles operation. The "output" return +// UpdateContactAttributesRequest generates a "aws/request.Request" representing the +// client's request for the UpdateContactAttributes 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 UpdateUserSecurityProfiles for more information on using the UpdateUserSecurityProfiles +// See UpdateContactAttributes for more information on using the UpdateContactAttributes // 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 UpdateUserSecurityProfilesRequest method. -// req, resp := client.UpdateUserSecurityProfilesRequest(params) +// // Example sending a request using the UpdateContactAttributesRequest method. +// req, resp := client.UpdateContactAttributesRequest(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/UpdateUserSecurityProfiles -func (c *Connect) UpdateUserSecurityProfilesRequest(input *UpdateUserSecurityProfilesInput) (req *request.Request, output *UpdateUserSecurityProfilesOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/UpdateContactAttributes +func (c *Connect) UpdateContactAttributesRequest(input *UpdateContactAttributesInput) (req *request.Request, output *UpdateContactAttributesOutput) { op := &request.Operation{ - Name: opUpdateUserSecurityProfiles, + Name: opUpdateContactAttributes, HTTPMethod: "POST", - HTTPPath: "/users/{InstanceId}/{UserId}/security-profiles", + HTTPPath: "/contact/attributes", } if input == nil { - input = &UpdateUserSecurityProfilesInput{} + input = &UpdateContactAttributesInput{} } - output = &UpdateUserSecurityProfilesOutput{} + output = &UpdateContactAttributesOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// UpdateUserSecurityProfiles API operation for Amazon Connect Service. +// UpdateContactAttributes API operation for Amazon Connect Service. +// +// Creates or updates the contact attributes associated with the specified contact. +// +// You can add or update attributes for both ongoing and completed contacts. +// For example, you can update the customer's name or the reason the customer +// called while the call is active, or add notes about steps that the agent +// took during the call that are displayed to the next agent that takes the +// call. You can also update attributes for a contact using data from your CRM +// application and save the data with the contact in Amazon Connect. You could +// also flag calls for additional analysis, such as legal review or identifying +// abusive callers. // -// Updates the security profiles assigned to the user. +// Contact attributes are available in Amazon Connect for 24 months, and are +// then deleted. +// +// Important: You cannot use the operation to update attributes for contacts +// that occurred prior to the release of the API, September 12, 2018. You can +// update attributes only for contacts that started after the release of the +// API. If you attempt to update attributes for a contact that occurred prior +// to the release of the API, a 400 error is returned. This applies also to +// queued callbacks that were initiated prior to the release of the API but +// are still active in your 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 UpdateUserSecurityProfiles for usage and error information. +// API operation UpdateContactAttributes for usage and error information. // // Returned Error Codes: // * ErrCodeInvalidRequestException "InvalidRequestException" // The request is not valid. // // * ErrCodeInvalidParameterException "InvalidParameterException" -// One or more of the parameters provided to the operation are not valid. +// One or more of the specified parameters are not valid. // // * ErrCodeResourceNotFoundException "ResourceNotFoundException" // The specified resource was not found. // -// * ErrCodeThrottlingException "ThrottlingException" -// The throttling limit has been exceeded. -// // * ErrCodeInternalServiceException "InternalServiceException" // Request processing failed due to an error or failure with the service. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/UpdateUserSecurityProfiles -func (c *Connect) UpdateUserSecurityProfiles(input *UpdateUserSecurityProfilesInput) (*UpdateUserSecurityProfilesOutput, error) { - req, out := c.UpdateUserSecurityProfilesRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/UpdateContactAttributes +func (c *Connect) UpdateContactAttributes(input *UpdateContactAttributesInput) (*UpdateContactAttributesOutput, error) { + req, out := c.UpdateContactAttributesRequest(input) return out, req.Send() } -// UpdateUserSecurityProfilesWithContext is the same as UpdateUserSecurityProfiles with the addition of +// UpdateContactAttributesWithContext is the same as UpdateContactAttributes with the addition of // the ability to pass a context and additional request options. // -// See UpdateUserSecurityProfiles for details on how to use this API operation. +// See UpdateContactAttributes 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) UpdateUserSecurityProfilesWithContext(ctx aws.Context, input *UpdateUserSecurityProfilesInput, opts ...request.Option) (*UpdateUserSecurityProfilesOutput, error) { - req, out := c.UpdateUserSecurityProfilesRequest(input) +func (c *Connect) UpdateContactAttributesWithContext(ctx aws.Context, input *UpdateContactAttributesInput, opts ...request.Option) (*UpdateContactAttributesOutput, error) { + req, out := c.UpdateContactAttributesRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -type CreateUserInput struct { - _ struct{} `type:"structure"` - - // The unique identifier for the user account in the directory service directory - // used for identity management. If Amazon Connect is unable to access the existing - // directory, you can use the DirectoryUserId to authenticate users. If you - // include the parameter, it is assumed that Amazon Connect cannot access the - // directory. If the parameter is not included, the UserIdentityInfo is used - // to authenticate users from your existing directory. - // - // This parameter is required if you are using an existing directory for identity - // management in Amazon Connect when Amazon Connect cannot access your directory - // to authenticate users. If you are using SAML for identity management and - // include this parameter, an InvalidRequestException is returned. - DirectoryUserId *string `type:"string"` - - // The unique identifier for the hierarchy group to assign to the user created. - HierarchyGroupId *string `type:"string"` - - // Information about the user, including email address, first name, and last - // name. - IdentityInfo *UserIdentityInfo `type:"structure"` - - // The identifier for your Amazon Connect instance. To find the ID of your instance, - // open the AWS console and select Amazon Connect. Select the alias of the instance - // in the Instance alias column. The instance ID is displayed in the Overview - // section of your instance settings. For example, the instance ID is the set - // of characters at the end of the instance ARN, after instance/, such as 10a4c4eb-f57e-4d4c-b602-bf39176ced07. - // - // InstanceId is a required field - InstanceId *string `location:"uri" locationName:"InstanceId" min:"1" type:"string" required:"true"` - - // The password for the user account to create. This is required if you are - // using Amazon Connect for identity management. If you are using SAML for identity - // management and include this parameter, an InvalidRequestException is returned. - Password *string `type:"string"` - - // Specifies the phone settings for the user, including AfterContactWorkTimeLimit, - // AutoAccept, DeskPhoneNumber, and PhoneType. - // - // PhoneConfig is a required field - PhoneConfig *UserPhoneConfig `type:"structure" required:"true"` +const opUpdateUserHierarchy = "UpdateUserHierarchy" - // The unique identifier for the routing profile to assign to the user created. - // - // RoutingProfileId is a required field - RoutingProfileId *string `type:"string" required:"true"` +// UpdateUserHierarchyRequest generates a "aws/request.Request" representing the +// client's request for the UpdateUserHierarchy 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 UpdateUserHierarchy for more information on using the UpdateUserHierarchy +// 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 UpdateUserHierarchyRequest method. +// req, resp := client.UpdateUserHierarchyRequest(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/UpdateUserHierarchy +func (c *Connect) UpdateUserHierarchyRequest(input *UpdateUserHierarchyInput) (req *request.Request, output *UpdateUserHierarchyOutput) { + op := &request.Operation{ + Name: opUpdateUserHierarchy, + HTTPMethod: "POST", + HTTPPath: "/users/{InstanceId}/{UserId}/hierarchy", + } - // The unique identifier of the security profile to assign to the user created. - // - // SecurityProfileIds is a required field - SecurityProfileIds []*string `min:"1" type:"list" required:"true"` + if input == nil { + input = &UpdateUserHierarchyInput{} + } - // The user name in Amazon Connect for the account to create. If you are using - // SAML for identity management in your Amazon Connect, the value for Username - // can include up to 64 characters from [a-zA-Z0-9_-.\@]+. - // - // Username is a required field - Username *string `min:"1" type:"string" required:"true"` + output = &UpdateUserHierarchyOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return } -// String returns the string representation -func (s CreateUserInput) String() string { - return awsutil.Prettify(s) +// UpdateUserHierarchy API operation for Amazon Connect Service. +// +// Assigns the specified hierarchy group to the specified user. +// +// 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 UpdateUserHierarchy for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidRequestException "InvalidRequestException" +// The request is not valid. +// +// * ErrCodeInvalidParameterException "InvalidParameterException" +// One or more of the specified parameters are not valid. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource was not found. +// +// * ErrCodeThrottlingException "ThrottlingException" +// The throttling limit has been exceeded. +// +// * ErrCodeInternalServiceException "InternalServiceException" +// Request processing failed due to an error or failure with the service. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/UpdateUserHierarchy +func (c *Connect) UpdateUserHierarchy(input *UpdateUserHierarchyInput) (*UpdateUserHierarchyOutput, error) { + req, out := c.UpdateUserHierarchyRequest(input) + return out, req.Send() } -// GoString returns the string representation -func (s CreateUserInput) GoString() string { - return s.String() +// UpdateUserHierarchyWithContext is the same as UpdateUserHierarchy with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateUserHierarchy 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) UpdateUserHierarchyWithContext(ctx aws.Context, input *UpdateUserHierarchyInput, opts ...request.Option) (*UpdateUserHierarchyOutput, error) { + req, out := c.UpdateUserHierarchyRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateUserInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateUserInput"} - 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.PhoneConfig == nil { - invalidParams.Add(request.NewErrParamRequired("PhoneConfig")) - } - if s.RoutingProfileId == nil { - invalidParams.Add(request.NewErrParamRequired("RoutingProfileId")) - } - if s.SecurityProfileIds == nil { - invalidParams.Add(request.NewErrParamRequired("SecurityProfileIds")) - } - if s.SecurityProfileIds != nil && len(s.SecurityProfileIds) < 1 { - invalidParams.Add(request.NewErrParamMinLen("SecurityProfileIds", 1)) +const opUpdateUserIdentityInfo = "UpdateUserIdentityInfo" + +// UpdateUserIdentityInfoRequest generates a "aws/request.Request" representing the +// client's request for the UpdateUserIdentityInfo 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 UpdateUserIdentityInfo for more information on using the UpdateUserIdentityInfo +// 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 UpdateUserIdentityInfoRequest method. +// req, resp := client.UpdateUserIdentityInfoRequest(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/UpdateUserIdentityInfo +func (c *Connect) UpdateUserIdentityInfoRequest(input *UpdateUserIdentityInfoInput) (req *request.Request, output *UpdateUserIdentityInfoOutput) { + op := &request.Operation{ + Name: opUpdateUserIdentityInfo, + HTTPMethod: "POST", + HTTPPath: "/users/{InstanceId}/{UserId}/identity-info", + } + + if input == nil { + input = &UpdateUserIdentityInfoInput{} + } + + output = &UpdateUserIdentityInfoOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// UpdateUserIdentityInfo API operation for Amazon Connect Service. +// +// Updates the identity information for the specified user. +// +// 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 UpdateUserIdentityInfo for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidRequestException "InvalidRequestException" +// The request is not valid. +// +// * ErrCodeInvalidParameterException "InvalidParameterException" +// One or more of the specified parameters are not valid. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource was not found. +// +// * ErrCodeThrottlingException "ThrottlingException" +// The throttling limit has been exceeded. +// +// * ErrCodeInternalServiceException "InternalServiceException" +// Request processing failed due to an error or failure with the service. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/UpdateUserIdentityInfo +func (c *Connect) UpdateUserIdentityInfo(input *UpdateUserIdentityInfoInput) (*UpdateUserIdentityInfoOutput, error) { + req, out := c.UpdateUserIdentityInfoRequest(input) + return out, req.Send() +} + +// UpdateUserIdentityInfoWithContext is the same as UpdateUserIdentityInfo with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateUserIdentityInfo 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) UpdateUserIdentityInfoWithContext(ctx aws.Context, input *UpdateUserIdentityInfoInput, opts ...request.Option) (*UpdateUserIdentityInfoOutput, error) { + req, out := c.UpdateUserIdentityInfoRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateUserPhoneConfig = "UpdateUserPhoneConfig" + +// UpdateUserPhoneConfigRequest generates a "aws/request.Request" representing the +// client's request for the UpdateUserPhoneConfig 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 UpdateUserPhoneConfig for more information on using the UpdateUserPhoneConfig +// 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 UpdateUserPhoneConfigRequest method. +// req, resp := client.UpdateUserPhoneConfigRequest(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/UpdateUserPhoneConfig +func (c *Connect) UpdateUserPhoneConfigRequest(input *UpdateUserPhoneConfigInput) (req *request.Request, output *UpdateUserPhoneConfigOutput) { + op := &request.Operation{ + Name: opUpdateUserPhoneConfig, + HTTPMethod: "POST", + HTTPPath: "/users/{InstanceId}/{UserId}/phone-config", + } + + if input == nil { + input = &UpdateUserPhoneConfigInput{} + } + + output = &UpdateUserPhoneConfigOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// UpdateUserPhoneConfig API operation for Amazon Connect Service. +// +// Updates the phone configuration settings for the specified user. +// +// 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 UpdateUserPhoneConfig for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidRequestException "InvalidRequestException" +// The request is not valid. +// +// * ErrCodeInvalidParameterException "InvalidParameterException" +// One or more of the specified parameters are not valid. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource was not found. +// +// * ErrCodeThrottlingException "ThrottlingException" +// The throttling limit has been exceeded. +// +// * ErrCodeInternalServiceException "InternalServiceException" +// Request processing failed due to an error or failure with the service. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/UpdateUserPhoneConfig +func (c *Connect) UpdateUserPhoneConfig(input *UpdateUserPhoneConfigInput) (*UpdateUserPhoneConfigOutput, error) { + req, out := c.UpdateUserPhoneConfigRequest(input) + return out, req.Send() +} + +// UpdateUserPhoneConfigWithContext is the same as UpdateUserPhoneConfig with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateUserPhoneConfig 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) UpdateUserPhoneConfigWithContext(ctx aws.Context, input *UpdateUserPhoneConfigInput, opts ...request.Option) (*UpdateUserPhoneConfigOutput, error) { + req, out := c.UpdateUserPhoneConfigRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateUserRoutingProfile = "UpdateUserRoutingProfile" + +// UpdateUserRoutingProfileRequest generates a "aws/request.Request" representing the +// client's request for the UpdateUserRoutingProfile 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 UpdateUserRoutingProfile for more information on using the UpdateUserRoutingProfile +// 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 UpdateUserRoutingProfileRequest method. +// req, resp := client.UpdateUserRoutingProfileRequest(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/UpdateUserRoutingProfile +func (c *Connect) UpdateUserRoutingProfileRequest(input *UpdateUserRoutingProfileInput) (req *request.Request, output *UpdateUserRoutingProfileOutput) { + op := &request.Operation{ + Name: opUpdateUserRoutingProfile, + HTTPMethod: "POST", + HTTPPath: "/users/{InstanceId}/{UserId}/routing-profile", + } + + if input == nil { + input = &UpdateUserRoutingProfileInput{} + } + + output = &UpdateUserRoutingProfileOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// UpdateUserRoutingProfile API operation for Amazon Connect Service. +// +// Assigns the specified routing profile to the specified user. +// +// 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 UpdateUserRoutingProfile for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidRequestException "InvalidRequestException" +// The request is not valid. +// +// * ErrCodeInvalidParameterException "InvalidParameterException" +// One or more of the specified parameters are not valid. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource was not found. +// +// * ErrCodeThrottlingException "ThrottlingException" +// The throttling limit has been exceeded. +// +// * ErrCodeInternalServiceException "InternalServiceException" +// Request processing failed due to an error or failure with the service. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/UpdateUserRoutingProfile +func (c *Connect) UpdateUserRoutingProfile(input *UpdateUserRoutingProfileInput) (*UpdateUserRoutingProfileOutput, error) { + req, out := c.UpdateUserRoutingProfileRequest(input) + return out, req.Send() +} + +// UpdateUserRoutingProfileWithContext is the same as UpdateUserRoutingProfile with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateUserRoutingProfile 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) UpdateUserRoutingProfileWithContext(ctx aws.Context, input *UpdateUserRoutingProfileInput, opts ...request.Option) (*UpdateUserRoutingProfileOutput, error) { + req, out := c.UpdateUserRoutingProfileRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateUserSecurityProfiles = "UpdateUserSecurityProfiles" + +// UpdateUserSecurityProfilesRequest generates a "aws/request.Request" representing the +// client's request for the UpdateUserSecurityProfiles 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 UpdateUserSecurityProfiles for more information on using the UpdateUserSecurityProfiles +// 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 UpdateUserSecurityProfilesRequest method. +// req, resp := client.UpdateUserSecurityProfilesRequest(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/UpdateUserSecurityProfiles +func (c *Connect) UpdateUserSecurityProfilesRequest(input *UpdateUserSecurityProfilesInput) (req *request.Request, output *UpdateUserSecurityProfilesOutput) { + op := &request.Operation{ + Name: opUpdateUserSecurityProfiles, + HTTPMethod: "POST", + HTTPPath: "/users/{InstanceId}/{UserId}/security-profiles", + } + + if input == nil { + input = &UpdateUserSecurityProfilesInput{} + } + + output = &UpdateUserSecurityProfilesOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// UpdateUserSecurityProfiles API operation for Amazon Connect Service. +// +// Assigns the specified security profiles to the specified user. +// +// 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 UpdateUserSecurityProfiles for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidRequestException "InvalidRequestException" +// The request is not valid. +// +// * ErrCodeInvalidParameterException "InvalidParameterException" +// One or more of the specified parameters are not valid. +// +// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// The specified resource was not found. +// +// * ErrCodeThrottlingException "ThrottlingException" +// The throttling limit has been exceeded. +// +// * ErrCodeInternalServiceException "InternalServiceException" +// Request processing failed due to an error or failure with the service. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/UpdateUserSecurityProfiles +func (c *Connect) UpdateUserSecurityProfiles(input *UpdateUserSecurityProfilesInput) (*UpdateUserSecurityProfilesOutput, error) { + req, out := c.UpdateUserSecurityProfilesRequest(input) + return out, req.Send() +} + +// UpdateUserSecurityProfilesWithContext is the same as UpdateUserSecurityProfiles with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateUserSecurityProfiles 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) UpdateUserSecurityProfilesWithContext(ctx aws.Context, input *UpdateUserSecurityProfilesInput, opts ...request.Option) (*UpdateUserSecurityProfilesOutput, error) { + req, out := c.UpdateUserSecurityProfilesRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// Contains summary information about a contact flow. +type ContactFlowSummary struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the contact flow. + Arn *string `type:"string"` + + // The type of contact flow. + ContactFlowType *string `type:"string" enum:"ContactFlowType"` + + // The identifier of the contact flow. + Id *string `type:"string"` + + // The name of the contact flow. + Name *string `type:"string"` +} + +// String returns the string representation +func (s ContactFlowSummary) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ContactFlowSummary) GoString() string { + return s.String() +} + +// SetArn sets the Arn field's value. +func (s *ContactFlowSummary) SetArn(v string) *ContactFlowSummary { + s.Arn = &v + return s +} + +// SetContactFlowType sets the ContactFlowType field's value. +func (s *ContactFlowSummary) SetContactFlowType(v string) *ContactFlowSummary { + s.ContactFlowType = &v + return s +} + +// SetId sets the Id field's value. +func (s *ContactFlowSummary) SetId(v string) *ContactFlowSummary { + s.Id = &v + return s +} + +// SetName sets the Name field's value. +func (s *ContactFlowSummary) SetName(v string) *ContactFlowSummary { + s.Name = &v + return s +} + +type CreateUserInput struct { + _ struct{} `type:"structure"` + + // The identifier of the user account in the directory used for identity management. + // If Amazon Connect cannot access the directory, you can specify this identifier + // to authenticate users. If you include the identifier, we assume that Amazon + // Connect cannot access the directory. Otherwise, the identity information + // is used to authenticate users from your directory. + // + // This parameter is required if you are using an existing directory for identity + // management in Amazon Connect when Amazon Connect cannot access your directory + // to authenticate users. If you are using SAML for identity management and + // include this parameter, an error is returned. + DirectoryUserId *string `type:"string"` + + // The identifier of the hierarchy group for the user. + HierarchyGroupId *string `type:"string"` + + // The information about the identity of the user. + IdentityInfo *UserIdentityInfo `type:"structure"` + + // The identifier of the Amazon Connect instance. + // + // InstanceId is a required field + InstanceId *string `location:"uri" locationName:"InstanceId" min:"1" type:"string" required:"true"` + + // The password for the user account. A password is required if you are using + // Amazon Connect for identity management. Otherwise, it is an error to include + // a password. + Password *string `type:"string"` + + // The phone settings for the user. + // + // PhoneConfig is a required field + PhoneConfig *UserPhoneConfig `type:"structure" required:"true"` + + // The identifier of the routing profile for the user. + // + // RoutingProfileId is a required field + RoutingProfileId *string `type:"string" required:"true"` + + // The identifier of the security profile for the user. + // + // SecurityProfileIds is a required field + SecurityProfileIds []*string `min:"1" type:"list" required:"true"` + + // The user name for the account. For instances not using SAML for identity + // management, the user name can include up to 20 characters. If you are using + // SAML for identity management, the user name can include up to 64 characters + // from [a-zA-Z0-9_-.\@]+. + // + // Username is a required field + Username *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s CreateUserInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateUserInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateUserInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateUserInput"} + 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.PhoneConfig == nil { + invalidParams.Add(request.NewErrParamRequired("PhoneConfig")) + } + if s.RoutingProfileId == nil { + invalidParams.Add(request.NewErrParamRequired("RoutingProfileId")) + } + if s.SecurityProfileIds == nil { + invalidParams.Add(request.NewErrParamRequired("SecurityProfileIds")) + } + if s.SecurityProfileIds != nil && len(s.SecurityProfileIds) < 1 { + invalidParams.Add(request.NewErrParamMinLen("SecurityProfileIds", 1)) } if s.Username == nil { invalidParams.Add(request.NewErrParamRequired("Username")) @@ -2270,10 +3114,10 @@ func (s *CreateUserInput) SetUsername(v string) *CreateUserInput { type CreateUserOutput struct { _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) of the user account created. + // The Amazon Resource Name (ARN) of the user account. UserArn *string `type:"string"` - // The unique identifier for the user account in Amazon Connect + // The identifier of the user account. UserId *string `type:"string"` } @@ -2299,15 +3143,15 @@ func (s *CreateUserOutput) SetUserId(v string) *CreateUserOutput { return s } -// The credentials to use for federation. +// Contains credentials to use for federation. type Credentials struct { _ struct{} `type:"structure"` - // An access token generated for a federated user to access Amazon Connect + // An access token generated for a federated user to access Amazon Connect. AccessToken *string `type:"string" sensitive:"true"` // A token generated with an expiration time for the session a user is logged - // in to Amazon Connect + // in to Amazon Connect. AccessTokenExpiration *time.Time `type:"timestamp"` // Renews a token generated for a user to access the Amazon Connect instance. @@ -2351,7 +3195,7 @@ func (s *Credentials) SetRefreshTokenExpiration(v time.Time) *Credentials { return s } -// A CurrentMetric object that contains the Name and Unit for the metric. +// Contains information about a real-time metric. type CurrentMetric struct { _ struct{} `type:"structure"` @@ -2384,14 +3228,14 @@ func (s *CurrentMetric) SetUnit(v string) *CurrentMetric { return s } -// A CurrentMetricData object. +// Contains the data for a real-time metric. type CurrentMetricData struct { _ struct{} `type:"structure"` - // The metric in a CurrentMetricData object. + // Information about the metric. Metric *CurrentMetric `type:"structure"` - // The value of the metric in the CurrentMetricData object. + // The value of the metric. Value *float64 `type:"double"` } @@ -2417,14 +3261,14 @@ func (s *CurrentMetricData) SetValue(v float64) *CurrentMetricData { return s } -// A CurrentMetricResult object. +// Contains information about a set of real-time metrics. type CurrentMetricResult struct { _ struct{} `type:"structure"` - // The Collections for the CurrentMetricResult object. + // The set of metrics. Collections []*CurrentMetricData `type:"list"` - // The Dimensions for the CurrentMetricResult object. + // The dimensions for the metrics. Dimensions *Dimensions `type:"structure"` } @@ -2453,16 +3297,12 @@ func (s *CurrentMetricResult) SetDimensions(v *Dimensions) *CurrentMetricResult type DeleteUserInput struct { _ struct{} `type:"structure"` - // The identifier for your Amazon Connect instance. To find the ID of your instance, - // open the AWS console and select Amazon Connect. Select the alias of the instance - // in the Instance alias column. The instance ID is displayed in the Overview - // section of your instance settings. For example, the instance ID is the set - // of characters at the end of the instance ARN, after instance/, such as 10a4c4eb-f57e-4d4c-b602-bf39176ced07. + // The identifier of the Amazon Connect instance. // // InstanceId is a required field InstanceId *string `location:"uri" locationName:"InstanceId" min:"1" type:"string" required:"true"` - // The unique identifier of the user to delete. + // The identifier of the user. // // UserId is a required field UserId *string `location:"uri" locationName:"UserId" type:"string" required:"true"` @@ -2529,16 +3369,12 @@ func (s DeleteUserOutput) GoString() string { type DescribeUserHierarchyGroupInput struct { _ struct{} `type:"structure"` - // The identifier for the hierarchy group to return. + // The identifier of the hierarchy group. // // HierarchyGroupId is a required field HierarchyGroupId *string `location:"uri" locationName:"HierarchyGroupId" type:"string" required:"true"` - // The identifier for your Amazon Connect instance. To find the ID of your instance, - // open the AWS console and select Amazon Connect. Select the alias of the instance - // in the Instance alias column. The instance ID is displayed in the Overview - // section of your instance settings. For example, the instance ID is the set - // of characters at the end of the instance ARN, after instance/, such as 10a4c4eb-f57e-4d4c-b602-bf39176ced07. + // The identifier of the Amazon Connect instance. // // InstanceId is a required field InstanceId *string `location:"uri" locationName:"InstanceId" min:"1" type:"string" required:"true"` @@ -2576,67 +3412,299 @@ func (s *DescribeUserHierarchyGroupInput) Validate() error { return nil } -// SetHierarchyGroupId sets the HierarchyGroupId field's value. -func (s *DescribeUserHierarchyGroupInput) SetHierarchyGroupId(v string) *DescribeUserHierarchyGroupInput { - s.HierarchyGroupId = &v +// SetHierarchyGroupId sets the HierarchyGroupId field's value. +func (s *DescribeUserHierarchyGroupInput) SetHierarchyGroupId(v string) *DescribeUserHierarchyGroupInput { + s.HierarchyGroupId = &v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *DescribeUserHierarchyGroupInput) SetInstanceId(v string) *DescribeUserHierarchyGroupInput { + s.InstanceId = &v + return s +} + +type DescribeUserHierarchyGroupOutput struct { + _ struct{} `type:"structure"` + + // Information about the hierarchy group. + HierarchyGroup *HierarchyGroup `type:"structure"` +} + +// String returns the string representation +func (s DescribeUserHierarchyGroupOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeUserHierarchyGroupOutput) GoString() string { + return s.String() +} + +// SetHierarchyGroup sets the HierarchyGroup field's value. +func (s *DescribeUserHierarchyGroupOutput) SetHierarchyGroup(v *HierarchyGroup) *DescribeUserHierarchyGroupOutput { + s.HierarchyGroup = v + return s +} + +type DescribeUserHierarchyStructureInput struct { + _ struct{} `type:"structure"` + + // The identifier of the Amazon Connect instance. + // + // InstanceId is a required field + InstanceId *string `location:"uri" locationName:"InstanceId" min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s DescribeUserHierarchyStructureInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeUserHierarchyStructureInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeUserHierarchyStructureInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeUserHierarchyStructureInput"} + if s.InstanceId == nil { + invalidParams.Add(request.NewErrParamRequired("InstanceId")) + } + if s.InstanceId != nil && len(*s.InstanceId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("InstanceId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetInstanceId sets the InstanceId field's value. +func (s *DescribeUserHierarchyStructureInput) SetInstanceId(v string) *DescribeUserHierarchyStructureInput { + s.InstanceId = &v + return s +} + +type DescribeUserHierarchyStructureOutput struct { + _ struct{} `type:"structure"` + + // Information about the hierarchy structure. + HierarchyStructure *HierarchyStructure `type:"structure"` +} + +// String returns the string representation +func (s DescribeUserHierarchyStructureOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeUserHierarchyStructureOutput) GoString() string { + return s.String() +} + +// SetHierarchyStructure sets the HierarchyStructure field's value. +func (s *DescribeUserHierarchyStructureOutput) SetHierarchyStructure(v *HierarchyStructure) *DescribeUserHierarchyStructureOutput { + s.HierarchyStructure = v + return s +} + +type DescribeUserInput struct { + _ struct{} `type:"structure"` + + // The identifier of the Amazon Connect instance. + // + // InstanceId is a required field + InstanceId *string `location:"uri" locationName:"InstanceId" min:"1" type:"string" required:"true"` + + // The identifier of the user account. + // + // UserId is a required field + UserId *string `location:"uri" locationName:"UserId" type:"string" required:"true"` +} + +// String returns the string representation +func (s DescribeUserInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeUserInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeUserInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeUserInput"} + 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.UserId == nil { + invalidParams.Add(request.NewErrParamRequired("UserId")) + } + if s.UserId != nil && len(*s.UserId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("UserId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetInstanceId sets the InstanceId field's value. +func (s *DescribeUserInput) SetInstanceId(v string) *DescribeUserInput { + s.InstanceId = &v + return s +} + +// SetUserId sets the UserId field's value. +func (s *DescribeUserInput) SetUserId(v string) *DescribeUserInput { + s.UserId = &v + return s +} + +type DescribeUserOutput struct { + _ struct{} `type:"structure"` + + // Information about the user account and configuration settings. + User *User `type:"structure"` +} + +// String returns the string representation +func (s DescribeUserOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeUserOutput) GoString() string { + return s.String() +} + +// SetUser sets the User field's value. +func (s *DescribeUserOutput) SetUser(v *User) *DescribeUserOutput { + s.User = v + return s +} + +// Contains information about the dimensions for a set of metrics. +type Dimensions struct { + _ struct{} `type:"structure"` + + // The channel used for grouping and filters. + Channel *string `type:"string" enum:"Channel"` + + // Information about the queue for which metrics are returned. + Queue *QueueReference `type:"structure"` +} + +// String returns the string representation +func (s Dimensions) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Dimensions) GoString() string { + return s.String() +} + +// SetChannel sets the Channel field's value. +func (s *Dimensions) SetChannel(v string) *Dimensions { + s.Channel = &v return s } -// SetInstanceId sets the InstanceId field's value. -func (s *DescribeUserHierarchyGroupInput) SetInstanceId(v string) *DescribeUserHierarchyGroupInput { - s.InstanceId = &v +// SetQueue sets the Queue field's value. +func (s *Dimensions) SetQueue(v *QueueReference) *Dimensions { + s.Queue = v return s } -type DescribeUserHierarchyGroupOutput struct { +// Contains the filter to apply when retrieving metrics. +type Filters struct { _ struct{} `type:"structure"` - // Returns a HierarchyGroup object. - HierarchyGroup *HierarchyGroup `type:"structure"` + // The channel to use to filter the metrics. + Channels []*string `type:"list"` + + // The queues to use to filter the metrics. You can specify up to 100 queues + // per request. + Queues []*string `min:"1" type:"list"` } // String returns the string representation -func (s DescribeUserHierarchyGroupOutput) String() string { +func (s Filters) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DescribeUserHierarchyGroupOutput) GoString() string { +func (s Filters) GoString() string { return s.String() } -// SetHierarchyGroup sets the HierarchyGroup field's value. -func (s *DescribeUserHierarchyGroupOutput) SetHierarchyGroup(v *HierarchyGroup) *DescribeUserHierarchyGroupOutput { - s.HierarchyGroup = v +// Validate inspects the fields of the type to determine if they are valid. +func (s *Filters) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "Filters"} + if s.Queues != nil && len(s.Queues) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Queues", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetChannels sets the Channels field's value. +func (s *Filters) SetChannels(v []*string) *Filters { + s.Channels = v return s } -type DescribeUserHierarchyStructureInput struct { +// SetQueues sets the Queues field's value. +func (s *Filters) SetQueues(v []*string) *Filters { + s.Queues = v + return s +} + +type GetContactAttributesInput struct { _ struct{} `type:"structure"` - // The identifier for your Amazon Connect instance. To find the ID of your instance, - // open the AWS console and select Amazon Connect. Select the alias of the instance - // in the Instance alias column. The instance ID is displayed in the Overview - // section of your instance settings. For example, the instance ID is the set - // of characters at the end of the instance ARN, after instance/, such as 10a4c4eb-f57e-4d4c-b602-bf39176ced07. + // The identifier of the initial contact. + // + // InitialContactId is a required field + InitialContactId *string `location:"uri" locationName:"InitialContactId" min:"1" type:"string" required:"true"` + + // The identifier of the Amazon Connect instance. // // InstanceId is a required field InstanceId *string `location:"uri" locationName:"InstanceId" min:"1" type:"string" required:"true"` } // String returns the string representation -func (s DescribeUserHierarchyStructureInput) String() string { +func (s GetContactAttributesInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DescribeUserHierarchyStructureInput) GoString() string { +func (s GetContactAttributesInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeUserHierarchyStructureInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeUserHierarchyStructureInput"} +func (s *GetContactAttributesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetContactAttributesInput"} + if s.InitialContactId == nil { + invalidParams.Add(request.NewErrParamRequired("InitialContactId")) + } + if s.InitialContactId != nil && len(*s.InitialContactId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("InitialContactId", 1)) + } if s.InstanceId == nil { invalidParams.Add(request.NewErrParamRequired("InstanceId")) } @@ -2650,77 +3718,155 @@ func (s *DescribeUserHierarchyStructureInput) Validate() error { return nil } +// SetInitialContactId sets the InitialContactId field's value. +func (s *GetContactAttributesInput) SetInitialContactId(v string) *GetContactAttributesInput { + s.InitialContactId = &v + return s +} + // SetInstanceId sets the InstanceId field's value. -func (s *DescribeUserHierarchyStructureInput) SetInstanceId(v string) *DescribeUserHierarchyStructureInput { +func (s *GetContactAttributesInput) SetInstanceId(v string) *GetContactAttributesInput { s.InstanceId = &v return s } -type DescribeUserHierarchyStructureOutput struct { +type GetContactAttributesOutput struct { _ struct{} `type:"structure"` - // A HierarchyStructure object. - HierarchyStructure *HierarchyStructure `type:"structure"` + // Information about the attributes. + Attributes map[string]*string `type:"map"` } // String returns the string representation -func (s DescribeUserHierarchyStructureOutput) String() string { +func (s GetContactAttributesOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DescribeUserHierarchyStructureOutput) GoString() string { +func (s GetContactAttributesOutput) GoString() string { return s.String() } -// SetHierarchyStructure sets the HierarchyStructure field's value. -func (s *DescribeUserHierarchyStructureOutput) SetHierarchyStructure(v *HierarchyStructure) *DescribeUserHierarchyStructureOutput { - s.HierarchyStructure = v +// SetAttributes sets the Attributes field's value. +func (s *GetContactAttributesOutput) SetAttributes(v map[string]*string) *GetContactAttributesOutput { + s.Attributes = v return s } -type DescribeUserInput struct { +type GetCurrentMetricDataInput struct { _ struct{} `type:"structure"` - // The identifier for your Amazon Connect instance. To find the ID of your instance, - // open the AWS console and select Amazon Connect. Select the alias of the instance - // in the Instance alias column. The instance ID is displayed in the Overview - // section of your instance settings. For example, the instance ID is the set - // of characters at the end of the instance ARN, after instance/, such as 10a4c4eb-f57e-4d4c-b602-bf39176ced07. + // The metrics to retrieve. Specify the name and unit for each metric. The following + // metrics are available: + // + // AGENTS_AFTER_CONTACT_WORK + // + // Unit: COUNT + // + // AGENTS_AVAILABLE + // + // Unit: COUNT + // + // AGENTS_ERROR + // + // Unit: COUNT + // + // AGENTS_NON_PRODUCTIVE + // + // Unit: COUNT + // + // AGENTS_ON_CALL + // + // Unit: COUNT + // + // AGENTS_ONLINE + // + // Unit: COUNT + // + // AGENTS_STAFFED + // + // Unit: COUNT + // + // CONTACTS_IN_QUEUE + // + // Unit: COUNT + // + // CONTACTS_SCHEDULED + // + // Unit: COUNT + // + // OLDEST_CONTACT_AGE + // + // Unit: SECONDS + // + // CurrentMetrics is a required field + CurrentMetrics []*CurrentMetric `type:"list" required:"true"` + + // The queues, up to 100, or channels, to use to filter the metrics returned. + // Metric data is retrieved only for the resources associated with the queues + // or channels included in the filter. You can include both queue IDs and queue + // ARNs in the same request. The only supported channel is VOICE. + // + // Filters is a required field + Filters *Filters `type:"structure" required:"true"` + + // The grouping applied to the metrics returned. For example, when grouped by + // QUEUE, the metrics returned apply to each queue rather than aggregated for + // all queues. If you group by CHANNEL, you should include a Channels filter. + // The only supported channel is VOICE. + // + // If no Grouping is included in the request, a summary of metrics is returned. + Groupings []*string `type:"list"` + + // The identifier of the Amazon Connect instance. // // InstanceId is a required field InstanceId *string `location:"uri" locationName:"InstanceId" min:"1" type:"string" required:"true"` - // Unique identifier for the user account to return. + // The maximimum 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. // - // UserId is a required field - UserId *string `location:"uri" locationName:"UserId" type:"string" required:"true"` + // The token expires after 5 minutes from the time it is created. Subsequent + // requests that use the token must use the same request parameters as the request + // that generated the token. + NextToken *string `type:"string"` } // String returns the string representation -func (s DescribeUserInput) String() string { +func (s GetCurrentMetricDataInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DescribeUserInput) GoString() string { +func (s GetCurrentMetricDataInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeUserInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeUserInput"} +func (s *GetCurrentMetricDataInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetCurrentMetricDataInput"} + if s.CurrentMetrics == nil { + invalidParams.Add(request.NewErrParamRequired("CurrentMetrics")) + } + if s.Filters == nil { + invalidParams.Add(request.NewErrParamRequired("Filters")) + } 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.UserId == nil { - invalidParams.Add(request.NewErrParamRequired("UserId")) + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } - if s.UserId != nil && len(*s.UserId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("UserId", 1)) + if s.Filters != nil { + if err := s.Filters.Validate(); err != nil { + invalidParams.AddNested("Filters", err.(request.ErrInvalidParams)) + } } if invalidParams.Len() > 0 { @@ -2729,156 +3875,109 @@ func (s *DescribeUserInput) Validate() error { return nil } -// SetInstanceId sets the InstanceId field's value. -func (s *DescribeUserInput) SetInstanceId(v string) *DescribeUserInput { - s.InstanceId = &v +// SetCurrentMetrics sets the CurrentMetrics field's value. +func (s *GetCurrentMetricDataInput) SetCurrentMetrics(v []*CurrentMetric) *GetCurrentMetricDataInput { + s.CurrentMetrics = v return s } -// SetUserId sets the UserId field's value. -func (s *DescribeUserInput) SetUserId(v string) *DescribeUserInput { - s.UserId = &v +// SetFilters sets the Filters field's value. +func (s *GetCurrentMetricDataInput) SetFilters(v *Filters) *GetCurrentMetricDataInput { + s.Filters = v return s } -type DescribeUserOutput struct { - _ struct{} `type:"structure"` - - // A User object that contains information about the user account and configuration - // settings. - User *User `type:"structure"` -} - -// String returns the string representation -func (s DescribeUserOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DescribeUserOutput) GoString() string { - return s.String() -} - -// SetUser sets the User field's value. -func (s *DescribeUserOutput) SetUser(v *User) *DescribeUserOutput { - s.User = v +// SetGroupings sets the Groupings field's value. +func (s *GetCurrentMetricDataInput) SetGroupings(v []*string) *GetCurrentMetricDataInput { + s.Groupings = v return s } -// A Dimensions object that includes the Channel and Queue for the metric. -type Dimensions struct { - _ struct{} `type:"structure"` - - // The channel used for grouping and filters. Only VOICE is supported. - Channel *string `type:"string" enum:"Channel"` - - // A QueueReference object used as one part of dimension for the metrics results. - Queue *QueueReference `type:"structure"` -} - -// String returns the string representation -func (s Dimensions) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s Dimensions) GoString() string { - return s.String() +// SetInstanceId sets the InstanceId field's value. +func (s *GetCurrentMetricDataInput) SetInstanceId(v string) *GetCurrentMetricDataInput { + s.InstanceId = &v + return s } -// SetChannel sets the Channel field's value. -func (s *Dimensions) SetChannel(v string) *Dimensions { - s.Channel = &v +// SetMaxResults sets the MaxResults field's value. +func (s *GetCurrentMetricDataInput) SetMaxResults(v int64) *GetCurrentMetricDataInput { + s.MaxResults = &v return s } -// SetQueue sets the Queue field's value. -func (s *Dimensions) SetQueue(v *QueueReference) *Dimensions { - s.Queue = v +// SetNextToken sets the NextToken field's value. +func (s *GetCurrentMetricDataInput) SetNextToken(v string) *GetCurrentMetricDataInput { + s.NextToken = &v return s } -// The filter, either channel or queues, to apply to the metric results retrieved. -type Filters struct { +type GetCurrentMetricDataOutput struct { _ struct{} `type:"structure"` - // The Channel to use as a filter for the metrics returned. Only VOICE is supported. - Channels []*string `type:"list"` + // The time at which the metrics were retrieved and cached for pagination. + DataSnapshotTime *time.Time `type:"timestamp"` - // A list of up to 100 queue IDs or queue ARNs to use to filter the metrics - // retrieved. You can include both IDs and ARNs in a request. - Queues []*string `min:"1" type:"list"` + // Information about the real-time metrics. + MetricResults []*CurrentMetricResult `type:"list"` + + // If there are additional results, this is the token for the next set of results. + // + // The token expires after 5 minutes from the time it is created. Subsequent + // requests that use the token must use the same request parameters as the request + // that generated the token. + NextToken *string `type:"string"` } // String returns the string representation -func (s Filters) String() string { +func (s GetCurrentMetricDataOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s Filters) GoString() string { +func (s GetCurrentMetricDataOutput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *Filters) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "Filters"} - if s.Queues != nil && len(s.Queues) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Queues", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetDataSnapshotTime sets the DataSnapshotTime field's value. +func (s *GetCurrentMetricDataOutput) SetDataSnapshotTime(v time.Time) *GetCurrentMetricDataOutput { + s.DataSnapshotTime = &v + return s } -// SetChannels sets the Channels field's value. -func (s *Filters) SetChannels(v []*string) *Filters { - s.Channels = v +// SetMetricResults sets the MetricResults field's value. +func (s *GetCurrentMetricDataOutput) SetMetricResults(v []*CurrentMetricResult) *GetCurrentMetricDataOutput { + s.MetricResults = v return s } -// SetQueues sets the Queues field's value. -func (s *Filters) SetQueues(v []*string) *Filters { - s.Queues = v +// SetNextToken sets the NextToken field's value. +func (s *GetCurrentMetricDataOutput) SetNextToken(v string) *GetCurrentMetricDataOutput { + s.NextToken = &v return s } -type GetContactAttributesInput struct { +type GetFederationTokenInput struct { _ struct{} `type:"structure"` - // The ID for the initial contact in Amazon Connect associated with the attributes - // to update. - // - // InitialContactId is a required field - InitialContactId *string `location:"uri" locationName:"InitialContactId" min:"1" type:"string" required:"true"` - - // The instance ID for the instance from which to retrieve contact attributes. + // The identifier of the Amazon Connect instance. // // InstanceId is a required field InstanceId *string `location:"uri" locationName:"InstanceId" min:"1" type:"string" required:"true"` } // String returns the string representation -func (s GetContactAttributesInput) String() string { +func (s GetFederationTokenInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetContactAttributesInput) GoString() string { +func (s GetFederationTokenInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *GetContactAttributesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetContactAttributesInput"} - if s.InitialContactId == nil { - invalidParams.Add(request.NewErrParamRequired("InitialContactId")) - } - if s.InitialContactId != nil && len(*s.InitialContactId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("InitialContactId", 1)) - } +func (s *GetFederationTokenInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetFederationTokenInput"} if s.InstanceId == nil { invalidParams.Add(request.NewErrParamRequired("InstanceId")) } @@ -2892,159 +3991,270 @@ func (s *GetContactAttributesInput) Validate() error { return nil } -// SetInitialContactId sets the InitialContactId field's value. -func (s *GetContactAttributesInput) SetInitialContactId(v string) *GetContactAttributesInput { - s.InitialContactId = &v - return s -} - // SetInstanceId sets the InstanceId field's value. -func (s *GetContactAttributesInput) SetInstanceId(v string) *GetContactAttributesInput { +func (s *GetFederationTokenInput) SetInstanceId(v string) *GetFederationTokenInput { s.InstanceId = &v return s } -type GetContactAttributesOutput struct { +type GetFederationTokenOutput struct { _ struct{} `type:"structure"` - // The attributes to update. - Attributes map[string]*string `type:"map"` + // The credentials to use for federation. + Credentials *Credentials `type:"structure"` } // String returns the string representation -func (s GetContactAttributesOutput) String() string { +func (s GetFederationTokenOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetContactAttributesOutput) GoString() string { +func (s GetFederationTokenOutput) GoString() string { return s.String() } -// SetAttributes sets the Attributes field's value. -func (s *GetContactAttributesOutput) SetAttributes(v map[string]*string) *GetContactAttributesOutput { - s.Attributes = v +// SetCredentials sets the Credentials field's value. +func (s *GetFederationTokenOutput) SetCredentials(v *Credentials) *GetFederationTokenOutput { + s.Credentials = v return s } -type GetCurrentMetricDataInput struct { +type GetMetricDataInput struct { _ struct{} `type:"structure"` - // A list of CurrentMetric objects for the metrics to retrieve. Each CurrentMetric - // includes a name of a metric to retrieve and the unit to use for it. You must - // list each metric to retrieve data for in the request. + // The timestamp, in UNIX Epoch time format, at which to end the reporting interval + // for the retrieval of historical metrics data. The time must be specified + // using an interval of 5 minutes, such as 11:00, 11:05, 11:10, and must be + // later than the start time timestamp. + // + // The time range between the start and end time must be less than 24 hours. + // + // EndTime is a required field + EndTime *time.Time `type:"timestamp" required:"true"` + + // The queues, up to 100, or channels, to use to filter the metrics returned. + // Metric data is retrieved only for the resources associated with the queues + // or channels included in the filter. You can include both queue IDs and queue + // ARNs in the same request. The only supported channel is VOICE. + // + // Filters is a required field + Filters *Filters `type:"structure" required:"true"` + + // The grouping applied to the metrics returned. For example, when results are + // grouped by queue, the metrics returned are grouped by queue. The values returned + // apply to the metrics for each queue rather than aggregated for all queues. // - // The following metrics are available: + // The only supported grouping is QUEUE. // - // AGENTS_AVAILABLE + // If no grouping is specified, a summary of metrics for all queues is returned. + Groupings []*string `type:"list"` + + // The metrics to retrieve. Specify the name, unit, and statistic for each metric. + // The following historical metrics are available: + // + // ABANDON_TIME + // + // Unit: SECONDS + // + // Statistic: AVG + // + // AFTER_CONTACT_WORK_TIME + // + // Unit: SECONDS + // + // Statistic: AVG + // + // API_CONTACTS_HANDLED // // Unit: COUNT // - // AGENTS_ONLINE + // Statistic: SUM + // + // CALLBACK_CONTACTS_HANDLED // // Unit: COUNT // - // AGENTS_ON_CALL + // Statistic: SUM + // + // CONTACTS_ABANDONED // // Unit: COUNT // - // AGENTS_STAFFED + // Statistic: SUM + // + // CONTACTS_AGENT_HUNG_UP_FIRST // // Unit: COUNT // - // AGENTS_AFTER_CONTACT_WORK + // Statistic: SUM + // + // CONTACTS_CONSULTED // // Unit: COUNT // - // AGENTS_NON_PRODUCTIVE + // Statistic: SUM + // + // CONTACTS_HANDLED // // Unit: COUNT // - // AGENTS_ERROR + // Statistic: SUM + // + // CONTACTS_HANDLED_INCOMING // // Unit: COUNT // - // CONTACTS_IN_QUEUE + // Statistic: SUM + // + // CONTACTS_HANDLED_OUTBOUND // // Unit: COUNT // - // OLDEST_CONTACT_AGE + // Statistic: SUM // - // Unit: SECONDS + // CONTACTS_HOLD_ABANDONS // - // CONTACTS_SCHEDULED + // Unit: COUNT + // + // Statistic: SUM + // + // CONTACTS_MISSED // // Unit: COUNT // - // CurrentMetrics is a required field - CurrentMetrics []*CurrentMetric `type:"list" required:"true"` - - // A Filters object that contains a list of queue IDs or queue ARNs, up to 100, - // or list of Channels to use to filter the metrics returned in the response. - // Metric data is retrieved only for the resources associated with the queue - // IDs, ARNs, or Channels included in the filter. You can include both IDs and - // ARNs in the same request. To retrieve metrics for all queues, add the queue - // ID or ARN for each queue in your instance. Only VOICE is supported for Channels. + // Statistic: SUM // - // To find the ARN for a queue, open the queue you want to use in the Amazon - // Connect Queue editor. The ARN for the queue is displayed in the address bar - // as part of the URL. For example, the queue ARN is the set of characters at - // the end of the URL, after 'id=' such as arn:aws:connect:us-east-1:270923740243:instance/78fb859d-1b7d-44b1-8aa3-12f0835c5855/queue/1d1a4575-9618-40ab-bbeb-81e45795fe61. - // The queue ID is also included in the URL, and is the string after 'queue/'. + // CONTACTS_QUEUED // - // Filters is a required field - Filters *Filters `type:"structure" required:"true"` - - // The grouping applied to the metrics returned. For example, when grouped by - // QUEUE, the metrics returned apply to each queue rather than aggregated for - // all queues. If you group by CHANNEL, you should include a Channels filter. - // The only supported channel is VOICE. + // Unit: COUNT // - // If no Grouping is included in the request, a summary of CurrentMetrics is - // returned. - Groupings []*string `type:"list"` + // Statistic: SUM + // + // CONTACTS_TRANSFERRED_IN + // + // Unit: COUNT + // + // Statistic: SUM + // + // CONTACTS_TRANSFERRED_IN_FROM_QUEUE + // + // Unit: COUNT + // + // Statistic: SUM + // + // CONTACTS_TRANSFERRED_OUT + // + // Unit: COUNT + // + // Statistic: SUM + // + // CONTACTS_TRANSFERRED_OUT_FROM_QUEUE + // + // Unit: COUNT + // + // Statistic: SUM + // + // HANDLE_TIME + // + // Unit: SECONDS + // + // Statistic: AVG + // + // HOLD_TIME + // + // Unit: SECONDS + // + // Statistic: AVG + // + // INTERACTION_AND_HOLD_TIME + // + // Unit: SECONDS + // + // Statistic: AVG + // + // INTERACTION_TIME + // + // Unit: SECONDS + // + // Statistic: AVG + // + // OCCUPANCY + // + // Unit: PERCENT + // + // Statistic: AVG + // + // QUEUE_ANSWER_TIME + // + // Unit: SECONDS + // + // Statistic: AVG + // + // QUEUED_TIME + // + // Unit: SECONDS + // + // Statistic: MAX + // + // SERVICE_LEVEL + // + // Unit: PERCENT + // + // Statistic: AVG + // + // Threshold: Only "Less than" comparisons are supported, with the following + // service level thresholds: 15, 20, 25, 30, 45, 60, 90, 120, 180, 240, 300, + // 600 + // + // HistoricalMetrics is a required field + HistoricalMetrics []*HistoricalMetric `type:"list" required:"true"` - // The identifier for your Amazon Connect instance. To find the ID of your instance, - // open the AWS console and select Amazon Connect. Select the alias of the instance - // in the Instance alias column. The instance ID is displayed in the Overview - // section of your instance settings. For example, the instance ID is the set - // of characters at the end of the instance ARN, after instance/, such as 10a4c4eb-f57e-4d4c-b602-bf39176ced07. + // The identifier of the Amazon Connect instance. // // InstanceId is a required field InstanceId *string `location:"uri" locationName:"InstanceId" min:"1" type:"string" required:"true"` - // MaxResults indicates the maximum number of results to return per page in - // the response, between 1 and 100. + // The maximimum 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. - // - // The token expires after 5 minutes from the time it is created. Subsequent - // requests that use the NextToken must use the same request parameters as the - // request that generated the token. NextToken *string `type:"string"` + + // The timestamp, in UNIX Epoch time format, at which to start the reporting + // interval for the retrieval of historical metrics data. The time must be specified + // using a multiple of 5 minutes, such as 10:05, 10:10, 10:15. + // + // The start time cannot be earlier than 24 hours before the time of the request. + // Historical metrics are available only for 24 hours. + // + // StartTime is a required field + StartTime *time.Time `type:"timestamp" required:"true"` } // String returns the string representation -func (s GetCurrentMetricDataInput) String() string { +func (s GetMetricDataInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetCurrentMetricDataInput) GoString() string { +func (s GetMetricDataInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *GetCurrentMetricDataInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetCurrentMetricDataInput"} - if s.CurrentMetrics == nil { - invalidParams.Add(request.NewErrParamRequired("CurrentMetrics")) +func (s *GetMetricDataInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetMetricDataInput"} + if s.EndTime == nil { + invalidParams.Add(request.NewErrParamRequired("EndTime")) } if s.Filters == nil { invalidParams.Add(request.NewErrParamRequired("Filters")) } + if s.HistoricalMetrics == nil { + invalidParams.Add(request.NewErrParamRequired("HistoricalMetrics")) + } if s.InstanceId == nil { invalidParams.Add(request.NewErrParamRequired("InstanceId")) } @@ -3054,6 +4264,9 @@ func (s *GetCurrentMetricDataInput) Validate() error { if s.MaxResults != nil && *s.MaxResults < 1 { invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } + if s.StartTime == nil { + invalidParams.Add(request.NewErrParamRequired("StartTime")) + } if s.Filters != nil { if err := s.Filters.Validate(); err != nil { invalidParams.AddNested("Filters", err.(request.ErrInvalidParams)) @@ -3066,956 +4279,940 @@ func (s *GetCurrentMetricDataInput) Validate() error { return nil } -// SetCurrentMetrics sets the CurrentMetrics field's value. -func (s *GetCurrentMetricDataInput) SetCurrentMetrics(v []*CurrentMetric) *GetCurrentMetricDataInput { - s.CurrentMetrics = v +// SetEndTime sets the EndTime field's value. +func (s *GetMetricDataInput) SetEndTime(v time.Time) *GetMetricDataInput { + s.EndTime = &v return s } // SetFilters sets the Filters field's value. -func (s *GetCurrentMetricDataInput) SetFilters(v *Filters) *GetCurrentMetricDataInput { +func (s *GetMetricDataInput) SetFilters(v *Filters) *GetMetricDataInput { s.Filters = v return s } // SetGroupings sets the Groupings field's value. -func (s *GetCurrentMetricDataInput) SetGroupings(v []*string) *GetCurrentMetricDataInput { +func (s *GetMetricDataInput) SetGroupings(v []*string) *GetMetricDataInput { s.Groupings = v return s } +// SetHistoricalMetrics sets the HistoricalMetrics field's value. +func (s *GetMetricDataInput) SetHistoricalMetrics(v []*HistoricalMetric) *GetMetricDataInput { + s.HistoricalMetrics = v + return s +} + // SetInstanceId sets the InstanceId field's value. -func (s *GetCurrentMetricDataInput) SetInstanceId(v string) *GetCurrentMetricDataInput { +func (s *GetMetricDataInput) SetInstanceId(v string) *GetMetricDataInput { s.InstanceId = &v return s } // SetMaxResults sets the MaxResults field's value. -func (s *GetCurrentMetricDataInput) SetMaxResults(v int64) *GetCurrentMetricDataInput { +func (s *GetMetricDataInput) SetMaxResults(v int64) *GetMetricDataInput { s.MaxResults = &v return s } // SetNextToken sets the NextToken field's value. -func (s *GetCurrentMetricDataInput) SetNextToken(v string) *GetCurrentMetricDataInput { +func (s *GetMetricDataInput) SetNextToken(v string) *GetMetricDataInput { s.NextToken = &v return s } -type GetCurrentMetricDataOutput struct { - _ struct{} `type:"structure"` +// SetStartTime sets the StartTime field's value. +func (s *GetMetricDataInput) SetStartTime(v time.Time) *GetMetricDataInput { + s.StartTime = &v + return s +} - // The time at which CurrentMetricData was retrieved and cached for pagination. - DataSnapshotTime *time.Time `type:"timestamp"` +type GetMetricDataOutput struct { + _ struct{} `type:"structure"` - // A list of CurrentMetricResult objects organized by Dimensions combining with - // CurrentMetricDataCollections. + // Information about the historical metrics. // - // Dimensions is the resourceId specified in the Filters of the request. - // - // Collections is a list of CurrentMetricData objects with corresponding values - // to the CurrentMetrics specified in the request. - // - // If no Grouping is specified in the request, Collections is a summary for - // the CurrentMetric returned. - MetricResults []*CurrentMetricResult `type:"list"` + // If no grouping is specified, a summary of metric data is returned. + MetricResults []*HistoricalMetricResult `type:"list"` - // A string returned in the response. Use the value returned in the response - // as the value of the NextToken in a subsequent request to retrieve the next - // set of results. + // If there are additional results, this is the token for the next set of results. // // The token expires after 5 minutes from the time it is created. Subsequent - // requests that use the NextToken must use the same request parameters as the - // request that generated the token. + // requests that use the token must use the same request parameters as the request + // that generated the token. NextToken *string `type:"string"` } // String returns the string representation -func (s GetCurrentMetricDataOutput) String() string { +func (s GetMetricDataOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetCurrentMetricDataOutput) GoString() string { +func (s GetMetricDataOutput) GoString() string { return s.String() } -// SetDataSnapshotTime sets the DataSnapshotTime field's value. -func (s *GetCurrentMetricDataOutput) SetDataSnapshotTime(v time.Time) *GetCurrentMetricDataOutput { - s.DataSnapshotTime = &v - return s -} - // SetMetricResults sets the MetricResults field's value. -func (s *GetCurrentMetricDataOutput) SetMetricResults(v []*CurrentMetricResult) *GetCurrentMetricDataOutput { +func (s *GetMetricDataOutput) SetMetricResults(v []*HistoricalMetricResult) *GetMetricDataOutput { s.MetricResults = v return s } // SetNextToken sets the NextToken field's value. -func (s *GetCurrentMetricDataOutput) SetNextToken(v string) *GetCurrentMetricDataOutput { +func (s *GetMetricDataOutput) SetNextToken(v string) *GetMetricDataOutput { s.NextToken = &v return s } -type GetFederationTokenInput struct { +// Contains information about a hierarchy group. +type HierarchyGroup struct { _ struct{} `type:"structure"` - // The identifier for your Amazon Connect instance. To find the ID of your instance, - // open the AWS console and select Amazon Connect. Select the alias of the instance - // in the Instance alias column. The instance ID is displayed in the Overview - // section of your instance settings. For example, the instance ID is the set - // of characters at the end of the instance ARN, after instance/, such as 10a4c4eb-f57e-4d4c-b602-bf39176ced07. - // - // InstanceId is a required field - InstanceId *string `location:"uri" locationName:"InstanceId" min:"1" type:"string" required:"true"` + // The Amazon Resource Name (ARN) of the hierarchy group. + Arn *string `type:"string"` + + // Information about the levels in the hierarchy group. + HierarchyPath *HierarchyPath `type:"structure"` + + // The identifier of the hierarchy group. + Id *string `type:"string"` + + // The identifier of the level in the hierarchy group. + LevelId *string `type:"string"` + + // The name of the hierarchy group. + Name *string `type:"string"` } // String returns the string representation -func (s GetFederationTokenInput) String() string { +func (s HierarchyGroup) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetFederationTokenInput) GoString() string { +func (s HierarchyGroup) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetFederationTokenInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetFederationTokenInput"} - if s.InstanceId == nil { - invalidParams.Add(request.NewErrParamRequired("InstanceId")) - } - if s.InstanceId != nil && len(*s.InstanceId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("InstanceId", 1)) - } +// SetArn sets the Arn field's value. +func (s *HierarchyGroup) SetArn(v string) *HierarchyGroup { + s.Arn = &v + return s +} - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetHierarchyPath sets the HierarchyPath field's value. +func (s *HierarchyGroup) SetHierarchyPath(v *HierarchyPath) *HierarchyGroup { + s.HierarchyPath = v + return s } -// SetInstanceId sets the InstanceId field's value. -func (s *GetFederationTokenInput) SetInstanceId(v string) *GetFederationTokenInput { - s.InstanceId = &v +// SetId sets the Id field's value. +func (s *HierarchyGroup) SetId(v string) *HierarchyGroup { + s.Id = &v return s } -type GetFederationTokenOutput struct { +// SetLevelId sets the LevelId field's value. +func (s *HierarchyGroup) SetLevelId(v string) *HierarchyGroup { + s.LevelId = &v + return s +} + +// SetName sets the Name field's value. +func (s *HierarchyGroup) SetName(v string) *HierarchyGroup { + s.Name = &v + return s +} + +// Contains summary information about a hierarchy group. +type HierarchyGroupSummary struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the hierarchy group. + Arn *string `type:"string"` + + // The identifier of the hierarchy group. + Id *string `type:"string"` + + // The name of the hierarchy group. + Name *string `type:"string"` +} + +// String returns the string representation +func (s HierarchyGroupSummary) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s HierarchyGroupSummary) GoString() string { + return s.String() +} + +// SetArn sets the Arn field's value. +func (s *HierarchyGroupSummary) SetArn(v string) *HierarchyGroupSummary { + s.Arn = &v + return s +} + +// SetId sets the Id field's value. +func (s *HierarchyGroupSummary) SetId(v string) *HierarchyGroupSummary { + s.Id = &v + return s +} + +// SetName sets the Name field's value. +func (s *HierarchyGroupSummary) SetName(v string) *HierarchyGroupSummary { + s.Name = &v + return s +} + +// Contains information about a hierarchy level. +type HierarchyLevel struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the hierarchy level. + Arn *string `type:"string"` + + // The identifier of the hierarchy level. + Id *string `type:"string"` + + // The name of the hierarchy level. + Name *string `type:"string"` +} + +// String returns the string representation +func (s HierarchyLevel) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s HierarchyLevel) GoString() string { + return s.String() +} + +// SetArn sets the Arn field's value. +func (s *HierarchyLevel) SetArn(v string) *HierarchyLevel { + s.Arn = &v + return s +} + +// SetId sets the Id field's value. +func (s *HierarchyLevel) SetId(v string) *HierarchyLevel { + s.Id = &v + return s +} + +// SetName sets the Name field's value. +func (s *HierarchyLevel) SetName(v string) *HierarchyLevel { + s.Name = &v + return s +} + +// Contains information about the levels of a hierarchy group. +type HierarchyPath struct { + _ struct{} `type:"structure"` + + // Information about level five. + LevelFive *HierarchyGroupSummary `type:"structure"` + + // Information about level four. + LevelFour *HierarchyGroupSummary `type:"structure"` + + // Information about level one. + LevelOne *HierarchyGroupSummary `type:"structure"` + + // Information about level three. + LevelThree *HierarchyGroupSummary `type:"structure"` + + // Information about level two. + LevelTwo *HierarchyGroupSummary `type:"structure"` +} + +// String returns the string representation +func (s HierarchyPath) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s HierarchyPath) GoString() string { + return s.String() +} + +// SetLevelFive sets the LevelFive field's value. +func (s *HierarchyPath) SetLevelFive(v *HierarchyGroupSummary) *HierarchyPath { + s.LevelFive = v + return s +} + +// SetLevelFour sets the LevelFour field's value. +func (s *HierarchyPath) SetLevelFour(v *HierarchyGroupSummary) *HierarchyPath { + s.LevelFour = v + return s +} + +// SetLevelOne sets the LevelOne field's value. +func (s *HierarchyPath) SetLevelOne(v *HierarchyGroupSummary) *HierarchyPath { + s.LevelOne = v + return s +} + +// SetLevelThree sets the LevelThree field's value. +func (s *HierarchyPath) SetLevelThree(v *HierarchyGroupSummary) *HierarchyPath { + s.LevelThree = v + return s +} + +// SetLevelTwo sets the LevelTwo field's value. +func (s *HierarchyPath) SetLevelTwo(v *HierarchyGroupSummary) *HierarchyPath { + s.LevelTwo = v + return s +} + +// Contains information about a hierarchy structure. +type HierarchyStructure struct { _ struct{} `type:"structure"` - // The credentials to use for federation. - Credentials *Credentials `type:"structure"` + // Information about level five. + LevelFive *HierarchyLevel `type:"structure"` + + // Information about level four. + LevelFour *HierarchyLevel `type:"structure"` + + // Information about level one. + LevelOne *HierarchyLevel `type:"structure"` + + // Information about level three. + LevelThree *HierarchyLevel `type:"structure"` + + // Information about level two. + LevelTwo *HierarchyLevel `type:"structure"` } // String returns the string representation -func (s GetFederationTokenOutput) String() string { +func (s HierarchyStructure) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetFederationTokenOutput) GoString() string { +func (s HierarchyStructure) GoString() string { return s.String() } -// SetCredentials sets the Credentials field's value. -func (s *GetFederationTokenOutput) SetCredentials(v *Credentials) *GetFederationTokenOutput { - s.Credentials = v +// SetLevelFive sets the LevelFive field's value. +func (s *HierarchyStructure) SetLevelFive(v *HierarchyLevel) *HierarchyStructure { + s.LevelFive = v return s } -type GetMetricDataInput struct { - _ struct{} `type:"structure"` - - // The timestamp, in UNIX Epoch time format, at which to end the reporting interval - // for the retrieval of historical metrics data. The time must be specified - // using an interval of 5 minutes, such as 11:00, 11:05, 11:10, and must be - // later than the StartTime timestamp. - // - // The time range between StartTime and EndTime must be less than 24 hours. - // - // EndTime is a required field - EndTime *time.Time `type:"timestamp" required:"true"` - - // A Filters object that contains a list of queue IDs or queue ARNs, up to 100, - // or a list of Channels to use to filter the metrics returned in the response. - // Metric data is retrieved only for the resources associated with the IDs, - // ARNs, or Channels included in the filter. You can use both IDs and ARNs together - // in a request. Only VOICE is supported for Channel. - // - // To find the ARN for a queue, open the queue you want to use in the Amazon - // Connect Queue editor. The ARN for the queue is displayed in the address bar - // as part of the URL. For example, the queue ARN is the set of characters at - // the end of the URL, after 'id=' such as arn:aws:connect:us-east-1:270923740243:instance/78fb859d-1b7d-44b1-8aa3-12f0835c5855/queue/1d1a4575-9618-40ab-bbeb-81e45795fe61. - // The queue ID is also included in the URL, and is the string after 'queue/'. - // - // Filters is a required field - Filters *Filters `type:"structure" required:"true"` - - // The grouping applied to the metrics returned. For example, when results are - // grouped by queueId, the metrics returned are grouped by queue. The values - // returned apply to the metrics for each queue rather than aggregated for all - // queues. - // - // The current version supports grouping by Queue - // - // If no Grouping is included in the request, a summary of HistoricalMetrics - // for all queues is returned. - Groupings []*string `type:"list"` +// SetLevelFour sets the LevelFour field's value. +func (s *HierarchyStructure) SetLevelFour(v *HierarchyLevel) *HierarchyStructure { + s.LevelFour = v + return s +} - // A list of HistoricalMetric objects that contain the metrics to retrieve with - // the request. - // - // A HistoricalMetric object contains: HistoricalMetricName, Statistic, Threshold, - // and Unit. - // - // You must list each metric to retrieve data for in the request. For each historical - // metric you include in the request, you must include a Unit and a Statistic. - // - // The following historical metrics are available: - // - // CONTACTS_QUEUED - // - // Unit: COUNT - // - // Statistic: SUM - // - // CONTACTS_HANDLED - // - // Unit: COUNT - // - // Statistics: SUM - // - // CONTACTS_ABANDONED - // - // Unit: COUNT - // - // Statistics: SUM - // - // CONTACTS_CONSULTED - // - // Unit: COUNT - // - // Statistics: SUM - // - // CONTACTS_AGENT_HUNG_UP_FIRST - // - // Unit: COUNT - // - // Statistics: SUM - // - // CONTACTS_HANDLED_INCOMING - // - // Unit: COUNT - // - // Statistics: SUM - // - // CONTACTS_HANDLED_OUTBOUND - // - // Unit: COUNT - // - // Statistics: SUM - // - // CONTACTS_HOLD_ABANDONS - // - // Unit: COUNT - // - // Statistics: SUM - // - // CONTACTS_TRANSFERRED_IN - // - // Unit: COUNT - // - // Statistics: SUM - // - // CONTACTS_TRANSFERRED_OUT - // - // Unit: COUNT - // - // Statistics: SUM - // - // CONTACTS_TRANSFERRED_IN_FROM_QUEUE - // - // Unit: COUNT - // - // Statistics: SUM - // - // CONTACTS_TRANSFERRED_OUT_FROM_QUEUE - // - // Unit: COUNT - // - // Statistics: SUM - // - // CALLBACK_CONTACTS_HANDLED - // - // Unit: COUNT - // - // Statistics: SUM - // - // CALLBACK_CONTACTS_HANDLED - // - // Unit: COUNT - // - // Statistics: SUM - // - // API_CONTACTS_HANDLED - // - // Unit: COUNT - // - // Statistics: SUM - // - // CONTACTS_MISSED - // - // Unit: COUNT - // - // Statistics: SUM - // - // OCCUPANCY - // - // Unit: PERCENT - // - // Statistics: AVG - // - // HANDLE_TIME - // - // Unit: SECONDS - // - // Statistics: AVG - // - // AFTER_CONTACT_WORK_TIME - // - // Unit: SECONDS - // - // Statistics: AVG - // - // QUEUED_TIME - // - // Unit: SECONDS - // - // Statistics: MAX - // - // ABANDON_TIME - // - // Unit: COUNT - // - // Statistics: SUM - // - // QUEUE_ANSWER_TIME - // - // Unit: SECONDS - // - // Statistics: AVG - // - // HOLD_TIME - // - // Unit: SECONDS - // - // Statistics: AVG - // - // INTERACTION_TIME - // - // Unit: SECONDS - // - // Statistics: AVG - // - // INTERACTION_AND_HOLD_TIME - // - // Unit: SECONDS - // - // Statistics: AVG - // - // SERVICE_LEVEL - // - // Unit: PERCENT - // - // Statistics: AVG - // - // Threshold: Only "Less than" comparisons are supported, with the following - // service level thresholds: 15, 20, 25, 30, 45, 60, 90, 120, 180, 240, 300, - // 600 - // - // HistoricalMetrics is a required field - HistoricalMetrics []*HistoricalMetric `type:"list" required:"true"` +// SetLevelOne sets the LevelOne field's value. +func (s *HierarchyStructure) SetLevelOne(v *HierarchyLevel) *HierarchyStructure { + s.LevelOne = v + return s +} - // The identifier for your Amazon Connect instance. To find the ID of your instance, - // open the AWS console and select Amazon Connect. Select the alias of the instance - // in the Instance alias column. The instance ID is displayed in the Overview - // section of your instance settings. For example, the instance ID is the set - // of characters at the end of the instance ARN, after instance/, such as 10a4c4eb-f57e-4d4c-b602-bf39176ced07. - // - // InstanceId is a required field - InstanceId *string `location:"uri" locationName:"InstanceId" min:"1" type:"string" required:"true"` +// SetLevelThree sets the LevelThree field's value. +func (s *HierarchyStructure) SetLevelThree(v *HierarchyLevel) *HierarchyStructure { + s.LevelThree = v + return s +} - // Indicates the maximum number of results to return per page in the response, - // between 1-100. - MaxResults *int64 `min:"1" type:"integer"` +// SetLevelTwo sets the LevelTwo field's value. +func (s *HierarchyStructure) SetLevelTwo(v *HierarchyLevel) *HierarchyStructure { + s.LevelTwo = v + return s +} - // 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 `type:"string"` +// Contains information about a historical metric. +type HistoricalMetric struct { + _ struct{} `type:"structure"` - // The timestamp, in UNIX Epoch time format, at which to start the reporting - // interval for the retrieval of historical metrics data. The time must be specified - // using a multiple of 5 minutes, such as 10:05, 10:10, 10:15. - // - // StartTime cannot be earlier than 24 hours before the time of the request. - // Historical metrics are available in Amazon Connect only for 24 hours. - // - // StartTime is a required field - StartTime *time.Time `type:"timestamp" required:"true"` -} + // The name of the metric. + Name *string `type:"string" enum:"HistoricalMetricName"` -// String returns the string representation -func (s GetMetricDataInput) String() string { - return awsutil.Prettify(s) -} + // The statistic for the metric. + Statistic *string `type:"string" enum:"Statistic"` -// GoString returns the string representation -func (s GetMetricDataInput) GoString() string { - return s.String() -} + // The threshold for the metric, used with service level metrics. + Threshold *Threshold `type:"structure"` -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetMetricDataInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetMetricDataInput"} - if s.EndTime == nil { - invalidParams.Add(request.NewErrParamRequired("EndTime")) - } - if s.Filters == nil { - invalidParams.Add(request.NewErrParamRequired("Filters")) - } - if s.HistoricalMetrics == nil { - invalidParams.Add(request.NewErrParamRequired("HistoricalMetrics")) - } - 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.MaxResults != nil && *s.MaxResults < 1 { - invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) - } - if s.StartTime == nil { - invalidParams.Add(request.NewErrParamRequired("StartTime")) - } - if s.Filters != nil { - if err := s.Filters.Validate(); err != nil { - invalidParams.AddNested("Filters", err.(request.ErrInvalidParams)) - } - } + // The unit for the metric. + Unit *string `type:"string" enum:"Unit"` +} - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// String returns the string representation +func (s HistoricalMetric) String() string { + return awsutil.Prettify(s) } -// SetEndTime sets the EndTime field's value. -func (s *GetMetricDataInput) SetEndTime(v time.Time) *GetMetricDataInput { - s.EndTime = &v - return s +// GoString returns the string representation +func (s HistoricalMetric) GoString() string { + return s.String() } -// SetFilters sets the Filters field's value. -func (s *GetMetricDataInput) SetFilters(v *Filters) *GetMetricDataInput { - s.Filters = v +// SetName sets the Name field's value. +func (s *HistoricalMetric) SetName(v string) *HistoricalMetric { + s.Name = &v return s } -// SetGroupings sets the Groupings field's value. -func (s *GetMetricDataInput) SetGroupings(v []*string) *GetMetricDataInput { - s.Groupings = v +// SetStatistic sets the Statistic field's value. +func (s *HistoricalMetric) SetStatistic(v string) *HistoricalMetric { + s.Statistic = &v return s } -// SetHistoricalMetrics sets the HistoricalMetrics field's value. -func (s *GetMetricDataInput) SetHistoricalMetrics(v []*HistoricalMetric) *GetMetricDataInput { - s.HistoricalMetrics = v +// SetThreshold sets the Threshold field's value. +func (s *HistoricalMetric) SetThreshold(v *Threshold) *HistoricalMetric { + s.Threshold = v return s } -// SetInstanceId sets the InstanceId field's value. -func (s *GetMetricDataInput) SetInstanceId(v string) *GetMetricDataInput { - s.InstanceId = &v +// SetUnit sets the Unit field's value. +func (s *HistoricalMetric) SetUnit(v string) *HistoricalMetric { + s.Unit = &v return s } -// SetMaxResults sets the MaxResults field's value. -func (s *GetMetricDataInput) SetMaxResults(v int64) *GetMetricDataInput { - s.MaxResults = &v - return s +// Contains the data for a historical metric. +type HistoricalMetricData struct { + _ struct{} `type:"structure"` + + // Information about the metric. + Metric *HistoricalMetric `type:"structure"` + + // The value of the metric. + Value *float64 `type:"double"` } -// SetNextToken sets the NextToken field's value. -func (s *GetMetricDataInput) SetNextToken(v string) *GetMetricDataInput { - s.NextToken = &v +// String returns the string representation +func (s HistoricalMetricData) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s HistoricalMetricData) GoString() string { + return s.String() +} + +// SetMetric sets the Metric field's value. +func (s *HistoricalMetricData) SetMetric(v *HistoricalMetric) *HistoricalMetricData { + s.Metric = v return s } -// SetStartTime sets the StartTime field's value. -func (s *GetMetricDataInput) SetStartTime(v time.Time) *GetMetricDataInput { - s.StartTime = &v +// SetValue sets the Value field's value. +func (s *HistoricalMetricData) SetValue(v float64) *HistoricalMetricData { + s.Value = &v return s } -type GetMetricDataOutput struct { +// Contains information about the historical metrics retrieved. +type HistoricalMetricResult struct { _ struct{} `type:"structure"` - // A list of HistoricalMetricResult objects, organized by Dimensions, which - // is the ID of the resource specified in the Filters used for the request. - // The metrics are combined with the metrics included in Collections, which - // is a list of HisotricalMetricData objects. - // - // If no Grouping is specified in the request, Collections includes summary - // data for the HistoricalMetrics. - MetricResults []*HistoricalMetricResult `type:"list"` + // The set of metrics. + Collections []*HistoricalMetricData `type:"list"` - // A string returned in the response. Use the value returned in the response - // as the value of the NextToken in a subsequent request to retrieve the next - // set of results. - // - // The token expires after 5 minutes from the time it is created. Subsequent - // requests that use the NextToken must use the same request parameters as the - // request that generated the token. - NextToken *string `type:"string"` + // The dimension for the metrics. + Dimensions *Dimensions `type:"structure"` } // String returns the string representation -func (s GetMetricDataOutput) String() string { +func (s HistoricalMetricResult) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetMetricDataOutput) GoString() string { +func (s HistoricalMetricResult) GoString() string { return s.String() } -// SetMetricResults sets the MetricResults field's value. -func (s *GetMetricDataOutput) SetMetricResults(v []*HistoricalMetricResult) *GetMetricDataOutput { - s.MetricResults = v +// SetCollections sets the Collections field's value. +func (s *HistoricalMetricResult) SetCollections(v []*HistoricalMetricData) *HistoricalMetricResult { + s.Collections = v return s } -// SetNextToken sets the NextToken field's value. -func (s *GetMetricDataOutput) SetNextToken(v string) *GetMetricDataOutput { - s.NextToken = &v +// SetDimensions sets the Dimensions field's value. +func (s *HistoricalMetricResult) SetDimensions(v *Dimensions) *HistoricalMetricResult { + s.Dimensions = v return s } -// A HierarchyGroup object that contains information about a hierarchy group -// in your Amazon Connect instance. -type HierarchyGroup struct { +// Contains summary information about hours of operation for a contact center. +type HoursOfOperationSummary struct { _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) for the hierarchy group. + // The Amazon Resource Name (ARN) of the hours of operation. Arn *string `type:"string"` - // A HierarchyPath object that contains information about the levels in the - // hierarchy group. - HierarchyPath *HierarchyPath `type:"structure"` - - // The identifier for the hierarchy group. + // The identifier of the hours of operation. Id *string `type:"string"` - // The identifier for the level in the hierarchy group. - LevelId *string `type:"string"` - - // The name of the hierarchy group in your instance. + // The name of the hours of operation. Name *string `type:"string"` } // String returns the string representation -func (s HierarchyGroup) String() string { +func (s HoursOfOperationSummary) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s HierarchyGroup) GoString() string { +func (s HoursOfOperationSummary) GoString() string { return s.String() } // SetArn sets the Arn field's value. -func (s *HierarchyGroup) SetArn(v string) *HierarchyGroup { +func (s *HoursOfOperationSummary) SetArn(v string) *HoursOfOperationSummary { s.Arn = &v return s } -// SetHierarchyPath sets the HierarchyPath field's value. -func (s *HierarchyGroup) SetHierarchyPath(v *HierarchyPath) *HierarchyGroup { - s.HierarchyPath = v - return s -} - // SetId sets the Id field's value. -func (s *HierarchyGroup) SetId(v string) *HierarchyGroup { +func (s *HoursOfOperationSummary) SetId(v string) *HoursOfOperationSummary { s.Id = &v return s } -// SetLevelId sets the LevelId field's value. -func (s *HierarchyGroup) SetLevelId(v string) *HierarchyGroup { - s.LevelId = &v - return s -} - // SetName sets the Name field's value. -func (s *HierarchyGroup) SetName(v string) *HierarchyGroup { +func (s *HoursOfOperationSummary) SetName(v string) *HoursOfOperationSummary { s.Name = &v return s } -// A HierarchyGroupSummary object that contains information about the hierarchy -// group, including ARN, Id, and Name. -type HierarchyGroupSummary struct { +type ListContactFlowsInput struct { _ struct{} `type:"structure"` - // The ARN for the hierarchy group. - Arn *string `type:"string"` + // The type of contact flow. + ContactFlowTypes []*string `location:"querystring" locationName:"contactFlowTypes" type:"list"` - // The identifier of the hierarchy group. - Id *string `type:"string"` + // The identifier of the Amazon Connect instance. + // + // InstanceId is a required field + InstanceId *string `location:"uri" locationName:"InstanceId" min:"1" type:"string" required:"true"` - // The name of the hierarchy group. - Name *string `type:"string"` + // The maximimum number of results to return per page. + MaxResults *int64 `location:"querystring" locationName:"maxResults" 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 `location:"querystring" locationName:"nextToken" type:"string"` } // String returns the string representation -func (s HierarchyGroupSummary) String() string { +func (s ListContactFlowsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s HierarchyGroupSummary) GoString() string { +func (s ListContactFlowsInput) GoString() string { return s.String() } -// SetArn sets the Arn field's value. -func (s *HierarchyGroupSummary) SetArn(v string) *HierarchyGroupSummary { - s.Arn = &v +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListContactFlowsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListContactFlowsInput"} + 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.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetContactFlowTypes sets the ContactFlowTypes field's value. +func (s *ListContactFlowsInput) SetContactFlowTypes(v []*string) *ListContactFlowsInput { + s.ContactFlowTypes = v return s } -// SetId sets the Id field's value. -func (s *HierarchyGroupSummary) SetId(v string) *HierarchyGroupSummary { - s.Id = &v +// SetInstanceId sets the InstanceId field's value. +func (s *ListContactFlowsInput) SetInstanceId(v string) *ListContactFlowsInput { + s.InstanceId = &v return s } -// SetName sets the Name field's value. -func (s *HierarchyGroupSummary) SetName(v string) *HierarchyGroupSummary { - s.Name = &v +// SetMaxResults sets the MaxResults field's value. +func (s *ListContactFlowsInput) SetMaxResults(v int64) *ListContactFlowsInput { + s.MaxResults = &v return s } -// A HierarchyLevel object that contains information about the levels in a hierarchy -// group, including ARN, Id, and Name. -type HierarchyLevel struct { - _ struct{} `type:"structure"` +// SetNextToken sets the NextToken field's value. +func (s *ListContactFlowsInput) SetNextToken(v string) *ListContactFlowsInput { + s.NextToken = &v + return s +} - // The ARN for the hierarchy group level. - Arn *string `type:"string"` +type ListContactFlowsOutput struct { + _ struct{} `type:"structure"` - // The identifier for the hierarchy group level. - Id *string `type:"string"` + // Information about the contact flows. + ContactFlowSummaryList []*ContactFlowSummary `type:"list"` - // The name of the hierarchy group level. - Name *string `type:"string"` + // If there are additional results, this is the token for the next set of results. + NextToken *string `type:"string"` } // String returns the string representation -func (s HierarchyLevel) String() string { +func (s ListContactFlowsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s HierarchyLevel) GoString() string { +func (s ListContactFlowsOutput) GoString() string { return s.String() } -// SetArn sets the Arn field's value. -func (s *HierarchyLevel) SetArn(v string) *HierarchyLevel { - s.Arn = &v - return s -} - -// SetId sets the Id field's value. -func (s *HierarchyLevel) SetId(v string) *HierarchyLevel { - s.Id = &v +// SetContactFlowSummaryList sets the ContactFlowSummaryList field's value. +func (s *ListContactFlowsOutput) SetContactFlowSummaryList(v []*ContactFlowSummary) *ListContactFlowsOutput { + s.ContactFlowSummaryList = v return s } -// SetName sets the Name field's value. -func (s *HierarchyLevel) SetName(v string) *HierarchyLevel { - s.Name = &v +// SetNextToken sets the NextToken field's value. +func (s *ListContactFlowsOutput) SetNextToken(v string) *ListContactFlowsOutput { + s.NextToken = &v return s } -// A HierarchyPath object that contains information about the levels of the -// hierarchy group. -type HierarchyPath struct { +type ListHoursOfOperationsInput struct { _ struct{} `type:"structure"` - // A HierarchyGroupSummary object that contains information about the level - // of the hierarchy group, including ARN, Id, and Name. - LevelFive *HierarchyGroupSummary `type:"structure"` - - // A HierarchyGroupSummary object that contains information about the level - // of the hierarchy group, including ARN, Id, and Name. - LevelFour *HierarchyGroupSummary `type:"structure"` - - // A HierarchyGroupSummary object that contains information about the level - // of the hierarchy group, including ARN, Id, and Name. - LevelOne *HierarchyGroupSummary `type:"structure"` + // The identifier of the Amazon Connect instance. + // + // InstanceId is a required field + InstanceId *string `location:"uri" locationName:"InstanceId" min:"1" type:"string" required:"true"` - // A HierarchyGroupSummary object that contains information about the level - // of the hierarchy group, including ARN, Id, and Name. - LevelThree *HierarchyGroupSummary `type:"structure"` + // The maximimum number of results to return per page. + MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"` - // A HierarchyGroupSummary object that contains information about the level - // of the hierarchy group, including ARN, Id, and Name. - LevelTwo *HierarchyGroupSummary `type:"structure"` + // 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 `location:"querystring" locationName:"nextToken" type:"string"` } // String returns the string representation -func (s HierarchyPath) String() string { +func (s ListHoursOfOperationsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s HierarchyPath) GoString() string { +func (s ListHoursOfOperationsInput) GoString() string { return s.String() } -// SetLevelFive sets the LevelFive field's value. -func (s *HierarchyPath) SetLevelFive(v *HierarchyGroupSummary) *HierarchyPath { - s.LevelFive = v +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListHoursOfOperationsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListHoursOfOperationsInput"} + 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.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetInstanceId sets the InstanceId field's value. +func (s *ListHoursOfOperationsInput) SetInstanceId(v string) *ListHoursOfOperationsInput { + s.InstanceId = &v return s } -// SetLevelFour sets the LevelFour field's value. -func (s *HierarchyPath) SetLevelFour(v *HierarchyGroupSummary) *HierarchyPath { - s.LevelFour = v +// SetMaxResults sets the MaxResults field's value. +func (s *ListHoursOfOperationsInput) SetMaxResults(v int64) *ListHoursOfOperationsInput { + s.MaxResults = &v return s } -// SetLevelOne sets the LevelOne field's value. -func (s *HierarchyPath) SetLevelOne(v *HierarchyGroupSummary) *HierarchyPath { - s.LevelOne = v +// SetNextToken sets the NextToken field's value. +func (s *ListHoursOfOperationsInput) SetNextToken(v string) *ListHoursOfOperationsInput { + s.NextToken = &v return s } -// SetLevelThree sets the LevelThree field's value. -func (s *HierarchyPath) SetLevelThree(v *HierarchyGroupSummary) *HierarchyPath { - s.LevelThree = v +type ListHoursOfOperationsOutput struct { + _ struct{} `type:"structure"` + + // Information about the hours of operation. + HoursOfOperationSummaryList []*HoursOfOperationSummary `type:"list"` + + // If there are additional results, this is the token for the next set of results. + NextToken *string `type:"string"` +} + +// String returns the string representation +func (s ListHoursOfOperationsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListHoursOfOperationsOutput) GoString() string { + return s.String() +} + +// SetHoursOfOperationSummaryList sets the HoursOfOperationSummaryList field's value. +func (s *ListHoursOfOperationsOutput) SetHoursOfOperationSummaryList(v []*HoursOfOperationSummary) *ListHoursOfOperationsOutput { + s.HoursOfOperationSummaryList = v return s } -// SetLevelTwo sets the LevelTwo field's value. -func (s *HierarchyPath) SetLevelTwo(v *HierarchyGroupSummary) *HierarchyPath { - s.LevelTwo = v +// SetNextToken sets the NextToken field's value. +func (s *ListHoursOfOperationsOutput) SetNextToken(v string) *ListHoursOfOperationsOutput { + s.NextToken = &v return s } -// A HierarchyStructure object that contains information about the hierarchy -// group structure. -type HierarchyStructure struct { +type ListPhoneNumbersInput struct { _ struct{} `type:"structure"` - // A HierarchyLevel object that contains information about the hierarchy group - // level. - LevelFive *HierarchyLevel `type:"structure"` + // The identifier of the Amazon Connect instance. + // + // InstanceId is a required field + InstanceId *string `location:"uri" locationName:"InstanceId" min:"1" type:"string" required:"true"` - // A HierarchyLevel object that contains information about the hierarchy group - // level. - LevelFour *HierarchyLevel `type:"structure"` + // The maximimum number of results to return per page. + MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"` - // A HierarchyLevel object that contains information about the hierarchy group - // level. - LevelOne *HierarchyLevel `type:"structure"` + // 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 `location:"querystring" locationName:"nextToken" type:"string"` - // A HierarchyLevel object that contains information about the hierarchy group - // level. - LevelThree *HierarchyLevel `type:"structure"` + // The ISO country code. + PhoneNumberCountryCodes []*string `location:"querystring" locationName:"phoneNumberCountryCodes" type:"list"` - // A HierarchyLevel object that contains information about the hierarchy group - // level. - LevelTwo *HierarchyLevel `type:"structure"` + // The type of phone number. + PhoneNumberTypes []*string `location:"querystring" locationName:"phoneNumberTypes" type:"list"` } // String returns the string representation -func (s HierarchyStructure) String() string { +func (s ListPhoneNumbersInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s HierarchyStructure) GoString() string { +func (s ListPhoneNumbersInput) GoString() string { return s.String() } -// SetLevelFive sets the LevelFive field's value. -func (s *HierarchyStructure) SetLevelFive(v *HierarchyLevel) *HierarchyStructure { - s.LevelFive = v +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListPhoneNumbersInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListPhoneNumbersInput"} + 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.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetInstanceId sets the InstanceId field's value. +func (s *ListPhoneNumbersInput) SetInstanceId(v string) *ListPhoneNumbersInput { + s.InstanceId = &v return s } -// SetLevelFour sets the LevelFour field's value. -func (s *HierarchyStructure) SetLevelFour(v *HierarchyLevel) *HierarchyStructure { - s.LevelFour = v +// SetMaxResults sets the MaxResults field's value. +func (s *ListPhoneNumbersInput) SetMaxResults(v int64) *ListPhoneNumbersInput { + s.MaxResults = &v return s } -// SetLevelOne sets the LevelOne field's value. -func (s *HierarchyStructure) SetLevelOne(v *HierarchyLevel) *HierarchyStructure { - s.LevelOne = v +// SetNextToken sets the NextToken field's value. +func (s *ListPhoneNumbersInput) SetNextToken(v string) *ListPhoneNumbersInput { + s.NextToken = &v return s } -// SetLevelThree sets the LevelThree field's value. -func (s *HierarchyStructure) SetLevelThree(v *HierarchyLevel) *HierarchyStructure { - s.LevelThree = v +// SetPhoneNumberCountryCodes sets the PhoneNumberCountryCodes field's value. +func (s *ListPhoneNumbersInput) SetPhoneNumberCountryCodes(v []*string) *ListPhoneNumbersInput { + s.PhoneNumberCountryCodes = v return s } -// SetLevelTwo sets the LevelTwo field's value. -func (s *HierarchyStructure) SetLevelTwo(v *HierarchyLevel) *HierarchyStructure { - s.LevelTwo = v +// SetPhoneNumberTypes sets the PhoneNumberTypes field's value. +func (s *ListPhoneNumbersInput) SetPhoneNumberTypes(v []*string) *ListPhoneNumbersInput { + s.PhoneNumberTypes = v return s } -// A HistoricalMetric object that contains the Name, Unit, Statistic, and Threshold -// for the metric. -type HistoricalMetric struct { +type ListPhoneNumbersOutput struct { _ struct{} `type:"structure"` - // The name of the historical metric. - Name *string `type:"string" enum:"HistoricalMetricName"` - - // The statistic for the metric. - Statistic *string `type:"string" enum:"Statistic"` - - // The threshold for the metric, used with service level metrics. - Threshold *Threshold `type:"structure"` + // If there are additional results, this is the token for the next set of results. + NextToken *string `type:"string"` - // The unit for the metric. - Unit *string `type:"string" enum:"Unit"` + // Information about the phone numbers. + PhoneNumberSummaryList []*PhoneNumberSummary `type:"list"` } // String returns the string representation -func (s HistoricalMetric) String() string { +func (s ListPhoneNumbersOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s HistoricalMetric) GoString() string { +func (s ListPhoneNumbersOutput) GoString() string { return s.String() } -// SetName sets the Name field's value. -func (s *HistoricalMetric) SetName(v string) *HistoricalMetric { - s.Name = &v +// SetNextToken sets the NextToken field's value. +func (s *ListPhoneNumbersOutput) SetNextToken(v string) *ListPhoneNumbersOutput { + s.NextToken = &v return s } -// SetStatistic sets the Statistic field's value. -func (s *HistoricalMetric) SetStatistic(v string) *HistoricalMetric { - s.Statistic = &v +// SetPhoneNumberSummaryList sets the PhoneNumberSummaryList field's value. +func (s *ListPhoneNumbersOutput) SetPhoneNumberSummaryList(v []*PhoneNumberSummary) *ListPhoneNumbersOutput { + s.PhoneNumberSummaryList = v return s } -// SetThreshold sets the Threshold field's value. -func (s *HistoricalMetric) SetThreshold(v *Threshold) *HistoricalMetric { - s.Threshold = v - return s -} +type ListQueuesInput struct { + _ struct{} `type:"structure"` -// SetUnit sets the Unit field's value. -func (s *HistoricalMetric) SetUnit(v string) *HistoricalMetric { - s.Unit = &v - return s -} + // The identifier of the Amazon Connect instance. + // + // InstanceId is a required field + InstanceId *string `location:"uri" locationName:"InstanceId" min:"1" type:"string" required:"true"` -// A HistoricalMetricData object than contains a Metric and a Value. -type HistoricalMetricData struct { - _ struct{} `type:"structure"` + // The maximimum number of results to return per page. + MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"` - // A HistoricalMetric object. - Metric *HistoricalMetric `type:"structure"` + // 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 `location:"querystring" locationName:"nextToken" type:"string"` - // The Value of the metric. - Value *float64 `type:"double"` + // The type of queue. + QueueTypes []*string `location:"querystring" locationName:"queueTypes" type:"list"` } // String returns the string representation -func (s HistoricalMetricData) String() string { +func (s ListQueuesInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s HistoricalMetricData) GoString() string { +func (s ListQueuesInput) GoString() string { return s.String() } -// SetMetric sets the Metric field's value. -func (s *HistoricalMetricData) SetMetric(v *HistoricalMetric) *HistoricalMetricData { - s.Metric = v +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListQueuesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListQueuesInput"} + 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.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetInstanceId sets the InstanceId field's value. +func (s *ListQueuesInput) SetInstanceId(v string) *ListQueuesInput { + s.InstanceId = &v return s } -// SetValue sets the Value field's value. -func (s *HistoricalMetricData) SetValue(v float64) *HistoricalMetricData { - s.Value = &v +// SetMaxResults sets the MaxResults field's value. +func (s *ListQueuesInput) SetMaxResults(v int64) *ListQueuesInput { + s.MaxResults = &v return s } -// The metrics data returned from a GetMetricData operation. -type HistoricalMetricResult struct { +// SetNextToken sets the NextToken field's value. +func (s *ListQueuesInput) SetNextToken(v string) *ListQueuesInput { + s.NextToken = &v + return s +} + +// SetQueueTypes sets the QueueTypes field's value. +func (s *ListQueuesInput) SetQueueTypes(v []*string) *ListQueuesInput { + s.QueueTypes = v + return s +} + +type ListQueuesOutput struct { _ struct{} `type:"structure"` - // A list of HistoricalMetricData objects. - Collections []*HistoricalMetricData `type:"list"` + // If there are additional results, this is the token for the next set of results. + NextToken *string `type:"string"` - // The Dimensions for the metrics. - Dimensions *Dimensions `type:"structure"` + // Information about the queues. + QueueSummaryList []*QueueSummary `type:"list"` } // String returns the string representation -func (s HistoricalMetricResult) String() string { +func (s ListQueuesOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s HistoricalMetricResult) GoString() string { +func (s ListQueuesOutput) GoString() string { return s.String() } -// SetCollections sets the Collections field's value. -func (s *HistoricalMetricResult) SetCollections(v []*HistoricalMetricData) *HistoricalMetricResult { - s.Collections = v +// SetNextToken sets the NextToken field's value. +func (s *ListQueuesOutput) SetNextToken(v string) *ListQueuesOutput { + s.NextToken = &v return s } -// SetDimensions sets the Dimensions field's value. -func (s *HistoricalMetricResult) SetDimensions(v *Dimensions) *HistoricalMetricResult { - s.Dimensions = v +// SetQueueSummaryList sets the QueueSummaryList field's value. +func (s *ListQueuesOutput) SetQueueSummaryList(v []*QueueSummary) *ListQueuesOutput { + s.QueueSummaryList = v return s } type ListRoutingProfilesInput struct { _ struct{} `type:"structure"` - // The identifier for your Amazon Connect instance. To find the ID of your instance, - // open the AWS console and select Amazon Connect. Select the alias of the instance - // in the Instance alias column. The instance ID is displayed in the Overview - // section of your instance settings. For example, the instance ID is the set - // of characters at the end of the instance ARN, after instance/, such as 10a4c4eb-f57e-4d4c-b602-bf39176ced07. + // The identifier of the Amazon Connect instance. // // InstanceId is a required field InstanceId *string `location:"uri" locationName:"InstanceId" min:"1" type:"string" required:"true"` - // The maximum number of routing profiles to return in the response. + // The maximimum number of results to return per page. MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"` // The token for the next set of results. Use the value returned in the previous @@ -4073,13 +5270,10 @@ func (s *ListRoutingProfilesInput) SetNextToken(v string) *ListRoutingProfilesIn type ListRoutingProfilesOutput struct { _ struct{} `type:"structure"` - // A string returned in the response. Use the value returned in the response - // as the value of the NextToken in a subsequent request to retrieve the next - // set of results. + // If there are additional results, this is the token for the next set of results. NextToken *string `type:"string"` - // An array of RoutingProfileSummary objects that include the ARN, Id, and Name - // of the routing profile. + // Information about the routing profiles. RoutingProfileSummaryList []*RoutingProfileSummary `type:"list"` } @@ -4108,16 +5302,12 @@ func (s *ListRoutingProfilesOutput) SetRoutingProfileSummaryList(v []*RoutingPro type ListSecurityProfilesInput struct { _ struct{} `type:"structure"` - // The identifier for your Amazon Connect instance. To find the ID of your instance, - // open the AWS console and select Amazon Connect. Select the alias of the instance - // in the Instance alias column. The instance ID is displayed in the Overview - // section of your instance settings. For example, the instance ID is the set - // of characters at the end of the instance ARN, after instance/, such as 10a4c4eb-f57e-4d4c-b602-bf39176ced07. + // The identifier of the Amazon Connect instance. // // InstanceId is a required field InstanceId *string `location:"uri" locationName:"InstanceId" min:"1" type:"string" required:"true"` - // The maximum number of security profiles to return. + // The maximimum number of results to return per page. MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"` // The token for the next set of results. Use the value returned in the previous @@ -4175,12 +5365,10 @@ func (s *ListSecurityProfilesInput) SetNextToken(v string) *ListSecurityProfiles type ListSecurityProfilesOutput struct { _ struct{} `type:"structure"` - // A string returned in the response. Use the value returned in the response - // as the value of the NextToken in a subsequent request to retrieve the next - // set of results. + // If there are additional results, this is the token for the next set of results. NextToken *string `type:"string"` - // An array of SecurityProfileSummary objects. + // Information about the security profiles. SecurityProfileSummaryList []*SecurityProfileSummary `type:"list"` } @@ -4209,16 +5397,12 @@ func (s *ListSecurityProfilesOutput) SetSecurityProfileSummaryList(v []*Security type ListUserHierarchyGroupsInput struct { _ struct{} `type:"structure"` - // The identifier for your Amazon Connect instance. To find the ID of your instance, - // open the AWS console and select Amazon Connect. Select the alias of the instance - // in the Instance alias column. The instance ID is displayed in the Overview - // section of your instance settings. For example, the instance ID is the set - // of characters at the end of the instance ARN, after instance/, such as 10a4c4eb-f57e-4d4c-b602-bf39176ced07. + // The identifier of the Amazon Connect instance. // // InstanceId is a required field InstanceId *string `location:"uri" locationName:"InstanceId" min:"1" type:"string" required:"true"` - // The maximum number of hierarchy groups to return. + // The maximimum number of results to return per page. MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"` // The token for the next set of results. Use the value returned in the previous @@ -4276,12 +5460,10 @@ func (s *ListUserHierarchyGroupsInput) SetNextToken(v string) *ListUserHierarchy type ListUserHierarchyGroupsOutput struct { _ struct{} `type:"structure"` - // A string returned in the response. Use the value returned in the response - // as the value of the NextToken in a subsequent request to retrieve the next - // set of results. + // If there are additional results, this is the token for the next set of results. NextToken *string `type:"string"` - // An array of HierarchyGroupSummary objects. + // Information about the hierarchy groups. UserHierarchyGroupSummaryList []*HierarchyGroupSummary `type:"list"` } @@ -4310,16 +5492,12 @@ func (s *ListUserHierarchyGroupsOutput) SetUserHierarchyGroupSummaryList(v []*Hi type ListUsersInput struct { _ struct{} `type:"structure"` - // The identifier for your Amazon Connect instance. To find the ID of your instance, - // open the AWS console and select Amazon Connect. Select the alias of the instance - // in the Instance alias column. The instance ID is displayed in the Overview - // section of your instance settings. For example, the instance ID is the set - // of characters at the end of the instance ARN, after instance/, such as 10a4c4eb-f57e-4d4c-b602-bf39176ced07. + // The identifier of the Amazon Connect instance. // // InstanceId is a required field InstanceId *string `location:"uri" locationName:"InstanceId" min:"1" type:"string" required:"true"` - // The maximum number of results to return in the response. + // The maximimum number of results to return per page. MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"` // The token for the next set of results. Use the value returned in the previous @@ -4377,13 +5555,10 @@ func (s *ListUsersInput) SetNextToken(v string) *ListUsersInput { type ListUsersOutput struct { _ struct{} `type:"structure"` - // A string returned in the response. Use the value returned in the response - // as the value of the NextToken in a subsequent request to retrieve the next - // set of results. + // If there are additional results, this is the token for the next set of results. NextToken *string `type:"string"` - // An array of UserSummary objects that contain information about the users - // in your instance. + // Information about the users. UserSummaryList []*UserSummary `type:"list"` } @@ -4409,15 +5584,74 @@ func (s *ListUsersOutput) SetUserSummaryList(v []*UserSummary) *ListUsersOutput return s } -// A QueueReference object that contains the the QueueId and ARN for the queue -// resource for which metrics are returned. +// Contains summary information about a phone number for a contact center. +type PhoneNumberSummary struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the phone number. + Arn *string `type:"string"` + + // The identifier of the phone number. + Id *string `type:"string"` + + // The phone number. + 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 +func (s PhoneNumberSummary) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PhoneNumberSummary) GoString() string { + return s.String() +} + +// SetArn sets the Arn field's value. +func (s *PhoneNumberSummary) SetArn(v string) *PhoneNumberSummary { + s.Arn = &v + return s +} + +// SetId sets the Id field's value. +func (s *PhoneNumberSummary) SetId(v string) *PhoneNumberSummary { + s.Id = &v + return s +} + +// SetPhoneNumber sets the PhoneNumber field's value. +func (s *PhoneNumberSummary) SetPhoneNumber(v string) *PhoneNumberSummary { + s.PhoneNumber = &v + return s +} + +// SetPhoneNumberCountryCode sets the PhoneNumberCountryCode field's value. +func (s *PhoneNumberSummary) SetPhoneNumberCountryCode(v string) *PhoneNumberSummary { + s.PhoneNumberCountryCode = &v + return s +} + +// SetPhoneNumberType sets the PhoneNumberType field's value. +func (s *PhoneNumberSummary) SetPhoneNumberType(v string) *PhoneNumberSummary { + s.PhoneNumberType = &v + return s +} + +// Contains information about a queue resource for which metrics are returned. type QueueReference struct { _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) of queue. + // The Amazon Resource Name (ARN) of the queue. Arn *string `type:"string"` - // The ID of the queue associated with the metrics returned. + // The identifier of the queue. Id *string `type:"string"` } @@ -4443,12 +5677,62 @@ func (s *QueueReference) SetId(v string) *QueueReference { return s } -// A RoutingProfileSummary object that contains information about a routing -// profile, including ARN, Id, and Name. +// Contains summary information about a queue. +type QueueSummary struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the queue. + Arn *string `type:"string"` + + // The identifier of the queue. + Id *string `type:"string"` + + // The name of the queue. + Name *string `min:"1" type:"string"` + + // The type of queue. + QueueType *string `type:"string" enum:"QueueType"` +} + +// String returns the string representation +func (s QueueSummary) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s QueueSummary) GoString() string { + return s.String() +} + +// SetArn sets the Arn field's value. +func (s *QueueSummary) SetArn(v string) *QueueSummary { + s.Arn = &v + return s +} + +// SetId sets the Id field's value. +func (s *QueueSummary) SetId(v string) *QueueSummary { + s.Id = &v + return s +} + +// SetName sets the Name field's value. +func (s *QueueSummary) SetName(v string) *QueueSummary { + s.Name = &v + return s +} + +// SetQueueType sets the QueueType field's value. +func (s *QueueSummary) SetQueueType(v string) *QueueSummary { + s.QueueType = &v + return s +} + +// Contains summary information about a routing profile. type RoutingProfileSummary struct { _ struct{} `type:"structure"` - // The ARN of the routing profile. + // The Amazon Resource Name (ARN) of the routing profile. Arn *string `type:"string"` // The identifier of the routing profile. @@ -4486,12 +5770,11 @@ func (s *RoutingProfileSummary) SetName(v string) *RoutingProfileSummary { return s } -// A SecurityProfileSummary object that contains information about a security -// profile, including ARN, Id, Name. +// Contains information about a security profile. type SecurityProfileSummary struct { _ struct{} `type:"structure"` - // The ARN of the security profile. + // The Amazon Resource Name (ARN) of the security profile. Arn *string `type:"string"` // The identifier of the security profile. @@ -4532,15 +5815,12 @@ func (s *SecurityProfileSummary) SetName(v string) *SecurityProfileSummary { type StartOutboundVoiceContactInput struct { _ struct{} `type:"structure"` - // Specify a custom key-value pair using an attribute map. The attributes are - // standard Amazon Connect attributes, and can be accessed in contact flows - // just like any other contact attributes. + // A custom key-value pair using an attribute map. The attributes are standard + // Amazon Connect attributes, and can be accessed in contact flows just like + // any other contact attributes. // // There can be up to 32,768 UTF-8 bytes across all key-value pairs per contact. // Attribute keys can include only alphanumeric, dash, and underscore characters. - // - // For example, if you want play a greeting when the customer answers the call, - // you can pass the customer name in attributes similar to the following: Attributes map[string]*string `type:"map"` // A unique, case-sensitive identifier that you provide to ensure the idempotency @@ -4549,42 +5829,29 @@ type StartOutboundVoiceContactInput struct { // a new contact is started. ClientToken *string `type:"string" idempotencyToken:"true"` - // The identifier for the contact flow to connect the outbound call to. - // - // To find the ContactFlowId, open the contact flow you want to use in the Amazon - // Connect contact flow editor. The ID for the contact flow is displayed in - // the address bar as part of the URL. For example, the contact flow ID is the - // set of characters at the end of the URL, after 'contact-flow/' such as 78ea8fd5-2659-4f2b-b528-699760ccfc1b. + // The identifier of the contact flow for the outbound call. // // ContactFlowId is a required field ContactFlowId *string `type:"string" required:"true"` - // The phone number of the customer in E.164 format. + // The phone number of the customer, in E.164 format. // // DestinationPhoneNumber is a required field DestinationPhoneNumber *string `type:"string" required:"true"` - // The identifier for your Amazon Connect instance. To find the ID of your instance, - // open the AWS console and select Amazon Connect. Select the alias of the instance - // in the Instance alias column. The instance ID is displayed in the Overview - // section of your instance settings. For example, the instance ID is the set - // of characters at the end of the instance ARN, after instance/, such as 10a4c4eb-f57e-4d4c-b602-bf39176ced07. + // The identifier of the Amazon Connect instance. // // InstanceId is a required field InstanceId *string `min:"1" type:"string" required:"true"` - // The queue to add the call to. If you specify a queue, the phone displayed - // for caller ID is the phone number specified in the queue. If you do not specify - // a queue, the queue used will be the queue defined in the contact flow. - // - // To find the QueueId, open the queue you want to use in the Amazon Connect - // Queue editor. The ID for the queue is displayed in the address bar as part - // of the URL. For example, the queue ID is the set of characters at the end - // of the URL, after 'queue/' such as queue/aeg40574-2d01-51c3-73d6-bf8624d2168c. + // The queue for the call. If you specify a queue, the phone displayed for caller + // ID is the phone number specified in the queue. If you do not specify a queue, + // the queue defined in the contact flow is used. If you do not specify a queue, + // you must specify a source phone number. QueueId *string `type:"string"` - // The phone number, in E.164 format, associated with your Amazon Connect instance - // to use for the outbound call. + // The phone number associated with the Amazon Connect instance, in E.164 format. + // If you do not specify a source phone number, you must specify a queue. SourcePhoneNumber *string `type:"string"` } @@ -4665,7 +5932,7 @@ func (s *StartOutboundVoiceContactInput) SetSourcePhoneNumber(v string) *StartOu type StartOutboundVoiceContactOutput struct { _ struct{} `type:"structure"` - // The unique identifier of this contact within your Amazon Connect instance. + // The identifier of this contact within the Amazon Connect instance. ContactId *string `min:"1" type:"string"` } @@ -4688,16 +5955,12 @@ func (s *StartOutboundVoiceContactOutput) SetContactId(v string) *StartOutboundV type StopContactInput struct { _ struct{} `type:"structure"` - // The unique identifier of the contact to end. + // The ID of the contact. // // ContactId is a required field ContactId *string `min:"1" type:"string" required:"true"` - // The identifier for your Amazon Connect instance. To find the ID of your instance, - // open the AWS console and select Amazon Connect. Select the alias of the instance - // in the Instance alias column. The instance ID is displayed in the Overview - // section of your instance settings. For example, the instance ID is the set - // of characters at the end of the instance ARN, after instance/, such as 10a4c4eb-f57e-4d4c-b602-bf39176ced07. + // The identifier of the Amazon Connect instance. // // InstanceId is a required field InstanceId *string `min:"1" type:"string" required:"true"` @@ -4761,17 +6024,14 @@ func (s StopContactOutput) GoString() string { return s.String() } -// A Threshold object that includes a comparison and ThresholdValue to compare -// to. Used with service level metrics. +// Contains information about the threshold for service level metrics. type Threshold struct { _ struct{} `type:"structure"` - // The Threshold to use to compare service level metrics to. Only "Less than" - // (LT) comparisons are supported. + // The type of comparison. Only "less than" (LT) comparisons are supported. Comparison *string `type:"string" enum:"Comparison"` - // The value of the threshold to compare the metric to. Only "Less than" (LT) - // comparisons are supported. + // The threshold value to compare. ThresholdValue *float64 `type:"double"` } @@ -4800,28 +6060,22 @@ func (s *Threshold) SetThresholdValue(v float64) *Threshold { type UpdateContactAttributesInput struct { _ struct{} `type:"structure"` - // Specify a custom key-value pair using an attribute map. The attributes are - // standard Amazon Connect attributes, and can be accessed in contact flows - // just like any other contact attributes. + // The Amazon Connect attributes. These attributes can be accessed in contact + // flows just like any other contact attributes. // - // There can be up to 32,768 UTF-8 bytes across all key-value pairs per contact. + // You can have up to 32,768 UTF-8 bytes across all attributes for a contact. // Attribute keys can include only alphanumeric, dash, and underscore characters. // // Attributes is a required field Attributes map[string]*string `type:"map" required:"true"` - // The unique identifier of the contact for which to update attributes. This - // is the identifier for the contact associated with the first interaction with - // the contact center. + // The identifier of the contact. This is the identifier of the contact associated + // with the first interaction with the contact center. // // InitialContactId is a required field InitialContactId *string `min:"1" type:"string" required:"true"` - // The identifier for your Amazon Connect instance. To find the ID of your instance, - // open the AWS console and select Amazon Connect. Select the alias of the instance - // in the Instance alias column. The instance ID is displayed in the Overview - // section of your instance settings. For example, the instance ID is the set - // of characters at the end of the instance ARN, after instance/, such as 10a4c4eb-f57e-4d4c-b602-bf39176ced07. + // The identifier of the Amazon Connect instance. // // InstanceId is a required field InstanceId *string `min:"1" type:"string" required:"true"` @@ -4897,19 +6151,15 @@ func (s UpdateContactAttributesOutput) GoString() string { type UpdateUserHierarchyInput struct { _ struct{} `type:"structure"` - // The identifier for the hierarchy group to assign to the user. + // The identifier of the hierarchy group. HierarchyGroupId *string `type:"string"` - // The identifier for your Amazon Connect instance. To find the ID of your instance, - // open the AWS console and select Amazon Connect. Select the alias of the instance - // in the Instance alias column. The instance ID is displayed in the Overview - // section of your instance settings. For example, the instance ID is the set - // of characters at the end of the instance ARN, after instance/, such as 10a4c4eb-f57e-4d4c-b602-bf39176ced07. + // The identifier of the Amazon Connect instance. // // InstanceId is a required field InstanceId *string `location:"uri" locationName:"InstanceId" min:"1" type:"string" required:"true"` - // The identifier of the user account to assign the hierarchy group to. + // The identifier of the user account. // // UserId is a required field UserId *string `location:"uri" locationName:"UserId" type:"string" required:"true"` @@ -4982,21 +6232,17 @@ func (s UpdateUserHierarchyOutput) GoString() string { type UpdateUserIdentityInfoInput struct { _ struct{} `type:"structure"` - // A UserIdentityInfo object. + // The identity information for the user. // // IdentityInfo is a required field IdentityInfo *UserIdentityInfo `type:"structure" required:"true"` - // The identifier for your Amazon Connect instance. To find the ID of your instance, - // open the AWS console and select Amazon Connect. Select the alias of the instance - // in the Instance alias column. The instance ID is displayed in the Overview - // section of your instance settings. For example, the instance ID is the set - // of characters at the end of the instance ARN, after instance/, such as 10a4c4eb-f57e-4d4c-b602-bf39176ced07. + // The identifier of the Amazon Connect instance. // // InstanceId is a required field InstanceId *string `location:"uri" locationName:"InstanceId" min:"1" type:"string" required:"true"` - // The identifier for the user account to update identity information for. + // The identifier of the user account. // // UserId is a required field UserId *string `location:"uri" locationName:"UserId" type:"string" required:"true"` @@ -5077,22 +6323,17 @@ func (s UpdateUserIdentityInfoOutput) GoString() string { type UpdateUserPhoneConfigInput struct { _ struct{} `type:"structure"` - // The identifier for your Amazon Connect instance. To find the ID of your instance, - // open the AWS console and select Amazon Connect. Select the alias of the instance - // in the Instance alias column. The instance ID is displayed in the Overview - // section of your instance settings. For example, the instance ID is the set - // of characters at the end of the instance ARN, after instance/, such as 10a4c4eb-f57e-4d4c-b602-bf39176ced07. + // The identifier of the Amazon Connect instance. // // InstanceId is a required field InstanceId *string `location:"uri" locationName:"InstanceId" min:"1" type:"string" required:"true"` - // A UserPhoneConfig object that contains settings for AfterContactWorkTimeLimit, - // AutoAccept, DeskPhoneNumber, and PhoneType to assign to the user. + // Information about phone configuration settings for the user. // // PhoneConfig is a required field PhoneConfig *UserPhoneConfig `type:"structure" required:"true"` - // The identifier for the user account to change phone settings for. + // The identifier of the user account. // // UserId is a required field UserId *string `location:"uri" locationName:"UserId" type:"string" required:"true"` @@ -5173,21 +6414,17 @@ func (s UpdateUserPhoneConfigOutput) GoString() string { type UpdateUserRoutingProfileInput struct { _ struct{} `type:"structure"` - // The identifier for your Amazon Connect instance. To find the ID of your instance, - // open the AWS console and select Amazon Connect. Select the alias of the instance - // in the Instance alias column. The instance ID is displayed in the Overview - // section of your instance settings. For example, the instance ID is the set - // of characters at the end of the instance ARN, after instance/, such as 10a4c4eb-f57e-4d4c-b602-bf39176ced07. + // The identifier of the Amazon Connect instance. // // InstanceId is a required field InstanceId *string `location:"uri" locationName:"InstanceId" min:"1" type:"string" required:"true"` - // The identifier of the routing profile to assign to the user. + // The identifier of the routing profile for the user. // // RoutingProfileId is a required field RoutingProfileId *string `type:"string" required:"true"` - // The identifier for the user account to assign the routing profile to. + // The identifier of the user account. // // UserId is a required field UserId *string `location:"uri" locationName:"UserId" type:"string" required:"true"` @@ -5263,21 +6500,17 @@ func (s UpdateUserRoutingProfileOutput) GoString() string { type UpdateUserSecurityProfilesInput struct { _ struct{} `type:"structure"` - // The identifier for your Amazon Connect instance. To find the ID of your instance, - // open the AWS console and select Amazon Connect. Select the alias of the instance - // in the Instance alias column. The instance ID is displayed in the Overview - // section of your instance settings. For example, the instance ID is the set - // of characters at the end of the instance ARN, after instance/, such as 10a4c4eb-f57e-4d4c-b602-bf39176ced07. + // The identifier of the Amazon Connect instance. // // InstanceId is a required field InstanceId *string `location:"uri" locationName:"InstanceId" min:"1" type:"string" required:"true"` - // The identifiers for the security profiles to assign to the user. + // The identifiers of the security profiles for the user. // // SecurityProfileIds is a required field SecurityProfileIds []*string `min:"1" type:"list" required:"true"` - // The identifier of the user account to assign the security profiles. + // The identifier of the user account. // // UserId is a required field UserId *string `location:"uri" locationName:"UserId" type:"string" required:"true"` @@ -5353,34 +6586,32 @@ func (s UpdateUserSecurityProfilesOutput) GoString() string { return s.String() } -// A User object that contains information about a user account in your Amazon -// Connect instance, including configuration settings. +// Contains information about a user account for a Amazon Connect instance. type User struct { _ struct{} `type:"structure"` - // The ARN of the user account. + // The Amazon Resource Name (ARN) of the user account. Arn *string `type:"string"` - // The directory Id for the user account in the existing directory used for - // identity management. + // The identifier of the user account in the directory used for identity management. DirectoryUserId *string `type:"string"` - // The identifier for the hierarchy group assigned to the user. + // The identifier of the hierarchy group for the user. HierarchyGroupId *string `type:"string"` // The identifier of the user account. Id *string `type:"string"` - // A UserIdentityInfo object. + // Information about the user identity. IdentityInfo *UserIdentityInfo `type:"structure"` - // A UserPhoneConfig object. + // Information about the phone configuration for the user. PhoneConfig *UserPhoneConfig `type:"structure"` - // The identifier of the routing profile assigned to the user. + // The identifier of the routing profile for the user. RoutingProfileId *string `type:"string"` - // The identifier(s) for the security profile assigned to the user. + // The identifiers of the security profiles for the user. SecurityProfileIds []*string `min:"1" type:"list"` // The user name assigned to the user account. @@ -5451,21 +6682,20 @@ func (s *User) SetUsername(v string) *User { return s } -// A UserIdentityInfo object that contains information about the user's identity, -// including email address, first name, and last name. +// Contains information about the identity of a user. type UserIdentityInfo struct { _ struct{} `type:"structure"` - // The email address added to the user account. If you are using SAML for identity - // management and include this parameter, an InvalidRequestException is returned. + // The email address. If you are using SAML for identity management and include + // this parameter, an error is returned. Email *string `type:"string"` - // The first name used in the user account. This is required if you are using - // Amazon Connect or SAML for identity management. + // The first name. This is required if you are using Amazon Connect or SAML + // for identity management. FirstName *string `min:"1" type:"string"` - // The last name used in the user account. This is required if you are using - // Amazon Connect or SAML for identity management. + // The last name. This is required if you are using Amazon Connect or SAML for + // identity management. LastName *string `min:"1" type:"string"` } @@ -5513,21 +6743,20 @@ func (s *UserIdentityInfo) SetLastName(v string) *UserIdentityInfo { return s } -// A UserPhoneConfig object that contains information about the user phone configuration -// settings. +// Contains information about the phone configuration settings for a user. type UserPhoneConfig struct { _ struct{} `type:"structure"` - // The After Call Work (ACW) timeout setting, in seconds, for the user. + // The After Call Work (ACW) timeout setting, in seconds. AfterContactWorkTimeLimit *int64 `type:"integer"` - // The Auto accept setting for the user, Yes or No. + // The Auto accept setting. AutoAccept *bool `type:"boolean"` // The phone number for the user's desk phone. DeskPhoneNumber *string `type:"string"` - // The phone type selected for the user, either Soft phone or Desk phone. + // The phone type. // // PhoneType is a required field PhoneType *string `type:"string" required:"true" enum:"PhoneType"` @@ -5580,18 +6809,17 @@ func (s *UserPhoneConfig) SetPhoneType(v string) *UserPhoneConfig { return s } -// A UserSummary object that contains Information about a user, including ARN, -// Id, and user name. +// Contains summary information about a user. type UserSummary struct { _ struct{} `type:"structure"` - // The ARN for the user account. + // The Amazon Resource Name (ARN) of the user account. Arn *string `type:"string"` - // The identifier for the user account. + // The identifier of the user account. Id *string `type:"string"` - // The Amazon Connect user name for the user account. + // The Amazon Connect user name of the user account. Username *string `min:"1" type:"string"` } @@ -5623,17 +6851,46 @@ func (s *UserSummary) SetUsername(v string) *UserSummary { return s } -const ( - // ChannelVoice is a Channel enum value - ChannelVoice = "VOICE" -) +const ( + // ChannelVoice is a Channel enum value + ChannelVoice = "VOICE" +) + +const ( + // ComparisonLt is a Comparison enum value + ComparisonLt = "LT" +) + +const ( + // ContactFlowTypeContactFlow is a ContactFlowType enum value + ContactFlowTypeContactFlow = "CONTACT_FLOW" + + // ContactFlowTypeCustomerQueue is a ContactFlowType enum value + ContactFlowTypeCustomerQueue = "CUSTOMER_QUEUE" + + // ContactFlowTypeCustomerHold is a ContactFlowType enum value + ContactFlowTypeCustomerHold = "CUSTOMER_HOLD" + + // ContactFlowTypeCustomerWhisper is a ContactFlowType enum value + ContactFlowTypeCustomerWhisper = "CUSTOMER_WHISPER" + + // ContactFlowTypeAgentHold is a ContactFlowType enum value + ContactFlowTypeAgentHold = "AGENT_HOLD" + + // ContactFlowTypeAgentWhisper is a ContactFlowType enum value + ContactFlowTypeAgentWhisper = "AGENT_WHISPER" -const ( - // ComparisonLt is a Comparison enum value - ComparisonLt = "LT" + // ContactFlowTypeOutboundWhisper is a ContactFlowType enum value + ContactFlowTypeOutboundWhisper = "OUTBOUND_WHISPER" + + // ContactFlowTypeAgentTransfer is a ContactFlowType enum value + ContactFlowTypeAgentTransfer = "AGENT_TRANSFER" + + // ContactFlowTypeQueueTransfer is a ContactFlowType enum value + ContactFlowTypeQueueTransfer = "QUEUE_TRANSFER" ) -// A list of current metric names. +// The current metric names. const ( // CurrentMetricNameAgentsOnline is a CurrentMetricName enum value CurrentMetricNameAgentsOnline = "AGENTS_ONLINE" @@ -5674,7 +6931,7 @@ const ( GroupingChannel = "CHANNEL" ) -// A list of historical metric names. +// The historical metric names. const ( // HistoricalMetricNameContactsQueued is a HistoricalMetricName enum value HistoricalMetricNameContactsQueued = "CONTACTS_QUEUED" @@ -5752,6 +7009,727 @@ const ( HistoricalMetricNameServiceLevel = "SERVICE_LEVEL" ) +const ( + // PhoneNumberCountryCodeAf is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeAf = "AF" + + // PhoneNumberCountryCodeAl is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeAl = "AL" + + // PhoneNumberCountryCodeDz is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeDz = "DZ" + + // PhoneNumberCountryCodeAs is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeAs = "AS" + + // PhoneNumberCountryCodeAd is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeAd = "AD" + + // PhoneNumberCountryCodeAo is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeAo = "AO" + + // PhoneNumberCountryCodeAi is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeAi = "AI" + + // PhoneNumberCountryCodeAq is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeAq = "AQ" + + // PhoneNumberCountryCodeAg is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeAg = "AG" + + // PhoneNumberCountryCodeAr is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeAr = "AR" + + // PhoneNumberCountryCodeAm is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeAm = "AM" + + // PhoneNumberCountryCodeAw is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeAw = "AW" + + // PhoneNumberCountryCodeAu is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeAu = "AU" + + // PhoneNumberCountryCodeAt is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeAt = "AT" + + // PhoneNumberCountryCodeAz is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeAz = "AZ" + + // PhoneNumberCountryCodeBs is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeBs = "BS" + + // PhoneNumberCountryCodeBh is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeBh = "BH" + + // PhoneNumberCountryCodeBd is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeBd = "BD" + + // PhoneNumberCountryCodeBb is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeBb = "BB" + + // PhoneNumberCountryCodeBy is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeBy = "BY" + + // PhoneNumberCountryCodeBe is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeBe = "BE" + + // PhoneNumberCountryCodeBz is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeBz = "BZ" + + // PhoneNumberCountryCodeBj is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeBj = "BJ" + + // PhoneNumberCountryCodeBm is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeBm = "BM" + + // PhoneNumberCountryCodeBt is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeBt = "BT" + + // PhoneNumberCountryCodeBo is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeBo = "BO" + + // PhoneNumberCountryCodeBa is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeBa = "BA" + + // PhoneNumberCountryCodeBw is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeBw = "BW" + + // PhoneNumberCountryCodeBr is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeBr = "BR" + + // PhoneNumberCountryCodeIo is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeIo = "IO" + + // PhoneNumberCountryCodeVg is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeVg = "VG" + + // PhoneNumberCountryCodeBn is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeBn = "BN" + + // PhoneNumberCountryCodeBg is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeBg = "BG" + + // PhoneNumberCountryCodeBf is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeBf = "BF" + + // PhoneNumberCountryCodeBi is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeBi = "BI" + + // PhoneNumberCountryCodeKh is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeKh = "KH" + + // PhoneNumberCountryCodeCm is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeCm = "CM" + + // PhoneNumberCountryCodeCa is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeCa = "CA" + + // PhoneNumberCountryCodeCv is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeCv = "CV" + + // PhoneNumberCountryCodeKy is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeKy = "KY" + + // PhoneNumberCountryCodeCf is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeCf = "CF" + + // PhoneNumberCountryCodeTd is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeTd = "TD" + + // PhoneNumberCountryCodeCl is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeCl = "CL" + + // PhoneNumberCountryCodeCn is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeCn = "CN" + + // PhoneNumberCountryCodeCx is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeCx = "CX" + + // PhoneNumberCountryCodeCc is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeCc = "CC" + + // PhoneNumberCountryCodeCo is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeCo = "CO" + + // PhoneNumberCountryCodeKm is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeKm = "KM" + + // PhoneNumberCountryCodeCk is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeCk = "CK" + + // PhoneNumberCountryCodeCr is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeCr = "CR" + + // PhoneNumberCountryCodeHr is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeHr = "HR" + + // PhoneNumberCountryCodeCu is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeCu = "CU" + + // PhoneNumberCountryCodeCw is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeCw = "CW" + + // PhoneNumberCountryCodeCy is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeCy = "CY" + + // PhoneNumberCountryCodeCz is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeCz = "CZ" + + // PhoneNumberCountryCodeCd is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeCd = "CD" + + // PhoneNumberCountryCodeDk is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeDk = "DK" + + // PhoneNumberCountryCodeDj is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeDj = "DJ" + + // PhoneNumberCountryCodeDm is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeDm = "DM" + + // PhoneNumberCountryCodeDo is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeDo = "DO" + + // PhoneNumberCountryCodeTl is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeTl = "TL" + + // PhoneNumberCountryCodeEc is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeEc = "EC" + + // PhoneNumberCountryCodeEg is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeEg = "EG" + + // PhoneNumberCountryCodeSv is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeSv = "SV" + + // PhoneNumberCountryCodeGq is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeGq = "GQ" + + // PhoneNumberCountryCodeEr is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeEr = "ER" + + // PhoneNumberCountryCodeEe is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeEe = "EE" + + // PhoneNumberCountryCodeEt is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeEt = "ET" + + // PhoneNumberCountryCodeFk is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeFk = "FK" + + // PhoneNumberCountryCodeFo is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeFo = "FO" + + // PhoneNumberCountryCodeFj is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeFj = "FJ" + + // PhoneNumberCountryCodeFi is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeFi = "FI" + + // PhoneNumberCountryCodeFr is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeFr = "FR" + + // PhoneNumberCountryCodePf is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodePf = "PF" + + // PhoneNumberCountryCodeGa is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeGa = "GA" + + // PhoneNumberCountryCodeGm is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeGm = "GM" + + // PhoneNumberCountryCodeGe is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeGe = "GE" + + // PhoneNumberCountryCodeDe is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeDe = "DE" + + // PhoneNumberCountryCodeGh is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeGh = "GH" + + // PhoneNumberCountryCodeGi is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeGi = "GI" + + // PhoneNumberCountryCodeGr is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeGr = "GR" + + // PhoneNumberCountryCodeGl is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeGl = "GL" + + // PhoneNumberCountryCodeGd is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeGd = "GD" + + // PhoneNumberCountryCodeGu is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeGu = "GU" + + // PhoneNumberCountryCodeGt is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeGt = "GT" + + // PhoneNumberCountryCodeGg is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeGg = "GG" + + // PhoneNumberCountryCodeGn is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeGn = "GN" + + // PhoneNumberCountryCodeGw is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeGw = "GW" + + // PhoneNumberCountryCodeGy is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeGy = "GY" + + // PhoneNumberCountryCodeHt is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeHt = "HT" + + // PhoneNumberCountryCodeHn is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeHn = "HN" + + // PhoneNumberCountryCodeHk is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeHk = "HK" + + // PhoneNumberCountryCodeHu is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeHu = "HU" + + // PhoneNumberCountryCodeIs is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeIs = "IS" + + // PhoneNumberCountryCodeIn is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeIn = "IN" + + // PhoneNumberCountryCodeId is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeId = "ID" + + // PhoneNumberCountryCodeIr is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeIr = "IR" + + // PhoneNumberCountryCodeIq is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeIq = "IQ" + + // PhoneNumberCountryCodeIe is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeIe = "IE" + + // PhoneNumberCountryCodeIm is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeIm = "IM" + + // PhoneNumberCountryCodeIl is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeIl = "IL" + + // PhoneNumberCountryCodeIt is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeIt = "IT" + + // PhoneNumberCountryCodeCi is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeCi = "CI" + + // PhoneNumberCountryCodeJm is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeJm = "JM" + + // PhoneNumberCountryCodeJp is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeJp = "JP" + + // PhoneNumberCountryCodeJe is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeJe = "JE" + + // PhoneNumberCountryCodeJo is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeJo = "JO" + + // PhoneNumberCountryCodeKz is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeKz = "KZ" + + // PhoneNumberCountryCodeKe is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeKe = "KE" + + // PhoneNumberCountryCodeKi is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeKi = "KI" + + // PhoneNumberCountryCodeKw is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeKw = "KW" + + // PhoneNumberCountryCodeKg is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeKg = "KG" + + // PhoneNumberCountryCodeLa is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeLa = "LA" + + // PhoneNumberCountryCodeLv is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeLv = "LV" + + // PhoneNumberCountryCodeLb is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeLb = "LB" + + // PhoneNumberCountryCodeLs is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeLs = "LS" + + // PhoneNumberCountryCodeLr is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeLr = "LR" + + // PhoneNumberCountryCodeLy is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeLy = "LY" + + // PhoneNumberCountryCodeLi is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeLi = "LI" + + // PhoneNumberCountryCodeLt is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeLt = "LT" + + // PhoneNumberCountryCodeLu is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeLu = "LU" + + // PhoneNumberCountryCodeMo is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeMo = "MO" + + // PhoneNumberCountryCodeMk is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeMk = "MK" + + // PhoneNumberCountryCodeMg is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeMg = "MG" + + // PhoneNumberCountryCodeMw is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeMw = "MW" + + // PhoneNumberCountryCodeMy is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeMy = "MY" + + // PhoneNumberCountryCodeMv is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeMv = "MV" + + // PhoneNumberCountryCodeMl is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeMl = "ML" + + // PhoneNumberCountryCodeMt is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeMt = "MT" + + // PhoneNumberCountryCodeMh is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeMh = "MH" + + // PhoneNumberCountryCodeMr is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeMr = "MR" + + // PhoneNumberCountryCodeMu is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeMu = "MU" + + // PhoneNumberCountryCodeYt is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeYt = "YT" + + // PhoneNumberCountryCodeMx is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeMx = "MX" + + // PhoneNumberCountryCodeFm is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeFm = "FM" + + // PhoneNumberCountryCodeMd is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeMd = "MD" + + // PhoneNumberCountryCodeMc is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeMc = "MC" + + // PhoneNumberCountryCodeMn is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeMn = "MN" + + // PhoneNumberCountryCodeMe is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeMe = "ME" + + // PhoneNumberCountryCodeMs is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeMs = "MS" + + // PhoneNumberCountryCodeMa is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeMa = "MA" + + // PhoneNumberCountryCodeMz is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeMz = "MZ" + + // PhoneNumberCountryCodeMm is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeMm = "MM" + + // PhoneNumberCountryCodeNa is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeNa = "NA" + + // PhoneNumberCountryCodeNr is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeNr = "NR" + + // PhoneNumberCountryCodeNp is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeNp = "NP" + + // PhoneNumberCountryCodeNl is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeNl = "NL" + + // PhoneNumberCountryCodeAn is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeAn = "AN" + + // PhoneNumberCountryCodeNc is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeNc = "NC" + + // PhoneNumberCountryCodeNz is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeNz = "NZ" + + // PhoneNumberCountryCodeNi is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeNi = "NI" + + // PhoneNumberCountryCodeNe is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeNe = "NE" + + // PhoneNumberCountryCodeNg is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeNg = "NG" + + // PhoneNumberCountryCodeNu is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeNu = "NU" + + // PhoneNumberCountryCodeKp is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeKp = "KP" + + // PhoneNumberCountryCodeMp is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeMp = "MP" + + // PhoneNumberCountryCodeNo is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeNo = "NO" + + // PhoneNumberCountryCodeOm is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeOm = "OM" + + // PhoneNumberCountryCodePk is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodePk = "PK" + + // PhoneNumberCountryCodePw is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodePw = "PW" + + // PhoneNumberCountryCodePa is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodePa = "PA" + + // PhoneNumberCountryCodePg is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodePg = "PG" + + // PhoneNumberCountryCodePy is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodePy = "PY" + + // PhoneNumberCountryCodePe is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodePe = "PE" + + // PhoneNumberCountryCodePh is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodePh = "PH" + + // PhoneNumberCountryCodePn is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodePn = "PN" + + // PhoneNumberCountryCodePl is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodePl = "PL" + + // PhoneNumberCountryCodePt is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodePt = "PT" + + // PhoneNumberCountryCodePr is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodePr = "PR" + + // PhoneNumberCountryCodeQa is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeQa = "QA" + + // PhoneNumberCountryCodeCg is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeCg = "CG" + + // PhoneNumberCountryCodeRe is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeRe = "RE" + + // PhoneNumberCountryCodeRo is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeRo = "RO" + + // PhoneNumberCountryCodeRu is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeRu = "RU" + + // PhoneNumberCountryCodeRw is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeRw = "RW" + + // PhoneNumberCountryCodeBl is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeBl = "BL" + + // PhoneNumberCountryCodeSh is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeSh = "SH" + + // PhoneNumberCountryCodeKn is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeKn = "KN" + + // PhoneNumberCountryCodeLc is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeLc = "LC" + + // PhoneNumberCountryCodeMf is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeMf = "MF" + + // PhoneNumberCountryCodePm is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodePm = "PM" + + // PhoneNumberCountryCodeVc is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeVc = "VC" + + // PhoneNumberCountryCodeWs is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeWs = "WS" + + // PhoneNumberCountryCodeSm is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeSm = "SM" + + // PhoneNumberCountryCodeSt is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeSt = "ST" + + // PhoneNumberCountryCodeSa is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeSa = "SA" + + // PhoneNumberCountryCodeSn is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeSn = "SN" + + // PhoneNumberCountryCodeRs is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeRs = "RS" + + // PhoneNumberCountryCodeSc is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeSc = "SC" + + // PhoneNumberCountryCodeSl is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeSl = "SL" + + // PhoneNumberCountryCodeSg is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeSg = "SG" + + // PhoneNumberCountryCodeSx is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeSx = "SX" + + // PhoneNumberCountryCodeSk is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeSk = "SK" + + // PhoneNumberCountryCodeSi is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeSi = "SI" + + // PhoneNumberCountryCodeSb is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeSb = "SB" + + // PhoneNumberCountryCodeSo is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeSo = "SO" + + // PhoneNumberCountryCodeZa is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeZa = "ZA" + + // PhoneNumberCountryCodeKr is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeKr = "KR" + + // PhoneNumberCountryCodeEs is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeEs = "ES" + + // PhoneNumberCountryCodeLk is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeLk = "LK" + + // PhoneNumberCountryCodeSd is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeSd = "SD" + + // PhoneNumberCountryCodeSr is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeSr = "SR" + + // PhoneNumberCountryCodeSj is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeSj = "SJ" + + // PhoneNumberCountryCodeSz is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeSz = "SZ" + + // PhoneNumberCountryCodeSe is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeSe = "SE" + + // PhoneNumberCountryCodeCh is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeCh = "CH" + + // PhoneNumberCountryCodeSy is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeSy = "SY" + + // PhoneNumberCountryCodeTw is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeTw = "TW" + + // PhoneNumberCountryCodeTj is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeTj = "TJ" + + // PhoneNumberCountryCodeTz is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeTz = "TZ" + + // PhoneNumberCountryCodeTh is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeTh = "TH" + + // PhoneNumberCountryCodeTg is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeTg = "TG" + + // PhoneNumberCountryCodeTk is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeTk = "TK" + + // PhoneNumberCountryCodeTo is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeTo = "TO" + + // PhoneNumberCountryCodeTt is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeTt = "TT" + + // PhoneNumberCountryCodeTn is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeTn = "TN" + + // PhoneNumberCountryCodeTr is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeTr = "TR" + + // PhoneNumberCountryCodeTm is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeTm = "TM" + + // PhoneNumberCountryCodeTc is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeTc = "TC" + + // PhoneNumberCountryCodeTv is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeTv = "TV" + + // PhoneNumberCountryCodeVi is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeVi = "VI" + + // PhoneNumberCountryCodeUg is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeUg = "UG" + + // PhoneNumberCountryCodeUa is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeUa = "UA" + + // PhoneNumberCountryCodeAe is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeAe = "AE" + + // PhoneNumberCountryCodeGb is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeGb = "GB" + + // PhoneNumberCountryCodeUs is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeUs = "US" + + // PhoneNumberCountryCodeUy is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeUy = "UY" + + // PhoneNumberCountryCodeUz is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeUz = "UZ" + + // PhoneNumberCountryCodeVu is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeVu = "VU" + + // PhoneNumberCountryCodeVa is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeVa = "VA" + + // PhoneNumberCountryCodeVe is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeVe = "VE" + + // PhoneNumberCountryCodeVn is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeVn = "VN" + + // PhoneNumberCountryCodeWf is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeWf = "WF" + + // PhoneNumberCountryCodeEh is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeEh = "EH" + + // PhoneNumberCountryCodeYe is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeYe = "YE" + + // PhoneNumberCountryCodeZm is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeZm = "ZM" + + // PhoneNumberCountryCodeZw is a PhoneNumberCountryCode enum value + PhoneNumberCountryCodeZw = "ZW" +) + +const ( + // PhoneNumberTypeTollFree is a PhoneNumberType enum value + PhoneNumberTypeTollFree = "TOLL_FREE" + + // PhoneNumberTypeDid is a PhoneNumberType enum value + PhoneNumberTypeDid = "DID" +) + const ( // PhoneTypeSoftPhone is a PhoneType enum value PhoneTypeSoftPhone = "SOFT_PHONE" @@ -5760,6 +7738,14 @@ const ( PhoneTypeDeskPhone = "DESK_PHONE" ) +const ( + // QueueTypeStandard is a QueueType enum value + QueueTypeStandard = "STANDARD" + + // QueueTypeAgent is a QueueType enum value + QueueTypeAgent = "AGENT" +) + const ( // StatisticSum is a Statistic enum value StatisticSum = "SUM" diff --git a/service/connect/connectiface/interface.go b/service/connect/connectiface/interface.go index 107ba3993e..becd91999c 100644 --- a/service/connect/connectiface/interface.go +++ b/service/connect/connectiface/interface.go @@ -102,22 +102,62 @@ type ConnectAPI interface { GetMetricDataPages(*connect.GetMetricDataInput, func(*connect.GetMetricDataOutput, bool) bool) error GetMetricDataPagesWithContext(aws.Context, *connect.GetMetricDataInput, func(*connect.GetMetricDataOutput, bool) bool, ...request.Option) error + ListContactFlows(*connect.ListContactFlowsInput) (*connect.ListContactFlowsOutput, error) + ListContactFlowsWithContext(aws.Context, *connect.ListContactFlowsInput, ...request.Option) (*connect.ListContactFlowsOutput, error) + ListContactFlowsRequest(*connect.ListContactFlowsInput) (*request.Request, *connect.ListContactFlowsOutput) + + ListContactFlowsPages(*connect.ListContactFlowsInput, func(*connect.ListContactFlowsOutput, bool) bool) error + ListContactFlowsPagesWithContext(aws.Context, *connect.ListContactFlowsInput, func(*connect.ListContactFlowsOutput, bool) bool, ...request.Option) error + + ListHoursOfOperations(*connect.ListHoursOfOperationsInput) (*connect.ListHoursOfOperationsOutput, error) + ListHoursOfOperationsWithContext(aws.Context, *connect.ListHoursOfOperationsInput, ...request.Option) (*connect.ListHoursOfOperationsOutput, error) + ListHoursOfOperationsRequest(*connect.ListHoursOfOperationsInput) (*request.Request, *connect.ListHoursOfOperationsOutput) + + ListHoursOfOperationsPages(*connect.ListHoursOfOperationsInput, func(*connect.ListHoursOfOperationsOutput, bool) bool) error + ListHoursOfOperationsPagesWithContext(aws.Context, *connect.ListHoursOfOperationsInput, func(*connect.ListHoursOfOperationsOutput, bool) bool, ...request.Option) error + + ListPhoneNumbers(*connect.ListPhoneNumbersInput) (*connect.ListPhoneNumbersOutput, error) + ListPhoneNumbersWithContext(aws.Context, *connect.ListPhoneNumbersInput, ...request.Option) (*connect.ListPhoneNumbersOutput, error) + ListPhoneNumbersRequest(*connect.ListPhoneNumbersInput) (*request.Request, *connect.ListPhoneNumbersOutput) + + ListPhoneNumbersPages(*connect.ListPhoneNumbersInput, func(*connect.ListPhoneNumbersOutput, bool) bool) error + ListPhoneNumbersPagesWithContext(aws.Context, *connect.ListPhoneNumbersInput, func(*connect.ListPhoneNumbersOutput, bool) bool, ...request.Option) error + + ListQueues(*connect.ListQueuesInput) (*connect.ListQueuesOutput, error) + ListQueuesWithContext(aws.Context, *connect.ListQueuesInput, ...request.Option) (*connect.ListQueuesOutput, error) + ListQueuesRequest(*connect.ListQueuesInput) (*request.Request, *connect.ListQueuesOutput) + + ListQueuesPages(*connect.ListQueuesInput, func(*connect.ListQueuesOutput, bool) bool) error + ListQueuesPagesWithContext(aws.Context, *connect.ListQueuesInput, func(*connect.ListQueuesOutput, bool) bool, ...request.Option) error + ListRoutingProfiles(*connect.ListRoutingProfilesInput) (*connect.ListRoutingProfilesOutput, error) ListRoutingProfilesWithContext(aws.Context, *connect.ListRoutingProfilesInput, ...request.Option) (*connect.ListRoutingProfilesOutput, error) ListRoutingProfilesRequest(*connect.ListRoutingProfilesInput) (*request.Request, *connect.ListRoutingProfilesOutput) + ListRoutingProfilesPages(*connect.ListRoutingProfilesInput, func(*connect.ListRoutingProfilesOutput, bool) bool) error + ListRoutingProfilesPagesWithContext(aws.Context, *connect.ListRoutingProfilesInput, func(*connect.ListRoutingProfilesOutput, bool) bool, ...request.Option) error + ListSecurityProfiles(*connect.ListSecurityProfilesInput) (*connect.ListSecurityProfilesOutput, error) ListSecurityProfilesWithContext(aws.Context, *connect.ListSecurityProfilesInput, ...request.Option) (*connect.ListSecurityProfilesOutput, error) ListSecurityProfilesRequest(*connect.ListSecurityProfilesInput) (*request.Request, *connect.ListSecurityProfilesOutput) + ListSecurityProfilesPages(*connect.ListSecurityProfilesInput, func(*connect.ListSecurityProfilesOutput, bool) bool) error + ListSecurityProfilesPagesWithContext(aws.Context, *connect.ListSecurityProfilesInput, func(*connect.ListSecurityProfilesOutput, bool) bool, ...request.Option) error + ListUserHierarchyGroups(*connect.ListUserHierarchyGroupsInput) (*connect.ListUserHierarchyGroupsOutput, error) ListUserHierarchyGroupsWithContext(aws.Context, *connect.ListUserHierarchyGroupsInput, ...request.Option) (*connect.ListUserHierarchyGroupsOutput, error) ListUserHierarchyGroupsRequest(*connect.ListUserHierarchyGroupsInput) (*request.Request, *connect.ListUserHierarchyGroupsOutput) + ListUserHierarchyGroupsPages(*connect.ListUserHierarchyGroupsInput, func(*connect.ListUserHierarchyGroupsOutput, bool) bool) error + ListUserHierarchyGroupsPagesWithContext(aws.Context, *connect.ListUserHierarchyGroupsInput, func(*connect.ListUserHierarchyGroupsOutput, bool) bool, ...request.Option) error + ListUsers(*connect.ListUsersInput) (*connect.ListUsersOutput, error) ListUsersWithContext(aws.Context, *connect.ListUsersInput, ...request.Option) (*connect.ListUsersOutput, error) ListUsersRequest(*connect.ListUsersInput) (*request.Request, *connect.ListUsersOutput) + ListUsersPages(*connect.ListUsersInput, func(*connect.ListUsersOutput, bool) bool) error + ListUsersPagesWithContext(aws.Context, *connect.ListUsersInput, func(*connect.ListUsersOutput, bool) bool, ...request.Option) error + StartOutboundVoiceContact(*connect.StartOutboundVoiceContactInput) (*connect.StartOutboundVoiceContactOutput, error) StartOutboundVoiceContactWithContext(aws.Context, *connect.StartOutboundVoiceContactInput, ...request.Option) (*connect.StartOutboundVoiceContactOutput, error) StartOutboundVoiceContactRequest(*connect.StartOutboundVoiceContactInput) (*request.Request, *connect.StartOutboundVoiceContactOutput) diff --git a/service/connect/doc.go b/service/connect/doc.go index 2c636edf6e..eba85ef319 100644 --- a/service/connect/doc.go +++ b/service/connect/doc.go @@ -3,23 +3,18 @@ // Package connect provides the client and types for making API // requests to Amazon Connect Service. // -// The Amazon Connect API Reference provides descriptions, syntax, and usage -// examples for each of the Amazon Connect actions, data types, parameters, -// and errors. Amazon Connect is a cloud-based contact center solution that -// makes it easy to set up and manage a customer contact center and provide -// reliable customer engagement at any scale. -// -// Throttling limits for the Amazon Connect API operations: -// -// For the GetMetricData and GetCurrentMetricData operations, a RateLimit of -// 5 per second, and a BurstLimit of 8 per second. -// -// For all other operations, a RateLimit of 2 per second, and a BurstLimit of -// 5 per second. -// -// You can request an increase to the throttling limits by submitting a Amazon -// Connect service limits increase form (https://console.aws.amazon.com/support/home#/case/create?issueType=service-limit-increase). -// You must be signed in to your AWS account to access the form. +// Amazon Connect is a cloud-based contact center solution that makes it easy +// to set up and manage a customer contact center and provide reliable customer +// engagement at any scale. +// +// Amazon Connect provides rich metrics and real-time reporting that allow you +// to optimize contact routing. You can also resolve customer issues more efficiently +// by putting customers in touch with the right agents. +// +// There are limits to the number of Amazon Connect resources that you can create +// and limits to the number of requests that you can make per second. For more +// information, see Amazon Connect Service Limits (https://docs.aws.amazon.com/connect/latest/adminguide/amazon-connect-service-limits.html) +// in the Amazon Connect Administrator Guide. // // See https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08 for more information on this service. // diff --git a/service/connect/errors.go b/service/connect/errors.go index b6420f8a7c..9634fb8b67 100644 --- a/service/connect/errors.go +++ b/service/connect/errors.go @@ -19,7 +19,7 @@ const ( // ErrCodeDuplicateResourceException for service response error code // "DuplicateResourceException". // - // A resource with that name already exists. + // A resource with the specified name already exists. ErrCodeDuplicateResourceException = "DuplicateResourceException" // ErrCodeInternalServiceException for service response error code @@ -31,7 +31,7 @@ const ( // ErrCodeInvalidParameterException for service response error code // "InvalidParameterException". // - // One or more of the parameters provided to the operation are not valid. + // One or more of the specified parameters are not valid. ErrCodeInvalidParameterException = "InvalidParameterException" // ErrCodeInvalidRequestException for service response error code @@ -43,7 +43,7 @@ const ( // ErrCodeLimitExceededException for service response error code // "LimitExceededException". // - // The allowed limit for the resource has been reached. + // The allowed limit for the resource has been exceeded. ErrCodeLimitExceededException = "LimitExceededException" // ErrCodeOutboundContactNotPermittedException for service response error code diff --git a/service/polly/api.go b/service/polly/api.go index 2e7d80646b..082fe38608 100644 --- a/service/polly/api.go +++ b/service/polly/api.go @@ -2440,6 +2440,9 @@ const ( // VoiceIdBrian is a VoiceId enum value VoiceIdBrian = "Brian" + // VoiceIdCamila is a VoiceId enum value + VoiceIdCamila = "Camila" + // VoiceIdCarla is a VoiceId enum value VoiceIdCarla = "Carla" @@ -2527,6 +2530,9 @@ const ( // VoiceIdLucia is a VoiceId enum value VoiceIdLucia = "Lucia" + // VoiceIdLupe is a VoiceId enum value + VoiceIdLupe = "Lupe" + // VoiceIdMads is a VoiceId enum value VoiceIdMads = "Mads" diff --git a/service/sts/api.go b/service/sts/api.go index eb0a6a417e..9c5ed45453 100644 --- a/service/sts/api.go +++ b/service/sts/api.go @@ -676,9 +676,9 @@ func (c *STS) DecodeAuthorizationMessageRequest(input *DecodeAuthorizationMessag // // Returned Error Codes: // * ErrCodeInvalidAuthorizationMessageException "InvalidAuthorizationMessageException" -// The error returned if the message passed to DecodeAuthorizationMessage was -// invalid. This can happen if the token contains invalid characters, such as -// linebreaks. +// This error is returned if the message passed to DecodeAuthorizationMessage +// was invalid. This can happen if the token contains invalid characters, such +// as linebreaks. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sts-2011-06-15/DecodeAuthorizationMessage func (c *STS) DecodeAuthorizationMessage(input *DecodeAuthorizationMessageInput) (*DecodeAuthorizationMessageOutput, error) { diff --git a/service/sts/errors.go b/service/sts/errors.go index 41ea09c356..a3e378edad 100644 --- a/service/sts/errors.go +++ b/service/sts/errors.go @@ -34,9 +34,9 @@ const ( // ErrCodeInvalidAuthorizationMessageException for service response error code // "InvalidAuthorizationMessageException". // - // The error returned if the message passed to DecodeAuthorizationMessage was - // invalid. This can happen if the token contains invalid characters, such as - // linebreaks. + // This error is returned if the message passed to DecodeAuthorizationMessage + // was invalid. This can happen if the token contains invalid characters, such + // as linebreaks. ErrCodeInvalidAuthorizationMessageException = "InvalidAuthorizationMessageException" // ErrCodeInvalidIdentityTokenException for service response error code