diff --git a/CHANGELOG.md b/CHANGELOG.md index c3b9cce3429..07656fd6963 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,15 @@ +Release v1.19.30 (2019-05-14) +=== + +### Service Client Updates +* `service/chime`: Updates service API and documentation + * Amazon Chime private bots GA release. +* `service/comprehend`: Updates service API, documentation, and paginators +* `service/ec2`: Updates service API, documentation, and paginators + * Pagination support for ec2.DescribeSubnets, ec2.DescribeDhcpOptions +* `service/storagegateway`: Updates service API and documentation + * Add Tags parameter to CreateSnapshot and UpdateSnapshotSchedule APIs, used for creating tags on create for one off snapshots and scheduled snapshots. + Release v1.19.29 (2019-05-13) === diff --git a/aws/version.go b/aws/version.go index 054a9123619..f3e7c1363a5 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.19.29" +const SDKVersion = "1.19.30" diff --git a/models/apis/chime/2018-05-01/api-2.json b/models/apis/chime/2018-05-01/api-2.json index cb250edc2cd..1e0f0eb4002 100644 --- a/models/apis/chime/2018-05-01/api-2.json +++ b/models/apis/chime/2018-05-01/api-2.json @@ -162,6 +162,25 @@ {"shape":"ServiceFailureException"} ] }, + "CreateBot":{ + "name":"CreateBot", + "http":{ + "method":"POST", + "requestUri":"/accounts/{accountId}/bots", + "responseCode":201 + }, + "input":{"shape":"CreateBotRequest"}, + "output":{"shape":"CreateBotResponse"}, + "errors":[ + {"shape":"ServiceUnavailableException"}, + {"shape":"ServiceFailureException"}, + {"shape":"ForbiddenException"}, + {"shape":"BadRequestException"}, + {"shape":"UnauthorizedClientException"}, + {"shape":"ResourceLimitExceededException"}, + {"shape":"NotFoundException"} + ] + }, "CreatePhoneNumberOrder":{ "name":"CreatePhoneNumberOrder", "http":{ @@ -218,6 +237,23 @@ {"shape":"ServiceFailureException"} ] }, + "DeleteEventsConfiguration":{ + "name":"DeleteEventsConfiguration", + "http":{ + "method":"DELETE", + "requestUri":"/accounts/{accountId}/bots/{botId}/events-configuration", + "responseCode":204 + }, + "input":{"shape":"DeleteEventsConfigurationRequest"}, + "errors":[ + {"shape":"ServiceUnavailableException"}, + {"shape":"ServiceFailureException"}, + {"shape":"ForbiddenException"}, + {"shape":"BadRequestException"}, + {"shape":"UnauthorizedClientException"}, + {"shape":"ResourceLimitExceededException"} + ] + }, "DeletePhoneNumber":{ "name":"DeletePhoneNumber", "http":{ @@ -382,6 +418,43 @@ {"shape":"ServiceFailureException"} ] }, + "GetBot":{ + "name":"GetBot", + "http":{ + "method":"GET", + "requestUri":"/accounts/{accountId}/bots/{botId}", + "responseCode":200 + }, + "input":{"shape":"GetBotRequest"}, + "output":{"shape":"GetBotResponse"}, + "errors":[ + {"shape":"ServiceUnavailableException"}, + {"shape":"ServiceFailureException"}, + {"shape":"ForbiddenException"}, + {"shape":"UnauthorizedClientException"}, + {"shape":"NotFoundException"}, + {"shape":"BadRequestException"} + ] + }, + "GetEventsConfiguration":{ + "name":"GetEventsConfiguration", + "http":{ + "method":"GET", + "requestUri":"/accounts/{accountId}/bots/{botId}/events-configuration", + "responseCode":200 + }, + "input":{"shape":"GetEventsConfigurationRequest"}, + "output":{"shape":"GetEventsConfigurationResponse"}, + "errors":[ + {"shape":"ServiceUnavailableException"}, + {"shape":"ServiceFailureException"}, + {"shape":"ForbiddenException"}, + {"shape":"BadRequestException"}, + {"shape":"UnauthorizedClientException"}, + {"shape":"ResourceLimitExceededException"}, + {"shape":"NotFoundException"} + ] + }, "GetGlobalSettings":{ "name":"GetGlobalSettings", "http":{ @@ -587,6 +660,24 @@ {"shape":"ServiceFailureException"} ] }, + "ListBots":{ + "name":"ListBots", + "http":{ + "method":"GET", + "requestUri":"/accounts/{accountId}/bots", + "responseCode":200 + }, + "input":{"shape":"ListBotsRequest"}, + "output":{"shape":"ListBotsResponse"}, + "errors":[ + {"shape":"ServiceUnavailableException"}, + {"shape":"ServiceFailureException"}, + {"shape":"ForbiddenException"}, + {"shape":"UnauthorizedClientException"}, + {"shape":"BadRequestException"}, + {"shape":"NotFoundException"} + ] + }, "ListPhoneNumberOrders":{ "name":"ListPhoneNumberOrders", "http":{ @@ -697,6 +788,25 @@ {"shape":"ServiceFailureException"} ] }, + "PutEventsConfiguration":{ + "name":"PutEventsConfiguration", + "http":{ + "method":"PUT", + "requestUri":"/accounts/{accountId}/bots/{botId}/events-configuration", + "responseCode":201 + }, + "input":{"shape":"PutEventsConfigurationRequest"}, + "output":{"shape":"PutEventsConfigurationResponse"}, + "errors":[ + {"shape":"ServiceUnavailableException"}, + {"shape":"ServiceFailureException"}, + {"shape":"ForbiddenException"}, + {"shape":"BadRequestException"}, + {"shape":"UnauthorizedClientException"}, + {"shape":"ResourceLimitExceededException"}, + {"shape":"NotFoundException"} + ] + }, "PutVoiceConnectorOrigination":{ "name":"PutVoiceConnectorOrigination", "http":{ @@ -753,6 +863,24 @@ {"shape":"ServiceFailureException"} ] }, + "RegenerateSecurityToken":{ + "name":"RegenerateSecurityToken", + "http":{ + "method":"POST", + "requestUri":"/accounts/{accountId}/bots/{botId}?operation=regenerate-security-token", + "responseCode":200 + }, + "input":{"shape":"RegenerateSecurityTokenRequest"}, + "output":{"shape":"RegenerateSecurityTokenResponse"}, + "errors":[ + {"shape":"ServiceUnavailableException"}, + {"shape":"ServiceFailureException"}, + {"shape":"ForbiddenException"}, + {"shape":"BadRequestException"}, + {"shape":"UnauthorizedClientException"}, + {"shape":"NotFoundException"} + ] + }, "ResetPersonalPIN":{ "name":"ResetPersonalPIN", "http":{ @@ -847,6 +975,24 @@ {"shape":"ServiceFailureException"} ] }, + "UpdateBot":{ + "name":"UpdateBot", + "http":{ + "method":"POST", + "requestUri":"/accounts/{accountId}/bots/{botId}", + "responseCode":200 + }, + "input":{"shape":"UpdateBotRequest"}, + "output":{"shape":"UpdateBotResponse"}, + "errors":[ + {"shape":"ServiceUnavailableException"}, + {"shape":"ServiceFailureException"}, + {"shape":"ForbiddenException"}, + {"shape":"BadRequestException"}, + {"shape":"UnauthorizedClientException"}, + {"shape":"NotFoundException"} + ] + }, "UpdateGlobalSettings":{ "name":"UpdateGlobalSettings", "http":{ @@ -1127,6 +1273,28 @@ } }, "Boolean":{"type":"boolean"}, + "Bot":{ + "type":"structure", + "members":{ + "BotId":{"shape":"String"}, + "UserId":{"shape":"String"}, + "DisplayName":{"shape":"SensitiveString"}, + "BotType":{"shape":"BotType"}, + "Disabled":{"shape":"NullableBoolean"}, + "CreatedTimestamp":{"shape":"Iso8601Timestamp"}, + "UpdatedTimestamp":{"shape":"Iso8601Timestamp"}, + "BotEmail":{"shape":"SensitiveString"}, + "SecurityToken":{"shape":"SensitiveString"} + } + }, + "BotList":{ + "type":"list", + "member":{"shape":"Bot"} + }, + "BotType":{ + "type":"string", + "enum":["ChatBot"] + }, "BusinessCallingSettings":{ "type":"structure", "members":{ @@ -1167,6 +1335,28 @@ "Account":{"shape":"Account"} } }, + "CreateBotRequest":{ + "type":"structure", + "required":[ + "DisplayName", + "AccountId" + ], + "members":{ + "AccountId":{ + "shape":"NonEmptyString", + "location":"uri", + "locationName":"accountId" + }, + "DisplayName":{"shape":"SensitiveString"}, + "Domain":{"shape":"NonEmptyString"} + } + }, + "CreateBotResponse":{ + "type":"structure", + "members":{ + "Bot":{"shape":"Bot"} + } + }, "CreatePhoneNumberOrderRequest":{ "type":"structure", "required":[ @@ -1228,6 +1418,25 @@ "members":{ } }, + "DeleteEventsConfigurationRequest":{ + "type":"structure", + "required":[ + "AccountId", + "BotId" + ], + "members":{ + "AccountId":{ + "shape":"NonEmptyString", + "location":"uri", + "locationName":"accountId" + }, + "BotId":{ + "shape":"NonEmptyString", + "location":"uri", + "locationName":"botId" + } + } + }, "DeletePhoneNumberRequest":{ "type":"structure", "required":["PhoneNumberId"], @@ -1363,6 +1572,14 @@ "PreconditionFailed" ] }, + "EventsConfiguration":{ + "type":"structure", + "members":{ + "BotId":{"shape":"String"}, + "OutboundEventsHTTPSEndpoint":{"shape":"SensitiveString"}, + "LambdaFunctionArn":{"shape":"SensitiveString"} + } + }, "ForbiddenException":{ "type":"structure", "members":{ @@ -1406,6 +1623,56 @@ "AccountSettings":{"shape":"AccountSettings"} } }, + "GetBotRequest":{ + "type":"structure", + "required":[ + "AccountId", + "BotId" + ], + "members":{ + "AccountId":{ + "shape":"NonEmptyString", + "location":"uri", + "locationName":"accountId" + }, + "BotId":{ + "shape":"NonEmptyString", + "location":"uri", + "locationName":"botId" + } + } + }, + "GetBotResponse":{ + "type":"structure", + "members":{ + "Bot":{"shape":"Bot"} + } + }, + "GetEventsConfigurationRequest":{ + "type":"structure", + "required":[ + "AccountId", + "BotId" + ], + "members":{ + "AccountId":{ + "shape":"NonEmptyString", + "location":"uri", + "locationName":"accountId" + }, + "BotId":{ + "shape":"NonEmptyString", + "location":"uri", + "locationName":"botId" + } + } + }, + "GetEventsConfigurationResponse":{ + "type":"structure", + "members":{ + "EventsConfiguration":{"shape":"EventsConfiguration"} + } + }, "GetGlobalSettingsResponse":{ "type":"structure", "members":{ @@ -1660,6 +1927,34 @@ "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"} + } + }, "ListPhoneNumberOrdersRequest":{ "type":"structure", "members":{ @@ -2016,6 +2311,33 @@ "max":200, "min":1 }, + "PutEventsConfigurationRequest":{ + "type":"structure", + "required":[ + "AccountId", + "BotId" + ], + "members":{ + "AccountId":{ + "shape":"NonEmptyString", + "location":"uri", + "locationName":"accountId" + }, + "BotId":{ + "shape":"NonEmptyString", + "location":"uri", + "locationName":"botId" + }, + "OutboundEventsHTTPSEndpoint":{"shape":"SensitiveString"}, + "LambdaFunctionArn":{"shape":"SensitiveString"} + } + }, + "PutEventsConfigurationResponse":{ + "type":"structure", + "members":{ + "EventsConfiguration":{"shape":"EventsConfiguration"} + } + }, "PutVoiceConnectorOriginationRequest":{ "type":"structure", "required":[ @@ -2070,6 +2392,31 @@ "Termination":{"shape":"Termination"} } }, + "RegenerateSecurityTokenRequest":{ + "type":"structure", + "required":[ + "AccountId", + "BotId" + ], + "members":{ + "AccountId":{ + "shape":"NonEmptyString", + "location":"uri", + "locationName":"accountId" + }, + "BotId":{ + "shape":"NonEmptyString", + "location":"uri", + "locationName":"botId" + } + } + }, + "RegenerateSecurityTokenResponse":{ + "type":"structure", + "members":{ + "Bot":{"shape":"Bot"} + } + }, "RegistrationStatus":{ "type":"string", "enum":[ @@ -2103,6 +2450,15 @@ "User":{"shape":"User"} } }, + "ResourceLimitExceededException":{ + "type":"structure", + "members":{ + "Code":{"shape":"ErrorCode"}, + "Message":{"shape":"String"} + }, + "error":{"httpStatusCode":400}, + "exception":true + }, "RestorePhoneNumberRequest":{ "type":"structure", "required":["PhoneNumberId"], @@ -2294,6 +2650,32 @@ "members":{ } }, + "UpdateBotRequest":{ + "type":"structure", + "required":[ + "AccountId", + "BotId" + ], + "members":{ + "AccountId":{ + "shape":"NonEmptyString", + "location":"uri", + "locationName":"accountId" + }, + "BotId":{ + "shape":"NonEmptyString", + "location":"uri", + "locationName":"botId" + }, + "Disabled":{"shape":"NullableBoolean"} + } + }, + "UpdateBotResponse":{ + "type":"structure", + "members":{ + "Bot":{"shape":"Bot"} + } + }, "UpdateGlobalSettingsRequest":{ "type":"structure", "required":[ diff --git a/models/apis/chime/2018-05-01/docs-2.json b/models/apis/chime/2018-05-01/docs-2.json index 81fa398136d..b9ccfd45b27 100644 --- a/models/apis/chime/2018-05-01/docs-2.json +++ b/models/apis/chime/2018-05-01/docs-2.json @@ -5,14 +5,16 @@ "AssociatePhoneNumberWithUser": "

Associates a phone number with the specified Amazon Chime user.

", "AssociatePhoneNumbersWithVoiceConnector": "

Associates a phone number with the specified Amazon Chime Voice Connector.

", "BatchDeletePhoneNumber": "

Moves phone numbers into the Deletion queue. Phone numbers must be disassociated from any users or Amazon Chime Voice Connectors before they can be deleted.

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

", - "BatchSuspendUser": "

Suspends up to 50 users from a Team or EnterpriseLWA Amazon Chime account. For more information about different account types, see Managing Your Amazon Chime Accounts in the Amazon Chime Administration Guide.

Users suspended from a Team account are dissociated from the account, but they can continue to use Amazon Chime as free users. To remove the suspension from suspended Team account users, invite them to the Team account again. You can use the InviteUsers action to do so.

Users suspended from an EnterpriseLWA account are immediately signed out of Amazon Chime and can no longer sign in. To remove the suspension from suspended EnterpriseLWA account users, use the BatchUnsuspendUser action.

To sign out users without suspending them, use the LogoutUser action.

", + "BatchSuspendUser": "

Suspends up to 50 users from a Team or EnterpriseLWA Amazon Chime account. For more information about different account types, see Managing Your Amazon Chime Accounts in the Amazon Chime Administration Guide.

Users suspended from a Team account are dissasociated from the account, but they can continue to use Amazon Chime as free users. To remove the suspension from suspended Team account users, invite them to the Team account again. You can use the InviteUsers action to do so.

Users suspended from an EnterpriseLWA account are immediately signed out of Amazon Chime and can no longer sign in. To remove the suspension from suspended EnterpriseLWA account users, use the BatchUnsuspendUser action.

To sign out users without suspending them, use the LogoutUser action.

", "BatchUnsuspendUser": "

Removes the suspension from up to 50 previously suspended users for the specified Amazon Chime EnterpriseLWA account. Only users on EnterpriseLWA accounts can be unsuspended using this action. For more information about different account types, see Managing Your Amazon Chime Accounts in the Amazon Chime Administration Guide.

Previously suspended users who are unsuspended using this action are returned to Registered status. Users who are not previously suspended are ignored.

", "BatchUpdatePhoneNumber": "

Updates phone number product types. Choose from Amazon Chime Business Calling and Amazon Chime Voice Connector product types.

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

", + "CreateBot": "

Creates a bot for an Amazon Chime Enterprise account.

", "CreatePhoneNumberOrder": "

Creates an order for phone numbers to be provisioned. Choose from Amazon Chime Business Calling and Amazon Chime Voice Connector product types.

", "CreateVoiceConnector": "

Creates an Amazon Chime Voice Connector under the administrator's AWS account. 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.

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

", + "DeleteEventsConfiguration": "

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

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

", "DeleteVoiceConnector": "

Deletes the specified Amazon Chime Voice Connector. Any phone numbers assigned to the Amazon Chime Voice Connector must be unassigned from it before it can be deleted.

", "DeleteVoiceConnectorOrigination": "

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

", @@ -22,6 +24,8 @@ "DisassociatePhoneNumbersFromVoiceConnector": "

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

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

", + "GetBot": "

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

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

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

", @@ -33,20 +37,24 @@ "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 invites to as many as 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.

", + "ListBots": "

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

", "ListPhoneNumberOrders": "

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

", "ListPhoneNumbers": "

Lists the phone numbers for the specified Amazon Chime account, Amazon Chime user, or Amazon Chime Voice Connector.

", "ListUsers": "

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.

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

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

", "PutVoiceConnectorOrigination": "

Adds origination settings for the specified Amazon Chime Voice Connector.

", "PutVoiceConnectorTermination": "

Adds termination settings for the specified Amazon Chime Voice Connector.

", "PutVoiceConnectorTerminationCredentials": "

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

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

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

", + "UpdateBot": "

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

", "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, for the specified phone number ID.

", "UpdateUser": "

Updates user details for a specified user ID. Currently, only LicenseType updates are supported for this action.

", @@ -180,6 +188,28 @@ "VoiceConnector$RequireEncryption": "

Designates whether encryption is required for the Amazon Chime Voice Connector.

" } }, + "Bot": { + "base": "

A resource that allows Enterprise account administrators to configure an interface to receive events from Amazon Chime.

", + "refs": { + "BotList$member": null, + "CreateBotResponse$Bot": "

The bot details.

", + "GetBotResponse$Bot": "

The chat bot details.

", + "RegenerateSecurityTokenResponse$Bot": null, + "UpdateBotResponse$Bot": "

The updated bot details.

" + } + }, + "BotList": { + "base": null, + "refs": { + "ListBotsResponse$Bots": "

List of bots and bot details.

" + } + }, + "BotType": { + "base": null, + "refs": { + "Bot$BotType": "

The bot type.

" + } + }, "BusinessCallingSettings": { "base": "

The Amazon Chime Business Calling settings for the administrator's AWS account. Includes any Amazon S3 buckets designated for storing call detail records.

", "refs": { @@ -220,6 +250,16 @@ "refs": { } }, + "CreateBotRequest": { + "base": null, + "refs": { + } + }, + "CreateBotResponse": { + "base": null, + "refs": { + } + }, "CreatePhoneNumberOrderRequest": { "base": null, "refs": { @@ -262,6 +302,11 @@ "refs": { } }, + "DeleteEventsConfigurationRequest": { + "base": null, + "refs": { + } + }, "DeletePhoneNumberRequest": { "base": null, "refs": { @@ -350,6 +395,7 @@ "ForbiddenException$Code": null, "NotFoundException$Code": null, "PhoneNumberError$ErrorCode": "

The error code.

", + "ResourceLimitExceededException$Code": null, "ServiceFailureException$Code": null, "ServiceUnavailableException$Code": null, "ThrottledClientException$Code": null, @@ -358,8 +404,15 @@ "UserError$ErrorCode": "

The error code.

" } }, + "EventsConfiguration": { + "base": "

The configuration that allows a bot to receive outgoing events. Can be either an HTTPS endpoint or a Lambda function ARN.

", + "refs": { + "GetEventsConfigurationResponse$EventsConfiguration": "

The events configuration details.

", + "PutEventsConfigurationResponse$EventsConfiguration": null + } + }, "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. For example, when a user tries to create an account from an unsupported Region.

", "refs": { } }, @@ -383,6 +436,26 @@ "refs": { } }, + "GetBotRequest": { + "base": null, + "refs": { + } + }, + "GetBotResponse": { + "base": null, + "refs": { + } + }, + "GetEventsConfigurationRequest": { + "base": null, + "refs": { + } + }, + "GetEventsConfigurationResponse": { + "base": null, + "refs": { + } + }, "GetGlobalSettingsResponse": { "base": null, "refs": { @@ -508,6 +581,8 @@ "base": null, "refs": { "Account$CreatedTimestamp": "

The Amazon Chime account creation timestamp, in ISO 8601 format.

", + "Bot$CreatedTimestamp": "

The bot creation timestamp, in ISO 8601 format.

", + "Bot$UpdatedTimestamp": "

The updated bot timestamp, in ISO 8601 format.

", "PhoneNumber$CreatedTimestamp": "

The phone number creation timestamp, in ISO 8601 format.

", "PhoneNumber$UpdatedTimestamp": "

The updated phone number timestamp, in ISO 8601 format.

", "PhoneNumber$DeletionTimestamp": "

The deleted phone number timestamp, in ISO 8601 format.

", @@ -547,6 +622,16 @@ "refs": { } }, + "ListBotsRequest": { + "base": null, + "refs": { + } + }, + "ListBotsResponse": { + "base": null, + "refs": { + } + }, "ListPhoneNumberOrdersRequest": { "base": null, "refs": { @@ -614,7 +699,11 @@ "BatchSuspendUserRequest$AccountId": "

The Amazon Chime account ID.

", "BatchUnsuspendUserRequest$AccountId": "

The Amazon Chime account ID.

", "BatchUpdateUserRequest$AccountId": "

The Amazon Chime account ID.

", + "CreateBotRequest$AccountId": "

The Amazon Chime account ID.

", + "CreateBotRequest$Domain": "

The domain of the Amazon Chime Enterprise account.

", "DeleteAccountRequest$AccountId": "

The Amazon Chime account ID.

", + "DeleteEventsConfigurationRequest$AccountId": "

The Amazon Chime account ID.

", + "DeleteEventsConfigurationRequest$BotId": "

The bot ID.

", "DeleteVoiceConnectorOriginationRequest$VoiceConnectorId": "

The Amazon Chime Voice Connector ID.

", "DeleteVoiceConnectorRequest$VoiceConnectorId": "

The Amazon Chime Voice Connector ID.

", "DeleteVoiceConnectorTerminationCredentialsRequest$VoiceConnectorId": "

The Amazon Chime Voice Connector ID.

", @@ -622,6 +711,10 @@ "DisassociatePhoneNumbersFromVoiceConnectorRequest$VoiceConnectorId": "

The Amazon Chime Voice Connector ID.

", "GetAccountRequest$AccountId": "

The Amazon Chime account ID.

", "GetAccountSettingsRequest$AccountId": "

The Amazon Chime account ID.

", + "GetBotRequest$AccountId": "

The Amazon Chime account ID.

", + "GetBotRequest$BotId": "

The bot ID.

", + "GetEventsConfigurationRequest$AccountId": "

The Amazon Chime account ID.

", + "GetEventsConfigurationRequest$BotId": "

The bot ID.

", "GetUserRequest$AccountId": "

The Amazon Chime account ID.

", "GetUserRequest$UserId": "

The user ID.

", "GetVoiceConnectorOriginationRequest$VoiceConnectorId": "

The Amazon Chime Voice Connector ID.

", @@ -629,19 +722,26 @@ "GetVoiceConnectorTerminationHealthRequest$VoiceConnectorId": "

The Amazon Chime Voice Connector ID.

", "GetVoiceConnectorTerminationRequest$VoiceConnectorId": "

The Amazon Chime Voice Connector ID.

", "InviteUsersRequest$AccountId": "

The Amazon Chime account ID.

", + "ListBotsRequest$AccountId": "

The Amazon Chime account ID.

", "ListUsersRequest$AccountId": "

The Amazon Chime account ID.

", "ListVoiceConnectorTerminationCredentialsRequest$VoiceConnectorId": "

The Amazon Chime Voice Connector ID.

", "LogoutUserRequest$AccountId": "

The Amazon Chime account ID.

", "LogoutUserRequest$UserId": "

The user ID.

", "PhoneNumberError$PhoneNumberId": "

The phone number ID for which the action failed.

", + "PutEventsConfigurationRequest$AccountId": "

The Amazon Chime account ID.

", + "PutEventsConfigurationRequest$BotId": "

The bot ID.

", "PutVoiceConnectorOriginationRequest$VoiceConnectorId": "

The Amazon Chime Voice Connector ID.

", "PutVoiceConnectorTerminationCredentialsRequest$VoiceConnectorId": "

The Amazon Chime Voice Connector ID.

", "PutVoiceConnectorTerminationRequest$VoiceConnectorId": "

The Amazon Chime Voice Connector ID.

", + "RegenerateSecurityTokenRequest$AccountId": "

The Amazon Chime account ID.

", + "RegenerateSecurityTokenRequest$BotId": "

The bot ID.

", "ResetPersonalPINRequest$AccountId": "

The Amazon Chime account ID.

", "ResetPersonalPINRequest$UserId": "

The user ID.

", "RestorePhoneNumberRequest$PhoneNumberId": "

The phone number.

", "UpdateAccountRequest$AccountId": "

The Amazon Chime account ID.

", "UpdateAccountSettingsRequest$AccountId": "

The Amazon Chime account ID.

", + "UpdateBotRequest$AccountId": "

The Amazon Chime account ID.

", + "UpdateBotRequest$BotId": "

The bot ID.

", "UpdatePhoneNumberRequestItem$PhoneNumberId": "

The phone number ID to update.

", "UpdateUserRequest$AccountId": "

The Amazon Chime account ID.

", "UpdateUserRequest$UserId": "

The user ID.

", @@ -666,12 +766,14 @@ "NullableBoolean": { "base": null, "refs": { + "Bot$Disabled": "

When true, the bot is stopped from running in your account.

", "PhoneNumberCapabilities$InboundCall": "

Allows or denies inbound calling for the specified phone number.

", "PhoneNumberCapabilities$OutboundCall": "

Allows or denies outbound calling for the specified phone number.

", "PhoneNumberCapabilities$InboundSMS": "

Allows or denies inbound SMS messaging for the specified phone number.

", "PhoneNumberCapabilities$OutboundSMS": "

Allows or denies outbound SMS messaging for the specified phone number.

", "PhoneNumberCapabilities$InboundMMS": "

Allows or denies inbound MMS messaging for the specified phone number.

", - "PhoneNumberCapabilities$OutboundMMS": "

Allows or denies outbound MMS messaging for the specified phone number.

" + "PhoneNumberCapabilities$OutboundMMS": "

Allows or denies outbound MMS messaging for the specified phone number.

", + "UpdateBotRequest$Disabled": "

When true, stops the specified bot from running in your account.

" } }, "OrderedPhoneNumber": { @@ -842,6 +944,16 @@ "ListUsersRequest$MaxResults": "

The maximum number of results to return in a single call. Defaults to 100.

" } }, + "PutEventsConfigurationRequest": { + "base": null, + "refs": { + } + }, + "PutEventsConfigurationResponse": { + "base": null, + "refs": { + } + }, "PutVoiceConnectorOriginationRequest": { "base": null, "refs": { @@ -867,6 +979,16 @@ "refs": { } }, + "RegenerateSecurityTokenRequest": { + "base": null, + "refs": { + } + }, + "RegenerateSecurityTokenResponse": { + "base": null, + "refs": { + } + }, "RegistrationStatus": { "base": null, "refs": { @@ -883,6 +1005,11 @@ "refs": { } }, + "ResourceLimitExceededException": { + "base": "

The request exceeds the resource limit.

", + "refs": { + } + }, "RestorePhoneNumberRequest": { "base": null, "refs": { @@ -896,6 +1023,7 @@ "ResultMax": { "base": null, "refs": { + "ListBotsRequest$MaxResults": "

The maximum number of results to return in a single call. Default is 10.

", "ListPhoneNumberOrdersRequest$MaxResults": "

The maximum number of results to return in a single call.

", "ListPhoneNumbersRequest$MaxResults": "

The maximum number of results to return in a single call.

", "ListVoiceConnectorsRequest$MaxResults": "

The maximum number of results to return in a single call.

" @@ -914,8 +1042,16 @@ "SensitiveString": { "base": null, "refs": { + "Bot$DisplayName": "

The bot display name.

", + "Bot$BotEmail": "

The bot email address.

", + "Bot$SecurityToken": "

The security token used to authenticate Amazon Chime with the outgoing event endpoint.

", + "CreateBotRequest$DisplayName": "

The bot display name.

", "Credential$Username": "

The RFC2617 compliant user name associated with the SIP credentials, in US-ASCII format.

", "Credential$Password": "

The RFC2617 compliant password associated with the SIP credentials, in US-ASCII format.

", + "EventsConfiguration$OutboundEventsHTTPSEndpoint": "

HTTPS endpoint that allows a bot to receive outgoing events.

", + "EventsConfiguration$LambdaFunctionArn": "

Lambda function ARN that allows a bot to receive outgoing events.

", + "PutEventsConfigurationRequest$OutboundEventsHTTPSEndpoint": "

HTTPS endpoint that allows the bot to receive outgoing events.

", + "PutEventsConfigurationRequest$LambdaFunctionArn": "

Lambda function ARN that allows the bot to receive outgoing events.

", "SensitiveStringList$member": null, "User$PrimaryProvisionedNumber": "

The primary phone number associated with the user.

", "User$DisplayName": "

The display name of the user.

" @@ -947,11 +1083,14 @@ "AssociatePhoneNumberWithUserRequest$AccountId": "

The Amazon Chime account ID.

", "AssociatePhoneNumberWithUserRequest$UserId": "

The user ID.

", "BadRequestException$Message": null, + "Bot$BotId": "

The bot ID.

", + "Bot$UserId": "

The unique ID for the bot user.

", "BusinessCallingSettings$CdrBucket": "

The Amazon S3 bucket designated for call detail record storage.

", "ConflictException$Message": null, "DeletePhoneNumberRequest$PhoneNumberId": "

The phone number ID.

", "DisassociatePhoneNumberFromUserRequest$AccountId": "

The Amazon Chime account ID.

", "DisassociatePhoneNumberFromUserRequest$UserId": "

The user ID.

", + "EventsConfiguration$BotId": "

The bot ID.

", "ForbiddenException$Message": null, "GetPhoneNumberRequest$PhoneNumberId": "

The phone number ID.

", "GetUserSettingsRequest$AccountId": "

The Amazon Chime account ID.

", @@ -959,6 +1098,8 @@ "Invite$InviteId": "

The invite ID.

", "ListAccountsRequest$NextToken": "

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

", "ListAccountsResponse$NextToken": "

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

", + "ListBotsRequest$NextToken": "

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

", + "ListBotsResponse$NextToken": "

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

", "ListPhoneNumberOrdersRequest$NextToken": "

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

", "ListPhoneNumberOrdersResponse$NextToken": "

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

", "ListPhoneNumbersRequest$FilterValue": "

The value to use for the filter.

", @@ -974,6 +1115,7 @@ "PhoneNumber$PhoneNumberId": "

The phone number ID.

", "PhoneNumberAssociation$Value": "

Contains the ID for the entity specified in Name.

", "PhoneNumberError$ErrorMessage": "

The error message.

", + "ResourceLimitExceededException$Message": null, "SearchAvailablePhoneNumbersRequest$AreaCode": "

The area code used to filter results.

", "SearchAvailablePhoneNumbersRequest$City": "

The city used to filter results.

", "SearchAvailablePhoneNumbersRequest$Country": "

The country used to filter results.

", @@ -1058,6 +1200,16 @@ "refs": { } }, + "UpdateBotRequest": { + "base": null, + "refs": { + } + }, + "UpdateBotResponse": { + "base": null, + "refs": { + } + }, "UpdateGlobalSettingsRequest": { "base": null, "refs": { diff --git a/models/apis/comprehend/2017-11-27/api-2.json b/models/apis/comprehend/2017-11-27/api-2.json index 4cf6d9839f5..d914d709197 100644 --- a/models/apis/comprehend/2017-11-27/api-2.json +++ b/models/apis/comprehend/2017-11-27/api-2.json @@ -928,7 +928,8 @@ "idempotencyToken":true }, "LanguageCode":{"shape":"LanguageCode"}, - "VolumeKmsKeyId":{"shape":"KmsKeyId"} + "VolumeKmsKeyId":{"shape":"KmsKeyId"}, + "VpcConfig":{"shape":"VpcConfig"} } }, "CreateDocumentClassifierResponse":{ @@ -955,7 +956,8 @@ "idempotencyToken":true }, "LanguageCode":{"shape":"LanguageCode"}, - "VolumeKmsKeyId":{"shape":"KmsKeyId"} + "VolumeKmsKeyId":{"shape":"KmsKeyId"}, + "VpcConfig":{"shape":"VpcConfig"} } }, "CreateEntityRecognizerResponse":{ @@ -1196,7 +1198,8 @@ "InputDataConfig":{"shape":"InputDataConfig"}, "OutputDataConfig":{"shape":"OutputDataConfig"}, "DataAccessRoleArn":{"shape":"IamRoleArn"}, - "VolumeKmsKeyId":{"shape":"KmsKeyId"} + "VolumeKmsKeyId":{"shape":"KmsKeyId"}, + "VpcConfig":{"shape":"VpcConfig"} } }, "DocumentClassificationJobPropertiesList":{ @@ -1245,7 +1248,8 @@ "OutputDataConfig":{"shape":"DocumentClassifierOutputDataConfig"}, "ClassifierMetadata":{"shape":"ClassifierMetadata"}, "DataAccessRoleArn":{"shape":"IamRoleArn"}, - "VolumeKmsKeyId":{"shape":"KmsKeyId"} + "VolumeKmsKeyId":{"shape":"KmsKeyId"}, + "VpcConfig":{"shape":"VpcConfig"} } }, "DocumentClassifierPropertiesList":{ @@ -1280,7 +1284,8 @@ "InputDataConfig":{"shape":"InputDataConfig"}, "OutputDataConfig":{"shape":"OutputDataConfig"}, "DataAccessRoleArn":{"shape":"IamRoleArn"}, - "VolumeKmsKeyId":{"shape":"KmsKeyId"} + "VolumeKmsKeyId":{"shape":"KmsKeyId"}, + "VpcConfig":{"shape":"VpcConfig"} } }, "DominantLanguageDetectionJobPropertiesList":{ @@ -1311,7 +1316,8 @@ "OutputDataConfig":{"shape":"OutputDataConfig"}, "LanguageCode":{"shape":"LanguageCode"}, "DataAccessRoleArn":{"shape":"IamRoleArn"}, - "VolumeKmsKeyId":{"shape":"KmsKeyId"} + "VolumeKmsKeyId":{"shape":"KmsKeyId"}, + "VpcConfig":{"shape":"VpcConfig"} } }, "EntitiesDetectionJobPropertiesList":{ @@ -1416,7 +1422,8 @@ "InputDataConfig":{"shape":"EntityRecognizerInputDataConfig"}, "RecognizerMetadata":{"shape":"EntityRecognizerMetadata"}, "DataAccessRoleArn":{"shape":"IamRoleArn"}, - "VolumeKmsKeyId":{"shape":"KmsKeyId"} + "VolumeKmsKeyId":{"shape":"KmsKeyId"}, + "VpcConfig":{"shape":"VpcConfig"} } }, "EntityRecognizerPropertiesList":{ @@ -1559,7 +1566,8 @@ "OutputDataConfig":{"shape":"OutputDataConfig"}, "LanguageCode":{"shape":"LanguageCode"}, "DataAccessRoleArn":{"shape":"IamRoleArn"}, - "VolumeKmsKeyId":{"shape":"KmsKeyId"} + "VolumeKmsKeyId":{"shape":"KmsKeyId"}, + "VpcConfig":{"shape":"VpcConfig"} } }, "KeyPhrasesDetectionJobPropertiesList":{ @@ -1851,6 +1859,18 @@ "max":1024, "pattern":"s3://[a-z0-9][\\.\\-a-z0-9]{1,61}[a-z0-9](/.*)?" }, + "SecurityGroupId":{ + "type":"string", + "max":32, + "min":1, + "pattern":"[-0-9a-zA-Z]+" + }, + "SecurityGroupIds":{ + "type":"list", + "member":{"shape":"SecurityGroupId"}, + "max":5, + "min":1 + }, "SentimentDetectionJobFilter":{ "type":"structure", "members":{ @@ -1873,7 +1893,8 @@ "OutputDataConfig":{"shape":"OutputDataConfig"}, "LanguageCode":{"shape":"LanguageCode"}, "DataAccessRoleArn":{"shape":"IamRoleArn"}, - "VolumeKmsKeyId":{"shape":"KmsKeyId"} + "VolumeKmsKeyId":{"shape":"KmsKeyId"}, + "VpcConfig":{"shape":"VpcConfig"} } }, "SentimentDetectionJobPropertiesList":{ @@ -1916,7 +1937,8 @@ "shape":"ClientRequestTokenString", "idempotencyToken":true }, - "VolumeKmsKeyId":{"shape":"KmsKeyId"} + "VolumeKmsKeyId":{"shape":"KmsKeyId"}, + "VpcConfig":{"shape":"VpcConfig"} } }, "StartDocumentClassificationJobResponse":{ @@ -1942,7 +1964,8 @@ "shape":"ClientRequestTokenString", "idempotencyToken":true }, - "VolumeKmsKeyId":{"shape":"KmsKeyId"} + "VolumeKmsKeyId":{"shape":"KmsKeyId"}, + "VpcConfig":{"shape":"VpcConfig"} } }, "StartDominantLanguageDetectionJobResponse":{ @@ -1971,7 +1994,8 @@ "shape":"ClientRequestTokenString", "idempotencyToken":true }, - "VolumeKmsKeyId":{"shape":"KmsKeyId"} + "VolumeKmsKeyId":{"shape":"KmsKeyId"}, + "VpcConfig":{"shape":"VpcConfig"} } }, "StartEntitiesDetectionJobResponse":{ @@ -1999,7 +2023,8 @@ "shape":"ClientRequestTokenString", "idempotencyToken":true }, - "VolumeKmsKeyId":{"shape":"KmsKeyId"} + "VolumeKmsKeyId":{"shape":"KmsKeyId"}, + "VpcConfig":{"shape":"VpcConfig"} } }, "StartKeyPhrasesDetectionJobResponse":{ @@ -2027,7 +2052,8 @@ "shape":"ClientRequestTokenString", "idempotencyToken":true }, - "VolumeKmsKeyId":{"shape":"KmsKeyId"} + "VolumeKmsKeyId":{"shape":"KmsKeyId"}, + "VpcConfig":{"shape":"VpcConfig"} } }, "StartSentimentDetectionJobResponse":{ @@ -2054,7 +2080,8 @@ "shape":"ClientRequestTokenString", "idempotencyToken":true }, - "VolumeKmsKeyId":{"shape":"KmsKeyId"} + "VolumeKmsKeyId":{"shape":"KmsKeyId"}, + "VpcConfig":{"shape":"VpcConfig"} } }, "StartTopicsDetectionJobResponse":{ @@ -2152,6 +2179,18 @@ "type":"list", "member":{"shape":"String"} }, + "SubnetId":{ + "type":"string", + "max":32, + "min":1, + "pattern":"[-0-9a-zA-Z]+" + }, + "Subnets":{ + "type":"list", + "member":{"shape":"SubnetId"}, + "max":16, + "min":1 + }, "SyntaxLanguageCode":{ "type":"string", "enum":[ @@ -2266,7 +2305,8 @@ "OutputDataConfig":{"shape":"OutputDataConfig"}, "NumberOfTopics":{"shape":"Integer"}, "DataAccessRoleArn":{"shape":"IamRoleArn"}, - "VolumeKmsKeyId":{"shape":"KmsKeyId"} + "VolumeKmsKeyId":{"shape":"KmsKeyId"}, + "VpcConfig":{"shape":"VpcConfig"} } }, "TopicsDetectionJobPropertiesList":{ @@ -2295,6 +2335,17 @@ "type":"structure", "members":{ } + }, + "VpcConfig":{ + "type":"structure", + "required":[ + "SecurityGroupIds", + "Subnets" + ], + "members":{ + "SecurityGroupIds":{"shape":"SecurityGroupIds"}, + "Subnets":{"shape":"Subnets"} + } } } } diff --git a/models/apis/comprehend/2017-11-27/docs-2.json b/models/apis/comprehend/2017-11-27/docs-2.json index e95fbe289d6..863790504a3 100644 --- a/models/apis/comprehend/2017-11-27/docs-2.json +++ b/models/apis/comprehend/2017-11-27/docs-2.json @@ -1103,6 +1103,18 @@ "OutputDataConfig$S3Uri": "

