From 8e8a0d20ba2ab9ff93d418d28ff3f61c1b626e09 Mon Sep 17 00:00:00 2001 From: aws-sdk-go-automation <43143561+aws-sdk-go-automation@users.noreply.github.com> Date: Fri, 20 Nov 2020 11:07:55 -0800 Subject: [PATCH] Release v1.35.33 (2020-11-20) (#3647) Release v1.35.33 (2020-11-20) === ### Service Client Updates * `service/appmesh`: Updates service API * `service/chime`: Updates service API, documentation, and paginators * The Amazon Chime SDK for messaging provides the building blocks needed to build chat and other real-time collaboration features. * `service/cloudhsmv2`: Updates service API and documentation * Added managed backup retention, a feature that enables customers to retain backups for a configurable period after which CloudHSM service will automatically delete them. * `service/codeguru-reviewer`: Updates service API and documentation * `service/cognito-identity`: Updates service API and paginators * `service/connect`: Updates service API, documentation, and paginators * `service/kafka`: Updates service API and documentation * `service/macie2`: Updates service API and documentation * `service/s3`: Updates service API, documentation, and examples * Add new documentation regarding automatically generated Content-MD5 headers when using the SDK or CLI. * `service/servicecatalog-appregistry`: Updates service API and documentation --- CHANGELOG.md | 18 + aws/endpoints/defaults.go | 24 + aws/version.go | 2 +- models/apis/appmesh/2019-01-25/api-2.json | 8 +- models/apis/chime/2018-05-01/api-2.json | 2650 +- models/apis/chime/2018-05-01/docs-2.json | 1086 +- .../apis/chime/2018-05-01/paginators-1.json | 60 + models/apis/cloudhsmv2/2017-04-28/api-2.json | 106 +- models/apis/cloudhsmv2/2017-04-28/docs-2.json | 72 +- .../codeguru-reviewer/2019-09-19/api-2.json | 155 +- .../codeguru-reviewer/2019-09-19/docs-2.json | 100 +- .../cognito-identity/2014-06-30/api-2.json | 17 +- .../2014-06-30/paginators-1.json | 8 +- .../cognito-identity/2014-06-30/smoke.json | 20 + models/apis/connect/2017-08-08/api-2.json | 1361 +- models/apis/connect/2017-08-08/docs-2.json | 588 +- .../apis/connect/2017-08-08/paginators-1.json | 42 + models/apis/kafka/2018-11-14/api-2.json | 3 +- models/apis/kafka/2018-11-14/docs-2.json | 6 +- models/apis/macie2/2020-01-01/api-2.json | 41 + models/apis/macie2/2020-01-01/docs-2.json | 46 +- models/apis/s3/2006-03-01/api-2.json | 39 +- models/apis/s3/2006-03-01/docs-2.json | 46 +- models/apis/s3/2006-03-01/examples-1.json | 206 +- .../2020-06-24/api-2.json | 2 +- .../2020-06-24/docs-2.json | 66 +- models/endpoints/endpoints.json | 23 + service/appmesh/api.go | 7 +- service/appregistry/api.go | 157 +- service/appregistry/doc.go | 2 +- service/chime/api.go | 33412 ++++++++++------ service/chime/chimeiface/interface.go | 228 + service/chime/doc.go | 2 +- service/chime/errors.go | 3 +- service/cloudhsmv2/api.go | 450 +- .../cloudhsmv2/cloudhsmv2iface/interface.go | 8 + service/codegurureviewer/api.go | 622 +- .../codegururevieweriface/interface.go | 12 + service/codegurureviewer/doc.go | 6 + service/cognitoidentity/api.go | 58 + .../cognitoidentityiface/interface.go | 3 + service/cognitoidentity/integ_test.go | 67 + service/connect/api.go | 14628 ++++--- service/connect/connectiface/interface.go | 121 +- service/connect/errors.go | 14 + service/kafka/api.go | 18 +- service/macie2/api.go | 116 +- service/s3/api.go | 72 +- service/s3/examples_test.go | 200 +- 49 files changed, 40498 insertions(+), 16503 deletions(-) create mode 100644 models/apis/cognito-identity/2014-06-30/smoke.json create mode 100644 service/cognitoidentity/integ_test.go diff --git a/CHANGELOG.md b/CHANGELOG.md index 9717884c45f..707d99d475c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,21 @@ +Release v1.35.33 (2020-11-20) +=== + +### Service Client Updates +* `service/appmesh`: Updates service API +* `service/chime`: Updates service API, documentation, and paginators + * The Amazon Chime SDK for messaging provides the building blocks needed to build chat and other real-time collaboration features. +* `service/cloudhsmv2`: Updates service API and documentation + * Added managed backup retention, a feature that enables customers to retain backups for a configurable period after which CloudHSM service will automatically delete them. +* `service/codeguru-reviewer`: Updates service API and documentation +* `service/cognito-identity`: Updates service API and paginators +* `service/connect`: Updates service API, documentation, and paginators +* `service/kafka`: Updates service API and documentation +* `service/macie2`: Updates service API and documentation +* `service/s3`: Updates service API, documentation, and examples + * Add new documentation regarding automatically generated Content-MD5 headers when using the SDK or CLI. +* `service/servicecatalog-appregistry`: Updates service API and documentation + Release v1.35.32 (2020-11-19) === diff --git a/aws/endpoints/defaults.go b/aws/endpoints/defaults.go index d90d37add98..e1f274f18d3 100644 --- a/aws/endpoints/defaults.go +++ b/aws/endpoints/defaults.go @@ -1918,6 +1918,12 @@ var awsPartition = partition{ Region: "eu-west-3", }, }, + "sa-east-1": endpoint{ + Hostname: "rds.sa-east-1.amazonaws.com", + CredentialScope: credentialScope{ + Region: "sa-east-1", + }, + }, "us-east-1": endpoint{ Hostname: "rds.us-east-1.amazonaws.com", CredentialScope: credentialScope{ @@ -8391,12 +8397,24 @@ var awsusgovPartition = partition{ Protocols: []string{"https"}, }, Endpoints: endpoints{ + "dataplane-us-gov-east-1": endpoint{ + Hostname: "greengrass-ats.iot.us-gov-east-1.amazonaws.com", + CredentialScope: credentialScope{ + Region: "us-gov-east-1", + }, + }, "dataplane-us-gov-west-1": endpoint{ Hostname: "greengrass-ats.iot.us-gov-west-1.amazonaws.com", CredentialScope: credentialScope{ Region: "us-gov-west-1", }, }, + "fips-us-gov-east-1": endpoint{ + Hostname: "greengrass-fips.us-gov-east-1.amazonaws.com", + CredentialScope: credentialScope{ + Region: "us-gov-east-1", + }, + }, "us-gov-east-1": endpoint{}, "us-gov-west-1": endpoint{ Hostname: "greengrass.us-gov-west-1.amazonaws.com", @@ -9741,6 +9759,12 @@ var awsisobPartition = partition{ "us-isob-east-1": endpoint{}, }, }, + "codedeploy": service{ + + Endpoints: endpoints{ + "us-isob-east-1": endpoint{}, + }, + }, "config": service{ Endpoints: endpoints{ diff --git a/aws/version.go b/aws/version.go index 328d04d7996..68072842599 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.35.32" +const SDKVersion = "1.35.33" diff --git a/models/apis/appmesh/2019-01-25/api-2.json b/models/apis/appmesh/2019-01-25/api-2.json index 54e988403d6..42a5084faea 100644 --- a/models/apis/appmesh/2019-01-25/api-2.json +++ b/models/apis/appmesh/2019-01-25/api-2.json @@ -2754,7 +2754,10 @@ }, "TagRef":{ "type":"structure", - "required":["key"], + "required":[ + "key", + "value" + ], "members":{ "key":{"shape":"TagKey"}, "value":{"shape":"TagValue"} @@ -2861,7 +2864,8 @@ "httpStatusCode":429, "senderFault":true }, - "exception":true + "exception":true, + "retryable":{"throttling":true} }, "TooManyTagsException":{ "type":"structure", diff --git a/models/apis/chime/2018-05-01/api-2.json b/models/apis/chime/2018-05-01/api-2.json index 94ae117f675..b6fbce1c35d 100644 --- a/models/apis/chime/2018-05-01/api-2.json +++ b/models/apis/chime/2018-05-01/api-2.json @@ -242,6 +242,69 @@ {"shape":"ServiceFailureException"} ] }, + "CreateAppInstance":{ + "name":"CreateAppInstance", + "http":{ + "method":"POST", + "requestUri":"/app-instances", + "responseCode":201 + }, + "input":{"shape":"CreateAppInstanceRequest"}, + "output":{"shape":"CreateAppInstanceResponse"}, + "errors":[ + {"shape":"BadRequestException"}, + {"shape":"ConflictException"}, + {"shape":"ForbiddenException"}, + {"shape":"ResourceLimitExceededException"}, + {"shape":"ThrottledClientException"}, + {"shape":"UnauthorizedClientException"}, + {"shape":"ServiceUnavailableException"}, + {"shape":"ServiceFailureException"} + ], + "endpoint":{"hostPrefix":"identity-"} + }, + "CreateAppInstanceAdmin":{ + "name":"CreateAppInstanceAdmin", + "http":{ + "method":"POST", + "requestUri":"/app-instances/{appInstanceArn}/admins", + "responseCode":201 + }, + "input":{"shape":"CreateAppInstanceAdminRequest"}, + "output":{"shape":"CreateAppInstanceAdminResponse"}, + "errors":[ + {"shape":"BadRequestException"}, + {"shape":"ConflictException"}, + {"shape":"ForbiddenException"}, + {"shape":"ResourceLimitExceededException"}, + {"shape":"ThrottledClientException"}, + {"shape":"UnauthorizedClientException"}, + {"shape":"ServiceUnavailableException"}, + {"shape":"ServiceFailureException"} + ], + "endpoint":{"hostPrefix":"identity-"} + }, + "CreateAppInstanceUser":{ + "name":"CreateAppInstanceUser", + "http":{ + "method":"POST", + "requestUri":"/app-instance-users", + "responseCode":201 + }, + "input":{"shape":"CreateAppInstanceUserRequest"}, + "output":{"shape":"CreateAppInstanceUserResponse"}, + "errors":[ + {"shape":"BadRequestException"}, + {"shape":"ConflictException"}, + {"shape":"ForbiddenException"}, + {"shape":"ResourceLimitExceededException"}, + {"shape":"ThrottledClientException"}, + {"shape":"UnauthorizedClientException"}, + {"shape":"ServiceUnavailableException"}, + {"shape":"ServiceFailureException"} + ], + "endpoint":{"hostPrefix":"identity-"} + }, "CreateAttendee":{ "name":"CreateAttendee", "http":{ @@ -282,6 +345,90 @@ {"shape":"ThrottledClientException"} ] }, + "CreateChannel":{ + "name":"CreateChannel", + "http":{ + "method":"POST", + "requestUri":"/channels", + "responseCode":201 + }, + "input":{"shape":"CreateChannelRequest"}, + "output":{"shape":"CreateChannelResponse"}, + "errors":[ + {"shape":"BadRequestException"}, + {"shape":"ForbiddenException"}, + {"shape":"UnauthorizedClientException"}, + {"shape":"ConflictException"}, + {"shape":"ResourceLimitExceededException"}, + {"shape":"ThrottledClientException"}, + {"shape":"ServiceUnavailableException"}, + {"shape":"ServiceFailureException"} + ], + "endpoint":{"hostPrefix":"messaging-"} + }, + "CreateChannelBan":{ + "name":"CreateChannelBan", + "http":{ + "method":"POST", + "requestUri":"/channels/{channelArn}/bans", + "responseCode":201 + }, + "input":{"shape":"CreateChannelBanRequest"}, + "output":{"shape":"CreateChannelBanResponse"}, + "errors":[ + {"shape":"BadRequestException"}, + {"shape":"ForbiddenException"}, + {"shape":"UnauthorizedClientException"}, + {"shape":"ConflictException"}, + {"shape":"ResourceLimitExceededException"}, + {"shape":"ThrottledClientException"}, + {"shape":"ServiceUnavailableException"}, + {"shape":"ServiceFailureException"} + ], + "endpoint":{"hostPrefix":"messaging-"} + }, + "CreateChannelMembership":{ + "name":"CreateChannelMembership", + "http":{ + "method":"POST", + "requestUri":"/channels/{channelArn}/memberships", + "responseCode":201 + }, + "input":{"shape":"CreateChannelMembershipRequest"}, + "output":{"shape":"CreateChannelMembershipResponse"}, + "errors":[ + {"shape":"BadRequestException"}, + {"shape":"ForbiddenException"}, + {"shape":"UnauthorizedClientException"}, + {"shape":"ConflictException"}, + {"shape":"ResourceLimitExceededException"}, + {"shape":"ThrottledClientException"}, + {"shape":"ServiceUnavailableException"}, + {"shape":"ServiceFailureException"} + ], + "endpoint":{"hostPrefix":"messaging-"} + }, + "CreateChannelModerator":{ + "name":"CreateChannelModerator", + "http":{ + "method":"POST", + "requestUri":"/channels/{channelArn}/moderators", + "responseCode":201 + }, + "input":{"shape":"CreateChannelModeratorRequest"}, + "output":{"shape":"CreateChannelModeratorResponse"}, + "errors":[ + {"shape":"BadRequestException"}, + {"shape":"ForbiddenException"}, + {"shape":"UnauthorizedClientException"}, + {"shape":"ConflictException"}, + {"shape":"ResourceLimitExceededException"}, + {"shape":"ThrottledClientException"}, + {"shape":"ServiceUnavailableException"}, + {"shape":"ServiceFailureException"} + ], + "endpoint":{"hostPrefix":"messaging-"} + }, "CreateMeeting":{ "name":"CreateMeeting", "http":{ @@ -560,6 +707,80 @@ {"shape":"ServiceFailureException"} ] }, + "DeleteAppInstance":{ + "name":"DeleteAppInstance", + "http":{ + "method":"DELETE", + "requestUri":"/app-instances/{appInstanceArn}", + "responseCode":204 + }, + "input":{"shape":"DeleteAppInstanceRequest"}, + "errors":[ + {"shape":"BadRequestException"}, + {"shape":"ForbiddenException"}, + {"shape":"ThrottledClientException"}, + {"shape":"UnauthorizedClientException"}, + {"shape":"ServiceUnavailableException"}, + {"shape":"ServiceFailureException"} + ], + "endpoint":{"hostPrefix":"identity-"} + }, + "DeleteAppInstanceAdmin":{ + "name":"DeleteAppInstanceAdmin", + "http":{ + "method":"DELETE", + "requestUri":"/app-instances/{appInstanceArn}/admins/{appInstanceAdminArn}", + "responseCode":204 + }, + "input":{"shape":"DeleteAppInstanceAdminRequest"}, + "errors":[ + {"shape":"BadRequestException"}, + {"shape":"ConflictException"}, + {"shape":"ForbiddenException"}, + {"shape":"ResourceLimitExceededException"}, + {"shape":"ThrottledClientException"}, + {"shape":"UnauthorizedClientException"}, + {"shape":"ServiceUnavailableException"}, + {"shape":"ServiceFailureException"} + ], + "endpoint":{"hostPrefix":"identity-"} + }, + "DeleteAppInstanceStreamingConfigurations":{ + "name":"DeleteAppInstanceStreamingConfigurations", + "http":{ + "method":"DELETE", + "requestUri":"/app-instances/{appInstanceArn}/streaming-configurations", + "responseCode":204 + }, + "input":{"shape":"DeleteAppInstanceStreamingConfigurationsRequest"}, + "errors":[ + {"shape":"BadRequestException"}, + {"shape":"ForbiddenException"}, + {"shape":"NotFoundException"}, + {"shape":"UnauthorizedClientException"}, + {"shape":"ThrottledClientException"}, + {"shape":"ServiceUnavailableException"}, + {"shape":"ServiceFailureException"} + ] + }, + "DeleteAppInstanceUser":{ + "name":"DeleteAppInstanceUser", + "http":{ + "method":"DELETE", + "requestUri":"/app-instance-users/{appInstanceUserArn}", + "responseCode":204 + }, + "input":{"shape":"DeleteAppInstanceUserRequest"}, + "errors":[ + {"shape":"BadRequestException"}, + {"shape":"ForbiddenException"}, + {"shape":"ThrottledClientException"}, + {"shape":"UnauthorizedClientException"}, + {"shape":"ServiceUnavailableException"}, + {"shape":"ServiceFailureException"} + ], + "endpoint":{"hostPrefix":"identity-"} + }, "DeleteAttendee":{ "name":"DeleteAttendee", "http":{ @@ -578,6 +799,96 @@ {"shape":"ServiceFailureException"} ] }, + "DeleteChannel":{ + "name":"DeleteChannel", + "http":{ + "method":"DELETE", + "requestUri":"/channels/{channelArn}", + "responseCode":204 + }, + "input":{"shape":"DeleteChannelRequest"}, + "errors":[ + {"shape":"BadRequestException"}, + {"shape":"ForbiddenException"}, + {"shape":"UnauthorizedClientException"}, + {"shape":"ThrottledClientException"}, + {"shape":"ServiceUnavailableException"}, + {"shape":"ServiceFailureException"} + ], + "endpoint":{"hostPrefix":"messaging-"} + }, + "DeleteChannelBan":{ + "name":"DeleteChannelBan", + "http":{ + "method":"DELETE", + "requestUri":"/channels/{channelArn}/bans/{memberArn}", + "responseCode":204 + }, + "input":{"shape":"DeleteChannelBanRequest"}, + "errors":[ + {"shape":"BadRequestException"}, + {"shape":"ForbiddenException"}, + {"shape":"UnauthorizedClientException"}, + {"shape":"ThrottledClientException"}, + {"shape":"ServiceUnavailableException"}, + {"shape":"ServiceFailureException"} + ], + "endpoint":{"hostPrefix":"messaging-"} + }, + "DeleteChannelMembership":{ + "name":"DeleteChannelMembership", + "http":{ + "method":"DELETE", + "requestUri":"/channels/{channelArn}/memberships/{memberArn}", + "responseCode":204 + }, + "input":{"shape":"DeleteChannelMembershipRequest"}, + "errors":[ + {"shape":"BadRequestException"}, + {"shape":"ForbiddenException"}, + {"shape":"UnauthorizedClientException"}, + {"shape":"ThrottledClientException"}, + {"shape":"ServiceUnavailableException"}, + {"shape":"ServiceFailureException"} + ], + "endpoint":{"hostPrefix":"messaging-"} + }, + "DeleteChannelMessage":{ + "name":"DeleteChannelMessage", + "http":{ + "method":"DELETE", + "requestUri":"/channels/{channelArn}/messages/{messageId}", + "responseCode":204 + }, + "input":{"shape":"DeleteChannelMessageRequest"}, + "errors":[ + {"shape":"BadRequestException"}, + {"shape":"ForbiddenException"}, + {"shape":"UnauthorizedClientException"}, + {"shape":"ThrottledClientException"}, + {"shape":"ServiceUnavailableException"}, + {"shape":"ServiceFailureException"} + ], + "endpoint":{"hostPrefix":"messaging-"} + }, + "DeleteChannelModerator":{ + "name":"DeleteChannelModerator", + "http":{ + "method":"DELETE", + "requestUri":"/channels/{channelArn}/moderators/{channelModeratorArn}", + "responseCode":204 + }, + "input":{"shape":"DeleteChannelModeratorRequest"}, + "errors":[ + {"shape":"BadRequestException"}, + {"shape":"ForbiddenException"}, + {"shape":"UnauthorizedClientException"}, + {"shape":"ThrottledClientException"}, + {"shape":"ServiceUnavailableException"}, + {"shape":"ServiceFailureException"} + ], + "endpoint":{"hostPrefix":"messaging-"} + }, "DeleteEventsConfiguration":{ "name":"DeleteEventsConfiguration", "http":{ @@ -869,48 +1180,222 @@ {"shape":"ServiceFailureException"} ] }, - "DisassociatePhoneNumberFromUser":{ - "name":"DisassociatePhoneNumberFromUser", + "DescribeAppInstance":{ + "name":"DescribeAppInstance", "http":{ - "method":"POST", - "requestUri":"/accounts/{accountId}/users/{userId}?operation=disassociate-phone-number", + "method":"GET", + "requestUri":"/app-instances/{appInstanceArn}", "responseCode":200 }, - "input":{"shape":"DisassociatePhoneNumberFromUserRequest"}, - "output":{"shape":"DisassociatePhoneNumberFromUserResponse"}, + "input":{"shape":"DescribeAppInstanceRequest"}, + "output":{"shape":"DescribeAppInstanceResponse"}, "errors":[ - {"shape":"UnauthorizedClientException"}, - {"shape":"NotFoundException"}, - {"shape":"ForbiddenException"}, {"shape":"BadRequestException"}, + {"shape":"ForbiddenException"}, {"shape":"ThrottledClientException"}, + {"shape":"UnauthorizedClientException"}, {"shape":"ServiceUnavailableException"}, {"shape":"ServiceFailureException"} - ] + ], + "endpoint":{"hostPrefix":"identity-"} }, - "DisassociatePhoneNumbersFromVoiceConnector":{ - "name":"DisassociatePhoneNumbersFromVoiceConnector", + "DescribeAppInstanceAdmin":{ + "name":"DescribeAppInstanceAdmin", "http":{ - "method":"POST", - "requestUri":"/voice-connectors/{voiceConnectorId}?operation=disassociate-phone-numbers", + "method":"GET", + "requestUri":"/app-instances/{appInstanceArn}/admins/{appInstanceAdminArn}", "responseCode":200 }, - "input":{"shape":"DisassociatePhoneNumbersFromVoiceConnectorRequest"}, - "output":{"shape":"DisassociatePhoneNumbersFromVoiceConnectorResponse"}, + "input":{"shape":"DescribeAppInstanceAdminRequest"}, + "output":{"shape":"DescribeAppInstanceAdminResponse"}, "errors":[ - {"shape":"UnauthorizedClientException"}, - {"shape":"NotFoundException"}, - {"shape":"ForbiddenException"}, {"shape":"BadRequestException"}, + {"shape":"ForbiddenException"}, {"shape":"ThrottledClientException"}, + {"shape":"UnauthorizedClientException"}, {"shape":"ServiceUnavailableException"}, {"shape":"ServiceFailureException"} - ] + ], + "endpoint":{"hostPrefix":"identity-"} }, - "DisassociatePhoneNumbersFromVoiceConnectorGroup":{ - "name":"DisassociatePhoneNumbersFromVoiceConnectorGroup", + "DescribeAppInstanceUser":{ + "name":"DescribeAppInstanceUser", "http":{ - "method":"POST", + "method":"GET", + "requestUri":"/app-instance-users/{appInstanceUserArn}", + "responseCode":200 + }, + "input":{"shape":"DescribeAppInstanceUserRequest"}, + "output":{"shape":"DescribeAppInstanceUserResponse"}, + "errors":[ + {"shape":"BadRequestException"}, + {"shape":"ForbiddenException"}, + {"shape":"ThrottledClientException"}, + {"shape":"UnauthorizedClientException"}, + {"shape":"ServiceUnavailableException"}, + {"shape":"ServiceFailureException"} + ], + "endpoint":{"hostPrefix":"identity-"} + }, + "DescribeChannel":{ + "name":"DescribeChannel", + "http":{ + "method":"GET", + "requestUri":"/channels/{channelArn}", + "responseCode":200 + }, + "input":{"shape":"DescribeChannelRequest"}, + "output":{"shape":"DescribeChannelResponse"}, + "errors":[ + {"shape":"BadRequestException"}, + {"shape":"ForbiddenException"}, + {"shape":"UnauthorizedClientException"}, + {"shape":"ThrottledClientException"}, + {"shape":"ServiceUnavailableException"}, + {"shape":"ServiceFailureException"} + ], + "endpoint":{"hostPrefix":"messaging-"} + }, + "DescribeChannelBan":{ + "name":"DescribeChannelBan", + "http":{ + "method":"GET", + "requestUri":"/channels/{channelArn}/bans/{memberArn}", + "responseCode":200 + }, + "input":{"shape":"DescribeChannelBanRequest"}, + "output":{"shape":"DescribeChannelBanResponse"}, + "errors":[ + {"shape":"BadRequestException"}, + {"shape":"ForbiddenException"}, + {"shape":"NotFoundException"}, + {"shape":"UnauthorizedClientException"}, + {"shape":"ThrottledClientException"}, + {"shape":"ServiceUnavailableException"}, + {"shape":"ServiceFailureException"} + ], + "endpoint":{"hostPrefix":"messaging-"} + }, + "DescribeChannelMembership":{ + "name":"DescribeChannelMembership", + "http":{ + "method":"GET", + "requestUri":"/channels/{channelArn}/memberships/{memberArn}", + "responseCode":200 + }, + "input":{"shape":"DescribeChannelMembershipRequest"}, + "output":{"shape":"DescribeChannelMembershipResponse"}, + "errors":[ + {"shape":"BadRequestException"}, + {"shape":"ForbiddenException"}, + {"shape":"NotFoundException"}, + {"shape":"UnauthorizedClientException"}, + {"shape":"ThrottledClientException"}, + {"shape":"ServiceUnavailableException"}, + {"shape":"ServiceFailureException"} + ], + "endpoint":{"hostPrefix":"messaging-"} + }, + "DescribeChannelMembershipForAppInstanceUser":{ + "name":"DescribeChannelMembershipForAppInstanceUser", + "http":{ + "method":"GET", + "requestUri":"/channels/{channelArn}?scope=app-instance-user-membership", + "responseCode":200 + }, + "input":{"shape":"DescribeChannelMembershipForAppInstanceUserRequest"}, + "output":{"shape":"DescribeChannelMembershipForAppInstanceUserResponse"}, + "errors":[ + {"shape":"BadRequestException"}, + {"shape":"ForbiddenException"}, + {"shape":"UnauthorizedClientException"}, + {"shape":"ThrottledClientException"}, + {"shape":"ServiceUnavailableException"}, + {"shape":"ServiceFailureException"} + ], + "endpoint":{"hostPrefix":"messaging-"} + }, + "DescribeChannelModeratedByAppInstanceUser":{ + "name":"DescribeChannelModeratedByAppInstanceUser", + "http":{ + "method":"GET", + "requestUri":"/channels/{channelArn}?scope=app-instance-user-moderated-channel", + "responseCode":200 + }, + "input":{"shape":"DescribeChannelModeratedByAppInstanceUserRequest"}, + "output":{"shape":"DescribeChannelModeratedByAppInstanceUserResponse"}, + "errors":[ + {"shape":"BadRequestException"}, + {"shape":"ForbiddenException"}, + {"shape":"UnauthorizedClientException"}, + {"shape":"ThrottledClientException"}, + {"shape":"ServiceUnavailableException"}, + {"shape":"ServiceFailureException"} + ], + "endpoint":{"hostPrefix":"messaging-"} + }, + "DescribeChannelModerator":{ + "name":"DescribeChannelModerator", + "http":{ + "method":"GET", + "requestUri":"/channels/{channelArn}/moderators/{channelModeratorArn}", + "responseCode":200 + }, + "input":{"shape":"DescribeChannelModeratorRequest"}, + "output":{"shape":"DescribeChannelModeratorResponse"}, + "errors":[ + {"shape":"BadRequestException"}, + {"shape":"ForbiddenException"}, + {"shape":"NotFoundException"}, + {"shape":"UnauthorizedClientException"}, + {"shape":"ThrottledClientException"}, + {"shape":"ServiceUnavailableException"}, + {"shape":"ServiceFailureException"} + ], + "endpoint":{"hostPrefix":"messaging-"} + }, + "DisassociatePhoneNumberFromUser":{ + "name":"DisassociatePhoneNumberFromUser", + "http":{ + "method":"POST", + "requestUri":"/accounts/{accountId}/users/{userId}?operation=disassociate-phone-number", + "responseCode":200 + }, + "input":{"shape":"DisassociatePhoneNumberFromUserRequest"}, + "output":{"shape":"DisassociatePhoneNumberFromUserResponse"}, + "errors":[ + {"shape":"UnauthorizedClientException"}, + {"shape":"NotFoundException"}, + {"shape":"ForbiddenException"}, + {"shape":"BadRequestException"}, + {"shape":"ThrottledClientException"}, + {"shape":"ServiceUnavailableException"}, + {"shape":"ServiceFailureException"} + ] + }, + "DisassociatePhoneNumbersFromVoiceConnector":{ + "name":"DisassociatePhoneNumbersFromVoiceConnector", + "http":{ + "method":"POST", + "requestUri":"/voice-connectors/{voiceConnectorId}?operation=disassociate-phone-numbers", + "responseCode":200 + }, + "input":{"shape":"DisassociatePhoneNumbersFromVoiceConnectorRequest"}, + "output":{"shape":"DisassociatePhoneNumbersFromVoiceConnectorResponse"}, + "errors":[ + {"shape":"UnauthorizedClientException"}, + {"shape":"NotFoundException"}, + {"shape":"ForbiddenException"}, + {"shape":"BadRequestException"}, + {"shape":"ThrottledClientException"}, + {"shape":"ServiceUnavailableException"}, + {"shape":"ServiceFailureException"} + ] + }, + "DisassociatePhoneNumbersFromVoiceConnectorGroup":{ + "name":"DisassociatePhoneNumbersFromVoiceConnectorGroup", + "http":{ + "method":"POST", "requestUri":"/voice-connector-groups/{voiceConnectorGroupId}?operation=disassociate-phone-numbers", "responseCode":200 }, @@ -981,6 +1466,45 @@ {"shape":"ServiceFailureException"} ] }, + "GetAppInstanceRetentionSettings":{ + "name":"GetAppInstanceRetentionSettings", + "http":{ + "method":"GET", + "requestUri":"/app-instances/{appInstanceArn}/retention-settings", + "responseCode":200 + }, + "input":{"shape":"GetAppInstanceRetentionSettingsRequest"}, + "output":{"shape":"GetAppInstanceRetentionSettingsResponse"}, + "errors":[ + {"shape":"UnauthorizedClientException"}, + {"shape":"NotFoundException"}, + {"shape":"BadRequestException"}, + {"shape":"ForbiddenException"}, + {"shape":"ThrottledClientException"}, + {"shape":"ServiceUnavailableException"}, + {"shape":"ServiceFailureException"} + ], + "endpoint":{"hostPrefix":"identity-"} + }, + "GetAppInstanceStreamingConfigurations":{ + "name":"GetAppInstanceStreamingConfigurations", + "http":{ + "method":"GET", + "requestUri":"/app-instances/{appInstanceArn}/streaming-configurations", + "responseCode":200 + }, + "input":{"shape":"GetAppInstanceStreamingConfigurationsRequest"}, + "output":{"shape":"GetAppInstanceStreamingConfigurationsResponse"}, + "errors":[ + {"shape":"BadRequestException"}, + {"shape":"ForbiddenException"}, + {"shape":"NotFoundException"}, + {"shape":"UnauthorizedClientException"}, + {"shape":"ThrottledClientException"}, + {"shape":"ServiceUnavailableException"}, + {"shape":"ServiceFailureException"} + ] + }, "GetAttendee":{ "name":"GetAttendee", "http":{ @@ -1019,6 +1543,26 @@ {"shape":"ThrottledClientException"} ] }, + "GetChannelMessage":{ + "name":"GetChannelMessage", + "http":{ + "method":"GET", + "requestUri":"/channels/{channelArn}/messages/{messageId}", + "responseCode":200 + }, + "input":{"shape":"GetChannelMessageRequest"}, + "output":{"shape":"GetChannelMessageResponse"}, + "errors":[ + {"shape":"BadRequestException"}, + {"shape":"ForbiddenException"}, + {"shape":"NotFoundException"}, + {"shape":"UnauthorizedClientException"}, + {"shape":"ThrottledClientException"}, + {"shape":"ServiceUnavailableException"}, + {"shape":"ServiceFailureException"} + ], + "endpoint":{"hostPrefix":"messaging-"} + }, "GetEventsConfiguration":{ "name":"GetEventsConfiguration", "http":{ @@ -1074,6 +1618,24 @@ {"shape":"ServiceFailureException"} ] }, + "GetMessagingSessionEndpoint":{ + "name":"GetMessagingSessionEndpoint", + "http":{ + "method":"GET", + "requestUri":"/endpoints/messaging-session", + "responseCode":200 + }, + "input":{"shape":"GetMessagingSessionEndpointRequest"}, + "output":{"shape":"GetMessagingSessionEndpointResponse"}, + "errors":[ + {"shape":"UnauthorizedClientException"}, + {"shape":"ForbiddenException"}, + {"shape":"ThrottledClientException"}, + {"shape":"ServiceUnavailableException"}, + {"shape":"ServiceFailureException"} + ], + "endpoint":{"hostPrefix":"messaging-"} + }, "GetPhoneNumber":{ "name":"GetPhoneNumber", "http":{ @@ -1487,6 +2049,64 @@ {"shape":"ServiceFailureException"} ] }, + "ListAppInstanceAdmins":{ + "name":"ListAppInstanceAdmins", + "http":{ + "method":"GET", + "requestUri":"/app-instances/{appInstanceArn}/admins", + "responseCode":200 + }, + "input":{"shape":"ListAppInstanceAdminsRequest"}, + "output":{"shape":"ListAppInstanceAdminsResponse"}, + "errors":[ + {"shape":"BadRequestException"}, + {"shape":"ForbiddenException"}, + {"shape":"ResourceLimitExceededException"}, + {"shape":"ThrottledClientException"}, + {"shape":"UnauthorizedClientException"}, + {"shape":"ServiceUnavailableException"}, + {"shape":"ServiceFailureException"} + ], + "endpoint":{"hostPrefix":"identity-"} + }, + "ListAppInstanceUsers":{ + "name":"ListAppInstanceUsers", + "http":{ + "method":"GET", + "requestUri":"/app-instance-users", + "responseCode":200 + }, + "input":{"shape":"ListAppInstanceUsersRequest"}, + "output":{"shape":"ListAppInstanceUsersResponse"}, + "errors":[ + {"shape":"BadRequestException"}, + {"shape":"ForbiddenException"}, + {"shape":"ThrottledClientException"}, + {"shape":"UnauthorizedClientException"}, + {"shape":"ServiceUnavailableException"}, + {"shape":"ServiceFailureException"} + ], + "endpoint":{"hostPrefix":"identity-"} + }, + "ListAppInstances":{ + "name":"ListAppInstances", + "http":{ + "method":"GET", + "requestUri":"/app-instances", + "responseCode":200 + }, + "input":{"shape":"ListAppInstancesRequest"}, + "output":{"shape":"ListAppInstancesResponse"}, + "errors":[ + {"shape":"BadRequestException"}, + {"shape":"ForbiddenException"}, + {"shape":"ThrottledClientException"}, + {"shape":"UnauthorizedClientException"}, + {"shape":"ServiceUnavailableException"}, + {"shape":"ServiceFailureException"} + ], + "endpoint":{"hostPrefix":"identity-"} + }, "ListAttendeeTags":{ "name":"ListAttendeeTags", "http":{ @@ -1544,57 +2164,190 @@ {"shape":"ThrottledClientException"} ] }, - "ListMeetingTags":{ - "name":"ListMeetingTags", + "ListChannelBans":{ + "name":"ListChannelBans", "http":{ "method":"GET", - "requestUri":"/meetings/{meetingId}/tags", + "requestUri":"/channels/{channelArn}/bans", "responseCode":200 }, - "input":{"shape":"ListMeetingTagsRequest"}, - "output":{"shape":"ListMeetingTagsResponse"}, + "input":{"shape":"ListChannelBansRequest"}, + "output":{"shape":"ListChannelBansResponse"}, "errors":[ {"shape":"BadRequestException"}, {"shape":"ForbiddenException"}, - {"shape":"NotFoundException"}, - {"shape":"ThrottledClientException"}, {"shape":"UnauthorizedClientException"}, + {"shape":"ThrottledClientException"}, {"shape":"ServiceUnavailableException"}, {"shape":"ServiceFailureException"} - ] + ], + "endpoint":{"hostPrefix":"messaging-"} }, - "ListMeetings":{ - "name":"ListMeetings", + "ListChannelMemberships":{ + "name":"ListChannelMemberships", "http":{ "method":"GET", - "requestUri":"/meetings", + "requestUri":"/channels/{channelArn}/memberships", "responseCode":200 }, - "input":{"shape":"ListMeetingsRequest"}, - "output":{"shape":"ListMeetingsResponse"}, + "input":{"shape":"ListChannelMembershipsRequest"}, + "output":{"shape":"ListChannelMembershipsResponse"}, "errors":[ {"shape":"BadRequestException"}, {"shape":"ForbiddenException"}, - {"shape":"ThrottledClientException"}, {"shape":"UnauthorizedClientException"}, + {"shape":"ThrottledClientException"}, {"shape":"ServiceUnavailableException"}, {"shape":"ServiceFailureException"} - ] + ], + "endpoint":{"hostPrefix":"messaging-"} }, - "ListPhoneNumberOrders":{ - "name":"ListPhoneNumberOrders", + "ListChannelMembershipsForAppInstanceUser":{ + "name":"ListChannelMembershipsForAppInstanceUser", "http":{ "method":"GET", - "requestUri":"/phone-number-orders", + "requestUri":"/channels?scope=app-instance-user-memberships", "responseCode":200 }, - "input":{"shape":"ListPhoneNumberOrdersRequest"}, - "output":{"shape":"ListPhoneNumberOrdersResponse"}, + "input":{"shape":"ListChannelMembershipsForAppInstanceUserRequest"}, + "output":{"shape":"ListChannelMembershipsForAppInstanceUserResponse"}, "errors":[ - {"shape":"UnauthorizedClientException"}, - {"shape":"ForbiddenException"}, {"shape":"BadRequestException"}, - {"shape":"ThrottledClientException"}, + {"shape":"ForbiddenException"}, + {"shape":"UnauthorizedClientException"}, + {"shape":"ThrottledClientException"}, + {"shape":"ServiceUnavailableException"}, + {"shape":"ServiceFailureException"} + ], + "endpoint":{"hostPrefix":"messaging-"} + }, + "ListChannelMessages":{ + "name":"ListChannelMessages", + "http":{ + "method":"GET", + "requestUri":"/channels/{channelArn}/messages", + "responseCode":200 + }, + "input":{"shape":"ListChannelMessagesRequest"}, + "output":{"shape":"ListChannelMessagesResponse"}, + "errors":[ + {"shape":"BadRequestException"}, + {"shape":"ForbiddenException"}, + {"shape":"UnauthorizedClientException"}, + {"shape":"ThrottledClientException"}, + {"shape":"ServiceUnavailableException"}, + {"shape":"ServiceFailureException"} + ], + "endpoint":{"hostPrefix":"messaging-"} + }, + "ListChannelModerators":{ + "name":"ListChannelModerators", + "http":{ + "method":"GET", + "requestUri":"/channels/{channelArn}/moderators", + "responseCode":200 + }, + "input":{"shape":"ListChannelModeratorsRequest"}, + "output":{"shape":"ListChannelModeratorsResponse"}, + "errors":[ + {"shape":"BadRequestException"}, + {"shape":"ForbiddenException"}, + {"shape":"UnauthorizedClientException"}, + {"shape":"ThrottledClientException"}, + {"shape":"ServiceUnavailableException"}, + {"shape":"ServiceFailureException"} + ], + "endpoint":{"hostPrefix":"messaging-"} + }, + "ListChannels":{ + "name":"ListChannels", + "http":{ + "method":"GET", + "requestUri":"/channels", + "responseCode":200 + }, + "input":{"shape":"ListChannelsRequest"}, + "output":{"shape":"ListChannelsResponse"}, + "errors":[ + {"shape":"BadRequestException"}, + {"shape":"ForbiddenException"}, + {"shape":"UnauthorizedClientException"}, + {"shape":"ThrottledClientException"}, + {"shape":"ServiceUnavailableException"}, + {"shape":"ServiceFailureException"} + ], + "endpoint":{"hostPrefix":"messaging-"} + }, + "ListChannelsModeratedByAppInstanceUser":{ + "name":"ListChannelsModeratedByAppInstanceUser", + "http":{ + "method":"GET", + "requestUri":"/channels?scope=app-instance-user-moderated-channels", + "responseCode":200 + }, + "input":{"shape":"ListChannelsModeratedByAppInstanceUserRequest"}, + "output":{"shape":"ListChannelsModeratedByAppInstanceUserResponse"}, + "errors":[ + {"shape":"BadRequestException"}, + {"shape":"ForbiddenException"}, + {"shape":"UnauthorizedClientException"}, + {"shape":"ThrottledClientException"}, + {"shape":"ServiceUnavailableException"}, + {"shape":"ServiceFailureException"} + ], + "endpoint":{"hostPrefix":"messaging-"} + }, + "ListMeetingTags":{ + "name":"ListMeetingTags", + "http":{ + "method":"GET", + "requestUri":"/meetings/{meetingId}/tags", + "responseCode":200 + }, + "input":{"shape":"ListMeetingTagsRequest"}, + "output":{"shape":"ListMeetingTagsResponse"}, + "errors":[ + {"shape":"BadRequestException"}, + {"shape":"ForbiddenException"}, + {"shape":"NotFoundException"}, + {"shape":"ThrottledClientException"}, + {"shape":"UnauthorizedClientException"}, + {"shape":"ServiceUnavailableException"}, + {"shape":"ServiceFailureException"} + ] + }, + "ListMeetings":{ + "name":"ListMeetings", + "http":{ + "method":"GET", + "requestUri":"/meetings", + "responseCode":200 + }, + "input":{"shape":"ListMeetingsRequest"}, + "output":{"shape":"ListMeetingsResponse"}, + "errors":[ + {"shape":"BadRequestException"}, + {"shape":"ForbiddenException"}, + {"shape":"ThrottledClientException"}, + {"shape":"UnauthorizedClientException"}, + {"shape":"ServiceUnavailableException"}, + {"shape":"ServiceFailureException"} + ] + }, + "ListPhoneNumberOrders":{ + "name":"ListPhoneNumberOrders", + "http":{ + "method":"GET", + "requestUri":"/phone-number-orders", + "responseCode":200 + }, + "input":{"shape":"ListPhoneNumberOrdersRequest"}, + "output":{"shape":"ListPhoneNumberOrdersResponse"}, + "errors":[ + {"shape":"UnauthorizedClientException"}, + {"shape":"ForbiddenException"}, + {"shape":"BadRequestException"}, + {"shape":"ThrottledClientException"}, {"shape":"ServiceUnavailableException"}, {"shape":"ServiceFailureException"} ] @@ -1819,6 +2572,46 @@ {"shape":"ServiceFailureException"} ] }, + "PutAppInstanceRetentionSettings":{ + "name":"PutAppInstanceRetentionSettings", + "http":{ + "method":"PUT", + "requestUri":"/app-instances/{appInstanceArn}/retention-settings", + "responseCode":200 + }, + "input":{"shape":"PutAppInstanceRetentionSettingsRequest"}, + "output":{"shape":"PutAppInstanceRetentionSettingsResponse"}, + "errors":[ + {"shape":"UnauthorizedClientException"}, + {"shape":"NotFoundException"}, + {"shape":"BadRequestException"}, + {"shape":"ForbiddenException"}, + {"shape":"ConflictException"}, + {"shape":"ThrottledClientException"}, + {"shape":"ServiceUnavailableException"}, + {"shape":"ServiceFailureException"} + ], + "endpoint":{"hostPrefix":"identity-"} + }, + "PutAppInstanceStreamingConfigurations":{ + "name":"PutAppInstanceStreamingConfigurations", + "http":{ + "method":"PUT", + "requestUri":"/app-instances/{appInstanceArn}/streaming-configurations", + "responseCode":200 + }, + "input":{"shape":"PutAppInstanceStreamingConfigurationsRequest"}, + "output":{"shape":"PutAppInstanceStreamingConfigurationsResponse"}, + "errors":[ + {"shape":"NotFoundException"}, + {"shape":"BadRequestException"}, + {"shape":"ForbiddenException"}, + {"shape":"UnauthorizedClientException"}, + {"shape":"ThrottledClientException"}, + {"shape":"ServiceUnavailableException"}, + {"shape":"ServiceFailureException"} + ] + }, "PutEventsConfiguration":{ "name":"PutEventsConfiguration", "http":{ @@ -2010,6 +2803,25 @@ {"shape":"ServiceFailureException"} ] }, + "RedactChannelMessage":{ + "name":"RedactChannelMessage", + "http":{ + "method":"POST", + "requestUri":"/channels/{channelArn}/messages/{messageId}?operation=redact", + "responseCode":200 + }, + "input":{"shape":"RedactChannelMessageRequest"}, + "output":{"shape":"RedactChannelMessageResponse"}, + "errors":[ + {"shape":"BadRequestException"}, + {"shape":"ForbiddenException"}, + {"shape":"UnauthorizedClientException"}, + {"shape":"ThrottledClientException"}, + {"shape":"ServiceUnavailableException"}, + {"shape":"ServiceFailureException"} + ], + "endpoint":{"hostPrefix":"messaging-"} + }, "RedactConversationMessage":{ "name":"RedactConversationMessage", "http":{ @@ -2124,6 +2936,26 @@ {"shape":"ServiceFailureException"} ] }, + "SendChannelMessage":{ + "name":"SendChannelMessage", + "http":{ + "method":"POST", + "requestUri":"/channels/{channelArn}/messages", + "responseCode":201 + }, + "input":{"shape":"SendChannelMessageRequest"}, + "output":{"shape":"SendChannelMessageResponse"}, + "errors":[ + {"shape":"BadRequestException"}, + {"shape":"ConflictException"}, + {"shape":"ForbiddenException"}, + {"shape":"UnauthorizedClientException"}, + {"shape":"ThrottledClientException"}, + {"shape":"ServiceUnavailableException"}, + {"shape":"ServiceFailureException"} + ], + "endpoint":{"hostPrefix":"messaging-"} + }, "TagAttendee":{ "name":"TagAttendee", "http":{ @@ -2271,6 +3103,46 @@ {"shape":"ServiceFailureException"} ] }, + "UpdateAppInstance":{ + "name":"UpdateAppInstance", + "http":{ + "method":"PUT", + "requestUri":"/app-instances/{appInstanceArn}", + "responseCode":200 + }, + "input":{"shape":"UpdateAppInstanceRequest"}, + "output":{"shape":"UpdateAppInstanceResponse"}, + "errors":[ + {"shape":"BadRequestException"}, + {"shape":"ConflictException"}, + {"shape":"ForbiddenException"}, + {"shape":"ThrottledClientException"}, + {"shape":"UnauthorizedClientException"}, + {"shape":"ServiceUnavailableException"}, + {"shape":"ServiceFailureException"} + ], + "endpoint":{"hostPrefix":"identity-"} + }, + "UpdateAppInstanceUser":{ + "name":"UpdateAppInstanceUser", + "http":{ + "method":"PUT", + "requestUri":"/app-instance-users/{appInstanceUserArn}", + "responseCode":200 + }, + "input":{"shape":"UpdateAppInstanceUserRequest"}, + "output":{"shape":"UpdateAppInstanceUserResponse"}, + "errors":[ + {"shape":"BadRequestException"}, + {"shape":"ConflictException"}, + {"shape":"ForbiddenException"}, + {"shape":"ThrottledClientException"}, + {"shape":"UnauthorizedClientException"}, + {"shape":"ServiceUnavailableException"}, + {"shape":"ServiceFailureException"} + ], + "endpoint":{"hostPrefix":"identity-"} + }, "UpdateBot":{ "name":"UpdateBot", "http":{ @@ -2290,6 +3162,66 @@ {"shape":"ThrottledClientException"} ] }, + "UpdateChannel":{ + "name":"UpdateChannel", + "http":{ + "method":"PUT", + "requestUri":"/channels/{channelArn}", + "responseCode":200 + }, + "input":{"shape":"UpdateChannelRequest"}, + "output":{"shape":"UpdateChannelResponse"}, + "errors":[ + {"shape":"BadRequestException"}, + {"shape":"ForbiddenException"}, + {"shape":"ConflictException"}, + {"shape":"UnauthorizedClientException"}, + {"shape":"ThrottledClientException"}, + {"shape":"ServiceUnavailableException"}, + {"shape":"ServiceFailureException"} + ], + "endpoint":{"hostPrefix":"messaging-"} + }, + "UpdateChannelMessage":{ + "name":"UpdateChannelMessage", + "http":{ + "method":"PUT", + "requestUri":"/channels/{channelArn}/messages/{messageId}", + "responseCode":200 + }, + "input":{"shape":"UpdateChannelMessageRequest"}, + "output":{"shape":"UpdateChannelMessageResponse"}, + "errors":[ + {"shape":"BadRequestException"}, + {"shape":"ConflictException"}, + {"shape":"ForbiddenException"}, + {"shape":"UnauthorizedClientException"}, + {"shape":"ThrottledClientException"}, + {"shape":"ServiceUnavailableException"}, + {"shape":"ServiceFailureException"} + ], + "endpoint":{"hostPrefix":"messaging-"} + }, + "UpdateChannelReadMarker":{ + "name":"UpdateChannelReadMarker", + "http":{ + "method":"PUT", + "requestUri":"/channels/{channelArn}/readMarker", + "responseCode":200 + }, + "input":{"shape":"UpdateChannelReadMarkerRequest"}, + "output":{"shape":"UpdateChannelReadMarkerResponse"}, + "errors":[ + {"shape":"BadRequestException"}, + {"shape":"ForbiddenException"}, + {"shape":"ConflictException"}, + {"shape":"UnauthorizedClientException"}, + {"shape":"ThrottledClientException"}, + {"shape":"ServiceUnavailableException"}, + {"shape":"ServiceFailureException"} + ], + "endpoint":{"hostPrefix":"messaging-"} + }, "UpdateGlobalSettings":{ "name":"UpdateGlobalSettings", "http":{ @@ -2583,26 +3515,125 @@ "type":"string", "pattern":"[A-Z]{2}" }, - "AreaCode":{ - "type":"string", - "pattern":"^$|^[0-9]{3,3}$" - }, - "Arn":{ - "type":"string", - "max":1024, - "min":1, - "pattern":"^arn[\\/\\:\\-\\_\\.a-zA-Z0-9]+$", - "sensitive":true + "AppInstance":{ + "type":"structure", + "members":{ + "AppInstanceArn":{"shape":"ChimeArn"}, + "Name":{"shape":"NonEmptyResourceName"}, + "Metadata":{"shape":"Metadata"}, + "CreatedTimestamp":{"shape":"Timestamp"}, + "LastUpdatedTimestamp":{"shape":"Timestamp"} + } }, - "AssociatePhoneNumberWithUserRequest":{ + "AppInstanceAdmin":{ "type":"structure", - "required":[ - "AccountId", - "UserId", - "E164PhoneNumber" - ], "members":{ - "AccountId":{ + "Admin":{"shape":"Identity"}, + "AppInstanceArn":{"shape":"ChimeArn"}, + "CreatedTimestamp":{"shape":"Timestamp"} + } + }, + "AppInstanceAdminList":{ + "type":"list", + "member":{"shape":"AppInstanceAdminSummary"} + }, + "AppInstanceAdminSummary":{ + "type":"structure", + "members":{ + "Admin":{"shape":"Identity"} + } + }, + "AppInstanceDataType":{ + "type":"string", + "enum":[ + "Channel", + "ChannelMessage" + ] + }, + "AppInstanceList":{ + "type":"list", + "member":{"shape":"AppInstanceSummary"} + }, + "AppInstanceRetentionSettings":{ + "type":"structure", + "members":{ + "ChannelRetentionSettings":{"shape":"ChannelRetentionSettings"} + } + }, + "AppInstanceStreamingConfiguration":{ + "type":"structure", + "required":[ + "AppInstanceDataType", + "ResourceArn" + ], + "members":{ + "AppInstanceDataType":{"shape":"AppInstanceDataType"}, + "ResourceArn":{"shape":"Arn"} + } + }, + "AppInstanceStreamingConfigurationList":{ + "type":"list", + "member":{"shape":"AppInstanceStreamingConfiguration"}, + "max":2, + "min":1 + }, + "AppInstanceSummary":{ + "type":"structure", + "members":{ + "AppInstanceArn":{"shape":"ChimeArn"}, + "Name":{"shape":"NonEmptyResourceName"}, + "Metadata":{"shape":"Metadata"} + } + }, + "AppInstanceUser":{ + "type":"structure", + "members":{ + "AppInstanceUserArn":{"shape":"ChimeArn"}, + "Name":{"shape":"UserName"}, + "CreatedTimestamp":{"shape":"Timestamp"}, + "Metadata":{"shape":"Metadata"}, + "LastUpdatedTimestamp":{"shape":"Timestamp"} + } + }, + "AppInstanceUserList":{ + "type":"list", + "member":{"shape":"AppInstanceUserSummary"} + }, + "AppInstanceUserMembershipSummary":{ + "type":"structure", + "members":{ + "Type":{"shape":"ChannelMembershipType"}, + "ReadMarkerTimestamp":{"shape":"Timestamp"} + } + }, + "AppInstanceUserSummary":{ + "type":"structure", + "members":{ + "AppInstanceUserArn":{"shape":"ChimeArn"}, + "Name":{"shape":"UserName"}, + "Metadata":{"shape":"Metadata"} + } + }, + "AreaCode":{ + "type":"string", + "pattern":"^$|^[0-9]{3,3}$" + }, + "Arn":{ + "type":"string", + "max":1024, + "min":1, + "pattern":"^arn[\\/\\:\\-\\_\\.a-zA-Z0-9]+$", + "sensitive":true + }, + "AssociatePhoneNumberWithUserRequest":{ + "type":"structure", + "required":[ + "AccountId", + "UserId", + "E164PhoneNumber" + ], + "members":{ + "AccountId":{ "shape":"String", "location":"uri", "locationName":"accountId" @@ -2921,6 +3952,196 @@ "type":"list", "member":{"shape":"Capability"} }, + "Channel":{ + "type":"structure", + "members":{ + "Name":{"shape":"NonEmptyResourceName"}, + "ChannelArn":{"shape":"ChimeArn"}, + "Mode":{"shape":"ChannelMode"}, + "Privacy":{"shape":"ChannelPrivacy"}, + "Metadata":{"shape":"Metadata"}, + "CreatedBy":{"shape":"Identity"}, + "CreatedTimestamp":{"shape":"Timestamp"}, + "LastMessageTimestamp":{"shape":"Timestamp"}, + "LastUpdatedTimestamp":{"shape":"Timestamp"} + } + }, + "ChannelBan":{ + "type":"structure", + "members":{ + "Member":{"shape":"Identity"}, + "ChannelArn":{"shape":"ChimeArn"}, + "CreatedTimestamp":{"shape":"Timestamp"}, + "CreatedBy":{"shape":"Identity"} + } + }, + "ChannelBanSummary":{ + "type":"structure", + "members":{ + "Member":{"shape":"Identity"} + } + }, + "ChannelBanSummaryList":{ + "type":"list", + "member":{"shape":"ChannelBanSummary"} + }, + "ChannelMembership":{ + "type":"structure", + "members":{ + "InvitedBy":{"shape":"Identity"}, + "Type":{"shape":"ChannelMembershipType"}, + "Member":{"shape":"Identity"}, + "ChannelArn":{"shape":"ChimeArn"}, + "CreatedTimestamp":{"shape":"Timestamp"}, + "LastUpdatedTimestamp":{"shape":"Timestamp"} + } + }, + "ChannelMembershipForAppInstanceUserSummary":{ + "type":"structure", + "members":{ + "ChannelSummary":{"shape":"ChannelSummary"}, + "AppInstanceUserMembershipSummary":{"shape":"AppInstanceUserMembershipSummary"} + } + }, + "ChannelMembershipForAppInstanceUserSummaryList":{ + "type":"list", + "member":{"shape":"ChannelMembershipForAppInstanceUserSummary"} + }, + "ChannelMembershipSummary":{ + "type":"structure", + "members":{ + "Member":{"shape":"Identity"} + } + }, + "ChannelMembershipSummaryList":{ + "type":"list", + "member":{"shape":"ChannelMembershipSummary"} + }, + "ChannelMembershipType":{ + "type":"string", + "enum":[ + "DEFAULT", + "HIDDEN" + ] + }, + "ChannelMessage":{ + "type":"structure", + "members":{ + "ChannelArn":{"shape":"ChimeArn"}, + "MessageId":{"shape":"MessageId"}, + "Content":{"shape":"Content"}, + "Metadata":{"shape":"Metadata"}, + "Type":{"shape":"ChannelMessageType"}, + "CreatedTimestamp":{"shape":"Timestamp"}, + "LastEditedTimestamp":{"shape":"Timestamp"}, + "LastUpdatedTimestamp":{"shape":"Timestamp"}, + "Sender":{"shape":"Identity"}, + "Redacted":{"shape":"NonNullableBoolean"}, + "Persistence":{"shape":"ChannelMessagePersistenceType"} + } + }, + "ChannelMessagePersistenceType":{ + "type":"string", + "enum":[ + "PERSISTENT", + "NON_PERSISTENT" + ] + }, + "ChannelMessageSummary":{ + "type":"structure", + "members":{ + "MessageId":{"shape":"MessageId"}, + "Content":{"shape":"Content"}, + "Metadata":{"shape":"Metadata"}, + "Type":{"shape":"ChannelMessageType"}, + "CreatedTimestamp":{"shape":"Timestamp"}, + "LastUpdatedTimestamp":{"shape":"Timestamp"}, + "LastEditedTimestamp":{"shape":"Timestamp"}, + "Sender":{"shape":"Identity"}, + "Redacted":{"shape":"NonNullableBoolean"} + } + }, + "ChannelMessageSummaryList":{ + "type":"list", + "member":{"shape":"ChannelMessageSummary"} + }, + "ChannelMessageType":{ + "type":"string", + "enum":[ + "STANDARD", + "CONTROL" + ] + }, + "ChannelMode":{ + "type":"string", + "enum":[ + "UNRESTRICTED", + "RESTRICTED" + ] + }, + "ChannelModeratedByAppInstanceUserSummary":{ + "type":"structure", + "members":{ + "ChannelSummary":{"shape":"ChannelSummary"} + } + }, + "ChannelModeratedByAppInstanceUserSummaryList":{ + "type":"list", + "member":{"shape":"ChannelModeratedByAppInstanceUserSummary"} + }, + "ChannelModerator":{ + "type":"structure", + "members":{ + "Moderator":{"shape":"Identity"}, + "ChannelArn":{"shape":"ChimeArn"}, + "CreatedTimestamp":{"shape":"Timestamp"}, + "CreatedBy":{"shape":"Identity"} + } + }, + "ChannelModeratorSummary":{ + "type":"structure", + "members":{ + "Moderator":{"shape":"Identity"} + } + }, + "ChannelModeratorSummaryList":{ + "type":"list", + "member":{"shape":"ChannelModeratorSummary"} + }, + "ChannelPrivacy":{ + "type":"string", + "enum":[ + "PUBLIC", + "PRIVATE" + ] + }, + "ChannelRetentionSettings":{ + "type":"structure", + "members":{ + "RetentionDays":{"shape":"RetentionDays"} + } + }, + "ChannelSummary":{ + "type":"structure", + "members":{ + "Name":{"shape":"NonEmptyResourceName"}, + "ChannelArn":{"shape":"ChimeArn"}, + "Mode":{"shape":"ChannelMode"}, + "Privacy":{"shape":"ChannelPrivacy"}, + "Metadata":{"shape":"Metadata"}, + "LastMessageTimestamp":{"shape":"Timestamp"} + } + }, + "ChannelSummaryList":{ + "type":"list", + "member":{"shape":"ChannelSummary"} + }, + "ChimeArn":{ + "type":"string", + "max":1600, + "min":5, + "pattern":"arn:[a-z0-9-\\.]{1,63}:[a-z0-9-\\.]{0,63}:[a-z0-9-\\.]{0,63}:[a-z0-9-\\.]{0,63}:[^/].{0,1023}" + }, "ClientRequestToken":{ "type":"string", "max":64, @@ -2937,6 +4158,13 @@ "error":{"httpStatusCode":409}, "exception":true }, + "Content":{ + "type":"string", + "max":4096, + "min":0, + "pattern":"[\\s\\S]*", + "sensitive":true + }, "ConversationRetentionSettings":{ "type":"structure", "members":{ @@ -2970,6 +4198,74 @@ "Account":{"shape":"Account"} } }, + "CreateAppInstanceAdminRequest":{ + "type":"structure", + "required":[ + "AppInstanceAdminArn", + "AppInstanceArn" + ], + "members":{ + "AppInstanceAdminArn":{"shape":"ChimeArn"}, + "AppInstanceArn":{ + "shape":"ChimeArn", + "location":"uri", + "locationName":"appInstanceArn" + } + } + }, + "CreateAppInstanceAdminResponse":{ + "type":"structure", + "members":{ + "AppInstanceAdmin":{"shape":"Identity"}, + "AppInstanceArn":{"shape":"ChimeArn"} + } + }, + "CreateAppInstanceRequest":{ + "type":"structure", + "required":[ + "Name", + "ClientRequestToken" + ], + "members":{ + "Name":{"shape":"NonEmptyResourceName"}, + "Metadata":{"shape":"Metadata"}, + "ClientRequestToken":{ + "shape":"ClientRequestToken", + "idempotencyToken":true + } + } + }, + "CreateAppInstanceResponse":{ + "type":"structure", + "members":{ + "AppInstanceArn":{"shape":"ChimeArn"} + } + }, + "CreateAppInstanceUserRequest":{ + "type":"structure", + "required":[ + "AppInstanceArn", + "AppInstanceUserId", + "Name", + "ClientRequestToken" + ], + "members":{ + "AppInstanceArn":{"shape":"ChimeArn"}, + "AppInstanceUserId":{"shape":"UserId"}, + "Name":{"shape":"UserName"}, + "Metadata":{"shape":"Metadata"}, + "ClientRequestToken":{ + "shape":"ClientRequestToken", + "idempotencyToken":true + } + } + }, + "CreateAppInstanceUserResponse":{ + "type":"structure", + "members":{ + "AppInstanceUserArn":{"shape":"ChimeArn"} + } + }, "CreateAttendeeError":{ "type":"structure", "members":{ @@ -3034,6 +4330,100 @@ "Bot":{"shape":"Bot"} } }, + "CreateChannelBanRequest":{ + "type":"structure", + "required":[ + "ChannelArn", + "MemberArn" + ], + "members":{ + "ChannelArn":{ + "shape":"ChimeArn", + "location":"uri", + "locationName":"channelArn" + }, + "MemberArn":{"shape":"ChimeArn"} + } + }, + "CreateChannelBanResponse":{ + "type":"structure", + "members":{ + "ChannelArn":{"shape":"ChimeArn"}, + "Member":{"shape":"Identity"} + } + }, + "CreateChannelMembershipRequest":{ + "type":"structure", + "required":[ + "ChannelArn", + "MemberArn", + "Type" + ], + "members":{ + "ChannelArn":{ + "shape":"ChimeArn", + "location":"uri", + "locationName":"channelArn" + }, + "MemberArn":{"shape":"ChimeArn"}, + "Type":{"shape":"ChannelMembershipType"} + } + }, + "CreateChannelMembershipResponse":{ + "type":"structure", + "members":{ + "ChannelArn":{"shape":"ChimeArn"}, + "Member":{"shape":"Identity"} + } + }, + "CreateChannelModeratorRequest":{ + "type":"structure", + "required":[ + "ChannelArn", + "ChannelModeratorArn" + ], + "members":{ + "ChannelArn":{ + "shape":"ChimeArn", + "location":"uri", + "locationName":"channelArn" + }, + "ChannelModeratorArn":{"shape":"ChimeArn"} + } + }, + "CreateChannelModeratorResponse":{ + "type":"structure", + "members":{ + "ChannelArn":{"shape":"ChimeArn"}, + "ChannelModerator":{"shape":"Identity"} + } + }, + "CreateChannelRequest":{ + "type":"structure", + "required":[ + "AppInstanceArn", + "Name", + "ClientRequestToken" + ], + "members":{ + "AppInstanceArn":{"shape":"ChimeArn"}, + "Name":{"shape":"NonEmptyResourceName"}, + "Mode":{"shape":"ChannelMode"}, + "Privacy":{"shape":"ChannelPrivacy"}, + "Metadata":{"shape":"Metadata"}, + "ClientRequestToken":{ + "shape":"ClientRequestToken", + "idempotencyToken":true + }, + "Tags":{"shape":"TagList"} + } + }, + "CreateChannelResponse":{ + "type":"structure", + "members":{ + "ChannelArn":{"shape":"ChimeArn"} + } + }, "CreateMeetingDialOutRequest":{ "type":"structure", "required":[ @@ -3366,14 +4756,66 @@ "members":{ } }, - "DeleteAttendeeRequest":{ + "DeleteAppInstanceAdminRequest":{ "type":"structure", "required":[ - "MeetingId", - "AttendeeId" + "AppInstanceAdminArn", + "AppInstanceArn" ], "members":{ - "MeetingId":{ + "AppInstanceAdminArn":{ + "shape":"ChimeArn", + "location":"uri", + "locationName":"appInstanceAdminArn" + }, + "AppInstanceArn":{ + "shape":"ChimeArn", + "location":"uri", + "locationName":"appInstanceArn" + } + } + }, + "DeleteAppInstanceRequest":{ + "type":"structure", + "required":["AppInstanceArn"], + "members":{ + "AppInstanceArn":{ + "shape":"ChimeArn", + "location":"uri", + "locationName":"appInstanceArn" + } + } + }, + "DeleteAppInstanceStreamingConfigurationsRequest":{ + "type":"structure", + "required":["AppInstanceArn"], + "members":{ + "AppInstanceArn":{ + "shape":"ChimeArn", + "location":"uri", + "locationName":"appInstanceArn" + } + } + }, + "DeleteAppInstanceUserRequest":{ + "type":"structure", + "required":["AppInstanceUserArn"], + "members":{ + "AppInstanceUserArn":{ + "shape":"ChimeArn", + "location":"uri", + "locationName":"appInstanceUserArn" + } + } + }, + "DeleteAttendeeRequest":{ + "type":"structure", + "required":[ + "MeetingId", + "AttendeeId" + ], + "members":{ + "MeetingId":{ "shape":"GuidString", "location":"uri", "locationName":"meetingId" @@ -3385,6 +4827,93 @@ } } }, + "DeleteChannelBanRequest":{ + "type":"structure", + "required":[ + "ChannelArn", + "MemberArn" + ], + "members":{ + "ChannelArn":{ + "shape":"ChimeArn", + "location":"uri", + "locationName":"channelArn" + }, + "MemberArn":{ + "shape":"ChimeArn", + "location":"uri", + "locationName":"memberArn" + } + } + }, + "DeleteChannelMembershipRequest":{ + "type":"structure", + "required":[ + "ChannelArn", + "MemberArn" + ], + "members":{ + "ChannelArn":{ + "shape":"ChimeArn", + "location":"uri", + "locationName":"channelArn" + }, + "MemberArn":{ + "shape":"ChimeArn", + "location":"uri", + "locationName":"memberArn" + } + } + }, + "DeleteChannelMessageRequest":{ + "type":"structure", + "required":[ + "ChannelArn", + "MessageId" + ], + "members":{ + "ChannelArn":{ + "shape":"ChimeArn", + "location":"uri", + "locationName":"channelArn" + }, + "MessageId":{ + "shape":"MessageId", + "location":"uri", + "locationName":"messageId" + } + } + }, + "DeleteChannelModeratorRequest":{ + "type":"structure", + "required":[ + "ChannelArn", + "ChannelModeratorArn" + ], + "members":{ + "ChannelArn":{ + "shape":"ChimeArn", + "location":"uri", + "locationName":"channelArn" + }, + "ChannelModeratorArn":{ + "shape":"ChimeArn", + "location":"uri", + "locationName":"channelModeratorArn" + } + } + }, + "DeleteChannelRequest":{ + "type":"structure", + "required":["ChannelArn"], + "members":{ + "ChannelArn":{ + "shape":"ChimeArn", + "location":"uri", + "locationName":"channelArn" + } + } + }, "DeleteEventsConfigurationRequest":{ "type":"structure", "required":[ @@ -3603,6 +5132,207 @@ } } }, + "DescribeAppInstanceAdminRequest":{ + "type":"structure", + "required":[ + "AppInstanceAdminArn", + "AppInstanceArn" + ], + "members":{ + "AppInstanceAdminArn":{ + "shape":"ChimeArn", + "location":"uri", + "locationName":"appInstanceAdminArn" + }, + "AppInstanceArn":{ + "shape":"ChimeArn", + "location":"uri", + "locationName":"appInstanceArn" + } + } + }, + "DescribeAppInstanceAdminResponse":{ + "type":"structure", + "members":{ + "AppInstanceAdmin":{"shape":"AppInstanceAdmin"} + } + }, + "DescribeAppInstanceRequest":{ + "type":"structure", + "required":["AppInstanceArn"], + "members":{ + "AppInstanceArn":{ + "shape":"ChimeArn", + "location":"uri", + "locationName":"appInstanceArn" + } + } + }, + "DescribeAppInstanceResponse":{ + "type":"structure", + "members":{ + "AppInstance":{"shape":"AppInstance"} + } + }, + "DescribeAppInstanceUserRequest":{ + "type":"structure", + "required":["AppInstanceUserArn"], + "members":{ + "AppInstanceUserArn":{ + "shape":"ChimeArn", + "location":"uri", + "locationName":"appInstanceUserArn" + } + } + }, + "DescribeAppInstanceUserResponse":{ + "type":"structure", + "members":{ + "AppInstanceUser":{"shape":"AppInstanceUser"} + } + }, + "DescribeChannelBanRequest":{ + "type":"structure", + "required":[ + "ChannelArn", + "MemberArn" + ], + "members":{ + "ChannelArn":{ + "shape":"ChimeArn", + "location":"uri", + "locationName":"channelArn" + }, + "MemberArn":{ + "shape":"ChimeArn", + "location":"uri", + "locationName":"memberArn" + } + } + }, + "DescribeChannelBanResponse":{ + "type":"structure", + "members":{ + "ChannelBan":{"shape":"ChannelBan"} + } + }, + "DescribeChannelMembershipForAppInstanceUserRequest":{ + "type":"structure", + "required":[ + "ChannelArn", + "AppInstanceUserArn" + ], + "members":{ + "ChannelArn":{ + "shape":"ChimeArn", + "location":"uri", + "locationName":"channelArn" + }, + "AppInstanceUserArn":{ + "shape":"ChimeArn", + "location":"querystring", + "locationName":"app-instance-user-arn" + } + } + }, + "DescribeChannelMembershipForAppInstanceUserResponse":{ + "type":"structure", + "members":{ + "ChannelMembership":{"shape":"ChannelMembershipForAppInstanceUserSummary"} + } + }, + "DescribeChannelMembershipRequest":{ + "type":"structure", + "required":[ + "ChannelArn", + "MemberArn" + ], + "members":{ + "ChannelArn":{ + "shape":"ChimeArn", + "location":"uri", + "locationName":"channelArn" + }, + "MemberArn":{ + "shape":"ChimeArn", + "location":"uri", + "locationName":"memberArn" + } + } + }, + "DescribeChannelMembershipResponse":{ + "type":"structure", + "members":{ + "ChannelMembership":{"shape":"ChannelMembership"} + } + }, + "DescribeChannelModeratedByAppInstanceUserRequest":{ + "type":"structure", + "required":[ + "ChannelArn", + "AppInstanceUserArn" + ], + "members":{ + "ChannelArn":{ + "shape":"ChimeArn", + "location":"uri", + "locationName":"channelArn" + }, + "AppInstanceUserArn":{ + "shape":"ChimeArn", + "location":"querystring", + "locationName":"app-instance-user-arn" + } + } + }, + "DescribeChannelModeratedByAppInstanceUserResponse":{ + "type":"structure", + "members":{ + "Channel":{"shape":"ChannelModeratedByAppInstanceUserSummary"} + } + }, + "DescribeChannelModeratorRequest":{ + "type":"structure", + "required":[ + "ChannelArn", + "ChannelModeratorArn" + ], + "members":{ + "ChannelArn":{ + "shape":"ChimeArn", + "location":"uri", + "locationName":"channelArn" + }, + "ChannelModeratorArn":{ + "shape":"ChimeArn", + "location":"uri", + "locationName":"channelModeratorArn" + } + } + }, + "DescribeChannelModeratorResponse":{ + "type":"structure", + "members":{ + "ChannelModerator":{"shape":"ChannelModerator"} + } + }, + "DescribeChannelRequest":{ + "type":"structure", + "required":["ChannelArn"], + "members":{ + "ChannelArn":{ + "shape":"ChimeArn", + "location":"uri", + "locationName":"channelArn" + } + } + }, + "DescribeChannelResponse":{ + "type":"structure", + "members":{ + "Channel":{"shape":"Channel"} + } + }, "DisassociatePhoneNumberFromUserRequest":{ "type":"structure", "required":[ @@ -3824,6 +5554,41 @@ "AccountSettings":{"shape":"AccountSettings"} } }, + "GetAppInstanceRetentionSettingsRequest":{ + "type":"structure", + "required":["AppInstanceArn"], + "members":{ + "AppInstanceArn":{ + "shape":"ChimeArn", + "location":"uri", + "locationName":"appInstanceArn" + } + } + }, + "GetAppInstanceRetentionSettingsResponse":{ + "type":"structure", + "members":{ + "AppInstanceRetentionSettings":{"shape":"AppInstanceRetentionSettings"}, + "InitiateDeletionTimestamp":{"shape":"Timestamp"} + } + }, + "GetAppInstanceStreamingConfigurationsRequest":{ + "type":"structure", + "required":["AppInstanceArn"], + "members":{ + "AppInstanceArn":{ + "shape":"ChimeArn", + "location":"uri", + "locationName":"appInstanceArn" + } + } + }, + "GetAppInstanceStreamingConfigurationsResponse":{ + "type":"structure", + "members":{ + "AppInstanceStreamingConfigurations":{"shape":"AppInstanceStreamingConfigurationList"} + } + }, "GetAttendeeRequest":{ "type":"structure", "required":[ @@ -3874,6 +5639,31 @@ "Bot":{"shape":"Bot"} } }, + "GetChannelMessageRequest":{ + "type":"structure", + "required":[ + "ChannelArn", + "MessageId" + ], + "members":{ + "ChannelArn":{ + "shape":"ChimeArn", + "location":"uri", + "locationName":"channelArn" + }, + "MessageId":{ + "shape":"MessageId", + "location":"uri", + "locationName":"messageId" + } + } + }, + "GetChannelMessageResponse":{ + "type":"structure", + "members":{ + "ChannelMessage":{"shape":"ChannelMessage"} + } + }, "GetEventsConfigurationRequest":{ "type":"structure", "required":[ @@ -3923,6 +5713,17 @@ "Meeting":{"shape":"Meeting"} } }, + "GetMessagingSessionEndpointRequest":{ + "type":"structure", + "members":{ + } + }, + "GetMessagingSessionEndpointResponse":{ + "type":"structure", + "members":{ + "Endpoint":{"shape":"MessagingSessionEndpoint"} + } + }, "GetPhoneNumberOrderRequest":{ "type":"structure", "required":["PhoneNumberOrderId"], @@ -4290,6 +6091,13 @@ "type":"string", "pattern":"[a-fA-F0-9]{8}(?:-[a-fA-F0-9]{4}){3}-[a-fA-F0-9]{12}" }, + "Identity":{ + "type":"structure", + "members":{ + "Arn":{"shape":"ChimeArn"}, + "Name":{"shape":"ResourceName"} + } + }, "Integer":{"type":"integer"}, "Invite":{ "type":"structure", @@ -4354,121 +6162,424 @@ "ProTrial" ] }, - "LicenseList":{ - "type":"list", - "member":{"shape":"License"} + "LicenseList":{ + "type":"list", + "member":{"shape":"License"} + }, + "ListAccountsRequest":{ + "type":"structure", + "members":{ + "Name":{ + "shape":"AccountName", + "location":"querystring", + "locationName":"name" + }, + "UserEmail":{ + "shape":"EmailAddress", + "location":"querystring", + "locationName":"user-email" + }, + "NextToken":{ + "shape":"String", + "location":"querystring", + "locationName":"next-token" + }, + "MaxResults":{ + "shape":"ProfileServiceMaxResults", + "location":"querystring", + "locationName":"max-results" + } + } + }, + "ListAccountsResponse":{ + "type":"structure", + "members":{ + "Accounts":{"shape":"AccountList"}, + "NextToken":{"shape":"String"} + } + }, + "ListAppInstanceAdminsRequest":{ + "type":"structure", + "required":["AppInstanceArn"], + "members":{ + "AppInstanceArn":{ + "shape":"ChimeArn", + "location":"uri", + "locationName":"appInstanceArn" + }, + "MaxResults":{ + "shape":"MaxResults", + "location":"querystring", + "locationName":"max-results" + }, + "NextToken":{ + "shape":"NextToken", + "location":"querystring", + "locationName":"next-token" + } + } + }, + "ListAppInstanceAdminsResponse":{ + "type":"structure", + "members":{ + "AppInstanceArn":{"shape":"ChimeArn"}, + "AppInstanceAdmins":{"shape":"AppInstanceAdminList"}, + "NextToken":{"shape":"NextToken"} + } + }, + "ListAppInstanceUsersRequest":{ + "type":"structure", + "required":["AppInstanceArn"], + "members":{ + "AppInstanceArn":{ + "shape":"ChimeArn", + "location":"querystring", + "locationName":"app-instance-arn" + }, + "MaxResults":{ + "shape":"MaxResults", + "location":"querystring", + "locationName":"max-results" + }, + "NextToken":{ + "shape":"NextToken", + "location":"querystring", + "locationName":"next-token" + } + } + }, + "ListAppInstanceUsersResponse":{ + "type":"structure", + "members":{ + "AppInstanceArn":{"shape":"ChimeArn"}, + "AppInstanceUsers":{"shape":"AppInstanceUserList"}, + "NextToken":{"shape":"NextToken"} + } + }, + "ListAppInstancesRequest":{ + "type":"structure", + "members":{ + "MaxResults":{ + "shape":"MaxResults", + "location":"querystring", + "locationName":"max-results" + }, + "NextToken":{ + "shape":"NextToken", + "location":"querystring", + "locationName":"next-token" + } + } + }, + "ListAppInstancesResponse":{ + "type":"structure", + "members":{ + "AppInstances":{"shape":"AppInstanceList"}, + "NextToken":{"shape":"NextToken"} + } + }, + "ListAttendeeTagsRequest":{ + "type":"structure", + "required":[ + "MeetingId", + "AttendeeId" + ], + "members":{ + "MeetingId":{ + "shape":"GuidString", + "location":"uri", + "locationName":"meetingId" + }, + "AttendeeId":{ + "shape":"GuidString", + "location":"uri", + "locationName":"attendeeId" + } + } + }, + "ListAttendeeTagsResponse":{ + "type":"structure", + "members":{ + "Tags":{"shape":"TagList"} + } + }, + "ListAttendeesRequest":{ + "type":"structure", + "required":["MeetingId"], + "members":{ + "MeetingId":{ + "shape":"GuidString", + "location":"uri", + "locationName":"meetingId" + }, + "NextToken":{ + "shape":"String", + "location":"querystring", + "locationName":"next-token" + }, + "MaxResults":{ + "shape":"ResultMax", + "location":"querystring", + "locationName":"max-results" + } + } + }, + "ListAttendeesResponse":{ + "type":"structure", + "members":{ + "Attendees":{"shape":"AttendeeList"}, + "NextToken":{"shape":"String"} + } + }, + "ListBotsRequest":{ + "type":"structure", + "required":["AccountId"], + "members":{ + "AccountId":{ + "shape":"NonEmptyString", + "location":"uri", + "locationName":"accountId" + }, + "MaxResults":{ + "shape":"ResultMax", + "location":"querystring", + "locationName":"max-results" + }, + "NextToken":{ + "shape":"String", + "location":"querystring", + "locationName":"next-token" + } + } + }, + "ListBotsResponse":{ + "type":"structure", + "members":{ + "Bots":{"shape":"BotList"}, + "NextToken":{"shape":"String"} + } + }, + "ListChannelBansRequest":{ + "type":"structure", + "required":["ChannelArn"], + "members":{ + "ChannelArn":{ + "shape":"ChimeArn", + "location":"uri", + "locationName":"channelArn" + }, + "MaxResults":{ + "shape":"MaxResults", + "location":"querystring", + "locationName":"max-results" + }, + "NextToken":{ + "shape":"NextToken", + "location":"querystring", + "locationName":"next-token" + } + } + }, + "ListChannelBansResponse":{ + "type":"structure", + "members":{ + "ChannelArn":{"shape":"ChimeArn"}, + "NextToken":{"shape":"NextToken"}, + "ChannelBans":{"shape":"ChannelBanSummaryList"} + } + }, + "ListChannelMembershipsForAppInstanceUserRequest":{ + "type":"structure", + "members":{ + "AppInstanceUserArn":{ + "shape":"ChimeArn", + "location":"querystring", + "locationName":"app-instance-user-arn" + }, + "MaxResults":{ + "shape":"MaxResults", + "location":"querystring", + "locationName":"max-results" + }, + "NextToken":{ + "shape":"NextToken", + "location":"querystring", + "locationName":"next-token" + } + } + }, + "ListChannelMembershipsForAppInstanceUserResponse":{ + "type":"structure", + "members":{ + "ChannelMemberships":{"shape":"ChannelMembershipForAppInstanceUserSummaryList"}, + "NextToken":{"shape":"NextToken"} + } + }, + "ListChannelMembershipsRequest":{ + "type":"structure", + "required":["ChannelArn"], + "members":{ + "ChannelArn":{ + "shape":"ChimeArn", + "location":"uri", + "locationName":"channelArn" + }, + "Type":{ + "shape":"ChannelMembershipType", + "location":"querystring", + "locationName":"type" + }, + "MaxResults":{ + "shape":"MaxResults", + "location":"querystring", + "locationName":"max-results" + }, + "NextToken":{ + "shape":"NextToken", + "location":"querystring", + "locationName":"next-token" + } + } + }, + "ListChannelMembershipsResponse":{ + "type":"structure", + "members":{ + "ChannelArn":{"shape":"ChimeArn"}, + "ChannelMemberships":{"shape":"ChannelMembershipSummaryList"}, + "NextToken":{"shape":"NextToken"} + } }, - "ListAccountsRequest":{ + "ListChannelMessagesRequest":{ "type":"structure", + "required":["ChannelArn"], "members":{ - "Name":{ - "shape":"AccountName", + "ChannelArn":{ + "shape":"ChimeArn", + "location":"uri", + "locationName":"channelArn" + }, + "SortOrder":{ + "shape":"SortOrder", "location":"querystring", - "locationName":"name" + "locationName":"sort-order" }, - "UserEmail":{ - "shape":"EmailAddress", + "NotBefore":{ + "shape":"Timestamp", "location":"querystring", - "locationName":"user-email" + "locationName":"not-before" }, - "NextToken":{ - "shape":"String", + "NotAfter":{ + "shape":"Timestamp", "location":"querystring", - "locationName":"next-token" + "locationName":"not-after" }, "MaxResults":{ - "shape":"ProfileServiceMaxResults", + "shape":"MaxResults", "location":"querystring", "locationName":"max-results" + }, + "NextToken":{ + "shape":"NextToken", + "location":"querystring", + "locationName":"next-token" } } }, - "ListAccountsResponse":{ + "ListChannelMessagesResponse":{ "type":"structure", "members":{ - "Accounts":{"shape":"AccountList"}, - "NextToken":{"shape":"String"} + "ChannelArn":{"shape":"ChimeArn"}, + "NextToken":{"shape":"NextToken"}, + "ChannelMessages":{"shape":"ChannelMessageSummaryList"} } }, - "ListAttendeeTagsRequest":{ + "ListChannelModeratorsRequest":{ "type":"structure", - "required":[ - "MeetingId", - "AttendeeId" - ], + "required":["ChannelArn"], "members":{ - "MeetingId":{ - "shape":"GuidString", + "ChannelArn":{ + "shape":"ChimeArn", "location":"uri", - "locationName":"meetingId" + "locationName":"channelArn" }, - "AttendeeId":{ - "shape":"GuidString", - "location":"uri", - "locationName":"attendeeId" + "MaxResults":{ + "shape":"MaxResults", + "location":"querystring", + "locationName":"max-results" + }, + "NextToken":{ + "shape":"NextToken", + "location":"querystring", + "locationName":"next-token" } } }, - "ListAttendeeTagsResponse":{ + "ListChannelModeratorsResponse":{ "type":"structure", "members":{ - "Tags":{"shape":"TagList"} + "ChannelArn":{"shape":"ChimeArn"}, + "NextToken":{"shape":"NextToken"}, + "ChannelModerators":{"shape":"ChannelModeratorSummaryList"} } }, - "ListAttendeesRequest":{ + "ListChannelsModeratedByAppInstanceUserRequest":{ "type":"structure", - "required":["MeetingId"], "members":{ - "MeetingId":{ - "shape":"GuidString", - "location":"uri", - "locationName":"meetingId" - }, - "NextToken":{ - "shape":"String", + "AppInstanceUserArn":{ + "shape":"ChimeArn", "location":"querystring", - "locationName":"next-token" + "locationName":"app-instance-user-arn" }, "MaxResults":{ - "shape":"ResultMax", + "shape":"MaxResults", "location":"querystring", "locationName":"max-results" + }, + "NextToken":{ + "shape":"NextToken", + "location":"querystring", + "locationName":"next-token" } } }, - "ListAttendeesResponse":{ + "ListChannelsModeratedByAppInstanceUserResponse":{ "type":"structure", "members":{ - "Attendees":{"shape":"AttendeeList"}, - "NextToken":{"shape":"String"} + "Channels":{"shape":"ChannelModeratedByAppInstanceUserSummaryList"}, + "NextToken":{"shape":"NextToken"} } }, - "ListBotsRequest":{ + "ListChannelsRequest":{ "type":"structure", - "required":["AccountId"], + "required":["AppInstanceArn"], "members":{ - "AccountId":{ - "shape":"NonEmptyString", - "location":"uri", - "locationName":"accountId" + "AppInstanceArn":{ + "shape":"ChimeArn", + "location":"querystring", + "locationName":"app-instance-arn" + }, + "Privacy":{ + "shape":"ChannelPrivacy", + "location":"querystring", + "locationName":"privacy" }, "MaxResults":{ - "shape":"ResultMax", + "shape":"MaxResults", "location":"querystring", "locationName":"max-results" }, "NextToken":{ - "shape":"String", + "shape":"NextToken", "location":"querystring", "locationName":"next-token" } } }, - "ListBotsResponse":{ + "ListChannelsResponse":{ "type":"structure", "members":{ - "Bots":{"shape":"BotList"}, - "NextToken":{"shape":"String"} + "Channels":{"shape":"ChannelSummaryList"}, + "NextToken":{"shape":"NextToken"} } }, "ListMeetingTagsRequest":{ @@ -4871,6 +6982,11 @@ "members":{ } }, + "MaxResults":{ + "type":"integer", + "max":50, + "min":1 + }, "MediaPlacement":{ "type":"structure", "members":{ @@ -4957,10 +7073,50 @@ "member":{"shape":"MembershipItem"}, "max":50 }, + "MessageId":{ + "type":"string", + "max":128, + "min":1, + "pattern":"[-_a-zA-Z0-9]*" + }, + "MessagingSessionEndpoint":{ + "type":"structure", + "members":{ + "Url":{"shape":"UrlType"} + } + }, + "Metadata":{ + "type":"string", + "max":1024, + "min":0, + "pattern":".*", + "sensitive":true + }, + "NextToken":{ + "type":"string", + "max":2048, + "min":0, + "pattern":".*", + "sensitive":true + }, "NextTokenString":{ "type":"string", "max":65535 }, + "NonEmptyContent":{ + "type":"string", + "max":4096, + "min":1, + "pattern":"[\\s\\S]*", + "sensitive":true + }, + "NonEmptyResourceName":{ + "type":"string", + "max":256, + "min":1, + "pattern":"[\\u0009\\u000A\\u000D\\u0020-\\u007E\\u0085\\u00A0-\\uD7FF\\uE000-\\uFFFD\\u10000-\\u10FFFF]*", + "sensitive":true + }, "NonEmptyString":{ "type":"string", "pattern":".*\\S.*" @@ -4976,6 +7132,7 @@ "member":{"shape":"String"}, "min":1 }, + "NonNullableBoolean":{"type":"boolean"}, "NotFoundException":{ "type":"structure", "members":{ @@ -5255,6 +7412,49 @@ "type":"list", "member":{"shape":"ProxySession"} }, + "PutAppInstanceRetentionSettingsRequest":{ + "type":"structure", + "required":[ + "AppInstanceArn", + "AppInstanceRetentionSettings" + ], + "members":{ + "AppInstanceArn":{ + "shape":"ChimeArn", + "location":"uri", + "locationName":"appInstanceArn" + }, + "AppInstanceRetentionSettings":{"shape":"AppInstanceRetentionSettings"} + } + }, + "PutAppInstanceRetentionSettingsResponse":{ + "type":"structure", + "members":{ + "AppInstanceRetentionSettings":{"shape":"AppInstanceRetentionSettings"}, + "InitiateDeletionTimestamp":{"shape":"Timestamp"} + } + }, + "PutAppInstanceStreamingConfigurationsRequest":{ + "type":"structure", + "required":[ + "AppInstanceArn", + "AppInstanceStreamingConfigurations" + ], + "members":{ + "AppInstanceArn":{ + "shape":"ChimeArn", + "location":"uri", + "locationName":"appInstanceArn" + }, + "AppInstanceStreamingConfigurations":{"shape":"AppInstanceStreamingConfigurationList"} + } + }, + "PutAppInstanceStreamingConfigurationsResponse":{ + "type":"structure", + "members":{ + "AppInstanceStreamingConfigurations":{"shape":"AppInstanceStreamingConfigurationList"} + } + }, "PutEventsConfigurationRequest":{ "type":"structure", "required":[ @@ -5464,6 +7664,32 @@ "Termination":{"shape":"Termination"} } }, + "RedactChannelMessageRequest":{ + "type":"structure", + "required":[ + "ChannelArn", + "MessageId" + ], + "members":{ + "ChannelArn":{ + "shape":"ChimeArn", + "location":"uri", + "locationName":"channelArn" + }, + "MessageId":{ + "shape":"MessageId", + "location":"uri", + "locationName":"messageId" + } + } + }, + "RedactChannelMessageResponse":{ + "type":"structure", + "members":{ + "ChannelArn":{"shape":"ChimeArn"}, + "MessageId":{"shape":"MessageId"} + } + }, "RedactConversationMessageRequest":{ "type":"structure", "required":[ @@ -5591,6 +7817,13 @@ "error":{"httpStatusCode":400}, "exception":true }, + "ResourceName":{ + "type":"string", + "max":256, + "min":0, + "pattern":"[\\u0009\\u000A\\u000D\\u0020-\\u007E\\u0085\\u00A0-\\uD7FF\\uE000-\\uFFFD\\u10000-\\u10FFFF]*", + "sensitive":true + }, "RestorePhoneNumberRequest":{ "type":"structure", "required":["PhoneNumberId"], @@ -5713,6 +7946,38 @@ "E164PhoneNumbers":{"shape":"E164PhoneNumberList"} } }, + "SendChannelMessageRequest":{ + "type":"structure", + "required":[ + "ChannelArn", + "Content", + "Type", + "Persistence", + "ClientRequestToken" + ], + "members":{ + "ChannelArn":{ + "shape":"ChimeArn", + "location":"uri", + "locationName":"channelArn" + }, + "Content":{"shape":"NonEmptyContent"}, + "Type":{"shape":"ChannelMessageType"}, + "Persistence":{"shape":"ChannelMessagePersistenceType"}, + "Metadata":{"shape":"Metadata"}, + "ClientRequestToken":{ + "shape":"ClientRequestToken", + "idempotencyToken":true + } + } + }, + "SendChannelMessageResponse":{ + "type":"structure", + "members":{ + "ChannelArn":{"shape":"ChimeArn"}, + "MessageId":{"shape":"MessageId"} + } + }, "SensitiveString":{ "type":"string", "sensitive":true @@ -5842,6 +8107,13 @@ "RequestUriHostname" ] }, + "SortOrder":{ + "type":"string", + "enum":[ + "ASCENDING", + "DESCENDING" + ] + }, "StreamingConfiguration":{ "type":"structure", "required":["DataRetentionInHours"], @@ -5994,6 +8266,7 @@ "error":{"httpStatusCode":429}, "exception":true }, + "Timestamp":{"type":"timestamp"}, "TollFreePrefix":{ "type":"string", "max":3, @@ -6103,6 +8376,50 @@ "members":{ } }, + "UpdateAppInstanceRequest":{ + "type":"structure", + "required":[ + "AppInstanceArn", + "Name" + ], + "members":{ + "AppInstanceArn":{ + "shape":"ChimeArn", + "location":"uri", + "locationName":"appInstanceArn" + }, + "Name":{"shape":"NonEmptyResourceName"}, + "Metadata":{"shape":"Metadata"} + } + }, + "UpdateAppInstanceResponse":{ + "type":"structure", + "members":{ + "AppInstanceArn":{"shape":"ChimeArn"} + } + }, + "UpdateAppInstanceUserRequest":{ + "type":"structure", + "required":[ + "AppInstanceUserArn", + "Name" + ], + "members":{ + "AppInstanceUserArn":{ + "shape":"ChimeArn", + "location":"uri", + "locationName":"appInstanceUserArn" + }, + "Name":{"shape":"UserName"}, + "Metadata":{"shape":"Metadata"} + } + }, + "UpdateAppInstanceUserResponse":{ + "type":"structure", + "members":{ + "AppInstanceUserArn":{"shape":"ChimeArn"} + } + }, "UpdateBotRequest":{ "type":"structure", "required":[ @@ -6129,6 +8446,75 @@ "Bot":{"shape":"Bot"} } }, + "UpdateChannelMessageRequest":{ + "type":"structure", + "required":[ + "ChannelArn", + "MessageId" + ], + "members":{ + "ChannelArn":{ + "shape":"ChimeArn", + "location":"uri", + "locationName":"channelArn" + }, + "MessageId":{ + "shape":"MessageId", + "location":"uri", + "locationName":"messageId" + }, + "Content":{"shape":"Content"}, + "Metadata":{"shape":"Metadata"} + } + }, + "UpdateChannelMessageResponse":{ + "type":"structure", + "members":{ + "ChannelArn":{"shape":"ChimeArn"}, + "MessageId":{"shape":"MessageId"} + } + }, + "UpdateChannelReadMarkerRequest":{ + "type":"structure", + "required":["ChannelArn"], + "members":{ + "ChannelArn":{ + "shape":"ChimeArn", + "location":"uri", + "locationName":"channelArn" + } + } + }, + "UpdateChannelReadMarkerResponse":{ + "type":"structure", + "members":{ + "ChannelArn":{"shape":"ChimeArn"} + } + }, + "UpdateChannelRequest":{ + "type":"structure", + "required":[ + "ChannelArn", + "Name", + "Mode" + ], + "members":{ + "ChannelArn":{ + "shape":"ChimeArn", + "location":"uri", + "locationName":"channelArn" + }, + "Name":{"shape":"NonEmptyResourceName"}, + "Mode":{"shape":"ChannelMode"}, + "Metadata":{"shape":"Metadata"} + } + }, + "UpdateChannelResponse":{ + "type":"structure", + "members":{ + "ChannelArn":{"shape":"ChimeArn"} + } + }, "UpdateGlobalSettingsRequest":{ "type":"structure", "required":[ @@ -6421,6 +8807,10 @@ "type":"string", "max":4096 }, + "UrlType":{ + "type":"string", + "max":4096 + }, "User":{ "type":"structure", "required":["UserId"], @@ -6457,6 +8847,13 @@ "type":"list", "member":{"shape":"UserError"} }, + "UserId":{ + "type":"string", + "max":50, + "min":1, + "pattern":"[A-Za-z0-9][A-Za-z0-9\\:\\-\\_\\.\\@]{3,50}[A-Za-z0-9]", + "sensitive":true + }, "UserIdList":{ "type":"list", "member":{"shape":"NonEmptyString"}, @@ -6466,6 +8863,13 @@ "type":"list", "member":{"shape":"User"} }, + "UserName":{ + "type":"string", + "max":100, + "min":1, + "pattern":".*\\S.*", + "sensitive":true + }, "UserSettings":{ "type":"structure", "required":["Telephony"], diff --git a/models/apis/chime/2018-05-01/docs-2.json b/models/apis/chime/2018-05-01/docs-2.json index a27a9365328..0e937993faf 100644 --- a/models/apis/chime/2018-05-01/docs-2.json +++ b/models/apis/chime/2018-05-01/docs-2.json @@ -1,6 +1,6 @@ { "version": "2.0", - "service": "

The Amazon Chime API (application programming interface) is designed for developers to perform key tasks, such as creating and managing Amazon Chime accounts, users, and Voice Connectors. This guide provides detailed information about the Amazon Chime API, including operations, types, inputs and outputs, and error codes. It also includes some server-side API actions to use with the Amazon Chime SDK. For more information about the Amazon Chime SDK, see Using the Amazon Chime SDK in the Amazon Chime Developer Guide.

You can use an AWS SDK, the AWS Command Line Interface (AWS CLI), or the REST API to make API calls. We recommend using an AWS SDK or the AWS CLI. Each API operation includes links to information about using it with a language-specific AWS SDK or the AWS CLI.

Using an AWS SDK

You don't need to write code to calculate a signature for request authentication. The SDK clients authenticate your requests by using access keys that you provide. For more information about AWS SDKs, see the AWS Developer Center.

Using the AWS CLI

Use your access keys with the AWS CLI to make API calls. For information about setting up the AWS CLI, see Installing the AWS Command Line Interface in the AWS Command Line Interface User Guide. For a list of available Amazon Chime commands, see the Amazon Chime commands in the AWS CLI Command Reference.

Using REST API

If you use REST to make API calls, you must authenticate your request by providing a signature. Amazon Chime supports Signature Version 4. For more information, see Signature Version 4 Signing Process in the Amazon Web Services General Reference.

When making REST API calls, use the service name chime and REST endpoint https://service.chime.aws.amazon.com.

Administrative permissions are controlled using AWS Identity and Access Management (IAM). For more information, see Identity and Access Management for Amazon Chime in the Amazon Chime Administration Guide.

", + "service": "

The Amazon Chime API (application programming interface) is designed for developers to perform key tasks, such as creating and managing Amazon Chime accounts, users, and Voice Connectors. This guide provides detailed information about the Amazon Chime API, including operations, types, inputs and outputs, and error codes. It also includes some server-side API actions to use with the Amazon Chime SDK. For more information about the Amazon Chime SDK, see Using the Amazon Chime SDK in the Amazon Chime Developer Guide.

You can use an AWS SDK, the AWS Command Line Interface (AWS CLI), or the REST API to make API calls. We recommend using an AWS SDK or the AWS CLI. Each API operation includes links to information about using it with a language-specific AWS SDK or the AWS CLI.

Using an AWS SDK

You don't need to write code to calculate a signature for request authentication. The SDK clients authenticate your requests by using access keys that you provide. For more information about AWS SDKs, see the AWS Developer Center.

Using the AWS CLI

Use your access keys with the AWS CLI to make API calls. For information about setting up the AWS CLI, see Installing the AWS Command Line Interface in the AWS Command Line Interface User Guide. For a list of available Amazon Chime commands, see the Amazon Chime commands in the AWS CLI Command Reference.

Using REST

If you use REST to make API calls, you must authenticate your request by providing a signature. Amazon Chime supports Signature Version 4. For more information, see Signature Version 4 Signing Process in the Amazon Web Services General Reference.

When making REST API calls, use the service name chime and REST endpoint https://service.chime.aws.amazon.com.

Administrative permissions are controlled using AWS Identity and Access Management (IAM). For more information, see Identity and Access Management for Amazon Chime in the Amazon Chime Administration Guide.

", "operations": { "AssociatePhoneNumberWithUser": "

Associates a phone number with the specified Amazon Chime user.

", "AssociatePhoneNumbersWithVoiceConnector": "

Associates phone numbers with the specified Amazon Chime Voice Connector.

", @@ -14,8 +14,15 @@ "BatchUpdatePhoneNumber": "

Updates phone number product types or calling names. You can update one attribute at a time for each UpdatePhoneNumberRequestItem. For example, you can update either the product type or the calling name.

For product types, choose from Amazon Chime Business Calling and Amazon Chime Voice Connector. For toll-free numbers, you must use the Amazon Chime Voice Connector product type.

Updates to outbound calling names can take up to 72 hours to complete. Pending updates to outbound calling names must be complete before you can request another update.

", "BatchUpdateUser": "

Updates user details within the UpdateUserRequestItem object for up to 20 users for the specified Amazon Chime account. Currently, only LicenseType updates are supported for this action.

", "CreateAccount": "

Creates an Amazon Chime account under the administrator's AWS account. Only Team account types are currently supported for this action. For more information about different account types, see Managing Your Amazon Chime Accounts in the Amazon Chime Administration Guide.

", + "CreateAppInstance": "

Creates an Amazon Chime Messaging SDK AppInstance under an AWS Account. Only Messaging SDK customers use this API. CreateAppInstance supports idempotency behavior as described in the AWS API Standard.

", + "CreateAppInstanceAdmin": "

Promotes an AppInstanceUser to an AppInstanceAdmin. The promoted user can perform the following actions.

Only an AppInstanceUser can be promoted to an AppInstanceAdmin role.

", + "CreateAppInstanceUser": "

Creates a user under an Amazon Chime AppInstance. The request consists of a unique appInstanceUserId and Name for that user.

", "CreateAttendee": "

Creates a new attendee for an active Amazon Chime SDK meeting. For more information about the Amazon Chime SDK, see Using the Amazon Chime SDK in the Amazon Chime Developer Guide.

", "CreateBot": "

Creates a bot for an Amazon Chime Enterprise account.

", + "CreateChannel": "

Creates a channel to which you can add users and send messages.

Restriction: You can't change a channel's privacy.

", + "CreateChannelBan": "

Permanently bans a member from a channel. Moderators can't add banned members to a channel. To undo a ban, you first have to DeleteChannelBan, and then CreateChannelMembership. Bans are cleaned up when you delete users or channels.

If you ban a user who is already part of a channel, that user is automatically kicked from the channel.

", + "CreateChannelMembership": "

Adds a user to a channel. The InvitedBy response field is derived from the request header. A channel member can:

Privacy settings impact this action as follows:

", + "CreateChannelModerator": "

Creates a new ChannelModerator. A channel moderator can:

", "CreateMeeting": "

Creates a new Amazon Chime SDK meeting in the specified media Region with no initial attendees. For more information about specifying media Regions, see Amazon Chime SDK Media Regions in the Amazon Chime Developer Guide. For more information about the Amazon Chime SDK, see Using the Amazon Chime SDK in the Amazon Chime Developer Guide.

", "CreateMeetingDialOut": "

Uses the join token and call metadata in a meeting request (From number, To number, and so forth) to initiate an outbound call to a public switched telephone network (PSTN) and joins them into Chime meeting. Also ensures that the From number belongs to the customer.

To play welcome audio or implement an interactive voice response (IVR), use the CreateSipMediaApplicationCall API with the corresponding SIP media application ID.

", "CreateMeetingWithAttendees": "

Creates a new Amazon Chime SDK meeting in the specified media Region, with attendees. For more information about specifying media Regions, see Amazon Chime SDK Media Regions in the Amazon Chime Developer Guide. For more information about the Amazon Chime SDK, see Using the Amazon Chime SDK in the Amazon Chime Developer Guide.

", @@ -30,7 +37,16 @@ "CreateVoiceConnector": "

Creates an Amazon Chime Voice Connector under the administrator's AWS account. You can choose to create an Amazon Chime Voice Connector in a specific AWS Region.

Enabling CreateVoiceConnectorRequest$RequireEncryption configures your Amazon Chime Voice Connector to use TLS transport for SIP signaling and Secure RTP (SRTP) for media. Inbound calls use TLS transport, and unencrypted outbound calls are blocked.

", "CreateVoiceConnectorGroup": "

Creates an Amazon Chime Voice Connector group under the administrator's AWS account. You can associate Amazon Chime Voice Connectors with the Amazon Chime Voice Connector group by including VoiceConnectorItems in the request.

You can include Amazon Chime Voice Connectors from different AWS Regions in your group. This creates a fault tolerant mechanism for fallback in case of availability events.

", "DeleteAccount": "

Deletes the specified Amazon Chime account. You must suspend all users before deleting a Team account. You can use the BatchSuspendUser action to do so.

For EnterpriseLWA and EnterpriseAD accounts, you must release the claimed domains for your Amazon Chime account before deletion. As soon as you release the domain, all users under that account are suspended.

Deleted accounts appear in your Disabled accounts list for 90 days. To restore a deleted account from your Disabled accounts list, you must contact AWS Support.

After 90 days, deleted accounts are permanently removed from your Disabled accounts list.

", + "DeleteAppInstance": "

Deletes an AppInstance and all associated data asynchronously.

", + "DeleteAppInstanceAdmin": "

Demotes an AppInstanceAdmin to an AppInstanceUser. This action does not delete the user.

", + "DeleteAppInstanceStreamingConfigurations": "

Deletes the streaming configurations of an app instance.

", + "DeleteAppInstanceUser": "

Deletes an AppInstanceUser.

", "DeleteAttendee": "

Deletes an attendee from the specified Amazon Chime SDK meeting and deletes their JoinToken. Attendees are automatically deleted when a Amazon Chime SDK meeting is deleted. For more information about the Amazon Chime SDK, see Using the Amazon Chime SDK in the Amazon Chime Developer Guide.

", + "DeleteChannel": "

Immediately makes a channel and its memberships inaccessible and marks them for deletion. This is an irreversible process.

", + "DeleteChannelBan": "

Removes a user from a channel's ban list.

", + "DeleteChannelMembership": "

Removes a member from a channel.

", + "DeleteChannelMessage": "

Deletes a channel message. Only admins can perform this action. Deletion makes messages inaccessible immediately. A background process deletes any revisions created by UpdateChannelMessage.

", + "DeleteChannelModerator": "

Deletes a channel moderator.

", "DeleteEventsConfiguration": "

Deletes the events configuration that allows a bot to receive outgoing events.

", "DeleteMeeting": "

Deletes the specified Amazon Chime SDK meeting. When a meeting is deleted, its attendees are also deleted and clients can no longer join it. For more information about the Amazon Chime SDK, see Using the Amazon Chime SDK in the Amazon Chime Developer Guide.

", "DeletePhoneNumber": "

Moves the specified phone number into the Deletion queue. A phone number must be disassociated from any users or Amazon Chime Voice Connectors before it can be deleted.

Deleted phone numbers remain in the Deletion queue for 7 days before they are deleted permanently.

", @@ -47,17 +63,30 @@ "DeleteVoiceConnectorStreamingConfiguration": "

Deletes the streaming configuration for the specified Amazon Chime Voice Connector.

", "DeleteVoiceConnectorTermination": "

Deletes the termination settings for the specified Amazon Chime Voice Connector.

If emergency calling is configured for the Amazon Chime Voice Connector, it must be deleted prior to deleting the termination settings.

", "DeleteVoiceConnectorTerminationCredentials": "

Deletes the specified SIP credentials used by your equipment to authenticate during call termination.

", + "DescribeAppInstance": "

Returns the full details of an AppInstance.

", + "DescribeAppInstanceAdmin": "

Returns the full details of an AppInstanceAdmin.

", + "DescribeAppInstanceUser": "

Returns the full details of an AppInstanceUser.

", + "DescribeChannel": "

Returns the full details of a channel in an Amazon Chime app instance.

", + "DescribeChannelBan": "

Returns the full details of a channel ban.

", + "DescribeChannelMembership": "

Returns the full details of a user's channel membership.

", + "DescribeChannelMembershipForAppInstanceUser": "

Returns the details of a channel based on the membership of the AppInstanceUser specified.

", + "DescribeChannelModeratedByAppInstanceUser": "

Returns the full details of a channel moderated by the specified AppInstanceUser.

", + "DescribeChannelModerator": "

Returns the full details of a single ChannelModerator.

", "DisassociatePhoneNumberFromUser": "

Disassociates the primary provisioned phone number from the specified Amazon Chime user.

", "DisassociatePhoneNumbersFromVoiceConnector": "

Disassociates the specified phone numbers from the specified Amazon Chime Voice Connector.

", "DisassociatePhoneNumbersFromVoiceConnectorGroup": "

Disassociates the specified phone numbers from the specified Amazon Chime Voice Connector group.

", "DisassociateSigninDelegateGroupsFromAccount": "

Disassociates the specified sign-in delegate groups from the specified Amazon Chime account.

", "GetAccount": "

Retrieves details for the specified Amazon Chime account, such as account type and supported licenses.

", "GetAccountSettings": "

Retrieves account settings for the specified Amazon Chime account ID, such as remote control and dial out settings. For more information about these settings, see Use the Policies Page in the Amazon Chime Administration Guide.

", + "GetAppInstanceRetentionSettings": "

Gets the retention settings for an app instance.

", + "GetAppInstanceStreamingConfigurations": "

Gets the streaming settings for an app instance.

", "GetAttendee": "

Gets the Amazon Chime SDK attendee details for a specified meeting ID and attendee ID. For more information about the Amazon Chime SDK, see Using the Amazon Chime SDK in the Amazon Chime Developer Guide.

", "GetBot": "

Retrieves details for the specified bot, such as bot email address, bot type, status, and display name.

", + "GetChannelMessage": "

Gets the full details of a channel message.

", "GetEventsConfiguration": "

Gets details for an events configuration that allows a bot to receive outgoing events, such as an HTTPS endpoint or Lambda function ARN.

", "GetGlobalSettings": "

Retrieves global settings for the administrator's AWS account, such as Amazon Chime Business Calling and Amazon Chime Voice Connector settings.

", "GetMeeting": "

Gets the Amazon Chime SDK meeting details for the specified meeting ID. For more information about the Amazon Chime SDK, see Using the Amazon Chime SDK in the Amazon Chime Developer Guide.

", + "GetMessagingSessionEndpoint": "

The endpoint for the messaging session.

", "GetPhoneNumber": "

Retrieves details for the specified phone number ID, such as associations, capabilities, and product type.

", "GetPhoneNumberOrder": "

Retrieves details for the specified phone number order, such as order creation timestamp, phone numbers in E.164 format, product type, and order status.

", "GetPhoneNumberSettings": "

Retrieves the phone number settings for the administrator's AWS account, such as the default outbound calling name.

", @@ -72,7 +101,7 @@ "GetVoiceConnector": "

Retrieves details for the specified Amazon Chime Voice Connector, such as timestamps, name, outbound host, and encryption requirements.

", "GetVoiceConnectorEmergencyCallingConfiguration": "

Gets the emergency calling configuration details for the specified Amazon Chime Voice Connector.

", "GetVoiceConnectorGroup": "

Retrieves details for the specified Amazon Chime Voice Connector group, such as timestamps, name, and associated VoiceConnectorItems.

", - "GetVoiceConnectorLoggingConfiguration": "

Retrieves the logging configuration details for the specified Amazon Chime Voice Connector. Shows whether SIP message logs are enabled for sending to Amazon CloudWatch Logs.

", + "GetVoiceConnectorLoggingConfiguration": "

Retrieves the logging configuration details for the specified Amazon Chime Voice Connector. Shows whether SIP message logs are enabled for sending to Amazon CloudWatch.

", "GetVoiceConnectorOrigination": "

Retrieves origination setting details for the specified Amazon Chime Voice Connector.

", "GetVoiceConnectorProxy": "

Gets the proxy configuration details for the specified Amazon Chime Voice Connector.

", "GetVoiceConnectorStreamingConfiguration": "

Retrieves the streaming configuration details for the specified Amazon Chime Voice Connector. Shows whether media streaming is enabled for sending to Amazon Kinesis. It also shows the retention period, in hours, for the Amazon Kinesis data.

", @@ -80,9 +109,19 @@ "GetVoiceConnectorTerminationHealth": "

Retrieves information about the last time a SIP OPTIONS ping was received from your SIP infrastructure for the specified Amazon Chime Voice Connector.

", "InviteUsers": "

Sends email to a maximum of 50 users, inviting them to the specified Amazon Chime Team account. Only Team account types are currently supported for this action.

", "ListAccounts": "

Lists the Amazon Chime accounts under the administrator's AWS account. You can filter accounts by account name prefix. To find out which Amazon Chime account a user belongs to, you can filter by the user's email address, which returns one account result.

", + "ListAppInstanceAdmins": "

Returns a list of the administrators in the app instance.

", + "ListAppInstanceUsers": "

List all AppInstanceUsers created under a single app instance.

", + "ListAppInstances": "

Lists all Amazon Chime app instances created under a single AWS account.

", "ListAttendeeTags": "

Lists the tags applied to an Amazon Chime SDK attendee resource.

", "ListAttendees": "

Lists the attendees for the specified Amazon Chime SDK meeting. For more information about the Amazon Chime SDK, see Using the Amazon Chime SDK in the Amazon Chime Developer Guide.

", "ListBots": "

Lists the bots associated with the administrator's Amazon Chime Enterprise account ID.

", + "ListChannelBans": "

Lists all the users banned from a particular channel.

", + "ListChannelMemberships": "

Lists all channel memberships in a channel.

", + "ListChannelMembershipsForAppInstanceUser": "

Lists all channels that a particular AppInstanceUser is a part of. Only an AppInstanceAdmin can call the API with a user ARN that is not their own.

", + "ListChannelMessages": "

List all the messages in a channel. Returns a paginated list of ChannelMessages. Sorted in descending order by default, based on the creation timestamp.

Redacted messages appear in the results as empty, since they are only redacted, not deleted. Deleted messages do not appear in the results. This action always returns the latest version of an edited message.

", + "ListChannelModerators": "

Lists all the moderators for a channel.

", + "ListChannels": "

Lists all Channels created under a single Chime App as a paginated list. You can specify filters to narrow results.

Functionality & restrictions

", + "ListChannelsModeratedByAppInstanceUser": "

A list of the channels moderated by an app instance user.

", "ListMeetingTags": "

Lists the tags applied to an Amazon Chime SDK meeting resource.

", "ListMeetings": "

Lists up to 100 active Amazon Chime SDK meetings. For more information about the Amazon Chime SDK, see Using the Amazon Chime SDK in the Amazon Chime Developer Guide.

", "ListPhoneNumberOrders": "

Lists the phone number orders for the administrator's Amazon Chime account.

", @@ -98,6 +137,8 @@ "ListVoiceConnectorTerminationCredentials": "

Lists the SIP credentials for the specified Amazon Chime Voice Connector.

", "ListVoiceConnectors": "

Lists the Amazon Chime Voice Connectors for the administrator's AWS account.

", "LogoutUser": "

Logs out the specified user from all of the devices they are currently logged into.

", + "PutAppInstanceRetentionSettings": "

Sets the amount of time in days that a given app instance retains data.

", + "PutAppInstanceStreamingConfigurations": "

The data streaming configurations of an app instance.

", "PutEventsConfiguration": "

Creates an events configuration that allows a bot to receive outgoing events sent by Amazon Chime. Choose either an HTTPS endpoint or a Lambda function ARN. For more information, see Bot.

", "PutRetentionSettings": "

Puts retention settings for the specified Amazon Chime Enterprise account. We recommend using AWS CloudTrail to monitor usage of this API for your account. For more information, see Logging Amazon Chime API Calls with AWS CloudTrail in the Amazon Chime Administration Guide.

To turn off existing retention settings, remove the number of days from the corresponding RetentionDays field in the RetentionSettings object. For more information about retention settings, see Managing Chat Retention Policies in the Amazon Chime Administration Guide.

", "PutSipMediaApplicationLoggingConfiguration": "

Updates the logging configuration for the specified SIP media application.

", @@ -108,12 +149,14 @@ "PutVoiceConnectorStreamingConfiguration": "

Adds a streaming configuration for the specified Amazon Chime Voice Connector. The streaming configuration specifies whether media streaming is enabled for sending to Amazon Kinesis. It also sets the retention period, in hours, for the Amazon Kinesis data.

", "PutVoiceConnectorTermination": "

Adds termination settings for the specified Amazon Chime Voice Connector.

If emergency calling is configured for the Amazon Chime Voice Connector, it must be deleted prior to turning off termination settings.

", "PutVoiceConnectorTerminationCredentials": "

Adds termination SIP credentials for the specified Amazon Chime Voice Connector.

", + "RedactChannelMessage": "

Redacts message content, but not metadata. The message exists in the back end, but the action returns null content, and the state shows as redacted.

", "RedactConversationMessage": "

Redacts the specified message from the specified Amazon Chime conversation.

", - "RedactRoomMessage": "

Redacts the specified message from the specified Amazon Chime chat room.

", + "RedactRoomMessage": "

Redacts the specified message from the specified Amazon Chime channel.

", "RegenerateSecurityToken": "

Regenerates the security token for a bot.

", "ResetPersonalPIN": "

Resets the personal meeting PIN for the specified user on an Amazon Chime account. Returns the User object with the updated personal meeting PIN.

", "RestorePhoneNumber": "

Moves a phone number from the Deletion queue back into the phone number Inventory.

", "SearchAvailablePhoneNumbers": "

Searches phone numbers that can be ordered.

", + "SendChannelMessage": "

Sends a message to a particular channel that the member is a part of.

STANDARD messages can contain 4KB of data and the 1KB of metadata. CONTROL messages can contain 30 bytes of data and no metadata.

", "TagAttendee": "

Applies the specified tags to the specified Amazon Chime SDK attendee.

", "TagMeeting": "

Applies the specified tags to the specified Amazon Chime SDK meeting.

", "TagResource": "

Applies the specified tags to the specified Amazon Chime SDK meeting resource.

", @@ -122,7 +165,12 @@ "UntagResource": "

Untags the specified tags from the specified Amazon Chime SDK meeting resource.

", "UpdateAccount": "

Updates account details for the specified Amazon Chime account. Currently, only account name updates are supported for this action.

", "UpdateAccountSettings": "

Updates the settings for the specified Amazon Chime account. You can update settings for remote control of shared screens, or for the dial-out option. For more information about these settings, see Use the Policies Page in the Amazon Chime Administration Guide.

", + "UpdateAppInstance": "

Updates AppInstance metadata.

", + "UpdateAppInstanceUser": "

Updates the details for an AppInstanceUser. You can update names and metadata.

", "UpdateBot": "

Updates the status of the specified bot, such as starting or stopping the bot from running in your Amazon Chime Enterprise account.

", + "UpdateChannel": "

Update a channel's attributes.

Restriction: You can't change a channel's privacy.

", + "UpdateChannelMessage": "

Updates the content of a message.

", + "UpdateChannelReadMarker": "

Sets the timestamp to the point when a user last read messages in a channel.

", "UpdateGlobalSettings": "

Updates global settings for the administrator's AWS account, such as Amazon Chime Business Calling and Amazon Chime Voice Connector settings.

", "UpdatePhoneNumber": "

Updates phone number details, such as product type or calling name, for the specified phone number ID. You can update one phone number detail at a time. For example, you can update either the product type or the calling name in one action.

For toll-free numbers, you must use the Amazon Chime Voice Connector product type.

Updates to outbound calling names can take up to 72 hours to complete. Pending updates to outbound calling names must be complete before you can request another update.

", "UpdatePhoneNumberSettings": "

Updates the phone number settings for the administrator's AWS account, such as the default outbound calling name. You can update the default outbound calling name once every seven days. Outbound calling names can take up to 72 hours to update.

", @@ -192,6 +240,94 @@ "DNISEmergencyCallingConfiguration$CallingCountry": "

The country from which emergency calls are allowed, in ISO 3166-1 alpha-2 format.

" } }, + "AppInstance": { + "base": "

An instance of a Chime messaging application.

", + "refs": { + "DescribeAppInstanceResponse$AppInstance": "

The ARN, metadata, created and last-updated timestamps, and the name of the app instance. All timestamps use epoch milliseconds.

" + } + }, + "AppInstanceAdmin": { + "base": "

Promotes a user to the administrator role for the duration of an app instance.

", + "refs": { + "DescribeAppInstanceAdminResponse$AppInstanceAdmin": "

The ARN and name of the app instance user, the ARN of the app instance, and the created and last-updated timestamps. All timestamps use epoch milliseconds.

" + } + }, + "AppInstanceAdminList": { + "base": null, + "refs": { + "ListAppInstanceAdminsResponse$AppInstanceAdmins": "

The information for each administrator.

" + } + }, + "AppInstanceAdminSummary": { + "base": "

The identity and metadata of an administrator.

", + "refs": { + "AppInstanceAdminList$member": null + } + }, + "AppInstanceDataType": { + "base": null, + "refs": { + "AppInstanceStreamingConfiguration$AppInstanceDataType": "

The data type of the app instance.

" + } + }, + "AppInstanceList": { + "base": null, + "refs": { + "ListAppInstancesResponse$AppInstances": "

The information for each app instance.

" + } + }, + "AppInstanceRetentionSettings": { + "base": "

The length of time in days to retain messages.

", + "refs": { + "GetAppInstanceRetentionSettingsResponse$AppInstanceRetentionSettings": "

The retention settings for the app instance.

", + "PutAppInstanceRetentionSettingsRequest$AppInstanceRetentionSettings": "

The time in days to retain data. Data type: number.

", + "PutAppInstanceRetentionSettingsResponse$AppInstanceRetentionSettings": "

The time in days to retain data. Data type: number.

" + } + }, + "AppInstanceStreamingConfiguration": { + "base": "

The streaming configuration of an app instance.

", + "refs": { + "AppInstanceStreamingConfigurationList$member": null + } + }, + "AppInstanceStreamingConfigurationList": { + "base": null, + "refs": { + "GetAppInstanceStreamingConfigurationsResponse$AppInstanceStreamingConfigurations": "

The streaming settings.

", + "PutAppInstanceStreamingConfigurationsRequest$AppInstanceStreamingConfigurations": "

The streaming configurations set for an app instance.

", + "PutAppInstanceStreamingConfigurationsResponse$AppInstanceStreamingConfigurations": "

The streaming configurations of an app instance.

" + } + }, + "AppInstanceSummary": { + "base": "

The summary data for an app instance.

", + "refs": { + "AppInstanceList$member": null + } + }, + "AppInstanceUser": { + "base": "

The app instance user.

", + "refs": { + "DescribeAppInstanceUserResponse$AppInstanceUser": "

The name of the app instance user.

" + } + }, + "AppInstanceUserList": { + "base": null, + "refs": { + "ListAppInstanceUsersResponse$AppInstanceUsers": "

The information for each of the requested app instance users.

" + } + }, + "AppInstanceUserMembershipSummary": { + "base": "

Lists the channels to which app instance users belong.

", + "refs": { + "ChannelMembershipForAppInstanceUserSummary$AppInstanceUserMembershipSummary": "

Returns the channel membership data for an app instance.

" + } + }, + "AppInstanceUserSummary": { + "base": "

The app instance user summary data .

", + "refs": { + "AppInstanceUserList$member": null + } + }, "AreaCode": { "base": null, "refs": { @@ -201,6 +337,7 @@ "Arn": { "base": null, "refs": { + "AppInstanceStreamingConfiguration$ResourceArn": "

The resource ARN.

", "ListTagsForResourceRequest$ResourceARN": "

The resource ARN.

", "MeetingNotificationConfiguration$SnsTopicArn": "

The SNS topic ARN.

", "MeetingNotificationConfiguration$SqsQueueArn": "

The SQS queue ARN.

", @@ -453,12 +590,278 @@ "UpdateProxySessionRequest$Capabilities": "

The proxy session capabilities.

" } }, + "Channel": { + "base": "

Creates a channel.

", + "refs": { + "DescribeChannelResponse$Channel": "

The channel details.

" + } + }, + "ChannelBan": { + "base": "

Bans a user from a channel.

", + "refs": { + "DescribeChannelBanResponse$ChannelBan": "

The the details of the ban.

" + } + }, + "ChannelBanSummary": { + "base": "

The summary data for the channel ban.

", + "refs": { + "ChannelBanSummaryList$member": null + } + }, + "ChannelBanSummaryList": { + "base": null, + "refs": { + "ListChannelBansResponse$ChannelBans": "

The information for each requested ban.

" + } + }, + "ChannelMembership": { + "base": "

Creates a channel member.

", + "refs": { + "DescribeChannelMembershipResponse$ChannelMembership": "

The details of the membership.

" + } + }, + "ChannelMembershipForAppInstanceUserSummary": { + "base": "

Returns the channel membership summary data for an app instance.

", + "refs": { + "ChannelMembershipForAppInstanceUserSummaryList$member": null, + "DescribeChannelMembershipForAppInstanceUserResponse$ChannelMembership": "

The channel to which a user belongs.

" + } + }, + "ChannelMembershipForAppInstanceUserSummaryList": { + "base": null, + "refs": { + "ListChannelMembershipsForAppInstanceUserResponse$ChannelMemberships": "

The token passed by previous API calls until all requested users are returned.

" + } + }, + "ChannelMembershipSummary": { + "base": "

The summary data of a channel membership.

", + "refs": { + "ChannelMembershipSummaryList$member": null + } + }, + "ChannelMembershipSummaryList": { + "base": null, + "refs": { + "ListChannelMembershipsResponse$ChannelMemberships": "

The information for the requested channel memberships.

" + } + }, + "ChannelMembershipType": { + "base": null, + "refs": { + "AppInstanceUserMembershipSummary$Type": "

The type of channel summary,

", + "ChannelMembership$Type": "

The membership type set for the channel member.

", + "CreateChannelMembershipRequest$Type": "

The membership type of a user, DEFAULT or HIDDEN. Default members are always returned as part of ListChannelMemberships. Hidden members are only returned if the type filter in ListChannelMemberships equals HIDDEN. Otherwise hidden members are not returned. This is only supported by moderators.

", + "ListChannelMembershipsRequest$Type": "

The membership type of a user, DEFAULT or HIDDEN. Default members are always returned as part of ListChannelMemberships. Hidden members are only returned if the type filter in ListChannelMemberships equals HIDDEN. Otherwise hidden members are not returned.

" + } + }, + "ChannelMessage": { + "base": "

Creates a message in a channel.

", + "refs": { + "GetChannelMessageResponse$ChannelMessage": "

The details of and content in the message.

" + } + }, + "ChannelMessagePersistenceType": { + "base": null, + "refs": { + "ChannelMessage$Persistence": null, + "SendChannelMessageRequest$Persistence": "

Boolean that controls whether the message is persisted on the back end. Required.

" + } + }, + "ChannelMessageSummary": { + "base": "

A summary of the messages in a channel.

", + "refs": { + "ChannelMessageSummaryList$member": null + } + }, + "ChannelMessageSummaryList": { + "base": null, + "refs": { + "ListChannelMessagesResponse$ChannelMessages": "

The information about and content of each requested message.

" + } + }, + "ChannelMessageType": { + "base": null, + "refs": { + "ChannelMessage$Type": "

The message type.

", + "ChannelMessageSummary$Type": "

The type of message summary.

", + "SendChannelMessageRequest$Type": "

The type of message, STANDARD or CONTROL.

" + } + }, + "ChannelMode": { + "base": null, + "refs": { + "Channel$Mode": "

The mode of the channel.

", + "ChannelSummary$Mode": "

The summary mode of the channel.

", + "CreateChannelRequest$Mode": "

The channel mode: UNRESTRICTED or RESTRICTED. Administrators, moderators, and channel members can add themselves and other members to unrestricted channels. Only administrators and moderators can add members to restricted channels.

", + "UpdateChannelRequest$Mode": "

The mode of the update request.

" + } + }, + "ChannelModeratedByAppInstanceUserSummary": { + "base": "

Returns the summary data for a moderated channel.

", + "refs": { + "ChannelModeratedByAppInstanceUserSummaryList$member": null, + "DescribeChannelModeratedByAppInstanceUserResponse$Channel": "

The moderated channel.

" + } + }, + "ChannelModeratedByAppInstanceUserSummaryList": { + "base": null, + "refs": { + "ListChannelsModeratedByAppInstanceUserResponse$Channels": "

The moderated channels in the request.

" + } + }, + "ChannelModerator": { + "base": "

Creates a moderator on a channel.

", + "refs": { + "DescribeChannelModeratorResponse$ChannelModerator": "

The details of the channel moderator.

" + } + }, + "ChannelModeratorSummary": { + "base": "

Summary data of the moderators in a channel.

", + "refs": { + "ChannelModeratorSummaryList$member": null + } + }, + "ChannelModeratorSummaryList": { + "base": null, + "refs": { + "ListChannelModeratorsResponse$ChannelModerators": "

The information about and names of each moderator.

" + } + }, + "ChannelPrivacy": { + "base": null, + "refs": { + "Channel$Privacy": "

The channel's privacy setting, PUBLIC or HIDDEN.

", + "ChannelSummary$Privacy": "

The privacy setting of the channel being summarized, PUBLIC or HIDDEN.

", + "CreateChannelRequest$Privacy": "

The channel's privacy level: PUBLIC or PRIVATE. Private channels aren't discoverable by users outside the channel. Public channels are discoverable by anyone in the app instance.

", + "ListChannelsRequest$Privacy": "

The privacy setting. PUBLIC retrieves all the public channels. PRIVATE retrieves private channels. Only an app instance administrator can retrieve private channels.

" + } + }, + "ChannelRetentionSettings": { + "base": "

The retention settings for a channel.

", + "refs": { + "AppInstanceRetentionSettings$ChannelRetentionSettings": "

The length of time in days to retain a channel.

" + } + }, + "ChannelSummary": { + "base": "

The summary data for a channel.

", + "refs": { + "ChannelMembershipForAppInstanceUserSummary$ChannelSummary": null, + "ChannelModeratedByAppInstanceUserSummary$ChannelSummary": null, + "ChannelSummaryList$member": null + } + }, + "ChannelSummaryList": { + "base": null, + "refs": { + "ListChannelsResponse$Channels": "

The information about each channel.

" + } + }, + "ChimeArn": { + "base": null, + "refs": { + "AppInstance$AppInstanceArn": "

The ARN of the messaging instance.

", + "AppInstanceAdmin$AppInstanceArn": "

The ARN of the app instance administrator.

", + "AppInstanceSummary$AppInstanceArn": "

The app instance ARN.

", + "AppInstanceUser$AppInstanceUserArn": "

The ARN of the app instance user.

", + "AppInstanceUserSummary$AppInstanceUserArn": "

The ARN of the app instance user.

", + "Channel$ChannelArn": "

The ARN of the channel.

", + "ChannelBan$ChannelArn": "

The ARN of the channel from which a member is being banned.

", + "ChannelMembership$ChannelArn": "

The ARN of the member's channel.

", + "ChannelMessage$ChannelArn": "

The ARN of the channel.

", + "ChannelModerator$ChannelArn": "

The ARN of the moderator's channel.

", + "ChannelSummary$ChannelArn": "

The ARN of the channel summary.

", + "CreateAppInstanceAdminRequest$AppInstanceAdminArn": "

The ARN of the administrator of the current app instance.

", + "CreateAppInstanceAdminRequest$AppInstanceArn": "

The ARN of the app instance.

", + "CreateAppInstanceAdminResponse$AppInstanceArn": "

The ARN of the of the admin for the app instance.

", + "CreateAppInstanceResponse$AppInstanceArn": "

The Amazon Resource Number (ARN) of the app instance.

", + "CreateAppInstanceUserRequest$AppInstanceArn": "

The ARN of the app instance request.

", + "CreateAppInstanceUserResponse$AppInstanceUserArn": "

The user's ARN.

", + "CreateChannelBanRequest$ChannelArn": "

The ARN of the ban request.

", + "CreateChannelBanRequest$MemberArn": "

The ARN of the member being banned.

", + "CreateChannelBanResponse$ChannelArn": "

The ARN of the response to the ban request.

", + "CreateChannelMembershipRequest$ChannelArn": "

The ARN of the channel to which you're adding users.

", + "CreateChannelMembershipRequest$MemberArn": "

The ARN of the member you want to add to the channel.

", + "CreateChannelMembershipResponse$ChannelArn": "

The ARN of the channel.

", + "CreateChannelModeratorRequest$ChannelArn": "

The ARN of the channel.

", + "CreateChannelModeratorRequest$ChannelModeratorArn": "

The ARN of the moderator.

", + "CreateChannelModeratorResponse$ChannelArn": "

The ARN of the channel.

", + "CreateChannelRequest$AppInstanceArn": "

The ARN of the channel request.

", + "CreateChannelResponse$ChannelArn": "

The ARN of the channel.

", + "DeleteAppInstanceAdminRequest$AppInstanceAdminArn": "

The ARN of the app instance's administrator.

", + "DeleteAppInstanceAdminRequest$AppInstanceArn": "

The ARN of the app instance.

", + "DeleteAppInstanceRequest$AppInstanceArn": "

The ARN of the app instance.

", + "DeleteAppInstanceStreamingConfigurationsRequest$AppInstanceArn": "

The ARN of the streaming configurations being deleted.

", + "DeleteAppInstanceUserRequest$AppInstanceUserArn": "

The ARN of the user request being deleted.

", + "DeleteChannelBanRequest$ChannelArn": "

The ARN of the channel from which the app instance user was banned.

", + "DeleteChannelBanRequest$MemberArn": "

The ARN of the app instance user that you want to reinstate.

", + "DeleteChannelMembershipRequest$ChannelArn": "

The ARN of the channel from which you want to remove the user.

", + "DeleteChannelMembershipRequest$MemberArn": "

The ARN of the member that you're removing from the channel.

", + "DeleteChannelMessageRequest$ChannelArn": "

The ARN of the channel.

", + "DeleteChannelModeratorRequest$ChannelArn": "

The ARN of the channel.

", + "DeleteChannelModeratorRequest$ChannelModeratorArn": "

The ARN of the moderator being deleted.

", + "DeleteChannelRequest$ChannelArn": "

The ARN of the channel being deleted.

", + "DescribeAppInstanceAdminRequest$AppInstanceAdminArn": "

The ARN of the app instance administrator.

", + "DescribeAppInstanceAdminRequest$AppInstanceArn": "

The ARN of the app instance.

", + "DescribeAppInstanceRequest$AppInstanceArn": "

The ARN of the app instance.

", + "DescribeAppInstanceUserRequest$AppInstanceUserArn": "

The ARN of the app instance user.

", + "DescribeChannelBanRequest$ChannelArn": "

The ARN of the channel from which the user is banned.

", + "DescribeChannelBanRequest$MemberArn": "

The ARN of the member being banned.

", + "DescribeChannelMembershipForAppInstanceUserRequest$ChannelArn": "

The ARN of the channel to which the user belongs.

", + "DescribeChannelMembershipForAppInstanceUserRequest$AppInstanceUserArn": "

The ARN of the user in a channel.

", + "DescribeChannelMembershipRequest$ChannelArn": "

The ARN of the channel.

", + "DescribeChannelMembershipRequest$MemberArn": "

The ARN of the member.

", + "DescribeChannelModeratedByAppInstanceUserRequest$ChannelArn": "

The ARN of the moderated channel.

", + "DescribeChannelModeratedByAppInstanceUserRequest$AppInstanceUserArn": "

The ARN of the app instance user in the moderated channel.

", + "DescribeChannelModeratorRequest$ChannelArn": "

The ARN of the channel.

", + "DescribeChannelModeratorRequest$ChannelModeratorArn": "

The ARN of the channel moderator.

", + "DescribeChannelRequest$ChannelArn": "

The ARN of the channel.

", + "GetAppInstanceRetentionSettingsRequest$AppInstanceArn": "

The ARN of the app instance.

", + "GetAppInstanceStreamingConfigurationsRequest$AppInstanceArn": "

The ARN of the app instance.

", + "GetChannelMessageRequest$ChannelArn": "

The ARN of the channel.

", + "Identity$Arn": "

The ARN in an Identity.

", + "ListAppInstanceAdminsRequest$AppInstanceArn": "

The ARN of the app instance.

", + "ListAppInstanceAdminsResponse$AppInstanceArn": "

The ARN of the app instance.

", + "ListAppInstanceUsersRequest$AppInstanceArn": "

The ARN of the app instance.

", + "ListAppInstanceUsersResponse$AppInstanceArn": "

The ARN of the app instance.

", + "ListChannelBansRequest$ChannelArn": "

The ARN of the channel.

", + "ListChannelBansResponse$ChannelArn": "

The ARN of the channel.

", + "ListChannelMembershipsForAppInstanceUserRequest$AppInstanceUserArn": "

The ARN of the app instance users

", + "ListChannelMembershipsRequest$ChannelArn": "

The maximum number of channel memberships that you want returned.

", + "ListChannelMembershipsResponse$ChannelArn": "

The ARN of the channel.

", + "ListChannelMessagesRequest$ChannelArn": "

The ARN of the channel.

", + "ListChannelMessagesResponse$ChannelArn": "

The ARN of the channel containing the requested messages.

", + "ListChannelModeratorsRequest$ChannelArn": "

The ARN of the channel.

", + "ListChannelModeratorsResponse$ChannelArn": "

The ARN of the channel.

", + "ListChannelsModeratedByAppInstanceUserRequest$AppInstanceUserArn": "

The ARN of the user in the moderated channel.

", + "ListChannelsRequest$AppInstanceArn": "

The ARN of the app instance.

", + "PutAppInstanceRetentionSettingsRequest$AppInstanceArn": "

The ARN of the app instance.

", + "PutAppInstanceStreamingConfigurationsRequest$AppInstanceArn": "

The ARN of the app instance.

", + "RedactChannelMessageRequest$ChannelArn": "

The ARN of the channel containing the messages that you want to redact.

", + "RedactChannelMessageResponse$ChannelArn": "

The ARN of the channel containing the messages that you want to redact.

", + "SendChannelMessageRequest$ChannelArn": "

The ARN of the channel.

", + "SendChannelMessageResponse$ChannelArn": "

The ARN of the channel.

", + "UpdateAppInstanceRequest$AppInstanceArn": "

The ARN of the app instance.

", + "UpdateAppInstanceResponse$AppInstanceArn": "

The ARN of the app instance.

", + "UpdateAppInstanceUserRequest$AppInstanceUserArn": "

The ARN of the app instance user.

", + "UpdateAppInstanceUserResponse$AppInstanceUserArn": "

The ARN of the app instance user.

", + "UpdateChannelMessageRequest$ChannelArn": "

The ARN of the channel.

", + "UpdateChannelMessageResponse$ChannelArn": "

The ARN of the channel.

", + "UpdateChannelReadMarkerRequest$ChannelArn": "

The ARN of the channel.

", + "UpdateChannelReadMarkerResponse$ChannelArn": "

The ARN of the channel.

", + "UpdateChannelRequest$ChannelArn": "

The ARN of the channel.

", + "UpdateChannelResponse$ChannelArn": "

The ARN of the channel.

" + } + }, "ClientRequestToken": { "base": null, "refs": { + "CreateAppInstanceRequest$ClientRequestToken": "

The ClientRequestToken of the app instance.

", + "CreateAppInstanceUserRequest$ClientRequestToken": "

The token assigned to the user requesting an app instance.

", + "CreateChannelRequest$ClientRequestToken": "

The client token for the request. An Idempotency token.

", "CreateMeetingRequest$ClientRequestToken": "

The unique identifier for the client request. Use a different token for different meetings.

", "CreateMeetingWithAttendeesRequest$ClientRequestToken": "

The unique identifier for the client request. Use a different token for different meetings.

", - "CreateRoomRequest$ClientRequestToken": "

The idempotency token for the request.

" + "CreateRoomRequest$ClientRequestToken": "

The idempotency token for the request.

", + "SendChannelMessageRequest$ClientRequestToken": "

The Idempotency token for each client request.

" } }, "ConflictException": { @@ -466,6 +869,14 @@ "refs": { } }, + "Content": { + "base": null, + "refs": { + "ChannelMessage$Content": "

The message content.

", + "ChannelMessageSummary$Content": "

The content of the message summary.

", + "UpdateChannelMessageRequest$Content": "

The content of the message being updated.

" + } + }, "ConversationRetentionSettings": { "base": "

The retention settings that determine how long to retain chat conversation messages for an Amazon Chime Enterprise account.

", "refs": { @@ -501,6 +912,36 @@ "refs": { } }, + "CreateAppInstanceAdminRequest": { + "base": null, + "refs": { + } + }, + "CreateAppInstanceAdminResponse": { + "base": null, + "refs": { + } + }, + "CreateAppInstanceRequest": { + "base": null, + "refs": { + } + }, + "CreateAppInstanceResponse": { + "base": null, + "refs": { + } + }, + "CreateAppInstanceUserRequest": { + "base": null, + "refs": { + } + }, + "CreateAppInstanceUserResponse": { + "base": null, + "refs": { + } + }, "CreateAttendeeError": { "base": "

The list of errors returned when errors are encountered during the BatchCreateAttendee and CreateAttendee actions. This includes external user IDs, error codes, and error messages.

", "refs": { @@ -540,6 +981,46 @@ "refs": { } }, + "CreateChannelBanRequest": { + "base": null, + "refs": { + } + }, + "CreateChannelBanResponse": { + "base": null, + "refs": { + } + }, + "CreateChannelMembershipRequest": { + "base": null, + "refs": { + } + }, + "CreateChannelMembershipResponse": { + "base": null, + "refs": { + } + }, + "CreateChannelModeratorRequest": { + "base": null, + "refs": { + } + }, + "CreateChannelModeratorResponse": { + "base": null, + "refs": { + } + }, + "CreateChannelRequest": { + "base": null, + "refs": { + } + }, + "CreateChannelResponse": { + "base": null, + "refs": { + } + }, "CreateMeetingDialOutRequest": { "base": null, "refs": { @@ -716,87 +1197,222 @@ "refs": { } }, - "DeleteAttendeeRequest": { + "DeleteAppInstanceAdminRequest": { + "base": null, + "refs": { + } + }, + "DeleteAppInstanceRequest": { + "base": null, + "refs": { + } + }, + "DeleteAppInstanceStreamingConfigurationsRequest": { + "base": null, + "refs": { + } + }, + "DeleteAppInstanceUserRequest": { + "base": null, + "refs": { + } + }, + "DeleteAttendeeRequest": { + "base": null, + "refs": { + } + }, + "DeleteChannelBanRequest": { + "base": null, + "refs": { + } + }, + "DeleteChannelMembershipRequest": { + "base": null, + "refs": { + } + }, + "DeleteChannelMessageRequest": { + "base": null, + "refs": { + } + }, + "DeleteChannelModeratorRequest": { + "base": null, + "refs": { + } + }, + "DeleteChannelRequest": { + "base": null, + "refs": { + } + }, + "DeleteEventsConfigurationRequest": { + "base": null, + "refs": { + } + }, + "DeleteMeetingRequest": { + "base": null, + "refs": { + } + }, + "DeletePhoneNumberRequest": { + "base": null, + "refs": { + } + }, + "DeleteProxySessionRequest": { + "base": null, + "refs": { + } + }, + "DeleteRoomMembershipRequest": { + "base": null, + "refs": { + } + }, + "DeleteRoomRequest": { + "base": null, + "refs": { + } + }, + "DeleteSipMediaApplicationRequest": { + "base": null, + "refs": { + } + }, + "DeleteSipRuleRequest": { + "base": null, + "refs": { + } + }, + "DeleteVoiceConnectorEmergencyCallingConfigurationRequest": { + "base": null, + "refs": { + } + }, + "DeleteVoiceConnectorGroupRequest": { + "base": null, + "refs": { + } + }, + "DeleteVoiceConnectorOriginationRequest": { + "base": null, + "refs": { + } + }, + "DeleteVoiceConnectorProxyRequest": { + "base": null, + "refs": { + } + }, + "DeleteVoiceConnectorRequest": { + "base": null, + "refs": { + } + }, + "DeleteVoiceConnectorStreamingConfigurationRequest": { + "base": null, + "refs": { + } + }, + "DeleteVoiceConnectorTerminationCredentialsRequest": { + "base": null, + "refs": { + } + }, + "DeleteVoiceConnectorTerminationRequest": { + "base": null, + "refs": { + } + }, + "DescribeAppInstanceAdminRequest": { + "base": null, + "refs": { + } + }, + "DescribeAppInstanceAdminResponse": { "base": null, "refs": { } }, - "DeleteEventsConfigurationRequest": { + "DescribeAppInstanceRequest": { "base": null, "refs": { } }, - "DeleteMeetingRequest": { + "DescribeAppInstanceResponse": { "base": null, "refs": { } }, - "DeletePhoneNumberRequest": { + "DescribeAppInstanceUserRequest": { "base": null, "refs": { } }, - "DeleteProxySessionRequest": { + "DescribeAppInstanceUserResponse": { "base": null, "refs": { } }, - "DeleteRoomMembershipRequest": { + "DescribeChannelBanRequest": { "base": null, "refs": { } }, - "DeleteRoomRequest": { + "DescribeChannelBanResponse": { "base": null, "refs": { } }, - "DeleteSipMediaApplicationRequest": { + "DescribeChannelMembershipForAppInstanceUserRequest": { "base": null, "refs": { } }, - "DeleteSipRuleRequest": { + "DescribeChannelMembershipForAppInstanceUserResponse": { "base": null, "refs": { } }, - "DeleteVoiceConnectorEmergencyCallingConfigurationRequest": { + "DescribeChannelMembershipRequest": { "base": null, "refs": { } }, - "DeleteVoiceConnectorGroupRequest": { + "DescribeChannelMembershipResponse": { "base": null, "refs": { } }, - "DeleteVoiceConnectorOriginationRequest": { + "DescribeChannelModeratedByAppInstanceUserRequest": { "base": null, "refs": { } }, - "DeleteVoiceConnectorProxyRequest": { + "DescribeChannelModeratedByAppInstanceUserResponse": { "base": null, "refs": { } }, - "DeleteVoiceConnectorRequest": { + "DescribeChannelModeratorRequest": { "base": null, "refs": { } }, - "DeleteVoiceConnectorStreamingConfigurationRequest": { + "DescribeChannelModeratorResponse": { "base": null, "refs": { } }, - "DeleteVoiceConnectorTerminationCredentialsRequest": { + "DescribeChannelRequest": { "base": null, "refs": { } }, - "DeleteVoiceConnectorTerminationRequest": { + "DescribeChannelResponse": { "base": null, "refs": { } @@ -938,13 +1554,13 @@ "Attendee$ExternalUserId": "

The Amazon Chime SDK external user ID. An idempotency token. Links the attendee to an identity managed by a builder application. If you create an attendee with the same external user id, the service returns the existing record.

", "CreateAttendeeError$ExternalUserId": "

The Amazon Chime SDK external user ID. An idempotency token. Links the attendee to an identity managed by a builder application. If you create an attendee with the same external user id, the service returns the existing record.

", "CreateAttendeeRequest$ExternalUserId": "

The Amazon Chime SDK external user ID. An idempotency token. Links the attendee to an identity managed by a builder application. If you create an attendee with the same external user id, the service returns the existing record.

", - "CreateAttendeeRequestItem$ExternalUserId": "

The Amazon Chime SDK external user ID. An idempotency token. Links the attendee to an identity managed by a builder application. If you create an attendee with the same external user id, the service returns the existing record.

", + "CreateAttendeeRequestItem$ExternalUserId": "

The Amazon Chime SDK external user ID. An idempotency token. Links the attendee to an identity managed by a builder application. If you create an attendee with the same external user id, the service returns the existing record.

The Amazon Chime SDK external user ID. Links the attendee to an identity managed by a builder application.

", "CreateMeetingRequest$MeetingHostId": "

Reserved.

", "CreateMeetingWithAttendeesRequest$MeetingHostId": "

Reserved.

" } }, "ForbiddenException": { - "base": "

The client is permanently forbidden from making the request. For example, when a user tries to create an account from an unsupported Region.

", + "base": "

The client is permanently forbidden from making the request.

", "refs": { } }, @@ -988,6 +1604,26 @@ "refs": { } }, + "GetAppInstanceRetentionSettingsRequest": { + "base": null, + "refs": { + } + }, + "GetAppInstanceRetentionSettingsResponse": { + "base": null, + "refs": { + } + }, + "GetAppInstanceStreamingConfigurationsRequest": { + "base": null, + "refs": { + } + }, + "GetAppInstanceStreamingConfigurationsResponse": { + "base": null, + "refs": { + } + }, "GetAttendeeRequest": { "base": null, "refs": { @@ -1008,6 +1644,16 @@ "refs": { } }, + "GetChannelMessageRequest": { + "base": null, + "refs": { + } + }, + "GetChannelMessageResponse": { + "base": null, + "refs": { + } + }, "GetEventsConfigurationRequest": { "base": null, "refs": { @@ -1033,6 +1679,16 @@ "refs": { } }, + "GetMessagingSessionEndpointRequest": { + "base": null, + "refs": { + } + }, + "GetMessagingSessionEndpointResponse": { + "base": null, + "refs": { + } + }, "GetPhoneNumberOrderRequest": { "base": null, "refs": { @@ -1258,6 +1914,29 @@ "UntagMeetingRequest$MeetingId": "

The Amazon Chime SDK meeting ID.

" } }, + "Identity": { + "base": "

The ARN and name of a user.

", + "refs": { + "AppInstanceAdmin$Admin": "

The name and metadata of the app instance administrator.

", + "AppInstanceAdminSummary$Admin": "

The name and metadata of the app instance administrator.

", + "Channel$CreatedBy": "

The administrator who created the channel.

", + "ChannelBan$Member": "

The member being banned from the channel.

", + "ChannelBan$CreatedBy": "

The parameter of the action.

", + "ChannelBanSummary$Member": "

The member being banned from a channel.

", + "ChannelMembership$InvitedBy": "

The identifier of the member who invited another member. Taken from the message header.

", + "ChannelMembership$Member": "

The data of the channel member.

", + "ChannelMembershipSummary$Member": "

A member's summary data.

", + "ChannelMessage$Sender": "

The message sender.

", + "ChannelMessageSummary$Sender": "

The sender of the message summary.

", + "ChannelModerator$Moderator": "

The moderator's data.

", + "ChannelModerator$CreatedBy": "

The member who created the moderator.

", + "ChannelModeratorSummary$Moderator": "

The data for a moderator.

", + "CreateAppInstanceAdminResponse$AppInstanceAdmin": "

The name and ARN of the admin for the app instance.

", + "CreateChannelBanResponse$Member": "

The ChannelArn and BannedIdentity of the member in the ban response.

", + "CreateChannelMembershipResponse$Member": "

The ARN and metadata of the member being added.

", + "CreateChannelModeratorResponse$ChannelModerator": "

The ARNs of the channel and the moderator.

" + } + }, "Integer": { "base": null, "refs": { @@ -1361,6 +2040,36 @@ "refs": { } }, + "ListAppInstanceAdminsRequest": { + "base": null, + "refs": { + } + }, + "ListAppInstanceAdminsResponse": { + "base": null, + "refs": { + } + }, + "ListAppInstanceUsersRequest": { + "base": null, + "refs": { + } + }, + "ListAppInstanceUsersResponse": { + "base": null, + "refs": { + } + }, + "ListAppInstancesRequest": { + "base": null, + "refs": { + } + }, + "ListAppInstancesResponse": { + "base": null, + "refs": { + } + }, "ListAttendeeTagsRequest": { "base": null, "refs": { @@ -1391,6 +2100,76 @@ "refs": { } }, + "ListChannelBansRequest": { + "base": null, + "refs": { + } + }, + "ListChannelBansResponse": { + "base": null, + "refs": { + } + }, + "ListChannelMembershipsForAppInstanceUserRequest": { + "base": null, + "refs": { + } + }, + "ListChannelMembershipsForAppInstanceUserResponse": { + "base": null, + "refs": { + } + }, + "ListChannelMembershipsRequest": { + "base": null, + "refs": { + } + }, + "ListChannelMembershipsResponse": { + "base": null, + "refs": { + } + }, + "ListChannelMessagesRequest": { + "base": null, + "refs": { + } + }, + "ListChannelMessagesResponse": { + "base": null, + "refs": { + } + }, + "ListChannelModeratorsRequest": { + "base": null, + "refs": { + } + }, + "ListChannelModeratorsResponse": { + "base": null, + "refs": { + } + }, + "ListChannelsModeratedByAppInstanceUserRequest": { + "base": null, + "refs": { + } + }, + "ListChannelsModeratedByAppInstanceUserResponse": { + "base": null, + "refs": { + } + }, + "ListChannelsRequest": { + "base": null, + "refs": { + } + }, + "ListChannelsResponse": { + "base": null, + "refs": { + } + }, "ListMeetingTagsRequest": { "base": null, "refs": { @@ -1549,6 +2328,21 @@ "refs": { } }, + "MaxResults": { + "base": null, + "refs": { + "ListAppInstanceAdminsRequest$MaxResults": "

The maximum number of administrators that you want to return.

", + "ListAppInstanceUsersRequest$MaxResults": "

The maximum number of requests that you want returned.

", + "ListAppInstancesRequest$MaxResults": "

The maximum number of app instances that you want to return.

", + "ListChannelBansRequest$MaxResults": "

The maximum number of bans that you want returned.

", + "ListChannelMembershipsForAppInstanceUserRequest$MaxResults": "

The maximum number of users that you want returned.

", + "ListChannelMembershipsRequest$MaxResults": "

The maximum number of channel memberships that you want returned.

", + "ListChannelMessagesRequest$MaxResults": "

The maximum number of messages that you want returned.

", + "ListChannelModeratorsRequest$MaxResults": "

The maximum number of moderators that you want returned.

", + "ListChannelsModeratedByAppInstanceUserRequest$MaxResults": "

The maximum number of channels in the request.

", + "ListChannelsRequest$MaxResults": "

The maximum number of channels that you want to return.

" + } + }, "MediaPlacement": { "base": "

A set of endpoints used by clients to connect to the media service group for a Amazon Chime SDK meeting.

", "refs": { @@ -1627,6 +2421,72 @@ "BatchCreateRoomMembershipRequest$MembershipItemList": "

The list of membership items.

" } }, + "MessageId": { + "base": null, + "refs": { + "ChannelMessage$MessageId": "

The ID of a message.

", + "ChannelMessageSummary$MessageId": "

The ID of the message summary.

", + "DeleteChannelMessageRequest$MessageId": "

The ID of the message being deleted.

", + "GetChannelMessageRequest$MessageId": "

The ID of the message.

", + "RedactChannelMessageRequest$MessageId": "

The ID of the message being redacted.

", + "RedactChannelMessageResponse$MessageId": "

The ID of the message being redacted.

", + "SendChannelMessageResponse$MessageId": "

The ID string assigned to each message.

", + "UpdateChannelMessageRequest$MessageId": "

The ID string of the message being updated.

", + "UpdateChannelMessageResponse$MessageId": "

The ID string of the message being updated.

" + } + }, + "MessagingSessionEndpoint": { + "base": "

The endpoint of a meeting session.

", + "refs": { + "GetMessagingSessionEndpointResponse$Endpoint": "

The endpoint returned in the response.

" + } + }, + "Metadata": { + "base": null, + "refs": { + "AppInstance$Metadata": "

The metadata of an app instance.

", + "AppInstanceSummary$Metadata": "

The metadata of the app instance summary.

", + "AppInstanceUser$Metadata": "

The metadata of the app instance user.

", + "AppInstanceUserSummary$Metadata": "

The metadata in an app instance user summary.

", + "Channel$Metadata": "

The metadata of the channel.

", + "ChannelMessage$Metadata": "

The message metadata.

", + "ChannelMessageSummary$Metadata": "

The metadata of the message summary.

", + "ChannelSummary$Metadata": "

The metadata of the channel summary.

", + "CreateAppInstanceRequest$Metadata": "

The metadata of the app instance. Limited to a 1KB string in UTF-8.

", + "CreateAppInstanceUserRequest$Metadata": "

The request's metadata. Limited to a 1KB string in UTF-8.

", + "CreateChannelRequest$Metadata": "

The metadata of the creation request. Limited to 1KB and UTF-8.

", + "SendChannelMessageRequest$Metadata": "

The optional metadata for each message.

", + "UpdateAppInstanceRequest$Metadata": "

The metadata that you want to change.

", + "UpdateAppInstanceUserRequest$Metadata": "

The metadata of the app instance user.

", + "UpdateChannelMessageRequest$Metadata": "

The metadata of the message being updated.

", + "UpdateChannelRequest$Metadata": "

The metadata of the channel.

" + } + }, + "NextToken": { + "base": null, + "refs": { + "ListAppInstanceAdminsRequest$NextToken": "

The token returned from previous API requests until the number of administrators is reached.

", + "ListAppInstanceAdminsResponse$NextToken": "

The token returned from previous API requests until the number of administrators is reached.

", + "ListAppInstanceUsersRequest$NextToken": "

The token passed by previous API calls until all requested users are returned.

", + "ListAppInstanceUsersResponse$NextToken": "

The token passed by previous API calls until all requested users are returned.

", + "ListAppInstancesRequest$NextToken": "

The token passed by previous API requests until you reach the maximum number of app instances.

", + "ListAppInstancesResponse$NextToken": "

The token passed by previous API requests until the maximum number of app instances is reached.

", + "ListChannelBansRequest$NextToken": "

The token passed by previous API calls until all requested bans are returned.

", + "ListChannelBansResponse$NextToken": "

The token passed by previous API calls until all requested bans are returned.

", + "ListChannelMembershipsForAppInstanceUserRequest$NextToken": "

The token returned from previous API requests until the number of channel memberships is reached.

", + "ListChannelMembershipsForAppInstanceUserResponse$NextToken": "

The token passed by previous API calls until all requested users are returned.

", + "ListChannelMembershipsRequest$NextToken": "

The token passed by previous API calls until all requested channel memberships are returned..

", + "ListChannelMembershipsResponse$NextToken": "

The token passed by previous API calls until all requested channel memberships are returned.

", + "ListChannelMessagesRequest$NextToken": "

The token passed by previous API calls until all requested messages are returned.

", + "ListChannelMessagesResponse$NextToken": "

The token passed by previous API calls until all requested messages are returned.

", + "ListChannelModeratorsRequest$NextToken": "

The token passed by previous API calls until all requested moderators are returned.

", + "ListChannelModeratorsResponse$NextToken": "

The token passed by previous API calls until all requested moderators are returned.

", + "ListChannelsModeratedByAppInstanceUserRequest$NextToken": "

The token returned from previous API requests until the number of channels moderated by the user is reached.

", + "ListChannelsModeratedByAppInstanceUserResponse$NextToken": "

The token returned from previous API requests until the number of channels moderated by the user is reached.

", + "ListChannelsRequest$NextToken": "

The token passed by previous API calls until all requested channels are returned.

", + "ListChannelsResponse$NextToken": "

The token returned from previous API requests until the number of channels is reached.

" + } + }, "NextTokenString": { "base": null, "refs": { @@ -1638,6 +2498,25 @@ "ListSipRulesResponse$NextToken": "

The token to use to retrieve the next page of results.

" } }, + "NonEmptyContent": { + "base": null, + "refs": { + "SendChannelMessageRequest$Content": "

The content of the message.

" + } + }, + "NonEmptyResourceName": { + "base": null, + "refs": { + "AppInstance$Name": "

The name of an app instance.

", + "AppInstanceSummary$Name": "

The name of the app instance summary.

", + "Channel$Name": "

The name of the channel.

", + "ChannelSummary$Name": "

The parameter of the action.

", + "CreateAppInstanceRequest$Name": "

The name of the app instance.

", + "CreateChannelRequest$Name": "

The name of the channel.

", + "UpdateAppInstanceRequest$Name": "

The name that you want to change.

", + "UpdateChannelRequest$Name": "

The name of the channel.

" + } + }, "NonEmptyString": { "base": null, "refs": { @@ -1795,6 +2674,13 @@ "DisassociateSigninDelegateGroupsFromAccountRequest$GroupNames": "

The sign-in delegate group names.

" } }, + "NonNullableBoolean": { + "base": null, + "refs": { + "ChannelMessage$Redacted": "

Hides the content of a message. The message still exists on the back end, but this action only returns metadata.

", + "ChannelMessageSummary$Redacted": "

Redacts the content of a message summary.

" + } + }, "NotFoundException": { "base": "

One or more of the resources in the request does not exist in the system.

", "refs": { @@ -2067,6 +2953,26 @@ "ListProxySessionsResponse$ProxySessions": "

The proxy session details.

" } }, + "PutAppInstanceRetentionSettingsRequest": { + "base": null, + "refs": { + } + }, + "PutAppInstanceRetentionSettingsResponse": { + "base": null, + "refs": { + } + }, + "PutAppInstanceStreamingConfigurationsRequest": { + "base": null, + "refs": { + } + }, + "PutAppInstanceStreamingConfigurationsResponse": { + "base": null, + "refs": { + } + }, "PutEventsConfigurationRequest": { "base": null, "refs": { @@ -2162,6 +3068,16 @@ "refs": { } }, + "RedactChannelMessageRequest": { + "base": null, + "refs": { + } + }, + "RedactChannelMessageResponse": { + "base": null, + "refs": { + } + }, "RedactConversationMessageRequest": { "base": null, "refs": { @@ -2213,6 +3129,12 @@ "refs": { } }, + "ResourceName": { + "base": null, + "refs": { + "Identity$Name": "

The name in an Identity.

" + } + }, "RestorePhoneNumberRequest": { "base": null, "refs": { @@ -2243,6 +3165,7 @@ "RetentionDays": { "base": null, "refs": { + "ChannelRetentionSettings$RetentionDays": "

The time in days to retain a channel.

", "ConversationRetentionSettings$RetentionDays": "

The number of days for which to retain chat conversation messages.

", "RoomRetentionSettings$RetentionDays": "

The number of days for which to retain chat room messages.

" } @@ -2309,6 +3232,16 @@ "refs": { } }, + "SendChannelMessageRequest": { + "base": null, + "refs": { + } + }, + "SendChannelMessageResponse": { + "base": null, + "refs": { + } + }, "SensitiveString": { "base": null, "refs": { @@ -2464,6 +3397,12 @@ "SipRule$TriggerType": "

The type of trigger whose value is assigned to the SIP rule in TriggerValue.

" } }, + "SortOrder": { + "base": null, + "refs": { + "ListChannelMessagesRequest$SortOrder": "

The order in which you want messages sorted. Default is Descending, based on time created.

" + } + }, "StreamingConfiguration": { "base": "

The streaming configuration associated with an Amazon Chime Voice Connector. Specifies whether media streaming is enabled for sending to Amazon Kinesis, and shows the retention period for the Amazon Kinesis data, in hours.

", "refs": { @@ -2615,6 +3554,7 @@ "TagList": { "base": null, "refs": { + "CreateChannelRequest$Tags": null, "ListAttendeeTagsResponse$Tags": "

A list of tag key-value pairs.

", "ListMeetingTagsResponse$Tags": "

A list of tag key-value pairs.

", "ListTagsForResourceResponse$Tags": "

A list of tag-key value pairs.

", @@ -2662,6 +3602,35 @@ "refs": { } }, + "Timestamp": { + "base": null, + "refs": { + "AppInstance$CreatedTimestamp": "

The time at which an app instance was created. In epoch milliseconds.

", + "AppInstance$LastUpdatedTimestamp": "

The time an app instance was last updated. In epoch milliseconds.

", + "AppInstanceAdmin$CreatedTimestamp": "

The time at which an administrator was created.

", + "AppInstanceUser$CreatedTimestamp": "

The time at which the app instance user was created.

", + "AppInstanceUser$LastUpdatedTimestamp": "

The time at which the app instance user was last updated.

", + "AppInstanceUserMembershipSummary$ReadMarkerTimestamp": "

The time at which a summary was last read.

", + "Channel$CreatedTimestamp": "

The time at which the administrator created the channel.

", + "Channel$LastMessageTimestamp": "

The time at which a member sent the last message in a session.

", + "Channel$LastUpdatedTimestamp": "

The time at which a channel was last updated.

", + "ChannelBan$CreatedTimestamp": "

The time at which the ban was created.

", + "ChannelMembership$CreatedTimestamp": "

The time at which the channel membership was created.

", + "ChannelMembership$LastUpdatedTimestamp": "

The time at which a channel membership was last updated.

", + "ChannelMessage$CreatedTimestamp": "

The time at which the message was created.

", + "ChannelMessage$LastEditedTimestamp": "

The time at which a message was edited.

", + "ChannelMessage$LastUpdatedTimestamp": "

The time at which a message was updated.

", + "ChannelMessageSummary$CreatedTimestamp": "

The time at which the message summary was created.

", + "ChannelMessageSummary$LastUpdatedTimestamp": null, + "ChannelMessageSummary$LastEditedTimestamp": null, + "ChannelModerator$CreatedTimestamp": "

The time at which the moderator was created.

", + "ChannelSummary$LastMessageTimestamp": "

The time at which the last message in a channel was sent.

", + "GetAppInstanceRetentionSettingsResponse$InitiateDeletionTimestamp": "

The timestamp representing the time at which the specified items are retained, in Epoch Seconds.

", + "ListChannelMessagesRequest$NotBefore": "

The initial or starting time stamp for your requested messages.

", + "ListChannelMessagesRequest$NotAfter": "

The final or ending time stamp for your requested messages.

", + "PutAppInstanceRetentionSettingsResponse$InitiateDeletionTimestamp": "

The time at which the API deletes data.

" + } + }, "TollFreePrefix": { "base": null, "refs": { @@ -2713,6 +3682,26 @@ "refs": { } }, + "UpdateAppInstanceRequest": { + "base": null, + "refs": { + } + }, + "UpdateAppInstanceResponse": { + "base": null, + "refs": { + } + }, + "UpdateAppInstanceUserRequest": { + "base": null, + "refs": { + } + }, + "UpdateAppInstanceUserResponse": { + "base": null, + "refs": { + } + }, "UpdateBotRequest": { "base": null, "refs": { @@ -2723,6 +3712,36 @@ "refs": { } }, + "UpdateChannelMessageRequest": { + "base": null, + "refs": { + } + }, + "UpdateChannelMessageResponse": { + "base": null, + "refs": { + } + }, + "UpdateChannelReadMarkerRequest": { + "base": null, + "refs": { + } + }, + "UpdateChannelReadMarkerResponse": { + "base": null, + "refs": { + } + }, + "UpdateChannelRequest": { + "base": null, + "refs": { + } + }, + "UpdateChannelResponse": { + "base": null, + "refs": { + } + }, "UpdateGlobalSettingsRequest": { "base": null, "refs": { @@ -2864,6 +3883,12 @@ "MediaPlacement$TurnControlUrl": "

The turn control URL.

" } }, + "UrlType": { + "base": null, + "refs": { + "MessagingSessionEndpoint$Url": "

The URL of a meeting session endpoint.

" + } + }, "User": { "base": "

The user on the Amazon Chime account.

", "refs": { @@ -2894,6 +3919,12 @@ "BatchUpdateUserResponse$UserErrors": "

If the BatchUpdateUser action fails for one or more of the user IDs in the request, a list of the user IDs is returned, along with error codes and error messages.

" } }, + "UserId": { + "base": null, + "refs": { + "CreateAppInstanceUserRequest$AppInstanceUserId": "

The user ID of the app instance.

" + } + }, "UserIdList": { "base": null, "refs": { @@ -2907,6 +3938,15 @@ "ListUsersResponse$Users": "

List of users and user details.

" } }, + "UserName": { + "base": null, + "refs": { + "AppInstanceUser$Name": "

The name of the app instance user.

", + "AppInstanceUserSummary$Name": "

The name in an app instance user summary.

", + "CreateAppInstanceUserRequest$Name": "

The user's name.

", + "UpdateAppInstanceUserRequest$Name": "

The name of the app instance user.

" + } + }, "UserSettings": { "base": "

Settings associated with an Amazon Chime user, including inbound and outbound calling and text messaging.

", "refs": { diff --git a/models/apis/chime/2018-05-01/paginators-1.json b/models/apis/chime/2018-05-01/paginators-1.json index 6727698813d..83b1912f078 100644 --- a/models/apis/chime/2018-05-01/paginators-1.json +++ b/models/apis/chime/2018-05-01/paginators-1.json @@ -5,6 +5,21 @@ "output_token": "NextToken", "limit_key": "MaxResults" }, + "ListAppInstanceAdmins": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "MaxResults" + }, + "ListAppInstanceUsers": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "MaxResults" + }, + "ListAppInstances": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "MaxResults" + }, "ListAttendees": { "input_token": "NextToken", "output_token": "NextToken", @@ -15,6 +30,41 @@ "output_token": "NextToken", "limit_key": "MaxResults" }, + "ListChannelBans": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "MaxResults" + }, + "ListChannelMemberships": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "MaxResults" + }, + "ListChannelMembershipsForAppInstanceUser": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "MaxResults" + }, + "ListChannelMessages": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "MaxResults" + }, + "ListChannelModerators": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "MaxResults" + }, + "ListChannels": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "MaxResults" + }, + "ListChannelsModeratedByAppInstanceUser": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "MaxResults" + }, "ListMeetings": { "input_token": "NextToken", "output_token": "NextToken", @@ -45,6 +95,16 @@ "output_token": "NextToken", "limit_key": "MaxResults" }, + "ListSipMediaApplications": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "MaxResults" + }, + "ListSipRules": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "MaxResults" + }, "ListUsers": { "input_token": "NextToken", "output_token": "NextToken", diff --git a/models/apis/cloudhsmv2/2017-04-28/api-2.json b/models/apis/cloudhsmv2/2017-04-28/api-2.json index d710041fd64..6c125bc862c 100644 --- a/models/apis/cloudhsmv2/2017-04-28/api-2.json +++ b/models/apis/cloudhsmv2/2017-04-28/api-2.json @@ -179,6 +179,38 @@ {"shape":"CloudHsmTagException"} ] }, + "ModifyBackupAttributes":{ + "name":"ModifyBackupAttributes", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ModifyBackupAttributesRequest"}, + "output":{"shape":"ModifyBackupAttributesResponse"}, + "errors":[ + {"shape":"CloudHsmAccessDeniedException"}, + {"shape":"CloudHsmInternalFailureException"}, + {"shape":"CloudHsmInvalidRequestException"}, + {"shape":"CloudHsmResourceNotFoundException"}, + {"shape":"CloudHsmServiceException"} + ] + }, + "ModifyCluster":{ + "name":"ModifyCluster", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"ModifyClusterRequest"}, + "output":{"shape":"ModifyClusterResponse"}, + "errors":[ + {"shape":"CloudHsmAccessDeniedException"}, + {"shape":"CloudHsmInternalFailureException"}, + {"shape":"CloudHsmInvalidRequestException"}, + {"shape":"CloudHsmResourceNotFoundException"}, + {"shape":"CloudHsmServiceException"} + ] + }, "RestoreBackup":{ "name":"RestoreBackup", "http":{ @@ -240,6 +272,7 @@ "ClusterId":{"shape":"ClusterId"}, "CreateTimestamp":{"shape":"Timestamp"}, "CopyTimestamp":{"shape":"Timestamp"}, + "NeverExpires":{"shape":"Boolean"}, "SourceRegion":{"shape":"Region"}, "SourceBackup":{"shape":"BackupId"}, "SourceCluster":{"shape":"ClusterId"}, @@ -255,6 +288,23 @@ "type":"string", "enum":["DEFAULT"] }, + "BackupRetentionPolicy":{ + "type":"structure", + "members":{ + "Type":{"shape":"BackupRetentionType"}, + "Value":{"shape":"BackupRetentionValue"} + } + }, + "BackupRetentionType":{ + "type":"string", + "enum":["DAYS"] + }, + "BackupRetentionValue":{ + "type":"string", + "max":3, + "min":1, + "pattern":"[0-9]+" + }, "BackupState":{ "type":"string", "enum":[ @@ -268,6 +318,11 @@ "type":"list", "member":{"shape":"Backup"} }, + "BackupsMaxSize":{ + "type":"integer", + "max":50, + "min":1 + }, "Boolean":{"type":"boolean"}, "Cert":{ "type":"string", @@ -331,6 +386,7 @@ "type":"structure", "members":{ "BackupPolicy":{"shape":"BackupPolicy"}, + "BackupRetentionPolicy":{"shape":"BackupRetentionPolicy"}, "ClusterId":{"shape":"ClusterId"}, "CreateTimestamp":{"shape":"Timestamp"}, "Hsms":{"shape":"Hsms"}, @@ -368,6 +424,11 @@ "type":"list", "member":{"shape":"Cluster"} }, + "ClustersMaxSize":{ + "type":"integer", + "max":25, + "min":1 + }, "CopyBackupToRegionRequest":{ "type":"structure", "required":[ @@ -389,13 +450,14 @@ "CreateClusterRequest":{ "type":"structure", "required":[ - "SubnetIds", - "HsmType" + "HsmType", + "SubnetIds" ], "members":{ - "SubnetIds":{"shape":"SubnetIds"}, + "BackupRetentionPolicy":{"shape":"BackupRetentionPolicy"}, "HsmType":{"shape":"HsmType"}, "SourceBackupId":{"shape":"BackupId"}, + "SubnetIds":{"shape":"SubnetIds"}, "TagList":{"shape":"TagList"} } }, @@ -469,7 +531,7 @@ "type":"structure", "members":{ "NextToken":{"shape":"NextToken"}, - "MaxResults":{"shape":"MaxSize"}, + "MaxResults":{"shape":"BackupsMaxSize"}, "Filters":{"shape":"Filters"}, "SortAscending":{"shape":"Boolean"} } @@ -486,7 +548,7 @@ "members":{ "Filters":{"shape":"Filters"}, "NextToken":{"shape":"NextToken"}, - "MaxResults":{"shape":"MaxSize"} + "MaxResults":{"shape":"ClustersMaxSize"} } }, "DescribeClustersResponse":{ @@ -609,6 +671,40 @@ "max":100, "min":1 }, + "ModifyBackupAttributesRequest":{ + "type":"structure", + "required":[ + "BackupId", + "NeverExpires" + ], + "members":{ + "BackupId":{"shape":"BackupId"}, + "NeverExpires":{"shape":"Boolean"} + } + }, + "ModifyBackupAttributesResponse":{ + "type":"structure", + "members":{ + "Backup":{"shape":"Backup"} + } + }, + "ModifyClusterRequest":{ + "type":"structure", + "required":[ + "BackupRetentionPolicy", + "ClusterId" + ], + "members":{ + "BackupRetentionPolicy":{"shape":"BackupRetentionPolicy"}, + "ClusterId":{"shape":"ClusterId"} + } + }, + "ModifyClusterResponse":{ + "type":"structure", + "members":{ + "Cluster":{"shape":"Cluster"} + } + }, "NextToken":{ "type":"string", "max":256, diff --git a/models/apis/cloudhsmv2/2017-04-28/docs-2.json b/models/apis/cloudhsmv2/2017-04-28/docs-2.json index 2431674dd0f..683bf159c0a 100644 --- a/models/apis/cloudhsmv2/2017-04-28/docs-2.json +++ b/models/apis/cloudhsmv2/2017-04-28/docs-2.json @@ -12,16 +12,19 @@ "DescribeClusters": "

Gets information about AWS CloudHSM clusters.

This is a paginated operation, which means that each response might contain only a subset of all the clusters. When the response contains only a subset of clusters, it includes a NextToken value. Use this value in a subsequent DescribeClusters request to get more clusters. When you receive a response with no NextToken (or an empty or null value), that means there are no more clusters to get.

", "InitializeCluster": "

Claims an AWS CloudHSM cluster by submitting the cluster certificate issued by your issuing certificate authority (CA) and the CA's root certificate. Before you can claim a cluster, you must sign the cluster's certificate signing request (CSR) with your issuing CA. To get the cluster's CSR, use DescribeClusters.

", "ListTags": "

Gets a list of tags for the specified AWS CloudHSM cluster.

This is a paginated operation, which means that each response might contain only a subset of all the tags. When the response contains only a subset of tags, it includes a NextToken value. Use this value in a subsequent ListTags request to get more tags. When you receive a response with no NextToken (or an empty or null value), that means there are no more tags to get.

", + "ModifyBackupAttributes": "

Modifies attributes for AWS CloudHSM backup.

", + "ModifyCluster": "

Modifies AWS CloudHSM cluster.

", "RestoreBackup": "

Restores a specified AWS CloudHSM backup that is in the PENDING_DELETION state. For mor information on deleting a backup, see DeleteBackup.

", "TagResource": "

Adds or overwrites one or more tags for the specified AWS CloudHSM cluster.

", "UntagResource": "

Removes the specified tag or tags from the specified AWS CloudHSM cluster.

" }, "shapes": { "Backup": { - "base": "

Contains information about a backup of an AWS CloudHSM cluster. All backup objects contain the BackupId, BackupState, ClusterId, and CreateTimestamp parameters. Backups that were copied into a destination region additionally contain the CopyTimestamp, SourceBackup, SourceCluster, and SourceRegion paramters. A backup that is pending deletion will include the DeleteTimestamp parameter.

", + "base": "

Contains information about a backup of an AWS CloudHSM cluster. All backup objects contain the BackupId, BackupState, ClusterId, and CreateTimestamp parameters. Backups that were copied into a destination region additionally contain the CopyTimestamp, SourceBackup, SourceCluster, and SourceRegion parameters. A backup that is pending deletion will include the DeleteTimestamp parameter.

", "refs": { "Backups$member": null, "DeleteBackupResponse$Backup": "

Information on the Backup object deleted.

", + "ModifyBackupAttributesResponse$Backup": null, "RestoreBackupResponse$Backup": "

Information on the Backup object created.

" } }, @@ -35,6 +38,7 @@ "CreateClusterRequest$SourceBackupId": "

The identifier (ID) of the cluster backup to restore. Use this value to restore the cluster from a backup instead of creating a new cluster. To find the backup ID, use DescribeBackups.

", "DeleteBackupRequest$BackupId": "

The ID of the backup to be deleted. To find the ID of a backup, use the DescribeBackups operation.

", "DestinationBackup$SourceBackup": "

The identifier (ID) of the source backup from which the new backup was copied.

", + "ModifyBackupAttributesRequest$BackupId": "

The identifier (ID) of the backup to modify. To find the ID of a backup, use the DescribeBackups operation.

", "RestoreBackupRequest$BackupId": "

The ID of the backup to be restored. To find the ID of a backup, use the DescribeBackups operation.

" } }, @@ -44,6 +48,26 @@ "Cluster$BackupPolicy": "

The cluster's backup policy.

" } }, + "BackupRetentionPolicy": { + "base": "

A policy that defines the number of days to retain backups.

", + "refs": { + "Cluster$BackupRetentionPolicy": "

A policy that defines how the service retains backups.

", + "CreateClusterRequest$BackupRetentionPolicy": "

A policy that defines how the service retains backups.

", + "ModifyClusterRequest$BackupRetentionPolicy": "

A policy that defines how the service retains backups.

" + } + }, + "BackupRetentionType": { + "base": null, + "refs": { + "BackupRetentionPolicy$Type": "

The type of backup retention policy. For the DAYS type, the value is the number of days to retain backups.

" + } + }, + "BackupRetentionValue": { + "base": null, + "refs": { + "BackupRetentionPolicy$Value": "

Use a value between 7 - 379.

" + } + }, "BackupState": { "base": null, "refs": { @@ -56,10 +80,18 @@ "DescribeBackupsResponse$Backups": "

A list of backups.

" } }, + "BackupsMaxSize": { + "base": null, + "refs": { + "DescribeBackupsRequest$MaxResults": "

The maximum number of backups to return in the response. When there are more backups than the number you specify, the response contains a NextToken value.

" + } + }, "Boolean": { "base": null, "refs": { - "DescribeBackupsRequest$SortAscending": "

Designates whether or not to sort the return backups by ascending chronological order of generation.

" + "Backup$NeverExpires": "

Specifies whether the service should exempt a backup from the retention policy for the cluster. True exempts a backup from the retention policy. False means the service applies the backup retention policy defined at the cluster.

", + "DescribeBackupsRequest$SortAscending": "

Designates whether or not to sort the return backups by ascending chronological order of generation.

", + "ModifyBackupAttributesRequest$NeverExpires": "

Specifies whether the service should exempt a backup from the retention policy for the cluster. True exempts a backup from the retention policy. False means the service applies the backup retention policy defined at the cluster.

" } }, "Cert": { @@ -115,7 +147,8 @@ "refs": { "Clusters$member": null, "CreateClusterResponse$Cluster": "

Information about the cluster that was created.

", - "DeleteClusterResponse$Cluster": "

Information about the cluster that was deleted.

" + "DeleteClusterResponse$Cluster": "

Information about the cluster that was deleted.

", + "ModifyClusterResponse$Cluster": null } }, "ClusterId": { @@ -129,7 +162,8 @@ "DeleteHsmRequest$ClusterId": "

The identifier (ID) of the cluster that contains the HSM that you are deleting.

", "DestinationBackup$SourceCluster": "

The identifier (ID) of the cluster containing the source backup from which the new backup was copied.

", "Hsm$ClusterId": "

The identifier (ID) of the cluster that contains the HSM.

", - "InitializeClusterRequest$ClusterId": "

The identifier (ID) of the cluster that you are claiming. To find the cluster ID, use DescribeClusters.

" + "InitializeClusterRequest$ClusterId": "

The identifier (ID) of the cluster that you are claiming. To find the cluster ID, use DescribeClusters.

", + "ModifyClusterRequest$ClusterId": "

The identifier (ID) of the cluster that you want to modify. To find the cluster ID, use DescribeClusters.

" } }, "ClusterState": { @@ -145,6 +179,12 @@ "DescribeClustersResponse$Clusters": "

A list of clusters.

" } }, + "ClustersMaxSize": { + "base": null, + "refs": { + "DescribeClustersRequest$MaxResults": "

The maximum number of clusters to return in the response. When there are more clusters than the number you specify, the response contains a NextToken value.

" + } + }, "CopyBackupToRegionRequest": { "base": null, "refs": { @@ -261,7 +301,7 @@ "Filters": { "base": null, "refs": { - "DescribeBackupsRequest$Filters": "

One or more filters to limit the items returned in the response.

Use the backupIds filter to return only the specified backups. Specify backups by their backup identifier (ID).

Use the sourceBackupIds filter to return only the backups created from a source backup. The sourceBackupID of a source backup is returned by the CopyBackupToRegion operation.

Use the clusterIds filter to return only the backups for the specified clusters. Specify clusters by their cluster identifier (ID).

Use the states filter to return only backups that match the specified state.

", + "DescribeBackupsRequest$Filters": "

One or more filters to limit the items returned in the response.

Use the backupIds filter to return only the specified backups. Specify backups by their backup identifier (ID).

Use the sourceBackupIds filter to return only the backups created from a source backup. The sourceBackupID of a source backup is returned by the CopyBackupToRegion operation.

Use the clusterIds filter to return only the backups for the specified clusters. Specify clusters by their cluster identifier (ID).

Use the states filter to return only backups that match the specified state.

Use the neverExpires filter to return backups filtered by the value in the neverExpires parameter. True returns all backups exempt from the backup retention policy. False returns all backups with a backup retention policy defined at the cluster.

", "DescribeClustersRequest$Filters": "

One or more filters to limit the items returned in the response.

Use the clusterIds filter to return only the specified clusters. Specify clusters by their cluster identifier (ID).

Use the vpcIds filter to return only the clusters in the specified virtual private clouds (VPCs). Specify VPCs by their VPC identifier (ID).

Use the states filter to return only clusters that match the specified state.

" } }, @@ -330,11 +370,29 @@ "MaxSize": { "base": null, "refs": { - "DescribeBackupsRequest$MaxResults": "

The maximum number of backups to return in the response. When there are more backups than the number you specify, the response contains a NextToken value.

", - "DescribeClustersRequest$MaxResults": "

The maximum number of clusters to return in the response. When there are more clusters than the number you specify, the response contains a NextToken value.

", "ListTagsRequest$MaxResults": "

The maximum number of tags to return in the response. When there are more tags than the number you specify, the response contains a NextToken value.

" } }, + "ModifyBackupAttributesRequest": { + "base": null, + "refs": { + } + }, + "ModifyBackupAttributesResponse": { + "base": null, + "refs": { + } + }, + "ModifyClusterRequest": { + "base": null, + "refs": { + } + }, + "ModifyClusterResponse": { + "base": null, + "refs": { + } + }, "NextToken": { "base": null, "refs": { diff --git a/models/apis/codeguru-reviewer/2019-09-19/api-2.json b/models/apis/codeguru-reviewer/2019-09-19/api-2.json index 1e86fd38062..ee670803ab8 100644 --- a/models/apis/codeguru-reviewer/2019-09-19/api-2.json +++ b/models/apis/codeguru-reviewer/2019-09-19/api-2.json @@ -172,6 +172,20 @@ {"shape":"ThrottlingException"} ] }, + "ListTagsForResource":{ + "name":"ListTagsForResource", + "http":{ + "method":"GET", + "requestUri":"/tags/{resourceArn}" + }, + "input":{"shape":"ListTagsForResourceRequest"}, + "output":{"shape":"ListTagsForResourceResponse"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"ValidationException"}, + {"shape":"ResourceNotFoundException"} + ] + }, "PutRecommendationFeedback":{ "name":"PutRecommendationFeedback", "http":{ @@ -187,6 +201,34 @@ {"shape":"AccessDeniedException"}, {"shape":"ThrottlingException"} ] + }, + "TagResource":{ + "name":"TagResource", + "http":{ + "method":"POST", + "requestUri":"/tags/{resourceArn}" + }, + "input":{"shape":"TagResourceRequest"}, + "output":{"shape":"TagResourceResponse"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"ValidationException"}, + {"shape":"ResourceNotFoundException"} + ] + }, + "UntagResource":{ + "name":"UntagResource", + "http":{ + "method":"DELETE", + "requestUri":"/tags/{resourceArn}" + }, + "input":{"shape":"UntagResourceRequest"}, + "output":{"shape":"UntagResourceResponse"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"ValidationException"}, + {"shape":"ResourceNotFoundException"} + ] } }, "shapes":{ @@ -212,15 +254,23 @@ "ClientRequestToken":{ "shape":"ClientRequestToken", "idempotencyToken":true - } + }, + "Tags":{"shape":"TagMap"} } }, "AssociateRepositoryResponse":{ "type":"structure", "members":{ - "RepositoryAssociation":{"shape":"RepositoryAssociation"} + "RepositoryAssociation":{"shape":"RepositoryAssociation"}, + "Tags":{"shape":"TagMap"} } }, + "AssociationArn":{ + "type":"string", + "max":1600, + "min":1, + "pattern":"^arn:aws[^:\\s]*:codeguru-reviewer:[^:\\s]+:[\\d]{12}:association:[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$" + }, "AssociationId":{ "type":"string", "max":64, @@ -259,6 +309,7 @@ "Type":{"shape":"Type"}, "PullRequestId":{"shape":"PullRequestId"}, "SourceCodeType":{"shape":"SourceCodeType"}, + "AssociationArn":{"shape":"AssociationArn"}, "Metrics":{"shape":"Metrics"} } }, @@ -330,7 +381,7 @@ ], "members":{ "Name":{"shape":"CodeReviewName"}, - "RepositoryAssociationArn":{"shape":"Arn"}, + "RepositoryAssociationArn":{"shape":"AssociationArn"}, "Type":{"shape":"CodeReviewType"}, "ClientRequestToken":{ "shape":"ClientRequestToken", @@ -396,7 +447,7 @@ "required":["AssociationArn"], "members":{ "AssociationArn":{ - "shape":"Arn", + "shape":"AssociationArn", "location":"uri", "locationName":"AssociationArn" } @@ -405,7 +456,8 @@ "DescribeRepositoryAssociationResponse":{ "type":"structure", "members":{ - "RepositoryAssociation":{"shape":"RepositoryAssociation"} + "RepositoryAssociation":{"shape":"RepositoryAssociation"}, + "Tags":{"shape":"TagMap"} } }, "DisassociateRepositoryRequest":{ @@ -413,7 +465,7 @@ "required":["AssociationArn"], "members":{ "AssociationArn":{ - "shape":"Arn", + "shape":"AssociationArn", "location":"uri", "locationName":"AssociationArn" } @@ -422,7 +474,8 @@ "DisassociateRepositoryResponse":{ "type":"structure", "members":{ - "RepositoryAssociation":{"shape":"RepositoryAssociation"} + "RepositoryAssociation":{"shape":"RepositoryAssociation"}, + "Tags":{"shape":"TagMap"} } }, "ErrorMessage":{"type":"string"}, @@ -613,6 +666,23 @@ "NextToken":{"shape":"NextToken"} } }, + "ListTagsForResourceRequest":{ + "type":"structure", + "required":["resourceArn"], + "members":{ + "resourceArn":{ + "shape":"AssociationArn", + "location":"uri", + "locationName":"resourceArn" + } + } + }, + "ListTagsForResourceResponse":{ + "type":"structure", + "members":{ + "Tags":{"shape":"TagMap"} + } + }, "MaxResults":{ "type":"integer", "max":100, @@ -805,13 +875,14 @@ "Associated", "Associating", "Failed", - "Disassociating" + "Disassociating", + "Disassociated" ] }, "RepositoryAssociationStates":{ "type":"list", "member":{"shape":"RepositoryAssociationState"}, - "max":3, + "max":5, "min":1 }, "RepositoryAssociationSummaries":{ @@ -864,6 +935,48 @@ "max":256, "min":0 }, + "TagKey":{ + "type":"string", + "max":128, + "min":1 + }, + "TagKeyList":{ + "type":"list", + "member":{"shape":"TagKey"}, + "max":50, + "min":1 + }, + "TagMap":{ + "type":"map", + "key":{"shape":"TagKey"}, + "value":{"shape":"TagValue"}, + "max":50, + "min":1 + }, + "TagResourceRequest":{ + "type":"structure", + "required":[ + "resourceArn", + "Tags" + ], + "members":{ + "resourceArn":{ + "shape":"AssociationArn", + "location":"uri", + "locationName":"resourceArn" + }, + "Tags":{"shape":"TagMap"} + } + }, + "TagResourceResponse":{ + "type":"structure", + "members":{ + } + }, + "TagValue":{ + "type":"string", + "max":256 + }, "Text":{ "type":"string", "max":2048, @@ -898,6 +1011,30 @@ "RepositoryAnalysis" ] }, + "UntagResourceRequest":{ + "type":"structure", + "required":[ + "resourceArn", + "TagKeys" + ], + "members":{ + "resourceArn":{ + "shape":"AssociationArn", + "location":"uri", + "locationName":"resourceArn" + }, + "TagKeys":{ + "shape":"TagKeyList", + "location":"querystring", + "locationName":"tagKeys" + } + } + }, + "UntagResourceResponse":{ + "type":"structure", + "members":{ + } + }, "UserId":{ "type":"string", "max":256, diff --git a/models/apis/codeguru-reviewer/2019-09-19/docs-2.json b/models/apis/codeguru-reviewer/2019-09-19/docs-2.json index 6997baca768..b39cc347332 100644 --- a/models/apis/codeguru-reviewer/2019-09-19/docs-2.json +++ b/models/apis/codeguru-reviewer/2019-09-19/docs-2.json @@ -1,9 +1,9 @@ { "version": "2.0", - "service": "

This section provides documentation for the Amazon CodeGuru Reviewer API operations. CodeGuru Reviewer is a service that uses program analysis and machine learning to detect potential defects that are difficult for developers to find and recommends fixes in your Java code.

By proactively detecting and providing recommendations for addressing code defects and implementing best practices, CodeGuru Reviewer improves the overall quality and maintainability of your code base during the code review stage. For more information about CodeGuru Reviewer, see the Amazon CodeGuru Reviewer User Guide.

", + "service": "

This section provides documentation for the Amazon CodeGuru Reviewer API operations. CodeGuru Reviewer is a service that uses program analysis and machine learning to detect potential defects that are difficult for developers to find and recommends fixes in your Java code.

By proactively detecting and providing recommendations for addressing code defects and implementing best practices, CodeGuru Reviewer improves the overall quality and maintainability of your code base during the code review stage. For more information about CodeGuru Reviewer, see the Amazon CodeGuru Reviewer User Guide.

To improve the security of your CodeGuru Reviewer API calls, you can establish a private connection between your VPC and CodeGuru Reviewer by creating an interface VPC endpoint. For more information, see CodeGuru Reviewer and interface VPC endpoints (AWS PrivateLink) in the Amazon CodeGuru Reviewer User Guide.

", "operations": { "AssociateRepository": "

Use to associate an AWS CodeCommit repository or a repostory managed by AWS CodeStar Connections with Amazon CodeGuru Reviewer. When you associate a repository, CodeGuru Reviewer reviews source code changes in the repository's pull requests and provides automatic recommendations. You can view recommendations using the CodeGuru Reviewer console. For more information, see Recommendations in Amazon CodeGuru Reviewer in the Amazon CodeGuru Reviewer User Guide.

If you associate a CodeCommit repository, it must be in the same AWS Region and AWS account where its CodeGuru Reviewer code reviews are configured.

Bitbucket and GitHub Enterprise Server repositories are managed by AWS CodeStar Connections to connect to CodeGuru Reviewer. For more information, see Connect to a repository source provider in the Amazon CodeGuru Reviewer User Guide.

You cannot use the CodeGuru Reviewer SDK or the AWS CLI to associate a GitHub repository with Amazon CodeGuru Reviewer. To associate a GitHub repository, use the console. For more information, see Getting started with CodeGuru Reviewer in the CodeGuru Reviewer User Guide.

", - "CreateCodeReview": "

Use to create a code review for a repository analysis.

", + "CreateCodeReview": "

Use to create a code review with a CodeReviewType of RepositoryAnalysis. This type of code review analyzes all code under a specified branch in an associated repository. PullRequest code reviews are automatically triggered by a pull request so cannot be created using this method.

", "DescribeCodeReview": "

Returns the metadata associated with the code review along with its status.

", "DescribeRecommendationFeedback": "

Describes the customer feedback for a CodeGuru Reviewer recommendation.

", "DescribeRepositoryAssociation": "

Returns a RepositoryAssociation object that contains information about the requested repository association.

", @@ -12,7 +12,10 @@ "ListRecommendationFeedback": "

Returns a list of RecommendationFeedbackSummary objects that contain customer recommendation feedback for all CodeGuru Reviewer users.

", "ListRecommendations": "

Returns the list of all recommendations for a completed code review.

", "ListRepositoryAssociations": "

Returns a list of RepositoryAssociationSummary objects that contain summary information about a repository association. You can filter the returned list by ProviderType , Name , State , and Owner .

", - "PutRecommendationFeedback": "

Stores customer feedback for a CodeGuru Reviewer recommendation. When this API is called again with different reactions the previous feedback is overwritten.

" + "ListTagsForResource": "

Returns the list of tags associated with an associated repository resource.

", + "PutRecommendationFeedback": "

Stores customer feedback for a CodeGuru Reviewer recommendation. When this API is called again with different reactions the previous feedback is overwritten.

", + "TagResource": "

Adds one or more tags to an associated repository.

", + "UntagResource": "

Removes a tag from an associated repository.

" }, "shapes": { "AccessDeniedException": { @@ -25,17 +28,14 @@ "refs": { "CodeReview$CodeReviewArn": "

The Amazon Resource Name (ARN) of the CodeReview object.

", "CodeReviewSummary$CodeReviewArn": "

The Amazon Resource Name (ARN) of the CodeReview object.

", - "CreateCodeReviewRequest$RepositoryAssociationArn": "

The Amazon Resource Name (ARN) of the RepositoryAssociation object. You can retrieve this ARN by calling ListRepositories.

A code review can only be created on an associated repository. This is the ARN of the associated repository.

", "DescribeCodeReviewRequest$CodeReviewArn": "

The Amazon Resource Name (ARN) of the CodeReview object.

", "DescribeRecommendationFeedbackRequest$CodeReviewArn": "

The Amazon Resource Name (ARN) of the CodeReview object.

", - "DescribeRepositoryAssociationRequest$AssociationArn": "

The Amazon Resource Name (ARN) of the RepositoryAssociation object. You can retrieve this ARN by calling ListRepositories.

", - "DisassociateRepositoryRequest$AssociationArn": "

The Amazon Resource Name (ARN) of the RepositoryAssociation object. You can retrieve this ARN by calling ListRepositories.

", "ListRecommendationFeedbackRequest$CodeReviewArn": "

The Amazon Resource Name (ARN) of the CodeReview object.

", "ListRecommendationsRequest$CodeReviewArn": "

The Amazon Resource Name (ARN) of the CodeReview object.

", "PutRecommendationFeedbackRequest$CodeReviewArn": "

The Amazon Resource Name (ARN) of the CodeReview object.

", "RecommendationFeedback$CodeReviewArn": "

The Amazon Resource Name (ARN) of the CodeReview object.

", "RepositoryAssociation$AssociationArn": "

The Amazon Resource Name (ARN) identifying the repository association.

", - "RepositoryAssociationSummary$AssociationArn": "

The Amazon Resource Name (ARN) of the RepositoryAssociation object. You can retrieve this ARN by calling ListRepositories.

" + "RepositoryAssociationSummary$AssociationArn": "

The Amazon Resource Name (ARN) of the RepositoryAssociation object. You can retrieve this ARN by calling ListRepositoryAssociations .

" } }, "AssociateRepositoryRequest": { @@ -48,6 +48,18 @@ "refs": { } }, + "AssociationArn": { + "base": null, + "refs": { + "CodeReview$AssociationArn": "

The Amazon Resource Name (ARN) of the RepositoryAssociation that contains the reviewed source code. You can retrieve associated repository ARNs by calling ListRepositoryAssociations .

", + "CreateCodeReviewRequest$RepositoryAssociationArn": "

The Amazon Resource Name (ARN) of the RepositoryAssociation object. You can retrieve this ARN by calling ListRepositoryAssociations .

A code review can only be created on an associated repository. This is the ARN of the associated repository.

", + "DescribeRepositoryAssociationRequest$AssociationArn": "

The Amazon Resource Name (ARN) of the RepositoryAssociation object. You can retrieve this ARN by calling ListRepositoryAssociations .

", + "DisassociateRepositoryRequest$AssociationArn": "

The Amazon Resource Name (ARN) of the RepositoryAssociation object. You can retrieve this ARN by calling ListRepositoryAssociations .

", + "ListTagsForResourceRequest$resourceArn": "

The Amazon Resource Name (ARN) of the RepositoryAssociation object. You can retrieve this ARN by calling ListRepositoryAssociations .

", + "TagResourceRequest$resourceArn": "

The Amazon Resource Name (ARN) of the RepositoryAssociation object. You can retrieve this ARN by calling ListRepositoryAssociations .

", + "UntagResourceRequest$resourceArn": "

The Amazon Resource Name (ARN) of the RepositoryAssociation object. You can retrieve this ARN by calling ListRepositoryAssociations .

" + } + }, "AssociationId": { "base": null, "refs": { @@ -75,7 +87,7 @@ } }, "CodeReview": { - "base": "

Information about a code review.

", + "base": "

Information about a code review. A code review belongs to the associated repository that contains the reviewed code.

", "refs": { "CreateCodeReviewResponse$CodeReview": null, "DescribeCodeReviewResponse$CodeReview": "

Information about the code review.

" @@ -84,7 +96,7 @@ "CodeReviewName": { "base": null, "refs": { - "CreateCodeReviewRequest$Name": "

The name of the code review. Each code review of the same code review type must have a unique name in your AWS account.

" + "CreateCodeReviewRequest$Name": "

The name of the code review. The name of each code review in your AWS account must be unique.

" } }, "CodeReviewSummaries": { @@ -102,7 +114,7 @@ "CodeReviewType": { "base": "

The type of a code review. There are two code review types:

", "refs": { - "CreateCodeReviewRequest$Type": "

The type of code review to create. This is specified using a CodeReviewType object.

" + "CreateCodeReviewRequest$Type": "

The type of code review to create. This is specified using a CodeReviewType object. You can create a code review only of type RepositoryAnalysis.

" } }, "CommitDiffSourceCodeType": { @@ -278,6 +290,16 @@ "refs": { } }, + "ListTagsForResourceRequest": { + "base": null, + "refs": { + } + }, + "ListTagsForResourceResponse": { + "base": null, + "refs": { + } + }, "MaxResults": { "base": null, "refs": { @@ -465,7 +487,7 @@ "RepositoryAnalysis": { "base": "

A code review type that analyzes all code under a specified branch in an associated respository. The assocated repository is specified using its ARN when you call CreateCodeReview .

", "refs": { - "CodeReviewType$RepositoryAnalysis": "

A code review that analyzes all code under a specified branch in an associated respository. The assocated repository is specified using its ARN in CreateCodeReview

" + "CodeReviewType$RepositoryAnalysis": "

A code review that analyzes all code under a specified branch in an associated respository. The assocated repository is specified using its ARN in CreateCodeReview .

" } }, "RepositoryAssociation": { @@ -479,15 +501,15 @@ "RepositoryAssociationState": { "base": null, "refs": { - "RepositoryAssociation$State": "

The state of the repository association.

The valid repository association states are:

", + "RepositoryAssociation$State": "

The state of the repository association.

The valid repository association states are:

", "RepositoryAssociationStates$member": null, - "RepositoryAssociationSummary$State": "

The state of the repository association.

The valid repository association states are:

" + "RepositoryAssociationSummary$State": "

The state of the repository association.

The valid repository association states are:

" } }, "RepositoryAssociationStates": { "base": null, "refs": { - "ListRepositoryAssociationsRequest$States": "

List of repository association states to use as a filter.

The valid repository association states are:

" + "ListRepositoryAssociationsRequest$States": "

List of repository association states to use as a filter.

The valid repository association states are:

" } }, "RepositoryAssociationSummaries": { @@ -533,6 +555,46 @@ "RepositoryAssociation$StateReason": "

A description of why the repository association is in the current state.

" } }, + "TagKey": { + "base": null, + "refs": { + "TagKeyList$member": null, + "TagMap$key": null + } + }, + "TagKeyList": { + "base": null, + "refs": { + "UntagResourceRequest$TagKeys": "

A list of the keys for each tag you want to remove from an associated repository.

" + } + }, + "TagMap": { + "base": null, + "refs": { + "AssociateRepositoryRequest$Tags": "

An array of key-value pairs used to tag an associated repository. A tag is a custom attribute label with two parts:

", + "AssociateRepositoryResponse$Tags": "

An array of key-value pairs used to tag an associated repository. A tag is a custom attribute label with two parts:

", + "DescribeRepositoryAssociationResponse$Tags": "

An array of key-value pairs used to tag an associated repository. A tag is a custom attribute label with two parts:

", + "DisassociateRepositoryResponse$Tags": "

An array of key-value pairs used to tag an associated repository. A tag is a custom attribute label with two parts:

", + "ListTagsForResourceResponse$Tags": "

An array of key-value pairs used to tag an associated repository. A tag is a custom attribute label with two parts:

", + "TagResourceRequest$Tags": "

An array of key-value pairs used to tag an associated repository. A tag is a custom attribute label with two parts:

" + } + }, + "TagResourceRequest": { + "base": null, + "refs": { + } + }, + "TagResourceResponse": { + "base": null, + "refs": { + } + }, + "TagValue": { + "base": null, + "refs": { + "TagMap$value": null + } + }, "Text": { "base": null, "refs": { @@ -573,6 +635,16 @@ "ListCodeReviewsRequest$Type": "

The type of code reviews to list in the response.

" } }, + "UntagResourceRequest": { + "base": null, + "refs": { + } + }, + "UntagResourceResponse": { + "base": null, + "refs": { + } + }, "UserId": { "base": null, "refs": { diff --git a/models/apis/cognito-identity/2014-06-30/api-2.json b/models/apis/cognito-identity/2014-06-30/api-2.json index 48c8a213edb..5e9ed8b7bde 100644 --- a/models/apis/cognito-identity/2014-06-30/api-2.json +++ b/models/apis/cognito-identity/2014-06-30/api-2.json @@ -107,7 +107,8 @@ {"shape":"InvalidIdentityPoolConfigurationException"}, {"shape":"InternalErrorException"}, {"shape":"ExternalServiceException"} - ] + ], + "authtype":"none" }, "GetId":{ "name":"GetId", @@ -126,7 +127,8 @@ {"shape":"InternalErrorException"}, {"shape":"LimitExceededException"}, {"shape":"ExternalServiceException"} - ] + ], + "authtype":"none" }, "GetIdentityPoolRoles":{ "name":"GetIdentityPoolRoles", @@ -161,7 +163,8 @@ {"shape":"TooManyRequestsException"}, {"shape":"InternalErrorException"}, {"shape":"ExternalServiceException"} - ] + ], + "authtype":"none" }, "GetOpenIdTokenForDeveloperIdentity":{ "name":"GetOpenIdTokenForDeveloperIdentity", @@ -327,7 +330,8 @@ {"shape":"TooManyRequestsException"}, {"shape":"InternalErrorException"}, {"shape":"ExternalServiceException"} - ] + ], + "authtype":"none" }, "UntagResource":{ "name":"UntagResource", @@ -846,7 +850,7 @@ "MappingRulesList":{ "type":"list", "member":{"shape":"MappingRule"}, - "max":25, + "max":400, "min":1 }, "MergeDeveloperIdentitiesInput":{ @@ -884,6 +888,7 @@ "OIDCToken":{"type":"string"}, "PaginationKey":{ "type":"string", + "max":65535, "min":1, "pattern":"[\\S]+" }, @@ -930,6 +935,8 @@ }, "RoleType":{ "type":"string", + "max":128, + "min":1, "pattern":"(un)?authenticated" }, "RolesMap":{ diff --git a/models/apis/cognito-identity/2014-06-30/paginators-1.json b/models/apis/cognito-identity/2014-06-30/paginators-1.json index 5677bd8e4a2..0e02fc699b9 100644 --- a/models/apis/cognito-identity/2014-06-30/paginators-1.json +++ b/models/apis/cognito-identity/2014-06-30/paginators-1.json @@ -1,4 +1,10 @@ { "pagination": { + "ListIdentityPools": { + "input_token": "NextToken", + "limit_key": "MaxResults", + "output_token": "NextToken", + "result_key": "IdentityPools" + } } -} +} \ No newline at end of file diff --git a/models/apis/cognito-identity/2014-06-30/smoke.json b/models/apis/cognito-identity/2014-06-30/smoke.json new file mode 100644 index 00000000000..e4a6dd6a358 --- /dev/null +++ b/models/apis/cognito-identity/2014-06-30/smoke.json @@ -0,0 +1,20 @@ +{ + "version": 1, + "defaultRegion": "us-west-2", + "testCases": [ + { + "operationName": "ListIdentityPools", + "input": { + "MaxResults": 10 + }, + "errorExpectedFromService": false + }, + { + "operationName": "DescribeIdentityPool", + "input": { + "IdentityPoolId": "us-east-1:aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee" + }, + "errorExpectedFromService": true + } + ] +} \ No newline at end of file diff --git a/models/apis/connect/2017-08-08/api-2.json b/models/apis/connect/2017-08-08/api-2.json index d623db49fa4..a6d31637a30 100644 --- a/models/apis/connect/2017-08-08/api-2.json +++ b/models/apis/connect/2017-08-08/api-2.json @@ -13,6 +13,74 @@ "uid":"connect-2017-08-08" }, "operations":{ + "AssociateApprovedOrigin":{ + "name":"AssociateApprovedOrigin", + "http":{ + "method":"PUT", + "requestUri":"/instance/{InstanceId}/approved-origin" + }, + "input":{"shape":"AssociateApprovedOriginRequest"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"ResourceConflictException"}, + {"shape":"InternalServiceException"}, + {"shape":"InvalidRequestException"}, + {"shape":"InvalidParameterException"}, + {"shape":"ServiceQuotaExceededException"}, + {"shape":"ThrottlingException"} + ] + }, + "AssociateInstanceStorageConfig":{ + "name":"AssociateInstanceStorageConfig", + "http":{ + "method":"PUT", + "requestUri":"/instance/{InstanceId}/storage-config" + }, + "input":{"shape":"AssociateInstanceStorageConfigRequest"}, + "output":{"shape":"AssociateInstanceStorageConfigResponse"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"ResourceConflictException"}, + {"shape":"InternalServiceException"}, + {"shape":"InvalidRequestException"}, + {"shape":"InvalidParameterException"}, + {"shape":"ThrottlingException"} + ] + }, + "AssociateLambdaFunction":{ + "name":"AssociateLambdaFunction", + "http":{ + "method":"PUT", + "requestUri":"/instance/{InstanceId}/lambda-function" + }, + "input":{"shape":"AssociateLambdaFunctionRequest"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"ResourceConflictException"}, + {"shape":"InternalServiceException"}, + {"shape":"InvalidRequestException"}, + {"shape":"InvalidParameterException"}, + {"shape":"ServiceQuotaExceededException"}, + {"shape":"ThrottlingException"} + ] + }, + "AssociateLexBot":{ + "name":"AssociateLexBot", + "http":{ + "method":"PUT", + "requestUri":"/instance/{InstanceId}/lex-bot" + }, + "input":{"shape":"AssociateLexBotRequest"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"ResourceConflictException"}, + {"shape":"InternalServiceException"}, + {"shape":"InvalidRequestException"}, + {"shape":"InvalidParameterException"}, + {"shape":"ServiceQuotaExceededException"}, + {"shape":"ThrottlingException"} + ] + }, "AssociateRoutingProfileQueues":{ "name":"AssociateRoutingProfileQueues", "http":{ @@ -28,6 +96,24 @@ {"shape":"InternalServiceException"} ] }, + "AssociateSecurityKey":{ + "name":"AssociateSecurityKey", + "http":{ + "method":"PUT", + "requestUri":"/instance/{InstanceId}/security-key" + }, + "input":{"shape":"AssociateSecurityKeyRequest"}, + "output":{"shape":"AssociateSecurityKeyResponse"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"ResourceConflictException"}, + {"shape":"InternalServiceException"}, + {"shape":"InvalidRequestException"}, + {"shape":"InvalidParameterException"}, + {"shape":"ServiceQuotaExceededException"}, + {"shape":"ThrottlingException"} + ] + }, "CreateContactFlow":{ "name":"CreateContactFlow", "http":{ @@ -47,6 +133,22 @@ {"shape":"InternalServiceException"} ] }, + "CreateInstance":{ + "name":"CreateInstance", + "http":{ + "method":"PUT", + "requestUri":"/instance" + }, + "input":{"shape":"CreateInstanceRequest"}, + "output":{"shape":"CreateInstanceResponse"}, + "errors":[ + {"shape":"InvalidRequestException"}, + {"shape":"ServiceQuotaExceededException"}, + {"shape":"ThrottlingException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"InternalServiceException"} + ] + }, "CreateRoutingProfile":{ "name":"CreateRoutingProfile", "http":{ @@ -101,6 +203,19 @@ {"shape":"InternalServiceException"} ] }, + "DeleteInstance":{ + "name":"DeleteInstance", + "http":{ + "method":"DELETE", + "requestUri":"/instance/{InstanceId}" + }, + "input":{"shape":"DeleteInstanceRequest"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"InternalServiceException"}, + {"shape":"InvalidRequestException"} + ] + }, "DeleteUser":{ "name":"DeleteUser", "http":{ @@ -149,6 +264,52 @@ {"shape":"InternalServiceException"} ] }, + "DescribeInstance":{ + "name":"DescribeInstance", + "http":{ + "method":"GET", + "requestUri":"/instance/{InstanceId}" + }, + "input":{"shape":"DescribeInstanceRequest"}, + "output":{"shape":"DescribeInstanceResponse"}, + "errors":[ + {"shape":"InvalidRequestException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"InternalServiceException"} + ] + }, + "DescribeInstanceAttribute":{ + "name":"DescribeInstanceAttribute", + "http":{ + "method":"GET", + "requestUri":"/instance/{InstanceId}/attribute/{AttributeType}" + }, + "input":{"shape":"DescribeInstanceAttributeRequest"}, + "output":{"shape":"DescribeInstanceAttributeResponse"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"InternalServiceException"}, + {"shape":"InvalidRequestException"}, + {"shape":"InvalidParameterException"}, + {"shape":"ThrottlingException"} + ] + }, + "DescribeInstanceStorageConfig":{ + "name":"DescribeInstanceStorageConfig", + "http":{ + "method":"GET", + "requestUri":"/instance/{InstanceId}/storage-config/{AssociationId}" + }, + "input":{"shape":"DescribeInstanceStorageConfigRequest"}, + "output":{"shape":"DescribeInstanceStorageConfigResponse"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"InternalServiceException"}, + {"shape":"InvalidRequestException"}, + {"shape":"InvalidParameterException"}, + {"shape":"ThrottlingException"} + ] + }, "DescribeRoutingProfile":{ "name":"DescribeRoutingProfile", "http":{ @@ -213,6 +374,66 @@ {"shape":"InternalServiceException"} ] }, + "DisassociateApprovedOrigin":{ + "name":"DisassociateApprovedOrigin", + "http":{ + "method":"DELETE", + "requestUri":"/instance/{InstanceId}/approved-origin" + }, + "input":{"shape":"DisassociateApprovedOriginRequest"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"InternalServiceException"}, + {"shape":"InvalidRequestException"}, + {"shape":"InvalidParameterException"}, + {"shape":"ThrottlingException"} + ] + }, + "DisassociateInstanceStorageConfig":{ + "name":"DisassociateInstanceStorageConfig", + "http":{ + "method":"DELETE", + "requestUri":"/instance/{InstanceId}/storage-config/{AssociationId}" + }, + "input":{"shape":"DisassociateInstanceStorageConfigRequest"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"InternalServiceException"}, + {"shape":"InvalidRequestException"}, + {"shape":"InvalidParameterException"}, + {"shape":"ThrottlingException"} + ] + }, + "DisassociateLambdaFunction":{ + "name":"DisassociateLambdaFunction", + "http":{ + "method":"DELETE", + "requestUri":"/instance/{InstanceId}/lambda-function" + }, + "input":{"shape":"DisassociateLambdaFunctionRequest"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"InternalServiceException"}, + {"shape":"InvalidRequestException"}, + {"shape":"InvalidParameterException"}, + {"shape":"ThrottlingException"} + ] + }, + "DisassociateLexBot":{ + "name":"DisassociateLexBot", + "http":{ + "method":"DELETE", + "requestUri":"/instance/{InstanceId}/lex-bot" + }, + "input":{"shape":"DisassociateLexBotRequest"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"InternalServiceException"}, + {"shape":"InvalidRequestException"}, + {"shape":"InvalidParameterException"}, + {"shape":"ThrottlingException"} + ] + }, "DisassociateRoutingProfileQueues":{ "name":"DisassociateRoutingProfileQueues", "http":{ @@ -228,6 +449,21 @@ {"shape":"InternalServiceException"} ] }, + "DisassociateSecurityKey":{ + "name":"DisassociateSecurityKey", + "http":{ + "method":"DELETE", + "requestUri":"/instance/{InstanceId}/security-key/{AssociationId}" + }, + "input":{"shape":"DisassociateSecurityKeyRequest"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"InternalServiceException"}, + {"shape":"InvalidRequestException"}, + {"shape":"InvalidParameterException"}, + {"shape":"ThrottlingException"} + ] + }, "GetContactAttributes":{ "name":"GetContactAttributes", "http":{ @@ -291,6 +527,22 @@ {"shape":"ResourceNotFoundException"} ] }, + "ListApprovedOrigins":{ + "name":"ListApprovedOrigins", + "http":{ + "method":"GET", + "requestUri":"/instance/{InstanceId}/approved-origins" + }, + "input":{"shape":"ListApprovedOriginsRequest"}, + "output":{"shape":"ListApprovedOriginsResponse"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"InternalServiceException"}, + {"shape":"InvalidRequestException"}, + {"shape":"InvalidParameterException"}, + {"shape":"ThrottlingException"} + ] + }, "ListContactFlows":{ "name":"ListContactFlows", "http":{ @@ -323,6 +575,83 @@ {"shape":"InternalServiceException"} ] }, + "ListInstanceAttributes":{ + "name":"ListInstanceAttributes", + "http":{ + "method":"GET", + "requestUri":"/instance/{InstanceId}/attributes" + }, + "input":{"shape":"ListInstanceAttributesRequest"}, + "output":{"shape":"ListInstanceAttributesResponse"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"InternalServiceException"}, + {"shape":"InvalidRequestException"}, + {"shape":"InvalidParameterException"}, + {"shape":"ThrottlingException"} + ] + }, + "ListInstanceStorageConfigs":{ + "name":"ListInstanceStorageConfigs", + "http":{ + "method":"GET", + "requestUri":"/instance/{InstanceId}/storage-configs" + }, + "input":{"shape":"ListInstanceStorageConfigsRequest"}, + "output":{"shape":"ListInstanceStorageConfigsResponse"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"InternalServiceException"}, + {"shape":"InvalidRequestException"}, + {"shape":"InvalidParameterException"}, + {"shape":"ThrottlingException"} + ] + }, + "ListInstances":{ + "name":"ListInstances", + "http":{ + "method":"GET", + "requestUri":"/instance" + }, + "input":{"shape":"ListInstancesRequest"}, + "output":{"shape":"ListInstancesResponse"}, + "errors":[ + {"shape":"InvalidRequestException"}, + {"shape":"InternalServiceException"} + ] + }, + "ListLambdaFunctions":{ + "name":"ListLambdaFunctions", + "http":{ + "method":"GET", + "requestUri":"/instance/{InstanceId}/lambda-functions" + }, + "input":{"shape":"ListLambdaFunctionsRequest"}, + "output":{"shape":"ListLambdaFunctionsResponse"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"InternalServiceException"}, + {"shape":"InvalidRequestException"}, + {"shape":"InvalidParameterException"}, + {"shape":"ThrottlingException"} + ] + }, + "ListLexBots":{ + "name":"ListLexBots", + "http":{ + "method":"GET", + "requestUri":"/instance/{InstanceId}/lex-bots" + }, + "input":{"shape":"ListLexBotsRequest"}, + "output":{"shape":"ListLexBotsResponse"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"InternalServiceException"}, + {"shape":"InvalidRequestException"}, + {"shape":"InvalidParameterException"}, + {"shape":"ThrottlingException"} + ] + }, "ListPhoneNumbers":{ "name":"ListPhoneNumbers", "http":{ @@ -403,6 +732,22 @@ {"shape":"InternalServiceException"} ] }, + "ListSecurityKeys":{ + "name":"ListSecurityKeys", + "http":{ + "method":"GET", + "requestUri":"/instance/{InstanceId}/security-keys" + }, + "input":{"shape":"ListSecurityKeysRequest"}, + "output":{"shape":"ListSecurityKeysResponse"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"InternalServiceException"}, + {"shape":"InvalidRequestException"}, + {"shape":"InvalidParameterException"}, + {"shape":"ThrottlingException"} + ] + }, "ListSecurityProfiles":{ "name":"ListSecurityProfiles", "http":{ @@ -651,6 +996,36 @@ {"shape":"InternalServiceException"} ] }, + "UpdateInstanceAttribute":{ + "name":"UpdateInstanceAttribute", + "http":{ + "method":"POST", + "requestUri":"/instance/{InstanceId}/attribute/{AttributeType}" + }, + "input":{"shape":"UpdateInstanceAttributeRequest"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"InternalServiceException"}, + {"shape":"InvalidRequestException"}, + {"shape":"InvalidParameterException"}, + {"shape":"ThrottlingException"} + ] + }, + "UpdateInstanceStorageConfig":{ + "name":"UpdateInstanceStorageConfig", + "http":{ + "method":"POST", + "requestUri":"/instance/{InstanceId}/storage-config/{AssociationId}" + }, + "input":{"shape":"UpdateInstanceStorageConfigRequest"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"InternalServiceException"}, + {"shape":"InvalidRequestException"}, + {"shape":"InvalidParameterException"}, + {"shape":"ThrottlingException"} + ] + }, "UpdateRoutingProfileConcurrency":{ "name":"UpdateRoutingProfileConcurrency", "http":{ @@ -841,7 +1216,75 @@ "max":100, "min":1 }, - "AssociateRoutingProfileQueuesRequest":{ + "AssociateApprovedOriginRequest":{ + "type":"structure", + "required":[ + "InstanceId", + "Origin" + ], + "members":{ + "InstanceId":{ + "shape":"InstanceId", + "location":"uri", + "locationName":"InstanceId" + }, + "Origin":{"shape":"Origin"} + } + }, + "AssociateInstanceStorageConfigRequest":{ + "type":"structure", + "required":[ + "InstanceId", + "ResourceType", + "StorageConfig" + ], + "members":{ + "InstanceId":{ + "shape":"InstanceId", + "location":"uri", + "locationName":"InstanceId" + }, + "ResourceType":{"shape":"InstanceStorageResourceType"}, + "StorageConfig":{"shape":"InstanceStorageConfig"} + } + }, + "AssociateInstanceStorageConfigResponse":{ + "type":"structure", + "members":{ + "AssociationId":{"shape":"AssociationId"} + } + }, + "AssociateLambdaFunctionRequest":{ + "type":"structure", + "required":[ + "InstanceId", + "FunctionArn" + ], + "members":{ + "InstanceId":{ + "shape":"InstanceId", + "location":"uri", + "locationName":"InstanceId" + }, + "FunctionArn":{"shape":"FunctionArn"} + } + }, + "AssociateLexBotRequest":{ + "type":"structure", + "required":[ + "InstanceId", + "LexBot" + ], + "members":{ + "InstanceId":{ + "shape":"InstanceId", + "location":"uri", + "locationName":"InstanceId" + }, + "LexBot":{"shape":"LexBot"} + } + }, + "AssociateRoutingProfileQueuesRequest":{ "type":"structure", "required":[ "InstanceId", @@ -862,6 +1305,39 @@ "QueueConfigs":{"shape":"RoutingProfileQueueConfigList"} } }, + "AssociateSecurityKeyRequest":{ + "type":"structure", + "required":[ + "InstanceId", + "Key" + ], + "members":{ + "InstanceId":{ + "shape":"InstanceId", + "location":"uri", + "locationName":"InstanceId" + }, + "Key":{"shape":"PEM"} + } + }, + "AssociateSecurityKeyResponse":{ + "type":"structure", + "members":{ + "AssociationId":{"shape":"AssociationId"} + } + }, + "AssociationId":{ + "type":"string", + "max":100, + "min":1 + }, + "Attribute":{ + "type":"structure", + "members":{ + "AttributeType":{"shape":"InstanceAttributeType"}, + "Value":{"shape":"InstanceAttributeValue"} + } + }, "AttributeName":{ "type":"string", "max":32767, @@ -877,7 +1353,20 @@ "key":{"shape":"AttributeName"}, "value":{"shape":"AttributeValue"} }, + "AttributesList":{ + "type":"list", + "member":{"shape":"Attribute"} + }, "AutoAccept":{"type":"boolean"}, + "BotName":{ + "type":"string", + "max":50 + }, + "BucketName":{ + "type":"string", + "max":128, + "min":1 + }, "Channel":{ "type":"string", "enum":[ @@ -1027,6 +1516,29 @@ "ContactFlowArn":{"shape":"ARN"} } }, + "CreateInstanceRequest":{ + "type":"structure", + "required":[ + "IdentityManagementType", + "InboundCallsEnabled", + "OutboundCallsEnabled" + ], + "members":{ + "ClientToken":{"shape":"ClientToken"}, + "IdentityManagementType":{"shape":"DirectoryType"}, + "InstanceAlias":{"shape":"DirectoryAlias"}, + "DirectoryId":{"shape":"DirectoryId"}, + "InboundCallsEnabled":{"shape":"InboundCallsEnabled"}, + "OutboundCallsEnabled":{"shape":"OutboundCallsEnabled"} + } + }, + "CreateInstanceResponse":{ + "type":"structure", + "members":{ + "Id":{"shape":"InstanceId"}, + "Arn":{"shape":"ARN"} + } + }, "CreateRoutingProfileRequest":{ "type":"structure", "required":[ @@ -1181,6 +1693,17 @@ "max":9999, "min":0 }, + "DeleteInstanceRequest":{ + "type":"structure", + "required":["InstanceId"], + "members":{ + "InstanceId":{ + "shape":"InstanceId", + "location":"uri", + "locationName":"InstanceId" + } + } + }, "DeleteUserHierarchyGroupRequest":{ "type":"structure", "required":[ @@ -1244,6 +1767,79 @@ "ContactFlow":{"shape":"ContactFlow"} } }, + "DescribeInstanceAttributeRequest":{ + "type":"structure", + "required":[ + "InstanceId", + "AttributeType" + ], + "members":{ + "InstanceId":{ + "shape":"InstanceId", + "location":"uri", + "locationName":"InstanceId" + }, + "AttributeType":{ + "shape":"InstanceAttributeType", + "location":"uri", + "locationName":"AttributeType" + } + } + }, + "DescribeInstanceAttributeResponse":{ + "type":"structure", + "members":{ + "Attribute":{"shape":"Attribute"} + } + }, + "DescribeInstanceRequest":{ + "type":"structure", + "required":["InstanceId"], + "members":{ + "InstanceId":{ + "shape":"InstanceId", + "location":"uri", + "locationName":"InstanceId" + } + } + }, + "DescribeInstanceResponse":{ + "type":"structure", + "members":{ + "Instance":{"shape":"Instance"} + } + }, + "DescribeInstanceStorageConfigRequest":{ + "type":"structure", + "required":[ + "InstanceId", + "AssociationId", + "ResourceType" + ], + "members":{ + "InstanceId":{ + "shape":"InstanceId", + "location":"uri", + "locationName":"InstanceId" + }, + "AssociationId":{ + "shape":"AssociationId", + "location":"uri", + "locationName":"AssociationId" + }, + "ResourceType":{ + "shape":"InstanceStorageResourceType", + "location":"querystring", + "locationName":"resourceType" + } + } + }, + "DescribeInstanceStorageConfigResponse":{ + "type":"structure", + "members":{ + "StorageConfig":{"shape":"InstanceStorageConfig"} + } + }, "DescribeRoutingProfileRequest":{ "type":"structure", "required":[ @@ -1351,7 +1947,116 @@ "Channel":{"shape":"Channel"} } }, + "DirectoryAlias":{ + "type":"string", + "max":62, + "min":1, + "pattern":"^(?!d-)([\\da-zA-Z]+)([-]*[\\da-zA-Z])*$", + "sensitive":true + }, + "DirectoryId":{ + "type":"string", + "max":12, + "min":12, + "pattern":"^d-[0-9a-f]{10}$" + }, + "DirectoryType":{ + "type":"string", + "enum":[ + "SAML", + "CONNECT_MANAGED", + "EXISTING_DIRECTORY" + ] + }, "DirectoryUserId":{"type":"string"}, + "DisassociateApprovedOriginRequest":{ + "type":"structure", + "required":[ + "InstanceId", + "Origin" + ], + "members":{ + "InstanceId":{ + "shape":"InstanceId", + "location":"uri", + "locationName":"InstanceId" + }, + "Origin":{ + "shape":"Origin", + "location":"querystring", + "locationName":"origin" + } + } + }, + "DisassociateInstanceStorageConfigRequest":{ + "type":"structure", + "required":[ + "InstanceId", + "AssociationId", + "ResourceType" + ], + "members":{ + "InstanceId":{ + "shape":"InstanceId", + "location":"uri", + "locationName":"InstanceId" + }, + "AssociationId":{ + "shape":"AssociationId", + "location":"uri", + "locationName":"AssociationId" + }, + "ResourceType":{ + "shape":"InstanceStorageResourceType", + "location":"querystring", + "locationName":"resourceType" + } + } + }, + "DisassociateLambdaFunctionRequest":{ + "type":"structure", + "required":[ + "InstanceId", + "FunctionArn" + ], + "members":{ + "InstanceId":{ + "shape":"InstanceId", + "location":"uri", + "locationName":"InstanceId" + }, + "FunctionArn":{ + "shape":"FunctionArn", + "location":"querystring", + "locationName":"functionArn" + } + } + }, + "DisassociateLexBotRequest":{ + "type":"structure", + "required":[ + "InstanceId", + "BotName", + "LexRegion" + ], + "members":{ + "InstanceId":{ + "shape":"InstanceId", + "location":"uri", + "locationName":"InstanceId" + }, + "BotName":{ + "shape":"BotName", + "location":"querystring", + "locationName":"botName" + }, + "LexRegion":{ + "shape":"LexRegion", + "location":"querystring", + "locationName":"lexRegion" + } + } + }, "DisassociateRoutingProfileQueuesRequest":{ "type":"structure", "required":[ @@ -1373,6 +2078,25 @@ "QueueReferences":{"shape":"RoutingProfileQueueReferenceList"} } }, + "DisassociateSecurityKeyRequest":{ + "type":"structure", + "required":[ + "InstanceId", + "AssociationId" + ], + "members":{ + "InstanceId":{ + "shape":"InstanceId", + "location":"uri", + "locationName":"InstanceId" + }, + "AssociationId":{ + "shape":"AssociationId", + "location":"uri", + "locationName":"AssociationId" + } + } + }, "DisplayName":{ "type":"string", "max":256, @@ -1387,6 +2111,21 @@ "exception":true }, "Email":{"type":"string"}, + "EncryptionConfig":{ + "type":"structure", + "required":[ + "EncryptionType", + "KeyId" + ], + "members":{ + "EncryptionType":{"shape":"EncryptionType"}, + "KeyId":{"shape":"KeyId"} + } + }, + "EncryptionType":{ + "type":"string", + "enum":["KMS"] + }, "Filters":{ "type":"structure", "members":{ @@ -1394,6 +2133,15 @@ "Channels":{"shape":"Channels"} } }, + "FunctionArn":{ + "type":"string", + "max":140, + "min":1 + }, + "FunctionArnsList":{ + "type":"list", + "member":{"shape":"FunctionArn"} + }, "GetContactAttributesRequest":{ "type":"structure", "required":[ @@ -1640,81 +2388,404 @@ "SERVICE_LEVEL" ] }, - "HistoricalMetricResult":{ + "HistoricalMetricResult":{ + "type":"structure", + "members":{ + "Dimensions":{"shape":"Dimensions"}, + "Collections":{"shape":"HistoricalMetricDataCollections"} + } + }, + "HistoricalMetricResults":{ + "type":"list", + "member":{"shape":"HistoricalMetricResult"} + }, + "HistoricalMetrics":{ + "type":"list", + "member":{"shape":"HistoricalMetric"} + }, + "Hours":{ + "type":"integer", + "max":87600, + "min":0 + }, + "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"} + }, + "InboundCallsEnabled":{"type":"boolean"}, + "Instance":{ + "type":"structure", + "members":{ + "Id":{"shape":"InstanceId"}, + "Arn":{"shape":"ARN"}, + "IdentityManagementType":{"shape":"DirectoryType"}, + "InstanceAlias":{"shape":"DirectoryAlias"}, + "CreatedTime":{"shape":"Timestamp"}, + "ServiceRole":{"shape":"ARN"}, + "InstanceStatus":{"shape":"InstanceStatus"}, + "StatusReason":{"shape":"InstanceStatusReason"}, + "InboundCallsEnabled":{"shape":"InboundCallsEnabled"}, + "OutboundCallsEnabled":{"shape":"OutboundCallsEnabled"} + } + }, + "InstanceAttributeType":{ + "type":"string", + "enum":[ + "INBOUND_CALLS", + "OUTBOUND_CALLS", + "CONTACTFLOW_LOGS", + "CONTACT_LENS", + "AUTO_RESOLVE_BEST_VOICES", + "USE_CUSTOM_TTS_VOICES", + "EARLY_MEDIA" + ] + }, + "InstanceAttributeValue":{ + "type":"string", + "max":100, + "min":1 + }, + "InstanceId":{ + "type":"string", + "max":100, + "min":1 + }, + "InstanceStatus":{ + "type":"string", + "enum":[ + "CREATION_IN_PROGRESS", + "ACTIVE", + "CREATION_FAILED" + ] + }, + "InstanceStatusReason":{ + "type":"structure", + "members":{ + "Message":{"shape":"String"} + } + }, + "InstanceStorageConfig":{ + "type":"structure", + "required":["StorageType"], + "members":{ + "AssociationId":{"shape":"AssociationId"}, + "StorageType":{"shape":"StorageType"}, + "S3Config":{"shape":"S3Config"}, + "KinesisVideoStreamConfig":{"shape":"KinesisVideoStreamConfig"}, + "KinesisStreamConfig":{"shape":"KinesisStreamConfig"}, + "KinesisFirehoseConfig":{"shape":"KinesisFirehoseConfig"} + } + }, + "InstanceStorageConfigs":{ + "type":"list", + "member":{"shape":"InstanceStorageConfig"} + }, + "InstanceStorageResourceType":{ + "type":"string", + "enum":[ + "CHAT_TRANSCRIPTS", + "CALL_RECORDINGS", + "SCHEDULED_REPORTS", + "MEDIA_STREAMS", + "CONTACT_TRACE_RECORDS", + "AGENT_EVENTS" + ] + }, + "InstanceSummary":{ + "type":"structure", + "members":{ + "Id":{"shape":"InstanceId"}, + "Arn":{"shape":"ARN"}, + "IdentityManagementType":{"shape":"DirectoryType"}, + "InstanceAlias":{"shape":"DirectoryAlias"}, + "CreatedTime":{"shape":"Timestamp"}, + "ServiceRole":{"shape":"ARN"}, + "InstanceStatus":{"shape":"InstanceStatus"}, + "InboundCallsEnabled":{"shape":"InboundCallsEnabled"}, + "OutboundCallsEnabled":{"shape":"OutboundCallsEnabled"} + } + }, + "InstanceSummaryList":{ + "type":"list", + "member":{"shape":"InstanceSummary"} + }, + "InternalServiceException":{ + "type":"structure", + "members":{ + "Message":{"shape":"Message"} + }, + "error":{"httpStatusCode":500}, + "exception":true + }, + "InvalidContactFlowException":{ + "type":"structure", + "members":{ + "problems":{"shape":"Problems"} + }, + "error":{"httpStatusCode":400}, + "exception":true + }, + "InvalidParameterException":{ + "type":"structure", + "members":{ + "Message":{"shape":"Message"} + }, + "error":{"httpStatusCode":400}, + "exception":true + }, + "InvalidRequestException":{ + "type":"structure", + "members":{ + "Message":{"shape":"Message"} + }, + "error":{"httpStatusCode":400}, + "exception":true + }, + "KeyId":{ + "type":"string", + "max":128, + "min":1 + }, + "KinesisFirehoseConfig":{ + "type":"structure", + "required":["FirehoseArn"], + "members":{ + "FirehoseArn":{"shape":"ARN"} + } + }, + "KinesisStreamConfig":{ + "type":"structure", + "required":["StreamArn"], + "members":{ + "StreamArn":{"shape":"ARN"} + } + }, + "KinesisVideoStreamConfig":{ + "type":"structure", + "required":[ + "Prefix", + "RetentionPeriodHours", + "EncryptionConfig" + ], + "members":{ + "Prefix":{"shape":"Prefix"}, + "RetentionPeriodHours":{"shape":"Hours"}, + "EncryptionConfig":{"shape":"EncryptionConfig"} + } + }, + "LexBot":{ + "type":"structure", + "members":{ + "Name":{"shape":"BotName"}, + "LexRegion":{"shape":"LexRegion"} + } + }, + "LexBotsList":{ + "type":"list", + "member":{"shape":"LexBot"} + }, + "LexRegion":{ + "type":"string", + "max":60 + }, + "LimitExceededException":{ + "type":"structure", + "members":{ + "Message":{"shape":"Message"} + }, + "error":{"httpStatusCode":429}, + "exception":true + }, + "ListApprovedOriginsRequest":{ + "type":"structure", + "required":["InstanceId"], + "members":{ + "InstanceId":{ + "shape":"InstanceId", + "location":"uri", + "locationName":"InstanceId" + }, + "NextToken":{ + "shape":"NextToken", + "location":"querystring", + "locationName":"nextToken" + }, + "MaxResults":{ + "shape":"MaxResult25", + "box":true, + "location":"querystring", + "locationName":"maxResults" + } + } + }, + "ListApprovedOriginsResponse":{ + "type":"structure", + "members":{ + "Origins":{"shape":"OriginsList"}, + "NextToken":{"shape":"NextToken"} + } + }, + "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":{ - "Dimensions":{"shape":"Dimensions"}, - "Collections":{"shape":"HistoricalMetricDataCollections"} + "ContactFlowSummaryList":{"shape":"ContactFlowSummaryList"}, + "NextToken":{"shape":"NextToken"} } }, - "HistoricalMetricResults":{ - "type":"list", - "member":{"shape":"HistoricalMetricResult"} - }, - "HistoricalMetrics":{ - "type":"list", - "member":{"shape":"HistoricalMetric"} - }, - "HoursOfOperationId":{"type":"string"}, - "HoursOfOperationName":{"type":"string"}, - "HoursOfOperationSummary":{ + "ListHoursOfOperationsRequest":{ "type":"structure", + "required":["InstanceId"], "members":{ - "Id":{"shape":"HoursOfOperationId"}, - "Arn":{"shape":"ARN"}, - "Name":{"shape":"HoursOfOperationName"} + "InstanceId":{ + "shape":"InstanceId", + "location":"uri", + "locationName":"InstanceId" + }, + "NextToken":{ + "shape":"NextToken", + "location":"querystring", + "locationName":"nextToken" + }, + "MaxResults":{ + "shape":"MaxResult1000", + "location":"querystring", + "locationName":"maxResults" + } } }, - "HoursOfOperationSummaryList":{ - "type":"list", - "member":{"shape":"HoursOfOperationSummary"} + "ListHoursOfOperationsResponse":{ + "type":"structure", + "members":{ + "HoursOfOperationSummaryList":{"shape":"HoursOfOperationSummaryList"}, + "NextToken":{"shape":"NextToken"} + } }, - "InstanceId":{ - "type":"string", - "max":100, - "min":1 + "ListInstanceAttributesRequest":{ + "type":"structure", + "required":["InstanceId"], + "members":{ + "InstanceId":{ + "shape":"InstanceId", + "location":"uri", + "locationName":"InstanceId" + }, + "NextToken":{ + "shape":"NextToken", + "location":"querystring", + "locationName":"nextToken" + }, + "MaxResults":{ + "shape":"MaxResult7", + "box":true, + "location":"querystring", + "locationName":"maxResults" + } + } }, - "InternalServiceException":{ + "ListInstanceAttributesResponse":{ "type":"structure", "members":{ - "Message":{"shape":"Message"} - }, - "error":{"httpStatusCode":500}, - "exception":true + "Attributes":{"shape":"AttributesList"}, + "NextToken":{"shape":"NextToken"} + } }, - "InvalidContactFlowException":{ + "ListInstanceStorageConfigsRequest":{ "type":"structure", + "required":[ + "InstanceId", + "ResourceType" + ], "members":{ - "problems":{"shape":"Problems"} - }, - "error":{"httpStatusCode":400}, - "exception":true + "InstanceId":{ + "shape":"InstanceId", + "location":"uri", + "locationName":"InstanceId" + }, + "ResourceType":{ + "shape":"InstanceStorageResourceType", + "location":"querystring", + "locationName":"resourceType" + }, + "NextToken":{ + "shape":"NextToken", + "location":"querystring", + "locationName":"nextToken" + }, + "MaxResults":{ + "shape":"MaxResult10", + "box":true, + "location":"querystring", + "locationName":"maxResults" + } + } }, - "InvalidParameterException":{ + "ListInstanceStorageConfigsResponse":{ "type":"structure", "members":{ - "Message":{"shape":"Message"} - }, - "error":{"httpStatusCode":400}, - "exception":true + "StorageConfigs":{"shape":"InstanceStorageConfigs"}, + "NextToken":{"shape":"NextToken"} + } }, - "InvalidRequestException":{ + "ListInstancesRequest":{ "type":"structure", "members":{ - "Message":{"shape":"Message"} - }, - "error":{"httpStatusCode":400}, - "exception":true + "NextToken":{ + "shape":"NextToken", + "location":"querystring", + "locationName":"nextToken" + }, + "MaxResults":{ + "shape":"MaxResult10", + "box":true, + "location":"querystring", + "locationName":"maxResults" + } + } }, - "LimitExceededException":{ + "ListInstancesResponse":{ "type":"structure", "members":{ - "Message":{"shape":"Message"} - }, - "error":{"httpStatusCode":429}, - "exception":true + "InstanceSummaryList":{"shape":"InstanceSummaryList"}, + "NextToken":{"shape":"NextToken"} + } }, - "ListContactFlowsRequest":{ + "ListLambdaFunctionsRequest":{ "type":"structure", "required":["InstanceId"], "members":{ @@ -1723,31 +2794,27 @@ "location":"uri", "locationName":"InstanceId" }, - "ContactFlowTypes":{ - "shape":"ContactFlowTypes", - "location":"querystring", - "locationName":"contactFlowTypes" - }, "NextToken":{ "shape":"NextToken", "location":"querystring", "locationName":"nextToken" }, "MaxResults":{ - "shape":"MaxResult1000", + "shape":"MaxResult25", + "box":true, "location":"querystring", "locationName":"maxResults" } } }, - "ListContactFlowsResponse":{ + "ListLambdaFunctionsResponse":{ "type":"structure", "members":{ - "ContactFlowSummaryList":{"shape":"ContactFlowSummaryList"}, + "LambdaFunctions":{"shape":"FunctionArnsList"}, "NextToken":{"shape":"NextToken"} } }, - "ListHoursOfOperationsRequest":{ + "ListLexBotsRequest":{ "type":"structure", "required":["InstanceId"], "members":{ @@ -1762,16 +2829,17 @@ "locationName":"nextToken" }, "MaxResults":{ - "shape":"MaxResult1000", + "shape":"MaxResult25", + "box":true, "location":"querystring", "locationName":"maxResults" } } }, - "ListHoursOfOperationsResponse":{ + "ListLexBotsResponse":{ "type":"structure", "members":{ - "HoursOfOperationSummaryList":{"shape":"HoursOfOperationSummaryList"}, + "LexBots":{"shape":"LexBotsList"}, "NextToken":{"shape":"NextToken"} } }, @@ -1941,6 +3009,35 @@ "NextToken":{"shape":"NextToken"} } }, + "ListSecurityKeysRequest":{ + "type":"structure", + "required":["InstanceId"], + "members":{ + "InstanceId":{ + "shape":"InstanceId", + "location":"uri", + "locationName":"InstanceId" + }, + "NextToken":{ + "shape":"NextToken", + "location":"querystring", + "locationName":"nextToken" + }, + "MaxResults":{ + "shape":"MaxResult2", + "box":true, + "location":"querystring", + "locationName":"maxResults" + } + } + }, + "ListSecurityKeysResponse":{ + "type":"structure", + "members":{ + "SecurityKeys":{"shape":"SecurityKeysList"}, + "NextToken":{"shape":"NextToken"} + } + }, "ListSecurityProfilesRequest":{ "type":"structure", "required":["InstanceId"], @@ -2045,6 +3142,11 @@ "NextToken":{"shape":"NextToken"} } }, + "MaxResult10":{ + "type":"integer", + "max":10, + "min":1 + }, "MaxResult100":{ "type":"integer", "max":100, @@ -2055,6 +3157,21 @@ "max":1000, "min":1 }, + "MaxResult2":{ + "type":"integer", + "max":2, + "min":1 + }, + "MaxResult25":{ + "type":"integer", + "max":25, + "min":1 + }, + "MaxResult7":{ + "type":"integer", + "max":7, + "min":1 + }, "MediaConcurrencies":{ "type":"list", "member":{"shape":"MediaConcurrency"} @@ -2072,6 +3189,15 @@ }, "Message":{"type":"string"}, "NextToken":{"type":"string"}, + "Origin":{ + "type":"string", + "max":267 + }, + "OriginsList":{ + "type":"list", + "member":{"shape":"Origin"} + }, + "OutboundCallsEnabled":{"type":"boolean"}, "OutboundContactNotPermittedException":{ "type":"structure", "members":{ @@ -2080,6 +3206,11 @@ "error":{"httpStatusCode":403}, "exception":true }, + "PEM":{ + "type":"string", + "max":1024, + "min":1 + }, "ParticipantDetails":{ "type":"structure", "required":["DisplayName"], @@ -2383,6 +3514,11 @@ "DESK_PHONE" ] }, + "Prefix":{ + "type":"string", + "max":128, + "min":1 + }, "Priority":{ "type":"integer", "max":99, @@ -2471,6 +3607,14 @@ "max":100, "min":1 }, + "ResourceConflictException":{ + "type":"structure", + "members":{ + "Message":{"shape":"Message"} + }, + "error":{"httpStatusCode":409}, + "exception":true + }, "ResourceInUseException":{ "type":"structure", "members":{ @@ -2618,6 +3762,30 @@ "type":"list", "member":{"shape":"RoutingProfileSummary"} }, + "S3Config":{ + "type":"structure", + "required":[ + "BucketName", + "BucketPrefix" + ], + "members":{ + "BucketName":{"shape":"BucketName"}, + "BucketPrefix":{"shape":"Prefix"}, + "EncryptionConfig":{"shape":"EncryptionConfig"} + } + }, + "SecurityKey":{ + "type":"structure", + "members":{ + "AssociationId":{"shape":"AssociationId"}, + "Key":{"shape":"PEM"}, + "CreationTime":{"shape":"timestamp"} + } + }, + "SecurityKeysList":{ + "type":"list", + "member":{"shape":"SecurityKey"} + }, "SecurityProfileId":{"type":"string"}, "SecurityProfileIds":{ "type":"list", @@ -2642,6 +3810,14 @@ "type":"string", "sensitive":true }, + "ServiceQuotaExceededException":{ + "type":"structure", + "members":{ + "Message":{"shape":"Message"} + }, + "error":{"httpStatusCode":402}, + "exception":true + }, "StartChatContactRequest":{ "type":"structure", "required":[ @@ -2757,6 +3933,16 @@ "members":{ } }, + "StorageType":{ + "type":"string", + "enum":[ + "S3", + "KINESIS_VIDEO_STREAM", + "KINESIS_STREAM", + "KINESIS_FIREHOSE" + ] + }, + "String":{"type":"string"}, "SuspendContactRecordingRequest":{ "type":"structure", "required":[ @@ -2832,6 +4018,7 @@ "error":{"httpStatusCode":429}, "exception":true }, + "Timestamp":{"type":"timestamp"}, "Unit":{ "type":"string", "enum":[ @@ -2919,6 +4106,54 @@ "Description":{"shape":"ContactFlowDescription"} } }, + "UpdateInstanceAttributeRequest":{ + "type":"structure", + "required":[ + "InstanceId", + "AttributeType", + "Value" + ], + "members":{ + "InstanceId":{ + "shape":"InstanceId", + "location":"uri", + "locationName":"InstanceId" + }, + "AttributeType":{ + "shape":"InstanceAttributeType", + "location":"uri", + "locationName":"AttributeType" + }, + "Value":{"shape":"InstanceAttributeValue"} + } + }, + "UpdateInstanceStorageConfigRequest":{ + "type":"structure", + "required":[ + "InstanceId", + "AssociationId", + "ResourceType", + "StorageConfig" + ], + "members":{ + "InstanceId":{ + "shape":"InstanceId", + "location":"uri", + "locationName":"InstanceId" + }, + "AssociationId":{ + "shape":"AssociationId", + "location":"uri", + "locationName":"AssociationId" + }, + "ResourceType":{ + "shape":"InstanceStorageResourceType", + "location":"querystring", + "locationName":"resourceType" + }, + "StorageConfig":{"shape":"InstanceStorageConfig"} + } + }, "UpdateRoutingProfileConcurrencyRequest":{ "type":"structure", "required":[ diff --git a/models/apis/connect/2017-08-08/docs-2.json b/models/apis/connect/2017-08-08/docs-2.json index 252136c792d..c700781e0d5 100644 --- a/models/apis/connect/2017-08-08/docs-2.json +++ b/models/apis/connect/2017-08-08/docs-2.json @@ -2,30 +2,52 @@ "version": "2.0", "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 Quotas in the Amazon Connect Administrator Guide.

To connect programmatically to an AWS service, you use an endpoint. For a list of Amazon Connect endpoints, see Amazon Connect Endpoints.

Working with contact flows? Check out the Amazon Connect Flow language.

", "operations": { + "AssociateApprovedOrigin": "

Associates an approved origin to an Amazon Connect instance.

", + "AssociateInstanceStorageConfig": "

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

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

", + "AssociateLambdaFunction": "

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

", + "AssociateLexBot": "

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

", "AssociateRoutingProfileQueues": "

Associates a set of queues with a routing profile.

", + "AssociateSecurityKey": "

Associates a security key to the instance.

", "CreateContactFlow": "

Creates a contact flow for the specified Amazon Connect instance.

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

", + "CreateInstance": "

Initiates an Amazon Connect instance with all the supported channels enabled. It does not attach any storage (such as Amazon S3, or Kinesis) or allow for any configurations on features such as Contact Lens for Amazon Connect.

", "CreateRoutingProfile": "

Creates a new routing profile.

", "CreateUser": "

Creates a user account for the specified Amazon Connect instance.

For information about how to create user accounts using the Amazon Connect console, see Add Users in the Amazon Connect Administrator Guide.

", "CreateUserHierarchyGroup": "

Creates a new user hierarchy group.

", + "DeleteInstance": "

Deletes the Amazon Connect instance.

", "DeleteUser": "

Deletes a user account from the specified Amazon Connect instance.

For information about what happens to a user's data when their account is deleted, see Delete Users from Your Amazon Connect Instance in the Amazon Connect Administrator Guide.

", "DeleteUserHierarchyGroup": "

Deletes an existing user hierarchy group. It must not be associated with any agents or have any active child groups.

", "DescribeContactFlow": "

Describes the specified contact flow.

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

", + "DescribeInstance": "

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

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

", + "DescribeInstanceAttribute": "

Describes the specified instance attribute.

", + "DescribeInstanceStorageConfig": "

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

", "DescribeRoutingProfile": "

Describes the specified routing profile.

", "DescribeUser": "

Describes the specified user account. You can find the instance ID in the console (it’s the final part of the ARN). The console does not display the user IDs. Instead, list the users and note the IDs provided in the output.

", "DescribeUserHierarchyGroup": "

Describes the specified hierarchy group.

", "DescribeUserHierarchyStructure": "

Describes the hierarchy structure of the specified Amazon Connect instance.

", + "DisassociateApprovedOrigin": "

Revokes access to integrated applications from Amazon Connect.

", + "DisassociateInstanceStorageConfig": "

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

", + "DisassociateLambdaFunction": "

Remove the Lambda function from the drop-down options available in the relevant contact flow blocks.

", + "DisassociateLexBot": "

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

", "DisassociateRoutingProfileQueues": "

Disassociates a set of queues from a routing profile.

", + "DisassociateSecurityKey": "

Deletes the specified security key.

", "GetContactAttributes": "

Retrieves the contact attributes for the specified contact.

", "GetCurrentMetricData": "

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

For a description of each metric, see Real-time Metrics Definitions in the Amazon Connect Administrator Guide.

", "GetFederationToken": "

Retrieves a token for federation.

", "GetMetricData": "

Gets historical metric data from the specified Amazon Connect instance.

For a description of each historical metric, see Historical Metrics Definitions in the Amazon Connect Administrator Guide.

", + "ListApprovedOrigins": "

Returns a paginated list of all approved origins associated with the instance.

", "ListContactFlows": "

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

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

For more information about contact flows, see Contact Flows in the Amazon Connect Administrator Guide.

", "ListHoursOfOperations": "

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

For more information about hours of operation, see Set the Hours of Operation for a Queue in the Amazon Connect Administrator Guide.

", + "ListInstanceAttributes": "

Returns a paginated list of all attribute types for the given instance.

", + "ListInstanceStorageConfigs": "

Returns a paginated list of storage configs for the identified instance and resource type.

", + "ListInstances": "

Return a list of instances which are in active state, creation-in-progress state, and failed state. Instances that aren't successfully created (they are in a failed state) are returned only for 24 hours after the CreateInstance API was invoked.

", + "ListLambdaFunctions": "

Returns a paginated list of all the Lambda functions that show up in the drop-down options in the relevant contact flow blocks.

", + "ListLexBots": "

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

", "ListPhoneNumbers": "

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

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

", "ListPrompts": "

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

", "ListQueues": "

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

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

", "ListRoutingProfileQueues": "

List the queues associated with a routing profile.

", "ListRoutingProfiles": "

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

For more information about routing profiles, see Routing Profiles and Create a Routing Profile in the Amazon Connect Administrator Guide.

", + "ListSecurityKeys": "

Returns a paginated list of all security keys associated with the instance.

", "ListSecurityProfiles": "

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

For more information about security profiles, see Security Profiles in the Amazon Connect Administrator Guide.

", "ListTagsForResource": "

Lists the tags for the specified resource.

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

", "ListUserHierarchyGroups": "

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

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

", @@ -42,6 +64,8 @@ "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.

", "UpdateContactFlowContent": "

Updates the specified contact flow.

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

", "UpdateContactFlowName": "

The name of the contact flow.

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

", + "UpdateInstanceAttribute": "

Updates the value for the specified attribute type.

", + "UpdateInstanceStorageConfig": "

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

", "UpdateRoutingProfileConcurrency": "

Updates the channels that agents can handle in the Contact Control Panel (CCP) for a routing profile.

", "UpdateRoutingProfileDefaultOutboundQueue": "

Updates the default outbound queue of a routing profile.

", "UpdateRoutingProfileName": "

Updates the name and description of a routing profile. The request accepts the following data in JSON format. At least Name or Description must be provided.

", @@ -61,6 +85,7 @@ "ContactFlow$Arn": "

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

", "ContactFlowSummary$Arn": "

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

", "CreateContactFlowResponse$ContactFlowArn": "

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

", + "CreateInstanceResponse$Arn": "

The Amazon Resource Name (ARN) of the instance.

", "CreateRoutingProfileResponse$RoutingProfileArn": "

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

", "CreateUserHierarchyGroupResponse$HierarchyGroupArn": "

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

", "CreateUserResponse$UserArn": "

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

", @@ -68,6 +93,12 @@ "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.

", + "Instance$Arn": "

The Amazon Resource Name (ARN) of the instance.

", + "Instance$ServiceRole": "

The service role of the instance.

", + "InstanceSummary$Arn": "

The Amazon Resource Name (ARN) of the instance.

", + "InstanceSummary$ServiceRole": "

The service role of the instance.

", + "KinesisFirehoseConfig$FirehoseArn": "

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

", + "KinesisStreamConfig$StreamArn": "

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

", "ListTagsForResourceRequest$resourceArn": "

The Amazon Resource Name (ARN) of the resource.

", "PhoneNumberSummary$Arn": "

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

", "PromptSummary$Arn": "

The Amazon Resource Name (ARN) of the prompt.

", @@ -110,11 +141,66 @@ "UserSummary$Username": "

The Amazon Connect user name of the user account.

" } }, + "AssociateApprovedOriginRequest": { + "base": null, + "refs": { + } + }, + "AssociateInstanceStorageConfigRequest": { + "base": null, + "refs": { + } + }, + "AssociateInstanceStorageConfigResponse": { + "base": null, + "refs": { + } + }, + "AssociateLambdaFunctionRequest": { + "base": null, + "refs": { + } + }, + "AssociateLexBotRequest": { + "base": null, + "refs": { + } + }, "AssociateRoutingProfileQueuesRequest": { "base": null, "refs": { } }, + "AssociateSecurityKeyRequest": { + "base": null, + "refs": { + } + }, + "AssociateSecurityKeyResponse": { + "base": null, + "refs": { + } + }, + "AssociationId": { + "base": null, + "refs": { + "AssociateInstanceStorageConfigResponse$AssociationId": "

The existing association identifier that uniquely identifies the resource type and storage config for the given instance ID.

", + "AssociateSecurityKeyResponse$AssociationId": "

The existing association identifier that uniquely identifies the resource type and storage config for the given instance ID.

", + "DescribeInstanceStorageConfigRequest$AssociationId": "

The existing association identifier that uniquely identifies the resource type and storage config for the given instance ID.

", + "DisassociateInstanceStorageConfigRequest$AssociationId": "

The existing association identifier that uniquely identifies the resource type and storage config for the given instance ID.

", + "DisassociateSecurityKeyRequest$AssociationId": "

The existing association identifier that uniquely identifies the resource type and storage config for the given instance ID.

", + "InstanceStorageConfig$AssociationId": "

The existing association identifier that uniquely identifies the resource type and storage config for the given instance ID.

", + "SecurityKey$AssociationId": "

The existing association identifier that uniquely identifies the resource type and storage config for the given instance ID.

", + "UpdateInstanceStorageConfigRequest$AssociationId": "

The existing association identifier that uniquely identifies the resource type and storage config for the given instance ID.

" + } + }, + "Attribute": { + "base": "

A toggle for an individual feature at the instance level.

", + "refs": { + "AttributesList$member": null, + "DescribeInstanceAttributeResponse$Attribute": "

The type of attribute.

" + } + }, "AttributeName": { "base": null, "refs": { @@ -136,12 +222,31 @@ "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.

" } }, + "AttributesList": { + "base": null, + "refs": { + "ListInstanceAttributesResponse$Attributes": "

The attribute types.

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

The Auto accept setting.

" } }, + "BotName": { + "base": null, + "refs": { + "DisassociateLexBotRequest$BotName": "

The name of the Amazon Lex bot. Maximum character limit of 50.

", + "LexBot$Name": "

The name of the Amazon Lex bot.

" + } + }, + "BucketName": { + "base": null, + "refs": { + "S3Config$BucketName": "

The S3 bucket name.

" + } + }, "Channel": { "base": null, "refs": { @@ -179,6 +284,7 @@ "ClientToken": { "base": null, "refs": { + "CreateInstanceRequest$ClientToken": "

The idempotency token.

", "StartChatContactRequest$ClientToken": "

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

", "StartOutboundVoiceContactRequest$ClientToken": "

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

" } @@ -304,6 +410,16 @@ "refs": { } }, + "CreateInstanceRequest": { + "base": null, + "refs": { + } + }, + "CreateInstanceResponse": { + "base": null, + "refs": { + } + }, "CreateRoutingProfileRequest": { "base": null, "refs": { @@ -390,6 +506,11 @@ "RoutingProfileQueueConfigSummary$Delay": "

The delay, in seconds, that a contact should be in the queue before they are routed to an available agent. For more information, see Queues: priority and delay in the Amazon Connect Administrator Guide.

" } }, + "DeleteInstanceRequest": { + "base": null, + "refs": { + } + }, "DeleteUserHierarchyGroupRequest": { "base": null, "refs": { @@ -410,6 +531,36 @@ "refs": { } }, + "DescribeInstanceAttributeRequest": { + "base": null, + "refs": { + } + }, + "DescribeInstanceAttributeResponse": { + "base": null, + "refs": { + } + }, + "DescribeInstanceRequest": { + "base": null, + "refs": { + } + }, + "DescribeInstanceResponse": { + "base": null, + "refs": { + } + }, + "DescribeInstanceStorageConfigRequest": { + "base": null, + "refs": { + } + }, + "DescribeInstanceStorageConfigResponse": { + "base": null, + "refs": { + } + }, "DescribeRoutingProfileRequest": { "base": null, "refs": { @@ -462,6 +613,28 @@ "HistoricalMetricResult$Dimensions": "

The dimension for the metrics.

" } }, + "DirectoryAlias": { + "base": null, + "refs": { + "CreateInstanceRequest$InstanceAlias": "

The name for your instance.

", + "Instance$InstanceAlias": "

The alias of instance.

", + "InstanceSummary$InstanceAlias": "

The alias of the instance.

" + } + }, + "DirectoryId": { + "base": null, + "refs": { + "CreateInstanceRequest$DirectoryId": "

The identifier for the directory.

" + } + }, + "DirectoryType": { + "base": null, + "refs": { + "CreateInstanceRequest$IdentityManagementType": "

The type of identity management for your Amazon Connect users.

", + "Instance$IdentityManagementType": "

The identity management type.

", + "InstanceSummary$IdentityManagementType": "

The identity management type of the instance.

" + } + }, "DirectoryUserId": { "base": null, "refs": { @@ -469,11 +642,36 @@ "User$DirectoryUserId": "

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

" } }, + "DisassociateApprovedOriginRequest": { + "base": null, + "refs": { + } + }, + "DisassociateInstanceStorageConfigRequest": { + "base": null, + "refs": { + } + }, + "DisassociateLambdaFunctionRequest": { + "base": null, + "refs": { + } + }, + "DisassociateLexBotRequest": { + "base": null, + "refs": { + } + }, "DisassociateRoutingProfileQueuesRequest": { "base": null, "refs": { } }, + "DisassociateSecurityKeyRequest": { + "base": null, + "refs": { + } + }, "DisplayName": { "base": null, "refs": { @@ -491,6 +689,19 @@ "UserIdentityInfo$Email": "

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

" } }, + "EncryptionConfig": { + "base": "

The encryption configuration.

", + "refs": { + "KinesisVideoStreamConfig$EncryptionConfig": "

The encryption configuration.

", + "S3Config$EncryptionConfig": "

The S3 encryption configuration.

" + } + }, + "EncryptionType": { + "base": null, + "refs": { + "EncryptionConfig$EncryptionType": "

The type of encryption.

" + } + }, "Filters": { "base": "

Contains the filter to apply when retrieving metrics.

", "refs": { @@ -498,6 +709,20 @@ "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. Both VOICE and CHAT channels are supported.

" } }, + "FunctionArn": { + "base": null, + "refs": { + "AssociateLambdaFunctionRequest$FunctionArn": "

The Amazon Resource Name (ARN) for the Lambda function being associated. Maximum number of characters allowed is 140.

", + "DisassociateLambdaFunctionRequest$FunctionArn": "

The Amazon Resource Name (ARN) of the Lambda function being disassociated.

", + "FunctionArnsList$member": null + } + }, + "FunctionArnsList": { + "base": null, + "refs": { + "ListLambdaFunctionsResponse$LambdaFunctions": "

The Lambdafunction ARNs associated with the specified instance.

" + } + }, "GetContactAttributesRequest": { "base": null, "refs": { @@ -693,6 +918,12 @@ "GetMetricDataRequest$HistoricalMetrics": "

The metrics to retrieve. Specify the name, unit, and statistic for each metric. The following historical metrics are available. For a description of each metric, see Historical Metrics Definitions in the Amazon Connect Administrator Guide.

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

" } }, + "Hours": { + "base": null, + "refs": { + "KinesisVideoStreamConfig$RetentionPeriodHours": "

The number of hours data is retained in the stream. Kinesis Video Streams retains the data in a data store that is associated with the stream.

The default value is 0, indicating that the stream does not persist data.

" + } + }, "HoursOfOperationId": { "base": null, "refs": { @@ -717,33 +948,85 @@ "ListHoursOfOperationsResponse$HoursOfOperationSummaryList": "

Information about the hours of operation.

" } }, + "InboundCallsEnabled": { + "base": null, + "refs": { + "CreateInstanceRequest$InboundCallsEnabled": "

Whether your contact center handles incoming contacts.

", + "Instance$InboundCallsEnabled": "

Whether inbound calls are enabled.

", + "InstanceSummary$InboundCallsEnabled": "

Whether inbound calls are enabled.

" + } + }, + "Instance": { + "base": "

The Amazon Connect instance.

", + "refs": { + "DescribeInstanceResponse$Instance": "

The name of the instance.

" + } + }, + "InstanceAttributeType": { + "base": null, + "refs": { + "Attribute$AttributeType": "

The type of attribute.

", + "DescribeInstanceAttributeRequest$AttributeType": "

The type of attribute.

", + "UpdateInstanceAttributeRequest$AttributeType": "

The type of attribute.

" + } + }, + "InstanceAttributeValue": { + "base": null, + "refs": { + "Attribute$Value": "

The value of the attribute.

", + "UpdateInstanceAttributeRequest$Value": "

The value for the attribute. Maximum character limit is 100.

" + } + }, "InstanceId": { "base": null, "refs": { + "AssociateApprovedOriginRequest$InstanceId": "

The identifier of the Amazon Connect instance.

", + "AssociateInstanceStorageConfigRequest$InstanceId": "

The identifier of the Amazon Connect instance.

", + "AssociateLambdaFunctionRequest$InstanceId": "

The identifier of the Amazon Connect instance.

", + "AssociateLexBotRequest$InstanceId": "

The identifier of the Amazon Connect instance.

", "AssociateRoutingProfileQueuesRequest$InstanceId": "

The identifier of the Amazon Connect instance.

", + "AssociateSecurityKeyRequest$InstanceId": "

The identifier of the Amazon Connect instance.

", "CreateContactFlowRequest$InstanceId": "

The identifier of the Amazon Connect instance.

", + "CreateInstanceResponse$Id": "

The identifier for the instance.

", "CreateRoutingProfileRequest$InstanceId": "

The identifier of the Amazon Connect instance.

", "CreateUserHierarchyGroupRequest$InstanceId": "

The identifier of the Amazon Connect instance.

", "CreateUserRequest$InstanceId": "

The identifier of the Amazon Connect instance.

", + "DeleteInstanceRequest$InstanceId": "

The identifier of the Amazon Connect instance.

", "DeleteUserHierarchyGroupRequest$InstanceId": "

The identifier of the Amazon Connect instance.

", "DeleteUserRequest$InstanceId": "

The identifier of the Amazon Connect instance.

", "DescribeContactFlowRequest$InstanceId": "

The identifier of the Amazon Connect instance.

", + "DescribeInstanceAttributeRequest$InstanceId": "

The identifier of the Amazon Connect instance.

", + "DescribeInstanceRequest$InstanceId": "

The identifier of the Amazon Connect instance.

", + "DescribeInstanceStorageConfigRequest$InstanceId": "

The identifier of the Amazon Connect instance.

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

", + "DisassociateApprovedOriginRequest$InstanceId": "

The identifier of the Amazon Connect instance.

", + "DisassociateInstanceStorageConfigRequest$InstanceId": "

The identifier of the Amazon Connect instance.

", + "DisassociateLambdaFunctionRequest$InstanceId": "

The identifier of the Amazon Connect instance..

", + "DisassociateLexBotRequest$InstanceId": "

The identifier of the Amazon Connect instance.

", "DisassociateRoutingProfileQueuesRequest$InstanceId": "

The identifier of the Amazon Connect instance.

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

", + "Instance$Id": "

The identifier of the Amazon Connect instance.

", + "InstanceSummary$Id": "

The identifier of the instance.

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

", + "ListInstanceAttributesRequest$InstanceId": "

The identifier of the Amazon Connect instance.

", + "ListInstanceStorageConfigsRequest$InstanceId": "

The identifier of the Amazon Connect instance.

", + "ListLambdaFunctionsRequest$InstanceId": "

The identifier of the Amazon Connect instance.

", + "ListLexBotsRequest$InstanceId": "

The identifier of the Amazon Connect instance.

", "ListPhoneNumbersRequest$InstanceId": "

The identifier of the Amazon Connect instance.

", "ListPromptsRequest$InstanceId": "

The identifier of the Amazon Connect instance.

", "ListQueuesRequest$InstanceId": "

The identifier of the Amazon Connect instance.

", "ListRoutingProfileQueuesRequest$InstanceId": "

The identifier of the Amazon Connect instance.

", "ListRoutingProfilesRequest$InstanceId": "

The identifier of the Amazon Connect instance.

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

", @@ -758,6 +1041,8 @@ "UpdateContactAttributesRequest$InstanceId": "

The identifier of the Amazon Connect instance.

", "UpdateContactFlowContentRequest$InstanceId": "

The identifier of the Amazon Connect instance.

", "UpdateContactFlowNameRequest$InstanceId": "

The identifier of the Amazon Connect instance.

", + "UpdateInstanceAttributeRequest$InstanceId": "

The identifier of the Amazon Connect instance.

", + "UpdateInstanceStorageConfigRequest$InstanceId": "

The identifier of the Amazon Connect instance.

", "UpdateRoutingProfileConcurrencyRequest$InstanceId": "

The identifier of the Amazon Connect instance.

", "UpdateRoutingProfileDefaultOutboundQueueRequest$InstanceId": "

The identifier of the Amazon Connect instance.

", "UpdateRoutingProfileNameRequest$InstanceId": "

The identifier of the Amazon Connect instance.

", @@ -771,6 +1056,56 @@ "UpdateUserSecurityProfilesRequest$InstanceId": "

The identifier of the Amazon Connect instance.

" } }, + "InstanceStatus": { + "base": null, + "refs": { + "Instance$InstanceStatus": "

The state of the instance.

", + "InstanceSummary$InstanceStatus": "

The state of the instance.

" + } + }, + "InstanceStatusReason": { + "base": "

Relevant details why the instance was not successfully created.

", + "refs": { + "Instance$StatusReason": "

Relevant details why the instance was not successfully created.

" + } + }, + "InstanceStorageConfig": { + "base": "

The storage configuration for the instance.

", + "refs": { + "AssociateInstanceStorageConfigRequest$StorageConfig": "

A valid storage type.

", + "DescribeInstanceStorageConfigResponse$StorageConfig": "

A valid storage type.

", + "InstanceStorageConfigs$member": null, + "UpdateInstanceStorageConfigRequest$StorageConfig": null + } + }, + "InstanceStorageConfigs": { + "base": null, + "refs": { + "ListInstanceStorageConfigsResponse$StorageConfigs": "

A valid storage type.

" + } + }, + "InstanceStorageResourceType": { + "base": null, + "refs": { + "AssociateInstanceStorageConfigRequest$ResourceType": "

A valid resource type.

", + "DescribeInstanceStorageConfigRequest$ResourceType": "

A valid resource type.

", + "DisassociateInstanceStorageConfigRequest$ResourceType": "

A valid resource type.

", + "ListInstanceStorageConfigsRequest$ResourceType": "

A valid resource type.

", + "UpdateInstanceStorageConfigRequest$ResourceType": "

A valid resource type.

" + } + }, + "InstanceSummary": { + "base": "

Information about the instance.

", + "refs": { + "InstanceSummaryList$member": null + } + }, + "InstanceSummaryList": { + "base": null, + "refs": { + "ListInstancesResponse$InstanceSummaryList": "

Information about the instances.

" + } + }, "InternalServiceException": { "base": "

Request processing failed due to an error or failure with the service.

", "refs": { @@ -791,11 +1126,65 @@ "refs": { } }, + "KeyId": { + "base": null, + "refs": { + "EncryptionConfig$KeyId": "

The identifier of the encryption key.

" + } + }, + "KinesisFirehoseConfig": { + "base": "

Configuration information of a Kinesis Firehose delivery stream.

", + "refs": { + "InstanceStorageConfig$KinesisFirehoseConfig": "

The configuration of the Kinesis Firehose delivery stream.

" + } + }, + "KinesisStreamConfig": { + "base": "

Configuration information of a Kinesis data stream.

", + "refs": { + "InstanceStorageConfig$KinesisStreamConfig": "

The configuration of the Kinesis data stream.

" + } + }, + "KinesisVideoStreamConfig": { + "base": "

Configuration information of a Kinesis video stream.

", + "refs": { + "InstanceStorageConfig$KinesisVideoStreamConfig": "

The configuration of the Kinesis video stream.

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

Configuration information of an Amazon Lex bot.

", + "refs": { + "AssociateLexBotRequest$LexBot": "

The Amazon Lex box to associate with the instance.

", + "LexBotsList$member": null + } + }, + "LexBotsList": { + "base": null, + "refs": { + "ListLexBotsResponse$LexBots": "

The the names and regions of the Amazon Lex bots associated with the specified instance.

" + } + }, + "LexRegion": { + "base": null, + "refs": { + "DisassociateLexBotRequest$LexRegion": "

The Region in which the Amazon Lex bot has been created.

", + "LexBot$LexRegion": "

The Region the Amazon Lex bot was created in.

" + } + }, "LimitExceededException": { "base": "

The allowed limit for the resource has been exceeded.

", "refs": { } }, + "ListApprovedOriginsRequest": { + "base": null, + "refs": { + } + }, + "ListApprovedOriginsResponse": { + "base": null, + "refs": { + } + }, "ListContactFlowsRequest": { "base": null, "refs": { @@ -816,6 +1205,56 @@ "refs": { } }, + "ListInstanceAttributesRequest": { + "base": null, + "refs": { + } + }, + "ListInstanceAttributesResponse": { + "base": null, + "refs": { + } + }, + "ListInstanceStorageConfigsRequest": { + "base": null, + "refs": { + } + }, + "ListInstanceStorageConfigsResponse": { + "base": null, + "refs": { + } + }, + "ListInstancesRequest": { + "base": null, + "refs": { + } + }, + "ListInstancesResponse": { + "base": null, + "refs": { + } + }, + "ListLambdaFunctionsRequest": { + "base": null, + "refs": { + } + }, + "ListLambdaFunctionsResponse": { + "base": null, + "refs": { + } + }, + "ListLexBotsRequest": { + "base": null, + "refs": { + } + }, + "ListLexBotsResponse": { + "base": null, + "refs": { + } + }, "ListPhoneNumbersRequest": { "base": null, "refs": { @@ -866,6 +1305,16 @@ "refs": { } }, + "ListSecurityKeysRequest": { + "base": null, + "refs": { + } + }, + "ListSecurityKeysResponse": { + "base": null, + "refs": { + } + }, "ListSecurityProfilesRequest": { "base": null, "refs": { @@ -906,6 +1355,13 @@ "refs": { } }, + "MaxResult10": { + "base": null, + "refs": { + "ListInstanceStorageConfigsRequest$MaxResults": "

The maximimum number of results to return per page.

", + "ListInstancesRequest$MaxResults": "

The maximimum number of results to return per page.

" + } + }, "MaxResult100": { "base": null, "refs": { @@ -928,6 +1384,26 @@ "ListUsersRequest$MaxResults": "

The maximimum number of results to return per page.

" } }, + "MaxResult2": { + "base": null, + "refs": { + "ListSecurityKeysRequest$MaxResults": "

The maximimum number of results to return per page.

" + } + }, + "MaxResult25": { + "base": null, + "refs": { + "ListApprovedOriginsRequest$MaxResults": "

The maximimum number of results to return per page.

", + "ListLambdaFunctionsRequest$MaxResults": "

The maximimum number of results to return per page.

", + "ListLexBotsRequest$MaxResults": "

The maximimum number of results to return per page.

" + } + }, + "MaxResult7": { + "base": null, + "refs": { + "ListInstanceAttributesRequest$MaxResults": "

The maximimum number of results to return per page.

" + } + }, "MediaConcurrencies": { "base": null, "refs": { @@ -954,8 +1430,10 @@ "InvalidRequestException$Message": "

The message.

", "LimitExceededException$Message": "

The message.

", "OutboundContactNotPermittedException$Message": "

The message.

", + "ResourceConflictException$Message": null, "ResourceInUseException$Message": null, "ResourceNotFoundException$Message": "

The message.

", + "ServiceQuotaExceededException$Message": null, "ThrottlingException$Message": null, "UserNotFoundException$Message": null } @@ -967,10 +1445,22 @@ "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": "

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.

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

", + "ListApprovedOriginsResponse$NextToken": "

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

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

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

", + "ListInstanceAttributesResponse$NextToken": "

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

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

", + "ListInstanceStorageConfigsResponse$NextToken": "

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

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

", + "ListInstancesResponse$NextToken": "

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

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

", + "ListLambdaFunctionsResponse$NextToken": "

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

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

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

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

", @@ -981,6 +1471,8 @@ "ListRoutingProfileQueuesResponse$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": "

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

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

", + "ListSecurityKeysResponse$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": "

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.

", @@ -989,11 +1481,40 @@ "ListUsersResponse$NextToken": "

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

" } }, + "Origin": { + "base": null, + "refs": { + "AssociateApprovedOriginRequest$Origin": "

The domain to add to your allow list.

", + "DisassociateApprovedOriginRequest$Origin": "

The domain URL of the integrated application.

", + "OriginsList$member": null + } + }, + "OriginsList": { + "base": null, + "refs": { + "ListApprovedOriginsResponse$Origins": "

The approved origins.

" + } + }, + "OutboundCallsEnabled": { + "base": null, + "refs": { + "CreateInstanceRequest$OutboundCallsEnabled": "

Whether your contact center allows outbound calls.

", + "Instance$OutboundCallsEnabled": "

Whether outbound calls are enabled.

", + "InstanceSummary$OutboundCallsEnabled": "

Whether outbound calls are enabled.

" + } + }, "OutboundContactNotPermittedException": { "base": "

The contact is not permitted.

", "refs": { } }, + "PEM": { + "base": null, + "refs": { + "AssociateSecurityKeyRequest$Key": "

A valid security key in PEM format.

", + "SecurityKey$Key": "

The key of the security key.

" + } + }, "ParticipantDetails": { "base": "

The customer's details.

", "refs": { @@ -1077,6 +1598,13 @@ "UserPhoneConfig$PhoneType": "

The phone type.

" } }, + "Prefix": { + "base": null, + "refs": { + "KinesisVideoStreamConfig$Prefix": "

The prefix of the video stream.

", + "S3Config$BucketPrefix": "

The S3 bucket prefix.

" + } + }, "Priority": { "base": null, "refs": { @@ -1184,6 +1712,11 @@ "Filters$Queues": "

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

" } }, + "ResourceConflictException": { + "base": "

A resource already has that name.

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

That resource is already in use. Please try another.

", "refs": { @@ -1303,6 +1836,24 @@ "ListRoutingProfilesResponse$RoutingProfileSummaryList": "

Information about the routing profiles.

" } }, + "S3Config": { + "base": "

Information about the S3 storage type.

", + "refs": { + "InstanceStorageConfig$S3Config": "

The S3 configuration.

" + } + }, + "SecurityKey": { + "base": "

Configuration information of the security key.

", + "refs": { + "SecurityKeysList$member": null + } + }, + "SecurityKeysList": { + "base": null, + "refs": { + "ListSecurityKeysResponse$SecurityKeys": "

The security keys.

" + } + }, "SecurityProfileId": { "base": null, "refs": { @@ -1343,6 +1894,11 @@ "Credentials$RefreshToken": "

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

" } }, + "ServiceQuotaExceededException": { + "base": "

The service quota has been exceeded.

", + "refs": { + } + }, "StartChatContactRequest": { "base": null, "refs": { @@ -1399,6 +1955,18 @@ "refs": { } }, + "StorageType": { + "base": null, + "refs": { + "InstanceStorageConfig$StorageType": "

A valid storage type.

" + } + }, + "String": { + "base": null, + "refs": { + "InstanceStatusReason$Message": "

The message.

" + } + }, "SuspendContactRecordingRequest": { "base": null, "refs": { @@ -1463,6 +2031,13 @@ "refs": { } }, + "Timestamp": { + "base": null, + "refs": { + "Instance$CreatedTime": "

When the instance was created.

", + "InstanceSummary$CreatedTime": "

When the instance was created.

" + } + }, "Unit": { "base": null, "refs": { @@ -1495,6 +2070,16 @@ "refs": { } }, + "UpdateInstanceAttributeRequest": { + "base": null, + "refs": { + } + }, + "UpdateInstanceStorageConfigRequest": { + "base": null, + "refs": { + } + }, "UpdateRoutingProfileConcurrencyRequest": { "base": null, "refs": { @@ -1630,7 +2215,8 @@ "Credentials$RefreshTokenExpiration": "

Renews the expiration timer for a generated token.

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

" + "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.

", + "SecurityKey$CreationTime": "

When the security key was created.

" } } } diff --git a/models/apis/connect/2017-08-08/paginators-1.json b/models/apis/connect/2017-08-08/paginators-1.json index 1005c52f0bd..ec682da8d9e 100644 --- a/models/apis/connect/2017-08-08/paginators-1.json +++ b/models/apis/connect/2017-08-08/paginators-1.json @@ -10,6 +10,12 @@ "limit_key": "MaxResults", "output_token": "NextToken" }, + "ListApprovedOrigins": { + "input_token": "NextToken", + "limit_key": "MaxResults", + "output_token": "NextToken", + "result_key": "Origins" + }, "ListContactFlows": { "input_token": "NextToken", "limit_key": "MaxResults", @@ -22,6 +28,36 @@ "output_token": "NextToken", "result_key": "HoursOfOperationSummaryList" }, + "ListInstanceAttributes": { + "input_token": "NextToken", + "limit_key": "MaxResults", + "output_token": "NextToken", + "result_key": "Attributes" + }, + "ListInstanceStorageConfigs": { + "input_token": "NextToken", + "limit_key": "MaxResults", + "output_token": "NextToken", + "result_key": "StorageConfigs" + }, + "ListInstances": { + "input_token": "NextToken", + "limit_key": "MaxResults", + "output_token": "NextToken", + "result_key": "InstanceSummaryList" + }, + "ListLambdaFunctions": { + "input_token": "NextToken", + "limit_key": "MaxResults", + "output_token": "NextToken", + "result_key": "LambdaFunctions" + }, + "ListLexBots": { + "input_token": "NextToken", + "limit_key": "MaxResults", + "output_token": "NextToken", + "result_key": "LexBots" + }, "ListPhoneNumbers": { "input_token": "NextToken", "limit_key": "MaxResults", @@ -52,6 +88,12 @@ "output_token": "NextToken", "result_key": "RoutingProfileSummaryList" }, + "ListSecurityKeys": { + "input_token": "NextToken", + "limit_key": "MaxResults", + "output_token": "NextToken", + "result_key": "SecurityKeys" + }, "ListSecurityProfiles": { "input_token": "NextToken", "limit_key": "MaxResults", diff --git a/models/apis/kafka/2018-11-14/api-2.json b/models/apis/kafka/2018-11-14/api-2.json index ee01d36d63d..4836edc2738 100644 --- a/models/apis/kafka/2018-11-14/api-2.json +++ b/models/apis/kafka/2018-11-14/api-2.json @@ -1761,7 +1761,8 @@ "enum": [ "DEFAULT", "PER_BROKER", - "PER_TOPIC_PER_BROKER" + "PER_TOPIC_PER_BROKER", + "PER_TOPIC_PER_PARTITION" ] }, "Error": { diff --git a/models/apis/kafka/2018-11-14/docs-2.json b/models/apis/kafka/2018-11-14/docs-2.json index 042c20a4569..b6cb055b91e 100644 --- a/models/apis/kafka/2018-11-14/docs-2.json +++ b/models/apis/kafka/2018-11-14/docs-2.json @@ -256,10 +256,10 @@ } }, "EnhancedMonitoring" : { - "base" : "

Specifies which metrics are gathered for the MSK cluster. This property has three possible values: DEFAULT, PER_BROKER, and PER_TOPIC_PER_BROKER. For a list of the metrics associated with each of these three levels of monitoring, see Monitoring.

", + "base" : "

Specifies which metrics are gathered for the MSK cluster. This property has the following possible values: DEFAULT, PER_BROKER, PER_TOPIC_PER_BROKER, and PER_TOPIC_PER_PARTITION. For a list of the metrics associated with each of these levels of monitoring, see Monitoring.

", "refs" : { - "ClusterInfo$EnhancedMonitoring" : "

Specifies which metrics are gathered for the MSK cluster. This property has three possible values: DEFAULT, PER_BROKER, and PER_TOPIC_PER_BROKER. For a list of the metrics associated with each of these three levels of monitoring, see Monitoring.

", - "CreateClusterRequest$EnhancedMonitoring" : "

Specifies the level of monitoring for the MSK cluster. The possible values are DEFAULT, PER_BROKER, and PER_TOPIC_PER_BROKER.

", + "ClusterInfo$EnhancedMonitoring" : "

Specifies which metrics are gathered for the MSK cluster. This property has the following possible values: DEFAULT, PER_BROKER, PER_TOPIC_PER_BROKER, and PER_TOPIC_PER_PARTITION. For a list of the metrics associated with each of these levels of monitoring, see Monitoring.

", + "CreateClusterRequest$EnhancedMonitoring" : "

Specifies the level of monitoring for the MSK cluster. The possible values are DEFAULT, PER_BROKER, PER_TOPIC_PER_BROKER, and PER_TOPIC_PER_PARTITION.

", "MutableClusterInfo$EnhancedMonitoring" : "

Specifies which Apache Kafka metrics Amazon MSK gathers and sends to Amazon CloudWatch for this cluster.

", "UpdateMonitoringRequest$EnhancedMonitoring" : "

Specifies which Apache Kafka metrics Amazon MSK gathers and sends to Amazon CloudWatch for this cluster.

" } diff --git a/models/apis/macie2/2020-01-01/api-2.json b/models/apis/macie2/2020-01-01/api-2.json index ab033138229..e2862a81475 100644 --- a/models/apis/macie2/2020-01-01/api-2.json +++ b/models/apis/macie2/2020-01-01/api-2.json @@ -2212,6 +2212,10 @@ "shape": "__long", "locationName": "classifiableSizeInBytes" }, + "jobDetails": { + "shape": "JobDetails", + "locationName": "jobDetails" + }, "lastUpdated": { "shape": "__timestampIso8601", "locationName": "lastUpdated" @@ -3962,6 +3966,22 @@ } } }, + "IsDefinedInJob": { + "type": "string", + "enum": [ + "TRUE", + "FALSE", + "UNKNOWN" + ] + }, + "IsMonitoredByJob": { + "type": "string", + "enum": [ + "TRUE", + "FALSE", + "UNKNOWN" + ] + }, "JobComparator": { "type": "string", "enum": [ @@ -3974,6 +3994,27 @@ "CONTAINS" ] }, + "JobDetails": { + "type": "structure", + "members": { + "isDefinedInJob": { + "shape": "IsDefinedInJob", + "locationName": "isDefinedInJob" + }, + "isMonitoredByJob": { + "shape": "IsMonitoredByJob", + "locationName": "isMonitoredByJob" + }, + "lastJobId": { + "shape": "__string", + "locationName": "lastJobId" + }, + "lastJobRunTime": { + "shape": "__timestampIso8601", + "locationName": "lastJobRunTime" + } + } + }, "JobScheduleFrequency": { "type": "structure", "members": { diff --git a/models/apis/macie2/2020-01-01/docs-2.json b/models/apis/macie2/2020-01-01/docs-2.json index 4a989611091..60c693a7e27 100644 --- a/models/apis/macie2/2020-01-01/docs-2.json +++ b/models/apis/macie2/2020-01-01/docs-2.json @@ -637,6 +637,18 @@ "IpAddressDetails$IpOwner" : "

The registered owner of the IP address.

" } }, + "IsDefinedInJob" : { + "base" : null, + "refs" : { + "JobDetails$IsDefinedInJob" : "

Specifies whether any one-time or recurring jobs are configured to analyze data in the bucket. Possible values are:

" + } + }, + "IsMonitoredByJob" : { + "base" : null, + "refs" : { + "JobDetails$IsMonitoredByJob" : "

Specifies whether any recurring jobs are configured to analyze data in the bucket. Possible values are:

" + } + }, "JobComparator" : { "base" : "

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

", "refs" : { @@ -645,6 +657,12 @@ "TagScopeTerm$Comparator" : "

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

" } }, + "JobDetails" : { + "base" : "

Specifies whether any one-time or recurring classification jobs are configured to analyze data in an S3 bucket, and, if so, the details of the job that ran most recently.

", + "refs" : { + "BucketMetadata$JobDetails" : "

Specifies whether any one-time or recurring classification jobs are configured to analyze data in the bucket, and, if so, the details of the job that ran most recently.

" + } + }, "JobScheduleFrequency" : { "base" : "

Specifies the recurrence pattern for running a classification job.

", "refs" : { @@ -668,9 +686,9 @@ "JobStatus" : { "base" : "

The status of a classification job. Possible values are:

", "refs" : { - "DescribeClassificationJobResponse$JobStatus" : "

The current status of the job. Possible values are:

", - "JobSummary$JobStatus" : "

The current status of the job. Possible values are:

", - "UpdateClassificationJobRequest$JobStatus" : "

The new status for the job. Valid values are:

" + "DescribeClassificationJobResponse$JobStatus" : "

The current status of the job. Possible values are:

", + "JobSummary$JobStatus" : "

The current status of the job. Possible values are:

", + "UpdateClassificationJobRequest$JobStatus" : "

The new status for the job. Valid values are:

" } }, "JobSummary" : { @@ -925,7 +943,7 @@ } }, "S3BucketDefinitionForJob" : { - "base" : "

Specifies which S3 buckets contain the objects that a classification job analyzes.

", + "base" : "

Specifies which AWS account owns the S3 buckets that a classification job analyzes, and the buckets to analyze for the account.

", "refs" : { "__listOfS3BucketDefinitionForJob$member" : null } @@ -1233,7 +1251,7 @@ } }, "UserPausedDetails" : { - "base" : "

Provides information about when a classification job was paused and when it will expire and be cancelled if it isn't resumed. This object is present only if a job's current status (jobStatus) is USER_PAUSED.

", + "base" : "

Provides information about when a classification job was paused and when it will expire and be cancelled if it isn't resumed. This object is present only if a job's current status (jobStatus) is USER_PAUSED. The information in this object applies only to a job that was paused while it had a status of RUNNING.

", "refs" : { "DescribeClassificationJobResponse$UserPausedDetails" : "

If the current status of the job is USER_PAUSED, specifies when the job was paused and when the job will expire and be cancelled if it isn't resumed. This value is present only if the value for jobStatus is USER_PAUSED.

", "JobSummary$UserPausedDetails" : "

If the current status of the job is USER_PAUSED, specifies when the job was paused and when the job will expire and be cancelled if it isn't resumed. This value is present only if the value for jobStatus is USER_PAUSED.

" @@ -1398,7 +1416,7 @@ "base" : null, "refs" : { "JobSummary$BucketDefinitions" : "

The S3 buckets that the job is configured to analyze.

", - "S3JobDefinition$BucketDefinitions" : "

An array of objects, one for each bucket that contains objects to analyze.

" + "S3JobDefinition$BucketDefinitions" : "

An array of objects, one for each AWS account that owns buckets to analyze. Each object specifies the account ID for an account and one or more buckets to analyze for the account.

" } }, "__listOfTagValuePair" : { @@ -1451,7 +1469,7 @@ "CreateCustomDataIdentifierRequest$Keywords" : "

An array that lists specific character sequences (keywords), one of which must be within proximity (maximumMatchDistance) of the regular expression to match. The array can contain as many as 50 keywords. Each keyword can contain 4 - 90 characters. Keywords aren't case sensitive.

", "CreateInvitationsRequest$AccountIds" : "

An array that lists AWS account IDs, one for each account to send the invitation to.

", "CriterionAdditionalProperties$Eq" : "

An equal to condition to apply to a specified property value for findings.

", - "CriterionAdditionalProperties$EqExactMatch" : "

A condition that requires an array field on a finding to exactly match the specified property values. You can use this operator with the following properties: customDataIdentifiers.detections.arn, customDataIdentifiers.detections.name, resourcesAffected.s3Bucket.tags.key, resourcesAffected.s3Bucket.tags.value, resourcesAffected.s3Object.tags.key, resourcesAffected.s3Object.tags.value, sensitiveData.category, and sensitiveData.detections.type.

", + "CriterionAdditionalProperties$EqExactMatch" : "

A condition that requires an array field to exactly match the specified property values. You can use this operator with the following properties: customDataIdentifiers.detections.arn, customDataIdentifiers.detections.name, resourcesAffected.s3Bucket.tags.key, resourcesAffected.s3Bucket.tags.value, resourcesAffected.s3Object.tags.key, resourcesAffected.s3Object.tags.value, sensitiveData.category, and sensitiveData.detections.type.

", "CriterionAdditionalProperties$Neq" : "

A not equal to condition to apply to a specified property value for findings.

", "DeclineInvitationsRequest$AccountIds" : "

An array that lists AWS account IDs, one for each account that sent an invitation to decline.

", "DeleteInvitationsRequest$AccountIds" : "

An array that lists AWS account IDs, one for each account that sent an invitation to delete.

", @@ -1476,8 +1494,8 @@ "BucketCountByEffectivePermission$PubliclyReadable" : "

The total number of buckets that allow the general public to have read access to the bucket.

", "BucketCountByEffectivePermission$PubliclyWritable" : "

The total number of buckets that allow the general public to have write access to the bucket.

", "BucketCountByEffectivePermission$Unknown" : "

The total number of buckets that Amazon Macie wasn't able to evaluate permissions settings for. Macie can't determine whether these buckets are publicly accessible.

", - "BucketCountByEncryptionType$KmsManaged" : "

The total number of buckets that use an AWS Key Management Service (AWS KMS) customer master key (CMK) to encrypt objects. These buckets use AWS KMS AWS-managed (AWS-KMS) encryption or AWS KMS customer-managed (SSE-KMS) encryption.

", - "BucketCountByEncryptionType$S3Managed" : "

The total number of buckets that use an Amazon S3-managed key to encrypt objects. These buckets use Amazon S3-managed (SSE-S3) encryption.

", + "BucketCountByEncryptionType$KmsManaged" : "

The total number of buckets that use an AWS Key Management Service (AWS KMS) customer master key (CMK) to encrypt objects. These buckets use AWS managed AWS KMS (AWS-KMS) encryption or customer managed AWS KMS (SSE-KMS) encryption.

", + "BucketCountByEncryptionType$S3Managed" : "

The total number of buckets that use an Amazon S3 managed key to encrypt objects. These buckets use Amazon S3 managed (SSE-S3) encryption.

", "BucketCountByEncryptionType$Unencrypted" : "

The total number of buckets that don't encrypt objects by default. Default encryption is disabled for these buckets.

", "BucketCountBySharedAccessType$External" : "

The total number of buckets that are shared with an AWS account that isn't part of the same Amazon Macie organization.

", "BucketCountBySharedAccessType$Internal" : "

The total number of buckets that are shared with an AWS account that's part of the same Amazon Macie organization.

", @@ -1512,8 +1530,8 @@ "GetInvitationsCountResponse$InvitationsCount" : "

The total number of invitations that were received by the account, not including the currently accepted invitation.

", "GroupCount$Count" : "

The total number of findings in the group of query results.

", "ObjectCountByEncryptionType$CustomerManaged" : "

The total number of objects that are encrypted using a customer-managed key. The objects use customer-provided server-side (SSE-C) encryption.

", - "ObjectCountByEncryptionType$KmsManaged" : "

The total number of objects that are encrypted using an AWS Key Management Service (AWS KMS) customer master key (CMK). The objects use AWS KMS AWS-managed (AWS-KMS) encryption or AWS KMS customer-managed (SSE-KMS) encryption.

", - "ObjectCountByEncryptionType$S3Managed" : "

The total number of objects that are encrypted using an Amazon S3-managed key. The objects use Amazon S3-managed (SSE-S3) encryption.

", + "ObjectCountByEncryptionType$KmsManaged" : "

The total number of objects that are encrypted using an AWS Key Management Service (AWS KMS) customer master key (CMK). The objects use AWS managed AWS KMS (AWS-KMS) encryption or customer managed AWS KMS (SSE-KMS) encryption.

", + "ObjectCountByEncryptionType$S3Managed" : "

The total number of objects that are encrypted using an Amazon S3 managed key. The objects use Amazon S3 managed (SSE-S3) encryption.

", "ObjectCountByEncryptionType$Unencrypted" : "

The total number of objects that aren't encrypted or use client-side encryption.

", "ObjectLevelStatistics$FileType" : "

The total storage size (in bytes) or number of objects that Amazon Macie can't analyze because the objects don't have a file name extension for a supported file or storage format.

", "ObjectLevelStatistics$StorageClass" : "

The total storage size (in bytes) or number of objects that Amazon Macie can't analyze because the objects use an unsupported storage class.

", @@ -1648,6 +1666,7 @@ "IpOwner$AsnOrg" : "

The organization identifier that's associated with the autonomous system number (ASN) for the autonomous system that included the IP address.

", "IpOwner$Isp" : "

The name of the internet service provider (ISP) that owned the IP address.

", "IpOwner$Org" : "

The name of the organization that owned the IP address.

", + "JobDetails$LastJobId" : "

The unique identifier for the job that ran most recently (either the latest run of a recurring job or the only run of a one-time job) and is configured to analyze data in the bucket.

This value is null if the value for the isDefinedInJob property is FALSE or UNKNOWN.

", "JobSummary$JobId" : "

The unique identifier for the job.

", "JobSummary$Name" : "

The custom name of the job.

", "KeyValuePair$Key" : "

One part of a key-value pair that comprises a tag. A tag key is a general label that acts as a category for more specific tag values.

", @@ -1670,7 +1689,7 @@ "ResourceNotFoundException$Message" : "

The explanation of the error that occurred.

", "S3Bucket$Arn" : "

The Amazon Resource Name (ARN) of the bucket.

", "S3Bucket$Name" : "

The name of the bucket.

", - "S3BucketDefinitionForJob$AccountId" : "

The unique identifier for the AWS account that owns one or more of the buckets. If specified, the job analyzes objects in all the buckets that are owned by the account and meet other conditions specified for the job.

", + "S3BucketDefinitionForJob$AccountId" : "

The unique identifier for the AWS account that owns the buckets. If you specify this value and don't specify a value for the buckets array, the job analyzes objects in all the buckets that are owned by the account and meet other conditions specified for the job.

", "S3BucketOwner$DisplayName" : "

The display name of the user who owns the bucket.

", "S3BucketOwner$Id" : "

The AWS account ID for the user who owns the bucket.

", "S3Destination$BucketName" : "

The name of the bucket.

", @@ -1724,7 +1743,7 @@ "BucketMetadata$LastUpdated" : "

The date and time, in UTC and extended ISO 8601 format, when Amazon Macie most recently retrieved data about the bucket from Amazon S3.

", "CustomDataIdentifierSummary$CreatedAt" : "

The date and time, in UTC and extended ISO 8601 format, when the custom data identifier was created.

", "DescribeClassificationJobResponse$CreatedAt" : "

The date and time, in UTC and extended ISO 8601 format, when the job was created.

", - "DescribeClassificationJobResponse$LastRunTime" : "

The date and time, in UTC and extended ISO 8601 format, when the job last ran.

", + "DescribeClassificationJobResponse$LastRunTime" : "

The date and time, in UTC and extended ISO 8601 format, when the job started. If the job is a recurring job, this value indicates when the most recent run started.

", "Finding$CreatedAt" : "

The date and time, in UTC and extended ISO 8601 format, when the finding was created.

", "Finding$UpdatedAt" : "

The date and time, in UTC and extended ISO 8601 format, when the finding was last updated. For sensitive data findings, this value is the same as the value for the createdAt property. All sensitive data findings are considered new (unique) because they derive from individual classification jobs.

", "GetBucketStatisticsResponse$LastUpdated" : "

The date and time, in UTC and extended ISO 8601 format, when Amazon Macie most recently retrieved data about the buckets from Amazon S3.

", @@ -1734,6 +1753,7 @@ "GetMemberResponse$InvitedAt" : "

The date and time, in UTC and extended ISO 8601 format, when an Amazon Macie membership invitation was last sent to the account. This value is null if a Macie invitation hasn't been sent to the account.

", "GetMemberResponse$UpdatedAt" : "

The date and time, in UTC and extended ISO 8601 format, of the most recent change to the status of the relationship between the account and the master account.

", "Invitation$InvitedAt" : "

The date and time, in UTC and extended ISO 8601 format, when the invitation was sent.

", + "JobDetails$LastJobRunTime" : "

The date and time, in UTC and extended ISO 8601 format, when the job (lastJobId) started. If the job is a recurring job, this value indicates when the most recent run started.

This value is null if the value for the isDefinedInJob property is FALSE or UNKNOWN.

", "JobSummary$CreatedAt" : "

The date and time, in UTC and extended ISO 8601 format, when the job was created.

", "Member$InvitedAt" : "

The date and time, in UTC and extended ISO 8601 format, when an Amazon Macie membership invitation was last sent to the account. This value is null if a Macie invitation hasn't been sent to the account.

", "Member$UpdatedAt" : "

The date and time, in UTC and extended ISO 8601 format, of the most recent change to the status of the relationship between the account and the master account.

", diff --git a/models/apis/s3/2006-03-01/api-2.json b/models/apis/s3/2006-03-01/api-2.json index eb6a26be3b0..ca4df75b4c0 100644 --- a/models/apis/s3/2006-03-01/api-2.json +++ b/models/apis/s3/2006-03-01/api-2.json @@ -787,7 +787,8 @@ "method":"PUT", "requestUri":"/{Bucket}?ownershipControls" }, - "input":{"shape":"PutBucketOwnershipControlsRequest"} + "input":{"shape":"PutBucketOwnershipControlsRequest"}, + "httpChecksumRequired":true }, "PutBucketPolicy":{ "name":"PutBucketPolicy", @@ -5353,8 +5354,6 @@ }, "ContentMD5":{ "shape":"ContentMD5", - "deprecated":true, - "deprecatedMessage":"Content-MD5 header will now be automatically computed and injected in associated operation's Http request.", "location":"header", "locationName":"Content-MD5" }, @@ -5441,8 +5440,6 @@ }, "ContentMD5":{ "shape":"ContentMD5", - "deprecated":true, - "deprecatedMessage":"Content-MD5 header will now be automatically computed and injected in associated operation's Http request.", "location":"header", "locationName":"Content-MD5" }, @@ -5468,8 +5465,6 @@ }, "ContentMD5":{ "shape":"ContentMD5", - "deprecated":true, - "deprecatedMessage":"Content-MD5 header will now be automatically computed and injected in associated operation's Http request.", "location":"header", "locationName":"Content-MD5" }, @@ -5576,8 +5571,6 @@ }, "ContentMD5":{ "shape":"ContentMD5", - "deprecated":true, - "deprecatedMessage":"Content-MD5 header will now be automatically computed and injected in associated operation's Http request.", "location":"header", "locationName":"Content-MD5" }, @@ -5613,8 +5606,6 @@ }, "ContentMD5":{ "shape":"ContentMD5", - "deprecated":true, - "deprecatedMessage":"Content-MD5 header will now be automatically computed and injected in associated operation's Http request.", "location":"header", "locationName":"Content-MD5" }, @@ -5696,8 +5687,6 @@ }, "ContentMD5":{ "shape":"ContentMD5", - "deprecated":true, - "deprecatedMessage":"Content-MD5 header will now be automatically computed and injected in associated operation's Http request.", "location":"header", "locationName":"Content-MD5" }, @@ -5758,8 +5747,6 @@ }, "ContentMD5":{ "shape":"ContentMD5", - "deprecated":true, - "deprecatedMessage":"Content-MD5 header will now be automatically computed and injected in associated operation's Http request.", "location":"header", "locationName":"Content-MD5" }, @@ -5791,8 +5778,6 @@ }, "ContentMD5":{ "shape":"ContentMD5", - "deprecated":true, - "deprecatedMessage":"Content-MD5 header will now be automatically computed and injected in associated operation's Http request.", "location":"header", "locationName":"Content-MD5" }, @@ -5828,8 +5813,6 @@ }, "ContentMD5":{ "shape":"ContentMD5", - "deprecated":true, - "deprecatedMessage":"Content-MD5 header will now be automatically computed and injected in associated operation's Http request.", "location":"header", "locationName":"Content-MD5" }, @@ -5860,8 +5843,6 @@ }, "ContentMD5":{ "shape":"ContentMD5", - "deprecated":true, - "deprecatedMessage":"Content-MD5 header will now be automatically computed and injected in associated operation's Http request.", "location":"header", "locationName":"Content-MD5" }, @@ -5892,8 +5873,6 @@ }, "ContentMD5":{ "shape":"ContentMD5", - "deprecated":true, - "deprecatedMessage":"Content-MD5 header will now be automatically computed and injected in associated operation's Http request.", "location":"header", "locationName":"Content-MD5" }, @@ -5929,8 +5908,6 @@ }, "ContentMD5":{ "shape":"ContentMD5", - "deprecated":true, - "deprecatedMessage":"Content-MD5 header will now be automatically computed and injected in associated operation's Http request.", "location":"header", "locationName":"Content-MD5" }, @@ -5981,8 +5958,6 @@ }, "ContentMD5":{ "shape":"ContentMD5", - "deprecated":true, - "deprecatedMessage":"Content-MD5 header will now be automatically computed and injected in associated operation's Http request.", "location":"header", "locationName":"Content-MD5" }, @@ -6078,8 +6053,6 @@ }, "ContentMD5":{ "shape":"ContentMD5", - "deprecated":true, - "deprecatedMessage":"Content-MD5 header will now be automatically computed and injected in associated operation's Http request.", "location":"header", "locationName":"Content-MD5" }, @@ -6127,8 +6100,6 @@ }, "ContentMD5":{ "shape":"ContentMD5", - "deprecated":true, - "deprecatedMessage":"Content-MD5 header will now be automatically computed and injected in associated operation's Http request.", "location":"header", "locationName":"Content-MD5" }, @@ -6403,8 +6374,6 @@ }, "ContentMD5":{ "shape":"ContentMD5", - "deprecated":true, - "deprecatedMessage":"Content-MD5 header will now be automatically computed and injected in associated operation's Http request.", "location":"header", "locationName":"Content-MD5" }, @@ -6451,8 +6420,6 @@ }, "ContentMD5":{ "shape":"ContentMD5", - "deprecated":true, - "deprecatedMessage":"Content-MD5 header will now be automatically computed and injected in associated operation's Http request.", "location":"header", "locationName":"Content-MD5" }, @@ -6483,8 +6450,6 @@ }, "ContentMD5":{ "shape":"ContentMD5", - "deprecated":true, - "deprecatedMessage":"Content-MD5 header will now be automatically computed and injected in associated operation's Http request.", "location":"header", "locationName":"Content-MD5" }, diff --git a/models/apis/s3/2006-03-01/docs-2.json b/models/apis/s3/2006-03-01/docs-2.json index 8cb57a83beb..9fb74163f72 100644 --- a/models/apis/s3/2006-03-01/docs-2.json +++ b/models/apis/s3/2006-03-01/docs-2.json @@ -46,7 +46,7 @@ "GetBucketTagging": "

Returns the tag set associated with the bucket.

To use this operation, you must have permission to perform the s3:GetBucketTagging action. By default, the bucket owner has this permission and can grant this permission to others.

GetBucketTagging has the following special error:

The following operations are related to GetBucketTagging:

", "GetBucketVersioning": "

Returns the versioning state of a bucket.

To retrieve the versioning state of a bucket, you must be the bucket owner.

This implementation also returns the MFA Delete status of the versioning state. If the MFA Delete status is enabled, the bucket owner must use an authentication device to change the versioning state of the bucket.

The following operations are related to GetBucketVersioning:

", "GetBucketWebsite": "

Returns the website configuration for a bucket. To host website on Amazon S3, you can configure a bucket as website by adding a website configuration. For more information about hosting websites, see Hosting Websites on Amazon S3.

This GET operation requires the S3:GetBucketWebsite permission. By default, only the bucket owner can read the bucket website configuration. However, bucket owners can allow other users to read the website configuration by writing a bucket policy granting them the S3:GetBucketWebsite permission.

The following operations are related to DeleteBucketWebsite:

", - "GetObject": "

Retrieves objects from Amazon S3. To use GET, you must have READ access to the object. If you grant READ access to the anonymous user, you can return the object without using an authorization header.

An Amazon S3 bucket has no directory hierarchy such as you would find in a typical computer file system. You can, however, create a logical hierarchy by using object key names that imply a folder structure. For example, instead of naming an object sample.jpg, you can name it photos/2006/February/sample.jpg.

To get an object from such a logical hierarchy, specify the full key name for the object in the GET operation. For a virtual hosted-style request example, if you have the object photos/2006/February/sample.jpg, specify the resource as /photos/2006/February/sample.jpg. For a path-style request example, if you have the object photos/2006/February/sample.jpg in the bucket named examplebucket, specify the resource as /examplebucket/photos/2006/February/sample.jpg. For more information about request types, see HTTP Host Header Bucket Specification.

To distribute large files to many people, you can save bandwidth costs by using BitTorrent. For more information, see Amazon S3 Torrent. For more information about returning the ACL of an object, see GetObjectAcl.

If the object you are retrieving is stored in the S3 Glacier, S3 Glacier Deep Archive, S3 Intelligent-Tiering Archive, or S3 Intelligent-Tiering Deep Archive storage classes, before you can retrieve the object you must first restore a copy using RestoreObject. Otherwise, this operation returns an InvalidObjectStateError error. For information about restoring archived objects, see Restoring Archived Objects.

Encryption request headers, like x-amz-server-side-encryption, should not be sent for GET requests if your object uses server-side encryption with CMKs stored in AWS KMS (SSE-KMS) or server-side encryption with Amazon S3–managed encryption keys (SSE-S3). If your object does use these types of keys, you’ll get an HTTP 400 BadRequest error.

If you encrypt an object by using server-side encryption with customer-provided encryption keys (SSE-C) when you store the object in Amazon S3, then when you GET the object, you must use the following headers:

For more information about SSE-C, see Server-Side Encryption (Using Customer-Provided Encryption Keys).

Assuming you have permission to read object tags (permission for the s3:GetObjectVersionTagging action), the response also returns the x-amz-tagging-count header that provides the count of number of tags associated with the object. You can use GetObjectTagging to retrieve the tag set associated with an object.

Permissions

You need the s3:GetObject permission for this operation. For more information, see Specifying Permissions in a Policy. If the object you request does not exist, the error Amazon S3 returns depends on whether you also have the s3:ListBucket permission.

Versioning

By default, the GET operation returns the current version of an object. To return a different version, use the versionId subresource.

If the current version of the object is a delete marker, Amazon S3 behaves as if the object was deleted and includes x-amz-delete-marker: true in the response.

For more information about versioning, see PutBucketVersioning.

Overriding Response Header Values

There are times when you want to override certain response header values in a GET response. For example, you might override the Content-Disposition response header value in your GET request.

You can override values for a set of response headers using the following query parameters. These response header values are sent only on a successful request, that is, when status code 200 OK is returned. The set of headers you can override using these parameters is a subset of the headers that Amazon S3 accepts when you create an object. The response headers that you can override for the GET response are Content-Type, Content-Language, Expires, Cache-Control, Content-Disposition, and Content-Encoding. To override these header values in the GET response, you use the following request parameters.

You must sign the request, either using an Authorization header or a presigned URL, when using these parameters. They cannot be used with an unsigned (anonymous) request.

Additional Considerations about Request Headers

If both of the If-Match and If-Unmodified-Since headers are present in the request as follows: If-Match condition evaluates to true, and; If-Unmodified-Since condition evaluates to false; then, S3 returns 200 OK and the data requested.

If both of the If-None-Match and If-Modified-Since headers are present in the request as follows: If-None-Match condition evaluates to false, and; If-Modified-Since condition evaluates to true; then, S3 returns 304 Not Modified response code.

For more information about conditional requests, see RFC 7232.

The following operations are related to GetObject:

", + "GetObject": "

Retrieves objects from Amazon S3. To use GET, you must have READ access to the object. If you grant READ access to the anonymous user, you can return the object without using an authorization header.

An Amazon S3 bucket has no directory hierarchy such as you would find in a typical computer file system. You can, however, create a logical hierarchy by using object key names that imply a folder structure. For example, instead of naming an object sample.jpg, you can name it photos/2006/February/sample.jpg.

To get an object from such a logical hierarchy, specify the full key name for the object in the GET operation. For a virtual hosted-style request example, if you have the object photos/2006/February/sample.jpg, specify the resource as /photos/2006/February/sample.jpg. For a path-style request example, if you have the object photos/2006/February/sample.jpg in the bucket named examplebucket, specify the resource as /examplebucket/photos/2006/February/sample.jpg. For more information about request types, see HTTP Host Header Bucket Specification.

To distribute large files to many people, you can save bandwidth costs by using BitTorrent. For more information, see Amazon S3 Torrent. For more information about returning the ACL of an object, see GetObjectAcl.

If the object you are retrieving is stored in the S3 Glacier or S3 Glacier Deep Archive storage class, or S3 Intelligent-Tiering Archive or S3 Intelligent-Tiering Deep Archive tiers, before you can retrieve the object you must first restore a copy using RestoreObject. Otherwise, this operation returns an InvalidObjectStateError error. For information about restoring archived objects, see Restoring Archived Objects.

Encryption request headers, like x-amz-server-side-encryption, should not be sent for GET requests if your object uses server-side encryption with CMKs stored in AWS KMS (SSE-KMS) or server-side encryption with Amazon S3–managed encryption keys (SSE-S3). If your object does use these types of keys, you’ll get an HTTP 400 BadRequest error.

If you encrypt an object by using server-side encryption with customer-provided encryption keys (SSE-C) when you store the object in Amazon S3, then when you GET the object, you must use the following headers:

For more information about SSE-C, see Server-Side Encryption (Using Customer-Provided Encryption Keys).

Assuming you have permission to read object tags (permission for the s3:GetObjectVersionTagging action), the response also returns the x-amz-tagging-count header that provides the count of number of tags associated with the object. You can use GetObjectTagging to retrieve the tag set associated with an object.

Permissions

You need the s3:GetObject permission for this operation. For more information, see Specifying Permissions in a Policy. If the object you request does not exist, the error Amazon S3 returns depends on whether you also have the s3:ListBucket permission.

Versioning

By default, the GET operation returns the current version of an object. To return a different version, use the versionId subresource.

If the current version of the object is a delete marker, Amazon S3 behaves as if the object was deleted and includes x-amz-delete-marker: true in the response.

For more information about versioning, see PutBucketVersioning.

Overriding Response Header Values

There are times when you want to override certain response header values in a GET response. For example, you might override the Content-Disposition response header value in your GET request.

You can override values for a set of response headers using the following query parameters. These response header values are sent only on a successful request, that is, when status code 200 OK is returned. The set of headers you can override using these parameters is a subset of the headers that Amazon S3 accepts when you create an object. The response headers that you can override for the GET response are Content-Type, Content-Language, Expires, Cache-Control, Content-Disposition, and Content-Encoding. To override these header values in the GET response, you use the following request parameters.

You must sign the request, either using an Authorization header or a presigned URL, when using these parameters. They cannot be used with an unsigned (anonymous) request.

Additional Considerations about Request Headers

If both of the If-Match and If-Unmodified-Since headers are present in the request as follows: If-Match condition evaluates to true, and; If-Unmodified-Since condition evaluates to false; then, S3 returns 200 OK and the data requested.

If both of the If-None-Match and If-Modified-Since headers are present in the request as follows: If-None-Match condition evaluates to false, and; If-Modified-Since condition evaluates to true; then, S3 returns 304 Not Modified response code.

For more information about conditional requests, see RFC 7232.

The following operations are related to GetObject:

", "GetObjectAcl": "

Returns the access control list (ACL) of an object. To use this operation, you must have READ_ACP access to the object.

This action is not supported by Amazon S3 on Outposts.

Versioning

By default, GET returns ACL information about the current version of an object. To return ACL information about a different version, use the versionId subresource.

The following operations are related to GetObjectAcl:

", "GetObjectLegalHold": "

Gets an object's current Legal Hold status. For more information, see Locking Objects.

This action is not supported by Amazon S3 on Outposts.

", "GetObjectLockConfiguration": "

Gets the Object Lock configuration for a bucket. The rule specified in the Object Lock configuration will be applied by default to every new object placed in the specified bucket. For more information, see Locking Objects.

", @@ -81,7 +81,7 @@ "PutBucketNotificationConfiguration": "

Enables notifications of specified events for a bucket. For more information about event notifications, see Configuring Event Notifications.

Using this API, you can replace an existing notification configuration. The configuration is an XML file that defines the event types that you want Amazon S3 to publish and the destination where you want Amazon S3 to publish an event notification when it detects an event of the specified type.

By default, your bucket has no event notifications configured. That is, the notification configuration will be an empty NotificationConfiguration.

<NotificationConfiguration>

</NotificationConfiguration>

This operation replaces the existing notification configuration with the configuration you include in the request body.

After Amazon S3 receives this request, it first verifies that any Amazon Simple Notification Service (Amazon SNS) or Amazon Simple Queue Service (Amazon SQS) destination exists, and that the bucket owner has permission to publish to it by sending a test notification. In the case of AWS Lambda destinations, Amazon S3 verifies that the Lambda function permissions grant Amazon S3 permission to invoke the function from the Amazon S3 bucket. For more information, see Configuring Notifications for Amazon S3 Events.

You can disable notifications by adding the empty NotificationConfiguration element.

By default, only the bucket owner can configure notifications on a bucket. However, bucket owners can use a bucket policy to grant permission to other users to set this configuration with s3:PutBucketNotification permission.

The PUT notification is an atomic operation. For example, suppose your notification configuration includes SNS topic, SQS queue, and Lambda function configurations. When you send a PUT request with this configuration, Amazon S3 sends test messages to your SNS topic. If the message fails, the entire PUT operation will fail, and Amazon S3 will not add the configuration to your bucket.

Responses

If the configuration in the request body includes only one TopicConfiguration specifying only the s3:ReducedRedundancyLostObject event type, the response will also include the x-amz-sns-test-message-id header containing the message ID of the test notification sent to the topic.

The following operation is related to PutBucketNotificationConfiguration:

", "PutBucketOwnershipControls": "

Creates or modifies OwnershipControls for an Amazon S3 bucket. To use this operation, you must have the s3:PutBucketOwnershipControls permission. For more information about Amazon S3 permissions, see Specifying Permissions in a Policy.

For information about Amazon S3 Object Ownership, see Using Object Ownership.

The following operations are related to PutBucketOwnershipControls:

", "PutBucketPolicy": "

Applies an Amazon S3 bucket policy to an Amazon S3 bucket. If you are using an identity other than the root user of the AWS account that owns the bucket, the calling identity must have the PutBucketPolicy permissions on the specified bucket and belong to the bucket owner's account in order to use this operation.

If you don't have PutBucketPolicy permissions, Amazon S3 returns a 403 Access Denied error. If you have the correct permissions, but you're not using an identity that belongs to the bucket owner's account, Amazon S3 returns a 405 Method Not Allowed error.

As a security precaution, the root user of the AWS account that owns a bucket can always use this operation, even if the policy explicitly denies the root user the ability to perform this action.

For more information about bucket policies, see Using Bucket Policies and User Policies.

The following operations are related to PutBucketPolicy:

", - "PutBucketReplication": "

Creates a replication configuration or replaces an existing one. For more information, see Replication in the Amazon S3 Developer Guide.

To perform this operation, the user or role performing the operation must have the iam:PassRole permission.

Specify the replication configuration in the request body. In the replication configuration, you provide the name of the destination bucket where you want Amazon S3 to replicate objects, the IAM role that Amazon S3 can assume to replicate objects on your behalf, and other relevant information.

A replication configuration must include at least one rule, and can contain a maximum of 1,000. Each rule identifies a subset of objects to replicate by filtering the objects in the source bucket. To choose additional subsets of objects to replicate, add a rule for each subset. All rules must specify the same destination bucket.

To specify a subset of the objects in the source bucket to apply a replication rule to, add the Filter element as a child of the Rule element. You can filter objects based on an object key prefix, one or more object tags, or both. When you add the Filter element in the configuration, you must also add the following elements: DeleteMarkerReplication, Status, and Priority.

The latest version of the replication configuration XML is V2. XML V2 replication configurations are those that contain the Filter element for rules, and rules that specify S3 Replication Time Control (S3 RTC). In XML V2 replication configurations, Amazon S3 doesn't replicate delete markers. Therefore, you must set the DeleteMarkerReplication element to Disabled. For backward compatibility, Amazon S3 continues to support the XML V1 replication configuration.

For information about enabling versioning on a bucket, see Using Versioning.

By default, a resource owner, in this case the AWS account that created the bucket, can perform this operation. The resource owner can also grant others permissions to perform the operation. For more information about permissions, see Specifying Permissions in a Policy and Managing Access Permissions to Your Amazon S3 Resources.

Handling Replication of Encrypted Objects

By default, Amazon S3 doesn't replicate objects that are stored at rest using server-side encryption with CMKs stored in AWS KMS. To replicate AWS KMS-encrypted objects, add the following: SourceSelectionCriteria, SseKmsEncryptedObjects, Status, EncryptionConfiguration, and ReplicaKmsKeyID. For information about replication configuration, see Replicating Objects Created with SSE Using CMKs stored in AWS KMS.

For information on PutBucketReplication errors, see List of replication-related error codes

The following operations are related to PutBucketReplication:

", + "PutBucketReplication": "

Creates a replication configuration or replaces an existing one. For more information, see Replication in the Amazon S3 Developer Guide.

To perform this operation, the user or role performing the operation must have the iam:PassRole permission.

Specify the replication configuration in the request body. In the replication configuration, you provide the name of the destination bucket where you want Amazon S3 to replicate objects, the IAM role that Amazon S3 can assume to replicate objects on your behalf, and other relevant information.

A replication configuration must include at least one rule, and can contain a maximum of 1,000. Each rule identifies a subset of objects to replicate by filtering the objects in the source bucket. To choose additional subsets of objects to replicate, add a rule for each subset. All rules must specify the same destination bucket.

To specify a subset of the objects in the source bucket to apply a replication rule to, add the Filter element as a child of the Rule element. You can filter objects based on an object key prefix, one or more object tags, or both. When you add the Filter element in the configuration, you must also add the following elements: DeleteMarkerReplication, Status, and Priority.

If you are using an earlier version of the replication configuration, Amazon S3 handles replication of delete markers differently. For more information, see Backward Compatibility.

For information about enabling versioning on a bucket, see Using Versioning.

By default, a resource owner, in this case the AWS account that created the bucket, can perform this operation. The resource owner can also grant others permissions to perform the operation. For more information about permissions, see Specifying Permissions in a Policy and Managing Access Permissions to Your Amazon S3 Resources.

Handling Replication of Encrypted Objects

By default, Amazon S3 doesn't replicate objects that are stored at rest using server-side encryption with CMKs stored in AWS KMS. To replicate AWS KMS-encrypted objects, add the following: SourceSelectionCriteria, SseKmsEncryptedObjects, Status, EncryptionConfiguration, and ReplicaKmsKeyID. For information about replication configuration, see Replicating Objects Created with SSE Using CMKs stored in AWS KMS.

For information on PutBucketReplication errors, see List of replication-related error codes

The following operations are related to PutBucketReplication:

", "PutBucketRequestPayment": "

Sets the request payment configuration for a bucket. By default, the bucket owner pays for downloads from the bucket. This configuration parameter enables the bucket owner (only) to specify that the person requesting the download will be charged for the download. For more information, see Requester Pays Buckets.

The following operations are related to PutBucketRequestPayment:

", "PutBucketTagging": "

Sets the tags for a bucket.

Use tags to organize your AWS bill to reflect your own cost structure. To do this, sign up to get your AWS account bill with tag key values included. Then, to see the cost of combined resources, organize your billing information according to resources with the same tag key values. For example, you can tag several resources with a specific application name, and then organize your billing information to see the total cost of that application across several services. For more information, see Cost Allocation and Tagging.

Within a bucket, if you add a tag that has the same key as an existing tag, the new value overwrites the old value. For more information, see Using Cost Allocation in Amazon S3 Bucket Tags.

To use this operation, you must have permissions to perform the s3:PutBucketTagging action. The bucket owner has this permission by default and can grant this permission to others. For more information about permissions, see Permissions Related to Bucket Subresource Operations and Managing Access Permissions to Your Amazon S3 Resources.

PutBucketTagging has the following special errors:

The following operations are related to PutBucketTagging:

", "PutBucketVersioning": "

Sets the versioning state of an existing bucket. To set the versioning state, you must be the bucket owner.

You can set the versioning state with one of the following values:

Enabled—Enables versioning for the objects in the bucket. All objects added to the bucket receive a unique version ID.

Suspended—Disables versioning for the objects in the bucket. All objects added to the bucket receive the version ID null.

If the versioning state has never been set on a bucket, it has no versioning state; a GetBucketVersioning request does not return a versioning state value.

If the bucket owner enables MFA Delete in the bucket versioning configuration, the bucket owner must include the x-amz-mfa request header and the Status and the MfaDelete request elements in a request to set the versioning state of the bucket.

If you have an object expiration lifecycle policy in your non-versioned bucket and you want to maintain the same permanent delete behavior when you enable versioning, you must add a noncurrent expiration policy. The noncurrent expiration lifecycle policy will manage the deletes of the noncurrent object versions in the version-enabled bucket. (A version-enabled bucket maintains one current and zero or more noncurrent object versions.) For more information, see Lifecycle and Versioning.

Related Resources

", @@ -93,7 +93,7 @@ "PutObjectRetention": "

Places an Object Retention configuration on an object.

This action is not supported by Amazon S3 on Outposts.

Related Resources

", "PutObjectTagging": "

Sets the supplied tag-set to an object that already exists in a bucket.

A tag is a key-value pair. You can associate tags with an object by sending a PUT request against the tagging subresource that is associated with the object. You can retrieve tags by sending a GET request. For more information, see GetObjectTagging.

For tagging-related restrictions related to characters and encodings, see Tag Restrictions. Note that Amazon S3 limits the maximum number of tags to 10 tags per object.

To use this operation, you must have permission to perform the s3:PutObjectTagging action. By default, the bucket owner has this permission and can grant this permission to others.

To put tags of any other version, use the versionId query parameter. You also need permission for the s3:PutObjectVersionTagging action.

For information about the Amazon S3 object tagging feature, see Object Tagging.

Special Errors

Related Resources

", "PutPublicAccessBlock": "

Creates or modifies the PublicAccessBlock configuration for an Amazon S3 bucket. To use this operation, you must have the s3:PutBucketPublicAccessBlock permission. For more information about Amazon S3 permissions, see Specifying Permissions in a Policy.

When Amazon S3 evaluates the PublicAccessBlock configuration for a bucket or an object, it checks the PublicAccessBlock configuration for both the bucket (or the bucket that contains the object) and the bucket owner's account. If the PublicAccessBlock configurations are different between the bucket and the account, Amazon S3 uses the most restrictive combination of the bucket-level and account-level settings.

For more information about when Amazon S3 considers a bucket or an object public, see The Meaning of \"Public\".

Related Resources

", - "RestoreObject": "

Restores an archived copy of an object back into Amazon S3

This action is not supported by Amazon S3 on Outposts.

This action performs the following types of requests:

To use this operation, you must have permissions to perform the s3:RestoreObject action. The bucket owner has this permission by default and can grant this permission to others. For more information about permissions, see Permissions Related to Bucket Subresource Operations and Managing Access Permissions to Your Amazon S3 Resources in the Amazon Simple Storage Service Developer Guide.

Querying Archives with Select Requests

You use a select type of request to perform SQL queries on archived objects. The archived objects that are being queried by the select request must be formatted as uncompressed comma-separated values (CSV) files. You can run queries and custom analytics on your archived data without having to restore your data to a hotter Amazon S3 tier. For an overview about select requests, see Querying Archived Objects in the Amazon Simple Storage Service Developer Guide.

When making a select request, do the following:

For more information about using SQL with S3 Glacier Select restore, see SQL Reference for Amazon S3 Select and S3 Glacier Select in the Amazon Simple Storage Service Developer Guide.

When making a select request, you can also do the following:

The following are additional important facts about the select feature:

Restoring Archives

Objects that you archive to the S3 Glacier, S3 Glacier Deep Archive, S3 Intelligent-Tiering Archive, or S3 Intelligent-Tiering Deep Archive storage classes are not accessible in real time. For objects in Archive Access tier or Deep Archive Access tier you must first initiate a restore request, and then wait until the object is moved into the Frequent Access tier. For objects in S3 Glacier or S3 Glacier Deep Archive you must first initiate a restore request, and then wait until a temporary copy of the object is available. To access an archived object, you must restore the object for the duration (number of days) that you specify.

To restore a specific object version, you can provide a version ID. If you don't provide a version ID, Amazon S3 restores the current version.

When restoring an archived object (or using a select request), you can specify one of the following data access tier options in the Tier element of the request body:

For more information about archive retrieval options and provisioned capacity for Expedited data access, see Restoring Archived Objects in the Amazon Simple Storage Service Developer Guide.

You can use Amazon S3 restore speed upgrade to change the restore speed to a faster speed while it is in progress. For more information, see Upgrading the speed of an in-progress restore in the Amazon Simple Storage Service Developer Guide.

To get the status of object restoration, you can send a HEAD request. Operations return the x-amz-restore header, which provides information about the restoration status, in the response. You can use Amazon S3 event notifications to notify you when a restore is initiated or completed. For more information, see Configuring Amazon S3 Event Notifications in the Amazon Simple Storage Service Developer Guide.

After restoring an archived object, you can update the restoration period by reissuing the request with a new period. Amazon S3 updates the restoration period relative to the current time and charges only for the request-there are no data transfer charges. You cannot update the restoration period when Amazon S3 is actively processing your current restore request for the object.

If your bucket has a lifecycle configuration with a rule that includes an expiration action, the object expiration overrides the life span that you specify in a restore request. For example, if you restore an object copy for 10 days, but the object is scheduled to expire in 3 days, Amazon S3 deletes the object in 3 days. For more information about lifecycle configuration, see PutBucketLifecycleConfiguration and Object Lifecycle Management in Amazon Simple Storage Service Developer Guide.

Responses

A successful operation returns either the 200 OK or 202 Accepted status code.

Special Errors

Related Resources

", + "RestoreObject": "

Restores an archived copy of an object back into Amazon S3

This action is not supported by Amazon S3 on Outposts.

This action performs the following types of requests:

To use this operation, you must have permissions to perform the s3:RestoreObject action. The bucket owner has this permission by default and can grant this permission to others. For more information about permissions, see Permissions Related to Bucket Subresource Operations and Managing Access Permissions to Your Amazon S3 Resources in the Amazon Simple Storage Service Developer Guide.

Querying Archives with Select Requests

You use a select type of request to perform SQL queries on archived objects. The archived objects that are being queried by the select request must be formatted as uncompressed comma-separated values (CSV) files. You can run queries and custom analytics on your archived data without having to restore your data to a hotter Amazon S3 tier. For an overview about select requests, see Querying Archived Objects in the Amazon Simple Storage Service Developer Guide.

When making a select request, do the following:

For more information about using SQL with S3 Glacier Select restore, see SQL Reference for Amazon S3 Select and S3 Glacier Select in the Amazon Simple Storage Service Developer Guide.

When making a select request, you can also do the following:

The following are additional important facts about the select feature:

Restoring objects

Objects that you archive to the S3 Glacier or S3 Glacier Deep Archive storage class, and S3 Intelligent-Tiering Archive or S3 Intelligent-Tiering Deep Archive tiers are not accessible in real time. For objects in Archive Access or Deep Archive Access tiers you must first initiate a restore request, and then wait until the object is moved into the Frequent Access tier. For objects in S3 Glacier or S3 Glacier Deep Archive storage classes you must first initiate a restore request, and then wait until a temporary copy of the object is available. To access an archived object, you must restore the object for the duration (number of days) that you specify.

To restore a specific object version, you can provide a version ID. If you don't provide a version ID, Amazon S3 restores the current version.

When restoring an archived object (or using a select request), you can specify one of the following data access tier options in the Tier element of the request body:

For more information about archive retrieval options and provisioned capacity for Expedited data access, see Restoring Archived Objects in the Amazon Simple Storage Service Developer Guide.

You can use Amazon S3 restore speed upgrade to change the restore speed to a faster speed while it is in progress. For more information, see Upgrading the speed of an in-progress restore in the Amazon Simple Storage Service Developer Guide.

To get the status of object restoration, you can send a HEAD request. Operations return the x-amz-restore header, which provides information about the restoration status, in the response. You can use Amazon S3 event notifications to notify you when a restore is initiated or completed. For more information, see Configuring Amazon S3 Event Notifications in the Amazon Simple Storage Service Developer Guide.

After restoring an archived object, you can update the restoration period by reissuing the request with a new period. Amazon S3 updates the restoration period relative to the current time and charges only for the request-there are no data transfer charges. You cannot update the restoration period when Amazon S3 is actively processing your current restore request for the object.

If your bucket has a lifecycle configuration with a rule that includes an expiration action, the object expiration overrides the life span that you specify in a restore request. For example, if you restore an object copy for 10 days, but the object is scheduled to expire in 3 days, Amazon S3 deletes the object in 3 days. For more information about lifecycle configuration, see PutBucketLifecycleConfiguration and Object Lifecycle Management in Amazon Simple Storage Service Developer Guide.

Responses

A successful operation returns either the 200 OK or 202 Accepted status code.

Special Errors

Related Resources

", "SelectObjectContent": "

This operation filters the contents of an Amazon S3 object based on a simple structured query language (SQL) statement. In the request, along with the SQL expression, you must also specify a data serialization format (JSON, CSV, or Apache Parquet) of the object. Amazon S3 uses this format to parse object data into records, and returns only records that match the specified SQL expression. You must also specify the data serialization format for the response.

This action is not supported by Amazon S3 on Outposts.

For more information about Amazon S3 Select, see Selecting Content from Objects in the Amazon Simple Storage Service Developer Guide.

For more information about using SQL with Amazon S3 Select, see SQL Reference for Amazon S3 Select and S3 Glacier Select in the Amazon Simple Storage Service Developer Guide.

Permissions

You must have s3:GetObject permission for this operation. Amazon S3 Select does not support anonymous access. For more information about permissions, see Specifying Permissions in a Policy in the Amazon Simple Storage Service Developer Guide.

Object Data Formats

You can use Amazon S3 Select to query objects that have the following format properties:

Working with the Response Body

Given the response size is unknown, Amazon S3 Select streams the response as a series of messages and includes a Transfer-Encoding header with chunked as its value in the response. For more information, see Appendix: SelectObjectContent Response .

GetObject Support

The SelectObjectContent operation does not support the following GetObject functionality. For more information, see GetObject.

Special Errors

For a list of special errors for this operation, see List of SELECT Object Content Error Codes

Related Resources

", "UploadPart": "

Uploads a part in a multipart upload.

In this operation, you provide part data in your request. However, you have an option to specify your existing Amazon S3 object as a data source for the part you are uploading. To upload a part from an existing object, you use the UploadPartCopy operation.

You must initiate a multipart upload (see CreateMultipartUpload) before you can upload any part. In response to your initiate request, Amazon S3 returns an upload ID, a unique identifier, that you must include in your upload part request.

Part numbers can be any number from 1 to 10,000, inclusive. A part number uniquely identifies a part and also defines its position within the object being created. If you upload a new part using the same part number that was used with a previous part, the previously uploaded part is overwritten. Each part must be at least 5 MB in size, except the last part. There is no size limit on the last part of your multipart upload.

To ensure that data is not corrupted when traversing the network, specify the Content-MD5 header in the upload part request. Amazon S3 checks the part data against the provided MD5 value. If they do not match, Amazon S3 returns an error.

If the upload request is signed with Signature Version 4, then AWS S3 uses the x-amz-content-sha256 header as a checksum instead of Content-MD5. For more information see Authenticating Requests: Using the Authorization Header (AWS Signature Version 4).

Note: After you initiate multipart upload and upload one or more parts, you must either complete or abort multipart upload in order to stop getting charged for storage of the uploaded parts. Only after you either complete or abort multipart upload, Amazon S3 frees up the parts storage and stops charging you for the parts storage.

For more information on multipart uploads, go to Multipart Upload Overview in the Amazon Simple Storage Service Developer Guide .

For information on the permissions required to use the multipart upload API, go to Multipart Upload API and Permissions in the Amazon Simple Storage Service Developer Guide.

You can optionally request server-side encryption where Amazon S3 encrypts your data as it writes it to disks in its data centers and decrypts it for you when you access it. You have the option of providing your own encryption key, or you can use the AWS managed encryption keys. If you choose to provide your own encryption key, the request headers you provide in the request must match the headers you used in the request to initiate the upload by using CreateMultipartUpload. For more information, go to Using Server-Side Encryption in the Amazon Simple Storage Service Developer Guide.

Server-side encryption is supported by the S3 Multipart Upload actions. Unless you are using a customer-provided encryption key, you don't need to specify the encryption parameters in each UploadPart request. Instead, you only need to specify the server-side encryption parameters in the initial Initiate Multipart request. For more information, see CreateMultipartUpload.

If you requested server-side encryption using a customer-provided encryption key in your initiate multipart upload request, you must provide identical encryption information in each part upload using the following headers.

Special Errors

Related Resources

", "UploadPartCopy": "

Uploads a part by copying data from an existing object as data source. You specify the data source by adding the request header x-amz-copy-source in your request and a byte range by adding the request header x-amz-copy-source-range in your request.

The minimum allowable part size for a multipart upload is 5 MB. For more information about multipart upload limits, go to Quick Facts in the Amazon Simple Storage Service Developer Guide.

Instead of using an existing object as part data, you might use the UploadPart operation and provide data in your request.

You must initiate a multipart upload before you can upload any part. In response to your initiate request. Amazon S3 returns a unique identifier, the upload ID, that you must include in your upload part request.

For more information about using the UploadPartCopy operation, see the following:

Note the following additional considerations about the request headers x-amz-copy-source-if-match, x-amz-copy-source-if-none-match, x-amz-copy-source-if-unmodified-since, and x-amz-copy-source-if-modified-since:

Versioning

If your bucket has versioning enabled, you could have multiple versions of the same object. By default, x-amz-copy-source identifies the current version of the object to copy. If the current version is a delete marker and you don't specify a versionId in the x-amz-copy-source, Amazon S3 returns a 404 error, because the object does not exist. If you specify versionId in the x-amz-copy-source and the versionId is a delete marker, Amazon S3 returns an HTTP 400 error, because you are not allowed to specify a delete marker as a version for the x-amz-copy-source.

You can optionally specify a specific version of the source object to copy by adding the versionId subresource as shown in the following example:

x-amz-copy-source: /bucket/object?versionId=version id

Special Errors

Related Resources

" @@ -746,26 +746,26 @@ "ContentMD5": { "base": null, "refs": { - "PutBucketAclRequest$ContentMD5": "

The base64-encoded 128-bit MD5 digest of the data. This header must be used as a message integrity check to verify that the request body was not corrupted in transit. For more information, go to RFC 1864.

", - "PutBucketCorsRequest$ContentMD5": "

The base64-encoded 128-bit MD5 digest of the data. This header must be used as a message integrity check to verify that the request body was not corrupted in transit. For more information, go to RFC 1864.

", - "PutBucketEncryptionRequest$ContentMD5": "

The base64-encoded 128-bit MD5 digest of the server-side encryption configuration. This parameter is auto-populated when using the command from the CLI.

", - "PutBucketLifecycleRequest$ContentMD5": "

", - "PutBucketLoggingRequest$ContentMD5": "

The MD5 hash of the PutBucketLogging request body.

", - "PutBucketNotificationRequest$ContentMD5": "

The MD5 hash of the PutPublicAccessBlock request body.

", - "PutBucketOwnershipControlsRequest$ContentMD5": "

The MD5 hash of the OwnershipControls request body.

", - "PutBucketPolicyRequest$ContentMD5": "

The MD5 hash of the request body.

", - "PutBucketReplicationRequest$ContentMD5": "

The base64-encoded 128-bit MD5 digest of the data. You must use this header as a message integrity check to verify that the request body was not corrupted in transit. For more information, see RFC 1864.

", - "PutBucketRequestPaymentRequest$ContentMD5": "

>The base64-encoded 128-bit MD5 digest of the data. You must use this header as a message integrity check to verify that the request body was not corrupted in transit. For more information, see RFC 1864.

", - "PutBucketTaggingRequest$ContentMD5": "

The base64-encoded 128-bit MD5 digest of the data. You must use this header as a message integrity check to verify that the request body was not corrupted in transit. For more information, see RFC 1864.

", - "PutBucketVersioningRequest$ContentMD5": "

>The base64-encoded 128-bit MD5 digest of the data. You must use this header as a message integrity check to verify that the request body was not corrupted in transit. For more information, see RFC 1864.

", - "PutBucketWebsiteRequest$ContentMD5": "

The base64-encoded 128-bit MD5 digest of the data. You must use this header as a message integrity check to verify that the request body was not corrupted in transit. For more information, see RFC 1864.

", - "PutObjectAclRequest$ContentMD5": "

The base64-encoded 128-bit MD5 digest of the data. This header must be used as a message integrity check to verify that the request body was not corrupted in transit. For more information, go to RFC 1864.>

", - "PutObjectLegalHoldRequest$ContentMD5": "

The MD5 hash for the request body.

", - "PutObjectLockConfigurationRequest$ContentMD5": "

The MD5 hash for the request body.

", + "PutBucketAclRequest$ContentMD5": "

The base64-encoded 128-bit MD5 digest of the data. This header must be used as a message integrity check to verify that the request body was not corrupted in transit. For more information, go to RFC 1864.

For requests made using the AWS Command Line Interface (CLI) or AWS SDKs, this field is calculated automatically.

", + "PutBucketCorsRequest$ContentMD5": "

The base64-encoded 128-bit MD5 digest of the data. This header must be used as a message integrity check to verify that the request body was not corrupted in transit. For more information, go to RFC 1864.

For requests made using the AWS Command Line Interface (CLI) or AWS SDKs, this field is calculated automatically.

", + "PutBucketEncryptionRequest$ContentMD5": "

The base64-encoded 128-bit MD5 digest of the server-side encryption configuration.

For requests made using the AWS Command Line Interface (CLI) or AWS SDKs, this field is calculated automatically.

", + "PutBucketLifecycleRequest$ContentMD5": "

For requests made using the AWS Command Line Interface (CLI) or AWS SDKs, this field is calculated automatically.

", + "PutBucketLoggingRequest$ContentMD5": "

The MD5 hash of the PutBucketLogging request body.

For requests made using the AWS Command Line Interface (CLI) or AWS SDKs, this field is calculated automatically.

", + "PutBucketNotificationRequest$ContentMD5": "

The MD5 hash of the PutPublicAccessBlock request body.

For requests made using the AWS Command Line Interface (CLI) or AWS SDKs, this field is calculated automatically.

", + "PutBucketOwnershipControlsRequest$ContentMD5": "

The MD5 hash of the OwnershipControls request body.

For requests made using the AWS Command Line Interface (CLI) or AWS SDKs, this field is calculated automatically.

", + "PutBucketPolicyRequest$ContentMD5": "

The MD5 hash of the request body.

For requests made using the AWS Command Line Interface (CLI) or AWS SDKs, this field is calculated automatically.

", + "PutBucketReplicationRequest$ContentMD5": "

The base64-encoded 128-bit MD5 digest of the data. You must use this header as a message integrity check to verify that the request body was not corrupted in transit. For more information, see RFC 1864.

For requests made using the AWS Command Line Interface (CLI) or AWS SDKs, this field is calculated automatically.

", + "PutBucketRequestPaymentRequest$ContentMD5": "

>The base64-encoded 128-bit MD5 digest of the data. You must use this header as a message integrity check to verify that the request body was not corrupted in transit. For more information, see RFC 1864.

For requests made using the AWS Command Line Interface (CLI) or AWS SDKs, this field is calculated automatically.

", + "PutBucketTaggingRequest$ContentMD5": "

The base64-encoded 128-bit MD5 digest of the data. You must use this header as a message integrity check to verify that the request body was not corrupted in transit. For more information, see RFC 1864.

For requests made using the AWS Command Line Interface (CLI) or AWS SDKs, this field is calculated automatically.

", + "PutBucketVersioningRequest$ContentMD5": "

>The base64-encoded 128-bit MD5 digest of the data. You must use this header as a message integrity check to verify that the request body was not corrupted in transit. For more information, see RFC 1864.

For requests made using the AWS Command Line Interface (CLI) or AWS SDKs, this field is calculated automatically.

", + "PutBucketWebsiteRequest$ContentMD5": "

The base64-encoded 128-bit MD5 digest of the data. You must use this header as a message integrity check to verify that the request body was not corrupted in transit. For more information, see RFC 1864.

For requests made using the AWS Command Line Interface (CLI) or AWS SDKs, this field is calculated automatically.

", + "PutObjectAclRequest$ContentMD5": "

The base64-encoded 128-bit MD5 digest of the data. This header must be used as a message integrity check to verify that the request body was not corrupted in transit. For more information, go to RFC 1864.>

For requests made using the AWS Command Line Interface (CLI) or AWS SDKs, this field is calculated automatically.

", + "PutObjectLegalHoldRequest$ContentMD5": "

The MD5 hash for the request body.

For requests made using the AWS Command Line Interface (CLI) or AWS SDKs, this field is calculated automatically.

", + "PutObjectLockConfigurationRequest$ContentMD5": "

The MD5 hash for the request body.

For requests made using the AWS Command Line Interface (CLI) or AWS SDKs, this field is calculated automatically.

", "PutObjectRequest$ContentMD5": "

The base64-encoded 128-bit MD5 digest of the message (without the headers) according to RFC 1864. This header can be used as a message integrity check to verify that the data is the same data that was originally sent. Although it is optional, we recommend using the Content-MD5 mechanism as an end-to-end integrity check. For more information about REST request authentication, see REST Authentication.

", - "PutObjectRetentionRequest$ContentMD5": "

The MD5 hash for the request body.

", - "PutObjectTaggingRequest$ContentMD5": "

The MD5 hash for the request body.

", - "PutPublicAccessBlockRequest$ContentMD5": "

The MD5 hash of the PutPublicAccessBlock request body.

", + "PutObjectRetentionRequest$ContentMD5": "

The MD5 hash for the request body.

For requests made using the AWS Command Line Interface (CLI) or AWS SDKs, this field is calculated automatically.

", + "PutObjectTaggingRequest$ContentMD5": "

The MD5 hash for the request body.

For requests made using the AWS Command Line Interface (CLI) or AWS SDKs, this field is calculated automatically.

", + "PutPublicAccessBlockRequest$ContentMD5": "

The MD5 hash of the PutPublicAccessBlock request body.

For requests made using the AWS Command Line Interface (CLI) or AWS SDKs, this field is calculated automatically.

", "UploadPartRequest$ContentMD5": "

The base64-encoded 128-bit MD5 digest of the part data. This parameter is auto-populated when using the command from the CLI. This parameter is required if object lock parameters are specified.

" } }, @@ -1848,7 +1848,7 @@ "IntelligentTieringDays": { "base": null, "refs": { - "Tiering$Days": "

The number of days that you want your archived data to be accessible. The minimum number of days specified in the restore request must be at least 90 days. If a smaller value is specifed it will be ignored.

" + "Tiering$Days": "

The number of consecutive days of no access after which an object will be eligible to be transitioned to the corresponding tier. The minimum number of days specified for Archive Access tier must be at least 90 days and Deep Archive Access tier must be at least 180 days. The maximum can be up to 2 years (730 days).

" } }, "IntelligentTieringFilter": { diff --git a/models/apis/s3/2006-03-01/examples-1.json b/models/apis/s3/2006-03-01/examples-1.json index 85043f6646a..75e8ce7c972 100644 --- a/models/apis/s3/2006-03-01/examples-1.json +++ b/models/apis/s3/2006-03-01/examples-1.json @@ -84,13 +84,10 @@ "CreateBucket": [ { "input": { - "Bucket": "examplebucket", - "CreateBucketConfiguration": { - "LocationConstraint": "eu-west-1" - } + "Bucket": "examplebucket" }, "output": { - "Location": "http://examplebucket..s3.amazonaws.com/" + "Location": "/examplebucket" }, "comments": { "input": { @@ -98,16 +95,19 @@ "output": { } }, - "description": "The following example creates a bucket. The request specifies an AWS region where to create the bucket.", - "id": "to-create-a-bucket-in-a-specific-region-1483399072992", - "title": "To create a bucket in a specific region" + "description": "The following example creates a bucket.", + "id": "to-create-a-bucket--1472851826060", + "title": "To create a bucket " }, { "input": { - "Bucket": "examplebucket" + "Bucket": "examplebucket", + "CreateBucketConfiguration": { + "LocationConstraint": "eu-west-1" + } }, "output": { - "Location": "/examplebucket" + "Location": "http://examplebucket..s3.amazonaws.com/" }, "comments": { "input": { @@ -115,9 +115,9 @@ "output": { } }, - "description": "The following example creates a bucket.", - "id": "to-create-a-bucket--1472851826060", - "title": "To create a bucket " + "description": "The following example creates a bucket. The request specifies an AWS region where to create the bucket.", + "id": "to-create-a-bucket-in-a-specific-region-1483399072992", + "title": "To create a bucket in a specific region" } ], "CreateMultipartUpload": [ @@ -292,10 +292,11 @@ { "input": { "Bucket": "examplebucket", - "Key": "HappyFace.jpg" + "Key": "HappyFace.jpg", + "VersionId": "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI" }, "output": { - "VersionId": "null" + "VersionId": "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI" }, "comments": { "input": { @@ -303,18 +304,17 @@ "output": { } }, - "description": "The following example removes tag set associated with the specified object. If the bucket is versioning enabled, the operation removes tag set from the latest object version.", - "id": "to-remove-tag-set-from-an-object-1483145342862", - "title": "To remove tag set from an object" + "description": "The following example removes tag set associated with the specified object version. The request specifies both the object key and object version.", + "id": "to-remove-tag-set-from-an-object-version-1483145285913", + "title": "To remove tag set from an object version" }, { "input": { "Bucket": "examplebucket", - "Key": "HappyFace.jpg", - "VersionId": "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI" + "Key": "HappyFace.jpg" }, "output": { - "VersionId": "ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI" + "VersionId": "null" }, "comments": { "input": { @@ -322,9 +322,9 @@ "output": { } }, - "description": "The following example removes tag set associated with the specified object version. The request specifies both the object key and object version.", - "id": "to-remove-tag-set-from-an-object-version-1483145285913", - "title": "To remove tag set from an object version" + "description": "The following example removes tag set associated with the specified object. If the bucket is versioning enabled, the operation removes tag set from the latest object version.", + "id": "to-remove-tag-set-from-an-object-1483145342862", + "title": "To remove tag set from an object" } ], "DeleteObjects": [ @@ -334,10 +334,12 @@ "Delete": { "Objects": [ { - "Key": "objectkey1" + "Key": "HappyFace.jpg", + "VersionId": "2LWg7lQLnY41.maGB5Z6SWW.dcq0vx7b" }, { - "Key": "objectkey2" + "Key": "HappyFace.jpg", + "VersionId": "yoz3HB.ZhCS_tKVEmIOr7qYyyAaZSKVd" } ], "Quiet": false @@ -346,14 +348,12 @@ "output": { "Deleted": [ { - "DeleteMarker": "true", - "DeleteMarkerVersionId": "A._w1z6EFiCF5uhtQMDal9JDkID9tQ7F", - "Key": "objectkey1" + "Key": "HappyFace.jpg", + "VersionId": "yoz3HB.ZhCS_tKVEmIOr7qYyyAaZSKVd" }, { - "DeleteMarker": "true", - "DeleteMarkerVersionId": "iOd_ORxhkKe_e8G8_oSGxt2PjsCZKlkt", - "Key": "objectkey2" + "Key": "HappyFace.jpg", + "VersionId": "2LWg7lQLnY41.maGB5Z6SWW.dcq0vx7b" } ] }, @@ -363,9 +363,9 @@ "output": { } }, - "description": "The following example deletes objects from a bucket. The bucket is versioned, and the request does not specify the object version to delete. In this case, all versions remain in the bucket and S3 adds a delete marker.", - "id": "to-delete-multiple-objects-from-a-versioned-bucket-1483146248805", - "title": "To delete multiple objects from a versioned bucket" + "description": "The following example deletes objects from a bucket. The request specifies object versions. S3 deletes specific object versions and returns the key and versions of deleted objects in the response.", + "id": "to-delete-multiple-object-versions-from-a-versioned-bucket-1483147087737", + "title": "To delete multiple object versions from a versioned bucket" }, { "input": { @@ -373,12 +373,10 @@ "Delete": { "Objects": [ { - "Key": "HappyFace.jpg", - "VersionId": "2LWg7lQLnY41.maGB5Z6SWW.dcq0vx7b" + "Key": "objectkey1" }, { - "Key": "HappyFace.jpg", - "VersionId": "yoz3HB.ZhCS_tKVEmIOr7qYyyAaZSKVd" + "Key": "objectkey2" } ], "Quiet": false @@ -387,12 +385,14 @@ "output": { "Deleted": [ { - "Key": "HappyFace.jpg", - "VersionId": "yoz3HB.ZhCS_tKVEmIOr7qYyyAaZSKVd" + "DeleteMarker": "true", + "DeleteMarkerVersionId": "A._w1z6EFiCF5uhtQMDal9JDkID9tQ7F", + "Key": "objectkey1" }, { - "Key": "HappyFace.jpg", - "VersionId": "2LWg7lQLnY41.maGB5Z6SWW.dcq0vx7b" + "DeleteMarker": "true", + "DeleteMarkerVersionId": "iOd_ORxhkKe_e8G8_oSGxt2PjsCZKlkt", + "Key": "objectkey2" } ] }, @@ -402,9 +402,9 @@ "output": { } }, - "description": "The following example deletes objects from a bucket. The request specifies object versions. S3 deletes specific object versions and returns the key and versions of deleted objects in the response.", - "id": "to-delete-multiple-object-versions-from-a-versioned-bucket-1483147087737", - "title": "To delete multiple object versions from a versioned bucket" + "description": "The following example deletes objects from a bucket. The bucket is versioned, and the request does not specify the object version to delete. In this case, all versions remain in the bucket and S3 adds a delete marker.", + "id": "to-delete-multiple-objects-from-a-versioned-bucket-1483146248805", + "title": "To delete multiple objects from a versioned bucket" } ], "GetBucketCors": [ @@ -1567,37 +1567,14 @@ "PutObject": [ { "input": { + "ACL": "authenticated-read", "Body": "filetoupload", "Bucket": "examplebucket", - "Key": "exampleobject", - "Metadata": { - "metadata1": "value1", - "metadata2": "value2" - } - }, - "output": { - "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"", - "VersionId": "pSKidl4pHBiNwukdbcPXAIs.sshFFOc0" - }, - "comments": { - "input": { - }, - "output": { - } - }, - "description": "The following example creates an object. The request also specifies optional metadata. If the bucket is versioning enabled, S3 returns version ID in response.", - "id": "to-upload-object-and-specify-user-defined-metadata-1483396974757", - "title": "To upload object and specify user-defined metadata" - }, - { - "input": { - "Body": "filetoupload", - "Bucket": "examplebucket", - "Key": "objectkey" + "Key": "exampleobject" }, "output": { "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"", - "VersionId": "Bvq0EDKxOcXLJXNo_Lkz37eM3R4pfzyQ" + "VersionId": "Kirh.unyZwjQ69YxcQLA8z4F5j3kJJKr" }, "comments": { "input": { @@ -1605,9 +1582,9 @@ "output": { } }, - "description": "The following example creates an object. If the bucket is versioning enabled, S3 returns version ID in response.", - "id": "to-create-an-object-1483147613675", - "title": "To create an object." + "description": "The following example uploads and object. The request specifies optional canned ACL (access control list) to all READ access to authenticated users. If the bucket is versioning enabled, S3 returns version ID in response.", + "id": "to-upload-an-object-and-specify-canned-acl-1483397779571", + "title": "To upload an object and specify canned ACL." }, { "input": { @@ -1655,14 +1632,13 @@ }, { "input": { - "ACL": "authenticated-read", "Body": "filetoupload", "Bucket": "examplebucket", - "Key": "exampleobject" + "Key": "objectkey" }, "output": { "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"", - "VersionId": "Kirh.unyZwjQ69YxcQLA8z4F5j3kJJKr" + "VersionId": "Bvq0EDKxOcXLJXNo_Lkz37eM3R4pfzyQ" }, "comments": { "input": { @@ -1670,22 +1646,23 @@ "output": { } }, - "description": "The following example uploads and object. The request specifies optional canned ACL (access control list) to all READ access to authenticated users. If the bucket is versioning enabled, S3 returns version ID in response.", - "id": "to-upload-an-object-and-specify-canned-acl-1483397779571", - "title": "To upload an object and specify canned ACL." + "description": "The following example creates an object. If the bucket is versioning enabled, S3 returns version ID in response.", + "id": "to-create-an-object-1483147613675", + "title": "To create an object." }, { "input": { - "Body": "HappyFace.jpg", + "Body": "filetoupload", "Bucket": "examplebucket", - "Key": "HappyFace.jpg", - "ServerSideEncryption": "AES256", - "StorageClass": "STANDARD_IA" + "Key": "exampleobject", + "Metadata": { + "metadata1": "value1", + "metadata2": "value2" + } }, "output": { "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"", - "ServerSideEncryption": "AES256", - "VersionId": "CG612hodqujkf8FaaNfp8U..FIhLROcp" + "VersionId": "pSKidl4pHBiNwukdbcPXAIs.sshFFOc0" }, "comments": { "input": { @@ -1693,9 +1670,9 @@ "output": { } }, - "description": "The following example uploads an object. The request specifies optional request headers to directs S3 to use specific storage class and use server-side encryption.", - "id": "to-upload-an-object-(specify-optional-headers)", - "title": "To upload an object (specify optional headers)" + "description": "The following example creates an object. The request also specifies optional metadata. If the bucket is versioning enabled, S3 returns version ID in response.", + "id": "to-upload-object-and-specify-user-defined-metadata-1483396974757", + "title": "To upload object and specify user-defined metadata" }, { "input": { @@ -1716,6 +1693,29 @@ "description": "The following example uploads an object to a versioning-enabled bucket. The source file is specified using Windows file syntax. S3 returns VersionId of the newly created object.", "id": "to-upload-an-object-1481760101010", "title": "To upload an object" + }, + { + "input": { + "Body": "HappyFace.jpg", + "Bucket": "examplebucket", + "Key": "HappyFace.jpg", + "ServerSideEncryption": "AES256", + "StorageClass": "STANDARD_IA" + }, + "output": { + "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"", + "ServerSideEncryption": "AES256", + "VersionId": "CG612hodqujkf8FaaNfp8U..FIhLROcp" + }, + "comments": { + "input": { + }, + "output": { + } + }, + "description": "The following example uploads an object. The request specifies optional request headers to directs S3 to use specific storage class and use server-side encryption.", + "id": "to-upload-an-object-(specify-optional-headers)", + "title": "To upload an object (specify optional headers)" } ], "PutObjectAcl": [ @@ -1826,14 +1826,15 @@ "input": { "Bucket": "examplebucket", "CopySource": "/bucketname/sourceobjectkey", + "CopySourceRange": "bytes=1-100000", "Key": "examplelargeobject", - "PartNumber": "1", + "PartNumber": "2", "UploadId": "exampleuoh_10OhKhT7YukE9bjzTPRiuaCotmZM_pFngJFir9OZNrSr5cWa3cq3LZSUsfjI4FI7PkP91We7Nrw--" }, "output": { "CopyPartResult": { - "ETag": "\"b0c6f0e7e054ab8fa2536a2677f8734d\"", - "LastModified": "2016-12-29T21:24:43.000Z" + "ETag": "\"65d16d19e65a7508a51f043180edcc36\"", + "LastModified": "2016-12-29T21:44:28.000Z" } }, "comments": { @@ -1842,23 +1843,22 @@ "output": { } }, - "description": "The following example uploads a part of a multipart upload by copying data from an existing object as data source.", - "id": "to-upload-a-part-by-copying-data-from-an-existing-object-as-data-source-1483046746348", - "title": "To upload a part by copying data from an existing object as data source" + "description": "The following example uploads a part of a multipart upload by copying a specified byte range from an existing object as data source.", + "id": "to-upload-a-part-by-copying-byte-range-from-an-existing-object-as-data-source-1483048068594", + "title": "To upload a part by copying byte range from an existing object as data source" }, { "input": { "Bucket": "examplebucket", "CopySource": "/bucketname/sourceobjectkey", - "CopySourceRange": "bytes=1-100000", "Key": "examplelargeobject", - "PartNumber": "2", + "PartNumber": "1", "UploadId": "exampleuoh_10OhKhT7YukE9bjzTPRiuaCotmZM_pFngJFir9OZNrSr5cWa3cq3LZSUsfjI4FI7PkP91We7Nrw--" }, "output": { "CopyPartResult": { - "ETag": "\"65d16d19e65a7508a51f043180edcc36\"", - "LastModified": "2016-12-29T21:44:28.000Z" + "ETag": "\"b0c6f0e7e054ab8fa2536a2677f8734d\"", + "LastModified": "2016-12-29T21:24:43.000Z" } }, "comments": { @@ -1867,9 +1867,9 @@ "output": { } }, - "description": "The following example uploads a part of a multipart upload by copying a specified byte range from an existing object as data source.", - "id": "to-upload-a-part-by-copying-byte-range-from-an-existing-object-as-data-source-1483048068594", - "title": "To upload a part by copying byte range from an existing object as data source" + "description": "The following example uploads a part of a multipart upload by copying data from an existing object as data source.", + "id": "to-upload-a-part-by-copying-data-from-an-existing-object-as-data-source-1483046746348", + "title": "To upload a part by copying data from an existing object as data source" } ] } diff --git a/models/apis/servicecatalog-appregistry/2020-06-24/api-2.json b/models/apis/servicecatalog-appregistry/2020-06-24/api-2.json index 6dd86438867..3aab848a603 100644 --- a/models/apis/servicecatalog-appregistry/2020-06-24/api-2.json +++ b/models/apis/servicecatalog-appregistry/2020-06-24/api-2.json @@ -10,7 +10,7 @@ "serviceId":"Service Catalog AppRegistry", "signatureVersion":"v4", "signingName":"servicecatalog", - "uid":"AWS242AppRegistry" + "uid":"AWS242AppRegistry-2020-06-24" }, "operations":{ "AssociateAttributeGroup":{ diff --git a/models/apis/servicecatalog-appregistry/2020-06-24/docs-2.json b/models/apis/servicecatalog-appregistry/2020-06-24/docs-2.json index db31670855d..99b524c91a0 100644 --- a/models/apis/servicecatalog-appregistry/2020-06-24/docs-2.json +++ b/models/apis/servicecatalog-appregistry/2020-06-24/docs-2.json @@ -2,16 +2,16 @@ "version": "2.0", "service": "

AWS Service Catalog AppRegistry enables organizations to understand the application context of their AWS resources. AppRegistry provides a repository of your applications, their resources, and the application metadata that you use within your enterprise.

", "operations": { - "AssociateAttributeGroup": "

Associates an attribute group with an application to augment the application's metadata with the group's attributes. This way applications can be described with user-defined details which are machine-readable (e.g. for third-party integrations).

", + "AssociateAttributeGroup": "

Associates an attribute group with an application to augment the application's metadata with the group's attributes. This feature enables applications to be described with user-defined details that are machine-readable, such as third-party integrations.

", "AssociateResource": "

Associates a resource with an application. Both the resource and the application can be specified either by ID or name.

", "CreateApplication": "

Creates a new application that is the top-level node in a hierarchy of related cloud resource abstractions.

", - "CreateAttributeGroup": "

Creates a new attribute group as a container for user-defined attributes. This approach enables users to have full control over their cloud application's metadata in a rich machine-readable format to facilitate integration with automated workflows and third-party tools.

", - "DeleteApplication": "

Delete an application, specified either by its application ID or name.

", + "CreateAttributeGroup": "

Creates a new attribute group as a container for user-defined attributes. This feature enables users to have full control over their cloud application's metadata in a rich machine-readable format to facilitate integration with automated workflows and third-party tools.

", + "DeleteApplication": "

Deletes an application that is specified either by its application ID or name. All associated attribute groups and resources must be disassociated from it before deleting an application.

", "DeleteAttributeGroup": "

Deletes an attribute group, specified either by its attribute group ID or name.

", - "DisassociateAttributeGroup": "

Disassociates an attribute group from an application to remove the extra attributes contained in the attribute group from the application's metadata. This operation reverts AssociateAttributeGroup.

", + "DisassociateAttributeGroup": "

Disassociates an attribute group from an application to remove the extra attributes contained in the attribute group from the application's metadata. This operation reverts AssociateAttributeGroup.

", "DisassociateResource": "

Disassociates a resource from application. Both the resource and the application can be specified either by ID or name.

", - "GetApplication": "

Retrieves metadata information about one of your applications. The application can be specified either by its unique ID or by its name (which is unique within one account in one region at a given point in time). Specify by ID in automated workflows if you want to make sure that the exact same application is returned or a ResourceNotFoundException is thrown, avoiding the ABA addressing problem.

", - "GetAttributeGroup": "

Retrieves an attribute group, either by its name or its ID.

", + "GetApplication": "

Retrieves metadata information about one of your applications. The application can be specified either by its unique ID or by its name (which is unique within one account in one region at a given point in time). Specify by ID in automated workflows if you want to make sure that the exact same application is returned or a ResourceNotFoundException is thrown, avoiding the ABA addressing problem.

", + "GetAttributeGroup": "

Retrieves an attribute group, either by its name or its ID. The attribute group can be specified either by its unique ID or by its name.

", "ListApplications": "

Retrieves a list of all of your applications. Results are paginated.

", "ListAssociatedAttributeGroups": "

Lists all attribute groups that are associated with specified application. Results are paginated.

", "ListAssociatedResources": "

Lists all resources that are associated with specified application. Results are paginated.

", @@ -23,8 +23,8 @@ "Application": { "base": "

Represents a Service Catalog AppRegistry application that is the top-level node in a hierarchy of related cloud resource abstractions.

", "refs": { - "CreateApplicationResponse$application": "

The name or ID of the application.

", - "UpdateApplicationResponse$application": "

The name or ID of the application.

" + "CreateApplicationResponse$application": "

Information about the application.

", + "UpdateApplicationResponse$application": "

The updated information of the application.

" } }, "ApplicationArn": { @@ -34,8 +34,8 @@ "ApplicationSummary$arn": "

The Amazon resource name (ARN) that specifies the application across services.

", "AssociateAttributeGroupResponse$applicationArn": "

The Amazon resource name (ARN) of the application that was augmented with attributes.

", "AssociateResourceResponse$applicationArn": "

The Amazon resource name (ARN) of the application that was augmented with attributes.

", - "DisassociateAttributeGroupResponse$applicationArn": "

The Amazon resource name (ARN) of the application that was augmented with attributes.

", - "DisassociateResourceResponse$applicationArn": "

The Amazon resource name (ARN) of the application that was augmented with attributes.

", + "DisassociateAttributeGroupResponse$applicationArn": "

The Amazon resource name (ARN) that specifies the application.

", + "DisassociateResourceResponse$applicationArn": "

The Amazon resource name (ARN) that specifies the application.

", "GetApplicationResponse$arn": "

The Amazon resource name (ARN) that specifies the application across services.

" } }, @@ -58,20 +58,20 @@ "GetApplicationRequest$application": "

The name or ID of the application.

", "ListAssociatedAttributeGroupsRequest$application": "

The name or ID of the application.

", "ListAssociatedResourcesRequest$application": "

The name or ID of the application.

", - "UpdateApplicationRequest$application": "

The name or ID of the application. The name must be unique in the region in which you are updating the attribute group.

" + "UpdateApplicationRequest$application": "

The name or ID of the application that will be updated.

" } }, "ApplicationSummaries": { "base": null, "refs": { - "ListApplicationsResponse$applications": "

The name or ID of the application.

" + "ListApplicationsResponse$applications": "

This list of applications.

" } }, "ApplicationSummary": { "base": "

Summary of a Service Catalog AppRegistry application.

", "refs": { "ApplicationSummaries$member": null, - "DeleteApplicationResponse$application": "

The name or ID of the application.

" + "DeleteApplicationResponse$application": "

Information about the deleted application.

" } }, "Arn": { @@ -110,18 +110,18 @@ "AttributeGroup": { "base": "

Represents a Service Catalog AppRegistry attribute group that is rich metadata which describes an application and its components.

", "refs": { - "CreateAttributeGroupResponse$attributeGroup": "

The name or ID of the attribute group that holds the attributes to describe the application.

", - "UpdateAttributeGroupResponse$attributeGroup": "

The name or ID of the attribute group that holds the attributes to describe the application.

" + "CreateAttributeGroupResponse$attributeGroup": "

Information about the attribute group.

", + "UpdateAttributeGroupResponse$attributeGroup": "

The updated information of the attribute group.

" } }, "AttributeGroupArn": { "base": null, "refs": { "AssociateAttributeGroupResponse$attributeGroupArn": "

The Amazon resource name (ARN) of the attribute group that contains the application's new attributes.

", - "AttributeGroup$arn": "

The Amazon resource name (ARN) that specifies the application across services.

", - "AttributeGroupSummary$arn": "

The Amazon resource name (ARN) that specifies the application across services.

", - "DisassociateAttributeGroupResponse$attributeGroupArn": "

The Amazon resource name (ARN) of the attribute group that contains the application's new attributes.

", - "GetAttributeGroupResponse$arn": "

The Amazon resource name (ARN) that specifies the application across services.

" + "AttributeGroup$arn": "

The Amazon resource name (ARN) that specifies the attribute group across services.

", + "AttributeGroupSummary$arn": "

The Amazon resource name (ARN) that specifies the attribute group across services.

", + "DisassociateAttributeGroupResponse$attributeGroupArn": "

The Amazon resource name (ARN) that specifies the attribute group.

", + "GetAttributeGroupResponse$arn": "

The Amazon resource name (ARN) that specifies the attribute group across services.

" } }, "AttributeGroupId": { @@ -130,7 +130,7 @@ "AttributeGroup$id": "

The globally unique attribute group identifier of the attribute group.

", "AttributeGroupIds$member": null, "AttributeGroupSummary$id": "

The globally unique attribute group identifier of the attribute group.

", - "GetAttributeGroupResponse$id": "

The identifier of the application.

" + "GetAttributeGroupResponse$id": "

The identifier of the attribute group.

" } }, "AttributeGroupIds": { @@ -152,14 +152,14 @@ "AttributeGroupSummaries": { "base": null, "refs": { - "ListAttributeGroupsResponse$attributeGroups": "

A list of attribute group IDs.

" + "ListAttributeGroupsResponse$attributeGroups": "

This list of attribute groups.

" } }, "AttributeGroupSummary": { "base": "

Summary of a Service Catalog AppRegistry attribute group.

", "refs": { "AttributeGroupSummaries$member": null, - "DeleteAttributeGroupResponse$attributeGroup": "

The name or ID of the attribute group that holds the attributes to describe the application.

" + "DeleteAttributeGroupResponse$attributeGroup": "

Information about the deleted attribute group.

" } }, "Attributes": { @@ -173,8 +173,8 @@ "ClientToken": { "base": null, "refs": { - "CreateApplicationRequest$clientToken": "

A unique identifier that you provide to ensure idempotency. If multiple requests differ only by the clientToken, the same response is returned for each repeated request.

", - "CreateAttributeGroupRequest$clientToken": "

A unique identifier that you provide to ensure idempotency. If multiple requests differ only by the clientToken, the same response is returned for each repeated request.

" + "CreateApplicationRequest$clientToken": "

A unique identifier that you provide to ensure idempotency. If you retry a request that completed successfully using the same client token and the same parameters, the retry succeeds without performing any further actions. If you retry a successful request using the same client token, but one or more of the parameters are different, the retry fails.

", + "CreateAttributeGroupRequest$clientToken": "

A unique identifier that you provide to ensure idempotency. If you retry a request that completed successfully using the same client token and the same parameters, the retry succeeds without performing any further actions. If you retry a successful request using the same client token, but one or more of the parameters are different, the retry fails.

" } }, "ConflictException": { @@ -233,7 +233,7 @@ "CreateAttributeGroupRequest$description": "

The description of the attribute group that the user provides.

", "GetApplicationResponse$description": "

The description of the application.

", "GetAttributeGroupResponse$description": "

The description of the attribute group that the user provides.

", - "UpdateApplicationRequest$description": "

The description of the application.

", + "UpdateApplicationRequest$description": "

The new description of the application.

", "UpdateAttributeGroupRequest$description": "

The description of the attribute group that the user provides.

" } }, @@ -342,7 +342,7 @@ "CreateAttributeGroupRequest$name": "

The name of the attribute group.

", "GetApplicationResponse$name": "

The name of the application. The name must be unique in the region in which you are creating the application.

", "GetAttributeGroupResponse$name": "

The name of the attribute group.

", - "UpdateApplicationRequest$name": "

The anme of the application. The name must be unique in the region in which you are creating the application.

", + "UpdateApplicationRequest$name": "

The new name of the application. The name must be unique in the region in which you are updating the application.

", "UpdateAttributeGroupRequest$name": "

The new name of the attribute group. The name must be unique in the region in which you are updating the attribute group.

" } }, @@ -374,21 +374,21 @@ "base": null, "refs": { "AssociateResourceRequest$resource": "

The name or ID of the resource of which the application will be associated.

", - "DisassociateResourceRequest$resource": "

The name or ID of the resource of which the application will be associated.

", + "DisassociateResourceRequest$resource": "

The name or ID of the resource.

", "ResourceInfo$name": "

The name of the resource.

" } }, "ResourceType": { "base": null, "refs": { - "AssociateResourceRequest$resourceType": null, - "DisassociateResourceRequest$resourceType": "

The type of the resource that's being disassociated.

" + "AssociateResourceRequest$resourceType": "

The type of resource of which the application will be associated.

", + "DisassociateResourceRequest$resourceType": "

The type of the resource that is being disassociated.

" } }, "Resources": { "base": null, "refs": { - "ListAssociatedResourcesResponse$resources": "

The name or ID of the resource of which the application will be associated.

" + "ListAssociatedResourcesResponse$resources": "

Information about the resources.

" } }, "ServiceQuotaExceededException": { @@ -399,7 +399,7 @@ "StackArn": { "base": null, "refs": { - "ResourceInfo$arn": "

The Amazon resource name (ARN) that specifies the application across services.

" + "ResourceInfo$arn": "

The Amazon resource name (ARN) that specifies the resource across services.

" } }, "String": { @@ -431,8 +431,8 @@ "AttributeGroup$tags": "

Key-value pairs you can use to associate with the attribute group.

", "CreateApplicationRequest$tags": "

Key-value pairs you can use to associate with the application.

", "CreateAttributeGroupRequest$tags": "

Key-value pairs you can use to associate with the attribute group.

", - "GetApplicationResponse$tags": "

Key-value pairs you can use to associate with the application.

", - "GetAttributeGroupResponse$tags": "

Key-value pairs you can use to associate with the attribute group.

" + "GetApplicationResponse$tags": "

Key-value pairs associated with the application.

", + "GetAttributeGroupResponse$tags": "

Key-value pairs associated with the attribute group.

" } }, "Timestamp": { diff --git a/models/endpoints/endpoints.json b/models/endpoints/endpoints.json index f8a48eeaf49..e695fc726dc 100644 --- a/models/endpoints/endpoints.json +++ b/models/endpoints/endpoints.json @@ -1800,6 +1800,12 @@ }, "hostname" : "rds.eu-west-3.amazonaws.com" }, + "sa-east-1" : { + "credentialScope" : { + "region" : "sa-east-1" + }, + "hostname" : "rds.sa-east-1.amazonaws.com" + }, "us-east-1" : { "credentialScope" : { "region" : "us-east-1" @@ -8017,12 +8023,24 @@ "protocols" : [ "https" ] }, "endpoints" : { + "dataplane-us-gov-east-1" : { + "credentialScope" : { + "region" : "us-gov-east-1" + }, + "hostname" : "greengrass-ats.iot.us-gov-east-1.amazonaws.com" + }, "dataplane-us-gov-west-1" : { "credentialScope" : { "region" : "us-gov-west-1" }, "hostname" : "greengrass-ats.iot.us-gov-west-1.amazonaws.com" }, + "fips-us-gov-east-1" : { + "credentialScope" : { + "region" : "us-gov-east-1" + }, + "hostname" : "greengrass-fips.us-gov-east-1.amazonaws.com" + }, "us-gov-east-1" : { }, "us-gov-west-1" : { "credentialScope" : { @@ -9239,6 +9257,11 @@ "us-isob-east-1" : { } } }, + "codedeploy" : { + "endpoints" : { + "us-isob-east-1" : { } + } + }, "config" : { "endpoints" : { "us-isob-east-1" : { } diff --git a/service/appmesh/api.go b/service/appmesh/api.go index cd703f3e99e..c6f14b508cb 100644 --- a/service/appmesh/api.go +++ b/service/appmesh/api.go @@ -11941,7 +11941,9 @@ type TagRef struct { // The optional part of a key-value pair that make up a tag. A value acts as // a descriptor within a tag category (key). - Value *string `locationName:"value" type:"string"` + // + // Value is a required field + Value *string `locationName:"value" type:"string" required:"true"` } // String returns the string representation @@ -11963,6 +11965,9 @@ func (s *TagRef) Validate() error { if s.Key != nil && len(*s.Key) < 1 { invalidParams.Add(request.NewErrParamMinLen("Key", 1)) } + if s.Value == nil { + invalidParams.Add(request.NewErrParamRequired("Value")) + } if invalidParams.Len() > 0 { return invalidParams diff --git a/service/appregistry/api.go b/service/appregistry/api.go index 5307ee6cbf2..69c223fa319 100644 --- a/service/appregistry/api.go +++ b/service/appregistry/api.go @@ -37,7 +37,7 @@ const opAssociateAttributeGroup = "AssociateAttributeGroup" // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/AWS242AppRegistry/AssociateAttributeGroup +// See also, https://docs.aws.amazon.com/goto/WebAPI/AWS242AppRegistry-2020-06-24/AssociateAttributeGroup func (c *AppRegistry) AssociateAttributeGroupRequest(input *AssociateAttributeGroupInput) (req *request.Request, output *AssociateAttributeGroupOutput) { op := &request.Operation{ Name: opAssociateAttributeGroup, @@ -57,9 +57,9 @@ func (c *AppRegistry) AssociateAttributeGroupRequest(input *AssociateAttributeGr // AssociateAttributeGroup API operation for AWS Service Catalog App Registry. // // Associates an attribute group with an application to augment the application's -// metadata with the group's attributes. This way applications can be described -// with user-defined details which are machine-readable (e.g. for third-party -// integrations). +// metadata with the group's attributes. This feature enables applications to +// be described with user-defined details that are machine-readable, such as +// third-party integrations. // // 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 @@ -81,7 +81,7 @@ func (c *AppRegistry) AssociateAttributeGroupRequest(input *AssociateAttributeGr // * ServiceQuotaExceededException // The maximum number of resources per account has been reached. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/AWS242AppRegistry/AssociateAttributeGroup +// See also, https://docs.aws.amazon.com/goto/WebAPI/AWS242AppRegistry-2020-06-24/AssociateAttributeGroup func (c *AppRegistry) AssociateAttributeGroup(input *AssociateAttributeGroupInput) (*AssociateAttributeGroupOutput, error) { req, out := c.AssociateAttributeGroupRequest(input) return out, req.Send() @@ -128,7 +128,7 @@ const opAssociateResource = "AssociateResource" // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/AWS242AppRegistry/AssociateResource +// See also, https://docs.aws.amazon.com/goto/WebAPI/AWS242AppRegistry-2020-06-24/AssociateResource func (c *AppRegistry) AssociateResourceRequest(input *AssociateResourceInput) (req *request.Request, output *AssociateResourceOutput) { op := &request.Operation{ Name: opAssociateResource, @@ -171,7 +171,7 @@ func (c *AppRegistry) AssociateResourceRequest(input *AssociateResourceInput) (r // There was a conflict when processing the request (for example, a resource // with the given name already exists within the account). // -// See also, https://docs.aws.amazon.com/goto/WebAPI/AWS242AppRegistry/AssociateResource +// See also, https://docs.aws.amazon.com/goto/WebAPI/AWS242AppRegistry-2020-06-24/AssociateResource func (c *AppRegistry) AssociateResource(input *AssociateResourceInput) (*AssociateResourceOutput, error) { req, out := c.AssociateResourceRequest(input) return out, req.Send() @@ -218,7 +218,7 @@ const opCreateApplication = "CreateApplication" // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/AWS242AppRegistry/CreateApplication +// See also, https://docs.aws.amazon.com/goto/WebAPI/AWS242AppRegistry-2020-06-24/CreateApplication func (c *AppRegistry) CreateApplicationRequest(input *CreateApplicationInput) (req *request.Request, output *CreateApplicationOutput) { op := &request.Operation{ Name: opCreateApplication, @@ -258,7 +258,7 @@ func (c *AppRegistry) CreateApplicationRequest(input *CreateApplicationInput) (r // * InternalServerException // The service is experiencing internal problems. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/AWS242AppRegistry/CreateApplication +// See also, https://docs.aws.amazon.com/goto/WebAPI/AWS242AppRegistry-2020-06-24/CreateApplication func (c *AppRegistry) CreateApplication(input *CreateApplicationInput) (*CreateApplicationOutput, error) { req, out := c.CreateApplicationRequest(input) return out, req.Send() @@ -305,7 +305,7 @@ const opCreateAttributeGroup = "CreateAttributeGroup" // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/AWS242AppRegistry/CreateAttributeGroup +// See also, https://docs.aws.amazon.com/goto/WebAPI/AWS242AppRegistry-2020-06-24/CreateAttributeGroup func (c *AppRegistry) CreateAttributeGroupRequest(input *CreateAttributeGroupInput) (req *request.Request, output *CreateAttributeGroupOutput) { op := &request.Operation{ Name: opCreateAttributeGroup, @@ -325,7 +325,7 @@ func (c *AppRegistry) CreateAttributeGroupRequest(input *CreateAttributeGroupInp // CreateAttributeGroup API operation for AWS Service Catalog App Registry. // // Creates a new attribute group as a container for user-defined attributes. -// This approach enables users to have full control over their cloud application's +// This feature enables users to have full control over their cloud application's // metadata in a rich machine-readable format to facilitate integration with // automated workflows and third-party tools. // @@ -350,7 +350,7 @@ func (c *AppRegistry) CreateAttributeGroupRequest(input *CreateAttributeGroupInp // * InternalServerException // The service is experiencing internal problems. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/AWS242AppRegistry/CreateAttributeGroup +// See also, https://docs.aws.amazon.com/goto/WebAPI/AWS242AppRegistry-2020-06-24/CreateAttributeGroup func (c *AppRegistry) CreateAttributeGroup(input *CreateAttributeGroupInput) (*CreateAttributeGroupOutput, error) { req, out := c.CreateAttributeGroupRequest(input) return out, req.Send() @@ -397,7 +397,7 @@ const opDeleteApplication = "DeleteApplication" // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/AWS242AppRegistry/DeleteApplication +// See also, https://docs.aws.amazon.com/goto/WebAPI/AWS242AppRegistry-2020-06-24/DeleteApplication func (c *AppRegistry) DeleteApplicationRequest(input *DeleteApplicationInput) (req *request.Request, output *DeleteApplicationOutput) { op := &request.Operation{ Name: opDeleteApplication, @@ -416,7 +416,9 @@ func (c *AppRegistry) DeleteApplicationRequest(input *DeleteApplicationInput) (r // DeleteApplication API operation for AWS Service Catalog App Registry. // -// Delete an application, specified either by its application ID or name. +// Deletes an application that is specified either by its application ID or +// name. All associated attribute groups and resources must be disassociated +// from it before deleting an application. // // 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 @@ -435,7 +437,7 @@ func (c *AppRegistry) DeleteApplicationRequest(input *DeleteApplicationInput) (r // * InternalServerException // The service is experiencing internal problems. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/AWS242AppRegistry/DeleteApplication +// See also, https://docs.aws.amazon.com/goto/WebAPI/AWS242AppRegistry-2020-06-24/DeleteApplication func (c *AppRegistry) DeleteApplication(input *DeleteApplicationInput) (*DeleteApplicationOutput, error) { req, out := c.DeleteApplicationRequest(input) return out, req.Send() @@ -482,7 +484,7 @@ const opDeleteAttributeGroup = "DeleteAttributeGroup" // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/AWS242AppRegistry/DeleteAttributeGroup +// See also, https://docs.aws.amazon.com/goto/WebAPI/AWS242AppRegistry-2020-06-24/DeleteAttributeGroup func (c *AppRegistry) DeleteAttributeGroupRequest(input *DeleteAttributeGroupInput) (req *request.Request, output *DeleteAttributeGroupOutput) { op := &request.Operation{ Name: opDeleteAttributeGroup, @@ -521,7 +523,7 @@ func (c *AppRegistry) DeleteAttributeGroupRequest(input *DeleteAttributeGroupInp // * InternalServerException // The service is experiencing internal problems. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/AWS242AppRegistry/DeleteAttributeGroup +// See also, https://docs.aws.amazon.com/goto/WebAPI/AWS242AppRegistry-2020-06-24/DeleteAttributeGroup func (c *AppRegistry) DeleteAttributeGroup(input *DeleteAttributeGroupInput) (*DeleteAttributeGroupOutput, error) { req, out := c.DeleteAttributeGroupRequest(input) return out, req.Send() @@ -568,7 +570,7 @@ const opDisassociateAttributeGroup = "DisassociateAttributeGroup" // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/AWS242AppRegistry/DisassociateAttributeGroup +// See also, https://docs.aws.amazon.com/goto/WebAPI/AWS242AppRegistry-2020-06-24/DisassociateAttributeGroup func (c *AppRegistry) DisassociateAttributeGroupRequest(input *DisassociateAttributeGroupInput) (req *request.Request, output *DisassociateAttributeGroupOutput) { op := &request.Operation{ Name: opDisassociateAttributeGroup, @@ -608,7 +610,7 @@ func (c *AppRegistry) DisassociateAttributeGroupRequest(input *DisassociateAttri // * InternalServerException // The service is experiencing internal problems. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/AWS242AppRegistry/DisassociateAttributeGroup +// See also, https://docs.aws.amazon.com/goto/WebAPI/AWS242AppRegistry-2020-06-24/DisassociateAttributeGroup func (c *AppRegistry) DisassociateAttributeGroup(input *DisassociateAttributeGroupInput) (*DisassociateAttributeGroupOutput, error) { req, out := c.DisassociateAttributeGroupRequest(input) return out, req.Send() @@ -655,7 +657,7 @@ const opDisassociateResource = "DisassociateResource" // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/AWS242AppRegistry/DisassociateResource +// See also, https://docs.aws.amazon.com/goto/WebAPI/AWS242AppRegistry-2020-06-24/DisassociateResource func (c *AppRegistry) DisassociateResourceRequest(input *DisassociateResourceInput) (req *request.Request, output *DisassociateResourceOutput) { op := &request.Operation{ Name: opDisassociateResource, @@ -691,7 +693,7 @@ func (c *AppRegistry) DisassociateResourceRequest(input *DisassociateResourceInp // * InternalServerException // The service is experiencing internal problems. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/AWS242AppRegistry/DisassociateResource +// See also, https://docs.aws.amazon.com/goto/WebAPI/AWS242AppRegistry-2020-06-24/DisassociateResource func (c *AppRegistry) DisassociateResource(input *DisassociateResourceInput) (*DisassociateResourceOutput, error) { req, out := c.DisassociateResourceRequest(input) return out, req.Send() @@ -738,7 +740,7 @@ const opGetApplication = "GetApplication" // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/AWS242AppRegistry/GetApplication +// See also, https://docs.aws.amazon.com/goto/WebAPI/AWS242AppRegistry-2020-06-24/GetApplication func (c *AppRegistry) GetApplicationRequest(input *GetApplicationInput) (req *request.Request, output *GetApplicationOutput) { op := &request.Operation{ Name: opGetApplication, @@ -781,7 +783,7 @@ func (c *AppRegistry) GetApplicationRequest(input *GetApplicationInput) (req *re // * InternalServerException // The service is experiencing internal problems. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/AWS242AppRegistry/GetApplication +// See also, https://docs.aws.amazon.com/goto/WebAPI/AWS242AppRegistry-2020-06-24/GetApplication func (c *AppRegistry) GetApplication(input *GetApplicationInput) (*GetApplicationOutput, error) { req, out := c.GetApplicationRequest(input) return out, req.Send() @@ -828,7 +830,7 @@ const opGetAttributeGroup = "GetAttributeGroup" // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/AWS242AppRegistry/GetAttributeGroup +// See also, https://docs.aws.amazon.com/goto/WebAPI/AWS242AppRegistry-2020-06-24/GetAttributeGroup func (c *AppRegistry) GetAttributeGroupRequest(input *GetAttributeGroupInput) (req *request.Request, output *GetAttributeGroupOutput) { op := &request.Operation{ Name: opGetAttributeGroup, @@ -847,7 +849,8 @@ func (c *AppRegistry) GetAttributeGroupRequest(input *GetAttributeGroupInput) (r // GetAttributeGroup API operation for AWS Service Catalog App Registry. // -// Retrieves an attribute group, either by its name or its ID. +// Retrieves an attribute group, either by its name or its ID. The attribute +// group can be specified either by its unique ID or by its name. // // 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 @@ -866,7 +869,7 @@ func (c *AppRegistry) GetAttributeGroupRequest(input *GetAttributeGroupInput) (r // * InternalServerException // The service is experiencing internal problems. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/AWS242AppRegistry/GetAttributeGroup +// See also, https://docs.aws.amazon.com/goto/WebAPI/AWS242AppRegistry-2020-06-24/GetAttributeGroup func (c *AppRegistry) GetAttributeGroup(input *GetAttributeGroupInput) (*GetAttributeGroupOutput, error) { req, out := c.GetAttributeGroupRequest(input) return out, req.Send() @@ -913,7 +916,7 @@ const opListApplications = "ListApplications" // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/AWS242AppRegistry/ListApplications +// See also, https://docs.aws.amazon.com/goto/WebAPI/AWS242AppRegistry-2020-06-24/ListApplications func (c *AppRegistry) ListApplicationsRequest(input *ListApplicationsInput) (req *request.Request, output *ListApplicationsOutput) { op := &request.Operation{ Name: opListApplications, @@ -954,7 +957,7 @@ func (c *AppRegistry) ListApplicationsRequest(input *ListApplicationsInput) (req // * InternalServerException // The service is experiencing internal problems. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/AWS242AppRegistry/ListApplications +// See also, https://docs.aws.amazon.com/goto/WebAPI/AWS242AppRegistry-2020-06-24/ListApplications func (c *AppRegistry) ListApplications(input *ListApplicationsInput) (*ListApplicationsOutput, error) { req, out := c.ListApplicationsRequest(input) return out, req.Send() @@ -1053,7 +1056,7 @@ const opListAssociatedAttributeGroups = "ListAssociatedAttributeGroups" // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/AWS242AppRegistry/ListAssociatedAttributeGroups +// See also, https://docs.aws.amazon.com/goto/WebAPI/AWS242AppRegistry-2020-06-24/ListAssociatedAttributeGroups func (c *AppRegistry) ListAssociatedAttributeGroupsRequest(input *ListAssociatedAttributeGroupsInput) (req *request.Request, output *ListAssociatedAttributeGroupsOutput) { op := &request.Operation{ Name: opListAssociatedAttributeGroups, @@ -1098,7 +1101,7 @@ func (c *AppRegistry) ListAssociatedAttributeGroupsRequest(input *ListAssociated // * InternalServerException // The service is experiencing internal problems. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/AWS242AppRegistry/ListAssociatedAttributeGroups +// See also, https://docs.aws.amazon.com/goto/WebAPI/AWS242AppRegistry-2020-06-24/ListAssociatedAttributeGroups func (c *AppRegistry) ListAssociatedAttributeGroups(input *ListAssociatedAttributeGroupsInput) (*ListAssociatedAttributeGroupsOutput, error) { req, out := c.ListAssociatedAttributeGroupsRequest(input) return out, req.Send() @@ -1197,7 +1200,7 @@ const opListAssociatedResources = "ListAssociatedResources" // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/AWS242AppRegistry/ListAssociatedResources +// See also, https://docs.aws.amazon.com/goto/WebAPI/AWS242AppRegistry-2020-06-24/ListAssociatedResources func (c *AppRegistry) ListAssociatedResourcesRequest(input *ListAssociatedResourcesInput) (req *request.Request, output *ListAssociatedResourcesOutput) { op := &request.Operation{ Name: opListAssociatedResources, @@ -1242,7 +1245,7 @@ func (c *AppRegistry) ListAssociatedResourcesRequest(input *ListAssociatedResour // * InternalServerException // The service is experiencing internal problems. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/AWS242AppRegistry/ListAssociatedResources +// See also, https://docs.aws.amazon.com/goto/WebAPI/AWS242AppRegistry-2020-06-24/ListAssociatedResources func (c *AppRegistry) ListAssociatedResources(input *ListAssociatedResourcesInput) (*ListAssociatedResourcesOutput, error) { req, out := c.ListAssociatedResourcesRequest(input) return out, req.Send() @@ -1341,7 +1344,7 @@ const opListAttributeGroups = "ListAttributeGroups" // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/AWS242AppRegistry/ListAttributeGroups +// See also, https://docs.aws.amazon.com/goto/WebAPI/AWS242AppRegistry-2020-06-24/ListAttributeGroups func (c *AppRegistry) ListAttributeGroupsRequest(input *ListAttributeGroupsInput) (req *request.Request, output *ListAttributeGroupsOutput) { op := &request.Operation{ Name: opListAttributeGroups, @@ -1382,7 +1385,7 @@ func (c *AppRegistry) ListAttributeGroupsRequest(input *ListAttributeGroupsInput // * InternalServerException // The service is experiencing internal problems. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/AWS242AppRegistry/ListAttributeGroups +// See also, https://docs.aws.amazon.com/goto/WebAPI/AWS242AppRegistry-2020-06-24/ListAttributeGroups func (c *AppRegistry) ListAttributeGroups(input *ListAttributeGroupsInput) (*ListAttributeGroupsOutput, error) { req, out := c.ListAttributeGroupsRequest(input) return out, req.Send() @@ -1481,7 +1484,7 @@ const opUpdateApplication = "UpdateApplication" // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/AWS242AppRegistry/UpdateApplication +// See also, https://docs.aws.amazon.com/goto/WebAPI/AWS242AppRegistry-2020-06-24/UpdateApplication func (c *AppRegistry) UpdateApplicationRequest(input *UpdateApplicationInput) (req *request.Request, output *UpdateApplicationOutput) { op := &request.Operation{ Name: opUpdateApplication, @@ -1520,7 +1523,7 @@ func (c *AppRegistry) UpdateApplicationRequest(input *UpdateApplicationInput) (r // * InternalServerException // The service is experiencing internal problems. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/AWS242AppRegistry/UpdateApplication +// See also, https://docs.aws.amazon.com/goto/WebAPI/AWS242AppRegistry-2020-06-24/UpdateApplication func (c *AppRegistry) UpdateApplication(input *UpdateApplicationInput) (*UpdateApplicationOutput, error) { req, out := c.UpdateApplicationRequest(input) return out, req.Send() @@ -1567,7 +1570,7 @@ const opUpdateAttributeGroup = "UpdateAttributeGroup" // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/AWS242AppRegistry/UpdateAttributeGroup +// See also, https://docs.aws.amazon.com/goto/WebAPI/AWS242AppRegistry-2020-06-24/UpdateAttributeGroup func (c *AppRegistry) UpdateAttributeGroupRequest(input *UpdateAttributeGroupInput) (req *request.Request, output *UpdateAttributeGroupOutput) { op := &request.Operation{ Name: opUpdateAttributeGroup, @@ -1609,7 +1612,7 @@ func (c *AppRegistry) UpdateAttributeGroupRequest(input *UpdateAttributeGroupInp // * InternalServerException // The service is experiencing internal problems. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/AWS242AppRegistry/UpdateAttributeGroup +// See also, https://docs.aws.amazon.com/goto/WebAPI/AWS242AppRegistry-2020-06-24/UpdateAttributeGroup func (c *AppRegistry) UpdateAttributeGroup(input *UpdateAttributeGroupInput) (*UpdateAttributeGroupOutput, error) { req, out := c.UpdateAttributeGroupRequest(input) return out, req.Send() @@ -1889,6 +1892,8 @@ type AssociateResourceInput struct { // Resource is a required field Resource *string `location:"uri" locationName:"resource" min:"1" type:"string" required:"true"` + // The type of resource of which the application will be associated. + // // ResourceType is a required field ResourceType *string `location:"uri" locationName:"resourceType" type:"string" required:"true" enum:"ResourceType"` } @@ -1987,7 +1992,8 @@ func (s *AssociateResourceOutput) SetResourceArn(v string) *AssociateResourceOut type AttributeGroup struct { _ struct{} `type:"structure"` - // The Amazon resource name (ARN) that specifies the application across services. + // The Amazon resource name (ARN) that specifies the attribute group across + // services. Arn *string `locationName:"arn" type:"string"` // The ISO-8601 formatted timestamp of the moment the attribute group was created. @@ -2067,7 +2073,8 @@ func (s *AttributeGroup) SetTags(v map[string]*string) *AttributeGroup { type AttributeGroupSummary struct { _ struct{} `type:"structure"` - // The Amazon resource name (ARN) that specifies the application across services. + // The Amazon resource name (ARN) that specifies the attribute group across + // services. Arn *string `locationName:"arn" type:"string"` // The ISO-8601 formatted timestamp of the moment the attribute group was created. @@ -2194,9 +2201,11 @@ func (s *ConflictException) RequestID() string { type CreateApplicationInput struct { _ struct{} `type:"structure"` - // A unique identifier that you provide to ensure idempotency. If multiple requests - // differ only by the clientToken, the same response is returned for each repeated - // request. + // A unique identifier that you provide to ensure idempotency. If you retry + // a request that completed successfully using the same client token and the + // same parameters, the retry succeeds without performing any further actions. + // If you retry a successful request using the same client token, but one or + // more of the parameters are different, the retry fails. ClientToken *string `locationName:"clientToken" min:"1" type:"string" idempotencyToken:"true"` // The description of the application. @@ -2268,7 +2277,7 @@ func (s *CreateApplicationInput) SetTags(v map[string]*string) *CreateApplicatio type CreateApplicationOutput struct { _ struct{} `type:"structure"` - // The name or ID of the application. + // Information about the application. Application *Application `locationName:"application" type:"structure"` } @@ -2297,9 +2306,11 @@ type CreateAttributeGroupInput struct { // Attributes is a required field Attributes *string `locationName:"attributes" min:"1" type:"string" required:"true"` - // A unique identifier that you provide to ensure idempotency. If multiple requests - // differ only by the clientToken, the same response is returned for each repeated - // request. + // A unique identifier that you provide to ensure idempotency. If you retry + // a request that completed successfully using the same client token and the + // same parameters, the retry succeeds without performing any further actions. + // If you retry a successful request using the same client token, but one or + // more of the parameters are different, the retry fails. ClientToken *string `locationName:"clientToken" min:"1" type:"string" idempotencyToken:"true"` // The description of the attribute group that the user provides. @@ -2382,8 +2393,7 @@ func (s *CreateAttributeGroupInput) SetTags(v map[string]*string) *CreateAttribu type CreateAttributeGroupOutput struct { _ struct{} `type:"structure"` - // The name or ID of the attribute group that holds the attributes to describe - // the application. + // Information about the attribute group. AttributeGroup *AttributeGroup `locationName:"attributeGroup" type:"structure"` } @@ -2447,7 +2457,7 @@ func (s *DeleteApplicationInput) SetApplication(v string) *DeleteApplicationInpu type DeleteApplicationOutput struct { _ struct{} `type:"structure"` - // The name or ID of the application. + // Information about the deleted application. Application *ApplicationSummary `locationName:"application" type:"structure"` } @@ -2512,8 +2522,7 @@ func (s *DeleteAttributeGroupInput) SetAttributeGroup(v string) *DeleteAttribute type DeleteAttributeGroupOutput struct { _ struct{} `type:"structure"` - // The name or ID of the attribute group that holds the attributes to describe - // the application. + // Information about the deleted attribute group. AttributeGroup *AttributeGroupSummary `locationName:"attributeGroup" type:"structure"` } @@ -2595,12 +2604,10 @@ func (s *DisassociateAttributeGroupInput) SetAttributeGroup(v string) *Disassoci type DisassociateAttributeGroupOutput struct { _ struct{} `type:"structure"` - // The Amazon resource name (ARN) of the application that was augmented with - // attributes. + // The Amazon resource name (ARN) that specifies the application. ApplicationArn *string `locationName:"applicationArn" type:"string"` - // The Amazon resource name (ARN) of the attribute group that contains the application's - // new attributes. + // The Amazon resource name (ARN) that specifies the attribute group. AttributeGroupArn *string `locationName:"attributeGroupArn" type:"string"` } @@ -2634,12 +2641,12 @@ type DisassociateResourceInput struct { // Application is a required field Application *string `location:"uri" locationName:"application" min:"1" type:"string" required:"true"` - // The name or ID of the resource of which the application will be associated. + // The name or ID of the resource. // // Resource is a required field Resource *string `location:"uri" locationName:"resource" min:"1" type:"string" required:"true"` - // The type of the resource that's being disassociated. + // The type of the resource that is being disassociated. // // ResourceType is a required field ResourceType *string `location:"uri" locationName:"resourceType" type:"string" required:"true" enum:"ResourceType"` @@ -2704,8 +2711,7 @@ func (s *DisassociateResourceInput) SetResourceType(v string) *DisassociateResou type DisassociateResourceOutput struct { _ struct{} `type:"structure"` - // The Amazon resource name (ARN) of the application that was augmented with - // attributes. + // The Amazon resource name (ARN) that specifies the application. ApplicationArn *string `locationName:"applicationArn" type:"string"` // The Amazon resource name (ARN) that specifies the resource. @@ -2801,7 +2807,7 @@ type GetApplicationOutput struct { // you are creating the application. Name *string `locationName:"name" min:"1" type:"string"` - // Key-value pairs you can use to associate with the application. + // Key-value pairs associated with the application. Tags map[string]*string `locationName:"tags" type:"map"` } @@ -2908,7 +2914,8 @@ func (s *GetAttributeGroupInput) SetAttributeGroup(v string) *GetAttributeGroupI type GetAttributeGroupOutput struct { _ struct{} `type:"structure"` - // The Amazon resource name (ARN) that specifies the application across services. + // The Amazon resource name (ARN) that specifies the attribute group across + // services. Arn *string `locationName:"arn" type:"string"` // A JSON string in the form of nested key-value pairs that represent the attributes @@ -2921,7 +2928,7 @@ type GetAttributeGroupOutput struct { // The description of the attribute group that the user provides. Description *string `locationName:"description" type:"string"` - // The identifier of the application. + // The identifier of the attribute group. Id *string `locationName:"id" min:"1" type:"string"` // The ISO-8601 formatted timestamp of the moment the attribute group was last @@ -2932,7 +2939,7 @@ type GetAttributeGroupOutput struct { // The name of the attribute group. Name *string `locationName:"name" min:"1" type:"string"` - // Key-value pairs you can use to associate with the attribute group. + // Key-value pairs associated with the attribute group. Tags map[string]*string `locationName:"tags" type:"map"` } @@ -3102,7 +3109,7 @@ func (s *ListApplicationsInput) SetNextToken(v string) *ListApplicationsInput { type ListApplicationsOutput struct { _ struct{} `type:"structure"` - // The name or ID of the application. + // This list of applications. Applications []*ApplicationSummary `locationName:"applications" type:"list"` // The token to use to get the next page of results after a previous API call. @@ -3301,7 +3308,7 @@ type ListAssociatedResourcesOutput struct { // The token to use to get the next page of results after a previous API call. NextToken *string `locationName:"nextToken" min:"1" type:"string"` - // The name or ID of the resource of which the application will be associated. + // Information about the resources. Resources []*ResourceInfo `locationName:"resources" type:"list"` } @@ -3379,7 +3386,7 @@ func (s *ListAttributeGroupsInput) SetNextToken(v string) *ListAttributeGroupsIn type ListAttributeGroupsOutput struct { _ struct{} `type:"structure"` - // A list of attribute group IDs. + // This list of attribute groups. AttributeGroups []*AttributeGroupSummary `locationName:"attributeGroups" type:"list"` // The token to use to get the next page of results after a previous API call. @@ -3412,7 +3419,7 @@ func (s *ListAttributeGroupsOutput) SetNextToken(v string) *ListAttributeGroupsO type ResourceInfo struct { _ struct{} `type:"structure"` - // The Amazon resource name (ARN) that specifies the application across services. + // The Amazon resource name (ARN) that specifies the resource across services. Arn *string `locationName:"arn" type:"string"` // The name of the resource. @@ -3556,17 +3563,16 @@ func (s *ServiceQuotaExceededException) RequestID() string { type UpdateApplicationInput struct { _ struct{} `type:"structure"` - // The name or ID of the application. The name must be unique in the region - // in which you are updating the attribute group. + // The name or ID of the application that will be updated. // // Application is a required field Application *string `location:"uri" locationName:"application" min:"1" type:"string" required:"true"` - // The description of the application. + // The new description of the application. Description *string `locationName:"description" type:"string"` - // The anme of the application. The name must be unique in the region in which - // you are creating the application. + // The new name of the application. The name must be unique in the region in + // which you are updating the application. Name *string `locationName:"name" min:"1" type:"string"` } @@ -3620,7 +3626,7 @@ func (s *UpdateApplicationInput) SetName(v string) *UpdateApplicationInput { type UpdateApplicationOutput struct { _ struct{} `type:"structure"` - // The name or ID of the application. + // The updated information of the application. Application *Application `locationName:"application" type:"structure"` } @@ -3720,8 +3726,7 @@ func (s *UpdateAttributeGroupInput) SetName(v string) *UpdateAttributeGroupInput type UpdateAttributeGroupOutput struct { _ struct{} `type:"structure"` - // The name or ID of the attribute group that holds the attributes to describe - // the application. + // The updated information of the attribute group. AttributeGroup *AttributeGroup `locationName:"attributeGroup" type:"structure"` } diff --git a/service/appregistry/doc.go b/service/appregistry/doc.go index 8468f10451c..8d234bc21ee 100644 --- a/service/appregistry/doc.go +++ b/service/appregistry/doc.go @@ -8,7 +8,7 @@ // applications, their resources, and the application metadata that you use // within your enterprise. // -// See https://docs.aws.amazon.com/goto/WebAPI/AWS242AppRegistry for more information on this service. +// See https://docs.aws.amazon.com/goto/WebAPI/AWS242AppRegistry-2020-06-24 for more information on this service. // // See appregistry package documentation for more information. // https://docs.aws.amazon.com/sdk-for-go/api/service/appregistry/ diff --git a/service/chime/api.go b/service/chime/api.go index 7a7d9c7bf4a..fad31746a4b 100644 --- a/service/chime/api.go +++ b/service/chime/api.go @@ -75,8 +75,7 @@ func (c *Chime) AssociatePhoneNumberWithUserRequest(input *AssociatePhoneNumberW // One or more of the resources in the request does not exist in the system. // // * ForbiddenException -// The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported Region. +// The client is permanently forbidden from making the request. // // * BadRequestException // The input parameters don't match the service's restrictions. @@ -176,8 +175,7 @@ func (c *Chime) AssociatePhoneNumbersWithVoiceConnectorRequest(input *AssociateP // One or more of the resources in the request does not exist in the system. // // * ForbiddenException -// The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported Region. +// The client is permanently forbidden from making the request. // // * BadRequestException // The input parameters don't match the service's restrictions. @@ -278,8 +276,7 @@ func (c *Chime) AssociatePhoneNumbersWithVoiceConnectorGroupRequest(input *Assoc // One or more of the resources in the request does not exist in the system. // // * ForbiddenException -// The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported Region. +// The client is permanently forbidden from making the request. // // * BadRequestException // The input parameters don't match the service's restrictions. @@ -381,8 +378,7 @@ func (c *Chime) AssociateSigninDelegateGroupsWithAccountRequest(input *Associate // One or more of the resources in the request does not exist in the system. // // * ForbiddenException -// The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported Region. +// The client is permanently forbidden from making the request. // // * BadRequestException // The input parameters don't match the service's restrictions. @@ -479,8 +475,7 @@ func (c *Chime) BatchCreateAttendeeRequest(input *BatchCreateAttendeeInput) (req // The input parameters don't match the service's restrictions. // // * ForbiddenException -// The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported Region. +// The client is permanently forbidden from making the request. // // * NotFoundException // One or more of the resources in the request does not exist in the system. @@ -588,8 +583,7 @@ func (c *Chime) BatchCreateRoomMembershipRequest(input *BatchCreateRoomMembershi // The input parameters don't match the service's restrictions. // // * ForbiddenException -// The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported Region. +// The client is permanently forbidden from making the request. // // * ThrottledClientException // The client exceeded its request rate limit. @@ -687,8 +681,7 @@ func (c *Chime) BatchDeletePhoneNumberRequest(input *BatchDeletePhoneNumberInput // One or more of the resources in the request does not exist in the system. // // * ForbiddenException -// The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported Region. +// The client is permanently forbidden from making the request. // // * BadRequestException // The input parameters don't match the service's restrictions. @@ -799,8 +792,7 @@ func (c *Chime) BatchSuspendUserRequest(input *BatchSuspendUserInput) (req *requ // One or more of the resources in the request does not exist in the system. // // * ForbiddenException -// The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported Region. +// The client is permanently forbidden from making the request. // // * BadRequestException // The input parameters don't match the service's restrictions. @@ -904,8 +896,7 @@ func (c *Chime) BatchUnsuspendUserRequest(input *BatchUnsuspendUserInput) (req * // One or more of the resources in the request does not exist in the system. // // * ForbiddenException -// The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported Region. +// The client is permanently forbidden from making the request. // // * BadRequestException // The input parameters don't match the service's restrictions. @@ -1012,8 +1003,7 @@ func (c *Chime) BatchUpdatePhoneNumberRequest(input *BatchUpdatePhoneNumberInput // One or more of the resources in the request does not exist in the system. // // * ForbiddenException -// The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported Region. +// The client is permanently forbidden from making the request. // // * BadRequestException // The input parameters don't match the service's restrictions. @@ -1112,8 +1102,7 @@ func (c *Chime) BatchUpdateUserRequest(input *BatchUpdateUserInput) (req *reques // One or more of the resources in the request does not exist in the system. // // * ForbiddenException -// The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported Region. +// The client is permanently forbidden from making the request. // // * BadRequestException // The input parameters don't match the service's restrictions. @@ -1213,8 +1202,7 @@ func (c *Chime) CreateAccountRequest(input *CreateAccountInput) (req *request.Re // One or more of the resources in the request does not exist in the system. // // * ForbiddenException -// The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported Region. +// The client is permanently forbidden from making the request. // // * BadRequestException // The input parameters don't match the service's restrictions. @@ -1250,71 +1238,73 @@ func (c *Chime) CreateAccountWithContext(ctx aws.Context, input *CreateAccountIn return out, req.Send() } -const opCreateAttendee = "CreateAttendee" +const opCreateAppInstance = "CreateAppInstance" -// CreateAttendeeRequest generates a "aws/request.Request" representing the -// client's request for the CreateAttendee operation. The "output" return +// CreateAppInstanceRequest generates a "aws/request.Request" representing the +// client's request for the CreateAppInstance 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 CreateAttendee for more information on using the CreateAttendee +// See CreateAppInstance for more information on using the CreateAppInstance // 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 CreateAttendeeRequest method. -// req, resp := client.CreateAttendeeRequest(params) +// // Example sending a request using the CreateAppInstanceRequest method. +// req, resp := client.CreateAppInstanceRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/CreateAttendee -func (c *Chime) CreateAttendeeRequest(input *CreateAttendeeInput) (req *request.Request, output *CreateAttendeeOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/CreateAppInstance +func (c *Chime) CreateAppInstanceRequest(input *CreateAppInstanceInput) (req *request.Request, output *CreateAppInstanceOutput) { op := &request.Operation{ - Name: opCreateAttendee, + Name: opCreateAppInstance, HTTPMethod: "POST", - HTTPPath: "/meetings/{meetingId}/attendees", + HTTPPath: "/app-instances", } if input == nil { - input = &CreateAttendeeInput{} + input = &CreateAppInstanceInput{} } - output = &CreateAttendeeOutput{} + output = &CreateAppInstanceOutput{} req = c.newRequest(op, input, output) + req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("identity-", nil)) + req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) return } -// CreateAttendee API operation for Amazon Chime. +// CreateAppInstance API operation for Amazon Chime. // -// Creates a new attendee for an active Amazon Chime SDK meeting. For more information -// about the Amazon Chime SDK, see Using the Amazon Chime SDK (https://docs.aws.amazon.com/chime/latest/dg/meetings-sdk.html) -// in the Amazon Chime Developer Guide. +// Creates an Amazon Chime Messaging SDK AppInstance under an AWS Account. Only +// Messaging SDK customers use this API. CreateAppInstance supports idempotency +// behavior as described in the AWS API Standard. // // 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 Chime's -// API operation CreateAttendee for usage and error information. +// API operation CreateAppInstance for usage and error information. // // Returned Error Types: // * BadRequestException // The input parameters don't match the service's restrictions. // -// * ForbiddenException -// The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported Region. +// * ConflictException +// The request could not be processed because of conflict in the current state +// of the resource. // -// * NotFoundException -// One or more of the resources in the request does not exist in the system. +// * ForbiddenException +// The client is permanently forbidden from making the request. // // * ResourceLimitExceededException // The request exceeds the resource limit. @@ -1331,194 +1321,204 @@ func (c *Chime) CreateAttendeeRequest(input *CreateAttendeeInput) (req *request. // * ServiceFailureException // The service encountered an unexpected error. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/CreateAttendee -func (c *Chime) CreateAttendee(input *CreateAttendeeInput) (*CreateAttendeeOutput, error) { - req, out := c.CreateAttendeeRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/CreateAppInstance +func (c *Chime) CreateAppInstance(input *CreateAppInstanceInput) (*CreateAppInstanceOutput, error) { + req, out := c.CreateAppInstanceRequest(input) return out, req.Send() } -// CreateAttendeeWithContext is the same as CreateAttendee with the addition of +// CreateAppInstanceWithContext is the same as CreateAppInstance with the addition of // the ability to pass a context and additional request options. // -// See CreateAttendee for details on how to use this API operation. +// See CreateAppInstance 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 *Chime) CreateAttendeeWithContext(ctx aws.Context, input *CreateAttendeeInput, opts ...request.Option) (*CreateAttendeeOutput, error) { - req, out := c.CreateAttendeeRequest(input) +func (c *Chime) CreateAppInstanceWithContext(ctx aws.Context, input *CreateAppInstanceInput, opts ...request.Option) (*CreateAppInstanceOutput, error) { + req, out := c.CreateAppInstanceRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opCreateBot = "CreateBot" +const opCreateAppInstanceAdmin = "CreateAppInstanceAdmin" -// CreateBotRequest generates a "aws/request.Request" representing the -// client's request for the CreateBot operation. The "output" return +// CreateAppInstanceAdminRequest generates a "aws/request.Request" representing the +// client's request for the CreateAppInstanceAdmin 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 CreateBot for more information on using the CreateBot +// See CreateAppInstanceAdmin for more information on using the CreateAppInstanceAdmin // 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 CreateBotRequest method. -// req, resp := client.CreateBotRequest(params) +// // Example sending a request using the CreateAppInstanceAdminRequest method. +// req, resp := client.CreateAppInstanceAdminRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/CreateBot -func (c *Chime) CreateBotRequest(input *CreateBotInput) (req *request.Request, output *CreateBotOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/CreateAppInstanceAdmin +func (c *Chime) CreateAppInstanceAdminRequest(input *CreateAppInstanceAdminInput) (req *request.Request, output *CreateAppInstanceAdminOutput) { op := &request.Operation{ - Name: opCreateBot, + Name: opCreateAppInstanceAdmin, HTTPMethod: "POST", - HTTPPath: "/accounts/{accountId}/bots", + HTTPPath: "/app-instances/{appInstanceArn}/admins", } if input == nil { - input = &CreateBotInput{} + input = &CreateAppInstanceAdminInput{} } - output = &CreateBotOutput{} + output = &CreateAppInstanceAdminOutput{} req = c.newRequest(op, input, output) + req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("identity-", nil)) + req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) return } -// CreateBot API operation for Amazon Chime. +// CreateAppInstanceAdmin API operation for Amazon Chime. // -// Creates a bot for an Amazon Chime Enterprise account. +// Promotes an AppInstanceUser to an AppInstanceAdmin. The promoted user can +// perform the following actions. +// +// * ChannelModerator actions across all channels in the app instance. +// +// * DeleteChannelMessage actions. +// +// Only an AppInstanceUser can be promoted to an AppInstanceAdmin role. // // 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 Chime's -// API operation CreateBot for usage and error information. +// API operation CreateAppInstanceAdmin for usage and error information. // // Returned Error Types: -// * ServiceUnavailableException -// The service is currently unavailable. -// -// * ServiceFailureException -// The service encountered an unexpected error. -// -// * ForbiddenException -// The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported Region. -// // * BadRequestException // The input parameters don't match the service's restrictions. // -// * UnauthorizedClientException -// The client is not currently authorized to make the request. +// * ConflictException +// The request could not be processed because of conflict in the current state +// of the resource. +// +// * ForbiddenException +// The client is permanently forbidden from making the request. // // * ResourceLimitExceededException // The request exceeds the resource limit. // -// * NotFoundException -// One or more of the resources in the request does not exist in the system. -// // * ThrottledClientException // The client exceeded its request rate limit. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/CreateBot -func (c *Chime) CreateBot(input *CreateBotInput) (*CreateBotOutput, error) { - req, out := c.CreateBotRequest(input) +// * UnauthorizedClientException +// The client is not currently authorized to make the request. +// +// * ServiceUnavailableException +// The service is currently unavailable. +// +// * ServiceFailureException +// The service encountered an unexpected error. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/CreateAppInstanceAdmin +func (c *Chime) CreateAppInstanceAdmin(input *CreateAppInstanceAdminInput) (*CreateAppInstanceAdminOutput, error) { + req, out := c.CreateAppInstanceAdminRequest(input) return out, req.Send() } -// CreateBotWithContext is the same as CreateBot with the addition of +// CreateAppInstanceAdminWithContext is the same as CreateAppInstanceAdmin with the addition of // the ability to pass a context and additional request options. // -// See CreateBot for details on how to use this API operation. +// See CreateAppInstanceAdmin 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 *Chime) CreateBotWithContext(ctx aws.Context, input *CreateBotInput, opts ...request.Option) (*CreateBotOutput, error) { - req, out := c.CreateBotRequest(input) +func (c *Chime) CreateAppInstanceAdminWithContext(ctx aws.Context, input *CreateAppInstanceAdminInput, opts ...request.Option) (*CreateAppInstanceAdminOutput, error) { + req, out := c.CreateAppInstanceAdminRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opCreateMeeting = "CreateMeeting" +const opCreateAppInstanceUser = "CreateAppInstanceUser" -// CreateMeetingRequest generates a "aws/request.Request" representing the -// client's request for the CreateMeeting operation. The "output" return +// CreateAppInstanceUserRequest generates a "aws/request.Request" representing the +// client's request for the CreateAppInstanceUser 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 CreateMeeting for more information on using the CreateMeeting +// See CreateAppInstanceUser for more information on using the CreateAppInstanceUser // 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 CreateMeetingRequest method. -// req, resp := client.CreateMeetingRequest(params) +// // Example sending a request using the CreateAppInstanceUserRequest method. +// req, resp := client.CreateAppInstanceUserRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/CreateMeeting -func (c *Chime) CreateMeetingRequest(input *CreateMeetingInput) (req *request.Request, output *CreateMeetingOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/CreateAppInstanceUser +func (c *Chime) CreateAppInstanceUserRequest(input *CreateAppInstanceUserInput) (req *request.Request, output *CreateAppInstanceUserOutput) { op := &request.Operation{ - Name: opCreateMeeting, + Name: opCreateAppInstanceUser, HTTPMethod: "POST", - HTTPPath: "/meetings", + HTTPPath: "/app-instance-users", } if input == nil { - input = &CreateMeetingInput{} + input = &CreateAppInstanceUserInput{} } - output = &CreateMeetingOutput{} + output = &CreateAppInstanceUserOutput{} req = c.newRequest(op, input, output) + req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("identity-", nil)) + req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) return } -// CreateMeeting API operation for Amazon Chime. +// CreateAppInstanceUser API operation for Amazon Chime. // -// Creates a new Amazon Chime SDK meeting in the specified media Region with -// no initial attendees. For more information about specifying media Regions, -// see Amazon Chime SDK Media Regions (https://docs.aws.amazon.com/chime/latest/dg/chime-sdk-meetings-regions.html) -// in the Amazon Chime Developer Guide. For more information about the Amazon -// Chime SDK, see Using the Amazon Chime SDK (https://docs.aws.amazon.com/chime/latest/dg/meetings-sdk.html) -// in the Amazon Chime Developer Guide. +// Creates a user under an Amazon Chime AppInstance. The request consists of +// a unique appInstanceUserId and Name for that 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 Chime's -// API operation CreateMeeting for usage and error information. +// API operation CreateAppInstanceUser for usage and error information. // // Returned Error Types: // * BadRequestException // The input parameters don't match the service's restrictions. // +// * ConflictException +// The request could not be processed because of conflict in the current state +// of the resource. +// // * ForbiddenException -// The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported Region. +// The client is permanently forbidden from making the request. // // * ResourceLimitExceededException // The request exceeds the resource limit. @@ -1535,95 +1535,92 @@ func (c *Chime) CreateMeetingRequest(input *CreateMeetingInput) (req *request.Re // * ServiceFailureException // The service encountered an unexpected error. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/CreateMeeting -func (c *Chime) CreateMeeting(input *CreateMeetingInput) (*CreateMeetingOutput, error) { - req, out := c.CreateMeetingRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/CreateAppInstanceUser +func (c *Chime) CreateAppInstanceUser(input *CreateAppInstanceUserInput) (*CreateAppInstanceUserOutput, error) { + req, out := c.CreateAppInstanceUserRequest(input) return out, req.Send() } -// CreateMeetingWithContext is the same as CreateMeeting with the addition of +// CreateAppInstanceUserWithContext is the same as CreateAppInstanceUser with the addition of // the ability to pass a context and additional request options. // -// See CreateMeeting for details on how to use this API operation. +// See CreateAppInstanceUser 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 *Chime) CreateMeetingWithContext(ctx aws.Context, input *CreateMeetingInput, opts ...request.Option) (*CreateMeetingOutput, error) { - req, out := c.CreateMeetingRequest(input) +func (c *Chime) CreateAppInstanceUserWithContext(ctx aws.Context, input *CreateAppInstanceUserInput, opts ...request.Option) (*CreateAppInstanceUserOutput, error) { + req, out := c.CreateAppInstanceUserRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opCreateMeetingDialOut = "CreateMeetingDialOut" +const opCreateAttendee = "CreateAttendee" -// CreateMeetingDialOutRequest generates a "aws/request.Request" representing the -// client's request for the CreateMeetingDialOut operation. The "output" return +// CreateAttendeeRequest generates a "aws/request.Request" representing the +// client's request for the CreateAttendee 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 CreateMeetingDialOut for more information on using the CreateMeetingDialOut +// See CreateAttendee for more information on using the CreateAttendee // 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 CreateMeetingDialOutRequest method. -// req, resp := client.CreateMeetingDialOutRequest(params) +// // Example sending a request using the CreateAttendeeRequest method. +// req, resp := client.CreateAttendeeRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/CreateMeetingDialOut -func (c *Chime) CreateMeetingDialOutRequest(input *CreateMeetingDialOutInput) (req *request.Request, output *CreateMeetingDialOutOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/CreateAttendee +func (c *Chime) CreateAttendeeRequest(input *CreateAttendeeInput) (req *request.Request, output *CreateAttendeeOutput) { op := &request.Operation{ - Name: opCreateMeetingDialOut, + Name: opCreateAttendee, HTTPMethod: "POST", - HTTPPath: "/meetings/{meetingId}/dial-outs", + HTTPPath: "/meetings/{meetingId}/attendees", } if input == nil { - input = &CreateMeetingDialOutInput{} + input = &CreateAttendeeInput{} } - output = &CreateMeetingDialOutOutput{} + output = &CreateAttendeeOutput{} req = c.newRequest(op, input, output) return } -// CreateMeetingDialOut API operation for Amazon Chime. -// -// Uses the join token and call metadata in a meeting request (From number, -// To number, and so forth) to initiate an outbound call to a public switched -// telephone network (PSTN) and joins them into Chime meeting. Also ensures -// that the From number belongs to the customer. +// CreateAttendee API operation for Amazon Chime. // -// To play welcome audio or implement an interactive voice response (IVR), use -// the CreateSipMediaApplicationCall API with the corresponding SIP media application -// ID. +// Creates a new attendee for an active Amazon Chime SDK meeting. For more information +// about the Amazon Chime SDK, see Using the Amazon Chime SDK (https://docs.aws.amazon.com/chime/latest/dg/meetings-sdk.html) +// in the Amazon Chime Developer Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Chime's -// API operation CreateMeetingDialOut for usage and error information. +// API operation CreateAttendee for usage and error information. // // Returned Error Types: // * BadRequestException // The input parameters don't match the service's restrictions. // // * ForbiddenException -// The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported Region. +// The client is permanently forbidden from making the request. +// +// * NotFoundException +// One or more of the resources in the request does not exist in the system. // // * ResourceLimitExceededException // The request exceeds the resource limit. @@ -1640,302 +1637,309 @@ func (c *Chime) CreateMeetingDialOutRequest(input *CreateMeetingDialOutInput) (r // * ServiceFailureException // The service encountered an unexpected error. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/CreateMeetingDialOut -func (c *Chime) CreateMeetingDialOut(input *CreateMeetingDialOutInput) (*CreateMeetingDialOutOutput, error) { - req, out := c.CreateMeetingDialOutRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/CreateAttendee +func (c *Chime) CreateAttendee(input *CreateAttendeeInput) (*CreateAttendeeOutput, error) { + req, out := c.CreateAttendeeRequest(input) return out, req.Send() } -// CreateMeetingDialOutWithContext is the same as CreateMeetingDialOut with the addition of +// CreateAttendeeWithContext is the same as CreateAttendee with the addition of // the ability to pass a context and additional request options. // -// See CreateMeetingDialOut for details on how to use this API operation. +// See CreateAttendee 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 *Chime) CreateMeetingDialOutWithContext(ctx aws.Context, input *CreateMeetingDialOutInput, opts ...request.Option) (*CreateMeetingDialOutOutput, error) { - req, out := c.CreateMeetingDialOutRequest(input) +func (c *Chime) CreateAttendeeWithContext(ctx aws.Context, input *CreateAttendeeInput, opts ...request.Option) (*CreateAttendeeOutput, error) { + req, out := c.CreateAttendeeRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opCreateMeetingWithAttendees = "CreateMeetingWithAttendees" +const opCreateBot = "CreateBot" -// CreateMeetingWithAttendeesRequest generates a "aws/request.Request" representing the -// client's request for the CreateMeetingWithAttendees operation. The "output" return +// CreateBotRequest generates a "aws/request.Request" representing the +// client's request for the CreateBot 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 CreateMeetingWithAttendees for more information on using the CreateMeetingWithAttendees +// See CreateBot for more information on using the CreateBot // 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 CreateMeetingWithAttendeesRequest method. -// req, resp := client.CreateMeetingWithAttendeesRequest(params) +// // Example sending a request using the CreateBotRequest method. +// req, resp := client.CreateBotRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/CreateMeetingWithAttendees -func (c *Chime) CreateMeetingWithAttendeesRequest(input *CreateMeetingWithAttendeesInput) (req *request.Request, output *CreateMeetingWithAttendeesOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/CreateBot +func (c *Chime) CreateBotRequest(input *CreateBotInput) (req *request.Request, output *CreateBotOutput) { op := &request.Operation{ - Name: opCreateMeetingWithAttendees, + Name: opCreateBot, HTTPMethod: "POST", - HTTPPath: "/meetings?operation=create-attendees", + HTTPPath: "/accounts/{accountId}/bots", } if input == nil { - input = &CreateMeetingWithAttendeesInput{} + input = &CreateBotInput{} } - output = &CreateMeetingWithAttendeesOutput{} + output = &CreateBotOutput{} req = c.newRequest(op, input, output) return } -// CreateMeetingWithAttendees API operation for Amazon Chime. +// CreateBot API operation for Amazon Chime. // -// Creates a new Amazon Chime SDK meeting in the specified media Region, with -// attendees. For more information about specifying media Regions, see Amazon -// Chime SDK Media Regions (https://docs.aws.amazon.com/chime/latest/dg/chime-sdk-meetings-regions.html) -// in the Amazon Chime Developer Guide. For more information about the Amazon -// Chime SDK, see Using the Amazon Chime SDK (https://docs.aws.amazon.com/chime/latest/dg/meetings-sdk.html) -// in the Amazon Chime Developer Guide. +// Creates a bot for an Amazon Chime Enterprise account. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Chime's -// API operation CreateMeetingWithAttendees for usage and error information. +// API operation CreateBot for usage and error information. // // Returned Error Types: +// * ServiceUnavailableException +// The service is currently unavailable. +// +// * ServiceFailureException +// The service encountered an unexpected error. +// +// * ForbiddenException +// The client is permanently forbidden from making the request. +// // * BadRequestException // The input parameters don't match the service's restrictions. // -// * ForbiddenException -// The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported Region. +// * UnauthorizedClientException +// The client is not currently authorized to make the request. // // * ResourceLimitExceededException // The request exceeds the resource limit. // +// * NotFoundException +// One or more of the resources in the request does not exist in the system. +// // * ThrottledClientException // The client exceeded its request rate limit. // -// * UnauthorizedClientException -// The client is not currently authorized to make the request. -// -// * ServiceUnavailableException -// The service is currently unavailable. -// -// * ServiceFailureException -// The service encountered an unexpected error. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/CreateMeetingWithAttendees -func (c *Chime) CreateMeetingWithAttendees(input *CreateMeetingWithAttendeesInput) (*CreateMeetingWithAttendeesOutput, error) { - req, out := c.CreateMeetingWithAttendeesRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/CreateBot +func (c *Chime) CreateBot(input *CreateBotInput) (*CreateBotOutput, error) { + req, out := c.CreateBotRequest(input) return out, req.Send() } -// CreateMeetingWithAttendeesWithContext is the same as CreateMeetingWithAttendees with the addition of +// CreateBotWithContext is the same as CreateBot with the addition of // the ability to pass a context and additional request options. // -// See CreateMeetingWithAttendees for details on how to use this API operation. +// See CreateBot 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 *Chime) CreateMeetingWithAttendeesWithContext(ctx aws.Context, input *CreateMeetingWithAttendeesInput, opts ...request.Option) (*CreateMeetingWithAttendeesOutput, error) { - req, out := c.CreateMeetingWithAttendeesRequest(input) +func (c *Chime) CreateBotWithContext(ctx aws.Context, input *CreateBotInput, opts ...request.Option) (*CreateBotOutput, error) { + req, out := c.CreateBotRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opCreatePhoneNumberOrder = "CreatePhoneNumberOrder" +const opCreateChannel = "CreateChannel" -// CreatePhoneNumberOrderRequest generates a "aws/request.Request" representing the -// client's request for the CreatePhoneNumberOrder operation. The "output" return +// CreateChannelRequest generates a "aws/request.Request" representing the +// client's request for the CreateChannel 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 CreatePhoneNumberOrder for more information on using the CreatePhoneNumberOrder +// See CreateChannel for more information on using the CreateChannel // 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 CreatePhoneNumberOrderRequest method. -// req, resp := client.CreatePhoneNumberOrderRequest(params) +// // Example sending a request using the CreateChannelRequest method. +// req, resp := client.CreateChannelRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/CreatePhoneNumberOrder -func (c *Chime) CreatePhoneNumberOrderRequest(input *CreatePhoneNumberOrderInput) (req *request.Request, output *CreatePhoneNumberOrderOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/CreateChannel +func (c *Chime) CreateChannelRequest(input *CreateChannelInput) (req *request.Request, output *CreateChannelOutput) { op := &request.Operation{ - Name: opCreatePhoneNumberOrder, + Name: opCreateChannel, HTTPMethod: "POST", - HTTPPath: "/phone-number-orders", + HTTPPath: "/channels", } if input == nil { - input = &CreatePhoneNumberOrderInput{} + input = &CreateChannelInput{} } - output = &CreatePhoneNumberOrderOutput{} + output = &CreateChannelOutput{} req = c.newRequest(op, input, output) + req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("messaging-", nil)) + req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) return } -// CreatePhoneNumberOrder API operation for Amazon Chime. +// CreateChannel API operation for Amazon Chime. // -// Creates an order for phone numbers to be provisioned. Choose from Amazon -// Chime Business Calling and Amazon Chime Voice Connector product types. For -// toll-free numbers, you must use the Amazon Chime Voice Connector product -// type. +// Creates a channel to which you can add users and send messages. +// +// Restriction: You can't change a channel's privacy. // // 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 Chime's -// API operation CreatePhoneNumberOrder for usage and error information. +// API operation CreateChannel for usage and error information. // // Returned Error Types: // * BadRequestException // The input parameters don't match the service's restrictions. // // * ForbiddenException -// The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported Region. -// -// * AccessDeniedException -// You don't have permissions to perform the requested operation. +// The client is permanently forbidden from making the request. // // * UnauthorizedClientException // The client is not currently authorized to make the request. // -// * ThrottledClientException -// The client exceeded its request rate limit. +// * ConflictException +// The request could not be processed because of conflict in the current state +// of the resource. // // * ResourceLimitExceededException // The request exceeds the resource limit. // +// * ThrottledClientException +// The client exceeded its request rate limit. +// // * ServiceUnavailableException // The service is currently unavailable. // // * ServiceFailureException // The service encountered an unexpected error. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/CreatePhoneNumberOrder -func (c *Chime) CreatePhoneNumberOrder(input *CreatePhoneNumberOrderInput) (*CreatePhoneNumberOrderOutput, error) { - req, out := c.CreatePhoneNumberOrderRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/CreateChannel +func (c *Chime) CreateChannel(input *CreateChannelInput) (*CreateChannelOutput, error) { + req, out := c.CreateChannelRequest(input) return out, req.Send() } -// CreatePhoneNumberOrderWithContext is the same as CreatePhoneNumberOrder with the addition of +// CreateChannelWithContext is the same as CreateChannel with the addition of // the ability to pass a context and additional request options. // -// See CreatePhoneNumberOrder for details on how to use this API operation. +// See CreateChannel 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 *Chime) CreatePhoneNumberOrderWithContext(ctx aws.Context, input *CreatePhoneNumberOrderInput, opts ...request.Option) (*CreatePhoneNumberOrderOutput, error) { - req, out := c.CreatePhoneNumberOrderRequest(input) +func (c *Chime) CreateChannelWithContext(ctx aws.Context, input *CreateChannelInput, opts ...request.Option) (*CreateChannelOutput, error) { + req, out := c.CreateChannelRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opCreateProxySession = "CreateProxySession" +const opCreateChannelBan = "CreateChannelBan" -// CreateProxySessionRequest generates a "aws/request.Request" representing the -// client's request for the CreateProxySession operation. The "output" return +// CreateChannelBanRequest generates a "aws/request.Request" representing the +// client's request for the CreateChannelBan 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 CreateProxySession for more information on using the CreateProxySession +// See CreateChannelBan for more information on using the CreateChannelBan // 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 CreateProxySessionRequest method. -// req, resp := client.CreateProxySessionRequest(params) +// // Example sending a request using the CreateChannelBanRequest method. +// req, resp := client.CreateChannelBanRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/CreateProxySession -func (c *Chime) CreateProxySessionRequest(input *CreateProxySessionInput) (req *request.Request, output *CreateProxySessionOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/CreateChannelBan +func (c *Chime) CreateChannelBanRequest(input *CreateChannelBanInput) (req *request.Request, output *CreateChannelBanOutput) { op := &request.Operation{ - Name: opCreateProxySession, + Name: opCreateChannelBan, HTTPMethod: "POST", - HTTPPath: "/voice-connectors/{voiceConnectorId}/proxy-sessions", + HTTPPath: "/channels/{channelArn}/bans", } if input == nil { - input = &CreateProxySessionInput{} + input = &CreateChannelBanInput{} } - output = &CreateProxySessionOutput{} + output = &CreateChannelBanOutput{} req = c.newRequest(op, input, output) + req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("messaging-", nil)) + req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) return } -// CreateProxySession API operation for Amazon Chime. +// CreateChannelBan API operation for Amazon Chime. // -// Creates a proxy session on the specified Amazon Chime Voice Connector for -// the specified participant phone numbers. +// Permanently bans a member from a channel. Moderators can't add banned members +// to a channel. To undo a ban, you first have to DeleteChannelBan, and then +// CreateChannelMembership. Bans are cleaned up when you delete users or channels. +// +// If you ban a user who is already part of a channel, that user is automatically +// kicked from the channel. // // 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 Chime's -// API operation CreateProxySession for usage and error information. +// API operation CreateChannelBan for usage and error information. // // Returned Error Types: +// * BadRequestException +// The input parameters don't match the service's restrictions. +// +// * ForbiddenException +// The client is permanently forbidden from making the request. +// // * UnauthorizedClientException // The client is not currently authorized to make the request. // -// * NotFoundException -// One or more of the resources in the request does not exist in the system. -// -// * ForbiddenException -// The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported Region. +// * ConflictException +// The request could not be processed because of conflict in the current state +// of the resource. // -// * BadRequestException -// The input parameters don't match the service's restrictions. +// * ResourceLimitExceededException +// The request exceeds the resource limit. // // * ThrottledClientException // The client exceeded its request rate limit. @@ -1946,95 +1950,115 @@ func (c *Chime) CreateProxySessionRequest(input *CreateProxySessionInput) (req * // * ServiceFailureException // The service encountered an unexpected error. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/CreateProxySession -func (c *Chime) CreateProxySession(input *CreateProxySessionInput) (*CreateProxySessionOutput, error) { - req, out := c.CreateProxySessionRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/CreateChannelBan +func (c *Chime) CreateChannelBan(input *CreateChannelBanInput) (*CreateChannelBanOutput, error) { + req, out := c.CreateChannelBanRequest(input) return out, req.Send() } -// CreateProxySessionWithContext is the same as CreateProxySession with the addition of +// CreateChannelBanWithContext is the same as CreateChannelBan with the addition of // the ability to pass a context and additional request options. // -// See CreateProxySession for details on how to use this API operation. +// See CreateChannelBan 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 *Chime) CreateProxySessionWithContext(ctx aws.Context, input *CreateProxySessionInput, opts ...request.Option) (*CreateProxySessionOutput, error) { - req, out := c.CreateProxySessionRequest(input) +func (c *Chime) CreateChannelBanWithContext(ctx aws.Context, input *CreateChannelBanInput, opts ...request.Option) (*CreateChannelBanOutput, error) { + req, out := c.CreateChannelBanRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opCreateRoom = "CreateRoom" +const opCreateChannelMembership = "CreateChannelMembership" -// CreateRoomRequest generates a "aws/request.Request" representing the -// client's request for the CreateRoom operation. The "output" return +// CreateChannelMembershipRequest generates a "aws/request.Request" representing the +// client's request for the CreateChannelMembership 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 CreateRoom for more information on using the CreateRoom +// See CreateChannelMembership for more information on using the CreateChannelMembership // 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 CreateRoomRequest method. -// req, resp := client.CreateRoomRequest(params) +// // Example sending a request using the CreateChannelMembershipRequest method. +// req, resp := client.CreateChannelMembershipRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/CreateRoom -func (c *Chime) CreateRoomRequest(input *CreateRoomInput) (req *request.Request, output *CreateRoomOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/CreateChannelMembership +func (c *Chime) CreateChannelMembershipRequest(input *CreateChannelMembershipInput) (req *request.Request, output *CreateChannelMembershipOutput) { op := &request.Operation{ - Name: opCreateRoom, + Name: opCreateChannelMembership, HTTPMethod: "POST", - HTTPPath: "/accounts/{accountId}/rooms", + HTTPPath: "/channels/{channelArn}/memberships", } if input == nil { - input = &CreateRoomInput{} + input = &CreateChannelMembershipInput{} } - output = &CreateRoomOutput{} + output = &CreateChannelMembershipOutput{} req = c.newRequest(op, input, output) + req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("messaging-", nil)) + req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) return } -// CreateRoom API operation for Amazon Chime. +// CreateChannelMembership API operation for Amazon Chime. // -// Creates a chat room for the specified Amazon Chime Enterprise account. +// Adds a user to a channel. The InvitedBy response field is derived from the +// request header. A channel member can: +// +// * List messages +// +// * Send messages +// +// * Receive messages +// +// * Edit their own messages +// +// * Leave the channel +// +// Privacy settings impact this action as follows: +// +// * Public Channels: You do not need to be a member to list messages, but +// you must be a member to send messages. +// +// * Private Channels: You must be a member to list or send messages. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Chime's -// API operation CreateRoom for usage and error information. +// API operation CreateChannelMembership for usage and error information. // // Returned Error Types: -// * NotFoundException -// One or more of the resources in the request does not exist in the system. -// // * BadRequestException // The input parameters don't match the service's restrictions. // // * ForbiddenException -// The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported Region. +// The client is permanently forbidden from making the request. // // * UnauthorizedClientException // The client is not currently authorized to make the request. // +// * ConflictException +// The request could not be processed because of conflict in the current state +// of the resource. +// // * ResourceLimitExceededException // The request exceeds the resource limit. // @@ -2047,100 +2071,106 @@ func (c *Chime) CreateRoomRequest(input *CreateRoomInput) (req *request.Request, // * ServiceFailureException // The service encountered an unexpected error. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/CreateRoom -func (c *Chime) CreateRoom(input *CreateRoomInput) (*CreateRoomOutput, error) { - req, out := c.CreateRoomRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/CreateChannelMembership +func (c *Chime) CreateChannelMembership(input *CreateChannelMembershipInput) (*CreateChannelMembershipOutput, error) { + req, out := c.CreateChannelMembershipRequest(input) return out, req.Send() } -// CreateRoomWithContext is the same as CreateRoom with the addition of +// CreateChannelMembershipWithContext is the same as CreateChannelMembership with the addition of // the ability to pass a context and additional request options. // -// See CreateRoom for details on how to use this API operation. +// See CreateChannelMembership 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 *Chime) CreateRoomWithContext(ctx aws.Context, input *CreateRoomInput, opts ...request.Option) (*CreateRoomOutput, error) { - req, out := c.CreateRoomRequest(input) +func (c *Chime) CreateChannelMembershipWithContext(ctx aws.Context, input *CreateChannelMembershipInput, opts ...request.Option) (*CreateChannelMembershipOutput, error) { + req, out := c.CreateChannelMembershipRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opCreateRoomMembership = "CreateRoomMembership" +const opCreateChannelModerator = "CreateChannelModerator" -// CreateRoomMembershipRequest generates a "aws/request.Request" representing the -// client's request for the CreateRoomMembership operation. The "output" return +// CreateChannelModeratorRequest generates a "aws/request.Request" representing the +// client's request for the CreateChannelModerator 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 CreateRoomMembership for more information on using the CreateRoomMembership +// See CreateChannelModerator for more information on using the CreateChannelModerator // 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 CreateRoomMembershipRequest method. -// req, resp := client.CreateRoomMembershipRequest(params) +// // Example sending a request using the CreateChannelModeratorRequest method. +// req, resp := client.CreateChannelModeratorRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/CreateRoomMembership -func (c *Chime) CreateRoomMembershipRequest(input *CreateRoomMembershipInput) (req *request.Request, output *CreateRoomMembershipOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/CreateChannelModerator +func (c *Chime) CreateChannelModeratorRequest(input *CreateChannelModeratorInput) (req *request.Request, output *CreateChannelModeratorOutput) { op := &request.Operation{ - Name: opCreateRoomMembership, + Name: opCreateChannelModerator, HTTPMethod: "POST", - HTTPPath: "/accounts/{accountId}/rooms/{roomId}/memberships", + HTTPPath: "/channels/{channelArn}/moderators", } if input == nil { - input = &CreateRoomMembershipInput{} + input = &CreateChannelModeratorInput{} } - output = &CreateRoomMembershipOutput{} + output = &CreateChannelModeratorOutput{} req = c.newRequest(op, input, output) + req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("messaging-", nil)) + req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) return } -// CreateRoomMembership API operation for Amazon Chime. +// CreateChannelModerator API operation for Amazon Chime. // -// Adds a member to a chat room in an Amazon Chime Enterprise account. A member -// can be either a user or a bot. The member role designates whether the member -// is a chat room administrator or a general chat room member. +// Creates a new ChannelModerator. A channel moderator can: +// +// * Add and remove other members of the channel. +// +// * Add and remove other moderators of the channel. +// +// * Add and remove user bans for the channel. +// +// * Redact messages in the channel. +// +// * List messages in the channel. // // 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 Chime's -// API operation CreateRoomMembership for usage and error information. +// API operation CreateChannelModerator for usage and error information. // // Returned Error Types: -// * ConflictException -// The request could not be processed because of conflict in the current state -// of the resource. -// -// * UnauthorizedClientException -// The client is not currently authorized to make the request. -// -// * NotFoundException -// One or more of the resources in the request does not exist in the system. -// // * BadRequestException // The input parameters don't match the service's restrictions. // // * ForbiddenException -// The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported Region. +// The client is permanently forbidden from making the request. +// +// * UnauthorizedClientException +// The client is not currently authorized to make the request. +// +// * ConflictException +// The request could not be processed because of conflict in the current state +// of the resource. // // * ResourceLimitExceededException // The request exceeds the resource limit. @@ -2154,104 +2184,101 @@ func (c *Chime) CreateRoomMembershipRequest(input *CreateRoomMembershipInput) (r // * ServiceFailureException // The service encountered an unexpected error. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/CreateRoomMembership -func (c *Chime) CreateRoomMembership(input *CreateRoomMembershipInput) (*CreateRoomMembershipOutput, error) { - req, out := c.CreateRoomMembershipRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/CreateChannelModerator +func (c *Chime) CreateChannelModerator(input *CreateChannelModeratorInput) (*CreateChannelModeratorOutput, error) { + req, out := c.CreateChannelModeratorRequest(input) return out, req.Send() } -// CreateRoomMembershipWithContext is the same as CreateRoomMembership with the addition of +// CreateChannelModeratorWithContext is the same as CreateChannelModerator with the addition of // the ability to pass a context and additional request options. // -// See CreateRoomMembership for details on how to use this API operation. +// See CreateChannelModerator 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 *Chime) CreateRoomMembershipWithContext(ctx aws.Context, input *CreateRoomMembershipInput, opts ...request.Option) (*CreateRoomMembershipOutput, error) { - req, out := c.CreateRoomMembershipRequest(input) +func (c *Chime) CreateChannelModeratorWithContext(ctx aws.Context, input *CreateChannelModeratorInput, opts ...request.Option) (*CreateChannelModeratorOutput, error) { + req, out := c.CreateChannelModeratorRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opCreateSipMediaApplication = "CreateSipMediaApplication" +const opCreateMeeting = "CreateMeeting" -// CreateSipMediaApplicationRequest generates a "aws/request.Request" representing the -// client's request for the CreateSipMediaApplication operation. The "output" return +// CreateMeetingRequest generates a "aws/request.Request" representing the +// client's request for the CreateMeeting 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 CreateSipMediaApplication for more information on using the CreateSipMediaApplication +// See CreateMeeting for more information on using the CreateMeeting // 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 CreateSipMediaApplicationRequest method. -// req, resp := client.CreateSipMediaApplicationRequest(params) +// // Example sending a request using the CreateMeetingRequest method. +// req, resp := client.CreateMeetingRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/CreateSipMediaApplication -func (c *Chime) CreateSipMediaApplicationRequest(input *CreateSipMediaApplicationInput) (req *request.Request, output *CreateSipMediaApplicationOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/CreateMeeting +func (c *Chime) CreateMeetingRequest(input *CreateMeetingInput) (req *request.Request, output *CreateMeetingOutput) { op := &request.Operation{ - Name: opCreateSipMediaApplication, + Name: opCreateMeeting, HTTPMethod: "POST", - HTTPPath: "/sip-media-applications", + HTTPPath: "/meetings", } if input == nil { - input = &CreateSipMediaApplicationInput{} + input = &CreateMeetingInput{} } - output = &CreateSipMediaApplicationOutput{} + output = &CreateMeetingOutput{} req = c.newRequest(op, input, output) return } -// CreateSipMediaApplication API operation for Amazon Chime. +// CreateMeeting API operation for Amazon Chime. // -// Creates a SIP media application. +// Creates a new Amazon Chime SDK meeting in the specified media Region with +// no initial attendees. For more information about specifying media Regions, +// see Amazon Chime SDK Media Regions (https://docs.aws.amazon.com/chime/latest/dg/chime-sdk-meetings-regions.html) +// in the Amazon Chime Developer Guide. For more information about the Amazon +// Chime SDK, see Using the Amazon Chime SDK (https://docs.aws.amazon.com/chime/latest/dg/meetings-sdk.html) +// in the Amazon Chime Developer Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Chime's -// API operation CreateSipMediaApplication for usage and error information. +// API operation CreateMeeting for usage and error information. // // Returned Error Types: // * BadRequestException // The input parameters don't match the service's restrictions. // // * ForbiddenException -// The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported Region. -// -// * AccessDeniedException -// You don't have permissions to perform the requested operation. +// The client is permanently forbidden from making the request. // -// * UnauthorizedClientException -// The client is not currently authorized to make the request. +// * ResourceLimitExceededException +// The request exceeds the resource limit. // // * ThrottledClientException // The client exceeded its request rate limit. // -// * ResourceLimitExceededException -// The request exceeds the resource limit. -// -// * ConflictException -// The request could not be processed because of conflict in the current state -// of the resource. +// * UnauthorizedClientException +// The client is not currently authorized to make the request. // // * ServiceUnavailableException // The service is currently unavailable. @@ -2259,89 +2286,94 @@ func (c *Chime) CreateSipMediaApplicationRequest(input *CreateSipMediaApplicatio // * ServiceFailureException // The service encountered an unexpected error. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/CreateSipMediaApplication -func (c *Chime) CreateSipMediaApplication(input *CreateSipMediaApplicationInput) (*CreateSipMediaApplicationOutput, error) { - req, out := c.CreateSipMediaApplicationRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/CreateMeeting +func (c *Chime) CreateMeeting(input *CreateMeetingInput) (*CreateMeetingOutput, error) { + req, out := c.CreateMeetingRequest(input) return out, req.Send() } -// CreateSipMediaApplicationWithContext is the same as CreateSipMediaApplication with the addition of +// CreateMeetingWithContext is the same as CreateMeeting with the addition of // the ability to pass a context and additional request options. // -// See CreateSipMediaApplication for details on how to use this API operation. +// See CreateMeeting 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 *Chime) CreateSipMediaApplicationWithContext(ctx aws.Context, input *CreateSipMediaApplicationInput, opts ...request.Option) (*CreateSipMediaApplicationOutput, error) { - req, out := c.CreateSipMediaApplicationRequest(input) +func (c *Chime) CreateMeetingWithContext(ctx aws.Context, input *CreateMeetingInput, opts ...request.Option) (*CreateMeetingOutput, error) { + req, out := c.CreateMeetingRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opCreateSipMediaApplicationCall = "CreateSipMediaApplicationCall" +const opCreateMeetingDialOut = "CreateMeetingDialOut" -// CreateSipMediaApplicationCallRequest generates a "aws/request.Request" representing the -// client's request for the CreateSipMediaApplicationCall operation. The "output" return +// CreateMeetingDialOutRequest generates a "aws/request.Request" representing the +// client's request for the CreateMeetingDialOut 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 CreateSipMediaApplicationCall for more information on using the CreateSipMediaApplicationCall +// See CreateMeetingDialOut for more information on using the CreateMeetingDialOut // 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 CreateSipMediaApplicationCallRequest method. -// req, resp := client.CreateSipMediaApplicationCallRequest(params) +// // Example sending a request using the CreateMeetingDialOutRequest method. +// req, resp := client.CreateMeetingDialOutRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/CreateSipMediaApplicationCall -func (c *Chime) CreateSipMediaApplicationCallRequest(input *CreateSipMediaApplicationCallInput) (req *request.Request, output *CreateSipMediaApplicationCallOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/CreateMeetingDialOut +func (c *Chime) CreateMeetingDialOutRequest(input *CreateMeetingDialOutInput) (req *request.Request, output *CreateMeetingDialOutOutput) { op := &request.Operation{ - Name: opCreateSipMediaApplicationCall, + Name: opCreateMeetingDialOut, HTTPMethod: "POST", - HTTPPath: "/sip-media-applications/{sipMediaApplicationId}/calls", + HTTPPath: "/meetings/{meetingId}/dial-outs", } if input == nil { - input = &CreateSipMediaApplicationCallInput{} + input = &CreateMeetingDialOutInput{} } - output = &CreateSipMediaApplicationCallOutput{} + output = &CreateMeetingDialOutOutput{} req = c.newRequest(op, input, output) return } -// CreateSipMediaApplicationCall API operation for Amazon Chime. +// CreateMeetingDialOut API operation for Amazon Chime. // -// Creates an outbound call to a phone number from the phone number specified -// in the request, and it invokes the endpoint of the specified sipMediaApplicationId. +// Uses the join token and call metadata in a meeting request (From number, +// To number, and so forth) to initiate an outbound call to a public switched +// telephone network (PSTN) and joins them into Chime meeting. Also ensures +// that the From number belongs to the customer. +// +// To play welcome audio or implement an interactive voice response (IVR), use +// the CreateSipMediaApplicationCall API with the corresponding SIP media application +// ID. // // 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 Chime's -// API operation CreateSipMediaApplicationCall for usage and error information. +// API operation CreateMeetingDialOut for usage and error information. // // Returned Error Types: // * BadRequestException // The input parameters don't match the service's restrictions. // // * ForbiddenException -// The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported Region. +// The client is permanently forbidden from making the request. // // * ResourceLimitExceededException // The request exceeds the resource limit. @@ -2358,105 +2390,101 @@ func (c *Chime) CreateSipMediaApplicationCallRequest(input *CreateSipMediaApplic // * ServiceFailureException // The service encountered an unexpected error. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/CreateSipMediaApplicationCall -func (c *Chime) CreateSipMediaApplicationCall(input *CreateSipMediaApplicationCallInput) (*CreateSipMediaApplicationCallOutput, error) { - req, out := c.CreateSipMediaApplicationCallRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/CreateMeetingDialOut +func (c *Chime) CreateMeetingDialOut(input *CreateMeetingDialOutInput) (*CreateMeetingDialOutOutput, error) { + req, out := c.CreateMeetingDialOutRequest(input) return out, req.Send() } -// CreateSipMediaApplicationCallWithContext is the same as CreateSipMediaApplicationCall with the addition of +// CreateMeetingDialOutWithContext is the same as CreateMeetingDialOut with the addition of // the ability to pass a context and additional request options. // -// See CreateSipMediaApplicationCall for details on how to use this API operation. +// See CreateMeetingDialOut 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 *Chime) CreateSipMediaApplicationCallWithContext(ctx aws.Context, input *CreateSipMediaApplicationCallInput, opts ...request.Option) (*CreateSipMediaApplicationCallOutput, error) { - req, out := c.CreateSipMediaApplicationCallRequest(input) +func (c *Chime) CreateMeetingDialOutWithContext(ctx aws.Context, input *CreateMeetingDialOutInput, opts ...request.Option) (*CreateMeetingDialOutOutput, error) { + req, out := c.CreateMeetingDialOutRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opCreateSipRule = "CreateSipRule" +const opCreateMeetingWithAttendees = "CreateMeetingWithAttendees" -// CreateSipRuleRequest generates a "aws/request.Request" representing the -// client's request for the CreateSipRule operation. The "output" return +// CreateMeetingWithAttendeesRequest generates a "aws/request.Request" representing the +// client's request for the CreateMeetingWithAttendees 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 CreateSipRule for more information on using the CreateSipRule +// See CreateMeetingWithAttendees for more information on using the CreateMeetingWithAttendees // 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 CreateSipRuleRequest method. -// req, resp := client.CreateSipRuleRequest(params) +// // Example sending a request using the CreateMeetingWithAttendeesRequest method. +// req, resp := client.CreateMeetingWithAttendeesRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/CreateSipRule -func (c *Chime) CreateSipRuleRequest(input *CreateSipRuleInput) (req *request.Request, output *CreateSipRuleOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/CreateMeetingWithAttendees +func (c *Chime) CreateMeetingWithAttendeesRequest(input *CreateMeetingWithAttendeesInput) (req *request.Request, output *CreateMeetingWithAttendeesOutput) { op := &request.Operation{ - Name: opCreateSipRule, + Name: opCreateMeetingWithAttendees, HTTPMethod: "POST", - HTTPPath: "/sip-rules", + HTTPPath: "/meetings?operation=create-attendees", } if input == nil { - input = &CreateSipRuleInput{} + input = &CreateMeetingWithAttendeesInput{} } - output = &CreateSipRuleOutput{} + output = &CreateMeetingWithAttendeesOutput{} req = c.newRequest(op, input, output) return } -// CreateSipRule API operation for Amazon Chime. +// CreateMeetingWithAttendees API operation for Amazon Chime. // -// Creates a SIP rule which can be used to run a SIP media application as a -// target for a specific trigger type. +// Creates a new Amazon Chime SDK meeting in the specified media Region, with +// attendees. For more information about specifying media Regions, see Amazon +// Chime SDK Media Regions (https://docs.aws.amazon.com/chime/latest/dg/chime-sdk-meetings-regions.html) +// in the Amazon Chime Developer Guide. For more information about the Amazon +// Chime SDK, see Using the Amazon Chime SDK (https://docs.aws.amazon.com/chime/latest/dg/meetings-sdk.html) +// in the Amazon Chime Developer Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Chime's -// API operation CreateSipRule for usage and error information. +// API operation CreateMeetingWithAttendees for usage and error information. // // Returned Error Types: // * BadRequestException // The input parameters don't match the service's restrictions. // // * ForbiddenException -// The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported Region. -// -// * AccessDeniedException -// You don't have permissions to perform the requested operation. +// The client is permanently forbidden from making the request. // -// * UnauthorizedClientException -// The client is not currently authorized to make the request. +// * ResourceLimitExceededException +// The request exceeds the resource limit. // // * ThrottledClientException // The client exceeded its request rate limit. // -// * ResourceLimitExceededException -// The request exceeds the resource limit. -// -// * ConflictException -// The request could not be processed because of conflict in the current state -// of the resource. +// * UnauthorizedClientException +// The client is not currently authorized to make the request. // // * ServiceUnavailableException // The service is currently unavailable. @@ -2464,534 +2492,510 @@ func (c *Chime) CreateSipRuleRequest(input *CreateSipRuleInput) (req *request.Re // * ServiceFailureException // The service encountered an unexpected error. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/CreateSipRule -func (c *Chime) CreateSipRule(input *CreateSipRuleInput) (*CreateSipRuleOutput, error) { - req, out := c.CreateSipRuleRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/CreateMeetingWithAttendees +func (c *Chime) CreateMeetingWithAttendees(input *CreateMeetingWithAttendeesInput) (*CreateMeetingWithAttendeesOutput, error) { + req, out := c.CreateMeetingWithAttendeesRequest(input) return out, req.Send() } -// CreateSipRuleWithContext is the same as CreateSipRule with the addition of +// CreateMeetingWithAttendeesWithContext is the same as CreateMeetingWithAttendees with the addition of // the ability to pass a context and additional request options. // -// See CreateSipRule for details on how to use this API operation. +// See CreateMeetingWithAttendees 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 *Chime) CreateSipRuleWithContext(ctx aws.Context, input *CreateSipRuleInput, opts ...request.Option) (*CreateSipRuleOutput, error) { - req, out := c.CreateSipRuleRequest(input) +func (c *Chime) CreateMeetingWithAttendeesWithContext(ctx aws.Context, input *CreateMeetingWithAttendeesInput, opts ...request.Option) (*CreateMeetingWithAttendeesOutput, error) { + req, out := c.CreateMeetingWithAttendeesRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opCreateUser = "CreateUser" +const opCreatePhoneNumberOrder = "CreatePhoneNumberOrder" -// CreateUserRequest generates a "aws/request.Request" representing the -// client's request for the CreateUser operation. The "output" return +// CreatePhoneNumberOrderRequest generates a "aws/request.Request" representing the +// client's request for the CreatePhoneNumberOrder 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 CreateUser for more information on using the CreateUser +// See CreatePhoneNumberOrder for more information on using the CreatePhoneNumberOrder // 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 CreateUserRequest method. -// req, resp := client.CreateUserRequest(params) +// // Example sending a request using the CreatePhoneNumberOrderRequest method. +// req, resp := client.CreatePhoneNumberOrderRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/CreateUser -func (c *Chime) CreateUserRequest(input *CreateUserInput) (req *request.Request, output *CreateUserOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/CreatePhoneNumberOrder +func (c *Chime) CreatePhoneNumberOrderRequest(input *CreatePhoneNumberOrderInput) (req *request.Request, output *CreatePhoneNumberOrderOutput) { op := &request.Operation{ - Name: opCreateUser, + Name: opCreatePhoneNumberOrder, HTTPMethod: "POST", - HTTPPath: "/accounts/{accountId}/users?operation=create", + HTTPPath: "/phone-number-orders", } if input == nil { - input = &CreateUserInput{} + input = &CreatePhoneNumberOrderInput{} } - output = &CreateUserOutput{} + output = &CreatePhoneNumberOrderOutput{} req = c.newRequest(op, input, output) return } -// CreateUser API operation for Amazon Chime. +// CreatePhoneNumberOrder API operation for Amazon Chime. // -// Creates a user under the specified Amazon Chime account. +// Creates an order for phone numbers to be provisioned. Choose from Amazon +// Chime Business Calling and Amazon Chime Voice Connector product types. For +// toll-free numbers, you must use the Amazon Chime Voice Connector product +// type. // // 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 Chime's -// API operation CreateUser for usage and error information. +// API operation CreatePhoneNumberOrder for usage and error information. // // Returned Error Types: -// * UnauthorizedClientException -// The client is not currently authorized to make the request. -// -// * NotFoundException -// One or more of the resources in the request does not exist in the system. -// -// * ConflictException -// The request could not be processed because of conflict in the current state -// of the resource. +// * BadRequestException +// The input parameters don't match the service's restrictions. // // * ForbiddenException -// The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported Region. +// The client is permanently forbidden from making the request. // -// * BadRequestException -// The input parameters don't match the service's restrictions. +// * AccessDeniedException +// You don't have permissions to perform the requested operation. +// +// * UnauthorizedClientException +// The client is not currently authorized to make the request. // // * ThrottledClientException // The client exceeded its request rate limit. // +// * ResourceLimitExceededException +// The request exceeds the resource limit. +// // * ServiceUnavailableException // The service is currently unavailable. // // * ServiceFailureException // The service encountered an unexpected error. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/CreateUser -func (c *Chime) CreateUser(input *CreateUserInput) (*CreateUserOutput, error) { - req, out := c.CreateUserRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/CreatePhoneNumberOrder +func (c *Chime) CreatePhoneNumberOrder(input *CreatePhoneNumberOrderInput) (*CreatePhoneNumberOrderOutput, error) { + req, out := c.CreatePhoneNumberOrderRequest(input) return out, req.Send() } -// CreateUserWithContext is the same as CreateUser with the addition of +// CreatePhoneNumberOrderWithContext is the same as CreatePhoneNumberOrder with the addition of // the ability to pass a context and additional request options. // -// See CreateUser for details on how to use this API operation. +// See CreatePhoneNumberOrder 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 *Chime) CreateUserWithContext(ctx aws.Context, input *CreateUserInput, opts ...request.Option) (*CreateUserOutput, error) { - req, out := c.CreateUserRequest(input) +func (c *Chime) CreatePhoneNumberOrderWithContext(ctx aws.Context, input *CreatePhoneNumberOrderInput, opts ...request.Option) (*CreatePhoneNumberOrderOutput, error) { + req, out := c.CreatePhoneNumberOrderRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opCreateVoiceConnector = "CreateVoiceConnector" +const opCreateProxySession = "CreateProxySession" -// CreateVoiceConnectorRequest generates a "aws/request.Request" representing the -// client's request for the CreateVoiceConnector operation. The "output" return +// CreateProxySessionRequest generates a "aws/request.Request" representing the +// client's request for the CreateProxySession 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 CreateVoiceConnector for more information on using the CreateVoiceConnector +// See CreateProxySession for more information on using the CreateProxySession // 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 CreateVoiceConnectorRequest method. -// req, resp := client.CreateVoiceConnectorRequest(params) +// // Example sending a request using the CreateProxySessionRequest method. +// req, resp := client.CreateProxySessionRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/CreateVoiceConnector -func (c *Chime) CreateVoiceConnectorRequest(input *CreateVoiceConnectorInput) (req *request.Request, output *CreateVoiceConnectorOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/CreateProxySession +func (c *Chime) CreateProxySessionRequest(input *CreateProxySessionInput) (req *request.Request, output *CreateProxySessionOutput) { op := &request.Operation{ - Name: opCreateVoiceConnector, + Name: opCreateProxySession, HTTPMethod: "POST", - HTTPPath: "/voice-connectors", + HTTPPath: "/voice-connectors/{voiceConnectorId}/proxy-sessions", } if input == nil { - input = &CreateVoiceConnectorInput{} + input = &CreateProxySessionInput{} } - output = &CreateVoiceConnectorOutput{} + output = &CreateProxySessionOutput{} req = c.newRequest(op, input, output) return } -// CreateVoiceConnector API operation for Amazon Chime. -// -// Creates an Amazon Chime Voice Connector under the administrator's AWS account. -// You can choose to create an Amazon Chime Voice Connector in a specific AWS -// Region. +// CreateProxySession API operation for Amazon Chime. // -// Enabling CreateVoiceConnectorRequest$RequireEncryption configures your Amazon -// Chime Voice Connector to use TLS transport for SIP signaling and Secure RTP -// (SRTP) for media. Inbound calls use TLS transport, and unencrypted outbound -// calls are blocked. +// Creates a proxy session on the specified Amazon Chime Voice Connector for +// the specified participant phone numbers. // // 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 Chime's -// API operation CreateVoiceConnector for usage and error information. +// API operation CreateProxySession for usage and error information. // // Returned Error Types: -// * BadRequestException -// The input parameters don't match the service's restrictions. +// * UnauthorizedClientException +// The client is not currently authorized to make the request. // -// * ForbiddenException -// The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported Region. +// * NotFoundException +// One or more of the resources in the request does not exist in the system. // -// * AccessDeniedException -// You don't have permissions to perform the requested operation. +// * ForbiddenException +// The client is permanently forbidden from making the request. // -// * UnauthorizedClientException -// The client is not currently authorized to make the request. +// * BadRequestException +// The input parameters don't match the service's restrictions. // // * ThrottledClientException // The client exceeded its request rate limit. // -// * ResourceLimitExceededException -// The request exceeds the resource limit. -// // * ServiceUnavailableException // The service is currently unavailable. // // * ServiceFailureException // The service encountered an unexpected error. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/CreateVoiceConnector -func (c *Chime) CreateVoiceConnector(input *CreateVoiceConnectorInput) (*CreateVoiceConnectorOutput, error) { - req, out := c.CreateVoiceConnectorRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/CreateProxySession +func (c *Chime) CreateProxySession(input *CreateProxySessionInput) (*CreateProxySessionOutput, error) { + req, out := c.CreateProxySessionRequest(input) return out, req.Send() } -// CreateVoiceConnectorWithContext is the same as CreateVoiceConnector with the addition of +// CreateProxySessionWithContext is the same as CreateProxySession with the addition of // the ability to pass a context and additional request options. // -// See CreateVoiceConnector for details on how to use this API operation. +// See CreateProxySession 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 *Chime) CreateVoiceConnectorWithContext(ctx aws.Context, input *CreateVoiceConnectorInput, opts ...request.Option) (*CreateVoiceConnectorOutput, error) { - req, out := c.CreateVoiceConnectorRequest(input) +func (c *Chime) CreateProxySessionWithContext(ctx aws.Context, input *CreateProxySessionInput, opts ...request.Option) (*CreateProxySessionOutput, error) { + req, out := c.CreateProxySessionRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opCreateVoiceConnectorGroup = "CreateVoiceConnectorGroup" +const opCreateRoom = "CreateRoom" -// CreateVoiceConnectorGroupRequest generates a "aws/request.Request" representing the -// client's request for the CreateVoiceConnectorGroup operation. The "output" return +// CreateRoomRequest generates a "aws/request.Request" representing the +// client's request for the CreateRoom 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 CreateVoiceConnectorGroup for more information on using the CreateVoiceConnectorGroup +// See CreateRoom for more information on using the CreateRoom // 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 CreateVoiceConnectorGroupRequest method. -// req, resp := client.CreateVoiceConnectorGroupRequest(params) +// // Example sending a request using the CreateRoomRequest method. +// req, resp := client.CreateRoomRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/CreateVoiceConnectorGroup -func (c *Chime) CreateVoiceConnectorGroupRequest(input *CreateVoiceConnectorGroupInput) (req *request.Request, output *CreateVoiceConnectorGroupOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/CreateRoom +func (c *Chime) CreateRoomRequest(input *CreateRoomInput) (req *request.Request, output *CreateRoomOutput) { op := &request.Operation{ - Name: opCreateVoiceConnectorGroup, + Name: opCreateRoom, HTTPMethod: "POST", - HTTPPath: "/voice-connector-groups", + HTTPPath: "/accounts/{accountId}/rooms", } if input == nil { - input = &CreateVoiceConnectorGroupInput{} + input = &CreateRoomInput{} } - output = &CreateVoiceConnectorGroupOutput{} + output = &CreateRoomOutput{} req = c.newRequest(op, input, output) return } -// CreateVoiceConnectorGroup API operation for Amazon Chime. -// -// Creates an Amazon Chime Voice Connector group under the administrator's AWS -// account. You can associate Amazon Chime Voice Connectors with the Amazon -// Chime Voice Connector group by including VoiceConnectorItems in the request. +// CreateRoom API operation for Amazon Chime. // -// You can include Amazon Chime Voice Connectors from different AWS Regions -// in your group. This creates a fault tolerant mechanism for fallback in case -// of availability events. +// Creates a chat room for the specified Amazon Chime Enterprise account. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Chime's -// API operation CreateVoiceConnectorGroup for usage and error information. +// API operation CreateRoom for usage and error information. // // Returned Error Types: +// * NotFoundException +// One or more of the resources in the request does not exist in the system. +// // * BadRequestException // The input parameters don't match the service's restrictions. // // * ForbiddenException -// The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported Region. -// -// * AccessDeniedException -// You don't have permissions to perform the requested operation. +// The client is permanently forbidden from making the request. // // * UnauthorizedClientException // The client is not currently authorized to make the request. // -// * ThrottledClientException -// The client exceeded its request rate limit. -// // * ResourceLimitExceededException // The request exceeds the resource limit. // +// * ThrottledClientException +// The client exceeded its request rate limit. +// // * ServiceUnavailableException // The service is currently unavailable. // // * ServiceFailureException // The service encountered an unexpected error. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/CreateVoiceConnectorGroup -func (c *Chime) CreateVoiceConnectorGroup(input *CreateVoiceConnectorGroupInput) (*CreateVoiceConnectorGroupOutput, error) { - req, out := c.CreateVoiceConnectorGroupRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/CreateRoom +func (c *Chime) CreateRoom(input *CreateRoomInput) (*CreateRoomOutput, error) { + req, out := c.CreateRoomRequest(input) return out, req.Send() } -// CreateVoiceConnectorGroupWithContext is the same as CreateVoiceConnectorGroup with the addition of +// CreateRoomWithContext is the same as CreateRoom with the addition of // the ability to pass a context and additional request options. // -// See CreateVoiceConnectorGroup for details on how to use this API operation. +// See CreateRoom 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 *Chime) CreateVoiceConnectorGroupWithContext(ctx aws.Context, input *CreateVoiceConnectorGroupInput, opts ...request.Option) (*CreateVoiceConnectorGroupOutput, error) { - req, out := c.CreateVoiceConnectorGroupRequest(input) +func (c *Chime) CreateRoomWithContext(ctx aws.Context, input *CreateRoomInput, opts ...request.Option) (*CreateRoomOutput, error) { + req, out := c.CreateRoomRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opDeleteAccount = "DeleteAccount" +const opCreateRoomMembership = "CreateRoomMembership" -// DeleteAccountRequest generates a "aws/request.Request" representing the -// client's request for the DeleteAccount operation. The "output" return +// CreateRoomMembershipRequest generates a "aws/request.Request" representing the +// client's request for the CreateRoomMembership 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 DeleteAccount for more information on using the DeleteAccount +// See CreateRoomMembership for more information on using the CreateRoomMembership // 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 DeleteAccountRequest method. -// req, resp := client.DeleteAccountRequest(params) +// // Example sending a request using the CreateRoomMembershipRequest method. +// req, resp := client.CreateRoomMembershipRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DeleteAccount -func (c *Chime) DeleteAccountRequest(input *DeleteAccountInput) (req *request.Request, output *DeleteAccountOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/CreateRoomMembership +func (c *Chime) CreateRoomMembershipRequest(input *CreateRoomMembershipInput) (req *request.Request, output *CreateRoomMembershipOutput) { op := &request.Operation{ - Name: opDeleteAccount, - HTTPMethod: "DELETE", - HTTPPath: "/accounts/{accountId}", + Name: opCreateRoomMembership, + HTTPMethod: "POST", + HTTPPath: "/accounts/{accountId}/rooms/{roomId}/memberships", } if input == nil { - input = &DeleteAccountInput{} + input = &CreateRoomMembershipInput{} } - output = &DeleteAccountOutput{} + output = &CreateRoomMembershipOutput{} req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// DeleteAccount API operation for Amazon Chime. -// -// Deletes the specified Amazon Chime account. You must suspend all users before -// deleting a Team account. You can use the BatchSuspendUser action to do so. -// -// For EnterpriseLWA and EnterpriseAD accounts, you must release the claimed -// domains for your Amazon Chime account before deletion. As soon as you release -// the domain, all users under that account are suspended. -// -// Deleted accounts appear in your Disabled accounts list for 90 days. To restore -// a deleted account from your Disabled accounts list, you must contact AWS -// Support. +// CreateRoomMembership API operation for Amazon Chime. // -// After 90 days, deleted accounts are permanently removed from your Disabled -// accounts list. +// Adds a member to a chat room in an Amazon Chime Enterprise account. A member +// can be either a user or a bot. The member role designates whether the member +// is a chat room administrator or a general chat room member. // // 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 Chime's -// API operation DeleteAccount for usage and error information. +// API operation CreateRoomMembership for usage and error information. // // Returned Error Types: +// * ConflictException +// The request could not be processed because of conflict in the current state +// of the resource. +// // * UnauthorizedClientException // The client is not currently authorized to make the request. // // * NotFoundException // One or more of the resources in the request does not exist in the system. // -// * ForbiddenException -// The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported Region. -// // * BadRequestException // The input parameters don't match the service's restrictions. // +// * ForbiddenException +// The client is permanently forbidden from making the request. +// +// * ResourceLimitExceededException +// The request exceeds the resource limit. +// // * ThrottledClientException // The client exceeded its request rate limit. // -// * UnprocessableEntityException -// The request was well-formed but was unable to be followed due to semantic -// errors. -// // * ServiceUnavailableException // The service is currently unavailable. // // * ServiceFailureException // The service encountered an unexpected error. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DeleteAccount -func (c *Chime) DeleteAccount(input *DeleteAccountInput) (*DeleteAccountOutput, error) { - req, out := c.DeleteAccountRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/CreateRoomMembership +func (c *Chime) CreateRoomMembership(input *CreateRoomMembershipInput) (*CreateRoomMembershipOutput, error) { + req, out := c.CreateRoomMembershipRequest(input) return out, req.Send() } -// DeleteAccountWithContext is the same as DeleteAccount with the addition of +// CreateRoomMembershipWithContext is the same as CreateRoomMembership with the addition of // the ability to pass a context and additional request options. // -// See DeleteAccount for details on how to use this API operation. +// See CreateRoomMembership 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 *Chime) DeleteAccountWithContext(ctx aws.Context, input *DeleteAccountInput, opts ...request.Option) (*DeleteAccountOutput, error) { - req, out := c.DeleteAccountRequest(input) +func (c *Chime) CreateRoomMembershipWithContext(ctx aws.Context, input *CreateRoomMembershipInput, opts ...request.Option) (*CreateRoomMembershipOutput, error) { + req, out := c.CreateRoomMembershipRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opDeleteAttendee = "DeleteAttendee" +const opCreateSipMediaApplication = "CreateSipMediaApplication" -// DeleteAttendeeRequest generates a "aws/request.Request" representing the -// client's request for the DeleteAttendee operation. The "output" return +// CreateSipMediaApplicationRequest generates a "aws/request.Request" representing the +// client's request for the CreateSipMediaApplication 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 DeleteAttendee for more information on using the DeleteAttendee +// See CreateSipMediaApplication for more information on using the CreateSipMediaApplication // 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 DeleteAttendeeRequest method. -// req, resp := client.DeleteAttendeeRequest(params) +// // Example sending a request using the CreateSipMediaApplicationRequest method. +// req, resp := client.CreateSipMediaApplicationRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DeleteAttendee -func (c *Chime) DeleteAttendeeRequest(input *DeleteAttendeeInput) (req *request.Request, output *DeleteAttendeeOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/CreateSipMediaApplication +func (c *Chime) CreateSipMediaApplicationRequest(input *CreateSipMediaApplicationInput) (req *request.Request, output *CreateSipMediaApplicationOutput) { op := &request.Operation{ - Name: opDeleteAttendee, - HTTPMethod: "DELETE", - HTTPPath: "/meetings/{meetingId}/attendees/{attendeeId}", + Name: opCreateSipMediaApplication, + HTTPMethod: "POST", + HTTPPath: "/sip-media-applications", } if input == nil { - input = &DeleteAttendeeInput{} + input = &CreateSipMediaApplicationInput{} } - output = &DeleteAttendeeOutput{} + output = &CreateSipMediaApplicationOutput{} req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// DeleteAttendee API operation for Amazon Chime. +// CreateSipMediaApplication API operation for Amazon Chime. // -// Deletes an attendee from the specified Amazon Chime SDK meeting and deletes -// their JoinToken. Attendees are automatically deleted when a Amazon Chime -// SDK meeting is deleted. For more information about the Amazon Chime SDK, -// see Using the Amazon Chime SDK (https://docs.aws.amazon.com/chime/latest/dg/meetings-sdk.html) -// in the Amazon Chime Developer Guide. +// Creates a SIP media application. // // 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 Chime's -// API operation DeleteAttendee for usage and error information. +// API operation CreateSipMediaApplication for usage and error information. // // Returned Error Types: // * BadRequestException // The input parameters don't match the service's restrictions. // // * ForbiddenException -// The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported Region. +// The client is permanently forbidden from making the request. +// +// * AccessDeniedException +// You don't have permissions to perform the requested operation. +// +// * UnauthorizedClientException +// The client is not currently authorized to make the request. // // * ThrottledClientException // The client exceeded its request rate limit. // -// * NotFoundException -// One or more of the resources in the request does not exist in the system. +// * ResourceLimitExceededException +// The request exceeds the resource limit. // -// * UnauthorizedClientException -// The client is not currently authorized to make the request. +// * ConflictException +// The request could not be processed because of conflict in the current state +// of the resource. // // * ServiceUnavailableException // The service is currently unavailable. @@ -2999,197 +3003,202 @@ func (c *Chime) DeleteAttendeeRequest(input *DeleteAttendeeInput) (req *request. // * ServiceFailureException // The service encountered an unexpected error. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DeleteAttendee -func (c *Chime) DeleteAttendee(input *DeleteAttendeeInput) (*DeleteAttendeeOutput, error) { - req, out := c.DeleteAttendeeRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/CreateSipMediaApplication +func (c *Chime) CreateSipMediaApplication(input *CreateSipMediaApplicationInput) (*CreateSipMediaApplicationOutput, error) { + req, out := c.CreateSipMediaApplicationRequest(input) return out, req.Send() } -// DeleteAttendeeWithContext is the same as DeleteAttendee with the addition of +// CreateSipMediaApplicationWithContext is the same as CreateSipMediaApplication with the addition of // the ability to pass a context and additional request options. // -// See DeleteAttendee for details on how to use this API operation. +// See CreateSipMediaApplication 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 *Chime) DeleteAttendeeWithContext(ctx aws.Context, input *DeleteAttendeeInput, opts ...request.Option) (*DeleteAttendeeOutput, error) { - req, out := c.DeleteAttendeeRequest(input) +func (c *Chime) CreateSipMediaApplicationWithContext(ctx aws.Context, input *CreateSipMediaApplicationInput, opts ...request.Option) (*CreateSipMediaApplicationOutput, error) { + req, out := c.CreateSipMediaApplicationRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opDeleteEventsConfiguration = "DeleteEventsConfiguration" +const opCreateSipMediaApplicationCall = "CreateSipMediaApplicationCall" -// DeleteEventsConfigurationRequest generates a "aws/request.Request" representing the -// client's request for the DeleteEventsConfiguration operation. The "output" return +// CreateSipMediaApplicationCallRequest generates a "aws/request.Request" representing the +// client's request for the CreateSipMediaApplicationCall 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 DeleteEventsConfiguration for more information on using the DeleteEventsConfiguration +// See CreateSipMediaApplicationCall for more information on using the CreateSipMediaApplicationCall // 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 DeleteEventsConfigurationRequest method. -// req, resp := client.DeleteEventsConfigurationRequest(params) +// // Example sending a request using the CreateSipMediaApplicationCallRequest method. +// req, resp := client.CreateSipMediaApplicationCallRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DeleteEventsConfiguration -func (c *Chime) DeleteEventsConfigurationRequest(input *DeleteEventsConfigurationInput) (req *request.Request, output *DeleteEventsConfigurationOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/CreateSipMediaApplicationCall +func (c *Chime) CreateSipMediaApplicationCallRequest(input *CreateSipMediaApplicationCallInput) (req *request.Request, output *CreateSipMediaApplicationCallOutput) { op := &request.Operation{ - Name: opDeleteEventsConfiguration, - HTTPMethod: "DELETE", - HTTPPath: "/accounts/{accountId}/bots/{botId}/events-configuration", + Name: opCreateSipMediaApplicationCall, + HTTPMethod: "POST", + HTTPPath: "/sip-media-applications/{sipMediaApplicationId}/calls", } if input == nil { - input = &DeleteEventsConfigurationInput{} + input = &CreateSipMediaApplicationCallInput{} } - output = &DeleteEventsConfigurationOutput{} + output = &CreateSipMediaApplicationCallOutput{} req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// DeleteEventsConfiguration API operation for Amazon Chime. +// CreateSipMediaApplicationCall API operation for Amazon Chime. // -// Deletes the events configuration that allows a bot to receive outgoing events. +// Creates an outbound call to a phone number from the phone number specified +// in the request, and it invokes the endpoint of the specified sipMediaApplicationId. // // 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 Chime's -// API operation DeleteEventsConfiguration for usage and error information. +// API operation CreateSipMediaApplicationCall for usage and error information. // // Returned Error Types: -// * ServiceUnavailableException -// The service is currently unavailable. -// -// * ServiceFailureException -// The service encountered an unexpected error. +// * BadRequestException +// The input parameters don't match the service's restrictions. // // * ForbiddenException -// The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported Region. +// The client is permanently forbidden from making the request. // -// * BadRequestException -// The input parameters don't match the service's restrictions. +// * ResourceLimitExceededException +// The request exceeds the resource limit. +// +// * ThrottledClientException +// The client exceeded its request rate limit. // // * UnauthorizedClientException // The client is not currently authorized to make the request. // -// * ResourceLimitExceededException -// The request exceeds the resource limit. +// * ServiceUnavailableException +// The service is currently unavailable. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DeleteEventsConfiguration -func (c *Chime) DeleteEventsConfiguration(input *DeleteEventsConfigurationInput) (*DeleteEventsConfigurationOutput, error) { - req, out := c.DeleteEventsConfigurationRequest(input) +// * ServiceFailureException +// The service encountered an unexpected error. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/CreateSipMediaApplicationCall +func (c *Chime) CreateSipMediaApplicationCall(input *CreateSipMediaApplicationCallInput) (*CreateSipMediaApplicationCallOutput, error) { + req, out := c.CreateSipMediaApplicationCallRequest(input) return out, req.Send() } -// DeleteEventsConfigurationWithContext is the same as DeleteEventsConfiguration with the addition of +// CreateSipMediaApplicationCallWithContext is the same as CreateSipMediaApplicationCall with the addition of // the ability to pass a context and additional request options. // -// See DeleteEventsConfiguration for details on how to use this API operation. +// See CreateSipMediaApplicationCall 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 *Chime) DeleteEventsConfigurationWithContext(ctx aws.Context, input *DeleteEventsConfigurationInput, opts ...request.Option) (*DeleteEventsConfigurationOutput, error) { - req, out := c.DeleteEventsConfigurationRequest(input) +func (c *Chime) CreateSipMediaApplicationCallWithContext(ctx aws.Context, input *CreateSipMediaApplicationCallInput, opts ...request.Option) (*CreateSipMediaApplicationCallOutput, error) { + req, out := c.CreateSipMediaApplicationCallRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opDeleteMeeting = "DeleteMeeting" +const opCreateSipRule = "CreateSipRule" -// DeleteMeetingRequest generates a "aws/request.Request" representing the -// client's request for the DeleteMeeting operation. The "output" return +// CreateSipRuleRequest generates a "aws/request.Request" representing the +// client's request for the CreateSipRule 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 DeleteMeeting for more information on using the DeleteMeeting +// See CreateSipRule for more information on using the CreateSipRule // 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 DeleteMeetingRequest method. -// req, resp := client.DeleteMeetingRequest(params) +// // Example sending a request using the CreateSipRuleRequest method. +// req, resp := client.CreateSipRuleRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DeleteMeeting -func (c *Chime) DeleteMeetingRequest(input *DeleteMeetingInput) (req *request.Request, output *DeleteMeetingOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/CreateSipRule +func (c *Chime) CreateSipRuleRequest(input *CreateSipRuleInput) (req *request.Request, output *CreateSipRuleOutput) { op := &request.Operation{ - Name: opDeleteMeeting, - HTTPMethod: "DELETE", - HTTPPath: "/meetings/{meetingId}", + Name: opCreateSipRule, + HTTPMethod: "POST", + HTTPPath: "/sip-rules", } if input == nil { - input = &DeleteMeetingInput{} + input = &CreateSipRuleInput{} } - output = &DeleteMeetingOutput{} + output = &CreateSipRuleOutput{} req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// DeleteMeeting API operation for Amazon Chime. +// CreateSipRule API operation for Amazon Chime. // -// Deletes the specified Amazon Chime SDK meeting. When a meeting is deleted, -// its attendees are also deleted and clients can no longer join it. For more -// information about the Amazon Chime SDK, see Using the Amazon Chime SDK (https://docs.aws.amazon.com/chime/latest/dg/meetings-sdk.html) -// in the Amazon Chime Developer Guide. +// Creates a SIP rule which can be used to run a SIP media application as a +// target for a specific trigger type. // // 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 Chime's -// API operation DeleteMeeting for usage and error information. +// API operation CreateSipRule for usage and error information. // // Returned Error Types: // * BadRequestException // The input parameters don't match the service's restrictions. // // * ForbiddenException -// The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported Region. +// The client is permanently forbidden from making the request. +// +// * AccessDeniedException +// You don't have permissions to perform the requested operation. +// +// * UnauthorizedClientException +// The client is not currently authorized to make the request. // // * ThrottledClientException // The client exceeded its request rate limit. // -// * NotFoundException -// One or more of the resources in the request does not exist in the system. +// * ResourceLimitExceededException +// The request exceeds the resource limit. // -// * UnauthorizedClientException -// The client is not currently authorized to make the request. +// * ConflictException +// The request could not be processed because of conflict in the current state +// of the resource. // // * ServiceUnavailableException // The service is currently unavailable. @@ -3197,86 +3206,80 @@ func (c *Chime) DeleteMeetingRequest(input *DeleteMeetingInput) (req *request.Re // * ServiceFailureException // The service encountered an unexpected error. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DeleteMeeting -func (c *Chime) DeleteMeeting(input *DeleteMeetingInput) (*DeleteMeetingOutput, error) { - req, out := c.DeleteMeetingRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/CreateSipRule +func (c *Chime) CreateSipRule(input *CreateSipRuleInput) (*CreateSipRuleOutput, error) { + req, out := c.CreateSipRuleRequest(input) return out, req.Send() } -// DeleteMeetingWithContext is the same as DeleteMeeting with the addition of +// CreateSipRuleWithContext is the same as CreateSipRule with the addition of // the ability to pass a context and additional request options. // -// See DeleteMeeting for details on how to use this API operation. +// See CreateSipRule 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 *Chime) DeleteMeetingWithContext(ctx aws.Context, input *DeleteMeetingInput, opts ...request.Option) (*DeleteMeetingOutput, error) { - req, out := c.DeleteMeetingRequest(input) +func (c *Chime) CreateSipRuleWithContext(ctx aws.Context, input *CreateSipRuleInput, opts ...request.Option) (*CreateSipRuleOutput, error) { + req, out := c.CreateSipRuleRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opDeletePhoneNumber = "DeletePhoneNumber" +const opCreateUser = "CreateUser" -// DeletePhoneNumberRequest generates a "aws/request.Request" representing the -// client's request for the DeletePhoneNumber operation. The "output" return +// CreateUserRequest generates a "aws/request.Request" representing the +// client's request for the CreateUser 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 DeletePhoneNumber for more information on using the DeletePhoneNumber +// See CreateUser for more information on using the CreateUser // 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 DeletePhoneNumberRequest method. -// req, resp := client.DeletePhoneNumberRequest(params) +// // Example sending a request using the CreateUserRequest method. +// req, resp := client.CreateUserRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DeletePhoneNumber -func (c *Chime) DeletePhoneNumberRequest(input *DeletePhoneNumberInput) (req *request.Request, output *DeletePhoneNumberOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/CreateUser +func (c *Chime) CreateUserRequest(input *CreateUserInput) (req *request.Request, output *CreateUserOutput) { op := &request.Operation{ - Name: opDeletePhoneNumber, - HTTPMethod: "DELETE", - HTTPPath: "/phone-numbers/{phoneNumberId}", + Name: opCreateUser, + HTTPMethod: "POST", + HTTPPath: "/accounts/{accountId}/users?operation=create", } if input == nil { - input = &DeletePhoneNumberInput{} + input = &CreateUserInput{} } - output = &DeletePhoneNumberOutput{} + output = &CreateUserOutput{} req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// DeletePhoneNumber API operation for Amazon Chime. -// -// Moves the specified phone number into the Deletion queue. A phone number -// must be disassociated from any users or Amazon Chime Voice Connectors before -// it can be deleted. +// CreateUser API operation for Amazon Chime. // -// Deleted phone numbers remain in the Deletion queue for 7 days before they -// are deleted permanently. +// Creates a user under the specified Amazon Chime account. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Chime's -// API operation DeletePhoneNumber for usage and error information. +// API operation CreateUser for usage and error information. // // Returned Error Types: // * UnauthorizedClientException @@ -3285,9 +3288,12 @@ func (c *Chime) DeletePhoneNumberRequest(input *DeletePhoneNumberInput) (req *re // * NotFoundException // One or more of the resources in the request does not exist in the system. // +// * ConflictException +// The request could not be processed because of conflict in the current state +// of the resource. +// // * ForbiddenException -// The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported Region. +// The client is permanently forbidden from making the request. // // * BadRequestException // The input parameters don't match the service's restrictions. @@ -3301,192 +3307,203 @@ func (c *Chime) DeletePhoneNumberRequest(input *DeletePhoneNumberInput) (req *re // * ServiceFailureException // The service encountered an unexpected error. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DeletePhoneNumber -func (c *Chime) DeletePhoneNumber(input *DeletePhoneNumberInput) (*DeletePhoneNumberOutput, error) { - req, out := c.DeletePhoneNumberRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/CreateUser +func (c *Chime) CreateUser(input *CreateUserInput) (*CreateUserOutput, error) { + req, out := c.CreateUserRequest(input) return out, req.Send() } -// DeletePhoneNumberWithContext is the same as DeletePhoneNumber with the addition of +// CreateUserWithContext is the same as CreateUser with the addition of // the ability to pass a context and additional request options. // -// See DeletePhoneNumber for details on how to use this API operation. +// See CreateUser 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 *Chime) DeletePhoneNumberWithContext(ctx aws.Context, input *DeletePhoneNumberInput, opts ...request.Option) (*DeletePhoneNumberOutput, error) { - req, out := c.DeletePhoneNumberRequest(input) +func (c *Chime) CreateUserWithContext(ctx aws.Context, input *CreateUserInput, opts ...request.Option) (*CreateUserOutput, error) { + req, out := c.CreateUserRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opDeleteProxySession = "DeleteProxySession" +const opCreateVoiceConnector = "CreateVoiceConnector" -// DeleteProxySessionRequest generates a "aws/request.Request" representing the -// client's request for the DeleteProxySession operation. The "output" return +// CreateVoiceConnectorRequest generates a "aws/request.Request" representing the +// client's request for the CreateVoiceConnector 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 DeleteProxySession for more information on using the DeleteProxySession +// See CreateVoiceConnector for more information on using the CreateVoiceConnector // 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 DeleteProxySessionRequest method. -// req, resp := client.DeleteProxySessionRequest(params) +// // Example sending a request using the CreateVoiceConnectorRequest method. +// req, resp := client.CreateVoiceConnectorRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DeleteProxySession -func (c *Chime) DeleteProxySessionRequest(input *DeleteProxySessionInput) (req *request.Request, output *DeleteProxySessionOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/CreateVoiceConnector +func (c *Chime) CreateVoiceConnectorRequest(input *CreateVoiceConnectorInput) (req *request.Request, output *CreateVoiceConnectorOutput) { op := &request.Operation{ - Name: opDeleteProxySession, - HTTPMethod: "DELETE", - HTTPPath: "/voice-connectors/{voiceConnectorId}/proxy-sessions/{proxySessionId}", + Name: opCreateVoiceConnector, + HTTPMethod: "POST", + HTTPPath: "/voice-connectors", } if input == nil { - input = &DeleteProxySessionInput{} + input = &CreateVoiceConnectorInput{} } - output = &DeleteProxySessionOutput{} + output = &CreateVoiceConnectorOutput{} req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// DeleteProxySession API operation for Amazon Chime. +// CreateVoiceConnector API operation for Amazon Chime. // -// Deletes the specified proxy session from the specified Amazon Chime Voice -// Connector. +// Creates an Amazon Chime Voice Connector under the administrator's AWS account. +// You can choose to create an Amazon Chime Voice Connector in a specific AWS +// Region. +// +// Enabling CreateVoiceConnectorRequest$RequireEncryption configures your Amazon +// Chime Voice Connector to use TLS transport for SIP signaling and Secure RTP +// (SRTP) for media. Inbound calls use TLS transport, and unencrypted outbound +// calls are blocked. // // 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 Chime's -// API operation DeleteProxySession for usage and error information. +// API operation CreateVoiceConnector for usage and error information. // // Returned Error Types: -// * UnauthorizedClientException -// The client is not currently authorized to make the request. -// -// * NotFoundException -// One or more of the resources in the request does not exist in the system. +// * BadRequestException +// The input parameters don't match the service's restrictions. // // * ForbiddenException -// The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported Region. +// The client is permanently forbidden from making the request. // -// * BadRequestException -// The input parameters don't match the service's restrictions. +// * AccessDeniedException +// You don't have permissions to perform the requested operation. +// +// * UnauthorizedClientException +// The client is not currently authorized to make the request. // // * ThrottledClientException // The client exceeded its request rate limit. // +// * ResourceLimitExceededException +// The request exceeds the resource limit. +// // * ServiceUnavailableException // The service is currently unavailable. // // * ServiceFailureException // The service encountered an unexpected error. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DeleteProxySession -func (c *Chime) DeleteProxySession(input *DeleteProxySessionInput) (*DeleteProxySessionOutput, error) { - req, out := c.DeleteProxySessionRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/CreateVoiceConnector +func (c *Chime) CreateVoiceConnector(input *CreateVoiceConnectorInput) (*CreateVoiceConnectorOutput, error) { + req, out := c.CreateVoiceConnectorRequest(input) return out, req.Send() } -// DeleteProxySessionWithContext is the same as DeleteProxySession with the addition of +// CreateVoiceConnectorWithContext is the same as CreateVoiceConnector with the addition of // the ability to pass a context and additional request options. // -// See DeleteProxySession for details on how to use this API operation. +// See CreateVoiceConnector 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 *Chime) DeleteProxySessionWithContext(ctx aws.Context, input *DeleteProxySessionInput, opts ...request.Option) (*DeleteProxySessionOutput, error) { - req, out := c.DeleteProxySessionRequest(input) +func (c *Chime) CreateVoiceConnectorWithContext(ctx aws.Context, input *CreateVoiceConnectorInput, opts ...request.Option) (*CreateVoiceConnectorOutput, error) { + req, out := c.CreateVoiceConnectorRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opDeleteRoom = "DeleteRoom" +const opCreateVoiceConnectorGroup = "CreateVoiceConnectorGroup" -// DeleteRoomRequest generates a "aws/request.Request" representing the -// client's request for the DeleteRoom operation. The "output" return +// CreateVoiceConnectorGroupRequest generates a "aws/request.Request" representing the +// client's request for the CreateVoiceConnectorGroup 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 DeleteRoom for more information on using the DeleteRoom +// See CreateVoiceConnectorGroup for more information on using the CreateVoiceConnectorGroup // 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 DeleteRoomRequest method. -// req, resp := client.DeleteRoomRequest(params) +// // Example sending a request using the CreateVoiceConnectorGroupRequest method. +// req, resp := client.CreateVoiceConnectorGroupRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DeleteRoom -func (c *Chime) DeleteRoomRequest(input *DeleteRoomInput) (req *request.Request, output *DeleteRoomOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/CreateVoiceConnectorGroup +func (c *Chime) CreateVoiceConnectorGroupRequest(input *CreateVoiceConnectorGroupInput) (req *request.Request, output *CreateVoiceConnectorGroupOutput) { op := &request.Operation{ - Name: opDeleteRoom, - HTTPMethod: "DELETE", - HTTPPath: "/accounts/{accountId}/rooms/{roomId}", + Name: opCreateVoiceConnectorGroup, + HTTPMethod: "POST", + HTTPPath: "/voice-connector-groups", } if input == nil { - input = &DeleteRoomInput{} + input = &CreateVoiceConnectorGroupInput{} } - output = &DeleteRoomOutput{} + output = &CreateVoiceConnectorGroupOutput{} req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// DeleteRoom API operation for Amazon Chime. +// CreateVoiceConnectorGroup API operation for Amazon Chime. // -// Deletes a chat room in an Amazon Chime Enterprise account. +// Creates an Amazon Chime Voice Connector group under the administrator's AWS +// account. You can associate Amazon Chime Voice Connectors with the Amazon +// Chime Voice Connector group by including VoiceConnectorItems in the request. +// +// You can include Amazon Chime Voice Connectors from different AWS Regions +// in your group. This creates a fault tolerant mechanism for fallback in case +// of availability events. // // 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 Chime's -// API operation DeleteRoom for usage and error information. +// API operation CreateVoiceConnectorGroup for usage and error information. // // Returned Error Types: // * BadRequestException // The input parameters don't match the service's restrictions. // // * ForbiddenException -// The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported Region. +// The client is permanently forbidden from making the request. // -// * NotFoundException -// One or more of the resources in the request does not exist in the system. +// * AccessDeniedException +// You don't have permissions to perform the requested operation. // // * UnauthorizedClientException // The client is not currently authorized to make the request. @@ -3494,87 +3511,102 @@ func (c *Chime) DeleteRoomRequest(input *DeleteRoomInput) (req *request.Request, // * ThrottledClientException // The client exceeded its request rate limit. // +// * ResourceLimitExceededException +// The request exceeds the resource limit. +// // * ServiceUnavailableException // The service is currently unavailable. // // * ServiceFailureException // The service encountered an unexpected error. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DeleteRoom -func (c *Chime) DeleteRoom(input *DeleteRoomInput) (*DeleteRoomOutput, error) { - req, out := c.DeleteRoomRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/CreateVoiceConnectorGroup +func (c *Chime) CreateVoiceConnectorGroup(input *CreateVoiceConnectorGroupInput) (*CreateVoiceConnectorGroupOutput, error) { + req, out := c.CreateVoiceConnectorGroupRequest(input) return out, req.Send() } -// DeleteRoomWithContext is the same as DeleteRoom with the addition of +// CreateVoiceConnectorGroupWithContext is the same as CreateVoiceConnectorGroup with the addition of // the ability to pass a context and additional request options. // -// See DeleteRoom for details on how to use this API operation. +// See CreateVoiceConnectorGroup 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 *Chime) DeleteRoomWithContext(ctx aws.Context, input *DeleteRoomInput, opts ...request.Option) (*DeleteRoomOutput, error) { - req, out := c.DeleteRoomRequest(input) +func (c *Chime) CreateVoiceConnectorGroupWithContext(ctx aws.Context, input *CreateVoiceConnectorGroupInput, opts ...request.Option) (*CreateVoiceConnectorGroupOutput, error) { + req, out := c.CreateVoiceConnectorGroupRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opDeleteRoomMembership = "DeleteRoomMembership" +const opDeleteAccount = "DeleteAccount" -// DeleteRoomMembershipRequest generates a "aws/request.Request" representing the -// client's request for the DeleteRoomMembership operation. The "output" return +// DeleteAccountRequest generates a "aws/request.Request" representing the +// client's request for the DeleteAccount 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 DeleteRoomMembership for more information on using the DeleteRoomMembership +// See DeleteAccount for more information on using the DeleteAccount // 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 DeleteRoomMembershipRequest method. -// req, resp := client.DeleteRoomMembershipRequest(params) +// // Example sending a request using the DeleteAccountRequest method. +// req, resp := client.DeleteAccountRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DeleteRoomMembership -func (c *Chime) DeleteRoomMembershipRequest(input *DeleteRoomMembershipInput) (req *request.Request, output *DeleteRoomMembershipOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DeleteAccount +func (c *Chime) DeleteAccountRequest(input *DeleteAccountInput) (req *request.Request, output *DeleteAccountOutput) { op := &request.Operation{ - Name: opDeleteRoomMembership, + Name: opDeleteAccount, HTTPMethod: "DELETE", - HTTPPath: "/accounts/{accountId}/rooms/{roomId}/memberships/{memberId}", + HTTPPath: "/accounts/{accountId}", } if input == nil { - input = &DeleteRoomMembershipInput{} + input = &DeleteAccountInput{} } - output = &DeleteRoomMembershipOutput{} + output = &DeleteAccountOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// DeleteRoomMembership API operation for Amazon Chime. -// -// Removes a member from a chat room in an Amazon Chime Enterprise account. +// DeleteAccount API operation for Amazon Chime. // -// 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. +// Deletes the specified Amazon Chime account. You must suspend all users before +// deleting a Team account. You can use the BatchSuspendUser action to do so. +// +// For EnterpriseLWA and EnterpriseAD accounts, you must release the claimed +// domains for your Amazon Chime account before deletion. As soon as you release +// the domain, all users under that account are suspended. +// +// Deleted accounts appear in your Disabled accounts list for 90 days. To restore +// a deleted account from your Disabled accounts list, you must contact AWS +// Support. +// +// After 90 days, deleted accounts are permanently removed from your Disabled +// accounts list. +// +// 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 Chime's -// API operation DeleteRoomMembership for usage and error information. +// API operation DeleteAccount for usage and error information. // // Returned Error Types: // * UnauthorizedClientException @@ -3583,212 +3615,202 @@ func (c *Chime) DeleteRoomMembershipRequest(input *DeleteRoomMembershipInput) (r // * NotFoundException // One or more of the resources in the request does not exist in the system. // +// * ForbiddenException +// The client is permanently forbidden from making the request. +// // * BadRequestException // The input parameters don't match the service's restrictions. // -// * ForbiddenException -// The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported Region. -// // * ThrottledClientException // The client exceeded its request rate limit. // +// * UnprocessableEntityException +// The request was well-formed but was unable to be followed due to semantic +// errors. +// // * ServiceUnavailableException // The service is currently unavailable. // // * ServiceFailureException // The service encountered an unexpected error. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DeleteRoomMembership -func (c *Chime) DeleteRoomMembership(input *DeleteRoomMembershipInput) (*DeleteRoomMembershipOutput, error) { - req, out := c.DeleteRoomMembershipRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DeleteAccount +func (c *Chime) DeleteAccount(input *DeleteAccountInput) (*DeleteAccountOutput, error) { + req, out := c.DeleteAccountRequest(input) return out, req.Send() } -// DeleteRoomMembershipWithContext is the same as DeleteRoomMembership with the addition of +// DeleteAccountWithContext is the same as DeleteAccount with the addition of // the ability to pass a context and additional request options. // -// See DeleteRoomMembership for details on how to use this API operation. +// See DeleteAccount 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 *Chime) DeleteRoomMembershipWithContext(ctx aws.Context, input *DeleteRoomMembershipInput, opts ...request.Option) (*DeleteRoomMembershipOutput, error) { - req, out := c.DeleteRoomMembershipRequest(input) +func (c *Chime) DeleteAccountWithContext(ctx aws.Context, input *DeleteAccountInput, opts ...request.Option) (*DeleteAccountOutput, error) { + req, out := c.DeleteAccountRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opDeleteSipMediaApplication = "DeleteSipMediaApplication" +const opDeleteAppInstance = "DeleteAppInstance" -// DeleteSipMediaApplicationRequest generates a "aws/request.Request" representing the -// client's request for the DeleteSipMediaApplication operation. The "output" return +// DeleteAppInstanceRequest generates a "aws/request.Request" representing the +// client's request for the DeleteAppInstance 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 DeleteSipMediaApplication for more information on using the DeleteSipMediaApplication +// See DeleteAppInstance for more information on using the DeleteAppInstance // 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 DeleteSipMediaApplicationRequest method. -// req, resp := client.DeleteSipMediaApplicationRequest(params) +// // Example sending a request using the DeleteAppInstanceRequest method. +// req, resp := client.DeleteAppInstanceRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DeleteSipMediaApplication -func (c *Chime) DeleteSipMediaApplicationRequest(input *DeleteSipMediaApplicationInput) (req *request.Request, output *DeleteSipMediaApplicationOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DeleteAppInstance +func (c *Chime) DeleteAppInstanceRequest(input *DeleteAppInstanceInput) (req *request.Request, output *DeleteAppInstanceOutput) { op := &request.Operation{ - Name: opDeleteSipMediaApplication, + Name: opDeleteAppInstance, HTTPMethod: "DELETE", - HTTPPath: "/sip-media-applications/{sipMediaApplicationId}", + HTTPPath: "/app-instances/{appInstanceArn}", } if input == nil { - input = &DeleteSipMediaApplicationInput{} + input = &DeleteAppInstanceInput{} } - output = &DeleteSipMediaApplicationOutput{} + output = &DeleteAppInstanceOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("identity-", nil)) + req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) return } -// DeleteSipMediaApplication API operation for Amazon Chime. +// DeleteAppInstance API operation for Amazon Chime. // -// Deletes a SIP media application. +// Deletes an AppInstance and all associated data asynchronously. // // 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 Chime's -// API operation DeleteSipMediaApplication for usage and error information. +// API operation DeleteAppInstance for usage and error information. // // Returned Error Types: -// * UnauthorizedClientException -// The client is not currently authorized to make the request. -// -// * NotFoundException -// One or more of the resources in the request does not exist in the system. -// -// * ForbiddenException -// The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported Region. -// // * BadRequestException // The input parameters don't match the service's restrictions. // -// * ConflictException -// The request could not be processed because of conflict in the current state -// of the resource. +// * ForbiddenException +// The client is permanently forbidden from making the request. // // * ThrottledClientException // The client exceeded its request rate limit. // +// * UnauthorizedClientException +// The client is not currently authorized to make the request. +// // * ServiceUnavailableException // The service is currently unavailable. // // * ServiceFailureException // The service encountered an unexpected error. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DeleteSipMediaApplication -func (c *Chime) DeleteSipMediaApplication(input *DeleteSipMediaApplicationInput) (*DeleteSipMediaApplicationOutput, error) { - req, out := c.DeleteSipMediaApplicationRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DeleteAppInstance +func (c *Chime) DeleteAppInstance(input *DeleteAppInstanceInput) (*DeleteAppInstanceOutput, error) { + req, out := c.DeleteAppInstanceRequest(input) return out, req.Send() } -// DeleteSipMediaApplicationWithContext is the same as DeleteSipMediaApplication with the addition of +// DeleteAppInstanceWithContext is the same as DeleteAppInstance with the addition of // the ability to pass a context and additional request options. // -// See DeleteSipMediaApplication for details on how to use this API operation. +// See DeleteAppInstance 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 *Chime) DeleteSipMediaApplicationWithContext(ctx aws.Context, input *DeleteSipMediaApplicationInput, opts ...request.Option) (*DeleteSipMediaApplicationOutput, error) { - req, out := c.DeleteSipMediaApplicationRequest(input) +func (c *Chime) DeleteAppInstanceWithContext(ctx aws.Context, input *DeleteAppInstanceInput, opts ...request.Option) (*DeleteAppInstanceOutput, error) { + req, out := c.DeleteAppInstanceRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opDeleteSipRule = "DeleteSipRule" +const opDeleteAppInstanceAdmin = "DeleteAppInstanceAdmin" -// DeleteSipRuleRequest generates a "aws/request.Request" representing the -// client's request for the DeleteSipRule operation. The "output" return +// DeleteAppInstanceAdminRequest generates a "aws/request.Request" representing the +// client's request for the DeleteAppInstanceAdmin 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 DeleteSipRule for more information on using the DeleteSipRule +// See DeleteAppInstanceAdmin for more information on using the DeleteAppInstanceAdmin // 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 DeleteSipRuleRequest method. -// req, resp := client.DeleteSipRuleRequest(params) +// // Example sending a request using the DeleteAppInstanceAdminRequest method. +// req, resp := client.DeleteAppInstanceAdminRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DeleteSipRule -func (c *Chime) DeleteSipRuleRequest(input *DeleteSipRuleInput) (req *request.Request, output *DeleteSipRuleOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DeleteAppInstanceAdmin +func (c *Chime) DeleteAppInstanceAdminRequest(input *DeleteAppInstanceAdminInput) (req *request.Request, output *DeleteAppInstanceAdminOutput) { op := &request.Operation{ - Name: opDeleteSipRule, + Name: opDeleteAppInstanceAdmin, HTTPMethod: "DELETE", - HTTPPath: "/sip-rules/{sipRuleId}", + HTTPPath: "/app-instances/{appInstanceArn}/admins/{appInstanceAdminArn}", } if input == nil { - input = &DeleteSipRuleInput{} + input = &DeleteAppInstanceAdminInput{} } - output = &DeleteSipRuleOutput{} + output = &DeleteAppInstanceAdminOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("identity-", nil)) + req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) return } -// DeleteSipRule API operation for Amazon Chime. +// DeleteAppInstanceAdmin API operation for Amazon Chime. // -// Deletes a SIP rule. You must disable a SIP rule before you can delete it. +// Demotes an AppInstanceAdmin to an AppInstanceUser. This action does not delete +// the 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 Chime's -// API operation DeleteSipRule for usage and error information. +// API operation DeleteAppInstanceAdmin for usage and error information. // // Returned Error Types: -// * UnauthorizedClientException -// The client is not currently authorized to make the request. -// -// * NotFoundException -// One or more of the resources in the request does not exist in the system. -// -// * ForbiddenException -// The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported Region. -// // * BadRequestException // The input parameters don't match the service's restrictions. // @@ -3796,110 +3818,112 @@ func (c *Chime) DeleteSipRuleRequest(input *DeleteSipRuleInput) (req *request.Re // The request could not be processed because of conflict in the current state // of the resource. // +// * ForbiddenException +// The client is permanently forbidden from making the request. +// +// * ResourceLimitExceededException +// The request exceeds the resource limit. +// // * ThrottledClientException // The client exceeded its request rate limit. // +// * UnauthorizedClientException +// The client is not currently authorized to make the request. +// // * ServiceUnavailableException // The service is currently unavailable. // // * ServiceFailureException // The service encountered an unexpected error. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DeleteSipRule -func (c *Chime) DeleteSipRule(input *DeleteSipRuleInput) (*DeleteSipRuleOutput, error) { - req, out := c.DeleteSipRuleRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DeleteAppInstanceAdmin +func (c *Chime) DeleteAppInstanceAdmin(input *DeleteAppInstanceAdminInput) (*DeleteAppInstanceAdminOutput, error) { + req, out := c.DeleteAppInstanceAdminRequest(input) return out, req.Send() } -// DeleteSipRuleWithContext is the same as DeleteSipRule with the addition of +// DeleteAppInstanceAdminWithContext is the same as DeleteAppInstanceAdmin with the addition of // the ability to pass a context and additional request options. // -// See DeleteSipRule for details on how to use this API operation. +// See DeleteAppInstanceAdmin 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 *Chime) DeleteSipRuleWithContext(ctx aws.Context, input *DeleteSipRuleInput, opts ...request.Option) (*DeleteSipRuleOutput, error) { - req, out := c.DeleteSipRuleRequest(input) +func (c *Chime) DeleteAppInstanceAdminWithContext(ctx aws.Context, input *DeleteAppInstanceAdminInput, opts ...request.Option) (*DeleteAppInstanceAdminOutput, error) { + req, out := c.DeleteAppInstanceAdminRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opDeleteVoiceConnector = "DeleteVoiceConnector" +const opDeleteAppInstanceStreamingConfigurations = "DeleteAppInstanceStreamingConfigurations" -// DeleteVoiceConnectorRequest generates a "aws/request.Request" representing the -// client's request for the DeleteVoiceConnector operation. The "output" return +// DeleteAppInstanceStreamingConfigurationsRequest generates a "aws/request.Request" representing the +// client's request for the DeleteAppInstanceStreamingConfigurations 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 DeleteVoiceConnector for more information on using the DeleteVoiceConnector +// See DeleteAppInstanceStreamingConfigurations for more information on using the DeleteAppInstanceStreamingConfigurations // 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 DeleteVoiceConnectorRequest method. -// req, resp := client.DeleteVoiceConnectorRequest(params) +// // Example sending a request using the DeleteAppInstanceStreamingConfigurationsRequest method. +// req, resp := client.DeleteAppInstanceStreamingConfigurationsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DeleteVoiceConnector -func (c *Chime) DeleteVoiceConnectorRequest(input *DeleteVoiceConnectorInput) (req *request.Request, output *DeleteVoiceConnectorOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DeleteAppInstanceStreamingConfigurations +func (c *Chime) DeleteAppInstanceStreamingConfigurationsRequest(input *DeleteAppInstanceStreamingConfigurationsInput) (req *request.Request, output *DeleteAppInstanceStreamingConfigurationsOutput) { op := &request.Operation{ - Name: opDeleteVoiceConnector, + Name: opDeleteAppInstanceStreamingConfigurations, HTTPMethod: "DELETE", - HTTPPath: "/voice-connectors/{voiceConnectorId}", + HTTPPath: "/app-instances/{appInstanceArn}/streaming-configurations", } if input == nil { - input = &DeleteVoiceConnectorInput{} + input = &DeleteAppInstanceStreamingConfigurationsInput{} } - output = &DeleteVoiceConnectorOutput{} + output = &DeleteAppInstanceStreamingConfigurationsOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// DeleteVoiceConnector API operation for Amazon Chime. +// DeleteAppInstanceStreamingConfigurations API operation for Amazon Chime. // -// Deletes the specified Amazon Chime Voice Connector. Any phone numbers associated -// with the Amazon Chime Voice Connector must be disassociated from it before -// it can be deleted. +// Deletes the streaming configurations of an app 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 Chime's -// API operation DeleteVoiceConnector for usage and error information. +// API operation DeleteAppInstanceStreamingConfigurations for usage and error information. // // Returned Error Types: -// * UnauthorizedClientException -// The client is not currently authorized to make the request. -// -// * NotFoundException -// One or more of the resources in the request does not exist in the system. +// * BadRequestException +// The input parameters don't match the service's restrictions. // // * ForbiddenException -// The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported Region. +// The client is permanently forbidden from making the request. // -// * BadRequestException -// The input parameters don't match the service's restrictions. +// * NotFoundException +// One or more of the resources in the request does not exist in the system. // -// * ConflictException -// The request could not be processed because of conflict in the current state -// of the resource. +// * UnauthorizedClientException +// The client is not currently authorized to make the request. // // * ThrottledClientException // The client exceeded its request rate limit. @@ -3910,303 +3934,293 @@ func (c *Chime) DeleteVoiceConnectorRequest(input *DeleteVoiceConnectorInput) (r // * ServiceFailureException // The service encountered an unexpected error. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DeleteVoiceConnector -func (c *Chime) DeleteVoiceConnector(input *DeleteVoiceConnectorInput) (*DeleteVoiceConnectorOutput, error) { - req, out := c.DeleteVoiceConnectorRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DeleteAppInstanceStreamingConfigurations +func (c *Chime) DeleteAppInstanceStreamingConfigurations(input *DeleteAppInstanceStreamingConfigurationsInput) (*DeleteAppInstanceStreamingConfigurationsOutput, error) { + req, out := c.DeleteAppInstanceStreamingConfigurationsRequest(input) return out, req.Send() } -// DeleteVoiceConnectorWithContext is the same as DeleteVoiceConnector with the addition of +// DeleteAppInstanceStreamingConfigurationsWithContext is the same as DeleteAppInstanceStreamingConfigurations with the addition of // the ability to pass a context and additional request options. // -// See DeleteVoiceConnector for details on how to use this API operation. +// See DeleteAppInstanceStreamingConfigurations 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 *Chime) DeleteVoiceConnectorWithContext(ctx aws.Context, input *DeleteVoiceConnectorInput, opts ...request.Option) (*DeleteVoiceConnectorOutput, error) { - req, out := c.DeleteVoiceConnectorRequest(input) +func (c *Chime) DeleteAppInstanceStreamingConfigurationsWithContext(ctx aws.Context, input *DeleteAppInstanceStreamingConfigurationsInput, opts ...request.Option) (*DeleteAppInstanceStreamingConfigurationsOutput, error) { + req, out := c.DeleteAppInstanceStreamingConfigurationsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opDeleteVoiceConnectorEmergencyCallingConfiguration = "DeleteVoiceConnectorEmergencyCallingConfiguration" +const opDeleteAppInstanceUser = "DeleteAppInstanceUser" -// DeleteVoiceConnectorEmergencyCallingConfigurationRequest generates a "aws/request.Request" representing the -// client's request for the DeleteVoiceConnectorEmergencyCallingConfiguration operation. The "output" return +// DeleteAppInstanceUserRequest generates a "aws/request.Request" representing the +// client's request for the DeleteAppInstanceUser 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 DeleteVoiceConnectorEmergencyCallingConfiguration for more information on using the DeleteVoiceConnectorEmergencyCallingConfiguration +// See DeleteAppInstanceUser for more information on using the DeleteAppInstanceUser // 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 DeleteVoiceConnectorEmergencyCallingConfigurationRequest method. -// req, resp := client.DeleteVoiceConnectorEmergencyCallingConfigurationRequest(params) +// // Example sending a request using the DeleteAppInstanceUserRequest method. +// req, resp := client.DeleteAppInstanceUserRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DeleteVoiceConnectorEmergencyCallingConfiguration -func (c *Chime) DeleteVoiceConnectorEmergencyCallingConfigurationRequest(input *DeleteVoiceConnectorEmergencyCallingConfigurationInput) (req *request.Request, output *DeleteVoiceConnectorEmergencyCallingConfigurationOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DeleteAppInstanceUser +func (c *Chime) DeleteAppInstanceUserRequest(input *DeleteAppInstanceUserInput) (req *request.Request, output *DeleteAppInstanceUserOutput) { op := &request.Operation{ - Name: opDeleteVoiceConnectorEmergencyCallingConfiguration, + Name: opDeleteAppInstanceUser, HTTPMethod: "DELETE", - HTTPPath: "/voice-connectors/{voiceConnectorId}/emergency-calling-configuration", + HTTPPath: "/app-instance-users/{appInstanceUserArn}", } if input == nil { - input = &DeleteVoiceConnectorEmergencyCallingConfigurationInput{} + input = &DeleteAppInstanceUserInput{} } - output = &DeleteVoiceConnectorEmergencyCallingConfigurationOutput{} + output = &DeleteAppInstanceUserOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("identity-", nil)) + req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) return } -// DeleteVoiceConnectorEmergencyCallingConfiguration API operation for Amazon Chime. +// DeleteAppInstanceUser API operation for Amazon Chime. // -// Deletes the emergency calling configuration details from the specified Amazon -// Chime Voice Connector. +// Deletes an AppInstanceUser. // // 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 Chime's -// API operation DeleteVoiceConnectorEmergencyCallingConfiguration for usage and error information. +// API operation DeleteAppInstanceUser for usage and error information. // // Returned Error Types: -// * UnauthorizedClientException -// The client is not currently authorized to make the request. -// -// * NotFoundException -// One or more of the resources in the request does not exist in the system. -// -// * ForbiddenException -// The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported Region. -// // * BadRequestException // The input parameters don't match the service's restrictions. // +// * ForbiddenException +// The client is permanently forbidden from making the request. +// // * ThrottledClientException // The client exceeded its request rate limit. // +// * UnauthorizedClientException +// The client is not currently authorized to make the request. +// // * ServiceUnavailableException // The service is currently unavailable. // // * ServiceFailureException // The service encountered an unexpected error. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DeleteVoiceConnectorEmergencyCallingConfiguration -func (c *Chime) DeleteVoiceConnectorEmergencyCallingConfiguration(input *DeleteVoiceConnectorEmergencyCallingConfigurationInput) (*DeleteVoiceConnectorEmergencyCallingConfigurationOutput, error) { - req, out := c.DeleteVoiceConnectorEmergencyCallingConfigurationRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DeleteAppInstanceUser +func (c *Chime) DeleteAppInstanceUser(input *DeleteAppInstanceUserInput) (*DeleteAppInstanceUserOutput, error) { + req, out := c.DeleteAppInstanceUserRequest(input) return out, req.Send() } -// DeleteVoiceConnectorEmergencyCallingConfigurationWithContext is the same as DeleteVoiceConnectorEmergencyCallingConfiguration with the addition of +// DeleteAppInstanceUserWithContext is the same as DeleteAppInstanceUser with the addition of // the ability to pass a context and additional request options. // -// See DeleteVoiceConnectorEmergencyCallingConfiguration for details on how to use this API operation. +// See DeleteAppInstanceUser 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 *Chime) DeleteVoiceConnectorEmergencyCallingConfigurationWithContext(ctx aws.Context, input *DeleteVoiceConnectorEmergencyCallingConfigurationInput, opts ...request.Option) (*DeleteVoiceConnectorEmergencyCallingConfigurationOutput, error) { - req, out := c.DeleteVoiceConnectorEmergencyCallingConfigurationRequest(input) +func (c *Chime) DeleteAppInstanceUserWithContext(ctx aws.Context, input *DeleteAppInstanceUserInput, opts ...request.Option) (*DeleteAppInstanceUserOutput, error) { + req, out := c.DeleteAppInstanceUserRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opDeleteVoiceConnectorGroup = "DeleteVoiceConnectorGroup" +const opDeleteAttendee = "DeleteAttendee" -// DeleteVoiceConnectorGroupRequest generates a "aws/request.Request" representing the -// client's request for the DeleteVoiceConnectorGroup operation. The "output" return +// DeleteAttendeeRequest generates a "aws/request.Request" representing the +// client's request for the DeleteAttendee 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 DeleteVoiceConnectorGroup for more information on using the DeleteVoiceConnectorGroup +// See DeleteAttendee for more information on using the DeleteAttendee // 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 DeleteVoiceConnectorGroupRequest method. -// req, resp := client.DeleteVoiceConnectorGroupRequest(params) +// // Example sending a request using the DeleteAttendeeRequest method. +// req, resp := client.DeleteAttendeeRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DeleteVoiceConnectorGroup -func (c *Chime) DeleteVoiceConnectorGroupRequest(input *DeleteVoiceConnectorGroupInput) (req *request.Request, output *DeleteVoiceConnectorGroupOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DeleteAttendee +func (c *Chime) DeleteAttendeeRequest(input *DeleteAttendeeInput) (req *request.Request, output *DeleteAttendeeOutput) { op := &request.Operation{ - Name: opDeleteVoiceConnectorGroup, + Name: opDeleteAttendee, HTTPMethod: "DELETE", - HTTPPath: "/voice-connector-groups/{voiceConnectorGroupId}", + HTTPPath: "/meetings/{meetingId}/attendees/{attendeeId}", } if input == nil { - input = &DeleteVoiceConnectorGroupInput{} + input = &DeleteAttendeeInput{} } - output = &DeleteVoiceConnectorGroupOutput{} + output = &DeleteAttendeeOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// DeleteVoiceConnectorGroup API operation for Amazon Chime. +// DeleteAttendee API operation for Amazon Chime. // -// Deletes the specified Amazon Chime Voice Connector group. Any VoiceConnectorItems -// and phone numbers associated with the group must be removed before it can -// be deleted. +// Deletes an attendee from the specified Amazon Chime SDK meeting and deletes +// their JoinToken. Attendees are automatically deleted when a Amazon Chime +// SDK meeting is deleted. For more information about the Amazon Chime SDK, +// see Using the Amazon Chime SDK (https://docs.aws.amazon.com/chime/latest/dg/meetings-sdk.html) +// in the Amazon Chime Developer Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Chime's -// API operation DeleteVoiceConnectorGroup for usage and error information. +// API operation DeleteAttendee for usage and error information. // // Returned Error Types: -// * UnauthorizedClientException -// The client is not currently authorized to make the request. -// -// * NotFoundException -// One or more of the resources in the request does not exist in the system. -// -// * ForbiddenException -// The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported Region. -// // * BadRequestException // The input parameters don't match the service's restrictions. // -// * ConflictException -// The request could not be processed because of conflict in the current state -// of the resource. +// * ForbiddenException +// The client is permanently forbidden from making the request. // // * ThrottledClientException // The client exceeded its request rate limit. // +// * NotFoundException +// One or more of the resources in the request does not exist in the system. +// +// * UnauthorizedClientException +// The client is not currently authorized to make the request. +// // * ServiceUnavailableException // The service is currently unavailable. // // * ServiceFailureException // The service encountered an unexpected error. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DeleteVoiceConnectorGroup -func (c *Chime) DeleteVoiceConnectorGroup(input *DeleteVoiceConnectorGroupInput) (*DeleteVoiceConnectorGroupOutput, error) { - req, out := c.DeleteVoiceConnectorGroupRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DeleteAttendee +func (c *Chime) DeleteAttendee(input *DeleteAttendeeInput) (*DeleteAttendeeOutput, error) { + req, out := c.DeleteAttendeeRequest(input) return out, req.Send() } -// DeleteVoiceConnectorGroupWithContext is the same as DeleteVoiceConnectorGroup with the addition of +// DeleteAttendeeWithContext is the same as DeleteAttendee with the addition of // the ability to pass a context and additional request options. // -// See DeleteVoiceConnectorGroup for details on how to use this API operation. +// See DeleteAttendee 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 *Chime) DeleteVoiceConnectorGroupWithContext(ctx aws.Context, input *DeleteVoiceConnectorGroupInput, opts ...request.Option) (*DeleteVoiceConnectorGroupOutput, error) { - req, out := c.DeleteVoiceConnectorGroupRequest(input) +func (c *Chime) DeleteAttendeeWithContext(ctx aws.Context, input *DeleteAttendeeInput, opts ...request.Option) (*DeleteAttendeeOutput, error) { + req, out := c.DeleteAttendeeRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opDeleteVoiceConnectorOrigination = "DeleteVoiceConnectorOrigination" +const opDeleteChannel = "DeleteChannel" -// DeleteVoiceConnectorOriginationRequest generates a "aws/request.Request" representing the -// client's request for the DeleteVoiceConnectorOrigination operation. The "output" return +// DeleteChannelRequest generates a "aws/request.Request" representing the +// client's request for the DeleteChannel 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 DeleteVoiceConnectorOrigination for more information on using the DeleteVoiceConnectorOrigination +// See DeleteChannel for more information on using the DeleteChannel // 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 DeleteVoiceConnectorOriginationRequest method. -// req, resp := client.DeleteVoiceConnectorOriginationRequest(params) +// // Example sending a request using the DeleteChannelRequest method. +// req, resp := client.DeleteChannelRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DeleteVoiceConnectorOrigination -func (c *Chime) DeleteVoiceConnectorOriginationRequest(input *DeleteVoiceConnectorOriginationInput) (req *request.Request, output *DeleteVoiceConnectorOriginationOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DeleteChannel +func (c *Chime) DeleteChannelRequest(input *DeleteChannelInput) (req *request.Request, output *DeleteChannelOutput) { op := &request.Operation{ - Name: opDeleteVoiceConnectorOrigination, + Name: opDeleteChannel, HTTPMethod: "DELETE", - HTTPPath: "/voice-connectors/{voiceConnectorId}/origination", + HTTPPath: "/channels/{channelArn}", } if input == nil { - input = &DeleteVoiceConnectorOriginationInput{} + input = &DeleteChannelInput{} } - output = &DeleteVoiceConnectorOriginationOutput{} + output = &DeleteChannelOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("messaging-", nil)) + req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) return } -// DeleteVoiceConnectorOrigination API operation for Amazon Chime. -// -// Deletes the origination settings for the specified Amazon Chime Voice Connector. +// DeleteChannel API operation for Amazon Chime. // -// If emergency calling is configured for the Amazon Chime Voice Connector, -// it must be deleted prior to deleting the origination settings. +// Immediately makes a channel and its memberships inaccessible and marks them +// for deletion. This is an irreversible process. // // 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 Chime's -// API operation DeleteVoiceConnectorOrigination for usage and error information. +// API operation DeleteChannel for usage and error information. // // Returned Error Types: -// * UnauthorizedClientException -// The client is not currently authorized to make the request. -// -// * NotFoundException -// One or more of the resources in the request does not exist in the system. +// * BadRequestException +// The input parameters don't match the service's restrictions. // // * ForbiddenException -// The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported Region. +// The client is permanently forbidden from making the request. // -// * BadRequestException -// The input parameters don't match the service's restrictions. +// * UnauthorizedClientException +// The client is not currently authorized to make the request. // // * ThrottledClientException // The client exceeded its request rate limit. @@ -4217,95 +4231,93 @@ func (c *Chime) DeleteVoiceConnectorOriginationRequest(input *DeleteVoiceConnect // * ServiceFailureException // The service encountered an unexpected error. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DeleteVoiceConnectorOrigination -func (c *Chime) DeleteVoiceConnectorOrigination(input *DeleteVoiceConnectorOriginationInput) (*DeleteVoiceConnectorOriginationOutput, error) { - req, out := c.DeleteVoiceConnectorOriginationRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DeleteChannel +func (c *Chime) DeleteChannel(input *DeleteChannelInput) (*DeleteChannelOutput, error) { + req, out := c.DeleteChannelRequest(input) return out, req.Send() } -// DeleteVoiceConnectorOriginationWithContext is the same as DeleteVoiceConnectorOrigination with the addition of +// DeleteChannelWithContext is the same as DeleteChannel with the addition of // the ability to pass a context and additional request options. // -// See DeleteVoiceConnectorOrigination for details on how to use this API operation. +// See DeleteChannel 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 *Chime) DeleteVoiceConnectorOriginationWithContext(ctx aws.Context, input *DeleteVoiceConnectorOriginationInput, opts ...request.Option) (*DeleteVoiceConnectorOriginationOutput, error) { - req, out := c.DeleteVoiceConnectorOriginationRequest(input) +func (c *Chime) DeleteChannelWithContext(ctx aws.Context, input *DeleteChannelInput, opts ...request.Option) (*DeleteChannelOutput, error) { + req, out := c.DeleteChannelRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opDeleteVoiceConnectorProxy = "DeleteVoiceConnectorProxy" +const opDeleteChannelBan = "DeleteChannelBan" -// DeleteVoiceConnectorProxyRequest generates a "aws/request.Request" representing the -// client's request for the DeleteVoiceConnectorProxy operation. The "output" return +// DeleteChannelBanRequest generates a "aws/request.Request" representing the +// client's request for the DeleteChannelBan 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 DeleteVoiceConnectorProxy for more information on using the DeleteVoiceConnectorProxy +// See DeleteChannelBan for more information on using the DeleteChannelBan // 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 DeleteVoiceConnectorProxyRequest method. -// req, resp := client.DeleteVoiceConnectorProxyRequest(params) +// // Example sending a request using the DeleteChannelBanRequest method. +// req, resp := client.DeleteChannelBanRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DeleteVoiceConnectorProxy -func (c *Chime) DeleteVoiceConnectorProxyRequest(input *DeleteVoiceConnectorProxyInput) (req *request.Request, output *DeleteVoiceConnectorProxyOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DeleteChannelBan +func (c *Chime) DeleteChannelBanRequest(input *DeleteChannelBanInput) (req *request.Request, output *DeleteChannelBanOutput) { op := &request.Operation{ - Name: opDeleteVoiceConnectorProxy, + Name: opDeleteChannelBan, HTTPMethod: "DELETE", - HTTPPath: "/voice-connectors/{voiceConnectorId}/programmable-numbers/proxy", + HTTPPath: "/channels/{channelArn}/bans/{memberArn}", } if input == nil { - input = &DeleteVoiceConnectorProxyInput{} + input = &DeleteChannelBanInput{} } - output = &DeleteVoiceConnectorProxyOutput{} + output = &DeleteChannelBanOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("messaging-", nil)) + req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) return } -// DeleteVoiceConnectorProxy API operation for Amazon Chime. +// DeleteChannelBan API operation for Amazon Chime. // -// Deletes the proxy configuration from the specified Amazon Chime Voice Connector. +// Removes a user from a channel's ban list. // // 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 Chime's -// API operation DeleteVoiceConnectorProxy for usage and error information. +// API operation DeleteChannelBan for usage and error information. // // Returned Error Types: -// * UnauthorizedClientException -// The client is not currently authorized to make the request. -// -// * NotFoundException -// One or more of the resources in the request does not exist in the system. +// * BadRequestException +// The input parameters don't match the service's restrictions. // // * ForbiddenException -// The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported Region. +// The client is permanently forbidden from making the request. // -// * BadRequestException -// The input parameters don't match the service's restrictions. +// * UnauthorizedClientException +// The client is not currently authorized to make the request. // // * ThrottledClientException // The client exceeded its request rate limit. @@ -4316,96 +4328,93 @@ func (c *Chime) DeleteVoiceConnectorProxyRequest(input *DeleteVoiceConnectorProx // * ServiceFailureException // The service encountered an unexpected error. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DeleteVoiceConnectorProxy -func (c *Chime) DeleteVoiceConnectorProxy(input *DeleteVoiceConnectorProxyInput) (*DeleteVoiceConnectorProxyOutput, error) { - req, out := c.DeleteVoiceConnectorProxyRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DeleteChannelBan +func (c *Chime) DeleteChannelBan(input *DeleteChannelBanInput) (*DeleteChannelBanOutput, error) { + req, out := c.DeleteChannelBanRequest(input) return out, req.Send() } -// DeleteVoiceConnectorProxyWithContext is the same as DeleteVoiceConnectorProxy with the addition of +// DeleteChannelBanWithContext is the same as DeleteChannelBan with the addition of // the ability to pass a context and additional request options. // -// See DeleteVoiceConnectorProxy for details on how to use this API operation. +// See DeleteChannelBan 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 *Chime) DeleteVoiceConnectorProxyWithContext(ctx aws.Context, input *DeleteVoiceConnectorProxyInput, opts ...request.Option) (*DeleteVoiceConnectorProxyOutput, error) { - req, out := c.DeleteVoiceConnectorProxyRequest(input) +func (c *Chime) DeleteChannelBanWithContext(ctx aws.Context, input *DeleteChannelBanInput, opts ...request.Option) (*DeleteChannelBanOutput, error) { + req, out := c.DeleteChannelBanRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opDeleteVoiceConnectorStreamingConfiguration = "DeleteVoiceConnectorStreamingConfiguration" +const opDeleteChannelMembership = "DeleteChannelMembership" -// DeleteVoiceConnectorStreamingConfigurationRequest generates a "aws/request.Request" representing the -// client's request for the DeleteVoiceConnectorStreamingConfiguration operation. The "output" return +// DeleteChannelMembershipRequest generates a "aws/request.Request" representing the +// client's request for the DeleteChannelMembership 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 DeleteVoiceConnectorStreamingConfiguration for more information on using the DeleteVoiceConnectorStreamingConfiguration +// See DeleteChannelMembership for more information on using the DeleteChannelMembership // 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 DeleteVoiceConnectorStreamingConfigurationRequest method. -// req, resp := client.DeleteVoiceConnectorStreamingConfigurationRequest(params) +// // Example sending a request using the DeleteChannelMembershipRequest method. +// req, resp := client.DeleteChannelMembershipRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DeleteVoiceConnectorStreamingConfiguration -func (c *Chime) DeleteVoiceConnectorStreamingConfigurationRequest(input *DeleteVoiceConnectorStreamingConfigurationInput) (req *request.Request, output *DeleteVoiceConnectorStreamingConfigurationOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DeleteChannelMembership +func (c *Chime) DeleteChannelMembershipRequest(input *DeleteChannelMembershipInput) (req *request.Request, output *DeleteChannelMembershipOutput) { op := &request.Operation{ - Name: opDeleteVoiceConnectorStreamingConfiguration, + Name: opDeleteChannelMembership, HTTPMethod: "DELETE", - HTTPPath: "/voice-connectors/{voiceConnectorId}/streaming-configuration", + HTTPPath: "/channels/{channelArn}/memberships/{memberArn}", } if input == nil { - input = &DeleteVoiceConnectorStreamingConfigurationInput{} + input = &DeleteChannelMembershipInput{} } - output = &DeleteVoiceConnectorStreamingConfigurationOutput{} + output = &DeleteChannelMembershipOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("messaging-", nil)) + req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) return } -// DeleteVoiceConnectorStreamingConfiguration API operation for Amazon Chime. +// DeleteChannelMembership API operation for Amazon Chime. // -// Deletes the streaming configuration for the specified Amazon Chime Voice -// Connector. +// Removes a member from a channel. // // 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 Chime's -// API operation DeleteVoiceConnectorStreamingConfiguration for usage and error information. +// API operation DeleteChannelMembership for usage and error information. // // Returned Error Types: -// * UnauthorizedClientException -// The client is not currently authorized to make the request. -// -// * NotFoundException -// One or more of the resources in the request does not exist in the system. +// * BadRequestException +// The input parameters don't match the service's restrictions. // // * ForbiddenException -// The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported Region. +// The client is permanently forbidden from making the request. // -// * BadRequestException -// The input parameters don't match the service's restrictions. +// * UnauthorizedClientException +// The client is not currently authorized to make the request. // // * ThrottledClientException // The client exceeded its request rate limit. @@ -4416,98 +4425,95 @@ func (c *Chime) DeleteVoiceConnectorStreamingConfigurationRequest(input *DeleteV // * ServiceFailureException // The service encountered an unexpected error. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DeleteVoiceConnectorStreamingConfiguration -func (c *Chime) DeleteVoiceConnectorStreamingConfiguration(input *DeleteVoiceConnectorStreamingConfigurationInput) (*DeleteVoiceConnectorStreamingConfigurationOutput, error) { - req, out := c.DeleteVoiceConnectorStreamingConfigurationRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DeleteChannelMembership +func (c *Chime) DeleteChannelMembership(input *DeleteChannelMembershipInput) (*DeleteChannelMembershipOutput, error) { + req, out := c.DeleteChannelMembershipRequest(input) return out, req.Send() } -// DeleteVoiceConnectorStreamingConfigurationWithContext is the same as DeleteVoiceConnectorStreamingConfiguration with the addition of +// DeleteChannelMembershipWithContext is the same as DeleteChannelMembership with the addition of // the ability to pass a context and additional request options. // -// See DeleteVoiceConnectorStreamingConfiguration for details on how to use this API operation. +// See DeleteChannelMembership 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 *Chime) DeleteVoiceConnectorStreamingConfigurationWithContext(ctx aws.Context, input *DeleteVoiceConnectorStreamingConfigurationInput, opts ...request.Option) (*DeleteVoiceConnectorStreamingConfigurationOutput, error) { - req, out := c.DeleteVoiceConnectorStreamingConfigurationRequest(input) +func (c *Chime) DeleteChannelMembershipWithContext(ctx aws.Context, input *DeleteChannelMembershipInput, opts ...request.Option) (*DeleteChannelMembershipOutput, error) { + req, out := c.DeleteChannelMembershipRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opDeleteVoiceConnectorTermination = "DeleteVoiceConnectorTermination" +const opDeleteChannelMessage = "DeleteChannelMessage" -// DeleteVoiceConnectorTerminationRequest generates a "aws/request.Request" representing the -// client's request for the DeleteVoiceConnectorTermination operation. The "output" return +// DeleteChannelMessageRequest generates a "aws/request.Request" representing the +// client's request for the DeleteChannelMessage 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 DeleteVoiceConnectorTermination for more information on using the DeleteVoiceConnectorTermination +// See DeleteChannelMessage for more information on using the DeleteChannelMessage // 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 DeleteVoiceConnectorTerminationRequest method. -// req, resp := client.DeleteVoiceConnectorTerminationRequest(params) +// // Example sending a request using the DeleteChannelMessageRequest method. +// req, resp := client.DeleteChannelMessageRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DeleteVoiceConnectorTermination -func (c *Chime) DeleteVoiceConnectorTerminationRequest(input *DeleteVoiceConnectorTerminationInput) (req *request.Request, output *DeleteVoiceConnectorTerminationOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DeleteChannelMessage +func (c *Chime) DeleteChannelMessageRequest(input *DeleteChannelMessageInput) (req *request.Request, output *DeleteChannelMessageOutput) { op := &request.Operation{ - Name: opDeleteVoiceConnectorTermination, + Name: opDeleteChannelMessage, HTTPMethod: "DELETE", - HTTPPath: "/voice-connectors/{voiceConnectorId}/termination", + HTTPPath: "/channels/{channelArn}/messages/{messageId}", } if input == nil { - input = &DeleteVoiceConnectorTerminationInput{} + input = &DeleteChannelMessageInput{} } - output = &DeleteVoiceConnectorTerminationOutput{} + output = &DeleteChannelMessageOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("messaging-", nil)) + req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) return } -// DeleteVoiceConnectorTermination API operation for Amazon Chime. -// -// Deletes the termination settings for the specified Amazon Chime Voice Connector. +// DeleteChannelMessage API operation for Amazon Chime. // -// If emergency calling is configured for the Amazon Chime Voice Connector, -// it must be deleted prior to deleting the termination settings. +// Deletes a channel message. Only admins can perform this action. Deletion +// makes messages inaccessible immediately. A background process deletes any +// revisions created by UpdateChannelMessage. // // 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 Chime's -// API operation DeleteVoiceConnectorTermination for usage and error information. +// API operation DeleteChannelMessage for usage and error information. // // Returned Error Types: -// * UnauthorizedClientException -// The client is not currently authorized to make the request. -// -// * NotFoundException -// One or more of the resources in the request does not exist in the system. +// * BadRequestException +// The input parameters don't match the service's restrictions. // // * ForbiddenException -// The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported Region. +// The client is permanently forbidden from making the request. // -// * BadRequestException -// The input parameters don't match the service's restrictions. +// * UnauthorizedClientException +// The client is not currently authorized to make the request. // // * ThrottledClientException // The client exceeded its request rate limit. @@ -4518,96 +4524,93 @@ func (c *Chime) DeleteVoiceConnectorTerminationRequest(input *DeleteVoiceConnect // * ServiceFailureException // The service encountered an unexpected error. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DeleteVoiceConnectorTermination -func (c *Chime) DeleteVoiceConnectorTermination(input *DeleteVoiceConnectorTerminationInput) (*DeleteVoiceConnectorTerminationOutput, error) { - req, out := c.DeleteVoiceConnectorTerminationRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DeleteChannelMessage +func (c *Chime) DeleteChannelMessage(input *DeleteChannelMessageInput) (*DeleteChannelMessageOutput, error) { + req, out := c.DeleteChannelMessageRequest(input) return out, req.Send() } -// DeleteVoiceConnectorTerminationWithContext is the same as DeleteVoiceConnectorTermination with the addition of +// DeleteChannelMessageWithContext is the same as DeleteChannelMessage with the addition of // the ability to pass a context and additional request options. // -// See DeleteVoiceConnectorTermination for details on how to use this API operation. +// See DeleteChannelMessage 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 *Chime) DeleteVoiceConnectorTerminationWithContext(ctx aws.Context, input *DeleteVoiceConnectorTerminationInput, opts ...request.Option) (*DeleteVoiceConnectorTerminationOutput, error) { - req, out := c.DeleteVoiceConnectorTerminationRequest(input) +func (c *Chime) DeleteChannelMessageWithContext(ctx aws.Context, input *DeleteChannelMessageInput, opts ...request.Option) (*DeleteChannelMessageOutput, error) { + req, out := c.DeleteChannelMessageRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opDeleteVoiceConnectorTerminationCredentials = "DeleteVoiceConnectorTerminationCredentials" +const opDeleteChannelModerator = "DeleteChannelModerator" -// DeleteVoiceConnectorTerminationCredentialsRequest generates a "aws/request.Request" representing the -// client's request for the DeleteVoiceConnectorTerminationCredentials operation. The "output" return +// DeleteChannelModeratorRequest generates a "aws/request.Request" representing the +// client's request for the DeleteChannelModerator 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 DeleteVoiceConnectorTerminationCredentials for more information on using the DeleteVoiceConnectorTerminationCredentials +// See DeleteChannelModerator for more information on using the DeleteChannelModerator // 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 DeleteVoiceConnectorTerminationCredentialsRequest method. -// req, resp := client.DeleteVoiceConnectorTerminationCredentialsRequest(params) +// // Example sending a request using the DeleteChannelModeratorRequest method. +// req, resp := client.DeleteChannelModeratorRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DeleteVoiceConnectorTerminationCredentials -func (c *Chime) DeleteVoiceConnectorTerminationCredentialsRequest(input *DeleteVoiceConnectorTerminationCredentialsInput) (req *request.Request, output *DeleteVoiceConnectorTerminationCredentialsOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DeleteChannelModerator +func (c *Chime) DeleteChannelModeratorRequest(input *DeleteChannelModeratorInput) (req *request.Request, output *DeleteChannelModeratorOutput) { op := &request.Operation{ - Name: opDeleteVoiceConnectorTerminationCredentials, - HTTPMethod: "POST", - HTTPPath: "/voice-connectors/{voiceConnectorId}/termination/credentials?operation=delete", + Name: opDeleteChannelModerator, + HTTPMethod: "DELETE", + HTTPPath: "/channels/{channelArn}/moderators/{channelModeratorArn}", } if input == nil { - input = &DeleteVoiceConnectorTerminationCredentialsInput{} + input = &DeleteChannelModeratorInput{} } - output = &DeleteVoiceConnectorTerminationCredentialsOutput{} + output = &DeleteChannelModeratorOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("messaging-", nil)) + req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) return } -// DeleteVoiceConnectorTerminationCredentials API operation for Amazon Chime. +// DeleteChannelModerator API operation for Amazon Chime. // -// Deletes the specified SIP credentials used by your equipment to authenticate -// during call termination. +// Deletes a channel moderator. // // 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 Chime's -// API operation DeleteVoiceConnectorTerminationCredentials for usage and error information. +// API operation DeleteChannelModerator for usage and error information. // // Returned Error Types: -// * UnauthorizedClientException -// The client is not currently authorized to make the request. -// -// * NotFoundException -// One or more of the resources in the request does not exist in the system. +// * BadRequestException +// The input parameters don't match the service's restrictions. // // * ForbiddenException -// The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported Region. +// The client is permanently forbidden from making the request. // -// * BadRequestException -// The input parameters don't match the service's restrictions. +// * UnauthorizedClientException +// The client is not currently authorized to make the request. // // * ThrottledClientException // The client exceeded its request rate limit. @@ -4618,280 +4621,282 @@ func (c *Chime) DeleteVoiceConnectorTerminationCredentialsRequest(input *DeleteV // * ServiceFailureException // The service encountered an unexpected error. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DeleteVoiceConnectorTerminationCredentials -func (c *Chime) DeleteVoiceConnectorTerminationCredentials(input *DeleteVoiceConnectorTerminationCredentialsInput) (*DeleteVoiceConnectorTerminationCredentialsOutput, error) { - req, out := c.DeleteVoiceConnectorTerminationCredentialsRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DeleteChannelModerator +func (c *Chime) DeleteChannelModerator(input *DeleteChannelModeratorInput) (*DeleteChannelModeratorOutput, error) { + req, out := c.DeleteChannelModeratorRequest(input) return out, req.Send() } -// DeleteVoiceConnectorTerminationCredentialsWithContext is the same as DeleteVoiceConnectorTerminationCredentials with the addition of +// DeleteChannelModeratorWithContext is the same as DeleteChannelModerator with the addition of // the ability to pass a context and additional request options. // -// See DeleteVoiceConnectorTerminationCredentials for details on how to use this API operation. +// See DeleteChannelModerator 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 *Chime) DeleteVoiceConnectorTerminationCredentialsWithContext(ctx aws.Context, input *DeleteVoiceConnectorTerminationCredentialsInput, opts ...request.Option) (*DeleteVoiceConnectorTerminationCredentialsOutput, error) { - req, out := c.DeleteVoiceConnectorTerminationCredentialsRequest(input) +func (c *Chime) DeleteChannelModeratorWithContext(ctx aws.Context, input *DeleteChannelModeratorInput, opts ...request.Option) (*DeleteChannelModeratorOutput, error) { + req, out := c.DeleteChannelModeratorRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opDisassociatePhoneNumberFromUser = "DisassociatePhoneNumberFromUser" +const opDeleteEventsConfiguration = "DeleteEventsConfiguration" -// DisassociatePhoneNumberFromUserRequest generates a "aws/request.Request" representing the -// client's request for the DisassociatePhoneNumberFromUser operation. The "output" return +// DeleteEventsConfigurationRequest generates a "aws/request.Request" representing the +// client's request for the DeleteEventsConfiguration 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 DisassociatePhoneNumberFromUser for more information on using the DisassociatePhoneNumberFromUser +// See DeleteEventsConfiguration for more information on using the DeleteEventsConfiguration // 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 DisassociatePhoneNumberFromUserRequest method. -// req, resp := client.DisassociatePhoneNumberFromUserRequest(params) +// // Example sending a request using the DeleteEventsConfigurationRequest method. +// req, resp := client.DeleteEventsConfigurationRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DisassociatePhoneNumberFromUser -func (c *Chime) DisassociatePhoneNumberFromUserRequest(input *DisassociatePhoneNumberFromUserInput) (req *request.Request, output *DisassociatePhoneNumberFromUserOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DeleteEventsConfiguration +func (c *Chime) DeleteEventsConfigurationRequest(input *DeleteEventsConfigurationInput) (req *request.Request, output *DeleteEventsConfigurationOutput) { op := &request.Operation{ - Name: opDisassociatePhoneNumberFromUser, - HTTPMethod: "POST", - HTTPPath: "/accounts/{accountId}/users/{userId}?operation=disassociate-phone-number", + Name: opDeleteEventsConfiguration, + HTTPMethod: "DELETE", + HTTPPath: "/accounts/{accountId}/bots/{botId}/events-configuration", } if input == nil { - input = &DisassociatePhoneNumberFromUserInput{} + input = &DeleteEventsConfigurationInput{} } - output = &DisassociatePhoneNumberFromUserOutput{} + output = &DeleteEventsConfigurationOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// DisassociatePhoneNumberFromUser API operation for Amazon Chime. +// DeleteEventsConfiguration API operation for Amazon Chime. // -// Disassociates the primary provisioned phone number from the specified Amazon -// Chime user. +// Deletes the events configuration that allows a bot to receive outgoing events. // // 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 Chime's -// API operation DisassociatePhoneNumberFromUser for usage and error information. +// API operation DeleteEventsConfiguration for usage and error information. // // Returned Error Types: -// * UnauthorizedClientException -// The client is not currently authorized to make the request. +// * ServiceUnavailableException +// The service is currently unavailable. // -// * NotFoundException -// One or more of the resources in the request does not exist in the system. +// * ServiceFailureException +// The service encountered an unexpected error. // // * ForbiddenException -// The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported Region. +// The client is permanently forbidden from making the request. // // * BadRequestException // The input parameters don't match the service's restrictions. // -// * ThrottledClientException -// The client exceeded its request rate limit. -// -// * ServiceUnavailableException -// The service is currently unavailable. +// * UnauthorizedClientException +// The client is not currently authorized to make the request. // -// * ServiceFailureException -// The service encountered an unexpected error. +// * ResourceLimitExceededException +// The request exceeds the resource limit. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DisassociatePhoneNumberFromUser -func (c *Chime) DisassociatePhoneNumberFromUser(input *DisassociatePhoneNumberFromUserInput) (*DisassociatePhoneNumberFromUserOutput, error) { - req, out := c.DisassociatePhoneNumberFromUserRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DeleteEventsConfiguration +func (c *Chime) DeleteEventsConfiguration(input *DeleteEventsConfigurationInput) (*DeleteEventsConfigurationOutput, error) { + req, out := c.DeleteEventsConfigurationRequest(input) return out, req.Send() } -// DisassociatePhoneNumberFromUserWithContext is the same as DisassociatePhoneNumberFromUser with the addition of +// DeleteEventsConfigurationWithContext is the same as DeleteEventsConfiguration with the addition of // the ability to pass a context and additional request options. // -// See DisassociatePhoneNumberFromUser for details on how to use this API operation. +// See DeleteEventsConfiguration 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 *Chime) DisassociatePhoneNumberFromUserWithContext(ctx aws.Context, input *DisassociatePhoneNumberFromUserInput, opts ...request.Option) (*DisassociatePhoneNumberFromUserOutput, error) { - req, out := c.DisassociatePhoneNumberFromUserRequest(input) +func (c *Chime) DeleteEventsConfigurationWithContext(ctx aws.Context, input *DeleteEventsConfigurationInput, opts ...request.Option) (*DeleteEventsConfigurationOutput, error) { + req, out := c.DeleteEventsConfigurationRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opDisassociatePhoneNumbersFromVoiceConnector = "DisassociatePhoneNumbersFromVoiceConnector" +const opDeleteMeeting = "DeleteMeeting" -// DisassociatePhoneNumbersFromVoiceConnectorRequest generates a "aws/request.Request" representing the -// client's request for the DisassociatePhoneNumbersFromVoiceConnector operation. The "output" return +// DeleteMeetingRequest generates a "aws/request.Request" representing the +// client's request for the DeleteMeeting 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 DisassociatePhoneNumbersFromVoiceConnector for more information on using the DisassociatePhoneNumbersFromVoiceConnector +// See DeleteMeeting for more information on using the DeleteMeeting // 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 DisassociatePhoneNumbersFromVoiceConnectorRequest method. -// req, resp := client.DisassociatePhoneNumbersFromVoiceConnectorRequest(params) +// // Example sending a request using the DeleteMeetingRequest method. +// req, resp := client.DeleteMeetingRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DisassociatePhoneNumbersFromVoiceConnector -func (c *Chime) DisassociatePhoneNumbersFromVoiceConnectorRequest(input *DisassociatePhoneNumbersFromVoiceConnectorInput) (req *request.Request, output *DisassociatePhoneNumbersFromVoiceConnectorOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DeleteMeeting +func (c *Chime) DeleteMeetingRequest(input *DeleteMeetingInput) (req *request.Request, output *DeleteMeetingOutput) { op := &request.Operation{ - Name: opDisassociatePhoneNumbersFromVoiceConnector, - HTTPMethod: "POST", - HTTPPath: "/voice-connectors/{voiceConnectorId}?operation=disassociate-phone-numbers", + Name: opDeleteMeeting, + HTTPMethod: "DELETE", + HTTPPath: "/meetings/{meetingId}", } if input == nil { - input = &DisassociatePhoneNumbersFromVoiceConnectorInput{} + input = &DeleteMeetingInput{} } - output = &DisassociatePhoneNumbersFromVoiceConnectorOutput{} + output = &DeleteMeetingOutput{} req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// DisassociatePhoneNumbersFromVoiceConnector API operation for Amazon Chime. +// DeleteMeeting API operation for Amazon Chime. // -// Disassociates the specified phone numbers from the specified Amazon Chime -// Voice Connector. +// Deletes the specified Amazon Chime SDK meeting. When a meeting is deleted, +// its attendees are also deleted and clients can no longer join it. For more +// information about the Amazon Chime SDK, see Using the Amazon Chime SDK (https://docs.aws.amazon.com/chime/latest/dg/meetings-sdk.html) +// in the Amazon Chime Developer Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Chime's -// API operation DisassociatePhoneNumbersFromVoiceConnector for usage and error information. +// API operation DeleteMeeting for usage and error information. // // Returned Error Types: -// * UnauthorizedClientException -// The client is not currently authorized to make the request. -// -// * NotFoundException -// One or more of the resources in the request does not exist in the system. -// -// * ForbiddenException -// The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported Region. -// // * BadRequestException // The input parameters don't match the service's restrictions. // +// * ForbiddenException +// The client is permanently forbidden from making the request. +// // * ThrottledClientException // The client exceeded its request rate limit. // +// * NotFoundException +// One or more of the resources in the request does not exist in the system. +// +// * UnauthorizedClientException +// The client is not currently authorized to make the request. +// // * ServiceUnavailableException // The service is currently unavailable. // // * ServiceFailureException // The service encountered an unexpected error. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DisassociatePhoneNumbersFromVoiceConnector -func (c *Chime) DisassociatePhoneNumbersFromVoiceConnector(input *DisassociatePhoneNumbersFromVoiceConnectorInput) (*DisassociatePhoneNumbersFromVoiceConnectorOutput, error) { - req, out := c.DisassociatePhoneNumbersFromVoiceConnectorRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DeleteMeeting +func (c *Chime) DeleteMeeting(input *DeleteMeetingInput) (*DeleteMeetingOutput, error) { + req, out := c.DeleteMeetingRequest(input) return out, req.Send() } -// DisassociatePhoneNumbersFromVoiceConnectorWithContext is the same as DisassociatePhoneNumbersFromVoiceConnector with the addition of +// DeleteMeetingWithContext is the same as DeleteMeeting with the addition of // the ability to pass a context and additional request options. // -// See DisassociatePhoneNumbersFromVoiceConnector for details on how to use this API operation. +// See DeleteMeeting 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 *Chime) DisassociatePhoneNumbersFromVoiceConnectorWithContext(ctx aws.Context, input *DisassociatePhoneNumbersFromVoiceConnectorInput, opts ...request.Option) (*DisassociatePhoneNumbersFromVoiceConnectorOutput, error) { - req, out := c.DisassociatePhoneNumbersFromVoiceConnectorRequest(input) +func (c *Chime) DeleteMeetingWithContext(ctx aws.Context, input *DeleteMeetingInput, opts ...request.Option) (*DeleteMeetingOutput, error) { + req, out := c.DeleteMeetingRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opDisassociatePhoneNumbersFromVoiceConnectorGroup = "DisassociatePhoneNumbersFromVoiceConnectorGroup" +const opDeletePhoneNumber = "DeletePhoneNumber" -// DisassociatePhoneNumbersFromVoiceConnectorGroupRequest generates a "aws/request.Request" representing the -// client's request for the DisassociatePhoneNumbersFromVoiceConnectorGroup operation. The "output" return +// DeletePhoneNumberRequest generates a "aws/request.Request" representing the +// client's request for the DeletePhoneNumber 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 DisassociatePhoneNumbersFromVoiceConnectorGroup for more information on using the DisassociatePhoneNumbersFromVoiceConnectorGroup +// See DeletePhoneNumber for more information on using the DeletePhoneNumber // 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 DisassociatePhoneNumbersFromVoiceConnectorGroupRequest method. -// req, resp := client.DisassociatePhoneNumbersFromVoiceConnectorGroupRequest(params) +// // Example sending a request using the DeletePhoneNumberRequest method. +// req, resp := client.DeletePhoneNumberRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DisassociatePhoneNumbersFromVoiceConnectorGroup -func (c *Chime) DisassociatePhoneNumbersFromVoiceConnectorGroupRequest(input *DisassociatePhoneNumbersFromVoiceConnectorGroupInput) (req *request.Request, output *DisassociatePhoneNumbersFromVoiceConnectorGroupOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DeletePhoneNumber +func (c *Chime) DeletePhoneNumberRequest(input *DeletePhoneNumberInput) (req *request.Request, output *DeletePhoneNumberOutput) { op := &request.Operation{ - Name: opDisassociatePhoneNumbersFromVoiceConnectorGroup, - HTTPMethod: "POST", - HTTPPath: "/voice-connector-groups/{voiceConnectorGroupId}?operation=disassociate-phone-numbers", + Name: opDeletePhoneNumber, + HTTPMethod: "DELETE", + HTTPPath: "/phone-numbers/{phoneNumberId}", } if input == nil { - input = &DisassociatePhoneNumbersFromVoiceConnectorGroupInput{} + input = &DeletePhoneNumberInput{} } - output = &DisassociatePhoneNumbersFromVoiceConnectorGroupOutput{} + output = &DeletePhoneNumberOutput{} req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// DisassociatePhoneNumbersFromVoiceConnectorGroup API operation for Amazon Chime. +// DeletePhoneNumber API operation for Amazon Chime. // -// Disassociates the specified phone numbers from the specified Amazon Chime -// Voice Connector group. +// Moves the specified phone number into the Deletion queue. A phone number +// must be disassociated from any users or Amazon Chime Voice Connectors before +// it can be deleted. +// +// Deleted phone numbers remain in the Deletion queue for 7 days before they +// are deleted permanently. // // 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 Chime's -// API operation DisassociatePhoneNumbersFromVoiceConnectorGroup for usage and error information. +// API operation DeletePhoneNumber for usage and error information. // // Returned Error Types: // * UnauthorizedClientException @@ -4901,8 +4906,7 @@ func (c *Chime) DisassociatePhoneNumbersFromVoiceConnectorGroupRequest(input *Di // One or more of the resources in the request does not exist in the system. // // * ForbiddenException -// The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported Region. +// The client is permanently forbidden from making the request. // // * BadRequestException // The input parameters don't match the service's restrictions. @@ -4916,82 +4920,82 @@ func (c *Chime) DisassociatePhoneNumbersFromVoiceConnectorGroupRequest(input *Di // * ServiceFailureException // The service encountered an unexpected error. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DisassociatePhoneNumbersFromVoiceConnectorGroup -func (c *Chime) DisassociatePhoneNumbersFromVoiceConnectorGroup(input *DisassociatePhoneNumbersFromVoiceConnectorGroupInput) (*DisassociatePhoneNumbersFromVoiceConnectorGroupOutput, error) { - req, out := c.DisassociatePhoneNumbersFromVoiceConnectorGroupRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DeletePhoneNumber +func (c *Chime) DeletePhoneNumber(input *DeletePhoneNumberInput) (*DeletePhoneNumberOutput, error) { + req, out := c.DeletePhoneNumberRequest(input) return out, req.Send() } -// DisassociatePhoneNumbersFromVoiceConnectorGroupWithContext is the same as DisassociatePhoneNumbersFromVoiceConnectorGroup with the addition of +// DeletePhoneNumberWithContext is the same as DeletePhoneNumber with the addition of // the ability to pass a context and additional request options. // -// See DisassociatePhoneNumbersFromVoiceConnectorGroup for details on how to use this API operation. +// See DeletePhoneNumber 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 *Chime) DisassociatePhoneNumbersFromVoiceConnectorGroupWithContext(ctx aws.Context, input *DisassociatePhoneNumbersFromVoiceConnectorGroupInput, opts ...request.Option) (*DisassociatePhoneNumbersFromVoiceConnectorGroupOutput, error) { - req, out := c.DisassociatePhoneNumbersFromVoiceConnectorGroupRequest(input) +func (c *Chime) DeletePhoneNumberWithContext(ctx aws.Context, input *DeletePhoneNumberInput, opts ...request.Option) (*DeletePhoneNumberOutput, error) { + req, out := c.DeletePhoneNumberRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opDisassociateSigninDelegateGroupsFromAccount = "DisassociateSigninDelegateGroupsFromAccount" +const opDeleteProxySession = "DeleteProxySession" -// DisassociateSigninDelegateGroupsFromAccountRequest generates a "aws/request.Request" representing the -// client's request for the DisassociateSigninDelegateGroupsFromAccount operation. The "output" return +// DeleteProxySessionRequest generates a "aws/request.Request" representing the +// client's request for the DeleteProxySession 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 DisassociateSigninDelegateGroupsFromAccount for more information on using the DisassociateSigninDelegateGroupsFromAccount +// See DeleteProxySession for more information on using the DeleteProxySession // 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 DisassociateSigninDelegateGroupsFromAccountRequest method. -// req, resp := client.DisassociateSigninDelegateGroupsFromAccountRequest(params) +// // Example sending a request using the DeleteProxySessionRequest method. +// req, resp := client.DeleteProxySessionRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DisassociateSigninDelegateGroupsFromAccount -func (c *Chime) DisassociateSigninDelegateGroupsFromAccountRequest(input *DisassociateSigninDelegateGroupsFromAccountInput) (req *request.Request, output *DisassociateSigninDelegateGroupsFromAccountOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DeleteProxySession +func (c *Chime) DeleteProxySessionRequest(input *DeleteProxySessionInput) (req *request.Request, output *DeleteProxySessionOutput) { op := &request.Operation{ - Name: opDisassociateSigninDelegateGroupsFromAccount, - HTTPMethod: "POST", - HTTPPath: "/accounts/{accountId}?operation=disassociate-signin-delegate-groups", + Name: opDeleteProxySession, + HTTPMethod: "DELETE", + HTTPPath: "/voice-connectors/{voiceConnectorId}/proxy-sessions/{proxySessionId}", } if input == nil { - input = &DisassociateSigninDelegateGroupsFromAccountInput{} + input = &DeleteProxySessionInput{} } - output = &DisassociateSigninDelegateGroupsFromAccountOutput{} + output = &DeleteProxySessionOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// DisassociateSigninDelegateGroupsFromAccount API operation for Amazon Chime. +// DeleteProxySession API operation for Amazon Chime. // -// Disassociates the specified sign-in delegate groups from the specified Amazon -// Chime account. +// Deletes the specified proxy session from the specified Amazon Chime Voice +// Connector. // // 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 Chime's -// API operation DisassociateSigninDelegateGroupsFromAccount for usage and error information. +// API operation DeleteProxySession for usage and error information. // // Returned Error Types: // * UnauthorizedClientException @@ -5001,8 +5005,7 @@ func (c *Chime) DisassociateSigninDelegateGroupsFromAccountRequest(input *Disass // One or more of the resources in the request does not exist in the system. // // * ForbiddenException -// The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported Region. +// The client is permanently forbidden from making the request. // // * BadRequestException // The input parameters don't match the service's restrictions. @@ -5016,95 +5019,94 @@ func (c *Chime) DisassociateSigninDelegateGroupsFromAccountRequest(input *Disass // * ServiceFailureException // The service encountered an unexpected error. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DisassociateSigninDelegateGroupsFromAccount -func (c *Chime) DisassociateSigninDelegateGroupsFromAccount(input *DisassociateSigninDelegateGroupsFromAccountInput) (*DisassociateSigninDelegateGroupsFromAccountOutput, error) { - req, out := c.DisassociateSigninDelegateGroupsFromAccountRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DeleteProxySession +func (c *Chime) DeleteProxySession(input *DeleteProxySessionInput) (*DeleteProxySessionOutput, error) { + req, out := c.DeleteProxySessionRequest(input) return out, req.Send() } -// DisassociateSigninDelegateGroupsFromAccountWithContext is the same as DisassociateSigninDelegateGroupsFromAccount with the addition of +// DeleteProxySessionWithContext is the same as DeleteProxySession with the addition of // the ability to pass a context and additional request options. // -// See DisassociateSigninDelegateGroupsFromAccount for details on how to use this API operation. +// See DeleteProxySession 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 *Chime) DisassociateSigninDelegateGroupsFromAccountWithContext(ctx aws.Context, input *DisassociateSigninDelegateGroupsFromAccountInput, opts ...request.Option) (*DisassociateSigninDelegateGroupsFromAccountOutput, error) { - req, out := c.DisassociateSigninDelegateGroupsFromAccountRequest(input) +func (c *Chime) DeleteProxySessionWithContext(ctx aws.Context, input *DeleteProxySessionInput, opts ...request.Option) (*DeleteProxySessionOutput, error) { + req, out := c.DeleteProxySessionRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opGetAccount = "GetAccount" +const opDeleteRoom = "DeleteRoom" -// GetAccountRequest generates a "aws/request.Request" representing the -// client's request for the GetAccount operation. The "output" return +// DeleteRoomRequest generates a "aws/request.Request" representing the +// client's request for the DeleteRoom 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 GetAccount for more information on using the GetAccount +// See DeleteRoom for more information on using the DeleteRoom // 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 GetAccountRequest method. -// req, resp := client.GetAccountRequest(params) +// // Example sending a request using the DeleteRoomRequest method. +// req, resp := client.DeleteRoomRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetAccount -func (c *Chime) GetAccountRequest(input *GetAccountInput) (req *request.Request, output *GetAccountOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DeleteRoom +func (c *Chime) DeleteRoomRequest(input *DeleteRoomInput) (req *request.Request, output *DeleteRoomOutput) { op := &request.Operation{ - Name: opGetAccount, - HTTPMethod: "GET", - HTTPPath: "/accounts/{accountId}", + Name: opDeleteRoom, + HTTPMethod: "DELETE", + HTTPPath: "/accounts/{accountId}/rooms/{roomId}", } if input == nil { - input = &GetAccountInput{} + input = &DeleteRoomInput{} } - output = &GetAccountOutput{} + output = &DeleteRoomOutput{} req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// GetAccount API operation for Amazon Chime. +// DeleteRoom API operation for Amazon Chime. // -// Retrieves details for the specified Amazon Chime account, such as account -// type and supported licenses. +// Deletes a chat room in an Amazon Chime Enterprise account. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Chime's -// API operation GetAccount for usage and error information. +// API operation DeleteRoom for usage and error information. // // Returned Error Types: -// * UnauthorizedClientException -// The client is not currently authorized to make the request. +// * BadRequestException +// The input parameters don't match the service's restrictions. +// +// * ForbiddenException +// The client is permanently forbidden from making the request. // // * NotFoundException // One or more of the resources in the request does not exist in the system. // -// * ForbiddenException -// The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported Region. -// -// * BadRequestException -// The input parameters don't match the service's restrictions. +// * UnauthorizedClientException +// The client is not currently authorized to make the request. // // * ThrottledClientException // The client exceeded its request rate limit. @@ -5115,83 +5117,81 @@ func (c *Chime) GetAccountRequest(input *GetAccountInput) (req *request.Request, // * ServiceFailureException // The service encountered an unexpected error. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetAccount -func (c *Chime) GetAccount(input *GetAccountInput) (*GetAccountOutput, error) { - req, out := c.GetAccountRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DeleteRoom +func (c *Chime) DeleteRoom(input *DeleteRoomInput) (*DeleteRoomOutput, error) { + req, out := c.DeleteRoomRequest(input) return out, req.Send() } -// GetAccountWithContext is the same as GetAccount with the addition of +// DeleteRoomWithContext is the same as DeleteRoom with the addition of // the ability to pass a context and additional request options. // -// See GetAccount for details on how to use this API operation. +// See DeleteRoom 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 *Chime) GetAccountWithContext(ctx aws.Context, input *GetAccountInput, opts ...request.Option) (*GetAccountOutput, error) { - req, out := c.GetAccountRequest(input) +func (c *Chime) DeleteRoomWithContext(ctx aws.Context, input *DeleteRoomInput, opts ...request.Option) (*DeleteRoomOutput, error) { + req, out := c.DeleteRoomRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opGetAccountSettings = "GetAccountSettings" +const opDeleteRoomMembership = "DeleteRoomMembership" -// GetAccountSettingsRequest generates a "aws/request.Request" representing the -// client's request for the GetAccountSettings operation. The "output" return +// DeleteRoomMembershipRequest generates a "aws/request.Request" representing the +// client's request for the DeleteRoomMembership 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 GetAccountSettings for more information on using the GetAccountSettings +// See DeleteRoomMembership for more information on using the DeleteRoomMembership // 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 GetAccountSettingsRequest method. -// req, resp := client.GetAccountSettingsRequest(params) +// // Example sending a request using the DeleteRoomMembershipRequest method. +// req, resp := client.DeleteRoomMembershipRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetAccountSettings -func (c *Chime) GetAccountSettingsRequest(input *GetAccountSettingsInput) (req *request.Request, output *GetAccountSettingsOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DeleteRoomMembership +func (c *Chime) DeleteRoomMembershipRequest(input *DeleteRoomMembershipInput) (req *request.Request, output *DeleteRoomMembershipOutput) { op := &request.Operation{ - Name: opGetAccountSettings, - HTTPMethod: "GET", - HTTPPath: "/accounts/{accountId}/settings", + Name: opDeleteRoomMembership, + HTTPMethod: "DELETE", + HTTPPath: "/accounts/{accountId}/rooms/{roomId}/memberships/{memberId}", } if input == nil { - input = &GetAccountSettingsInput{} + input = &DeleteRoomMembershipInput{} } - output = &GetAccountSettingsOutput{} + output = &DeleteRoomMembershipOutput{} req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// GetAccountSettings API operation for Amazon Chime. +// DeleteRoomMembership API operation for Amazon Chime. // -// Retrieves account settings for the specified Amazon Chime account ID, such -// as remote control and dial out settings. For more information about these -// settings, see Use the Policies Page (https://docs.aws.amazon.com/chime/latest/ag/policies.html) -// in the Amazon Chime Administration Guide. +// Removes a member from a chat room in an Amazon Chime Enterprise account. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Chime's -// API operation GetAccountSettings for usage and error information. +// API operation DeleteRoomMembership for usage and error information. // // Returned Error Types: // * UnauthorizedClientException @@ -5204,8 +5204,7 @@ func (c *Chime) GetAccountSettingsRequest(input *GetAccountSettingsInput) (req * // The input parameters don't match the service's restrictions. // // * ForbiddenException -// The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported Region. +// The client is permanently forbidden from making the request. // // * ThrottledClientException // The client exceeded its request rate limit. @@ -5216,388 +5215,400 @@ func (c *Chime) GetAccountSettingsRequest(input *GetAccountSettingsInput) (req * // * ServiceFailureException // The service encountered an unexpected error. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetAccountSettings -func (c *Chime) GetAccountSettings(input *GetAccountSettingsInput) (*GetAccountSettingsOutput, error) { - req, out := c.GetAccountSettingsRequest(input) - return out, req.Send() -} +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DeleteRoomMembership +func (c *Chime) DeleteRoomMembership(input *DeleteRoomMembershipInput) (*DeleteRoomMembershipOutput, error) { + req, out := c.DeleteRoomMembershipRequest(input) + return out, req.Send() +} -// GetAccountSettingsWithContext is the same as GetAccountSettings with the addition of +// DeleteRoomMembershipWithContext is the same as DeleteRoomMembership with the addition of // the ability to pass a context and additional request options. // -// See GetAccountSettings for details on how to use this API operation. +// See DeleteRoomMembership 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 *Chime) GetAccountSettingsWithContext(ctx aws.Context, input *GetAccountSettingsInput, opts ...request.Option) (*GetAccountSettingsOutput, error) { - req, out := c.GetAccountSettingsRequest(input) +func (c *Chime) DeleteRoomMembershipWithContext(ctx aws.Context, input *DeleteRoomMembershipInput, opts ...request.Option) (*DeleteRoomMembershipOutput, error) { + req, out := c.DeleteRoomMembershipRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opGetAttendee = "GetAttendee" +const opDeleteSipMediaApplication = "DeleteSipMediaApplication" -// GetAttendeeRequest generates a "aws/request.Request" representing the -// client's request for the GetAttendee operation. The "output" return +// DeleteSipMediaApplicationRequest generates a "aws/request.Request" representing the +// client's request for the DeleteSipMediaApplication 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 GetAttendee for more information on using the GetAttendee +// See DeleteSipMediaApplication for more information on using the DeleteSipMediaApplication // 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 GetAttendeeRequest method. -// req, resp := client.GetAttendeeRequest(params) +// // Example sending a request using the DeleteSipMediaApplicationRequest method. +// req, resp := client.DeleteSipMediaApplicationRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetAttendee -func (c *Chime) GetAttendeeRequest(input *GetAttendeeInput) (req *request.Request, output *GetAttendeeOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DeleteSipMediaApplication +func (c *Chime) DeleteSipMediaApplicationRequest(input *DeleteSipMediaApplicationInput) (req *request.Request, output *DeleteSipMediaApplicationOutput) { op := &request.Operation{ - Name: opGetAttendee, - HTTPMethod: "GET", - HTTPPath: "/meetings/{meetingId}/attendees/{attendeeId}", + Name: opDeleteSipMediaApplication, + HTTPMethod: "DELETE", + HTTPPath: "/sip-media-applications/{sipMediaApplicationId}", } if input == nil { - input = &GetAttendeeInput{} + input = &DeleteSipMediaApplicationInput{} } - output = &GetAttendeeOutput{} + output = &DeleteSipMediaApplicationOutput{} req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// GetAttendee API operation for Amazon Chime. +// DeleteSipMediaApplication API operation for Amazon Chime. // -// Gets the Amazon Chime SDK attendee details for a specified meeting ID and -// attendee ID. For more information about the Amazon Chime SDK, see Using the -// Amazon Chime SDK (https://docs.aws.amazon.com/chime/latest/dg/meetings-sdk.html) -// in the Amazon Chime Developer Guide. +// Deletes a SIP media application. // // 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 Chime's -// API operation GetAttendee for usage and error information. +// API operation DeleteSipMediaApplication for usage and error information. // // Returned Error Types: -// * BadRequestException -// The input parameters don't match the service's restrictions. -// -// * ForbiddenException -// The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported Region. +// * UnauthorizedClientException +// The client is not currently authorized to make the request. // // * NotFoundException // One or more of the resources in the request does not exist in the system. // +// * ForbiddenException +// The client is permanently forbidden from making the request. +// +// * BadRequestException +// The input parameters don't match the service's restrictions. +// +// * ConflictException +// The request could not be processed because of conflict in the current state +// of the resource. +// // * ThrottledClientException // The client exceeded its request rate limit. // -// * UnauthorizedClientException -// The client is not currently authorized to make the request. -// // * ServiceUnavailableException // The service is currently unavailable. // // * ServiceFailureException // The service encountered an unexpected error. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetAttendee -func (c *Chime) GetAttendee(input *GetAttendeeInput) (*GetAttendeeOutput, error) { - req, out := c.GetAttendeeRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DeleteSipMediaApplication +func (c *Chime) DeleteSipMediaApplication(input *DeleteSipMediaApplicationInput) (*DeleteSipMediaApplicationOutput, error) { + req, out := c.DeleteSipMediaApplicationRequest(input) return out, req.Send() } -// GetAttendeeWithContext is the same as GetAttendee with the addition of +// DeleteSipMediaApplicationWithContext is the same as DeleteSipMediaApplication with the addition of // the ability to pass a context and additional request options. // -// See GetAttendee for details on how to use this API operation. +// See DeleteSipMediaApplication 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 *Chime) GetAttendeeWithContext(ctx aws.Context, input *GetAttendeeInput, opts ...request.Option) (*GetAttendeeOutput, error) { - req, out := c.GetAttendeeRequest(input) +func (c *Chime) DeleteSipMediaApplicationWithContext(ctx aws.Context, input *DeleteSipMediaApplicationInput, opts ...request.Option) (*DeleteSipMediaApplicationOutput, error) { + req, out := c.DeleteSipMediaApplicationRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opGetBot = "GetBot" +const opDeleteSipRule = "DeleteSipRule" -// GetBotRequest generates a "aws/request.Request" representing the -// client's request for the GetBot operation. The "output" return +// DeleteSipRuleRequest generates a "aws/request.Request" representing the +// client's request for the DeleteSipRule 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 GetBot for more information on using the GetBot +// See DeleteSipRule for more information on using the DeleteSipRule // 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 GetBotRequest method. -// req, resp := client.GetBotRequest(params) +// // Example sending a request using the DeleteSipRuleRequest method. +// req, resp := client.DeleteSipRuleRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetBot -func (c *Chime) GetBotRequest(input *GetBotInput) (req *request.Request, output *GetBotOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DeleteSipRule +func (c *Chime) DeleteSipRuleRequest(input *DeleteSipRuleInput) (req *request.Request, output *DeleteSipRuleOutput) { op := &request.Operation{ - Name: opGetBot, - HTTPMethod: "GET", - HTTPPath: "/accounts/{accountId}/bots/{botId}", + Name: opDeleteSipRule, + HTTPMethod: "DELETE", + HTTPPath: "/sip-rules/{sipRuleId}", } if input == nil { - input = &GetBotInput{} + input = &DeleteSipRuleInput{} } - output = &GetBotOutput{} + output = &DeleteSipRuleOutput{} req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// GetBot API operation for Amazon Chime. +// DeleteSipRule API operation for Amazon Chime. // -// Retrieves details for the specified bot, such as bot email address, bot type, -// status, and display name. +// Deletes a SIP rule. You must disable a SIP rule before you can delete it. // // 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 Chime's -// API operation GetBot for usage and error information. +// API operation DeleteSipRule for usage and error information. // // Returned Error Types: -// * ServiceUnavailableException -// The service is currently unavailable. -// -// * ServiceFailureException -// The service encountered an unexpected error. -// -// * ForbiddenException -// The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported Region. -// // * UnauthorizedClientException // The client is not currently authorized to make the request. // // * NotFoundException // One or more of the resources in the request does not exist in the system. // +// * ForbiddenException +// The client is permanently forbidden from making the request. +// // * BadRequestException // The input parameters don't match the service's restrictions. // +// * ConflictException +// The request could not be processed because of conflict in the current state +// of the resource. +// // * ThrottledClientException // The client exceeded its request rate limit. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetBot -func (c *Chime) GetBot(input *GetBotInput) (*GetBotOutput, error) { - req, out := c.GetBotRequest(input) +// * ServiceUnavailableException +// The service is currently unavailable. +// +// * ServiceFailureException +// The service encountered an unexpected error. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DeleteSipRule +func (c *Chime) DeleteSipRule(input *DeleteSipRuleInput) (*DeleteSipRuleOutput, error) { + req, out := c.DeleteSipRuleRequest(input) return out, req.Send() } -// GetBotWithContext is the same as GetBot with the addition of +// DeleteSipRuleWithContext is the same as DeleteSipRule with the addition of // the ability to pass a context and additional request options. // -// See GetBot for details on how to use this API operation. +// See DeleteSipRule 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 *Chime) GetBotWithContext(ctx aws.Context, input *GetBotInput, opts ...request.Option) (*GetBotOutput, error) { - req, out := c.GetBotRequest(input) +func (c *Chime) DeleteSipRuleWithContext(ctx aws.Context, input *DeleteSipRuleInput, opts ...request.Option) (*DeleteSipRuleOutput, error) { + req, out := c.DeleteSipRuleRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opGetEventsConfiguration = "GetEventsConfiguration" +const opDeleteVoiceConnector = "DeleteVoiceConnector" -// GetEventsConfigurationRequest generates a "aws/request.Request" representing the -// client's request for the GetEventsConfiguration operation. The "output" return +// DeleteVoiceConnectorRequest generates a "aws/request.Request" representing the +// client's request for the DeleteVoiceConnector 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 GetEventsConfiguration for more information on using the GetEventsConfiguration +// See DeleteVoiceConnector for more information on using the DeleteVoiceConnector // 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 GetEventsConfigurationRequest method. -// req, resp := client.GetEventsConfigurationRequest(params) +// // Example sending a request using the DeleteVoiceConnectorRequest method. +// req, resp := client.DeleteVoiceConnectorRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetEventsConfiguration -func (c *Chime) GetEventsConfigurationRequest(input *GetEventsConfigurationInput) (req *request.Request, output *GetEventsConfigurationOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DeleteVoiceConnector +func (c *Chime) DeleteVoiceConnectorRequest(input *DeleteVoiceConnectorInput) (req *request.Request, output *DeleteVoiceConnectorOutput) { op := &request.Operation{ - Name: opGetEventsConfiguration, - HTTPMethod: "GET", - HTTPPath: "/accounts/{accountId}/bots/{botId}/events-configuration", + Name: opDeleteVoiceConnector, + HTTPMethod: "DELETE", + HTTPPath: "/voice-connectors/{voiceConnectorId}", } if input == nil { - input = &GetEventsConfigurationInput{} + input = &DeleteVoiceConnectorInput{} } - output = &GetEventsConfigurationOutput{} + output = &DeleteVoiceConnectorOutput{} req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// GetEventsConfiguration API operation for Amazon Chime. +// DeleteVoiceConnector API operation for Amazon Chime. // -// Gets details for an events configuration that allows a bot to receive outgoing -// events, such as an HTTPS endpoint or Lambda function ARN. +// Deletes the specified Amazon Chime Voice Connector. Any phone numbers associated +// with the Amazon Chime Voice Connector must be disassociated from it before +// it can be deleted. // // 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 Chime's -// API operation GetEventsConfiguration for usage and error information. +// API operation DeleteVoiceConnector for usage and error information. // // Returned Error Types: -// * ServiceUnavailableException -// The service is currently unavailable. +// * UnauthorizedClientException +// The client is not currently authorized to make the request. // -// * ServiceFailureException -// The service encountered an unexpected error. +// * NotFoundException +// One or more of the resources in the request does not exist in the system. // // * ForbiddenException -// The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported Region. +// The client is permanently forbidden from making the request. // // * BadRequestException // The input parameters don't match the service's restrictions. // -// * UnauthorizedClientException -// The client is not currently authorized to make the request. +// * ConflictException +// The request could not be processed because of conflict in the current state +// of the resource. // -// * ResourceLimitExceededException -// The request exceeds the resource limit. +// * ThrottledClientException +// The client exceeded its request rate limit. // -// * NotFoundException -// One or more of the resources in the request does not exist in the system. +// * ServiceUnavailableException +// The service is currently unavailable. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetEventsConfiguration -func (c *Chime) GetEventsConfiguration(input *GetEventsConfigurationInput) (*GetEventsConfigurationOutput, error) { - req, out := c.GetEventsConfigurationRequest(input) +// * ServiceFailureException +// The service encountered an unexpected error. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DeleteVoiceConnector +func (c *Chime) DeleteVoiceConnector(input *DeleteVoiceConnectorInput) (*DeleteVoiceConnectorOutput, error) { + req, out := c.DeleteVoiceConnectorRequest(input) return out, req.Send() } -// GetEventsConfigurationWithContext is the same as GetEventsConfiguration with the addition of +// DeleteVoiceConnectorWithContext is the same as DeleteVoiceConnector with the addition of // the ability to pass a context and additional request options. // -// See GetEventsConfiguration for details on how to use this API operation. +// See DeleteVoiceConnector 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 *Chime) GetEventsConfigurationWithContext(ctx aws.Context, input *GetEventsConfigurationInput, opts ...request.Option) (*GetEventsConfigurationOutput, error) { - req, out := c.GetEventsConfigurationRequest(input) +func (c *Chime) DeleteVoiceConnectorWithContext(ctx aws.Context, input *DeleteVoiceConnectorInput, opts ...request.Option) (*DeleteVoiceConnectorOutput, error) { + req, out := c.DeleteVoiceConnectorRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opGetGlobalSettings = "GetGlobalSettings" +const opDeleteVoiceConnectorEmergencyCallingConfiguration = "DeleteVoiceConnectorEmergencyCallingConfiguration" -// GetGlobalSettingsRequest generates a "aws/request.Request" representing the -// client's request for the GetGlobalSettings operation. The "output" return +// DeleteVoiceConnectorEmergencyCallingConfigurationRequest generates a "aws/request.Request" representing the +// client's request for the DeleteVoiceConnectorEmergencyCallingConfiguration 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 GetGlobalSettings for more information on using the GetGlobalSettings +// See DeleteVoiceConnectorEmergencyCallingConfiguration for more information on using the DeleteVoiceConnectorEmergencyCallingConfiguration // 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 GetGlobalSettingsRequest method. -// req, resp := client.GetGlobalSettingsRequest(params) +// // Example sending a request using the DeleteVoiceConnectorEmergencyCallingConfigurationRequest method. +// req, resp := client.DeleteVoiceConnectorEmergencyCallingConfigurationRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetGlobalSettings -func (c *Chime) GetGlobalSettingsRequest(input *GetGlobalSettingsInput) (req *request.Request, output *GetGlobalSettingsOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DeleteVoiceConnectorEmergencyCallingConfiguration +func (c *Chime) DeleteVoiceConnectorEmergencyCallingConfigurationRequest(input *DeleteVoiceConnectorEmergencyCallingConfigurationInput) (req *request.Request, output *DeleteVoiceConnectorEmergencyCallingConfigurationOutput) { op := &request.Operation{ - Name: opGetGlobalSettings, - HTTPMethod: "GET", - HTTPPath: "/settings", + Name: opDeleteVoiceConnectorEmergencyCallingConfiguration, + HTTPMethod: "DELETE", + HTTPPath: "/voice-connectors/{voiceConnectorId}/emergency-calling-configuration", } if input == nil { - input = &GetGlobalSettingsInput{} + input = &DeleteVoiceConnectorEmergencyCallingConfigurationInput{} } - output = &GetGlobalSettingsOutput{} + output = &DeleteVoiceConnectorEmergencyCallingConfigurationOutput{} req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// GetGlobalSettings API operation for Amazon Chime. +// DeleteVoiceConnectorEmergencyCallingConfiguration API operation for Amazon Chime. // -// Retrieves global settings for the administrator's AWS account, such as Amazon -// Chime Business Calling and Amazon Chime Voice Connector settings. +// Deletes the emergency calling configuration details from the specified Amazon +// Chime Voice Connector. // // 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 Chime's -// API operation GetGlobalSettings for usage and error information. +// API operation DeleteVoiceConnectorEmergencyCallingConfiguration for usage and error information. // // Returned Error Types: // * UnauthorizedClientException // The client is not currently authorized to make the request. // +// * NotFoundException +// One or more of the resources in the request does not exist in the system. +// // * ForbiddenException -// The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported Region. +// The client is permanently forbidden from making the request. // // * BadRequestException // The input parameters don't match the service's restrictions. @@ -5611,182 +5622,188 @@ func (c *Chime) GetGlobalSettingsRequest(input *GetGlobalSettingsInput) (req *re // * ServiceFailureException // The service encountered an unexpected error. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetGlobalSettings -func (c *Chime) GetGlobalSettings(input *GetGlobalSettingsInput) (*GetGlobalSettingsOutput, error) { - req, out := c.GetGlobalSettingsRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DeleteVoiceConnectorEmergencyCallingConfiguration +func (c *Chime) DeleteVoiceConnectorEmergencyCallingConfiguration(input *DeleteVoiceConnectorEmergencyCallingConfigurationInput) (*DeleteVoiceConnectorEmergencyCallingConfigurationOutput, error) { + req, out := c.DeleteVoiceConnectorEmergencyCallingConfigurationRequest(input) return out, req.Send() } -// GetGlobalSettingsWithContext is the same as GetGlobalSettings with the addition of +// DeleteVoiceConnectorEmergencyCallingConfigurationWithContext is the same as DeleteVoiceConnectorEmergencyCallingConfiguration with the addition of // the ability to pass a context and additional request options. // -// See GetGlobalSettings for details on how to use this API operation. +// See DeleteVoiceConnectorEmergencyCallingConfiguration 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 *Chime) GetGlobalSettingsWithContext(ctx aws.Context, input *GetGlobalSettingsInput, opts ...request.Option) (*GetGlobalSettingsOutput, error) { - req, out := c.GetGlobalSettingsRequest(input) +func (c *Chime) DeleteVoiceConnectorEmergencyCallingConfigurationWithContext(ctx aws.Context, input *DeleteVoiceConnectorEmergencyCallingConfigurationInput, opts ...request.Option) (*DeleteVoiceConnectorEmergencyCallingConfigurationOutput, error) { + req, out := c.DeleteVoiceConnectorEmergencyCallingConfigurationRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opGetMeeting = "GetMeeting" +const opDeleteVoiceConnectorGroup = "DeleteVoiceConnectorGroup" -// GetMeetingRequest generates a "aws/request.Request" representing the -// client's request for the GetMeeting operation. The "output" return +// DeleteVoiceConnectorGroupRequest generates a "aws/request.Request" representing the +// client's request for the DeleteVoiceConnectorGroup 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 GetMeeting for more information on using the GetMeeting +// See DeleteVoiceConnectorGroup for more information on using the DeleteVoiceConnectorGroup // 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 GetMeetingRequest method. -// req, resp := client.GetMeetingRequest(params) +// // Example sending a request using the DeleteVoiceConnectorGroupRequest method. +// req, resp := client.DeleteVoiceConnectorGroupRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetMeeting -func (c *Chime) GetMeetingRequest(input *GetMeetingInput) (req *request.Request, output *GetMeetingOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DeleteVoiceConnectorGroup +func (c *Chime) DeleteVoiceConnectorGroupRequest(input *DeleteVoiceConnectorGroupInput) (req *request.Request, output *DeleteVoiceConnectorGroupOutput) { op := &request.Operation{ - Name: opGetMeeting, - HTTPMethod: "GET", - HTTPPath: "/meetings/{meetingId}", + Name: opDeleteVoiceConnectorGroup, + HTTPMethod: "DELETE", + HTTPPath: "/voice-connector-groups/{voiceConnectorGroupId}", } if input == nil { - input = &GetMeetingInput{} + input = &DeleteVoiceConnectorGroupInput{} } - output = &GetMeetingOutput{} + output = &DeleteVoiceConnectorGroupOutput{} req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// GetMeeting API operation for Amazon Chime. +// DeleteVoiceConnectorGroup API operation for Amazon Chime. // -// Gets the Amazon Chime SDK meeting details for the specified meeting ID. For -// more information about the Amazon Chime SDK, see Using the Amazon Chime SDK -// (https://docs.aws.amazon.com/chime/latest/dg/meetings-sdk.html) in the Amazon -// Chime Developer Guide. +// Deletes the specified Amazon Chime Voice Connector group. Any VoiceConnectorItems +// and phone numbers associated with the group must be removed before it can +// be deleted. // // 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 Chime's -// API operation GetMeeting for usage and error information. +// API operation DeleteVoiceConnectorGroup for usage and error information. // // Returned Error Types: -// * BadRequestException -// The input parameters don't match the service's restrictions. -// -// * ForbiddenException -// The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported Region. +// * UnauthorizedClientException +// The client is not currently authorized to make the request. // // * NotFoundException // One or more of the resources in the request does not exist in the system. // +// * ForbiddenException +// The client is permanently forbidden from making the request. +// +// * BadRequestException +// The input parameters don't match the service's restrictions. +// +// * ConflictException +// The request could not be processed because of conflict in the current state +// of the resource. +// // * ThrottledClientException // The client exceeded its request rate limit. // -// * UnauthorizedClientException -// The client is not currently authorized to make the request. -// // * ServiceUnavailableException // The service is currently unavailable. // // * ServiceFailureException // The service encountered an unexpected error. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetMeeting -func (c *Chime) GetMeeting(input *GetMeetingInput) (*GetMeetingOutput, error) { - req, out := c.GetMeetingRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DeleteVoiceConnectorGroup +func (c *Chime) DeleteVoiceConnectorGroup(input *DeleteVoiceConnectorGroupInput) (*DeleteVoiceConnectorGroupOutput, error) { + req, out := c.DeleteVoiceConnectorGroupRequest(input) return out, req.Send() } -// GetMeetingWithContext is the same as GetMeeting with the addition of +// DeleteVoiceConnectorGroupWithContext is the same as DeleteVoiceConnectorGroup with the addition of // the ability to pass a context and additional request options. // -// See GetMeeting for details on how to use this API operation. +// See DeleteVoiceConnectorGroup 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 *Chime) GetMeetingWithContext(ctx aws.Context, input *GetMeetingInput, opts ...request.Option) (*GetMeetingOutput, error) { - req, out := c.GetMeetingRequest(input) +func (c *Chime) DeleteVoiceConnectorGroupWithContext(ctx aws.Context, input *DeleteVoiceConnectorGroupInput, opts ...request.Option) (*DeleteVoiceConnectorGroupOutput, error) { + req, out := c.DeleteVoiceConnectorGroupRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opGetPhoneNumber = "GetPhoneNumber" +const opDeleteVoiceConnectorOrigination = "DeleteVoiceConnectorOrigination" -// GetPhoneNumberRequest generates a "aws/request.Request" representing the -// client's request for the GetPhoneNumber operation. The "output" return +// DeleteVoiceConnectorOriginationRequest generates a "aws/request.Request" representing the +// client's request for the DeleteVoiceConnectorOrigination 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 GetPhoneNumber for more information on using the GetPhoneNumber +// See DeleteVoiceConnectorOrigination for more information on using the DeleteVoiceConnectorOrigination // 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 GetPhoneNumberRequest method. -// req, resp := client.GetPhoneNumberRequest(params) +// // Example sending a request using the DeleteVoiceConnectorOriginationRequest method. +// req, resp := client.DeleteVoiceConnectorOriginationRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetPhoneNumber -func (c *Chime) GetPhoneNumberRequest(input *GetPhoneNumberInput) (req *request.Request, output *GetPhoneNumberOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DeleteVoiceConnectorOrigination +func (c *Chime) DeleteVoiceConnectorOriginationRequest(input *DeleteVoiceConnectorOriginationInput) (req *request.Request, output *DeleteVoiceConnectorOriginationOutput) { op := &request.Operation{ - Name: opGetPhoneNumber, - HTTPMethod: "GET", - HTTPPath: "/phone-numbers/{phoneNumberId}", + Name: opDeleteVoiceConnectorOrigination, + HTTPMethod: "DELETE", + HTTPPath: "/voice-connectors/{voiceConnectorId}/origination", } if input == nil { - input = &GetPhoneNumberInput{} + input = &DeleteVoiceConnectorOriginationInput{} } - output = &GetPhoneNumberOutput{} + output = &DeleteVoiceConnectorOriginationOutput{} req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// GetPhoneNumber API operation for Amazon Chime. +// DeleteVoiceConnectorOrigination API operation for Amazon Chime. // -// Retrieves details for the specified phone number ID, such as associations, -// capabilities, and product type. +// Deletes the origination settings for the specified Amazon Chime Voice Connector. +// +// If emergency calling is configured for the Amazon Chime Voice Connector, +// it must be deleted prior to deleting the origination settings. // // 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 Chime's -// API operation GetPhoneNumber for usage and error information. +// API operation DeleteVoiceConnectorOrigination for usage and error information. // // Returned Error Types: // * UnauthorizedClientException @@ -5796,8 +5813,7 @@ func (c *Chime) GetPhoneNumberRequest(input *GetPhoneNumberInput) (req *request. // One or more of the resources in the request does not exist in the system. // // * ForbiddenException -// The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported Region. +// The client is permanently forbidden from making the request. // // * BadRequestException // The input parameters don't match the service's restrictions. @@ -5811,81 +5827,81 @@ func (c *Chime) GetPhoneNumberRequest(input *GetPhoneNumberInput) (req *request. // * ServiceFailureException // The service encountered an unexpected error. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetPhoneNumber -func (c *Chime) GetPhoneNumber(input *GetPhoneNumberInput) (*GetPhoneNumberOutput, error) { - req, out := c.GetPhoneNumberRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DeleteVoiceConnectorOrigination +func (c *Chime) DeleteVoiceConnectorOrigination(input *DeleteVoiceConnectorOriginationInput) (*DeleteVoiceConnectorOriginationOutput, error) { + req, out := c.DeleteVoiceConnectorOriginationRequest(input) return out, req.Send() } -// GetPhoneNumberWithContext is the same as GetPhoneNumber with the addition of +// DeleteVoiceConnectorOriginationWithContext is the same as DeleteVoiceConnectorOrigination with the addition of // the ability to pass a context and additional request options. // -// See GetPhoneNumber for details on how to use this API operation. +// See DeleteVoiceConnectorOrigination 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 *Chime) GetPhoneNumberWithContext(ctx aws.Context, input *GetPhoneNumberInput, opts ...request.Option) (*GetPhoneNumberOutput, error) { - req, out := c.GetPhoneNumberRequest(input) +func (c *Chime) DeleteVoiceConnectorOriginationWithContext(ctx aws.Context, input *DeleteVoiceConnectorOriginationInput, opts ...request.Option) (*DeleteVoiceConnectorOriginationOutput, error) { + req, out := c.DeleteVoiceConnectorOriginationRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opGetPhoneNumberOrder = "GetPhoneNumberOrder" +const opDeleteVoiceConnectorProxy = "DeleteVoiceConnectorProxy" -// GetPhoneNumberOrderRequest generates a "aws/request.Request" representing the -// client's request for the GetPhoneNumberOrder operation. The "output" return +// DeleteVoiceConnectorProxyRequest generates a "aws/request.Request" representing the +// client's request for the DeleteVoiceConnectorProxy 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 GetPhoneNumberOrder for more information on using the GetPhoneNumberOrder +// See DeleteVoiceConnectorProxy for more information on using the DeleteVoiceConnectorProxy // 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 GetPhoneNumberOrderRequest method. -// req, resp := client.GetPhoneNumberOrderRequest(params) +// // Example sending a request using the DeleteVoiceConnectorProxyRequest method. +// req, resp := client.DeleteVoiceConnectorProxyRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetPhoneNumberOrder -func (c *Chime) GetPhoneNumberOrderRequest(input *GetPhoneNumberOrderInput) (req *request.Request, output *GetPhoneNumberOrderOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DeleteVoiceConnectorProxy +func (c *Chime) DeleteVoiceConnectorProxyRequest(input *DeleteVoiceConnectorProxyInput) (req *request.Request, output *DeleteVoiceConnectorProxyOutput) { op := &request.Operation{ - Name: opGetPhoneNumberOrder, - HTTPMethod: "GET", - HTTPPath: "/phone-number-orders/{phoneNumberOrderId}", + Name: opDeleteVoiceConnectorProxy, + HTTPMethod: "DELETE", + HTTPPath: "/voice-connectors/{voiceConnectorId}/programmable-numbers/proxy", } if input == nil { - input = &GetPhoneNumberOrderInput{} + input = &DeleteVoiceConnectorProxyInput{} } - output = &GetPhoneNumberOrderOutput{} + output = &DeleteVoiceConnectorProxyOutput{} req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// GetPhoneNumberOrder API operation for Amazon Chime. +// DeleteVoiceConnectorProxy API operation for Amazon Chime. // -// Retrieves details for the specified phone number order, such as order creation -// timestamp, phone numbers in E.164 format, product type, and order status. +// Deletes the proxy configuration from the specified Amazon Chime Voice Connector. // // 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 Chime's -// API operation GetPhoneNumberOrder for usage and error information. +// API operation DeleteVoiceConnectorProxy for usage and error information. // // Returned Error Types: // * UnauthorizedClientException @@ -5895,8 +5911,7 @@ func (c *Chime) GetPhoneNumberOrderRequest(input *GetPhoneNumberOrderInput) (req // One or more of the resources in the request does not exist in the system. // // * ForbiddenException -// The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported Region. +// The client is permanently forbidden from making the request. // // * BadRequestException // The input parameters don't match the service's restrictions. @@ -5910,89 +5925,92 @@ func (c *Chime) GetPhoneNumberOrderRequest(input *GetPhoneNumberOrderInput) (req // * ServiceFailureException // The service encountered an unexpected error. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetPhoneNumberOrder -func (c *Chime) GetPhoneNumberOrder(input *GetPhoneNumberOrderInput) (*GetPhoneNumberOrderOutput, error) { - req, out := c.GetPhoneNumberOrderRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DeleteVoiceConnectorProxy +func (c *Chime) DeleteVoiceConnectorProxy(input *DeleteVoiceConnectorProxyInput) (*DeleteVoiceConnectorProxyOutput, error) { + req, out := c.DeleteVoiceConnectorProxyRequest(input) return out, req.Send() } -// GetPhoneNumberOrderWithContext is the same as GetPhoneNumberOrder with the addition of +// DeleteVoiceConnectorProxyWithContext is the same as DeleteVoiceConnectorProxy with the addition of // the ability to pass a context and additional request options. // -// See GetPhoneNumberOrder for details on how to use this API operation. +// See DeleteVoiceConnectorProxy 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 *Chime) GetPhoneNumberOrderWithContext(ctx aws.Context, input *GetPhoneNumberOrderInput, opts ...request.Option) (*GetPhoneNumberOrderOutput, error) { - req, out := c.GetPhoneNumberOrderRequest(input) +func (c *Chime) DeleteVoiceConnectorProxyWithContext(ctx aws.Context, input *DeleteVoiceConnectorProxyInput, opts ...request.Option) (*DeleteVoiceConnectorProxyOutput, error) { + req, out := c.DeleteVoiceConnectorProxyRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opGetPhoneNumberSettings = "GetPhoneNumberSettings" +const opDeleteVoiceConnectorStreamingConfiguration = "DeleteVoiceConnectorStreamingConfiguration" -// GetPhoneNumberSettingsRequest generates a "aws/request.Request" representing the -// client's request for the GetPhoneNumberSettings operation. The "output" return +// DeleteVoiceConnectorStreamingConfigurationRequest generates a "aws/request.Request" representing the +// client's request for the DeleteVoiceConnectorStreamingConfiguration 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 GetPhoneNumberSettings for more information on using the GetPhoneNumberSettings +// See DeleteVoiceConnectorStreamingConfiguration for more information on using the DeleteVoiceConnectorStreamingConfiguration // 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 GetPhoneNumberSettingsRequest method. -// req, resp := client.GetPhoneNumberSettingsRequest(params) +// // Example sending a request using the DeleteVoiceConnectorStreamingConfigurationRequest method. +// req, resp := client.DeleteVoiceConnectorStreamingConfigurationRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetPhoneNumberSettings -func (c *Chime) GetPhoneNumberSettingsRequest(input *GetPhoneNumberSettingsInput) (req *request.Request, output *GetPhoneNumberSettingsOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DeleteVoiceConnectorStreamingConfiguration +func (c *Chime) DeleteVoiceConnectorStreamingConfigurationRequest(input *DeleteVoiceConnectorStreamingConfigurationInput) (req *request.Request, output *DeleteVoiceConnectorStreamingConfigurationOutput) { op := &request.Operation{ - Name: opGetPhoneNumberSettings, - HTTPMethod: "GET", - HTTPPath: "/settings/phone-number", + Name: opDeleteVoiceConnectorStreamingConfiguration, + HTTPMethod: "DELETE", + HTTPPath: "/voice-connectors/{voiceConnectorId}/streaming-configuration", } if input == nil { - input = &GetPhoneNumberSettingsInput{} + input = &DeleteVoiceConnectorStreamingConfigurationInput{} } - output = &GetPhoneNumberSettingsOutput{} + output = &DeleteVoiceConnectorStreamingConfigurationOutput{} req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// GetPhoneNumberSettings API operation for Amazon Chime. +// DeleteVoiceConnectorStreamingConfiguration API operation for Amazon Chime. // -// Retrieves the phone number settings for the administrator's AWS account, -// such as the default outbound calling name. +// Deletes the streaming configuration for the specified Amazon Chime Voice +// Connector. // // 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 Chime's -// API operation GetPhoneNumberSettings for usage and error information. +// API operation DeleteVoiceConnectorStreamingConfiguration for usage and error information. // // Returned Error Types: // * UnauthorizedClientException // The client is not currently authorized to make the request. // +// * NotFoundException +// One or more of the resources in the request does not exist in the system. +// // * ForbiddenException -// The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported Region. +// The client is permanently forbidden from making the request. // // * BadRequestException // The input parameters don't match the service's restrictions. @@ -6006,81 +6024,84 @@ func (c *Chime) GetPhoneNumberSettingsRequest(input *GetPhoneNumberSettingsInput // * ServiceFailureException // The service encountered an unexpected error. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetPhoneNumberSettings -func (c *Chime) GetPhoneNumberSettings(input *GetPhoneNumberSettingsInput) (*GetPhoneNumberSettingsOutput, error) { - req, out := c.GetPhoneNumberSettingsRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DeleteVoiceConnectorStreamingConfiguration +func (c *Chime) DeleteVoiceConnectorStreamingConfiguration(input *DeleteVoiceConnectorStreamingConfigurationInput) (*DeleteVoiceConnectorStreamingConfigurationOutput, error) { + req, out := c.DeleteVoiceConnectorStreamingConfigurationRequest(input) return out, req.Send() } -// GetPhoneNumberSettingsWithContext is the same as GetPhoneNumberSettings with the addition of +// DeleteVoiceConnectorStreamingConfigurationWithContext is the same as DeleteVoiceConnectorStreamingConfiguration with the addition of // the ability to pass a context and additional request options. // -// See GetPhoneNumberSettings for details on how to use this API operation. +// See DeleteVoiceConnectorStreamingConfiguration 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 *Chime) GetPhoneNumberSettingsWithContext(ctx aws.Context, input *GetPhoneNumberSettingsInput, opts ...request.Option) (*GetPhoneNumberSettingsOutput, error) { - req, out := c.GetPhoneNumberSettingsRequest(input) +func (c *Chime) DeleteVoiceConnectorStreamingConfigurationWithContext(ctx aws.Context, input *DeleteVoiceConnectorStreamingConfigurationInput, opts ...request.Option) (*DeleteVoiceConnectorStreamingConfigurationOutput, error) { + req, out := c.DeleteVoiceConnectorStreamingConfigurationRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opGetProxySession = "GetProxySession" +const opDeleteVoiceConnectorTermination = "DeleteVoiceConnectorTermination" -// GetProxySessionRequest generates a "aws/request.Request" representing the -// client's request for the GetProxySession operation. The "output" return +// DeleteVoiceConnectorTerminationRequest generates a "aws/request.Request" representing the +// client's request for the DeleteVoiceConnectorTermination 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 GetProxySession for more information on using the GetProxySession +// See DeleteVoiceConnectorTermination for more information on using the DeleteVoiceConnectorTermination // 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 GetProxySessionRequest method. -// req, resp := client.GetProxySessionRequest(params) +// // Example sending a request using the DeleteVoiceConnectorTerminationRequest method. +// req, resp := client.DeleteVoiceConnectorTerminationRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetProxySession -func (c *Chime) GetProxySessionRequest(input *GetProxySessionInput) (req *request.Request, output *GetProxySessionOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DeleteVoiceConnectorTermination +func (c *Chime) DeleteVoiceConnectorTerminationRequest(input *DeleteVoiceConnectorTerminationInput) (req *request.Request, output *DeleteVoiceConnectorTerminationOutput) { op := &request.Operation{ - Name: opGetProxySession, - HTTPMethod: "GET", - HTTPPath: "/voice-connectors/{voiceConnectorId}/proxy-sessions/{proxySessionId}", + Name: opDeleteVoiceConnectorTermination, + HTTPMethod: "DELETE", + HTTPPath: "/voice-connectors/{voiceConnectorId}/termination", } if input == nil { - input = &GetProxySessionInput{} + input = &DeleteVoiceConnectorTerminationInput{} } - output = &GetProxySessionOutput{} + output = &DeleteVoiceConnectorTerminationOutput{} req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// GetProxySession API operation for Amazon Chime. +// DeleteVoiceConnectorTermination API operation for Amazon Chime. // -// Gets the specified proxy session details for the specified Amazon Chime Voice -// Connector. +// Deletes the termination settings for the specified Amazon Chime Voice Connector. +// +// If emergency calling is configured for the Amazon Chime Voice Connector, +// it must be deleted prior to deleting the termination settings. // // 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 Chime's -// API operation GetProxySession for usage and error information. +// API operation DeleteVoiceConnectorTermination for usage and error information. // // Returned Error Types: // * UnauthorizedClientException @@ -6090,8 +6111,7 @@ func (c *Chime) GetProxySessionRequest(input *GetProxySessionInput) (req *reques // One or more of the resources in the request does not exist in the system. // // * ForbiddenException -// The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported Region. +// The client is permanently forbidden from making the request. // // * BadRequestException // The input parameters don't match the service's restrictions. @@ -6105,83 +6125,82 @@ func (c *Chime) GetProxySessionRequest(input *GetProxySessionInput) (req *reques // * ServiceFailureException // The service encountered an unexpected error. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetProxySession -func (c *Chime) GetProxySession(input *GetProxySessionInput) (*GetProxySessionOutput, error) { - req, out := c.GetProxySessionRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DeleteVoiceConnectorTermination +func (c *Chime) DeleteVoiceConnectorTermination(input *DeleteVoiceConnectorTerminationInput) (*DeleteVoiceConnectorTerminationOutput, error) { + req, out := c.DeleteVoiceConnectorTerminationRequest(input) return out, req.Send() } -// GetProxySessionWithContext is the same as GetProxySession with the addition of +// DeleteVoiceConnectorTerminationWithContext is the same as DeleteVoiceConnectorTermination with the addition of // the ability to pass a context and additional request options. // -// See GetProxySession for details on how to use this API operation. +// See DeleteVoiceConnectorTermination 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 *Chime) GetProxySessionWithContext(ctx aws.Context, input *GetProxySessionInput, opts ...request.Option) (*GetProxySessionOutput, error) { - req, out := c.GetProxySessionRequest(input) +func (c *Chime) DeleteVoiceConnectorTerminationWithContext(ctx aws.Context, input *DeleteVoiceConnectorTerminationInput, opts ...request.Option) (*DeleteVoiceConnectorTerminationOutput, error) { + req, out := c.DeleteVoiceConnectorTerminationRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opGetRetentionSettings = "GetRetentionSettings" +const opDeleteVoiceConnectorTerminationCredentials = "DeleteVoiceConnectorTerminationCredentials" -// GetRetentionSettingsRequest generates a "aws/request.Request" representing the -// client's request for the GetRetentionSettings operation. The "output" return +// DeleteVoiceConnectorTerminationCredentialsRequest generates a "aws/request.Request" representing the +// client's request for the DeleteVoiceConnectorTerminationCredentials 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 GetRetentionSettings for more information on using the GetRetentionSettings +// See DeleteVoiceConnectorTerminationCredentials for more information on using the DeleteVoiceConnectorTerminationCredentials // 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 GetRetentionSettingsRequest method. -// req, resp := client.GetRetentionSettingsRequest(params) +// // Example sending a request using the DeleteVoiceConnectorTerminationCredentialsRequest method. +// req, resp := client.DeleteVoiceConnectorTerminationCredentialsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetRetentionSettings -func (c *Chime) GetRetentionSettingsRequest(input *GetRetentionSettingsInput) (req *request.Request, output *GetRetentionSettingsOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DeleteVoiceConnectorTerminationCredentials +func (c *Chime) DeleteVoiceConnectorTerminationCredentialsRequest(input *DeleteVoiceConnectorTerminationCredentialsInput) (req *request.Request, output *DeleteVoiceConnectorTerminationCredentialsOutput) { op := &request.Operation{ - Name: opGetRetentionSettings, - HTTPMethod: "GET", - HTTPPath: "/accounts/{accountId}/retention-settings", + Name: opDeleteVoiceConnectorTerminationCredentials, + HTTPMethod: "POST", + HTTPPath: "/voice-connectors/{voiceConnectorId}/termination/credentials?operation=delete", } if input == nil { - input = &GetRetentionSettingsInput{} + input = &DeleteVoiceConnectorTerminationCredentialsInput{} } - output = &GetRetentionSettingsOutput{} + output = &DeleteVoiceConnectorTerminationCredentialsOutput{} req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// GetRetentionSettings API operation for Amazon Chime. +// DeleteVoiceConnectorTerminationCredentials API operation for Amazon Chime. // -// Gets the retention settings for the specified Amazon Chime Enterprise account. -// For more information about retention settings, see Managing Chat Retention -// Policies (https://docs.aws.amazon.com/chime/latest/ag/chat-retention.html) -// in the Amazon Chime Administration Guide. +// Deletes the specified SIP credentials used by your equipment to authenticate +// during call termination. // // 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 Chime's -// API operation GetRetentionSettings for usage and error information. +// API operation DeleteVoiceConnectorTerminationCredentials for usage and error information. // // Returned Error Types: // * UnauthorizedClientException @@ -6190,13 +6209,12 @@ func (c *Chime) GetRetentionSettingsRequest(input *GetRetentionSettingsInput) (r // * NotFoundException // One or more of the resources in the request does not exist in the system. // +// * ForbiddenException +// The client is permanently forbidden from making the request. +// // * BadRequestException // The input parameters don't match the service's restrictions. // -// * ForbiddenException -// The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported Region. -// // * ThrottledClientException // The client exceeded its request rate limit. // @@ -6206,391 +6224,380 @@ func (c *Chime) GetRetentionSettingsRequest(input *GetRetentionSettingsInput) (r // * ServiceFailureException // The service encountered an unexpected error. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetRetentionSettings -func (c *Chime) GetRetentionSettings(input *GetRetentionSettingsInput) (*GetRetentionSettingsOutput, error) { - req, out := c.GetRetentionSettingsRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DeleteVoiceConnectorTerminationCredentials +func (c *Chime) DeleteVoiceConnectorTerminationCredentials(input *DeleteVoiceConnectorTerminationCredentialsInput) (*DeleteVoiceConnectorTerminationCredentialsOutput, error) { + req, out := c.DeleteVoiceConnectorTerminationCredentialsRequest(input) return out, req.Send() } -// GetRetentionSettingsWithContext is the same as GetRetentionSettings with the addition of +// DeleteVoiceConnectorTerminationCredentialsWithContext is the same as DeleteVoiceConnectorTerminationCredentials with the addition of // the ability to pass a context and additional request options. // -// See GetRetentionSettings for details on how to use this API operation. +// See DeleteVoiceConnectorTerminationCredentials 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 *Chime) GetRetentionSettingsWithContext(ctx aws.Context, input *GetRetentionSettingsInput, opts ...request.Option) (*GetRetentionSettingsOutput, error) { - req, out := c.GetRetentionSettingsRequest(input) +func (c *Chime) DeleteVoiceConnectorTerminationCredentialsWithContext(ctx aws.Context, input *DeleteVoiceConnectorTerminationCredentialsInput, opts ...request.Option) (*DeleteVoiceConnectorTerminationCredentialsOutput, error) { + req, out := c.DeleteVoiceConnectorTerminationCredentialsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opGetRoom = "GetRoom" +const opDescribeAppInstance = "DescribeAppInstance" -// GetRoomRequest generates a "aws/request.Request" representing the -// client's request for the GetRoom operation. The "output" return +// DescribeAppInstanceRequest generates a "aws/request.Request" representing the +// client's request for the DescribeAppInstance 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 GetRoom for more information on using the GetRoom +// See DescribeAppInstance for more information on using the DescribeAppInstance // 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 GetRoomRequest method. -// req, resp := client.GetRoomRequest(params) +// // Example sending a request using the DescribeAppInstanceRequest method. +// req, resp := client.DescribeAppInstanceRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetRoom -func (c *Chime) GetRoomRequest(input *GetRoomInput) (req *request.Request, output *GetRoomOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DescribeAppInstance +func (c *Chime) DescribeAppInstanceRequest(input *DescribeAppInstanceInput) (req *request.Request, output *DescribeAppInstanceOutput) { op := &request.Operation{ - Name: opGetRoom, + Name: opDescribeAppInstance, HTTPMethod: "GET", - HTTPPath: "/accounts/{accountId}/rooms/{roomId}", + HTTPPath: "/app-instances/{appInstanceArn}", } if input == nil { - input = &GetRoomInput{} + input = &DescribeAppInstanceInput{} } - output = &GetRoomOutput{} + output = &DescribeAppInstanceOutput{} req = c.newRequest(op, input, output) + req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("identity-", nil)) + req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) return } -// GetRoom API operation for Amazon Chime. +// DescribeAppInstance API operation for Amazon Chime. // -// Retrieves room details, such as the room name, for a room in an Amazon Chime -// Enterprise account. +// Returns the full details of an AppInstance. // // 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 Chime's -// API operation GetRoom for usage and error information. +// API operation DescribeAppInstance for usage and error information. // // Returned Error Types: // * BadRequestException // The input parameters don't match the service's restrictions. // // * ForbiddenException -// The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported Region. +// The client is permanently forbidden from making the request. // -// * NotFoundException -// One or more of the resources in the request does not exist in the system. +// * ThrottledClientException +// The client exceeded its request rate limit. // // * UnauthorizedClientException // The client is not currently authorized to make the request. // -// * ThrottledClientException -// The client exceeded its request rate limit. -// // * ServiceUnavailableException // The service is currently unavailable. // // * ServiceFailureException // The service encountered an unexpected error. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetRoom -func (c *Chime) GetRoom(input *GetRoomInput) (*GetRoomOutput, error) { - req, out := c.GetRoomRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DescribeAppInstance +func (c *Chime) DescribeAppInstance(input *DescribeAppInstanceInput) (*DescribeAppInstanceOutput, error) { + req, out := c.DescribeAppInstanceRequest(input) return out, req.Send() } -// GetRoomWithContext is the same as GetRoom with the addition of +// DescribeAppInstanceWithContext is the same as DescribeAppInstance with the addition of // the ability to pass a context and additional request options. // -// See GetRoom for details on how to use this API operation. +// See DescribeAppInstance 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 *Chime) GetRoomWithContext(ctx aws.Context, input *GetRoomInput, opts ...request.Option) (*GetRoomOutput, error) { - req, out := c.GetRoomRequest(input) +func (c *Chime) DescribeAppInstanceWithContext(ctx aws.Context, input *DescribeAppInstanceInput, opts ...request.Option) (*DescribeAppInstanceOutput, error) { + req, out := c.DescribeAppInstanceRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opGetSipMediaApplication = "GetSipMediaApplication" +const opDescribeAppInstanceAdmin = "DescribeAppInstanceAdmin" -// GetSipMediaApplicationRequest generates a "aws/request.Request" representing the -// client's request for the GetSipMediaApplication operation. The "output" return +// DescribeAppInstanceAdminRequest generates a "aws/request.Request" representing the +// client's request for the DescribeAppInstanceAdmin 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 GetSipMediaApplication for more information on using the GetSipMediaApplication +// See DescribeAppInstanceAdmin for more information on using the DescribeAppInstanceAdmin // 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 GetSipMediaApplicationRequest method. -// req, resp := client.GetSipMediaApplicationRequest(params) +// // Example sending a request using the DescribeAppInstanceAdminRequest method. +// req, resp := client.DescribeAppInstanceAdminRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetSipMediaApplication -func (c *Chime) GetSipMediaApplicationRequest(input *GetSipMediaApplicationInput) (req *request.Request, output *GetSipMediaApplicationOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DescribeAppInstanceAdmin +func (c *Chime) DescribeAppInstanceAdminRequest(input *DescribeAppInstanceAdminInput) (req *request.Request, output *DescribeAppInstanceAdminOutput) { op := &request.Operation{ - Name: opGetSipMediaApplication, + Name: opDescribeAppInstanceAdmin, HTTPMethod: "GET", - HTTPPath: "/sip-media-applications/{sipMediaApplicationId}", + HTTPPath: "/app-instances/{appInstanceArn}/admins/{appInstanceAdminArn}", } if input == nil { - input = &GetSipMediaApplicationInput{} + input = &DescribeAppInstanceAdminInput{} } - output = &GetSipMediaApplicationOutput{} + output = &DescribeAppInstanceAdminOutput{} req = c.newRequest(op, input, output) + req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("identity-", nil)) + req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) return } -// GetSipMediaApplication API operation for Amazon Chime. +// DescribeAppInstanceAdmin API operation for Amazon Chime. // -// Retrieves the information for a SIP media application, including name, AWS -// Region, and endpoints. +// Returns the full details of an AppInstanceAdmin. // // 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 Chime's -// API operation GetSipMediaApplication for usage and error information. +// API operation DescribeAppInstanceAdmin for usage and error information. // // Returned Error Types: -// * UnauthorizedClientException -// The client is not currently authorized to make the request. -// -// * NotFoundException -// One or more of the resources in the request does not exist in the system. -// -// * ForbiddenException -// The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported Region. -// // * BadRequestException // The input parameters don't match the service's restrictions. // +// * ForbiddenException +// The client is permanently forbidden from making the request. +// // * ThrottledClientException // The client exceeded its request rate limit. // +// * UnauthorizedClientException +// The client is not currently authorized to make the request. +// // * ServiceUnavailableException // The service is currently unavailable. // // * ServiceFailureException // The service encountered an unexpected error. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetSipMediaApplication -func (c *Chime) GetSipMediaApplication(input *GetSipMediaApplicationInput) (*GetSipMediaApplicationOutput, error) { - req, out := c.GetSipMediaApplicationRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DescribeAppInstanceAdmin +func (c *Chime) DescribeAppInstanceAdmin(input *DescribeAppInstanceAdminInput) (*DescribeAppInstanceAdminOutput, error) { + req, out := c.DescribeAppInstanceAdminRequest(input) return out, req.Send() } -// GetSipMediaApplicationWithContext is the same as GetSipMediaApplication with the addition of +// DescribeAppInstanceAdminWithContext is the same as DescribeAppInstanceAdmin with the addition of // the ability to pass a context and additional request options. // -// See GetSipMediaApplication for details on how to use this API operation. +// See DescribeAppInstanceAdmin 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 *Chime) GetSipMediaApplicationWithContext(ctx aws.Context, input *GetSipMediaApplicationInput, opts ...request.Option) (*GetSipMediaApplicationOutput, error) { - req, out := c.GetSipMediaApplicationRequest(input) +func (c *Chime) DescribeAppInstanceAdminWithContext(ctx aws.Context, input *DescribeAppInstanceAdminInput, opts ...request.Option) (*DescribeAppInstanceAdminOutput, error) { + req, out := c.DescribeAppInstanceAdminRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opGetSipMediaApplicationLoggingConfiguration = "GetSipMediaApplicationLoggingConfiguration" +const opDescribeAppInstanceUser = "DescribeAppInstanceUser" -// GetSipMediaApplicationLoggingConfigurationRequest generates a "aws/request.Request" representing the -// client's request for the GetSipMediaApplicationLoggingConfiguration operation. The "output" return +// DescribeAppInstanceUserRequest generates a "aws/request.Request" representing the +// client's request for the DescribeAppInstanceUser 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 GetSipMediaApplicationLoggingConfiguration for more information on using the GetSipMediaApplicationLoggingConfiguration +// See DescribeAppInstanceUser for more information on using the DescribeAppInstanceUser // 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 GetSipMediaApplicationLoggingConfigurationRequest method. -// req, resp := client.GetSipMediaApplicationLoggingConfigurationRequest(params) +// // Example sending a request using the DescribeAppInstanceUserRequest method. +// req, resp := client.DescribeAppInstanceUserRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetSipMediaApplicationLoggingConfiguration -func (c *Chime) GetSipMediaApplicationLoggingConfigurationRequest(input *GetSipMediaApplicationLoggingConfigurationInput) (req *request.Request, output *GetSipMediaApplicationLoggingConfigurationOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DescribeAppInstanceUser +func (c *Chime) DescribeAppInstanceUserRequest(input *DescribeAppInstanceUserInput) (req *request.Request, output *DescribeAppInstanceUserOutput) { op := &request.Operation{ - Name: opGetSipMediaApplicationLoggingConfiguration, + Name: opDescribeAppInstanceUser, HTTPMethod: "GET", - HTTPPath: "/sip-media-applications/{sipMediaApplicationId}/logging-configuration", + HTTPPath: "/app-instance-users/{appInstanceUserArn}", } if input == nil { - input = &GetSipMediaApplicationLoggingConfigurationInput{} + input = &DescribeAppInstanceUserInput{} } - output = &GetSipMediaApplicationLoggingConfigurationOutput{} + output = &DescribeAppInstanceUserOutput{} req = c.newRequest(op, input, output) + req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("identity-", nil)) + req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) return } -// GetSipMediaApplicationLoggingConfiguration API operation for Amazon Chime. +// DescribeAppInstanceUser API operation for Amazon Chime. // -// Returns the logging configuration for the specified SIP media application. +// Returns the full details of an AppInstanceUser. // // 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 Chime's -// API operation GetSipMediaApplicationLoggingConfiguration for usage and error information. +// API operation DescribeAppInstanceUser for usage and error information. // // Returned Error Types: -// * UnauthorizedClientException -// The client is not currently authorized to make the request. -// -// * NotFoundException -// One or more of the resources in the request does not exist in the system. -// -// * ForbiddenException -// The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported Region. -// // * BadRequestException // The input parameters don't match the service's restrictions. // +// * ForbiddenException +// The client is permanently forbidden from making the request. +// // * ThrottledClientException // The client exceeded its request rate limit. // +// * UnauthorizedClientException +// The client is not currently authorized to make the request. +// // * ServiceUnavailableException // The service is currently unavailable. // // * ServiceFailureException // The service encountered an unexpected error. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetSipMediaApplicationLoggingConfiguration -func (c *Chime) GetSipMediaApplicationLoggingConfiguration(input *GetSipMediaApplicationLoggingConfigurationInput) (*GetSipMediaApplicationLoggingConfigurationOutput, error) { - req, out := c.GetSipMediaApplicationLoggingConfigurationRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DescribeAppInstanceUser +func (c *Chime) DescribeAppInstanceUser(input *DescribeAppInstanceUserInput) (*DescribeAppInstanceUserOutput, error) { + req, out := c.DescribeAppInstanceUserRequest(input) return out, req.Send() } -// GetSipMediaApplicationLoggingConfigurationWithContext is the same as GetSipMediaApplicationLoggingConfiguration with the addition of +// DescribeAppInstanceUserWithContext is the same as DescribeAppInstanceUser with the addition of // the ability to pass a context and additional request options. // -// See GetSipMediaApplicationLoggingConfiguration for details on how to use this API operation. +// See DescribeAppInstanceUser 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 *Chime) GetSipMediaApplicationLoggingConfigurationWithContext(ctx aws.Context, input *GetSipMediaApplicationLoggingConfigurationInput, opts ...request.Option) (*GetSipMediaApplicationLoggingConfigurationOutput, error) { - req, out := c.GetSipMediaApplicationLoggingConfigurationRequest(input) +func (c *Chime) DescribeAppInstanceUserWithContext(ctx aws.Context, input *DescribeAppInstanceUserInput, opts ...request.Option) (*DescribeAppInstanceUserOutput, error) { + req, out := c.DescribeAppInstanceUserRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opGetSipRule = "GetSipRule" +const opDescribeChannel = "DescribeChannel" -// GetSipRuleRequest generates a "aws/request.Request" representing the -// client's request for the GetSipRule operation. The "output" return +// DescribeChannelRequest generates a "aws/request.Request" representing the +// client's request for the DescribeChannel 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 GetSipRule for more information on using the GetSipRule +// See DescribeChannel for more information on using the DescribeChannel // 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 GetSipRuleRequest method. -// req, resp := client.GetSipRuleRequest(params) +// // Example sending a request using the DescribeChannelRequest method. +// req, resp := client.DescribeChannelRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetSipRule -func (c *Chime) GetSipRuleRequest(input *GetSipRuleInput) (req *request.Request, output *GetSipRuleOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DescribeChannel +func (c *Chime) DescribeChannelRequest(input *DescribeChannelInput) (req *request.Request, output *DescribeChannelOutput) { op := &request.Operation{ - Name: opGetSipRule, + Name: opDescribeChannel, HTTPMethod: "GET", - HTTPPath: "/sip-rules/{sipRuleId}", + HTTPPath: "/channels/{channelArn}", } if input == nil { - input = &GetSipRuleInput{} + input = &DescribeChannelInput{} } - output = &GetSipRuleOutput{} + output = &DescribeChannelOutput{} req = c.newRequest(op, input, output) + req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("messaging-", nil)) + req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) return } -// GetSipRule API operation for Amazon Chime. +// DescribeChannel API operation for Amazon Chime. // -// Retrieves the details of a SIP rule, such as the rule ID, name, triggers, -// and target endpoints. +// Returns the full details of a channel in an Amazon Chime app 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 Chime's -// API operation GetSipRule for usage and error information. +// API operation DescribeChannel for usage and error information. // // Returned Error Types: -// * UnauthorizedClientException -// The client is not currently authorized to make the request. -// -// * NotFoundException -// One or more of the resources in the request does not exist in the system. +// * BadRequestException +// The input parameters don't match the service's restrictions. // // * ForbiddenException -// The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported Region. +// The client is permanently forbidden from making the request. // -// * BadRequestException -// The input parameters don't match the service's restrictions. +// * UnauthorizedClientException +// The client is not currently authorized to make the request. // // * ThrottledClientException // The client exceeded its request rate limit. @@ -6601,98 +6608,95 @@ func (c *Chime) GetSipRuleRequest(input *GetSipRuleInput) (req *request.Request, // * ServiceFailureException // The service encountered an unexpected error. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetSipRule -func (c *Chime) GetSipRule(input *GetSipRuleInput) (*GetSipRuleOutput, error) { - req, out := c.GetSipRuleRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DescribeChannel +func (c *Chime) DescribeChannel(input *DescribeChannelInput) (*DescribeChannelOutput, error) { + req, out := c.DescribeChannelRequest(input) return out, req.Send() } -// GetSipRuleWithContext is the same as GetSipRule with the addition of +// DescribeChannelWithContext is the same as DescribeChannel with the addition of // the ability to pass a context and additional request options. // -// See GetSipRule for details on how to use this API operation. +// See DescribeChannel 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 *Chime) GetSipRuleWithContext(ctx aws.Context, input *GetSipRuleInput, opts ...request.Option) (*GetSipRuleOutput, error) { - req, out := c.GetSipRuleRequest(input) +func (c *Chime) DescribeChannelWithContext(ctx aws.Context, input *DescribeChannelInput, opts ...request.Option) (*DescribeChannelOutput, error) { + req, out := c.DescribeChannelRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opGetUser = "GetUser" +const opDescribeChannelBan = "DescribeChannelBan" -// GetUserRequest generates a "aws/request.Request" representing the -// client's request for the GetUser operation. The "output" return +// DescribeChannelBanRequest generates a "aws/request.Request" representing the +// client's request for the DescribeChannelBan 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 GetUser for more information on using the GetUser +// See DescribeChannelBan for more information on using the DescribeChannelBan // 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 GetUserRequest method. -// req, resp := client.GetUserRequest(params) +// // Example sending a request using the DescribeChannelBanRequest method. +// req, resp := client.DescribeChannelBanRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetUser -func (c *Chime) GetUserRequest(input *GetUserInput) (req *request.Request, output *GetUserOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DescribeChannelBan +func (c *Chime) DescribeChannelBanRequest(input *DescribeChannelBanInput) (req *request.Request, output *DescribeChannelBanOutput) { op := &request.Operation{ - Name: opGetUser, + Name: opDescribeChannelBan, HTTPMethod: "GET", - HTTPPath: "/accounts/{accountId}/users/{userId}", + HTTPPath: "/channels/{channelArn}/bans/{memberArn}", } if input == nil { - input = &GetUserInput{} + input = &DescribeChannelBanInput{} } - output = &GetUserOutput{} + output = &DescribeChannelBanOutput{} req = c.newRequest(op, input, output) + req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("messaging-", nil)) + req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) return } -// GetUser API operation for Amazon Chime. -// -// Retrieves details for the specified user ID, such as primary email address, -// license type, and personal meeting PIN. +// DescribeChannelBan API operation for Amazon Chime. // -// To retrieve user details with an email address instead of a user ID, use -// the ListUsers action, and then filter by email address. +// Returns the full details of a channel ban. // // 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 Chime's -// API operation GetUser for usage and error information. +// API operation DescribeChannelBan for usage and error information. // // Returned Error Types: -// * UnauthorizedClientException -// The client is not currently authorized to make the request. +// * BadRequestException +// The input parameters don't match the service's restrictions. +// +// * ForbiddenException +// The client is permanently forbidden from making the request. // // * NotFoundException // One or more of the resources in the request does not exist in the system. // -// * ForbiddenException -// The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported Region. -// -// * BadRequestException -// The input parameters don't match the service's restrictions. +// * UnauthorizedClientException +// The client is not currently authorized to make the request. // // * ThrottledClientException // The client exceeded its request rate limit. @@ -6703,95 +6707,95 @@ func (c *Chime) GetUserRequest(input *GetUserInput) (req *request.Request, outpu // * ServiceFailureException // The service encountered an unexpected error. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetUser -func (c *Chime) GetUser(input *GetUserInput) (*GetUserOutput, error) { - req, out := c.GetUserRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DescribeChannelBan +func (c *Chime) DescribeChannelBan(input *DescribeChannelBanInput) (*DescribeChannelBanOutput, error) { + req, out := c.DescribeChannelBanRequest(input) return out, req.Send() } -// GetUserWithContext is the same as GetUser with the addition of +// DescribeChannelBanWithContext is the same as DescribeChannelBan with the addition of // the ability to pass a context and additional request options. // -// See GetUser for details on how to use this API operation. +// See DescribeChannelBan 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 *Chime) GetUserWithContext(ctx aws.Context, input *GetUserInput, opts ...request.Option) (*GetUserOutput, error) { - req, out := c.GetUserRequest(input) +func (c *Chime) DescribeChannelBanWithContext(ctx aws.Context, input *DescribeChannelBanInput, opts ...request.Option) (*DescribeChannelBanOutput, error) { + req, out := c.DescribeChannelBanRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opGetUserSettings = "GetUserSettings" +const opDescribeChannelMembership = "DescribeChannelMembership" -// GetUserSettingsRequest generates a "aws/request.Request" representing the -// client's request for the GetUserSettings operation. The "output" return +// DescribeChannelMembershipRequest generates a "aws/request.Request" representing the +// client's request for the DescribeChannelMembership 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 GetUserSettings for more information on using the GetUserSettings +// See DescribeChannelMembership for more information on using the DescribeChannelMembership // 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 GetUserSettingsRequest method. -// req, resp := client.GetUserSettingsRequest(params) +// // Example sending a request using the DescribeChannelMembershipRequest method. +// req, resp := client.DescribeChannelMembershipRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetUserSettings -func (c *Chime) GetUserSettingsRequest(input *GetUserSettingsInput) (req *request.Request, output *GetUserSettingsOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DescribeChannelMembership +func (c *Chime) DescribeChannelMembershipRequest(input *DescribeChannelMembershipInput) (req *request.Request, output *DescribeChannelMembershipOutput) { op := &request.Operation{ - Name: opGetUserSettings, + Name: opDescribeChannelMembership, HTTPMethod: "GET", - HTTPPath: "/accounts/{accountId}/users/{userId}/settings", + HTTPPath: "/channels/{channelArn}/memberships/{memberArn}", } if input == nil { - input = &GetUserSettingsInput{} + input = &DescribeChannelMembershipInput{} } - output = &GetUserSettingsOutput{} + output = &DescribeChannelMembershipOutput{} req = c.newRequest(op, input, output) + req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("messaging-", nil)) + req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) return } -// GetUserSettings API operation for Amazon Chime. +// DescribeChannelMembership API operation for Amazon Chime. // -// Retrieves settings for the specified user ID, such as any associated phone -// number settings. +// Returns the full details of a user's channel membership. // // 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 Chime's -// API operation GetUserSettings for usage and error information. +// API operation DescribeChannelMembership for usage and error information. // // Returned Error Types: -// * UnauthorizedClientException -// The client is not currently authorized to make the request. +// * BadRequestException +// The input parameters don't match the service's restrictions. +// +// * ForbiddenException +// The client is permanently forbidden from making the request. // // * NotFoundException // One or more of the resources in the request does not exist in the system. // -// * ForbiddenException -// The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported Region. -// -// * BadRequestException -// The input parameters don't match the service's restrictions. +// * UnauthorizedClientException +// The client is not currently authorized to make the request. // // * ThrottledClientException // The client exceeded its request rate limit. @@ -6802,95 +6806,93 @@ func (c *Chime) GetUserSettingsRequest(input *GetUserSettingsInput) (req *reques // * ServiceFailureException // The service encountered an unexpected error. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetUserSettings -func (c *Chime) GetUserSettings(input *GetUserSettingsInput) (*GetUserSettingsOutput, error) { - req, out := c.GetUserSettingsRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DescribeChannelMembership +func (c *Chime) DescribeChannelMembership(input *DescribeChannelMembershipInput) (*DescribeChannelMembershipOutput, error) { + req, out := c.DescribeChannelMembershipRequest(input) return out, req.Send() } -// GetUserSettingsWithContext is the same as GetUserSettings with the addition of +// DescribeChannelMembershipWithContext is the same as DescribeChannelMembership with the addition of // the ability to pass a context and additional request options. // -// See GetUserSettings for details on how to use this API operation. +// See DescribeChannelMembership 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 *Chime) GetUserSettingsWithContext(ctx aws.Context, input *GetUserSettingsInput, opts ...request.Option) (*GetUserSettingsOutput, error) { - req, out := c.GetUserSettingsRequest(input) +func (c *Chime) DescribeChannelMembershipWithContext(ctx aws.Context, input *DescribeChannelMembershipInput, opts ...request.Option) (*DescribeChannelMembershipOutput, error) { + req, out := c.DescribeChannelMembershipRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opGetVoiceConnector = "GetVoiceConnector" +const opDescribeChannelMembershipForAppInstanceUser = "DescribeChannelMembershipForAppInstanceUser" -// GetVoiceConnectorRequest generates a "aws/request.Request" representing the -// client's request for the GetVoiceConnector operation. The "output" return +// DescribeChannelMembershipForAppInstanceUserRequest generates a "aws/request.Request" representing the +// client's request for the DescribeChannelMembershipForAppInstanceUser 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 GetVoiceConnector for more information on using the GetVoiceConnector +// See DescribeChannelMembershipForAppInstanceUser for more information on using the DescribeChannelMembershipForAppInstanceUser // 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 GetVoiceConnectorRequest method. -// req, resp := client.GetVoiceConnectorRequest(params) +// // Example sending a request using the DescribeChannelMembershipForAppInstanceUserRequest method. +// req, resp := client.DescribeChannelMembershipForAppInstanceUserRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetVoiceConnector -func (c *Chime) GetVoiceConnectorRequest(input *GetVoiceConnectorInput) (req *request.Request, output *GetVoiceConnectorOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DescribeChannelMembershipForAppInstanceUser +func (c *Chime) DescribeChannelMembershipForAppInstanceUserRequest(input *DescribeChannelMembershipForAppInstanceUserInput) (req *request.Request, output *DescribeChannelMembershipForAppInstanceUserOutput) { op := &request.Operation{ - Name: opGetVoiceConnector, + Name: opDescribeChannelMembershipForAppInstanceUser, HTTPMethod: "GET", - HTTPPath: "/voice-connectors/{voiceConnectorId}", + HTTPPath: "/channels/{channelArn}?scope=app-instance-user-membership", } if input == nil { - input = &GetVoiceConnectorInput{} + input = &DescribeChannelMembershipForAppInstanceUserInput{} } - output = &GetVoiceConnectorOutput{} + output = &DescribeChannelMembershipForAppInstanceUserOutput{} req = c.newRequest(op, input, output) + req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("messaging-", nil)) + req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) return } -// GetVoiceConnector API operation for Amazon Chime. +// DescribeChannelMembershipForAppInstanceUser API operation for Amazon Chime. // -// Retrieves details for the specified Amazon Chime Voice Connector, such as -// timestamps, name, outbound host, and encryption requirements. +// Returns the details of a channel based on the membership of the AppInstanceUser +// specified. // // 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 Chime's -// API operation GetVoiceConnector for usage and error information. +// API operation DescribeChannelMembershipForAppInstanceUser for usage and error information. // // Returned Error Types: -// * UnauthorizedClientException -// The client is not currently authorized to make the request. -// -// * NotFoundException -// One or more of the resources in the request does not exist in the system. +// * BadRequestException +// The input parameters don't match the service's restrictions. // // * ForbiddenException -// The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported Region. +// The client is permanently forbidden from making the request. // -// * BadRequestException -// The input parameters don't match the service's restrictions. +// * UnauthorizedClientException +// The client is not currently authorized to make the request. // // * ThrottledClientException // The client exceeded its request rate limit. @@ -6901,95 +6903,92 @@ func (c *Chime) GetVoiceConnectorRequest(input *GetVoiceConnectorInput) (req *re // * ServiceFailureException // The service encountered an unexpected error. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetVoiceConnector -func (c *Chime) GetVoiceConnector(input *GetVoiceConnectorInput) (*GetVoiceConnectorOutput, error) { - req, out := c.GetVoiceConnectorRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DescribeChannelMembershipForAppInstanceUser +func (c *Chime) DescribeChannelMembershipForAppInstanceUser(input *DescribeChannelMembershipForAppInstanceUserInput) (*DescribeChannelMembershipForAppInstanceUserOutput, error) { + req, out := c.DescribeChannelMembershipForAppInstanceUserRequest(input) return out, req.Send() } -// GetVoiceConnectorWithContext is the same as GetVoiceConnector with the addition of +// DescribeChannelMembershipForAppInstanceUserWithContext is the same as DescribeChannelMembershipForAppInstanceUser with the addition of // the ability to pass a context and additional request options. // -// See GetVoiceConnector for details on how to use this API operation. +// See DescribeChannelMembershipForAppInstanceUser 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 *Chime) GetVoiceConnectorWithContext(ctx aws.Context, input *GetVoiceConnectorInput, opts ...request.Option) (*GetVoiceConnectorOutput, error) { - req, out := c.GetVoiceConnectorRequest(input) +func (c *Chime) DescribeChannelMembershipForAppInstanceUserWithContext(ctx aws.Context, input *DescribeChannelMembershipForAppInstanceUserInput, opts ...request.Option) (*DescribeChannelMembershipForAppInstanceUserOutput, error) { + req, out := c.DescribeChannelMembershipForAppInstanceUserRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opGetVoiceConnectorEmergencyCallingConfiguration = "GetVoiceConnectorEmergencyCallingConfiguration" +const opDescribeChannelModeratedByAppInstanceUser = "DescribeChannelModeratedByAppInstanceUser" -// GetVoiceConnectorEmergencyCallingConfigurationRequest generates a "aws/request.Request" representing the -// client's request for the GetVoiceConnectorEmergencyCallingConfiguration operation. The "output" return +// DescribeChannelModeratedByAppInstanceUserRequest generates a "aws/request.Request" representing the +// client's request for the DescribeChannelModeratedByAppInstanceUser 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 GetVoiceConnectorEmergencyCallingConfiguration for more information on using the GetVoiceConnectorEmergencyCallingConfiguration +// See DescribeChannelModeratedByAppInstanceUser for more information on using the DescribeChannelModeratedByAppInstanceUser // 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 GetVoiceConnectorEmergencyCallingConfigurationRequest method. -// req, resp := client.GetVoiceConnectorEmergencyCallingConfigurationRequest(params) +// // Example sending a request using the DescribeChannelModeratedByAppInstanceUserRequest method. +// req, resp := client.DescribeChannelModeratedByAppInstanceUserRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetVoiceConnectorEmergencyCallingConfiguration -func (c *Chime) GetVoiceConnectorEmergencyCallingConfigurationRequest(input *GetVoiceConnectorEmergencyCallingConfigurationInput) (req *request.Request, output *GetVoiceConnectorEmergencyCallingConfigurationOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DescribeChannelModeratedByAppInstanceUser +func (c *Chime) DescribeChannelModeratedByAppInstanceUserRequest(input *DescribeChannelModeratedByAppInstanceUserInput) (req *request.Request, output *DescribeChannelModeratedByAppInstanceUserOutput) { op := &request.Operation{ - Name: opGetVoiceConnectorEmergencyCallingConfiguration, + Name: opDescribeChannelModeratedByAppInstanceUser, HTTPMethod: "GET", - HTTPPath: "/voice-connectors/{voiceConnectorId}/emergency-calling-configuration", + HTTPPath: "/channels/{channelArn}?scope=app-instance-user-moderated-channel", } if input == nil { - input = &GetVoiceConnectorEmergencyCallingConfigurationInput{} + input = &DescribeChannelModeratedByAppInstanceUserInput{} } - output = &GetVoiceConnectorEmergencyCallingConfigurationOutput{} + output = &DescribeChannelModeratedByAppInstanceUserOutput{} req = c.newRequest(op, input, output) + req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("messaging-", nil)) + req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) return } -// GetVoiceConnectorEmergencyCallingConfiguration API operation for Amazon Chime. +// DescribeChannelModeratedByAppInstanceUser API operation for Amazon Chime. // -// Gets the emergency calling configuration details for the specified Amazon -// Chime Voice Connector. +// Returns the full details of a channel moderated by the specified AppInstanceUser. // // 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 Chime's -// API operation GetVoiceConnectorEmergencyCallingConfiguration for usage and error information. +// API operation DescribeChannelModeratedByAppInstanceUser for usage and error information. // // Returned Error Types: -// * UnauthorizedClientException -// The client is not currently authorized to make the request. -// -// * NotFoundException -// One or more of the resources in the request does not exist in the system. +// * BadRequestException +// The input parameters don't match the service's restrictions. // // * ForbiddenException -// The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported Region. +// The client is permanently forbidden from making the request. // -// * BadRequestException -// The input parameters don't match the service's restrictions. +// * UnauthorizedClientException +// The client is not currently authorized to make the request. // // * ThrottledClientException // The client exceeded its request rate limit. @@ -7000,95 +6999,95 @@ func (c *Chime) GetVoiceConnectorEmergencyCallingConfigurationRequest(input *Get // * ServiceFailureException // The service encountered an unexpected error. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetVoiceConnectorEmergencyCallingConfiguration -func (c *Chime) GetVoiceConnectorEmergencyCallingConfiguration(input *GetVoiceConnectorEmergencyCallingConfigurationInput) (*GetVoiceConnectorEmergencyCallingConfigurationOutput, error) { - req, out := c.GetVoiceConnectorEmergencyCallingConfigurationRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DescribeChannelModeratedByAppInstanceUser +func (c *Chime) DescribeChannelModeratedByAppInstanceUser(input *DescribeChannelModeratedByAppInstanceUserInput) (*DescribeChannelModeratedByAppInstanceUserOutput, error) { + req, out := c.DescribeChannelModeratedByAppInstanceUserRequest(input) return out, req.Send() } -// GetVoiceConnectorEmergencyCallingConfigurationWithContext is the same as GetVoiceConnectorEmergencyCallingConfiguration with the addition of +// DescribeChannelModeratedByAppInstanceUserWithContext is the same as DescribeChannelModeratedByAppInstanceUser with the addition of // the ability to pass a context and additional request options. // -// See GetVoiceConnectorEmergencyCallingConfiguration for details on how to use this API operation. +// See DescribeChannelModeratedByAppInstanceUser 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 *Chime) GetVoiceConnectorEmergencyCallingConfigurationWithContext(ctx aws.Context, input *GetVoiceConnectorEmergencyCallingConfigurationInput, opts ...request.Option) (*GetVoiceConnectorEmergencyCallingConfigurationOutput, error) { - req, out := c.GetVoiceConnectorEmergencyCallingConfigurationRequest(input) +func (c *Chime) DescribeChannelModeratedByAppInstanceUserWithContext(ctx aws.Context, input *DescribeChannelModeratedByAppInstanceUserInput, opts ...request.Option) (*DescribeChannelModeratedByAppInstanceUserOutput, error) { + req, out := c.DescribeChannelModeratedByAppInstanceUserRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opGetVoiceConnectorGroup = "GetVoiceConnectorGroup" +const opDescribeChannelModerator = "DescribeChannelModerator" -// GetVoiceConnectorGroupRequest generates a "aws/request.Request" representing the -// client's request for the GetVoiceConnectorGroup operation. The "output" return +// DescribeChannelModeratorRequest generates a "aws/request.Request" representing the +// client's request for the DescribeChannelModerator 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 GetVoiceConnectorGroup for more information on using the GetVoiceConnectorGroup +// See DescribeChannelModerator for more information on using the DescribeChannelModerator // 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 GetVoiceConnectorGroupRequest method. -// req, resp := client.GetVoiceConnectorGroupRequest(params) +// // Example sending a request using the DescribeChannelModeratorRequest method. +// req, resp := client.DescribeChannelModeratorRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetVoiceConnectorGroup -func (c *Chime) GetVoiceConnectorGroupRequest(input *GetVoiceConnectorGroupInput) (req *request.Request, output *GetVoiceConnectorGroupOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DescribeChannelModerator +func (c *Chime) DescribeChannelModeratorRequest(input *DescribeChannelModeratorInput) (req *request.Request, output *DescribeChannelModeratorOutput) { op := &request.Operation{ - Name: opGetVoiceConnectorGroup, + Name: opDescribeChannelModerator, HTTPMethod: "GET", - HTTPPath: "/voice-connector-groups/{voiceConnectorGroupId}", + HTTPPath: "/channels/{channelArn}/moderators/{channelModeratorArn}", } if input == nil { - input = &GetVoiceConnectorGroupInput{} + input = &DescribeChannelModeratorInput{} } - output = &GetVoiceConnectorGroupOutput{} + output = &DescribeChannelModeratorOutput{} req = c.newRequest(op, input, output) + req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("messaging-", nil)) + req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) return } -// GetVoiceConnectorGroup API operation for Amazon Chime. +// DescribeChannelModerator API operation for Amazon Chime. // -// Retrieves details for the specified Amazon Chime Voice Connector group, such -// as timestamps, name, and associated VoiceConnectorItems. +// Returns the full details of a single ChannelModerator. // // 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 Chime's -// API operation GetVoiceConnectorGroup for usage and error information. +// API operation DescribeChannelModerator for usage and error information. // // Returned Error Types: -// * UnauthorizedClientException -// The client is not currently authorized to make the request. +// * BadRequestException +// The input parameters don't match the service's restrictions. +// +// * ForbiddenException +// The client is permanently forbidden from making the request. // // * NotFoundException // One or more of the resources in the request does not exist in the system. // -// * ForbiddenException -// The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported Region. -// -// * BadRequestException -// The input parameters don't match the service's restrictions. +// * UnauthorizedClientException +// The client is not currently authorized to make the request. // // * ThrottledClientException // The client exceeded its request rate limit. @@ -7099,82 +7098,82 @@ func (c *Chime) GetVoiceConnectorGroupRequest(input *GetVoiceConnectorGroupInput // * ServiceFailureException // The service encountered an unexpected error. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetVoiceConnectorGroup -func (c *Chime) GetVoiceConnectorGroup(input *GetVoiceConnectorGroupInput) (*GetVoiceConnectorGroupOutput, error) { - req, out := c.GetVoiceConnectorGroupRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DescribeChannelModerator +func (c *Chime) DescribeChannelModerator(input *DescribeChannelModeratorInput) (*DescribeChannelModeratorOutput, error) { + req, out := c.DescribeChannelModeratorRequest(input) return out, req.Send() } -// GetVoiceConnectorGroupWithContext is the same as GetVoiceConnectorGroup with the addition of +// DescribeChannelModeratorWithContext is the same as DescribeChannelModerator with the addition of // the ability to pass a context and additional request options. // -// See GetVoiceConnectorGroup for details on how to use this API operation. +// See DescribeChannelModerator 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 *Chime) GetVoiceConnectorGroupWithContext(ctx aws.Context, input *GetVoiceConnectorGroupInput, opts ...request.Option) (*GetVoiceConnectorGroupOutput, error) { - req, out := c.GetVoiceConnectorGroupRequest(input) +func (c *Chime) DescribeChannelModeratorWithContext(ctx aws.Context, input *DescribeChannelModeratorInput, opts ...request.Option) (*DescribeChannelModeratorOutput, error) { + req, out := c.DescribeChannelModeratorRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opGetVoiceConnectorLoggingConfiguration = "GetVoiceConnectorLoggingConfiguration" +const opDisassociatePhoneNumberFromUser = "DisassociatePhoneNumberFromUser" -// GetVoiceConnectorLoggingConfigurationRequest generates a "aws/request.Request" representing the -// client's request for the GetVoiceConnectorLoggingConfiguration operation. The "output" return +// DisassociatePhoneNumberFromUserRequest generates a "aws/request.Request" representing the +// client's request for the DisassociatePhoneNumberFromUser 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 GetVoiceConnectorLoggingConfiguration for more information on using the GetVoiceConnectorLoggingConfiguration +// See DisassociatePhoneNumberFromUser for more information on using the DisassociatePhoneNumberFromUser // 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 GetVoiceConnectorLoggingConfigurationRequest method. -// req, resp := client.GetVoiceConnectorLoggingConfigurationRequest(params) +// // Example sending a request using the DisassociatePhoneNumberFromUserRequest method. +// req, resp := client.DisassociatePhoneNumberFromUserRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetVoiceConnectorLoggingConfiguration -func (c *Chime) GetVoiceConnectorLoggingConfigurationRequest(input *GetVoiceConnectorLoggingConfigurationInput) (req *request.Request, output *GetVoiceConnectorLoggingConfigurationOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DisassociatePhoneNumberFromUser +func (c *Chime) DisassociatePhoneNumberFromUserRequest(input *DisassociatePhoneNumberFromUserInput) (req *request.Request, output *DisassociatePhoneNumberFromUserOutput) { op := &request.Operation{ - Name: opGetVoiceConnectorLoggingConfiguration, - HTTPMethod: "GET", - HTTPPath: "/voice-connectors/{voiceConnectorId}/logging-configuration", + Name: opDisassociatePhoneNumberFromUser, + HTTPMethod: "POST", + HTTPPath: "/accounts/{accountId}/users/{userId}?operation=disassociate-phone-number", } if input == nil { - input = &GetVoiceConnectorLoggingConfigurationInput{} + input = &DisassociatePhoneNumberFromUserInput{} } - output = &GetVoiceConnectorLoggingConfigurationOutput{} + output = &DisassociatePhoneNumberFromUserOutput{} req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// GetVoiceConnectorLoggingConfiguration API operation for Amazon Chime. +// DisassociatePhoneNumberFromUser API operation for Amazon Chime. // -// Retrieves the logging configuration details for the specified Amazon Chime -// Voice Connector. Shows whether SIP message logs are enabled for sending to -// Amazon CloudWatch Logs. +// Disassociates the primary provisioned phone number from the specified Amazon +// Chime 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 Chime's -// API operation GetVoiceConnectorLoggingConfiguration for usage and error information. +// API operation DisassociatePhoneNumberFromUser for usage and error information. // // Returned Error Types: // * UnauthorizedClientException @@ -7184,8 +7183,7 @@ func (c *Chime) GetVoiceConnectorLoggingConfigurationRequest(input *GetVoiceConn // One or more of the resources in the request does not exist in the system. // // * ForbiddenException -// The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported Region. +// The client is permanently forbidden from making the request. // // * BadRequestException // The input parameters don't match the service's restrictions. @@ -7199,81 +7197,81 @@ func (c *Chime) GetVoiceConnectorLoggingConfigurationRequest(input *GetVoiceConn // * ServiceFailureException // The service encountered an unexpected error. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetVoiceConnectorLoggingConfiguration -func (c *Chime) GetVoiceConnectorLoggingConfiguration(input *GetVoiceConnectorLoggingConfigurationInput) (*GetVoiceConnectorLoggingConfigurationOutput, error) { - req, out := c.GetVoiceConnectorLoggingConfigurationRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DisassociatePhoneNumberFromUser +func (c *Chime) DisassociatePhoneNumberFromUser(input *DisassociatePhoneNumberFromUserInput) (*DisassociatePhoneNumberFromUserOutput, error) { + req, out := c.DisassociatePhoneNumberFromUserRequest(input) return out, req.Send() } -// GetVoiceConnectorLoggingConfigurationWithContext is the same as GetVoiceConnectorLoggingConfiguration with the addition of +// DisassociatePhoneNumberFromUserWithContext is the same as DisassociatePhoneNumberFromUser with the addition of // the ability to pass a context and additional request options. // -// See GetVoiceConnectorLoggingConfiguration for details on how to use this API operation. +// See DisassociatePhoneNumberFromUser 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 *Chime) GetVoiceConnectorLoggingConfigurationWithContext(ctx aws.Context, input *GetVoiceConnectorLoggingConfigurationInput, opts ...request.Option) (*GetVoiceConnectorLoggingConfigurationOutput, error) { - req, out := c.GetVoiceConnectorLoggingConfigurationRequest(input) +func (c *Chime) DisassociatePhoneNumberFromUserWithContext(ctx aws.Context, input *DisassociatePhoneNumberFromUserInput, opts ...request.Option) (*DisassociatePhoneNumberFromUserOutput, error) { + req, out := c.DisassociatePhoneNumberFromUserRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opGetVoiceConnectorOrigination = "GetVoiceConnectorOrigination" +const opDisassociatePhoneNumbersFromVoiceConnector = "DisassociatePhoneNumbersFromVoiceConnector" -// GetVoiceConnectorOriginationRequest generates a "aws/request.Request" representing the -// client's request for the GetVoiceConnectorOrigination operation. The "output" return +// DisassociatePhoneNumbersFromVoiceConnectorRequest generates a "aws/request.Request" representing the +// client's request for the DisassociatePhoneNumbersFromVoiceConnector 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 GetVoiceConnectorOrigination for more information on using the GetVoiceConnectorOrigination +// See DisassociatePhoneNumbersFromVoiceConnector for more information on using the DisassociatePhoneNumbersFromVoiceConnector // 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 GetVoiceConnectorOriginationRequest method. -// req, resp := client.GetVoiceConnectorOriginationRequest(params) +// // Example sending a request using the DisassociatePhoneNumbersFromVoiceConnectorRequest method. +// req, resp := client.DisassociatePhoneNumbersFromVoiceConnectorRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetVoiceConnectorOrigination -func (c *Chime) GetVoiceConnectorOriginationRequest(input *GetVoiceConnectorOriginationInput) (req *request.Request, output *GetVoiceConnectorOriginationOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DisassociatePhoneNumbersFromVoiceConnector +func (c *Chime) DisassociatePhoneNumbersFromVoiceConnectorRequest(input *DisassociatePhoneNumbersFromVoiceConnectorInput) (req *request.Request, output *DisassociatePhoneNumbersFromVoiceConnectorOutput) { op := &request.Operation{ - Name: opGetVoiceConnectorOrigination, - HTTPMethod: "GET", - HTTPPath: "/voice-connectors/{voiceConnectorId}/origination", + Name: opDisassociatePhoneNumbersFromVoiceConnector, + HTTPMethod: "POST", + HTTPPath: "/voice-connectors/{voiceConnectorId}?operation=disassociate-phone-numbers", } if input == nil { - input = &GetVoiceConnectorOriginationInput{} + input = &DisassociatePhoneNumbersFromVoiceConnectorInput{} } - output = &GetVoiceConnectorOriginationOutput{} + output = &DisassociatePhoneNumbersFromVoiceConnectorOutput{} req = c.newRequest(op, input, output) return } -// GetVoiceConnectorOrigination API operation for Amazon Chime. +// DisassociatePhoneNumbersFromVoiceConnector API operation for Amazon Chime. // -// Retrieves origination setting details for the specified Amazon Chime Voice -// Connector. +// Disassociates the specified phone numbers from the specified Amazon Chime +// Voice Connector. // // 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 Chime's -// API operation GetVoiceConnectorOrigination for usage and error information. +// API operation DisassociatePhoneNumbersFromVoiceConnector for usage and error information. // // Returned Error Types: // * UnauthorizedClientException @@ -7283,8 +7281,7 @@ func (c *Chime) GetVoiceConnectorOriginationRequest(input *GetVoiceConnectorOrig // One or more of the resources in the request does not exist in the system. // // * ForbiddenException -// The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported Region. +// The client is permanently forbidden from making the request. // // * BadRequestException // The input parameters don't match the service's restrictions. @@ -7298,81 +7295,81 @@ func (c *Chime) GetVoiceConnectorOriginationRequest(input *GetVoiceConnectorOrig // * ServiceFailureException // The service encountered an unexpected error. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetVoiceConnectorOrigination -func (c *Chime) GetVoiceConnectorOrigination(input *GetVoiceConnectorOriginationInput) (*GetVoiceConnectorOriginationOutput, error) { - req, out := c.GetVoiceConnectorOriginationRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DisassociatePhoneNumbersFromVoiceConnector +func (c *Chime) DisassociatePhoneNumbersFromVoiceConnector(input *DisassociatePhoneNumbersFromVoiceConnectorInput) (*DisassociatePhoneNumbersFromVoiceConnectorOutput, error) { + req, out := c.DisassociatePhoneNumbersFromVoiceConnectorRequest(input) return out, req.Send() } -// GetVoiceConnectorOriginationWithContext is the same as GetVoiceConnectorOrigination with the addition of +// DisassociatePhoneNumbersFromVoiceConnectorWithContext is the same as DisassociatePhoneNumbersFromVoiceConnector with the addition of // the ability to pass a context and additional request options. // -// See GetVoiceConnectorOrigination for details on how to use this API operation. +// See DisassociatePhoneNumbersFromVoiceConnector 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 *Chime) GetVoiceConnectorOriginationWithContext(ctx aws.Context, input *GetVoiceConnectorOriginationInput, opts ...request.Option) (*GetVoiceConnectorOriginationOutput, error) { - req, out := c.GetVoiceConnectorOriginationRequest(input) +func (c *Chime) DisassociatePhoneNumbersFromVoiceConnectorWithContext(ctx aws.Context, input *DisassociatePhoneNumbersFromVoiceConnectorInput, opts ...request.Option) (*DisassociatePhoneNumbersFromVoiceConnectorOutput, error) { + req, out := c.DisassociatePhoneNumbersFromVoiceConnectorRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opGetVoiceConnectorProxy = "GetVoiceConnectorProxy" +const opDisassociatePhoneNumbersFromVoiceConnectorGroup = "DisassociatePhoneNumbersFromVoiceConnectorGroup" -// GetVoiceConnectorProxyRequest generates a "aws/request.Request" representing the -// client's request for the GetVoiceConnectorProxy operation. The "output" return +// DisassociatePhoneNumbersFromVoiceConnectorGroupRequest generates a "aws/request.Request" representing the +// client's request for the DisassociatePhoneNumbersFromVoiceConnectorGroup 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 GetVoiceConnectorProxy for more information on using the GetVoiceConnectorProxy +// See DisassociatePhoneNumbersFromVoiceConnectorGroup for more information on using the DisassociatePhoneNumbersFromVoiceConnectorGroup // 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 GetVoiceConnectorProxyRequest method. -// req, resp := client.GetVoiceConnectorProxyRequest(params) +// // Example sending a request using the DisassociatePhoneNumbersFromVoiceConnectorGroupRequest method. +// req, resp := client.DisassociatePhoneNumbersFromVoiceConnectorGroupRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetVoiceConnectorProxy -func (c *Chime) GetVoiceConnectorProxyRequest(input *GetVoiceConnectorProxyInput) (req *request.Request, output *GetVoiceConnectorProxyOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DisassociatePhoneNumbersFromVoiceConnectorGroup +func (c *Chime) DisassociatePhoneNumbersFromVoiceConnectorGroupRequest(input *DisassociatePhoneNumbersFromVoiceConnectorGroupInput) (req *request.Request, output *DisassociatePhoneNumbersFromVoiceConnectorGroupOutput) { op := &request.Operation{ - Name: opGetVoiceConnectorProxy, - HTTPMethod: "GET", - HTTPPath: "/voice-connectors/{voiceConnectorId}/programmable-numbers/proxy", + Name: opDisassociatePhoneNumbersFromVoiceConnectorGroup, + HTTPMethod: "POST", + HTTPPath: "/voice-connector-groups/{voiceConnectorGroupId}?operation=disassociate-phone-numbers", } if input == nil { - input = &GetVoiceConnectorProxyInput{} + input = &DisassociatePhoneNumbersFromVoiceConnectorGroupInput{} } - output = &GetVoiceConnectorProxyOutput{} + output = &DisassociatePhoneNumbersFromVoiceConnectorGroupOutput{} req = c.newRequest(op, input, output) return } -// GetVoiceConnectorProxy API operation for Amazon Chime. +// DisassociatePhoneNumbersFromVoiceConnectorGroup API operation for Amazon Chime. // -// Gets the proxy configuration details for the specified Amazon Chime Voice -// Connector. +// Disassociates the specified phone numbers from the specified Amazon Chime +// Voice Connector 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 // the error. // // See the AWS API reference guide for Amazon Chime's -// API operation GetVoiceConnectorProxy for usage and error information. +// API operation DisassociatePhoneNumbersFromVoiceConnectorGroup for usage and error information. // // Returned Error Types: // * UnauthorizedClientException @@ -7382,8 +7379,7 @@ func (c *Chime) GetVoiceConnectorProxyRequest(input *GetVoiceConnectorProxyInput // One or more of the resources in the request does not exist in the system. // // * ForbiddenException -// The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported Region. +// The client is permanently forbidden from making the request. // // * BadRequestException // The input parameters don't match the service's restrictions. @@ -7397,83 +7393,82 @@ func (c *Chime) GetVoiceConnectorProxyRequest(input *GetVoiceConnectorProxyInput // * ServiceFailureException // The service encountered an unexpected error. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetVoiceConnectorProxy -func (c *Chime) GetVoiceConnectorProxy(input *GetVoiceConnectorProxyInput) (*GetVoiceConnectorProxyOutput, error) { - req, out := c.GetVoiceConnectorProxyRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DisassociatePhoneNumbersFromVoiceConnectorGroup +func (c *Chime) DisassociatePhoneNumbersFromVoiceConnectorGroup(input *DisassociatePhoneNumbersFromVoiceConnectorGroupInput) (*DisassociatePhoneNumbersFromVoiceConnectorGroupOutput, error) { + req, out := c.DisassociatePhoneNumbersFromVoiceConnectorGroupRequest(input) return out, req.Send() } -// GetVoiceConnectorProxyWithContext is the same as GetVoiceConnectorProxy with the addition of +// DisassociatePhoneNumbersFromVoiceConnectorGroupWithContext is the same as DisassociatePhoneNumbersFromVoiceConnectorGroup with the addition of // the ability to pass a context and additional request options. // -// See GetVoiceConnectorProxy for details on how to use this API operation. +// See DisassociatePhoneNumbersFromVoiceConnectorGroup 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 *Chime) GetVoiceConnectorProxyWithContext(ctx aws.Context, input *GetVoiceConnectorProxyInput, opts ...request.Option) (*GetVoiceConnectorProxyOutput, error) { - req, out := c.GetVoiceConnectorProxyRequest(input) +func (c *Chime) DisassociatePhoneNumbersFromVoiceConnectorGroupWithContext(ctx aws.Context, input *DisassociatePhoneNumbersFromVoiceConnectorGroupInput, opts ...request.Option) (*DisassociatePhoneNumbersFromVoiceConnectorGroupOutput, error) { + req, out := c.DisassociatePhoneNumbersFromVoiceConnectorGroupRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opGetVoiceConnectorStreamingConfiguration = "GetVoiceConnectorStreamingConfiguration" +const opDisassociateSigninDelegateGroupsFromAccount = "DisassociateSigninDelegateGroupsFromAccount" -// GetVoiceConnectorStreamingConfigurationRequest generates a "aws/request.Request" representing the -// client's request for the GetVoiceConnectorStreamingConfiguration operation. The "output" return +// DisassociateSigninDelegateGroupsFromAccountRequest generates a "aws/request.Request" representing the +// client's request for the DisassociateSigninDelegateGroupsFromAccount 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 GetVoiceConnectorStreamingConfiguration for more information on using the GetVoiceConnectorStreamingConfiguration +// See DisassociateSigninDelegateGroupsFromAccount for more information on using the DisassociateSigninDelegateGroupsFromAccount // 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 GetVoiceConnectorStreamingConfigurationRequest method. -// req, resp := client.GetVoiceConnectorStreamingConfigurationRequest(params) +// // Example sending a request using the DisassociateSigninDelegateGroupsFromAccountRequest method. +// req, resp := client.DisassociateSigninDelegateGroupsFromAccountRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetVoiceConnectorStreamingConfiguration -func (c *Chime) GetVoiceConnectorStreamingConfigurationRequest(input *GetVoiceConnectorStreamingConfigurationInput) (req *request.Request, output *GetVoiceConnectorStreamingConfigurationOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DisassociateSigninDelegateGroupsFromAccount +func (c *Chime) DisassociateSigninDelegateGroupsFromAccountRequest(input *DisassociateSigninDelegateGroupsFromAccountInput) (req *request.Request, output *DisassociateSigninDelegateGroupsFromAccountOutput) { op := &request.Operation{ - Name: opGetVoiceConnectorStreamingConfiguration, - HTTPMethod: "GET", - HTTPPath: "/voice-connectors/{voiceConnectorId}/streaming-configuration", + Name: opDisassociateSigninDelegateGroupsFromAccount, + HTTPMethod: "POST", + HTTPPath: "/accounts/{accountId}?operation=disassociate-signin-delegate-groups", } if input == nil { - input = &GetVoiceConnectorStreamingConfigurationInput{} + input = &DisassociateSigninDelegateGroupsFromAccountInput{} } - output = &GetVoiceConnectorStreamingConfigurationOutput{} + output = &DisassociateSigninDelegateGroupsFromAccountOutput{} req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// GetVoiceConnectorStreamingConfiguration API operation for Amazon Chime. +// DisassociateSigninDelegateGroupsFromAccount API operation for Amazon Chime. // -// Retrieves the streaming configuration details for the specified Amazon Chime -// Voice Connector. Shows whether media streaming is enabled for sending to -// Amazon Kinesis. It also shows the retention period, in hours, for the Amazon -// Kinesis data. +// Disassociates the specified sign-in delegate groups from the specified Amazon +// Chime account. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Chime's -// API operation GetVoiceConnectorStreamingConfiguration for usage and error information. +// API operation DisassociateSigninDelegateGroupsFromAccount for usage and error information. // // Returned Error Types: // * UnauthorizedClientException @@ -7483,8 +7478,7 @@ func (c *Chime) GetVoiceConnectorStreamingConfigurationRequest(input *GetVoiceCo // One or more of the resources in the request does not exist in the system. // // * ForbiddenException -// The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported Region. +// The client is permanently forbidden from making the request. // // * BadRequestException // The input parameters don't match the service's restrictions. @@ -7498,81 +7492,81 @@ func (c *Chime) GetVoiceConnectorStreamingConfigurationRequest(input *GetVoiceCo // * ServiceFailureException // The service encountered an unexpected error. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetVoiceConnectorStreamingConfiguration -func (c *Chime) GetVoiceConnectorStreamingConfiguration(input *GetVoiceConnectorStreamingConfigurationInput) (*GetVoiceConnectorStreamingConfigurationOutput, error) { - req, out := c.GetVoiceConnectorStreamingConfigurationRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DisassociateSigninDelegateGroupsFromAccount +func (c *Chime) DisassociateSigninDelegateGroupsFromAccount(input *DisassociateSigninDelegateGroupsFromAccountInput) (*DisassociateSigninDelegateGroupsFromAccountOutput, error) { + req, out := c.DisassociateSigninDelegateGroupsFromAccountRequest(input) return out, req.Send() } -// GetVoiceConnectorStreamingConfigurationWithContext is the same as GetVoiceConnectorStreamingConfiguration with the addition of +// DisassociateSigninDelegateGroupsFromAccountWithContext is the same as DisassociateSigninDelegateGroupsFromAccount with the addition of // the ability to pass a context and additional request options. // -// See GetVoiceConnectorStreamingConfiguration for details on how to use this API operation. +// See DisassociateSigninDelegateGroupsFromAccount 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 *Chime) GetVoiceConnectorStreamingConfigurationWithContext(ctx aws.Context, input *GetVoiceConnectorStreamingConfigurationInput, opts ...request.Option) (*GetVoiceConnectorStreamingConfigurationOutput, error) { - req, out := c.GetVoiceConnectorStreamingConfigurationRequest(input) +func (c *Chime) DisassociateSigninDelegateGroupsFromAccountWithContext(ctx aws.Context, input *DisassociateSigninDelegateGroupsFromAccountInput, opts ...request.Option) (*DisassociateSigninDelegateGroupsFromAccountOutput, error) { + req, out := c.DisassociateSigninDelegateGroupsFromAccountRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opGetVoiceConnectorTermination = "GetVoiceConnectorTermination" +const opGetAccount = "GetAccount" -// GetVoiceConnectorTerminationRequest generates a "aws/request.Request" representing the -// client's request for the GetVoiceConnectorTermination operation. The "output" return +// GetAccountRequest generates a "aws/request.Request" representing the +// client's request for the GetAccount 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 GetVoiceConnectorTermination for more information on using the GetVoiceConnectorTermination +// See GetAccount for more information on using the GetAccount // 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 GetVoiceConnectorTerminationRequest method. -// req, resp := client.GetVoiceConnectorTerminationRequest(params) +// // Example sending a request using the GetAccountRequest method. +// req, resp := client.GetAccountRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetVoiceConnectorTermination -func (c *Chime) GetVoiceConnectorTerminationRequest(input *GetVoiceConnectorTerminationInput) (req *request.Request, output *GetVoiceConnectorTerminationOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetAccount +func (c *Chime) GetAccountRequest(input *GetAccountInput) (req *request.Request, output *GetAccountOutput) { op := &request.Operation{ - Name: opGetVoiceConnectorTermination, + Name: opGetAccount, HTTPMethod: "GET", - HTTPPath: "/voice-connectors/{voiceConnectorId}/termination", + HTTPPath: "/accounts/{accountId}", } if input == nil { - input = &GetVoiceConnectorTerminationInput{} + input = &GetAccountInput{} } - output = &GetVoiceConnectorTerminationOutput{} + output = &GetAccountOutput{} req = c.newRequest(op, input, output) return } -// GetVoiceConnectorTermination API operation for Amazon Chime. +// GetAccount API operation for Amazon Chime. // -// Retrieves termination setting details for the specified Amazon Chime Voice -// Connector. +// Retrieves details for the specified Amazon Chime account, such as account +// type and supported licenses. // // 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 Chime's -// API operation GetVoiceConnectorTermination for usage and error information. +// API operation GetAccount for usage and error information. // // Returned Error Types: // * UnauthorizedClientException @@ -7582,8 +7576,7 @@ func (c *Chime) GetVoiceConnectorTerminationRequest(input *GetVoiceConnectorTerm // One or more of the resources in the request does not exist in the system. // // * ForbiddenException -// The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported Region. +// The client is permanently forbidden from making the request. // // * BadRequestException // The input parameters don't match the service's restrictions. @@ -7597,81 +7590,83 @@ func (c *Chime) GetVoiceConnectorTerminationRequest(input *GetVoiceConnectorTerm // * ServiceFailureException // The service encountered an unexpected error. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetVoiceConnectorTermination -func (c *Chime) GetVoiceConnectorTermination(input *GetVoiceConnectorTerminationInput) (*GetVoiceConnectorTerminationOutput, error) { - req, out := c.GetVoiceConnectorTerminationRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetAccount +func (c *Chime) GetAccount(input *GetAccountInput) (*GetAccountOutput, error) { + req, out := c.GetAccountRequest(input) return out, req.Send() } -// GetVoiceConnectorTerminationWithContext is the same as GetVoiceConnectorTermination with the addition of +// GetAccountWithContext is the same as GetAccount with the addition of // the ability to pass a context and additional request options. // -// See GetVoiceConnectorTermination for details on how to use this API operation. +// See GetAccount 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 *Chime) GetVoiceConnectorTerminationWithContext(ctx aws.Context, input *GetVoiceConnectorTerminationInput, opts ...request.Option) (*GetVoiceConnectorTerminationOutput, error) { - req, out := c.GetVoiceConnectorTerminationRequest(input) +func (c *Chime) GetAccountWithContext(ctx aws.Context, input *GetAccountInput, opts ...request.Option) (*GetAccountOutput, error) { + req, out := c.GetAccountRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opGetVoiceConnectorTerminationHealth = "GetVoiceConnectorTerminationHealth" +const opGetAccountSettings = "GetAccountSettings" -// GetVoiceConnectorTerminationHealthRequest generates a "aws/request.Request" representing the -// client's request for the GetVoiceConnectorTerminationHealth operation. The "output" return +// GetAccountSettingsRequest generates a "aws/request.Request" representing the +// client's request for the GetAccountSettings 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 GetVoiceConnectorTerminationHealth for more information on using the GetVoiceConnectorTerminationHealth +// See GetAccountSettings for more information on using the GetAccountSettings // 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 GetVoiceConnectorTerminationHealthRequest method. -// req, resp := client.GetVoiceConnectorTerminationHealthRequest(params) +// // Example sending a request using the GetAccountSettingsRequest method. +// req, resp := client.GetAccountSettingsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetVoiceConnectorTerminationHealth -func (c *Chime) GetVoiceConnectorTerminationHealthRequest(input *GetVoiceConnectorTerminationHealthInput) (req *request.Request, output *GetVoiceConnectorTerminationHealthOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetAccountSettings +func (c *Chime) GetAccountSettingsRequest(input *GetAccountSettingsInput) (req *request.Request, output *GetAccountSettingsOutput) { op := &request.Operation{ - Name: opGetVoiceConnectorTerminationHealth, + Name: opGetAccountSettings, HTTPMethod: "GET", - HTTPPath: "/voice-connectors/{voiceConnectorId}/termination/health", + HTTPPath: "/accounts/{accountId}/settings", } if input == nil { - input = &GetVoiceConnectorTerminationHealthInput{} + input = &GetAccountSettingsInput{} } - output = &GetVoiceConnectorTerminationHealthOutput{} + output = &GetAccountSettingsOutput{} req = c.newRequest(op, input, output) return } -// GetVoiceConnectorTerminationHealth API operation for Amazon Chime. +// GetAccountSettings API operation for Amazon Chime. // -// Retrieves information about the last time a SIP OPTIONS ping was received -// from your SIP infrastructure for the specified Amazon Chime Voice Connector. +// Retrieves account settings for the specified Amazon Chime account ID, such +// as remote control and dial out settings. For more information about these +// settings, see Use the Policies Page (https://docs.aws.amazon.com/chime/latest/ag/policies.html) +// in the Amazon Chime Administration Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Chime's -// API operation GetVoiceConnectorTerminationHealth for usage and error information. +// API operation GetAccountSettings for usage and error information. // // Returned Error Types: // * UnauthorizedClientException @@ -7680,13 +7675,12 @@ func (c *Chime) GetVoiceConnectorTerminationHealthRequest(input *GetVoiceConnect // * NotFoundException // One or more of the resources in the request does not exist in the system. // -// * ForbiddenException -// The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported Region. -// // * BadRequestException // The input parameters don't match the service's restrictions. // +// * ForbiddenException +// The client is permanently forbidden from making the request. +// // * ThrottledClientException // The client exceeded its request rate limit. // @@ -7696,82 +7690,82 @@ func (c *Chime) GetVoiceConnectorTerminationHealthRequest(input *GetVoiceConnect // * ServiceFailureException // The service encountered an unexpected error. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetVoiceConnectorTerminationHealth -func (c *Chime) GetVoiceConnectorTerminationHealth(input *GetVoiceConnectorTerminationHealthInput) (*GetVoiceConnectorTerminationHealthOutput, error) { - req, out := c.GetVoiceConnectorTerminationHealthRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetAccountSettings +func (c *Chime) GetAccountSettings(input *GetAccountSettingsInput) (*GetAccountSettingsOutput, error) { + req, out := c.GetAccountSettingsRequest(input) return out, req.Send() } -// GetVoiceConnectorTerminationHealthWithContext is the same as GetVoiceConnectorTerminationHealth with the addition of +// GetAccountSettingsWithContext is the same as GetAccountSettings with the addition of // the ability to pass a context and additional request options. // -// See GetVoiceConnectorTerminationHealth for details on how to use this API operation. +// See GetAccountSettings 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 *Chime) GetVoiceConnectorTerminationHealthWithContext(ctx aws.Context, input *GetVoiceConnectorTerminationHealthInput, opts ...request.Option) (*GetVoiceConnectorTerminationHealthOutput, error) { - req, out := c.GetVoiceConnectorTerminationHealthRequest(input) +func (c *Chime) GetAccountSettingsWithContext(ctx aws.Context, input *GetAccountSettingsInput, opts ...request.Option) (*GetAccountSettingsOutput, error) { + req, out := c.GetAccountSettingsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opInviteUsers = "InviteUsers" +const opGetAppInstanceRetentionSettings = "GetAppInstanceRetentionSettings" -// InviteUsersRequest generates a "aws/request.Request" representing the -// client's request for the InviteUsers operation. The "output" return +// GetAppInstanceRetentionSettingsRequest generates a "aws/request.Request" representing the +// client's request for the GetAppInstanceRetentionSettings 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 InviteUsers for more information on using the InviteUsers +// See GetAppInstanceRetentionSettings for more information on using the GetAppInstanceRetentionSettings // 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 InviteUsersRequest method. -// req, resp := client.InviteUsersRequest(params) +// // Example sending a request using the GetAppInstanceRetentionSettingsRequest method. +// req, resp := client.GetAppInstanceRetentionSettingsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/InviteUsers -func (c *Chime) InviteUsersRequest(input *InviteUsersInput) (req *request.Request, output *InviteUsersOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetAppInstanceRetentionSettings +func (c *Chime) GetAppInstanceRetentionSettingsRequest(input *GetAppInstanceRetentionSettingsInput) (req *request.Request, output *GetAppInstanceRetentionSettingsOutput) { op := &request.Operation{ - Name: opInviteUsers, - HTTPMethod: "POST", - HTTPPath: "/accounts/{accountId}/users?operation=add", + Name: opGetAppInstanceRetentionSettings, + HTTPMethod: "GET", + HTTPPath: "/app-instances/{appInstanceArn}/retention-settings", } if input == nil { - input = &InviteUsersInput{} + input = &GetAppInstanceRetentionSettingsInput{} } - output = &InviteUsersOutput{} + output = &GetAppInstanceRetentionSettingsOutput{} req = c.newRequest(op, input, output) + req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("identity-", nil)) + req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) return } -// InviteUsers API operation for Amazon Chime. +// GetAppInstanceRetentionSettings API operation for Amazon Chime. // -// Sends email to a maximum of 50 users, inviting them to the specified Amazon -// Chime Team account. Only Team account types are currently supported for this -// action. +// Gets the retention settings for an app 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 Chime's -// API operation InviteUsers for usage and error information. +// API operation GetAppInstanceRetentionSettings for usage and error information. // // Returned Error Types: // * UnauthorizedClientException @@ -7780,13 +7774,12 @@ func (c *Chime) InviteUsersRequest(input *InviteUsersInput) (req *request.Reques // * NotFoundException // One or more of the resources in the request does not exist in the system. // -// * ForbiddenException -// The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported Region. -// // * BadRequestException // The input parameters don't match the service's restrictions. // +// * ForbiddenException +// The client is permanently forbidden from making the request. +// // * ThrottledClientException // The client exceeded its request rate limit. // @@ -7796,103 +7789,93 @@ func (c *Chime) InviteUsersRequest(input *InviteUsersInput) (req *request.Reques // * ServiceFailureException // The service encountered an unexpected error. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/InviteUsers -func (c *Chime) InviteUsers(input *InviteUsersInput) (*InviteUsersOutput, error) { - req, out := c.InviteUsersRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetAppInstanceRetentionSettings +func (c *Chime) GetAppInstanceRetentionSettings(input *GetAppInstanceRetentionSettingsInput) (*GetAppInstanceRetentionSettingsOutput, error) { + req, out := c.GetAppInstanceRetentionSettingsRequest(input) return out, req.Send() } -// InviteUsersWithContext is the same as InviteUsers with the addition of +// GetAppInstanceRetentionSettingsWithContext is the same as GetAppInstanceRetentionSettings with the addition of // the ability to pass a context and additional request options. // -// See InviteUsers for details on how to use this API operation. +// See GetAppInstanceRetentionSettings 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 *Chime) InviteUsersWithContext(ctx aws.Context, input *InviteUsersInput, opts ...request.Option) (*InviteUsersOutput, error) { - req, out := c.InviteUsersRequest(input) +func (c *Chime) GetAppInstanceRetentionSettingsWithContext(ctx aws.Context, input *GetAppInstanceRetentionSettingsInput, opts ...request.Option) (*GetAppInstanceRetentionSettingsOutput, error) { + req, out := c.GetAppInstanceRetentionSettingsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opListAccounts = "ListAccounts" +const opGetAppInstanceStreamingConfigurations = "GetAppInstanceStreamingConfigurations" -// ListAccountsRequest generates a "aws/request.Request" representing the -// client's request for the ListAccounts operation. The "output" return +// GetAppInstanceStreamingConfigurationsRequest generates a "aws/request.Request" representing the +// client's request for the GetAppInstanceStreamingConfigurations 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 ListAccounts for more information on using the ListAccounts +// See GetAppInstanceStreamingConfigurations for more information on using the GetAppInstanceStreamingConfigurations // 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 ListAccountsRequest method. -// req, resp := client.ListAccountsRequest(params) +// // Example sending a request using the GetAppInstanceStreamingConfigurationsRequest method. +// req, resp := client.GetAppInstanceStreamingConfigurationsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/ListAccounts -func (c *Chime) ListAccountsRequest(input *ListAccountsInput) (req *request.Request, output *ListAccountsOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetAppInstanceStreamingConfigurations +func (c *Chime) GetAppInstanceStreamingConfigurationsRequest(input *GetAppInstanceStreamingConfigurationsInput) (req *request.Request, output *GetAppInstanceStreamingConfigurationsOutput) { op := &request.Operation{ - Name: opListAccounts, + Name: opGetAppInstanceStreamingConfigurations, HTTPMethod: "GET", - HTTPPath: "/accounts", - Paginator: &request.Paginator{ - InputTokens: []string{"NextToken"}, - OutputTokens: []string{"NextToken"}, - LimitToken: "MaxResults", - TruncationToken: "", - }, + HTTPPath: "/app-instances/{appInstanceArn}/streaming-configurations", } if input == nil { - input = &ListAccountsInput{} + input = &GetAppInstanceStreamingConfigurationsInput{} } - output = &ListAccountsOutput{} + output = &GetAppInstanceStreamingConfigurationsOutput{} req = c.newRequest(op, input, output) return } -// ListAccounts API operation for Amazon Chime. +// GetAppInstanceStreamingConfigurations API operation for Amazon Chime. // -// Lists the Amazon Chime accounts under the administrator's AWS account. You -// can filter accounts by account name prefix. To find out which Amazon Chime -// account a user belongs to, you can filter by the user's email address, which -// returns one account result. +// Gets the streaming settings for an app 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 Chime's -// API operation ListAccounts for usage and error information. +// API operation GetAppInstanceStreamingConfigurations for usage and error information. // // Returned Error Types: -// * UnauthorizedClientException -// The client is not currently authorized to make the request. +// * BadRequestException +// The input parameters don't match the service's restrictions. +// +// * ForbiddenException +// The client is permanently forbidden from making the request. // // * NotFoundException // One or more of the resources in the request does not exist in the system. // -// * ForbiddenException -// The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported Region. -// -// * BadRequestException -// The input parameters don't match the service's restrictions. +// * UnauthorizedClientException +// The client is not currently authorized to make the request. // // * ThrottledClientException // The client exceeded its request rate limit. @@ -7903,140 +7886,90 @@ func (c *Chime) ListAccountsRequest(input *ListAccountsInput) (req *request.Requ // * ServiceFailureException // The service encountered an unexpected error. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/ListAccounts -func (c *Chime) ListAccounts(input *ListAccountsInput) (*ListAccountsOutput, error) { - req, out := c.ListAccountsRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetAppInstanceStreamingConfigurations +func (c *Chime) GetAppInstanceStreamingConfigurations(input *GetAppInstanceStreamingConfigurationsInput) (*GetAppInstanceStreamingConfigurationsOutput, error) { + req, out := c.GetAppInstanceStreamingConfigurationsRequest(input) return out, req.Send() } -// ListAccountsWithContext is the same as ListAccounts with the addition of +// GetAppInstanceStreamingConfigurationsWithContext is the same as GetAppInstanceStreamingConfigurations with the addition of // the ability to pass a context and additional request options. // -// See ListAccounts for details on how to use this API operation. +// See GetAppInstanceStreamingConfigurations 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 *Chime) ListAccountsWithContext(ctx aws.Context, input *ListAccountsInput, opts ...request.Option) (*ListAccountsOutput, error) { - req, out := c.ListAccountsRequest(input) +func (c *Chime) GetAppInstanceStreamingConfigurationsWithContext(ctx aws.Context, input *GetAppInstanceStreamingConfigurationsInput, opts ...request.Option) (*GetAppInstanceStreamingConfigurationsOutput, error) { + req, out := c.GetAppInstanceStreamingConfigurationsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// ListAccountsPages iterates over the pages of a ListAccounts operation, -// calling the "fn" function with the response data for each page. To stop -// iterating, return false from the fn function. -// -// See ListAccounts 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 ListAccounts operation. -// pageNum := 0 -// err := client.ListAccountsPages(params, -// func(page *chime.ListAccountsOutput, lastPage bool) bool { -// pageNum++ -// fmt.Println(page) -// return pageNum <= 3 -// }) -// -func (c *Chime) ListAccountsPages(input *ListAccountsInput, fn func(*ListAccountsOutput, bool) bool) error { - return c.ListAccountsPagesWithContext(aws.BackgroundContext(), input, fn) -} - -// ListAccountsPagesWithContext same as ListAccountsPages 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 *Chime) ListAccountsPagesWithContext(ctx aws.Context, input *ListAccountsInput, fn func(*ListAccountsOutput, bool) bool, opts ...request.Option) error { - p := request.Pagination{ - NewRequest: func() (*request.Request, error) { - var inCpy *ListAccountsInput - if input != nil { - tmp := *input - inCpy = &tmp - } - req, _ := c.ListAccountsRequest(inCpy) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return req, nil - }, - } - - for p.Next() { - if !fn(p.Page().(*ListAccountsOutput), !p.HasNextPage()) { - break - } - } - - return p.Err() -} - -const opListAttendeeTags = "ListAttendeeTags" +const opGetAttendee = "GetAttendee" -// ListAttendeeTagsRequest generates a "aws/request.Request" representing the -// client's request for the ListAttendeeTags operation. The "output" return +// GetAttendeeRequest generates a "aws/request.Request" representing the +// client's request for the GetAttendee 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 ListAttendeeTags for more information on using the ListAttendeeTags +// See GetAttendee for more information on using the GetAttendee // 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 ListAttendeeTagsRequest method. -// req, resp := client.ListAttendeeTagsRequest(params) +// // Example sending a request using the GetAttendeeRequest method. +// req, resp := client.GetAttendeeRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/ListAttendeeTags -func (c *Chime) ListAttendeeTagsRequest(input *ListAttendeeTagsInput) (req *request.Request, output *ListAttendeeTagsOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetAttendee +func (c *Chime) GetAttendeeRequest(input *GetAttendeeInput) (req *request.Request, output *GetAttendeeOutput) { op := &request.Operation{ - Name: opListAttendeeTags, + Name: opGetAttendee, HTTPMethod: "GET", - HTTPPath: "/meetings/{meetingId}/attendees/{attendeeId}/tags", + HTTPPath: "/meetings/{meetingId}/attendees/{attendeeId}", } if input == nil { - input = &ListAttendeeTagsInput{} + input = &GetAttendeeInput{} } - output = &ListAttendeeTagsOutput{} + output = &GetAttendeeOutput{} req = c.newRequest(op, input, output) return } -// ListAttendeeTags API operation for Amazon Chime. +// GetAttendee API operation for Amazon Chime. // -// Lists the tags applied to an Amazon Chime SDK attendee resource. +// Gets the Amazon Chime SDK attendee details for a specified meeting ID and +// attendee ID. For more information about the Amazon Chime SDK, see Using the +// Amazon Chime SDK (https://docs.aws.amazon.com/chime/latest/dg/meetings-sdk.html) +// in the Amazon Chime Developer Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Chime's -// API operation ListAttendeeTags for usage and error information. +// API operation GetAttendee for usage and error information. // // Returned Error Types: // * BadRequestException // The input parameters don't match the service's restrictions. // // * ForbiddenException -// The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported Region. +// The client is permanently forbidden from making the request. // // * NotFoundException // One or more of the resources in the request does not exist in the system. @@ -8053,509 +7986,483 @@ func (c *Chime) ListAttendeeTagsRequest(input *ListAttendeeTagsInput) (req *requ // * ServiceFailureException // The service encountered an unexpected error. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/ListAttendeeTags -func (c *Chime) ListAttendeeTags(input *ListAttendeeTagsInput) (*ListAttendeeTagsOutput, error) { - req, out := c.ListAttendeeTagsRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetAttendee +func (c *Chime) GetAttendee(input *GetAttendeeInput) (*GetAttendeeOutput, error) { + req, out := c.GetAttendeeRequest(input) return out, req.Send() } -// ListAttendeeTagsWithContext is the same as ListAttendeeTags with the addition of +// GetAttendeeWithContext is the same as GetAttendee with the addition of // the ability to pass a context and additional request options. // -// See ListAttendeeTags for details on how to use this API operation. +// See GetAttendee 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 *Chime) ListAttendeeTagsWithContext(ctx aws.Context, input *ListAttendeeTagsInput, opts ...request.Option) (*ListAttendeeTagsOutput, error) { - req, out := c.ListAttendeeTagsRequest(input) +func (c *Chime) GetAttendeeWithContext(ctx aws.Context, input *GetAttendeeInput, opts ...request.Option) (*GetAttendeeOutput, error) { + req, out := c.GetAttendeeRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opListAttendees = "ListAttendees" +const opGetBot = "GetBot" -// ListAttendeesRequest generates a "aws/request.Request" representing the -// client's request for the ListAttendees operation. The "output" return +// GetBotRequest generates a "aws/request.Request" representing the +// client's request for the GetBot 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 ListAttendees for more information on using the ListAttendees +// See GetBot for more information on using the GetBot // 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 ListAttendeesRequest method. -// req, resp := client.ListAttendeesRequest(params) +// // Example sending a request using the GetBotRequest method. +// req, resp := client.GetBotRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/ListAttendees -func (c *Chime) ListAttendeesRequest(input *ListAttendeesInput) (req *request.Request, output *ListAttendeesOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetBot +func (c *Chime) GetBotRequest(input *GetBotInput) (req *request.Request, output *GetBotOutput) { op := &request.Operation{ - Name: opListAttendees, + Name: opGetBot, HTTPMethod: "GET", - HTTPPath: "/meetings/{meetingId}/attendees", - Paginator: &request.Paginator{ - InputTokens: []string{"NextToken"}, - OutputTokens: []string{"NextToken"}, - LimitToken: "MaxResults", - TruncationToken: "", - }, + HTTPPath: "/accounts/{accountId}/bots/{botId}", } if input == nil { - input = &ListAttendeesInput{} + input = &GetBotInput{} } - output = &ListAttendeesOutput{} + output = &GetBotOutput{} req = c.newRequest(op, input, output) return } -// ListAttendees API operation for Amazon Chime. +// GetBot API operation for Amazon Chime. // -// Lists the attendees for the specified Amazon Chime SDK meeting. For more -// information about the Amazon Chime SDK, see Using the Amazon Chime SDK (https://docs.aws.amazon.com/chime/latest/dg/meetings-sdk.html) -// in the Amazon Chime Developer Guide. +// Retrieves details for the specified bot, such as bot email address, bot type, +// status, and display name. // // 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 Chime's -// API operation ListAttendees for usage and error information. +// API operation GetBot for usage and error information. // // Returned Error Types: -// * BadRequestException -// The input parameters don't match the service's restrictions. +// * ServiceUnavailableException +// The service is currently unavailable. +// +// * ServiceFailureException +// The service encountered an unexpected error. // // * ForbiddenException -// The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported Region. +// The client is permanently forbidden from making the request. +// +// * UnauthorizedClientException +// The client is not currently authorized to make the request. // // * NotFoundException // One or more of the resources in the request does not exist in the system. // +// * BadRequestException +// The input parameters don't match the service's restrictions. +// // * ThrottledClientException // The client exceeded its request rate limit. // -// * UnauthorizedClientException -// The client is not currently authorized to make the request. -// -// * ServiceUnavailableException -// The service is currently unavailable. -// -// * ServiceFailureException -// The service encountered an unexpected error. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/ListAttendees -func (c *Chime) ListAttendees(input *ListAttendeesInput) (*ListAttendeesOutput, error) { - req, out := c.ListAttendeesRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetBot +func (c *Chime) GetBot(input *GetBotInput) (*GetBotOutput, error) { + req, out := c.GetBotRequest(input) return out, req.Send() } -// ListAttendeesWithContext is the same as ListAttendees with the addition of +// GetBotWithContext is the same as GetBot with the addition of // the ability to pass a context and additional request options. // -// See ListAttendees for details on how to use this API operation. +// See GetBot 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 *Chime) ListAttendeesWithContext(ctx aws.Context, input *ListAttendeesInput, opts ...request.Option) (*ListAttendeesOutput, error) { - req, out := c.ListAttendeesRequest(input) +func (c *Chime) GetBotWithContext(ctx aws.Context, input *GetBotInput, opts ...request.Option) (*GetBotOutput, error) { + req, out := c.GetBotRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// ListAttendeesPages iterates over the pages of a ListAttendees operation, -// calling the "fn" function with the response data for each page. To stop -// iterating, return false from the fn function. -// -// See ListAttendees 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 ListAttendees operation. -// pageNum := 0 -// err := client.ListAttendeesPages(params, -// func(page *chime.ListAttendeesOutput, lastPage bool) bool { -// pageNum++ -// fmt.Println(page) -// return pageNum <= 3 -// }) -// -func (c *Chime) ListAttendeesPages(input *ListAttendeesInput, fn func(*ListAttendeesOutput, bool) bool) error { - return c.ListAttendeesPagesWithContext(aws.BackgroundContext(), input, fn) -} - -// ListAttendeesPagesWithContext same as ListAttendeesPages 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 *Chime) ListAttendeesPagesWithContext(ctx aws.Context, input *ListAttendeesInput, fn func(*ListAttendeesOutput, bool) bool, opts ...request.Option) error { - p := request.Pagination{ - NewRequest: func() (*request.Request, error) { - var inCpy *ListAttendeesInput - if input != nil { - tmp := *input - inCpy = &tmp - } - req, _ := c.ListAttendeesRequest(inCpy) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return req, nil - }, - } - - for p.Next() { - if !fn(p.Page().(*ListAttendeesOutput), !p.HasNextPage()) { - break - } - } - - return p.Err() -} - -const opListBots = "ListBots" +const opGetChannelMessage = "GetChannelMessage" -// ListBotsRequest generates a "aws/request.Request" representing the -// client's request for the ListBots operation. The "output" return +// GetChannelMessageRequest generates a "aws/request.Request" representing the +// client's request for the GetChannelMessage 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 ListBots for more information on using the ListBots +// See GetChannelMessage for more information on using the GetChannelMessage // 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 ListBotsRequest method. -// req, resp := client.ListBotsRequest(params) +// // Example sending a request using the GetChannelMessageRequest method. +// req, resp := client.GetChannelMessageRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/ListBots -func (c *Chime) ListBotsRequest(input *ListBotsInput) (req *request.Request, output *ListBotsOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetChannelMessage +func (c *Chime) GetChannelMessageRequest(input *GetChannelMessageInput) (req *request.Request, output *GetChannelMessageOutput) { op := &request.Operation{ - Name: opListBots, + Name: opGetChannelMessage, HTTPMethod: "GET", - HTTPPath: "/accounts/{accountId}/bots", - Paginator: &request.Paginator{ - InputTokens: []string{"NextToken"}, - OutputTokens: []string{"NextToken"}, - LimitToken: "MaxResults", - TruncationToken: "", - }, + HTTPPath: "/channels/{channelArn}/messages/{messageId}", } if input == nil { - input = &ListBotsInput{} + input = &GetChannelMessageInput{} } - output = &ListBotsOutput{} + output = &GetChannelMessageOutput{} req = c.newRequest(op, input, output) + req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("messaging-", nil)) + req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) return } -// ListBots API operation for Amazon Chime. +// GetChannelMessage API operation for Amazon Chime. // -// Lists the bots associated with the administrator's Amazon Chime Enterprise -// account ID. +// Gets the full details of a channel message. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Chime's -// API operation ListBots for usage and error information. +// API operation GetChannelMessage for usage and error information. // // Returned Error Types: -// * ServiceUnavailableException -// The service is currently unavailable. -// -// * ServiceFailureException -// The service encountered an unexpected error. +// * BadRequestException +// The input parameters don't match the service's restrictions. // // * ForbiddenException -// The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported Region. -// -// * UnauthorizedClientException -// The client is not currently authorized to make the request. -// -// * BadRequestException -// The input parameters don't match the service's restrictions. +// The client is permanently forbidden from making the request. // // * NotFoundException // One or more of the resources in the request does not exist in the system. // +// * UnauthorizedClientException +// The client is not currently authorized to make the request. +// // * ThrottledClientException // The client exceeded its request rate limit. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/ListBots -func (c *Chime) ListBots(input *ListBotsInput) (*ListBotsOutput, error) { - req, out := c.ListBotsRequest(input) +// * ServiceUnavailableException +// The service is currently unavailable. +// +// * ServiceFailureException +// The service encountered an unexpected error. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetChannelMessage +func (c *Chime) GetChannelMessage(input *GetChannelMessageInput) (*GetChannelMessageOutput, error) { + req, out := c.GetChannelMessageRequest(input) return out, req.Send() } -// ListBotsWithContext is the same as ListBots with the addition of +// GetChannelMessageWithContext is the same as GetChannelMessage with the addition of // the ability to pass a context and additional request options. // -// See ListBots for details on how to use this API operation. +// See GetChannelMessage 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 *Chime) ListBotsWithContext(ctx aws.Context, input *ListBotsInput, opts ...request.Option) (*ListBotsOutput, error) { - req, out := c.ListBotsRequest(input) +func (c *Chime) GetChannelMessageWithContext(ctx aws.Context, input *GetChannelMessageInput, opts ...request.Option) (*GetChannelMessageOutput, error) { + req, out := c.GetChannelMessageRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// ListBotsPages iterates over the pages of a ListBots operation, -// calling the "fn" function with the response data for each page. To stop -// iterating, return false from the fn function. +const opGetEventsConfiguration = "GetEventsConfiguration" + +// GetEventsConfigurationRequest generates a "aws/request.Request" representing the +// client's request for the GetEventsConfiguration operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. // -// See ListBots method for more information on how to use this operation. +// 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. // -// Note: This operation can generate multiple requests to a service. +// See GetEventsConfiguration for more information on using the GetEventsConfiguration +// API call, and error handling. // -// // Example iterating over at most 3 pages of a ListBots operation. -// pageNum := 0 -// err := client.ListBotsPages(params, -// func(page *chime.ListBotsOutput, lastPage bool) bool { -// pageNum++ -// fmt.Println(page) -// return pageNum <= 3 -// }) +// 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. // -func (c *Chime) ListBotsPages(input *ListBotsInput, fn func(*ListBotsOutput, bool) bool) error { - return c.ListBotsPagesWithContext(aws.BackgroundContext(), input, fn) +// +// // Example sending a request using the GetEventsConfigurationRequest method. +// req, resp := client.GetEventsConfigurationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetEventsConfiguration +func (c *Chime) GetEventsConfigurationRequest(input *GetEventsConfigurationInput) (req *request.Request, output *GetEventsConfigurationOutput) { + op := &request.Operation{ + Name: opGetEventsConfiguration, + HTTPMethod: "GET", + HTTPPath: "/accounts/{accountId}/bots/{botId}/events-configuration", + } + + if input == nil { + input = &GetEventsConfigurationInput{} + } + + output = &GetEventsConfigurationOutput{} + req = c.newRequest(op, input, output) + return } -// ListBotsPagesWithContext same as ListBotsPages except -// it takes a Context and allows setting request options on the pages. +// GetEventsConfiguration API operation for Amazon Chime. +// +// Gets details for an events configuration that allows a bot to receive outgoing +// events, such as an HTTPS endpoint or Lambda function ARN. +// +// 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 Chime's +// API operation GetEventsConfiguration for usage and error information. +// +// Returned Error Types: +// * ServiceUnavailableException +// The service is currently unavailable. +// +// * ServiceFailureException +// The service encountered an unexpected error. +// +// * ForbiddenException +// The client is permanently forbidden from making the request. +// +// * BadRequestException +// The input parameters don't match the service's restrictions. +// +// * UnauthorizedClientException +// The client is not currently authorized to make the request. +// +// * ResourceLimitExceededException +// The request exceeds the resource limit. +// +// * NotFoundException +// One or more of the resources in the request does not exist in the system. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetEventsConfiguration +func (c *Chime) GetEventsConfiguration(input *GetEventsConfigurationInput) (*GetEventsConfigurationOutput, error) { + req, out := c.GetEventsConfigurationRequest(input) + return out, req.Send() +} + +// GetEventsConfigurationWithContext is the same as GetEventsConfiguration with the addition of +// the ability to pass a context and additional request options. +// +// See GetEventsConfiguration 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 *Chime) ListBotsPagesWithContext(ctx aws.Context, input *ListBotsInput, fn func(*ListBotsOutput, bool) bool, opts ...request.Option) error { - p := request.Pagination{ - NewRequest: func() (*request.Request, error) { - var inCpy *ListBotsInput - if input != nil { - tmp := *input - inCpy = &tmp - } - req, _ := c.ListBotsRequest(inCpy) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return req, nil - }, - } - - for p.Next() { - if !fn(p.Page().(*ListBotsOutput), !p.HasNextPage()) { - break - } - } - - return p.Err() +func (c *Chime) GetEventsConfigurationWithContext(ctx aws.Context, input *GetEventsConfigurationInput, opts ...request.Option) (*GetEventsConfigurationOutput, error) { + req, out := c.GetEventsConfigurationRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() } -const opListMeetingTags = "ListMeetingTags" +const opGetGlobalSettings = "GetGlobalSettings" -// ListMeetingTagsRequest generates a "aws/request.Request" representing the -// client's request for the ListMeetingTags operation. The "output" return +// GetGlobalSettingsRequest generates a "aws/request.Request" representing the +// client's request for the GetGlobalSettings 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 ListMeetingTags for more information on using the ListMeetingTags +// See GetGlobalSettings for more information on using the GetGlobalSettings // 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 ListMeetingTagsRequest method. -// req, resp := client.ListMeetingTagsRequest(params) +// // Example sending a request using the GetGlobalSettingsRequest method. +// req, resp := client.GetGlobalSettingsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/ListMeetingTags -func (c *Chime) ListMeetingTagsRequest(input *ListMeetingTagsInput) (req *request.Request, output *ListMeetingTagsOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetGlobalSettings +func (c *Chime) GetGlobalSettingsRequest(input *GetGlobalSettingsInput) (req *request.Request, output *GetGlobalSettingsOutput) { op := &request.Operation{ - Name: opListMeetingTags, + Name: opGetGlobalSettings, HTTPMethod: "GET", - HTTPPath: "/meetings/{meetingId}/tags", + HTTPPath: "/settings", } if input == nil { - input = &ListMeetingTagsInput{} + input = &GetGlobalSettingsInput{} } - output = &ListMeetingTagsOutput{} + output = &GetGlobalSettingsOutput{} req = c.newRequest(op, input, output) return } -// ListMeetingTags API operation for Amazon Chime. +// GetGlobalSettings API operation for Amazon Chime. // -// Lists the tags applied to an Amazon Chime SDK meeting resource. +// Retrieves global settings for the administrator's AWS account, such as Amazon +// Chime Business Calling and Amazon Chime Voice Connector settings. // // 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 Chime's -// API operation ListMeetingTags for usage and error information. +// API operation GetGlobalSettings for usage and error information. // // Returned Error Types: -// * BadRequestException -// The input parameters don't match the service's restrictions. +// * UnauthorizedClientException +// The client is not currently authorized to make the request. // // * ForbiddenException -// The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported Region. +// The client is permanently forbidden from making the request. // -// * NotFoundException -// One or more of the resources in the request does not exist in the system. +// * BadRequestException +// The input parameters don't match the service's restrictions. // // * ThrottledClientException // The client exceeded its request rate limit. // -// * UnauthorizedClientException -// The client is not currently authorized to make the request. -// // * ServiceUnavailableException // The service is currently unavailable. // // * ServiceFailureException // The service encountered an unexpected error. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/ListMeetingTags -func (c *Chime) ListMeetingTags(input *ListMeetingTagsInput) (*ListMeetingTagsOutput, error) { - req, out := c.ListMeetingTagsRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetGlobalSettings +func (c *Chime) GetGlobalSettings(input *GetGlobalSettingsInput) (*GetGlobalSettingsOutput, error) { + req, out := c.GetGlobalSettingsRequest(input) return out, req.Send() } -// ListMeetingTagsWithContext is the same as ListMeetingTags with the addition of +// GetGlobalSettingsWithContext is the same as GetGlobalSettings with the addition of // the ability to pass a context and additional request options. // -// See ListMeetingTags for details on how to use this API operation. +// See GetGlobalSettings 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 *Chime) ListMeetingTagsWithContext(ctx aws.Context, input *ListMeetingTagsInput, opts ...request.Option) (*ListMeetingTagsOutput, error) { - req, out := c.ListMeetingTagsRequest(input) +func (c *Chime) GetGlobalSettingsWithContext(ctx aws.Context, input *GetGlobalSettingsInput, opts ...request.Option) (*GetGlobalSettingsOutput, error) { + req, out := c.GetGlobalSettingsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opListMeetings = "ListMeetings" +const opGetMeeting = "GetMeeting" -// ListMeetingsRequest generates a "aws/request.Request" representing the -// client's request for the ListMeetings operation. The "output" return +// GetMeetingRequest generates a "aws/request.Request" representing the +// client's request for the GetMeeting 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 ListMeetings for more information on using the ListMeetings +// See GetMeeting for more information on using the GetMeeting // 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 ListMeetingsRequest method. -// req, resp := client.ListMeetingsRequest(params) +// // Example sending a request using the GetMeetingRequest method. +// req, resp := client.GetMeetingRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/ListMeetings -func (c *Chime) ListMeetingsRequest(input *ListMeetingsInput) (req *request.Request, output *ListMeetingsOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetMeeting +func (c *Chime) GetMeetingRequest(input *GetMeetingInput) (req *request.Request, output *GetMeetingOutput) { op := &request.Operation{ - Name: opListMeetings, + Name: opGetMeeting, HTTPMethod: "GET", - HTTPPath: "/meetings", - Paginator: &request.Paginator{ - InputTokens: []string{"NextToken"}, - OutputTokens: []string{"NextToken"}, - LimitToken: "MaxResults", - TruncationToken: "", - }, + HTTPPath: "/meetings/{meetingId}", } if input == nil { - input = &ListMeetingsInput{} + input = &GetMeetingInput{} } - output = &ListMeetingsOutput{} + output = &GetMeetingOutput{} req = c.newRequest(op, input, output) return } -// ListMeetings API operation for Amazon Chime. +// GetMeeting API operation for Amazon Chime. // -// Lists up to 100 active Amazon Chime SDK meetings. For more information about -// the Amazon Chime SDK, see Using the Amazon Chime SDK (https://docs.aws.amazon.com/chime/latest/dg/meetings-sdk.html) -// in the Amazon Chime Developer Guide. +// Gets the Amazon Chime SDK meeting details for the specified meeting ID. For +// more information about the Amazon Chime SDK, see Using the Amazon Chime SDK +// (https://docs.aws.amazon.com/chime/latest/dg/meetings-sdk.html) in the Amazon +// Chime Developer Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Chime's -// API operation ListMeetings for usage and error information. +// API operation GetMeeting for usage and error information. // // Returned Error Types: // * BadRequestException // The input parameters don't match the service's restrictions. // // * ForbiddenException -// The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported Region. +// The client is permanently forbidden from making the request. +// +// * NotFoundException +// One or more of the resources in the request does not exist in the system. // // * ThrottledClientException // The client exceeded its request rate limit. @@ -8569,149 +8476,89 @@ func (c *Chime) ListMeetingsRequest(input *ListMeetingsInput) (req *request.Requ // * ServiceFailureException // The service encountered an unexpected error. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/ListMeetings -func (c *Chime) ListMeetings(input *ListMeetingsInput) (*ListMeetingsOutput, error) { - req, out := c.ListMeetingsRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetMeeting +func (c *Chime) GetMeeting(input *GetMeetingInput) (*GetMeetingOutput, error) { + req, out := c.GetMeetingRequest(input) return out, req.Send() } -// ListMeetingsWithContext is the same as ListMeetings with the addition of +// GetMeetingWithContext is the same as GetMeeting with the addition of // the ability to pass a context and additional request options. // -// See ListMeetings for details on how to use this API operation. +// See GetMeeting 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 *Chime) ListMeetingsWithContext(ctx aws.Context, input *ListMeetingsInput, opts ...request.Option) (*ListMeetingsOutput, error) { - req, out := c.ListMeetingsRequest(input) +func (c *Chime) GetMeetingWithContext(ctx aws.Context, input *GetMeetingInput, opts ...request.Option) (*GetMeetingOutput, error) { + req, out := c.GetMeetingRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// ListMeetingsPages iterates over the pages of a ListMeetings operation, -// calling the "fn" function with the response data for each page. To stop -// iterating, return false from the fn function. -// -// See ListMeetings 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 ListMeetings operation. -// pageNum := 0 -// err := client.ListMeetingsPages(params, -// func(page *chime.ListMeetingsOutput, lastPage bool) bool { -// pageNum++ -// fmt.Println(page) -// return pageNum <= 3 -// }) -// -func (c *Chime) ListMeetingsPages(input *ListMeetingsInput, fn func(*ListMeetingsOutput, bool) bool) error { - return c.ListMeetingsPagesWithContext(aws.BackgroundContext(), input, fn) -} - -// ListMeetingsPagesWithContext same as ListMeetingsPages 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 *Chime) ListMeetingsPagesWithContext(ctx aws.Context, input *ListMeetingsInput, fn func(*ListMeetingsOutput, bool) bool, opts ...request.Option) error { - p := request.Pagination{ - NewRequest: func() (*request.Request, error) { - var inCpy *ListMeetingsInput - if input != nil { - tmp := *input - inCpy = &tmp - } - req, _ := c.ListMeetingsRequest(inCpy) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return req, nil - }, - } - - for p.Next() { - if !fn(p.Page().(*ListMeetingsOutput), !p.HasNextPage()) { - break - } - } - - return p.Err() -} - -const opListPhoneNumberOrders = "ListPhoneNumberOrders" +const opGetMessagingSessionEndpoint = "GetMessagingSessionEndpoint" -// ListPhoneNumberOrdersRequest generates a "aws/request.Request" representing the -// client's request for the ListPhoneNumberOrders operation. The "output" return +// GetMessagingSessionEndpointRequest generates a "aws/request.Request" representing the +// client's request for the GetMessagingSessionEndpoint 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 ListPhoneNumberOrders for more information on using the ListPhoneNumberOrders +// See GetMessagingSessionEndpoint for more information on using the GetMessagingSessionEndpoint // 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 ListPhoneNumberOrdersRequest method. -// req, resp := client.ListPhoneNumberOrdersRequest(params) +// // Example sending a request using the GetMessagingSessionEndpointRequest method. +// req, resp := client.GetMessagingSessionEndpointRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/ListPhoneNumberOrders -func (c *Chime) ListPhoneNumberOrdersRequest(input *ListPhoneNumberOrdersInput) (req *request.Request, output *ListPhoneNumberOrdersOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetMessagingSessionEndpoint +func (c *Chime) GetMessagingSessionEndpointRequest(input *GetMessagingSessionEndpointInput) (req *request.Request, output *GetMessagingSessionEndpointOutput) { op := &request.Operation{ - Name: opListPhoneNumberOrders, + Name: opGetMessagingSessionEndpoint, HTTPMethod: "GET", - HTTPPath: "/phone-number-orders", - Paginator: &request.Paginator{ - InputTokens: []string{"NextToken"}, - OutputTokens: []string{"NextToken"}, - LimitToken: "MaxResults", - TruncationToken: "", - }, + HTTPPath: "/endpoints/messaging-session", } if input == nil { - input = &ListPhoneNumberOrdersInput{} + input = &GetMessagingSessionEndpointInput{} } - output = &ListPhoneNumberOrdersOutput{} + output = &GetMessagingSessionEndpointOutput{} req = c.newRequest(op, input, output) + req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("messaging-", nil)) + req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) return } -// ListPhoneNumberOrders API operation for Amazon Chime. +// GetMessagingSessionEndpoint API operation for Amazon Chime. // -// Lists the phone number orders for the administrator's Amazon Chime account. +// The endpoint for the messaging session. // // 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 Chime's -// API operation ListPhoneNumberOrders for usage and error information. +// API operation GetMessagingSessionEndpoint for usage and error information. // // Returned Error Types: // * UnauthorizedClientException // The client is not currently authorized to make the request. // // * ForbiddenException -// The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported Region. -// -// * BadRequestException -// The input parameters don't match the service's restrictions. +// The client is permanently forbidden from making the request. // // * ThrottledClientException // The client exceeded its request rate limit. @@ -8722,147 +8569,91 @@ func (c *Chime) ListPhoneNumberOrdersRequest(input *ListPhoneNumberOrdersInput) // * ServiceFailureException // The service encountered an unexpected error. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/ListPhoneNumberOrders -func (c *Chime) ListPhoneNumberOrders(input *ListPhoneNumberOrdersInput) (*ListPhoneNumberOrdersOutput, error) { - req, out := c.ListPhoneNumberOrdersRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetMessagingSessionEndpoint +func (c *Chime) GetMessagingSessionEndpoint(input *GetMessagingSessionEndpointInput) (*GetMessagingSessionEndpointOutput, error) { + req, out := c.GetMessagingSessionEndpointRequest(input) return out, req.Send() } -// ListPhoneNumberOrdersWithContext is the same as ListPhoneNumberOrders with the addition of +// GetMessagingSessionEndpointWithContext is the same as GetMessagingSessionEndpoint with the addition of // the ability to pass a context and additional request options. // -// See ListPhoneNumberOrders for details on how to use this API operation. +// See GetMessagingSessionEndpoint 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 *Chime) ListPhoneNumberOrdersWithContext(ctx aws.Context, input *ListPhoneNumberOrdersInput, opts ...request.Option) (*ListPhoneNumberOrdersOutput, error) { - req, out := c.ListPhoneNumberOrdersRequest(input) +func (c *Chime) GetMessagingSessionEndpointWithContext(ctx aws.Context, input *GetMessagingSessionEndpointInput, opts ...request.Option) (*GetMessagingSessionEndpointOutput, error) { + req, out := c.GetMessagingSessionEndpointRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// ListPhoneNumberOrdersPages iterates over the pages of a ListPhoneNumberOrders operation, -// calling the "fn" function with the response data for each page. To stop -// iterating, return false from the fn function. -// -// See ListPhoneNumberOrders 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 ListPhoneNumberOrders operation. -// pageNum := 0 -// err := client.ListPhoneNumberOrdersPages(params, -// func(page *chime.ListPhoneNumberOrdersOutput, lastPage bool) bool { -// pageNum++ -// fmt.Println(page) -// return pageNum <= 3 -// }) -// -func (c *Chime) ListPhoneNumberOrdersPages(input *ListPhoneNumberOrdersInput, fn func(*ListPhoneNumberOrdersOutput, bool) bool) error { - return c.ListPhoneNumberOrdersPagesWithContext(aws.BackgroundContext(), input, fn) -} - -// ListPhoneNumberOrdersPagesWithContext same as ListPhoneNumberOrdersPages 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 *Chime) ListPhoneNumberOrdersPagesWithContext(ctx aws.Context, input *ListPhoneNumberOrdersInput, fn func(*ListPhoneNumberOrdersOutput, bool) bool, opts ...request.Option) error { - p := request.Pagination{ - NewRequest: func() (*request.Request, error) { - var inCpy *ListPhoneNumberOrdersInput - if input != nil { - tmp := *input - inCpy = &tmp - } - req, _ := c.ListPhoneNumberOrdersRequest(inCpy) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return req, nil - }, - } - - for p.Next() { - if !fn(p.Page().(*ListPhoneNumberOrdersOutput), !p.HasNextPage()) { - break - } - } - - return p.Err() -} - -const opListPhoneNumbers = "ListPhoneNumbers" +const opGetPhoneNumber = "GetPhoneNumber" -// ListPhoneNumbersRequest generates a "aws/request.Request" representing the -// client's request for the ListPhoneNumbers operation. The "output" return +// GetPhoneNumberRequest generates a "aws/request.Request" representing the +// client's request for the GetPhoneNumber 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 ListPhoneNumbers for more information on using the ListPhoneNumbers +// See GetPhoneNumber for more information on using the GetPhoneNumber // 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 ListPhoneNumbersRequest method. -// req, resp := client.ListPhoneNumbersRequest(params) +// // Example sending a request using the GetPhoneNumberRequest method. +// req, resp := client.GetPhoneNumberRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/ListPhoneNumbers -func (c *Chime) ListPhoneNumbersRequest(input *ListPhoneNumbersInput) (req *request.Request, output *ListPhoneNumbersOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetPhoneNumber +func (c *Chime) GetPhoneNumberRequest(input *GetPhoneNumberInput) (req *request.Request, output *GetPhoneNumberOutput) { op := &request.Operation{ - Name: opListPhoneNumbers, + Name: opGetPhoneNumber, HTTPMethod: "GET", - HTTPPath: "/phone-numbers", - Paginator: &request.Paginator{ - InputTokens: []string{"NextToken"}, - OutputTokens: []string{"NextToken"}, - LimitToken: "MaxResults", - TruncationToken: "", - }, + HTTPPath: "/phone-numbers/{phoneNumberId}", } if input == nil { - input = &ListPhoneNumbersInput{} + input = &GetPhoneNumberInput{} } - output = &ListPhoneNumbersOutput{} + output = &GetPhoneNumberOutput{} req = c.newRequest(op, input, output) return } -// ListPhoneNumbers API operation for Amazon Chime. +// GetPhoneNumber API operation for Amazon Chime. // -// Lists the phone numbers for the specified Amazon Chime account, Amazon Chime -// user, Amazon Chime Voice Connector, or Amazon Chime Voice Connector group. +// Retrieves details for the specified phone number ID, such as associations, +// capabilities, and product type. // // 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 Chime's -// API operation ListPhoneNumbers for usage and error information. +// API operation GetPhoneNumber for usage and error information. // // Returned Error Types: // * UnauthorizedClientException // The client is not currently authorized to make the request. // +// * NotFoundException +// One or more of the resources in the request does not exist in the system. +// // * ForbiddenException -// The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported Region. +// The client is permanently forbidden from making the request. // // * BadRequestException // The input parameters don't match the service's restrictions. @@ -8876,138 +8667,81 @@ func (c *Chime) ListPhoneNumbersRequest(input *ListPhoneNumbersInput) (req *requ // * ServiceFailureException // The service encountered an unexpected error. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/ListPhoneNumbers -func (c *Chime) ListPhoneNumbers(input *ListPhoneNumbersInput) (*ListPhoneNumbersOutput, error) { - req, out := c.ListPhoneNumbersRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetPhoneNumber +func (c *Chime) GetPhoneNumber(input *GetPhoneNumberInput) (*GetPhoneNumberOutput, error) { + req, out := c.GetPhoneNumberRequest(input) return out, req.Send() } -// ListPhoneNumbersWithContext is the same as ListPhoneNumbers with the addition of +// GetPhoneNumberWithContext is the same as GetPhoneNumber with the addition of // the ability to pass a context and additional request options. // -// See ListPhoneNumbers for details on how to use this API operation. +// See GetPhoneNumber 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 *Chime) ListPhoneNumbersWithContext(ctx aws.Context, input *ListPhoneNumbersInput, opts ...request.Option) (*ListPhoneNumbersOutput, error) { - req, out := c.ListPhoneNumbersRequest(input) +func (c *Chime) GetPhoneNumberWithContext(ctx aws.Context, input *GetPhoneNumberInput, opts ...request.Option) (*GetPhoneNumberOutput, error) { + req, out := c.GetPhoneNumberRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// 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 *chime.ListPhoneNumbersOutput, lastPage bool) bool { -// pageNum++ -// fmt.Println(page) -// return pageNum <= 3 -// }) -// -func (c *Chime) ListPhoneNumbersPages(input *ListPhoneNumbersInput, fn func(*ListPhoneNumbersOutput, bool) bool) error { - return c.ListPhoneNumbersPagesWithContext(aws.BackgroundContext(), input, fn) -} - -// 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 *Chime) 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 - }, - } - - for p.Next() { - if !fn(p.Page().(*ListPhoneNumbersOutput), !p.HasNextPage()) { - break - } - } - - return p.Err() -} - -const opListProxySessions = "ListProxySessions" +const opGetPhoneNumberOrder = "GetPhoneNumberOrder" -// ListProxySessionsRequest generates a "aws/request.Request" representing the -// client's request for the ListProxySessions operation. The "output" return +// GetPhoneNumberOrderRequest generates a "aws/request.Request" representing the +// client's request for the GetPhoneNumberOrder 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 ListProxySessions for more information on using the ListProxySessions +// See GetPhoneNumberOrder for more information on using the GetPhoneNumberOrder // 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 ListProxySessionsRequest method. -// req, resp := client.ListProxySessionsRequest(params) +// // Example sending a request using the GetPhoneNumberOrderRequest method. +// req, resp := client.GetPhoneNumberOrderRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/ListProxySessions -func (c *Chime) ListProxySessionsRequest(input *ListProxySessionsInput) (req *request.Request, output *ListProxySessionsOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetPhoneNumberOrder +func (c *Chime) GetPhoneNumberOrderRequest(input *GetPhoneNumberOrderInput) (req *request.Request, output *GetPhoneNumberOrderOutput) { op := &request.Operation{ - Name: opListProxySessions, + Name: opGetPhoneNumberOrder, HTTPMethod: "GET", - HTTPPath: "/voice-connectors/{voiceConnectorId}/proxy-sessions", - Paginator: &request.Paginator{ - InputTokens: []string{"NextToken"}, - OutputTokens: []string{"NextToken"}, - LimitToken: "MaxResults", - TruncationToken: "", - }, + HTTPPath: "/phone-number-orders/{phoneNumberOrderId}", } if input == nil { - input = &ListProxySessionsInput{} + input = &GetPhoneNumberOrderInput{} } - output = &ListProxySessionsOutput{} + output = &GetPhoneNumberOrderOutput{} req = c.newRequest(op, input, output) return } -// ListProxySessions API operation for Amazon Chime. +// GetPhoneNumberOrder API operation for Amazon Chime. // -// Lists the proxy sessions for the specified Amazon Chime Voice Connector. +// Retrieves details for the specified phone number order, such as order creation +// timestamp, phone numbers in E.164 format, product type, and order status. // // 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 Chime's -// API operation ListProxySessions for usage and error information. +// API operation GetPhoneNumberOrder for usage and error information. // // Returned Error Types: // * UnauthorizedClientException @@ -9017,8 +8751,7 @@ func (c *Chime) ListProxySessionsRequest(input *ListProxySessionsInput) (req *re // One or more of the resources in the request does not exist in the system. // // * ForbiddenException -// The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported Region. +// The client is permanently forbidden from making the request. // // * BadRequestException // The input parameters don't match the service's restrictions. @@ -9032,153 +8765,91 @@ func (c *Chime) ListProxySessionsRequest(input *ListProxySessionsInput) (req *re // * ServiceFailureException // The service encountered an unexpected error. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/ListProxySessions -func (c *Chime) ListProxySessions(input *ListProxySessionsInput) (*ListProxySessionsOutput, error) { - req, out := c.ListProxySessionsRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetPhoneNumberOrder +func (c *Chime) GetPhoneNumberOrder(input *GetPhoneNumberOrderInput) (*GetPhoneNumberOrderOutput, error) { + req, out := c.GetPhoneNumberOrderRequest(input) return out, req.Send() } -// ListProxySessionsWithContext is the same as ListProxySessions with the addition of +// GetPhoneNumberOrderWithContext is the same as GetPhoneNumberOrder with the addition of // the ability to pass a context and additional request options. // -// See ListProxySessions for details on how to use this API operation. +// See GetPhoneNumberOrder 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 *Chime) ListProxySessionsWithContext(ctx aws.Context, input *ListProxySessionsInput, opts ...request.Option) (*ListProxySessionsOutput, error) { - req, out := c.ListProxySessionsRequest(input) +func (c *Chime) GetPhoneNumberOrderWithContext(ctx aws.Context, input *GetPhoneNumberOrderInput, opts ...request.Option) (*GetPhoneNumberOrderOutput, error) { + req, out := c.GetPhoneNumberOrderRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// ListProxySessionsPages iterates over the pages of a ListProxySessions operation, -// calling the "fn" function with the response data for each page. To stop -// iterating, return false from the fn function. -// -// See ListProxySessions 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 ListProxySessions operation. -// pageNum := 0 -// err := client.ListProxySessionsPages(params, -// func(page *chime.ListProxySessionsOutput, lastPage bool) bool { -// pageNum++ -// fmt.Println(page) -// return pageNum <= 3 -// }) -// -func (c *Chime) ListProxySessionsPages(input *ListProxySessionsInput, fn func(*ListProxySessionsOutput, bool) bool) error { - return c.ListProxySessionsPagesWithContext(aws.BackgroundContext(), input, fn) -} - -// ListProxySessionsPagesWithContext same as ListProxySessionsPages 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 *Chime) ListProxySessionsPagesWithContext(ctx aws.Context, input *ListProxySessionsInput, fn func(*ListProxySessionsOutput, bool) bool, opts ...request.Option) error { - p := request.Pagination{ - NewRequest: func() (*request.Request, error) { - var inCpy *ListProxySessionsInput - if input != nil { - tmp := *input - inCpy = &tmp - } - req, _ := c.ListProxySessionsRequest(inCpy) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return req, nil - }, - } - - for p.Next() { - if !fn(p.Page().(*ListProxySessionsOutput), !p.HasNextPage()) { - break - } - } - - return p.Err() -} - -const opListRoomMemberships = "ListRoomMemberships" +const opGetPhoneNumberSettings = "GetPhoneNumberSettings" -// ListRoomMembershipsRequest generates a "aws/request.Request" representing the -// client's request for the ListRoomMemberships operation. The "output" return +// GetPhoneNumberSettingsRequest generates a "aws/request.Request" representing the +// client's request for the GetPhoneNumberSettings 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 ListRoomMemberships for more information on using the ListRoomMemberships +// See GetPhoneNumberSettings for more information on using the GetPhoneNumberSettings // 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 ListRoomMembershipsRequest method. -// req, resp := client.ListRoomMembershipsRequest(params) +// // Example sending a request using the GetPhoneNumberSettingsRequest method. +// req, resp := client.GetPhoneNumberSettingsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/ListRoomMemberships -func (c *Chime) ListRoomMembershipsRequest(input *ListRoomMembershipsInput) (req *request.Request, output *ListRoomMembershipsOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetPhoneNumberSettings +func (c *Chime) GetPhoneNumberSettingsRequest(input *GetPhoneNumberSettingsInput) (req *request.Request, output *GetPhoneNumberSettingsOutput) { op := &request.Operation{ - Name: opListRoomMemberships, + Name: opGetPhoneNumberSettings, HTTPMethod: "GET", - HTTPPath: "/accounts/{accountId}/rooms/{roomId}/memberships", - Paginator: &request.Paginator{ - InputTokens: []string{"NextToken"}, - OutputTokens: []string{"NextToken"}, - LimitToken: "MaxResults", - TruncationToken: "", - }, + HTTPPath: "/settings/phone-number", } if input == nil { - input = &ListRoomMembershipsInput{} + input = &GetPhoneNumberSettingsInput{} } - output = &ListRoomMembershipsOutput{} + output = &GetPhoneNumberSettingsOutput{} req = c.newRequest(op, input, output) return } -// ListRoomMemberships API operation for Amazon Chime. +// GetPhoneNumberSettings API operation for Amazon Chime. // -// Lists the membership details for the specified room in an Amazon Chime Enterprise -// account, such as the members' IDs, email addresses, and names. +// Retrieves the phone number settings for the administrator's AWS account, +// such as the default outbound calling name. // // 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 Chime's -// API operation ListRoomMemberships for usage and error information. +// API operation GetPhoneNumberSettings for usage and error information. // // Returned Error Types: -// * NotFoundException -// One or more of the resources in the request does not exist in the system. -// -// * BadRequestException -// The input parameters don't match the service's restrictions. +// * UnauthorizedClientException +// The client is not currently authorized to make the request. // // * ForbiddenException -// The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported Region. +// The client is permanently forbidden from making the request. // -// * UnauthorizedClientException -// The client is not currently authorized to make the request. +// * BadRequestException +// The input parameters don't match the service's restrictions. // // * ThrottledClientException // The client exceeded its request rate limit. @@ -9189,154 +8860,94 @@ func (c *Chime) ListRoomMembershipsRequest(input *ListRoomMembershipsInput) (req // * ServiceFailureException // The service encountered an unexpected error. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/ListRoomMemberships -func (c *Chime) ListRoomMemberships(input *ListRoomMembershipsInput) (*ListRoomMembershipsOutput, error) { - req, out := c.ListRoomMembershipsRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetPhoneNumberSettings +func (c *Chime) GetPhoneNumberSettings(input *GetPhoneNumberSettingsInput) (*GetPhoneNumberSettingsOutput, error) { + req, out := c.GetPhoneNumberSettingsRequest(input) return out, req.Send() } -// ListRoomMembershipsWithContext is the same as ListRoomMemberships with the addition of +// GetPhoneNumberSettingsWithContext is the same as GetPhoneNumberSettings with the addition of // the ability to pass a context and additional request options. // -// See ListRoomMemberships for details on how to use this API operation. +// See GetPhoneNumberSettings 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 *Chime) ListRoomMembershipsWithContext(ctx aws.Context, input *ListRoomMembershipsInput, opts ...request.Option) (*ListRoomMembershipsOutput, error) { - req, out := c.ListRoomMembershipsRequest(input) +func (c *Chime) GetPhoneNumberSettingsWithContext(ctx aws.Context, input *GetPhoneNumberSettingsInput, opts ...request.Option) (*GetPhoneNumberSettingsOutput, error) { + req, out := c.GetPhoneNumberSettingsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// ListRoomMembershipsPages iterates over the pages of a ListRoomMemberships operation, -// calling the "fn" function with the response data for each page. To stop -// iterating, return false from the fn function. -// -// See ListRoomMemberships 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 ListRoomMemberships operation. -// pageNum := 0 -// err := client.ListRoomMembershipsPages(params, -// func(page *chime.ListRoomMembershipsOutput, lastPage bool) bool { -// pageNum++ -// fmt.Println(page) -// return pageNum <= 3 -// }) -// -func (c *Chime) ListRoomMembershipsPages(input *ListRoomMembershipsInput, fn func(*ListRoomMembershipsOutput, bool) bool) error { - return c.ListRoomMembershipsPagesWithContext(aws.BackgroundContext(), input, fn) -} - -// ListRoomMembershipsPagesWithContext same as ListRoomMembershipsPages 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 *Chime) ListRoomMembershipsPagesWithContext(ctx aws.Context, input *ListRoomMembershipsInput, fn func(*ListRoomMembershipsOutput, bool) bool, opts ...request.Option) error { - p := request.Pagination{ - NewRequest: func() (*request.Request, error) { - var inCpy *ListRoomMembershipsInput - if input != nil { - tmp := *input - inCpy = &tmp - } - req, _ := c.ListRoomMembershipsRequest(inCpy) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return req, nil - }, - } - - for p.Next() { - if !fn(p.Page().(*ListRoomMembershipsOutput), !p.HasNextPage()) { - break - } - } - - return p.Err() -} - -const opListRooms = "ListRooms" +const opGetProxySession = "GetProxySession" -// ListRoomsRequest generates a "aws/request.Request" representing the -// client's request for the ListRooms operation. The "output" return +// GetProxySessionRequest generates a "aws/request.Request" representing the +// client's request for the GetProxySession 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 ListRooms for more information on using the ListRooms +// See GetProxySession for more information on using the GetProxySession // 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 ListRoomsRequest method. -// req, resp := client.ListRoomsRequest(params) +// // Example sending a request using the GetProxySessionRequest method. +// req, resp := client.GetProxySessionRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/ListRooms -func (c *Chime) ListRoomsRequest(input *ListRoomsInput) (req *request.Request, output *ListRoomsOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetProxySession +func (c *Chime) GetProxySessionRequest(input *GetProxySessionInput) (req *request.Request, output *GetProxySessionOutput) { op := &request.Operation{ - Name: opListRooms, + Name: opGetProxySession, HTTPMethod: "GET", - HTTPPath: "/accounts/{accountId}/rooms", - Paginator: &request.Paginator{ - InputTokens: []string{"NextToken"}, - OutputTokens: []string{"NextToken"}, - LimitToken: "MaxResults", - TruncationToken: "", - }, + HTTPPath: "/voice-connectors/{voiceConnectorId}/proxy-sessions/{proxySessionId}", } if input == nil { - input = &ListRoomsInput{} + input = &GetProxySessionInput{} } - output = &ListRoomsOutput{} + output = &GetProxySessionOutput{} req = c.newRequest(op, input, output) return } -// ListRooms API operation for Amazon Chime. +// GetProxySession API operation for Amazon Chime. // -// Lists the room details for the specified Amazon Chime Enterprise account. -// Optionally, filter the results by a member ID (user ID or bot ID) to see -// a list of rooms that the member belongs to. +// Gets the specified proxy session details for the specified Amazon Chime Voice +// Connector. // // 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 Chime's -// API operation ListRooms for usage and error information. +// API operation GetProxySession for usage and error information. // // Returned Error Types: +// * UnauthorizedClientException +// The client is not currently authorized to make the request. +// // * NotFoundException // One or more of the resources in the request does not exist in the system. // -// * BadRequestException -// The input parameters don't match the service's restrictions. -// // * ForbiddenException -// The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported Region. +// The client is permanently forbidden from making the request. // -// * UnauthorizedClientException -// The client is not currently authorized to make the request. +// * BadRequestException +// The input parameters don't match the service's restrictions. // // * ThrottledClientException // The client exceeded its request rate limit. @@ -9347,144 +8958,97 @@ func (c *Chime) ListRoomsRequest(input *ListRoomsInput) (req *request.Request, o // * ServiceFailureException // The service encountered an unexpected error. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/ListRooms -func (c *Chime) ListRooms(input *ListRoomsInput) (*ListRoomsOutput, error) { - req, out := c.ListRoomsRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetProxySession +func (c *Chime) GetProxySession(input *GetProxySessionInput) (*GetProxySessionOutput, error) { + req, out := c.GetProxySessionRequest(input) return out, req.Send() } -// ListRoomsWithContext is the same as ListRooms with the addition of +// GetProxySessionWithContext is the same as GetProxySession with the addition of // the ability to pass a context and additional request options. // -// See ListRooms for details on how to use this API operation. +// See GetProxySession 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 *Chime) ListRoomsWithContext(ctx aws.Context, input *ListRoomsInput, opts ...request.Option) (*ListRoomsOutput, error) { - req, out := c.ListRoomsRequest(input) +func (c *Chime) GetProxySessionWithContext(ctx aws.Context, input *GetProxySessionInput, opts ...request.Option) (*GetProxySessionOutput, error) { + req, out := c.GetProxySessionRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// ListRoomsPages iterates over the pages of a ListRooms operation, -// calling the "fn" function with the response data for each page. To stop -// iterating, return false from the fn function. -// -// See ListRooms 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 ListRooms operation. -// pageNum := 0 -// err := client.ListRoomsPages(params, -// func(page *chime.ListRoomsOutput, lastPage bool) bool { -// pageNum++ -// fmt.Println(page) -// return pageNum <= 3 -// }) -// -func (c *Chime) ListRoomsPages(input *ListRoomsInput, fn func(*ListRoomsOutput, bool) bool) error { - return c.ListRoomsPagesWithContext(aws.BackgroundContext(), input, fn) -} - -// ListRoomsPagesWithContext same as ListRoomsPages 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 *Chime) ListRoomsPagesWithContext(ctx aws.Context, input *ListRoomsInput, fn func(*ListRoomsOutput, bool) bool, opts ...request.Option) error { - p := request.Pagination{ - NewRequest: func() (*request.Request, error) { - var inCpy *ListRoomsInput - if input != nil { - tmp := *input - inCpy = &tmp - } - req, _ := c.ListRoomsRequest(inCpy) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return req, nil - }, - } - - for p.Next() { - if !fn(p.Page().(*ListRoomsOutput), !p.HasNextPage()) { - break - } - } - - return p.Err() -} - -const opListSipMediaApplications = "ListSipMediaApplications" +const opGetRetentionSettings = "GetRetentionSettings" -// ListSipMediaApplicationsRequest generates a "aws/request.Request" representing the -// client's request for the ListSipMediaApplications operation. The "output" return +// GetRetentionSettingsRequest generates a "aws/request.Request" representing the +// client's request for the GetRetentionSettings 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 ListSipMediaApplications for more information on using the ListSipMediaApplications +// See GetRetentionSettings for more information on using the GetRetentionSettings // 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 ListSipMediaApplicationsRequest method. -// req, resp := client.ListSipMediaApplicationsRequest(params) +// // Example sending a request using the GetRetentionSettingsRequest method. +// req, resp := client.GetRetentionSettingsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/ListSipMediaApplications -func (c *Chime) ListSipMediaApplicationsRequest(input *ListSipMediaApplicationsInput) (req *request.Request, output *ListSipMediaApplicationsOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetRetentionSettings +func (c *Chime) GetRetentionSettingsRequest(input *GetRetentionSettingsInput) (req *request.Request, output *GetRetentionSettingsOutput) { op := &request.Operation{ - Name: opListSipMediaApplications, + Name: opGetRetentionSettings, HTTPMethod: "GET", - HTTPPath: "/sip-media-applications", + HTTPPath: "/accounts/{accountId}/retention-settings", } if input == nil { - input = &ListSipMediaApplicationsInput{} + input = &GetRetentionSettingsInput{} } - output = &ListSipMediaApplicationsOutput{} + output = &GetRetentionSettingsOutput{} req = c.newRequest(op, input, output) return } -// ListSipMediaApplications API operation for Amazon Chime. +// GetRetentionSettings API operation for Amazon Chime. // -// Lists the SIP media applications under the administrator's AWS account. +// Gets the retention settings for the specified Amazon Chime Enterprise account. +// For more information about retention settings, see Managing Chat Retention +// Policies (https://docs.aws.amazon.com/chime/latest/ag/chat-retention.html) +// in the Amazon Chime Administration Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Chime's -// API operation ListSipMediaApplications for usage and error information. +// API operation GetRetentionSettings for usage and error information. // // Returned Error Types: // * UnauthorizedClientException // The client is not currently authorized to make the request. // -// * ForbiddenException -// The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported Region. +// * NotFoundException +// One or more of the resources in the request does not exist in the system. // // * BadRequestException // The input parameters don't match the service's restrictions. // +// * ForbiddenException +// The client is permanently forbidden from making the request. +// // * ThrottledClientException // The client exceeded its request rate limit. // @@ -9494,91 +9058,94 @@ func (c *Chime) ListSipMediaApplicationsRequest(input *ListSipMediaApplicationsI // * ServiceFailureException // The service encountered an unexpected error. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/ListSipMediaApplications -func (c *Chime) ListSipMediaApplications(input *ListSipMediaApplicationsInput) (*ListSipMediaApplicationsOutput, error) { - req, out := c.ListSipMediaApplicationsRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetRetentionSettings +func (c *Chime) GetRetentionSettings(input *GetRetentionSettingsInput) (*GetRetentionSettingsOutput, error) { + req, out := c.GetRetentionSettingsRequest(input) return out, req.Send() } -// ListSipMediaApplicationsWithContext is the same as ListSipMediaApplications with the addition of +// GetRetentionSettingsWithContext is the same as GetRetentionSettings with the addition of // the ability to pass a context and additional request options. // -// See ListSipMediaApplications for details on how to use this API operation. +// See GetRetentionSettings 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 *Chime) ListSipMediaApplicationsWithContext(ctx aws.Context, input *ListSipMediaApplicationsInput, opts ...request.Option) (*ListSipMediaApplicationsOutput, error) { - req, out := c.ListSipMediaApplicationsRequest(input) +func (c *Chime) GetRetentionSettingsWithContext(ctx aws.Context, input *GetRetentionSettingsInput, opts ...request.Option) (*GetRetentionSettingsOutput, error) { + req, out := c.GetRetentionSettingsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opListSipRules = "ListSipRules" +const opGetRoom = "GetRoom" -// ListSipRulesRequest generates a "aws/request.Request" representing the -// client's request for the ListSipRules operation. The "output" return +// GetRoomRequest generates a "aws/request.Request" representing the +// client's request for the GetRoom 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 ListSipRules for more information on using the ListSipRules +// See GetRoom for more information on using the GetRoom // 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 ListSipRulesRequest method. -// req, resp := client.ListSipRulesRequest(params) +// // Example sending a request using the GetRoomRequest method. +// req, resp := client.GetRoomRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/ListSipRules -func (c *Chime) ListSipRulesRequest(input *ListSipRulesInput) (req *request.Request, output *ListSipRulesOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetRoom +func (c *Chime) GetRoomRequest(input *GetRoomInput) (req *request.Request, output *GetRoomOutput) { op := &request.Operation{ - Name: opListSipRules, + Name: opGetRoom, HTTPMethod: "GET", - HTTPPath: "/sip-rules", + HTTPPath: "/accounts/{accountId}/rooms/{roomId}", } if input == nil { - input = &ListSipRulesInput{} + input = &GetRoomInput{} } - output = &ListSipRulesOutput{} + output = &GetRoomOutput{} req = c.newRequest(op, input, output) return } -// ListSipRules API operation for Amazon Chime. +// GetRoom API operation for Amazon Chime. // -// Lists the SIP rules under the administrator's AWS account. +// Retrieves room details, such as the room name, for a room in an Amazon Chime +// Enterprise account. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Chime's -// API operation ListSipRules for usage and error information. +// API operation GetRoom for usage and error information. // // Returned Error Types: -// * UnauthorizedClientException -// The client is not currently authorized to make the request. +// * BadRequestException +// The input parameters don't match the service's restrictions. // // * ForbiddenException -// The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported Region. +// The client is permanently forbidden from making the request. // -// * BadRequestException -// The input parameters don't match the service's restrictions. +// * NotFoundException +// One or more of the resources in the request does not exist in the system. +// +// * UnauthorizedClientException +// The client is not currently authorized to make the request. // // * ThrottledClientException // The client exceeded its request rate limit. @@ -9589,94 +9156,97 @@ func (c *Chime) ListSipRulesRequest(input *ListSipRulesInput) (req *request.Requ // * ServiceFailureException // The service encountered an unexpected error. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/ListSipRules -func (c *Chime) ListSipRules(input *ListSipRulesInput) (*ListSipRulesOutput, error) { - req, out := c.ListSipRulesRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetRoom +func (c *Chime) GetRoom(input *GetRoomInput) (*GetRoomOutput, error) { + req, out := c.GetRoomRequest(input) return out, req.Send() } -// ListSipRulesWithContext is the same as ListSipRules with the addition of +// GetRoomWithContext is the same as GetRoom with the addition of // the ability to pass a context and additional request options. // -// See ListSipRules for details on how to use this API operation. +// See GetRoom 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 *Chime) ListSipRulesWithContext(ctx aws.Context, input *ListSipRulesInput, opts ...request.Option) (*ListSipRulesOutput, error) { - req, out := c.ListSipRulesRequest(input) +func (c *Chime) GetRoomWithContext(ctx aws.Context, input *GetRoomInput, opts ...request.Option) (*GetRoomOutput, error) { + req, out := c.GetRoomRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opListTagsForResource = "ListTagsForResource" +const opGetSipMediaApplication = "GetSipMediaApplication" -// ListTagsForResourceRequest generates a "aws/request.Request" representing the -// client's request for the ListTagsForResource operation. The "output" return +// GetSipMediaApplicationRequest generates a "aws/request.Request" representing the +// client's request for the GetSipMediaApplication operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See ListTagsForResource for more information on using the ListTagsForResource +// See GetSipMediaApplication for more information on using the GetSipMediaApplication // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the ListTagsForResourceRequest method. -// req, resp := client.ListTagsForResourceRequest(params) +// // Example sending a request using the GetSipMediaApplicationRequest method. +// req, resp := client.GetSipMediaApplicationRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/ListTagsForResource -func (c *Chime) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req *request.Request, output *ListTagsForResourceOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetSipMediaApplication +func (c *Chime) GetSipMediaApplicationRequest(input *GetSipMediaApplicationInput) (req *request.Request, output *GetSipMediaApplicationOutput) { op := &request.Operation{ - Name: opListTagsForResource, + Name: opGetSipMediaApplication, HTTPMethod: "GET", - HTTPPath: "/tags", + HTTPPath: "/sip-media-applications/{sipMediaApplicationId}", } if input == nil { - input = &ListTagsForResourceInput{} + input = &GetSipMediaApplicationInput{} } - output = &ListTagsForResourceOutput{} + output = &GetSipMediaApplicationOutput{} req = c.newRequest(op, input, output) return } -// ListTagsForResource API operation for Amazon Chime. +// GetSipMediaApplication API operation for Amazon Chime. // -// Lists the tags applied to an Amazon Chime SDK meeting resource. +// Retrieves the information for a SIP media application, including name, AWS +// Region, and endpoints. // // 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 Chime's -// API operation ListTagsForResource for usage and error information. +// API operation GetSipMediaApplication for usage and error information. // // Returned Error Types: -// * BadRequestException -// The input parameters don't match the service's restrictions. -// -// * ForbiddenException -// The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported Region. +// * UnauthorizedClientException +// The client is not currently authorized to make the request. // // * NotFoundException // One or more of the resources in the request does not exist in the system. // -// * UnauthorizedClientException -// The client is not currently authorized to make the request. +// * ForbiddenException +// The client is permanently forbidden from making the request. +// +// * BadRequestException +// The input parameters don't match the service's restrictions. +// +// * ThrottledClientException +// The client exceeded its request rate limit. // // * ServiceUnavailableException // The service is currently unavailable. @@ -9684,88 +9254,80 @@ func (c *Chime) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req // * ServiceFailureException // The service encountered an unexpected error. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/ListTagsForResource -func (c *Chime) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) { - req, out := c.ListTagsForResourceRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetSipMediaApplication +func (c *Chime) GetSipMediaApplication(input *GetSipMediaApplicationInput) (*GetSipMediaApplicationOutput, error) { + req, out := c.GetSipMediaApplicationRequest(input) return out, req.Send() } -// ListTagsForResourceWithContext is the same as ListTagsForResource with the addition of +// GetSipMediaApplicationWithContext is the same as GetSipMediaApplication with the addition of // the ability to pass a context and additional request options. // -// See ListTagsForResource for details on how to use this API operation. +// See GetSipMediaApplication 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 *Chime) ListTagsForResourceWithContext(ctx aws.Context, input *ListTagsForResourceInput, opts ...request.Option) (*ListTagsForResourceOutput, error) { - req, out := c.ListTagsForResourceRequest(input) +func (c *Chime) GetSipMediaApplicationWithContext(ctx aws.Context, input *GetSipMediaApplicationInput, opts ...request.Option) (*GetSipMediaApplicationOutput, error) { + req, out := c.GetSipMediaApplicationRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opListUsers = "ListUsers" +const opGetSipMediaApplicationLoggingConfiguration = "GetSipMediaApplicationLoggingConfiguration" -// ListUsersRequest generates a "aws/request.Request" representing the -// client's request for the ListUsers operation. The "output" return +// GetSipMediaApplicationLoggingConfigurationRequest generates a "aws/request.Request" representing the +// client's request for the GetSipMediaApplicationLoggingConfiguration 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 GetSipMediaApplicationLoggingConfiguration for more information on using the GetSipMediaApplicationLoggingConfiguration // 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 GetSipMediaApplicationLoggingConfigurationRequest method. +// req, resp := client.GetSipMediaApplicationLoggingConfigurationRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/ListUsers -func (c *Chime) ListUsersRequest(input *ListUsersInput) (req *request.Request, output *ListUsersOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetSipMediaApplicationLoggingConfiguration +func (c *Chime) GetSipMediaApplicationLoggingConfigurationRequest(input *GetSipMediaApplicationLoggingConfigurationInput) (req *request.Request, output *GetSipMediaApplicationLoggingConfigurationOutput) { op := &request.Operation{ - Name: opListUsers, + Name: opGetSipMediaApplicationLoggingConfiguration, HTTPMethod: "GET", - HTTPPath: "/accounts/{accountId}/users", - Paginator: &request.Paginator{ - InputTokens: []string{"NextToken"}, - OutputTokens: []string{"NextToken"}, - LimitToken: "MaxResults", - TruncationToken: "", - }, + HTTPPath: "/sip-media-applications/{sipMediaApplicationId}/logging-configuration", } if input == nil { - input = &ListUsersInput{} + input = &GetSipMediaApplicationLoggingConfigurationInput{} } - output = &ListUsersOutput{} + output = &GetSipMediaApplicationLoggingConfigurationOutput{} req = c.newRequest(op, input, output) return } -// ListUsers API operation for Amazon Chime. +// GetSipMediaApplicationLoggingConfiguration API operation for Amazon Chime. // -// Lists the users that belong to the specified Amazon Chime account. You can -// specify an email address to list only the user that the email address belongs -// to. +// Returns the logging configuration for the specified SIP media application. // // 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 Chime's -// API operation ListUsers for usage and error information. +// API operation GetSipMediaApplicationLoggingConfiguration for usage and error information. // // Returned Error Types: // * UnauthorizedClientException @@ -9775,8 +9337,7 @@ func (c *Chime) ListUsersRequest(input *ListUsersInput) (req *request.Request, o // One or more of the resources in the request does not exist in the system. // // * ForbiddenException -// The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported Region. +// The client is permanently forbidden from making the request. // // * BadRequestException // The input parameters don't match the service's restrictions. @@ -9790,147 +9351,91 @@ func (c *Chime) ListUsersRequest(input *ListUsersInput) (req *request.Request, o // * ServiceFailureException // The service encountered an unexpected error. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/ListUsers -func (c *Chime) ListUsers(input *ListUsersInput) (*ListUsersOutput, error) { - req, out := c.ListUsersRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetSipMediaApplicationLoggingConfiguration +func (c *Chime) GetSipMediaApplicationLoggingConfiguration(input *GetSipMediaApplicationLoggingConfigurationInput) (*GetSipMediaApplicationLoggingConfigurationOutput, error) { + req, out := c.GetSipMediaApplicationLoggingConfigurationRequest(input) return out, req.Send() } -// ListUsersWithContext is the same as ListUsers with the addition of +// GetSipMediaApplicationLoggingConfigurationWithContext is the same as GetSipMediaApplicationLoggingConfiguration 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 GetSipMediaApplicationLoggingConfiguration 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 *Chime) ListUsersWithContext(ctx aws.Context, input *ListUsersInput, opts ...request.Option) (*ListUsersOutput, error) { - req, out := c.ListUsersRequest(input) +func (c *Chime) GetSipMediaApplicationLoggingConfigurationWithContext(ctx aws.Context, input *GetSipMediaApplicationLoggingConfigurationInput, opts ...request.Option) (*GetSipMediaApplicationLoggingConfigurationOutput, error) { + req, out := c.GetSipMediaApplicationLoggingConfigurationRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// 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 *chime.ListUsersOutput, lastPage bool) bool { -// pageNum++ -// fmt.Println(page) -// return pageNum <= 3 -// }) -// -func (c *Chime) ListUsersPages(input *ListUsersInput, fn func(*ListUsersOutput, bool) bool) error { - return c.ListUsersPagesWithContext(aws.BackgroundContext(), input, fn) -} - -// 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 *Chime) 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 - }, - } - - for p.Next() { - if !fn(p.Page().(*ListUsersOutput), !p.HasNextPage()) { - break - } - } - - return p.Err() -} - -const opListVoiceConnectorGroups = "ListVoiceConnectorGroups" +const opGetSipRule = "GetSipRule" -// ListVoiceConnectorGroupsRequest generates a "aws/request.Request" representing the -// client's request for the ListVoiceConnectorGroups operation. The "output" return +// GetSipRuleRequest generates a "aws/request.Request" representing the +// client's request for the GetSipRule 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 ListVoiceConnectorGroups for more information on using the ListVoiceConnectorGroups +// See GetSipRule for more information on using the GetSipRule // 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 ListVoiceConnectorGroupsRequest method. -// req, resp := client.ListVoiceConnectorGroupsRequest(params) +// // Example sending a request using the GetSipRuleRequest method. +// req, resp := client.GetSipRuleRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/ListVoiceConnectorGroups -func (c *Chime) ListVoiceConnectorGroupsRequest(input *ListVoiceConnectorGroupsInput) (req *request.Request, output *ListVoiceConnectorGroupsOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetSipRule +func (c *Chime) GetSipRuleRequest(input *GetSipRuleInput) (req *request.Request, output *GetSipRuleOutput) { op := &request.Operation{ - Name: opListVoiceConnectorGroups, + Name: opGetSipRule, HTTPMethod: "GET", - HTTPPath: "/voice-connector-groups", - Paginator: &request.Paginator{ - InputTokens: []string{"NextToken"}, - OutputTokens: []string{"NextToken"}, - LimitToken: "MaxResults", - TruncationToken: "", - }, + HTTPPath: "/sip-rules/{sipRuleId}", } if input == nil { - input = &ListVoiceConnectorGroupsInput{} + input = &GetSipRuleInput{} } - output = &ListVoiceConnectorGroupsOutput{} + output = &GetSipRuleOutput{} req = c.newRequest(op, input, output) return } -// ListVoiceConnectorGroups API operation for Amazon Chime. +// GetSipRule API operation for Amazon Chime. // -// Lists the Amazon Chime Voice Connector groups for the administrator's AWS -// account. +// Retrieves the details of a SIP rule, such as the rule ID, name, triggers, +// and target endpoints. // // 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 Chime's -// API operation ListVoiceConnectorGroups for usage and error information. +// API operation GetSipRule for usage and error information. // // Returned Error Types: // * UnauthorizedClientException // The client is not currently authorized to make the request. // +// * NotFoundException +// One or more of the resources in the request does not exist in the system. +// // * ForbiddenException -// The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported Region. +// The client is permanently forbidden from making the request. // // * BadRequestException // The input parameters don't match the service's restrictions. @@ -9944,132 +9449,84 @@ func (c *Chime) ListVoiceConnectorGroupsRequest(input *ListVoiceConnectorGroupsI // * ServiceFailureException // The service encountered an unexpected error. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/ListVoiceConnectorGroups -func (c *Chime) ListVoiceConnectorGroups(input *ListVoiceConnectorGroupsInput) (*ListVoiceConnectorGroupsOutput, error) { - req, out := c.ListVoiceConnectorGroupsRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetSipRule +func (c *Chime) GetSipRule(input *GetSipRuleInput) (*GetSipRuleOutput, error) { + req, out := c.GetSipRuleRequest(input) return out, req.Send() } -// ListVoiceConnectorGroupsWithContext is the same as ListVoiceConnectorGroups with the addition of +// GetSipRuleWithContext is the same as GetSipRule with the addition of // the ability to pass a context and additional request options. // -// See ListVoiceConnectorGroups for details on how to use this API operation. +// See GetSipRule 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 *Chime) ListVoiceConnectorGroupsWithContext(ctx aws.Context, input *ListVoiceConnectorGroupsInput, opts ...request.Option) (*ListVoiceConnectorGroupsOutput, error) { - req, out := c.ListVoiceConnectorGroupsRequest(input) +func (c *Chime) GetSipRuleWithContext(ctx aws.Context, input *GetSipRuleInput, opts ...request.Option) (*GetSipRuleOutput, error) { + req, out := c.GetSipRuleRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// ListVoiceConnectorGroupsPages iterates over the pages of a ListVoiceConnectorGroups operation, -// calling the "fn" function with the response data for each page. To stop -// iterating, return false from the fn function. -// -// See ListVoiceConnectorGroups 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 ListVoiceConnectorGroups operation. -// pageNum := 0 -// err := client.ListVoiceConnectorGroupsPages(params, -// func(page *chime.ListVoiceConnectorGroupsOutput, lastPage bool) bool { -// pageNum++ -// fmt.Println(page) -// return pageNum <= 3 -// }) -// -func (c *Chime) ListVoiceConnectorGroupsPages(input *ListVoiceConnectorGroupsInput, fn func(*ListVoiceConnectorGroupsOutput, bool) bool) error { - return c.ListVoiceConnectorGroupsPagesWithContext(aws.BackgroundContext(), input, fn) -} - -// ListVoiceConnectorGroupsPagesWithContext same as ListVoiceConnectorGroupsPages 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 *Chime) ListVoiceConnectorGroupsPagesWithContext(ctx aws.Context, input *ListVoiceConnectorGroupsInput, fn func(*ListVoiceConnectorGroupsOutput, bool) bool, opts ...request.Option) error { - p := request.Pagination{ - NewRequest: func() (*request.Request, error) { - var inCpy *ListVoiceConnectorGroupsInput - if input != nil { - tmp := *input - inCpy = &tmp - } - req, _ := c.ListVoiceConnectorGroupsRequest(inCpy) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return req, nil - }, - } - - for p.Next() { - if !fn(p.Page().(*ListVoiceConnectorGroupsOutput), !p.HasNextPage()) { - break - } - } - - return p.Err() -} - -const opListVoiceConnectorTerminationCredentials = "ListVoiceConnectorTerminationCredentials" +const opGetUser = "GetUser" -// ListVoiceConnectorTerminationCredentialsRequest generates a "aws/request.Request" representing the -// client's request for the ListVoiceConnectorTerminationCredentials operation. The "output" return +// GetUserRequest generates a "aws/request.Request" representing the +// client's request for the GetUser 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 ListVoiceConnectorTerminationCredentials for more information on using the ListVoiceConnectorTerminationCredentials +// See GetUser for more information on using the GetUser // 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 ListVoiceConnectorTerminationCredentialsRequest method. -// req, resp := client.ListVoiceConnectorTerminationCredentialsRequest(params) +// // Example sending a request using the GetUserRequest method. +// req, resp := client.GetUserRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/ListVoiceConnectorTerminationCredentials -func (c *Chime) ListVoiceConnectorTerminationCredentialsRequest(input *ListVoiceConnectorTerminationCredentialsInput) (req *request.Request, output *ListVoiceConnectorTerminationCredentialsOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetUser +func (c *Chime) GetUserRequest(input *GetUserInput) (req *request.Request, output *GetUserOutput) { op := &request.Operation{ - Name: opListVoiceConnectorTerminationCredentials, + Name: opGetUser, HTTPMethod: "GET", - HTTPPath: "/voice-connectors/{voiceConnectorId}/termination/credentials", + HTTPPath: "/accounts/{accountId}/users/{userId}", } if input == nil { - input = &ListVoiceConnectorTerminationCredentialsInput{} + input = &GetUserInput{} } - output = &ListVoiceConnectorTerminationCredentialsOutput{} + output = &GetUserOutput{} req = c.newRequest(op, input, output) return } -// ListVoiceConnectorTerminationCredentials API operation for Amazon Chime. +// GetUser API operation for Amazon Chime. // -// Lists the SIP credentials for the specified Amazon Chime Voice Connector. +// Retrieves details for the specified user ID, such as primary email address, +// license type, and personal meeting PIN. +// +// To retrieve user details with an email address instead of a user ID, use +// the ListUsers action, and then filter by email address. // // 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 Chime's -// API operation ListVoiceConnectorTerminationCredentials for usage and error information. +// API operation GetUser for usage and error information. // // Returned Error Types: // * UnauthorizedClientException @@ -10079,8 +9536,7 @@ func (c *Chime) ListVoiceConnectorTerminationCredentialsRequest(input *ListVoice // One or more of the resources in the request does not exist in the system. // // * ForbiddenException -// The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported Region. +// The client is permanently forbidden from making the request. // // * BadRequestException // The input parameters don't match the service's restrictions. @@ -10094,94 +9550,91 @@ func (c *Chime) ListVoiceConnectorTerminationCredentialsRequest(input *ListVoice // * ServiceFailureException // The service encountered an unexpected error. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/ListVoiceConnectorTerminationCredentials -func (c *Chime) ListVoiceConnectorTerminationCredentials(input *ListVoiceConnectorTerminationCredentialsInput) (*ListVoiceConnectorTerminationCredentialsOutput, error) { - req, out := c.ListVoiceConnectorTerminationCredentialsRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetUser +func (c *Chime) GetUser(input *GetUserInput) (*GetUserOutput, error) { + req, out := c.GetUserRequest(input) return out, req.Send() } -// ListVoiceConnectorTerminationCredentialsWithContext is the same as ListVoiceConnectorTerminationCredentials with the addition of +// GetUserWithContext is the same as GetUser with the addition of // the ability to pass a context and additional request options. // -// See ListVoiceConnectorTerminationCredentials for details on how to use this API operation. +// See GetUser 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 *Chime) ListVoiceConnectorTerminationCredentialsWithContext(ctx aws.Context, input *ListVoiceConnectorTerminationCredentialsInput, opts ...request.Option) (*ListVoiceConnectorTerminationCredentialsOutput, error) { - req, out := c.ListVoiceConnectorTerminationCredentialsRequest(input) +func (c *Chime) GetUserWithContext(ctx aws.Context, input *GetUserInput, opts ...request.Option) (*GetUserOutput, error) { + req, out := c.GetUserRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opListVoiceConnectors = "ListVoiceConnectors" +const opGetUserSettings = "GetUserSettings" -// ListVoiceConnectorsRequest generates a "aws/request.Request" representing the -// client's request for the ListVoiceConnectors operation. The "output" return +// GetUserSettingsRequest generates a "aws/request.Request" representing the +// client's request for the GetUserSettings 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 ListVoiceConnectors for more information on using the ListVoiceConnectors +// See GetUserSettings for more information on using the GetUserSettings // 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 ListVoiceConnectorsRequest method. -// req, resp := client.ListVoiceConnectorsRequest(params) +// // Example sending a request using the GetUserSettingsRequest method. +// req, resp := client.GetUserSettingsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/ListVoiceConnectors -func (c *Chime) ListVoiceConnectorsRequest(input *ListVoiceConnectorsInput) (req *request.Request, output *ListVoiceConnectorsOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetUserSettings +func (c *Chime) GetUserSettingsRequest(input *GetUserSettingsInput) (req *request.Request, output *GetUserSettingsOutput) { op := &request.Operation{ - Name: opListVoiceConnectors, + Name: opGetUserSettings, HTTPMethod: "GET", - HTTPPath: "/voice-connectors", - Paginator: &request.Paginator{ - InputTokens: []string{"NextToken"}, - OutputTokens: []string{"NextToken"}, - LimitToken: "MaxResults", - TruncationToken: "", - }, + HTTPPath: "/accounts/{accountId}/users/{userId}/settings", } if input == nil { - input = &ListVoiceConnectorsInput{} + input = &GetUserSettingsInput{} } - output = &ListVoiceConnectorsOutput{} + output = &GetUserSettingsOutput{} req = c.newRequest(op, input, output) return } -// ListVoiceConnectors API operation for Amazon Chime. +// GetUserSettings API operation for Amazon Chime. // -// Lists the Amazon Chime Voice Connectors for the administrator's AWS account. +// Retrieves settings for the specified user ID, such as any associated phone +// number settings. // // 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 Chime's -// API operation ListVoiceConnectors for usage and error information. +// API operation GetUserSettings for usage and error information. // // Returned Error Types: // * UnauthorizedClientException // The client is not currently authorized to make the request. // +// * NotFoundException +// One or more of the resources in the request does not exist in the system. +// // * ForbiddenException -// The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported Region. +// The client is permanently forbidden from making the request. // // * BadRequestException // The input parameters don't match the service's restrictions. @@ -10195,134 +9648,81 @@ func (c *Chime) ListVoiceConnectorsRequest(input *ListVoiceConnectorsInput) (req // * ServiceFailureException // The service encountered an unexpected error. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/ListVoiceConnectors -func (c *Chime) ListVoiceConnectors(input *ListVoiceConnectorsInput) (*ListVoiceConnectorsOutput, error) { - req, out := c.ListVoiceConnectorsRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetUserSettings +func (c *Chime) GetUserSettings(input *GetUserSettingsInput) (*GetUserSettingsOutput, error) { + req, out := c.GetUserSettingsRequest(input) return out, req.Send() } -// ListVoiceConnectorsWithContext is the same as ListVoiceConnectors with the addition of +// GetUserSettingsWithContext is the same as GetUserSettings with the addition of // the ability to pass a context and additional request options. // -// See ListVoiceConnectors for details on how to use this API operation. +// See GetUserSettings 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 *Chime) ListVoiceConnectorsWithContext(ctx aws.Context, input *ListVoiceConnectorsInput, opts ...request.Option) (*ListVoiceConnectorsOutput, error) { - req, out := c.ListVoiceConnectorsRequest(input) +func (c *Chime) GetUserSettingsWithContext(ctx aws.Context, input *GetUserSettingsInput, opts ...request.Option) (*GetUserSettingsOutput, error) { + req, out := c.GetUserSettingsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// ListVoiceConnectorsPages iterates over the pages of a ListVoiceConnectors operation, -// calling the "fn" function with the response data for each page. To stop -// iterating, return false from the fn function. -// -// See ListVoiceConnectors 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 ListVoiceConnectors operation. -// pageNum := 0 -// err := client.ListVoiceConnectorsPages(params, -// func(page *chime.ListVoiceConnectorsOutput, lastPage bool) bool { -// pageNum++ -// fmt.Println(page) -// return pageNum <= 3 -// }) -// -func (c *Chime) ListVoiceConnectorsPages(input *ListVoiceConnectorsInput, fn func(*ListVoiceConnectorsOutput, bool) bool) error { - return c.ListVoiceConnectorsPagesWithContext(aws.BackgroundContext(), input, fn) -} - -// ListVoiceConnectorsPagesWithContext same as ListVoiceConnectorsPages 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 *Chime) ListVoiceConnectorsPagesWithContext(ctx aws.Context, input *ListVoiceConnectorsInput, fn func(*ListVoiceConnectorsOutput, bool) bool, opts ...request.Option) error { - p := request.Pagination{ - NewRequest: func() (*request.Request, error) { - var inCpy *ListVoiceConnectorsInput - if input != nil { - tmp := *input - inCpy = &tmp - } - req, _ := c.ListVoiceConnectorsRequest(inCpy) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return req, nil - }, - } - - for p.Next() { - if !fn(p.Page().(*ListVoiceConnectorsOutput), !p.HasNextPage()) { - break - } - } - - return p.Err() -} - -const opLogoutUser = "LogoutUser" +const opGetVoiceConnector = "GetVoiceConnector" -// LogoutUserRequest generates a "aws/request.Request" representing the -// client's request for the LogoutUser operation. The "output" return +// GetVoiceConnectorRequest generates a "aws/request.Request" representing the +// client's request for the GetVoiceConnector 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 LogoutUser for more information on using the LogoutUser +// See GetVoiceConnector for more information on using the GetVoiceConnector // 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 LogoutUserRequest method. -// req, resp := client.LogoutUserRequest(params) +// // Example sending a request using the GetVoiceConnectorRequest method. +// req, resp := client.GetVoiceConnectorRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/LogoutUser -func (c *Chime) LogoutUserRequest(input *LogoutUserInput) (req *request.Request, output *LogoutUserOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetVoiceConnector +func (c *Chime) GetVoiceConnectorRequest(input *GetVoiceConnectorInput) (req *request.Request, output *GetVoiceConnectorOutput) { op := &request.Operation{ - Name: opLogoutUser, - HTTPMethod: "POST", - HTTPPath: "/accounts/{accountId}/users/{userId}?operation=logout", + Name: opGetVoiceConnector, + HTTPMethod: "GET", + HTTPPath: "/voice-connectors/{voiceConnectorId}", } if input == nil { - input = &LogoutUserInput{} + input = &GetVoiceConnectorInput{} } - output = &LogoutUserOutput{} + output = &GetVoiceConnectorOutput{} req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// LogoutUser API operation for Amazon Chime. +// GetVoiceConnector API operation for Amazon Chime. // -// Logs out the specified user from all of the devices they are currently logged -// into. +// Retrieves details for the specified Amazon Chime Voice Connector, such as +// timestamps, name, outbound host, and encryption requirements. // // 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 Chime's -// API operation LogoutUser for usage and error information. +// API operation GetVoiceConnector for usage and error information. // // Returned Error Types: // * UnauthorizedClientException @@ -10332,8 +9732,7 @@ func (c *Chime) LogoutUserRequest(input *LogoutUserInput) (req *request.Request, // One or more of the resources in the request does not exist in the system. // // * ForbiddenException -// The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported Region. +// The client is permanently forbidden from making the request. // // * BadRequestException // The input parameters don't match the service's restrictions. @@ -10347,190 +9746,179 @@ func (c *Chime) LogoutUserRequest(input *LogoutUserInput) (req *request.Request, // * ServiceFailureException // The service encountered an unexpected error. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/LogoutUser -func (c *Chime) LogoutUser(input *LogoutUserInput) (*LogoutUserOutput, error) { - req, out := c.LogoutUserRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetVoiceConnector +func (c *Chime) GetVoiceConnector(input *GetVoiceConnectorInput) (*GetVoiceConnectorOutput, error) { + req, out := c.GetVoiceConnectorRequest(input) return out, req.Send() } -// LogoutUserWithContext is the same as LogoutUser with the addition of +// GetVoiceConnectorWithContext is the same as GetVoiceConnector with the addition of // the ability to pass a context and additional request options. // -// See LogoutUser for details on how to use this API operation. +// See GetVoiceConnector 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 *Chime) LogoutUserWithContext(ctx aws.Context, input *LogoutUserInput, opts ...request.Option) (*LogoutUserOutput, error) { - req, out := c.LogoutUserRequest(input) +func (c *Chime) GetVoiceConnectorWithContext(ctx aws.Context, input *GetVoiceConnectorInput, opts ...request.Option) (*GetVoiceConnectorOutput, error) { + req, out := c.GetVoiceConnectorRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opPutEventsConfiguration = "PutEventsConfiguration" +const opGetVoiceConnectorEmergencyCallingConfiguration = "GetVoiceConnectorEmergencyCallingConfiguration" -// PutEventsConfigurationRequest generates a "aws/request.Request" representing the -// client's request for the PutEventsConfiguration operation. The "output" return +// GetVoiceConnectorEmergencyCallingConfigurationRequest generates a "aws/request.Request" representing the +// client's request for the GetVoiceConnectorEmergencyCallingConfiguration 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 PutEventsConfiguration for more information on using the PutEventsConfiguration +// See GetVoiceConnectorEmergencyCallingConfiguration for more information on using the GetVoiceConnectorEmergencyCallingConfiguration // 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 PutEventsConfigurationRequest method. -// req, resp := client.PutEventsConfigurationRequest(params) +// // Example sending a request using the GetVoiceConnectorEmergencyCallingConfigurationRequest method. +// req, resp := client.GetVoiceConnectorEmergencyCallingConfigurationRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/PutEventsConfiguration -func (c *Chime) PutEventsConfigurationRequest(input *PutEventsConfigurationInput) (req *request.Request, output *PutEventsConfigurationOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetVoiceConnectorEmergencyCallingConfiguration +func (c *Chime) GetVoiceConnectorEmergencyCallingConfigurationRequest(input *GetVoiceConnectorEmergencyCallingConfigurationInput) (req *request.Request, output *GetVoiceConnectorEmergencyCallingConfigurationOutput) { op := &request.Operation{ - Name: opPutEventsConfiguration, - HTTPMethod: "PUT", - HTTPPath: "/accounts/{accountId}/bots/{botId}/events-configuration", + Name: opGetVoiceConnectorEmergencyCallingConfiguration, + HTTPMethod: "GET", + HTTPPath: "/voice-connectors/{voiceConnectorId}/emergency-calling-configuration", } if input == nil { - input = &PutEventsConfigurationInput{} + input = &GetVoiceConnectorEmergencyCallingConfigurationInput{} } - output = &PutEventsConfigurationOutput{} + output = &GetVoiceConnectorEmergencyCallingConfigurationOutput{} req = c.newRequest(op, input, output) return } -// PutEventsConfiguration API operation for Amazon Chime. +// GetVoiceConnectorEmergencyCallingConfiguration API operation for Amazon Chime. // -// Creates an events configuration that allows a bot to receive outgoing events -// sent by Amazon Chime. Choose either an HTTPS endpoint or a Lambda function -// ARN. For more information, see Bot. +// Gets the emergency calling configuration details for the specified Amazon +// Chime Voice Connector. // // 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 Chime's -// API operation PutEventsConfiguration for usage and error information. +// API operation GetVoiceConnectorEmergencyCallingConfiguration for usage and error information. // // Returned Error Types: -// * ServiceUnavailableException -// The service is currently unavailable. +// * UnauthorizedClientException +// The client is not currently authorized to make the request. // -// * ServiceFailureException -// The service encountered an unexpected error. +// * NotFoundException +// One or more of the resources in the request does not exist in the system. // // * ForbiddenException -// The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported Region. +// The client is permanently forbidden from making the request. // // * BadRequestException // The input parameters don't match the service's restrictions. // -// * UnauthorizedClientException -// The client is not currently authorized to make the request. +// * ThrottledClientException +// The client exceeded its request rate limit. // -// * ResourceLimitExceededException -// The request exceeds the resource limit. +// * ServiceUnavailableException +// The service is currently unavailable. // -// * NotFoundException -// One or more of the resources in the request does not exist in the system. +// * ServiceFailureException +// The service encountered an unexpected error. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/PutEventsConfiguration -func (c *Chime) PutEventsConfiguration(input *PutEventsConfigurationInput) (*PutEventsConfigurationOutput, error) { - req, out := c.PutEventsConfigurationRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetVoiceConnectorEmergencyCallingConfiguration +func (c *Chime) GetVoiceConnectorEmergencyCallingConfiguration(input *GetVoiceConnectorEmergencyCallingConfigurationInput) (*GetVoiceConnectorEmergencyCallingConfigurationOutput, error) { + req, out := c.GetVoiceConnectorEmergencyCallingConfigurationRequest(input) return out, req.Send() } -// PutEventsConfigurationWithContext is the same as PutEventsConfiguration with the addition of +// GetVoiceConnectorEmergencyCallingConfigurationWithContext is the same as GetVoiceConnectorEmergencyCallingConfiguration with the addition of // the ability to pass a context and additional request options. // -// See PutEventsConfiguration for details on how to use this API operation. +// See GetVoiceConnectorEmergencyCallingConfiguration 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 *Chime) PutEventsConfigurationWithContext(ctx aws.Context, input *PutEventsConfigurationInput, opts ...request.Option) (*PutEventsConfigurationOutput, error) { - req, out := c.PutEventsConfigurationRequest(input) +func (c *Chime) GetVoiceConnectorEmergencyCallingConfigurationWithContext(ctx aws.Context, input *GetVoiceConnectorEmergencyCallingConfigurationInput, opts ...request.Option) (*GetVoiceConnectorEmergencyCallingConfigurationOutput, error) { + req, out := c.GetVoiceConnectorEmergencyCallingConfigurationRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opPutRetentionSettings = "PutRetentionSettings" +const opGetVoiceConnectorGroup = "GetVoiceConnectorGroup" -// PutRetentionSettingsRequest generates a "aws/request.Request" representing the -// client's request for the PutRetentionSettings operation. The "output" return +// GetVoiceConnectorGroupRequest generates a "aws/request.Request" representing the +// client's request for the GetVoiceConnectorGroup 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 PutRetentionSettings for more information on using the PutRetentionSettings +// See GetVoiceConnectorGroup for more information on using the GetVoiceConnectorGroup // 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 PutRetentionSettingsRequest method. -// req, resp := client.PutRetentionSettingsRequest(params) +// // Example sending a request using the GetVoiceConnectorGroupRequest method. +// req, resp := client.GetVoiceConnectorGroupRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/PutRetentionSettings -func (c *Chime) PutRetentionSettingsRequest(input *PutRetentionSettingsInput) (req *request.Request, output *PutRetentionSettingsOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetVoiceConnectorGroup +func (c *Chime) GetVoiceConnectorGroupRequest(input *GetVoiceConnectorGroupInput) (req *request.Request, output *GetVoiceConnectorGroupOutput) { op := &request.Operation{ - Name: opPutRetentionSettings, - HTTPMethod: "PUT", - HTTPPath: "/accounts/{accountId}/retention-settings", + Name: opGetVoiceConnectorGroup, + HTTPMethod: "GET", + HTTPPath: "/voice-connector-groups/{voiceConnectorGroupId}", } if input == nil { - input = &PutRetentionSettingsInput{} + input = &GetVoiceConnectorGroupInput{} } - output = &PutRetentionSettingsOutput{} + output = &GetVoiceConnectorGroupOutput{} req = c.newRequest(op, input, output) return } -// PutRetentionSettings API operation for Amazon Chime. -// -// Puts retention settings for the specified Amazon Chime Enterprise account. -// We recommend using AWS CloudTrail to monitor usage of this API for your account. -// For more information, see Logging Amazon Chime API Calls with AWS CloudTrail -// (https://docs.aws.amazon.com/chime/latest/ag/cloudtrail.html) in the Amazon -// Chime Administration Guide. +// GetVoiceConnectorGroup API operation for Amazon Chime. // -// To turn off existing retention settings, remove the number of days from the -// corresponding RetentionDays field in the RetentionSettings object. For more -// information about retention settings, see Managing Chat Retention Policies -// (https://docs.aws.amazon.com/chime/latest/ag/chat-retention.html) in the -// Amazon Chime Administration Guide. +// Retrieves details for the specified Amazon Chime Voice Connector group, such +// as timestamps, name, and associated VoiceConnectorItems. // // 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 Chime's -// API operation PutRetentionSettings for usage and error information. +// API operation GetVoiceConnectorGroup for usage and error information. // // Returned Error Types: // * UnauthorizedClientException @@ -10539,16 +9927,11 @@ func (c *Chime) PutRetentionSettingsRequest(input *PutRetentionSettingsInput) (r // * NotFoundException // One or more of the resources in the request does not exist in the system. // -// * BadRequestException -// The input parameters don't match the service's restrictions. -// // * ForbiddenException -// The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported Region. +// The client is permanently forbidden from making the request. // -// * ConflictException -// The request could not be processed because of conflict in the current state -// of the resource. +// * BadRequestException +// The input parameters don't match the service's restrictions. // // * ThrottledClientException // The client exceeded its request rate limit. @@ -10559,80 +9942,82 @@ func (c *Chime) PutRetentionSettingsRequest(input *PutRetentionSettingsInput) (r // * ServiceFailureException // The service encountered an unexpected error. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/PutRetentionSettings -func (c *Chime) PutRetentionSettings(input *PutRetentionSettingsInput) (*PutRetentionSettingsOutput, error) { - req, out := c.PutRetentionSettingsRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetVoiceConnectorGroup +func (c *Chime) GetVoiceConnectorGroup(input *GetVoiceConnectorGroupInput) (*GetVoiceConnectorGroupOutput, error) { + req, out := c.GetVoiceConnectorGroupRequest(input) return out, req.Send() } -// PutRetentionSettingsWithContext is the same as PutRetentionSettings with the addition of +// GetVoiceConnectorGroupWithContext is the same as GetVoiceConnectorGroup with the addition of // the ability to pass a context and additional request options. // -// See PutRetentionSettings for details on how to use this API operation. +// See GetVoiceConnectorGroup 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 *Chime) PutRetentionSettingsWithContext(ctx aws.Context, input *PutRetentionSettingsInput, opts ...request.Option) (*PutRetentionSettingsOutput, error) { - req, out := c.PutRetentionSettingsRequest(input) +func (c *Chime) GetVoiceConnectorGroupWithContext(ctx aws.Context, input *GetVoiceConnectorGroupInput, opts ...request.Option) (*GetVoiceConnectorGroupOutput, error) { + req, out := c.GetVoiceConnectorGroupRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opPutSipMediaApplicationLoggingConfiguration = "PutSipMediaApplicationLoggingConfiguration" +const opGetVoiceConnectorLoggingConfiguration = "GetVoiceConnectorLoggingConfiguration" -// PutSipMediaApplicationLoggingConfigurationRequest generates a "aws/request.Request" representing the -// client's request for the PutSipMediaApplicationLoggingConfiguration operation. The "output" return +// GetVoiceConnectorLoggingConfigurationRequest generates a "aws/request.Request" representing the +// client's request for the GetVoiceConnectorLoggingConfiguration 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 PutSipMediaApplicationLoggingConfiguration for more information on using the PutSipMediaApplicationLoggingConfiguration +// See GetVoiceConnectorLoggingConfiguration for more information on using the GetVoiceConnectorLoggingConfiguration // 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 PutSipMediaApplicationLoggingConfigurationRequest method. -// req, resp := client.PutSipMediaApplicationLoggingConfigurationRequest(params) +// // Example sending a request using the GetVoiceConnectorLoggingConfigurationRequest method. +// req, resp := client.GetVoiceConnectorLoggingConfigurationRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/PutSipMediaApplicationLoggingConfiguration -func (c *Chime) PutSipMediaApplicationLoggingConfigurationRequest(input *PutSipMediaApplicationLoggingConfigurationInput) (req *request.Request, output *PutSipMediaApplicationLoggingConfigurationOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetVoiceConnectorLoggingConfiguration +func (c *Chime) GetVoiceConnectorLoggingConfigurationRequest(input *GetVoiceConnectorLoggingConfigurationInput) (req *request.Request, output *GetVoiceConnectorLoggingConfigurationOutput) { op := &request.Operation{ - Name: opPutSipMediaApplicationLoggingConfiguration, - HTTPMethod: "PUT", - HTTPPath: "/sip-media-applications/{sipMediaApplicationId}/logging-configuration", + Name: opGetVoiceConnectorLoggingConfiguration, + HTTPMethod: "GET", + HTTPPath: "/voice-connectors/{voiceConnectorId}/logging-configuration", } if input == nil { - input = &PutSipMediaApplicationLoggingConfigurationInput{} + input = &GetVoiceConnectorLoggingConfigurationInput{} } - output = &PutSipMediaApplicationLoggingConfigurationOutput{} + output = &GetVoiceConnectorLoggingConfigurationOutput{} req = c.newRequest(op, input, output) return } -// PutSipMediaApplicationLoggingConfiguration API operation for Amazon Chime. +// GetVoiceConnectorLoggingConfiguration API operation for Amazon Chime. // -// Updates the logging configuration for the specified SIP media application. +// Retrieves the logging configuration details for the specified Amazon Chime +// Voice Connector. Shows whether SIP message logs are enabled for sending to +// Amazon CloudWatch. // // 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 Chime's -// API operation PutSipMediaApplicationLoggingConfiguration for usage and error information. +// API operation GetVoiceConnectorLoggingConfiguration for usage and error information. // // Returned Error Types: // * UnauthorizedClientException @@ -10642,8 +10027,7 @@ func (c *Chime) PutSipMediaApplicationLoggingConfigurationRequest(input *PutSipM // One or more of the resources in the request does not exist in the system. // // * ForbiddenException -// The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported Region. +// The client is permanently forbidden from making the request. // // * BadRequestException // The input parameters don't match the service's restrictions. @@ -10657,83 +10041,81 @@ func (c *Chime) PutSipMediaApplicationLoggingConfigurationRequest(input *PutSipM // * ServiceFailureException // The service encountered an unexpected error. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/PutSipMediaApplicationLoggingConfiguration -func (c *Chime) PutSipMediaApplicationLoggingConfiguration(input *PutSipMediaApplicationLoggingConfigurationInput) (*PutSipMediaApplicationLoggingConfigurationOutput, error) { - req, out := c.PutSipMediaApplicationLoggingConfigurationRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetVoiceConnectorLoggingConfiguration +func (c *Chime) GetVoiceConnectorLoggingConfiguration(input *GetVoiceConnectorLoggingConfigurationInput) (*GetVoiceConnectorLoggingConfigurationOutput, error) { + req, out := c.GetVoiceConnectorLoggingConfigurationRequest(input) return out, req.Send() } -// PutSipMediaApplicationLoggingConfigurationWithContext is the same as PutSipMediaApplicationLoggingConfiguration with the addition of +// GetVoiceConnectorLoggingConfigurationWithContext is the same as GetVoiceConnectorLoggingConfiguration with the addition of // the ability to pass a context and additional request options. // -// See PutSipMediaApplicationLoggingConfiguration for details on how to use this API operation. +// See GetVoiceConnectorLoggingConfiguration 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 *Chime) PutSipMediaApplicationLoggingConfigurationWithContext(ctx aws.Context, input *PutSipMediaApplicationLoggingConfigurationInput, opts ...request.Option) (*PutSipMediaApplicationLoggingConfigurationOutput, error) { - req, out := c.PutSipMediaApplicationLoggingConfigurationRequest(input) +func (c *Chime) GetVoiceConnectorLoggingConfigurationWithContext(ctx aws.Context, input *GetVoiceConnectorLoggingConfigurationInput, opts ...request.Option) (*GetVoiceConnectorLoggingConfigurationOutput, error) { + req, out := c.GetVoiceConnectorLoggingConfigurationRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opPutVoiceConnectorEmergencyCallingConfiguration = "PutVoiceConnectorEmergencyCallingConfiguration" +const opGetVoiceConnectorOrigination = "GetVoiceConnectorOrigination" -// PutVoiceConnectorEmergencyCallingConfigurationRequest generates a "aws/request.Request" representing the -// client's request for the PutVoiceConnectorEmergencyCallingConfiguration operation. The "output" return +// GetVoiceConnectorOriginationRequest generates a "aws/request.Request" representing the +// client's request for the GetVoiceConnectorOrigination 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 PutVoiceConnectorEmergencyCallingConfiguration for more information on using the PutVoiceConnectorEmergencyCallingConfiguration +// See GetVoiceConnectorOrigination for more information on using the GetVoiceConnectorOrigination // 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 PutVoiceConnectorEmergencyCallingConfigurationRequest method. -// req, resp := client.PutVoiceConnectorEmergencyCallingConfigurationRequest(params) +// // Example sending a request using the GetVoiceConnectorOriginationRequest method. +// req, resp := client.GetVoiceConnectorOriginationRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/PutVoiceConnectorEmergencyCallingConfiguration -func (c *Chime) PutVoiceConnectorEmergencyCallingConfigurationRequest(input *PutVoiceConnectorEmergencyCallingConfigurationInput) (req *request.Request, output *PutVoiceConnectorEmergencyCallingConfigurationOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetVoiceConnectorOrigination +func (c *Chime) GetVoiceConnectorOriginationRequest(input *GetVoiceConnectorOriginationInput) (req *request.Request, output *GetVoiceConnectorOriginationOutput) { op := &request.Operation{ - Name: opPutVoiceConnectorEmergencyCallingConfiguration, - HTTPMethod: "PUT", - HTTPPath: "/voice-connectors/{voiceConnectorId}/emergency-calling-configuration", + Name: opGetVoiceConnectorOrigination, + HTTPMethod: "GET", + HTTPPath: "/voice-connectors/{voiceConnectorId}/origination", } if input == nil { - input = &PutVoiceConnectorEmergencyCallingConfigurationInput{} + input = &GetVoiceConnectorOriginationInput{} } - output = &PutVoiceConnectorEmergencyCallingConfigurationOutput{} + output = &GetVoiceConnectorOriginationOutput{} req = c.newRequest(op, input, output) return } -// PutVoiceConnectorEmergencyCallingConfiguration API operation for Amazon Chime. +// GetVoiceConnectorOrigination API operation for Amazon Chime. // -// Puts emergency calling configuration details to the specified Amazon Chime -// Voice Connector, such as emergency phone numbers and calling countries. Origination -// and termination settings must be enabled for the Amazon Chime Voice Connector -// before emergency calling can be configured. +// Retrieves origination setting details for the specified Amazon Chime Voice +// Connector. // // 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 Chime's -// API operation PutVoiceConnectorEmergencyCallingConfiguration for usage and error information. +// API operation GetVoiceConnectorOrigination for usage and error information. // // Returned Error Types: // * UnauthorizedClientException @@ -10743,8 +10125,7 @@ func (c *Chime) PutVoiceConnectorEmergencyCallingConfigurationRequest(input *Put // One or more of the resources in the request does not exist in the system. // // * ForbiddenException -// The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported Region. +// The client is permanently forbidden from making the request. // // * BadRequestException // The input parameters don't match the service's restrictions. @@ -10758,82 +10139,81 @@ func (c *Chime) PutVoiceConnectorEmergencyCallingConfigurationRequest(input *Put // * ServiceFailureException // The service encountered an unexpected error. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/PutVoiceConnectorEmergencyCallingConfiguration -func (c *Chime) PutVoiceConnectorEmergencyCallingConfiguration(input *PutVoiceConnectorEmergencyCallingConfigurationInput) (*PutVoiceConnectorEmergencyCallingConfigurationOutput, error) { - req, out := c.PutVoiceConnectorEmergencyCallingConfigurationRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetVoiceConnectorOrigination +func (c *Chime) GetVoiceConnectorOrigination(input *GetVoiceConnectorOriginationInput) (*GetVoiceConnectorOriginationOutput, error) { + req, out := c.GetVoiceConnectorOriginationRequest(input) return out, req.Send() } -// PutVoiceConnectorEmergencyCallingConfigurationWithContext is the same as PutVoiceConnectorEmergencyCallingConfiguration with the addition of +// GetVoiceConnectorOriginationWithContext is the same as GetVoiceConnectorOrigination with the addition of // the ability to pass a context and additional request options. // -// See PutVoiceConnectorEmergencyCallingConfiguration for details on how to use this API operation. +// See GetVoiceConnectorOrigination 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 *Chime) PutVoiceConnectorEmergencyCallingConfigurationWithContext(ctx aws.Context, input *PutVoiceConnectorEmergencyCallingConfigurationInput, opts ...request.Option) (*PutVoiceConnectorEmergencyCallingConfigurationOutput, error) { - req, out := c.PutVoiceConnectorEmergencyCallingConfigurationRequest(input) +func (c *Chime) GetVoiceConnectorOriginationWithContext(ctx aws.Context, input *GetVoiceConnectorOriginationInput, opts ...request.Option) (*GetVoiceConnectorOriginationOutput, error) { + req, out := c.GetVoiceConnectorOriginationRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opPutVoiceConnectorLoggingConfiguration = "PutVoiceConnectorLoggingConfiguration" +const opGetVoiceConnectorProxy = "GetVoiceConnectorProxy" -// PutVoiceConnectorLoggingConfigurationRequest generates a "aws/request.Request" representing the -// client's request for the PutVoiceConnectorLoggingConfiguration operation. The "output" return +// GetVoiceConnectorProxyRequest generates a "aws/request.Request" representing the +// client's request for the GetVoiceConnectorProxy 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 PutVoiceConnectorLoggingConfiguration for more information on using the PutVoiceConnectorLoggingConfiguration +// See GetVoiceConnectorProxy for more information on using the GetVoiceConnectorProxy // 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 PutVoiceConnectorLoggingConfigurationRequest method. -// req, resp := client.PutVoiceConnectorLoggingConfigurationRequest(params) +// // Example sending a request using the GetVoiceConnectorProxyRequest method. +// req, resp := client.GetVoiceConnectorProxyRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/PutVoiceConnectorLoggingConfiguration -func (c *Chime) PutVoiceConnectorLoggingConfigurationRequest(input *PutVoiceConnectorLoggingConfigurationInput) (req *request.Request, output *PutVoiceConnectorLoggingConfigurationOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetVoiceConnectorProxy +func (c *Chime) GetVoiceConnectorProxyRequest(input *GetVoiceConnectorProxyInput) (req *request.Request, output *GetVoiceConnectorProxyOutput) { op := &request.Operation{ - Name: opPutVoiceConnectorLoggingConfiguration, - HTTPMethod: "PUT", - HTTPPath: "/voice-connectors/{voiceConnectorId}/logging-configuration", + Name: opGetVoiceConnectorProxy, + HTTPMethod: "GET", + HTTPPath: "/voice-connectors/{voiceConnectorId}/programmable-numbers/proxy", } if input == nil { - input = &PutVoiceConnectorLoggingConfigurationInput{} + input = &GetVoiceConnectorProxyInput{} } - output = &PutVoiceConnectorLoggingConfigurationOutput{} + output = &GetVoiceConnectorProxyOutput{} req = c.newRequest(op, input, output) return } -// PutVoiceConnectorLoggingConfiguration API operation for Amazon Chime. +// GetVoiceConnectorProxy API operation for Amazon Chime. // -// Adds a logging configuration for the specified Amazon Chime Voice Connector. -// The logging configuration specifies whether SIP message logs are enabled -// for sending to Amazon CloudWatch Logs. +// Gets the proxy configuration details for the specified Amazon Chime Voice +// Connector. // // 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 Chime's -// API operation PutVoiceConnectorLoggingConfiguration for usage and error information. +// API operation GetVoiceConnectorProxy for usage and error information. // // Returned Error Types: // * UnauthorizedClientException @@ -10843,8 +10223,7 @@ func (c *Chime) PutVoiceConnectorLoggingConfigurationRequest(input *PutVoiceConn // One or more of the resources in the request does not exist in the system. // // * ForbiddenException -// The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported Region. +// The client is permanently forbidden from making the request. // // * BadRequestException // The input parameters don't match the service's restrictions. @@ -10858,83 +10237,83 @@ func (c *Chime) PutVoiceConnectorLoggingConfigurationRequest(input *PutVoiceConn // * ServiceFailureException // The service encountered an unexpected error. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/PutVoiceConnectorLoggingConfiguration -func (c *Chime) PutVoiceConnectorLoggingConfiguration(input *PutVoiceConnectorLoggingConfigurationInput) (*PutVoiceConnectorLoggingConfigurationOutput, error) { - req, out := c.PutVoiceConnectorLoggingConfigurationRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetVoiceConnectorProxy +func (c *Chime) GetVoiceConnectorProxy(input *GetVoiceConnectorProxyInput) (*GetVoiceConnectorProxyOutput, error) { + req, out := c.GetVoiceConnectorProxyRequest(input) return out, req.Send() } -// PutVoiceConnectorLoggingConfigurationWithContext is the same as PutVoiceConnectorLoggingConfiguration with the addition of +// GetVoiceConnectorProxyWithContext is the same as GetVoiceConnectorProxy with the addition of // the ability to pass a context and additional request options. // -// See PutVoiceConnectorLoggingConfiguration for details on how to use this API operation. +// See GetVoiceConnectorProxy 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 *Chime) PutVoiceConnectorLoggingConfigurationWithContext(ctx aws.Context, input *PutVoiceConnectorLoggingConfigurationInput, opts ...request.Option) (*PutVoiceConnectorLoggingConfigurationOutput, error) { - req, out := c.PutVoiceConnectorLoggingConfigurationRequest(input) +func (c *Chime) GetVoiceConnectorProxyWithContext(ctx aws.Context, input *GetVoiceConnectorProxyInput, opts ...request.Option) (*GetVoiceConnectorProxyOutput, error) { + req, out := c.GetVoiceConnectorProxyRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opPutVoiceConnectorOrigination = "PutVoiceConnectorOrigination" +const opGetVoiceConnectorStreamingConfiguration = "GetVoiceConnectorStreamingConfiguration" -// PutVoiceConnectorOriginationRequest generates a "aws/request.Request" representing the -// client's request for the PutVoiceConnectorOrigination operation. The "output" return +// GetVoiceConnectorStreamingConfigurationRequest generates a "aws/request.Request" representing the +// client's request for the GetVoiceConnectorStreamingConfiguration 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 PutVoiceConnectorOrigination for more information on using the PutVoiceConnectorOrigination +// See GetVoiceConnectorStreamingConfiguration for more information on using the GetVoiceConnectorStreamingConfiguration // 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 PutVoiceConnectorOriginationRequest method. -// req, resp := client.PutVoiceConnectorOriginationRequest(params) +// // Example sending a request using the GetVoiceConnectorStreamingConfigurationRequest method. +// req, resp := client.GetVoiceConnectorStreamingConfigurationRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/PutVoiceConnectorOrigination -func (c *Chime) PutVoiceConnectorOriginationRequest(input *PutVoiceConnectorOriginationInput) (req *request.Request, output *PutVoiceConnectorOriginationOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetVoiceConnectorStreamingConfiguration +func (c *Chime) GetVoiceConnectorStreamingConfigurationRequest(input *GetVoiceConnectorStreamingConfigurationInput) (req *request.Request, output *GetVoiceConnectorStreamingConfigurationOutput) { op := &request.Operation{ - Name: opPutVoiceConnectorOrigination, - HTTPMethod: "PUT", - HTTPPath: "/voice-connectors/{voiceConnectorId}/origination", + Name: opGetVoiceConnectorStreamingConfiguration, + HTTPMethod: "GET", + HTTPPath: "/voice-connectors/{voiceConnectorId}/streaming-configuration", } if input == nil { - input = &PutVoiceConnectorOriginationInput{} + input = &GetVoiceConnectorStreamingConfigurationInput{} } - output = &PutVoiceConnectorOriginationOutput{} + output = &GetVoiceConnectorStreamingConfigurationOutput{} req = c.newRequest(op, input, output) return } -// PutVoiceConnectorOrigination API operation for Amazon Chime. -// -// Adds origination settings for the specified Amazon Chime Voice Connector. +// GetVoiceConnectorStreamingConfiguration API operation for Amazon Chime. // -// If emergency calling is configured for the Amazon Chime Voice Connector, -// it must be deleted prior to turning off origination settings. +// Retrieves the streaming configuration details for the specified Amazon Chime +// Voice Connector. Shows whether media streaming is enabled for sending to +// Amazon Kinesis. It also shows the retention period, in hours, for the Amazon +// Kinesis data. // // 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 Chime's -// API operation PutVoiceConnectorOrigination for usage and error information. +// API operation GetVoiceConnectorStreamingConfiguration for usage and error information. // // Returned Error Types: // * UnauthorizedClientException @@ -10944,8 +10323,7 @@ func (c *Chime) PutVoiceConnectorOriginationRequest(input *PutVoiceConnectorOrig // One or more of the resources in the request does not exist in the system. // // * ForbiddenException -// The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported Region. +// The client is permanently forbidden from making the request. // // * BadRequestException // The input parameters don't match the service's restrictions. @@ -10959,73 +10337,73 @@ func (c *Chime) PutVoiceConnectorOriginationRequest(input *PutVoiceConnectorOrig // * ServiceFailureException // The service encountered an unexpected error. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/PutVoiceConnectorOrigination -func (c *Chime) PutVoiceConnectorOrigination(input *PutVoiceConnectorOriginationInput) (*PutVoiceConnectorOriginationOutput, error) { - req, out := c.PutVoiceConnectorOriginationRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetVoiceConnectorStreamingConfiguration +func (c *Chime) GetVoiceConnectorStreamingConfiguration(input *GetVoiceConnectorStreamingConfigurationInput) (*GetVoiceConnectorStreamingConfigurationOutput, error) { + req, out := c.GetVoiceConnectorStreamingConfigurationRequest(input) return out, req.Send() } -// PutVoiceConnectorOriginationWithContext is the same as PutVoiceConnectorOrigination with the addition of +// GetVoiceConnectorStreamingConfigurationWithContext is the same as GetVoiceConnectorStreamingConfiguration with the addition of // the ability to pass a context and additional request options. // -// See PutVoiceConnectorOrigination for details on how to use this API operation. +// See GetVoiceConnectorStreamingConfiguration 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 *Chime) PutVoiceConnectorOriginationWithContext(ctx aws.Context, input *PutVoiceConnectorOriginationInput, opts ...request.Option) (*PutVoiceConnectorOriginationOutput, error) { - req, out := c.PutVoiceConnectorOriginationRequest(input) +func (c *Chime) GetVoiceConnectorStreamingConfigurationWithContext(ctx aws.Context, input *GetVoiceConnectorStreamingConfigurationInput, opts ...request.Option) (*GetVoiceConnectorStreamingConfigurationOutput, error) { + req, out := c.GetVoiceConnectorStreamingConfigurationRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opPutVoiceConnectorProxy = "PutVoiceConnectorProxy" +const opGetVoiceConnectorTermination = "GetVoiceConnectorTermination" -// PutVoiceConnectorProxyRequest generates a "aws/request.Request" representing the -// client's request for the PutVoiceConnectorProxy operation. The "output" return +// GetVoiceConnectorTerminationRequest generates a "aws/request.Request" representing the +// client's request for the GetVoiceConnectorTermination 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 PutVoiceConnectorProxy for more information on using the PutVoiceConnectorProxy +// See GetVoiceConnectorTermination for more information on using the GetVoiceConnectorTermination // 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 PutVoiceConnectorProxyRequest method. -// req, resp := client.PutVoiceConnectorProxyRequest(params) +// // Example sending a request using the GetVoiceConnectorTerminationRequest method. +// req, resp := client.GetVoiceConnectorTerminationRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/PutVoiceConnectorProxy -func (c *Chime) PutVoiceConnectorProxyRequest(input *PutVoiceConnectorProxyInput) (req *request.Request, output *PutVoiceConnectorProxyOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetVoiceConnectorTermination +func (c *Chime) GetVoiceConnectorTerminationRequest(input *GetVoiceConnectorTerminationInput) (req *request.Request, output *GetVoiceConnectorTerminationOutput) { op := &request.Operation{ - Name: opPutVoiceConnectorProxy, - HTTPMethod: "PUT", - HTTPPath: "/voice-connectors/{voiceConnectorId}/programmable-numbers/proxy", + Name: opGetVoiceConnectorTermination, + HTTPMethod: "GET", + HTTPPath: "/voice-connectors/{voiceConnectorId}/termination", } if input == nil { - input = &PutVoiceConnectorProxyInput{} + input = &GetVoiceConnectorTerminationInput{} } - output = &PutVoiceConnectorProxyOutput{} + output = &GetVoiceConnectorTerminationOutput{} req = c.newRequest(op, input, output) return } -// PutVoiceConnectorProxy API operation for Amazon Chime. +// GetVoiceConnectorTermination API operation for Amazon Chime. // -// Puts the specified proxy configuration to the specified Amazon Chime Voice +// Retrieves termination setting details for the specified Amazon Chime Voice // Connector. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -11033,21 +10411,17 @@ func (c *Chime) PutVoiceConnectorProxyRequest(input *PutVoiceConnectorProxyInput // the error. // // See the AWS API reference guide for Amazon Chime's -// API operation PutVoiceConnectorProxy for usage and error information. +// API operation GetVoiceConnectorTermination for usage and error information. // // Returned Error Types: // * UnauthorizedClientException // The client is not currently authorized to make the request. // -// * AccessDeniedException -// You don't have permissions to perform the requested operation. -// // * NotFoundException // One or more of the resources in the request does not exist in the system. // // * ForbiddenException -// The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported Region. +// The client is permanently forbidden from making the request. // // * BadRequestException // The input parameters don't match the service's restrictions. @@ -11061,83 +10435,81 @@ func (c *Chime) PutVoiceConnectorProxyRequest(input *PutVoiceConnectorProxyInput // * ServiceFailureException // The service encountered an unexpected error. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/PutVoiceConnectorProxy -func (c *Chime) PutVoiceConnectorProxy(input *PutVoiceConnectorProxyInput) (*PutVoiceConnectorProxyOutput, error) { - req, out := c.PutVoiceConnectorProxyRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetVoiceConnectorTermination +func (c *Chime) GetVoiceConnectorTermination(input *GetVoiceConnectorTerminationInput) (*GetVoiceConnectorTerminationOutput, error) { + req, out := c.GetVoiceConnectorTerminationRequest(input) return out, req.Send() } -// PutVoiceConnectorProxyWithContext is the same as PutVoiceConnectorProxy with the addition of +// GetVoiceConnectorTerminationWithContext is the same as GetVoiceConnectorTermination with the addition of // the ability to pass a context and additional request options. // -// See PutVoiceConnectorProxy for details on how to use this API operation. +// See GetVoiceConnectorTermination 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 *Chime) PutVoiceConnectorProxyWithContext(ctx aws.Context, input *PutVoiceConnectorProxyInput, opts ...request.Option) (*PutVoiceConnectorProxyOutput, error) { - req, out := c.PutVoiceConnectorProxyRequest(input) +func (c *Chime) GetVoiceConnectorTerminationWithContext(ctx aws.Context, input *GetVoiceConnectorTerminationInput, opts ...request.Option) (*GetVoiceConnectorTerminationOutput, error) { + req, out := c.GetVoiceConnectorTerminationRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opPutVoiceConnectorStreamingConfiguration = "PutVoiceConnectorStreamingConfiguration" +const opGetVoiceConnectorTerminationHealth = "GetVoiceConnectorTerminationHealth" -// PutVoiceConnectorStreamingConfigurationRequest generates a "aws/request.Request" representing the -// client's request for the PutVoiceConnectorStreamingConfiguration operation. The "output" return +// GetVoiceConnectorTerminationHealthRequest generates a "aws/request.Request" representing the +// client's request for the GetVoiceConnectorTerminationHealth 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 PutVoiceConnectorStreamingConfiguration for more information on using the PutVoiceConnectorStreamingConfiguration +// See GetVoiceConnectorTerminationHealth for more information on using the GetVoiceConnectorTerminationHealth // 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 PutVoiceConnectorStreamingConfigurationRequest method. -// req, resp := client.PutVoiceConnectorStreamingConfigurationRequest(params) +// // Example sending a request using the GetVoiceConnectorTerminationHealthRequest method. +// req, resp := client.GetVoiceConnectorTerminationHealthRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/PutVoiceConnectorStreamingConfiguration -func (c *Chime) PutVoiceConnectorStreamingConfigurationRequest(input *PutVoiceConnectorStreamingConfigurationInput) (req *request.Request, output *PutVoiceConnectorStreamingConfigurationOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetVoiceConnectorTerminationHealth +func (c *Chime) GetVoiceConnectorTerminationHealthRequest(input *GetVoiceConnectorTerminationHealthInput) (req *request.Request, output *GetVoiceConnectorTerminationHealthOutput) { op := &request.Operation{ - Name: opPutVoiceConnectorStreamingConfiguration, - HTTPMethod: "PUT", - HTTPPath: "/voice-connectors/{voiceConnectorId}/streaming-configuration", + Name: opGetVoiceConnectorTerminationHealth, + HTTPMethod: "GET", + HTTPPath: "/voice-connectors/{voiceConnectorId}/termination/health", } if input == nil { - input = &PutVoiceConnectorStreamingConfigurationInput{} + input = &GetVoiceConnectorTerminationHealthInput{} } - output = &PutVoiceConnectorStreamingConfigurationOutput{} + output = &GetVoiceConnectorTerminationHealthOutput{} req = c.newRequest(op, input, output) return } -// PutVoiceConnectorStreamingConfiguration API operation for Amazon Chime. +// GetVoiceConnectorTerminationHealth API operation for Amazon Chime. // -// Adds a streaming configuration for the specified Amazon Chime Voice Connector. -// The streaming configuration specifies whether media streaming is enabled -// for sending to Amazon Kinesis. It also sets the retention period, in hours, -// for the Amazon Kinesis data. +// Retrieves information about the last time a SIP OPTIONS ping was received +// from your SIP infrastructure for the specified Amazon Chime Voice Connector. // // 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 Chime's -// API operation PutVoiceConnectorStreamingConfiguration for usage and error information. +// API operation GetVoiceConnectorTerminationHealth for usage and error information. // // Returned Error Types: // * UnauthorizedClientException @@ -11147,8 +10519,7 @@ func (c *Chime) PutVoiceConnectorStreamingConfigurationRequest(input *PutVoiceCo // One or more of the resources in the request does not exist in the system. // // * ForbiddenException -// The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported Region. +// The client is permanently forbidden from making the request. // // * BadRequestException // The input parameters don't match the service's restrictions. @@ -11162,83 +10533,82 @@ func (c *Chime) PutVoiceConnectorStreamingConfigurationRequest(input *PutVoiceCo // * ServiceFailureException // The service encountered an unexpected error. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/PutVoiceConnectorStreamingConfiguration -func (c *Chime) PutVoiceConnectorStreamingConfiguration(input *PutVoiceConnectorStreamingConfigurationInput) (*PutVoiceConnectorStreamingConfigurationOutput, error) { - req, out := c.PutVoiceConnectorStreamingConfigurationRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetVoiceConnectorTerminationHealth +func (c *Chime) GetVoiceConnectorTerminationHealth(input *GetVoiceConnectorTerminationHealthInput) (*GetVoiceConnectorTerminationHealthOutput, error) { + req, out := c.GetVoiceConnectorTerminationHealthRequest(input) return out, req.Send() } -// PutVoiceConnectorStreamingConfigurationWithContext is the same as PutVoiceConnectorStreamingConfiguration with the addition of +// GetVoiceConnectorTerminationHealthWithContext is the same as GetVoiceConnectorTerminationHealth with the addition of // the ability to pass a context and additional request options. // -// See PutVoiceConnectorStreamingConfiguration for details on how to use this API operation. +// See GetVoiceConnectorTerminationHealth 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 *Chime) PutVoiceConnectorStreamingConfigurationWithContext(ctx aws.Context, input *PutVoiceConnectorStreamingConfigurationInput, opts ...request.Option) (*PutVoiceConnectorStreamingConfigurationOutput, error) { - req, out := c.PutVoiceConnectorStreamingConfigurationRequest(input) +func (c *Chime) GetVoiceConnectorTerminationHealthWithContext(ctx aws.Context, input *GetVoiceConnectorTerminationHealthInput, opts ...request.Option) (*GetVoiceConnectorTerminationHealthOutput, error) { + req, out := c.GetVoiceConnectorTerminationHealthRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opPutVoiceConnectorTermination = "PutVoiceConnectorTermination" +const opInviteUsers = "InviteUsers" -// PutVoiceConnectorTerminationRequest generates a "aws/request.Request" representing the -// client's request for the PutVoiceConnectorTermination operation. The "output" return +// InviteUsersRequest generates a "aws/request.Request" representing the +// client's request for the InviteUsers 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 PutVoiceConnectorTermination for more information on using the PutVoiceConnectorTermination +// See InviteUsers for more information on using the InviteUsers // 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 PutVoiceConnectorTerminationRequest method. -// req, resp := client.PutVoiceConnectorTerminationRequest(params) +// // Example sending a request using the InviteUsersRequest method. +// req, resp := client.InviteUsersRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/PutVoiceConnectorTermination -func (c *Chime) PutVoiceConnectorTerminationRequest(input *PutVoiceConnectorTerminationInput) (req *request.Request, output *PutVoiceConnectorTerminationOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/InviteUsers +func (c *Chime) InviteUsersRequest(input *InviteUsersInput) (req *request.Request, output *InviteUsersOutput) { op := &request.Operation{ - Name: opPutVoiceConnectorTermination, - HTTPMethod: "PUT", - HTTPPath: "/voice-connectors/{voiceConnectorId}/termination", + Name: opInviteUsers, + HTTPMethod: "POST", + HTTPPath: "/accounts/{accountId}/users?operation=add", } if input == nil { - input = &PutVoiceConnectorTerminationInput{} + input = &InviteUsersInput{} } - output = &PutVoiceConnectorTerminationOutput{} + output = &InviteUsersOutput{} req = c.newRequest(op, input, output) return } -// PutVoiceConnectorTermination API operation for Amazon Chime. -// -// Adds termination settings for the specified Amazon Chime Voice Connector. +// InviteUsers API operation for Amazon Chime. // -// If emergency calling is configured for the Amazon Chime Voice Connector, -// it must be deleted prior to turning off termination settings. +// Sends email to a maximum of 50 users, inviting them to the specified Amazon +// Chime Team account. Only Team account types are currently supported for this +// action. // // 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 Chime's -// API operation PutVoiceConnectorTermination for usage and error information. +// API operation InviteUsers for usage and error information. // // Returned Error Types: // * UnauthorizedClientException @@ -11248,15 +10618,11 @@ func (c *Chime) PutVoiceConnectorTerminationRequest(input *PutVoiceConnectorTerm // One or more of the resources in the request does not exist in the system. // // * ForbiddenException -// The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported Region. +// The client is permanently forbidden from making the request. // // * BadRequestException // The input parameters don't match the service's restrictions. // -// * AccessDeniedException -// You don't have permissions to perform the requested operation. -// // * ThrottledClientException // The client exceeded its request rate limit. // @@ -11266,81 +10632,89 @@ func (c *Chime) PutVoiceConnectorTerminationRequest(input *PutVoiceConnectorTerm // * ServiceFailureException // The service encountered an unexpected error. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/PutVoiceConnectorTermination -func (c *Chime) PutVoiceConnectorTermination(input *PutVoiceConnectorTerminationInput) (*PutVoiceConnectorTerminationOutput, error) { - req, out := c.PutVoiceConnectorTerminationRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/InviteUsers +func (c *Chime) InviteUsers(input *InviteUsersInput) (*InviteUsersOutput, error) { + req, out := c.InviteUsersRequest(input) return out, req.Send() } -// PutVoiceConnectorTerminationWithContext is the same as PutVoiceConnectorTermination with the addition of +// InviteUsersWithContext is the same as InviteUsers with the addition of // the ability to pass a context and additional request options. // -// See PutVoiceConnectorTermination for details on how to use this API operation. +// See InviteUsers 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 *Chime) PutVoiceConnectorTerminationWithContext(ctx aws.Context, input *PutVoiceConnectorTerminationInput, opts ...request.Option) (*PutVoiceConnectorTerminationOutput, error) { - req, out := c.PutVoiceConnectorTerminationRequest(input) +func (c *Chime) InviteUsersWithContext(ctx aws.Context, input *InviteUsersInput, opts ...request.Option) (*InviteUsersOutput, error) { + req, out := c.InviteUsersRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opPutVoiceConnectorTerminationCredentials = "PutVoiceConnectorTerminationCredentials" +const opListAccounts = "ListAccounts" -// PutVoiceConnectorTerminationCredentialsRequest generates a "aws/request.Request" representing the -// client's request for the PutVoiceConnectorTerminationCredentials operation. The "output" return +// ListAccountsRequest generates a "aws/request.Request" representing the +// client's request for the ListAccounts 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 PutVoiceConnectorTerminationCredentials for more information on using the PutVoiceConnectorTerminationCredentials +// See ListAccounts for more information on using the ListAccounts // 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 PutVoiceConnectorTerminationCredentialsRequest method. -// req, resp := client.PutVoiceConnectorTerminationCredentialsRequest(params) +// // Example sending a request using the ListAccountsRequest method. +// req, resp := client.ListAccountsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/PutVoiceConnectorTerminationCredentials -func (c *Chime) PutVoiceConnectorTerminationCredentialsRequest(input *PutVoiceConnectorTerminationCredentialsInput) (req *request.Request, output *PutVoiceConnectorTerminationCredentialsOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/ListAccounts +func (c *Chime) ListAccountsRequest(input *ListAccountsInput) (req *request.Request, output *ListAccountsOutput) { op := &request.Operation{ - Name: opPutVoiceConnectorTerminationCredentials, - HTTPMethod: "POST", - HTTPPath: "/voice-connectors/{voiceConnectorId}/termination/credentials?operation=put", + Name: opListAccounts, + HTTPMethod: "GET", + HTTPPath: "/accounts", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, } if input == nil { - input = &PutVoiceConnectorTerminationCredentialsInput{} + input = &ListAccountsInput{} } - output = &PutVoiceConnectorTerminationCredentialsOutput{} + output = &ListAccountsOutput{} req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// PutVoiceConnectorTerminationCredentials API operation for Amazon Chime. +// ListAccounts API operation for Amazon Chime. // -// Adds termination SIP credentials for the specified Amazon Chime Voice Connector. +// Lists the Amazon Chime accounts under the administrator's AWS account. You +// can filter accounts by account name prefix. To find out which Amazon Chime +// account a user belongs to, you can filter by the user's email address, which +// returns one account result. // // 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 Chime's -// API operation PutVoiceConnectorTerminationCredentials for usage and error information. +// API operation ListAccounts for usage and error information. // // Returned Error Types: // * UnauthorizedClientException @@ -11350,8 +10724,7 @@ func (c *Chime) PutVoiceConnectorTerminationCredentialsRequest(input *PutVoiceCo // One or more of the resources in the request does not exist in the system. // // * ForbiddenException -// The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported Region. +// The client is permanently forbidden from making the request. // // * BadRequestException // The input parameters don't match the service's restrictions. @@ -11365,98 +10738,156 @@ func (c *Chime) PutVoiceConnectorTerminationCredentialsRequest(input *PutVoiceCo // * ServiceFailureException // The service encountered an unexpected error. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/PutVoiceConnectorTerminationCredentials -func (c *Chime) PutVoiceConnectorTerminationCredentials(input *PutVoiceConnectorTerminationCredentialsInput) (*PutVoiceConnectorTerminationCredentialsOutput, error) { - req, out := c.PutVoiceConnectorTerminationCredentialsRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/ListAccounts +func (c *Chime) ListAccounts(input *ListAccountsInput) (*ListAccountsOutput, error) { + req, out := c.ListAccountsRequest(input) return out, req.Send() } -// PutVoiceConnectorTerminationCredentialsWithContext is the same as PutVoiceConnectorTerminationCredentials with the addition of +// ListAccountsWithContext is the same as ListAccounts with the addition of // the ability to pass a context and additional request options. // -// See PutVoiceConnectorTerminationCredentials for details on how to use this API operation. +// See ListAccounts 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 *Chime) PutVoiceConnectorTerminationCredentialsWithContext(ctx aws.Context, input *PutVoiceConnectorTerminationCredentialsInput, opts ...request.Option) (*PutVoiceConnectorTerminationCredentialsOutput, error) { - req, out := c.PutVoiceConnectorTerminationCredentialsRequest(input) +func (c *Chime) ListAccountsWithContext(ctx aws.Context, input *ListAccountsInput, opts ...request.Option) (*ListAccountsOutput, error) { + req, out := c.ListAccountsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opRedactConversationMessage = "RedactConversationMessage" +// ListAccountsPages iterates over the pages of a ListAccounts operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListAccounts 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 ListAccounts operation. +// pageNum := 0 +// err := client.ListAccountsPages(params, +// func(page *chime.ListAccountsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *Chime) ListAccountsPages(input *ListAccountsInput, fn func(*ListAccountsOutput, bool) bool) error { + return c.ListAccountsPagesWithContext(aws.BackgroundContext(), input, fn) +} -// RedactConversationMessageRequest generates a "aws/request.Request" representing the -// client's request for the RedactConversationMessage operation. The "output" return +// ListAccountsPagesWithContext same as ListAccountsPages 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 *Chime) ListAccountsPagesWithContext(ctx aws.Context, input *ListAccountsInput, fn func(*ListAccountsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListAccountsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListAccountsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListAccountsOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opListAppInstanceAdmins = "ListAppInstanceAdmins" + +// ListAppInstanceAdminsRequest generates a "aws/request.Request" representing the +// client's request for the ListAppInstanceAdmins 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 RedactConversationMessage for more information on using the RedactConversationMessage +// See ListAppInstanceAdmins for more information on using the ListAppInstanceAdmins // 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 RedactConversationMessageRequest method. -// req, resp := client.RedactConversationMessageRequest(params) +// // Example sending a request using the ListAppInstanceAdminsRequest method. +// req, resp := client.ListAppInstanceAdminsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/RedactConversationMessage -func (c *Chime) RedactConversationMessageRequest(input *RedactConversationMessageInput) (req *request.Request, output *RedactConversationMessageOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/ListAppInstanceAdmins +func (c *Chime) ListAppInstanceAdminsRequest(input *ListAppInstanceAdminsInput) (req *request.Request, output *ListAppInstanceAdminsOutput) { op := &request.Operation{ - Name: opRedactConversationMessage, - HTTPMethod: "POST", - HTTPPath: "/accounts/{accountId}/conversations/{conversationId}/messages/{messageId}?operation=redact", + Name: opListAppInstanceAdmins, + HTTPMethod: "GET", + HTTPPath: "/app-instances/{appInstanceArn}/admins", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, } if input == nil { - input = &RedactConversationMessageInput{} + input = &ListAppInstanceAdminsInput{} } - output = &RedactConversationMessageOutput{} + output = &ListAppInstanceAdminsOutput{} req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("identity-", nil)) + req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) return } -// RedactConversationMessage API operation for Amazon Chime. +// ListAppInstanceAdmins API operation for Amazon Chime. // -// Redacts the specified message from the specified Amazon Chime conversation. +// Returns a list of the administrators in the app 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 Chime's -// API operation RedactConversationMessage for usage and error information. +// API operation ListAppInstanceAdmins for usage and error information. // // Returned Error Types: -// * NotFoundException -// One or more of the resources in the request does not exist in the system. +// * BadRequestException +// The input parameters don't match the service's restrictions. // // * ForbiddenException -// The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported Region. +// The client is permanently forbidden from making the request. // -// * UnauthorizedClientException -// The client is not currently authorized to make the request. +// * ResourceLimitExceededException +// The request exceeds the resource limit. // // * ThrottledClientException // The client exceeded its request rate limit. // -// * BadRequestException -// The input parameters don't match the service's restrictions. +// * UnauthorizedClientException +// The client is not currently authorized to make the request. // // * ServiceUnavailableException // The service is currently unavailable. @@ -11464,98 +10895,153 @@ func (c *Chime) RedactConversationMessageRequest(input *RedactConversationMessag // * ServiceFailureException // The service encountered an unexpected error. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/RedactConversationMessage -func (c *Chime) RedactConversationMessage(input *RedactConversationMessageInput) (*RedactConversationMessageOutput, error) { - req, out := c.RedactConversationMessageRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/ListAppInstanceAdmins +func (c *Chime) ListAppInstanceAdmins(input *ListAppInstanceAdminsInput) (*ListAppInstanceAdminsOutput, error) { + req, out := c.ListAppInstanceAdminsRequest(input) return out, req.Send() } -// RedactConversationMessageWithContext is the same as RedactConversationMessage with the addition of +// ListAppInstanceAdminsWithContext is the same as ListAppInstanceAdmins with the addition of // the ability to pass a context and additional request options. // -// See RedactConversationMessage for details on how to use this API operation. +// See ListAppInstanceAdmins 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 *Chime) RedactConversationMessageWithContext(ctx aws.Context, input *RedactConversationMessageInput, opts ...request.Option) (*RedactConversationMessageOutput, error) { - req, out := c.RedactConversationMessageRequest(input) +func (c *Chime) ListAppInstanceAdminsWithContext(ctx aws.Context, input *ListAppInstanceAdminsInput, opts ...request.Option) (*ListAppInstanceAdminsOutput, error) { + req, out := c.ListAppInstanceAdminsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opRedactRoomMessage = "RedactRoomMessage" +// ListAppInstanceAdminsPages iterates over the pages of a ListAppInstanceAdmins operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListAppInstanceAdmins 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 ListAppInstanceAdmins operation. +// pageNum := 0 +// err := client.ListAppInstanceAdminsPages(params, +// func(page *chime.ListAppInstanceAdminsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *Chime) ListAppInstanceAdminsPages(input *ListAppInstanceAdminsInput, fn func(*ListAppInstanceAdminsOutput, bool) bool) error { + return c.ListAppInstanceAdminsPagesWithContext(aws.BackgroundContext(), input, fn) +} -// RedactRoomMessageRequest generates a "aws/request.Request" representing the -// client's request for the RedactRoomMessage operation. The "output" return +// ListAppInstanceAdminsPagesWithContext same as ListAppInstanceAdminsPages 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 *Chime) ListAppInstanceAdminsPagesWithContext(ctx aws.Context, input *ListAppInstanceAdminsInput, fn func(*ListAppInstanceAdminsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListAppInstanceAdminsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListAppInstanceAdminsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListAppInstanceAdminsOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opListAppInstanceUsers = "ListAppInstanceUsers" + +// ListAppInstanceUsersRequest generates a "aws/request.Request" representing the +// client's request for the ListAppInstanceUsers 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 RedactRoomMessage for more information on using the RedactRoomMessage +// See ListAppInstanceUsers for more information on using the ListAppInstanceUsers // 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 RedactRoomMessageRequest method. -// req, resp := client.RedactRoomMessageRequest(params) +// // Example sending a request using the ListAppInstanceUsersRequest method. +// req, resp := client.ListAppInstanceUsersRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/RedactRoomMessage -func (c *Chime) RedactRoomMessageRequest(input *RedactRoomMessageInput) (req *request.Request, output *RedactRoomMessageOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/ListAppInstanceUsers +func (c *Chime) ListAppInstanceUsersRequest(input *ListAppInstanceUsersInput) (req *request.Request, output *ListAppInstanceUsersOutput) { op := &request.Operation{ - Name: opRedactRoomMessage, - HTTPMethod: "POST", - HTTPPath: "/accounts/{accountId}/rooms/{roomId}/messages/{messageId}?operation=redact", + Name: opListAppInstanceUsers, + HTTPMethod: "GET", + HTTPPath: "/app-instance-users", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, } if input == nil { - input = &RedactRoomMessageInput{} + input = &ListAppInstanceUsersInput{} } - output = &RedactRoomMessageOutput{} + output = &ListAppInstanceUsersOutput{} req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("identity-", nil)) + req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) return } -// RedactRoomMessage API operation for Amazon Chime. +// ListAppInstanceUsers API operation for Amazon Chime. // -// Redacts the specified message from the specified Amazon Chime chat room. +// List all AppInstanceUsers created under a single app 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 Chime's -// API operation RedactRoomMessage for usage and error information. +// API operation ListAppInstanceUsers for usage and error information. // // Returned Error Types: -// * NotFoundException -// One or more of the resources in the request does not exist in the system. +// * BadRequestException +// The input parameters don't match the service's restrictions. // // * ForbiddenException -// The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported Region. -// -// * UnauthorizedClientException -// The client is not currently authorized to make the request. +// The client is permanently forbidden from making the request. // // * ThrottledClientException // The client exceeded its request rate limit. // -// * BadRequestException -// The input parameters don't match the service's restrictions. +// * UnauthorizedClientException +// The client is not currently authorized to make the request. // // * ServiceUnavailableException // The service is currently unavailable. @@ -11563,196 +11049,302 @@ func (c *Chime) RedactRoomMessageRequest(input *RedactRoomMessageInput) (req *re // * ServiceFailureException // The service encountered an unexpected error. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/RedactRoomMessage -func (c *Chime) RedactRoomMessage(input *RedactRoomMessageInput) (*RedactRoomMessageOutput, error) { - req, out := c.RedactRoomMessageRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/ListAppInstanceUsers +func (c *Chime) ListAppInstanceUsers(input *ListAppInstanceUsersInput) (*ListAppInstanceUsersOutput, error) { + req, out := c.ListAppInstanceUsersRequest(input) return out, req.Send() } -// RedactRoomMessageWithContext is the same as RedactRoomMessage with the addition of +// ListAppInstanceUsersWithContext is the same as ListAppInstanceUsers with the addition of // the ability to pass a context and additional request options. // -// See RedactRoomMessage for details on how to use this API operation. +// See ListAppInstanceUsers 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 *Chime) RedactRoomMessageWithContext(ctx aws.Context, input *RedactRoomMessageInput, opts ...request.Option) (*RedactRoomMessageOutput, error) { - req, out := c.RedactRoomMessageRequest(input) +func (c *Chime) ListAppInstanceUsersWithContext(ctx aws.Context, input *ListAppInstanceUsersInput, opts ...request.Option) (*ListAppInstanceUsersOutput, error) { + req, out := c.ListAppInstanceUsersRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opRegenerateSecurityToken = "RegenerateSecurityToken" +// ListAppInstanceUsersPages iterates over the pages of a ListAppInstanceUsers operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListAppInstanceUsers 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 ListAppInstanceUsers operation. +// pageNum := 0 +// err := client.ListAppInstanceUsersPages(params, +// func(page *chime.ListAppInstanceUsersOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *Chime) ListAppInstanceUsersPages(input *ListAppInstanceUsersInput, fn func(*ListAppInstanceUsersOutput, bool) bool) error { + return c.ListAppInstanceUsersPagesWithContext(aws.BackgroundContext(), input, fn) +} -// RegenerateSecurityTokenRequest generates a "aws/request.Request" representing the -// client's request for the RegenerateSecurityToken operation. The "output" return +// ListAppInstanceUsersPagesWithContext same as ListAppInstanceUsersPages 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 *Chime) ListAppInstanceUsersPagesWithContext(ctx aws.Context, input *ListAppInstanceUsersInput, fn func(*ListAppInstanceUsersOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListAppInstanceUsersInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListAppInstanceUsersRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListAppInstanceUsersOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opListAppInstances = "ListAppInstances" + +// ListAppInstancesRequest generates a "aws/request.Request" representing the +// client's request for the ListAppInstances 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 RegenerateSecurityToken for more information on using the RegenerateSecurityToken +// See ListAppInstances for more information on using the ListAppInstances // 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 RegenerateSecurityTokenRequest method. -// req, resp := client.RegenerateSecurityTokenRequest(params) +// // Example sending a request using the ListAppInstancesRequest method. +// req, resp := client.ListAppInstancesRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/RegenerateSecurityToken -func (c *Chime) RegenerateSecurityTokenRequest(input *RegenerateSecurityTokenInput) (req *request.Request, output *RegenerateSecurityTokenOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/ListAppInstances +func (c *Chime) ListAppInstancesRequest(input *ListAppInstancesInput) (req *request.Request, output *ListAppInstancesOutput) { op := &request.Operation{ - Name: opRegenerateSecurityToken, - HTTPMethod: "POST", - HTTPPath: "/accounts/{accountId}/bots/{botId}?operation=regenerate-security-token", + Name: opListAppInstances, + HTTPMethod: "GET", + HTTPPath: "/app-instances", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, } if input == nil { - input = &RegenerateSecurityTokenInput{} + input = &ListAppInstancesInput{} } - output = &RegenerateSecurityTokenOutput{} + output = &ListAppInstancesOutput{} req = c.newRequest(op, input, output) + req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("identity-", nil)) + req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) return } -// RegenerateSecurityToken API operation for Amazon Chime. +// ListAppInstances API operation for Amazon Chime. // -// Regenerates the security token for a bot. +// Lists all Amazon Chime app instances created under a single AWS account. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Chime's -// API operation RegenerateSecurityToken for usage and error information. +// API operation ListAppInstances for usage and error information. // // Returned Error Types: -// * ServiceUnavailableException -// The service is currently unavailable. -// -// * ServiceFailureException -// The service encountered an unexpected error. +// * BadRequestException +// The input parameters don't match the service's restrictions. // // * ForbiddenException -// The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported Region. +// The client is permanently forbidden from making the request. // -// * BadRequestException -// The input parameters don't match the service's restrictions. +// * ThrottledClientException +// The client exceeded its request rate limit. // // * UnauthorizedClientException // The client is not currently authorized to make the request. // -// * NotFoundException -// One or more of the resources in the request does not exist in the system. +// * ServiceUnavailableException +// The service is currently unavailable. // -// * ThrottledClientException -// The client exceeded its request rate limit. +// * ServiceFailureException +// The service encountered an unexpected error. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/RegenerateSecurityToken -func (c *Chime) RegenerateSecurityToken(input *RegenerateSecurityTokenInput) (*RegenerateSecurityTokenOutput, error) { - req, out := c.RegenerateSecurityTokenRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/ListAppInstances +func (c *Chime) ListAppInstances(input *ListAppInstancesInput) (*ListAppInstancesOutput, error) { + req, out := c.ListAppInstancesRequest(input) return out, req.Send() } -// RegenerateSecurityTokenWithContext is the same as RegenerateSecurityToken with the addition of +// ListAppInstancesWithContext is the same as ListAppInstances with the addition of // the ability to pass a context and additional request options. // -// See RegenerateSecurityToken for details on how to use this API operation. +// See ListAppInstances 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 *Chime) RegenerateSecurityTokenWithContext(ctx aws.Context, input *RegenerateSecurityTokenInput, opts ...request.Option) (*RegenerateSecurityTokenOutput, error) { - req, out := c.RegenerateSecurityTokenRequest(input) +func (c *Chime) ListAppInstancesWithContext(ctx aws.Context, input *ListAppInstancesInput, opts ...request.Option) (*ListAppInstancesOutput, error) { + req, out := c.ListAppInstancesRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opResetPersonalPIN = "ResetPersonalPIN" +// ListAppInstancesPages iterates over the pages of a ListAppInstances operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListAppInstances 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 ListAppInstances operation. +// pageNum := 0 +// err := client.ListAppInstancesPages(params, +// func(page *chime.ListAppInstancesOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *Chime) ListAppInstancesPages(input *ListAppInstancesInput, fn func(*ListAppInstancesOutput, bool) bool) error { + return c.ListAppInstancesPagesWithContext(aws.BackgroundContext(), input, fn) +} -// ResetPersonalPINRequest generates a "aws/request.Request" representing the -// client's request for the ResetPersonalPIN operation. The "output" return +// ListAppInstancesPagesWithContext same as ListAppInstancesPages 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 *Chime) ListAppInstancesPagesWithContext(ctx aws.Context, input *ListAppInstancesInput, fn func(*ListAppInstancesOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListAppInstancesInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListAppInstancesRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListAppInstancesOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opListAttendeeTags = "ListAttendeeTags" + +// ListAttendeeTagsRequest generates a "aws/request.Request" representing the +// client's request for the ListAttendeeTags 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 ResetPersonalPIN for more information on using the ResetPersonalPIN +// See ListAttendeeTags for more information on using the ListAttendeeTags // 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 ResetPersonalPINRequest method. -// req, resp := client.ResetPersonalPINRequest(params) +// // Example sending a request using the ListAttendeeTagsRequest method. +// req, resp := client.ListAttendeeTagsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/ResetPersonalPIN -func (c *Chime) ResetPersonalPINRequest(input *ResetPersonalPINInput) (req *request.Request, output *ResetPersonalPINOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/ListAttendeeTags +func (c *Chime) ListAttendeeTagsRequest(input *ListAttendeeTagsInput) (req *request.Request, output *ListAttendeeTagsOutput) { op := &request.Operation{ - Name: opResetPersonalPIN, - HTTPMethod: "POST", - HTTPPath: "/accounts/{accountId}/users/{userId}?operation=reset-personal-pin", + Name: opListAttendeeTags, + HTTPMethod: "GET", + HTTPPath: "/meetings/{meetingId}/attendees/{attendeeId}/tags", } if input == nil { - input = &ResetPersonalPINInput{} + input = &ListAttendeeTagsInput{} } - output = &ResetPersonalPINOutput{} + output = &ListAttendeeTagsOutput{} req = c.newRequest(op, input, output) return } -// ResetPersonalPIN API operation for Amazon Chime. +// ListAttendeeTags API operation for Amazon Chime. // -// Resets the personal meeting PIN for the specified user on an Amazon Chime -// account. Returns the User object with the updated personal meeting PIN. +// Lists the tags applied to an Amazon Chime SDK attendee resource. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Chime's -// API operation ResetPersonalPIN for usage and error information. +// API operation ListAttendeeTags for usage and error information. // // Returned Error Types: -// * UnauthorizedClientException -// The client is not currently authorized to make the request. +// * BadRequestException +// The input parameters don't match the service's restrictions. +// +// * ForbiddenException +// The client is permanently forbidden from making the request. // // * NotFoundException // One or more of the resources in the request does not exist in the system. // -// * ForbiddenException -// The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported Region. +// * ThrottledClientException +// The client exceeded its request rate limit. // -// * BadRequestException -// The input parameters don't match the service's restrictions. -// -// * ThrottledClientException -// The client exceeded its request rate limit. +// * UnauthorizedClientException +// The client is not currently authorized to make the request. // // * ServiceUnavailableException // The service is currently unavailable. @@ -11760,100 +11352,104 @@ func (c *Chime) ResetPersonalPINRequest(input *ResetPersonalPINInput) (req *requ // * ServiceFailureException // The service encountered an unexpected error. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/ResetPersonalPIN -func (c *Chime) ResetPersonalPIN(input *ResetPersonalPINInput) (*ResetPersonalPINOutput, error) { - req, out := c.ResetPersonalPINRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/ListAttendeeTags +func (c *Chime) ListAttendeeTags(input *ListAttendeeTagsInput) (*ListAttendeeTagsOutput, error) { + req, out := c.ListAttendeeTagsRequest(input) return out, req.Send() } -// ResetPersonalPINWithContext is the same as ResetPersonalPIN with the addition of +// ListAttendeeTagsWithContext is the same as ListAttendeeTags with the addition of // the ability to pass a context and additional request options. // -// See ResetPersonalPIN for details on how to use this API operation. +// See ListAttendeeTags 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 *Chime) ResetPersonalPINWithContext(ctx aws.Context, input *ResetPersonalPINInput, opts ...request.Option) (*ResetPersonalPINOutput, error) { - req, out := c.ResetPersonalPINRequest(input) +func (c *Chime) ListAttendeeTagsWithContext(ctx aws.Context, input *ListAttendeeTagsInput, opts ...request.Option) (*ListAttendeeTagsOutput, error) { + req, out := c.ListAttendeeTagsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opRestorePhoneNumber = "RestorePhoneNumber" +const opListAttendees = "ListAttendees" -// RestorePhoneNumberRequest generates a "aws/request.Request" representing the -// client's request for the RestorePhoneNumber operation. The "output" return +// ListAttendeesRequest generates a "aws/request.Request" representing the +// client's request for the ListAttendees 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 RestorePhoneNumber for more information on using the RestorePhoneNumber +// See ListAttendees for more information on using the ListAttendees // 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 RestorePhoneNumberRequest method. -// req, resp := client.RestorePhoneNumberRequest(params) +// // Example sending a request using the ListAttendeesRequest method. +// req, resp := client.ListAttendeesRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/RestorePhoneNumber -func (c *Chime) RestorePhoneNumberRequest(input *RestorePhoneNumberInput) (req *request.Request, output *RestorePhoneNumberOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/ListAttendees +func (c *Chime) ListAttendeesRequest(input *ListAttendeesInput) (req *request.Request, output *ListAttendeesOutput) { op := &request.Operation{ - Name: opRestorePhoneNumber, - HTTPMethod: "POST", - HTTPPath: "/phone-numbers/{phoneNumberId}?operation=restore", + Name: opListAttendees, + HTTPMethod: "GET", + HTTPPath: "/meetings/{meetingId}/attendees", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, } if input == nil { - input = &RestorePhoneNumberInput{} + input = &ListAttendeesInput{} } - output = &RestorePhoneNumberOutput{} + output = &ListAttendeesOutput{} req = c.newRequest(op, input, output) return } -// RestorePhoneNumber API operation for Amazon Chime. +// ListAttendees API operation for Amazon Chime. // -// Moves a phone number from the Deletion queue back into the phone number Inventory. +// Lists the attendees for the specified Amazon Chime SDK meeting. For more +// information about the Amazon Chime SDK, see Using the Amazon Chime SDK (https://docs.aws.amazon.com/chime/latest/dg/meetings-sdk.html) +// in the Amazon Chime Developer Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Chime's -// API operation RestorePhoneNumber for usage and error information. +// API operation ListAttendees for usage and error information. // // Returned Error Types: -// * UnauthorizedClientException -// The client is not currently authorized to make the request. -// -// * NotFoundException -// One or more of the resources in the request does not exist in the system. +// * BadRequestException +// The input parameters don't match the service's restrictions. // // * ForbiddenException -// The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported Region. +// The client is permanently forbidden from making the request. // -// * BadRequestException -// The input parameters don't match the service's restrictions. +// * NotFoundException +// One or more of the resources in the request does not exist in the system. // // * ThrottledClientException // The client exceeded its request rate limit. // -// * ResourceLimitExceededException -// The request exceeds the resource limit. +// * UnauthorizedClientException +// The client is not currently authorized to make the request. // // * ServiceUnavailableException // The service is currently unavailable. @@ -11861,787 +11457,1244 @@ func (c *Chime) RestorePhoneNumberRequest(input *RestorePhoneNumberInput) (req * // * ServiceFailureException // The service encountered an unexpected error. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/RestorePhoneNumber -func (c *Chime) RestorePhoneNumber(input *RestorePhoneNumberInput) (*RestorePhoneNumberOutput, error) { - req, out := c.RestorePhoneNumberRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/ListAttendees +func (c *Chime) ListAttendees(input *ListAttendeesInput) (*ListAttendeesOutput, error) { + req, out := c.ListAttendeesRequest(input) return out, req.Send() } -// RestorePhoneNumberWithContext is the same as RestorePhoneNumber with the addition of +// ListAttendeesWithContext is the same as ListAttendees with the addition of // the ability to pass a context and additional request options. // -// See RestorePhoneNumber for details on how to use this API operation. +// See ListAttendees 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 *Chime) RestorePhoneNumberWithContext(ctx aws.Context, input *RestorePhoneNumberInput, opts ...request.Option) (*RestorePhoneNumberOutput, error) { - req, out := c.RestorePhoneNumberRequest(input) +func (c *Chime) ListAttendeesWithContext(ctx aws.Context, input *ListAttendeesInput, opts ...request.Option) (*ListAttendeesOutput, error) { + req, out := c.ListAttendeesRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opSearchAvailablePhoneNumbers = "SearchAvailablePhoneNumbers" +// ListAttendeesPages iterates over the pages of a ListAttendees operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListAttendees 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 ListAttendees operation. +// pageNum := 0 +// err := client.ListAttendeesPages(params, +// func(page *chime.ListAttendeesOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *Chime) ListAttendeesPages(input *ListAttendeesInput, fn func(*ListAttendeesOutput, bool) bool) error { + return c.ListAttendeesPagesWithContext(aws.BackgroundContext(), input, fn) +} -// SearchAvailablePhoneNumbersRequest generates a "aws/request.Request" representing the -// client's request for the SearchAvailablePhoneNumbers operation. The "output" return +// ListAttendeesPagesWithContext same as ListAttendeesPages 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 *Chime) ListAttendeesPagesWithContext(ctx aws.Context, input *ListAttendeesInput, fn func(*ListAttendeesOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListAttendeesInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListAttendeesRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListAttendeesOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opListBots = "ListBots" + +// ListBotsRequest generates a "aws/request.Request" representing the +// client's request for the ListBots operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See SearchAvailablePhoneNumbers for more information on using the SearchAvailablePhoneNumbers +// See ListBots for more information on using the ListBots // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the SearchAvailablePhoneNumbersRequest method. -// req, resp := client.SearchAvailablePhoneNumbersRequest(params) +// // Example sending a request using the ListBotsRequest method. +// req, resp := client.ListBotsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/SearchAvailablePhoneNumbers -func (c *Chime) SearchAvailablePhoneNumbersRequest(input *SearchAvailablePhoneNumbersInput) (req *request.Request, output *SearchAvailablePhoneNumbersOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/ListBots +func (c *Chime) ListBotsRequest(input *ListBotsInput) (req *request.Request, output *ListBotsOutput) { op := &request.Operation{ - Name: opSearchAvailablePhoneNumbers, + Name: opListBots, HTTPMethod: "GET", - HTTPPath: "/search?type=phone-numbers", + HTTPPath: "/accounts/{accountId}/bots", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, } if input == nil { - input = &SearchAvailablePhoneNumbersInput{} + input = &ListBotsInput{} } - output = &SearchAvailablePhoneNumbersOutput{} + output = &ListBotsOutput{} req = c.newRequest(op, input, output) return } -// SearchAvailablePhoneNumbers API operation for Amazon Chime. +// ListBots API operation for Amazon Chime. // -// Searches phone numbers that can be ordered. +// Lists the bots associated with the administrator's Amazon Chime Enterprise +// account ID. // // 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 Chime's -// API operation SearchAvailablePhoneNumbers for usage and error information. +// API operation ListBots for usage and error information. // // Returned Error Types: -// * BadRequestException -// The input parameters don't match the service's restrictions. +// * ServiceUnavailableException +// The service is currently unavailable. // -// * ForbiddenException -// The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported Region. +// * ServiceFailureException +// The service encountered an unexpected error. // -// * AccessDeniedException -// You don't have permissions to perform the requested operation. +// * ForbiddenException +// The client is permanently forbidden from making the request. // // * UnauthorizedClientException // The client is not currently authorized to make the request. // -// * ThrottledClientException -// The client exceeded its request rate limit. +// * BadRequestException +// The input parameters don't match the service's restrictions. // -// * ServiceUnavailableException -// The service is currently unavailable. +// * NotFoundException +// One or more of the resources in the request does not exist in the system. // -// * ServiceFailureException -// The service encountered an unexpected error. +// * ThrottledClientException +// The client exceeded its request rate limit. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/SearchAvailablePhoneNumbers -func (c *Chime) SearchAvailablePhoneNumbers(input *SearchAvailablePhoneNumbersInput) (*SearchAvailablePhoneNumbersOutput, error) { - req, out := c.SearchAvailablePhoneNumbersRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/ListBots +func (c *Chime) ListBots(input *ListBotsInput) (*ListBotsOutput, error) { + req, out := c.ListBotsRequest(input) return out, req.Send() } -// SearchAvailablePhoneNumbersWithContext is the same as SearchAvailablePhoneNumbers with the addition of +// ListBotsWithContext is the same as ListBots with the addition of // the ability to pass a context and additional request options. // -// See SearchAvailablePhoneNumbers for details on how to use this API operation. +// See ListBots 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 *Chime) SearchAvailablePhoneNumbersWithContext(ctx aws.Context, input *SearchAvailablePhoneNumbersInput, opts ...request.Option) (*SearchAvailablePhoneNumbersOutput, error) { - req, out := c.SearchAvailablePhoneNumbersRequest(input) +func (c *Chime) ListBotsWithContext(ctx aws.Context, input *ListBotsInput, opts ...request.Option) (*ListBotsOutput, error) { + req, out := c.ListBotsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opTagAttendee = "TagAttendee" - -// TagAttendeeRequest generates a "aws/request.Request" representing the -// client's request for the TagAttendee 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 TagAttendee for more information on using the TagAttendee -// API call, and error handling. +// ListBotsPages iterates over the pages of a ListBots operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. // -// 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. +// See ListBots method for more information on how to use this operation. // +// Note: This operation can generate multiple requests to a service. // -// // Example sending a request using the TagAttendeeRequest method. -// req, resp := client.TagAttendeeRequest(params) +// // Example iterating over at most 3 pages of a ListBots operation. +// pageNum := 0 +// err := client.ListBotsPages(params, +// func(page *chime.ListBotsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) // -// err := req.Send() -// if err == nil { // resp is now filled -// fmt.Println(resp) -// } +func (c *Chime) ListBotsPages(input *ListBotsInput, fn func(*ListBotsOutput, bool) bool) error { + return c.ListBotsPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListBotsPagesWithContext same as ListBotsPages except +// it takes a Context and allows setting request options on the pages. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/TagAttendee -func (c *Chime) TagAttendeeRequest(input *TagAttendeeInput) (req *request.Request, output *TagAttendeeOutput) { - op := &request.Operation{ - Name: opTagAttendee, - HTTPMethod: "POST", - HTTPPath: "/meetings/{meetingId}/attendees/{attendeeId}/tags?operation=add", +// 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 *Chime) ListBotsPagesWithContext(ctx aws.Context, input *ListBotsInput, fn func(*ListBotsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListBotsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListBotsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListBotsOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opListChannelBans = "ListChannelBans" + +// ListChannelBansRequest generates a "aws/request.Request" representing the +// client's request for the ListChannelBans 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 ListChannelBans for more information on using the ListChannelBans +// 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 ListChannelBansRequest method. +// req, resp := client.ListChannelBansRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/ListChannelBans +func (c *Chime) ListChannelBansRequest(input *ListChannelBansInput) (req *request.Request, output *ListChannelBansOutput) { + op := &request.Operation{ + Name: opListChannelBans, + HTTPMethod: "GET", + HTTPPath: "/channels/{channelArn}/bans", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, } if input == nil { - input = &TagAttendeeInput{} + input = &ListChannelBansInput{} } - output = &TagAttendeeOutput{} + output = &ListChannelBansOutput{} req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("messaging-", nil)) + req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) return } -// TagAttendee API operation for Amazon Chime. +// ListChannelBans API operation for Amazon Chime. // -// Applies the specified tags to the specified Amazon Chime SDK attendee. +// Lists all the users banned from a particular channel. // // 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 Chime's -// API operation TagAttendee for usage and error information. +// API operation ListChannelBans for usage and error information. // // Returned Error Types: // * BadRequestException // The input parameters don't match the service's restrictions. // // * ForbiddenException -// The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported Region. +// The client is permanently forbidden from making the request. // -// * NotFoundException -// One or more of the resources in the request does not exist in the system. -// -// * ResourceLimitExceededException -// The request exceeds the resource limit. +// * UnauthorizedClientException +// The client is not currently authorized to make the request. // // * ThrottledClientException // The client exceeded its request rate limit. // -// * UnauthorizedClientException -// The client is not currently authorized to make the request. -// // * ServiceUnavailableException // The service is currently unavailable. // // * ServiceFailureException // The service encountered an unexpected error. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/TagAttendee -func (c *Chime) TagAttendee(input *TagAttendeeInput) (*TagAttendeeOutput, error) { - req, out := c.TagAttendeeRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/ListChannelBans +func (c *Chime) ListChannelBans(input *ListChannelBansInput) (*ListChannelBansOutput, error) { + req, out := c.ListChannelBansRequest(input) return out, req.Send() } -// TagAttendeeWithContext is the same as TagAttendee with the addition of +// ListChannelBansWithContext is the same as ListChannelBans with the addition of // the ability to pass a context and additional request options. // -// See TagAttendee for details on how to use this API operation. +// See ListChannelBans 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 *Chime) TagAttendeeWithContext(ctx aws.Context, input *TagAttendeeInput, opts ...request.Option) (*TagAttendeeOutput, error) { - req, out := c.TagAttendeeRequest(input) +func (c *Chime) ListChannelBansWithContext(ctx aws.Context, input *ListChannelBansInput, opts ...request.Option) (*ListChannelBansOutput, error) { + req, out := c.ListChannelBansRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opTagMeeting = "TagMeeting" +// ListChannelBansPages iterates over the pages of a ListChannelBans operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListChannelBans 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 ListChannelBans operation. +// pageNum := 0 +// err := client.ListChannelBansPages(params, +// func(page *chime.ListChannelBansOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *Chime) ListChannelBansPages(input *ListChannelBansInput, fn func(*ListChannelBansOutput, bool) bool) error { + return c.ListChannelBansPagesWithContext(aws.BackgroundContext(), input, fn) +} -// TagMeetingRequest generates a "aws/request.Request" representing the -// client's request for the TagMeeting operation. The "output" return +// ListChannelBansPagesWithContext same as ListChannelBansPages 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 *Chime) ListChannelBansPagesWithContext(ctx aws.Context, input *ListChannelBansInput, fn func(*ListChannelBansOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListChannelBansInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListChannelBansRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListChannelBansOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opListChannelMemberships = "ListChannelMemberships" + +// ListChannelMembershipsRequest generates a "aws/request.Request" representing the +// client's request for the ListChannelMemberships 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 TagMeeting for more information on using the TagMeeting +// See ListChannelMemberships for more information on using the ListChannelMemberships // 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 TagMeetingRequest method. -// req, resp := client.TagMeetingRequest(params) +// // Example sending a request using the ListChannelMembershipsRequest method. +// req, resp := client.ListChannelMembershipsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/TagMeeting -func (c *Chime) TagMeetingRequest(input *TagMeetingInput) (req *request.Request, output *TagMeetingOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/ListChannelMemberships +func (c *Chime) ListChannelMembershipsRequest(input *ListChannelMembershipsInput) (req *request.Request, output *ListChannelMembershipsOutput) { op := &request.Operation{ - Name: opTagMeeting, - HTTPMethod: "POST", - HTTPPath: "/meetings/{meetingId}/tags?operation=add", + Name: opListChannelMemberships, + HTTPMethod: "GET", + HTTPPath: "/channels/{channelArn}/memberships", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, } if input == nil { - input = &TagMeetingInput{} + input = &ListChannelMembershipsInput{} } - output = &TagMeetingOutput{} + output = &ListChannelMembershipsOutput{} req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("messaging-", nil)) + req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) return } -// TagMeeting API operation for Amazon Chime. +// ListChannelMemberships API operation for Amazon Chime. // -// Applies the specified tags to the specified Amazon Chime SDK meeting. +// Lists all channel memberships in a channel. // // 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 Chime's -// API operation TagMeeting for usage and error information. +// API operation ListChannelMemberships for usage and error information. // // Returned Error Types: // * BadRequestException // The input parameters don't match the service's restrictions. // // * ForbiddenException -// The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported Region. -// -// * NotFoundException -// One or more of the resources in the request does not exist in the system. +// The client is permanently forbidden from making the request. // -// * ResourceLimitExceededException -// The request exceeds the resource limit. +// * UnauthorizedClientException +// The client is not currently authorized to make the request. // // * ThrottledClientException // The client exceeded its request rate limit. // -// * UnauthorizedClientException -// The client is not currently authorized to make the request. -// // * ServiceUnavailableException // The service is currently unavailable. // // * ServiceFailureException // The service encountered an unexpected error. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/TagMeeting -func (c *Chime) TagMeeting(input *TagMeetingInput) (*TagMeetingOutput, error) { - req, out := c.TagMeetingRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/ListChannelMemberships +func (c *Chime) ListChannelMemberships(input *ListChannelMembershipsInput) (*ListChannelMembershipsOutput, error) { + req, out := c.ListChannelMembershipsRequest(input) return out, req.Send() } -// TagMeetingWithContext is the same as TagMeeting with the addition of +// ListChannelMembershipsWithContext is the same as ListChannelMemberships with the addition of // the ability to pass a context and additional request options. // -// See TagMeeting for details on how to use this API operation. +// See ListChannelMemberships 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 *Chime) TagMeetingWithContext(ctx aws.Context, input *TagMeetingInput, opts ...request.Option) (*TagMeetingOutput, error) { - req, out := c.TagMeetingRequest(input) +func (c *Chime) ListChannelMembershipsWithContext(ctx aws.Context, input *ListChannelMembershipsInput, opts ...request.Option) (*ListChannelMembershipsOutput, error) { + req, out := c.ListChannelMembershipsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opTagResource = "TagResource" +// ListChannelMembershipsPages iterates over the pages of a ListChannelMemberships operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListChannelMemberships 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 ListChannelMemberships operation. +// pageNum := 0 +// err := client.ListChannelMembershipsPages(params, +// func(page *chime.ListChannelMembershipsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *Chime) ListChannelMembershipsPages(input *ListChannelMembershipsInput, fn func(*ListChannelMembershipsOutput, bool) bool) error { + return c.ListChannelMembershipsPagesWithContext(aws.BackgroundContext(), input, fn) +} -// TagResourceRequest generates a "aws/request.Request" representing the -// client's request for the TagResource operation. The "output" return +// ListChannelMembershipsPagesWithContext same as ListChannelMembershipsPages 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 *Chime) ListChannelMembershipsPagesWithContext(ctx aws.Context, input *ListChannelMembershipsInput, fn func(*ListChannelMembershipsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListChannelMembershipsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListChannelMembershipsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListChannelMembershipsOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opListChannelMembershipsForAppInstanceUser = "ListChannelMembershipsForAppInstanceUser" + +// ListChannelMembershipsForAppInstanceUserRequest generates a "aws/request.Request" representing the +// client's request for the ListChannelMembershipsForAppInstanceUser operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See TagResource for more information on using the TagResource +// See ListChannelMembershipsForAppInstanceUser for more information on using the ListChannelMembershipsForAppInstanceUser // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the TagResourceRequest method. -// req, resp := client.TagResourceRequest(params) +// // Example sending a request using the ListChannelMembershipsForAppInstanceUserRequest method. +// req, resp := client.ListChannelMembershipsForAppInstanceUserRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/TagResource -func (c *Chime) TagResourceRequest(input *TagResourceInput) (req *request.Request, output *TagResourceOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/ListChannelMembershipsForAppInstanceUser +func (c *Chime) ListChannelMembershipsForAppInstanceUserRequest(input *ListChannelMembershipsForAppInstanceUserInput) (req *request.Request, output *ListChannelMembershipsForAppInstanceUserOutput) { op := &request.Operation{ - Name: opTagResource, - HTTPMethod: "POST", - HTTPPath: "/tags?operation=tag-resource", + Name: opListChannelMembershipsForAppInstanceUser, + HTTPMethod: "GET", + HTTPPath: "/channels?scope=app-instance-user-memberships", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, } if input == nil { - input = &TagResourceInput{} + input = &ListChannelMembershipsForAppInstanceUserInput{} } - output = &TagResourceOutput{} + output = &ListChannelMembershipsForAppInstanceUserOutput{} req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("messaging-", nil)) + req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) return } -// TagResource API operation for Amazon Chime. +// ListChannelMembershipsForAppInstanceUser API operation for Amazon Chime. // -// Applies the specified tags to the specified Amazon Chime SDK meeting resource. +// Lists all channels that a particular AppInstanceUser is a part of. Only an +// AppInstanceAdmin can call the API with a user ARN that is not their own. // // 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 Chime's -// API operation TagResource for usage and error information. +// API operation ListChannelMembershipsForAppInstanceUser for usage and error information. // // Returned Error Types: // * BadRequestException // The input parameters don't match the service's restrictions. // // * ForbiddenException -// The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported Region. -// -// * NotFoundException -// One or more of the resources in the request does not exist in the system. +// The client is permanently forbidden from making the request. // // * UnauthorizedClientException // The client is not currently authorized to make the request. // +// * ThrottledClientException +// The client exceeded its request rate limit. +// // * ServiceUnavailableException // The service is currently unavailable. // // * ServiceFailureException // The service encountered an unexpected error. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/TagResource -func (c *Chime) TagResource(input *TagResourceInput) (*TagResourceOutput, error) { - req, out := c.TagResourceRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/ListChannelMembershipsForAppInstanceUser +func (c *Chime) ListChannelMembershipsForAppInstanceUser(input *ListChannelMembershipsForAppInstanceUserInput) (*ListChannelMembershipsForAppInstanceUserOutput, error) { + req, out := c.ListChannelMembershipsForAppInstanceUserRequest(input) return out, req.Send() } -// TagResourceWithContext is the same as TagResource with the addition of +// ListChannelMembershipsForAppInstanceUserWithContext is the same as ListChannelMembershipsForAppInstanceUser with the addition of // the ability to pass a context and additional request options. // -// See TagResource for details on how to use this API operation. +// See ListChannelMembershipsForAppInstanceUser 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 *Chime) TagResourceWithContext(ctx aws.Context, input *TagResourceInput, opts ...request.Option) (*TagResourceOutput, error) { - req, out := c.TagResourceRequest(input) +func (c *Chime) ListChannelMembershipsForAppInstanceUserWithContext(ctx aws.Context, input *ListChannelMembershipsForAppInstanceUserInput, opts ...request.Option) (*ListChannelMembershipsForAppInstanceUserOutput, error) { + req, out := c.ListChannelMembershipsForAppInstanceUserRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opUntagAttendee = "UntagAttendee" - -// UntagAttendeeRequest generates a "aws/request.Request" representing the -// client's request for the UntagAttendee 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 UntagAttendee for more information on using the UntagAttendee -// API call, and error handling. +// ListChannelMembershipsForAppInstanceUserPages iterates over the pages of a ListChannelMembershipsForAppInstanceUser operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. // -// 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. +// See ListChannelMembershipsForAppInstanceUser 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 ListChannelMembershipsForAppInstanceUser operation. +// pageNum := 0 +// err := client.ListChannelMembershipsForAppInstanceUserPages(params, +// func(page *chime.ListChannelMembershipsForAppInstanceUserOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *Chime) ListChannelMembershipsForAppInstanceUserPages(input *ListChannelMembershipsForAppInstanceUserInput, fn func(*ListChannelMembershipsForAppInstanceUserOutput, bool) bool) error { + return c.ListChannelMembershipsForAppInstanceUserPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListChannelMembershipsForAppInstanceUserPagesWithContext same as ListChannelMembershipsForAppInstanceUserPages 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 *Chime) ListChannelMembershipsForAppInstanceUserPagesWithContext(ctx aws.Context, input *ListChannelMembershipsForAppInstanceUserInput, fn func(*ListChannelMembershipsForAppInstanceUserOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListChannelMembershipsForAppInstanceUserInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListChannelMembershipsForAppInstanceUserRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListChannelMembershipsForAppInstanceUserOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opListChannelMessages = "ListChannelMessages" + +// ListChannelMessagesRequest generates a "aws/request.Request" representing the +// client's request for the ListChannelMessages 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 ListChannelMessages for more information on using the ListChannelMessages +// 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 UntagAttendeeRequest method. -// req, resp := client.UntagAttendeeRequest(params) +// +// // Example sending a request using the ListChannelMessagesRequest method. +// req, resp := client.ListChannelMessagesRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/UntagAttendee -func (c *Chime) UntagAttendeeRequest(input *UntagAttendeeInput) (req *request.Request, output *UntagAttendeeOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/ListChannelMessages +func (c *Chime) ListChannelMessagesRequest(input *ListChannelMessagesInput) (req *request.Request, output *ListChannelMessagesOutput) { op := &request.Operation{ - Name: opUntagAttendee, - HTTPMethod: "POST", - HTTPPath: "/meetings/{meetingId}/attendees/{attendeeId}/tags?operation=delete", + Name: opListChannelMessages, + HTTPMethod: "GET", + HTTPPath: "/channels/{channelArn}/messages", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, } if input == nil { - input = &UntagAttendeeInput{} + input = &ListChannelMessagesInput{} } - output = &UntagAttendeeOutput{} + output = &ListChannelMessagesOutput{} req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("messaging-", nil)) + req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) return } -// UntagAttendee API operation for Amazon Chime. +// ListChannelMessages API operation for Amazon Chime. // -// Untags the specified tags from the specified Amazon Chime SDK attendee. +// List all the messages in a channel. Returns a paginated list of ChannelMessages. +// Sorted in descending order by default, based on the creation timestamp. +// +// Redacted messages appear in the results as empty, since they are only redacted, +// not deleted. Deleted messages do not appear in the results. This action always +// returns the latest version of an edited message. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Chime's -// API operation UntagAttendee for usage and error information. +// API operation ListChannelMessages for usage and error information. // // Returned Error Types: // * BadRequestException // The input parameters don't match the service's restrictions. // // * ForbiddenException -// The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported Region. -// -// * ThrottledClientException -// The client exceeded its request rate limit. -// -// * NotFoundException -// One or more of the resources in the request does not exist in the system. +// The client is permanently forbidden from making the request. // // * UnauthorizedClientException // The client is not currently authorized to make the request. // +// * ThrottledClientException +// The client exceeded its request rate limit. +// // * ServiceUnavailableException // The service is currently unavailable. // // * ServiceFailureException // The service encountered an unexpected error. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/UntagAttendee -func (c *Chime) UntagAttendee(input *UntagAttendeeInput) (*UntagAttendeeOutput, error) { - req, out := c.UntagAttendeeRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/ListChannelMessages +func (c *Chime) ListChannelMessages(input *ListChannelMessagesInput) (*ListChannelMessagesOutput, error) { + req, out := c.ListChannelMessagesRequest(input) return out, req.Send() } -// UntagAttendeeWithContext is the same as UntagAttendee with the addition of +// ListChannelMessagesWithContext is the same as ListChannelMessages with the addition of // the ability to pass a context and additional request options. // -// See UntagAttendee for details on how to use this API operation. +// See ListChannelMessages 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 *Chime) UntagAttendeeWithContext(ctx aws.Context, input *UntagAttendeeInput, opts ...request.Option) (*UntagAttendeeOutput, error) { - req, out := c.UntagAttendeeRequest(input) +func (c *Chime) ListChannelMessagesWithContext(ctx aws.Context, input *ListChannelMessagesInput, opts ...request.Option) (*ListChannelMessagesOutput, error) { + req, out := c.ListChannelMessagesRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opUntagMeeting = "UntagMeeting" +// ListChannelMessagesPages iterates over the pages of a ListChannelMessages operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListChannelMessages 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 ListChannelMessages operation. +// pageNum := 0 +// err := client.ListChannelMessagesPages(params, +// func(page *chime.ListChannelMessagesOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *Chime) ListChannelMessagesPages(input *ListChannelMessagesInput, fn func(*ListChannelMessagesOutput, bool) bool) error { + return c.ListChannelMessagesPagesWithContext(aws.BackgroundContext(), input, fn) +} -// UntagMeetingRequest generates a "aws/request.Request" representing the -// client's request for the UntagMeeting operation. The "output" return +// ListChannelMessagesPagesWithContext same as ListChannelMessagesPages 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 *Chime) ListChannelMessagesPagesWithContext(ctx aws.Context, input *ListChannelMessagesInput, fn func(*ListChannelMessagesOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListChannelMessagesInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListChannelMessagesRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListChannelMessagesOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opListChannelModerators = "ListChannelModerators" + +// ListChannelModeratorsRequest generates a "aws/request.Request" representing the +// client's request for the ListChannelModerators 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 UntagMeeting for more information on using the UntagMeeting +// See ListChannelModerators for more information on using the ListChannelModerators // 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 UntagMeetingRequest method. -// req, resp := client.UntagMeetingRequest(params) +// // Example sending a request using the ListChannelModeratorsRequest method. +// req, resp := client.ListChannelModeratorsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/UntagMeeting -func (c *Chime) UntagMeetingRequest(input *UntagMeetingInput) (req *request.Request, output *UntagMeetingOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/ListChannelModerators +func (c *Chime) ListChannelModeratorsRequest(input *ListChannelModeratorsInput) (req *request.Request, output *ListChannelModeratorsOutput) { op := &request.Operation{ - Name: opUntagMeeting, - HTTPMethod: "POST", - HTTPPath: "/meetings/{meetingId}/tags?operation=delete", + Name: opListChannelModerators, + HTTPMethod: "GET", + HTTPPath: "/channels/{channelArn}/moderators", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, } if input == nil { - input = &UntagMeetingInput{} + input = &ListChannelModeratorsInput{} } - output = &UntagMeetingOutput{} + output = &ListChannelModeratorsOutput{} req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("messaging-", nil)) + req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) return } -// UntagMeeting API operation for Amazon Chime. +// ListChannelModerators API operation for Amazon Chime. // -// Untags the specified tags from the specified Amazon Chime SDK meeting. +// Lists all the moderators for a channel. // // 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 Chime's -// API operation UntagMeeting for usage and error information. +// API operation ListChannelModerators for usage and error information. // // Returned Error Types: // * BadRequestException // The input parameters don't match the service's restrictions. // // * ForbiddenException -// The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported Region. -// -// * ThrottledClientException -// The client exceeded its request rate limit. -// -// * NotFoundException -// One or more of the resources in the request does not exist in the system. +// The client is permanently forbidden from making the request. // // * UnauthorizedClientException // The client is not currently authorized to make the request. // +// * ThrottledClientException +// The client exceeded its request rate limit. +// // * ServiceUnavailableException // The service is currently unavailable. // // * ServiceFailureException // The service encountered an unexpected error. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/UntagMeeting -func (c *Chime) UntagMeeting(input *UntagMeetingInput) (*UntagMeetingOutput, error) { - req, out := c.UntagMeetingRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/ListChannelModerators +func (c *Chime) ListChannelModerators(input *ListChannelModeratorsInput) (*ListChannelModeratorsOutput, error) { + req, out := c.ListChannelModeratorsRequest(input) return out, req.Send() } -// UntagMeetingWithContext is the same as UntagMeeting with the addition of +// ListChannelModeratorsWithContext is the same as ListChannelModerators with the addition of // the ability to pass a context and additional request options. // -// See UntagMeeting for details on how to use this API operation. +// See ListChannelModerators 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 *Chime) UntagMeetingWithContext(ctx aws.Context, input *UntagMeetingInput, opts ...request.Option) (*UntagMeetingOutput, error) { - req, out := c.UntagMeetingRequest(input) +func (c *Chime) ListChannelModeratorsWithContext(ctx aws.Context, input *ListChannelModeratorsInput, opts ...request.Option) (*ListChannelModeratorsOutput, error) { + req, out := c.ListChannelModeratorsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opUntagResource = "UntagResource" +// ListChannelModeratorsPages iterates over the pages of a ListChannelModerators operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListChannelModerators 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 ListChannelModerators operation. +// pageNum := 0 +// err := client.ListChannelModeratorsPages(params, +// func(page *chime.ListChannelModeratorsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *Chime) ListChannelModeratorsPages(input *ListChannelModeratorsInput, fn func(*ListChannelModeratorsOutput, bool) bool) error { + return c.ListChannelModeratorsPagesWithContext(aws.BackgroundContext(), input, fn) +} -// UntagResourceRequest generates a "aws/request.Request" representing the -// client's request for the UntagResource operation. The "output" return +// ListChannelModeratorsPagesWithContext same as ListChannelModeratorsPages 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 *Chime) ListChannelModeratorsPagesWithContext(ctx aws.Context, input *ListChannelModeratorsInput, fn func(*ListChannelModeratorsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListChannelModeratorsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListChannelModeratorsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListChannelModeratorsOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opListChannels = "ListChannels" + +// ListChannelsRequest generates a "aws/request.Request" representing the +// client's request for the ListChannels operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See UntagResource for more information on using the UntagResource +// See ListChannels for more information on using the ListChannels // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the UntagResourceRequest method. -// req, resp := client.UntagResourceRequest(params) +// // Example sending a request using the ListChannelsRequest method. +// req, resp := client.ListChannelsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/UntagResource -func (c *Chime) UntagResourceRequest(input *UntagResourceInput) (req *request.Request, output *UntagResourceOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/ListChannels +func (c *Chime) ListChannelsRequest(input *ListChannelsInput) (req *request.Request, output *ListChannelsOutput) { op := &request.Operation{ - Name: opUntagResource, - HTTPMethod: "POST", - HTTPPath: "/tags?operation=untag-resource", + Name: opListChannels, + HTTPMethod: "GET", + HTTPPath: "/channels", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, } if input == nil { - input = &UntagResourceInput{} + input = &ListChannelsInput{} } - output = &UntagResourceOutput{} + output = &ListChannelsOutput{} req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("messaging-", nil)) + req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) return } -// UntagResource API operation for Amazon Chime. +// ListChannels API operation for Amazon Chime. // -// Untags the specified tags from the specified Amazon Chime SDK meeting resource. +// Lists all Channels created under a single Chime App as a paginated list. +// You can specify filters to narrow results. +// +// Functionality & restrictions +// +// * Use privacy = PUBLIC to retrieve all public channels in the account +// +// * Only an AppInstanceAdmin can set privacy = PRIVATE to list the private +// channels in an account. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Chime's -// API operation UntagResource for usage and error information. +// API operation ListChannels for usage and error information. // // Returned Error Types: // * BadRequestException // The input parameters don't match the service's restrictions. // // * ForbiddenException -// The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported Region. -// -// * NotFoundException -// One or more of the resources in the request does not exist in the system. +// The client is permanently forbidden from making the request. // // * UnauthorizedClientException // The client is not currently authorized to make the request. // +// * ThrottledClientException +// The client exceeded its request rate limit. +// // * ServiceUnavailableException // The service is currently unavailable. // // * ServiceFailureException // The service encountered an unexpected error. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/UntagResource -func (c *Chime) UntagResource(input *UntagResourceInput) (*UntagResourceOutput, error) { - req, out := c.UntagResourceRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/ListChannels +func (c *Chime) ListChannels(input *ListChannelsInput) (*ListChannelsOutput, error) { + req, out := c.ListChannelsRequest(input) return out, req.Send() } -// UntagResourceWithContext is the same as UntagResource with the addition of +// ListChannelsWithContext is the same as ListChannels with the addition of // the ability to pass a context and additional request options. // -// See UntagResource for details on how to use this API operation. +// See ListChannels 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 *Chime) UntagResourceWithContext(ctx aws.Context, input *UntagResourceInput, opts ...request.Option) (*UntagResourceOutput, error) { - req, out := c.UntagResourceRequest(input) +func (c *Chime) ListChannelsWithContext(ctx aws.Context, input *ListChannelsInput, opts ...request.Option) (*ListChannelsOutput, error) { + req, out := c.ListChannelsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opUpdateAccount = "UpdateAccount" - -// UpdateAccountRequest generates a "aws/request.Request" representing the -// client's request for the UpdateAccount operation. The "output" return -// value will be populated with the request's response once the request completes -// successfully. +// ListChannelsPages iterates over the pages of a ListChannels 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 ListChannels method for more information on how to use this operation. // -// See UpdateAccount for more information on using the UpdateAccount -// API call, and error handling. +// Note: This operation can generate multiple requests to a service. +// +// // Example iterating over at most 3 pages of a ListChannels operation. +// pageNum := 0 +// err := client.ListChannelsPages(params, +// func(page *chime.ListChannelsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *Chime) ListChannelsPages(input *ListChannelsInput, fn func(*ListChannelsOutput, bool) bool) error { + return c.ListChannelsPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListChannelsPagesWithContext same as ListChannelsPages 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 *Chime) ListChannelsPagesWithContext(ctx aws.Context, input *ListChannelsInput, fn func(*ListChannelsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListChannelsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListChannelsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListChannelsOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opListChannelsModeratedByAppInstanceUser = "ListChannelsModeratedByAppInstanceUser" + +// ListChannelsModeratedByAppInstanceUserRequest generates a "aws/request.Request" representing the +// client's request for the ListChannelsModeratedByAppInstanceUser 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 ListChannelsModeratedByAppInstanceUser for more information on using the ListChannelsModeratedByAppInstanceUser +// 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 UpdateAccountRequest method. -// req, resp := client.UpdateAccountRequest(params) +// // Example sending a request using the ListChannelsModeratedByAppInstanceUserRequest method. +// req, resp := client.ListChannelsModeratedByAppInstanceUserRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/UpdateAccount -func (c *Chime) UpdateAccountRequest(input *UpdateAccountInput) (req *request.Request, output *UpdateAccountOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/ListChannelsModeratedByAppInstanceUser +func (c *Chime) ListChannelsModeratedByAppInstanceUserRequest(input *ListChannelsModeratedByAppInstanceUserInput) (req *request.Request, output *ListChannelsModeratedByAppInstanceUserOutput) { op := &request.Operation{ - Name: opUpdateAccount, - HTTPMethod: "POST", - HTTPPath: "/accounts/{accountId}", + Name: opListChannelsModeratedByAppInstanceUser, + HTTPMethod: "GET", + HTTPPath: "/channels?scope=app-instance-user-moderated-channels", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, } if input == nil { - input = &UpdateAccountInput{} + input = &ListChannelsModeratedByAppInstanceUserInput{} } - output = &UpdateAccountOutput{} + output = &ListChannelsModeratedByAppInstanceUserOutput{} req = c.newRequest(op, input, output) + req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("messaging-", nil)) + req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) return } -// UpdateAccount API operation for Amazon Chime. +// ListChannelsModeratedByAppInstanceUser API operation for Amazon Chime. // -// Updates account details for the specified Amazon Chime account. Currently, -// only account name updates are supported for this action. +// A list of the channels moderated by an app instance 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 Chime's -// API operation UpdateAccount for usage and error information. +// API operation ListChannelsModeratedByAppInstanceUser for usage and error information. // // Returned Error Types: -// * UnauthorizedClientException -// The client is not currently authorized to make the request. -// -// * NotFoundException -// One or more of the resources in the request does not exist in the system. +// * BadRequestException +// The input parameters don't match the service's restrictions. // // * ForbiddenException -// The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported Region. +// The client is permanently forbidden from making the request. // -// * BadRequestException -// The input parameters don't match the service's restrictions. +// * UnauthorizedClientException +// The client is not currently authorized to make the request. // // * ThrottledClientException // The client exceeded its request rate limit. @@ -12652,295 +12705,396 @@ func (c *Chime) UpdateAccountRequest(input *UpdateAccountInput) (req *request.Re // * ServiceFailureException // The service encountered an unexpected error. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/UpdateAccount -func (c *Chime) UpdateAccount(input *UpdateAccountInput) (*UpdateAccountOutput, error) { - req, out := c.UpdateAccountRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/ListChannelsModeratedByAppInstanceUser +func (c *Chime) ListChannelsModeratedByAppInstanceUser(input *ListChannelsModeratedByAppInstanceUserInput) (*ListChannelsModeratedByAppInstanceUserOutput, error) { + req, out := c.ListChannelsModeratedByAppInstanceUserRequest(input) return out, req.Send() } -// UpdateAccountWithContext is the same as UpdateAccount with the addition of +// ListChannelsModeratedByAppInstanceUserWithContext is the same as ListChannelsModeratedByAppInstanceUser with the addition of // the ability to pass a context and additional request options. // -// See UpdateAccount for details on how to use this API operation. +// See ListChannelsModeratedByAppInstanceUser 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 *Chime) UpdateAccountWithContext(ctx aws.Context, input *UpdateAccountInput, opts ...request.Option) (*UpdateAccountOutput, error) { - req, out := c.UpdateAccountRequest(input) +func (c *Chime) ListChannelsModeratedByAppInstanceUserWithContext(ctx aws.Context, input *ListChannelsModeratedByAppInstanceUserInput, opts ...request.Option) (*ListChannelsModeratedByAppInstanceUserOutput, error) { + req, out := c.ListChannelsModeratedByAppInstanceUserRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opUpdateAccountSettings = "UpdateAccountSettings" +// ListChannelsModeratedByAppInstanceUserPages iterates over the pages of a ListChannelsModeratedByAppInstanceUser operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListChannelsModeratedByAppInstanceUser 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 ListChannelsModeratedByAppInstanceUser operation. +// pageNum := 0 +// err := client.ListChannelsModeratedByAppInstanceUserPages(params, +// func(page *chime.ListChannelsModeratedByAppInstanceUserOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *Chime) ListChannelsModeratedByAppInstanceUserPages(input *ListChannelsModeratedByAppInstanceUserInput, fn func(*ListChannelsModeratedByAppInstanceUserOutput, bool) bool) error { + return c.ListChannelsModeratedByAppInstanceUserPagesWithContext(aws.BackgroundContext(), input, fn) +} -// UpdateAccountSettingsRequest generates a "aws/request.Request" representing the -// client's request for the UpdateAccountSettings operation. The "output" return +// ListChannelsModeratedByAppInstanceUserPagesWithContext same as ListChannelsModeratedByAppInstanceUserPages 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 *Chime) ListChannelsModeratedByAppInstanceUserPagesWithContext(ctx aws.Context, input *ListChannelsModeratedByAppInstanceUserInput, fn func(*ListChannelsModeratedByAppInstanceUserOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListChannelsModeratedByAppInstanceUserInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListChannelsModeratedByAppInstanceUserRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListChannelsModeratedByAppInstanceUserOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opListMeetingTags = "ListMeetingTags" + +// ListMeetingTagsRequest generates a "aws/request.Request" representing the +// client's request for the ListMeetingTags 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 UpdateAccountSettings for more information on using the UpdateAccountSettings +// See ListMeetingTags for more information on using the ListMeetingTags // 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 UpdateAccountSettingsRequest method. -// req, resp := client.UpdateAccountSettingsRequest(params) +// // Example sending a request using the ListMeetingTagsRequest method. +// req, resp := client.ListMeetingTagsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/UpdateAccountSettings -func (c *Chime) UpdateAccountSettingsRequest(input *UpdateAccountSettingsInput) (req *request.Request, output *UpdateAccountSettingsOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/ListMeetingTags +func (c *Chime) ListMeetingTagsRequest(input *ListMeetingTagsInput) (req *request.Request, output *ListMeetingTagsOutput) { op := &request.Operation{ - Name: opUpdateAccountSettings, - HTTPMethod: "PUT", - HTTPPath: "/accounts/{accountId}/settings", + Name: opListMeetingTags, + HTTPMethod: "GET", + HTTPPath: "/meetings/{meetingId}/tags", } if input == nil { - input = &UpdateAccountSettingsInput{} + input = &ListMeetingTagsInput{} } - output = &UpdateAccountSettingsOutput{} + output = &ListMeetingTagsOutput{} req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// UpdateAccountSettings API operation for Amazon Chime. +// ListMeetingTags API operation for Amazon Chime. // -// Updates the settings for the specified Amazon Chime account. You can update -// settings for remote control of shared screens, or for the dial-out option. -// For more information about these settings, see Use the Policies Page (https://docs.aws.amazon.com/chime/latest/ag/policies.html) -// in the Amazon Chime Administration Guide. +// Lists the tags applied to an Amazon Chime SDK meeting resource. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Chime's -// API operation UpdateAccountSettings for usage and error information. +// API operation ListMeetingTags for usage and error information. // // Returned Error Types: -// * UnauthorizedClientException -// The client is not currently authorized to make the request. -// -// * NotFoundException -// One or more of the resources in the request does not exist in the system. -// // * BadRequestException // The input parameters don't match the service's restrictions. // // * ForbiddenException -// The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported Region. +// The client is permanently forbidden from making the request. // -// * ConflictException -// The request could not be processed because of conflict in the current state -// of the resource. +// * NotFoundException +// One or more of the resources in the request does not exist in the system. // // * ThrottledClientException // The client exceeded its request rate limit. // +// * UnauthorizedClientException +// The client is not currently authorized to make the request. +// // * ServiceUnavailableException // The service is currently unavailable. // // * ServiceFailureException // The service encountered an unexpected error. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/UpdateAccountSettings -func (c *Chime) UpdateAccountSettings(input *UpdateAccountSettingsInput) (*UpdateAccountSettingsOutput, error) { - req, out := c.UpdateAccountSettingsRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/ListMeetingTags +func (c *Chime) ListMeetingTags(input *ListMeetingTagsInput) (*ListMeetingTagsOutput, error) { + req, out := c.ListMeetingTagsRequest(input) return out, req.Send() } -// UpdateAccountSettingsWithContext is the same as UpdateAccountSettings with the addition of +// ListMeetingTagsWithContext is the same as ListMeetingTags with the addition of // the ability to pass a context and additional request options. // -// See UpdateAccountSettings for details on how to use this API operation. +// See ListMeetingTags 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 *Chime) UpdateAccountSettingsWithContext(ctx aws.Context, input *UpdateAccountSettingsInput, opts ...request.Option) (*UpdateAccountSettingsOutput, error) { - req, out := c.UpdateAccountSettingsRequest(input) +func (c *Chime) ListMeetingTagsWithContext(ctx aws.Context, input *ListMeetingTagsInput, opts ...request.Option) (*ListMeetingTagsOutput, error) { + req, out := c.ListMeetingTagsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opUpdateBot = "UpdateBot" +const opListMeetings = "ListMeetings" -// UpdateBotRequest generates a "aws/request.Request" representing the -// client's request for the UpdateBot operation. The "output" return +// ListMeetingsRequest generates a "aws/request.Request" representing the +// client's request for the ListMeetings 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 UpdateBot for more information on using the UpdateBot +// See ListMeetings for more information on using the ListMeetings // 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 UpdateBotRequest method. -// req, resp := client.UpdateBotRequest(params) +// // Example sending a request using the ListMeetingsRequest method. +// req, resp := client.ListMeetingsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/UpdateBot -func (c *Chime) UpdateBotRequest(input *UpdateBotInput) (req *request.Request, output *UpdateBotOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/ListMeetings +func (c *Chime) ListMeetingsRequest(input *ListMeetingsInput) (req *request.Request, output *ListMeetingsOutput) { op := &request.Operation{ - Name: opUpdateBot, - HTTPMethod: "POST", - HTTPPath: "/accounts/{accountId}/bots/{botId}", + Name: opListMeetings, + HTTPMethod: "GET", + HTTPPath: "/meetings", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, } if input == nil { - input = &UpdateBotInput{} + input = &ListMeetingsInput{} } - output = &UpdateBotOutput{} + output = &ListMeetingsOutput{} req = c.newRequest(op, input, output) return } -// UpdateBot API operation for Amazon Chime. +// ListMeetings API operation for Amazon Chime. // -// Updates the status of the specified bot, such as starting or stopping the -// bot from running in your Amazon Chime Enterprise account. +// Lists up to 100 active Amazon Chime SDK meetings. For more information about +// the Amazon Chime SDK, see Using the Amazon Chime SDK (https://docs.aws.amazon.com/chime/latest/dg/meetings-sdk.html) +// in the Amazon Chime Developer Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Chime's -// API operation UpdateBot for usage and error information. +// API operation ListMeetings for usage and error information. // // Returned Error Types: -// * ServiceUnavailableException -// The service is currently unavailable. -// -// * ServiceFailureException -// The service encountered an unexpected error. +// * BadRequestException +// The input parameters don't match the service's restrictions. // // * ForbiddenException -// The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported Region. +// The client is permanently forbidden from making the request. // -// * BadRequestException -// The input parameters don't match the service's restrictions. +// * ThrottledClientException +// The client exceeded its request rate limit. // // * UnauthorizedClientException // The client is not currently authorized to make the request. // -// * NotFoundException -// One or more of the resources in the request does not exist in the system. +// * ServiceUnavailableException +// The service is currently unavailable. // -// * ThrottledClientException -// The client exceeded its request rate limit. +// * ServiceFailureException +// The service encountered an unexpected error. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/UpdateBot -func (c *Chime) UpdateBot(input *UpdateBotInput) (*UpdateBotOutput, error) { - req, out := c.UpdateBotRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/ListMeetings +func (c *Chime) ListMeetings(input *ListMeetingsInput) (*ListMeetingsOutput, error) { + req, out := c.ListMeetingsRequest(input) return out, req.Send() } -// UpdateBotWithContext is the same as UpdateBot with the addition of +// ListMeetingsWithContext is the same as ListMeetings with the addition of // the ability to pass a context and additional request options. // -// See UpdateBot for details on how to use this API operation. +// See ListMeetings 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 *Chime) UpdateBotWithContext(ctx aws.Context, input *UpdateBotInput, opts ...request.Option) (*UpdateBotOutput, error) { - req, out := c.UpdateBotRequest(input) +func (c *Chime) ListMeetingsWithContext(ctx aws.Context, input *ListMeetingsInput, opts ...request.Option) (*ListMeetingsOutput, error) { + req, out := c.ListMeetingsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opUpdateGlobalSettings = "UpdateGlobalSettings" +// ListMeetingsPages iterates over the pages of a ListMeetings operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListMeetings 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 ListMeetings operation. +// pageNum := 0 +// err := client.ListMeetingsPages(params, +// func(page *chime.ListMeetingsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *Chime) ListMeetingsPages(input *ListMeetingsInput, fn func(*ListMeetingsOutput, bool) bool) error { + return c.ListMeetingsPagesWithContext(aws.BackgroundContext(), input, fn) +} -// UpdateGlobalSettingsRequest generates a "aws/request.Request" representing the -// client's request for the UpdateGlobalSettings operation. The "output" return +// ListMeetingsPagesWithContext same as ListMeetingsPages 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 *Chime) ListMeetingsPagesWithContext(ctx aws.Context, input *ListMeetingsInput, fn func(*ListMeetingsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListMeetingsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListMeetingsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListMeetingsOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opListPhoneNumberOrders = "ListPhoneNumberOrders" + +// ListPhoneNumberOrdersRequest generates a "aws/request.Request" representing the +// client's request for the ListPhoneNumberOrders 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 UpdateGlobalSettings for more information on using the UpdateGlobalSettings +// See ListPhoneNumberOrders for more information on using the ListPhoneNumberOrders // 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 UpdateGlobalSettingsRequest method. -// req, resp := client.UpdateGlobalSettingsRequest(params) +// // Example sending a request using the ListPhoneNumberOrdersRequest method. +// req, resp := client.ListPhoneNumberOrdersRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/UpdateGlobalSettings -func (c *Chime) UpdateGlobalSettingsRequest(input *UpdateGlobalSettingsInput) (req *request.Request, output *UpdateGlobalSettingsOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/ListPhoneNumberOrders +func (c *Chime) ListPhoneNumberOrdersRequest(input *ListPhoneNumberOrdersInput) (req *request.Request, output *ListPhoneNumberOrdersOutput) { op := &request.Operation{ - Name: opUpdateGlobalSettings, - HTTPMethod: "PUT", - HTTPPath: "/settings", + Name: opListPhoneNumberOrders, + HTTPMethod: "GET", + HTTPPath: "/phone-number-orders", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, } if input == nil { - input = &UpdateGlobalSettingsInput{} + input = &ListPhoneNumberOrdersInput{} } - output = &UpdateGlobalSettingsOutput{} + output = &ListPhoneNumberOrdersOutput{} req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// UpdateGlobalSettings API operation for Amazon Chime. +// ListPhoneNumberOrders API operation for Amazon Chime. // -// Updates global settings for the administrator's AWS account, such as Amazon -// Chime Business Calling and Amazon Chime Voice Connector settings. +// Lists the phone number orders for the administrator's Amazon Chime account. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Chime's -// API operation UpdateGlobalSettings for usage and error information. +// API operation ListPhoneNumberOrders for usage and error information. // // Returned Error Types: // * UnauthorizedClientException // The client is not currently authorized to make the request. // // * ForbiddenException -// The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported Region. +// The client is permanently forbidden from making the request. // // * BadRequestException // The input parameters don't match the service's restrictions. @@ -12954,101 +13108,146 @@ func (c *Chime) UpdateGlobalSettingsRequest(input *UpdateGlobalSettingsInput) (r // * ServiceFailureException // The service encountered an unexpected error. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/UpdateGlobalSettings -func (c *Chime) UpdateGlobalSettings(input *UpdateGlobalSettingsInput) (*UpdateGlobalSettingsOutput, error) { - req, out := c.UpdateGlobalSettingsRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/ListPhoneNumberOrders +func (c *Chime) ListPhoneNumberOrders(input *ListPhoneNumberOrdersInput) (*ListPhoneNumberOrdersOutput, error) { + req, out := c.ListPhoneNumberOrdersRequest(input) return out, req.Send() } -// UpdateGlobalSettingsWithContext is the same as UpdateGlobalSettings with the addition of +// ListPhoneNumberOrdersWithContext is the same as ListPhoneNumberOrders with the addition of // the ability to pass a context and additional request options. // -// See UpdateGlobalSettings for details on how to use this API operation. +// See ListPhoneNumberOrders 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 *Chime) UpdateGlobalSettingsWithContext(ctx aws.Context, input *UpdateGlobalSettingsInput, opts ...request.Option) (*UpdateGlobalSettingsOutput, error) { - req, out := c.UpdateGlobalSettingsRequest(input) +func (c *Chime) ListPhoneNumberOrdersWithContext(ctx aws.Context, input *ListPhoneNumberOrdersInput, opts ...request.Option) (*ListPhoneNumberOrdersOutput, error) { + req, out := c.ListPhoneNumberOrdersRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opUpdatePhoneNumber = "UpdatePhoneNumber" +// ListPhoneNumberOrdersPages iterates over the pages of a ListPhoneNumberOrders operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListPhoneNumberOrders 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 ListPhoneNumberOrders operation. +// pageNum := 0 +// err := client.ListPhoneNumberOrdersPages(params, +// func(page *chime.ListPhoneNumberOrdersOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *Chime) ListPhoneNumberOrdersPages(input *ListPhoneNumberOrdersInput, fn func(*ListPhoneNumberOrdersOutput, bool) bool) error { + return c.ListPhoneNumberOrdersPagesWithContext(aws.BackgroundContext(), input, fn) +} -// UpdatePhoneNumberRequest generates a "aws/request.Request" representing the -// client's request for the UpdatePhoneNumber operation. The "output" return +// ListPhoneNumberOrdersPagesWithContext same as ListPhoneNumberOrdersPages 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 *Chime) ListPhoneNumberOrdersPagesWithContext(ctx aws.Context, input *ListPhoneNumberOrdersInput, fn func(*ListPhoneNumberOrdersOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListPhoneNumberOrdersInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListPhoneNumberOrdersRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListPhoneNumberOrdersOutput), !p.HasNextPage()) { + break + } + } + + 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 UpdatePhoneNumber for more information on using the UpdatePhoneNumber +// 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 UpdatePhoneNumberRequest method. -// req, resp := client.UpdatePhoneNumberRequest(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/chime-2018-05-01/UpdatePhoneNumber -func (c *Chime) UpdatePhoneNumberRequest(input *UpdatePhoneNumberInput) (req *request.Request, output *UpdatePhoneNumberOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/ListPhoneNumbers +func (c *Chime) ListPhoneNumbersRequest(input *ListPhoneNumbersInput) (req *request.Request, output *ListPhoneNumbersOutput) { op := &request.Operation{ - Name: opUpdatePhoneNumber, - HTTPMethod: "POST", - HTTPPath: "/phone-numbers/{phoneNumberId}", + Name: opListPhoneNumbers, + HTTPMethod: "GET", + HTTPPath: "/phone-numbers", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, } if input == nil { - input = &UpdatePhoneNumberInput{} + input = &ListPhoneNumbersInput{} } - output = &UpdatePhoneNumberOutput{} + output = &ListPhoneNumbersOutput{} req = c.newRequest(op, input, output) return } -// UpdatePhoneNumber API operation for Amazon Chime. -// -// Updates phone number details, such as product type or calling name, for the -// specified phone number ID. You can update one phone number detail at a time. -// For example, you can update either the product type or the calling name in -// one action. -// -// For toll-free numbers, you must use the Amazon Chime Voice Connector product -// type. +// ListPhoneNumbers API operation for Amazon Chime. // -// Updates to outbound calling names can take up to 72 hours to complete. Pending -// updates to outbound calling names must be complete before you can request -// another update. +// Lists the phone numbers for the specified Amazon Chime account, Amazon Chime +// user, Amazon Chime Voice Connector, or Amazon Chime Voice Connector 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 // the error. // // See the AWS API reference guide for Amazon Chime's -// API operation UpdatePhoneNumber for usage and error information. +// API operation ListPhoneNumbers for usage and error information. // // Returned Error Types: // * UnauthorizedClientException // The client is not currently authorized to make the request. // -// * NotFoundException -// One or more of the resources in the request does not exist in the system. -// // * ForbiddenException -// The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported Region. +// The client is permanently forbidden from making the request. // // * BadRequestException // The input parameters don't match the service's restrictions. @@ -13062,179 +13261,138 @@ func (c *Chime) UpdatePhoneNumberRequest(input *UpdatePhoneNumberInput) (req *re // * ServiceFailureException // The service encountered an unexpected error. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/UpdatePhoneNumber -func (c *Chime) UpdatePhoneNumber(input *UpdatePhoneNumberInput) (*UpdatePhoneNumberOutput, error) { - req, out := c.UpdatePhoneNumberRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/ListPhoneNumbers +func (c *Chime) ListPhoneNumbers(input *ListPhoneNumbersInput) (*ListPhoneNumbersOutput, error) { + req, out := c.ListPhoneNumbersRequest(input) return out, req.Send() } -// UpdatePhoneNumberWithContext is the same as UpdatePhoneNumber 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 UpdatePhoneNumber 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 *Chime) UpdatePhoneNumberWithContext(ctx aws.Context, input *UpdatePhoneNumberInput, opts ...request.Option) (*UpdatePhoneNumberOutput, error) { - req, out := c.UpdatePhoneNumberRequest(input) +func (c *Chime) 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 opUpdatePhoneNumberSettings = "UpdatePhoneNumberSettings" - -// UpdatePhoneNumberSettingsRequest generates a "aws/request.Request" representing the -// client's request for the UpdatePhoneNumberSettings 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. +// 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 UpdatePhoneNumberSettings for more information on using the UpdatePhoneNumberSettings -// API call, and error handling. +// See ListPhoneNumbers 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 ListPhoneNumbers operation. +// pageNum := 0 +// err := client.ListPhoneNumbersPages(params, +// func(page *chime.ListPhoneNumbersOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) // -// // Example sending a request using the UpdatePhoneNumberSettingsRequest method. -// req, resp := client.UpdatePhoneNumberSettingsRequest(params) -// -// err := req.Send() -// if err == nil { // resp is now filled -// fmt.Println(resp) -// } -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/UpdatePhoneNumberSettings -func (c *Chime) UpdatePhoneNumberSettingsRequest(input *UpdatePhoneNumberSettingsInput) (req *request.Request, output *UpdatePhoneNumberSettingsOutput) { - op := &request.Operation{ - Name: opUpdatePhoneNumberSettings, - HTTPMethod: "PUT", - HTTPPath: "/settings/phone-number", - } - - if input == nil { - input = &UpdatePhoneNumberSettingsInput{} - } - - output = &UpdatePhoneNumberSettingsOutput{} - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) - return -} - -// UpdatePhoneNumberSettings API operation for Amazon Chime. -// -// Updates the phone number settings for the administrator's AWS account, such -// as the default outbound calling name. You can update the default outbound -// calling name once every seven days. Outbound calling names can take up to -// 72 hours to update. -// -// 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 Chime's -// API operation UpdatePhoneNumberSettings for usage and error information. -// -// Returned Error Types: -// * UnauthorizedClientException -// The client is not currently authorized to make the request. -// -// * ForbiddenException -// The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported Region. -// -// * BadRequestException -// The input parameters don't match the service's restrictions. -// -// * ThrottledClientException -// The client exceeded its request rate limit. -// -// * ServiceUnavailableException -// The service is currently unavailable. -// -// * ServiceFailureException -// The service encountered an unexpected error. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/UpdatePhoneNumberSettings -func (c *Chime) UpdatePhoneNumberSettings(input *UpdatePhoneNumberSettingsInput) (*UpdatePhoneNumberSettingsOutput, error) { - req, out := c.UpdatePhoneNumberSettingsRequest(input) - return out, req.Send() +func (c *Chime) ListPhoneNumbersPages(input *ListPhoneNumbersInput, fn func(*ListPhoneNumbersOutput, bool) bool) error { + return c.ListPhoneNumbersPagesWithContext(aws.BackgroundContext(), input, fn) } -// UpdatePhoneNumberSettingsWithContext is the same as UpdatePhoneNumberSettings with the addition of -// the ability to pass a context and additional request options. -// -// See UpdatePhoneNumberSettings for details on how to use this API operation. +// 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 *Chime) UpdatePhoneNumberSettingsWithContext(ctx aws.Context, input *UpdatePhoneNumberSettingsInput, opts ...request.Option) (*UpdatePhoneNumberSettingsOutput, error) { - req, out := c.UpdatePhoneNumberSettingsRequest(input) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return out, req.Send() +func (c *Chime) 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 + }, + } + + for p.Next() { + if !fn(p.Page().(*ListPhoneNumbersOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() } -const opUpdateProxySession = "UpdateProxySession" +const opListProxySessions = "ListProxySessions" -// UpdateProxySessionRequest generates a "aws/request.Request" representing the -// client's request for the UpdateProxySession operation. The "output" return +// ListProxySessionsRequest generates a "aws/request.Request" representing the +// client's request for the ListProxySessions 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 UpdateProxySession for more information on using the UpdateProxySession +// See ListProxySessions for more information on using the ListProxySessions // 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 UpdateProxySessionRequest method. -// req, resp := client.UpdateProxySessionRequest(params) +// // Example sending a request using the ListProxySessionsRequest method. +// req, resp := client.ListProxySessionsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/UpdateProxySession -func (c *Chime) UpdateProxySessionRequest(input *UpdateProxySessionInput) (req *request.Request, output *UpdateProxySessionOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/ListProxySessions +func (c *Chime) ListProxySessionsRequest(input *ListProxySessionsInput) (req *request.Request, output *ListProxySessionsOutput) { op := &request.Operation{ - Name: opUpdateProxySession, - HTTPMethod: "POST", - HTTPPath: "/voice-connectors/{voiceConnectorId}/proxy-sessions/{proxySessionId}", + Name: opListProxySessions, + HTTPMethod: "GET", + HTTPPath: "/voice-connectors/{voiceConnectorId}/proxy-sessions", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, } if input == nil { - input = &UpdateProxySessionInput{} + input = &ListProxySessionsInput{} } - output = &UpdateProxySessionOutput{} + output = &ListProxySessionsOutput{} req = c.newRequest(op, input, output) return } -// UpdateProxySession API operation for Amazon Chime. +// ListProxySessions API operation for Amazon Chime. // -// Updates the specified proxy session details, such as voice or SMS capabilities. +// Lists the proxy sessions for the specified Amazon Chime Voice Connector. // // 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 Chime's -// API operation UpdateProxySession for usage and error information. +// API operation ListProxySessions for usage and error information. // // Returned Error Types: // * UnauthorizedClientException @@ -13244,8 +13402,7 @@ func (c *Chime) UpdateProxySessionRequest(input *UpdateProxySessionInput) (req * // One or more of the resources in the request does not exist in the system. // // * ForbiddenException -// The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported Region. +// The client is permanently forbidden from making the request. // // * BadRequestException // The input parameters don't match the service's restrictions. @@ -13259,92 +13416,149 @@ func (c *Chime) UpdateProxySessionRequest(input *UpdateProxySessionInput) (req * // * ServiceFailureException // The service encountered an unexpected error. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/UpdateProxySession -func (c *Chime) UpdateProxySession(input *UpdateProxySessionInput) (*UpdateProxySessionOutput, error) { - req, out := c.UpdateProxySessionRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/ListProxySessions +func (c *Chime) ListProxySessions(input *ListProxySessionsInput) (*ListProxySessionsOutput, error) { + req, out := c.ListProxySessionsRequest(input) return out, req.Send() } -// UpdateProxySessionWithContext is the same as UpdateProxySession with the addition of +// ListProxySessionsWithContext is the same as ListProxySessions with the addition of // the ability to pass a context and additional request options. // -// See UpdateProxySession for details on how to use this API operation. +// See ListProxySessions 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 *Chime) UpdateProxySessionWithContext(ctx aws.Context, input *UpdateProxySessionInput, opts ...request.Option) (*UpdateProxySessionOutput, error) { - req, out := c.UpdateProxySessionRequest(input) +func (c *Chime) ListProxySessionsWithContext(ctx aws.Context, input *ListProxySessionsInput, opts ...request.Option) (*ListProxySessionsOutput, error) { + req, out := c.ListProxySessionsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opUpdateRoom = "UpdateRoom" +// ListProxySessionsPages iterates over the pages of a ListProxySessions operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListProxySessions 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 ListProxySessions operation. +// pageNum := 0 +// err := client.ListProxySessionsPages(params, +// func(page *chime.ListProxySessionsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *Chime) ListProxySessionsPages(input *ListProxySessionsInput, fn func(*ListProxySessionsOutput, bool) bool) error { + return c.ListProxySessionsPagesWithContext(aws.BackgroundContext(), input, fn) +} -// UpdateRoomRequest generates a "aws/request.Request" representing the -// client's request for the UpdateRoom operation. The "output" return +// ListProxySessionsPagesWithContext same as ListProxySessionsPages 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 *Chime) ListProxySessionsPagesWithContext(ctx aws.Context, input *ListProxySessionsInput, fn func(*ListProxySessionsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListProxySessionsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListProxySessionsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListProxySessionsOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opListRoomMemberships = "ListRoomMemberships" + +// ListRoomMembershipsRequest generates a "aws/request.Request" representing the +// client's request for the ListRoomMemberships 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 UpdateRoom for more information on using the UpdateRoom +// See ListRoomMemberships for more information on using the ListRoomMemberships // 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 UpdateRoomRequest method. -// req, resp := client.UpdateRoomRequest(params) +// // Example sending a request using the ListRoomMembershipsRequest method. +// req, resp := client.ListRoomMembershipsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/UpdateRoom -func (c *Chime) UpdateRoomRequest(input *UpdateRoomInput) (req *request.Request, output *UpdateRoomOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/ListRoomMemberships +func (c *Chime) ListRoomMembershipsRequest(input *ListRoomMembershipsInput) (req *request.Request, output *ListRoomMembershipsOutput) { op := &request.Operation{ - Name: opUpdateRoom, - HTTPMethod: "POST", - HTTPPath: "/accounts/{accountId}/rooms/{roomId}", + Name: opListRoomMemberships, + HTTPMethod: "GET", + HTTPPath: "/accounts/{accountId}/rooms/{roomId}/memberships", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, } if input == nil { - input = &UpdateRoomInput{} + input = &ListRoomMembershipsInput{} } - output = &UpdateRoomOutput{} + output = &ListRoomMembershipsOutput{} req = c.newRequest(op, input, output) return } -// UpdateRoom API operation for Amazon Chime. +// ListRoomMemberships API operation for Amazon Chime. // -// Updates room details, such as the room name, for a room in an Amazon Chime -// Enterprise account. +// Lists the membership details for the specified room in an Amazon Chime Enterprise +// account, such as the members' IDs, email addresses, and names. // // 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 Chime's -// API operation UpdateRoom for usage and error information. +// API operation ListRoomMemberships for usage and error information. // // Returned Error Types: +// * NotFoundException +// One or more of the resources in the request does not exist in the system. +// // * BadRequestException // The input parameters don't match the service's restrictions. // // * ForbiddenException -// The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported Region. -// -// * NotFoundException -// One or more of the resources in the request does not exist in the system. +// The client is permanently forbidden from making the request. // // * UnauthorizedClientException // The client is not currently authorized to make the request. @@ -13358,88 +13572,142 @@ func (c *Chime) UpdateRoomRequest(input *UpdateRoomInput) (req *request.Request, // * ServiceFailureException // The service encountered an unexpected error. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/UpdateRoom -func (c *Chime) UpdateRoom(input *UpdateRoomInput) (*UpdateRoomOutput, error) { - req, out := c.UpdateRoomRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/ListRoomMemberships +func (c *Chime) ListRoomMemberships(input *ListRoomMembershipsInput) (*ListRoomMembershipsOutput, error) { + req, out := c.ListRoomMembershipsRequest(input) return out, req.Send() } -// UpdateRoomWithContext is the same as UpdateRoom with the addition of +// ListRoomMembershipsWithContext is the same as ListRoomMemberships with the addition of // the ability to pass a context and additional request options. // -// See UpdateRoom for details on how to use this API operation. +// See ListRoomMemberships 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 *Chime) UpdateRoomWithContext(ctx aws.Context, input *UpdateRoomInput, opts ...request.Option) (*UpdateRoomOutput, error) { - req, out := c.UpdateRoomRequest(input) +func (c *Chime) ListRoomMembershipsWithContext(ctx aws.Context, input *ListRoomMembershipsInput, opts ...request.Option) (*ListRoomMembershipsOutput, error) { + req, out := c.ListRoomMembershipsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opUpdateRoomMembership = "UpdateRoomMembership" +// ListRoomMembershipsPages iterates over the pages of a ListRoomMemberships operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListRoomMemberships 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 ListRoomMemberships operation. +// pageNum := 0 +// err := client.ListRoomMembershipsPages(params, +// func(page *chime.ListRoomMembershipsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *Chime) ListRoomMembershipsPages(input *ListRoomMembershipsInput, fn func(*ListRoomMembershipsOutput, bool) bool) error { + return c.ListRoomMembershipsPagesWithContext(aws.BackgroundContext(), input, fn) +} -// UpdateRoomMembershipRequest generates a "aws/request.Request" representing the -// client's request for the UpdateRoomMembership operation. The "output" return +// ListRoomMembershipsPagesWithContext same as ListRoomMembershipsPages 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 *Chime) ListRoomMembershipsPagesWithContext(ctx aws.Context, input *ListRoomMembershipsInput, fn func(*ListRoomMembershipsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListRoomMembershipsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListRoomMembershipsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListRoomMembershipsOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opListRooms = "ListRooms" + +// ListRoomsRequest generates a "aws/request.Request" representing the +// client's request for the ListRooms 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 UpdateRoomMembership for more information on using the UpdateRoomMembership +// See ListRooms for more information on using the ListRooms // 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 UpdateRoomMembershipRequest method. -// req, resp := client.UpdateRoomMembershipRequest(params) +// // Example sending a request using the ListRoomsRequest method. +// req, resp := client.ListRoomsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/UpdateRoomMembership -func (c *Chime) UpdateRoomMembershipRequest(input *UpdateRoomMembershipInput) (req *request.Request, output *UpdateRoomMembershipOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/ListRooms +func (c *Chime) ListRoomsRequest(input *ListRoomsInput) (req *request.Request, output *ListRoomsOutput) { op := &request.Operation{ - Name: opUpdateRoomMembership, - HTTPMethod: "POST", - HTTPPath: "/accounts/{accountId}/rooms/{roomId}/memberships/{memberId}", + Name: opListRooms, + HTTPMethod: "GET", + HTTPPath: "/accounts/{accountId}/rooms", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, } if input == nil { - input = &UpdateRoomMembershipInput{} + input = &ListRoomsInput{} } - output = &UpdateRoomMembershipOutput{} + output = &ListRoomsOutput{} req = c.newRequest(op, input, output) return } -// UpdateRoomMembership API operation for Amazon Chime. +// ListRooms API operation for Amazon Chime. // -// Updates room membership details, such as the member role, for a room in an -// Amazon Chime Enterprise account. The member role designates whether the member -// is a chat room administrator or a general chat room member. The member role -// can be updated only for user IDs. +// Lists the room details for the specified Amazon Chime Enterprise account. +// Optionally, filter the results by a member ID (user ID or bot ID) to see +// a list of rooms that the member belongs to. // // 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 Chime's -// API operation UpdateRoomMembership for usage and error information. +// API operation ListRooms for usage and error information. // // Returned Error Types: -// * UnauthorizedClientException -// The client is not currently authorized to make the request. -// // * NotFoundException // One or more of the resources in the request does not exist in the system. // @@ -13447,8 +13715,10 @@ func (c *Chime) UpdateRoomMembershipRequest(input *UpdateRoomMembershipInput) (r // The input parameters don't match the service's restrictions. // // * ForbiddenException -// The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported Region. +// The client is permanently forbidden from making the request. +// +// * UnauthorizedClientException +// The client is not currently authorized to make the request. // // * ThrottledClientException // The client exceeded its request rate limit. @@ -13459,99 +13729,149 @@ func (c *Chime) UpdateRoomMembershipRequest(input *UpdateRoomMembershipInput) (r // * ServiceFailureException // The service encountered an unexpected error. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/UpdateRoomMembership -func (c *Chime) UpdateRoomMembership(input *UpdateRoomMembershipInput) (*UpdateRoomMembershipOutput, error) { - req, out := c.UpdateRoomMembershipRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/ListRooms +func (c *Chime) ListRooms(input *ListRoomsInput) (*ListRoomsOutput, error) { + req, out := c.ListRoomsRequest(input) return out, req.Send() } -// UpdateRoomMembershipWithContext is the same as UpdateRoomMembership with the addition of +// ListRoomsWithContext is the same as ListRooms with the addition of // the ability to pass a context and additional request options. // -// See UpdateRoomMembership for details on how to use this API operation. +// See ListRooms 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 *Chime) UpdateRoomMembershipWithContext(ctx aws.Context, input *UpdateRoomMembershipInput, opts ...request.Option) (*UpdateRoomMembershipOutput, error) { - req, out := c.UpdateRoomMembershipRequest(input) +func (c *Chime) ListRoomsWithContext(ctx aws.Context, input *ListRoomsInput, opts ...request.Option) (*ListRoomsOutput, error) { + req, out := c.ListRoomsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opUpdateSipMediaApplication = "UpdateSipMediaApplication" +// ListRoomsPages iterates over the pages of a ListRooms operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListRooms 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 ListRooms operation. +// pageNum := 0 +// err := client.ListRoomsPages(params, +// func(page *chime.ListRoomsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *Chime) ListRoomsPages(input *ListRoomsInput, fn func(*ListRoomsOutput, bool) bool) error { + return c.ListRoomsPagesWithContext(aws.BackgroundContext(), input, fn) +} -// UpdateSipMediaApplicationRequest generates a "aws/request.Request" representing the -// client's request for the UpdateSipMediaApplication operation. The "output" return +// ListRoomsPagesWithContext same as ListRoomsPages 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 *Chime) ListRoomsPagesWithContext(ctx aws.Context, input *ListRoomsInput, fn func(*ListRoomsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListRoomsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListRoomsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListRoomsOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opListSipMediaApplications = "ListSipMediaApplications" + +// ListSipMediaApplicationsRequest generates a "aws/request.Request" representing the +// client's request for the ListSipMediaApplications 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 UpdateSipMediaApplication for more information on using the UpdateSipMediaApplication +// See ListSipMediaApplications for more information on using the ListSipMediaApplications // 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 UpdateSipMediaApplicationRequest method. -// req, resp := client.UpdateSipMediaApplicationRequest(params) +// // Example sending a request using the ListSipMediaApplicationsRequest method. +// req, resp := client.ListSipMediaApplicationsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/UpdateSipMediaApplication -func (c *Chime) UpdateSipMediaApplicationRequest(input *UpdateSipMediaApplicationInput) (req *request.Request, output *UpdateSipMediaApplicationOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/ListSipMediaApplications +func (c *Chime) ListSipMediaApplicationsRequest(input *ListSipMediaApplicationsInput) (req *request.Request, output *ListSipMediaApplicationsOutput) { op := &request.Operation{ - Name: opUpdateSipMediaApplication, - HTTPMethod: "PUT", - HTTPPath: "/sip-media-applications/{sipMediaApplicationId}", + Name: opListSipMediaApplications, + HTTPMethod: "GET", + HTTPPath: "/sip-media-applications", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, } if input == nil { - input = &UpdateSipMediaApplicationInput{} + input = &ListSipMediaApplicationsInput{} } - output = &UpdateSipMediaApplicationOutput{} + output = &ListSipMediaApplicationsOutput{} req = c.newRequest(op, input, output) return } -// UpdateSipMediaApplication API operation for Amazon Chime. +// ListSipMediaApplications API operation for Amazon Chime. // -// Updates the details for the specified SIP media application. +// Lists the SIP media applications under the administrator's AWS account. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Chime's -// API operation UpdateSipMediaApplication for usage and error information. +// API operation ListSipMediaApplications for usage and error information. // // Returned Error Types: // * UnauthorizedClientException // The client is not currently authorized to make the request. // -// * NotFoundException -// One or more of the resources in the request does not exist in the system. -// // * ForbiddenException -// The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported Region. +// The client is permanently forbidden from making the request. // // * BadRequestException // The input parameters don't match the service's restrictions. // -// * ConflictException -// The request could not be processed because of conflict in the current state -// of the resource. -// // * ThrottledClientException // The client exceeded its request rate limit. // @@ -13561,203 +13881,297 @@ func (c *Chime) UpdateSipMediaApplicationRequest(input *UpdateSipMediaApplicatio // * ServiceFailureException // The service encountered an unexpected error. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/UpdateSipMediaApplication -func (c *Chime) UpdateSipMediaApplication(input *UpdateSipMediaApplicationInput) (*UpdateSipMediaApplicationOutput, error) { - req, out := c.UpdateSipMediaApplicationRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/ListSipMediaApplications +func (c *Chime) ListSipMediaApplications(input *ListSipMediaApplicationsInput) (*ListSipMediaApplicationsOutput, error) { + req, out := c.ListSipMediaApplicationsRequest(input) return out, req.Send() } -// UpdateSipMediaApplicationWithContext is the same as UpdateSipMediaApplication with the addition of +// ListSipMediaApplicationsWithContext is the same as ListSipMediaApplications with the addition of // the ability to pass a context and additional request options. // -// See UpdateSipMediaApplication for details on how to use this API operation. +// See ListSipMediaApplications 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 *Chime) UpdateSipMediaApplicationWithContext(ctx aws.Context, input *UpdateSipMediaApplicationInput, opts ...request.Option) (*UpdateSipMediaApplicationOutput, error) { - req, out := c.UpdateSipMediaApplicationRequest(input) +func (c *Chime) ListSipMediaApplicationsWithContext(ctx aws.Context, input *ListSipMediaApplicationsInput, opts ...request.Option) (*ListSipMediaApplicationsOutput, error) { + req, out := c.ListSipMediaApplicationsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opUpdateSipRule = "UpdateSipRule" - -// UpdateSipRuleRequest generates a "aws/request.Request" representing the -// client's request for the UpdateSipRule 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. +// ListSipMediaApplicationsPages iterates over the pages of a ListSipMediaApplications operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. // -// See UpdateSipRule for more information on using the UpdateSipRule -// API call, and error handling. +// See ListSipMediaApplications 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 ListSipMediaApplications operation. +// pageNum := 0 +// err := client.ListSipMediaApplicationsPages(params, +// func(page *chime.ListSipMediaApplicationsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) // -// // Example sending a request using the UpdateSipRuleRequest method. -// req, resp := client.UpdateSipRuleRequest(params) +func (c *Chime) ListSipMediaApplicationsPages(input *ListSipMediaApplicationsInput, fn func(*ListSipMediaApplicationsOutput, bool) bool) error { + return c.ListSipMediaApplicationsPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListSipMediaApplicationsPagesWithContext same as ListSipMediaApplicationsPages except +// it takes a Context and allows setting request options on the pages. // -// err := req.Send() +// 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 *Chime) ListSipMediaApplicationsPagesWithContext(ctx aws.Context, input *ListSipMediaApplicationsInput, fn func(*ListSipMediaApplicationsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListSipMediaApplicationsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListSipMediaApplicationsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListSipMediaApplicationsOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opListSipRules = "ListSipRules" + +// ListSipRulesRequest generates a "aws/request.Request" representing the +// client's request for the ListSipRules 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 ListSipRules for more information on using the ListSipRules +// 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 ListSipRulesRequest method. +// req, resp := client.ListSipRulesRequest(params) +// +// err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/UpdateSipRule -func (c *Chime) UpdateSipRuleRequest(input *UpdateSipRuleInput) (req *request.Request, output *UpdateSipRuleOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/ListSipRules +func (c *Chime) ListSipRulesRequest(input *ListSipRulesInput) (req *request.Request, output *ListSipRulesOutput) { op := &request.Operation{ - Name: opUpdateSipRule, - HTTPMethod: "PUT", - HTTPPath: "/sip-rules/{sipRuleId}", + Name: opListSipRules, + HTTPMethod: "GET", + HTTPPath: "/sip-rules", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, } if input == nil { - input = &UpdateSipRuleInput{} + input = &ListSipRulesInput{} } - output = &UpdateSipRuleOutput{} + output = &ListSipRulesOutput{} req = c.newRequest(op, input, output) return } -// UpdateSipRule API operation for Amazon Chime. +// ListSipRules API operation for Amazon Chime. // -// Updates the details for the specified SIP rule. +// Lists the SIP rules under the administrator's AWS account. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Chime's -// API operation UpdateSipRule for usage and error information. +// API operation ListSipRules for usage and error information. // // Returned Error Types: // * UnauthorizedClientException // The client is not currently authorized to make the request. // -// * NotFoundException -// One or more of the resources in the request does not exist in the system. -// // * ForbiddenException -// The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported Region. +// The client is permanently forbidden from making the request. // // * BadRequestException // The input parameters don't match the service's restrictions. // -// * ConflictException -// The request could not be processed because of conflict in the current state -// of the resource. -// // * ThrottledClientException // The client exceeded its request rate limit. // -// * ResourceLimitExceededException -// The request exceeds the resource limit. -// // * ServiceUnavailableException // The service is currently unavailable. // // * ServiceFailureException // The service encountered an unexpected error. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/UpdateSipRule -func (c *Chime) UpdateSipRule(input *UpdateSipRuleInput) (*UpdateSipRuleOutput, error) { - req, out := c.UpdateSipRuleRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/ListSipRules +func (c *Chime) ListSipRules(input *ListSipRulesInput) (*ListSipRulesOutput, error) { + req, out := c.ListSipRulesRequest(input) return out, req.Send() } -// UpdateSipRuleWithContext is the same as UpdateSipRule with the addition of +// ListSipRulesWithContext is the same as ListSipRules with the addition of // the ability to pass a context and additional request options. // -// See UpdateSipRule for details on how to use this API operation. +// See ListSipRules 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 *Chime) UpdateSipRuleWithContext(ctx aws.Context, input *UpdateSipRuleInput, opts ...request.Option) (*UpdateSipRuleOutput, error) { - req, out := c.UpdateSipRuleRequest(input) +func (c *Chime) ListSipRulesWithContext(ctx aws.Context, input *ListSipRulesInput, opts ...request.Option) (*ListSipRulesOutput, error) { + req, out := c.ListSipRulesRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opUpdateUser = "UpdateUser" +// ListSipRulesPages iterates over the pages of a ListSipRules operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListSipRules 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 ListSipRules operation. +// pageNum := 0 +// err := client.ListSipRulesPages(params, +// func(page *chime.ListSipRulesOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *Chime) ListSipRulesPages(input *ListSipRulesInput, fn func(*ListSipRulesOutput, bool) bool) error { + return c.ListSipRulesPagesWithContext(aws.BackgroundContext(), input, fn) +} -// UpdateUserRequest generates a "aws/request.Request" representing the -// client's request for the UpdateUser operation. The "output" return +// ListSipRulesPagesWithContext same as ListSipRulesPages 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 *Chime) ListSipRulesPagesWithContext(ctx aws.Context, input *ListSipRulesInput, fn func(*ListSipRulesOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListSipRulesInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListSipRulesRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListSipRulesOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opListTagsForResource = "ListTagsForResource" + +// ListTagsForResourceRequest generates a "aws/request.Request" representing the +// client's request for the ListTagsForResource operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See UpdateUser for more information on using the UpdateUser +// See ListTagsForResource for more information on using the ListTagsForResource // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the UpdateUserRequest method. -// req, resp := client.UpdateUserRequest(params) +// // Example sending a request using the ListTagsForResourceRequest method. +// req, resp := client.ListTagsForResourceRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/UpdateUser -func (c *Chime) UpdateUserRequest(input *UpdateUserInput) (req *request.Request, output *UpdateUserOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/ListTagsForResource +func (c *Chime) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req *request.Request, output *ListTagsForResourceOutput) { op := &request.Operation{ - Name: opUpdateUser, - HTTPMethod: "POST", - HTTPPath: "/accounts/{accountId}/users/{userId}", + Name: opListTagsForResource, + HTTPMethod: "GET", + HTTPPath: "/tags", } if input == nil { - input = &UpdateUserInput{} + input = &ListTagsForResourceInput{} } - output = &UpdateUserOutput{} + output = &ListTagsForResourceOutput{} req = c.newRequest(op, input, output) return } -// UpdateUser API operation for Amazon Chime. +// ListTagsForResource API operation for Amazon Chime. // -// Updates user details for a specified user ID. Currently, only LicenseType -// updates are supported for this action. +// Lists the tags applied to an Amazon Chime SDK meeting resource. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Chime's -// API operation UpdateUser for usage and error information. +// API operation ListTagsForResource for usage and error information. // // Returned Error Types: -// * UnauthorizedClientException -// The client is not currently authorized to make the request. -// -// * NotFoundException -// One or more of the resources in the request does not exist in the system. +// * BadRequestException +// The input parameters don't match the service's restrictions. // // * ForbiddenException -// The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported Region. +// The client is permanently forbidden from making the request. // -// * BadRequestException -// The input parameters don't match the service's restrictions. +// * NotFoundException +// One or more of the resources in the request does not exist in the system. // -// * ThrottledClientException -// The client exceeded its request rate limit. +// * UnauthorizedClientException +// The client is not currently authorized to make the request. // // * ServiceUnavailableException // The service is currently unavailable. @@ -13765,81 +14179,88 @@ func (c *Chime) UpdateUserRequest(input *UpdateUserInput) (req *request.Request, // * ServiceFailureException // The service encountered an unexpected error. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/UpdateUser -func (c *Chime) UpdateUser(input *UpdateUserInput) (*UpdateUserOutput, error) { - req, out := c.UpdateUserRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/ListTagsForResource +func (c *Chime) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) { + req, out := c.ListTagsForResourceRequest(input) return out, req.Send() } -// UpdateUserWithContext is the same as UpdateUser with the addition of +// ListTagsForResourceWithContext is the same as ListTagsForResource with the addition of // the ability to pass a context and additional request options. // -// See UpdateUser for details on how to use this API operation. +// See ListTagsForResource for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *Chime) UpdateUserWithContext(ctx aws.Context, input *UpdateUserInput, opts ...request.Option) (*UpdateUserOutput, error) { - req, out := c.UpdateUserRequest(input) +func (c *Chime) ListTagsForResourceWithContext(ctx aws.Context, input *ListTagsForResourceInput, opts ...request.Option) (*ListTagsForResourceOutput, error) { + req, out := c.ListTagsForResourceRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opUpdateUserSettings = "UpdateUserSettings" +const opListUsers = "ListUsers" -// UpdateUserSettingsRequest generates a "aws/request.Request" representing the -// client's request for the UpdateUserSettings operation. The "output" return +// 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 UpdateUserSettings for more information on using the UpdateUserSettings +// 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 UpdateUserSettingsRequest method. -// req, resp := client.UpdateUserSettingsRequest(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/chime-2018-05-01/UpdateUserSettings -func (c *Chime) UpdateUserSettingsRequest(input *UpdateUserSettingsInput) (req *request.Request, output *UpdateUserSettingsOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/ListUsers +func (c *Chime) ListUsersRequest(input *ListUsersInput) (req *request.Request, output *ListUsersOutput) { op := &request.Operation{ - Name: opUpdateUserSettings, - HTTPMethod: "PUT", - HTTPPath: "/accounts/{accountId}/users/{userId}/settings", + Name: opListUsers, + HTTPMethod: "GET", + HTTPPath: "/accounts/{accountId}/users", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, } if input == nil { - input = &UpdateUserSettingsInput{} + input = &ListUsersInput{} } - output = &UpdateUserSettingsOutput{} + output = &ListUsersOutput{} req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// UpdateUserSettings API operation for Amazon Chime. +// ListUsers API operation for Amazon Chime. // -// Updates the settings for the specified user, such as phone number settings. +// Lists the users that belong to the specified Amazon Chime account. You can +// specify an email address to list only the user that the email address belongs +// to. // // 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 Chime's -// API operation UpdateUserSettings for usage and error information. +// API operation ListUsers for usage and error information. // // Returned Error Types: // * UnauthorizedClientException @@ -13849,8 +14270,7 @@ func (c *Chime) UpdateUserSettingsRequest(input *UpdateUserSettingsInput) (req * // One or more of the resources in the request does not exist in the system. // // * ForbiddenException -// The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported Region. +// The client is permanently forbidden from making the request. // // * BadRequestException // The input parameters don't match the service's restrictions. @@ -13864,91 +14284,146 @@ func (c *Chime) UpdateUserSettingsRequest(input *UpdateUserSettingsInput) (req * // * ServiceFailureException // The service encountered an unexpected error. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/UpdateUserSettings -func (c *Chime) UpdateUserSettings(input *UpdateUserSettingsInput) (*UpdateUserSettingsOutput, error) { - req, out := c.UpdateUserSettingsRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/ListUsers +func (c *Chime) ListUsers(input *ListUsersInput) (*ListUsersOutput, error) { + req, out := c.ListUsersRequest(input) return out, req.Send() } -// UpdateUserSettingsWithContext is the same as UpdateUserSettings 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 UpdateUserSettings 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 *Chime) UpdateUserSettingsWithContext(ctx aws.Context, input *UpdateUserSettingsInput, opts ...request.Option) (*UpdateUserSettingsOutput, error) { - req, out := c.UpdateUserSettingsRequest(input) +func (c *Chime) 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 opUpdateVoiceConnector = "UpdateVoiceConnector" - -// UpdateVoiceConnectorRequest generates a "aws/request.Request" representing the -// client's request for the UpdateVoiceConnector operation. The "output" return +// 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 *chime.ListUsersOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *Chime) ListUsersPages(input *ListUsersInput, fn func(*ListUsersOutput, bool) bool) error { + return c.ListUsersPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// 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 *Chime) 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 + }, + } + + for p.Next() { + if !fn(p.Page().(*ListUsersOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opListVoiceConnectorGroups = "ListVoiceConnectorGroups" + +// ListVoiceConnectorGroupsRequest generates a "aws/request.Request" representing the +// client's request for the ListVoiceConnectorGroups 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 UpdateVoiceConnector for more information on using the UpdateVoiceConnector +// See ListVoiceConnectorGroups for more information on using the ListVoiceConnectorGroups // 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 UpdateVoiceConnectorRequest method. -// req, resp := client.UpdateVoiceConnectorRequest(params) +// // Example sending a request using the ListVoiceConnectorGroupsRequest method. +// req, resp := client.ListVoiceConnectorGroupsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/UpdateVoiceConnector -func (c *Chime) UpdateVoiceConnectorRequest(input *UpdateVoiceConnectorInput) (req *request.Request, output *UpdateVoiceConnectorOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/ListVoiceConnectorGroups +func (c *Chime) ListVoiceConnectorGroupsRequest(input *ListVoiceConnectorGroupsInput) (req *request.Request, output *ListVoiceConnectorGroupsOutput) { op := &request.Operation{ - Name: opUpdateVoiceConnector, - HTTPMethod: "PUT", - HTTPPath: "/voice-connectors/{voiceConnectorId}", + Name: opListVoiceConnectorGroups, + HTTPMethod: "GET", + HTTPPath: "/voice-connector-groups", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, } if input == nil { - input = &UpdateVoiceConnectorInput{} + input = &ListVoiceConnectorGroupsInput{} } - output = &UpdateVoiceConnectorOutput{} + output = &ListVoiceConnectorGroupsOutput{} req = c.newRequest(op, input, output) return } -// UpdateVoiceConnector API operation for Amazon Chime. +// ListVoiceConnectorGroups API operation for Amazon Chime. // -// Updates details for the specified Amazon Chime Voice Connector. +// Lists the Amazon Chime Voice Connector groups for the administrator's AWS +// account. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Chime's -// API operation UpdateVoiceConnector for usage and error information. +// API operation ListVoiceConnectorGroups for usage and error information. // // Returned Error Types: // * UnauthorizedClientException // The client is not currently authorized to make the request. // -// * NotFoundException -// One or more of the resources in the request does not exist in the system. -// // * ForbiddenException -// The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported Region. +// The client is permanently forbidden from making the request. // // * BadRequestException // The input parameters don't match the service's restrictions. @@ -13962,81 +14437,132 @@ func (c *Chime) UpdateVoiceConnectorRequest(input *UpdateVoiceConnectorInput) (r // * ServiceFailureException // The service encountered an unexpected error. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/UpdateVoiceConnector -func (c *Chime) UpdateVoiceConnector(input *UpdateVoiceConnectorInput) (*UpdateVoiceConnectorOutput, error) { - req, out := c.UpdateVoiceConnectorRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/ListVoiceConnectorGroups +func (c *Chime) ListVoiceConnectorGroups(input *ListVoiceConnectorGroupsInput) (*ListVoiceConnectorGroupsOutput, error) { + req, out := c.ListVoiceConnectorGroupsRequest(input) return out, req.Send() } -// UpdateVoiceConnectorWithContext is the same as UpdateVoiceConnector with the addition of +// ListVoiceConnectorGroupsWithContext is the same as ListVoiceConnectorGroups with the addition of // the ability to pass a context and additional request options. // -// See UpdateVoiceConnector for details on how to use this API operation. +// See ListVoiceConnectorGroups 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 *Chime) UpdateVoiceConnectorWithContext(ctx aws.Context, input *UpdateVoiceConnectorInput, opts ...request.Option) (*UpdateVoiceConnectorOutput, error) { - req, out := c.UpdateVoiceConnectorRequest(input) +func (c *Chime) ListVoiceConnectorGroupsWithContext(ctx aws.Context, input *ListVoiceConnectorGroupsInput, opts ...request.Option) (*ListVoiceConnectorGroupsOutput, error) { + req, out := c.ListVoiceConnectorGroupsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opUpdateVoiceConnectorGroup = "UpdateVoiceConnectorGroup" +// ListVoiceConnectorGroupsPages iterates over the pages of a ListVoiceConnectorGroups operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListVoiceConnectorGroups 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 ListVoiceConnectorGroups operation. +// pageNum := 0 +// err := client.ListVoiceConnectorGroupsPages(params, +// func(page *chime.ListVoiceConnectorGroupsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *Chime) ListVoiceConnectorGroupsPages(input *ListVoiceConnectorGroupsInput, fn func(*ListVoiceConnectorGroupsOutput, bool) bool) error { + return c.ListVoiceConnectorGroupsPagesWithContext(aws.BackgroundContext(), input, fn) +} -// UpdateVoiceConnectorGroupRequest generates a "aws/request.Request" representing the -// client's request for the UpdateVoiceConnectorGroup operation. The "output" return +// ListVoiceConnectorGroupsPagesWithContext same as ListVoiceConnectorGroupsPages 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 *Chime) ListVoiceConnectorGroupsPagesWithContext(ctx aws.Context, input *ListVoiceConnectorGroupsInput, fn func(*ListVoiceConnectorGroupsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListVoiceConnectorGroupsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListVoiceConnectorGroupsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListVoiceConnectorGroupsOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opListVoiceConnectorTerminationCredentials = "ListVoiceConnectorTerminationCredentials" + +// ListVoiceConnectorTerminationCredentialsRequest generates a "aws/request.Request" representing the +// client's request for the ListVoiceConnectorTerminationCredentials 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 UpdateVoiceConnectorGroup for more information on using the UpdateVoiceConnectorGroup +// See ListVoiceConnectorTerminationCredentials for more information on using the ListVoiceConnectorTerminationCredentials // 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 UpdateVoiceConnectorGroupRequest method. -// req, resp := client.UpdateVoiceConnectorGroupRequest(params) +// // Example sending a request using the ListVoiceConnectorTerminationCredentialsRequest method. +// req, resp := client.ListVoiceConnectorTerminationCredentialsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/UpdateVoiceConnectorGroup -func (c *Chime) UpdateVoiceConnectorGroupRequest(input *UpdateVoiceConnectorGroupInput) (req *request.Request, output *UpdateVoiceConnectorGroupOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/ListVoiceConnectorTerminationCredentials +func (c *Chime) ListVoiceConnectorTerminationCredentialsRequest(input *ListVoiceConnectorTerminationCredentialsInput) (req *request.Request, output *ListVoiceConnectorTerminationCredentialsOutput) { op := &request.Operation{ - Name: opUpdateVoiceConnectorGroup, - HTTPMethod: "PUT", - HTTPPath: "/voice-connector-groups/{voiceConnectorGroupId}", + Name: opListVoiceConnectorTerminationCredentials, + HTTPMethod: "GET", + HTTPPath: "/voice-connectors/{voiceConnectorId}/termination/credentials", } if input == nil { - input = &UpdateVoiceConnectorGroupInput{} + input = &ListVoiceConnectorTerminationCredentialsInput{} } - output = &UpdateVoiceConnectorGroupOutput{} + output = &ListVoiceConnectorTerminationCredentialsOutput{} req = c.newRequest(op, input, output) return } -// UpdateVoiceConnectorGroup API operation for Amazon Chime. +// ListVoiceConnectorTerminationCredentials API operation for Amazon Chime. // -// Updates details for the specified Amazon Chime Voice Connector group, such -// as the name and Amazon Chime Voice Connector priority ranking. +// Lists the SIP credentials for the specified Amazon Chime Voice Connector. // // 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 Chime's -// API operation UpdateVoiceConnectorGroup for usage and error information. +// API operation ListVoiceConnectorTerminationCredentials for usage and error information. // // Returned Error Types: // * UnauthorizedClientException @@ -14046,16 +14572,11 @@ func (c *Chime) UpdateVoiceConnectorGroupRequest(input *UpdateVoiceConnectorGrou // One or more of the resources in the request does not exist in the system. // // * ForbiddenException -// The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported Region. +// The client is permanently forbidden from making the request. // // * BadRequestException // The input parameters don't match the service's restrictions. // -// * ConflictException -// The request could not be processed because of conflict in the current state -// of the resource. -// // * ThrottledClientException // The client exceeded its request rate limit. // @@ -14065,301 +14586,10588 @@ func (c *Chime) UpdateVoiceConnectorGroupRequest(input *UpdateVoiceConnectorGrou // * ServiceFailureException // The service encountered an unexpected error. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/UpdateVoiceConnectorGroup -func (c *Chime) UpdateVoiceConnectorGroup(input *UpdateVoiceConnectorGroupInput) (*UpdateVoiceConnectorGroupOutput, error) { - req, out := c.UpdateVoiceConnectorGroupRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/ListVoiceConnectorTerminationCredentials +func (c *Chime) ListVoiceConnectorTerminationCredentials(input *ListVoiceConnectorTerminationCredentialsInput) (*ListVoiceConnectorTerminationCredentialsOutput, error) { + req, out := c.ListVoiceConnectorTerminationCredentialsRequest(input) return out, req.Send() } -// UpdateVoiceConnectorGroupWithContext is the same as UpdateVoiceConnectorGroup with the addition of +// ListVoiceConnectorTerminationCredentialsWithContext is the same as ListVoiceConnectorTerminationCredentials with the addition of // the ability to pass a context and additional request options. // -// See UpdateVoiceConnectorGroup for details on how to use this API operation. +// See ListVoiceConnectorTerminationCredentials 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 *Chime) UpdateVoiceConnectorGroupWithContext(ctx aws.Context, input *UpdateVoiceConnectorGroupInput, opts ...request.Option) (*UpdateVoiceConnectorGroupOutput, error) { - req, out := c.UpdateVoiceConnectorGroupRequest(input) +func (c *Chime) ListVoiceConnectorTerminationCredentialsWithContext(ctx aws.Context, input *ListVoiceConnectorTerminationCredentialsInput, opts ...request.Option) (*ListVoiceConnectorTerminationCredentialsOutput, error) { + req, out := c.ListVoiceConnectorTerminationCredentialsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// You don't have permissions to perform the requested operation. -type AccessDeniedException struct { - _ struct{} `type:"structure"` - RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` +const opListVoiceConnectors = "ListVoiceConnectors" - Code_ *string `locationName:"Code" type:"string" enum:"ErrorCode"` +// ListVoiceConnectorsRequest generates a "aws/request.Request" representing the +// client's request for the ListVoiceConnectors 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 ListVoiceConnectors for more information on using the ListVoiceConnectors +// 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 ListVoiceConnectorsRequest method. +// req, resp := client.ListVoiceConnectorsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/ListVoiceConnectors +func (c *Chime) ListVoiceConnectorsRequest(input *ListVoiceConnectorsInput) (req *request.Request, output *ListVoiceConnectorsOutput) { + op := &request.Operation{ + Name: opListVoiceConnectors, + HTTPMethod: "GET", + HTTPPath: "/voice-connectors", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, + } - Message_ *string `locationName:"Message" type:"string"` -} + if input == nil { + input = &ListVoiceConnectorsInput{} + } + + output = &ListVoiceConnectorsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListVoiceConnectors API operation for Amazon Chime. +// +// Lists the Amazon Chime Voice Connectors for the administrator's AWS account. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Chime's +// API operation ListVoiceConnectors for usage and error information. +// +// Returned Error Types: +// * UnauthorizedClientException +// The client is not currently authorized to make the request. +// +// * ForbiddenException +// The client is permanently forbidden from making the request. +// +// * BadRequestException +// The input parameters don't match the service's restrictions. +// +// * ThrottledClientException +// The client exceeded its request rate limit. +// +// * ServiceUnavailableException +// The service is currently unavailable. +// +// * ServiceFailureException +// The service encountered an unexpected error. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/ListVoiceConnectors +func (c *Chime) ListVoiceConnectors(input *ListVoiceConnectorsInput) (*ListVoiceConnectorsOutput, error) { + req, out := c.ListVoiceConnectorsRequest(input) + return out, req.Send() +} + +// ListVoiceConnectorsWithContext is the same as ListVoiceConnectors with the addition of +// the ability to pass a context and additional request options. +// +// See ListVoiceConnectors 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 *Chime) ListVoiceConnectorsWithContext(ctx aws.Context, input *ListVoiceConnectorsInput, opts ...request.Option) (*ListVoiceConnectorsOutput, error) { + req, out := c.ListVoiceConnectorsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// ListVoiceConnectorsPages iterates over the pages of a ListVoiceConnectors operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListVoiceConnectors 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 ListVoiceConnectors operation. +// pageNum := 0 +// err := client.ListVoiceConnectorsPages(params, +// func(page *chime.ListVoiceConnectorsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *Chime) ListVoiceConnectorsPages(input *ListVoiceConnectorsInput, fn func(*ListVoiceConnectorsOutput, bool) bool) error { + return c.ListVoiceConnectorsPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListVoiceConnectorsPagesWithContext same as ListVoiceConnectorsPages 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 *Chime) ListVoiceConnectorsPagesWithContext(ctx aws.Context, input *ListVoiceConnectorsInput, fn func(*ListVoiceConnectorsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListVoiceConnectorsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListVoiceConnectorsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListVoiceConnectorsOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opLogoutUser = "LogoutUser" + +// LogoutUserRequest generates a "aws/request.Request" representing the +// client's request for the LogoutUser 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 LogoutUser for more information on using the LogoutUser +// 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 LogoutUserRequest method. +// req, resp := client.LogoutUserRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/LogoutUser +func (c *Chime) LogoutUserRequest(input *LogoutUserInput) (req *request.Request, output *LogoutUserOutput) { + op := &request.Operation{ + Name: opLogoutUser, + HTTPMethod: "POST", + HTTPPath: "/accounts/{accountId}/users/{userId}?operation=logout", + } + + if input == nil { + input = &LogoutUserInput{} + } + + output = &LogoutUserOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// LogoutUser API operation for Amazon Chime. +// +// Logs out the specified user from all of the devices they are currently logged +// into. +// +// 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 Chime's +// API operation LogoutUser for usage and error information. +// +// Returned Error Types: +// * UnauthorizedClientException +// The client is not currently authorized to make the request. +// +// * NotFoundException +// One or more of the resources in the request does not exist in the system. +// +// * ForbiddenException +// The client is permanently forbidden from making the request. +// +// * BadRequestException +// The input parameters don't match the service's restrictions. +// +// * ThrottledClientException +// The client exceeded its request rate limit. +// +// * ServiceUnavailableException +// The service is currently unavailable. +// +// * ServiceFailureException +// The service encountered an unexpected error. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/LogoutUser +func (c *Chime) LogoutUser(input *LogoutUserInput) (*LogoutUserOutput, error) { + req, out := c.LogoutUserRequest(input) + return out, req.Send() +} + +// LogoutUserWithContext is the same as LogoutUser with the addition of +// the ability to pass a context and additional request options. +// +// See LogoutUser 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 *Chime) LogoutUserWithContext(ctx aws.Context, input *LogoutUserInput, opts ...request.Option) (*LogoutUserOutput, error) { + req, out := c.LogoutUserRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opPutAppInstanceRetentionSettings = "PutAppInstanceRetentionSettings" + +// PutAppInstanceRetentionSettingsRequest generates a "aws/request.Request" representing the +// client's request for the PutAppInstanceRetentionSettings 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 PutAppInstanceRetentionSettings for more information on using the PutAppInstanceRetentionSettings +// 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 PutAppInstanceRetentionSettingsRequest method. +// req, resp := client.PutAppInstanceRetentionSettingsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/PutAppInstanceRetentionSettings +func (c *Chime) PutAppInstanceRetentionSettingsRequest(input *PutAppInstanceRetentionSettingsInput) (req *request.Request, output *PutAppInstanceRetentionSettingsOutput) { + op := &request.Operation{ + Name: opPutAppInstanceRetentionSettings, + HTTPMethod: "PUT", + HTTPPath: "/app-instances/{appInstanceArn}/retention-settings", + } + + if input == nil { + input = &PutAppInstanceRetentionSettingsInput{} + } + + output = &PutAppInstanceRetentionSettingsOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("identity-", nil)) + req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) + return +} + +// PutAppInstanceRetentionSettings API operation for Amazon Chime. +// +// Sets the amount of time in days that a given app instance retains data. +// +// 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 Chime's +// API operation PutAppInstanceRetentionSettings for usage and error information. +// +// Returned Error Types: +// * UnauthorizedClientException +// The client is not currently authorized to make the request. +// +// * NotFoundException +// One or more of the resources in the request does not exist in the system. +// +// * BadRequestException +// The input parameters don't match the service's restrictions. +// +// * ForbiddenException +// The client is permanently forbidden from making the request. +// +// * ConflictException +// The request could not be processed because of conflict in the current state +// of the resource. +// +// * ThrottledClientException +// The client exceeded its request rate limit. +// +// * ServiceUnavailableException +// The service is currently unavailable. +// +// * ServiceFailureException +// The service encountered an unexpected error. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/PutAppInstanceRetentionSettings +func (c *Chime) PutAppInstanceRetentionSettings(input *PutAppInstanceRetentionSettingsInput) (*PutAppInstanceRetentionSettingsOutput, error) { + req, out := c.PutAppInstanceRetentionSettingsRequest(input) + return out, req.Send() +} + +// PutAppInstanceRetentionSettingsWithContext is the same as PutAppInstanceRetentionSettings with the addition of +// the ability to pass a context and additional request options. +// +// See PutAppInstanceRetentionSettings 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 *Chime) PutAppInstanceRetentionSettingsWithContext(ctx aws.Context, input *PutAppInstanceRetentionSettingsInput, opts ...request.Option) (*PutAppInstanceRetentionSettingsOutput, error) { + req, out := c.PutAppInstanceRetentionSettingsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opPutAppInstanceStreamingConfigurations = "PutAppInstanceStreamingConfigurations" + +// PutAppInstanceStreamingConfigurationsRequest generates a "aws/request.Request" representing the +// client's request for the PutAppInstanceStreamingConfigurations 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 PutAppInstanceStreamingConfigurations for more information on using the PutAppInstanceStreamingConfigurations +// 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 PutAppInstanceStreamingConfigurationsRequest method. +// req, resp := client.PutAppInstanceStreamingConfigurationsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/PutAppInstanceStreamingConfigurations +func (c *Chime) PutAppInstanceStreamingConfigurationsRequest(input *PutAppInstanceStreamingConfigurationsInput) (req *request.Request, output *PutAppInstanceStreamingConfigurationsOutput) { + op := &request.Operation{ + Name: opPutAppInstanceStreamingConfigurations, + HTTPMethod: "PUT", + HTTPPath: "/app-instances/{appInstanceArn}/streaming-configurations", + } + + if input == nil { + input = &PutAppInstanceStreamingConfigurationsInput{} + } + + output = &PutAppInstanceStreamingConfigurationsOutput{} + req = c.newRequest(op, input, output) + return +} + +// PutAppInstanceStreamingConfigurations API operation for Amazon Chime. +// +// The data streaming configurations of an app 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 Chime's +// API operation PutAppInstanceStreamingConfigurations for usage and error information. +// +// Returned Error Types: +// * NotFoundException +// One or more of the resources in the request does not exist in the system. +// +// * BadRequestException +// The input parameters don't match the service's restrictions. +// +// * ForbiddenException +// The client is permanently forbidden from making the request. +// +// * UnauthorizedClientException +// The client is not currently authorized to make the request. +// +// * ThrottledClientException +// The client exceeded its request rate limit. +// +// * ServiceUnavailableException +// The service is currently unavailable. +// +// * ServiceFailureException +// The service encountered an unexpected error. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/PutAppInstanceStreamingConfigurations +func (c *Chime) PutAppInstanceStreamingConfigurations(input *PutAppInstanceStreamingConfigurationsInput) (*PutAppInstanceStreamingConfigurationsOutput, error) { + req, out := c.PutAppInstanceStreamingConfigurationsRequest(input) + return out, req.Send() +} + +// PutAppInstanceStreamingConfigurationsWithContext is the same as PutAppInstanceStreamingConfigurations with the addition of +// the ability to pass a context and additional request options. +// +// See PutAppInstanceStreamingConfigurations 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 *Chime) PutAppInstanceStreamingConfigurationsWithContext(ctx aws.Context, input *PutAppInstanceStreamingConfigurationsInput, opts ...request.Option) (*PutAppInstanceStreamingConfigurationsOutput, error) { + req, out := c.PutAppInstanceStreamingConfigurationsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opPutEventsConfiguration = "PutEventsConfiguration" + +// PutEventsConfigurationRequest generates a "aws/request.Request" representing the +// client's request for the PutEventsConfiguration 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 PutEventsConfiguration for more information on using the PutEventsConfiguration +// 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 PutEventsConfigurationRequest method. +// req, resp := client.PutEventsConfigurationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/PutEventsConfiguration +func (c *Chime) PutEventsConfigurationRequest(input *PutEventsConfigurationInput) (req *request.Request, output *PutEventsConfigurationOutput) { + op := &request.Operation{ + Name: opPutEventsConfiguration, + HTTPMethod: "PUT", + HTTPPath: "/accounts/{accountId}/bots/{botId}/events-configuration", + } + + if input == nil { + input = &PutEventsConfigurationInput{} + } + + output = &PutEventsConfigurationOutput{} + req = c.newRequest(op, input, output) + return +} + +// PutEventsConfiguration API operation for Amazon Chime. +// +// Creates an events configuration that allows a bot to receive outgoing events +// sent by Amazon Chime. Choose either an HTTPS endpoint or a Lambda function +// ARN. For more information, see Bot. +// +// 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 Chime's +// API operation PutEventsConfiguration for usage and error information. +// +// Returned Error Types: +// * ServiceUnavailableException +// The service is currently unavailable. +// +// * ServiceFailureException +// The service encountered an unexpected error. +// +// * ForbiddenException +// The client is permanently forbidden from making the request. +// +// * BadRequestException +// The input parameters don't match the service's restrictions. +// +// * UnauthorizedClientException +// The client is not currently authorized to make the request. +// +// * ResourceLimitExceededException +// The request exceeds the resource limit. +// +// * NotFoundException +// One or more of the resources in the request does not exist in the system. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/PutEventsConfiguration +func (c *Chime) PutEventsConfiguration(input *PutEventsConfigurationInput) (*PutEventsConfigurationOutput, error) { + req, out := c.PutEventsConfigurationRequest(input) + return out, req.Send() +} + +// PutEventsConfigurationWithContext is the same as PutEventsConfiguration with the addition of +// the ability to pass a context and additional request options. +// +// See PutEventsConfiguration 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 *Chime) PutEventsConfigurationWithContext(ctx aws.Context, input *PutEventsConfigurationInput, opts ...request.Option) (*PutEventsConfigurationOutput, error) { + req, out := c.PutEventsConfigurationRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opPutRetentionSettings = "PutRetentionSettings" + +// PutRetentionSettingsRequest generates a "aws/request.Request" representing the +// client's request for the PutRetentionSettings 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 PutRetentionSettings for more information on using the PutRetentionSettings +// 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 PutRetentionSettingsRequest method. +// req, resp := client.PutRetentionSettingsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/PutRetentionSettings +func (c *Chime) PutRetentionSettingsRequest(input *PutRetentionSettingsInput) (req *request.Request, output *PutRetentionSettingsOutput) { + op := &request.Operation{ + Name: opPutRetentionSettings, + HTTPMethod: "PUT", + HTTPPath: "/accounts/{accountId}/retention-settings", + } + + if input == nil { + input = &PutRetentionSettingsInput{} + } + + output = &PutRetentionSettingsOutput{} + req = c.newRequest(op, input, output) + return +} + +// PutRetentionSettings API operation for Amazon Chime. +// +// Puts retention settings for the specified Amazon Chime Enterprise account. +// We recommend using AWS CloudTrail to monitor usage of this API for your account. +// For more information, see Logging Amazon Chime API Calls with AWS CloudTrail +// (https://docs.aws.amazon.com/chime/latest/ag/cloudtrail.html) in the Amazon +// Chime Administration Guide. +// +// To turn off existing retention settings, remove the number of days from the +// corresponding RetentionDays field in the RetentionSettings object. For more +// information about retention settings, see Managing Chat Retention Policies +// (https://docs.aws.amazon.com/chime/latest/ag/chat-retention.html) in the +// Amazon Chime Administration Guide. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Chime's +// API operation PutRetentionSettings for usage and error information. +// +// Returned Error Types: +// * UnauthorizedClientException +// The client is not currently authorized to make the request. +// +// * NotFoundException +// One or more of the resources in the request does not exist in the system. +// +// * BadRequestException +// The input parameters don't match the service's restrictions. +// +// * ForbiddenException +// The client is permanently forbidden from making the request. +// +// * ConflictException +// The request could not be processed because of conflict in the current state +// of the resource. +// +// * ThrottledClientException +// The client exceeded its request rate limit. +// +// * ServiceUnavailableException +// The service is currently unavailable. +// +// * ServiceFailureException +// The service encountered an unexpected error. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/PutRetentionSettings +func (c *Chime) PutRetentionSettings(input *PutRetentionSettingsInput) (*PutRetentionSettingsOutput, error) { + req, out := c.PutRetentionSettingsRequest(input) + return out, req.Send() +} + +// PutRetentionSettingsWithContext is the same as PutRetentionSettings with the addition of +// the ability to pass a context and additional request options. +// +// See PutRetentionSettings 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 *Chime) PutRetentionSettingsWithContext(ctx aws.Context, input *PutRetentionSettingsInput, opts ...request.Option) (*PutRetentionSettingsOutput, error) { + req, out := c.PutRetentionSettingsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opPutSipMediaApplicationLoggingConfiguration = "PutSipMediaApplicationLoggingConfiguration" + +// PutSipMediaApplicationLoggingConfigurationRequest generates a "aws/request.Request" representing the +// client's request for the PutSipMediaApplicationLoggingConfiguration 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 PutSipMediaApplicationLoggingConfiguration for more information on using the PutSipMediaApplicationLoggingConfiguration +// 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 PutSipMediaApplicationLoggingConfigurationRequest method. +// req, resp := client.PutSipMediaApplicationLoggingConfigurationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/PutSipMediaApplicationLoggingConfiguration +func (c *Chime) PutSipMediaApplicationLoggingConfigurationRequest(input *PutSipMediaApplicationLoggingConfigurationInput) (req *request.Request, output *PutSipMediaApplicationLoggingConfigurationOutput) { + op := &request.Operation{ + Name: opPutSipMediaApplicationLoggingConfiguration, + HTTPMethod: "PUT", + HTTPPath: "/sip-media-applications/{sipMediaApplicationId}/logging-configuration", + } + + if input == nil { + input = &PutSipMediaApplicationLoggingConfigurationInput{} + } + + output = &PutSipMediaApplicationLoggingConfigurationOutput{} + req = c.newRequest(op, input, output) + return +} + +// PutSipMediaApplicationLoggingConfiguration API operation for Amazon Chime. +// +// Updates the logging configuration for the specified SIP media application. +// +// 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 Chime's +// API operation PutSipMediaApplicationLoggingConfiguration for usage and error information. +// +// Returned Error Types: +// * UnauthorizedClientException +// The client is not currently authorized to make the request. +// +// * NotFoundException +// One or more of the resources in the request does not exist in the system. +// +// * ForbiddenException +// The client is permanently forbidden from making the request. +// +// * BadRequestException +// The input parameters don't match the service's restrictions. +// +// * ThrottledClientException +// The client exceeded its request rate limit. +// +// * ServiceUnavailableException +// The service is currently unavailable. +// +// * ServiceFailureException +// The service encountered an unexpected error. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/PutSipMediaApplicationLoggingConfiguration +func (c *Chime) PutSipMediaApplicationLoggingConfiguration(input *PutSipMediaApplicationLoggingConfigurationInput) (*PutSipMediaApplicationLoggingConfigurationOutput, error) { + req, out := c.PutSipMediaApplicationLoggingConfigurationRequest(input) + return out, req.Send() +} + +// PutSipMediaApplicationLoggingConfigurationWithContext is the same as PutSipMediaApplicationLoggingConfiguration with the addition of +// the ability to pass a context and additional request options. +// +// See PutSipMediaApplicationLoggingConfiguration 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 *Chime) PutSipMediaApplicationLoggingConfigurationWithContext(ctx aws.Context, input *PutSipMediaApplicationLoggingConfigurationInput, opts ...request.Option) (*PutSipMediaApplicationLoggingConfigurationOutput, error) { + req, out := c.PutSipMediaApplicationLoggingConfigurationRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opPutVoiceConnectorEmergencyCallingConfiguration = "PutVoiceConnectorEmergencyCallingConfiguration" + +// PutVoiceConnectorEmergencyCallingConfigurationRequest generates a "aws/request.Request" representing the +// client's request for the PutVoiceConnectorEmergencyCallingConfiguration 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 PutVoiceConnectorEmergencyCallingConfiguration for more information on using the PutVoiceConnectorEmergencyCallingConfiguration +// 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 PutVoiceConnectorEmergencyCallingConfigurationRequest method. +// req, resp := client.PutVoiceConnectorEmergencyCallingConfigurationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/PutVoiceConnectorEmergencyCallingConfiguration +func (c *Chime) PutVoiceConnectorEmergencyCallingConfigurationRequest(input *PutVoiceConnectorEmergencyCallingConfigurationInput) (req *request.Request, output *PutVoiceConnectorEmergencyCallingConfigurationOutput) { + op := &request.Operation{ + Name: opPutVoiceConnectorEmergencyCallingConfiguration, + HTTPMethod: "PUT", + HTTPPath: "/voice-connectors/{voiceConnectorId}/emergency-calling-configuration", + } + + if input == nil { + input = &PutVoiceConnectorEmergencyCallingConfigurationInput{} + } + + output = &PutVoiceConnectorEmergencyCallingConfigurationOutput{} + req = c.newRequest(op, input, output) + return +} + +// PutVoiceConnectorEmergencyCallingConfiguration API operation for Amazon Chime. +// +// Puts emergency calling configuration details to the specified Amazon Chime +// Voice Connector, such as emergency phone numbers and calling countries. Origination +// and termination settings must be enabled for the Amazon Chime Voice Connector +// before emergency calling can be configured. +// +// 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 Chime's +// API operation PutVoiceConnectorEmergencyCallingConfiguration for usage and error information. +// +// Returned Error Types: +// * UnauthorizedClientException +// The client is not currently authorized to make the request. +// +// * NotFoundException +// One or more of the resources in the request does not exist in the system. +// +// * ForbiddenException +// The client is permanently forbidden from making the request. +// +// * BadRequestException +// The input parameters don't match the service's restrictions. +// +// * ThrottledClientException +// The client exceeded its request rate limit. +// +// * ServiceUnavailableException +// The service is currently unavailable. +// +// * ServiceFailureException +// The service encountered an unexpected error. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/PutVoiceConnectorEmergencyCallingConfiguration +func (c *Chime) PutVoiceConnectorEmergencyCallingConfiguration(input *PutVoiceConnectorEmergencyCallingConfigurationInput) (*PutVoiceConnectorEmergencyCallingConfigurationOutput, error) { + req, out := c.PutVoiceConnectorEmergencyCallingConfigurationRequest(input) + return out, req.Send() +} + +// PutVoiceConnectorEmergencyCallingConfigurationWithContext is the same as PutVoiceConnectorEmergencyCallingConfiguration with the addition of +// the ability to pass a context and additional request options. +// +// See PutVoiceConnectorEmergencyCallingConfiguration 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 *Chime) PutVoiceConnectorEmergencyCallingConfigurationWithContext(ctx aws.Context, input *PutVoiceConnectorEmergencyCallingConfigurationInput, opts ...request.Option) (*PutVoiceConnectorEmergencyCallingConfigurationOutput, error) { + req, out := c.PutVoiceConnectorEmergencyCallingConfigurationRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opPutVoiceConnectorLoggingConfiguration = "PutVoiceConnectorLoggingConfiguration" + +// PutVoiceConnectorLoggingConfigurationRequest generates a "aws/request.Request" representing the +// client's request for the PutVoiceConnectorLoggingConfiguration 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 PutVoiceConnectorLoggingConfiguration for more information on using the PutVoiceConnectorLoggingConfiguration +// 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 PutVoiceConnectorLoggingConfigurationRequest method. +// req, resp := client.PutVoiceConnectorLoggingConfigurationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/PutVoiceConnectorLoggingConfiguration +func (c *Chime) PutVoiceConnectorLoggingConfigurationRequest(input *PutVoiceConnectorLoggingConfigurationInput) (req *request.Request, output *PutVoiceConnectorLoggingConfigurationOutput) { + op := &request.Operation{ + Name: opPutVoiceConnectorLoggingConfiguration, + HTTPMethod: "PUT", + HTTPPath: "/voice-connectors/{voiceConnectorId}/logging-configuration", + } + + if input == nil { + input = &PutVoiceConnectorLoggingConfigurationInput{} + } + + output = &PutVoiceConnectorLoggingConfigurationOutput{} + req = c.newRequest(op, input, output) + return +} + +// PutVoiceConnectorLoggingConfiguration API operation for Amazon Chime. +// +// Adds a logging configuration for the specified Amazon Chime Voice Connector. +// The logging configuration specifies whether SIP message logs are enabled +// for sending to Amazon CloudWatch Logs. +// +// 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 Chime's +// API operation PutVoiceConnectorLoggingConfiguration for usage and error information. +// +// Returned Error Types: +// * UnauthorizedClientException +// The client is not currently authorized to make the request. +// +// * NotFoundException +// One or more of the resources in the request does not exist in the system. +// +// * ForbiddenException +// The client is permanently forbidden from making the request. +// +// * BadRequestException +// The input parameters don't match the service's restrictions. +// +// * ThrottledClientException +// The client exceeded its request rate limit. +// +// * ServiceUnavailableException +// The service is currently unavailable. +// +// * ServiceFailureException +// The service encountered an unexpected error. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/PutVoiceConnectorLoggingConfiguration +func (c *Chime) PutVoiceConnectorLoggingConfiguration(input *PutVoiceConnectorLoggingConfigurationInput) (*PutVoiceConnectorLoggingConfigurationOutput, error) { + req, out := c.PutVoiceConnectorLoggingConfigurationRequest(input) + return out, req.Send() +} + +// PutVoiceConnectorLoggingConfigurationWithContext is the same as PutVoiceConnectorLoggingConfiguration with the addition of +// the ability to pass a context and additional request options. +// +// See PutVoiceConnectorLoggingConfiguration 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 *Chime) PutVoiceConnectorLoggingConfigurationWithContext(ctx aws.Context, input *PutVoiceConnectorLoggingConfigurationInput, opts ...request.Option) (*PutVoiceConnectorLoggingConfigurationOutput, error) { + req, out := c.PutVoiceConnectorLoggingConfigurationRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opPutVoiceConnectorOrigination = "PutVoiceConnectorOrigination" + +// PutVoiceConnectorOriginationRequest generates a "aws/request.Request" representing the +// client's request for the PutVoiceConnectorOrigination 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 PutVoiceConnectorOrigination for more information on using the PutVoiceConnectorOrigination +// 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 PutVoiceConnectorOriginationRequest method. +// req, resp := client.PutVoiceConnectorOriginationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/PutVoiceConnectorOrigination +func (c *Chime) PutVoiceConnectorOriginationRequest(input *PutVoiceConnectorOriginationInput) (req *request.Request, output *PutVoiceConnectorOriginationOutput) { + op := &request.Operation{ + Name: opPutVoiceConnectorOrigination, + HTTPMethod: "PUT", + HTTPPath: "/voice-connectors/{voiceConnectorId}/origination", + } + + if input == nil { + input = &PutVoiceConnectorOriginationInput{} + } + + output = &PutVoiceConnectorOriginationOutput{} + req = c.newRequest(op, input, output) + return +} + +// PutVoiceConnectorOrigination API operation for Amazon Chime. +// +// Adds origination settings for the specified Amazon Chime Voice Connector. +// +// If emergency calling is configured for the Amazon Chime Voice Connector, +// it must be deleted prior to turning off origination settings. +// +// 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 Chime's +// API operation PutVoiceConnectorOrigination for usage and error information. +// +// Returned Error Types: +// * UnauthorizedClientException +// The client is not currently authorized to make the request. +// +// * NotFoundException +// One or more of the resources in the request does not exist in the system. +// +// * ForbiddenException +// The client is permanently forbidden from making the request. +// +// * BadRequestException +// The input parameters don't match the service's restrictions. +// +// * ThrottledClientException +// The client exceeded its request rate limit. +// +// * ServiceUnavailableException +// The service is currently unavailable. +// +// * ServiceFailureException +// The service encountered an unexpected error. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/PutVoiceConnectorOrigination +func (c *Chime) PutVoiceConnectorOrigination(input *PutVoiceConnectorOriginationInput) (*PutVoiceConnectorOriginationOutput, error) { + req, out := c.PutVoiceConnectorOriginationRequest(input) + return out, req.Send() +} + +// PutVoiceConnectorOriginationWithContext is the same as PutVoiceConnectorOrigination with the addition of +// the ability to pass a context and additional request options. +// +// See PutVoiceConnectorOrigination 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 *Chime) PutVoiceConnectorOriginationWithContext(ctx aws.Context, input *PutVoiceConnectorOriginationInput, opts ...request.Option) (*PutVoiceConnectorOriginationOutput, error) { + req, out := c.PutVoiceConnectorOriginationRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opPutVoiceConnectorProxy = "PutVoiceConnectorProxy" + +// PutVoiceConnectorProxyRequest generates a "aws/request.Request" representing the +// client's request for the PutVoiceConnectorProxy 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 PutVoiceConnectorProxy for more information on using the PutVoiceConnectorProxy +// 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 PutVoiceConnectorProxyRequest method. +// req, resp := client.PutVoiceConnectorProxyRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/PutVoiceConnectorProxy +func (c *Chime) PutVoiceConnectorProxyRequest(input *PutVoiceConnectorProxyInput) (req *request.Request, output *PutVoiceConnectorProxyOutput) { + op := &request.Operation{ + Name: opPutVoiceConnectorProxy, + HTTPMethod: "PUT", + HTTPPath: "/voice-connectors/{voiceConnectorId}/programmable-numbers/proxy", + } + + if input == nil { + input = &PutVoiceConnectorProxyInput{} + } + + output = &PutVoiceConnectorProxyOutput{} + req = c.newRequest(op, input, output) + return +} + +// PutVoiceConnectorProxy API operation for Amazon Chime. +// +// Puts the specified proxy configuration to the specified Amazon Chime Voice +// Connector. +// +// 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 Chime's +// API operation PutVoiceConnectorProxy for usage and error information. +// +// Returned Error Types: +// * UnauthorizedClientException +// The client is not currently authorized to make the request. +// +// * AccessDeniedException +// You don't have permissions to perform the requested operation. +// +// * NotFoundException +// One or more of the resources in the request does not exist in the system. +// +// * ForbiddenException +// The client is permanently forbidden from making the request. +// +// * BadRequestException +// The input parameters don't match the service's restrictions. +// +// * ThrottledClientException +// The client exceeded its request rate limit. +// +// * ServiceUnavailableException +// The service is currently unavailable. +// +// * ServiceFailureException +// The service encountered an unexpected error. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/PutVoiceConnectorProxy +func (c *Chime) PutVoiceConnectorProxy(input *PutVoiceConnectorProxyInput) (*PutVoiceConnectorProxyOutput, error) { + req, out := c.PutVoiceConnectorProxyRequest(input) + return out, req.Send() +} + +// PutVoiceConnectorProxyWithContext is the same as PutVoiceConnectorProxy with the addition of +// the ability to pass a context and additional request options. +// +// See PutVoiceConnectorProxy 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 *Chime) PutVoiceConnectorProxyWithContext(ctx aws.Context, input *PutVoiceConnectorProxyInput, opts ...request.Option) (*PutVoiceConnectorProxyOutput, error) { + req, out := c.PutVoiceConnectorProxyRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opPutVoiceConnectorStreamingConfiguration = "PutVoiceConnectorStreamingConfiguration" + +// PutVoiceConnectorStreamingConfigurationRequest generates a "aws/request.Request" representing the +// client's request for the PutVoiceConnectorStreamingConfiguration 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 PutVoiceConnectorStreamingConfiguration for more information on using the PutVoiceConnectorStreamingConfiguration +// 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 PutVoiceConnectorStreamingConfigurationRequest method. +// req, resp := client.PutVoiceConnectorStreamingConfigurationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/PutVoiceConnectorStreamingConfiguration +func (c *Chime) PutVoiceConnectorStreamingConfigurationRequest(input *PutVoiceConnectorStreamingConfigurationInput) (req *request.Request, output *PutVoiceConnectorStreamingConfigurationOutput) { + op := &request.Operation{ + Name: opPutVoiceConnectorStreamingConfiguration, + HTTPMethod: "PUT", + HTTPPath: "/voice-connectors/{voiceConnectorId}/streaming-configuration", + } + + if input == nil { + input = &PutVoiceConnectorStreamingConfigurationInput{} + } + + output = &PutVoiceConnectorStreamingConfigurationOutput{} + req = c.newRequest(op, input, output) + return +} + +// PutVoiceConnectorStreamingConfiguration API operation for Amazon Chime. +// +// Adds a streaming configuration for the specified Amazon Chime Voice Connector. +// The streaming configuration specifies whether media streaming is enabled +// for sending to Amazon Kinesis. It also sets the retention period, in hours, +// for the Amazon Kinesis data. +// +// 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 Chime's +// API operation PutVoiceConnectorStreamingConfiguration for usage and error information. +// +// Returned Error Types: +// * UnauthorizedClientException +// The client is not currently authorized to make the request. +// +// * NotFoundException +// One or more of the resources in the request does not exist in the system. +// +// * ForbiddenException +// The client is permanently forbidden from making the request. +// +// * BadRequestException +// The input parameters don't match the service's restrictions. +// +// * ThrottledClientException +// The client exceeded its request rate limit. +// +// * ServiceUnavailableException +// The service is currently unavailable. +// +// * ServiceFailureException +// The service encountered an unexpected error. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/PutVoiceConnectorStreamingConfiguration +func (c *Chime) PutVoiceConnectorStreamingConfiguration(input *PutVoiceConnectorStreamingConfigurationInput) (*PutVoiceConnectorStreamingConfigurationOutput, error) { + req, out := c.PutVoiceConnectorStreamingConfigurationRequest(input) + return out, req.Send() +} + +// PutVoiceConnectorStreamingConfigurationWithContext is the same as PutVoiceConnectorStreamingConfiguration with the addition of +// the ability to pass a context and additional request options. +// +// See PutVoiceConnectorStreamingConfiguration 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 *Chime) PutVoiceConnectorStreamingConfigurationWithContext(ctx aws.Context, input *PutVoiceConnectorStreamingConfigurationInput, opts ...request.Option) (*PutVoiceConnectorStreamingConfigurationOutput, error) { + req, out := c.PutVoiceConnectorStreamingConfigurationRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opPutVoiceConnectorTermination = "PutVoiceConnectorTermination" + +// PutVoiceConnectorTerminationRequest generates a "aws/request.Request" representing the +// client's request for the PutVoiceConnectorTermination 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 PutVoiceConnectorTermination for more information on using the PutVoiceConnectorTermination +// 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 PutVoiceConnectorTerminationRequest method. +// req, resp := client.PutVoiceConnectorTerminationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/PutVoiceConnectorTermination +func (c *Chime) PutVoiceConnectorTerminationRequest(input *PutVoiceConnectorTerminationInput) (req *request.Request, output *PutVoiceConnectorTerminationOutput) { + op := &request.Operation{ + Name: opPutVoiceConnectorTermination, + HTTPMethod: "PUT", + HTTPPath: "/voice-connectors/{voiceConnectorId}/termination", + } + + if input == nil { + input = &PutVoiceConnectorTerminationInput{} + } + + output = &PutVoiceConnectorTerminationOutput{} + req = c.newRequest(op, input, output) + return +} + +// PutVoiceConnectorTermination API operation for Amazon Chime. +// +// Adds termination settings for the specified Amazon Chime Voice Connector. +// +// If emergency calling is configured for the Amazon Chime Voice Connector, +// it must be deleted prior to turning off termination settings. +// +// 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 Chime's +// API operation PutVoiceConnectorTermination for usage and error information. +// +// Returned Error Types: +// * UnauthorizedClientException +// The client is not currently authorized to make the request. +// +// * NotFoundException +// One or more of the resources in the request does not exist in the system. +// +// * ForbiddenException +// The client is permanently forbidden from making the request. +// +// * BadRequestException +// The input parameters don't match the service's restrictions. +// +// * AccessDeniedException +// You don't have permissions to perform the requested operation. +// +// * ThrottledClientException +// The client exceeded its request rate limit. +// +// * ServiceUnavailableException +// The service is currently unavailable. +// +// * ServiceFailureException +// The service encountered an unexpected error. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/PutVoiceConnectorTermination +func (c *Chime) PutVoiceConnectorTermination(input *PutVoiceConnectorTerminationInput) (*PutVoiceConnectorTerminationOutput, error) { + req, out := c.PutVoiceConnectorTerminationRequest(input) + return out, req.Send() +} + +// PutVoiceConnectorTerminationWithContext is the same as PutVoiceConnectorTermination with the addition of +// the ability to pass a context and additional request options. +// +// See PutVoiceConnectorTermination 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 *Chime) PutVoiceConnectorTerminationWithContext(ctx aws.Context, input *PutVoiceConnectorTerminationInput, opts ...request.Option) (*PutVoiceConnectorTerminationOutput, error) { + req, out := c.PutVoiceConnectorTerminationRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opPutVoiceConnectorTerminationCredentials = "PutVoiceConnectorTerminationCredentials" + +// PutVoiceConnectorTerminationCredentialsRequest generates a "aws/request.Request" representing the +// client's request for the PutVoiceConnectorTerminationCredentials 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 PutVoiceConnectorTerminationCredentials for more information on using the PutVoiceConnectorTerminationCredentials +// 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 PutVoiceConnectorTerminationCredentialsRequest method. +// req, resp := client.PutVoiceConnectorTerminationCredentialsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/PutVoiceConnectorTerminationCredentials +func (c *Chime) PutVoiceConnectorTerminationCredentialsRequest(input *PutVoiceConnectorTerminationCredentialsInput) (req *request.Request, output *PutVoiceConnectorTerminationCredentialsOutput) { + op := &request.Operation{ + Name: opPutVoiceConnectorTerminationCredentials, + HTTPMethod: "POST", + HTTPPath: "/voice-connectors/{voiceConnectorId}/termination/credentials?operation=put", + } + + if input == nil { + input = &PutVoiceConnectorTerminationCredentialsInput{} + } + + output = &PutVoiceConnectorTerminationCredentialsOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// PutVoiceConnectorTerminationCredentials API operation for Amazon Chime. +// +// Adds termination SIP credentials for the specified Amazon Chime Voice Connector. +// +// 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 Chime's +// API operation PutVoiceConnectorTerminationCredentials for usage and error information. +// +// Returned Error Types: +// * UnauthorizedClientException +// The client is not currently authorized to make the request. +// +// * NotFoundException +// One or more of the resources in the request does not exist in the system. +// +// * ForbiddenException +// The client is permanently forbidden from making the request. +// +// * BadRequestException +// The input parameters don't match the service's restrictions. +// +// * ThrottledClientException +// The client exceeded its request rate limit. +// +// * ServiceUnavailableException +// The service is currently unavailable. +// +// * ServiceFailureException +// The service encountered an unexpected error. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/PutVoiceConnectorTerminationCredentials +func (c *Chime) PutVoiceConnectorTerminationCredentials(input *PutVoiceConnectorTerminationCredentialsInput) (*PutVoiceConnectorTerminationCredentialsOutput, error) { + req, out := c.PutVoiceConnectorTerminationCredentialsRequest(input) + return out, req.Send() +} + +// PutVoiceConnectorTerminationCredentialsWithContext is the same as PutVoiceConnectorTerminationCredentials with the addition of +// the ability to pass a context and additional request options. +// +// See PutVoiceConnectorTerminationCredentials 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 *Chime) PutVoiceConnectorTerminationCredentialsWithContext(ctx aws.Context, input *PutVoiceConnectorTerminationCredentialsInput, opts ...request.Option) (*PutVoiceConnectorTerminationCredentialsOutput, error) { + req, out := c.PutVoiceConnectorTerminationCredentialsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opRedactChannelMessage = "RedactChannelMessage" + +// RedactChannelMessageRequest generates a "aws/request.Request" representing the +// client's request for the RedactChannelMessage 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 RedactChannelMessage for more information on using the RedactChannelMessage +// 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 RedactChannelMessageRequest method. +// req, resp := client.RedactChannelMessageRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/RedactChannelMessage +func (c *Chime) RedactChannelMessageRequest(input *RedactChannelMessageInput) (req *request.Request, output *RedactChannelMessageOutput) { + op := &request.Operation{ + Name: opRedactChannelMessage, + HTTPMethod: "POST", + HTTPPath: "/channels/{channelArn}/messages/{messageId}?operation=redact", + } + + if input == nil { + input = &RedactChannelMessageInput{} + } + + output = &RedactChannelMessageOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("messaging-", nil)) + req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) + return +} + +// RedactChannelMessage API operation for Amazon Chime. +// +// Redacts message content, but not metadata. The message exists in the back +// end, but the action returns null content, and the state shows as redacted. +// +// 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 Chime's +// API operation RedactChannelMessage for usage and error information. +// +// Returned Error Types: +// * BadRequestException +// The input parameters don't match the service's restrictions. +// +// * ForbiddenException +// The client is permanently forbidden from making the request. +// +// * UnauthorizedClientException +// The client is not currently authorized to make the request. +// +// * ThrottledClientException +// The client exceeded its request rate limit. +// +// * ServiceUnavailableException +// The service is currently unavailable. +// +// * ServiceFailureException +// The service encountered an unexpected error. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/RedactChannelMessage +func (c *Chime) RedactChannelMessage(input *RedactChannelMessageInput) (*RedactChannelMessageOutput, error) { + req, out := c.RedactChannelMessageRequest(input) + return out, req.Send() +} + +// RedactChannelMessageWithContext is the same as RedactChannelMessage with the addition of +// the ability to pass a context and additional request options. +// +// See RedactChannelMessage 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 *Chime) RedactChannelMessageWithContext(ctx aws.Context, input *RedactChannelMessageInput, opts ...request.Option) (*RedactChannelMessageOutput, error) { + req, out := c.RedactChannelMessageRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opRedactConversationMessage = "RedactConversationMessage" + +// RedactConversationMessageRequest generates a "aws/request.Request" representing the +// client's request for the RedactConversationMessage 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 RedactConversationMessage for more information on using the RedactConversationMessage +// 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 RedactConversationMessageRequest method. +// req, resp := client.RedactConversationMessageRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/RedactConversationMessage +func (c *Chime) RedactConversationMessageRequest(input *RedactConversationMessageInput) (req *request.Request, output *RedactConversationMessageOutput) { + op := &request.Operation{ + Name: opRedactConversationMessage, + HTTPMethod: "POST", + HTTPPath: "/accounts/{accountId}/conversations/{conversationId}/messages/{messageId}?operation=redact", + } + + if input == nil { + input = &RedactConversationMessageInput{} + } + + output = &RedactConversationMessageOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// RedactConversationMessage API operation for Amazon Chime. +// +// Redacts the specified message from the specified Amazon Chime conversation. +// +// 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 Chime's +// API operation RedactConversationMessage for usage and error information. +// +// Returned Error Types: +// * NotFoundException +// One or more of the resources in the request does not exist in the system. +// +// * ForbiddenException +// The client is permanently forbidden from making the request. +// +// * UnauthorizedClientException +// The client is not currently authorized to make the request. +// +// * ThrottledClientException +// The client exceeded its request rate limit. +// +// * BadRequestException +// The input parameters don't match the service's restrictions. +// +// * ServiceUnavailableException +// The service is currently unavailable. +// +// * ServiceFailureException +// The service encountered an unexpected error. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/RedactConversationMessage +func (c *Chime) RedactConversationMessage(input *RedactConversationMessageInput) (*RedactConversationMessageOutput, error) { + req, out := c.RedactConversationMessageRequest(input) + return out, req.Send() +} + +// RedactConversationMessageWithContext is the same as RedactConversationMessage with the addition of +// the ability to pass a context and additional request options. +// +// See RedactConversationMessage 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 *Chime) RedactConversationMessageWithContext(ctx aws.Context, input *RedactConversationMessageInput, opts ...request.Option) (*RedactConversationMessageOutput, error) { + req, out := c.RedactConversationMessageRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opRedactRoomMessage = "RedactRoomMessage" + +// RedactRoomMessageRequest generates a "aws/request.Request" representing the +// client's request for the RedactRoomMessage 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 RedactRoomMessage for more information on using the RedactRoomMessage +// 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 RedactRoomMessageRequest method. +// req, resp := client.RedactRoomMessageRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/RedactRoomMessage +func (c *Chime) RedactRoomMessageRequest(input *RedactRoomMessageInput) (req *request.Request, output *RedactRoomMessageOutput) { + op := &request.Operation{ + Name: opRedactRoomMessage, + HTTPMethod: "POST", + HTTPPath: "/accounts/{accountId}/rooms/{roomId}/messages/{messageId}?operation=redact", + } + + if input == nil { + input = &RedactRoomMessageInput{} + } + + output = &RedactRoomMessageOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// RedactRoomMessage API operation for Amazon Chime. +// +// Redacts the specified message from the specified Amazon Chime channel. +// +// 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 Chime's +// API operation RedactRoomMessage for usage and error information. +// +// Returned Error Types: +// * NotFoundException +// One or more of the resources in the request does not exist in the system. +// +// * ForbiddenException +// The client is permanently forbidden from making the request. +// +// * UnauthorizedClientException +// The client is not currently authorized to make the request. +// +// * ThrottledClientException +// The client exceeded its request rate limit. +// +// * BadRequestException +// The input parameters don't match the service's restrictions. +// +// * ServiceUnavailableException +// The service is currently unavailable. +// +// * ServiceFailureException +// The service encountered an unexpected error. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/RedactRoomMessage +func (c *Chime) RedactRoomMessage(input *RedactRoomMessageInput) (*RedactRoomMessageOutput, error) { + req, out := c.RedactRoomMessageRequest(input) + return out, req.Send() +} + +// RedactRoomMessageWithContext is the same as RedactRoomMessage with the addition of +// the ability to pass a context and additional request options. +// +// See RedactRoomMessage 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 *Chime) RedactRoomMessageWithContext(ctx aws.Context, input *RedactRoomMessageInput, opts ...request.Option) (*RedactRoomMessageOutput, error) { + req, out := c.RedactRoomMessageRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opRegenerateSecurityToken = "RegenerateSecurityToken" + +// RegenerateSecurityTokenRequest generates a "aws/request.Request" representing the +// client's request for the RegenerateSecurityToken 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 RegenerateSecurityToken for more information on using the RegenerateSecurityToken +// 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 RegenerateSecurityTokenRequest method. +// req, resp := client.RegenerateSecurityTokenRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/RegenerateSecurityToken +func (c *Chime) RegenerateSecurityTokenRequest(input *RegenerateSecurityTokenInput) (req *request.Request, output *RegenerateSecurityTokenOutput) { + op := &request.Operation{ + Name: opRegenerateSecurityToken, + HTTPMethod: "POST", + HTTPPath: "/accounts/{accountId}/bots/{botId}?operation=regenerate-security-token", + } + + if input == nil { + input = &RegenerateSecurityTokenInput{} + } + + output = &RegenerateSecurityTokenOutput{} + req = c.newRequest(op, input, output) + return +} + +// RegenerateSecurityToken API operation for Amazon Chime. +// +// Regenerates the security token for a bot. +// +// 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 Chime's +// API operation RegenerateSecurityToken for usage and error information. +// +// Returned Error Types: +// * ServiceUnavailableException +// The service is currently unavailable. +// +// * ServiceFailureException +// The service encountered an unexpected error. +// +// * ForbiddenException +// The client is permanently forbidden from making the request. +// +// * BadRequestException +// The input parameters don't match the service's restrictions. +// +// * UnauthorizedClientException +// The client is not currently authorized to make the request. +// +// * NotFoundException +// One or more of the resources in the request does not exist in the system. +// +// * ThrottledClientException +// The client exceeded its request rate limit. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/RegenerateSecurityToken +func (c *Chime) RegenerateSecurityToken(input *RegenerateSecurityTokenInput) (*RegenerateSecurityTokenOutput, error) { + req, out := c.RegenerateSecurityTokenRequest(input) + return out, req.Send() +} + +// RegenerateSecurityTokenWithContext is the same as RegenerateSecurityToken with the addition of +// the ability to pass a context and additional request options. +// +// See RegenerateSecurityToken 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 *Chime) RegenerateSecurityTokenWithContext(ctx aws.Context, input *RegenerateSecurityTokenInput, opts ...request.Option) (*RegenerateSecurityTokenOutput, error) { + req, out := c.RegenerateSecurityTokenRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opResetPersonalPIN = "ResetPersonalPIN" + +// ResetPersonalPINRequest generates a "aws/request.Request" representing the +// client's request for the ResetPersonalPIN 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 ResetPersonalPIN for more information on using the ResetPersonalPIN +// 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 ResetPersonalPINRequest method. +// req, resp := client.ResetPersonalPINRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/ResetPersonalPIN +func (c *Chime) ResetPersonalPINRequest(input *ResetPersonalPINInput) (req *request.Request, output *ResetPersonalPINOutput) { + op := &request.Operation{ + Name: opResetPersonalPIN, + HTTPMethod: "POST", + HTTPPath: "/accounts/{accountId}/users/{userId}?operation=reset-personal-pin", + } + + if input == nil { + input = &ResetPersonalPINInput{} + } + + output = &ResetPersonalPINOutput{} + req = c.newRequest(op, input, output) + return +} + +// ResetPersonalPIN API operation for Amazon Chime. +// +// Resets the personal meeting PIN for the specified user on an Amazon Chime +// account. Returns the User object with the updated personal meeting PIN. +// +// 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 Chime's +// API operation ResetPersonalPIN for usage and error information. +// +// Returned Error Types: +// * UnauthorizedClientException +// The client is not currently authorized to make the request. +// +// * NotFoundException +// One or more of the resources in the request does not exist in the system. +// +// * ForbiddenException +// The client is permanently forbidden from making the request. +// +// * BadRequestException +// The input parameters don't match the service's restrictions. +// +// * ThrottledClientException +// The client exceeded its request rate limit. +// +// * ServiceUnavailableException +// The service is currently unavailable. +// +// * ServiceFailureException +// The service encountered an unexpected error. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/ResetPersonalPIN +func (c *Chime) ResetPersonalPIN(input *ResetPersonalPINInput) (*ResetPersonalPINOutput, error) { + req, out := c.ResetPersonalPINRequest(input) + return out, req.Send() +} + +// ResetPersonalPINWithContext is the same as ResetPersonalPIN with the addition of +// the ability to pass a context and additional request options. +// +// See ResetPersonalPIN 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 *Chime) ResetPersonalPINWithContext(ctx aws.Context, input *ResetPersonalPINInput, opts ...request.Option) (*ResetPersonalPINOutput, error) { + req, out := c.ResetPersonalPINRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opRestorePhoneNumber = "RestorePhoneNumber" + +// RestorePhoneNumberRequest generates a "aws/request.Request" representing the +// client's request for the RestorePhoneNumber 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 RestorePhoneNumber for more information on using the RestorePhoneNumber +// 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 RestorePhoneNumberRequest method. +// req, resp := client.RestorePhoneNumberRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/RestorePhoneNumber +func (c *Chime) RestorePhoneNumberRequest(input *RestorePhoneNumberInput) (req *request.Request, output *RestorePhoneNumberOutput) { + op := &request.Operation{ + Name: opRestorePhoneNumber, + HTTPMethod: "POST", + HTTPPath: "/phone-numbers/{phoneNumberId}?operation=restore", + } + + if input == nil { + input = &RestorePhoneNumberInput{} + } + + output = &RestorePhoneNumberOutput{} + req = c.newRequest(op, input, output) + return +} + +// RestorePhoneNumber API operation for Amazon Chime. +// +// Moves a phone number from the Deletion queue back into the phone number Inventory. +// +// 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 Chime's +// API operation RestorePhoneNumber for usage and error information. +// +// Returned Error Types: +// * UnauthorizedClientException +// The client is not currently authorized to make the request. +// +// * NotFoundException +// One or more of the resources in the request does not exist in the system. +// +// * ForbiddenException +// The client is permanently forbidden from making the request. +// +// * BadRequestException +// The input parameters don't match the service's restrictions. +// +// * ThrottledClientException +// The client exceeded its request rate limit. +// +// * ResourceLimitExceededException +// The request exceeds the resource limit. +// +// * ServiceUnavailableException +// The service is currently unavailable. +// +// * ServiceFailureException +// The service encountered an unexpected error. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/RestorePhoneNumber +func (c *Chime) RestorePhoneNumber(input *RestorePhoneNumberInput) (*RestorePhoneNumberOutput, error) { + req, out := c.RestorePhoneNumberRequest(input) + return out, req.Send() +} + +// RestorePhoneNumberWithContext is the same as RestorePhoneNumber with the addition of +// the ability to pass a context and additional request options. +// +// See RestorePhoneNumber 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 *Chime) RestorePhoneNumberWithContext(ctx aws.Context, input *RestorePhoneNumberInput, opts ...request.Option) (*RestorePhoneNumberOutput, error) { + req, out := c.RestorePhoneNumberRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opSearchAvailablePhoneNumbers = "SearchAvailablePhoneNumbers" + +// SearchAvailablePhoneNumbersRequest generates a "aws/request.Request" representing the +// client's request for the SearchAvailablePhoneNumbers operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See SearchAvailablePhoneNumbers for more information on using the SearchAvailablePhoneNumbers +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the SearchAvailablePhoneNumbersRequest method. +// req, resp := client.SearchAvailablePhoneNumbersRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/SearchAvailablePhoneNumbers +func (c *Chime) SearchAvailablePhoneNumbersRequest(input *SearchAvailablePhoneNumbersInput) (req *request.Request, output *SearchAvailablePhoneNumbersOutput) { + op := &request.Operation{ + Name: opSearchAvailablePhoneNumbers, + HTTPMethod: "GET", + HTTPPath: "/search?type=phone-numbers", + } + + if input == nil { + input = &SearchAvailablePhoneNumbersInput{} + } + + output = &SearchAvailablePhoneNumbersOutput{} + req = c.newRequest(op, input, output) + return +} + +// SearchAvailablePhoneNumbers API operation for Amazon Chime. +// +// Searches phone numbers that can be ordered. +// +// 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 Chime's +// API operation SearchAvailablePhoneNumbers for usage and error information. +// +// Returned Error Types: +// * BadRequestException +// The input parameters don't match the service's restrictions. +// +// * ForbiddenException +// The client is permanently forbidden from making the request. +// +// * AccessDeniedException +// You don't have permissions to perform the requested operation. +// +// * UnauthorizedClientException +// The client is not currently authorized to make the request. +// +// * ThrottledClientException +// The client exceeded its request rate limit. +// +// * ServiceUnavailableException +// The service is currently unavailable. +// +// * ServiceFailureException +// The service encountered an unexpected error. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/SearchAvailablePhoneNumbers +func (c *Chime) SearchAvailablePhoneNumbers(input *SearchAvailablePhoneNumbersInput) (*SearchAvailablePhoneNumbersOutput, error) { + req, out := c.SearchAvailablePhoneNumbersRequest(input) + return out, req.Send() +} + +// SearchAvailablePhoneNumbersWithContext is the same as SearchAvailablePhoneNumbers with the addition of +// the ability to pass a context and additional request options. +// +// See SearchAvailablePhoneNumbers for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Chime) SearchAvailablePhoneNumbersWithContext(ctx aws.Context, input *SearchAvailablePhoneNumbersInput, opts ...request.Option) (*SearchAvailablePhoneNumbersOutput, error) { + req, out := c.SearchAvailablePhoneNumbersRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opSendChannelMessage = "SendChannelMessage" + +// SendChannelMessageRequest generates a "aws/request.Request" representing the +// client's request for the SendChannelMessage 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 SendChannelMessage for more information on using the SendChannelMessage +// 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 SendChannelMessageRequest method. +// req, resp := client.SendChannelMessageRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/SendChannelMessage +func (c *Chime) SendChannelMessageRequest(input *SendChannelMessageInput) (req *request.Request, output *SendChannelMessageOutput) { + op := &request.Operation{ + Name: opSendChannelMessage, + HTTPMethod: "POST", + HTTPPath: "/channels/{channelArn}/messages", + } + + if input == nil { + input = &SendChannelMessageInput{} + } + + output = &SendChannelMessageOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("messaging-", nil)) + req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) + return +} + +// SendChannelMessage API operation for Amazon Chime. +// +// Sends a message to a particular channel that the member is a part of. +// +// STANDARD messages can contain 4KB of data and the 1KB of metadata. CONTROL +// messages can contain 30 bytes of data and no metadata. +// +// 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 Chime's +// API operation SendChannelMessage for usage and error information. +// +// Returned Error Types: +// * BadRequestException +// The input parameters don't match the service's restrictions. +// +// * ConflictException +// The request could not be processed because of conflict in the current state +// of the resource. +// +// * ForbiddenException +// The client is permanently forbidden from making the request. +// +// * UnauthorizedClientException +// The client is not currently authorized to make the request. +// +// * ThrottledClientException +// The client exceeded its request rate limit. +// +// * ServiceUnavailableException +// The service is currently unavailable. +// +// * ServiceFailureException +// The service encountered an unexpected error. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/SendChannelMessage +func (c *Chime) SendChannelMessage(input *SendChannelMessageInput) (*SendChannelMessageOutput, error) { + req, out := c.SendChannelMessageRequest(input) + return out, req.Send() +} + +// SendChannelMessageWithContext is the same as SendChannelMessage with the addition of +// the ability to pass a context and additional request options. +// +// See SendChannelMessage 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 *Chime) SendChannelMessageWithContext(ctx aws.Context, input *SendChannelMessageInput, opts ...request.Option) (*SendChannelMessageOutput, error) { + req, out := c.SendChannelMessageRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opTagAttendee = "TagAttendee" + +// TagAttendeeRequest generates a "aws/request.Request" representing the +// client's request for the TagAttendee 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 TagAttendee for more information on using the TagAttendee +// 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 TagAttendeeRequest method. +// req, resp := client.TagAttendeeRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/TagAttendee +func (c *Chime) TagAttendeeRequest(input *TagAttendeeInput) (req *request.Request, output *TagAttendeeOutput) { + op := &request.Operation{ + Name: opTagAttendee, + HTTPMethod: "POST", + HTTPPath: "/meetings/{meetingId}/attendees/{attendeeId}/tags?operation=add", + } + + if input == nil { + input = &TagAttendeeInput{} + } + + output = &TagAttendeeOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// TagAttendee API operation for Amazon Chime. +// +// Applies the specified tags to the specified Amazon Chime SDK attendee. +// +// 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 Chime's +// API operation TagAttendee for usage and error information. +// +// Returned Error Types: +// * BadRequestException +// The input parameters don't match the service's restrictions. +// +// * ForbiddenException +// The client is permanently forbidden from making the request. +// +// * NotFoundException +// One or more of the resources in the request does not exist in the system. +// +// * ResourceLimitExceededException +// The request exceeds the resource limit. +// +// * ThrottledClientException +// The client exceeded its request rate limit. +// +// * UnauthorizedClientException +// The client is not currently authorized to make the request. +// +// * ServiceUnavailableException +// The service is currently unavailable. +// +// * ServiceFailureException +// The service encountered an unexpected error. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/TagAttendee +func (c *Chime) TagAttendee(input *TagAttendeeInput) (*TagAttendeeOutput, error) { + req, out := c.TagAttendeeRequest(input) + return out, req.Send() +} + +// TagAttendeeWithContext is the same as TagAttendee with the addition of +// the ability to pass a context and additional request options. +// +// See TagAttendee 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 *Chime) TagAttendeeWithContext(ctx aws.Context, input *TagAttendeeInput, opts ...request.Option) (*TagAttendeeOutput, error) { + req, out := c.TagAttendeeRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opTagMeeting = "TagMeeting" + +// TagMeetingRequest generates a "aws/request.Request" representing the +// client's request for the TagMeeting 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 TagMeeting for more information on using the TagMeeting +// 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 TagMeetingRequest method. +// req, resp := client.TagMeetingRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/TagMeeting +func (c *Chime) TagMeetingRequest(input *TagMeetingInput) (req *request.Request, output *TagMeetingOutput) { + op := &request.Operation{ + Name: opTagMeeting, + HTTPMethod: "POST", + HTTPPath: "/meetings/{meetingId}/tags?operation=add", + } + + if input == nil { + input = &TagMeetingInput{} + } + + output = &TagMeetingOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// TagMeeting API operation for Amazon Chime. +// +// Applies the specified tags to the specified Amazon Chime SDK meeting. +// +// 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 Chime's +// API operation TagMeeting for usage and error information. +// +// Returned Error Types: +// * BadRequestException +// The input parameters don't match the service's restrictions. +// +// * ForbiddenException +// The client is permanently forbidden from making the request. +// +// * NotFoundException +// One or more of the resources in the request does not exist in the system. +// +// * ResourceLimitExceededException +// The request exceeds the resource limit. +// +// * ThrottledClientException +// The client exceeded its request rate limit. +// +// * UnauthorizedClientException +// The client is not currently authorized to make the request. +// +// * ServiceUnavailableException +// The service is currently unavailable. +// +// * ServiceFailureException +// The service encountered an unexpected error. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/TagMeeting +func (c *Chime) TagMeeting(input *TagMeetingInput) (*TagMeetingOutput, error) { + req, out := c.TagMeetingRequest(input) + return out, req.Send() +} + +// TagMeetingWithContext is the same as TagMeeting with the addition of +// the ability to pass a context and additional request options. +// +// See TagMeeting 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 *Chime) TagMeetingWithContext(ctx aws.Context, input *TagMeetingInput, opts ...request.Option) (*TagMeetingOutput, error) { + req, out := c.TagMeetingRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opTagResource = "TagResource" + +// TagResourceRequest generates a "aws/request.Request" representing the +// client's request for the TagResource operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See TagResource for more information on using the TagResource +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the TagResourceRequest method. +// req, resp := client.TagResourceRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/TagResource +func (c *Chime) TagResourceRequest(input *TagResourceInput) (req *request.Request, output *TagResourceOutput) { + op := &request.Operation{ + Name: opTagResource, + HTTPMethod: "POST", + HTTPPath: "/tags?operation=tag-resource", + } + + if input == nil { + input = &TagResourceInput{} + } + + output = &TagResourceOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// TagResource API operation for Amazon Chime. +// +// Applies the specified tags to the specified Amazon Chime SDK meeting resource. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Chime's +// API operation TagResource for usage and error information. +// +// Returned Error Types: +// * BadRequestException +// The input parameters don't match the service's restrictions. +// +// * ForbiddenException +// The client is permanently forbidden from making the request. +// +// * NotFoundException +// One or more of the resources in the request does not exist in the system. +// +// * UnauthorizedClientException +// The client is not currently authorized to make the request. +// +// * ServiceUnavailableException +// The service is currently unavailable. +// +// * ServiceFailureException +// The service encountered an unexpected error. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/TagResource +func (c *Chime) TagResource(input *TagResourceInput) (*TagResourceOutput, error) { + req, out := c.TagResourceRequest(input) + return out, req.Send() +} + +// TagResourceWithContext is the same as TagResource with the addition of +// the ability to pass a context and additional request options. +// +// See TagResource for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Chime) TagResourceWithContext(ctx aws.Context, input *TagResourceInput, opts ...request.Option) (*TagResourceOutput, error) { + req, out := c.TagResourceRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUntagAttendee = "UntagAttendee" + +// UntagAttendeeRequest generates a "aws/request.Request" representing the +// client's request for the UntagAttendee 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 UntagAttendee for more information on using the UntagAttendee +// 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 UntagAttendeeRequest method. +// req, resp := client.UntagAttendeeRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/UntagAttendee +func (c *Chime) UntagAttendeeRequest(input *UntagAttendeeInput) (req *request.Request, output *UntagAttendeeOutput) { + op := &request.Operation{ + Name: opUntagAttendee, + HTTPMethod: "POST", + HTTPPath: "/meetings/{meetingId}/attendees/{attendeeId}/tags?operation=delete", + } + + if input == nil { + input = &UntagAttendeeInput{} + } + + output = &UntagAttendeeOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// UntagAttendee API operation for Amazon Chime. +// +// Untags the specified tags from the specified Amazon Chime SDK attendee. +// +// 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 Chime's +// API operation UntagAttendee for usage and error information. +// +// Returned Error Types: +// * BadRequestException +// The input parameters don't match the service's restrictions. +// +// * ForbiddenException +// The client is permanently forbidden from making the request. +// +// * ThrottledClientException +// The client exceeded its request rate limit. +// +// * NotFoundException +// One or more of the resources in the request does not exist in the system. +// +// * UnauthorizedClientException +// The client is not currently authorized to make the request. +// +// * ServiceUnavailableException +// The service is currently unavailable. +// +// * ServiceFailureException +// The service encountered an unexpected error. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/UntagAttendee +func (c *Chime) UntagAttendee(input *UntagAttendeeInput) (*UntagAttendeeOutput, error) { + req, out := c.UntagAttendeeRequest(input) + return out, req.Send() +} + +// UntagAttendeeWithContext is the same as UntagAttendee with the addition of +// the ability to pass a context and additional request options. +// +// See UntagAttendee 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 *Chime) UntagAttendeeWithContext(ctx aws.Context, input *UntagAttendeeInput, opts ...request.Option) (*UntagAttendeeOutput, error) { + req, out := c.UntagAttendeeRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUntagMeeting = "UntagMeeting" + +// UntagMeetingRequest generates a "aws/request.Request" representing the +// client's request for the UntagMeeting 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 UntagMeeting for more information on using the UntagMeeting +// 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 UntagMeetingRequest method. +// req, resp := client.UntagMeetingRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/UntagMeeting +func (c *Chime) UntagMeetingRequest(input *UntagMeetingInput) (req *request.Request, output *UntagMeetingOutput) { + op := &request.Operation{ + Name: opUntagMeeting, + HTTPMethod: "POST", + HTTPPath: "/meetings/{meetingId}/tags?operation=delete", + } + + if input == nil { + input = &UntagMeetingInput{} + } + + output = &UntagMeetingOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// UntagMeeting API operation for Amazon Chime. +// +// Untags the specified tags from the specified Amazon Chime SDK meeting. +// +// 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 Chime's +// API operation UntagMeeting for usage and error information. +// +// Returned Error Types: +// * BadRequestException +// The input parameters don't match the service's restrictions. +// +// * ForbiddenException +// The client is permanently forbidden from making the request. +// +// * ThrottledClientException +// The client exceeded its request rate limit. +// +// * NotFoundException +// One or more of the resources in the request does not exist in the system. +// +// * UnauthorizedClientException +// The client is not currently authorized to make the request. +// +// * ServiceUnavailableException +// The service is currently unavailable. +// +// * ServiceFailureException +// The service encountered an unexpected error. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/UntagMeeting +func (c *Chime) UntagMeeting(input *UntagMeetingInput) (*UntagMeetingOutput, error) { + req, out := c.UntagMeetingRequest(input) + return out, req.Send() +} + +// UntagMeetingWithContext is the same as UntagMeeting with the addition of +// the ability to pass a context and additional request options. +// +// See UntagMeeting 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 *Chime) UntagMeetingWithContext(ctx aws.Context, input *UntagMeetingInput, opts ...request.Option) (*UntagMeetingOutput, error) { + req, out := c.UntagMeetingRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUntagResource = "UntagResource" + +// UntagResourceRequest generates a "aws/request.Request" representing the +// client's request for the UntagResource operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UntagResource for more information on using the UntagResource +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the UntagResourceRequest method. +// req, resp := client.UntagResourceRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/UntagResource +func (c *Chime) UntagResourceRequest(input *UntagResourceInput) (req *request.Request, output *UntagResourceOutput) { + op := &request.Operation{ + Name: opUntagResource, + HTTPMethod: "POST", + HTTPPath: "/tags?operation=untag-resource", + } + + if input == nil { + input = &UntagResourceInput{} + } + + output = &UntagResourceOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// UntagResource API operation for Amazon Chime. +// +// Untags the specified tags from the specified Amazon Chime SDK meeting resource. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Chime's +// API operation UntagResource for usage and error information. +// +// Returned Error Types: +// * BadRequestException +// The input parameters don't match the service's restrictions. +// +// * ForbiddenException +// The client is permanently forbidden from making the request. +// +// * NotFoundException +// One or more of the resources in the request does not exist in the system. +// +// * UnauthorizedClientException +// The client is not currently authorized to make the request. +// +// * ServiceUnavailableException +// The service is currently unavailable. +// +// * ServiceFailureException +// The service encountered an unexpected error. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/UntagResource +func (c *Chime) UntagResource(input *UntagResourceInput) (*UntagResourceOutput, error) { + req, out := c.UntagResourceRequest(input) + return out, req.Send() +} + +// UntagResourceWithContext is the same as UntagResource with the addition of +// the ability to pass a context and additional request options. +// +// See UntagResource for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Chime) UntagResourceWithContext(ctx aws.Context, input *UntagResourceInput, opts ...request.Option) (*UntagResourceOutput, error) { + req, out := c.UntagResourceRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateAccount = "UpdateAccount" + +// UpdateAccountRequest generates a "aws/request.Request" representing the +// client's request for the UpdateAccount 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 UpdateAccount for more information on using the UpdateAccount +// 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 UpdateAccountRequest method. +// req, resp := client.UpdateAccountRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/UpdateAccount +func (c *Chime) UpdateAccountRequest(input *UpdateAccountInput) (req *request.Request, output *UpdateAccountOutput) { + op := &request.Operation{ + Name: opUpdateAccount, + HTTPMethod: "POST", + HTTPPath: "/accounts/{accountId}", + } + + if input == nil { + input = &UpdateAccountInput{} + } + + output = &UpdateAccountOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateAccount API operation for Amazon Chime. +// +// Updates account details for the specified Amazon Chime account. Currently, +// only account name updates are supported for this action. +// +// 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 Chime's +// API operation UpdateAccount for usage and error information. +// +// Returned Error Types: +// * UnauthorizedClientException +// The client is not currently authorized to make the request. +// +// * NotFoundException +// One or more of the resources in the request does not exist in the system. +// +// * ForbiddenException +// The client is permanently forbidden from making the request. +// +// * BadRequestException +// The input parameters don't match the service's restrictions. +// +// * ThrottledClientException +// The client exceeded its request rate limit. +// +// * ServiceUnavailableException +// The service is currently unavailable. +// +// * ServiceFailureException +// The service encountered an unexpected error. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/UpdateAccount +func (c *Chime) UpdateAccount(input *UpdateAccountInput) (*UpdateAccountOutput, error) { + req, out := c.UpdateAccountRequest(input) + return out, req.Send() +} + +// UpdateAccountWithContext is the same as UpdateAccount with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateAccount 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 *Chime) UpdateAccountWithContext(ctx aws.Context, input *UpdateAccountInput, opts ...request.Option) (*UpdateAccountOutput, error) { + req, out := c.UpdateAccountRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateAccountSettings = "UpdateAccountSettings" + +// UpdateAccountSettingsRequest generates a "aws/request.Request" representing the +// client's request for the UpdateAccountSettings 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 UpdateAccountSettings for more information on using the UpdateAccountSettings +// 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 UpdateAccountSettingsRequest method. +// req, resp := client.UpdateAccountSettingsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/UpdateAccountSettings +func (c *Chime) UpdateAccountSettingsRequest(input *UpdateAccountSettingsInput) (req *request.Request, output *UpdateAccountSettingsOutput) { + op := &request.Operation{ + Name: opUpdateAccountSettings, + HTTPMethod: "PUT", + HTTPPath: "/accounts/{accountId}/settings", + } + + if input == nil { + input = &UpdateAccountSettingsInput{} + } + + output = &UpdateAccountSettingsOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// UpdateAccountSettings API operation for Amazon Chime. +// +// Updates the settings for the specified Amazon Chime account. You can update +// settings for remote control of shared screens, or for the dial-out option. +// For more information about these settings, see Use the Policies Page (https://docs.aws.amazon.com/chime/latest/ag/policies.html) +// in the Amazon Chime Administration Guide. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Chime's +// API operation UpdateAccountSettings for usage and error information. +// +// Returned Error Types: +// * UnauthorizedClientException +// The client is not currently authorized to make the request. +// +// * NotFoundException +// One or more of the resources in the request does not exist in the system. +// +// * BadRequestException +// The input parameters don't match the service's restrictions. +// +// * ForbiddenException +// The client is permanently forbidden from making the request. +// +// * ConflictException +// The request could not be processed because of conflict in the current state +// of the resource. +// +// * ThrottledClientException +// The client exceeded its request rate limit. +// +// * ServiceUnavailableException +// The service is currently unavailable. +// +// * ServiceFailureException +// The service encountered an unexpected error. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/UpdateAccountSettings +func (c *Chime) UpdateAccountSettings(input *UpdateAccountSettingsInput) (*UpdateAccountSettingsOutput, error) { + req, out := c.UpdateAccountSettingsRequest(input) + return out, req.Send() +} + +// UpdateAccountSettingsWithContext is the same as UpdateAccountSettings with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateAccountSettings 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 *Chime) UpdateAccountSettingsWithContext(ctx aws.Context, input *UpdateAccountSettingsInput, opts ...request.Option) (*UpdateAccountSettingsOutput, error) { + req, out := c.UpdateAccountSettingsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateAppInstance = "UpdateAppInstance" + +// UpdateAppInstanceRequest generates a "aws/request.Request" representing the +// client's request for the UpdateAppInstance 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 UpdateAppInstance for more information on using the UpdateAppInstance +// 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 UpdateAppInstanceRequest method. +// req, resp := client.UpdateAppInstanceRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/UpdateAppInstance +func (c *Chime) UpdateAppInstanceRequest(input *UpdateAppInstanceInput) (req *request.Request, output *UpdateAppInstanceOutput) { + op := &request.Operation{ + Name: opUpdateAppInstance, + HTTPMethod: "PUT", + HTTPPath: "/app-instances/{appInstanceArn}", + } + + if input == nil { + input = &UpdateAppInstanceInput{} + } + + output = &UpdateAppInstanceOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("identity-", nil)) + req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) + return +} + +// UpdateAppInstance API operation for Amazon Chime. +// +// Updates AppInstance metadata. +// +// 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 Chime's +// API operation UpdateAppInstance for usage and error information. +// +// Returned Error Types: +// * BadRequestException +// The input parameters don't match the service's restrictions. +// +// * ConflictException +// The request could not be processed because of conflict in the current state +// of the resource. +// +// * ForbiddenException +// The client is permanently forbidden from making the request. +// +// * ThrottledClientException +// The client exceeded its request rate limit. +// +// * UnauthorizedClientException +// The client is not currently authorized to make the request. +// +// * ServiceUnavailableException +// The service is currently unavailable. +// +// * ServiceFailureException +// The service encountered an unexpected error. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/UpdateAppInstance +func (c *Chime) UpdateAppInstance(input *UpdateAppInstanceInput) (*UpdateAppInstanceOutput, error) { + req, out := c.UpdateAppInstanceRequest(input) + return out, req.Send() +} + +// UpdateAppInstanceWithContext is the same as UpdateAppInstance with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateAppInstance 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 *Chime) UpdateAppInstanceWithContext(ctx aws.Context, input *UpdateAppInstanceInput, opts ...request.Option) (*UpdateAppInstanceOutput, error) { + req, out := c.UpdateAppInstanceRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateAppInstanceUser = "UpdateAppInstanceUser" + +// UpdateAppInstanceUserRequest generates a "aws/request.Request" representing the +// client's request for the UpdateAppInstanceUser 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 UpdateAppInstanceUser for more information on using the UpdateAppInstanceUser +// 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 UpdateAppInstanceUserRequest method. +// req, resp := client.UpdateAppInstanceUserRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/UpdateAppInstanceUser +func (c *Chime) UpdateAppInstanceUserRequest(input *UpdateAppInstanceUserInput) (req *request.Request, output *UpdateAppInstanceUserOutput) { + op := &request.Operation{ + Name: opUpdateAppInstanceUser, + HTTPMethod: "PUT", + HTTPPath: "/app-instance-users/{appInstanceUserArn}", + } + + if input == nil { + input = &UpdateAppInstanceUserInput{} + } + + output = &UpdateAppInstanceUserOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("identity-", nil)) + req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) + return +} + +// UpdateAppInstanceUser API operation for Amazon Chime. +// +// Updates the details for an AppInstanceUser. You can update names and metadata. +// +// 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 Chime's +// API operation UpdateAppInstanceUser for usage and error information. +// +// Returned Error Types: +// * BadRequestException +// The input parameters don't match the service's restrictions. +// +// * ConflictException +// The request could not be processed because of conflict in the current state +// of the resource. +// +// * ForbiddenException +// The client is permanently forbidden from making the request. +// +// * ThrottledClientException +// The client exceeded its request rate limit. +// +// * UnauthorizedClientException +// The client is not currently authorized to make the request. +// +// * ServiceUnavailableException +// The service is currently unavailable. +// +// * ServiceFailureException +// The service encountered an unexpected error. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/UpdateAppInstanceUser +func (c *Chime) UpdateAppInstanceUser(input *UpdateAppInstanceUserInput) (*UpdateAppInstanceUserOutput, error) { + req, out := c.UpdateAppInstanceUserRequest(input) + return out, req.Send() +} + +// UpdateAppInstanceUserWithContext is the same as UpdateAppInstanceUser with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateAppInstanceUser 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 *Chime) UpdateAppInstanceUserWithContext(ctx aws.Context, input *UpdateAppInstanceUserInput, opts ...request.Option) (*UpdateAppInstanceUserOutput, error) { + req, out := c.UpdateAppInstanceUserRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateBot = "UpdateBot" + +// UpdateBotRequest generates a "aws/request.Request" representing the +// client's request for the UpdateBot 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 UpdateBot for more information on using the UpdateBot +// 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 UpdateBotRequest method. +// req, resp := client.UpdateBotRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/UpdateBot +func (c *Chime) UpdateBotRequest(input *UpdateBotInput) (req *request.Request, output *UpdateBotOutput) { + op := &request.Operation{ + Name: opUpdateBot, + HTTPMethod: "POST", + HTTPPath: "/accounts/{accountId}/bots/{botId}", + } + + if input == nil { + input = &UpdateBotInput{} + } + + output = &UpdateBotOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateBot API operation for Amazon Chime. +// +// Updates the status of the specified bot, such as starting or stopping the +// bot from running in your Amazon Chime Enterprise account. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Chime's +// API operation UpdateBot for usage and error information. +// +// Returned Error Types: +// * ServiceUnavailableException +// The service is currently unavailable. +// +// * ServiceFailureException +// The service encountered an unexpected error. +// +// * ForbiddenException +// The client is permanently forbidden from making the request. +// +// * BadRequestException +// The input parameters don't match the service's restrictions. +// +// * UnauthorizedClientException +// The client is not currently authorized to make the request. +// +// * NotFoundException +// One or more of the resources in the request does not exist in the system. +// +// * ThrottledClientException +// The client exceeded its request rate limit. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/UpdateBot +func (c *Chime) UpdateBot(input *UpdateBotInput) (*UpdateBotOutput, error) { + req, out := c.UpdateBotRequest(input) + return out, req.Send() +} + +// UpdateBotWithContext is the same as UpdateBot with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateBot 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 *Chime) UpdateBotWithContext(ctx aws.Context, input *UpdateBotInput, opts ...request.Option) (*UpdateBotOutput, error) { + req, out := c.UpdateBotRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateChannel = "UpdateChannel" + +// UpdateChannelRequest generates a "aws/request.Request" representing the +// client's request for the UpdateChannel 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 UpdateChannel for more information on using the UpdateChannel +// 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 UpdateChannelRequest method. +// req, resp := client.UpdateChannelRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/UpdateChannel +func (c *Chime) UpdateChannelRequest(input *UpdateChannelInput) (req *request.Request, output *UpdateChannelOutput) { + op := &request.Operation{ + Name: opUpdateChannel, + HTTPMethod: "PUT", + HTTPPath: "/channels/{channelArn}", + } + + if input == nil { + input = &UpdateChannelInput{} + } + + output = &UpdateChannelOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("messaging-", nil)) + req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) + return +} + +// UpdateChannel API operation for Amazon Chime. +// +// Update a channel's attributes. +// +// Restriction: You can't change a channel's privacy. +// +// 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 Chime's +// API operation UpdateChannel for usage and error information. +// +// Returned Error Types: +// * BadRequestException +// The input parameters don't match the service's restrictions. +// +// * ForbiddenException +// The client is permanently forbidden from making the request. +// +// * ConflictException +// The request could not be processed because of conflict in the current state +// of the resource. +// +// * UnauthorizedClientException +// The client is not currently authorized to make the request. +// +// * ThrottledClientException +// The client exceeded its request rate limit. +// +// * ServiceUnavailableException +// The service is currently unavailable. +// +// * ServiceFailureException +// The service encountered an unexpected error. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/UpdateChannel +func (c *Chime) UpdateChannel(input *UpdateChannelInput) (*UpdateChannelOutput, error) { + req, out := c.UpdateChannelRequest(input) + return out, req.Send() +} + +// UpdateChannelWithContext is the same as UpdateChannel with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateChannel 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 *Chime) UpdateChannelWithContext(ctx aws.Context, input *UpdateChannelInput, opts ...request.Option) (*UpdateChannelOutput, error) { + req, out := c.UpdateChannelRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateChannelMessage = "UpdateChannelMessage" + +// UpdateChannelMessageRequest generates a "aws/request.Request" representing the +// client's request for the UpdateChannelMessage 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 UpdateChannelMessage for more information on using the UpdateChannelMessage +// 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 UpdateChannelMessageRequest method. +// req, resp := client.UpdateChannelMessageRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/UpdateChannelMessage +func (c *Chime) UpdateChannelMessageRequest(input *UpdateChannelMessageInput) (req *request.Request, output *UpdateChannelMessageOutput) { + op := &request.Operation{ + Name: opUpdateChannelMessage, + HTTPMethod: "PUT", + HTTPPath: "/channels/{channelArn}/messages/{messageId}", + } + + if input == nil { + input = &UpdateChannelMessageInput{} + } + + output = &UpdateChannelMessageOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("messaging-", nil)) + req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) + return +} + +// UpdateChannelMessage API operation for Amazon Chime. +// +// Updates the content of a message. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Chime's +// API operation UpdateChannelMessage for usage and error information. +// +// Returned Error Types: +// * BadRequestException +// The input parameters don't match the service's restrictions. +// +// * ConflictException +// The request could not be processed because of conflict in the current state +// of the resource. +// +// * ForbiddenException +// The client is permanently forbidden from making the request. +// +// * UnauthorizedClientException +// The client is not currently authorized to make the request. +// +// * ThrottledClientException +// The client exceeded its request rate limit. +// +// * ServiceUnavailableException +// The service is currently unavailable. +// +// * ServiceFailureException +// The service encountered an unexpected error. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/UpdateChannelMessage +func (c *Chime) UpdateChannelMessage(input *UpdateChannelMessageInput) (*UpdateChannelMessageOutput, error) { + req, out := c.UpdateChannelMessageRequest(input) + return out, req.Send() +} + +// UpdateChannelMessageWithContext is the same as UpdateChannelMessage with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateChannelMessage 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 *Chime) UpdateChannelMessageWithContext(ctx aws.Context, input *UpdateChannelMessageInput, opts ...request.Option) (*UpdateChannelMessageOutput, error) { + req, out := c.UpdateChannelMessageRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateChannelReadMarker = "UpdateChannelReadMarker" + +// UpdateChannelReadMarkerRequest generates a "aws/request.Request" representing the +// client's request for the UpdateChannelReadMarker 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 UpdateChannelReadMarker for more information on using the UpdateChannelReadMarker +// 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 UpdateChannelReadMarkerRequest method. +// req, resp := client.UpdateChannelReadMarkerRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/UpdateChannelReadMarker +func (c *Chime) UpdateChannelReadMarkerRequest(input *UpdateChannelReadMarkerInput) (req *request.Request, output *UpdateChannelReadMarkerOutput) { + op := &request.Operation{ + Name: opUpdateChannelReadMarker, + HTTPMethod: "PUT", + HTTPPath: "/channels/{channelArn}/readMarker", + } + + if input == nil { + input = &UpdateChannelReadMarkerInput{} + } + + output = &UpdateChannelReadMarkerOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("messaging-", nil)) + req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) + return +} + +// UpdateChannelReadMarker API operation for Amazon Chime. +// +// Sets the timestamp to the point when a user last read messages in a channel. +// +// 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 Chime's +// API operation UpdateChannelReadMarker for usage and error information. +// +// Returned Error Types: +// * BadRequestException +// The input parameters don't match the service's restrictions. +// +// * ForbiddenException +// The client is permanently forbidden from making the request. +// +// * ConflictException +// The request could not be processed because of conflict in the current state +// of the resource. +// +// * UnauthorizedClientException +// The client is not currently authorized to make the request. +// +// * ThrottledClientException +// The client exceeded its request rate limit. +// +// * ServiceUnavailableException +// The service is currently unavailable. +// +// * ServiceFailureException +// The service encountered an unexpected error. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/UpdateChannelReadMarker +func (c *Chime) UpdateChannelReadMarker(input *UpdateChannelReadMarkerInput) (*UpdateChannelReadMarkerOutput, error) { + req, out := c.UpdateChannelReadMarkerRequest(input) + return out, req.Send() +} + +// UpdateChannelReadMarkerWithContext is the same as UpdateChannelReadMarker with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateChannelReadMarker 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 *Chime) UpdateChannelReadMarkerWithContext(ctx aws.Context, input *UpdateChannelReadMarkerInput, opts ...request.Option) (*UpdateChannelReadMarkerOutput, error) { + req, out := c.UpdateChannelReadMarkerRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateGlobalSettings = "UpdateGlobalSettings" + +// UpdateGlobalSettingsRequest generates a "aws/request.Request" representing the +// client's request for the UpdateGlobalSettings 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 UpdateGlobalSettings for more information on using the UpdateGlobalSettings +// 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 UpdateGlobalSettingsRequest method. +// req, resp := client.UpdateGlobalSettingsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/UpdateGlobalSettings +func (c *Chime) UpdateGlobalSettingsRequest(input *UpdateGlobalSettingsInput) (req *request.Request, output *UpdateGlobalSettingsOutput) { + op := &request.Operation{ + Name: opUpdateGlobalSettings, + HTTPMethod: "PUT", + HTTPPath: "/settings", + } + + if input == nil { + input = &UpdateGlobalSettingsInput{} + } + + output = &UpdateGlobalSettingsOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// UpdateGlobalSettings API operation for Amazon Chime. +// +// Updates global settings for the administrator's AWS account, such as Amazon +// Chime Business Calling and Amazon Chime Voice Connector settings. +// +// 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 Chime's +// API operation UpdateGlobalSettings for usage and error information. +// +// Returned Error Types: +// * UnauthorizedClientException +// The client is not currently authorized to make the request. +// +// * ForbiddenException +// The client is permanently forbidden from making the request. +// +// * BadRequestException +// The input parameters don't match the service's restrictions. +// +// * ThrottledClientException +// The client exceeded its request rate limit. +// +// * ServiceUnavailableException +// The service is currently unavailable. +// +// * ServiceFailureException +// The service encountered an unexpected error. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/UpdateGlobalSettings +func (c *Chime) UpdateGlobalSettings(input *UpdateGlobalSettingsInput) (*UpdateGlobalSettingsOutput, error) { + req, out := c.UpdateGlobalSettingsRequest(input) + return out, req.Send() +} + +// UpdateGlobalSettingsWithContext is the same as UpdateGlobalSettings with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateGlobalSettings 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 *Chime) UpdateGlobalSettingsWithContext(ctx aws.Context, input *UpdateGlobalSettingsInput, opts ...request.Option) (*UpdateGlobalSettingsOutput, error) { + req, out := c.UpdateGlobalSettingsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdatePhoneNumber = "UpdatePhoneNumber" + +// UpdatePhoneNumberRequest generates a "aws/request.Request" representing the +// client's request for the UpdatePhoneNumber operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdatePhoneNumber for more information on using the UpdatePhoneNumber +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the UpdatePhoneNumberRequest method. +// req, resp := client.UpdatePhoneNumberRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/UpdatePhoneNumber +func (c *Chime) UpdatePhoneNumberRequest(input *UpdatePhoneNumberInput) (req *request.Request, output *UpdatePhoneNumberOutput) { + op := &request.Operation{ + Name: opUpdatePhoneNumber, + HTTPMethod: "POST", + HTTPPath: "/phone-numbers/{phoneNumberId}", + } + + if input == nil { + input = &UpdatePhoneNumberInput{} + } + + output = &UpdatePhoneNumberOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdatePhoneNumber API operation for Amazon Chime. +// +// Updates phone number details, such as product type or calling name, for the +// specified phone number ID. You can update one phone number detail at a time. +// For example, you can update either the product type or the calling name in +// one action. +// +// For toll-free numbers, you must use the Amazon Chime Voice Connector product +// type. +// +// Updates to outbound calling names can take up to 72 hours to complete. Pending +// updates to outbound calling names must be complete before you can request +// another update. +// +// 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 Chime's +// API operation UpdatePhoneNumber for usage and error information. +// +// Returned Error Types: +// * UnauthorizedClientException +// The client is not currently authorized to make the request. +// +// * NotFoundException +// One or more of the resources in the request does not exist in the system. +// +// * ForbiddenException +// The client is permanently forbidden from making the request. +// +// * BadRequestException +// The input parameters don't match the service's restrictions. +// +// * ThrottledClientException +// The client exceeded its request rate limit. +// +// * ServiceUnavailableException +// The service is currently unavailable. +// +// * ServiceFailureException +// The service encountered an unexpected error. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/UpdatePhoneNumber +func (c *Chime) UpdatePhoneNumber(input *UpdatePhoneNumberInput) (*UpdatePhoneNumberOutput, error) { + req, out := c.UpdatePhoneNumberRequest(input) + return out, req.Send() +} + +// UpdatePhoneNumberWithContext is the same as UpdatePhoneNumber with the addition of +// the ability to pass a context and additional request options. +// +// See UpdatePhoneNumber for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Chime) UpdatePhoneNumberWithContext(ctx aws.Context, input *UpdatePhoneNumberInput, opts ...request.Option) (*UpdatePhoneNumberOutput, error) { + req, out := c.UpdatePhoneNumberRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdatePhoneNumberSettings = "UpdatePhoneNumberSettings" + +// UpdatePhoneNumberSettingsRequest generates a "aws/request.Request" representing the +// client's request for the UpdatePhoneNumberSettings 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 UpdatePhoneNumberSettings for more information on using the UpdatePhoneNumberSettings +// 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 UpdatePhoneNumberSettingsRequest method. +// req, resp := client.UpdatePhoneNumberSettingsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/UpdatePhoneNumberSettings +func (c *Chime) UpdatePhoneNumberSettingsRequest(input *UpdatePhoneNumberSettingsInput) (req *request.Request, output *UpdatePhoneNumberSettingsOutput) { + op := &request.Operation{ + Name: opUpdatePhoneNumberSettings, + HTTPMethod: "PUT", + HTTPPath: "/settings/phone-number", + } + + if input == nil { + input = &UpdatePhoneNumberSettingsInput{} + } + + output = &UpdatePhoneNumberSettingsOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// UpdatePhoneNumberSettings API operation for Amazon Chime. +// +// Updates the phone number settings for the administrator's AWS account, such +// as the default outbound calling name. You can update the default outbound +// calling name once every seven days. Outbound calling names can take up to +// 72 hours to update. +// +// 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 Chime's +// API operation UpdatePhoneNumberSettings for usage and error information. +// +// Returned Error Types: +// * UnauthorizedClientException +// The client is not currently authorized to make the request. +// +// * ForbiddenException +// The client is permanently forbidden from making the request. +// +// * BadRequestException +// The input parameters don't match the service's restrictions. +// +// * ThrottledClientException +// The client exceeded its request rate limit. +// +// * ServiceUnavailableException +// The service is currently unavailable. +// +// * ServiceFailureException +// The service encountered an unexpected error. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/UpdatePhoneNumberSettings +func (c *Chime) UpdatePhoneNumberSettings(input *UpdatePhoneNumberSettingsInput) (*UpdatePhoneNumberSettingsOutput, error) { + req, out := c.UpdatePhoneNumberSettingsRequest(input) + return out, req.Send() +} + +// UpdatePhoneNumberSettingsWithContext is the same as UpdatePhoneNumberSettings with the addition of +// the ability to pass a context and additional request options. +// +// See UpdatePhoneNumberSettings 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 *Chime) UpdatePhoneNumberSettingsWithContext(ctx aws.Context, input *UpdatePhoneNumberSettingsInput, opts ...request.Option) (*UpdatePhoneNumberSettingsOutput, error) { + req, out := c.UpdatePhoneNumberSettingsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateProxySession = "UpdateProxySession" + +// UpdateProxySessionRequest generates a "aws/request.Request" representing the +// client's request for the UpdateProxySession 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 UpdateProxySession for more information on using the UpdateProxySession +// 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 UpdateProxySessionRequest method. +// req, resp := client.UpdateProxySessionRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/UpdateProxySession +func (c *Chime) UpdateProxySessionRequest(input *UpdateProxySessionInput) (req *request.Request, output *UpdateProxySessionOutput) { + op := &request.Operation{ + Name: opUpdateProxySession, + HTTPMethod: "POST", + HTTPPath: "/voice-connectors/{voiceConnectorId}/proxy-sessions/{proxySessionId}", + } + + if input == nil { + input = &UpdateProxySessionInput{} + } + + output = &UpdateProxySessionOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateProxySession API operation for Amazon Chime. +// +// Updates the specified proxy session details, such as voice or SMS capabilities. +// +// 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 Chime's +// API operation UpdateProxySession for usage and error information. +// +// Returned Error Types: +// * UnauthorizedClientException +// The client is not currently authorized to make the request. +// +// * NotFoundException +// One or more of the resources in the request does not exist in the system. +// +// * ForbiddenException +// The client is permanently forbidden from making the request. +// +// * BadRequestException +// The input parameters don't match the service's restrictions. +// +// * ThrottledClientException +// The client exceeded its request rate limit. +// +// * ServiceUnavailableException +// The service is currently unavailable. +// +// * ServiceFailureException +// The service encountered an unexpected error. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/UpdateProxySession +func (c *Chime) UpdateProxySession(input *UpdateProxySessionInput) (*UpdateProxySessionOutput, error) { + req, out := c.UpdateProxySessionRequest(input) + return out, req.Send() +} + +// UpdateProxySessionWithContext is the same as UpdateProxySession with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateProxySession 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 *Chime) UpdateProxySessionWithContext(ctx aws.Context, input *UpdateProxySessionInput, opts ...request.Option) (*UpdateProxySessionOutput, error) { + req, out := c.UpdateProxySessionRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateRoom = "UpdateRoom" + +// UpdateRoomRequest generates a "aws/request.Request" representing the +// client's request for the UpdateRoom 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 UpdateRoom for more information on using the UpdateRoom +// 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 UpdateRoomRequest method. +// req, resp := client.UpdateRoomRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/UpdateRoom +func (c *Chime) UpdateRoomRequest(input *UpdateRoomInput) (req *request.Request, output *UpdateRoomOutput) { + op := &request.Operation{ + Name: opUpdateRoom, + HTTPMethod: "POST", + HTTPPath: "/accounts/{accountId}/rooms/{roomId}", + } + + if input == nil { + input = &UpdateRoomInput{} + } + + output = &UpdateRoomOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateRoom API operation for Amazon Chime. +// +// Updates room details, such as the room name, for a room in an Amazon Chime +// Enterprise account. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Chime's +// API operation UpdateRoom for usage and error information. +// +// Returned Error Types: +// * BadRequestException +// The input parameters don't match the service's restrictions. +// +// * ForbiddenException +// The client is permanently forbidden from making the request. +// +// * NotFoundException +// One or more of the resources in the request does not exist in the system. +// +// * UnauthorizedClientException +// The client is not currently authorized to make the request. +// +// * ThrottledClientException +// The client exceeded its request rate limit. +// +// * ServiceUnavailableException +// The service is currently unavailable. +// +// * ServiceFailureException +// The service encountered an unexpected error. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/UpdateRoom +func (c *Chime) UpdateRoom(input *UpdateRoomInput) (*UpdateRoomOutput, error) { + req, out := c.UpdateRoomRequest(input) + return out, req.Send() +} + +// UpdateRoomWithContext is the same as UpdateRoom with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateRoom 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 *Chime) UpdateRoomWithContext(ctx aws.Context, input *UpdateRoomInput, opts ...request.Option) (*UpdateRoomOutput, error) { + req, out := c.UpdateRoomRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateRoomMembership = "UpdateRoomMembership" + +// UpdateRoomMembershipRequest generates a "aws/request.Request" representing the +// client's request for the UpdateRoomMembership 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 UpdateRoomMembership for more information on using the UpdateRoomMembership +// 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 UpdateRoomMembershipRequest method. +// req, resp := client.UpdateRoomMembershipRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/UpdateRoomMembership +func (c *Chime) UpdateRoomMembershipRequest(input *UpdateRoomMembershipInput) (req *request.Request, output *UpdateRoomMembershipOutput) { + op := &request.Operation{ + Name: opUpdateRoomMembership, + HTTPMethod: "POST", + HTTPPath: "/accounts/{accountId}/rooms/{roomId}/memberships/{memberId}", + } + + if input == nil { + input = &UpdateRoomMembershipInput{} + } + + output = &UpdateRoomMembershipOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateRoomMembership API operation for Amazon Chime. +// +// Updates room membership details, such as the member role, for a room in an +// Amazon Chime Enterprise account. The member role designates whether the member +// is a chat room administrator or a general chat room member. The member role +// can be updated only for user IDs. +// +// 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 Chime's +// API operation UpdateRoomMembership for usage and error information. +// +// Returned Error Types: +// * UnauthorizedClientException +// The client is not currently authorized to make the request. +// +// * NotFoundException +// One or more of the resources in the request does not exist in the system. +// +// * BadRequestException +// The input parameters don't match the service's restrictions. +// +// * ForbiddenException +// The client is permanently forbidden from making the request. +// +// * ThrottledClientException +// The client exceeded its request rate limit. +// +// * ServiceUnavailableException +// The service is currently unavailable. +// +// * ServiceFailureException +// The service encountered an unexpected error. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/UpdateRoomMembership +func (c *Chime) UpdateRoomMembership(input *UpdateRoomMembershipInput) (*UpdateRoomMembershipOutput, error) { + req, out := c.UpdateRoomMembershipRequest(input) + return out, req.Send() +} + +// UpdateRoomMembershipWithContext is the same as UpdateRoomMembership with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateRoomMembership 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 *Chime) UpdateRoomMembershipWithContext(ctx aws.Context, input *UpdateRoomMembershipInput, opts ...request.Option) (*UpdateRoomMembershipOutput, error) { + req, out := c.UpdateRoomMembershipRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateSipMediaApplication = "UpdateSipMediaApplication" + +// UpdateSipMediaApplicationRequest generates a "aws/request.Request" representing the +// client's request for the UpdateSipMediaApplication 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 UpdateSipMediaApplication for more information on using the UpdateSipMediaApplication +// 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 UpdateSipMediaApplicationRequest method. +// req, resp := client.UpdateSipMediaApplicationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/UpdateSipMediaApplication +func (c *Chime) UpdateSipMediaApplicationRequest(input *UpdateSipMediaApplicationInput) (req *request.Request, output *UpdateSipMediaApplicationOutput) { + op := &request.Operation{ + Name: opUpdateSipMediaApplication, + HTTPMethod: "PUT", + HTTPPath: "/sip-media-applications/{sipMediaApplicationId}", + } + + if input == nil { + input = &UpdateSipMediaApplicationInput{} + } + + output = &UpdateSipMediaApplicationOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateSipMediaApplication API operation for Amazon Chime. +// +// Updates the details for the specified SIP media application. +// +// 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 Chime's +// API operation UpdateSipMediaApplication for usage and error information. +// +// Returned Error Types: +// * UnauthorizedClientException +// The client is not currently authorized to make the request. +// +// * NotFoundException +// One or more of the resources in the request does not exist in the system. +// +// * ForbiddenException +// The client is permanently forbidden from making the request. +// +// * BadRequestException +// The input parameters don't match the service's restrictions. +// +// * ConflictException +// The request could not be processed because of conflict in the current state +// of the resource. +// +// * ThrottledClientException +// The client exceeded its request rate limit. +// +// * ServiceUnavailableException +// The service is currently unavailable. +// +// * ServiceFailureException +// The service encountered an unexpected error. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/UpdateSipMediaApplication +func (c *Chime) UpdateSipMediaApplication(input *UpdateSipMediaApplicationInput) (*UpdateSipMediaApplicationOutput, error) { + req, out := c.UpdateSipMediaApplicationRequest(input) + return out, req.Send() +} + +// UpdateSipMediaApplicationWithContext is the same as UpdateSipMediaApplication with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateSipMediaApplication 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 *Chime) UpdateSipMediaApplicationWithContext(ctx aws.Context, input *UpdateSipMediaApplicationInput, opts ...request.Option) (*UpdateSipMediaApplicationOutput, error) { + req, out := c.UpdateSipMediaApplicationRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateSipRule = "UpdateSipRule" + +// UpdateSipRuleRequest generates a "aws/request.Request" representing the +// client's request for the UpdateSipRule 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 UpdateSipRule for more information on using the UpdateSipRule +// 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 UpdateSipRuleRequest method. +// req, resp := client.UpdateSipRuleRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/UpdateSipRule +func (c *Chime) UpdateSipRuleRequest(input *UpdateSipRuleInput) (req *request.Request, output *UpdateSipRuleOutput) { + op := &request.Operation{ + Name: opUpdateSipRule, + HTTPMethod: "PUT", + HTTPPath: "/sip-rules/{sipRuleId}", + } + + if input == nil { + input = &UpdateSipRuleInput{} + } + + output = &UpdateSipRuleOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateSipRule API operation for Amazon Chime. +// +// Updates the details for the specified SIP rule. +// +// 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 Chime's +// API operation UpdateSipRule for usage and error information. +// +// Returned Error Types: +// * UnauthorizedClientException +// The client is not currently authorized to make the request. +// +// * NotFoundException +// One or more of the resources in the request does not exist in the system. +// +// * ForbiddenException +// The client is permanently forbidden from making the request. +// +// * BadRequestException +// The input parameters don't match the service's restrictions. +// +// * ConflictException +// The request could not be processed because of conflict in the current state +// of the resource. +// +// * ThrottledClientException +// The client exceeded its request rate limit. +// +// * ResourceLimitExceededException +// The request exceeds the resource limit. +// +// * ServiceUnavailableException +// The service is currently unavailable. +// +// * ServiceFailureException +// The service encountered an unexpected error. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/UpdateSipRule +func (c *Chime) UpdateSipRule(input *UpdateSipRuleInput) (*UpdateSipRuleOutput, error) { + req, out := c.UpdateSipRuleRequest(input) + return out, req.Send() +} + +// UpdateSipRuleWithContext is the same as UpdateSipRule with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateSipRule 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 *Chime) UpdateSipRuleWithContext(ctx aws.Context, input *UpdateSipRuleInput, opts ...request.Option) (*UpdateSipRuleOutput, error) { + req, out := c.UpdateSipRuleRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateUser = "UpdateUser" + +// UpdateUserRequest generates a "aws/request.Request" representing the +// client's request for the UpdateUser 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 UpdateUser for more information on using the UpdateUser +// 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 UpdateUserRequest method. +// req, resp := client.UpdateUserRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/UpdateUser +func (c *Chime) UpdateUserRequest(input *UpdateUserInput) (req *request.Request, output *UpdateUserOutput) { + op := &request.Operation{ + Name: opUpdateUser, + HTTPMethod: "POST", + HTTPPath: "/accounts/{accountId}/users/{userId}", + } + + if input == nil { + input = &UpdateUserInput{} + } + + output = &UpdateUserOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateUser API operation for Amazon Chime. +// +// Updates user details for a specified user ID. Currently, only LicenseType +// updates are supported for this action. +// +// 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 Chime's +// API operation UpdateUser for usage and error information. +// +// Returned Error Types: +// * UnauthorizedClientException +// The client is not currently authorized to make the request. +// +// * NotFoundException +// One or more of the resources in the request does not exist in the system. +// +// * ForbiddenException +// The client is permanently forbidden from making the request. +// +// * BadRequestException +// The input parameters don't match the service's restrictions. +// +// * ThrottledClientException +// The client exceeded its request rate limit. +// +// * ServiceUnavailableException +// The service is currently unavailable. +// +// * ServiceFailureException +// The service encountered an unexpected error. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/UpdateUser +func (c *Chime) UpdateUser(input *UpdateUserInput) (*UpdateUserOutput, error) { + req, out := c.UpdateUserRequest(input) + return out, req.Send() +} + +// UpdateUserWithContext is the same as UpdateUser with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateUser 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 *Chime) UpdateUserWithContext(ctx aws.Context, input *UpdateUserInput, opts ...request.Option) (*UpdateUserOutput, error) { + req, out := c.UpdateUserRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateUserSettings = "UpdateUserSettings" + +// UpdateUserSettingsRequest generates a "aws/request.Request" representing the +// client's request for the UpdateUserSettings 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 UpdateUserSettings for more information on using the UpdateUserSettings +// 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 UpdateUserSettingsRequest method. +// req, resp := client.UpdateUserSettingsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/UpdateUserSettings +func (c *Chime) UpdateUserSettingsRequest(input *UpdateUserSettingsInput) (req *request.Request, output *UpdateUserSettingsOutput) { + op := &request.Operation{ + Name: opUpdateUserSettings, + HTTPMethod: "PUT", + HTTPPath: "/accounts/{accountId}/users/{userId}/settings", + } + + if input == nil { + input = &UpdateUserSettingsInput{} + } + + output = &UpdateUserSettingsOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// UpdateUserSettings API operation for Amazon Chime. +// +// Updates the settings for the specified user, such as phone number settings. +// +// 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 Chime's +// API operation UpdateUserSettings for usage and error information. +// +// Returned Error Types: +// * UnauthorizedClientException +// The client is not currently authorized to make the request. +// +// * NotFoundException +// One or more of the resources in the request does not exist in the system. +// +// * ForbiddenException +// The client is permanently forbidden from making the request. +// +// * BadRequestException +// The input parameters don't match the service's restrictions. +// +// * ThrottledClientException +// The client exceeded its request rate limit. +// +// * ServiceUnavailableException +// The service is currently unavailable. +// +// * ServiceFailureException +// The service encountered an unexpected error. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/UpdateUserSettings +func (c *Chime) UpdateUserSettings(input *UpdateUserSettingsInput) (*UpdateUserSettingsOutput, error) { + req, out := c.UpdateUserSettingsRequest(input) + return out, req.Send() +} + +// UpdateUserSettingsWithContext is the same as UpdateUserSettings with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateUserSettings 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 *Chime) UpdateUserSettingsWithContext(ctx aws.Context, input *UpdateUserSettingsInput, opts ...request.Option) (*UpdateUserSettingsOutput, error) { + req, out := c.UpdateUserSettingsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateVoiceConnector = "UpdateVoiceConnector" + +// UpdateVoiceConnectorRequest generates a "aws/request.Request" representing the +// client's request for the UpdateVoiceConnector 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 UpdateVoiceConnector for more information on using the UpdateVoiceConnector +// 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 UpdateVoiceConnectorRequest method. +// req, resp := client.UpdateVoiceConnectorRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/UpdateVoiceConnector +func (c *Chime) UpdateVoiceConnectorRequest(input *UpdateVoiceConnectorInput) (req *request.Request, output *UpdateVoiceConnectorOutput) { + op := &request.Operation{ + Name: opUpdateVoiceConnector, + HTTPMethod: "PUT", + HTTPPath: "/voice-connectors/{voiceConnectorId}", + } + + if input == nil { + input = &UpdateVoiceConnectorInput{} + } + + output = &UpdateVoiceConnectorOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateVoiceConnector API operation for Amazon Chime. +// +// Updates details for the specified Amazon Chime Voice Connector. +// +// 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 Chime's +// API operation UpdateVoiceConnector for usage and error information. +// +// Returned Error Types: +// * UnauthorizedClientException +// The client is not currently authorized to make the request. +// +// * NotFoundException +// One or more of the resources in the request does not exist in the system. +// +// * ForbiddenException +// The client is permanently forbidden from making the request. +// +// * BadRequestException +// The input parameters don't match the service's restrictions. +// +// * ThrottledClientException +// The client exceeded its request rate limit. +// +// * ServiceUnavailableException +// The service is currently unavailable. +// +// * ServiceFailureException +// The service encountered an unexpected error. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/UpdateVoiceConnector +func (c *Chime) UpdateVoiceConnector(input *UpdateVoiceConnectorInput) (*UpdateVoiceConnectorOutput, error) { + req, out := c.UpdateVoiceConnectorRequest(input) + return out, req.Send() +} + +// UpdateVoiceConnectorWithContext is the same as UpdateVoiceConnector with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateVoiceConnector 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 *Chime) UpdateVoiceConnectorWithContext(ctx aws.Context, input *UpdateVoiceConnectorInput, opts ...request.Option) (*UpdateVoiceConnectorOutput, error) { + req, out := c.UpdateVoiceConnectorRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateVoiceConnectorGroup = "UpdateVoiceConnectorGroup" + +// UpdateVoiceConnectorGroupRequest generates a "aws/request.Request" representing the +// client's request for the UpdateVoiceConnectorGroup 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 UpdateVoiceConnectorGroup for more information on using the UpdateVoiceConnectorGroup +// 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 UpdateVoiceConnectorGroupRequest method. +// req, resp := client.UpdateVoiceConnectorGroupRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/UpdateVoiceConnectorGroup +func (c *Chime) UpdateVoiceConnectorGroupRequest(input *UpdateVoiceConnectorGroupInput) (req *request.Request, output *UpdateVoiceConnectorGroupOutput) { + op := &request.Operation{ + Name: opUpdateVoiceConnectorGroup, + HTTPMethod: "PUT", + HTTPPath: "/voice-connector-groups/{voiceConnectorGroupId}", + } + + if input == nil { + input = &UpdateVoiceConnectorGroupInput{} + } + + output = &UpdateVoiceConnectorGroupOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateVoiceConnectorGroup API operation for Amazon Chime. +// +// Updates details for the specified Amazon Chime Voice Connector group, such +// as the name and Amazon Chime Voice Connector priority ranking. +// +// 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 Chime's +// API operation UpdateVoiceConnectorGroup for usage and error information. +// +// Returned Error Types: +// * UnauthorizedClientException +// The client is not currently authorized to make the request. +// +// * NotFoundException +// One or more of the resources in the request does not exist in the system. +// +// * ForbiddenException +// The client is permanently forbidden from making the request. +// +// * BadRequestException +// The input parameters don't match the service's restrictions. +// +// * ConflictException +// The request could not be processed because of conflict in the current state +// of the resource. +// +// * ThrottledClientException +// The client exceeded its request rate limit. +// +// * ServiceUnavailableException +// The service is currently unavailable. +// +// * ServiceFailureException +// The service encountered an unexpected error. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/UpdateVoiceConnectorGroup +func (c *Chime) UpdateVoiceConnectorGroup(input *UpdateVoiceConnectorGroupInput) (*UpdateVoiceConnectorGroupOutput, error) { + req, out := c.UpdateVoiceConnectorGroupRequest(input) + return out, req.Send() +} + +// UpdateVoiceConnectorGroupWithContext is the same as UpdateVoiceConnectorGroup with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateVoiceConnectorGroup 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 *Chime) UpdateVoiceConnectorGroupWithContext(ctx aws.Context, input *UpdateVoiceConnectorGroupInput, opts ...request.Option) (*UpdateVoiceConnectorGroupOutput, error) { + req, out := c.UpdateVoiceConnectorGroupRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// You don't have permissions to perform the requested operation. +type AccessDeniedException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + Code_ *string `locationName:"Code" type:"string" enum:"ErrorCode"` + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s AccessDeniedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AccessDeniedException) GoString() string { + return s.String() +} + +func newErrorAccessDeniedException(v protocol.ResponseMetadata) error { + return &AccessDeniedException{ + RespMetadata: v, + } +} + +// Code returns the exception type name. +func (s *AccessDeniedException) Code() string { + return "AccessDeniedException" +} + +// Message returns the exception's message. +func (s *AccessDeniedException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *AccessDeniedException) OrigErr() error { + return nil +} + +func (s *AccessDeniedException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s *AccessDeniedException) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *AccessDeniedException) RequestID() string { + return s.RespMetadata.RequestID +} + +// The Amazon Chime account details. An AWS account can have multiple Amazon +// Chime accounts. +type Account struct { + _ struct{} `type:"structure"` + + // The Amazon Chime account ID. + // + // AccountId is a required field + AccountId *string `type:"string" required:"true"` + + // The Amazon Chime account type. For more information about different account + // types, see Managing Your Amazon Chime Accounts (https://docs.aws.amazon.com/chime/latest/ag/manage-chime-account.html) + // in the Amazon Chime Administration Guide. + AccountType *string `type:"string" enum:"AccountType"` + + // The AWS account ID. + // + // AwsAccountId is a required field + AwsAccountId *string `type:"string" required:"true"` + + // The Amazon Chime account creation timestamp, in ISO 8601 format. + CreatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` + + // The default license for the Amazon Chime account. + DefaultLicense *string `type:"string" enum:"License"` + + // The Amazon Chime account name. + // + // Name is a required field + Name *string `type:"string" required:"true"` + + // The sign-in delegate groups associated with the account. + SigninDelegateGroups []*SigninDelegateGroup `type:"list"` + + // Supported licenses for the Amazon Chime account. + SupportedLicenses []*string `type:"list"` +} + +// String returns the string representation +func (s Account) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Account) GoString() string { + return s.String() +} + +// SetAccountId sets the AccountId field's value. +func (s *Account) SetAccountId(v string) *Account { + s.AccountId = &v + return s +} + +// SetAccountType sets the AccountType field's value. +func (s *Account) SetAccountType(v string) *Account { + s.AccountType = &v + return s +} + +// SetAwsAccountId sets the AwsAccountId field's value. +func (s *Account) SetAwsAccountId(v string) *Account { + s.AwsAccountId = &v + return s +} + +// SetCreatedTimestamp sets the CreatedTimestamp field's value. +func (s *Account) SetCreatedTimestamp(v time.Time) *Account { + s.CreatedTimestamp = &v + return s +} + +// SetDefaultLicense sets the DefaultLicense field's value. +func (s *Account) SetDefaultLicense(v string) *Account { + s.DefaultLicense = &v + return s +} + +// SetName sets the Name field's value. +func (s *Account) SetName(v string) *Account { + s.Name = &v + return s +} + +// SetSigninDelegateGroups sets the SigninDelegateGroups field's value. +func (s *Account) SetSigninDelegateGroups(v []*SigninDelegateGroup) *Account { + s.SigninDelegateGroups = v + return s +} + +// SetSupportedLicenses sets the SupportedLicenses field's value. +func (s *Account) SetSupportedLicenses(v []*string) *Account { + s.SupportedLicenses = v + return s +} + +// Settings related to the Amazon Chime account. This includes settings that +// start or stop remote control of shared screens, or start or stop the dial-out +// option in the Amazon Chime web application. For more information about these +// settings, see Use the Policies Page (https://docs.aws.amazon.com/chime/latest/ag/policies.html) +// in the Amazon Chime Administration Guide. +type AccountSettings struct { + _ struct{} `type:"structure"` + + // Setting that stops or starts remote control of shared screens during meetings. + DisableRemoteControl *bool `type:"boolean"` + + // Setting that allows meeting participants to choose the Call me at a phone + // number option. For more information, see Join a Meeting without the Amazon + // Chime App (https://docs.aws.amazon.com/chime/latest/ug/chime-join-meeting.html). + EnableDialOut *bool `type:"boolean"` +} + +// String returns the string representation +func (s AccountSettings) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AccountSettings) GoString() string { + return s.String() +} + +// SetDisableRemoteControl sets the DisableRemoteControl field's value. +func (s *AccountSettings) SetDisableRemoteControl(v bool) *AccountSettings { + s.DisableRemoteControl = &v + return s +} + +// SetEnableDialOut sets the EnableDialOut field's value. +func (s *AccountSettings) SetEnableDialOut(v bool) *AccountSettings { + s.EnableDialOut = &v + return s +} + +// The Alexa for Business metadata associated with an Amazon Chime user, used +// to integrate Alexa for Business with a device. +type AlexaForBusinessMetadata struct { + _ struct{} `type:"structure"` + + // The ARN of the room resource. + AlexaForBusinessRoomArn *string `type:"string" sensitive:"true"` + + // Starts or stops Alexa for Business. + IsAlexaForBusinessEnabled *bool `type:"boolean"` +} + +// String returns the string representation +func (s AlexaForBusinessMetadata) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AlexaForBusinessMetadata) GoString() string { + return s.String() +} + +// SetAlexaForBusinessRoomArn sets the AlexaForBusinessRoomArn field's value. +func (s *AlexaForBusinessMetadata) SetAlexaForBusinessRoomArn(v string) *AlexaForBusinessMetadata { + s.AlexaForBusinessRoomArn = &v + return s +} + +// SetIsAlexaForBusinessEnabled sets the IsAlexaForBusinessEnabled field's value. +func (s *AlexaForBusinessMetadata) SetIsAlexaForBusinessEnabled(v bool) *AlexaForBusinessMetadata { + s.IsAlexaForBusinessEnabled = &v + return s +} + +// An instance of a Chime messaging application. +type AppInstance struct { + _ struct{} `type:"structure"` + + // The ARN of the messaging instance. + AppInstanceArn *string `min:"5" type:"string"` + + // The time at which an app instance was created. In epoch milliseconds. + CreatedTimestamp *time.Time `type:"timestamp"` + + // The time an app instance was last updated. In epoch milliseconds. + LastUpdatedTimestamp *time.Time `type:"timestamp"` + + // The metadata of an app instance. + Metadata *string `type:"string" sensitive:"true"` + + // The name of an app instance. + Name *string `min:"1" type:"string" sensitive:"true"` +} + +// String returns the string representation +func (s AppInstance) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AppInstance) GoString() string { + return s.String() +} + +// SetAppInstanceArn sets the AppInstanceArn field's value. +func (s *AppInstance) SetAppInstanceArn(v string) *AppInstance { + s.AppInstanceArn = &v + return s +} + +// SetCreatedTimestamp sets the CreatedTimestamp field's value. +func (s *AppInstance) SetCreatedTimestamp(v time.Time) *AppInstance { + s.CreatedTimestamp = &v + return s +} + +// SetLastUpdatedTimestamp sets the LastUpdatedTimestamp field's value. +func (s *AppInstance) SetLastUpdatedTimestamp(v time.Time) *AppInstance { + s.LastUpdatedTimestamp = &v + return s +} + +// SetMetadata sets the Metadata field's value. +func (s *AppInstance) SetMetadata(v string) *AppInstance { + s.Metadata = &v + return s +} + +// SetName sets the Name field's value. +func (s *AppInstance) SetName(v string) *AppInstance { + s.Name = &v + return s +} + +// Promotes a user to the administrator role for the duration of an app instance. +type AppInstanceAdmin struct { + _ struct{} `type:"structure"` + + // The name and metadata of the app instance administrator. + Admin *Identity `type:"structure"` + + // The ARN of the app instance administrator. + AppInstanceArn *string `min:"5" type:"string"` + + // The time at which an administrator was created. + CreatedTimestamp *time.Time `type:"timestamp"` +} + +// String returns the string representation +func (s AppInstanceAdmin) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AppInstanceAdmin) GoString() string { + return s.String() +} + +// SetAdmin sets the Admin field's value. +func (s *AppInstanceAdmin) SetAdmin(v *Identity) *AppInstanceAdmin { + s.Admin = v + return s +} + +// SetAppInstanceArn sets the AppInstanceArn field's value. +func (s *AppInstanceAdmin) SetAppInstanceArn(v string) *AppInstanceAdmin { + s.AppInstanceArn = &v + return s +} + +// SetCreatedTimestamp sets the CreatedTimestamp field's value. +func (s *AppInstanceAdmin) SetCreatedTimestamp(v time.Time) *AppInstanceAdmin { + s.CreatedTimestamp = &v + return s +} + +// The identity and metadata of an administrator. +type AppInstanceAdminSummary struct { + _ struct{} `type:"structure"` + + // The name and metadata of the app instance administrator. + Admin *Identity `type:"structure"` +} + +// String returns the string representation +func (s AppInstanceAdminSummary) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AppInstanceAdminSummary) GoString() string { + return s.String() +} + +// SetAdmin sets the Admin field's value. +func (s *AppInstanceAdminSummary) SetAdmin(v *Identity) *AppInstanceAdminSummary { + s.Admin = v + return s +} + +// The length of time in days to retain messages. +type AppInstanceRetentionSettings struct { + _ struct{} `type:"structure"` + + // The length of time in days to retain a channel. + ChannelRetentionSettings *ChannelRetentionSettings `type:"structure"` +} + +// String returns the string representation +func (s AppInstanceRetentionSettings) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AppInstanceRetentionSettings) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AppInstanceRetentionSettings) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AppInstanceRetentionSettings"} + if s.ChannelRetentionSettings != nil { + if err := s.ChannelRetentionSettings.Validate(); err != nil { + invalidParams.AddNested("ChannelRetentionSettings", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetChannelRetentionSettings sets the ChannelRetentionSettings field's value. +func (s *AppInstanceRetentionSettings) SetChannelRetentionSettings(v *ChannelRetentionSettings) *AppInstanceRetentionSettings { + s.ChannelRetentionSettings = v + return s +} + +// The streaming configuration of an app instance. +type AppInstanceStreamingConfiguration struct { + _ struct{} `type:"structure"` + + // The data type of the app instance. + // + // AppInstanceDataType is a required field + AppInstanceDataType *string `type:"string" required:"true" enum:"AppInstanceDataType"` + + // The resource ARN. + // + // ResourceArn is a required field + ResourceArn *string `min:"1" type:"string" required:"true" sensitive:"true"` +} + +// String returns the string representation +func (s AppInstanceStreamingConfiguration) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AppInstanceStreamingConfiguration) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AppInstanceStreamingConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AppInstanceStreamingConfiguration"} + if s.AppInstanceDataType == nil { + invalidParams.Add(request.NewErrParamRequired("AppInstanceDataType")) + } + if s.ResourceArn == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceArn")) + } + if s.ResourceArn != nil && len(*s.ResourceArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAppInstanceDataType sets the AppInstanceDataType field's value. +func (s *AppInstanceStreamingConfiguration) SetAppInstanceDataType(v string) *AppInstanceStreamingConfiguration { + s.AppInstanceDataType = &v + return s +} + +// SetResourceArn sets the ResourceArn field's value. +func (s *AppInstanceStreamingConfiguration) SetResourceArn(v string) *AppInstanceStreamingConfiguration { + s.ResourceArn = &v + return s +} + +// The summary data for an app instance. +type AppInstanceSummary struct { + _ struct{} `type:"structure"` + + // The app instance ARN. + AppInstanceArn *string `min:"5" type:"string"` + + // The metadata of the app instance summary. + Metadata *string `type:"string" sensitive:"true"` + + // The name of the app instance summary. + Name *string `min:"1" type:"string" sensitive:"true"` +} + +// String returns the string representation +func (s AppInstanceSummary) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AppInstanceSummary) GoString() string { + return s.String() +} + +// SetAppInstanceArn sets the AppInstanceArn field's value. +func (s *AppInstanceSummary) SetAppInstanceArn(v string) *AppInstanceSummary { + s.AppInstanceArn = &v + return s +} + +// SetMetadata sets the Metadata field's value. +func (s *AppInstanceSummary) SetMetadata(v string) *AppInstanceSummary { + s.Metadata = &v + return s +} + +// SetName sets the Name field's value. +func (s *AppInstanceSummary) SetName(v string) *AppInstanceSummary { + s.Name = &v + return s +} + +// The app instance user. +type AppInstanceUser struct { + _ struct{} `type:"structure"` + + // The ARN of the app instance user. + AppInstanceUserArn *string `min:"5" type:"string"` + + // The time at which the app instance user was created. + CreatedTimestamp *time.Time `type:"timestamp"` + + // The time at which the app instance user was last updated. + LastUpdatedTimestamp *time.Time `type:"timestamp"` + + // The metadata of the app instance user. + Metadata *string `type:"string" sensitive:"true"` + + // The name of the app instance user. + Name *string `min:"1" type:"string" sensitive:"true"` +} + +// String returns the string representation +func (s AppInstanceUser) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AppInstanceUser) GoString() string { + return s.String() +} + +// SetAppInstanceUserArn sets the AppInstanceUserArn field's value. +func (s *AppInstanceUser) SetAppInstanceUserArn(v string) *AppInstanceUser { + s.AppInstanceUserArn = &v + return s +} + +// SetCreatedTimestamp sets the CreatedTimestamp field's value. +func (s *AppInstanceUser) SetCreatedTimestamp(v time.Time) *AppInstanceUser { + s.CreatedTimestamp = &v + return s +} + +// SetLastUpdatedTimestamp sets the LastUpdatedTimestamp field's value. +func (s *AppInstanceUser) SetLastUpdatedTimestamp(v time.Time) *AppInstanceUser { + s.LastUpdatedTimestamp = &v + return s +} + +// SetMetadata sets the Metadata field's value. +func (s *AppInstanceUser) SetMetadata(v string) *AppInstanceUser { + s.Metadata = &v + return s +} + +// SetName sets the Name field's value. +func (s *AppInstanceUser) SetName(v string) *AppInstanceUser { + s.Name = &v + return s +} + +// Lists the channels to which app instance users belong. +type AppInstanceUserMembershipSummary struct { + _ struct{} `type:"structure"` + + // The time at which a summary was last read. + ReadMarkerTimestamp *time.Time `type:"timestamp"` + + // The type of channel summary, + Type *string `type:"string" enum:"ChannelMembershipType"` +} + +// String returns the string representation +func (s AppInstanceUserMembershipSummary) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AppInstanceUserMembershipSummary) GoString() string { + return s.String() +} + +// SetReadMarkerTimestamp sets the ReadMarkerTimestamp field's value. +func (s *AppInstanceUserMembershipSummary) SetReadMarkerTimestamp(v time.Time) *AppInstanceUserMembershipSummary { + s.ReadMarkerTimestamp = &v + return s +} + +// SetType sets the Type field's value. +func (s *AppInstanceUserMembershipSummary) SetType(v string) *AppInstanceUserMembershipSummary { + s.Type = &v + return s +} + +// The app instance user summary data . +type AppInstanceUserSummary struct { + _ struct{} `type:"structure"` + + // The ARN of the app instance user. + AppInstanceUserArn *string `min:"5" type:"string"` + + // The metadata in an app instance user summary. + Metadata *string `type:"string" sensitive:"true"` + + // The name in an app instance user summary. + Name *string `min:"1" type:"string" sensitive:"true"` +} + +// String returns the string representation +func (s AppInstanceUserSummary) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AppInstanceUserSummary) GoString() string { + return s.String() +} + +// SetAppInstanceUserArn sets the AppInstanceUserArn field's value. +func (s *AppInstanceUserSummary) SetAppInstanceUserArn(v string) *AppInstanceUserSummary { + s.AppInstanceUserArn = &v + return s +} + +// SetMetadata sets the Metadata field's value. +func (s *AppInstanceUserSummary) SetMetadata(v string) *AppInstanceUserSummary { + s.Metadata = &v + return s +} + +// SetName sets the Name field's value. +func (s *AppInstanceUserSummary) SetName(v string) *AppInstanceUserSummary { + s.Name = &v + return s +} + +type AssociatePhoneNumberWithUserInput struct { + _ struct{} `type:"structure"` + + // The Amazon Chime account ID. + // + // AccountId is a required field + AccountId *string `location:"uri" locationName:"accountId" type:"string" required:"true"` + + // The phone number, in E.164 format. + // + // E164PhoneNumber is a required field + E164PhoneNumber *string `type:"string" required:"true" sensitive:"true"` + + // The user ID. + // + // UserId is a required field + UserId *string `location:"uri" locationName:"userId" type:"string" required:"true"` +} + +// String returns the string representation +func (s AssociatePhoneNumberWithUserInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AssociatePhoneNumberWithUserInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AssociatePhoneNumberWithUserInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AssociatePhoneNumberWithUserInput"} + if s.AccountId == nil { + invalidParams.Add(request.NewErrParamRequired("AccountId")) + } + if s.AccountId != nil && len(*s.AccountId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) + } + if s.E164PhoneNumber == nil { + invalidParams.Add(request.NewErrParamRequired("E164PhoneNumber")) + } + 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 +} + +// SetAccountId sets the AccountId field's value. +func (s *AssociatePhoneNumberWithUserInput) SetAccountId(v string) *AssociatePhoneNumberWithUserInput { + s.AccountId = &v + return s +} + +// SetE164PhoneNumber sets the E164PhoneNumber field's value. +func (s *AssociatePhoneNumberWithUserInput) SetE164PhoneNumber(v string) *AssociatePhoneNumberWithUserInput { + s.E164PhoneNumber = &v + return s +} + +// SetUserId sets the UserId field's value. +func (s *AssociatePhoneNumberWithUserInput) SetUserId(v string) *AssociatePhoneNumberWithUserInput { + s.UserId = &v + return s +} + +type AssociatePhoneNumberWithUserOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s AssociatePhoneNumberWithUserOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AssociatePhoneNumberWithUserOutput) GoString() string { + return s.String() +} + +type AssociatePhoneNumbersWithVoiceConnectorGroupInput struct { + _ struct{} `type:"structure"` + + // List of phone numbers, in E.164 format. + // + // E164PhoneNumbers is a required field + E164PhoneNumbers []*string `type:"list" required:"true"` + + // If true, associates the provided phone numbers with the provided Amazon Chime + // Voice Connector Group and removes any previously existing associations. If + // false, does not associate any phone numbers that have previously existing + // associations. + ForceAssociate *bool `type:"boolean"` + + // The Amazon Chime Voice Connector group ID. + // + // VoiceConnectorGroupId is a required field + VoiceConnectorGroupId *string `location:"uri" locationName:"voiceConnectorGroupId" type:"string" required:"true"` +} + +// String returns the string representation +func (s AssociatePhoneNumbersWithVoiceConnectorGroupInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AssociatePhoneNumbersWithVoiceConnectorGroupInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AssociatePhoneNumbersWithVoiceConnectorGroupInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AssociatePhoneNumbersWithVoiceConnectorGroupInput"} + if s.E164PhoneNumbers == nil { + invalidParams.Add(request.NewErrParamRequired("E164PhoneNumbers")) + } + if s.VoiceConnectorGroupId == nil { + invalidParams.Add(request.NewErrParamRequired("VoiceConnectorGroupId")) + } + if s.VoiceConnectorGroupId != nil && len(*s.VoiceConnectorGroupId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VoiceConnectorGroupId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetE164PhoneNumbers sets the E164PhoneNumbers field's value. +func (s *AssociatePhoneNumbersWithVoiceConnectorGroupInput) SetE164PhoneNumbers(v []*string) *AssociatePhoneNumbersWithVoiceConnectorGroupInput { + s.E164PhoneNumbers = v + return s +} + +// SetForceAssociate sets the ForceAssociate field's value. +func (s *AssociatePhoneNumbersWithVoiceConnectorGroupInput) SetForceAssociate(v bool) *AssociatePhoneNumbersWithVoiceConnectorGroupInput { + s.ForceAssociate = &v + return s +} + +// SetVoiceConnectorGroupId sets the VoiceConnectorGroupId field's value. +func (s *AssociatePhoneNumbersWithVoiceConnectorGroupInput) SetVoiceConnectorGroupId(v string) *AssociatePhoneNumbersWithVoiceConnectorGroupInput { + s.VoiceConnectorGroupId = &v + return s +} + +type AssociatePhoneNumbersWithVoiceConnectorGroupOutput struct { + _ struct{} `type:"structure"` + + // If the action fails for one or more of the phone numbers in the request, + // a list of the phone numbers is returned, along with error codes and error + // messages. + PhoneNumberErrors []*PhoneNumberError `type:"list"` +} + +// String returns the string representation +func (s AssociatePhoneNumbersWithVoiceConnectorGroupOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AssociatePhoneNumbersWithVoiceConnectorGroupOutput) GoString() string { + return s.String() +} + +// SetPhoneNumberErrors sets the PhoneNumberErrors field's value. +func (s *AssociatePhoneNumbersWithVoiceConnectorGroupOutput) SetPhoneNumberErrors(v []*PhoneNumberError) *AssociatePhoneNumbersWithVoiceConnectorGroupOutput { + s.PhoneNumberErrors = v + return s +} + +type AssociatePhoneNumbersWithVoiceConnectorInput struct { + _ struct{} `type:"structure"` + + // List of phone numbers, in E.164 format. + // + // E164PhoneNumbers is a required field + E164PhoneNumbers []*string `type:"list" required:"true"` + + // If true, associates the provided phone numbers with the provided Amazon Chime + // Voice Connector and removes any previously existing associations. If false, + // does not associate any phone numbers that have previously existing associations. + ForceAssociate *bool `type:"boolean"` + + // The Amazon Chime Voice Connector ID. + // + // VoiceConnectorId is a required field + VoiceConnectorId *string `location:"uri" locationName:"voiceConnectorId" type:"string" required:"true"` +} + +// String returns the string representation +func (s AssociatePhoneNumbersWithVoiceConnectorInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AssociatePhoneNumbersWithVoiceConnectorInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AssociatePhoneNumbersWithVoiceConnectorInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AssociatePhoneNumbersWithVoiceConnectorInput"} + if s.E164PhoneNumbers == nil { + invalidParams.Add(request.NewErrParamRequired("E164PhoneNumbers")) + } + if s.VoiceConnectorId == nil { + invalidParams.Add(request.NewErrParamRequired("VoiceConnectorId")) + } + if s.VoiceConnectorId != nil && len(*s.VoiceConnectorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VoiceConnectorId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetE164PhoneNumbers sets the E164PhoneNumbers field's value. +func (s *AssociatePhoneNumbersWithVoiceConnectorInput) SetE164PhoneNumbers(v []*string) *AssociatePhoneNumbersWithVoiceConnectorInput { + s.E164PhoneNumbers = v + return s +} + +// SetForceAssociate sets the ForceAssociate field's value. +func (s *AssociatePhoneNumbersWithVoiceConnectorInput) SetForceAssociate(v bool) *AssociatePhoneNumbersWithVoiceConnectorInput { + s.ForceAssociate = &v + return s +} + +// SetVoiceConnectorId sets the VoiceConnectorId field's value. +func (s *AssociatePhoneNumbersWithVoiceConnectorInput) SetVoiceConnectorId(v string) *AssociatePhoneNumbersWithVoiceConnectorInput { + s.VoiceConnectorId = &v + return s +} + +type AssociatePhoneNumbersWithVoiceConnectorOutput struct { + _ struct{} `type:"structure"` + + // If the action fails for one or more of the phone numbers in the request, + // a list of the phone numbers is returned, along with error codes and error + // messages. + PhoneNumberErrors []*PhoneNumberError `type:"list"` +} + +// String returns the string representation +func (s AssociatePhoneNumbersWithVoiceConnectorOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AssociatePhoneNumbersWithVoiceConnectorOutput) GoString() string { + return s.String() +} + +// SetPhoneNumberErrors sets the PhoneNumberErrors field's value. +func (s *AssociatePhoneNumbersWithVoiceConnectorOutput) SetPhoneNumberErrors(v []*PhoneNumberError) *AssociatePhoneNumbersWithVoiceConnectorOutput { + s.PhoneNumberErrors = v + return s +} + +type AssociateSigninDelegateGroupsWithAccountInput struct { + _ struct{} `type:"structure"` + + // The Amazon Chime account ID. + // + // AccountId is a required field + AccountId *string `location:"uri" locationName:"accountId" type:"string" required:"true"` + + // The sign-in delegate groups. + // + // SigninDelegateGroups is a required field + SigninDelegateGroups []*SigninDelegateGroup `type:"list" required:"true"` +} + +// String returns the string representation +func (s AssociateSigninDelegateGroupsWithAccountInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AssociateSigninDelegateGroupsWithAccountInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AssociateSigninDelegateGroupsWithAccountInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AssociateSigninDelegateGroupsWithAccountInput"} + if s.AccountId == nil { + invalidParams.Add(request.NewErrParamRequired("AccountId")) + } + if s.AccountId != nil && len(*s.AccountId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) + } + if s.SigninDelegateGroups == nil { + invalidParams.Add(request.NewErrParamRequired("SigninDelegateGroups")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAccountId sets the AccountId field's value. +func (s *AssociateSigninDelegateGroupsWithAccountInput) SetAccountId(v string) *AssociateSigninDelegateGroupsWithAccountInput { + s.AccountId = &v + return s +} + +// SetSigninDelegateGroups sets the SigninDelegateGroups field's value. +func (s *AssociateSigninDelegateGroupsWithAccountInput) SetSigninDelegateGroups(v []*SigninDelegateGroup) *AssociateSigninDelegateGroupsWithAccountInput { + s.SigninDelegateGroups = v + return s +} + +type AssociateSigninDelegateGroupsWithAccountOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s AssociateSigninDelegateGroupsWithAccountOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AssociateSigninDelegateGroupsWithAccountOutput) GoString() string { + return s.String() +} + +// An Amazon Chime SDK meeting attendee. Includes a unique AttendeeId and JoinToken. +// The JoinToken allows a client to authenticate and join as the specified attendee. +// The JoinToken expires when the meeting ends or when DeleteAttendee is called. +// After that, the attendee is unable to join the meeting. +// +// We recommend securely transferring each JoinToken from your server application +// to the client so that no other client has access to the token except for +// the one authorized to represent the attendee. +type Attendee struct { + _ struct{} `type:"structure"` + + // The Amazon Chime SDK attendee ID. + AttendeeId *string `type:"string"` + + // The Amazon Chime SDK external user ID. An idempotency token. Links the attendee + // to an identity managed by a builder application. If you create an attendee + // with the same external user id, the service returns the existing record. + ExternalUserId *string `min:"2" type:"string" sensitive:"true"` + + // The join token used by the Amazon Chime SDK attendee. + JoinToken *string `min:"2" type:"string" sensitive:"true"` +} + +// String returns the string representation +func (s Attendee) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Attendee) GoString() string { + return s.String() +} + +// SetAttendeeId sets the AttendeeId field's value. +func (s *Attendee) SetAttendeeId(v string) *Attendee { + s.AttendeeId = &v + return s +} + +// SetExternalUserId sets the ExternalUserId field's value. +func (s *Attendee) SetExternalUserId(v string) *Attendee { + s.ExternalUserId = &v + return s +} + +// SetJoinToken sets the JoinToken field's value. +func (s *Attendee) SetJoinToken(v string) *Attendee { + s.JoinToken = &v + return s +} + +// The input parameters don't match the service's restrictions. +type BadRequestException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + Code_ *string `locationName:"Code" type:"string" enum:"ErrorCode"` + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s BadRequestException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BadRequestException) GoString() string { + return s.String() +} + +func newErrorBadRequestException(v protocol.ResponseMetadata) error { + return &BadRequestException{ + RespMetadata: v, + } +} + +// Code returns the exception type name. +func (s *BadRequestException) Code() string { + return "BadRequestException" +} + +// Message returns the exception's message. +func (s *BadRequestException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *BadRequestException) OrigErr() error { + return nil +} + +func (s *BadRequestException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s *BadRequestException) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *BadRequestException) RequestID() string { + return s.RespMetadata.RequestID +} + +type BatchCreateAttendeeInput struct { + _ struct{} `type:"structure"` + + // The request containing the attendees to create. + // + // Attendees is a required field + Attendees []*CreateAttendeeRequestItem `type:"list" required:"true"` + + // The Amazon Chime SDK meeting ID. + // + // MeetingId is a required field + MeetingId *string `location:"uri" locationName:"meetingId" type:"string" required:"true"` +} + +// String returns the string representation +func (s BatchCreateAttendeeInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BatchCreateAttendeeInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *BatchCreateAttendeeInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "BatchCreateAttendeeInput"} + if s.Attendees == nil { + invalidParams.Add(request.NewErrParamRequired("Attendees")) + } + if s.MeetingId == nil { + invalidParams.Add(request.NewErrParamRequired("MeetingId")) + } + if s.MeetingId != nil && len(*s.MeetingId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("MeetingId", 1)) + } + if s.Attendees != nil { + for i, v := range s.Attendees { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Attendees", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAttendees sets the Attendees field's value. +func (s *BatchCreateAttendeeInput) SetAttendees(v []*CreateAttendeeRequestItem) *BatchCreateAttendeeInput { + s.Attendees = v + return s +} + +// SetMeetingId sets the MeetingId field's value. +func (s *BatchCreateAttendeeInput) SetMeetingId(v string) *BatchCreateAttendeeInput { + s.MeetingId = &v + return s +} + +type BatchCreateAttendeeOutput struct { + _ struct{} `type:"structure"` + + // The attendee information, including attendees IDs and join tokens. + Attendees []*Attendee `type:"list"` + + // If the action fails for one or more of the attendees in the request, a list + // of the attendees is returned, along with error codes and error messages. + Errors []*CreateAttendeeError `type:"list"` +} + +// String returns the string representation +func (s BatchCreateAttendeeOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BatchCreateAttendeeOutput) GoString() string { + return s.String() +} + +// SetAttendees sets the Attendees field's value. +func (s *BatchCreateAttendeeOutput) SetAttendees(v []*Attendee) *BatchCreateAttendeeOutput { + s.Attendees = v + return s +} + +// SetErrors sets the Errors field's value. +func (s *BatchCreateAttendeeOutput) SetErrors(v []*CreateAttendeeError) *BatchCreateAttendeeOutput { + s.Errors = v + return s +} + +type BatchCreateRoomMembershipInput struct { + _ struct{} `type:"structure"` + + // The Amazon Chime account ID. + // + // AccountId is a required field + AccountId *string `location:"uri" locationName:"accountId" type:"string" required:"true"` + + // The list of membership items. + // + // MembershipItemList is a required field + MembershipItemList []*MembershipItem `type:"list" required:"true"` + + // The room ID. + // + // RoomId is a required field + RoomId *string `location:"uri" locationName:"roomId" type:"string" required:"true"` +} + +// String returns the string representation +func (s BatchCreateRoomMembershipInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BatchCreateRoomMembershipInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *BatchCreateRoomMembershipInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "BatchCreateRoomMembershipInput"} + if s.AccountId == nil { + invalidParams.Add(request.NewErrParamRequired("AccountId")) + } + if s.AccountId != nil && len(*s.AccountId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) + } + if s.MembershipItemList == nil { + invalidParams.Add(request.NewErrParamRequired("MembershipItemList")) + } + if s.RoomId == nil { + invalidParams.Add(request.NewErrParamRequired("RoomId")) + } + if s.RoomId != nil && len(*s.RoomId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RoomId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAccountId sets the AccountId field's value. +func (s *BatchCreateRoomMembershipInput) SetAccountId(v string) *BatchCreateRoomMembershipInput { + s.AccountId = &v + return s +} + +// SetMembershipItemList sets the MembershipItemList field's value. +func (s *BatchCreateRoomMembershipInput) SetMembershipItemList(v []*MembershipItem) *BatchCreateRoomMembershipInput { + s.MembershipItemList = v + return s +} + +// SetRoomId sets the RoomId field's value. +func (s *BatchCreateRoomMembershipInput) SetRoomId(v string) *BatchCreateRoomMembershipInput { + s.RoomId = &v + return s +} + +type BatchCreateRoomMembershipOutput struct { + _ struct{} `type:"structure"` + + // If the action fails for one or more of the member IDs in the request, a list + // of the member IDs is returned, along with error codes and error messages. + Errors []*MemberError `type:"list"` +} + +// String returns the string representation +func (s BatchCreateRoomMembershipOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BatchCreateRoomMembershipOutput) GoString() string { + return s.String() +} + +// SetErrors sets the Errors field's value. +func (s *BatchCreateRoomMembershipOutput) SetErrors(v []*MemberError) *BatchCreateRoomMembershipOutput { + s.Errors = v + return s +} + +type BatchDeletePhoneNumberInput struct { + _ struct{} `type:"structure"` + + // List of phone number IDs. + // + // PhoneNumberIds is a required field + PhoneNumberIds []*string `min:"1" type:"list" required:"true"` +} + +// String returns the string representation +func (s BatchDeletePhoneNumberInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BatchDeletePhoneNumberInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *BatchDeletePhoneNumberInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "BatchDeletePhoneNumberInput"} + if s.PhoneNumberIds == nil { + invalidParams.Add(request.NewErrParamRequired("PhoneNumberIds")) + } + if s.PhoneNumberIds != nil && len(s.PhoneNumberIds) < 1 { + invalidParams.Add(request.NewErrParamMinLen("PhoneNumberIds", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetPhoneNumberIds sets the PhoneNumberIds field's value. +func (s *BatchDeletePhoneNumberInput) SetPhoneNumberIds(v []*string) *BatchDeletePhoneNumberInput { + s.PhoneNumberIds = v + return s +} + +type BatchDeletePhoneNumberOutput struct { + _ struct{} `type:"structure"` + + // If the action fails for one or more of the phone numbers in the request, + // a list of the phone numbers is returned, along with error codes and error + // messages. + PhoneNumberErrors []*PhoneNumberError `type:"list"` +} + +// String returns the string representation +func (s BatchDeletePhoneNumberOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BatchDeletePhoneNumberOutput) GoString() string { + return s.String() +} + +// SetPhoneNumberErrors sets the PhoneNumberErrors field's value. +func (s *BatchDeletePhoneNumberOutput) SetPhoneNumberErrors(v []*PhoneNumberError) *BatchDeletePhoneNumberOutput { + s.PhoneNumberErrors = v + return s +} + +type BatchSuspendUserInput struct { + _ struct{} `type:"structure"` + + // The Amazon Chime account ID. + // + // AccountId is a required field + AccountId *string `location:"uri" locationName:"accountId" type:"string" required:"true"` + + // The request containing the user IDs to suspend. + // + // UserIdList is a required field + UserIdList []*string `type:"list" required:"true"` +} + +// String returns the string representation +func (s BatchSuspendUserInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BatchSuspendUserInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *BatchSuspendUserInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "BatchSuspendUserInput"} + if s.AccountId == nil { + invalidParams.Add(request.NewErrParamRequired("AccountId")) + } + if s.AccountId != nil && len(*s.AccountId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) + } + if s.UserIdList == nil { + invalidParams.Add(request.NewErrParamRequired("UserIdList")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAccountId sets the AccountId field's value. +func (s *BatchSuspendUserInput) SetAccountId(v string) *BatchSuspendUserInput { + s.AccountId = &v + return s +} + +// SetUserIdList sets the UserIdList field's value. +func (s *BatchSuspendUserInput) SetUserIdList(v []*string) *BatchSuspendUserInput { + s.UserIdList = v + return s +} + +type BatchSuspendUserOutput struct { + _ struct{} `type:"structure"` + + // If the BatchSuspendUser action fails for one or more of the user IDs in the + // request, a list of the user IDs is returned, along with error codes and error + // messages. + UserErrors []*UserError `type:"list"` +} + +// String returns the string representation +func (s BatchSuspendUserOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BatchSuspendUserOutput) GoString() string { + return s.String() +} + +// SetUserErrors sets the UserErrors field's value. +func (s *BatchSuspendUserOutput) SetUserErrors(v []*UserError) *BatchSuspendUserOutput { + s.UserErrors = v + return s +} + +type BatchUnsuspendUserInput struct { + _ struct{} `type:"structure"` + + // The Amazon Chime account ID. + // + // AccountId is a required field + AccountId *string `location:"uri" locationName:"accountId" type:"string" required:"true"` + + // The request containing the user IDs to unsuspend. + // + // UserIdList is a required field + UserIdList []*string `type:"list" required:"true"` +} + +// String returns the string representation +func (s BatchUnsuspendUserInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BatchUnsuspendUserInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *BatchUnsuspendUserInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "BatchUnsuspendUserInput"} + if s.AccountId == nil { + invalidParams.Add(request.NewErrParamRequired("AccountId")) + } + if s.AccountId != nil && len(*s.AccountId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) + } + if s.UserIdList == nil { + invalidParams.Add(request.NewErrParamRequired("UserIdList")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAccountId sets the AccountId field's value. +func (s *BatchUnsuspendUserInput) SetAccountId(v string) *BatchUnsuspendUserInput { + s.AccountId = &v + return s +} + +// SetUserIdList sets the UserIdList field's value. +func (s *BatchUnsuspendUserInput) SetUserIdList(v []*string) *BatchUnsuspendUserInput { + s.UserIdList = v + return s +} + +type BatchUnsuspendUserOutput struct { + _ struct{} `type:"structure"` + + // If the BatchUnsuspendUser action fails for one or more of the user IDs in + // the request, a list of the user IDs is returned, along with error codes and + // error messages. + UserErrors []*UserError `type:"list"` +} + +// String returns the string representation +func (s BatchUnsuspendUserOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BatchUnsuspendUserOutput) GoString() string { + return s.String() +} + +// SetUserErrors sets the UserErrors field's value. +func (s *BatchUnsuspendUserOutput) SetUserErrors(v []*UserError) *BatchUnsuspendUserOutput { + s.UserErrors = v + return s +} + +type BatchUpdatePhoneNumberInput struct { + _ struct{} `type:"structure"` + + // The request containing the phone number IDs and product types or calling + // names to update. + // + // UpdatePhoneNumberRequestItems is a required field + UpdatePhoneNumberRequestItems []*UpdatePhoneNumberRequestItem `type:"list" required:"true"` +} + +// String returns the string representation +func (s BatchUpdatePhoneNumberInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BatchUpdatePhoneNumberInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *BatchUpdatePhoneNumberInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "BatchUpdatePhoneNumberInput"} + if s.UpdatePhoneNumberRequestItems == nil { + invalidParams.Add(request.NewErrParamRequired("UpdatePhoneNumberRequestItems")) + } + if s.UpdatePhoneNumberRequestItems != nil { + for i, v := range s.UpdatePhoneNumberRequestItems { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "UpdatePhoneNumberRequestItems", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetUpdatePhoneNumberRequestItems sets the UpdatePhoneNumberRequestItems field's value. +func (s *BatchUpdatePhoneNumberInput) SetUpdatePhoneNumberRequestItems(v []*UpdatePhoneNumberRequestItem) *BatchUpdatePhoneNumberInput { + s.UpdatePhoneNumberRequestItems = v + return s +} + +type BatchUpdatePhoneNumberOutput struct { + _ struct{} `type:"structure"` + + // If the action fails for one or more of the phone numbers in the request, + // a list of the phone numbers is returned, along with error codes and error + // messages. + PhoneNumberErrors []*PhoneNumberError `type:"list"` +} + +// String returns the string representation +func (s BatchUpdatePhoneNumberOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BatchUpdatePhoneNumberOutput) GoString() string { + return s.String() +} + +// SetPhoneNumberErrors sets the PhoneNumberErrors field's value. +func (s *BatchUpdatePhoneNumberOutput) SetPhoneNumberErrors(v []*PhoneNumberError) *BatchUpdatePhoneNumberOutput { + s.PhoneNumberErrors = v + return s +} + +type BatchUpdateUserInput struct { + _ struct{} `type:"structure"` + + // The Amazon Chime account ID. + // + // AccountId is a required field + AccountId *string `location:"uri" locationName:"accountId" type:"string" required:"true"` + + // The request containing the user IDs and details to update. + // + // UpdateUserRequestItems is a required field + UpdateUserRequestItems []*UpdateUserRequestItem `type:"list" required:"true"` +} + +// String returns the string representation +func (s BatchUpdateUserInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BatchUpdateUserInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *BatchUpdateUserInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "BatchUpdateUserInput"} + if s.AccountId == nil { + invalidParams.Add(request.NewErrParamRequired("AccountId")) + } + if s.AccountId != nil && len(*s.AccountId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) + } + if s.UpdateUserRequestItems == nil { + invalidParams.Add(request.NewErrParamRequired("UpdateUserRequestItems")) + } + if s.UpdateUserRequestItems != nil { + for i, v := range s.UpdateUserRequestItems { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "UpdateUserRequestItems", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAccountId sets the AccountId field's value. +func (s *BatchUpdateUserInput) SetAccountId(v string) *BatchUpdateUserInput { + s.AccountId = &v + return s +} + +// SetUpdateUserRequestItems sets the UpdateUserRequestItems field's value. +func (s *BatchUpdateUserInput) SetUpdateUserRequestItems(v []*UpdateUserRequestItem) *BatchUpdateUserInput { + s.UpdateUserRequestItems = v + return s +} + +type BatchUpdateUserOutput struct { + _ struct{} `type:"structure"` + + // If the BatchUpdateUser action fails for one or more of the user IDs in the + // request, a list of the user IDs is returned, along with error codes and error + // messages. + UserErrors []*UserError `type:"list"` +} + +// String returns the string representation +func (s BatchUpdateUserOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BatchUpdateUserOutput) GoString() string { + return s.String() +} + +// SetUserErrors sets the UserErrors field's value. +func (s *BatchUpdateUserOutput) SetUserErrors(v []*UserError) *BatchUpdateUserOutput { + s.UserErrors = v + return s +} + +// A resource that allows Enterprise account administrators to configure an +// interface to receive events from Amazon Chime. +type Bot struct { + _ struct{} `type:"structure"` + + // The bot email address. + BotEmail *string `type:"string" sensitive:"true"` + + // The bot ID. + BotId *string `type:"string"` + + // The bot type. + BotType *string `type:"string" enum:"BotType"` + + // The bot creation timestamp, in ISO 8601 format. + CreatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` + + // When true, the bot is stopped from running in your account. + Disabled *bool `type:"boolean"` + + // The bot display name. + DisplayName *string `type:"string" sensitive:"true"` + + // The security token used to authenticate Amazon Chime with the outgoing event + // endpoint. + SecurityToken *string `type:"string" sensitive:"true"` + + // The updated bot timestamp, in ISO 8601 format. + UpdatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` + + // The unique ID for the bot user. + UserId *string `type:"string"` +} + +// String returns the string representation +func (s Bot) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Bot) GoString() string { + return s.String() +} + +// SetBotEmail sets the BotEmail field's value. +func (s *Bot) SetBotEmail(v string) *Bot { + s.BotEmail = &v + return s +} + +// SetBotId sets the BotId field's value. +func (s *Bot) SetBotId(v string) *Bot { + s.BotId = &v + return s +} + +// SetBotType sets the BotType field's value. +func (s *Bot) SetBotType(v string) *Bot { + s.BotType = &v + return s +} + +// SetCreatedTimestamp sets the CreatedTimestamp field's value. +func (s *Bot) SetCreatedTimestamp(v time.Time) *Bot { + s.CreatedTimestamp = &v + return s +} + +// SetDisabled sets the Disabled field's value. +func (s *Bot) SetDisabled(v bool) *Bot { + s.Disabled = &v + return s +} + +// SetDisplayName sets the DisplayName field's value. +func (s *Bot) SetDisplayName(v string) *Bot { + s.DisplayName = &v + return s +} + +// SetSecurityToken sets the SecurityToken field's value. +func (s *Bot) SetSecurityToken(v string) *Bot { + s.SecurityToken = &v + return s +} + +// SetUpdatedTimestamp sets the UpdatedTimestamp field's value. +func (s *Bot) SetUpdatedTimestamp(v time.Time) *Bot { + s.UpdatedTimestamp = &v + return s +} + +// SetUserId sets the UserId field's value. +func (s *Bot) SetUserId(v string) *Bot { + s.UserId = &v + return s +} + +// The Amazon Chime Business Calling settings for the administrator's AWS account. +// Includes any Amazon S3 buckets designated for storing call detail records. +type BusinessCallingSettings struct { + _ struct{} `type:"structure"` + + // The Amazon S3 bucket designated for call detail record storage. + CdrBucket *string `type:"string"` +} + +// String returns the string representation +func (s BusinessCallingSettings) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BusinessCallingSettings) GoString() string { + return s.String() +} + +// SetCdrBucket sets the CdrBucket field's value. +func (s *BusinessCallingSettings) SetCdrBucket(v string) *BusinessCallingSettings { + s.CdrBucket = &v + return s +} + +// Creates a channel. +type Channel struct { + _ struct{} `type:"structure"` + + // The ARN of the channel. + ChannelArn *string `min:"5" type:"string"` + + // The administrator who created the channel. + CreatedBy *Identity `type:"structure"` + + // The time at which the administrator created the channel. + CreatedTimestamp *time.Time `type:"timestamp"` + + // The time at which a member sent the last message in a session. + LastMessageTimestamp *time.Time `type:"timestamp"` + + // The time at which a channel was last updated. + LastUpdatedTimestamp *time.Time `type:"timestamp"` + + // The metadata of the channel. + Metadata *string `type:"string" sensitive:"true"` + + // The mode of the channel. + Mode *string `type:"string" enum:"ChannelMode"` + + // The name of the channel. + Name *string `min:"1" type:"string" sensitive:"true"` + + // The channel's privacy setting, PUBLIC or HIDDEN. + Privacy *string `type:"string" enum:"ChannelPrivacy"` +} + +// String returns the string representation +func (s Channel) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Channel) GoString() string { + return s.String() +} + +// SetChannelArn sets the ChannelArn field's value. +func (s *Channel) SetChannelArn(v string) *Channel { + s.ChannelArn = &v + return s +} + +// SetCreatedBy sets the CreatedBy field's value. +func (s *Channel) SetCreatedBy(v *Identity) *Channel { + s.CreatedBy = v + return s +} + +// SetCreatedTimestamp sets the CreatedTimestamp field's value. +func (s *Channel) SetCreatedTimestamp(v time.Time) *Channel { + s.CreatedTimestamp = &v + return s +} + +// SetLastMessageTimestamp sets the LastMessageTimestamp field's value. +func (s *Channel) SetLastMessageTimestamp(v time.Time) *Channel { + s.LastMessageTimestamp = &v + return s +} + +// SetLastUpdatedTimestamp sets the LastUpdatedTimestamp field's value. +func (s *Channel) SetLastUpdatedTimestamp(v time.Time) *Channel { + s.LastUpdatedTimestamp = &v + return s +} + +// SetMetadata sets the Metadata field's value. +func (s *Channel) SetMetadata(v string) *Channel { + s.Metadata = &v + return s +} + +// SetMode sets the Mode field's value. +func (s *Channel) SetMode(v string) *Channel { + s.Mode = &v + return s +} + +// SetName sets the Name field's value. +func (s *Channel) SetName(v string) *Channel { + s.Name = &v + return s +} + +// SetPrivacy sets the Privacy field's value. +func (s *Channel) SetPrivacy(v string) *Channel { + s.Privacy = &v + return s +} + +// Bans a user from a channel. +type ChannelBan struct { + _ struct{} `type:"structure"` + + // The ARN of the channel from which a member is being banned. + ChannelArn *string `min:"5" type:"string"` + + // The parameter of the action. + CreatedBy *Identity `type:"structure"` + + // The time at which the ban was created. + CreatedTimestamp *time.Time `type:"timestamp"` + + // The member being banned from the channel. + Member *Identity `type:"structure"` +} + +// String returns the string representation +func (s ChannelBan) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ChannelBan) GoString() string { + return s.String() +} + +// SetChannelArn sets the ChannelArn field's value. +func (s *ChannelBan) SetChannelArn(v string) *ChannelBan { + s.ChannelArn = &v + return s +} + +// SetCreatedBy sets the CreatedBy field's value. +func (s *ChannelBan) SetCreatedBy(v *Identity) *ChannelBan { + s.CreatedBy = v + return s +} + +// SetCreatedTimestamp sets the CreatedTimestamp field's value. +func (s *ChannelBan) SetCreatedTimestamp(v time.Time) *ChannelBan { + s.CreatedTimestamp = &v + return s +} + +// SetMember sets the Member field's value. +func (s *ChannelBan) SetMember(v *Identity) *ChannelBan { + s.Member = v + return s +} + +// The summary data for the channel ban. +type ChannelBanSummary struct { + _ struct{} `type:"structure"` + + // The member being banned from a channel. + Member *Identity `type:"structure"` +} + +// String returns the string representation +func (s ChannelBanSummary) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ChannelBanSummary) GoString() string { + return s.String() +} + +// SetMember sets the Member field's value. +func (s *ChannelBanSummary) SetMember(v *Identity) *ChannelBanSummary { + s.Member = v + return s +} + +// Creates a channel member. +type ChannelMembership struct { + _ struct{} `type:"structure"` + + // The ARN of the member's channel. + ChannelArn *string `min:"5" type:"string"` + + // The time at which the channel membership was created. + CreatedTimestamp *time.Time `type:"timestamp"` + + // The identifier of the member who invited another member. Taken from the message + // header. + InvitedBy *Identity `type:"structure"` + + // The time at which a channel membership was last updated. + LastUpdatedTimestamp *time.Time `type:"timestamp"` + + // The data of the channel member. + Member *Identity `type:"structure"` + + // The membership type set for the channel member. + Type *string `type:"string" enum:"ChannelMembershipType"` +} + +// String returns the string representation +func (s ChannelMembership) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ChannelMembership) GoString() string { + return s.String() +} + +// SetChannelArn sets the ChannelArn field's value. +func (s *ChannelMembership) SetChannelArn(v string) *ChannelMembership { + s.ChannelArn = &v + return s +} + +// SetCreatedTimestamp sets the CreatedTimestamp field's value. +func (s *ChannelMembership) SetCreatedTimestamp(v time.Time) *ChannelMembership { + s.CreatedTimestamp = &v + return s +} + +// SetInvitedBy sets the InvitedBy field's value. +func (s *ChannelMembership) SetInvitedBy(v *Identity) *ChannelMembership { + s.InvitedBy = v + return s +} + +// SetLastUpdatedTimestamp sets the LastUpdatedTimestamp field's value. +func (s *ChannelMembership) SetLastUpdatedTimestamp(v time.Time) *ChannelMembership { + s.LastUpdatedTimestamp = &v + return s +} + +// SetMember sets the Member field's value. +func (s *ChannelMembership) SetMember(v *Identity) *ChannelMembership { + s.Member = v + return s +} + +// SetType sets the Type field's value. +func (s *ChannelMembership) SetType(v string) *ChannelMembership { + s.Type = &v + return s +} + +// Returns the channel membership summary data for an app instance. +type ChannelMembershipForAppInstanceUserSummary struct { + _ struct{} `type:"structure"` + + // Returns the channel membership data for an app instance. + AppInstanceUserMembershipSummary *AppInstanceUserMembershipSummary `type:"structure"` + + // The summary data for a channel. + ChannelSummary *ChannelSummary `type:"structure"` +} + +// String returns the string representation +func (s ChannelMembershipForAppInstanceUserSummary) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ChannelMembershipForAppInstanceUserSummary) GoString() string { + return s.String() +} + +// SetAppInstanceUserMembershipSummary sets the AppInstanceUserMembershipSummary field's value. +func (s *ChannelMembershipForAppInstanceUserSummary) SetAppInstanceUserMembershipSummary(v *AppInstanceUserMembershipSummary) *ChannelMembershipForAppInstanceUserSummary { + s.AppInstanceUserMembershipSummary = v + return s +} + +// SetChannelSummary sets the ChannelSummary field's value. +func (s *ChannelMembershipForAppInstanceUserSummary) SetChannelSummary(v *ChannelSummary) *ChannelMembershipForAppInstanceUserSummary { + s.ChannelSummary = v + return s +} + +// The summary data of a channel membership. +type ChannelMembershipSummary struct { + _ struct{} `type:"structure"` + + // A member's summary data. + Member *Identity `type:"structure"` +} + +// String returns the string representation +func (s ChannelMembershipSummary) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ChannelMembershipSummary) GoString() string { + return s.String() +} + +// SetMember sets the Member field's value. +func (s *ChannelMembershipSummary) SetMember(v *Identity) *ChannelMembershipSummary { + s.Member = v + return s +} + +// Creates a message in a channel. +type ChannelMessage struct { + _ struct{} `type:"structure"` + + // The ARN of the channel. + ChannelArn *string `min:"5" type:"string"` + + // The message content. + Content *string `type:"string" sensitive:"true"` + + // The time at which the message was created. + CreatedTimestamp *time.Time `type:"timestamp"` + + // The time at which a message was edited. + LastEditedTimestamp *time.Time `type:"timestamp"` + + // The time at which a message was updated. + LastUpdatedTimestamp *time.Time `type:"timestamp"` + + // The ID of a message. + MessageId *string `min:"1" type:"string"` + + // The message metadata. + Metadata *string `type:"string" sensitive:"true"` + + Persistence *string `type:"string" enum:"ChannelMessagePersistenceType"` + + // Hides the content of a message. The message still exists on the back end, + // but this action only returns metadata. + Redacted *bool `type:"boolean"` + + // The message sender. + Sender *Identity `type:"structure"` + + // The message type. + Type *string `type:"string" enum:"ChannelMessageType"` +} + +// String returns the string representation +func (s ChannelMessage) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ChannelMessage) GoString() string { + return s.String() +} + +// SetChannelArn sets the ChannelArn field's value. +func (s *ChannelMessage) SetChannelArn(v string) *ChannelMessage { + s.ChannelArn = &v + return s +} + +// SetContent sets the Content field's value. +func (s *ChannelMessage) SetContent(v string) *ChannelMessage { + s.Content = &v + return s +} + +// SetCreatedTimestamp sets the CreatedTimestamp field's value. +func (s *ChannelMessage) SetCreatedTimestamp(v time.Time) *ChannelMessage { + s.CreatedTimestamp = &v + return s +} + +// SetLastEditedTimestamp sets the LastEditedTimestamp field's value. +func (s *ChannelMessage) SetLastEditedTimestamp(v time.Time) *ChannelMessage { + s.LastEditedTimestamp = &v + return s +} + +// SetLastUpdatedTimestamp sets the LastUpdatedTimestamp field's value. +func (s *ChannelMessage) SetLastUpdatedTimestamp(v time.Time) *ChannelMessage { + s.LastUpdatedTimestamp = &v + return s +} + +// SetMessageId sets the MessageId field's value. +func (s *ChannelMessage) SetMessageId(v string) *ChannelMessage { + s.MessageId = &v + return s +} + +// SetMetadata sets the Metadata field's value. +func (s *ChannelMessage) SetMetadata(v string) *ChannelMessage { + s.Metadata = &v + return s +} + +// SetPersistence sets the Persistence field's value. +func (s *ChannelMessage) SetPersistence(v string) *ChannelMessage { + s.Persistence = &v + return s +} + +// SetRedacted sets the Redacted field's value. +func (s *ChannelMessage) SetRedacted(v bool) *ChannelMessage { + s.Redacted = &v + return s +} + +// SetSender sets the Sender field's value. +func (s *ChannelMessage) SetSender(v *Identity) *ChannelMessage { + s.Sender = v + return s +} + +// SetType sets the Type field's value. +func (s *ChannelMessage) SetType(v string) *ChannelMessage { + s.Type = &v + return s +} + +// A summary of the messages in a channel. +type ChannelMessageSummary struct { + _ struct{} `type:"structure"` + + // The content of the message summary. + Content *string `type:"string" sensitive:"true"` + + // The time at which the message summary was created. + CreatedTimestamp *time.Time `type:"timestamp"` + + LastEditedTimestamp *time.Time `type:"timestamp"` + + LastUpdatedTimestamp *time.Time `type:"timestamp"` + + // The ID of the message summary. + MessageId *string `min:"1" type:"string"` + + // The metadata of the message summary. + Metadata *string `type:"string" sensitive:"true"` + + // Redacts the content of a message summary. + Redacted *bool `type:"boolean"` + + // The sender of the message summary. + Sender *Identity `type:"structure"` + + // The type of message summary. + Type *string `type:"string" enum:"ChannelMessageType"` +} + +// String returns the string representation +func (s ChannelMessageSummary) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ChannelMessageSummary) GoString() string { + return s.String() +} + +// SetContent sets the Content field's value. +func (s *ChannelMessageSummary) SetContent(v string) *ChannelMessageSummary { + s.Content = &v + return s +} + +// SetCreatedTimestamp sets the CreatedTimestamp field's value. +func (s *ChannelMessageSummary) SetCreatedTimestamp(v time.Time) *ChannelMessageSummary { + s.CreatedTimestamp = &v + return s +} + +// SetLastEditedTimestamp sets the LastEditedTimestamp field's value. +func (s *ChannelMessageSummary) SetLastEditedTimestamp(v time.Time) *ChannelMessageSummary { + s.LastEditedTimestamp = &v + return s +} + +// SetLastUpdatedTimestamp sets the LastUpdatedTimestamp field's value. +func (s *ChannelMessageSummary) SetLastUpdatedTimestamp(v time.Time) *ChannelMessageSummary { + s.LastUpdatedTimestamp = &v + return s +} + +// SetMessageId sets the MessageId field's value. +func (s *ChannelMessageSummary) SetMessageId(v string) *ChannelMessageSummary { + s.MessageId = &v + return s +} + +// SetMetadata sets the Metadata field's value. +func (s *ChannelMessageSummary) SetMetadata(v string) *ChannelMessageSummary { + s.Metadata = &v + return s +} + +// SetRedacted sets the Redacted field's value. +func (s *ChannelMessageSummary) SetRedacted(v bool) *ChannelMessageSummary { + s.Redacted = &v + return s +} + +// SetSender sets the Sender field's value. +func (s *ChannelMessageSummary) SetSender(v *Identity) *ChannelMessageSummary { + s.Sender = v + return s +} + +// SetType sets the Type field's value. +func (s *ChannelMessageSummary) SetType(v string) *ChannelMessageSummary { + s.Type = &v + return s +} + +// Returns the summary data for a moderated channel. +type ChannelModeratedByAppInstanceUserSummary struct { + _ struct{} `type:"structure"` + + // The summary data for a channel. + ChannelSummary *ChannelSummary `type:"structure"` +} + +// String returns the string representation +func (s ChannelModeratedByAppInstanceUserSummary) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ChannelModeratedByAppInstanceUserSummary) GoString() string { + return s.String() +} + +// SetChannelSummary sets the ChannelSummary field's value. +func (s *ChannelModeratedByAppInstanceUserSummary) SetChannelSummary(v *ChannelSummary) *ChannelModeratedByAppInstanceUserSummary { + s.ChannelSummary = v + return s +} + +// Creates a moderator on a channel. +type ChannelModerator struct { + _ struct{} `type:"structure"` + + // The ARN of the moderator's channel. + ChannelArn *string `min:"5" type:"string"` + + // The member who created the moderator. + CreatedBy *Identity `type:"structure"` + + // The time at which the moderator was created. + CreatedTimestamp *time.Time `type:"timestamp"` + + // The moderator's data. + Moderator *Identity `type:"structure"` +} + +// String returns the string representation +func (s ChannelModerator) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ChannelModerator) GoString() string { + return s.String() +} + +// SetChannelArn sets the ChannelArn field's value. +func (s *ChannelModerator) SetChannelArn(v string) *ChannelModerator { + s.ChannelArn = &v + return s +} + +// SetCreatedBy sets the CreatedBy field's value. +func (s *ChannelModerator) SetCreatedBy(v *Identity) *ChannelModerator { + s.CreatedBy = v + return s +} + +// SetCreatedTimestamp sets the CreatedTimestamp field's value. +func (s *ChannelModerator) SetCreatedTimestamp(v time.Time) *ChannelModerator { + s.CreatedTimestamp = &v + return s +} + +// SetModerator sets the Moderator field's value. +func (s *ChannelModerator) SetModerator(v *Identity) *ChannelModerator { + s.Moderator = v + return s +} + +// Summary data of the moderators in a channel. +type ChannelModeratorSummary struct { + _ struct{} `type:"structure"` + + // The data for a moderator. + Moderator *Identity `type:"structure"` +} + +// String returns the string representation +func (s ChannelModeratorSummary) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ChannelModeratorSummary) GoString() string { + return s.String() +} + +// SetModerator sets the Moderator field's value. +func (s *ChannelModeratorSummary) SetModerator(v *Identity) *ChannelModeratorSummary { + s.Moderator = v + return s +} + +// The retention settings for a channel. +type ChannelRetentionSettings struct { + _ struct{} `type:"structure"` + + // The time in days to retain a channel. + RetentionDays *int64 `min:"1" type:"integer"` +} + +// String returns the string representation +func (s ChannelRetentionSettings) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ChannelRetentionSettings) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ChannelRetentionSettings) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ChannelRetentionSettings"} + if s.RetentionDays != nil && *s.RetentionDays < 1 { + invalidParams.Add(request.NewErrParamMinValue("RetentionDays", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetRetentionDays sets the RetentionDays field's value. +func (s *ChannelRetentionSettings) SetRetentionDays(v int64) *ChannelRetentionSettings { + s.RetentionDays = &v + return s +} + +// The summary data for a channel. +type ChannelSummary struct { + _ struct{} `type:"structure"` + + // The ARN of the channel summary. + ChannelArn *string `min:"5" type:"string"` + + // The time at which the last message in a channel was sent. + LastMessageTimestamp *time.Time `type:"timestamp"` + + // The metadata of the channel summary. + Metadata *string `type:"string" sensitive:"true"` + + // The summary mode of the channel. + Mode *string `type:"string" enum:"ChannelMode"` + + // The parameter of the action. + Name *string `min:"1" type:"string" sensitive:"true"` + + // The privacy setting of the channel being summarized, PUBLIC or HIDDEN. + Privacy *string `type:"string" enum:"ChannelPrivacy"` +} + +// String returns the string representation +func (s ChannelSummary) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ChannelSummary) GoString() string { + return s.String() +} + +// SetChannelArn sets the ChannelArn field's value. +func (s *ChannelSummary) SetChannelArn(v string) *ChannelSummary { + s.ChannelArn = &v + return s +} + +// SetLastMessageTimestamp sets the LastMessageTimestamp field's value. +func (s *ChannelSummary) SetLastMessageTimestamp(v time.Time) *ChannelSummary { + s.LastMessageTimestamp = &v + return s +} + +// SetMetadata sets the Metadata field's value. +func (s *ChannelSummary) SetMetadata(v string) *ChannelSummary { + s.Metadata = &v + return s +} + +// SetMode sets the Mode field's value. +func (s *ChannelSummary) SetMode(v string) *ChannelSummary { + s.Mode = &v + return s +} + +// SetName sets the Name field's value. +func (s *ChannelSummary) SetName(v string) *ChannelSummary { + s.Name = &v + return s +} + +// SetPrivacy sets the Privacy field's value. +func (s *ChannelSummary) SetPrivacy(v string) *ChannelSummary { + s.Privacy = &v + return s +} + +// The request could not be processed because of conflict in the current state +// of the resource. +type ConflictException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + Code_ *string `locationName:"Code" type:"string" enum:"ErrorCode"` + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ConflictException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ConflictException) GoString() string { + return s.String() +} + +func newErrorConflictException(v protocol.ResponseMetadata) error { + return &ConflictException{ + RespMetadata: v, + } +} + +// Code returns the exception type name. +func (s *ConflictException) Code() string { + return "ConflictException" +} + +// Message returns the exception's message. +func (s *ConflictException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *ConflictException) OrigErr() error { + return nil +} + +func (s *ConflictException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s *ConflictException) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *ConflictException) RequestID() string { + return s.RespMetadata.RequestID +} + +// The retention settings that determine how long to retain chat conversation +// messages for an Amazon Chime Enterprise account. +type ConversationRetentionSettings struct { + _ struct{} `type:"structure"` + + // The number of days for which to retain chat conversation messages. + RetentionDays *int64 `min:"1" type:"integer"` +} + +// String returns the string representation +func (s ConversationRetentionSettings) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ConversationRetentionSettings) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ConversationRetentionSettings) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ConversationRetentionSettings"} + if s.RetentionDays != nil && *s.RetentionDays < 1 { + invalidParams.Add(request.NewErrParamMinValue("RetentionDays", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetRetentionDays sets the RetentionDays field's value. +func (s *ConversationRetentionSettings) SetRetentionDays(v int64) *ConversationRetentionSettings { + s.RetentionDays = &v + return s +} + +type CreateAccountInput struct { + _ struct{} `type:"structure"` + + // The name of the Amazon Chime account. + // + // Name is a required field + Name *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s CreateAccountInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateAccountInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateAccountInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateAccountInput"} + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetName sets the Name field's value. +func (s *CreateAccountInput) SetName(v string) *CreateAccountInput { + s.Name = &v + return s +} + +type CreateAccountOutput struct { + _ struct{} `type:"structure"` + + // The Amazon Chime account details. An AWS account can have multiple Amazon + // Chime accounts. + Account *Account `type:"structure"` +} + +// String returns the string representation +func (s CreateAccountOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateAccountOutput) GoString() string { + return s.String() +} + +// SetAccount sets the Account field's value. +func (s *CreateAccountOutput) SetAccount(v *Account) *CreateAccountOutput { + s.Account = v + return s +} + +type CreateAppInstanceAdminInput struct { + _ struct{} `type:"structure"` + + // The ARN of the administrator of the current app instance. + // + // AppInstanceAdminArn is a required field + AppInstanceAdminArn *string `min:"5" type:"string" required:"true"` + + // The ARN of the app instance. + // + // AppInstanceArn is a required field + AppInstanceArn *string `location:"uri" locationName:"appInstanceArn" min:"5" type:"string" required:"true"` +} + +// String returns the string representation +func (s CreateAppInstanceAdminInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateAppInstanceAdminInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateAppInstanceAdminInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateAppInstanceAdminInput"} + if s.AppInstanceAdminArn == nil { + invalidParams.Add(request.NewErrParamRequired("AppInstanceAdminArn")) + } + if s.AppInstanceAdminArn != nil && len(*s.AppInstanceAdminArn) < 5 { + invalidParams.Add(request.NewErrParamMinLen("AppInstanceAdminArn", 5)) + } + if s.AppInstanceArn == nil { + invalidParams.Add(request.NewErrParamRequired("AppInstanceArn")) + } + if s.AppInstanceArn != nil && len(*s.AppInstanceArn) < 5 { + invalidParams.Add(request.NewErrParamMinLen("AppInstanceArn", 5)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAppInstanceAdminArn sets the AppInstanceAdminArn field's value. +func (s *CreateAppInstanceAdminInput) SetAppInstanceAdminArn(v string) *CreateAppInstanceAdminInput { + s.AppInstanceAdminArn = &v + return s +} + +// SetAppInstanceArn sets the AppInstanceArn field's value. +func (s *CreateAppInstanceAdminInput) SetAppInstanceArn(v string) *CreateAppInstanceAdminInput { + s.AppInstanceArn = &v + return s +} + +type CreateAppInstanceAdminOutput struct { + _ struct{} `type:"structure"` + + // The name and ARN of the admin for the app instance. + AppInstanceAdmin *Identity `type:"structure"` + + // The ARN of the of the admin for the app instance. + AppInstanceArn *string `min:"5" type:"string"` +} + +// String returns the string representation +func (s CreateAppInstanceAdminOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateAppInstanceAdminOutput) GoString() string { + return s.String() +} + +// SetAppInstanceAdmin sets the AppInstanceAdmin field's value. +func (s *CreateAppInstanceAdminOutput) SetAppInstanceAdmin(v *Identity) *CreateAppInstanceAdminOutput { + s.AppInstanceAdmin = v + return s +} + +// SetAppInstanceArn sets the AppInstanceArn field's value. +func (s *CreateAppInstanceAdminOutput) SetAppInstanceArn(v string) *CreateAppInstanceAdminOutput { + s.AppInstanceArn = &v + return s +} + +type CreateAppInstanceInput struct { + _ struct{} `type:"structure"` + + // The ClientRequestToken of the app instance. + ClientRequestToken *string `min:"2" type:"string" idempotencyToken:"true" sensitive:"true"` + + // The metadata of the app instance. Limited to a 1KB string in UTF-8. + Metadata *string `type:"string" sensitive:"true"` + + // The name of the app instance. + // + // Name is a required field + Name *string `min:"1" type:"string" required:"true" sensitive:"true"` +} + +// String returns the string representation +func (s CreateAppInstanceInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateAppInstanceInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateAppInstanceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateAppInstanceInput"} + if s.ClientRequestToken != nil && len(*s.ClientRequestToken) < 2 { + invalidParams.Add(request.NewErrParamMinLen("ClientRequestToken", 2)) + } + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetClientRequestToken sets the ClientRequestToken field's value. +func (s *CreateAppInstanceInput) SetClientRequestToken(v string) *CreateAppInstanceInput { + s.ClientRequestToken = &v + return s +} + +// SetMetadata sets the Metadata field's value. +func (s *CreateAppInstanceInput) SetMetadata(v string) *CreateAppInstanceInput { + s.Metadata = &v + return s +} + +// SetName sets the Name field's value. +func (s *CreateAppInstanceInput) SetName(v string) *CreateAppInstanceInput { + s.Name = &v + return s +} + +type CreateAppInstanceOutput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Number (ARN) of the app instance. + AppInstanceArn *string `min:"5" type:"string"` +} + +// String returns the string representation +func (s CreateAppInstanceOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateAppInstanceOutput) GoString() string { + return s.String() +} + +// SetAppInstanceArn sets the AppInstanceArn field's value. +func (s *CreateAppInstanceOutput) SetAppInstanceArn(v string) *CreateAppInstanceOutput { + s.AppInstanceArn = &v + return s +} + +type CreateAppInstanceUserInput struct { + _ struct{} `type:"structure"` + + // The ARN of the app instance request. + // + // AppInstanceArn is a required field + AppInstanceArn *string `min:"5" type:"string" required:"true"` + + // The user ID of the app instance. + // + // AppInstanceUserId is a required field + AppInstanceUserId *string `min:"1" type:"string" required:"true" sensitive:"true"` + + // The token assigned to the user requesting an app instance. + ClientRequestToken *string `min:"2" type:"string" idempotencyToken:"true" sensitive:"true"` + + // The request's metadata. Limited to a 1KB string in UTF-8. + Metadata *string `type:"string" sensitive:"true"` + + // The user's name. + // + // Name is a required field + Name *string `min:"1" type:"string" required:"true" sensitive:"true"` +} + +// String returns the string representation +func (s CreateAppInstanceUserInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateAppInstanceUserInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateAppInstanceUserInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateAppInstanceUserInput"} + if s.AppInstanceArn == nil { + invalidParams.Add(request.NewErrParamRequired("AppInstanceArn")) + } + if s.AppInstanceArn != nil && len(*s.AppInstanceArn) < 5 { + invalidParams.Add(request.NewErrParamMinLen("AppInstanceArn", 5)) + } + if s.AppInstanceUserId == nil { + invalidParams.Add(request.NewErrParamRequired("AppInstanceUserId")) + } + if s.AppInstanceUserId != nil && len(*s.AppInstanceUserId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AppInstanceUserId", 1)) + } + if s.ClientRequestToken != nil && len(*s.ClientRequestToken) < 2 { + invalidParams.Add(request.NewErrParamMinLen("ClientRequestToken", 2)) + } + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAppInstanceArn sets the AppInstanceArn field's value. +func (s *CreateAppInstanceUserInput) SetAppInstanceArn(v string) *CreateAppInstanceUserInput { + s.AppInstanceArn = &v + return s +} + +// SetAppInstanceUserId sets the AppInstanceUserId field's value. +func (s *CreateAppInstanceUserInput) SetAppInstanceUserId(v string) *CreateAppInstanceUserInput { + s.AppInstanceUserId = &v + return s +} + +// SetClientRequestToken sets the ClientRequestToken field's value. +func (s *CreateAppInstanceUserInput) SetClientRequestToken(v string) *CreateAppInstanceUserInput { + s.ClientRequestToken = &v + return s +} + +// SetMetadata sets the Metadata field's value. +func (s *CreateAppInstanceUserInput) SetMetadata(v string) *CreateAppInstanceUserInput { + s.Metadata = &v + return s +} + +// SetName sets the Name field's value. +func (s *CreateAppInstanceUserInput) SetName(v string) *CreateAppInstanceUserInput { + s.Name = &v + return s +} + +type CreateAppInstanceUserOutput struct { + _ struct{} `type:"structure"` + + // The user's ARN. + AppInstanceUserArn *string `min:"5" type:"string"` +} + +// String returns the string representation +func (s CreateAppInstanceUserOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateAppInstanceUserOutput) GoString() string { + return s.String() +} + +// SetAppInstanceUserArn sets the AppInstanceUserArn field's value. +func (s *CreateAppInstanceUserOutput) SetAppInstanceUserArn(v string) *CreateAppInstanceUserOutput { + s.AppInstanceUserArn = &v + return s +} + +// The list of errors returned when errors are encountered during the BatchCreateAttendee +// and CreateAttendee actions. This includes external user IDs, error codes, +// and error messages. +type CreateAttendeeError struct { + _ struct{} `type:"structure"` + + // The error code. + ErrorCode *string `type:"string"` + + // The error message. + ErrorMessage *string `type:"string"` + + // The Amazon Chime SDK external user ID. An idempotency token. Links the attendee + // to an identity managed by a builder application. If you create an attendee + // with the same external user id, the service returns the existing record. + ExternalUserId *string `min:"2" type:"string" sensitive:"true"` +} + +// String returns the string representation +func (s CreateAttendeeError) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateAttendeeError) GoString() string { + return s.String() +} + +// SetErrorCode sets the ErrorCode field's value. +func (s *CreateAttendeeError) SetErrorCode(v string) *CreateAttendeeError { + s.ErrorCode = &v + return s +} + +// SetErrorMessage sets the ErrorMessage field's value. +func (s *CreateAttendeeError) SetErrorMessage(v string) *CreateAttendeeError { + s.ErrorMessage = &v + return s +} + +// SetExternalUserId sets the ExternalUserId field's value. +func (s *CreateAttendeeError) SetExternalUserId(v string) *CreateAttendeeError { + s.ExternalUserId = &v + return s +} + +type CreateAttendeeInput struct { + _ struct{} `type:"structure"` + + // The Amazon Chime SDK external user ID. An idempotency token. Links the attendee + // to an identity managed by a builder application. If you create an attendee + // with the same external user id, the service returns the existing record. + // + // ExternalUserId is a required field + ExternalUserId *string `min:"2" type:"string" required:"true" sensitive:"true"` + + // The Amazon Chime SDK meeting ID. + // + // MeetingId is a required field + MeetingId *string `location:"uri" locationName:"meetingId" type:"string" required:"true"` + + // The tag key-value pairs. + Tags []*Tag `min:"1" type:"list"` +} + +// String returns the string representation +func (s CreateAttendeeInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateAttendeeInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateAttendeeInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateAttendeeInput"} + if s.ExternalUserId == nil { + invalidParams.Add(request.NewErrParamRequired("ExternalUserId")) + } + if s.ExternalUserId != nil && len(*s.ExternalUserId) < 2 { + invalidParams.Add(request.NewErrParamMinLen("ExternalUserId", 2)) + } + if s.MeetingId == nil { + invalidParams.Add(request.NewErrParamRequired("MeetingId")) + } + if s.MeetingId != nil && len(*s.MeetingId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("MeetingId", 1)) + } + if s.Tags != nil && len(s.Tags) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Tags", 1)) + } + if s.Tags != nil { + for i, v := range s.Tags { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetExternalUserId sets the ExternalUserId field's value. +func (s *CreateAttendeeInput) SetExternalUserId(v string) *CreateAttendeeInput { + s.ExternalUserId = &v + return s +} + +// SetMeetingId sets the MeetingId field's value. +func (s *CreateAttendeeInput) SetMeetingId(v string) *CreateAttendeeInput { + s.MeetingId = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateAttendeeInput) SetTags(v []*Tag) *CreateAttendeeInput { + s.Tags = v + return s +} + +type CreateAttendeeOutput struct { + _ struct{} `type:"structure"` + + // The attendee information, including attendee ID and join token. + Attendee *Attendee `type:"structure"` +} + +// String returns the string representation +func (s CreateAttendeeOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateAttendeeOutput) GoString() string { + return s.String() +} + +// SetAttendee sets the Attendee field's value. +func (s *CreateAttendeeOutput) SetAttendee(v *Attendee) *CreateAttendeeOutput { + s.Attendee = v + return s +} + +// The Amazon Chime SDK attendee fields to create, used with the BatchCreateAttendee +// action. +type CreateAttendeeRequestItem struct { + _ struct{} `type:"structure"` + + // The Amazon Chime SDK external user ID. An idempotency token. Links the attendee + // to an identity managed by a builder application. If you create an attendee + // with the same external user id, the service returns the existing record. + // + // The Amazon Chime SDK external user ID. Links the attendee to an identity + // managed by a builder application. + // + // ExternalUserId is a required field + ExternalUserId *string `min:"2" type:"string" required:"true" sensitive:"true"` + + // The tag key-value pairs. + Tags []*Tag `min:"1" type:"list"` +} + +// String returns the string representation +func (s CreateAttendeeRequestItem) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateAttendeeRequestItem) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateAttendeeRequestItem) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateAttendeeRequestItem"} + if s.ExternalUserId == nil { + invalidParams.Add(request.NewErrParamRequired("ExternalUserId")) + } + if s.ExternalUserId != nil && len(*s.ExternalUserId) < 2 { + invalidParams.Add(request.NewErrParamMinLen("ExternalUserId", 2)) + } + if s.Tags != nil && len(s.Tags) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Tags", 1)) + } + if s.Tags != nil { + for i, v := range s.Tags { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetExternalUserId sets the ExternalUserId field's value. +func (s *CreateAttendeeRequestItem) SetExternalUserId(v string) *CreateAttendeeRequestItem { + s.ExternalUserId = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateAttendeeRequestItem) SetTags(v []*Tag) *CreateAttendeeRequestItem { + s.Tags = v + return s +} + +type CreateBotInput struct { + _ struct{} `type:"structure"` + + // The Amazon Chime account ID. + // + // AccountId is a required field + AccountId *string `location:"uri" locationName:"accountId" type:"string" required:"true"` + + // The bot display name. + // + // DisplayName is a required field + DisplayName *string `type:"string" required:"true" sensitive:"true"` + + // The domain of the Amazon Chime Enterprise account. + Domain *string `type:"string"` +} + +// String returns the string representation +func (s CreateBotInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateBotInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateBotInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateBotInput"} + if s.AccountId == nil { + invalidParams.Add(request.NewErrParamRequired("AccountId")) + } + if s.AccountId != nil && len(*s.AccountId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) + } + if s.DisplayName == nil { + invalidParams.Add(request.NewErrParamRequired("DisplayName")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAccountId sets the AccountId field's value. +func (s *CreateBotInput) SetAccountId(v string) *CreateBotInput { + s.AccountId = &v + return s +} + +// SetDisplayName sets the DisplayName field's value. +func (s *CreateBotInput) SetDisplayName(v string) *CreateBotInput { + s.DisplayName = &v + return s +} + +// SetDomain sets the Domain field's value. +func (s *CreateBotInput) SetDomain(v string) *CreateBotInput { + s.Domain = &v + return s +} + +type CreateBotOutput struct { + _ struct{} `type:"structure"` + + // The bot details. + Bot *Bot `type:"structure"` +} + +// String returns the string representation +func (s CreateBotOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateBotOutput) GoString() string { + return s.String() +} + +// SetBot sets the Bot field's value. +func (s *CreateBotOutput) SetBot(v *Bot) *CreateBotOutput { + s.Bot = v + return s +} + +type CreateChannelBanInput struct { + _ struct{} `type:"structure"` + + // The ARN of the ban request. + // + // ChannelArn is a required field + ChannelArn *string `location:"uri" locationName:"channelArn" min:"5" type:"string" required:"true"` + + // The ARN of the member being banned. + // + // MemberArn is a required field + MemberArn *string `min:"5" type:"string" required:"true"` +} + +// String returns the string representation +func (s CreateChannelBanInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateChannelBanInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateChannelBanInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateChannelBanInput"} + if s.ChannelArn == nil { + invalidParams.Add(request.NewErrParamRequired("ChannelArn")) + } + if s.ChannelArn != nil && len(*s.ChannelArn) < 5 { + invalidParams.Add(request.NewErrParamMinLen("ChannelArn", 5)) + } + if s.MemberArn == nil { + invalidParams.Add(request.NewErrParamRequired("MemberArn")) + } + if s.MemberArn != nil && len(*s.MemberArn) < 5 { + invalidParams.Add(request.NewErrParamMinLen("MemberArn", 5)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetChannelArn sets the ChannelArn field's value. +func (s *CreateChannelBanInput) SetChannelArn(v string) *CreateChannelBanInput { + s.ChannelArn = &v + return s +} + +// SetMemberArn sets the MemberArn field's value. +func (s *CreateChannelBanInput) SetMemberArn(v string) *CreateChannelBanInput { + s.MemberArn = &v + return s +} + +type CreateChannelBanOutput struct { + _ struct{} `type:"structure"` + + // The ARN of the response to the ban request. + ChannelArn *string `min:"5" type:"string"` + + // The ChannelArn and BannedIdentity of the member in the ban response. + Member *Identity `type:"structure"` +} + +// String returns the string representation +func (s CreateChannelBanOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateChannelBanOutput) GoString() string { + return s.String() +} + +// SetChannelArn sets the ChannelArn field's value. +func (s *CreateChannelBanOutput) SetChannelArn(v string) *CreateChannelBanOutput { + s.ChannelArn = &v + return s +} + +// SetMember sets the Member field's value. +func (s *CreateChannelBanOutput) SetMember(v *Identity) *CreateChannelBanOutput { + s.Member = v + return s +} + +type CreateChannelInput struct { + _ struct{} `type:"structure"` + + // The ARN of the channel request. + // + // AppInstanceArn is a required field + AppInstanceArn *string `min:"5" type:"string" required:"true"` + + // The client token for the request. An Idempotency token. + ClientRequestToken *string `min:"2" type:"string" idempotencyToken:"true" sensitive:"true"` + + // The metadata of the creation request. Limited to 1KB and UTF-8. + Metadata *string `type:"string" sensitive:"true"` + + // The channel mode: UNRESTRICTED or RESTRICTED. Administrators, moderators, + // and channel members can add themselves and other members to unrestricted + // channels. Only administrators and moderators can add members to restricted + // channels. + Mode *string `type:"string" enum:"ChannelMode"` + + // The name of the channel. + // + // Name is a required field + Name *string `min:"1" type:"string" required:"true" sensitive:"true"` + + // The channel's privacy level: PUBLIC or PRIVATE. Private channels aren't discoverable + // by users outside the channel. Public channels are discoverable by anyone + // in the app instance. + Privacy *string `type:"string" enum:"ChannelPrivacy"` + + Tags []*Tag `min:"1" type:"list"` +} + +// String returns the string representation +func (s CreateChannelInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateChannelInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateChannelInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateChannelInput"} + if s.AppInstanceArn == nil { + invalidParams.Add(request.NewErrParamRequired("AppInstanceArn")) + } + if s.AppInstanceArn != nil && len(*s.AppInstanceArn) < 5 { + invalidParams.Add(request.NewErrParamMinLen("AppInstanceArn", 5)) + } + if s.ClientRequestToken != nil && len(*s.ClientRequestToken) < 2 { + invalidParams.Add(request.NewErrParamMinLen("ClientRequestToken", 2)) + } + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + } + if s.Tags != nil && len(s.Tags) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Tags", 1)) + } + if s.Tags != nil { + for i, v := range s.Tags { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAppInstanceArn sets the AppInstanceArn field's value. +func (s *CreateChannelInput) SetAppInstanceArn(v string) *CreateChannelInput { + s.AppInstanceArn = &v + return s +} + +// SetClientRequestToken sets the ClientRequestToken field's value. +func (s *CreateChannelInput) SetClientRequestToken(v string) *CreateChannelInput { + s.ClientRequestToken = &v + return s +} + +// SetMetadata sets the Metadata field's value. +func (s *CreateChannelInput) SetMetadata(v string) *CreateChannelInput { + s.Metadata = &v + return s +} + +// SetMode sets the Mode field's value. +func (s *CreateChannelInput) SetMode(v string) *CreateChannelInput { + s.Mode = &v + return s +} + +// SetName sets the Name field's value. +func (s *CreateChannelInput) SetName(v string) *CreateChannelInput { + s.Name = &v + return s +} + +// SetPrivacy sets the Privacy field's value. +func (s *CreateChannelInput) SetPrivacy(v string) *CreateChannelInput { + s.Privacy = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateChannelInput) SetTags(v []*Tag) *CreateChannelInput { + s.Tags = v + return s +} + +type CreateChannelMembershipInput struct { + _ struct{} `type:"structure"` + + // The ARN of the channel to which you're adding users. + // + // ChannelArn is a required field + ChannelArn *string `location:"uri" locationName:"channelArn" min:"5" type:"string" required:"true"` + + // The ARN of the member you want to add to the channel. + // + // MemberArn is a required field + MemberArn *string `min:"5" type:"string" required:"true"` + + // The membership type of a user, DEFAULT or HIDDEN. Default members are always + // returned as part of ListChannelMemberships. Hidden members are only returned + // if the type filter in ListChannelMemberships equals HIDDEN. Otherwise hidden + // members are not returned. This is only supported by moderators. + // + // Type is a required field + Type *string `type:"string" required:"true" enum:"ChannelMembershipType"` +} + +// String returns the string representation +func (s CreateChannelMembershipInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateChannelMembershipInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateChannelMembershipInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateChannelMembershipInput"} + if s.ChannelArn == nil { + invalidParams.Add(request.NewErrParamRequired("ChannelArn")) + } + if s.ChannelArn != nil && len(*s.ChannelArn) < 5 { + invalidParams.Add(request.NewErrParamMinLen("ChannelArn", 5)) + } + if s.MemberArn == nil { + invalidParams.Add(request.NewErrParamRequired("MemberArn")) + } + if s.MemberArn != nil && len(*s.MemberArn) < 5 { + invalidParams.Add(request.NewErrParamMinLen("MemberArn", 5)) + } + if s.Type == nil { + invalidParams.Add(request.NewErrParamRequired("Type")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetChannelArn sets the ChannelArn field's value. +func (s *CreateChannelMembershipInput) SetChannelArn(v string) *CreateChannelMembershipInput { + s.ChannelArn = &v + return s +} + +// SetMemberArn sets the MemberArn field's value. +func (s *CreateChannelMembershipInput) SetMemberArn(v string) *CreateChannelMembershipInput { + s.MemberArn = &v + return s +} + +// SetType sets the Type field's value. +func (s *CreateChannelMembershipInput) SetType(v string) *CreateChannelMembershipInput { + s.Type = &v + return s +} + +type CreateChannelMembershipOutput struct { + _ struct{} `type:"structure"` + + // The ARN of the channel. + ChannelArn *string `min:"5" type:"string"` + + // The ARN and metadata of the member being added. + Member *Identity `type:"structure"` +} + +// String returns the string representation +func (s CreateChannelMembershipOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateChannelMembershipOutput) GoString() string { + return s.String() +} + +// SetChannelArn sets the ChannelArn field's value. +func (s *CreateChannelMembershipOutput) SetChannelArn(v string) *CreateChannelMembershipOutput { + s.ChannelArn = &v + return s +} + +// SetMember sets the Member field's value. +func (s *CreateChannelMembershipOutput) SetMember(v *Identity) *CreateChannelMembershipOutput { + s.Member = v + return s +} + +type CreateChannelModeratorInput struct { + _ struct{} `type:"structure"` + + // The ARN of the channel. + // + // ChannelArn is a required field + ChannelArn *string `location:"uri" locationName:"channelArn" min:"5" type:"string" required:"true"` + + // The ARN of the moderator. + // + // ChannelModeratorArn is a required field + ChannelModeratorArn *string `min:"5" type:"string" required:"true"` +} + +// String returns the string representation +func (s CreateChannelModeratorInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateChannelModeratorInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateChannelModeratorInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateChannelModeratorInput"} + if s.ChannelArn == nil { + invalidParams.Add(request.NewErrParamRequired("ChannelArn")) + } + if s.ChannelArn != nil && len(*s.ChannelArn) < 5 { + invalidParams.Add(request.NewErrParamMinLen("ChannelArn", 5)) + } + if s.ChannelModeratorArn == nil { + invalidParams.Add(request.NewErrParamRequired("ChannelModeratorArn")) + } + if s.ChannelModeratorArn != nil && len(*s.ChannelModeratorArn) < 5 { + invalidParams.Add(request.NewErrParamMinLen("ChannelModeratorArn", 5)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetChannelArn sets the ChannelArn field's value. +func (s *CreateChannelModeratorInput) SetChannelArn(v string) *CreateChannelModeratorInput { + s.ChannelArn = &v + return s +} + +// SetChannelModeratorArn sets the ChannelModeratorArn field's value. +func (s *CreateChannelModeratorInput) SetChannelModeratorArn(v string) *CreateChannelModeratorInput { + s.ChannelModeratorArn = &v + return s +} + +type CreateChannelModeratorOutput struct { + _ struct{} `type:"structure"` + + // The ARN of the channel. + ChannelArn *string `min:"5" type:"string"` + + // The ARNs of the channel and the moderator. + ChannelModerator *Identity `type:"structure"` +} + +// String returns the string representation +func (s CreateChannelModeratorOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateChannelModeratorOutput) GoString() string { + return s.String() +} + +// SetChannelArn sets the ChannelArn field's value. +func (s *CreateChannelModeratorOutput) SetChannelArn(v string) *CreateChannelModeratorOutput { + s.ChannelArn = &v + return s +} + +// SetChannelModerator sets the ChannelModerator field's value. +func (s *CreateChannelModeratorOutput) SetChannelModerator(v *Identity) *CreateChannelModeratorOutput { + s.ChannelModerator = v + return s +} + +type CreateChannelOutput struct { + _ struct{} `type:"structure"` + + // The ARN of the channel. + ChannelArn *string `min:"5" type:"string"` +} + +// String returns the string representation +func (s CreateChannelOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateChannelOutput) GoString() string { + return s.String() +} + +// SetChannelArn sets the ChannelArn field's value. +func (s *CreateChannelOutput) SetChannelArn(v string) *CreateChannelOutput { + s.ChannelArn = &v + return s +} + +type CreateMeetingDialOutInput struct { + _ struct{} `type:"structure"` + + // Phone number used as the caller ID when the remote party receives a call. + // + // FromPhoneNumber is a required field + FromPhoneNumber *string `type:"string" required:"true" sensitive:"true"` + + // Token used by the Amazon Chime SDK attendee. Call the CreateAttendee API + // (https://docs.aws.amazon.com/https:/docs.aws.amazon.com/chime/latest/APIReference/API_Attendee.html) + // to get a join token. + // + // JoinToken is a required field + JoinToken *string `min:"2" type:"string" required:"true" sensitive:"true"` + + // The Amazon Chime SDK meeting ID. + // + // Type: String + // + // Pattern: [a-fA-F0-9]{8}(?:-[a-fA-F0-9]{4}){3}-[a-fA-F0-9]{12} + // + // Required: No + // + // MeetingId is a required field + MeetingId *string `location:"uri" locationName:"meetingId" type:"string" required:"true"` + + // Phone number called when inviting someone to a meeting. + // + // ToPhoneNumber is a required field + ToPhoneNumber *string `type:"string" required:"true" sensitive:"true"` +} + +// String returns the string representation +func (s CreateMeetingDialOutInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateMeetingDialOutInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateMeetingDialOutInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateMeetingDialOutInput"} + if s.FromPhoneNumber == nil { + invalidParams.Add(request.NewErrParamRequired("FromPhoneNumber")) + } + if s.JoinToken == nil { + invalidParams.Add(request.NewErrParamRequired("JoinToken")) + } + if s.JoinToken != nil && len(*s.JoinToken) < 2 { + invalidParams.Add(request.NewErrParamMinLen("JoinToken", 2)) + } + if s.MeetingId == nil { + invalidParams.Add(request.NewErrParamRequired("MeetingId")) + } + if s.MeetingId != nil && len(*s.MeetingId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("MeetingId", 1)) + } + if s.ToPhoneNumber == nil { + invalidParams.Add(request.NewErrParamRequired("ToPhoneNumber")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetFromPhoneNumber sets the FromPhoneNumber field's value. +func (s *CreateMeetingDialOutInput) SetFromPhoneNumber(v string) *CreateMeetingDialOutInput { + s.FromPhoneNumber = &v + return s +} + +// SetJoinToken sets the JoinToken field's value. +func (s *CreateMeetingDialOutInput) SetJoinToken(v string) *CreateMeetingDialOutInput { + s.JoinToken = &v + return s +} + +// SetMeetingId sets the MeetingId field's value. +func (s *CreateMeetingDialOutInput) SetMeetingId(v string) *CreateMeetingDialOutInput { + s.MeetingId = &v + return s +} + +// SetToPhoneNumber sets the ToPhoneNumber field's value. +func (s *CreateMeetingDialOutInput) SetToPhoneNumber(v string) *CreateMeetingDialOutInput { + s.ToPhoneNumber = &v + return s +} + +type CreateMeetingDialOutOutput struct { + _ struct{} `type:"structure"` + + // Unique ID that tracks API calls. + TransactionId *string `type:"string"` +} + +// String returns the string representation +func (s CreateMeetingDialOutOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateMeetingDialOutOutput) GoString() string { + return s.String() +} + +// SetTransactionId sets the TransactionId field's value. +func (s *CreateMeetingDialOutOutput) SetTransactionId(v string) *CreateMeetingDialOutOutput { + s.TransactionId = &v + return s +} + +type CreateMeetingInput struct { + _ struct{} `type:"structure"` + + // The unique identifier for the client request. Use a different token for different + // meetings. + ClientRequestToken *string `min:"2" type:"string" idempotencyToken:"true" sensitive:"true"` + + // The external meeting ID. + ExternalMeetingId *string `min:"2" type:"string" sensitive:"true"` + + // The Region in which to create the meeting. Default: us-east-1. + // + // Available values: af-south-1, ap-northeast-1, ap-northeast-2, ap-south-1, + // ap-southeast-1, ap-southeast-2, ca-central-1, eu-central-1, eu-north-1, eu-south-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. + MediaRegion *string `type:"string"` + + // Reserved. + MeetingHostId *string `min:"2" type:"string" sensitive:"true"` + + // The configuration for resource targets to receive notifications when meeting + // and attendee events occur. + NotificationsConfiguration *MeetingNotificationConfiguration `type:"structure"` + + // The tag key-value pairs. + Tags []*Tag `min:"1" type:"list"` +} + +// String returns the string representation +func (s CreateMeetingInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateMeetingInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateMeetingInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateMeetingInput"} + if s.ClientRequestToken != nil && len(*s.ClientRequestToken) < 2 { + invalidParams.Add(request.NewErrParamMinLen("ClientRequestToken", 2)) + } + if s.ExternalMeetingId != nil && len(*s.ExternalMeetingId) < 2 { + invalidParams.Add(request.NewErrParamMinLen("ExternalMeetingId", 2)) + } + if s.MeetingHostId != nil && len(*s.MeetingHostId) < 2 { + invalidParams.Add(request.NewErrParamMinLen("MeetingHostId", 2)) + } + if s.Tags != nil && len(s.Tags) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Tags", 1)) + } + if s.NotificationsConfiguration != nil { + if err := s.NotificationsConfiguration.Validate(); err != nil { + invalidParams.AddNested("NotificationsConfiguration", err.(request.ErrInvalidParams)) + } + } + if s.Tags != nil { + for i, v := range s.Tags { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetClientRequestToken sets the ClientRequestToken field's value. +func (s *CreateMeetingInput) SetClientRequestToken(v string) *CreateMeetingInput { + s.ClientRequestToken = &v + return s +} + +// SetExternalMeetingId sets the ExternalMeetingId field's value. +func (s *CreateMeetingInput) SetExternalMeetingId(v string) *CreateMeetingInput { + s.ExternalMeetingId = &v + return s +} + +// SetMediaRegion sets the MediaRegion field's value. +func (s *CreateMeetingInput) SetMediaRegion(v string) *CreateMeetingInput { + s.MediaRegion = &v + return s +} + +// SetMeetingHostId sets the MeetingHostId field's value. +func (s *CreateMeetingInput) SetMeetingHostId(v string) *CreateMeetingInput { + s.MeetingHostId = &v + return s +} + +// SetNotificationsConfiguration sets the NotificationsConfiguration field's value. +func (s *CreateMeetingInput) SetNotificationsConfiguration(v *MeetingNotificationConfiguration) *CreateMeetingInput { + s.NotificationsConfiguration = v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateMeetingInput) SetTags(v []*Tag) *CreateMeetingInput { + s.Tags = v + return s +} + +type CreateMeetingOutput struct { + _ struct{} `type:"structure"` + + // The meeting information, including the meeting ID and MediaPlacement. + Meeting *Meeting `type:"structure"` +} + +// String returns the string representation +func (s CreateMeetingOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateMeetingOutput) GoString() string { + return s.String() +} + +// SetMeeting sets the Meeting field's value. +func (s *CreateMeetingOutput) SetMeeting(v *Meeting) *CreateMeetingOutput { + s.Meeting = v + return s +} + +type CreateMeetingWithAttendeesInput struct { + _ struct{} `type:"structure"` + + // The request containing the attendees to create. + Attendees []*CreateAttendeeRequestItem `min:"1" type:"list"` + + // The unique identifier for the client request. Use a different token for different + // meetings. + ClientRequestToken *string `min:"2" type:"string" idempotencyToken:"true" sensitive:"true"` + + // The external meeting ID. + ExternalMeetingId *string `min:"2" type:"string" sensitive:"true"` + + // The Region in which to create the meeting. Default: us-east-1. + // + // Available values: af-south-1, ap-northeast-1, ap-northeast-2, ap-south-1, + // ap-southeast-1, ap-southeast-2, ca-central-1, eu-central-1, eu-north-1, eu-south-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. + MediaRegion *string `type:"string"` + + // Reserved. + MeetingHostId *string `min:"2" type:"string" sensitive:"true"` + + // The configuration for resource targets to receive notifications when Amazon + // Chime SDK meeting and attendee events occur. The Amazon Chime SDK supports + // resource targets located in the US East (N. Virginia) AWS Region (us-east-1). + NotificationsConfiguration *MeetingNotificationConfiguration `type:"structure"` + + // The tag key-value pairs. + Tags []*Tag `min:"1" type:"list"` +} + +// String returns the string representation +func (s CreateMeetingWithAttendeesInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateMeetingWithAttendeesInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateMeetingWithAttendeesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateMeetingWithAttendeesInput"} + if s.Attendees != nil && len(s.Attendees) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Attendees", 1)) + } + if s.ClientRequestToken != nil && len(*s.ClientRequestToken) < 2 { + invalidParams.Add(request.NewErrParamMinLen("ClientRequestToken", 2)) + } + if s.ExternalMeetingId != nil && len(*s.ExternalMeetingId) < 2 { + invalidParams.Add(request.NewErrParamMinLen("ExternalMeetingId", 2)) + } + if s.MeetingHostId != nil && len(*s.MeetingHostId) < 2 { + invalidParams.Add(request.NewErrParamMinLen("MeetingHostId", 2)) + } + if s.Tags != nil && len(s.Tags) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Tags", 1)) + } + if s.Attendees != nil { + for i, v := range s.Attendees { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Attendees", i), err.(request.ErrInvalidParams)) + } + } + } + if s.NotificationsConfiguration != nil { + if err := s.NotificationsConfiguration.Validate(); err != nil { + invalidParams.AddNested("NotificationsConfiguration", err.(request.ErrInvalidParams)) + } + } + if s.Tags != nil { + for i, v := range s.Tags { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAttendees sets the Attendees field's value. +func (s *CreateMeetingWithAttendeesInput) SetAttendees(v []*CreateAttendeeRequestItem) *CreateMeetingWithAttendeesInput { + s.Attendees = v + return s +} + +// SetClientRequestToken sets the ClientRequestToken field's value. +func (s *CreateMeetingWithAttendeesInput) SetClientRequestToken(v string) *CreateMeetingWithAttendeesInput { + s.ClientRequestToken = &v + return s +} + +// SetExternalMeetingId sets the ExternalMeetingId field's value. +func (s *CreateMeetingWithAttendeesInput) SetExternalMeetingId(v string) *CreateMeetingWithAttendeesInput { + s.ExternalMeetingId = &v + return s +} + +// SetMediaRegion sets the MediaRegion field's value. +func (s *CreateMeetingWithAttendeesInput) SetMediaRegion(v string) *CreateMeetingWithAttendeesInput { + s.MediaRegion = &v + return s +} + +// SetMeetingHostId sets the MeetingHostId field's value. +func (s *CreateMeetingWithAttendeesInput) SetMeetingHostId(v string) *CreateMeetingWithAttendeesInput { + s.MeetingHostId = &v + return s +} + +// SetNotificationsConfiguration sets the NotificationsConfiguration field's value. +func (s *CreateMeetingWithAttendeesInput) SetNotificationsConfiguration(v *MeetingNotificationConfiguration) *CreateMeetingWithAttendeesInput { + s.NotificationsConfiguration = v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateMeetingWithAttendeesInput) SetTags(v []*Tag) *CreateMeetingWithAttendeesInput { + s.Tags = v + return s +} + +type CreateMeetingWithAttendeesOutput struct { + _ struct{} `type:"structure"` + + // The attendee information, including attendees IDs and join tokens. + Attendees []*Attendee `type:"list"` + + // If the action fails for one or more of the attendees in the request, a list + // of the attendees is returned, along with error codes and error messages. + Errors []*CreateAttendeeError `type:"list"` + + // A meeting created using the Amazon Chime SDK. + Meeting *Meeting `type:"structure"` +} + +// String returns the string representation +func (s CreateMeetingWithAttendeesOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateMeetingWithAttendeesOutput) GoString() string { + return s.String() +} + +// SetAttendees sets the Attendees field's value. +func (s *CreateMeetingWithAttendeesOutput) SetAttendees(v []*Attendee) *CreateMeetingWithAttendeesOutput { + s.Attendees = v + return s +} + +// SetErrors sets the Errors field's value. +func (s *CreateMeetingWithAttendeesOutput) SetErrors(v []*CreateAttendeeError) *CreateMeetingWithAttendeesOutput { + s.Errors = v + return s +} + +// SetMeeting sets the Meeting field's value. +func (s *CreateMeetingWithAttendeesOutput) SetMeeting(v *Meeting) *CreateMeetingWithAttendeesOutput { + s.Meeting = v + return s +} + +type CreatePhoneNumberOrderInput struct { + _ struct{} `type:"structure"` + + // List of phone numbers, in E.164 format. + // + // E164PhoneNumbers is a required field + E164PhoneNumbers []*string `type:"list" required:"true"` + + // The phone number product type. + // + // ProductType is a required field + ProductType *string `type:"string" required:"true" enum:"PhoneNumberProductType"` +} + +// String returns the string representation +func (s CreatePhoneNumberOrderInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreatePhoneNumberOrderInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreatePhoneNumberOrderInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreatePhoneNumberOrderInput"} + if s.E164PhoneNumbers == nil { + invalidParams.Add(request.NewErrParamRequired("E164PhoneNumbers")) + } + if s.ProductType == nil { + invalidParams.Add(request.NewErrParamRequired("ProductType")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetE164PhoneNumbers sets the E164PhoneNumbers field's value. +func (s *CreatePhoneNumberOrderInput) SetE164PhoneNumbers(v []*string) *CreatePhoneNumberOrderInput { + s.E164PhoneNumbers = v + return s +} + +// SetProductType sets the ProductType field's value. +func (s *CreatePhoneNumberOrderInput) SetProductType(v string) *CreatePhoneNumberOrderInput { + s.ProductType = &v + return s +} + +type CreatePhoneNumberOrderOutput struct { + _ struct{} `type:"structure"` + + // The phone number order details. + PhoneNumberOrder *PhoneNumberOrder `type:"structure"` +} + +// String returns the string representation +func (s CreatePhoneNumberOrderOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreatePhoneNumberOrderOutput) GoString() string { + return s.String() +} + +// SetPhoneNumberOrder sets the PhoneNumberOrder field's value. +func (s *CreatePhoneNumberOrderOutput) SetPhoneNumberOrder(v *PhoneNumberOrder) *CreatePhoneNumberOrderOutput { + s.PhoneNumberOrder = v + return s +} + +type CreateProxySessionInput struct { + _ struct{} `type:"structure"` + + // The proxy session capabilities. + // + // Capabilities is a required field + Capabilities []*string `type:"list" required:"true"` + + // The number of minutes allowed for the proxy session. + ExpiryMinutes *int64 `min:"1" type:"integer"` + + // The preference for matching the country or area code of the proxy phone number + // with that of the first participant. + GeoMatchLevel *string `type:"string" enum:"GeoMatchLevel"` + + // The country and area code for the proxy phone number. + GeoMatchParams *GeoMatchParams `type:"structure"` + + // The name of the proxy session. + Name *string `type:"string" sensitive:"true"` + + // The preference for proxy phone number reuse, or stickiness, between the same + // participants across sessions. + NumberSelectionBehavior *string `type:"string" enum:"NumberSelectionBehavior"` + + // The participant phone numbers. + // + // ParticipantPhoneNumbers is a required field + ParticipantPhoneNumbers []*string `min:"2" type:"list" required:"true"` + + // The Amazon Chime voice connector ID. + // + // VoiceConnectorId is a required field + VoiceConnectorId *string `location:"uri" locationName:"voiceConnectorId" min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s CreateProxySessionInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateProxySessionInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateProxySessionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateProxySessionInput"} + if s.Capabilities == nil { + invalidParams.Add(request.NewErrParamRequired("Capabilities")) + } + if s.ExpiryMinutes != nil && *s.ExpiryMinutes < 1 { + invalidParams.Add(request.NewErrParamMinValue("ExpiryMinutes", 1)) + } + if s.ParticipantPhoneNumbers == nil { + invalidParams.Add(request.NewErrParamRequired("ParticipantPhoneNumbers")) + } + if s.ParticipantPhoneNumbers != nil && len(s.ParticipantPhoneNumbers) < 2 { + invalidParams.Add(request.NewErrParamMinLen("ParticipantPhoneNumbers", 2)) + } + if s.VoiceConnectorId == nil { + invalidParams.Add(request.NewErrParamRequired("VoiceConnectorId")) + } + if s.VoiceConnectorId != nil && len(*s.VoiceConnectorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VoiceConnectorId", 1)) + } + if s.GeoMatchParams != nil { + if err := s.GeoMatchParams.Validate(); err != nil { + invalidParams.AddNested("GeoMatchParams", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetCapabilities sets the Capabilities field's value. +func (s *CreateProxySessionInput) SetCapabilities(v []*string) *CreateProxySessionInput { + s.Capabilities = v + return s +} + +// SetExpiryMinutes sets the ExpiryMinutes field's value. +func (s *CreateProxySessionInput) SetExpiryMinutes(v int64) *CreateProxySessionInput { + s.ExpiryMinutes = &v + return s +} + +// SetGeoMatchLevel sets the GeoMatchLevel field's value. +func (s *CreateProxySessionInput) SetGeoMatchLevel(v string) *CreateProxySessionInput { + s.GeoMatchLevel = &v + return s +} + +// SetGeoMatchParams sets the GeoMatchParams field's value. +func (s *CreateProxySessionInput) SetGeoMatchParams(v *GeoMatchParams) *CreateProxySessionInput { + s.GeoMatchParams = v + return s +} + +// SetName sets the Name field's value. +func (s *CreateProxySessionInput) SetName(v string) *CreateProxySessionInput { + s.Name = &v + return s +} + +// SetNumberSelectionBehavior sets the NumberSelectionBehavior field's value. +func (s *CreateProxySessionInput) SetNumberSelectionBehavior(v string) *CreateProxySessionInput { + s.NumberSelectionBehavior = &v + return s +} + +// SetParticipantPhoneNumbers sets the ParticipantPhoneNumbers field's value. +func (s *CreateProxySessionInput) SetParticipantPhoneNumbers(v []*string) *CreateProxySessionInput { + s.ParticipantPhoneNumbers = v + return s +} + +// SetVoiceConnectorId sets the VoiceConnectorId field's value. +func (s *CreateProxySessionInput) SetVoiceConnectorId(v string) *CreateProxySessionInput { + s.VoiceConnectorId = &v + return s +} + +type CreateProxySessionOutput struct { + _ struct{} `type:"structure"` + + // The proxy session details. + ProxySession *ProxySession `type:"structure"` +} + +// String returns the string representation +func (s CreateProxySessionOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateProxySessionOutput) GoString() string { + return s.String() +} + +// SetProxySession sets the ProxySession field's value. +func (s *CreateProxySessionOutput) SetProxySession(v *ProxySession) *CreateProxySessionOutput { + s.ProxySession = v + return s +} + +type CreateRoomInput struct { + _ struct{} `type:"structure"` + + // The Amazon Chime account ID. + // + // AccountId is a required field + AccountId *string `location:"uri" locationName:"accountId" type:"string" required:"true"` + + // The idempotency token for the request. + ClientRequestToken *string `min:"2" type:"string" idempotencyToken:"true" sensitive:"true"` + + // The room name. + // + // Name is a required field + Name *string `type:"string" required:"true" sensitive:"true"` +} + +// String returns the string representation +func (s CreateRoomInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateRoomInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateRoomInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateRoomInput"} + if s.AccountId == nil { + invalidParams.Add(request.NewErrParamRequired("AccountId")) + } + if s.AccountId != nil && len(*s.AccountId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) + } + if s.ClientRequestToken != nil && len(*s.ClientRequestToken) < 2 { + invalidParams.Add(request.NewErrParamMinLen("ClientRequestToken", 2)) + } + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAccountId sets the AccountId field's value. +func (s *CreateRoomInput) SetAccountId(v string) *CreateRoomInput { + s.AccountId = &v + return s +} + +// SetClientRequestToken sets the ClientRequestToken field's value. +func (s *CreateRoomInput) SetClientRequestToken(v string) *CreateRoomInput { + s.ClientRequestToken = &v + return s +} + +// SetName sets the Name field's value. +func (s *CreateRoomInput) SetName(v string) *CreateRoomInput { + s.Name = &v + return s +} + +type CreateRoomMembershipInput struct { + _ struct{} `type:"structure"` + + // The Amazon Chime account ID. + // + // AccountId is a required field + AccountId *string `location:"uri" locationName:"accountId" type:"string" required:"true"` + + // The Amazon Chime member ID (user ID or bot ID). + // + // MemberId is a required field + MemberId *string `type:"string" required:"true"` + + // The role of the member. + Role *string `type:"string" enum:"RoomMembershipRole"` + + // The room ID. + // + // RoomId is a required field + RoomId *string `location:"uri" locationName:"roomId" type:"string" required:"true"` +} + +// String returns the string representation +func (s CreateRoomMembershipInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateRoomMembershipInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateRoomMembershipInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateRoomMembershipInput"} + if s.AccountId == nil { + invalidParams.Add(request.NewErrParamRequired("AccountId")) + } + if s.AccountId != nil && len(*s.AccountId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) + } + if s.MemberId == nil { + invalidParams.Add(request.NewErrParamRequired("MemberId")) + } + if s.RoomId == nil { + invalidParams.Add(request.NewErrParamRequired("RoomId")) + } + if s.RoomId != nil && len(*s.RoomId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RoomId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAccountId sets the AccountId field's value. +func (s *CreateRoomMembershipInput) SetAccountId(v string) *CreateRoomMembershipInput { + s.AccountId = &v + return s +} + +// SetMemberId sets the MemberId field's value. +func (s *CreateRoomMembershipInput) SetMemberId(v string) *CreateRoomMembershipInput { + s.MemberId = &v + return s +} + +// SetRole sets the Role field's value. +func (s *CreateRoomMembershipInput) SetRole(v string) *CreateRoomMembershipInput { + s.Role = &v + return s +} + +// SetRoomId sets the RoomId field's value. +func (s *CreateRoomMembershipInput) SetRoomId(v string) *CreateRoomMembershipInput { + s.RoomId = &v + return s +} + +type CreateRoomMembershipOutput struct { + _ struct{} `type:"structure"` + + // The room membership details. + RoomMembership *RoomMembership `type:"structure"` +} + +// String returns the string representation +func (s CreateRoomMembershipOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateRoomMembershipOutput) GoString() string { + return s.String() +} + +// SetRoomMembership sets the RoomMembership field's value. +func (s *CreateRoomMembershipOutput) SetRoomMembership(v *RoomMembership) *CreateRoomMembershipOutput { + s.RoomMembership = v + return s +} + +type CreateRoomOutput struct { + _ struct{} `type:"structure"` + + // The room details. + Room *Room `type:"structure"` +} + +// String returns the string representation +func (s CreateRoomOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateRoomOutput) GoString() string { + return s.String() +} + +// SetRoom sets the Room field's value. +func (s *CreateRoomOutput) SetRoom(v *Room) *CreateRoomOutput { + s.Room = v + return s +} + +type CreateSipMediaApplicationCallInput struct { + _ struct{} `type:"structure"` + + // The phone number that a user calls from. + FromPhoneNumber *string `type:"string" sensitive:"true"` + + // The ID of the SIP media application. + // + // SipMediaApplicationId is a required field + SipMediaApplicationId *string `location:"uri" locationName:"sipMediaApplicationId" type:"string" required:"true"` + + // The phone number that the user dials in order to connect to a meeting + ToPhoneNumber *string `type:"string" sensitive:"true"` +} + +// String returns the string representation +func (s CreateSipMediaApplicationCallInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateSipMediaApplicationCallInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateSipMediaApplicationCallInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateSipMediaApplicationCallInput"} + if s.SipMediaApplicationId == nil { + invalidParams.Add(request.NewErrParamRequired("SipMediaApplicationId")) + } + if s.SipMediaApplicationId != nil && len(*s.SipMediaApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("SipMediaApplicationId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetFromPhoneNumber sets the FromPhoneNumber field's value. +func (s *CreateSipMediaApplicationCallInput) SetFromPhoneNumber(v string) *CreateSipMediaApplicationCallInput { + s.FromPhoneNumber = &v + return s +} + +// SetSipMediaApplicationId sets the SipMediaApplicationId field's value. +func (s *CreateSipMediaApplicationCallInput) SetSipMediaApplicationId(v string) *CreateSipMediaApplicationCallInput { + s.SipMediaApplicationId = &v + return s +} + +// SetToPhoneNumber sets the ToPhoneNumber field's value. +func (s *CreateSipMediaApplicationCallInput) SetToPhoneNumber(v string) *CreateSipMediaApplicationCallInput { + s.ToPhoneNumber = &v + return s +} + +type CreateSipMediaApplicationCallOutput struct { + _ struct{} `type:"structure"` + + // The actual call. + SipMediaApplicationCall *SipMediaApplicationCall `type:"structure"` +} + +// String returns the string representation +func (s CreateSipMediaApplicationCallOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateSipMediaApplicationCallOutput) GoString() string { + return s.String() +} + +// SetSipMediaApplicationCall sets the SipMediaApplicationCall field's value. +func (s *CreateSipMediaApplicationCallOutput) SetSipMediaApplicationCall(v *SipMediaApplicationCall) *CreateSipMediaApplicationCallOutput { + s.SipMediaApplicationCall = v + return s +} + +type CreateSipMediaApplicationInput struct { + _ struct{} `type:"structure"` + + // AWS Region assigned to the SIP media application. + // + // AwsRegion is a required field + AwsRegion *string `type:"string" required:"true"` + + // List of endpoints (Lambda Amazon Resource Names) specified for the SIP media + // application. Currently, only one endpoint is supported. + // + // Endpoints is a required field + Endpoints []*SipMediaApplicationEndpoint `min:"1" type:"list" required:"true"` + + // The SIP media application name. + Name *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s CreateSipMediaApplicationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateSipMediaApplicationInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateSipMediaApplicationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateSipMediaApplicationInput"} + if s.AwsRegion == nil { + invalidParams.Add(request.NewErrParamRequired("AwsRegion")) + } + if s.Endpoints == nil { + invalidParams.Add(request.NewErrParamRequired("Endpoints")) + } + if s.Endpoints != nil && len(s.Endpoints) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Endpoints", 1)) + } + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAwsRegion sets the AwsRegion field's value. +func (s *CreateSipMediaApplicationInput) SetAwsRegion(v string) *CreateSipMediaApplicationInput { + s.AwsRegion = &v + return s +} + +// SetEndpoints sets the Endpoints field's value. +func (s *CreateSipMediaApplicationInput) SetEndpoints(v []*SipMediaApplicationEndpoint) *CreateSipMediaApplicationInput { + s.Endpoints = v + return s +} + +// SetName sets the Name field's value. +func (s *CreateSipMediaApplicationInput) SetName(v string) *CreateSipMediaApplicationInput { + s.Name = &v + return s +} + +type CreateSipMediaApplicationOutput struct { + _ struct{} `type:"structure"` + + // The Sip media application details. + SipMediaApplication *SipMediaApplication `type:"structure"` +} + +// String returns the string representation +func (s CreateSipMediaApplicationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateSipMediaApplicationOutput) GoString() string { + return s.String() +} + +// SetSipMediaApplication sets the SipMediaApplication field's value. +func (s *CreateSipMediaApplicationOutput) SetSipMediaApplication(v *SipMediaApplication) *CreateSipMediaApplicationOutput { + s.SipMediaApplication = v + return s +} + +type CreateSipRuleInput struct { + _ struct{} `type:"structure"` + + // Enables or disables a rule. You must disable rules before you can delete + // them. + Disabled *bool `type:"boolean"` + + // The name of the SIP rule. + // + // Name is a required field + Name *string `min:"1" type:"string" required:"true"` + + // List of SIP media applications with priority and AWS Region. Only one SIP + // application per AWS Region can be used. + // + // TargetApplications is a required field + TargetApplications []*SipRuleTargetApplication `min:"1" type:"list" required:"true"` + + // The type of trigger whose value is assigned to the SIP rule in TriggerValue. + // Allowed trigger values are RequestUriHostname and ToPhoneNumber. + // + // TriggerType is a required field + TriggerType *string `type:"string" required:"true" enum:"SipRuleTriggerType"` + + // If TriggerType is RequestUriHostname then the value can be the outbound host + // name of an Amazon Chime Voice Connector. If TriggerType is ToPhoneNumber + // then the value can be a customer-owned phone number in E164 format. SipRule + // is triggered if the SIP application requests a host name, or a If TriggerType + // is RequestUriHostname, then the value can be the outbound hostname of an + // Amazon Chime Voice Connector. If TriggerType is ToPhoneNumber, then the value + // can be a customer-owned phone number in E164 format. SipRule is triggered + // if the SIP application requests a host name, or a ToPhoneNumber value matches + // the incoming SIP request. + // + // TriggerValue is a required field + TriggerValue *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s CreateSipRuleInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateSipRuleInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateSipRuleInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateSipRuleInput"} + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + } + if s.TargetApplications == nil { + invalidParams.Add(request.NewErrParamRequired("TargetApplications")) + } + if s.TargetApplications != nil && len(s.TargetApplications) < 1 { + invalidParams.Add(request.NewErrParamMinLen("TargetApplications", 1)) + } + if s.TriggerType == nil { + invalidParams.Add(request.NewErrParamRequired("TriggerType")) + } + if s.TriggerValue == nil { + invalidParams.Add(request.NewErrParamRequired("TriggerValue")) + } + if s.TargetApplications != nil { + for i, v := range s.TargetApplications { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "TargetApplications", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDisabled sets the Disabled field's value. +func (s *CreateSipRuleInput) SetDisabled(v bool) *CreateSipRuleInput { + s.Disabled = &v + return s +} + +// SetName sets the Name field's value. +func (s *CreateSipRuleInput) SetName(v string) *CreateSipRuleInput { + s.Name = &v + return s +} + +// SetTargetApplications sets the TargetApplications field's value. +func (s *CreateSipRuleInput) SetTargetApplications(v []*SipRuleTargetApplication) *CreateSipRuleInput { + s.TargetApplications = v + return s +} + +// SetTriggerType sets the TriggerType field's value. +func (s *CreateSipRuleInput) SetTriggerType(v string) *CreateSipRuleInput { + s.TriggerType = &v + return s +} + +// SetTriggerValue sets the TriggerValue field's value. +func (s *CreateSipRuleInput) SetTriggerValue(v string) *CreateSipRuleInput { + s.TriggerValue = &v + return s +} + +type CreateSipRuleOutput struct { + _ struct{} `type:"structure"` + + // Returns the SIP rule information, including the rule ID, triggers, and target + // applications. + SipRule *SipRule `type:"structure"` +} + +// String returns the string representation +func (s CreateSipRuleOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateSipRuleOutput) GoString() string { + return s.String() +} + +// SetSipRule sets the SipRule field's value. +func (s *CreateSipRuleOutput) SetSipRule(v *SipRule) *CreateSipRuleOutput { + s.SipRule = v + return s +} + +type CreateUserInput struct { + _ struct{} `type:"structure"` + + // The Amazon Chime account ID. + // + // AccountId is a required field + AccountId *string `location:"uri" locationName:"accountId" type:"string" required:"true"` + + // The user's email address. + Email *string `type:"string" sensitive:"true"` + + // The user type. + UserType *string `type:"string" enum:"UserType"` + + // The user name. + Username *string `type:"string"` +} + +// 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.AccountId == nil { + invalidParams.Add(request.NewErrParamRequired("AccountId")) + } + if s.AccountId != nil && len(*s.AccountId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAccountId sets the AccountId field's value. +func (s *CreateUserInput) SetAccountId(v string) *CreateUserInput { + s.AccountId = &v + return s +} + +// SetEmail sets the Email field's value. +func (s *CreateUserInput) SetEmail(v string) *CreateUserInput { + s.Email = &v + return s +} + +// SetUserType sets the UserType field's value. +func (s *CreateUserInput) SetUserType(v string) *CreateUserInput { + s.UserType = &v + return s +} + +// SetUsername sets the Username field's value. +func (s *CreateUserInput) SetUsername(v string) *CreateUserInput { + s.Username = &v + return s +} + +type CreateUserOutput struct { + _ struct{} `type:"structure"` + + // The user on the Amazon Chime account. + User *User `type:"structure"` +} + +// String returns the string representation +func (s CreateUserOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateUserOutput) GoString() string { + return s.String() +} + +// SetUser sets the User field's value. +func (s *CreateUserOutput) SetUser(v *User) *CreateUserOutput { + s.User = v + return s +} + +type CreateVoiceConnectorGroupInput struct { + _ struct{} `type:"structure"` + + // The name of the Amazon Chime Voice Connector group. + // + // Name is a required field + Name *string `min:"1" type:"string" required:"true"` + + // The Amazon Chime Voice Connectors to route inbound calls to. + VoiceConnectorItems []*VoiceConnectorItem `type:"list"` +} + +// String returns the string representation +func (s CreateVoiceConnectorGroupInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateVoiceConnectorGroupInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateVoiceConnectorGroupInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateVoiceConnectorGroupInput"} + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + } + if s.VoiceConnectorItems != nil { + for i, v := range s.VoiceConnectorItems { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "VoiceConnectorItems", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetName sets the Name field's value. +func (s *CreateVoiceConnectorGroupInput) SetName(v string) *CreateVoiceConnectorGroupInput { + s.Name = &v + return s +} + +// SetVoiceConnectorItems sets the VoiceConnectorItems field's value. +func (s *CreateVoiceConnectorGroupInput) SetVoiceConnectorItems(v []*VoiceConnectorItem) *CreateVoiceConnectorGroupInput { + s.VoiceConnectorItems = v + return s +} + +type CreateVoiceConnectorGroupOutput struct { + _ struct{} `type:"structure"` + + // The Amazon Chime Voice Connector group details. + VoiceConnectorGroup *VoiceConnectorGroup `type:"structure"` +} + +// String returns the string representation +func (s CreateVoiceConnectorGroupOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateVoiceConnectorGroupOutput) GoString() string { + return s.String() +} + +// SetVoiceConnectorGroup sets the VoiceConnectorGroup field's value. +func (s *CreateVoiceConnectorGroupOutput) SetVoiceConnectorGroup(v *VoiceConnectorGroup) *CreateVoiceConnectorGroupOutput { + s.VoiceConnectorGroup = v + return s +} + +type CreateVoiceConnectorInput struct { + _ struct{} `type:"structure"` + + // The AWS Region in which the Amazon Chime Voice Connector is created. Default + // value: us-east-1. + AwsRegion *string `type:"string" enum:"VoiceConnectorAwsRegion"` + + // The name of the Amazon Chime Voice Connector. + // + // Name is a required field + Name *string `min:"1" type:"string" required:"true"` + + // When enabled, requires encryption for the Amazon Chime Voice Connector. + // + // RequireEncryption is a required field + RequireEncryption *bool `type:"boolean" required:"true"` +} + +// String returns the string representation +func (s CreateVoiceConnectorInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateVoiceConnectorInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateVoiceConnectorInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateVoiceConnectorInput"} + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + } + if s.RequireEncryption == nil { + invalidParams.Add(request.NewErrParamRequired("RequireEncryption")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAwsRegion sets the AwsRegion field's value. +func (s *CreateVoiceConnectorInput) SetAwsRegion(v string) *CreateVoiceConnectorInput { + s.AwsRegion = &v + return s +} + +// SetName sets the Name field's value. +func (s *CreateVoiceConnectorInput) SetName(v string) *CreateVoiceConnectorInput { + s.Name = &v + return s +} + +// SetRequireEncryption sets the RequireEncryption field's value. +func (s *CreateVoiceConnectorInput) SetRequireEncryption(v bool) *CreateVoiceConnectorInput { + s.RequireEncryption = &v + return s +} + +type CreateVoiceConnectorOutput struct { + _ struct{} `type:"structure"` + + // The Amazon Chime Voice Connector details. + VoiceConnector *VoiceConnector `type:"structure"` +} + +// String returns the string representation +func (s CreateVoiceConnectorOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateVoiceConnectorOutput) GoString() string { + return s.String() +} + +// SetVoiceConnector sets the VoiceConnector field's value. +func (s *CreateVoiceConnectorOutput) SetVoiceConnector(v *VoiceConnector) *CreateVoiceConnectorOutput { + s.VoiceConnector = v + return s +} + +// The SIP credentials used to authenticate requests to your Amazon Chime Voice +// Connector. +type Credential struct { + _ struct{} `type:"structure"` + + // The RFC2617 compliant password associated with the SIP credentials, in US-ASCII + // format. + Password *string `type:"string" sensitive:"true"` + + // The RFC2617 compliant user name associated with the SIP credentials, in US-ASCII + // format. + Username *string `type:"string" sensitive:"true"` +} + +// String returns the string representation +func (s Credential) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Credential) GoString() string { + return s.String() +} + +// SetPassword sets the Password field's value. +func (s *Credential) SetPassword(v string) *Credential { + s.Password = &v + return s +} + +// SetUsername sets the Username field's value. +func (s *Credential) SetUsername(v string) *Credential { + s.Username = &v + return s +} + +// The Dialed Number Identification Service (DNIS) emergency calling configuration +// details associated with an Amazon Chime Voice Connector's emergency calling +// configuration. +type DNISEmergencyCallingConfiguration struct { + _ struct{} `type:"structure"` + + // The country from which emergency calls are allowed, in ISO 3166-1 alpha-2 + // format. + // + // CallingCountry is a required field + CallingCountry *string `type:"string" required:"true"` + + // The DNIS phone number to route emergency calls to, in E.164 format. + // + // EmergencyPhoneNumber is a required field + EmergencyPhoneNumber *string `type:"string" required:"true" sensitive:"true"` + + // The DNIS phone number to route test emergency calls to, in E.164 format. + TestPhoneNumber *string `type:"string" sensitive:"true"` +} + +// String returns the string representation +func (s DNISEmergencyCallingConfiguration) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DNISEmergencyCallingConfiguration) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DNISEmergencyCallingConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DNISEmergencyCallingConfiguration"} + if s.CallingCountry == nil { + invalidParams.Add(request.NewErrParamRequired("CallingCountry")) + } + if s.EmergencyPhoneNumber == nil { + invalidParams.Add(request.NewErrParamRequired("EmergencyPhoneNumber")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetCallingCountry sets the CallingCountry field's value. +func (s *DNISEmergencyCallingConfiguration) SetCallingCountry(v string) *DNISEmergencyCallingConfiguration { + s.CallingCountry = &v + return s +} + +// SetEmergencyPhoneNumber sets the EmergencyPhoneNumber field's value. +func (s *DNISEmergencyCallingConfiguration) SetEmergencyPhoneNumber(v string) *DNISEmergencyCallingConfiguration { + s.EmergencyPhoneNumber = &v + return s +} + +// SetTestPhoneNumber sets the TestPhoneNumber field's value. +func (s *DNISEmergencyCallingConfiguration) SetTestPhoneNumber(v string) *DNISEmergencyCallingConfiguration { + s.TestPhoneNumber = &v + return s +} + +type DeleteAccountInput struct { + _ struct{} `type:"structure"` + + // The Amazon Chime account ID. + // + // AccountId is a required field + AccountId *string `location:"uri" locationName:"accountId" type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteAccountInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteAccountInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteAccountInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteAccountInput"} + if s.AccountId == nil { + invalidParams.Add(request.NewErrParamRequired("AccountId")) + } + if s.AccountId != nil && len(*s.AccountId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAccountId sets the AccountId field's value. +func (s *DeleteAccountInput) SetAccountId(v string) *DeleteAccountInput { + s.AccountId = &v + return s +} + +type DeleteAccountOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DeleteAccountOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteAccountOutput) GoString() string { + return s.String() +} + +type DeleteAppInstanceAdminInput struct { + _ struct{} `type:"structure"` + + // The ARN of the app instance's administrator. + // + // AppInstanceAdminArn is a required field + AppInstanceAdminArn *string `location:"uri" locationName:"appInstanceAdminArn" min:"5" type:"string" required:"true"` + + // The ARN of the app instance. + // + // AppInstanceArn is a required field + AppInstanceArn *string `location:"uri" locationName:"appInstanceArn" min:"5" type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteAppInstanceAdminInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteAppInstanceAdminInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteAppInstanceAdminInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteAppInstanceAdminInput"} + if s.AppInstanceAdminArn == nil { + invalidParams.Add(request.NewErrParamRequired("AppInstanceAdminArn")) + } + if s.AppInstanceAdminArn != nil && len(*s.AppInstanceAdminArn) < 5 { + invalidParams.Add(request.NewErrParamMinLen("AppInstanceAdminArn", 5)) + } + if s.AppInstanceArn == nil { + invalidParams.Add(request.NewErrParamRequired("AppInstanceArn")) + } + if s.AppInstanceArn != nil && len(*s.AppInstanceArn) < 5 { + invalidParams.Add(request.NewErrParamMinLen("AppInstanceArn", 5)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAppInstanceAdminArn sets the AppInstanceAdminArn field's value. +func (s *DeleteAppInstanceAdminInput) SetAppInstanceAdminArn(v string) *DeleteAppInstanceAdminInput { + s.AppInstanceAdminArn = &v + return s +} + +// SetAppInstanceArn sets the AppInstanceArn field's value. +func (s *DeleteAppInstanceAdminInput) SetAppInstanceArn(v string) *DeleteAppInstanceAdminInput { + s.AppInstanceArn = &v + return s +} + +type DeleteAppInstanceAdminOutput struct { + _ struct{} `type:"structure"` +} // String returns the string representation -func (s AccessDeniedException) String() string { +func (s DeleteAppInstanceAdminOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s AccessDeniedException) GoString() string { +func (s DeleteAppInstanceAdminOutput) GoString() string { return s.String() } -func newErrorAccessDeniedException(v protocol.ResponseMetadata) error { - return &AccessDeniedException{ - RespMetadata: v, - } +type DeleteAppInstanceInput struct { + _ struct{} `type:"structure"` + + // The ARN of the app instance. + // + // AppInstanceArn is a required field + AppInstanceArn *string `location:"uri" locationName:"appInstanceArn" min:"5" type:"string" required:"true"` } -// Code returns the exception type name. -func (s *AccessDeniedException) Code() string { - return "AccessDeniedException" +// String returns the string representation +func (s DeleteAppInstanceInput) String() string { + return awsutil.Prettify(s) } -// Message returns the exception's message. -func (s *AccessDeniedException) Message() string { - if s.Message_ != nil { - return *s.Message_ - } - return "" +// GoString returns the string representation +func (s DeleteAppInstanceInput) GoString() string { + return s.String() } -// OrigErr always returns nil, satisfies awserr.Error interface. -func (s *AccessDeniedException) OrigErr() error { +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteAppInstanceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteAppInstanceInput"} + if s.AppInstanceArn == nil { + invalidParams.Add(request.NewErrParamRequired("AppInstanceArn")) + } + if s.AppInstanceArn != nil && len(*s.AppInstanceArn) < 5 { + invalidParams.Add(request.NewErrParamMinLen("AppInstanceArn", 5)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } return nil } -func (s *AccessDeniedException) Error() string { - return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +// SetAppInstanceArn sets the AppInstanceArn field's value. +func (s *DeleteAppInstanceInput) SetAppInstanceArn(v string) *DeleteAppInstanceInput { + s.AppInstanceArn = &v + return s } -// Status code returns the HTTP status code for the request's response error. -func (s *AccessDeniedException) StatusCode() int { - return s.RespMetadata.StatusCode +type DeleteAppInstanceOutput struct { + _ struct{} `type:"structure"` } -// RequestID returns the service's response RequestID for request. -func (s *AccessDeniedException) RequestID() string { - return s.RespMetadata.RequestID +// String returns the string representation +func (s DeleteAppInstanceOutput) String() string { + return awsutil.Prettify(s) } -// The Amazon Chime account details. An AWS account can have multiple Amazon -// Chime accounts. -type Account struct { +// GoString returns the string representation +func (s DeleteAppInstanceOutput) GoString() string { + return s.String() +} + +type DeleteAppInstanceStreamingConfigurationsInput struct { _ struct{} `type:"structure"` - // The Amazon Chime account ID. + // The ARN of the streaming configurations being deleted. // - // AccountId is a required field - AccountId *string `type:"string" required:"true"` + // AppInstanceArn is a required field + AppInstanceArn *string `location:"uri" locationName:"appInstanceArn" min:"5" type:"string" required:"true"` +} - // The Amazon Chime account type. For more information about different account - // types, see Managing Your Amazon Chime Accounts (https://docs.aws.amazon.com/chime/latest/ag/manage-chime-account.html) - // in the Amazon Chime Administration Guide. - AccountType *string `type:"string" enum:"AccountType"` +// String returns the string representation +func (s DeleteAppInstanceStreamingConfigurationsInput) String() string { + return awsutil.Prettify(s) +} - // The AWS account ID. - // - // AwsAccountId is a required field - AwsAccountId *string `type:"string" required:"true"` +// GoString returns the string representation +func (s DeleteAppInstanceStreamingConfigurationsInput) GoString() string { + return s.String() +} - // The Amazon Chime account creation timestamp, in ISO 8601 format. - CreatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteAppInstanceStreamingConfigurationsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteAppInstanceStreamingConfigurationsInput"} + if s.AppInstanceArn == nil { + invalidParams.Add(request.NewErrParamRequired("AppInstanceArn")) + } + if s.AppInstanceArn != nil && len(*s.AppInstanceArn) < 5 { + invalidParams.Add(request.NewErrParamMinLen("AppInstanceArn", 5)) + } - // The default license for the Amazon Chime account. - DefaultLicense *string `type:"string" enum:"License"` + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} - // The Amazon Chime account name. - // - // Name is a required field - Name *string `type:"string" required:"true"` +// SetAppInstanceArn sets the AppInstanceArn field's value. +func (s *DeleteAppInstanceStreamingConfigurationsInput) SetAppInstanceArn(v string) *DeleteAppInstanceStreamingConfigurationsInput { + s.AppInstanceArn = &v + return s +} - // The sign-in delegate groups associated with the account. - SigninDelegateGroups []*SigninDelegateGroup `type:"list"` +type DeleteAppInstanceStreamingConfigurationsOutput struct { + _ struct{} `type:"structure"` +} - // Supported licenses for the Amazon Chime account. - SupportedLicenses []*string `type:"list"` +// String returns the string representation +func (s DeleteAppInstanceStreamingConfigurationsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteAppInstanceStreamingConfigurationsOutput) GoString() string { + return s.String() +} + +type DeleteAppInstanceUserInput struct { + _ struct{} `type:"structure"` + + // The ARN of the user request being deleted. + // + // AppInstanceUserArn is a required field + AppInstanceUserArn *string `location:"uri" locationName:"appInstanceUserArn" min:"5" type:"string" required:"true"` } // String returns the string representation -func (s Account) String() string { +func (s DeleteAppInstanceUserInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s Account) GoString() string { +func (s DeleteAppInstanceUserInput) GoString() string { return s.String() } -// SetAccountId sets the AccountId field's value. -func (s *Account) SetAccountId(v string) *Account { - s.AccountId = &v - return s +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteAppInstanceUserInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteAppInstanceUserInput"} + if s.AppInstanceUserArn == nil { + invalidParams.Add(request.NewErrParamRequired("AppInstanceUserArn")) + } + if s.AppInstanceUserArn != nil && len(*s.AppInstanceUserArn) < 5 { + invalidParams.Add(request.NewErrParamMinLen("AppInstanceUserArn", 5)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// SetAccountType sets the AccountType field's value. -func (s *Account) SetAccountType(v string) *Account { - s.AccountType = &v +// SetAppInstanceUserArn sets the AppInstanceUserArn field's value. +func (s *DeleteAppInstanceUserInput) SetAppInstanceUserArn(v string) *DeleteAppInstanceUserInput { + s.AppInstanceUserArn = &v return s } -// SetAwsAccountId sets the AwsAccountId field's value. -func (s *Account) SetAwsAccountId(v string) *Account { - s.AwsAccountId = &v - return s +type DeleteAppInstanceUserOutput struct { + _ struct{} `type:"structure"` } -// SetCreatedTimestamp sets the CreatedTimestamp field's value. -func (s *Account) SetCreatedTimestamp(v time.Time) *Account { - s.CreatedTimestamp = &v - return s +// String returns the string representation +func (s DeleteAppInstanceUserOutput) String() string { + return awsutil.Prettify(s) } -// SetDefaultLicense sets the DefaultLicense field's value. -func (s *Account) SetDefaultLicense(v string) *Account { - s.DefaultLicense = &v - return s +// GoString returns the string representation +func (s DeleteAppInstanceUserOutput) GoString() string { + return s.String() } -// SetName sets the Name field's value. -func (s *Account) SetName(v string) *Account { - s.Name = &v - return s +type DeleteAttendeeInput struct { + _ struct{} `type:"structure"` + + // The Amazon Chime SDK attendee ID. + // + // AttendeeId is a required field + AttendeeId *string `location:"uri" locationName:"attendeeId" type:"string" required:"true"` + + // The Amazon Chime SDK meeting ID. + // + // MeetingId is a required field + MeetingId *string `location:"uri" locationName:"meetingId" type:"string" required:"true"` } -// SetSigninDelegateGroups sets the SigninDelegateGroups field's value. -func (s *Account) SetSigninDelegateGroups(v []*SigninDelegateGroup) *Account { - s.SigninDelegateGroups = v +// String returns the string representation +func (s DeleteAttendeeInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteAttendeeInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteAttendeeInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteAttendeeInput"} + if s.AttendeeId == nil { + invalidParams.Add(request.NewErrParamRequired("AttendeeId")) + } + if s.AttendeeId != nil && len(*s.AttendeeId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AttendeeId", 1)) + } + if s.MeetingId == nil { + invalidParams.Add(request.NewErrParamRequired("MeetingId")) + } + if s.MeetingId != nil && len(*s.MeetingId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("MeetingId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAttendeeId sets the AttendeeId field's value. +func (s *DeleteAttendeeInput) SetAttendeeId(v string) *DeleteAttendeeInput { + s.AttendeeId = &v return s } -// SetSupportedLicenses sets the SupportedLicenses field's value. -func (s *Account) SetSupportedLicenses(v []*string) *Account { - s.SupportedLicenses = v +// SetMeetingId sets the MeetingId field's value. +func (s *DeleteAttendeeInput) SetMeetingId(v string) *DeleteAttendeeInput { + s.MeetingId = &v return s } -// Settings related to the Amazon Chime account. This includes settings that -// start or stop remote control of shared screens, or start or stop the dial-out -// option in the Amazon Chime web application. For more information about these -// settings, see Use the Policies Page (https://docs.aws.amazon.com/chime/latest/ag/policies.html) -// in the Amazon Chime Administration Guide. -type AccountSettings struct { +type DeleteAttendeeOutput struct { _ struct{} `type:"structure"` +} - // Setting that stops or starts remote control of shared screens during meetings. - DisableRemoteControl *bool `type:"boolean"` +// String returns the string representation +func (s DeleteAttendeeOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteAttendeeOutput) GoString() string { + return s.String() +} + +type DeleteChannelBanInput struct { + _ struct{} `type:"structure"` + + // The ARN of the channel from which the app instance user was banned. + // + // ChannelArn is a required field + ChannelArn *string `location:"uri" locationName:"channelArn" min:"5" type:"string" required:"true"` + + // The ARN of the app instance user that you want to reinstate. + // + // MemberArn is a required field + MemberArn *string `location:"uri" locationName:"memberArn" min:"5" type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteChannelBanInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteChannelBanInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteChannelBanInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteChannelBanInput"} + if s.ChannelArn == nil { + invalidParams.Add(request.NewErrParamRequired("ChannelArn")) + } + if s.ChannelArn != nil && len(*s.ChannelArn) < 5 { + invalidParams.Add(request.NewErrParamMinLen("ChannelArn", 5)) + } + if s.MemberArn == nil { + invalidParams.Add(request.NewErrParamRequired("MemberArn")) + } + if s.MemberArn != nil && len(*s.MemberArn) < 5 { + invalidParams.Add(request.NewErrParamMinLen("MemberArn", 5)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetChannelArn sets the ChannelArn field's value. +func (s *DeleteChannelBanInput) SetChannelArn(v string) *DeleteChannelBanInput { + s.ChannelArn = &v + return s +} + +// SetMemberArn sets the MemberArn field's value. +func (s *DeleteChannelBanInput) SetMemberArn(v string) *DeleteChannelBanInput { + s.MemberArn = &v + return s +} - // Setting that allows meeting participants to choose the Call me at a phone - // number option. For more information, see Join a Meeting without the Amazon - // Chime App (https://docs.aws.amazon.com/chime/latest/ug/chime-join-meeting.html). - EnableDialOut *bool `type:"boolean"` +type DeleteChannelBanOutput struct { + _ struct{} `type:"structure"` } // String returns the string representation -func (s AccountSettings) String() string { +func (s DeleteChannelBanOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s AccountSettings) GoString() string { +func (s DeleteChannelBanOutput) GoString() string { return s.String() } -// SetDisableRemoteControl sets the DisableRemoteControl field's value. -func (s *AccountSettings) SetDisableRemoteControl(v bool) *AccountSettings { - s.DisableRemoteControl = &v - return s -} - -// SetEnableDialOut sets the EnableDialOut field's value. -func (s *AccountSettings) SetEnableDialOut(v bool) *AccountSettings { - s.EnableDialOut = &v - return s -} - -// The Alexa for Business metadata associated with an Amazon Chime user, used -// to integrate Alexa for Business with a device. -type AlexaForBusinessMetadata struct { +type DeleteChannelInput struct { _ struct{} `type:"structure"` - // The ARN of the room resource. - AlexaForBusinessRoomArn *string `type:"string" sensitive:"true"` - - // Starts or stops Alexa for Business. - IsAlexaForBusinessEnabled *bool `type:"boolean"` + // The ARN of the channel being deleted. + // + // ChannelArn is a required field + ChannelArn *string `location:"uri" locationName:"channelArn" min:"5" type:"string" required:"true"` } // String returns the string representation -func (s AlexaForBusinessMetadata) String() string { +func (s DeleteChannelInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s AlexaForBusinessMetadata) GoString() string { +func (s DeleteChannelInput) GoString() string { return s.String() } -// SetAlexaForBusinessRoomArn sets the AlexaForBusinessRoomArn field's value. -func (s *AlexaForBusinessMetadata) SetAlexaForBusinessRoomArn(v string) *AlexaForBusinessMetadata { - s.AlexaForBusinessRoomArn = &v - return s +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteChannelInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteChannelInput"} + if s.ChannelArn == nil { + invalidParams.Add(request.NewErrParamRequired("ChannelArn")) + } + if s.ChannelArn != nil && len(*s.ChannelArn) < 5 { + invalidParams.Add(request.NewErrParamMinLen("ChannelArn", 5)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// SetIsAlexaForBusinessEnabled sets the IsAlexaForBusinessEnabled field's value. -func (s *AlexaForBusinessMetadata) SetIsAlexaForBusinessEnabled(v bool) *AlexaForBusinessMetadata { - s.IsAlexaForBusinessEnabled = &v +// SetChannelArn sets the ChannelArn field's value. +func (s *DeleteChannelInput) SetChannelArn(v string) *DeleteChannelInput { + s.ChannelArn = &v return s } -type AssociatePhoneNumberWithUserInput struct { +type DeleteChannelMembershipInput struct { _ struct{} `type:"structure"` - // The Amazon Chime account ID. - // - // AccountId is a required field - AccountId *string `location:"uri" locationName:"accountId" type:"string" required:"true"` - - // The phone number, in E.164 format. + // The ARN of the channel from which you want to remove the user. // - // E164PhoneNumber is a required field - E164PhoneNumber *string `type:"string" required:"true" sensitive:"true"` + // ChannelArn is a required field + ChannelArn *string `location:"uri" locationName:"channelArn" min:"5" type:"string" required:"true"` - // The user ID. + // The ARN of the member that you're removing from the channel. // - // UserId is a required field - UserId *string `location:"uri" locationName:"userId" type:"string" required:"true"` + // MemberArn is a required field + MemberArn *string `location:"uri" locationName:"memberArn" min:"5" type:"string" required:"true"` } // String returns the string representation -func (s AssociatePhoneNumberWithUserInput) String() string { +func (s DeleteChannelMembershipInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s AssociatePhoneNumberWithUserInput) GoString() string { +func (s DeleteChannelMembershipInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *AssociatePhoneNumberWithUserInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AssociatePhoneNumberWithUserInput"} - if s.AccountId == nil { - invalidParams.Add(request.NewErrParamRequired("AccountId")) +func (s *DeleteChannelMembershipInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteChannelMembershipInput"} + if s.ChannelArn == nil { + invalidParams.Add(request.NewErrParamRequired("ChannelArn")) } - if s.AccountId != nil && len(*s.AccountId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) - } - if s.E164PhoneNumber == nil { - invalidParams.Add(request.NewErrParamRequired("E164PhoneNumber")) + if s.ChannelArn != nil && len(*s.ChannelArn) < 5 { + invalidParams.Add(request.NewErrParamMinLen("ChannelArn", 5)) } - if s.UserId == nil { - invalidParams.Add(request.NewErrParamRequired("UserId")) + if s.MemberArn == nil { + invalidParams.Add(request.NewErrParamRequired("MemberArn")) } - if s.UserId != nil && len(*s.UserId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("UserId", 1)) + if s.MemberArn != nil && len(*s.MemberArn) < 5 { + invalidParams.Add(request.NewErrParamMinLen("MemberArn", 5)) } if invalidParams.Len() > 0 { @@ -14368,79 +25176,70 @@ func (s *AssociatePhoneNumberWithUserInput) Validate() error { return nil } -// SetAccountId sets the AccountId field's value. -func (s *AssociatePhoneNumberWithUserInput) SetAccountId(v string) *AssociatePhoneNumberWithUserInput { - s.AccountId = &v - return s -} - -// SetE164PhoneNumber sets the E164PhoneNumber field's value. -func (s *AssociatePhoneNumberWithUserInput) SetE164PhoneNumber(v string) *AssociatePhoneNumberWithUserInput { - s.E164PhoneNumber = &v +// SetChannelArn sets the ChannelArn field's value. +func (s *DeleteChannelMembershipInput) SetChannelArn(v string) *DeleteChannelMembershipInput { + s.ChannelArn = &v return s } -// SetUserId sets the UserId field's value. -func (s *AssociatePhoneNumberWithUserInput) SetUserId(v string) *AssociatePhoneNumberWithUserInput { - s.UserId = &v +// SetMemberArn sets the MemberArn field's value. +func (s *DeleteChannelMembershipInput) SetMemberArn(v string) *DeleteChannelMembershipInput { + s.MemberArn = &v return s } -type AssociatePhoneNumberWithUserOutput struct { +type DeleteChannelMembershipOutput struct { _ struct{} `type:"structure"` } // String returns the string representation -func (s AssociatePhoneNumberWithUserOutput) String() string { +func (s DeleteChannelMembershipOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s AssociatePhoneNumberWithUserOutput) GoString() string { +func (s DeleteChannelMembershipOutput) GoString() string { return s.String() } -type AssociatePhoneNumbersWithVoiceConnectorGroupInput struct { +type DeleteChannelMessageInput struct { _ struct{} `type:"structure"` - // List of phone numbers, in E.164 format. + // The ARN of the channel. // - // E164PhoneNumbers is a required field - E164PhoneNumbers []*string `type:"list" required:"true"` - - // If true, associates the provided phone numbers with the provided Amazon Chime - // Voice Connector Group and removes any previously existing associations. If - // false, does not associate any phone numbers that have previously existing - // associations. - ForceAssociate *bool `type:"boolean"` + // ChannelArn is a required field + ChannelArn *string `location:"uri" locationName:"channelArn" min:"5" type:"string" required:"true"` - // The Amazon Chime Voice Connector group ID. + // The ID of the message being deleted. // - // VoiceConnectorGroupId is a required field - VoiceConnectorGroupId *string `location:"uri" locationName:"voiceConnectorGroupId" type:"string" required:"true"` + // MessageId is a required field + MessageId *string `location:"uri" locationName:"messageId" min:"1" type:"string" required:"true"` } // String returns the string representation -func (s AssociatePhoneNumbersWithVoiceConnectorGroupInput) String() string { +func (s DeleteChannelMessageInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s AssociatePhoneNumbersWithVoiceConnectorGroupInput) GoString() string { +func (s DeleteChannelMessageInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *AssociatePhoneNumbersWithVoiceConnectorGroupInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AssociatePhoneNumbersWithVoiceConnectorGroupInput"} - if s.E164PhoneNumbers == nil { - invalidParams.Add(request.NewErrParamRequired("E164PhoneNumbers")) +func (s *DeleteChannelMessageInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteChannelMessageInput"} + if s.ChannelArn == nil { + invalidParams.Add(request.NewErrParamRequired("ChannelArn")) } - if s.VoiceConnectorGroupId == nil { - invalidParams.Add(request.NewErrParamRequired("VoiceConnectorGroupId")) + if s.ChannelArn != nil && len(*s.ChannelArn) < 5 { + invalidParams.Add(request.NewErrParamMinLen("ChannelArn", 5)) } - if s.VoiceConnectorGroupId != nil && len(*s.VoiceConnectorGroupId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("VoiceConnectorGroupId", 1)) + if s.MessageId == nil { + invalidParams.Add(request.NewErrParamRequired("MessageId")) + } + if s.MessageId != nil && len(*s.MessageId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("MessageId", 1)) } if invalidParams.Len() > 0 { @@ -14449,89 +25248,70 @@ func (s *AssociatePhoneNumbersWithVoiceConnectorGroupInput) Validate() error { return nil } -// SetE164PhoneNumbers sets the E164PhoneNumbers field's value. -func (s *AssociatePhoneNumbersWithVoiceConnectorGroupInput) SetE164PhoneNumbers(v []*string) *AssociatePhoneNumbersWithVoiceConnectorGroupInput { - s.E164PhoneNumbers = v - return s -} - -// SetForceAssociate sets the ForceAssociate field's value. -func (s *AssociatePhoneNumbersWithVoiceConnectorGroupInput) SetForceAssociate(v bool) *AssociatePhoneNumbersWithVoiceConnectorGroupInput { - s.ForceAssociate = &v +// SetChannelArn sets the ChannelArn field's value. +func (s *DeleteChannelMessageInput) SetChannelArn(v string) *DeleteChannelMessageInput { + s.ChannelArn = &v return s } -// SetVoiceConnectorGroupId sets the VoiceConnectorGroupId field's value. -func (s *AssociatePhoneNumbersWithVoiceConnectorGroupInput) SetVoiceConnectorGroupId(v string) *AssociatePhoneNumbersWithVoiceConnectorGroupInput { - s.VoiceConnectorGroupId = &v +// SetMessageId sets the MessageId field's value. +func (s *DeleteChannelMessageInput) SetMessageId(v string) *DeleteChannelMessageInput { + s.MessageId = &v return s } -type AssociatePhoneNumbersWithVoiceConnectorGroupOutput struct { +type DeleteChannelMessageOutput struct { _ struct{} `type:"structure"` - - // If the action fails for one or more of the phone numbers in the request, - // a list of the phone numbers is returned, along with error codes and error - // messages. - PhoneNumberErrors []*PhoneNumberError `type:"list"` } // String returns the string representation -func (s AssociatePhoneNumbersWithVoiceConnectorGroupOutput) String() string { +func (s DeleteChannelMessageOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s AssociatePhoneNumbersWithVoiceConnectorGroupOutput) GoString() string { +func (s DeleteChannelMessageOutput) GoString() string { return s.String() } -// SetPhoneNumberErrors sets the PhoneNumberErrors field's value. -func (s *AssociatePhoneNumbersWithVoiceConnectorGroupOutput) SetPhoneNumberErrors(v []*PhoneNumberError) *AssociatePhoneNumbersWithVoiceConnectorGroupOutput { - s.PhoneNumberErrors = v - return s -} - -type AssociatePhoneNumbersWithVoiceConnectorInput struct { +type DeleteChannelModeratorInput struct { _ struct{} `type:"structure"` - // List of phone numbers, in E.164 format. + // The ARN of the channel. // - // E164PhoneNumbers is a required field - E164PhoneNumbers []*string `type:"list" required:"true"` - - // If true, associates the provided phone numbers with the provided Amazon Chime - // Voice Connector and removes any previously existing associations. If false, - // does not associate any phone numbers that have previously existing associations. - ForceAssociate *bool `type:"boolean"` + // ChannelArn is a required field + ChannelArn *string `location:"uri" locationName:"channelArn" min:"5" type:"string" required:"true"` - // The Amazon Chime Voice Connector ID. + // The ARN of the moderator being deleted. // - // VoiceConnectorId is a required field - VoiceConnectorId *string `location:"uri" locationName:"voiceConnectorId" type:"string" required:"true"` + // ChannelModeratorArn is a required field + ChannelModeratorArn *string `location:"uri" locationName:"channelModeratorArn" min:"5" type:"string" required:"true"` } // String returns the string representation -func (s AssociatePhoneNumbersWithVoiceConnectorInput) String() string { +func (s DeleteChannelModeratorInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s AssociatePhoneNumbersWithVoiceConnectorInput) GoString() string { +func (s DeleteChannelModeratorInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *AssociatePhoneNumbersWithVoiceConnectorInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AssociatePhoneNumbersWithVoiceConnectorInput"} - if s.E164PhoneNumbers == nil { - invalidParams.Add(request.NewErrParamRequired("E164PhoneNumbers")) +func (s *DeleteChannelModeratorInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteChannelModeratorInput"} + if s.ChannelArn == nil { + invalidParams.Add(request.NewErrParamRequired("ChannelArn")) } - if s.VoiceConnectorId == nil { - invalidParams.Add(request.NewErrParamRequired("VoiceConnectorId")) + if s.ChannelArn != nil && len(*s.ChannelArn) < 5 { + invalidParams.Add(request.NewErrParamMinLen("ChannelArn", 5)) } - if s.VoiceConnectorId != nil && len(*s.VoiceConnectorId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("VoiceConnectorId", 1)) + if s.ChannelModeratorArn == nil { + invalidParams.Add(request.NewErrParamRequired("ChannelModeratorArn")) + } + if s.ChannelModeratorArn != nil && len(*s.ChannelModeratorArn) < 5 { + invalidParams.Add(request.NewErrParamMinLen("ChannelModeratorArn", 5)) } if invalidParams.Len() > 0 { @@ -14540,50 +25320,47 @@ func (s *AssociatePhoneNumbersWithVoiceConnectorInput) Validate() error { return nil } -// SetE164PhoneNumbers sets the E164PhoneNumbers field's value. -func (s *AssociatePhoneNumbersWithVoiceConnectorInput) SetE164PhoneNumbers(v []*string) *AssociatePhoneNumbersWithVoiceConnectorInput { - s.E164PhoneNumbers = v - return s -} - -// SetForceAssociate sets the ForceAssociate field's value. -func (s *AssociatePhoneNumbersWithVoiceConnectorInput) SetForceAssociate(v bool) *AssociatePhoneNumbersWithVoiceConnectorInput { - s.ForceAssociate = &v +// SetChannelArn sets the ChannelArn field's value. +func (s *DeleteChannelModeratorInput) SetChannelArn(v string) *DeleteChannelModeratorInput { + s.ChannelArn = &v return s } -// SetVoiceConnectorId sets the VoiceConnectorId field's value. -func (s *AssociatePhoneNumbersWithVoiceConnectorInput) SetVoiceConnectorId(v string) *AssociatePhoneNumbersWithVoiceConnectorInput { - s.VoiceConnectorId = &v +// SetChannelModeratorArn sets the ChannelModeratorArn field's value. +func (s *DeleteChannelModeratorInput) SetChannelModeratorArn(v string) *DeleteChannelModeratorInput { + s.ChannelModeratorArn = &v return s } -type AssociatePhoneNumbersWithVoiceConnectorOutput struct { +type DeleteChannelModeratorOutput struct { _ struct{} `type:"structure"` - - // If the action fails for one or more of the phone numbers in the request, - // a list of the phone numbers is returned, along with error codes and error - // messages. - PhoneNumberErrors []*PhoneNumberError `type:"list"` } // String returns the string representation -func (s AssociatePhoneNumbersWithVoiceConnectorOutput) String() string { +func (s DeleteChannelModeratorOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s AssociatePhoneNumbersWithVoiceConnectorOutput) GoString() string { +func (s DeleteChannelModeratorOutput) GoString() string { return s.String() } -// SetPhoneNumberErrors sets the PhoneNumberErrors field's value. -func (s *AssociatePhoneNumbersWithVoiceConnectorOutput) SetPhoneNumberErrors(v []*PhoneNumberError) *AssociatePhoneNumbersWithVoiceConnectorOutput { - s.PhoneNumberErrors = v - return s +type DeleteChannelOutput struct { + _ struct{} `type:"structure"` } -type AssociateSigninDelegateGroupsWithAccountInput struct { +// String returns the string representation +func (s DeleteChannelOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteChannelOutput) GoString() string { + return s.String() +} + +type DeleteEventsConfigurationInput struct { _ struct{} `type:"structure"` // The Amazon Chime account ID. @@ -14591,33 +25368,36 @@ type AssociateSigninDelegateGroupsWithAccountInput struct { // AccountId is a required field AccountId *string `location:"uri" locationName:"accountId" type:"string" required:"true"` - // The sign-in delegate groups. + // The bot ID. // - // SigninDelegateGroups is a required field - SigninDelegateGroups []*SigninDelegateGroup `type:"list" required:"true"` + // BotId is a required field + BotId *string `location:"uri" locationName:"botId" type:"string" required:"true"` } // String returns the string representation -func (s AssociateSigninDelegateGroupsWithAccountInput) String() string { +func (s DeleteEventsConfigurationInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s AssociateSigninDelegateGroupsWithAccountInput) GoString() string { +func (s DeleteEventsConfigurationInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *AssociateSigninDelegateGroupsWithAccountInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AssociateSigninDelegateGroupsWithAccountInput"} +func (s *DeleteEventsConfigurationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteEventsConfigurationInput"} if s.AccountId == nil { invalidParams.Add(request.NewErrParamRequired("AccountId")) } if s.AccountId != nil && len(*s.AccountId) < 1 { invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) } - if s.SigninDelegateGroups == nil { - invalidParams.Add(request.NewErrParamRequired("SigninDelegateGroups")) + if s.BotId == nil { + invalidParams.Add(request.NewErrParamRequired("BotId")) + } + if s.BotId != nil && len(*s.BotId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("BotId", 1)) } if invalidParams.Len() > 0 { @@ -14627,185 +25407,179 @@ func (s *AssociateSigninDelegateGroupsWithAccountInput) Validate() error { } // SetAccountId sets the AccountId field's value. -func (s *AssociateSigninDelegateGroupsWithAccountInput) SetAccountId(v string) *AssociateSigninDelegateGroupsWithAccountInput { +func (s *DeleteEventsConfigurationInput) SetAccountId(v string) *DeleteEventsConfigurationInput { s.AccountId = &v return s } -// SetSigninDelegateGroups sets the SigninDelegateGroups field's value. -func (s *AssociateSigninDelegateGroupsWithAccountInput) SetSigninDelegateGroups(v []*SigninDelegateGroup) *AssociateSigninDelegateGroupsWithAccountInput { - s.SigninDelegateGroups = v +// SetBotId sets the BotId field's value. +func (s *DeleteEventsConfigurationInput) SetBotId(v string) *DeleteEventsConfigurationInput { + s.BotId = &v return s } -type AssociateSigninDelegateGroupsWithAccountOutput struct { +type DeleteEventsConfigurationOutput struct { _ struct{} `type:"structure"` } // String returns the string representation -func (s AssociateSigninDelegateGroupsWithAccountOutput) String() string { +func (s DeleteEventsConfigurationOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s AssociateSigninDelegateGroupsWithAccountOutput) GoString() string { +func (s DeleteEventsConfigurationOutput) GoString() string { return s.String() } -// An Amazon Chime SDK meeting attendee. Includes a unique AttendeeId and JoinToken. -// The JoinToken allows a client to authenticate and join as the specified attendee. -// The JoinToken expires when the meeting ends or when DeleteAttendee is called. -// After that, the attendee is unable to join the meeting. -// -// We recommend securely transferring each JoinToken from your server application -// to the client so that no other client has access to the token except for -// the one authorized to represent the attendee. -type Attendee struct { - _ struct{} `type:"structure"` - - // The Amazon Chime SDK attendee ID. - AttendeeId *string `type:"string"` - - // The Amazon Chime SDK external user ID. An idempotency token. Links the attendee - // to an identity managed by a builder application. If you create an attendee - // with the same external user id, the service returns the existing record. - ExternalUserId *string `min:"2" type:"string" sensitive:"true"` +type DeleteMeetingInput struct { + _ struct{} `type:"structure"` - // The join token used by the Amazon Chime SDK attendee. - JoinToken *string `min:"2" type:"string" sensitive:"true"` + // The Amazon Chime SDK meeting ID. + // + // MeetingId is a required field + MeetingId *string `location:"uri" locationName:"meetingId" type:"string" required:"true"` } // String returns the string representation -func (s Attendee) String() string { +func (s DeleteMeetingInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s Attendee) GoString() string { +func (s DeleteMeetingInput) GoString() string { return s.String() } -// SetAttendeeId sets the AttendeeId field's value. -func (s *Attendee) SetAttendeeId(v string) *Attendee { - s.AttendeeId = &v - return s +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteMeetingInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteMeetingInput"} + if s.MeetingId == nil { + invalidParams.Add(request.NewErrParamRequired("MeetingId")) + } + if s.MeetingId != nil && len(*s.MeetingId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("MeetingId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// SetExternalUserId sets the ExternalUserId field's value. -func (s *Attendee) SetExternalUserId(v string) *Attendee { - s.ExternalUserId = &v +// SetMeetingId sets the MeetingId field's value. +func (s *DeleteMeetingInput) SetMeetingId(v string) *DeleteMeetingInput { + s.MeetingId = &v return s } -// SetJoinToken sets the JoinToken field's value. -func (s *Attendee) SetJoinToken(v string) *Attendee { - s.JoinToken = &v - return s +type DeleteMeetingOutput struct { + _ struct{} `type:"structure"` } -// The input parameters don't match the service's restrictions. -type BadRequestException struct { - _ struct{} `type:"structure"` - RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` +// String returns the string representation +func (s DeleteMeetingOutput) String() string { + return awsutil.Prettify(s) +} - Code_ *string `locationName:"Code" type:"string" enum:"ErrorCode"` +// GoString returns the string representation +func (s DeleteMeetingOutput) GoString() string { + return s.String() +} - Message_ *string `locationName:"Message" type:"string"` +type DeletePhoneNumberInput struct { + _ struct{} `type:"structure"` + + // The phone number ID. + // + // PhoneNumberId is a required field + PhoneNumberId *string `location:"uri" locationName:"phoneNumberId" type:"string" required:"true"` } // String returns the string representation -func (s BadRequestException) String() string { +func (s DeletePhoneNumberInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s BadRequestException) GoString() string { +func (s DeletePhoneNumberInput) GoString() string { return s.String() } -func newErrorBadRequestException(v protocol.ResponseMetadata) error { - return &BadRequestException{ - RespMetadata: v, +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeletePhoneNumberInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeletePhoneNumberInput"} + if s.PhoneNumberId == nil { + invalidParams.Add(request.NewErrParamRequired("PhoneNumberId")) + } + if s.PhoneNumberId != nil && len(*s.PhoneNumberId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("PhoneNumberId", 1)) } -} - -// Code returns the exception type name. -func (s *BadRequestException) Code() string { - return "BadRequestException" -} -// Message returns the exception's message. -func (s *BadRequestException) Message() string { - if s.Message_ != nil { - return *s.Message_ + if invalidParams.Len() > 0 { + return invalidParams } - return "" + return nil } -// OrigErr always returns nil, satisfies awserr.Error interface. -func (s *BadRequestException) OrigErr() error { - return nil +// SetPhoneNumberId sets the PhoneNumberId field's value. +func (s *DeletePhoneNumberInput) SetPhoneNumberId(v string) *DeletePhoneNumberInput { + s.PhoneNumberId = &v + return s } -func (s *BadRequestException) Error() string { - return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +type DeletePhoneNumberOutput struct { + _ struct{} `type:"structure"` } -// Status code returns the HTTP status code for the request's response error. -func (s *BadRequestException) StatusCode() int { - return s.RespMetadata.StatusCode +// String returns the string representation +func (s DeletePhoneNumberOutput) String() string { + return awsutil.Prettify(s) } -// RequestID returns the service's response RequestID for request. -func (s *BadRequestException) RequestID() string { - return s.RespMetadata.RequestID +// GoString returns the string representation +func (s DeletePhoneNumberOutput) GoString() string { + return s.String() } -type BatchCreateAttendeeInput struct { +type DeleteProxySessionInput struct { _ struct{} `type:"structure"` - // The request containing the attendees to create. + // The proxy session ID. // - // Attendees is a required field - Attendees []*CreateAttendeeRequestItem `type:"list" required:"true"` + // ProxySessionId is a required field + ProxySessionId *string `location:"uri" locationName:"proxySessionId" min:"1" type:"string" required:"true"` - // The Amazon Chime SDK meeting ID. + // The Amazon Chime voice connector ID. // - // MeetingId is a required field - MeetingId *string `location:"uri" locationName:"meetingId" type:"string" required:"true"` + // VoiceConnectorId is a required field + VoiceConnectorId *string `location:"uri" locationName:"voiceConnectorId" min:"1" type:"string" required:"true"` } // String returns the string representation -func (s BatchCreateAttendeeInput) String() string { +func (s DeleteProxySessionInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s BatchCreateAttendeeInput) GoString() string { +func (s DeleteProxySessionInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *BatchCreateAttendeeInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "BatchCreateAttendeeInput"} - if s.Attendees == nil { - invalidParams.Add(request.NewErrParamRequired("Attendees")) +func (s *DeleteProxySessionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteProxySessionInput"} + if s.ProxySessionId == nil { + invalidParams.Add(request.NewErrParamRequired("ProxySessionId")) } - if s.MeetingId == nil { - invalidParams.Add(request.NewErrParamRequired("MeetingId")) + if s.ProxySessionId != nil && len(*s.ProxySessionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ProxySessionId", 1)) } - if s.MeetingId != nil && len(*s.MeetingId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("MeetingId", 1)) + if s.VoiceConnectorId == nil { + invalidParams.Add(request.NewErrParamRequired("VoiceConnectorId")) } - if s.Attendees != nil { - for i, v := range s.Attendees { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Attendees", i), err.(request.ErrInvalidParams)) - } - } + if s.VoiceConnectorId != nil && len(*s.VoiceConnectorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VoiceConnectorId", 1)) } if invalidParams.Len() > 0 { @@ -14814,52 +25588,33 @@ func (s *BatchCreateAttendeeInput) Validate() error { return nil } -// SetAttendees sets the Attendees field's value. -func (s *BatchCreateAttendeeInput) SetAttendees(v []*CreateAttendeeRequestItem) *BatchCreateAttendeeInput { - s.Attendees = v +// SetProxySessionId sets the ProxySessionId field's value. +func (s *DeleteProxySessionInput) SetProxySessionId(v string) *DeleteProxySessionInput { + s.ProxySessionId = &v return s } -// SetMeetingId sets the MeetingId field's value. -func (s *BatchCreateAttendeeInput) SetMeetingId(v string) *BatchCreateAttendeeInput { - s.MeetingId = &v +// SetVoiceConnectorId sets the VoiceConnectorId field's value. +func (s *DeleteProxySessionInput) SetVoiceConnectorId(v string) *DeleteProxySessionInput { + s.VoiceConnectorId = &v return s } -type BatchCreateAttendeeOutput struct { +type DeleteProxySessionOutput struct { _ struct{} `type:"structure"` - - // The attendee information, including attendees IDs and join tokens. - Attendees []*Attendee `type:"list"` - - // If the action fails for one or more of the attendees in the request, a list - // of the attendees is returned, along with error codes and error messages. - Errors []*CreateAttendeeError `type:"list"` } // String returns the string representation -func (s BatchCreateAttendeeOutput) String() string { +func (s DeleteProxySessionOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s BatchCreateAttendeeOutput) GoString() string { +func (s DeleteProxySessionOutput) GoString() string { return s.String() } -// SetAttendees sets the Attendees field's value. -func (s *BatchCreateAttendeeOutput) SetAttendees(v []*Attendee) *BatchCreateAttendeeOutput { - s.Attendees = v - return s -} - -// SetErrors sets the Errors field's value. -func (s *BatchCreateAttendeeOutput) SetErrors(v []*CreateAttendeeError) *BatchCreateAttendeeOutput { - s.Errors = v - return s -} - -type BatchCreateRoomMembershipInput struct { +type DeleteRoomInput struct { _ struct{} `type:"structure"` // The Amazon Chime account ID. @@ -14867,39 +25622,31 @@ type BatchCreateRoomMembershipInput struct { // AccountId is a required field AccountId *string `location:"uri" locationName:"accountId" type:"string" required:"true"` - // The list of membership items. - // - // MembershipItemList is a required field - MembershipItemList []*MembershipItem `type:"list" required:"true"` - - // The room ID. + // The chat room ID. // // RoomId is a required field RoomId *string `location:"uri" locationName:"roomId" type:"string" required:"true"` } // String returns the string representation -func (s BatchCreateRoomMembershipInput) String() string { +func (s DeleteRoomInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s BatchCreateRoomMembershipInput) GoString() string { +func (s DeleteRoomInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *BatchCreateRoomMembershipInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "BatchCreateRoomMembershipInput"} +func (s *DeleteRoomInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteRoomInput"} if s.AccountId == nil { invalidParams.Add(request.NewErrParamRequired("AccountId")) } if s.AccountId != nil && len(*s.AccountId) < 1 { invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) } - if s.MembershipItemList == nil { - invalidParams.Add(request.NewErrParamRequired("MembershipItemList")) - } if s.RoomId == nil { invalidParams.Add(request.NewErrParamRequired("RoomId")) } @@ -14914,74 +25661,66 @@ func (s *BatchCreateRoomMembershipInput) Validate() error { } // SetAccountId sets the AccountId field's value. -func (s *BatchCreateRoomMembershipInput) SetAccountId(v string) *BatchCreateRoomMembershipInput { +func (s *DeleteRoomInput) SetAccountId(v string) *DeleteRoomInput { s.AccountId = &v return s } -// SetMembershipItemList sets the MembershipItemList field's value. -func (s *BatchCreateRoomMembershipInput) SetMembershipItemList(v []*MembershipItem) *BatchCreateRoomMembershipInput { - s.MembershipItemList = v - return s -} - // SetRoomId sets the RoomId field's value. -func (s *BatchCreateRoomMembershipInput) SetRoomId(v string) *BatchCreateRoomMembershipInput { +func (s *DeleteRoomInput) SetRoomId(v string) *DeleteRoomInput { s.RoomId = &v return s } -type BatchCreateRoomMembershipOutput struct { +type DeleteRoomMembershipInput struct { _ struct{} `type:"structure"` - // If the action fails for one or more of the member IDs in the request, a list - // of the member IDs is returned, along with error codes and error messages. - Errors []*MemberError `type:"list"` -} - -// String returns the string representation -func (s BatchCreateRoomMembershipOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s BatchCreateRoomMembershipOutput) GoString() string { - return s.String() -} - -// SetErrors sets the Errors field's value. -func (s *BatchCreateRoomMembershipOutput) SetErrors(v []*MemberError) *BatchCreateRoomMembershipOutput { - s.Errors = v - return s -} + // The Amazon Chime account ID. + // + // AccountId is a required field + AccountId *string `location:"uri" locationName:"accountId" type:"string" required:"true"` -type BatchDeletePhoneNumberInput struct { - _ struct{} `type:"structure"` + // The member ID (user ID or bot ID). + // + // MemberId is a required field + MemberId *string `location:"uri" locationName:"memberId" type:"string" required:"true"` - // List of phone number IDs. + // The room ID. // - // PhoneNumberIds is a required field - PhoneNumberIds []*string `min:"1" type:"list" required:"true"` + // RoomId is a required field + RoomId *string `location:"uri" locationName:"roomId" type:"string" required:"true"` } // String returns the string representation -func (s BatchDeletePhoneNumberInput) String() string { +func (s DeleteRoomMembershipInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s BatchDeletePhoneNumberInput) GoString() string { +func (s DeleteRoomMembershipInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *BatchDeletePhoneNumberInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "BatchDeletePhoneNumberInput"} - if s.PhoneNumberIds == nil { - invalidParams.Add(request.NewErrParamRequired("PhoneNumberIds")) +func (s *DeleteRoomMembershipInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteRoomMembershipInput"} + if s.AccountId == nil { + invalidParams.Add(request.NewErrParamRequired("AccountId")) } - if s.PhoneNumberIds != nil && len(s.PhoneNumberIds) < 1 { - invalidParams.Add(request.NewErrParamMinLen("PhoneNumberIds", 1)) + if s.AccountId != nil && len(*s.AccountId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) + } + if s.MemberId == nil { + invalidParams.Add(request.NewErrParamRequired("MemberId")) + } + if s.MemberId != nil && len(*s.MemberId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("MemberId", 1)) + } + if s.RoomId == nil { + invalidParams.Add(request.NewErrParamRequired("RoomId")) + } + if s.RoomId != nil && len(*s.RoomId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RoomId", 1)) } if invalidParams.Len() > 0 { @@ -14990,72 +25729,79 @@ func (s *BatchDeletePhoneNumberInput) Validate() error { return nil } -// SetPhoneNumberIds sets the PhoneNumberIds field's value. -func (s *BatchDeletePhoneNumberInput) SetPhoneNumberIds(v []*string) *BatchDeletePhoneNumberInput { - s.PhoneNumberIds = v +// SetAccountId sets the AccountId field's value. +func (s *DeleteRoomMembershipInput) SetAccountId(v string) *DeleteRoomMembershipInput { + s.AccountId = &v return s } -type BatchDeletePhoneNumberOutput struct { - _ struct{} `type:"structure"` +// SetMemberId sets the MemberId field's value. +func (s *DeleteRoomMembershipInput) SetMemberId(v string) *DeleteRoomMembershipInput { + s.MemberId = &v + return s +} - // If the action fails for one or more of the phone numbers in the request, - // a list of the phone numbers is returned, along with error codes and error - // messages. - PhoneNumberErrors []*PhoneNumberError `type:"list"` +// SetRoomId sets the RoomId field's value. +func (s *DeleteRoomMembershipInput) SetRoomId(v string) *DeleteRoomMembershipInput { + s.RoomId = &v + return s +} + +type DeleteRoomMembershipOutput struct { + _ struct{} `type:"structure"` } // String returns the string representation -func (s BatchDeletePhoneNumberOutput) String() string { +func (s DeleteRoomMembershipOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s BatchDeletePhoneNumberOutput) GoString() string { +func (s DeleteRoomMembershipOutput) GoString() string { return s.String() } -// SetPhoneNumberErrors sets the PhoneNumberErrors field's value. -func (s *BatchDeletePhoneNumberOutput) SetPhoneNumberErrors(v []*PhoneNumberError) *BatchDeletePhoneNumberOutput { - s.PhoneNumberErrors = v - return s +type DeleteRoomOutput struct { + _ struct{} `type:"structure"` } -type BatchSuspendUserInput struct { - _ struct{} `type:"structure"` +// String returns the string representation +func (s DeleteRoomOutput) String() string { + return awsutil.Prettify(s) +} - // The Amazon Chime account ID. - // - // AccountId is a required field - AccountId *string `location:"uri" locationName:"accountId" type:"string" required:"true"` +// GoString returns the string representation +func (s DeleteRoomOutput) GoString() string { + return s.String() +} - // The request containing the user IDs to suspend. +type DeleteSipMediaApplicationInput struct { + _ struct{} `type:"structure"` + + // The SIP media application ID. // - // UserIdList is a required field - UserIdList []*string `type:"list" required:"true"` + // SipMediaApplicationId is a required field + SipMediaApplicationId *string `location:"uri" locationName:"sipMediaApplicationId" type:"string" required:"true"` } // String returns the string representation -func (s BatchSuspendUserInput) String() string { +func (s DeleteSipMediaApplicationInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s BatchSuspendUserInput) GoString() string { +func (s DeleteSipMediaApplicationInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *BatchSuspendUserInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "BatchSuspendUserInput"} - if s.AccountId == nil { - invalidParams.Add(request.NewErrParamRequired("AccountId")) - } - if s.AccountId != nil && len(*s.AccountId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) +func (s *DeleteSipMediaApplicationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteSipMediaApplicationInput"} + if s.SipMediaApplicationId == nil { + invalidParams.Add(request.NewErrParamRequired("SipMediaApplicationId")) } - if s.UserIdList == nil { - invalidParams.Add(request.NewErrParamRequired("UserIdList")) + if s.SipMediaApplicationId != nil && len(*s.SipMediaApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("SipMediaApplicationId", 1)) } if invalidParams.Len() > 0 { @@ -15064,78 +25810,53 @@ func (s *BatchSuspendUserInput) Validate() error { return nil } -// SetAccountId sets the AccountId field's value. -func (s *BatchSuspendUserInput) SetAccountId(v string) *BatchSuspendUserInput { - s.AccountId = &v - return s -} - -// SetUserIdList sets the UserIdList field's value. -func (s *BatchSuspendUserInput) SetUserIdList(v []*string) *BatchSuspendUserInput { - s.UserIdList = v +// SetSipMediaApplicationId sets the SipMediaApplicationId field's value. +func (s *DeleteSipMediaApplicationInput) SetSipMediaApplicationId(v string) *DeleteSipMediaApplicationInput { + s.SipMediaApplicationId = &v return s } -type BatchSuspendUserOutput struct { +type DeleteSipMediaApplicationOutput struct { _ struct{} `type:"structure"` - - // If the BatchSuspendUser action fails for one or more of the user IDs in the - // request, a list of the user IDs is returned, along with error codes and error - // messages. - UserErrors []*UserError `type:"list"` } // String returns the string representation -func (s BatchSuspendUserOutput) String() string { +func (s DeleteSipMediaApplicationOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s BatchSuspendUserOutput) GoString() string { +func (s DeleteSipMediaApplicationOutput) GoString() string { return s.String() } -// SetUserErrors sets the UserErrors field's value. -func (s *BatchSuspendUserOutput) SetUserErrors(v []*UserError) *BatchSuspendUserOutput { - s.UserErrors = v - return s -} - -type BatchUnsuspendUserInput struct { +type DeleteSipRuleInput struct { _ struct{} `type:"structure"` - // The Amazon Chime account ID. - // - // AccountId is a required field - AccountId *string `location:"uri" locationName:"accountId" type:"string" required:"true"` - - // The request containing the user IDs to unsuspend. + // The SIP rule ID. // - // UserIdList is a required field - UserIdList []*string `type:"list" required:"true"` + // SipRuleId is a required field + SipRuleId *string `location:"uri" locationName:"sipRuleId" type:"string" required:"true"` } // String returns the string representation -func (s BatchUnsuspendUserInput) String() string { +func (s DeleteSipRuleInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s BatchUnsuspendUserInput) GoString() string { +func (s DeleteSipRuleInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *BatchUnsuspendUserInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "BatchUnsuspendUserInput"} - if s.AccountId == nil { - invalidParams.Add(request.NewErrParamRequired("AccountId")) - } - if s.AccountId != nil && len(*s.AccountId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) +func (s *DeleteSipRuleInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteSipRuleInput"} + if s.SipRuleId == nil { + invalidParams.Add(request.NewErrParamRequired("SipRuleId")) } - if s.UserIdList == nil { - invalidParams.Add(request.NewErrParamRequired("UserIdList")) + if s.SipRuleId != nil && len(*s.SipRuleId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("SipRuleId", 1)) } if invalidParams.Len() > 0 { @@ -15144,78 +25865,53 @@ func (s *BatchUnsuspendUserInput) Validate() error { return nil } -// SetAccountId sets the AccountId field's value. -func (s *BatchUnsuspendUserInput) SetAccountId(v string) *BatchUnsuspendUserInput { - s.AccountId = &v - return s -} - -// SetUserIdList sets the UserIdList field's value. -func (s *BatchUnsuspendUserInput) SetUserIdList(v []*string) *BatchUnsuspendUserInput { - s.UserIdList = v +// SetSipRuleId sets the SipRuleId field's value. +func (s *DeleteSipRuleInput) SetSipRuleId(v string) *DeleteSipRuleInput { + s.SipRuleId = &v return s } -type BatchUnsuspendUserOutput struct { +type DeleteSipRuleOutput struct { _ struct{} `type:"structure"` - - // If the BatchUnsuspendUser action fails for one or more of the user IDs in - // the request, a list of the user IDs is returned, along with error codes and - // error messages. - UserErrors []*UserError `type:"list"` } // String returns the string representation -func (s BatchUnsuspendUserOutput) String() string { +func (s DeleteSipRuleOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s BatchUnsuspendUserOutput) GoString() string { +func (s DeleteSipRuleOutput) GoString() string { return s.String() } -// SetUserErrors sets the UserErrors field's value. -func (s *BatchUnsuspendUserOutput) SetUserErrors(v []*UserError) *BatchUnsuspendUserOutput { - s.UserErrors = v - return s -} - -type BatchUpdatePhoneNumberInput struct { +type DeleteVoiceConnectorEmergencyCallingConfigurationInput struct { _ struct{} `type:"structure"` - // The request containing the phone number IDs and product types or calling - // names to update. + // The Amazon Chime Voice Connector ID. // - // UpdatePhoneNumberRequestItems is a required field - UpdatePhoneNumberRequestItems []*UpdatePhoneNumberRequestItem `type:"list" required:"true"` + // VoiceConnectorId is a required field + VoiceConnectorId *string `location:"uri" locationName:"voiceConnectorId" type:"string" required:"true"` } // String returns the string representation -func (s BatchUpdatePhoneNumberInput) String() string { +func (s DeleteVoiceConnectorEmergencyCallingConfigurationInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s BatchUpdatePhoneNumberInput) GoString() string { +func (s DeleteVoiceConnectorEmergencyCallingConfigurationInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *BatchUpdatePhoneNumberInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "BatchUpdatePhoneNumberInput"} - if s.UpdatePhoneNumberRequestItems == nil { - invalidParams.Add(request.NewErrParamRequired("UpdatePhoneNumberRequestItems")) +func (s *DeleteVoiceConnectorEmergencyCallingConfigurationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteVoiceConnectorEmergencyCallingConfigurationInput"} + if s.VoiceConnectorId == nil { + invalidParams.Add(request.NewErrParamRequired("VoiceConnectorId")) } - if s.UpdatePhoneNumberRequestItems != nil { - for i, v := range s.UpdatePhoneNumberRequestItems { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "UpdatePhoneNumberRequestItems", i), err.(request.ErrInvalidParams)) - } - } + if s.VoiceConnectorId != nil && len(*s.VoiceConnectorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VoiceConnectorId", 1)) } if invalidParams.Len() > 0 { @@ -15224,82 +25920,53 @@ func (s *BatchUpdatePhoneNumberInput) Validate() error { return nil } -// SetUpdatePhoneNumberRequestItems sets the UpdatePhoneNumberRequestItems field's value. -func (s *BatchUpdatePhoneNumberInput) SetUpdatePhoneNumberRequestItems(v []*UpdatePhoneNumberRequestItem) *BatchUpdatePhoneNumberInput { - s.UpdatePhoneNumberRequestItems = v +// SetVoiceConnectorId sets the VoiceConnectorId field's value. +func (s *DeleteVoiceConnectorEmergencyCallingConfigurationInput) SetVoiceConnectorId(v string) *DeleteVoiceConnectorEmergencyCallingConfigurationInput { + s.VoiceConnectorId = &v return s } -type BatchUpdatePhoneNumberOutput struct { +type DeleteVoiceConnectorEmergencyCallingConfigurationOutput struct { _ struct{} `type:"structure"` - - // If the action fails for one or more of the phone numbers in the request, - // a list of the phone numbers is returned, along with error codes and error - // messages. - PhoneNumberErrors []*PhoneNumberError `type:"list"` } // String returns the string representation -func (s BatchUpdatePhoneNumberOutput) String() string { +func (s DeleteVoiceConnectorEmergencyCallingConfigurationOutput) String() string { return awsutil.Prettify(s) } -// GoString returns the string representation -func (s BatchUpdatePhoneNumberOutput) GoString() string { - return s.String() -} - -// SetPhoneNumberErrors sets the PhoneNumberErrors field's value. -func (s *BatchUpdatePhoneNumberOutput) SetPhoneNumberErrors(v []*PhoneNumberError) *BatchUpdatePhoneNumberOutput { - s.PhoneNumberErrors = v - return s +// GoString returns the string representation +func (s DeleteVoiceConnectorEmergencyCallingConfigurationOutput) GoString() string { + return s.String() } -type BatchUpdateUserInput struct { +type DeleteVoiceConnectorGroupInput struct { _ struct{} `type:"structure"` - // The Amazon Chime account ID. - // - // AccountId is a required field - AccountId *string `location:"uri" locationName:"accountId" type:"string" required:"true"` - - // The request containing the user IDs and details to update. + // The Amazon Chime Voice Connector group ID. // - // UpdateUserRequestItems is a required field - UpdateUserRequestItems []*UpdateUserRequestItem `type:"list" required:"true"` + // VoiceConnectorGroupId is a required field + VoiceConnectorGroupId *string `location:"uri" locationName:"voiceConnectorGroupId" type:"string" required:"true"` } // String returns the string representation -func (s BatchUpdateUserInput) String() string { +func (s DeleteVoiceConnectorGroupInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s BatchUpdateUserInput) GoString() string { +func (s DeleteVoiceConnectorGroupInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *BatchUpdateUserInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "BatchUpdateUserInput"} - if s.AccountId == nil { - invalidParams.Add(request.NewErrParamRequired("AccountId")) - } - if s.AccountId != nil && len(*s.AccountId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) - } - if s.UpdateUserRequestItems == nil { - invalidParams.Add(request.NewErrParamRequired("UpdateUserRequestItems")) +func (s *DeleteVoiceConnectorGroupInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteVoiceConnectorGroupInput"} + if s.VoiceConnectorGroupId == nil { + invalidParams.Add(request.NewErrParamRequired("VoiceConnectorGroupId")) } - if s.UpdateUserRequestItems != nil { - for i, v := range s.UpdateUserRequestItems { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "UpdateUserRequestItems", i), err.(request.ErrInvalidParams)) - } - } + if s.VoiceConnectorGroupId != nil && len(*s.VoiceConnectorGroupId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VoiceConnectorGroupId", 1)) } if invalidParams.Len() > 0 { @@ -15308,249 +25975,218 @@ func (s *BatchUpdateUserInput) Validate() error { return nil } -// SetAccountId sets the AccountId field's value. -func (s *BatchUpdateUserInput) SetAccountId(v string) *BatchUpdateUserInput { - s.AccountId = &v - return s -} - -// SetUpdateUserRequestItems sets the UpdateUserRequestItems field's value. -func (s *BatchUpdateUserInput) SetUpdateUserRequestItems(v []*UpdateUserRequestItem) *BatchUpdateUserInput { - s.UpdateUserRequestItems = v +// SetVoiceConnectorGroupId sets the VoiceConnectorGroupId field's value. +func (s *DeleteVoiceConnectorGroupInput) SetVoiceConnectorGroupId(v string) *DeleteVoiceConnectorGroupInput { + s.VoiceConnectorGroupId = &v return s } -type BatchUpdateUserOutput struct { +type DeleteVoiceConnectorGroupOutput struct { _ struct{} `type:"structure"` - - // If the BatchUpdateUser action fails for one or more of the user IDs in the - // request, a list of the user IDs is returned, along with error codes and error - // messages. - UserErrors []*UserError `type:"list"` } // String returns the string representation -func (s BatchUpdateUserOutput) String() string { +func (s DeleteVoiceConnectorGroupOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s BatchUpdateUserOutput) GoString() string { +func (s DeleteVoiceConnectorGroupOutput) GoString() string { return s.String() } -// SetUserErrors sets the UserErrors field's value. -func (s *BatchUpdateUserOutput) SetUserErrors(v []*UserError) *BatchUpdateUserOutput { - s.UserErrors = v - return s -} - -// A resource that allows Enterprise account administrators to configure an -// interface to receive events from Amazon Chime. -type Bot struct { +type DeleteVoiceConnectorInput struct { _ struct{} `type:"structure"` - // The bot email address. - BotEmail *string `type:"string" sensitive:"true"` - - // The bot ID. - BotId *string `type:"string"` - - // The bot type. - BotType *string `type:"string" enum:"BotType"` - - // The bot creation timestamp, in ISO 8601 format. - CreatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` - - // When true, the bot is stopped from running in your account. - Disabled *bool `type:"boolean"` - - // The bot display name. - DisplayName *string `type:"string" sensitive:"true"` - - // The security token used to authenticate Amazon Chime with the outgoing event - // endpoint. - SecurityToken *string `type:"string" sensitive:"true"` - - // The updated bot timestamp, in ISO 8601 format. - UpdatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` - - // The unique ID for the bot user. - UserId *string `type:"string"` + // The Amazon Chime Voice Connector ID. + // + // VoiceConnectorId is a required field + VoiceConnectorId *string `location:"uri" locationName:"voiceConnectorId" type:"string" required:"true"` } // String returns the string representation -func (s Bot) String() string { +func (s DeleteVoiceConnectorInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s Bot) GoString() string { +func (s DeleteVoiceConnectorInput) GoString() string { return s.String() } -// SetBotEmail sets the BotEmail field's value. -func (s *Bot) SetBotEmail(v string) *Bot { - s.BotEmail = &v - return s -} +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteVoiceConnectorInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteVoiceConnectorInput"} + if s.VoiceConnectorId == nil { + invalidParams.Add(request.NewErrParamRequired("VoiceConnectorId")) + } + if s.VoiceConnectorId != nil && len(*s.VoiceConnectorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VoiceConnectorId", 1)) + } -// SetBotId sets the BotId field's value. -func (s *Bot) SetBotId(v string) *Bot { - s.BotId = &v - return s + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// SetBotType sets the BotType field's value. -func (s *Bot) SetBotType(v string) *Bot { - s.BotType = &v +// SetVoiceConnectorId sets the VoiceConnectorId field's value. +func (s *DeleteVoiceConnectorInput) SetVoiceConnectorId(v string) *DeleteVoiceConnectorInput { + s.VoiceConnectorId = &v return s } -// SetCreatedTimestamp sets the CreatedTimestamp field's value. -func (s *Bot) SetCreatedTimestamp(v time.Time) *Bot { - s.CreatedTimestamp = &v - return s -} +type DeleteVoiceConnectorOriginationInput struct { + _ struct{} `type:"structure"` -// SetDisabled sets the Disabled field's value. -func (s *Bot) SetDisabled(v bool) *Bot { - s.Disabled = &v - return s + // The Amazon Chime Voice Connector ID. + // + // VoiceConnectorId is a required field + VoiceConnectorId *string `location:"uri" locationName:"voiceConnectorId" type:"string" required:"true"` } -// SetDisplayName sets the DisplayName field's value. -func (s *Bot) SetDisplayName(v string) *Bot { - s.DisplayName = &v - return s +// String returns the string representation +func (s DeleteVoiceConnectorOriginationInput) String() string { + return awsutil.Prettify(s) } -// SetSecurityToken sets the SecurityToken field's value. -func (s *Bot) SetSecurityToken(v string) *Bot { - s.SecurityToken = &v - return s +// GoString returns the string representation +func (s DeleteVoiceConnectorOriginationInput) GoString() string { + return s.String() } -// SetUpdatedTimestamp sets the UpdatedTimestamp field's value. -func (s *Bot) SetUpdatedTimestamp(v time.Time) *Bot { - s.UpdatedTimestamp = &v - return s +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteVoiceConnectorOriginationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteVoiceConnectorOriginationInput"} + if s.VoiceConnectorId == nil { + invalidParams.Add(request.NewErrParamRequired("VoiceConnectorId")) + } + if s.VoiceConnectorId != nil && len(*s.VoiceConnectorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VoiceConnectorId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// SetUserId sets the UserId field's value. -func (s *Bot) SetUserId(v string) *Bot { - s.UserId = &v +// SetVoiceConnectorId sets the VoiceConnectorId field's value. +func (s *DeleteVoiceConnectorOriginationInput) SetVoiceConnectorId(v string) *DeleteVoiceConnectorOriginationInput { + s.VoiceConnectorId = &v return s } -// The Amazon Chime Business Calling settings for the administrator's AWS account. -// Includes any Amazon S3 buckets designated for storing call detail records. -type BusinessCallingSettings struct { +type DeleteVoiceConnectorOriginationOutput struct { _ struct{} `type:"structure"` - - // The Amazon S3 bucket designated for call detail record storage. - CdrBucket *string `type:"string"` } // String returns the string representation -func (s BusinessCallingSettings) String() string { +func (s DeleteVoiceConnectorOriginationOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s BusinessCallingSettings) GoString() string { +func (s DeleteVoiceConnectorOriginationOutput) GoString() string { return s.String() } -// SetCdrBucket sets the CdrBucket field's value. -func (s *BusinessCallingSettings) SetCdrBucket(v string) *BusinessCallingSettings { - s.CdrBucket = &v - return s +type DeleteVoiceConnectorOutput struct { + _ struct{} `type:"structure"` } -// The request could not be processed because of conflict in the current state -// of the resource. -type ConflictException struct { - _ struct{} `type:"structure"` - RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` +// String returns the string representation +func (s DeleteVoiceConnectorOutput) String() string { + return awsutil.Prettify(s) +} - Code_ *string `locationName:"Code" type:"string" enum:"ErrorCode"` +// GoString returns the string representation +func (s DeleteVoiceConnectorOutput) GoString() string { + return s.String() +} - Message_ *string `locationName:"Message" type:"string"` +type DeleteVoiceConnectorProxyInput struct { + _ struct{} `type:"structure"` + + // The Amazon Chime Voice Connector ID. + // + // VoiceConnectorId is a required field + VoiceConnectorId *string `location:"uri" locationName:"voiceConnectorId" min:"1" type:"string" required:"true"` } // String returns the string representation -func (s ConflictException) String() string { +func (s DeleteVoiceConnectorProxyInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ConflictException) GoString() string { +func (s DeleteVoiceConnectorProxyInput) GoString() string { return s.String() } -func newErrorConflictException(v protocol.ResponseMetadata) error { - return &ConflictException{ - RespMetadata: v, +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteVoiceConnectorProxyInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteVoiceConnectorProxyInput"} + if s.VoiceConnectorId == nil { + invalidParams.Add(request.NewErrParamRequired("VoiceConnectorId")) + } + if s.VoiceConnectorId != nil && len(*s.VoiceConnectorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VoiceConnectorId", 1)) } -} - -// Code returns the exception type name. -func (s *ConflictException) Code() string { - return "ConflictException" -} -// Message returns the exception's message. -func (s *ConflictException) Message() string { - if s.Message_ != nil { - return *s.Message_ + if invalidParams.Len() > 0 { + return invalidParams } - return "" + return nil } -// OrigErr always returns nil, satisfies awserr.Error interface. -func (s *ConflictException) OrigErr() error { - return nil +// SetVoiceConnectorId sets the VoiceConnectorId field's value. +func (s *DeleteVoiceConnectorProxyInput) SetVoiceConnectorId(v string) *DeleteVoiceConnectorProxyInput { + s.VoiceConnectorId = &v + return s } -func (s *ConflictException) Error() string { - return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +type DeleteVoiceConnectorProxyOutput struct { + _ struct{} `type:"structure"` } -// Status code returns the HTTP status code for the request's response error. -func (s *ConflictException) StatusCode() int { - return s.RespMetadata.StatusCode +// String returns the string representation +func (s DeleteVoiceConnectorProxyOutput) String() string { + return awsutil.Prettify(s) } -// RequestID returns the service's response RequestID for request. -func (s *ConflictException) RequestID() string { - return s.RespMetadata.RequestID +// GoString returns the string representation +func (s DeleteVoiceConnectorProxyOutput) GoString() string { + return s.String() } -// The retention settings that determine how long to retain chat conversation -// messages for an Amazon Chime Enterprise account. -type ConversationRetentionSettings struct { +type DeleteVoiceConnectorStreamingConfigurationInput struct { _ struct{} `type:"structure"` - // The number of days for which to retain chat conversation messages. - RetentionDays *int64 `min:"1" type:"integer"` + // The Amazon Chime Voice Connector ID. + // + // VoiceConnectorId is a required field + VoiceConnectorId *string `location:"uri" locationName:"voiceConnectorId" type:"string" required:"true"` } // String returns the string representation -func (s ConversationRetentionSettings) String() string { +func (s DeleteVoiceConnectorStreamingConfigurationInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ConversationRetentionSettings) GoString() string { +func (s DeleteVoiceConnectorStreamingConfigurationInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *ConversationRetentionSettings) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ConversationRetentionSettings"} - if s.RetentionDays != nil && *s.RetentionDays < 1 { - invalidParams.Add(request.NewErrParamMinValue("RetentionDays", 1)) +func (s *DeleteVoiceConnectorStreamingConfigurationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteVoiceConnectorStreamingConfigurationInput"} + if s.VoiceConnectorId == nil { + invalidParams.Add(request.NewErrParamRequired("VoiceConnectorId")) + } + if s.VoiceConnectorId != nil && len(*s.VoiceConnectorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VoiceConnectorId", 1)) } if invalidParams.Len() > 0 { @@ -15559,39 +26195,62 @@ func (s *ConversationRetentionSettings) Validate() error { return nil } -// SetRetentionDays sets the RetentionDays field's value. -func (s *ConversationRetentionSettings) SetRetentionDays(v int64) *ConversationRetentionSettings { - s.RetentionDays = &v +// SetVoiceConnectorId sets the VoiceConnectorId field's value. +func (s *DeleteVoiceConnectorStreamingConfigurationInput) SetVoiceConnectorId(v string) *DeleteVoiceConnectorStreamingConfigurationInput { + s.VoiceConnectorId = &v return s } -type CreateAccountInput struct { +type DeleteVoiceConnectorStreamingConfigurationOutput struct { _ struct{} `type:"structure"` +} - // The name of the Amazon Chime account. +// String returns the string representation +func (s DeleteVoiceConnectorStreamingConfigurationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteVoiceConnectorStreamingConfigurationOutput) GoString() string { + return s.String() +} + +type DeleteVoiceConnectorTerminationCredentialsInput struct { + _ struct{} `type:"structure"` + + // The RFC2617 compliant username associated with the SIP credentials, in US-ASCII + // format. // - // Name is a required field - Name *string `min:"1" type:"string" required:"true"` + // Usernames is a required field + Usernames []*string `type:"list" required:"true"` + + // The Amazon Chime Voice Connector ID. + // + // VoiceConnectorId is a required field + VoiceConnectorId *string `location:"uri" locationName:"voiceConnectorId" type:"string" required:"true"` } // String returns the string representation -func (s CreateAccountInput) String() string { +func (s DeleteVoiceConnectorTerminationCredentialsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateAccountInput) GoString() string { +func (s DeleteVoiceConnectorTerminationCredentialsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *CreateAccountInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateAccountInput"} - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) +func (s *DeleteVoiceConnectorTerminationCredentialsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteVoiceConnectorTerminationCredentialsInput"} + if s.Usernames == nil { + invalidParams.Add(request.NewErrParamRequired("Usernames")) } - if s.Name != nil && len(*s.Name) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + if s.VoiceConnectorId == nil { + invalidParams.Add(request.NewErrParamRequired("VoiceConnectorId")) + } + if s.VoiceConnectorId != nil && len(*s.VoiceConnectorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VoiceConnectorId", 1)) } if invalidParams.Len() > 0 { @@ -15600,138 +26259,125 @@ func (s *CreateAccountInput) Validate() error { return nil } -// SetName sets the Name field's value. -func (s *CreateAccountInput) SetName(v string) *CreateAccountInput { - s.Name = &v +// SetUsernames sets the Usernames field's value. +func (s *DeleteVoiceConnectorTerminationCredentialsInput) SetUsernames(v []*string) *DeleteVoiceConnectorTerminationCredentialsInput { + s.Usernames = v return s } -type CreateAccountOutput struct { - _ struct{} `type:"structure"` +// SetVoiceConnectorId sets the VoiceConnectorId field's value. +func (s *DeleteVoiceConnectorTerminationCredentialsInput) SetVoiceConnectorId(v string) *DeleteVoiceConnectorTerminationCredentialsInput { + s.VoiceConnectorId = &v + return s +} - // The Amazon Chime account details. An AWS account can have multiple Amazon - // Chime accounts. - Account *Account `type:"structure"` +type DeleteVoiceConnectorTerminationCredentialsOutput struct { + _ struct{} `type:"structure"` } // String returns the string representation -func (s CreateAccountOutput) String() string { +func (s DeleteVoiceConnectorTerminationCredentialsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateAccountOutput) GoString() string { +func (s DeleteVoiceConnectorTerminationCredentialsOutput) GoString() string { return s.String() } -// SetAccount sets the Account field's value. -func (s *CreateAccountOutput) SetAccount(v *Account) *CreateAccountOutput { - s.Account = v - return s -} - -// The list of errors returned when errors are encountered during the BatchCreateAttendee -// and CreateAttendee actions. This includes external user IDs, error codes, -// and error messages. -type CreateAttendeeError struct { +type DeleteVoiceConnectorTerminationInput struct { _ struct{} `type:"structure"` - // The error code. - ErrorCode *string `type:"string"` - - // The error message. - ErrorMessage *string `type:"string"` - - // The Amazon Chime SDK external user ID. An idempotency token. Links the attendee - // to an identity managed by a builder application. If you create an attendee - // with the same external user id, the service returns the existing record. - ExternalUserId *string `min:"2" type:"string" sensitive:"true"` + // The Amazon Chime Voice Connector ID. + // + // VoiceConnectorId is a required field + VoiceConnectorId *string `location:"uri" locationName:"voiceConnectorId" type:"string" required:"true"` } // String returns the string representation -func (s CreateAttendeeError) String() string { +func (s DeleteVoiceConnectorTerminationInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateAttendeeError) GoString() string { +func (s DeleteVoiceConnectorTerminationInput) GoString() string { return s.String() } -// SetErrorCode sets the ErrorCode field's value. -func (s *CreateAttendeeError) SetErrorCode(v string) *CreateAttendeeError { - s.ErrorCode = &v - return s +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteVoiceConnectorTerminationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteVoiceConnectorTerminationInput"} + if s.VoiceConnectorId == nil { + invalidParams.Add(request.NewErrParamRequired("VoiceConnectorId")) + } + if s.VoiceConnectorId != nil && len(*s.VoiceConnectorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VoiceConnectorId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// SetErrorMessage sets the ErrorMessage field's value. -func (s *CreateAttendeeError) SetErrorMessage(v string) *CreateAttendeeError { - s.ErrorMessage = &v +// SetVoiceConnectorId sets the VoiceConnectorId field's value. +func (s *DeleteVoiceConnectorTerminationInput) SetVoiceConnectorId(v string) *DeleteVoiceConnectorTerminationInput { + s.VoiceConnectorId = &v return s } -// SetExternalUserId sets the ExternalUserId field's value. -func (s *CreateAttendeeError) SetExternalUserId(v string) *CreateAttendeeError { - s.ExternalUserId = &v - return s +type DeleteVoiceConnectorTerminationOutput struct { + _ struct{} `type:"structure"` } -type CreateAttendeeInput struct { +// String returns the string representation +func (s DeleteVoiceConnectorTerminationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteVoiceConnectorTerminationOutput) GoString() string { + return s.String() +} + +type DescribeAppInstanceAdminInput struct { _ struct{} `type:"structure"` - // The Amazon Chime SDK external user ID. An idempotency token. Links the attendee - // to an identity managed by a builder application. If you create an attendee - // with the same external user id, the service returns the existing record. + // The ARN of the app instance administrator. // - // ExternalUserId is a required field - ExternalUserId *string `min:"2" type:"string" required:"true" sensitive:"true"` + // AppInstanceAdminArn is a required field + AppInstanceAdminArn *string `location:"uri" locationName:"appInstanceAdminArn" min:"5" type:"string" required:"true"` - // The Amazon Chime SDK meeting ID. + // The ARN of the app instance. // - // MeetingId is a required field - MeetingId *string `location:"uri" locationName:"meetingId" type:"string" required:"true"` - - // The tag key-value pairs. - Tags []*Tag `min:"1" type:"list"` + // AppInstanceArn is a required field + AppInstanceArn *string `location:"uri" locationName:"appInstanceArn" min:"5" type:"string" required:"true"` } // String returns the string representation -func (s CreateAttendeeInput) String() string { +func (s DescribeAppInstanceAdminInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateAttendeeInput) GoString() string { +func (s DescribeAppInstanceAdminInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *CreateAttendeeInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateAttendeeInput"} - if s.ExternalUserId == nil { - invalidParams.Add(request.NewErrParamRequired("ExternalUserId")) - } - if s.ExternalUserId != nil && len(*s.ExternalUserId) < 2 { - invalidParams.Add(request.NewErrParamMinLen("ExternalUserId", 2)) - } - if s.MeetingId == nil { - invalidParams.Add(request.NewErrParamRequired("MeetingId")) +func (s *DescribeAppInstanceAdminInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeAppInstanceAdminInput"} + if s.AppInstanceAdminArn == nil { + invalidParams.Add(request.NewErrParamRequired("AppInstanceAdminArn")) } - if s.MeetingId != nil && len(*s.MeetingId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("MeetingId", 1)) + if s.AppInstanceAdminArn != nil && len(*s.AppInstanceAdminArn) < 5 { + invalidParams.Add(request.NewErrParamMinLen("AppInstanceAdminArn", 5)) } - if s.Tags != nil && len(s.Tags) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Tags", 1)) + if s.AppInstanceArn == nil { + invalidParams.Add(request.NewErrParamRequired("AppInstanceArn")) } - if s.Tags != nil { - for i, v := range s.Tags { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) - } - } + if s.AppInstanceArn != nil && len(*s.AppInstanceArn) < 5 { + invalidParams.Add(request.NewErrParamMinLen("AppInstanceArn", 5)) } if invalidParams.Len() > 0 { @@ -15740,94 +26386,69 @@ func (s *CreateAttendeeInput) Validate() error { return nil } -// SetExternalUserId sets the ExternalUserId field's value. -func (s *CreateAttendeeInput) SetExternalUserId(v string) *CreateAttendeeInput { - s.ExternalUserId = &v - return s -} - -// SetMeetingId sets the MeetingId field's value. -func (s *CreateAttendeeInput) SetMeetingId(v string) *CreateAttendeeInput { - s.MeetingId = &v +// SetAppInstanceAdminArn sets the AppInstanceAdminArn field's value. +func (s *DescribeAppInstanceAdminInput) SetAppInstanceAdminArn(v string) *DescribeAppInstanceAdminInput { + s.AppInstanceAdminArn = &v return s } -// SetTags sets the Tags field's value. -func (s *CreateAttendeeInput) SetTags(v []*Tag) *CreateAttendeeInput { - s.Tags = v +// SetAppInstanceArn sets the AppInstanceArn field's value. +func (s *DescribeAppInstanceAdminInput) SetAppInstanceArn(v string) *DescribeAppInstanceAdminInput { + s.AppInstanceArn = &v return s } -type CreateAttendeeOutput struct { +type DescribeAppInstanceAdminOutput struct { _ struct{} `type:"structure"` - // The attendee information, including attendee ID and join token. - Attendee *Attendee `type:"structure"` + // The ARN and name of the app instance user, the ARN of the app instance, and + // the created and last-updated timestamps. All timestamps use epoch milliseconds. + AppInstanceAdmin *AppInstanceAdmin `type:"structure"` } // String returns the string representation -func (s CreateAttendeeOutput) String() string { +func (s DescribeAppInstanceAdminOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateAttendeeOutput) GoString() string { +func (s DescribeAppInstanceAdminOutput) GoString() string { return s.String() } -// SetAttendee sets the Attendee field's value. -func (s *CreateAttendeeOutput) SetAttendee(v *Attendee) *CreateAttendeeOutput { - s.Attendee = v +// SetAppInstanceAdmin sets the AppInstanceAdmin field's value. +func (s *DescribeAppInstanceAdminOutput) SetAppInstanceAdmin(v *AppInstanceAdmin) *DescribeAppInstanceAdminOutput { + s.AppInstanceAdmin = v return s } -// The Amazon Chime SDK attendee fields to create, used with the BatchCreateAttendee -// action. -type CreateAttendeeRequestItem struct { +type DescribeAppInstanceInput struct { _ struct{} `type:"structure"` - // The Amazon Chime SDK external user ID. An idempotency token. Links the attendee - // to an identity managed by a builder application. If you create an attendee - // with the same external user id, the service returns the existing record. + // The ARN of the app instance. // - // ExternalUserId is a required field - ExternalUserId *string `min:"2" type:"string" required:"true" sensitive:"true"` - - // The tag key-value pairs. - Tags []*Tag `min:"1" type:"list"` + // AppInstanceArn is a required field + AppInstanceArn *string `location:"uri" locationName:"appInstanceArn" min:"5" type:"string" required:"true"` } // String returns the string representation -func (s CreateAttendeeRequestItem) String() string { +func (s DescribeAppInstanceInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateAttendeeRequestItem) GoString() string { +func (s DescribeAppInstanceInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *CreateAttendeeRequestItem) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateAttendeeRequestItem"} - if s.ExternalUserId == nil { - invalidParams.Add(request.NewErrParamRequired("ExternalUserId")) - } - if s.ExternalUserId != nil && len(*s.ExternalUserId) < 2 { - invalidParams.Add(request.NewErrParamMinLen("ExternalUserId", 2)) - } - if s.Tags != nil && len(s.Tags) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Tags", 1)) +func (s *DescribeAppInstanceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeAppInstanceInput"} + if s.AppInstanceArn == nil { + invalidParams.Add(request.NewErrParamRequired("AppInstanceArn")) } - if s.Tags != nil { - for i, v := range s.Tags { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) - } - } + if s.AppInstanceArn != nil && len(*s.AppInstanceArn) < 5 { + invalidParams.Add(request.NewErrParamMinLen("AppInstanceArn", 5)) } if invalidParams.Len() > 0 { @@ -15836,56 +26457,63 @@ func (s *CreateAttendeeRequestItem) Validate() error { return nil } -// SetExternalUserId sets the ExternalUserId field's value. -func (s *CreateAttendeeRequestItem) SetExternalUserId(v string) *CreateAttendeeRequestItem { - s.ExternalUserId = &v +// SetAppInstanceArn sets the AppInstanceArn field's value. +func (s *DescribeAppInstanceInput) SetAppInstanceArn(v string) *DescribeAppInstanceInput { + s.AppInstanceArn = &v return s } -// SetTags sets the Tags field's value. -func (s *CreateAttendeeRequestItem) SetTags(v []*Tag) *CreateAttendeeRequestItem { - s.Tags = v +type DescribeAppInstanceOutput struct { + _ struct{} `type:"structure"` + + // The ARN, metadata, created and last-updated timestamps, and the name of the + // app instance. All timestamps use epoch milliseconds. + AppInstance *AppInstance `type:"structure"` +} + +// String returns the string representation +func (s DescribeAppInstanceOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeAppInstanceOutput) GoString() string { + return s.String() +} + +// SetAppInstance sets the AppInstance field's value. +func (s *DescribeAppInstanceOutput) SetAppInstance(v *AppInstance) *DescribeAppInstanceOutput { + s.AppInstance = v return s } -type CreateBotInput struct { +type DescribeAppInstanceUserInput struct { _ struct{} `type:"structure"` - // The Amazon Chime account ID. - // - // AccountId is a required field - AccountId *string `location:"uri" locationName:"accountId" type:"string" required:"true"` - - // The bot display name. + // The ARN of the app instance user. // - // DisplayName is a required field - DisplayName *string `type:"string" required:"true" sensitive:"true"` - - // The domain of the Amazon Chime Enterprise account. - Domain *string `type:"string"` + // AppInstanceUserArn is a required field + AppInstanceUserArn *string `location:"uri" locationName:"appInstanceUserArn" min:"5" type:"string" required:"true"` } // String returns the string representation -func (s CreateBotInput) String() string { +func (s DescribeAppInstanceUserInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateBotInput) GoString() string { +func (s DescribeAppInstanceUserInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *CreateBotInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateBotInput"} - if s.AccountId == nil { - invalidParams.Add(request.NewErrParamRequired("AccountId")) - } - if s.AccountId != nil && len(*s.AccountId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) +func (s *DescribeAppInstanceUserInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeAppInstanceUserInput"} + if s.AppInstanceUserArn == nil { + invalidParams.Add(request.NewErrParamRequired("AppInstanceUserArn")) } - if s.DisplayName == nil { - invalidParams.Add(request.NewErrParamRequired("DisplayName")) + if s.AppInstanceUserArn != nil && len(*s.AppInstanceUserArn) < 5 { + invalidParams.Add(request.NewErrParamMinLen("AppInstanceUserArn", 5)) } if invalidParams.Len() > 0 { @@ -15894,109 +26522,73 @@ func (s *CreateBotInput) Validate() error { return nil } -// SetAccountId sets the AccountId field's value. -func (s *CreateBotInput) SetAccountId(v string) *CreateBotInput { - s.AccountId = &v - return s -} - -// SetDisplayName sets the DisplayName field's value. -func (s *CreateBotInput) SetDisplayName(v string) *CreateBotInput { - s.DisplayName = &v - return s -} - -// SetDomain sets the Domain field's value. -func (s *CreateBotInput) SetDomain(v string) *CreateBotInput { - s.Domain = &v +// SetAppInstanceUserArn sets the AppInstanceUserArn field's value. +func (s *DescribeAppInstanceUserInput) SetAppInstanceUserArn(v string) *DescribeAppInstanceUserInput { + s.AppInstanceUserArn = &v return s } -type CreateBotOutput struct { +type DescribeAppInstanceUserOutput struct { _ struct{} `type:"structure"` - // The bot details. - Bot *Bot `type:"structure"` + // The name of the app instance user. + AppInstanceUser *AppInstanceUser `type:"structure"` } // String returns the string representation -func (s CreateBotOutput) String() string { +func (s DescribeAppInstanceUserOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateBotOutput) GoString() string { +func (s DescribeAppInstanceUserOutput) GoString() string { return s.String() } -// SetBot sets the Bot field's value. -func (s *CreateBotOutput) SetBot(v *Bot) *CreateBotOutput { - s.Bot = v +// SetAppInstanceUser sets the AppInstanceUser field's value. +func (s *DescribeAppInstanceUserOutput) SetAppInstanceUser(v *AppInstanceUser) *DescribeAppInstanceUserOutput { + s.AppInstanceUser = v return s } -type CreateMeetingDialOutInput struct { +type DescribeChannelBanInput struct { _ struct{} `type:"structure"` - // Phone number used as the caller ID when the remote party receives a call. - // - // FromPhoneNumber is a required field - FromPhoneNumber *string `type:"string" required:"true" sensitive:"true"` - - // Token used by the Amazon Chime SDK attendee. Call the CreateAttendee API - // (https://docs.aws.amazon.com/https:/docs.aws.amazon.com/chime/latest/APIReference/API_Attendee.html) - // to get a join token. - // - // JoinToken is a required field - JoinToken *string `min:"2" type:"string" required:"true" sensitive:"true"` - - // The Amazon Chime SDK meeting ID. - // - // Type: String - // - // Pattern: [a-fA-F0-9]{8}(?:-[a-fA-F0-9]{4}){3}-[a-fA-F0-9]{12} - // - // Required: No + // The ARN of the channel from which the user is banned. // - // MeetingId is a required field - MeetingId *string `location:"uri" locationName:"meetingId" type:"string" required:"true"` + // ChannelArn is a required field + ChannelArn *string `location:"uri" locationName:"channelArn" min:"5" type:"string" required:"true"` - // Phone number called when inviting someone to a meeting. + // The ARN of the member being banned. // - // ToPhoneNumber is a required field - ToPhoneNumber *string `type:"string" required:"true" sensitive:"true"` + // MemberArn is a required field + MemberArn *string `location:"uri" locationName:"memberArn" min:"5" type:"string" required:"true"` } // String returns the string representation -func (s CreateMeetingDialOutInput) String() string { +func (s DescribeChannelBanInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateMeetingDialOutInput) GoString() string { +func (s DescribeChannelBanInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *CreateMeetingDialOutInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateMeetingDialOutInput"} - if s.FromPhoneNumber == nil { - invalidParams.Add(request.NewErrParamRequired("FromPhoneNumber")) - } - if s.JoinToken == nil { - invalidParams.Add(request.NewErrParamRequired("JoinToken")) - } - if s.JoinToken != nil && len(*s.JoinToken) < 2 { - invalidParams.Add(request.NewErrParamMinLen("JoinToken", 2)) +func (s *DescribeChannelBanInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeChannelBanInput"} + if s.ChannelArn == nil { + invalidParams.Add(request.NewErrParamRequired("ChannelArn")) } - if s.MeetingId == nil { - invalidParams.Add(request.NewErrParamRequired("MeetingId")) + if s.ChannelArn != nil && len(*s.ChannelArn) < 5 { + invalidParams.Add(request.NewErrParamMinLen("ChannelArn", 5)) } - if s.MeetingId != nil && len(*s.MeetingId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("MeetingId", 1)) + if s.MemberArn == nil { + invalidParams.Add(request.NewErrParamRequired("MemberArn")) } - if s.ToPhoneNumber == nil { - invalidParams.Add(request.NewErrParamRequired("ToPhoneNumber")) + if s.MemberArn != nil && len(*s.MemberArn) < 5 { + invalidParams.Add(request.NewErrParamMinLen("MemberArn", 5)) } if invalidParams.Len() > 0 { @@ -16005,121 +26597,68 @@ func (s *CreateMeetingDialOutInput) Validate() error { return nil } -// SetFromPhoneNumber sets the FromPhoneNumber field's value. -func (s *CreateMeetingDialOutInput) SetFromPhoneNumber(v string) *CreateMeetingDialOutInput { - s.FromPhoneNumber = &v - return s -} - -// SetJoinToken sets the JoinToken field's value. -func (s *CreateMeetingDialOutInput) SetJoinToken(v string) *CreateMeetingDialOutInput { - s.JoinToken = &v - return s -} - -// SetMeetingId sets the MeetingId field's value. -func (s *CreateMeetingDialOutInput) SetMeetingId(v string) *CreateMeetingDialOutInput { - s.MeetingId = &v +// SetChannelArn sets the ChannelArn field's value. +func (s *DescribeChannelBanInput) SetChannelArn(v string) *DescribeChannelBanInput { + s.ChannelArn = &v return s } -// SetToPhoneNumber sets the ToPhoneNumber field's value. -func (s *CreateMeetingDialOutInput) SetToPhoneNumber(v string) *CreateMeetingDialOutInput { - s.ToPhoneNumber = &v +// SetMemberArn sets the MemberArn field's value. +func (s *DescribeChannelBanInput) SetMemberArn(v string) *DescribeChannelBanInput { + s.MemberArn = &v return s } -type CreateMeetingDialOutOutput struct { +type DescribeChannelBanOutput struct { _ struct{} `type:"structure"` - // Unique ID that tracks API calls. - TransactionId *string `type:"string"` + // The the details of the ban. + ChannelBan *ChannelBan `type:"structure"` } // String returns the string representation -func (s CreateMeetingDialOutOutput) String() string { +func (s DescribeChannelBanOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateMeetingDialOutOutput) GoString() string { +func (s DescribeChannelBanOutput) GoString() string { return s.String() } -// SetTransactionId sets the TransactionId field's value. -func (s *CreateMeetingDialOutOutput) SetTransactionId(v string) *CreateMeetingDialOutOutput { - s.TransactionId = &v +// SetChannelBan sets the ChannelBan field's value. +func (s *DescribeChannelBanOutput) SetChannelBan(v *ChannelBan) *DescribeChannelBanOutput { + s.ChannelBan = v return s } -type CreateMeetingInput struct { +type DescribeChannelInput struct { _ struct{} `type:"structure"` - // The unique identifier for the client request. Use a different token for different - // meetings. - ClientRequestToken *string `min:"2" type:"string" idempotencyToken:"true" sensitive:"true"` - - // The external meeting ID. - ExternalMeetingId *string `min:"2" type:"string" sensitive:"true"` - - // The Region in which to create the meeting. Default: us-east-1. + // The ARN of the channel. // - // Available values: af-south-1, ap-northeast-1, ap-northeast-2, ap-south-1, - // ap-southeast-1, ap-southeast-2, ca-central-1, eu-central-1, eu-north-1, eu-south-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. - MediaRegion *string `type:"string"` - - // Reserved. - MeetingHostId *string `min:"2" type:"string" sensitive:"true"` - - // The configuration for resource targets to receive notifications when meeting - // and attendee events occur. - NotificationsConfiguration *MeetingNotificationConfiguration `type:"structure"` - - // The tag key-value pairs. - Tags []*Tag `min:"1" type:"list"` + // ChannelArn is a required field + ChannelArn *string `location:"uri" locationName:"channelArn" min:"5" type:"string" required:"true"` } // String returns the string representation -func (s CreateMeetingInput) String() string { +func (s DescribeChannelInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateMeetingInput) GoString() string { +func (s DescribeChannelInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *CreateMeetingInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateMeetingInput"} - if s.ClientRequestToken != nil && len(*s.ClientRequestToken) < 2 { - invalidParams.Add(request.NewErrParamMinLen("ClientRequestToken", 2)) - } - if s.ExternalMeetingId != nil && len(*s.ExternalMeetingId) < 2 { - invalidParams.Add(request.NewErrParamMinLen("ExternalMeetingId", 2)) - } - if s.MeetingHostId != nil && len(*s.MeetingHostId) < 2 { - invalidParams.Add(request.NewErrParamMinLen("MeetingHostId", 2)) - } - if s.Tags != nil && len(s.Tags) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Tags", 1)) - } - if s.NotificationsConfiguration != nil { - if err := s.NotificationsConfiguration.Validate(); err != nil { - invalidParams.AddNested("NotificationsConfiguration", err.(request.ErrInvalidParams)) - } +func (s *DescribeChannelInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeChannelInput"} + if s.ChannelArn == nil { + invalidParams.Add(request.NewErrParamRequired("ChannelArn")) } - if s.Tags != nil { - for i, v := range s.Tags { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) - } - } + if s.ChannelArn != nil && len(*s.ChannelArn) < 5 { + invalidParams.Add(request.NewErrParamMinLen("ChannelArn", 5)) } if invalidParams.Len() > 0 { @@ -16128,150 +26667,131 @@ func (s *CreateMeetingInput) Validate() error { return nil } -// SetClientRequestToken sets the ClientRequestToken field's value. -func (s *CreateMeetingInput) SetClientRequestToken(v string) *CreateMeetingInput { - s.ClientRequestToken = &v +// SetChannelArn sets the ChannelArn field's value. +func (s *DescribeChannelInput) SetChannelArn(v string) *DescribeChannelInput { + s.ChannelArn = &v return s } -// SetExternalMeetingId sets the ExternalMeetingId field's value. -func (s *CreateMeetingInput) SetExternalMeetingId(v string) *CreateMeetingInput { - s.ExternalMeetingId = &v - return s +type DescribeChannelMembershipForAppInstanceUserInput struct { + _ struct{} `type:"structure"` + + // The ARN of the user in a channel. + // + // AppInstanceUserArn is a required field + AppInstanceUserArn *string `location:"querystring" locationName:"app-instance-user-arn" min:"5" type:"string" required:"true"` + + // The ARN of the channel to which the user belongs. + // + // ChannelArn is a required field + ChannelArn *string `location:"uri" locationName:"channelArn" min:"5" type:"string" required:"true"` } -// SetMediaRegion sets the MediaRegion field's value. -func (s *CreateMeetingInput) SetMediaRegion(v string) *CreateMeetingInput { - s.MediaRegion = &v - return s +// String returns the string representation +func (s DescribeChannelMembershipForAppInstanceUserInput) String() string { + return awsutil.Prettify(s) } -// SetMeetingHostId sets the MeetingHostId field's value. -func (s *CreateMeetingInput) SetMeetingHostId(v string) *CreateMeetingInput { - s.MeetingHostId = &v - return s +// GoString returns the string representation +func (s DescribeChannelMembershipForAppInstanceUserInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeChannelMembershipForAppInstanceUserInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeChannelMembershipForAppInstanceUserInput"} + if s.AppInstanceUserArn == nil { + invalidParams.Add(request.NewErrParamRequired("AppInstanceUserArn")) + } + if s.AppInstanceUserArn != nil && len(*s.AppInstanceUserArn) < 5 { + invalidParams.Add(request.NewErrParamMinLen("AppInstanceUserArn", 5)) + } + if s.ChannelArn == nil { + invalidParams.Add(request.NewErrParamRequired("ChannelArn")) + } + if s.ChannelArn != nil && len(*s.ChannelArn) < 5 { + invalidParams.Add(request.NewErrParamMinLen("ChannelArn", 5)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// SetNotificationsConfiguration sets the NotificationsConfiguration field's value. -func (s *CreateMeetingInput) SetNotificationsConfiguration(v *MeetingNotificationConfiguration) *CreateMeetingInput { - s.NotificationsConfiguration = v +// SetAppInstanceUserArn sets the AppInstanceUserArn field's value. +func (s *DescribeChannelMembershipForAppInstanceUserInput) SetAppInstanceUserArn(v string) *DescribeChannelMembershipForAppInstanceUserInput { + s.AppInstanceUserArn = &v return s } -// SetTags sets the Tags field's value. -func (s *CreateMeetingInput) SetTags(v []*Tag) *CreateMeetingInput { - s.Tags = v +// SetChannelArn sets the ChannelArn field's value. +func (s *DescribeChannelMembershipForAppInstanceUserInput) SetChannelArn(v string) *DescribeChannelMembershipForAppInstanceUserInput { + s.ChannelArn = &v return s } -type CreateMeetingOutput struct { +type DescribeChannelMembershipForAppInstanceUserOutput struct { _ struct{} `type:"structure"` - // The meeting information, including the meeting ID and MediaPlacement. - Meeting *Meeting `type:"structure"` + // The channel to which a user belongs. + ChannelMembership *ChannelMembershipForAppInstanceUserSummary `type:"structure"` } // String returns the string representation -func (s CreateMeetingOutput) String() string { +func (s DescribeChannelMembershipForAppInstanceUserOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateMeetingOutput) GoString() string { +func (s DescribeChannelMembershipForAppInstanceUserOutput) GoString() string { return s.String() } -// SetMeeting sets the Meeting field's value. -func (s *CreateMeetingOutput) SetMeeting(v *Meeting) *CreateMeetingOutput { - s.Meeting = v +// SetChannelMembership sets the ChannelMembership field's value. +func (s *DescribeChannelMembershipForAppInstanceUserOutput) SetChannelMembership(v *ChannelMembershipForAppInstanceUserSummary) *DescribeChannelMembershipForAppInstanceUserOutput { + s.ChannelMembership = v return s } -type CreateMeetingWithAttendeesInput struct { +type DescribeChannelMembershipInput struct { _ struct{} `type:"structure"` - // The request containing the attendees to create. - Attendees []*CreateAttendeeRequestItem `min:"1" type:"list"` - - // The unique identifier for the client request. Use a different token for different - // meetings. - ClientRequestToken *string `min:"2" type:"string" idempotencyToken:"true" sensitive:"true"` - - // The external meeting ID. - ExternalMeetingId *string `min:"2" type:"string" sensitive:"true"` - - // The Region in which to create the meeting. Default: us-east-1. + // The ARN of the channel. // - // Available values: af-south-1, ap-northeast-1, ap-northeast-2, ap-south-1, - // ap-southeast-1, ap-southeast-2, ca-central-1, eu-central-1, eu-north-1, eu-south-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. - MediaRegion *string `type:"string"` + // ChannelArn is a required field + ChannelArn *string `location:"uri" locationName:"channelArn" min:"5" type:"string" required:"true"` - // Reserved. - MeetingHostId *string `min:"2" type:"string" sensitive:"true"` - - // The configuration for resource targets to receive notifications when Amazon - // Chime SDK meeting and attendee events occur. The Amazon Chime SDK supports - // resource targets located in the US East (N. Virginia) AWS Region (us-east-1). - NotificationsConfiguration *MeetingNotificationConfiguration `type:"structure"` - - // The tag key-value pairs. - Tags []*Tag `min:"1" type:"list"` + // The ARN of the member. + // + // MemberArn is a required field + MemberArn *string `location:"uri" locationName:"memberArn" min:"5" type:"string" required:"true"` } // String returns the string representation -func (s CreateMeetingWithAttendeesInput) String() string { +func (s DescribeChannelMembershipInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateMeetingWithAttendeesInput) GoString() string { +func (s DescribeChannelMembershipInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *CreateMeetingWithAttendeesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateMeetingWithAttendeesInput"} - if s.Attendees != nil && len(s.Attendees) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Attendees", 1)) - } - if s.ClientRequestToken != nil && len(*s.ClientRequestToken) < 2 { - invalidParams.Add(request.NewErrParamMinLen("ClientRequestToken", 2)) - } - if s.ExternalMeetingId != nil && len(*s.ExternalMeetingId) < 2 { - invalidParams.Add(request.NewErrParamMinLen("ExternalMeetingId", 2)) - } - if s.MeetingHostId != nil && len(*s.MeetingHostId) < 2 { - invalidParams.Add(request.NewErrParamMinLen("MeetingHostId", 2)) - } - if s.Tags != nil && len(s.Tags) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Tags", 1)) +func (s *DescribeChannelMembershipInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeChannelMembershipInput"} + if s.ChannelArn == nil { + invalidParams.Add(request.NewErrParamRequired("ChannelArn")) } - if s.Attendees != nil { - for i, v := range s.Attendees { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Attendees", i), err.(request.ErrInvalidParams)) - } - } + if s.ChannelArn != nil && len(*s.ChannelArn) < 5 { + invalidParams.Add(request.NewErrParamMinLen("ChannelArn", 5)) } - if s.NotificationsConfiguration != nil { - if err := s.NotificationsConfiguration.Validate(); err != nil { - invalidParams.AddNested("NotificationsConfiguration", err.(request.ErrInvalidParams)) - } + if s.MemberArn == nil { + invalidParams.Add(request.NewErrParamRequired("MemberArn")) } - if s.Tags != nil { - for i, v := range s.Tags { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) - } - } + if s.MemberArn != nil && len(*s.MemberArn) < 5 { + invalidParams.Add(request.NewErrParamMinLen("MemberArn", 5)) } if invalidParams.Len() > 0 { @@ -16280,122 +26800,79 @@ func (s *CreateMeetingWithAttendeesInput) Validate() error { return nil } -// SetAttendees sets the Attendees field's value. -func (s *CreateMeetingWithAttendeesInput) SetAttendees(v []*CreateAttendeeRequestItem) *CreateMeetingWithAttendeesInput { - s.Attendees = v - return s -} - -// SetClientRequestToken sets the ClientRequestToken field's value. -func (s *CreateMeetingWithAttendeesInput) SetClientRequestToken(v string) *CreateMeetingWithAttendeesInput { - s.ClientRequestToken = &v - return s -} - -// SetExternalMeetingId sets the ExternalMeetingId field's value. -func (s *CreateMeetingWithAttendeesInput) SetExternalMeetingId(v string) *CreateMeetingWithAttendeesInput { - s.ExternalMeetingId = &v - return s -} - -// SetMediaRegion sets the MediaRegion field's value. -func (s *CreateMeetingWithAttendeesInput) SetMediaRegion(v string) *CreateMeetingWithAttendeesInput { - s.MediaRegion = &v - return s -} - -// SetMeetingHostId sets the MeetingHostId field's value. -func (s *CreateMeetingWithAttendeesInput) SetMeetingHostId(v string) *CreateMeetingWithAttendeesInput { - s.MeetingHostId = &v - return s -} - -// SetNotificationsConfiguration sets the NotificationsConfiguration field's value. -func (s *CreateMeetingWithAttendeesInput) SetNotificationsConfiguration(v *MeetingNotificationConfiguration) *CreateMeetingWithAttendeesInput { - s.NotificationsConfiguration = v +// SetChannelArn sets the ChannelArn field's value. +func (s *DescribeChannelMembershipInput) SetChannelArn(v string) *DescribeChannelMembershipInput { + s.ChannelArn = &v return s } -// SetTags sets the Tags field's value. -func (s *CreateMeetingWithAttendeesInput) SetTags(v []*Tag) *CreateMeetingWithAttendeesInput { - s.Tags = v +// SetMemberArn sets the MemberArn field's value. +func (s *DescribeChannelMembershipInput) SetMemberArn(v string) *DescribeChannelMembershipInput { + s.MemberArn = &v return s } -type CreateMeetingWithAttendeesOutput struct { +type DescribeChannelMembershipOutput struct { _ struct{} `type:"structure"` - // The attendee information, including attendees IDs and join tokens. - Attendees []*Attendee `type:"list"` - - // If the action fails for one or more of the attendees in the request, a list - // of the attendees is returned, along with error codes and error messages. - Errors []*CreateAttendeeError `type:"list"` - - // A meeting created using the Amazon Chime SDK. - Meeting *Meeting `type:"structure"` + // The details of the membership. + ChannelMembership *ChannelMembership `type:"structure"` } // String returns the string representation -func (s CreateMeetingWithAttendeesOutput) String() string { +func (s DescribeChannelMembershipOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateMeetingWithAttendeesOutput) GoString() string { +func (s DescribeChannelMembershipOutput) GoString() string { return s.String() } -// SetAttendees sets the Attendees field's value. -func (s *CreateMeetingWithAttendeesOutput) SetAttendees(v []*Attendee) *CreateMeetingWithAttendeesOutput { - s.Attendees = v - return s -} - -// SetErrors sets the Errors field's value. -func (s *CreateMeetingWithAttendeesOutput) SetErrors(v []*CreateAttendeeError) *CreateMeetingWithAttendeesOutput { - s.Errors = v - return s -} - -// SetMeeting sets the Meeting field's value. -func (s *CreateMeetingWithAttendeesOutput) SetMeeting(v *Meeting) *CreateMeetingWithAttendeesOutput { - s.Meeting = v +// SetChannelMembership sets the ChannelMembership field's value. +func (s *DescribeChannelMembershipOutput) SetChannelMembership(v *ChannelMembership) *DescribeChannelMembershipOutput { + s.ChannelMembership = v return s } -type CreatePhoneNumberOrderInput struct { +type DescribeChannelModeratedByAppInstanceUserInput struct { _ struct{} `type:"structure"` - // List of phone numbers, in E.164 format. + // The ARN of the app instance user in the moderated channel. // - // E164PhoneNumbers is a required field - E164PhoneNumbers []*string `type:"list" required:"true"` + // AppInstanceUserArn is a required field + AppInstanceUserArn *string `location:"querystring" locationName:"app-instance-user-arn" min:"5" type:"string" required:"true"` - // The phone number product type. + // The ARN of the moderated channel. // - // ProductType is a required field - ProductType *string `type:"string" required:"true" enum:"PhoneNumberProductType"` + // ChannelArn is a required field + ChannelArn *string `location:"uri" locationName:"channelArn" min:"5" type:"string" required:"true"` } // String returns the string representation -func (s CreatePhoneNumberOrderInput) String() string { +func (s DescribeChannelModeratedByAppInstanceUserInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreatePhoneNumberOrderInput) GoString() string { +func (s DescribeChannelModeratedByAppInstanceUserInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *CreatePhoneNumberOrderInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreatePhoneNumberOrderInput"} - if s.E164PhoneNumbers == nil { - invalidParams.Add(request.NewErrParamRequired("E164PhoneNumbers")) +func (s *DescribeChannelModeratedByAppInstanceUserInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeChannelModeratedByAppInstanceUserInput"} + if s.AppInstanceUserArn == nil { + invalidParams.Add(request.NewErrParamRequired("AppInstanceUserArn")) } - if s.ProductType == nil { - invalidParams.Add(request.NewErrParamRequired("ProductType")) + if s.AppInstanceUserArn != nil && len(*s.AppInstanceUserArn) < 5 { + invalidParams.Add(request.NewErrParamMinLen("AppInstanceUserArn", 5)) + } + if s.ChannelArn == nil { + invalidParams.Add(request.NewErrParamRequired("ChannelArn")) + } + if s.ChannelArn != nil && len(*s.ChannelArn) < 5 { + invalidParams.Add(request.NewErrParamMinLen("ChannelArn", 5)) } if invalidParams.Len() > 0 { @@ -16404,112 +26881,79 @@ func (s *CreatePhoneNumberOrderInput) Validate() error { return nil } -// SetE164PhoneNumbers sets the E164PhoneNumbers field's value. -func (s *CreatePhoneNumberOrderInput) SetE164PhoneNumbers(v []*string) *CreatePhoneNumberOrderInput { - s.E164PhoneNumbers = v +// SetAppInstanceUserArn sets the AppInstanceUserArn field's value. +func (s *DescribeChannelModeratedByAppInstanceUserInput) SetAppInstanceUserArn(v string) *DescribeChannelModeratedByAppInstanceUserInput { + s.AppInstanceUserArn = &v return s } -// SetProductType sets the ProductType field's value. -func (s *CreatePhoneNumberOrderInput) SetProductType(v string) *CreatePhoneNumberOrderInput { - s.ProductType = &v +// SetChannelArn sets the ChannelArn field's value. +func (s *DescribeChannelModeratedByAppInstanceUserInput) SetChannelArn(v string) *DescribeChannelModeratedByAppInstanceUserInput { + s.ChannelArn = &v return s } -type CreatePhoneNumberOrderOutput struct { +type DescribeChannelModeratedByAppInstanceUserOutput struct { _ struct{} `type:"structure"` - // The phone number order details. - PhoneNumberOrder *PhoneNumberOrder `type:"structure"` + // The moderated channel. + Channel *ChannelModeratedByAppInstanceUserSummary `type:"structure"` } // String returns the string representation -func (s CreatePhoneNumberOrderOutput) String() string { +func (s DescribeChannelModeratedByAppInstanceUserOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreatePhoneNumberOrderOutput) GoString() string { +func (s DescribeChannelModeratedByAppInstanceUserOutput) GoString() string { return s.String() } -// SetPhoneNumberOrder sets the PhoneNumberOrder field's value. -func (s *CreatePhoneNumberOrderOutput) SetPhoneNumberOrder(v *PhoneNumberOrder) *CreatePhoneNumberOrderOutput { - s.PhoneNumberOrder = v +// SetChannel sets the Channel field's value. +func (s *DescribeChannelModeratedByAppInstanceUserOutput) SetChannel(v *ChannelModeratedByAppInstanceUserSummary) *DescribeChannelModeratedByAppInstanceUserOutput { + s.Channel = v return s } -type CreateProxySessionInput struct { +type DescribeChannelModeratorInput struct { _ struct{} `type:"structure"` - // The proxy session capabilities. - // - // Capabilities is a required field - Capabilities []*string `type:"list" required:"true"` - - // The number of minutes allowed for the proxy session. - ExpiryMinutes *int64 `min:"1" type:"integer"` - - // The preference for matching the country or area code of the proxy phone number - // with that of the first participant. - GeoMatchLevel *string `type:"string" enum:"GeoMatchLevel"` - - // The country and area code for the proxy phone number. - GeoMatchParams *GeoMatchParams `type:"structure"` - - // The name of the proxy session. - Name *string `type:"string" sensitive:"true"` - - // The preference for proxy phone number reuse, or stickiness, between the same - // participants across sessions. - NumberSelectionBehavior *string `type:"string" enum:"NumberSelectionBehavior"` - - // The participant phone numbers. + // The ARN of the channel. // - // ParticipantPhoneNumbers is a required field - ParticipantPhoneNumbers []*string `min:"2" type:"list" required:"true"` + // ChannelArn is a required field + ChannelArn *string `location:"uri" locationName:"channelArn" min:"5" type:"string" required:"true"` - // The Amazon Chime voice connector ID. + // The ARN of the channel moderator. // - // VoiceConnectorId is a required field - VoiceConnectorId *string `location:"uri" locationName:"voiceConnectorId" min:"1" type:"string" required:"true"` + // ChannelModeratorArn is a required field + ChannelModeratorArn *string `location:"uri" locationName:"channelModeratorArn" min:"5" type:"string" required:"true"` } // String returns the string representation -func (s CreateProxySessionInput) String() string { +func (s DescribeChannelModeratorInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateProxySessionInput) GoString() string { +func (s DescribeChannelModeratorInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *CreateProxySessionInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateProxySessionInput"} - if s.Capabilities == nil { - invalidParams.Add(request.NewErrParamRequired("Capabilities")) - } - if s.ExpiryMinutes != nil && *s.ExpiryMinutes < 1 { - invalidParams.Add(request.NewErrParamMinValue("ExpiryMinutes", 1)) - } - if s.ParticipantPhoneNumbers == nil { - invalidParams.Add(request.NewErrParamRequired("ParticipantPhoneNumbers")) - } - if s.ParticipantPhoneNumbers != nil && len(s.ParticipantPhoneNumbers) < 2 { - invalidParams.Add(request.NewErrParamMinLen("ParticipantPhoneNumbers", 2)) +func (s *DescribeChannelModeratorInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeChannelModeratorInput"} + if s.ChannelArn == nil { + invalidParams.Add(request.NewErrParamRequired("ChannelArn")) } - if s.VoiceConnectorId == nil { - invalidParams.Add(request.NewErrParamRequired("VoiceConnectorId")) + if s.ChannelArn != nil && len(*s.ChannelArn) < 5 { + invalidParams.Add(request.NewErrParamMinLen("ChannelArn", 5)) } - if s.VoiceConnectorId != nil && len(*s.VoiceConnectorId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("VoiceConnectorId", 1)) + if s.ChannelModeratorArn == nil { + invalidParams.Add(request.NewErrParamRequired("ChannelModeratorArn")) } - if s.GeoMatchParams != nil { - if err := s.GeoMatchParams.Validate(); err != nil { - invalidParams.AddNested("GeoMatchParams", err.(request.ErrInvalidParams)) - } + if s.ChannelModeratorArn != nil && len(*s.ChannelModeratorArn) < 5 { + invalidParams.Add(request.NewErrParamMinLen("ChannelModeratorArn", 5)) } if invalidParams.Len() > 0 { @@ -16518,78 +26962,65 @@ func (s *CreateProxySessionInput) Validate() error { return nil } -// SetCapabilities sets the Capabilities field's value. -func (s *CreateProxySessionInput) SetCapabilities(v []*string) *CreateProxySessionInput { - s.Capabilities = v - return s -} - -// SetExpiryMinutes sets the ExpiryMinutes field's value. -func (s *CreateProxySessionInput) SetExpiryMinutes(v int64) *CreateProxySessionInput { - s.ExpiryMinutes = &v +// SetChannelArn sets the ChannelArn field's value. +func (s *DescribeChannelModeratorInput) SetChannelArn(v string) *DescribeChannelModeratorInput { + s.ChannelArn = &v return s } -// SetGeoMatchLevel sets the GeoMatchLevel field's value. -func (s *CreateProxySessionInput) SetGeoMatchLevel(v string) *CreateProxySessionInput { - s.GeoMatchLevel = &v +// SetChannelModeratorArn sets the ChannelModeratorArn field's value. +func (s *DescribeChannelModeratorInput) SetChannelModeratorArn(v string) *DescribeChannelModeratorInput { + s.ChannelModeratorArn = &v return s } -// SetGeoMatchParams sets the GeoMatchParams field's value. -func (s *CreateProxySessionInput) SetGeoMatchParams(v *GeoMatchParams) *CreateProxySessionInput { - s.GeoMatchParams = v - return s -} +type DescribeChannelModeratorOutput struct { + _ struct{} `type:"structure"` -// SetName sets the Name field's value. -func (s *CreateProxySessionInput) SetName(v string) *CreateProxySessionInput { - s.Name = &v - return s + // The details of the channel moderator. + ChannelModerator *ChannelModerator `type:"structure"` } -// SetNumberSelectionBehavior sets the NumberSelectionBehavior field's value. -func (s *CreateProxySessionInput) SetNumberSelectionBehavior(v string) *CreateProxySessionInput { - s.NumberSelectionBehavior = &v - return s +// String returns the string representation +func (s DescribeChannelModeratorOutput) String() string { + return awsutil.Prettify(s) } -// SetParticipantPhoneNumbers sets the ParticipantPhoneNumbers field's value. -func (s *CreateProxySessionInput) SetParticipantPhoneNumbers(v []*string) *CreateProxySessionInput { - s.ParticipantPhoneNumbers = v - return s +// GoString returns the string representation +func (s DescribeChannelModeratorOutput) GoString() string { + return s.String() } -// SetVoiceConnectorId sets the VoiceConnectorId field's value. -func (s *CreateProxySessionInput) SetVoiceConnectorId(v string) *CreateProxySessionInput { - s.VoiceConnectorId = &v +// SetChannelModerator sets the ChannelModerator field's value. +func (s *DescribeChannelModeratorOutput) SetChannelModerator(v *ChannelModerator) *DescribeChannelModeratorOutput { + s.ChannelModerator = v return s } -type CreateProxySessionOutput struct { +type DescribeChannelOutput struct { _ struct{} `type:"structure"` - // The proxy session details. - ProxySession *ProxySession `type:"structure"` + // The channel details. + Channel *Channel `type:"structure"` } // String returns the string representation -func (s CreateProxySessionOutput) String() string { +func (s DescribeChannelOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateProxySessionOutput) GoString() string { +func (s DescribeChannelOutput) GoString() string { return s.String() } -// SetProxySession sets the ProxySession field's value. -func (s *CreateProxySessionOutput) SetProxySession(v *ProxySession) *CreateProxySessionOutput { - s.ProxySession = v +// SetChannel sets the Channel field's value. +func (s *DescribeChannelOutput) SetChannel(v *Channel) *DescribeChannelOutput { + s.Channel = v return s } -type CreateRoomInput struct { +type DisassociatePhoneNumberFromUserInput struct { _ struct{} `type:"structure"` // The Amazon Chime account ID. @@ -16597,39 +27028,36 @@ type CreateRoomInput struct { // AccountId is a required field AccountId *string `location:"uri" locationName:"accountId" type:"string" required:"true"` - // The idempotency token for the request. - ClientRequestToken *string `min:"2" type:"string" idempotencyToken:"true" sensitive:"true"` - - // The room name. + // The user ID. // - // Name is a required field - Name *string `type:"string" required:"true" sensitive:"true"` + // UserId is a required field + UserId *string `location:"uri" locationName:"userId" type:"string" required:"true"` } // String returns the string representation -func (s CreateRoomInput) String() string { +func (s DisassociatePhoneNumberFromUserInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateRoomInput) GoString() string { +func (s DisassociatePhoneNumberFromUserInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *CreateRoomInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateRoomInput"} +func (s *DisassociatePhoneNumberFromUserInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DisassociatePhoneNumberFromUserInput"} if s.AccountId == nil { invalidParams.Add(request.NewErrParamRequired("AccountId")) } if s.AccountId != nil && len(*s.AccountId) < 1 { invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) } - if s.ClientRequestToken != nil && len(*s.ClientRequestToken) < 2 { - invalidParams.Add(request.NewErrParamMinLen("ClientRequestToken", 2)) + if s.UserId == nil { + invalidParams.Add(request.NewErrParamRequired("UserId")) } - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) + if s.UserId != nil && len(*s.UserId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("UserId", 1)) } if invalidParams.Len() > 0 { @@ -16639,72 +27067,66 @@ func (s *CreateRoomInput) Validate() error { } // SetAccountId sets the AccountId field's value. -func (s *CreateRoomInput) SetAccountId(v string) *CreateRoomInput { +func (s *DisassociatePhoneNumberFromUserInput) SetAccountId(v string) *DisassociatePhoneNumberFromUserInput { s.AccountId = &v return s } -// SetClientRequestToken sets the ClientRequestToken field's value. -func (s *CreateRoomInput) SetClientRequestToken(v string) *CreateRoomInput { - s.ClientRequestToken = &v +// SetUserId sets the UserId field's value. +func (s *DisassociatePhoneNumberFromUserInput) SetUserId(v string) *DisassociatePhoneNumberFromUserInput { + s.UserId = &v return s } -// SetName sets the Name field's value. -func (s *CreateRoomInput) SetName(v string) *CreateRoomInput { - s.Name = &v - return s +type DisassociatePhoneNumberFromUserOutput struct { + _ struct{} `type:"structure"` } -type CreateRoomMembershipInput struct { - _ struct{} `type:"structure"` +// String returns the string representation +func (s DisassociatePhoneNumberFromUserOutput) String() string { + return awsutil.Prettify(s) +} - // The Amazon Chime account ID. - // - // AccountId is a required field - AccountId *string `location:"uri" locationName:"accountId" type:"string" required:"true"` +// GoString returns the string representation +func (s DisassociatePhoneNumberFromUserOutput) GoString() string { + return s.String() +} - // The Amazon Chime member ID (user ID or bot ID). - // - // MemberId is a required field - MemberId *string `type:"string" required:"true"` +type DisassociatePhoneNumbersFromVoiceConnectorGroupInput struct { + _ struct{} `type:"structure"` - // The role of the member. - Role *string `type:"string" enum:"RoomMembershipRole"` + // List of phone numbers, in E.164 format. + // + // E164PhoneNumbers is a required field + E164PhoneNumbers []*string `type:"list" required:"true"` - // The room ID. + // The Amazon Chime Voice Connector group ID. // - // RoomId is a required field - RoomId *string `location:"uri" locationName:"roomId" type:"string" required:"true"` + // VoiceConnectorGroupId is a required field + VoiceConnectorGroupId *string `location:"uri" locationName:"voiceConnectorGroupId" type:"string" required:"true"` } // String returns the string representation -func (s CreateRoomMembershipInput) String() string { +func (s DisassociatePhoneNumbersFromVoiceConnectorGroupInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateRoomMembershipInput) GoString() string { +func (s DisassociatePhoneNumbersFromVoiceConnectorGroupInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *CreateRoomMembershipInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateRoomMembershipInput"} - if s.AccountId == nil { - invalidParams.Add(request.NewErrParamRequired("AccountId")) - } - if s.AccountId != nil && len(*s.AccountId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) - } - if s.MemberId == nil { - invalidParams.Add(request.NewErrParamRequired("MemberId")) +func (s *DisassociatePhoneNumbersFromVoiceConnectorGroupInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DisassociatePhoneNumbersFromVoiceConnectorGroupInput"} + if s.E164PhoneNumbers == nil { + invalidParams.Add(request.NewErrParamRequired("E164PhoneNumbers")) } - if s.RoomId == nil { - invalidParams.Add(request.NewErrParamRequired("RoomId")) + if s.VoiceConnectorGroupId == nil { + invalidParams.Add(request.NewErrParamRequired("VoiceConnectorGroupId")) } - if s.RoomId != nil && len(*s.RoomId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("RoomId", 1)) + if s.VoiceConnectorGroupId != nil && len(*s.VoiceConnectorGroupId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VoiceConnectorGroupId", 1)) } if invalidParams.Len() > 0 { @@ -16713,109 +27135,161 @@ func (s *CreateRoomMembershipInput) Validate() error { return nil } -// SetAccountId sets the AccountId field's value. -func (s *CreateRoomMembershipInput) SetAccountId(v string) *CreateRoomMembershipInput { - s.AccountId = &v +// SetE164PhoneNumbers sets the E164PhoneNumbers field's value. +func (s *DisassociatePhoneNumbersFromVoiceConnectorGroupInput) SetE164PhoneNumbers(v []*string) *DisassociatePhoneNumbersFromVoiceConnectorGroupInput { + s.E164PhoneNumbers = v return s } -// SetMemberId sets the MemberId field's value. -func (s *CreateRoomMembershipInput) SetMemberId(v string) *CreateRoomMembershipInput { - s.MemberId = &v +// SetVoiceConnectorGroupId sets the VoiceConnectorGroupId field's value. +func (s *DisassociatePhoneNumbersFromVoiceConnectorGroupInput) SetVoiceConnectorGroupId(v string) *DisassociatePhoneNumbersFromVoiceConnectorGroupInput { + s.VoiceConnectorGroupId = &v return s } -// SetRole sets the Role field's value. -func (s *CreateRoomMembershipInput) SetRole(v string) *CreateRoomMembershipInput { - s.Role = &v - return s +type DisassociatePhoneNumbersFromVoiceConnectorGroupOutput struct { + _ struct{} `type:"structure"` + + // If the action fails for one or more of the phone numbers in the request, + // a list of the phone numbers is returned, along with error codes and error + // messages. + PhoneNumberErrors []*PhoneNumberError `type:"list"` } -// SetRoomId sets the RoomId field's value. -func (s *CreateRoomMembershipInput) SetRoomId(v string) *CreateRoomMembershipInput { - s.RoomId = &v +// String returns the string representation +func (s DisassociatePhoneNumbersFromVoiceConnectorGroupOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DisassociatePhoneNumbersFromVoiceConnectorGroupOutput) GoString() string { + return s.String() +} + +// SetPhoneNumberErrors sets the PhoneNumberErrors field's value. +func (s *DisassociatePhoneNumbersFromVoiceConnectorGroupOutput) SetPhoneNumberErrors(v []*PhoneNumberError) *DisassociatePhoneNumbersFromVoiceConnectorGroupOutput { + s.PhoneNumberErrors = v return s } -type CreateRoomMembershipOutput struct { +type DisassociatePhoneNumbersFromVoiceConnectorInput struct { _ struct{} `type:"structure"` - // The room membership details. - RoomMembership *RoomMembership `type:"structure"` + // List of phone numbers, in E.164 format. + // + // E164PhoneNumbers is a required field + E164PhoneNumbers []*string `type:"list" required:"true"` + + // The Amazon Chime Voice Connector ID. + // + // VoiceConnectorId is a required field + VoiceConnectorId *string `location:"uri" locationName:"voiceConnectorId" type:"string" required:"true"` } // String returns the string representation -func (s CreateRoomMembershipOutput) String() string { +func (s DisassociatePhoneNumbersFromVoiceConnectorInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateRoomMembershipOutput) GoString() string { +func (s DisassociatePhoneNumbersFromVoiceConnectorInput) GoString() string { return s.String() } -// SetRoomMembership sets the RoomMembership field's value. -func (s *CreateRoomMembershipOutput) SetRoomMembership(v *RoomMembership) *CreateRoomMembershipOutput { - s.RoomMembership = v +// Validate inspects the fields of the type to determine if they are valid. +func (s *DisassociatePhoneNumbersFromVoiceConnectorInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DisassociatePhoneNumbersFromVoiceConnectorInput"} + if s.E164PhoneNumbers == nil { + invalidParams.Add(request.NewErrParamRequired("E164PhoneNumbers")) + } + if s.VoiceConnectorId == nil { + invalidParams.Add(request.NewErrParamRequired("VoiceConnectorId")) + } + if s.VoiceConnectorId != nil && len(*s.VoiceConnectorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VoiceConnectorId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetE164PhoneNumbers sets the E164PhoneNumbers field's value. +func (s *DisassociatePhoneNumbersFromVoiceConnectorInput) SetE164PhoneNumbers(v []*string) *DisassociatePhoneNumbersFromVoiceConnectorInput { + s.E164PhoneNumbers = v return s } -type CreateRoomOutput struct { +// SetVoiceConnectorId sets the VoiceConnectorId field's value. +func (s *DisassociatePhoneNumbersFromVoiceConnectorInput) SetVoiceConnectorId(v string) *DisassociatePhoneNumbersFromVoiceConnectorInput { + s.VoiceConnectorId = &v + return s +} + +type DisassociatePhoneNumbersFromVoiceConnectorOutput struct { _ struct{} `type:"structure"` - // The room details. - Room *Room `type:"structure"` + // If the action fails for one or more of the phone numbers in the request, + // a list of the phone numbers is returned, along with error codes and error + // messages. + PhoneNumberErrors []*PhoneNumberError `type:"list"` } // String returns the string representation -func (s CreateRoomOutput) String() string { +func (s DisassociatePhoneNumbersFromVoiceConnectorOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateRoomOutput) GoString() string { +func (s DisassociatePhoneNumbersFromVoiceConnectorOutput) GoString() string { return s.String() } -// SetRoom sets the Room field's value. -func (s *CreateRoomOutput) SetRoom(v *Room) *CreateRoomOutput { - s.Room = v +// SetPhoneNumberErrors sets the PhoneNumberErrors field's value. +func (s *DisassociatePhoneNumbersFromVoiceConnectorOutput) SetPhoneNumberErrors(v []*PhoneNumberError) *DisassociatePhoneNumbersFromVoiceConnectorOutput { + s.PhoneNumberErrors = v return s } -type CreateSipMediaApplicationCallInput struct { +type DisassociateSigninDelegateGroupsFromAccountInput struct { _ struct{} `type:"structure"` - // The phone number that a user calls from. - FromPhoneNumber *string `type:"string" sensitive:"true"` - - // The ID of the SIP media application. + // The Amazon Chime account ID. // - // SipMediaApplicationId is a required field - SipMediaApplicationId *string `location:"uri" locationName:"sipMediaApplicationId" type:"string" required:"true"` + // AccountId is a required field + AccountId *string `location:"uri" locationName:"accountId" type:"string" required:"true"` - // The phone number that the user dials in order to connect to a meeting - ToPhoneNumber *string `type:"string" sensitive:"true"` + // The sign-in delegate group names. + // + // GroupNames is a required field + GroupNames []*string `min:"1" type:"list" required:"true"` } // String returns the string representation -func (s CreateSipMediaApplicationCallInput) String() string { +func (s DisassociateSigninDelegateGroupsFromAccountInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateSipMediaApplicationCallInput) GoString() string { +func (s DisassociateSigninDelegateGroupsFromAccountInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *CreateSipMediaApplicationCallInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateSipMediaApplicationCallInput"} - if s.SipMediaApplicationId == nil { - invalidParams.Add(request.NewErrParamRequired("SipMediaApplicationId")) +func (s *DisassociateSigninDelegateGroupsFromAccountInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DisassociateSigninDelegateGroupsFromAccountInput"} + if s.AccountId == nil { + invalidParams.Add(request.NewErrParamRequired("AccountId")) + } + if s.AccountId != nil && len(*s.AccountId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) + } + if s.GroupNames == nil { + invalidParams.Add(request.NewErrParamRequired("GroupNames")) } - if s.SipMediaApplicationId != nil && len(*s.SipMediaApplicationId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("SipMediaApplicationId", 1)) + if s.GroupNames != nil && len(s.GroupNames) < 1 { + invalidParams.Add(request.NewErrParamMinLen("GroupNames", 1)) } if invalidParams.Len() > 0 { @@ -16824,89 +27298,64 @@ func (s *CreateSipMediaApplicationCallInput) Validate() error { return nil } -// SetFromPhoneNumber sets the FromPhoneNumber field's value. -func (s *CreateSipMediaApplicationCallInput) SetFromPhoneNumber(v string) *CreateSipMediaApplicationCallInput { - s.FromPhoneNumber = &v - return s -} - -// SetSipMediaApplicationId sets the SipMediaApplicationId field's value. -func (s *CreateSipMediaApplicationCallInput) SetSipMediaApplicationId(v string) *CreateSipMediaApplicationCallInput { - s.SipMediaApplicationId = &v +// SetAccountId sets the AccountId field's value. +func (s *DisassociateSigninDelegateGroupsFromAccountInput) SetAccountId(v string) *DisassociateSigninDelegateGroupsFromAccountInput { + s.AccountId = &v return s } -// SetToPhoneNumber sets the ToPhoneNumber field's value. -func (s *CreateSipMediaApplicationCallInput) SetToPhoneNumber(v string) *CreateSipMediaApplicationCallInput { - s.ToPhoneNumber = &v +// SetGroupNames sets the GroupNames field's value. +func (s *DisassociateSigninDelegateGroupsFromAccountInput) SetGroupNames(v []*string) *DisassociateSigninDelegateGroupsFromAccountInput { + s.GroupNames = v return s } -type CreateSipMediaApplicationCallOutput struct { +type DisassociateSigninDelegateGroupsFromAccountOutput struct { _ struct{} `type:"structure"` - - // The actual call. - SipMediaApplicationCall *SipMediaApplicationCall `type:"structure"` } // String returns the string representation -func (s CreateSipMediaApplicationCallOutput) String() string { +func (s DisassociateSigninDelegateGroupsFromAccountOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateSipMediaApplicationCallOutput) GoString() string { +func (s DisassociateSigninDelegateGroupsFromAccountOutput) GoString() string { return s.String() } -// SetSipMediaApplicationCall sets the SipMediaApplicationCall field's value. -func (s *CreateSipMediaApplicationCallOutput) SetSipMediaApplicationCall(v *SipMediaApplicationCall) *CreateSipMediaApplicationCallOutput { - s.SipMediaApplicationCall = v - return s -} - -type CreateSipMediaApplicationInput struct { +// The emergency calling configuration details associated with an Amazon Chime +// Voice Connector. +type EmergencyCallingConfiguration struct { _ struct{} `type:"structure"` - // AWS Region assigned to the SIP media application. - // - // AwsRegion is a required field - AwsRegion *string `type:"string" required:"true"` - - // List of endpoints (Lambda Amazon Resource Names) specified for the SIP media - // application. Currently, only one endpoint is supported. - // - // Endpoints is a required field - Endpoints []*SipMediaApplicationEndpoint `min:"1" type:"list" required:"true"` - - // The SIP media application name. - Name *string `min:"1" type:"string"` + // The Dialed Number Identification Service (DNIS) emergency calling configuration + // details. + DNIS []*DNISEmergencyCallingConfiguration `type:"list"` } // String returns the string representation -func (s CreateSipMediaApplicationInput) String() string { +func (s EmergencyCallingConfiguration) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateSipMediaApplicationInput) GoString() string { +func (s EmergencyCallingConfiguration) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *CreateSipMediaApplicationInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateSipMediaApplicationInput"} - if s.AwsRegion == nil { - invalidParams.Add(request.NewErrParamRequired("AwsRegion")) - } - if s.Endpoints == nil { - invalidParams.Add(request.NewErrParamRequired("Endpoints")) - } - if s.Endpoints != nil && len(s.Endpoints) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Endpoints", 1)) - } - if s.Name != nil && len(*s.Name) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Name", 1)) +func (s *EmergencyCallingConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "EmergencyCallingConfiguration"} + if s.DNIS != nil { + for i, v := range s.DNIS { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "DNIS", i), err.(request.ErrInvalidParams)) + } + } } if invalidParams.Len() > 0 { @@ -16915,218 +27364,188 @@ func (s *CreateSipMediaApplicationInput) Validate() error { return nil } -// SetAwsRegion sets the AwsRegion field's value. -func (s *CreateSipMediaApplicationInput) SetAwsRegion(v string) *CreateSipMediaApplicationInput { - s.AwsRegion = &v +// SetDNIS sets the DNIS field's value. +func (s *EmergencyCallingConfiguration) SetDNIS(v []*DNISEmergencyCallingConfiguration) *EmergencyCallingConfiguration { + s.DNIS = v return s } -// SetEndpoints sets the Endpoints field's value. -func (s *CreateSipMediaApplicationInput) SetEndpoints(v []*SipMediaApplicationEndpoint) *CreateSipMediaApplicationInput { - s.Endpoints = v - return s -} +// The configuration that allows a bot to receive outgoing events. Can be either +// an HTTPS endpoint or a Lambda function ARN. +type EventsConfiguration struct { + _ struct{} `type:"structure"` -// SetName sets the Name field's value. -func (s *CreateSipMediaApplicationInput) SetName(v string) *CreateSipMediaApplicationInput { - s.Name = &v - return s -} + // The bot ID. + BotId *string `type:"string"` -type CreateSipMediaApplicationOutput struct { - _ struct{} `type:"structure"` + // Lambda function ARN that allows a bot to receive outgoing events. + LambdaFunctionArn *string `type:"string" sensitive:"true"` - // The Sip media application details. - SipMediaApplication *SipMediaApplication `type:"structure"` + // HTTPS endpoint that allows a bot to receive outgoing events. + OutboundEventsHTTPSEndpoint *string `type:"string" sensitive:"true"` } // String returns the string representation -func (s CreateSipMediaApplicationOutput) String() string { +func (s EventsConfiguration) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateSipMediaApplicationOutput) GoString() string { +func (s EventsConfiguration) GoString() string { return s.String() } -// SetSipMediaApplication sets the SipMediaApplication field's value. -func (s *CreateSipMediaApplicationOutput) SetSipMediaApplication(v *SipMediaApplication) *CreateSipMediaApplicationOutput { - s.SipMediaApplication = v +// SetBotId sets the BotId field's value. +func (s *EventsConfiguration) SetBotId(v string) *EventsConfiguration { + s.BotId = &v return s } -type CreateSipRuleInput struct { - _ struct{} `type:"structure"` - - // Enables or disables a rule. You must disable rules before you can delete - // them. - Disabled *bool `type:"boolean"` +// SetLambdaFunctionArn sets the LambdaFunctionArn field's value. +func (s *EventsConfiguration) SetLambdaFunctionArn(v string) *EventsConfiguration { + s.LambdaFunctionArn = &v + return s +} - // The name of the SIP rule. - // - // Name is a required field - Name *string `min:"1" type:"string" required:"true"` +// SetOutboundEventsHTTPSEndpoint sets the OutboundEventsHTTPSEndpoint field's value. +func (s *EventsConfiguration) SetOutboundEventsHTTPSEndpoint(v string) *EventsConfiguration { + s.OutboundEventsHTTPSEndpoint = &v + return s +} - // List of SIP media applications with priority and AWS Region. Only one SIP - // application per AWS Region can be used. - // - // TargetApplications is a required field - TargetApplications []*SipRuleTargetApplication `min:"1" type:"list" required:"true"` +// The client is permanently forbidden from making the request. +type ForbiddenException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` - // The type of trigger whose value is assigned to the SIP rule in TriggerValue. - // Allowed trigger values are RequestUriHostname and ToPhoneNumber. - // - // TriggerType is a required field - TriggerType *string `type:"string" required:"true" enum:"SipRuleTriggerType"` + Code_ *string `locationName:"Code" type:"string" enum:"ErrorCode"` - // If TriggerType is RequestUriHostname then the value can be the outbound host - // name of an Amazon Chime Voice Connector. If TriggerType is ToPhoneNumber - // then the value can be a customer-owned phone number in E164 format. SipRule - // is triggered if the SIP application requests a host name, or a If TriggerType - // is RequestUriHostname, then the value can be the outbound hostname of an - // Amazon Chime Voice Connector. If TriggerType is ToPhoneNumber, then the value - // can be a customer-owned phone number in E164 format. SipRule is triggered - // if the SIP application requests a host name, or a ToPhoneNumber value matches - // the incoming SIP request. - // - // TriggerValue is a required field - TriggerValue *string `type:"string" required:"true"` + Message_ *string `locationName:"Message" type:"string"` } // String returns the string representation -func (s CreateSipRuleInput) String() string { +func (s ForbiddenException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateSipRuleInput) GoString() string { +func (s ForbiddenException) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateSipRuleInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateSipRuleInput"} - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) - } - if s.Name != nil && len(*s.Name) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Name", 1)) - } - if s.TargetApplications == nil { - invalidParams.Add(request.NewErrParamRequired("TargetApplications")) - } - if s.TargetApplications != nil && len(s.TargetApplications) < 1 { - invalidParams.Add(request.NewErrParamMinLen("TargetApplications", 1)) - } - if s.TriggerType == nil { - invalidParams.Add(request.NewErrParamRequired("TriggerType")) - } - if s.TriggerValue == nil { - invalidParams.Add(request.NewErrParamRequired("TriggerValue")) - } - if s.TargetApplications != nil { - for i, v := range s.TargetApplications { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "TargetApplications", i), err.(request.ErrInvalidParams)) - } - } +func newErrorForbiddenException(v protocol.ResponseMetadata) error { + return &ForbiddenException{ + RespMetadata: v, } +} - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// Code returns the exception type name. +func (s *ForbiddenException) Code() string { + return "ForbiddenException" } -// SetDisabled sets the Disabled field's value. -func (s *CreateSipRuleInput) SetDisabled(v bool) *CreateSipRuleInput { - s.Disabled = &v - return s +// Message returns the exception's message. +func (s *ForbiddenException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" } -// SetName sets the Name field's value. -func (s *CreateSipRuleInput) SetName(v string) *CreateSipRuleInput { - s.Name = &v - return s +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *ForbiddenException) OrigErr() error { + return nil } -// SetTargetApplications sets the TargetApplications field's value. -func (s *CreateSipRuleInput) SetTargetApplications(v []*SipRuleTargetApplication) *CreateSipRuleInput { - s.TargetApplications = v - return s +func (s *ForbiddenException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) } -// SetTriggerType sets the TriggerType field's value. -func (s *CreateSipRuleInput) SetTriggerType(v string) *CreateSipRuleInput { - s.TriggerType = &v - return s +// Status code returns the HTTP status code for the request's response error. +func (s *ForbiddenException) StatusCode() int { + return s.RespMetadata.StatusCode } -// SetTriggerValue sets the TriggerValue field's value. -func (s *CreateSipRuleInput) SetTriggerValue(v string) *CreateSipRuleInput { - s.TriggerValue = &v - return s +// RequestID returns the service's response RequestID for request. +func (s *ForbiddenException) RequestID() string { + return s.RespMetadata.RequestID } -type CreateSipRuleOutput struct { +// The country and area code for a proxy phone number in a proxy phone session. +type GeoMatchParams struct { _ struct{} `type:"structure"` - // Returns the SIP rule information, including the rule ID, triggers, and target - // applications. - SipRule *SipRule `type:"structure"` + // The area code. + // + // AreaCode is a required field + AreaCode *string `type:"string" required:"true"` + + // The country. + // + // Country is a required field + Country *string `type:"string" required:"true"` } // String returns the string representation -func (s CreateSipRuleOutput) String() string { +func (s GeoMatchParams) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateSipRuleOutput) GoString() string { +func (s GeoMatchParams) GoString() string { return s.String() } -// SetSipRule sets the SipRule field's value. -func (s *CreateSipRuleOutput) SetSipRule(v *SipRule) *CreateSipRuleOutput { - s.SipRule = v +// Validate inspects the fields of the type to determine if they are valid. +func (s *GeoMatchParams) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GeoMatchParams"} + if s.AreaCode == nil { + invalidParams.Add(request.NewErrParamRequired("AreaCode")) + } + if s.Country == nil { + invalidParams.Add(request.NewErrParamRequired("Country")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAreaCode sets the AreaCode field's value. +func (s *GeoMatchParams) SetAreaCode(v string) *GeoMatchParams { + s.AreaCode = &v return s } -type CreateUserInput struct { +// SetCountry sets the Country field's value. +func (s *GeoMatchParams) SetCountry(v string) *GeoMatchParams { + s.Country = &v + return s +} + +type GetAccountInput struct { _ struct{} `type:"structure"` // The Amazon Chime account ID. // // AccountId is a required field AccountId *string `location:"uri" locationName:"accountId" type:"string" required:"true"` - - // The user's email address. - Email *string `type:"string" sensitive:"true"` - - // The user type. - UserType *string `type:"string" enum:"UserType"` - - // The user name. - Username *string `type:"string"` } // String returns the string representation -func (s CreateUserInput) String() string { +func (s GetAccountInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateUserInput) GoString() string { +func (s GetAccountInput) 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"} +func (s *GetAccountInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetAccountInput"} if s.AccountId == nil { invalidParams.Add(request.NewErrParamRequired("AccountId")) } @@ -17141,92 +27560,62 @@ func (s *CreateUserInput) Validate() error { } // SetAccountId sets the AccountId field's value. -func (s *CreateUserInput) SetAccountId(v string) *CreateUserInput { +func (s *GetAccountInput) SetAccountId(v string) *GetAccountInput { s.AccountId = &v return s } -// SetEmail sets the Email field's value. -func (s *CreateUserInput) SetEmail(v string) *CreateUserInput { - s.Email = &v - return s -} - -// SetUserType sets the UserType field's value. -func (s *CreateUserInput) SetUserType(v string) *CreateUserInput { - s.UserType = &v - return s -} - -// SetUsername sets the Username field's value. -func (s *CreateUserInput) SetUsername(v string) *CreateUserInput { - s.Username = &v - return s -} - -type CreateUserOutput struct { +type GetAccountOutput struct { _ struct{} `type:"structure"` - // The user on the Amazon Chime account. - User *User `type:"structure"` + // The Amazon Chime account details. An AWS account can have multiple Amazon + // Chime accounts. + Account *Account `type:"structure"` } // String returns the string representation -func (s CreateUserOutput) String() string { +func (s GetAccountOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateUserOutput) GoString() string { +func (s GetAccountOutput) GoString() string { return s.String() } -// SetUser sets the User field's value. -func (s *CreateUserOutput) SetUser(v *User) *CreateUserOutput { - s.User = v +// SetAccount sets the Account field's value. +func (s *GetAccountOutput) SetAccount(v *Account) *GetAccountOutput { + s.Account = v return s } -type CreateVoiceConnectorGroupInput struct { +type GetAccountSettingsInput struct { _ struct{} `type:"structure"` - // The name of the Amazon Chime Voice Connector group. + // The Amazon Chime account ID. // - // Name is a required field - Name *string `min:"1" type:"string" required:"true"` - - // The Amazon Chime Voice Connectors to route inbound calls to. - VoiceConnectorItems []*VoiceConnectorItem `type:"list"` + // AccountId is a required field + AccountId *string `location:"uri" locationName:"accountId" type:"string" required:"true"` } // String returns the string representation -func (s CreateVoiceConnectorGroupInput) String() string { +func (s GetAccountSettingsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateVoiceConnectorGroupInput) GoString() string { +func (s GetAccountSettingsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *CreateVoiceConnectorGroupInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateVoiceConnectorGroupInput"} - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) - } - if s.Name != nil && len(*s.Name) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Name", 1)) +func (s *GetAccountSettingsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetAccountSettingsInput"} + if s.AccountId == nil { + invalidParams.Add(request.NewErrParamRequired("AccountId")) } - if s.VoiceConnectorItems != nil { - for i, v := range s.VoiceConnectorItems { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "VoiceConnectorItems", i), err.(request.ErrInvalidParams)) - } - } + if s.AccountId != nil && len(*s.AccountId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) } if invalidParams.Len() > 0 { @@ -17235,80 +27624,62 @@ func (s *CreateVoiceConnectorGroupInput) Validate() error { return nil } -// SetName sets the Name field's value. -func (s *CreateVoiceConnectorGroupInput) SetName(v string) *CreateVoiceConnectorGroupInput { - s.Name = &v - return s -} - -// SetVoiceConnectorItems sets the VoiceConnectorItems field's value. -func (s *CreateVoiceConnectorGroupInput) SetVoiceConnectorItems(v []*VoiceConnectorItem) *CreateVoiceConnectorGroupInput { - s.VoiceConnectorItems = v +// SetAccountId sets the AccountId field's value. +func (s *GetAccountSettingsInput) SetAccountId(v string) *GetAccountSettingsInput { + s.AccountId = &v return s } -type CreateVoiceConnectorGroupOutput struct { +type GetAccountSettingsOutput struct { _ struct{} `type:"structure"` - // The Amazon Chime Voice Connector group details. - VoiceConnectorGroup *VoiceConnectorGroup `type:"structure"` + // The Amazon Chime account settings. + AccountSettings *AccountSettings `type:"structure"` } // String returns the string representation -func (s CreateVoiceConnectorGroupOutput) String() string { +func (s GetAccountSettingsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateVoiceConnectorGroupOutput) GoString() string { +func (s GetAccountSettingsOutput) GoString() string { return s.String() } -// SetVoiceConnectorGroup sets the VoiceConnectorGroup field's value. -func (s *CreateVoiceConnectorGroupOutput) SetVoiceConnectorGroup(v *VoiceConnectorGroup) *CreateVoiceConnectorGroupOutput { - s.VoiceConnectorGroup = v +// SetAccountSettings sets the AccountSettings field's value. +func (s *GetAccountSettingsOutput) SetAccountSettings(v *AccountSettings) *GetAccountSettingsOutput { + s.AccountSettings = v return s } -type CreateVoiceConnectorInput struct { +type GetAppInstanceRetentionSettingsInput struct { _ struct{} `type:"structure"` - // The AWS Region in which the Amazon Chime Voice Connector is created. Default - // value: us-east-1. - AwsRegion *string `type:"string" enum:"VoiceConnectorAwsRegion"` - - // The name of the Amazon Chime Voice Connector. - // - // Name is a required field - Name *string `min:"1" type:"string" required:"true"` - - // When enabled, requires encryption for the Amazon Chime Voice Connector. + // The ARN of the app instance. // - // RequireEncryption is a required field - RequireEncryption *bool `type:"boolean" required:"true"` + // AppInstanceArn is a required field + AppInstanceArn *string `location:"uri" locationName:"appInstanceArn" min:"5" type:"string" required:"true"` } // String returns the string representation -func (s CreateVoiceConnectorInput) String() string { +func (s GetAppInstanceRetentionSettingsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateVoiceConnectorInput) GoString() string { +func (s GetAppInstanceRetentionSettingsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *CreateVoiceConnectorInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateVoiceConnectorInput"} - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) - } - if s.Name != nil && len(*s.Name) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Name", 1)) +func (s *GetAppInstanceRetentionSettingsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetAppInstanceRetentionSettingsInput"} + if s.AppInstanceArn == nil { + invalidParams.Add(request.NewErrParamRequired("AppInstanceArn")) } - if s.RequireEncryption == nil { - invalidParams.Add(request.NewErrParamRequired("RequireEncryption")) + if s.AppInstanceArn != nil && len(*s.AppInstanceArn) < 5 { + invalidParams.Add(request.NewErrParamMinLen("AppInstanceArn", 5)) } if invalidParams.Len() > 0 { @@ -17317,122 +27688,147 @@ func (s *CreateVoiceConnectorInput) Validate() error { return nil } -// SetAwsRegion sets the AwsRegion field's value. -func (s *CreateVoiceConnectorInput) SetAwsRegion(v string) *CreateVoiceConnectorInput { - s.AwsRegion = &v +// SetAppInstanceArn sets the AppInstanceArn field's value. +func (s *GetAppInstanceRetentionSettingsInput) SetAppInstanceArn(v string) *GetAppInstanceRetentionSettingsInput { + s.AppInstanceArn = &v return s } -// SetName sets the Name field's value. -func (s *CreateVoiceConnectorInput) SetName(v string) *CreateVoiceConnectorInput { - s.Name = &v +type GetAppInstanceRetentionSettingsOutput struct { + _ struct{} `type:"structure"` + + // The retention settings for the app instance. + AppInstanceRetentionSettings *AppInstanceRetentionSettings `type:"structure"` + + // The timestamp representing the time at which the specified items are retained, + // in Epoch Seconds. + InitiateDeletionTimestamp *time.Time `type:"timestamp"` +} + +// String returns the string representation +func (s GetAppInstanceRetentionSettingsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetAppInstanceRetentionSettingsOutput) GoString() string { + return s.String() +} + +// SetAppInstanceRetentionSettings sets the AppInstanceRetentionSettings field's value. +func (s *GetAppInstanceRetentionSettingsOutput) SetAppInstanceRetentionSettings(v *AppInstanceRetentionSettings) *GetAppInstanceRetentionSettingsOutput { + s.AppInstanceRetentionSettings = v return s } -// SetRequireEncryption sets the RequireEncryption field's value. -func (s *CreateVoiceConnectorInput) SetRequireEncryption(v bool) *CreateVoiceConnectorInput { - s.RequireEncryption = &v +// SetInitiateDeletionTimestamp sets the InitiateDeletionTimestamp field's value. +func (s *GetAppInstanceRetentionSettingsOutput) SetInitiateDeletionTimestamp(v time.Time) *GetAppInstanceRetentionSettingsOutput { + s.InitiateDeletionTimestamp = &v return s } -type CreateVoiceConnectorOutput struct { +type GetAppInstanceStreamingConfigurationsInput struct { _ struct{} `type:"structure"` - // The Amazon Chime Voice Connector details. - VoiceConnector *VoiceConnector `type:"structure"` + // The ARN of the app instance. + // + // AppInstanceArn is a required field + AppInstanceArn *string `location:"uri" locationName:"appInstanceArn" min:"5" type:"string" required:"true"` } // String returns the string representation -func (s CreateVoiceConnectorOutput) String() string { +func (s GetAppInstanceStreamingConfigurationsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateVoiceConnectorOutput) GoString() string { +func (s GetAppInstanceStreamingConfigurationsInput) GoString() string { return s.String() } -// SetVoiceConnector sets the VoiceConnector field's value. -func (s *CreateVoiceConnectorOutput) SetVoiceConnector(v *VoiceConnector) *CreateVoiceConnectorOutput { - s.VoiceConnector = v +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetAppInstanceStreamingConfigurationsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetAppInstanceStreamingConfigurationsInput"} + if s.AppInstanceArn == nil { + invalidParams.Add(request.NewErrParamRequired("AppInstanceArn")) + } + if s.AppInstanceArn != nil && len(*s.AppInstanceArn) < 5 { + invalidParams.Add(request.NewErrParamMinLen("AppInstanceArn", 5)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAppInstanceArn sets the AppInstanceArn field's value. +func (s *GetAppInstanceStreamingConfigurationsInput) SetAppInstanceArn(v string) *GetAppInstanceStreamingConfigurationsInput { + s.AppInstanceArn = &v return s } -// The SIP credentials used to authenticate requests to your Amazon Chime Voice -// Connector. -type Credential struct { +type GetAppInstanceStreamingConfigurationsOutput struct { _ struct{} `type:"structure"` - // The RFC2617 compliant password associated with the SIP credentials, in US-ASCII - // format. - Password *string `type:"string" sensitive:"true"` - - // The RFC2617 compliant user name associated with the SIP credentials, in US-ASCII - // format. - Username *string `type:"string" sensitive:"true"` + // The streaming settings. + AppInstanceStreamingConfigurations []*AppInstanceStreamingConfiguration `min:"1" type:"list"` } // String returns the string representation -func (s Credential) String() string { +func (s GetAppInstanceStreamingConfigurationsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s Credential) GoString() string { +func (s GetAppInstanceStreamingConfigurationsOutput) GoString() string { return s.String() } - -// SetPassword sets the Password field's value. -func (s *Credential) SetPassword(v string) *Credential { - s.Password = &v - return s -} - -// SetUsername sets the Username field's value. -func (s *Credential) SetUsername(v string) *Credential { - s.Username = &v + +// SetAppInstanceStreamingConfigurations sets the AppInstanceStreamingConfigurations field's value. +func (s *GetAppInstanceStreamingConfigurationsOutput) SetAppInstanceStreamingConfigurations(v []*AppInstanceStreamingConfiguration) *GetAppInstanceStreamingConfigurationsOutput { + s.AppInstanceStreamingConfigurations = v return s } -// The Dialed Number Identification Service (DNIS) emergency calling configuration -// details associated with an Amazon Chime Voice Connector's emergency calling -// configuration. -type DNISEmergencyCallingConfiguration struct { +type GetAttendeeInput struct { _ struct{} `type:"structure"` - // The country from which emergency calls are allowed, in ISO 3166-1 alpha-2 - // format. + // The Amazon Chime SDK attendee ID. // - // CallingCountry is a required field - CallingCountry *string `type:"string" required:"true"` + // AttendeeId is a required field + AttendeeId *string `location:"uri" locationName:"attendeeId" type:"string" required:"true"` - // The DNIS phone number to route emergency calls to, in E.164 format. + // The Amazon Chime SDK meeting ID. // - // EmergencyPhoneNumber is a required field - EmergencyPhoneNumber *string `type:"string" required:"true" sensitive:"true"` - - // The DNIS phone number to route test emergency calls to, in E.164 format. - TestPhoneNumber *string `type:"string" sensitive:"true"` + // MeetingId is a required field + MeetingId *string `location:"uri" locationName:"meetingId" type:"string" required:"true"` } // String returns the string representation -func (s DNISEmergencyCallingConfiguration) String() string { +func (s GetAttendeeInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DNISEmergencyCallingConfiguration) GoString() string { +func (s GetAttendeeInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DNISEmergencyCallingConfiguration) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DNISEmergencyCallingConfiguration"} - if s.CallingCountry == nil { - invalidParams.Add(request.NewErrParamRequired("CallingCountry")) +func (s *GetAttendeeInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetAttendeeInput"} + if s.AttendeeId == nil { + invalidParams.Add(request.NewErrParamRequired("AttendeeId")) } - if s.EmergencyPhoneNumber == nil { - invalidParams.Add(request.NewErrParamRequired("EmergencyPhoneNumber")) + if s.AttendeeId != nil && len(*s.AttendeeId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AttendeeId", 1)) + } + if s.MeetingId == nil { + invalidParams.Add(request.NewErrParamRequired("MeetingId")) + } + if s.MeetingId != nil && len(*s.MeetingId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("MeetingId", 1)) } if invalidParams.Len() > 0 { @@ -17441,52 +27837,80 @@ func (s *DNISEmergencyCallingConfiguration) Validate() error { return nil } -// SetCallingCountry sets the CallingCountry field's value. -func (s *DNISEmergencyCallingConfiguration) SetCallingCountry(v string) *DNISEmergencyCallingConfiguration { - s.CallingCountry = &v +// SetAttendeeId sets the AttendeeId field's value. +func (s *GetAttendeeInput) SetAttendeeId(v string) *GetAttendeeInput { + s.AttendeeId = &v return s } -// SetEmergencyPhoneNumber sets the EmergencyPhoneNumber field's value. -func (s *DNISEmergencyCallingConfiguration) SetEmergencyPhoneNumber(v string) *DNISEmergencyCallingConfiguration { - s.EmergencyPhoneNumber = &v +// SetMeetingId sets the MeetingId field's value. +func (s *GetAttendeeInput) SetMeetingId(v string) *GetAttendeeInput { + s.MeetingId = &v return s } -// SetTestPhoneNumber sets the TestPhoneNumber field's value. -func (s *DNISEmergencyCallingConfiguration) SetTestPhoneNumber(v string) *DNISEmergencyCallingConfiguration { - s.TestPhoneNumber = &v +type GetAttendeeOutput struct { + _ struct{} `type:"structure"` + + // The Amazon Chime SDK attendee information. + Attendee *Attendee `type:"structure"` +} + +// String returns the string representation +func (s GetAttendeeOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetAttendeeOutput) GoString() string { + return s.String() +} + +// SetAttendee sets the Attendee field's value. +func (s *GetAttendeeOutput) SetAttendee(v *Attendee) *GetAttendeeOutput { + s.Attendee = v return s } -type DeleteAccountInput struct { +type GetBotInput struct { _ struct{} `type:"structure"` // The Amazon Chime account ID. // // AccountId is a required field AccountId *string `location:"uri" locationName:"accountId" type:"string" required:"true"` + + // The bot ID. + // + // BotId is a required field + BotId *string `location:"uri" locationName:"botId" type:"string" required:"true"` } // String returns the string representation -func (s DeleteAccountInput) String() string { +func (s GetBotInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeleteAccountInput) GoString() string { +func (s GetBotInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteAccountInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteAccountInput"} +func (s *GetBotInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetBotInput"} if s.AccountId == nil { invalidParams.Add(request.NewErrParamRequired("AccountId")) } if s.AccountId != nil && len(*s.AccountId) < 1 { invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) } + if s.BotId == nil { + invalidParams.Add(request.NewErrParamRequired("BotId")) + } + if s.BotId != nil && len(*s.BotId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("BotId", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -17495,63 +27919,78 @@ func (s *DeleteAccountInput) Validate() error { } // SetAccountId sets the AccountId field's value. -func (s *DeleteAccountInput) SetAccountId(v string) *DeleteAccountInput { +func (s *GetBotInput) SetAccountId(v string) *GetBotInput { s.AccountId = &v return s } -type DeleteAccountOutput struct { +// SetBotId sets the BotId field's value. +func (s *GetBotInput) SetBotId(v string) *GetBotInput { + s.BotId = &v + return s +} + +type GetBotOutput struct { _ struct{} `type:"structure"` + + // The chat bot details. + Bot *Bot `type:"structure"` } // String returns the string representation -func (s DeleteAccountOutput) String() string { +func (s GetBotOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeleteAccountOutput) GoString() string { +func (s GetBotOutput) GoString() string { return s.String() } -type DeleteAttendeeInput struct { +// SetBot sets the Bot field's value. +func (s *GetBotOutput) SetBot(v *Bot) *GetBotOutput { + s.Bot = v + return s +} + +type GetChannelMessageInput struct { _ struct{} `type:"structure"` - // The Amazon Chime SDK attendee ID. + // The ARN of the channel. // - // AttendeeId is a required field - AttendeeId *string `location:"uri" locationName:"attendeeId" type:"string" required:"true"` + // ChannelArn is a required field + ChannelArn *string `location:"uri" locationName:"channelArn" min:"5" type:"string" required:"true"` - // The Amazon Chime SDK meeting ID. + // The ID of the message. // - // MeetingId is a required field - MeetingId *string `location:"uri" locationName:"meetingId" type:"string" required:"true"` + // MessageId is a required field + MessageId *string `location:"uri" locationName:"messageId" min:"1" type:"string" required:"true"` } // String returns the string representation -func (s DeleteAttendeeInput) String() string { +func (s GetChannelMessageInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeleteAttendeeInput) GoString() string { +func (s GetChannelMessageInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteAttendeeInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteAttendeeInput"} - if s.AttendeeId == nil { - invalidParams.Add(request.NewErrParamRequired("AttendeeId")) +func (s *GetChannelMessageInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetChannelMessageInput"} + if s.ChannelArn == nil { + invalidParams.Add(request.NewErrParamRequired("ChannelArn")) } - if s.AttendeeId != nil && len(*s.AttendeeId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("AttendeeId", 1)) + if s.ChannelArn != nil && len(*s.ChannelArn) < 5 { + invalidParams.Add(request.NewErrParamMinLen("ChannelArn", 5)) } - if s.MeetingId == nil { - invalidParams.Add(request.NewErrParamRequired("MeetingId")) + if s.MessageId == nil { + invalidParams.Add(request.NewErrParamRequired("MessageId")) } - if s.MeetingId != nil && len(*s.MeetingId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("MeetingId", 1)) + if s.MessageId != nil && len(*s.MessageId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("MessageId", 1)) } if invalidParams.Len() > 0 { @@ -17560,33 +27999,42 @@ func (s *DeleteAttendeeInput) Validate() error { return nil } -// SetAttendeeId sets the AttendeeId field's value. -func (s *DeleteAttendeeInput) SetAttendeeId(v string) *DeleteAttendeeInput { - s.AttendeeId = &v +// SetChannelArn sets the ChannelArn field's value. +func (s *GetChannelMessageInput) SetChannelArn(v string) *GetChannelMessageInput { + s.ChannelArn = &v return s } -// SetMeetingId sets the MeetingId field's value. -func (s *DeleteAttendeeInput) SetMeetingId(v string) *DeleteAttendeeInput { - s.MeetingId = &v +// SetMessageId sets the MessageId field's value. +func (s *GetChannelMessageInput) SetMessageId(v string) *GetChannelMessageInput { + s.MessageId = &v return s } -type DeleteAttendeeOutput struct { +type GetChannelMessageOutput struct { _ struct{} `type:"structure"` + + // The details of and content in the message. + ChannelMessage *ChannelMessage `type:"structure"` } // String returns the string representation -func (s DeleteAttendeeOutput) String() string { +func (s GetChannelMessageOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeleteAttendeeOutput) GoString() string { +func (s GetChannelMessageOutput) GoString() string { return s.String() } -type DeleteEventsConfigurationInput struct { +// SetChannelMessage sets the ChannelMessage field's value. +func (s *GetChannelMessageOutput) SetChannelMessage(v *ChannelMessage) *GetChannelMessageOutput { + s.ChannelMessage = v + return s +} + +type GetEventsConfigurationInput struct { _ struct{} `type:"structure"` // The Amazon Chime account ID. @@ -17601,18 +28049,18 @@ type DeleteEventsConfigurationInput struct { } // String returns the string representation -func (s DeleteEventsConfigurationInput) String() string { +func (s GetEventsConfigurationInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeleteEventsConfigurationInput) GoString() string { +func (s GetEventsConfigurationInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteEventsConfigurationInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteEventsConfigurationInput"} +func (s *GetEventsConfigurationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetEventsConfigurationInput"} if s.AccountId == nil { invalidParams.Add(request.NewErrParamRequired("AccountId")) } @@ -17633,113 +28081,113 @@ func (s *DeleteEventsConfigurationInput) Validate() error { } // SetAccountId sets the AccountId field's value. -func (s *DeleteEventsConfigurationInput) SetAccountId(v string) *DeleteEventsConfigurationInput { +func (s *GetEventsConfigurationInput) SetAccountId(v string) *GetEventsConfigurationInput { s.AccountId = &v return s } // SetBotId sets the BotId field's value. -func (s *DeleteEventsConfigurationInput) SetBotId(v string) *DeleteEventsConfigurationInput { +func (s *GetEventsConfigurationInput) SetBotId(v string) *GetEventsConfigurationInput { s.BotId = &v return s } -type DeleteEventsConfigurationOutput struct { +type GetEventsConfigurationOutput struct { _ struct{} `type:"structure"` + + // The events configuration details. + EventsConfiguration *EventsConfiguration `type:"structure"` } // String returns the string representation -func (s DeleteEventsConfigurationOutput) String() string { +func (s GetEventsConfigurationOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeleteEventsConfigurationOutput) GoString() string { +func (s GetEventsConfigurationOutput) GoString() string { return s.String() } -type DeleteMeetingInput struct { - _ struct{} `type:"structure"` +// SetEventsConfiguration sets the EventsConfiguration field's value. +func (s *GetEventsConfigurationOutput) SetEventsConfiguration(v *EventsConfiguration) *GetEventsConfigurationOutput { + s.EventsConfiguration = v + return s +} - // The Amazon Chime SDK meeting ID. - // - // MeetingId is a required field - MeetingId *string `location:"uri" locationName:"meetingId" type:"string" required:"true"` +type GetGlobalSettingsInput struct { + _ struct{} `type:"structure"` } // String returns the string representation -func (s DeleteMeetingInput) String() string { +func (s GetGlobalSettingsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeleteMeetingInput) GoString() string { +func (s GetGlobalSettingsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteMeetingInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteMeetingInput"} - if s.MeetingId == nil { - invalidParams.Add(request.NewErrParamRequired("MeetingId")) - } - if s.MeetingId != nil && len(*s.MeetingId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("MeetingId", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} +type GetGlobalSettingsOutput struct { + _ struct{} `type:"structure"` -// SetMeetingId sets the MeetingId field's value. -func (s *DeleteMeetingInput) SetMeetingId(v string) *DeleteMeetingInput { - s.MeetingId = &v - return s -} + // The Amazon Chime Business Calling settings. + BusinessCalling *BusinessCallingSettings `type:"structure"` -type DeleteMeetingOutput struct { - _ struct{} `type:"structure"` + // The Amazon Chime Voice Connector settings. + VoiceConnector *VoiceConnectorSettings `type:"structure"` } // String returns the string representation -func (s DeleteMeetingOutput) String() string { +func (s GetGlobalSettingsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeleteMeetingOutput) GoString() string { +func (s GetGlobalSettingsOutput) GoString() string { return s.String() } -type DeletePhoneNumberInput struct { +// SetBusinessCalling sets the BusinessCalling field's value. +func (s *GetGlobalSettingsOutput) SetBusinessCalling(v *BusinessCallingSettings) *GetGlobalSettingsOutput { + s.BusinessCalling = v + return s +} + +// SetVoiceConnector sets the VoiceConnector field's value. +func (s *GetGlobalSettingsOutput) SetVoiceConnector(v *VoiceConnectorSettings) *GetGlobalSettingsOutput { + s.VoiceConnector = v + return s +} + +type GetMeetingInput struct { _ struct{} `type:"structure"` - // The phone number ID. + // The Amazon Chime SDK meeting ID. // - // PhoneNumberId is a required field - PhoneNumberId *string `location:"uri" locationName:"phoneNumberId" type:"string" required:"true"` + // MeetingId is a required field + MeetingId *string `location:"uri" locationName:"meetingId" type:"string" required:"true"` } // String returns the string representation -func (s DeletePhoneNumberInput) String() string { +func (s GetMeetingInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeletePhoneNumberInput) GoString() string { +func (s GetMeetingInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DeletePhoneNumberInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeletePhoneNumberInput"} - if s.PhoneNumberId == nil { - invalidParams.Add(request.NewErrParamRequired("PhoneNumberId")) +func (s *GetMeetingInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetMeetingInput"} + if s.MeetingId == nil { + invalidParams.Add(request.NewErrParamRequired("MeetingId")) } - if s.PhoneNumberId != nil && len(*s.PhoneNumberId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("PhoneNumberId", 1)) + if s.MeetingId != nil && len(*s.MeetingId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("MeetingId", 1)) } if invalidParams.Len() > 0 { @@ -17748,136 +28196,99 @@ func (s *DeletePhoneNumberInput) Validate() error { return nil } -// SetPhoneNumberId sets the PhoneNumberId field's value. -func (s *DeletePhoneNumberInput) SetPhoneNumberId(v string) *DeletePhoneNumberInput { - s.PhoneNumberId = &v +// SetMeetingId sets the MeetingId field's value. +func (s *GetMeetingInput) SetMeetingId(v string) *GetMeetingInput { + s.MeetingId = &v return s } -type DeletePhoneNumberOutput struct { +type GetMeetingOutput struct { _ struct{} `type:"structure"` + + // The Amazon Chime SDK meeting information. + Meeting *Meeting `type:"structure"` } // String returns the string representation -func (s DeletePhoneNumberOutput) String() string { +func (s GetMeetingOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeletePhoneNumberOutput) GoString() string { +func (s GetMeetingOutput) GoString() string { return s.String() } -type DeleteProxySessionInput struct { - _ struct{} `type:"structure"` - - // The proxy session ID. - // - // ProxySessionId is a required field - ProxySessionId *string `location:"uri" locationName:"proxySessionId" min:"1" type:"string" required:"true"` +// SetMeeting sets the Meeting field's value. +func (s *GetMeetingOutput) SetMeeting(v *Meeting) *GetMeetingOutput { + s.Meeting = v + return s +} - // The Amazon Chime voice connector ID. - // - // VoiceConnectorId is a required field - VoiceConnectorId *string `location:"uri" locationName:"voiceConnectorId" min:"1" type:"string" required:"true"` +type GetMessagingSessionEndpointInput struct { + _ struct{} `type:"structure"` } // String returns the string representation -func (s DeleteProxySessionInput) String() string { +func (s GetMessagingSessionEndpointInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeleteProxySessionInput) GoString() string { +func (s GetMessagingSessionEndpointInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteProxySessionInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteProxySessionInput"} - if s.ProxySessionId == nil { - invalidParams.Add(request.NewErrParamRequired("ProxySessionId")) - } - if s.ProxySessionId != nil && len(*s.ProxySessionId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ProxySessionId", 1)) - } - if s.VoiceConnectorId == nil { - invalidParams.Add(request.NewErrParamRequired("VoiceConnectorId")) - } - if s.VoiceConnectorId != nil && len(*s.VoiceConnectorId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("VoiceConnectorId", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetProxySessionId sets the ProxySessionId field's value. -func (s *DeleteProxySessionInput) SetProxySessionId(v string) *DeleteProxySessionInput { - s.ProxySessionId = &v - return s -} - -// SetVoiceConnectorId sets the VoiceConnectorId field's value. -func (s *DeleteProxySessionInput) SetVoiceConnectorId(v string) *DeleteProxySessionInput { - s.VoiceConnectorId = &v - return s -} - -type DeleteProxySessionOutput struct { +type GetMessagingSessionEndpointOutput struct { _ struct{} `type:"structure"` + + // The endpoint returned in the response. + Endpoint *MessagingSessionEndpoint `type:"structure"` } // String returns the string representation -func (s DeleteProxySessionOutput) String() string { +func (s GetMessagingSessionEndpointOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeleteProxySessionOutput) GoString() string { +func (s GetMessagingSessionEndpointOutput) GoString() string { return s.String() } -type DeleteRoomInput struct { - _ struct{} `type:"structure"` +// SetEndpoint sets the Endpoint field's value. +func (s *GetMessagingSessionEndpointOutput) SetEndpoint(v *MessagingSessionEndpoint) *GetMessagingSessionEndpointOutput { + s.Endpoint = v + return s +} - // The Amazon Chime account ID. - // - // AccountId is a required field - AccountId *string `location:"uri" locationName:"accountId" type:"string" required:"true"` +type GetPhoneNumberInput struct { + _ struct{} `type:"structure"` - // The chat room ID. + // The phone number ID. // - // RoomId is a required field - RoomId *string `location:"uri" locationName:"roomId" type:"string" required:"true"` + // PhoneNumberId is a required field + PhoneNumberId *string `location:"uri" locationName:"phoneNumberId" type:"string" required:"true"` } // String returns the string representation -func (s DeleteRoomInput) String() string { +func (s GetPhoneNumberInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeleteRoomInput) GoString() string { +func (s GetPhoneNumberInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteRoomInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteRoomInput"} - if s.AccountId == nil { - invalidParams.Add(request.NewErrParamRequired("AccountId")) - } - if s.AccountId != nil && len(*s.AccountId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) - } - if s.RoomId == nil { - invalidParams.Add(request.NewErrParamRequired("RoomId")) +func (s *GetPhoneNumberInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetPhoneNumberInput"} + if s.PhoneNumberId == nil { + invalidParams.Add(request.NewErrParamRequired("PhoneNumberId")) } - if s.RoomId != nil && len(*s.RoomId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("RoomId", 1)) + if s.PhoneNumberId != nil && len(*s.PhoneNumberId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("PhoneNumberId", 1)) } if invalidParams.Len() > 0 { @@ -17886,67 +28297,39 @@ func (s *DeleteRoomInput) Validate() error { return nil } -// SetAccountId sets the AccountId field's value. -func (s *DeleteRoomInput) SetAccountId(v string) *DeleteRoomInput { - s.AccountId = &v - return s -} - -// SetRoomId sets the RoomId field's value. -func (s *DeleteRoomInput) SetRoomId(v string) *DeleteRoomInput { - s.RoomId = &v +// SetPhoneNumberId sets the PhoneNumberId field's value. +func (s *GetPhoneNumberInput) SetPhoneNumberId(v string) *GetPhoneNumberInput { + s.PhoneNumberId = &v return s } -type DeleteRoomMembershipInput struct { +type GetPhoneNumberOrderInput struct { _ struct{} `type:"structure"` - // The Amazon Chime account ID. - // - // AccountId is a required field - AccountId *string `location:"uri" locationName:"accountId" type:"string" required:"true"` - - // The member ID (user ID or bot ID). - // - // MemberId is a required field - MemberId *string `location:"uri" locationName:"memberId" type:"string" required:"true"` - - // The room ID. + // The ID for the phone number order. // - // RoomId is a required field - RoomId *string `location:"uri" locationName:"roomId" type:"string" required:"true"` + // PhoneNumberOrderId is a required field + PhoneNumberOrderId *string `location:"uri" locationName:"phoneNumberOrderId" type:"string" required:"true"` } // String returns the string representation -func (s DeleteRoomMembershipInput) String() string { +func (s GetPhoneNumberOrderInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeleteRoomMembershipInput) GoString() string { +func (s GetPhoneNumberOrderInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteRoomMembershipInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteRoomMembershipInput"} - if s.AccountId == nil { - invalidParams.Add(request.NewErrParamRequired("AccountId")) - } - if s.AccountId != nil && len(*s.AccountId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) - } - if s.MemberId == nil { - invalidParams.Add(request.NewErrParamRequired("MemberId")) - } - if s.MemberId != nil && len(*s.MemberId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("MemberId", 1)) - } - if s.RoomId == nil { - invalidParams.Add(request.NewErrParamRequired("RoomId")) +func (s *GetPhoneNumberOrderInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetPhoneNumberOrderInput"} + if s.PhoneNumberOrderId == nil { + invalidParams.Add(request.NewErrParamRequired("PhoneNumberOrderId")) } - if s.RoomId != nil && len(*s.RoomId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("RoomId", 1)) + if s.PhoneNumberOrderId != nil && len(*s.PhoneNumberOrderId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("PhoneNumberOrderId", 1)) } if invalidParams.Len() > 0 { @@ -17955,184 +28338,137 @@ func (s *DeleteRoomMembershipInput) Validate() error { return nil } -// SetAccountId sets the AccountId field's value. -func (s *DeleteRoomMembershipInput) SetAccountId(v string) *DeleteRoomMembershipInput { - s.AccountId = &v - return s -} - -// SetMemberId sets the MemberId field's value. -func (s *DeleteRoomMembershipInput) SetMemberId(v string) *DeleteRoomMembershipInput { - s.MemberId = &v - return s -} - -// SetRoomId sets the RoomId field's value. -func (s *DeleteRoomMembershipInput) SetRoomId(v string) *DeleteRoomMembershipInput { - s.RoomId = &v +// SetPhoneNumberOrderId sets the PhoneNumberOrderId field's value. +func (s *GetPhoneNumberOrderInput) SetPhoneNumberOrderId(v string) *GetPhoneNumberOrderInput { + s.PhoneNumberOrderId = &v return s } -type DeleteRoomMembershipOutput struct { +type GetPhoneNumberOrderOutput struct { _ struct{} `type:"structure"` + + // The phone number order details. + PhoneNumberOrder *PhoneNumberOrder `type:"structure"` } // String returns the string representation -func (s DeleteRoomMembershipOutput) String() string { +func (s GetPhoneNumberOrderOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeleteRoomMembershipOutput) GoString() string { +func (s GetPhoneNumberOrderOutput) GoString() string { return s.String() } -type DeleteRoomOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s DeleteRoomOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DeleteRoomOutput) GoString() string { - return s.String() +// SetPhoneNumberOrder sets the PhoneNumberOrder field's value. +func (s *GetPhoneNumberOrderOutput) SetPhoneNumberOrder(v *PhoneNumberOrder) *GetPhoneNumberOrderOutput { + s.PhoneNumberOrder = v + return s } -type DeleteSipMediaApplicationInput struct { +type GetPhoneNumberOutput struct { _ struct{} `type:"structure"` - // The SIP media application ID. - // - // SipMediaApplicationId is a required field - SipMediaApplicationId *string `location:"uri" locationName:"sipMediaApplicationId" type:"string" required:"true"` + // The phone number details. + PhoneNumber *PhoneNumber `type:"structure"` } // String returns the string representation -func (s DeleteSipMediaApplicationInput) String() string { +func (s GetPhoneNumberOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeleteSipMediaApplicationInput) GoString() string { +func (s GetPhoneNumberOutput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteSipMediaApplicationInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteSipMediaApplicationInput"} - if s.SipMediaApplicationId == nil { - invalidParams.Add(request.NewErrParamRequired("SipMediaApplicationId")) - } - if s.SipMediaApplicationId != nil && len(*s.SipMediaApplicationId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("SipMediaApplicationId", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetSipMediaApplicationId sets the SipMediaApplicationId field's value. -func (s *DeleteSipMediaApplicationInput) SetSipMediaApplicationId(v string) *DeleteSipMediaApplicationInput { - s.SipMediaApplicationId = &v +// SetPhoneNumber sets the PhoneNumber field's value. +func (s *GetPhoneNumberOutput) SetPhoneNumber(v *PhoneNumber) *GetPhoneNumberOutput { + s.PhoneNumber = v return s } -type DeleteSipMediaApplicationOutput struct { +type GetPhoneNumberSettingsInput struct { _ struct{} `type:"structure"` } // String returns the string representation -func (s DeleteSipMediaApplicationOutput) String() string { +func (s GetPhoneNumberSettingsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeleteSipMediaApplicationOutput) GoString() string { +func (s GetPhoneNumberSettingsInput) GoString() string { return s.String() } -type DeleteSipRuleInput struct { +type GetPhoneNumberSettingsOutput struct { _ struct{} `type:"structure"` - // The SIP rule ID. - // - // SipRuleId is a required field - SipRuleId *string `location:"uri" locationName:"sipRuleId" type:"string" required:"true"` + // The default outbound calling name for the account. + CallingName *string `type:"string" sensitive:"true"` + + // The updated outbound calling name timestamp, in ISO 8601 format. + CallingNameUpdatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` } // String returns the string representation -func (s DeleteSipRuleInput) String() string { +func (s GetPhoneNumberSettingsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeleteSipRuleInput) GoString() string { +func (s GetPhoneNumberSettingsOutput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteSipRuleInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteSipRuleInput"} - if s.SipRuleId == nil { - invalidParams.Add(request.NewErrParamRequired("SipRuleId")) - } - if s.SipRuleId != nil && len(*s.SipRuleId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("SipRuleId", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetCallingName sets the CallingName field's value. +func (s *GetPhoneNumberSettingsOutput) SetCallingName(v string) *GetPhoneNumberSettingsOutput { + s.CallingName = &v + return s } -// SetSipRuleId sets the SipRuleId field's value. -func (s *DeleteSipRuleInput) SetSipRuleId(v string) *DeleteSipRuleInput { - s.SipRuleId = &v +// SetCallingNameUpdatedTimestamp sets the CallingNameUpdatedTimestamp field's value. +func (s *GetPhoneNumberSettingsOutput) SetCallingNameUpdatedTimestamp(v time.Time) *GetPhoneNumberSettingsOutput { + s.CallingNameUpdatedTimestamp = &v return s } -type DeleteSipRuleOutput struct { +type GetProxySessionInput struct { _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s DeleteSipRuleOutput) String() string { - return awsutil.Prettify(s) -} -// GoString returns the string representation -func (s DeleteSipRuleOutput) GoString() string { - return s.String() -} - -type DeleteVoiceConnectorEmergencyCallingConfigurationInput struct { - _ struct{} `type:"structure"` + // The proxy session ID. + // + // ProxySessionId is a required field + ProxySessionId *string `location:"uri" locationName:"proxySessionId" min:"1" type:"string" required:"true"` - // The Amazon Chime Voice Connector ID. + // The Amazon Chime voice connector ID. // // VoiceConnectorId is a required field - VoiceConnectorId *string `location:"uri" locationName:"voiceConnectorId" type:"string" required:"true"` + VoiceConnectorId *string `location:"uri" locationName:"voiceConnectorId" min:"1" type:"string" required:"true"` } // String returns the string representation -func (s DeleteVoiceConnectorEmergencyCallingConfigurationInput) String() string { +func (s GetProxySessionInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeleteVoiceConnectorEmergencyCallingConfigurationInput) GoString() string { +func (s GetProxySessionInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteVoiceConnectorEmergencyCallingConfigurationInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteVoiceConnectorEmergencyCallingConfigurationInput"} +func (s *GetProxySessionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetProxySessionInput"} + if s.ProxySessionId == nil { + invalidParams.Add(request.NewErrParamRequired("ProxySessionId")) + } + if s.ProxySessionId != nil && len(*s.ProxySessionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ProxySessionId", 1)) + } if s.VoiceConnectorId == nil { invalidParams.Add(request.NewErrParamRequired("VoiceConnectorId")) } @@ -18146,53 +28482,68 @@ func (s *DeleteVoiceConnectorEmergencyCallingConfigurationInput) Validate() erro return nil } +// SetProxySessionId sets the ProxySessionId field's value. +func (s *GetProxySessionInput) SetProxySessionId(v string) *GetProxySessionInput { + s.ProxySessionId = &v + return s +} + // SetVoiceConnectorId sets the VoiceConnectorId field's value. -func (s *DeleteVoiceConnectorEmergencyCallingConfigurationInput) SetVoiceConnectorId(v string) *DeleteVoiceConnectorEmergencyCallingConfigurationInput { +func (s *GetProxySessionInput) SetVoiceConnectorId(v string) *GetProxySessionInput { s.VoiceConnectorId = &v return s } -type DeleteVoiceConnectorEmergencyCallingConfigurationOutput struct { +type GetProxySessionOutput struct { _ struct{} `type:"structure"` + + // The proxy session details. + ProxySession *ProxySession `type:"structure"` } // String returns the string representation -func (s DeleteVoiceConnectorEmergencyCallingConfigurationOutput) String() string { +func (s GetProxySessionOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeleteVoiceConnectorEmergencyCallingConfigurationOutput) GoString() string { +func (s GetProxySessionOutput) GoString() string { return s.String() } -type DeleteVoiceConnectorGroupInput struct { +// SetProxySession sets the ProxySession field's value. +func (s *GetProxySessionOutput) SetProxySession(v *ProxySession) *GetProxySessionOutput { + s.ProxySession = v + return s +} + +type GetRetentionSettingsInput struct { _ struct{} `type:"structure"` - // The Amazon Chime Voice Connector group ID. + // The Amazon Chime account ID. // - // VoiceConnectorGroupId is a required field - VoiceConnectorGroupId *string `location:"uri" locationName:"voiceConnectorGroupId" type:"string" required:"true"` + // AccountId is a required field + AccountId *string `location:"uri" locationName:"accountId" type:"string" required:"true"` } // String returns the string representation -func (s DeleteVoiceConnectorGroupInput) String() string { +func (s GetRetentionSettingsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeleteVoiceConnectorGroupInput) GoString() string { +func (s GetRetentionSettingsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteVoiceConnectorGroupInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteVoiceConnectorGroupInput"} - if s.VoiceConnectorGroupId == nil { - invalidParams.Add(request.NewErrParamRequired("VoiceConnectorGroupId")) +func (s *GetRetentionSettingsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetRetentionSettingsInput"} + if s.AccountId == nil { + invalidParams.Add(request.NewErrParamRequired("AccountId")) } - if s.VoiceConnectorGroupId != nil && len(*s.VoiceConnectorGroupId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("VoiceConnectorGroupId", 1)) + if s.AccountId != nil && len(*s.AccountId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) } if invalidParams.Len() > 0 { @@ -18201,53 +28552,83 @@ func (s *DeleteVoiceConnectorGroupInput) Validate() error { return nil } -// SetVoiceConnectorGroupId sets the VoiceConnectorGroupId field's value. -func (s *DeleteVoiceConnectorGroupInput) SetVoiceConnectorGroupId(v string) *DeleteVoiceConnectorGroupInput { - s.VoiceConnectorGroupId = &v +// SetAccountId sets the AccountId field's value. +func (s *GetRetentionSettingsInput) SetAccountId(v string) *GetRetentionSettingsInput { + s.AccountId = &v return s } -type DeleteVoiceConnectorGroupOutput struct { +type GetRetentionSettingsOutput struct { _ struct{} `type:"structure"` + + // The timestamp representing the time at which the specified items are permanently + // deleted, in ISO 8601 format. + InitiateDeletionTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` + + // The retention settings. + RetentionSettings *RetentionSettings `type:"structure"` } // String returns the string representation -func (s DeleteVoiceConnectorGroupOutput) String() string { +func (s GetRetentionSettingsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeleteVoiceConnectorGroupOutput) GoString() string { +func (s GetRetentionSettingsOutput) GoString() string { return s.String() } -type DeleteVoiceConnectorInput struct { +// SetInitiateDeletionTimestamp sets the InitiateDeletionTimestamp field's value. +func (s *GetRetentionSettingsOutput) SetInitiateDeletionTimestamp(v time.Time) *GetRetentionSettingsOutput { + s.InitiateDeletionTimestamp = &v + return s +} + +// SetRetentionSettings sets the RetentionSettings field's value. +func (s *GetRetentionSettingsOutput) SetRetentionSettings(v *RetentionSettings) *GetRetentionSettingsOutput { + s.RetentionSettings = v + return s +} + +type GetRoomInput struct { _ struct{} `type:"structure"` - // The Amazon Chime Voice Connector ID. + // The Amazon Chime account ID. // - // VoiceConnectorId is a required field - VoiceConnectorId *string `location:"uri" locationName:"voiceConnectorId" type:"string" required:"true"` + // AccountId is a required field + AccountId *string `location:"uri" locationName:"accountId" type:"string" required:"true"` + + // The room ID. + // + // RoomId is a required field + RoomId *string `location:"uri" locationName:"roomId" type:"string" required:"true"` } // String returns the string representation -func (s DeleteVoiceConnectorInput) String() string { +func (s GetRoomInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeleteVoiceConnectorInput) GoString() string { +func (s GetRoomInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteVoiceConnectorInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteVoiceConnectorInput"} - if s.VoiceConnectorId == nil { - invalidParams.Add(request.NewErrParamRequired("VoiceConnectorId")) +func (s *GetRoomInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetRoomInput"} + if s.AccountId == nil { + invalidParams.Add(request.NewErrParamRequired("AccountId")) } - if s.VoiceConnectorId != nil && len(*s.VoiceConnectorId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("VoiceConnectorId", 1)) + if s.AccountId != nil && len(*s.AccountId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) + } + if s.RoomId == nil { + invalidParams.Add(request.NewErrParamRequired("RoomId")) + } + if s.RoomId != nil && len(*s.RoomId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RoomId", 1)) } if invalidParams.Len() > 0 { @@ -18256,39 +28637,68 @@ func (s *DeleteVoiceConnectorInput) Validate() error { return nil } -// SetVoiceConnectorId sets the VoiceConnectorId field's value. -func (s *DeleteVoiceConnectorInput) SetVoiceConnectorId(v string) *DeleteVoiceConnectorInput { - s.VoiceConnectorId = &v +// SetAccountId sets the AccountId field's value. +func (s *GetRoomInput) SetAccountId(v string) *GetRoomInput { + s.AccountId = &v return s } -type DeleteVoiceConnectorOriginationInput struct { +// SetRoomId sets the RoomId field's value. +func (s *GetRoomInput) SetRoomId(v string) *GetRoomInput { + s.RoomId = &v + return s +} + +type GetRoomOutput struct { _ struct{} `type:"structure"` - // The Amazon Chime Voice Connector ID. + // The room details. + Room *Room `type:"structure"` +} + +// String returns the string representation +func (s GetRoomOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetRoomOutput) GoString() string { + return s.String() +} + +// SetRoom sets the Room field's value. +func (s *GetRoomOutput) SetRoom(v *Room) *GetRoomOutput { + s.Room = v + return s +} + +type GetSipMediaApplicationInput struct { + _ struct{} `type:"structure"` + + // The SIP media application ID. // - // VoiceConnectorId is a required field - VoiceConnectorId *string `location:"uri" locationName:"voiceConnectorId" type:"string" required:"true"` + // SipMediaApplicationId is a required field + SipMediaApplicationId *string `location:"uri" locationName:"sipMediaApplicationId" type:"string" required:"true"` } // String returns the string representation -func (s DeleteVoiceConnectorOriginationInput) String() string { +func (s GetSipMediaApplicationInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeleteVoiceConnectorOriginationInput) GoString() string { +func (s GetSipMediaApplicationInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteVoiceConnectorOriginationInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteVoiceConnectorOriginationInput"} - if s.VoiceConnectorId == nil { - invalidParams.Add(request.NewErrParamRequired("VoiceConnectorId")) +func (s *GetSipMediaApplicationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetSipMediaApplicationInput"} + if s.SipMediaApplicationId == nil { + invalidParams.Add(request.NewErrParamRequired("SipMediaApplicationId")) } - if s.VoiceConnectorId != nil && len(*s.VoiceConnectorId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("VoiceConnectorId", 1)) + if s.SipMediaApplicationId != nil && len(*s.SipMediaApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("SipMediaApplicationId", 1)) } if invalidParams.Len() > 0 { @@ -18297,122 +28707,126 @@ func (s *DeleteVoiceConnectorOriginationInput) Validate() error { return nil } -// SetVoiceConnectorId sets the VoiceConnectorId field's value. -func (s *DeleteVoiceConnectorOriginationInput) SetVoiceConnectorId(v string) *DeleteVoiceConnectorOriginationInput { - s.VoiceConnectorId = &v +// SetSipMediaApplicationId sets the SipMediaApplicationId field's value. +func (s *GetSipMediaApplicationInput) SetSipMediaApplicationId(v string) *GetSipMediaApplicationInput { + s.SipMediaApplicationId = &v return s } -type DeleteVoiceConnectorOriginationOutput struct { +type GetSipMediaApplicationLoggingConfigurationInput struct { _ struct{} `type:"structure"` + + // The ID of the SIP media application. + // + // SipMediaApplicationId is a required field + SipMediaApplicationId *string `location:"uri" locationName:"sipMediaApplicationId" type:"string" required:"true"` } // String returns the string representation -func (s DeleteVoiceConnectorOriginationOutput) String() string { +func (s GetSipMediaApplicationLoggingConfigurationInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeleteVoiceConnectorOriginationOutput) GoString() string { +func (s GetSipMediaApplicationLoggingConfigurationInput) GoString() string { return s.String() } -type DeleteVoiceConnectorOutput struct { - _ struct{} `type:"structure"` -} +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetSipMediaApplicationLoggingConfigurationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetSipMediaApplicationLoggingConfigurationInput"} + if s.SipMediaApplicationId == nil { + invalidParams.Add(request.NewErrParamRequired("SipMediaApplicationId")) + } + if s.SipMediaApplicationId != nil && len(*s.SipMediaApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("SipMediaApplicationId", 1)) + } -// String returns the string representation -func (s DeleteVoiceConnectorOutput) String() string { - return awsutil.Prettify(s) + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// GoString returns the string representation -func (s DeleteVoiceConnectorOutput) GoString() string { - return s.String() +// SetSipMediaApplicationId sets the SipMediaApplicationId field's value. +func (s *GetSipMediaApplicationLoggingConfigurationInput) SetSipMediaApplicationId(v string) *GetSipMediaApplicationLoggingConfigurationInput { + s.SipMediaApplicationId = &v + return s } -type DeleteVoiceConnectorProxyInput struct { +type GetSipMediaApplicationLoggingConfigurationOutput struct { _ struct{} `type:"structure"` - // The Amazon Chime Voice Connector ID. - // - // VoiceConnectorId is a required field - VoiceConnectorId *string `location:"uri" locationName:"voiceConnectorId" min:"1" type:"string" required:"true"` + // The actual logging configuration. + SipMediaApplicationLoggingConfiguration *SipMediaApplicationLoggingConfiguration `type:"structure"` } // String returns the string representation -func (s DeleteVoiceConnectorProxyInput) String() string { +func (s GetSipMediaApplicationLoggingConfigurationOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeleteVoiceConnectorProxyInput) GoString() string { +func (s GetSipMediaApplicationLoggingConfigurationOutput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteVoiceConnectorProxyInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteVoiceConnectorProxyInput"} - if s.VoiceConnectorId == nil { - invalidParams.Add(request.NewErrParamRequired("VoiceConnectorId")) - } - if s.VoiceConnectorId != nil && len(*s.VoiceConnectorId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("VoiceConnectorId", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetVoiceConnectorId sets the VoiceConnectorId field's value. -func (s *DeleteVoiceConnectorProxyInput) SetVoiceConnectorId(v string) *DeleteVoiceConnectorProxyInput { - s.VoiceConnectorId = &v +// SetSipMediaApplicationLoggingConfiguration sets the SipMediaApplicationLoggingConfiguration field's value. +func (s *GetSipMediaApplicationLoggingConfigurationOutput) SetSipMediaApplicationLoggingConfiguration(v *SipMediaApplicationLoggingConfiguration) *GetSipMediaApplicationLoggingConfigurationOutput { + s.SipMediaApplicationLoggingConfiguration = v return s } -type DeleteVoiceConnectorProxyOutput struct { +type GetSipMediaApplicationOutput struct { _ struct{} `type:"structure"` + + // The SIP media application details. + SipMediaApplication *SipMediaApplication `type:"structure"` } // String returns the string representation -func (s DeleteVoiceConnectorProxyOutput) String() string { +func (s GetSipMediaApplicationOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeleteVoiceConnectorProxyOutput) GoString() string { +func (s GetSipMediaApplicationOutput) GoString() string { return s.String() } -type DeleteVoiceConnectorStreamingConfigurationInput struct { +// SetSipMediaApplication sets the SipMediaApplication field's value. +func (s *GetSipMediaApplicationOutput) SetSipMediaApplication(v *SipMediaApplication) *GetSipMediaApplicationOutput { + s.SipMediaApplication = v + return s +} + +type GetSipRuleInput struct { _ struct{} `type:"structure"` - // The Amazon Chime Voice Connector ID. + // The SIP rule ID. // - // VoiceConnectorId is a required field - VoiceConnectorId *string `location:"uri" locationName:"voiceConnectorId" type:"string" required:"true"` + // SipRuleId is a required field + SipRuleId *string `location:"uri" locationName:"sipRuleId" type:"string" required:"true"` } // String returns the string representation -func (s DeleteVoiceConnectorStreamingConfigurationInput) String() string { +func (s GetSipRuleInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeleteVoiceConnectorStreamingConfigurationInput) GoString() string { +func (s GetSipRuleInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteVoiceConnectorStreamingConfigurationInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteVoiceConnectorStreamingConfigurationInput"} - if s.VoiceConnectorId == nil { - invalidParams.Add(request.NewErrParamRequired("VoiceConnectorId")) +func (s *GetSipRuleInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetSipRuleInput"} + if s.SipRuleId == nil { + invalidParams.Add(request.NewErrParamRequired("SipRuleId")) } - if s.VoiceConnectorId != nil && len(*s.VoiceConnectorId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("VoiceConnectorId", 1)) + if s.SipRuleId != nil && len(*s.SipRuleId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("SipRuleId", 1)) } if invalidParams.Len() > 0 { @@ -18421,62 +28835,73 @@ func (s *DeleteVoiceConnectorStreamingConfigurationInput) Validate() error { return nil } -// SetVoiceConnectorId sets the VoiceConnectorId field's value. -func (s *DeleteVoiceConnectorStreamingConfigurationInput) SetVoiceConnectorId(v string) *DeleteVoiceConnectorStreamingConfigurationInput { - s.VoiceConnectorId = &v +// SetSipRuleId sets the SipRuleId field's value. +func (s *GetSipRuleInput) SetSipRuleId(v string) *GetSipRuleInput { + s.SipRuleId = &v return s } -type DeleteVoiceConnectorStreamingConfigurationOutput struct { +type GetSipRuleOutput struct { _ struct{} `type:"structure"` + + // The SIP rule details. + SipRule *SipRule `type:"structure"` } // String returns the string representation -func (s DeleteVoiceConnectorStreamingConfigurationOutput) String() string { +func (s GetSipRuleOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeleteVoiceConnectorStreamingConfigurationOutput) GoString() string { +func (s GetSipRuleOutput) GoString() string { return s.String() } -type DeleteVoiceConnectorTerminationCredentialsInput struct { +// SetSipRule sets the SipRule field's value. +func (s *GetSipRuleOutput) SetSipRule(v *SipRule) *GetSipRuleOutput { + s.SipRule = v + return s +} + +type GetUserInput struct { _ struct{} `type:"structure"` - // The RFC2617 compliant username associated with the SIP credentials, in US-ASCII - // format. + // The Amazon Chime account ID. // - // Usernames is a required field - Usernames []*string `type:"list" required:"true"` + // AccountId is a required field + AccountId *string `location:"uri" locationName:"accountId" type:"string" required:"true"` - // The Amazon Chime Voice Connector ID. + // The user ID. // - // VoiceConnectorId is a required field - VoiceConnectorId *string `location:"uri" locationName:"voiceConnectorId" type:"string" required:"true"` + // UserId is a required field + UserId *string `location:"uri" locationName:"userId" type:"string" required:"true"` } // String returns the string representation -func (s DeleteVoiceConnectorTerminationCredentialsInput) String() string { +func (s GetUserInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeleteVoiceConnectorTerminationCredentialsInput) GoString() string { +func (s GetUserInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteVoiceConnectorTerminationCredentialsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteVoiceConnectorTerminationCredentialsInput"} - if s.Usernames == nil { - invalidParams.Add(request.NewErrParamRequired("Usernames")) +func (s *GetUserInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetUserInput"} + if s.AccountId == nil { + invalidParams.Add(request.NewErrParamRequired("AccountId")) } - if s.VoiceConnectorId == nil { - invalidParams.Add(request.NewErrParamRequired("VoiceConnectorId")) + if s.AccountId != nil && len(*s.AccountId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) } - if s.VoiceConnectorId != nil && len(*s.VoiceConnectorId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("VoiceConnectorId", 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 { @@ -18485,59 +28910,79 @@ func (s *DeleteVoiceConnectorTerminationCredentialsInput) Validate() error { return nil } -// SetUsernames sets the Usernames field's value. -func (s *DeleteVoiceConnectorTerminationCredentialsInput) SetUsernames(v []*string) *DeleteVoiceConnectorTerminationCredentialsInput { - s.Usernames = v +// SetAccountId sets the AccountId field's value. +func (s *GetUserInput) SetAccountId(v string) *GetUserInput { + s.AccountId = &v return s } -// SetVoiceConnectorId sets the VoiceConnectorId field's value. -func (s *DeleteVoiceConnectorTerminationCredentialsInput) SetVoiceConnectorId(v string) *DeleteVoiceConnectorTerminationCredentialsInput { - s.VoiceConnectorId = &v +// SetUserId sets the UserId field's value. +func (s *GetUserInput) SetUserId(v string) *GetUserInput { + s.UserId = &v return s } -type DeleteVoiceConnectorTerminationCredentialsOutput struct { +type GetUserOutput struct { _ struct{} `type:"structure"` + + // The user details. + User *User `type:"structure"` } // String returns the string representation -func (s DeleteVoiceConnectorTerminationCredentialsOutput) String() string { +func (s GetUserOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeleteVoiceConnectorTerminationCredentialsOutput) GoString() string { +func (s GetUserOutput) GoString() string { return s.String() } -type DeleteVoiceConnectorTerminationInput struct { +// SetUser sets the User field's value. +func (s *GetUserOutput) SetUser(v *User) *GetUserOutput { + s.User = v + return s +} + +type GetUserSettingsInput struct { _ struct{} `type:"structure"` - // The Amazon Chime Voice Connector ID. + // The Amazon Chime account ID. // - // VoiceConnectorId is a required field - VoiceConnectorId *string `location:"uri" locationName:"voiceConnectorId" type:"string" required:"true"` + // AccountId is a required field + AccountId *string `location:"uri" locationName:"accountId" type:"string" required:"true"` + + // The user ID. + // + // UserId is a required field + UserId *string `location:"uri" locationName:"userId" type:"string" required:"true"` } // String returns the string representation -func (s DeleteVoiceConnectorTerminationInput) String() string { +func (s GetUserSettingsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeleteVoiceConnectorTerminationInput) GoString() string { +func (s GetUserSettingsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteVoiceConnectorTerminationInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteVoiceConnectorTerminationInput"} - if s.VoiceConnectorId == nil { - invalidParams.Add(request.NewErrParamRequired("VoiceConnectorId")) +func (s *GetUserSettingsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetUserSettingsInput"} + if s.AccountId == nil { + invalidParams.Add(request.NewErrParamRequired("AccountId")) } - if s.VoiceConnectorId != nil && len(*s.VoiceConnectorId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("VoiceConnectorId", 1)) + if s.AccountId != nil && len(*s.AccountId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AccountId", 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 { @@ -18546,64 +28991,68 @@ func (s *DeleteVoiceConnectorTerminationInput) Validate() error { return nil } -// SetVoiceConnectorId sets the VoiceConnectorId field's value. -func (s *DeleteVoiceConnectorTerminationInput) SetVoiceConnectorId(v string) *DeleteVoiceConnectorTerminationInput { - s.VoiceConnectorId = &v +// SetAccountId sets the AccountId field's value. +func (s *GetUserSettingsInput) SetAccountId(v string) *GetUserSettingsInput { + s.AccountId = &v return s } -type DeleteVoiceConnectorTerminationOutput struct { +// SetUserId sets the UserId field's value. +func (s *GetUserSettingsInput) SetUserId(v string) *GetUserSettingsInput { + s.UserId = &v + return s +} + +type GetUserSettingsOutput struct { _ struct{} `type:"structure"` + + // The user settings. + UserSettings *UserSettings `type:"structure"` } // String returns the string representation -func (s DeleteVoiceConnectorTerminationOutput) String() string { +func (s GetUserSettingsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeleteVoiceConnectorTerminationOutput) GoString() string { +func (s GetUserSettingsOutput) GoString() string { return s.String() } -type DisassociatePhoneNumberFromUserInput struct { - _ struct{} `type:"structure"` +// SetUserSettings sets the UserSettings field's value. +func (s *GetUserSettingsOutput) SetUserSettings(v *UserSettings) *GetUserSettingsOutput { + s.UserSettings = v + return s +} - // The Amazon Chime account ID. - // - // AccountId is a required field - AccountId *string `location:"uri" locationName:"accountId" type:"string" required:"true"` +type GetVoiceConnectorEmergencyCallingConfigurationInput struct { + _ struct{} `type:"structure"` - // The user ID. + // The Amazon Chime Voice Connector ID. // - // UserId is a required field - UserId *string `location:"uri" locationName:"userId" type:"string" required:"true"` + // VoiceConnectorId is a required field + VoiceConnectorId *string `location:"uri" locationName:"voiceConnectorId" type:"string" required:"true"` } // String returns the string representation -func (s DisassociatePhoneNumberFromUserInput) String() string { +func (s GetVoiceConnectorEmergencyCallingConfigurationInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DisassociatePhoneNumberFromUserInput) GoString() string { +func (s GetVoiceConnectorEmergencyCallingConfigurationInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DisassociatePhoneNumberFromUserInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DisassociatePhoneNumberFromUserInput"} - if s.AccountId == nil { - invalidParams.Add(request.NewErrParamRequired("AccountId")) - } - if s.AccountId != nil && len(*s.AccountId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) - } - if s.UserId == nil { - invalidParams.Add(request.NewErrParamRequired("UserId")) +func (s *GetVoiceConnectorEmergencyCallingConfigurationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetVoiceConnectorEmergencyCallingConfigurationInput"} + if s.VoiceConnectorId == nil { + invalidParams.Add(request.NewErrParamRequired("VoiceConnectorId")) } - if s.UserId != nil && len(*s.UserId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("UserId", 1)) + if s.VoiceConnectorId != nil && len(*s.VoiceConnectorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VoiceConnectorId", 1)) } if invalidParams.Len() > 0 { @@ -18612,39 +29061,37 @@ func (s *DisassociatePhoneNumberFromUserInput) Validate() error { return nil } -// SetAccountId sets the AccountId field's value. -func (s *DisassociatePhoneNumberFromUserInput) SetAccountId(v string) *DisassociatePhoneNumberFromUserInput { - s.AccountId = &v - return s -} - -// SetUserId sets the UserId field's value. -func (s *DisassociatePhoneNumberFromUserInput) SetUserId(v string) *DisassociatePhoneNumberFromUserInput { - s.UserId = &v +// SetVoiceConnectorId sets the VoiceConnectorId field's value. +func (s *GetVoiceConnectorEmergencyCallingConfigurationInput) SetVoiceConnectorId(v string) *GetVoiceConnectorEmergencyCallingConfigurationInput { + s.VoiceConnectorId = &v return s } -type DisassociatePhoneNumberFromUserOutput struct { +type GetVoiceConnectorEmergencyCallingConfigurationOutput struct { _ struct{} `type:"structure"` + + // The emergency calling configuration details. + EmergencyCallingConfiguration *EmergencyCallingConfiguration `type:"structure"` } // String returns the string representation -func (s DisassociatePhoneNumberFromUserOutput) String() string { +func (s GetVoiceConnectorEmergencyCallingConfigurationOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DisassociatePhoneNumberFromUserOutput) GoString() string { +func (s GetVoiceConnectorEmergencyCallingConfigurationOutput) GoString() string { return s.String() } -type DisassociatePhoneNumbersFromVoiceConnectorGroupInput struct { - _ struct{} `type:"structure"` +// SetEmergencyCallingConfiguration sets the EmergencyCallingConfiguration field's value. +func (s *GetVoiceConnectorEmergencyCallingConfigurationOutput) SetEmergencyCallingConfiguration(v *EmergencyCallingConfiguration) *GetVoiceConnectorEmergencyCallingConfigurationOutput { + s.EmergencyCallingConfiguration = v + return s +} - // List of phone numbers, in E.164 format. - // - // E164PhoneNumbers is a required field - E164PhoneNumbers []*string `type:"list" required:"true"` +type GetVoiceConnectorGroupInput struct { + _ struct{} `type:"structure"` // The Amazon Chime Voice Connector group ID. // @@ -18653,21 +29100,18 @@ type DisassociatePhoneNumbersFromVoiceConnectorGroupInput struct { } // String returns the string representation -func (s DisassociatePhoneNumbersFromVoiceConnectorGroupInput) String() string { +func (s GetVoiceConnectorGroupInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DisassociatePhoneNumbersFromVoiceConnectorGroupInput) GoString() string { +func (s GetVoiceConnectorGroupInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DisassociatePhoneNumbersFromVoiceConnectorGroupInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DisassociatePhoneNumbersFromVoiceConnectorGroupInput"} - if s.E164PhoneNumbers == nil { - invalidParams.Add(request.NewErrParamRequired("E164PhoneNumbers")) - } +func (s *GetVoiceConnectorGroupInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetVoiceConnectorGroupInput"} if s.VoiceConnectorGroupId == nil { invalidParams.Add(request.NewErrParamRequired("VoiceConnectorGroupId")) } @@ -18681,51 +29125,38 @@ func (s *DisassociatePhoneNumbersFromVoiceConnectorGroupInput) Validate() error return nil } -// SetE164PhoneNumbers sets the E164PhoneNumbers field's value. -func (s *DisassociatePhoneNumbersFromVoiceConnectorGroupInput) SetE164PhoneNumbers(v []*string) *DisassociatePhoneNumbersFromVoiceConnectorGroupInput { - s.E164PhoneNumbers = v - return s -} - // SetVoiceConnectorGroupId sets the VoiceConnectorGroupId field's value. -func (s *DisassociatePhoneNumbersFromVoiceConnectorGroupInput) SetVoiceConnectorGroupId(v string) *DisassociatePhoneNumbersFromVoiceConnectorGroupInput { +func (s *GetVoiceConnectorGroupInput) SetVoiceConnectorGroupId(v string) *GetVoiceConnectorGroupInput { s.VoiceConnectorGroupId = &v return s } -type DisassociatePhoneNumbersFromVoiceConnectorGroupOutput struct { +type GetVoiceConnectorGroupOutput struct { _ struct{} `type:"structure"` - // If the action fails for one or more of the phone numbers in the request, - // a list of the phone numbers is returned, along with error codes and error - // messages. - PhoneNumberErrors []*PhoneNumberError `type:"list"` + // The Amazon Chime Voice Connector group details. + VoiceConnectorGroup *VoiceConnectorGroup `type:"structure"` } // String returns the string representation -func (s DisassociatePhoneNumbersFromVoiceConnectorGroupOutput) String() string { +func (s GetVoiceConnectorGroupOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DisassociatePhoneNumbersFromVoiceConnectorGroupOutput) GoString() string { +func (s GetVoiceConnectorGroupOutput) GoString() string { return s.String() } -// SetPhoneNumberErrors sets the PhoneNumberErrors field's value. -func (s *DisassociatePhoneNumbersFromVoiceConnectorGroupOutput) SetPhoneNumberErrors(v []*PhoneNumberError) *DisassociatePhoneNumbersFromVoiceConnectorGroupOutput { - s.PhoneNumberErrors = v +// SetVoiceConnectorGroup sets the VoiceConnectorGroup field's value. +func (s *GetVoiceConnectorGroupOutput) SetVoiceConnectorGroup(v *VoiceConnectorGroup) *GetVoiceConnectorGroupOutput { + s.VoiceConnectorGroup = v return s } -type DisassociatePhoneNumbersFromVoiceConnectorInput struct { +type GetVoiceConnectorInput struct { _ struct{} `type:"structure"` - // List of phone numbers, in E.164 format. - // - // E164PhoneNumbers is a required field - E164PhoneNumbers []*string `type:"list" required:"true"` - // The Amazon Chime Voice Connector ID. // // VoiceConnectorId is a required field @@ -18733,21 +29164,18 @@ type DisassociatePhoneNumbersFromVoiceConnectorInput struct { } // String returns the string representation -func (s DisassociatePhoneNumbersFromVoiceConnectorInput) String() string { +func (s GetVoiceConnectorInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DisassociatePhoneNumbersFromVoiceConnectorInput) GoString() string { +func (s GetVoiceConnectorInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DisassociatePhoneNumbersFromVoiceConnectorInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DisassociatePhoneNumbersFromVoiceConnectorInput"} - if s.E164PhoneNumbers == nil { - invalidParams.Add(request.NewErrParamRequired("E164PhoneNumbers")) - } +func (s *GetVoiceConnectorInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetVoiceConnectorInput"} if s.VoiceConnectorId == nil { invalidParams.Add(request.NewErrParamRequired("VoiceConnectorId")) } @@ -18761,81 +29189,39 @@ func (s *DisassociatePhoneNumbersFromVoiceConnectorInput) Validate() error { return nil } -// SetE164PhoneNumbers sets the E164PhoneNumbers field's value. -func (s *DisassociatePhoneNumbersFromVoiceConnectorInput) SetE164PhoneNumbers(v []*string) *DisassociatePhoneNumbersFromVoiceConnectorInput { - s.E164PhoneNumbers = v - return s -} - // SetVoiceConnectorId sets the VoiceConnectorId field's value. -func (s *DisassociatePhoneNumbersFromVoiceConnectorInput) SetVoiceConnectorId(v string) *DisassociatePhoneNumbersFromVoiceConnectorInput { +func (s *GetVoiceConnectorInput) SetVoiceConnectorId(v string) *GetVoiceConnectorInput { s.VoiceConnectorId = &v return s } -type DisassociatePhoneNumbersFromVoiceConnectorOutput struct { - _ struct{} `type:"structure"` - - // If the action fails for one or more of the phone numbers in the request, - // a list of the phone numbers is returned, along with error codes and error - // messages. - PhoneNumberErrors []*PhoneNumberError `type:"list"` -} - -// String returns the string representation -func (s DisassociatePhoneNumbersFromVoiceConnectorOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s DisassociatePhoneNumbersFromVoiceConnectorOutput) GoString() string { - return s.String() -} - -// SetPhoneNumberErrors sets the PhoneNumberErrors field's value. -func (s *DisassociatePhoneNumbersFromVoiceConnectorOutput) SetPhoneNumberErrors(v []*PhoneNumberError) *DisassociatePhoneNumbersFromVoiceConnectorOutput { - s.PhoneNumberErrors = v - return s -} - -type DisassociateSigninDelegateGroupsFromAccountInput struct { +type GetVoiceConnectorLoggingConfigurationInput struct { _ struct{} `type:"structure"` - // The Amazon Chime account ID. - // - // AccountId is a required field - AccountId *string `location:"uri" locationName:"accountId" type:"string" required:"true"` - - // The sign-in delegate group names. + // The Amazon Chime Voice Connector ID. // - // GroupNames is a required field - GroupNames []*string `min:"1" type:"list" required:"true"` + // VoiceConnectorId is a required field + VoiceConnectorId *string `location:"uri" locationName:"voiceConnectorId" type:"string" required:"true"` } // String returns the string representation -func (s DisassociateSigninDelegateGroupsFromAccountInput) String() string { +func (s GetVoiceConnectorLoggingConfigurationInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DisassociateSigninDelegateGroupsFromAccountInput) GoString() string { +func (s GetVoiceConnectorLoggingConfigurationInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DisassociateSigninDelegateGroupsFromAccountInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DisassociateSigninDelegateGroupsFromAccountInput"} - if s.AccountId == nil { - invalidParams.Add(request.NewErrParamRequired("AccountId")) - } - if s.AccountId != nil && len(*s.AccountId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) - } - if s.GroupNames == nil { - invalidParams.Add(request.NewErrParamRequired("GroupNames")) +func (s *GetVoiceConnectorLoggingConfigurationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetVoiceConnectorLoggingConfigurationInput"} + if s.VoiceConnectorId == nil { + invalidParams.Add(request.NewErrParamRequired("VoiceConnectorId")) } - if s.GroupNames != nil && len(s.GroupNames) < 1 { - invalidParams.Add(request.NewErrParamMinLen("GroupNames", 1)) + if s.VoiceConnectorId != nil && len(*s.VoiceConnectorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VoiceConnectorId", 1)) } if invalidParams.Len() > 0 { @@ -18844,64 +29230,62 @@ func (s *DisassociateSigninDelegateGroupsFromAccountInput) Validate() error { return nil } -// SetAccountId sets the AccountId field's value. -func (s *DisassociateSigninDelegateGroupsFromAccountInput) SetAccountId(v string) *DisassociateSigninDelegateGroupsFromAccountInput { - s.AccountId = &v - return s -} - -// SetGroupNames sets the GroupNames field's value. -func (s *DisassociateSigninDelegateGroupsFromAccountInput) SetGroupNames(v []*string) *DisassociateSigninDelegateGroupsFromAccountInput { - s.GroupNames = v +// SetVoiceConnectorId sets the VoiceConnectorId field's value. +func (s *GetVoiceConnectorLoggingConfigurationInput) SetVoiceConnectorId(v string) *GetVoiceConnectorLoggingConfigurationInput { + s.VoiceConnectorId = &v return s } -type DisassociateSigninDelegateGroupsFromAccountOutput struct { +type GetVoiceConnectorLoggingConfigurationOutput struct { _ struct{} `type:"structure"` + + // The logging configuration details. + LoggingConfiguration *LoggingConfiguration `type:"structure"` } // String returns the string representation -func (s DisassociateSigninDelegateGroupsFromAccountOutput) String() string { +func (s GetVoiceConnectorLoggingConfigurationOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DisassociateSigninDelegateGroupsFromAccountOutput) GoString() string { +func (s GetVoiceConnectorLoggingConfigurationOutput) GoString() string { return s.String() } -// The emergency calling configuration details associated with an Amazon Chime -// Voice Connector. -type EmergencyCallingConfiguration struct { +// SetLoggingConfiguration sets the LoggingConfiguration field's value. +func (s *GetVoiceConnectorLoggingConfigurationOutput) SetLoggingConfiguration(v *LoggingConfiguration) *GetVoiceConnectorLoggingConfigurationOutput { + s.LoggingConfiguration = v + return s +} + +type GetVoiceConnectorOriginationInput struct { _ struct{} `type:"structure"` - // The Dialed Number Identification Service (DNIS) emergency calling configuration - // details. - DNIS []*DNISEmergencyCallingConfiguration `type:"list"` + // The Amazon Chime Voice Connector ID. + // + // VoiceConnectorId is a required field + VoiceConnectorId *string `location:"uri" locationName:"voiceConnectorId" type:"string" required:"true"` } // String returns the string representation -func (s EmergencyCallingConfiguration) String() string { +func (s GetVoiceConnectorOriginationInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s EmergencyCallingConfiguration) GoString() string { +func (s GetVoiceConnectorOriginationInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *EmergencyCallingConfiguration) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "EmergencyCallingConfiguration"} - if s.DNIS != nil { - for i, v := range s.DNIS { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "DNIS", i), err.(request.ErrInvalidParams)) - } - } +func (s *GetVoiceConnectorOriginationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetVoiceConnectorOriginationInput"} + if s.VoiceConnectorId == nil { + invalidParams.Add(request.NewErrParamRequired("VoiceConnectorId")) + } + if s.VoiceConnectorId != nil && len(*s.VoiceConnectorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VoiceConnectorId", 1)) } if invalidParams.Len() > 0 { @@ -18910,147 +29294,149 @@ func (s *EmergencyCallingConfiguration) Validate() error { return nil } -// SetDNIS sets the DNIS field's value. -func (s *EmergencyCallingConfiguration) SetDNIS(v []*DNISEmergencyCallingConfiguration) *EmergencyCallingConfiguration { - s.DNIS = v +// SetVoiceConnectorId sets the VoiceConnectorId field's value. +func (s *GetVoiceConnectorOriginationInput) SetVoiceConnectorId(v string) *GetVoiceConnectorOriginationInput { + s.VoiceConnectorId = &v return s } -// The configuration that allows a bot to receive outgoing events. Can be either -// an HTTPS endpoint or a Lambda function ARN. -type EventsConfiguration struct { +type GetVoiceConnectorOriginationOutput struct { _ struct{} `type:"structure"` - // The bot ID. - BotId *string `type:"string"` - - // Lambda function ARN that allows a bot to receive outgoing events. - LambdaFunctionArn *string `type:"string" sensitive:"true"` - - // HTTPS endpoint that allows a bot to receive outgoing events. - OutboundEventsHTTPSEndpoint *string `type:"string" sensitive:"true"` + // The origination setting details. + Origination *Origination `type:"structure"` } // String returns the string representation -func (s EventsConfiguration) String() string { +func (s GetVoiceConnectorOriginationOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s EventsConfiguration) GoString() string { +func (s GetVoiceConnectorOriginationOutput) GoString() string { return s.String() } -// SetBotId sets the BotId field's value. -func (s *EventsConfiguration) SetBotId(v string) *EventsConfiguration { - s.BotId = &v +// SetOrigination sets the Origination field's value. +func (s *GetVoiceConnectorOriginationOutput) SetOrigination(v *Origination) *GetVoiceConnectorOriginationOutput { + s.Origination = v return s } -// SetLambdaFunctionArn sets the LambdaFunctionArn field's value. -func (s *EventsConfiguration) SetLambdaFunctionArn(v string) *EventsConfiguration { - s.LambdaFunctionArn = &v - return s +type GetVoiceConnectorOutput struct { + _ struct{} `type:"structure"` + + // The Amazon Chime Voice Connector details. + VoiceConnector *VoiceConnector `type:"structure"` } -// SetOutboundEventsHTTPSEndpoint sets the OutboundEventsHTTPSEndpoint field's value. -func (s *EventsConfiguration) SetOutboundEventsHTTPSEndpoint(v string) *EventsConfiguration { - s.OutboundEventsHTTPSEndpoint = &v - return s +// String returns the string representation +func (s GetVoiceConnectorOutput) String() string { + return awsutil.Prettify(s) } -// The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported Region. -type ForbiddenException struct { - _ struct{} `type:"structure"` - RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` +// GoString returns the string representation +func (s GetVoiceConnectorOutput) GoString() string { + return s.String() +} - Code_ *string `locationName:"Code" type:"string" enum:"ErrorCode"` +// SetVoiceConnector sets the VoiceConnector field's value. +func (s *GetVoiceConnectorOutput) SetVoiceConnector(v *VoiceConnector) *GetVoiceConnectorOutput { + s.VoiceConnector = v + return s +} - Message_ *string `locationName:"Message" type:"string"` +type GetVoiceConnectorProxyInput struct { + _ struct{} `type:"structure"` + + // The Amazon Chime voice connector ID. + // + // VoiceConnectorId is a required field + VoiceConnectorId *string `location:"uri" locationName:"voiceConnectorId" min:"1" type:"string" required:"true"` } // String returns the string representation -func (s ForbiddenException) String() string { +func (s GetVoiceConnectorProxyInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ForbiddenException) GoString() string { +func (s GetVoiceConnectorProxyInput) GoString() string { return s.String() } -func newErrorForbiddenException(v protocol.ResponseMetadata) error { - return &ForbiddenException{ - RespMetadata: v, +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetVoiceConnectorProxyInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetVoiceConnectorProxyInput"} + if s.VoiceConnectorId == nil { + invalidParams.Add(request.NewErrParamRequired("VoiceConnectorId")) + } + if s.VoiceConnectorId != nil && len(*s.VoiceConnectorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VoiceConnectorId", 1)) } -} -// Code returns the exception type name. -func (s *ForbiddenException) Code() string { - return "ForbiddenException" + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// Message returns the exception's message. -func (s *ForbiddenException) Message() string { - if s.Message_ != nil { - return *s.Message_ - } - return "" +// SetVoiceConnectorId sets the VoiceConnectorId field's value. +func (s *GetVoiceConnectorProxyInput) SetVoiceConnectorId(v string) *GetVoiceConnectorProxyInput { + s.VoiceConnectorId = &v + return s } -// OrigErr always returns nil, satisfies awserr.Error interface. -func (s *ForbiddenException) OrigErr() error { - return nil +type GetVoiceConnectorProxyOutput struct { + _ struct{} `type:"structure"` + + // The proxy configuration details. + Proxy *Proxy `type:"structure"` } -func (s *ForbiddenException) Error() string { - return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +// String returns the string representation +func (s GetVoiceConnectorProxyOutput) String() string { + return awsutil.Prettify(s) } -// Status code returns the HTTP status code for the request's response error. -func (s *ForbiddenException) StatusCode() int { - return s.RespMetadata.StatusCode +// GoString returns the string representation +func (s GetVoiceConnectorProxyOutput) GoString() string { + return s.String() } -// RequestID returns the service's response RequestID for request. -func (s *ForbiddenException) RequestID() string { - return s.RespMetadata.RequestID +// SetProxy sets the Proxy field's value. +func (s *GetVoiceConnectorProxyOutput) SetProxy(v *Proxy) *GetVoiceConnectorProxyOutput { + s.Proxy = v + return s } -// The country and area code for a proxy phone number in a proxy phone session. -type GeoMatchParams struct { +type GetVoiceConnectorStreamingConfigurationInput struct { _ struct{} `type:"structure"` - // The area code. - // - // AreaCode is a required field - AreaCode *string `type:"string" required:"true"` - - // The country. + // The Amazon Chime Voice Connector ID. // - // Country is a required field - Country *string `type:"string" required:"true"` + // VoiceConnectorId is a required field + VoiceConnectorId *string `location:"uri" locationName:"voiceConnectorId" type:"string" required:"true"` } // String returns the string representation -func (s GeoMatchParams) String() string { +func (s GetVoiceConnectorStreamingConfigurationInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GeoMatchParams) GoString() string { +func (s GetVoiceConnectorStreamingConfigurationInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *GeoMatchParams) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GeoMatchParams"} - if s.AreaCode == nil { - invalidParams.Add(request.NewErrParamRequired("AreaCode")) +func (s *GetVoiceConnectorStreamingConfigurationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetVoiceConnectorStreamingConfigurationInput"} + if s.VoiceConnectorId == nil { + invalidParams.Add(request.NewErrParamRequired("VoiceConnectorId")) } - if s.Country == nil { - invalidParams.Add(request.NewErrParamRequired("Country")) + if s.VoiceConnectorId != nil && len(*s.VoiceConnectorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VoiceConnectorId", 1)) } if invalidParams.Len() > 0 { @@ -19059,45 +29445,62 @@ func (s *GeoMatchParams) Validate() error { return nil } -// SetAreaCode sets the AreaCode field's value. -func (s *GeoMatchParams) SetAreaCode(v string) *GeoMatchParams { - s.AreaCode = &v +// SetVoiceConnectorId sets the VoiceConnectorId field's value. +func (s *GetVoiceConnectorStreamingConfigurationInput) SetVoiceConnectorId(v string) *GetVoiceConnectorStreamingConfigurationInput { + s.VoiceConnectorId = &v return s } -// SetCountry sets the Country field's value. -func (s *GeoMatchParams) SetCountry(v string) *GeoMatchParams { - s.Country = &v +type GetVoiceConnectorStreamingConfigurationOutput struct { + _ struct{} `type:"structure"` + + // The streaming configuration details. + StreamingConfiguration *StreamingConfiguration `type:"structure"` +} + +// String returns the string representation +func (s GetVoiceConnectorStreamingConfigurationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetVoiceConnectorStreamingConfigurationOutput) GoString() string { + return s.String() +} + +// SetStreamingConfiguration sets the StreamingConfiguration field's value. +func (s *GetVoiceConnectorStreamingConfigurationOutput) SetStreamingConfiguration(v *StreamingConfiguration) *GetVoiceConnectorStreamingConfigurationOutput { + s.StreamingConfiguration = v return s } -type GetAccountInput struct { +type GetVoiceConnectorTerminationHealthInput struct { _ struct{} `type:"structure"` - // The Amazon Chime account ID. + // The Amazon Chime Voice Connector ID. // - // AccountId is a required field - AccountId *string `location:"uri" locationName:"accountId" type:"string" required:"true"` + // VoiceConnectorId is a required field + VoiceConnectorId *string `location:"uri" locationName:"voiceConnectorId" type:"string" required:"true"` } // String returns the string representation -func (s GetAccountInput) String() string { +func (s GetVoiceConnectorTerminationHealthInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetAccountInput) GoString() string { +func (s GetVoiceConnectorTerminationHealthInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *GetAccountInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetAccountInput"} - if s.AccountId == nil { - invalidParams.Add(request.NewErrParamRequired("AccountId")) +func (s *GetVoiceConnectorTerminationHealthInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetVoiceConnectorTerminationHealthInput"} + if s.VoiceConnectorId == nil { + invalidParams.Add(request.NewErrParamRequired("VoiceConnectorId")) } - if s.AccountId != nil && len(*s.AccountId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) + if s.VoiceConnectorId != nil && len(*s.VoiceConnectorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VoiceConnectorId", 1)) } if invalidParams.Len() > 0 { @@ -19106,63 +29509,62 @@ func (s *GetAccountInput) Validate() error { return nil } -// SetAccountId sets the AccountId field's value. -func (s *GetAccountInput) SetAccountId(v string) *GetAccountInput { - s.AccountId = &v +// SetVoiceConnectorId sets the VoiceConnectorId field's value. +func (s *GetVoiceConnectorTerminationHealthInput) SetVoiceConnectorId(v string) *GetVoiceConnectorTerminationHealthInput { + s.VoiceConnectorId = &v return s } -type GetAccountOutput struct { +type GetVoiceConnectorTerminationHealthOutput struct { _ struct{} `type:"structure"` - // The Amazon Chime account details. An AWS account can have multiple Amazon - // Chime accounts. - Account *Account `type:"structure"` + // The termination health details. + TerminationHealth *TerminationHealth `type:"structure"` } // String returns the string representation -func (s GetAccountOutput) String() string { +func (s GetVoiceConnectorTerminationHealthOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetAccountOutput) GoString() string { +func (s GetVoiceConnectorTerminationHealthOutput) GoString() string { return s.String() } -// SetAccount sets the Account field's value. -func (s *GetAccountOutput) SetAccount(v *Account) *GetAccountOutput { - s.Account = v +// SetTerminationHealth sets the TerminationHealth field's value. +func (s *GetVoiceConnectorTerminationHealthOutput) SetTerminationHealth(v *TerminationHealth) *GetVoiceConnectorTerminationHealthOutput { + s.TerminationHealth = v return s } -type GetAccountSettingsInput struct { +type GetVoiceConnectorTerminationInput struct { _ struct{} `type:"structure"` - // The Amazon Chime account ID. + // The Amazon Chime Voice Connector ID. // - // AccountId is a required field - AccountId *string `location:"uri" locationName:"accountId" type:"string" required:"true"` + // VoiceConnectorId is a required field + VoiceConnectorId *string `location:"uri" locationName:"voiceConnectorId" type:"string" required:"true"` } // String returns the string representation -func (s GetAccountSettingsInput) String() string { +func (s GetVoiceConnectorTerminationInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetAccountSettingsInput) GoString() string { +func (s GetVoiceConnectorTerminationInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *GetAccountSettingsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetAccountSettingsInput"} - if s.AccountId == nil { - invalidParams.Add(request.NewErrParamRequired("AccountId")) +func (s *GetVoiceConnectorTerminationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetVoiceConnectorTerminationInput"} + if s.VoiceConnectorId == nil { + invalidParams.Add(request.NewErrParamRequired("VoiceConnectorId")) } - if s.AccountId != nil && len(*s.AccountId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) + if s.VoiceConnectorId != nil && len(*s.VoiceConnectorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VoiceConnectorId", 1)) } if invalidParams.Len() > 0 { @@ -19171,117 +29573,121 @@ func (s *GetAccountSettingsInput) Validate() error { return nil } -// SetAccountId sets the AccountId field's value. -func (s *GetAccountSettingsInput) SetAccountId(v string) *GetAccountSettingsInput { - s.AccountId = &v +// SetVoiceConnectorId sets the VoiceConnectorId field's value. +func (s *GetVoiceConnectorTerminationInput) SetVoiceConnectorId(v string) *GetVoiceConnectorTerminationInput { + s.VoiceConnectorId = &v return s } -type GetAccountSettingsOutput struct { +type GetVoiceConnectorTerminationOutput struct { _ struct{} `type:"structure"` - // The Amazon Chime account settings. - AccountSettings *AccountSettings `type:"structure"` + // The termination setting details. + Termination *Termination `type:"structure"` } // String returns the string representation -func (s GetAccountSettingsOutput) String() string { +func (s GetVoiceConnectorTerminationOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetAccountSettingsOutput) GoString() string { +func (s GetVoiceConnectorTerminationOutput) GoString() string { return s.String() } -// SetAccountSettings sets the AccountSettings field's value. -func (s *GetAccountSettingsOutput) SetAccountSettings(v *AccountSettings) *GetAccountSettingsOutput { - s.AccountSettings = v +// SetTermination sets the Termination field's value. +func (s *GetVoiceConnectorTerminationOutput) SetTermination(v *Termination) *GetVoiceConnectorTerminationOutput { + s.Termination = v return s } -type GetAttendeeInput struct { +// The ARN and name of a user. +type Identity struct { _ struct{} `type:"structure"` - // The Amazon Chime SDK attendee ID. - // - // AttendeeId is a required field - AttendeeId *string `location:"uri" locationName:"attendeeId" type:"string" required:"true"` + // The ARN in an Identity. + Arn *string `min:"5" type:"string"` - // The Amazon Chime SDK meeting ID. - // - // MeetingId is a required field - MeetingId *string `location:"uri" locationName:"meetingId" type:"string" required:"true"` + // The name in an Identity. + Name *string `type:"string" sensitive:"true"` } // String returns the string representation -func (s GetAttendeeInput) String() string { +func (s Identity) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetAttendeeInput) GoString() string { +func (s Identity) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetAttendeeInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetAttendeeInput"} - if s.AttendeeId == nil { - invalidParams.Add(request.NewErrParamRequired("AttendeeId")) - } - if s.AttendeeId != nil && len(*s.AttendeeId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("AttendeeId", 1)) - } - if s.MeetingId == nil { - invalidParams.Add(request.NewErrParamRequired("MeetingId")) - } - if s.MeetingId != nil && len(*s.MeetingId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("MeetingId", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetAttendeeId sets the AttendeeId field's value. -func (s *GetAttendeeInput) SetAttendeeId(v string) *GetAttendeeInput { - s.AttendeeId = &v +// SetArn sets the Arn field's value. +func (s *Identity) SetArn(v string) *Identity { + s.Arn = &v return s } -// SetMeetingId sets the MeetingId field's value. -func (s *GetAttendeeInput) SetMeetingId(v string) *GetAttendeeInput { - s.MeetingId = &v +// SetName sets the Name field's value. +func (s *Identity) SetName(v string) *Identity { + s.Name = &v return s } -type GetAttendeeOutput struct { +// Invitation object returned after emailing users to invite them to join the +// Amazon Chime Team account. +type Invite struct { _ struct{} `type:"structure"` - // The Amazon Chime SDK attendee information. - Attendee *Attendee `type:"structure"` + // The email address to which the invite is sent. + EmailAddress *string `type:"string" sensitive:"true"` + + // The status of the invite email. + EmailStatus *string `type:"string" enum:"EmailStatus"` + + // The invite ID. + InviteId *string `type:"string"` + + // The status of the invite. + Status *string `type:"string" enum:"InviteStatus"` } // String returns the string representation -func (s GetAttendeeOutput) String() string { +func (s Invite) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetAttendeeOutput) GoString() string { +func (s Invite) GoString() string { return s.String() } -// SetAttendee sets the Attendee field's value. -func (s *GetAttendeeOutput) SetAttendee(v *Attendee) *GetAttendeeOutput { - s.Attendee = v +// SetEmailAddress sets the EmailAddress field's value. +func (s *Invite) SetEmailAddress(v string) *Invite { + s.EmailAddress = &v return s } -type GetBotInput struct { +// SetEmailStatus sets the EmailStatus field's value. +func (s *Invite) SetEmailStatus(v string) *Invite { + s.EmailStatus = &v + return s +} + +// SetInviteId sets the InviteId field's value. +func (s *Invite) SetInviteId(v string) *Invite { + s.InviteId = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *Invite) SetStatus(v string) *Invite { + s.Status = &v + return s +} + +type InviteUsersInput struct { _ struct{} `type:"structure"` // The Amazon Chime account ID. @@ -19289,36 +29695,36 @@ type GetBotInput struct { // AccountId is a required field AccountId *string `location:"uri" locationName:"accountId" type:"string" required:"true"` - // The bot ID. + // The user email addresses to which to send the email invitation. // - // BotId is a required field - BotId *string `location:"uri" locationName:"botId" type:"string" required:"true"` + // UserEmailList is a required field + UserEmailList []*string `type:"list" required:"true"` + + // The user type. + UserType *string `type:"string" enum:"UserType"` } // String returns the string representation -func (s GetBotInput) String() string { +func (s InviteUsersInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetBotInput) GoString() string { +func (s InviteUsersInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *GetBotInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetBotInput"} +func (s *InviteUsersInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "InviteUsersInput"} if s.AccountId == nil { invalidParams.Add(request.NewErrParamRequired("AccountId")) } if s.AccountId != nil && len(*s.AccountId) < 1 { invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) } - if s.BotId == nil { - invalidParams.Add(request.NewErrParamRequired("BotId")) - } - if s.BotId != nil && len(*s.BotId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("BotId", 1)) + if s.UserEmailList == nil { + invalidParams.Add(request.NewErrParamRequired("UserEmailList")) } if invalidParams.Len() > 0 { @@ -19328,78 +29734,80 @@ func (s *GetBotInput) Validate() error { } // SetAccountId sets the AccountId field's value. -func (s *GetBotInput) SetAccountId(v string) *GetBotInput { +func (s *InviteUsersInput) SetAccountId(v string) *InviteUsersInput { s.AccountId = &v return s } -// SetBotId sets the BotId field's value. -func (s *GetBotInput) SetBotId(v string) *GetBotInput { - s.BotId = &v +// SetUserEmailList sets the UserEmailList field's value. +func (s *InviteUsersInput) SetUserEmailList(v []*string) *InviteUsersInput { + s.UserEmailList = v return s } -type GetBotOutput struct { +// SetUserType sets the UserType field's value. +func (s *InviteUsersInput) SetUserType(v string) *InviteUsersInput { + s.UserType = &v + return s +} + +type InviteUsersOutput struct { _ struct{} `type:"structure"` - // The chat bot details. - Bot *Bot `type:"structure"` + // The email invitation details. + Invites []*Invite `type:"list"` } // String returns the string representation -func (s GetBotOutput) String() string { +func (s InviteUsersOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetBotOutput) GoString() string { +func (s InviteUsersOutput) GoString() string { return s.String() } -// SetBot sets the Bot field's value. -func (s *GetBotOutput) SetBot(v *Bot) *GetBotOutput { - s.Bot = v +// SetInvites sets the Invites field's value. +func (s *InviteUsersOutput) SetInvites(v []*Invite) *InviteUsersOutput { + s.Invites = v return s } -type GetEventsConfigurationInput struct { +type ListAccountsInput struct { _ struct{} `type:"structure"` - // The Amazon Chime account ID. - // - // AccountId is a required field - AccountId *string `location:"uri" locationName:"accountId" type:"string" required:"true"` + // The maximum number of results to return in a single call. Defaults to 100. + MaxResults *int64 `location:"querystring" locationName:"max-results" min:"1" type:"integer"` - // The bot ID. - // - // BotId is a required field - BotId *string `location:"uri" locationName:"botId" type:"string" required:"true"` + // Amazon Chime account name prefix with which to filter results. + Name *string `location:"querystring" locationName:"name" min:"1" type:"string"` + + // The token to use to retrieve the next page of results. + NextToken *string `location:"querystring" locationName:"next-token" type:"string"` + + // User email address with which to filter results. + UserEmail *string `location:"querystring" locationName:"user-email" type:"string" sensitive:"true"` } // String returns the string representation -func (s GetEventsConfigurationInput) String() string { +func (s ListAccountsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetEventsConfigurationInput) GoString() string { +func (s ListAccountsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *GetEventsConfigurationInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetEventsConfigurationInput"} - if s.AccountId == nil { - invalidParams.Add(request.NewErrParamRequired("AccountId")) - } - if s.AccountId != nil && len(*s.AccountId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) - } - if s.BotId == nil { - invalidParams.Add(request.NewErrParamRequired("BotId")) +func (s *ListAccountsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListAccountsInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } - if s.BotId != nil && len(*s.BotId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("BotId", 1)) + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) } if invalidParams.Len() > 0 { @@ -19408,114 +29816,99 @@ func (s *GetEventsConfigurationInput) Validate() error { return nil } -// SetAccountId sets the AccountId field's value. -func (s *GetEventsConfigurationInput) SetAccountId(v string) *GetEventsConfigurationInput { - s.AccountId = &v - return s -} - -// SetBotId sets the BotId field's value. -func (s *GetEventsConfigurationInput) SetBotId(v string) *GetEventsConfigurationInput { - s.BotId = &v +// SetMaxResults sets the MaxResults field's value. +func (s *ListAccountsInput) SetMaxResults(v int64) *ListAccountsInput { + s.MaxResults = &v return s } -type GetEventsConfigurationOutput struct { - _ struct{} `type:"structure"` - - // The events configuration details. - EventsConfiguration *EventsConfiguration `type:"structure"` -} - -// String returns the string representation -func (s GetEventsConfigurationOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s GetEventsConfigurationOutput) GoString() string { - return s.String() -} - -// SetEventsConfiguration sets the EventsConfiguration field's value. -func (s *GetEventsConfigurationOutput) SetEventsConfiguration(v *EventsConfiguration) *GetEventsConfigurationOutput { - s.EventsConfiguration = v +// SetName sets the Name field's value. +func (s *ListAccountsInput) SetName(v string) *ListAccountsInput { + s.Name = &v return s } -type GetGlobalSettingsInput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s GetGlobalSettingsInput) String() string { - return awsutil.Prettify(s) +// SetNextToken sets the NextToken field's value. +func (s *ListAccountsInput) SetNextToken(v string) *ListAccountsInput { + s.NextToken = &v + return s } -// GoString returns the string representation -func (s GetGlobalSettingsInput) GoString() string { - return s.String() +// SetUserEmail sets the UserEmail field's value. +func (s *ListAccountsInput) SetUserEmail(v string) *ListAccountsInput { + s.UserEmail = &v + return s } -type GetGlobalSettingsOutput struct { +type ListAccountsOutput struct { _ struct{} `type:"structure"` - // The Amazon Chime Business Calling settings. - BusinessCalling *BusinessCallingSettings `type:"structure"` + // The list of accounts. + Accounts []*Account `type:"list"` - // The Amazon Chime Voice Connector settings. - VoiceConnector *VoiceConnectorSettings `type:"structure"` + // The account's user token. + NextToken *string `type:"string"` } // String returns the string representation -func (s GetGlobalSettingsOutput) String() string { +func (s ListAccountsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetGlobalSettingsOutput) GoString() string { +func (s ListAccountsOutput) GoString() string { return s.String() } -// SetBusinessCalling sets the BusinessCalling field's value. -func (s *GetGlobalSettingsOutput) SetBusinessCalling(v *BusinessCallingSettings) *GetGlobalSettingsOutput { - s.BusinessCalling = v +// SetAccounts sets the Accounts field's value. +func (s *ListAccountsOutput) SetAccounts(v []*Account) *ListAccountsOutput { + s.Accounts = v return s } -// SetVoiceConnector sets the VoiceConnector field's value. -func (s *GetGlobalSettingsOutput) SetVoiceConnector(v *VoiceConnectorSettings) *GetGlobalSettingsOutput { - s.VoiceConnector = v +// SetNextToken sets the NextToken field's value. +func (s *ListAccountsOutput) SetNextToken(v string) *ListAccountsOutput { + s.NextToken = &v return s } -type GetMeetingInput struct { +type ListAppInstanceAdminsInput struct { _ struct{} `type:"structure"` - // The Amazon Chime SDK meeting ID. + // The ARN of the app instance. // - // MeetingId is a required field - MeetingId *string `location:"uri" locationName:"meetingId" type:"string" required:"true"` + // AppInstanceArn is a required field + AppInstanceArn *string `location:"uri" locationName:"appInstanceArn" min:"5" type:"string" required:"true"` + + // The maximum number of administrators that you want to return. + MaxResults *int64 `location:"querystring" locationName:"max-results" min:"1" type:"integer"` + + // The token returned from previous API requests until the number of administrators + // is reached. + NextToken *string `location:"querystring" locationName:"next-token" type:"string" sensitive:"true"` } // String returns the string representation -func (s GetMeetingInput) String() string { +func (s ListAppInstanceAdminsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetMeetingInput) GoString() string { +func (s ListAppInstanceAdminsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *GetMeetingInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetMeetingInput"} - if s.MeetingId == nil { - invalidParams.Add(request.NewErrParamRequired("MeetingId")) +func (s *ListAppInstanceAdminsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListAppInstanceAdminsInput"} + if s.AppInstanceArn == nil { + invalidParams.Add(request.NewErrParamRequired("AppInstanceArn")) } - if s.MeetingId != nil && len(*s.MeetingId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("MeetingId", 1)) + if s.AppInstanceArn != nil && len(*s.AppInstanceArn) < 5 { + invalidParams.Add(request.NewErrParamMinLen("AppInstanceArn", 5)) + } + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } if invalidParams.Len() > 0 { @@ -19524,103 +29917,102 @@ func (s *GetMeetingInput) Validate() error { return nil } -// SetMeetingId sets the MeetingId field's value. -func (s *GetMeetingInput) SetMeetingId(v string) *GetMeetingInput { - s.MeetingId = &v +// SetAppInstanceArn sets the AppInstanceArn field's value. +func (s *ListAppInstanceAdminsInput) SetAppInstanceArn(v string) *ListAppInstanceAdminsInput { + s.AppInstanceArn = &v return s } -type GetMeetingOutput struct { - _ struct{} `type:"structure"` - - // The Amazon Chime SDK meeting information. - Meeting *Meeting `type:"structure"` -} - -// String returns the string representation -func (s GetMeetingOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s GetMeetingOutput) GoString() string { - return s.String() +// SetMaxResults sets the MaxResults field's value. +func (s *ListAppInstanceAdminsInput) SetMaxResults(v int64) *ListAppInstanceAdminsInput { + s.MaxResults = &v + return s } -// SetMeeting sets the Meeting field's value. -func (s *GetMeetingOutput) SetMeeting(v *Meeting) *GetMeetingOutput { - s.Meeting = v +// SetNextToken sets the NextToken field's value. +func (s *ListAppInstanceAdminsInput) SetNextToken(v string) *ListAppInstanceAdminsInput { + s.NextToken = &v return s } -type GetPhoneNumberInput struct { +type ListAppInstanceAdminsOutput struct { _ struct{} `type:"structure"` - // The phone number ID. - // - // PhoneNumberId is a required field - PhoneNumberId *string `location:"uri" locationName:"phoneNumberId" type:"string" required:"true"` + // The information for each administrator. + AppInstanceAdmins []*AppInstanceAdminSummary `type:"list"` + + // The ARN of the app instance. + AppInstanceArn *string `min:"5" type:"string"` + + // The token returned from previous API requests until the number of administrators + // is reached. + NextToken *string `type:"string" sensitive:"true"` } // String returns the string representation -func (s GetPhoneNumberInput) String() string { +func (s ListAppInstanceAdminsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetPhoneNumberInput) GoString() string { +func (s ListAppInstanceAdminsOutput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetPhoneNumberInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetPhoneNumberInput"} - if s.PhoneNumberId == nil { - invalidParams.Add(request.NewErrParamRequired("PhoneNumberId")) - } - if s.PhoneNumberId != nil && len(*s.PhoneNumberId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("PhoneNumberId", 1)) - } +// SetAppInstanceAdmins sets the AppInstanceAdmins field's value. +func (s *ListAppInstanceAdminsOutput) SetAppInstanceAdmins(v []*AppInstanceAdminSummary) *ListAppInstanceAdminsOutput { + s.AppInstanceAdmins = v + return s +} - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetAppInstanceArn sets the AppInstanceArn field's value. +func (s *ListAppInstanceAdminsOutput) SetAppInstanceArn(v string) *ListAppInstanceAdminsOutput { + s.AppInstanceArn = &v + return s } -// SetPhoneNumberId sets the PhoneNumberId field's value. -func (s *GetPhoneNumberInput) SetPhoneNumberId(v string) *GetPhoneNumberInput { - s.PhoneNumberId = &v +// SetNextToken sets the NextToken field's value. +func (s *ListAppInstanceAdminsOutput) SetNextToken(v string) *ListAppInstanceAdminsOutput { + s.NextToken = &v return s } -type GetPhoneNumberOrderInput struct { +type ListAppInstanceUsersInput struct { _ struct{} `type:"structure"` - // The ID for the phone number order. + // The ARN of the app instance. // - // PhoneNumberOrderId is a required field - PhoneNumberOrderId *string `location:"uri" locationName:"phoneNumberOrderId" type:"string" required:"true"` + // AppInstanceArn is a required field + AppInstanceArn *string `location:"querystring" locationName:"app-instance-arn" min:"5" type:"string" required:"true"` + + // The maximum number of requests that you want returned. + MaxResults *int64 `location:"querystring" locationName:"max-results" min:"1" type:"integer"` + + // The token passed by previous API calls until all requested users are returned. + NextToken *string `location:"querystring" locationName:"next-token" type:"string" sensitive:"true"` } // String returns the string representation -func (s GetPhoneNumberOrderInput) String() string { +func (s ListAppInstanceUsersInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetPhoneNumberOrderInput) GoString() string { +func (s ListAppInstanceUsersInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *GetPhoneNumberOrderInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetPhoneNumberOrderInput"} - if s.PhoneNumberOrderId == nil { - invalidParams.Add(request.NewErrParamRequired("PhoneNumberOrderId")) +func (s *ListAppInstanceUsersInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListAppInstanceUsersInput"} + if s.AppInstanceArn == nil { + invalidParams.Add(request.NewErrParamRequired("AppInstanceArn")) } - if s.PhoneNumberOrderId != nil && len(*s.PhoneNumberOrderId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("PhoneNumberOrderId", 1)) + if s.AppInstanceArn != nil && len(*s.AppInstanceArn) < 5 { + invalidParams.Add(request.NewErrParamMinLen("AppInstanceArn", 5)) + } + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } if invalidParams.Len() > 0 { @@ -19629,142 +30021,182 @@ func (s *GetPhoneNumberOrderInput) Validate() error { return nil } -// SetPhoneNumberOrderId sets the PhoneNumberOrderId field's value. -func (s *GetPhoneNumberOrderInput) SetPhoneNumberOrderId(v string) *GetPhoneNumberOrderInput { - s.PhoneNumberOrderId = &v +// SetAppInstanceArn sets the AppInstanceArn field's value. +func (s *ListAppInstanceUsersInput) SetAppInstanceArn(v string) *ListAppInstanceUsersInput { + s.AppInstanceArn = &v return s } -type GetPhoneNumberOrderOutput struct { +// SetMaxResults sets the MaxResults field's value. +func (s *ListAppInstanceUsersInput) SetMaxResults(v int64) *ListAppInstanceUsersInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListAppInstanceUsersInput) SetNextToken(v string) *ListAppInstanceUsersInput { + s.NextToken = &v + return s +} + +type ListAppInstanceUsersOutput struct { _ struct{} `type:"structure"` - // The phone number order details. - PhoneNumberOrder *PhoneNumberOrder `type:"structure"` + // The ARN of the app instance. + AppInstanceArn *string `min:"5" type:"string"` + + // The information for each of the requested app instance users. + AppInstanceUsers []*AppInstanceUserSummary `type:"list"` + + // The token passed by previous API calls until all requested users are returned. + NextToken *string `type:"string" sensitive:"true"` } // String returns the string representation -func (s GetPhoneNumberOrderOutput) String() string { +func (s ListAppInstanceUsersOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetPhoneNumberOrderOutput) GoString() string { +func (s ListAppInstanceUsersOutput) GoString() string { return s.String() } -// SetPhoneNumberOrder sets the PhoneNumberOrder field's value. -func (s *GetPhoneNumberOrderOutput) SetPhoneNumberOrder(v *PhoneNumberOrder) *GetPhoneNumberOrderOutput { - s.PhoneNumberOrder = v +// SetAppInstanceArn sets the AppInstanceArn field's value. +func (s *ListAppInstanceUsersOutput) SetAppInstanceArn(v string) *ListAppInstanceUsersOutput { + s.AppInstanceArn = &v return s } -type GetPhoneNumberOutput struct { +// SetAppInstanceUsers sets the AppInstanceUsers field's value. +func (s *ListAppInstanceUsersOutput) SetAppInstanceUsers(v []*AppInstanceUserSummary) *ListAppInstanceUsersOutput { + s.AppInstanceUsers = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListAppInstanceUsersOutput) SetNextToken(v string) *ListAppInstanceUsersOutput { + s.NextToken = &v + return s +} + +type ListAppInstancesInput struct { _ struct{} `type:"structure"` - // The phone number details. - PhoneNumber *PhoneNumber `type:"structure"` + // The maximum number of app instances that you want to return. + MaxResults *int64 `location:"querystring" locationName:"max-results" min:"1" type:"integer"` + + // The token passed by previous API requests until you reach the maximum number + // of app instances. + NextToken *string `location:"querystring" locationName:"next-token" type:"string" sensitive:"true"` } // String returns the string representation -func (s GetPhoneNumberOutput) String() string { +func (s ListAppInstancesInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetPhoneNumberOutput) GoString() string { +func (s ListAppInstancesInput) GoString() string { return s.String() } -// SetPhoneNumber sets the PhoneNumber field's value. -func (s *GetPhoneNumberOutput) SetPhoneNumber(v *PhoneNumber) *GetPhoneNumberOutput { - s.PhoneNumber = v - return s -} +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListAppInstancesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListAppInstancesInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } -type GetPhoneNumberSettingsInput struct { - _ struct{} `type:"structure"` + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// String returns the string representation -func (s GetPhoneNumberSettingsInput) String() string { - return awsutil.Prettify(s) +// SetMaxResults sets the MaxResults field's value. +func (s *ListAppInstancesInput) SetMaxResults(v int64) *ListAppInstancesInput { + s.MaxResults = &v + return s } -// GoString returns the string representation -func (s GetPhoneNumberSettingsInput) GoString() string { - return s.String() +// SetNextToken sets the NextToken field's value. +func (s *ListAppInstancesInput) SetNextToken(v string) *ListAppInstancesInput { + s.NextToken = &v + return s } -type GetPhoneNumberSettingsOutput struct { +type ListAppInstancesOutput struct { _ struct{} `type:"structure"` - // The default outbound calling name for the account. - CallingName *string `type:"string" sensitive:"true"` + // The information for each app instance. + AppInstances []*AppInstanceSummary `type:"list"` - // The updated outbound calling name timestamp, in ISO 8601 format. - CallingNameUpdatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` + // The token passed by previous API requests until the maximum number of app + // instances is reached. + NextToken *string `type:"string" sensitive:"true"` } // String returns the string representation -func (s GetPhoneNumberSettingsOutput) String() string { +func (s ListAppInstancesOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetPhoneNumberSettingsOutput) GoString() string { +func (s ListAppInstancesOutput) GoString() string { return s.String() } -// SetCallingName sets the CallingName field's value. -func (s *GetPhoneNumberSettingsOutput) SetCallingName(v string) *GetPhoneNumberSettingsOutput { - s.CallingName = &v +// SetAppInstances sets the AppInstances field's value. +func (s *ListAppInstancesOutput) SetAppInstances(v []*AppInstanceSummary) *ListAppInstancesOutput { + s.AppInstances = v return s } -// SetCallingNameUpdatedTimestamp sets the CallingNameUpdatedTimestamp field's value. -func (s *GetPhoneNumberSettingsOutput) SetCallingNameUpdatedTimestamp(v time.Time) *GetPhoneNumberSettingsOutput { - s.CallingNameUpdatedTimestamp = &v +// SetNextToken sets the NextToken field's value. +func (s *ListAppInstancesOutput) SetNextToken(v string) *ListAppInstancesOutput { + s.NextToken = &v return s } -type GetProxySessionInput struct { +type ListAttendeeTagsInput struct { _ struct{} `type:"structure"` - // The proxy session ID. + // The Amazon Chime SDK attendee ID. // - // ProxySessionId is a required field - ProxySessionId *string `location:"uri" locationName:"proxySessionId" min:"1" type:"string" required:"true"` + // AttendeeId is a required field + AttendeeId *string `location:"uri" locationName:"attendeeId" type:"string" required:"true"` - // The Amazon Chime voice connector ID. + // The Amazon Chime SDK meeting ID. // - // VoiceConnectorId is a required field - VoiceConnectorId *string `location:"uri" locationName:"voiceConnectorId" min:"1" type:"string" required:"true"` + // MeetingId is a required field + MeetingId *string `location:"uri" locationName:"meetingId" type:"string" required:"true"` } // String returns the string representation -func (s GetProxySessionInput) String() string { +func (s ListAttendeeTagsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetProxySessionInput) GoString() string { +func (s ListAttendeeTagsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *GetProxySessionInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetProxySessionInput"} - if s.ProxySessionId == nil { - invalidParams.Add(request.NewErrParamRequired("ProxySessionId")) +func (s *ListAttendeeTagsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListAttendeeTagsInput"} + if s.AttendeeId == nil { + invalidParams.Add(request.NewErrParamRequired("AttendeeId")) } - if s.ProxySessionId != nil && len(*s.ProxySessionId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ProxySessionId", 1)) + if s.AttendeeId != nil && len(*s.AttendeeId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AttendeeId", 1)) } - if s.VoiceConnectorId == nil { - invalidParams.Add(request.NewErrParamRequired("VoiceConnectorId")) + if s.MeetingId == nil { + invalidParams.Add(request.NewErrParamRequired("MeetingId")) } - if s.VoiceConnectorId != nil && len(*s.VoiceConnectorId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("VoiceConnectorId", 1)) + if s.MeetingId != nil && len(*s.MeetingId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("MeetingId", 1)) } if invalidParams.Len() > 0 { @@ -19773,68 +30205,77 @@ func (s *GetProxySessionInput) Validate() error { return nil } -// SetProxySessionId sets the ProxySessionId field's value. -func (s *GetProxySessionInput) SetProxySessionId(v string) *GetProxySessionInput { - s.ProxySessionId = &v +// SetAttendeeId sets the AttendeeId field's value. +func (s *ListAttendeeTagsInput) SetAttendeeId(v string) *ListAttendeeTagsInput { + s.AttendeeId = &v return s -} - -// SetVoiceConnectorId sets the VoiceConnectorId field's value. -func (s *GetProxySessionInput) SetVoiceConnectorId(v string) *GetProxySessionInput { - s.VoiceConnectorId = &v +} + +// SetMeetingId sets the MeetingId field's value. +func (s *ListAttendeeTagsInput) SetMeetingId(v string) *ListAttendeeTagsInput { + s.MeetingId = &v return s } -type GetProxySessionOutput struct { +type ListAttendeeTagsOutput struct { _ struct{} `type:"structure"` - // The proxy session details. - ProxySession *ProxySession `type:"structure"` + // A list of tag key-value pairs. + Tags []*Tag `min:"1" type:"list"` } // String returns the string representation -func (s GetProxySessionOutput) String() string { +func (s ListAttendeeTagsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetProxySessionOutput) GoString() string { +func (s ListAttendeeTagsOutput) GoString() string { return s.String() } -// SetProxySession sets the ProxySession field's value. -func (s *GetProxySessionOutput) SetProxySession(v *ProxySession) *GetProxySessionOutput { - s.ProxySession = v +// SetTags sets the Tags field's value. +func (s *ListAttendeeTagsOutput) SetTags(v []*Tag) *ListAttendeeTagsOutput { + s.Tags = v return s } -type GetRetentionSettingsInput struct { +type ListAttendeesInput struct { _ struct{} `type:"structure"` - // The Amazon Chime account ID. + // The maximum number of results to return in a single call. + MaxResults *int64 `location:"querystring" locationName:"max-results" min:"1" type:"integer"` + + // The Amazon Chime SDK meeting ID. // - // AccountId is a required field - AccountId *string `location:"uri" locationName:"accountId" type:"string" required:"true"` + // MeetingId is a required field + MeetingId *string `location:"uri" locationName:"meetingId" type:"string" required:"true"` + + // The token to use to retrieve the next page of results. + NextToken *string `location:"querystring" locationName:"next-token" type:"string"` } // String returns the string representation -func (s GetRetentionSettingsInput) String() string { +func (s ListAttendeesInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetRetentionSettingsInput) GoString() string { +func (s ListAttendeesInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *GetRetentionSettingsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetRetentionSettingsInput"} - if s.AccountId == nil { - invalidParams.Add(request.NewErrParamRequired("AccountId")) +func (s *ListAttendeesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListAttendeesInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } - if s.AccountId != nil && len(*s.AccountId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) + if s.MeetingId == nil { + invalidParams.Add(request.NewErrParamRequired("MeetingId")) + } + if s.MeetingId != nil && len(*s.MeetingId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("MeetingId", 1)) } if invalidParams.Len() > 0 { @@ -19843,46 +30284,57 @@ func (s *GetRetentionSettingsInput) Validate() error { return nil } -// SetAccountId sets the AccountId field's value. -func (s *GetRetentionSettingsInput) SetAccountId(v string) *GetRetentionSettingsInput { - s.AccountId = &v +// SetMaxResults sets the MaxResults field's value. +func (s *ListAttendeesInput) SetMaxResults(v int64) *ListAttendeesInput { + s.MaxResults = &v return s } -type GetRetentionSettingsOutput struct { +// SetMeetingId sets the MeetingId field's value. +func (s *ListAttendeesInput) SetMeetingId(v string) *ListAttendeesInput { + s.MeetingId = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListAttendeesInput) SetNextToken(v string) *ListAttendeesInput { + s.NextToken = &v + return s +} + +type ListAttendeesOutput struct { _ struct{} `type:"structure"` - // The timestamp representing the time at which the specified items are permanently - // deleted, in ISO 8601 format. - InitiateDeletionTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` + // The Amazon Chime SDK attendee information. + Attendees []*Attendee `type:"list"` - // The retention settings. - RetentionSettings *RetentionSettings `type:"structure"` + // The token to use to retrieve the next page of results. + NextToken *string `type:"string"` } // String returns the string representation -func (s GetRetentionSettingsOutput) String() string { +func (s ListAttendeesOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetRetentionSettingsOutput) GoString() string { +func (s ListAttendeesOutput) GoString() string { return s.String() } -// SetInitiateDeletionTimestamp sets the InitiateDeletionTimestamp field's value. -func (s *GetRetentionSettingsOutput) SetInitiateDeletionTimestamp(v time.Time) *GetRetentionSettingsOutput { - s.InitiateDeletionTimestamp = &v +// SetAttendees sets the Attendees field's value. +func (s *ListAttendeesOutput) SetAttendees(v []*Attendee) *ListAttendeesOutput { + s.Attendees = v return s } -// SetRetentionSettings sets the RetentionSettings field's value. -func (s *GetRetentionSettingsOutput) SetRetentionSettings(v *RetentionSettings) *GetRetentionSettingsOutput { - s.RetentionSettings = v +// SetNextToken sets the NextToken field's value. +func (s *ListAttendeesOutput) SetNextToken(v string) *ListAttendeesOutput { + s.NextToken = &v return s } -type GetRoomInput struct { +type ListBotsInput struct { _ struct{} `type:"structure"` // The Amazon Chime account ID. @@ -19890,36 +30342,35 @@ type GetRoomInput struct { // AccountId is a required field AccountId *string `location:"uri" locationName:"accountId" type:"string" required:"true"` - // The room ID. - // - // RoomId is a required field - RoomId *string `location:"uri" locationName:"roomId" type:"string" required:"true"` + // The maximum number of results to return in a single call. The default is + // 10. + MaxResults *int64 `location:"querystring" locationName:"max-results" min:"1" type:"integer"` + + // The token to use to retrieve the next page of results. + NextToken *string `location:"querystring" locationName:"next-token" type:"string"` } // String returns the string representation -func (s GetRoomInput) String() string { +func (s ListBotsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetRoomInput) GoString() string { +func (s ListBotsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *GetRoomInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetRoomInput"} +func (s *ListBotsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListBotsInput"} if s.AccountId == nil { invalidParams.Add(request.NewErrParamRequired("AccountId")) } if s.AccountId != nil && len(*s.AccountId) < 1 { invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) } - if s.RoomId == nil { - invalidParams.Add(request.NewErrParamRequired("RoomId")) - } - if s.RoomId != nil && len(*s.RoomId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("RoomId", 1)) + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } if invalidParams.Len() > 0 { @@ -19929,67 +30380,91 @@ func (s *GetRoomInput) Validate() error { } // SetAccountId sets the AccountId field's value. -func (s *GetRoomInput) SetAccountId(v string) *GetRoomInput { +func (s *ListBotsInput) SetAccountId(v string) *ListBotsInput { s.AccountId = &v return s } -// SetRoomId sets the RoomId field's value. -func (s *GetRoomInput) SetRoomId(v string) *GetRoomInput { - s.RoomId = &v +// SetMaxResults sets the MaxResults field's value. +func (s *ListBotsInput) SetMaxResults(v int64) *ListBotsInput { + s.MaxResults = &v return s } -type GetRoomOutput struct { +// SetNextToken sets the NextToken field's value. +func (s *ListBotsInput) SetNextToken(v string) *ListBotsInput { + s.NextToken = &v + return s +} + +type ListBotsOutput struct { _ struct{} `type:"structure"` - // The room details. - Room *Room `type:"structure"` + // List of bots and bot details. + Bots []*Bot `type:"list"` + + // The token to use to retrieve the next page of results. + NextToken *string `type:"string"` } // String returns the string representation -func (s GetRoomOutput) String() string { +func (s ListBotsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetRoomOutput) GoString() string { +func (s ListBotsOutput) GoString() string { return s.String() } -// SetRoom sets the Room field's value. -func (s *GetRoomOutput) SetRoom(v *Room) *GetRoomOutput { - s.Room = v +// SetBots sets the Bots field's value. +func (s *ListBotsOutput) SetBots(v []*Bot) *ListBotsOutput { + s.Bots = v return s } -type GetSipMediaApplicationInput struct { +// SetNextToken sets the NextToken field's value. +func (s *ListBotsOutput) SetNextToken(v string) *ListBotsOutput { + s.NextToken = &v + return s +} + +type ListChannelBansInput struct { _ struct{} `type:"structure"` - // The SIP media application ID. + // The ARN of the channel. // - // SipMediaApplicationId is a required field - SipMediaApplicationId *string `location:"uri" locationName:"sipMediaApplicationId" type:"string" required:"true"` + // ChannelArn is a required field + ChannelArn *string `location:"uri" locationName:"channelArn" min:"5" type:"string" required:"true"` + + // The maximum number of bans that you want returned. + MaxResults *int64 `location:"querystring" locationName:"max-results" min:"1" type:"integer"` + + // The token passed by previous API calls until all requested bans are returned. + NextToken *string `location:"querystring" locationName:"next-token" type:"string" sensitive:"true"` } // String returns the string representation -func (s GetSipMediaApplicationInput) String() string { +func (s ListChannelBansInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetSipMediaApplicationInput) GoString() string { +func (s ListChannelBansInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *GetSipMediaApplicationInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetSipMediaApplicationInput"} - if s.SipMediaApplicationId == nil { - invalidParams.Add(request.NewErrParamRequired("SipMediaApplicationId")) +func (s *ListChannelBansInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListChannelBansInput"} + if s.ChannelArn == nil { + invalidParams.Add(request.NewErrParamRequired("ChannelArn")) } - if s.SipMediaApplicationId != nil && len(*s.SipMediaApplicationId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("SipMediaApplicationId", 1)) + if s.ChannelArn != nil && len(*s.ChannelArn) < 5 { + invalidParams.Add(request.NewErrParamMinLen("ChannelArn", 5)) + } + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } if invalidParams.Len() > 0 { @@ -19998,126 +30473,198 @@ func (s *GetSipMediaApplicationInput) Validate() error { return nil } -// SetSipMediaApplicationId sets the SipMediaApplicationId field's value. -func (s *GetSipMediaApplicationInput) SetSipMediaApplicationId(v string) *GetSipMediaApplicationInput { - s.SipMediaApplicationId = &v +// SetChannelArn sets the ChannelArn field's value. +func (s *ListChannelBansInput) SetChannelArn(v string) *ListChannelBansInput { + s.ChannelArn = &v return s } -type GetSipMediaApplicationLoggingConfigurationInput struct { +// SetMaxResults sets the MaxResults field's value. +func (s *ListChannelBansInput) SetMaxResults(v int64) *ListChannelBansInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListChannelBansInput) SetNextToken(v string) *ListChannelBansInput { + s.NextToken = &v + return s +} + +type ListChannelBansOutput struct { _ struct{} `type:"structure"` - // The ID of the SIP media application. - // - // SipMediaApplicationId is a required field - SipMediaApplicationId *string `location:"uri" locationName:"sipMediaApplicationId" type:"string" required:"true"` + // The ARN of the channel. + ChannelArn *string `min:"5" type:"string"` + + // The information for each requested ban. + ChannelBans []*ChannelBanSummary `type:"list"` + + // The token passed by previous API calls until all requested bans are returned. + NextToken *string `type:"string" sensitive:"true"` } // String returns the string representation -func (s GetSipMediaApplicationLoggingConfigurationInput) String() string { +func (s ListChannelBansOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetSipMediaApplicationLoggingConfigurationInput) GoString() string { +func (s ListChannelBansOutput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetSipMediaApplicationLoggingConfigurationInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetSipMediaApplicationLoggingConfigurationInput"} - if s.SipMediaApplicationId == nil { - invalidParams.Add(request.NewErrParamRequired("SipMediaApplicationId")) - } - if s.SipMediaApplicationId != nil && len(*s.SipMediaApplicationId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("SipMediaApplicationId", 1)) - } +// SetChannelArn sets the ChannelArn field's value. +func (s *ListChannelBansOutput) SetChannelArn(v string) *ListChannelBansOutput { + s.ChannelArn = &v + return s +} - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetChannelBans sets the ChannelBans field's value. +func (s *ListChannelBansOutput) SetChannelBans(v []*ChannelBanSummary) *ListChannelBansOutput { + s.ChannelBans = v + return s } -// SetSipMediaApplicationId sets the SipMediaApplicationId field's value. -func (s *GetSipMediaApplicationLoggingConfigurationInput) SetSipMediaApplicationId(v string) *GetSipMediaApplicationLoggingConfigurationInput { - s.SipMediaApplicationId = &v +// SetNextToken sets the NextToken field's value. +func (s *ListChannelBansOutput) SetNextToken(v string) *ListChannelBansOutput { + s.NextToken = &v return s } -type GetSipMediaApplicationLoggingConfigurationOutput struct { +type ListChannelMembershipsForAppInstanceUserInput struct { _ struct{} `type:"structure"` - // The actual logging configuration. - SipMediaApplicationLoggingConfiguration *SipMediaApplicationLoggingConfiguration `type:"structure"` + // The ARN of the app instance users + AppInstanceUserArn *string `location:"querystring" locationName:"app-instance-user-arn" min:"5" type:"string"` + + // The maximum number of users that you want returned. + MaxResults *int64 `location:"querystring" locationName:"max-results" min:"1" type:"integer"` + + // The token returned from previous API requests until the number of channel + // memberships is reached. + NextToken *string `location:"querystring" locationName:"next-token" type:"string" sensitive:"true"` } // String returns the string representation -func (s GetSipMediaApplicationLoggingConfigurationOutput) String() string { +func (s ListChannelMembershipsForAppInstanceUserInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetSipMediaApplicationLoggingConfigurationOutput) GoString() string { +func (s ListChannelMembershipsForAppInstanceUserInput) GoString() string { return s.String() } -// SetSipMediaApplicationLoggingConfiguration sets the SipMediaApplicationLoggingConfiguration field's value. -func (s *GetSipMediaApplicationLoggingConfigurationOutput) SetSipMediaApplicationLoggingConfiguration(v *SipMediaApplicationLoggingConfiguration) *GetSipMediaApplicationLoggingConfigurationOutput { - s.SipMediaApplicationLoggingConfiguration = v +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListChannelMembershipsForAppInstanceUserInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListChannelMembershipsForAppInstanceUserInput"} + if s.AppInstanceUserArn != nil && len(*s.AppInstanceUserArn) < 5 { + invalidParams.Add(request.NewErrParamMinLen("AppInstanceUserArn", 5)) + } + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAppInstanceUserArn sets the AppInstanceUserArn field's value. +func (s *ListChannelMembershipsForAppInstanceUserInput) SetAppInstanceUserArn(v string) *ListChannelMembershipsForAppInstanceUserInput { + s.AppInstanceUserArn = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListChannelMembershipsForAppInstanceUserInput) SetMaxResults(v int64) *ListChannelMembershipsForAppInstanceUserInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListChannelMembershipsForAppInstanceUserInput) SetNextToken(v string) *ListChannelMembershipsForAppInstanceUserInput { + s.NextToken = &v return s } -type GetSipMediaApplicationOutput struct { +type ListChannelMembershipsForAppInstanceUserOutput struct { _ struct{} `type:"structure"` - // The SIP media application details. - SipMediaApplication *SipMediaApplication `type:"structure"` + // The token passed by previous API calls until all requested users are returned. + ChannelMemberships []*ChannelMembershipForAppInstanceUserSummary `type:"list"` + + // The token passed by previous API calls until all requested users are returned. + NextToken *string `type:"string" sensitive:"true"` } // String returns the string representation -func (s GetSipMediaApplicationOutput) String() string { +func (s ListChannelMembershipsForAppInstanceUserOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetSipMediaApplicationOutput) GoString() string { +func (s ListChannelMembershipsForAppInstanceUserOutput) GoString() string { return s.String() } -// SetSipMediaApplication sets the SipMediaApplication field's value. -func (s *GetSipMediaApplicationOutput) SetSipMediaApplication(v *SipMediaApplication) *GetSipMediaApplicationOutput { - s.SipMediaApplication = v +// SetChannelMemberships sets the ChannelMemberships field's value. +func (s *ListChannelMembershipsForAppInstanceUserOutput) SetChannelMemberships(v []*ChannelMembershipForAppInstanceUserSummary) *ListChannelMembershipsForAppInstanceUserOutput { + s.ChannelMemberships = v return s } -type GetSipRuleInput struct { +// SetNextToken sets the NextToken field's value. +func (s *ListChannelMembershipsForAppInstanceUserOutput) SetNextToken(v string) *ListChannelMembershipsForAppInstanceUserOutput { + s.NextToken = &v + return s +} + +type ListChannelMembershipsInput struct { _ struct{} `type:"structure"` - // The SIP rule ID. + // The maximum number of channel memberships that you want returned. // - // SipRuleId is a required field - SipRuleId *string `location:"uri" locationName:"sipRuleId" type:"string" required:"true"` + // ChannelArn is a required field + ChannelArn *string `location:"uri" locationName:"channelArn" min:"5" type:"string" required:"true"` + + // The maximum number of channel memberships that you want returned. + MaxResults *int64 `location:"querystring" locationName:"max-results" min:"1" type:"integer"` + + // The token passed by previous API calls until all requested channel memberships + // are returned.. + NextToken *string `location:"querystring" locationName:"next-token" type:"string" sensitive:"true"` + + // The membership type of a user, DEFAULT or HIDDEN. Default members are always + // returned as part of ListChannelMemberships. Hidden members are only returned + // if the type filter in ListChannelMemberships equals HIDDEN. Otherwise hidden + // members are not returned. + Type *string `location:"querystring" locationName:"type" type:"string" enum:"ChannelMembershipType"` } // String returns the string representation -func (s GetSipRuleInput) String() string { +func (s ListChannelMembershipsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetSipRuleInput) GoString() string { +func (s ListChannelMembershipsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *GetSipRuleInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetSipRuleInput"} - if s.SipRuleId == nil { - invalidParams.Add(request.NewErrParamRequired("SipRuleId")) +func (s *ListChannelMembershipsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListChannelMembershipsInput"} + if s.ChannelArn == nil { + invalidParams.Add(request.NewErrParamRequired("ChannelArn")) } - if s.SipRuleId != nil && len(*s.SipRuleId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("SipRuleId", 1)) + if s.ChannelArn != nil && len(*s.ChannelArn) < 5 { + invalidParams.Add(request.NewErrParamMinLen("ChannelArn", 5)) + } + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } if invalidParams.Len() > 0 { @@ -20126,73 +30673,118 @@ func (s *GetSipRuleInput) Validate() error { return nil } -// SetSipRuleId sets the SipRuleId field's value. -func (s *GetSipRuleInput) SetSipRuleId(v string) *GetSipRuleInput { - s.SipRuleId = &v +// SetChannelArn sets the ChannelArn field's value. +func (s *ListChannelMembershipsInput) SetChannelArn(v string) *ListChannelMembershipsInput { + s.ChannelArn = &v return s } -type GetSipRuleOutput struct { +// SetMaxResults sets the MaxResults field's value. +func (s *ListChannelMembershipsInput) SetMaxResults(v int64) *ListChannelMembershipsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListChannelMembershipsInput) SetNextToken(v string) *ListChannelMembershipsInput { + s.NextToken = &v + return s +} + +// SetType sets the Type field's value. +func (s *ListChannelMembershipsInput) SetType(v string) *ListChannelMembershipsInput { + s.Type = &v + return s +} + +type ListChannelMembershipsOutput struct { _ struct{} `type:"structure"` - // The SIP rule details. - SipRule *SipRule `type:"structure"` + // The ARN of the channel. + ChannelArn *string `min:"5" type:"string"` + + // The information for the requested channel memberships. + ChannelMemberships []*ChannelMembershipSummary `type:"list"` + + // The token passed by previous API calls until all requested channel memberships + // are returned. + NextToken *string `type:"string" sensitive:"true"` } // String returns the string representation -func (s GetSipRuleOutput) String() string { +func (s ListChannelMembershipsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetSipRuleOutput) GoString() string { +func (s ListChannelMembershipsOutput) GoString() string { return s.String() } -// SetSipRule sets the SipRule field's value. -func (s *GetSipRuleOutput) SetSipRule(v *SipRule) *GetSipRuleOutput { - s.SipRule = v +// SetChannelArn sets the ChannelArn field's value. +func (s *ListChannelMembershipsOutput) SetChannelArn(v string) *ListChannelMembershipsOutput { + s.ChannelArn = &v return s } -type GetUserInput struct { +// SetChannelMemberships sets the ChannelMemberships field's value. +func (s *ListChannelMembershipsOutput) SetChannelMemberships(v []*ChannelMembershipSummary) *ListChannelMembershipsOutput { + s.ChannelMemberships = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListChannelMembershipsOutput) SetNextToken(v string) *ListChannelMembershipsOutput { + s.NextToken = &v + return s +} + +type ListChannelMessagesInput struct { _ struct{} `type:"structure"` - // The Amazon Chime account ID. + // The ARN of the channel. // - // AccountId is a required field - AccountId *string `location:"uri" locationName:"accountId" type:"string" required:"true"` + // ChannelArn is a required field + ChannelArn *string `location:"uri" locationName:"channelArn" min:"5" type:"string" required:"true"` - // The user ID. - // - // UserId is a required field - UserId *string `location:"uri" locationName:"userId" type:"string" required:"true"` + // The maximum number of messages that you want returned. + MaxResults *int64 `location:"querystring" locationName:"max-results" min:"1" type:"integer"` + + // The token passed by previous API calls until all requested messages are returned. + NextToken *string `location:"querystring" locationName:"next-token" type:"string" sensitive:"true"` + + // The final or ending time stamp for your requested messages. + NotAfter *time.Time `location:"querystring" locationName:"not-after" type:"timestamp"` + + // The initial or starting time stamp for your requested messages. + NotBefore *time.Time `location:"querystring" locationName:"not-before" type:"timestamp"` + + // The order in which you want messages sorted. Default is Descending, based + // on time created. + SortOrder *string `location:"querystring" locationName:"sort-order" type:"string" enum:"SortOrder"` } // String returns the string representation -func (s GetUserInput) String() string { +func (s ListChannelMessagesInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetUserInput) GoString() string { +func (s ListChannelMessagesInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *GetUserInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetUserInput"} - if s.AccountId == nil { - invalidParams.Add(request.NewErrParamRequired("AccountId")) - } - if s.AccountId != nil && len(*s.AccountId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) +func (s *ListChannelMessagesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListChannelMessagesInput"} + if s.ChannelArn == nil { + invalidParams.Add(request.NewErrParamRequired("ChannelArn")) } - if s.UserId == nil { - invalidParams.Add(request.NewErrParamRequired("UserId")) + if s.ChannelArn != nil && len(*s.ChannelArn) < 5 { + invalidParams.Add(request.NewErrParamMinLen("ChannelArn", 5)) } - if s.UserId != nil && len(*s.UserId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("UserId", 1)) + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } if invalidParams.Len() > 0 { @@ -20201,79 +30793,120 @@ func (s *GetUserInput) Validate() error { return nil } -// SetAccountId sets the AccountId field's value. -func (s *GetUserInput) SetAccountId(v string) *GetUserInput { - s.AccountId = &v +// SetChannelArn sets the ChannelArn field's value. +func (s *ListChannelMessagesInput) SetChannelArn(v string) *ListChannelMessagesInput { + s.ChannelArn = &v return s } -// SetUserId sets the UserId field's value. -func (s *GetUserInput) SetUserId(v string) *GetUserInput { - s.UserId = &v +// SetMaxResults sets the MaxResults field's value. +func (s *ListChannelMessagesInput) SetMaxResults(v int64) *ListChannelMessagesInput { + s.MaxResults = &v return s } -type GetUserOutput struct { +// SetNextToken sets the NextToken field's value. +func (s *ListChannelMessagesInput) SetNextToken(v string) *ListChannelMessagesInput { + s.NextToken = &v + return s +} + +// SetNotAfter sets the NotAfter field's value. +func (s *ListChannelMessagesInput) SetNotAfter(v time.Time) *ListChannelMessagesInput { + s.NotAfter = &v + return s +} + +// SetNotBefore sets the NotBefore field's value. +func (s *ListChannelMessagesInput) SetNotBefore(v time.Time) *ListChannelMessagesInput { + s.NotBefore = &v + return s +} + +// SetSortOrder sets the SortOrder field's value. +func (s *ListChannelMessagesInput) SetSortOrder(v string) *ListChannelMessagesInput { + s.SortOrder = &v + return s +} + +type ListChannelMessagesOutput struct { _ struct{} `type:"structure"` - // The user details. - User *User `type:"structure"` + // The ARN of the channel containing the requested messages. + ChannelArn *string `min:"5" type:"string"` + + // The information about and content of each requested message. + ChannelMessages []*ChannelMessageSummary `type:"list"` + + // The token passed by previous API calls until all requested messages are returned. + NextToken *string `type:"string" sensitive:"true"` } // String returns the string representation -func (s GetUserOutput) String() string { +func (s ListChannelMessagesOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetUserOutput) GoString() string { +func (s ListChannelMessagesOutput) GoString() string { return s.String() } -// SetUser sets the User field's value. -func (s *GetUserOutput) SetUser(v *User) *GetUserOutput { - s.User = v +// SetChannelArn sets the ChannelArn field's value. +func (s *ListChannelMessagesOutput) SetChannelArn(v string) *ListChannelMessagesOutput { + s.ChannelArn = &v return s } -type GetUserSettingsInput struct { +// SetChannelMessages sets the ChannelMessages field's value. +func (s *ListChannelMessagesOutput) SetChannelMessages(v []*ChannelMessageSummary) *ListChannelMessagesOutput { + s.ChannelMessages = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListChannelMessagesOutput) SetNextToken(v string) *ListChannelMessagesOutput { + s.NextToken = &v + return s +} + +type ListChannelModeratorsInput struct { _ struct{} `type:"structure"` - // The Amazon Chime account ID. + // The ARN of the channel. // - // AccountId is a required field - AccountId *string `location:"uri" locationName:"accountId" type:"string" required:"true"` + // ChannelArn is a required field + ChannelArn *string `location:"uri" locationName:"channelArn" min:"5" type:"string" required:"true"` - // The user ID. - // - // UserId is a required field - UserId *string `location:"uri" locationName:"userId" type:"string" required:"true"` + // The maximum number of moderators that you want returned. + MaxResults *int64 `location:"querystring" locationName:"max-results" min:"1" type:"integer"` + + // The token passed by previous API calls until all requested moderators are + // returned. + NextToken *string `location:"querystring" locationName:"next-token" type:"string" sensitive:"true"` } // String returns the string representation -func (s GetUserSettingsInput) String() string { +func (s ListChannelModeratorsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetUserSettingsInput) GoString() string { +func (s ListChannelModeratorsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *GetUserSettingsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetUserSettingsInput"} - if s.AccountId == nil { - invalidParams.Add(request.NewErrParamRequired("AccountId")) +func (s *ListChannelModeratorsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListChannelModeratorsInput"} + if s.ChannelArn == nil { + invalidParams.Add(request.NewErrParamRequired("ChannelArn")) } - if s.AccountId != nil && len(*s.AccountId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) - } - if s.UserId == nil { - invalidParams.Add(request.NewErrParamRequired("UserId")) + if s.ChannelArn != nil && len(*s.ChannelArn) < 5 { + invalidParams.Add(request.NewErrParamMinLen("ChannelArn", 5)) } - if s.UserId != nil && len(*s.UserId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("UserId", 1)) + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } if invalidParams.Len() > 0 { @@ -20282,68 +30915,107 @@ func (s *GetUserSettingsInput) Validate() error { return nil } -// SetAccountId sets the AccountId field's value. -func (s *GetUserSettingsInput) SetAccountId(v string) *GetUserSettingsInput { - s.AccountId = &v +// SetChannelArn sets the ChannelArn field's value. +func (s *ListChannelModeratorsInput) SetChannelArn(v string) *ListChannelModeratorsInput { + s.ChannelArn = &v return s } -// SetUserId sets the UserId field's value. -func (s *GetUserSettingsInput) SetUserId(v string) *GetUserSettingsInput { - s.UserId = &v +// SetMaxResults sets the MaxResults field's value. +func (s *ListChannelModeratorsInput) SetMaxResults(v int64) *ListChannelModeratorsInput { + s.MaxResults = &v return s } -type GetUserSettingsOutput struct { +// SetNextToken sets the NextToken field's value. +func (s *ListChannelModeratorsInput) SetNextToken(v string) *ListChannelModeratorsInput { + s.NextToken = &v + return s +} + +type ListChannelModeratorsOutput struct { _ struct{} `type:"structure"` - // The user settings. - UserSettings *UserSettings `type:"structure"` + // The ARN of the channel. + ChannelArn *string `min:"5" type:"string"` + + // The information about and names of each moderator. + ChannelModerators []*ChannelModeratorSummary `type:"list"` + + // The token passed by previous API calls until all requested moderators are + // returned. + NextToken *string `type:"string" sensitive:"true"` } // String returns the string representation -func (s GetUserSettingsOutput) String() string { +func (s ListChannelModeratorsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetUserSettingsOutput) GoString() string { +func (s ListChannelModeratorsOutput) GoString() string { return s.String() } -// SetUserSettings sets the UserSettings field's value. -func (s *GetUserSettingsOutput) SetUserSettings(v *UserSettings) *GetUserSettingsOutput { - s.UserSettings = v +// SetChannelArn sets the ChannelArn field's value. +func (s *ListChannelModeratorsOutput) SetChannelArn(v string) *ListChannelModeratorsOutput { + s.ChannelArn = &v return s } -type GetVoiceConnectorEmergencyCallingConfigurationInput struct { +// SetChannelModerators sets the ChannelModerators field's value. +func (s *ListChannelModeratorsOutput) SetChannelModerators(v []*ChannelModeratorSummary) *ListChannelModeratorsOutput { + s.ChannelModerators = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListChannelModeratorsOutput) SetNextToken(v string) *ListChannelModeratorsOutput { + s.NextToken = &v + return s +} + +type ListChannelsInput struct { _ struct{} `type:"structure"` - // The Amazon Chime Voice Connector ID. + // The ARN of the app instance. // - // VoiceConnectorId is a required field - VoiceConnectorId *string `location:"uri" locationName:"voiceConnectorId" type:"string" required:"true"` + // AppInstanceArn is a required field + AppInstanceArn *string `location:"querystring" locationName:"app-instance-arn" min:"5" type:"string" required:"true"` + + // The maximum number of channels that you want to return. + MaxResults *int64 `location:"querystring" locationName:"max-results" min:"1" type:"integer"` + + // The token passed by previous API calls until all requested channels are returned. + NextToken *string `location:"querystring" locationName:"next-token" type:"string" sensitive:"true"` + + // The privacy setting. PUBLIC retrieves all the public channels. PRIVATE retrieves + // private channels. Only an app instance administrator can retrieve private + // channels. + Privacy *string `location:"querystring" locationName:"privacy" type:"string" enum:"ChannelPrivacy"` } // String returns the string representation -func (s GetVoiceConnectorEmergencyCallingConfigurationInput) String() string { +func (s ListChannelsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetVoiceConnectorEmergencyCallingConfigurationInput) GoString() string { +func (s ListChannelsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *GetVoiceConnectorEmergencyCallingConfigurationInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetVoiceConnectorEmergencyCallingConfigurationInput"} - if s.VoiceConnectorId == nil { - invalidParams.Add(request.NewErrParamRequired("VoiceConnectorId")) +func (s *ListChannelsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListChannelsInput"} + if s.AppInstanceArn == nil { + invalidParams.Add(request.NewErrParamRequired("AppInstanceArn")) } - if s.VoiceConnectorId != nil && len(*s.VoiceConnectorId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("VoiceConnectorId", 1)) + if s.AppInstanceArn != nil && len(*s.AppInstanceArn) < 5 { + invalidParams.Add(request.NewErrParamMinLen("AppInstanceArn", 5)) + } + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } if invalidParams.Len() > 0 { @@ -20352,62 +31024,62 @@ func (s *GetVoiceConnectorEmergencyCallingConfigurationInput) Validate() error { return nil } -// SetVoiceConnectorId sets the VoiceConnectorId field's value. -func (s *GetVoiceConnectorEmergencyCallingConfigurationInput) SetVoiceConnectorId(v string) *GetVoiceConnectorEmergencyCallingConfigurationInput { - s.VoiceConnectorId = &v +// SetAppInstanceArn sets the AppInstanceArn field's value. +func (s *ListChannelsInput) SetAppInstanceArn(v string) *ListChannelsInput { + s.AppInstanceArn = &v return s } -type GetVoiceConnectorEmergencyCallingConfigurationOutput struct { - _ struct{} `type:"structure"` - - // The emergency calling configuration details. - EmergencyCallingConfiguration *EmergencyCallingConfiguration `type:"structure"` -} - -// String returns the string representation -func (s GetVoiceConnectorEmergencyCallingConfigurationOutput) String() string { - return awsutil.Prettify(s) +// SetMaxResults sets the MaxResults field's value. +func (s *ListChannelsInput) SetMaxResults(v int64) *ListChannelsInput { + s.MaxResults = &v + return s } -// GoString returns the string representation -func (s GetVoiceConnectorEmergencyCallingConfigurationOutput) GoString() string { - return s.String() +// SetNextToken sets the NextToken field's value. +func (s *ListChannelsInput) SetNextToken(v string) *ListChannelsInput { + s.NextToken = &v + return s } -// SetEmergencyCallingConfiguration sets the EmergencyCallingConfiguration field's value. -func (s *GetVoiceConnectorEmergencyCallingConfigurationOutput) SetEmergencyCallingConfiguration(v *EmergencyCallingConfiguration) *GetVoiceConnectorEmergencyCallingConfigurationOutput { - s.EmergencyCallingConfiguration = v +// SetPrivacy sets the Privacy field's value. +func (s *ListChannelsInput) SetPrivacy(v string) *ListChannelsInput { + s.Privacy = &v return s } -type GetVoiceConnectorGroupInput struct { +type ListChannelsModeratedByAppInstanceUserInput struct { _ struct{} `type:"structure"` - // The Amazon Chime Voice Connector group ID. - // - // VoiceConnectorGroupId is a required field - VoiceConnectorGroupId *string `location:"uri" locationName:"voiceConnectorGroupId" type:"string" required:"true"` + // The ARN of the user in the moderated channel. + AppInstanceUserArn *string `location:"querystring" locationName:"app-instance-user-arn" min:"5" type:"string"` + + // The maximum number of channels in the request. + MaxResults *int64 `location:"querystring" locationName:"max-results" min:"1" type:"integer"` + + // The token returned from previous API requests until the number of channels + // moderated by the user is reached. + NextToken *string `location:"querystring" locationName:"next-token" type:"string" sensitive:"true"` } // String returns the string representation -func (s GetVoiceConnectorGroupInput) String() string { +func (s ListChannelsModeratedByAppInstanceUserInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetVoiceConnectorGroupInput) GoString() string { +func (s ListChannelsModeratedByAppInstanceUserInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *GetVoiceConnectorGroupInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetVoiceConnectorGroupInput"} - if s.VoiceConnectorGroupId == nil { - invalidParams.Add(request.NewErrParamRequired("VoiceConnectorGroupId")) +func (s *ListChannelsModeratedByAppInstanceUserInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListChannelsModeratedByAppInstanceUserInput"} + if s.AppInstanceUserArn != nil && len(*s.AppInstanceUserArn) < 5 { + invalidParams.Add(request.NewErrParamMinLen("AppInstanceUserArn", 5)) } - if s.VoiceConnectorGroupId != nil && len(*s.VoiceConnectorGroupId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("VoiceConnectorGroupId", 1)) + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } if invalidParams.Len() > 0 { @@ -20416,103 +31088,117 @@ func (s *GetVoiceConnectorGroupInput) Validate() error { return nil } -// SetVoiceConnectorGroupId sets the VoiceConnectorGroupId field's value. -func (s *GetVoiceConnectorGroupInput) SetVoiceConnectorGroupId(v string) *GetVoiceConnectorGroupInput { - s.VoiceConnectorGroupId = &v +// SetAppInstanceUserArn sets the AppInstanceUserArn field's value. +func (s *ListChannelsModeratedByAppInstanceUserInput) SetAppInstanceUserArn(v string) *ListChannelsModeratedByAppInstanceUserInput { + s.AppInstanceUserArn = &v return s } -type GetVoiceConnectorGroupOutput struct { +// SetMaxResults sets the MaxResults field's value. +func (s *ListChannelsModeratedByAppInstanceUserInput) SetMaxResults(v int64) *ListChannelsModeratedByAppInstanceUserInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListChannelsModeratedByAppInstanceUserInput) SetNextToken(v string) *ListChannelsModeratedByAppInstanceUserInput { + s.NextToken = &v + return s +} + +type ListChannelsModeratedByAppInstanceUserOutput struct { _ struct{} `type:"structure"` - // The Amazon Chime Voice Connector group details. - VoiceConnectorGroup *VoiceConnectorGroup `type:"structure"` + // The moderated channels in the request. + Channels []*ChannelModeratedByAppInstanceUserSummary `type:"list"` + + // The token returned from previous API requests until the number of channels + // moderated by the user is reached. + NextToken *string `type:"string" sensitive:"true"` } // String returns the string representation -func (s GetVoiceConnectorGroupOutput) String() string { +func (s ListChannelsModeratedByAppInstanceUserOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetVoiceConnectorGroupOutput) GoString() string { +func (s ListChannelsModeratedByAppInstanceUserOutput) GoString() string { return s.String() } -// SetVoiceConnectorGroup sets the VoiceConnectorGroup field's value. -func (s *GetVoiceConnectorGroupOutput) SetVoiceConnectorGroup(v *VoiceConnectorGroup) *GetVoiceConnectorGroupOutput { - s.VoiceConnectorGroup = v +// SetChannels sets the Channels field's value. +func (s *ListChannelsModeratedByAppInstanceUserOutput) SetChannels(v []*ChannelModeratedByAppInstanceUserSummary) *ListChannelsModeratedByAppInstanceUserOutput { + s.Channels = v return s } -type GetVoiceConnectorInput struct { +// SetNextToken sets the NextToken field's value. +func (s *ListChannelsModeratedByAppInstanceUserOutput) SetNextToken(v string) *ListChannelsModeratedByAppInstanceUserOutput { + s.NextToken = &v + return s +} + +type ListChannelsOutput struct { _ struct{} `type:"structure"` - // The Amazon Chime Voice Connector ID. - // - // VoiceConnectorId is a required field - VoiceConnectorId *string `location:"uri" locationName:"voiceConnectorId" type:"string" required:"true"` + // The information about each channel. + Channels []*ChannelSummary `type:"list"` + + // The token returned from previous API requests until the number of channels + // is reached. + NextToken *string `type:"string" sensitive:"true"` } // String returns the string representation -func (s GetVoiceConnectorInput) String() string { +func (s ListChannelsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetVoiceConnectorInput) GoString() string { +func (s ListChannelsOutput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetVoiceConnectorInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetVoiceConnectorInput"} - if s.VoiceConnectorId == nil { - invalidParams.Add(request.NewErrParamRequired("VoiceConnectorId")) - } - if s.VoiceConnectorId != nil && len(*s.VoiceConnectorId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("VoiceConnectorId", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetChannels sets the Channels field's value. +func (s *ListChannelsOutput) SetChannels(v []*ChannelSummary) *ListChannelsOutput { + s.Channels = v + return s } -// SetVoiceConnectorId sets the VoiceConnectorId field's value. -func (s *GetVoiceConnectorInput) SetVoiceConnectorId(v string) *GetVoiceConnectorInput { - s.VoiceConnectorId = &v +// SetNextToken sets the NextToken field's value. +func (s *ListChannelsOutput) SetNextToken(v string) *ListChannelsOutput { + s.NextToken = &v return s } -type GetVoiceConnectorLoggingConfigurationInput struct { +type ListMeetingTagsInput struct { _ struct{} `type:"structure"` - // The Amazon Chime Voice Connector ID. + // The Amazon Chime SDK meeting ID. // - // VoiceConnectorId is a required field - VoiceConnectorId *string `location:"uri" locationName:"voiceConnectorId" type:"string" required:"true"` + // MeetingId is a required field + MeetingId *string `location:"uri" locationName:"meetingId" type:"string" required:"true"` } // String returns the string representation -func (s GetVoiceConnectorLoggingConfigurationInput) String() string { +func (s ListMeetingTagsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetVoiceConnectorLoggingConfigurationInput) GoString() string { +func (s ListMeetingTagsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *GetVoiceConnectorLoggingConfigurationInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetVoiceConnectorLoggingConfigurationInput"} - if s.VoiceConnectorId == nil { - invalidParams.Add(request.NewErrParamRequired("VoiceConnectorId")) +func (s *ListMeetingTagsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListMeetingTagsInput"} + if s.MeetingId == nil { + invalidParams.Add(request.NewErrParamRequired("MeetingId")) } - if s.VoiceConnectorId != nil && len(*s.VoiceConnectorId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("VoiceConnectorId", 1)) + if s.MeetingId != nil && len(*s.MeetingId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("MeetingId", 1)) } if invalidParams.Len() > 0 { @@ -20521,62 +31207,60 @@ func (s *GetVoiceConnectorLoggingConfigurationInput) Validate() error { return nil } -// SetVoiceConnectorId sets the VoiceConnectorId field's value. -func (s *GetVoiceConnectorLoggingConfigurationInput) SetVoiceConnectorId(v string) *GetVoiceConnectorLoggingConfigurationInput { - s.VoiceConnectorId = &v +// SetMeetingId sets the MeetingId field's value. +func (s *ListMeetingTagsInput) SetMeetingId(v string) *ListMeetingTagsInput { + s.MeetingId = &v return s } -type GetVoiceConnectorLoggingConfigurationOutput struct { +type ListMeetingTagsOutput struct { _ struct{} `type:"structure"` - // The logging configuration details. - LoggingConfiguration *LoggingConfiguration `type:"structure"` + // A list of tag key-value pairs. + Tags []*Tag `min:"1" type:"list"` } // String returns the string representation -func (s GetVoiceConnectorLoggingConfigurationOutput) String() string { +func (s ListMeetingTagsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetVoiceConnectorLoggingConfigurationOutput) GoString() string { +func (s ListMeetingTagsOutput) GoString() string { return s.String() } -// SetLoggingConfiguration sets the LoggingConfiguration field's value. -func (s *GetVoiceConnectorLoggingConfigurationOutput) SetLoggingConfiguration(v *LoggingConfiguration) *GetVoiceConnectorLoggingConfigurationOutput { - s.LoggingConfiguration = v +// SetTags sets the Tags field's value. +func (s *ListMeetingTagsOutput) SetTags(v []*Tag) *ListMeetingTagsOutput { + s.Tags = v return s } -type GetVoiceConnectorOriginationInput struct { +type ListMeetingsInput struct { _ struct{} `type:"structure"` - // The Amazon Chime Voice Connector ID. - // - // VoiceConnectorId is a required field - VoiceConnectorId *string `location:"uri" locationName:"voiceConnectorId" type:"string" required:"true"` + // The maximum number of results to return in a single call. + MaxResults *int64 `location:"querystring" locationName:"max-results" min:"1" type:"integer"` + + // The token to use to retrieve the next page of results. + NextToken *string `location:"querystring" locationName:"next-token" type:"string"` } // String returns the string representation -func (s GetVoiceConnectorOriginationInput) String() string { +func (s ListMeetingsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetVoiceConnectorOriginationInput) GoString() string { +func (s ListMeetingsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *GetVoiceConnectorOriginationInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetVoiceConnectorOriginationInput"} - if s.VoiceConnectorId == nil { - invalidParams.Add(request.NewErrParamRequired("VoiceConnectorId")) - } - if s.VoiceConnectorId != nil && len(*s.VoiceConnectorId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("VoiceConnectorId", 1)) +func (s *ListMeetingsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListMeetingsInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } if invalidParams.Len() > 0 { @@ -20585,85 +31269,75 @@ func (s *GetVoiceConnectorOriginationInput) Validate() error { return nil } -// SetVoiceConnectorId sets the VoiceConnectorId field's value. -func (s *GetVoiceConnectorOriginationInput) SetVoiceConnectorId(v string) *GetVoiceConnectorOriginationInput { - s.VoiceConnectorId = &v +// SetMaxResults sets the MaxResults field's value. +func (s *ListMeetingsInput) SetMaxResults(v int64) *ListMeetingsInput { + s.MaxResults = &v return s } -type GetVoiceConnectorOriginationOutput struct { - _ struct{} `type:"structure"` - - // The origination setting details. - Origination *Origination `type:"structure"` -} - -// String returns the string representation -func (s GetVoiceConnectorOriginationOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s GetVoiceConnectorOriginationOutput) GoString() string { - return s.String() -} - -// SetOrigination sets the Origination field's value. -func (s *GetVoiceConnectorOriginationOutput) SetOrigination(v *Origination) *GetVoiceConnectorOriginationOutput { - s.Origination = v +// SetNextToken sets the NextToken field's value. +func (s *ListMeetingsInput) SetNextToken(v string) *ListMeetingsInput { + s.NextToken = &v return s } -type GetVoiceConnectorOutput struct { +type ListMeetingsOutput struct { _ struct{} `type:"structure"` - // The Amazon Chime Voice Connector details. - VoiceConnector *VoiceConnector `type:"structure"` + // The Amazon Chime SDK meeting information. + Meetings []*Meeting `type:"list"` + + // The token to use to retrieve the next page of results. + NextToken *string `type:"string"` } // String returns the string representation -func (s GetVoiceConnectorOutput) String() string { +func (s ListMeetingsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetVoiceConnectorOutput) GoString() string { +func (s ListMeetingsOutput) GoString() string { return s.String() } -// SetVoiceConnector sets the VoiceConnector field's value. -func (s *GetVoiceConnectorOutput) SetVoiceConnector(v *VoiceConnector) *GetVoiceConnectorOutput { - s.VoiceConnector = v +// SetMeetings sets the Meetings field's value. +func (s *ListMeetingsOutput) SetMeetings(v []*Meeting) *ListMeetingsOutput { + s.Meetings = v return s } -type GetVoiceConnectorProxyInput struct { +// SetNextToken sets the NextToken field's value. +func (s *ListMeetingsOutput) SetNextToken(v string) *ListMeetingsOutput { + s.NextToken = &v + return s +} + +type ListPhoneNumberOrdersInput struct { _ struct{} `type:"structure"` - // The Amazon Chime voice connector ID. - // - // VoiceConnectorId is a required field - VoiceConnectorId *string `location:"uri" locationName:"voiceConnectorId" min:"1" type:"string" required:"true"` + // The maximum number of results to return in a single call. + MaxResults *int64 `location:"querystring" locationName:"max-results" min:"1" type:"integer"` + + // The token to use to retrieve the next page of results. + NextToken *string `location:"querystring" locationName:"next-token" type:"string"` } // String returns the string representation -func (s GetVoiceConnectorProxyInput) String() string { +func (s ListPhoneNumberOrdersInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetVoiceConnectorProxyInput) GoString() string { +func (s ListPhoneNumberOrdersInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *GetVoiceConnectorProxyInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetVoiceConnectorProxyInput"} - if s.VoiceConnectorId == nil { - invalidParams.Add(request.NewErrParamRequired("VoiceConnectorId")) - } - if s.VoiceConnectorId != nil && len(*s.VoiceConnectorId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("VoiceConnectorId", 1)) +func (s *ListPhoneNumberOrdersInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListPhoneNumberOrdersInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } if invalidParams.Len() > 0 { @@ -20672,62 +31346,87 @@ func (s *GetVoiceConnectorProxyInput) Validate() error { return nil } -// SetVoiceConnectorId sets the VoiceConnectorId field's value. -func (s *GetVoiceConnectorProxyInput) SetVoiceConnectorId(v string) *GetVoiceConnectorProxyInput { - s.VoiceConnectorId = &v +// SetMaxResults sets the MaxResults field's value. +func (s *ListPhoneNumberOrdersInput) SetMaxResults(v int64) *ListPhoneNumberOrdersInput { + s.MaxResults = &v return s } -type GetVoiceConnectorProxyOutput struct { +// SetNextToken sets the NextToken field's value. +func (s *ListPhoneNumberOrdersInput) SetNextToken(v string) *ListPhoneNumberOrdersInput { + s.NextToken = &v + return s +} + +type ListPhoneNumberOrdersOutput struct { _ struct{} `type:"structure"` - // The proxy configuration details. - Proxy *Proxy `type:"structure"` + // The token to use to retrieve the next page of results. + NextToken *string `type:"string"` + + // The phone number order details. + PhoneNumberOrders []*PhoneNumberOrder `type:"list"` } // String returns the string representation -func (s GetVoiceConnectorProxyOutput) String() string { +func (s ListPhoneNumberOrdersOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetVoiceConnectorProxyOutput) GoString() string { +func (s ListPhoneNumberOrdersOutput) GoString() string { return s.String() } -// SetProxy sets the Proxy field's value. -func (s *GetVoiceConnectorProxyOutput) SetProxy(v *Proxy) *GetVoiceConnectorProxyOutput { - s.Proxy = v +// SetNextToken sets the NextToken field's value. +func (s *ListPhoneNumberOrdersOutput) SetNextToken(v string) *ListPhoneNumberOrdersOutput { + s.NextToken = &v return s } -type GetVoiceConnectorStreamingConfigurationInput struct { - _ struct{} `type:"structure"` +// SetPhoneNumberOrders sets the PhoneNumberOrders field's value. +func (s *ListPhoneNumberOrdersOutput) SetPhoneNumberOrders(v []*PhoneNumberOrder) *ListPhoneNumberOrdersOutput { + s.PhoneNumberOrders = v + return s +} + +type ListPhoneNumbersInput struct { + _ struct{} `type:"structure"` + + // The filter to use to limit the number of results. + FilterName *string `location:"querystring" locationName:"filter-name" type:"string" enum:"PhoneNumberAssociationName"` + + // The value to use for the filter. + FilterValue *string `location:"querystring" locationName:"filter-value" type:"string"` + + // The maximum number of results to return in a single call. + MaxResults *int64 `location:"querystring" locationName:"max-results" min:"1" type:"integer"` + + // The token to use to retrieve the next page of results. + NextToken *string `location:"querystring" locationName:"next-token" type:"string"` - // The Amazon Chime Voice Connector ID. - // - // VoiceConnectorId is a required field - VoiceConnectorId *string `location:"uri" locationName:"voiceConnectorId" type:"string" required:"true"` + // The phone number product type. + ProductType *string `location:"querystring" locationName:"product-type" type:"string" enum:"PhoneNumberProductType"` + + // The phone number status. + Status *string `location:"querystring" locationName:"status" type:"string" enum:"PhoneNumberStatus"` } // String returns the string representation -func (s GetVoiceConnectorStreamingConfigurationInput) String() string { +func (s ListPhoneNumbersInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetVoiceConnectorStreamingConfigurationInput) GoString() string { +func (s ListPhoneNumbersInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *GetVoiceConnectorStreamingConfigurationInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetVoiceConnectorStreamingConfigurationInput"} - if s.VoiceConnectorId == nil { - invalidParams.Add(request.NewErrParamRequired("VoiceConnectorId")) - } - if s.VoiceConnectorId != nil && len(*s.VoiceConnectorId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("VoiceConnectorId", 1)) +func (s *ListPhoneNumbersInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListPhoneNumbersInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } if invalidParams.Len() > 0 { @@ -20736,57 +31435,108 @@ func (s *GetVoiceConnectorStreamingConfigurationInput) Validate() error { return nil } -// SetVoiceConnectorId sets the VoiceConnectorId field's value. -func (s *GetVoiceConnectorStreamingConfigurationInput) SetVoiceConnectorId(v string) *GetVoiceConnectorStreamingConfigurationInput { - s.VoiceConnectorId = &v +// SetFilterName sets the FilterName field's value. +func (s *ListPhoneNumbersInput) SetFilterName(v string) *ListPhoneNumbersInput { + s.FilterName = &v return s } -type GetVoiceConnectorStreamingConfigurationOutput struct { +// SetFilterValue sets the FilterValue field's value. +func (s *ListPhoneNumbersInput) SetFilterValue(v string) *ListPhoneNumbersInput { + s.FilterValue = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListPhoneNumbersInput) SetMaxResults(v int64) *ListPhoneNumbersInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListPhoneNumbersInput) SetNextToken(v string) *ListPhoneNumbersInput { + s.NextToken = &v + return s +} + +// SetProductType sets the ProductType field's value. +func (s *ListPhoneNumbersInput) SetProductType(v string) *ListPhoneNumbersInput { + s.ProductType = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *ListPhoneNumbersInput) SetStatus(v string) *ListPhoneNumbersInput { + s.Status = &v + return s +} + +type ListPhoneNumbersOutput struct { _ struct{} `type:"structure"` - // The streaming configuration details. - StreamingConfiguration *StreamingConfiguration `type:"structure"` + // The token to use to retrieve the next page of results. + NextToken *string `type:"string"` + + // The phone number details. + PhoneNumbers []*PhoneNumber `type:"list"` } // String returns the string representation -func (s GetVoiceConnectorStreamingConfigurationOutput) String() string { +func (s ListPhoneNumbersOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetVoiceConnectorStreamingConfigurationOutput) GoString() string { +func (s ListPhoneNumbersOutput) GoString() string { return s.String() } -// SetStreamingConfiguration sets the StreamingConfiguration field's value. -func (s *GetVoiceConnectorStreamingConfigurationOutput) SetStreamingConfiguration(v *StreamingConfiguration) *GetVoiceConnectorStreamingConfigurationOutput { - s.StreamingConfiguration = v +// SetNextToken sets the NextToken field's value. +func (s *ListPhoneNumbersOutput) SetNextToken(v string) *ListPhoneNumbersOutput { + s.NextToken = &v return s } -type GetVoiceConnectorTerminationHealthInput struct { +// SetPhoneNumbers sets the PhoneNumbers field's value. +func (s *ListPhoneNumbersOutput) SetPhoneNumbers(v []*PhoneNumber) *ListPhoneNumbersOutput { + s.PhoneNumbers = v + return s +} + +type ListProxySessionsInput struct { _ struct{} `type:"structure"` - // The Amazon Chime Voice Connector ID. + // The maximum number of results to return in a single call. + MaxResults *int64 `location:"querystring" locationName:"max-results" min:"1" type:"integer"` + + // The token to use to retrieve the next page of results. + NextToken *string `location:"querystring" locationName:"next-token" type:"string"` + + // The proxy session status. + Status *string `location:"querystring" locationName:"status" type:"string" enum:"ProxySessionStatus"` + + // The Amazon Chime voice connector ID. // // VoiceConnectorId is a required field - VoiceConnectorId *string `location:"uri" locationName:"voiceConnectorId" type:"string" required:"true"` + VoiceConnectorId *string `location:"uri" locationName:"voiceConnectorId" min:"1" type:"string" required:"true"` } // String returns the string representation -func (s GetVoiceConnectorTerminationHealthInput) String() string { +func (s ListProxySessionsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetVoiceConnectorTerminationHealthInput) GoString() string { +func (s ListProxySessionsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *GetVoiceConnectorTerminationHealthInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetVoiceConnectorTerminationHealthInput"} +func (s *ListProxySessionsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListProxySessionsInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } if s.VoiceConnectorId == nil { invalidParams.Add(request.NewErrParamRequired("VoiceConnectorId")) } @@ -20800,62 +31550,109 @@ func (s *GetVoiceConnectorTerminationHealthInput) Validate() error { return nil } +// SetMaxResults sets the MaxResults field's value. +func (s *ListProxySessionsInput) SetMaxResults(v int64) *ListProxySessionsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListProxySessionsInput) SetNextToken(v string) *ListProxySessionsInput { + s.NextToken = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *ListProxySessionsInput) SetStatus(v string) *ListProxySessionsInput { + s.Status = &v + return s +} + // SetVoiceConnectorId sets the VoiceConnectorId field's value. -func (s *GetVoiceConnectorTerminationHealthInput) SetVoiceConnectorId(v string) *GetVoiceConnectorTerminationHealthInput { +func (s *ListProxySessionsInput) SetVoiceConnectorId(v string) *ListProxySessionsInput { s.VoiceConnectorId = &v return s } -type GetVoiceConnectorTerminationHealthOutput struct { +type ListProxySessionsOutput struct { _ struct{} `type:"structure"` - // The termination health details. - TerminationHealth *TerminationHealth `type:"structure"` + // The token to use to retrieve the next page of results. + NextToken *string `type:"string"` + + // The proxy session details. + ProxySessions []*ProxySession `type:"list"` } // String returns the string representation -func (s GetVoiceConnectorTerminationHealthOutput) String() string { +func (s ListProxySessionsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetVoiceConnectorTerminationHealthOutput) GoString() string { +func (s ListProxySessionsOutput) GoString() string { return s.String() } -// SetTerminationHealth sets the TerminationHealth field's value. -func (s *GetVoiceConnectorTerminationHealthOutput) SetTerminationHealth(v *TerminationHealth) *GetVoiceConnectorTerminationHealthOutput { - s.TerminationHealth = v +// SetNextToken sets the NextToken field's value. +func (s *ListProxySessionsOutput) SetNextToken(v string) *ListProxySessionsOutput { + s.NextToken = &v return s } -type GetVoiceConnectorTerminationInput struct { +// SetProxySessions sets the ProxySessions field's value. +func (s *ListProxySessionsOutput) SetProxySessions(v []*ProxySession) *ListProxySessionsOutput { + s.ProxySessions = v + return s +} + +type ListRoomMembershipsInput struct { _ struct{} `type:"structure"` - // The Amazon Chime Voice Connector ID. + // The Amazon Chime account ID. // - // VoiceConnectorId is a required field - VoiceConnectorId *string `location:"uri" locationName:"voiceConnectorId" type:"string" required:"true"` + // AccountId is a required field + AccountId *string `location:"uri" locationName:"accountId" type:"string" required:"true"` + + // The maximum number of results to return in a single call. + MaxResults *int64 `location:"querystring" locationName:"max-results" min:"1" type:"integer"` + + // The token to use to retrieve the next page of results. + NextToken *string `location:"querystring" locationName:"next-token" type:"string"` + + // The room ID. + // + // RoomId is a required field + RoomId *string `location:"uri" locationName:"roomId" type:"string" required:"true"` } // String returns the string representation -func (s GetVoiceConnectorTerminationInput) String() string { +func (s ListRoomMembershipsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetVoiceConnectorTerminationInput) GoString() string { +func (s ListRoomMembershipsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *GetVoiceConnectorTerminationInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetVoiceConnectorTerminationInput"} - if s.VoiceConnectorId == nil { - invalidParams.Add(request.NewErrParamRequired("VoiceConnectorId")) +func (s *ListRoomMembershipsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListRoomMembershipsInput"} + if s.AccountId == nil { + invalidParams.Add(request.NewErrParamRequired("AccountId")) } - if s.VoiceConnectorId != nil && len(*s.VoiceConnectorId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("VoiceConnectorId", 1)) + if s.AccountId != nil && len(*s.AccountId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) + } + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + if s.RoomId == nil { + invalidParams.Add(request.NewErrParamRequired("RoomId")) + } + if s.RoomId != nil && len(*s.RoomId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RoomId", 1)) } if invalidParams.Len() > 0 { @@ -20864,88 +31661,63 @@ func (s *GetVoiceConnectorTerminationInput) Validate() error { return nil } -// SetVoiceConnectorId sets the VoiceConnectorId field's value. -func (s *GetVoiceConnectorTerminationInput) SetVoiceConnectorId(v string) *GetVoiceConnectorTerminationInput { - s.VoiceConnectorId = &v +// SetAccountId sets the AccountId field's value. +func (s *ListRoomMembershipsInput) SetAccountId(v string) *ListRoomMembershipsInput { + s.AccountId = &v return s } -type GetVoiceConnectorTerminationOutput struct { - _ struct{} `type:"structure"` - - // The termination setting details. - Termination *Termination `type:"structure"` -} - -// String returns the string representation -func (s GetVoiceConnectorTerminationOutput) String() string { - return awsutil.Prettify(s) +// SetMaxResults sets the MaxResults field's value. +func (s *ListRoomMembershipsInput) SetMaxResults(v int64) *ListRoomMembershipsInput { + s.MaxResults = &v + return s } -// GoString returns the string representation -func (s GetVoiceConnectorTerminationOutput) GoString() string { - return s.String() +// SetNextToken sets the NextToken field's value. +func (s *ListRoomMembershipsInput) SetNextToken(v string) *ListRoomMembershipsInput { + s.NextToken = &v + return s } -// SetTermination sets the Termination field's value. -func (s *GetVoiceConnectorTerminationOutput) SetTermination(v *Termination) *GetVoiceConnectorTerminationOutput { - s.Termination = v +// SetRoomId sets the RoomId field's value. +func (s *ListRoomMembershipsInput) SetRoomId(v string) *ListRoomMembershipsInput { + s.RoomId = &v return s } -// Invitation object returned after emailing users to invite them to join the -// Amazon Chime Team account. -type Invite struct { +type ListRoomMembershipsOutput struct { _ struct{} `type:"structure"` - // The email address to which the invite is sent. - EmailAddress *string `type:"string" sensitive:"true"` - - // The status of the invite email. - EmailStatus *string `type:"string" enum:"EmailStatus"` - - // The invite ID. - InviteId *string `type:"string"` + // The token to use to retrieve the next page of results. + NextToken *string `type:"string"` - // The status of the invite. - Status *string `type:"string" enum:"InviteStatus"` + // The room membership details. + RoomMemberships []*RoomMembership `type:"list"` } // String returns the string representation -func (s Invite) String() string { +func (s ListRoomMembershipsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s Invite) GoString() string { +func (s ListRoomMembershipsOutput) GoString() string { return s.String() } -// SetEmailAddress sets the EmailAddress field's value. -func (s *Invite) SetEmailAddress(v string) *Invite { - s.EmailAddress = &v - return s -} - -// SetEmailStatus sets the EmailStatus field's value. -func (s *Invite) SetEmailStatus(v string) *Invite { - s.EmailStatus = &v - return s -} - -// SetInviteId sets the InviteId field's value. -func (s *Invite) SetInviteId(v string) *Invite { - s.InviteId = &v +// SetNextToken sets the NextToken field's value. +func (s *ListRoomMembershipsOutput) SetNextToken(v string) *ListRoomMembershipsOutput { + s.NextToken = &v return s } -// SetStatus sets the Status field's value. -func (s *Invite) SetStatus(v string) *Invite { - s.Status = &v +// SetRoomMemberships sets the RoomMemberships field's value. +func (s *ListRoomMembershipsOutput) SetRoomMemberships(v []*RoomMembership) *ListRoomMembershipsOutput { + s.RoomMemberships = v return s } -type InviteUsersInput struct { +type ListRoomsInput struct { _ struct{} `type:"structure"` // The Amazon Chime account ID. @@ -20953,36 +31725,37 @@ type InviteUsersInput struct { // AccountId is a required field AccountId *string `location:"uri" locationName:"accountId" type:"string" required:"true"` - // The user email addresses to which to send the email invitation. - // - // UserEmailList is a required field - UserEmailList []*string `type:"list" required:"true"` + // The maximum number of results to return in a single call. + MaxResults *int64 `location:"querystring" locationName:"max-results" min:"1" type:"integer"` - // The user type. - UserType *string `type:"string" enum:"UserType"` + // The member ID (user ID or bot ID). + MemberId *string `location:"querystring" locationName:"member-id" type:"string"` + + // The token to use to retrieve the next page of results. + NextToken *string `location:"querystring" locationName:"next-token" type:"string"` } // String returns the string representation -func (s InviteUsersInput) String() string { +func (s ListRoomsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s InviteUsersInput) GoString() string { +func (s ListRoomsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *InviteUsersInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "InviteUsersInput"} +func (s *ListRoomsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListRoomsInput"} if s.AccountId == nil { invalidParams.Add(request.NewErrParamRequired("AccountId")) } if s.AccountId != nil && len(*s.AccountId) < 1 { invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) } - if s.UserEmailList == nil { - invalidParams.Add(request.NewErrParamRequired("UserEmailList")) + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } if invalidParams.Len() > 0 { @@ -20992,81 +31765,87 @@ func (s *InviteUsersInput) Validate() error { } // SetAccountId sets the AccountId field's value. -func (s *InviteUsersInput) SetAccountId(v string) *InviteUsersInput { +func (s *ListRoomsInput) SetAccountId(v string) *ListRoomsInput { s.AccountId = &v return s } -// SetUserEmailList sets the UserEmailList field's value. -func (s *InviteUsersInput) SetUserEmailList(v []*string) *InviteUsersInput { - s.UserEmailList = v +// SetMaxResults sets the MaxResults field's value. +func (s *ListRoomsInput) SetMaxResults(v int64) *ListRoomsInput { + s.MaxResults = &v return s } -// SetUserType sets the UserType field's value. -func (s *InviteUsersInput) SetUserType(v string) *InviteUsersInput { - s.UserType = &v +// SetMemberId sets the MemberId field's value. +func (s *ListRoomsInput) SetMemberId(v string) *ListRoomsInput { + s.MemberId = &v return s } -type InviteUsersOutput struct { +// SetNextToken sets the NextToken field's value. +func (s *ListRoomsInput) SetNextToken(v string) *ListRoomsInput { + s.NextToken = &v + return s +} + +type ListRoomsOutput struct { _ struct{} `type:"structure"` - // The email invitation details. - Invites []*Invite `type:"list"` + // The token to use to retrieve the next page of results. + NextToken *string `type:"string"` + + // The room details. + Rooms []*Room `type:"list"` } // String returns the string representation -func (s InviteUsersOutput) String() string { +func (s ListRoomsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s InviteUsersOutput) GoString() string { +func (s ListRoomsOutput) GoString() string { return s.String() } -// SetInvites sets the Invites field's value. -func (s *InviteUsersOutput) SetInvites(v []*Invite) *InviteUsersOutput { - s.Invites = v +// SetNextToken sets the NextToken field's value. +func (s *ListRoomsOutput) SetNextToken(v string) *ListRoomsOutput { + s.NextToken = &v return s } -type ListAccountsInput struct { +// SetRooms sets the Rooms field's value. +func (s *ListRoomsOutput) SetRooms(v []*Room) *ListRoomsOutput { + s.Rooms = v + return s +} + +type ListSipMediaApplicationsInput struct { _ struct{} `type:"structure"` // The maximum number of results to return in a single call. Defaults to 100. MaxResults *int64 `location:"querystring" locationName:"max-results" min:"1" type:"integer"` - // Amazon Chime account name prefix with which to filter results. - Name *string `location:"querystring" locationName:"name" min:"1" type:"string"` - // The token to use to retrieve the next page of results. NextToken *string `location:"querystring" locationName:"next-token" type:"string"` - - // User email address with which to filter results. - UserEmail *string `location:"querystring" locationName:"user-email" type:"string" sensitive:"true"` } // String returns the string representation -func (s ListAccountsInput) String() string { +func (s ListSipMediaApplicationsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListAccountsInput) GoString() string { +func (s ListSipMediaApplicationsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *ListAccountsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListAccountsInput"} +func (s *ListSipMediaApplicationsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListSipMediaApplicationsInput"} if s.MaxResults != nil && *s.MaxResults < 1 { invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } - if s.Name != nil && len(*s.Name) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Name", 1)) - } if invalidParams.Len() > 0 { return invalidParams @@ -21075,99 +31854,77 @@ func (s *ListAccountsInput) Validate() error { } // SetMaxResults sets the MaxResults field's value. -func (s *ListAccountsInput) SetMaxResults(v int64) *ListAccountsInput { +func (s *ListSipMediaApplicationsInput) SetMaxResults(v int64) *ListSipMediaApplicationsInput { s.MaxResults = &v return s } -// SetName sets the Name field's value. -func (s *ListAccountsInput) SetName(v string) *ListAccountsInput { - s.Name = &v - return s -} - // SetNextToken sets the NextToken field's value. -func (s *ListAccountsInput) SetNextToken(v string) *ListAccountsInput { +func (s *ListSipMediaApplicationsInput) SetNextToken(v string) *ListSipMediaApplicationsInput { s.NextToken = &v return s } -// SetUserEmail sets the UserEmail field's value. -func (s *ListAccountsInput) SetUserEmail(v string) *ListAccountsInput { - s.UserEmail = &v - return s -} - -type ListAccountsOutput struct { +type ListSipMediaApplicationsOutput struct { _ struct{} `type:"structure"` - // The list of accounts. - Accounts []*Account `type:"list"` - - // The account's user token. + // The token to use to retrieve the next page of results. NextToken *string `type:"string"` + + // List of SIP media applications and application details. + SipMediaApplications []*SipMediaApplication `type:"list"` } // String returns the string representation -func (s ListAccountsOutput) String() string { +func (s ListSipMediaApplicationsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListAccountsOutput) GoString() string { +func (s ListSipMediaApplicationsOutput) GoString() string { return s.String() } -// SetAccounts sets the Accounts field's value. -func (s *ListAccountsOutput) SetAccounts(v []*Account) *ListAccountsOutput { - s.Accounts = v +// SetNextToken sets the NextToken field's value. +func (s *ListSipMediaApplicationsOutput) SetNextToken(v string) *ListSipMediaApplicationsOutput { + s.NextToken = &v return s } -// SetNextToken sets the NextToken field's value. -func (s *ListAccountsOutput) SetNextToken(v string) *ListAccountsOutput { - s.NextToken = &v +// SetSipMediaApplications sets the SipMediaApplications field's value. +func (s *ListSipMediaApplicationsOutput) SetSipMediaApplications(v []*SipMediaApplication) *ListSipMediaApplicationsOutput { + s.SipMediaApplications = v return s } -type ListAttendeeTagsInput struct { +type ListSipRulesInput struct { _ struct{} `type:"structure"` - // The Amazon Chime SDK attendee ID. - // - // AttendeeId is a required field - AttendeeId *string `location:"uri" locationName:"attendeeId" type:"string" required:"true"` + // The maximum number of results to return in a single call. Defaults to 100. + MaxResults *int64 `location:"querystring" locationName:"max-results" min:"1" type:"integer"` - // The Amazon Chime SDK meeting ID. - // - // MeetingId is a required field - MeetingId *string `location:"uri" locationName:"meetingId" type:"string" required:"true"` + // The token to use to retrieve the next page of results. + NextToken *string `location:"querystring" locationName:"next-token" type:"string"` + + // The SIP media application ID. + SipMediaApplicationId *string `location:"querystring" locationName:"sip-media-application" type:"string"` } // String returns the string representation -func (s ListAttendeeTagsInput) String() string { +func (s ListSipRulesInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListAttendeeTagsInput) GoString() string { +func (s ListSipRulesInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *ListAttendeeTagsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListAttendeeTagsInput"} - if s.AttendeeId == nil { - invalidParams.Add(request.NewErrParamRequired("AttendeeId")) - } - if s.AttendeeId != nil && len(*s.AttendeeId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("AttendeeId", 1)) - } - if s.MeetingId == nil { - invalidParams.Add(request.NewErrParamRequired("MeetingId")) - } - if s.MeetingId != nil && len(*s.MeetingId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("MeetingId", 1)) +func (s *ListSipRulesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListSipRulesInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } if invalidParams.Len() > 0 { @@ -21176,77 +31933,83 @@ func (s *ListAttendeeTagsInput) Validate() error { return nil } -// SetAttendeeId sets the AttendeeId field's value. -func (s *ListAttendeeTagsInput) SetAttendeeId(v string) *ListAttendeeTagsInput { - s.AttendeeId = &v +// SetMaxResults sets the MaxResults field's value. +func (s *ListSipRulesInput) SetMaxResults(v int64) *ListSipRulesInput { + s.MaxResults = &v return s } -// SetMeetingId sets the MeetingId field's value. -func (s *ListAttendeeTagsInput) SetMeetingId(v string) *ListAttendeeTagsInput { - s.MeetingId = &v +// SetNextToken sets the NextToken field's value. +func (s *ListSipRulesInput) SetNextToken(v string) *ListSipRulesInput { + s.NextToken = &v return s } -type ListAttendeeTagsOutput struct { +// SetSipMediaApplicationId sets the SipMediaApplicationId field's value. +func (s *ListSipRulesInput) SetSipMediaApplicationId(v string) *ListSipRulesInput { + s.SipMediaApplicationId = &v + return s +} + +type ListSipRulesOutput struct { _ struct{} `type:"structure"` - // A list of tag key-value pairs. - Tags []*Tag `min:"1" type:"list"` + // The token to use to retrieve the next page of results. + NextToken *string `type:"string"` + + // List of SIP rules and rule details. + SipRules []*SipRule `type:"list"` } // String returns the string representation -func (s ListAttendeeTagsOutput) String() string { +func (s ListSipRulesOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListAttendeeTagsOutput) GoString() string { +func (s ListSipRulesOutput) GoString() string { return s.String() } -// SetTags sets the Tags field's value. -func (s *ListAttendeeTagsOutput) SetTags(v []*Tag) *ListAttendeeTagsOutput { - s.Tags = v +// SetNextToken sets the NextToken field's value. +func (s *ListSipRulesOutput) SetNextToken(v string) *ListSipRulesOutput { + s.NextToken = &v return s } -type ListAttendeesInput struct { - _ struct{} `type:"structure"` - - // The maximum number of results to return in a single call. - MaxResults *int64 `location:"querystring" locationName:"max-results" min:"1" type:"integer"` +// SetSipRules sets the SipRules field's value. +func (s *ListSipRulesOutput) SetSipRules(v []*SipRule) *ListSipRulesOutput { + s.SipRules = v + return s +} - // The Amazon Chime SDK meeting ID. - // - // MeetingId is a required field - MeetingId *string `location:"uri" locationName:"meetingId" type:"string" required:"true"` +type ListTagsForResourceInput struct { + _ struct{} `type:"structure"` - // The token to use to retrieve the next page of results. - NextToken *string `location:"querystring" locationName:"next-token" type:"string"` + // The resource ARN. + // + // ResourceARN is a required field + ResourceARN *string `location:"querystring" locationName:"arn" min:"1" type:"string" required:"true" sensitive:"true"` } // String returns the string representation -func (s ListAttendeesInput) String() string { +func (s ListTagsForResourceInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListAttendeesInput) GoString() string { +func (s ListTagsForResourceInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *ListAttendeesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListAttendeesInput"} - if s.MaxResults != nil && *s.MaxResults < 1 { - invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) - } - if s.MeetingId == nil { - invalidParams.Add(request.NewErrParamRequired("MeetingId")) +func (s *ListTagsForResourceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListTagsForResourceInput"} + if s.ResourceARN == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceARN")) } - if s.MeetingId != nil && len(*s.MeetingId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("MeetingId", 1)) + if s.ResourceARN != nil && len(*s.ResourceARN) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResourceARN", 1)) } if invalidParams.Len() > 0 { @@ -21255,57 +32018,36 @@ func (s *ListAttendeesInput) Validate() error { return nil } -// SetMaxResults sets the MaxResults field's value. -func (s *ListAttendeesInput) SetMaxResults(v int64) *ListAttendeesInput { - s.MaxResults = &v - return s -} - -// SetMeetingId sets the MeetingId field's value. -func (s *ListAttendeesInput) SetMeetingId(v string) *ListAttendeesInput { - s.MeetingId = &v - return s -} - -// SetNextToken sets the NextToken field's value. -func (s *ListAttendeesInput) SetNextToken(v string) *ListAttendeesInput { - s.NextToken = &v +// SetResourceARN sets the ResourceARN field's value. +func (s *ListTagsForResourceInput) SetResourceARN(v string) *ListTagsForResourceInput { + s.ResourceARN = &v return s } -type ListAttendeesOutput struct { +type ListTagsForResourceOutput struct { _ struct{} `type:"structure"` - // The Amazon Chime SDK attendee information. - Attendees []*Attendee `type:"list"` - - // The token to use to retrieve the next page of results. - NextToken *string `type:"string"` + // A list of tag-key value pairs. + Tags []*Tag `min:"1" type:"list"` } // String returns the string representation -func (s ListAttendeesOutput) String() string { +func (s ListTagsForResourceOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListAttendeesOutput) GoString() string { +func (s ListTagsForResourceOutput) GoString() string { return s.String() } -// SetAttendees sets the Attendees field's value. -func (s *ListAttendeesOutput) SetAttendees(v []*Attendee) *ListAttendeesOutput { - s.Attendees = v - return s -} - -// SetNextToken sets the NextToken field's value. -func (s *ListAttendeesOutput) SetNextToken(v string) *ListAttendeesOutput { - s.NextToken = &v +// SetTags sets the Tags field's value. +func (s *ListTagsForResourceOutput) SetTags(v []*Tag) *ListTagsForResourceOutput { + s.Tags = v return s } -type ListBotsInput struct { +type ListUsersInput struct { _ struct{} `type:"structure"` // The Amazon Chime account ID. @@ -21313,27 +32055,32 @@ type ListBotsInput struct { // AccountId is a required field AccountId *string `location:"uri" locationName:"accountId" type:"string" required:"true"` - // The maximum number of results to return in a single call. The default is - // 10. + // The maximum number of results to return in a single call. Defaults to 100. MaxResults *int64 `location:"querystring" locationName:"max-results" min:"1" type:"integer"` // The token to use to retrieve the next page of results. NextToken *string `location:"querystring" locationName:"next-token" type:"string"` + + // Optional. The user email address used to filter results. Maximum 1. + UserEmail *string `location:"querystring" locationName:"user-email" type:"string" sensitive:"true"` + + // The user type. + UserType *string `location:"querystring" locationName:"user-type" type:"string" enum:"UserType"` } // String returns the string representation -func (s ListBotsInput) String() string { +func (s ListUsersInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListBotsInput) GoString() string { +func (s ListUsersInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *ListBotsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListBotsInput"} +func (s *ListUsersInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListUsersInput"} if s.AccountId == nil { invalidParams.Add(request.NewErrParamRequired("AccountId")) } @@ -21351,120 +32098,68 @@ func (s *ListBotsInput) Validate() error { } // SetAccountId sets the AccountId field's value. -func (s *ListBotsInput) SetAccountId(v string) *ListBotsInput { +func (s *ListUsersInput) SetAccountId(v string) *ListUsersInput { s.AccountId = &v return s } // SetMaxResults sets the MaxResults field's value. -func (s *ListBotsInput) SetMaxResults(v int64) *ListBotsInput { +func (s *ListUsersInput) SetMaxResults(v int64) *ListUsersInput { s.MaxResults = &v return s } // SetNextToken sets the NextToken field's value. -func (s *ListBotsInput) SetNextToken(v string) *ListBotsInput { +func (s *ListUsersInput) SetNextToken(v string) *ListUsersInput { s.NextToken = &v return s } -type ListBotsOutput struct { - _ struct{} `type:"structure"` - - // List of bots and bot details. - Bots []*Bot `type:"list"` - - // The token to use to retrieve the next page of results. - NextToken *string `type:"string"` -} - -// String returns the string representation -func (s ListBotsOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ListBotsOutput) GoString() string { - return s.String() -} - -// SetBots sets the Bots field's value. -func (s *ListBotsOutput) SetBots(v []*Bot) *ListBotsOutput { - s.Bots = v +// SetUserEmail sets the UserEmail field's value. +func (s *ListUsersInput) SetUserEmail(v string) *ListUsersInput { + s.UserEmail = &v return s } -// SetNextToken sets the NextToken field's value. -func (s *ListBotsOutput) SetNextToken(v string) *ListBotsOutput { - s.NextToken = &v +// SetUserType sets the UserType field's value. +func (s *ListUsersInput) SetUserType(v string) *ListUsersInput { + s.UserType = &v return s } -type ListMeetingTagsInput struct { +type ListUsersOutput struct { _ struct{} `type:"structure"` - // The Amazon Chime SDK meeting ID. - // - // MeetingId is a required field - MeetingId *string `location:"uri" locationName:"meetingId" type:"string" required:"true"` + // The token to use to retrieve the next page of results. + NextToken *string `type:"string"` + + // List of users and user details. + Users []*User `type:"list"` } // String returns the string representation -func (s ListMeetingTagsInput) String() string { +func (s ListUsersOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListMeetingTagsInput) GoString() string { +func (s ListUsersOutput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListMeetingTagsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListMeetingTagsInput"} - if s.MeetingId == nil { - invalidParams.Add(request.NewErrParamRequired("MeetingId")) - } - if s.MeetingId != nil && len(*s.MeetingId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("MeetingId", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetMeetingId sets the MeetingId field's value. -func (s *ListMeetingTagsInput) SetMeetingId(v string) *ListMeetingTagsInput { - s.MeetingId = &v +// SetNextToken sets the NextToken field's value. +func (s *ListUsersOutput) SetNextToken(v string) *ListUsersOutput { + s.NextToken = &v return s } -type ListMeetingTagsOutput struct { - _ struct{} `type:"structure"` - - // A list of tag key-value pairs. - Tags []*Tag `min:"1" type:"list"` -} - -// String returns the string representation -func (s ListMeetingTagsOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ListMeetingTagsOutput) GoString() string { - return s.String() -} - -// SetTags sets the Tags field's value. -func (s *ListMeetingTagsOutput) SetTags(v []*Tag) *ListMeetingTagsOutput { - s.Tags = v +// SetUsers sets the Users field's value. +func (s *ListUsersOutput) SetUsers(v []*User) *ListUsersOutput { + s.Users = v return s } -type ListMeetingsInput struct { +type ListVoiceConnectorGroupsInput struct { _ struct{} `type:"structure"` // The maximum number of results to return in a single call. @@ -21475,18 +32170,18 @@ type ListMeetingsInput struct { } // String returns the string representation -func (s ListMeetingsInput) String() string { +func (s ListVoiceConnectorGroupsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListMeetingsInput) GoString() string { +func (s ListVoiceConnectorGroupsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *ListMeetingsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListMeetingsInput"} +func (s *ListVoiceConnectorGroupsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListVoiceConnectorGroupsInput"} if s.MaxResults != nil && *s.MaxResults < 1 { invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } @@ -21498,74 +32193,76 @@ func (s *ListMeetingsInput) Validate() error { } // SetMaxResults sets the MaxResults field's value. -func (s *ListMeetingsInput) SetMaxResults(v int64) *ListMeetingsInput { +func (s *ListVoiceConnectorGroupsInput) SetMaxResults(v int64) *ListVoiceConnectorGroupsInput { s.MaxResults = &v return s } // SetNextToken sets the NextToken field's value. -func (s *ListMeetingsInput) SetNextToken(v string) *ListMeetingsInput { +func (s *ListVoiceConnectorGroupsInput) SetNextToken(v string) *ListVoiceConnectorGroupsInput { s.NextToken = &v return s } -type ListMeetingsOutput struct { +type ListVoiceConnectorGroupsOutput struct { _ struct{} `type:"structure"` - // The Amazon Chime SDK meeting information. - Meetings []*Meeting `type:"list"` - // The token to use to retrieve the next page of results. NextToken *string `type:"string"` + + // The details of the Amazon Chime Voice Connector groups. + VoiceConnectorGroups []*VoiceConnectorGroup `type:"list"` } // String returns the string representation -func (s ListMeetingsOutput) String() string { +func (s ListVoiceConnectorGroupsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListMeetingsOutput) GoString() string { +func (s ListVoiceConnectorGroupsOutput) GoString() string { return s.String() } -// SetMeetings sets the Meetings field's value. -func (s *ListMeetingsOutput) SetMeetings(v []*Meeting) *ListMeetingsOutput { - s.Meetings = v +// SetNextToken sets the NextToken field's value. +func (s *ListVoiceConnectorGroupsOutput) SetNextToken(v string) *ListVoiceConnectorGroupsOutput { + s.NextToken = &v return s } -// SetNextToken sets the NextToken field's value. -func (s *ListMeetingsOutput) SetNextToken(v string) *ListMeetingsOutput { - s.NextToken = &v +// SetVoiceConnectorGroups sets the VoiceConnectorGroups field's value. +func (s *ListVoiceConnectorGroupsOutput) SetVoiceConnectorGroups(v []*VoiceConnectorGroup) *ListVoiceConnectorGroupsOutput { + s.VoiceConnectorGroups = v return s } -type ListPhoneNumberOrdersInput struct { +type ListVoiceConnectorTerminationCredentialsInput struct { _ struct{} `type:"structure"` - // The maximum number of results to return in a single call. - MaxResults *int64 `location:"querystring" locationName:"max-results" min:"1" type:"integer"` - - // The token to use to retrieve the next page of results. - NextToken *string `location:"querystring" locationName:"next-token" type:"string"` + // The Amazon Chime Voice Connector ID. + // + // VoiceConnectorId is a required field + VoiceConnectorId *string `location:"uri" locationName:"voiceConnectorId" type:"string" required:"true"` } // String returns the string representation -func (s ListPhoneNumberOrdersInput) String() string { +func (s ListVoiceConnectorTerminationCredentialsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListPhoneNumberOrdersInput) GoString() string { +func (s ListVoiceConnectorTerminationCredentialsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *ListPhoneNumberOrdersInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListPhoneNumberOrdersInput"} - if s.MaxResults != nil && *s.MaxResults < 1 { - invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) +func (s *ListVoiceConnectorTerminationCredentialsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListVoiceConnectorTerminationCredentialsInput"} + if s.VoiceConnectorId == nil { + invalidParams.Add(request.NewErrParamRequired("VoiceConnectorId")) + } + if s.VoiceConnectorId != nil && len(*s.VoiceConnectorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VoiceConnectorId", 1)) } if invalidParams.Len() > 0 { @@ -21573,86 +32270,59 @@ func (s *ListPhoneNumberOrdersInput) Validate() error { } return nil } - -// SetMaxResults sets the MaxResults field's value. -func (s *ListPhoneNumberOrdersInput) SetMaxResults(v int64) *ListPhoneNumberOrdersInput { - s.MaxResults = &v - return s -} - -// SetNextToken sets the NextToken field's value. -func (s *ListPhoneNumberOrdersInput) SetNextToken(v string) *ListPhoneNumberOrdersInput { - s.NextToken = &v + +// SetVoiceConnectorId sets the VoiceConnectorId field's value. +func (s *ListVoiceConnectorTerminationCredentialsInput) SetVoiceConnectorId(v string) *ListVoiceConnectorTerminationCredentialsInput { + s.VoiceConnectorId = &v return s } -type ListPhoneNumberOrdersOutput struct { +type ListVoiceConnectorTerminationCredentialsOutput struct { _ struct{} `type:"structure"` - // The token to use to retrieve the next page of results. - NextToken *string `type:"string"` - - // The phone number order details. - PhoneNumberOrders []*PhoneNumberOrder `type:"list"` + // A list of user names. + Usernames []*string `type:"list"` } // String returns the string representation -func (s ListPhoneNumberOrdersOutput) String() string { +func (s ListVoiceConnectorTerminationCredentialsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListPhoneNumberOrdersOutput) GoString() string { +func (s ListVoiceConnectorTerminationCredentialsOutput) GoString() string { return s.String() } -// SetNextToken sets the NextToken field's value. -func (s *ListPhoneNumberOrdersOutput) SetNextToken(v string) *ListPhoneNumberOrdersOutput { - s.NextToken = &v - return s -} - -// SetPhoneNumberOrders sets the PhoneNumberOrders field's value. -func (s *ListPhoneNumberOrdersOutput) SetPhoneNumberOrders(v []*PhoneNumberOrder) *ListPhoneNumberOrdersOutput { - s.PhoneNumberOrders = v +// SetUsernames sets the Usernames field's value. +func (s *ListVoiceConnectorTerminationCredentialsOutput) SetUsernames(v []*string) *ListVoiceConnectorTerminationCredentialsOutput { + s.Usernames = v return s } -type ListPhoneNumbersInput struct { +type ListVoiceConnectorsInput struct { _ struct{} `type:"structure"` - // The filter to use to limit the number of results. - FilterName *string `location:"querystring" locationName:"filter-name" type:"string" enum:"PhoneNumberAssociationName"` - - // The value to use for the filter. - FilterValue *string `location:"querystring" locationName:"filter-value" type:"string"` - // The maximum number of results to return in a single call. MaxResults *int64 `location:"querystring" locationName:"max-results" min:"1" type:"integer"` // The token to use to retrieve the next page of results. NextToken *string `location:"querystring" locationName:"next-token" type:"string"` - - // The phone number product type. - ProductType *string `location:"querystring" locationName:"product-type" type:"string" enum:"PhoneNumberProductType"` - - // The phone number status. - Status *string `location:"querystring" locationName:"status" type:"string" enum:"PhoneNumberStatus"` } // String returns the string representation -func (s ListPhoneNumbersInput) String() string { +func (s ListVoiceConnectorsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListPhoneNumbersInput) GoString() string { +func (s ListVoiceConnectorsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *ListPhoneNumbersInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListPhoneNumbersInput"} +func (s *ListVoiceConnectorsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListVoiceConnectorsInput"} if s.MaxResults != nil && *s.MaxResults < 1 { invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } @@ -21663,113 +32333,114 @@ func (s *ListPhoneNumbersInput) Validate() error { return nil } -// SetFilterName sets the FilterName field's value. -func (s *ListPhoneNumbersInput) SetFilterName(v string) *ListPhoneNumbersInput { - s.FilterName = &v - return s -} - -// SetFilterValue sets the FilterValue field's value. -func (s *ListPhoneNumbersInput) SetFilterValue(v string) *ListPhoneNumbersInput { - s.FilterValue = &v - return s -} - // SetMaxResults sets the MaxResults field's value. -func (s *ListPhoneNumbersInput) SetMaxResults(v int64) *ListPhoneNumbersInput { +func (s *ListVoiceConnectorsInput) SetMaxResults(v int64) *ListVoiceConnectorsInput { s.MaxResults = &v return s } // SetNextToken sets the NextToken field's value. -func (s *ListPhoneNumbersInput) SetNextToken(v string) *ListPhoneNumbersInput { +func (s *ListVoiceConnectorsInput) SetNextToken(v string) *ListVoiceConnectorsInput { s.NextToken = &v return s } -// SetProductType sets the ProductType field's value. -func (s *ListPhoneNumbersInput) SetProductType(v string) *ListPhoneNumbersInput { - s.ProductType = &v - return s -} - -// SetStatus sets the Status field's value. -func (s *ListPhoneNumbersInput) SetStatus(v string) *ListPhoneNumbersInput { - s.Status = &v - return s -} - -type ListPhoneNumbersOutput struct { +type ListVoiceConnectorsOutput struct { _ struct{} `type:"structure"` // The token to use to retrieve the next page of results. NextToken *string `type:"string"` - // The phone number details. - PhoneNumbers []*PhoneNumber `type:"list"` + // The details of the Amazon Chime Voice Connectors. + VoiceConnectors []*VoiceConnector `type:"list"` } // String returns the string representation -func (s ListPhoneNumbersOutput) String() string { +func (s ListVoiceConnectorsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListPhoneNumbersOutput) GoString() string { +func (s ListVoiceConnectorsOutput) GoString() string { return s.String() } // SetNextToken sets the NextToken field's value. -func (s *ListPhoneNumbersOutput) SetNextToken(v string) *ListPhoneNumbersOutput { +func (s *ListVoiceConnectorsOutput) SetNextToken(v string) *ListVoiceConnectorsOutput { s.NextToken = &v return s } -// SetPhoneNumbers sets the PhoneNumbers field's value. -func (s *ListPhoneNumbersOutput) SetPhoneNumbers(v []*PhoneNumber) *ListPhoneNumbersOutput { - s.PhoneNumbers = v +// SetVoiceConnectors sets the VoiceConnectors field's value. +func (s *ListVoiceConnectorsOutput) SetVoiceConnectors(v []*VoiceConnector) *ListVoiceConnectorsOutput { + s.VoiceConnectors = v return s } -type ListProxySessionsInput struct { +// The logging configuration associated with an Amazon Chime Voice Connector. +// Specifies whether SIP message logs are enabled for sending to Amazon CloudWatch +// Logs. +type LoggingConfiguration struct { _ struct{} `type:"structure"` - // The maximum number of results to return in a single call. - MaxResults *int64 `location:"querystring" locationName:"max-results" min:"1" type:"integer"` + // When true, enables SIP message logs for sending to Amazon CloudWatch Logs. + EnableSIPLogs *bool `type:"boolean"` +} - // The token to use to retrieve the next page of results. - NextToken *string `location:"querystring" locationName:"next-token" type:"string"` +// String returns the string representation +func (s LoggingConfiguration) String() string { + return awsutil.Prettify(s) +} - // The proxy session status. - Status *string `location:"querystring" locationName:"status" type:"string" enum:"ProxySessionStatus"` +// GoString returns the string representation +func (s LoggingConfiguration) GoString() string { + return s.String() +} - // The Amazon Chime voice connector ID. +// SetEnableSIPLogs sets the EnableSIPLogs field's value. +func (s *LoggingConfiguration) SetEnableSIPLogs(v bool) *LoggingConfiguration { + s.EnableSIPLogs = &v + return s +} + +type LogoutUserInput struct { + _ struct{} `type:"structure"` + + // The Amazon Chime account ID. // - // VoiceConnectorId is a required field - VoiceConnectorId *string `location:"uri" locationName:"voiceConnectorId" min:"1" type:"string" required:"true"` + // AccountId is a required field + AccountId *string `location:"uri" locationName:"accountId" type:"string" required:"true"` + + // The user ID. + // + // UserId is a required field + UserId *string `location:"uri" locationName:"userId" type:"string" required:"true"` } // String returns the string representation -func (s ListProxySessionsInput) String() string { +func (s LogoutUserInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListProxySessionsInput) GoString() string { +func (s LogoutUserInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *ListProxySessionsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListProxySessionsInput"} - if s.MaxResults != nil && *s.MaxResults < 1 { - invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) +func (s *LogoutUserInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "LogoutUserInput"} + if s.AccountId == nil { + invalidParams.Add(request.NewErrParamRequired("AccountId")) } - if s.VoiceConnectorId == nil { - invalidParams.Add(request.NewErrParamRequired("VoiceConnectorId")) + if s.AccountId != nil && len(*s.AccountId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) } - if s.VoiceConnectorId != nil && len(*s.VoiceConnectorId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("VoiceConnectorId", 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 { @@ -21778,212 +32449,196 @@ func (s *ListProxySessionsInput) Validate() error { return nil } -// SetMaxResults sets the MaxResults field's value. -func (s *ListProxySessionsInput) SetMaxResults(v int64) *ListProxySessionsInput { - s.MaxResults = &v - return s -} - -// SetNextToken sets the NextToken field's value. -func (s *ListProxySessionsInput) SetNextToken(v string) *ListProxySessionsInput { - s.NextToken = &v - return s -} - -// SetStatus sets the Status field's value. -func (s *ListProxySessionsInput) SetStatus(v string) *ListProxySessionsInput { - s.Status = &v +// SetAccountId sets the AccountId field's value. +func (s *LogoutUserInput) SetAccountId(v string) *LogoutUserInput { + s.AccountId = &v return s } -// SetVoiceConnectorId sets the VoiceConnectorId field's value. -func (s *ListProxySessionsInput) SetVoiceConnectorId(v string) *ListProxySessionsInput { - s.VoiceConnectorId = &v +// SetUserId sets the UserId field's value. +func (s *LogoutUserInput) SetUserId(v string) *LogoutUserInput { + s.UserId = &v return s } -type ListProxySessionsOutput struct { +type LogoutUserOutput struct { _ struct{} `type:"structure"` - - // The token to use to retrieve the next page of results. - NextToken *string `type:"string"` - - // The proxy session details. - ProxySessions []*ProxySession `type:"list"` } // String returns the string representation -func (s ListProxySessionsOutput) String() string { +func (s LogoutUserOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListProxySessionsOutput) GoString() string { +func (s LogoutUserOutput) GoString() string { return s.String() } -// SetNextToken sets the NextToken field's value. -func (s *ListProxySessionsOutput) SetNextToken(v string) *ListProxySessionsOutput { - s.NextToken = &v - return s -} +// A set of endpoints used by clients to connect to the media service group +// for a Amazon Chime SDK meeting. +type MediaPlacement struct { + _ struct{} `type:"structure"` -// SetProxySessions sets the ProxySessions field's value. -func (s *ListProxySessionsOutput) SetProxySessions(v []*ProxySession) *ListProxySessionsOutput { - s.ProxySessions = v - return s -} + // The audio fallback URL. + AudioFallbackUrl *string `type:"string"` -type ListRoomMembershipsInput struct { - _ struct{} `type:"structure"` + // The audio host URL. + AudioHostUrl *string `type:"string"` - // The Amazon Chime account ID. - // - // AccountId is a required field - AccountId *string `location:"uri" locationName:"accountId" type:"string" required:"true"` + // The screen data URL. + ScreenDataUrl *string `type:"string"` - // The maximum number of results to return in a single call. - MaxResults *int64 `location:"querystring" locationName:"max-results" min:"1" type:"integer"` + // The screen sharing URL. + ScreenSharingUrl *string `type:"string"` - // The token to use to retrieve the next page of results. - NextToken *string `location:"querystring" locationName:"next-token" type:"string"` + // The screen viewing URL. + ScreenViewingUrl *string `type:"string"` - // The room ID. - // - // RoomId is a required field - RoomId *string `location:"uri" locationName:"roomId" type:"string" required:"true"` + // The signaling URL. + SignalingUrl *string `type:"string"` + + // The turn control URL. + TurnControlUrl *string `type:"string"` } // String returns the string representation -func (s ListRoomMembershipsInput) String() string { +func (s MediaPlacement) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListRoomMembershipsInput) GoString() string { +func (s MediaPlacement) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListRoomMembershipsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListRoomMembershipsInput"} - if s.AccountId == nil { - invalidParams.Add(request.NewErrParamRequired("AccountId")) - } - if s.AccountId != nil && len(*s.AccountId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) - } - if s.MaxResults != nil && *s.MaxResults < 1 { - invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) - } - if s.RoomId == nil { - invalidParams.Add(request.NewErrParamRequired("RoomId")) - } - if s.RoomId != nil && len(*s.RoomId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("RoomId", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetAudioFallbackUrl sets the AudioFallbackUrl field's value. +func (s *MediaPlacement) SetAudioFallbackUrl(v string) *MediaPlacement { + s.AudioFallbackUrl = &v + return s +} + +// SetAudioHostUrl sets the AudioHostUrl field's value. +func (s *MediaPlacement) SetAudioHostUrl(v string) *MediaPlacement { + s.AudioHostUrl = &v + return s +} + +// SetScreenDataUrl sets the ScreenDataUrl field's value. +func (s *MediaPlacement) SetScreenDataUrl(v string) *MediaPlacement { + s.ScreenDataUrl = &v + return s } -// SetAccountId sets the AccountId field's value. -func (s *ListRoomMembershipsInput) SetAccountId(v string) *ListRoomMembershipsInput { - s.AccountId = &v +// SetScreenSharingUrl sets the ScreenSharingUrl field's value. +func (s *MediaPlacement) SetScreenSharingUrl(v string) *MediaPlacement { + s.ScreenSharingUrl = &v return s } -// SetMaxResults sets the MaxResults field's value. -func (s *ListRoomMembershipsInput) SetMaxResults(v int64) *ListRoomMembershipsInput { - s.MaxResults = &v +// SetScreenViewingUrl sets the ScreenViewingUrl field's value. +func (s *MediaPlacement) SetScreenViewingUrl(v string) *MediaPlacement { + s.ScreenViewingUrl = &v return s } -// SetNextToken sets the NextToken field's value. -func (s *ListRoomMembershipsInput) SetNextToken(v string) *ListRoomMembershipsInput { - s.NextToken = &v +// SetSignalingUrl sets the SignalingUrl field's value. +func (s *MediaPlacement) SetSignalingUrl(v string) *MediaPlacement { + s.SignalingUrl = &v return s } -// SetRoomId sets the RoomId field's value. -func (s *ListRoomMembershipsInput) SetRoomId(v string) *ListRoomMembershipsInput { - s.RoomId = &v +// SetTurnControlUrl sets the TurnControlUrl field's value. +func (s *MediaPlacement) SetTurnControlUrl(v string) *MediaPlacement { + s.TurnControlUrl = &v return s } -type ListRoomMembershipsOutput struct { +// A meeting created using the Amazon Chime SDK. +type Meeting struct { _ struct{} `type:"structure"` - // The token to use to retrieve the next page of results. - NextToken *string `type:"string"` + // The external meeting ID. + ExternalMeetingId *string `min:"2" type:"string" sensitive:"true"` - // The room membership details. - RoomMemberships []*RoomMembership `type:"list"` + // The media placement for the meeting. + MediaPlacement *MediaPlacement `type:"structure"` + + // The Region in which to create the meeting. Available values: af-south-1, + // ap-northeast-1, ap-northeast-2, ap-south-1, ap-southeast-1, ap-southeast-2, + // ca-central-1, eu-central-1, eu-north-1, eu-south-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. + MediaRegion *string `type:"string"` + + // The Amazon Chime SDK meeting ID. + MeetingId *string `type:"string"` } // String returns the string representation -func (s ListRoomMembershipsOutput) String() string { +func (s Meeting) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListRoomMembershipsOutput) GoString() string { +func (s Meeting) GoString() string { return s.String() } -// SetNextToken sets the NextToken field's value. -func (s *ListRoomMembershipsOutput) SetNextToken(v string) *ListRoomMembershipsOutput { - s.NextToken = &v +// SetExternalMeetingId sets the ExternalMeetingId field's value. +func (s *Meeting) SetExternalMeetingId(v string) *Meeting { + s.ExternalMeetingId = &v return s } -// SetRoomMemberships sets the RoomMemberships field's value. -func (s *ListRoomMembershipsOutput) SetRoomMemberships(v []*RoomMembership) *ListRoomMembershipsOutput { - s.RoomMemberships = v +// SetMediaPlacement sets the MediaPlacement field's value. +func (s *Meeting) SetMediaPlacement(v *MediaPlacement) *Meeting { + s.MediaPlacement = v return s } -type ListRoomsInput struct { - _ struct{} `type:"structure"` +// SetMediaRegion sets the MediaRegion field's value. +func (s *Meeting) SetMediaRegion(v string) *Meeting { + s.MediaRegion = &v + return s +} - // The Amazon Chime account ID. - // - // AccountId is a required field - AccountId *string `location:"uri" locationName:"accountId" type:"string" required:"true"` +// SetMeetingId sets the MeetingId field's value. +func (s *Meeting) SetMeetingId(v string) *Meeting { + s.MeetingId = &v + return s +} - // The maximum number of results to return in a single call. - MaxResults *int64 `location:"querystring" locationName:"max-results" min:"1" type:"integer"` +// The configuration for resource targets to receive notifications when Amazon +// Chime SDK meeting and attendee events occur. The Amazon Chime SDK supports +// resource targets located in the US East (N. Virginia) AWS Region (us-east-1). +type MeetingNotificationConfiguration struct { + _ struct{} `type:"structure"` - // The member ID (user ID or bot ID). - MemberId *string `location:"querystring" locationName:"member-id" type:"string"` + // The SNS topic ARN. + SnsTopicArn *string `min:"1" type:"string" sensitive:"true"` - // The token to use to retrieve the next page of results. - NextToken *string `location:"querystring" locationName:"next-token" type:"string"` + // The SQS queue ARN. + SqsQueueArn *string `min:"1" type:"string" sensitive:"true"` } // String returns the string representation -func (s ListRoomsInput) String() string { +func (s MeetingNotificationConfiguration) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListRoomsInput) GoString() string { +func (s MeetingNotificationConfiguration) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *ListRoomsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListRoomsInput"} - if s.AccountId == nil { - invalidParams.Add(request.NewErrParamRequired("AccountId")) - } - if s.AccountId != nil && len(*s.AccountId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) +func (s *MeetingNotificationConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "MeetingNotificationConfiguration"} + if s.SnsTopicArn != nil && len(*s.SnsTopicArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("SnsTopicArn", 1)) } - if s.MaxResults != nil && *s.MaxResults < 1 { - invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + if s.SqsQueueArn != nil && len(*s.SqsQueueArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("SqsQueueArn", 1)) } if invalidParams.Len() > 0 { @@ -21992,252 +32647,304 @@ func (s *ListRoomsInput) Validate() error { return nil } -// SetAccountId sets the AccountId field's value. -func (s *ListRoomsInput) SetAccountId(v string) *ListRoomsInput { - s.AccountId = &v +// SetSnsTopicArn sets the SnsTopicArn field's value. +func (s *MeetingNotificationConfiguration) SetSnsTopicArn(v string) *MeetingNotificationConfiguration { + s.SnsTopicArn = &v return s } -// SetMaxResults sets the MaxResults field's value. -func (s *ListRoomsInput) SetMaxResults(v int64) *ListRoomsInput { - s.MaxResults = &v +// SetSqsQueueArn sets the SqsQueueArn field's value. +func (s *MeetingNotificationConfiguration) SetSqsQueueArn(v string) *MeetingNotificationConfiguration { + s.SqsQueueArn = &v return s } -// SetMemberId sets the MemberId field's value. -func (s *ListRoomsInput) SetMemberId(v string) *ListRoomsInput { - s.MemberId = &v - return s -} +// The member details, such as email address, name, member ID, and member type. +type Member struct { + _ struct{} `type:"structure"` -// SetNextToken sets the NextToken field's value. -func (s *ListRoomsInput) SetNextToken(v string) *ListRoomsInput { - s.NextToken = &v - return s -} + // The Amazon Chime account ID. + AccountId *string `type:"string"` -type ListRoomsOutput struct { - _ struct{} `type:"structure"` + // The member email address. + Email *string `type:"string" sensitive:"true"` - // The token to use to retrieve the next page of results. - NextToken *string `type:"string"` + // The member name. + FullName *string `type:"string" sensitive:"true"` - // The room details. - Rooms []*Room `type:"list"` + // The member ID (user ID or bot ID). + MemberId *string `type:"string"` + + // The member type. + MemberType *string `type:"string" enum:"MemberType"` } // String returns the string representation -func (s ListRoomsOutput) String() string { +func (s Member) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListRoomsOutput) GoString() string { +func (s Member) GoString() string { return s.String() } -// SetNextToken sets the NextToken field's value. -func (s *ListRoomsOutput) SetNextToken(v string) *ListRoomsOutput { - s.NextToken = &v +// SetAccountId sets the AccountId field's value. +func (s *Member) SetAccountId(v string) *Member { + s.AccountId = &v return s } -// SetRooms sets the Rooms field's value. -func (s *ListRoomsOutput) SetRooms(v []*Room) *ListRoomsOutput { - s.Rooms = v +// SetEmail sets the Email field's value. +func (s *Member) SetEmail(v string) *Member { + s.Email = &v return s } -type ListSipMediaApplicationsInput struct { +// SetFullName sets the FullName field's value. +func (s *Member) SetFullName(v string) *Member { + s.FullName = &v + return s +} + +// SetMemberId sets the MemberId field's value. +func (s *Member) SetMemberId(v string) *Member { + s.MemberId = &v + return s +} + +// SetMemberType sets the MemberType field's value. +func (s *Member) SetMemberType(v string) *Member { + s.MemberType = &v + return s +} + +// The list of errors returned when a member action results in an error. +type MemberError struct { _ struct{} `type:"structure"` - // The maximum number of results to return in a single call. Defaults to 100. - MaxResults *int64 `location:"querystring" locationName:"max-results" min:"1" type:"integer"` + // The error code. + ErrorCode *string `type:"string" enum:"ErrorCode"` - // The token to use to retrieve the next page of results. - NextToken *string `location:"querystring" locationName:"next-token" type:"string"` + // The error message. + ErrorMessage *string `type:"string"` + + // The member ID. + MemberId *string `type:"string"` } // String returns the string representation -func (s ListSipMediaApplicationsInput) String() string { +func (s MemberError) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListSipMediaApplicationsInput) GoString() string { +func (s MemberError) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListSipMediaApplicationsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListSipMediaApplicationsInput"} - if s.MaxResults != nil && *s.MaxResults < 1 { - invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetErrorCode sets the ErrorCode field's value. +func (s *MemberError) SetErrorCode(v string) *MemberError { + s.ErrorCode = &v + return s } -// SetMaxResults sets the MaxResults field's value. -func (s *ListSipMediaApplicationsInput) SetMaxResults(v int64) *ListSipMediaApplicationsInput { - s.MaxResults = &v +// SetErrorMessage sets the ErrorMessage field's value. +func (s *MemberError) SetErrorMessage(v string) *MemberError { + s.ErrorMessage = &v return s } -// SetNextToken sets the NextToken field's value. -func (s *ListSipMediaApplicationsInput) SetNextToken(v string) *ListSipMediaApplicationsInput { - s.NextToken = &v +// SetMemberId sets the MemberId field's value. +func (s *MemberError) SetMemberId(v string) *MemberError { + s.MemberId = &v return s } -type ListSipMediaApplicationsOutput struct { +// Membership details, such as member ID and member role. +type MembershipItem struct { _ struct{} `type:"structure"` - // The token to use to retrieve the next page of results. - NextToken *string `type:"string"` + // The member ID. + MemberId *string `type:"string"` - // List of SIP media applications and application details. - SipMediaApplications []*SipMediaApplication `type:"list"` + // The member role. + Role *string `type:"string" enum:"RoomMembershipRole"` } // String returns the string representation -func (s ListSipMediaApplicationsOutput) String() string { +func (s MembershipItem) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListSipMediaApplicationsOutput) GoString() string { +func (s MembershipItem) GoString() string { return s.String() } -// SetNextToken sets the NextToken field's value. -func (s *ListSipMediaApplicationsOutput) SetNextToken(v string) *ListSipMediaApplicationsOutput { - s.NextToken = &v +// SetMemberId sets the MemberId field's value. +func (s *MembershipItem) SetMemberId(v string) *MembershipItem { + s.MemberId = &v return s } -// SetSipMediaApplications sets the SipMediaApplications field's value. -func (s *ListSipMediaApplicationsOutput) SetSipMediaApplications(v []*SipMediaApplication) *ListSipMediaApplicationsOutput { - s.SipMediaApplications = v +// SetRole sets the Role field's value. +func (s *MembershipItem) SetRole(v string) *MembershipItem { + s.Role = &v return s } -type ListSipRulesInput struct { +// The endpoint of a meeting session. +type MessagingSessionEndpoint struct { _ struct{} `type:"structure"` - // The maximum number of results to return in a single call. Defaults to 100. - MaxResults *int64 `location:"querystring" locationName:"max-results" min:"1" type:"integer"` + // The URL of a meeting session endpoint. + Url *string `type:"string"` +} - // The token to use to retrieve the next page of results. - NextToken *string `location:"querystring" locationName:"next-token" type:"string"` +// String returns the string representation +func (s MessagingSessionEndpoint) String() string { + return awsutil.Prettify(s) +} - // The SIP media application ID. - SipMediaApplicationId *string `location:"querystring" locationName:"sip-media-application" type:"string"` +// GoString returns the string representation +func (s MessagingSessionEndpoint) GoString() string { + return s.String() +} + +// SetUrl sets the Url field's value. +func (s *MessagingSessionEndpoint) SetUrl(v string) *MessagingSessionEndpoint { + s.Url = &v + return s +} + +// One or more of the resources in the request does not exist in the system. +type NotFoundException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + Code_ *string `locationName:"Code" type:"string" enum:"ErrorCode"` + + Message_ *string `locationName:"Message" type:"string"` } // String returns the string representation -func (s ListSipRulesInput) String() string { +func (s NotFoundException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListSipRulesInput) GoString() string { +func (s NotFoundException) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListSipRulesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListSipRulesInput"} - if s.MaxResults != nil && *s.MaxResults < 1 { - invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) +func newErrorNotFoundException(v protocol.ResponseMetadata) error { + return &NotFoundException{ + RespMetadata: v, } +} - if invalidParams.Len() > 0 { - return invalidParams +// Code returns the exception type name. +func (s *NotFoundException) Code() string { + return "NotFoundException" +} + +// Message returns the exception's message. +func (s *NotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *NotFoundException) OrigErr() error { return nil } -// SetMaxResults sets the MaxResults field's value. -func (s *ListSipRulesInput) SetMaxResults(v int64) *ListSipRulesInput { - s.MaxResults = &v - return s +func (s *NotFoundException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) } -// SetNextToken sets the NextToken field's value. -func (s *ListSipRulesInput) SetNextToken(v string) *ListSipRulesInput { - s.NextToken = &v - return s +// Status code returns the HTTP status code for the request's response error. +func (s *NotFoundException) StatusCode() int { + return s.RespMetadata.StatusCode } -// SetSipMediaApplicationId sets the SipMediaApplicationId field's value. -func (s *ListSipRulesInput) SetSipMediaApplicationId(v string) *ListSipRulesInput { - s.SipMediaApplicationId = &v - return s +// RequestID returns the service's response RequestID for request. +func (s *NotFoundException) RequestID() string { + return s.RespMetadata.RequestID } -type ListSipRulesOutput struct { +// A phone number for which an order has been placed. +type OrderedPhoneNumber struct { _ struct{} `type:"structure"` - // The token to use to retrieve the next page of results. - NextToken *string `type:"string"` + // The phone number, in E.164 format. + E164PhoneNumber *string `type:"string" sensitive:"true"` - // List of SIP rules and rule details. - SipRules []*SipRule `type:"list"` + // The phone number status. + Status *string `type:"string" enum:"OrderedPhoneNumberStatus"` } // String returns the string representation -func (s ListSipRulesOutput) String() string { +func (s OrderedPhoneNumber) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListSipRulesOutput) GoString() string { +func (s OrderedPhoneNumber) GoString() string { return s.String() } -// SetNextToken sets the NextToken field's value. -func (s *ListSipRulesOutput) SetNextToken(v string) *ListSipRulesOutput { - s.NextToken = &v +// SetE164PhoneNumber sets the E164PhoneNumber field's value. +func (s *OrderedPhoneNumber) SetE164PhoneNumber(v string) *OrderedPhoneNumber { + s.E164PhoneNumber = &v return s } -// SetSipRules sets the SipRules field's value. -func (s *ListSipRulesOutput) SetSipRules(v []*SipRule) *ListSipRulesOutput { - s.SipRules = v +// SetStatus sets the Status field's value. +func (s *OrderedPhoneNumber) SetStatus(v string) *OrderedPhoneNumber { + s.Status = &v return s } -type ListTagsForResourceInput struct { +// Origination settings enable your SIP hosts to receive inbound calls using +// your Amazon Chime Voice Connector. +type Origination struct { _ struct{} `type:"structure"` - // The resource ARN. - // - // ResourceARN is a required field - ResourceARN *string `location:"querystring" locationName:"arn" min:"1" type:"string" required:"true" sensitive:"true"` + // When origination settings are disabled, inbound calls are not enabled for + // your Amazon Chime Voice Connector. + Disabled *bool `type:"boolean"` + + // The call distribution properties defined for your SIP hosts. Valid range: + // Minimum value of 1. Maximum value of 20. + Routes []*OriginationRoute `type:"list"` } // String returns the string representation -func (s ListTagsForResourceInput) String() string { +func (s Origination) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListTagsForResourceInput) GoString() string { +func (s Origination) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *ListTagsForResourceInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListTagsForResourceInput"} - if s.ResourceARN == nil { - invalidParams.Add(request.NewErrParamRequired("ResourceARN")) - } - if s.ResourceARN != nil && len(*s.ResourceARN) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ResourceARN", 1)) +func (s *Origination) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "Origination"} + if s.Routes != nil { + for i, v := range s.Routes { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Routes", i), err.(request.ErrInvalidParams)) + } + } } if invalidParams.Len() > 0 { @@ -22246,77 +32953,61 @@ func (s *ListTagsForResourceInput) Validate() error { return nil } -// SetResourceARN sets the ResourceARN field's value. -func (s *ListTagsForResourceInput) SetResourceARN(v string) *ListTagsForResourceInput { - s.ResourceARN = &v +// SetDisabled sets the Disabled field's value. +func (s *Origination) SetDisabled(v bool) *Origination { + s.Disabled = &v return s } -type ListTagsForResourceOutput struct { - _ struct{} `type:"structure"` - - // A list of tag-key value pairs. - Tags []*Tag `min:"1" type:"list"` -} - -// String returns the string representation -func (s ListTagsForResourceOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s ListTagsForResourceOutput) GoString() string { - return s.String() -} - -// SetTags sets the Tags field's value. -func (s *ListTagsForResourceOutput) SetTags(v []*Tag) *ListTagsForResourceOutput { - s.Tags = v +// SetRoutes sets the Routes field's value. +func (s *Origination) SetRoutes(v []*OriginationRoute) *Origination { + s.Routes = v return s } -type ListUsersInput struct { +// Origination routes define call distribution properties for your SIP hosts +// to receive inbound calls using your Amazon Chime Voice Connector. Limit: +// Ten origination routes for each Amazon Chime Voice Connector. +type OriginationRoute struct { _ struct{} `type:"structure"` - // The Amazon Chime account ID. - // - // AccountId is a required field - AccountId *string `location:"uri" locationName:"accountId" type:"string" required:"true"` + // The FQDN or IP address to contact for origination traffic. + Host *string `type:"string"` - // The maximum number of results to return in a single call. Defaults to 100. - MaxResults *int64 `location:"querystring" locationName:"max-results" min:"1" type:"integer"` + // The designated origination route port. Defaults to 5060. + Port *int64 `type:"integer"` - // The token to use to retrieve the next page of results. - NextToken *string `location:"querystring" locationName:"next-token" type:"string"` + // The priority associated with the host, with 1 being the highest priority. + // Higher priority hosts are attempted first. + Priority *int64 `min:"1" type:"integer"` - // Optional. The user email address used to filter results. Maximum 1. - UserEmail *string `location:"querystring" locationName:"user-email" type:"string" sensitive:"true"` + // The protocol to use for the origination route. Encryption-enabled Amazon + // Chime Voice Connectors use TCP protocol by default. + Protocol *string `type:"string" enum:"OriginationRouteProtocol"` - // The user type. - UserType *string `location:"querystring" locationName:"user-type" type:"string" enum:"UserType"` + // The weight associated with the host. If hosts are equal in priority, calls + // are distributed among them based on their relative weight. + Weight *int64 `min:"1" type:"integer"` } // String returns the string representation -func (s ListUsersInput) String() string { +func (s OriginationRoute) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListUsersInput) GoString() string { +func (s OriginationRoute) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *ListUsersInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListUsersInput"} - if s.AccountId == nil { - invalidParams.Add(request.NewErrParamRequired("AccountId")) - } - if s.AccountId != nil && len(*s.AccountId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) +func (s *OriginationRoute) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "OriginationRoute"} + if s.Priority != nil && *s.Priority < 1 { + invalidParams.Add(request.NewErrParamMinValue("Priority", 1)) } - if s.MaxResults != nil && *s.MaxResults < 1 { - invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + if s.Weight != nil && *s.Weight < 1 { + invalidParams.Add(request.NewErrParamMinValue("Weight", 1)) } if invalidParams.Len() > 0 { @@ -22325,828 +33016,747 @@ func (s *ListUsersInput) Validate() error { return nil } -// SetAccountId sets the AccountId field's value. -func (s *ListUsersInput) SetAccountId(v string) *ListUsersInput { - s.AccountId = &v +// SetHost sets the Host field's value. +func (s *OriginationRoute) SetHost(v string) *OriginationRoute { + s.Host = &v return s } -// SetMaxResults sets the MaxResults field's value. -func (s *ListUsersInput) SetMaxResults(v int64) *ListUsersInput { - s.MaxResults = &v +// SetPort sets the Port field's value. +func (s *OriginationRoute) SetPort(v int64) *OriginationRoute { + s.Port = &v return s } -// SetNextToken sets the NextToken field's value. -func (s *ListUsersInput) SetNextToken(v string) *ListUsersInput { - s.NextToken = &v +// SetPriority sets the Priority field's value. +func (s *OriginationRoute) SetPriority(v int64) *OriginationRoute { + s.Priority = &v return s } -// SetUserEmail sets the UserEmail field's value. -func (s *ListUsersInput) SetUserEmail(v string) *ListUsersInput { - s.UserEmail = &v +// SetProtocol sets the Protocol field's value. +func (s *OriginationRoute) SetProtocol(v string) *OriginationRoute { + s.Protocol = &v return s } -// SetUserType sets the UserType field's value. -func (s *ListUsersInput) SetUserType(v string) *ListUsersInput { - s.UserType = &v +// SetWeight sets the Weight field's value. +func (s *OriginationRoute) SetWeight(v int64) *OriginationRoute { + s.Weight = &v return s } -type ListUsersOutput struct { +// The phone number and proxy phone number for a participant in an Amazon Chime +// Voice Connector proxy session. +type Participant struct { _ struct{} `type:"structure"` - // The token to use to retrieve the next page of results. - NextToken *string `type:"string"` + // The participant's phone number. + PhoneNumber *string `type:"string" sensitive:"true"` - // List of users and user details. - Users []*User `type:"list"` + // The participant's proxy phone number. + ProxyPhoneNumber *string `type:"string" sensitive:"true"` } // String returns the string representation -func (s ListUsersOutput) String() string { +func (s Participant) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListUsersOutput) GoString() string { +func (s Participant) GoString() string { return s.String() } -// SetNextToken sets the NextToken field's value. -func (s *ListUsersOutput) SetNextToken(v string) *ListUsersOutput { - s.NextToken = &v +// SetPhoneNumber sets the PhoneNumber field's value. +func (s *Participant) SetPhoneNumber(v string) *Participant { + s.PhoneNumber = &v return s } -// SetUsers sets the Users field's value. -func (s *ListUsersOutput) SetUsers(v []*User) *ListUsersOutput { - s.Users = v +// SetProxyPhoneNumber sets the ProxyPhoneNumber field's value. +func (s *Participant) SetProxyPhoneNumber(v string) *Participant { + s.ProxyPhoneNumber = &v return s } -type ListVoiceConnectorGroupsInput struct { +// A phone number used for Amazon Chime Business Calling or an Amazon Chime +// Voice Connector. +type PhoneNumber struct { _ struct{} `type:"structure"` - // The maximum number of results to return in a single call. - MaxResults *int64 `location:"querystring" locationName:"max-results" min:"1" type:"integer"` + // The phone number associations. + Associations []*PhoneNumberAssociation `type:"list"` - // The token to use to retrieve the next page of results. - NextToken *string `location:"querystring" locationName:"next-token" type:"string"` -} + // The outbound calling name associated with the phone number. + CallingName *string `type:"string" sensitive:"true"` -// String returns the string representation -func (s ListVoiceConnectorGroupsInput) String() string { - return awsutil.Prettify(s) -} + // The outbound calling name status. + CallingNameStatus *string `type:"string" enum:"CallingNameStatus"` -// GoString returns the string representation -func (s ListVoiceConnectorGroupsInput) GoString() string { - return s.String() -} + // The phone number capabilities. + Capabilities *PhoneNumberCapabilities `type:"structure"` -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListVoiceConnectorGroupsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListVoiceConnectorGroupsInput"} - if s.MaxResults != nil && *s.MaxResults < 1 { - invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) - } + // The phone number creation timestamp, in ISO 8601 format. + CreatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} + // The deleted phone number timestamp, in ISO 8601 format. + DeletionTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` -// SetMaxResults sets the MaxResults field's value. -func (s *ListVoiceConnectorGroupsInput) SetMaxResults(v int64) *ListVoiceConnectorGroupsInput { - s.MaxResults = &v - return s -} + // The phone number, in E.164 format. + E164PhoneNumber *string `type:"string" sensitive:"true"` -// SetNextToken sets the NextToken field's value. -func (s *ListVoiceConnectorGroupsInput) SetNextToken(v string) *ListVoiceConnectorGroupsInput { - s.NextToken = &v - return s -} + // The phone number ID. + PhoneNumberId *string `type:"string"` -type ListVoiceConnectorGroupsOutput struct { - _ struct{} `type:"structure"` + // The phone number product type. + ProductType *string `type:"string" enum:"PhoneNumberProductType"` - // The token to use to retrieve the next page of results. - NextToken *string `type:"string"` + // The phone number status. + Status *string `type:"string" enum:"PhoneNumberStatus"` - // The details of the Amazon Chime Voice Connector groups. - VoiceConnectorGroups []*VoiceConnectorGroup `type:"list"` + // The phone number type. + Type *string `type:"string" enum:"PhoneNumberType"` + + // The updated phone number timestamp, in ISO 8601 format. + UpdatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` } // String returns the string representation -func (s ListVoiceConnectorGroupsOutput) String() string { +func (s PhoneNumber) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListVoiceConnectorGroupsOutput) GoString() string { +func (s PhoneNumber) GoString() string { return s.String() } -// SetNextToken sets the NextToken field's value. -func (s *ListVoiceConnectorGroupsOutput) SetNextToken(v string) *ListVoiceConnectorGroupsOutput { - s.NextToken = &v +// SetAssociations sets the Associations field's value. +func (s *PhoneNumber) SetAssociations(v []*PhoneNumberAssociation) *PhoneNumber { + s.Associations = v return s } -// SetVoiceConnectorGroups sets the VoiceConnectorGroups field's value. -func (s *ListVoiceConnectorGroupsOutput) SetVoiceConnectorGroups(v []*VoiceConnectorGroup) *ListVoiceConnectorGroupsOutput { - s.VoiceConnectorGroups = v +// SetCallingName sets the CallingName field's value. +func (s *PhoneNumber) SetCallingName(v string) *PhoneNumber { + s.CallingName = &v return s } -type ListVoiceConnectorTerminationCredentialsInput struct { - _ struct{} `type:"structure"` - - // The Amazon Chime Voice Connector ID. - // - // VoiceConnectorId is a required field - VoiceConnectorId *string `location:"uri" locationName:"voiceConnectorId" type:"string" required:"true"` +// SetCallingNameStatus sets the CallingNameStatus field's value. +func (s *PhoneNumber) SetCallingNameStatus(v string) *PhoneNumber { + s.CallingNameStatus = &v + return s } -// String returns the string representation -func (s ListVoiceConnectorTerminationCredentialsInput) String() string { - return awsutil.Prettify(s) +// SetCapabilities sets the Capabilities field's value. +func (s *PhoneNumber) SetCapabilities(v *PhoneNumberCapabilities) *PhoneNumber { + s.Capabilities = v + return s } -// GoString returns the string representation -func (s ListVoiceConnectorTerminationCredentialsInput) GoString() string { - return s.String() +// SetCreatedTimestamp sets the CreatedTimestamp field's value. +func (s *PhoneNumber) SetCreatedTimestamp(v time.Time) *PhoneNumber { + s.CreatedTimestamp = &v + return s } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListVoiceConnectorTerminationCredentialsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListVoiceConnectorTerminationCredentialsInput"} - if s.VoiceConnectorId == nil { - invalidParams.Add(request.NewErrParamRequired("VoiceConnectorId")) - } - if s.VoiceConnectorId != nil && len(*s.VoiceConnectorId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("VoiceConnectorId", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetDeletionTimestamp sets the DeletionTimestamp field's value. +func (s *PhoneNumber) SetDeletionTimestamp(v time.Time) *PhoneNumber { + s.DeletionTimestamp = &v + return s } -// SetVoiceConnectorId sets the VoiceConnectorId field's value. -func (s *ListVoiceConnectorTerminationCredentialsInput) SetVoiceConnectorId(v string) *ListVoiceConnectorTerminationCredentialsInput { - s.VoiceConnectorId = &v +// SetE164PhoneNumber sets the E164PhoneNumber field's value. +func (s *PhoneNumber) SetE164PhoneNumber(v string) *PhoneNumber { + s.E164PhoneNumber = &v return s } -type ListVoiceConnectorTerminationCredentialsOutput struct { - _ struct{} `type:"structure"` +// SetPhoneNumberId sets the PhoneNumberId field's value. +func (s *PhoneNumber) SetPhoneNumberId(v string) *PhoneNumber { + s.PhoneNumberId = &v + return s +} - // A list of user names. - Usernames []*string `type:"list"` +// SetProductType sets the ProductType field's value. +func (s *PhoneNumber) SetProductType(v string) *PhoneNumber { + s.ProductType = &v + return s } -// String returns the string representation -func (s ListVoiceConnectorTerminationCredentialsOutput) String() string { - return awsutil.Prettify(s) +// SetStatus sets the Status field's value. +func (s *PhoneNumber) SetStatus(v string) *PhoneNumber { + s.Status = &v + return s } -// GoString returns the string representation -func (s ListVoiceConnectorTerminationCredentialsOutput) GoString() string { - return s.String() +// SetType sets the Type field's value. +func (s *PhoneNumber) SetType(v string) *PhoneNumber { + s.Type = &v + return s } -// SetUsernames sets the Usernames field's value. -func (s *ListVoiceConnectorTerminationCredentialsOutput) SetUsernames(v []*string) *ListVoiceConnectorTerminationCredentialsOutput { - s.Usernames = v +// SetUpdatedTimestamp sets the UpdatedTimestamp field's value. +func (s *PhoneNumber) SetUpdatedTimestamp(v time.Time) *PhoneNumber { + s.UpdatedTimestamp = &v return s } -type ListVoiceConnectorsInput struct { +// The phone number associations, such as Amazon Chime account ID, Amazon Chime +// user ID, Amazon Chime Voice Connector ID, or Amazon Chime Voice Connector +// group ID. +type PhoneNumberAssociation struct { _ struct{} `type:"structure"` - // The maximum number of results to return in a single call. - MaxResults *int64 `location:"querystring" locationName:"max-results" min:"1" type:"integer"` + // The timestamp of the phone number association, in ISO 8601 format. + AssociatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` - // The token to use to retrieve the next page of results. - NextToken *string `location:"querystring" locationName:"next-token" type:"string"` + // Defines the association with an Amazon Chime account ID, user ID, Amazon + // Chime Voice Connector ID, or Amazon Chime Voice Connector group ID. + Name *string `type:"string" enum:"PhoneNumberAssociationName"` + + // Contains the ID for the entity specified in Name. + Value *string `type:"string"` } // String returns the string representation -func (s ListVoiceConnectorsInput) String() string { +func (s PhoneNumberAssociation) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListVoiceConnectorsInput) GoString() string { +func (s PhoneNumberAssociation) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListVoiceConnectorsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListVoiceConnectorsInput"} - if s.MaxResults != nil && *s.MaxResults < 1 { - invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetAssociatedTimestamp sets the AssociatedTimestamp field's value. +func (s *PhoneNumberAssociation) SetAssociatedTimestamp(v time.Time) *PhoneNumberAssociation { + s.AssociatedTimestamp = &v + return s } -// SetMaxResults sets the MaxResults field's value. -func (s *ListVoiceConnectorsInput) SetMaxResults(v int64) *ListVoiceConnectorsInput { - s.MaxResults = &v +// SetName sets the Name field's value. +func (s *PhoneNumberAssociation) SetName(v string) *PhoneNumberAssociation { + s.Name = &v return s } -// SetNextToken sets the NextToken field's value. -func (s *ListVoiceConnectorsInput) SetNextToken(v string) *ListVoiceConnectorsInput { - s.NextToken = &v +// SetValue sets the Value field's value. +func (s *PhoneNumberAssociation) SetValue(v string) *PhoneNumberAssociation { + s.Value = &v return s } -type ListVoiceConnectorsOutput struct { +// The phone number capabilities for Amazon Chime Business Calling phone numbers, +// such as enabled inbound and outbound calling and text messaging. +type PhoneNumberCapabilities struct { _ struct{} `type:"structure"` - // The token to use to retrieve the next page of results. - NextToken *string `type:"string"` + // Allows or denies inbound calling for the specified phone number. + InboundCall *bool `type:"boolean"` - // The details of the Amazon Chime Voice Connectors. - VoiceConnectors []*VoiceConnector `type:"list"` + // Allows or denies inbound MMS messaging for the specified phone number. + InboundMMS *bool `type:"boolean"` + + // Allows or denies inbound SMS messaging for the specified phone number. + InboundSMS *bool `type:"boolean"` + + // Allows or denies outbound calling for the specified phone number. + OutboundCall *bool `type:"boolean"` + + // Allows or denies outbound MMS messaging for the specified phone number. + OutboundMMS *bool `type:"boolean"` + + // Allows or denies outbound SMS messaging for the specified phone number. + OutboundSMS *bool `type:"boolean"` } // String returns the string representation -func (s ListVoiceConnectorsOutput) String() string { +func (s PhoneNumberCapabilities) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListVoiceConnectorsOutput) GoString() string { +func (s PhoneNumberCapabilities) GoString() string { return s.String() } -// SetNextToken sets the NextToken field's value. -func (s *ListVoiceConnectorsOutput) SetNextToken(v string) *ListVoiceConnectorsOutput { - s.NextToken = &v +// SetInboundCall sets the InboundCall field's value. +func (s *PhoneNumberCapabilities) SetInboundCall(v bool) *PhoneNumberCapabilities { + s.InboundCall = &v return s } -// SetVoiceConnectors sets the VoiceConnectors field's value. -func (s *ListVoiceConnectorsOutput) SetVoiceConnectors(v []*VoiceConnector) *ListVoiceConnectorsOutput { - s.VoiceConnectors = v +// SetInboundMMS sets the InboundMMS field's value. +func (s *PhoneNumberCapabilities) SetInboundMMS(v bool) *PhoneNumberCapabilities { + s.InboundMMS = &v return s } -// The logging configuration associated with an Amazon Chime Voice Connector. -// Specifies whether SIP message logs are enabled for sending to Amazon CloudWatch -// Logs. -type LoggingConfiguration struct { - _ struct{} `type:"structure"` - - // When true, enables SIP message logs for sending to Amazon CloudWatch Logs. - EnableSIPLogs *bool `type:"boolean"` +// SetInboundSMS sets the InboundSMS field's value. +func (s *PhoneNumberCapabilities) SetInboundSMS(v bool) *PhoneNumberCapabilities { + s.InboundSMS = &v + return s } -// String returns the string representation -func (s LoggingConfiguration) String() string { - return awsutil.Prettify(s) +// SetOutboundCall sets the OutboundCall field's value. +func (s *PhoneNumberCapabilities) SetOutboundCall(v bool) *PhoneNumberCapabilities { + s.OutboundCall = &v + return s } -// GoString returns the string representation -func (s LoggingConfiguration) GoString() string { - return s.String() +// SetOutboundMMS sets the OutboundMMS field's value. +func (s *PhoneNumberCapabilities) SetOutboundMMS(v bool) *PhoneNumberCapabilities { + s.OutboundMMS = &v + return s } -// SetEnableSIPLogs sets the EnableSIPLogs field's value. -func (s *LoggingConfiguration) SetEnableSIPLogs(v bool) *LoggingConfiguration { - s.EnableSIPLogs = &v +// SetOutboundSMS sets the OutboundSMS field's value. +func (s *PhoneNumberCapabilities) SetOutboundSMS(v bool) *PhoneNumberCapabilities { + s.OutboundSMS = &v return s } -type LogoutUserInput struct { +// If the phone number action fails for one or more of the phone numbers in +// the request, a list of the phone numbers is returned, along with error codes +// and error messages. +type PhoneNumberError struct { _ struct{} `type:"structure"` - // The Amazon Chime account ID. - // - // AccountId is a required field - AccountId *string `location:"uri" locationName:"accountId" type:"string" required:"true"` + // The error code. + ErrorCode *string `type:"string" enum:"ErrorCode"` - // The user ID. - // - // UserId is a required field - UserId *string `location:"uri" locationName:"userId" type:"string" required:"true"` + // The error message. + ErrorMessage *string `type:"string"` + + // The phone number ID for which the action failed. + PhoneNumberId *string `type:"string"` } // String returns the string representation -func (s LogoutUserInput) String() string { +func (s PhoneNumberError) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s LogoutUserInput) GoString() string { +func (s PhoneNumberError) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *LogoutUserInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "LogoutUserInput"} - if s.AccountId == nil { - invalidParams.Add(request.NewErrParamRequired("AccountId")) - } - if s.AccountId != nil && len(*s.AccountId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("AccountId", 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 -} - -// SetAccountId sets the AccountId field's value. -func (s *LogoutUserInput) SetAccountId(v string) *LogoutUserInput { - s.AccountId = &v +// SetErrorCode sets the ErrorCode field's value. +func (s *PhoneNumberError) SetErrorCode(v string) *PhoneNumberError { + s.ErrorCode = &v return s } -// SetUserId sets the UserId field's value. -func (s *LogoutUserInput) SetUserId(v string) *LogoutUserInput { - s.UserId = &v +// SetErrorMessage sets the ErrorMessage field's value. +func (s *PhoneNumberError) SetErrorMessage(v string) *PhoneNumberError { + s.ErrorMessage = &v return s } -type LogoutUserOutput struct { - _ struct{} `type:"structure"` -} - -// String returns the string representation -func (s LogoutUserOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s LogoutUserOutput) GoString() string { - return s.String() +// SetPhoneNumberId sets the PhoneNumberId field's value. +func (s *PhoneNumberError) SetPhoneNumberId(v string) *PhoneNumberError { + s.PhoneNumberId = &v + return s } -// A set of endpoints used by clients to connect to the media service group -// for a Amazon Chime SDK meeting. -type MediaPlacement struct { +// The details of a phone number order created for Amazon Chime. +type PhoneNumberOrder struct { _ struct{} `type:"structure"` - // The audio fallback URL. - AudioFallbackUrl *string `type:"string"` - - // The audio host URL. - AudioHostUrl *string `type:"string"` + // The phone number order creation timestamp, in ISO 8601 format. + CreatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` - // The screen data URL. - ScreenDataUrl *string `type:"string"` + // The ordered phone number details, such as the phone number in E.164 format + // and the phone number status. + OrderedPhoneNumbers []*OrderedPhoneNumber `type:"list"` - // The screen sharing URL. - ScreenSharingUrl *string `type:"string"` + // The phone number order ID. + PhoneNumberOrderId *string `type:"string"` - // The screen viewing URL. - ScreenViewingUrl *string `type:"string"` + // The phone number order product type. + ProductType *string `type:"string" enum:"PhoneNumberProductType"` - // The signaling URL. - SignalingUrl *string `type:"string"` + // The status of the phone number order. + Status *string `type:"string" enum:"PhoneNumberOrderStatus"` - // The turn control URL. - TurnControlUrl *string `type:"string"` + // The updated phone number order timestamp, in ISO 8601 format. + UpdatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` } // String returns the string representation -func (s MediaPlacement) String() string { +func (s PhoneNumberOrder) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s MediaPlacement) GoString() string { +func (s PhoneNumberOrder) GoString() string { return s.String() } -// SetAudioFallbackUrl sets the AudioFallbackUrl field's value. -func (s *MediaPlacement) SetAudioFallbackUrl(v string) *MediaPlacement { - s.AudioFallbackUrl = &v - return s -} - -// SetAudioHostUrl sets the AudioHostUrl field's value. -func (s *MediaPlacement) SetAudioHostUrl(v string) *MediaPlacement { - s.AudioHostUrl = &v +// SetCreatedTimestamp sets the CreatedTimestamp field's value. +func (s *PhoneNumberOrder) SetCreatedTimestamp(v time.Time) *PhoneNumberOrder { + s.CreatedTimestamp = &v return s } -// SetScreenDataUrl sets the ScreenDataUrl field's value. -func (s *MediaPlacement) SetScreenDataUrl(v string) *MediaPlacement { - s.ScreenDataUrl = &v +// SetOrderedPhoneNumbers sets the OrderedPhoneNumbers field's value. +func (s *PhoneNumberOrder) SetOrderedPhoneNumbers(v []*OrderedPhoneNumber) *PhoneNumberOrder { + s.OrderedPhoneNumbers = v return s } -// SetScreenSharingUrl sets the ScreenSharingUrl field's value. -func (s *MediaPlacement) SetScreenSharingUrl(v string) *MediaPlacement { - s.ScreenSharingUrl = &v +// SetPhoneNumberOrderId sets the PhoneNumberOrderId field's value. +func (s *PhoneNumberOrder) SetPhoneNumberOrderId(v string) *PhoneNumberOrder { + s.PhoneNumberOrderId = &v return s } -// SetScreenViewingUrl sets the ScreenViewingUrl field's value. -func (s *MediaPlacement) SetScreenViewingUrl(v string) *MediaPlacement { - s.ScreenViewingUrl = &v +// SetProductType sets the ProductType field's value. +func (s *PhoneNumberOrder) SetProductType(v string) *PhoneNumberOrder { + s.ProductType = &v return s } -// SetSignalingUrl sets the SignalingUrl field's value. -func (s *MediaPlacement) SetSignalingUrl(v string) *MediaPlacement { - s.SignalingUrl = &v +// SetStatus sets the Status field's value. +func (s *PhoneNumberOrder) SetStatus(v string) *PhoneNumberOrder { + s.Status = &v return s } -// SetTurnControlUrl sets the TurnControlUrl field's value. -func (s *MediaPlacement) SetTurnControlUrl(v string) *MediaPlacement { - s.TurnControlUrl = &v +// SetUpdatedTimestamp sets the UpdatedTimestamp field's value. +func (s *PhoneNumberOrder) SetUpdatedTimestamp(v time.Time) *PhoneNumberOrder { + s.UpdatedTimestamp = &v return s } -// A meeting created using the Amazon Chime SDK. -type Meeting struct { +// The proxy configuration for an Amazon Chime Voice Connector. +type Proxy struct { _ struct{} `type:"structure"` - // The external meeting ID. - ExternalMeetingId *string `min:"2" type:"string" sensitive:"true"` + // The default number of minutes allowed for proxy sessions. + DefaultSessionExpiryMinutes *int64 `type:"integer"` - // The media placement for the meeting. - MediaPlacement *MediaPlacement `type:"structure"` + // When true, stops proxy sessions from being created on the specified Amazon + // Chime Voice Connector. + Disabled *bool `type:"boolean"` - // The Region in which to create the meeting. Available values: af-south-1, - // ap-northeast-1, ap-northeast-2, ap-south-1, ap-southeast-1, ap-southeast-2, - // ca-central-1, eu-central-1, eu-north-1, eu-south-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. - MediaRegion *string `type:"string"` + // The phone number to route calls to after a proxy session expires. + FallBackPhoneNumber *string `type:"string" sensitive:"true"` - // The Amazon Chime SDK meeting ID. - MeetingId *string `type:"string"` + // The countries for proxy phone numbers to be selected from. + PhoneNumberCountries []*string `type:"list"` } // String returns the string representation -func (s Meeting) String() string { +func (s Proxy) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s Meeting) GoString() string { +func (s Proxy) GoString() string { return s.String() } -// SetExternalMeetingId sets the ExternalMeetingId field's value. -func (s *Meeting) SetExternalMeetingId(v string) *Meeting { - s.ExternalMeetingId = &v +// SetDefaultSessionExpiryMinutes sets the DefaultSessionExpiryMinutes field's value. +func (s *Proxy) SetDefaultSessionExpiryMinutes(v int64) *Proxy { + s.DefaultSessionExpiryMinutes = &v return s } -// SetMediaPlacement sets the MediaPlacement field's value. -func (s *Meeting) SetMediaPlacement(v *MediaPlacement) *Meeting { - s.MediaPlacement = v +// SetDisabled sets the Disabled field's value. +func (s *Proxy) SetDisabled(v bool) *Proxy { + s.Disabled = &v return s } -// SetMediaRegion sets the MediaRegion field's value. -func (s *Meeting) SetMediaRegion(v string) *Meeting { - s.MediaRegion = &v +// SetFallBackPhoneNumber sets the FallBackPhoneNumber field's value. +func (s *Proxy) SetFallBackPhoneNumber(v string) *Proxy { + s.FallBackPhoneNumber = &v return s } -// SetMeetingId sets the MeetingId field's value. -func (s *Meeting) SetMeetingId(v string) *Meeting { - s.MeetingId = &v +// SetPhoneNumberCountries sets the PhoneNumberCountries field's value. +func (s *Proxy) SetPhoneNumberCountries(v []*string) *Proxy { + s.PhoneNumberCountries = v return s } -// The configuration for resource targets to receive notifications when Amazon -// Chime SDK meeting and attendee events occur. The Amazon Chime SDK supports -// resource targets located in the US East (N. Virginia) AWS Region (us-east-1). -type MeetingNotificationConfiguration struct { +// The proxy session for an Amazon Chime Voice Connector. +type ProxySession struct { _ struct{} `type:"structure"` - // The SNS topic ARN. - SnsTopicArn *string `min:"1" type:"string" sensitive:"true"` - - // The SQS queue ARN. - SqsQueueArn *string `min:"1" type:"string" sensitive:"true"` -} + // The proxy session capabilities. + Capabilities []*string `type:"list"` -// String returns the string representation -func (s MeetingNotificationConfiguration) String() string { - return awsutil.Prettify(s) -} + // The created timestamp, in ISO 8601 format. + CreatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` -// GoString returns the string representation -func (s MeetingNotificationConfiguration) GoString() string { - return s.String() -} + // The ended timestamp, in ISO 8601 format. + EndedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` -// Validate inspects the fields of the type to determine if they are valid. -func (s *MeetingNotificationConfiguration) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "MeetingNotificationConfiguration"} - if s.SnsTopicArn != nil && len(*s.SnsTopicArn) < 1 { - invalidParams.Add(request.NewErrParamMinLen("SnsTopicArn", 1)) - } - if s.SqsQueueArn != nil && len(*s.SqsQueueArn) < 1 { - invalidParams.Add(request.NewErrParamMinLen("SqsQueueArn", 1)) - } + // The number of minutes allowed for the proxy session. + ExpiryMinutes *int64 `min:"1" type:"integer"` - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} + // The preference for matching the country or area code of the proxy phone number + // with that of the first participant. + GeoMatchLevel *string `type:"string" enum:"GeoMatchLevel"` -// SetSnsTopicArn sets the SnsTopicArn field's value. -func (s *MeetingNotificationConfiguration) SetSnsTopicArn(v string) *MeetingNotificationConfiguration { - s.SnsTopicArn = &v - return s -} + // The country and area code for the proxy phone number. + GeoMatchParams *GeoMatchParams `type:"structure"` -// SetSqsQueueArn sets the SqsQueueArn field's value. -func (s *MeetingNotificationConfiguration) SetSqsQueueArn(v string) *MeetingNotificationConfiguration { - s.SqsQueueArn = &v - return s -} + // The name of the proxy session. + Name *string `type:"string"` -// The member details, such as email address, name, member ID, and member type. -type Member struct { - _ struct{} `type:"structure"` + // The preference for proxy phone number reuse, or stickiness, between the same + // participants across sessions. + NumberSelectionBehavior *string `type:"string" enum:"NumberSelectionBehavior"` - // The Amazon Chime account ID. - AccountId *string `type:"string"` + // The proxy session participants. + Participants []*Participant `type:"list"` - // The member email address. - Email *string `type:"string" sensitive:"true"` + // The proxy session ID. + ProxySessionId *string `min:"1" type:"string"` - // The member name. - FullName *string `type:"string" sensitive:"true"` + // The status of the proxy session. + Status *string `type:"string" enum:"ProxySessionStatus"` - // The member ID (user ID or bot ID). - MemberId *string `type:"string"` + // The updated timestamp, in ISO 8601 format. + UpdatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` - // The member type. - MemberType *string `type:"string" enum:"MemberType"` + // The Amazon Chime voice connector ID. + VoiceConnectorId *string `min:"1" type:"string"` } // String returns the string representation -func (s Member) String() string { +func (s ProxySession) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s Member) GoString() string { +func (s ProxySession) GoString() string { return s.String() } -// SetAccountId sets the AccountId field's value. -func (s *Member) SetAccountId(v string) *Member { - s.AccountId = &v +// SetCapabilities sets the Capabilities field's value. +func (s *ProxySession) SetCapabilities(v []*string) *ProxySession { + s.Capabilities = v return s } -// SetEmail sets the Email field's value. -func (s *Member) SetEmail(v string) *Member { - s.Email = &v +// SetCreatedTimestamp sets the CreatedTimestamp field's value. +func (s *ProxySession) SetCreatedTimestamp(v time.Time) *ProxySession { + s.CreatedTimestamp = &v return s } -// SetFullName sets the FullName field's value. -func (s *Member) SetFullName(v string) *Member { - s.FullName = &v +// SetEndedTimestamp sets the EndedTimestamp field's value. +func (s *ProxySession) SetEndedTimestamp(v time.Time) *ProxySession { + s.EndedTimestamp = &v return s } -// SetMemberId sets the MemberId field's value. -func (s *Member) SetMemberId(v string) *Member { - s.MemberId = &v +// SetExpiryMinutes sets the ExpiryMinutes field's value. +func (s *ProxySession) SetExpiryMinutes(v int64) *ProxySession { + s.ExpiryMinutes = &v return s } -// SetMemberType sets the MemberType field's value. -func (s *Member) SetMemberType(v string) *Member { - s.MemberType = &v +// SetGeoMatchLevel sets the GeoMatchLevel field's value. +func (s *ProxySession) SetGeoMatchLevel(v string) *ProxySession { + s.GeoMatchLevel = &v return s } -// The list of errors returned when a member action results in an error. -type MemberError struct { - _ struct{} `type:"structure"` - - // The error code. - ErrorCode *string `type:"string" enum:"ErrorCode"` - - // The error message. - ErrorMessage *string `type:"string"` - - // The member ID. - MemberId *string `type:"string"` -} - -// String returns the string representation -func (s MemberError) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s MemberError) GoString() string { - return s.String() -} - -// SetErrorCode sets the ErrorCode field's value. -func (s *MemberError) SetErrorCode(v string) *MemberError { - s.ErrorCode = &v +// SetGeoMatchParams sets the GeoMatchParams field's value. +func (s *ProxySession) SetGeoMatchParams(v *GeoMatchParams) *ProxySession { + s.GeoMatchParams = v return s } -// SetErrorMessage sets the ErrorMessage field's value. -func (s *MemberError) SetErrorMessage(v string) *MemberError { - s.ErrorMessage = &v +// SetName sets the Name field's value. +func (s *ProxySession) SetName(v string) *ProxySession { + s.Name = &v return s } -// SetMemberId sets the MemberId field's value. -func (s *MemberError) SetMemberId(v string) *MemberError { - s.MemberId = &v +// SetNumberSelectionBehavior sets the NumberSelectionBehavior field's value. +func (s *ProxySession) SetNumberSelectionBehavior(v string) *ProxySession { + s.NumberSelectionBehavior = &v return s } -// Membership details, such as member ID and member role. -type MembershipItem struct { - _ struct{} `type:"structure"` - - // The member ID. - MemberId *string `type:"string"` - - // The member role. - Role *string `type:"string" enum:"RoomMembershipRole"` +// SetParticipants sets the Participants field's value. +func (s *ProxySession) SetParticipants(v []*Participant) *ProxySession { + s.Participants = v + return s } -// String returns the string representation -func (s MembershipItem) String() string { - return awsutil.Prettify(s) +// SetProxySessionId sets the ProxySessionId field's value. +func (s *ProxySession) SetProxySessionId(v string) *ProxySession { + s.ProxySessionId = &v + return s } -// GoString returns the string representation -func (s MembershipItem) GoString() string { - return s.String() +// SetStatus sets the Status field's value. +func (s *ProxySession) SetStatus(v string) *ProxySession { + s.Status = &v + return s } -// SetMemberId sets the MemberId field's value. -func (s *MembershipItem) SetMemberId(v string) *MembershipItem { - s.MemberId = &v +// SetUpdatedTimestamp sets the UpdatedTimestamp field's value. +func (s *ProxySession) SetUpdatedTimestamp(v time.Time) *ProxySession { + s.UpdatedTimestamp = &v return s } -// SetRole sets the Role field's value. -func (s *MembershipItem) SetRole(v string) *MembershipItem { - s.Role = &v +// SetVoiceConnectorId sets the VoiceConnectorId field's value. +func (s *ProxySession) SetVoiceConnectorId(v string) *ProxySession { + s.VoiceConnectorId = &v return s } -// One or more of the resources in the request does not exist in the system. -type NotFoundException struct { - _ struct{} `type:"structure"` - RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` +type PutAppInstanceRetentionSettingsInput struct { + _ struct{} `type:"structure"` - Code_ *string `locationName:"Code" type:"string" enum:"ErrorCode"` + // The ARN of the app instance. + // + // AppInstanceArn is a required field + AppInstanceArn *string `location:"uri" locationName:"appInstanceArn" min:"5" type:"string" required:"true"` - Message_ *string `locationName:"Message" type:"string"` + // The time in days to retain data. Data type: number. + // + // AppInstanceRetentionSettings is a required field + AppInstanceRetentionSettings *AppInstanceRetentionSettings `type:"structure" required:"true"` } // String returns the string representation -func (s NotFoundException) String() string { +func (s PutAppInstanceRetentionSettingsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s NotFoundException) GoString() string { +func (s PutAppInstanceRetentionSettingsInput) GoString() string { return s.String() } -func newErrorNotFoundException(v protocol.ResponseMetadata) error { - return &NotFoundException{ - RespMetadata: v, - } -} - -// Code returns the exception type name. -func (s *NotFoundException) Code() string { - return "NotFoundException" -} - -// Message returns the exception's message. -func (s *NotFoundException) Message() string { - if s.Message_ != nil { - return *s.Message_ +// Validate inspects the fields of the type to determine if they are valid. +func (s *PutAppInstanceRetentionSettingsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "PutAppInstanceRetentionSettingsInput"} + if s.AppInstanceArn == nil { + invalidParams.Add(request.NewErrParamRequired("AppInstanceArn")) + } + if s.AppInstanceArn != nil && len(*s.AppInstanceArn) < 5 { + invalidParams.Add(request.NewErrParamMinLen("AppInstanceArn", 5)) + } + if s.AppInstanceRetentionSettings == nil { + invalidParams.Add(request.NewErrParamRequired("AppInstanceRetentionSettings")) + } + if s.AppInstanceRetentionSettings != nil { + if err := s.AppInstanceRetentionSettings.Validate(); err != nil { + invalidParams.AddNested("AppInstanceRetentionSettings", err.(request.ErrInvalidParams)) + } } - return "" -} -// OrigErr always returns nil, satisfies awserr.Error interface. -func (s *NotFoundException) OrigErr() error { + if invalidParams.Len() > 0 { + return invalidParams + } return nil } -func (s *NotFoundException) Error() string { - return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) -} - -// Status code returns the HTTP status code for the request's response error. -func (s *NotFoundException) StatusCode() int { - return s.RespMetadata.StatusCode +// SetAppInstanceArn sets the AppInstanceArn field's value. +func (s *PutAppInstanceRetentionSettingsInput) SetAppInstanceArn(v string) *PutAppInstanceRetentionSettingsInput { + s.AppInstanceArn = &v + return s } -// RequestID returns the service's response RequestID for request. -func (s *NotFoundException) RequestID() string { - return s.RespMetadata.RequestID +// SetAppInstanceRetentionSettings sets the AppInstanceRetentionSettings field's value. +func (s *PutAppInstanceRetentionSettingsInput) SetAppInstanceRetentionSettings(v *AppInstanceRetentionSettings) *PutAppInstanceRetentionSettingsInput { + s.AppInstanceRetentionSettings = v + return s } -// A phone number for which an order has been placed. -type OrderedPhoneNumber struct { +type PutAppInstanceRetentionSettingsOutput struct { _ struct{} `type:"structure"` - // The phone number, in E.164 format. - E164PhoneNumber *string `type:"string" sensitive:"true"` + // The time in days to retain data. Data type: number. + AppInstanceRetentionSettings *AppInstanceRetentionSettings `type:"structure"` - // The phone number status. - Status *string `type:"string" enum:"OrderedPhoneNumberStatus"` + // The time at which the API deletes data. + InitiateDeletionTimestamp *time.Time `type:"timestamp"` } // String returns the string representation -func (s OrderedPhoneNumber) String() string { +func (s PutAppInstanceRetentionSettingsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s OrderedPhoneNumber) GoString() string { +func (s PutAppInstanceRetentionSettingsOutput) GoString() string { return s.String() } -// SetE164PhoneNumber sets the E164PhoneNumber field's value. -func (s *OrderedPhoneNumber) SetE164PhoneNumber(v string) *OrderedPhoneNumber { - s.E164PhoneNumber = &v +// SetAppInstanceRetentionSettings sets the AppInstanceRetentionSettings field's value. +func (s *PutAppInstanceRetentionSettingsOutput) SetAppInstanceRetentionSettings(v *AppInstanceRetentionSettings) *PutAppInstanceRetentionSettingsOutput { + s.AppInstanceRetentionSettings = v return s } -// SetStatus sets the Status field's value. -func (s *OrderedPhoneNumber) SetStatus(v string) *OrderedPhoneNumber { - s.Status = &v +// SetInitiateDeletionTimestamp sets the InitiateDeletionTimestamp field's value. +func (s *PutAppInstanceRetentionSettingsOutput) SetInitiateDeletionTimestamp(v time.Time) *PutAppInstanceRetentionSettingsOutput { + s.InitiateDeletionTimestamp = &v return s } -// Origination settings enable your SIP hosts to receive inbound calls using -// your Amazon Chime Voice Connector. -type Origination struct { +type PutAppInstanceStreamingConfigurationsInput struct { _ struct{} `type:"structure"` - // When origination settings are disabled, inbound calls are not enabled for - // your Amazon Chime Voice Connector. - Disabled *bool `type:"boolean"` + // The ARN of the app instance. + // + // AppInstanceArn is a required field + AppInstanceArn *string `location:"uri" locationName:"appInstanceArn" min:"5" type:"string" required:"true"` - // The call distribution properties defined for your SIP hosts. Valid range: - // Minimum value of 1. Maximum value of 20. - Routes []*OriginationRoute `type:"list"` + // The streaming configurations set for an app instance. + // + // AppInstanceStreamingConfigurations is a required field + AppInstanceStreamingConfigurations []*AppInstanceStreamingConfiguration `min:"1" type:"list" required:"true"` } // String returns the string representation -func (s Origination) String() string { +func (s PutAppInstanceStreamingConfigurationsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s Origination) GoString() string { +func (s PutAppInstanceStreamingConfigurationsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *Origination) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "Origination"} - if s.Routes != nil { - for i, v := range s.Routes { +func (s *PutAppInstanceStreamingConfigurationsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "PutAppInstanceStreamingConfigurationsInput"} + if s.AppInstanceArn == nil { + invalidParams.Add(request.NewErrParamRequired("AppInstanceArn")) + } + if s.AppInstanceArn != nil && len(*s.AppInstanceArn) < 5 { + invalidParams.Add(request.NewErrParamMinLen("AppInstanceArn", 5)) + } + if s.AppInstanceStreamingConfigurations == nil { + invalidParams.Add(request.NewErrParamRequired("AppInstanceStreamingConfigurations")) + } + if s.AppInstanceStreamingConfigurations != nil && len(s.AppInstanceStreamingConfigurations) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AppInstanceStreamingConfigurations", 1)) + } + if s.AppInstanceStreamingConfigurations != nil { + for i, v := range s.AppInstanceStreamingConfigurations { if v == nil { continue } if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Routes", i), err.(request.ErrInvalidParams)) + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "AppInstanceStreamingConfigurations", i), err.(request.ErrInvalidParams)) } } } @@ -23157,61 +33767,85 @@ func (s *Origination) Validate() error { return nil } -// SetDisabled sets the Disabled field's value. -func (s *Origination) SetDisabled(v bool) *Origination { - s.Disabled = &v +// SetAppInstanceArn sets the AppInstanceArn field's value. +func (s *PutAppInstanceStreamingConfigurationsInput) SetAppInstanceArn(v string) *PutAppInstanceStreamingConfigurationsInput { + s.AppInstanceArn = &v return s } -// SetRoutes sets the Routes field's value. -func (s *Origination) SetRoutes(v []*OriginationRoute) *Origination { - s.Routes = v +// SetAppInstanceStreamingConfigurations sets the AppInstanceStreamingConfigurations field's value. +func (s *PutAppInstanceStreamingConfigurationsInput) SetAppInstanceStreamingConfigurations(v []*AppInstanceStreamingConfiguration) *PutAppInstanceStreamingConfigurationsInput { + s.AppInstanceStreamingConfigurations = v return s } -// Origination routes define call distribution properties for your SIP hosts -// to receive inbound calls using your Amazon Chime Voice Connector. Limit: -// Ten origination routes for each Amazon Chime Voice Connector. -type OriginationRoute struct { +type PutAppInstanceStreamingConfigurationsOutput struct { _ struct{} `type:"structure"` - // The FQDN or IP address to contact for origination traffic. - Host *string `type:"string"` + // The streaming configurations of an app instance. + AppInstanceStreamingConfigurations []*AppInstanceStreamingConfiguration `min:"1" type:"list"` +} - // The designated origination route port. Defaults to 5060. - Port *int64 `type:"integer"` +// String returns the string representation +func (s PutAppInstanceStreamingConfigurationsOutput) String() string { + return awsutil.Prettify(s) +} - // The priority associated with the host, with 1 being the highest priority. - // Higher priority hosts are attempted first. - Priority *int64 `min:"1" type:"integer"` +// GoString returns the string representation +func (s PutAppInstanceStreamingConfigurationsOutput) GoString() string { + return s.String() +} - // The protocol to use for the origination route. Encryption-enabled Amazon - // Chime Voice Connectors use TCP protocol by default. - Protocol *string `type:"string" enum:"OriginationRouteProtocol"` +// SetAppInstanceStreamingConfigurations sets the AppInstanceStreamingConfigurations field's value. +func (s *PutAppInstanceStreamingConfigurationsOutput) SetAppInstanceStreamingConfigurations(v []*AppInstanceStreamingConfiguration) *PutAppInstanceStreamingConfigurationsOutput { + s.AppInstanceStreamingConfigurations = v + return s +} - // The weight associated with the host. If hosts are equal in priority, calls - // are distributed among them based on their relative weight. - Weight *int64 `min:"1" type:"integer"` +type PutEventsConfigurationInput struct { + _ struct{} `type:"structure"` + + // The Amazon Chime account ID. + // + // AccountId is a required field + AccountId *string `location:"uri" locationName:"accountId" type:"string" required:"true"` + + // The bot ID. + // + // BotId is a required field + BotId *string `location:"uri" locationName:"botId" type:"string" required:"true"` + + // Lambda function ARN that allows the bot to receive outgoing events. + LambdaFunctionArn *string `type:"string" sensitive:"true"` + + // HTTPS endpoint that allows the bot to receive outgoing events. + OutboundEventsHTTPSEndpoint *string `type:"string" sensitive:"true"` } // String returns the string representation -func (s OriginationRoute) String() string { +func (s PutEventsConfigurationInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s OriginationRoute) GoString() string { +func (s PutEventsConfigurationInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *OriginationRoute) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "OriginationRoute"} - if s.Priority != nil && *s.Priority < 1 { - invalidParams.Add(request.NewErrParamMinValue("Priority", 1)) +func (s *PutEventsConfigurationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "PutEventsConfigurationInput"} + if s.AccountId == nil { + invalidParams.Add(request.NewErrParamRequired("AccountId")) } - if s.Weight != nil && *s.Weight < 1 { - invalidParams.Add(request.NewErrParamMinValue("Weight", 1)) + if s.AccountId != nil && len(*s.AccountId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) + } + if s.BotId == nil { + invalidParams.Add(request.NewErrParamRequired("BotId")) + } + if s.BotId != nil && len(*s.BotId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("BotId", 1)) } if invalidParams.Len() > 0 { @@ -23220,429 +33854,471 @@ func (s *OriginationRoute) Validate() error { return nil } -// SetHost sets the Host field's value. -func (s *OriginationRoute) SetHost(v string) *OriginationRoute { - s.Host = &v - return s -} - -// SetPort sets the Port field's value. -func (s *OriginationRoute) SetPort(v int64) *OriginationRoute { - s.Port = &v +// SetAccountId sets the AccountId field's value. +func (s *PutEventsConfigurationInput) SetAccountId(v string) *PutEventsConfigurationInput { + s.AccountId = &v return s } -// SetPriority sets the Priority field's value. -func (s *OriginationRoute) SetPriority(v int64) *OriginationRoute { - s.Priority = &v +// SetBotId sets the BotId field's value. +func (s *PutEventsConfigurationInput) SetBotId(v string) *PutEventsConfigurationInput { + s.BotId = &v return s } -// SetProtocol sets the Protocol field's value. -func (s *OriginationRoute) SetProtocol(v string) *OriginationRoute { - s.Protocol = &v +// SetLambdaFunctionArn sets the LambdaFunctionArn field's value. +func (s *PutEventsConfigurationInput) SetLambdaFunctionArn(v string) *PutEventsConfigurationInput { + s.LambdaFunctionArn = &v return s } -// SetWeight sets the Weight field's value. -func (s *OriginationRoute) SetWeight(v int64) *OriginationRoute { - s.Weight = &v +// SetOutboundEventsHTTPSEndpoint sets the OutboundEventsHTTPSEndpoint field's value. +func (s *PutEventsConfigurationInput) SetOutboundEventsHTTPSEndpoint(v string) *PutEventsConfigurationInput { + s.OutboundEventsHTTPSEndpoint = &v return s } -// The phone number and proxy phone number for a participant in an Amazon Chime -// Voice Connector proxy session. -type Participant struct { +type PutEventsConfigurationOutput struct { _ struct{} `type:"structure"` - // The participant's phone number. - PhoneNumber *string `type:"string" sensitive:"true"` - - // The participant's proxy phone number. - ProxyPhoneNumber *string `type:"string" sensitive:"true"` + // The configuration that allows a bot to receive outgoing events. Can be either + // an HTTPS endpoint or a Lambda function ARN. + EventsConfiguration *EventsConfiguration `type:"structure"` } // String returns the string representation -func (s Participant) String() string { +func (s PutEventsConfigurationOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s Participant) GoString() string { +func (s PutEventsConfigurationOutput) GoString() string { return s.String() } -// SetPhoneNumber sets the PhoneNumber field's value. -func (s *Participant) SetPhoneNumber(v string) *Participant { - s.PhoneNumber = &v - return s -} - -// SetProxyPhoneNumber sets the ProxyPhoneNumber field's value. -func (s *Participant) SetProxyPhoneNumber(v string) *Participant { - s.ProxyPhoneNumber = &v +// SetEventsConfiguration sets the EventsConfiguration field's value. +func (s *PutEventsConfigurationOutput) SetEventsConfiguration(v *EventsConfiguration) *PutEventsConfigurationOutput { + s.EventsConfiguration = v return s } -// A phone number used for Amazon Chime Business Calling or an Amazon Chime -// Voice Connector. -type PhoneNumber struct { +type PutRetentionSettingsInput struct { _ struct{} `type:"structure"` - // The phone number associations. - Associations []*PhoneNumberAssociation `type:"list"` - - // The outbound calling name associated with the phone number. - CallingName *string `type:"string" sensitive:"true"` + // The Amazon Chime account ID. + // + // AccountId is a required field + AccountId *string `location:"uri" locationName:"accountId" type:"string" required:"true"` - // The outbound calling name status. - CallingNameStatus *string `type:"string" enum:"CallingNameStatus"` + // The retention settings. + // + // RetentionSettings is a required field + RetentionSettings *RetentionSettings `type:"structure" required:"true"` +} - // The phone number capabilities. - Capabilities *PhoneNumberCapabilities `type:"structure"` +// String returns the string representation +func (s PutRetentionSettingsInput) String() string { + return awsutil.Prettify(s) +} - // The phone number creation timestamp, in ISO 8601 format. - CreatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` +// GoString returns the string representation +func (s PutRetentionSettingsInput) GoString() string { + return s.String() +} - // The deleted phone number timestamp, in ISO 8601 format. - DeletionTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` +// Validate inspects the fields of the type to determine if they are valid. +func (s *PutRetentionSettingsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "PutRetentionSettingsInput"} + if s.AccountId == nil { + invalidParams.Add(request.NewErrParamRequired("AccountId")) + } + if s.AccountId != nil && len(*s.AccountId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) + } + if s.RetentionSettings == nil { + invalidParams.Add(request.NewErrParamRequired("RetentionSettings")) + } + if s.RetentionSettings != nil { + if err := s.RetentionSettings.Validate(); err != nil { + invalidParams.AddNested("RetentionSettings", err.(request.ErrInvalidParams)) + } + } - // The phone number, in E.164 format. - E164PhoneNumber *string `type:"string" sensitive:"true"` + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} - // The phone number ID. - PhoneNumberId *string `type:"string"` +// SetAccountId sets the AccountId field's value. +func (s *PutRetentionSettingsInput) SetAccountId(v string) *PutRetentionSettingsInput { + s.AccountId = &v + return s +} - // The phone number product type. - ProductType *string `type:"string" enum:"PhoneNumberProductType"` +// SetRetentionSettings sets the RetentionSettings field's value. +func (s *PutRetentionSettingsInput) SetRetentionSettings(v *RetentionSettings) *PutRetentionSettingsInput { + s.RetentionSettings = v + return s +} - // The phone number status. - Status *string `type:"string" enum:"PhoneNumberStatus"` +type PutRetentionSettingsOutput struct { + _ struct{} `type:"structure"` - // The phone number type. - Type *string `type:"string" enum:"PhoneNumberType"` + // The timestamp representing the time at which the specified items are permanently + // deleted, in ISO 8601 format. + InitiateDeletionTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` - // The updated phone number timestamp, in ISO 8601 format. - UpdatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` + // The retention settings. + RetentionSettings *RetentionSettings `type:"structure"` } // String returns the string representation -func (s PhoneNumber) String() string { +func (s PutRetentionSettingsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s PhoneNumber) GoString() string { +func (s PutRetentionSettingsOutput) GoString() string { return s.String() } -// SetAssociations sets the Associations field's value. -func (s *PhoneNumber) SetAssociations(v []*PhoneNumberAssociation) *PhoneNumber { - s.Associations = v - return s -} - -// SetCallingName sets the CallingName field's value. -func (s *PhoneNumber) SetCallingName(v string) *PhoneNumber { - s.CallingName = &v +// SetInitiateDeletionTimestamp sets the InitiateDeletionTimestamp field's value. +func (s *PutRetentionSettingsOutput) SetInitiateDeletionTimestamp(v time.Time) *PutRetentionSettingsOutput { + s.InitiateDeletionTimestamp = &v return s } -// SetCallingNameStatus sets the CallingNameStatus field's value. -func (s *PhoneNumber) SetCallingNameStatus(v string) *PhoneNumber { - s.CallingNameStatus = &v +// SetRetentionSettings sets the RetentionSettings field's value. +func (s *PutRetentionSettingsOutput) SetRetentionSettings(v *RetentionSettings) *PutRetentionSettingsOutput { + s.RetentionSettings = v return s } -// SetCapabilities sets the Capabilities field's value. -func (s *PhoneNumber) SetCapabilities(v *PhoneNumberCapabilities) *PhoneNumber { - s.Capabilities = v - return s -} +type PutSipMediaApplicationLoggingConfigurationInput struct { + _ struct{} `type:"structure"` -// SetCreatedTimestamp sets the CreatedTimestamp field's value. -func (s *PhoneNumber) SetCreatedTimestamp(v time.Time) *PhoneNumber { - s.CreatedTimestamp = &v - return s -} + // The ID of the specified SIP media application + // + // SipMediaApplicationId is a required field + SipMediaApplicationId *string `location:"uri" locationName:"sipMediaApplicationId" type:"string" required:"true"` -// SetDeletionTimestamp sets the DeletionTimestamp field's value. -func (s *PhoneNumber) SetDeletionTimestamp(v time.Time) *PhoneNumber { - s.DeletionTimestamp = &v - return s + // The actual logging configuration. + SipMediaApplicationLoggingConfiguration *SipMediaApplicationLoggingConfiguration `type:"structure"` } -// SetE164PhoneNumber sets the E164PhoneNumber field's value. -func (s *PhoneNumber) SetE164PhoneNumber(v string) *PhoneNumber { - s.E164PhoneNumber = &v - return s +// String returns the string representation +func (s PutSipMediaApplicationLoggingConfigurationInput) String() string { + return awsutil.Prettify(s) } -// SetPhoneNumberId sets the PhoneNumberId field's value. -func (s *PhoneNumber) SetPhoneNumberId(v string) *PhoneNumber { - s.PhoneNumberId = &v - return s +// GoString returns the string representation +func (s PutSipMediaApplicationLoggingConfigurationInput) GoString() string { + return s.String() } -// SetProductType sets the ProductType field's value. -func (s *PhoneNumber) SetProductType(v string) *PhoneNumber { - s.ProductType = &v - return s -} +// Validate inspects the fields of the type to determine if they are valid. +func (s *PutSipMediaApplicationLoggingConfigurationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "PutSipMediaApplicationLoggingConfigurationInput"} + if s.SipMediaApplicationId == nil { + invalidParams.Add(request.NewErrParamRequired("SipMediaApplicationId")) + } + if s.SipMediaApplicationId != nil && len(*s.SipMediaApplicationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("SipMediaApplicationId", 1)) + } -// SetStatus sets the Status field's value. -func (s *PhoneNumber) SetStatus(v string) *PhoneNumber { - s.Status = &v - return s + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// SetType sets the Type field's value. -func (s *PhoneNumber) SetType(v string) *PhoneNumber { - s.Type = &v +// SetSipMediaApplicationId sets the SipMediaApplicationId field's value. +func (s *PutSipMediaApplicationLoggingConfigurationInput) SetSipMediaApplicationId(v string) *PutSipMediaApplicationLoggingConfigurationInput { + s.SipMediaApplicationId = &v return s } -// SetUpdatedTimestamp sets the UpdatedTimestamp field's value. -func (s *PhoneNumber) SetUpdatedTimestamp(v time.Time) *PhoneNumber { - s.UpdatedTimestamp = &v +// SetSipMediaApplicationLoggingConfiguration sets the SipMediaApplicationLoggingConfiguration field's value. +func (s *PutSipMediaApplicationLoggingConfigurationInput) SetSipMediaApplicationLoggingConfiguration(v *SipMediaApplicationLoggingConfiguration) *PutSipMediaApplicationLoggingConfigurationInput { + s.SipMediaApplicationLoggingConfiguration = v return s } -// The phone number associations, such as Amazon Chime account ID, Amazon Chime -// user ID, Amazon Chime Voice Connector ID, or Amazon Chime Voice Connector -// group ID. -type PhoneNumberAssociation struct { +type PutSipMediaApplicationLoggingConfigurationOutput struct { _ struct{} `type:"structure"` - // The timestamp of the phone number association, in ISO 8601 format. - AssociatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` - - // Defines the association with an Amazon Chime account ID, user ID, Amazon - // Chime Voice Connector ID, or Amazon Chime Voice Connector group ID. - Name *string `type:"string" enum:"PhoneNumberAssociationName"` - - // Contains the ID for the entity specified in Name. - Value *string `type:"string"` + // The actual logging configuration. + SipMediaApplicationLoggingConfiguration *SipMediaApplicationLoggingConfiguration `type:"structure"` } // String returns the string representation -func (s PhoneNumberAssociation) String() string { +func (s PutSipMediaApplicationLoggingConfigurationOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s PhoneNumberAssociation) GoString() string { +func (s PutSipMediaApplicationLoggingConfigurationOutput) GoString() string { return s.String() } -// SetAssociatedTimestamp sets the AssociatedTimestamp field's value. -func (s *PhoneNumberAssociation) SetAssociatedTimestamp(v time.Time) *PhoneNumberAssociation { - s.AssociatedTimestamp = &v - return s -} - -// SetName sets the Name field's value. -func (s *PhoneNumberAssociation) SetName(v string) *PhoneNumberAssociation { - s.Name = &v - return s -} - -// SetValue sets the Value field's value. -func (s *PhoneNumberAssociation) SetValue(v string) *PhoneNumberAssociation { - s.Value = &v +// SetSipMediaApplicationLoggingConfiguration sets the SipMediaApplicationLoggingConfiguration field's value. +func (s *PutSipMediaApplicationLoggingConfigurationOutput) SetSipMediaApplicationLoggingConfiguration(v *SipMediaApplicationLoggingConfiguration) *PutSipMediaApplicationLoggingConfigurationOutput { + s.SipMediaApplicationLoggingConfiguration = v return s } -// The phone number capabilities for Amazon Chime Business Calling phone numbers, -// such as enabled inbound and outbound calling and text messaging. -type PhoneNumberCapabilities struct { +type PutVoiceConnectorEmergencyCallingConfigurationInput struct { _ struct{} `type:"structure"` - // Allows or denies inbound calling for the specified phone number. - InboundCall *bool `type:"boolean"` - - // Allows or denies inbound MMS messaging for the specified phone number. - InboundMMS *bool `type:"boolean"` - - // Allows or denies inbound SMS messaging for the specified phone number. - InboundSMS *bool `type:"boolean"` - - // Allows or denies outbound calling for the specified phone number. - OutboundCall *bool `type:"boolean"` - - // Allows or denies outbound MMS messaging for the specified phone number. - OutboundMMS *bool `type:"boolean"` + // The emergency calling configuration details. + // + // EmergencyCallingConfiguration is a required field + EmergencyCallingConfiguration *EmergencyCallingConfiguration `type:"structure" required:"true"` - // Allows or denies outbound SMS messaging for the specified phone number. - OutboundSMS *bool `type:"boolean"` + // The Amazon Chime Voice Connector ID. + // + // VoiceConnectorId is a required field + VoiceConnectorId *string `location:"uri" locationName:"voiceConnectorId" type:"string" required:"true"` } // String returns the string representation -func (s PhoneNumberCapabilities) String() string { +func (s PutVoiceConnectorEmergencyCallingConfigurationInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s PhoneNumberCapabilities) GoString() string { +func (s PutVoiceConnectorEmergencyCallingConfigurationInput) GoString() string { return s.String() } -// SetInboundCall sets the InboundCall field's value. -func (s *PhoneNumberCapabilities) SetInboundCall(v bool) *PhoneNumberCapabilities { - s.InboundCall = &v - return s +// Validate inspects the fields of the type to determine if they are valid. +func (s *PutVoiceConnectorEmergencyCallingConfigurationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "PutVoiceConnectorEmergencyCallingConfigurationInput"} + if s.EmergencyCallingConfiguration == nil { + invalidParams.Add(request.NewErrParamRequired("EmergencyCallingConfiguration")) + } + if s.VoiceConnectorId == nil { + invalidParams.Add(request.NewErrParamRequired("VoiceConnectorId")) + } + if s.VoiceConnectorId != nil && len(*s.VoiceConnectorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VoiceConnectorId", 1)) + } + if s.EmergencyCallingConfiguration != nil { + if err := s.EmergencyCallingConfiguration.Validate(); err != nil { + invalidParams.AddNested("EmergencyCallingConfiguration", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// SetInboundMMS sets the InboundMMS field's value. -func (s *PhoneNumberCapabilities) SetInboundMMS(v bool) *PhoneNumberCapabilities { - s.InboundMMS = &v +// SetEmergencyCallingConfiguration sets the EmergencyCallingConfiguration field's value. +func (s *PutVoiceConnectorEmergencyCallingConfigurationInput) SetEmergencyCallingConfiguration(v *EmergencyCallingConfiguration) *PutVoiceConnectorEmergencyCallingConfigurationInput { + s.EmergencyCallingConfiguration = v return s } -// SetInboundSMS sets the InboundSMS field's value. -func (s *PhoneNumberCapabilities) SetInboundSMS(v bool) *PhoneNumberCapabilities { - s.InboundSMS = &v +// SetVoiceConnectorId sets the VoiceConnectorId field's value. +func (s *PutVoiceConnectorEmergencyCallingConfigurationInput) SetVoiceConnectorId(v string) *PutVoiceConnectorEmergencyCallingConfigurationInput { + s.VoiceConnectorId = &v return s } -// SetOutboundCall sets the OutboundCall field's value. -func (s *PhoneNumberCapabilities) SetOutboundCall(v bool) *PhoneNumberCapabilities { - s.OutboundCall = &v - return s +type PutVoiceConnectorEmergencyCallingConfigurationOutput struct { + _ struct{} `type:"structure"` + + // The emergency calling configuration details. + EmergencyCallingConfiguration *EmergencyCallingConfiguration `type:"structure"` } -// SetOutboundMMS sets the OutboundMMS field's value. -func (s *PhoneNumberCapabilities) SetOutboundMMS(v bool) *PhoneNumberCapabilities { - s.OutboundMMS = &v - return s +// String returns the string representation +func (s PutVoiceConnectorEmergencyCallingConfigurationOutput) String() string { + return awsutil.Prettify(s) } -// SetOutboundSMS sets the OutboundSMS field's value. -func (s *PhoneNumberCapabilities) SetOutboundSMS(v bool) *PhoneNumberCapabilities { - s.OutboundSMS = &v - return s +// GoString returns the string representation +func (s PutVoiceConnectorEmergencyCallingConfigurationOutput) GoString() string { + return s.String() } -// If the phone number action fails for one or more of the phone numbers in -// the request, a list of the phone numbers is returned, along with error codes -// and error messages. -type PhoneNumberError struct { - _ struct{} `type:"structure"` +// SetEmergencyCallingConfiguration sets the EmergencyCallingConfiguration field's value. +func (s *PutVoiceConnectorEmergencyCallingConfigurationOutput) SetEmergencyCallingConfiguration(v *EmergencyCallingConfiguration) *PutVoiceConnectorEmergencyCallingConfigurationOutput { + s.EmergencyCallingConfiguration = v + return s +} - // The error code. - ErrorCode *string `type:"string" enum:"ErrorCode"` +type PutVoiceConnectorLoggingConfigurationInput struct { + _ struct{} `type:"structure"` - // The error message. - ErrorMessage *string `type:"string"` + // The logging configuration details to add. + // + // LoggingConfiguration is a required field + LoggingConfiguration *LoggingConfiguration `type:"structure" required:"true"` - // The phone number ID for which the action failed. - PhoneNumberId *string `type:"string"` + // The Amazon Chime Voice Connector ID. + // + // VoiceConnectorId is a required field + VoiceConnectorId *string `location:"uri" locationName:"voiceConnectorId" type:"string" required:"true"` } // String returns the string representation -func (s PhoneNumberError) String() string { +func (s PutVoiceConnectorLoggingConfigurationInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s PhoneNumberError) GoString() string { +func (s PutVoiceConnectorLoggingConfigurationInput) GoString() string { return s.String() } -// SetErrorCode sets the ErrorCode field's value. -func (s *PhoneNumberError) SetErrorCode(v string) *PhoneNumberError { - s.ErrorCode = &v - return s +// Validate inspects the fields of the type to determine if they are valid. +func (s *PutVoiceConnectorLoggingConfigurationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "PutVoiceConnectorLoggingConfigurationInput"} + if s.LoggingConfiguration == nil { + invalidParams.Add(request.NewErrParamRequired("LoggingConfiguration")) + } + if s.VoiceConnectorId == nil { + invalidParams.Add(request.NewErrParamRequired("VoiceConnectorId")) + } + if s.VoiceConnectorId != nil && len(*s.VoiceConnectorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VoiceConnectorId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// SetErrorMessage sets the ErrorMessage field's value. -func (s *PhoneNumberError) SetErrorMessage(v string) *PhoneNumberError { - s.ErrorMessage = &v +// SetLoggingConfiguration sets the LoggingConfiguration field's value. +func (s *PutVoiceConnectorLoggingConfigurationInput) SetLoggingConfiguration(v *LoggingConfiguration) *PutVoiceConnectorLoggingConfigurationInput { + s.LoggingConfiguration = v return s } -// SetPhoneNumberId sets the PhoneNumberId field's value. -func (s *PhoneNumberError) SetPhoneNumberId(v string) *PhoneNumberError { - s.PhoneNumberId = &v +// SetVoiceConnectorId sets the VoiceConnectorId field's value. +func (s *PutVoiceConnectorLoggingConfigurationInput) SetVoiceConnectorId(v string) *PutVoiceConnectorLoggingConfigurationInput { + s.VoiceConnectorId = &v return s } -// The details of a phone number order created for Amazon Chime. -type PhoneNumberOrder struct { +type PutVoiceConnectorLoggingConfigurationOutput struct { _ struct{} `type:"structure"` - // The phone number order creation timestamp, in ISO 8601 format. - CreatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` + // The updated logging configuration details. + LoggingConfiguration *LoggingConfiguration `type:"structure"` +} - // The ordered phone number details, such as the phone number in E.164 format - // and the phone number status. - OrderedPhoneNumbers []*OrderedPhoneNumber `type:"list"` +// String returns the string representation +func (s PutVoiceConnectorLoggingConfigurationOutput) String() string { + return awsutil.Prettify(s) +} - // The phone number order ID. - PhoneNumberOrderId *string `type:"string"` +// GoString returns the string representation +func (s PutVoiceConnectorLoggingConfigurationOutput) GoString() string { + return s.String() +} - // The phone number order product type. - ProductType *string `type:"string" enum:"PhoneNumberProductType"` +// SetLoggingConfiguration sets the LoggingConfiguration field's value. +func (s *PutVoiceConnectorLoggingConfigurationOutput) SetLoggingConfiguration(v *LoggingConfiguration) *PutVoiceConnectorLoggingConfigurationOutput { + s.LoggingConfiguration = v + return s +} - // The status of the phone number order. - Status *string `type:"string" enum:"PhoneNumberOrderStatus"` +type PutVoiceConnectorOriginationInput struct { + _ struct{} `type:"structure"` - // The updated phone number order timestamp, in ISO 8601 format. - UpdatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` + // The origination setting details to add. + // + // Origination is a required field + Origination *Origination `type:"structure" required:"true"` + + // The Amazon Chime Voice Connector ID. + // + // VoiceConnectorId is a required field + VoiceConnectorId *string `location:"uri" locationName:"voiceConnectorId" type:"string" required:"true"` } // String returns the string representation -func (s PhoneNumberOrder) String() string { +func (s PutVoiceConnectorOriginationInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s PhoneNumberOrder) GoString() string { +func (s PutVoiceConnectorOriginationInput) GoString() string { return s.String() } -// SetCreatedTimestamp sets the CreatedTimestamp field's value. -func (s *PhoneNumberOrder) SetCreatedTimestamp(v time.Time) *PhoneNumberOrder { - s.CreatedTimestamp = &v - return s +// Validate inspects the fields of the type to determine if they are valid. +func (s *PutVoiceConnectorOriginationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "PutVoiceConnectorOriginationInput"} + if s.Origination == nil { + invalidParams.Add(request.NewErrParamRequired("Origination")) + } + if s.VoiceConnectorId == nil { + invalidParams.Add(request.NewErrParamRequired("VoiceConnectorId")) + } + if s.VoiceConnectorId != nil && len(*s.VoiceConnectorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VoiceConnectorId", 1)) + } + if s.Origination != nil { + if err := s.Origination.Validate(); err != nil { + invalidParams.AddNested("Origination", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// SetOrderedPhoneNumbers sets the OrderedPhoneNumbers field's value. -func (s *PhoneNumberOrder) SetOrderedPhoneNumbers(v []*OrderedPhoneNumber) *PhoneNumberOrder { - s.OrderedPhoneNumbers = v +// SetOrigination sets the Origination field's value. +func (s *PutVoiceConnectorOriginationInput) SetOrigination(v *Origination) *PutVoiceConnectorOriginationInput { + s.Origination = v return s } -// SetPhoneNumberOrderId sets the PhoneNumberOrderId field's value. -func (s *PhoneNumberOrder) SetPhoneNumberOrderId(v string) *PhoneNumberOrder { - s.PhoneNumberOrderId = &v +// SetVoiceConnectorId sets the VoiceConnectorId field's value. +func (s *PutVoiceConnectorOriginationInput) SetVoiceConnectorId(v string) *PutVoiceConnectorOriginationInput { + s.VoiceConnectorId = &v return s } -// SetProductType sets the ProductType field's value. -func (s *PhoneNumberOrder) SetProductType(v string) *PhoneNumberOrder { - s.ProductType = &v - return s +type PutVoiceConnectorOriginationOutput struct { + _ struct{} `type:"structure"` + + // The updated origination setting details. + Origination *Origination `type:"structure"` } -// SetStatus sets the Status field's value. -func (s *PhoneNumberOrder) SetStatus(v string) *PhoneNumberOrder { - s.Status = &v - return s +// String returns the string representation +func (s PutVoiceConnectorOriginationOutput) String() string { + return awsutil.Prettify(s) } -// SetUpdatedTimestamp sets the UpdatedTimestamp field's value. -func (s *PhoneNumberOrder) SetUpdatedTimestamp(v time.Time) *PhoneNumberOrder { - s.UpdatedTimestamp = &v +// GoString returns the string representation +func (s PutVoiceConnectorOriginationOutput) GoString() string { + return s.String() +} + +// SetOrigination sets the Origination field's value. +func (s *PutVoiceConnectorOriginationOutput) SetOrigination(v *Origination) *PutVoiceConnectorOriginationOutput { + s.Origination = v return s } -// The proxy configuration for an Amazon Chime Voice Connector. -type Proxy struct { +type PutVoiceConnectorProxyInput struct { _ struct{} `type:"structure"` // The default number of minutes allowed for proxy sessions. - DefaultSessionExpiryMinutes *int64 `type:"integer"` + // + // DefaultSessionExpiryMinutes is a required field + DefaultSessionExpiryMinutes *int64 `type:"integer" required:"true"` // When true, stops proxy sessions from being created on the specified Amazon // Chime Voice Connector. @@ -23652,221 +34328,217 @@ type Proxy struct { FallBackPhoneNumber *string `type:"string" sensitive:"true"` // The countries for proxy phone numbers to be selected from. - PhoneNumberCountries []*string `type:"list"` + // + // PhoneNumberPoolCountries is a required field + PhoneNumberPoolCountries []*string `min:"1" type:"list" required:"true"` + + // The Amazon Chime voice connector ID. + // + // VoiceConnectorId is a required field + VoiceConnectorId *string `location:"uri" locationName:"voiceConnectorId" min:"1" type:"string" required:"true"` } // String returns the string representation -func (s Proxy) String() string { +func (s PutVoiceConnectorProxyInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s Proxy) GoString() string { +func (s PutVoiceConnectorProxyInput) GoString() string { return s.String() } -// SetDefaultSessionExpiryMinutes sets the DefaultSessionExpiryMinutes field's value. -func (s *Proxy) SetDefaultSessionExpiryMinutes(v int64) *Proxy { - s.DefaultSessionExpiryMinutes = &v - return s -} - -// SetDisabled sets the Disabled field's value. -func (s *Proxy) SetDisabled(v bool) *Proxy { - s.Disabled = &v - return s -} +// Validate inspects the fields of the type to determine if they are valid. +func (s *PutVoiceConnectorProxyInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "PutVoiceConnectorProxyInput"} + if s.DefaultSessionExpiryMinutes == nil { + invalidParams.Add(request.NewErrParamRequired("DefaultSessionExpiryMinutes")) + } + if s.PhoneNumberPoolCountries == nil { + invalidParams.Add(request.NewErrParamRequired("PhoneNumberPoolCountries")) + } + if s.PhoneNumberPoolCountries != nil && len(s.PhoneNumberPoolCountries) < 1 { + invalidParams.Add(request.NewErrParamMinLen("PhoneNumberPoolCountries", 1)) + } + if s.VoiceConnectorId == nil { + invalidParams.Add(request.NewErrParamRequired("VoiceConnectorId")) + } + if s.VoiceConnectorId != nil && len(*s.VoiceConnectorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VoiceConnectorId", 1)) + } -// SetFallBackPhoneNumber sets the FallBackPhoneNumber field's value. -func (s *Proxy) SetFallBackPhoneNumber(v string) *Proxy { - s.FallBackPhoneNumber = &v - return s + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// SetPhoneNumberCountries sets the PhoneNumberCountries field's value. -func (s *Proxy) SetPhoneNumberCountries(v []*string) *Proxy { - s.PhoneNumberCountries = v +// SetDefaultSessionExpiryMinutes sets the DefaultSessionExpiryMinutes field's value. +func (s *PutVoiceConnectorProxyInput) SetDefaultSessionExpiryMinutes(v int64) *PutVoiceConnectorProxyInput { + s.DefaultSessionExpiryMinutes = &v return s -} - -// The proxy session for an Amazon Chime Voice Connector. -type ProxySession struct { - _ struct{} `type:"structure"` - - // The proxy session capabilities. - Capabilities []*string `type:"list"` - - // The created timestamp, in ISO 8601 format. - CreatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` - - // The ended timestamp, in ISO 8601 format. - EndedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` - - // The number of minutes allowed for the proxy session. - ExpiryMinutes *int64 `min:"1" type:"integer"` - - // The preference for matching the country or area code of the proxy phone number - // with that of the first participant. - GeoMatchLevel *string `type:"string" enum:"GeoMatchLevel"` - - // The country and area code for the proxy phone number. - GeoMatchParams *GeoMatchParams `type:"structure"` - - // The name of the proxy session. - Name *string `type:"string"` - - // The preference for proxy phone number reuse, or stickiness, between the same - // participants across sessions. - NumberSelectionBehavior *string `type:"string" enum:"NumberSelectionBehavior"` +} - // The proxy session participants. - Participants []*Participant `type:"list"` +// SetDisabled sets the Disabled field's value. +func (s *PutVoiceConnectorProxyInput) SetDisabled(v bool) *PutVoiceConnectorProxyInput { + s.Disabled = &v + return s +} - // The proxy session ID. - ProxySessionId *string `min:"1" type:"string"` +// SetFallBackPhoneNumber sets the FallBackPhoneNumber field's value. +func (s *PutVoiceConnectorProxyInput) SetFallBackPhoneNumber(v string) *PutVoiceConnectorProxyInput { + s.FallBackPhoneNumber = &v + return s +} - // The status of the proxy session. - Status *string `type:"string" enum:"ProxySessionStatus"` +// SetPhoneNumberPoolCountries sets the PhoneNumberPoolCountries field's value. +func (s *PutVoiceConnectorProxyInput) SetPhoneNumberPoolCountries(v []*string) *PutVoiceConnectorProxyInput { + s.PhoneNumberPoolCountries = v + return s +} - // The updated timestamp, in ISO 8601 format. - UpdatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` +// SetVoiceConnectorId sets the VoiceConnectorId field's value. +func (s *PutVoiceConnectorProxyInput) SetVoiceConnectorId(v string) *PutVoiceConnectorProxyInput { + s.VoiceConnectorId = &v + return s +} - // The Amazon Chime voice connector ID. - VoiceConnectorId *string `min:"1" type:"string"` +type PutVoiceConnectorProxyOutput struct { + _ struct{} `type:"structure"` + + // The proxy configuration details. + Proxy *Proxy `type:"structure"` } // String returns the string representation -func (s ProxySession) String() string { +func (s PutVoiceConnectorProxyOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ProxySession) GoString() string { +func (s PutVoiceConnectorProxyOutput) GoString() string { return s.String() } -// SetCapabilities sets the Capabilities field's value. -func (s *ProxySession) SetCapabilities(v []*string) *ProxySession { - s.Capabilities = v +// SetProxy sets the Proxy field's value. +func (s *PutVoiceConnectorProxyOutput) SetProxy(v *Proxy) *PutVoiceConnectorProxyOutput { + s.Proxy = v return s } -// SetCreatedTimestamp sets the CreatedTimestamp field's value. -func (s *ProxySession) SetCreatedTimestamp(v time.Time) *ProxySession { - s.CreatedTimestamp = &v - return s -} +type PutVoiceConnectorStreamingConfigurationInput struct { + _ struct{} `type:"structure"` -// SetEndedTimestamp sets the EndedTimestamp field's value. -func (s *ProxySession) SetEndedTimestamp(v time.Time) *ProxySession { - s.EndedTimestamp = &v - return s -} + // The streaming configuration details to add. + // + // StreamingConfiguration is a required field + StreamingConfiguration *StreamingConfiguration `type:"structure" required:"true"` -// SetExpiryMinutes sets the ExpiryMinutes field's value. -func (s *ProxySession) SetExpiryMinutes(v int64) *ProxySession { - s.ExpiryMinutes = &v - return s + // The Amazon Chime Voice Connector ID. + // + // VoiceConnectorId is a required field + VoiceConnectorId *string `location:"uri" locationName:"voiceConnectorId" type:"string" required:"true"` } -// SetGeoMatchLevel sets the GeoMatchLevel field's value. -func (s *ProxySession) SetGeoMatchLevel(v string) *ProxySession { - s.GeoMatchLevel = &v - return s +// String returns the string representation +func (s PutVoiceConnectorStreamingConfigurationInput) String() string { + return awsutil.Prettify(s) } -// SetGeoMatchParams sets the GeoMatchParams field's value. -func (s *ProxySession) SetGeoMatchParams(v *GeoMatchParams) *ProxySession { - s.GeoMatchParams = v - return s +// GoString returns the string representation +func (s PutVoiceConnectorStreamingConfigurationInput) GoString() string { + return s.String() } -// SetName sets the Name field's value. -func (s *ProxySession) SetName(v string) *ProxySession { - s.Name = &v - return s +// Validate inspects the fields of the type to determine if they are valid. +func (s *PutVoiceConnectorStreamingConfigurationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "PutVoiceConnectorStreamingConfigurationInput"} + if s.StreamingConfiguration == nil { + invalidParams.Add(request.NewErrParamRequired("StreamingConfiguration")) + } + if s.VoiceConnectorId == nil { + invalidParams.Add(request.NewErrParamRequired("VoiceConnectorId")) + } + if s.VoiceConnectorId != nil && len(*s.VoiceConnectorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VoiceConnectorId", 1)) + } + if s.StreamingConfiguration != nil { + if err := s.StreamingConfiguration.Validate(); err != nil { + invalidParams.AddNested("StreamingConfiguration", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// SetNumberSelectionBehavior sets the NumberSelectionBehavior field's value. -func (s *ProxySession) SetNumberSelectionBehavior(v string) *ProxySession { - s.NumberSelectionBehavior = &v +// SetStreamingConfiguration sets the StreamingConfiguration field's value. +func (s *PutVoiceConnectorStreamingConfigurationInput) SetStreamingConfiguration(v *StreamingConfiguration) *PutVoiceConnectorStreamingConfigurationInput { + s.StreamingConfiguration = v return s } -// SetParticipants sets the Participants field's value. -func (s *ProxySession) SetParticipants(v []*Participant) *ProxySession { - s.Participants = v +// SetVoiceConnectorId sets the VoiceConnectorId field's value. +func (s *PutVoiceConnectorStreamingConfigurationInput) SetVoiceConnectorId(v string) *PutVoiceConnectorStreamingConfigurationInput { + s.VoiceConnectorId = &v return s } -// SetProxySessionId sets the ProxySessionId field's value. -func (s *ProxySession) SetProxySessionId(v string) *ProxySession { - s.ProxySessionId = &v - return s +type PutVoiceConnectorStreamingConfigurationOutput struct { + _ struct{} `type:"structure"` + + // The updated streaming configuration details. + StreamingConfiguration *StreamingConfiguration `type:"structure"` } -// SetStatus sets the Status field's value. -func (s *ProxySession) SetStatus(v string) *ProxySession { - s.Status = &v - return s +// String returns the string representation +func (s PutVoiceConnectorStreamingConfigurationOutput) String() string { + return awsutil.Prettify(s) } -// SetUpdatedTimestamp sets the UpdatedTimestamp field's value. -func (s *ProxySession) SetUpdatedTimestamp(v time.Time) *ProxySession { - s.UpdatedTimestamp = &v - return s +// GoString returns the string representation +func (s PutVoiceConnectorStreamingConfigurationOutput) GoString() string { + return s.String() } -// SetVoiceConnectorId sets the VoiceConnectorId field's value. -func (s *ProxySession) SetVoiceConnectorId(v string) *ProxySession { - s.VoiceConnectorId = &v +// SetStreamingConfiguration sets the StreamingConfiguration field's value. +func (s *PutVoiceConnectorStreamingConfigurationOutput) SetStreamingConfiguration(v *StreamingConfiguration) *PutVoiceConnectorStreamingConfigurationOutput { + s.StreamingConfiguration = v return s } -type PutEventsConfigurationInput struct { +type PutVoiceConnectorTerminationCredentialsInput struct { _ struct{} `type:"structure"` - // The Amazon Chime account ID. - // - // AccountId is a required field - AccountId *string `location:"uri" locationName:"accountId" type:"string" required:"true"` + // The termination SIP credentials. + Credentials []*Credential `type:"list"` - // The bot ID. + // The Amazon Chime Voice Connector ID. // - // BotId is a required field - BotId *string `location:"uri" locationName:"botId" type:"string" required:"true"` - - // Lambda function ARN that allows the bot to receive outgoing events. - LambdaFunctionArn *string `type:"string" sensitive:"true"` - - // HTTPS endpoint that allows the bot to receive outgoing events. - OutboundEventsHTTPSEndpoint *string `type:"string" sensitive:"true"` + // VoiceConnectorId is a required field + VoiceConnectorId *string `location:"uri" locationName:"voiceConnectorId" type:"string" required:"true"` } // String returns the string representation -func (s PutEventsConfigurationInput) String() string { +func (s PutVoiceConnectorTerminationCredentialsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s PutEventsConfigurationInput) GoString() string { +func (s PutVoiceConnectorTerminationCredentialsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *PutEventsConfigurationInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "PutEventsConfigurationInput"} - if s.AccountId == nil { - invalidParams.Add(request.NewErrParamRequired("AccountId")) - } - if s.AccountId != nil && len(*s.AccountId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) - } - if s.BotId == nil { - invalidParams.Add(request.NewErrParamRequired("BotId")) +func (s *PutVoiceConnectorTerminationCredentialsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "PutVoiceConnectorTerminationCredentialsInput"} + if s.VoiceConnectorId == nil { + invalidParams.Add(request.NewErrParamRequired("VoiceConnectorId")) } - if s.BotId != nil && len(*s.BotId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("BotId", 1)) + if s.VoiceConnectorId != nil && len(*s.VoiceConnectorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VoiceConnectorId", 1)) } if invalidParams.Len() > 0 { @@ -23875,93 +34547,71 @@ func (s *PutEventsConfigurationInput) Validate() error { return nil } -// SetAccountId sets the AccountId field's value. -func (s *PutEventsConfigurationInput) SetAccountId(v string) *PutEventsConfigurationInput { - s.AccountId = &v - return s -} - -// SetBotId sets the BotId field's value. -func (s *PutEventsConfigurationInput) SetBotId(v string) *PutEventsConfigurationInput { - s.BotId = &v - return s -} - -// SetLambdaFunctionArn sets the LambdaFunctionArn field's value. -func (s *PutEventsConfigurationInput) SetLambdaFunctionArn(v string) *PutEventsConfigurationInput { - s.LambdaFunctionArn = &v +// SetCredentials sets the Credentials field's value. +func (s *PutVoiceConnectorTerminationCredentialsInput) SetCredentials(v []*Credential) *PutVoiceConnectorTerminationCredentialsInput { + s.Credentials = v return s } -// SetOutboundEventsHTTPSEndpoint sets the OutboundEventsHTTPSEndpoint field's value. -func (s *PutEventsConfigurationInput) SetOutboundEventsHTTPSEndpoint(v string) *PutEventsConfigurationInput { - s.OutboundEventsHTTPSEndpoint = &v +// SetVoiceConnectorId sets the VoiceConnectorId field's value. +func (s *PutVoiceConnectorTerminationCredentialsInput) SetVoiceConnectorId(v string) *PutVoiceConnectorTerminationCredentialsInput { + s.VoiceConnectorId = &v return s } -type PutEventsConfigurationOutput struct { +type PutVoiceConnectorTerminationCredentialsOutput struct { _ struct{} `type:"structure"` - - // The configuration that allows a bot to receive outgoing events. Can be either - // an HTTPS endpoint or a Lambda function ARN. - EventsConfiguration *EventsConfiguration `type:"structure"` } // String returns the string representation -func (s PutEventsConfigurationOutput) String() string { +func (s PutVoiceConnectorTerminationCredentialsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s PutEventsConfigurationOutput) GoString() string { +func (s PutVoiceConnectorTerminationCredentialsOutput) GoString() string { return s.String() } -// SetEventsConfiguration sets the EventsConfiguration field's value. -func (s *PutEventsConfigurationOutput) SetEventsConfiguration(v *EventsConfiguration) *PutEventsConfigurationOutput { - s.EventsConfiguration = v - return s -} - -type PutRetentionSettingsInput struct { +type PutVoiceConnectorTerminationInput struct { _ struct{} `type:"structure"` - // The Amazon Chime account ID. + // The termination setting details to add. // - // AccountId is a required field - AccountId *string `location:"uri" locationName:"accountId" type:"string" required:"true"` + // Termination is a required field + Termination *Termination `type:"structure" required:"true"` - // The retention settings. + // The Amazon Chime Voice Connector ID. // - // RetentionSettings is a required field - RetentionSettings *RetentionSettings `type:"structure" required:"true"` + // VoiceConnectorId is a required field + VoiceConnectorId *string `location:"uri" locationName:"voiceConnectorId" type:"string" required:"true"` } // String returns the string representation -func (s PutRetentionSettingsInput) String() string { +func (s PutVoiceConnectorTerminationInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s PutRetentionSettingsInput) GoString() string { +func (s PutVoiceConnectorTerminationInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *PutRetentionSettingsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "PutRetentionSettingsInput"} - if s.AccountId == nil { - invalidParams.Add(request.NewErrParamRequired("AccountId")) +// Validate inspects the fields of the type to determine if they are valid. +func (s *PutVoiceConnectorTerminationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "PutVoiceConnectorTerminationInput"} + if s.Termination == nil { + invalidParams.Add(request.NewErrParamRequired("Termination")) } - if s.AccountId != nil && len(*s.AccountId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) + if s.VoiceConnectorId == nil { + invalidParams.Add(request.NewErrParamRequired("VoiceConnectorId")) } - if s.RetentionSettings == nil { - invalidParams.Add(request.NewErrParamRequired("RetentionSettings")) + if s.VoiceConnectorId != nil && len(*s.VoiceConnectorId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("VoiceConnectorId", 1)) } - if s.RetentionSettings != nil { - if err := s.RetentionSettings.Validate(); err != nil { - invalidParams.AddNested("RetentionSettings", err.(request.ErrInvalidParams)) + if s.Termination != nil { + if err := s.Termination.Validate(); err != nil { + invalidParams.AddNested("Termination", err.(request.ErrInvalidParams)) } } @@ -23971,81 +34621,79 @@ func (s *PutRetentionSettingsInput) Validate() error { return nil } -// SetAccountId sets the AccountId field's value. -func (s *PutRetentionSettingsInput) SetAccountId(v string) *PutRetentionSettingsInput { - s.AccountId = &v +// SetTermination sets the Termination field's value. +func (s *PutVoiceConnectorTerminationInput) SetTermination(v *Termination) *PutVoiceConnectorTerminationInput { + s.Termination = v return s } -// SetRetentionSettings sets the RetentionSettings field's value. -func (s *PutRetentionSettingsInput) SetRetentionSettings(v *RetentionSettings) *PutRetentionSettingsInput { - s.RetentionSettings = v +// SetVoiceConnectorId sets the VoiceConnectorId field's value. +func (s *PutVoiceConnectorTerminationInput) SetVoiceConnectorId(v string) *PutVoiceConnectorTerminationInput { + s.VoiceConnectorId = &v return s } -type PutRetentionSettingsOutput struct { +type PutVoiceConnectorTerminationOutput struct { _ struct{} `type:"structure"` - // The timestamp representing the time at which the specified items are permanently - // deleted, in ISO 8601 format. - InitiateDeletionTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` - - // The retention settings. - RetentionSettings *RetentionSettings `type:"structure"` + // The updated termination setting details. + Termination *Termination `type:"structure"` } // String returns the string representation -func (s PutRetentionSettingsOutput) String() string { +func (s PutVoiceConnectorTerminationOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s PutRetentionSettingsOutput) GoString() string { +func (s PutVoiceConnectorTerminationOutput) GoString() string { return s.String() } -// SetInitiateDeletionTimestamp sets the InitiateDeletionTimestamp field's value. -func (s *PutRetentionSettingsOutput) SetInitiateDeletionTimestamp(v time.Time) *PutRetentionSettingsOutput { - s.InitiateDeletionTimestamp = &v - return s -} - -// SetRetentionSettings sets the RetentionSettings field's value. -func (s *PutRetentionSettingsOutput) SetRetentionSettings(v *RetentionSettings) *PutRetentionSettingsOutput { - s.RetentionSettings = v +// SetTermination sets the Termination field's value. +func (s *PutVoiceConnectorTerminationOutput) SetTermination(v *Termination) *PutVoiceConnectorTerminationOutput { + s.Termination = v return s } -type PutSipMediaApplicationLoggingConfigurationInput struct { +type RedactChannelMessageInput struct { _ struct{} `type:"structure"` - // The ID of the specified SIP media application + // The ARN of the channel containing the messages that you want to redact. // - // SipMediaApplicationId is a required field - SipMediaApplicationId *string `location:"uri" locationName:"sipMediaApplicationId" type:"string" required:"true"` + // ChannelArn is a required field + ChannelArn *string `location:"uri" locationName:"channelArn" min:"5" type:"string" required:"true"` - // The actual logging configuration. - SipMediaApplicationLoggingConfiguration *SipMediaApplicationLoggingConfiguration `type:"structure"` + // The ID of the message being redacted. + // + // MessageId is a required field + MessageId *string `location:"uri" locationName:"messageId" min:"1" type:"string" required:"true"` } // String returns the string representation -func (s PutSipMediaApplicationLoggingConfigurationInput) String() string { +func (s RedactChannelMessageInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s PutSipMediaApplicationLoggingConfigurationInput) GoString() string { +func (s RedactChannelMessageInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *PutSipMediaApplicationLoggingConfigurationInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "PutSipMediaApplicationLoggingConfigurationInput"} - if s.SipMediaApplicationId == nil { - invalidParams.Add(request.NewErrParamRequired("SipMediaApplicationId")) +func (s *RedactChannelMessageInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "RedactChannelMessageInput"} + if s.ChannelArn == nil { + invalidParams.Add(request.NewErrParamRequired("ChannelArn")) } - if s.SipMediaApplicationId != nil && len(*s.SipMediaApplicationId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("SipMediaApplicationId", 1)) + if s.ChannelArn != nil && len(*s.ChannelArn) < 5 { + invalidParams.Add(request.NewErrParamMinLen("ChannelArn", 5)) + } + if s.MessageId == nil { + invalidParams.Add(request.NewErrParamRequired("MessageId")) + } + if s.MessageId != nil && len(*s.MessageId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("MessageId", 1)) } if invalidParams.Len() > 0 { @@ -24054,81 +34702,99 @@ func (s *PutSipMediaApplicationLoggingConfigurationInput) Validate() error { return nil } -// SetSipMediaApplicationId sets the SipMediaApplicationId field's value. -func (s *PutSipMediaApplicationLoggingConfigurationInput) SetSipMediaApplicationId(v string) *PutSipMediaApplicationLoggingConfigurationInput { - s.SipMediaApplicationId = &v +// SetChannelArn sets the ChannelArn field's value. +func (s *RedactChannelMessageInput) SetChannelArn(v string) *RedactChannelMessageInput { + s.ChannelArn = &v return s } -// SetSipMediaApplicationLoggingConfiguration sets the SipMediaApplicationLoggingConfiguration field's value. -func (s *PutSipMediaApplicationLoggingConfigurationInput) SetSipMediaApplicationLoggingConfiguration(v *SipMediaApplicationLoggingConfiguration) *PutSipMediaApplicationLoggingConfigurationInput { - s.SipMediaApplicationLoggingConfiguration = v +// SetMessageId sets the MessageId field's value. +func (s *RedactChannelMessageInput) SetMessageId(v string) *RedactChannelMessageInput { + s.MessageId = &v return s } -type PutSipMediaApplicationLoggingConfigurationOutput struct { +type RedactChannelMessageOutput struct { _ struct{} `type:"structure"` - // The actual logging configuration. - SipMediaApplicationLoggingConfiguration *SipMediaApplicationLoggingConfiguration `type:"structure"` + // The ARN of the channel containing the messages that you want to redact. + ChannelArn *string `min:"5" type:"string"` + + // The ID of the message being redacted. + MessageId *string `min:"1" type:"string"` } // String returns the string representation -func (s PutSipMediaApplicationLoggingConfigurationOutput) String() string { +func (s RedactChannelMessageOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s PutSipMediaApplicationLoggingConfigurationOutput) GoString() string { +func (s RedactChannelMessageOutput) GoString() string { return s.String() } -// SetSipMediaApplicationLoggingConfiguration sets the SipMediaApplicationLoggingConfiguration field's value. -func (s *PutSipMediaApplicationLoggingConfigurationOutput) SetSipMediaApplicationLoggingConfiguration(v *SipMediaApplicationLoggingConfiguration) *PutSipMediaApplicationLoggingConfigurationOutput { - s.SipMediaApplicationLoggingConfiguration = v +// SetChannelArn sets the ChannelArn field's value. +func (s *RedactChannelMessageOutput) SetChannelArn(v string) *RedactChannelMessageOutput { + s.ChannelArn = &v return s } -type PutVoiceConnectorEmergencyCallingConfigurationInput struct { +// SetMessageId sets the MessageId field's value. +func (s *RedactChannelMessageOutput) SetMessageId(v string) *RedactChannelMessageOutput { + s.MessageId = &v + return s +} + +type RedactConversationMessageInput struct { _ struct{} `type:"structure"` - // The emergency calling configuration details. + // The Amazon Chime account ID. // - // EmergencyCallingConfiguration is a required field - EmergencyCallingConfiguration *EmergencyCallingConfiguration `type:"structure" required:"true"` + // AccountId is a required field + AccountId *string `location:"uri" locationName:"accountId" type:"string" required:"true"` - // The Amazon Chime Voice Connector ID. + // The conversation ID. // - // VoiceConnectorId is a required field - VoiceConnectorId *string `location:"uri" locationName:"voiceConnectorId" type:"string" required:"true"` + // ConversationId is a required field + ConversationId *string `location:"uri" locationName:"conversationId" type:"string" required:"true"` + + // The message ID. + // + // MessageId is a required field + MessageId *string `location:"uri" locationName:"messageId" type:"string" required:"true"` } // String returns the string representation -func (s PutVoiceConnectorEmergencyCallingConfigurationInput) String() string { +func (s RedactConversationMessageInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s PutVoiceConnectorEmergencyCallingConfigurationInput) GoString() string { +func (s RedactConversationMessageInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *PutVoiceConnectorEmergencyCallingConfigurationInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "PutVoiceConnectorEmergencyCallingConfigurationInput"} - if s.EmergencyCallingConfiguration == nil { - invalidParams.Add(request.NewErrParamRequired("EmergencyCallingConfiguration")) +func (s *RedactConversationMessageInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "RedactConversationMessageInput"} + if s.AccountId == nil { + invalidParams.Add(request.NewErrParamRequired("AccountId")) } - if s.VoiceConnectorId == nil { - invalidParams.Add(request.NewErrParamRequired("VoiceConnectorId")) + if s.AccountId != nil && len(*s.AccountId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) } - if s.VoiceConnectorId != nil && len(*s.VoiceConnectorId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("VoiceConnectorId", 1)) + if s.ConversationId == nil { + invalidParams.Add(request.NewErrParamRequired("ConversationId")) } - if s.EmergencyCallingConfiguration != nil { - if err := s.EmergencyCallingConfiguration.Validate(); err != nil { - invalidParams.AddNested("EmergencyCallingConfiguration", err.(request.ErrInvalidParams)) - } + if s.ConversationId != nil && len(*s.ConversationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ConversationId", 1)) + } + if s.MessageId == nil { + invalidParams.Add(request.NewErrParamRequired("MessageId")) + } + if s.MessageId != nil && len(*s.MessageId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("MessageId", 1)) } if invalidParams.Len() > 0 { @@ -24137,76 +34803,87 @@ func (s *PutVoiceConnectorEmergencyCallingConfigurationInput) Validate() error { return nil } -// SetEmergencyCallingConfiguration sets the EmergencyCallingConfiguration field's value. -func (s *PutVoiceConnectorEmergencyCallingConfigurationInput) SetEmergencyCallingConfiguration(v *EmergencyCallingConfiguration) *PutVoiceConnectorEmergencyCallingConfigurationInput { - s.EmergencyCallingConfiguration = v +// SetAccountId sets the AccountId field's value. +func (s *RedactConversationMessageInput) SetAccountId(v string) *RedactConversationMessageInput { + s.AccountId = &v return s } -// SetVoiceConnectorId sets the VoiceConnectorId field's value. -func (s *PutVoiceConnectorEmergencyCallingConfigurationInput) SetVoiceConnectorId(v string) *PutVoiceConnectorEmergencyCallingConfigurationInput { - s.VoiceConnectorId = &v +// SetConversationId sets the ConversationId field's value. +func (s *RedactConversationMessageInput) SetConversationId(v string) *RedactConversationMessageInput { + s.ConversationId = &v return s } -type PutVoiceConnectorEmergencyCallingConfigurationOutput struct { - _ struct{} `type:"structure"` +// SetMessageId sets the MessageId field's value. +func (s *RedactConversationMessageInput) SetMessageId(v string) *RedactConversationMessageInput { + s.MessageId = &v + return s +} - // The emergency calling configuration details. - EmergencyCallingConfiguration *EmergencyCallingConfiguration `type:"structure"` +type RedactConversationMessageOutput struct { + _ struct{} `type:"structure"` } // String returns the string representation -func (s PutVoiceConnectorEmergencyCallingConfigurationOutput) String() string { +func (s RedactConversationMessageOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s PutVoiceConnectorEmergencyCallingConfigurationOutput) GoString() string { +func (s RedactConversationMessageOutput) GoString() string { return s.String() } -// SetEmergencyCallingConfiguration sets the EmergencyCallingConfiguration field's value. -func (s *PutVoiceConnectorEmergencyCallingConfigurationOutput) SetEmergencyCallingConfiguration(v *EmergencyCallingConfiguration) *PutVoiceConnectorEmergencyCallingConfigurationOutput { - s.EmergencyCallingConfiguration = v - return s -} - -type PutVoiceConnectorLoggingConfigurationInput struct { +type RedactRoomMessageInput struct { _ struct{} `type:"structure"` - // The logging configuration details to add. + // The Amazon Chime account ID. // - // LoggingConfiguration is a required field - LoggingConfiguration *LoggingConfiguration `type:"structure" required:"true"` + // AccountId is a required field + AccountId *string `location:"uri" locationName:"accountId" type:"string" required:"true"` - // The Amazon Chime Voice Connector ID. + // The message ID. // - // VoiceConnectorId is a required field - VoiceConnectorId *string `location:"uri" locationName:"voiceConnectorId" type:"string" required:"true"` + // MessageId is a required field + MessageId *string `location:"uri" locationName:"messageId" type:"string" required:"true"` + + // The room ID. + // + // RoomId is a required field + RoomId *string `location:"uri" locationName:"roomId" type:"string" required:"true"` } // String returns the string representation -func (s PutVoiceConnectorLoggingConfigurationInput) String() string { +func (s RedactRoomMessageInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s PutVoiceConnectorLoggingConfigurationInput) GoString() string { +func (s RedactRoomMessageInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *PutVoiceConnectorLoggingConfigurationInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "PutVoiceConnectorLoggingConfigurationInput"} - if s.LoggingConfiguration == nil { - invalidParams.Add(request.NewErrParamRequired("LoggingConfiguration")) +func (s *RedactRoomMessageInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "RedactRoomMessageInput"} + if s.AccountId == nil { + invalidParams.Add(request.NewErrParamRequired("AccountId")) } - if s.VoiceConnectorId == nil { - invalidParams.Add(request.NewErrParamRequired("VoiceConnectorId")) + if s.AccountId != nil && len(*s.AccountId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) } - if s.VoiceConnectorId != nil && len(*s.VoiceConnectorId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("VoiceConnectorId", 1)) + if s.MessageId == nil { + invalidParams.Add(request.NewErrParamRequired("MessageId")) + } + if s.MessageId != nil && len(*s.MessageId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("MessageId", 1)) + } + if s.RoomId == nil { + invalidParams.Add(request.NewErrParamRequired("RoomId")) + } + if s.RoomId != nil && len(*s.RoomId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RoomId", 1)) } if invalidParams.Len() > 0 { @@ -24215,81 +34892,76 @@ func (s *PutVoiceConnectorLoggingConfigurationInput) Validate() error { return nil } -// SetLoggingConfiguration sets the LoggingConfiguration field's value. -func (s *PutVoiceConnectorLoggingConfigurationInput) SetLoggingConfiguration(v *LoggingConfiguration) *PutVoiceConnectorLoggingConfigurationInput { - s.LoggingConfiguration = v +// SetAccountId sets the AccountId field's value. +func (s *RedactRoomMessageInput) SetAccountId(v string) *RedactRoomMessageInput { + s.AccountId = &v return s } -// SetVoiceConnectorId sets the VoiceConnectorId field's value. -func (s *PutVoiceConnectorLoggingConfigurationInput) SetVoiceConnectorId(v string) *PutVoiceConnectorLoggingConfigurationInput { - s.VoiceConnectorId = &v +// SetMessageId sets the MessageId field's value. +func (s *RedactRoomMessageInput) SetMessageId(v string) *RedactRoomMessageInput { + s.MessageId = &v return s } -type PutVoiceConnectorLoggingConfigurationOutput struct { - _ struct{} `type:"structure"` +// SetRoomId sets the RoomId field's value. +func (s *RedactRoomMessageInput) SetRoomId(v string) *RedactRoomMessageInput { + s.RoomId = &v + return s +} - // The updated logging configuration details. - LoggingConfiguration *LoggingConfiguration `type:"structure"` +type RedactRoomMessageOutput struct { + _ struct{} `type:"structure"` } // String returns the string representation -func (s PutVoiceConnectorLoggingConfigurationOutput) String() string { +func (s RedactRoomMessageOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s PutVoiceConnectorLoggingConfigurationOutput) GoString() string { +func (s RedactRoomMessageOutput) GoString() string { return s.String() } -// SetLoggingConfiguration sets the LoggingConfiguration field's value. -func (s *PutVoiceConnectorLoggingConfigurationOutput) SetLoggingConfiguration(v *LoggingConfiguration) *PutVoiceConnectorLoggingConfigurationOutput { - s.LoggingConfiguration = v - return s -} - -type PutVoiceConnectorOriginationInput struct { +type RegenerateSecurityTokenInput struct { _ struct{} `type:"structure"` - // The origination setting details to add. + // The Amazon Chime account ID. // - // Origination is a required field - Origination *Origination `type:"structure" required:"true"` + // AccountId is a required field + AccountId *string `location:"uri" locationName:"accountId" type:"string" required:"true"` - // The Amazon Chime Voice Connector ID. + // The bot ID. // - // VoiceConnectorId is a required field - VoiceConnectorId *string `location:"uri" locationName:"voiceConnectorId" type:"string" required:"true"` + // BotId is a required field + BotId *string `location:"uri" locationName:"botId" type:"string" required:"true"` } // String returns the string representation -func (s PutVoiceConnectorOriginationInput) String() string { +func (s RegenerateSecurityTokenInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s PutVoiceConnectorOriginationInput) GoString() string { +func (s RegenerateSecurityTokenInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *PutVoiceConnectorOriginationInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "PutVoiceConnectorOriginationInput"} - if s.Origination == nil { - invalidParams.Add(request.NewErrParamRequired("Origination")) +func (s *RegenerateSecurityTokenInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "RegenerateSecurityTokenInput"} + if s.AccountId == nil { + invalidParams.Add(request.NewErrParamRequired("AccountId")) } - if s.VoiceConnectorId == nil { - invalidParams.Add(request.NewErrParamRequired("VoiceConnectorId")) + if s.AccountId != nil && len(*s.AccountId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) } - if s.VoiceConnectorId != nil && len(*s.VoiceConnectorId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("VoiceConnectorId", 1)) + if s.BotId == nil { + invalidParams.Add(request.NewErrParamRequired("BotId")) } - if s.Origination != nil { - if err := s.Origination.Validate(); err != nil { - invalidParams.AddNested("Origination", err.(request.ErrInvalidParams)) - } + if s.BotId != nil && len(*s.BotId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("BotId", 1)) } if invalidParams.Len() > 0 { @@ -24298,94 +34970,80 @@ func (s *PutVoiceConnectorOriginationInput) Validate() error { return nil } -// SetOrigination sets the Origination field's value. -func (s *PutVoiceConnectorOriginationInput) SetOrigination(v *Origination) *PutVoiceConnectorOriginationInput { - s.Origination = v +// SetAccountId sets the AccountId field's value. +func (s *RegenerateSecurityTokenInput) SetAccountId(v string) *RegenerateSecurityTokenInput { + s.AccountId = &v return s } -// SetVoiceConnectorId sets the VoiceConnectorId field's value. -func (s *PutVoiceConnectorOriginationInput) SetVoiceConnectorId(v string) *PutVoiceConnectorOriginationInput { - s.VoiceConnectorId = &v +// SetBotId sets the BotId field's value. +func (s *RegenerateSecurityTokenInput) SetBotId(v string) *RegenerateSecurityTokenInput { + s.BotId = &v return s } -type PutVoiceConnectorOriginationOutput struct { +type RegenerateSecurityTokenOutput struct { _ struct{} `type:"structure"` - // The updated origination setting details. - Origination *Origination `type:"structure"` + // A resource that allows Enterprise account administrators to configure an + // interface to receive events from Amazon Chime. + Bot *Bot `type:"structure"` } // String returns the string representation -func (s PutVoiceConnectorOriginationOutput) String() string { +func (s RegenerateSecurityTokenOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s PutVoiceConnectorOriginationOutput) GoString() string { +func (s RegenerateSecurityTokenOutput) GoString() string { return s.String() } -// SetOrigination sets the Origination field's value. -func (s *PutVoiceConnectorOriginationOutput) SetOrigination(v *Origination) *PutVoiceConnectorOriginationOutput { - s.Origination = v +// SetBot sets the Bot field's value. +func (s *RegenerateSecurityTokenOutput) SetBot(v *Bot) *RegenerateSecurityTokenOutput { + s.Bot = v return s } -type PutVoiceConnectorProxyInput struct { +type ResetPersonalPINInput struct { _ struct{} `type:"structure"` - // The default number of minutes allowed for proxy sessions. - // - // DefaultSessionExpiryMinutes is a required field - DefaultSessionExpiryMinutes *int64 `type:"integer" required:"true"` - - // When true, stops proxy sessions from being created on the specified Amazon - // Chime Voice Connector. - Disabled *bool `type:"boolean"` - - // The phone number to route calls to after a proxy session expires. - FallBackPhoneNumber *string `type:"string" sensitive:"true"` - - // The countries for proxy phone numbers to be selected from. + // The Amazon Chime account ID. // - // PhoneNumberPoolCountries is a required field - PhoneNumberPoolCountries []*string `min:"1" type:"list" required:"true"` + // AccountId is a required field + AccountId *string `location:"uri" locationName:"accountId" type:"string" required:"true"` - // The Amazon Chime voice connector ID. + // The user ID. // - // VoiceConnectorId is a required field - VoiceConnectorId *string `location:"uri" locationName:"voiceConnectorId" min:"1" type:"string" required:"true"` + // UserId is a required field + UserId *string `location:"uri" locationName:"userId" type:"string" required:"true"` } // String returns the string representation -func (s PutVoiceConnectorProxyInput) String() string { +func (s ResetPersonalPINInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s PutVoiceConnectorProxyInput) GoString() string { +func (s ResetPersonalPINInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *PutVoiceConnectorProxyInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "PutVoiceConnectorProxyInput"} - if s.DefaultSessionExpiryMinutes == nil { - invalidParams.Add(request.NewErrParamRequired("DefaultSessionExpiryMinutes")) - } - if s.PhoneNumberPoolCountries == nil { - invalidParams.Add(request.NewErrParamRequired("PhoneNumberPoolCountries")) +func (s *ResetPersonalPINInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ResetPersonalPINInput"} + if s.AccountId == nil { + invalidParams.Add(request.NewErrParamRequired("AccountId")) } - if s.PhoneNumberPoolCountries != nil && len(s.PhoneNumberPoolCountries) < 1 { - invalidParams.Add(request.NewErrParamMinLen("PhoneNumberPoolCountries", 1)) + if s.AccountId != nil && len(*s.AccountId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) } - if s.VoiceConnectorId == nil { - invalidParams.Add(request.NewErrParamRequired("VoiceConnectorId")) + if s.UserId == nil { + invalidParams.Add(request.NewErrParamRequired("UserId")) } - if s.VoiceConnectorId != nil && len(*s.VoiceConnectorId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("VoiceConnectorId", 1)) + if s.UserId != nil && len(*s.UserId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("UserId", 1)) } if invalidParams.Len() > 0 { @@ -24394,172 +35052,126 @@ func (s *PutVoiceConnectorProxyInput) Validate() error { return nil } -// SetDefaultSessionExpiryMinutes sets the DefaultSessionExpiryMinutes field's value. -func (s *PutVoiceConnectorProxyInput) SetDefaultSessionExpiryMinutes(v int64) *PutVoiceConnectorProxyInput { - s.DefaultSessionExpiryMinutes = &v - return s -} - -// SetDisabled sets the Disabled field's value. -func (s *PutVoiceConnectorProxyInput) SetDisabled(v bool) *PutVoiceConnectorProxyInput { - s.Disabled = &v - return s -} - -// SetFallBackPhoneNumber sets the FallBackPhoneNumber field's value. -func (s *PutVoiceConnectorProxyInput) SetFallBackPhoneNumber(v string) *PutVoiceConnectorProxyInput { - s.FallBackPhoneNumber = &v - return s -} - -// SetPhoneNumberPoolCountries sets the PhoneNumberPoolCountries field's value. -func (s *PutVoiceConnectorProxyInput) SetPhoneNumberPoolCountries(v []*string) *PutVoiceConnectorProxyInput { - s.PhoneNumberPoolCountries = v +// SetAccountId sets the AccountId field's value. +func (s *ResetPersonalPINInput) SetAccountId(v string) *ResetPersonalPINInput { + s.AccountId = &v return s } -// SetVoiceConnectorId sets the VoiceConnectorId field's value. -func (s *PutVoiceConnectorProxyInput) SetVoiceConnectorId(v string) *PutVoiceConnectorProxyInput { - s.VoiceConnectorId = &v +// SetUserId sets the UserId field's value. +func (s *ResetPersonalPINInput) SetUserId(v string) *ResetPersonalPINInput { + s.UserId = &v return s } -type PutVoiceConnectorProxyOutput struct { +type ResetPersonalPINOutput struct { _ struct{} `type:"structure"` - // The proxy configuration details. - Proxy *Proxy `type:"structure"` + // The user details and new personal meeting PIN. + User *User `type:"structure"` } // String returns the string representation -func (s PutVoiceConnectorProxyOutput) String() string { +func (s ResetPersonalPINOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s PutVoiceConnectorProxyOutput) GoString() string { +func (s ResetPersonalPINOutput) GoString() string { return s.String() } -// SetProxy sets the Proxy field's value. -func (s *PutVoiceConnectorProxyOutput) SetProxy(v *Proxy) *PutVoiceConnectorProxyOutput { - s.Proxy = v +// SetUser sets the User field's value. +func (s *ResetPersonalPINOutput) SetUser(v *User) *ResetPersonalPINOutput { + s.User = v return s } -type PutVoiceConnectorStreamingConfigurationInput struct { - _ struct{} `type:"structure"` +// The request exceeds the resource limit. +type ResourceLimitExceededException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` - // The streaming configuration details to add. - // - // StreamingConfiguration is a required field - StreamingConfiguration *StreamingConfiguration `type:"structure" required:"true"` + Code_ *string `locationName:"Code" type:"string" enum:"ErrorCode"` - // The Amazon Chime Voice Connector ID. - // - // VoiceConnectorId is a required field - VoiceConnectorId *string `location:"uri" locationName:"voiceConnectorId" type:"string" required:"true"` + Message_ *string `locationName:"Message" type:"string"` } // String returns the string representation -func (s PutVoiceConnectorStreamingConfigurationInput) String() string { +func (s ResourceLimitExceededException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s PutVoiceConnectorStreamingConfigurationInput) GoString() string { +func (s ResourceLimitExceededException) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *PutVoiceConnectorStreamingConfigurationInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "PutVoiceConnectorStreamingConfigurationInput"} - if s.StreamingConfiguration == nil { - invalidParams.Add(request.NewErrParamRequired("StreamingConfiguration")) - } - if s.VoiceConnectorId == nil { - invalidParams.Add(request.NewErrParamRequired("VoiceConnectorId")) - } - if s.VoiceConnectorId != nil && len(*s.VoiceConnectorId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("VoiceConnectorId", 1)) - } - if s.StreamingConfiguration != nil { - if err := s.StreamingConfiguration.Validate(); err != nil { - invalidParams.AddNested("StreamingConfiguration", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams +func newErrorResourceLimitExceededException(v protocol.ResponseMetadata) error { + return &ResourceLimitExceededException{ + RespMetadata: v, } - return nil } -// SetStreamingConfiguration sets the StreamingConfiguration field's value. -func (s *PutVoiceConnectorStreamingConfigurationInput) SetStreamingConfiguration(v *StreamingConfiguration) *PutVoiceConnectorStreamingConfigurationInput { - s.StreamingConfiguration = v - return s +// Code returns the exception type name. +func (s *ResourceLimitExceededException) Code() string { + return "ResourceLimitExceededException" } -// SetVoiceConnectorId sets the VoiceConnectorId field's value. -func (s *PutVoiceConnectorStreamingConfigurationInput) SetVoiceConnectorId(v string) *PutVoiceConnectorStreamingConfigurationInput { - s.VoiceConnectorId = &v - return s +// Message returns the exception's message. +func (s *ResourceLimitExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" } -type PutVoiceConnectorStreamingConfigurationOutput struct { - _ struct{} `type:"structure"` - - // The updated streaming configuration details. - StreamingConfiguration *StreamingConfiguration `type:"structure"` +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *ResourceLimitExceededException) OrigErr() error { + return nil } -// String returns the string representation -func (s PutVoiceConnectorStreamingConfigurationOutput) String() string { - return awsutil.Prettify(s) +func (s *ResourceLimitExceededException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) } -// GoString returns the string representation -func (s PutVoiceConnectorStreamingConfigurationOutput) GoString() string { - return s.String() +// Status code returns the HTTP status code for the request's response error. +func (s *ResourceLimitExceededException) StatusCode() int { + return s.RespMetadata.StatusCode } -// SetStreamingConfiguration sets the StreamingConfiguration field's value. -func (s *PutVoiceConnectorStreamingConfigurationOutput) SetStreamingConfiguration(v *StreamingConfiguration) *PutVoiceConnectorStreamingConfigurationOutput { - s.StreamingConfiguration = v - return s +// RequestID returns the service's response RequestID for request. +func (s *ResourceLimitExceededException) RequestID() string { + return s.RespMetadata.RequestID } -type PutVoiceConnectorTerminationCredentialsInput struct { +type RestorePhoneNumberInput struct { _ struct{} `type:"structure"` - // The termination SIP credentials. - Credentials []*Credential `type:"list"` - - // The Amazon Chime Voice Connector ID. + // The phone number. // - // VoiceConnectorId is a required field - VoiceConnectorId *string `location:"uri" locationName:"voiceConnectorId" type:"string" required:"true"` + // PhoneNumberId is a required field + PhoneNumberId *string `location:"uri" locationName:"phoneNumberId" type:"string" required:"true"` } // String returns the string representation -func (s PutVoiceConnectorTerminationCredentialsInput) String() string { +func (s RestorePhoneNumberInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s PutVoiceConnectorTerminationCredentialsInput) GoString() string { +func (s RestorePhoneNumberInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *PutVoiceConnectorTerminationCredentialsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "PutVoiceConnectorTerminationCredentialsInput"} - if s.VoiceConnectorId == nil { - invalidParams.Add(request.NewErrParamRequired("VoiceConnectorId")) +func (s *RestorePhoneNumberInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "RestorePhoneNumberInput"} + if s.PhoneNumberId == nil { + invalidParams.Add(request.NewErrParamRequired("PhoneNumberId")) } - if s.VoiceConnectorId != nil && len(*s.VoiceConnectorId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("VoiceConnectorId", 1)) + if s.PhoneNumberId != nil && len(*s.PhoneNumberId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("PhoneNumberId", 1)) } if invalidParams.Len() > 0 { @@ -24568,71 +35180,69 @@ func (s *PutVoiceConnectorTerminationCredentialsInput) Validate() error { return nil } -// SetCredentials sets the Credentials field's value. -func (s *PutVoiceConnectorTerminationCredentialsInput) SetCredentials(v []*Credential) *PutVoiceConnectorTerminationCredentialsInput { - s.Credentials = v - return s -} - -// SetVoiceConnectorId sets the VoiceConnectorId field's value. -func (s *PutVoiceConnectorTerminationCredentialsInput) SetVoiceConnectorId(v string) *PutVoiceConnectorTerminationCredentialsInput { - s.VoiceConnectorId = &v +// SetPhoneNumberId sets the PhoneNumberId field's value. +func (s *RestorePhoneNumberInput) SetPhoneNumberId(v string) *RestorePhoneNumberInput { + s.PhoneNumberId = &v return s } -type PutVoiceConnectorTerminationCredentialsOutput struct { +type RestorePhoneNumberOutput struct { _ struct{} `type:"structure"` + + // The phone number details. + PhoneNumber *PhoneNumber `type:"structure"` } // String returns the string representation -func (s PutVoiceConnectorTerminationCredentialsOutput) String() string { +func (s RestorePhoneNumberOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s PutVoiceConnectorTerminationCredentialsOutput) GoString() string { +func (s RestorePhoneNumberOutput) GoString() string { return s.String() } -type PutVoiceConnectorTerminationInput struct { +// SetPhoneNumber sets the PhoneNumber field's value. +func (s *RestorePhoneNumberOutput) SetPhoneNumber(v *PhoneNumber) *RestorePhoneNumberOutput { + s.PhoneNumber = v + return s +} + +// The retention settings for an Amazon Chime Enterprise account that determine +// how long to retain items such as chat room messages and chat conversation +// messages. +type RetentionSettings struct { _ struct{} `type:"structure"` - // The termination setting details to add. - // - // Termination is a required field - Termination *Termination `type:"structure" required:"true"` + // The chat conversation retention settings. + ConversationRetentionSettings *ConversationRetentionSettings `type:"structure"` - // The Amazon Chime Voice Connector ID. - // - // VoiceConnectorId is a required field - VoiceConnectorId *string `location:"uri" locationName:"voiceConnectorId" type:"string" required:"true"` + // The chat room retention settings. + RoomRetentionSettings *RoomRetentionSettings `type:"structure"` } // String returns the string representation -func (s PutVoiceConnectorTerminationInput) String() string { +func (s RetentionSettings) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s PutVoiceConnectorTerminationInput) GoString() string { +func (s RetentionSettings) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *PutVoiceConnectorTerminationInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "PutVoiceConnectorTerminationInput"} - if s.Termination == nil { - invalidParams.Add(request.NewErrParamRequired("Termination")) - } - if s.VoiceConnectorId == nil { - invalidParams.Add(request.NewErrParamRequired("VoiceConnectorId")) - } - if s.VoiceConnectorId != nil && len(*s.VoiceConnectorId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("VoiceConnectorId", 1)) +func (s *RetentionSettings) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "RetentionSettings"} + if s.ConversationRetentionSettings != nil { + if err := s.ConversationRetentionSettings.Validate(); err != nil { + invalidParams.AddNested("ConversationRetentionSettings", err.(request.ErrInvalidParams)) + } } - if s.Termination != nil { - if err := s.Termination.Validate(); err != nil { - invalidParams.AddNested("Termination", err.(request.ErrInvalidParams)) + if s.RoomRetentionSettings != nil { + if err := s.RoomRetentionSettings.Validate(); err != nil { + invalidParams.AddNested("RoomRetentionSettings", err.(request.ErrInvalidParams)) } } @@ -24642,179 +35252,171 @@ func (s *PutVoiceConnectorTerminationInput) Validate() error { return nil } -// SetTermination sets the Termination field's value. -func (s *PutVoiceConnectorTerminationInput) SetTermination(v *Termination) *PutVoiceConnectorTerminationInput { - s.Termination = v +// SetConversationRetentionSettings sets the ConversationRetentionSettings field's value. +func (s *RetentionSettings) SetConversationRetentionSettings(v *ConversationRetentionSettings) *RetentionSettings { + s.ConversationRetentionSettings = v return s } -// SetVoiceConnectorId sets the VoiceConnectorId field's value. -func (s *PutVoiceConnectorTerminationInput) SetVoiceConnectorId(v string) *PutVoiceConnectorTerminationInput { - s.VoiceConnectorId = &v +// SetRoomRetentionSettings sets the RoomRetentionSettings field's value. +func (s *RetentionSettings) SetRoomRetentionSettings(v *RoomRetentionSettings) *RetentionSettings { + s.RoomRetentionSettings = v return s } -type PutVoiceConnectorTerminationOutput struct { +// The Amazon Chime chat room details. +type Room struct { _ struct{} `type:"structure"` - // The updated termination setting details. - Termination *Termination `type:"structure"` + // The Amazon Chime account ID. + AccountId *string `type:"string"` + + // The identifier of the room creator. + CreatedBy *string `type:"string"` + + // The room creation timestamp, in ISO 8601 format. + CreatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` + + // The room name. + Name *string `type:"string" sensitive:"true"` + + // The room ID. + RoomId *string `type:"string"` + + // The room update timestamp, in ISO 8601 format. + UpdatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` } // String returns the string representation -func (s PutVoiceConnectorTerminationOutput) String() string { +func (s Room) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s PutVoiceConnectorTerminationOutput) GoString() string { +func (s Room) GoString() string { return s.String() } -// SetTermination sets the Termination field's value. -func (s *PutVoiceConnectorTerminationOutput) SetTermination(v *Termination) *PutVoiceConnectorTerminationOutput { - s.Termination = v +// SetAccountId sets the AccountId field's value. +func (s *Room) SetAccountId(v string) *Room { + s.AccountId = &v return s } -type RedactConversationMessageInput struct { +// SetCreatedBy sets the CreatedBy field's value. +func (s *Room) SetCreatedBy(v string) *Room { + s.CreatedBy = &v + return s +} + +// SetCreatedTimestamp sets the CreatedTimestamp field's value. +func (s *Room) SetCreatedTimestamp(v time.Time) *Room { + s.CreatedTimestamp = &v + return s +} + +// SetName sets the Name field's value. +func (s *Room) SetName(v string) *Room { + s.Name = &v + return s +} + +// SetRoomId sets the RoomId field's value. +func (s *Room) SetRoomId(v string) *Room { + s.RoomId = &v + return s +} + +// SetUpdatedTimestamp sets the UpdatedTimestamp field's value. +func (s *Room) SetUpdatedTimestamp(v time.Time) *Room { + s.UpdatedTimestamp = &v + return s +} + +// The room membership details. +type RoomMembership struct { _ struct{} `type:"structure"` - // The Amazon Chime account ID. - // - // AccountId is a required field - AccountId *string `location:"uri" locationName:"accountId" type:"string" required:"true"` + // The identifier of the user that invited the room member. + InvitedBy *string `type:"string"` - // The conversation ID. - // - // ConversationId is a required field - ConversationId *string `location:"uri" locationName:"conversationId" type:"string" required:"true"` + // The member details, such as email address, name, member ID, and member type. + Member *Member `type:"structure"` - // The message ID. - // - // MessageId is a required field - MessageId *string `location:"uri" locationName:"messageId" type:"string" required:"true"` + // The membership role. + Role *string `type:"string" enum:"RoomMembershipRole"` + + // The room ID. + RoomId *string `type:"string"` + + // The room membership update timestamp, in ISO 8601 format. + UpdatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` } // String returns the string representation -func (s RedactConversationMessageInput) String() string { +func (s RoomMembership) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s RedactConversationMessageInput) GoString() string { +func (s RoomMembership) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *RedactConversationMessageInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "RedactConversationMessageInput"} - if s.AccountId == nil { - invalidParams.Add(request.NewErrParamRequired("AccountId")) - } - if s.AccountId != nil && len(*s.AccountId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) - } - if s.ConversationId == nil { - invalidParams.Add(request.NewErrParamRequired("ConversationId")) - } - if s.ConversationId != nil && len(*s.ConversationId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ConversationId", 1)) - } - if s.MessageId == nil { - invalidParams.Add(request.NewErrParamRequired("MessageId")) - } - if s.MessageId != nil && len(*s.MessageId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("MessageId", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetAccountId sets the AccountId field's value. -func (s *RedactConversationMessageInput) SetAccountId(v string) *RedactConversationMessageInput { - s.AccountId = &v - return s -} - -// SetConversationId sets the ConversationId field's value. -func (s *RedactConversationMessageInput) SetConversationId(v string) *RedactConversationMessageInput { - s.ConversationId = &v +// SetInvitedBy sets the InvitedBy field's value. +func (s *RoomMembership) SetInvitedBy(v string) *RoomMembership { + s.InvitedBy = &v return s } -// SetMessageId sets the MessageId field's value. -func (s *RedactConversationMessageInput) SetMessageId(v string) *RedactConversationMessageInput { - s.MessageId = &v +// SetMember sets the Member field's value. +func (s *RoomMembership) SetMember(v *Member) *RoomMembership { + s.Member = v return s } -type RedactConversationMessageOutput struct { - _ struct{} `type:"structure"` +// SetRole sets the Role field's value. +func (s *RoomMembership) SetRole(v string) *RoomMembership { + s.Role = &v + return s } -// String returns the string representation -func (s RedactConversationMessageOutput) String() string { - return awsutil.Prettify(s) +// SetRoomId sets the RoomId field's value. +func (s *RoomMembership) SetRoomId(v string) *RoomMembership { + s.RoomId = &v + return s } -// GoString returns the string representation -func (s RedactConversationMessageOutput) GoString() string { - return s.String() +// SetUpdatedTimestamp sets the UpdatedTimestamp field's value. +func (s *RoomMembership) SetUpdatedTimestamp(v time.Time) *RoomMembership { + s.UpdatedTimestamp = &v + return s } -type RedactRoomMessageInput struct { +// The retention settings that determine how long to retain chat room messages +// for an Amazon Chime Enterprise account. +type RoomRetentionSettings struct { _ struct{} `type:"structure"` - // The Amazon Chime account ID. - // - // AccountId is a required field - AccountId *string `location:"uri" locationName:"accountId" type:"string" required:"true"` - - // The message ID. - // - // MessageId is a required field - MessageId *string `location:"uri" locationName:"messageId" type:"string" required:"true"` - - // The room ID. - // - // RoomId is a required field - RoomId *string `location:"uri" locationName:"roomId" type:"string" required:"true"` + // The number of days for which to retain chat room messages. + RetentionDays *int64 `min:"1" type:"integer"` } // String returns the string representation -func (s RedactRoomMessageInput) String() string { +func (s RoomRetentionSettings) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s RedactRoomMessageInput) GoString() string { +func (s RoomRetentionSettings) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *RedactRoomMessageInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "RedactRoomMessageInput"} - if s.AccountId == nil { - invalidParams.Add(request.NewErrParamRequired("AccountId")) - } - if s.AccountId != nil && len(*s.AccountId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) - } - if s.MessageId == nil { - invalidParams.Add(request.NewErrParamRequired("MessageId")) - } - if s.MessageId != nil && len(*s.MessageId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("MessageId", 1)) - } - if s.RoomId == nil { - invalidParams.Add(request.NewErrParamRequired("RoomId")) - } - if s.RoomId != nil && len(*s.RoomId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("RoomId", 1)) +func (s *RoomRetentionSettings) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "RoomRetentionSettings"} + if s.RetentionDays != nil && *s.RetentionDays < 1 { + invalidParams.Add(request.NewErrParamMinValue("RetentionDays", 1)) } if invalidParams.Len() > 0 { @@ -24823,76 +35425,55 @@ func (s *RedactRoomMessageInput) Validate() error { return nil } -// SetAccountId sets the AccountId field's value. -func (s *RedactRoomMessageInput) SetAccountId(v string) *RedactRoomMessageInput { - s.AccountId = &v +// SetRetentionDays sets the RetentionDays field's value. +func (s *RoomRetentionSettings) SetRetentionDays(v int64) *RoomRetentionSettings { + s.RetentionDays = &v return s } -// SetMessageId sets the MessageId field's value. -func (s *RedactRoomMessageInput) SetMessageId(v string) *RedactRoomMessageInput { - s.MessageId = &v - return s -} +type SearchAvailablePhoneNumbersInput struct { + _ struct{} `type:"structure"` -// SetRoomId sets the RoomId field's value. -func (s *RedactRoomMessageInput) SetRoomId(v string) *RedactRoomMessageInput { - s.RoomId = &v - return s -} + // The area code used to filter results. + AreaCode *string `location:"querystring" locationName:"area-code" type:"string"` -type RedactRoomMessageOutput struct { - _ struct{} `type:"structure"` -} + // The city used to filter results. + City *string `location:"querystring" locationName:"city" type:"string"` -// String returns the string representation -func (s RedactRoomMessageOutput) String() string { - return awsutil.Prettify(s) -} + // The country used to filter results. + Country *string `location:"querystring" locationName:"country" type:"string"` -// GoString returns the string representation -func (s RedactRoomMessageOutput) GoString() string { - return s.String() -} + // The maximum number of results to return in a single call. + MaxResults *int64 `location:"querystring" locationName:"max-results" min:"1" type:"integer"` -type RegenerateSecurityTokenInput struct { - _ struct{} `type:"structure"` + // The token to use to retrieve the next page of results. + NextToken *string `location:"querystring" locationName:"next-token" type:"string"` - // The Amazon Chime account ID. - // - // AccountId is a required field - AccountId *string `location:"uri" locationName:"accountId" type:"string" required:"true"` + // The state used to filter results. + State *string `location:"querystring" locationName:"state" type:"string"` - // The bot ID. - // - // BotId is a required field - BotId *string `location:"uri" locationName:"botId" type:"string" required:"true"` + // The toll-free prefix that you use to filter results. + TollFreePrefix *string `location:"querystring" locationName:"toll-free-prefix" min:"3" type:"string"` } // String returns the string representation -func (s RegenerateSecurityTokenInput) String() string { +func (s SearchAvailablePhoneNumbersInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s RegenerateSecurityTokenInput) GoString() string { +func (s SearchAvailablePhoneNumbersInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *RegenerateSecurityTokenInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "RegenerateSecurityTokenInput"} - if s.AccountId == nil { - invalidParams.Add(request.NewErrParamRequired("AccountId")) - } - if s.AccountId != nil && len(*s.AccountId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) - } - if s.BotId == nil { - invalidParams.Add(request.NewErrParamRequired("BotId")) +func (s *SearchAvailablePhoneNumbersInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "SearchAvailablePhoneNumbersInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } - if s.BotId != nil && len(*s.BotId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("BotId", 1)) + if s.TollFreePrefix != nil && len(*s.TollFreePrefix) < 3 { + invalidParams.Add(request.NewErrParamMinLen("TollFreePrefix", 3)) } if invalidParams.Len() > 0 { @@ -24901,80 +35482,134 @@ func (s *RegenerateSecurityTokenInput) Validate() error { return nil } -// SetAccountId sets the AccountId field's value. -func (s *RegenerateSecurityTokenInput) SetAccountId(v string) *RegenerateSecurityTokenInput { - s.AccountId = &v +// SetAreaCode sets the AreaCode field's value. +func (s *SearchAvailablePhoneNumbersInput) SetAreaCode(v string) *SearchAvailablePhoneNumbersInput { + s.AreaCode = &v return s } -// SetBotId sets the BotId field's value. -func (s *RegenerateSecurityTokenInput) SetBotId(v string) *RegenerateSecurityTokenInput { - s.BotId = &v +// SetCity sets the City field's value. +func (s *SearchAvailablePhoneNumbersInput) SetCity(v string) *SearchAvailablePhoneNumbersInput { + s.City = &v return s } -type RegenerateSecurityTokenOutput struct { +// SetCountry sets the Country field's value. +func (s *SearchAvailablePhoneNumbersInput) SetCountry(v string) *SearchAvailablePhoneNumbersInput { + s.Country = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *SearchAvailablePhoneNumbersInput) SetMaxResults(v int64) *SearchAvailablePhoneNumbersInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *SearchAvailablePhoneNumbersInput) SetNextToken(v string) *SearchAvailablePhoneNumbersInput { + s.NextToken = &v + return s +} + +// SetState sets the State field's value. +func (s *SearchAvailablePhoneNumbersInput) SetState(v string) *SearchAvailablePhoneNumbersInput { + s.State = &v + return s +} + +// SetTollFreePrefix sets the TollFreePrefix field's value. +func (s *SearchAvailablePhoneNumbersInput) SetTollFreePrefix(v string) *SearchAvailablePhoneNumbersInput { + s.TollFreePrefix = &v + return s +} + +type SearchAvailablePhoneNumbersOutput struct { _ struct{} `type:"structure"` - // A resource that allows Enterprise account administrators to configure an - // interface to receive events from Amazon Chime. - Bot *Bot `type:"structure"` + // List of phone numbers, in E.164 format. + E164PhoneNumbers []*string `type:"list"` } // String returns the string representation -func (s RegenerateSecurityTokenOutput) String() string { +func (s SearchAvailablePhoneNumbersOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s RegenerateSecurityTokenOutput) GoString() string { +func (s SearchAvailablePhoneNumbersOutput) GoString() string { return s.String() } -// SetBot sets the Bot field's value. -func (s *RegenerateSecurityTokenOutput) SetBot(v *Bot) *RegenerateSecurityTokenOutput { - s.Bot = v +// SetE164PhoneNumbers sets the E164PhoneNumbers field's value. +func (s *SearchAvailablePhoneNumbersOutput) SetE164PhoneNumbers(v []*string) *SearchAvailablePhoneNumbersOutput { + s.E164PhoneNumbers = v return s } -type ResetPersonalPINInput struct { +type SendChannelMessageInput struct { _ struct{} `type:"structure"` - // The Amazon Chime account ID. + // The ARN of the channel. // - // AccountId is a required field - AccountId *string `location:"uri" locationName:"accountId" type:"string" required:"true"` + // ChannelArn is a required field + ChannelArn *string `location:"uri" locationName:"channelArn" min:"5" type:"string" required:"true"` - // The user ID. + // The Idempotency token for each client request. + ClientRequestToken *string `min:"2" type:"string" idempotencyToken:"true" sensitive:"true"` + + // The content of the message. // - // UserId is a required field - UserId *string `location:"uri" locationName:"userId" type:"string" required:"true"` + // Content is a required field + Content *string `min:"1" type:"string" required:"true" sensitive:"true"` + + // The optional metadata for each message. + Metadata *string `type:"string" sensitive:"true"` + + // Boolean that controls whether the message is persisted on the back end. Required. + // + // Persistence is a required field + Persistence *string `type:"string" required:"true" enum:"ChannelMessagePersistenceType"` + + // The type of message, STANDARD or CONTROL. + // + // Type is a required field + Type *string `type:"string" required:"true" enum:"ChannelMessageType"` } // String returns the string representation -func (s ResetPersonalPINInput) String() string { +func (s SendChannelMessageInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ResetPersonalPINInput) GoString() string { +func (s SendChannelMessageInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *ResetPersonalPINInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ResetPersonalPINInput"} - if s.AccountId == nil { - invalidParams.Add(request.NewErrParamRequired("AccountId")) +func (s *SendChannelMessageInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "SendChannelMessageInput"} + if s.ChannelArn == nil { + invalidParams.Add(request.NewErrParamRequired("ChannelArn")) } - if s.AccountId != nil && len(*s.AccountId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) + if s.ChannelArn != nil && len(*s.ChannelArn) < 5 { + invalidParams.Add(request.NewErrParamMinLen("ChannelArn", 5)) } - if s.UserId == nil { - invalidParams.Add(request.NewErrParamRequired("UserId")) + if s.ClientRequestToken != nil && len(*s.ClientRequestToken) < 2 { + invalidParams.Add(request.NewErrParamMinLen("ClientRequestToken", 2)) } - if s.UserId != nil && len(*s.UserId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("UserId", 1)) + if s.Content == nil { + invalidParams.Add(request.NewErrParamRequired("Content")) + } + if s.Content != nil && len(*s.Content) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Content", 1)) + } + if s.Persistence == nil { + invalidParams.Add(request.NewErrParamRequired("Persistence")) + } + if s.Type == nil { + invalidParams.Add(request.NewErrParamRequired("Type")) } if invalidParams.Len() > 0 { @@ -24983,43 +35618,76 @@ func (s *ResetPersonalPINInput) Validate() error { return nil } -// SetAccountId sets the AccountId field's value. -func (s *ResetPersonalPINInput) SetAccountId(v string) *ResetPersonalPINInput { - s.AccountId = &v +// SetChannelArn sets the ChannelArn field's value. +func (s *SendChannelMessageInput) SetChannelArn(v string) *SendChannelMessageInput { + s.ChannelArn = &v return s } -// SetUserId sets the UserId field's value. -func (s *ResetPersonalPINInput) SetUserId(v string) *ResetPersonalPINInput { - s.UserId = &v +// SetClientRequestToken sets the ClientRequestToken field's value. +func (s *SendChannelMessageInput) SetClientRequestToken(v string) *SendChannelMessageInput { + s.ClientRequestToken = &v return s } -type ResetPersonalPINOutput struct { +// SetContent sets the Content field's value. +func (s *SendChannelMessageInput) SetContent(v string) *SendChannelMessageInput { + s.Content = &v + return s +} + +// SetMetadata sets the Metadata field's value. +func (s *SendChannelMessageInput) SetMetadata(v string) *SendChannelMessageInput { + s.Metadata = &v + return s +} + +// SetPersistence sets the Persistence field's value. +func (s *SendChannelMessageInput) SetPersistence(v string) *SendChannelMessageInput { + s.Persistence = &v + return s +} + +// SetType sets the Type field's value. +func (s *SendChannelMessageInput) SetType(v string) *SendChannelMessageInput { + s.Type = &v + return s +} + +type SendChannelMessageOutput struct { _ struct{} `type:"structure"` - // The user details and new personal meeting PIN. - User *User `type:"structure"` + // The ARN of the channel. + ChannelArn *string `min:"5" type:"string"` + + // The ID string assigned to each message. + MessageId *string `min:"1" type:"string"` } // String returns the string representation -func (s ResetPersonalPINOutput) String() string { +func (s SendChannelMessageOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ResetPersonalPINOutput) GoString() string { +func (s SendChannelMessageOutput) GoString() string { return s.String() } -// SetUser sets the User field's value. -func (s *ResetPersonalPINOutput) SetUser(v *User) *ResetPersonalPINOutput { - s.User = v +// SetChannelArn sets the ChannelArn field's value. +func (s *SendChannelMessageOutput) SetChannelArn(v string) *SendChannelMessageOutput { + s.ChannelArn = &v return s } -// The request exceeds the resource limit. -type ResourceLimitExceededException struct { +// SetMessageId sets the MessageId field's value. +func (s *SendChannelMessageOutput) SetMessageId(v string) *SendChannelMessageOutput { + s.MessageId = &v + return s +} + +// The service encountered an unexpected error. +type ServiceFailureException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` @@ -25029,28 +35697,28 @@ type ResourceLimitExceededException struct { } // String returns the string representation -func (s ResourceLimitExceededException) String() string { +func (s ServiceFailureException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ResourceLimitExceededException) GoString() string { +func (s ServiceFailureException) GoString() string { return s.String() } -func newErrorResourceLimitExceededException(v protocol.ResponseMetadata) error { - return &ResourceLimitExceededException{ +func newErrorServiceFailureException(v protocol.ResponseMetadata) error { + return &ServiceFailureException{ RespMetadata: v, } } // Code returns the exception type name. -func (s *ResourceLimitExceededException) Code() string { - return "ResourceLimitExceededException" +func (s *ServiceFailureException) Code() string { + return "ServiceFailureException" } // Message returns the exception's message. -func (s *ResourceLimitExceededException) Message() string { +func (s *ServiceFailureException) Message() string { if s.Message_ != nil { return *s.Message_ } @@ -25058,836 +35726,801 @@ func (s *ResourceLimitExceededException) Message() string { } // OrigErr always returns nil, satisfies awserr.Error interface. -func (s *ResourceLimitExceededException) OrigErr() error { +func (s *ServiceFailureException) OrigErr() error { return nil } -func (s *ResourceLimitExceededException) Error() string { +func (s *ServiceFailureException) Error() string { return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) } // Status code returns the HTTP status code for the request's response error. -func (s *ResourceLimitExceededException) StatusCode() int { +func (s *ServiceFailureException) StatusCode() int { return s.RespMetadata.StatusCode } // RequestID returns the service's response RequestID for request. -func (s *ResourceLimitExceededException) RequestID() string { +func (s *ServiceFailureException) RequestID() string { return s.RespMetadata.RequestID } -type RestorePhoneNumberInput struct { - _ struct{} `type:"structure"` +// The service is currently unavailable. +type ServiceUnavailableException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` - // The phone number. - // - // PhoneNumberId is a required field - PhoneNumberId *string `location:"uri" locationName:"phoneNumberId" type:"string" required:"true"` + Code_ *string `locationName:"Code" type:"string" enum:"ErrorCode"` + + Message_ *string `locationName:"Message" type:"string"` } // String returns the string representation -func (s RestorePhoneNumberInput) String() string { +func (s ServiceUnavailableException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s RestorePhoneNumberInput) GoString() string { +func (s ServiceUnavailableException) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *RestorePhoneNumberInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "RestorePhoneNumberInput"} - if s.PhoneNumberId == nil { - invalidParams.Add(request.NewErrParamRequired("PhoneNumberId")) - } - if s.PhoneNumberId != nil && len(*s.PhoneNumberId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("PhoneNumberId", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams +func newErrorServiceUnavailableException(v protocol.ResponseMetadata) error { + return &ServiceUnavailableException{ + RespMetadata: v, } - return nil } -// SetPhoneNumberId sets the PhoneNumberId field's value. -func (s *RestorePhoneNumberInput) SetPhoneNumberId(v string) *RestorePhoneNumberInput { - s.PhoneNumberId = &v - return s +// Code returns the exception type name. +func (s *ServiceUnavailableException) Code() string { + return "ServiceUnavailableException" } -type RestorePhoneNumberOutput struct { - _ struct{} `type:"structure"` +// Message returns the exception's message. +func (s *ServiceUnavailableException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} - // The phone number details. - PhoneNumber *PhoneNumber `type:"structure"` +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *ServiceUnavailableException) OrigErr() error { + return nil } -// String returns the string representation -func (s RestorePhoneNumberOutput) String() string { - return awsutil.Prettify(s) +func (s *ServiceUnavailableException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) } -// GoString returns the string representation -func (s RestorePhoneNumberOutput) GoString() string { - return s.String() +// Status code returns the HTTP status code for the request's response error. +func (s *ServiceUnavailableException) StatusCode() int { + return s.RespMetadata.StatusCode } -// SetPhoneNumber sets the PhoneNumber field's value. -func (s *RestorePhoneNumberOutput) SetPhoneNumber(v *PhoneNumber) *RestorePhoneNumberOutput { - s.PhoneNumber = v - return s +// RequestID returns the service's response RequestID for request. +func (s *ServiceUnavailableException) RequestID() string { + return s.RespMetadata.RequestID } -// The retention settings for an Amazon Chime Enterprise account that determine -// how long to retain items such as chat room messages and chat conversation -// messages. -type RetentionSettings struct { +// An Active Directory (AD) group whose members are granted permission to act +// as delegates. +type SigninDelegateGroup struct { _ struct{} `type:"structure"` - // The chat conversation retention settings. - ConversationRetentionSettings *ConversationRetentionSettings `type:"structure"` - - // The chat room retention settings. - RoomRetentionSettings *RoomRetentionSettings `type:"structure"` + // The group name. + GroupName *string `type:"string"` } // String returns the string representation -func (s RetentionSettings) String() string { +func (s SigninDelegateGroup) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s RetentionSettings) GoString() string { +func (s SigninDelegateGroup) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *RetentionSettings) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "RetentionSettings"} - if s.ConversationRetentionSettings != nil { - if err := s.ConversationRetentionSettings.Validate(); err != nil { - invalidParams.AddNested("ConversationRetentionSettings", err.(request.ErrInvalidParams)) - } - } - if s.RoomRetentionSettings != nil { - if err := s.RoomRetentionSettings.Validate(); err != nil { - invalidParams.AddNested("RoomRetentionSettings", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetConversationRetentionSettings sets the ConversationRetentionSettings field's value. -func (s *RetentionSettings) SetConversationRetentionSettings(v *ConversationRetentionSettings) *RetentionSettings { - s.ConversationRetentionSettings = v - return s -} - -// SetRoomRetentionSettings sets the RoomRetentionSettings field's value. -func (s *RetentionSettings) SetRoomRetentionSettings(v *RoomRetentionSettings) *RetentionSettings { - s.RoomRetentionSettings = v +// SetGroupName sets the GroupName field's value. +func (s *SigninDelegateGroup) SetGroupName(v string) *SigninDelegateGroup { + s.GroupName = &v return s } -// The Amazon Chime chat room details. -type Room struct { +// The SIP media application details, including name and endpoints. An AWS account +// can have multiple SIP media applications. +type SipMediaApplication struct { _ struct{} `type:"structure"` - // The Amazon Chime account ID. - AccountId *string `type:"string"` - - // The identifier of the room creator. - CreatedBy *string `type:"string"` + // The AWS Region in which the SIP media application is created. + AwsRegion *string `type:"string"` - // The room creation timestamp, in ISO 8601 format. + // The SIP media application creation timestamp, in ISO 8601 format. CreatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` - // The room name. - Name *string `type:"string" sensitive:"true"` + // List of endpoints for SIP media application. Currently, only one endpoint + // per SIP media application is permitted. + Endpoints []*SipMediaApplicationEndpoint `min:"1" type:"list"` - // The room ID. - RoomId *string `type:"string"` + // The name of the SIP media application. + Name *string `min:"1" type:"string"` - // The room update timestamp, in ISO 8601 format. + // The SIP media application ID. + SipMediaApplicationId *string `type:"string"` + + // The SIP media application updated timestamp, in ISO 8601 format. UpdatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` } // String returns the string representation -func (s Room) String() string { +func (s SipMediaApplication) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s Room) GoString() string { +func (s SipMediaApplication) GoString() string { return s.String() } -// SetAccountId sets the AccountId field's value. -func (s *Room) SetAccountId(v string) *Room { - s.AccountId = &v +// SetAwsRegion sets the AwsRegion field's value. +func (s *SipMediaApplication) SetAwsRegion(v string) *SipMediaApplication { + s.AwsRegion = &v return s } -// SetCreatedBy sets the CreatedBy field's value. -func (s *Room) SetCreatedBy(v string) *Room { - s.CreatedBy = &v +// SetCreatedTimestamp sets the CreatedTimestamp field's value. +func (s *SipMediaApplication) SetCreatedTimestamp(v time.Time) *SipMediaApplication { + s.CreatedTimestamp = &v return s } -// SetCreatedTimestamp sets the CreatedTimestamp field's value. -func (s *Room) SetCreatedTimestamp(v time.Time) *Room { - s.CreatedTimestamp = &v +// SetEndpoints sets the Endpoints field's value. +func (s *SipMediaApplication) SetEndpoints(v []*SipMediaApplicationEndpoint) *SipMediaApplication { + s.Endpoints = v return s } // SetName sets the Name field's value. -func (s *Room) SetName(v string) *Room { +func (s *SipMediaApplication) SetName(v string) *SipMediaApplication { s.Name = &v return s } -// SetRoomId sets the RoomId field's value. -func (s *Room) SetRoomId(v string) *Room { - s.RoomId = &v +// SetSipMediaApplicationId sets the SipMediaApplicationId field's value. +func (s *SipMediaApplication) SetSipMediaApplicationId(v string) *SipMediaApplication { + s.SipMediaApplicationId = &v return s } // SetUpdatedTimestamp sets the UpdatedTimestamp field's value. -func (s *Room) SetUpdatedTimestamp(v time.Time) *Room { +func (s *SipMediaApplication) SetUpdatedTimestamp(v time.Time) *SipMediaApplication { s.UpdatedTimestamp = &v return s } -// The room membership details. -type RoomMembership struct { +// A Call instance for a SIP media application. +type SipMediaApplicationCall struct { _ struct{} `type:"structure"` - // The identifier of the user that invited the room member. - InvitedBy *string `type:"string"` + // The transaction ID of a call. + TransactionId *string `type:"string"` +} - // The member details, such as email address, name, member ID, and member type. - Member *Member `type:"structure"` +// String returns the string representation +func (s SipMediaApplicationCall) String() string { + return awsutil.Prettify(s) +} - // The membership role. - Role *string `type:"string" enum:"RoomMembershipRole"` +// GoString returns the string representation +func (s SipMediaApplicationCall) GoString() string { + return s.String() +} - // The room ID. - RoomId *string `type:"string"` +// SetTransactionId sets the TransactionId field's value. +func (s *SipMediaApplicationCall) SetTransactionId(v string) *SipMediaApplicationCall { + s.TransactionId = &v + return s +} - // The room membership update timestamp, in ISO 8601 format. - UpdatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` +// Endpoints to specify as part of a SIP media application. +type SipMediaApplicationEndpoint struct { + _ struct{} `type:"structure"` + + // Valid Amazon Resource Name (ARN) of the Lambda function of the same AWS Region + // where the SIP media application is created. + LambdaArn *string `type:"string" sensitive:"true"` } // String returns the string representation -func (s RoomMembership) String() string { +func (s SipMediaApplicationEndpoint) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s RoomMembership) GoString() string { +func (s SipMediaApplicationEndpoint) GoString() string { return s.String() } -// SetInvitedBy sets the InvitedBy field's value. -func (s *RoomMembership) SetInvitedBy(v string) *RoomMembership { - s.InvitedBy = &v - return s -} - -// SetMember sets the Member field's value. -func (s *RoomMembership) SetMember(v *Member) *RoomMembership { - s.Member = v - return s -} - -// SetRole sets the Role field's value. -func (s *RoomMembership) SetRole(v string) *RoomMembership { - s.Role = &v - return s -} - -// SetRoomId sets the RoomId field's value. -func (s *RoomMembership) SetRoomId(v string) *RoomMembership { - s.RoomId = &v - return s -} - -// SetUpdatedTimestamp sets the UpdatedTimestamp field's value. -func (s *RoomMembership) SetUpdatedTimestamp(v time.Time) *RoomMembership { - s.UpdatedTimestamp = &v +// SetLambdaArn sets the LambdaArn field's value. +func (s *SipMediaApplicationEndpoint) SetLambdaArn(v string) *SipMediaApplicationEndpoint { + s.LambdaArn = &v return s } -// The retention settings that determine how long to retain chat room messages -// for an Amazon Chime Enterprise account. -type RoomRetentionSettings struct { +// Logging configuration of the SIP media application. +type SipMediaApplicationLoggingConfiguration struct { _ struct{} `type:"structure"` - // The number of days for which to retain chat room messages. - RetentionDays *int64 `min:"1" type:"integer"` + // Enables application message logs for the SIP media application. + EnableSipMediaApplicationMessageLogs *bool `type:"boolean"` } // String returns the string representation -func (s RoomRetentionSettings) String() string { +func (s SipMediaApplicationLoggingConfiguration) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s RoomRetentionSettings) GoString() string { +func (s SipMediaApplicationLoggingConfiguration) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *RoomRetentionSettings) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "RoomRetentionSettings"} - if s.RetentionDays != nil && *s.RetentionDays < 1 { - invalidParams.Add(request.NewErrParamMinValue("RetentionDays", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetRetentionDays sets the RetentionDays field's value. -func (s *RoomRetentionSettings) SetRetentionDays(v int64) *RoomRetentionSettings { - s.RetentionDays = &v +// SetEnableSipMediaApplicationMessageLogs sets the EnableSipMediaApplicationMessageLogs field's value. +func (s *SipMediaApplicationLoggingConfiguration) SetEnableSipMediaApplicationMessageLogs(v bool) *SipMediaApplicationLoggingConfiguration { + s.EnableSipMediaApplicationMessageLogs = &v return s } -type SearchAvailablePhoneNumbersInput struct { +// The SIP rule details, including name, triggers, and target applications. +// An AWS account can have multiple SIP rules. +type SipRule struct { _ struct{} `type:"structure"` - // The area code used to filter results. - AreaCode *string `location:"querystring" locationName:"area-code" type:"string"` + // The SIP rule created timestamp, in ISO 8601 format. + CreatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` - // The city used to filter results. - City *string `location:"querystring" locationName:"city" type:"string"` + // Indicates if the SIP rule is enabled or disabled. You must disable a rule + // before you can delete it. + Disabled *bool `type:"boolean"` - // The country used to filter results. - Country *string `location:"querystring" locationName:"country" type:"string"` + // The name of the SIP rule. + Name *string `min:"1" type:"string"` - // The maximum number of results to return in a single call. - MaxResults *int64 `location:"querystring" locationName:"max-results" min:"1" type:"integer"` + // The SIP rule ID. + SipRuleId *string `type:"string"` - // The token to use to retrieve the next page of results. - NextToken *string `location:"querystring" locationName:"next-token" type:"string"` + // List of SIP media applications with priority and AWS Region. You can only + // use one SIP application per AWS Region and priority combination. + TargetApplications []*SipRuleTargetApplication `min:"1" type:"list"` - // The state used to filter results. - State *string `location:"querystring" locationName:"state" type:"string"` + // The type of trigger whose value is assigned to the SIP rule in TriggerValue. + TriggerType *string `type:"string" enum:"SipRuleTriggerType"` - // The toll-free prefix that you use to filter results. - TollFreePrefix *string `location:"querystring" locationName:"toll-free-prefix" min:"3" type:"string"` + // If TriggerType is RequestUriHostname, then the value can be the outbound + // host name of the Amazon Chime Voice Connector. If TriggerType is ToPhoneNumber, + // then the value can be a customer-owned phone number in E164 format. SipRule + // is triggered when a SIP rule requests host name or ToPhoneNumber matches + // in the incoming SIP request. + TriggerValue *string `type:"string"` + + // The SIP rule updated timestamp, in ISO 8601 format. + UpdatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` } // String returns the string representation -func (s SearchAvailablePhoneNumbersInput) String() string { +func (s SipRule) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s SearchAvailablePhoneNumbersInput) GoString() string { +func (s SipRule) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *SearchAvailablePhoneNumbersInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "SearchAvailablePhoneNumbersInput"} - if s.MaxResults != nil && *s.MaxResults < 1 { - invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) - } - if s.TollFreePrefix != nil && len(*s.TollFreePrefix) < 3 { - invalidParams.Add(request.NewErrParamMinLen("TollFreePrefix", 3)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetCreatedTimestamp sets the CreatedTimestamp field's value. +func (s *SipRule) SetCreatedTimestamp(v time.Time) *SipRule { + s.CreatedTimestamp = &v + return s } -// SetAreaCode sets the AreaCode field's value. -func (s *SearchAvailablePhoneNumbersInput) SetAreaCode(v string) *SearchAvailablePhoneNumbersInput { - s.AreaCode = &v +// SetDisabled sets the Disabled field's value. +func (s *SipRule) SetDisabled(v bool) *SipRule { + s.Disabled = &v return s } -// SetCity sets the City field's value. -func (s *SearchAvailablePhoneNumbersInput) SetCity(v string) *SearchAvailablePhoneNumbersInput { - s.City = &v +// SetName sets the Name field's value. +func (s *SipRule) SetName(v string) *SipRule { + s.Name = &v return s } -// SetCountry sets the Country field's value. -func (s *SearchAvailablePhoneNumbersInput) SetCountry(v string) *SearchAvailablePhoneNumbersInput { - s.Country = &v +// SetSipRuleId sets the SipRuleId field's value. +func (s *SipRule) SetSipRuleId(v string) *SipRule { + s.SipRuleId = &v return s } -// SetMaxResults sets the MaxResults field's value. -func (s *SearchAvailablePhoneNumbersInput) SetMaxResults(v int64) *SearchAvailablePhoneNumbersInput { - s.MaxResults = &v +// SetTargetApplications sets the TargetApplications field's value. +func (s *SipRule) SetTargetApplications(v []*SipRuleTargetApplication) *SipRule { + s.TargetApplications = v return s } -// SetNextToken sets the NextToken field's value. -func (s *SearchAvailablePhoneNumbersInput) SetNextToken(v string) *SearchAvailablePhoneNumbersInput { - s.NextToken = &v +// SetTriggerType sets the TriggerType field's value. +func (s *SipRule) SetTriggerType(v string) *SipRule { + s.TriggerType = &v return s } -// SetState sets the State field's value. -func (s *SearchAvailablePhoneNumbersInput) SetState(v string) *SearchAvailablePhoneNumbersInput { - s.State = &v +// SetTriggerValue sets the TriggerValue field's value. +func (s *SipRule) SetTriggerValue(v string) *SipRule { + s.TriggerValue = &v return s } -// SetTollFreePrefix sets the TollFreePrefix field's value. -func (s *SearchAvailablePhoneNumbersInput) SetTollFreePrefix(v string) *SearchAvailablePhoneNumbersInput { - s.TollFreePrefix = &v +// SetUpdatedTimestamp sets the UpdatedTimestamp field's value. +func (s *SipRule) SetUpdatedTimestamp(v time.Time) *SipRule { + s.UpdatedTimestamp = &v return s } -type SearchAvailablePhoneNumbersOutput struct { +// Target SIP media application along with other details like priority and AWS +// Region to be specified in the SIP rule. Only one SIP rule per AWS Region +// can be provided. +type SipRuleTargetApplication struct { _ struct{} `type:"structure"` - // List of phone numbers, in E.164 format. - E164PhoneNumbers []*string `type:"list"` -} - -// String returns the string representation -func (s SearchAvailablePhoneNumbersOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s SearchAvailablePhoneNumbersOutput) GoString() string { - return s.String() -} - -// SetE164PhoneNumbers sets the E164PhoneNumbers field's value. -func (s *SearchAvailablePhoneNumbersOutput) SetE164PhoneNumbers(v []*string) *SearchAvailablePhoneNumbersOutput { - s.E164PhoneNumbers = v - return s -} - -// The service encountered an unexpected error. -type ServiceFailureException struct { - _ struct{} `type:"structure"` - RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + // AWS Region of target application. + AwsRegion *string `type:"string"` - Code_ *string `locationName:"Code" type:"string" enum:"ErrorCode"` + // Priority of the SIP media application in the target list. + Priority *int64 `min:"1" type:"integer"` - Message_ *string `locationName:"Message" type:"string"` + // The SIP media application ID. + SipMediaApplicationId *string `type:"string"` } // String returns the string representation -func (s ServiceFailureException) String() string { +func (s SipRuleTargetApplication) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ServiceFailureException) GoString() string { +func (s SipRuleTargetApplication) GoString() string { return s.String() } -func newErrorServiceFailureException(v protocol.ResponseMetadata) error { - return &ServiceFailureException{ - RespMetadata: v, +// Validate inspects the fields of the type to determine if they are valid. +func (s *SipRuleTargetApplication) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "SipRuleTargetApplication"} + if s.Priority != nil && *s.Priority < 1 { + invalidParams.Add(request.NewErrParamMinValue("Priority", 1)) } -} - -// Code returns the exception type name. -func (s *ServiceFailureException) Code() string { - return "ServiceFailureException" -} -// Message returns the exception's message. -func (s *ServiceFailureException) Message() string { - if s.Message_ != nil { - return *s.Message_ + if invalidParams.Len() > 0 { + return invalidParams } - return "" + return nil } -// OrigErr always returns nil, satisfies awserr.Error interface. -func (s *ServiceFailureException) OrigErr() error { - return nil +// SetAwsRegion sets the AwsRegion field's value. +func (s *SipRuleTargetApplication) SetAwsRegion(v string) *SipRuleTargetApplication { + s.AwsRegion = &v + return s } -func (s *ServiceFailureException) Error() string { - return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +// SetPriority sets the Priority field's value. +func (s *SipRuleTargetApplication) SetPriority(v int64) *SipRuleTargetApplication { + s.Priority = &v + return s } -// Status code returns the HTTP status code for the request's response error. -func (s *ServiceFailureException) StatusCode() int { - return s.RespMetadata.StatusCode +// SetSipMediaApplicationId sets the SipMediaApplicationId field's value. +func (s *SipRuleTargetApplication) SetSipMediaApplicationId(v string) *SipRuleTargetApplication { + s.SipMediaApplicationId = &v + return s } -// RequestID returns the service's response RequestID for request. -func (s *ServiceFailureException) RequestID() string { - return s.RespMetadata.RequestID -} +// The streaming configuration associated with an Amazon Chime Voice Connector. +// Specifies whether media streaming is enabled for sending to Amazon Kinesis, +// and shows the retention period for the Amazon Kinesis data, in hours. +type StreamingConfiguration struct { + _ struct{} `type:"structure"` -// The service is currently unavailable. -type ServiceUnavailableException struct { - _ struct{} `type:"structure"` - RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + // The retention period, in hours, for the Amazon Kinesis data. + // + // DataRetentionInHours is a required field + DataRetentionInHours *int64 `type:"integer" required:"true"` - Code_ *string `locationName:"Code" type:"string" enum:"ErrorCode"` + // When true, media streaming to Amazon Kinesis is turned off. + Disabled *bool `type:"boolean"` - Message_ *string `locationName:"Message" type:"string"` + // The streaming notification targets. + StreamingNotificationTargets []*StreamingNotificationTarget `min:"1" type:"list"` } // String returns the string representation -func (s ServiceUnavailableException) String() string { +func (s StreamingConfiguration) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ServiceUnavailableException) GoString() string { +func (s StreamingConfiguration) GoString() string { return s.String() } -func newErrorServiceUnavailableException(v protocol.ResponseMetadata) error { - return &ServiceUnavailableException{ - RespMetadata: v, +// Validate inspects the fields of the type to determine if they are valid. +func (s *StreamingConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "StreamingConfiguration"} + if s.DataRetentionInHours == nil { + invalidParams.Add(request.NewErrParamRequired("DataRetentionInHours")) } -} - -// Code returns the exception type name. -func (s *ServiceUnavailableException) Code() string { - return "ServiceUnavailableException" -} - -// Message returns the exception's message. -func (s *ServiceUnavailableException) Message() string { - if s.Message_ != nil { - return *s.Message_ + if s.StreamingNotificationTargets != nil && len(s.StreamingNotificationTargets) < 1 { + invalidParams.Add(request.NewErrParamMinLen("StreamingNotificationTargets", 1)) + } + if s.StreamingNotificationTargets != nil { + for i, v := range s.StreamingNotificationTargets { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "StreamingNotificationTargets", i), err.(request.ErrInvalidParams)) + } + } } - return "" -} -// OrigErr always returns nil, satisfies awserr.Error interface. -func (s *ServiceUnavailableException) OrigErr() error { + if invalidParams.Len() > 0 { + return invalidParams + } return nil } -func (s *ServiceUnavailableException) Error() string { - return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +// SetDataRetentionInHours sets the DataRetentionInHours field's value. +func (s *StreamingConfiguration) SetDataRetentionInHours(v int64) *StreamingConfiguration { + s.DataRetentionInHours = &v + return s } -// Status code returns the HTTP status code for the request's response error. -func (s *ServiceUnavailableException) StatusCode() int { - return s.RespMetadata.StatusCode +// SetDisabled sets the Disabled field's value. +func (s *StreamingConfiguration) SetDisabled(v bool) *StreamingConfiguration { + s.Disabled = &v + return s } -// RequestID returns the service's response RequestID for request. -func (s *ServiceUnavailableException) RequestID() string { - return s.RespMetadata.RequestID +// SetStreamingNotificationTargets sets the StreamingNotificationTargets field's value. +func (s *StreamingConfiguration) SetStreamingNotificationTargets(v []*StreamingNotificationTarget) *StreamingConfiguration { + s.StreamingNotificationTargets = v + return s } -// An Active Directory (AD) group whose members are granted permission to act -// as delegates. -type SigninDelegateGroup struct { +// The targeted recipient for a streaming configuration notification. +type StreamingNotificationTarget struct { _ struct{} `type:"structure"` - // The group name. - GroupName *string `type:"string"` + // The streaming notification target. + // + // NotificationTarget is a required field + NotificationTarget *string `type:"string" required:"true" enum:"NotificationTarget"` } // String returns the string representation -func (s SigninDelegateGroup) String() string { +func (s StreamingNotificationTarget) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s SigninDelegateGroup) GoString() string { +func (s StreamingNotificationTarget) GoString() string { return s.String() } -// SetGroupName sets the GroupName field's value. -func (s *SigninDelegateGroup) SetGroupName(v string) *SigninDelegateGroup { - s.GroupName = &v +// Validate inspects the fields of the type to determine if they are valid. +func (s *StreamingNotificationTarget) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "StreamingNotificationTarget"} + if s.NotificationTarget == nil { + invalidParams.Add(request.NewErrParamRequired("NotificationTarget")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetNotificationTarget sets the NotificationTarget field's value. +func (s *StreamingNotificationTarget) SetNotificationTarget(v string) *StreamingNotificationTarget { + s.NotificationTarget = &v return s } -// The SIP media application details, including name and endpoints. An AWS account -// can have multiple SIP media applications. -type SipMediaApplication struct { +// Describes a tag applied to a resource. +type Tag struct { _ struct{} `type:"structure"` - // The AWS Region in which the SIP media application is created. - AwsRegion *string `type:"string"` - - // The SIP media application creation timestamp, in ISO 8601 format. - CreatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` - - // List of endpoints for SIP media application. Currently, only one endpoint - // per SIP media application is permitted. - Endpoints []*SipMediaApplicationEndpoint `min:"1" type:"list"` - - // The name of the SIP media application. - Name *string `min:"1" type:"string"` - - // The SIP media application ID. - SipMediaApplicationId *string `type:"string"` + // The key of the tag. + // + // Key is a required field + Key *string `min:"1" type:"string" required:"true" sensitive:"true"` - // The SIP media application updated timestamp, in ISO 8601 format. - UpdatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` + // The value of the tag. + // + // Value is a required field + Value *string `min:"1" type:"string" required:"true" sensitive:"true"` } // String returns the string representation -func (s SipMediaApplication) String() string { +func (s Tag) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s SipMediaApplication) GoString() string { +func (s Tag) GoString() string { return s.String() } -// SetAwsRegion sets the AwsRegion field's value. -func (s *SipMediaApplication) SetAwsRegion(v string) *SipMediaApplication { - s.AwsRegion = &v - return s -} +// Validate inspects the fields of the type to determine if they are valid. +func (s *Tag) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "Tag"} + if s.Key == nil { + invalidParams.Add(request.NewErrParamRequired("Key")) + } + if s.Key != nil && len(*s.Key) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Key", 1)) + } + if s.Value == nil { + invalidParams.Add(request.NewErrParamRequired("Value")) + } + if s.Value != nil && len(*s.Value) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Value", 1)) + } -// SetCreatedTimestamp sets the CreatedTimestamp field's value. -func (s *SipMediaApplication) SetCreatedTimestamp(v time.Time) *SipMediaApplication { - s.CreatedTimestamp = &v - return s + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// SetEndpoints sets the Endpoints field's value. -func (s *SipMediaApplication) SetEndpoints(v []*SipMediaApplicationEndpoint) *SipMediaApplication { - s.Endpoints = v +// SetKey sets the Key field's value. +func (s *Tag) SetKey(v string) *Tag { + s.Key = &v return s } -// SetName sets the Name field's value. -func (s *SipMediaApplication) SetName(v string) *SipMediaApplication { - s.Name = &v +// SetValue sets the Value field's value. +func (s *Tag) SetValue(v string) *Tag { + s.Value = &v return s } -// SetSipMediaApplicationId sets the SipMediaApplicationId field's value. -func (s *SipMediaApplication) SetSipMediaApplicationId(v string) *SipMediaApplication { - s.SipMediaApplicationId = &v - return s -} +type TagAttendeeInput struct { + _ struct{} `type:"structure"` -// SetUpdatedTimestamp sets the UpdatedTimestamp field's value. -func (s *SipMediaApplication) SetUpdatedTimestamp(v time.Time) *SipMediaApplication { - s.UpdatedTimestamp = &v - return s -} + // The Amazon Chime SDK attendee ID. + // + // AttendeeId is a required field + AttendeeId *string `location:"uri" locationName:"attendeeId" type:"string" required:"true"` -// A Call instance for a SIP media application. -type SipMediaApplicationCall struct { - _ struct{} `type:"structure"` + // The Amazon Chime SDK meeting ID. + // + // MeetingId is a required field + MeetingId *string `location:"uri" locationName:"meetingId" type:"string" required:"true"` - // The transaction ID of a call. - TransactionId *string `type:"string"` + // The tag key-value pairs. + // + // Tags is a required field + Tags []*Tag `min:"1" type:"list" required:"true"` } // String returns the string representation -func (s SipMediaApplicationCall) String() string { +func (s TagAttendeeInput) String() string { return awsutil.Prettify(s) } -// GoString returns the string representation -func (s SipMediaApplicationCall) GoString() string { - return s.String() +// GoString returns the string representation +func (s TagAttendeeInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *TagAttendeeInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "TagAttendeeInput"} + if s.AttendeeId == nil { + invalidParams.Add(request.NewErrParamRequired("AttendeeId")) + } + if s.AttendeeId != nil && len(*s.AttendeeId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AttendeeId", 1)) + } + if s.MeetingId == nil { + invalidParams.Add(request.NewErrParamRequired("MeetingId")) + } + if s.MeetingId != nil && len(*s.MeetingId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("MeetingId", 1)) + } + if s.Tags == nil { + invalidParams.Add(request.NewErrParamRequired("Tags")) + } + if s.Tags != nil && len(s.Tags) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Tags", 1)) + } + if s.Tags != nil { + for i, v := range s.Tags { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// SetTransactionId sets the TransactionId field's value. -func (s *SipMediaApplicationCall) SetTransactionId(v string) *SipMediaApplicationCall { - s.TransactionId = &v +// SetAttendeeId sets the AttendeeId field's value. +func (s *TagAttendeeInput) SetAttendeeId(v string) *TagAttendeeInput { + s.AttendeeId = &v return s } -// Endpoints to specify as part of a SIP media application. -type SipMediaApplicationEndpoint struct { - _ struct{} `type:"structure"` - - // Valid Amazon Resource Name (ARN) of the Lambda function of the same AWS Region - // where the SIP media application is created. - LambdaArn *string `type:"string" sensitive:"true"` -} - -// String returns the string representation -func (s SipMediaApplicationEndpoint) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s SipMediaApplicationEndpoint) GoString() string { - return s.String() +// SetMeetingId sets the MeetingId field's value. +func (s *TagAttendeeInput) SetMeetingId(v string) *TagAttendeeInput { + s.MeetingId = &v + return s } -// SetLambdaArn sets the LambdaArn field's value. -func (s *SipMediaApplicationEndpoint) SetLambdaArn(v string) *SipMediaApplicationEndpoint { - s.LambdaArn = &v +// SetTags sets the Tags field's value. +func (s *TagAttendeeInput) SetTags(v []*Tag) *TagAttendeeInput { + s.Tags = v return s } -// Logging configuration of the SIP media application. -type SipMediaApplicationLoggingConfiguration struct { +type TagAttendeeOutput struct { _ struct{} `type:"structure"` - - // Enables application message logs for the SIP media application. - EnableSipMediaApplicationMessageLogs *bool `type:"boolean"` } // String returns the string representation -func (s SipMediaApplicationLoggingConfiguration) String() string { +func (s TagAttendeeOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s SipMediaApplicationLoggingConfiguration) GoString() string { +func (s TagAttendeeOutput) GoString() string { return s.String() } -// SetEnableSipMediaApplicationMessageLogs sets the EnableSipMediaApplicationMessageLogs field's value. -func (s *SipMediaApplicationLoggingConfiguration) SetEnableSipMediaApplicationMessageLogs(v bool) *SipMediaApplicationLoggingConfiguration { - s.EnableSipMediaApplicationMessageLogs = &v - return s -} - -// The SIP rule details, including name, triggers, and target applications. -// An AWS account can have multiple SIP rules. -type SipRule struct { +type TagMeetingInput struct { _ struct{} `type:"structure"` - // The SIP rule created timestamp, in ISO 8601 format. - CreatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` - - // Indicates if the SIP rule is enabled or disabled. You must disable a rule - // before you can delete it. - Disabled *bool `type:"boolean"` - - // The name of the SIP rule. - Name *string `min:"1" type:"string"` - - // The SIP rule ID. - SipRuleId *string `type:"string"` - - // List of SIP media applications with priority and AWS Region. You can only - // use one SIP application per AWS Region and priority combination. - TargetApplications []*SipRuleTargetApplication `min:"1" type:"list"` - - // The type of trigger whose value is assigned to the SIP rule in TriggerValue. - TriggerType *string `type:"string" enum:"SipRuleTriggerType"` - - // If TriggerType is RequestUriHostname, then the value can be the outbound - // host name of the Amazon Chime Voice Connector. If TriggerType is ToPhoneNumber, - // then the value can be a customer-owned phone number in E164 format. SipRule - // is triggered when a SIP rule requests host name or ToPhoneNumber matches - // in the incoming SIP request. - TriggerValue *string `type:"string"` + // The Amazon Chime SDK meeting ID. + // + // MeetingId is a required field + MeetingId *string `location:"uri" locationName:"meetingId" type:"string" required:"true"` - // The SIP rule updated timestamp, in ISO 8601 format. - UpdatedTimestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` + // The tag key-value pairs. + // + // Tags is a required field + Tags []*Tag `min:"1" type:"list" required:"true"` } // String returns the string representation -func (s SipRule) String() string { +func (s TagMeetingInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s SipRule) GoString() string { +func (s TagMeetingInput) GoString() string { return s.String() } -// SetCreatedTimestamp sets the CreatedTimestamp field's value. -func (s *SipRule) SetCreatedTimestamp(v time.Time) *SipRule { - s.CreatedTimestamp = &v - return s -} - -// SetDisabled sets the Disabled field's value. -func (s *SipRule) SetDisabled(v bool) *SipRule { - s.Disabled = &v - return s -} +// Validate inspects the fields of the type to determine if they are valid. +func (s *TagMeetingInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "TagMeetingInput"} + if s.MeetingId == nil { + invalidParams.Add(request.NewErrParamRequired("MeetingId")) + } + if s.MeetingId != nil && len(*s.MeetingId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("MeetingId", 1)) + } + if s.Tags == nil { + invalidParams.Add(request.NewErrParamRequired("Tags")) + } + if s.Tags != nil && len(s.Tags) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Tags", 1)) + } + if s.Tags != nil { + for i, v := range s.Tags { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) + } + } + } -// SetName sets the Name field's value. -func (s *SipRule) SetName(v string) *SipRule { - s.Name = &v - return s + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// SetSipRuleId sets the SipRuleId field's value. -func (s *SipRule) SetSipRuleId(v string) *SipRule { - s.SipRuleId = &v +// SetMeetingId sets the MeetingId field's value. +func (s *TagMeetingInput) SetMeetingId(v string) *TagMeetingInput { + s.MeetingId = &v return s } -// SetTargetApplications sets the TargetApplications field's value. -func (s *SipRule) SetTargetApplications(v []*SipRuleTargetApplication) *SipRule { - s.TargetApplications = v +// SetTags sets the Tags field's value. +func (s *TagMeetingInput) SetTags(v []*Tag) *TagMeetingInput { + s.Tags = v return s } -// SetTriggerType sets the TriggerType field's value. -func (s *SipRule) SetTriggerType(v string) *SipRule { - s.TriggerType = &v - return s +type TagMeetingOutput struct { + _ struct{} `type:"structure"` } -// SetTriggerValue sets the TriggerValue field's value. -func (s *SipRule) SetTriggerValue(v string) *SipRule { - s.TriggerValue = &v - return s +// String returns the string representation +func (s TagMeetingOutput) String() string { + return awsutil.Prettify(s) } -// SetUpdatedTimestamp sets the UpdatedTimestamp field's value. -func (s *SipRule) SetUpdatedTimestamp(v time.Time) *SipRule { - s.UpdatedTimestamp = &v - return s +// GoString returns the string representation +func (s TagMeetingOutput) GoString() string { + return s.String() } -// Target SIP media application along with other details like priority and AWS -// Region to be specified in the SIP rule. Only one SIP rule per AWS Region -// can be provided. -type SipRuleTargetApplication struct { +type TagResourceInput struct { _ struct{} `type:"structure"` - // AWS Region of target application. - AwsRegion *string `type:"string"` - - // Priority of the SIP media application in the target list. - Priority *int64 `min:"1" type:"integer"` + // The resource ARN. + // + // ResourceARN is a required field + ResourceARN *string `min:"1" type:"string" required:"true" sensitive:"true"` - // The SIP media application ID. - SipMediaApplicationId *string `type:"string"` + // The tag key-value pairs. + // + // Tags is a required field + Tags []*Tag `min:"1" type:"list" required:"true"` } // String returns the string representation -func (s SipRuleTargetApplication) String() string { +func (s TagResourceInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s SipRuleTargetApplication) GoString() string { +func (s TagResourceInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *SipRuleTargetApplication) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "SipRuleTargetApplication"} - if s.Priority != nil && *s.Priority < 1 { - invalidParams.Add(request.NewErrParamMinValue("Priority", 1)) +func (s *TagResourceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "TagResourceInput"} + if s.ResourceARN == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceARN")) + } + if s.ResourceARN != nil && len(*s.ResourceARN) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResourceARN", 1)) + } + if s.Tags == nil { + invalidParams.Add(request.NewErrParamRequired("Tags")) + } + if s.Tags != nil && len(s.Tags) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Tags", 1)) + } + if s.Tags != nil { + for i, v := range s.Tags { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) + } + } } if invalidParams.Len() > 0 { @@ -25896,70 +36529,74 @@ func (s *SipRuleTargetApplication) Validate() error { return nil } -// SetAwsRegion sets the AwsRegion field's value. -func (s *SipRuleTargetApplication) SetAwsRegion(v string) *SipRuleTargetApplication { - s.AwsRegion = &v +// SetResourceARN sets the ResourceARN field's value. +func (s *TagResourceInput) SetResourceARN(v string) *TagResourceInput { + s.ResourceARN = &v return s } -// SetPriority sets the Priority field's value. -func (s *SipRuleTargetApplication) SetPriority(v int64) *SipRuleTargetApplication { - s.Priority = &v +// SetTags sets the Tags field's value. +func (s *TagResourceInput) SetTags(v []*Tag) *TagResourceInput { + s.Tags = v return s } -// SetSipMediaApplicationId sets the SipMediaApplicationId field's value. -func (s *SipRuleTargetApplication) SetSipMediaApplicationId(v string) *SipRuleTargetApplication { - s.SipMediaApplicationId = &v - return s +type TagResourceOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s TagResourceOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TagResourceOutput) GoString() string { + return s.String() } -// The streaming configuration associated with an Amazon Chime Voice Connector. -// Specifies whether media streaming is enabled for sending to Amazon Kinesis, -// and shows the retention period for the Amazon Kinesis data, in hours. -type StreamingConfiguration struct { +// Settings that allow management of telephony permissions for an Amazon Chime +// user, such as inbound and outbound calling and text messaging. +type TelephonySettings struct { _ struct{} `type:"structure"` - // The retention period, in hours, for the Amazon Kinesis data. + // Allows or denies inbound calling. // - // DataRetentionInHours is a required field - DataRetentionInHours *int64 `type:"integer" required:"true"` + // InboundCalling is a required field + InboundCalling *bool `type:"boolean" required:"true"` - // When true, media streaming to Amazon Kinesis is turned off. - Disabled *bool `type:"boolean"` + // Allows or denies outbound calling. + // + // OutboundCalling is a required field + OutboundCalling *bool `type:"boolean" required:"true"` - // The streaming notification targets. - StreamingNotificationTargets []*StreamingNotificationTarget `min:"1" type:"list"` + // Allows or denies SMS messaging. + // + // SMS is a required field + SMS *bool `type:"boolean" required:"true"` } // String returns the string representation -func (s StreamingConfiguration) String() string { +func (s TelephonySettings) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s StreamingConfiguration) GoString() string { +func (s TelephonySettings) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *StreamingConfiguration) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "StreamingConfiguration"} - if s.DataRetentionInHours == nil { - invalidParams.Add(request.NewErrParamRequired("DataRetentionInHours")) +func (s *TelephonySettings) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "TelephonySettings"} + if s.InboundCalling == nil { + invalidParams.Add(request.NewErrParamRequired("InboundCalling")) } - if s.StreamingNotificationTargets != nil && len(s.StreamingNotificationTargets) < 1 { - invalidParams.Add(request.NewErrParamMinLen("StreamingNotificationTargets", 1)) + if s.OutboundCalling == nil { + invalidParams.Add(request.NewErrParamRequired("OutboundCalling")) } - if s.StreamingNotificationTargets != nil { - for i, v := range s.StreamingNotificationTargets { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "StreamingNotificationTargets", i), err.(request.ErrInvalidParams)) - } - } + if s.SMS == nil { + invalidParams.Add(request.NewErrParamRequired("SMS")) } if invalidParams.Len() > 0 { @@ -25968,49 +36605,61 @@ func (s *StreamingConfiguration) Validate() error { return nil } -// SetDataRetentionInHours sets the DataRetentionInHours field's value. -func (s *StreamingConfiguration) SetDataRetentionInHours(v int64) *StreamingConfiguration { - s.DataRetentionInHours = &v +// SetInboundCalling sets the InboundCalling field's value. +func (s *TelephonySettings) SetInboundCalling(v bool) *TelephonySettings { + s.InboundCalling = &v return s } -// SetDisabled sets the Disabled field's value. -func (s *StreamingConfiguration) SetDisabled(v bool) *StreamingConfiguration { - s.Disabled = &v +// SetOutboundCalling sets the OutboundCalling field's value. +func (s *TelephonySettings) SetOutboundCalling(v bool) *TelephonySettings { + s.OutboundCalling = &v return s } -// SetStreamingNotificationTargets sets the StreamingNotificationTargets field's value. -func (s *StreamingConfiguration) SetStreamingNotificationTargets(v []*StreamingNotificationTarget) *StreamingConfiguration { - s.StreamingNotificationTargets = v +// SetSMS sets the SMS field's value. +func (s *TelephonySettings) SetSMS(v bool) *TelephonySettings { + s.SMS = &v return s } -// The targeted recipient for a streaming configuration notification. -type StreamingNotificationTarget struct { +// Termination settings enable your SIP hosts to make outbound calls using your +// Amazon Chime Voice Connector. +type Termination struct { _ struct{} `type:"structure"` - // The streaming notification target. - // - // NotificationTarget is a required field - NotificationTarget *string `type:"string" required:"true" enum:"NotificationTarget"` + // The countries to which calls are allowed, in ISO 3166-1 alpha-2 format. Required. + CallingRegions []*string `type:"list"` + + // The IP addresses allowed to make calls, in CIDR format. Required. + CidrAllowedList []*string `type:"list"` + + // The limit on calls per second. Max value based on account service quota. + // Default value of 1. + CpsLimit *int64 `min:"1" type:"integer"` + + // The default caller ID phone number. + DefaultPhoneNumber *string `type:"string" sensitive:"true"` + + // When termination settings are disabled, outbound calls can not be made. + Disabled *bool `type:"boolean"` } // String returns the string representation -func (s StreamingNotificationTarget) String() string { +func (s Termination) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s StreamingNotificationTarget) GoString() string { +func (s Termination) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *StreamingNotificationTarget) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "StreamingNotificationTarget"} - if s.NotificationTarget == nil { - invalidParams.Add(request.NewErrParamRequired("NotificationTarget")) +func (s *Termination) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "Termination"} + if s.CpsLimit != nil && *s.CpsLimit < 1 { + invalidParams.Add(request.NewErrParamMinValue("CpsLimit", 1)) } if invalidParams.Len() > 0 { @@ -26019,376 +36668,294 @@ func (s *StreamingNotificationTarget) Validate() error { return nil } -// SetNotificationTarget sets the NotificationTarget field's value. -func (s *StreamingNotificationTarget) SetNotificationTarget(v string) *StreamingNotificationTarget { - s.NotificationTarget = &v +// SetCallingRegions sets the CallingRegions field's value. +func (s *Termination) SetCallingRegions(v []*string) *Termination { + s.CallingRegions = v return s } -// Describes a tag applied to a resource. -type Tag struct { +// SetCidrAllowedList sets the CidrAllowedList field's value. +func (s *Termination) SetCidrAllowedList(v []*string) *Termination { + s.CidrAllowedList = v + return s +} + +// SetCpsLimit sets the CpsLimit field's value. +func (s *Termination) SetCpsLimit(v int64) *Termination { + s.CpsLimit = &v + return s +} + +// SetDefaultPhoneNumber sets the DefaultPhoneNumber field's value. +func (s *Termination) SetDefaultPhoneNumber(v string) *Termination { + s.DefaultPhoneNumber = &v + return s +} + +// SetDisabled sets the Disabled field's value. +func (s *Termination) SetDisabled(v bool) *Termination { + s.Disabled = &v + return s +} + +// The termination health details, including the source IP address and timestamp +// of the last successful SIP OPTIONS message from your SIP infrastructure. +type TerminationHealth struct { _ struct{} `type:"structure"` - // The key of the tag. - // - // Key is a required field - Key *string `min:"1" type:"string" required:"true" sensitive:"true"` + // The source IP address. + Source *string `type:"string"` - // The value of the tag. - // - // Value is a required field - Value *string `min:"1" type:"string" required:"true" sensitive:"true"` + // The timestamp, in ISO 8601 format. + Timestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` } // String returns the string representation -func (s Tag) String() string { +func (s TerminationHealth) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s Tag) GoString() string { +func (s TerminationHealth) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *Tag) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "Tag"} - if s.Key == nil { - invalidParams.Add(request.NewErrParamRequired("Key")) - } - if s.Key != nil && len(*s.Key) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Key", 1)) - } - if s.Value == nil { - invalidParams.Add(request.NewErrParamRequired("Value")) - } - if s.Value != nil && len(*s.Value) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Value", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetKey sets the Key field's value. -func (s *Tag) SetKey(v string) *Tag { - s.Key = &v +// SetSource sets the Source field's value. +func (s *TerminationHealth) SetSource(v string) *TerminationHealth { + s.Source = &v return s } -// SetValue sets the Value field's value. -func (s *Tag) SetValue(v string) *Tag { - s.Value = &v +// SetTimestamp sets the Timestamp field's value. +func (s *TerminationHealth) SetTimestamp(v time.Time) *TerminationHealth { + s.Timestamp = &v return s } -type TagAttendeeInput struct { - _ struct{} `type:"structure"` - - // The Amazon Chime SDK attendee ID. - // - // AttendeeId is a required field - AttendeeId *string `location:"uri" locationName:"attendeeId" type:"string" required:"true"` +// The client exceeded its request rate limit. +type ThrottledClientException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` - // The Amazon Chime SDK meeting ID. - // - // MeetingId is a required field - MeetingId *string `location:"uri" locationName:"meetingId" type:"string" required:"true"` + Code_ *string `locationName:"Code" type:"string" enum:"ErrorCode"` - // The tag key-value pairs. - // - // Tags is a required field - Tags []*Tag `min:"1" type:"list" required:"true"` + Message_ *string `locationName:"Message" type:"string"` } // String returns the string representation -func (s TagAttendeeInput) String() string { +func (s ThrottledClientException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s TagAttendeeInput) GoString() string { +func (s ThrottledClientException) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *TagAttendeeInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "TagAttendeeInput"} - if s.AttendeeId == nil { - invalidParams.Add(request.NewErrParamRequired("AttendeeId")) - } - if s.AttendeeId != nil && len(*s.AttendeeId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("AttendeeId", 1)) - } - if s.MeetingId == nil { - invalidParams.Add(request.NewErrParamRequired("MeetingId")) - } - if s.MeetingId != nil && len(*s.MeetingId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("MeetingId", 1)) - } - if s.Tags == nil { - invalidParams.Add(request.NewErrParamRequired("Tags")) - } - if s.Tags != nil && len(s.Tags) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Tags", 1)) - } - if s.Tags != nil { - for i, v := range s.Tags { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams +func newErrorThrottledClientException(v protocol.ResponseMetadata) error { + return &ThrottledClientException{ + RespMetadata: v, } - return nil } -// SetAttendeeId sets the AttendeeId field's value. -func (s *TagAttendeeInput) SetAttendeeId(v string) *TagAttendeeInput { - s.AttendeeId = &v - return s +// Code returns the exception type name. +func (s *ThrottledClientException) Code() string { + return "ThrottledClientException" } -// SetMeetingId sets the MeetingId field's value. -func (s *TagAttendeeInput) SetMeetingId(v string) *TagAttendeeInput { - s.MeetingId = &v - return s +// Message returns the exception's message. +func (s *ThrottledClientException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" } -// SetTags sets the Tags field's value. -func (s *TagAttendeeInput) SetTags(v []*Tag) *TagAttendeeInput { - s.Tags = v - return s +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *ThrottledClientException) OrigErr() error { + return nil } -type TagAttendeeOutput struct { - _ struct{} `type:"structure"` +func (s *ThrottledClientException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) } -// String returns the string representation -func (s TagAttendeeOutput) String() string { - return awsutil.Prettify(s) +// Status code returns the HTTP status code for the request's response error. +func (s *ThrottledClientException) StatusCode() int { + return s.RespMetadata.StatusCode } -// GoString returns the string representation -func (s TagAttendeeOutput) GoString() string { - return s.String() +// RequestID returns the service's response RequestID for request. +func (s *ThrottledClientException) RequestID() string { + return s.RespMetadata.RequestID } -type TagMeetingInput struct { - _ struct{} `type:"structure"` +// The client is not currently authorized to make the request. +type UnauthorizedClientException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` - // The Amazon Chime SDK meeting ID. - // - // MeetingId is a required field - MeetingId *string `location:"uri" locationName:"meetingId" type:"string" required:"true"` + Code_ *string `locationName:"Code" type:"string" enum:"ErrorCode"` - // The tag key-value pairs. - // - // Tags is a required field - Tags []*Tag `min:"1" type:"list" required:"true"` + Message_ *string `locationName:"Message" type:"string"` } // String returns the string representation -func (s TagMeetingInput) String() string { +func (s UnauthorizedClientException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s TagMeetingInput) GoString() string { +func (s UnauthorizedClientException) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *TagMeetingInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "TagMeetingInput"} - if s.MeetingId == nil { - invalidParams.Add(request.NewErrParamRequired("MeetingId")) - } - if s.MeetingId != nil && len(*s.MeetingId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("MeetingId", 1)) - } - if s.Tags == nil { - invalidParams.Add(request.NewErrParamRequired("Tags")) - } - if s.Tags != nil && len(s.Tags) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Tags", 1)) - } - if s.Tags != nil { - for i, v := range s.Tags { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) - } - } +func newErrorUnauthorizedClientException(v protocol.ResponseMetadata) error { + return &UnauthorizedClientException{ + RespMetadata: v, } +} - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// Code returns the exception type name. +func (s *UnauthorizedClientException) Code() string { + return "UnauthorizedClientException" } -// SetMeetingId sets the MeetingId field's value. -func (s *TagMeetingInput) SetMeetingId(v string) *TagMeetingInput { - s.MeetingId = &v - return s +// Message returns the exception's message. +func (s *UnauthorizedClientException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" } -// SetTags sets the Tags field's value. -func (s *TagMeetingInput) SetTags(v []*Tag) *TagMeetingInput { - s.Tags = v - return s +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *UnauthorizedClientException) OrigErr() error { + return nil } -type TagMeetingOutput struct { - _ struct{} `type:"structure"` +func (s *UnauthorizedClientException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) } -// String returns the string representation -func (s TagMeetingOutput) String() string { - return awsutil.Prettify(s) +// Status code returns the HTTP status code for the request's response error. +func (s *UnauthorizedClientException) StatusCode() int { + return s.RespMetadata.StatusCode } -// GoString returns the string representation -func (s TagMeetingOutput) GoString() string { - return s.String() +// RequestID returns the service's response RequestID for request. +func (s *UnauthorizedClientException) RequestID() string { + return s.RespMetadata.RequestID } -type TagResourceInput struct { - _ struct{} `type:"structure"` +// The request was well-formed but was unable to be followed due to semantic +// errors. +type UnprocessableEntityException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` - // The resource ARN. - // - // ResourceARN is a required field - ResourceARN *string `min:"1" type:"string" required:"true" sensitive:"true"` + Code_ *string `locationName:"Code" type:"string" enum:"ErrorCode"` - // The tag key-value pairs. - // - // Tags is a required field - Tags []*Tag `min:"1" type:"list" required:"true"` + Message_ *string `locationName:"Message" type:"string"` } // String returns the string representation -func (s TagResourceInput) String() string { +func (s UnprocessableEntityException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s TagResourceInput) GoString() string { +func (s UnprocessableEntityException) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *TagResourceInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "TagResourceInput"} - if s.ResourceARN == nil { - invalidParams.Add(request.NewErrParamRequired("ResourceARN")) - } - if s.ResourceARN != nil && len(*s.ResourceARN) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ResourceARN", 1)) - } - if s.Tags == nil { - invalidParams.Add(request.NewErrParamRequired("Tags")) - } - if s.Tags != nil && len(s.Tags) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Tags", 1)) - } - if s.Tags != nil { - for i, v := range s.Tags { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) - } - } +func newErrorUnprocessableEntityException(v protocol.ResponseMetadata) error { + return &UnprocessableEntityException{ + RespMetadata: v, } +} - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// Code returns the exception type name. +func (s *UnprocessableEntityException) Code() string { + return "UnprocessableEntityException" } -// SetResourceARN sets the ResourceARN field's value. -func (s *TagResourceInput) SetResourceARN(v string) *TagResourceInput { - s.ResourceARN = &v - return s +// Message returns the exception's message. +func (s *UnprocessableEntityException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" } -// SetTags sets the Tags field's value. -func (s *TagResourceInput) SetTags(v []*Tag) *TagResourceInput { - s.Tags = v - return s +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *UnprocessableEntityException) OrigErr() error { + return nil } -type TagResourceOutput struct { - _ struct{} `type:"structure"` +func (s *UnprocessableEntityException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) } -// String returns the string representation -func (s TagResourceOutput) String() string { - return awsutil.Prettify(s) +// Status code returns the HTTP status code for the request's response error. +func (s *UnprocessableEntityException) StatusCode() int { + return s.RespMetadata.StatusCode } -// GoString returns the string representation -func (s TagResourceOutput) GoString() string { - return s.String() +// RequestID returns the service's response RequestID for request. +func (s *UnprocessableEntityException) RequestID() string { + return s.RespMetadata.RequestID } -// Settings that allow management of telephony permissions for an Amazon Chime -// user, such as inbound and outbound calling and text messaging. -type TelephonySettings struct { +type UntagAttendeeInput struct { _ struct{} `type:"structure"` - // Allows or denies inbound calling. + // The Amazon Chime SDK attendee ID. // - // InboundCalling is a required field - InboundCalling *bool `type:"boolean" required:"true"` + // AttendeeId is a required field + AttendeeId *string `location:"uri" locationName:"attendeeId" type:"string" required:"true"` - // Allows or denies outbound calling. + // The Amazon Chime SDK meeting ID. // - // OutboundCalling is a required field - OutboundCalling *bool `type:"boolean" required:"true"` + // MeetingId is a required field + MeetingId *string `location:"uri" locationName:"meetingId" type:"string" required:"true"` - // Allows or denies SMS messaging. + // The tag keys. // - // SMS is a required field - SMS *bool `type:"boolean" required:"true"` + // TagKeys is a required field + TagKeys []*string `min:"1" type:"list" required:"true"` } // String returns the string representation -func (s TelephonySettings) String() string { +func (s UntagAttendeeInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s TelephonySettings) GoString() string { +func (s UntagAttendeeInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *TelephonySettings) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "TelephonySettings"} - if s.InboundCalling == nil { - invalidParams.Add(request.NewErrParamRequired("InboundCalling")) +func (s *UntagAttendeeInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UntagAttendeeInput"} + if s.AttendeeId == nil { + invalidParams.Add(request.NewErrParamRequired("AttendeeId")) + } + if s.AttendeeId != nil && len(*s.AttendeeId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AttendeeId", 1)) } - if s.OutboundCalling == nil { - invalidParams.Add(request.NewErrParamRequired("OutboundCalling")) + if s.MeetingId == nil { + invalidParams.Add(request.NewErrParamRequired("MeetingId")) } - if s.SMS == nil { - invalidParams.Add(request.NewErrParamRequired("SMS")) + if s.MeetingId != nil && len(*s.MeetingId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("MeetingId", 1)) + } + if s.TagKeys == nil { + invalidParams.Add(request.NewErrParamRequired("TagKeys")) + } + if s.TagKeys != nil && len(s.TagKeys) < 1 { + invalidParams.Add(request.NewErrParamMinLen("TagKeys", 1)) } if invalidParams.Len() > 0 { @@ -26397,61 +36964,76 @@ func (s *TelephonySettings) Validate() error { return nil } -// SetInboundCalling sets the InboundCalling field's value. -func (s *TelephonySettings) SetInboundCalling(v bool) *TelephonySettings { - s.InboundCalling = &v +// SetAttendeeId sets the AttendeeId field's value. +func (s *UntagAttendeeInput) SetAttendeeId(v string) *UntagAttendeeInput { + s.AttendeeId = &v return s } -// SetOutboundCalling sets the OutboundCalling field's value. -func (s *TelephonySettings) SetOutboundCalling(v bool) *TelephonySettings { - s.OutboundCalling = &v +// SetMeetingId sets the MeetingId field's value. +func (s *UntagAttendeeInput) SetMeetingId(v string) *UntagAttendeeInput { + s.MeetingId = &v return s } -// SetSMS sets the SMS field's value. -func (s *TelephonySettings) SetSMS(v bool) *TelephonySettings { - s.SMS = &v +// SetTagKeys sets the TagKeys field's value. +func (s *UntagAttendeeInput) SetTagKeys(v []*string) *UntagAttendeeInput { + s.TagKeys = v return s } -// Termination settings enable your SIP hosts to make outbound calls using your -// Amazon Chime Voice Connector. -type Termination struct { +type UntagAttendeeOutput struct { _ struct{} `type:"structure"` +} - // The countries to which calls are allowed, in ISO 3166-1 alpha-2 format. Required. - CallingRegions []*string `type:"list"` +// String returns the string representation +func (s UntagAttendeeOutput) String() string { + return awsutil.Prettify(s) +} - // The IP addresses allowed to make calls, in CIDR format. Required. - CidrAllowedList []*string `type:"list"` +// GoString returns the string representation +func (s UntagAttendeeOutput) GoString() string { + return s.String() +} - // The limit on calls per second. Max value based on account service quota. - // Default value of 1. - CpsLimit *int64 `min:"1" type:"integer"` +type UntagMeetingInput struct { + _ struct{} `type:"structure"` - // The default caller ID phone number. - DefaultPhoneNumber *string `type:"string" sensitive:"true"` + // The Amazon Chime SDK meeting ID. + // + // MeetingId is a required field + MeetingId *string `location:"uri" locationName:"meetingId" type:"string" required:"true"` - // When termination settings are disabled, outbound calls can not be made. - Disabled *bool `type:"boolean"` + // The tag keys. + // + // TagKeys is a required field + TagKeys []*string `min:"1" type:"list" required:"true"` } // String returns the string representation -func (s Termination) String() string { +func (s UntagMeetingInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s Termination) GoString() string { +func (s UntagMeetingInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *Termination) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "Termination"} - if s.CpsLimit != nil && *s.CpsLimit < 1 { - invalidParams.Add(request.NewErrParamMinValue("CpsLimit", 1)) +func (s *UntagMeetingInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UntagMeetingInput"} + if s.MeetingId == nil { + invalidParams.Add(request.NewErrParamRequired("MeetingId")) + } + if s.MeetingId != nil && len(*s.MeetingId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("MeetingId", 1)) + } + if s.TagKeys == nil { + invalidParams.Add(request.NewErrParamRequired("TagKeys")) + } + if s.TagKeys != nil && len(s.TagKeys) < 1 { + invalidParams.Add(request.NewErrParamMinLen("TagKeys", 1)) } if invalidParams.Len() > 0 { @@ -26460,294 +37042,291 @@ func (s *Termination) Validate() error { return nil } -// SetCallingRegions sets the CallingRegions field's value. -func (s *Termination) SetCallingRegions(v []*string) *Termination { - s.CallingRegions = v - return s -} - -// SetCidrAllowedList sets the CidrAllowedList field's value. -func (s *Termination) SetCidrAllowedList(v []*string) *Termination { - s.CidrAllowedList = v - return s -} - -// SetCpsLimit sets the CpsLimit field's value. -func (s *Termination) SetCpsLimit(v int64) *Termination { - s.CpsLimit = &v - return s -} - -// SetDefaultPhoneNumber sets the DefaultPhoneNumber field's value. -func (s *Termination) SetDefaultPhoneNumber(v string) *Termination { - s.DefaultPhoneNumber = &v +// SetMeetingId sets the MeetingId field's value. +func (s *UntagMeetingInput) SetMeetingId(v string) *UntagMeetingInput { + s.MeetingId = &v return s } -// SetDisabled sets the Disabled field's value. -func (s *Termination) SetDisabled(v bool) *Termination { - s.Disabled = &v +// SetTagKeys sets the TagKeys field's value. +func (s *UntagMeetingInput) SetTagKeys(v []*string) *UntagMeetingInput { + s.TagKeys = v return s } -// The termination health details, including the source IP address and timestamp -// of the last successful SIP OPTIONS message from your SIP infrastructure. -type TerminationHealth struct { +type UntagMeetingOutput struct { _ struct{} `type:"structure"` - - // The source IP address. - Source *string `type:"string"` - - // The timestamp, in ISO 8601 format. - Timestamp *time.Time `type:"timestamp" timestampFormat:"iso8601"` } // String returns the string representation -func (s TerminationHealth) String() string { +func (s UntagMeetingOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s TerminationHealth) GoString() string { +func (s UntagMeetingOutput) GoString() string { return s.String() } -// SetSource sets the Source field's value. -func (s *TerminationHealth) SetSource(v string) *TerminationHealth { - s.Source = &v - return s -} - -// SetTimestamp sets the Timestamp field's value. -func (s *TerminationHealth) SetTimestamp(v time.Time) *TerminationHealth { - s.Timestamp = &v - return s -} - -// The client exceeded its request rate limit. -type ThrottledClientException struct { - _ struct{} `type:"structure"` - RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` +type UntagResourceInput struct { + _ struct{} `type:"structure"` - Code_ *string `locationName:"Code" type:"string" enum:"ErrorCode"` + // The resource ARN. + // + // ResourceARN is a required field + ResourceARN *string `min:"1" type:"string" required:"true" sensitive:"true"` - Message_ *string `locationName:"Message" type:"string"` + // The tag keys. + // + // TagKeys is a required field + TagKeys []*string `min:"1" type:"list" required:"true"` } // String returns the string representation -func (s ThrottledClientException) String() string { +func (s UntagResourceInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ThrottledClientException) GoString() string { +func (s UntagResourceInput) GoString() string { return s.String() } -func newErrorThrottledClientException(v protocol.ResponseMetadata) error { - return &ThrottledClientException{ - RespMetadata: v, +// Validate inspects the fields of the type to determine if they are valid. +func (s *UntagResourceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UntagResourceInput"} + if s.ResourceARN == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceARN")) + } + if s.ResourceARN != nil && len(*s.ResourceARN) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResourceARN", 1)) + } + if s.TagKeys == nil { + invalidParams.Add(request.NewErrParamRequired("TagKeys")) + } + if s.TagKeys != nil && len(s.TagKeys) < 1 { + invalidParams.Add(request.NewErrParamMinLen("TagKeys", 1)) } -} -// Code returns the exception type name. -func (s *ThrottledClientException) Code() string { - return "ThrottledClientException" + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// Message returns the exception's message. -func (s *ThrottledClientException) Message() string { - if s.Message_ != nil { - return *s.Message_ - } - return "" +// SetResourceARN sets the ResourceARN field's value. +func (s *UntagResourceInput) SetResourceARN(v string) *UntagResourceInput { + s.ResourceARN = &v + return s } -// OrigErr always returns nil, satisfies awserr.Error interface. -func (s *ThrottledClientException) OrigErr() error { - return nil +// SetTagKeys sets the TagKeys field's value. +func (s *UntagResourceInput) SetTagKeys(v []*string) *UntagResourceInput { + s.TagKeys = v + return s } -func (s *ThrottledClientException) Error() string { - return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +type UntagResourceOutput struct { + _ struct{} `type:"structure"` } -// Status code returns the HTTP status code for the request's response error. -func (s *ThrottledClientException) StatusCode() int { - return s.RespMetadata.StatusCode +// String returns the string representation +func (s UntagResourceOutput) String() string { + return awsutil.Prettify(s) } -// RequestID returns the service's response RequestID for request. -func (s *ThrottledClientException) RequestID() string { - return s.RespMetadata.RequestID +// GoString returns the string representation +func (s UntagResourceOutput) GoString() string { + return s.String() } -// The client is not currently authorized to make the request. -type UnauthorizedClientException struct { - _ struct{} `type:"structure"` - RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` +type UpdateAccountInput struct { + _ struct{} `type:"structure"` - Code_ *string `locationName:"Code" type:"string" enum:"ErrorCode"` + // The Amazon Chime account ID. + // + // AccountId is a required field + AccountId *string `location:"uri" locationName:"accountId" type:"string" required:"true"` - Message_ *string `locationName:"Message" type:"string"` + // The new name for the specified Amazon Chime account. + Name *string `min:"1" type:"string"` } // String returns the string representation -func (s UnauthorizedClientException) String() string { +func (s UpdateAccountInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s UnauthorizedClientException) GoString() string { +func (s UpdateAccountInput) GoString() string { return s.String() } -func newErrorUnauthorizedClientException(v protocol.ResponseMetadata) error { - return &UnauthorizedClientException{ - RespMetadata: v, +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateAccountInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateAccountInput"} + if s.AccountId == nil { + invalidParams.Add(request.NewErrParamRequired("AccountId")) + } + if s.AccountId != nil && len(*s.AccountId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) + } + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams } + return nil } -// Code returns the exception type name. -func (s *UnauthorizedClientException) Code() string { - return "UnauthorizedClientException" +// SetAccountId sets the AccountId field's value. +func (s *UpdateAccountInput) SetAccountId(v string) *UpdateAccountInput { + s.AccountId = &v + return s } -// Message returns the exception's message. -func (s *UnauthorizedClientException) Message() string { - if s.Message_ != nil { - return *s.Message_ - } - return "" +// SetName sets the Name field's value. +func (s *UpdateAccountInput) SetName(v string) *UpdateAccountInput { + s.Name = &v + return s } -// OrigErr always returns nil, satisfies awserr.Error interface. -func (s *UnauthorizedClientException) OrigErr() error { - return nil +type UpdateAccountOutput struct { + _ struct{} `type:"structure"` + + // The Amazon Chime account details. An AWS account can have multiple Amazon + // Chime accounts. + Account *Account `type:"structure"` } -func (s *UnauthorizedClientException) Error() string { - return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +// String returns the string representation +func (s UpdateAccountOutput) String() string { + return awsutil.Prettify(s) } -// Status code returns the HTTP status code for the request's response error. -func (s *UnauthorizedClientException) StatusCode() int { - return s.RespMetadata.StatusCode +// GoString returns the string representation +func (s UpdateAccountOutput) GoString() string { + return s.String() } -// RequestID returns the service's response RequestID for request. -func (s *UnauthorizedClientException) RequestID() string { - return s.RespMetadata.RequestID +// SetAccount sets the Account field's value. +func (s *UpdateAccountOutput) SetAccount(v *Account) *UpdateAccountOutput { + s.Account = v + return s } -// The request was well-formed but was unable to be followed due to semantic -// errors. -type UnprocessableEntityException struct { - _ struct{} `type:"structure"` - RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` +type UpdateAccountSettingsInput struct { + _ struct{} `type:"structure"` - Code_ *string `locationName:"Code" type:"string" enum:"ErrorCode"` + // The Amazon Chime account ID. + // + // AccountId is a required field + AccountId *string `location:"uri" locationName:"accountId" type:"string" required:"true"` - Message_ *string `locationName:"Message" type:"string"` + // The Amazon Chime account settings to update. + // + // AccountSettings is a required field + AccountSettings *AccountSettings `type:"structure" required:"true"` } // String returns the string representation -func (s UnprocessableEntityException) String() string { +func (s UpdateAccountSettingsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s UnprocessableEntityException) GoString() string { +func (s UpdateAccountSettingsInput) GoString() string { return s.String() } -func newErrorUnprocessableEntityException(v protocol.ResponseMetadata) error { - return &UnprocessableEntityException{ - RespMetadata: v, +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateAccountSettingsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateAccountSettingsInput"} + if s.AccountId == nil { + invalidParams.Add(request.NewErrParamRequired("AccountId")) + } + if s.AccountId != nil && len(*s.AccountId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) + } + if s.AccountSettings == nil { + invalidParams.Add(request.NewErrParamRequired("AccountSettings")) } -} -// Code returns the exception type name. -func (s *UnprocessableEntityException) Code() string { - return "UnprocessableEntityException" + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// Message returns the exception's message. -func (s *UnprocessableEntityException) Message() string { - if s.Message_ != nil { - return *s.Message_ - } - return "" +// SetAccountId sets the AccountId field's value. +func (s *UpdateAccountSettingsInput) SetAccountId(v string) *UpdateAccountSettingsInput { + s.AccountId = &v + return s } -// OrigErr always returns nil, satisfies awserr.Error interface. -func (s *UnprocessableEntityException) OrigErr() error { - return nil +// SetAccountSettings sets the AccountSettings field's value. +func (s *UpdateAccountSettingsInput) SetAccountSettings(v *AccountSettings) *UpdateAccountSettingsInput { + s.AccountSettings = v + return s } -func (s *UnprocessableEntityException) Error() string { - return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +type UpdateAccountSettingsOutput struct { + _ struct{} `type:"structure"` } -// Status code returns the HTTP status code for the request's response error. -func (s *UnprocessableEntityException) StatusCode() int { - return s.RespMetadata.StatusCode +// String returns the string representation +func (s UpdateAccountSettingsOutput) String() string { + return awsutil.Prettify(s) } -// RequestID returns the service's response RequestID for request. -func (s *UnprocessableEntityException) RequestID() string { - return s.RespMetadata.RequestID +// GoString returns the string representation +func (s UpdateAccountSettingsOutput) GoString() string { + return s.String() } -type UntagAttendeeInput struct { +type UpdateAppInstanceInput struct { _ struct{} `type:"structure"` - // The Amazon Chime SDK attendee ID. + // The ARN of the app instance. // - // AttendeeId is a required field - AttendeeId *string `location:"uri" locationName:"attendeeId" type:"string" required:"true"` + // AppInstanceArn is a required field + AppInstanceArn *string `location:"uri" locationName:"appInstanceArn" min:"5" type:"string" required:"true"` - // The Amazon Chime SDK meeting ID. - // - // MeetingId is a required field - MeetingId *string `location:"uri" locationName:"meetingId" type:"string" required:"true"` + // The metadata that you want to change. + Metadata *string `type:"string" sensitive:"true"` - // The tag keys. + // The name that you want to change. // - // TagKeys is a required field - TagKeys []*string `min:"1" type:"list" required:"true"` + // Name is a required field + Name *string `min:"1" type:"string" required:"true" sensitive:"true"` } // String returns the string representation -func (s UntagAttendeeInput) String() string { +func (s UpdateAppInstanceInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s UntagAttendeeInput) GoString() string { +func (s UpdateAppInstanceInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *UntagAttendeeInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UntagAttendeeInput"} - if s.AttendeeId == nil { - invalidParams.Add(request.NewErrParamRequired("AttendeeId")) - } - if s.AttendeeId != nil && len(*s.AttendeeId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("AttendeeId", 1)) - } - if s.MeetingId == nil { - invalidParams.Add(request.NewErrParamRequired("MeetingId")) +func (s *UpdateAppInstanceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateAppInstanceInput"} + if s.AppInstanceArn == nil { + invalidParams.Add(request.NewErrParamRequired("AppInstanceArn")) } - if s.MeetingId != nil && len(*s.MeetingId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("MeetingId", 1)) + if s.AppInstanceArn != nil && len(*s.AppInstanceArn) < 5 { + invalidParams.Add(request.NewErrParamMinLen("AppInstanceArn", 5)) } - if s.TagKeys == nil { - invalidParams.Add(request.NewErrParamRequired("TagKeys")) + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) } - if s.TagKeys != nil && len(s.TagKeys) < 1 { - invalidParams.Add(request.NewErrParamMinLen("TagKeys", 1)) + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) } if invalidParams.Len() > 0 { @@ -26756,76 +37335,88 @@ func (s *UntagAttendeeInput) Validate() error { return nil } -// SetAttendeeId sets the AttendeeId field's value. -func (s *UntagAttendeeInput) SetAttendeeId(v string) *UntagAttendeeInput { - s.AttendeeId = &v +// SetAppInstanceArn sets the AppInstanceArn field's value. +func (s *UpdateAppInstanceInput) SetAppInstanceArn(v string) *UpdateAppInstanceInput { + s.AppInstanceArn = &v return s } -// SetMeetingId sets the MeetingId field's value. -func (s *UntagAttendeeInput) SetMeetingId(v string) *UntagAttendeeInput { - s.MeetingId = &v +// SetMetadata sets the Metadata field's value. +func (s *UpdateAppInstanceInput) SetMetadata(v string) *UpdateAppInstanceInput { + s.Metadata = &v return s } -// SetTagKeys sets the TagKeys field's value. -func (s *UntagAttendeeInput) SetTagKeys(v []*string) *UntagAttendeeInput { - s.TagKeys = v +// SetName sets the Name field's value. +func (s *UpdateAppInstanceInput) SetName(v string) *UpdateAppInstanceInput { + s.Name = &v return s } -type UntagAttendeeOutput struct { +type UpdateAppInstanceOutput struct { _ struct{} `type:"structure"` + + // The ARN of the app instance. + AppInstanceArn *string `min:"5" type:"string"` } // String returns the string representation -func (s UntagAttendeeOutput) String() string { +func (s UpdateAppInstanceOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s UntagAttendeeOutput) GoString() string { +func (s UpdateAppInstanceOutput) GoString() string { return s.String() } -type UntagMeetingInput struct { +// SetAppInstanceArn sets the AppInstanceArn field's value. +func (s *UpdateAppInstanceOutput) SetAppInstanceArn(v string) *UpdateAppInstanceOutput { + s.AppInstanceArn = &v + return s +} + +type UpdateAppInstanceUserInput struct { _ struct{} `type:"structure"` - // The Amazon Chime SDK meeting ID. + // The ARN of the app instance user. // - // MeetingId is a required field - MeetingId *string `location:"uri" locationName:"meetingId" type:"string" required:"true"` + // AppInstanceUserArn is a required field + AppInstanceUserArn *string `location:"uri" locationName:"appInstanceUserArn" min:"5" type:"string" required:"true"` - // The tag keys. + // The metadata of the app instance user. + Metadata *string `type:"string" sensitive:"true"` + + // The name of the app instance user. // - // TagKeys is a required field - TagKeys []*string `min:"1" type:"list" required:"true"` + // Name is a required field + Name *string `min:"1" type:"string" required:"true" sensitive:"true"` } // String returns the string representation -func (s UntagMeetingInput) String() string { +func (s UpdateAppInstanceUserInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s UntagMeetingInput) GoString() string { +func (s UpdateAppInstanceUserInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *UntagMeetingInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UntagMeetingInput"} - if s.MeetingId == nil { - invalidParams.Add(request.NewErrParamRequired("MeetingId")) +func (s *UpdateAppInstanceUserInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateAppInstanceUserInput"} + if s.AppInstanceUserArn == nil { + invalidParams.Add(request.NewErrParamRequired("AppInstanceUserArn")) } - if s.MeetingId != nil && len(*s.MeetingId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("MeetingId", 1)) + if s.AppInstanceUserArn != nil && len(*s.AppInstanceUserArn) < 5 { + invalidParams.Add(request.NewErrParamMinLen("AppInstanceUserArn", 5)) } - if s.TagKeys == nil { - invalidParams.Add(request.NewErrParamRequired("TagKeys")) + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) } - if s.TagKeys != nil && len(s.TagKeys) < 1 { - invalidParams.Add(request.NewErrParamMinLen("TagKeys", 1)) + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) } if invalidParams.Len() > 0 { @@ -26834,70 +37425,88 @@ func (s *UntagMeetingInput) Validate() error { return nil } -// SetMeetingId sets the MeetingId field's value. -func (s *UntagMeetingInput) SetMeetingId(v string) *UntagMeetingInput { - s.MeetingId = &v +// SetAppInstanceUserArn sets the AppInstanceUserArn field's value. +func (s *UpdateAppInstanceUserInput) SetAppInstanceUserArn(v string) *UpdateAppInstanceUserInput { + s.AppInstanceUserArn = &v return s } -// SetTagKeys sets the TagKeys field's value. -func (s *UntagMeetingInput) SetTagKeys(v []*string) *UntagMeetingInput { - s.TagKeys = v +// SetMetadata sets the Metadata field's value. +func (s *UpdateAppInstanceUserInput) SetMetadata(v string) *UpdateAppInstanceUserInput { + s.Metadata = &v return s } -type UntagMeetingOutput struct { +// SetName sets the Name field's value. +func (s *UpdateAppInstanceUserInput) SetName(v string) *UpdateAppInstanceUserInput { + s.Name = &v + return s +} + +type UpdateAppInstanceUserOutput struct { _ struct{} `type:"structure"` + + // The ARN of the app instance user. + AppInstanceUserArn *string `min:"5" type:"string"` } // String returns the string representation -func (s UntagMeetingOutput) String() string { +func (s UpdateAppInstanceUserOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s UntagMeetingOutput) GoString() string { +func (s UpdateAppInstanceUserOutput) GoString() string { return s.String() } -type UntagResourceInput struct { +// SetAppInstanceUserArn sets the AppInstanceUserArn field's value. +func (s *UpdateAppInstanceUserOutput) SetAppInstanceUserArn(v string) *UpdateAppInstanceUserOutput { + s.AppInstanceUserArn = &v + return s +} + +type UpdateBotInput struct { _ struct{} `type:"structure"` - // The resource ARN. + // The Amazon Chime account ID. // - // ResourceARN is a required field - ResourceARN *string `min:"1" type:"string" required:"true" sensitive:"true"` + // AccountId is a required field + AccountId *string `location:"uri" locationName:"accountId" type:"string" required:"true"` - // The tag keys. + // The bot ID. // - // TagKeys is a required field - TagKeys []*string `min:"1" type:"list" required:"true"` + // BotId is a required field + BotId *string `location:"uri" locationName:"botId" type:"string" required:"true"` + + // When true, stops the specified bot from running in your account. + Disabled *bool `type:"boolean"` } // String returns the string representation -func (s UntagResourceInput) String() string { +func (s UpdateBotInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s UntagResourceInput) GoString() string { +func (s UpdateBotInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *UntagResourceInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UntagResourceInput"} - if s.ResourceARN == nil { - invalidParams.Add(request.NewErrParamRequired("ResourceARN")) +func (s *UpdateBotInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateBotInput"} + if s.AccountId == nil { + invalidParams.Add(request.NewErrParamRequired("AccountId")) } - if s.ResourceARN != nil && len(*s.ResourceARN) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ResourceARN", 1)) + if s.AccountId != nil && len(*s.AccountId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) } - if s.TagKeys == nil { - invalidParams.Add(request.NewErrParamRequired("TagKeys")) + if s.BotId == nil { + invalidParams.Add(request.NewErrParamRequired("BotId")) } - if s.TagKeys != nil && len(s.TagKeys) < 1 { - invalidParams.Add(request.NewErrParamMinLen("TagKeys", 1)) + if s.BotId != nil && len(*s.BotId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("BotId", 1)) } if invalidParams.Len() > 0 { @@ -26906,62 +37515,93 @@ func (s *UntagResourceInput) Validate() error { return nil } -// SetResourceARN sets the ResourceARN field's value. -func (s *UntagResourceInput) SetResourceARN(v string) *UntagResourceInput { - s.ResourceARN = &v +// SetAccountId sets the AccountId field's value. +func (s *UpdateBotInput) SetAccountId(v string) *UpdateBotInput { + s.AccountId = &v return s } -// SetTagKeys sets the TagKeys field's value. -func (s *UntagResourceInput) SetTagKeys(v []*string) *UntagResourceInput { - s.TagKeys = v +// SetBotId sets the BotId field's value. +func (s *UpdateBotInput) SetBotId(v string) *UpdateBotInput { + s.BotId = &v return s } -type UntagResourceOutput struct { +// SetDisabled sets the Disabled field's value. +func (s *UpdateBotInput) SetDisabled(v bool) *UpdateBotInput { + s.Disabled = &v + return s +} + +type UpdateBotOutput struct { _ struct{} `type:"structure"` + + // The updated bot details. + Bot *Bot `type:"structure"` } // String returns the string representation -func (s UntagResourceOutput) String() string { +func (s UpdateBotOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s UntagResourceOutput) GoString() string { +func (s UpdateBotOutput) GoString() string { return s.String() } -type UpdateAccountInput struct { +// SetBot sets the Bot field's value. +func (s *UpdateBotOutput) SetBot(v *Bot) *UpdateBotOutput { + s.Bot = v + return s +} + +type UpdateChannelInput struct { _ struct{} `type:"structure"` - // The Amazon Chime account ID. + // The ARN of the channel. // - // AccountId is a required field - AccountId *string `location:"uri" locationName:"accountId" type:"string" required:"true"` + // ChannelArn is a required field + ChannelArn *string `location:"uri" locationName:"channelArn" min:"5" type:"string" required:"true"` - // The new name for the specified Amazon Chime account. - Name *string `min:"1" type:"string"` + // The metadata of the channel. + Metadata *string `type:"string" sensitive:"true"` + + // The mode of the update request. + // + // Mode is a required field + Mode *string `type:"string" required:"true" enum:"ChannelMode"` + + // The name of the channel. + // + // Name is a required field + Name *string `min:"1" type:"string" required:"true" sensitive:"true"` } // String returns the string representation -func (s UpdateAccountInput) String() string { +func (s UpdateChannelInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s UpdateAccountInput) GoString() string { +func (s UpdateChannelInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *UpdateAccountInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UpdateAccountInput"} - if s.AccountId == nil { - invalidParams.Add(request.NewErrParamRequired("AccountId")) +func (s *UpdateChannelInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateChannelInput"} + if s.ChannelArn == nil { + invalidParams.Add(request.NewErrParamRequired("ChannelArn")) } - if s.AccountId != nil && len(*s.AccountId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) + if s.ChannelArn != nil && len(*s.ChannelArn) < 5 { + invalidParams.Add(request.NewErrParamMinLen("ChannelArn", 5)) + } + if s.Mode == nil { + invalidParams.Add(request.NewErrParamRequired("Mode")) + } + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) } if s.Name != nil && len(*s.Name) < 1 { invalidParams.Add(request.NewErrParamMinLen("Name", 1)) @@ -26973,77 +37613,74 @@ func (s *UpdateAccountInput) Validate() error { return nil } -// SetAccountId sets the AccountId field's value. -func (s *UpdateAccountInput) SetAccountId(v string) *UpdateAccountInput { - s.AccountId = &v +// SetChannelArn sets the ChannelArn field's value. +func (s *UpdateChannelInput) SetChannelArn(v string) *UpdateChannelInput { + s.ChannelArn = &v return s } -// SetName sets the Name field's value. -func (s *UpdateAccountInput) SetName(v string) *UpdateAccountInput { - s.Name = &v +// SetMetadata sets the Metadata field's value. +func (s *UpdateChannelInput) SetMetadata(v string) *UpdateChannelInput { + s.Metadata = &v return s } -type UpdateAccountOutput struct { - _ struct{} `type:"structure"` - - // The Amazon Chime account details. An AWS account can have multiple Amazon - // Chime accounts. - Account *Account `type:"structure"` -} - -// String returns the string representation -func (s UpdateAccountOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation -func (s UpdateAccountOutput) GoString() string { - return s.String() +// SetMode sets the Mode field's value. +func (s *UpdateChannelInput) SetMode(v string) *UpdateChannelInput { + s.Mode = &v + return s } -// SetAccount sets the Account field's value. -func (s *UpdateAccountOutput) SetAccount(v *Account) *UpdateAccountOutput { - s.Account = v +// SetName sets the Name field's value. +func (s *UpdateChannelInput) SetName(v string) *UpdateChannelInput { + s.Name = &v return s } -type UpdateAccountSettingsInput struct { +type UpdateChannelMessageInput struct { _ struct{} `type:"structure"` - // The Amazon Chime account ID. + // The ARN of the channel. // - // AccountId is a required field - AccountId *string `location:"uri" locationName:"accountId" type:"string" required:"true"` + // ChannelArn is a required field + ChannelArn *string `location:"uri" locationName:"channelArn" min:"5" type:"string" required:"true"` - // The Amazon Chime account settings to update. + // The content of the message being updated. + Content *string `type:"string" sensitive:"true"` + + // The ID string of the message being updated. // - // AccountSettings is a required field - AccountSettings *AccountSettings `type:"structure" required:"true"` + // MessageId is a required field + MessageId *string `location:"uri" locationName:"messageId" min:"1" type:"string" required:"true"` + + // The metadata of the message being updated. + Metadata *string `type:"string" sensitive:"true"` } // String returns the string representation -func (s UpdateAccountSettingsInput) String() string { +func (s UpdateChannelMessageInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s UpdateAccountSettingsInput) GoString() string { +func (s UpdateChannelMessageInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *UpdateAccountSettingsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UpdateAccountSettingsInput"} - if s.AccountId == nil { - invalidParams.Add(request.NewErrParamRequired("AccountId")) +func (s *UpdateChannelMessageInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateChannelMessageInput"} + if s.ChannelArn == nil { + invalidParams.Add(request.NewErrParamRequired("ChannelArn")) } - if s.AccountId != nil && len(*s.AccountId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) + if s.ChannelArn != nil && len(*s.ChannelArn) < 5 { + invalidParams.Add(request.NewErrParamMinLen("ChannelArn", 5)) } - if s.AccountSettings == nil { - invalidParams.Add(request.NewErrParamRequired("AccountSettings")) + if s.MessageId == nil { + invalidParams.Add(request.NewErrParamRequired("MessageId")) + } + if s.MessageId != nil && len(*s.MessageId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("MessageId", 1)) } if invalidParams.Len() > 0 { @@ -27052,73 +37689,112 @@ func (s *UpdateAccountSettingsInput) Validate() error { return nil } -// SetAccountId sets the AccountId field's value. -func (s *UpdateAccountSettingsInput) SetAccountId(v string) *UpdateAccountSettingsInput { - s.AccountId = &v +// SetChannelArn sets the ChannelArn field's value. +func (s *UpdateChannelMessageInput) SetChannelArn(v string) *UpdateChannelMessageInput { + s.ChannelArn = &v return s } -// SetAccountSettings sets the AccountSettings field's value. -func (s *UpdateAccountSettingsInput) SetAccountSettings(v *AccountSettings) *UpdateAccountSettingsInput { - s.AccountSettings = v +// SetContent sets the Content field's value. +func (s *UpdateChannelMessageInput) SetContent(v string) *UpdateChannelMessageInput { + s.Content = &v return s } -type UpdateAccountSettingsOutput struct { +// SetMessageId sets the MessageId field's value. +func (s *UpdateChannelMessageInput) SetMessageId(v string) *UpdateChannelMessageInput { + s.MessageId = &v + return s +} + +// SetMetadata sets the Metadata field's value. +func (s *UpdateChannelMessageInput) SetMetadata(v string) *UpdateChannelMessageInput { + s.Metadata = &v + return s +} + +type UpdateChannelMessageOutput struct { _ struct{} `type:"structure"` + + // The ARN of the channel. + ChannelArn *string `min:"5" type:"string"` + + // The ID string of the message being updated. + MessageId *string `min:"1" type:"string"` } // String returns the string representation -func (s UpdateAccountSettingsOutput) String() string { +func (s UpdateChannelMessageOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s UpdateAccountSettingsOutput) GoString() string { +func (s UpdateChannelMessageOutput) GoString() string { return s.String() } -type UpdateBotInput struct { +// SetChannelArn sets the ChannelArn field's value. +func (s *UpdateChannelMessageOutput) SetChannelArn(v string) *UpdateChannelMessageOutput { + s.ChannelArn = &v + return s +} + +// SetMessageId sets the MessageId field's value. +func (s *UpdateChannelMessageOutput) SetMessageId(v string) *UpdateChannelMessageOutput { + s.MessageId = &v + return s +} + +type UpdateChannelOutput struct { _ struct{} `type:"structure"` - // The Amazon Chime account ID. - // - // AccountId is a required field - AccountId *string `location:"uri" locationName:"accountId" type:"string" required:"true"` + // The ARN of the channel. + ChannelArn *string `min:"5" type:"string"` +} - // The bot ID. - // - // BotId is a required field - BotId *string `location:"uri" locationName:"botId" type:"string" required:"true"` +// String returns the string representation +func (s UpdateChannelOutput) String() string { + return awsutil.Prettify(s) +} - // When true, stops the specified bot from running in your account. - Disabled *bool `type:"boolean"` +// GoString returns the string representation +func (s UpdateChannelOutput) GoString() string { + return s.String() +} + +// SetChannelArn sets the ChannelArn field's value. +func (s *UpdateChannelOutput) SetChannelArn(v string) *UpdateChannelOutput { + s.ChannelArn = &v + return s +} + +type UpdateChannelReadMarkerInput struct { + _ struct{} `type:"structure"` + + // The ARN of the channel. + // + // ChannelArn is a required field + ChannelArn *string `location:"uri" locationName:"channelArn" min:"5" type:"string" required:"true"` } // String returns the string representation -func (s UpdateBotInput) String() string { +func (s UpdateChannelReadMarkerInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s UpdateBotInput) GoString() string { +func (s UpdateChannelReadMarkerInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *UpdateBotInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UpdateBotInput"} - if s.AccountId == nil { - invalidParams.Add(request.NewErrParamRequired("AccountId")) - } - if s.AccountId != nil && len(*s.AccountId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("AccountId", 1)) +func (s *UpdateChannelReadMarkerInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateChannelReadMarkerInput"} + if s.ChannelArn == nil { + invalidParams.Add(request.NewErrParamRequired("ChannelArn")) } - if s.BotId == nil { - invalidParams.Add(request.NewErrParamRequired("BotId")) - } - if s.BotId != nil && len(*s.BotId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("BotId", 1)) + if s.ChannelArn != nil && len(*s.ChannelArn) < 5 { + invalidParams.Add(request.NewErrParamMinLen("ChannelArn", 5)) } if invalidParams.Len() > 0 { @@ -27127,44 +37803,32 @@ func (s *UpdateBotInput) Validate() error { return nil } -// SetAccountId sets the AccountId field's value. -func (s *UpdateBotInput) SetAccountId(v string) *UpdateBotInput { - s.AccountId = &v - return s -} - -// SetBotId sets the BotId field's value. -func (s *UpdateBotInput) SetBotId(v string) *UpdateBotInput { - s.BotId = &v - return s -} - -// SetDisabled sets the Disabled field's value. -func (s *UpdateBotInput) SetDisabled(v bool) *UpdateBotInput { - s.Disabled = &v +// SetChannelArn sets the ChannelArn field's value. +func (s *UpdateChannelReadMarkerInput) SetChannelArn(v string) *UpdateChannelReadMarkerInput { + s.ChannelArn = &v return s } -type UpdateBotOutput struct { +type UpdateChannelReadMarkerOutput struct { _ struct{} `type:"structure"` - // The updated bot details. - Bot *Bot `type:"structure"` + // The ARN of the channel. + ChannelArn *string `min:"5" type:"string"` } // String returns the string representation -func (s UpdateBotOutput) String() string { +func (s UpdateChannelReadMarkerOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s UpdateBotOutput) GoString() string { +func (s UpdateChannelReadMarkerOutput) GoString() string { return s.String() } -// SetBot sets the Bot field's value. -func (s *UpdateBotOutput) SetBot(v *Bot) *UpdateBotOutput { - s.Bot = v +// SetChannelArn sets the ChannelArn field's value. +func (s *UpdateChannelReadMarkerOutput) SetChannelArn(v string) *UpdateChannelReadMarkerOutput { + s.ChannelArn = &v return s } @@ -28872,6 +39536,22 @@ func AccountType_Values() []string { } } +const ( + // AppInstanceDataTypeChannel is a AppInstanceDataType enum value + AppInstanceDataTypeChannel = "Channel" + + // AppInstanceDataTypeChannelMessage is a AppInstanceDataType enum value + AppInstanceDataTypeChannelMessage = "ChannelMessage" +) + +// AppInstanceDataType_Values returns all elements of the AppInstanceDataType enum +func AppInstanceDataType_Values() []string { + return []string{ + AppInstanceDataTypeChannel, + AppInstanceDataTypeChannelMessage, + } +} + const ( // BotTypeChatBot is a BotType enum value BotTypeChatBot = "ChatBot" @@ -28924,6 +39604,86 @@ func Capability_Values() []string { } } +const ( + // ChannelMembershipTypeDefault is a ChannelMembershipType enum value + ChannelMembershipTypeDefault = "DEFAULT" + + // ChannelMembershipTypeHidden is a ChannelMembershipType enum value + ChannelMembershipTypeHidden = "HIDDEN" +) + +// ChannelMembershipType_Values returns all elements of the ChannelMembershipType enum +func ChannelMembershipType_Values() []string { + return []string{ + ChannelMembershipTypeDefault, + ChannelMembershipTypeHidden, + } +} + +const ( + // ChannelMessagePersistenceTypePersistent is a ChannelMessagePersistenceType enum value + ChannelMessagePersistenceTypePersistent = "PERSISTENT" + + // ChannelMessagePersistenceTypeNonPersistent is a ChannelMessagePersistenceType enum value + ChannelMessagePersistenceTypeNonPersistent = "NON_PERSISTENT" +) + +// ChannelMessagePersistenceType_Values returns all elements of the ChannelMessagePersistenceType enum +func ChannelMessagePersistenceType_Values() []string { + return []string{ + ChannelMessagePersistenceTypePersistent, + ChannelMessagePersistenceTypeNonPersistent, + } +} + +const ( + // ChannelMessageTypeStandard is a ChannelMessageType enum value + ChannelMessageTypeStandard = "STANDARD" + + // ChannelMessageTypeControl is a ChannelMessageType enum value + ChannelMessageTypeControl = "CONTROL" +) + +// ChannelMessageType_Values returns all elements of the ChannelMessageType enum +func ChannelMessageType_Values() []string { + return []string{ + ChannelMessageTypeStandard, + ChannelMessageTypeControl, + } +} + +const ( + // ChannelModeUnrestricted is a ChannelMode enum value + ChannelModeUnrestricted = "UNRESTRICTED" + + // ChannelModeRestricted is a ChannelMode enum value + ChannelModeRestricted = "RESTRICTED" +) + +// ChannelMode_Values returns all elements of the ChannelMode enum +func ChannelMode_Values() []string { + return []string{ + ChannelModeUnrestricted, + ChannelModeRestricted, + } +} + +const ( + // ChannelPrivacyPublic is a ChannelPrivacy enum value + ChannelPrivacyPublic = "PUBLIC" + + // ChannelPrivacyPrivate is a ChannelPrivacy enum value + ChannelPrivacyPrivate = "PRIVATE" +) + +// ChannelPrivacy_Values returns all elements of the ChannelPrivacy enum +func ChannelPrivacy_Values() []string { + return []string{ + ChannelPrivacyPublic, + ChannelPrivacyPrivate, + } +} + const ( // EmailStatusNotSent is a EmailStatus enum value EmailStatusNotSent = "NotSent" @@ -29360,6 +40120,22 @@ func SipRuleTriggerType_Values() []string { } } +const ( + // SortOrderAscending is a SortOrder enum value + SortOrderAscending = "ASCENDING" + + // SortOrderDescending is a SortOrder enum value + SortOrderDescending = "DESCENDING" +) + +// SortOrder_Values returns all elements of the SortOrder enum +func SortOrder_Values() []string { + return []string{ + SortOrderAscending, + SortOrderDescending, + } +} + const ( // UserTypePrivateUser is a UserType enum value UserTypePrivateUser = "PrivateUser" diff --git a/service/chime/chimeiface/interface.go b/service/chime/chimeiface/interface.go index fc28e14cb2b..0619dde9784 100644 --- a/service/chime/chimeiface/interface.go +++ b/service/chime/chimeiface/interface.go @@ -108,6 +108,18 @@ type ChimeAPI interface { CreateAccountWithContext(aws.Context, *chime.CreateAccountInput, ...request.Option) (*chime.CreateAccountOutput, error) CreateAccountRequest(*chime.CreateAccountInput) (*request.Request, *chime.CreateAccountOutput) + CreateAppInstance(*chime.CreateAppInstanceInput) (*chime.CreateAppInstanceOutput, error) + CreateAppInstanceWithContext(aws.Context, *chime.CreateAppInstanceInput, ...request.Option) (*chime.CreateAppInstanceOutput, error) + CreateAppInstanceRequest(*chime.CreateAppInstanceInput) (*request.Request, *chime.CreateAppInstanceOutput) + + CreateAppInstanceAdmin(*chime.CreateAppInstanceAdminInput) (*chime.CreateAppInstanceAdminOutput, error) + CreateAppInstanceAdminWithContext(aws.Context, *chime.CreateAppInstanceAdminInput, ...request.Option) (*chime.CreateAppInstanceAdminOutput, error) + CreateAppInstanceAdminRequest(*chime.CreateAppInstanceAdminInput) (*request.Request, *chime.CreateAppInstanceAdminOutput) + + CreateAppInstanceUser(*chime.CreateAppInstanceUserInput) (*chime.CreateAppInstanceUserOutput, error) + CreateAppInstanceUserWithContext(aws.Context, *chime.CreateAppInstanceUserInput, ...request.Option) (*chime.CreateAppInstanceUserOutput, error) + CreateAppInstanceUserRequest(*chime.CreateAppInstanceUserInput) (*request.Request, *chime.CreateAppInstanceUserOutput) + CreateAttendee(*chime.CreateAttendeeInput) (*chime.CreateAttendeeOutput, error) CreateAttendeeWithContext(aws.Context, *chime.CreateAttendeeInput, ...request.Option) (*chime.CreateAttendeeOutput, error) CreateAttendeeRequest(*chime.CreateAttendeeInput) (*request.Request, *chime.CreateAttendeeOutput) @@ -116,6 +128,22 @@ type ChimeAPI interface { CreateBotWithContext(aws.Context, *chime.CreateBotInput, ...request.Option) (*chime.CreateBotOutput, error) CreateBotRequest(*chime.CreateBotInput) (*request.Request, *chime.CreateBotOutput) + CreateChannel(*chime.CreateChannelInput) (*chime.CreateChannelOutput, error) + CreateChannelWithContext(aws.Context, *chime.CreateChannelInput, ...request.Option) (*chime.CreateChannelOutput, error) + CreateChannelRequest(*chime.CreateChannelInput) (*request.Request, *chime.CreateChannelOutput) + + CreateChannelBan(*chime.CreateChannelBanInput) (*chime.CreateChannelBanOutput, error) + CreateChannelBanWithContext(aws.Context, *chime.CreateChannelBanInput, ...request.Option) (*chime.CreateChannelBanOutput, error) + CreateChannelBanRequest(*chime.CreateChannelBanInput) (*request.Request, *chime.CreateChannelBanOutput) + + CreateChannelMembership(*chime.CreateChannelMembershipInput) (*chime.CreateChannelMembershipOutput, error) + CreateChannelMembershipWithContext(aws.Context, *chime.CreateChannelMembershipInput, ...request.Option) (*chime.CreateChannelMembershipOutput, error) + CreateChannelMembershipRequest(*chime.CreateChannelMembershipInput) (*request.Request, *chime.CreateChannelMembershipOutput) + + CreateChannelModerator(*chime.CreateChannelModeratorInput) (*chime.CreateChannelModeratorOutput, error) + CreateChannelModeratorWithContext(aws.Context, *chime.CreateChannelModeratorInput, ...request.Option) (*chime.CreateChannelModeratorOutput, error) + CreateChannelModeratorRequest(*chime.CreateChannelModeratorInput) (*request.Request, *chime.CreateChannelModeratorOutput) + CreateMeeting(*chime.CreateMeetingInput) (*chime.CreateMeetingOutput, error) CreateMeetingWithContext(aws.Context, *chime.CreateMeetingInput, ...request.Option) (*chime.CreateMeetingOutput, error) CreateMeetingRequest(*chime.CreateMeetingInput) (*request.Request, *chime.CreateMeetingOutput) @@ -172,10 +200,46 @@ type ChimeAPI interface { DeleteAccountWithContext(aws.Context, *chime.DeleteAccountInput, ...request.Option) (*chime.DeleteAccountOutput, error) DeleteAccountRequest(*chime.DeleteAccountInput) (*request.Request, *chime.DeleteAccountOutput) + DeleteAppInstance(*chime.DeleteAppInstanceInput) (*chime.DeleteAppInstanceOutput, error) + DeleteAppInstanceWithContext(aws.Context, *chime.DeleteAppInstanceInput, ...request.Option) (*chime.DeleteAppInstanceOutput, error) + DeleteAppInstanceRequest(*chime.DeleteAppInstanceInput) (*request.Request, *chime.DeleteAppInstanceOutput) + + DeleteAppInstanceAdmin(*chime.DeleteAppInstanceAdminInput) (*chime.DeleteAppInstanceAdminOutput, error) + DeleteAppInstanceAdminWithContext(aws.Context, *chime.DeleteAppInstanceAdminInput, ...request.Option) (*chime.DeleteAppInstanceAdminOutput, error) + DeleteAppInstanceAdminRequest(*chime.DeleteAppInstanceAdminInput) (*request.Request, *chime.DeleteAppInstanceAdminOutput) + + DeleteAppInstanceStreamingConfigurations(*chime.DeleteAppInstanceStreamingConfigurationsInput) (*chime.DeleteAppInstanceStreamingConfigurationsOutput, error) + DeleteAppInstanceStreamingConfigurationsWithContext(aws.Context, *chime.DeleteAppInstanceStreamingConfigurationsInput, ...request.Option) (*chime.DeleteAppInstanceStreamingConfigurationsOutput, error) + DeleteAppInstanceStreamingConfigurationsRequest(*chime.DeleteAppInstanceStreamingConfigurationsInput) (*request.Request, *chime.DeleteAppInstanceStreamingConfigurationsOutput) + + DeleteAppInstanceUser(*chime.DeleteAppInstanceUserInput) (*chime.DeleteAppInstanceUserOutput, error) + DeleteAppInstanceUserWithContext(aws.Context, *chime.DeleteAppInstanceUserInput, ...request.Option) (*chime.DeleteAppInstanceUserOutput, error) + DeleteAppInstanceUserRequest(*chime.DeleteAppInstanceUserInput) (*request.Request, *chime.DeleteAppInstanceUserOutput) + DeleteAttendee(*chime.DeleteAttendeeInput) (*chime.DeleteAttendeeOutput, error) DeleteAttendeeWithContext(aws.Context, *chime.DeleteAttendeeInput, ...request.Option) (*chime.DeleteAttendeeOutput, error) DeleteAttendeeRequest(*chime.DeleteAttendeeInput) (*request.Request, *chime.DeleteAttendeeOutput) + DeleteChannel(*chime.DeleteChannelInput) (*chime.DeleteChannelOutput, error) + DeleteChannelWithContext(aws.Context, *chime.DeleteChannelInput, ...request.Option) (*chime.DeleteChannelOutput, error) + DeleteChannelRequest(*chime.DeleteChannelInput) (*request.Request, *chime.DeleteChannelOutput) + + DeleteChannelBan(*chime.DeleteChannelBanInput) (*chime.DeleteChannelBanOutput, error) + DeleteChannelBanWithContext(aws.Context, *chime.DeleteChannelBanInput, ...request.Option) (*chime.DeleteChannelBanOutput, error) + DeleteChannelBanRequest(*chime.DeleteChannelBanInput) (*request.Request, *chime.DeleteChannelBanOutput) + + DeleteChannelMembership(*chime.DeleteChannelMembershipInput) (*chime.DeleteChannelMembershipOutput, error) + DeleteChannelMembershipWithContext(aws.Context, *chime.DeleteChannelMembershipInput, ...request.Option) (*chime.DeleteChannelMembershipOutput, error) + DeleteChannelMembershipRequest(*chime.DeleteChannelMembershipInput) (*request.Request, *chime.DeleteChannelMembershipOutput) + + DeleteChannelMessage(*chime.DeleteChannelMessageInput) (*chime.DeleteChannelMessageOutput, error) + DeleteChannelMessageWithContext(aws.Context, *chime.DeleteChannelMessageInput, ...request.Option) (*chime.DeleteChannelMessageOutput, error) + DeleteChannelMessageRequest(*chime.DeleteChannelMessageInput) (*request.Request, *chime.DeleteChannelMessageOutput) + + DeleteChannelModerator(*chime.DeleteChannelModeratorInput) (*chime.DeleteChannelModeratorOutput, error) + DeleteChannelModeratorWithContext(aws.Context, *chime.DeleteChannelModeratorInput, ...request.Option) (*chime.DeleteChannelModeratorOutput, error) + DeleteChannelModeratorRequest(*chime.DeleteChannelModeratorInput) (*request.Request, *chime.DeleteChannelModeratorOutput) + DeleteEventsConfiguration(*chime.DeleteEventsConfigurationInput) (*chime.DeleteEventsConfigurationOutput, error) DeleteEventsConfigurationWithContext(aws.Context, *chime.DeleteEventsConfigurationInput, ...request.Option) (*chime.DeleteEventsConfigurationOutput, error) DeleteEventsConfigurationRequest(*chime.DeleteEventsConfigurationInput) (*request.Request, *chime.DeleteEventsConfigurationOutput) @@ -240,6 +304,42 @@ type ChimeAPI interface { DeleteVoiceConnectorTerminationCredentialsWithContext(aws.Context, *chime.DeleteVoiceConnectorTerminationCredentialsInput, ...request.Option) (*chime.DeleteVoiceConnectorTerminationCredentialsOutput, error) DeleteVoiceConnectorTerminationCredentialsRequest(*chime.DeleteVoiceConnectorTerminationCredentialsInput) (*request.Request, *chime.DeleteVoiceConnectorTerminationCredentialsOutput) + DescribeAppInstance(*chime.DescribeAppInstanceInput) (*chime.DescribeAppInstanceOutput, error) + DescribeAppInstanceWithContext(aws.Context, *chime.DescribeAppInstanceInput, ...request.Option) (*chime.DescribeAppInstanceOutput, error) + DescribeAppInstanceRequest(*chime.DescribeAppInstanceInput) (*request.Request, *chime.DescribeAppInstanceOutput) + + DescribeAppInstanceAdmin(*chime.DescribeAppInstanceAdminInput) (*chime.DescribeAppInstanceAdminOutput, error) + DescribeAppInstanceAdminWithContext(aws.Context, *chime.DescribeAppInstanceAdminInput, ...request.Option) (*chime.DescribeAppInstanceAdminOutput, error) + DescribeAppInstanceAdminRequest(*chime.DescribeAppInstanceAdminInput) (*request.Request, *chime.DescribeAppInstanceAdminOutput) + + DescribeAppInstanceUser(*chime.DescribeAppInstanceUserInput) (*chime.DescribeAppInstanceUserOutput, error) + DescribeAppInstanceUserWithContext(aws.Context, *chime.DescribeAppInstanceUserInput, ...request.Option) (*chime.DescribeAppInstanceUserOutput, error) + DescribeAppInstanceUserRequest(*chime.DescribeAppInstanceUserInput) (*request.Request, *chime.DescribeAppInstanceUserOutput) + + DescribeChannel(*chime.DescribeChannelInput) (*chime.DescribeChannelOutput, error) + DescribeChannelWithContext(aws.Context, *chime.DescribeChannelInput, ...request.Option) (*chime.DescribeChannelOutput, error) + DescribeChannelRequest(*chime.DescribeChannelInput) (*request.Request, *chime.DescribeChannelOutput) + + DescribeChannelBan(*chime.DescribeChannelBanInput) (*chime.DescribeChannelBanOutput, error) + DescribeChannelBanWithContext(aws.Context, *chime.DescribeChannelBanInput, ...request.Option) (*chime.DescribeChannelBanOutput, error) + DescribeChannelBanRequest(*chime.DescribeChannelBanInput) (*request.Request, *chime.DescribeChannelBanOutput) + + DescribeChannelMembership(*chime.DescribeChannelMembershipInput) (*chime.DescribeChannelMembershipOutput, error) + DescribeChannelMembershipWithContext(aws.Context, *chime.DescribeChannelMembershipInput, ...request.Option) (*chime.DescribeChannelMembershipOutput, error) + DescribeChannelMembershipRequest(*chime.DescribeChannelMembershipInput) (*request.Request, *chime.DescribeChannelMembershipOutput) + + DescribeChannelMembershipForAppInstanceUser(*chime.DescribeChannelMembershipForAppInstanceUserInput) (*chime.DescribeChannelMembershipForAppInstanceUserOutput, error) + DescribeChannelMembershipForAppInstanceUserWithContext(aws.Context, *chime.DescribeChannelMembershipForAppInstanceUserInput, ...request.Option) (*chime.DescribeChannelMembershipForAppInstanceUserOutput, error) + DescribeChannelMembershipForAppInstanceUserRequest(*chime.DescribeChannelMembershipForAppInstanceUserInput) (*request.Request, *chime.DescribeChannelMembershipForAppInstanceUserOutput) + + DescribeChannelModeratedByAppInstanceUser(*chime.DescribeChannelModeratedByAppInstanceUserInput) (*chime.DescribeChannelModeratedByAppInstanceUserOutput, error) + DescribeChannelModeratedByAppInstanceUserWithContext(aws.Context, *chime.DescribeChannelModeratedByAppInstanceUserInput, ...request.Option) (*chime.DescribeChannelModeratedByAppInstanceUserOutput, error) + DescribeChannelModeratedByAppInstanceUserRequest(*chime.DescribeChannelModeratedByAppInstanceUserInput) (*request.Request, *chime.DescribeChannelModeratedByAppInstanceUserOutput) + + DescribeChannelModerator(*chime.DescribeChannelModeratorInput) (*chime.DescribeChannelModeratorOutput, error) + DescribeChannelModeratorWithContext(aws.Context, *chime.DescribeChannelModeratorInput, ...request.Option) (*chime.DescribeChannelModeratorOutput, error) + DescribeChannelModeratorRequest(*chime.DescribeChannelModeratorInput) (*request.Request, *chime.DescribeChannelModeratorOutput) + DisassociatePhoneNumberFromUser(*chime.DisassociatePhoneNumberFromUserInput) (*chime.DisassociatePhoneNumberFromUserOutput, error) DisassociatePhoneNumberFromUserWithContext(aws.Context, *chime.DisassociatePhoneNumberFromUserInput, ...request.Option) (*chime.DisassociatePhoneNumberFromUserOutput, error) DisassociatePhoneNumberFromUserRequest(*chime.DisassociatePhoneNumberFromUserInput) (*request.Request, *chime.DisassociatePhoneNumberFromUserOutput) @@ -264,6 +364,14 @@ type ChimeAPI interface { GetAccountSettingsWithContext(aws.Context, *chime.GetAccountSettingsInput, ...request.Option) (*chime.GetAccountSettingsOutput, error) GetAccountSettingsRequest(*chime.GetAccountSettingsInput) (*request.Request, *chime.GetAccountSettingsOutput) + GetAppInstanceRetentionSettings(*chime.GetAppInstanceRetentionSettingsInput) (*chime.GetAppInstanceRetentionSettingsOutput, error) + GetAppInstanceRetentionSettingsWithContext(aws.Context, *chime.GetAppInstanceRetentionSettingsInput, ...request.Option) (*chime.GetAppInstanceRetentionSettingsOutput, error) + GetAppInstanceRetentionSettingsRequest(*chime.GetAppInstanceRetentionSettingsInput) (*request.Request, *chime.GetAppInstanceRetentionSettingsOutput) + + GetAppInstanceStreamingConfigurations(*chime.GetAppInstanceStreamingConfigurationsInput) (*chime.GetAppInstanceStreamingConfigurationsOutput, error) + GetAppInstanceStreamingConfigurationsWithContext(aws.Context, *chime.GetAppInstanceStreamingConfigurationsInput, ...request.Option) (*chime.GetAppInstanceStreamingConfigurationsOutput, error) + GetAppInstanceStreamingConfigurationsRequest(*chime.GetAppInstanceStreamingConfigurationsInput) (*request.Request, *chime.GetAppInstanceStreamingConfigurationsOutput) + GetAttendee(*chime.GetAttendeeInput) (*chime.GetAttendeeOutput, error) GetAttendeeWithContext(aws.Context, *chime.GetAttendeeInput, ...request.Option) (*chime.GetAttendeeOutput, error) GetAttendeeRequest(*chime.GetAttendeeInput) (*request.Request, *chime.GetAttendeeOutput) @@ -272,6 +380,10 @@ type ChimeAPI interface { GetBotWithContext(aws.Context, *chime.GetBotInput, ...request.Option) (*chime.GetBotOutput, error) GetBotRequest(*chime.GetBotInput) (*request.Request, *chime.GetBotOutput) + GetChannelMessage(*chime.GetChannelMessageInput) (*chime.GetChannelMessageOutput, error) + GetChannelMessageWithContext(aws.Context, *chime.GetChannelMessageInput, ...request.Option) (*chime.GetChannelMessageOutput, error) + GetChannelMessageRequest(*chime.GetChannelMessageInput) (*request.Request, *chime.GetChannelMessageOutput) + GetEventsConfiguration(*chime.GetEventsConfigurationInput) (*chime.GetEventsConfigurationOutput, error) GetEventsConfigurationWithContext(aws.Context, *chime.GetEventsConfigurationInput, ...request.Option) (*chime.GetEventsConfigurationOutput, error) GetEventsConfigurationRequest(*chime.GetEventsConfigurationInput) (*request.Request, *chime.GetEventsConfigurationOutput) @@ -284,6 +396,10 @@ type ChimeAPI interface { GetMeetingWithContext(aws.Context, *chime.GetMeetingInput, ...request.Option) (*chime.GetMeetingOutput, error) GetMeetingRequest(*chime.GetMeetingInput) (*request.Request, *chime.GetMeetingOutput) + GetMessagingSessionEndpoint(*chime.GetMessagingSessionEndpointInput) (*chime.GetMessagingSessionEndpointOutput, error) + GetMessagingSessionEndpointWithContext(aws.Context, *chime.GetMessagingSessionEndpointInput, ...request.Option) (*chime.GetMessagingSessionEndpointOutput, error) + GetMessagingSessionEndpointRequest(*chime.GetMessagingSessionEndpointInput) (*request.Request, *chime.GetMessagingSessionEndpointOutput) + GetPhoneNumber(*chime.GetPhoneNumberInput) (*chime.GetPhoneNumberOutput, error) GetPhoneNumberWithContext(aws.Context, *chime.GetPhoneNumberInput, ...request.Option) (*chime.GetPhoneNumberOutput, error) GetPhoneNumberRequest(*chime.GetPhoneNumberInput) (*request.Request, *chime.GetPhoneNumberOutput) @@ -375,6 +491,27 @@ type ChimeAPI interface { ListAccountsPages(*chime.ListAccountsInput, func(*chime.ListAccountsOutput, bool) bool) error ListAccountsPagesWithContext(aws.Context, *chime.ListAccountsInput, func(*chime.ListAccountsOutput, bool) bool, ...request.Option) error + ListAppInstanceAdmins(*chime.ListAppInstanceAdminsInput) (*chime.ListAppInstanceAdminsOutput, error) + ListAppInstanceAdminsWithContext(aws.Context, *chime.ListAppInstanceAdminsInput, ...request.Option) (*chime.ListAppInstanceAdminsOutput, error) + ListAppInstanceAdminsRequest(*chime.ListAppInstanceAdminsInput) (*request.Request, *chime.ListAppInstanceAdminsOutput) + + ListAppInstanceAdminsPages(*chime.ListAppInstanceAdminsInput, func(*chime.ListAppInstanceAdminsOutput, bool) bool) error + ListAppInstanceAdminsPagesWithContext(aws.Context, *chime.ListAppInstanceAdminsInput, func(*chime.ListAppInstanceAdminsOutput, bool) bool, ...request.Option) error + + ListAppInstanceUsers(*chime.ListAppInstanceUsersInput) (*chime.ListAppInstanceUsersOutput, error) + ListAppInstanceUsersWithContext(aws.Context, *chime.ListAppInstanceUsersInput, ...request.Option) (*chime.ListAppInstanceUsersOutput, error) + ListAppInstanceUsersRequest(*chime.ListAppInstanceUsersInput) (*request.Request, *chime.ListAppInstanceUsersOutput) + + ListAppInstanceUsersPages(*chime.ListAppInstanceUsersInput, func(*chime.ListAppInstanceUsersOutput, bool) bool) error + ListAppInstanceUsersPagesWithContext(aws.Context, *chime.ListAppInstanceUsersInput, func(*chime.ListAppInstanceUsersOutput, bool) bool, ...request.Option) error + + ListAppInstances(*chime.ListAppInstancesInput) (*chime.ListAppInstancesOutput, error) + ListAppInstancesWithContext(aws.Context, *chime.ListAppInstancesInput, ...request.Option) (*chime.ListAppInstancesOutput, error) + ListAppInstancesRequest(*chime.ListAppInstancesInput) (*request.Request, *chime.ListAppInstancesOutput) + + ListAppInstancesPages(*chime.ListAppInstancesInput, func(*chime.ListAppInstancesOutput, bool) bool) error + ListAppInstancesPagesWithContext(aws.Context, *chime.ListAppInstancesInput, func(*chime.ListAppInstancesOutput, bool) bool, ...request.Option) error + ListAttendeeTags(*chime.ListAttendeeTagsInput) (*chime.ListAttendeeTagsOutput, error) ListAttendeeTagsWithContext(aws.Context, *chime.ListAttendeeTagsInput, ...request.Option) (*chime.ListAttendeeTagsOutput, error) ListAttendeeTagsRequest(*chime.ListAttendeeTagsInput) (*request.Request, *chime.ListAttendeeTagsOutput) @@ -393,6 +530,55 @@ type ChimeAPI interface { ListBotsPages(*chime.ListBotsInput, func(*chime.ListBotsOutput, bool) bool) error ListBotsPagesWithContext(aws.Context, *chime.ListBotsInput, func(*chime.ListBotsOutput, bool) bool, ...request.Option) error + ListChannelBans(*chime.ListChannelBansInput) (*chime.ListChannelBansOutput, error) + ListChannelBansWithContext(aws.Context, *chime.ListChannelBansInput, ...request.Option) (*chime.ListChannelBansOutput, error) + ListChannelBansRequest(*chime.ListChannelBansInput) (*request.Request, *chime.ListChannelBansOutput) + + ListChannelBansPages(*chime.ListChannelBansInput, func(*chime.ListChannelBansOutput, bool) bool) error + ListChannelBansPagesWithContext(aws.Context, *chime.ListChannelBansInput, func(*chime.ListChannelBansOutput, bool) bool, ...request.Option) error + + ListChannelMemberships(*chime.ListChannelMembershipsInput) (*chime.ListChannelMembershipsOutput, error) + ListChannelMembershipsWithContext(aws.Context, *chime.ListChannelMembershipsInput, ...request.Option) (*chime.ListChannelMembershipsOutput, error) + ListChannelMembershipsRequest(*chime.ListChannelMembershipsInput) (*request.Request, *chime.ListChannelMembershipsOutput) + + ListChannelMembershipsPages(*chime.ListChannelMembershipsInput, func(*chime.ListChannelMembershipsOutput, bool) bool) error + ListChannelMembershipsPagesWithContext(aws.Context, *chime.ListChannelMembershipsInput, func(*chime.ListChannelMembershipsOutput, bool) bool, ...request.Option) error + + ListChannelMembershipsForAppInstanceUser(*chime.ListChannelMembershipsForAppInstanceUserInput) (*chime.ListChannelMembershipsForAppInstanceUserOutput, error) + ListChannelMembershipsForAppInstanceUserWithContext(aws.Context, *chime.ListChannelMembershipsForAppInstanceUserInput, ...request.Option) (*chime.ListChannelMembershipsForAppInstanceUserOutput, error) + ListChannelMembershipsForAppInstanceUserRequest(*chime.ListChannelMembershipsForAppInstanceUserInput) (*request.Request, *chime.ListChannelMembershipsForAppInstanceUserOutput) + + ListChannelMembershipsForAppInstanceUserPages(*chime.ListChannelMembershipsForAppInstanceUserInput, func(*chime.ListChannelMembershipsForAppInstanceUserOutput, bool) bool) error + ListChannelMembershipsForAppInstanceUserPagesWithContext(aws.Context, *chime.ListChannelMembershipsForAppInstanceUserInput, func(*chime.ListChannelMembershipsForAppInstanceUserOutput, bool) bool, ...request.Option) error + + ListChannelMessages(*chime.ListChannelMessagesInput) (*chime.ListChannelMessagesOutput, error) + ListChannelMessagesWithContext(aws.Context, *chime.ListChannelMessagesInput, ...request.Option) (*chime.ListChannelMessagesOutput, error) + ListChannelMessagesRequest(*chime.ListChannelMessagesInput) (*request.Request, *chime.ListChannelMessagesOutput) + + ListChannelMessagesPages(*chime.ListChannelMessagesInput, func(*chime.ListChannelMessagesOutput, bool) bool) error + ListChannelMessagesPagesWithContext(aws.Context, *chime.ListChannelMessagesInput, func(*chime.ListChannelMessagesOutput, bool) bool, ...request.Option) error + + ListChannelModerators(*chime.ListChannelModeratorsInput) (*chime.ListChannelModeratorsOutput, error) + ListChannelModeratorsWithContext(aws.Context, *chime.ListChannelModeratorsInput, ...request.Option) (*chime.ListChannelModeratorsOutput, error) + ListChannelModeratorsRequest(*chime.ListChannelModeratorsInput) (*request.Request, *chime.ListChannelModeratorsOutput) + + ListChannelModeratorsPages(*chime.ListChannelModeratorsInput, func(*chime.ListChannelModeratorsOutput, bool) bool) error + ListChannelModeratorsPagesWithContext(aws.Context, *chime.ListChannelModeratorsInput, func(*chime.ListChannelModeratorsOutput, bool) bool, ...request.Option) error + + ListChannels(*chime.ListChannelsInput) (*chime.ListChannelsOutput, error) + ListChannelsWithContext(aws.Context, *chime.ListChannelsInput, ...request.Option) (*chime.ListChannelsOutput, error) + ListChannelsRequest(*chime.ListChannelsInput) (*request.Request, *chime.ListChannelsOutput) + + ListChannelsPages(*chime.ListChannelsInput, func(*chime.ListChannelsOutput, bool) bool) error + ListChannelsPagesWithContext(aws.Context, *chime.ListChannelsInput, func(*chime.ListChannelsOutput, bool) bool, ...request.Option) error + + ListChannelsModeratedByAppInstanceUser(*chime.ListChannelsModeratedByAppInstanceUserInput) (*chime.ListChannelsModeratedByAppInstanceUserOutput, error) + ListChannelsModeratedByAppInstanceUserWithContext(aws.Context, *chime.ListChannelsModeratedByAppInstanceUserInput, ...request.Option) (*chime.ListChannelsModeratedByAppInstanceUserOutput, error) + ListChannelsModeratedByAppInstanceUserRequest(*chime.ListChannelsModeratedByAppInstanceUserInput) (*request.Request, *chime.ListChannelsModeratedByAppInstanceUserOutput) + + ListChannelsModeratedByAppInstanceUserPages(*chime.ListChannelsModeratedByAppInstanceUserInput, func(*chime.ListChannelsModeratedByAppInstanceUserOutput, bool) bool) error + ListChannelsModeratedByAppInstanceUserPagesWithContext(aws.Context, *chime.ListChannelsModeratedByAppInstanceUserInput, func(*chime.ListChannelsModeratedByAppInstanceUserOutput, bool) bool, ...request.Option) error + ListMeetingTags(*chime.ListMeetingTagsInput) (*chime.ListMeetingTagsOutput, error) ListMeetingTagsWithContext(aws.Context, *chime.ListMeetingTagsInput, ...request.Option) (*chime.ListMeetingTagsOutput, error) ListMeetingTagsRequest(*chime.ListMeetingTagsInput) (*request.Request, *chime.ListMeetingTagsOutput) @@ -443,10 +629,16 @@ type ChimeAPI interface { ListSipMediaApplicationsWithContext(aws.Context, *chime.ListSipMediaApplicationsInput, ...request.Option) (*chime.ListSipMediaApplicationsOutput, error) ListSipMediaApplicationsRequest(*chime.ListSipMediaApplicationsInput) (*request.Request, *chime.ListSipMediaApplicationsOutput) + ListSipMediaApplicationsPages(*chime.ListSipMediaApplicationsInput, func(*chime.ListSipMediaApplicationsOutput, bool) bool) error + ListSipMediaApplicationsPagesWithContext(aws.Context, *chime.ListSipMediaApplicationsInput, func(*chime.ListSipMediaApplicationsOutput, bool) bool, ...request.Option) error + ListSipRules(*chime.ListSipRulesInput) (*chime.ListSipRulesOutput, error) ListSipRulesWithContext(aws.Context, *chime.ListSipRulesInput, ...request.Option) (*chime.ListSipRulesOutput, error) ListSipRulesRequest(*chime.ListSipRulesInput) (*request.Request, *chime.ListSipRulesOutput) + ListSipRulesPages(*chime.ListSipRulesInput, func(*chime.ListSipRulesOutput, bool) bool) error + ListSipRulesPagesWithContext(aws.Context, *chime.ListSipRulesInput, func(*chime.ListSipRulesOutput, bool) bool, ...request.Option) error + ListTagsForResource(*chime.ListTagsForResourceInput) (*chime.ListTagsForResourceOutput, error) ListTagsForResourceWithContext(aws.Context, *chime.ListTagsForResourceInput, ...request.Option) (*chime.ListTagsForResourceOutput, error) ListTagsForResourceRequest(*chime.ListTagsForResourceInput) (*request.Request, *chime.ListTagsForResourceOutput) @@ -480,6 +672,14 @@ type ChimeAPI interface { LogoutUserWithContext(aws.Context, *chime.LogoutUserInput, ...request.Option) (*chime.LogoutUserOutput, error) LogoutUserRequest(*chime.LogoutUserInput) (*request.Request, *chime.LogoutUserOutput) + PutAppInstanceRetentionSettings(*chime.PutAppInstanceRetentionSettingsInput) (*chime.PutAppInstanceRetentionSettingsOutput, error) + PutAppInstanceRetentionSettingsWithContext(aws.Context, *chime.PutAppInstanceRetentionSettingsInput, ...request.Option) (*chime.PutAppInstanceRetentionSettingsOutput, error) + PutAppInstanceRetentionSettingsRequest(*chime.PutAppInstanceRetentionSettingsInput) (*request.Request, *chime.PutAppInstanceRetentionSettingsOutput) + + PutAppInstanceStreamingConfigurations(*chime.PutAppInstanceStreamingConfigurationsInput) (*chime.PutAppInstanceStreamingConfigurationsOutput, error) + PutAppInstanceStreamingConfigurationsWithContext(aws.Context, *chime.PutAppInstanceStreamingConfigurationsInput, ...request.Option) (*chime.PutAppInstanceStreamingConfigurationsOutput, error) + PutAppInstanceStreamingConfigurationsRequest(*chime.PutAppInstanceStreamingConfigurationsInput) (*request.Request, *chime.PutAppInstanceStreamingConfigurationsOutput) + PutEventsConfiguration(*chime.PutEventsConfigurationInput) (*chime.PutEventsConfigurationOutput, error) PutEventsConfigurationWithContext(aws.Context, *chime.PutEventsConfigurationInput, ...request.Option) (*chime.PutEventsConfigurationOutput, error) PutEventsConfigurationRequest(*chime.PutEventsConfigurationInput) (*request.Request, *chime.PutEventsConfigurationOutput) @@ -520,6 +720,10 @@ type ChimeAPI interface { PutVoiceConnectorTerminationCredentialsWithContext(aws.Context, *chime.PutVoiceConnectorTerminationCredentialsInput, ...request.Option) (*chime.PutVoiceConnectorTerminationCredentialsOutput, error) PutVoiceConnectorTerminationCredentialsRequest(*chime.PutVoiceConnectorTerminationCredentialsInput) (*request.Request, *chime.PutVoiceConnectorTerminationCredentialsOutput) + RedactChannelMessage(*chime.RedactChannelMessageInput) (*chime.RedactChannelMessageOutput, error) + RedactChannelMessageWithContext(aws.Context, *chime.RedactChannelMessageInput, ...request.Option) (*chime.RedactChannelMessageOutput, error) + RedactChannelMessageRequest(*chime.RedactChannelMessageInput) (*request.Request, *chime.RedactChannelMessageOutput) + RedactConversationMessage(*chime.RedactConversationMessageInput) (*chime.RedactConversationMessageOutput, error) RedactConversationMessageWithContext(aws.Context, *chime.RedactConversationMessageInput, ...request.Option) (*chime.RedactConversationMessageOutput, error) RedactConversationMessageRequest(*chime.RedactConversationMessageInput) (*request.Request, *chime.RedactConversationMessageOutput) @@ -544,6 +748,10 @@ type ChimeAPI interface { SearchAvailablePhoneNumbersWithContext(aws.Context, *chime.SearchAvailablePhoneNumbersInput, ...request.Option) (*chime.SearchAvailablePhoneNumbersOutput, error) SearchAvailablePhoneNumbersRequest(*chime.SearchAvailablePhoneNumbersInput) (*request.Request, *chime.SearchAvailablePhoneNumbersOutput) + SendChannelMessage(*chime.SendChannelMessageInput) (*chime.SendChannelMessageOutput, error) + SendChannelMessageWithContext(aws.Context, *chime.SendChannelMessageInput, ...request.Option) (*chime.SendChannelMessageOutput, error) + SendChannelMessageRequest(*chime.SendChannelMessageInput) (*request.Request, *chime.SendChannelMessageOutput) + TagAttendee(*chime.TagAttendeeInput) (*chime.TagAttendeeOutput, error) TagAttendeeWithContext(aws.Context, *chime.TagAttendeeInput, ...request.Option) (*chime.TagAttendeeOutput, error) TagAttendeeRequest(*chime.TagAttendeeInput) (*request.Request, *chime.TagAttendeeOutput) @@ -576,10 +784,30 @@ type ChimeAPI interface { UpdateAccountSettingsWithContext(aws.Context, *chime.UpdateAccountSettingsInput, ...request.Option) (*chime.UpdateAccountSettingsOutput, error) UpdateAccountSettingsRequest(*chime.UpdateAccountSettingsInput) (*request.Request, *chime.UpdateAccountSettingsOutput) + UpdateAppInstance(*chime.UpdateAppInstanceInput) (*chime.UpdateAppInstanceOutput, error) + UpdateAppInstanceWithContext(aws.Context, *chime.UpdateAppInstanceInput, ...request.Option) (*chime.UpdateAppInstanceOutput, error) + UpdateAppInstanceRequest(*chime.UpdateAppInstanceInput) (*request.Request, *chime.UpdateAppInstanceOutput) + + UpdateAppInstanceUser(*chime.UpdateAppInstanceUserInput) (*chime.UpdateAppInstanceUserOutput, error) + UpdateAppInstanceUserWithContext(aws.Context, *chime.UpdateAppInstanceUserInput, ...request.Option) (*chime.UpdateAppInstanceUserOutput, error) + UpdateAppInstanceUserRequest(*chime.UpdateAppInstanceUserInput) (*request.Request, *chime.UpdateAppInstanceUserOutput) + UpdateBot(*chime.UpdateBotInput) (*chime.UpdateBotOutput, error) UpdateBotWithContext(aws.Context, *chime.UpdateBotInput, ...request.Option) (*chime.UpdateBotOutput, error) UpdateBotRequest(*chime.UpdateBotInput) (*request.Request, *chime.UpdateBotOutput) + UpdateChannel(*chime.UpdateChannelInput) (*chime.UpdateChannelOutput, error) + UpdateChannelWithContext(aws.Context, *chime.UpdateChannelInput, ...request.Option) (*chime.UpdateChannelOutput, error) + UpdateChannelRequest(*chime.UpdateChannelInput) (*request.Request, *chime.UpdateChannelOutput) + + UpdateChannelMessage(*chime.UpdateChannelMessageInput) (*chime.UpdateChannelMessageOutput, error) + UpdateChannelMessageWithContext(aws.Context, *chime.UpdateChannelMessageInput, ...request.Option) (*chime.UpdateChannelMessageOutput, error) + UpdateChannelMessageRequest(*chime.UpdateChannelMessageInput) (*request.Request, *chime.UpdateChannelMessageOutput) + + UpdateChannelReadMarker(*chime.UpdateChannelReadMarkerInput) (*chime.UpdateChannelReadMarkerOutput, error) + UpdateChannelReadMarkerWithContext(aws.Context, *chime.UpdateChannelReadMarkerInput, ...request.Option) (*chime.UpdateChannelReadMarkerOutput, error) + UpdateChannelReadMarkerRequest(*chime.UpdateChannelReadMarkerInput) (*request.Request, *chime.UpdateChannelReadMarkerOutput) + UpdateGlobalSettings(*chime.UpdateGlobalSettingsInput) (*chime.UpdateGlobalSettingsOutput, error) UpdateGlobalSettingsWithContext(aws.Context, *chime.UpdateGlobalSettingsInput, ...request.Option) (*chime.UpdateGlobalSettingsOutput, error) UpdateGlobalSettingsRequest(*chime.UpdateGlobalSettingsInput) (*request.Request, *chime.UpdateGlobalSettingsOutput) diff --git a/service/chime/doc.go b/service/chime/doc.go index 0c5a343409c..3502d10adb8 100644 --- a/service/chime/doc.go +++ b/service/chime/doc.go @@ -33,7 +33,7 @@ // commands, see the Amazon Chime commands (https://docs.aws.amazon.com/cli/latest/reference/chime/index.html) // in the AWS CLI Command Reference. // -// Using REST API +// Using REST // // If you use REST to make API calls, you must authenticate your request by // providing a signature. Amazon Chime supports Signature Version 4. For more diff --git a/service/chime/errors.go b/service/chime/errors.go index 17bb694febe..4b80d987f16 100644 --- a/service/chime/errors.go +++ b/service/chime/errors.go @@ -30,8 +30,7 @@ const ( // ErrCodeForbiddenException for service response error code // "ForbiddenException". // - // The client is permanently forbidden from making the request. For example, - // when a user tries to create an account from an unsupported Region. + // The client is permanently forbidden from making the request. ErrCodeForbiddenException = "ForbiddenException" // ErrCodeNotFoundException for service response error code diff --git a/service/cloudhsmv2/api.go b/service/cloudhsmv2/api.go index 7d3fdaac015..7ad97da6fd0 100644 --- a/service/cloudhsmv2/api.go +++ b/service/cloudhsmv2/api.go @@ -1169,6 +1169,192 @@ func (c *CloudHSMV2) ListTagsPagesWithContext(ctx aws.Context, input *ListTagsIn return p.Err() } +const opModifyBackupAttributes = "ModifyBackupAttributes" + +// ModifyBackupAttributesRequest generates a "aws/request.Request" representing the +// client's request for the ModifyBackupAttributes 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 ModifyBackupAttributes for more information on using the ModifyBackupAttributes +// 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 ModifyBackupAttributesRequest method. +// req, resp := client.ModifyBackupAttributesRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudhsmv2-2017-04-28/ModifyBackupAttributes +func (c *CloudHSMV2) ModifyBackupAttributesRequest(input *ModifyBackupAttributesInput) (req *request.Request, output *ModifyBackupAttributesOutput) { + op := &request.Operation{ + Name: opModifyBackupAttributes, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &ModifyBackupAttributesInput{} + } + + output = &ModifyBackupAttributesOutput{} + req = c.newRequest(op, input, output) + return +} + +// ModifyBackupAttributes API operation for AWS CloudHSM V2. +// +// Modifies attributes for AWS CloudHSM backup. +// +// 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 AWS CloudHSM V2's +// API operation ModifyBackupAttributes for usage and error information. +// +// Returned Error Types: +// * CloudHsmAccessDeniedException +// The request was rejected because the requester does not have permission to +// perform the requested operation. +// +// * CloudHsmInternalFailureException +// The request was rejected because of an AWS CloudHSM internal failure. The +// request can be retried. +// +// * CloudHsmInvalidRequestException +// The request was rejected because it is not a valid request. +// +// * CloudHsmResourceNotFoundException +// The request was rejected because it refers to a resource that cannot be found. +// +// * CloudHsmServiceException +// The request was rejected because an error occurred. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudhsmv2-2017-04-28/ModifyBackupAttributes +func (c *CloudHSMV2) ModifyBackupAttributes(input *ModifyBackupAttributesInput) (*ModifyBackupAttributesOutput, error) { + req, out := c.ModifyBackupAttributesRequest(input) + return out, req.Send() +} + +// ModifyBackupAttributesWithContext is the same as ModifyBackupAttributes with the addition of +// the ability to pass a context and additional request options. +// +// See ModifyBackupAttributes 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 *CloudHSMV2) ModifyBackupAttributesWithContext(ctx aws.Context, input *ModifyBackupAttributesInput, opts ...request.Option) (*ModifyBackupAttributesOutput, error) { + req, out := c.ModifyBackupAttributesRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opModifyCluster = "ModifyCluster" + +// ModifyClusterRequest generates a "aws/request.Request" representing the +// client's request for the ModifyCluster 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 ModifyCluster for more information on using the ModifyCluster +// 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 ModifyClusterRequest method. +// req, resp := client.ModifyClusterRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudhsmv2-2017-04-28/ModifyCluster +func (c *CloudHSMV2) ModifyClusterRequest(input *ModifyClusterInput) (req *request.Request, output *ModifyClusterOutput) { + op := &request.Operation{ + Name: opModifyCluster, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &ModifyClusterInput{} + } + + output = &ModifyClusterOutput{} + req = c.newRequest(op, input, output) + return +} + +// ModifyCluster API operation for AWS CloudHSM V2. +// +// Modifies AWS CloudHSM cluster. +// +// 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 AWS CloudHSM V2's +// API operation ModifyCluster for usage and error information. +// +// Returned Error Types: +// * CloudHsmAccessDeniedException +// The request was rejected because the requester does not have permission to +// perform the requested operation. +// +// * CloudHsmInternalFailureException +// The request was rejected because of an AWS CloudHSM internal failure. The +// request can be retried. +// +// * CloudHsmInvalidRequestException +// The request was rejected because it is not a valid request. +// +// * CloudHsmResourceNotFoundException +// The request was rejected because it refers to a resource that cannot be found. +// +// * CloudHsmServiceException +// The request was rejected because an error occurred. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudhsmv2-2017-04-28/ModifyCluster +func (c *CloudHSMV2) ModifyCluster(input *ModifyClusterInput) (*ModifyClusterOutput, error) { + req, out := c.ModifyClusterRequest(input) + return out, req.Send() +} + +// ModifyClusterWithContext is the same as ModifyCluster with the addition of +// the ability to pass a context and additional request options. +// +// See ModifyCluster 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 *CloudHSMV2) ModifyClusterWithContext(ctx aws.Context, input *ModifyClusterInput, opts ...request.Option) (*ModifyClusterOutput, error) { + req, out := c.ModifyClusterRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opRestoreBackup = "RestoreBackup" // RestoreBackupRequest generates a "aws/request.Request" representing the @@ -1463,7 +1649,7 @@ func (c *CloudHSMV2) UntagResourceWithContext(ctx aws.Context, input *UntagResou // objects contain the BackupId, BackupState, ClusterId, and CreateTimestamp // parameters. Backups that were copied into a destination region additionally // contain the CopyTimestamp, SourceBackup, SourceCluster, and SourceRegion -// paramters. A backup that is pending deletion will include the DeleteTimestamp +// parameters. A backup that is pending deletion will include the DeleteTimestamp // parameter. type Backup struct { _ struct{} `type:"structure"` @@ -1488,6 +1674,11 @@ type Backup struct { // The date and time when the backup will be permanently deleted. DeleteTimestamp *time.Time `type:"timestamp"` + // Specifies whether the service should exempt a backup from the retention policy + // for the cluster. True exempts a backup from the retention policy. False means + // the service applies the backup retention policy defined at the cluster. + NeverExpires *bool `type:"boolean"` + // The identifier (ID) of the source backup from which the new backup was copied. SourceBackup *string `type:"string"` @@ -1549,6 +1740,12 @@ func (s *Backup) SetDeleteTimestamp(v time.Time) *Backup { return s } +// SetNeverExpires sets the NeverExpires field's value. +func (s *Backup) SetNeverExpires(v bool) *Backup { + s.NeverExpires = &v + return s +} + // SetSourceBackup sets the SourceBackup field's value. func (s *Backup) SetSourceBackup(v string) *Backup { s.SourceBackup = &v @@ -1573,6 +1770,53 @@ func (s *Backup) SetTagList(v []*Tag) *Backup { return s } +// A policy that defines the number of days to retain backups. +type BackupRetentionPolicy struct { + _ struct{} `type:"structure"` + + // The type of backup retention policy. For the DAYS type, the value is the + // number of days to retain backups. + Type *string `type:"string" enum:"BackupRetentionType"` + + // Use a value between 7 - 379. + Value *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s BackupRetentionPolicy) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BackupRetentionPolicy) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *BackupRetentionPolicy) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "BackupRetentionPolicy"} + if s.Value != nil && len(*s.Value) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Value", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetType sets the Type field's value. +func (s *BackupRetentionPolicy) SetType(v string) *BackupRetentionPolicy { + s.Type = &v + return s +} + +// SetValue sets the Value field's value. +func (s *BackupRetentionPolicy) SetValue(v string) *BackupRetentionPolicy { + s.Value = &v + return s +} + // Contains one or more certificates or a certificate signing request (CSR). type Certificates struct { _ struct{} `type:"structure"` @@ -1981,6 +2225,9 @@ type Cluster struct { // The cluster's backup policy. BackupPolicy *string `type:"string" enum:"BackupPolicy"` + // A policy that defines how the service retains backups. + BackupRetentionPolicy *BackupRetentionPolicy `type:"structure"` + // Contains one or more certificates or a certificate signing request (CSR). Certificates *Certificates `type:"structure"` @@ -2040,6 +2287,12 @@ func (s *Cluster) SetBackupPolicy(v string) *Cluster { return s } +// SetBackupRetentionPolicy sets the BackupRetentionPolicy field's value. +func (s *Cluster) SetBackupRetentionPolicy(v *BackupRetentionPolicy) *Cluster { + s.BackupRetentionPolicy = v + return s +} + // SetCertificates sets the Certificates field's value. func (s *Cluster) SetCertificates(v *Certificates) *Cluster { s.Certificates = v @@ -2228,6 +2481,9 @@ func (s *CopyBackupToRegionOutput) SetDestinationBackup(v *DestinationBackup) *C type CreateClusterInput struct { _ struct{} `type:"structure"` + // A policy that defines how the service retains backups. + BackupRetentionPolicy *BackupRetentionPolicy `type:"structure"` + // The type of HSM to use in the cluster. Currently the only allowed value is // hsm1.medium. // @@ -2279,6 +2535,11 @@ func (s *CreateClusterInput) Validate() error { if s.TagList != nil && len(s.TagList) < 1 { invalidParams.Add(request.NewErrParamMinLen("TagList", 1)) } + if s.BackupRetentionPolicy != nil { + if err := s.BackupRetentionPolicy.Validate(); err != nil { + invalidParams.AddNested("BackupRetentionPolicy", err.(request.ErrInvalidParams)) + } + } if s.TagList != nil { for i, v := range s.TagList { if v == nil { @@ -2296,6 +2557,12 @@ func (s *CreateClusterInput) Validate() error { return nil } +// SetBackupRetentionPolicy sets the BackupRetentionPolicy field's value. +func (s *CreateClusterInput) SetBackupRetentionPolicy(v *BackupRetentionPolicy) *CreateClusterInput { + s.BackupRetentionPolicy = v + return s +} + // SetHsmType sets the HsmType field's value. func (s *CreateClusterInput) SetHsmType(v string) *CreateClusterInput { s.HsmType = &v @@ -2661,6 +2928,11 @@ type DescribeBackupsInput struct { // Specify clusters by their cluster identifier (ID). // // Use the states filter to return only backups that match the specified state. + // + // Use the neverExpires filter to return backups filtered by the value in the + // neverExpires parameter. True returns all backups exempt from the backup retention + // policy. False returns all backups with a backup retention policy defined + // at the cluster. Filters map[string][]*string `type:"map"` // The maximum number of backups to return in the response. When there are more @@ -3202,6 +3474,170 @@ func (s *ListTagsOutput) SetTagList(v []*Tag) *ListTagsOutput { return s } +type ModifyBackupAttributesInput struct { + _ struct{} `type:"structure"` + + // The identifier (ID) of the backup to modify. To find the ID of a backup, + // use the DescribeBackups operation. + // + // BackupId is a required field + BackupId *string `type:"string" required:"true"` + + // Specifies whether the service should exempt a backup from the retention policy + // for the cluster. True exempts a backup from the retention policy. False means + // the service applies the backup retention policy defined at the cluster. + // + // NeverExpires is a required field + NeverExpires *bool `type:"boolean" required:"true"` +} + +// String returns the string representation +func (s ModifyBackupAttributesInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ModifyBackupAttributesInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ModifyBackupAttributesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ModifyBackupAttributesInput"} + if s.BackupId == nil { + invalidParams.Add(request.NewErrParamRequired("BackupId")) + } + if s.NeverExpires == nil { + invalidParams.Add(request.NewErrParamRequired("NeverExpires")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetBackupId sets the BackupId field's value. +func (s *ModifyBackupAttributesInput) SetBackupId(v string) *ModifyBackupAttributesInput { + s.BackupId = &v + return s +} + +// SetNeverExpires sets the NeverExpires field's value. +func (s *ModifyBackupAttributesInput) SetNeverExpires(v bool) *ModifyBackupAttributesInput { + s.NeverExpires = &v + return s +} + +type ModifyBackupAttributesOutput struct { + _ struct{} `type:"structure"` + + // Contains information about a backup of an AWS CloudHSM cluster. All backup + // objects contain the BackupId, BackupState, ClusterId, and CreateTimestamp + // parameters. Backups that were copied into a destination region additionally + // contain the CopyTimestamp, SourceBackup, SourceCluster, and SourceRegion + // parameters. A backup that is pending deletion will include the DeleteTimestamp + // parameter. + Backup *Backup `type:"structure"` +} + +// String returns the string representation +func (s ModifyBackupAttributesOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ModifyBackupAttributesOutput) GoString() string { + return s.String() +} + +// SetBackup sets the Backup field's value. +func (s *ModifyBackupAttributesOutput) SetBackup(v *Backup) *ModifyBackupAttributesOutput { + s.Backup = v + return s +} + +type ModifyClusterInput struct { + _ struct{} `type:"structure"` + + // A policy that defines how the service retains backups. + // + // BackupRetentionPolicy is a required field + BackupRetentionPolicy *BackupRetentionPolicy `type:"structure" required:"true"` + + // The identifier (ID) of the cluster that you want to modify. To find the cluster + // ID, use DescribeClusters. + // + // ClusterId is a required field + ClusterId *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s ModifyClusterInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ModifyClusterInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ModifyClusterInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ModifyClusterInput"} + if s.BackupRetentionPolicy == nil { + invalidParams.Add(request.NewErrParamRequired("BackupRetentionPolicy")) + } + if s.ClusterId == nil { + invalidParams.Add(request.NewErrParamRequired("ClusterId")) + } + if s.BackupRetentionPolicy != nil { + if err := s.BackupRetentionPolicy.Validate(); err != nil { + invalidParams.AddNested("BackupRetentionPolicy", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetBackupRetentionPolicy sets the BackupRetentionPolicy field's value. +func (s *ModifyClusterInput) SetBackupRetentionPolicy(v *BackupRetentionPolicy) *ModifyClusterInput { + s.BackupRetentionPolicy = v + return s +} + +// SetClusterId sets the ClusterId field's value. +func (s *ModifyClusterInput) SetClusterId(v string) *ModifyClusterInput { + s.ClusterId = &v + return s +} + +type ModifyClusterOutput struct { + _ struct{} `type:"structure"` + + // Contains information about an AWS CloudHSM cluster. + Cluster *Cluster `type:"structure"` +} + +// String returns the string representation +func (s ModifyClusterOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ModifyClusterOutput) GoString() string { + return s.String() +} + +// SetCluster sets the Cluster field's value. +func (s *ModifyClusterOutput) SetCluster(v *Cluster) *ModifyClusterOutput { + s.Cluster = v + return s +} + type RestoreBackupInput struct { _ struct{} `type:"structure"` @@ -3483,6 +3919,18 @@ func BackupPolicy_Values() []string { } } +const ( + // BackupRetentionTypeDays is a BackupRetentionType enum value + BackupRetentionTypeDays = "DAYS" +) + +// BackupRetentionType_Values returns all elements of the BackupRetentionType enum +func BackupRetentionType_Values() []string { + return []string{ + BackupRetentionTypeDays, + } +} + const ( // BackupStateCreateInProgress is a BackupState enum value BackupStateCreateInProgress = "CREATE_IN_PROGRESS" diff --git a/service/cloudhsmv2/cloudhsmv2iface/interface.go b/service/cloudhsmv2/cloudhsmv2iface/interface.go index abc7885ebdb..4906c7cba04 100644 --- a/service/cloudhsmv2/cloudhsmv2iface/interface.go +++ b/service/cloudhsmv2/cloudhsmv2iface/interface.go @@ -109,6 +109,14 @@ type CloudHSMV2API interface { ListTagsPages(*cloudhsmv2.ListTagsInput, func(*cloudhsmv2.ListTagsOutput, bool) bool) error ListTagsPagesWithContext(aws.Context, *cloudhsmv2.ListTagsInput, func(*cloudhsmv2.ListTagsOutput, bool) bool, ...request.Option) error + ModifyBackupAttributes(*cloudhsmv2.ModifyBackupAttributesInput) (*cloudhsmv2.ModifyBackupAttributesOutput, error) + ModifyBackupAttributesWithContext(aws.Context, *cloudhsmv2.ModifyBackupAttributesInput, ...request.Option) (*cloudhsmv2.ModifyBackupAttributesOutput, error) + ModifyBackupAttributesRequest(*cloudhsmv2.ModifyBackupAttributesInput) (*request.Request, *cloudhsmv2.ModifyBackupAttributesOutput) + + ModifyCluster(*cloudhsmv2.ModifyClusterInput) (*cloudhsmv2.ModifyClusterOutput, error) + ModifyClusterWithContext(aws.Context, *cloudhsmv2.ModifyClusterInput, ...request.Option) (*cloudhsmv2.ModifyClusterOutput, error) + ModifyClusterRequest(*cloudhsmv2.ModifyClusterInput) (*request.Request, *cloudhsmv2.ModifyClusterOutput) + RestoreBackup(*cloudhsmv2.RestoreBackupInput) (*cloudhsmv2.RestoreBackupOutput, error) RestoreBackupWithContext(aws.Context, *cloudhsmv2.RestoreBackupInput, ...request.Option) (*cloudhsmv2.RestoreBackupOutput, error) RestoreBackupRequest(*cloudhsmv2.RestoreBackupInput) (*request.Request, *cloudhsmv2.RestoreBackupOutput) diff --git a/service/codegurureviewer/api.go b/service/codegurureviewer/api.go index 2348782decc..387b8ee5269 100644 --- a/service/codegurureviewer/api.go +++ b/service/codegurureviewer/api.go @@ -170,7 +170,11 @@ func (c *CodeGuruReviewer) CreateCodeReviewRequest(input *CreateCodeReviewInput) // CreateCodeReview API operation for Amazon CodeGuru Reviewer. // -// Use to create a code review for a repository analysis. +// Use to create a code review with a CodeReviewType (https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_CodeReviewType.html) +// of RepositoryAnalysis. This type of code review analyzes all code under a +// specified branch in an associated repository. PullRequest code reviews are +// automatically triggered by a pull request so cannot be created using this +// method. // // 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 @@ -1186,6 +1190,91 @@ func (c *CodeGuruReviewer) ListRepositoryAssociationsPagesWithContext(ctx aws.Co return p.Err() } +const opListTagsForResource = "ListTagsForResource" + +// ListTagsForResourceRequest generates a "aws/request.Request" representing the +// client's request for the ListTagsForResource operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListTagsForResource for more information on using the ListTagsForResource +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the ListTagsForResourceRequest method. +// req, resp := client.ListTagsForResourceRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/ListTagsForResource +func (c *CodeGuruReviewer) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req *request.Request, output *ListTagsForResourceOutput) { + op := &request.Operation{ + Name: opListTagsForResource, + HTTPMethod: "GET", + HTTPPath: "/tags/{resourceArn}", + } + + if input == nil { + input = &ListTagsForResourceInput{} + } + + output = &ListTagsForResourceOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListTagsForResource API operation for Amazon CodeGuru Reviewer. +// +// Returns the list of tags associated with an associated repository resource. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon CodeGuru Reviewer's +// API operation ListTagsForResource for usage and error information. +// +// Returned Error Types: +// * InternalServerException +// The server encountered an internal error and is unable to complete the request. +// +// * ValidationException +// The input fails to satisfy the specified constraints. +// +// * ResourceNotFoundException +// The resource specified in the request was not found. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/ListTagsForResource +func (c *CodeGuruReviewer) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) { + req, out := c.ListTagsForResourceRequest(input) + return out, req.Send() +} + +// ListTagsForResourceWithContext is the same as ListTagsForResource with the addition of +// the ability to pass a context and additional request options. +// +// See ListTagsForResource for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *CodeGuruReviewer) ListTagsForResourceWithContext(ctx aws.Context, input *ListTagsForResourceInput, opts ...request.Option) (*ListTagsForResourceOutput, error) { + req, out := c.ListTagsForResourceRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opPutRecommendationFeedback = "PutRecommendationFeedback" // PutRecommendationFeedbackRequest generates a "aws/request.Request" representing the @@ -1279,6 +1368,178 @@ func (c *CodeGuruReviewer) PutRecommendationFeedbackWithContext(ctx aws.Context, return out, req.Send() } +const opTagResource = "TagResource" + +// TagResourceRequest generates a "aws/request.Request" representing the +// client's request for the TagResource operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See TagResource for more information on using the TagResource +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the TagResourceRequest method. +// req, resp := client.TagResourceRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/TagResource +func (c *CodeGuruReviewer) TagResourceRequest(input *TagResourceInput) (req *request.Request, output *TagResourceOutput) { + op := &request.Operation{ + Name: opTagResource, + HTTPMethod: "POST", + HTTPPath: "/tags/{resourceArn}", + } + + if input == nil { + input = &TagResourceInput{} + } + + output = &TagResourceOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// TagResource API operation for Amazon CodeGuru Reviewer. +// +// Adds one or more tags to an associated repository. +// +// 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 CodeGuru Reviewer's +// API operation TagResource for usage and error information. +// +// Returned Error Types: +// * InternalServerException +// The server encountered an internal error and is unable to complete the request. +// +// * ValidationException +// The input fails to satisfy the specified constraints. +// +// * ResourceNotFoundException +// The resource specified in the request was not found. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/TagResource +func (c *CodeGuruReviewer) TagResource(input *TagResourceInput) (*TagResourceOutput, error) { + req, out := c.TagResourceRequest(input) + return out, req.Send() +} + +// TagResourceWithContext is the same as TagResource with the addition of +// the ability to pass a context and additional request options. +// +// See TagResource for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *CodeGuruReviewer) TagResourceWithContext(ctx aws.Context, input *TagResourceInput, opts ...request.Option) (*TagResourceOutput, error) { + req, out := c.TagResourceRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUntagResource = "UntagResource" + +// UntagResourceRequest generates a "aws/request.Request" representing the +// client's request for the UntagResource operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UntagResource for more information on using the UntagResource +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the UntagResourceRequest method. +// req, resp := client.UntagResourceRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/UntagResource +func (c *CodeGuruReviewer) UntagResourceRequest(input *UntagResourceInput) (req *request.Request, output *UntagResourceOutput) { + op := &request.Operation{ + Name: opUntagResource, + HTTPMethod: "DELETE", + HTTPPath: "/tags/{resourceArn}", + } + + if input == nil { + input = &UntagResourceInput{} + } + + output = &UntagResourceOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// UntagResource API operation for Amazon CodeGuru Reviewer. +// +// Removes a tag from an associated repository. +// +// 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 CodeGuru Reviewer's +// API operation UntagResource for usage and error information. +// +// Returned Error Types: +// * InternalServerException +// The server encountered an internal error and is unable to complete the request. +// +// * ValidationException +// The input fails to satisfy the specified constraints. +// +// * ResourceNotFoundException +// The resource specified in the request was not found. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/UntagResource +func (c *CodeGuruReviewer) UntagResource(input *UntagResourceInput) (*UntagResourceOutput, error) { + req, out := c.UntagResourceRequest(input) + return out, req.Send() +} + +// UntagResourceWithContext is the same as UntagResource with the addition of +// the ability to pass a context and additional request options. +// +// See UntagResource for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *CodeGuruReviewer) UntagResourceWithContext(ctx aws.Context, input *UntagResourceInput, opts ...request.Option) (*UntagResourceOutput, error) { + req, out := c.UntagResourceRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + // You do not have sufficient access to perform this action. type AccessDeniedException struct { _ struct{} `type:"structure"` @@ -1346,6 +1607,17 @@ type AssociateRepositoryInput struct { // // Repository is a required field Repository *Repository `type:"structure" required:"true"` + + // An array of key-value pairs used to tag an associated repository. A tag is + // a custom attribute label with two parts: + // + // * A tag key (for example, CostCenter, Environment, Project, or Secret). + // Tag keys are case sensitive. + // + // * An optional field known as a tag value (for example, 111122223333, Production, + // or a team name). Omitting the tag value is the same as using an empty + // string. Like tag keys, tag values are case sensitive. + Tags map[string]*string `min:"1" type:"map"` } // String returns the string representation @@ -1367,6 +1639,9 @@ func (s *AssociateRepositoryInput) Validate() error { if s.Repository == nil { invalidParams.Add(request.NewErrParamRequired("Repository")) } + if s.Tags != nil && len(s.Tags) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Tags", 1)) + } if s.Repository != nil { if err := s.Repository.Validate(); err != nil { invalidParams.AddNested("Repository", err.(request.ErrInvalidParams)) @@ -1391,11 +1666,28 @@ func (s *AssociateRepositoryInput) SetRepository(v *Repository) *AssociateReposi return s } +// SetTags sets the Tags field's value. +func (s *AssociateRepositoryInput) SetTags(v map[string]*string) *AssociateRepositoryInput { + s.Tags = v + return s +} + type AssociateRepositoryOutput struct { _ struct{} `type:"structure"` // Information about the repository association. RepositoryAssociation *RepositoryAssociation `type:"structure"` + + // An array of key-value pairs used to tag an associated repository. A tag is + // a custom attribute label with two parts: + // + // * A tag key (for example, CostCenter, Environment, Project, or Secret). + // Tag keys are case sensitive. + // + // * An optional field known as a tag value (for example, 111122223333, Production, + // or a team name). Omitting the tag value is the same as using an empty + // string. Like tag keys, tag values are case sensitive. + Tags map[string]*string `min:"1" type:"map"` } // String returns the string representation @@ -1414,6 +1706,12 @@ func (s *AssociateRepositoryOutput) SetRepositoryAssociation(v *RepositoryAssoci return s } +// SetTags sets the Tags field's value. +func (s *AssociateRepositoryOutput) SetTags(v map[string]*string) *AssociateRepositoryOutput { + s.Tags = v + return s +} + // Information about an AWS CodeCommit repository. The CodeCommit repository // must be in the same AWS Region and AWS account where its CodeGuru Reviewer // code reviews are configured. @@ -1460,10 +1758,16 @@ func (s *CodeCommitRepository) SetName(v string) *CodeCommitRepository { return s } -// Information about a code review. +// Information about a code review. A code review belongs to the associated +// repository that contains the reviewed code. type CodeReview struct { _ struct{} `type:"structure"` + // The Amazon Resource Name (ARN) of the RepositoryAssociation (https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RepositoryAssociation.html) + // that contains the reviewed source code. You can retrieve associated repository + // ARNs by calling ListRepositoryAssociations (https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_ListRepositoryAssociations.html). + AssociationArn *string `min:"1" type:"string"` + // The Amazon Resource Name (ARN) of the CodeReview (https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_CodeReview.html) // object. CodeReviewArn *string `min:"1" type:"string"` @@ -1528,6 +1832,12 @@ func (s CodeReview) GoString() string { return s.String() } +// SetAssociationArn sets the AssociationArn field's value. +func (s *CodeReview) SetAssociationArn(v string) *CodeReview { + s.AssociationArn = &v + return s +} + // SetCodeReviewArn sets the CodeReviewArn field's value. func (s *CodeReview) SetCodeReviewArn(v string) *CodeReview { s.CodeReviewArn = &v @@ -1750,7 +2060,7 @@ type CodeReviewType struct { // A code review that analyzes all code under a specified branch in an associated // respository. The assocated repository is specified using its ARN in CreateCodeReview - // (https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_CreateCodeReview) + // (https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_CreateCodeReview). // // RepositoryAnalysis is a required field RepositoryAnalysis *RepositoryAnalysis `type:"structure" required:"true"` @@ -1889,14 +2199,14 @@ type CreateCodeReviewInput struct { // of duplicate code reviews if there are failures and retries. ClientRequestToken *string `min:"1" type:"string" idempotencyToken:"true"` - // The name of the code review. Each code review of the same code review type - // must have a unique name in your AWS account. + // The name of the code review. The name of each code review in your AWS account + // must be unique. // // Name is a required field Name *string `min:"1" type:"string" required:"true"` // The Amazon Resource Name (ARN) of the RepositoryAssociation (https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RepositoryAssociation.html) - // object. You can retrieve this ARN by calling ListRepositories. + // object. You can retrieve this ARN by calling ListRepositoryAssociations (https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_ListRepositoryAssociations.html). // // A code review can only be created on an associated repository. This is the // ARN of the associated repository. @@ -1906,7 +2216,7 @@ type CreateCodeReviewInput struct { // The type of code review to create. This is specified using a CodeReviewType // (https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_CodeReviewType.html) - // object. + // object. You can create a code review only of type RepositoryAnalysis. // // Type is a required field Type *CodeReviewType `type:"structure" required:"true"` @@ -1982,7 +2292,8 @@ func (s *CreateCodeReviewInput) SetType(v *CodeReviewType) *CreateCodeReviewInpu type CreateCodeReviewOutput struct { _ struct{} `type:"structure"` - // Information about a code review. + // Information about a code review. A code review belongs to the associated + // repository that contains the reviewed code. CodeReview *CodeReview `type:"structure"` } @@ -2172,7 +2483,7 @@ type DescribeRepositoryAssociationInput struct { _ struct{} `type:"structure"` // The Amazon Resource Name (ARN) of the RepositoryAssociation (https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RepositoryAssociation.html) - // object. You can retrieve this ARN by calling ListRepositories. + // object. You can retrieve this ARN by calling ListRepositoryAssociations (https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_ListRepositoryAssociations.html). // // AssociationArn is a required field AssociationArn *string `location:"uri" locationName:"AssociationArn" min:"1" type:"string" required:"true"` @@ -2215,6 +2526,17 @@ type DescribeRepositoryAssociationOutput struct { // Information about the repository association. RepositoryAssociation *RepositoryAssociation `type:"structure"` + + // An array of key-value pairs used to tag an associated repository. A tag is + // a custom attribute label with two parts: + // + // * A tag key (for example, CostCenter, Environment, Project, or Secret). + // Tag keys are case sensitive. + // + // * An optional field known as a tag value (for example, 111122223333, Production, + // or a team name). Omitting the tag value is the same as using an empty + // string. Like tag keys, tag values are case sensitive. + Tags map[string]*string `min:"1" type:"map"` } // String returns the string representation @@ -2233,11 +2555,17 @@ func (s *DescribeRepositoryAssociationOutput) SetRepositoryAssociation(v *Reposi return s } +// SetTags sets the Tags field's value. +func (s *DescribeRepositoryAssociationOutput) SetTags(v map[string]*string) *DescribeRepositoryAssociationOutput { + s.Tags = v + return s +} + type DisassociateRepositoryInput struct { _ struct{} `type:"structure"` // The Amazon Resource Name (ARN) of the RepositoryAssociation (https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RepositoryAssociation.html) - // object. You can retrieve this ARN by calling ListRepositories. + // object. You can retrieve this ARN by calling ListRepositoryAssociations (https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_ListRepositoryAssociations.html). // // AssociationArn is a required field AssociationArn *string `location:"uri" locationName:"AssociationArn" min:"1" type:"string" required:"true"` @@ -2280,6 +2608,17 @@ type DisassociateRepositoryOutput struct { // Information about the disassociated repository. RepositoryAssociation *RepositoryAssociation `type:"structure"` + + // An array of key-value pairs used to tag an associated repository. A tag is + // a custom attribute label with two parts: + // + // * A tag key (for example, CostCenter, Environment, Project, or Secret). + // Tag keys are case sensitive. + // + // * An optional field known as a tag value (for example, 111122223333, Production, + // or a team name). Omitting the tag value is the same as using an empty + // string. Like tag keys, tag values are case sensitive. + Tags map[string]*string `min:"1" type:"map"` } // String returns the string representation @@ -2298,6 +2637,12 @@ func (s *DisassociateRepositoryOutput) SetRepositoryAssociation(v *RepositoryAss return s } +// SetTags sets the Tags field's value. +func (s *DisassociateRepositoryOutput) SetTags(v map[string]*string) *DisassociateRepositoryOutput { + s.Tags = v + return s +} + // The server encountered an internal error and is unable to complete the request. type InternalServerException struct { _ struct{} `type:"structure"` @@ -2787,6 +3132,14 @@ type ListRepositoryAssociationsInput struct { // // * Disassociating: CodeGuru Reviewer is removing the repository's pull // request notifications and source code access. + // + // * Disassociated: CodeGuru Reviewer successfully disassociated the repository. + // You can create a new association with this repository if you want to review + // source code in it later. You can control access to code reviews created + // in an associated repository with tags after it has been disassociated. + // For more information, see Using tags to control access to associated repositories + // (https://docs.aws.amazon.com/codeguru/latest/reviewer-ug/auth-and-access-control-using-tags.html) + // in the Amazon CodeGuru Reviewer User Guide. States []*string `location:"querystring" locationName:"State" min:"1" type:"list"` } @@ -2899,6 +3252,79 @@ func (s *ListRepositoryAssociationsOutput) SetRepositoryAssociationSummaries(v [ return s } +type ListTagsForResourceInput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the RepositoryAssociation (https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RepositoryAssociation.html) + // object. You can retrieve this ARN by calling ListRepositoryAssociations (https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_ListRepositoryAssociations.html). + // + // ResourceArn is a required field + ResourceArn *string `location:"uri" locationName:"resourceArn" min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s ListTagsForResourceInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListTagsForResourceInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListTagsForResourceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListTagsForResourceInput"} + if s.ResourceArn == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceArn")) + } + if s.ResourceArn != nil && len(*s.ResourceArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetResourceArn sets the ResourceArn field's value. +func (s *ListTagsForResourceInput) SetResourceArn(v string) *ListTagsForResourceInput { + s.ResourceArn = &v + return s +} + +type ListTagsForResourceOutput struct { + _ struct{} `type:"structure"` + + // An array of key-value pairs used to tag an associated repository. A tag is + // a custom attribute label with two parts: + // + // * A tag key (for example, CostCenter, Environment, Project, or Secret). + // Tag keys are case sensitive. + // + // * An optional field known as a tag value (for example, 111122223333, Production, + // or a team name). Omitting the tag value is the same as using an empty + // string. Like tag keys, tag values are case sensitive. + Tags map[string]*string `min:"1" type:"map"` +} + +// String returns the string representation +func (s ListTagsForResourceOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListTagsForResourceOutput) GoString() string { + return s.String() +} + +// SetTags sets the Tags field's value. +func (s *ListTagsForResourceOutput) SetTags(v map[string]*string) *ListTagsForResourceOutput { + s.Tags = v + return s +} + // Information about the statistics from the code review. type Metrics struct { _ struct{} `type:"structure"` @@ -3494,6 +3920,14 @@ type RepositoryAssociation struct { // // * Disassociating: CodeGuru Reviewer is removing the repository's pull // request notifications and source code access. + // + // * Disassociated: CodeGuru Reviewer successfully disassociated the repository. + // You can create a new association with this repository if you want to review + // source code in it later. You can control access to code reviews created + // in an associated repository with tags after it has been disassociated. + // For more information, see Using tags to control access to associated repositories + // (https://docs.aws.amazon.com/codeguru/latest/reviewer-ug/auth-and-access-control-using-tags.html) + // in the Amazon CodeGuru Reviewer User Guide. State *string `type:"string" enum:"RepositoryAssociationState"` // A description of why the repository association is in the current state. @@ -3577,7 +4011,7 @@ type RepositoryAssociationSummary struct { _ struct{} `type:"structure"` // The Amazon Resource Name (ARN) of the RepositoryAssociation (https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RepositoryAssociation.html) - // object. You can retrieve this ARN by calling ListRepositories. + // object. You can retrieve this ARN by calling ListRepositoryAssociations (https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_ListRepositoryAssociations.html). AssociationArn *string `min:"1" type:"string"` // The repository association ID. @@ -3624,6 +4058,14 @@ type RepositoryAssociationSummary struct { // // * Disassociating: CodeGuru Reviewer is removing the repository's pull // request notifications and source code access. + // + // * Disassociated: CodeGuru Reviewer successfully disassociated the repository. + // You can create a new association with this repository if you want to review + // source code in it later. You can control access to code reviews created + // in an associated repository with tags after it has been disassociated. + // For more information, see Using tags to control access to associated repositories + // (https://docs.aws.amazon.com/codeguru/latest/reviewer-ug/auth-and-access-control-using-tags.html) + // in the Amazon CodeGuru Reviewer User Guide. State *string `type:"string" enum:"RepositoryAssociationState"` } @@ -3822,6 +4264,87 @@ func (s *SourceCodeType) SetRepositoryHead(v *RepositoryHeadSourceCodeType) *Sou return s } +type TagResourceInput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the RepositoryAssociation (https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RepositoryAssociation.html) + // object. You can retrieve this ARN by calling ListRepositoryAssociations (https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_ListRepositoryAssociations.html). + // + // ResourceArn is a required field + ResourceArn *string `location:"uri" locationName:"resourceArn" min:"1" type:"string" required:"true"` + + // An array of key-value pairs used to tag an associated repository. A tag is + // a custom attribute label with two parts: + // + // * A tag key (for example, CostCenter, Environment, Project, or Secret). + // Tag keys are case sensitive. + // + // * An optional field known as a tag value (for example, 111122223333, Production, + // or a team name). Omitting the tag value is the same as using an empty + // string. Like tag keys, tag values are case sensitive. + // + // Tags is a required field + Tags map[string]*string `min:"1" type:"map" required:"true"` +} + +// String returns the string representation +func (s TagResourceInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TagResourceInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *TagResourceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "TagResourceInput"} + if s.ResourceArn == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceArn")) + } + if s.ResourceArn != nil && len(*s.ResourceArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1)) + } + if s.Tags == nil { + invalidParams.Add(request.NewErrParamRequired("Tags")) + } + if s.Tags != nil && len(s.Tags) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Tags", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetResourceArn sets the ResourceArn field's value. +func (s *TagResourceInput) SetResourceArn(v string) *TagResourceInput { + s.ResourceArn = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *TagResourceInput) SetTags(v map[string]*string) *TagResourceInput { + s.Tags = v + return s +} + +type TagResourceOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s TagResourceOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TagResourceOutput) GoString() string { + return s.String() +} + // Information about a third-party source repository connected to CodeGuru Reviewer. type ThirdPartySourceRepository struct { _ struct{} `type:"structure"` @@ -3955,6 +4478,79 @@ func (s *ThrottlingException) RequestID() string { return s.RespMetadata.RequestID } +type UntagResourceInput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the RepositoryAssociation (https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_RepositoryAssociation.html) + // object. You can retrieve this ARN by calling ListRepositoryAssociations (https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_ListRepositoryAssociations.html). + // + // ResourceArn is a required field + ResourceArn *string `location:"uri" locationName:"resourceArn" min:"1" type:"string" required:"true"` + + // A list of the keys for each tag you want to remove from an associated repository. + // + // TagKeys is a required field + TagKeys []*string `location:"querystring" locationName:"tagKeys" min:"1" type:"list" required:"true"` +} + +// String returns the string representation +func (s UntagResourceInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UntagResourceInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UntagResourceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UntagResourceInput"} + if s.ResourceArn == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceArn")) + } + if s.ResourceArn != nil && len(*s.ResourceArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1)) + } + if s.TagKeys == nil { + invalidParams.Add(request.NewErrParamRequired("TagKeys")) + } + if s.TagKeys != nil && len(s.TagKeys) < 1 { + invalidParams.Add(request.NewErrParamMinLen("TagKeys", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetResourceArn sets the ResourceArn field's value. +func (s *UntagResourceInput) SetResourceArn(v string) *UntagResourceInput { + s.ResourceArn = &v + return s +} + +// SetTagKeys sets the TagKeys field's value. +func (s *UntagResourceInput) SetTagKeys(v []*string) *UntagResourceInput { + s.TagKeys = v + return s +} + +type UntagResourceOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s UntagResourceOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UntagResourceOutput) GoString() string { + return s.String() +} + // The input fails to satisfy the specified constraints. type ValidationException struct { _ struct{} `type:"structure"` @@ -4087,6 +4683,9 @@ const ( // RepositoryAssociationStateDisassociating is a RepositoryAssociationState enum value RepositoryAssociationStateDisassociating = "Disassociating" + + // RepositoryAssociationStateDisassociated is a RepositoryAssociationState enum value + RepositoryAssociationStateDisassociated = "Disassociated" ) // RepositoryAssociationState_Values returns all elements of the RepositoryAssociationState enum @@ -4096,6 +4695,7 @@ func RepositoryAssociationState_Values() []string { RepositoryAssociationStateAssociating, RepositoryAssociationStateFailed, RepositoryAssociationStateDisassociating, + RepositoryAssociationStateDisassociated, } } diff --git a/service/codegurureviewer/codegururevieweriface/interface.go b/service/codegurureviewer/codegururevieweriface/interface.go index 735cd2b7024..e4292a279b9 100644 --- a/service/codegurureviewer/codegururevieweriface/interface.go +++ b/service/codegurureviewer/codegururevieweriface/interface.go @@ -112,9 +112,21 @@ type CodeGuruReviewerAPI interface { ListRepositoryAssociationsPages(*codegurureviewer.ListRepositoryAssociationsInput, func(*codegurureviewer.ListRepositoryAssociationsOutput, bool) bool) error ListRepositoryAssociationsPagesWithContext(aws.Context, *codegurureviewer.ListRepositoryAssociationsInput, func(*codegurureviewer.ListRepositoryAssociationsOutput, bool) bool, ...request.Option) error + ListTagsForResource(*codegurureviewer.ListTagsForResourceInput) (*codegurureviewer.ListTagsForResourceOutput, error) + ListTagsForResourceWithContext(aws.Context, *codegurureviewer.ListTagsForResourceInput, ...request.Option) (*codegurureviewer.ListTagsForResourceOutput, error) + ListTagsForResourceRequest(*codegurureviewer.ListTagsForResourceInput) (*request.Request, *codegurureviewer.ListTagsForResourceOutput) + PutRecommendationFeedback(*codegurureviewer.PutRecommendationFeedbackInput) (*codegurureviewer.PutRecommendationFeedbackOutput, error) PutRecommendationFeedbackWithContext(aws.Context, *codegurureviewer.PutRecommendationFeedbackInput, ...request.Option) (*codegurureviewer.PutRecommendationFeedbackOutput, error) PutRecommendationFeedbackRequest(*codegurureviewer.PutRecommendationFeedbackInput) (*request.Request, *codegurureviewer.PutRecommendationFeedbackOutput) + + TagResource(*codegurureviewer.TagResourceInput) (*codegurureviewer.TagResourceOutput, error) + TagResourceWithContext(aws.Context, *codegurureviewer.TagResourceInput, ...request.Option) (*codegurureviewer.TagResourceOutput, error) + TagResourceRequest(*codegurureviewer.TagResourceInput) (*request.Request, *codegurureviewer.TagResourceOutput) + + UntagResource(*codegurureviewer.UntagResourceInput) (*codegurureviewer.UntagResourceOutput, error) + UntagResourceWithContext(aws.Context, *codegurureviewer.UntagResourceInput, ...request.Option) (*codegurureviewer.UntagResourceOutput, error) + UntagResourceRequest(*codegurureviewer.UntagResourceInput) (*request.Request, *codegurureviewer.UntagResourceOutput) } var _ CodeGuruReviewerAPI = (*codegurureviewer.CodeGuruReviewer)(nil) diff --git a/service/codegurureviewer/doc.go b/service/codegurureviewer/doc.go index 730e073c564..0fd58a0acdf 100644 --- a/service/codegurureviewer/doc.go +++ b/service/codegurureviewer/doc.go @@ -14,6 +14,12 @@ // For more information about CodeGuru Reviewer, see the Amazon CodeGuru Reviewer // User Guide (https://docs.aws.amazon.com/codeguru/latest/reviewer-ug/welcome.html). // +// To improve the security of your CodeGuru Reviewer API calls, you can establish +// a private connection between your VPC and CodeGuru Reviewer by creating an +// interface VPC endpoint. For more information, see CodeGuru Reviewer and interface +// VPC endpoints (AWS PrivateLink) (https://docs.aws.amazon.com/codeguru/latest/reviewer-ug/vpc-interface-endpoints.html) +// in the Amazon CodeGuru Reviewer User Guide. +// // See https://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19 for more information on this service. // // See codegurureviewer package documentation for more information. diff --git a/service/cognitoidentity/api.go b/service/cognitoidentity/api.go index 07c69827869..42ac4b0b4f4 100644 --- a/service/cognitoidentity/api.go +++ b/service/cognitoidentity/api.go @@ -1159,6 +1159,12 @@ func (c *CognitoIdentity) ListIdentityPoolsRequest(input *ListIdentityPoolsInput Name: opListIdentityPools, HTTPMethod: "POST", HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, } if input == nil { @@ -1222,6 +1228,58 @@ func (c *CognitoIdentity) ListIdentityPoolsWithContext(ctx aws.Context, input *L return out, req.Send() } +// ListIdentityPoolsPages iterates over the pages of a ListIdentityPools operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListIdentityPools 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 ListIdentityPools operation. +// pageNum := 0 +// err := client.ListIdentityPoolsPages(params, +// func(page *cognitoidentity.ListIdentityPoolsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *CognitoIdentity) ListIdentityPoolsPages(input *ListIdentityPoolsInput, fn func(*ListIdentityPoolsOutput, bool) bool) error { + return c.ListIdentityPoolsPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListIdentityPoolsPagesWithContext same as ListIdentityPoolsPages 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 *CognitoIdentity) ListIdentityPoolsPagesWithContext(ctx aws.Context, input *ListIdentityPoolsInput, fn func(*ListIdentityPoolsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListIdentityPoolsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListIdentityPoolsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListIdentityPoolsOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + const opListTagsForResource = "ListTagsForResource" // ListTagsForResourceRequest generates a "aws/request.Request" representing the diff --git a/service/cognitoidentity/cognitoidentityiface/interface.go b/service/cognitoidentity/cognitoidentityiface/interface.go index b749babd665..1c46b258f53 100644 --- a/service/cognitoidentity/cognitoidentityiface/interface.go +++ b/service/cognitoidentity/cognitoidentityiface/interface.go @@ -108,6 +108,9 @@ type CognitoIdentityAPI interface { ListIdentityPoolsWithContext(aws.Context, *cognitoidentity.ListIdentityPoolsInput, ...request.Option) (*cognitoidentity.ListIdentityPoolsOutput, error) ListIdentityPoolsRequest(*cognitoidentity.ListIdentityPoolsInput) (*request.Request, *cognitoidentity.ListIdentityPoolsOutput) + ListIdentityPoolsPages(*cognitoidentity.ListIdentityPoolsInput, func(*cognitoidentity.ListIdentityPoolsOutput, bool) bool) error + ListIdentityPoolsPagesWithContext(aws.Context, *cognitoidentity.ListIdentityPoolsInput, func(*cognitoidentity.ListIdentityPoolsOutput, bool) bool, ...request.Option) error + ListTagsForResource(*cognitoidentity.ListTagsForResourceInput) (*cognitoidentity.ListTagsForResourceOutput, error) ListTagsForResourceWithContext(aws.Context, *cognitoidentity.ListTagsForResourceInput, ...request.Option) (*cognitoidentity.ListTagsForResourceOutput, error) ListTagsForResourceRequest(*cognitoidentity.ListTagsForResourceInput) (*request.Request, *cognitoidentity.ListTagsForResourceOutput) diff --git a/service/cognitoidentity/integ_test.go b/service/cognitoidentity/integ_test.go new file mode 100644 index 00000000000..e48b9a88133 --- /dev/null +++ b/service/cognitoidentity/integ_test.go @@ -0,0 +1,67 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +// +build go1.10,integration + +package cognitoidentity_test + +import ( + "context" + "testing" + "time" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/awserr" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/awstesting/integration" + "github.com/aws/aws-sdk-go/service/cognitoidentity" +) + +var _ aws.Config +var _ awserr.Error +var _ request.Request + +func TestInteg_00_ListIdentityPools(t *testing.T) { + ctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second) + defer cancelFn() + + sess := integration.SessionWithDefaultRegion("us-west-2") + svc := cognitoidentity.New(sess) + params := &cognitoidentity.ListIdentityPoolsInput{ + MaxResults: aws.Int64(10), + } + _, err := svc.ListIdentityPoolsWithContext(ctx, params, func(r *request.Request) { + r.Handlers.Validate.RemoveByName("core.ValidateParametersHandler") + }) + if err != nil { + t.Errorf("expect no error, got %v", err) + } +} +func TestInteg_01_DescribeIdentityPool(t *testing.T) { + ctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second) + defer cancelFn() + + sess := integration.SessionWithDefaultRegion("us-west-2") + svc := cognitoidentity.New(sess) + params := &cognitoidentity.DescribeIdentityPoolInput{ + IdentityPoolId: aws.String("us-east-1:aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee"), + } + _, err := svc.DescribeIdentityPoolWithContext(ctx, params, func(r *request.Request) { + r.Handlers.Validate.RemoveByName("core.ValidateParametersHandler") + }) + if err == nil { + t.Fatalf("expect request to fail") + } + aerr, ok := err.(awserr.RequestFailure) + if !ok { + t.Fatalf("expect awserr, was %T", err) + } + if len(aerr.Code()) == 0 { + t.Errorf("expect non-empty error code") + } + if len(aerr.Message()) == 0 { + t.Errorf("expect non-empty error message") + } + if v := aerr.Code(); v == request.ErrCodeSerialization { + t.Errorf("expect API error code got serialization failure") + } +} diff --git a/service/connect/api.go b/service/connect/api.go index 90ee1d63d44..7db554b0f62 100644 --- a/service/connect/api.go +++ b/service/connect/api.go @@ -13,451 +13,456 @@ import ( "github.com/aws/aws-sdk-go/private/protocol/restjson" ) -const opAssociateRoutingProfileQueues = "AssociateRoutingProfileQueues" +const opAssociateApprovedOrigin = "AssociateApprovedOrigin" -// AssociateRoutingProfileQueuesRequest generates a "aws/request.Request" representing the -// client's request for the AssociateRoutingProfileQueues operation. The "output" return +// AssociateApprovedOriginRequest generates a "aws/request.Request" representing the +// client's request for the AssociateApprovedOrigin 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 AssociateRoutingProfileQueues for more information on using the AssociateRoutingProfileQueues +// See AssociateApprovedOrigin for more information on using the AssociateApprovedOrigin // 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 AssociateRoutingProfileQueuesRequest method. -// req, resp := client.AssociateRoutingProfileQueuesRequest(params) +// // Example sending a request using the AssociateApprovedOriginRequest method. +// req, resp := client.AssociateApprovedOriginRequest(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/AssociateRoutingProfileQueues -func (c *Connect) AssociateRoutingProfileQueuesRequest(input *AssociateRoutingProfileQueuesInput) (req *request.Request, output *AssociateRoutingProfileQueuesOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/AssociateApprovedOrigin +func (c *Connect) AssociateApprovedOriginRequest(input *AssociateApprovedOriginInput) (req *request.Request, output *AssociateApprovedOriginOutput) { op := &request.Operation{ - Name: opAssociateRoutingProfileQueues, - HTTPMethod: "POST", - HTTPPath: "/routing-profiles/{InstanceId}/{RoutingProfileId}/associate-queues", + Name: opAssociateApprovedOrigin, + HTTPMethod: "PUT", + HTTPPath: "/instance/{InstanceId}/approved-origin", } if input == nil { - input = &AssociateRoutingProfileQueuesInput{} + input = &AssociateApprovedOriginInput{} } - output = &AssociateRoutingProfileQueuesOutput{} + output = &AssociateApprovedOriginOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// AssociateRoutingProfileQueues API operation for Amazon Connect Service. +// AssociateApprovedOrigin API operation for Amazon Connect Service. // -// Associates a set of queues with a routing profile. +// Associates an approved origin to an Amazon Connect instance. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Connect Service's -// API operation AssociateRoutingProfileQueues for usage and error information. +// API operation AssociateApprovedOrigin for usage and error information. // // Returned Error Types: +// * ResourceNotFoundException +// The specified resource was not found. +// +// * ResourceConflictException +// A resource already has that name. +// +// * InternalServiceException +// Request processing failed due to an error or failure with the service. +// // * InvalidRequestException // The request is not valid. // // * InvalidParameterException // One or more of the specified parameters are not valid. // -// * ResourceNotFoundException -// The specified resource was not found. +// * ServiceQuotaExceededException +// The service quota has been exceeded. // // * ThrottlingException // The throttling limit has been exceeded. // -// * 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/AssociateRoutingProfileQueues -func (c *Connect) AssociateRoutingProfileQueues(input *AssociateRoutingProfileQueuesInput) (*AssociateRoutingProfileQueuesOutput, error) { - req, out := c.AssociateRoutingProfileQueuesRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/AssociateApprovedOrigin +func (c *Connect) AssociateApprovedOrigin(input *AssociateApprovedOriginInput) (*AssociateApprovedOriginOutput, error) { + req, out := c.AssociateApprovedOriginRequest(input) return out, req.Send() } -// AssociateRoutingProfileQueuesWithContext is the same as AssociateRoutingProfileQueues with the addition of +// AssociateApprovedOriginWithContext is the same as AssociateApprovedOrigin with the addition of // the ability to pass a context and additional request options. // -// See AssociateRoutingProfileQueues for details on how to use this API operation. +// See AssociateApprovedOrigin 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) AssociateRoutingProfileQueuesWithContext(ctx aws.Context, input *AssociateRoutingProfileQueuesInput, opts ...request.Option) (*AssociateRoutingProfileQueuesOutput, error) { - req, out := c.AssociateRoutingProfileQueuesRequest(input) +func (c *Connect) AssociateApprovedOriginWithContext(ctx aws.Context, input *AssociateApprovedOriginInput, opts ...request.Option) (*AssociateApprovedOriginOutput, error) { + req, out := c.AssociateApprovedOriginRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opCreateContactFlow = "CreateContactFlow" +const opAssociateInstanceStorageConfig = "AssociateInstanceStorageConfig" -// CreateContactFlowRequest generates a "aws/request.Request" representing the -// client's request for the CreateContactFlow operation. The "output" return +// AssociateInstanceStorageConfigRequest generates a "aws/request.Request" representing the +// client's request for the AssociateInstanceStorageConfig 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 CreateContactFlow for more information on using the CreateContactFlow +// See AssociateInstanceStorageConfig for more information on using the AssociateInstanceStorageConfig // 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 CreateContactFlowRequest method. -// req, resp := client.CreateContactFlowRequest(params) +// // Example sending a request using the AssociateInstanceStorageConfigRequest method. +// req, resp := client.AssociateInstanceStorageConfigRequest(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/CreateContactFlow -func (c *Connect) CreateContactFlowRequest(input *CreateContactFlowInput) (req *request.Request, output *CreateContactFlowOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/AssociateInstanceStorageConfig +func (c *Connect) AssociateInstanceStorageConfigRequest(input *AssociateInstanceStorageConfigInput) (req *request.Request, output *AssociateInstanceStorageConfigOutput) { op := &request.Operation{ - Name: opCreateContactFlow, + Name: opAssociateInstanceStorageConfig, HTTPMethod: "PUT", - HTTPPath: "/contact-flows/{InstanceId}", + HTTPPath: "/instance/{InstanceId}/storage-config", } if input == nil { - input = &CreateContactFlowInput{} + input = &AssociateInstanceStorageConfigInput{} } - output = &CreateContactFlowOutput{} + output = &AssociateInstanceStorageConfigOutput{} req = c.newRequest(op, input, output) return } -// CreateContactFlow API operation for Amazon Connect Service. +// AssociateInstanceStorageConfig API operation for Amazon Connect Service. // -// Creates a contact flow for the specified Amazon Connect instance. +// Associates a storage resource type for the first time. You can only associate +// one type of storage configuration in a single call. This means, for example, +// that you can't define an instance with multiple S3 buckets for storing chat +// transcripts. // -// You can also create and update contact flows using the Amazon Connect Flow -// language (https://docs.aws.amazon.com/connect/latest/adminguide/flow-language.html). +// This API does not create a resource that doesn't exist. It only associates +// it to the instance. Ensure that the resource being specified in the storage +// configuration, like an Amazon S3 bucket, exists when being used for association. // // 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 CreateContactFlow for usage and error information. +// API operation AssociateInstanceStorageConfig for usage and error information. // // Returned Error Types: +// * ResourceNotFoundException +// The specified resource was not found. +// +// * ResourceConflictException +// A resource already has that name. +// +// * InternalServiceException +// Request processing failed due to an error or failure with the service. +// // * InvalidRequestException // The request is not valid. // -// * InvalidContactFlowException -// The contact flow is not valid. -// // * InvalidParameterException // One or more of the specified parameters are not valid. // -// * DuplicateResourceException -// A resource with the specified name already exists. -// -// * LimitExceededException -// The allowed limit for the resource has been exceeded. -// -// * ResourceNotFoundException -// The specified resource was not found. -// // * ThrottlingException // The throttling limit has been exceeded. // -// * 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/CreateContactFlow -func (c *Connect) CreateContactFlow(input *CreateContactFlowInput) (*CreateContactFlowOutput, error) { - req, out := c.CreateContactFlowRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/AssociateInstanceStorageConfig +func (c *Connect) AssociateInstanceStorageConfig(input *AssociateInstanceStorageConfigInput) (*AssociateInstanceStorageConfigOutput, error) { + req, out := c.AssociateInstanceStorageConfigRequest(input) return out, req.Send() } -// CreateContactFlowWithContext is the same as CreateContactFlow with the addition of +// AssociateInstanceStorageConfigWithContext is the same as AssociateInstanceStorageConfig with the addition of // the ability to pass a context and additional request options. // -// See CreateContactFlow for details on how to use this API operation. +// See AssociateInstanceStorageConfig 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) CreateContactFlowWithContext(ctx aws.Context, input *CreateContactFlowInput, opts ...request.Option) (*CreateContactFlowOutput, error) { - req, out := c.CreateContactFlowRequest(input) +func (c *Connect) AssociateInstanceStorageConfigWithContext(ctx aws.Context, input *AssociateInstanceStorageConfigInput, opts ...request.Option) (*AssociateInstanceStorageConfigOutput, error) { + req, out := c.AssociateInstanceStorageConfigRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opCreateRoutingProfile = "CreateRoutingProfile" +const opAssociateLambdaFunction = "AssociateLambdaFunction" -// CreateRoutingProfileRequest generates a "aws/request.Request" representing the -// client's request for the CreateRoutingProfile operation. The "output" return +// AssociateLambdaFunctionRequest generates a "aws/request.Request" representing the +// client's request for the AssociateLambdaFunction 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 CreateRoutingProfile for more information on using the CreateRoutingProfile +// See AssociateLambdaFunction for more information on using the AssociateLambdaFunction // 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 CreateRoutingProfileRequest method. -// req, resp := client.CreateRoutingProfileRequest(params) +// // Example sending a request using the AssociateLambdaFunctionRequest method. +// req, resp := client.AssociateLambdaFunctionRequest(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/CreateRoutingProfile -func (c *Connect) CreateRoutingProfileRequest(input *CreateRoutingProfileInput) (req *request.Request, output *CreateRoutingProfileOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/AssociateLambdaFunction +func (c *Connect) AssociateLambdaFunctionRequest(input *AssociateLambdaFunctionInput) (req *request.Request, output *AssociateLambdaFunctionOutput) { op := &request.Operation{ - Name: opCreateRoutingProfile, + Name: opAssociateLambdaFunction, HTTPMethod: "PUT", - HTTPPath: "/routing-profiles/{InstanceId}", + HTTPPath: "/instance/{InstanceId}/lambda-function", } if input == nil { - input = &CreateRoutingProfileInput{} + input = &AssociateLambdaFunctionInput{} } - output = &CreateRoutingProfileOutput{} + output = &AssociateLambdaFunctionOutput{} req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// CreateRoutingProfile API operation for Amazon Connect Service. +// AssociateLambdaFunction API operation for Amazon Connect Service. // -// Creates a new routing profile. +// Allows the specified Amazon Connect instance to access the specified Lambda +// function. // // 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 CreateRoutingProfile for usage and error information. +// API operation AssociateLambdaFunction for usage and error information. // // Returned Error Types: +// * ResourceNotFoundException +// The specified resource was not found. +// +// * ResourceConflictException +// A resource already has that name. +// +// * InternalServiceException +// Request processing failed due to an error or failure with the service. +// // * InvalidRequestException // The request is not valid. // // * InvalidParameterException // One or more of the specified parameters are not valid. // -// * DuplicateResourceException -// A resource with the specified name already exists. -// -// * ResourceNotFoundException -// The specified resource was not found. -// -// * LimitExceededException -// The allowed limit for the resource has been exceeded. +// * ServiceQuotaExceededException +// The service quota has been exceeded. // // * ThrottlingException // The throttling limit has been exceeded. // -// * 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/CreateRoutingProfile -func (c *Connect) CreateRoutingProfile(input *CreateRoutingProfileInput) (*CreateRoutingProfileOutput, error) { - req, out := c.CreateRoutingProfileRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/AssociateLambdaFunction +func (c *Connect) AssociateLambdaFunction(input *AssociateLambdaFunctionInput) (*AssociateLambdaFunctionOutput, error) { + req, out := c.AssociateLambdaFunctionRequest(input) return out, req.Send() } -// CreateRoutingProfileWithContext is the same as CreateRoutingProfile with the addition of +// AssociateLambdaFunctionWithContext is the same as AssociateLambdaFunction with the addition of // the ability to pass a context and additional request options. // -// See CreateRoutingProfile for details on how to use this API operation. +// See AssociateLambdaFunction 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) CreateRoutingProfileWithContext(ctx aws.Context, input *CreateRoutingProfileInput, opts ...request.Option) (*CreateRoutingProfileOutput, error) { - req, out := c.CreateRoutingProfileRequest(input) +func (c *Connect) AssociateLambdaFunctionWithContext(ctx aws.Context, input *AssociateLambdaFunctionInput, opts ...request.Option) (*AssociateLambdaFunctionOutput, error) { + req, out := c.AssociateLambdaFunctionRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opCreateUser = "CreateUser" +const opAssociateLexBot = "AssociateLexBot" -// CreateUserRequest generates a "aws/request.Request" representing the -// client's request for the CreateUser operation. The "output" return +// AssociateLexBotRequest generates a "aws/request.Request" representing the +// client's request for the AssociateLexBot 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 CreateUser for more information on using the CreateUser +// See AssociateLexBot for more information on using the AssociateLexBot // 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 CreateUserRequest method. -// req, resp := client.CreateUserRequest(params) +// // Example sending a request using the AssociateLexBotRequest method. +// req, resp := client.AssociateLexBotRequest(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/CreateUser -func (c *Connect) CreateUserRequest(input *CreateUserInput) (req *request.Request, output *CreateUserOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/AssociateLexBot +func (c *Connect) AssociateLexBotRequest(input *AssociateLexBotInput) (req *request.Request, output *AssociateLexBotOutput) { op := &request.Operation{ - Name: opCreateUser, + Name: opAssociateLexBot, HTTPMethod: "PUT", - HTTPPath: "/users/{InstanceId}", + HTTPPath: "/instance/{InstanceId}/lex-bot", } if input == nil { - input = &CreateUserInput{} + input = &AssociateLexBotInput{} } - output = &CreateUserOutput{} + output = &AssociateLexBotOutput{} req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// CreateUser API operation for Amazon Connect Service. -// -// Creates a user account for the specified Amazon Connect instance. +// AssociateLexBot API operation for Amazon Connect Service. // -// For information about how to create user accounts using the Amazon Connect -// console, see Add Users (https://docs.aws.amazon.com/connect/latest/adminguide/user-management.html) -// in the Amazon Connect Administrator Guide. +// Allows the specified Amazon Connect instance to access the specified Amazon +// Lex bot. // // 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 CreateUser for usage and error information. +// API operation AssociateLexBot for usage and error information. // // Returned Error Types: +// * ResourceNotFoundException +// The specified resource was not found. +// +// * ResourceConflictException +// A resource already has that name. +// +// * InternalServiceException +// Request processing failed due to an error or failure with the service. +// // * InvalidRequestException // The request is not valid. // // * InvalidParameterException // One or more of the specified parameters are not valid. // -// * LimitExceededException -// The allowed limit for the resource has been exceeded. -// -// * DuplicateResourceException -// A resource with the specified name already exists. -// -// * ResourceNotFoundException -// The specified resource was not found. +// * ServiceQuotaExceededException +// The service quota has been exceeded. // // * ThrottlingException // The throttling limit has been exceeded. // -// * 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/CreateUser -func (c *Connect) CreateUser(input *CreateUserInput) (*CreateUserOutput, error) { - req, out := c.CreateUserRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/AssociateLexBot +func (c *Connect) AssociateLexBot(input *AssociateLexBotInput) (*AssociateLexBotOutput, error) { + req, out := c.AssociateLexBotRequest(input) return out, req.Send() } -// CreateUserWithContext is the same as CreateUser with the addition of +// AssociateLexBotWithContext is the same as AssociateLexBot with the addition of // the ability to pass a context and additional request options. // -// See CreateUser for details on how to use this API operation. +// See AssociateLexBot 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) CreateUserWithContext(ctx aws.Context, input *CreateUserInput, opts ...request.Option) (*CreateUserOutput, error) { - req, out := c.CreateUserRequest(input) +func (c *Connect) AssociateLexBotWithContext(ctx aws.Context, input *AssociateLexBotInput, opts ...request.Option) (*AssociateLexBotOutput, error) { + req, out := c.AssociateLexBotRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opCreateUserHierarchyGroup = "CreateUserHierarchyGroup" +const opAssociateRoutingProfileQueues = "AssociateRoutingProfileQueues" -// CreateUserHierarchyGroupRequest generates a "aws/request.Request" representing the -// client's request for the CreateUserHierarchyGroup operation. The "output" return +// AssociateRoutingProfileQueuesRequest generates a "aws/request.Request" representing the +// client's request for the AssociateRoutingProfileQueues 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 CreateUserHierarchyGroup for more information on using the CreateUserHierarchyGroup +// See AssociateRoutingProfileQueues for more information on using the AssociateRoutingProfileQueues // 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 CreateUserHierarchyGroupRequest method. -// req, resp := client.CreateUserHierarchyGroupRequest(params) +// // Example sending a request using the AssociateRoutingProfileQueuesRequest method. +// req, resp := client.AssociateRoutingProfileQueuesRequest(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/CreateUserHierarchyGroup -func (c *Connect) CreateUserHierarchyGroupRequest(input *CreateUserHierarchyGroupInput) (req *request.Request, output *CreateUserHierarchyGroupOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/AssociateRoutingProfileQueues +func (c *Connect) AssociateRoutingProfileQueuesRequest(input *AssociateRoutingProfileQueuesInput) (req *request.Request, output *AssociateRoutingProfileQueuesOutput) { op := &request.Operation{ - Name: opCreateUserHierarchyGroup, - HTTPMethod: "PUT", - HTTPPath: "/user-hierarchy-groups/{InstanceId}", + Name: opAssociateRoutingProfileQueues, + HTTPMethod: "POST", + HTTPPath: "/routing-profiles/{InstanceId}/{RoutingProfileId}/associate-queues", } if input == nil { - input = &CreateUserHierarchyGroupInput{} + input = &AssociateRoutingProfileQueuesInput{} } - output = &CreateUserHierarchyGroupOutput{} + output = &AssociateRoutingProfileQueuesOutput{} req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// CreateUserHierarchyGroup API operation for Amazon Connect Service. +// AssociateRoutingProfileQueues API operation for Amazon Connect Service. // -// Creates a new user hierarchy group. +// Associates a set of queues with a routing profile. // // 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 CreateUserHierarchyGroup for usage and error information. +// API operation AssociateRoutingProfileQueues for usage and error information. // // Returned Error Types: // * InvalidRequestException @@ -466,12 +471,6 @@ func (c *Connect) CreateUserHierarchyGroupRequest(input *CreateUserHierarchyGrou // * InvalidParameterException // One or more of the specified parameters are not valid. // -// * DuplicateResourceException -// A resource with the specified name already exists. -// -// * LimitExceededException -// The allowed limit for the resource has been exceeded. -// // * ResourceNotFoundException // The specified resource was not found. // @@ -481,369 +480,373 @@ func (c *Connect) CreateUserHierarchyGroupRequest(input *CreateUserHierarchyGrou // * 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/CreateUserHierarchyGroup -func (c *Connect) CreateUserHierarchyGroup(input *CreateUserHierarchyGroupInput) (*CreateUserHierarchyGroupOutput, error) { - req, out := c.CreateUserHierarchyGroupRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/AssociateRoutingProfileQueues +func (c *Connect) AssociateRoutingProfileQueues(input *AssociateRoutingProfileQueuesInput) (*AssociateRoutingProfileQueuesOutput, error) { + req, out := c.AssociateRoutingProfileQueuesRequest(input) return out, req.Send() } -// CreateUserHierarchyGroupWithContext is the same as CreateUserHierarchyGroup with the addition of +// AssociateRoutingProfileQueuesWithContext is the same as AssociateRoutingProfileQueues with the addition of // the ability to pass a context and additional request options. // -// See CreateUserHierarchyGroup for details on how to use this API operation. +// See AssociateRoutingProfileQueues 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) CreateUserHierarchyGroupWithContext(ctx aws.Context, input *CreateUserHierarchyGroupInput, opts ...request.Option) (*CreateUserHierarchyGroupOutput, error) { - req, out := c.CreateUserHierarchyGroupRequest(input) +func (c *Connect) AssociateRoutingProfileQueuesWithContext(ctx aws.Context, input *AssociateRoutingProfileQueuesInput, opts ...request.Option) (*AssociateRoutingProfileQueuesOutput, error) { + req, out := c.AssociateRoutingProfileQueuesRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opDeleteUser = "DeleteUser" +const opAssociateSecurityKey = "AssociateSecurityKey" -// DeleteUserRequest generates a "aws/request.Request" representing the -// client's request for the DeleteUser operation. The "output" return +// AssociateSecurityKeyRequest generates a "aws/request.Request" representing the +// client's request for the AssociateSecurityKey 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 DeleteUser for more information on using the DeleteUser +// See AssociateSecurityKey for more information on using the AssociateSecurityKey // 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 DeleteUserRequest method. -// req, resp := client.DeleteUserRequest(params) +// // Example sending a request using the AssociateSecurityKeyRequest method. +// req, resp := client.AssociateSecurityKeyRequest(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/DeleteUser -func (c *Connect) DeleteUserRequest(input *DeleteUserInput) (req *request.Request, output *DeleteUserOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/AssociateSecurityKey +func (c *Connect) AssociateSecurityKeyRequest(input *AssociateSecurityKeyInput) (req *request.Request, output *AssociateSecurityKeyOutput) { op := &request.Operation{ - Name: opDeleteUser, - HTTPMethod: "DELETE", - HTTPPath: "/users/{InstanceId}/{UserId}", + Name: opAssociateSecurityKey, + HTTPMethod: "PUT", + HTTPPath: "/instance/{InstanceId}/security-key", } if input == nil { - input = &DeleteUserInput{} + input = &AssociateSecurityKeyInput{} } - output = &DeleteUserOutput{} + output = &AssociateSecurityKeyOutput{} req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// DeleteUser API operation for Amazon Connect Service. -// -// Deletes a user account from the specified Amazon Connect instance. +// AssociateSecurityKey API operation for Amazon Connect Service. // -// For information about what happens to a user's data when their account is -// deleted, see Delete Users from Your Amazon Connect Instance (https://docs.aws.amazon.com/connect/latest/adminguide/delete-users.html) -// in the Amazon Connect Administrator Guide. +// Associates a security key to the 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 DeleteUser for usage and error information. +// API operation AssociateSecurityKey for usage and error information. // // Returned Error Types: +// * ResourceNotFoundException +// The specified resource was not found. +// +// * ResourceConflictException +// A resource already has that name. +// +// * InternalServiceException +// Request processing failed due to an error or failure with the service. +// // * InvalidRequestException // The request is not valid. // // * InvalidParameterException // One or more of the specified parameters are not valid. // -// * ResourceNotFoundException -// The specified resource was not found. +// * ServiceQuotaExceededException +// The service quota has been exceeded. // // * ThrottlingException // The throttling limit has been exceeded. // -// * 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/DeleteUser -func (c *Connect) DeleteUser(input *DeleteUserInput) (*DeleteUserOutput, error) { - req, out := c.DeleteUserRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/AssociateSecurityKey +func (c *Connect) AssociateSecurityKey(input *AssociateSecurityKeyInput) (*AssociateSecurityKeyOutput, error) { + req, out := c.AssociateSecurityKeyRequest(input) return out, req.Send() } -// DeleteUserWithContext is the same as DeleteUser with the addition of +// AssociateSecurityKeyWithContext is the same as AssociateSecurityKey with the addition of // the ability to pass a context and additional request options. // -// See DeleteUser for details on how to use this API operation. +// See AssociateSecurityKey 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) DeleteUserWithContext(ctx aws.Context, input *DeleteUserInput, opts ...request.Option) (*DeleteUserOutput, error) { - req, out := c.DeleteUserRequest(input) +func (c *Connect) AssociateSecurityKeyWithContext(ctx aws.Context, input *AssociateSecurityKeyInput, opts ...request.Option) (*AssociateSecurityKeyOutput, error) { + req, out := c.AssociateSecurityKeyRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opDeleteUserHierarchyGroup = "DeleteUserHierarchyGroup" +const opCreateContactFlow = "CreateContactFlow" -// DeleteUserHierarchyGroupRequest generates a "aws/request.Request" representing the -// client's request for the DeleteUserHierarchyGroup operation. The "output" return +// CreateContactFlowRequest generates a "aws/request.Request" representing the +// client's request for the CreateContactFlow 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 DeleteUserHierarchyGroup for more information on using the DeleteUserHierarchyGroup +// See CreateContactFlow for more information on using the CreateContactFlow // 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 DeleteUserHierarchyGroupRequest method. -// req, resp := client.DeleteUserHierarchyGroupRequest(params) +// // Example sending a request using the CreateContactFlowRequest method. +// req, resp := client.CreateContactFlowRequest(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/DeleteUserHierarchyGroup -func (c *Connect) DeleteUserHierarchyGroupRequest(input *DeleteUserHierarchyGroupInput) (req *request.Request, output *DeleteUserHierarchyGroupOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/CreateContactFlow +func (c *Connect) CreateContactFlowRequest(input *CreateContactFlowInput) (req *request.Request, output *CreateContactFlowOutput) { op := &request.Operation{ - Name: opDeleteUserHierarchyGroup, - HTTPMethod: "DELETE", - HTTPPath: "/user-hierarchy-groups/{InstanceId}/{HierarchyGroupId}", + Name: opCreateContactFlow, + HTTPMethod: "PUT", + HTTPPath: "/contact-flows/{InstanceId}", } if input == nil { - input = &DeleteUserHierarchyGroupInput{} + input = &CreateContactFlowInput{} } - output = &DeleteUserHierarchyGroupOutput{} + output = &CreateContactFlowOutput{} req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// DeleteUserHierarchyGroup API operation for Amazon Connect Service. +// CreateContactFlow API operation for Amazon Connect Service. // -// Deletes an existing user hierarchy group. It must not be associated with -// any agents or have any active child groups. +// Creates a contact flow for the specified Amazon Connect instance. +// +// You can also create and update contact flows using the Amazon Connect Flow +// language (https://docs.aws.amazon.com/connect/latest/adminguide/flow-language.html). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Connect Service's -// API operation DeleteUserHierarchyGroup for usage and error information. +// API operation CreateContactFlow for usage and error information. // // Returned Error Types: // * InvalidRequestException // The request is not valid. // +// * InvalidContactFlowException +// The contact flow is not valid. +// // * InvalidParameterException // One or more of the specified parameters are not valid. // +// * DuplicateResourceException +// A resource with the specified name already exists. +// +// * LimitExceededException +// The allowed limit for the resource has been exceeded. +// // * ResourceNotFoundException // The specified resource was not found. // -// * ResourceInUseException -// That resource is already in use. Please try another. -// // * ThrottlingException // The throttling limit has been exceeded. // // * 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/DeleteUserHierarchyGroup -func (c *Connect) DeleteUserHierarchyGroup(input *DeleteUserHierarchyGroupInput) (*DeleteUserHierarchyGroupOutput, error) { - req, out := c.DeleteUserHierarchyGroupRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/CreateContactFlow +func (c *Connect) CreateContactFlow(input *CreateContactFlowInput) (*CreateContactFlowOutput, error) { + req, out := c.CreateContactFlowRequest(input) return out, req.Send() } -// DeleteUserHierarchyGroupWithContext is the same as DeleteUserHierarchyGroup with the addition of +// CreateContactFlowWithContext is the same as CreateContactFlow with the addition of // the ability to pass a context and additional request options. // -// See DeleteUserHierarchyGroup for details on how to use this API operation. +// See CreateContactFlow 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) DeleteUserHierarchyGroupWithContext(ctx aws.Context, input *DeleteUserHierarchyGroupInput, opts ...request.Option) (*DeleteUserHierarchyGroupOutput, error) { - req, out := c.DeleteUserHierarchyGroupRequest(input) +func (c *Connect) CreateContactFlowWithContext(ctx aws.Context, input *CreateContactFlowInput, opts ...request.Option) (*CreateContactFlowOutput, error) { + req, out := c.CreateContactFlowRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opDescribeContactFlow = "DescribeContactFlow" +const opCreateInstance = "CreateInstance" -// DescribeContactFlowRequest generates a "aws/request.Request" representing the -// client's request for the DescribeContactFlow operation. The "output" return +// CreateInstanceRequest generates a "aws/request.Request" representing the +// client's request for the CreateInstance 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 DescribeContactFlow for more information on using the DescribeContactFlow +// See CreateInstance for more information on using the CreateInstance // 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 DescribeContactFlowRequest method. -// req, resp := client.DescribeContactFlowRequest(params) +// // Example sending a request using the CreateInstanceRequest method. +// req, resp := client.CreateInstanceRequest(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/DescribeContactFlow -func (c *Connect) DescribeContactFlowRequest(input *DescribeContactFlowInput) (req *request.Request, output *DescribeContactFlowOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/CreateInstance +func (c *Connect) CreateInstanceRequest(input *CreateInstanceInput) (req *request.Request, output *CreateInstanceOutput) { op := &request.Operation{ - Name: opDescribeContactFlow, - HTTPMethod: "GET", - HTTPPath: "/contact-flows/{InstanceId}/{ContactFlowId}", + Name: opCreateInstance, + HTTPMethod: "PUT", + HTTPPath: "/instance", } if input == nil { - input = &DescribeContactFlowInput{} + input = &CreateInstanceInput{} } - output = &DescribeContactFlowOutput{} + output = &CreateInstanceOutput{} req = c.newRequest(op, input, output) return } -// DescribeContactFlow API operation for Amazon Connect Service. +// CreateInstance API operation for Amazon Connect Service. // -// Describes the specified contact flow. -// -// You can also create and update contact flows using the Amazon Connect Flow -// language (https://docs.aws.amazon.com/connect/latest/adminguide/flow-language.html). +// Initiates an Amazon Connect instance with all the supported channels enabled. +// It does not attach any storage (such as Amazon S3, or Kinesis) or allow for +// any configurations on features such as Contact Lens for Amazon Connect. // // 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 DescribeContactFlow for usage and error information. +// API operation CreateInstance for usage and error information. // // Returned Error Types: // * InvalidRequestException // The request is not valid. // -// * InvalidParameterException -// One or more of the specified parameters are not valid. -// -// * ResourceNotFoundException -// The specified resource was not found. -// -// * ContactFlowNotPublishedException -// The contact flow has not been published. +// * ServiceQuotaExceededException +// The service quota has been exceeded. // // * ThrottlingException // The throttling limit has been exceeded. // +// * ResourceNotFoundException +// The specified resource was not found. +// // * 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/DescribeContactFlow -func (c *Connect) DescribeContactFlow(input *DescribeContactFlowInput) (*DescribeContactFlowOutput, error) { - req, out := c.DescribeContactFlowRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/CreateInstance +func (c *Connect) CreateInstance(input *CreateInstanceInput) (*CreateInstanceOutput, error) { + req, out := c.CreateInstanceRequest(input) return out, req.Send() } -// DescribeContactFlowWithContext is the same as DescribeContactFlow with the addition of +// CreateInstanceWithContext is the same as CreateInstance with the addition of // the ability to pass a context and additional request options. // -// See DescribeContactFlow for details on how to use this API operation. +// See CreateInstance 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) DescribeContactFlowWithContext(ctx aws.Context, input *DescribeContactFlowInput, opts ...request.Option) (*DescribeContactFlowOutput, error) { - req, out := c.DescribeContactFlowRequest(input) +func (c *Connect) CreateInstanceWithContext(ctx aws.Context, input *CreateInstanceInput, opts ...request.Option) (*CreateInstanceOutput, error) { + req, out := c.CreateInstanceRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opDescribeRoutingProfile = "DescribeRoutingProfile" +const opCreateRoutingProfile = "CreateRoutingProfile" -// DescribeRoutingProfileRequest generates a "aws/request.Request" representing the -// client's request for the DescribeRoutingProfile operation. The "output" return +// CreateRoutingProfileRequest generates a "aws/request.Request" representing the +// client's request for the CreateRoutingProfile 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 DescribeRoutingProfile for more information on using the DescribeRoutingProfile +// See CreateRoutingProfile for more information on using the CreateRoutingProfile // 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 DescribeRoutingProfileRequest method. -// req, resp := client.DescribeRoutingProfileRequest(params) +// // Example sending a request using the CreateRoutingProfileRequest method. +// req, resp := client.CreateRoutingProfileRequest(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/DescribeRoutingProfile -func (c *Connect) DescribeRoutingProfileRequest(input *DescribeRoutingProfileInput) (req *request.Request, output *DescribeRoutingProfileOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/CreateRoutingProfile +func (c *Connect) CreateRoutingProfileRequest(input *CreateRoutingProfileInput) (req *request.Request, output *CreateRoutingProfileOutput) { op := &request.Operation{ - Name: opDescribeRoutingProfile, - HTTPMethod: "GET", - HTTPPath: "/routing-profiles/{InstanceId}/{RoutingProfileId}", + Name: opCreateRoutingProfile, + HTTPMethod: "PUT", + HTTPPath: "/routing-profiles/{InstanceId}", } if input == nil { - input = &DescribeRoutingProfileInput{} + input = &CreateRoutingProfileInput{} } - output = &DescribeRoutingProfileOutput{} + output = &CreateRoutingProfileOutput{} req = c.newRequest(op, input, output) return } -// DescribeRoutingProfile API operation for Amazon Connect Service. +// CreateRoutingProfile API operation for Amazon Connect Service. // -// Describes the specified routing profile. +// Creates a new routing profile. // // 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 DescribeRoutingProfile for usage and error information. +// API operation CreateRoutingProfile for usage and error information. // // Returned Error Types: // * InvalidRequestException @@ -852,91 +855,99 @@ func (c *Connect) DescribeRoutingProfileRequest(input *DescribeRoutingProfileInp // * InvalidParameterException // One or more of the specified parameters are not valid. // +// * DuplicateResourceException +// A resource with the specified name already exists. +// // * ResourceNotFoundException // The specified resource was not found. // +// * LimitExceededException +// The allowed limit for the resource has been exceeded. +// // * ThrottlingException // The throttling limit has been exceeded. // // * 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/DescribeRoutingProfile -func (c *Connect) DescribeRoutingProfile(input *DescribeRoutingProfileInput) (*DescribeRoutingProfileOutput, error) { - req, out := c.DescribeRoutingProfileRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/CreateRoutingProfile +func (c *Connect) CreateRoutingProfile(input *CreateRoutingProfileInput) (*CreateRoutingProfileOutput, error) { + req, out := c.CreateRoutingProfileRequest(input) return out, req.Send() } -// DescribeRoutingProfileWithContext is the same as DescribeRoutingProfile with the addition of +// CreateRoutingProfileWithContext is the same as CreateRoutingProfile with the addition of // the ability to pass a context and additional request options. // -// See DescribeRoutingProfile for details on how to use this API operation. +// See CreateRoutingProfile 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) DescribeRoutingProfileWithContext(ctx aws.Context, input *DescribeRoutingProfileInput, opts ...request.Option) (*DescribeRoutingProfileOutput, error) { - req, out := c.DescribeRoutingProfileRequest(input) +func (c *Connect) CreateRoutingProfileWithContext(ctx aws.Context, input *CreateRoutingProfileInput, opts ...request.Option) (*CreateRoutingProfileOutput, error) { + req, out := c.CreateRoutingProfileRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opDescribeUser = "DescribeUser" +const opCreateUser = "CreateUser" -// DescribeUserRequest generates a "aws/request.Request" representing the -// client's request for the DescribeUser operation. The "output" return +// CreateUserRequest generates a "aws/request.Request" representing the +// client's request for the CreateUser 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 DescribeUser for more information on using the DescribeUser +// See CreateUser for more information on using the CreateUser // 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 DescribeUserRequest method. -// req, resp := client.DescribeUserRequest(params) +// // Example sending a request using the CreateUserRequest method. +// req, resp := client.CreateUserRequest(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/DescribeUser -func (c *Connect) DescribeUserRequest(input *DescribeUserInput) (req *request.Request, output *DescribeUserOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/CreateUser +func (c *Connect) CreateUserRequest(input *CreateUserInput) (req *request.Request, output *CreateUserOutput) { op := &request.Operation{ - Name: opDescribeUser, - HTTPMethod: "GET", - HTTPPath: "/users/{InstanceId}/{UserId}", + Name: opCreateUser, + HTTPMethod: "PUT", + HTTPPath: "/users/{InstanceId}", } if input == nil { - input = &DescribeUserInput{} + input = &CreateUserInput{} } - output = &DescribeUserOutput{} + output = &CreateUserOutput{} req = c.newRequest(op, input, output) return } -// DescribeUser API operation for Amazon Connect Service. +// CreateUser API operation for Amazon Connect Service. // -// Describes the specified user account. You can find the instance ID in the -// console (it’s the final part of the ARN). The console does not display -// the user IDs. Instead, list the users and note the IDs provided in the output. +// Creates a user account for the specified Amazon Connect instance. +// +// For information about how to create user accounts using the Amazon Connect +// console, see Add Users (https://docs.aws.amazon.com/connect/latest/adminguide/user-management.html) +// in the Amazon Connect Administrator Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Connect Service's -// API operation DescribeUser for usage and error information. +// API operation CreateUser for usage and error information. // // Returned Error Types: // * InvalidRequestException @@ -945,6 +956,12 @@ func (c *Connect) DescribeUserRequest(input *DescribeUserInput) (req *request.Re // * InvalidParameterException // One or more of the specified parameters are not valid. // +// * LimitExceededException +// The allowed limit for the resource has been exceeded. +// +// * DuplicateResourceException +// A resource with the specified name already exists. +// // * ResourceNotFoundException // The specified resource was not found. // @@ -954,80 +971,80 @@ func (c *Connect) DescribeUserRequest(input *DescribeUserInput) (req *request.Re // * 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/DescribeUser -func (c *Connect) DescribeUser(input *DescribeUserInput) (*DescribeUserOutput, error) { - req, out := c.DescribeUserRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/CreateUser +func (c *Connect) CreateUser(input *CreateUserInput) (*CreateUserOutput, error) { + req, out := c.CreateUserRequest(input) return out, req.Send() } -// DescribeUserWithContext is the same as DescribeUser with the addition of +// CreateUserWithContext is the same as CreateUser with the addition of // the ability to pass a context and additional request options. // -// See DescribeUser for details on how to use this API operation. +// See CreateUser 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) DescribeUserWithContext(ctx aws.Context, input *DescribeUserInput, opts ...request.Option) (*DescribeUserOutput, error) { - req, out := c.DescribeUserRequest(input) +func (c *Connect) CreateUserWithContext(ctx aws.Context, input *CreateUserInput, opts ...request.Option) (*CreateUserOutput, error) { + req, out := c.CreateUserRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opDescribeUserHierarchyGroup = "DescribeUserHierarchyGroup" +const opCreateUserHierarchyGroup = "CreateUserHierarchyGroup" -// DescribeUserHierarchyGroupRequest generates a "aws/request.Request" representing the -// client's request for the DescribeUserHierarchyGroup operation. The "output" return +// CreateUserHierarchyGroupRequest generates a "aws/request.Request" representing the +// client's request for the CreateUserHierarchyGroup 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 DescribeUserHierarchyGroup for more information on using the DescribeUserHierarchyGroup +// See CreateUserHierarchyGroup for more information on using the CreateUserHierarchyGroup // 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 DescribeUserHierarchyGroupRequest method. -// req, resp := client.DescribeUserHierarchyGroupRequest(params) +// // Example sending a request using the CreateUserHierarchyGroupRequest method. +// req, resp := client.CreateUserHierarchyGroupRequest(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/DescribeUserHierarchyGroup -func (c *Connect) DescribeUserHierarchyGroupRequest(input *DescribeUserHierarchyGroupInput) (req *request.Request, output *DescribeUserHierarchyGroupOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/CreateUserHierarchyGroup +func (c *Connect) CreateUserHierarchyGroupRequest(input *CreateUserHierarchyGroupInput) (req *request.Request, output *CreateUserHierarchyGroupOutput) { op := &request.Operation{ - Name: opDescribeUserHierarchyGroup, - HTTPMethod: "GET", - HTTPPath: "/user-hierarchy-groups/{InstanceId}/{HierarchyGroupId}", + Name: opCreateUserHierarchyGroup, + HTTPMethod: "PUT", + HTTPPath: "/user-hierarchy-groups/{InstanceId}", } if input == nil { - input = &DescribeUserHierarchyGroupInput{} + input = &CreateUserHierarchyGroupInput{} } - output = &DescribeUserHierarchyGroupOutput{} + output = &CreateUserHierarchyGroupOutput{} req = c.newRequest(op, input, output) return } -// DescribeUserHierarchyGroup API operation for Amazon Connect Service. +// CreateUserHierarchyGroup API operation for Amazon Connect Service. // -// Describes the specified hierarchy group. +// Creates a new user 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 // the error. // // See the AWS API reference guide for Amazon Connect Service's -// API operation DescribeUserHierarchyGroup for usage and error information. +// API operation CreateUserHierarchyGroup for usage and error information. // // Returned Error Types: // * InvalidRequestException @@ -1036,6 +1053,12 @@ func (c *Connect) DescribeUserHierarchyGroupRequest(input *DescribeUserHierarchy // * InvalidParameterException // One or more of the specified parameters are not valid. // +// * DuplicateResourceException +// A resource with the specified name already exists. +// +// * LimitExceededException +// The allowed limit for the resource has been exceeded. +// // * ResourceNotFoundException // The specified resource was not found. // @@ -1045,172 +1068,171 @@ func (c *Connect) DescribeUserHierarchyGroupRequest(input *DescribeUserHierarchy // * 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/DescribeUserHierarchyGroup -func (c *Connect) DescribeUserHierarchyGroup(input *DescribeUserHierarchyGroupInput) (*DescribeUserHierarchyGroupOutput, error) { - req, out := c.DescribeUserHierarchyGroupRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/CreateUserHierarchyGroup +func (c *Connect) CreateUserHierarchyGroup(input *CreateUserHierarchyGroupInput) (*CreateUserHierarchyGroupOutput, error) { + req, out := c.CreateUserHierarchyGroupRequest(input) return out, req.Send() } -// DescribeUserHierarchyGroupWithContext is the same as DescribeUserHierarchyGroup with the addition of +// CreateUserHierarchyGroupWithContext is the same as CreateUserHierarchyGroup with the addition of // the ability to pass a context and additional request options. // -// See DescribeUserHierarchyGroup for details on how to use this API operation. +// See CreateUserHierarchyGroup 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) DescribeUserHierarchyGroupWithContext(ctx aws.Context, input *DescribeUserHierarchyGroupInput, opts ...request.Option) (*DescribeUserHierarchyGroupOutput, error) { - req, out := c.DescribeUserHierarchyGroupRequest(input) +func (c *Connect) CreateUserHierarchyGroupWithContext(ctx aws.Context, input *CreateUserHierarchyGroupInput, opts ...request.Option) (*CreateUserHierarchyGroupOutput, error) { + req, out := c.CreateUserHierarchyGroupRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opDescribeUserHierarchyStructure = "DescribeUserHierarchyStructure" +const opDeleteInstance = "DeleteInstance" -// DescribeUserHierarchyStructureRequest generates a "aws/request.Request" representing the -// client's request for the DescribeUserHierarchyStructure operation. The "output" return +// DeleteInstanceRequest generates a "aws/request.Request" representing the +// client's request for the DeleteInstance 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 DescribeUserHierarchyStructure for more information on using the DescribeUserHierarchyStructure +// See DeleteInstance for more information on using the DeleteInstance // 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 DescribeUserHierarchyStructureRequest method. -// req, resp := client.DescribeUserHierarchyStructureRequest(params) +// // Example sending a request using the DeleteInstanceRequest method. +// req, resp := client.DeleteInstanceRequest(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/DescribeUserHierarchyStructure -func (c *Connect) DescribeUserHierarchyStructureRequest(input *DescribeUserHierarchyStructureInput) (req *request.Request, output *DescribeUserHierarchyStructureOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/DeleteInstance +func (c *Connect) DeleteInstanceRequest(input *DeleteInstanceInput) (req *request.Request, output *DeleteInstanceOutput) { op := &request.Operation{ - Name: opDescribeUserHierarchyStructure, - HTTPMethod: "GET", - HTTPPath: "/user-hierarchy-structure/{InstanceId}", + Name: opDeleteInstance, + HTTPMethod: "DELETE", + HTTPPath: "/instance/{InstanceId}", } if input == nil { - input = &DescribeUserHierarchyStructureInput{} + input = &DeleteInstanceInput{} } - output = &DescribeUserHierarchyStructureOutput{} + output = &DeleteInstanceOutput{} req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// DescribeUserHierarchyStructure API operation for Amazon Connect Service. +// DeleteInstance API operation for Amazon Connect Service. // -// Describes the hierarchy structure of the specified Amazon Connect instance. +// Deletes the 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 DescribeUserHierarchyStructure for usage and error information. +// API operation DeleteInstance for usage and error information. // // Returned Error Types: -// * InvalidRequestException -// The request is not valid. -// -// * InvalidParameterException -// One or more of the specified parameters are not valid. -// // * ResourceNotFoundException // The specified resource was not found. // -// * ThrottlingException -// The throttling limit has been exceeded. -// // * InternalServiceException // Request processing failed due to an error or failure with the service. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/DescribeUserHierarchyStructure -func (c *Connect) DescribeUserHierarchyStructure(input *DescribeUserHierarchyStructureInput) (*DescribeUserHierarchyStructureOutput, error) { - req, out := c.DescribeUserHierarchyStructureRequest(input) +// * InvalidRequestException +// The request is not valid. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/DeleteInstance +func (c *Connect) DeleteInstance(input *DeleteInstanceInput) (*DeleteInstanceOutput, error) { + req, out := c.DeleteInstanceRequest(input) return out, req.Send() } -// DescribeUserHierarchyStructureWithContext is the same as DescribeUserHierarchyStructure with the addition of +// DeleteInstanceWithContext is the same as DeleteInstance with the addition of // the ability to pass a context and additional request options. // -// See DescribeUserHierarchyStructure for details on how to use this API operation. +// See DeleteInstance 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) DescribeUserHierarchyStructureWithContext(ctx aws.Context, input *DescribeUserHierarchyStructureInput, opts ...request.Option) (*DescribeUserHierarchyStructureOutput, error) { - req, out := c.DescribeUserHierarchyStructureRequest(input) +func (c *Connect) DeleteInstanceWithContext(ctx aws.Context, input *DeleteInstanceInput, opts ...request.Option) (*DeleteInstanceOutput, error) { + req, out := c.DeleteInstanceRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opDisassociateRoutingProfileQueues = "DisassociateRoutingProfileQueues" +const opDeleteUser = "DeleteUser" -// DisassociateRoutingProfileQueuesRequest generates a "aws/request.Request" representing the -// client's request for the DisassociateRoutingProfileQueues operation. The "output" return +// DeleteUserRequest generates a "aws/request.Request" representing the +// client's request for the DeleteUser 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 DisassociateRoutingProfileQueues for more information on using the DisassociateRoutingProfileQueues +// See DeleteUser for more information on using the DeleteUser // 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 DisassociateRoutingProfileQueuesRequest method. -// req, resp := client.DisassociateRoutingProfileQueuesRequest(params) +// // Example sending a request using the DeleteUserRequest method. +// req, resp := client.DeleteUserRequest(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/DisassociateRoutingProfileQueues -func (c *Connect) DisassociateRoutingProfileQueuesRequest(input *DisassociateRoutingProfileQueuesInput) (req *request.Request, output *DisassociateRoutingProfileQueuesOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/DeleteUser +func (c *Connect) DeleteUserRequest(input *DeleteUserInput) (req *request.Request, output *DeleteUserOutput) { op := &request.Operation{ - Name: opDisassociateRoutingProfileQueues, - HTTPMethod: "POST", - HTTPPath: "/routing-profiles/{InstanceId}/{RoutingProfileId}/disassociate-queues", + Name: opDeleteUser, + HTTPMethod: "DELETE", + HTTPPath: "/users/{InstanceId}/{UserId}", } if input == nil { - input = &DisassociateRoutingProfileQueuesInput{} + input = &DeleteUserInput{} } - output = &DisassociateRoutingProfileQueuesOutput{} + output = &DeleteUserOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// DisassociateRoutingProfileQueues API operation for Amazon Connect Service. +// DeleteUser API operation for Amazon Connect Service. // -// Disassociates a set of queues from a routing profile. +// Deletes a user account from the specified Amazon Connect instance. +// +// For information about what happens to a user's data when their account is +// deleted, see Delete Users from Your Amazon Connect Instance (https://docs.aws.amazon.com/connect/latest/adminguide/delete-users.html) +// in the Amazon Connect Administrator Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Connect Service's -// API operation DisassociateRoutingProfileQueues for usage and error information. +// API operation DeleteUser for usage and error information. // // Returned Error Types: // * InvalidRequestException @@ -1228,174 +1250,179 @@ func (c *Connect) DisassociateRoutingProfileQueuesRequest(input *DisassociateRou // * 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/DisassociateRoutingProfileQueues -func (c *Connect) DisassociateRoutingProfileQueues(input *DisassociateRoutingProfileQueuesInput) (*DisassociateRoutingProfileQueuesOutput, error) { - req, out := c.DisassociateRoutingProfileQueuesRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/DeleteUser +func (c *Connect) DeleteUser(input *DeleteUserInput) (*DeleteUserOutput, error) { + req, out := c.DeleteUserRequest(input) return out, req.Send() } -// DisassociateRoutingProfileQueuesWithContext is the same as DisassociateRoutingProfileQueues with the addition of +// DeleteUserWithContext is the same as DeleteUser with the addition of // the ability to pass a context and additional request options. // -// See DisassociateRoutingProfileQueues for details on how to use this API operation. +// See DeleteUser 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) DisassociateRoutingProfileQueuesWithContext(ctx aws.Context, input *DisassociateRoutingProfileQueuesInput, opts ...request.Option) (*DisassociateRoutingProfileQueuesOutput, error) { - req, out := c.DisassociateRoutingProfileQueuesRequest(input) +func (c *Connect) DeleteUserWithContext(ctx aws.Context, input *DeleteUserInput, opts ...request.Option) (*DeleteUserOutput, error) { + req, out := c.DeleteUserRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opGetContactAttributes = "GetContactAttributes" +const opDeleteUserHierarchyGroup = "DeleteUserHierarchyGroup" -// GetContactAttributesRequest generates a "aws/request.Request" representing the -// client's request for the GetContactAttributes operation. The "output" return +// DeleteUserHierarchyGroupRequest generates a "aws/request.Request" representing the +// client's request for the DeleteUserHierarchyGroup 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 GetContactAttributes for more information on using the GetContactAttributes +// See DeleteUserHierarchyGroup for more information on using the DeleteUserHierarchyGroup // 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 GetContactAttributesRequest method. -// req, resp := client.GetContactAttributesRequest(params) +// // Example sending a request using the DeleteUserHierarchyGroupRequest method. +// req, resp := client.DeleteUserHierarchyGroupRequest(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/GetContactAttributes -func (c *Connect) GetContactAttributesRequest(input *GetContactAttributesInput) (req *request.Request, output *GetContactAttributesOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/DeleteUserHierarchyGroup +func (c *Connect) DeleteUserHierarchyGroupRequest(input *DeleteUserHierarchyGroupInput) (req *request.Request, output *DeleteUserHierarchyGroupOutput) { op := &request.Operation{ - Name: opGetContactAttributes, - HTTPMethod: "GET", - HTTPPath: "/contact/attributes/{InstanceId}/{InitialContactId}", + Name: opDeleteUserHierarchyGroup, + HTTPMethod: "DELETE", + HTTPPath: "/user-hierarchy-groups/{InstanceId}/{HierarchyGroupId}", } if input == nil { - input = &GetContactAttributesInput{} + input = &DeleteUserHierarchyGroupInput{} } - output = &GetContactAttributesOutput{} + output = &DeleteUserHierarchyGroupOutput{} req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// GetContactAttributes API operation for Amazon Connect Service. +// DeleteUserHierarchyGroup API operation for Amazon Connect Service. // -// Retrieves the contact attributes for the specified contact. +// Deletes an existing user hierarchy group. It must not be associated with +// any agents or have any active child groups. // // 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 GetContactAttributes for usage and error information. +// API operation DeleteUserHierarchyGroup for usage and error information. // // Returned Error Types: // * InvalidRequestException // The request is not valid. // +// * InvalidParameterException +// One or more of the specified parameters are not valid. +// // * ResourceNotFoundException // The specified resource was not found. // +// * ResourceInUseException +// That resource is already in use. Please try another. +// +// * ThrottlingException +// The throttling limit has been exceeded. +// // * 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/GetContactAttributes -func (c *Connect) GetContactAttributes(input *GetContactAttributesInput) (*GetContactAttributesOutput, error) { - req, out := c.GetContactAttributesRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/DeleteUserHierarchyGroup +func (c *Connect) DeleteUserHierarchyGroup(input *DeleteUserHierarchyGroupInput) (*DeleteUserHierarchyGroupOutput, error) { + req, out := c.DeleteUserHierarchyGroupRequest(input) return out, req.Send() } -// GetContactAttributesWithContext is the same as GetContactAttributes with the addition of +// DeleteUserHierarchyGroupWithContext is the same as DeleteUserHierarchyGroup with the addition of // the ability to pass a context and additional request options. // -// See GetContactAttributes for details on how to use this API operation. +// See DeleteUserHierarchyGroup 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) GetContactAttributesWithContext(ctx aws.Context, input *GetContactAttributesInput, opts ...request.Option) (*GetContactAttributesOutput, error) { - req, out := c.GetContactAttributesRequest(input) +func (c *Connect) DeleteUserHierarchyGroupWithContext(ctx aws.Context, input *DeleteUserHierarchyGroupInput, opts ...request.Option) (*DeleteUserHierarchyGroupOutput, error) { + req, out := c.DeleteUserHierarchyGroupRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opGetCurrentMetricData = "GetCurrentMetricData" +const opDescribeContactFlow = "DescribeContactFlow" -// GetCurrentMetricDataRequest generates a "aws/request.Request" representing the -// client's request for the GetCurrentMetricData operation. The "output" return +// DescribeContactFlowRequest generates a "aws/request.Request" representing the +// client's request for the DescribeContactFlow 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 GetCurrentMetricData for more information on using the GetCurrentMetricData +// See DescribeContactFlow for more information on using the DescribeContactFlow // 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 GetCurrentMetricDataRequest method. -// req, resp := client.GetCurrentMetricDataRequest(params) +// // Example sending a request using the DescribeContactFlowRequest method. +// req, resp := client.DescribeContactFlowRequest(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/GetCurrentMetricData -func (c *Connect) GetCurrentMetricDataRequest(input *GetCurrentMetricDataInput) (req *request.Request, output *GetCurrentMetricDataOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/DescribeContactFlow +func (c *Connect) DescribeContactFlowRequest(input *DescribeContactFlowInput) (req *request.Request, output *DescribeContactFlowOutput) { op := &request.Operation{ - Name: opGetCurrentMetricData, - HTTPMethod: "POST", - HTTPPath: "/metrics/current/{InstanceId}", - Paginator: &request.Paginator{ - InputTokens: []string{"NextToken"}, - OutputTokens: []string{"NextToken"}, - LimitToken: "MaxResults", - TruncationToken: "", - }, + Name: opDescribeContactFlow, + HTTPMethod: "GET", + HTTPPath: "/contact-flows/{InstanceId}/{ContactFlowId}", } if input == nil { - input = &GetCurrentMetricDataInput{} + input = &DescribeContactFlowInput{} } - output = &GetCurrentMetricDataOutput{} + output = &DescribeContactFlowOutput{} req = c.newRequest(op, input, output) return } -// GetCurrentMetricData API operation for Amazon Connect Service. +// DescribeContactFlow API operation for Amazon Connect Service. // -// Gets the real-time metric data from the specified Amazon Connect instance. +// Describes the specified contact flow. // -// For a description of each metric, see Real-time Metrics Definitions (https://docs.aws.amazon.com/connect/latest/adminguide/real-time-metrics-definitions.html) -// in the Amazon Connect Administrator Guide. +// You can also create and update contact flows using the Amazon Connect Flow +// language (https://docs.aws.amazon.com/connect/latest/adminguide/flow-language.html). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Connect Service's -// API operation GetCurrentMetricData for usage and error information. +// API operation DescribeContactFlow for usage and error information. // // Returned Error Types: // * InvalidRequestException @@ -1404,401 +1431,365 @@ func (c *Connect) GetCurrentMetricDataRequest(input *GetCurrentMetricDataInput) // * InvalidParameterException // One or more of the specified parameters are not valid. // -// * InternalServiceException -// Request processing failed due to an error or failure with the service. +// * ResourceNotFoundException +// The specified resource was not found. +// +// * ContactFlowNotPublishedException +// The contact flow has not been published. // // * ThrottlingException // The throttling limit has been exceeded. // -// * ResourceNotFoundException -// The specified resource was not found. +// * 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/GetCurrentMetricData -func (c *Connect) GetCurrentMetricData(input *GetCurrentMetricDataInput) (*GetCurrentMetricDataOutput, error) { - req, out := c.GetCurrentMetricDataRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/DescribeContactFlow +func (c *Connect) DescribeContactFlow(input *DescribeContactFlowInput) (*DescribeContactFlowOutput, error) { + req, out := c.DescribeContactFlowRequest(input) return out, req.Send() } -// GetCurrentMetricDataWithContext is the same as GetCurrentMetricData with the addition of +// DescribeContactFlowWithContext is the same as DescribeContactFlow with the addition of // the ability to pass a context and additional request options. // -// See GetCurrentMetricData for details on how to use this API operation. +// See DescribeContactFlow 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) GetCurrentMetricDataWithContext(ctx aws.Context, input *GetCurrentMetricDataInput, opts ...request.Option) (*GetCurrentMetricDataOutput, error) { - req, out := c.GetCurrentMetricDataRequest(input) +func (c *Connect) DescribeContactFlowWithContext(ctx aws.Context, input *DescribeContactFlowInput, opts ...request.Option) (*DescribeContactFlowOutput, error) { + req, out := c.DescribeContactFlowRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// GetCurrentMetricDataPages iterates over the pages of a GetCurrentMetricData operation, -// calling the "fn" function with the response data for each page. To stop -// iterating, return false from the fn function. +const opDescribeInstance = "DescribeInstance" + +// DescribeInstanceRequest generates a "aws/request.Request" representing the +// client's request for the DescribeInstance operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. // -// See GetCurrentMetricData method for more information on how to use this operation. +// 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. // -// Note: This operation can generate multiple requests to a service. +// See DescribeInstance for more information on using the DescribeInstance +// API call, and error handling. // -// // Example iterating over at most 3 pages of a GetCurrentMetricData operation. -// pageNum := 0 -// err := client.GetCurrentMetricDataPages(params, -// func(page *connect.GetCurrentMetricDataOutput, lastPage bool) bool { -// pageNum++ -// fmt.Println(page) -// return pageNum <= 3 -// }) +// 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. // -func (c *Connect) GetCurrentMetricDataPages(input *GetCurrentMetricDataInput, fn func(*GetCurrentMetricDataOutput, bool) bool) error { - return c.GetCurrentMetricDataPagesWithContext(aws.BackgroundContext(), input, fn) -} - -// GetCurrentMetricDataPagesWithContext same as GetCurrentMetricDataPages 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) GetCurrentMetricDataPagesWithContext(ctx aws.Context, input *GetCurrentMetricDataInput, fn func(*GetCurrentMetricDataOutput, bool) bool, opts ...request.Option) error { - p := request.Pagination{ - NewRequest: func() (*request.Request, error) { - var inCpy *GetCurrentMetricDataInput - if input != nil { - tmp := *input - inCpy = &tmp - } - req, _ := c.GetCurrentMetricDataRequest(inCpy) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return req, nil - }, +// // Example sending a request using the DescribeInstanceRequest method. +// req, resp := client.DescribeInstanceRequest(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/DescribeInstance +func (c *Connect) DescribeInstanceRequest(input *DescribeInstanceInput) (req *request.Request, output *DescribeInstanceOutput) { + op := &request.Operation{ + Name: opDescribeInstance, + HTTPMethod: "GET", + HTTPPath: "/instance/{InstanceId}", } - for p.Next() { - if !fn(p.Page().(*GetCurrentMetricDataOutput), !p.HasNextPage()) { - break - } + if input == nil { + input = &DescribeInstanceInput{} } - return p.Err() + output = &DescribeInstanceOutput{} + req = c.newRequest(op, input, output) + return } -const opGetFederationToken = "GetFederationToken" +// DescribeInstance API operation for Amazon Connect Service. +// +// Returns the current state of the specified instance identifier. It tracks +// the instance while it is being created and returns an error status if applicable. +// +// If an instance is not created successfully, the instance status reason field +// returns details relevant to the reason. The instance in a failed state is +// returned only for 24 hours after the CreateInstance API was invoked. +// +// 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 DescribeInstance for usage and error information. +// +// Returned Error Types: +// * InvalidRequestException +// The request is not valid. +// +// * ResourceNotFoundException +// The specified resource was not found. +// +// * 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/DescribeInstance +func (c *Connect) DescribeInstance(input *DescribeInstanceInput) (*DescribeInstanceOutput, error) { + req, out := c.DescribeInstanceRequest(input) + return out, req.Send() +} -// GetFederationTokenRequest generates a "aws/request.Request" representing the -// client's request for the GetFederationToken operation. The "output" return +// DescribeInstanceWithContext is the same as DescribeInstance with the addition of +// the ability to pass a context and additional request options. +// +// See DescribeInstance 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) DescribeInstanceWithContext(ctx aws.Context, input *DescribeInstanceInput, opts ...request.Option) (*DescribeInstanceOutput, error) { + req, out := c.DescribeInstanceRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDescribeInstanceAttribute = "DescribeInstanceAttribute" + +// DescribeInstanceAttributeRequest generates a "aws/request.Request" representing the +// client's request for the DescribeInstanceAttribute 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 GetFederationToken for more information on using the GetFederationToken +// See DescribeInstanceAttribute for more information on using the DescribeInstanceAttribute // 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 GetFederationTokenRequest method. -// req, resp := client.GetFederationTokenRequest(params) +// // Example sending a request using the DescribeInstanceAttributeRequest method. +// req, resp := client.DescribeInstanceAttributeRequest(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/GetFederationToken -func (c *Connect) GetFederationTokenRequest(input *GetFederationTokenInput) (req *request.Request, output *GetFederationTokenOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/DescribeInstanceAttribute +func (c *Connect) DescribeInstanceAttributeRequest(input *DescribeInstanceAttributeInput) (req *request.Request, output *DescribeInstanceAttributeOutput) { op := &request.Operation{ - Name: opGetFederationToken, + Name: opDescribeInstanceAttribute, HTTPMethod: "GET", - HTTPPath: "/user/federate/{InstanceId}", + HTTPPath: "/instance/{InstanceId}/attribute/{AttributeType}", } if input == nil { - input = &GetFederationTokenInput{} + input = &DescribeInstanceAttributeInput{} } - output = &GetFederationTokenOutput{} + output = &DescribeInstanceAttributeOutput{} req = c.newRequest(op, input, output) return } -// GetFederationToken API operation for Amazon Connect Service. +// DescribeInstanceAttribute API operation for Amazon Connect Service. // -// Retrieves a token for federation. +// Describes the specified instance attribute. // // 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 GetFederationToken for usage and error information. +// API operation DescribeInstanceAttribute for usage and error information. // // Returned Error Types: -// * InvalidRequestException -// The request is not valid. -// -// * InvalidParameterException -// One or more of the specified parameters are not valid. -// // * ResourceNotFoundException // The specified resource was not found. // -// * UserNotFoundException -// No user with the specified credentials was found in the Amazon Connect instance. -// // * InternalServiceException // Request processing failed due to an error or failure with the service. // -// * DuplicateResourceException -// A resource with the specified name already exists. +// * InvalidRequestException +// The request is not valid. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/GetFederationToken -func (c *Connect) GetFederationToken(input *GetFederationTokenInput) (*GetFederationTokenOutput, error) { - req, out := c.GetFederationTokenRequest(input) +// * InvalidParameterException +// One or more of the specified parameters are not valid. +// +// * ThrottlingException +// The throttling limit has been exceeded. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/DescribeInstanceAttribute +func (c *Connect) DescribeInstanceAttribute(input *DescribeInstanceAttributeInput) (*DescribeInstanceAttributeOutput, error) { + req, out := c.DescribeInstanceAttributeRequest(input) return out, req.Send() } -// GetFederationTokenWithContext is the same as GetFederationToken with the addition of +// DescribeInstanceAttributeWithContext is the same as DescribeInstanceAttribute with the addition of // the ability to pass a context and additional request options. // -// See GetFederationToken for details on how to use this API operation. +// See DescribeInstanceAttribute 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) GetFederationTokenWithContext(ctx aws.Context, input *GetFederationTokenInput, opts ...request.Option) (*GetFederationTokenOutput, error) { - req, out := c.GetFederationTokenRequest(input) +func (c *Connect) DescribeInstanceAttributeWithContext(ctx aws.Context, input *DescribeInstanceAttributeInput, opts ...request.Option) (*DescribeInstanceAttributeOutput, error) { + req, out := c.DescribeInstanceAttributeRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opGetMetricData = "GetMetricData" +const opDescribeInstanceStorageConfig = "DescribeInstanceStorageConfig" -// GetMetricDataRequest generates a "aws/request.Request" representing the -// client's request for the GetMetricData operation. The "output" return +// DescribeInstanceStorageConfigRequest generates a "aws/request.Request" representing the +// client's request for the DescribeInstanceStorageConfig 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 GetMetricData for more information on using the GetMetricData +// See DescribeInstanceStorageConfig for more information on using the DescribeInstanceStorageConfig // 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 GetMetricDataRequest method. -// req, resp := client.GetMetricDataRequest(params) +// // Example sending a request using the DescribeInstanceStorageConfigRequest method. +// req, resp := client.DescribeInstanceStorageConfigRequest(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/GetMetricData -func (c *Connect) GetMetricDataRequest(input *GetMetricDataInput) (req *request.Request, output *GetMetricDataOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/DescribeInstanceStorageConfig +func (c *Connect) DescribeInstanceStorageConfigRequest(input *DescribeInstanceStorageConfigInput) (req *request.Request, output *DescribeInstanceStorageConfigOutput) { op := &request.Operation{ - Name: opGetMetricData, - HTTPMethod: "POST", - HTTPPath: "/metrics/historical/{InstanceId}", - Paginator: &request.Paginator{ - InputTokens: []string{"NextToken"}, - OutputTokens: []string{"NextToken"}, - LimitToken: "MaxResults", - TruncationToken: "", - }, + Name: opDescribeInstanceStorageConfig, + HTTPMethod: "GET", + HTTPPath: "/instance/{InstanceId}/storage-config/{AssociationId}", } if input == nil { - input = &GetMetricDataInput{} + input = &DescribeInstanceStorageConfigInput{} } - output = &GetMetricDataOutput{} + output = &DescribeInstanceStorageConfigOutput{} req = c.newRequest(op, input, output) return } -// GetMetricData API operation for Amazon Connect Service. +// DescribeInstanceStorageConfig API operation for Amazon Connect Service. // -// Gets historical metric data from the specified Amazon Connect instance. -// -// For a description of each historical metric, see Historical Metrics Definitions -// (https://docs.aws.amazon.com/connect/latest/adminguide/historical-metrics-definitions.html) -// in the Amazon Connect Administrator Guide. +// Retrieves the current storage configurations for the specified resource type, +// association ID, and instance ID. // // 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 GetMetricData for usage and error information. +// API operation DescribeInstanceStorageConfig for usage and error information. // // Returned Error Types: +// * ResourceNotFoundException +// The specified resource was not found. +// +// * InternalServiceException +// Request processing failed due to an error or failure with the service. +// // * InvalidRequestException // The request is not valid. // // * InvalidParameterException // One or more of the specified parameters are not valid. // -// * InternalServiceException -// Request processing failed due to an error or failure with the service. -// // * ThrottlingException // The throttling limit has been exceeded. // -// * ResourceNotFoundException -// The specified resource was not found. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/GetMetricData -func (c *Connect) GetMetricData(input *GetMetricDataInput) (*GetMetricDataOutput, error) { - req, out := c.GetMetricDataRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/DescribeInstanceStorageConfig +func (c *Connect) DescribeInstanceStorageConfig(input *DescribeInstanceStorageConfigInput) (*DescribeInstanceStorageConfigOutput, error) { + req, out := c.DescribeInstanceStorageConfigRequest(input) return out, req.Send() } -// GetMetricDataWithContext is the same as GetMetricData with the addition of +// DescribeInstanceStorageConfigWithContext is the same as DescribeInstanceStorageConfig with the addition of // the ability to pass a context and additional request options. // -// See GetMetricData for details on how to use this API operation. +// See DescribeInstanceStorageConfig 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) GetMetricDataWithContext(ctx aws.Context, input *GetMetricDataInput, opts ...request.Option) (*GetMetricDataOutput, error) { - req, out := c.GetMetricDataRequest(input) +func (c *Connect) DescribeInstanceStorageConfigWithContext(ctx aws.Context, input *DescribeInstanceStorageConfigInput, opts ...request.Option) (*DescribeInstanceStorageConfigOutput, error) { + req, out := c.DescribeInstanceStorageConfigRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// GetMetricDataPages iterates over the pages of a GetMetricData operation, -// calling the "fn" function with the response data for each page. To stop -// iterating, return false from the fn function. -// -// See GetMetricData 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 GetMetricData operation. -// pageNum := 0 -// err := client.GetMetricDataPages(params, -// func(page *connect.GetMetricDataOutput, lastPage bool) bool { -// pageNum++ -// fmt.Println(page) -// return pageNum <= 3 -// }) -// -func (c *Connect) GetMetricDataPages(input *GetMetricDataInput, fn func(*GetMetricDataOutput, bool) bool) error { - return c.GetMetricDataPagesWithContext(aws.BackgroundContext(), input, fn) -} - -// GetMetricDataPagesWithContext same as GetMetricDataPages 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) GetMetricDataPagesWithContext(ctx aws.Context, input *GetMetricDataInput, fn func(*GetMetricDataOutput, bool) bool, opts ...request.Option) error { - p := request.Pagination{ - NewRequest: func() (*request.Request, error) { - var inCpy *GetMetricDataInput - if input != nil { - tmp := *input - inCpy = &tmp - } - req, _ := c.GetMetricDataRequest(inCpy) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return req, nil - }, - } - - for p.Next() { - if !fn(p.Page().(*GetMetricDataOutput), !p.HasNextPage()) { - break - } - } - - return p.Err() -} - -const opListContactFlows = "ListContactFlows" +const opDescribeRoutingProfile = "DescribeRoutingProfile" -// ListContactFlowsRequest generates a "aws/request.Request" representing the -// client's request for the ListContactFlows operation. The "output" return +// DescribeRoutingProfileRequest generates a "aws/request.Request" representing the +// client's request for the DescribeRoutingProfile 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 ListContactFlows for more information on using the ListContactFlows +// See DescribeRoutingProfile for more information on using the DescribeRoutingProfile // 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 ListContactFlowsRequest method. -// req, resp := client.ListContactFlowsRequest(params) +// // Example sending a request using the DescribeRoutingProfileRequest method. +// req, resp := client.DescribeRoutingProfileRequest(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/ListContactFlows -func (c *Connect) ListContactFlowsRequest(input *ListContactFlowsInput) (req *request.Request, output *ListContactFlowsOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/DescribeRoutingProfile +func (c *Connect) DescribeRoutingProfileRequest(input *DescribeRoutingProfileInput) (req *request.Request, output *DescribeRoutingProfileOutput) { op := &request.Operation{ - Name: opListContactFlows, + Name: opDescribeRoutingProfile, HTTPMethod: "GET", - HTTPPath: "/contact-flows-summary/{InstanceId}", - Paginator: &request.Paginator{ - InputTokens: []string{"NextToken"}, - OutputTokens: []string{"NextToken"}, - LimitToken: "MaxResults", - TruncationToken: "", - }, + HTTPPath: "/routing-profiles/{InstanceId}/{RoutingProfileId}", } if input == nil { - input = &ListContactFlowsInput{} + input = &DescribeRoutingProfileInput{} } - output = &ListContactFlowsOutput{} + output = &DescribeRoutingProfileOutput{} req = c.newRequest(op, input, output) return } -// ListContactFlows API operation for Amazon Connect Service. -// -// Provides information about the contact flows for the specified Amazon Connect -// instance. -// -// You can also create and update contact flows using the Amazon Connect Flow -// language (https://docs.aws.amazon.com/connect/latest/adminguide/flow-language.html). +// DescribeRoutingProfile API operation for Amazon Connect Service. // -// For more information about contact flows, see Contact Flows (https://docs.aws.amazon.com/connect/latest/adminguide/concepts-contact-flows.html) -// in the Amazon Connect Administrator Guide. +// Describes the specified routing profile. // // 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 ListContactFlows for usage and error information. +// API operation DescribeRoutingProfile for usage and error information. // // Returned Error Types: // * InvalidRequestException @@ -1816,143 +1807,82 @@ func (c *Connect) ListContactFlowsRequest(input *ListContactFlowsInput) (req *re // * 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/ListContactFlows -func (c *Connect) ListContactFlows(input *ListContactFlowsInput) (*ListContactFlowsOutput, error) { - req, out := c.ListContactFlowsRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/DescribeRoutingProfile +func (c *Connect) DescribeRoutingProfile(input *DescribeRoutingProfileInput) (*DescribeRoutingProfileOutput, error) { + req, out := c.DescribeRoutingProfileRequest(input) return out, req.Send() } -// ListContactFlowsWithContext is the same as ListContactFlows with the addition of +// DescribeRoutingProfileWithContext is the same as DescribeRoutingProfile with the addition of // the ability to pass a context and additional request options. // -// See ListContactFlows for details on how to use this API operation. +// See DescribeRoutingProfile 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) ListContactFlowsWithContext(ctx aws.Context, input *ListContactFlowsInput, opts ...request.Option) (*ListContactFlowsOutput, error) { - req, out := c.ListContactFlowsRequest(input) +func (c *Connect) DescribeRoutingProfileWithContext(ctx aws.Context, input *DescribeRoutingProfileInput, opts ...request.Option) (*DescribeRoutingProfileOutput, error) { + req, out := c.DescribeRoutingProfileRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// 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) -} - -// 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 - }, - } - - for p.Next() { - if !fn(p.Page().(*ListContactFlowsOutput), !p.HasNextPage()) { - break - } - } - - return p.Err() -} - -const opListHoursOfOperations = "ListHoursOfOperations" +const opDescribeUser = "DescribeUser" -// ListHoursOfOperationsRequest generates a "aws/request.Request" representing the -// client's request for the ListHoursOfOperations operation. The "output" return +// DescribeUserRequest generates a "aws/request.Request" representing the +// client's request for the DescribeUser 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 ListHoursOfOperations for more information on using the ListHoursOfOperations +// See DescribeUser for more information on using the DescribeUser // 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 ListHoursOfOperationsRequest method. -// req, resp := client.ListHoursOfOperationsRequest(params) +// // Example sending a request using the DescribeUserRequest method. +// req, resp := client.DescribeUserRequest(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/ListHoursOfOperations -func (c *Connect) ListHoursOfOperationsRequest(input *ListHoursOfOperationsInput) (req *request.Request, output *ListHoursOfOperationsOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/DescribeUser +func (c *Connect) DescribeUserRequest(input *DescribeUserInput) (req *request.Request, output *DescribeUserOutput) { op := &request.Operation{ - Name: opListHoursOfOperations, + Name: opDescribeUser, HTTPMethod: "GET", - HTTPPath: "/hours-of-operations-summary/{InstanceId}", - Paginator: &request.Paginator{ - InputTokens: []string{"NextToken"}, - OutputTokens: []string{"NextToken"}, - LimitToken: "MaxResults", - TruncationToken: "", - }, + HTTPPath: "/users/{InstanceId}/{UserId}", } if input == nil { - input = &ListHoursOfOperationsInput{} + input = &DescribeUserInput{} } - output = &ListHoursOfOperationsOutput{} + output = &DescribeUserOutput{} req = c.newRequest(op, input, output) return } -// ListHoursOfOperations API operation for Amazon Connect Service. -// -// Provides information about the hours of operation for the specified Amazon -// Connect instance. +// DescribeUser API operation for Amazon Connect Service. // -// For more information about hours of operation, see Set the Hours of Operation -// for a Queue (https://docs.aws.amazon.com/connect/latest/adminguide/set-hours-operation.html) -// in the Amazon Connect Administrator Guide. +// Describes the specified user account. You can find the instance ID in the +// console (it’s the final part of the ARN). The console does not display +// the user IDs. Instead, list the users and note the IDs provided in the output. // // 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 ListHoursOfOperations for usage and error information. +// API operation DescribeUser for usage and error information. // // Returned Error Types: // * InvalidRequestException @@ -1970,143 +1900,80 @@ func (c *Connect) ListHoursOfOperationsRequest(input *ListHoursOfOperationsInput // * 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/ListHoursOfOperations -func (c *Connect) ListHoursOfOperations(input *ListHoursOfOperationsInput) (*ListHoursOfOperationsOutput, error) { - req, out := c.ListHoursOfOperationsRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/DescribeUser +func (c *Connect) DescribeUser(input *DescribeUserInput) (*DescribeUserOutput, error) { + req, out := c.DescribeUserRequest(input) return out, req.Send() } -// ListHoursOfOperationsWithContext is the same as ListHoursOfOperations with the addition of +// DescribeUserWithContext is the same as DescribeUser with the addition of // the ability to pass a context and additional request options. // -// See ListHoursOfOperations for details on how to use this API operation. +// See DescribeUser 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) ListHoursOfOperationsWithContext(ctx aws.Context, input *ListHoursOfOperationsInput, opts ...request.Option) (*ListHoursOfOperationsOutput, error) { - req, out := c.ListHoursOfOperationsRequest(input) +func (c *Connect) DescribeUserWithContext(ctx aws.Context, input *DescribeUserInput, opts ...request.Option) (*DescribeUserOutput, error) { + req, out := c.DescribeUserRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// 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) -} - -// 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 - }, - } - - for p.Next() { - if !fn(p.Page().(*ListHoursOfOperationsOutput), !p.HasNextPage()) { - break - } - } - - return p.Err() -} - -const opListPhoneNumbers = "ListPhoneNumbers" +const opDescribeUserHierarchyGroup = "DescribeUserHierarchyGroup" -// ListPhoneNumbersRequest generates a "aws/request.Request" representing the -// client's request for the ListPhoneNumbers operation. The "output" return +// DescribeUserHierarchyGroupRequest generates a "aws/request.Request" representing the +// client's request for the DescribeUserHierarchyGroup 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 ListPhoneNumbers for more information on using the ListPhoneNumbers +// See DescribeUserHierarchyGroup for more information on using the DescribeUserHierarchyGroup // 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 ListPhoneNumbersRequest method. -// req, resp := client.ListPhoneNumbersRequest(params) +// // Example sending a request using the DescribeUserHierarchyGroupRequest method. +// req, resp := client.DescribeUserHierarchyGroupRequest(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/ListPhoneNumbers -func (c *Connect) ListPhoneNumbersRequest(input *ListPhoneNumbersInput) (req *request.Request, output *ListPhoneNumbersOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/DescribeUserHierarchyGroup +func (c *Connect) DescribeUserHierarchyGroupRequest(input *DescribeUserHierarchyGroupInput) (req *request.Request, output *DescribeUserHierarchyGroupOutput) { op := &request.Operation{ - Name: opListPhoneNumbers, + Name: opDescribeUserHierarchyGroup, HTTPMethod: "GET", - HTTPPath: "/phone-numbers-summary/{InstanceId}", - Paginator: &request.Paginator{ - InputTokens: []string{"NextToken"}, - OutputTokens: []string{"NextToken"}, - LimitToken: "MaxResults", - TruncationToken: "", - }, + HTTPPath: "/user-hierarchy-groups/{InstanceId}/{HierarchyGroupId}", } if input == nil { - input = &ListPhoneNumbersInput{} + input = &DescribeUserHierarchyGroupInput{} } - output = &ListPhoneNumbersOutput{} + output = &DescribeUserHierarchyGroupOutput{} req = c.newRequest(op, input, output) return } -// ListPhoneNumbers API operation for Amazon Connect Service. -// -// Provides information about the phone numbers for the specified Amazon Connect -// instance. +// DescribeUserHierarchyGroup API operation for Amazon Connect Service. // -// For more information about phone numbers, see Set Up Phone Numbers for Your -// Contact Center (https://docs.aws.amazon.com/connect/latest/adminguide/contact-center-phone-number.html) -// in the Amazon Connect Administrator Guide. +// 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 // the error. // // See the AWS API reference guide for Amazon Connect Service's -// API operation ListPhoneNumbers for usage and error information. +// API operation DescribeUserHierarchyGroup for usage and error information. // // Returned Error Types: // * InvalidRequestException @@ -2124,138 +1991,80 @@ func (c *Connect) ListPhoneNumbersRequest(input *ListPhoneNumbersInput) (req *re // * 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/ListPhoneNumbers -func (c *Connect) ListPhoneNumbers(input *ListPhoneNumbersInput) (*ListPhoneNumbersOutput, error) { - req, out := c.ListPhoneNumbersRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/DescribeUserHierarchyGroup +func (c *Connect) DescribeUserHierarchyGroup(input *DescribeUserHierarchyGroupInput) (*DescribeUserHierarchyGroupOutput, error) { + req, out := c.DescribeUserHierarchyGroupRequest(input) return out, req.Send() } -// ListPhoneNumbersWithContext is the same as ListPhoneNumbers with the addition of +// DescribeUserHierarchyGroupWithContext is the same as DescribeUserHierarchyGroup with the addition of // the ability to pass a context and additional request options. // -// See ListPhoneNumbers for details on how to use this API operation. +// See DescribeUserHierarchyGroup 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) ListPhoneNumbersWithContext(ctx aws.Context, input *ListPhoneNumbersInput, opts ...request.Option) (*ListPhoneNumbersOutput, error) { - req, out := c.ListPhoneNumbersRequest(input) +func (c *Connect) DescribeUserHierarchyGroupWithContext(ctx aws.Context, input *DescribeUserHierarchyGroupInput, opts ...request.Option) (*DescribeUserHierarchyGroupOutput, error) { + req, out := c.DescribeUserHierarchyGroupRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// 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. +const opDescribeUserHierarchyStructure = "DescribeUserHierarchyStructure" + +// DescribeUserHierarchyStructureRequest generates a "aws/request.Request" representing the +// client's request for the DescribeUserHierarchyStructure operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. // -// See ListPhoneNumbers method for more information on how to use this operation. +// 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. // -// Note: This operation can generate multiple requests to a service. +// See DescribeUserHierarchyStructure for more information on using the DescribeUserHierarchyStructure +// API call, and error handling. // -// // 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 -// }) +// 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. // -func (c *Connect) ListPhoneNumbersPages(input *ListPhoneNumbersInput, fn func(*ListPhoneNumbersOutput, bool) bool) error { - return c.ListPhoneNumbersPagesWithContext(aws.BackgroundContext(), input, fn) -} - -// 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 - }, - } - - for p.Next() { - if !fn(p.Page().(*ListPhoneNumbersOutput), !p.HasNextPage()) { - break - } - } - - return p.Err() -} - -const opListPrompts = "ListPrompts" - -// ListPromptsRequest generates a "aws/request.Request" representing the -// client's request for the ListPrompts 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 ListPrompts for more information on using the ListPrompts -// 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 ListPromptsRequest method. -// req, resp := client.ListPromptsRequest(params) +// // Example sending a request using the DescribeUserHierarchyStructureRequest method. +// req, resp := client.DescribeUserHierarchyStructureRequest(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/ListPrompts -func (c *Connect) ListPromptsRequest(input *ListPromptsInput) (req *request.Request, output *ListPromptsOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/DescribeUserHierarchyStructure +func (c *Connect) DescribeUserHierarchyStructureRequest(input *DescribeUserHierarchyStructureInput) (req *request.Request, output *DescribeUserHierarchyStructureOutput) { op := &request.Operation{ - Name: opListPrompts, + Name: opDescribeUserHierarchyStructure, HTTPMethod: "GET", - HTTPPath: "/prompts-summary/{InstanceId}", - Paginator: &request.Paginator{ - InputTokens: []string{"NextToken"}, - OutputTokens: []string{"NextToken"}, - LimitToken: "MaxResults", - TruncationToken: "", - }, + HTTPPath: "/user-hierarchy-structure/{InstanceId}", } if input == nil { - input = &ListPromptsInput{} + input = &DescribeUserHierarchyStructureInput{} } - output = &ListPromptsOutput{} + output = &DescribeUserHierarchyStructureOutput{} req = c.newRequest(op, input, output) return } -// ListPrompts API operation for Amazon Connect Service. +// DescribeUserHierarchyStructure API operation for Amazon Connect Service. // -// Provides information about the prompts for the specified Amazon Connect instance. +// 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 // the error. // // See the AWS API reference guide for Amazon Connect Service's -// API operation ListPrompts for usage and error information. +// API operation DescribeUserHierarchyStructure for usage and error information. // // Returned Error Types: // * InvalidRequestException @@ -2273,744 +2082,452 @@ func (c *Connect) ListPromptsRequest(input *ListPromptsInput) (req *request.Requ // * 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/ListPrompts -func (c *Connect) ListPrompts(input *ListPromptsInput) (*ListPromptsOutput, error) { - req, out := c.ListPromptsRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/DescribeUserHierarchyStructure +func (c *Connect) DescribeUserHierarchyStructure(input *DescribeUserHierarchyStructureInput) (*DescribeUserHierarchyStructureOutput, error) { + req, out := c.DescribeUserHierarchyStructureRequest(input) return out, req.Send() } -// ListPromptsWithContext is the same as ListPrompts with the addition of +// DescribeUserHierarchyStructureWithContext is the same as DescribeUserHierarchyStructure with the addition of // the ability to pass a context and additional request options. // -// See ListPrompts for details on how to use this API operation. +// See DescribeUserHierarchyStructure 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) ListPromptsWithContext(ctx aws.Context, input *ListPromptsInput, opts ...request.Option) (*ListPromptsOutput, error) { - req, out := c.ListPromptsRequest(input) +func (c *Connect) DescribeUserHierarchyStructureWithContext(ctx aws.Context, input *DescribeUserHierarchyStructureInput, opts ...request.Option) (*DescribeUserHierarchyStructureOutput, error) { + req, out := c.DescribeUserHierarchyStructureRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// ListPromptsPages iterates over the pages of a ListPrompts operation, -// calling the "fn" function with the response data for each page. To stop -// iterating, return false from the fn function. -// -// See ListPrompts 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 ListPrompts operation. -// pageNum := 0 -// err := client.ListPromptsPages(params, -// func(page *connect.ListPromptsOutput, lastPage bool) bool { -// pageNum++ -// fmt.Println(page) -// return pageNum <= 3 -// }) -// -func (c *Connect) ListPromptsPages(input *ListPromptsInput, fn func(*ListPromptsOutput, bool) bool) error { - return c.ListPromptsPagesWithContext(aws.BackgroundContext(), input, fn) -} - -// ListPromptsPagesWithContext same as ListPromptsPages 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) ListPromptsPagesWithContext(ctx aws.Context, input *ListPromptsInput, fn func(*ListPromptsOutput, bool) bool, opts ...request.Option) error { - p := request.Pagination{ - NewRequest: func() (*request.Request, error) { - var inCpy *ListPromptsInput - if input != nil { - tmp := *input - inCpy = &tmp - } - req, _ := c.ListPromptsRequest(inCpy) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return req, nil - }, - } - - for p.Next() { - if !fn(p.Page().(*ListPromptsOutput), !p.HasNextPage()) { - break - } - } - - return p.Err() -} - -const opListQueues = "ListQueues" +const opDisassociateApprovedOrigin = "DisassociateApprovedOrigin" -// ListQueuesRequest generates a "aws/request.Request" representing the -// client's request for the ListQueues operation. The "output" return +// DisassociateApprovedOriginRequest generates a "aws/request.Request" representing the +// client's request for the DisassociateApprovedOrigin 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 ListQueues for more information on using the ListQueues +// See DisassociateApprovedOrigin for more information on using the DisassociateApprovedOrigin // 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 ListQueuesRequest method. -// req, resp := client.ListQueuesRequest(params) +// // Example sending a request using the DisassociateApprovedOriginRequest method. +// req, resp := client.DisassociateApprovedOriginRequest(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/ListQueues -func (c *Connect) ListQueuesRequest(input *ListQueuesInput) (req *request.Request, output *ListQueuesOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/DisassociateApprovedOrigin +func (c *Connect) DisassociateApprovedOriginRequest(input *DisassociateApprovedOriginInput) (req *request.Request, output *DisassociateApprovedOriginOutput) { op := &request.Operation{ - Name: opListQueues, - HTTPMethod: "GET", - HTTPPath: "/queues-summary/{InstanceId}", - Paginator: &request.Paginator{ - InputTokens: []string{"NextToken"}, - OutputTokens: []string{"NextToken"}, - LimitToken: "MaxResults", - TruncationToken: "", - }, + Name: opDisassociateApprovedOrigin, + HTTPMethod: "DELETE", + HTTPPath: "/instance/{InstanceId}/approved-origin", } if input == nil { - input = &ListQueuesInput{} + input = &DisassociateApprovedOriginInput{} } - output = &ListQueuesOutput{} + output = &DisassociateApprovedOriginOutput{} req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// ListQueues API operation for Amazon Connect Service. -// -// Provides information about the queues for the specified Amazon Connect instance. +// DisassociateApprovedOrigin API operation for Amazon Connect Service. // -// For more information about queues, see Queues: Standard and Agent (https://docs.aws.amazon.com/connect/latest/adminguide/concepts-queues-standard-and-agent.html) -// in the Amazon Connect Administrator Guide. +// Revokes access to integrated applications from Amazon Connect. // // 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 ListQueues for usage and error information. +// API operation DisassociateApprovedOrigin for usage and error information. // // Returned Error Types: +// * ResourceNotFoundException +// The specified resource was not found. +// +// * InternalServiceException +// Request processing failed due to an error or failure with the service. +// // * InvalidRequestException // The request is not valid. // // * InvalidParameterException // One or more of the specified parameters are not valid. // -// * ResourceNotFoundException -// The specified resource was not found. -// // * ThrottlingException // The throttling limit has been exceeded. // -// * InternalServiceException -// Request processing failed due to an error or failure with the service. -// -// 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) +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/DisassociateApprovedOrigin +func (c *Connect) DisassociateApprovedOrigin(input *DisassociateApprovedOriginInput) (*DisassociateApprovedOriginOutput, error) { + req, out := c.DisassociateApprovedOriginRequest(input) return out, req.Send() } -// ListQueuesWithContext is the same as ListQueues with the addition of +// DisassociateApprovedOriginWithContext is the same as DisassociateApprovedOrigin with the addition of // the ability to pass a context and additional request options. // -// See ListQueues for details on how to use this API operation. +// See DisassociateApprovedOrigin 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) ListQueuesWithContext(ctx aws.Context, input *ListQueuesInput, opts ...request.Option) (*ListQueuesOutput, error) { - req, out := c.ListQueuesRequest(input) +func (c *Connect) DisassociateApprovedOriginWithContext(ctx aws.Context, input *DisassociateApprovedOriginInput, opts ...request.Option) (*DisassociateApprovedOriginOutput, error) { + req, out := c.DisassociateApprovedOriginRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// 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 ListQueues 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 ListQueues operation. -// pageNum := 0 -// err := client.ListQueuesPages(params, -// func(page *connect.ListQueuesOutput, lastPage bool) bool { -// pageNum++ -// fmt.Println(page) -// return pageNum <= 3 -// }) -// -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) 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 - }, - } - - for p.Next() { - if !fn(p.Page().(*ListQueuesOutput), !p.HasNextPage()) { - break - } - } - - return p.Err() -} - -const opListRoutingProfileQueues = "ListRoutingProfileQueues" +const opDisassociateInstanceStorageConfig = "DisassociateInstanceStorageConfig" -// ListRoutingProfileQueuesRequest generates a "aws/request.Request" representing the -// client's request for the ListRoutingProfileQueues operation. The "output" return +// DisassociateInstanceStorageConfigRequest generates a "aws/request.Request" representing the +// client's request for the DisassociateInstanceStorageConfig 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 ListRoutingProfileQueues for more information on using the ListRoutingProfileQueues +// See DisassociateInstanceStorageConfig for more information on using the DisassociateInstanceStorageConfig // 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 ListRoutingProfileQueuesRequest method. -// req, resp := client.ListRoutingProfileQueuesRequest(params) +// // Example sending a request using the DisassociateInstanceStorageConfigRequest method. +// req, resp := client.DisassociateInstanceStorageConfigRequest(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/ListRoutingProfileQueues -func (c *Connect) ListRoutingProfileQueuesRequest(input *ListRoutingProfileQueuesInput) (req *request.Request, output *ListRoutingProfileQueuesOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/DisassociateInstanceStorageConfig +func (c *Connect) DisassociateInstanceStorageConfigRequest(input *DisassociateInstanceStorageConfigInput) (req *request.Request, output *DisassociateInstanceStorageConfigOutput) { op := &request.Operation{ - Name: opListRoutingProfileQueues, - HTTPMethod: "GET", - HTTPPath: "/routing-profiles/{InstanceId}/{RoutingProfileId}/queues", - Paginator: &request.Paginator{ - InputTokens: []string{"NextToken"}, - OutputTokens: []string{"NextToken"}, - LimitToken: "MaxResults", - TruncationToken: "", - }, + Name: opDisassociateInstanceStorageConfig, + HTTPMethod: "DELETE", + HTTPPath: "/instance/{InstanceId}/storage-config/{AssociationId}", } if input == nil { - input = &ListRoutingProfileQueuesInput{} + input = &DisassociateInstanceStorageConfigInput{} } - output = &ListRoutingProfileQueuesOutput{} + output = &DisassociateInstanceStorageConfigOutput{} req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// ListRoutingProfileQueues API operation for Amazon Connect Service. +// DisassociateInstanceStorageConfig API operation for Amazon Connect Service. // -// List the queues associated with a routing profile. +// Removes the storage type configurations for the specified resource type and +// association ID. // // 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 ListRoutingProfileQueues for usage and error information. +// API operation DisassociateInstanceStorageConfig for usage and error information. // // Returned Error Types: -// * InvalidRequestException -// The request is not valid. +// * ResourceNotFoundException +// The specified resource was not found. +// +// * InternalServiceException +// Request processing failed due to an error or failure with the service. +// +// * InvalidRequestException +// The request is not valid. // // * InvalidParameterException // One or more of the specified parameters are not valid. // -// * ResourceNotFoundException -// The specified resource was not found. -// // * ThrottlingException // The throttling limit has been exceeded. // -// * InternalServiceException -// Request processing failed due to an error or failure with the service. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/ListRoutingProfileQueues -func (c *Connect) ListRoutingProfileQueues(input *ListRoutingProfileQueuesInput) (*ListRoutingProfileQueuesOutput, error) { - req, out := c.ListRoutingProfileQueuesRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/DisassociateInstanceStorageConfig +func (c *Connect) DisassociateInstanceStorageConfig(input *DisassociateInstanceStorageConfigInput) (*DisassociateInstanceStorageConfigOutput, error) { + req, out := c.DisassociateInstanceStorageConfigRequest(input) return out, req.Send() } -// ListRoutingProfileQueuesWithContext is the same as ListRoutingProfileQueues with the addition of +// DisassociateInstanceStorageConfigWithContext is the same as DisassociateInstanceStorageConfig with the addition of // the ability to pass a context and additional request options. // -// See ListRoutingProfileQueues for details on how to use this API operation. +// See DisassociateInstanceStorageConfig 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) ListRoutingProfileQueuesWithContext(ctx aws.Context, input *ListRoutingProfileQueuesInput, opts ...request.Option) (*ListRoutingProfileQueuesOutput, error) { - req, out := c.ListRoutingProfileQueuesRequest(input) +func (c *Connect) DisassociateInstanceStorageConfigWithContext(ctx aws.Context, input *DisassociateInstanceStorageConfigInput, opts ...request.Option) (*DisassociateInstanceStorageConfigOutput, error) { + req, out := c.DisassociateInstanceStorageConfigRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// ListRoutingProfileQueuesPages iterates over the pages of a ListRoutingProfileQueues operation, -// calling the "fn" function with the response data for each page. To stop -// iterating, return false from the fn function. -// -// See ListRoutingProfileQueues 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 ListRoutingProfileQueues operation. -// pageNum := 0 -// err := client.ListRoutingProfileQueuesPages(params, -// func(page *connect.ListRoutingProfileQueuesOutput, lastPage bool) bool { -// pageNum++ -// fmt.Println(page) -// return pageNum <= 3 -// }) -// -func (c *Connect) ListRoutingProfileQueuesPages(input *ListRoutingProfileQueuesInput, fn func(*ListRoutingProfileQueuesOutput, bool) bool) error { - return c.ListRoutingProfileQueuesPagesWithContext(aws.BackgroundContext(), input, fn) -} - -// ListRoutingProfileQueuesPagesWithContext same as ListRoutingProfileQueuesPages 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) ListRoutingProfileQueuesPagesWithContext(ctx aws.Context, input *ListRoutingProfileQueuesInput, fn func(*ListRoutingProfileQueuesOutput, bool) bool, opts ...request.Option) error { - p := request.Pagination{ - NewRequest: func() (*request.Request, error) { - var inCpy *ListRoutingProfileQueuesInput - if input != nil { - tmp := *input - inCpy = &tmp - } - req, _ := c.ListRoutingProfileQueuesRequest(inCpy) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return req, nil - }, - } - - for p.Next() { - if !fn(p.Page().(*ListRoutingProfileQueuesOutput), !p.HasNextPage()) { - break - } - } - - return p.Err() -} - -const opListRoutingProfiles = "ListRoutingProfiles" +const opDisassociateLambdaFunction = "DisassociateLambdaFunction" -// ListRoutingProfilesRequest generates a "aws/request.Request" representing the -// client's request for the ListRoutingProfiles operation. The "output" return +// DisassociateLambdaFunctionRequest generates a "aws/request.Request" representing the +// client's request for the DisassociateLambdaFunction 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 DisassociateLambdaFunction for more information on using the DisassociateLambdaFunction // 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 DisassociateLambdaFunctionRequest method. +// req, resp := client.DisassociateLambdaFunctionRequest(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/DisassociateLambdaFunction +func (c *Connect) DisassociateLambdaFunctionRequest(input *DisassociateLambdaFunctionInput) (req *request.Request, output *DisassociateLambdaFunctionOutput) { op := &request.Operation{ - Name: opListRoutingProfiles, - HTTPMethod: "GET", - HTTPPath: "/routing-profiles-summary/{InstanceId}", - Paginator: &request.Paginator{ - InputTokens: []string{"NextToken"}, - OutputTokens: []string{"NextToken"}, - LimitToken: "MaxResults", - TruncationToken: "", - }, + Name: opDisassociateLambdaFunction, + HTTPMethod: "DELETE", + HTTPPath: "/instance/{InstanceId}/lambda-function", } if input == nil { - input = &ListRoutingProfilesInput{} + input = &DisassociateLambdaFunctionInput{} } - output = &ListRoutingProfilesOutput{} + output = &DisassociateLambdaFunctionOutput{} req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// ListRoutingProfiles API operation for Amazon Connect Service. -// -// Provides summary information about the routing profiles for the specified -// Amazon Connect instance. +// DisassociateLambdaFunction API operation for Amazon Connect Service. // -// For more information about routing profiles, see Routing Profiles (https://docs.aws.amazon.com/connect/latest/adminguide/concepts-routing.html) -// and Create a Routing Profile (https://docs.aws.amazon.com/connect/latest/adminguide/routing-profiles.html) -// in the Amazon Connect Administrator Guide. +// Remove the Lambda function from the drop-down options available in the relevant +// contact flow blocks. // // 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 DisassociateLambdaFunction for usage and error information. // // Returned Error Types: +// * ResourceNotFoundException +// The specified resource was not found. +// +// * InternalServiceException +// Request processing failed due to an error or failure with the service. +// // * InvalidRequestException // The request is not valid. // // * InvalidParameterException // One or more of the specified parameters are not valid. // -// * ResourceNotFoundException -// The specified resource was not found. -// // * ThrottlingException // The throttling limit has been exceeded. // -// * InternalServiceException -// Request processing failed 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/DisassociateLambdaFunction +func (c *Connect) DisassociateLambdaFunction(input *DisassociateLambdaFunctionInput) (*DisassociateLambdaFunctionOutput, error) { + req, out := c.DisassociateLambdaFunctionRequest(input) return out, req.Send() } -// ListRoutingProfilesWithContext is the same as ListRoutingProfiles with the addition of +// DisassociateLambdaFunctionWithContext is the same as DisassociateLambdaFunction 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 DisassociateLambdaFunction 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) DisassociateLambdaFunctionWithContext(ctx aws.Context, input *DisassociateLambdaFunctionInput, opts ...request.Option) (*DisassociateLambdaFunctionOutput, error) { + req, out := c.DisassociateLambdaFunctionRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// 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) -} - -// 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 - }, - } - - for p.Next() { - if !fn(p.Page().(*ListRoutingProfilesOutput), !p.HasNextPage()) { - break - } - } - - return p.Err() -} - -const opListSecurityProfiles = "ListSecurityProfiles" +const opDisassociateLexBot = "DisassociateLexBot" -// ListSecurityProfilesRequest generates a "aws/request.Request" representing the -// client's request for the ListSecurityProfiles operation. The "output" return +// DisassociateLexBotRequest generates a "aws/request.Request" representing the +// client's request for the DisassociateLexBot 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 DisassociateLexBot for more information on using the DisassociateLexBot // 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 DisassociateLexBotRequest method. +// req, resp := client.DisassociateLexBotRequest(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/DisassociateLexBot +func (c *Connect) DisassociateLexBotRequest(input *DisassociateLexBotInput) (req *request.Request, output *DisassociateLexBotOutput) { op := &request.Operation{ - Name: opListSecurityProfiles, - HTTPMethod: "GET", - HTTPPath: "/security-profiles-summary/{InstanceId}", - Paginator: &request.Paginator{ - InputTokens: []string{"NextToken"}, - OutputTokens: []string{"NextToken"}, - LimitToken: "MaxResults", - TruncationToken: "", - }, + Name: opDisassociateLexBot, + HTTPMethod: "DELETE", + HTTPPath: "/instance/{InstanceId}/lex-bot", } if input == nil { - input = &ListSecurityProfilesInput{} + input = &DisassociateLexBotInput{} } - output = &ListSecurityProfilesOutput{} + output = &DisassociateLexBotOutput{} req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// ListSecurityProfiles API operation for Amazon Connect Service. -// -// Provides summary information about the security profiles for the specified -// Amazon Connect instance. +// DisassociateLexBot API operation for Amazon Connect Service. // -// For more information about security profiles, see Security Profiles (https://docs.aws.amazon.com/connect/latest/adminguide/connect-security-profiles.html) -// in the Amazon Connect Administrator Guide. +// Revokes authorization from the specified instance to access the specified +// Amazon Lex bot. // // 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 DisassociateLexBot for usage and error information. // // Returned Error Types: +// * ResourceNotFoundException +// The specified resource was not found. +// +// * InternalServiceException +// Request processing failed due to an error or failure with the service. +// // * InvalidRequestException // The request is not valid. // // * InvalidParameterException // One or more of the specified parameters are not valid. // -// * ResourceNotFoundException -// The specified resource was not found. -// // * ThrottlingException // The throttling limit has been exceeded. // -// * InternalServiceException -// Request processing failed 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/DisassociateLexBot +func (c *Connect) DisassociateLexBot(input *DisassociateLexBotInput) (*DisassociateLexBotOutput, error) { + req, out := c.DisassociateLexBotRequest(input) return out, req.Send() } -// ListSecurityProfilesWithContext is the same as ListSecurityProfiles with the addition of +// DisassociateLexBotWithContext is the same as DisassociateLexBot 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 DisassociateLexBot 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) DisassociateLexBotWithContext(ctx aws.Context, input *DisassociateLexBotInput, opts ...request.Option) (*DisassociateLexBotOutput, error) { + req, out := c.DisassociateLexBotRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// 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. +const opDisassociateRoutingProfileQueues = "DisassociateRoutingProfileQueues" + +// DisassociateRoutingProfileQueuesRequest generates a "aws/request.Request" representing the +// client's request for the DisassociateRoutingProfileQueues operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. // -// See ListSecurityProfiles method for more information on how to use this operation. +// 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. // -// Note: This operation can generate multiple requests to a service. +// See DisassociateRoutingProfileQueues for more information on using the DisassociateRoutingProfileQueues +// API call, and error handling. // -// // 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 -// }) +// 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. // -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 - }, - } - - for p.Next() { - if !fn(p.Page().(*ListSecurityProfilesOutput), !p.HasNextPage()) { - break - } - } - - return p.Err() -} - -const opListTagsForResource = "ListTagsForResource" - -// ListTagsForResourceRequest generates a "aws/request.Request" representing the -// client's request for the ListTagsForResource operation. The "output" return -// value will be populated with the request's response once the request completes -// successfully. -// -// Use "Send" method on the returned Request to send the API call to the service. -// the "output" return value is not valid until after Send returns without error. -// -// See ListTagsForResource for more information on using the ListTagsForResource -// API call, and error handling. -// -// This method is useful when you want to inject custom logic or configuration -// into the SDK's request lifecycle. Such as custom headers, or retry logic. -// -// -// // Example sending a request using the ListTagsForResourceRequest method. -// req, resp := client.ListTagsForResourceRequest(params) +// // Example sending a request using the DisassociateRoutingProfileQueuesRequest method. +// req, resp := client.DisassociateRoutingProfileQueuesRequest(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/ListTagsForResource -func (c *Connect) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req *request.Request, output *ListTagsForResourceOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/DisassociateRoutingProfileQueues +func (c *Connect) DisassociateRoutingProfileQueuesRequest(input *DisassociateRoutingProfileQueuesInput) (req *request.Request, output *DisassociateRoutingProfileQueuesOutput) { op := &request.Operation{ - Name: opListTagsForResource, - HTTPMethod: "GET", - HTTPPath: "/tags/{resourceArn}", + Name: opDisassociateRoutingProfileQueues, + HTTPMethod: "POST", + HTTPPath: "/routing-profiles/{InstanceId}/{RoutingProfileId}/disassociate-queues", } if input == nil { - input = &ListTagsForResourceInput{} + input = &DisassociateRoutingProfileQueuesInput{} } - output = &ListTagsForResourceOutput{} + output = &DisassociateRoutingProfileQueuesOutput{} req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// ListTagsForResource API operation for Amazon Connect Service. -// -// Lists the tags for the specified resource. +// DisassociateRoutingProfileQueues API operation for Amazon Connect Service. // -// For sample policies that use tags, see Amazon Connect Identity-Based Policy -// Examples (https://docs.aws.amazon.com/connect/latest/adminguide/security_iam_id-based-policy-examples.html) -// in the Amazon Connect Administrator Guide. +// Disassociates a set of queues from a routing profile. // // 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 ListTagsForResource for usage and error information. +// API operation DisassociateRoutingProfileQueues for usage and error information. // // Returned Error Types: // * InvalidRequestException @@ -3019,326 +2536,351 @@ func (c *Connect) ListTagsForResourceRequest(input *ListTagsForResourceInput) (r // * InvalidParameterException // One or more of the specified parameters are not valid. // -// * InternalServiceException -// Request processing failed due to an error or failure with the service. -// // * ResourceNotFoundException // The specified resource was not found. // // * ThrottlingException // The throttling limit has been exceeded. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/ListTagsForResource -func (c *Connect) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) { - req, out := c.ListTagsForResourceRequest(input) +// * 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/DisassociateRoutingProfileQueues +func (c *Connect) DisassociateRoutingProfileQueues(input *DisassociateRoutingProfileQueuesInput) (*DisassociateRoutingProfileQueuesOutput, error) { + req, out := c.DisassociateRoutingProfileQueuesRequest(input) return out, req.Send() } -// ListTagsForResourceWithContext is the same as ListTagsForResource with the addition of +// DisassociateRoutingProfileQueuesWithContext is the same as DisassociateRoutingProfileQueues with the addition of // the ability to pass a context and additional request options. // -// See ListTagsForResource for details on how to use this API operation. +// See DisassociateRoutingProfileQueues 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) ListTagsForResourceWithContext(ctx aws.Context, input *ListTagsForResourceInput, opts ...request.Option) (*ListTagsForResourceOutput, error) { - req, out := c.ListTagsForResourceRequest(input) +func (c *Connect) DisassociateRoutingProfileQueuesWithContext(ctx aws.Context, input *DisassociateRoutingProfileQueuesInput, opts ...request.Option) (*DisassociateRoutingProfileQueuesOutput, error) { + req, out := c.DisassociateRoutingProfileQueuesRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opListUserHierarchyGroups = "ListUserHierarchyGroups" +const opDisassociateSecurityKey = "DisassociateSecurityKey" -// ListUserHierarchyGroupsRequest generates a "aws/request.Request" representing the -// client's request for the ListUserHierarchyGroups operation. The "output" return +// DisassociateSecurityKeyRequest generates a "aws/request.Request" representing the +// client's request for the DisassociateSecurityKey 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 DisassociateSecurityKey for more information on using the DisassociateSecurityKey // 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 DisassociateSecurityKeyRequest method. +// req, resp := client.DisassociateSecurityKeyRequest(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/DisassociateSecurityKey +func (c *Connect) DisassociateSecurityKeyRequest(input *DisassociateSecurityKeyInput) (req *request.Request, output *DisassociateSecurityKeyOutput) { op := &request.Operation{ - Name: opListUserHierarchyGroups, - HTTPMethod: "GET", - HTTPPath: "/user-hierarchy-groups-summary/{InstanceId}", - Paginator: &request.Paginator{ - InputTokens: []string{"NextToken"}, - OutputTokens: []string{"NextToken"}, - LimitToken: "MaxResults", - TruncationToken: "", - }, + Name: opDisassociateSecurityKey, + HTTPMethod: "DELETE", + HTTPPath: "/instance/{InstanceId}/security-key/{AssociationId}", } if input == nil { - input = &ListUserHierarchyGroupsInput{} + input = &DisassociateSecurityKeyInput{} } - output = &ListUserHierarchyGroupsOutput{} + output = &DisassociateSecurityKeyOutput{} req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// ListUserHierarchyGroups API operation for Amazon Connect Service. -// -// Provides summary information about the hierarchy groups for the specified -// Amazon Connect instance. +// DisassociateSecurityKey API operation for Amazon Connect Service. // -// For more information about agent hierarchies, see Set Up Agent Hierarchies -// (https://docs.aws.amazon.com/connect/latest/adminguide/agent-hierarchy.html) -// in the Amazon Connect Administrator Guide. +// Deletes the specified security key. // // 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 DisassociateSecurityKey for usage and error information. // // Returned Error Types: +// * ResourceNotFoundException +// The specified resource was not found. +// +// * InternalServiceException +// Request processing failed due to an error or failure with the service. +// // * InvalidRequestException // The request is not valid. // // * InvalidParameterException // One or more of the specified parameters are not valid. // -// * ResourceNotFoundException -// The specified resource was not found. -// // * ThrottlingException // The throttling limit has been exceeded. // -// * InternalServiceException -// Request processing failed 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/DisassociateSecurityKey +func (c *Connect) DisassociateSecurityKey(input *DisassociateSecurityKeyInput) (*DisassociateSecurityKeyOutput, error) { + req, out := c.DisassociateSecurityKeyRequest(input) return out, req.Send() } -// ListUserHierarchyGroupsWithContext is the same as ListUserHierarchyGroups with the addition of +// DisassociateSecurityKeyWithContext is the same as DisassociateSecurityKey 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 DisassociateSecurityKey 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) DisassociateSecurityKeyWithContext(ctx aws.Context, input *DisassociateSecurityKeyInput, opts ...request.Option) (*DisassociateSecurityKeyOutput, error) { + req, out := c.DisassociateSecurityKeyRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// 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) -} - -// 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 - }, - } - - for p.Next() { - if !fn(p.Page().(*ListUserHierarchyGroupsOutput), !p.HasNextPage()) { - break - } - } - - return p.Err() -} - -const opListUsers = "ListUsers" +const opGetContactAttributes = "GetContactAttributes" -// ListUsersRequest generates a "aws/request.Request" representing the -// client's request for the ListUsers operation. The "output" return +// GetContactAttributesRequest generates a "aws/request.Request" representing the +// client's request for the GetContactAttributes 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 GetContactAttributes for more information on using the GetContactAttributes // 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 GetContactAttributesRequest method. +// req, resp := client.GetContactAttributesRequest(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/GetContactAttributes +func (c *Connect) GetContactAttributesRequest(input *GetContactAttributesInput) (req *request.Request, output *GetContactAttributesOutput) { op := &request.Operation{ - Name: opListUsers, + Name: opGetContactAttributes, HTTPMethod: "GET", - HTTPPath: "/users-summary/{InstanceId}", - Paginator: &request.Paginator{ - InputTokens: []string{"NextToken"}, - OutputTokens: []string{"NextToken"}, - LimitToken: "MaxResults", - TruncationToken: "", - }, + HTTPPath: "/contact/attributes/{InstanceId}/{InitialContactId}", } if input == nil { - input = &ListUsersInput{} + input = &GetContactAttributesInput{} } - output = &ListUsersOutput{} + output = &GetContactAttributesOutput{} req = c.newRequest(op, input, output) return } -// ListUsers API operation for Amazon Connect Service. +// GetContactAttributes API operation for Amazon Connect Service. // -// Provides summary information about the users for the specified Amazon Connect -// instance. +// 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 // the error. // // See the AWS API reference guide for Amazon Connect Service's -// API operation ListUsers for usage and error information. +// API operation GetContactAttributes for usage and error information. // // Returned Error Types: // * InvalidRequestException // The request is not valid. // -// * InvalidParameterException -// One or more of the specified parameters are not valid. -// // * ResourceNotFoundException // The specified resource was not found. // -// * ThrottlingException -// The throttling limit has been exceeded. -// // * InternalServiceException // Request processing failed 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/GetContactAttributes +func (c *Connect) GetContactAttributes(input *GetContactAttributesInput) (*GetContactAttributesOutput, error) { + req, out := c.GetContactAttributesRequest(input) return out, req.Send() } -// ListUsersWithContext is the same as ListUsers with the addition of +// GetContactAttributesWithContext is the same as GetContactAttributes 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 GetContactAttributes 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) GetContactAttributesWithContext(ctx aws.Context, input *GetContactAttributesInput, opts ...request.Option) (*GetContactAttributesOutput, error) { + req, out := c.GetContactAttributesRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// 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. +const opGetCurrentMetricData = "GetCurrentMetricData" + +// GetCurrentMetricDataRequest generates a "aws/request.Request" representing the +// client's request for the GetCurrentMetricData operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. // -// See ListUsers method for more information on how to use this operation. +// 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 GetCurrentMetricData for more information on using the GetCurrentMetricData +// 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 GetCurrentMetricDataRequest method. +// req, resp := client.GetCurrentMetricDataRequest(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/GetCurrentMetricData +func (c *Connect) GetCurrentMetricDataRequest(input *GetCurrentMetricDataInput) (req *request.Request, output *GetCurrentMetricDataOutput) { + op := &request.Operation{ + Name: opGetCurrentMetricData, + HTTPMethod: "POST", + HTTPPath: "/metrics/current/{InstanceId}", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &GetCurrentMetricDataInput{} + } + + output = &GetCurrentMetricDataOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetCurrentMetricData API operation for Amazon Connect Service. +// +// Gets the real-time metric data from the specified Amazon Connect instance. +// +// For a description of each metric, see Real-time Metrics Definitions (https://docs.aws.amazon.com/connect/latest/adminguide/real-time-metrics-definitions.html) +// in the Amazon Connect Administrator Guide. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Connect Service's +// API operation GetCurrentMetricData for usage and error information. +// +// Returned Error Types: +// * InvalidRequestException +// The request is not valid. +// +// * InvalidParameterException +// One or more of the specified parameters are not valid. +// +// * InternalServiceException +// Request processing failed due to an error or failure with the service. +// +// * ThrottlingException +// The throttling limit has been exceeded. +// +// * ResourceNotFoundException +// The specified resource was not found. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/GetCurrentMetricData +func (c *Connect) GetCurrentMetricData(input *GetCurrentMetricDataInput) (*GetCurrentMetricDataOutput, error) { + req, out := c.GetCurrentMetricDataRequest(input) + return out, req.Send() +} + +// GetCurrentMetricDataWithContext is the same as GetCurrentMetricData with the addition of +// the ability to pass a context and additional request options. +// +// See GetCurrentMetricData 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) GetCurrentMetricDataWithContext(ctx aws.Context, input *GetCurrentMetricDataInput, opts ...request.Option) (*GetCurrentMetricDataOutput, error) { + req, out := c.GetCurrentMetricDataRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// GetCurrentMetricDataPages iterates over the pages of a GetCurrentMetricData operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See GetCurrentMetricData 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. +// // Example iterating over at most 3 pages of a GetCurrentMetricData operation. // pageNum := 0 -// err := client.ListUsersPages(params, -// func(page *connect.ListUsersOutput, lastPage bool) bool { +// err := client.GetCurrentMetricDataPages(params, +// func(page *connect.GetCurrentMetricDataOutput, 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) +func (c *Connect) GetCurrentMetricDataPages(input *GetCurrentMetricDataInput, fn func(*GetCurrentMetricDataOutput, bool) bool) error { + return c.GetCurrentMetricDataPagesWithContext(aws.BackgroundContext(), input, fn) } -// ListUsersPagesWithContext same as ListUsersPages except +// GetCurrentMetricDataPagesWithContext same as GetCurrentMetricDataPages 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 { +func (c *Connect) GetCurrentMetricDataPagesWithContext(ctx aws.Context, input *GetCurrentMetricDataInput, fn func(*GetCurrentMetricDataOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { - var inCpy *ListUsersInput + var inCpy *GetCurrentMetricDataInput if input != nil { tmp := *input inCpy = &tmp } - req, _ := c.ListUsersRequest(inCpy) + req, _ := c.GetCurrentMetricDataRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil @@ -3346,7 +2888,7 @@ func (c *Connect) ListUsersPagesWithContext(ctx aws.Context, input *ListUsersInp } for p.Next() { - if !fn(p.Page().(*ListUsersOutput), !p.HasNextPage()) { + if !fn(p.Page().(*GetCurrentMetricDataOutput), !p.HasNextPage()) { break } } @@ -3354,158 +2896,154 @@ func (c *Connect) ListUsersPagesWithContext(ctx aws.Context, input *ListUsersInp return p.Err() } -const opResumeContactRecording = "ResumeContactRecording" +const opGetFederationToken = "GetFederationToken" -// ResumeContactRecordingRequest generates a "aws/request.Request" representing the -// client's request for the ResumeContactRecording operation. The "output" return +// GetFederationTokenRequest generates a "aws/request.Request" representing the +// client's request for the GetFederationToken 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 ResumeContactRecording for more information on using the ResumeContactRecording +// See GetFederationToken for more information on using the GetFederationToken // 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 ResumeContactRecordingRequest method. -// req, resp := client.ResumeContactRecordingRequest(params) +// // Example sending a request using the GetFederationTokenRequest method. +// req, resp := client.GetFederationTokenRequest(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/ResumeContactRecording -func (c *Connect) ResumeContactRecordingRequest(input *ResumeContactRecordingInput) (req *request.Request, output *ResumeContactRecordingOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/GetFederationToken +func (c *Connect) GetFederationTokenRequest(input *GetFederationTokenInput) (req *request.Request, output *GetFederationTokenOutput) { op := &request.Operation{ - Name: opResumeContactRecording, - HTTPMethod: "POST", - HTTPPath: "/contact/resume-recording", + Name: opGetFederationToken, + HTTPMethod: "GET", + HTTPPath: "/user/federate/{InstanceId}", } if input == nil { - input = &ResumeContactRecordingInput{} + input = &GetFederationTokenInput{} } - output = &ResumeContactRecordingOutput{} + output = &GetFederationTokenOutput{} req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// ResumeContactRecording API operation for Amazon Connect Service. -// -// When a contact is being recorded, and the recording has been suspended using -// SuspendContactRecording, this API resumes recording the call. +// GetFederationToken API operation for Amazon Connect Service. // -// Only voice recordings are supported at this time. +// Retrieves a token for federation. // // 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 ResumeContactRecording for usage and error information. +// API operation GetFederationToken for usage and error information. // // Returned Error Types: // * InvalidRequestException // The request is not valid. // +// * InvalidParameterException +// One or more of the specified parameters are not valid. +// // * ResourceNotFoundException // The specified resource was not found. // +// * UserNotFoundException +// No user with the specified credentials was found in the Amazon Connect instance. +// // * 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/ResumeContactRecording -func (c *Connect) ResumeContactRecording(input *ResumeContactRecordingInput) (*ResumeContactRecordingOutput, error) { - req, out := c.ResumeContactRecordingRequest(input) +// * DuplicateResourceException +// 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) { + req, out := c.GetFederationTokenRequest(input) return out, req.Send() } -// ResumeContactRecordingWithContext is the same as ResumeContactRecording with the addition of +// GetFederationTokenWithContext is the same as GetFederationToken with the addition of // the ability to pass a context and additional request options. // -// See ResumeContactRecording for details on how to use this API operation. +// See GetFederationToken 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) ResumeContactRecordingWithContext(ctx aws.Context, input *ResumeContactRecordingInput, opts ...request.Option) (*ResumeContactRecordingOutput, error) { - req, out := c.ResumeContactRecordingRequest(input) +func (c *Connect) GetFederationTokenWithContext(ctx aws.Context, input *GetFederationTokenInput, opts ...request.Option) (*GetFederationTokenOutput, error) { + req, out := c.GetFederationTokenRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opStartChatContact = "StartChatContact" +const opGetMetricData = "GetMetricData" -// StartChatContactRequest generates a "aws/request.Request" representing the -// client's request for the StartChatContact operation. The "output" return +// GetMetricDataRequest generates a "aws/request.Request" representing the +// client's request for the GetMetricData 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 StartChatContact for more information on using the StartChatContact +// See GetMetricData for more information on using the GetMetricData // 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 StartChatContactRequest method. -// req, resp := client.StartChatContactRequest(params) +// // Example sending a request using the GetMetricDataRequest method. +// req, resp := client.GetMetricDataRequest(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/StartChatContact -func (c *Connect) StartChatContactRequest(input *StartChatContactInput) (req *request.Request, output *StartChatContactOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/GetMetricData +func (c *Connect) GetMetricDataRequest(input *GetMetricDataInput) (req *request.Request, output *GetMetricDataOutput) { op := &request.Operation{ - Name: opStartChatContact, - HTTPMethod: "PUT", - HTTPPath: "/contact/chat", + Name: opGetMetricData, + HTTPMethod: "POST", + HTTPPath: "/metrics/historical/{InstanceId}", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, } if input == nil { - input = &StartChatContactInput{} + input = &GetMetricDataInput{} } - output = &StartChatContactOutput{} + output = &GetMetricDataOutput{} req = c.newRequest(op, input, output) return } -// StartChatContact API operation for Amazon Connect Service. -// -// Initiates a contact flow to start a new chat for the customer. Response of -// this API provides a token required to obtain credentials from the CreateParticipantConnection -// (https://docs.aws.amazon.com/connect-participant/latest/APIReference/API_CreateParticipantConnection.html) -// API in the Amazon Connect Participant Service. -// -// When a new chat contact is successfully created, clients need to subscribe -// to the participant’s connection for the created chat within 5 minutes. -// This is achieved by invoking CreateParticipantConnection (https://docs.aws.amazon.com/connect-participant/latest/APIReference/API_CreateParticipantConnection.html) -// with WEBSOCKET and CONNECTION_CREDENTIALS. -// -// A 429 error occurs in two situations: -// -// * API rate limit is exceeded. API TPS throttling returns a TooManyRequests -// exception from the API Gateway. +// GetMetricData API operation for Amazon Connect Service. // -// * The quota for concurrent active chats (https://docs.aws.amazon.com/connect/latest/adminguide/amazon-connect-service-limits.html) -// is exceeded. Active chat throttling returns a LimitExceededException. +// Gets historical metric data from the specified Amazon Connect instance. // -// For more information about how chat works, see Chat (https://docs.aws.amazon.com/connect/latest/adminguide/chat.html) +// For a description of each historical metric, see Historical Metrics Definitions +// (https://docs.aws.amazon.com/connect/latest/adminguide/historical-metrics-definitions.html) // in the Amazon Connect Administrator Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -3513,7 +3051,7 @@ func (c *Connect) StartChatContactRequest(input *StartChatContactInput) (req *re // the error. // // See the AWS API reference guide for Amazon Connect Service's -// API operation StartChatContact for usage and error information. +// API operation GetMetricData for usage and error information. // // Returned Error Types: // * InvalidRequestException @@ -3522,195 +3060,295 @@ func (c *Connect) StartChatContactRequest(input *StartChatContactInput) (req *re // * InvalidParameterException // One or more of the specified parameters are not valid. // -// * ResourceNotFoundException -// The specified resource was not found. -// // * InternalServiceException // Request processing failed due to an error or failure with the service. // -// * LimitExceededException -// The allowed limit for the resource has been exceeded. +// * ThrottlingException +// The throttling limit has been exceeded. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/StartChatContact -func (c *Connect) StartChatContact(input *StartChatContactInput) (*StartChatContactOutput, error) { - req, out := c.StartChatContactRequest(input) +// * ResourceNotFoundException +// The specified resource was not found. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/GetMetricData +func (c *Connect) GetMetricData(input *GetMetricDataInput) (*GetMetricDataOutput, error) { + req, out := c.GetMetricDataRequest(input) return out, req.Send() } -// StartChatContactWithContext is the same as StartChatContact with the addition of +// GetMetricDataWithContext is the same as GetMetricData with the addition of // the ability to pass a context and additional request options. // -// See StartChatContact for details on how to use this API operation. +// See GetMetricData 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) StartChatContactWithContext(ctx aws.Context, input *StartChatContactInput, opts ...request.Option) (*StartChatContactOutput, error) { - req, out := c.StartChatContactRequest(input) +func (c *Connect) GetMetricDataWithContext(ctx aws.Context, input *GetMetricDataInput, opts ...request.Option) (*GetMetricDataOutput, error) { + req, out := c.GetMetricDataRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opStartContactRecording = "StartContactRecording" +// GetMetricDataPages iterates over the pages of a GetMetricData operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See GetMetricData 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 GetMetricData operation. +// pageNum := 0 +// err := client.GetMetricDataPages(params, +// func(page *connect.GetMetricDataOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *Connect) GetMetricDataPages(input *GetMetricDataInput, fn func(*GetMetricDataOutput, bool) bool) error { + return c.GetMetricDataPagesWithContext(aws.BackgroundContext(), input, fn) +} -// StartContactRecordingRequest generates a "aws/request.Request" representing the -// client's request for the StartContactRecording operation. The "output" return +// GetMetricDataPagesWithContext same as GetMetricDataPages 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) GetMetricDataPagesWithContext(ctx aws.Context, input *GetMetricDataInput, fn func(*GetMetricDataOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *GetMetricDataInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.GetMetricDataRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*GetMetricDataOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opListApprovedOrigins = "ListApprovedOrigins" + +// ListApprovedOriginsRequest generates a "aws/request.Request" representing the +// client's request for the ListApprovedOrigins 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 StartContactRecording for more information on using the StartContactRecording +// See ListApprovedOrigins for more information on using the ListApprovedOrigins // 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 StartContactRecordingRequest method. -// req, resp := client.StartContactRecordingRequest(params) +// // Example sending a request using the ListApprovedOriginsRequest method. +// req, resp := client.ListApprovedOriginsRequest(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/StartContactRecording -func (c *Connect) StartContactRecordingRequest(input *StartContactRecordingInput) (req *request.Request, output *StartContactRecordingOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/ListApprovedOrigins +func (c *Connect) ListApprovedOriginsRequest(input *ListApprovedOriginsInput) (req *request.Request, output *ListApprovedOriginsOutput) { op := &request.Operation{ - Name: opStartContactRecording, - HTTPMethod: "POST", - HTTPPath: "/contact/start-recording", + Name: opListApprovedOrigins, + HTTPMethod: "GET", + HTTPPath: "/instance/{InstanceId}/approved-origins", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, } if input == nil { - input = &StartContactRecordingInput{} + input = &ListApprovedOriginsInput{} } - output = &StartContactRecordingOutput{} + output = &ListApprovedOriginsOutput{} req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// StartContactRecording API operation for Amazon Connect Service. -// -// This API starts recording the contact when the agent joins the call. StartContactRecording -// is a one-time action. For example, if you use StopContactRecording to stop -// recording an ongoing call, you can't use StartContactRecording to restart -// it. For scenarios where the recording has started and you want to suspend -// and resume it, such as when collecting sensitive information (for example, -// a credit card number), use SuspendContactRecording and ResumeContactRecording. -// -// You can use this API to override the recording behavior configured in the -// Set recording behavior (https://docs.aws.amazon.com/connect/latest/adminguide/set-recording-behavior.html) -// block. +// ListApprovedOrigins API operation for Amazon Connect Service. // -// Only voice recordings are supported at this time. +// Returns a paginated list of all approved origins associated with the 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 StartContactRecording for usage and error information. +// API operation ListApprovedOrigins for usage and error information. // // Returned Error Types: +// * ResourceNotFoundException +// The specified resource was not found. +// +// * InternalServiceException +// Request processing failed due to an error or failure with the service. +// // * InvalidRequestException // The request is not valid. // // * InvalidParameterException // One or more of the specified parameters are not valid. // -// * ResourceNotFoundException -// The specified resource was not found. -// -// * InternalServiceException -// Request processing failed due to an error or failure with the service. +// * ThrottlingException +// The throttling limit has been exceeded. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/StartContactRecording -func (c *Connect) StartContactRecording(input *StartContactRecordingInput) (*StartContactRecordingOutput, error) { - req, out := c.StartContactRecordingRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/ListApprovedOrigins +func (c *Connect) ListApprovedOrigins(input *ListApprovedOriginsInput) (*ListApprovedOriginsOutput, error) { + req, out := c.ListApprovedOriginsRequest(input) return out, req.Send() } -// StartContactRecordingWithContext is the same as StartContactRecording with the addition of +// ListApprovedOriginsWithContext is the same as ListApprovedOrigins with the addition of // the ability to pass a context and additional request options. // -// See StartContactRecording for details on how to use this API operation. +// See ListApprovedOrigins 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) StartContactRecordingWithContext(ctx aws.Context, input *StartContactRecordingInput, opts ...request.Option) (*StartContactRecordingOutput, error) { - req, out := c.StartContactRecordingRequest(input) +func (c *Connect) ListApprovedOriginsWithContext(ctx aws.Context, input *ListApprovedOriginsInput, opts ...request.Option) (*ListApprovedOriginsOutput, error) { + req, out := c.ListApprovedOriginsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opStartOutboundVoiceContact = "StartOutboundVoiceContact" +// ListApprovedOriginsPages iterates over the pages of a ListApprovedOrigins operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListApprovedOrigins 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 ListApprovedOrigins operation. +// pageNum := 0 +// err := client.ListApprovedOriginsPages(params, +// func(page *connect.ListApprovedOriginsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *Connect) ListApprovedOriginsPages(input *ListApprovedOriginsInput, fn func(*ListApprovedOriginsOutput, bool) bool) error { + return c.ListApprovedOriginsPagesWithContext(aws.BackgroundContext(), input, fn) +} -// StartOutboundVoiceContactRequest generates a "aws/request.Request" representing the -// client's request for the StartOutboundVoiceContact operation. The "output" return +// ListApprovedOriginsPagesWithContext same as ListApprovedOriginsPages 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) ListApprovedOriginsPagesWithContext(ctx aws.Context, input *ListApprovedOriginsInput, fn func(*ListApprovedOriginsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListApprovedOriginsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListApprovedOriginsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListApprovedOriginsOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opListContactFlows = "ListContactFlows" + +// 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 StartOutboundVoiceContact for more information on using the StartOutboundVoiceContact +// 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 StartOutboundVoiceContactRequest method. -// req, resp := client.StartOutboundVoiceContactRequest(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/StartOutboundVoiceContact -func (c *Connect) StartOutboundVoiceContactRequest(input *StartOutboundVoiceContactInput) (req *request.Request, output *StartOutboundVoiceContactOutput) { +// 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: opStartOutboundVoiceContact, - HTTPMethod: "PUT", - HTTPPath: "/contact/outbound-voice", + Name: opListContactFlows, + HTTPMethod: "GET", + HTTPPath: "/contact-flows-summary/{InstanceId}", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, } if input == nil { - input = &StartOutboundVoiceContactInput{} + input = &ListContactFlowsInput{} } - output = &StartOutboundVoiceContactOutput{} + output = &ListContactFlowsOutput{} req = c.newRequest(op, input, output) return } -// StartOutboundVoiceContact API operation for Amazon Connect Service. -// -// This API places an outbound call to a contact, and then initiates the contact -// flow. It performs the actions in the contact flow that's specified (in ContactFlowId). +// ListContactFlows API operation for Amazon Connect Service. // -// Agents are not involved in initiating the outbound API (that is, dialing -// the contact). If the contact flow places an outbound call to a contact, and -// then puts the contact in queue, that's when the call is routed to the agent, -// like any other inbound case. +// Provides information about the contact flows for the specified Amazon Connect +// instance. // -// There is a 60 second dialing timeout for this operation. If the call is not -// connected after 60 seconds, it fails. +// You can also create and update contact flows using the Amazon Connect Flow +// language (https://docs.aws.amazon.com/connect/latest/adminguide/flow-language.html). // -// UK numbers with a 447 prefix are not allowed by default. Before you can dial -// these UK mobile numbers, you must submit a service quota increase request. -// For more information, see Amazon Connect Service Quotas (https://docs.aws.amazon.com/connect/latest/adminguide/amazon-connect-service-limits.html) +// For more information about contact flows, see Contact Flows (https://docs.aws.amazon.com/connect/latest/adminguide/concepts-contact-flows.html) // in the Amazon Connect Administrator Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -3718,7 +3356,7 @@ func (c *Connect) StartOutboundVoiceContactRequest(input *StartOutboundVoiceCont // the error. // // See the AWS API reference guide for Amazon Connect Service's -// API operation StartOutboundVoiceContact for usage and error information. +// API operation ListContactFlows for usage and error information. // // Returned Error Types: // * InvalidRequestException @@ -3730,682 +3368,1050 @@ func (c *Connect) StartOutboundVoiceContactRequest(input *StartOutboundVoiceCont // * ResourceNotFoundException // The specified resource was not found. // +// * ThrottlingException +// The throttling limit has been exceeded. +// // * InternalServiceException // Request processing failed due to an error or failure with the service. // -// * LimitExceededException -// The allowed limit for the resource has been exceeded. -// -// * DestinationNotAllowedException -// Outbound calls to the destination number are not allowed. -// -// * 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) +// 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() } -// StartOutboundVoiceContactWithContext is the same as StartOutboundVoiceContact 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 StartOutboundVoiceContact 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) StartOutboundVoiceContactWithContext(ctx aws.Context, input *StartOutboundVoiceContactInput, opts ...request.Option) (*StartOutboundVoiceContactOutput, error) { - req, out := c.StartOutboundVoiceContactRequest(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 opStopContact = "StopContact" - -// 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. +// 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 StopContact for more information on using the StopContact -// API call, and error handling. +// See ListContactFlows 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 ListContactFlows operation. +// pageNum := 0 +// err := client.ListContactFlowsPages(params, +// func(page *connect.ListContactFlowsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) // -// // Example sending a request using the StopContactRequest method. -// req, resp := client.StopContactRequest(params) +func (c *Connect) ListContactFlowsPages(input *ListContactFlowsInput, fn func(*ListContactFlowsOutput, bool) bool) error { + return c.ListContactFlowsPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// 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 + }, + } + + for p.Next() { + if !fn(p.Page().(*ListContactFlowsOutput), !p.HasNextPage()) { + break + } + } + + 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 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 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/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/ListHoursOfOperations +func (c *Connect) ListHoursOfOperationsRequest(input *ListHoursOfOperationsInput) (req *request.Request, output *ListHoursOfOperationsOutput) { op := &request.Operation{ - Name: opStopContact, - HTTPMethod: "POST", - HTTPPath: "/contact/stop", + Name: opListHoursOfOperations, + HTTPMethod: "GET", + HTTPPath: "/hours-of-operations-summary/{InstanceId}", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, } if input == nil { - input = &StopContactInput{} + input = &ListHoursOfOperationsInput{} } - output = &StopContactOutput{} + output = &ListHoursOfOperationsOutput{} req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// StopContact API operation for Amazon Connect Service. +// ListHoursOfOperations API operation for Amazon Connect Service. // -// Ends the specified contact. +// Provides information about the hours of operation for the specified Amazon +// Connect instance. +// +// For more information about hours of operation, see Set the Hours of Operation +// for a Queue (https://docs.aws.amazon.com/connect/latest/adminguide/set-hours-operation.html) +// in the Amazon Connect Administrator Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Connect Service's -// API operation StopContact for usage and error information. +// API operation ListHoursOfOperations for usage and error information. // // Returned Error Types: // * InvalidRequestException // The request is not valid. // -// * ContactNotFoundException -// The contact with the specified ID is not active or does not exist. -// // * InvalidParameterException // One or more of the specified parameters are not valid. // // * ResourceNotFoundException // The specified resource was not found. // +// * ThrottlingException +// The throttling limit has been exceeded. +// // * InternalServiceException // Request processing failed 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/ListHoursOfOperations +func (c *Connect) ListHoursOfOperations(input *ListHoursOfOperationsInput) (*ListHoursOfOperationsOutput, error) { + req, out := c.ListHoursOfOperationsRequest(input) return out, req.Send() } -// StopContactWithContext is the same as StopContact 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 StopContact 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) StopContactWithContext(ctx aws.Context, input *StopContactInput, opts ...request.Option) (*StopContactOutput, error) { - req, out := c.StopContactRequest(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 opStopContactRecording = "StopContactRecording" +// 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) +} -// StopContactRecordingRequest generates a "aws/request.Request" representing the -// client's request for the StopContactRecording 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 + }, + } + + for p.Next() { + if !fn(p.Page().(*ListHoursOfOperationsOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opListInstanceAttributes = "ListInstanceAttributes" + +// ListInstanceAttributesRequest generates a "aws/request.Request" representing the +// client's request for the ListInstanceAttributes 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 StopContactRecording for more information on using the StopContactRecording +// See ListInstanceAttributes for more information on using the ListInstanceAttributes // 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 StopContactRecordingRequest method. -// req, resp := client.StopContactRecordingRequest(params) +// // Example sending a request using the ListInstanceAttributesRequest method. +// req, resp := client.ListInstanceAttributesRequest(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/StopContactRecording -func (c *Connect) StopContactRecordingRequest(input *StopContactRecordingInput) (req *request.Request, output *StopContactRecordingOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/ListInstanceAttributes +func (c *Connect) ListInstanceAttributesRequest(input *ListInstanceAttributesInput) (req *request.Request, output *ListInstanceAttributesOutput) { op := &request.Operation{ - Name: opStopContactRecording, - HTTPMethod: "POST", - HTTPPath: "/contact/stop-recording", + Name: opListInstanceAttributes, + HTTPMethod: "GET", + HTTPPath: "/instance/{InstanceId}/attributes", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, } if input == nil { - input = &StopContactRecordingInput{} + input = &ListInstanceAttributesInput{} } - output = &StopContactRecordingOutput{} + output = &ListInstanceAttributesOutput{} req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// StopContactRecording API operation for Amazon Connect Service. -// -// When a contact is being recorded, this API stops recording the call. StopContactRecording -// is a one-time action. If you use StopContactRecording to stop recording an -// ongoing call, you can't use StartContactRecording to restart it. For scenarios -// where the recording has started and you want to suspend it for sensitive -// information (for example, to collect a credit card number), and then restart -// it, use SuspendContactRecording and ResumeContactRecording. +// ListInstanceAttributes API operation for Amazon Connect Service. // -// Only voice recordings are supported at this time. +// Returns a paginated list of all attribute types for the given 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 StopContactRecording for usage and error information. +// API operation ListInstanceAttributes for usage and error information. // // Returned Error Types: -// * InvalidRequestException -// The request is not valid. -// // * ResourceNotFoundException // The specified resource was not found. // // * 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/StopContactRecording -func (c *Connect) StopContactRecording(input *StopContactRecordingInput) (*StopContactRecordingOutput, error) { - req, out := c.StopContactRecordingRequest(input) +// * InvalidRequestException +// The request is not valid. +// +// * InvalidParameterException +// One or more of the specified parameters are not valid. +// +// * ThrottlingException +// The throttling limit has been exceeded. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/ListInstanceAttributes +func (c *Connect) ListInstanceAttributes(input *ListInstanceAttributesInput) (*ListInstanceAttributesOutput, error) { + req, out := c.ListInstanceAttributesRequest(input) return out, req.Send() } -// StopContactRecordingWithContext is the same as StopContactRecording with the addition of +// ListInstanceAttributesWithContext is the same as ListInstanceAttributes with the addition of // the ability to pass a context and additional request options. // -// See StopContactRecording for details on how to use this API operation. +// See ListInstanceAttributes 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) StopContactRecordingWithContext(ctx aws.Context, input *StopContactRecordingInput, opts ...request.Option) (*StopContactRecordingOutput, error) { - req, out := c.StopContactRecordingRequest(input) +func (c *Connect) ListInstanceAttributesWithContext(ctx aws.Context, input *ListInstanceAttributesInput, opts ...request.Option) (*ListInstanceAttributesOutput, error) { + req, out := c.ListInstanceAttributesRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opSuspendContactRecording = "SuspendContactRecording" +// ListInstanceAttributesPages iterates over the pages of a ListInstanceAttributes operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListInstanceAttributes 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 ListInstanceAttributes operation. +// pageNum := 0 +// err := client.ListInstanceAttributesPages(params, +// func(page *connect.ListInstanceAttributesOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *Connect) ListInstanceAttributesPages(input *ListInstanceAttributesInput, fn func(*ListInstanceAttributesOutput, bool) bool) error { + return c.ListInstanceAttributesPagesWithContext(aws.BackgroundContext(), input, fn) +} -// SuspendContactRecordingRequest generates a "aws/request.Request" representing the -// client's request for the SuspendContactRecording operation. The "output" return +// ListInstanceAttributesPagesWithContext same as ListInstanceAttributesPages 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) ListInstanceAttributesPagesWithContext(ctx aws.Context, input *ListInstanceAttributesInput, fn func(*ListInstanceAttributesOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListInstanceAttributesInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListInstanceAttributesRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListInstanceAttributesOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opListInstanceStorageConfigs = "ListInstanceStorageConfigs" + +// ListInstanceStorageConfigsRequest generates a "aws/request.Request" representing the +// client's request for the ListInstanceStorageConfigs 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 SuspendContactRecording for more information on using the SuspendContactRecording +// See ListInstanceStorageConfigs for more information on using the ListInstanceStorageConfigs // 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 SuspendContactRecordingRequest method. -// req, resp := client.SuspendContactRecordingRequest(params) +// // Example sending a request using the ListInstanceStorageConfigsRequest method. +// req, resp := client.ListInstanceStorageConfigsRequest(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/SuspendContactRecording -func (c *Connect) SuspendContactRecordingRequest(input *SuspendContactRecordingInput) (req *request.Request, output *SuspendContactRecordingOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/ListInstanceStorageConfigs +func (c *Connect) ListInstanceStorageConfigsRequest(input *ListInstanceStorageConfigsInput) (req *request.Request, output *ListInstanceStorageConfigsOutput) { op := &request.Operation{ - Name: opSuspendContactRecording, - HTTPMethod: "POST", - HTTPPath: "/contact/suspend-recording", + Name: opListInstanceStorageConfigs, + HTTPMethod: "GET", + HTTPPath: "/instance/{InstanceId}/storage-configs", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, } if input == nil { - input = &SuspendContactRecordingInput{} + input = &ListInstanceStorageConfigsInput{} } - output = &SuspendContactRecordingOutput{} + output = &ListInstanceStorageConfigsOutput{} req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// SuspendContactRecording API operation for Amazon Connect Service. -// -// When a contact is being recorded, this API suspends recording the call. For -// example, you might suspend the call recording while collecting sensitive -// information, such as a credit card number. Then use ResumeContactRecording -// to restart recording. -// -// The period of time that the recording is suspended is filled with silence -// in the final recording. +// ListInstanceStorageConfigs API operation for Amazon Connect Service. // -// Only voice recordings are supported at this time. +// Returns a paginated list of storage configs for the identified instance and +// resource type. // // 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 SuspendContactRecording for usage and error information. +// API operation ListInstanceStorageConfigs for usage and error information. // // Returned Error Types: -// * InvalidRequestException -// The request is not valid. -// // * ResourceNotFoundException // The specified resource was not found. // // * 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/SuspendContactRecording -func (c *Connect) SuspendContactRecording(input *SuspendContactRecordingInput) (*SuspendContactRecordingOutput, error) { - req, out := c.SuspendContactRecordingRequest(input) +// * InvalidRequestException +// The request is not valid. +// +// * InvalidParameterException +// One or more of the specified parameters are not valid. +// +// * ThrottlingException +// The throttling limit has been exceeded. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/ListInstanceStorageConfigs +func (c *Connect) ListInstanceStorageConfigs(input *ListInstanceStorageConfigsInput) (*ListInstanceStorageConfigsOutput, error) { + req, out := c.ListInstanceStorageConfigsRequest(input) return out, req.Send() } -// SuspendContactRecordingWithContext is the same as SuspendContactRecording with the addition of +// ListInstanceStorageConfigsWithContext is the same as ListInstanceStorageConfigs with the addition of // the ability to pass a context and additional request options. // -// See SuspendContactRecording for details on how to use this API operation. +// See ListInstanceStorageConfigs 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) SuspendContactRecordingWithContext(ctx aws.Context, input *SuspendContactRecordingInput, opts ...request.Option) (*SuspendContactRecordingOutput, error) { - req, out := c.SuspendContactRecordingRequest(input) +func (c *Connect) ListInstanceStorageConfigsWithContext(ctx aws.Context, input *ListInstanceStorageConfigsInput, opts ...request.Option) (*ListInstanceStorageConfigsOutput, error) { + req, out := c.ListInstanceStorageConfigsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opTagResource = "TagResource" +// ListInstanceStorageConfigsPages iterates over the pages of a ListInstanceStorageConfigs operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListInstanceStorageConfigs 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 ListInstanceStorageConfigs operation. +// pageNum := 0 +// err := client.ListInstanceStorageConfigsPages(params, +// func(page *connect.ListInstanceStorageConfigsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *Connect) ListInstanceStorageConfigsPages(input *ListInstanceStorageConfigsInput, fn func(*ListInstanceStorageConfigsOutput, bool) bool) error { + return c.ListInstanceStorageConfigsPagesWithContext(aws.BackgroundContext(), input, fn) +} -// TagResourceRequest generates a "aws/request.Request" representing the -// client's request for the TagResource operation. The "output" return +// ListInstanceStorageConfigsPagesWithContext same as ListInstanceStorageConfigsPages 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) ListInstanceStorageConfigsPagesWithContext(ctx aws.Context, input *ListInstanceStorageConfigsInput, fn func(*ListInstanceStorageConfigsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListInstanceStorageConfigsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListInstanceStorageConfigsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListInstanceStorageConfigsOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opListInstances = "ListInstances" + +// ListInstancesRequest generates a "aws/request.Request" representing the +// client's request for the ListInstances operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See TagResource for more information on using the TagResource +// See ListInstances for more information on using the ListInstances // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the TagResourceRequest method. -// req, resp := client.TagResourceRequest(params) +// // Example sending a request using the ListInstancesRequest method. +// req, resp := client.ListInstancesRequest(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/TagResource -func (c *Connect) TagResourceRequest(input *TagResourceInput) (req *request.Request, output *TagResourceOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/ListInstances +func (c *Connect) ListInstancesRequest(input *ListInstancesInput) (req *request.Request, output *ListInstancesOutput) { op := &request.Operation{ - Name: opTagResource, - HTTPMethod: "POST", - HTTPPath: "/tags/{resourceArn}", + Name: opListInstances, + HTTPMethod: "GET", + HTTPPath: "/instance", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, } if input == nil { - input = &TagResourceInput{} + input = &ListInstancesInput{} } - output = &TagResourceOutput{} + output = &ListInstancesOutput{} req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// TagResource API operation for Amazon Connect Service. -// -// Adds the specified tags to the specified resource. -// -// The supported resource types are users, routing profiles, and contact flows. +// ListInstances API operation for Amazon Connect Service. // -// For sample policies that use tags, see Amazon Connect Identity-Based Policy -// Examples (https://docs.aws.amazon.com/connect/latest/adminguide/security_iam_id-based-policy-examples.html) -// in the Amazon Connect Administrator Guide. +// Return a list of instances which are in active state, creation-in-progress +// state, and failed state. Instances that aren't successfully created (they +// are in a failed state) are returned only for 24 hours after the CreateInstance +// API was invoked. // // 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 TagResource for usage and error information. +// API operation ListInstances for usage and error information. // // Returned Error Types: // * InvalidRequestException // The request is not valid. // -// * InvalidParameterException -// One or more of the specified parameters are not valid. -// // * InternalServiceException // Request processing failed due to an error or failure with the service. // -// * ResourceNotFoundException -// The specified resource was not found. -// -// * ThrottlingException -// The throttling limit has been exceeded. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/TagResource -func (c *Connect) TagResource(input *TagResourceInput) (*TagResourceOutput, error) { - req, out := c.TagResourceRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/ListInstances +func (c *Connect) ListInstances(input *ListInstancesInput) (*ListInstancesOutput, error) { + req, out := c.ListInstancesRequest(input) return out, req.Send() } -// TagResourceWithContext is the same as TagResource with the addition of +// ListInstancesWithContext is the same as ListInstances with the addition of // the ability to pass a context and additional request options. // -// See TagResource for details on how to use this API operation. +// See ListInstances 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) TagResourceWithContext(ctx aws.Context, input *TagResourceInput, opts ...request.Option) (*TagResourceOutput, error) { - req, out := c.TagResourceRequest(input) +func (c *Connect) ListInstancesWithContext(ctx aws.Context, input *ListInstancesInput, opts ...request.Option) (*ListInstancesOutput, error) { + req, out := c.ListInstancesRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opUntagResource = "UntagResource" +// ListInstancesPages iterates over the pages of a ListInstances operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListInstances 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 ListInstances operation. +// pageNum := 0 +// err := client.ListInstancesPages(params, +// func(page *connect.ListInstancesOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *Connect) ListInstancesPages(input *ListInstancesInput, fn func(*ListInstancesOutput, bool) bool) error { + return c.ListInstancesPagesWithContext(aws.BackgroundContext(), input, fn) +} -// UntagResourceRequest generates a "aws/request.Request" representing the -// client's request for the UntagResource operation. The "output" return +// ListInstancesPagesWithContext same as ListInstancesPages 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) ListInstancesPagesWithContext(ctx aws.Context, input *ListInstancesInput, fn func(*ListInstancesOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListInstancesInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListInstancesRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListInstancesOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opListLambdaFunctions = "ListLambdaFunctions" + +// ListLambdaFunctionsRequest generates a "aws/request.Request" representing the +// client's request for the ListLambdaFunctions operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See UntagResource for more information on using the UntagResource +// See ListLambdaFunctions for more information on using the ListLambdaFunctions // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the UntagResourceRequest method. -// req, resp := client.UntagResourceRequest(params) +// // Example sending a request using the ListLambdaFunctionsRequest method. +// req, resp := client.ListLambdaFunctionsRequest(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/UntagResource -func (c *Connect) UntagResourceRequest(input *UntagResourceInput) (req *request.Request, output *UntagResourceOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/ListLambdaFunctions +func (c *Connect) ListLambdaFunctionsRequest(input *ListLambdaFunctionsInput) (req *request.Request, output *ListLambdaFunctionsOutput) { op := &request.Operation{ - Name: opUntagResource, - HTTPMethod: "DELETE", - HTTPPath: "/tags/{resourceArn}", + Name: opListLambdaFunctions, + HTTPMethod: "GET", + HTTPPath: "/instance/{InstanceId}/lambda-functions", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, } if input == nil { - input = &UntagResourceInput{} + input = &ListLambdaFunctionsInput{} } - output = &UntagResourceOutput{} + output = &ListLambdaFunctionsOutput{} req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// UntagResource API operation for Amazon Connect Service. +// ListLambdaFunctions API operation for Amazon Connect Service. // -// Removes the specified tags from the specified resource. +// Returns a paginated list of all the Lambda functions that show up in the +// drop-down options in the relevant contact flow blocks. // // 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 UntagResource for usage and error information. +// API operation ListLambdaFunctions for usage and error information. // // Returned Error Types: +// * ResourceNotFoundException +// The specified resource was not found. +// +// * InternalServiceException +// Request processing failed due to an error or failure with the service. +// // * InvalidRequestException // The request is not valid. // // * InvalidParameterException // One or more of the specified parameters are not valid. // -// * InternalServiceException -// Request processing failed due to an error or failure with the service. -// -// * ResourceNotFoundException -// The specified resource was not found. -// // * ThrottlingException // The throttling limit has been exceeded. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/UntagResource -func (c *Connect) UntagResource(input *UntagResourceInput) (*UntagResourceOutput, error) { - req, out := c.UntagResourceRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/ListLambdaFunctions +func (c *Connect) ListLambdaFunctions(input *ListLambdaFunctionsInput) (*ListLambdaFunctionsOutput, error) { + req, out := c.ListLambdaFunctionsRequest(input) return out, req.Send() } -// UntagResourceWithContext is the same as UntagResource with the addition of +// ListLambdaFunctionsWithContext is the same as ListLambdaFunctions with the addition of // the ability to pass a context and additional request options. // -// See UntagResource for details on how to use this API operation. +// See ListLambdaFunctions 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) UntagResourceWithContext(ctx aws.Context, input *UntagResourceInput, opts ...request.Option) (*UntagResourceOutput, error) { - req, out := c.UntagResourceRequest(input) +func (c *Connect) ListLambdaFunctionsWithContext(ctx aws.Context, input *ListLambdaFunctionsInput, opts ...request.Option) (*ListLambdaFunctionsOutput, error) { + req, out := c.ListLambdaFunctionsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opUpdateContactAttributes = "UpdateContactAttributes" +// ListLambdaFunctionsPages iterates over the pages of a ListLambdaFunctions operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListLambdaFunctions 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 ListLambdaFunctions operation. +// pageNum := 0 +// err := client.ListLambdaFunctionsPages(params, +// func(page *connect.ListLambdaFunctionsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *Connect) ListLambdaFunctionsPages(input *ListLambdaFunctionsInput, fn func(*ListLambdaFunctionsOutput, bool) bool) error { + return c.ListLambdaFunctionsPagesWithContext(aws.BackgroundContext(), input, fn) +} -// UpdateContactAttributesRequest generates a "aws/request.Request" representing the -// client's request for the UpdateContactAttributes operation. The "output" return +// ListLambdaFunctionsPagesWithContext same as ListLambdaFunctionsPages 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) ListLambdaFunctionsPagesWithContext(ctx aws.Context, input *ListLambdaFunctionsInput, fn func(*ListLambdaFunctionsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListLambdaFunctionsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListLambdaFunctionsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListLambdaFunctionsOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opListLexBots = "ListLexBots" + +// ListLexBotsRequest generates a "aws/request.Request" representing the +// client's request for the ListLexBots 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 ListLexBots for more information on using the ListLexBots // 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 ListLexBotsRequest method. +// req, resp := client.ListLexBotsRequest(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/ListLexBots +func (c *Connect) ListLexBotsRequest(input *ListLexBotsInput) (req *request.Request, output *ListLexBotsOutput) { op := &request.Operation{ - Name: opUpdateContactAttributes, - HTTPMethod: "POST", - HTTPPath: "/contact/attributes", + Name: opListLexBots, + HTTPMethod: "GET", + HTTPPath: "/instance/{InstanceId}/lex-bots", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, } if input == nil { - input = &UpdateContactAttributesInput{} + input = &ListLexBotsInput{} } - output = &UpdateContactAttributesOutput{} + output = &ListLexBotsOutput{} req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// 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. -// -// Contact attributes are available in Amazon Connect for 24 months, and are -// then deleted. +// ListLexBots API operation for Amazon Connect Service. // -// 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 a paginated list of all the Amazon Lex bots currently associated +// with the 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 ListLexBots for usage and error information. // // Returned Error Types: +// * ResourceNotFoundException +// The specified resource was not found. +// +// * InternalServiceException +// Request processing failed due to an error or failure with the service. +// // * InvalidRequestException // The request is not valid. // // * InvalidParameterException // One or more of the specified parameters are not valid. // -// * ResourceNotFoundException -// The specified resource was not found. -// -// * InternalServiceException -// Request processing failed due to an error or failure with the service. +// * ThrottlingException +// The throttling limit has been exceeded. // -// 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/ListLexBots +func (c *Connect) ListLexBots(input *ListLexBotsInput) (*ListLexBotsOutput, error) { + req, out := c.ListLexBotsRequest(input) return out, req.Send() } -// UpdateContactAttributesWithContext is the same as UpdateContactAttributes with the addition of +// ListLexBotsWithContext is the same as ListLexBots 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 ListLexBots 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) ListLexBotsWithContext(ctx aws.Context, input *ListLexBotsInput, opts ...request.Option) (*ListLexBotsOutput, error) { + req, out := c.ListLexBotsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opUpdateContactFlowContent = "UpdateContactFlowContent" +// ListLexBotsPages iterates over the pages of a ListLexBots operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListLexBots 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 ListLexBots operation. +// pageNum := 0 +// err := client.ListLexBotsPages(params, +// func(page *connect.ListLexBotsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *Connect) ListLexBotsPages(input *ListLexBotsInput, fn func(*ListLexBotsOutput, bool) bool) error { + return c.ListLexBotsPagesWithContext(aws.BackgroundContext(), input, fn) +} -// UpdateContactFlowContentRequest generates a "aws/request.Request" representing the -// client's request for the UpdateContactFlowContent operation. The "output" return +// ListLexBotsPagesWithContext same as ListLexBotsPages 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) ListLexBotsPagesWithContext(ctx aws.Context, input *ListLexBotsInput, fn func(*ListLexBotsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListLexBotsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListLexBotsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListLexBotsOutput), !p.HasNextPage()) { + break + } + } + + 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 UpdateContactFlowContent for more information on using the UpdateContactFlowContent +// 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 UpdateContactFlowContentRequest method. -// req, resp := client.UpdateContactFlowContentRequest(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/UpdateContactFlowContent -func (c *Connect) UpdateContactFlowContentRequest(input *UpdateContactFlowContentInput) (req *request.Request, output *UpdateContactFlowContentOutput) { +// 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: opUpdateContactFlowContent, - HTTPMethod: "POST", - HTTPPath: "/contact-flows/{InstanceId}/{ContactFlowId}/content", + Name: opListPhoneNumbers, + HTTPMethod: "GET", + HTTPPath: "/phone-numbers-summary/{InstanceId}", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, } if input == nil { - input = &UpdateContactFlowContentInput{} + input = &ListPhoneNumbersInput{} } - output = &UpdateContactFlowContentOutput{} + output = &ListPhoneNumbersOutput{} req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// UpdateContactFlowContent API operation for Amazon Connect Service. +// ListPhoneNumbers API operation for Amazon Connect Service. // -// Updates the specified contact flow. +// Provides information about the phone numbers for the specified Amazon Connect +// instance. // -// You can also create and update contact flows using the Amazon Connect Flow -// language (https://docs.aws.amazon.com/connect/latest/adminguide/flow-language.html). +// For more information about phone numbers, see Set Up Phone Numbers for Your +// Contact Center (https://docs.aws.amazon.com/connect/latest/adminguide/contact-center-phone-number.html) +// in the Amazon Connect Administrator Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Connect Service's -// API operation UpdateContactFlowContent for usage and error information. +// API operation ListPhoneNumbers for usage and error information. // // Returned Error Types: // * InvalidRequestException // The request is not valid. // -// * InvalidContactFlowException -// The contact flow is not valid. -// // * InvalidParameterException // One or more of the specified parameters are not valid. // @@ -4418,84 +4424,138 @@ func (c *Connect) UpdateContactFlowContentRequest(input *UpdateContactFlowConten // * 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/UpdateContactFlowContent -func (c *Connect) UpdateContactFlowContent(input *UpdateContactFlowContentInput) (*UpdateContactFlowContentOutput, error) { - req, out := c.UpdateContactFlowContentRequest(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() } -// UpdateContactFlowContentWithContext is the same as UpdateContactFlowContent 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 UpdateContactFlowContent 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) UpdateContactFlowContentWithContext(ctx aws.Context, input *UpdateContactFlowContentInput, opts ...request.Option) (*UpdateContactFlowContentOutput, error) { - req, out := c.UpdateContactFlowContentRequest(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 opUpdateContactFlowName = "UpdateContactFlowName" +// 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) +} -// UpdateContactFlowNameRequest generates a "aws/request.Request" representing the -// client's request for the UpdateContactFlowName 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 + }, + } + + for p.Next() { + if !fn(p.Page().(*ListPhoneNumbersOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opListPrompts = "ListPrompts" + +// ListPromptsRequest generates a "aws/request.Request" representing the +// client's request for the ListPrompts 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 UpdateContactFlowName for more information on using the UpdateContactFlowName +// See ListPrompts for more information on using the ListPrompts // 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 UpdateContactFlowNameRequest method. -// req, resp := client.UpdateContactFlowNameRequest(params) +// // Example sending a request using the ListPromptsRequest method. +// req, resp := client.ListPromptsRequest(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/UpdateContactFlowName -func (c *Connect) UpdateContactFlowNameRequest(input *UpdateContactFlowNameInput) (req *request.Request, output *UpdateContactFlowNameOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/ListPrompts +func (c *Connect) ListPromptsRequest(input *ListPromptsInput) (req *request.Request, output *ListPromptsOutput) { op := &request.Operation{ - Name: opUpdateContactFlowName, - HTTPMethod: "POST", - HTTPPath: "/contact-flows/{InstanceId}/{ContactFlowId}/name", + Name: opListPrompts, + HTTPMethod: "GET", + HTTPPath: "/prompts-summary/{InstanceId}", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, } if input == nil { - input = &UpdateContactFlowNameInput{} + input = &ListPromptsInput{} } - output = &UpdateContactFlowNameOutput{} + output = &ListPromptsOutput{} req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// UpdateContactFlowName API operation for Amazon Connect Service. -// -// The name of the contact flow. +// ListPrompts API operation for Amazon Connect Service. // -// You can also create and update contact flows using the Amazon Connect Flow -// language (https://docs.aws.amazon.com/connect/latest/adminguide/flow-language.html). +// Provides information about the prompts 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 UpdateContactFlowName for usage and error information. +// API operation ListPrompts for usage and error information. // // Returned Error Types: // * InvalidRequestException @@ -4504,9 +4564,6 @@ func (c *Connect) UpdateContactFlowNameRequest(input *UpdateContactFlowNameInput // * InvalidParameterException // One or more of the specified parameters are not valid. // -// * DuplicateResourceException -// A resource with the specified name already exists. -// // * ResourceNotFoundException // The specified resource was not found. // @@ -4516,82 +4573,141 @@ func (c *Connect) UpdateContactFlowNameRequest(input *UpdateContactFlowNameInput // * 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/UpdateContactFlowName -func (c *Connect) UpdateContactFlowName(input *UpdateContactFlowNameInput) (*UpdateContactFlowNameOutput, error) { - req, out := c.UpdateContactFlowNameRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/ListPrompts +func (c *Connect) ListPrompts(input *ListPromptsInput) (*ListPromptsOutput, error) { + req, out := c.ListPromptsRequest(input) return out, req.Send() } -// UpdateContactFlowNameWithContext is the same as UpdateContactFlowName with the addition of +// ListPromptsWithContext is the same as ListPrompts with the addition of // the ability to pass a context and additional request options. // -// See UpdateContactFlowName for details on how to use this API operation. +// See ListPrompts 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) UpdateContactFlowNameWithContext(ctx aws.Context, input *UpdateContactFlowNameInput, opts ...request.Option) (*UpdateContactFlowNameOutput, error) { - req, out := c.UpdateContactFlowNameRequest(input) +func (c *Connect) ListPromptsWithContext(ctx aws.Context, input *ListPromptsInput, opts ...request.Option) (*ListPromptsOutput, error) { + req, out := c.ListPromptsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opUpdateRoutingProfileConcurrency = "UpdateRoutingProfileConcurrency" +// ListPromptsPages iterates over the pages of a ListPrompts operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListPrompts 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 ListPrompts operation. +// pageNum := 0 +// err := client.ListPromptsPages(params, +// func(page *connect.ListPromptsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *Connect) ListPromptsPages(input *ListPromptsInput, fn func(*ListPromptsOutput, bool) bool) error { + return c.ListPromptsPagesWithContext(aws.BackgroundContext(), input, fn) +} -// UpdateRoutingProfileConcurrencyRequest generates a "aws/request.Request" representing the -// client's request for the UpdateRoutingProfileConcurrency operation. The "output" return +// ListPromptsPagesWithContext same as ListPromptsPages 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) ListPromptsPagesWithContext(ctx aws.Context, input *ListPromptsInput, fn func(*ListPromptsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListPromptsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListPromptsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListPromptsOutput), !p.HasNextPage()) { + break + } + } + + 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 UpdateRoutingProfileConcurrency for more information on using the UpdateRoutingProfileConcurrency +// 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 UpdateRoutingProfileConcurrencyRequest method. -// req, resp := client.UpdateRoutingProfileConcurrencyRequest(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/UpdateRoutingProfileConcurrency -func (c *Connect) UpdateRoutingProfileConcurrencyRequest(input *UpdateRoutingProfileConcurrencyInput) (req *request.Request, output *UpdateRoutingProfileConcurrencyOutput) { +// 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: opUpdateRoutingProfileConcurrency, - HTTPMethod: "POST", - HTTPPath: "/routing-profiles/{InstanceId}/{RoutingProfileId}/concurrency", + Name: opListQueues, + HTTPMethod: "GET", + HTTPPath: "/queues-summary/{InstanceId}", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, } if input == nil { - input = &UpdateRoutingProfileConcurrencyInput{} + input = &ListQueuesInput{} } - output = &UpdateRoutingProfileConcurrencyOutput{} + output = &ListQueuesOutput{} req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// UpdateRoutingProfileConcurrency API operation for Amazon Connect Service. +// ListQueues API operation for Amazon Connect Service. // -// Updates the channels that agents can handle in the Contact Control Panel -// (CCP) for a routing profile. +// Provides information about the queues for the specified Amazon Connect instance. +// +// For more information about queues, see Queues: Standard and Agent (https://docs.aws.amazon.com/connect/latest/adminguide/concepts-queues-standard-and-agent.html) +// in the Amazon Connect Administrator Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Connect Service's -// API operation UpdateRoutingProfileConcurrency for usage and error information. +// API operation ListQueues for usage and error information. // // Returned Error Types: // * InvalidRequestException @@ -4609,81 +4725,138 @@ func (c *Connect) UpdateRoutingProfileConcurrencyRequest(input *UpdateRoutingPro // * 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/UpdateRoutingProfileConcurrency -func (c *Connect) UpdateRoutingProfileConcurrency(input *UpdateRoutingProfileConcurrencyInput) (*UpdateRoutingProfileConcurrencyOutput, error) { - req, out := c.UpdateRoutingProfileConcurrencyRequest(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() } -// UpdateRoutingProfileConcurrencyWithContext is the same as UpdateRoutingProfileConcurrency 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 UpdateRoutingProfileConcurrency 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) UpdateRoutingProfileConcurrencyWithContext(ctx aws.Context, input *UpdateRoutingProfileConcurrencyInput, opts ...request.Option) (*UpdateRoutingProfileConcurrencyOutput, error) { - req, out := c.UpdateRoutingProfileConcurrencyRequest(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 opUpdateRoutingProfileDefaultOutboundQueue = "UpdateRoutingProfileDefaultOutboundQueue" +// 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 ListQueues 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 ListQueues operation. +// pageNum := 0 +// err := client.ListQueuesPages(params, +// func(page *connect.ListQueuesOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *Connect) ListQueuesPages(input *ListQueuesInput, fn func(*ListQueuesOutput, bool) bool) error { + return c.ListQueuesPagesWithContext(aws.BackgroundContext(), input, fn) +} -// UpdateRoutingProfileDefaultOutboundQueueRequest generates a "aws/request.Request" representing the -// client's request for the UpdateRoutingProfileDefaultOutboundQueue operation. The "output" return +// 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) 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 + }, + } + + for p.Next() { + if !fn(p.Page().(*ListQueuesOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opListRoutingProfileQueues = "ListRoutingProfileQueues" + +// ListRoutingProfileQueuesRequest generates a "aws/request.Request" representing the +// client's request for the ListRoutingProfileQueues 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 UpdateRoutingProfileDefaultOutboundQueue for more information on using the UpdateRoutingProfileDefaultOutboundQueue +// See ListRoutingProfileQueues for more information on using the ListRoutingProfileQueues // 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 UpdateRoutingProfileDefaultOutboundQueueRequest method. -// req, resp := client.UpdateRoutingProfileDefaultOutboundQueueRequest(params) +// // Example sending a request using the ListRoutingProfileQueuesRequest method. +// req, resp := client.ListRoutingProfileQueuesRequest(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/UpdateRoutingProfileDefaultOutboundQueue -func (c *Connect) UpdateRoutingProfileDefaultOutboundQueueRequest(input *UpdateRoutingProfileDefaultOutboundQueueInput) (req *request.Request, output *UpdateRoutingProfileDefaultOutboundQueueOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/ListRoutingProfileQueues +func (c *Connect) ListRoutingProfileQueuesRequest(input *ListRoutingProfileQueuesInput) (req *request.Request, output *ListRoutingProfileQueuesOutput) { op := &request.Operation{ - Name: opUpdateRoutingProfileDefaultOutboundQueue, - HTTPMethod: "POST", - HTTPPath: "/routing-profiles/{InstanceId}/{RoutingProfileId}/default-outbound-queue", + Name: opListRoutingProfileQueues, + HTTPMethod: "GET", + HTTPPath: "/routing-profiles/{InstanceId}/{RoutingProfileId}/queues", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, } if input == nil { - input = &UpdateRoutingProfileDefaultOutboundQueueInput{} + input = &ListRoutingProfileQueuesInput{} } - output = &UpdateRoutingProfileDefaultOutboundQueueOutput{} + output = &ListRoutingProfileQueuesOutput{} req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// UpdateRoutingProfileDefaultOutboundQueue API operation for Amazon Connect Service. +// ListRoutingProfileQueues API operation for Amazon Connect Service. // -// Updates the default outbound queue of a routing profile. +// List the queues associated with a routing profile. // // 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 UpdateRoutingProfileDefaultOutboundQueue for usage and error information. +// API operation ListRoutingProfileQueues for usage and error information. // // Returned Error Types: // * InvalidRequestException @@ -4701,177 +4874,143 @@ func (c *Connect) UpdateRoutingProfileDefaultOutboundQueueRequest(input *UpdateR // * 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/UpdateRoutingProfileDefaultOutboundQueue -func (c *Connect) UpdateRoutingProfileDefaultOutboundQueue(input *UpdateRoutingProfileDefaultOutboundQueueInput) (*UpdateRoutingProfileDefaultOutboundQueueOutput, error) { - req, out := c.UpdateRoutingProfileDefaultOutboundQueueRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/ListRoutingProfileQueues +func (c *Connect) ListRoutingProfileQueues(input *ListRoutingProfileQueuesInput) (*ListRoutingProfileQueuesOutput, error) { + req, out := c.ListRoutingProfileQueuesRequest(input) return out, req.Send() } -// UpdateRoutingProfileDefaultOutboundQueueWithContext is the same as UpdateRoutingProfileDefaultOutboundQueue with the addition of +// ListRoutingProfileQueuesWithContext is the same as ListRoutingProfileQueues with the addition of // the ability to pass a context and additional request options. // -// See UpdateRoutingProfileDefaultOutboundQueue for details on how to use this API operation. +// See ListRoutingProfileQueues 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) UpdateRoutingProfileDefaultOutboundQueueWithContext(ctx aws.Context, input *UpdateRoutingProfileDefaultOutboundQueueInput, opts ...request.Option) (*UpdateRoutingProfileDefaultOutboundQueueOutput, error) { - req, out := c.UpdateRoutingProfileDefaultOutboundQueueRequest(input) +func (c *Connect) ListRoutingProfileQueuesWithContext(ctx aws.Context, input *ListRoutingProfileQueuesInput, opts ...request.Option) (*ListRoutingProfileQueuesOutput, error) { + req, out := c.ListRoutingProfileQueuesRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opUpdateRoutingProfileName = "UpdateRoutingProfileName" - -// UpdateRoutingProfileNameRequest generates a "aws/request.Request" representing the -// client's request for the UpdateRoutingProfileName operation. The "output" return -// value will be populated with the request's response once the request completes -// successfully. +// ListRoutingProfileQueuesPages iterates over the pages of a ListRoutingProfileQueues 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 ListRoutingProfileQueues method for more information on how to use this operation. // -// See UpdateRoutingProfileName for more information on using the UpdateRoutingProfileName -// 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 -// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// // Example iterating over at most 3 pages of a ListRoutingProfileQueues operation. +// pageNum := 0 +// err := client.ListRoutingProfileQueuesPages(params, +// func(page *connect.ListRoutingProfileQueuesOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) // -// -// // Example sending a request using the UpdateRoutingProfileNameRequest method. -// req, resp := client.UpdateRoutingProfileNameRequest(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/UpdateRoutingProfileName -func (c *Connect) UpdateRoutingProfileNameRequest(input *UpdateRoutingProfileNameInput) (req *request.Request, output *UpdateRoutingProfileNameOutput) { - op := &request.Operation{ - Name: opUpdateRoutingProfileName, - HTTPMethod: "POST", - HTTPPath: "/routing-profiles/{InstanceId}/{RoutingProfileId}/name", - } - - if input == nil { - input = &UpdateRoutingProfileNameInput{} - } - - output = &UpdateRoutingProfileNameOutput{} - req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) - return -} - -// UpdateRoutingProfileName API operation for Amazon Connect Service. -// -// Updates the name and description of a routing profile. The request accepts -// the following data in JSON format. At least Name or Description must be provided. -// -// 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 UpdateRoutingProfileName for usage and error information. -// -// Returned Error Types: -// * DuplicateResourceException -// A resource with the specified name already exists. -// -// * InvalidRequestException -// The request is not valid. -// -// * InvalidParameterException -// One or more of the specified parameters are not valid. -// -// * ResourceNotFoundException -// The specified resource was not found. -// -// * ThrottlingException -// The throttling limit has been exceeded. -// -// * InternalServiceException -// Request processing failed due to an error or failure with the service. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/UpdateRoutingProfileName -func (c *Connect) UpdateRoutingProfileName(input *UpdateRoutingProfileNameInput) (*UpdateRoutingProfileNameOutput, error) { - req, out := c.UpdateRoutingProfileNameRequest(input) - return out, req.Send() +func (c *Connect) ListRoutingProfileQueuesPages(input *ListRoutingProfileQueuesInput, fn func(*ListRoutingProfileQueuesOutput, bool) bool) error { + return c.ListRoutingProfileQueuesPagesWithContext(aws.BackgroundContext(), input, fn) } -// UpdateRoutingProfileNameWithContext is the same as UpdateRoutingProfileName with the addition of -// the ability to pass a context and additional request options. -// -// See UpdateRoutingProfileName for details on how to use this API operation. +// ListRoutingProfileQueuesPagesWithContext same as ListRoutingProfileQueuesPages 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) UpdateRoutingProfileNameWithContext(ctx aws.Context, input *UpdateRoutingProfileNameInput, opts ...request.Option) (*UpdateRoutingProfileNameOutput, error) { - req, out := c.UpdateRoutingProfileNameRequest(input) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return out, req.Send() +func (c *Connect) ListRoutingProfileQueuesPagesWithContext(ctx aws.Context, input *ListRoutingProfileQueuesInput, fn func(*ListRoutingProfileQueuesOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListRoutingProfileQueuesInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListRoutingProfileQueuesRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListRoutingProfileQueuesOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() } -const opUpdateRoutingProfileQueues = "UpdateRoutingProfileQueues" +const opListRoutingProfiles = "ListRoutingProfiles" -// UpdateRoutingProfileQueuesRequest generates a "aws/request.Request" representing the -// client's request for the UpdateRoutingProfileQueues 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 UpdateRoutingProfileQueues for more information on using the UpdateRoutingProfileQueues +// 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 UpdateRoutingProfileQueuesRequest method. -// req, resp := client.UpdateRoutingProfileQueuesRequest(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/UpdateRoutingProfileQueues -func (c *Connect) UpdateRoutingProfileQueuesRequest(input *UpdateRoutingProfileQueuesInput) (req *request.Request, output *UpdateRoutingProfileQueuesOutput) { +// 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: opUpdateRoutingProfileQueues, - HTTPMethod: "POST", - HTTPPath: "/routing-profiles/{InstanceId}/{RoutingProfileId}/queues", + 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 = &UpdateRoutingProfileQueuesInput{} + input = &ListRoutingProfilesInput{} } - output = &UpdateRoutingProfileQueuesOutput{} + output = &ListRoutingProfilesOutput{} req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// UpdateRoutingProfileQueues API operation for Amazon Connect Service. +// ListRoutingProfiles API operation for Amazon Connect Service. // -// Updates the properties associated with a set of queues for a routing profile. +// Provides summary information about the routing profiles for the specified +// Amazon Connect instance. +// +// For more information about routing profiles, see Routing Profiles (https://docs.aws.amazon.com/connect/latest/adminguide/concepts-routing.html) +// and Create a Routing Profile (https://docs.aws.amazon.com/connect/latest/adminguide/routing-profiles.html) +// in the Amazon Connect Administrator Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Connect Service's -// API operation UpdateRoutingProfileQueues for usage and error information. +// API operation ListRoutingProfiles for usage and error information. // // Returned Error Types: // * InvalidRequestException @@ -4889,173 +5028,291 @@ func (c *Connect) UpdateRoutingProfileQueuesRequest(input *UpdateRoutingProfileQ // * 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/UpdateRoutingProfileQueues -func (c *Connect) UpdateRoutingProfileQueues(input *UpdateRoutingProfileQueuesInput) (*UpdateRoutingProfileQueuesOutput, error) { - req, out := c.UpdateRoutingProfileQueuesRequest(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() } -// UpdateRoutingProfileQueuesWithContext is the same as UpdateRoutingProfileQueues 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 UpdateRoutingProfileQueues 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) UpdateRoutingProfileQueuesWithContext(ctx aws.Context, input *UpdateRoutingProfileQueuesInput, opts ...request.Option) (*UpdateRoutingProfileQueuesOutput, error) { - req, out := c.UpdateRoutingProfileQueuesRequest(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 opUpdateUserHierarchy = "UpdateUserHierarchy" +// 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) +} -// UpdateUserHierarchyRequest generates a "aws/request.Request" representing the -// client's request for the UpdateUserHierarchy 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 + }, + } + + for p.Next() { + if !fn(p.Page().(*ListRoutingProfilesOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opListSecurityKeys = "ListSecurityKeys" + +// ListSecurityKeysRequest generates a "aws/request.Request" representing the +// client's request for the ListSecurityKeys 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 +// See ListSecurityKeys for more information on using the ListSecurityKeys // 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 ListSecurityKeysRequest method. +// req, resp := client.ListSecurityKeysRequest(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/ListSecurityKeys +func (c *Connect) ListSecurityKeysRequest(input *ListSecurityKeysInput) (req *request.Request, output *ListSecurityKeysOutput) { op := &request.Operation{ - Name: opUpdateUserHierarchy, - HTTPMethod: "POST", - HTTPPath: "/users/{InstanceId}/{UserId}/hierarchy", + Name: opListSecurityKeys, + HTTPMethod: "GET", + HTTPPath: "/instance/{InstanceId}/security-keys", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, } if input == nil { - input = &UpdateUserHierarchyInput{} + input = &ListSecurityKeysInput{} } - output = &UpdateUserHierarchyOutput{} + output = &ListSecurityKeysOutput{} req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// UpdateUserHierarchy API operation for Amazon Connect Service. +// ListSecurityKeys API operation for Amazon Connect Service. // -// Assigns the specified hierarchy group to the specified user. +// Returns a paginated list of all security keys associated with the 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 ListSecurityKeys for usage and error information. // // Returned Error Types: +// * ResourceNotFoundException +// The specified resource was not found. +// +// * InternalServiceException +// Request processing failed due to an error or failure with the service. +// // * InvalidRequestException // The request is not valid. // // * InvalidParameterException // One or more of the specified parameters are not valid. // -// * ResourceNotFoundException -// The specified resource was not found. -// // * ThrottlingException // The throttling limit has been exceeded. // -// * InternalServiceException -// Request processing failed 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/ListSecurityKeys +func (c *Connect) ListSecurityKeys(input *ListSecurityKeysInput) (*ListSecurityKeysOutput, error) { + req, out := c.ListSecurityKeysRequest(input) return out, req.Send() } -// UpdateUserHierarchyWithContext is the same as UpdateUserHierarchy with the addition of +// ListSecurityKeysWithContext is the same as ListSecurityKeys 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 ListSecurityKeys 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) ListSecurityKeysWithContext(ctx aws.Context, input *ListSecurityKeysInput, opts ...request.Option) (*ListSecurityKeysOutput, error) { + req, out := c.ListSecurityKeysRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opUpdateUserHierarchyGroupName = "UpdateUserHierarchyGroupName" - -// UpdateUserHierarchyGroupNameRequest generates a "aws/request.Request" representing the -// client's request for the UpdateUserHierarchyGroupName operation. The "output" return -// value will be populated with the request's response once the request completes -// successfully. +// ListSecurityKeysPages iterates over the pages of a ListSecurityKeys operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListSecurityKeys 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 ListSecurityKeys operation. +// pageNum := 0 +// err := client.ListSecurityKeysPages(params, +// func(page *connect.ListSecurityKeysOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *Connect) ListSecurityKeysPages(input *ListSecurityKeysInput, fn func(*ListSecurityKeysOutput, bool) bool) error { + return c.ListSecurityKeysPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListSecurityKeysPagesWithContext same as ListSecurityKeysPages 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) ListSecurityKeysPagesWithContext(ctx aws.Context, input *ListSecurityKeysInput, fn func(*ListSecurityKeysOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListSecurityKeysInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListSecurityKeysRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListSecurityKeysOutput), !p.HasNextPage()) { + break + } + } + + 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 UpdateUserHierarchyGroupName for more information on using the UpdateUserHierarchyGroupName +// 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 UpdateUserHierarchyGroupNameRequest method. -// req, resp := client.UpdateUserHierarchyGroupNameRequest(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/UpdateUserHierarchyGroupName -func (c *Connect) UpdateUserHierarchyGroupNameRequest(input *UpdateUserHierarchyGroupNameInput) (req *request.Request, output *UpdateUserHierarchyGroupNameOutput) { +// 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: opUpdateUserHierarchyGroupName, - HTTPMethod: "POST", - HTTPPath: "/user-hierarchy-groups/{InstanceId}/{HierarchyGroupId}/name", + 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 = &UpdateUserHierarchyGroupNameInput{} + input = &ListSecurityProfilesInput{} } - output = &UpdateUserHierarchyGroupNameOutput{} + output = &ListSecurityProfilesOutput{} req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// UpdateUserHierarchyGroupName API operation for Amazon Connect Service. +// ListSecurityProfiles API operation for Amazon Connect Service. // -// Updates the name of the user hierarchy group. +// Provides summary information about the security profiles for the specified +// Amazon Connect instance. +// +// For more information about security profiles, see Security Profiles (https://docs.aws.amazon.com/connect/latest/adminguide/connect-security-profiles.html) +// in the Amazon Connect Administrator Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Connect Service's -// API operation UpdateUserHierarchyGroupName for usage and error information. +// API operation ListSecurityProfiles for usage and error information. // // Returned Error Types: // * InvalidRequestException @@ -5064,9 +5321,6 @@ func (c *Connect) UpdateUserHierarchyGroupNameRequest(input *UpdateUserHierarchy // * InvalidParameterException // One or more of the specified parameters are not valid. // -// * DuplicateResourceException -// A resource with the specified name already exists. -// // * ResourceNotFoundException // The specified resource was not found. // @@ -5076,82 +5330,136 @@ func (c *Connect) UpdateUserHierarchyGroupNameRequest(input *UpdateUserHierarchy // * 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/UpdateUserHierarchyGroupName -func (c *Connect) UpdateUserHierarchyGroupName(input *UpdateUserHierarchyGroupNameInput) (*UpdateUserHierarchyGroupNameOutput, error) { - req, out := c.UpdateUserHierarchyGroupNameRequest(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() } -// UpdateUserHierarchyGroupNameWithContext is the same as UpdateUserHierarchyGroupName 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 UpdateUserHierarchyGroupName 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) UpdateUserHierarchyGroupNameWithContext(ctx aws.Context, input *UpdateUserHierarchyGroupNameInput, opts ...request.Option) (*UpdateUserHierarchyGroupNameOutput, error) { - req, out := c.UpdateUserHierarchyGroupNameRequest(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 opUpdateUserHierarchyStructure = "UpdateUserHierarchyStructure" +// 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. +// +// See ListSecurityProfiles 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 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) +} -// UpdateUserHierarchyStructureRequest generates a "aws/request.Request" representing the -// client's request for the UpdateUserHierarchyStructure operation. The "output" return +// 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 + }, + } + + for p.Next() { + if !fn(p.Page().(*ListSecurityProfilesOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opListTagsForResource = "ListTagsForResource" + +// ListTagsForResourceRequest generates a "aws/request.Request" representing the +// client's request for the ListTagsForResource operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See UpdateUserHierarchyStructure for more information on using the UpdateUserHierarchyStructure +// See ListTagsForResource for more information on using the ListTagsForResource // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the UpdateUserHierarchyStructureRequest method. -// req, resp := client.UpdateUserHierarchyStructureRequest(params) +// // Example sending a request using the ListTagsForResourceRequest method. +// req, resp := client.ListTagsForResourceRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/UpdateUserHierarchyStructure -func (c *Connect) UpdateUserHierarchyStructureRequest(input *UpdateUserHierarchyStructureInput) (req *request.Request, output *UpdateUserHierarchyStructureOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/ListTagsForResource +func (c *Connect) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req *request.Request, output *ListTagsForResourceOutput) { op := &request.Operation{ - Name: opUpdateUserHierarchyStructure, - HTTPMethod: "POST", - HTTPPath: "/user-hierarchy-structure/{InstanceId}", + Name: opListTagsForResource, + HTTPMethod: "GET", + HTTPPath: "/tags/{resourceArn}", } if input == nil { - input = &UpdateUserHierarchyStructureInput{} + input = &ListTagsForResourceInput{} } - output = &UpdateUserHierarchyStructureOutput{} + output = &ListTagsForResourceOutput{} req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// UpdateUserHierarchyStructure API operation for Amazon Connect Service. +// ListTagsForResource API operation for Amazon Connect Service. // -// Updates the user hierarchy structure: add, remove, and rename user hierarchy -// levels. +// Lists the tags for the specified resource. +// +// For sample policies that use tags, see Amazon Connect Identity-Based Policy +// Examples (https://docs.aws.amazon.com/connect/latest/adminguide/security_iam_id-based-policy-examples.html) +// in the Amazon Connect Administrator Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Connect Service's -// API operation UpdateUserHierarchyStructure for usage and error information. +// API operation ListTagsForResource for usage and error information. // // Returned Error Types: // * InvalidRequestException @@ -5160,93 +5468,92 @@ func (c *Connect) UpdateUserHierarchyStructureRequest(input *UpdateUserHierarchy // * InvalidParameterException // One or more of the specified parameters are not valid. // +// * InternalServiceException +// Request processing failed due to an error or failure with the service. +// // * ResourceNotFoundException // The specified resource was not found. // -// * ResourceInUseException -// That resource is already in use. Please try another. -// // * ThrottlingException // The throttling limit has been exceeded. // -// * 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/UpdateUserHierarchyStructure -func (c *Connect) UpdateUserHierarchyStructure(input *UpdateUserHierarchyStructureInput) (*UpdateUserHierarchyStructureOutput, error) { - req, out := c.UpdateUserHierarchyStructureRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/ListTagsForResource +func (c *Connect) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) { + req, out := c.ListTagsForResourceRequest(input) return out, req.Send() } -// UpdateUserHierarchyStructureWithContext is the same as UpdateUserHierarchyStructure with the addition of +// ListTagsForResourceWithContext is the same as ListTagsForResource with the addition of // the ability to pass a context and additional request options. // -// See UpdateUserHierarchyStructure for details on how to use this API operation. +// See ListTagsForResource for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *Connect) UpdateUserHierarchyStructureWithContext(ctx aws.Context, input *UpdateUserHierarchyStructureInput, opts ...request.Option) (*UpdateUserHierarchyStructureOutput, error) { - req, out := c.UpdateUserHierarchyStructureRequest(input) +func (c *Connect) ListTagsForResourceWithContext(ctx aws.Context, input *ListTagsForResourceInput, opts ...request.Option) (*ListTagsForResourceOutput, error) { + req, out := c.ListTagsForResourceRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opUpdateUserIdentityInfo = "UpdateUserIdentityInfo" +const opListUserHierarchyGroups = "ListUserHierarchyGroups" -// UpdateUserIdentityInfoRequest generates a "aws/request.Request" representing the -// client's request for the UpdateUserIdentityInfo operation. The "output" return +// 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 UpdateUserIdentityInfo for more information on using the UpdateUserIdentityInfo +// 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 UpdateUserIdentityInfoRequest method. -// req, resp := client.UpdateUserIdentityInfoRequest(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/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/ListUserHierarchyGroups +func (c *Connect) ListUserHierarchyGroupsRequest(input *ListUserHierarchyGroupsInput) (req *request.Request, output *ListUserHierarchyGroupsOutput) { op := &request.Operation{ - Name: opUpdateUserIdentityInfo, - HTTPMethod: "POST", - HTTPPath: "/users/{InstanceId}/{UserId}/identity-info", + 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 = &UpdateUserIdentityInfoInput{} + input = &ListUserHierarchyGroupsInput{} } - output = &UpdateUserIdentityInfoOutput{} + output = &ListUserHierarchyGroupsOutput{} req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// UpdateUserIdentityInfo API operation for Amazon Connect Service. +// ListUserHierarchyGroups API operation for Amazon Connect Service. // -// Updates the identity information for the specified user. +// Provides summary information about the hierarchy groups for the specified +// Amazon Connect instance. // -// Someone with the ability to invoke UpdateUserIndentityInfo can change the -// login credentials of other users by changing their email address. This poses -// a security risk to your organization. They can change the email address of -// a user to the attacker's email address, and then reset the password through -// email. We strongly recommend limiting who has the ability to invoke UpdateUserIndentityInfo. -// For more information, see Best Practices for Security Profiles (https://docs.aws.amazon.com/connect/latest/adminguide/security-profile-best-practices.html) +// For more information about agent hierarchies, see Set Up Agent Hierarchies +// (https://docs.aws.amazon.com/connect/latest/adminguide/agent-hierarchy.html) // in the Amazon Connect Administrator Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -5254,7 +5561,7 @@ func (c *Connect) UpdateUserIdentityInfoRequest(input *UpdateUserIdentityInfoInp // the error. // // See the AWS API reference guide for Amazon Connect Service's -// API operation UpdateUserIdentityInfo for usage and error information. +// API operation ListUserHierarchyGroups for usage and error information. // // Returned Error Types: // * InvalidRequestException @@ -5272,81 +5579,139 @@ func (c *Connect) UpdateUserIdentityInfoRequest(input *UpdateUserIdentityInfoInp // * 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/ListUserHierarchyGroups +func (c *Connect) ListUserHierarchyGroups(input *ListUserHierarchyGroupsInput) (*ListUserHierarchyGroupsOutput, error) { + req, out := c.ListUserHierarchyGroupsRequest(input) return out, req.Send() } -// UpdateUserIdentityInfoWithContext is the same as UpdateUserIdentityInfo 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 UpdateUserIdentityInfo 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) UpdateUserIdentityInfoWithContext(ctx aws.Context, input *UpdateUserIdentityInfoInput, opts ...request.Option) (*UpdateUserIdentityInfoOutput, error) { - req, out := c.UpdateUserIdentityInfoRequest(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 opUpdateUserPhoneConfig = "UpdateUserPhoneConfig" +// 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) +} -// UpdateUserPhoneConfigRequest generates a "aws/request.Request" representing the -// client's request for the UpdateUserPhoneConfig 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 + }, + } + + for p.Next() { + if !fn(p.Page().(*ListUserHierarchyGroupsOutput), !p.HasNextPage()) { + break + } + } + + 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 UpdateUserPhoneConfig for more information on using the UpdateUserPhoneConfig +// 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 UpdateUserPhoneConfigRequest method. -// req, resp := client.UpdateUserPhoneConfigRequest(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/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/ListUsers +func (c *Connect) ListUsersRequest(input *ListUsersInput) (req *request.Request, output *ListUsersOutput) { op := &request.Operation{ - Name: opUpdateUserPhoneConfig, - HTTPMethod: "POST", - HTTPPath: "/users/{InstanceId}/{UserId}/phone-config", + Name: opListUsers, + HTTPMethod: "GET", + HTTPPath: "/users-summary/{InstanceId}", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, } if input == nil { - input = &UpdateUserPhoneConfigInput{} + input = &ListUsersInput{} } - output = &UpdateUserPhoneConfigOutput{} + output = &ListUsersOutput{} req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// UpdateUserPhoneConfig API operation for Amazon Connect Service. +// ListUsers API operation for Amazon Connect Service. // -// Updates the phone configuration settings for the specified user. +// 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 UpdateUserPhoneConfig for usage and error information. +// API operation ListUsers for usage and error information. // // Returned Error Types: // * InvalidRequestException @@ -5364,173 +5729,240 @@ func (c *Connect) UpdateUserPhoneConfigRequest(input *UpdateUserPhoneConfigInput // * 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) +// 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() } -// UpdateUserPhoneConfigWithContext is the same as UpdateUserPhoneConfig 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 UpdateUserPhoneConfig 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) UpdateUserPhoneConfigWithContext(ctx aws.Context, input *UpdateUserPhoneConfigInput, opts ...request.Option) (*UpdateUserPhoneConfigOutput, error) { - req, out := c.UpdateUserPhoneConfigRequest(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 opUpdateUserRoutingProfile = "UpdateUserRoutingProfile" +// 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) +} -// UpdateUserRoutingProfileRequest generates a "aws/request.Request" representing the -// client's request for the UpdateUserRoutingProfile 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 + }, + } + + for p.Next() { + if !fn(p.Page().(*ListUsersOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opResumeContactRecording = "ResumeContactRecording" + +// ResumeContactRecordingRequest generates a "aws/request.Request" representing the +// client's request for the ResumeContactRecording 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 ResumeContactRecording for more information on using the ResumeContactRecording // 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 ResumeContactRecordingRequest method. +// req, resp := client.ResumeContactRecordingRequest(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/ResumeContactRecording +func (c *Connect) ResumeContactRecordingRequest(input *ResumeContactRecordingInput) (req *request.Request, output *ResumeContactRecordingOutput) { op := &request.Operation{ - Name: opUpdateUserRoutingProfile, + Name: opResumeContactRecording, HTTPMethod: "POST", - HTTPPath: "/users/{InstanceId}/{UserId}/routing-profile", + HTTPPath: "/contact/resume-recording", } if input == nil { - input = &UpdateUserRoutingProfileInput{} + input = &ResumeContactRecordingInput{} } - output = &UpdateUserRoutingProfileOutput{} + output = &ResumeContactRecordingOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// UpdateUserRoutingProfile API operation for Amazon Connect Service. +// ResumeContactRecording API operation for Amazon Connect Service. // -// Assigns the specified routing profile to the specified user. +// When a contact is being recorded, and the recording has been suspended using +// SuspendContactRecording, this API resumes recording the call. +// +// Only voice recordings are supported at this time. // // 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 ResumeContactRecording for usage and error information. // // Returned Error Types: // * InvalidRequestException // The request is not valid. // -// * InvalidParameterException -// One or more of the specified parameters are not valid. -// // * ResourceNotFoundException // The specified resource was not found. // -// * ThrottlingException -// The throttling limit has been exceeded. -// // * InternalServiceException // Request processing failed 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/ResumeContactRecording +func (c *Connect) ResumeContactRecording(input *ResumeContactRecordingInput) (*ResumeContactRecordingOutput, error) { + req, out := c.ResumeContactRecordingRequest(input) return out, req.Send() } -// UpdateUserRoutingProfileWithContext is the same as UpdateUserRoutingProfile with the addition of +// ResumeContactRecordingWithContext is the same as ResumeContactRecording 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 ResumeContactRecording 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) ResumeContactRecordingWithContext(ctx aws.Context, input *ResumeContactRecordingInput, opts ...request.Option) (*ResumeContactRecordingOutput, error) { + req, out := c.ResumeContactRecordingRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opUpdateUserSecurityProfiles = "UpdateUserSecurityProfiles" +const opStartChatContact = "StartChatContact" -// UpdateUserSecurityProfilesRequest generates a "aws/request.Request" representing the -// client's request for the UpdateUserSecurityProfiles operation. The "output" return +// StartChatContactRequest generates a "aws/request.Request" representing the +// client's request for the StartChatContact 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 StartChatContact for more information on using the StartChatContact // 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 StartChatContactRequest method. +// req, resp := client.StartChatContactRequest(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/StartChatContact +func (c *Connect) StartChatContactRequest(input *StartChatContactInput) (req *request.Request, output *StartChatContactOutput) { op := &request.Operation{ - Name: opUpdateUserSecurityProfiles, - HTTPMethod: "POST", - HTTPPath: "/users/{InstanceId}/{UserId}/security-profiles", + Name: opStartChatContact, + HTTPMethod: "PUT", + HTTPPath: "/contact/chat", } if input == nil { - input = &UpdateUserSecurityProfilesInput{} + input = &StartChatContactInput{} } - output = &UpdateUserSecurityProfilesOutput{} + output = &StartChatContactOutput{} req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// UpdateUserSecurityProfiles API operation for Amazon Connect Service. +// StartChatContact API operation for Amazon Connect Service. // -// Assigns the specified security profiles to the specified user. +// Initiates a contact flow to start a new chat for the customer. Response of +// this API provides a token required to obtain credentials from the CreateParticipantConnection +// (https://docs.aws.amazon.com/connect-participant/latest/APIReference/API_CreateParticipantConnection.html) +// API in the Amazon Connect Participant Service. +// +// When a new chat contact is successfully created, clients need to subscribe +// to the participant’s connection for the created chat within 5 minutes. +// This is achieved by invoking CreateParticipantConnection (https://docs.aws.amazon.com/connect-participant/latest/APIReference/API_CreateParticipantConnection.html) +// with WEBSOCKET and CONNECTION_CREDENTIALS. +// +// A 429 error occurs in two situations: +// +// * API rate limit is exceeded. API TPS throttling returns a TooManyRequests +// exception from the API Gateway. +// +// * The quota for concurrent active chats (https://docs.aws.amazon.com/connect/latest/adminguide/amazon-connect-service-limits.html) +// is exceeded. Active chat throttling returns a LimitExceededException. +// +// For more information about how chat works, see Chat (https://docs.aws.amazon.com/connect/latest/adminguide/chat.html) +// in the Amazon Connect Administrator Guide. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Connect Service's -// API operation UpdateUserSecurityProfiles for usage and error information. +// API operation StartChatContact for usage and error information. // // Returned Error Types: // * InvalidRequestException @@ -5542,172 +5974,4211 @@ func (c *Connect) UpdateUserSecurityProfilesRequest(input *UpdateUserSecurityPro // * ResourceNotFoundException // The specified resource was not found. // -// * ThrottlingException -// The throttling limit has been exceeded. -// // * 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) +// * LimitExceededException +// The allowed limit for the resource has been exceeded. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/StartChatContact +func (c *Connect) StartChatContact(input *StartChatContactInput) (*StartChatContactOutput, error) { + req, out := c.StartChatContactRequest(input) return out, req.Send() } -// UpdateUserSecurityProfilesWithContext is the same as UpdateUserSecurityProfiles with the addition of +// StartChatContactWithContext is the same as StartChatContact 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 StartChatContact 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) StartChatContactWithContext(ctx aws.Context, input *StartChatContactInput, opts ...request.Option) (*StartChatContactOutput, error) { + req, out := c.StartChatContactRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -type AssociateRoutingProfileQueuesInput struct { - _ struct{} `type:"structure"` +const opStartContactRecording = "StartContactRecording" - // The identifier of the Amazon Connect instance. - // - // InstanceId is a required field - InstanceId *string `location:"uri" locationName:"InstanceId" min:"1" type:"string" required:"true"` +// StartContactRecordingRequest generates a "aws/request.Request" representing the +// client's request for the StartContactRecording 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 StartContactRecording for more information on using the StartContactRecording +// 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 StartContactRecordingRequest method. +// req, resp := client.StartContactRecordingRequest(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/StartContactRecording +func (c *Connect) StartContactRecordingRequest(input *StartContactRecordingInput) (req *request.Request, output *StartContactRecordingOutput) { + op := &request.Operation{ + Name: opStartContactRecording, + HTTPMethod: "POST", + HTTPPath: "/contact/start-recording", + } - // The queues to associate with this routing profile. - // - // QueueConfigs is a required field - QueueConfigs []*RoutingProfileQueueConfig `min:"1" type:"list" required:"true"` + if input == nil { + input = &StartContactRecordingInput{} + } - // The identifier of the routing profile. - // - // RoutingProfileId is a required field - RoutingProfileId *string `location:"uri" locationName:"RoutingProfileId" type:"string" required:"true"` + output = &StartContactRecordingOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return } -// String returns the string representation -func (s AssociateRoutingProfileQueuesInput) String() string { - return awsutil.Prettify(s) +// StartContactRecording API operation for Amazon Connect Service. +// +// This API starts recording the contact when the agent joins the call. StartContactRecording +// is a one-time action. For example, if you use StopContactRecording to stop +// recording an ongoing call, you can't use StartContactRecording to restart +// it. For scenarios where the recording has started and you want to suspend +// and resume it, such as when collecting sensitive information (for example, +// a credit card number), use SuspendContactRecording and ResumeContactRecording. +// +// You can use this API to override the recording behavior configured in the +// Set recording behavior (https://docs.aws.amazon.com/connect/latest/adminguide/set-recording-behavior.html) +// block. +// +// Only voice recordings are supported at this time. +// +// 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 StartContactRecording for usage and error information. +// +// Returned Error Types: +// * InvalidRequestException +// The request is not valid. +// +// * InvalidParameterException +// One or more of the specified parameters are not valid. +// +// * ResourceNotFoundException +// The specified resource was not found. +// +// * 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/StartContactRecording +func (c *Connect) StartContactRecording(input *StartContactRecordingInput) (*StartContactRecordingOutput, error) { + req, out := c.StartContactRecordingRequest(input) + return out, req.Send() } -// GoString returns the string representation -func (s AssociateRoutingProfileQueuesInput) GoString() string { - return s.String() +// StartContactRecordingWithContext is the same as StartContactRecording with the addition of +// the ability to pass a context and additional request options. +// +// See StartContactRecording 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) StartContactRecordingWithContext(ctx aws.Context, input *StartContactRecordingInput, opts ...request.Option) (*StartContactRecordingOutput, error) { + req, out := c.StartContactRecordingRequest(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 *AssociateRoutingProfileQueuesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AssociateRoutingProfileQueuesInput"} - 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.QueueConfigs == nil { - invalidParams.Add(request.NewErrParamRequired("QueueConfigs")) - } - if s.QueueConfigs != nil && len(s.QueueConfigs) < 1 { - invalidParams.Add(request.NewErrParamMinLen("QueueConfigs", 1)) - } - if s.RoutingProfileId == nil { - invalidParams.Add(request.NewErrParamRequired("RoutingProfileId")) - } - if s.RoutingProfileId != nil && len(*s.RoutingProfileId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("RoutingProfileId", 1)) - } - if s.QueueConfigs != nil { - for i, v := range s.QueueConfigs { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "QueueConfigs", i), err.(request.ErrInvalidParams)) - } - } - } +const opStartOutboundVoiceContact = "StartOutboundVoiceContact" - if invalidParams.Len() > 0 { - return invalidParams +// 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 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 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", } - return nil -} - -// SetInstanceId sets the InstanceId field's value. -func (s *AssociateRoutingProfileQueuesInput) SetInstanceId(v string) *AssociateRoutingProfileQueuesInput { - s.InstanceId = &v - return s -} - -// SetQueueConfigs sets the QueueConfigs field's value. -func (s *AssociateRoutingProfileQueuesInput) SetQueueConfigs(v []*RoutingProfileQueueConfig) *AssociateRoutingProfileQueuesInput { - s.QueueConfigs = v - return s -} - -// SetRoutingProfileId sets the RoutingProfileId field's value. -func (s *AssociateRoutingProfileQueuesInput) SetRoutingProfileId(v string) *AssociateRoutingProfileQueuesInput { - s.RoutingProfileId = &v - return s -} -type AssociateRoutingProfileQueuesOutput struct { - _ struct{} `type:"structure"` -} + if input == nil { + input = &StartOutboundVoiceContactInput{} + } -// String returns the string representation -func (s AssociateRoutingProfileQueuesOutput) String() string { - return awsutil.Prettify(s) + output = &StartOutboundVoiceContactOutput{} + req = c.newRequest(op, input, output) + return } -// GoString returns the string representation -func (s AssociateRoutingProfileQueuesOutput) GoString() string { - return s.String() -} +// StartOutboundVoiceContact API operation for Amazon Connect Service. +// +// This API places an outbound call to a contact, and then initiates the contact +// flow. It performs the actions in the contact flow that's specified (in ContactFlowId). +// +// Agents are not involved in initiating the outbound API (that is, dialing +// the contact). If the contact flow places an outbound call to a contact, and +// then puts the contact in queue, that's when the call is routed to the agent, +// like any other inbound case. +// +// There is a 60 second dialing timeout for this operation. If the call is not +// connected after 60 seconds, it fails. +// +// UK numbers with a 447 prefix are not allowed by default. Before you can dial +// these UK mobile numbers, you must submit a service quota increase request. +// For more information, see Amazon Connect Service Quotas (https://docs.aws.amazon.com/connect/latest/adminguide/amazon-connect-service-limits.html) +// in the Amazon Connect Administrator Guide. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Connect Service's +// API operation StartOutboundVoiceContact for usage and error information. +// +// Returned Error Types: +// * InvalidRequestException +// The request is not valid. +// +// * InvalidParameterException +// One or more of the specified parameters are not valid. +// +// * ResourceNotFoundException +// The specified resource was not found. +// +// * InternalServiceException +// Request processing failed due to an error or failure with the service. +// +// * LimitExceededException +// The allowed limit for the resource has been exceeded. +// +// * DestinationNotAllowedException +// Outbound calls to the destination number are not allowed. +// +// * 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. +// +// 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() +} + +const opStopContact = "StopContact" + +// 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 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 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/StopContact +func (c *Connect) StopContactRequest(input *StopContactInput) (req *request.Request, output *StopContactOutput) { + op := &request.Operation{ + Name: opStopContact, + HTTPMethod: "POST", + HTTPPath: "/contact/stop", + } + + if input == nil { + input = &StopContactInput{} + } + + output = &StopContactOutput{} + 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 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 StopContact for usage and error information. +// +// Returned Error Types: +// * InvalidRequestException +// The request is not valid. +// +// * ContactNotFoundException +// The contact with the specified ID is not active or does not exist. +// +// * InvalidParameterException +// One or more of the specified parameters are not valid. +// +// * ResourceNotFoundException +// The specified resource was not found. +// +// * 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) + return out, req.Send() +} + +// StopContactWithContext is the same as StopContact 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. +// +// 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) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opStopContactRecording = "StopContactRecording" + +// StopContactRecordingRequest generates a "aws/request.Request" representing the +// client's request for the StopContactRecording 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 StopContactRecording for more information on using the StopContactRecording +// 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 StopContactRecordingRequest method. +// req, resp := client.StopContactRecordingRequest(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/StopContactRecording +func (c *Connect) StopContactRecordingRequest(input *StopContactRecordingInput) (req *request.Request, output *StopContactRecordingOutput) { + op := &request.Operation{ + Name: opStopContactRecording, + HTTPMethod: "POST", + HTTPPath: "/contact/stop-recording", + } + + if input == nil { + input = &StopContactRecordingInput{} + } + + output = &StopContactRecordingOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// StopContactRecording API operation for Amazon Connect Service. +// +// When a contact is being recorded, this API stops recording the call. StopContactRecording +// is a one-time action. If you use StopContactRecording to stop recording an +// ongoing call, you can't use StartContactRecording to restart it. For scenarios +// where the recording has started and you want to suspend it for sensitive +// information (for example, to collect a credit card number), and then restart +// it, use SuspendContactRecording and ResumeContactRecording. +// +// Only voice recordings are supported at this time. +// +// 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 StopContactRecording for usage and error information. +// +// Returned Error Types: +// * InvalidRequestException +// The request is not valid. +// +// * ResourceNotFoundException +// The specified resource was not found. +// +// * 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/StopContactRecording +func (c *Connect) StopContactRecording(input *StopContactRecordingInput) (*StopContactRecordingOutput, error) { + req, out := c.StopContactRecordingRequest(input) + return out, req.Send() +} + +// StopContactRecordingWithContext is the same as StopContactRecording with the addition of +// the ability to pass a context and additional request options. +// +// See StopContactRecording 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) StopContactRecordingWithContext(ctx aws.Context, input *StopContactRecordingInput, opts ...request.Option) (*StopContactRecordingOutput, error) { + req, out := c.StopContactRecordingRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opSuspendContactRecording = "SuspendContactRecording" + +// SuspendContactRecordingRequest generates a "aws/request.Request" representing the +// client's request for the SuspendContactRecording 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 SuspendContactRecording for more information on using the SuspendContactRecording +// 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 SuspendContactRecordingRequest method. +// req, resp := client.SuspendContactRecordingRequest(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/SuspendContactRecording +func (c *Connect) SuspendContactRecordingRequest(input *SuspendContactRecordingInput) (req *request.Request, output *SuspendContactRecordingOutput) { + op := &request.Operation{ + Name: opSuspendContactRecording, + HTTPMethod: "POST", + HTTPPath: "/contact/suspend-recording", + } + + if input == nil { + input = &SuspendContactRecordingInput{} + } + + output = &SuspendContactRecordingOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// SuspendContactRecording API operation for Amazon Connect Service. +// +// When a contact is being recorded, this API suspends recording the call. For +// example, you might suspend the call recording while collecting sensitive +// information, such as a credit card number. Then use ResumeContactRecording +// to restart recording. +// +// The period of time that the recording is suspended is filled with silence +// in the final recording. +// +// Only voice recordings are supported at this time. +// +// 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 SuspendContactRecording for usage and error information. +// +// Returned Error Types: +// * InvalidRequestException +// The request is not valid. +// +// * ResourceNotFoundException +// The specified resource was not found. +// +// * 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/SuspendContactRecording +func (c *Connect) SuspendContactRecording(input *SuspendContactRecordingInput) (*SuspendContactRecordingOutput, error) { + req, out := c.SuspendContactRecordingRequest(input) + return out, req.Send() +} + +// SuspendContactRecordingWithContext is the same as SuspendContactRecording with the addition of +// the ability to pass a context and additional request options. +// +// See SuspendContactRecording 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) SuspendContactRecordingWithContext(ctx aws.Context, input *SuspendContactRecordingInput, opts ...request.Option) (*SuspendContactRecordingOutput, error) { + req, out := c.SuspendContactRecordingRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opTagResource = "TagResource" + +// TagResourceRequest generates a "aws/request.Request" representing the +// client's request for the TagResource operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See TagResource for more information on using the TagResource +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the TagResourceRequest method. +// req, resp := client.TagResourceRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/TagResource +func (c *Connect) TagResourceRequest(input *TagResourceInput) (req *request.Request, output *TagResourceOutput) { + op := &request.Operation{ + Name: opTagResource, + HTTPMethod: "POST", + HTTPPath: "/tags/{resourceArn}", + } + + if input == nil { + input = &TagResourceInput{} + } + + output = &TagResourceOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// TagResource API operation for Amazon Connect Service. +// +// Adds the specified tags to the specified resource. +// +// The supported resource types are users, routing profiles, and contact flows. +// +// For sample policies that use tags, see Amazon Connect Identity-Based Policy +// Examples (https://docs.aws.amazon.com/connect/latest/adminguide/security_iam_id-based-policy-examples.html) +// in the Amazon Connect Administrator Guide. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Connect Service's +// API operation TagResource for usage and error information. +// +// Returned Error Types: +// * InvalidRequestException +// The request is not valid. +// +// * InvalidParameterException +// One or more of the specified parameters are not valid. +// +// * InternalServiceException +// Request processing failed due to an error or failure with the service. +// +// * ResourceNotFoundException +// The specified resource was not found. +// +// * ThrottlingException +// The throttling limit has been exceeded. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/TagResource +func (c *Connect) TagResource(input *TagResourceInput) (*TagResourceOutput, error) { + req, out := c.TagResourceRequest(input) + return out, req.Send() +} + +// TagResourceWithContext is the same as TagResource with the addition of +// the ability to pass a context and additional request options. +// +// See TagResource for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Connect) TagResourceWithContext(ctx aws.Context, input *TagResourceInput, opts ...request.Option) (*TagResourceOutput, error) { + req, out := c.TagResourceRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUntagResource = "UntagResource" + +// UntagResourceRequest generates a "aws/request.Request" representing the +// client's request for the UntagResource operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UntagResource for more information on using the UntagResource +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the UntagResourceRequest method. +// req, resp := client.UntagResourceRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/UntagResource +func (c *Connect) UntagResourceRequest(input *UntagResourceInput) (req *request.Request, output *UntagResourceOutput) { + op := &request.Operation{ + Name: opUntagResource, + HTTPMethod: "DELETE", + HTTPPath: "/tags/{resourceArn}", + } + + if input == nil { + input = &UntagResourceInput{} + } + + output = &UntagResourceOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// UntagResource API operation for Amazon Connect Service. +// +// Removes the specified tags from the specified resource. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Connect Service's +// API operation UntagResource for usage and error information. +// +// Returned Error Types: +// * InvalidRequestException +// The request is not valid. +// +// * InvalidParameterException +// One or more of the specified parameters are not valid. +// +// * InternalServiceException +// Request processing failed due to an error or failure with the service. +// +// * ResourceNotFoundException +// The specified resource was not found. +// +// * ThrottlingException +// The throttling limit has been exceeded. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/UntagResource +func (c *Connect) UntagResource(input *UntagResourceInput) (*UntagResourceOutput, error) { + req, out := c.UntagResourceRequest(input) + return out, req.Send() +} + +// UntagResourceWithContext is the same as UntagResource with the addition of +// the ability to pass a context and additional request options. +// +// See UntagResource for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Connect) UntagResourceWithContext(ctx aws.Context, input *UntagResourceInput, opts ...request.Option) (*UntagResourceOutput, error) { + req, out := c.UntagResourceRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateContactAttributes = "UpdateContactAttributes" + +// 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 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 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/UpdateContactAttributes +func (c *Connect) UpdateContactAttributesRequest(input *UpdateContactAttributesInput) (req *request.Request, output *UpdateContactAttributesOutput) { + op := &request.Operation{ + Name: opUpdateContactAttributes, + HTTPMethod: "POST", + HTTPPath: "/contact/attributes", + } + + if input == nil { + input = &UpdateContactAttributesInput{} + } + + output = &UpdateContactAttributesOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// 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. +// +// 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 UpdateContactAttributes for usage and error information. +// +// Returned Error Types: +// * InvalidRequestException +// The request is not valid. +// +// * InvalidParameterException +// One or more of the specified parameters are not valid. +// +// * ResourceNotFoundException +// The specified resource was not found. +// +// * 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) + return out, req.Send() +} + +// UpdateContactAttributesWithContext is the same as UpdateContactAttributes 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. +// +// 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) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateContactFlowContent = "UpdateContactFlowContent" + +// UpdateContactFlowContentRequest generates a "aws/request.Request" representing the +// client's request for the UpdateContactFlowContent 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 UpdateContactFlowContent for more information on using the UpdateContactFlowContent +// 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 UpdateContactFlowContentRequest method. +// req, resp := client.UpdateContactFlowContentRequest(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/UpdateContactFlowContent +func (c *Connect) UpdateContactFlowContentRequest(input *UpdateContactFlowContentInput) (req *request.Request, output *UpdateContactFlowContentOutput) { + op := &request.Operation{ + Name: opUpdateContactFlowContent, + HTTPMethod: "POST", + HTTPPath: "/contact-flows/{InstanceId}/{ContactFlowId}/content", + } + + if input == nil { + input = &UpdateContactFlowContentInput{} + } + + output = &UpdateContactFlowContentOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// UpdateContactFlowContent API operation for Amazon Connect Service. +// +// Updates the specified contact flow. +// +// You can also create and update contact flows using the Amazon Connect Flow +// language (https://docs.aws.amazon.com/connect/latest/adminguide/flow-language.html). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Connect Service's +// API operation UpdateContactFlowContent for usage and error information. +// +// Returned Error Types: +// * InvalidRequestException +// The request is not valid. +// +// * InvalidContactFlowException +// The contact flow is not valid. +// +// * InvalidParameterException +// One or more of the specified parameters are not valid. +// +// * ResourceNotFoundException +// The specified resource was not found. +// +// * ThrottlingException +// The throttling limit has been exceeded. +// +// * InternalServiceException +// Request processing failed due to an error or failure with the service. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/UpdateContactFlowContent +func (c *Connect) UpdateContactFlowContent(input *UpdateContactFlowContentInput) (*UpdateContactFlowContentOutput, error) { + req, out := c.UpdateContactFlowContentRequest(input) + return out, req.Send() +} + +// UpdateContactFlowContentWithContext is the same as UpdateContactFlowContent with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateContactFlowContent 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) UpdateContactFlowContentWithContext(ctx aws.Context, input *UpdateContactFlowContentInput, opts ...request.Option) (*UpdateContactFlowContentOutput, error) { + req, out := c.UpdateContactFlowContentRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateContactFlowName = "UpdateContactFlowName" + +// UpdateContactFlowNameRequest generates a "aws/request.Request" representing the +// client's request for the UpdateContactFlowName 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 UpdateContactFlowName for more information on using the UpdateContactFlowName +// 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 UpdateContactFlowNameRequest method. +// req, resp := client.UpdateContactFlowNameRequest(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/UpdateContactFlowName +func (c *Connect) UpdateContactFlowNameRequest(input *UpdateContactFlowNameInput) (req *request.Request, output *UpdateContactFlowNameOutput) { + op := &request.Operation{ + Name: opUpdateContactFlowName, + HTTPMethod: "POST", + HTTPPath: "/contact-flows/{InstanceId}/{ContactFlowId}/name", + } + + if input == nil { + input = &UpdateContactFlowNameInput{} + } + + output = &UpdateContactFlowNameOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// UpdateContactFlowName API operation for Amazon Connect Service. +// +// The name of the contact flow. +// +// You can also create and update contact flows using the Amazon Connect Flow +// language (https://docs.aws.amazon.com/connect/latest/adminguide/flow-language.html). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Connect Service's +// API operation UpdateContactFlowName for usage and error information. +// +// Returned Error Types: +// * InvalidRequestException +// The request is not valid. +// +// * InvalidParameterException +// One or more of the specified parameters are not valid. +// +// * DuplicateResourceException +// A resource with the specified name already exists. +// +// * ResourceNotFoundException +// The specified resource was not found. +// +// * ThrottlingException +// The throttling limit has been exceeded. +// +// * 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/UpdateContactFlowName +func (c *Connect) UpdateContactFlowName(input *UpdateContactFlowNameInput) (*UpdateContactFlowNameOutput, error) { + req, out := c.UpdateContactFlowNameRequest(input) + return out, req.Send() +} + +// UpdateContactFlowNameWithContext is the same as UpdateContactFlowName with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateContactFlowName 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) UpdateContactFlowNameWithContext(ctx aws.Context, input *UpdateContactFlowNameInput, opts ...request.Option) (*UpdateContactFlowNameOutput, error) { + req, out := c.UpdateContactFlowNameRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateInstanceAttribute = "UpdateInstanceAttribute" + +// UpdateInstanceAttributeRequest generates a "aws/request.Request" representing the +// client's request for the UpdateInstanceAttribute 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 UpdateInstanceAttribute for more information on using the UpdateInstanceAttribute +// 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 UpdateInstanceAttributeRequest method. +// req, resp := client.UpdateInstanceAttributeRequest(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/UpdateInstanceAttribute +func (c *Connect) UpdateInstanceAttributeRequest(input *UpdateInstanceAttributeInput) (req *request.Request, output *UpdateInstanceAttributeOutput) { + op := &request.Operation{ + Name: opUpdateInstanceAttribute, + HTTPMethod: "POST", + HTTPPath: "/instance/{InstanceId}/attribute/{AttributeType}", + } + + if input == nil { + input = &UpdateInstanceAttributeInput{} + } + + output = &UpdateInstanceAttributeOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// UpdateInstanceAttribute API operation for Amazon Connect Service. +// +// Updates the value for the specified attribute type. +// +// 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 UpdateInstanceAttribute for usage and error information. +// +// Returned Error Types: +// * ResourceNotFoundException +// The specified resource was not found. +// +// * InternalServiceException +// Request processing failed due to an error or failure with the service. +// +// * InvalidRequestException +// The request is not valid. +// +// * InvalidParameterException +// One or more of the specified parameters are not valid. +// +// * ThrottlingException +// The throttling limit has been exceeded. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/UpdateInstanceAttribute +func (c *Connect) UpdateInstanceAttribute(input *UpdateInstanceAttributeInput) (*UpdateInstanceAttributeOutput, error) { + req, out := c.UpdateInstanceAttributeRequest(input) + return out, req.Send() +} + +// UpdateInstanceAttributeWithContext is the same as UpdateInstanceAttribute with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateInstanceAttribute 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) UpdateInstanceAttributeWithContext(ctx aws.Context, input *UpdateInstanceAttributeInput, opts ...request.Option) (*UpdateInstanceAttributeOutput, error) { + req, out := c.UpdateInstanceAttributeRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateInstanceStorageConfig = "UpdateInstanceStorageConfig" + +// UpdateInstanceStorageConfigRequest generates a "aws/request.Request" representing the +// client's request for the UpdateInstanceStorageConfig 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 UpdateInstanceStorageConfig for more information on using the UpdateInstanceStorageConfig +// 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 UpdateInstanceStorageConfigRequest method. +// req, resp := client.UpdateInstanceStorageConfigRequest(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/UpdateInstanceStorageConfig +func (c *Connect) UpdateInstanceStorageConfigRequest(input *UpdateInstanceStorageConfigInput) (req *request.Request, output *UpdateInstanceStorageConfigOutput) { + op := &request.Operation{ + Name: opUpdateInstanceStorageConfig, + HTTPMethod: "POST", + HTTPPath: "/instance/{InstanceId}/storage-config/{AssociationId}", + } + + if input == nil { + input = &UpdateInstanceStorageConfigInput{} + } + + output = &UpdateInstanceStorageConfigOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// UpdateInstanceStorageConfig API operation for Amazon Connect Service. +// +// Updates an existing configuration for a resource type. This API is idempotent. +// +// 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 UpdateInstanceStorageConfig for usage and error information. +// +// Returned Error Types: +// * ResourceNotFoundException +// The specified resource was not found. +// +// * InternalServiceException +// Request processing failed due to an error or failure with the service. +// +// * InvalidRequestException +// The request is not valid. +// +// * InvalidParameterException +// One or more of the specified parameters are not valid. +// +// * ThrottlingException +// The throttling limit has been exceeded. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/UpdateInstanceStorageConfig +func (c *Connect) UpdateInstanceStorageConfig(input *UpdateInstanceStorageConfigInput) (*UpdateInstanceStorageConfigOutput, error) { + req, out := c.UpdateInstanceStorageConfigRequest(input) + return out, req.Send() +} + +// UpdateInstanceStorageConfigWithContext is the same as UpdateInstanceStorageConfig with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateInstanceStorageConfig 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) UpdateInstanceStorageConfigWithContext(ctx aws.Context, input *UpdateInstanceStorageConfigInput, opts ...request.Option) (*UpdateInstanceStorageConfigOutput, error) { + req, out := c.UpdateInstanceStorageConfigRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateRoutingProfileConcurrency = "UpdateRoutingProfileConcurrency" + +// UpdateRoutingProfileConcurrencyRequest generates a "aws/request.Request" representing the +// client's request for the UpdateRoutingProfileConcurrency 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 UpdateRoutingProfileConcurrency for more information on using the UpdateRoutingProfileConcurrency +// 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 UpdateRoutingProfileConcurrencyRequest method. +// req, resp := client.UpdateRoutingProfileConcurrencyRequest(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/UpdateRoutingProfileConcurrency +func (c *Connect) UpdateRoutingProfileConcurrencyRequest(input *UpdateRoutingProfileConcurrencyInput) (req *request.Request, output *UpdateRoutingProfileConcurrencyOutput) { + op := &request.Operation{ + Name: opUpdateRoutingProfileConcurrency, + HTTPMethod: "POST", + HTTPPath: "/routing-profiles/{InstanceId}/{RoutingProfileId}/concurrency", + } + + if input == nil { + input = &UpdateRoutingProfileConcurrencyInput{} + } + + output = &UpdateRoutingProfileConcurrencyOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// UpdateRoutingProfileConcurrency API operation for Amazon Connect Service. +// +// Updates the channels that agents can handle in the Contact Control Panel +// (CCP) for a routing profile. +// +// 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 UpdateRoutingProfileConcurrency for usage and error information. +// +// Returned Error Types: +// * InvalidRequestException +// The request is not valid. +// +// * InvalidParameterException +// One or more of the specified parameters are not valid. +// +// * ResourceNotFoundException +// The specified resource was not found. +// +// * ThrottlingException +// The throttling limit has been exceeded. +// +// * InternalServiceException +// Request processing failed due to an error or failure with the service. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/UpdateRoutingProfileConcurrency +func (c *Connect) UpdateRoutingProfileConcurrency(input *UpdateRoutingProfileConcurrencyInput) (*UpdateRoutingProfileConcurrencyOutput, error) { + req, out := c.UpdateRoutingProfileConcurrencyRequest(input) + return out, req.Send() +} + +// UpdateRoutingProfileConcurrencyWithContext is the same as UpdateRoutingProfileConcurrency with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateRoutingProfileConcurrency 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) UpdateRoutingProfileConcurrencyWithContext(ctx aws.Context, input *UpdateRoutingProfileConcurrencyInput, opts ...request.Option) (*UpdateRoutingProfileConcurrencyOutput, error) { + req, out := c.UpdateRoutingProfileConcurrencyRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateRoutingProfileDefaultOutboundQueue = "UpdateRoutingProfileDefaultOutboundQueue" + +// UpdateRoutingProfileDefaultOutboundQueueRequest generates a "aws/request.Request" representing the +// client's request for the UpdateRoutingProfileDefaultOutboundQueue 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 UpdateRoutingProfileDefaultOutboundQueue for more information on using the UpdateRoutingProfileDefaultOutboundQueue +// 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 UpdateRoutingProfileDefaultOutboundQueueRequest method. +// req, resp := client.UpdateRoutingProfileDefaultOutboundQueueRequest(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/UpdateRoutingProfileDefaultOutboundQueue +func (c *Connect) UpdateRoutingProfileDefaultOutboundQueueRequest(input *UpdateRoutingProfileDefaultOutboundQueueInput) (req *request.Request, output *UpdateRoutingProfileDefaultOutboundQueueOutput) { + op := &request.Operation{ + Name: opUpdateRoutingProfileDefaultOutboundQueue, + HTTPMethod: "POST", + HTTPPath: "/routing-profiles/{InstanceId}/{RoutingProfileId}/default-outbound-queue", + } + + if input == nil { + input = &UpdateRoutingProfileDefaultOutboundQueueInput{} + } + + output = &UpdateRoutingProfileDefaultOutboundQueueOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// UpdateRoutingProfileDefaultOutboundQueue API operation for Amazon Connect Service. +// +// Updates the default outbound queue of a routing profile. +// +// 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 UpdateRoutingProfileDefaultOutboundQueue for usage and error information. +// +// Returned Error Types: +// * InvalidRequestException +// The request is not valid. +// +// * InvalidParameterException +// One or more of the specified parameters are not valid. +// +// * ResourceNotFoundException +// The specified resource was not found. +// +// * ThrottlingException +// The throttling limit has been exceeded. +// +// * InternalServiceException +// Request processing failed due to an error or failure with the service. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/UpdateRoutingProfileDefaultOutboundQueue +func (c *Connect) UpdateRoutingProfileDefaultOutboundQueue(input *UpdateRoutingProfileDefaultOutboundQueueInput) (*UpdateRoutingProfileDefaultOutboundQueueOutput, error) { + req, out := c.UpdateRoutingProfileDefaultOutboundQueueRequest(input) + return out, req.Send() +} + +// UpdateRoutingProfileDefaultOutboundQueueWithContext is the same as UpdateRoutingProfileDefaultOutboundQueue with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateRoutingProfileDefaultOutboundQueue 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) UpdateRoutingProfileDefaultOutboundQueueWithContext(ctx aws.Context, input *UpdateRoutingProfileDefaultOutboundQueueInput, opts ...request.Option) (*UpdateRoutingProfileDefaultOutboundQueueOutput, error) { + req, out := c.UpdateRoutingProfileDefaultOutboundQueueRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateRoutingProfileName = "UpdateRoutingProfileName" + +// UpdateRoutingProfileNameRequest generates a "aws/request.Request" representing the +// client's request for the UpdateRoutingProfileName 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 UpdateRoutingProfileName for more information on using the UpdateRoutingProfileName +// 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 UpdateRoutingProfileNameRequest method. +// req, resp := client.UpdateRoutingProfileNameRequest(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/UpdateRoutingProfileName +func (c *Connect) UpdateRoutingProfileNameRequest(input *UpdateRoutingProfileNameInput) (req *request.Request, output *UpdateRoutingProfileNameOutput) { + op := &request.Operation{ + Name: opUpdateRoutingProfileName, + HTTPMethod: "POST", + HTTPPath: "/routing-profiles/{InstanceId}/{RoutingProfileId}/name", + } + + if input == nil { + input = &UpdateRoutingProfileNameInput{} + } + + output = &UpdateRoutingProfileNameOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// UpdateRoutingProfileName API operation for Amazon Connect Service. +// +// Updates the name and description of a routing profile. The request accepts +// the following data in JSON format. At least Name or Description must be provided. +// +// 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 UpdateRoutingProfileName for usage and error information. +// +// Returned Error Types: +// * DuplicateResourceException +// A resource with the specified name already exists. +// +// * InvalidRequestException +// The request is not valid. +// +// * InvalidParameterException +// One or more of the specified parameters are not valid. +// +// * ResourceNotFoundException +// The specified resource was not found. +// +// * ThrottlingException +// The throttling limit has been exceeded. +// +// * InternalServiceException +// Request processing failed due to an error or failure with the service. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/UpdateRoutingProfileName +func (c *Connect) UpdateRoutingProfileName(input *UpdateRoutingProfileNameInput) (*UpdateRoutingProfileNameOutput, error) { + req, out := c.UpdateRoutingProfileNameRequest(input) + return out, req.Send() +} + +// UpdateRoutingProfileNameWithContext is the same as UpdateRoutingProfileName with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateRoutingProfileName 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) UpdateRoutingProfileNameWithContext(ctx aws.Context, input *UpdateRoutingProfileNameInput, opts ...request.Option) (*UpdateRoutingProfileNameOutput, error) { + req, out := c.UpdateRoutingProfileNameRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateRoutingProfileQueues = "UpdateRoutingProfileQueues" + +// UpdateRoutingProfileQueuesRequest generates a "aws/request.Request" representing the +// client's request for the UpdateRoutingProfileQueues 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 UpdateRoutingProfileQueues for more information on using the UpdateRoutingProfileQueues +// 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 UpdateRoutingProfileQueuesRequest method. +// req, resp := client.UpdateRoutingProfileQueuesRequest(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/UpdateRoutingProfileQueues +func (c *Connect) UpdateRoutingProfileQueuesRequest(input *UpdateRoutingProfileQueuesInput) (req *request.Request, output *UpdateRoutingProfileQueuesOutput) { + op := &request.Operation{ + Name: opUpdateRoutingProfileQueues, + HTTPMethod: "POST", + HTTPPath: "/routing-profiles/{InstanceId}/{RoutingProfileId}/queues", + } + + if input == nil { + input = &UpdateRoutingProfileQueuesInput{} + } + + output = &UpdateRoutingProfileQueuesOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// UpdateRoutingProfileQueues API operation for Amazon Connect Service. +// +// Updates the properties associated with a set of queues for a routing profile. +// +// 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 UpdateRoutingProfileQueues for usage and error information. +// +// Returned Error Types: +// * InvalidRequestException +// The request is not valid. +// +// * InvalidParameterException +// One or more of the specified parameters are not valid. +// +// * ResourceNotFoundException +// The specified resource was not found. +// +// * ThrottlingException +// The throttling limit has been exceeded. +// +// * InternalServiceException +// Request processing failed due to an error or failure with the service. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/UpdateRoutingProfileQueues +func (c *Connect) UpdateRoutingProfileQueues(input *UpdateRoutingProfileQueuesInput) (*UpdateRoutingProfileQueuesOutput, error) { + req, out := c.UpdateRoutingProfileQueuesRequest(input) + return out, req.Send() +} + +// UpdateRoutingProfileQueuesWithContext is the same as UpdateRoutingProfileQueues with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateRoutingProfileQueues 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) UpdateRoutingProfileQueuesWithContext(ctx aws.Context, input *UpdateRoutingProfileQueuesInput, opts ...request.Option) (*UpdateRoutingProfileQueuesOutput, error) { + req, out := c.UpdateRoutingProfileQueuesRequest(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. +// +// 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", + } + + if input == nil { + input = &UpdateUserHierarchyInput{} + } + + output = &UpdateUserHierarchyOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// 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 Types: +// * InvalidRequestException +// The request is not valid. +// +// * InvalidParameterException +// One or more of the specified parameters are not valid. +// +// * ResourceNotFoundException +// The specified resource was not found. +// +// * ThrottlingException +// The throttling limit has been exceeded. +// +// * InternalServiceException +// Request processing failed 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() +} + +// 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() +} + +const opUpdateUserHierarchyGroupName = "UpdateUserHierarchyGroupName" + +// UpdateUserHierarchyGroupNameRequest generates a "aws/request.Request" representing the +// client's request for the UpdateUserHierarchyGroupName 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 UpdateUserHierarchyGroupName for more information on using the UpdateUserHierarchyGroupName +// 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 UpdateUserHierarchyGroupNameRequest method. +// req, resp := client.UpdateUserHierarchyGroupNameRequest(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/UpdateUserHierarchyGroupName +func (c *Connect) UpdateUserHierarchyGroupNameRequest(input *UpdateUserHierarchyGroupNameInput) (req *request.Request, output *UpdateUserHierarchyGroupNameOutput) { + op := &request.Operation{ + Name: opUpdateUserHierarchyGroupName, + HTTPMethod: "POST", + HTTPPath: "/user-hierarchy-groups/{InstanceId}/{HierarchyGroupId}/name", + } + + if input == nil { + input = &UpdateUserHierarchyGroupNameInput{} + } + + output = &UpdateUserHierarchyGroupNameOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// UpdateUserHierarchyGroupName API operation for Amazon Connect Service. +// +// Updates the name of the user 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 +// the error. +// +// See the AWS API reference guide for Amazon Connect Service's +// API operation UpdateUserHierarchyGroupName for usage and error information. +// +// Returned Error Types: +// * InvalidRequestException +// The request is not valid. +// +// * InvalidParameterException +// One or more of the specified parameters are not valid. +// +// * DuplicateResourceException +// A resource with the specified name already exists. +// +// * ResourceNotFoundException +// The specified resource was not found. +// +// * ThrottlingException +// The throttling limit has been exceeded. +// +// * 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/UpdateUserHierarchyGroupName +func (c *Connect) UpdateUserHierarchyGroupName(input *UpdateUserHierarchyGroupNameInput) (*UpdateUserHierarchyGroupNameOutput, error) { + req, out := c.UpdateUserHierarchyGroupNameRequest(input) + return out, req.Send() +} + +// UpdateUserHierarchyGroupNameWithContext is the same as UpdateUserHierarchyGroupName with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateUserHierarchyGroupName 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) UpdateUserHierarchyGroupNameWithContext(ctx aws.Context, input *UpdateUserHierarchyGroupNameInput, opts ...request.Option) (*UpdateUserHierarchyGroupNameOutput, error) { + req, out := c.UpdateUserHierarchyGroupNameRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateUserHierarchyStructure = "UpdateUserHierarchyStructure" + +// UpdateUserHierarchyStructureRequest generates a "aws/request.Request" representing the +// client's request for the UpdateUserHierarchyStructure 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 UpdateUserHierarchyStructure for more information on using the UpdateUserHierarchyStructure +// 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 UpdateUserHierarchyStructureRequest method. +// req, resp := client.UpdateUserHierarchyStructureRequest(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/UpdateUserHierarchyStructure +func (c *Connect) UpdateUserHierarchyStructureRequest(input *UpdateUserHierarchyStructureInput) (req *request.Request, output *UpdateUserHierarchyStructureOutput) { + op := &request.Operation{ + Name: opUpdateUserHierarchyStructure, + HTTPMethod: "POST", + HTTPPath: "/user-hierarchy-structure/{InstanceId}", + } + + if input == nil { + input = &UpdateUserHierarchyStructureInput{} + } + + output = &UpdateUserHierarchyStructureOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// UpdateUserHierarchyStructure API operation for Amazon Connect Service. +// +// Updates the user hierarchy structure: add, remove, and rename user hierarchy +// levels. +// +// 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 UpdateUserHierarchyStructure for usage and error information. +// +// Returned Error Types: +// * InvalidRequestException +// The request is not valid. +// +// * InvalidParameterException +// One or more of the specified parameters are not valid. +// +// * ResourceNotFoundException +// The specified resource was not found. +// +// * ResourceInUseException +// That resource is already in use. Please try another. +// +// * ThrottlingException +// The throttling limit has been exceeded. +// +// * 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/UpdateUserHierarchyStructure +func (c *Connect) UpdateUserHierarchyStructure(input *UpdateUserHierarchyStructureInput) (*UpdateUserHierarchyStructureOutput, error) { + req, out := c.UpdateUserHierarchyStructureRequest(input) + return out, req.Send() +} + +// UpdateUserHierarchyStructureWithContext is the same as UpdateUserHierarchyStructure with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateUserHierarchyStructure 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) UpdateUserHierarchyStructureWithContext(ctx aws.Context, input *UpdateUserHierarchyStructureInput, opts ...request.Option) (*UpdateUserHierarchyStructureOutput, error) { + req, out := c.UpdateUserHierarchyStructureRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +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. +// +// Someone with the ability to invoke UpdateUserIndentityInfo can change the +// login credentials of other users by changing their email address. This poses +// a security risk to your organization. They can change the email address of +// a user to the attacker's email address, and then reset the password through +// email. We strongly recommend limiting who has the ability to invoke UpdateUserIndentityInfo. +// For more information, see Best Practices for Security Profiles (https://docs.aws.amazon.com/connect/latest/adminguide/security-profile-best-practices.html) +// in the Amazon Connect Administrator Guide. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Connect Service's +// API operation UpdateUserIdentityInfo for usage and error information. +// +// Returned Error Types: +// * InvalidRequestException +// The request is not valid. +// +// * InvalidParameterException +// One or more of the specified parameters are not valid. +// +// * ResourceNotFoundException +// The specified resource was not found. +// +// * ThrottlingException +// The throttling limit has been exceeded. +// +// * InternalServiceException +// Request processing failed 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 Types: +// * InvalidRequestException +// The request is not valid. +// +// * InvalidParameterException +// One or more of the specified parameters are not valid. +// +// * ResourceNotFoundException +// The specified resource was not found. +// +// * ThrottlingException +// The throttling limit has been exceeded. +// +// * InternalServiceException +// Request processing failed 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 Types: +// * InvalidRequestException +// The request is not valid. +// +// * InvalidParameterException +// One or more of the specified parameters are not valid. +// +// * ResourceNotFoundException +// The specified resource was not found. +// +// * ThrottlingException +// The throttling limit has been exceeded. +// +// * InternalServiceException +// Request processing failed 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 Types: +// * InvalidRequestException +// The request is not valid. +// +// * InvalidParameterException +// One or more of the specified parameters are not valid. +// +// * ResourceNotFoundException +// The specified resource was not found. +// +// * ThrottlingException +// The throttling limit has been exceeded. +// +// * InternalServiceException +// Request processing failed 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() +} + +type AssociateApprovedOriginInput 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 domain to add to your allow list. + // + // Origin is a required field + Origin *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s AssociateApprovedOriginInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AssociateApprovedOriginInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AssociateApprovedOriginInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AssociateApprovedOriginInput"} + 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.Origin == nil { + invalidParams.Add(request.NewErrParamRequired("Origin")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetInstanceId sets the InstanceId field's value. +func (s *AssociateApprovedOriginInput) SetInstanceId(v string) *AssociateApprovedOriginInput { + s.InstanceId = &v + return s +} + +// SetOrigin sets the Origin field's value. +func (s *AssociateApprovedOriginInput) SetOrigin(v string) *AssociateApprovedOriginInput { + s.Origin = &v + return s +} + +type AssociateApprovedOriginOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s AssociateApprovedOriginOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AssociateApprovedOriginOutput) GoString() string { + return s.String() +} + +type AssociateInstanceStorageConfigInput 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"` + + // A valid resource type. + // + // ResourceType is a required field + ResourceType *string `type:"string" required:"true" enum:"InstanceStorageResourceType"` + + // A valid storage type. + // + // StorageConfig is a required field + StorageConfig *InstanceStorageConfig `type:"structure" required:"true"` +} + +// String returns the string representation +func (s AssociateInstanceStorageConfigInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AssociateInstanceStorageConfigInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AssociateInstanceStorageConfigInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AssociateInstanceStorageConfigInput"} + 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.ResourceType == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceType")) + } + if s.StorageConfig == nil { + invalidParams.Add(request.NewErrParamRequired("StorageConfig")) + } + if s.StorageConfig != nil { + if err := s.StorageConfig.Validate(); err != nil { + invalidParams.AddNested("StorageConfig", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetInstanceId sets the InstanceId field's value. +func (s *AssociateInstanceStorageConfigInput) SetInstanceId(v string) *AssociateInstanceStorageConfigInput { + s.InstanceId = &v + return s +} + +// SetResourceType sets the ResourceType field's value. +func (s *AssociateInstanceStorageConfigInput) SetResourceType(v string) *AssociateInstanceStorageConfigInput { + s.ResourceType = &v + return s +} + +// SetStorageConfig sets the StorageConfig field's value. +func (s *AssociateInstanceStorageConfigInput) SetStorageConfig(v *InstanceStorageConfig) *AssociateInstanceStorageConfigInput { + s.StorageConfig = v + return s +} + +type AssociateInstanceStorageConfigOutput struct { + _ struct{} `type:"structure"` + + // The existing association identifier that uniquely identifies the resource + // type and storage config for the given instance ID. + AssociationId *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s AssociateInstanceStorageConfigOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AssociateInstanceStorageConfigOutput) GoString() string { + return s.String() +} + +// SetAssociationId sets the AssociationId field's value. +func (s *AssociateInstanceStorageConfigOutput) SetAssociationId(v string) *AssociateInstanceStorageConfigOutput { + s.AssociationId = &v + return s +} + +type AssociateLambdaFunctionInput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) for the Lambda function being associated. + // Maximum number of characters allowed is 140. + // + // FunctionArn is a required field + FunctionArn *string `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 AssociateLambdaFunctionInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AssociateLambdaFunctionInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AssociateLambdaFunctionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AssociateLambdaFunctionInput"} + if s.FunctionArn == nil { + invalidParams.Add(request.NewErrParamRequired("FunctionArn")) + } + if s.FunctionArn != nil && len(*s.FunctionArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("FunctionArn", 1)) + } + 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 +} + +// SetFunctionArn sets the FunctionArn field's value. +func (s *AssociateLambdaFunctionInput) SetFunctionArn(v string) *AssociateLambdaFunctionInput { + s.FunctionArn = &v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *AssociateLambdaFunctionInput) SetInstanceId(v string) *AssociateLambdaFunctionInput { + s.InstanceId = &v + return s +} + +type AssociateLambdaFunctionOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s AssociateLambdaFunctionOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AssociateLambdaFunctionOutput) GoString() string { + return s.String() +} + +type AssociateLexBotInput 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 Amazon Lex box to associate with the instance. + // + // LexBot is a required field + LexBot *LexBot `type:"structure" required:"true"` +} + +// String returns the string representation +func (s AssociateLexBotInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AssociateLexBotInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AssociateLexBotInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AssociateLexBotInput"} + 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.LexBot == nil { + invalidParams.Add(request.NewErrParamRequired("LexBot")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetInstanceId sets the InstanceId field's value. +func (s *AssociateLexBotInput) SetInstanceId(v string) *AssociateLexBotInput { + s.InstanceId = &v + return s +} + +// SetLexBot sets the LexBot field's value. +func (s *AssociateLexBotInput) SetLexBot(v *LexBot) *AssociateLexBotInput { + s.LexBot = v + return s +} + +type AssociateLexBotOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s AssociateLexBotOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AssociateLexBotOutput) GoString() string { + return s.String() +} + +type AssociateRoutingProfileQueuesInput 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 queues to associate with this routing profile. + // + // QueueConfigs is a required field + QueueConfigs []*RoutingProfileQueueConfig `min:"1" type:"list" required:"true"` + + // The identifier of the routing profile. + // + // RoutingProfileId is a required field + RoutingProfileId *string `location:"uri" locationName:"RoutingProfileId" type:"string" required:"true"` +} + +// String returns the string representation +func (s AssociateRoutingProfileQueuesInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AssociateRoutingProfileQueuesInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AssociateRoutingProfileQueuesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AssociateRoutingProfileQueuesInput"} + 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.QueueConfigs == nil { + invalidParams.Add(request.NewErrParamRequired("QueueConfigs")) + } + if s.QueueConfigs != nil && len(s.QueueConfigs) < 1 { + invalidParams.Add(request.NewErrParamMinLen("QueueConfigs", 1)) + } + if s.RoutingProfileId == nil { + invalidParams.Add(request.NewErrParamRequired("RoutingProfileId")) + } + if s.RoutingProfileId != nil && len(*s.RoutingProfileId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RoutingProfileId", 1)) + } + if s.QueueConfigs != nil { + for i, v := range s.QueueConfigs { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "QueueConfigs", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetInstanceId sets the InstanceId field's value. +func (s *AssociateRoutingProfileQueuesInput) SetInstanceId(v string) *AssociateRoutingProfileQueuesInput { + s.InstanceId = &v + return s +} + +// SetQueueConfigs sets the QueueConfigs field's value. +func (s *AssociateRoutingProfileQueuesInput) SetQueueConfigs(v []*RoutingProfileQueueConfig) *AssociateRoutingProfileQueuesInput { + s.QueueConfigs = v + return s +} + +// SetRoutingProfileId sets the RoutingProfileId field's value. +func (s *AssociateRoutingProfileQueuesInput) SetRoutingProfileId(v string) *AssociateRoutingProfileQueuesInput { + s.RoutingProfileId = &v + return s +} + +type AssociateRoutingProfileQueuesOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s AssociateRoutingProfileQueuesOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AssociateRoutingProfileQueuesOutput) GoString() string { + return s.String() +} + +type AssociateSecurityKeyInput 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"` + + // A valid security key in PEM format. + // + // Key is a required field + Key *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s AssociateSecurityKeyInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AssociateSecurityKeyInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AssociateSecurityKeyInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AssociateSecurityKeyInput"} + 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.Key == nil { + invalidParams.Add(request.NewErrParamRequired("Key")) + } + if s.Key != nil && len(*s.Key) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Key", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetInstanceId sets the InstanceId field's value. +func (s *AssociateSecurityKeyInput) SetInstanceId(v string) *AssociateSecurityKeyInput { + s.InstanceId = &v + return s +} + +// SetKey sets the Key field's value. +func (s *AssociateSecurityKeyInput) SetKey(v string) *AssociateSecurityKeyInput { + s.Key = &v + return s +} + +type AssociateSecurityKeyOutput struct { + _ struct{} `type:"structure"` + + // The existing association identifier that uniquely identifies the resource + // type and storage config for the given instance ID. + AssociationId *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s AssociateSecurityKeyOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AssociateSecurityKeyOutput) GoString() string { + return s.String() +} + +// SetAssociationId sets the AssociationId field's value. +func (s *AssociateSecurityKeyOutput) SetAssociationId(v string) *AssociateSecurityKeyOutput { + s.AssociationId = &v + return s +} + +// A toggle for an individual feature at the instance level. +type Attribute struct { + _ struct{} `type:"structure"` + + // The type of attribute. + AttributeType *string `type:"string" enum:"InstanceAttributeType"` + + // The value of the attribute. + Value *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s Attribute) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Attribute) GoString() string { + return s.String() +} + +// SetAttributeType sets the AttributeType field's value. +func (s *Attribute) SetAttributeType(v string) *Attribute { + s.AttributeType = &v + return s +} + +// SetValue sets the Value field's value. +func (s *Attribute) SetValue(v string) *Attribute { + s.Value = &v + return s +} + +// A chat message. +type ChatMessage struct { + _ struct{} `type:"structure"` + + // The content of the chat message. + // + // Content is a required field + Content *string `min:"1" type:"string" required:"true"` + + // The type of the content. Supported types are text/plain. + // + // ContentType is a required field + ContentType *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s ChatMessage) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ChatMessage) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ChatMessage) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ChatMessage"} + if s.Content == nil { + invalidParams.Add(request.NewErrParamRequired("Content")) + } + if s.Content != nil && len(*s.Content) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Content", 1)) + } + if s.ContentType == nil { + invalidParams.Add(request.NewErrParamRequired("ContentType")) + } + if s.ContentType != nil && len(*s.ContentType) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ContentType", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetContent sets the Content field's value. +func (s *ChatMessage) SetContent(v string) *ChatMessage { + s.Content = &v + return s +} + +// SetContentType sets the ContentType field's value. +func (s *ChatMessage) SetContentType(v string) *ChatMessage { + s.ContentType = &v + return s +} + +// Contains information about a contact flow. +type ContactFlow struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the contact flow. + Arn *string `type:"string"` + + // The content of the contact flow. + Content *string `type:"string"` + + // The description of the contact flow. + Description *string `type:"string"` + + // The identifier of the contact flow. + Id *string `type:"string"` + + // The name of the contact flow. + Name *string `min:"1" type:"string"` + + // One or more tags. + Tags map[string]*string `min:"1" type:"map"` + + // The type of the contact flow. For descriptions of the available types, see + // Choose a Contact Flow Type (https://docs.aws.amazon.com/connect/latest/adminguide/create-contact-flow.html#contact-flow-types) + // in the Amazon Connect Administrator Guide. + Type *string `type:"string" enum:"ContactFlowType"` +} + +// String returns the string representation +func (s ContactFlow) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ContactFlow) GoString() string { + return s.String() +} + +// SetArn sets the Arn field's value. +func (s *ContactFlow) SetArn(v string) *ContactFlow { + s.Arn = &v + return s +} + +// SetContent sets the Content field's value. +func (s *ContactFlow) SetContent(v string) *ContactFlow { + s.Content = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *ContactFlow) SetDescription(v string) *ContactFlow { + s.Description = &v + return s +} + +// SetId sets the Id field's value. +func (s *ContactFlow) SetId(v string) *ContactFlow { + s.Id = &v + return s +} + +// SetName sets the Name field's value. +func (s *ContactFlow) SetName(v string) *ContactFlow { + s.Name = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *ContactFlow) SetTags(v map[string]*string) *ContactFlow { + s.Tags = v + return s +} + +// SetType sets the Type field's value. +func (s *ContactFlow) SetType(v string) *ContactFlow { + s.Type = &v + return s +} + +// The contact flow has not been published. +type ContactFlowNotPublishedException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ContactFlowNotPublishedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ContactFlowNotPublishedException) GoString() string { + return s.String() +} + +func newErrorContactFlowNotPublishedException(v protocol.ResponseMetadata) error { + return &ContactFlowNotPublishedException{ + RespMetadata: v, + } +} + +// Code returns the exception type name. +func (s *ContactFlowNotPublishedException) Code() string { + return "ContactFlowNotPublishedException" +} + +// Message returns the exception's message. +func (s *ContactFlowNotPublishedException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *ContactFlowNotPublishedException) OrigErr() error { + return nil +} + +func (s *ContactFlowNotPublishedException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s *ContactFlowNotPublishedException) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *ContactFlowNotPublishedException) RequestID() string { + return s.RespMetadata.RequestID +} + +// Contains summary information about a contact flow. +// +// You can also create and update contact flows using the Amazon Connect Flow +// language (https://docs.aws.amazon.com/connect/latest/adminguide/flow-language.html). +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 `min:"1" 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 +} + +// The contact with the specified ID is not active or does not exist. +type ContactNotFoundException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + // The message. + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ContactNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ContactNotFoundException) GoString() string { + return s.String() +} + +func newErrorContactNotFoundException(v protocol.ResponseMetadata) error { + return &ContactNotFoundException{ + RespMetadata: v, + } +} + +// Code returns the exception type name. +func (s *ContactNotFoundException) Code() string { + return "ContactNotFoundException" +} + +// Message returns the exception's message. +func (s *ContactNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *ContactNotFoundException) OrigErr() error { + return nil +} + +func (s *ContactNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s *ContactNotFoundException) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *ContactNotFoundException) RequestID() string { + return s.RespMetadata.RequestID +} + +type CreateContactFlowInput struct { + _ struct{} `type:"structure"` + + // The content of the contact flow. + // + // Content is a required field + Content *string `type:"string" required:"true"` + + // The description of the contact flow. + Description *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 contact flow. + // + // Name is a required field + Name *string `min:"1" type:"string" required:"true"` + + // One or more tags. + Tags map[string]*string `min:"1" type:"map"` + + // The type of the contact flow. For descriptions of the available types, see + // Choose a Contact Flow Type (https://docs.aws.amazon.com/connect/latest/adminguide/create-contact-flow.html#contact-flow-types) + // in the Amazon Connect Administrator Guide. + // + // Type is a required field + Type *string `type:"string" required:"true" enum:"ContactFlowType"` +} + +// String returns the string representation +func (s CreateContactFlowInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateContactFlowInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateContactFlowInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateContactFlowInput"} + if s.Content == nil { + invalidParams.Add(request.NewErrParamRequired("Content")) + } + 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.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + } + if s.Tags != nil && len(s.Tags) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Tags", 1)) + } + if s.Type == nil { + invalidParams.Add(request.NewErrParamRequired("Type")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetContent sets the Content field's value. +func (s *CreateContactFlowInput) SetContent(v string) *CreateContactFlowInput { + s.Content = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *CreateContactFlowInput) SetDescription(v string) *CreateContactFlowInput { + s.Description = &v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *CreateContactFlowInput) SetInstanceId(v string) *CreateContactFlowInput { + s.InstanceId = &v + return s +} + +// SetName sets the Name field's value. +func (s *CreateContactFlowInput) SetName(v string) *CreateContactFlowInput { + s.Name = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateContactFlowInput) SetTags(v map[string]*string) *CreateContactFlowInput { + s.Tags = v + return s +} + +// SetType sets the Type field's value. +func (s *CreateContactFlowInput) SetType(v string) *CreateContactFlowInput { + s.Type = &v + return s +} + +type CreateContactFlowOutput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the contact flow. + ContactFlowArn *string `type:"string"` + + // The identifier of the contact flow. + ContactFlowId *string `type:"string"` +} + +// String returns the string representation +func (s CreateContactFlowOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateContactFlowOutput) GoString() string { + return s.String() +} + +// SetContactFlowArn sets the ContactFlowArn field's value. +func (s *CreateContactFlowOutput) SetContactFlowArn(v string) *CreateContactFlowOutput { + s.ContactFlowArn = &v + return s +} + +// SetContactFlowId sets the ContactFlowId field's value. +func (s *CreateContactFlowOutput) SetContactFlowId(v string) *CreateContactFlowOutput { + s.ContactFlowId = &v + return s +} + +type CreateInstanceInput struct { + _ struct{} `type:"structure"` + + // The idempotency token. + ClientToken *string `type:"string"` + + // The identifier for the directory. + DirectoryId *string `min:"12" type:"string"` + + // The type of identity management for your Amazon Connect users. + // + // IdentityManagementType is a required field + IdentityManagementType *string `type:"string" required:"true" enum:"DirectoryType"` + + // Whether your contact center handles incoming contacts. + // + // InboundCallsEnabled is a required field + InboundCallsEnabled *bool `type:"boolean" required:"true"` + + // The name for your instance. + InstanceAlias *string `min:"1" type:"string" sensitive:"true"` + + // Whether your contact center allows outbound calls. + // + // OutboundCallsEnabled is a required field + OutboundCallsEnabled *bool `type:"boolean" required:"true"` +} + +// String returns the string representation +func (s CreateInstanceInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateInstanceInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateInstanceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateInstanceInput"} + if s.DirectoryId != nil && len(*s.DirectoryId) < 12 { + invalidParams.Add(request.NewErrParamMinLen("DirectoryId", 12)) + } + if s.IdentityManagementType == nil { + invalidParams.Add(request.NewErrParamRequired("IdentityManagementType")) + } + if s.InboundCallsEnabled == nil { + invalidParams.Add(request.NewErrParamRequired("InboundCallsEnabled")) + } + if s.InstanceAlias != nil && len(*s.InstanceAlias) < 1 { + invalidParams.Add(request.NewErrParamMinLen("InstanceAlias", 1)) + } + if s.OutboundCallsEnabled == nil { + invalidParams.Add(request.NewErrParamRequired("OutboundCallsEnabled")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetClientToken sets the ClientToken field's value. +func (s *CreateInstanceInput) SetClientToken(v string) *CreateInstanceInput { + s.ClientToken = &v + return s +} + +// SetDirectoryId sets the DirectoryId field's value. +func (s *CreateInstanceInput) SetDirectoryId(v string) *CreateInstanceInput { + s.DirectoryId = &v + return s +} + +// SetIdentityManagementType sets the IdentityManagementType field's value. +func (s *CreateInstanceInput) SetIdentityManagementType(v string) *CreateInstanceInput { + s.IdentityManagementType = &v + return s +} + +// SetInboundCallsEnabled sets the InboundCallsEnabled field's value. +func (s *CreateInstanceInput) SetInboundCallsEnabled(v bool) *CreateInstanceInput { + s.InboundCallsEnabled = &v + return s +} + +// SetInstanceAlias sets the InstanceAlias field's value. +func (s *CreateInstanceInput) SetInstanceAlias(v string) *CreateInstanceInput { + s.InstanceAlias = &v + return s +} + +// SetOutboundCallsEnabled sets the OutboundCallsEnabled field's value. +func (s *CreateInstanceInput) SetOutboundCallsEnabled(v bool) *CreateInstanceInput { + s.OutboundCallsEnabled = &v + return s +} + +type CreateInstanceOutput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the instance. + Arn *string `type:"string"` + + // The identifier for the instance. + Id *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s CreateInstanceOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateInstanceOutput) GoString() string { + return s.String() +} + +// SetArn sets the Arn field's value. +func (s *CreateInstanceOutput) SetArn(v string) *CreateInstanceOutput { + s.Arn = &v + return s +} + +// SetId sets the Id field's value. +func (s *CreateInstanceOutput) SetId(v string) *CreateInstanceOutput { + s.Id = &v + return s +} + +type CreateRoutingProfileInput struct { + _ struct{} `type:"structure"` + + // The default outbound queue for the routing profile. + // + // DefaultOutboundQueueId is a required field + DefaultOutboundQueueId *string `type:"string" required:"true"` + + // Description of the routing profile. Must not be more than 250 characters. + // + // Description is a required field + Description *string `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"` + + // The channels agents can handle in the Contact Control Panel (CCP) for this + // routing profile. + // + // MediaConcurrencies is a required field + MediaConcurrencies []*MediaConcurrency `type:"list" required:"true"` + + // The name of the routing profile. Must not be more than 127 characters. + // + // Name is a required field + Name *string `min:"1" type:"string" required:"true"` + + // The inbound queues associated with the routing profile. If no queue is added, + // the agent can only make outbound calls. + QueueConfigs []*RoutingProfileQueueConfig `min:"1" type:"list"` + + // One or more tags. + Tags map[string]*string `min:"1" type:"map"` +} + +// String returns the string representation +func (s CreateRoutingProfileInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateRoutingProfileInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateRoutingProfileInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateRoutingProfileInput"} + if s.DefaultOutboundQueueId == nil { + invalidParams.Add(request.NewErrParamRequired("DefaultOutboundQueueId")) + } + if s.Description == nil { + invalidParams.Add(request.NewErrParamRequired("Description")) + } + if s.Description != nil && len(*s.Description) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Description", 1)) + } + 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.MediaConcurrencies == nil { + invalidParams.Add(request.NewErrParamRequired("MediaConcurrencies")) + } + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + } + if s.QueueConfigs != nil && len(s.QueueConfigs) < 1 { + invalidParams.Add(request.NewErrParamMinLen("QueueConfigs", 1)) + } + if s.Tags != nil && len(s.Tags) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Tags", 1)) + } + if s.MediaConcurrencies != nil { + for i, v := range s.MediaConcurrencies { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "MediaConcurrencies", i), err.(request.ErrInvalidParams)) + } + } + } + if s.QueueConfigs != nil { + for i, v := range s.QueueConfigs { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "QueueConfigs", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDefaultOutboundQueueId sets the DefaultOutboundQueueId field's value. +func (s *CreateRoutingProfileInput) SetDefaultOutboundQueueId(v string) *CreateRoutingProfileInput { + s.DefaultOutboundQueueId = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *CreateRoutingProfileInput) SetDescription(v string) *CreateRoutingProfileInput { + s.Description = &v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *CreateRoutingProfileInput) SetInstanceId(v string) *CreateRoutingProfileInput { + s.InstanceId = &v + return s +} + +// SetMediaConcurrencies sets the MediaConcurrencies field's value. +func (s *CreateRoutingProfileInput) SetMediaConcurrencies(v []*MediaConcurrency) *CreateRoutingProfileInput { + s.MediaConcurrencies = v + return s +} + +// SetName sets the Name field's value. +func (s *CreateRoutingProfileInput) SetName(v string) *CreateRoutingProfileInput { + s.Name = &v + return s +} + +// SetQueueConfigs sets the QueueConfigs field's value. +func (s *CreateRoutingProfileInput) SetQueueConfigs(v []*RoutingProfileQueueConfig) *CreateRoutingProfileInput { + s.QueueConfigs = v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateRoutingProfileInput) SetTags(v map[string]*string) *CreateRoutingProfileInput { + s.Tags = v + return s +} + +type CreateRoutingProfileOutput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the routing profile. + RoutingProfileArn *string `type:"string"` + + // The identifier of the routing profile. + RoutingProfileId *string `type:"string"` +} + +// String returns the string representation +func (s CreateRoutingProfileOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateRoutingProfileOutput) GoString() string { + return s.String() +} + +// SetRoutingProfileArn sets the RoutingProfileArn field's value. +func (s *CreateRoutingProfileOutput) SetRoutingProfileArn(v string) *CreateRoutingProfileOutput { + s.RoutingProfileArn = &v + return s +} + +// SetRoutingProfileId sets the RoutingProfileId field's value. +func (s *CreateRoutingProfileOutput) SetRoutingProfileId(v string) *CreateRoutingProfileOutput { + s.RoutingProfileId = &v + return s +} + +type CreateUserHierarchyGroupInput 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 name of the user hierarchy group. Must not be more than 100 characters. + // + // Name is a required field + Name *string `type:"string" required:"true"` + + // The identifier for the parent hierarchy group. The user hierarchy is created + // at level one if the parent group ID is null. + ParentGroupId *string `type:"string"` +} + +// String returns the string representation +func (s CreateUserHierarchyGroupInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateUserHierarchyGroupInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateUserHierarchyGroupInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateUserHierarchyGroupInput"} + 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.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetInstanceId sets the InstanceId field's value. +func (s *CreateUserHierarchyGroupInput) SetInstanceId(v string) *CreateUserHierarchyGroupInput { + s.InstanceId = &v + return s +} + +// SetName sets the Name field's value. +func (s *CreateUserHierarchyGroupInput) SetName(v string) *CreateUserHierarchyGroupInput { + s.Name = &v + return s +} + +// SetParentGroupId sets the ParentGroupId field's value. +func (s *CreateUserHierarchyGroupInput) SetParentGroupId(v string) *CreateUserHierarchyGroupInput { + s.ParentGroupId = &v + return s +} + +type CreateUserHierarchyGroupOutput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the hierarchy group. + HierarchyGroupArn *string `type:"string"` + + // The identifier of the hierarchy group. + HierarchyGroupId *string `type:"string"` +} + +// String returns the string representation +func (s CreateUserHierarchyGroupOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateUserHierarchyGroupOutput) GoString() string { + return s.String() +} + +// SetHierarchyGroupArn sets the HierarchyGroupArn field's value. +func (s *CreateUserHierarchyGroupOutput) SetHierarchyGroupArn(v string) *CreateUserHierarchyGroupOutput { + s.HierarchyGroupArn = &v + return s +} + +// SetHierarchyGroupId sets the HierarchyGroupId field's value. +func (s *CreateUserHierarchyGroupOutput) SetHierarchyGroupId(v string) *CreateUserHierarchyGroupOutput { + s.HierarchyGroupId = &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"` + + // One or more tags. + Tags map[string]*string `min:"1" type:"map"` + + // 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.Tags != nil && len(s.Tags) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Tags", 1)) + } + if s.Username == nil { + invalidParams.Add(request.NewErrParamRequired("Username")) + } + if s.Username != nil && len(*s.Username) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Username", 1)) + } + if s.IdentityInfo != nil { + if err := s.IdentityInfo.Validate(); err != nil { + invalidParams.AddNested("IdentityInfo", err.(request.ErrInvalidParams)) + } + } + if s.PhoneConfig != nil { + if err := s.PhoneConfig.Validate(); err != nil { + invalidParams.AddNested("PhoneConfig", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDirectoryUserId sets the DirectoryUserId field's value. +func (s *CreateUserInput) SetDirectoryUserId(v string) *CreateUserInput { + s.DirectoryUserId = &v + return s +} + +// SetHierarchyGroupId sets the HierarchyGroupId field's value. +func (s *CreateUserInput) SetHierarchyGroupId(v string) *CreateUserInput { + s.HierarchyGroupId = &v + return s +} + +// SetIdentityInfo sets the IdentityInfo field's value. +func (s *CreateUserInput) SetIdentityInfo(v *UserIdentityInfo) *CreateUserInput { + s.IdentityInfo = v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *CreateUserInput) SetInstanceId(v string) *CreateUserInput { + s.InstanceId = &v + return s +} + +// SetPassword sets the Password field's value. +func (s *CreateUserInput) SetPassword(v string) *CreateUserInput { + s.Password = &v + return s +} + +// SetPhoneConfig sets the PhoneConfig field's value. +func (s *CreateUserInput) SetPhoneConfig(v *UserPhoneConfig) *CreateUserInput { + s.PhoneConfig = v + return s +} + +// SetRoutingProfileId sets the RoutingProfileId field's value. +func (s *CreateUserInput) SetRoutingProfileId(v string) *CreateUserInput { + s.RoutingProfileId = &v + return s +} + +// SetSecurityProfileIds sets the SecurityProfileIds field's value. +func (s *CreateUserInput) SetSecurityProfileIds(v []*string) *CreateUserInput { + s.SecurityProfileIds = v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateUserInput) SetTags(v map[string]*string) *CreateUserInput { + s.Tags = v + return s +} + +// SetUsername sets the Username field's value. +func (s *CreateUserInput) SetUsername(v string) *CreateUserInput { + s.Username = &v + return s +} + +type CreateUserOutput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the user account. + UserArn *string `type:"string"` + + // The identifier of the user account. + UserId *string `type:"string"` +} + +// String returns the string representation +func (s CreateUserOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateUserOutput) GoString() string { + return s.String() +} + +// SetUserArn sets the UserArn field's value. +func (s *CreateUserOutput) SetUserArn(v string) *CreateUserOutput { + s.UserArn = &v + return s +} + +// SetUserId sets the UserId field's value. +func (s *CreateUserOutput) SetUserId(v string) *CreateUserOutput { + s.UserId = &v + return s +} + +// Contains credentials to use for federation. +type Credentials struct { + _ struct{} `type:"structure"` + + // 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. + AccessTokenExpiration *time.Time `type:"timestamp"` + + // Renews a token generated for a user to access the Amazon Connect instance. + RefreshToken *string `type:"string" sensitive:"true"` + + // Renews the expiration timer for a generated token. + RefreshTokenExpiration *time.Time `type:"timestamp"` +} + +// String returns the string representation +func (s Credentials) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Credentials) GoString() string { + return s.String() +} + +// SetAccessToken sets the AccessToken field's value. +func (s *Credentials) SetAccessToken(v string) *Credentials { + s.AccessToken = &v + return s +} + +// SetAccessTokenExpiration sets the AccessTokenExpiration field's value. +func (s *Credentials) SetAccessTokenExpiration(v time.Time) *Credentials { + s.AccessTokenExpiration = &v + return s +} + +// SetRefreshToken sets the RefreshToken field's value. +func (s *Credentials) SetRefreshToken(v string) *Credentials { + s.RefreshToken = &v + return s +} + +// SetRefreshTokenExpiration sets the RefreshTokenExpiration field's value. +func (s *Credentials) SetRefreshTokenExpiration(v time.Time) *Credentials { + s.RefreshTokenExpiration = &v + return s +} + +// Contains information about a real-time metric. For a description of each +// metric, see Real-time Metrics Definitions (https://docs.aws.amazon.com/connect/latest/adminguide/real-time-metrics-definitions.html) +// in the Amazon Connect Administrator Guide. +type CurrentMetric struct { + _ struct{} `type:"structure"` + + // The name of the metric. + Name *string `type:"string" enum:"CurrentMetricName"` + + // The unit for the metric. + Unit *string `type:"string" enum:"Unit"` +} + +// String returns the string representation +func (s CurrentMetric) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CurrentMetric) GoString() string { + return s.String() +} + +// SetName sets the Name field's value. +func (s *CurrentMetric) SetName(v string) *CurrentMetric { + s.Name = &v + return s +} + +// SetUnit sets the Unit field's value. +func (s *CurrentMetric) SetUnit(v string) *CurrentMetric { + s.Unit = &v + return s +} + +// Contains the data for a real-time metric. +type CurrentMetricData struct { + _ struct{} `type:"structure"` + + // Information about the metric. + Metric *CurrentMetric `type:"structure"` + + // The value of the metric. + Value *float64 `type:"double"` +} + +// String returns the string representation +func (s CurrentMetricData) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CurrentMetricData) GoString() string { + return s.String() +} -// A chat message. -type ChatMessage struct { +// SetMetric sets the Metric field's value. +func (s *CurrentMetricData) SetMetric(v *CurrentMetric) *CurrentMetricData { + s.Metric = v + return s +} + +// SetValue sets the Value field's value. +func (s *CurrentMetricData) SetValue(v float64) *CurrentMetricData { + s.Value = &v + return s +} + +// Contains information about a set of real-time metrics. +type CurrentMetricResult struct { _ struct{} `type:"structure"` - // The content of the chat message. + // The set of metrics. + Collections []*CurrentMetricData `type:"list"` + + // The dimensions for the metrics. + Dimensions *Dimensions `type:"structure"` +} + +// String returns the string representation +func (s CurrentMetricResult) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CurrentMetricResult) GoString() string { + return s.String() +} + +// SetCollections sets the Collections field's value. +func (s *CurrentMetricResult) SetCollections(v []*CurrentMetricData) *CurrentMetricResult { + s.Collections = v + return s +} + +// SetDimensions sets the Dimensions field's value. +func (s *CurrentMetricResult) SetDimensions(v *Dimensions) *CurrentMetricResult { + s.Dimensions = v + return s +} + +type DeleteInstanceInput struct { + _ struct{} `type:"structure"` + + // The identifier of the Amazon Connect instance. // - // Content is a required field - Content *string `min:"1" type:"string" required:"true"` + // InstanceId is a required field + InstanceId *string `location:"uri" locationName:"InstanceId" min:"1" type:"string" required:"true"` +} - // The type of the content. Supported types are text/plain. +// String returns the string representation +func (s DeleteInstanceInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteInstanceInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteInstanceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteInstanceInput"} + 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 *DeleteInstanceInput) SetInstanceId(v string) *DeleteInstanceInput { + s.InstanceId = &v + return s +} + +type DeleteInstanceOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DeleteInstanceOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteInstanceOutput) GoString() string { + return s.String() +} + +type DeleteUserHierarchyGroupInput struct { + _ struct{} `type:"structure"` + + // The identifier of the hierarchy group. // - // ContentType is a required field - ContentType *string `min:"1" type:"string" required:"true"` + // HierarchyGroupId is a required field + HierarchyGroupId *string `location:"uri" locationName:"HierarchyGroupId" 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 ChatMessage) String() string { +func (s DeleteUserHierarchyGroupInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ChatMessage) GoString() string { +func (s DeleteUserHierarchyGroupInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteUserHierarchyGroupInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteUserHierarchyGroupInput"} + if s.HierarchyGroupId == nil { + invalidParams.Add(request.NewErrParamRequired("HierarchyGroupId")) + } + if s.HierarchyGroupId != nil && len(*s.HierarchyGroupId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("HierarchyGroupId", 1)) + } + 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 +} + +// SetHierarchyGroupId sets the HierarchyGroupId field's value. +func (s *DeleteUserHierarchyGroupInput) SetHierarchyGroupId(v string) *DeleteUserHierarchyGroupInput { + s.HierarchyGroupId = &v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *DeleteUserHierarchyGroupInput) SetInstanceId(v string) *DeleteUserHierarchyGroupInput { + s.InstanceId = &v + return s +} + +type DeleteUserHierarchyGroupOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DeleteUserHierarchyGroupOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteUserHierarchyGroupOutput) GoString() string { + return s.String() +} + +type DeleteUserInput 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. + // + // UserId is a required field + UserId *string `location:"uri" locationName:"UserId" type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteUserInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteUserInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteUserInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteUserInput"} + 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 *DeleteUserInput) SetInstanceId(v string) *DeleteUserInput { + s.InstanceId = &v + return s +} + +// SetUserId sets the UserId field's value. +func (s *DeleteUserInput) SetUserId(v string) *DeleteUserInput { + s.UserId = &v + return s +} + +type DeleteUserOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DeleteUserOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteUserOutput) GoString() string { + return s.String() +} + +type DescribeContactFlowInput struct { + _ struct{} `type:"structure"` + + // The identifier of the contact flow. + // + // ContactFlowId is a required field + ContactFlowId *string `location:"uri" locationName:"ContactFlowId" 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 DescribeContactFlowInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeContactFlowInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *ChatMessage) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ChatMessage"} - if s.Content == nil { - invalidParams.Add(request.NewErrParamRequired("Content")) +func (s *DescribeContactFlowInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeContactFlowInput"} + if s.ContactFlowId == nil { + invalidParams.Add(request.NewErrParamRequired("ContactFlowId")) } - if s.Content != nil && len(*s.Content) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Content", 1)) + if s.ContactFlowId != nil && len(*s.ContactFlowId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ContactFlowId", 1)) } - if s.ContentType == nil { - invalidParams.Add(request.NewErrParamRequired("ContentType")) + if s.InstanceId == nil { + invalidParams.Add(request.NewErrParamRequired("InstanceId")) } - if s.ContentType != nil && len(*s.ContentType) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ContentType", 1)) + if s.InstanceId != nil && len(*s.InstanceId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("InstanceId", 1)) } if invalidParams.Len() > 0 { @@ -5716,312 +10187,224 @@ func (s *ChatMessage) Validate() error { return nil } -// SetContent sets the Content field's value. -func (s *ChatMessage) SetContent(v string) *ChatMessage { - s.Content = &v +// SetContactFlowId sets the ContactFlowId field's value. +func (s *DescribeContactFlowInput) SetContactFlowId(v string) *DescribeContactFlowInput { + s.ContactFlowId = &v return s } -// SetContentType sets the ContentType field's value. -func (s *ChatMessage) SetContentType(v string) *ChatMessage { - s.ContentType = &v +// SetInstanceId sets the InstanceId field's value. +func (s *DescribeContactFlowInput) SetInstanceId(v string) *DescribeContactFlowInput { + s.InstanceId = &v return s } -// Contains information about a contact flow. -type ContactFlow struct { +type DescribeContactFlowOutput struct { _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) of the contact flow. - Arn *string `type:"string"` - - // The content of the contact flow. - Content *string `type:"string"` - - // The description of the contact flow. - Description *string `type:"string"` - - // The identifier of the contact flow. - Id *string `type:"string"` - - // The name of the contact flow. - Name *string `min:"1" type:"string"` - - // One or more tags. - Tags map[string]*string `min:"1" type:"map"` - - // The type of the contact flow. For descriptions of the available types, see - // Choose a Contact Flow Type (https://docs.aws.amazon.com/connect/latest/adminguide/create-contact-flow.html#contact-flow-types) - // in the Amazon Connect Administrator Guide. - Type *string `type:"string" enum:"ContactFlowType"` + // Information about the contact flow. + ContactFlow *ContactFlow `type:"structure"` } // String returns the string representation -func (s ContactFlow) String() string { +func (s DescribeContactFlowOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ContactFlow) GoString() string { +func (s DescribeContactFlowOutput) GoString() string { return s.String() } -// SetArn sets the Arn field's value. -func (s *ContactFlow) SetArn(v string) *ContactFlow { - s.Arn = &v - return s -} - -// SetContent sets the Content field's value. -func (s *ContactFlow) SetContent(v string) *ContactFlow { - s.Content = &v - return s -} - -// SetDescription sets the Description field's value. -func (s *ContactFlow) SetDescription(v string) *ContactFlow { - s.Description = &v - return s -} - -// SetId sets the Id field's value. -func (s *ContactFlow) SetId(v string) *ContactFlow { - s.Id = &v - return s -} - -// SetName sets the Name field's value. -func (s *ContactFlow) SetName(v string) *ContactFlow { - s.Name = &v - return s -} - -// SetTags sets the Tags field's value. -func (s *ContactFlow) SetTags(v map[string]*string) *ContactFlow { - s.Tags = v +// SetContactFlow sets the ContactFlow field's value. +func (s *DescribeContactFlowOutput) SetContactFlow(v *ContactFlow) *DescribeContactFlowOutput { + s.ContactFlow = v return s } -// SetType sets the Type field's value. -func (s *ContactFlow) SetType(v string) *ContactFlow { - s.Type = &v - return s -} +type DescribeInstanceAttributeInput struct { + _ struct{} `type:"structure"` -// The contact flow has not been published. -type ContactFlowNotPublishedException struct { - _ struct{} `type:"structure"` - RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + // The type of attribute. + // + // AttributeType is a required field + AttributeType *string `location:"uri" locationName:"AttributeType" type:"string" required:"true" enum:"InstanceAttributeType"` - Message_ *string `locationName:"Message" 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"` } // String returns the string representation -func (s ContactFlowNotPublishedException) String() string { +func (s DescribeInstanceAttributeInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ContactFlowNotPublishedException) GoString() string { +func (s DescribeInstanceAttributeInput) GoString() string { return s.String() } -func newErrorContactFlowNotPublishedException(v protocol.ResponseMetadata) error { - return &ContactFlowNotPublishedException{ - RespMetadata: v, +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeInstanceAttributeInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeInstanceAttributeInput"} + if s.AttributeType == nil { + invalidParams.Add(request.NewErrParamRequired("AttributeType")) } -} - -// Code returns the exception type name. -func (s *ContactFlowNotPublishedException) Code() string { - return "ContactFlowNotPublishedException" -} - -// Message returns the exception's message. -func (s *ContactFlowNotPublishedException) Message() string { - if s.Message_ != nil { - return *s.Message_ + if s.AttributeType != nil && len(*s.AttributeType) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AttributeType", 1)) + } + if s.InstanceId == nil { + invalidParams.Add(request.NewErrParamRequired("InstanceId")) + } + if s.InstanceId != nil && len(*s.InstanceId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("InstanceId", 1)) } - return "" -} -// OrigErr always returns nil, satisfies awserr.Error interface. -func (s *ContactFlowNotPublishedException) OrigErr() error { + if invalidParams.Len() > 0 { + return invalidParams + } return nil } -func (s *ContactFlowNotPublishedException) Error() string { - return fmt.Sprintf("%s: %s", s.Code(), s.Message()) -} - -// Status code returns the HTTP status code for the request's response error. -func (s *ContactFlowNotPublishedException) StatusCode() int { - return s.RespMetadata.StatusCode +// SetAttributeType sets the AttributeType field's value. +func (s *DescribeInstanceAttributeInput) SetAttributeType(v string) *DescribeInstanceAttributeInput { + s.AttributeType = &v + return s } -// RequestID returns the service's response RequestID for request. -func (s *ContactFlowNotPublishedException) RequestID() string { - return s.RespMetadata.RequestID +// SetInstanceId sets the InstanceId field's value. +func (s *DescribeInstanceAttributeInput) SetInstanceId(v string) *DescribeInstanceAttributeInput { + s.InstanceId = &v + return s } -// Contains summary information about a contact flow. -// -// You can also create and update contact flows using the Amazon Connect Flow -// language (https://docs.aws.amazon.com/connect/latest/adminguide/flow-language.html). -type ContactFlowSummary struct { +type DescribeInstanceAttributeOutput 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 `min:"1" type:"string"` + // The type of attribute. + Attribute *Attribute `type:"structure"` } // String returns the string representation -func (s ContactFlowSummary) String() string { +func (s DescribeInstanceAttributeOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ContactFlowSummary) GoString() string { +func (s DescribeInstanceAttributeOutput) 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 +// SetAttribute sets the Attribute field's value. +func (s *DescribeInstanceAttributeOutput) SetAttribute(v *Attribute) *DescribeInstanceAttributeOutput { + s.Attribute = v return s } -// The contact with the specified ID is not active or does not exist. -type ContactNotFoundException struct { - _ struct{} `type:"structure"` - RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` +type DescribeInstanceInput struct { + _ struct{} `type:"structure"` - // The message. - Message_ *string `locationName:"Message" 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"` } // String returns the string representation -func (s ContactNotFoundException) String() string { +func (s DescribeInstanceInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ContactNotFoundException) GoString() string { +func (s DescribeInstanceInput) GoString() string { return s.String() } -func newErrorContactNotFoundException(v protocol.ResponseMetadata) error { - return &ContactNotFoundException{ - RespMetadata: v, +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeInstanceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeInstanceInput"} + if s.InstanceId == nil { + invalidParams.Add(request.NewErrParamRequired("InstanceId")) + } + if s.InstanceId != nil && len(*s.InstanceId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("InstanceId", 1)) } -} - -// Code returns the exception type name. -func (s *ContactNotFoundException) Code() string { - return "ContactNotFoundException" -} -// Message returns the exception's message. -func (s *ContactNotFoundException) Message() string { - if s.Message_ != nil { - return *s.Message_ + if invalidParams.Len() > 0 { + return invalidParams } - return "" + return nil } -// OrigErr always returns nil, satisfies awserr.Error interface. -func (s *ContactNotFoundException) OrigErr() error { - return nil +// SetInstanceId sets the InstanceId field's value. +func (s *DescribeInstanceInput) SetInstanceId(v string) *DescribeInstanceInput { + s.InstanceId = &v + return s } -func (s *ContactNotFoundException) Error() string { - return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +type DescribeInstanceOutput struct { + _ struct{} `type:"structure"` + + // The name of the instance. + Instance *Instance `type:"structure"` } -// Status code returns the HTTP status code for the request's response error. -func (s *ContactNotFoundException) StatusCode() int { - return s.RespMetadata.StatusCode +// String returns the string representation +func (s DescribeInstanceOutput) String() string { + return awsutil.Prettify(s) } -// RequestID returns the service's response RequestID for request. -func (s *ContactNotFoundException) RequestID() string { - return s.RespMetadata.RequestID +// GoString returns the string representation +func (s DescribeInstanceOutput) GoString() string { + return s.String() +} + +// SetInstance sets the Instance field's value. +func (s *DescribeInstanceOutput) SetInstance(v *Instance) *DescribeInstanceOutput { + s.Instance = v + return s } -type CreateContactFlowInput struct { +type DescribeInstanceStorageConfigInput struct { _ struct{} `type:"structure"` - // The content of the contact flow. + // The existing association identifier that uniquely identifies the resource + // type and storage config for the given instance ID. // - // Content is a required field - Content *string `type:"string" required:"true"` - - // The description of the contact flow. - Description *string `type:"string"` + // AssociationId is a required field + AssociationId *string `location:"uri" locationName:"AssociationId" 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"` - // The name of the contact flow. - // - // Name is a required field - Name *string `min:"1" type:"string" required:"true"` - - // One or more tags. - Tags map[string]*string `min:"1" type:"map"` - - // The type of the contact flow. For descriptions of the available types, see - // Choose a Contact Flow Type (https://docs.aws.amazon.com/connect/latest/adminguide/create-contact-flow.html#contact-flow-types) - // in the Amazon Connect Administrator Guide. + // A valid resource type. // - // Type is a required field - Type *string `type:"string" required:"true" enum:"ContactFlowType"` + // ResourceType is a required field + ResourceType *string `location:"querystring" locationName:"resourceType" type:"string" required:"true" enum:"InstanceStorageResourceType"` } // String returns the string representation -func (s CreateContactFlowInput) String() string { +func (s DescribeInstanceStorageConfigInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateContactFlowInput) GoString() string { +func (s DescribeInstanceStorageConfigInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *CreateContactFlowInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateContactFlowInput"} - if s.Content == nil { - invalidParams.Add(request.NewErrParamRequired("Content")) +func (s *DescribeInstanceStorageConfigInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeInstanceStorageConfigInput"} + if s.AssociationId == nil { + invalidParams.Add(request.NewErrParamRequired("AssociationId")) + } + if s.AssociationId != nil && len(*s.AssociationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AssociationId", 1)) } if s.InstanceId == nil { invalidParams.Add(request.NewErrParamRequired("InstanceId")) @@ -6029,17 +10412,8 @@ func (s *CreateContactFlowInput) Validate() error { if s.InstanceId != nil && len(*s.InstanceId) < 1 { invalidParams.Add(request.NewErrParamMinLen("InstanceId", 1)) } - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) - } - if s.Name != nil && len(*s.Name) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Name", 1)) - } - if s.Tags != nil && len(s.Tags) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Tags", 1)) - } - if s.Type == nil { - invalidParams.Add(request.NewErrParamRequired("Type")) + if s.ResourceType == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceType")) } if invalidParams.Len() > 0 { @@ -6048,132 +10422,160 @@ func (s *CreateContactFlowInput) Validate() error { return nil } -// SetContent sets the Content field's value. -func (s *CreateContactFlowInput) SetContent(v string) *CreateContactFlowInput { - s.Content = &v - return s -} - -// SetDescription sets the Description field's value. -func (s *CreateContactFlowInput) SetDescription(v string) *CreateContactFlowInput { - s.Description = &v +// SetAssociationId sets the AssociationId field's value. +func (s *DescribeInstanceStorageConfigInput) SetAssociationId(v string) *DescribeInstanceStorageConfigInput { + s.AssociationId = &v return s } // SetInstanceId sets the InstanceId field's value. -func (s *CreateContactFlowInput) SetInstanceId(v string) *CreateContactFlowInput { +func (s *DescribeInstanceStorageConfigInput) SetInstanceId(v string) *DescribeInstanceStorageConfigInput { s.InstanceId = &v return s } -// SetName sets the Name field's value. -func (s *CreateContactFlowInput) SetName(v string) *CreateContactFlowInput { - s.Name = &v +// SetResourceType sets the ResourceType field's value. +func (s *DescribeInstanceStorageConfigInput) SetResourceType(v string) *DescribeInstanceStorageConfigInput { + s.ResourceType = &v return s } -// SetTags sets the Tags field's value. -func (s *CreateContactFlowInput) SetTags(v map[string]*string) *CreateContactFlowInput { - s.Tags = v - return s +type DescribeInstanceStorageConfigOutput struct { + _ struct{} `type:"structure"` + + // A valid storage type. + StorageConfig *InstanceStorageConfig `type:"structure"` } -// SetType sets the Type field's value. -func (s *CreateContactFlowInput) SetType(v string) *CreateContactFlowInput { - s.Type = &v +// String returns the string representation +func (s DescribeInstanceStorageConfigOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeInstanceStorageConfigOutput) GoString() string { + return s.String() +} + +// SetStorageConfig sets the StorageConfig field's value. +func (s *DescribeInstanceStorageConfigOutput) SetStorageConfig(v *InstanceStorageConfig) *DescribeInstanceStorageConfigOutput { + s.StorageConfig = v return s } -type CreateContactFlowOutput struct { +type DescribeRoutingProfileInput struct { _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) of the contact flow. - ContactFlowArn *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 identifier of the contact flow. - ContactFlowId *string `type:"string"` + // The identifier of the routing profile. + // + // RoutingProfileId is a required field + RoutingProfileId *string `location:"uri" locationName:"RoutingProfileId" type:"string" required:"true"` } // String returns the string representation -func (s CreateContactFlowOutput) String() string { +func (s DescribeRoutingProfileInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateContactFlowOutput) GoString() string { +func (s DescribeRoutingProfileInput) GoString() string { return s.String() } -// SetContactFlowArn sets the ContactFlowArn field's value. -func (s *CreateContactFlowOutput) SetContactFlowArn(v string) *CreateContactFlowOutput { - s.ContactFlowArn = &v +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeRoutingProfileInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeRoutingProfileInput"} + 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.RoutingProfileId == nil { + invalidParams.Add(request.NewErrParamRequired("RoutingProfileId")) + } + if s.RoutingProfileId != nil && len(*s.RoutingProfileId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RoutingProfileId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetInstanceId sets the InstanceId field's value. +func (s *DescribeRoutingProfileInput) SetInstanceId(v string) *DescribeRoutingProfileInput { + s.InstanceId = &v return s } -// SetContactFlowId sets the ContactFlowId field's value. -func (s *CreateContactFlowOutput) SetContactFlowId(v string) *CreateContactFlowOutput { - s.ContactFlowId = &v +// SetRoutingProfileId sets the RoutingProfileId field's value. +func (s *DescribeRoutingProfileInput) SetRoutingProfileId(v string) *DescribeRoutingProfileInput { + s.RoutingProfileId = &v return s } -type CreateRoutingProfileInput struct { +type DescribeRoutingProfileOutput struct { _ struct{} `type:"structure"` - // The default outbound queue for the routing profile. - // - // DefaultOutboundQueueId is a required field - DefaultOutboundQueueId *string `type:"string" required:"true"` + // The routing profile. + RoutingProfile *RoutingProfile `type:"structure"` +} - // Description of the routing profile. Must not be more than 250 characters. +// String returns the string representation +func (s DescribeRoutingProfileOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeRoutingProfileOutput) GoString() string { + return s.String() +} + +// SetRoutingProfile sets the RoutingProfile field's value. +func (s *DescribeRoutingProfileOutput) SetRoutingProfile(v *RoutingProfile) *DescribeRoutingProfileOutput { + s.RoutingProfile = v + return s +} + +type DescribeUserHierarchyGroupInput struct { + _ struct{} `type:"structure"` + + // The identifier of the hierarchy group. // - // Description is a required field - Description *string `min:"1" type:"string" required:"true"` + // HierarchyGroupId is a required field + HierarchyGroupId *string `location:"uri" locationName:"HierarchyGroupId" 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"` - - // The channels agents can handle in the Contact Control Panel (CCP) for this - // routing profile. - // - // MediaConcurrencies is a required field - MediaConcurrencies []*MediaConcurrency `type:"list" required:"true"` - - // The name of the routing profile. Must not be more than 127 characters. - // - // Name is a required field - Name *string `min:"1" type:"string" required:"true"` - - // The inbound queues associated with the routing profile. If no queue is added, - // the agent can only make outbound calls. - QueueConfigs []*RoutingProfileQueueConfig `min:"1" type:"list"` - - // One or more tags. - Tags map[string]*string `min:"1" type:"map"` } // String returns the string representation -func (s CreateRoutingProfileInput) String() string { +func (s DescribeUserHierarchyGroupInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateRoutingProfileInput) GoString() string { +func (s DescribeUserHierarchyGroupInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *CreateRoutingProfileInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateRoutingProfileInput"} - if s.DefaultOutboundQueueId == nil { - invalidParams.Add(request.NewErrParamRequired("DefaultOutboundQueueId")) - } - if s.Description == nil { - invalidParams.Add(request.NewErrParamRequired("Description")) +func (s *DescribeUserHierarchyGroupInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeUserHierarchyGroupInput"} + if s.HierarchyGroupId == nil { + invalidParams.Add(request.NewErrParamRequired("HierarchyGroupId")) } - if s.Description != nil && len(*s.Description) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Description", 1)) + if s.HierarchyGroupId != nil && len(*s.HierarchyGroupId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("HierarchyGroupId", 1)) } if s.InstanceId == nil { invalidParams.Add(request.NewErrParamRequired("InstanceId")) @@ -6181,41 +10583,6 @@ func (s *CreateRoutingProfileInput) Validate() error { if s.InstanceId != nil && len(*s.InstanceId) < 1 { invalidParams.Add(request.NewErrParamMinLen("InstanceId", 1)) } - if s.MediaConcurrencies == nil { - invalidParams.Add(request.NewErrParamRequired("MediaConcurrencies")) - } - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) - } - if s.Name != nil && len(*s.Name) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Name", 1)) - } - if s.QueueConfigs != nil && len(s.QueueConfigs) < 1 { - invalidParams.Add(request.NewErrParamMinLen("QueueConfigs", 1)) - } - if s.Tags != nil && len(s.Tags) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Tags", 1)) - } - if s.MediaConcurrencies != nil { - for i, v := range s.MediaConcurrencies { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "MediaConcurrencies", i), err.(request.ErrInvalidParams)) - } - } - } - if s.QueueConfigs != nil { - for i, v := range s.QueueConfigs { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "QueueConfigs", i), err.(request.ErrInvalidParams)) - } - } - } if invalidParams.Len() > 0 { return invalidParams @@ -6223,81 +10590,106 @@ func (s *CreateRoutingProfileInput) Validate() error { return nil } -// SetDefaultOutboundQueueId sets the DefaultOutboundQueueId field's value. -func (s *CreateRoutingProfileInput) SetDefaultOutboundQueueId(v string) *CreateRoutingProfileInput { - s.DefaultOutboundQueueId = &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 } -// SetDescription sets the Description field's value. -func (s *CreateRoutingProfileInput) SetDescription(v string) *CreateRoutingProfileInput { - s.Description = &v +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 } -// SetInstanceId sets the InstanceId field's value. -func (s *CreateRoutingProfileInput) SetInstanceId(v string) *CreateRoutingProfileInput { - s.InstanceId = &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"` } -// SetMediaConcurrencies sets the MediaConcurrencies field's value. -func (s *CreateRoutingProfileInput) SetMediaConcurrencies(v []*MediaConcurrency) *CreateRoutingProfileInput { - s.MediaConcurrencies = v - return s +// String returns the string representation +func (s DescribeUserHierarchyStructureInput) String() string { + return awsutil.Prettify(s) } -// SetName sets the Name field's value. -func (s *CreateRoutingProfileInput) SetName(v string) *CreateRoutingProfileInput { - s.Name = &v - return s +// GoString returns the string representation +func (s DescribeUserHierarchyStructureInput) GoString() string { + return s.String() } -// SetQueueConfigs sets the QueueConfigs field's value. -func (s *CreateRoutingProfileInput) SetQueueConfigs(v []*RoutingProfileQueueConfig) *CreateRoutingProfileInput { - s.QueueConfigs = v - return s +// 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 } -// SetTags sets the Tags field's value. -func (s *CreateRoutingProfileInput) SetTags(v map[string]*string) *CreateRoutingProfileInput { - s.Tags = v +// SetInstanceId sets the InstanceId field's value. +func (s *DescribeUserHierarchyStructureInput) SetInstanceId(v string) *DescribeUserHierarchyStructureInput { + s.InstanceId = &v return s } -type CreateRoutingProfileOutput struct { +type DescribeUserHierarchyStructureOutput struct { _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) of the routing profile. - RoutingProfileArn *string `type:"string"` - - // The identifier of the routing profile. - RoutingProfileId *string `type:"string"` + // Information about the hierarchy structure. + HierarchyStructure *HierarchyStructure `type:"structure"` } // String returns the string representation -func (s CreateRoutingProfileOutput) String() string { +func (s DescribeUserHierarchyStructureOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateRoutingProfileOutput) GoString() string { +func (s DescribeUserHierarchyStructureOutput) GoString() string { return s.String() } -// SetRoutingProfileArn sets the RoutingProfileArn field's value. -func (s *CreateRoutingProfileOutput) SetRoutingProfileArn(v string) *CreateRoutingProfileOutput { - s.RoutingProfileArn = &v - return s -} - -// SetRoutingProfileId sets the RoutingProfileId field's value. -func (s *CreateRoutingProfileOutput) SetRoutingProfileId(v string) *CreateRoutingProfileOutput { - s.RoutingProfileId = &v +// SetHierarchyStructure sets the HierarchyStructure field's value. +func (s *DescribeUserHierarchyStructureOutput) SetHierarchyStructure(v *HierarchyStructure) *DescribeUserHierarchyStructureOutput { + s.HierarchyStructure = v return s } -type CreateUserHierarchyGroupInput struct { +type DescribeUserInput struct { _ struct{} `type:"structure"` // The identifier of the Amazon Connect instance. @@ -6305,37 +10697,36 @@ type CreateUserHierarchyGroupInput struct { // InstanceId is a required field InstanceId *string `location:"uri" locationName:"InstanceId" min:"1" type:"string" required:"true"` - // The name of the user hierarchy group. Must not be more than 100 characters. + // The identifier of the user account. // - // Name is a required field - Name *string `type:"string" required:"true"` - - // The identifier for the parent hierarchy group. The user hierarchy is created - // at level one if the parent group ID is null. - ParentGroupId *string `type:"string"` + // UserId is a required field + UserId *string `location:"uri" locationName:"UserId" type:"string" required:"true"` } // String returns the string representation -func (s CreateUserHierarchyGroupInput) String() string { +func (s DescribeUserInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateUserHierarchyGroupInput) GoString() string { +func (s DescribeUserInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *CreateUserHierarchyGroupInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateUserHierarchyGroupInput"} +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.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) + 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 { @@ -6345,162 +10736,165 @@ func (s *CreateUserHierarchyGroupInput) Validate() error { } // SetInstanceId sets the InstanceId field's value. -func (s *CreateUserHierarchyGroupInput) SetInstanceId(v string) *CreateUserHierarchyGroupInput { +func (s *DescribeUserInput) SetInstanceId(v string) *DescribeUserInput { s.InstanceId = &v return s } -// SetName sets the Name field's value. -func (s *CreateUserHierarchyGroupInput) SetName(v string) *CreateUserHierarchyGroupInput { - s.Name = &v +// SetUserId sets the UserId field's value. +func (s *DescribeUserInput) SetUserId(v string) *DescribeUserInput { + s.UserId = &v return s } -// SetParentGroupId sets the ParentGroupId field's value. -func (s *CreateUserHierarchyGroupInput) SetParentGroupId(v string) *CreateUserHierarchyGroupInput { - s.ParentGroupId = &v - return s +type DescribeUserOutput struct { + _ struct{} `type:"structure"` + + // Information about the user account and configuration settings. + User *User `type:"structure"` } -type CreateUserHierarchyGroupOutput struct { - _ struct{} `type:"structure"` +// String returns the string representation +func (s DescribeUserOutput) String() string { + return awsutil.Prettify(s) +} - // The Amazon Resource Name (ARN) of the hierarchy group. - HierarchyGroupArn *string `type:"string"` +// GoString returns the string representation +func (s DescribeUserOutput) GoString() string { + return s.String() +} - // The identifier of the hierarchy group. - HierarchyGroupId *string `type:"string"` +// SetUser sets the User field's value. +func (s *DescribeUserOutput) SetUser(v *User) *DescribeUserOutput { + s.User = v + return s +} + +// Outbound calls to the destination number are not allowed. +type DestinationNotAllowedException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + // The message. + Message_ *string `locationName:"Message" type:"string"` } // String returns the string representation -func (s CreateUserHierarchyGroupOutput) String() string { +func (s DestinationNotAllowedException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateUserHierarchyGroupOutput) GoString() string { +func (s DestinationNotAllowedException) GoString() string { return s.String() } -// SetHierarchyGroupArn sets the HierarchyGroupArn field's value. -func (s *CreateUserHierarchyGroupOutput) SetHierarchyGroupArn(v string) *CreateUserHierarchyGroupOutput { - s.HierarchyGroupArn = &v - return s +func newErrorDestinationNotAllowedException(v protocol.ResponseMetadata) error { + return &DestinationNotAllowedException{ + RespMetadata: v, + } } -// SetHierarchyGroupId sets the HierarchyGroupId field's value. -func (s *CreateUserHierarchyGroupOutput) SetHierarchyGroupId(v string) *CreateUserHierarchyGroupOutput { - s.HierarchyGroupId = &v - return s +// Code returns the exception type name. +func (s *DestinationNotAllowedException) Code() string { + return "DestinationNotAllowedException" } -type CreateUserInput struct { - _ struct{} `type:"structure"` +// Message returns the exception's message. +func (s *DestinationNotAllowedException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} - // 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"` +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *DestinationNotAllowedException) OrigErr() error { + return nil +} - // The identifier of the hierarchy group for the user. - HierarchyGroupId *string `type:"string"` +func (s *DestinationNotAllowedException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} - // The information about the identity of the user. - IdentityInfo *UserIdentityInfo `type:"structure"` +// Status code returns the HTTP status code for the request's response error. +func (s *DestinationNotAllowedException) StatusCode() int { + return s.RespMetadata.StatusCode +} - // The identifier of the Amazon Connect instance. - // - // InstanceId is a required field - InstanceId *string `location:"uri" locationName:"InstanceId" min:"1" type:"string" required:"true"` +// RequestID returns the service's response RequestID for request. +func (s *DestinationNotAllowedException) RequestID() string { + return s.RespMetadata.RequestID +} - // 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"` +// Contains information about the dimensions for a set of metrics. +type Dimensions struct { + _ struct{} `type:"structure"` - // The phone settings for the user. - // - // PhoneConfig is a required field - PhoneConfig *UserPhoneConfig `type:"structure" required:"true"` + // The channel used for grouping and filters. + Channel *string `type:"string" enum:"Channel"` - // The identifier of the routing profile for the user. - // - // RoutingProfileId is a required field - RoutingProfileId *string `type:"string" required:"true"` + // 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 +} + +// SetQueue sets the Queue field's value. +func (s *Dimensions) SetQueue(v *QueueReference) *Dimensions { + s.Queue = v + return s +} - // The identifier of the security profile for the user. - // - // SecurityProfileIds is a required field - SecurityProfileIds []*string `min:"1" type:"list" required:"true"` +type DisassociateApprovedOriginInput struct { + _ struct{} `type:"structure"` - // One or more tags. - Tags map[string]*string `min:"1" type:"map"` + // 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 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_-.\@]+. + // The domain URL of the integrated application. // - // Username is a required field - Username *string `min:"1" type:"string" required:"true"` + // Origin is a required field + Origin *string `location:"querystring" locationName:"origin" type:"string" required:"true"` } // String returns the string representation -func (s CreateUserInput) String() string { +func (s DisassociateApprovedOriginInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateUserInput) GoString() string { +func (s DisassociateApprovedOriginInput) 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"} +func (s *DisassociateApprovedOriginInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DisassociateApprovedOriginInput"} 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.Tags != nil && len(s.Tags) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Tags", 1)) - } - if s.Username == nil { - invalidParams.Add(request.NewErrParamRequired("Username")) - } - if s.Username != nil && len(*s.Username) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Username", 1)) - } - if s.IdentityInfo != nil { - if err := s.IdentityInfo.Validate(); err != nil { - invalidParams.AddNested("IdentityInfo", err.(request.ErrInvalidParams)) - } - } - if s.PhoneConfig != nil { - if err := s.PhoneConfig.Validate(); err != nil { - invalidParams.AddNested("PhoneConfig", err.(request.ErrInvalidParams)) - } + if s.Origin == nil { + invalidParams.Add(request.NewErrParamRequired("Origin")) } if invalidParams.Len() > 0 { @@ -6509,283 +10903,225 @@ func (s *CreateUserInput) Validate() error { return nil } -// SetDirectoryUserId sets the DirectoryUserId field's value. -func (s *CreateUserInput) SetDirectoryUserId(v string) *CreateUserInput { - s.DirectoryUserId = &v - return s -} - -// SetHierarchyGroupId sets the HierarchyGroupId field's value. -func (s *CreateUserInput) SetHierarchyGroupId(v string) *CreateUserInput { - s.HierarchyGroupId = &v - return s -} - -// SetIdentityInfo sets the IdentityInfo field's value. -func (s *CreateUserInput) SetIdentityInfo(v *UserIdentityInfo) *CreateUserInput { - s.IdentityInfo = v - return s -} - // SetInstanceId sets the InstanceId field's value. -func (s *CreateUserInput) SetInstanceId(v string) *CreateUserInput { +func (s *DisassociateApprovedOriginInput) SetInstanceId(v string) *DisassociateApprovedOriginInput { s.InstanceId = &v return s } -// SetPassword sets the Password field's value. -func (s *CreateUserInput) SetPassword(v string) *CreateUserInput { - s.Password = &v - return s -} - -// SetPhoneConfig sets the PhoneConfig field's value. -func (s *CreateUserInput) SetPhoneConfig(v *UserPhoneConfig) *CreateUserInput { - s.PhoneConfig = v - return s -} - -// SetRoutingProfileId sets the RoutingProfileId field's value. -func (s *CreateUserInput) SetRoutingProfileId(v string) *CreateUserInput { - s.RoutingProfileId = &v - return s -} - -// SetSecurityProfileIds sets the SecurityProfileIds field's value. -func (s *CreateUserInput) SetSecurityProfileIds(v []*string) *CreateUserInput { - s.SecurityProfileIds = v - return s -} - -// SetTags sets the Tags field's value. -func (s *CreateUserInput) SetTags(v map[string]*string) *CreateUserInput { - s.Tags = v - return s -} - -// SetUsername sets the Username field's value. -func (s *CreateUserInput) SetUsername(v string) *CreateUserInput { - s.Username = &v +// SetOrigin sets the Origin field's value. +func (s *DisassociateApprovedOriginInput) SetOrigin(v string) *DisassociateApprovedOriginInput { + s.Origin = &v return s } -type CreateUserOutput struct { +type DisassociateApprovedOriginOutput struct { _ struct{} `type:"structure"` - - // The Amazon Resource Name (ARN) of the user account. - UserArn *string `type:"string"` - - // The identifier of the user account. - UserId *string `type:"string"` } // String returns the string representation -func (s CreateUserOutput) String() string { +func (s DisassociateApprovedOriginOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateUserOutput) GoString() string { +func (s DisassociateApprovedOriginOutput) GoString() string { return s.String() } -// SetUserArn sets the UserArn field's value. -func (s *CreateUserOutput) SetUserArn(v string) *CreateUserOutput { - s.UserArn = &v - return s -} - -// SetUserId sets the UserId field's value. -func (s *CreateUserOutput) SetUserId(v string) *CreateUserOutput { - s.UserId = &v - return s -} - -// Contains credentials to use for federation. -type Credentials struct { +type DisassociateInstanceStorageConfigInput struct { _ struct{} `type:"structure"` - // 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. - AccessTokenExpiration *time.Time `type:"timestamp"` + // The existing association identifier that uniquely identifies the resource + // type and storage config for the given instance ID. + // + // AssociationId is a required field + AssociationId *string `location:"uri" locationName:"AssociationId" min:"1" type:"string" required:"true"` - // Renews a token generated for a user to access the Amazon Connect instance. - RefreshToken *string `type:"string" sensitive:"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"` - // Renews the expiration timer for a generated token. - RefreshTokenExpiration *time.Time `type:"timestamp"` + // A valid resource type. + // + // ResourceType is a required field + ResourceType *string `location:"querystring" locationName:"resourceType" type:"string" required:"true" enum:"InstanceStorageResourceType"` } // String returns the string representation -func (s Credentials) String() string { +func (s DisassociateInstanceStorageConfigInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s Credentials) GoString() string { +func (s DisassociateInstanceStorageConfigInput) GoString() string { return s.String() } -// SetAccessToken sets the AccessToken field's value. -func (s *Credentials) SetAccessToken(v string) *Credentials { - s.AccessToken = &v - return s +// Validate inspects the fields of the type to determine if they are valid. +func (s *DisassociateInstanceStorageConfigInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DisassociateInstanceStorageConfigInput"} + if s.AssociationId == nil { + invalidParams.Add(request.NewErrParamRequired("AssociationId")) + } + if s.AssociationId != nil && len(*s.AssociationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AssociationId", 1)) + } + 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.ResourceType == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceType")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// SetAccessTokenExpiration sets the AccessTokenExpiration field's value. -func (s *Credentials) SetAccessTokenExpiration(v time.Time) *Credentials { - s.AccessTokenExpiration = &v +// SetAssociationId sets the AssociationId field's value. +func (s *DisassociateInstanceStorageConfigInput) SetAssociationId(v string) *DisassociateInstanceStorageConfigInput { + s.AssociationId = &v return s } -// SetRefreshToken sets the RefreshToken field's value. -func (s *Credentials) SetRefreshToken(v string) *Credentials { - s.RefreshToken = &v +// SetInstanceId sets the InstanceId field's value. +func (s *DisassociateInstanceStorageConfigInput) SetInstanceId(v string) *DisassociateInstanceStorageConfigInput { + s.InstanceId = &v return s } -// SetRefreshTokenExpiration sets the RefreshTokenExpiration field's value. -func (s *Credentials) SetRefreshTokenExpiration(v time.Time) *Credentials { - s.RefreshTokenExpiration = &v +// SetResourceType sets the ResourceType field's value. +func (s *DisassociateInstanceStorageConfigInput) SetResourceType(v string) *DisassociateInstanceStorageConfigInput { + s.ResourceType = &v return s } -// Contains information about a real-time metric. For a description of each -// metric, see Real-time Metrics Definitions (https://docs.aws.amazon.com/connect/latest/adminguide/real-time-metrics-definitions.html) -// in the Amazon Connect Administrator Guide. -type CurrentMetric struct { +type DisassociateInstanceStorageConfigOutput struct { _ struct{} `type:"structure"` - - // The name of the metric. - Name *string `type:"string" enum:"CurrentMetricName"` - - // The unit for the metric. - Unit *string `type:"string" enum:"Unit"` } // String returns the string representation -func (s CurrentMetric) String() string { +func (s DisassociateInstanceStorageConfigOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CurrentMetric) GoString() string { +func (s DisassociateInstanceStorageConfigOutput) GoString() string { return s.String() } -// SetName sets the Name field's value. -func (s *CurrentMetric) SetName(v string) *CurrentMetric { - s.Name = &v - return s -} - -// SetUnit sets the Unit field's value. -func (s *CurrentMetric) SetUnit(v string) *CurrentMetric { - s.Unit = &v - return s -} - -// Contains the data for a real-time metric. -type CurrentMetricData struct { +type DisassociateLambdaFunctionInput struct { _ struct{} `type:"structure"` - // Information about the metric. - Metric *CurrentMetric `type:"structure"` + // The Amazon Resource Name (ARN) of the Lambda function being disassociated. + // + // FunctionArn is a required field + FunctionArn *string `location:"querystring" locationName:"functionArn" min:"1" type:"string" required:"true"` - // The value of the metric. - Value *float64 `type:"double"` + // 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 CurrentMetricData) String() string { +func (s DisassociateLambdaFunctionInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CurrentMetricData) GoString() string { +func (s DisassociateLambdaFunctionInput) GoString() string { return s.String() } -// SetMetric sets the Metric field's value. -func (s *CurrentMetricData) SetMetric(v *CurrentMetric) *CurrentMetricData { - s.Metric = v - return s -} +// Validate inspects the fields of the type to determine if they are valid. +func (s *DisassociateLambdaFunctionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DisassociateLambdaFunctionInput"} + if s.FunctionArn == nil { + invalidParams.Add(request.NewErrParamRequired("FunctionArn")) + } + if s.FunctionArn != nil && len(*s.FunctionArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("FunctionArn", 1)) + } + if s.InstanceId == nil { + invalidParams.Add(request.NewErrParamRequired("InstanceId")) + } + if s.InstanceId != nil && len(*s.InstanceId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("InstanceId", 1)) + } -// SetValue sets the Value field's value. -func (s *CurrentMetricData) SetValue(v float64) *CurrentMetricData { - s.Value = &v - return s + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// Contains information about a set of real-time metrics. -type CurrentMetricResult struct { - _ struct{} `type:"structure"` - - // The set of metrics. - Collections []*CurrentMetricData `type:"list"` - - // The dimensions for the metrics. - Dimensions *Dimensions `type:"structure"` +// SetFunctionArn sets the FunctionArn field's value. +func (s *DisassociateLambdaFunctionInput) SetFunctionArn(v string) *DisassociateLambdaFunctionInput { + s.FunctionArn = &v + return s } -// String returns the string representation -func (s CurrentMetricResult) String() string { - return awsutil.Prettify(s) +// SetInstanceId sets the InstanceId field's value. +func (s *DisassociateLambdaFunctionInput) SetInstanceId(v string) *DisassociateLambdaFunctionInput { + s.InstanceId = &v + return s } -// GoString returns the string representation -func (s CurrentMetricResult) GoString() string { - return s.String() +type DisassociateLambdaFunctionOutput struct { + _ struct{} `type:"structure"` } -// SetCollections sets the Collections field's value. -func (s *CurrentMetricResult) SetCollections(v []*CurrentMetricData) *CurrentMetricResult { - s.Collections = v - return s +// String returns the string representation +func (s DisassociateLambdaFunctionOutput) String() string { + return awsutil.Prettify(s) } -// SetDimensions sets the Dimensions field's value. -func (s *CurrentMetricResult) SetDimensions(v *Dimensions) *CurrentMetricResult { - s.Dimensions = v - return s +// GoString returns the string representation +func (s DisassociateLambdaFunctionOutput) GoString() string { + return s.String() } -type DeleteUserHierarchyGroupInput struct { +type DisassociateLexBotInput struct { _ struct{} `type:"structure"` - // The identifier of the hierarchy group. + // The name of the Amazon Lex bot. Maximum character limit of 50. // - // HierarchyGroupId is a required field - HierarchyGroupId *string `location:"uri" locationName:"HierarchyGroupId" type:"string" required:"true"` + // BotName is a required field + BotName *string `location:"querystring" locationName:"botName" 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"` + + // The Region in which the Amazon Lex bot has been created. + // + // LexRegion is a required field + LexRegion *string `location:"querystring" locationName:"lexRegion" type:"string" required:"true"` } // String returns the string representation -func (s DeleteUserHierarchyGroupInput) String() string { +func (s DisassociateLexBotInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeleteUserHierarchyGroupInput) GoString() string { +func (s DisassociateLexBotInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteUserHierarchyGroupInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteUserHierarchyGroupInput"} - if s.HierarchyGroupId == nil { - invalidParams.Add(request.NewErrParamRequired("HierarchyGroupId")) - } - if s.HierarchyGroupId != nil && len(*s.HierarchyGroupId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("HierarchyGroupId", 1)) +func (s *DisassociateLexBotInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DisassociateLexBotInput"} + if s.BotName == nil { + invalidParams.Add(request.NewErrParamRequired("BotName")) } if s.InstanceId == nil { invalidParams.Add(request.NewErrParamRequired("InstanceId")) @@ -6793,6 +11129,9 @@ func (s *DeleteUserHierarchyGroupInput) Validate() error { if s.InstanceId != nil && len(*s.InstanceId) < 1 { invalidParams.Add(request.NewErrParamMinLen("InstanceId", 1)) } + if s.LexRegion == nil { + invalidParams.Add(request.NewErrParamRequired("LexRegion")) + } if invalidParams.Len() > 0 { return invalidParams @@ -6800,33 +11139,39 @@ func (s *DeleteUserHierarchyGroupInput) Validate() error { return nil } -// SetHierarchyGroupId sets the HierarchyGroupId field's value. -func (s *DeleteUserHierarchyGroupInput) SetHierarchyGroupId(v string) *DeleteUserHierarchyGroupInput { - s.HierarchyGroupId = &v +// SetBotName sets the BotName field's value. +func (s *DisassociateLexBotInput) SetBotName(v string) *DisassociateLexBotInput { + s.BotName = &v return s } // SetInstanceId sets the InstanceId field's value. -func (s *DeleteUserHierarchyGroupInput) SetInstanceId(v string) *DeleteUserHierarchyGroupInput { +func (s *DisassociateLexBotInput) SetInstanceId(v string) *DisassociateLexBotInput { s.InstanceId = &v return s } -type DeleteUserHierarchyGroupOutput struct { +// SetLexRegion sets the LexRegion field's value. +func (s *DisassociateLexBotInput) SetLexRegion(v string) *DisassociateLexBotInput { + s.LexRegion = &v + return s +} + +type DisassociateLexBotOutput struct { _ struct{} `type:"structure"` } // String returns the string representation -func (s DeleteUserHierarchyGroupOutput) String() string { +func (s DisassociateLexBotOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeleteUserHierarchyGroupOutput) GoString() string { +func (s DisassociateLexBotOutput) GoString() string { return s.String() } -type DeleteUserInput struct { +type DisassociateRoutingProfileQueuesInput struct { _ struct{} `type:"structure"` // The identifier of the Amazon Connect instance. @@ -6834,36 +11179,54 @@ type DeleteUserInput struct { // InstanceId is a required field InstanceId *string `location:"uri" locationName:"InstanceId" min:"1" type:"string" required:"true"` - // The identifier of the user. + // The queues to disassociate from this routing profile. // - // UserId is a required field - UserId *string `location:"uri" locationName:"UserId" type:"string" required:"true"` + // QueueReferences is a required field + QueueReferences []*RoutingProfileQueueReference `type:"list" required:"true"` + + // The identifier of the routing profile. + // + // RoutingProfileId is a required field + RoutingProfileId *string `location:"uri" locationName:"RoutingProfileId" type:"string" required:"true"` } // String returns the string representation -func (s DeleteUserInput) String() string { +func (s DisassociateRoutingProfileQueuesInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeleteUserInput) GoString() string { +func (s DisassociateRoutingProfileQueuesInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteUserInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteUserInput"} +func (s *DisassociateRoutingProfileQueuesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DisassociateRoutingProfileQueuesInput"} 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.QueueReferences == nil { + invalidParams.Add(request.NewErrParamRequired("QueueReferences")) } - if s.UserId != nil && len(*s.UserId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("UserId", 1)) + if s.RoutingProfileId == nil { + invalidParams.Add(request.NewErrParamRequired("RoutingProfileId")) + } + if s.RoutingProfileId != nil && len(*s.RoutingProfileId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RoutingProfileId", 1)) + } + if s.QueueReferences != nil { + for i, v := range s.QueueReferences { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "QueueReferences", i), err.(request.ErrInvalidParams)) + } + } } if invalidParams.Len() > 0 { @@ -6873,38 +11236,45 @@ func (s *DeleteUserInput) Validate() error { } // SetInstanceId sets the InstanceId field's value. -func (s *DeleteUserInput) SetInstanceId(v string) *DeleteUserInput { +func (s *DisassociateRoutingProfileQueuesInput) SetInstanceId(v string) *DisassociateRoutingProfileQueuesInput { s.InstanceId = &v return s } -// SetUserId sets the UserId field's value. -func (s *DeleteUserInput) SetUserId(v string) *DeleteUserInput { - s.UserId = &v +// SetQueueReferences sets the QueueReferences field's value. +func (s *DisassociateRoutingProfileQueuesInput) SetQueueReferences(v []*RoutingProfileQueueReference) *DisassociateRoutingProfileQueuesInput { + s.QueueReferences = v return s } -type DeleteUserOutput struct { +// SetRoutingProfileId sets the RoutingProfileId field's value. +func (s *DisassociateRoutingProfileQueuesInput) SetRoutingProfileId(v string) *DisassociateRoutingProfileQueuesInput { + s.RoutingProfileId = &v + return s +} + +type DisassociateRoutingProfileQueuesOutput struct { _ struct{} `type:"structure"` } // String returns the string representation -func (s DeleteUserOutput) String() string { +func (s DisassociateRoutingProfileQueuesOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeleteUserOutput) GoString() string { +func (s DisassociateRoutingProfileQueuesOutput) GoString() string { return s.String() } -type DescribeContactFlowInput struct { +type DisassociateSecurityKeyInput struct { _ struct{} `type:"structure"` - // The identifier of the contact flow. + // The existing association identifier that uniquely identifies the resource + // type and storage config for the given instance ID. // - // ContactFlowId is a required field - ContactFlowId *string `location:"uri" locationName:"ContactFlowId" type:"string" required:"true"` + // AssociationId is a required field + AssociationId *string `location:"uri" locationName:"AssociationId" min:"1" type:"string" required:"true"` // The identifier of the Amazon Connect instance. // @@ -6913,23 +11283,23 @@ type DescribeContactFlowInput struct { } // String returns the string representation -func (s DescribeContactFlowInput) String() string { +func (s DisassociateSecurityKeyInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DescribeContactFlowInput) GoString() string { +func (s DisassociateSecurityKeyInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeContactFlowInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeContactFlowInput"} - if s.ContactFlowId == nil { - invalidParams.Add(request.NewErrParamRequired("ContactFlowId")) +func (s *DisassociateSecurityKeyInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DisassociateSecurityKeyInput"} + if s.AssociationId == nil { + invalidParams.Add(request.NewErrParamRequired("AssociationId")) } - if s.ContactFlowId != nil && len(*s.ContactFlowId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ContactFlowId", 1)) + if s.AssociationId != nil && len(*s.AssociationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AssociationId", 1)) } if s.InstanceId == nil { invalidParams.Add(request.NewErrParamRequired("InstanceId")) @@ -6944,79 +11314,124 @@ func (s *DescribeContactFlowInput) Validate() error { return nil } -// SetContactFlowId sets the ContactFlowId field's value. -func (s *DescribeContactFlowInput) SetContactFlowId(v string) *DescribeContactFlowInput { - s.ContactFlowId = &v +// SetAssociationId sets the AssociationId field's value. +func (s *DisassociateSecurityKeyInput) SetAssociationId(v string) *DisassociateSecurityKeyInput { + s.AssociationId = &v return s } // SetInstanceId sets the InstanceId field's value. -func (s *DescribeContactFlowInput) SetInstanceId(v string) *DescribeContactFlowInput { +func (s *DisassociateSecurityKeyInput) SetInstanceId(v string) *DisassociateSecurityKeyInput { s.InstanceId = &v return s } -type DescribeContactFlowOutput struct { +type DisassociateSecurityKeyOutput struct { _ struct{} `type:"structure"` +} - // Information about the contact flow. - ContactFlow *ContactFlow `type:"structure"` +// String returns the string representation +func (s DisassociateSecurityKeyOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DisassociateSecurityKeyOutput) GoString() string { + return s.String() +} + +// A resource with the specified name already exists. +type DuplicateResourceException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + Message_ *string `locationName:"Message" type:"string"` } // String returns the string representation -func (s DescribeContactFlowOutput) String() string { +func (s DuplicateResourceException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DescribeContactFlowOutput) GoString() string { +func (s DuplicateResourceException) GoString() string { return s.String() } -// SetContactFlow sets the ContactFlow field's value. -func (s *DescribeContactFlowOutput) SetContactFlow(v *ContactFlow) *DescribeContactFlowOutput { - s.ContactFlow = v - return s +func newErrorDuplicateResourceException(v protocol.ResponseMetadata) error { + return &DuplicateResourceException{ + RespMetadata: v, + } } -type DescribeRoutingProfileInput struct { +// Code returns the exception type name. +func (s *DuplicateResourceException) Code() string { + return "DuplicateResourceException" +} + +// Message returns the exception's message. +func (s *DuplicateResourceException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *DuplicateResourceException) OrigErr() error { + return nil +} + +func (s *DuplicateResourceException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s *DuplicateResourceException) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *DuplicateResourceException) RequestID() string { + return s.RespMetadata.RequestID +} + +// The encryption configuration. +type EncryptionConfig struct { _ struct{} `type:"structure"` - // The identifier of the Amazon Connect instance. + // The type of encryption. // - // InstanceId is a required field - InstanceId *string `location:"uri" locationName:"InstanceId" min:"1" type:"string" required:"true"` + // EncryptionType is a required field + EncryptionType *string `type:"string" required:"true" enum:"EncryptionType"` - // The identifier of the routing profile. + // The identifier of the encryption key. // - // RoutingProfileId is a required field - RoutingProfileId *string `location:"uri" locationName:"RoutingProfileId" type:"string" required:"true"` + // KeyId is a required field + KeyId *string `min:"1" type:"string" required:"true"` } // String returns the string representation -func (s DescribeRoutingProfileInput) String() string { +func (s EncryptionConfig) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DescribeRoutingProfileInput) GoString() string { +func (s EncryptionConfig) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeRoutingProfileInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeRoutingProfileInput"} - if s.InstanceId == nil { - invalidParams.Add(request.NewErrParamRequired("InstanceId")) - } - if s.InstanceId != nil && len(*s.InstanceId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("InstanceId", 1)) +func (s *EncryptionConfig) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "EncryptionConfig"} + if s.EncryptionType == nil { + invalidParams.Add(request.NewErrParamRequired("EncryptionType")) } - if s.RoutingProfileId == nil { - invalidParams.Add(request.NewErrParamRequired("RoutingProfileId")) + if s.KeyId == nil { + invalidParams.Add(request.NewErrParamRequired("KeyId")) } - if s.RoutingProfileId != nil && len(*s.RoutingProfileId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("RoutingProfileId", 1)) + if s.KeyId != nil && len(*s.KeyId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("KeyId", 1)) } if invalidParams.Len() > 0 { @@ -7025,48 +11440,72 @@ func (s *DescribeRoutingProfileInput) Validate() error { return nil } -// SetInstanceId sets the InstanceId field's value. -func (s *DescribeRoutingProfileInput) SetInstanceId(v string) *DescribeRoutingProfileInput { - s.InstanceId = &v +// SetEncryptionType sets the EncryptionType field's value. +func (s *EncryptionConfig) SetEncryptionType(v string) *EncryptionConfig { + s.EncryptionType = &v return s } -// SetRoutingProfileId sets the RoutingProfileId field's value. -func (s *DescribeRoutingProfileInput) SetRoutingProfileId(v string) *DescribeRoutingProfileInput { - s.RoutingProfileId = &v +// SetKeyId sets the KeyId field's value. +func (s *EncryptionConfig) SetKeyId(v string) *EncryptionConfig { + s.KeyId = &v return s } -type DescribeRoutingProfileOutput struct { +// Contains the filter to apply when retrieving metrics. +type Filters struct { _ struct{} `type:"structure"` - // The routing profile. - RoutingProfile *RoutingProfile `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 DescribeRoutingProfileOutput) String() string { +func (s Filters) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DescribeRoutingProfileOutput) GoString() string { +func (s Filters) GoString() string { return s.String() } -// SetRoutingProfile sets the RoutingProfile field's value. -func (s *DescribeRoutingProfileOutput) SetRoutingProfile(v *RoutingProfile) *DescribeRoutingProfileOutput { - s.RoutingProfile = 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 DescribeUserHierarchyGroupInput 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 of the hierarchy group. + // The identifier of the initial contact. // - // HierarchyGroupId is a required field - HierarchyGroupId *string `location:"uri" locationName:"HierarchyGroupId" type:"string" required:"true"` + // InitialContactId is a required field + InitialContactId *string `location:"uri" locationName:"InitialContactId" min:"1" type:"string" required:"true"` // The identifier of the Amazon Connect instance. // @@ -7075,23 +11514,23 @@ type DescribeUserHierarchyGroupInput struct { } // String returns the string representation -func (s DescribeUserHierarchyGroupInput) String() string { +func (s GetContactAttributesInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DescribeUserHierarchyGroupInput) 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 *DescribeUserHierarchyGroupInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeUserHierarchyGroupInput"} - if s.HierarchyGroupId == nil { - invalidParams.Add(request.NewErrParamRequired("HierarchyGroupId")) +func (s *GetContactAttributesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetContactAttributesInput"} + if s.InitialContactId == nil { + invalidParams.Add(request.NewErrParamRequired("InitialContactId")) } - if s.HierarchyGroupId != nil && len(*s.HierarchyGroupId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("HierarchyGroupId", 1)) + if s.InitialContactId != nil && len(*s.InitialContactId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("InitialContactId", 1)) } if s.InstanceId == nil { invalidParams.Add(request.NewErrParamRequired("InstanceId")) @@ -7106,69 +11545,204 @@ func (s *DescribeUserHierarchyGroupInput) Validate() error { return nil } -// SetHierarchyGroupId sets the HierarchyGroupId field's value. -func (s *DescribeUserHierarchyGroupInput) SetHierarchyGroupId(v string) *DescribeUserHierarchyGroupInput { - s.HierarchyGroupId = &v +// 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 *DescribeUserHierarchyGroupInput) SetInstanceId(v string) *DescribeUserHierarchyGroupInput { +func (s *GetContactAttributesInput) SetInstanceId(v string) *GetContactAttributesInput { s.InstanceId = &v return s } -type DescribeUserHierarchyGroupOutput struct { +type GetContactAttributesOutput struct { _ struct{} `type:"structure"` - // Information about the hierarchy group. - HierarchyGroup *HierarchyGroup `type:"structure"` + // Information about the attributes. + Attributes map[string]*string `type:"map"` } // String returns the string representation -func (s DescribeUserHierarchyGroupOutput) String() string { +func (s GetContactAttributesOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DescribeUserHierarchyGroupOutput) GoString() string { +func (s GetContactAttributesOutput) GoString() string { return s.String() } -// SetHierarchyGroup sets the HierarchyGroup field's value. -func (s *DescribeUserHierarchyGroupOutput) SetHierarchyGroup(v *HierarchyGroup) *DescribeUserHierarchyGroupOutput { - s.HierarchyGroup = v +// SetAttributes sets the Attributes field's value. +func (s *GetContactAttributesOutput) SetAttributes(v map[string]*string) *GetContactAttributesOutput { + s.Attributes = v return s } -type DescribeUserHierarchyStructureInput struct { +type GetCurrentMetricDataInput struct { _ struct{} `type:"structure"` + // The metrics to retrieve. Specify the name and unit for each metric. The following + // metrics are available. For a description of all the metrics, see Real-time + // Metrics Definitions (https://docs.aws.amazon.com/connect/latest/adminguide/real-time-metrics-definitions.html) + // in the Amazon Connect Administrator Guide. + // + // AGENTS_AFTER_CONTACT_WORK + // + // Unit: COUNT + // + // Name in real-time metrics report: ACW (https://docs.aws.amazon.com/connect/latest/adminguide/real-time-metrics-definitions.html#aftercallwork-real-time) + // + // AGENTS_AVAILABLE + // + // Unit: COUNT + // + // Name in real-time metrics report: Available (https://docs.aws.amazon.com/connect/latest/adminguide/real-time-metrics-definitions.html#available-real-time) + // + // AGENTS_ERROR + // + // Unit: COUNT + // + // Name in real-time metrics report: Error (https://docs.aws.amazon.com/connect/latest/adminguide/real-time-metrics-definitions.html#error-real-time) + // + // AGENTS_NON_PRODUCTIVE + // + // Unit: COUNT + // + // Name in real-time metrics report: NPT (Non-Productive Time) (https://docs.aws.amazon.com/connect/latest/adminguide/real-time-metrics-definitions.html#non-productive-time-real-time) + // + // AGENTS_ON_CALL + // + // Unit: COUNT + // + // Name in real-time metrics report: On contact (https://docs.aws.amazon.com/connect/latest/adminguide/real-time-metrics-definitions.html#on-call-real-time) + // + // AGENTS_ON_CONTACT + // + // Unit: COUNT + // + // Name in real-time metrics report: On contact (https://docs.aws.amazon.com/connect/latest/adminguide/real-time-metrics-definitions.html#on-call-real-time) + // + // AGENTS_ONLINE + // + // Unit: COUNT + // + // Name in real-time metrics report: Online (https://docs.aws.amazon.com/connect/latest/adminguide/real-time-metrics-definitions.html#online-real-time) + // + // AGENTS_STAFFED + // + // Unit: COUNT + // + // Name in real-time metrics report: Staffed (https://docs.aws.amazon.com/connect/latest/adminguide/real-time-metrics-definitions.html#staffed-real-time) + // + // CONTACTS_IN_QUEUE + // + // Unit: COUNT + // + // Name in real-time metrics report: In queue (https://docs.aws.amazon.com/connect/latest/adminguide/real-time-metrics-definitions.html#in-queue-real-time) + // + // CONTACTS_SCHEDULED + // + // Unit: COUNT + // + // Name in real-time metrics report: Scheduled (https://docs.aws.amazon.com/connect/latest/adminguide/real-time-metrics-definitions.html#scheduled-real-time) + // + // OLDEST_CONTACT_AGE + // + // Unit: SECONDS + // + // When you use groupings, Unit says SECONDS but the Value is returned in MILLISECONDS. + // For example, if you get a response like this: + // + // { "Metric": { "Name": "OLDEST_CONTACT_AGE", "Unit": "SECONDS" }, "Value": + // 24113.0 } + // + // The actual OLDEST_CONTACT_AGE is 24 seconds. + // + // Name in real-time metrics report: Oldest (https://docs.aws.amazon.com/connect/latest/adminguide/real-time-metrics-definitions.html#oldest-real-time) + // + // SLOTS_ACTIVE + // + // Unit: COUNT + // + // Name in real-time metrics report: Active (https://docs.aws.amazon.com/connect/latest/adminguide/real-time-metrics-definitions.html#active-real-time) + // + // SLOTS_AVAILABLE + // + // Unit: COUNT + // + // Name in real-time metrics report: Availability (https://docs.aws.amazon.com/connect/latest/adminguide/real-time-metrics-definitions.html#availability-real-time) + // + // 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. Both VOICE and CHAT channels are supported. + // + // 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. + // Both VOICE and CHAT channels are supported. + // + // 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"` + + // 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 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 DescribeUserHierarchyStructureInput) String() string { +func (s GetCurrentMetricDataInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DescribeUserHierarchyStructureInput) 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 *DescribeUserHierarchyStructureInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeUserHierarchyStructureInput"} +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.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + if s.Filters != nil { + if err := s.Filters.Validate(); err != nil { + invalidParams.AddNested("Filters", err.(request.ErrInvalidParams)) + } + } if invalidParams.Len() > 0 { return invalidParams @@ -7176,74 +11750,115 @@ func (s *DescribeUserHierarchyStructureInput) Validate() error { return nil } +// SetCurrentMetrics sets the CurrentMetrics field's value. +func (s *GetCurrentMetricDataInput) SetCurrentMetrics(v []*CurrentMetric) *GetCurrentMetricDataInput { + s.CurrentMetrics = v + return s +} + +// SetFilters sets the Filters field's value. +func (s *GetCurrentMetricDataInput) SetFilters(v *Filters) *GetCurrentMetricDataInput { + s.Filters = v + return s +} + +// SetGroupings sets the Groupings field's value. +func (s *GetCurrentMetricDataInput) SetGroupings(v []*string) *GetCurrentMetricDataInput { + s.Groupings = v + return s +} + // SetInstanceId sets the InstanceId field's value. -func (s *DescribeUserHierarchyStructureInput) SetInstanceId(v string) *DescribeUserHierarchyStructureInput { +func (s *GetCurrentMetricDataInput) SetInstanceId(v string) *GetCurrentMetricDataInput { s.InstanceId = &v return s } -type DescribeUserHierarchyStructureOutput struct { +// SetMaxResults sets the MaxResults field's value. +func (s *GetCurrentMetricDataInput) SetMaxResults(v int64) *GetCurrentMetricDataInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *GetCurrentMetricDataInput) SetNextToken(v string) *GetCurrentMetricDataInput { + s.NextToken = &v + return s +} + +type GetCurrentMetricDataOutput struct { _ struct{} `type:"structure"` - // Information about the hierarchy structure. - HierarchyStructure *HierarchyStructure `type:"structure"` + // The time at which the metrics were retrieved and cached for pagination. + DataSnapshotTime *time.Time `type:"timestamp"` + + // 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 DescribeUserHierarchyStructureOutput) String() string { +func (s GetCurrentMetricDataOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DescribeUserHierarchyStructureOutput) GoString() string { +func (s GetCurrentMetricDataOutput) GoString() string { return s.String() } -// SetHierarchyStructure sets the HierarchyStructure field's value. -func (s *DescribeUserHierarchyStructureOutput) SetHierarchyStructure(v *HierarchyStructure) *DescribeUserHierarchyStructureOutput { - s.HierarchyStructure = v +// SetDataSnapshotTime sets the DataSnapshotTime field's value. +func (s *GetCurrentMetricDataOutput) SetDataSnapshotTime(v time.Time) *GetCurrentMetricDataOutput { + s.DataSnapshotTime = &v return s } -type DescribeUserInput struct { +// SetMetricResults sets the MetricResults field's value. +func (s *GetCurrentMetricDataOutput) SetMetricResults(v []*CurrentMetricResult) *GetCurrentMetricDataOutput { + s.MetricResults = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *GetCurrentMetricDataOutput) SetNextToken(v string) *GetCurrentMetricDataOutput { + s.NextToken = &v + return s +} + +type GetFederationTokenInput 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"` + // InstanceId is a required field + InstanceId *string `location:"uri" locationName:"InstanceId" min:"1" type:"string" required:"true"` } // String returns the string representation -func (s DescribeUserInput) String() string { +func (s GetFederationTokenInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DescribeUserInput) 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 *DescribeUserInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeUserInput"} +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)) } - 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 @@ -7252,977 +11867,1132 @@ func (s *DescribeUserInput) Validate() error { } // SetInstanceId sets the InstanceId field's value. -func (s *DescribeUserInput) SetInstanceId(v string) *DescribeUserInput { +func (s *GetFederationTokenInput) SetInstanceId(v string) *GetFederationTokenInput { 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 { +type GetFederationTokenOutput struct { _ struct{} `type:"structure"` - // Information about the user account and configuration settings. - User *User `type:"structure"` + // The credentials to use for federation. + Credentials *Credentials `type:"structure"` } // String returns the string representation -func (s DescribeUserOutput) String() string { +func (s GetFederationTokenOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DescribeUserOutput) GoString() string { +func (s GetFederationTokenOutput) GoString() string { return s.String() } -// SetUser sets the User field's value. -func (s *DescribeUserOutput) SetUser(v *User) *DescribeUserOutput { - s.User = v +// SetCredentials sets the Credentials field's value. +func (s *GetFederationTokenOutput) SetCredentials(v *Credentials) *GetFederationTokenOutput { + s.Credentials = v return s } -// Outbound calls to the destination number are not allowed. -type DestinationNotAllowedException struct { - _ struct{} `type:"structure"` - RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` +type GetMetricDataInput struct { + _ struct{} `type:"structure"` - // The message. - Message_ *string `locationName:"Message" type:"string"` + // 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. Both VOICE and CHAT channels are supported. + // + // 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 only supported grouping is QUEUE. + // + // 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. For a description of each + // metric, see Historical Metrics Definitions (https://docs.aws.amazon.com/connect/latest/adminguide/historical-metrics-definitions.html) + // in the Amazon Connect Administrator Guide. + // + // 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 + // + // HistoricalMetrics is a required field + HistoricalMetrics []*HistoricalMetric `type:"list" 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"` + + // 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. + 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 DestinationNotAllowedException) String() string { +func (s GetMetricDataInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DestinationNotAllowedException) GoString() string { +func (s GetMetricDataInput) GoString() string { return s.String() } -func newErrorDestinationNotAllowedException(v protocol.ResponseMetadata) error { - return &DestinationNotAllowedException{ - RespMetadata: v, +// 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")) } -} - -// Code returns the exception type name. -func (s *DestinationNotAllowedException) Code() string { - return "DestinationNotAllowedException" -} - -// Message returns the exception's message. -func (s *DestinationNotAllowedException) Message() string { - if s.Message_ != nil { - return *s.Message_ + 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)) + } } - return "" -} -// OrigErr always returns nil, satisfies awserr.Error interface. -func (s *DestinationNotAllowedException) OrigErr() error { + if invalidParams.Len() > 0 { + return invalidParams + } return nil } -func (s *DestinationNotAllowedException) Error() string { - return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +// SetEndTime sets the EndTime field's value. +func (s *GetMetricDataInput) SetEndTime(v time.Time) *GetMetricDataInput { + s.EndTime = &v + return s } -// Status code returns the HTTP status code for the request's response error. -func (s *DestinationNotAllowedException) StatusCode() int { - return s.RespMetadata.StatusCode +// SetFilters sets the Filters field's value. +func (s *GetMetricDataInput) SetFilters(v *Filters) *GetMetricDataInput { + s.Filters = v + return s } -// RequestID returns the service's response RequestID for request. -func (s *DestinationNotAllowedException) RequestID() string { - return s.RespMetadata.RequestID +// SetGroupings sets the Groupings field's value. +func (s *GetMetricDataInput) SetGroupings(v []*string) *GetMetricDataInput { + s.Groupings = 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"` +// SetHistoricalMetrics sets the HistoricalMetrics field's value. +func (s *GetMetricDataInput) SetHistoricalMetrics(v []*HistoricalMetric) *GetMetricDataInput { + s.HistoricalMetrics = v + return s } -// String returns the string representation -func (s Dimensions) String() string { - return awsutil.Prettify(s) +// SetInstanceId sets the InstanceId field's value. +func (s *GetMetricDataInput) SetInstanceId(v string) *GetMetricDataInput { + s.InstanceId = &v + return s } -// GoString returns the string representation -func (s Dimensions) GoString() string { - return s.String() +// SetMaxResults sets the MaxResults field's value. +func (s *GetMetricDataInput) SetMaxResults(v int64) *GetMetricDataInput { + s.MaxResults = &v + return s } -// SetChannel sets the Channel field's value. -func (s *Dimensions) SetChannel(v string) *Dimensions { - s.Channel = &v +// SetNextToken sets the NextToken field's value. +func (s *GetMetricDataInput) SetNextToken(v string) *GetMetricDataInput { + s.NextToken = &v return s } -// SetQueue sets the Queue field's value. -func (s *Dimensions) SetQueue(v *QueueReference) *Dimensions { - s.Queue = v +// SetStartTime sets the StartTime field's value. +func (s *GetMetricDataInput) SetStartTime(v time.Time) *GetMetricDataInput { + s.StartTime = &v return s } -type DisassociateRoutingProfileQueuesInput struct { +type GetMetricDataOutput 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 queues to disassociate from this routing profile. + // Information about the historical metrics. // - // QueueReferences is a required field - QueueReferences []*RoutingProfileQueueReference `type:"list" required:"true"` + // If no grouping is specified, a summary of metric data is returned. + MetricResults []*HistoricalMetricResult `type:"list"` - // The identifier of the routing profile. + // If there are additional results, this is the token for the next set of results. // - // RoutingProfileId is a required field - RoutingProfileId *string `location:"uri" locationName:"RoutingProfileId" 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 DisassociateRoutingProfileQueuesInput) String() string { +func (s GetMetricDataOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DisassociateRoutingProfileQueuesInput) GoString() string { +func (s GetMetricDataOutput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DisassociateRoutingProfileQueuesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DisassociateRoutingProfileQueuesInput"} - 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.QueueReferences == nil { - invalidParams.Add(request.NewErrParamRequired("QueueReferences")) - } - if s.RoutingProfileId == nil { - invalidParams.Add(request.NewErrParamRequired("RoutingProfileId")) - } - if s.RoutingProfileId != nil && len(*s.RoutingProfileId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("RoutingProfileId", 1)) - } - if s.QueueReferences != nil { - for i, v := range s.QueueReferences { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "QueueReferences", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetInstanceId sets the InstanceId field's value. -func (s *DisassociateRoutingProfileQueuesInput) SetInstanceId(v string) *DisassociateRoutingProfileQueuesInput { - s.InstanceId = &v - return s -} - -// SetQueueReferences sets the QueueReferences field's value. -func (s *DisassociateRoutingProfileQueuesInput) SetQueueReferences(v []*RoutingProfileQueueReference) *DisassociateRoutingProfileQueuesInput { - s.QueueReferences = v +// SetMetricResults sets the MetricResults field's value. +func (s *GetMetricDataOutput) SetMetricResults(v []*HistoricalMetricResult) *GetMetricDataOutput { + s.MetricResults = v return s } -// SetRoutingProfileId sets the RoutingProfileId field's value. -func (s *DisassociateRoutingProfileQueuesInput) SetRoutingProfileId(v string) *DisassociateRoutingProfileQueuesInput { - s.RoutingProfileId = &v +// SetNextToken sets the NextToken field's value. +func (s *GetMetricDataOutput) SetNextToken(v string) *GetMetricDataOutput { + s.NextToken = &v return s } -type DisassociateRoutingProfileQueuesOutput struct { +// Contains information about a hierarchy group. +type HierarchyGroup struct { _ struct{} `type:"structure"` -} -// String returns the string representation -func (s DisassociateRoutingProfileQueuesOutput) String() string { - return awsutil.Prettify(s) -} + // The Amazon Resource Name (ARN) of the hierarchy group. + Arn *string `type:"string"` -// GoString returns the string representation -func (s DisassociateRoutingProfileQueuesOutput) GoString() string { - return s.String() -} + // Information about the levels in the hierarchy group. + HierarchyPath *HierarchyPath `type:"structure"` -// A resource with the specified name already exists. -type DuplicateResourceException struct { - _ struct{} `type:"structure"` - RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + // The identifier of the hierarchy group. + Id *string `type:"string"` - Message_ *string `locationName:"Message" 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 DuplicateResourceException) String() string { +func (s HierarchyGroup) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DuplicateResourceException) GoString() string { +func (s HierarchyGroup) GoString() string { return s.String() } -func newErrorDuplicateResourceException(v protocol.ResponseMetadata) error { - return &DuplicateResourceException{ - RespMetadata: v, - } -} - -// Code returns the exception type name. -func (s *DuplicateResourceException) Code() string { - return "DuplicateResourceException" -} - -// Message returns the exception's message. -func (s *DuplicateResourceException) Message() string { - if s.Message_ != nil { - return *s.Message_ - } - return "" +// SetArn sets the Arn field's value. +func (s *HierarchyGroup) SetArn(v string) *HierarchyGroup { + s.Arn = &v + return s } -// OrigErr always returns nil, satisfies awserr.Error interface. -func (s *DuplicateResourceException) OrigErr() error { - return nil +// SetHierarchyPath sets the HierarchyPath field's value. +func (s *HierarchyGroup) SetHierarchyPath(v *HierarchyPath) *HierarchyGroup { + s.HierarchyPath = v + return s } -func (s *DuplicateResourceException) Error() string { - return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +// SetId sets the Id field's value. +func (s *HierarchyGroup) SetId(v string) *HierarchyGroup { + s.Id = &v + return s } -// Status code returns the HTTP status code for the request's response error. -func (s *DuplicateResourceException) StatusCode() int { - return s.RespMetadata.StatusCode +// SetLevelId sets the LevelId field's value. +func (s *HierarchyGroup) SetLevelId(v string) *HierarchyGroup { + s.LevelId = &v + return s } -// RequestID returns the service's response RequestID for request. -func (s *DuplicateResourceException) RequestID() string { - return s.RespMetadata.RequestID +// SetName sets the Name field's value. +func (s *HierarchyGroup) SetName(v string) *HierarchyGroup { + s.Name = &v + return s } -// Contains the filter to apply when retrieving metrics. -type Filters struct { +// Contains summary information about a hierarchy group. +type HierarchyGroupSummary struct { _ struct{} `type:"structure"` - // The channel to use to filter the metrics. - Channels []*string `type:"list"` + // The Amazon Resource Name (ARN) of the hierarchy group. + Arn *string `type:"string"` - // The queues to use to filter the metrics. You can specify up to 100 queues - // per request. - Queues []*string `min:"1" type:"list"` + // 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 Filters) String() string { +func (s HierarchyGroupSummary) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s Filters) GoString() string { +func (s HierarchyGroupSummary) 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 +// SetArn sets the Arn field's value. +func (s *HierarchyGroupSummary) SetArn(v string) *HierarchyGroupSummary { + s.Arn = &v + return s } -// SetChannels sets the Channels field's value. -func (s *Filters) SetChannels(v []*string) *Filters { - s.Channels = v +// SetId sets the Id field's value. +func (s *HierarchyGroupSummary) SetId(v string) *HierarchyGroupSummary { + s.Id = &v return s } -// SetQueues sets the Queues field's value. -func (s *Filters) SetQueues(v []*string) *Filters { - s.Queues = v +// SetName sets the Name field's value. +func (s *HierarchyGroupSummary) SetName(v string) *HierarchyGroupSummary { + s.Name = &v return s } -type GetContactAttributesInput struct { +// Contains information about a hierarchy level. +type HierarchyLevel struct { _ struct{} `type:"structure"` - // The identifier of the initial contact. - // - // InitialContactId is a required field - InitialContactId *string `location:"uri" locationName:"InitialContactId" min:"1" type:"string" required:"true"` + // The Amazon Resource Name (ARN) of the hierarchy level. + Arn *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 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 GetContactAttributesInput) String() string { +func (s HierarchyLevel) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetContactAttributesInput) GoString() string { +func (s HierarchyLevel) 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)) - } - 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 +// SetArn sets the Arn field's value. +func (s *HierarchyLevel) SetArn(v string) *HierarchyLevel { + s.Arn = &v + return s } -// SetInitialContactId sets the InitialContactId field's value. -func (s *GetContactAttributesInput) SetInitialContactId(v string) *GetContactAttributesInput { - s.InitialContactId = &v +// SetId sets the Id field's value. +func (s *HierarchyLevel) SetId(v string) *HierarchyLevel { + s.Id = &v return s } -// SetInstanceId sets the InstanceId field's value. -func (s *GetContactAttributesInput) SetInstanceId(v string) *GetContactAttributesInput { - s.InstanceId = &v +// SetName sets the Name field's value. +func (s *HierarchyLevel) SetName(v string) *HierarchyLevel { + s.Name = &v return s } -type GetContactAttributesOutput struct { +// Contains information about the hierarchy level to update. +type HierarchyLevelUpdate struct { _ struct{} `type:"structure"` - // Information about the attributes. - Attributes map[string]*string `type:"map"` + // The name of the user hierarchy level. Must not be more than 50 characters. + // + // Name is a required field + Name *string `type:"string" required:"true"` } // String returns the string representation -func (s GetContactAttributesOutput) String() string { +func (s HierarchyLevelUpdate) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetContactAttributesOutput) GoString() string { +func (s HierarchyLevelUpdate) GoString() string { return s.String() } -// SetAttributes sets the Attributes field's value. -func (s *GetContactAttributesOutput) SetAttributes(v map[string]*string) *GetContactAttributesOutput { - s.Attributes = v +// Validate inspects the fields of the type to determine if they are valid. +func (s *HierarchyLevelUpdate) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "HierarchyLevelUpdate"} + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetName sets the Name field's value. +func (s *HierarchyLevelUpdate) SetName(v string) *HierarchyLevelUpdate { + s.Name = &v return s } -type GetCurrentMetricDataInput struct { +// Contains information about the levels of a hierarchy group. +type HierarchyPath struct { _ struct{} `type:"structure"` - // The metrics to retrieve. Specify the name and unit for each metric. The following - // metrics are available. For a description of all the metrics, see Real-time - // Metrics Definitions (https://docs.aws.amazon.com/connect/latest/adminguide/real-time-metrics-definitions.html) - // in the Amazon Connect Administrator Guide. - // - // AGENTS_AFTER_CONTACT_WORK - // - // Unit: COUNT - // - // Name in real-time metrics report: ACW (https://docs.aws.amazon.com/connect/latest/adminguide/real-time-metrics-definitions.html#aftercallwork-real-time) - // - // AGENTS_AVAILABLE - // - // Unit: COUNT - // - // Name in real-time metrics report: Available (https://docs.aws.amazon.com/connect/latest/adminguide/real-time-metrics-definitions.html#available-real-time) - // - // AGENTS_ERROR - // - // Unit: COUNT - // - // Name in real-time metrics report: Error (https://docs.aws.amazon.com/connect/latest/adminguide/real-time-metrics-definitions.html#error-real-time) - // - // AGENTS_NON_PRODUCTIVE - // - // Unit: COUNT - // - // Name in real-time metrics report: NPT (Non-Productive Time) (https://docs.aws.amazon.com/connect/latest/adminguide/real-time-metrics-definitions.html#non-productive-time-real-time) - // - // AGENTS_ON_CALL - // - // Unit: COUNT - // - // Name in real-time metrics report: On contact (https://docs.aws.amazon.com/connect/latest/adminguide/real-time-metrics-definitions.html#on-call-real-time) - // - // AGENTS_ON_CONTACT - // - // Unit: COUNT - // - // Name in real-time metrics report: On contact (https://docs.aws.amazon.com/connect/latest/adminguide/real-time-metrics-definitions.html#on-call-real-time) - // - // AGENTS_ONLINE - // - // Unit: COUNT - // - // Name in real-time metrics report: Online (https://docs.aws.amazon.com/connect/latest/adminguide/real-time-metrics-definitions.html#online-real-time) - // - // AGENTS_STAFFED - // - // Unit: COUNT - // - // Name in real-time metrics report: Staffed (https://docs.aws.amazon.com/connect/latest/adminguide/real-time-metrics-definitions.html#staffed-real-time) - // - // CONTACTS_IN_QUEUE - // - // Unit: COUNT - // - // Name in real-time metrics report: In queue (https://docs.aws.amazon.com/connect/latest/adminguide/real-time-metrics-definitions.html#in-queue-real-time) - // - // CONTACTS_SCHEDULED - // - // Unit: COUNT - // - // Name in real-time metrics report: Scheduled (https://docs.aws.amazon.com/connect/latest/adminguide/real-time-metrics-definitions.html#scheduled-real-time) - // - // OLDEST_CONTACT_AGE - // - // Unit: SECONDS - // - // When you use groupings, Unit says SECONDS but the Value is returned in MILLISECONDS. - // For example, if you get a response like this: - // - // { "Metric": { "Name": "OLDEST_CONTACT_AGE", "Unit": "SECONDS" }, "Value": - // 24113.0 } - // - // The actual OLDEST_CONTACT_AGE is 24 seconds. - // - // Name in real-time metrics report: Oldest (https://docs.aws.amazon.com/connect/latest/adminguide/real-time-metrics-definitions.html#oldest-real-time) - // - // SLOTS_ACTIVE - // - // Unit: COUNT - // - // Name in real-time metrics report: Active (https://docs.aws.amazon.com/connect/latest/adminguide/real-time-metrics-definitions.html#active-real-time) - // - // SLOTS_AVAILABLE - // - // Unit: COUNT - // - // Name in real-time metrics report: Availability (https://docs.aws.amazon.com/connect/latest/adminguide/real-time-metrics-definitions.html#availability-real-time) - // - // 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. Both VOICE and CHAT channels are supported. - // - // Filters is a required field - Filters *Filters `type:"structure" required:"true"` + // Information about level five. + LevelFive *HierarchyGroupSummary `type:"structure"` - // 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. - // Both VOICE and CHAT channels are supported. - // - // If no Grouping is included in the request, a summary of metrics is returned. - Groupings []*string `type:"list"` + // Information about level four. + LevelFour *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"` + // Information about level one. + LevelOne *HierarchyGroupSummary `type:"structure"` - // The maximimum number of results to return per page. - MaxResults *int64 `min:"1" type:"integer"` + // Information about level three. + LevelThree *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. - // - // 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"` + // Information about level two. + LevelTwo *HierarchyGroupSummary `type:"structure"` } // String returns the string representation -func (s GetCurrentMetricDataInput) String() string { +func (s HierarchyPath) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetCurrentMetricDataInput) GoString() string { +func (s HierarchyPath) 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")) - } - 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.MaxResults != nil && *s.MaxResults < 1 { - invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) - } - if s.Filters != nil { - if err := s.Filters.Validate(); err != nil { - invalidParams.AddNested("Filters", err.(request.ErrInvalidParams)) - } - } +// SetLevelFive sets the LevelFive field's value. +func (s *HierarchyPath) SetLevelFive(v *HierarchyGroupSummary) *HierarchyPath { + s.LevelFive = v + return s +} - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetLevelFour sets the LevelFour field's value. +func (s *HierarchyPath) SetLevelFour(v *HierarchyGroupSummary) *HierarchyPath { + s.LevelFour = v + return s } -// SetCurrentMetrics sets the CurrentMetrics field's value. -func (s *GetCurrentMetricDataInput) SetCurrentMetrics(v []*CurrentMetric) *GetCurrentMetricDataInput { - s.CurrentMetrics = v +// SetLevelOne sets the LevelOne field's value. +func (s *HierarchyPath) SetLevelOne(v *HierarchyGroupSummary) *HierarchyPath { + s.LevelOne = v return s } -// SetFilters sets the Filters field's value. -func (s *GetCurrentMetricDataInput) SetFilters(v *Filters) *GetCurrentMetricDataInput { - s.Filters = v +// SetLevelThree sets the LevelThree field's value. +func (s *HierarchyPath) SetLevelThree(v *HierarchyGroupSummary) *HierarchyPath { + s.LevelThree = v return s } -// SetGroupings sets the Groupings field's value. -func (s *GetCurrentMetricDataInput) SetGroupings(v []*string) *GetCurrentMetricDataInput { - s.Groupings = v +// SetLevelTwo sets the LevelTwo field's value. +func (s *HierarchyPath) SetLevelTwo(v *HierarchyGroupSummary) *HierarchyPath { + s.LevelTwo = v return s } -// SetInstanceId sets the InstanceId field's value. -func (s *GetCurrentMetricDataInput) SetInstanceId(v string) *GetCurrentMetricDataInput { - s.InstanceId = &v +// Contains information about a hierarchy structure. +type HierarchyStructure struct { + _ struct{} `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 HierarchyStructure) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s HierarchyStructure) GoString() string { + return s.String() +} + +// SetLevelFive sets the LevelFive field's value. +func (s *HierarchyStructure) SetLevelFive(v *HierarchyLevel) *HierarchyStructure { + s.LevelFive = v return s } -// SetMaxResults sets the MaxResults field's value. -func (s *GetCurrentMetricDataInput) SetMaxResults(v int64) *GetCurrentMetricDataInput { - s.MaxResults = &v +// SetLevelFour sets the LevelFour field's value. +func (s *HierarchyStructure) SetLevelFour(v *HierarchyLevel) *HierarchyStructure { + s.LevelFour = v return s } -// SetNextToken sets the NextToken field's value. -func (s *GetCurrentMetricDataInput) SetNextToken(v string) *GetCurrentMetricDataInput { - s.NextToken = &v +// SetLevelOne sets the LevelOne field's value. +func (s *HierarchyStructure) SetLevelOne(v *HierarchyLevel) *HierarchyStructure { + s.LevelOne = v return s } -type GetCurrentMetricDataOutput struct { +// SetLevelThree sets the LevelThree field's value. +func (s *HierarchyStructure) SetLevelThree(v *HierarchyLevel) *HierarchyStructure { + s.LevelThree = v + return s +} + +// SetLevelTwo sets the LevelTwo field's value. +func (s *HierarchyStructure) SetLevelTwo(v *HierarchyLevel) *HierarchyStructure { + s.LevelTwo = v + return s +} + +// Contains information about the level hierarchy to update. +type HierarchyStructureUpdate struct { _ struct{} `type:"structure"` - // The time at which the metrics were retrieved and cached for pagination. - DataSnapshotTime *time.Time `type:"timestamp"` + // The update for level five. + LevelFive *HierarchyLevelUpdate `type:"structure"` - // Information about the real-time metrics. - MetricResults []*CurrentMetricResult `type:"list"` + // The update for level four. + LevelFour *HierarchyLevelUpdate `type:"structure"` - // 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"` + // The update for level one. + LevelOne *HierarchyLevelUpdate `type:"structure"` + + // The update for level three. + LevelThree *HierarchyLevelUpdate `type:"structure"` + + // The update for level two. + LevelTwo *HierarchyLevelUpdate `type:"structure"` } // String returns the string representation -func (s GetCurrentMetricDataOutput) String() string { +func (s HierarchyStructureUpdate) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetCurrentMetricDataOutput) GoString() string { +func (s HierarchyStructureUpdate) GoString() string { return s.String() } -// SetDataSnapshotTime sets the DataSnapshotTime field's value. -func (s *GetCurrentMetricDataOutput) SetDataSnapshotTime(v time.Time) *GetCurrentMetricDataOutput { - s.DataSnapshotTime = &v +// Validate inspects the fields of the type to determine if they are valid. +func (s *HierarchyStructureUpdate) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "HierarchyStructureUpdate"} + if s.LevelFive != nil { + if err := s.LevelFive.Validate(); err != nil { + invalidParams.AddNested("LevelFive", err.(request.ErrInvalidParams)) + } + } + if s.LevelFour != nil { + if err := s.LevelFour.Validate(); err != nil { + invalidParams.AddNested("LevelFour", err.(request.ErrInvalidParams)) + } + } + if s.LevelOne != nil { + if err := s.LevelOne.Validate(); err != nil { + invalidParams.AddNested("LevelOne", err.(request.ErrInvalidParams)) + } + } + if s.LevelThree != nil { + if err := s.LevelThree.Validate(); err != nil { + invalidParams.AddNested("LevelThree", err.(request.ErrInvalidParams)) + } + } + if s.LevelTwo != nil { + if err := s.LevelTwo.Validate(); err != nil { + invalidParams.AddNested("LevelTwo", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetLevelFive sets the LevelFive field's value. +func (s *HierarchyStructureUpdate) SetLevelFive(v *HierarchyLevelUpdate) *HierarchyStructureUpdate { + s.LevelFive = v return s } -// SetMetricResults sets the MetricResults field's value. -func (s *GetCurrentMetricDataOutput) SetMetricResults(v []*CurrentMetricResult) *GetCurrentMetricDataOutput { - s.MetricResults = v +// SetLevelFour sets the LevelFour field's value. +func (s *HierarchyStructureUpdate) SetLevelFour(v *HierarchyLevelUpdate) *HierarchyStructureUpdate { + s.LevelFour = v return s } -// SetNextToken sets the NextToken field's value. -func (s *GetCurrentMetricDataOutput) SetNextToken(v string) *GetCurrentMetricDataOutput { - s.NextToken = &v +// SetLevelOne sets the LevelOne field's value. +func (s *HierarchyStructureUpdate) SetLevelOne(v *HierarchyLevelUpdate) *HierarchyStructureUpdate { + s.LevelOne = v return s } -type GetFederationTokenInput struct { +// SetLevelThree sets the LevelThree field's value. +func (s *HierarchyStructureUpdate) SetLevelThree(v *HierarchyLevelUpdate) *HierarchyStructureUpdate { + s.LevelThree = v + return s +} + +// SetLevelTwo sets the LevelTwo field's value. +func (s *HierarchyStructureUpdate) SetLevelTwo(v *HierarchyLevelUpdate) *HierarchyStructureUpdate { + s.LevelTwo = v + return s +} + +// Contains information about a historical metric. For a description of each +// metric, see Historical Metrics Definitions (https://docs.aws.amazon.com/connect/latest/adminguide/historical-metrics-definitions.html) +// in the Amazon Connect Administrator Guide. +type HistoricalMetric 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 name of the 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"` + + // The unit for the metric. + Unit *string `type:"string" enum:"Unit"` } // String returns the string representation -func (s GetFederationTokenInput) String() string { +func (s HistoricalMetric) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetFederationTokenInput) GoString() string { +func (s HistoricalMetric) 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)) - } +// SetName sets the Name field's value. +func (s *HistoricalMetric) SetName(v string) *HistoricalMetric { + s.Name = &v + return s +} - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetStatistic sets the Statistic field's value. +func (s *HistoricalMetric) SetStatistic(v string) *HistoricalMetric { + s.Statistic = &v + return s } -// SetInstanceId sets the InstanceId field's value. -func (s *GetFederationTokenInput) SetInstanceId(v string) *GetFederationTokenInput { - s.InstanceId = &v +// SetThreshold sets the Threshold field's value. +func (s *HistoricalMetric) SetThreshold(v *Threshold) *HistoricalMetric { + s.Threshold = v return s } -type GetFederationTokenOutput struct { +// SetUnit sets the Unit field's value. +func (s *HistoricalMetric) SetUnit(v string) *HistoricalMetric { + s.Unit = &v + return s +} + +// Contains the data for a historical metric. +type HistoricalMetricData struct { _ struct{} `type:"structure"` - // The credentials to use for federation. - Credentials *Credentials `type:"structure"` + // Information about the metric. + Metric *HistoricalMetric `type:"structure"` + + // The value of the metric. + Value *float64 `type:"double"` } // String returns the string representation -func (s GetFederationTokenOutput) String() string { +func (s HistoricalMetricData) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetFederationTokenOutput) GoString() string { +func (s HistoricalMetricData) GoString() string { return s.String() } -// SetCredentials sets the Credentials field's value. -func (s *GetFederationTokenOutput) SetCredentials(v *Credentials) *GetFederationTokenOutput { - s.Credentials = 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 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. Both VOICE and CHAT channels are supported. - // - // 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 only supported grouping is QUEUE. - // - // 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. For a description of each - // metric, see Historical Metrics Definitions (https://docs.aws.amazon.com/connect/latest/adminguide/historical-metrics-definitions.html) - // in the Amazon Connect Administrator Guide. - // - // 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 - // - // HistoricalMetrics is a required field - HistoricalMetrics []*HistoricalMetric `type:"list" required:"true"` - +// SetMetric sets the Metric field's value. +func (s *HistoricalMetricData) SetMetric(v *HistoricalMetric) *HistoricalMetricData { + s.Metric = v + return s +} + +// SetValue sets the Value field's value. +func (s *HistoricalMetricData) SetValue(v float64) *HistoricalMetricData { + s.Value = &v + return s +} + +// Contains information about the historical metrics retrieved. +type HistoricalMetricResult struct { + _ struct{} `type:"structure"` + + // The set of metrics. + Collections []*HistoricalMetricData `type:"list"` + + // The dimension for the metrics. + Dimensions *Dimensions `type:"structure"` +} + +// String returns the string representation +func (s HistoricalMetricResult) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s HistoricalMetricResult) GoString() string { + return s.String() +} + +// SetCollections sets the Collections field's value. +func (s *HistoricalMetricResult) SetCollections(v []*HistoricalMetricData) *HistoricalMetricResult { + s.Collections = v + return s +} + +// SetDimensions sets the Dimensions field's value. +func (s *HistoricalMetricResult) SetDimensions(v *Dimensions) *HistoricalMetricResult { + s.Dimensions = v + return s +} + +// Contains summary information about hours of operation for a contact center. +type HoursOfOperationSummary struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the hours of operation. + Arn *string `type:"string"` + + // The identifier of the hours of operation. + Id *string `type:"string"` + + // The name of the hours of operation. + Name *string `type:"string"` +} + +// String returns the string representation +func (s HoursOfOperationSummary) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s HoursOfOperationSummary) GoString() string { + return s.String() +} + +// SetArn sets the Arn field's value. +func (s *HoursOfOperationSummary) SetArn(v string) *HoursOfOperationSummary { + s.Arn = &v + return s +} + +// SetId sets the Id field's value. +func (s *HoursOfOperationSummary) SetId(v string) *HoursOfOperationSummary { + s.Id = &v + return s +} + +// SetName sets the Name field's value. +func (s *HoursOfOperationSummary) SetName(v string) *HoursOfOperationSummary { + s.Name = &v + return s +} + +// The Amazon Connect instance. +type Instance struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the instance. + Arn *string `type:"string"` + + // When the instance was created. + CreatedTime *time.Time `type:"timestamp"` + // The identifier of the Amazon Connect instance. - // - // InstanceId is a required field - InstanceId *string `location:"uri" locationName:"InstanceId" min:"1" type:"string" required:"true"` + Id *string `min:"1" type:"string"` - // The maximimum number of results to return per page. - MaxResults *int64 `min:"1" type:"integer"` + // The identity management type. + IdentityManagementType *string `type:"string" enum:"DirectoryType"` - // 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"` + // Whether inbound calls are enabled. + InboundCallsEnabled *bool `type:"boolean"` - // 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. + // The alias of instance. + InstanceAlias *string `min:"1" type:"string" sensitive:"true"` + + // The state of the instance. + InstanceStatus *string `type:"string" enum:"InstanceStatus"` + + // Whether outbound calls are enabled. + OutboundCallsEnabled *bool `type:"boolean"` + + // The service role of the instance. + ServiceRole *string `type:"string"` + + // Relevant details why the instance was not successfully created. + StatusReason *InstanceStatusReason `type:"structure"` +} + +// String returns the string representation +func (s Instance) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Instance) GoString() string { + return s.String() +} + +// SetArn sets the Arn field's value. +func (s *Instance) SetArn(v string) *Instance { + s.Arn = &v + return s +} + +// SetCreatedTime sets the CreatedTime field's value. +func (s *Instance) SetCreatedTime(v time.Time) *Instance { + s.CreatedTime = &v + return s +} + +// SetId sets the Id field's value. +func (s *Instance) SetId(v string) *Instance { + s.Id = &v + return s +} + +// SetIdentityManagementType sets the IdentityManagementType field's value. +func (s *Instance) SetIdentityManagementType(v string) *Instance { + s.IdentityManagementType = &v + return s +} + +// SetInboundCallsEnabled sets the InboundCallsEnabled field's value. +func (s *Instance) SetInboundCallsEnabled(v bool) *Instance { + s.InboundCallsEnabled = &v + return s +} + +// SetInstanceAlias sets the InstanceAlias field's value. +func (s *Instance) SetInstanceAlias(v string) *Instance { + s.InstanceAlias = &v + return s +} + +// SetInstanceStatus sets the InstanceStatus field's value. +func (s *Instance) SetInstanceStatus(v string) *Instance { + s.InstanceStatus = &v + return s +} + +// SetOutboundCallsEnabled sets the OutboundCallsEnabled field's value. +func (s *Instance) SetOutboundCallsEnabled(v bool) *Instance { + s.OutboundCallsEnabled = &v + return s +} + +// SetServiceRole sets the ServiceRole field's value. +func (s *Instance) SetServiceRole(v string) *Instance { + s.ServiceRole = &v + return s +} + +// SetStatusReason sets the StatusReason field's value. +func (s *Instance) SetStatusReason(v *InstanceStatusReason) *Instance { + s.StatusReason = v + return s +} + +// Relevant details why the instance was not successfully created. +type InstanceStatusReason struct { + _ struct{} `type:"structure"` + + // The message. + Message *string `type:"string"` +} + +// String returns the string representation +func (s InstanceStatusReason) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InstanceStatusReason) GoString() string { + return s.String() +} + +// SetMessage sets the Message field's value. +func (s *InstanceStatusReason) SetMessage(v string) *InstanceStatusReason { + s.Message = &v + return s +} + +// The storage configuration for the instance. +type InstanceStorageConfig struct { + _ struct{} `type:"structure"` + + // The existing association identifier that uniquely identifies the resource + // type and storage config for the given instance ID. + AssociationId *string `min:"1" type:"string"` + + // The configuration of the Kinesis Firehose delivery stream. + KinesisFirehoseConfig *KinesisFirehoseConfig `type:"structure"` + + // The configuration of the Kinesis data stream. + KinesisStreamConfig *KinesisStreamConfig `type:"structure"` + + // The configuration of the Kinesis video stream. + KinesisVideoStreamConfig *KinesisVideoStreamConfig `type:"structure"` + + // The S3 configuration. + S3Config *S3Config `type:"structure"` + + // A valid storage type. // - // StartTime is a required field - StartTime *time.Time `type:"timestamp" required:"true"` + // StorageType is a required field + StorageType *string `type:"string" required:"true" enum:"StorageType"` } // String returns the string representation -func (s GetMetricDataInput) String() string { +func (s InstanceStorageConfig) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetMetricDataInput) GoString() string { +func (s InstanceStorageConfig) GoString() string { return s.String() } // 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")) +func (s *InstanceStorageConfig) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "InstanceStorageConfig"} + if s.AssociationId != nil && len(*s.AssociationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AssociationId", 1)) } - if s.InstanceId == nil { - invalidParams.Add(request.NewErrParamRequired("InstanceId")) + if s.StorageType == nil { + invalidParams.Add(request.NewErrParamRequired("StorageType")) } - if s.InstanceId != nil && len(*s.InstanceId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("InstanceId", 1)) + if s.KinesisFirehoseConfig != nil { + if err := s.KinesisFirehoseConfig.Validate(); err != nil { + invalidParams.AddNested("KinesisFirehoseConfig", err.(request.ErrInvalidParams)) + } } - if s.MaxResults != nil && *s.MaxResults < 1 { - invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + if s.KinesisStreamConfig != nil { + if err := s.KinesisStreamConfig.Validate(); err != nil { + invalidParams.AddNested("KinesisStreamConfig", err.(request.ErrInvalidParams)) + } } - if s.StartTime == nil { - invalidParams.Add(request.NewErrParamRequired("StartTime")) + if s.KinesisVideoStreamConfig != nil { + if err := s.KinesisVideoStreamConfig.Validate(); err != nil { + invalidParams.AddNested("KinesisVideoStreamConfig", err.(request.ErrInvalidParams)) + } } - if s.Filters != nil { - if err := s.Filters.Validate(); err != nil { - invalidParams.AddNested("Filters", err.(request.ErrInvalidParams)) + if s.S3Config != nil { + if err := s.S3Config.Validate(); err != nil { + invalidParams.AddNested("S3Config", err.(request.ErrInvalidParams)) } } @@ -8232,261 +13002,432 @@ func (s *GetMetricDataInput) Validate() error { return nil } -// SetEndTime sets the EndTime field's value. -func (s *GetMetricDataInput) SetEndTime(v time.Time) *GetMetricDataInput { - s.EndTime = &v +// SetAssociationId sets the AssociationId field's value. +func (s *InstanceStorageConfig) SetAssociationId(v string) *InstanceStorageConfig { + s.AssociationId = &v + return s +} + +// SetKinesisFirehoseConfig sets the KinesisFirehoseConfig field's value. +func (s *InstanceStorageConfig) SetKinesisFirehoseConfig(v *KinesisFirehoseConfig) *InstanceStorageConfig { + s.KinesisFirehoseConfig = v + return s +} + +// SetKinesisStreamConfig sets the KinesisStreamConfig field's value. +func (s *InstanceStorageConfig) SetKinesisStreamConfig(v *KinesisStreamConfig) *InstanceStorageConfig { + s.KinesisStreamConfig = v + return s +} + +// SetKinesisVideoStreamConfig sets the KinesisVideoStreamConfig field's value. +func (s *InstanceStorageConfig) SetKinesisVideoStreamConfig(v *KinesisVideoStreamConfig) *InstanceStorageConfig { + s.KinesisVideoStreamConfig = v + return s +} + +// SetS3Config sets the S3Config field's value. +func (s *InstanceStorageConfig) SetS3Config(v *S3Config) *InstanceStorageConfig { + s.S3Config = v + return s +} + +// SetStorageType sets the StorageType field's value. +func (s *InstanceStorageConfig) SetStorageType(v string) *InstanceStorageConfig { + s.StorageType = &v + return s +} + +// Information about the instance. +type InstanceSummary struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the instance. + Arn *string `type:"string"` + + // When the instance was created. + CreatedTime *time.Time `type:"timestamp"` + + // The identifier of the instance. + Id *string `min:"1" type:"string"` + + // The identity management type of the instance. + IdentityManagementType *string `type:"string" enum:"DirectoryType"` + + // Whether inbound calls are enabled. + InboundCallsEnabled *bool `type:"boolean"` + + // The alias of the instance. + InstanceAlias *string `min:"1" type:"string" sensitive:"true"` + + // The state of the instance. + InstanceStatus *string `type:"string" enum:"InstanceStatus"` + + // Whether outbound calls are enabled. + OutboundCallsEnabled *bool `type:"boolean"` + + // The service role of the instance. + ServiceRole *string `type:"string"` +} + +// String returns the string representation +func (s InstanceSummary) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InstanceSummary) GoString() string { + return s.String() +} + +// SetArn sets the Arn field's value. +func (s *InstanceSummary) SetArn(v string) *InstanceSummary { + s.Arn = &v + return s +} + +// SetCreatedTime sets the CreatedTime field's value. +func (s *InstanceSummary) SetCreatedTime(v time.Time) *InstanceSummary { + s.CreatedTime = &v return s } -// SetFilters sets the Filters field's value. -func (s *GetMetricDataInput) SetFilters(v *Filters) *GetMetricDataInput { - s.Filters = v +// SetId sets the Id field's value. +func (s *InstanceSummary) SetId(v string) *InstanceSummary { + s.Id = &v return s } -// SetGroupings sets the Groupings field's value. -func (s *GetMetricDataInput) SetGroupings(v []*string) *GetMetricDataInput { - s.Groupings = v +// SetIdentityManagementType sets the IdentityManagementType field's value. +func (s *InstanceSummary) SetIdentityManagementType(v string) *InstanceSummary { + s.IdentityManagementType = &v return s } -// SetHistoricalMetrics sets the HistoricalMetrics field's value. -func (s *GetMetricDataInput) SetHistoricalMetrics(v []*HistoricalMetric) *GetMetricDataInput { - s.HistoricalMetrics = v +// SetInboundCallsEnabled sets the InboundCallsEnabled field's value. +func (s *InstanceSummary) SetInboundCallsEnabled(v bool) *InstanceSummary { + s.InboundCallsEnabled = &v return s } -// SetInstanceId sets the InstanceId field's value. -func (s *GetMetricDataInput) SetInstanceId(v string) *GetMetricDataInput { - s.InstanceId = &v +// SetInstanceAlias sets the InstanceAlias field's value. +func (s *InstanceSummary) SetInstanceAlias(v string) *InstanceSummary { + s.InstanceAlias = &v return s } -// SetMaxResults sets the MaxResults field's value. -func (s *GetMetricDataInput) SetMaxResults(v int64) *GetMetricDataInput { - s.MaxResults = &v +// SetInstanceStatus sets the InstanceStatus field's value. +func (s *InstanceSummary) SetInstanceStatus(v string) *InstanceSummary { + s.InstanceStatus = &v return s } -// SetNextToken sets the NextToken field's value. -func (s *GetMetricDataInput) SetNextToken(v string) *GetMetricDataInput { - s.NextToken = &v +// SetOutboundCallsEnabled sets the OutboundCallsEnabled field's value. +func (s *InstanceSummary) SetOutboundCallsEnabled(v bool) *InstanceSummary { + s.OutboundCallsEnabled = &v return s } -// SetStartTime sets the StartTime field's value. -func (s *GetMetricDataInput) SetStartTime(v time.Time) *GetMetricDataInput { - s.StartTime = &v +// SetServiceRole sets the ServiceRole field's value. +func (s *InstanceSummary) SetServiceRole(v string) *InstanceSummary { + s.ServiceRole = &v return s } -type GetMetricDataOutput struct { - _ struct{} `type:"structure"` +// Request processing failed due to an error or failure with the service. +type InternalServiceException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` - // Information about the historical metrics. - // - // If no grouping is specified, a summary of metric data is returned. - MetricResults []*HistoricalMetricResult `type:"list"` + // The message. + Message_ *string `locationName:"Message" type:"string"` +} - // 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 InternalServiceException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InternalServiceException) GoString() string { + return s.String() +} + +func newErrorInternalServiceException(v protocol.ResponseMetadata) error { + return &InternalServiceException{ + RespMetadata: v, + } +} + +// Code returns the exception type name. +func (s *InternalServiceException) Code() string { + return "InternalServiceException" +} + +// Message returns the exception's message. +func (s *InternalServiceException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *InternalServiceException) OrigErr() error { + return nil +} + +func (s *InternalServiceException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s *InternalServiceException) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *InternalServiceException) RequestID() string { + return s.RespMetadata.RequestID +} + +// The contact flow is not valid. +type InvalidContactFlowException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + Message_ *string `locationName:"message" type:"string"` + + // The problems with the contact flow. Please fix before trying again. + Problems []*ProblemDetail `locationName:"problems" min:"1" type:"list"` } // String returns the string representation -func (s GetMetricDataOutput) String() string { +func (s InvalidContactFlowException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetMetricDataOutput) GoString() string { +func (s InvalidContactFlowException) GoString() string { return s.String() } -// SetMetricResults sets the MetricResults field's value. -func (s *GetMetricDataOutput) SetMetricResults(v []*HistoricalMetricResult) *GetMetricDataOutput { - s.MetricResults = v - return s +func newErrorInvalidContactFlowException(v protocol.ResponseMetadata) error { + return &InvalidContactFlowException{ + RespMetadata: v, + } } -// SetNextToken sets the NextToken field's value. -func (s *GetMetricDataOutput) SetNextToken(v string) *GetMetricDataOutput { - s.NextToken = &v - return s +// Code returns the exception type name. +func (s *InvalidContactFlowException) Code() string { + return "InvalidContactFlowException" } -// Contains information about a hierarchy group. -type HierarchyGroup struct { - _ struct{} `type:"structure"` +// Message returns the exception's message. +func (s *InvalidContactFlowException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} - // The Amazon Resource Name (ARN) of the hierarchy group. - Arn *string `type:"string"` +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *InvalidContactFlowException) OrigErr() error { + return nil +} - // Information about the levels in the hierarchy group. - HierarchyPath *HierarchyPath `type:"structure"` +func (s *InvalidContactFlowException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} - // The identifier of the hierarchy group. - Id *string `type:"string"` +// Status code returns the HTTP status code for the request's response error. +func (s *InvalidContactFlowException) StatusCode() int { + return s.RespMetadata.StatusCode +} - // The identifier of the level in the hierarchy group. - LevelId *string `type:"string"` +// RequestID returns the service's response RequestID for request. +func (s *InvalidContactFlowException) RequestID() string { + return s.RespMetadata.RequestID +} - // The name of the hierarchy group. - Name *string `type:"string"` +// One or more of the specified parameters are not valid. +type InvalidParameterException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + // The message. + Message_ *string `locationName:"Message" type:"string"` } // String returns the string representation -func (s HierarchyGroup) String() string { +func (s InvalidParameterException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s HierarchyGroup) GoString() string { +func (s InvalidParameterException) GoString() string { return s.String() } -// SetArn sets the Arn field's value. -func (s *HierarchyGroup) SetArn(v string) *HierarchyGroup { - s.Arn = &v - return s +func newErrorInvalidParameterException(v protocol.ResponseMetadata) error { + return &InvalidParameterException{ + RespMetadata: v, + } } -// SetHierarchyPath sets the HierarchyPath field's value. -func (s *HierarchyGroup) SetHierarchyPath(v *HierarchyPath) *HierarchyGroup { - s.HierarchyPath = v - return s +// Code returns the exception type name. +func (s *InvalidParameterException) Code() string { + return "InvalidParameterException" } -// SetId sets the Id field's value. -func (s *HierarchyGroup) SetId(v string) *HierarchyGroup { - s.Id = &v - return s +// Message returns the exception's message. +func (s *InvalidParameterException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" } -// SetLevelId sets the LevelId field's value. -func (s *HierarchyGroup) SetLevelId(v string) *HierarchyGroup { - s.LevelId = &v - return s +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *InvalidParameterException) OrigErr() error { + return nil } -// SetName sets the Name field's value. -func (s *HierarchyGroup) SetName(v string) *HierarchyGroup { - s.Name = &v - return s +func (s *InvalidParameterException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } -// Contains summary information about a hierarchy group. -type HierarchyGroupSummary struct { - _ struct{} `type:"structure"` +// Status code returns the HTTP status code for the request's response error. +func (s *InvalidParameterException) StatusCode() int { + return s.RespMetadata.StatusCode +} - // The Amazon Resource Name (ARN) of the hierarchy group. - Arn *string `type:"string"` +// RequestID returns the service's response RequestID for request. +func (s *InvalidParameterException) RequestID() string { + return s.RespMetadata.RequestID +} - // The identifier of the hierarchy group. - Id *string `type:"string"` +// The request is not valid. +type InvalidRequestException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` - // The name of the hierarchy group. - Name *string `type:"string"` + // The message. + Message_ *string `locationName:"Message" type:"string"` } // String returns the string representation -func (s HierarchyGroupSummary) String() string { +func (s InvalidRequestException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s HierarchyGroupSummary) GoString() string { +func (s InvalidRequestException) GoString() string { return s.String() } -// SetArn sets the Arn field's value. -func (s *HierarchyGroupSummary) SetArn(v string) *HierarchyGroupSummary { - s.Arn = &v - return s +func newErrorInvalidRequestException(v protocol.ResponseMetadata) error { + return &InvalidRequestException{ + RespMetadata: v, + } +} + +// Code returns the exception type name. +func (s *InvalidRequestException) Code() string { + return "InvalidRequestException" +} + +// Message returns the exception's message. +func (s *InvalidRequestException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *InvalidRequestException) OrigErr() error { + return nil +} + +func (s *InvalidRequestException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } -// SetId sets the Id field's value. -func (s *HierarchyGroupSummary) SetId(v string) *HierarchyGroupSummary { - s.Id = &v - return s +// Status code returns the HTTP status code for the request's response error. +func (s *InvalidRequestException) StatusCode() int { + return s.RespMetadata.StatusCode } -// SetName sets the Name field's value. -func (s *HierarchyGroupSummary) SetName(v string) *HierarchyGroupSummary { - s.Name = &v - return s +// RequestID returns the service's response RequestID for request. +func (s *InvalidRequestException) RequestID() string { + return s.RespMetadata.RequestID } -// Contains information about a hierarchy level. -type HierarchyLevel struct { +// Configuration information of a Kinesis Firehose delivery stream. +type KinesisFirehoseConfig 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"` + // The Amazon Resource Name (ARN) of the delivery stream. + // + // FirehoseArn is a required field + FirehoseArn *string `type:"string" required:"true"` } // String returns the string representation -func (s HierarchyLevel) String() string { +func (s KinesisFirehoseConfig) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s HierarchyLevel) GoString() string { +func (s KinesisFirehoseConfig) GoString() string { return s.String() } -// SetArn sets the Arn field's value. -func (s *HierarchyLevel) SetArn(v string) *HierarchyLevel { - s.Arn = &v - return s -} +// Validate inspects the fields of the type to determine if they are valid. +func (s *KinesisFirehoseConfig) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "KinesisFirehoseConfig"} + if s.FirehoseArn == nil { + invalidParams.Add(request.NewErrParamRequired("FirehoseArn")) + } -// SetId sets the Id field's value. -func (s *HierarchyLevel) SetId(v string) *HierarchyLevel { - s.Id = &v - return s + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// SetName sets the Name field's value. -func (s *HierarchyLevel) SetName(v string) *HierarchyLevel { - s.Name = &v +// SetFirehoseArn sets the FirehoseArn field's value. +func (s *KinesisFirehoseConfig) SetFirehoseArn(v string) *KinesisFirehoseConfig { + s.FirehoseArn = &v return s } -// Contains information about the hierarchy level to update. -type HierarchyLevelUpdate struct { +// Configuration information of a Kinesis data stream. +type KinesisStreamConfig struct { _ struct{} `type:"structure"` - // The name of the user hierarchy level. Must not be more than 50 characters. + // The Amazon Resource Name (ARN) of the data stream. // - // Name is a required field - Name *string `type:"string" required:"true"` + // StreamArn is a required field + StreamArn *string `type:"string" required:"true"` } // String returns the string representation -func (s HierarchyLevelUpdate) String() string { +func (s KinesisStreamConfig) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s HierarchyLevelUpdate) GoString() string { +func (s KinesisStreamConfig) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *HierarchyLevelUpdate) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "HierarchyLevelUpdate"} - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) +func (s *KinesisStreamConfig) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "KinesisStreamConfig"} + if s.StreamArn == nil { + invalidParams.Add(request.NewErrParamRequired("StreamArn")) } if invalidParams.Len() > 0 { @@ -8495,189 +13436,217 @@ func (s *HierarchyLevelUpdate) Validate() error { return nil } -// SetName sets the Name field's value. -func (s *HierarchyLevelUpdate) SetName(v string) *HierarchyLevelUpdate { - s.Name = &v +// SetStreamArn sets the StreamArn field's value. +func (s *KinesisStreamConfig) SetStreamArn(v string) *KinesisStreamConfig { + s.StreamArn = &v return s } -// Contains information about the levels of a hierarchy group. -type HierarchyPath struct { +// Configuration information of a Kinesis video stream. +type KinesisVideoStreamConfig 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"` + // The encryption configuration. + // + // EncryptionConfig is a required field + EncryptionConfig *EncryptionConfig `type:"structure" required:"true"` - // Information about level three. - LevelThree *HierarchyGroupSummary `type:"structure"` + // The prefix of the video stream. + // + // Prefix is a required field + Prefix *string `min:"1" type:"string" required:"true"` - // Information about level two. - LevelTwo *HierarchyGroupSummary `type:"structure"` + // The number of hours data is retained in the stream. Kinesis Video Streams + // retains the data in a data store that is associated with the stream. + // + // The default value is 0, indicating that the stream does not persist data. + // + // RetentionPeriodHours is a required field + RetentionPeriodHours *int64 `type:"integer" required:"true"` } // String returns the string representation -func (s HierarchyPath) String() string { +func (s KinesisVideoStreamConfig) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s HierarchyPath) GoString() string { +func (s KinesisVideoStreamConfig) GoString() string { return s.String() } -// SetLevelFive sets the LevelFive field's value. -func (s *HierarchyPath) SetLevelFive(v *HierarchyGroupSummary) *HierarchyPath { - s.LevelFive = v - return s -} +// Validate inspects the fields of the type to determine if they are valid. +func (s *KinesisVideoStreamConfig) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "KinesisVideoStreamConfig"} + if s.EncryptionConfig == nil { + invalidParams.Add(request.NewErrParamRequired("EncryptionConfig")) + } + if s.Prefix == nil { + invalidParams.Add(request.NewErrParamRequired("Prefix")) + } + if s.Prefix != nil && len(*s.Prefix) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Prefix", 1)) + } + if s.RetentionPeriodHours == nil { + invalidParams.Add(request.NewErrParamRequired("RetentionPeriodHours")) + } + if s.EncryptionConfig != nil { + if err := s.EncryptionConfig.Validate(); err != nil { + invalidParams.AddNested("EncryptionConfig", err.(request.ErrInvalidParams)) + } + } -// SetLevelFour sets the LevelFour field's value. -func (s *HierarchyPath) SetLevelFour(v *HierarchyGroupSummary) *HierarchyPath { - s.LevelFour = v - return s + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// SetLevelOne sets the LevelOne field's value. -func (s *HierarchyPath) SetLevelOne(v *HierarchyGroupSummary) *HierarchyPath { - s.LevelOne = v +// SetEncryptionConfig sets the EncryptionConfig field's value. +func (s *KinesisVideoStreamConfig) SetEncryptionConfig(v *EncryptionConfig) *KinesisVideoStreamConfig { + s.EncryptionConfig = v return s } -// SetLevelThree sets the LevelThree field's value. -func (s *HierarchyPath) SetLevelThree(v *HierarchyGroupSummary) *HierarchyPath { - s.LevelThree = v +// SetPrefix sets the Prefix field's value. +func (s *KinesisVideoStreamConfig) SetPrefix(v string) *KinesisVideoStreamConfig { + s.Prefix = &v return s } -// SetLevelTwo sets the LevelTwo field's value. -func (s *HierarchyPath) SetLevelTwo(v *HierarchyGroupSummary) *HierarchyPath { - s.LevelTwo = v +// SetRetentionPeriodHours sets the RetentionPeriodHours field's value. +func (s *KinesisVideoStreamConfig) SetRetentionPeriodHours(v int64) *KinesisVideoStreamConfig { + s.RetentionPeriodHours = &v return s } -// Contains information about a hierarchy structure. -type HierarchyStructure struct { +// Configuration information of an Amazon Lex bot. +type LexBot struct { _ struct{} `type:"structure"` - // Information about level five. - LevelFive *HierarchyLevel `type:"structure"` + // The Region the Amazon Lex bot was created in. + LexRegion *string `type:"string"` - // Information about level four. - LevelFour *HierarchyLevel `type:"structure"` + // The name of the Amazon Lex bot. + Name *string `type:"string"` +} - // Information about level one. - LevelOne *HierarchyLevel `type:"structure"` +// String returns the string representation +func (s LexBot) String() string { + return awsutil.Prettify(s) +} - // Information about level three. - LevelThree *HierarchyLevel `type:"structure"` +// GoString returns the string representation +func (s LexBot) GoString() string { + return s.String() +} - // Information about level two. - LevelTwo *HierarchyLevel `type:"structure"` +// SetLexRegion sets the LexRegion field's value. +func (s *LexBot) SetLexRegion(v string) *LexBot { + s.LexRegion = &v + return s +} + +// SetName sets the Name field's value. +func (s *LexBot) SetName(v string) *LexBot { + s.Name = &v + return s +} + +// The allowed limit for the resource has been exceeded. +type LimitExceededException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + // The message. + Message_ *string `locationName:"Message" type:"string"` } // String returns the string representation -func (s HierarchyStructure) String() string { +func (s LimitExceededException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s HierarchyStructure) GoString() string { +func (s LimitExceededException) GoString() string { return s.String() } -// SetLevelFive sets the LevelFive field's value. -func (s *HierarchyStructure) SetLevelFive(v *HierarchyLevel) *HierarchyStructure { - s.LevelFive = v - return s +func newErrorLimitExceededException(v protocol.ResponseMetadata) error { + return &LimitExceededException{ + RespMetadata: v, + } } -// SetLevelFour sets the LevelFour field's value. -func (s *HierarchyStructure) SetLevelFour(v *HierarchyLevel) *HierarchyStructure { - s.LevelFour = v - return s +// Code returns the exception type name. +func (s *LimitExceededException) Code() string { + return "LimitExceededException" } -// SetLevelOne sets the LevelOne field's value. -func (s *HierarchyStructure) SetLevelOne(v *HierarchyLevel) *HierarchyStructure { - s.LevelOne = v - return s +// Message returns the exception's message. +func (s *LimitExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" } -// SetLevelThree sets the LevelThree field's value. -func (s *HierarchyStructure) SetLevelThree(v *HierarchyLevel) *HierarchyStructure { - s.LevelThree = v - return s +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *LimitExceededException) OrigErr() error { + return nil } -// SetLevelTwo sets the LevelTwo field's value. -func (s *HierarchyStructure) SetLevelTwo(v *HierarchyLevel) *HierarchyStructure { - s.LevelTwo = v - return s +func (s *LimitExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } -// Contains information about the level hierarchy to update. -type HierarchyStructureUpdate struct { - _ struct{} `type:"structure"` +// Status code returns the HTTP status code for the request's response error. +func (s *LimitExceededException) StatusCode() int { + return s.RespMetadata.StatusCode +} - // The update for level five. - LevelFive *HierarchyLevelUpdate `type:"structure"` +// RequestID returns the service's response RequestID for request. +func (s *LimitExceededException) RequestID() string { + return s.RespMetadata.RequestID +} - // The update for level four. - LevelFour *HierarchyLevelUpdate `type:"structure"` +type ListApprovedOriginsInput struct { + _ struct{} `type:"structure"` - // The update for level one. - LevelOne *HierarchyLevelUpdate `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 update for level three. - LevelThree *HierarchyLevelUpdate `type:"structure"` + // The maximimum number of results to return per page. + MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"` - // The update for level two. - LevelTwo *HierarchyLevelUpdate `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 HierarchyStructureUpdate) String() string { +func (s ListApprovedOriginsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s HierarchyStructureUpdate) GoString() string { +func (s ListApprovedOriginsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *HierarchyStructureUpdate) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "HierarchyStructureUpdate"} - if s.LevelFive != nil { - if err := s.LevelFive.Validate(); err != nil { - invalidParams.AddNested("LevelFive", err.(request.ErrInvalidParams)) - } - } - if s.LevelFour != nil { - if err := s.LevelFour.Validate(); err != nil { - invalidParams.AddNested("LevelFour", err.(request.ErrInvalidParams)) - } - } - if s.LevelOne != nil { - if err := s.LevelOne.Validate(); err != nil { - invalidParams.AddNested("LevelOne", err.(request.ErrInvalidParams)) - } +func (s *ListApprovedOriginsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListApprovedOriginsInput"} + if s.InstanceId == nil { + invalidParams.Add(request.NewErrParamRequired("InstanceId")) } - if s.LevelThree != nil { - if err := s.LevelThree.Validate(); err != nil { - invalidParams.AddNested("LevelThree", err.(request.ErrInvalidParams)) - } + if s.InstanceId != nil && len(*s.InstanceId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("InstanceId", 1)) } - if s.LevelTwo != nil { - if err := s.LevelTwo.Validate(); err != nil { - invalidParams.AddNested("LevelTwo", err.(request.ErrInvalidParams)) - } + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) } if invalidParams.Len() > 0 { @@ -8686,490 +13655,540 @@ func (s *HierarchyStructureUpdate) Validate() error { return nil } -// SetLevelFive sets the LevelFive field's value. -func (s *HierarchyStructureUpdate) SetLevelFive(v *HierarchyLevelUpdate) *HierarchyStructureUpdate { - s.LevelFive = v +// SetInstanceId sets the InstanceId field's value. +func (s *ListApprovedOriginsInput) SetInstanceId(v string) *ListApprovedOriginsInput { + s.InstanceId = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListApprovedOriginsInput) SetMaxResults(v int64) *ListApprovedOriginsInput { + s.MaxResults = &v return s } -// SetLevelFour sets the LevelFour field's value. -func (s *HierarchyStructureUpdate) SetLevelFour(v *HierarchyLevelUpdate) *HierarchyStructureUpdate { - s.LevelFour = v +// SetNextToken sets the NextToken field's value. +func (s *ListApprovedOriginsInput) SetNextToken(v string) *ListApprovedOriginsInput { + s.NextToken = &v return s } -// SetLevelOne sets the LevelOne field's value. -func (s *HierarchyStructureUpdate) SetLevelOne(v *HierarchyLevelUpdate) *HierarchyStructureUpdate { - s.LevelOne = v - return s +type ListApprovedOriginsOutput struct { + _ struct{} `type:"structure"` + + // If there are additional results, this is the token for the next set of results. + NextToken *string `type:"string"` + + // The approved origins. + Origins []*string `type:"list"` } -// SetLevelThree sets the LevelThree field's value. -func (s *HierarchyStructureUpdate) SetLevelThree(v *HierarchyLevelUpdate) *HierarchyStructureUpdate { - s.LevelThree = v +// String returns the string representation +func (s ListApprovedOriginsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListApprovedOriginsOutput) GoString() string { + return s.String() +} + +// SetNextToken sets the NextToken field's value. +func (s *ListApprovedOriginsOutput) SetNextToken(v string) *ListApprovedOriginsOutput { + s.NextToken = &v return s } -// SetLevelTwo sets the LevelTwo field's value. -func (s *HierarchyStructureUpdate) SetLevelTwo(v *HierarchyLevelUpdate) *HierarchyStructureUpdate { - s.LevelTwo = v +// SetOrigins sets the Origins field's value. +func (s *ListApprovedOriginsOutput) SetOrigins(v []*string) *ListApprovedOriginsOutput { + s.Origins = v return s } -// Contains information about a historical metric. For a description of each -// metric, see Historical Metrics Definitions (https://docs.aws.amazon.com/connect/latest/adminguide/historical-metrics-definitions.html) -// in the Amazon Connect Administrator Guide. -type HistoricalMetric struct { +type ListContactFlowsInput struct { _ struct{} `type:"structure"` - // The name of the metric. - Name *string `type:"string" enum:"HistoricalMetricName"` + // The type of contact flow. + ContactFlowTypes []*string `location:"querystring" locationName:"contactFlowTypes" type:"list"` - // The statistic for the metric. - Statistic *string `type:"string" enum:"Statistic"` + // 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 threshold for the metric, used with service level metrics. - Threshold *Threshold `type:"structure"` + // The maximimum number of results to return per page. + MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"` - // The unit for the metric. - Unit *string `type:"string" enum:"Unit"` + // 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 HistoricalMetric) String() string { +func (s ListContactFlowsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s HistoricalMetric) GoString() string { +func (s ListContactFlowsInput) GoString() string { return s.String() } -// SetName sets the Name field's value. -func (s *HistoricalMetric) SetName(v string) *HistoricalMetric { - s.Name = &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 } -// SetStatistic sets the Statistic field's value. -func (s *HistoricalMetric) SetStatistic(v string) *HistoricalMetric { - s.Statistic = &v +// SetInstanceId sets the InstanceId field's value. +func (s *ListContactFlowsInput) SetInstanceId(v string) *ListContactFlowsInput { + s.InstanceId = &v return s } -// SetThreshold sets the Threshold field's value. -func (s *HistoricalMetric) SetThreshold(v *Threshold) *HistoricalMetric { - s.Threshold = v +// SetMaxResults sets the MaxResults field's value. +func (s *ListContactFlowsInput) SetMaxResults(v int64) *ListContactFlowsInput { + s.MaxResults = &v return s } -// SetUnit sets the Unit field's value. -func (s *HistoricalMetric) SetUnit(v string) *HistoricalMetric { - s.Unit = &v +// SetNextToken sets the NextToken field's value. +func (s *ListContactFlowsInput) SetNextToken(v string) *ListContactFlowsInput { + s.NextToken = &v return s } -// Contains the data for a historical metric. -type HistoricalMetricData struct { +type ListContactFlowsOutput struct { _ struct{} `type:"structure"` - // Information about the metric. - Metric *HistoricalMetric `type:"structure"` + // Information about the contact flows. + ContactFlowSummaryList []*ContactFlowSummary `type:"list"` - // The value of the metric. - Value *float64 `type:"double"` + // 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 HistoricalMetricData) String() string { +func (s ListContactFlowsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s HistoricalMetricData) GoString() string { +func (s ListContactFlowsOutput) GoString() string { return s.String() } -// SetMetric sets the Metric field's value. -func (s *HistoricalMetricData) SetMetric(v *HistoricalMetric) *HistoricalMetricData { - s.Metric = v +// SetContactFlowSummaryList sets the ContactFlowSummaryList field's value. +func (s *ListContactFlowsOutput) SetContactFlowSummaryList(v []*ContactFlowSummary) *ListContactFlowsOutput { + s.ContactFlowSummaryList = v return s } -// SetValue sets the Value field's value. -func (s *HistoricalMetricData) SetValue(v float64) *HistoricalMetricData { - s.Value = &v +// SetNextToken sets the NextToken field's value. +func (s *ListContactFlowsOutput) SetNextToken(v string) *ListContactFlowsOutput { + s.NextToken = &v return s } -// Contains information about the historical metrics retrieved. -type HistoricalMetricResult struct { +type ListHoursOfOperationsInput struct { _ struct{} `type:"structure"` - // The set of metrics. - Collections []*HistoricalMetricData `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"` - // The dimension for the metrics. - Dimensions *Dimensions `type:"structure"` + // 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 HistoricalMetricResult) String() string { +func (s ListHoursOfOperationsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s HistoricalMetricResult) GoString() string { +func (s ListHoursOfOperationsInput) GoString() string { return s.String() } -// SetCollections sets the Collections field's value. -func (s *HistoricalMetricResult) SetCollections(v []*HistoricalMetricData) *HistoricalMetricResult { - s.Collections = 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 } -// SetDimensions sets the Dimensions field's value. -func (s *HistoricalMetricResult) SetDimensions(v *Dimensions) *HistoricalMetricResult { - s.Dimensions = v +// SetMaxResults sets the MaxResults field's value. +func (s *ListHoursOfOperationsInput) SetMaxResults(v int64) *ListHoursOfOperationsInput { + s.MaxResults = &v return s } -// Contains summary information about hours of operation for a contact center. -type HoursOfOperationSummary struct { - _ struct{} `type:"structure"` +// SetNextToken sets the NextToken field's value. +func (s *ListHoursOfOperationsInput) SetNextToken(v string) *ListHoursOfOperationsInput { + s.NextToken = &v + return s +} - // The Amazon Resource Name (ARN) of the hours of operation. - Arn *string `type:"string"` +type ListHoursOfOperationsOutput struct { + _ struct{} `type:"structure"` - // The identifier of the hours of operation. - Id *string `type:"string"` + // Information about the hours of operation. + HoursOfOperationSummaryList []*HoursOfOperationSummary `type:"list"` - // The name of the hours of operation. - 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 HoursOfOperationSummary) String() string { +func (s ListHoursOfOperationsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s HoursOfOperationSummary) GoString() string { +func (s ListHoursOfOperationsOutput) GoString() string { return s.String() } -// SetArn sets the Arn field's value. -func (s *HoursOfOperationSummary) SetArn(v string) *HoursOfOperationSummary { - s.Arn = &v +// SetHoursOfOperationSummaryList sets the HoursOfOperationSummaryList field's value. +func (s *ListHoursOfOperationsOutput) SetHoursOfOperationSummaryList(v []*HoursOfOperationSummary) *ListHoursOfOperationsOutput { + s.HoursOfOperationSummaryList = v return s } -// SetId sets the Id field's value. -func (s *HoursOfOperationSummary) SetId(v string) *HoursOfOperationSummary { - s.Id = &v +// SetNextToken sets the NextToken field's value. +func (s *ListHoursOfOperationsOutput) SetNextToken(v string) *ListHoursOfOperationsOutput { + s.NextToken = &v return s } -// SetName sets the Name field's value. -func (s *HoursOfOperationSummary) SetName(v string) *HoursOfOperationSummary { - s.Name = &v - return s -} +type ListInstanceAttributesInput struct { + _ struct{} `type:"structure"` -// Request processing failed due to an error or failure with the service. -type InternalServiceException struct { - _ struct{} `type:"structure"` - RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + // 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 message. - Message_ *string `locationName:"Message" 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 InternalServiceException) String() string { +func (s ListInstanceAttributesInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s InternalServiceException) GoString() string { +func (s ListInstanceAttributesInput) GoString() string { return s.String() } -func newErrorInternalServiceException(v protocol.ResponseMetadata) error { - return &InternalServiceException{ - RespMetadata: v, +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListInstanceAttributesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListInstanceAttributesInput"} + 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)) } -} - -// Code returns the exception type name. -func (s *InternalServiceException) Code() string { - return "InternalServiceException" -} -// Message returns the exception's message. -func (s *InternalServiceException) Message() string { - if s.Message_ != nil { - return *s.Message_ + if invalidParams.Len() > 0 { + return invalidParams } - return "" -} - -// OrigErr always returns nil, satisfies awserr.Error interface. -func (s *InternalServiceException) OrigErr() error { return nil } -func (s *InternalServiceException) Error() string { - return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +// SetInstanceId sets the InstanceId field's value. +func (s *ListInstanceAttributesInput) SetInstanceId(v string) *ListInstanceAttributesInput { + s.InstanceId = &v + return s } -// Status code returns the HTTP status code for the request's response error. -func (s *InternalServiceException) StatusCode() int { - return s.RespMetadata.StatusCode +// SetMaxResults sets the MaxResults field's value. +func (s *ListInstanceAttributesInput) SetMaxResults(v int64) *ListInstanceAttributesInput { + s.MaxResults = &v + return s } -// RequestID returns the service's response RequestID for request. -func (s *InternalServiceException) RequestID() string { - return s.RespMetadata.RequestID +// SetNextToken sets the NextToken field's value. +func (s *ListInstanceAttributesInput) SetNextToken(v string) *ListInstanceAttributesInput { + s.NextToken = &v + return s } -// The contact flow is not valid. -type InvalidContactFlowException struct { - _ struct{} `type:"structure"` - RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` +type ListInstanceAttributesOutput struct { + _ struct{} `type:"structure"` - Message_ *string `locationName:"message" type:"string"` + // The attribute types. + Attributes []*Attribute `type:"list"` - // The problems with the contact flow. Please fix before trying again. - Problems []*ProblemDetail `locationName:"problems" min:"1" 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 InvalidContactFlowException) String() string { +func (s ListInstanceAttributesOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s InvalidContactFlowException) GoString() string { +func (s ListInstanceAttributesOutput) GoString() string { return s.String() } -func newErrorInvalidContactFlowException(v protocol.ResponseMetadata) error { - return &InvalidContactFlowException{ - RespMetadata: v, - } -} - -// Code returns the exception type name. -func (s *InvalidContactFlowException) Code() string { - return "InvalidContactFlowException" -} - -// Message returns the exception's message. -func (s *InvalidContactFlowException) Message() string { - if s.Message_ != nil { - return *s.Message_ - } - return "" +// SetAttributes sets the Attributes field's value. +func (s *ListInstanceAttributesOutput) SetAttributes(v []*Attribute) *ListInstanceAttributesOutput { + s.Attributes = v + return s } -// OrigErr always returns nil, satisfies awserr.Error interface. -func (s *InvalidContactFlowException) OrigErr() error { - return nil +// SetNextToken sets the NextToken field's value. +func (s *ListInstanceAttributesOutput) SetNextToken(v string) *ListInstanceAttributesOutput { + s.NextToken = &v + return s } -func (s *InvalidContactFlowException) Error() string { - return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) -} +type ListInstanceStorageConfigsInput struct { + _ struct{} `type:"structure"` -// Status code returns the HTTP status code for the request's response error. -func (s *InvalidContactFlowException) StatusCode() int { - return s.RespMetadata.StatusCode -} + // The identifier of the Amazon Connect instance. + // + // InstanceId is a required field + InstanceId *string `location:"uri" locationName:"InstanceId" min:"1" type:"string" required:"true"` -// RequestID returns the service's response RequestID for request. -func (s *InvalidContactFlowException) RequestID() string { - return s.RespMetadata.RequestID -} + // The maximimum number of results to return per page. + MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"` -// One or more of the specified parameters are not valid. -type InvalidParameterException struct { - _ struct{} `type:"structure"` - RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + // 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 message. - Message_ *string `locationName:"Message" type:"string"` + // A valid resource type. + // + // ResourceType is a required field + ResourceType *string `location:"querystring" locationName:"resourceType" type:"string" required:"true" enum:"InstanceStorageResourceType"` } // String returns the string representation -func (s InvalidParameterException) String() string { +func (s ListInstanceStorageConfigsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s InvalidParameterException) GoString() string { +func (s ListInstanceStorageConfigsInput) GoString() string { return s.String() } -func newErrorInvalidParameterException(v protocol.ResponseMetadata) error { - return &InvalidParameterException{ - RespMetadata: v, +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListInstanceStorageConfigsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListInstanceStorageConfigsInput"} + 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.ResourceType == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceType")) } -} - -// Code returns the exception type name. -func (s *InvalidParameterException) Code() string { - return "InvalidParameterException" -} -// Message returns the exception's message. -func (s *InvalidParameterException) Message() string { - if s.Message_ != nil { - return *s.Message_ + if invalidParams.Len() > 0 { + return invalidParams } - return "" + return nil } -// OrigErr always returns nil, satisfies awserr.Error interface. -func (s *InvalidParameterException) OrigErr() error { - return nil +// SetInstanceId sets the InstanceId field's value. +func (s *ListInstanceStorageConfigsInput) SetInstanceId(v string) *ListInstanceStorageConfigsInput { + s.InstanceId = &v + return s } -func (s *InvalidParameterException) Error() string { - return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +// SetMaxResults sets the MaxResults field's value. +func (s *ListInstanceStorageConfigsInput) SetMaxResults(v int64) *ListInstanceStorageConfigsInput { + s.MaxResults = &v + return s } -// Status code returns the HTTP status code for the request's response error. -func (s *InvalidParameterException) StatusCode() int { - return s.RespMetadata.StatusCode +// SetNextToken sets the NextToken field's value. +func (s *ListInstanceStorageConfigsInput) SetNextToken(v string) *ListInstanceStorageConfigsInput { + s.NextToken = &v + return s } -// RequestID returns the service's response RequestID for request. -func (s *InvalidParameterException) RequestID() string { - return s.RespMetadata.RequestID +// SetResourceType sets the ResourceType field's value. +func (s *ListInstanceStorageConfigsInput) SetResourceType(v string) *ListInstanceStorageConfigsInput { + s.ResourceType = &v + return s } -// The request is not valid. -type InvalidRequestException struct { - _ struct{} `type:"structure"` - RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` +type ListInstanceStorageConfigsOutput struct { + _ struct{} `type:"structure"` - // The message. - Message_ *string `locationName:"Message" type:"string"` + // If there are additional results, this is the token for the next set of results. + NextToken *string `type:"string"` + + // A valid storage type. + StorageConfigs []*InstanceStorageConfig `type:"list"` } // String returns the string representation -func (s InvalidRequestException) String() string { +func (s ListInstanceStorageConfigsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s InvalidRequestException) GoString() string { +func (s ListInstanceStorageConfigsOutput) GoString() string { return s.String() } -func newErrorInvalidRequestException(v protocol.ResponseMetadata) error { - return &InvalidRequestException{ - RespMetadata: v, - } -} - -// Code returns the exception type name. -func (s *InvalidRequestException) Code() string { - return "InvalidRequestException" -} - -// Message returns the exception's message. -func (s *InvalidRequestException) Message() string { - if s.Message_ != nil { - return *s.Message_ - } - return "" -} - -// OrigErr always returns nil, satisfies awserr.Error interface. -func (s *InvalidRequestException) OrigErr() error { - return nil -} - -func (s *InvalidRequestException) Error() string { - return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +// SetNextToken sets the NextToken field's value. +func (s *ListInstanceStorageConfigsOutput) SetNextToken(v string) *ListInstanceStorageConfigsOutput { + s.NextToken = &v + return s } -// Status code returns the HTTP status code for the request's response error. -func (s *InvalidRequestException) StatusCode() int { - return s.RespMetadata.StatusCode +// SetStorageConfigs sets the StorageConfigs field's value. +func (s *ListInstanceStorageConfigsOutput) SetStorageConfigs(v []*InstanceStorageConfig) *ListInstanceStorageConfigsOutput { + s.StorageConfigs = v + return s } -// RequestID returns the service's response RequestID for request. -func (s *InvalidRequestException) RequestID() string { - return s.RespMetadata.RequestID -} +type ListInstancesInput struct { + _ struct{} `type:"structure"` -// The allowed limit for the resource has been exceeded. -type LimitExceededException struct { - _ struct{} `type:"structure"` - RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + // The maximimum number of results to return per page. + MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"` - // The message. - Message_ *string `locationName:"Message" type:"string"` + // 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 LimitExceededException) String() string { +func (s ListInstancesInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s LimitExceededException) GoString() string { +func (s ListInstancesInput) GoString() string { return s.String() } -func newErrorLimitExceededException(v protocol.ResponseMetadata) error { - return &LimitExceededException{ - RespMetadata: v, +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListInstancesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListInstancesInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams } + return nil } -// Code returns the exception type name. -func (s *LimitExceededException) Code() string { - return "LimitExceededException" +// SetMaxResults sets the MaxResults field's value. +func (s *ListInstancesInput) SetMaxResults(v int64) *ListInstancesInput { + s.MaxResults = &v + return s } -// Message returns the exception's message. -func (s *LimitExceededException) Message() string { - if s.Message_ != nil { - return *s.Message_ - } - return "" +// SetNextToken sets the NextToken field's value. +func (s *ListInstancesInput) SetNextToken(v string) *ListInstancesInput { + s.NextToken = &v + return s } -// OrigErr always returns nil, satisfies awserr.Error interface. -func (s *LimitExceededException) OrigErr() error { - return nil +type ListInstancesOutput struct { + _ struct{} `type:"structure"` + + // Information about the instances. + InstanceSummaryList []*InstanceSummary `type:"list"` + + // If there are additional results, this is the token for the next set of results. + NextToken *string `type:"string"` } -func (s *LimitExceededException) Error() string { - return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +// String returns the string representation +func (s ListInstancesOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListInstancesOutput) GoString() string { + return s.String() } -// Status code returns the HTTP status code for the request's response error. -func (s *LimitExceededException) StatusCode() int { - return s.RespMetadata.StatusCode +// SetInstanceSummaryList sets the InstanceSummaryList field's value. +func (s *ListInstancesOutput) SetInstanceSummaryList(v []*InstanceSummary) *ListInstancesOutput { + s.InstanceSummaryList = v + return s } -// RequestID returns the service's response RequestID for request. -func (s *LimitExceededException) RequestID() string { - return s.RespMetadata.RequestID +// SetNextToken sets the NextToken field's value. +func (s *ListInstancesOutput) SetNextToken(v string) *ListInstancesOutput { + s.NextToken = &v + return s } -type ListContactFlowsInput struct { +type ListLambdaFunctionsInput struct { _ struct{} `type:"structure"` - // The type of contact flow. - ContactFlowTypes []*string `location:"querystring" locationName:"contactFlowTypes" type:"list"` - // The identifier of the Amazon Connect instance. // // InstanceId is a required field @@ -9184,18 +14203,18 @@ type ListContactFlowsInput struct { } // String returns the string representation -func (s ListContactFlowsInput) String() string { +func (s ListLambdaFunctionsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListContactFlowsInput) GoString() string { +func (s ListLambdaFunctionsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *ListContactFlowsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListContactFlowsInput"} +func (s *ListLambdaFunctionsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListLambdaFunctionsInput"} if s.InstanceId == nil { invalidParams.Add(request.NewErrParamRequired("InstanceId")) } @@ -9212,63 +14231,57 @@ func (s *ListContactFlowsInput) Validate() error { return nil } -// SetContactFlowTypes sets the ContactFlowTypes field's value. -func (s *ListContactFlowsInput) SetContactFlowTypes(v []*string) *ListContactFlowsInput { - s.ContactFlowTypes = v - return s -} - // SetInstanceId sets the InstanceId field's value. -func (s *ListContactFlowsInput) SetInstanceId(v string) *ListContactFlowsInput { +func (s *ListLambdaFunctionsInput) SetInstanceId(v string) *ListLambdaFunctionsInput { s.InstanceId = &v return s } // SetMaxResults sets the MaxResults field's value. -func (s *ListContactFlowsInput) SetMaxResults(v int64) *ListContactFlowsInput { +func (s *ListLambdaFunctionsInput) SetMaxResults(v int64) *ListLambdaFunctionsInput { s.MaxResults = &v return s } // SetNextToken sets the NextToken field's value. -func (s *ListContactFlowsInput) SetNextToken(v string) *ListContactFlowsInput { +func (s *ListLambdaFunctionsInput) SetNextToken(v string) *ListLambdaFunctionsInput { s.NextToken = &v return s } -type ListContactFlowsOutput struct { +type ListLambdaFunctionsOutput struct { _ struct{} `type:"structure"` - // Information about the contact flows. - ContactFlowSummaryList []*ContactFlowSummary `type:"list"` + // The Lambdafunction ARNs associated with the specified instance. + LambdaFunctions []*string `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 ListContactFlowsOutput) String() string { +func (s ListLambdaFunctionsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListContactFlowsOutput) GoString() string { +func (s ListLambdaFunctionsOutput) GoString() string { return s.String() } -// SetContactFlowSummaryList sets the ContactFlowSummaryList field's value. -func (s *ListContactFlowsOutput) SetContactFlowSummaryList(v []*ContactFlowSummary) *ListContactFlowsOutput { - s.ContactFlowSummaryList = v +// SetLambdaFunctions sets the LambdaFunctions field's value. +func (s *ListLambdaFunctionsOutput) SetLambdaFunctions(v []*string) *ListLambdaFunctionsOutput { + s.LambdaFunctions = v return s } // SetNextToken sets the NextToken field's value. -func (s *ListContactFlowsOutput) SetNextToken(v string) *ListContactFlowsOutput { +func (s *ListLambdaFunctionsOutput) SetNextToken(v string) *ListLambdaFunctionsOutput { s.NextToken = &v return s } -type ListHoursOfOperationsInput struct { +type ListLexBotsInput struct { _ struct{} `type:"structure"` // The identifier of the Amazon Connect instance. @@ -9285,18 +14298,18 @@ type ListHoursOfOperationsInput struct { } // String returns the string representation -func (s ListHoursOfOperationsInput) String() string { +func (s ListLexBotsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListHoursOfOperationsInput) GoString() string { +func (s ListLexBotsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *ListHoursOfOperationsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListHoursOfOperationsInput"} +func (s *ListLexBotsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListLexBotsInput"} if s.InstanceId == nil { invalidParams.Add(request.NewErrParamRequired("InstanceId")) } @@ -9314,51 +14327,52 @@ func (s *ListHoursOfOperationsInput) Validate() error { } // SetInstanceId sets the InstanceId field's value. -func (s *ListHoursOfOperationsInput) SetInstanceId(v string) *ListHoursOfOperationsInput { +func (s *ListLexBotsInput) SetInstanceId(v string) *ListLexBotsInput { s.InstanceId = &v return s } // SetMaxResults sets the MaxResults field's value. -func (s *ListHoursOfOperationsInput) SetMaxResults(v int64) *ListHoursOfOperationsInput { +func (s *ListLexBotsInput) SetMaxResults(v int64) *ListLexBotsInput { s.MaxResults = &v return s } // SetNextToken sets the NextToken field's value. -func (s *ListHoursOfOperationsInput) SetNextToken(v string) *ListHoursOfOperationsInput { +func (s *ListLexBotsInput) SetNextToken(v string) *ListLexBotsInput { s.NextToken = &v return s } -type ListHoursOfOperationsOutput struct { +type ListLexBotsOutput struct { _ struct{} `type:"structure"` - // Information about the hours of operation. - HoursOfOperationSummaryList []*HoursOfOperationSummary `type:"list"` + // The the names and regions of the Amazon Lex bots associated with the specified + // instance. + LexBots []*LexBot `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 { +func (s ListLexBotsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListHoursOfOperationsOutput) GoString() string { +func (s ListLexBotsOutput) GoString() string { return s.String() } -// SetHoursOfOperationSummaryList sets the HoursOfOperationSummaryList field's value. -func (s *ListHoursOfOperationsOutput) SetHoursOfOperationSummaryList(v []*HoursOfOperationSummary) *ListHoursOfOperationsOutput { - s.HoursOfOperationSummaryList = v +// SetLexBots sets the LexBots field's value. +func (s *ListLexBotsOutput) SetLexBots(v []*LexBot) *ListLexBotsOutput { + s.LexBots = v return s } // SetNextToken sets the NextToken field's value. -func (s *ListHoursOfOperationsOutput) SetNextToken(v string) *ListHoursOfOperationsOutput { +func (s *ListLexBotsOutput) SetNextToken(v string) *ListLexBotsOutput { s.NextToken = &v return s } @@ -9882,6 +14896,101 @@ func (s *ListRoutingProfilesOutput) SetRoutingProfileSummaryList(v []*RoutingPro return s } +type ListSecurityKeysInput 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 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 ListSecurityKeysInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListSecurityKeysInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListSecurityKeysInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListSecurityKeysInput"} + 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 *ListSecurityKeysInput) SetInstanceId(v string) *ListSecurityKeysInput { + s.InstanceId = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListSecurityKeysInput) SetMaxResults(v int64) *ListSecurityKeysInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListSecurityKeysInput) SetNextToken(v string) *ListSecurityKeysInput { + s.NextToken = &v + return s +} + +type ListSecurityKeysOutput struct { + _ struct{} `type:"structure"` + + // If there are additional results, this is the token for the next set of results. + NextToken *string `type:"string"` + + // The security keys. + SecurityKeys []*SecurityKey `type:"list"` +} + +// String returns the string representation +func (s ListSecurityKeysOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListSecurityKeysOutput) GoString() string { + return s.String() +} + +// SetNextToken sets the NextToken field's value. +func (s *ListSecurityKeysOutput) SetNextToken(v string) *ListSecurityKeysOutput { + s.NextToken = &v + return s +} + +// SetSecurityKeys sets the SecurityKeys field's value. +func (s *ListSecurityKeysOutput) SetSecurityKeys(v []*SecurityKey) *ListSecurityKeysOutput { + s.SecurityKeys = v + return s +} + type ListSecurityProfilesInput struct { _ struct{} `type:"structure"` @@ -10597,6 +15706,62 @@ func (s *QueueSummary) SetQueueType(v string) *QueueSummary { return s } +// A resource already has that name. +type ResourceConflictException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ResourceConflictException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceConflictException) GoString() string { + return s.String() +} + +func newErrorResourceConflictException(v protocol.ResponseMetadata) error { + return &ResourceConflictException{ + RespMetadata: v, + } +} + +// Code returns the exception type name. +func (s *ResourceConflictException) Code() string { + return "ResourceConflictException" +} + +// Message returns the exception's message. +func (s *ResourceConflictException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *ResourceConflictException) OrigErr() error { + return nil +} + +func (s *ResourceConflictException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s *ResourceConflictException) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *ResourceConflictException) RequestID() string { + return s.RespMetadata.RequestID +} + // That resource is already in use. Please try another. type ResourceInUseException struct { _ struct{} `type:"structure"` @@ -11107,51 +16272,167 @@ func (s *RoutingProfileQueueReference) SetChannel(v string) *RoutingProfileQueue return s } -// SetQueueId sets the QueueId field's value. -func (s *RoutingProfileQueueReference) SetQueueId(v string) *RoutingProfileQueueReference { - s.QueueId = &v +// SetQueueId sets the QueueId field's value. +func (s *RoutingProfileQueueReference) SetQueueId(v string) *RoutingProfileQueueReference { + s.QueueId = &v + return s +} + +// Contains summary information about a routing profile. +type RoutingProfileSummary struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the routing profile. + Arn *string `type:"string"` + + // The identifier of the routing profile. + Id *string `type:"string"` + + // The name of the routing profile. + Name *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s RoutingProfileSummary) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s RoutingProfileSummary) GoString() string { + return s.String() +} + +// SetArn sets the Arn field's value. +func (s *RoutingProfileSummary) SetArn(v string) *RoutingProfileSummary { + s.Arn = &v + return s +} + +// SetId sets the Id field's value. +func (s *RoutingProfileSummary) SetId(v string) *RoutingProfileSummary { + s.Id = &v + return s +} + +// SetName sets the Name field's value. +func (s *RoutingProfileSummary) SetName(v string) *RoutingProfileSummary { + s.Name = &v + return s +} + +// Information about the S3 storage type. +type S3Config struct { + _ struct{} `type:"structure"` + + // The S3 bucket name. + // + // BucketName is a required field + BucketName *string `min:"1" type:"string" required:"true"` + + // The S3 bucket prefix. + // + // BucketPrefix is a required field + BucketPrefix *string `min:"1" type:"string" required:"true"` + + // The S3 encryption configuration. + EncryptionConfig *EncryptionConfig `type:"structure"` +} + +// String returns the string representation +func (s S3Config) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s S3Config) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *S3Config) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "S3Config"} + if s.BucketName == nil { + invalidParams.Add(request.NewErrParamRequired("BucketName")) + } + if s.BucketName != nil && len(*s.BucketName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("BucketName", 1)) + } + if s.BucketPrefix == nil { + invalidParams.Add(request.NewErrParamRequired("BucketPrefix")) + } + if s.BucketPrefix != nil && len(*s.BucketPrefix) < 1 { + invalidParams.Add(request.NewErrParamMinLen("BucketPrefix", 1)) + } + if s.EncryptionConfig != nil { + if err := s.EncryptionConfig.Validate(); err != nil { + invalidParams.AddNested("EncryptionConfig", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetBucketName sets the BucketName field's value. +func (s *S3Config) SetBucketName(v string) *S3Config { + s.BucketName = &v + return s +} + +// SetBucketPrefix sets the BucketPrefix field's value. +func (s *S3Config) SetBucketPrefix(v string) *S3Config { + s.BucketPrefix = &v + return s +} + +// SetEncryptionConfig sets the EncryptionConfig field's value. +func (s *S3Config) SetEncryptionConfig(v *EncryptionConfig) *S3Config { + s.EncryptionConfig = v return s } -// Contains summary information about a routing profile. -type RoutingProfileSummary struct { +// Configuration information of the security key. +type SecurityKey struct { _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) of the routing profile. - Arn *string `type:"string"` + // The existing association identifier that uniquely identifies the resource + // type and storage config for the given instance ID. + AssociationId *string `min:"1" type:"string"` - // The identifier of the routing profile. - Id *string `type:"string"` + // When the security key was created. + CreationTime *time.Time `type:"timestamp"` - // The name of the routing profile. - Name *string `min:"1" type:"string"` + // The key of the security key. + Key *string `min:"1" type:"string"` } // String returns the string representation -func (s RoutingProfileSummary) String() string { +func (s SecurityKey) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s RoutingProfileSummary) GoString() string { +func (s SecurityKey) GoString() string { return s.String() } -// SetArn sets the Arn field's value. -func (s *RoutingProfileSummary) SetArn(v string) *RoutingProfileSummary { - s.Arn = &v +// SetAssociationId sets the AssociationId field's value. +func (s *SecurityKey) SetAssociationId(v string) *SecurityKey { + s.AssociationId = &v return s } -// SetId sets the Id field's value. -func (s *RoutingProfileSummary) SetId(v string) *RoutingProfileSummary { - s.Id = &v +// SetCreationTime sets the CreationTime field's value. +func (s *SecurityKey) SetCreationTime(v time.Time) *SecurityKey { + s.CreationTime = &v return s } -// SetName sets the Name field's value. -func (s *RoutingProfileSummary) SetName(v string) *RoutingProfileSummary { - s.Name = &v +// SetKey sets the Key field's value. +func (s *SecurityKey) SetKey(v string) *SecurityKey { + s.Key = &v return s } @@ -11197,6 +16478,62 @@ func (s *SecurityProfileSummary) SetName(v string) *SecurityProfileSummary { return s } +// The service quota has been exceeded. +type ServiceQuotaExceededException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ServiceQuotaExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ServiceQuotaExceededException) GoString() string { + return s.String() +} + +func newErrorServiceQuotaExceededException(v protocol.ResponseMetadata) error { + return &ServiceQuotaExceededException{ + RespMetadata: v, + } +} + +// Code returns the exception type name. +func (s *ServiceQuotaExceededException) Code() string { + return "ServiceQuotaExceededException" +} + +// Message returns the exception's message. +func (s *ServiceQuotaExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *ServiceQuotaExceededException) OrigErr() error { + return nil +} + +func (s *ServiceQuotaExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s *ServiceQuotaExceededException) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *ServiceQuotaExceededException) RequestID() string { + return s.RespMetadata.RequestID +} + type StartChatContactInput struct { _ struct{} `type:"structure"` @@ -12367,6 +17704,201 @@ func (s UpdateContactFlowNameOutput) GoString() string { return s.String() } +type UpdateInstanceAttributeInput struct { + _ struct{} `type:"structure"` + + // The type of attribute. + // + // AttributeType is a required field + AttributeType *string `location:"uri" locationName:"AttributeType" type:"string" required:"true" enum:"InstanceAttributeType"` + + // 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 value for the attribute. Maximum character limit is 100. + // + // Value is a required field + Value *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s UpdateInstanceAttributeInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateInstanceAttributeInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateInstanceAttributeInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateInstanceAttributeInput"} + if s.AttributeType == nil { + invalidParams.Add(request.NewErrParamRequired("AttributeType")) + } + if s.AttributeType != nil && len(*s.AttributeType) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AttributeType", 1)) + } + 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.Value == nil { + invalidParams.Add(request.NewErrParamRequired("Value")) + } + if s.Value != nil && len(*s.Value) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Value", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAttributeType sets the AttributeType field's value. +func (s *UpdateInstanceAttributeInput) SetAttributeType(v string) *UpdateInstanceAttributeInput { + s.AttributeType = &v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *UpdateInstanceAttributeInput) SetInstanceId(v string) *UpdateInstanceAttributeInput { + s.InstanceId = &v + return s +} + +// SetValue sets the Value field's value. +func (s *UpdateInstanceAttributeInput) SetValue(v string) *UpdateInstanceAttributeInput { + s.Value = &v + return s +} + +type UpdateInstanceAttributeOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s UpdateInstanceAttributeOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateInstanceAttributeOutput) GoString() string { + return s.String() +} + +type UpdateInstanceStorageConfigInput struct { + _ struct{} `type:"structure"` + + // The existing association identifier that uniquely identifies the resource + // type and storage config for the given instance ID. + // + // AssociationId is a required field + AssociationId *string `location:"uri" locationName:"AssociationId" 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"` + + // A valid resource type. + // + // ResourceType is a required field + ResourceType *string `location:"querystring" locationName:"resourceType" type:"string" required:"true" enum:"InstanceStorageResourceType"` + + // The storage configuration for the instance. + // + // StorageConfig is a required field + StorageConfig *InstanceStorageConfig `type:"structure" required:"true"` +} + +// String returns the string representation +func (s UpdateInstanceStorageConfigInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateInstanceStorageConfigInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateInstanceStorageConfigInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateInstanceStorageConfigInput"} + if s.AssociationId == nil { + invalidParams.Add(request.NewErrParamRequired("AssociationId")) + } + if s.AssociationId != nil && len(*s.AssociationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AssociationId", 1)) + } + 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.ResourceType == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceType")) + } + if s.StorageConfig == nil { + invalidParams.Add(request.NewErrParamRequired("StorageConfig")) + } + if s.StorageConfig != nil { + if err := s.StorageConfig.Validate(); err != nil { + invalidParams.AddNested("StorageConfig", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAssociationId sets the AssociationId field's value. +func (s *UpdateInstanceStorageConfigInput) SetAssociationId(v string) *UpdateInstanceStorageConfigInput { + s.AssociationId = &v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *UpdateInstanceStorageConfigInput) SetInstanceId(v string) *UpdateInstanceStorageConfigInput { + s.InstanceId = &v + return s +} + +// SetResourceType sets the ResourceType field's value. +func (s *UpdateInstanceStorageConfigInput) SetResourceType(v string) *UpdateInstanceStorageConfigInput { + s.ResourceType = &v + return s +} + +// SetStorageConfig sets the StorageConfig field's value. +func (s *UpdateInstanceStorageConfigInput) SetStorageConfig(v *InstanceStorageConfig) *UpdateInstanceStorageConfigInput { + s.StorageConfig = v + return s +} + +type UpdateInstanceStorageConfigOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s UpdateInstanceStorageConfigOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateInstanceStorageConfigOutput) GoString() string { + return s.String() +} + type UpdateRoutingProfileConcurrencyInput struct { _ struct{} `type:"structure"` @@ -13829,6 +19361,38 @@ func CurrentMetricName_Values() []string { } } +const ( + // DirectoryTypeSaml is a DirectoryType enum value + DirectoryTypeSaml = "SAML" + + // DirectoryTypeConnectManaged is a DirectoryType enum value + DirectoryTypeConnectManaged = "CONNECT_MANAGED" + + // DirectoryTypeExistingDirectory is a DirectoryType enum value + DirectoryTypeExistingDirectory = "EXISTING_DIRECTORY" +) + +// DirectoryType_Values returns all elements of the DirectoryType enum +func DirectoryType_Values() []string { + return []string{ + DirectoryTypeSaml, + DirectoryTypeConnectManaged, + DirectoryTypeExistingDirectory, + } +} + +const ( + // EncryptionTypeKms is a EncryptionType enum value + EncryptionTypeKms = "KMS" +) + +// EncryptionType_Values returns all elements of the EncryptionType enum +func EncryptionType_Values() []string { + return []string{ + EncryptionTypeKms, + } +} + const ( // GroupingQueue is a Grouping enum value GroupingQueue = "QUEUE" @@ -13954,6 +19518,94 @@ func HistoricalMetricName_Values() []string { } } +const ( + // InstanceAttributeTypeInboundCalls is a InstanceAttributeType enum value + InstanceAttributeTypeInboundCalls = "INBOUND_CALLS" + + // InstanceAttributeTypeOutboundCalls is a InstanceAttributeType enum value + InstanceAttributeTypeOutboundCalls = "OUTBOUND_CALLS" + + // InstanceAttributeTypeContactflowLogs is a InstanceAttributeType enum value + InstanceAttributeTypeContactflowLogs = "CONTACTFLOW_LOGS" + + // InstanceAttributeTypeContactLens is a InstanceAttributeType enum value + InstanceAttributeTypeContactLens = "CONTACT_LENS" + + // InstanceAttributeTypeAutoResolveBestVoices is a InstanceAttributeType enum value + InstanceAttributeTypeAutoResolveBestVoices = "AUTO_RESOLVE_BEST_VOICES" + + // InstanceAttributeTypeUseCustomTtsVoices is a InstanceAttributeType enum value + InstanceAttributeTypeUseCustomTtsVoices = "USE_CUSTOM_TTS_VOICES" + + // InstanceAttributeTypeEarlyMedia is a InstanceAttributeType enum value + InstanceAttributeTypeEarlyMedia = "EARLY_MEDIA" +) + +// InstanceAttributeType_Values returns all elements of the InstanceAttributeType enum +func InstanceAttributeType_Values() []string { + return []string{ + InstanceAttributeTypeInboundCalls, + InstanceAttributeTypeOutboundCalls, + InstanceAttributeTypeContactflowLogs, + InstanceAttributeTypeContactLens, + InstanceAttributeTypeAutoResolveBestVoices, + InstanceAttributeTypeUseCustomTtsVoices, + InstanceAttributeTypeEarlyMedia, + } +} + +const ( + // InstanceStatusCreationInProgress is a InstanceStatus enum value + InstanceStatusCreationInProgress = "CREATION_IN_PROGRESS" + + // InstanceStatusActive is a InstanceStatus enum value + InstanceStatusActive = "ACTIVE" + + // InstanceStatusCreationFailed is a InstanceStatus enum value + InstanceStatusCreationFailed = "CREATION_FAILED" +) + +// InstanceStatus_Values returns all elements of the InstanceStatus enum +func InstanceStatus_Values() []string { + return []string{ + InstanceStatusCreationInProgress, + InstanceStatusActive, + InstanceStatusCreationFailed, + } +} + +const ( + // InstanceStorageResourceTypeChatTranscripts is a InstanceStorageResourceType enum value + InstanceStorageResourceTypeChatTranscripts = "CHAT_TRANSCRIPTS" + + // InstanceStorageResourceTypeCallRecordings is a InstanceStorageResourceType enum value + InstanceStorageResourceTypeCallRecordings = "CALL_RECORDINGS" + + // InstanceStorageResourceTypeScheduledReports is a InstanceStorageResourceType enum value + InstanceStorageResourceTypeScheduledReports = "SCHEDULED_REPORTS" + + // InstanceStorageResourceTypeMediaStreams is a InstanceStorageResourceType enum value + InstanceStorageResourceTypeMediaStreams = "MEDIA_STREAMS" + + // InstanceStorageResourceTypeContactTraceRecords is a InstanceStorageResourceType enum value + InstanceStorageResourceTypeContactTraceRecords = "CONTACT_TRACE_RECORDS" + + // InstanceStorageResourceTypeAgentEvents is a InstanceStorageResourceType enum value + InstanceStorageResourceTypeAgentEvents = "AGENT_EVENTS" +) + +// InstanceStorageResourceType_Values returns all elements of the InstanceStorageResourceType enum +func InstanceStorageResourceType_Values() []string { + return []string{ + InstanceStorageResourceTypeChatTranscripts, + InstanceStorageResourceTypeCallRecordings, + InstanceStorageResourceTypeScheduledReports, + InstanceStorageResourceTypeMediaStreams, + InstanceStorageResourceTypeContactTraceRecords, + InstanceStorageResourceTypeAgentEvents, + } +} + const ( // PhoneNumberCountryCodeAf is a PhoneNumberCountryCode enum value PhoneNumberCountryCodeAf = "AF" @@ -15014,6 +20666,30 @@ func Statistic_Values() []string { } } +const ( + // StorageTypeS3 is a StorageType enum value + StorageTypeS3 = "S3" + + // StorageTypeKinesisVideoStream is a StorageType enum value + StorageTypeKinesisVideoStream = "KINESIS_VIDEO_STREAM" + + // StorageTypeKinesisStream is a StorageType enum value + StorageTypeKinesisStream = "KINESIS_STREAM" + + // StorageTypeKinesisFirehose is a StorageType enum value + StorageTypeKinesisFirehose = "KINESIS_FIREHOSE" +) + +// StorageType_Values returns all elements of the StorageType enum +func StorageType_Values() []string { + return []string{ + StorageTypeS3, + StorageTypeKinesisVideoStream, + StorageTypeKinesisStream, + StorageTypeKinesisFirehose, + } +} + const ( // UnitSeconds is a Unit enum value UnitSeconds = "SECONDS" diff --git a/service/connect/connectiface/interface.go b/service/connect/connectiface/interface.go index 743c7404a8d..a54933de17f 100644 --- a/service/connect/connectiface/interface.go +++ b/service/connect/connectiface/interface.go @@ -26,7 +26,7 @@ import ( // // myFunc uses an SDK service client to make a request to // // Amazon Connect Service. // func myFunc(svc connectiface.ConnectAPI) bool { -// // Make svc.AssociateRoutingProfileQueues request +// // Make svc.AssociateApprovedOrigin request // } // // func main() { @@ -42,7 +42,7 @@ import ( // type mockConnectClient struct { // connectiface.ConnectAPI // } -// func (m *mockConnectClient) AssociateRoutingProfileQueues(input *connect.AssociateRoutingProfileQueuesInput) (*connect.AssociateRoutingProfileQueuesOutput, error) { +// func (m *mockConnectClient) AssociateApprovedOrigin(input *connect.AssociateApprovedOriginInput) (*connect.AssociateApprovedOriginOutput, error) { // // mock response/functionality // } // @@ -60,14 +60,38 @@ import ( // and waiters. Its suggested to use the pattern above for testing, or using // tooling to generate mocks to satisfy the interfaces. type ConnectAPI interface { + AssociateApprovedOrigin(*connect.AssociateApprovedOriginInput) (*connect.AssociateApprovedOriginOutput, error) + AssociateApprovedOriginWithContext(aws.Context, *connect.AssociateApprovedOriginInput, ...request.Option) (*connect.AssociateApprovedOriginOutput, error) + AssociateApprovedOriginRequest(*connect.AssociateApprovedOriginInput) (*request.Request, *connect.AssociateApprovedOriginOutput) + + AssociateInstanceStorageConfig(*connect.AssociateInstanceStorageConfigInput) (*connect.AssociateInstanceStorageConfigOutput, error) + AssociateInstanceStorageConfigWithContext(aws.Context, *connect.AssociateInstanceStorageConfigInput, ...request.Option) (*connect.AssociateInstanceStorageConfigOutput, error) + AssociateInstanceStorageConfigRequest(*connect.AssociateInstanceStorageConfigInput) (*request.Request, *connect.AssociateInstanceStorageConfigOutput) + + AssociateLambdaFunction(*connect.AssociateLambdaFunctionInput) (*connect.AssociateLambdaFunctionOutput, error) + AssociateLambdaFunctionWithContext(aws.Context, *connect.AssociateLambdaFunctionInput, ...request.Option) (*connect.AssociateLambdaFunctionOutput, error) + AssociateLambdaFunctionRequest(*connect.AssociateLambdaFunctionInput) (*request.Request, *connect.AssociateLambdaFunctionOutput) + + AssociateLexBot(*connect.AssociateLexBotInput) (*connect.AssociateLexBotOutput, error) + AssociateLexBotWithContext(aws.Context, *connect.AssociateLexBotInput, ...request.Option) (*connect.AssociateLexBotOutput, error) + AssociateLexBotRequest(*connect.AssociateLexBotInput) (*request.Request, *connect.AssociateLexBotOutput) + AssociateRoutingProfileQueues(*connect.AssociateRoutingProfileQueuesInput) (*connect.AssociateRoutingProfileQueuesOutput, error) AssociateRoutingProfileQueuesWithContext(aws.Context, *connect.AssociateRoutingProfileQueuesInput, ...request.Option) (*connect.AssociateRoutingProfileQueuesOutput, error) AssociateRoutingProfileQueuesRequest(*connect.AssociateRoutingProfileQueuesInput) (*request.Request, *connect.AssociateRoutingProfileQueuesOutput) + AssociateSecurityKey(*connect.AssociateSecurityKeyInput) (*connect.AssociateSecurityKeyOutput, error) + AssociateSecurityKeyWithContext(aws.Context, *connect.AssociateSecurityKeyInput, ...request.Option) (*connect.AssociateSecurityKeyOutput, error) + AssociateSecurityKeyRequest(*connect.AssociateSecurityKeyInput) (*request.Request, *connect.AssociateSecurityKeyOutput) + CreateContactFlow(*connect.CreateContactFlowInput) (*connect.CreateContactFlowOutput, error) CreateContactFlowWithContext(aws.Context, *connect.CreateContactFlowInput, ...request.Option) (*connect.CreateContactFlowOutput, error) CreateContactFlowRequest(*connect.CreateContactFlowInput) (*request.Request, *connect.CreateContactFlowOutput) + CreateInstance(*connect.CreateInstanceInput) (*connect.CreateInstanceOutput, error) + CreateInstanceWithContext(aws.Context, *connect.CreateInstanceInput, ...request.Option) (*connect.CreateInstanceOutput, error) + CreateInstanceRequest(*connect.CreateInstanceInput) (*request.Request, *connect.CreateInstanceOutput) + CreateRoutingProfile(*connect.CreateRoutingProfileInput) (*connect.CreateRoutingProfileOutput, error) CreateRoutingProfileWithContext(aws.Context, *connect.CreateRoutingProfileInput, ...request.Option) (*connect.CreateRoutingProfileOutput, error) CreateRoutingProfileRequest(*connect.CreateRoutingProfileInput) (*request.Request, *connect.CreateRoutingProfileOutput) @@ -80,6 +104,10 @@ type ConnectAPI interface { CreateUserHierarchyGroupWithContext(aws.Context, *connect.CreateUserHierarchyGroupInput, ...request.Option) (*connect.CreateUserHierarchyGroupOutput, error) CreateUserHierarchyGroupRequest(*connect.CreateUserHierarchyGroupInput) (*request.Request, *connect.CreateUserHierarchyGroupOutput) + DeleteInstance(*connect.DeleteInstanceInput) (*connect.DeleteInstanceOutput, error) + DeleteInstanceWithContext(aws.Context, *connect.DeleteInstanceInput, ...request.Option) (*connect.DeleteInstanceOutput, error) + DeleteInstanceRequest(*connect.DeleteInstanceInput) (*request.Request, *connect.DeleteInstanceOutput) + DeleteUser(*connect.DeleteUserInput) (*connect.DeleteUserOutput, error) DeleteUserWithContext(aws.Context, *connect.DeleteUserInput, ...request.Option) (*connect.DeleteUserOutput, error) DeleteUserRequest(*connect.DeleteUserInput) (*request.Request, *connect.DeleteUserOutput) @@ -92,6 +120,18 @@ type ConnectAPI interface { DescribeContactFlowWithContext(aws.Context, *connect.DescribeContactFlowInput, ...request.Option) (*connect.DescribeContactFlowOutput, error) DescribeContactFlowRequest(*connect.DescribeContactFlowInput) (*request.Request, *connect.DescribeContactFlowOutput) + DescribeInstance(*connect.DescribeInstanceInput) (*connect.DescribeInstanceOutput, error) + DescribeInstanceWithContext(aws.Context, *connect.DescribeInstanceInput, ...request.Option) (*connect.DescribeInstanceOutput, error) + DescribeInstanceRequest(*connect.DescribeInstanceInput) (*request.Request, *connect.DescribeInstanceOutput) + + DescribeInstanceAttribute(*connect.DescribeInstanceAttributeInput) (*connect.DescribeInstanceAttributeOutput, error) + DescribeInstanceAttributeWithContext(aws.Context, *connect.DescribeInstanceAttributeInput, ...request.Option) (*connect.DescribeInstanceAttributeOutput, error) + DescribeInstanceAttributeRequest(*connect.DescribeInstanceAttributeInput) (*request.Request, *connect.DescribeInstanceAttributeOutput) + + DescribeInstanceStorageConfig(*connect.DescribeInstanceStorageConfigInput) (*connect.DescribeInstanceStorageConfigOutput, error) + DescribeInstanceStorageConfigWithContext(aws.Context, *connect.DescribeInstanceStorageConfigInput, ...request.Option) (*connect.DescribeInstanceStorageConfigOutput, error) + DescribeInstanceStorageConfigRequest(*connect.DescribeInstanceStorageConfigInput) (*request.Request, *connect.DescribeInstanceStorageConfigOutput) + DescribeRoutingProfile(*connect.DescribeRoutingProfileInput) (*connect.DescribeRoutingProfileOutput, error) DescribeRoutingProfileWithContext(aws.Context, *connect.DescribeRoutingProfileInput, ...request.Option) (*connect.DescribeRoutingProfileOutput, error) DescribeRoutingProfileRequest(*connect.DescribeRoutingProfileInput) (*request.Request, *connect.DescribeRoutingProfileOutput) @@ -108,10 +148,30 @@ type ConnectAPI interface { DescribeUserHierarchyStructureWithContext(aws.Context, *connect.DescribeUserHierarchyStructureInput, ...request.Option) (*connect.DescribeUserHierarchyStructureOutput, error) DescribeUserHierarchyStructureRequest(*connect.DescribeUserHierarchyStructureInput) (*request.Request, *connect.DescribeUserHierarchyStructureOutput) + DisassociateApprovedOrigin(*connect.DisassociateApprovedOriginInput) (*connect.DisassociateApprovedOriginOutput, error) + DisassociateApprovedOriginWithContext(aws.Context, *connect.DisassociateApprovedOriginInput, ...request.Option) (*connect.DisassociateApprovedOriginOutput, error) + DisassociateApprovedOriginRequest(*connect.DisassociateApprovedOriginInput) (*request.Request, *connect.DisassociateApprovedOriginOutput) + + DisassociateInstanceStorageConfig(*connect.DisassociateInstanceStorageConfigInput) (*connect.DisassociateInstanceStorageConfigOutput, error) + DisassociateInstanceStorageConfigWithContext(aws.Context, *connect.DisassociateInstanceStorageConfigInput, ...request.Option) (*connect.DisassociateInstanceStorageConfigOutput, error) + DisassociateInstanceStorageConfigRequest(*connect.DisassociateInstanceStorageConfigInput) (*request.Request, *connect.DisassociateInstanceStorageConfigOutput) + + DisassociateLambdaFunction(*connect.DisassociateLambdaFunctionInput) (*connect.DisassociateLambdaFunctionOutput, error) + DisassociateLambdaFunctionWithContext(aws.Context, *connect.DisassociateLambdaFunctionInput, ...request.Option) (*connect.DisassociateLambdaFunctionOutput, error) + DisassociateLambdaFunctionRequest(*connect.DisassociateLambdaFunctionInput) (*request.Request, *connect.DisassociateLambdaFunctionOutput) + + DisassociateLexBot(*connect.DisassociateLexBotInput) (*connect.DisassociateLexBotOutput, error) + DisassociateLexBotWithContext(aws.Context, *connect.DisassociateLexBotInput, ...request.Option) (*connect.DisassociateLexBotOutput, error) + DisassociateLexBotRequest(*connect.DisassociateLexBotInput) (*request.Request, *connect.DisassociateLexBotOutput) + DisassociateRoutingProfileQueues(*connect.DisassociateRoutingProfileQueuesInput) (*connect.DisassociateRoutingProfileQueuesOutput, error) DisassociateRoutingProfileQueuesWithContext(aws.Context, *connect.DisassociateRoutingProfileQueuesInput, ...request.Option) (*connect.DisassociateRoutingProfileQueuesOutput, error) DisassociateRoutingProfileQueuesRequest(*connect.DisassociateRoutingProfileQueuesInput) (*request.Request, *connect.DisassociateRoutingProfileQueuesOutput) + DisassociateSecurityKey(*connect.DisassociateSecurityKeyInput) (*connect.DisassociateSecurityKeyOutput, error) + DisassociateSecurityKeyWithContext(aws.Context, *connect.DisassociateSecurityKeyInput, ...request.Option) (*connect.DisassociateSecurityKeyOutput, error) + DisassociateSecurityKeyRequest(*connect.DisassociateSecurityKeyInput) (*request.Request, *connect.DisassociateSecurityKeyOutput) + GetContactAttributes(*connect.GetContactAttributesInput) (*connect.GetContactAttributesOutput, error) GetContactAttributesWithContext(aws.Context, *connect.GetContactAttributesInput, ...request.Option) (*connect.GetContactAttributesOutput, error) GetContactAttributesRequest(*connect.GetContactAttributesInput) (*request.Request, *connect.GetContactAttributesOutput) @@ -134,6 +194,13 @@ 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 + ListApprovedOrigins(*connect.ListApprovedOriginsInput) (*connect.ListApprovedOriginsOutput, error) + ListApprovedOriginsWithContext(aws.Context, *connect.ListApprovedOriginsInput, ...request.Option) (*connect.ListApprovedOriginsOutput, error) + ListApprovedOriginsRequest(*connect.ListApprovedOriginsInput) (*request.Request, *connect.ListApprovedOriginsOutput) + + ListApprovedOriginsPages(*connect.ListApprovedOriginsInput, func(*connect.ListApprovedOriginsOutput, bool) bool) error + ListApprovedOriginsPagesWithContext(aws.Context, *connect.ListApprovedOriginsInput, func(*connect.ListApprovedOriginsOutput, 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) @@ -148,6 +215,41 @@ type ConnectAPI interface { ListHoursOfOperationsPages(*connect.ListHoursOfOperationsInput, func(*connect.ListHoursOfOperationsOutput, bool) bool) error ListHoursOfOperationsPagesWithContext(aws.Context, *connect.ListHoursOfOperationsInput, func(*connect.ListHoursOfOperationsOutput, bool) bool, ...request.Option) error + ListInstanceAttributes(*connect.ListInstanceAttributesInput) (*connect.ListInstanceAttributesOutput, error) + ListInstanceAttributesWithContext(aws.Context, *connect.ListInstanceAttributesInput, ...request.Option) (*connect.ListInstanceAttributesOutput, error) + ListInstanceAttributesRequest(*connect.ListInstanceAttributesInput) (*request.Request, *connect.ListInstanceAttributesOutput) + + ListInstanceAttributesPages(*connect.ListInstanceAttributesInput, func(*connect.ListInstanceAttributesOutput, bool) bool) error + ListInstanceAttributesPagesWithContext(aws.Context, *connect.ListInstanceAttributesInput, func(*connect.ListInstanceAttributesOutput, bool) bool, ...request.Option) error + + ListInstanceStorageConfigs(*connect.ListInstanceStorageConfigsInput) (*connect.ListInstanceStorageConfigsOutput, error) + ListInstanceStorageConfigsWithContext(aws.Context, *connect.ListInstanceStorageConfigsInput, ...request.Option) (*connect.ListInstanceStorageConfigsOutput, error) + ListInstanceStorageConfigsRequest(*connect.ListInstanceStorageConfigsInput) (*request.Request, *connect.ListInstanceStorageConfigsOutput) + + ListInstanceStorageConfigsPages(*connect.ListInstanceStorageConfigsInput, func(*connect.ListInstanceStorageConfigsOutput, bool) bool) error + ListInstanceStorageConfigsPagesWithContext(aws.Context, *connect.ListInstanceStorageConfigsInput, func(*connect.ListInstanceStorageConfigsOutput, bool) bool, ...request.Option) error + + ListInstances(*connect.ListInstancesInput) (*connect.ListInstancesOutput, error) + ListInstancesWithContext(aws.Context, *connect.ListInstancesInput, ...request.Option) (*connect.ListInstancesOutput, error) + ListInstancesRequest(*connect.ListInstancesInput) (*request.Request, *connect.ListInstancesOutput) + + ListInstancesPages(*connect.ListInstancesInput, func(*connect.ListInstancesOutput, bool) bool) error + ListInstancesPagesWithContext(aws.Context, *connect.ListInstancesInput, func(*connect.ListInstancesOutput, bool) bool, ...request.Option) error + + ListLambdaFunctions(*connect.ListLambdaFunctionsInput) (*connect.ListLambdaFunctionsOutput, error) + ListLambdaFunctionsWithContext(aws.Context, *connect.ListLambdaFunctionsInput, ...request.Option) (*connect.ListLambdaFunctionsOutput, error) + ListLambdaFunctionsRequest(*connect.ListLambdaFunctionsInput) (*request.Request, *connect.ListLambdaFunctionsOutput) + + ListLambdaFunctionsPages(*connect.ListLambdaFunctionsInput, func(*connect.ListLambdaFunctionsOutput, bool) bool) error + ListLambdaFunctionsPagesWithContext(aws.Context, *connect.ListLambdaFunctionsInput, func(*connect.ListLambdaFunctionsOutput, bool) bool, ...request.Option) error + + ListLexBots(*connect.ListLexBotsInput) (*connect.ListLexBotsOutput, error) + ListLexBotsWithContext(aws.Context, *connect.ListLexBotsInput, ...request.Option) (*connect.ListLexBotsOutput, error) + ListLexBotsRequest(*connect.ListLexBotsInput) (*request.Request, *connect.ListLexBotsOutput) + + ListLexBotsPages(*connect.ListLexBotsInput, func(*connect.ListLexBotsOutput, bool) bool) error + ListLexBotsPagesWithContext(aws.Context, *connect.ListLexBotsInput, func(*connect.ListLexBotsOutput, 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) @@ -183,6 +285,13 @@ type ConnectAPI interface { ListRoutingProfilesPages(*connect.ListRoutingProfilesInput, func(*connect.ListRoutingProfilesOutput, bool) bool) error ListRoutingProfilesPagesWithContext(aws.Context, *connect.ListRoutingProfilesInput, func(*connect.ListRoutingProfilesOutput, bool) bool, ...request.Option) error + ListSecurityKeys(*connect.ListSecurityKeysInput) (*connect.ListSecurityKeysOutput, error) + ListSecurityKeysWithContext(aws.Context, *connect.ListSecurityKeysInput, ...request.Option) (*connect.ListSecurityKeysOutput, error) + ListSecurityKeysRequest(*connect.ListSecurityKeysInput) (*request.Request, *connect.ListSecurityKeysOutput) + + ListSecurityKeysPages(*connect.ListSecurityKeysInput, func(*connect.ListSecurityKeysOutput, bool) bool) error + ListSecurityKeysPagesWithContext(aws.Context, *connect.ListSecurityKeysInput, func(*connect.ListSecurityKeysOutput, 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) @@ -256,6 +365,14 @@ type ConnectAPI interface { UpdateContactFlowNameWithContext(aws.Context, *connect.UpdateContactFlowNameInput, ...request.Option) (*connect.UpdateContactFlowNameOutput, error) UpdateContactFlowNameRequest(*connect.UpdateContactFlowNameInput) (*request.Request, *connect.UpdateContactFlowNameOutput) + UpdateInstanceAttribute(*connect.UpdateInstanceAttributeInput) (*connect.UpdateInstanceAttributeOutput, error) + UpdateInstanceAttributeWithContext(aws.Context, *connect.UpdateInstanceAttributeInput, ...request.Option) (*connect.UpdateInstanceAttributeOutput, error) + UpdateInstanceAttributeRequest(*connect.UpdateInstanceAttributeInput) (*request.Request, *connect.UpdateInstanceAttributeOutput) + + UpdateInstanceStorageConfig(*connect.UpdateInstanceStorageConfigInput) (*connect.UpdateInstanceStorageConfigOutput, error) + UpdateInstanceStorageConfigWithContext(aws.Context, *connect.UpdateInstanceStorageConfigInput, ...request.Option) (*connect.UpdateInstanceStorageConfigOutput, error) + UpdateInstanceStorageConfigRequest(*connect.UpdateInstanceStorageConfigInput) (*request.Request, *connect.UpdateInstanceStorageConfigOutput) + UpdateRoutingProfileConcurrency(*connect.UpdateRoutingProfileConcurrencyInput) (*connect.UpdateRoutingProfileConcurrencyOutput, error) UpdateRoutingProfileConcurrencyWithContext(aws.Context, *connect.UpdateRoutingProfileConcurrencyInput, ...request.Option) (*connect.UpdateRoutingProfileConcurrencyOutput, error) UpdateRoutingProfileConcurrencyRequest(*connect.UpdateRoutingProfileConcurrencyInput) (*request.Request, *connect.UpdateRoutingProfileConcurrencyOutput) diff --git a/service/connect/errors.go b/service/connect/errors.go index b0b6e1bebba..0a8456dfe83 100644 --- a/service/connect/errors.go +++ b/service/connect/errors.go @@ -68,6 +68,12 @@ const ( // The contact is not permitted. ErrCodeOutboundContactNotPermittedException = "OutboundContactNotPermittedException" + // ErrCodeResourceConflictException for service response error code + // "ResourceConflictException". + // + // A resource already has that name. + ErrCodeResourceConflictException = "ResourceConflictException" + // ErrCodeResourceInUseException for service response error code // "ResourceInUseException". // @@ -80,6 +86,12 @@ const ( // The specified resource was not found. ErrCodeResourceNotFoundException = "ResourceNotFoundException" + // ErrCodeServiceQuotaExceededException for service response error code + // "ServiceQuotaExceededException". + // + // The service quota has been exceeded. + ErrCodeServiceQuotaExceededException = "ServiceQuotaExceededException" + // ErrCodeThrottlingException for service response error code // "ThrottlingException". // @@ -104,8 +116,10 @@ var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ "InvalidRequestException": newErrorInvalidRequestException, "LimitExceededException": newErrorLimitExceededException, "OutboundContactNotPermittedException": newErrorOutboundContactNotPermittedException, + "ResourceConflictException": newErrorResourceConflictException, "ResourceInUseException": newErrorResourceInUseException, "ResourceNotFoundException": newErrorResourceNotFoundException, + "ServiceQuotaExceededException": newErrorServiceQuotaExceededException, "ThrottlingException": newErrorThrottlingException, "UserNotFoundException": newErrorUserNotFoundException, } diff --git a/service/kafka/api.go b/service/kafka/api.go index f2366e802a5..b1635753168 100644 --- a/service/kafka/api.go +++ b/service/kafka/api.go @@ -3776,9 +3776,9 @@ type ClusterInfo struct { EncryptionInfo *EncryptionInfo `locationName:"encryptionInfo" type:"structure"` // Specifies which metrics are gathered for the MSK cluster. This property has - // three possible values: DEFAULT, PER_BROKER, and PER_TOPIC_PER_BROKER. For - // a list of the metrics associated with each of these three levels of monitoring, - // see Monitoring (https://docs.aws.amazon.com/msk/latest/developerguide/monitoring.html). + // the following possible values: DEFAULT, PER_BROKER, PER_TOPIC_PER_BROKER, + // and PER_TOPIC_PER_PARTITION. For a list of the metrics associated with each + // of these levels of monitoring, see Monitoring (https://docs.aws.amazon.com/msk/latest/developerguide/monitoring.html). EnhancedMonitoring *string `locationName:"enhancedMonitoring" type:"string" enum:"EnhancedMonitoring"` // You can configure your MSK cluster to send broker logs to different destination @@ -4393,7 +4393,7 @@ type CreateClusterInput struct { EncryptionInfo *EncryptionInfo `locationName:"encryptionInfo" type:"structure"` // Specifies the level of monitoring for the MSK cluster. The possible values - // are DEFAULT, PER_BROKER, and PER_TOPIC_PER_BROKER. + // are DEFAULT, PER_BROKER, PER_TOPIC_PER_BROKER, and PER_TOPIC_PER_PARTITION. EnhancedMonitoring *string `locationName:"enhancedMonitoring" type:"string" enum:"EnhancedMonitoring"` // The version of Apache Kafka. @@ -8399,9 +8399,9 @@ func ConfigurationState_Values() []string { } // Specifies which metrics are gathered for the MSK cluster. This property has -// three possible values: DEFAULT, PER_BROKER, and PER_TOPIC_PER_BROKER. For -// a list of the metrics associated with each of these three levels of monitoring, -// see Monitoring (https://docs.aws.amazon.com/msk/latest/developerguide/monitoring.html). +// the following possible values: DEFAULT, PER_BROKER, PER_TOPIC_PER_BROKER, +// and PER_TOPIC_PER_PARTITION. For a list of the metrics associated with each +// of these levels of monitoring, see Monitoring (https://docs.aws.amazon.com/msk/latest/developerguide/monitoring.html). const ( // EnhancedMonitoringDefault is a EnhancedMonitoring enum value EnhancedMonitoringDefault = "DEFAULT" @@ -8411,6 +8411,9 @@ const ( // EnhancedMonitoringPerTopicPerBroker is a EnhancedMonitoring enum value EnhancedMonitoringPerTopicPerBroker = "PER_TOPIC_PER_BROKER" + + // EnhancedMonitoringPerTopicPerPartition is a EnhancedMonitoring enum value + EnhancedMonitoringPerTopicPerPartition = "PER_TOPIC_PER_PARTITION" ) // EnhancedMonitoring_Values returns all elements of the EnhancedMonitoring enum @@ -8419,6 +8422,7 @@ func EnhancedMonitoring_Values() []string { EnhancedMonitoringDefault, EnhancedMonitoringPerBroker, EnhancedMonitoringPerTopicPerBroker, + EnhancedMonitoringPerTopicPerPartition, } } diff --git a/service/macie2/api.go b/service/macie2/api.go index 817f49871b5..3a066cafcf2 100644 --- a/service/macie2/api.go +++ b/service/macie2/api.go @@ -6658,6 +6658,11 @@ type BucketMetadata struct { ClassifiableSizeInBytes *int64 `locationName:"classifiableSizeInBytes" type:"long"` + // Specifies whether any one-time or recurring classification jobs are configured + // to analyze data in an S3 bucket, and, if so, the details of the job that + // ran most recently. + JobDetails *JobDetails `locationName:"jobDetails" type:"structure"` + LastUpdated *time.Time `locationName:"lastUpdated" type:"timestamp" timestampFormat:"iso8601"` ObjectCount *int64 `locationName:"objectCount" type:"long"` @@ -6747,6 +6752,12 @@ func (s *BucketMetadata) SetClassifiableSizeInBytes(v int64) *BucketMetadata { return s } +// SetJobDetails sets the JobDetails field's value. +func (s *BucketMetadata) SetJobDetails(v *JobDetails) *BucketMetadata { + s.JobDetails = v + return s +} + // SetLastUpdated sets the LastUpdated field's value. func (s *BucketMetadata) SetLastUpdated(v time.Time) *BucketMetadata { s.LastUpdated = &v @@ -8590,7 +8601,9 @@ type DescribeClassificationJobOutput struct { // Provides information about when a classification job was paused and when // it will expire and be cancelled if it isn't resumed. This object is present - // only if a job's current status (jobStatus) is USER_PAUSED. + // only if a job's current status (jobStatus) is USER_PAUSED. The information + // in this object applies only to a job that was paused while it had a status + // of RUNNING. UserPausedDetails *UserPausedDetails `locationName:"userPausedDetails" type:"structure"` } @@ -10893,6 +10906,55 @@ func (s *IpOwner) SetOrg(v string) *IpOwner { return s } +// Specifies whether any one-time or recurring classification jobs are configured +// to analyze data in an S3 bucket, and, if so, the details of the job that +// ran most recently. +type JobDetails struct { + _ struct{} `type:"structure"` + + IsDefinedInJob *string `locationName:"isDefinedInJob" type:"string" enum:"IsDefinedInJob"` + + IsMonitoredByJob *string `locationName:"isMonitoredByJob" type:"string" enum:"IsMonitoredByJob"` + + LastJobId *string `locationName:"lastJobId" type:"string"` + + LastJobRunTime *time.Time `locationName:"lastJobRunTime" type:"timestamp" timestampFormat:"iso8601"` +} + +// String returns the string representation +func (s JobDetails) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s JobDetails) GoString() string { + return s.String() +} + +// SetIsDefinedInJob sets the IsDefinedInJob field's value. +func (s *JobDetails) SetIsDefinedInJob(v string) *JobDetails { + s.IsDefinedInJob = &v + return s +} + +// SetIsMonitoredByJob sets the IsMonitoredByJob field's value. +func (s *JobDetails) SetIsMonitoredByJob(v string) *JobDetails { + s.IsMonitoredByJob = &v + return s +} + +// SetLastJobId sets the LastJobId field's value. +func (s *JobDetails) SetLastJobId(v string) *JobDetails { + s.LastJobId = &v + return s +} + +// SetLastJobRunTime sets the LastJobRunTime field's value. +func (s *JobDetails) SetLastJobRunTime(v time.Time) *JobDetails { + s.LastJobRunTime = &v + return s +} + // Specifies the recurrence pattern for running a classification job. type JobScheduleFrequency struct { _ struct{} `type:"structure"` @@ -11024,7 +11086,9 @@ type JobSummary struct { // Provides information about when a classification job was paused and when // it will expire and be cancelled if it isn't resumed. This object is present - // only if a job's current status (jobStatus) is USER_PAUSED. + // only if a job's current status (jobStatus) is USER_PAUSED. The information + // in this object applies only to a job that was paused while it had a status + // of RUNNING. UserPausedDetails *UserPausedDetails `locationName:"userPausedDetails" type:"structure"` } @@ -12566,8 +12630,8 @@ func (s *S3Bucket) SetTags(v []*KeyValuePair) *S3Bucket { return s } -// Specifies which S3 buckets contain the objects that a classification job -// analyzes. +// Specifies which AWS account owns the S3 buckets that a classification job +// analyzes, and the buckets to analyze for the account. type S3BucketDefinitionForJob struct { _ struct{} `type:"structure"` @@ -14433,7 +14497,9 @@ func (s *UserIdentityRoot) SetPrincipalId(v string) *UserIdentityRoot { // Provides information about when a classification job was paused and when // it will expire and be cancelled if it isn't resumed. This object is present -// only if a job's current status (jobStatus) is USER_PAUSED. +// only if a job's current status (jobStatus) is USER_PAUSED. The information +// in this object applies only to a job that was paused while it had a status +// of RUNNING. type UserPausedDetails struct { _ struct{} `type:"structure"` @@ -14849,6 +14915,46 @@ func GroupBy_Values() []string { } } +const ( + // IsDefinedInJobTrue is a IsDefinedInJob enum value + IsDefinedInJobTrue = "TRUE" + + // IsDefinedInJobFalse is a IsDefinedInJob enum value + IsDefinedInJobFalse = "FALSE" + + // IsDefinedInJobUnknown is a IsDefinedInJob enum value + IsDefinedInJobUnknown = "UNKNOWN" +) + +// IsDefinedInJob_Values returns all elements of the IsDefinedInJob enum +func IsDefinedInJob_Values() []string { + return []string{ + IsDefinedInJobTrue, + IsDefinedInJobFalse, + IsDefinedInJobUnknown, + } +} + +const ( + // IsMonitoredByJobTrue is a IsMonitoredByJob enum value + IsMonitoredByJobTrue = "TRUE" + + // IsMonitoredByJobFalse is a IsMonitoredByJob enum value + IsMonitoredByJobFalse = "FALSE" + + // IsMonitoredByJobUnknown is a IsMonitoredByJob enum value + IsMonitoredByJobUnknown = "UNKNOWN" +) + +// IsMonitoredByJob_Values returns all elements of the IsMonitoredByJob enum +func IsMonitoredByJob_Values() []string { + return []string{ + IsMonitoredByJobTrue, + IsMonitoredByJobFalse, + IsMonitoredByJobUnknown, + } +} + // The operator to use in a condition. Valid values are: const ( // JobComparatorEq is a JobComparator enum value diff --git a/service/s3/api.go b/service/s3/api.go index 2ab5d1dad25..a62b39dc89e 100644 --- a/service/s3/api.go +++ b/service/s3/api.go @@ -4513,10 +4513,10 @@ func (c *S3) GetObjectRequest(input *GetObjectInput) (req *request.Request, outp // For more information about returning the ACL of an object, see GetObjectAcl // (https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetObjectAcl.html). // -// If the object you are retrieving is stored in the S3 Glacier, S3 Glacier -// Deep Archive, S3 Intelligent-Tiering Archive, or S3 Intelligent-Tiering Deep -// Archive storage classes, before you can retrieve the object you must first -// restore a copy using RestoreObject (https://docs.aws.amazon.com/AmazonS3/latest/API/API_RestoreObject.html). +// If the object you are retrieving is stored in the S3 Glacier or S3 Glacier +// Deep Archive storage class, or S3 Intelligent-Tiering Archive or S3 Intelligent-Tiering +// Deep Archive tiers, before you can retrieve the object you must first restore +// a copy using RestoreObject (https://docs.aws.amazon.com/AmazonS3/latest/API/API_RestoreObject.html). // Otherwise, this operation returns an InvalidObjectStateError error. For information // about restoring archived objects, see Restoring Archived Objects (https://docs.aws.amazon.com/AmazonS3/latest/dev/restoring-objects.html). // @@ -8346,6 +8346,10 @@ func (c *S3) PutBucketOwnershipControlsRequest(input *PutBucketOwnershipControls output = &PutBucketOwnershipControlsOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(restxml.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + req.Handlers.Build.PushBackNamed(request.NamedHandler{ + Name: "contentMd5Handler", + Fn: checksum.AddBodyContentMD5Handler, + }) return } @@ -8567,12 +8571,9 @@ func (c *S3) PutBucketReplicationRequest(input *PutBucketReplicationInput) (req // When you add the Filter element in the configuration, you must also add the // following elements: DeleteMarkerReplication, Status, and Priority. // -// The latest version of the replication configuration XML is V2. XML V2 replication -// configurations are those that contain the Filter element for rules, and rules -// that specify S3 Replication Time Control (S3 RTC). In XML V2 replication -// configurations, Amazon S3 doesn't replicate delete markers. Therefore, you -// must set the DeleteMarkerReplication element to Disabled. For backward compatibility, -// Amazon S3 continues to support the XML V1 replication configuration. +// If you are using an earlier version of the replication configuration, Amazon +// S3 handles replication of delete markers differently. For more information, +// see Backward Compatibility (https://docs.aws.amazon.com/AmazonS3/latest/dev/replication-add-config.html#replication-backward-compat-considerations). // // For information about enabling versioning on a bucket, see Using Versioning // (https://docs.aws.amazon.com/AmazonS3/latest/dev/Versioning.html). @@ -9999,16 +10000,17 @@ func (c *S3) RestoreObjectRequest(input *RestoreObjectInput) (req *request.Reque // * Amazon S3 accepts a select request even if the object has already been // restored. A select request doesn’t return error response 409. // -// Restoring Archives +// Restoring objects // -// Objects that you archive to the S3 Glacier, S3 Glacier Deep Archive, S3 Intelligent-Tiering -// Archive, or S3 Intelligent-Tiering Deep Archive storage classes are not accessible -// in real time. For objects in Archive Access tier or Deep Archive Access tier -// you must first initiate a restore request, and then wait until the object -// is moved into the Frequent Access tier. For objects in S3 Glacier or S3 Glacier -// Deep Archive you must first initiate a restore request, and then wait until -// a temporary copy of the object is available. To access an archived object, -// you must restore the object for the duration (number of days) that you specify. +// Objects that you archive to the S3 Glacier or S3 Glacier Deep Archive storage +// class, and S3 Intelligent-Tiering Archive or S3 Intelligent-Tiering Deep +// Archive tiers are not accessible in real time. For objects in Archive Access +// or Deep Archive Access tiers you must first initiate a restore request, and +// then wait until the object is moved into the Frequent Access tier. For objects +// in S3 Glacier or S3 Glacier Deep Archive storage classes you must first initiate +// a restore request, and then wait until a temporary copy of the object is +// available. To access an archived object, you must restore the object for +// the duration (number of days) that you specify. // // To restore a specific object version, you can provide a version ID. If you // don't provide a version ID, Amazon S3 restores the current version. @@ -10018,31 +10020,31 @@ func (c *S3) RestoreObjectRequest(input *RestoreObjectInput) (req *request.Reque // request body: // // * Expedited - Expedited retrievals allow you to quickly access your data -// stored in the S3 Glacier or S3 Intelligent-Tiering Archive storage class -// when occasional urgent requests for a subset of archives are required. +// stored in the S3 Glacier storage class or S3 Intelligent-Tiering Archive +// tier when occasional urgent requests for a subset of archives are required. // For all but the largest archived objects (250 MB+), data accessed using // Expedited retrievals is typically made available within 1–5 minutes. // Provisioned capacity ensures that retrieval capacity for Expedited retrievals // is available when you need it. Expedited retrievals and provisioned capacity -// are not available for objects stored in the S3 Glacier Deep Archive or -// S3 Intelligent-Tiering Deep Archive storage class. +// are not available for objects stored in the S3 Glacier Deep Archive storage +// class or S3 Intelligent-Tiering Deep Archive tier. // // * Standard - Standard retrievals allow you to access any of your archived // objects within several hours. This is the default option for retrieval // requests that do not specify the retrieval option. Standard retrievals // typically finish within 3–5 hours for objects stored in the S3 Glacier -// or S3 Intelligent-Tiering Archive storage class. They typically finish -// within 12 hours for objects stored in the S3 Glacier Deep Archive or S3 -// Intelligent-Tiering Deep Archive storage class. Standard retrievals are -// free for objects stored in S3 Intelligent-Tiering. +// storage class or S3 Intelligent-Tiering Archive tier. They typically finish +// within 12 hours for objects stored in the S3 Glacier Deep Archive storage +// class or S3 Intelligent-Tiering Deep Archive tier. Standard retrievals +// are free for objects stored in S3 Intelligent-Tiering. // // * Bulk - Bulk retrievals are the lowest-cost retrieval option in S3 Glacier, // enabling you to retrieve large amounts, even petabytes, of data inexpensively. // Bulk retrievals typically finish within 5–12 hours for objects stored -// in the S3 Glacier or S3 Intelligent-Tiering Archive storage class. They -// typically finish within 48 hours for objects stored in the S3 Glacier -// Deep Archive or S3 Intelligent-Tiering Deep Archive storage class. Bulk -// retrievals are free for objects stored in S3 Intelligent-Tiering. +// in the S3 Glacier storage class or S3 Intelligent-Tiering Archive tier. +// They typically finish within 48 hours for objects stored in the S3 Glacier +// Deep Archive storage class or S3 Intelligent-Tiering Deep Archive tier. +// Bulk retrievals are free for objects stored in S3 Intelligent-Tiering. // // For more information about archive retrieval options and provisioned capacity // for Expedited data access, see Restoring Archived Objects (https://docs.aws.amazon.com/AmazonS3/latest/dev/restoring-objects.html) @@ -33478,9 +33480,11 @@ type Tiering struct { // AccessTier is a required field AccessTier *string `type:"string" required:"true" enum:"IntelligentTieringAccessTier"` - // The number of days that you want your archived data to be accessible. The - // minimum number of days specified in the restore request must be at least - // 90 days. If a smaller value is specifed it will be ignored. + // The number of consecutive days of no access after which an object will be + // eligible to be transitioned to the corresponding tier. The minimum number + // of days specified for Archive Access tier must be at least 90 days and Deep + // Archive Access tier must be at least 180 days. The maximum can be up to 2 + // years (730 days). // // Days is a required field Days *int64 `type:"integer" required:"true"` diff --git a/service/s3/examples_test.go b/service/s3/examples_test.go index 157e7538729..13a83783e33 100644 --- a/service/s3/examples_test.go +++ b/service/s3/examples_test.go @@ -128,17 +128,13 @@ func ExampleS3_CopyObject_shared00() { fmt.Println(result) } -// To create a bucket in a specific region +// To create a bucket // -// The following example creates a bucket. The request specifies an AWS region where -// to create the bucket. +// The following example creates a bucket. func ExampleS3_CreateBucket_shared00() { svc := s3.New(session.New()) input := &s3.CreateBucketInput{ Bucket: aws.String("examplebucket"), - CreateBucketConfiguration: &s3.CreateBucketConfiguration{ - LocationConstraint: aws.String("eu-west-1"), - }, } result, err := svc.CreateBucket(input) @@ -163,13 +159,17 @@ func ExampleS3_CreateBucket_shared00() { fmt.Println(result) } -// To create a bucket +// To create a bucket in a specific region // -// The following example creates a bucket. +// The following example creates a bucket. The request specifies an AWS region where +// to create the bucket. func ExampleS3_CreateBucket_shared01() { svc := s3.New(session.New()) input := &s3.CreateBucketInput{ Bucket: aws.String("examplebucket"), + CreateBucketConfiguration: &s3.CreateBucketConfiguration{ + LocationConstraint: aws.String("eu-west-1"), + }, } result, err := svc.CreateBucket(input) @@ -467,16 +467,16 @@ func ExampleS3_DeleteObject_shared01() { fmt.Println(result) } -// To remove tag set from an object +// To remove tag set from an object version // -// The following example removes tag set associated with the specified object. If the -// bucket is versioning enabled, the operation removes tag set from the latest object -// version. +// The following example removes tag set associated with the specified object version. +// The request specifies both the object key and object version. func ExampleS3_DeleteObjectTagging_shared00() { svc := s3.New(session.New()) input := &s3.DeleteObjectTaggingInput{ - Bucket: aws.String("examplebucket"), - Key: aws.String("HappyFace.jpg"), + Bucket: aws.String("examplebucket"), + Key: aws.String("HappyFace.jpg"), + VersionId: aws.String("ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI"), } result, err := svc.DeleteObjectTagging(input) @@ -497,16 +497,16 @@ func ExampleS3_DeleteObjectTagging_shared00() { fmt.Println(result) } -// To remove tag set from an object version +// To remove tag set from an object // -// The following example removes tag set associated with the specified object version. -// The request specifies both the object key and object version. +// The following example removes tag set associated with the specified object. If the +// bucket is versioning enabled, the operation removes tag set from the latest object +// version. func ExampleS3_DeleteObjectTagging_shared01() { svc := s3.New(session.New()) input := &s3.DeleteObjectTaggingInput{ - Bucket: aws.String("examplebucket"), - Key: aws.String("HappyFace.jpg"), - VersionId: aws.String("ydlaNkwWm0SfKJR.T1b1fIdPRbldTYRI"), + Bucket: aws.String("examplebucket"), + Key: aws.String("HappyFace.jpg"), } result, err := svc.DeleteObjectTagging(input) @@ -527,11 +527,11 @@ func ExampleS3_DeleteObjectTagging_shared01() { fmt.Println(result) } -// To delete multiple objects from a versioned bucket +// To delete multiple object versions from a versioned bucket // -// The following example deletes objects from a bucket. The bucket is versioned, and -// the request does not specify the object version to delete. In this case, all versions -// remain in the bucket and S3 adds a delete marker. +// The following example deletes objects from a bucket. The request specifies object +// versions. S3 deletes specific object versions and returns the key and versions of +// deleted objects in the response. func ExampleS3_DeleteObjects_shared00() { svc := s3.New(session.New()) input := &s3.DeleteObjectsInput{ @@ -539,10 +539,12 @@ func ExampleS3_DeleteObjects_shared00() { Delete: &s3.Delete{ Objects: []*s3.ObjectIdentifier{ { - Key: aws.String("objectkey1"), + Key: aws.String("HappyFace.jpg"), + VersionId: aws.String("2LWg7lQLnY41.maGB5Z6SWW.dcq0vx7b"), }, { - Key: aws.String("objectkey2"), + Key: aws.String("HappyFace.jpg"), + VersionId: aws.String("yoz3HB.ZhCS_tKVEmIOr7qYyyAaZSKVd"), }, }, Quiet: aws.Bool(false), @@ -567,11 +569,11 @@ func ExampleS3_DeleteObjects_shared00() { fmt.Println(result) } -// To delete multiple object versions from a versioned bucket +// To delete multiple objects from a versioned bucket // -// The following example deletes objects from a bucket. The request specifies object -// versions. S3 deletes specific object versions and returns the key and versions of -// deleted objects in the response. +// The following example deletes objects from a bucket. The bucket is versioned, and +// the request does not specify the object version to delete. In this case, all versions +// remain in the bucket and S3 adds a delete marker. func ExampleS3_DeleteObjects_shared01() { svc := s3.New(session.New()) input := &s3.DeleteObjectsInput{ @@ -579,12 +581,10 @@ func ExampleS3_DeleteObjects_shared01() { Delete: &s3.Delete{ Objects: []*s3.ObjectIdentifier{ { - Key: aws.String("HappyFace.jpg"), - VersionId: aws.String("2LWg7lQLnY41.maGB5Z6SWW.dcq0vx7b"), + Key: aws.String("objectkey1"), }, { - Key: aws.String("HappyFace.jpg"), - VersionId: aws.String("yoz3HB.ZhCS_tKVEmIOr7qYyyAaZSKVd"), + Key: aws.String("objectkey2"), }, }, Quiet: aws.Bool(false), @@ -1808,20 +1808,18 @@ func ExampleS3_PutBucketWebsite_shared00() { fmt.Println(result) } -// To upload object and specify user-defined metadata +// To upload an object and specify canned ACL. // -// The following example creates an object. The request also specifies optional metadata. -// If the bucket is versioning enabled, S3 returns version ID in response. +// The following example uploads and object. The request specifies optional canned ACL +// (access control list) to all READ access to authenticated users. If the bucket is +// versioning enabled, S3 returns version ID in response. func ExampleS3_PutObject_shared00() { svc := s3.New(session.New()) input := &s3.PutObjectInput{ + ACL: aws.String("authenticated-read"), Body: aws.ReadSeekCloser(strings.NewReader("filetoupload")), Bucket: aws.String("examplebucket"), Key: aws.String("exampleobject"), - Metadata: map[string]*string{ - "metadata1": aws.String("value1"), - "metadata2": aws.String("value2"), - }, } result, err := svc.PutObject(input) @@ -1842,16 +1840,17 @@ func ExampleS3_PutObject_shared00() { fmt.Println(result) } -// To create an object. +// To upload an object and specify optional tags // -// The following example creates an object. If the bucket is versioning enabled, S3 -// returns version ID in response. +// The following example uploads an object. The request specifies optional object tags. +// The bucket is versioned, therefore S3 returns version ID of the newly created object. func ExampleS3_PutObject_shared01() { svc := s3.New(session.New()) input := &s3.PutObjectInput{ - Body: aws.ReadSeekCloser(strings.NewReader("filetoupload")), - Bucket: aws.String("examplebucket"), - Key: aws.String("objectkey"), + Body: aws.ReadSeekCloser(strings.NewReader("c:\\HappyFace.jpg")), + Bucket: aws.String("examplebucket"), + Key: aws.String("HappyFace.jpg"), + Tagging: aws.String("key1=value1&key2=value2"), } result, err := svc.PutObject(input) @@ -1872,17 +1871,19 @@ func ExampleS3_PutObject_shared01() { fmt.Println(result) } -// To upload an object and specify optional tags +// To upload an object and specify server-side encryption and object tags // -// The following example uploads an object. The request specifies optional object tags. -// The bucket is versioned, therefore S3 returns version ID of the newly created object. +// The following example uploads and object. The request specifies the optional server-side +// encryption option. The request also specifies optional object tags. If the bucket +// is versioning enabled, S3 returns version ID in response. func ExampleS3_PutObject_shared02() { svc := s3.New(session.New()) input := &s3.PutObjectInput{ - Body: aws.ReadSeekCloser(strings.NewReader("c:\\HappyFace.jpg")), - Bucket: aws.String("examplebucket"), - Key: aws.String("HappyFace.jpg"), - Tagging: aws.String("key1=value1&key2=value2"), + Body: aws.ReadSeekCloser(strings.NewReader("filetoupload")), + Bucket: aws.String("examplebucket"), + Key: aws.String("exampleobject"), + ServerSideEncryption: aws.String("AES256"), + Tagging: aws.String("key1=value1&key2=value2"), } result, err := svc.PutObject(input) @@ -1903,19 +1904,16 @@ func ExampleS3_PutObject_shared02() { fmt.Println(result) } -// To upload an object and specify server-side encryption and object tags +// To create an object. // -// The following example uploads and object. The request specifies the optional server-side -// encryption option. The request also specifies optional object tags. If the bucket -// is versioning enabled, S3 returns version ID in response. +// The following example creates an object. If the bucket is versioning enabled, S3 +// returns version ID in response. func ExampleS3_PutObject_shared03() { svc := s3.New(session.New()) input := &s3.PutObjectInput{ - Body: aws.ReadSeekCloser(strings.NewReader("filetoupload")), - Bucket: aws.String("examplebucket"), - Key: aws.String("exampleobject"), - ServerSideEncryption: aws.String("AES256"), - Tagging: aws.String("key1=value1&key2=value2"), + Body: aws.ReadSeekCloser(strings.NewReader("filetoupload")), + Bucket: aws.String("examplebucket"), + Key: aws.String("objectkey"), } result, err := svc.PutObject(input) @@ -1936,18 +1934,20 @@ func ExampleS3_PutObject_shared03() { fmt.Println(result) } -// To upload an object and specify canned ACL. +// To upload object and specify user-defined metadata // -// The following example uploads and object. The request specifies optional canned ACL -// (access control list) to all READ access to authenticated users. If the bucket is -// versioning enabled, S3 returns version ID in response. +// The following example creates an object. The request also specifies optional metadata. +// If the bucket is versioning enabled, S3 returns version ID in response. func ExampleS3_PutObject_shared04() { svc := s3.New(session.New()) input := &s3.PutObjectInput{ - ACL: aws.String("authenticated-read"), Body: aws.ReadSeekCloser(strings.NewReader("filetoupload")), Bucket: aws.String("examplebucket"), Key: aws.String("exampleobject"), + Metadata: map[string]*string{ + "metadata1": aws.String("value1"), + "metadata2": aws.String("value2"), + }, } result, err := svc.PutObject(input) @@ -1968,18 +1968,17 @@ func ExampleS3_PutObject_shared04() { fmt.Println(result) } -// To upload an object (specify optional headers) +// To upload an object // -// The following example uploads an object. The request specifies optional request headers -// to directs S3 to use specific storage class and use server-side encryption. +// The following example uploads an object to a versioning-enabled bucket. The source +// file is specified using Windows file syntax. S3 returns VersionId of the newly created +// object. func ExampleS3_PutObject_shared05() { svc := s3.New(session.New()) input := &s3.PutObjectInput{ - Body: aws.ReadSeekCloser(strings.NewReader("HappyFace.jpg")), - Bucket: aws.String("examplebucket"), - Key: aws.String("HappyFace.jpg"), - ServerSideEncryption: aws.String("AES256"), - StorageClass: aws.String("STANDARD_IA"), + Body: aws.ReadSeekCloser(strings.NewReader("HappyFace.jpg")), + Bucket: aws.String("examplebucket"), + Key: aws.String("HappyFace.jpg"), } result, err := svc.PutObject(input) @@ -2000,17 +1999,18 @@ func ExampleS3_PutObject_shared05() { fmt.Println(result) } -// To upload an object +// To upload an object (specify optional headers) // -// The following example uploads an object to a versioning-enabled bucket. The source -// file is specified using Windows file syntax. S3 returns VersionId of the newly created -// object. +// The following example uploads an object. The request specifies optional request headers +// to directs S3 to use specific storage class and use server-side encryption. func ExampleS3_PutObject_shared06() { svc := s3.New(session.New()) input := &s3.PutObjectInput{ - Body: aws.ReadSeekCloser(strings.NewReader("HappyFace.jpg")), - Bucket: aws.String("examplebucket"), - Key: aws.String("HappyFace.jpg"), + Body: aws.ReadSeekCloser(strings.NewReader("HappyFace.jpg")), + Bucket: aws.String("examplebucket"), + Key: aws.String("HappyFace.jpg"), + ServerSideEncryption: aws.String("AES256"), + StorageClass: aws.String("STANDARD_IA"), } result, err := svc.PutObject(input) @@ -2175,18 +2175,19 @@ func ExampleS3_UploadPart_shared00() { fmt.Println(result) } -// To upload a part by copying data from an existing object as data source +// To upload a part by copying byte range from an existing object as data source // -// The following example uploads a part of a multipart upload by copying data from an -// existing object as data source. +// The following example uploads a part of a multipart upload by copying a specified +// byte range from an existing object as data source. func ExampleS3_UploadPartCopy_shared00() { svc := s3.New(session.New()) input := &s3.UploadPartCopyInput{ - Bucket: aws.String("examplebucket"), - CopySource: aws.String("/bucketname/sourceobjectkey"), - Key: aws.String("examplelargeobject"), - PartNumber: aws.Int64(1), - UploadId: aws.String("exampleuoh_10OhKhT7YukE9bjzTPRiuaCotmZM_pFngJFir9OZNrSr5cWa3cq3LZSUsfjI4FI7PkP91We7Nrw--"), + Bucket: aws.String("examplebucket"), + CopySource: aws.String("/bucketname/sourceobjectkey"), + CopySourceRange: aws.String("bytes=1-100000"), + Key: aws.String("examplelargeobject"), + PartNumber: aws.Int64(2), + UploadId: aws.String("exampleuoh_10OhKhT7YukE9bjzTPRiuaCotmZM_pFngJFir9OZNrSr5cWa3cq3LZSUsfjI4FI7PkP91We7Nrw--"), } result, err := svc.UploadPartCopy(input) @@ -2207,19 +2208,18 @@ func ExampleS3_UploadPartCopy_shared00() { fmt.Println(result) } -// To upload a part by copying byte range from an existing object as data source +// To upload a part by copying data from an existing object as data source // -// The following example uploads a part of a multipart upload by copying a specified -// byte range from an existing object as data source. +// The following example uploads a part of a multipart upload by copying data from an +// existing object as data source. func ExampleS3_UploadPartCopy_shared01() { svc := s3.New(session.New()) input := &s3.UploadPartCopyInput{ - Bucket: aws.String("examplebucket"), - CopySource: aws.String("/bucketname/sourceobjectkey"), - CopySourceRange: aws.String("bytes=1-100000"), - Key: aws.String("examplelargeobject"), - PartNumber: aws.Int64(2), - UploadId: aws.String("exampleuoh_10OhKhT7YukE9bjzTPRiuaCotmZM_pFngJFir9OZNrSr5cWa3cq3LZSUsfjI4FI7PkP91We7Nrw--"), + Bucket: aws.String("examplebucket"), + CopySource: aws.String("/bucketname/sourceobjectkey"), + Key: aws.String("examplelargeobject"), + PartNumber: aws.Int64(1), + UploadId: aws.String("exampleuoh_10OhKhT7YukE9bjzTPRiuaCotmZM_pFngJFir9OZNrSr5cWa3cq3LZSUsfjI4FI7PkP91We7Nrw--"), } result, err := svc.UploadPartCopy(input)