When you use the OutputDataConfig object with asynchronous operations, you specify the Amazon S3 location where you want to write the output data. The URI must be in the same region as the API endpoint that you are calling. The location is used as the prefix for the actual location of the output file.

When the topic detection job is finished, the service creates an output file in a directory specific to the job. The S3Uri field contains the location of the output file, called output.tar.gz. It is a compressed archive that contains the ouput of the operation.

" } }, + "SecurityGroupId": { + "base": null, + "refs": { + "SecurityGroupIds$member": null + } + }, + "SecurityGroupIds": { + "base": null, + "refs": { + "VpcConfig$SecurityGroupIds": "

The ID number for a security group on an instance of your private VPC. Security groups on your VPC function serve as a virtual firewall to control inbound and outbound traffic and provides security for the resources that you’ll be accessing on the VPC. This ID number is preceded by \"sg-\", for instance: \"sg-03b388029b0a285ea\". For more information, see Security Groups for your VPC.

" + } + }, "SentimentDetectionJobFilter": { "base": "

Provides information for filtering a list of dominant language detection jobs. For more information, see the operation.

", "refs": { @@ -1315,6 +1327,18 @@ "BatchDetectSyntaxRequest$TextList": "

A list containing the text of the input documents. The list can contain a maximum of 25 documents. Each document must contain fewer that 5,000 bytes of UTF-8 encoded characters.

" } }, + "SubnetId": { + "base": null, + "refs": { + "Subnets$member": null + } + }, + "Subnets": { + "base": null, + "refs": { + "VpcConfig$Subnets": "

The ID for each subnet being used in your private VPC. This subnet is a subset of the a range of IPv4 addresses used by the VPC and is specific to a given availability zone in the VPC’s region. This ID number is preceded by \"subnet-\", for instance: \"subnet-04ccf456919e69055\". For more information, see VPCs and Subnets.

" + } + }, "SyntaxLanguageCode": { "base": null, "refs": { @@ -1466,6 +1490,27 @@ "base": null, "refs": { } + }, + "VpcConfig": { + "base": "

Configuration parameters for an optional private Virtual Private Cloud (VPC) containing the resources you are using for the job. For For more information, see Amazon VPC.

", + "refs": { + "CreateDocumentClassifierRequest$VpcConfig": "

Configuration parameters for an optional private Virtual Private Cloud (VPC) containing the resources you are using for your custom classifier. For more information, see Amazon VPC.

", + "CreateEntityRecognizerRequest$VpcConfig": "

Configuration parameters for an optional private Virtual Private Cloud (VPC) containing the resources you are using for your custom entity recognizer. For more information, see Amazon VPC.

", + "DocumentClassificationJobProperties$VpcConfig": "

Configuration parameters for a private Virtual Private Cloud (VPC) containing the resources you are using for your document classification job. For more information, see Amazon VPC.

", + "DocumentClassifierProperties$VpcConfig": "

Configuration parameters for a private Virtual Private Cloud (VPC) containing the resources you are using for your custom classifier. For more information, see Amazon VPC.

", + "DominantLanguageDetectionJobProperties$VpcConfig": "

Configuration parameters for a private Virtual Private Cloud (VPC) containing the resources you are using for your dominant language detection job. For more information, see Amazon VPC.

", + "EntitiesDetectionJobProperties$VpcConfig": "

Configuration parameters for a private Virtual Private Cloud (VPC) containing the resources you are using for your entity detection job. For more information, see Amazon VPC.

", + "EntityRecognizerProperties$VpcConfig": "

Configuration parameters for a private Virtual Private Cloud (VPC) containing the resources you are using for your custom entity recognizer. For more information, see Amazon VPC.

", + "KeyPhrasesDetectionJobProperties$VpcConfig": "

Configuration parameters for a private Virtual Private Cloud (VPC) containing the resources you are using for your key phrases detection job. For more information, see Amazon VPC.

", + "SentimentDetectionJobProperties$VpcConfig": "

Configuration parameters for a private Virtual Private Cloud (VPC) containing the resources you are using for your sentiment detection job. For more information, see Amazon VPC.

", + "StartDocumentClassificationJobRequest$VpcConfig": "

Configuration parameters for an optional private Virtual Private Cloud (VPC) containing the resources you are using for your document classification job. For more information, see Amazon VPC.

", + "StartDominantLanguageDetectionJobRequest$VpcConfig": "

Configuration parameters for an optional private Virtual Private Cloud (VPC) containing the resources you are using for your dominant language detection job. For more information, see Amazon VPC.

", + "StartEntitiesDetectionJobRequest$VpcConfig": "

Configuration parameters for an optional private Virtual Private Cloud (VPC) containing the resources you are using for your entity detection job. For more information, see Amazon VPC.

", + "StartKeyPhrasesDetectionJobRequest$VpcConfig": "

Configuration parameters for an optional private Virtual Private Cloud (VPC) containing the resources you are using for your key phrases detection job. For more information, see Amazon VPC.

", + "StartSentimentDetectionJobRequest$VpcConfig": "

Configuration parameters for an optional private Virtual Private Cloud (VPC) containing the resources you are using for your sentiment detection job. For more information, see Amazon VPC.

", + "StartTopicsDetectionJobRequest$VpcConfig": "

Configuration parameters for an optional private Virtual Private Cloud (VPC) containing the resources you are using for your topic detection job. For more information, see Amazon VPC.

", + "TopicsDetectionJobProperties$VpcConfig": "

Configuration parameters for a private Virtual Private Cloud (VPC) containing the resources you are using for your topic detection job. For more information, see Amazon VPC.

" + } } } } diff --git a/models/apis/comprehend/2017-11-27/paginators-1.json b/models/apis/comprehend/2017-11-27/paginators-1.json index 04005c5e5da..0a98c5b4e9f 100644 --- a/models/apis/comprehend/2017-11-27/paginators-1.json +++ b/models/apis/comprehend/2017-11-27/paginators-1.json @@ -1,5 +1,15 @@ { "pagination": { + "ListDocumentClassificationJobs": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "MaxResults" + }, + "ListDocumentClassifiers": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "MaxResults" + }, "ListDominantLanguageDetectionJobs": { "input_token": "NextToken", "output_token": "NextToken", @@ -10,6 +20,11 @@ "output_token": "NextToken", "limit_key": "MaxResults" }, + "ListEntityRecognizers": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "MaxResults" + }, "ListKeyPhrasesDetectionJobs": { "input_token": "NextToken", "output_token": "NextToken", diff --git a/models/apis/ec2/2016-11-15/api-2.json b/models/apis/ec2/2016-11-15/api-2.json index 8abc53a3d0e..45ef8003a2e 100755 --- a/models/apis/ec2/2016-11-15/api-2.json +++ b/models/apis/ec2/2016-11-15/api-2.json @@ -7946,6 +7946,11 @@ } } }, + "DescribeDhcpOptionsMaxResults":{ + "type":"integer", + "max":1000, + "min":5 + }, "DescribeDhcpOptionsRequest":{ "type":"structure", "members":{ @@ -7960,7 +7965,9 @@ "DryRun":{ "shape":"Boolean", "locationName":"dryRun" - } + }, + "NextToken":{"shape":"String"}, + "MaxResults":{"shape":"DescribeDhcpOptionsMaxResults"} } }, "DescribeDhcpOptionsResult":{ @@ -7969,6 +7976,10 @@ "DhcpOptions":{ "shape":"DhcpOptionsList", "locationName":"dhcpOptionsSet" + }, + "NextToken":{ + "shape":"String", + "locationName":"nextToken" } } }, @@ -9750,6 +9761,11 @@ } } }, + "DescribeSubnetsMaxResults":{ + "type":"integer", + "max":1000, + "min":5 + }, "DescribeSubnetsRequest":{ "type":"structure", "members":{ @@ -9764,7 +9780,9 @@ "DryRun":{ "shape":"Boolean", "locationName":"dryRun" - } + }, + "NextToken":{"shape":"String"}, + "MaxResults":{"shape":"DescribeSubnetsMaxResults"} } }, "DescribeSubnetsResult":{ @@ -9773,6 +9791,10 @@ "Subnets":{ "shape":"SubnetList", "locationName":"subnetSet" + }, + "NextToken":{ + "shape":"String", + "locationName":"nextToken" } } }, diff --git a/models/apis/ec2/2016-11-15/docs-2.json b/models/apis/ec2/2016-11-15/docs-2.json index 088e058103a..d4ed11ee566 100755 --- a/models/apis/ec2/2016-11-15/docs-2.json +++ b/models/apis/ec2/2016-11-15/docs-2.json @@ -5,9 +5,9 @@ "AcceptReservedInstancesExchangeQuote": "

Accepts the Convertible Reserved Instance exchange quote described in the GetReservedInstancesExchangeQuote call.

", "AcceptTransitGatewayVpcAttachment": "

Accepts a request to attach a VPC to a transit gateway.

The VPC attachment must be in the pendingAcceptance state. Use DescribeTransitGatewayVpcAttachments to view your pending VPC attachment requests. Use RejectTransitGatewayVpcAttachment to reject a VPC attachment request.

", "AcceptVpcEndpointConnections": "

Accepts one or more interface VPC endpoint connection requests to your VPC endpoint service.

", - "AcceptVpcPeeringConnection": "

Accept a VPC peering connection request. To accept a request, the VPC peering connection must be in the pending-acceptance state, and you must be the owner of the peer VPC. Use DescribeVpcPeeringConnections to view your outstanding VPC peering connection requests.

For an inter-region VPC peering connection request, you must accept the VPC peering connection in the region of the accepter VPC.

", + "AcceptVpcPeeringConnection": "

Accept a VPC peering connection request. To accept a request, the VPC peering connection must be in the pending-acceptance state, and you must be the owner of the peer VPC. Use DescribeVpcPeeringConnections to view your outstanding VPC peering connection requests.

For an inter-Region VPC peering connection request, you must accept the VPC peering connection in the Region of the accepter VPC.

", "AdvertiseByoipCidr": "

Advertises an IPv4 address range that is provisioned for use with your AWS resources through bring your own IP addresses (BYOIP).

You can perform this operation at most once every 10 seconds, even if you specify different address ranges each time.

We recommend that you stop advertising the BYOIP CIDR from other locations when you advertise it from AWS. To minimize down time, you can configure your AWS resources to use an address from a BYOIP CIDR before it is advertised, and then simultaneously stop advertising it from the current location and start advertising it through AWS.

It can take a few minutes before traffic to the specified addresses starts routing to AWS because of BGP propagation delays.

To stop advertising the BYOIP CIDR, use WithdrawByoipCidr.

", - "AllocateAddress": "

Allocates an Elastic IP address to your AWS account. After you allocate the Elastic IP address you can associate it with an instance or network interface. After you release an Elastic IP address, it is released to the IP address pool and can be allocated to a different AWS account.

You can allocate an Elastic IP address from an address pool owned by AWS or from an address pool created from a public IPv4 address range that you have brought to AWS for use with your AWS resources using bring your own IP addresses (BYOIP). For more information, see Bring Your Own IP Addresses (BYOIP) in the Amazon Elastic Compute Cloud User Guide.

[EC2-VPC] If you release an Elastic IP address, you might be able to recover it. You cannot recover an Elastic IP address that you released after it is allocated to another AWS account. You cannot recover an Elastic IP address for EC2-Classic. To attempt to recover an Elastic IP address that you released, specify it in this operation.

An Elastic IP address is for use either in the EC2-Classic platform or in a VPC. By default, you can allocate 5 Elastic IP addresses for EC2-Classic per region and 5 Elastic IP addresses for EC2-VPC per region.

For more information, see Elastic IP Addresses in the Amazon Elastic Compute Cloud User Guide.

", + "AllocateAddress": "

Allocates an Elastic IP address to your AWS account. After you allocate the Elastic IP address you can associate it with an instance or network interface. After you release an Elastic IP address, it is released to the IP address pool and can be allocated to a different AWS account.

You can allocate an Elastic IP address from an address pool owned by AWS or from an address pool created from a public IPv4 address range that you have brought to AWS for use with your AWS resources using bring your own IP addresses (BYOIP). For more information, see Bring Your Own IP Addresses (BYOIP) in the Amazon Elastic Compute Cloud User Guide.

[EC2-VPC] If you release an Elastic IP address, you might be able to recover it. You cannot recover an Elastic IP address that you released after it is allocated to another AWS account. You cannot recover an Elastic IP address for EC2-Classic. To attempt to recover an Elastic IP address that you released, specify it in this operation.

An Elastic IP address is for use either in the EC2-Classic platform or in a VPC. By default, you can allocate 5 Elastic IP addresses for EC2-Classic per Region and 5 Elastic IP addresses for EC2-VPC per Region.

For more information, see Elastic IP Addresses in the Amazon Elastic Compute Cloud User Guide.

", "AllocateHosts": "

Allocates a Dedicated Host to your account. At a minimum, specify the instance size type, Availability Zone, and quantity of hosts to allocate.

", "ApplySecurityGroupsToClientVpnTargetNetwork": "

Applies a security group to the association between the target network and the Client VPN endpoint. This action replaces the existing security groups with the specified security groups.

", "AssignIpv6Addresses": "

Assigns one or more IPv6 addresses to the specified network interface. You can specify one or more specific IPv6 addresses, or you can specify the number of IPv6 addresses to be automatically assigned from within the subnet's IPv6 CIDR block range. You can assign as many IPv6 addresses to a network interface as you can assign private IPv4 addresses, and the limit varies per instance type. For information, see IP Addresses Per Network Interface Per Instance Type in the Amazon Elastic Compute Cloud User Guide.

", @@ -38,16 +38,16 @@ "CancelSpotFleetRequests": "

Cancels the specified Spot Fleet requests.

After you cancel a Spot Fleet request, the Spot Fleet launches no new Spot Instances. You must specify whether the Spot Fleet should also terminate its Spot Instances. If you terminate the instances, the Spot Fleet request enters the cancelled_terminating state. Otherwise, the Spot Fleet request enters the cancelled_running state and the instances continue to run until they are interrupted or you terminate them manually.

", "CancelSpotInstanceRequests": "

Cancels one or more Spot Instance requests.

Canceling a Spot Instance request does not terminate running Spot Instances associated with the request.

", "ConfirmProductInstance": "

Determines whether a product code is associated with an instance. This action can only be used by the owner of the product code. It is useful when a product code owner must verify whether another user's instance is eligible for support.

", - "CopyFpgaImage": "

Copies the specified Amazon FPGA Image (AFI) to the current region.

", - "CopyImage": "

Initiates the copy of an AMI from the specified source region to the current region. You specify the destination region by using its endpoint when making the request.

Copies of encrypted backing snapshots for the AMI are encrypted. Copies of unencrypted backing snapshots remain unencrypted, unless you set Encrypted during the copy operation. You cannot create an unencrypted copy of an encrypted backing snapshot.

For more information about the prerequisites and limits when copying an AMI, see Copying an AMI in the Amazon Elastic Compute Cloud User Guide.

", + "CopyFpgaImage": "

Copies the specified Amazon FPGA Image (AFI) to the current Region.

", + "CopyImage": "

Initiates the copy of an AMI from the specified source Region to the current Region. You specify the destination Region by using its endpoint when making the request.

Copies of encrypted backing snapshots for the AMI are encrypted. Copies of unencrypted backing snapshots remain unencrypted, unless you set Encrypted during the copy operation. You cannot create an unencrypted copy of an encrypted backing snapshot.

For more information about the prerequisites and limits when copying an AMI, see Copying an AMI in the Amazon Elastic Compute Cloud User Guide.

", "CopySnapshot": "

Copies a point-in-time snapshot of an EBS volume and stores it in Amazon S3. You can copy the snapshot within the same Region or from one Region to another. You can use the snapshot to create EBS volumes or Amazon Machine Images (AMIs). The snapshot is copied to the regional endpoint that you send the HTTP request to.

Copies of encrypted EBS snapshots remain encrypted. Copies of unencrypted snapshots remain unencrypted, unless the Encrypted flag is specified during the snapshot copy operation. By default, encrypted snapshot copies use the default AWS Key Management Service (AWS KMS) customer master key (CMK); however, you can specify a non-default CMK with the KmsKeyId parameter.

To copy an encrypted snapshot that has been shared from another account, you must have permissions for the CMK used to encrypt the snapshot.

Snapshots created by copying another snapshot have an arbitrary volume ID that should not be used for any purpose.

For more information, see Copying an Amazon EBS Snapshot in the Amazon Elastic Compute Cloud User Guide.

", "CreateCapacityReservation": "

Creates a new Capacity Reservation with the specified attributes.

Capacity Reservations enable you to reserve capacity for your Amazon EC2 instances in a specific Availability Zone for any duration. This gives you the flexibility to selectively add capacity reservations and still get the Regional RI discounts for that usage. By creating Capacity Reservations, you ensure that you always have access to Amazon EC2 capacity when you need it, for as long as you need it. For more information, see Capacity Reservations in the Amazon Elastic Compute Cloud User Guide.

Your request to create a Capacity Reservation could fail if Amazon EC2 does not have sufficient capacity to fulfill the request. If your request fails due to Amazon EC2 capacity constraints, either try again at a later time, try in a different Availability Zone, or request a smaller capacity reservation. If your application is flexible across instance types and sizes, try to create a Capacity Reservation with different instance attributes.

Your request could also fail if the requested quantity exceeds your On-Demand Instance limit for the selected instance type. If your request fails due to limit constraints, increase your On-Demand Instance limit for the required instance type and try again. For more information about increasing your instance limits, see Amazon EC2 Service Limits in the Amazon Elastic Compute Cloud User Guide.

", "CreateClientVpnEndpoint": "

Creates a Client VPN endpoint. A Client VPN endpoint is the resource you create and configure to enable and manage client VPN sessions. It is the destination endpoint at which all client VPN sessions are terminated.

", "CreateClientVpnRoute": "

Adds a route to a network to a Client VPN endpoint. Each Client VPN endpoint has a route table that describes the available destination network routes. Each route in the route table specifies the path for traffic to specific resources or networks.

", - "CreateCustomerGateway": "

Provides information to AWS about your VPN customer gateway device. The customer gateway is the appliance at your end of the VPN connection. (The device on the AWS side of the VPN connection is the virtual private gateway.) You must provide the Internet-routable IP address of the customer gateway's external interface. The IP address must be static and may be behind a device performing network address translation (NAT).

For devices that use Border Gateway Protocol (BGP), you can also provide the device's BGP Autonomous System Number (ASN). You can use an existing ASN assigned to your network. If you don't have an ASN already, you can use a private ASN (in the 64512 - 65534 range).

Amazon EC2 supports all 2-byte ASN numbers in the range of 1 - 65534, with the exception of 7224, which is reserved in the us-east-1 region, and 9059, which is reserved in the eu-west-1 region.

For more information, see AWS Site-to-Site VPN in the AWS Site-to-Site VPN User Guide.

You cannot create more than one customer gateway with the same VPN type, IP address, and BGP ASN parameter values. If you run an identical request more than one time, the first request creates the customer gateway, and subsequent requests return information about the existing customer gateway. The subsequent requests do not create new customer gateway resources.

", + "CreateCustomerGateway": "

Provides information to AWS about your VPN customer gateway device. The customer gateway is the appliance at your end of the VPN connection. (The device on the AWS side of the VPN connection is the virtual private gateway.) You must provide the Internet-routable IP address of the customer gateway's external interface. The IP address must be static and may be behind a device performing network address translation (NAT).

For devices that use Border Gateway Protocol (BGP), you can also provide the device's BGP Autonomous System Number (ASN). You can use an existing ASN assigned to your network. If you don't have an ASN already, you can use a private ASN (in the 64512 - 65534 range).

Amazon EC2 supports all 2-byte ASN numbers in the range of 1 - 65534, with the exception of 7224, which is reserved in the us-east-1 Region, and 9059, which is reserved in the eu-west-1 Region.

For more information, see AWS Site-to-Site VPN in the AWS Site-to-Site VPN User Guide.

You cannot create more than one customer gateway with the same VPN type, IP address, and BGP ASN parameter values. If you run an identical request more than one time, the first request creates the customer gateway, and subsequent requests return information about the existing customer gateway. The subsequent requests do not create new customer gateway resources.

", "CreateDefaultSubnet": "

Creates a default subnet with a size /20 IPv4 CIDR block in the specified Availability Zone in your default VPC. You can have only one default subnet per Availability Zone. For more information, see Creating a Default Subnet in the Amazon Virtual Private Cloud User Guide.

", "CreateDefaultVpc": "

Creates a default VPC with a size /16 IPv4 CIDR block and a default subnet in each Availability Zone. For more information about the components of a default VPC, see Default VPC and Default Subnets in the Amazon Virtual Private Cloud User Guide. You cannot specify the components of the default VPC yourself.

If you deleted your previous default VPC, you can create a default VPC. You cannot have more than one default VPC per Region.

If your account supports EC2-Classic, you cannot use this action to create a default VPC in a Region that supports EC2-Classic. If you want a default VPC in a Region that supports EC2-Classic, see \"I really want a default VPC for my existing EC2 account. Is that possible?\" in the Default VPCs FAQ.

", - "CreateDhcpOptions": "

Creates a set of DHCP options for your VPC. After creating the set, you must associate it with the VPC, causing all existing and new instances that you launch in the VPC to use this set of DHCP options. The following are the individual DHCP options you can specify. For more information about the options, see RFC 2132.

Your VPC automatically starts out with a set of DHCP options that includes only a DNS server that we provide (AmazonProvidedDNS). If you create a set of options, and if your VPC has an internet gateway, make sure to set the domain-name-servers option either to AmazonProvidedDNS or to a domain name server of your choice. For more information, see DHCP Options Sets in the Amazon Virtual Private Cloud User Guide.

", + "CreateDhcpOptions": "

Creates a set of DHCP options for your VPC. After creating the set, you must associate it with the VPC, causing all existing and new instances that you launch in the VPC to use this set of DHCP options. The following are the individual DHCP options you can specify. For more information about the options, see RFC 2132.

Your VPC automatically starts out with a set of DHCP options that includes only a DNS server that we provide (AmazonProvidedDNS). If you create a set of options, and if your VPC has an internet gateway, make sure to set the domain-name-servers option either to AmazonProvidedDNS or to a domain name server of your choice. For more information, see DHCP Options Sets in the Amazon Virtual Private Cloud User Guide.

", "CreateEgressOnlyInternetGateway": "

[IPv6 only] Creates an egress-only internet gateway for your VPC. An egress-only internet gateway is used to enable outbound communication over IPv6 from instances in your VPC to the internet, and prevents hosts outside of your VPC from initiating an IPv6 connection with your instance.

", "CreateFleet": "

Launches an EC2 Fleet.

You can create a single EC2 Fleet that includes multiple launch specifications that vary by instance type, AMI, Availability Zone, or subnet.

For more information, see Launching an EC2 Fleet in the Amazon Elastic Compute Cloud User Guide.

", "CreateFlowLogs": "

Creates one or more flow logs to capture information about IP traffic for a specific network interface, subnet, or VPC.

Flow log data for a monitored network interface is recorded as flow log records, which are log events consisting of fields that describe the traffic flow. For more information, see Flow Log Records in the Amazon Virtual Private Cloud User Guide.

When publishing to CloudWatch Logs, flow log records are published to a log group, and each network interface has a unique log stream in the log group. When publishing to Amazon S3, flow log records for all of the monitored network interfaces are published to a single log file object that is stored in the specified bucket.

For more information, see VPC Flow Logs in the Amazon Virtual Private Cloud User Guide.

", @@ -55,7 +55,7 @@ "CreateImage": "

Creates an Amazon EBS-backed AMI from an Amazon EBS-backed instance that is either running or stopped.

If you customized your instance with instance store volumes or EBS volumes in addition to the root device volume, the new AMI contains block device mapping information for those volumes. When you launch an instance from this new AMI, the instance automatically launches with those additional volumes.

For more information, see Creating Amazon EBS-Backed Linux AMIs in the Amazon Elastic Compute Cloud User Guide.

", "CreateInstanceExportTask": "

Exports a running or stopped instance to an S3 bucket.

For information about the supported operating systems, image formats, and known limitations for the types of instances you can export, see Exporting an Instance as a VM Using VM Import/Export in the VM Import/Export User Guide.

", "CreateInternetGateway": "

Creates an internet gateway for use with a VPC. After creating the internet gateway, you attach it to a VPC using AttachInternetGateway.

For more information about your VPC and internet gateway, see the Amazon Virtual Private Cloud User Guide.

", - "CreateKeyPair": "

Creates a 2048-bit RSA key pair with the specified name. Amazon EC2 stores the public key and displays the private key for you to save to a file. The private key is returned as an unencrypted PEM encoded PKCS#1 private key. If a key with the specified name already exists, Amazon EC2 returns an error.

You can have up to five thousand key pairs per region.

The key pair returned to you is available only in the region in which you create it. If you prefer, you can create your own key pair using a third-party tool and upload it to any region using ImportKeyPair.

For more information, see Key Pairs in the Amazon Elastic Compute Cloud User Guide.

", + "CreateKeyPair": "

Creates a 2048-bit RSA key pair with the specified name. Amazon EC2 stores the public key and displays the private key for you to save to a file. The private key is returned as an unencrypted PEM encoded PKCS#1 private key. If a key with the specified name already exists, Amazon EC2 returns an error.

You can have up to five thousand key pairs per Region.

The key pair returned to you is available only in the Region in which you create it. If you prefer, you can create your own key pair using a third-party tool and upload it to any Region using ImportKeyPair.

For more information, see Key Pairs in the Amazon Elastic Compute Cloud User Guide.

", "CreateLaunchTemplate": "

Creates a launch template. A launch template contains the parameters to launch an instance. When you launch an instance using RunInstances, you can specify a launch template instead of providing the launch parameters in the request.

", "CreateLaunchTemplateVersion": "

Creates a new version for a launch template. You can specify an existing version of launch template from which to base the new version.

Launch template versions are numbered in the order in which they are created. You cannot specify, change, or replace the numbering of launch template versions.

", "CreateNatGateway": "

Creates a NAT gateway in the specified public subnet. This action creates a network interface in the specified subnet with a private IP address from the IP address range of the subnet. Internet-bound traffic from a private subnet can be routed to the NAT gateway, therefore enabling instances in the private subnet to connect to the internet. For more information, see NAT Gateways in the Amazon Virtual Private Cloud User Guide.

", @@ -127,8 +127,8 @@ "DeregisterImage": "

Deregisters the specified AMI. After you deregister an AMI, it can't be used to launch new instances; however, it doesn't affect any instances that you've already launched from the AMI. You'll continue to incur usage costs for those instances until you terminate them.

When you deregister an Amazon EBS-backed AMI, it doesn't affect the snapshot that was created for the root volume of the instance during the AMI creation process. When you deregister an instance store-backed AMI, it doesn't affect the files that you uploaded to Amazon S3 when you created the AMI.

", "DescribeAccountAttributes": "

Describes attributes of your AWS account. The following are the supported account attributes:

", "DescribeAddresses": "

Describes the specified Elastic IP addresses or all of your Elastic IP addresses.

An Elastic IP address is for use in either the EC2-Classic platform or in a VPC. For more information, see Elastic IP Addresses in the Amazon Elastic Compute Cloud User Guide.

", - "DescribeAggregateIdFormat": "

Describes the longer ID format settings for all resource types in a specific region. This request is useful for performing a quick audit to determine whether a specific region is fully opted in for longer IDs (17-character IDs).

This request only returns information about resource types that support longer IDs.

The following resource types support longer IDs: bundle | conversion-task | customer-gateway | dhcp-options | elastic-ip-allocation | elastic-ip-association | export-task | flow-log | image | import-task | instance | internet-gateway | network-acl | network-acl-association | network-interface | network-interface-attachment | prefix-list | reservation | route-table | route-table-association | security-group | snapshot | subnet | subnet-cidr-block-association | volume | vpc | vpc-cidr-block-association | vpc-endpoint | vpc-peering-connection | vpn-connection | vpn-gateway.

", - "DescribeAvailabilityZones": "

Describes the Availability Zones that are available to you. The results include zones only for the region you're currently using. If there is an event impacting an Availability Zone, you can use this request to view the state and any provided message for that Availability Zone.

For more information, see Regions and Availability Zones in the Amazon Elastic Compute Cloud User Guide.

", + "DescribeAggregateIdFormat": "

Describes the longer ID format settings for all resource types in a specific Region. This request is useful for performing a quick audit to determine whether a specific Region is fully opted in for longer IDs (17-character IDs).

This request only returns information about resource types that support longer IDs.

The following resource types support longer IDs: bundle | conversion-task | customer-gateway | dhcp-options | elastic-ip-allocation | elastic-ip-association | export-task | flow-log | image | import-task | instance | internet-gateway | network-acl | network-acl-association | network-interface | network-interface-attachment | prefix-list | reservation | route-table | route-table-association | security-group | snapshot | subnet | subnet-cidr-block-association | volume | vpc | vpc-cidr-block-association | vpc-endpoint | vpc-peering-connection | vpn-connection | vpn-gateway.

", + "DescribeAvailabilityZones": "

Describes the Availability Zones that are available to you. The results include zones only for the Region you're currently using. If there is an event impacting an Availability Zone, you can use this request to view the state and any provided message for that Availability Zone.

For more information, see Regions and Availability Zones in the Amazon Elastic Compute Cloud User Guide.

", "DescribeBundleTasks": "

Describes the specified bundle tasks or all of your bundle tasks.

Completed bundle tasks are listed for only a limited time. If your bundle task is no longer in the list, you can still register an AMI from it. Just use RegisterImage with the Amazon S3 bucket name and image manifest name you provided to the bundle task.

", "DescribeByoipCidrs": "

Describes the IP address ranges that were specified in calls to ProvisionByoipCidr.

To describe the address pools that were created when you provisioned the address ranges, use DescribePublicIpv4Pools.

", "DescribeCapacityReservations": "

Describes one or more of your Capacity Reservations. The results describe only the Capacity Reservations in the AWS Region that you're currently using.

", @@ -154,10 +154,10 @@ "DescribeHostReservations": "

Describes reservations that are associated with Dedicated Hosts in your account.

", "DescribeHosts": "

Describes the specified Dedicated Hosts or all your Dedicated Hosts.

The results describe only the Dedicated Hosts in the Region you're currently using. All listed instances consume capacity on your Dedicated Host. Dedicated Hosts that have recently been released are listed with the state released.

", "DescribeIamInstanceProfileAssociations": "

Describes your IAM instance profile associations.

", - "DescribeIdFormat": "

Describes the ID format settings for your resources on a per-region basis, for example, to view which resource types are enabled for longer IDs. This request only returns information about resource types whose ID formats can be modified; it does not return information about other resource types.

The following resource types support longer IDs: bundle | conversion-task | customer-gateway | dhcp-options | elastic-ip-allocation | elastic-ip-association | export-task | flow-log | image | import-task | instance | internet-gateway | network-acl | network-acl-association | network-interface | network-interface-attachment | prefix-list | reservation | route-table | route-table-association | security-group | snapshot | subnet | subnet-cidr-block-association | volume | vpc | vpc-cidr-block-association | vpc-endpoint | vpc-peering-connection | vpn-connection | vpn-gateway.

These settings apply to the IAM user who makes the request; they do not apply to the entire AWS account. By default, an IAM user defaults to the same settings as the root user, unless they explicitly override the settings by running the ModifyIdFormat command. Resources created with longer IDs are visible to all IAM users, regardless of these settings and provided that they have permission to use the relevant Describe command for the resource type.

", + "DescribeIdFormat": "

Describes the ID format settings for your resources on a per-Region basis, for example, to view which resource types are enabled for longer IDs. This request only returns information about resource types whose ID formats can be modified; it does not return information about other resource types.

The following resource types support longer IDs: bundle | conversion-task | customer-gateway | dhcp-options | elastic-ip-allocation | elastic-ip-association | export-task | flow-log | image | import-task | instance | internet-gateway | network-acl | network-acl-association | network-interface | network-interface-attachment | prefix-list | reservation | route-table | route-table-association | security-group | snapshot | subnet | subnet-cidr-block-association | volume | vpc | vpc-cidr-block-association | vpc-endpoint | vpc-peering-connection | vpn-connection | vpn-gateway.

These settings apply to the IAM user who makes the request; they do not apply to the entire AWS account. By default, an IAM user defaults to the same settings as the root user, unless they explicitly override the settings by running the ModifyIdFormat command. Resources created with longer IDs are visible to all IAM users, regardless of these settings and provided that they have permission to use the relevant Describe command for the resource type.

", "DescribeIdentityIdFormat": "

Describes the ID format settings for resources for the specified IAM user, IAM role, or root user. For example, you can view the resource types that are enabled for longer IDs. This request only returns information about resource types whose ID formats can be modified; it does not return information about other resource types. For more information, see Resource IDs in the Amazon Elastic Compute Cloud User Guide.

The following resource types support longer IDs: bundle | conversion-task | customer-gateway | dhcp-options | elastic-ip-allocation | elastic-ip-association | export-task | flow-log | image | import-task | instance | internet-gateway | network-acl | network-acl-association | network-interface | network-interface-attachment | prefix-list | reservation | route-table | route-table-association | security-group | snapshot | subnet | subnet-cidr-block-association | volume | vpc | vpc-cidr-block-association | vpc-endpoint | vpc-peering-connection | vpn-connection | vpn-gateway.

These settings apply to the principal specified in the request. They do not apply to the principal that makes the request.

", "DescribeImageAttribute": "

Describes the specified attribute of the specified AMI. You can specify only one attribute at a time.

", - "DescribeImages": "

Describes the specified images (AMIs, AKIs, and ARIs) available to you or all of the images available to you.

The images available to you include public images, private images that you own, and private images owned by other AWS accounts for which you have explicit launch permissions.

Recently deregistered images might appear in the returned results for a short interval.

", + "DescribeImages": "

Describes the specified images (AMIs, AKIs, and ARIs) available to you or all of the images available to you.

The images available to you include public images, private images that you own, and private images owned by other AWS accounts for which you have explicit launch permissions.

Recently deregistered images appear in the returned results for a short interval and then return empty results. After all instances that reference a deregistered AMI are terminated, specifying the ID of the image results in an error indicating that the AMI ID cannot be found.

", "DescribeImportImageTasks": "

Displays details about an import virtual machine or import snapshot tasks that are already created.

", "DescribeImportSnapshotTasks": "

Describes your import snapshot tasks.

", "DescribeInstanceAttribute": "

Describes the specified attribute of the specified instance. You can specify only one attribute at a time. Valid attribute values are: instanceType | kernel | ramdisk | userData | disableApiTermination | instanceInitiatedShutdownBehavior | rootDeviceName | blockDeviceMapping | productCodes | sourceDestCheck | groupSet | ebsOptimized | sriovNetSupport

", @@ -178,7 +178,7 @@ "DescribePrefixLists": "

Describes available AWS services in a prefix list format, which includes the prefix list name and prefix list ID of the service and the IP address range for the service. A prefix list ID is required for creating an outbound security group rule that allows traffic from a VPC to access an AWS service through a gateway VPC endpoint. Currently, the services that support this action are Amazon S3 and Amazon DynamoDB.

", "DescribePrincipalIdFormat": "

Describes the ID format settings for the root user and all IAM roles and IAM users that have explicitly specified a longer ID (17-character ID) preference.

By default, all IAM roles and IAM users default to the same ID settings as the root user, unless they explicitly override the settings. This request is useful for identifying those IAM users and IAM roles that have overridden the default ID settings.

The following resource types support longer IDs: bundle | conversion-task | customer-gateway | dhcp-options | elastic-ip-allocation | elastic-ip-association | export-task | flow-log | image | import-task | instance | internet-gateway | network-acl | network-acl-association | network-interface | network-interface-attachment | prefix-list | reservation | route-table | route-table-association | security-group | snapshot | subnet | subnet-cidr-block-association | volume | vpc | vpc-cidr-block-association | vpc-endpoint | vpc-peering-connection | vpn-connection | vpn-gateway.

", "DescribePublicIpv4Pools": "

Describes the specified IPv4 address pools.

", - "DescribeRegions": "

Describes the regions that are currently available to you.

For a list of the regions supported by Amazon EC2, see Regions and Endpoints.

", + "DescribeRegions": "

Describes the Regions that are currently available to you. The API returns a list of all the Regions, including Regions that are disabled for your account. For information about enabling Regions for your account, see Enabling and Disabling Regions in the AWS Billing and Cost Management User Guide.

For a list of the Regions supported by Amazon EC2, see Regions and Endpoints.

", "DescribeReservedInstances": "

Describes one or more of the Reserved Instances that you purchased.

For more information about Reserved Instances, see Reserved Instances in the Amazon Elastic Compute Cloud User Guide.

", "DescribeReservedInstancesListings": "

Describes your account's Reserved Instance listings in the Reserved Instance Marketplace.

The Reserved Instance Marketplace matches sellers who want to resell Reserved Instance capacity that they no longer need with buyers who want to purchase additional capacity. Reserved Instances bought and sold through the Reserved Instance Marketplace work like any other Reserved Instances.

As a seller, you choose to list some or all of your Reserved Instances, and you specify the upfront price to receive for them. Your Reserved Instances are then listed in the Reserved Instance Marketplace and are available for purchase.

As a buyer, you specify the configuration of the Reserved Instance to purchase, and the Marketplace matches what you're searching for with what's available. The Marketplace first sells the lowest priced Reserved Instances to you, and continues to sell available Reserved Instance listings to you until your demand is met. You are charged based on the total price of all of the listings that you purchase.

For more information, see Reserved Instance Marketplace in the Amazon Elastic Compute Cloud User Guide.

", "DescribeReservedInstancesModifications": "

Describes the modifications made to your Reserved Instances. If no parameter is specified, information about all your Reserved Instances modification requests is returned. If a modification ID is specified, only information about the specific modification is returned.

For more information, see Modifying Reserved Instances in the Amazon Elastic Compute Cloud User Guide.

", @@ -264,7 +264,7 @@ "ModifyFleet": "

Modifies the specified EC2 Fleet.

While the EC2 Fleet is being modified, it is in the modifying state.

", "ModifyFpgaImageAttribute": "

Modifies the specified attribute of the specified Amazon FPGA Image (AFI).

", "ModifyHosts": "

Modify the auto-placement setting of a Dedicated Host. When auto-placement is enabled, any instances that you launch with a tenancy of host but without a specific host ID are placed onto any available Dedicated Host in your account that has auto-placement enabled. When auto-placement is disabled, you need to provide a host ID to have the instance launch onto a specific host. If no host ID is provided, the instance is launched onto a suitable host with auto-placement enabled.

", - "ModifyIdFormat": "

Modifies the ID format for the specified resource on a per-region basis. You can specify that resources should receive longer IDs (17-character IDs) when they are created.

This request can only be used to modify longer ID settings for resource types that are within the opt-in period. Resources currently in their opt-in period include: bundle | conversion-task | customer-gateway | dhcp-options | elastic-ip-allocation | elastic-ip-association | export-task | flow-log | image | import-task | internet-gateway | network-acl | network-acl-association | network-interface | network-interface-attachment | prefix-list | route-table | route-table-association | security-group | subnet | subnet-cidr-block-association | vpc | vpc-cidr-block-association | vpc-endpoint | vpc-peering-connection | vpn-connection | vpn-gateway.

This setting applies to the IAM user who makes the request; it does not apply to the entire AWS account. By default, an IAM user defaults to the same settings as the root user. If you're using this action as the root user, then these settings apply to the entire account, unless an IAM user explicitly overrides these settings for themselves. For more information, see Resource IDs in the Amazon Elastic Compute Cloud User Guide.

Resources created with longer IDs are visible to all IAM roles and users, regardless of these settings and provided that they have permission to use the relevant Describe command for the resource type.

", + "ModifyIdFormat": "

Modifies the ID format for the specified resource on a per-Region basis. You can specify that resources should receive longer IDs (17-character IDs) when they are created.

This request can only be used to modify longer ID settings for resource types that are within the opt-in period. Resources currently in their opt-in period include: bundle | conversion-task | customer-gateway | dhcp-options | elastic-ip-allocation | elastic-ip-association | export-task | flow-log | image | import-task | internet-gateway | network-acl | network-acl-association | network-interface | network-interface-attachment | prefix-list | route-table | route-table-association | security-group | subnet | subnet-cidr-block-association | vpc | vpc-cidr-block-association | vpc-endpoint | vpc-peering-connection | vpn-connection | vpn-gateway.

This setting applies to the IAM user who makes the request; it does not apply to the entire AWS account. By default, an IAM user defaults to the same settings as the root user. If you're using this action as the root user, then these settings apply to the entire account, unless an IAM user explicitly overrides these settings for themselves. For more information, see Resource IDs in the Amazon Elastic Compute Cloud User Guide.

Resources created with longer IDs are visible to all IAM roles and users, regardless of these settings and provided that they have permission to use the relevant Describe command for the resource type.

", "ModifyIdentityIdFormat": "

Modifies the ID format of a resource for a specified IAM user, IAM role, or the root user for an account; or all IAM users, IAM roles, and the root user for an account. You can specify that resources should receive longer IDs (17-character IDs) when they are created.

This request can only be used to modify longer ID settings for resource types that are within the opt-in period. Resources currently in their opt-in period include: bundle | conversion-task | customer-gateway | dhcp-options | elastic-ip-allocation | elastic-ip-association | export-task | flow-log | image | import-task | internet-gateway | network-acl | network-acl-association | network-interface | network-interface-attachment | prefix-list | route-table | route-table-association | security-group | subnet | subnet-cidr-block-association | vpc | vpc-cidr-block-association | vpc-endpoint | vpc-peering-connection | vpn-connection | vpn-gateway.

For more information, see Resource IDs in the Amazon Elastic Compute Cloud User Guide.

This setting applies to the principal specified in the request; it does not apply to the principal that makes the request.

Resources created with longer IDs are visible to all IAM roles and users, regardless of these settings and provided that they have permission to use the relevant Describe command for the resource type.

", "ModifyImageAttribute": "

Modifies the specified attribute of the specified AMI. You can specify only one attribute at a time. You can use the Attribute parameter to specify the attribute or one of the following parameters: Description, LaunchPermission, or ProductCode.

AWS Marketplace product codes cannot be modified. Images with an AWS Marketplace product code cannot be made public.

To enable the SriovNetSupport enhanced networking attribute of an image, enable SriovNetSupport on an instance and create an AMI from the instance.

", "ModifyInstanceAttribute": "

Modifies the specified attribute of the specified instance. You can specify only one attribute at a time.

Note: Using this action to change the security groups associated with an elastic network interface (ENI) attached to an instance in a VPC can result in an error if the instance has more than one ENI. To change the security groups associated with an ENI attached to an instance that has multiple ENIs, we recommend that you use the ModifyNetworkInterfaceAttribute action.

To modify some attributes, the instance must be stopped. For more information, see Modifying Attributes of a Stopped Instance in the Amazon Elastic Compute Cloud User Guide.

", @@ -286,9 +286,9 @@ "ModifyVpcEndpointConnectionNotification": "

Modifies a connection notification for VPC endpoint or VPC endpoint service. You can change the SNS topic for the notification, or the events for which to be notified.

", "ModifyVpcEndpointServiceConfiguration": "

Modifies the attributes of your VPC endpoint service configuration. You can change the Network Load Balancers for your service, and you can specify whether acceptance is required for requests to connect to your endpoint service through an interface VPC endpoint.

", "ModifyVpcEndpointServicePermissions": "

Modifies the permissions for your VPC endpoint service. You can add or remove permissions for service consumers (IAM users, IAM roles, and AWS accounts) to connect to your endpoint service.

If you grant permissions to all principals, the service is public. Any users who know the name of a public service can send a request to attach an endpoint. If the service does not require manual approval, attachments are automatically approved.

", - "ModifyVpcPeeringConnectionOptions": "

Modifies the VPC peering connection options on one side of a VPC peering connection. You can do the following:

If the peered VPCs are in the same AWS account, you can enable DNS resolution for queries from the local VPC. This ensures that queries from the local VPC resolve to private IP addresses in the peer VPC. This option is not available if the peered VPCs are in different AWS accounts or different regions. For peered VPCs in different AWS accounts, each AWS account owner must initiate a separate request to modify the peering connection options. For inter-region peering connections, you must use the region for the requester VPC to modify the requester VPC peering options and the region for the accepter VPC to modify the accepter VPC peering options. To verify which VPCs are the accepter and the requester for a VPC peering connection, use the DescribeVpcPeeringConnections command.

", + "ModifyVpcPeeringConnectionOptions": "

Modifies the VPC peering connection options on one side of a VPC peering connection. You can do the following:

If the peered VPCs are in the same AWS account, you can enable DNS resolution for queries from the local VPC. This ensures that queries from the local VPC resolve to private IP addresses in the peer VPC. This option is not available if the peered VPCs are in different AWS accounts or different Regions. For peered VPCs in different AWS accounts, each AWS account owner must initiate a separate request to modify the peering connection options. For inter-region peering connections, you must use the Region for the requester VPC to modify the requester VPC peering options and the Region for the accepter VPC to modify the accepter VPC peering options. To verify which VPCs are the accepter and the requester for a VPC peering connection, use the DescribeVpcPeeringConnections command.

", "ModifyVpcTenancy": "

Modifies the instance tenancy attribute of the specified VPC. You can change the instance tenancy attribute of a VPC to default only. You cannot change the instance tenancy attribute to dedicated.

After you modify the tenancy of the VPC, any new instances that you launch into the VPC have a tenancy of default, unless you specify otherwise during launch. The tenancy of any existing instances in the VPC is not affected.

For more information, see Dedicated Instances in the Amazon Elastic Compute Cloud User Guide.

", - "ModifyVpnConnection": null, + "ModifyVpnConnection": "

Modifies the target gateway of a AWS Site-to-Site VPN connection. The following migration options are available:

Before you perform the migration to the new gateway, you must configure the new gateway. Use CreateVpnGateway to create a virtual private gateway, or CreateTransitGateway to create a transit gateway.

This step is required when you migrate from a virtual private gateway with static routes to a transit gateway.

You must delete the static routes before you migrate to the new gateway.

Keep a copy of the static route before you delete it. You will need to add back these routes to the transit gateway after the VPN connection migration is complete.

After you migrate to the new gateway, you might need to modify your VPC route table. Use CreateRoute and DeleteRoute to make the changes described in VPN Gateway Target Modification Required VPC Route Table Updates in the AWS Site-to-Site VPN User Guide.

When the new gateway is a transit gateway, modify the transit gateway route table to allow traffic between the VPC and the AWS Site-to-Site VPN connection. Use CreateTransitGatewayRoute to add the routes.

If you deleted VPN static routes, you must add the static routes to the transit gateway route table.

After you perform this operation, the AWS VPN endpoint's IP addresses on the AWS side and the tunnel options remain intact. Your s2slong; connection will be temporarily unavailable for approximately 10 minutes while we provision the new endpoints

", "MonitorInstances": "

Enables detailed monitoring for a running instance. Otherwise, basic monitoring is enabled. For more information, see Monitoring Your Instances and Volumes in the Amazon Elastic Compute Cloud User Guide.

To disable detailed monitoring, see .

", "MoveAddressToVpc": "

Moves an Elastic IP address from the EC2-Classic platform to the EC2-VPC platform. The Elastic IP address must be allocated to your account for more than 24 hours, and it must not be associated with an instance. After the Elastic IP address is moved, it is no longer available for use in the EC2-Classic platform, unless you move it back using the RestoreAddressToClassic request. You cannot move an Elastic IP address that was originally allocated for use in the EC2-VPC platform to the EC2-Classic platform.

", "ProvisionByoipCidr": "

Provisions an address range for use with your AWS resources through bring your own IP addresses (BYOIP) and creates a corresponding address pool. After the address range is provisioned, it is ready to be advertised using AdvertiseByoipCidr.

AWS verifies that you own the address range and are authorized to advertise it. You must ensure that the address range is registered to you and that you created an RPKI ROA to authorize Amazon ASNs 16509 and 14618 to advertise the address range. For more information, see Bring Your Own IP Addresses (BYOIP) in the Amazon Elastic Compute Cloud User Guide.

Provisioning an address range is an asynchronous operation, so the call returns immediately, but the address range is not ready to use until its status changes from pending-provision to provisioned. To monitor the status of an address range, use DescribeByoipCidrs. To allocate an Elastic IP address from your address pool, use AllocateAddress with either the specific address from the address pool or the ID of the address pool.

", @@ -884,7 +884,7 @@ "ImageAttribute$BlockDeviceMappings": "

The block device mapping entries.

", "LaunchSpecification$BlockDeviceMappings": "

One or more block device mapping entries.

", "RequestSpotLaunchSpecification$BlockDeviceMappings": "

One or more block device mapping entries. You can't specify both a snapshot ID and an encryption value. This is because only blank volumes can be encrypted on creation. If a snapshot is the basis for a volume, it is not blank and its encryption status is used for the volume encryption status.

", - "SpotFleetLaunchSpecification$BlockDeviceMappings": "

One or more block device mapping entries. You can't specify both a snapshot ID and an encryption value. This is because only blank volumes can be encrypted on creation. If a snapshot is the basis for a volume, it is not blank and its encryption status is used for the volume encryption status.

" + "SpotFleetLaunchSpecification$BlockDeviceMappings": "

One or more block devices that are mapped to the Spot instances. You can't specify both a snapshot ID and an encryption value. This is because only blank volumes can be encrypted on creation. If a snapshot is the basis for a volume, it is not blank and its encryption status is used for the volume encryption status.

" } }, "BlockDeviceMappingRequestList": { @@ -983,7 +983,7 @@ "CreateSubnetRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", "CreateTagsRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", "CreateTransitGatewayRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", - "CreateTransitGatewayRouteRequest$Blackhole": "

Indicates whether to drop traffic if the target isn't available.

", + "CreateTransitGatewayRouteRequest$Blackhole": "

Indicates whether to drop traffic that matches this route.

", "CreateTransitGatewayRouteRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", "CreateTransitGatewayRouteTableRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", "CreateTransitGatewayVpcAttachmentRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", @@ -991,7 +991,7 @@ "CreateVolumeRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", "CreateVpcEndpointConnectionNotificationRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", "CreateVpcEndpointRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", - "CreateVpcEndpointRequest$PrivateDnsEnabled": "

(Interface endpoint) Indicate whether to associate a private hosted zone with the specified VPC. The private hosted zone contains a record set for the default public DNS name for the service for the region (for example, kinesis.us-east-1.amazonaws.com) which resolves to the private IP addresses of the endpoint network interfaces in the VPC. This enables you to make requests to the default public DNS name for the service instead of the public DNS names that are automatically generated by the VPC endpoint service.

To use a private hosted zone, you must set the following VPC attributes to true: enableDnsHostnames and enableDnsSupport. Use ModifyVpcAttribute to set the VPC attributes.

Default: false

", + "CreateVpcEndpointRequest$PrivateDnsEnabled": "

(Interface endpoint) Indicate whether to associate a private hosted zone with the specified VPC. The private hosted zone contains a record set for the default public DNS name for the service for the Region (for example, kinesis.us-east-1.amazonaws.com) which resolves to the private IP addresses of the endpoint network interfaces in the VPC. This enables you to make requests to the default public DNS name for the service instead of the public DNS names that are automatically generated by the VPC endpoint service.

To use a private hosted zone, you must set the following VPC attributes to true: enableDnsHostnames and enableDnsSupport. Use ModifyVpcAttribute to set the VPC attributes.

Default: false

", "CreateVpcEndpointServiceConfigurationRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", "CreateVpcEndpointServiceConfigurationRequest$AcceptanceRequired": "

Indicate whether requests from service consumers to create an endpoint to your service must be accepted. To accept a request, use AcceptVpcEndpointConnections.

", "CreateVpcPeeringConnectionRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", @@ -1047,7 +1047,7 @@ "DescribeAccountAttributesRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", "DescribeAddressesRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", "DescribeAggregateIdFormatRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", - "DescribeAggregateIdFormatResult$UseLongIdsAggregated": "

Indicates whether all resource types in the region are configured to use longer IDs. This value is only true if all users are configured to use longer IDs for all resources types in the region.

", + "DescribeAggregateIdFormatResult$UseLongIdsAggregated": "

Indicates whether all resource types in the Region are configured to use longer IDs. This value is only true if all users are configured to use longer IDs for all resources types in the Region.

", "DescribeAvailabilityZonesRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", "DescribeBundleTasksRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", "DescribeByoipCidrsRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", @@ -1249,7 +1249,7 @@ "ModifyVpcPeeringConnectionOptionsRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", "ModifyVpcTenancyRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", "ModifyVpcTenancyResult$ReturnValue": "

Returns true if the request succeeds; otherwise, returns an error.

", - "ModifyVpnConnectionRequest$DryRun": null, + "ModifyVpnConnectionRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", "MonitorInstancesRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", "MoveAddressToVpcRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", "NetworkAcl$IsDefault": "

Indicates whether this is the default network ACL for the VPC.

", @@ -1311,7 +1311,7 @@ "RevokeSecurityGroupIngressRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", "RouteTableAssociation$Main": "

Indicates whether this is the main route table.

", "RunInstancesMonitoringEnabled$Enabled": "

Indicates whether detailed monitoring is enabled. Otherwise, basic monitoring is enabled.

", - "RunInstancesRequest$DisableApiTermination": "

If you set this parameter to true, you can't terminate the instance using the Amazon EC2 console, CLI, or API; otherwise, you can. To change this attribute to false after launch, use ModifyInstanceAttribute. Alternatively, if you set InstanceInitiatedShutdownBehavior to terminate, you can terminate the instance by running the shutdown command from the instance.

Default: false

", + "RunInstancesRequest$DisableApiTermination": "

If you set this parameter to true, you can't terminate the instance using the Amazon EC2 console, CLI, or API; otherwise, you can. To change this attribute to false after launch, use ModifyInstanceAttribute. Alternatively, if you set InstanceInitiatedShutdownBehavior to terminate, you can terminate the instance by running the shutdown command from the instance.

Default: false

", "RunInstancesRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", "RunInstancesRequest$EbsOptimized": "

Indicates whether the instance is optimized for Amazon EBS I/O. This optimization provides dedicated throughput to Amazon EBS and an optimized configuration stack to provide optimal Amazon EBS I/O performance. This optimization isn't available with all instance types. Additional usage charges apply when using an EBS-optimized instance.

Default: false

", "RunScheduledInstancesRequest$DryRun": "

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

", @@ -1335,7 +1335,7 @@ "SnapshotTaskDetail$Encrypted": "

Indicates whether the snapshot is encrypted.

", "SpotFleetLaunchSpecification$EbsOptimized": "

Indicates whether the instances are optimized for EBS I/O. This optimization provides dedicated throughput to Amazon EBS and an optimized configuration stack to provide optimal EBS I/O performance. This optimization isn't available with all instance types. Additional usage charges apply when using an EBS Optimized instance.

Default: false

", "SpotFleetMonitoring$Enabled": "

Enables monitoring for the instance.

Default: false

", - "SpotFleetRequestConfigData$TerminateInstancesWithExpiration": "

Indicates whether running Spot Instances should be terminated when the Spot Fleet request expires.

", + "SpotFleetRequestConfigData$TerminateInstancesWithExpiration": "

Indicates whether running Spot Instances are terminated when the Spot Fleet request expires.

", "SpotFleetRequestConfigData$ReplaceUnhealthyInstances": "

Indicates whether Spot Fleet should replace unhealthy instances.

", "SpotOptions$SingleInstanceType": "

Indicates that the fleet uses a single instance type to launch all Spot Instances in the fleet.

", "SpotOptions$SingleAvailabilityZone": "

Indicates that the fleet launches all Spot Instances into a single Availability Zone.

", @@ -2431,7 +2431,7 @@ "base": "

The credit option for CPU usage of a T2 or T3 instance.

", "refs": { "RequestLaunchTemplateData$CreditSpecification": "

The credit option for CPU usage of the instance. Valid for T2 or T3 instances only.

", - "RunInstancesRequest$CreditSpecification": "

The credit option for CPU usage of the T2 or T3 instance. Valid values are standard and unlimited. To change this attribute after launch, use ModifyInstanceCreditSpecification. For more information, see Burstable Performance Instances in the Amazon Elastic Compute Cloud User Guide.

Default: standard (T2 instances) or unlimited (T3 instances)

" + "RunInstancesRequest$CreditSpecification": "

The credit option for CPU usage of the T2 or T3 instance. Valid values are standard and unlimited. To change this attribute after launch, use ModifyInstanceCreditSpecification. For more information, see Burstable Performance Instances in the Amazon Elastic Compute Cloud User Guide.

Default: standard (T2 instances) or unlimited (T3 instances)

" } }, "CurrencyCodeValues": { @@ -2554,8 +2554,8 @@ "SlotStartTimeRangeRequest$LatestTime": "

The latest date and time, in UTC, for the Scheduled Instance to start.

", "Snapshot$StartTime": "

The time stamp when the snapshot was initiated.

", "SpotFleetRequestConfig$CreateTime": "

The creation date and time of the request.

", - "SpotFleetRequestConfigData$ValidFrom": "

The start date and time of the request, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ). The default is to start fulfilling the request immediately.

", - "SpotFleetRequestConfigData$ValidUntil": "

The end date and time of the request, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ). At this point, no new Spot Instance requests are placed or able to fulfill the request. If no value is specified, the Spot Fleet request remains until you cancel it.

", + "SpotFleetRequestConfigData$ValidFrom": "

The start date and time of the request, in UTC format (YYYY-MM-DDTHH:MM:SSZ). By default, Amazon EC2 starts fulfilling the request immediately.

", + "SpotFleetRequestConfigData$ValidUntil": "

The end date and time of the request, in UTC format (YYYY-MM-DDTHH:MM:SSZ). After the end date and time, no new Spot Instance requests are placed or able to fulfill the request. If no value is specified, the Spot Fleet request remains until you cancel it.

", "SpotInstanceRequest$CreateTime": "

The date and time when the Spot Instance request was created, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).

", "SpotInstanceRequest$ValidFrom": "

The start date of the request, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ). The request becomes active at this date and time.

", "SpotInstanceRequest$ValidUntil": "

The end date of the request, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ). If this is a one-time request, it remains active until all instances launch, the request is canceled, or this date is reached. If the request is persistent, it remains active until it is canceled or this date is reached. The default end date is 7 days from the current date.

", @@ -3108,6 +3108,12 @@ "refs": { } }, + "DescribeDhcpOptionsMaxResults": { + "base": null, + "refs": { + "DescribeDhcpOptionsRequest$MaxResults": "

The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned nextToken value.

" + } + }, "DescribeDhcpOptionsRequest": { "base": null, "refs": { @@ -3716,6 +3722,12 @@ "refs": { } }, + "DescribeSubnetsMaxResults": { + "base": null, + "refs": { + "DescribeSubnetsRequest$MaxResults": "

The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned nextToken value.

" + } + }, "DescribeSubnetsRequest": { "base": null, "refs": { @@ -4236,7 +4248,7 @@ "ReservedInstanceLimitPrice$Amount": "

Used for Reserved Instance Marketplace offerings. Specifies the limit price on the total order (instanceCount * price).

", "SnapshotDetail$DiskImageSize": "

The size of the disk in the snapshot, in GiB.

", "SnapshotTaskDetail$DiskImageSize": "

The size of the disk in the snapshot, in GiB.

", - "SpotFleetLaunchSpecification$WeightedCapacity": "

The number of units provided by the specified instance type. These are the same units that you chose to set the target capacity in terms (instances or a performance characteristic such as vCPUs, memory, or I/O).

If the target capacity divided by this value is not a whole number, we round the number of instances to the next whole number. If this value is not specified, the default is 1.

", + "SpotFleetLaunchSpecification$WeightedCapacity": "

The number of units provided by the specified instance type. These are the same units that you chose to set the target capacity in terms of instances, or a performance characteristic such as vCPUs, memory, or I/O.

If the target capacity divided by this value is not a whole number, Amazon EC2 rounds the number of instances to the next whole number. If this value is not specified, the default is 1.

", "SpotFleetRequestConfigData$FulfilledCapacity": "

The number of units fulfilled by this request compared to the set target capacity. You cannot set this value.

", "SpotFleetRequestConfigData$OnDemandFulfilledCapacity": "

The number of On-Demand units fulfilled by this request compared to the set target On-Demand capacity.

" } @@ -4467,7 +4479,7 @@ "base": null, "refs": { "ModifySpotFleetRequestRequest$ExcessCapacityTerminationPolicy": "

Indicates whether running Spot Instances should be terminated if the target capacity of the Spot Fleet request is decreased below the current size of the Spot Fleet.

", - "SpotFleetRequestConfigData$ExcessCapacityTerminationPolicy": "

Indicates whether running Spot Instances should be terminated if the target capacity of the Spot Fleet request is decreased below the current size of the Spot Fleet.

" + "SpotFleetRequestConfigData$ExcessCapacityTerminationPolicy": "

Indicates whether running Spot Instances should be terminated if you decrease the target capacity of the Spot Fleet request below the current size of the Spot Fleet.

" } }, "ExecutableByStringList": { @@ -4560,7 +4572,7 @@ "base": null, "refs": { "DescribeAddressesRequest$Filters": "

One or more filters. Filter names and values are case-sensitive.

", - "DescribeAvailabilityZonesRequest$Filters": "

The filters.

", + "DescribeAvailabilityZonesRequest$Filters": "

The filters.

", "DescribeBundleTasksRequest$Filters": "

The filters.

", "DescribeCapacityReservationsRequest$Filters": "

One or more filters.

", "DescribeClassicLinkInstancesRequest$Filters": "

One or more filters.

", @@ -4597,7 +4609,7 @@ "DescribeNetworkInterfacesRequest$Filters": "

One or more filters.

", "DescribePlacementGroupsRequest$Filters": "

The filters.

", "DescribePrefixListsRequest$Filters": "

One or more filters.

", - "DescribeRegionsRequest$Filters": "

The filters.

", + "DescribeRegionsRequest$Filters": "

The filters.

", "DescribeReservedInstancesListingsRequest$Filters": "

One or more filters.

", "DescribeReservedInstancesModificationsRequest$Filters": "

One or more filters.

", "DescribeReservedInstancesOfferingsRequest$Filters": "

One or more filters.

", @@ -5601,7 +5613,7 @@ "refs": { "LaunchSpecification$NetworkInterfaces": "

One or more network interfaces. If you specify a network interface, you must specify subnet IDs and security group IDs using the network interface.

", "RequestSpotLaunchSpecification$NetworkInterfaces": "

One or more network interfaces. If you specify a network interface, you must specify subnet IDs and security group IDs using the network interface.

", - "RunInstancesRequest$NetworkInterfaces": "

The network interfaces to associate with the instance.

", + "RunInstancesRequest$NetworkInterfaces": "

The network interfaces to associate with the instance. If you specify a network interface, you must specify any security groups as part of the network interface.

", "SpotFleetLaunchSpecification$NetworkInterfaces": "

One or more network interfaces. If you specify a network interface, you must specify subnet IDs and security group IDs using the network interface.

" } }, @@ -5812,9 +5824,9 @@ "InstanceCapacity$TotalCapacity": "

The total number of instances that can be launched onto the Dedicated Host.

", "InstanceCount$InstanceCount": "

The number of listed Reserved Instances in the state specified by the state.

", "InstanceNetworkInterfaceAttachment$DeviceIndex": "

The index of the device on the instance for the network interface attachment.

", - "InstanceNetworkInterfaceSpecification$DeviceIndex": "

The index of the device on the instance for the network interface attachment. If you are specifying a network interface in a RunInstances request, you must provide the device index.

", + "InstanceNetworkInterfaceSpecification$DeviceIndex": "

The position of the network interface in the attachment order. A primary network interface has a device index of 0.

If you specify a network interface when launching an instance, you must specify the device index.

", "InstanceNetworkInterfaceSpecification$Ipv6AddressCount": "

A number of IPv6 addresses to assign to the network interface. Amazon EC2 chooses the IPv6 addresses from the range of the subnet. You cannot specify this option and the option to assign specific IPv6 addresses in the same request. You can specify this option if you've specified a minimum number of instances to launch.

", - "InstanceNetworkInterfaceSpecification$SecondaryPrivateIpAddressCount": "

The number of secondary private IPv4 addresses. You can't specify this option and specify more than one private IP address using the private IP addresses option. You cannot specify this option if you're launching more than one instance in a RunInstances request.

", + "InstanceNetworkInterfaceSpecification$SecondaryPrivateIpAddressCount": "

The number of secondary private IPv4 addresses. You can't specify this option and specify more than one private IP address using the private IP addresses option. You cannot specify this option if you're launching more than one instance in a RunInstances request.

", "InstanceState$Code": "

The state of the instance as a 16-bit unsigned integer.

The high byte is all of the bits between 2^8 and (2^16)-1, which equals decimal values between 256 and 65,535. These numerical values are used for internal purposes and should be ignored.

The low byte is all of the bits between 2^0 and (2^8)-1, which equals decimal values between 0 and 255.

The valid values for instance-state-code will all be in the range of the low byte and they are:

You can ignore the high byte value by zeroing out all of the bits above 2^8 or 256 in decimal.

", "IpPermission$FromPort": "

The start of port range for the TCP and UDP protocols, or an ICMP/ICMPv6 type number. A value of -1 indicates all ICMP/ICMPv6 types. If you specify all ICMP/ICMPv6 types, you must specify all codes.

", "IpPermission$ToPort": "

The end of port range for the TCP and UDP protocols, or an ICMP/ICMPv6 code. A value of -1 indicates all ICMP/ICMPv6 codes. If you specify all ICMP/ICMPv6 types, you must specify all codes.

", @@ -5886,7 +5898,7 @@ "ScheduledInstancesNetworkInterface$Ipv6AddressCount": "

The number of IPv6 addresses to assign to the network interface. The IPv6 addresses are automatically selected from the subnet range.

", "ScheduledInstancesNetworkInterface$SecondaryPrivateIpAddressCount": "

The number of secondary private IPv4 addresses.

", "Snapshot$VolumeSize": "

The size of the volume, in GiB.

", - "SpotFleetRequestConfigData$TargetCapacity": "

The number of units to request. You can choose to set the target capacity in terms of instances or a performance characteristic that is important to your application workload, such as vCPUs, memory, or I/O. If the request type is maintain, you can specify a target capacity of 0 and add capacity later.

", + "SpotFleetRequestConfigData$TargetCapacity": "

The number of units to request for the Spot Fleet. You can choose to set the target capacity in terms of instances or a performance characteristic that is important to your application workload, such as vCPUs, memory, or I/O. If the request type is maintain, you can specify a target capacity of 0 and add capacity later.

", "SpotFleetRequestConfigData$OnDemandTargetCapacity": "

The number of On-Demand units to request. You can choose to set the target capacity in terms of instances or a performance characteristic that is important to your application workload, such as vCPUs, memory, or I/O. If the request type is maintain, you can specify a target capacity of 0 and add capacity later.

", "SpotFleetRequestConfigData$InstancePoolsToUseCount": "

The number of Spot pools across which to allocate your target Spot capacity. Valid only when Spot AllocationStrategy is set to lowest-price. Spot Fleet selects the cheapest Spot pools and evenly allocates your target Spot capacity across the number of Spot pools that you specify.

", "SpotInstanceRequest$BlockDurationMinutes": "

The duration for the Spot Instance, in minutes.

", @@ -6084,7 +6096,7 @@ "LaunchSpecsList": { "base": null, "refs": { - "SpotFleetRequestConfigData$LaunchSpecifications": "

The launch specifications for the Spot Fleet request. If you specify LaunchSpecifications, you can't specify LaunchTemplateConfigs.

" + "SpotFleetRequestConfigData$LaunchSpecifications": "

The launch specifications for the Spot Fleet request. If you specify LaunchSpecifications, you can't specify LaunchTemplateConfigs. If you include On-Demand capacity in your request, you must use LaunchTemplateConfigs.

" } }, "LaunchTemplate": { @@ -6150,7 +6162,7 @@ "LaunchTemplateConfigList": { "base": null, "refs": { - "SpotFleetRequestConfigData$LaunchTemplateConfigs": "

The launch template and overrides. If you specify LaunchTemplateConfigs, you can't specify LaunchSpecifications.

" + "SpotFleetRequestConfigData$LaunchTemplateConfigs": "

The launch template and overrides. If you specify LaunchTemplateConfigs, you can't specify LaunchSpecifications. If you include On-Demand capacity in your request, you must use LaunchTemplateConfigs.

" } }, "LaunchTemplateCpuOptions": { @@ -6264,7 +6276,7 @@ "LaunchTemplateInstanceNetworkInterfaceSpecificationRequestList": { "base": null, "refs": { - "RequestLaunchTemplateData$NetworkInterfaces": "

One or more network interfaces.

" + "RequestLaunchTemplateData$NetworkInterfaces": "

One or more network interfaces. If you specify a network interface, you must specify any security groups as part of the network interface.

" } }, "LaunchTemplateLicenseConfiguration": { @@ -6382,7 +6394,7 @@ "LaunchTemplateTagSpecificationRequestList": { "base": null, "refs": { - "RequestLaunchTemplateData$TagSpecifications": "

The tags to apply to the resources during launch. You can only tag instances and volumes on launch. The specified tags are applied to all instances or volumes that are created during launch. To tag a resource after it has been created, see CreateTags.

" + "RequestLaunchTemplateData$TagSpecifications": "

The tags to apply to the resources during launch. You can only tag instances and volumes on launch. The specified tags are applied to all instances or volumes that are created during launch. To tag a resource after it has been created, see CreateTags.

" } }, "LaunchTemplateVersion": { @@ -6963,7 +6975,7 @@ "NetworkInterfaceCreationType": { "base": null, "refs": { - "CreateNetworkInterfaceRequest$InterfaceType": "

Indicates whether the network interface is an Elastic Fabric Adapter (EFA). Only specify this parameter to create an EFA. For more information, see Elastic Fabric Adapter in the Amazon Elastic Compute Cloud User Guide.

If you are not creating an EFA ENI, omit this parameter.

" + "CreateNetworkInterfaceRequest$InterfaceType": "

Indicates whether the network interface is an Elastic Fabric Adapter (EFA). Only specify this parameter to create an EFA. For more information, see Elastic Fabric Adapter in the Amazon Elastic Compute Cloud User Guide.

If you are not creating an EFA ENI, omit this parameter.

" } }, "NetworkInterfaceIdList": { @@ -7354,7 +7366,7 @@ "base": null, "refs": { "CreateNetworkInterfaceRequest$PrivateIpAddresses": "

One or more private IPv4 addresses.

", - "InstanceNetworkInterfaceSpecification$PrivateIpAddresses": "

One or more private IPv4 addresses to assign to the network interface. Only one private IPv4 address can be designated as primary. You cannot specify this option if you're launching more than one instance in a RunInstances request.

", + "InstanceNetworkInterfaceSpecification$PrivateIpAddresses": "

One or more private IPv4 addresses to assign to the network interface. Only one private IPv4 address can be designated as primary. You cannot specify this option if you're launching more than one instance in a RunInstances request.

", "LaunchTemplateInstanceNetworkInterfaceSpecification$PrivateIpAddresses": "

One or more private IPv4 addresses.

", "LaunchTemplateInstanceNetworkInterfaceSpecificationRequest$PrivateIpAddresses": "

One or more private IPv4 addresses.

" } @@ -7564,7 +7576,7 @@ } }, "Region": { - "base": "

Describes a region.

", + "base": "

Describes a Region.

", "refs": { "RegionList$member": null } @@ -7572,13 +7584,13 @@ "RegionList": { "base": null, "refs": { - "DescribeRegionsResult$Regions": "

Information about the regions.

" + "DescribeRegionsResult$Regions": "

Information about the Regions.

" } }, "RegionNameStringList": { "base": null, "refs": { - "DescribeRegionsRequest$RegionNames": "

The names of the regions.

" + "DescribeRegionsRequest$RegionNames": "

The names of the Regions.

" } }, "RegisterImageRequest": { @@ -7974,7 +7986,7 @@ "base": null, "refs": { "LaunchTemplateTagSpecification$ResourceType": "

The type of resource.

", - "LaunchTemplateTagSpecificationRequest$ResourceType": "

The type of resource to tag. Currently, the resource types that support tagging on creation are instance and volume. To tag a resource after it has been created, see CreateTags.

", + "LaunchTemplateTagSpecificationRequest$ResourceType": "

The type of resource to tag. Currently, the resource types that support tagging on creation are instance and volume. To tag a resource after it has been created, see CreateTags.

", "SpotFleetTagSpecification$ResourceType": "

The type of resource. Currently, the only resource type that is supported is instance.

", "TagDescription$ResourceType": "

The resource type.

", "TagSpecification$ResourceType": "

The type of resource to tag. Currently, the resource types that support tagging on creation are fleet, dedicated-host, instance, snapshot, and volume. To tag a resource after it has been created, see CreateTags.

" @@ -8277,8 +8289,8 @@ "InstanceNetworkInterfaceSpecification$Groups": "

The IDs of the security groups for the network interface. Applies only if creating a network interface when launching an instance.

", "LaunchTemplateInstanceNetworkInterfaceSpecificationRequest$Groups": "

The IDs of one or more security groups.

", "ModifyNetworkInterfaceAttributeRequest$Groups": "

Changes the security groups for the network interface. The new set of groups you specify replaces the current set. You must specify at least one group, even if it's just the default security group in the VPC. You must specify the ID of the security group, not the name.

", - "RequestLaunchTemplateData$SecurityGroupIds": "

One or more security group IDs. You can create a security group using CreateSecurityGroup. You cannot specify both a security group ID and security name in the same request.

", - "RunInstancesRequest$SecurityGroupIds": "

The IDs of the security groups. You can create a security group using CreateSecurityGroup.

Default: Amazon EC2 uses the default security group.

You cannot specify this option and the network interfaces option in the same request.

" + "RequestLaunchTemplateData$SecurityGroupIds": "

One or more security group IDs. You can create a security group using CreateSecurityGroup. You cannot specify both a security group ID and security name in the same request.

", + "RunInstancesRequest$SecurityGroupIds": "

The IDs of the security groups. You can create a security group using CreateSecurityGroup.

If you specify a network interface, you must specify any security groups as part of the network interface.

" } }, "SecurityGroupIdentifier": { @@ -8310,7 +8322,7 @@ "refs": { "ImportInstanceLaunchSpecification$GroupNames": "

The security group names.

", "RequestLaunchTemplateData$SecurityGroups": "

[EC2-Classic, default VPC] One or more security group names. For a nondefault VPC, you must use security group IDs instead. You cannot specify both a security group ID and security name in the same request.

", - "RunInstancesRequest$SecurityGroups": "

[EC2-Classic, default VPC] The names of the security groups. For a nondefault VPC, you must use security group IDs instead.

You cannot specify this option and the network interfaces option in the same request.

Default: Amazon EC2 uses the default security group.

" + "RunInstancesRequest$SecurityGroups": "

[EC2-Classic, default VPC] The names of the security groups. For a nondefault VPC, you must use security group IDs instead.

If you specify a network interface, you must specify any security groups as part of the network interface.

Default: Amazon EC2 uses the default security group.

" } }, "ServiceConfiguration": { @@ -8457,7 +8469,7 @@ } }, "SpotFleetLaunchSpecification": { - "base": "

Describes the launch specification for one or more Spot Instances.

", + "base": "

Describes the launch specification for one or more Spot Instances. If you include On-Demand capacity in your fleet request, you can't use SpotFleetLaunchSpecification; you must use LaunchTemplateConfig.

", "refs": { "LaunchSpecsList$member": null } @@ -8779,7 +8791,7 @@ "AuthorizeSecurityGroupIngressRequest$IpProtocol": "

The IP protocol name (tcp, udp, icmp) or number (see Protocol Numbers). To specify icmpv6, use a set of IP permissions.

[VPC only] Use -1 to specify all protocols. If you specify -1 or a protocol other than tcp, udp, or icmp, traffic on all ports is allowed, regardless of any ports you specify.

Alternatively, use a set of IP permissions to specify multiple rules and a description for the rule.

", "AuthorizeSecurityGroupIngressRequest$SourceSecurityGroupName": "

[EC2-Classic, default VPC] The name of the source security group. You can't specify this parameter in combination with the following parameters: the CIDR IP address range, the start of the port range, the IP protocol, and the end of the port range. Creates rules that grant full ICMP, UDP, and TCP access. To create a rule with a specific IP protocol and port range, use a set of IP permissions instead. For EC2-VPC, the source security group must be in the same VPC.

", "AuthorizeSecurityGroupIngressRequest$SourceSecurityGroupOwnerId": "

[nondefault VPC] The AWS account ID for the source security group, if the source security group is in a different account. You can't specify this parameter in combination with the following parameters: the CIDR IP address range, the IP protocol, the start of the port range, and the end of the port range. Creates rules that grant full ICMP, UDP, and TCP access. To create a rule with a specific IP protocol and port range, use a set of IP permissions instead.

", - "AvailabilityZone$RegionName": "

The name of the region.

", + "AvailabilityZone$RegionName": "

The name of the Region.

", "AvailabilityZone$ZoneName": "

The name of the Availability Zone.

", "AvailabilityZone$ZoneId": "

The ID of the Availability Zone.

", "AvailabilityZoneMessage$Message": "

The message about the Availability Zone.

", @@ -8877,19 +8889,19 @@ "CopyFpgaImageRequest$SourceFpgaImageId": "

The ID of the source AFI.

", "CopyFpgaImageRequest$Description": "

The description for the new AFI.

", "CopyFpgaImageRequest$Name": "

The name for the new AFI. The default is the name of the source AFI.

", - "CopyFpgaImageRequest$SourceRegion": "

The region that contains the source AFI.

", + "CopyFpgaImageRequest$SourceRegion": "

The Region that contains the source AFI.

", "CopyFpgaImageRequest$ClientToken": "

Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see Ensuring Idempotency.

", "CopyFpgaImageResult$FpgaImageId": "

The ID of the new AFI.

", "CopyImageRequest$ClientToken": "

Unique, case-sensitive identifier you provide to ensure idempotency of the request. For more information, see How to Ensure Idempotency in the Amazon Elastic Compute Cloud User Guide.

", - "CopyImageRequest$Description": "

A description for the new AMI in the destination region.

", - "CopyImageRequest$KmsKeyId": "

An identifier for the AWS Key Management Service (AWS KMS) customer master key (CMK) to use when creating the encrypted volume. This parameter is only required if you want to use a non-default CMK; if this parameter is not specified, the default CMK for EBS is used. If a KmsKeyId is specified, the Encrypted flag must also be set.

The CMK identifier may be provided in any of the following formats:

AWS parses KmsKeyId asynchronously, meaning that the action you call may appear to complete even though you provided an invalid identifier. This action will eventually report failure.

The specified CMK must exist in the region that the snapshot is being copied to.

", - "CopyImageRequest$Name": "

The name of the new AMI in the destination region.

", + "CopyImageRequest$Description": "

A description for the new AMI in the destination Region.

", + "CopyImageRequest$KmsKeyId": "

An identifier for the AWS Key Management Service (AWS KMS) customer master key (CMK) to use when creating the encrypted volume. This parameter is only required if you want to use a non-default CMK; if this parameter is not specified, the default CMK for EBS is used. If a KmsKeyId is specified, the Encrypted flag must also be set.

The CMK identifier may be provided in any of the following formats:

AWS parses KmsKeyId asynchronously, meaning that the action you call may appear to complete even though you provided an invalid identifier. This action will eventually report failure.

The specified CMK must exist in the Region that the snapshot is being copied to.

", + "CopyImageRequest$Name": "

The name of the new AMI in the destination Region.

", "CopyImageRequest$SourceImageId": "

The ID of the AMI to copy.

", - "CopyImageRequest$SourceRegion": "

The name of the region that contains the AMI to copy.

", + "CopyImageRequest$SourceRegion": "

The name of the Region that contains the AMI to copy.

", "CopyImageResult$ImageId": "

The ID of the new AMI.

", "CopySnapshotRequest$Description": "

A description for the EBS snapshot.

", "CopySnapshotRequest$DestinationRegion": "

The destination Region to use in the PresignedUrl parameter of a snapshot copy operation. This parameter is only valid for specifying the destination Region in a PresignedUrl parameter, where it is required.

The snapshot copy is sent to the regional endpoint that you sent the HTTP request to (for example, ec2.us-east-1.amazonaws.com). With the AWS CLI, this is specified using the --region parameter or the default Region in your AWS configuration file.

", - "CopySnapshotRequest$KmsKeyId": "

An identifier for the AWS Key Management Service (AWS KMS) customer master key (CMK) to use when creating the encrypted volume. This parameter is only required if you want to use a non-default CMK; if this parameter is not specified, the default CMK for EBS is used. If a KmsKeyId is specified, the Encrypted flag must also be set.

The CMK identifier may be provided in any of the following formats:

AWS parses KmsKeyId asynchronously, meaning that the action you call may appear to complete even though you provided an invalid identifier. The action will eventually fail.

", + "CopySnapshotRequest$KmsKeyId": "

An identifier for the AWS Key Management Service (AWS KMS) customer master key (CMK) to use when creating the encrypted volume. This parameter is only required if you want to use a non-default CMK; if this parameter is not specified, the default CMK for EBS is used. If a KmsKeyId is specified, the Encrypted flag must also be set.

The CMK identifier may be provided in any of the following formats:

AWS parses KmsKeyId asynchronously, meaning that the action you call may appear to complete even though you provided an invalid identifier. The action will eventually fail.

", "CopySnapshotRequest$PresignedUrl": "

When you copy an encrypted source snapshot using the Amazon EC2 Query API, you must supply a pre-signed URL. This parameter is optional for unencrypted snapshots. For more information, see Query Requests.

The PresignedUrl should use the snapshot source endpoint, the CopySnapshot action, and include the SourceRegion, SourceSnapshotId, and DestinationRegion parameters. The PresignedUrl must be signed using AWS Signature Version 4. Because EBS snapshots are stored in Amazon S3, the signing algorithm for this parameter uses the same logic that is described in Authenticating Requests by Using Query Parameters (AWS Signature Version 4) in the Amazon Simple Storage Service API Reference. An invalid or improperly signed PresignedUrl will cause the copy operation to fail asynchronously, and the snapshot will move to an error state.

", "CopySnapshotRequest$SourceRegion": "

The ID of the Region that contains the snapshot to be copied.

", "CopySnapshotRequest$SourceSnapshotId": "

The ID of the EBS snapshot to copy.

", @@ -8987,7 +8999,7 @@ "CreateTransitGatewayVpcAttachmentRequest$VpcId": "

The ID of the VPC.

", "CreateVolumePermission$UserId": "

The AWS account ID to be added or removed.

", "CreateVolumeRequest$AvailabilityZone": "

The Availability Zone in which to create the volume. Use DescribeAvailabilityZones to list the Availability Zones that are currently available to you.

", - "CreateVolumeRequest$KmsKeyId": "

An identifier for the AWS Key Management Service (AWS KMS) customer master key (CMK) to use when creating the encrypted volume. This parameter is only required if you want to use a non-default CMK; if this parameter is not specified, the default CMK for EBS is used. If a KmsKeyId is specified, the Encrypted flag must also be set.

The CMK identifier may be provided in any of the following formats:

AWS parses KmsKeyId asynchronously, meaning that the action you call may appear to complete even though you provided an invalid identifier. The action will eventually fail.

", + "CreateVolumeRequest$KmsKeyId": "

An identifier for the AWS Key Management Service (AWS KMS) customer master key (CMK) to use when creating the encrypted volume. This parameter is only required if you want to use a non-default CMK; if this parameter is not specified, the default CMK for EBS is used. If a KmsKeyId is specified, the Encrypted flag must also be set.

The CMK identifier may be provided in any of the following formats:

AWS parses KmsKeyId asynchronously, meaning that the action you call may appear to complete even though you provided an invalid identifier. The action will eventually fail.

", "CreateVolumeRequest$SnapshotId": "

The snapshot from which to create the volume.

At least one of Size or SnapshotId are required.

", "CreateVpcEndpointConnectionNotificationRequest$ServiceId": "

The ID of the endpoint service.

", "CreateVpcEndpointConnectionNotificationRequest$VpcEndpointId": "

The ID of the endpoint.

", @@ -9004,7 +9016,7 @@ "CreateVpcPeeringConnectionRequest$PeerOwnerId": "

The AWS account ID of the owner of the accepter VPC.

Default: Your AWS account ID

", "CreateVpcPeeringConnectionRequest$PeerVpcId": "

The ID of the VPC with which you are creating the VPC peering connection. You must specify this parameter in the request.

", "CreateVpcPeeringConnectionRequest$VpcId": "

The ID of the requester VPC. You must specify this parameter in the request.

", - "CreateVpcPeeringConnectionRequest$PeerRegion": "

The region code for the accepter VPC, if the accepter VPC is located in a region other than the region in which you make the request.

Default: The region in which you make the request.

", + "CreateVpcPeeringConnectionRequest$PeerRegion": "

The Region code for the accepter VPC, if the accepter VPC is located in a Region other than the Region in which you make the request.

Default: The Region in which you make the request.

", "CreateVpcRequest$CidrBlock": "

The IPv4 network range for the VPC, in CIDR notation. For example, 10.0.0.0/16.

", "CreateVpnConnectionRequest$CustomerGatewayId": "

The ID of the customer gateway.

", "CreateVpnConnectionRequest$Type": "

The type of VPN connection (ipsec.1).

", @@ -9075,6 +9087,8 @@ "DescribeClientVpnConnectionsRequest$ClientVpnEndpointId": "

The ID of the Client VPN endpoint.

", "DescribeClientVpnRoutesRequest$ClientVpnEndpointId": "

The ID of the Client VPN endpoint.

", "DescribeClientVpnTargetNetworksRequest$ClientVpnEndpointId": "

The ID of the Client VPN endpoint.

", + "DescribeDhcpOptionsRequest$NextToken": "

The token for the next page of results.

", + "DescribeDhcpOptionsResult$NextToken": "

The token to use to retrieve the next page of results. This value is null when there are no more results to return.

", "DescribeEgressOnlyInternetGatewaysRequest$NextToken": "

The token for the next page of results.

", "DescribeEgressOnlyInternetGatewaysResult$NextToken": "

The token to use to retrieve the next page of results. This value is null when there are no more results to return.

", "DescribeElasticGpusRequest$NextToken": "

The token to request the next page of results.

", @@ -9174,6 +9188,8 @@ "DescribeSpotPriceHistoryResult$NextToken": "

The token required to retrieve the next set of results. This value is null or an empty string when there are no more results to return.

", "DescribeStaleSecurityGroupsRequest$VpcId": "

The ID of the VPC.

", "DescribeStaleSecurityGroupsResult$NextToken": "

The token to use when requesting the next set of items. If there are no additional items to return, the string is empty.

", + "DescribeSubnetsRequest$NextToken": "

The token for the next page of results.

", + "DescribeSubnetsResult$NextToken": "

The token to use to retrieve the next page of results. This value is null when there are no more results to return.

", "DescribeTagsRequest$NextToken": "

The token to retrieve the next page of results.

", "DescribeTagsResult$NextToken": "

The token to use to retrieve the next page of results. This value is null when there are no more results to return.

", "DescribeTransitGatewayAttachmentsRequest$NextToken": "

The token for the next page of results.

", @@ -9409,7 +9425,7 @@ "ImportImageRequest$ClientToken": "

The token to enable idempotency for VM import requests.

", "ImportImageRequest$Description": "

A description string for the import image task.

", "ImportImageRequest$Hypervisor": "

The target hypervisor platform.

Valid values: xen

", - "ImportImageRequest$KmsKeyId": "

An identifier for the AWS Key Management Service (AWS KMS) customer master key (CMK) to use when creating the encrypted AMI. This parameter is only required if you want to use a non-default CMK; if this parameter is not specified, the default CMK for EBS is used. If a KmsKeyId is specified, the Encrypted flag must also be set.

The CMK identifier may be provided in any of the following formats:

AWS parses KmsKeyId asynchronously, meaning that the action you call may appear to complete even though you provided an invalid identifier. This action will eventually report failure.

The specified CMK must exist in the region that the AMI is being copied to.

", + "ImportImageRequest$KmsKeyId": "

An identifier for the AWS Key Management Service (AWS KMS) customer master key (CMK) to use when creating the encrypted AMI. This parameter is only required if you want to use a non-default CMK; if this parameter is not specified, the default CMK for EBS is used. If a KmsKeyId is specified, the Encrypted flag must also be set.

The CMK identifier may be provided in any of the following formats:

AWS parses KmsKeyId asynchronously, meaning that the action you call may appear to complete even though you provided an invalid identifier. This action will eventually report failure.

The specified CMK must exist in the Region that the AMI is being copied to.

", "ImportImageRequest$LicenseType": "

The license type to be used for the Amazon Machine Image (AMI) after importing.

Note: You may only use BYOL if you have existing licenses with rights to use these licenses in a third party cloud like AWS. For more information, see Prerequisites in the VM Import/Export User Guide.

Valid values include:

Default value: Auto

", "ImportImageRequest$Platform": "

The operating system of the virtual machine.

Valid values: Windows | Linux

", "ImportImageRequest$RoleName": "

The name of the role to use when not using the default role, 'vmimport'.

", @@ -9450,7 +9466,7 @@ "ImportKeyPairResult$KeyName": "

The key pair name you provided.

", "ImportSnapshotRequest$ClientToken": "

Token to enable idempotency for VM import requests.

", "ImportSnapshotRequest$Description": "

The description string for the import snapshot task.

", - "ImportSnapshotRequest$KmsKeyId": "

An identifier for the AWS Key Management Service (AWS KMS) customer master key (CMK) to use when creating the encrypted snapshot. This parameter is only required if you want to use a non-default CMK; if this parameter is not specified, the default CMK for EBS is used. If a KmsKeyId is specified, the Encrypted flag must also be set.

The CMK identifier may be provided in any of the following formats:

AWS parses KmsKeyId asynchronously, meaning that the action you call may appear to complete even though you provided an invalid identifier. This action will eventually report failure.

The specified CMK must exist in the region that the snapshot is being copied to.

", + "ImportSnapshotRequest$KmsKeyId": "

An identifier for the AWS Key Management Service (AWS KMS) customer master key (CMK) to use when creating the encrypted snapshot. This parameter is only required if you want to use a non-default CMK; if this parameter is not specified, the default CMK for EBS is used. If a KmsKeyId is specified, the Encrypted flag must also be set.

The CMK identifier may be provided in any of the following formats:

AWS parses KmsKeyId asynchronously, meaning that the action you call may appear to complete even though you provided an invalid identifier. This action will eventually report failure.

The specified CMK must exist in the Region that the snapshot is being copied to.

", "ImportSnapshotRequest$RoleName": "

The name of the role to use when not using the default role, 'vmimport'.

", "ImportSnapshotResult$Description": "

A description of the import snapshot task.

", "ImportSnapshotResult$ImportTaskId": "

The ID of the import snapshot task.

", @@ -9509,7 +9525,7 @@ "InstanceNetworkInterfaceAttachment$AttachmentId": "

The ID of the network interface attachment.

", "InstanceNetworkInterfaceSpecification$Description": "

The description of the network interface. Applies only if creating a network interface when launching an instance.

", "InstanceNetworkInterfaceSpecification$NetworkInterfaceId": "

The ID of the network interface.

", - "InstanceNetworkInterfaceSpecification$PrivateIpAddress": "

The private IPv4 address of the network interface. Applies only if creating a network interface when launching an instance. You cannot specify this option if you're launching more than one instance in a RunInstances request.

", + "InstanceNetworkInterfaceSpecification$PrivateIpAddress": "

The private IPv4 address of the network interface. Applies only if creating a network interface when launching an instance. You cannot specify this option if you're launching more than one instance in a RunInstances request.

", "InstanceNetworkInterfaceSpecification$SubnetId": "

The ID of the subnet associated with the network string. Applies only if creating a network interface when launching an instance.

", "InstanceNetworkInterfaceSpecification$InterfaceType": "

The type of interface.

", "InstancePrivateIpAddress$PrivateDnsName": "

The private IPv4 DNS name.

", @@ -9640,9 +9656,9 @@ "ModifyVpcEndpointServicePermissionsRequest$ServiceId": "

The ID of the service.

", "ModifyVpcPeeringConnectionOptionsRequest$VpcPeeringConnectionId": "

The ID of the VPC peering connection.

", "ModifyVpcTenancyRequest$VpcId": "

The ID of the VPC.

", - "ModifyVpnConnectionRequest$VpnConnectionId": null, - "ModifyVpnConnectionRequest$TransitGatewayId": null, - "ModifyVpnConnectionRequest$VpnGatewayId": null, + "ModifyVpnConnectionRequest$VpnConnectionId": "

The ID of the VPN connection.

", + "ModifyVpnConnectionRequest$TransitGatewayId": "

The ID of the transit gateway.

", + "ModifyVpnConnectionRequest$VpnGatewayId": "

The ID of the virtual private gateway at the AWS side of the VPN connection.

", "MoveAddressToVpcRequest$PublicIp": "

The Elastic IP address.

", "MoveAddressToVpcResult$AllocationId": "

The allocation ID for the Elastic IP address.

", "MovingAddressStatus$PublicIp": "

The Elastic IP address.

", @@ -9699,7 +9715,7 @@ "PciId$VendorId": "

The ID of the vendor.

", "PciId$SubsystemId": "

The ID of the subsystem.

", "PciId$SubsystemVendorId": "

The ID of the vendor for the subsystem.

", - "Placement$AvailabilityZone": "

The Availability Zone of the instance.

If not specified, an Availability Zone will be automatically chosen for you based on the load balancing criteria for the region.

", + "Placement$AvailabilityZone": "

The Availability Zone of the instance.

If not specified, an Availability Zone will be automatically chosen for you based on the load balancing criteria for the Region.

", "Placement$Affinity": "

The affinity setting for the instance on the Dedicated Host. This parameter is not supported for the ImportInstance command.

", "Placement$GroupName": "

The name of the placement group the instance is in.

", "Placement$HostId": "

The ID of the Dedicated Host on which the instance resides. This parameter is not supported for the ImportInstance command.

", @@ -9719,7 +9735,7 @@ "ProductCodeStringList$member": null, "ProductDescriptionList$member": null, "PropagatingVgw$GatewayId": "

The ID of the virtual private gateway.

", - "ProvisionByoipCidrRequest$Cidr": "

The public IPv4 address range, in CIDR notation. The most specific prefix that you can specify is /24. The address range cannot overlap with another address range that you've brought to this or another region.

", + "ProvisionByoipCidrRequest$Cidr": "

The public IPv4 address range, in CIDR notation. The most specific prefix that you can specify is /24. The address range cannot overlap with another address range that you've brought to this or another Region.

", "ProvisionByoipCidrRequest$Description": "

A description for the address range and the address pool.

", "ProvisionedBandwidth$Provisioned": "

Reserved. If you need to sustain traffic greater than the documented limits, contact us through the Support Center.

", "ProvisionedBandwidth$Requested": "

Reserved. If you need to sustain traffic greater than the documented limits, contact us through the Support Center.

", @@ -9743,8 +9759,8 @@ "PurchaseReservedInstancesOfferingRequest$ReservedInstancesOfferingId": "

The ID of the Reserved Instance offering to purchase.

", "PurchaseReservedInstancesOfferingResult$ReservedInstancesId": "

The IDs of the purchased Reserved Instances.

", "PurchaseScheduledInstancesRequest$ClientToken": "

Unique, case-sensitive identifier that ensures the idempotency of the request. For more information, see Ensuring Idempotency.

", - "Region$Endpoint": "

The region service endpoint.

", - "Region$RegionName": "

The name of the region.

", + "Region$Endpoint": "

The Region service endpoint.

", + "Region$RegionName": "

The name of the Region.

", "RegionNameStringList$member": null, "RegisterImageRequest$ImageLocation": "

The full path to your AMI manifest in Amazon S3 storage.

", "RegisterImageRequest$Description": "

A description for your AMI.

", @@ -9883,7 +9899,7 @@ "RouteTableAssociation$SubnetId": "

The ID of the subnet. A subnet ID is not returned for an implicit association.

", "RunInstancesRequest$ImageId": "

The ID of the AMI. An AMI is required to launch an instance and must be specified here or in a launch template.

", "RunInstancesRequest$KernelId": "

The ID of the kernel.

We recommend that you use PV-GRUB instead of kernels and RAM disks. For more information, see PV-GRUB in the Amazon Elastic Compute Cloud User Guide.

", - "RunInstancesRequest$KeyName": "

The name of the key pair. You can create a key pair using CreateKeyPair or ImportKeyPair.

If you do not specify a key pair, you can't connect to the instance unless you choose an AMI that is configured to allow users another way to log in.

", + "RunInstancesRequest$KeyName": "

The name of the key pair. You can create a key pair using CreateKeyPair or ImportKeyPair.

If you do not specify a key pair, you can't connect to the instance unless you choose an AMI that is configured to allow users another way to log in.

", "RunInstancesRequest$RamdiskId": "

The ID of the RAM disk to select. Some kernels require additional drivers at launch. Check the kernel requirements for information about whether you need to specify a RAM disk. To find kernel requirements, go to the AWS Resource Center and search for the kernel ID.

We recommend that you use PV-GRUB instead of kernels and RAM disks. For more information, see PV-GRUB in the Amazon Elastic Compute Cloud User Guide.

", "RunInstancesRequest$SubnetId": "

[EC2-VPC] The ID of the subnet to launch the instance into.

You cannot specify this option and the network interfaces option in the same request.

", "RunInstancesRequest$UserData": "

The user data to make available to the instance. For more information, see Running Commands on Your Linux Instance at Launch (Linux) and Adding User Data (Windows). If you are using a command line tool, base64-encoding is performed for you, and you can load the text from a file. Otherwise, you must provide base64-encoded text. User data is limited to 16 KB.

", @@ -9990,13 +10006,13 @@ "SpotFleetLaunchSpecification$ImageId": "

The ID of the AMI.

", "SpotFleetLaunchSpecification$KernelId": "

The ID of the kernel.

", "SpotFleetLaunchSpecification$KeyName": "

The name of the key pair.

", - "SpotFleetLaunchSpecification$RamdiskId": "

The ID of the RAM disk.

", + "SpotFleetLaunchSpecification$RamdiskId": "

The ID of the RAM disk. Some kernels require additional drivers at launch. Check the kernel requirements for information about whether you need to specify a RAM disk. To find kernel requirements, refer to the AWS Resource Center and search for the kernel ID.

", "SpotFleetLaunchSpecification$SpotPrice": "

The maximum price per unit hour that you are willing to pay for a Spot Instance. If this value is not specified, the default is the Spot price specified for the fleet. To determine the Spot price per unit hour, divide the Spot price by the value of WeightedCapacity.

", "SpotFleetLaunchSpecification$SubnetId": "

The ID of the subnet in which to launch the instances. To specify multiple subnets, separate them using commas; for example, \"subnet-a61dafcf, subnet-65ea5f08\".

", - "SpotFleetLaunchSpecification$UserData": "

The Base64-encoded user data to make available to the instances.

", + "SpotFleetLaunchSpecification$UserData": "

The Base64-encoded user data that instances use when starting up.

", "SpotFleetRequestConfig$SpotFleetRequestId": "

The ID of the Spot Fleet request.

", "SpotFleetRequestConfigData$ClientToken": "

A unique, case-sensitive identifier that you provide to ensure the idempotency of your listings. This helps to avoid duplicate listings. For more information, see Ensuring Idempotency.

", - "SpotFleetRequestConfigData$IamFleetRole": "

Grants the Spot Fleet permission to terminate Spot Instances on your behalf when you cancel its Spot Fleet request using CancelSpotFleetRequests or when the Spot Fleet request expires, if you set terminateInstancesWithExpiration.

", + "SpotFleetRequestConfigData$IamFleetRole": "

The Amazon Resource Name (ARN) of an AWS Identity and Access Management (IAM) role that grants the Spot Fleet the permission to request, launch, terminate, and tag instances on your behalf. For more information, see Spot Fleet Prerequisites in the Amazon EC2 User Guide for Linux Instances. Spot Fleet can terminate Spot Instances on your behalf when you cancel its Spot Fleet request using CancelSpotFleetRequests or when the Spot Fleet request expires, if you set TerminateInstancesWithExpiration.

", "SpotFleetRequestConfigData$SpotPrice": "

The maximum price per unit hour that you are willing to pay for a Spot Instance. The default is the On-Demand price.

", "SpotInstanceRequest$ActualBlockHourlyPrice": "

If you specified a duration and your Spot Instance request was fulfilled, this is the fixed hourly price in effect for the Spot Instance while it runs.

", "SpotInstanceRequest$AvailabilityZoneGroup": "

The Availability Zone group. If you specify the same Availability Zone group for all Spot Instance requests, all Spot Instances are launched in the same Availability Zone.

", @@ -10165,7 +10181,7 @@ "VpcPeeringConnectionVpcInfo$CidrBlock": "

The IPv4 CIDR block for the VPC.

", "VpcPeeringConnectionVpcInfo$OwnerId": "

The AWS account ID of the VPC owner.

", "VpcPeeringConnectionVpcInfo$VpcId": "

The ID of the VPC.

", - "VpcPeeringConnectionVpcInfo$Region": "

The region in which the VPC is located.

", + "VpcPeeringConnectionVpcInfo$Region": "

The Region in which the VPC is located.

", "VpnConnection$CustomerGatewayConfiguration": "

The configuration information for the VPN connection's customer gateway (in the native XML format). This element is always present in the CreateVpnConnection response; however, it's present in the DescribeVpnConnections response only if the VPN connection is in the pending or available state.

", "VpnConnection$CustomerGatewayId": "

The ID of the customer gateway at your end of the VPN connection.

", "VpnConnection$Category": "

The category of the VPN connection. A value of VPN indicates an AWS VPN connection. A value of VPN-Classic indicates an AWS Classic VPN connection.

", @@ -10336,7 +10352,7 @@ "CreateTransitGatewayRouteTableRequest$TagSpecifications": "

The tags to apply to the transit gateway route table.

", "CreateTransitGatewayVpcAttachmentRequest$TagSpecifications": "

The tags to apply to the VPC attachment.

", "CreateVolumeRequest$TagSpecifications": "

The tags to apply to the volume during creation.

", - "RunInstancesRequest$TagSpecifications": "

The tags to apply to the resources during launch. You can only tag instances and volumes on launch. The specified tags are applied to all instances or volumes that are created during launch. To tag a resource after it has been created, see CreateTags.

" + "RunInstancesRequest$TagSpecifications": "

The tags to apply to the resources during launch. You can only tag instances and volumes on launch. The specified tags are applied to all instances or volumes that are created during launch. To tag a resource after it has been created, see CreateTags.

" } }, "TargetCapacitySpecification": { @@ -10426,7 +10442,7 @@ "DescribeReservedInstancesOfferingsRequest$InstanceTenancy": "

The tenancy of the instances covered by the reservation. A Reserved Instance with a tenancy of dedicated is applied to instances that run in a VPC on single-tenant hardware (i.e., Dedicated Instances).

Important: The host value cannot be used with this parameter. Use the default or dedicated values only.

Default: default

", "LaunchTemplatePlacement$Tenancy": "

The tenancy of the instance (if the instance is running in a VPC). An instance with a tenancy of dedicated runs on single-tenant hardware.

", "LaunchTemplatePlacementRequest$Tenancy": "

The tenancy of the instance (if the instance is running in a VPC). An instance with a tenancy of dedicated runs on single-tenant hardware.

", - "Placement$Tenancy": "

The tenancy of the instance (if the instance is running in a VPC). An instance with a tenancy of dedicated runs on single-tenant hardware. The host tenancy is not supported for the ImportInstance command.

", + "Placement$Tenancy": "

The tenancy of the instance (if the instance is running in a VPC). An instance with a tenancy of dedicated runs on single-tenant hardware. The host tenancy is not supported for the ImportInstance command.

", "ReservedInstances$InstanceTenancy": "

The tenancy of the instance.

", "ReservedInstancesOffering$InstanceTenancy": "

The tenancy of the instance.

", "SpotPlacement$Tenancy": "

The tenancy of the instance (if the instance is running in a VPC). An instance with a tenancy of dedicated runs on single-tenant hardware. The host tenancy is not supported for Spot Instances.

", @@ -11452,8 +11468,8 @@ "base": null, "refs": { "ReservedInstances$Scope": "

The scope of the Reserved Instance.

", - "ReservedInstancesConfiguration$Scope": "

Whether the Reserved Instance is applied to instances in a region or instances in a specific Availability Zone.

", - "ReservedInstancesOffering$Scope": "

Whether the Reserved Instance is applied to instances in a region or an Availability Zone.

" + "ReservedInstancesConfiguration$Scope": "

Whether the Reserved Instance is applied to instances in a Region or instances in a specific Availability Zone.

", + "ReservedInstancesOffering$Scope": "

Whether the Reserved Instance is applied to instances in a Region or an Availability Zone.

" } } } diff --git a/models/apis/ec2/2016-11-15/paginators-1.json b/models/apis/ec2/2016-11-15/paginators-1.json index 3d91934d200..6f8012d42b4 100755 --- a/models/apis/ec2/2016-11-15/paginators-1.json +++ b/models/apis/ec2/2016-11-15/paginators-1.json @@ -67,6 +67,9 @@ "result_key": "CustomerGateways" }, "DescribeDhcpOptions": { + "input_token": "NextToken", + "limit_key": "MaxResults", + "output_token": "NextToken", "result_key": "DhcpOptions" }, "DescribeEgressOnlyInternetGateways": { @@ -300,6 +303,9 @@ "result_key": "StaleSecurityGroupSet" }, "DescribeSubnets": { + "input_token": "NextToken", + "limit_key": "MaxResults", + "output_token": "NextToken", "result_key": "Subnets" }, "DescribeTags": { diff --git a/models/apis/storagegateway/2013-06-30/api-2.json b/models/apis/storagegateway/2013-06-30/api-2.json index e0370077d24..3cdc00b0d88 100644 --- a/models/apis/storagegateway/2013-06-30/api-2.json +++ b/models/apis/storagegateway/2013-06-30/api-2.json @@ -1279,7 +1279,8 @@ ], "members":{ "VolumeARN":{"shape":"VolumeARN"}, - "SnapshotDescription":{"shape":"SnapshotDescription"} + "SnapshotDescription":{"shape":"SnapshotDescription"}, + "Tags":{"shape":"Tags"} } }, "CreateSnapshotOutput":{ @@ -2950,7 +2951,8 @@ "VolumeARN":{"shape":"VolumeARN"}, "StartAt":{"shape":"HourOfDay"}, "RecurrenceInHours":{"shape":"RecurrenceInHours"}, - "Description":{"shape":"Description"} + "Description":{"shape":"Description"}, + "Tags":{"shape":"Tags"} } }, "UpdateSnapshotScheduleOutput":{ diff --git a/models/apis/storagegateway/2013-06-30/docs-2.json b/models/apis/storagegateway/2013-06-30/docs-2.json index 73a893f4629..d786d2a8e74 100644 --- a/models/apis/storagegateway/2013-06-30/docs-2.json +++ b/models/apis/storagegateway/2013-06-30/docs-2.json @@ -180,7 +180,7 @@ "CreateSMBFileShareInput$ReadOnly": "

A value that sets the write status of a file share. This value is true if the write status is read-only, and otherwise false.

", "CreateSMBFileShareInput$GuessMIMETypeEnabled": "

A value that enables guessing of the MIME type for uploaded objects based on file extensions. Set this value to true to enable MIME type guessing, and otherwise to false. The default value is true.

", "CreateSMBFileShareInput$RequesterPays": "

A value that sets who pays the cost of the request and the cost associated with data download from the S3 bucket. If this value is set to true, the requester pays the costs. Otherwise the S3 bucket owner pays. However, the S3 bucket owner always pays the cost of storing data.

RequesterPays is a configuration for the S3 bucket that backs the file share, so make sure that the configuration on the file share is the same as the S3 bucket configuration.

", - "CreateSMBFileShareInput$SMBACLEnabled": "

Set this value to \"true to enable ACL (access control list) on the SMB file share. Set it to \"false\" to map file and directory permissions to the POSIX permissions.

", + "CreateSMBFileShareInput$SMBACLEnabled": "

Set this value to \"true to enable ACL (access control list) on the SMB file share. Set it to \"false\" to map file and directory permissions to the POSIX permissions.

For more information, see https://docs.aws.amazon.com/storagegateway/latest/userguide/smb-acl.html in the Storage Gateway User Guide.

", "CreateStorediSCSIVolumeInput$KMSEncrypted": "

True to use Amazon S3 server side encryption with your own AWS KMS key, or false to use a key managed by Amazon S3. Optional.

", "CreateTapeWithBarcodeInput$KMSEncrypted": "

True to use Amazon S3 server side encryption with your own AWS KMS key, or false to use a key managed by Amazon S3. Optional.

", "CreateTapesInput$KMSEncrypted": "

True to use Amazon S3 server side encryption with your own AWS KMS key, or false to use a key managed by Amazon S3. Optional.

", @@ -193,7 +193,7 @@ "SMBFileShareInfo$ReadOnly": "

A value that sets the write status of a file share. This value is true if the write status is read-only, and otherwise false.

", "SMBFileShareInfo$GuessMIMETypeEnabled": "

A value that enables guessing of the MIME type for uploaded objects based on file extensions. Set this value to true to enable MIME type guessing, and otherwise to false. The default value is true.

", "SMBFileShareInfo$RequesterPays": "

A value that sets who pays the cost of the request and the cost associated with data download from the S3 bucket. If this value is set to true, the requester pays the costs. Otherwise the S3 bucket owner pays. However, the S3 bucket owner always pays the cost of storing data.

RequesterPays is a configuration for the S3 bucket that backs the file share, so make sure that the configuration on the file share is the same as the S3 bucket configuration.

", - "SMBFileShareInfo$SMBACLEnabled": "

If this value is set to \"true\", indicates that ACL (access control list) is enabled on the SMB file share. If it is set to \"false\", it indicates that file and directory permissions are mapped to the POSIX permission.

", + "SMBFileShareInfo$SMBACLEnabled": "

If this value is set to \"true\", indicates that ACL (access control list) is enabled on the SMB file share. If it is set to \"false\", it indicates that file and directory permissions are mapped to the POSIX permission.

For more information, see https://docs.aws.amazon.com/storagegateway/latest/userguide/smb-acl.html in the Storage Gateway User Guide.

", "UpdateNFSFileShareInput$KMSEncrypted": "

True to use Amazon S3 server side encryption with your own AWS KMS key, or false to use a key managed by Amazon S3. Optional.

", "UpdateNFSFileShareInput$ReadOnly": "

A value that sets the write status of a file share. This value is true if the write status is read-only, and otherwise false.

", "UpdateNFSFileShareInput$GuessMIMETypeEnabled": "

A value that enables guessing of the MIME type for uploaded objects based on file extensions. Set this value to true to enable MIME type guessing, and otherwise to false. The default value is true.

", @@ -202,7 +202,7 @@ "UpdateSMBFileShareInput$ReadOnly": "

A value that sets the write status of a file share. This value is true if the write status is read-only, and otherwise false.

", "UpdateSMBFileShareInput$GuessMIMETypeEnabled": "

A value that enables guessing of the MIME type for uploaded objects based on file extensions. Set this value to true to enable MIME type guessing, and otherwise to false. The default value is true.

", "UpdateSMBFileShareInput$RequesterPays": "

A value that sets who pays the cost of the request and the cost associated with data download from the S3 bucket. If this value is set to true, the requester pays the costs. Otherwise the S3 bucket owner pays. However, the S3 bucket owner always pays the cost of storing data.

RequesterPays is a configuration for the S3 bucket that backs the file share, so make sure that the configuration on the file share is the same as the S3 bucket configuration.

", - "UpdateSMBFileShareInput$SMBACLEnabled": "

Set this value to \"true to enable ACL (access control list) on the SMB file share. Set it to \"false\" to map file and directory permissions to the POSIX permissions.

" + "UpdateSMBFileShareInput$SMBACLEnabled": "

Set this value to \"true to enable ACL (access control list) on the SMB file share. Set it to \"false\" to map file and directory permissions to the POSIX permissions.

For more information, see https://docs.aws.amazon.com/storagegateway/latest/userguide/smb-acl.htmlin the Storage Gateway User Guide.

" } }, "CachediSCSIVolume": { @@ -1593,13 +1593,15 @@ "CreateCachediSCSIVolumeInput$Tags": "

A list of up to 50 tags that can be assigned to a cached volume. Each tag is a key-value pair.

Valid characters for key and value are letters, spaces, and numbers representable in UTF-8 format, and the following special characters: + - = . _ : / @. The maximum length of a tag's key is 128 characters, and the maximum length for a tag's value is 256.

", "CreateNFSFileShareInput$Tags": "

A list of up to 50 tags that can be assigned to the NFS file share. Each tag is a key-value pair.

Valid characters for key and value are letters, spaces, and numbers representable in UTF-8 format, and the following special characters: + - = . _ : / @. The maximum length of a tag's key is 128 characters, and the maximum length for a tag's value is 256.

", "CreateSMBFileShareInput$Tags": "

A list of up to 50 tags that can be assigned to the NFS file share. Each tag is a key-value pair.

Valid characters for key and value are letters, spaces, and numbers representable in UTF-8 format, and the following special characters: + - = . _ : / @. The maximum length of a tag's key is 128 characters, and the maximum length for a tag's value is 256.

", + "CreateSnapshotInput$Tags": "

A list of up to 50 tags that can be assigned to a snapshot. Each tag is a key-value pair.

Valid characters for key and value are letters, spaces, and numbers representable in UTF-8 format, and the following special characters: + - = . _ : / @. The maximum length of a tag's key is 128 characters, and the maximum length for a tag's value is 256.

", "CreateStorediSCSIVolumeInput$Tags": "

A list of up to 50 tags that can be assigned to a stored volume. Each tag is a key-value pair.

Valid characters for key and value are letters, spaces, and numbers representable in UTF-8 format, and the following special characters: + - = . _ : / @. The maximum length of a tag's key is 128 characters, and the maximum length for a tag's value is 256.

", "CreateTapeWithBarcodeInput$Tags": "

A list of up to 50 tags that can be assigned to a virtual tape that has a barcode. Each tag is a key-value pair.

Valid characters for key and value are letters, spaces, and numbers representable in UTF-8 format, and the following special characters: + - = . _ : / @. The maximum length of a tag's key is 128 characters, and the maximum length for a tag's value is 256.

", "CreateTapesInput$Tags": "

A list of up to 50 tags that can be assigned to a virtual tape. Each tag is a key-value pair.

Valid characters for key and value are letters, spaces, and numbers representable in UTF-8 format, and the following special characters: + - = . _ : / @. The maximum length of a tag's key is 128 characters, and the maximum length for a tag's value is 256.

", "DescribeGatewayInformationOutput$Tags": "

A list of up to 50 tags assigned to the gateway, sorted alphabetically by key name. Each tag is a key-value pair. For a gateway with more than 10 tags assigned, you can view all tags using the ListTagsForResource API operation.

", "ListTagsForResourceOutput$Tags": "

An array that contains the tags for the specified resource.

", "NFSFileShareInfo$Tags": "

A list of up to 50 tags assigned to the NFS file share, sorted alphabetically by key name. Each tag is a key-value pair. For a gateway with more than 10 tags assigned, you can view all tags using the ListTagsForResource API operation.

", - "SMBFileShareInfo$Tags": "

A list of up to 50 tags assigned to the SMB file share, sorted alphabetically by key name. Each tag is a key-value pair. For a gateway with more than 10 tags assigned, you can view all tags using the ListTagsForResource API operation.

" + "SMBFileShareInfo$Tags": "

A list of up to 50 tags assigned to the SMB file share, sorted alphabetically by key name. Each tag is a key-value pair. For a gateway with more than 10 tags assigned, you can view all tags using the ListTagsForResource API operation.

", + "UpdateSnapshotScheduleInput$Tags": "

A list of up to 50 tags that can be assigned to a snapshot. Each tag is a key-value pair.

Valid characters for key and value are letters, spaces, and numbers representable in UTF-8 format, and the following special characters: + - = . _ : / @. The maximum length of a tag's key is 128 characters, and the maximum length for a tag's value is 256.

" } }, "Tape": { diff --git a/service/chime/api.go b/service/chime/api.go index 784f64714aa..1ba728ce95d 100644 --- a/service/chime/api.go +++ b/service/chime/api.go @@ -76,7 +76,7 @@ func (c *Chime) AssociatePhoneNumberWithUserRequest(input *AssociatePhoneNumberW // // * ErrCodeForbiddenException "ForbiddenException" // The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported region. +// when a user tries to create an account from an unsupported Region. // // * ErrCodeBadRequestException "BadRequestException" // The input parameters don't match the service's restrictions. @@ -174,7 +174,7 @@ func (c *Chime) AssociatePhoneNumbersWithVoiceConnectorRequest(input *AssociateP // // * ErrCodeForbiddenException "ForbiddenException" // The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported region. +// when a user tries to create an account from an unsupported Region. // // * ErrCodeBadRequestException "BadRequestException" // The input parameters don't match the service's restrictions. @@ -276,7 +276,7 @@ func (c *Chime) BatchDeletePhoneNumberRequest(input *BatchDeletePhoneNumberInput // // * ErrCodeForbiddenException "ForbiddenException" // The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported region. +// when a user tries to create an account from an unsupported Region. // // * ErrCodeBadRequestException "BadRequestException" // The input parameters don't match the service's restrictions. @@ -361,7 +361,7 @@ func (c *Chime) BatchSuspendUserRequest(input *BatchSuspendUserInput) (req *requ // Chime Accounts (https://docs.aws.amazon.com/chime/latest/ag/manage-chime-account.html) // in the Amazon Chime Administration Guide. // -// Users suspended from a Team account are dissociated from the account, but +// Users suspended from a Team account are dissasociated from the account, but // they can continue to use Amazon Chime as free users. To remove the suspension // from suspended Team account users, invite them to the Team account again. // You can use the InviteUsers action to do so. @@ -388,7 +388,7 @@ func (c *Chime) BatchSuspendUserRequest(input *BatchSuspendUserInput) (req *requ // // * ErrCodeForbiddenException "ForbiddenException" // The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported region. +// when a user tries to create an account from an unsupported Region. // // * ErrCodeBadRequestException "BadRequestException" // The input parameters don't match the service's restrictions. @@ -493,7 +493,7 @@ func (c *Chime) BatchUnsuspendUserRequest(input *BatchUnsuspendUserInput) (req * // // * ErrCodeForbiddenException "ForbiddenException" // The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported region. +// when a user tries to create an account from an unsupported Region. // // * ErrCodeBadRequestException "BadRequestException" // The input parameters don't match the service's restrictions. @@ -592,7 +592,7 @@ func (c *Chime) BatchUpdatePhoneNumberRequest(input *BatchUpdatePhoneNumberInput // // * ErrCodeForbiddenException "ForbiddenException" // The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported region. +// when a user tries to create an account from an unsupported Region. // // * ErrCodeBadRequestException "BadRequestException" // The input parameters don't match the service's restrictions. @@ -692,7 +692,7 @@ func (c *Chime) BatchUpdateUserRequest(input *BatchUpdateUserInput) (req *reques // // * ErrCodeForbiddenException "ForbiddenException" // The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported region. +// when a user tries to create an account from an unsupported Region. // // * ErrCodeBadRequestException "BadRequestException" // The input parameters don't match the service's restrictions. @@ -793,7 +793,7 @@ func (c *Chime) CreateAccountRequest(input *CreateAccountInput) (req *request.Re // // * ErrCodeForbiddenException "ForbiddenException" // The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported region. +// when a user tries to create an account from an unsupported Region. // // * ErrCodeBadRequestException "BadRequestException" // The input parameters don't match the service's restrictions. @@ -829,6 +829,104 @@ func (c *Chime) CreateAccountWithContext(ctx aws.Context, input *CreateAccountIn return out, req.Send() } +const opCreateBot = "CreateBot" + +// 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 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 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/CreateBot +func (c *Chime) CreateBotRequest(input *CreateBotInput) (req *request.Request, output *CreateBotOutput) { + op := &request.Operation{ + Name: opCreateBot, + HTTPMethod: "POST", + HTTPPath: "/accounts/{accountId}/bots", + } + + if input == nil { + input = &CreateBotInput{} + } + + output = &CreateBotOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateBot API operation for Amazon Chime. +// +// 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 CreateBot for usage and error information. +// +// Returned Error Codes: +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// The service is currently unavailable. +// +// * ErrCodeServiceFailureException "ServiceFailureException" +// The service encountered an unexpected error. +// +// * ErrCodeForbiddenException "ForbiddenException" +// The client is permanently forbidden from making the request. For example, +// when a user tries to create an account from an unsupported Region. +// +// * ErrCodeBadRequestException "BadRequestException" +// The input parameters don't match the service's restrictions. +// +// * ErrCodeUnauthorizedClientException "UnauthorizedClientException" +// The client is not currently authorized to make the request. +// +// * ErrCodeResourceLimitExceededException "ResourceLimitExceededException" +// The request exceeds the resource limit. +// +// * ErrCodeNotFoundException "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/CreateBot +func (c *Chime) CreateBot(input *CreateBotInput) (*CreateBotOutput, error) { + req, out := c.CreateBotRequest(input) + return out, req.Send() +} + +// CreateBotWithContext is the same as CreateBot 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. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the 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) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opCreatePhoneNumberOrder = "CreatePhoneNumberOrder" // CreatePhoneNumberOrderRequest generates a "aws/request.Request" representing the @@ -889,7 +987,7 @@ func (c *Chime) CreatePhoneNumberOrderRequest(input *CreatePhoneNumberOrderInput // // * ErrCodeForbiddenException "ForbiddenException" // The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported region. +// when a user tries to create an account from an unsupported Region. // // * ErrCodeBadRequestException "BadRequestException" // The input parameters don't match the service's restrictions. @@ -988,7 +1086,7 @@ func (c *Chime) CreateVoiceConnectorRequest(input *CreateVoiceConnectorInput) (r // // * ErrCodeForbiddenException "ForbiddenException" // The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported region. +// when a user tries to create an account from an unsupported Region. // // * ErrCodeBadRequestException "BadRequestException" // The input parameters don't match the service's restrictions. @@ -1099,7 +1197,7 @@ func (c *Chime) DeleteAccountRequest(input *DeleteAccountInput) (req *request.Re // // * ErrCodeForbiddenException "ForbiddenException" // The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported region. +// when a user tries to create an account from an unsupported Region. // // * ErrCodeBadRequestException "BadRequestException" // The input parameters don't match the service's restrictions. @@ -1139,6 +1237,102 @@ func (c *Chime) DeleteAccountWithContext(ctx aws.Context, input *DeleteAccountIn return out, req.Send() } +const opDeleteEventsConfiguration = "DeleteEventsConfiguration" + +// 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 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 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/DeleteEventsConfiguration +func (c *Chime) DeleteEventsConfigurationRequest(input *DeleteEventsConfigurationInput) (req *request.Request, output *DeleteEventsConfigurationOutput) { + op := &request.Operation{ + Name: opDeleteEventsConfiguration, + HTTPMethod: "DELETE", + HTTPPath: "/accounts/{accountId}/bots/{botId}/events-configuration", + } + + if input == nil { + input = &DeleteEventsConfigurationInput{} + } + + output = &DeleteEventsConfigurationOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// DeleteEventsConfiguration API operation for Amazon Chime. +// +// 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 DeleteEventsConfiguration for usage and error information. +// +// Returned Error Codes: +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// The service is currently unavailable. +// +// * ErrCodeServiceFailureException "ServiceFailureException" +// The service encountered an unexpected error. +// +// * ErrCodeForbiddenException "ForbiddenException" +// The client is permanently forbidden from making the request. For example, +// when a user tries to create an account from an unsupported Region. +// +// * ErrCodeBadRequestException "BadRequestException" +// The input parameters don't match the service's restrictions. +// +// * ErrCodeUnauthorizedClientException "UnauthorizedClientException" +// The client is not currently authorized to make the request. +// +// * ErrCodeResourceLimitExceededException "ResourceLimitExceededException" +// The request exceeds the resource limit. +// +// 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() +} + +// DeleteEventsConfigurationWithContext is the same as DeleteEventsConfiguration 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. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the 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) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opDeletePhoneNumber = "DeletePhoneNumber" // DeletePhoneNumberRequest generates a "aws/request.Request" representing the @@ -1207,7 +1401,7 @@ func (c *Chime) DeletePhoneNumberRequest(input *DeletePhoneNumberInput) (req *re // // * ErrCodeForbiddenException "ForbiddenException" // The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported region. +// when a user tries to create an account from an unsupported Region. // // * ErrCodeBadRequestException "BadRequestException" // The input parameters don't match the service's restrictions. @@ -1308,7 +1502,7 @@ func (c *Chime) DeleteVoiceConnectorRequest(input *DeleteVoiceConnectorInput) (r // // * ErrCodeForbiddenException "ForbiddenException" // The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported region. +// when a user tries to create an account from an unsupported Region. // // * ErrCodeBadRequestException "BadRequestException" // The input parameters don't match the service's restrictions. @@ -1407,7 +1601,7 @@ func (c *Chime) DeleteVoiceConnectorOriginationRequest(input *DeleteVoiceConnect // // * ErrCodeForbiddenException "ForbiddenException" // The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported region. +// when a user tries to create an account from an unsupported Region. // // * ErrCodeBadRequestException "BadRequestException" // The input parameters don't match the service's restrictions. @@ -1506,7 +1700,7 @@ func (c *Chime) DeleteVoiceConnectorTerminationRequest(input *DeleteVoiceConnect // // * ErrCodeForbiddenException "ForbiddenException" // The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported region. +// when a user tries to create an account from an unsupported Region. // // * ErrCodeBadRequestException "BadRequestException" // The input parameters don't match the service's restrictions. @@ -1606,7 +1800,7 @@ func (c *Chime) DeleteVoiceConnectorTerminationCredentialsRequest(input *DeleteV // // * ErrCodeForbiddenException "ForbiddenException" // The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported region. +// when a user tries to create an account from an unsupported Region. // // * ErrCodeBadRequestException "BadRequestException" // The input parameters don't match the service's restrictions. @@ -1706,7 +1900,7 @@ func (c *Chime) DisassociatePhoneNumberFromUserRequest(input *DisassociatePhoneN // // * ErrCodeForbiddenException "ForbiddenException" // The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported region. +// when a user tries to create an account from an unsupported Region. // // * ErrCodeBadRequestException "BadRequestException" // The input parameters don't match the service's restrictions. @@ -1805,7 +1999,7 @@ func (c *Chime) DisassociatePhoneNumbersFromVoiceConnectorRequest(input *Disasso // // * ErrCodeForbiddenException "ForbiddenException" // The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported region. +// when a user tries to create an account from an unsupported Region. // // * ErrCodeBadRequestException "BadRequestException" // The input parameters don't match the service's restrictions. @@ -1904,7 +2098,7 @@ func (c *Chime) GetAccountRequest(input *GetAccountInput) (req *request.Request, // // * ErrCodeForbiddenException "ForbiddenException" // The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported region. +// when a user tries to create an account from an unsupported Region. // // * ErrCodeBadRequestException "BadRequestException" // The input parameters don't match the service's restrictions. @@ -2008,7 +2202,7 @@ func (c *Chime) GetAccountSettingsRequest(input *GetAccountSettingsInput) (req * // // * ErrCodeForbiddenException "ForbiddenException" // The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported region. +// when a user tries to create an account from an unsupported Region. // // * ErrCodeThrottledClientException "ThrottledClientException" // The client exceeded its request rate limit. @@ -2041,244 +2235,439 @@ func (c *Chime) GetAccountSettingsWithContext(ctx aws.Context, input *GetAccount return out, req.Send() } -const opGetGlobalSettings = "GetGlobalSettings" +const opGetBot = "GetBot" -// GetGlobalSettingsRequest generates a "aws/request.Request" representing the -// client's request for the GetGlobalSettings 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 GetGlobalSettings for more information on using the GetGlobalSettings +// 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 GetGlobalSettingsRequest method. -// req, resp := client.GetGlobalSettingsRequest(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/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/GetBot +func (c *Chime) GetBotRequest(input *GetBotInput) (req *request.Request, output *GetBotOutput) { op := &request.Operation{ - Name: opGetGlobalSettings, + Name: opGetBot, HTTPMethod: "GET", - HTTPPath: "/settings", + HTTPPath: "/accounts/{accountId}/bots/{botId}", } if input == nil { - input = &GetGlobalSettingsInput{} + input = &GetBotInput{} } - output = &GetGlobalSettingsOutput{} + output = &GetBotOutput{} req = c.newRequest(op, input, output) return } -// GetGlobalSettings API operation for Amazon Chime. +// GetBot 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. +// 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 GetGlobalSettings for usage and error information. +// API operation GetBot for usage and error information. // // Returned Error Codes: -// * ErrCodeUnauthorizedClientException "UnauthorizedClientException" -// The client is not currently authorized to make the request. +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// The service is currently unavailable. +// +// * ErrCodeServiceFailureException "ServiceFailureException" +// The service encountered an unexpected error. // // * ErrCodeForbiddenException "ForbiddenException" // The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported region. -// -// * ErrCodeBadRequestException "BadRequestException" -// The input parameters don't match the service's restrictions. +// when a user tries to create an account from an unsupported Region. // -// * ErrCodeThrottledClientException "ThrottledClientException" -// The client exceeded its request rate limit. +// * ErrCodeUnauthorizedClientException "UnauthorizedClientException" +// The client is not currently authorized to make the request. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" -// The service is currently unavailable. +// * ErrCodeNotFoundException "NotFoundException" +// One or more of the resources in the request does not exist in the system. // -// * ErrCodeServiceFailureException "ServiceFailureException" -// The service encountered an unexpected error. +// * ErrCodeBadRequestException "BadRequestException" +// The input parameters don't match the service's restrictions. // -// 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/GetBot +func (c *Chime) GetBot(input *GetBotInput) (*GetBotOutput, error) { + req, out := c.GetBotRequest(input) return out, req.Send() } -// GetGlobalSettingsWithContext is the same as GetGlobalSettings 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 GetGlobalSettings 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) GetGlobalSettingsWithContext(ctx aws.Context, input *GetGlobalSettingsInput, opts ...request.Option) (*GetGlobalSettingsOutput, error) { - req, out := c.GetGlobalSettingsRequest(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() } -const opGetPhoneNumber = "GetPhoneNumber" +const opGetEventsConfiguration = "GetEventsConfiguration" -// GetPhoneNumberRequest generates a "aws/request.Request" representing the -// client's request for the GetPhoneNumber operation. The "output" return +// 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. // // Use "Send" method on the 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 GetEventsConfiguration for more information on using the GetEventsConfiguration // API call, and error handling. // // This method is useful when you want to 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 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/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/GetEventsConfiguration +func (c *Chime) GetEventsConfigurationRequest(input *GetEventsConfigurationInput) (req *request.Request, output *GetEventsConfigurationOutput) { op := &request.Operation{ - Name: opGetPhoneNumber, + Name: opGetEventsConfiguration, HTTPMethod: "GET", - HTTPPath: "/phone-numbers/{phoneNumberId}", + HTTPPath: "/accounts/{accountId}/bots/{botId}/events-configuration", } if input == nil { - input = &GetPhoneNumberInput{} + input = &GetEventsConfigurationInput{} } - output = &GetPhoneNumberOutput{} + output = &GetEventsConfigurationOutput{} req = c.newRequest(op, input, output) return } -// GetPhoneNumber API operation for Amazon Chime. +// GetEventsConfiguration API operation for Amazon Chime. // -// Retrieves details for the specified phone number ID, such as associations, -// capabilities, and product type. +// 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 GetPhoneNumber for usage and error information. +// API operation GetEventsConfiguration for usage and error information. // // Returned Error Codes: -// * ErrCodeUnauthorizedClientException "UnauthorizedClientException" -// The client is not currently authorized to make the request. +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// The service is currently unavailable. // -// * ErrCodeNotFoundException "NotFoundException" -// One or more of the resources in the request does not exist in the system. +// * ErrCodeServiceFailureException "ServiceFailureException" +// The service encountered an unexpected error. // // * ErrCodeForbiddenException "ForbiddenException" // The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported region. +// when a user tries to create an account from an unsupported Region. // // * ErrCodeBadRequestException "BadRequestException" // The input parameters don't match the service's restrictions. // -// * ErrCodeThrottledClientException "ThrottledClientException" -// The client exceeded its request rate limit. +// * ErrCodeUnauthorizedClientException "UnauthorizedClientException" +// The client is not currently authorized to make the request. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" -// The service is currently unavailable. +// * ErrCodeResourceLimitExceededException "ResourceLimitExceededException" +// The request exceeds the resource limit. // -// * ErrCodeServiceFailureException "ServiceFailureException" -// The service encountered an unexpected error. +// * ErrCodeNotFoundException "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/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/GetEventsConfiguration +func (c *Chime) GetEventsConfiguration(input *GetEventsConfigurationInput) (*GetEventsConfigurationOutput, error) { + req, out := c.GetEventsConfigurationRequest(input) return out, req.Send() } -// GetPhoneNumberWithContext is the same as GetPhoneNumber with the addition of +// GetEventsConfigurationWithContext is the same as GetEventsConfiguration 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 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) GetPhoneNumberWithContext(ctx aws.Context, input *GetPhoneNumberInput, opts ...request.Option) (*GetPhoneNumberOutput, error) { - req, out := c.GetPhoneNumberRequest(input) +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 opGetPhoneNumberOrder = "GetPhoneNumberOrder" +const opGetGlobalSettings = "GetGlobalSettings" -// GetPhoneNumberOrderRequest generates a "aws/request.Request" representing the -// client's request for the GetPhoneNumberOrder 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 GetPhoneNumberOrder for more information on using the GetPhoneNumberOrder +// 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 GetPhoneNumberOrderRequest method. -// req, resp := client.GetPhoneNumberOrderRequest(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/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/GetGlobalSettings +func (c *Chime) GetGlobalSettingsRequest(input *GetGlobalSettingsInput) (req *request.Request, output *GetGlobalSettingsOutput) { op := &request.Operation{ - Name: opGetPhoneNumberOrder, + Name: opGetGlobalSettings, HTTPMethod: "GET", - HTTPPath: "/phone-number-orders/{phoneNumberOrderId}", + HTTPPath: "/settings", } if input == nil { - input = &GetPhoneNumberOrderInput{} + input = &GetGlobalSettingsInput{} } - output = &GetPhoneNumberOrderOutput{} + output = &GetGlobalSettingsOutput{} req = c.newRequest(op, input, output) return } -// GetPhoneNumberOrder API operation for Amazon Chime. +// GetGlobalSettings 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. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type 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. +// +// Returned Error Codes: +// * ErrCodeUnauthorizedClientException "UnauthorizedClientException" +// The client is not currently authorized to make the request. +// +// * ErrCodeForbiddenException "ForbiddenException" +// The client is permanently forbidden from making the request. For example, +// when a user tries to create an account from an unsupported Region. +// +// * ErrCodeBadRequestException "BadRequestException" +// The input parameters don't match the service's restrictions. +// +// * ErrCodeThrottledClientException "ThrottledClientException" +// The client exceeded its request rate limit. +// +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// The service is currently unavailable. +// +// * ErrCodeServiceFailureException "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) + return out, req.Send() +} + +// GetGlobalSettingsWithContext is the same as GetGlobalSettings 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. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the 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) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opGetPhoneNumber = "GetPhoneNumber" + +// 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 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 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/GetPhoneNumber +func (c *Chime) GetPhoneNumberRequest(input *GetPhoneNumberInput) (req *request.Request, output *GetPhoneNumberOutput) { + op := &request.Operation{ + Name: opGetPhoneNumber, + HTTPMethod: "GET", + HTTPPath: "/phone-numbers/{phoneNumberId}", + } + + if input == nil { + input = &GetPhoneNumberInput{} + } + + output = &GetPhoneNumberOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetPhoneNumber API operation for Amazon Chime. +// +// 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 GetPhoneNumber for usage and error information. +// +// Returned Error Codes: +// * ErrCodeUnauthorizedClientException "UnauthorizedClientException" +// The client is not currently authorized to make the request. +// +// * ErrCodeNotFoundException "NotFoundException" +// One or more of the resources in the request does not exist in the system. +// +// * ErrCodeForbiddenException "ForbiddenException" +// The client is permanently forbidden from making the request. For example, +// when a user tries to create an account from an unsupported Region. +// +// * ErrCodeBadRequestException "BadRequestException" +// The input parameters don't match the service's restrictions. +// +// * ErrCodeThrottledClientException "ThrottledClientException" +// The client exceeded its request rate limit. +// +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// The service is currently unavailable. +// +// * ErrCodeServiceFailureException "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) + return out, req.Send() +} + +// GetPhoneNumberWithContext is the same as GetPhoneNumber 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. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the 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) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opGetPhoneNumberOrder = "GetPhoneNumberOrder" + +// 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 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 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/GetPhoneNumberOrder +func (c *Chime) GetPhoneNumberOrderRequest(input *GetPhoneNumberOrderInput) (req *request.Request, output *GetPhoneNumberOrderOutput) { + op := &request.Operation{ + Name: opGetPhoneNumberOrder, + HTTPMethod: "GET", + HTTPPath: "/phone-number-orders/{phoneNumberOrderId}", + } + + if input == nil { + input = &GetPhoneNumberOrderInput{} + } + + output = &GetPhoneNumberOrderOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetPhoneNumberOrder 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. @@ -2299,7 +2688,7 @@ func (c *Chime) GetPhoneNumberOrderRequest(input *GetPhoneNumberOrderInput) (req // // * ErrCodeForbiddenException "ForbiddenException" // The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported region. +// when a user tries to create an account from an unsupported Region. // // * ErrCodeBadRequestException "BadRequestException" // The input parameters don't match the service's restrictions. @@ -2401,7 +2790,7 @@ func (c *Chime) GetUserRequest(input *GetUserInput) (req *request.Request, outpu // // * ErrCodeForbiddenException "ForbiddenException" // The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported region. +// when a user tries to create an account from an unsupported Region. // // * ErrCodeBadRequestException "BadRequestException" // The input parameters don't match the service's restrictions. @@ -2500,7 +2889,7 @@ func (c *Chime) GetUserSettingsRequest(input *GetUserSettingsInput) (req *reques // // * ErrCodeForbiddenException "ForbiddenException" // The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported region. +// when a user tries to create an account from an unsupported Region. // // * ErrCodeBadRequestException "BadRequestException" // The input parameters don't match the service's restrictions. @@ -2599,7 +2988,7 @@ func (c *Chime) GetVoiceConnectorRequest(input *GetVoiceConnectorInput) (req *re // // * ErrCodeForbiddenException "ForbiddenException" // The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported region. +// when a user tries to create an account from an unsupported Region. // // * ErrCodeBadRequestException "BadRequestException" // The input parameters don't match the service's restrictions. @@ -2698,7 +3087,7 @@ func (c *Chime) GetVoiceConnectorOriginationRequest(input *GetVoiceConnectorOrig // // * ErrCodeForbiddenException "ForbiddenException" // The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported region. +// when a user tries to create an account from an unsupported Region. // // * ErrCodeBadRequestException "BadRequestException" // The input parameters don't match the service's restrictions. @@ -2797,7 +3186,7 @@ func (c *Chime) GetVoiceConnectorTerminationRequest(input *GetVoiceConnectorTerm // // * ErrCodeForbiddenException "ForbiddenException" // The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported region. +// when a user tries to create an account from an unsupported Region. // // * ErrCodeBadRequestException "BadRequestException" // The input parameters don't match the service's restrictions. @@ -2896,7 +3285,7 @@ func (c *Chime) GetVoiceConnectorTerminationHealthRequest(input *GetVoiceConnect // // * ErrCodeForbiddenException "ForbiddenException" // The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported region. +// when a user tries to create an account from an unsupported Region. // // * ErrCodeBadRequestException "BadRequestException" // The input parameters don't match the service's restrictions. @@ -2996,7 +3385,7 @@ func (c *Chime) InviteUsersRequest(input *InviteUsersInput) (req *request.Reques // // * ErrCodeForbiddenException "ForbiddenException" // The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported region. +// when a user tries to create an account from an unsupported Region. // // * ErrCodeBadRequestException "BadRequestException" // The input parameters don't match the service's restrictions. @@ -3103,7 +3492,7 @@ func (c *Chime) ListAccountsRequest(input *ListAccountsInput) (req *request.Requ // // * ErrCodeForbiddenException "ForbiddenException" // The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported region. +// when a user tries to create an account from an unsupported Region. // // * ErrCodeBadRequestException "BadRequestException" // The input parameters don't match the service's restrictions. @@ -3189,6 +3578,102 @@ func (c *Chime) ListAccountsPagesWithContext(ctx aws.Context, input *ListAccount 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 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 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/ListBots +func (c *Chime) ListBotsRequest(input *ListBotsInput) (req *request.Request, output *ListBotsOutput) { + op := &request.Operation{ + Name: opListBots, + HTTPMethod: "GET", + HTTPPath: "/accounts/{accountId}/bots", + } + + if input == nil { + input = &ListBotsInput{} + } + + output = &ListBotsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListBots API operation for Amazon Chime. +// +// 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 ListBots for usage and error information. +// +// Returned Error Codes: +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// The service is currently unavailable. +// +// * ErrCodeServiceFailureException "ServiceFailureException" +// The service encountered an unexpected error. +// +// * ErrCodeForbiddenException "ForbiddenException" +// The client is permanently forbidden from making the request. For example, +// when a user tries to create an account from an unsupported Region. +// +// * ErrCodeUnauthorizedClientException "UnauthorizedClientException" +// The client is not currently authorized to make the request. +// +// * ErrCodeBadRequestException "BadRequestException" +// The input parameters don't match the service's restrictions. +// +// * ErrCodeNotFoundException "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/ListBots +func (c *Chime) ListBots(input *ListBotsInput) (*ListBotsOutput, error) { + req, out := c.ListBotsRequest(input) + return out, req.Send() +} + +// ListBotsWithContext is the same as ListBots 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. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the 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) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opListPhoneNumberOrders = "ListPhoneNumberOrders" // ListPhoneNumberOrdersRequest generates a "aws/request.Request" representing the @@ -3254,7 +3739,7 @@ func (c *Chime) ListPhoneNumberOrdersRequest(input *ListPhoneNumberOrdersInput) // // * ErrCodeForbiddenException "ForbiddenException" // The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported region. +// when a user tries to create an account from an unsupported Region. // // * ErrCodeBadRequestException "BadRequestException" // The input parameters don't match the service's restrictions. @@ -3406,7 +3891,7 @@ func (c *Chime) ListPhoneNumbersRequest(input *ListPhoneNumbersInput) (req *requ // // * ErrCodeForbiddenException "ForbiddenException" // The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported region. +// when a user tries to create an account from an unsupported Region. // // * ErrCodeBadRequestException "BadRequestException" // The input parameters don't match the service's restrictions. @@ -3562,7 +4047,7 @@ func (c *Chime) ListUsersRequest(input *ListUsersInput) (req *request.Request, o // // * ErrCodeForbiddenException "ForbiddenException" // The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported region. +// when a user tries to create an account from an unsupported Region. // // * ErrCodeBadRequestException "BadRequestException" // The input parameters don't match the service's restrictions. @@ -3710,7 +4195,7 @@ func (c *Chime) ListVoiceConnectorTerminationCredentialsRequest(input *ListVoice // // * ErrCodeForbiddenException "ForbiddenException" // The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported region. +// when a user tries to create an account from an unsupported Region. // // * ErrCodeBadRequestException "BadRequestException" // The input parameters don't match the service's restrictions. @@ -3811,7 +4296,7 @@ func (c *Chime) ListVoiceConnectorsRequest(input *ListVoiceConnectorsInput) (req // // * ErrCodeForbiddenException "ForbiddenException" // The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported region. +// when a user tries to create an account from an unsupported Region. // // * ErrCodeBadRequestException "BadRequestException" // The input parameters don't match the service's restrictions. @@ -3961,7 +4446,7 @@ func (c *Chime) LogoutUserRequest(input *LogoutUserInput) (req *request.Request, // // * ErrCodeForbiddenException "ForbiddenException" // The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported region. +// when a user tries to create an account from an unsupported Region. // // * ErrCodeBadRequestException "BadRequestException" // The input parameters don't match the service's restrictions. @@ -3997,6 +4482,106 @@ func (c *Chime) LogoutUserWithContext(ctx aws.Context, input *LogoutUserInput, o 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 Codes: +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// The service is currently unavailable. +// +// * ErrCodeServiceFailureException "ServiceFailureException" +// The service encountered an unexpected error. +// +// * ErrCodeForbiddenException "ForbiddenException" +// The client is permanently forbidden from making the request. For example, +// when a user tries to create an account from an unsupported Region. +// +// * ErrCodeBadRequestException "BadRequestException" +// The input parameters don't match the service's restrictions. +// +// * ErrCodeUnauthorizedClientException "UnauthorizedClientException" +// The client is not currently authorized to make the request. +// +// * ErrCodeResourceLimitExceededException "ResourceLimitExceededException" +// The request exceeds the resource limit. +// +// * ErrCodeNotFoundException "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 opPutVoiceConnectorOrigination = "PutVoiceConnectorOrigination" // PutVoiceConnectorOriginationRequest generates a "aws/request.Request" representing the @@ -4059,7 +4644,7 @@ func (c *Chime) PutVoiceConnectorOriginationRequest(input *PutVoiceConnectorOrig // // * ErrCodeForbiddenException "ForbiddenException" // The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported region. +// when a user tries to create an account from an unsupported Region. // // * ErrCodeBadRequestException "BadRequestException" // The input parameters don't match the service's restrictions. @@ -4157,7 +4742,7 @@ func (c *Chime) PutVoiceConnectorTerminationRequest(input *PutVoiceConnectorTerm // // * ErrCodeForbiddenException "ForbiddenException" // The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported region. +// when a user tries to create an account from an unsupported Region. // // * ErrCodeBadRequestException "BadRequestException" // The input parameters don't match the service's restrictions. @@ -4256,7 +4841,7 @@ func (c *Chime) PutVoiceConnectorTerminationCredentialsRequest(input *PutVoiceCo // // * ErrCodeForbiddenException "ForbiddenException" // The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported region. +// when a user tries to create an account from an unsupported Region. // // * ErrCodeBadRequestException "BadRequestException" // The input parameters don't match the service's restrictions. @@ -4270,23 +4855,118 @@ func (c *Chime) PutVoiceConnectorTerminationCredentialsRequest(input *PutVoiceCo // * ErrCodeServiceFailureException "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/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 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 Codes: +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// The service is currently unavailable. +// +// * ErrCodeServiceFailureException "ServiceFailureException" +// The service encountered an unexpected error. +// +// * ErrCodeForbiddenException "ForbiddenException" +// The client is permanently forbidden from making the request. For example, +// when a user tries to create an account from an unsupported Region. +// +// * ErrCodeBadRequestException "BadRequestException" +// The input parameters don't match the service's restrictions. +// +// * ErrCodeUnauthorizedClientException "UnauthorizedClientException" +// The client is not currently authorized to make the request. +// +// * ErrCodeNotFoundException "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/RegenerateSecurityToken +func (c *Chime) RegenerateSecurityToken(input *RegenerateSecurityTokenInput) (*RegenerateSecurityTokenOutput, error) { + req, out := c.RegenerateSecurityTokenRequest(input) return out, req.Send() } -// PutVoiceConnectorTerminationCredentialsWithContext is the same as PutVoiceConnectorTerminationCredentials with the addition of +// RegenerateSecurityTokenWithContext is the same as RegenerateSecurityToken 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 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) PutVoiceConnectorTerminationCredentialsWithContext(ctx aws.Context, input *PutVoiceConnectorTerminationCredentialsInput, opts ...request.Option) (*PutVoiceConnectorTerminationCredentialsOutput, error) { - req, out := c.PutVoiceConnectorTerminationCredentialsRequest(input) +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() @@ -4355,7 +5035,7 @@ func (c *Chime) ResetPersonalPINRequest(input *ResetPersonalPINInput) (req *requ // // * ErrCodeForbiddenException "ForbiddenException" // The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported region. +// when a user tries to create an account from an unsupported Region. // // * ErrCodeBadRequestException "BadRequestException" // The input parameters don't match the service's restrictions. @@ -4453,7 +5133,7 @@ func (c *Chime) RestorePhoneNumberRequest(input *RestorePhoneNumberInput) (req * // // * ErrCodeForbiddenException "ForbiddenException" // The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported region. +// when a user tries to create an account from an unsupported Region. // // * ErrCodeBadRequestException "BadRequestException" // The input parameters don't match the service's restrictions. @@ -4548,7 +5228,7 @@ func (c *Chime) SearchAvailablePhoneNumbersRequest(input *SearchAvailablePhoneNu // // * ErrCodeForbiddenException "ForbiddenException" // The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported region. +// when a user tries to create an account from an unsupported Region. // // * ErrCodeBadRequestException "BadRequestException" // The input parameters don't match the service's restrictions. @@ -4647,7 +5327,7 @@ func (c *Chime) UpdateAccountRequest(input *UpdateAccountInput) (req *request.Re // // * ErrCodeForbiddenException "ForbiddenException" // The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported region. +// when a user tries to create an account from an unsupported Region. // // * ErrCodeBadRequestException "BadRequestException" // The input parameters don't match the service's restrictions. @@ -4752,7 +5432,7 @@ func (c *Chime) UpdateAccountSettingsRequest(input *UpdateAccountSettingsInput) // // * ErrCodeForbiddenException "ForbiddenException" // The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported region. +// when a user tries to create an account from an unsupported Region. // // * ErrCodeConflictException "ConflictException" // The request could not be processed because of conflict in the current state @@ -4789,6 +5469,102 @@ func (c *Chime) UpdateAccountSettingsWithContext(ctx aws.Context, input *UpdateA 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 Codes: +// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// The service is currently unavailable. +// +// * ErrCodeServiceFailureException "ServiceFailureException" +// The service encountered an unexpected error. +// +// * ErrCodeForbiddenException "ForbiddenException" +// The client is permanently forbidden from making the request. For example, +// when a user tries to create an account from an unsupported Region. +// +// * ErrCodeBadRequestException "BadRequestException" +// The input parameters don't match the service's restrictions. +// +// * ErrCodeUnauthorizedClientException "UnauthorizedClientException" +// The client is not currently authorized to make the request. +// +// * ErrCodeNotFoundException "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/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 opUpdateGlobalSettings = "UpdateGlobalSettings" // UpdateGlobalSettingsRequest generates a "aws/request.Request" representing the @@ -4850,7 +5626,7 @@ func (c *Chime) UpdateGlobalSettingsRequest(input *UpdateGlobalSettingsInput) (r // // * ErrCodeForbiddenException "ForbiddenException" // The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported region. +// when a user tries to create an account from an unsupported Region. // // * ErrCodeBadRequestException "BadRequestException" // The input parameters don't match the service's restrictions. @@ -4949,7 +5725,7 @@ func (c *Chime) UpdatePhoneNumberRequest(input *UpdatePhoneNumberInput) (req *re // // * ErrCodeForbiddenException "ForbiddenException" // The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported region. +// when a user tries to create an account from an unsupported Region. // // * ErrCodeBadRequestException "BadRequestException" // The input parameters don't match the service's restrictions. @@ -5048,7 +5824,7 @@ func (c *Chime) UpdateUserRequest(input *UpdateUserInput) (req *request.Request, // // * ErrCodeForbiddenException "ForbiddenException" // The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported region. +// when a user tries to create an account from an unsupported Region. // // * ErrCodeBadRequestException "BadRequestException" // The input parameters don't match the service's restrictions. @@ -5147,7 +5923,7 @@ func (c *Chime) UpdateUserSettingsRequest(input *UpdateUserSettingsInput) (req * // // * ErrCodeForbiddenException "ForbiddenException" // The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported region. +// when a user tries to create an account from an unsupported Region. // // * ErrCodeBadRequestException "BadRequestException" // The input parameters don't match the service's restrictions. @@ -5245,7 +6021,7 @@ func (c *Chime) UpdateVoiceConnectorRequest(input *UpdateVoiceConnectorInput) (r // // * ErrCodeForbiddenException "ForbiddenException" // The client is permanently forbidden from making the request. For example, -// when a user tries to create an account from an unsupported region. +// when a user tries to create an account from an unsupported Region. // // * ErrCodeBadRequestException "BadRequestException" // The input parameters don't match the service's restrictions. @@ -5957,6 +6733,104 @@ func (s *BatchUpdateUserOutput) SetUserErrors(v []*UserError) *BatchUpdateUserOu 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 { @@ -6046,6 +6920,93 @@ func (s *CreateAccountOutput) SetAccount(v *Account) *CreateAccountOutput { 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 CreatePhoneNumberOrderInput struct { _ struct{} `type:"structure"` @@ -6229,40 +7190,106 @@ func (s *Credential) SetPassword(v string) *Credential { return s } -// SetUsername sets the Username field's value. -func (s *Credential) SetUsername(v string) *Credential { - s.Username = &v - return s +// SetUsername sets the Username field's value. +func (s *Credential) SetUsername(v string) *Credential { + s.Username = &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) } -type DeleteAccountInput struct { +// GoString returns the string representation +func (s DeleteAccountOutput) GoString() string { + return s.String() +} + +type DeleteEventsConfigurationInput 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 DeleteEventsConfigurationInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeleteAccountInput) 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 *DeleteAccountInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteAccountInput"} +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.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 @@ -6271,22 +7298,28 @@ func (s *DeleteAccountInput) Validate() error { } // SetAccountId sets the AccountId field's value. -func (s *DeleteAccountInput) SetAccountId(v string) *DeleteAccountInput { +func (s *DeleteEventsConfigurationInput) SetAccountId(v string) *DeleteEventsConfigurationInput { s.AccountId = &v return s } -type DeleteAccountOutput struct { +// SetBotId sets the BotId field's value. +func (s *DeleteEventsConfigurationInput) SetBotId(v string) *DeleteEventsConfigurationInput { + s.BotId = &v + return s +} + +type DeleteEventsConfigurationOutput struct { _ struct{} `type:"structure"` } // String returns the string representation -func (s DeleteAccountOutput) String() string { +func (s DeleteEventsConfigurationOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeleteAccountOutput) GoString() string { +func (s DeleteEventsConfigurationOutput) GoString() string { return s.String() } @@ -6722,6 +7755,49 @@ func (s *DisassociatePhoneNumbersFromVoiceConnectorOutput) SetPhoneNumberErrors( 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"` + + // 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"` +} + +// String returns the string representation +func (s EventsConfiguration) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s EventsConfiguration) GoString() string { + return s.String() +} + +// SetBotId sets the BotId field's value. +func (s *EventsConfiguration) SetBotId(v string) *EventsConfiguration { + s.BotId = &v + return s +} + +// SetLambdaFunctionArn sets the LambdaFunctionArn field's value. +func (s *EventsConfiguration) SetLambdaFunctionArn(v string) *EventsConfiguration { + s.LambdaFunctionArn = &v + return s +} + +// SetOutboundEventsHTTPSEndpoint sets the OutboundEventsHTTPSEndpoint field's value. +func (s *EventsConfiguration) SetOutboundEventsHTTPSEndpoint(v string) *EventsConfiguration { + s.OutboundEventsHTTPSEndpoint = &v + return s +} + type GetAccountInput struct { _ struct{} `type:"structure"` @@ -6850,6 +7926,168 @@ func (s *GetAccountSettingsOutput) SetAccountSettings(v *AccountSettings) *GetAc return s } +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 GetBotInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetBotInput) 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"} + 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 + } + return nil +} + +// SetAccountId sets the AccountId field's value. +func (s *GetBotInput) SetAccountId(v string) *GetBotInput { + s.AccountId = &v + return s +} + +// 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 GetBotOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetBotOutput) GoString() string { + return s.String() +} + +// SetBot sets the Bot field's value. +func (s *GetBotOutput) SetBot(v *Bot) *GetBotOutput { + s.Bot = v + return s +} + +type GetEventsConfigurationInput 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 GetEventsConfigurationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetEventsConfigurationInput) 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")) + } + if s.BotId != nil && len(*s.BotId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("BotId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + 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 + 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 + return s +} + type GetGlobalSettingsInput struct { _ struct{} `type:"structure"` } @@ -7562,51 +8800,151 @@ func (s InviteUsersOutput) String() string { } // GoString returns the string representation -func (s InviteUsersOutput) GoString() string { +func (s InviteUsersOutput) GoString() string { + return s.String() +} + +// SetInvites sets the Invites field's value. +func (s *InviteUsersOutput) SetInvites(v []*Invite) *InviteUsersOutput { + s.Invites = v + return s +} + +type ListAccountsInput 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 { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListAccountsInput) 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"} + 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 + } + return nil +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListAccountsInput) SetMaxResults(v int64) *ListAccountsInput { + 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 { + 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 { + _ struct{} `type:"structure"` + + // List of Amazon Chime accounts and account details. + Accounts []*Account `type:"list"` + + // The token to use to retrieve the next page of results. + NextToken *string `type:"string"` +} + +// String returns the string representation +func (s ListAccountsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListAccountsOutput) GoString() string { return s.String() } -// SetInvites sets the Invites field's value. -func (s *InviteUsersOutput) SetInvites(v []*Invite) *InviteUsersOutput { - s.Invites = v +// SetAccounts sets the Accounts field's value. +func (s *ListAccountsOutput) SetAccounts(v []*Account) *ListAccountsOutput { + s.Accounts = v return s } -type ListAccountsInput struct { +// SetNextToken sets the NextToken field's value. +func (s *ListAccountsOutput) SetNextToken(v string) *ListAccountsOutput { + s.NextToken = &v + return s +} + +type ListBotsInput 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 Amazon Chime account ID. + // + // AccountId is a required field + AccountId *string `location:"uri" locationName:"accountId" 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 maximum number of results to return in a single call. 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"` - - // 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 ListBotsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListAccountsInput) 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 *ListAccountsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListAccountsInput"} +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.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 @@ -7614,58 +8952,52 @@ func (s *ListAccountsInput) Validate() error { return nil } -// SetMaxResults sets the MaxResults field's value. -func (s *ListAccountsInput) SetMaxResults(v int64) *ListAccountsInput { - s.MaxResults = &v +// SetAccountId sets the AccountId field's value. +func (s *ListBotsInput) SetAccountId(v string) *ListBotsInput { + s.AccountId = &v return s } -// SetName sets the Name field's value. -func (s *ListAccountsInput) SetName(v string) *ListAccountsInput { - s.Name = &v +// SetMaxResults sets the MaxResults field's value. +func (s *ListBotsInput) SetMaxResults(v int64) *ListBotsInput { + s.MaxResults = &v return s } // SetNextToken sets the NextToken field's value. -func (s *ListAccountsInput) SetNextToken(v string) *ListAccountsInput { +func (s *ListBotsInput) SetNextToken(v string) *ListBotsInput { 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 ListBotsOutput struct { _ struct{} `type:"structure"` - // List of Amazon Chime accounts and account details. - Accounts []*Account `type:"list"` + // 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 ListAccountsOutput) String() string { +func (s ListBotsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListAccountsOutput) GoString() string { +func (s ListBotsOutput) GoString() string { return s.String() } -// SetAccounts sets the Accounts field's value. -func (s *ListAccountsOutput) SetAccounts(v []*Account) *ListAccountsOutput { - s.Accounts = v +// SetBots sets the Bots field's value. +func (s *ListBotsOutput) SetBots(v []*Bot) *ListBotsOutput { + s.Bots = v return s } // SetNextToken sets the NextToken field's value. -func (s *ListAccountsOutput) SetNextToken(v string) *ListAccountsOutput { +func (s *ListBotsOutput) SetNextToken(v string) *ListBotsOutput { s.NextToken = &v return s } @@ -8671,6 +10003,106 @@ func (s *PhoneNumberOrder) SetUpdatedTimestamp(v time.Time) *PhoneNumberOrder { return s } +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 PutEventsConfigurationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PutEventsConfigurationInput) 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")) + } + if s.BotId != nil && len(*s.BotId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("BotId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + 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 + return s +} + +// SetOutboundEventsHTTPSEndpoint sets the OutboundEventsHTTPSEndpoint field's value. +func (s *PutEventsConfigurationInput) SetOutboundEventsHTTPSEndpoint(v string) *PutEventsConfigurationInput { + s.OutboundEventsHTTPSEndpoint = &v + return s +} + +type PutEventsConfigurationOutput 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 { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PutEventsConfigurationOutput) 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 PutVoiceConnectorOriginationInput struct { _ struct{} `type:"structure"` @@ -8901,6 +10333,88 @@ func (s *PutVoiceConnectorTerminationOutput) SetTermination(v *Termination) *Put return s } +type RegenerateSecurityTokenInput 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 RegenerateSecurityTokenInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s RegenerateSecurityTokenInput) 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")) + } + if s.BotId != nil && len(*s.BotId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("BotId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAccountId sets the AccountId field's value. +func (s *RegenerateSecurityTokenInput) SetAccountId(v string) *RegenerateSecurityTokenInput { + s.AccountId = &v + return s +} + +// SetBotId sets the BotId field's value. +func (s *RegenerateSecurityTokenInput) SetBotId(v string) *RegenerateSecurityTokenInput { + s.BotId = &v + return s +} + +type RegenerateSecurityTokenOutput 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"` +} + +// String returns the string representation +func (s RegenerateSecurityTokenOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s RegenerateSecurityTokenOutput) GoString() string { + return s.String() +} + +// SetBot sets the Bot field's value. +func (s *RegenerateSecurityTokenOutput) SetBot(v *Bot) *RegenerateSecurityTokenOutput { + s.Bot = v + return s +} + type ResetPersonalPINInput struct { _ struct{} `type:"structure"` @@ -9472,6 +10986,96 @@ func (s UpdateAccountSettingsOutput) GoString() string { return s.String() } +type UpdateBotInput 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"` + + // When true, stops the specified bot from running in your account. + Disabled *bool `type:"boolean"` +} + +// String returns the string representation +func (s UpdateBotInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateBotInput) 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)) + } + 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 + } + 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 + return s +} + +type UpdateBotOutput struct { + _ struct{} `type:"structure"` + + // The updated bot details. + Bot *Bot `type:"structure"` +} + +// String returns the string representation +func (s UpdateBotOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateBotOutput) GoString() string { + return s.String() +} + +// SetBot sets the Bot field's value. +func (s *UpdateBotOutput) SetBot(v *Bot) *UpdateBotOutput { + s.Bot = v + return s +} + type UpdateGlobalSettingsInput struct { _ struct{} `type:"structure"` @@ -10300,6 +11904,11 @@ const ( AccountTypeEnterpriseOidc = "EnterpriseOIDC" ) +const ( + // BotTypeChatBot is a BotType enum value + BotTypeChatBot = "ChatBot" +) + const ( // EmailStatusNotSent is a EmailStatus enum value EmailStatusNotSent = "NotSent" diff --git a/service/chime/chimeiface/interface.go b/service/chime/chimeiface/interface.go index 9dcf4a56430..9e6af278a42 100644 --- a/service/chime/chimeiface/interface.go +++ b/service/chime/chimeiface/interface.go @@ -92,6 +92,10 @@ type ChimeAPI interface { CreateAccountWithContext(aws.Context, *chime.CreateAccountInput, ...request.Option) (*chime.CreateAccountOutput, error) CreateAccountRequest(*chime.CreateAccountInput) (*request.Request, *chime.CreateAccountOutput) + CreateBot(*chime.CreateBotInput) (*chime.CreateBotOutput, error) + CreateBotWithContext(aws.Context, *chime.CreateBotInput, ...request.Option) (*chime.CreateBotOutput, error) + CreateBotRequest(*chime.CreateBotInput) (*request.Request, *chime.CreateBotOutput) + CreatePhoneNumberOrder(*chime.CreatePhoneNumberOrderInput) (*chime.CreatePhoneNumberOrderOutput, error) CreatePhoneNumberOrderWithContext(aws.Context, *chime.CreatePhoneNumberOrderInput, ...request.Option) (*chime.CreatePhoneNumberOrderOutput, error) CreatePhoneNumberOrderRequest(*chime.CreatePhoneNumberOrderInput) (*request.Request, *chime.CreatePhoneNumberOrderOutput) @@ -104,6 +108,10 @@ type ChimeAPI interface { DeleteAccountWithContext(aws.Context, *chime.DeleteAccountInput, ...request.Option) (*chime.DeleteAccountOutput, error) DeleteAccountRequest(*chime.DeleteAccountInput) (*request.Request, *chime.DeleteAccountOutput) + DeleteEventsConfiguration(*chime.DeleteEventsConfigurationInput) (*chime.DeleteEventsConfigurationOutput, error) + DeleteEventsConfigurationWithContext(aws.Context, *chime.DeleteEventsConfigurationInput, ...request.Option) (*chime.DeleteEventsConfigurationOutput, error) + DeleteEventsConfigurationRequest(*chime.DeleteEventsConfigurationInput) (*request.Request, *chime.DeleteEventsConfigurationOutput) + DeletePhoneNumber(*chime.DeletePhoneNumberInput) (*chime.DeletePhoneNumberOutput, error) DeletePhoneNumberWithContext(aws.Context, *chime.DeletePhoneNumberInput, ...request.Option) (*chime.DeletePhoneNumberOutput, error) DeletePhoneNumberRequest(*chime.DeletePhoneNumberInput) (*request.Request, *chime.DeletePhoneNumberOutput) @@ -140,6 +148,14 @@ type ChimeAPI interface { GetAccountSettingsWithContext(aws.Context, *chime.GetAccountSettingsInput, ...request.Option) (*chime.GetAccountSettingsOutput, error) GetAccountSettingsRequest(*chime.GetAccountSettingsInput) (*request.Request, *chime.GetAccountSettingsOutput) + GetBot(*chime.GetBotInput) (*chime.GetBotOutput, error) + GetBotWithContext(aws.Context, *chime.GetBotInput, ...request.Option) (*chime.GetBotOutput, error) + GetBotRequest(*chime.GetBotInput) (*request.Request, *chime.GetBotOutput) + + GetEventsConfiguration(*chime.GetEventsConfigurationInput) (*chime.GetEventsConfigurationOutput, error) + GetEventsConfigurationWithContext(aws.Context, *chime.GetEventsConfigurationInput, ...request.Option) (*chime.GetEventsConfigurationOutput, error) + GetEventsConfigurationRequest(*chime.GetEventsConfigurationInput) (*request.Request, *chime.GetEventsConfigurationOutput) + GetGlobalSettings(*chime.GetGlobalSettingsInput) (*chime.GetGlobalSettingsOutput, error) GetGlobalSettingsWithContext(aws.Context, *chime.GetGlobalSettingsInput, ...request.Option) (*chime.GetGlobalSettingsOutput, error) GetGlobalSettingsRequest(*chime.GetGlobalSettingsInput) (*request.Request, *chime.GetGlobalSettingsOutput) @@ -187,6 +203,10 @@ 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 + ListBots(*chime.ListBotsInput) (*chime.ListBotsOutput, error) + ListBotsWithContext(aws.Context, *chime.ListBotsInput, ...request.Option) (*chime.ListBotsOutput, error) + ListBotsRequest(*chime.ListBotsInput) (*request.Request, *chime.ListBotsOutput) + ListPhoneNumberOrders(*chime.ListPhoneNumberOrdersInput) (*chime.ListPhoneNumberOrdersOutput, error) ListPhoneNumberOrdersWithContext(aws.Context, *chime.ListPhoneNumberOrdersInput, ...request.Option) (*chime.ListPhoneNumberOrdersOutput, error) ListPhoneNumberOrdersRequest(*chime.ListPhoneNumberOrdersInput) (*request.Request, *chime.ListPhoneNumberOrdersOutput) @@ -223,6 +243,10 @@ type ChimeAPI interface { LogoutUserWithContext(aws.Context, *chime.LogoutUserInput, ...request.Option) (*chime.LogoutUserOutput, error) LogoutUserRequest(*chime.LogoutUserInput) (*request.Request, *chime.LogoutUserOutput) + PutEventsConfiguration(*chime.PutEventsConfigurationInput) (*chime.PutEventsConfigurationOutput, error) + PutEventsConfigurationWithContext(aws.Context, *chime.PutEventsConfigurationInput, ...request.Option) (*chime.PutEventsConfigurationOutput, error) + PutEventsConfigurationRequest(*chime.PutEventsConfigurationInput) (*request.Request, *chime.PutEventsConfigurationOutput) + PutVoiceConnectorOrigination(*chime.PutVoiceConnectorOriginationInput) (*chime.PutVoiceConnectorOriginationOutput, error) PutVoiceConnectorOriginationWithContext(aws.Context, *chime.PutVoiceConnectorOriginationInput, ...request.Option) (*chime.PutVoiceConnectorOriginationOutput, error) PutVoiceConnectorOriginationRequest(*chime.PutVoiceConnectorOriginationInput) (*request.Request, *chime.PutVoiceConnectorOriginationOutput) @@ -235,6 +259,10 @@ type ChimeAPI interface { PutVoiceConnectorTerminationCredentialsWithContext(aws.Context, *chime.PutVoiceConnectorTerminationCredentialsInput, ...request.Option) (*chime.PutVoiceConnectorTerminationCredentialsOutput, error) PutVoiceConnectorTerminationCredentialsRequest(*chime.PutVoiceConnectorTerminationCredentialsInput) (*request.Request, *chime.PutVoiceConnectorTerminationCredentialsOutput) + RegenerateSecurityToken(*chime.RegenerateSecurityTokenInput) (*chime.RegenerateSecurityTokenOutput, error) + RegenerateSecurityTokenWithContext(aws.Context, *chime.RegenerateSecurityTokenInput, ...request.Option) (*chime.RegenerateSecurityTokenOutput, error) + RegenerateSecurityTokenRequest(*chime.RegenerateSecurityTokenInput) (*request.Request, *chime.RegenerateSecurityTokenOutput) + ResetPersonalPIN(*chime.ResetPersonalPINInput) (*chime.ResetPersonalPINOutput, error) ResetPersonalPINWithContext(aws.Context, *chime.ResetPersonalPINInput, ...request.Option) (*chime.ResetPersonalPINOutput, error) ResetPersonalPINRequest(*chime.ResetPersonalPINInput) (*request.Request, *chime.ResetPersonalPINOutput) @@ -255,6 +283,10 @@ type ChimeAPI interface { UpdateAccountSettingsWithContext(aws.Context, *chime.UpdateAccountSettingsInput, ...request.Option) (*chime.UpdateAccountSettingsOutput, error) UpdateAccountSettingsRequest(*chime.UpdateAccountSettingsInput) (*request.Request, *chime.UpdateAccountSettingsOutput) + UpdateBot(*chime.UpdateBotInput) (*chime.UpdateBotOutput, error) + UpdateBotWithContext(aws.Context, *chime.UpdateBotInput, ...request.Option) (*chime.UpdateBotOutput, error) + UpdateBotRequest(*chime.UpdateBotInput) (*request.Request, *chime.UpdateBotOutput) + 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/errors.go b/service/chime/errors.go index 26ef638982a..cb35177d190 100644 --- a/service/chime/errors.go +++ b/service/chime/errors.go @@ -21,7 +21,7 @@ const ( // "ForbiddenException". // // The client is permanently forbidden from making the request. For example, - // when a user tries to create an account from an unsupported region. + // when a user tries to create an account from an unsupported Region. ErrCodeForbiddenException = "ForbiddenException" // ErrCodeNotFoundException for service response error code @@ -30,6 +30,12 @@ const ( // One or more of the resources in the request does not exist in the system. ErrCodeNotFoundException = "NotFoundException" + // ErrCodeResourceLimitExceededException for service response error code + // "ResourceLimitExceededException". + // + // The request exceeds the resource limit. + ErrCodeResourceLimitExceededException = "ResourceLimitExceededException" + // ErrCodeServiceFailureException for service response error code // "ServiceFailureException". // diff --git a/service/comprehend/api.go b/service/comprehend/api.go index 186afa64693..9bc626786f4 100644 --- a/service/comprehend/api.go +++ b/service/comprehend/api.go @@ -2119,6 +2119,12 @@ func (c *Comprehend) ListDocumentClassificationJobsRequest(input *ListDocumentCl Name: opListDocumentClassificationJobs, HTTPMethod: "POST", HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, } if input == nil { @@ -2177,6 +2183,56 @@ func (c *Comprehend) ListDocumentClassificationJobsWithContext(ctx aws.Context, return out, req.Send() } +// ListDocumentClassificationJobsPages iterates over the pages of a ListDocumentClassificationJobs operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListDocumentClassificationJobs 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 ListDocumentClassificationJobs operation. +// pageNum := 0 +// err := client.ListDocumentClassificationJobsPages(params, +// func(page *ListDocumentClassificationJobsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *Comprehend) ListDocumentClassificationJobsPages(input *ListDocumentClassificationJobsInput, fn func(*ListDocumentClassificationJobsOutput, bool) bool) error { + return c.ListDocumentClassificationJobsPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListDocumentClassificationJobsPagesWithContext same as ListDocumentClassificationJobsPages 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 *Comprehend) ListDocumentClassificationJobsPagesWithContext(ctx aws.Context, input *ListDocumentClassificationJobsInput, fn func(*ListDocumentClassificationJobsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListDocumentClassificationJobsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListDocumentClassificationJobsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + cont := true + for p.Next() && cont { + cont = fn(p.Page().(*ListDocumentClassificationJobsOutput), !p.HasNextPage()) + } + return p.Err() +} + const opListDocumentClassifiers = "ListDocumentClassifiers" // ListDocumentClassifiersRequest generates a "aws/request.Request" representing the @@ -2208,6 +2264,12 @@ func (c *Comprehend) ListDocumentClassifiersRequest(input *ListDocumentClassifie Name: opListDocumentClassifiers, HTTPMethod: "POST", HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, } if input == nil { @@ -2266,6 +2328,56 @@ func (c *Comprehend) ListDocumentClassifiersWithContext(ctx aws.Context, input * return out, req.Send() } +// ListDocumentClassifiersPages iterates over the pages of a ListDocumentClassifiers operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListDocumentClassifiers 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 ListDocumentClassifiers operation. +// pageNum := 0 +// err := client.ListDocumentClassifiersPages(params, +// func(page *ListDocumentClassifiersOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *Comprehend) ListDocumentClassifiersPages(input *ListDocumentClassifiersInput, fn func(*ListDocumentClassifiersOutput, bool) bool) error { + return c.ListDocumentClassifiersPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListDocumentClassifiersPagesWithContext same as ListDocumentClassifiersPages 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 *Comprehend) ListDocumentClassifiersPagesWithContext(ctx aws.Context, input *ListDocumentClassifiersInput, fn func(*ListDocumentClassifiersOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListDocumentClassifiersInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListDocumentClassifiersRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + cont := true + for p.Next() && cont { + cont = fn(p.Page().(*ListDocumentClassifiersOutput), !p.HasNextPage()) + } + return p.Err() +} + const opListDominantLanguageDetectionJobs = "ListDominantLanguageDetectionJobs" // ListDominantLanguageDetectionJobsRequest generates a "aws/request.Request" representing the @@ -2587,6 +2699,12 @@ func (c *Comprehend) ListEntityRecognizersRequest(input *ListEntityRecognizersIn Name: opListEntityRecognizers, HTTPMethod: "POST", HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, } if input == nil { @@ -2652,6 +2770,56 @@ func (c *Comprehend) ListEntityRecognizersWithContext(ctx aws.Context, input *Li return out, req.Send() } +// ListEntityRecognizersPages iterates over the pages of a ListEntityRecognizers operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListEntityRecognizers 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 ListEntityRecognizers operation. +// pageNum := 0 +// err := client.ListEntityRecognizersPages(params, +// func(page *ListEntityRecognizersOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *Comprehend) ListEntityRecognizersPages(input *ListEntityRecognizersInput, fn func(*ListEntityRecognizersOutput, bool) bool) error { + return c.ListEntityRecognizersPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListEntityRecognizersPagesWithContext same as ListEntityRecognizersPages 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 *Comprehend) ListEntityRecognizersPagesWithContext(ctx aws.Context, input *ListEntityRecognizersInput, fn func(*ListEntityRecognizersOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListEntityRecognizersInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListEntityRecognizersRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + cont := true + for p.Next() && cont { + cont = fn(p.Page().(*ListEntityRecognizersOutput), !p.HasNextPage()) + } + return p.Err() +} + const opListKeyPhrasesDetectionJobs = "ListKeyPhrasesDetectionJobs" // ListKeyPhrasesDetectionJobsRequest generates a "aws/request.Request" representing the @@ -5361,6 +5529,11 @@ type CreateDocumentClassifierInput struct { // // * Amazon Resource Name (ARN) of a KMS Key: "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab" VolumeKmsKeyId *string `type:"string"` + + // Configuration parameters for an optional private Virtual Private Cloud (VPC) + // containing the resources you are using for your custom classifier. For more + // information, see Amazon VPC (https://docs.aws.amazon.com/vpc/latest/userguide/what-is-amazon-vpc.html). + VpcConfig *VpcConfig `type:"structure"` } // String returns the string representation @@ -5409,6 +5582,11 @@ func (s *CreateDocumentClassifierInput) Validate() error { } } } + if s.VpcConfig != nil { + if err := s.VpcConfig.Validate(); err != nil { + invalidParams.AddNested("VpcConfig", err.(request.ErrInvalidParams)) + } + } if invalidParams.Len() > 0 { return invalidParams @@ -5464,6 +5642,12 @@ func (s *CreateDocumentClassifierInput) SetVolumeKmsKeyId(v string) *CreateDocum return s } +// SetVpcConfig sets the VpcConfig field's value. +func (s *CreateDocumentClassifierInput) SetVpcConfig(v *VpcConfig) *CreateDocumentClassifierInput { + s.VpcConfig = v + return s +} + type CreateDocumentClassifierOutput struct { _ struct{} `type:"structure"` @@ -5535,6 +5719,11 @@ type CreateEntityRecognizerInput struct { // // * Amazon Resource Name (ARN) of a KMS Key: "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab" VolumeKmsKeyId *string `type:"string"` + + // Configuration parameters for an optional private Virtual Private Cloud (VPC) + // containing the resources you are using for your custom entity recognizer. + // For more information, see Amazon VPC (https://docs.aws.amazon.com/vpc/latest/userguide/what-is-amazon-vpc.html). + VpcConfig *VpcConfig `type:"structure"` } // String returns the string representation @@ -5583,6 +5772,11 @@ func (s *CreateEntityRecognizerInput) Validate() error { } } } + if s.VpcConfig != nil { + if err := s.VpcConfig.Validate(); err != nil { + invalidParams.AddNested("VpcConfig", err.(request.ErrInvalidParams)) + } + } if invalidParams.Len() > 0 { return invalidParams @@ -5632,6 +5826,12 @@ func (s *CreateEntityRecognizerInput) SetVolumeKmsKeyId(v string) *CreateEntityR return s } +// SetVpcConfig sets the VpcConfig field's value. +func (s *CreateEntityRecognizerInput) SetVpcConfig(v *VpcConfig) *CreateEntityRecognizerInput { + s.VpcConfig = v + return s +} + type CreateEntityRecognizerOutput struct { _ struct{} `type:"structure"` @@ -6802,6 +7002,11 @@ type DocumentClassificationJobProperties struct { // // * Amazon Resource Name (ARN) of a KMS Key: "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab" VolumeKmsKeyId *string `type:"string"` + + // Configuration parameters for a private Virtual Private Cloud (VPC) containing + // the resources you are using for your document classification job. For more + // information, see Amazon VPC (https://docs.aws.amazon.com/vpc/latest/userguide/what-is-amazon-vpc.html). + VpcConfig *VpcConfig `type:"structure"` } // String returns the string representation @@ -6880,6 +7085,12 @@ func (s *DocumentClassificationJobProperties) SetVolumeKmsKeyId(v string) *Docum return s } +// SetVpcConfig sets the VpcConfig field's value. +func (s *DocumentClassificationJobProperties) SetVpcConfig(v *VpcConfig) *DocumentClassificationJobProperties { + s.VpcConfig = v + return s +} + // Provides information for filtering a list of document classifiers. You can // only specify one filtering parameter in a request. For more information, // see the operation. @@ -7086,6 +7297,11 @@ type DocumentClassifierProperties struct { // // * Amazon Resource Name (ARN) of a KMS Key: "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab" VolumeKmsKeyId *string `type:"string"` + + // Configuration parameters for a private Virtual Private Cloud (VPC) containing + // the resources you are using for your custom classifier. For more information, + // see Amazon VPC (https://docs.aws.amazon.com/vpc/latest/userguide/what-is-amazon-vpc.html). + VpcConfig *VpcConfig `type:"structure"` } // String returns the string representation @@ -7176,6 +7392,12 @@ func (s *DocumentClassifierProperties) SetVolumeKmsKeyId(v string) *DocumentClas return s } +// SetVpcConfig sets the VpcConfig field's value. +func (s *DocumentClassifierProperties) SetVpcConfig(v *VpcConfig) *DocumentClassifierProperties { + s.VpcConfig = v + return s +} + // Returns the code for the dominant language in the input text and the level // of confidence that Amazon Comprehend has in the accuracy of the detection. type DominantLanguage struct { @@ -7327,6 +7549,11 @@ type DominantLanguageDetectionJobProperties struct { // // * Amazon Resource Name (ARN) of a KMS Key: "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab" VolumeKmsKeyId *string `type:"string"` + + // Configuration parameters for a private Virtual Private Cloud (VPC) containing + // the resources you are using for your dominant language detection job. For + // more information, see Amazon VPC (https://docs.aws.amazon.com/vpc/latest/userguide/what-is-amazon-vpc.html). + VpcConfig *VpcConfig `type:"structure"` } // String returns the string representation @@ -7399,6 +7626,12 @@ func (s *DominantLanguageDetectionJobProperties) SetVolumeKmsKeyId(v string) *Do return s } +// SetVpcConfig sets the VpcConfig field's value. +func (s *DominantLanguageDetectionJobProperties) SetVpcConfig(v *VpcConfig) *DominantLanguageDetectionJobProperties { + s.VpcConfig = v + return s +} + // Provides information for filtering a list of dominant language detection // jobs. For more information, see the operation. type EntitiesDetectionJobFilter struct { @@ -7519,6 +7752,11 @@ type EntitiesDetectionJobProperties struct { // // * Amazon Resource Name (ARN) of a KMS Key: "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab" VolumeKmsKeyId *string `type:"string"` + + // Configuration parameters for a private Virtual Private Cloud (VPC) containing + // the resources you are using for your entity detection job. For more information, + // see Amazon VPC (https://docs.aws.amazon.com/vpc/latest/userguide/what-is-amazon-vpc.html). + VpcConfig *VpcConfig `type:"structure"` } // String returns the string representation @@ -7603,6 +7841,12 @@ func (s *EntitiesDetectionJobProperties) SetVolumeKmsKeyId(v string) *EntitiesDe return s } +// SetVpcConfig sets the VpcConfig field's value. +func (s *EntitiesDetectionJobProperties) SetVpcConfig(v *VpcConfig) *EntitiesDetectionJobProperties { + s.VpcConfig = v + return s +} + // Provides information about an entity. type Entity struct { _ struct{} `type:"structure"` @@ -8112,6 +8356,11 @@ type EntityRecognizerProperties struct { // // * Amazon Resource Name (ARN) of a KMS Key: "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab" VolumeKmsKeyId *string `type:"string"` + + // Configuration parameters for a private Virtual Private Cloud (VPC) containing + // the resources you are using for your custom entity recognizer. For more information, + // see Amazon VPC (https://docs.aws.amazon.com/vpc/latest/userguide/what-is-amazon-vpc.html). + VpcConfig *VpcConfig `type:"structure"` } // String returns the string representation @@ -8196,6 +8445,12 @@ func (s *EntityRecognizerProperties) SetVolumeKmsKeyId(v string) *EntityRecogniz return s } +// SetVpcConfig sets the VpcConfig field's value. +func (s *EntityRecognizerProperties) SetVpcConfig(v *VpcConfig) *EntityRecognizerProperties { + s.VpcConfig = v + return s +} + // Information about an individual item on a list of entity types. type EntityTypesListItem struct { _ struct{} `type:"structure"` @@ -8473,6 +8728,11 @@ type KeyPhrasesDetectionJobProperties struct { // // * Amazon Resource Name (ARN) of a KMS Key: "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab" VolumeKmsKeyId *string `type:"string"` + + // Configuration parameters for a private Virtual Private Cloud (VPC) containing + // the resources you are using for your key phrases detection job. For more + // information, see Amazon VPC (https://docs.aws.amazon.com/vpc/latest/userguide/what-is-amazon-vpc.html). + VpcConfig *VpcConfig `type:"structure"` } // String returns the string representation @@ -8551,6 +8811,12 @@ func (s *KeyPhrasesDetectionJobProperties) SetVolumeKmsKeyId(v string) *KeyPhras return s } +// SetVpcConfig sets the VpcConfig field's value. +func (s *KeyPhrasesDetectionJobProperties) SetVpcConfig(v *VpcConfig) *KeyPhrasesDetectionJobProperties { + s.VpcConfig = v + return s +} + type ListDocumentClassificationJobsInput struct { _ struct{} `type:"structure"` @@ -9604,6 +9870,11 @@ type SentimentDetectionJobProperties struct { // // * Amazon Resource Name (ARN) of a KMS Key: "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab" VolumeKmsKeyId *string `type:"string"` + + // Configuration parameters for a private Virtual Private Cloud (VPC) containing + // the resources you are using for your sentiment detection job. For more information, + // see Amazon VPC (https://docs.aws.amazon.com/vpc/latest/userguide/what-is-amazon-vpc.html). + VpcConfig *VpcConfig `type:"structure"` } // String returns the string representation @@ -9682,6 +9953,12 @@ func (s *SentimentDetectionJobProperties) SetVolumeKmsKeyId(v string) *Sentiment return s } +// SetVpcConfig sets the VpcConfig field's value. +func (s *SentimentDetectionJobProperties) SetVpcConfig(v *VpcConfig) *SentimentDetectionJobProperties { + s.VpcConfig = v + return s +} + // Describes the level of confidence that Amazon Comprehend has in the accuracy // of its detection of sentiments. type SentimentScore struct { @@ -9779,6 +10056,11 @@ type StartDocumentClassificationJobInput struct { // // * Amazon Resource Name (ARN) of a KMS Key: "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab" VolumeKmsKeyId *string `type:"string"` + + // Configuration parameters for an optional private Virtual Private Cloud (VPC) + // containing the resources you are using for your document classification job. + // For more information, see Amazon VPC (https://docs.aws.amazon.com/vpc/latest/userguide/what-is-amazon-vpc.html). + VpcConfig *VpcConfig `type:"structure"` } // String returns the string representation @@ -9825,6 +10107,11 @@ func (s *StartDocumentClassificationJobInput) Validate() error { invalidParams.AddNested("OutputDataConfig", err.(request.ErrInvalidParams)) } } + if s.VpcConfig != nil { + if err := s.VpcConfig.Validate(); err != nil { + invalidParams.AddNested("VpcConfig", err.(request.ErrInvalidParams)) + } + } if invalidParams.Len() > 0 { return invalidParams @@ -9874,6 +10161,12 @@ func (s *StartDocumentClassificationJobInput) SetVolumeKmsKeyId(v string) *Start return s } +// SetVpcConfig sets the VpcConfig field's value. +func (s *StartDocumentClassificationJobInput) SetVpcConfig(v *VpcConfig) *StartDocumentClassificationJobInput { + s.VpcConfig = v + return s +} + type StartDocumentClassificationJobOutput struct { _ struct{} `type:"structure"` @@ -9957,6 +10250,11 @@ type StartDominantLanguageDetectionJobInput struct { // // * Amazon Resource Name (ARN) of a KMS Key: "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab" VolumeKmsKeyId *string `type:"string"` + + // Configuration parameters for an optional private Virtual Private Cloud (VPC) + // containing the resources you are using for your dominant language detection + // job. For more information, see Amazon VPC (https://docs.aws.amazon.com/vpc/latest/userguide/what-is-amazon-vpc.html). + VpcConfig *VpcConfig `type:"structure"` } // String returns the string representation @@ -10000,6 +10298,11 @@ func (s *StartDominantLanguageDetectionJobInput) Validate() error { invalidParams.AddNested("OutputDataConfig", err.(request.ErrInvalidParams)) } } + if s.VpcConfig != nil { + if err := s.VpcConfig.Validate(); err != nil { + invalidParams.AddNested("VpcConfig", err.(request.ErrInvalidParams)) + } + } if invalidParams.Len() > 0 { return invalidParams @@ -10043,6 +10346,12 @@ func (s *StartDominantLanguageDetectionJobInput) SetVolumeKmsKeyId(v string) *St return s } +// SetVpcConfig sets the VpcConfig field's value. +func (s *StartDominantLanguageDetectionJobInput) SetVpcConfig(v *VpcConfig) *StartDominantLanguageDetectionJobInput { + s.VpcConfig = v + return s +} + type StartDominantLanguageDetectionJobOutput struct { _ struct{} `type:"structure"` @@ -10135,6 +10444,11 @@ type StartEntitiesDetectionJobInput struct { // // * Amazon Resource Name (ARN) of a KMS Key: "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab" VolumeKmsKeyId *string `type:"string"` + + // Configuration parameters for an optional private Virtual Private Cloud (VPC) + // containing the resources you are using for your entity detection job. For + // more information, see Amazon VPC (https://docs.aws.amazon.com/vpc/latest/userguide/what-is-amazon-vpc.html). + VpcConfig *VpcConfig `type:"structure"` } // String returns the string representation @@ -10181,6 +10495,11 @@ func (s *StartEntitiesDetectionJobInput) Validate() error { invalidParams.AddNested("OutputDataConfig", err.(request.ErrInvalidParams)) } } + if s.VpcConfig != nil { + if err := s.VpcConfig.Validate(); err != nil { + invalidParams.AddNested("VpcConfig", err.(request.ErrInvalidParams)) + } + } if invalidParams.Len() > 0 { return invalidParams @@ -10236,6 +10555,12 @@ func (s *StartEntitiesDetectionJobInput) SetVolumeKmsKeyId(v string) *StartEntit return s } +// SetVpcConfig sets the VpcConfig field's value. +func (s *StartEntitiesDetectionJobInput) SetVpcConfig(v *VpcConfig) *StartEntitiesDetectionJobInput { + s.VpcConfig = v + return s +} + type StartEntitiesDetectionJobOutput struct { _ struct{} `type:"structure"` @@ -10325,6 +10650,11 @@ type StartKeyPhrasesDetectionJobInput struct { // // * Amazon Resource Name (ARN) of a KMS Key: "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab" VolumeKmsKeyId *string `type:"string"` + + // Configuration parameters for an optional private Virtual Private Cloud (VPC) + // containing the resources you are using for your key phrases detection job. + // For more information, see Amazon VPC (https://docs.aws.amazon.com/vpc/latest/userguide/what-is-amazon-vpc.html). + VpcConfig *VpcConfig `type:"structure"` } // String returns the string representation @@ -10371,6 +10701,11 @@ func (s *StartKeyPhrasesDetectionJobInput) Validate() error { invalidParams.AddNested("OutputDataConfig", err.(request.ErrInvalidParams)) } } + if s.VpcConfig != nil { + if err := s.VpcConfig.Validate(); err != nil { + invalidParams.AddNested("VpcConfig", err.(request.ErrInvalidParams)) + } + } if invalidParams.Len() > 0 { return invalidParams @@ -10420,6 +10755,12 @@ func (s *StartKeyPhrasesDetectionJobInput) SetVolumeKmsKeyId(v string) *StartKey return s } +// SetVpcConfig sets the VpcConfig field's value. +func (s *StartKeyPhrasesDetectionJobInput) SetVpcConfig(v *VpcConfig) *StartKeyPhrasesDetectionJobInput { + s.VpcConfig = v + return s +} + type StartKeyPhrasesDetectionJobOutput struct { _ struct{} `type:"structure"` @@ -10504,6 +10845,11 @@ type StartSentimentDetectionJobInput struct { // // * Amazon Resource Name (ARN) of a KMS Key: "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab" VolumeKmsKeyId *string `type:"string"` + + // Configuration parameters for an optional private Virtual Private Cloud (VPC) + // containing the resources you are using for your sentiment detection job. + // For more information, see Amazon VPC (https://docs.aws.amazon.com/vpc/latest/userguide/what-is-amazon-vpc.html). + VpcConfig *VpcConfig `type:"structure"` } // String returns the string representation @@ -10550,6 +10896,11 @@ func (s *StartSentimentDetectionJobInput) Validate() error { invalidParams.AddNested("OutputDataConfig", err.(request.ErrInvalidParams)) } } + if s.VpcConfig != nil { + if err := s.VpcConfig.Validate(); err != nil { + invalidParams.AddNested("VpcConfig", err.(request.ErrInvalidParams)) + } + } if invalidParams.Len() > 0 { return invalidParams @@ -10599,6 +10950,12 @@ func (s *StartSentimentDetectionJobInput) SetVolumeKmsKeyId(v string) *StartSent return s } +// SetVpcConfig sets the VpcConfig field's value. +func (s *StartSentimentDetectionJobInput) SetVpcConfig(v *VpcConfig) *StartSentimentDetectionJobInput { + s.VpcConfig = v + return s +} + type StartSentimentDetectionJobOutput struct { _ struct{} `type:"structure"` @@ -10682,6 +11039,11 @@ type StartTopicsDetectionJobInput struct { // // * Amazon Resource Name (ARN) of a KMS Key: "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab" VolumeKmsKeyId *string `type:"string"` + + // Configuration parameters for an optional private Virtual Private Cloud (VPC) + // containing the resources you are using for your topic detection job. For + // more information, see Amazon VPC (https://docs.aws.amazon.com/vpc/latest/userguide/what-is-amazon-vpc.html). + VpcConfig *VpcConfig `type:"structure"` } // String returns the string representation @@ -10728,6 +11090,11 @@ func (s *StartTopicsDetectionJobInput) Validate() error { invalidParams.AddNested("OutputDataConfig", err.(request.ErrInvalidParams)) } } + if s.VpcConfig != nil { + if err := s.VpcConfig.Validate(); err != nil { + invalidParams.AddNested("VpcConfig", err.(request.ErrInvalidParams)) + } + } if invalidParams.Len() > 0 { return invalidParams @@ -10777,6 +11144,12 @@ func (s *StartTopicsDetectionJobInput) SetVolumeKmsKeyId(v string) *StartTopicsD return s } +// SetVpcConfig sets the VpcConfig field's value. +func (s *StartTopicsDetectionJobInput) SetVpcConfig(v *VpcConfig) *StartTopicsDetectionJobInput { + s.VpcConfig = v + return s +} + type StartTopicsDetectionJobOutput struct { _ struct{} `type:"structure"` @@ -11541,6 +11914,11 @@ type TopicsDetectionJobProperties struct { // // * Amazon Resource Name (ARN) of a KMS Key: "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab" VolumeKmsKeyId *string `type:"string"` + + // Configuration parameters for a private Virtual Private Cloud (VPC) containing + // the resources you are using for your topic detection job. For more information, + // see Amazon VPC (https://docs.aws.amazon.com/vpc/latest/userguide/what-is-amazon-vpc.html). + VpcConfig *VpcConfig `type:"structure"` } // String returns the string representation @@ -11619,6 +11997,12 @@ func (s *TopicsDetectionJobProperties) SetVolumeKmsKeyId(v string) *TopicsDetect return s } +// SetVpcConfig sets the VpcConfig field's value. +func (s *TopicsDetectionJobProperties) SetVpcConfig(v *VpcConfig) *TopicsDetectionJobProperties { + s.VpcConfig = v + return s +} + type UntagResourceInput struct { _ struct{} `type:"structure"` @@ -11689,6 +12073,76 @@ func (s UntagResourceOutput) GoString() string { return s.String() } +// Configuration parameters for an optional private Virtual Private Cloud (VPC) +// containing the resources you are using for the job. For For more information, +// see Amazon VPC (https://docs.aws.amazon.com/vpc/latest/userguide/what-is-amazon-vpc.html). +type VpcConfig struct { + _ struct{} `type:"structure"` + + // The ID number for a security group on an instance of your private VPC. Security + // groups on your VPC function serve as a virtual firewall to control inbound + // and outbound traffic and provides security for the resources that you’ll + // be accessing on the VPC. This ID number is preceded by "sg-", for instance: + // "sg-03b388029b0a285ea". For more information, see Security Groups for your + // VPC (https://docs.aws.amazon.com/vpc/latest/userguide/VPC_SecurityGroups.html). + // + // SecurityGroupIds is a required field + SecurityGroupIds []*string `min:"1" type:"list" required:"true"` + + // The ID for each subnet being used in your private VPC. This subnet is a subset + // of the a range of IPv4 addresses used by the VPC and is specific to a given + // availability zone in the VPC’s region. This ID number is preceded by "subnet-", + // for instance: "subnet-04ccf456919e69055". For more information, see VPCs + // and Subnets (https://docs.aws.amazon.com/vpc/latest/userguide/VPC_Subnets.html). + // + // Subnets is a required field + Subnets []*string `min:"1" type:"list" required:"true"` +} + +// String returns the string representation +func (s VpcConfig) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s VpcConfig) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *VpcConfig) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "VpcConfig"} + if s.SecurityGroupIds == nil { + invalidParams.Add(request.NewErrParamRequired("SecurityGroupIds")) + } + if s.SecurityGroupIds != nil && len(s.SecurityGroupIds) < 1 { + invalidParams.Add(request.NewErrParamMinLen("SecurityGroupIds", 1)) + } + if s.Subnets == nil { + invalidParams.Add(request.NewErrParamRequired("Subnets")) + } + if s.Subnets != nil && len(s.Subnets) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Subnets", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetSecurityGroupIds sets the SecurityGroupIds field's value. +func (s *VpcConfig) SetSecurityGroupIds(v []*string) *VpcConfig { + s.SecurityGroupIds = v + return s +} + +// SetSubnets sets the Subnets field's value. +func (s *VpcConfig) SetSubnets(v []*string) *VpcConfig { + s.Subnets = v + return s +} + const ( // EntityTypePerson is a EntityType enum value EntityTypePerson = "PERSON" diff --git a/service/comprehend/comprehendiface/interface.go b/service/comprehend/comprehendiface/interface.go index c902d6c7a84..f5b8c2a7c02 100644 --- a/service/comprehend/comprehendiface/interface.go +++ b/service/comprehend/comprehendiface/interface.go @@ -152,10 +152,16 @@ type ComprehendAPI interface { ListDocumentClassificationJobsWithContext(aws.Context, *comprehend.ListDocumentClassificationJobsInput, ...request.Option) (*comprehend.ListDocumentClassificationJobsOutput, error) ListDocumentClassificationJobsRequest(*comprehend.ListDocumentClassificationJobsInput) (*request.Request, *comprehend.ListDocumentClassificationJobsOutput) + ListDocumentClassificationJobsPages(*comprehend.ListDocumentClassificationJobsInput, func(*comprehend.ListDocumentClassificationJobsOutput, bool) bool) error + ListDocumentClassificationJobsPagesWithContext(aws.Context, *comprehend.ListDocumentClassificationJobsInput, func(*comprehend.ListDocumentClassificationJobsOutput, bool) bool, ...request.Option) error + ListDocumentClassifiers(*comprehend.ListDocumentClassifiersInput) (*comprehend.ListDocumentClassifiersOutput, error) ListDocumentClassifiersWithContext(aws.Context, *comprehend.ListDocumentClassifiersInput, ...request.Option) (*comprehend.ListDocumentClassifiersOutput, error) ListDocumentClassifiersRequest(*comprehend.ListDocumentClassifiersInput) (*request.Request, *comprehend.ListDocumentClassifiersOutput) + ListDocumentClassifiersPages(*comprehend.ListDocumentClassifiersInput, func(*comprehend.ListDocumentClassifiersOutput, bool) bool) error + ListDocumentClassifiersPagesWithContext(aws.Context, *comprehend.ListDocumentClassifiersInput, func(*comprehend.ListDocumentClassifiersOutput, bool) bool, ...request.Option) error + ListDominantLanguageDetectionJobs(*comprehend.ListDominantLanguageDetectionJobsInput) (*comprehend.ListDominantLanguageDetectionJobsOutput, error) ListDominantLanguageDetectionJobsWithContext(aws.Context, *comprehend.ListDominantLanguageDetectionJobsInput, ...request.Option) (*comprehend.ListDominantLanguageDetectionJobsOutput, error) ListDominantLanguageDetectionJobsRequest(*comprehend.ListDominantLanguageDetectionJobsInput) (*request.Request, *comprehend.ListDominantLanguageDetectionJobsOutput) @@ -174,6 +180,9 @@ type ComprehendAPI interface { ListEntityRecognizersWithContext(aws.Context, *comprehend.ListEntityRecognizersInput, ...request.Option) (*comprehend.ListEntityRecognizersOutput, error) ListEntityRecognizersRequest(*comprehend.ListEntityRecognizersInput) (*request.Request, *comprehend.ListEntityRecognizersOutput) + ListEntityRecognizersPages(*comprehend.ListEntityRecognizersInput, func(*comprehend.ListEntityRecognizersOutput, bool) bool) error + ListEntityRecognizersPagesWithContext(aws.Context, *comprehend.ListEntityRecognizersInput, func(*comprehend.ListEntityRecognizersOutput, bool) bool, ...request.Option) error + ListKeyPhrasesDetectionJobs(*comprehend.ListKeyPhrasesDetectionJobsInput) (*comprehend.ListKeyPhrasesDetectionJobsOutput, error) ListKeyPhrasesDetectionJobsWithContext(aws.Context, *comprehend.ListKeyPhrasesDetectionJobsInput, ...request.Option) (*comprehend.ListKeyPhrasesDetectionJobsOutput, error) ListKeyPhrasesDetectionJobsRequest(*comprehend.ListKeyPhrasesDetectionJobsInput) (*request.Request, *comprehend.ListKeyPhrasesDetectionJobsOutput) diff --git a/service/ec2/api.go b/service/ec2/api.go index 43da1f79af5..1df2a915f00 100644 --- a/service/ec2/api.go +++ b/service/ec2/api.go @@ -290,8 +290,8 @@ func (c *EC2) AcceptVpcPeeringConnectionRequest(input *AcceptVpcPeeringConnectio // of the peer VPC. Use DescribeVpcPeeringConnections to view your outstanding // VPC peering connection requests. // -// For an inter-region VPC peering connection request, you must accept the VPC -// peering connection in the region of the accepter VPC. +// For an inter-Region VPC peering connection request, you must accept the VPC +// peering connection in the Region of the accepter VPC. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -474,7 +474,7 @@ func (c *EC2) AllocateAddressRequest(input *AllocateAddressInput) (req *request. // // An Elastic IP address is for use either in the EC2-Classic platform or in // a VPC. By default, you can allocate 5 Elastic IP addresses for EC2-Classic -// per region and 5 Elastic IP addresses for EC2-VPC per region. +// per Region and 5 Elastic IP addresses for EC2-VPC per Region. // // For more information, see Elastic IP Addresses (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/elastic-ip-addresses-eip.html) // in the Amazon Elastic Compute Cloud User Guide. @@ -2978,7 +2978,7 @@ func (c *EC2) CopyFpgaImageRequest(input *CopyFpgaImageInput) (req *request.Requ // CopyFpgaImage API operation for Amazon Elastic Compute Cloud. // -// Copies the specified Amazon FPGA Image (AFI) to the current region. +// Copies the specified Amazon FPGA Image (AFI) to the current Region. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -3052,8 +3052,8 @@ func (c *EC2) CopyImageRequest(input *CopyImageInput) (req *request.Request, out // CopyImage API operation for Amazon Elastic Compute Cloud. // -// Initiates the copy of an AMI from the specified source region to the current -// region. You specify the destination region by using its endpoint when making +// Initiates the copy of an AMI from the specified source Region to the current +// Region. You specify the destination Region by using its endpoint when making // the request. // // Copies of encrypted backing snapshots for the AMI are encrypted. Copies of @@ -3493,8 +3493,8 @@ func (c *EC2) CreateCustomerGatewayRequest(input *CreateCustomerGatewayInput) (r // a private ASN (in the 64512 - 65534 range). // // Amazon EC2 supports all 2-byte ASN numbers in the range of 1 - 65534, with -// the exception of 7224, which is reserved in the us-east-1 region, and 9059, -// which is reserved in the eu-west-1 region. +// the exception of 7224, which is reserved in the us-east-1 Region, and 9059, +// which is reserved in the eu-west-1 Region. // // For more information, see AWS Site-to-Site VPN (https://docs.aws.amazon.com/vpn/latest/s2svpn/VPC_VPN.html) // in the AWS Site-to-Site VPN User Guide. @@ -3755,7 +3755,7 @@ func (c *EC2) CreateDhcpOptionsRequest(input *CreateDhcpOptionsInput) (req *requ // domain-name-servers to a custom DNS server. // // * domain-name - If you're using AmazonProvidedDNS in us-east-1, specify -// ec2.internal. If you're using AmazonProvidedDNS in another region, specify +// ec2.internal. If you're using AmazonProvidedDNS in another Region, specify // region.compute.internal (for example, ap-northeast-1.compute.internal). // Otherwise, specify a domain name (for example, MyCompany.com). This value // is used to complete unqualified DNS hostnames. Important: Some Linux operating @@ -4425,11 +4425,11 @@ func (c *EC2) CreateKeyPairRequest(input *CreateKeyPairInput) (req *request.Requ // private key is returned as an unencrypted PEM encoded PKCS#1 private key. // If a key with the specified name already exists, Amazon EC2 returns an error. // -// You can have up to five thousand key pairs per region. +// You can have up to five thousand key pairs per Region. // -// The key pair returned to you is available only in the region in which you +// The key pair returned to you is available only in the Region in which you // create it. If you prefer, you can create your own key pair using a third-party -// tool and upload it to any region using ImportKeyPair. +// tool and upload it to any Region using ImportKeyPair. // // For more information, see Key Pairs (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-key-pairs.html) // in the Amazon Elastic Compute Cloud User Guide. @@ -10241,8 +10241,8 @@ func (c *EC2) DescribeAggregateIdFormatRequest(input *DescribeAggregateIdFormatI // DescribeAggregateIdFormat API operation for Amazon Elastic Compute Cloud. // // Describes the longer ID format settings for all resource types in a specific -// region. This request is useful for performing a quick audit to determine -// whether a specific region is fully opted in for longer IDs (17-character +// Region. This request is useful for performing a quick audit to determine +// whether a specific Region is fully opted in for longer IDs (17-character // IDs). // // This request only returns information about resource types that support longer @@ -10329,7 +10329,7 @@ func (c *EC2) DescribeAvailabilityZonesRequest(input *DescribeAvailabilityZonesI // DescribeAvailabilityZones API operation for Amazon Elastic Compute Cloud. // // Describes the Availability Zones that are available to you. The results include -// zones only for the region you're currently using. If there is an event impacting +// zones only for the Region you're currently using. If there is an event impacting // an Availability Zone, you can use this request to view the state and any // provided message for that Availability Zone. // @@ -11677,6 +11677,12 @@ func (c *EC2) DescribeDhcpOptionsRequest(input *DescribeDhcpOptionsInput) (req * Name: opDescribeDhcpOptions, HTTPMethod: "POST", HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, } if input == nil { @@ -11723,6 +11729,56 @@ func (c *EC2) DescribeDhcpOptionsWithContext(ctx aws.Context, input *DescribeDhc return out, req.Send() } +// DescribeDhcpOptionsPages iterates over the pages of a DescribeDhcpOptions operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See DescribeDhcpOptions 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 DescribeDhcpOptions operation. +// pageNum := 0 +// err := client.DescribeDhcpOptionsPages(params, +// func(page *DescribeDhcpOptionsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *EC2) DescribeDhcpOptionsPages(input *DescribeDhcpOptionsInput, fn func(*DescribeDhcpOptionsOutput, bool) bool) error { + return c.DescribeDhcpOptionsPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// DescribeDhcpOptionsPagesWithContext same as DescribeDhcpOptionsPages 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 *EC2) DescribeDhcpOptionsPagesWithContext(ctx aws.Context, input *DescribeDhcpOptionsInput, fn func(*DescribeDhcpOptionsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *DescribeDhcpOptionsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.DescribeDhcpOptionsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + cont := true + for p.Next() && cont { + cont = fn(p.Page().(*DescribeDhcpOptionsOutput), !p.HasNextPage()) + } + return p.Err() +} + const opDescribeEgressOnlyInternetGateways = "DescribeEgressOnlyInternetGateways" // DescribeEgressOnlyInternetGatewaysRequest generates a "aws/request.Request" representing the @@ -13195,7 +13251,7 @@ func (c *EC2) DescribeIdFormatRequest(input *DescribeIdFormatInput) (req *reques // DescribeIdFormat API operation for Amazon Elastic Compute Cloud. // -// Describes the ID format settings for your resources on a per-region basis, +// Describes the ID format settings for your resources on a per-Region basis, // for example, to view which resource types are enabled for longer IDs. This // request only returns information about resource types whose ID formats can // be modified; it does not return information about other resource types. @@ -13459,8 +13515,10 @@ func (c *EC2) DescribeImagesRequest(input *DescribeImagesInput) (req *request.Re // own, and private images owned by other AWS accounts for which you have explicit // launch permissions. // -// Recently deregistered images might appear in the returned results for a short -// interval. +// Recently deregistered images appear in the returned results for a short interval +// and then return empty results. After all instances that reference a deregistered +// AMI are terminated, specifying the ID of the image results in an error indicating +// that the AMI ID cannot be found. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -16005,9 +16063,13 @@ func (c *EC2) DescribeRegionsRequest(input *DescribeRegionsInput) (req *request. // DescribeRegions API operation for Amazon Elastic Compute Cloud. // -// Describes the regions that are currently available to you. +// Describes the Regions that are currently available to you. The API returns +// a list of all the Regions, including Regions that are disabled for your account. +// For information about enabling Regions for your account, see Enabling and +// Disabling Regions (https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/manage-account-payment.html#manage-account-payment-enable-disable-regions) +// in the AWS Billing and Cost Management User Guide. // -// For a list of the regions supported by Amazon EC2, see Regions and Endpoints +// For a list of the Regions supported by Amazon EC2, see Regions and Endpoints // (https://docs.aws.amazon.com/general/latest/gr/rande.html#ec2_region). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions @@ -18169,6 +18231,12 @@ func (c *EC2) DescribeSubnetsRequest(input *DescribeSubnetsInput) (req *request. Name: opDescribeSubnets, HTTPMethod: "POST", HTTPPath: "/", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, } if input == nil { @@ -18215,6 +18283,56 @@ func (c *EC2) DescribeSubnetsWithContext(ctx aws.Context, input *DescribeSubnets return out, req.Send() } +// DescribeSubnetsPages iterates over the pages of a DescribeSubnets operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See DescribeSubnets 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 DescribeSubnets operation. +// pageNum := 0 +// err := client.DescribeSubnetsPages(params, +// func(page *DescribeSubnetsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *EC2) DescribeSubnetsPages(input *DescribeSubnetsInput, fn func(*DescribeSubnetsOutput, bool) bool) error { + return c.DescribeSubnetsPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// DescribeSubnetsPagesWithContext same as DescribeSubnetsPages 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 *EC2) DescribeSubnetsPagesWithContext(ctx aws.Context, input *DescribeSubnetsInput, fn func(*DescribeSubnetsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *DescribeSubnetsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.DescribeSubnetsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + cont := true + for p.Next() && cont { + cont = fn(p.Page().(*DescribeSubnetsOutput), !p.HasNextPage()) + } + return p.Err() +} + const opDescribeTags = "DescribeTags" // DescribeTagsRequest generates a "aws/request.Request" representing the @@ -24475,7 +24593,7 @@ func (c *EC2) ModifyIdFormatRequest(input *ModifyIdFormatInput) (req *request.Re // ModifyIdFormat API operation for Amazon Elastic Compute Cloud. // -// Modifies the ID format for the specified resource on a per-region basis. +// Modifies the ID format for the specified resource on a per-Region basis. // You can specify that resources should receive longer IDs (17-character IDs) // when they are created. // @@ -26318,11 +26436,11 @@ func (c *EC2) ModifyVpcPeeringConnectionOptionsRequest(input *ModifyVpcPeeringCo // If the peered VPCs are in the same AWS account, you can enable DNS resolution // for queries from the local VPC. This ensures that queries from the local // VPC resolve to private IP addresses in the peer VPC. This option is not available -// if the peered VPCs are in different AWS accounts or different regions. For +// if the peered VPCs are in different AWS accounts or different Regions. For // peered VPCs in different AWS accounts, each AWS account owner must initiate // a separate request to modify the peering connection options. For inter-region -// peering connections, you must use the region for the requester VPC to modify -// the requester VPC peering options and the region for the accepter VPC to +// peering connections, you must use the Region for the requester VPC to modify +// the requester VPC peering options and the Region for the accepter VPC to // modify the accepter VPC peering options. To verify which VPCs are the accepter // and the requester for a VPC peering connection, use the DescribeVpcPeeringConnections // command. @@ -26482,6 +26600,47 @@ func (c *EC2) ModifyVpnConnectionRequest(input *ModifyVpnConnectionInput) (req * // ModifyVpnConnection API operation for Amazon Elastic Compute Cloud. // +// Modifies the target gateway of a AWS Site-to-Site VPN connection. The following +// migration options are available: +// +// * An existing virtual private gateway to a new virtual private gateway +// +// * An existing virtual private gateway to a transit gateway +// +// * An existing transit gateway to a new transit gateway +// +// * An existing transit gateway to a virtual private gateway +// +// Before you perform the migration to the new gateway, you must configure the +// new gateway. Use CreateVpnGateway to create a virtual private gateway, or +// CreateTransitGateway to create a transit gateway. +// +// This step is required when you migrate from a virtual private gateway with +// static routes to a transit gateway. +// +// You must delete the static routes before you migrate to the new gateway. +// +// Keep a copy of the static route before you delete it. You will need to add +// back these routes to the transit gateway after the VPN connection migration +// is complete. +// +// After you migrate to the new gateway, you might need to modify your VPC route +// table. Use CreateRoute and DeleteRoute to make the changes described in VPN +// Gateway Target Modification Required VPC Route Table Updates (https://docs.aws.amazon.com/vpn/latest/s2svpn/modify-vpn-target.html#step-update-routing) +// in the AWS Site-to-Site VPN User Guide. +// +// When the new gateway is a transit gateway, modify the transit gateway route +// table to allow traffic between the VPC and the AWS Site-to-Site VPN connection. +// Use CreateTransitGatewayRoute to add the routes. +// +// If you deleted VPN static routes, you must add the static routes to the transit +// gateway route table. +// +// After you perform this operation, the AWS VPN endpoint's IP addresses on +// the AWS side and the tunnel options remain intact. Your s2slong; connection +// will be temporarily unavailable for approximately 10 minutes while we provision +// the new 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. @@ -33117,7 +33276,7 @@ type AvailabilityZone struct { // Any messages about the Availability Zone. Messages []*AvailabilityZoneMessage `locationName:"messageSet" locationNameList:"item" type:"list"` - // The name of the region. + // The name of the Region. RegionName *string `locationName:"regionName" type:"string"` // The state of the Availability Zone. @@ -36019,7 +36178,7 @@ type CopyFpgaImageInput struct { // SourceFpgaImageId is a required field SourceFpgaImageId *string `type:"string" required:"true"` - // The region that contains the source AFI. + // The Region that contains the source AFI. // // SourceRegion is a required field SourceRegion *string `type:"string" required:"true"` @@ -36119,7 +36278,7 @@ type CopyImageInput struct { // in the Amazon Elastic Compute Cloud User Guide. ClientToken *string `type:"string"` - // A description for the new AMI in the destination region. + // A description for the new AMI in the destination Region. Description *string `type:"string"` // Checks whether you have the required permissions for the action, without @@ -36148,16 +36307,16 @@ type CopyImageInput struct { // * Key ID // // * Key alias. The alias ARN contains the arn:aws:kms namespace, followed - // by the region of the CMK, the AWS account ID of the CMK owner, the alias + // by the Region of the CMK, the AWS account ID of the CMK owner, the alias // namespace, and then the CMK alias. For example, arn:aws:kms:us-east-1:012345678910:alias/ExampleAlias. // // * ARN using key ID. The ID ARN contains the arn:aws:kms namespace, followed - // by the region of the CMK, the AWS account ID of the CMK owner, the key + // by the Region of the CMK, the AWS account ID of the CMK owner, the key // namespace, and then the CMK ID. For example, arn:aws:kms:us-east-1:012345678910:key/abcd1234-a123-456a-a12b-a123b4cd56ef. // // // * ARN using key alias. The alias ARN contains the arn:aws:kms namespace, - // followed by the region of the CMK, the AWS account ID of the CMK owner, + // followed by the Region of the CMK, the AWS account ID of the CMK owner, // the alias namespace, and then the CMK alias. For example, arn:aws:kms:us-east-1:012345678910:alias/ExampleAlias. // // @@ -36165,11 +36324,11 @@ type CopyImageInput struct { // appear to complete even though you provided an invalid identifier. This action // will eventually report failure. // - // The specified CMK must exist in the region that the snapshot is being copied + // The specified CMK must exist in the Region that the snapshot is being copied // to. KmsKeyId *string `locationName:"kmsKeyId" type:"string"` - // The name of the new AMI in the destination region. + // The name of the new AMI in the destination Region. // // Name is a required field Name *string `type:"string" required:"true"` @@ -36179,7 +36338,7 @@ type CopyImageInput struct { // SourceImageId is a required field SourceImageId *string `type:"string" required:"true"` - // The name of the region that contains the AMI to copy. + // The name of the Region that contains the AMI to copy. // // SourceRegion is a required field SourceRegion *string `type:"string" required:"true"` @@ -36328,16 +36487,16 @@ type CopySnapshotInput struct { // * Key ID // // * Key alias. The alias ARN contains the arn:aws:kms namespace, followed - // by the region of the CMK, the AWS account ID of the CMK owner, the alias + // by the Region of the CMK, the AWS account ID of the CMK owner, the alias // namespace, and then the CMK alias. For example, arn:aws:kms:us-east-1:012345678910:alias/ExampleAlias. // // * ARN using key ID. The ID ARN contains the arn:aws:kms namespace, followed - // by the region of the CMK, the AWS account ID of the CMK owner, the key + // by the Region of the CMK, the AWS account ID of the CMK owner, the key // namespace, and then the CMK ID. For example, arn:aws:kms:us-east-1:012345678910:key/abcd1234-a123-456a-a12b-a123b4cd56ef. // // // * ARN using key alias. The alias ARN contains the arn:aws:kms namespace, - // followed by the region of the CMK, the AWS account ID of the CMK owner, + // followed by the Region of the CMK, the AWS account ID of the CMK owner, // the alias namespace, and then the CMK alias. For example, arn:aws:kms:us-east-1:012345678910:alias/ExampleAlias. // // @@ -39124,8 +39283,8 @@ type CreateNetworkInterfaceInput struct { // Indicates whether the network interface is an Elastic Fabric Adapter (EFA). // Only specify this parameter to create an EFA. For more information, see Elastic - // Fabric Adapter (AWSEC2/latest/UserGuide/efa.html) in the Amazon Elastic Compute - // Cloud User Guide. + // Fabric Adapter (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/efa.html) + // in the Amazon Elastic Compute Cloud User Guide. // // If you are not creating an EFA ENI, omit this parameter. InterfaceType *string `type:"string" enum:"NetworkInterfaceCreationType"` @@ -40335,7 +40494,7 @@ func (s *CreateTransitGatewayOutput) SetTransitGateway(v *TransitGateway) *Creat type CreateTransitGatewayRouteInput struct { _ struct{} `type:"structure"` - // Indicates whether to drop traffic if the target isn't available. + // Indicates whether to drop traffic that matches this route. Blackhole *bool `type:"boolean"` // The CIDR range used for destination matches. Routing decisions are based @@ -40722,16 +40881,16 @@ type CreateVolumeInput struct { // * Key ID // // * Key alias. The alias ARN contains the arn:aws:kms namespace, followed - // by the region of the CMK, the AWS account ID of the CMK owner, the alias + // by the Region of the CMK, the AWS account ID of the CMK owner, the alias // namespace, and then the CMK alias. For example, arn:aws:kms:us-east-1:012345678910:alias/ExampleAlias. // // * ARN using key ID. The ID ARN contains the arn:aws:kms namespace, followed - // by the region of the CMK, the AWS account ID of the CMK owner, the key + // by the Region of the CMK, the AWS account ID of the CMK owner, the key // namespace, and then the CMK ID. For example, arn:aws:kms:us-east-1:012345678910:key/abcd1234-a123-456a-a12b-a123b4cd56ef. // // // * ARN using key alias. The alias ARN contains the arn:aws:kms namespace, - // followed by the region of the CMK, the AWS account ID of the CMK owner, + // followed by the Region of the CMK, the AWS account ID of the CMK owner, // the alias namespace, and then the CMK alias. For example, arn:aws:kms:us-east-1:012345678910:alias/ExampleAlias. // // @@ -41062,7 +41221,7 @@ type CreateVpcEndpointInput struct { // (Interface endpoint) Indicate whether to associate a private hosted zone // with the specified VPC. The private hosted zone contains a record set for - // the default public DNS name for the service for the region (for example, + // the default public DNS name for the service for the Region (for example, // kinesis.us-east-1.amazonaws.com) which resolves to the private IP addresses // of the endpoint network interfaces in the VPC. This enables you to make requests // to the default public DNS name for the service instead of the public DNS @@ -41443,10 +41602,10 @@ type CreateVpcPeeringConnectionInput struct { // Default: Your AWS account ID PeerOwnerId *string `locationName:"peerOwnerId" type:"string"` - // The region code for the accepter VPC, if the accepter VPC is located in a - // region other than the region in which you make the request. + // The Region code for the accepter VPC, if the accepter VPC is located in a + // Region other than the Region in which you make the request. // - // Default: The region in which you make the request. + // Default: The Region in which you make the request. PeerRegion *string `type:"string"` // The ID of the VPC with which you are creating the VPC peering connection. @@ -45222,9 +45381,9 @@ type DescribeAggregateIdFormatOutput struct { // Information about each resource's ID format. Statuses []*IdFormat `locationName:"statusSet" locationNameList:"item" type:"list"` - // Indicates whether all resource types in the region are configured to use + // Indicates whether all resource types in the Region are configured to use // longer IDs. This value is only true if all users are configured to use longer - // IDs for all resources types in the region. + // IDs for all resources types in the Region. UseLongIdsAggregated *bool `locationName:"useLongIdsAggregated" type:"boolean"` } @@ -45263,7 +45422,7 @@ type DescribeAvailabilityZonesInput struct { // // * message - Information about the Availability Zone. // - // * region-name - The name of the region for the Availability Zone (for + // * region-name - The name of the Region for the Availability Zone (for // example, us-east-1). // // * state - The state of the Availability Zone (available | information @@ -46525,6 +46684,13 @@ type DescribeDhcpOptionsInput struct { // to find all resources assigned a tag with a specific key, regardless of // the tag value. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"` + + // The maximum number of results to return with a single call. To retrieve the + // remaining results, make another call with the returned nextToken value. + MaxResults *int64 `min:"5" type:"integer"` + + // The token for the next page of results. + NextToken *string `type:"string"` } // String returns the string representation @@ -46537,6 +46703,19 @@ func (s DescribeDhcpOptionsInput) GoString() string { return s.String() } +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeDhcpOptionsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeDhcpOptionsInput"} + if s.MaxResults != nil && *s.MaxResults < 5 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 5)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + // SetDhcpOptionsIds sets the DhcpOptionsIds field's value. func (s *DescribeDhcpOptionsInput) SetDhcpOptionsIds(v []*string) *DescribeDhcpOptionsInput { s.DhcpOptionsIds = v @@ -46555,11 +46734,27 @@ func (s *DescribeDhcpOptionsInput) SetFilters(v []*Filter) *DescribeDhcpOptionsI return s } +// SetMaxResults sets the MaxResults field's value. +func (s *DescribeDhcpOptionsInput) SetMaxResults(v int64) *DescribeDhcpOptionsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeDhcpOptionsInput) SetNextToken(v string) *DescribeDhcpOptionsInput { + s.NextToken = &v + return s +} + type DescribeDhcpOptionsOutput struct { _ struct{} `type:"structure"` // Information about one or more DHCP options sets. DhcpOptions []*DhcpOptions `locationName:"dhcpOptionsSet" locationNameList:"item" type:"list"` + + // The token to use to retrieve the next page of results. This value is null + // when there are no more results to return. + NextToken *string `locationName:"nextToken" type:"string"` } // String returns the string representation @@ -46578,6 +46773,12 @@ func (s *DescribeDhcpOptionsOutput) SetDhcpOptions(v []*DhcpOptions) *DescribeDh return s } +// SetNextToken sets the NextToken field's value. +func (s *DescribeDhcpOptionsOutput) SetNextToken(v string) *DescribeDhcpOptionsOutput { + s.NextToken = &v + return s +} + type DescribeEgressOnlyInternetGatewaysInput struct { _ struct{} `type:"structure"` @@ -51269,12 +51470,12 @@ type DescribeRegionsInput struct { // The filters. // - // * endpoint - The endpoint of the region (for example, ec2.us-east-1.amazonaws.com). + // * endpoint - The endpoint of the Region (for example, ec2.us-east-1.amazonaws.com). // - // * region-name - The name of the region (for example, us-east-1). + // * region-name - The name of the Region (for example, us-east-1). Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"` - // The names of the regions. + // The names of the Regions. RegionNames []*string `locationName:"RegionName" locationNameList:"RegionName" type:"list"` } @@ -51309,7 +51510,7 @@ func (s *DescribeRegionsInput) SetRegionNames(v []*string) *DescribeRegionsInput type DescribeRegionsOutput struct { _ struct{} `type:"structure"` - // Information about the regions. + // Information about the Regions. Regions []*Region `locationName:"regionInfo" locationNameList:"item" type:"list"` } @@ -53810,6 +54011,13 @@ type DescribeSubnetsInput struct { // * vpc-id - The ID of the VPC for the subnet. Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"` + // The maximum number of results to return with a single call. To retrieve the + // remaining results, make another call with the returned nextToken value. + MaxResults *int64 `min:"5" type:"integer"` + + // The token for the next page of results. + NextToken *string `type:"string"` + // One or more subnet IDs. // // Default: Describes all your subnets. @@ -53826,6 +54034,19 @@ func (s DescribeSubnetsInput) GoString() string { return s.String() } +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeSubnetsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeSubnetsInput"} + if s.MaxResults != nil && *s.MaxResults < 5 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 5)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + // SetDryRun sets the DryRun field's value. func (s *DescribeSubnetsInput) SetDryRun(v bool) *DescribeSubnetsInput { s.DryRun = &v @@ -53838,6 +54059,18 @@ func (s *DescribeSubnetsInput) SetFilters(v []*Filter) *DescribeSubnetsInput { return s } +// SetMaxResults sets the MaxResults field's value. +func (s *DescribeSubnetsInput) SetMaxResults(v int64) *DescribeSubnetsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeSubnetsInput) SetNextToken(v string) *DescribeSubnetsInput { + s.NextToken = &v + return s +} + // SetSubnetIds sets the SubnetIds field's value. func (s *DescribeSubnetsInput) SetSubnetIds(v []*string) *DescribeSubnetsInput { s.SubnetIds = v @@ -53847,6 +54080,10 @@ func (s *DescribeSubnetsInput) SetSubnetIds(v []*string) *DescribeSubnetsInput { type DescribeSubnetsOutput struct { _ struct{} `type:"structure"` + // The token to use to retrieve the next page of results. This value is null + // when there are no more results to return. + NextToken *string `locationName:"nextToken" type:"string"` + // Information about one or more subnets. Subnets []*Subnet `locationName:"subnetSet" locationNameList:"item" type:"list"` } @@ -53861,6 +54098,12 @@ func (s DescribeSubnetsOutput) GoString() string { return s.String() } +// SetNextToken sets the NextToken field's value. +func (s *DescribeSubnetsOutput) SetNextToken(v string) *DescribeSubnetsOutput { + s.NextToken = &v + return s +} + // SetSubnets sets the Subnets field's value. func (s *DescribeSubnetsOutput) SetSubnets(v []*Subnet) *DescribeSubnetsOutput { s.Subnets = v @@ -62758,15 +63001,15 @@ type ImportImageInput struct { // * Key ID // // * Key alias. The alias ARN contains the arn:aws:kms namespace, followed - // by the region of the CMK, the AWS account ID of the CMK owner, the alias + // by the Region of the CMK, the AWS account ID of the CMK owner, the alias // namespace, and then the CMK alias. For example, arn:aws:kms:us-east-1:012345678910:alias/ExampleAlias. // // * ARN using key ID. The ID ARN contains the arn:aws:kms namespace, followed - // by the region of the CMK, the AWS account ID of the CMK owner, the key + // by the Region of the CMK, the AWS account ID of the CMK owner, the key // namespace, and then the CMK ID. For example, arn:aws:kms:us-east-1:012345678910:key/abcd1234-a123-456a-a12b-a123b4cd56ef. // // * ARN using key alias. The alias ARN contains the arn:aws:kms namespace, - // followed by the region of the CMK, the AWS account ID of the CMK owner, + // followed by the Region of the CMK, the AWS account ID of the CMK owner, // the alias namespace, and then the CMK alias. For example, arn:aws:kms:us-east-1:012345678910:alias/ExampleAlias. // // @@ -62774,7 +63017,7 @@ type ImportImageInput struct { // appear to complete even though you provided an invalid identifier. This action // will eventually report failure. // - // The specified CMK must exist in the region that the AMI is being copied to. + // The specified CMK must exist in the Region that the AMI is being copied to. KmsKeyId *string `type:"string"` // The license type to be used for the Amazon Machine Image (AMI) after importing. @@ -63654,15 +63897,15 @@ type ImportSnapshotInput struct { // * Key ID // // * Key alias. The alias ARN contains the arn:aws:kms namespace, followed - // by the region of the CMK, the AWS account ID of the CMK owner, the alias + // by the Region of the CMK, the AWS account ID of the CMK owner, the alias // namespace, and then the CMK alias. For example, arn:aws:kms:us-east-1:012345678910:alias/ExampleAlias. // // * ARN using key ID. The ID ARN contains the arn:aws:kms namespace, followed - // by the region of the CMK, the AWS account ID of the CMK owner, the key + // by the Region of the CMK, the AWS account ID of the CMK owner, the key // namespace, and then the CMK ID. For example, arn:aws:kms:us-east-1:012345678910:key/abcd1234-a123-456a-a12b-a123b4cd56ef. // // * ARN using key alias. The alias ARN contains the arn:aws:kms namespace, - // followed by the region of the CMK, the AWS account ID of the CMK owner, + // followed by the Region of the CMK, the AWS account ID of the CMK owner, // the alias namespace, and then the CMK alias. For example, arn:aws:kms:us-east-1:012345678910:alias/ExampleAlias. // // @@ -63670,7 +63913,7 @@ type ImportSnapshotInput struct { // appear to complete even though you provided an invalid identifier. This action // will eventually report failure. // - // The specified CMK must exist in the region that the snapshot is being copied + // The specified CMK must exist in the Region that the snapshot is being copied // to. KmsKeyId *string `type:"string"` @@ -65102,9 +65345,11 @@ type InstanceNetworkInterfaceSpecification struct { // interface when launching an instance. Description *string `locationName:"description" type:"string"` - // The index of the device on the instance for the network interface attachment. - // If you are specifying a network interface in a RunInstances request, you - // must provide the device index. + // The position of the network interface in the attachment order. A primary + // network interface has a device index of 0. + // + // If you specify a network interface when launching an instance, you must specify + // the device index. DeviceIndex *int64 `locationName:"deviceIndex" type:"integer"` // The IDs of the security groups for the network interface. Applies only if @@ -65132,19 +65377,22 @@ type InstanceNetworkInterfaceSpecification struct { // The private IPv4 address of the network interface. Applies only if creating // a network interface when launching an instance. You cannot specify this option - // if you're launching more than one instance in a RunInstances request. + // if you're launching more than one instance in a RunInstances (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_RunInstances.html) + // request. PrivateIpAddress *string `locationName:"privateIpAddress" type:"string"` // One or more private IPv4 addresses to assign to the network interface. Only // one private IPv4 address can be designated as primary. You cannot specify // this option if you're launching more than one instance in a RunInstances + // (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_RunInstances.html) // request. PrivateIpAddresses []*PrivateIpAddressSpecification `locationName:"privateIpAddressesSet" queryName:"PrivateIpAddresses" locationNameList:"item" type:"list"` // The number of secondary private IPv4 addresses. You can't specify this option // and specify more than one private IP address using the private IP addresses // option. You cannot specify this option if you're launching more than one - // instance in a RunInstances request. + // instance in a RunInstances (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_RunInstances.html) + // request. SecondaryPrivateIpAddressCount *int64 `locationName:"secondaryPrivateIpAddressCount" type:"integer"` // The ID of the subnet associated with the network string. Applies only if @@ -67743,7 +67991,7 @@ type LaunchTemplateTagSpecificationRequest struct { // The type of resource to tag. Currently, the resource types that support tagging // on creation are instance and volume. To tag a resource after it has been - // created, see CreateTags. + // created, see CreateTags (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateTags.html). ResourceType *string `type:"string" enum:"ResourceType"` // The tags to apply to the resource. @@ -71230,13 +71478,21 @@ func (s *ModifyVpcTenancyOutput) SetReturnValue(v bool) *ModifyVpcTenancyOutput type ModifyVpnConnectionInput struct { _ struct{} `type:"structure"` + // Checks whether you have the required permissions for the action, without + // actually making the request, and provides an error response. If you have + // the required permissions, the error response is DryRunOperation. Otherwise, + // it is UnauthorizedOperation. DryRun *bool `type:"boolean"` + // The ID of the transit gateway. TransitGatewayId *string `type:"string"` + // The ID of the VPN connection. + // // VpnConnectionId is a required field VpnConnectionId *string `type:"string" required:"true"` + // The ID of the virtual private gateway at the AWS side of the VPN connection. VpnGatewayId *string `type:"string"` } @@ -72787,7 +73043,7 @@ type Placement struct { // The Availability Zone of the instance. // // If not specified, an Availability Zone will be automatically chosen for you - // based on the load balancing criteria for the region. + // based on the load balancing criteria for the Region. AvailabilityZone *string `locationName:"availabilityZone" type:"string"` // The name of the placement group the instance is in. @@ -72806,7 +73062,8 @@ type Placement struct { // The tenancy of the instance (if the instance is running in a VPC). An instance // with a tenancy of dedicated runs on single-tenant hardware. The host tenancy - // is not supported for the ImportInstance command. + // is not supported for the ImportInstance (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_ImportInstance.html) + // command. Tenancy *string `locationName:"tenancy" type:"string" enum:"Tenancy"` } @@ -73317,7 +73574,7 @@ type ProvisionByoipCidrInput struct { // The public IPv4 address range, in CIDR notation. The most specific prefix // that you can specify is /24. The address range cannot overlap with another - // address range that you've brought to this or another region. + // address range that you've brought to this or another Region. // // Cidr is a required field Cidr *string `type:"string" required:"true"` @@ -74180,14 +74437,14 @@ func (s *RecurringCharge) SetFrequency(v string) *RecurringCharge { return s } -// Describes a region. +// Describes a Region. type Region struct { _ struct{} `type:"structure"` - // The region service endpoint. + // The Region service endpoint. Endpoint *string `locationName:"regionEndpoint" type:"string"` - // The name of the region. + // The name of the Region. RegionName *string `locationName:"regionName" type:"string"` } @@ -75672,7 +75929,8 @@ type RequestLaunchTemplateData struct { // The monitoring for the instance. Monitoring *LaunchTemplatesMonitoringRequest `type:"structure"` - // One or more network interfaces. + // One or more network interfaces. If you specify a network interface, you must + // specify any security groups as part of the network interface. NetworkInterfaces []*LaunchTemplateInstanceNetworkInterfaceSpecificationRequest `locationName:"NetworkInterface" locationNameList:"InstanceNetworkInterfaceSpecification" type:"list"` // The placement for the instance. @@ -75685,7 +75943,8 @@ type RequestLaunchTemplateData struct { // in the Amazon Elastic Compute Cloud User Guide. RamDiskId *string `type:"string"` - // One or more security group IDs. You can create a security group using CreateSecurityGroup. + // One or more security group IDs. You can create a security group using CreateSecurityGroup + // (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateSecurityGroup.html). // You cannot specify both a security group ID and security name in the same // request. SecurityGroupIds []*string `locationName:"SecurityGroupId" locationNameList:"SecurityGroupId" type:"list"` @@ -75698,7 +75957,7 @@ type RequestLaunchTemplateData struct { // The tags to apply to the resources during launch. You can only tag instances // and volumes on launch. The specified tags are applied to all instances or // volumes that are created during launch. To tag a resource after it has been - // created, see CreateTags. + // created, see CreateTags (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateTags.html). TagSpecifications []*LaunchTemplateTagSpecificationRequest `locationName:"TagSpecification" locationNameList:"LaunchTemplateTagSpecificationRequest" type:"list"` // The Base64-encoded user data to make available to the instance. For more @@ -76752,7 +77011,7 @@ type ReservedInstancesConfiguration struct { // EC2-Classic or EC2-VPC. Platform *string `locationName:"platform" type:"string"` - // Whether the Reserved Instance is applied to instances in a region or instances + // Whether the Reserved Instance is applied to instances in a Region or instances // in a specific Availability Zone. Scope *string `locationName:"scope" type:"string" enum:"scope"` } @@ -77111,7 +77370,7 @@ type ReservedInstancesOffering struct { // GetReservedInstancesExchangeQuote to confirm that an exchange can be made. ReservedInstancesOfferingId *string `locationName:"reservedInstancesOfferingId" type:"string"` - // Whether the Reserved Instance is applied to instances in a region or an Availability + // Whether the Reserved Instance is applied to instances in a Region or an Availability // Zone. Scope *string `locationName:"scope" type:"string" enum:"scope"` @@ -78654,7 +78913,8 @@ type RunInstancesInput struct { CpuOptions *CpuOptionsRequest `type:"structure"` // The credit option for CPU usage of the T2 or T3 instance. Valid values are - // standard and unlimited. To change this attribute after launch, use ModifyInstanceCreditSpecification. + // standard and unlimited. To change this attribute after launch, use ModifyInstanceCreditSpecification + // (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_ModifyInstanceCreditSpecification.html). // For more information, see Burstable Performance Instances (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/burstable-performance-instances.html) // in the Amazon Elastic Compute Cloud User Guide. // @@ -78663,9 +78923,9 @@ type RunInstancesInput struct { // If you set this parameter to true, you can't terminate the instance using // the Amazon EC2 console, CLI, or API; otherwise, you can. To change this attribute - // to false after launch, use ModifyInstanceAttribute. Alternatively, if you - // set InstanceInitiatedShutdownBehavior to terminate, you can terminate the - // instance by running the shutdown command from the instance. + // to false after launch, use ModifyInstanceAttribute (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_ModifyInstanceAttribute.html). + // Alternatively, if you set InstanceInitiatedShutdownBehavior to terminate, + // you can terminate the instance by running the shutdown command from the instance. // // Default: false DisableApiTermination *bool `locationName:"disableApiTermination" type:"boolean"` @@ -78753,8 +79013,8 @@ type RunInstancesInput struct { // in the Amazon Elastic Compute Cloud User Guide. KernelId *string `type:"string"` - // The name of the key pair. You can create a key pair using CreateKeyPair or - // ImportKeyPair. + // The name of the key pair. You can create a key pair using CreateKeyPair (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateKeyPair.html) + // or ImportKeyPair (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_ImportKeyPair.html). // // If you do not specify a key pair, you can't connect to the instance unless // you choose an AMI that is configured to allow users another way to log in. @@ -78795,7 +79055,8 @@ type RunInstancesInput struct { // Specifies whether detailed monitoring is enabled for the instance. Monitoring *RunInstancesMonitoringEnabled `type:"structure"` - // The network interfaces to associate with the instance. + // The network interfaces to associate with the instance. If you specify a network + // interface, you must specify any security groups as part of the network interface. NetworkInterfaces []*InstanceNetworkInterfaceSpecification `locationName:"networkInterface" locationNameList:"item" type:"list"` // The placement for the instance. @@ -78823,19 +79084,18 @@ type RunInstancesInput struct { // in the Amazon Elastic Compute Cloud User Guide. RamdiskId *string `type:"string"` - // The IDs of the security groups. You can create a security group using CreateSecurityGroup. - // - // Default: Amazon EC2 uses the default security group. + // The IDs of the security groups. You can create a security group using CreateSecurityGroup + // (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateSecurityGroup.html). // - // You cannot specify this option and the network interfaces option in the same - // request. + // If you specify a network interface, you must specify any security groups + // as part of the network interface. SecurityGroupIds []*string `locationName:"SecurityGroupId" locationNameList:"SecurityGroupId" type:"list"` // [EC2-Classic, default VPC] The names of the security groups. For a nondefault // VPC, you must use security group IDs instead. // - // You cannot specify this option and the network interfaces option in the same - // request. + // If you specify a network interface, you must specify any security groups + // as part of the network interface. // // Default: Amazon EC2 uses the default security group. SecurityGroups []*string `locationName:"SecurityGroup" locationNameList:"SecurityGroup" type:"list"` @@ -78849,7 +79109,7 @@ type RunInstancesInput struct { // The tags to apply to the resources during launch. You can only tag instances // and volumes on launch. The specified tags are applied to all instances or // volumes that are created during launch. To tag a resource after it has been - // created, see CreateTags. + // created, see CreateTags (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateTags.html). TagSpecifications []*TagSpecification `locationName:"TagSpecification" locationNameList:"item" type:"list"` // The user data to make available to the instance. For more information, see @@ -81462,17 +81722,20 @@ func (s *SpotDatafeedSubscription) SetState(v string) *SpotDatafeedSubscription return s } -// Describes the launch specification for one or more Spot Instances. +// Describes the launch specification for one or more Spot Instances. If you +// include On-Demand capacity in your fleet request, you can't use SpotFleetLaunchSpecification; +// you must use LaunchTemplateConfig (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_LaunchTemplateConfig.html). type SpotFleetLaunchSpecification struct { _ struct{} `type:"structure"` // Deprecated. AddressingType *string `locationName:"addressingType" type:"string"` - // One or more block device mapping entries. You can't specify both a snapshot - // ID and an encryption value. This is because only blank volumes can be encrypted - // on creation. If a snapshot is the basis for a volume, it is not blank and - // its encryption status is used for the volume encryption status. + // One or more block devices that are mapped to the Spot instances. You can't + // specify both a snapshot ID and an encryption value. This is because only + // blank volumes can be encrypted on creation. If a snapshot is the basis for + // a volume, it is not blank and its encryption status is used for the volume + // encryption status. BlockDeviceMappings []*BlockDeviceMapping `locationName:"blockDeviceMapping" locationNameList:"item" type:"list"` // Indicates whether the instances are optimized for EBS I/O. This optimization @@ -81509,7 +81772,10 @@ type SpotFleetLaunchSpecification struct { // The placement information. Placement *SpotPlacement `locationName:"placement" type:"structure"` - // The ID of the RAM disk. + // The ID of the RAM disk. Some kernels require additional drivers at launch. + // Check the kernel requirements for information about whether you need to specify + // a RAM disk. To find kernel requirements, refer to the AWS Resource Center + // and search for the kernel ID. RamdiskId *string `locationName:"ramdiskId" type:"string"` // One or more security groups. When requesting instances in a VPC, you must @@ -81530,16 +81796,16 @@ type SpotFleetLaunchSpecification struct { // The tags to apply during creation. TagSpecifications []*SpotFleetTagSpecification `locationName:"tagSpecificationSet" locationNameList:"item" type:"list"` - // The Base64-encoded user data to make available to the instances. + // The Base64-encoded user data that instances use when starting up. UserData *string `locationName:"userData" type:"string"` // The number of units provided by the specified instance type. These are the - // same units that you chose to set the target capacity in terms (instances - // or a performance characteristic such as vCPUs, memory, or I/O). + // same units that you chose to set the target capacity in terms of instances, + // or a performance characteristic such as vCPUs, memory, or I/O. // - // If the target capacity divided by this value is not a whole number, we round - // the number of instances to the next whole number. If this value is not specified, - // the default is 1. + // If the target capacity divided by this value is not a whole number, Amazon + // EC2 rounds the number of instances to the next whole number. If this value + // is not specified, the default is 1. WeightedCapacity *float64 `locationName:"weightedCapacity" type:"double"` } @@ -81764,18 +82030,23 @@ type SpotFleetRequestConfigData struct { // see Ensuring Idempotency (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html). ClientToken *string `locationName:"clientToken" type:"string"` - // Indicates whether running Spot Instances should be terminated if the target - // capacity of the Spot Fleet request is decreased below the current size of - // the Spot Fleet. + // Indicates whether running Spot Instances should be terminated if you decrease + // the target capacity of the Spot Fleet request below the current size of the + // Spot Fleet. ExcessCapacityTerminationPolicy *string `locationName:"excessCapacityTerminationPolicy" type:"string" enum:"ExcessCapacityTerminationPolicy"` // The number of units fulfilled by this request compared to the set target // capacity. You cannot set this value. FulfilledCapacity *float64 `locationName:"fulfilledCapacity" type:"double"` - // Grants the Spot Fleet permission to terminate Spot Instances on your behalf - // when you cancel its Spot Fleet request using CancelSpotFleetRequests or when - // the Spot Fleet request expires, if you set terminateInstancesWithExpiration. + // The Amazon Resource Name (ARN) of an AWS Identity and Access Management (IAM) + // role that grants the Spot Fleet the permission to request, launch, terminate, + // and tag instances on your behalf. For more information, see Spot Fleet Prerequisites + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-fleet-requests.html#spot-fleet-prerequisites) + // in the Amazon EC2 User Guide for Linux Instances. Spot Fleet can terminate + // Spot Instances on your behalf when you cancel its Spot Fleet request using + // CancelSpotFleetRequests or when the Spot Fleet request expires, if you set + // TerminateInstancesWithExpiration. // // IamFleetRole is a required field IamFleetRole *string `locationName:"iamFleetRole" type:"string" required:"true"` @@ -81790,11 +82061,13 @@ type SpotFleetRequestConfigData struct { InstancePoolsToUseCount *int64 `locationName:"instancePoolsToUseCount" type:"integer"` // The launch specifications for the Spot Fleet request. If you specify LaunchSpecifications, - // you can't specify LaunchTemplateConfigs. + // you can't specify LaunchTemplateConfigs. If you include On-Demand capacity + // in your request, you must use LaunchTemplateConfigs. LaunchSpecifications []*SpotFleetLaunchSpecification `locationName:"launchSpecifications" locationNameList:"item" type:"list"` // The launch template and overrides. If you specify LaunchTemplateConfigs, - // you can't specify LaunchSpecifications. + // you can't specify LaunchSpecifications. If you include On-Demand capacity + // in your request, you must use LaunchTemplateConfigs. LaunchTemplateConfigs []*LaunchTemplateConfig `locationName:"launchTemplateConfigs" locationNameList:"item" type:"list"` // One or more Classic Load Balancers and target groups to attach to the Spot @@ -81832,17 +82105,17 @@ type SpotFleetRequestConfigData struct { // The default is the On-Demand price. SpotPrice *string `locationName:"spotPrice" type:"string"` - // The number of units to request. You can choose to set the target capacity - // in terms of instances or a performance characteristic that is important to - // your application workload, such as vCPUs, memory, or I/O. If the request - // type is maintain, you can specify a target capacity of 0 and add capacity - // later. + // The number of units to request for the Spot Fleet. You can choose to set + // the target capacity in terms of instances or a performance characteristic + // that is important to your application workload, such as vCPUs, memory, or + // I/O. If the request type is maintain, you can specify a target capacity of + // 0 and add capacity later. // // TargetCapacity is a required field TargetCapacity *int64 `locationName:"targetCapacity" type:"integer" required:"true"` - // Indicates whether running Spot Instances should be terminated when the Spot - // Fleet request expires. + // Indicates whether running Spot Instances are terminated when the Spot Fleet + // request expires. TerminateInstancesWithExpiration *bool `locationName:"terminateInstancesWithExpiration" type:"boolean"` // The type of request. Indicates whether the Spot Fleet only requests the target @@ -81855,14 +82128,14 @@ type SpotFleetRequestConfigData struct { // Default: maintain. instant is listed but is not used by Spot Fleet. Type *string `locationName:"type" type:"string" enum:"FleetType"` - // The start date and time of the request, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ). - // The default is to start fulfilling the request immediately. + // The start date and time of the request, in UTC format (YYYY-MM-DDTHH:MM:SSZ). + // By default, Amazon EC2 starts fulfilling the request immediately. ValidFrom *time.Time `locationName:"validFrom" type:"timestamp"` - // The end date and time of the request, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ). - // At this point, no new Spot Instance requests are placed or able to fulfill - // the request. If no value is specified, the Spot Fleet request remains until - // you cancel it. + // The end date and time of the request, in UTC format (YYYY-MM-DDTHH:MM:SSZ). + // After the end date and time, no new Spot Instance requests are placed or + // able to fulfill the request. If no value is specified, the Spot Fleet request + // remains until you cancel it. ValidUntil *time.Time `locationName:"validUntil" type:"timestamp"` } @@ -87118,7 +87391,7 @@ type VpcPeeringConnectionVpcInfo struct { // requester VPC. PeeringOptions *VpcPeeringConnectionOptionsDescription `locationName:"peeringOptions" type:"structure"` - // The region in which the VPC is located. + // The Region in which the VPC is located. Region *string `locationName:"region" type:"string"` // The ID of the VPC. diff --git a/service/ec2/ec2iface/interface.go b/service/ec2/ec2iface/interface.go index 6ab2f6013e6..4f9e4d7331e 100644 --- a/service/ec2/ec2iface/interface.go +++ b/service/ec2/ec2iface/interface.go @@ -640,6 +640,9 @@ type EC2API interface { DescribeDhcpOptionsWithContext(aws.Context, *ec2.DescribeDhcpOptionsInput, ...request.Option) (*ec2.DescribeDhcpOptionsOutput, error) DescribeDhcpOptionsRequest(*ec2.DescribeDhcpOptionsInput) (*request.Request, *ec2.DescribeDhcpOptionsOutput) + DescribeDhcpOptionsPages(*ec2.DescribeDhcpOptionsInput, func(*ec2.DescribeDhcpOptionsOutput, bool) bool) error + DescribeDhcpOptionsPagesWithContext(aws.Context, *ec2.DescribeDhcpOptionsInput, func(*ec2.DescribeDhcpOptionsOutput, bool) bool, ...request.Option) error + DescribeEgressOnlyInternetGateways(*ec2.DescribeEgressOnlyInternetGatewaysInput) (*ec2.DescribeEgressOnlyInternetGatewaysOutput, error) DescribeEgressOnlyInternetGatewaysWithContext(aws.Context, *ec2.DescribeEgressOnlyInternetGatewaysInput, ...request.Option) (*ec2.DescribeEgressOnlyInternetGatewaysOutput, error) DescribeEgressOnlyInternetGatewaysRequest(*ec2.DescribeEgressOnlyInternetGatewaysInput) (*request.Request, *ec2.DescribeEgressOnlyInternetGatewaysOutput) @@ -973,6 +976,9 @@ type EC2API interface { DescribeSubnetsWithContext(aws.Context, *ec2.DescribeSubnetsInput, ...request.Option) (*ec2.DescribeSubnetsOutput, error) DescribeSubnetsRequest(*ec2.DescribeSubnetsInput) (*request.Request, *ec2.DescribeSubnetsOutput) + DescribeSubnetsPages(*ec2.DescribeSubnetsInput, func(*ec2.DescribeSubnetsOutput, bool) bool) error + DescribeSubnetsPagesWithContext(aws.Context, *ec2.DescribeSubnetsInput, func(*ec2.DescribeSubnetsOutput, bool) bool, ...request.Option) error + DescribeTags(*ec2.DescribeTagsInput) (*ec2.DescribeTagsOutput, error) DescribeTagsWithContext(aws.Context, *ec2.DescribeTagsInput, ...request.Option) (*ec2.DescribeTagsOutput, error) DescribeTagsRequest(*ec2.DescribeTagsInput) (*request.Request, *ec2.DescribeTagsOutput) diff --git a/service/storagegateway/api.go b/service/storagegateway/api.go index e8cbefb205f..46017f3d915 100644 --- a/service/storagegateway/api.go +++ b/service/storagegateway/api.go @@ -8662,6 +8662,9 @@ type CreateSMBFileShareInput struct { // Set this value to "true to enable ACL (access control list) on the SMB file // share. Set it to "false" to map file and directory permissions to the POSIX // permissions. + // + // For more information, see https://docs.aws.amazon.com/storagegateway/latest/userguide/smb-acl.html + // in the Storage Gateway User Guide. SMBACLEnabled *bool `type:"boolean"` // A list of up to 50 tags that can be assigned to the NFS file share. Each @@ -8986,6 +8989,15 @@ type CreateSnapshotInput struct { // SnapshotDescription is a required field SnapshotDescription *string `min:"1" type:"string" required:"true"` + // A list of up to 50 tags that can be assigned to a snapshot. Each tag is a + // key-value pair. + // + // Valid characters for key and value are letters, spaces, and numbers representable + // in UTF-8 format, and the following special characters: + - = . _ : / @. The + // maximum length of a tag's key is 128 characters, and the maximum length for + // a tag's value is 256. + Tags []*Tag `type:"list"` + // The Amazon Resource Name (ARN) of the volume. Use the ListVolumes operation // to return a list of gateway volumes. // @@ -9018,6 +9030,16 @@ func (s *CreateSnapshotInput) Validate() error { if s.VolumeARN != nil && len(*s.VolumeARN) < 50 { invalidParams.Add(request.NewErrParamMinLen("VolumeARN", 50)) } + 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 @@ -9031,6 +9053,12 @@ func (s *CreateSnapshotInput) SetSnapshotDescription(v string) *CreateSnapshotIn return s } +// SetTags sets the Tags field's value. +func (s *CreateSnapshotInput) SetTags(v []*Tag) *CreateSnapshotInput { + s.Tags = v + return s +} + // SetVolumeARN sets the VolumeARN field's value. func (s *CreateSnapshotInput) SetVolumeARN(v string) *CreateSnapshotInput { s.VolumeARN = &v @@ -14373,6 +14401,9 @@ type SMBFileShareInfo struct { // If this value is set to "true", indicates that ACL (access control list) // is enabled on the SMB file share. If it is set to "false", it indicates that // file and directory permissions are mapped to the POSIX permission. + // + // For more information, see https://docs.aws.amazon.com/storagegateway/latest/userguide/smb-acl.html + // in the Storage Gateway User Guide. SMBACLEnabled *bool `type:"boolean"` // A list of up to 50 tags assigned to the SMB file share, sorted alphabetically @@ -16213,6 +16244,9 @@ type UpdateSMBFileShareInput struct { // Set this value to "true to enable ACL (access control list) on the SMB file // share. Set it to "false" to map file and directory permissions to the POSIX // permissions. + // + // For more information, see https://docs.aws.amazon.com/storagegateway/latest/userguide/smb-acl.htmlin + // the Storage Gateway User Guide. SMBACLEnabled *bool `type:"boolean"` // A list of users or groups in the Active Directory that are allowed to access @@ -16376,6 +16410,15 @@ type UpdateSnapshotScheduleInput struct { // StartAt is a required field StartAt *int64 `type:"integer" required:"true"` + // A list of up to 50 tags that can be assigned to a snapshot. Each tag is a + // key-value pair. + // + // Valid characters for key and value are letters, spaces, and numbers representable + // in UTF-8 format, and the following special characters: + - = . _ : / @. The + // maximum length of a tag's key is 128 characters, and the maximum length for + // a tag's value is 256. + Tags []*Tag `type:"list"` + // The Amazon Resource Name (ARN) of the volume. Use the ListVolumes operation // to return a list of gateway volumes. // @@ -16414,6 +16457,16 @@ func (s *UpdateSnapshotScheduleInput) Validate() error { if s.VolumeARN != nil && len(*s.VolumeARN) < 50 { invalidParams.Add(request.NewErrParamMinLen("VolumeARN", 50)) } + 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 @@ -16439,6 +16492,12 @@ func (s *UpdateSnapshotScheduleInput) SetStartAt(v int64) *UpdateSnapshotSchedul return s } +// SetTags sets the Tags field's value. +func (s *UpdateSnapshotScheduleInput) SetTags(v []*Tag) *UpdateSnapshotScheduleInput { + s.Tags = v + return s +} + // SetVolumeARN sets the VolumeARN field's value. func (s *UpdateSnapshotScheduleInput) SetVolumeARN(v string) *UpdateSnapshotScheduleInput { s.VolumeARN = &v