diff --git a/CHANGELOG.md b/CHANGELOG.md index 54b1c3d459..96ea6ccfc2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,13 @@ +Release v1.44.26 (2022-06-01) +=== + +### Service Client Updates +* `service/backup-gateway`: Updates service API and documentation +* `service/chime-sdk-meetings`: Updates service API and documentation +* `service/forecast`: Updates service API and documentation +* `service/route53`: Updates service API, documentation, and paginators + * Add new APIs to support Route 53 IP Based Routing + Release v1.44.25 (2022-05-31) === diff --git a/aws/version.go b/aws/version.go index aa913d2917..e02483e2b5 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.44.25" +const SDKVersion = "1.44.26" diff --git a/models/apis/backup-gateway/2021-01-01/api-2.json b/models/apis/backup-gateway/2021-01-01/api-2.json index adde402d23..347b664274 100644 --- a/models/apis/backup-gateway/2021-01-01/api-2.json +++ b/models/apis/backup-gateway/2021-01-01/api-2.json @@ -86,6 +86,20 @@ {"shape":"ResourceNotFoundException"} ] }, + "GetGateway":{ + "name":"GetGateway", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"GetGatewayInput"}, + "output":{"shape":"GetGatewayOutput"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"InternalServerException"}, + {"shape":"ResourceNotFoundException"} + ] + }, "ImportHypervisorConfiguration":{ "name":"ImportHypervisorConfiguration", "http":{ @@ -226,6 +240,20 @@ {"shape":"ResourceNotFoundException"} ] }, + "UpdateGatewaySoftwareNow":{ + "name":"UpdateGatewaySoftwareNow", + "http":{ + "method":"POST", + "requestUri":"/" + }, + "input":{"shape":"UpdateGatewaySoftwareNowInput"}, + "output":{"shape":"UpdateGatewaySoftwareNowOutput"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"InternalServerException"}, + {"shape":"ResourceNotFoundException"} + ] + }, "UpdateHypervisor":{ "name":"UpdateHypervisor", "http":{ @@ -371,6 +399,18 @@ "min":50, "pattern":"^arn:(aws|aws-cn|aws-us-gov):backup-gateway(:[a-zA-Z-0-9]+){3}\\/[a-zA-Z-0-9]+$" }, + "GatewayDetails":{ + "type":"structure", + "members":{ + "GatewayArn":{"shape":"GatewayArn"}, + "GatewayDisplayName":{"shape":"Name"}, + "GatewayType":{"shape":"GatewayType"}, + "HypervisorId":{"shape":"HypervisorId"}, + "LastSeenTime":{"shape":"Time"}, + "NextUpdateAvailabilityTime":{"shape":"Time"}, + "VpcEndpoint":{"shape":"VpcEndpoint"} + } + }, "GatewayType":{ "type":"string", "enum":["BACKUP_VM"] @@ -379,6 +419,19 @@ "type":"list", "member":{"shape":"Gateway"} }, + "GetGatewayInput":{ + "type":"structure", + "required":["GatewayArn"], + "members":{ + "GatewayArn":{"shape":"GatewayArn"} + } + }, + "GetGatewayOutput":{ + "type":"structure", + "members":{ + "Gateway":{"shape":"GatewayDetails"} + } + }, "Host":{ "type":"string", "max":128, @@ -686,12 +739,26 @@ "GatewayArn":{"shape":"GatewayArn"} } }, + "UpdateGatewaySoftwareNowInput":{ + "type":"structure", + "required":["GatewayArn"], + "members":{ + "GatewayArn":{"shape":"GatewayArn"} + } + }, + "UpdateGatewaySoftwareNowOutput":{ + "type":"structure", + "members":{ + "GatewayArn":{"shape":"GatewayArn"} + } + }, "UpdateHypervisorInput":{ "type":"structure", "required":["HypervisorArn"], "members":{ "Host":{"shape":"Host"}, "HypervisorArn":{"shape":"ServerArn"}, + "Name":{"shape":"Name"}, "Password":{"shape":"Password"}, "Username":{"shape":"Username"} } @@ -732,6 +799,11 @@ "type":"list", "member":{"shape":"VirtualMachine"} }, + "VpcEndpoint":{ + "type":"string", + "max":255, + "min":1 + }, "string":{"type":"string"} } } diff --git a/models/apis/backup-gateway/2021-01-01/docs-2.json b/models/apis/backup-gateway/2021-01-01/docs-2.json index cf8a51c847..d33eae065f 100644 --- a/models/apis/backup-gateway/2021-01-01/docs-2.json +++ b/models/apis/backup-gateway/2021-01-01/docs-2.json @@ -7,6 +7,7 @@ "DeleteGateway": "

Deletes a backup gateway.

", "DeleteHypervisor": "

Deletes a hypervisor.

", "DisassociateGatewayFromServer": "

Disassociates a backup gateway from the specified server. After the disassociation process finishes, the gateway can no longer access the virtual machines on the server.

", + "GetGateway": "

By providing the ARN (Amazon Resource Name), this API returns the gateway.

", "ImportHypervisorConfiguration": "

Connect to a hypervisor by importing its configuration.

", "ListGateways": "

Lists backup gateways owned by an Amazon Web Services account in an Amazon Web Services Region. The returned list is ordered by gateway Amazon Resource Name (ARN).

", "ListHypervisors": "

Lists your hypervisors.

", @@ -17,6 +18,7 @@ "TestHypervisorConfiguration": "

Tests your hypervisor configuration to validate that backup gateway can connect with the hypervisor and its resources.

", "UntagResource": "

Removes tags from the resource.

", "UpdateGatewayInformation": "

Updates a gateway's name. Specify which gateway to update using the Amazon Resource Name (ARN) of the gateway in your request.

", + "UpdateGatewaySoftwareNow": "

Updates the gateway virtual machine (VM) software. The request immediately triggers the software update.

When you make this request, you get a 200 OK success response immediately. However, it might take some time for the update to complete.

", "UpdateHypervisor": "

Updates a hypervisor metadata, including its host, username, and password. Specify which hypervisor to update using the Amazon Resource Name (ARN) of the hypervisor in your request.

" }, "shapes": { @@ -115,18 +117,29 @@ "DisassociateGatewayFromServerInput$GatewayArn": "

The Amazon Resource Name (ARN) of the gateway to disassociate.

", "DisassociateGatewayFromServerOutput$GatewayArn": "

The Amazon Resource Name (ARN) of the gateway you disassociated.

", "Gateway$GatewayArn": "

The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation to return a list of gateways for your account and Amazon Web Services Region.

", + "GatewayDetails$GatewayArn": "

The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation to return a list of gateways for your account and Amazon Web Services Region.

", + "GetGatewayInput$GatewayArn": "

The Amazon Resource Name (ARN) of the gateway.

", "PutMaintenanceStartTimeInput$GatewayArn": "

The Amazon Resource Name (ARN) for the gateway, used to specify its maintenance start time.

", "PutMaintenanceStartTimeOutput$GatewayArn": "

The Amazon Resource Name (ARN) of a gateway for which you set the maintenance start time.

", "TestHypervisorConfigurationInput$GatewayArn": "

The Amazon Resource Name (ARN) of the gateway to the hypervisor to test.

", "UpdateGatewayInformationInput$GatewayArn": "

The Amazon Resource Name (ARN) of the gateway to update.

", - "UpdateGatewayInformationOutput$GatewayArn": "

The Amazon Resource Name (ARN) of the gateway you updated.

" + "UpdateGatewayInformationOutput$GatewayArn": "

The Amazon Resource Name (ARN) of the gateway you updated.

", + "UpdateGatewaySoftwareNowInput$GatewayArn": "

The Amazon Resource Name (ARN) of the gateway to be updated.

", + "UpdateGatewaySoftwareNowOutput$GatewayArn": "

The Amazon Resource Name (ARN) of the gateway you updated.

" + } + }, + "GatewayDetails": { + "base": "

The details of gateway.

", + "refs": { + "GetGatewayOutput$Gateway": "

By providing the ARN (Amazon Resource Name), this API returns the gateway.

" } }, "GatewayType": { "base": null, "refs": { "CreateGatewayInput$GatewayType": "

The type of created gateway.

", - "Gateway$GatewayType": "

The type of the gateway.

" + "Gateway$GatewayType": "

The type of the gateway.

", + "GatewayDetails$GatewayType": "

The type of the gateway type.

" } }, "Gateways": { @@ -135,6 +148,16 @@ "ListGatewaysOutput$Gateways": "

A list of your gateways.

" } }, + "GetGatewayInput": { + "base": null, + "refs": { + } + }, + "GetGatewayOutput": { + "base": null, + "refs": { + } + }, "Host": { "base": null, "refs": { @@ -159,7 +182,8 @@ "HypervisorId": { "base": null, "refs": { - "Gateway$HypervisorId": "

The hypervisor ID of the gateway.

" + "Gateway$HypervisorId": "

The hypervisor ID of the gateway.

", + "GatewayDetails$HypervisorId": "

The hypervisor ID of the gateway.

" } }, "HypervisorState": { @@ -255,9 +279,11 @@ "refs": { "CreateGatewayInput$GatewayDisplayName": "

The display name of the created gateway.

", "Gateway$GatewayDisplayName": "

The display name of the gateway.

", + "GatewayDetails$GatewayDisplayName": "

The display name of the gateway.

", "Hypervisor$Name": "

The name of the hypervisor.

", "ImportHypervisorConfigurationInput$Name": "

The name of the hypervisor.

", "UpdateGatewayInformationInput$GatewayDisplayName": "

The updated display name of the gateway.

", + "UpdateHypervisorInput$Name": "

The updated name for the hypervisor

", "VirtualMachine$HostName": "

The host name of the virtual machine.

", "VirtualMachine$Name": "

The name of the virtual machine.

" } @@ -306,7 +332,7 @@ "TagResourceOutput$ResourceARN": "

The Amazon Resource Name (ARN) of the resource you tagged.

", "UntagResourceInput$ResourceARN": "

The Amazon Resource Name (ARN) of the resource from which to remove tags.

", "UntagResourceOutput$ResourceARN": "

The Amazon Resource Name (ARN) of the resource from which you removed tags.

", - "VirtualMachine$ResourceArn": "

The Amazon Resource Name (ARN) of the virtual machine.

" + "VirtualMachine$ResourceArn": "

The Amazon Resource Name (ARN) of the virtual machine. For example, arn:aws:backup-gateway:us-west-1:0000000000000:vm/vm-0000ABCDEFGIJKL.

" } }, "ResourceNotFoundException": { @@ -358,7 +384,7 @@ "TagValue": { "base": null, "refs": { - "Tag$Value": "

The key part of a value's key-value pair.

" + "Tag$Value": "

The value part of a tag's key-value pair.

" } }, "Tags": { @@ -384,6 +410,8 @@ "base": null, "refs": { "Gateway$LastSeenTime": "

The last time Backup gateway communicated with the gateway, in Unix format and UTC time.

", + "GatewayDetails$LastSeenTime": "

Details showing the last time Backup gateway communicated with the cloud, in Unix format and UTC time.

", + "GatewayDetails$NextUpdateAvailabilityTime": "

Details showing the next update availability time of the gateway.

", "VirtualMachine$LastBackupDate": "

The most recent date a virtual machine was backed up, in Unix format and UTC time.

" } }, @@ -407,6 +435,16 @@ "refs": { } }, + "UpdateGatewaySoftwareNowInput": { + "base": null, + "refs": { + } + }, + "UpdateGatewaySoftwareNowOutput": { + "base": null, + "refs": { + } + }, "UpdateHypervisorInput": { "base": null, "refs": { @@ -442,6 +480,12 @@ "ListVirtualMachinesOutput$VirtualMachines": "

A list of your VirtualMachine objects, ordered by their Amazon Resource Names (ARNs).

" } }, + "VpcEndpoint": { + "base": null, + "refs": { + "GatewayDetails$VpcEndpoint": "

The DNS name for the virtual private cloud (VPC) endpoint the gateway uses to connect to the cloud for backup gateway.

" + } + }, "string": { "base": null, "refs": { diff --git a/models/apis/chime-sdk-meetings/2021-07-15/api-2.json b/models/apis/chime-sdk-meetings/2021-07-15/api-2.json index 626c6d4943..d43cb73b56 100644 --- a/models/apis/chime-sdk-meetings/2021-07-15/api-2.json +++ b/models/apis/chime-sdk-meetings/2021-07-15/api-2.json @@ -31,6 +31,23 @@ {"shape":"ThrottlingException"} ] }, + "BatchUpdateAttendeeCapabilitiesExcept":{ + "name":"BatchUpdateAttendeeCapabilitiesExcept", + "http":{ + "method":"PUT", + "requestUri":"/meetings/{MeetingId}/attendees/capabilities?operation=batch-update-except", + "responseCode":200 + }, + "input":{"shape":"BatchUpdateAttendeeCapabilitiesExceptRequest"}, + "errors":[ + {"shape":"BadRequestException"}, + {"shape":"ConflictException"}, + {"shape":"UnauthorizedException"}, + {"shape":"NotFoundException"}, + {"shape":"ForbiddenException"}, + {"shape":"ServiceUnavailableException"} + ] + }, "CreateAttendee":{ "name":"CreateAttendee", "http":{ @@ -216,6 +233,23 @@ {"shape":"ServiceUnavailableException"}, {"shape":"ServiceFailureException"} ] + }, + "UpdateAttendeeCapabilities":{ + "name":"UpdateAttendeeCapabilities", + "http":{ + "method":"PUT", + "requestUri":"/meetings/{MeetingId}/attendees/{AttendeeId}/capabilities" + }, + "input":{"shape":"UpdateAttendeeCapabilitiesRequest"}, + "output":{"shape":"UpdateAttendeeCapabilitiesResponse"}, + "errors":[ + {"shape":"BadRequestException"}, + {"shape":"ConflictException"}, + {"shape":"UnauthorizedException"}, + {"shape":"NotFoundException"}, + {"shape":"ForbiddenException"}, + {"shape":"ServiceUnavailableException"} + ] } }, "shapes":{ @@ -231,9 +265,36 @@ "members":{ "ExternalUserId":{"shape":"ExternalUserId"}, "AttendeeId":{"shape":"GuidString"}, - "JoinToken":{"shape":"JoinTokenString"} + "JoinToken":{"shape":"JoinTokenString"}, + "Capabilities":{"shape":"AttendeeCapabilities"} + } + }, + "AttendeeCapabilities":{ + "type":"structure", + "required":[ + "Audio", + "Video", + "Content" + ], + "members":{ + "Audio":{"shape":"MediaCapabilities"}, + "Video":{"shape":"MediaCapabilities"}, + "Content":{"shape":"MediaCapabilities"} } }, + "AttendeeIdItem":{ + "type":"structure", + "required":["AttendeeId"], + "members":{ + "AttendeeId":{"shape":"GuidString"} + } + }, + "AttendeeIdsList":{ + "type":"list", + "member":{"shape":"AttendeeIdItem"}, + "max":250, + "min":1 + }, "AttendeeList":{ "type":"list", "member":{"shape":"Attendee"} @@ -280,6 +341,23 @@ "Errors":{"shape":"BatchCreateAttendeeErrorList"} } }, + "BatchUpdateAttendeeCapabilitiesExceptRequest":{ + "type":"structure", + "required":[ + "MeetingId", + "ExcludedAttendeeIds", + "Capabilities" + ], + "members":{ + "MeetingId":{ + "shape":"GuidString", + "location":"uri", + "locationName":"MeetingId" + }, + "ExcludedAttendeeIds":{"shape":"AttendeeIdsList"}, + "Capabilities":{"shape":"AttendeeCapabilities"} + } + }, "Boolean":{"type":"boolean"}, "ClientRequestToken":{ "type":"string", @@ -288,6 +366,16 @@ "pattern":"[-_a-zA-Z0-9]*", "sensitive":true }, + "ConflictException":{ + "type":"structure", + "members":{ + "Code":{"shape":"String"}, + "Message":{"shape":"String"}, + "RequestId":{"shape":"String"} + }, + "error":{"httpStatusCode":409}, + "exception":true + }, "CreateAttendeeError":{ "type":"structure", "members":{ @@ -308,14 +396,16 @@ "location":"uri", "locationName":"MeetingId" }, - "ExternalUserId":{"shape":"ExternalUserId"} + "ExternalUserId":{"shape":"ExternalUserId"}, + "Capabilities":{"shape":"AttendeeCapabilities"} } }, "CreateAttendeeRequestItem":{ "type":"structure", "required":["ExternalUserId"], "members":{ - "ExternalUserId":{"shape":"ExternalUserId"} + "ExternalUserId":{"shape":"ExternalUserId"}, + "Capabilities":{"shape":"AttendeeCapabilities"} } }, "CreateAttendeeRequestItemList":{ @@ -569,6 +659,15 @@ "NextToken":{"shape":"String"} } }, + "MediaCapabilities":{ + "type":"string", + "enum":[ + "SendReceive", + "Send", + "Receive", + "None" + ] + }, "MediaPlacement":{ "type":"structure", "members":{ @@ -848,6 +947,33 @@ }, "error":{"httpStatusCode":422}, "exception":true + }, + "UpdateAttendeeCapabilitiesRequest":{ + "type":"structure", + "required":[ + "MeetingId", + "AttendeeId", + "Capabilities" + ], + "members":{ + "MeetingId":{ + "shape":"GuidString", + "location":"uri", + "locationName":"MeetingId" + }, + "AttendeeId":{ + "shape":"GuidString", + "location":"uri", + "locationName":"AttendeeId" + }, + "Capabilities":{"shape":"AttendeeCapabilities"} + } + }, + "UpdateAttendeeCapabilitiesResponse":{ + "type":"structure", + "members":{ + "Attendee":{"shape":"Attendee"} + } } } } diff --git a/models/apis/chime-sdk-meetings/2021-07-15/docs-2.json b/models/apis/chime-sdk-meetings/2021-07-15/docs-2.json index 01be2a8894..48d419775c 100644 --- a/models/apis/chime-sdk-meetings/2021-07-15/docs-2.json +++ b/models/apis/chime-sdk-meetings/2021-07-15/docs-2.json @@ -3,6 +3,7 @@ "service": "

The Amazon Chime SDK meetings APIs in this section allow software developers to create Amazon Chime SDK meetings, set the AWS Regions for meetings, create and manage users, and send and receive meeting notifications. For more information about the meeting APIs, see Amazon Chime SDK meetings.

", "operations": { "BatchCreateAttendee": "

Creates up to 100 attendees for an active Amazon Chime SDK meeting. For more information about the Amazon Chime SDK, see Using the Amazon Chime SDK in the Amazon Chime Developer Guide.

", + "BatchUpdateAttendeeCapabilitiesExcept": "

Updates AttendeeCapabilities except the capabilities listed in an ExcludedAttendeeIds table.

", "CreateAttendee": "

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

", "CreateMeeting": "

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

", "CreateMeetingWithAttendees": "

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

", @@ -12,7 +13,8 @@ "GetMeeting": "

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

", "ListAttendees": "

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

", "StartMeetingTranscription": "

Starts transcription for the specified meetingId.

", - "StopMeetingTranscription": "

Stops transcription for the specified meetingId.

" + "StopMeetingTranscription": "

Stops transcription for the specified meetingId.

", + "UpdateAttendeeCapabilities": "

The capabilties that you want to update.

" }, "shapes": { "Arn": { @@ -28,7 +30,30 @@ "refs": { "AttendeeList$member": null, "CreateAttendeeResponse$Attendee": "

The attendee information, including attendee ID and join token.

", - "GetAttendeeResponse$Attendee": "

The Amazon Chime SDK attendee information.

" + "GetAttendeeResponse$Attendee": "

The Amazon Chime SDK attendee information.

", + "UpdateAttendeeCapabilitiesResponse$Attendee": null + } + }, + "AttendeeCapabilities": { + "base": "

The media capabilities of an attendee, including audio, video and content.

", + "refs": { + "Attendee$Capabilities": "

The capabilities (audio, video, or content) assigned to an attendee.

", + "BatchUpdateAttendeeCapabilitiesExceptRequest$Capabilities": "

The capabilities (audio, video, or content) that you want to update.

", + "CreateAttendeeRequest$Capabilities": "

The capabilities (audio, video, or content) that you want to grant an attendee. If you don't specify capabilities, all users have send and receive capabilities on all media channels by default.

", + "CreateAttendeeRequestItem$Capabilities": "

A list of one or more capabilities.

", + "UpdateAttendeeCapabilitiesRequest$Capabilities": "

The capabilties that you want to update.

" + } + }, + "AttendeeIdItem": { + "base": "

A structure that contains one or more attendee IDs.

", + "refs": { + "AttendeeIdsList$member": null + } + }, + "AttendeeIdsList": { + "base": null, + "refs": { + "BatchUpdateAttendeeCapabilitiesExceptRequest$ExcludedAttendeeIds": "

The AttendeeIDs that you want to exclude from one or more capabilities.

" } }, "AttendeeList": { @@ -67,6 +92,11 @@ "refs": { } }, + "BatchUpdateAttendeeCapabilitiesExceptRequest": { + "base": null, + "refs": { + } + }, "Boolean": { "base": null, "refs": { @@ -81,6 +111,11 @@ "CreateMeetingWithAttendeesRequest$ClientRequestToken": "

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

" } }, + "ConflictException": { + "base": "

Multiple instances of the same request have been made simultaneously.

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

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

", "refs": { @@ -207,7 +242,9 @@ "base": null, "refs": { "Attendee$AttendeeId": "

The Amazon Chime SDK attendee ID.

", + "AttendeeIdItem$AttendeeId": "

A list of one or more attendee IDs.

", "BatchCreateAttendeeRequest$MeetingId": "

The Amazon Chime SDK ID of the meeting to which you're adding attendees.

", + "BatchUpdateAttendeeCapabilitiesExceptRequest$MeetingId": "

The ID of the meeting associated with the update request.

", "CreateAttendeeRequest$MeetingId": "

The unique ID of the meeting.

", "DeleteAttendeeRequest$MeetingId": "

The Amazon Chime SDK meeting ID.

", "DeleteAttendeeRequest$AttendeeId": "

The Amazon Chime SDK attendee ID.

", @@ -218,7 +255,9 @@ "ListAttendeesRequest$MeetingId": "

The Amazon Chime SDK meeting ID.

", "Meeting$MeetingId": "

The Amazon Chime SDK meeting ID.

", "StartMeetingTranscriptionRequest$MeetingId": "

The unique ID of the meeting being transcribed.

", - "StopMeetingTranscriptionRequest$MeetingId": "

The unique ID of the meeting for which you stop transcription.

" + "StopMeetingTranscriptionRequest$MeetingId": "

The unique ID of the meeting for which you stop transcription.

", + "UpdateAttendeeCapabilitiesRequest$MeetingId": "

The ID of the meeting associated with the update request.

", + "UpdateAttendeeCapabilitiesRequest$AttendeeId": "

The ID of the attendee associated with the update request.

" } }, "JoinTokenString": { @@ -242,6 +281,14 @@ "refs": { } }, + "MediaCapabilities": { + "base": null, + "refs": { + "AttendeeCapabilities$Audio": "

The audio capability assigned to an attendee.

", + "AttendeeCapabilities$Video": "

The video capability assigned to an attendee.

", + "AttendeeCapabilities$Content": "

The content capability assigned to an attendee.

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

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

", "refs": { @@ -311,7 +358,7 @@ } }, "ServiceFailureException": { - "base": "

The service encountered an unexpected error.

", + "base": "

The service is currently unavailable.

", "refs": { } }, @@ -336,6 +383,9 @@ "BadRequestException$Code": null, "BadRequestException$Message": null, "BadRequestException$RequestId": "

The request id associated with the call responsible for the exception.

", + "ConflictException$Code": null, + "ConflictException$Message": null, + "ConflictException$RequestId": null, "CreateAttendeeError$ErrorCode": "

The error code.

", "CreateAttendeeError$ErrorMessage": "

The error message.

", "EngineTranscribeMedicalSettings$VocabularyName": "

The name of the vocabulary passed to Amazon Transcribe Medical.

", @@ -359,7 +409,7 @@ "MediaPlacement$EventIngestionUrl": "

The event ingestion URL.

", "NotFoundException$Code": null, "NotFoundException$Message": null, - "NotFoundException$RequestId": "

The request id associated with the call responsible for the exception.

", + "NotFoundException$RequestId": "

The request ID associated with the call responsible for the exception.

", "ServiceFailureException$Code": null, "ServiceFailureException$Message": null, "ServiceFailureException$RequestId": null, @@ -378,7 +428,7 @@ } }, "ThrottlingException": { - "base": "

The number of customer requests exceeds the request rate limit.

", + "base": "

The number of requests exceeds the limit.

", "refs": { } }, @@ -482,6 +532,16 @@ "base": "

The request was well-formed but was unable to be followed due to semantic errors.

", "refs": { } + }, + "UpdateAttendeeCapabilitiesRequest": { + "base": null, + "refs": { + } + }, + "UpdateAttendeeCapabilitiesResponse": { + "base": null, + "refs": { + } } } } diff --git a/models/apis/forecast/2018-06-26/api-2.json b/models/apis/forecast/2018-06-26/api-2.json index cd713140ba..45a84b2b48 100644 --- a/models/apis/forecast/2018-06-26/api-2.json +++ b/models/apis/forecast/2018-06-26/api-2.json @@ -925,7 +925,8 @@ "TimeZone":{"shape":"TimeZone"}, "UseGeolocationForTimeZone":{"shape":"UseGeolocationForTimeZone"}, "GeolocationFormat":{"shape":"GeolocationFormat"}, - "Tags":{"shape":"Tags"} + "Tags":{"shape":"Tags"}, + "Format":{"shape":"Format"} } }, "CreateDatasetImportJobResponse":{ @@ -969,7 +970,8 @@ "ExplainabilityExportName":{"shape":"Name"}, "ExplainabilityArn":{"shape":"Arn"}, "Destination":{"shape":"DataDestination"}, - "Tags":{"shape":"Tags"} + "Tags":{"shape":"Tags"}, + "Format":{"shape":"Format"} } }, "CreateExplainabilityExportResponse":{ @@ -1014,7 +1016,8 @@ "ForecastExportJobName":{"shape":"Name"}, "ForecastArn":{"shape":"Arn"}, "Destination":{"shape":"DataDestination"}, - "Tags":{"shape":"Tags"} + "Tags":{"shape":"Tags"}, + "Format":{"shape":"Format"} } }, "CreateForecastExportJobResponse":{ @@ -1033,7 +1036,8 @@ "ForecastName":{"shape":"Name"}, "PredictorArn":{"shape":"Arn"}, "ForecastTypes":{"shape":"ForecastTypes"}, - "Tags":{"shape":"Tags"} + "Tags":{"shape":"Tags"}, + "TimeSeriesSelector":{"shape":"TimeSeriesSelector"} } }, "CreateForecastResponse":{ @@ -1071,7 +1075,8 @@ "PredictorBacktestExportJobName":{"shape":"Name"}, "PredictorArn":{"shape":"Arn"}, "Destination":{"shape":"DataDestination"}, - "Tags":{"shape":"Tags"} + "Tags":{"shape":"Tags"}, + "Format":{"shape":"Format"} } }, "CreatePredictorBacktestExportJobResponse":{ @@ -1355,7 +1360,8 @@ "Status":{"shape":"Status"}, "Message":{"shape":"Message"}, "CreationTime":{"shape":"Timestamp"}, - "LastModificationTime":{"shape":"Timestamp"} + "LastModificationTime":{"shape":"Timestamp"}, + "Format":{"shape":"Format"} } }, "DescribeDatasetRequest":{ @@ -1397,7 +1403,8 @@ "Message":{"shape":"Message"}, "Status":{"shape":"Status"}, "CreationTime":{"shape":"Timestamp"}, - "LastModificationTime":{"shape":"Timestamp"} + "LastModificationTime":{"shape":"Timestamp"}, + "Format":{"shape":"Format"} } }, "DescribeExplainabilityRequest":{ @@ -1443,7 +1450,8 @@ "Message":{"shape":"Message"}, "Status":{"shape":"Status"}, "CreationTime":{"shape":"Timestamp"}, - "LastModificationTime":{"shape":"Timestamp"} + "LastModificationTime":{"shape":"Timestamp"}, + "Format":{"shape":"Format"} } }, "DescribeForecastRequest":{ @@ -1465,7 +1473,8 @@ "Status":{"shape":"String"}, "Message":{"shape":"ErrorMessage"}, "CreationTime":{"shape":"Timestamp"}, - "LastModificationTime":{"shape":"Timestamp"} + "LastModificationTime":{"shape":"Timestamp"}, + "TimeSeriesSelector":{"shape":"TimeSeriesSelector"} } }, "DescribeMonitorRequest":{ @@ -1508,7 +1517,8 @@ "Message":{"shape":"Message"}, "Status":{"shape":"Status"}, "CreationTime":{"shape":"Timestamp"}, - "LastModificationTime":{"shape":"Timestamp"} + "LastModificationTime":{"shape":"Timestamp"}, + "Format":{"shape":"Format"} } }, "DescribePredictorRequest":{ @@ -1795,6 +1805,11 @@ "type":"list", "member":{"shape":"ForecastSummary"} }, + "Format":{ + "type":"string", + "max":7, + "pattern":"^CSV|PARQUET$" + }, "Frequency":{ "type":"string", "max":5, @@ -2521,6 +2536,20 @@ "SPECIFIC" ] }, + "TimeSeriesIdentifiers":{ + "type":"structure", + "members":{ + "DataSource":{"shape":"DataSource"}, + "Schema":{"shape":"Schema"}, + "Format":{"shape":"Format"} + } + }, + "TimeSeriesSelector":{ + "type":"structure", + "members":{ + "TimeSeriesIdentifiers":{"shape":"TimeSeriesIdentifiers"} + } + }, "TimeZone":{ "type":"string", "max":256, diff --git a/models/apis/forecast/2018-06-26/docs-2.json b/models/apis/forecast/2018-06-26/docs-2.json index 6939b8eca9..51cb4b1a11 100644 --- a/models/apis/forecast/2018-06-26/docs-2.json +++ b/models/apis/forecast/2018-06-26/docs-2.json @@ -5,14 +5,14 @@ "CreateAutoPredictor": "

Creates an Amazon Forecast predictor.

Amazon Forecast creates predictors with AutoPredictor, which involves applying the optimal combination of algorithms to each time series in your datasets. You can use CreateAutoPredictor to create new predictors or upgrade/retrain existing predictors.

Creating new predictors

The following parameters are required when creating a new predictor:

When creating a new predictor, do not specify a value for ReferencePredictorArn.

Upgrading and retraining predictors

The following parameters are required when retraining or upgrading a predictor:

When upgrading or retraining a predictor, only specify values for the ReferencePredictorArn and PredictorName.

", "CreateDataset": "

Creates an Amazon Forecast dataset. The information about the dataset that you provide helps Forecast understand how to consume the data for model training. This includes the following:

After creating a dataset, you import your training data into it and add the dataset to a dataset group. You use the dataset group to create a predictor. For more information, see Importing datasets.

To get a list of all your datasets, use the ListDatasets operation.

For example Forecast datasets, see the Amazon Forecast Sample GitHub repository.

The Status of a dataset must be ACTIVE before you can import training data. Use the DescribeDataset operation to get the status.

", "CreateDatasetGroup": "

Creates a dataset group, which holds a collection of related datasets. You can add datasets to the dataset group when you create the dataset group, or later by using the UpdateDatasetGroup operation.

After creating a dataset group and adding datasets, you use the dataset group when you create a predictor. For more information, see Dataset groups.

To get a list of all your datasets groups, use the ListDatasetGroups operation.

The Status of a dataset group must be ACTIVE before you can use the dataset group to create a predictor. To get the status, use the DescribeDatasetGroup operation.

", - "CreateDatasetImportJob": "

Imports your training data to an Amazon Forecast dataset. You provide the location of your training data in an Amazon Simple Storage Service (Amazon S3) bucket and the Amazon Resource Name (ARN) of the dataset that you want to import the data to.

You must specify a DataSource object that includes an AWS Identity and Access Management (IAM) role that Amazon Forecast can assume to access the data, as Amazon Forecast makes a copy of your data and processes it in an internal AWS system. For more information, see Set up permissions.

The training data must be in CSV format. The delimiter must be a comma (,).

You can specify the path to a specific CSV file, the S3 bucket, or to a folder in the S3 bucket. For the latter two cases, Amazon Forecast imports all files up to the limit of 10,000 files.

Because dataset imports are not aggregated, your most recent dataset import is the one that is used when training a predictor or generating a forecast. Make sure that your most recent dataset import contains all of the data you want to model off of, and not just the new data collected since the previous import.

To get a list of all your dataset import jobs, filtered by specified criteria, use the ListDatasetImportJobs operation.

", + "CreateDatasetImportJob": "

Imports your training data to an Amazon Forecast dataset. You provide the location of your training data in an Amazon Simple Storage Service (Amazon S3) bucket and the Amazon Resource Name (ARN) of the dataset that you want to import the data to.

You must specify a DataSource object that includes an AWS Identity and Access Management (IAM) role that Amazon Forecast can assume to access the data, as Amazon Forecast makes a copy of your data and processes it in an internal AWS system. For more information, see Set up permissions.

The training data must be in CSV or Parquet format. The delimiter must be a comma (,).

You can specify the path to a specific file, the S3 bucket, or to a folder in the S3 bucket. For the latter two cases, Amazon Forecast imports all files up to the limit of 10,000 files.

Because dataset imports are not aggregated, your most recent dataset import is the one that is used when training a predictor or generating a forecast. Make sure that your most recent dataset import contains all of the data you want to model off of, and not just the new data collected since the previous import.

To get a list of all your dataset import jobs, filtered by specified criteria, use the ListDatasetImportJobs operation.

", "CreateExplainability": "

Explainability is only available for Forecasts and Predictors generated from an AutoPredictor (CreateAutoPredictor)

Creates an Amazon Forecast Explainability.

Explainability helps you better understand how the attributes in your datasets impact forecast. Amazon Forecast uses a metric called Impact scores to quantify the relative impact of each attribute and determine whether they increase or decrease forecast values.

To enable Forecast Explainability, your predictor must include at least one of the following: related time series, item metadata, or additional datasets like Holidays and the Weather Index.

CreateExplainability accepts either a Predictor ARN or Forecast ARN. To receive aggregated Impact scores for all time series and time points in your datasets, provide a Predictor ARN. To receive Impact scores for specific time series and time points, provide a Forecast ARN.

CreateExplainability with a Predictor ARN

You can only have one Explainability resource per predictor. If you already enabled ExplainPredictor in CreateAutoPredictor, that predictor already has an Explainability resource.

The following parameters are required when providing a Predictor ARN:

Do not specify a value for the following parameters:

CreateExplainability with a Forecast ARN

You can specify a maximum of 50 time series and 500 time points.

The following parameters are required when providing a Predictor ARN:

If you set TimeSeriesGranularity to “SPECIFIC”, you must also provide the following:

If you set TimePointGranularity to “SPECIFIC”, you must also provide the following:

", "CreateExplainabilityExport": "

Exports an Explainability resource created by the CreateExplainability operation. Exported files are exported to an Amazon Simple Storage Service (Amazon S3) bucket.

You must specify a DataDestination object that includes an Amazon S3 bucket and an AWS Identity and Access Management (IAM) role that Amazon Forecast can assume to access the Amazon S3 bucket. For more information, see aws-forecast-iam-roles.

The Status of the export job must be ACTIVE before you can access the export in your Amazon S3 bucket. To get the status, use the DescribeExplainabilityExport operation.

", - "CreateForecast": "

Creates a forecast for each item in the TARGET_TIME_SERIES dataset that was used to train the predictor. This is known as inference. To retrieve the forecast for a single item at low latency, use the operation. To export the complete forecast into your Amazon Simple Storage Service (Amazon S3) bucket, use the CreateForecastExportJob operation.

The range of the forecast is determined by the ForecastHorizon value, which you specify in the CreatePredictor request. When you query a forecast, you can request a specific date range within the forecast.

To get a list of all your forecasts, use the ListForecasts operation.

The forecasts generated by Amazon Forecast are in the same time zone as the dataset that was used to create the predictor.

For more information, see howitworks-forecast.

The Status of the forecast must be ACTIVE before you can query or export the forecast. Use the DescribeForecast operation to get the status.

", + "CreateForecast": "

Creates a forecast for each item in the TARGET_TIME_SERIES dataset that was used to train the predictor. This is known as inference. To retrieve the forecast for a single item at low latency, use the operation. To export the complete forecast into your Amazon Simple Storage Service (Amazon S3) bucket, use the CreateForecastExportJob operation.

The range of the forecast is determined by the ForecastHorizon value, which you specify in the CreatePredictor request. When you query a forecast, you can request a specific date range within the forecast.

To get a list of all your forecasts, use the ListForecasts operation.

The forecasts generated by Amazon Forecast are in the same time zone as the dataset that was used to create the predictor.

For more information, see howitworks-forecast.

The Status of the forecast must be ACTIVE before you can query or export the forecast. Use the DescribeForecast operation to get the status.

By default, a forecast includes predictions for every item (item_id) in the dataset group that was used to train the predictor. However, you can use the TimeSeriesSelector object to generate a forecast on a subset of time series. Forecast creation is skipped for any time series that you specify that are not in the input dataset. The forecast export file will not contain these time series or their forecasted values.

", "CreateForecastExportJob": "

Exports a forecast created by the CreateForecast operation to your Amazon Simple Storage Service (Amazon S3) bucket. The forecast file name will match the following conventions:

<ForecastExportJobName>_<ExportTimestamp>_<PartNumber>

where the <ExportTimestamp> component is in Java SimpleDateFormat (yyyy-MM-ddTHH-mm-ssZ).

You must specify a DataDestination object that includes an AWS Identity and Access Management (IAM) role that Amazon Forecast can assume to access the Amazon S3 bucket. For more information, see aws-forecast-iam-roles.

For more information, see howitworks-forecast.

To get a list of all your forecast export jobs, use the ListForecastExportJobs operation.

The Status of the forecast export job must be ACTIVE before you can access the forecast in your Amazon S3 bucket. To get the status, use the DescribeForecastExportJob operation.

", "CreateMonitor": "

Creates a predictor monitor resource for an existing auto predictor. Predictor monitoring allows you to see how your predictor's performance changes over time. For more information, see Predictor Monitoring.

", "CreatePredictor": "

This operation creates a legacy predictor that does not include all the predictor functionalities provided by Amazon Forecast. To create a predictor that is compatible with all aspects of Forecast, use CreateAutoPredictor.

Creates an Amazon Forecast predictor.

In the request, provide a dataset group and either specify an algorithm or let Amazon Forecast choose an algorithm for you using AutoML. If you specify an algorithm, you also can override algorithm-specific hyperparameters.

Amazon Forecast uses the algorithm to train a predictor using the latest version of the datasets in the specified dataset group. You can then generate a forecast using the CreateForecast operation.

To see the evaluation metrics, use the GetAccuracyMetrics operation.

You can specify a featurization configuration to fill and aggregate the data fields in the TARGET_TIME_SERIES dataset to improve model training. For more information, see FeaturizationConfig.

For RELATED_TIME_SERIES datasets, CreatePredictor verifies that the DataFrequency specified when the dataset was created matches the ForecastFrequency. TARGET_TIME_SERIES datasets don't have this restriction. Amazon Forecast also verifies the delimiter and timestamp format. For more information, see howitworks-datasets-groups.

By default, predictors are trained and evaluated at the 0.1 (P10), 0.5 (P50), and 0.9 (P90) quantiles. You can choose custom forecast types to train and evaluate your predictor by setting the ForecastTypes.

AutoML

If you want Amazon Forecast to evaluate each algorithm and choose the one that minimizes the objective function, set PerformAutoML to true. The objective function is defined as the mean of the weighted losses over the forecast types. By default, these are the p10, p50, and p90 quantile losses. For more information, see EvaluationResult.

When AutoML is enabled, the following properties are disallowed:

To get a list of all of your predictors, use the ListPredictors operation.

Before you can use the predictor to create a forecast, the Status of the predictor must be ACTIVE, signifying that training has completed. To get the status, use the DescribePredictor operation.

", - "CreatePredictorBacktestExportJob": "

Exports backtest forecasts and accuracy metrics generated by the CreateAutoPredictor or CreatePredictor operations. Two folders containing CSV files are exported to your specified S3 bucket.

The export file names will match the following conventions:

<ExportJobName>_<ExportTimestamp>_<PartNumber>.csv

The <ExportTimestamp> component is in Java SimpleDate format (yyyy-MM-ddTHH-mm-ssZ).

You must specify a DataDestination object that includes an Amazon S3 bucket and an AWS Identity and Access Management (IAM) role that Amazon Forecast can assume to access the Amazon S3 bucket. For more information, see aws-forecast-iam-roles.

The Status of the export job must be ACTIVE before you can access the export in your Amazon S3 bucket. To get the status, use the DescribePredictorBacktestExportJob operation.

", + "CreatePredictorBacktestExportJob": "

Exports backtest forecasts and accuracy metrics generated by the CreateAutoPredictor or CreatePredictor operations. Two folders containing CSV or Parquet files are exported to your specified S3 bucket.

The export file names will match the following conventions:

<ExportJobName>_<ExportTimestamp>_<PartNumber>.csv

The <ExportTimestamp> component is in Java SimpleDate format (yyyy-MM-ddTHH-mm-ssZ).

You must specify a DataDestination object that includes an Amazon S3 bucket and an AWS Identity and Access Management (IAM) role that Amazon Forecast can assume to access the Amazon S3 bucket. For more information, see aws-forecast-iam-roles.

The Status of the export job must be ACTIVE before you can access the export in your Amazon S3 bucket. To get the status, use the DescribePredictorBacktestExportJob operation.

", "DeleteDataset": "

Deletes an Amazon Forecast dataset that was created using the CreateDataset operation. You can only delete datasets that have a status of ACTIVE or CREATE_FAILED. To get the status use the DescribeDataset operation.

Forecast does not automatically update any dataset groups that contain the deleted dataset. In order to update the dataset group, use the UpdateDatasetGroup operation, omitting the deleted dataset's ARN.

", "DeleteDatasetGroup": "

Deletes a dataset group created using the CreateDatasetGroup operation. You can only delete dataset groups that have a status of ACTIVE, CREATE_FAILED, or UPDATE_FAILED. To get the status, use the DescribeDatasetGroup operation.

This operation deletes only the dataset group, not the datasets in the group.

", "DeleteDatasetImportJob": "

Deletes a dataset import job created using the CreateDatasetImportJob operation. You can delete only dataset import jobs that have a status of ACTIVE or CREATE_FAILED. To get the status, use the DescribeDatasetImportJob operation.

", @@ -117,7 +117,7 @@ "DescribeDatasetResponse$DatasetArn": "

The Amazon Resource Name (ARN) of the dataset.

", "DescribeExplainabilityExportRequest$ExplainabilityExportArn": "

The Amazon Resource Name (ARN) of the Explainability export.

", "DescribeExplainabilityExportResponse$ExplainabilityExportArn": "

The Amazon Resource Name (ARN) of the Explainability export.

", - "DescribeExplainabilityExportResponse$ExplainabilityArn": "

The Amazon Resource Name (ARN) of the Explainability.

", + "DescribeExplainabilityExportResponse$ExplainabilityArn": "

The Amazon Resource Name (ARN) of the Explainability export.

", "DescribeExplainabilityRequest$ExplainabilityArn": "

The Amazon Resource Name (ARN) of the Explaianability to describe.

", "DescribeExplainabilityResponse$ExplainabilityArn": "

The Amazon Resource Name (ARN) of the Explainability.

", "DescribeExplainabilityResponse$ResourceArn": "

The Amazon Resource Name (ARN) of the Predictor or Forecast used to create the Explainability resource.

", @@ -409,7 +409,8 @@ "CreateExplainabilityRequest$DataSource": null, "DatasetImportJobSummary$DataSource": "

The location of the training data to import and an AWS Identity and Access Management (IAM) role that Amazon Forecast can assume to access the data. The training data must be stored in an Amazon S3 bucket.

If encryption is used, DataSource includes an AWS Key Management Service (KMS) key.

", "DescribeDatasetImportJobResponse$DataSource": "

The location of the training data to import and an AWS Identity and Access Management (IAM) role that Amazon Forecast can assume to access the data.

If encryption is used, DataSource includes an AWS Key Management Service (KMS) key.

", - "DescribeExplainabilityResponse$DataSource": null + "DescribeExplainabilityResponse$DataSource": null, + "TimeSeriesIdentifiers$DataSource": null } }, "DatasetGroupSummary": { @@ -900,6 +901,20 @@ "ListForecastsResponse$Forecasts": "

An array of objects that summarize each forecast's properties.

" } }, + "Format": { + "base": null, + "refs": { + "CreateDatasetImportJobRequest$Format": "

The format of the imported data, CSV or PARQUET. The default value is CSV.

", + "CreateExplainabilityExportRequest$Format": "

The format of the exported data, CSV or PARQUET.

", + "CreateForecastExportJobRequest$Format": "

The format of the exported data, CSV or PARQUET. The default value is CSV.

", + "CreatePredictorBacktestExportJobRequest$Format": "

The format of the exported data, CSV or PARQUET. The default value is CSV.

", + "DescribeDatasetImportJobResponse$Format": "

The format of the imported data, CSV or PARQUET.

", + "DescribeExplainabilityExportResponse$Format": "

The format of the exported data, CSV or PARQUET.

", + "DescribeForecastExportJobResponse$Format": "

The format of the exported data, CSV or PARQUET.

", + "DescribePredictorBacktestExportJobResponse$Format": "

The format of the exported data, CSV or PARQUET.

", + "TimeSeriesIdentifiers$Format": "

The format of the data, either CSV or PARQUET.

" + } + }, "Frequency": { "base": null, "refs": { @@ -1468,7 +1483,8 @@ "CreateDatasetRequest$Schema": "

The schema for the dataset. The schema attributes and their order must match the fields in your data. The dataset Domain and DatasetType that you choose determine the minimum required fields in your training data. For information about the required fields for a specific dataset domain and type, see Dataset Domains and Dataset Types.

", "CreateExplainabilityRequest$Schema": null, "DescribeDatasetResponse$Schema": "

An array of SchemaAttribute objects that specify the dataset fields. Each SchemaAttribute specifies the name and data type of a field.

", - "DescribeExplainabilityResponse$Schema": null + "DescribeExplainabilityResponse$Schema": null, + "TimeSeriesIdentifiers$Schema": null } }, "SchemaAttribute": { @@ -1637,7 +1653,20 @@ "TimeSeriesGranularity": { "base": null, "refs": { - "ExplainabilityConfig$TimeSeriesGranularity": "

To create an Explainability for all time series in your datasets, use ALL. To create an Explainability for specific time series in your datasets, use SPECIFIC.

Specify time series by uploading a CSV file to an Amazon S3 bucket and set the location within the DataDestination data type.

" + "ExplainabilityConfig$TimeSeriesGranularity": "

To create an Explainability for all time series in your datasets, use ALL. To create an Explainability for specific time series in your datasets, use SPECIFIC.

Specify time series by uploading a CSV or Parquet file to an Amazon S3 bucket and set the location within the DataDestination data type.

" + } + }, + "TimeSeriesIdentifiers": { + "base": "

Details about the import file that contains the time series for which you want to create forecasts.

", + "refs": { + "TimeSeriesSelector$TimeSeriesIdentifiers": "

Details about the import file that contains the time series for which you want to create forecasts.

" + } + }, + "TimeSeriesSelector": { + "base": "

Defines the set of time series that are used to create the forecasts in a TimeSeriesIdentifiers object.

The TimeSeriesIdentifiers object needs the following information:

", + "refs": { + "CreateForecastRequest$TimeSeriesSelector": "

Defines the set of time series that are used to create the forecasts in a TimeSeriesIdentifiers object.

The TimeSeriesIdentifiers object needs the following information:

", + "DescribeForecastResponse$TimeSeriesSelector": "

The time series to include in the forecast.

" } }, "TimeZone": { diff --git a/models/apis/route53/2013-04-01/api-2.json b/models/apis/route53/2013-04-01/api-2.json index dfe35f41b3..20f3adb912 100644 --- a/models/apis/route53/2013-04-01/api-2.json +++ b/models/apis/route53/2013-04-01/api-2.json @@ -52,6 +52,27 @@ {"shape":"PriorRequestNotComplete"} ] }, + "ChangeCidrCollection":{ + "name":"ChangeCidrCollection", + "http":{ + "method":"POST", + "requestUri":"/2013-04-01/cidrcollection/{CidrCollectionId}" + }, + "input":{ + "shape":"ChangeCidrCollectionRequest", + "locationName":"ChangeCidrCollectionRequest", + "xmlNamespace":{"uri":"https://route53.amazonaws.com/doc/2013-04-01/"} + }, + "output":{"shape":"ChangeCidrCollectionResponse"}, + "errors":[ + {"shape":"NoSuchCidrCollectionException"}, + {"shape":"CidrCollectionVersionMismatchException"}, + {"shape":"InvalidInput"}, + {"shape":"CidrBlockInUseException"}, + {"shape":"LimitsExceeded"}, + {"shape":"ConcurrentModification"} + ] + }, "ChangeResourceRecordSets":{ "name":"ChangeResourceRecordSets", "http":{ @@ -92,6 +113,26 @@ {"shape":"ThrottlingException"} ] }, + "CreateCidrCollection":{ + "name":"CreateCidrCollection", + "http":{ + "method":"POST", + "requestUri":"/2013-04-01/cidrcollection", + "responseCode":201 + }, + "input":{ + "shape":"CreateCidrCollectionRequest", + "locationName":"CreateCidrCollectionRequest", + "xmlNamespace":{"uri":"https://route53.amazonaws.com/doc/2013-04-01/"} + }, + "output":{"shape":"CreateCidrCollectionResponse"}, + "errors":[ + {"shape":"LimitsExceeded"}, + {"shape":"InvalidInput"}, + {"shape":"CidrCollectionAlreadyExistsException"}, + {"shape":"ConcurrentModification"} + ] + }, "CreateHealthCheck":{ "name":"CreateHealthCheck", "http":{ @@ -307,6 +348,21 @@ {"shape":"InvalidInput"} ] }, + "DeleteCidrCollection":{ + "name":"DeleteCidrCollection", + "http":{ + "method":"DELETE", + "requestUri":"/2013-04-01/cidrcollection/{CidrCollectionId}" + }, + "input":{"shape":"DeleteCidrCollectionRequest"}, + "output":{"shape":"DeleteCidrCollectionResponse"}, + "errors":[ + {"shape":"NoSuchCidrCollectionException"}, + {"shape":"CidrCollectionInUseException"}, + {"shape":"InvalidInput"}, + {"shape":"ConcurrentModification"} + ] + }, "DeleteHealthCheck":{ "name":"DeleteHealthCheck", "http":{ @@ -715,6 +771,45 @@ "input":{"shape":"GetTrafficPolicyInstanceCountRequest"}, "output":{"shape":"GetTrafficPolicyInstanceCountResponse"} }, + "ListCidrBlocks":{ + "name":"ListCidrBlocks", + "http":{ + "method":"GET", + "requestUri":"/2013-04-01/cidrcollection/{CidrCollectionId}/cidrblocks" + }, + "input":{"shape":"ListCidrBlocksRequest"}, + "output":{"shape":"ListCidrBlocksResponse"}, + "errors":[ + {"shape":"NoSuchCidrCollectionException"}, + {"shape":"NoSuchCidrLocationException"}, + {"shape":"InvalidInput"} + ] + }, + "ListCidrCollections":{ + "name":"ListCidrCollections", + "http":{ + "method":"GET", + "requestUri":"/2013-04-01/cidrcollection" + }, + "input":{"shape":"ListCidrCollectionsRequest"}, + "output":{"shape":"ListCidrCollectionsResponse"}, + "errors":[ + {"shape":"InvalidInput"} + ] + }, + "ListCidrLocations":{ + "name":"ListCidrLocations", + "http":{ + "method":"GET", + "requestUri":"/2013-04-01/cidrcollection/{CidrCollectionId}" + }, + "input":{"shape":"ListCidrLocationsRequest"}, + "output":{"shape":"ListCidrLocationsResponse"}, + "errors":[ + {"shape":"NoSuchCidrCollectionException"}, + {"shape":"InvalidInput"} + ] + }, "ListGeoLocations":{ "name":"ListGeoLocations", "http":{ @@ -1024,6 +1119,12 @@ } }, "shapes":{ + "ARN":{ + "type":"string", + "max":2048, + "min":20, + "pattern":".*\\S.*" + }, "AWSAccountID":{"type":"string"}, "AccountLimit":{ "type":"structure", @@ -1153,6 +1254,34 @@ "Changes":{"shape":"Changes"} } }, + "ChangeCidrCollectionRequest":{ + "type":"structure", + "required":[ + "Id", + "Changes" + ], + "members":{ + "Id":{ + "shape":"UUID", + "location":"uri", + "locationName":"CidrCollectionId" + }, + "CollectionVersion":{"shape":"CollectionVersion"}, + "Changes":{"shape":"CidrCollectionChanges"} + } + }, + "ChangeCidrCollectionResponse":{ + "type":"structure", + "required":["Id"], + "members":{ + "Id":{"shape":"ChangeId"} + } + }, + "ChangeId":{ + "type":"string", + "max":6500, + "min":1 + }, "ChangeInfo":{ "type":"structure", "required":[ @@ -1242,6 +1371,127 @@ }, "max":256 }, + "Cidr":{ + "type":"string", + "max":50, + "min":1, + "pattern":".*\\S.*" + }, + "CidrBlockInUseException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ErrorMessage"} + }, + "error":{"httpStatusCode":400}, + "exception":true + }, + "CidrBlockSummaries":{ + "type":"list", + "member":{"shape":"CidrBlockSummary"} + }, + "CidrBlockSummary":{ + "type":"structure", + "members":{ + "CidrBlock":{"shape":"Cidr"}, + "LocationName":{"shape":"CidrLocationNameDefaultNotAllowed"} + } + }, + "CidrCollection":{ + "type":"structure", + "members":{ + "Arn":{"shape":"ARN"}, + "Id":{"shape":"UUID"}, + "Name":{"shape":"CollectionName"}, + "Version":{"shape":"CollectionVersion"} + } + }, + "CidrCollectionAlreadyExistsException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ErrorMessage"} + }, + "exception":true + }, + "CidrCollectionChange":{ + "type":"structure", + "required":[ + "LocationName", + "Action", + "CidrList" + ], + "members":{ + "LocationName":{"shape":"CidrLocationNameDefaultNotAllowed"}, + "Action":{"shape":"CidrCollectionChangeAction"}, + "CidrList":{"shape":"CidrList"} + } + }, + "CidrCollectionChangeAction":{ + "type":"string", + "enum":[ + "PUT", + "DELETE_IF_EXISTS" + ] + }, + "CidrCollectionChanges":{ + "type":"list", + "member":{"shape":"CidrCollectionChange"}, + "max":1000, + "min":1 + }, + "CidrCollectionInUseException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ErrorMessage"} + }, + "error":{"httpStatusCode":400}, + "exception":true + }, + "CidrCollectionVersionMismatchException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ErrorMessage"} + }, + "error":{"httpStatusCode":409}, + "exception":true + }, + "CidrList":{ + "type":"list", + "member":{ + "shape":"Cidr", + "locationName":"Cidr" + }, + "max":1000, + "min":1 + }, + "CidrLocationNameDefaultAllowed":{ + "type":"string", + "max":16, + "min":1, + "pattern":"[0-9A-Za-z_\\-\\*]+" + }, + "CidrLocationNameDefaultNotAllowed":{ + "type":"string", + "max":16, + "min":1, + "pattern":"[0-9A-Za-z_\\-]+" + }, + "CidrNonce":{ + "type":"string", + "max":64, + "min":1, + "pattern":"\\p{ASCII}+" + }, + "CidrRoutingConfig":{ + "type":"structure", + "required":[ + "CollectionId", + "LocationName" + ], + "members":{ + "CollectionId":{"shape":"UUID"}, + "LocationName":{"shape":"CidrLocationNameDefaultAllowed"} + } + }, "CloudWatchAlarmConfiguration":{ "type":"structure", "required":[ @@ -1301,6 +1551,29 @@ "max":64, "min":1 }, + "CollectionName":{ + "type":"string", + "max":64, + "min":1, + "pattern":"[0-9A-Za-z_\\-]+" + }, + "CollectionSummaries":{ + "type":"list", + "member":{"shape":"CollectionSummary"} + }, + "CollectionSummary":{ + "type":"structure", + "members":{ + "Arn":{"shape":"ARN"}, + "Id":{"shape":"UUID"}, + "Name":{"shape":"CollectionName"}, + "Version":{"shape":"CollectionVersion"} + } + }, + "CollectionVersion":{ + "type":"long", + "min":1 + }, "ComparisonOperator":{ "type":"string", "enum":[ @@ -1333,6 +1606,28 @@ "error":{"httpStatusCode":400}, "exception":true }, + "CreateCidrCollectionRequest":{ + "type":"structure", + "required":[ + "Name", + "CallerReference" + ], + "members":{ + "Name":{"shape":"CollectionName"}, + "CallerReference":{"shape":"CidrNonce"} + } + }, + "CreateCidrCollectionResponse":{ + "type":"structure", + "members":{ + "Collection":{"shape":"CidrCollection"}, + "Location":{ + "shape":"ResourceURI", + "location":"header", + "locationName":"Location" + } + } + }, "CreateHealthCheckRequest":{ "type":"structure", "required":[ @@ -1697,6 +1992,22 @@ "locationName":"DelegationSet" } }, + "DeleteCidrCollectionRequest":{ + "type":"structure", + "required":["Id"], + "members":{ + "Id":{ + "shape":"UUID", + "location":"uri", + "locationName":"CidrCollectionId" + } + } + }, + "DeleteCidrCollectionResponse":{ + "type":"structure", + "members":{ + } + }, "DeleteHealthCheckRequest":{ "type":"structure", "required":["HealthCheckId"], @@ -2039,7 +2350,7 @@ "required":["Id"], "members":{ "Id":{ - "shape":"ResourceId", + "shape":"ChangeId", "location":"uri", "locationName":"Id" } @@ -2823,6 +3134,89 @@ "Description":{"shape":"ResourceDescription"} } }, + "ListCidrBlocksRequest":{ + "type":"structure", + "required":["CollectionId"], + "members":{ + "CollectionId":{ + "shape":"UUID", + "location":"uri", + "locationName":"CidrCollectionId" + }, + "LocationName":{ + "shape":"CidrLocationNameDefaultNotAllowed", + "location":"querystring", + "locationName":"location" + }, + "NextToken":{ + "shape":"PaginationToken", + "location":"querystring", + "locationName":"nexttoken" + }, + "MaxResults":{ + "shape":"MaxResults", + "location":"querystring", + "locationName":"maxresults" + } + } + }, + "ListCidrBlocksResponse":{ + "type":"structure", + "members":{ + "NextToken":{"shape":"PaginationToken"}, + "CidrBlocks":{"shape":"CidrBlockSummaries"} + } + }, + "ListCidrCollectionsRequest":{ + "type":"structure", + "members":{ + "NextToken":{ + "shape":"PaginationToken", + "location":"querystring", + "locationName":"nexttoken" + }, + "MaxResults":{ + "shape":"MaxResults", + "location":"querystring", + "locationName":"maxresults" + } + } + }, + "ListCidrCollectionsResponse":{ + "type":"structure", + "members":{ + "NextToken":{"shape":"PaginationToken"}, + "CidrCollections":{"shape":"CollectionSummaries"} + } + }, + "ListCidrLocationsRequest":{ + "type":"structure", + "required":["CollectionId"], + "members":{ + "CollectionId":{ + "shape":"UUID", + "location":"uri", + "locationName":"CidrCollectionId" + }, + "NextToken":{ + "shape":"PaginationToken", + "location":"querystring", + "locationName":"nexttoken" + }, + "MaxResults":{ + "shape":"MaxResults", + "location":"querystring", + "locationName":"maxresults" + } + } + }, + "ListCidrLocationsResponse":{ + "type":"structure", + "members":{ + "NextToken":{"shape":"PaginationToken"}, + "CidrLocations":{"shape":"LocationSummaries"} + } + }, "ListGeoLocationsRequest":{ "type":"structure", "members":{ @@ -3399,6 +3793,16 @@ "VPCs":{"shape":"VPCs"} } }, + "LocationSummaries":{ + "type":"list", + "member":{"shape":"LocationSummary"} + }, + "LocationSummary":{ + "type":"structure", + "members":{ + "LocationName":{"shape":"CidrLocationNameDefaultAllowed"} + } + }, "MaxResults":{"type":"string"}, "MeasureLatency":{"type":"boolean"}, "Message":{ @@ -3428,6 +3832,22 @@ "error":{"httpStatusCode":404}, "exception":true }, + "NoSuchCidrCollectionException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ErrorMessage"} + }, + "error":{"httpStatusCode":404}, + "exception":true + }, + "NoSuchCidrLocationException":{ + "type":"structure", + "members":{ + "Message":{"shape":"ErrorMessage"} + }, + "error":{"httpStatusCode":404}, + "exception":true + }, "NoSuchCloudWatchLogsLogGroup":{ "type":"structure", "members":{ @@ -3676,7 +4096,8 @@ "ResourceRecords":{"shape":"ResourceRecords"}, "AliasTarget":{"shape":"AliasTarget"}, "HealthCheckId":{"shape":"HealthCheckId"}, - "TrafficPolicyInstanceId":{"shape":"TrafficPolicyInstanceId"} + "TrafficPolicyInstanceId":{"shape":"TrafficPolicyInstanceId"}, + "CidrRoutingConfig":{"shape":"CidrRoutingConfig"} } }, "ResourceRecordSetFailover":{ @@ -4160,6 +4581,10 @@ "max":4 }, "TransportProtocol":{"type":"string"}, + "UUID":{ + "type":"string", + "pattern":"[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}" + }, "UpdateHealthCheckRequest":{ "type":"structure", "required":["HealthCheckId"], diff --git a/models/apis/route53/2013-04-01/docs-2.json b/models/apis/route53/2013-04-01/docs-2.json index 73f9c6e13d..946604e139 100644 --- a/models/apis/route53/2013-04-01/docs-2.json +++ b/models/apis/route53/2013-04-01/docs-2.json @@ -4,10 +4,12 @@ "operations": { "ActivateKeySigningKey": "

Activates a key-signing key (KSK) so that it can be used for signing by DNSSEC. This operation changes the KSK status to ACTIVE.

", "AssociateVPCWithHostedZone": "

Associates an Amazon VPC with a private hosted zone.

To perform the association, the VPC and the private hosted zone must already exist. You can't convert a public hosted zone into a private hosted zone.

If you want to associate a VPC that was created by using one Amazon Web Services account with a private hosted zone that was created by using a different account, the Amazon Web Services account that created the private hosted zone must first submit a CreateVPCAssociationAuthorization request. Then the account that created the VPC must submit an AssociateVPCWithHostedZone request.

When granting access, the hosted zone and the Amazon VPC must belong to the same partition. A partition is a group of Amazon Web Services Regions. Each Amazon Web Services account is scoped to one partition.

The following are the supported partitions:

For more information, see Access Management in the Amazon Web Services General Reference.

", + "ChangeCidrCollection": "

Creates, changes, or deletes CIDR blocks within a collection. Contains authoritative IP information mapping blocks to one or multiple locations.

A change request can update multiple locations in a collection at a time, which is helpful if you want to move one or more CIDR blocks from one location to another in one transaction, without downtime.

Limits

The max number of CIDR blocks included in the request is 1000. As a result, big updates require multiple API calls.

PUT and DELETE_IF_EXISTS

Use ChangeCidrCollection to perform the following actions:

", "ChangeResourceRecordSets": "

Creates, changes, or deletes a resource record set, which contains authoritative DNS information for a specified domain name or subdomain name. For example, you can use ChangeResourceRecordSets to create a resource record set that routes traffic for test.example.com to a web server that has an IP address of 192.0.2.44.

Deleting Resource Record Sets

To delete a resource record set, you must specify all the same values that you specified when you created it.

Change Batches and Transactional Changes

The request body must include a document with a ChangeResourceRecordSetsRequest element. The request body contains a list of change items, known as a change batch. Change batches are considered transactional changes. Route 53 validates the changes in the request and then either makes all or none of the changes in the change batch request. This ensures that DNS routing isn't adversely affected by partial changes to the resource record sets in a hosted zone.

For example, suppose a change batch request contains two changes: it deletes the CNAME resource record set for www.example.com and creates an alias resource record set for www.example.com. If validation for both records succeeds, Route 53 deletes the first resource record set and creates the second resource record set in a single operation. If validation for either the DELETE or the CREATE action fails, then the request is canceled, and the original CNAME record continues to exist.

If you try to delete the same resource record set more than once in a single change batch, Route 53 returns an InvalidChangeBatch error.

Traffic Flow

To create resource record sets for complex routing configurations, use either the traffic flow visual editor in the Route 53 console or the API actions for traffic policies and traffic policy instances. Save the configuration as a traffic policy, then associate the traffic policy with one or more domain names (such as example.com) or subdomain names (such as www.example.com), in the same hosted zone or in multiple hosted zones. You can roll back the updates if the new configuration isn't performing as expected. For more information, see Using Traffic Flow to Route DNS Traffic in the Amazon Route 53 Developer Guide.

Create, Delete, and Upsert

Use ChangeResourceRecordsSetsRequest to perform the following actions:

Syntaxes for Creating, Updating, and Deleting Resource Record Sets

The syntax for a request depends on the type of resource record set that you want to create, delete, or update, such as weighted, alias, or failover. The XML elements in your request must appear in the order listed in the syntax.

For an example for each type of resource record set, see \"Examples.\"

Don't refer to the syntax in the \"Parameter Syntax\" section, which includes all of the elements for every kind of resource record set that you can create, delete, or update by using ChangeResourceRecordSets.

Change Propagation to Route 53 DNS Servers

When you submit a ChangeResourceRecordSets request, Route 53 propagates your changes to all of the Route 53 authoritative DNS servers. While your changes are propagating, GetChange returns a status of PENDING. When propagation is complete, GetChange returns a status of INSYNC. Changes generally propagate to all Route 53 name servers within 60 seconds. For more information, see GetChange.

Limits on ChangeResourceRecordSets Requests

For information about the limits on a ChangeResourceRecordSets request, see Limits in the Amazon Route 53 Developer Guide.

", "ChangeTagsForResource": "

Adds, edits, or deletes tags for a health check or a hosted zone.

For information about using tags for cost allocation, see Using Cost Allocation Tags in the Billing and Cost Management User Guide.

", + "CreateCidrCollection": "

Creates a CIDR collection in the current Amazon Web Services account.

", "CreateHealthCheck": "

Creates a new health check.

For information about adding health checks to resource record sets, see HealthCheckId in ChangeResourceRecordSets.

ELB Load Balancers

If you're registering EC2 instances with an Elastic Load Balancing (ELB) load balancer, do not create Amazon Route 53 health checks for the EC2 instances. When you register an EC2 instance with a load balancer, you configure settings for an ELB health check, which performs a similar function to a Route 53 health check.

Private Hosted Zones

You can associate health checks with failover resource record sets in a private hosted zone. Note the following:

", - "CreateHostedZone": "

Creates a new public or private hosted zone. You create records in a public hosted zone to define how you want to route traffic on the internet for a domain, such as example.com, and its subdomains (apex.example.com, acme.example.com). You create records in a private hosted zone to define how you want to route traffic for a domain and its subdomains within one or more Amazon Virtual Private Clouds (Amazon VPCs).

You can't convert a public hosted zone to a private hosted zone or vice versa. Instead, you must create a new hosted zone with the same name and create new resource record sets.

For more information about charges for hosted zones, see Amazon Route 53 Pricing.

Note the following:

When you submit a CreateHostedZone request, the initial status of the hosted zone is PENDING. For public hosted zones, this means that the NS and SOA records are not yet available on all Route 53 DNS servers. When the NS and SOA records are available, the status of the zone changes to INSYNC.

The CreateHostedZone request requires the caller to have an ec2:DescribeVpcs permission.

When creating private hosted zones, the Amazon VPC must belong to the same partition where the hosted zone is created. A partition is a group of Amazon Web Services Regions. Each Amazon Web Services account is scoped to one partition.

The following are the supported partitions:

For more information, see Access Management in the Amazon Web Services General Reference.

", + "CreateHostedZone": "

Creates a new public or private hosted zone. You create records in a public hosted zone to define how you want to route traffic on the internet for a domain, such as example.com, and its subdomains (apex.example.com, acme.example.com). You create records in a private hosted zone to define how you want to route traffic for a domain and its subdomains within one or more Amazon Virtual Private Clouds (Amazon VPCs).

You can't convert a public hosted zone to a private hosted zone or vice versa. Instead, you must create a new hosted zone with the same name and create new resource record sets.

For more information about charges for hosted zones, see Amazon Route 53 Pricing.

Note the following:

When you submit a CreateHostedZone request, the initial status of the hosted zone is PENDING. For public hosted zones, this means that the NS and SOA records are not yet available on all Route 53 DNS servers. When the NS and SOA records are available, the status of the zone changes to INSYNC.

The CreateHostedZone request requires the caller to have an ec2:DescribeVpcs permission.

When creating private hosted zones, the Amazon VPC must belong to the same partition where the hosted zone is created. A partition is a group of Amazon Web Services Regions. Each Amazon Web Services account is scoped to one partition.

The following are the supported partitions:

For more information, see Access Management in the Amazon Web Services General Reference.

", "CreateKeySigningKey": "

Creates a new key-signing key (KSK) associated with a hosted zone. You can only have two KSKs per hosted zone.

", "CreateQueryLoggingConfig": "

Creates a configuration for DNS query logging. After you create a query logging configuration, Amazon Route 53 begins to publish log data to an Amazon CloudWatch Logs log group.

DNS query logs contain information about the queries that Route 53 receives for a specified public hosted zone, such as the following:

Log Group and Resource Policy

Before you create a query logging configuration, perform the following operations.

If you create a query logging configuration using the Route 53 console, Route 53 performs these operations automatically.

  1. Create a CloudWatch Logs log group, and make note of the ARN, which you specify when you create a query logging configuration. Note the following:

    • You must create the log group in the us-east-1 region.

    • You must use the same Amazon Web Services account to create the log group and the hosted zone that you want to configure query logging for.

    • When you create log groups for query logging, we recommend that you use a consistent prefix, for example:

      /aws/route53/hosted zone name

      In the next step, you'll create a resource policy, which controls access to one or more log groups and the associated Amazon Web Services resources, such as Route 53 hosted zones. There's a limit on the number of resource policies that you can create, so we recommend that you use a consistent prefix so you can use the same resource policy for all the log groups that you create for query logging.

  2. Create a CloudWatch Logs resource policy, and give it the permissions that Route 53 needs to create log streams and to send query logs to log streams. For the value of Resource, specify the ARN for the log group that you created in the previous step. To use the same resource policy for all the CloudWatch Logs log groups that you created for query logging configurations, replace the hosted zone name with *, for example:

    arn:aws:logs:us-east-1:123412341234:log-group:/aws/route53/*

    To avoid the confused deputy problem, a security issue where an entity without a permission for an action can coerce a more-privileged entity to perform it, you can optionally limit the permissions that a service has to a resource in a resource-based policy by supplying the following values:

    • For aws:SourceArn, supply the hosted zone ARN used in creating the query logging configuration. For example, aws:SourceArn: arn:aws:route53:::hostedzone/hosted zone ID.

    • For aws:SourceAccount, supply the account ID for the account that creates the query logging configuration. For example, aws:SourceAccount:111111111111.

    For more information, see The confused deputy problem in the Amazon Web Services IAM User Guide.

    You can't use the CloudWatch console to create or edit a resource policy. You must use the CloudWatch API, one of the Amazon Web Services SDKs, or the CLI.

Log Streams and Edge Locations

When Route 53 finishes creating the configuration for DNS query logging, it does the following:

The name of each log stream is in the following format:

hosted zone ID/edge location code

The edge location code is a three-letter code and an arbitrarily assigned number, for example, DFW3. The three-letter code typically corresponds with the International Air Transport Association airport code for an airport near the edge location. (These abbreviations might change in the future.) For a list of edge locations, see \"The Route 53 Global Network\" on the Route 53 Product Details page.

Queries That Are Logged

Query logs contain only the queries that DNS resolvers forward to Route 53. If a DNS resolver has already cached the response to a query (such as the IP address for a load balancer for example.com), the resolver will continue to return the cached response. It doesn't forward another query to Route 53 until the TTL for the corresponding resource record set expires. Depending on how many DNS queries are submitted for a resource record set, and depending on the TTL for that resource record set, query logs might contain information about only one query out of every several thousand queries that are submitted to DNS. For more information about how DNS works, see Routing Internet Traffic to Your Website or Web Application in the Amazon Route 53 Developer Guide.

Log File Format

For a list of the values in each query log and the format of each value, see Logging DNS Queries in the Amazon Route 53 Developer Guide.

Pricing

For information about charges for query logs, see Amazon CloudWatch Pricing.

How to Stop Logging

If you want Route 53 to stop sending query logs to CloudWatch Logs, delete the query logging configuration. For more information, see DeleteQueryLoggingConfig.

", "CreateReusableDelegationSet": "

Creates a delegation set (a group of four name servers) that can be reused by multiple hosted zones that were created by the same Amazon Web Services account.

You can also create a reusable delegation set that uses the four name servers that are associated with an existing hosted zone. Specify the hosted zone ID in the CreateReusableDelegationSet request.

You can't associate a reusable delegation set with a private hosted zone.

For information about using a reusable delegation set to configure white label name servers, see Configuring White Label Name Servers.

The process for migrating existing hosted zones to use a reusable delegation set is comparable to the process for configuring white label name servers. You need to perform the following steps:

  1. Create a reusable delegation set.

  2. Recreate hosted zones, and reduce the TTL to 60 seconds or less.

  3. Recreate resource record sets in the new hosted zones.

  4. Change the registrar's name servers to use the name servers for the new hosted zones.

  5. Monitor traffic for the website or application.

  6. Change TTLs back to their original values.

If you want to migrate existing hosted zones to use a reusable delegation set, the existing hosted zones can't use any of the name servers that are assigned to the reusable delegation set. If one or more hosted zones do use one or more name servers that are assigned to the reusable delegation set, you can do one of the following:

", @@ -16,8 +18,9 @@ "CreateTrafficPolicyVersion": "

Creates a new version of an existing traffic policy. When you create a new version of a traffic policy, you specify the ID of the traffic policy that you want to update and a JSON-formatted document that describes the new version. You use traffic policies to create multiple DNS resource record sets for one domain name (such as example.com) or one subdomain name (such as www.example.com). You can create a maximum of 1000 versions of a traffic policy. If you reach the limit and need to create another version, you'll need to start a new traffic policy.

", "CreateVPCAssociationAuthorization": "

Authorizes the Amazon Web Services account that created a specified VPC to submit an AssociateVPCWithHostedZone request to associate the VPC with a specified hosted zone that was created by a different account. To submit a CreateVPCAssociationAuthorization request, you must use the account that created the hosted zone. After you authorize the association, use the account that created the VPC to submit an AssociateVPCWithHostedZone request.

If you want to associate multiple VPCs that you created by using one account with a hosted zone that you created by using a different account, you must submit one authorization request for each VPC.

", "DeactivateKeySigningKey": "

Deactivates a key-signing key (KSK) so that it will not be used for signing by DNSSEC. This operation changes the KSK status to INACTIVE.

", + "DeleteCidrCollection": "

Deletes a CIDR collection in the current Amazon Web Services account. The collection must be empty before it can be deleted.

", "DeleteHealthCheck": "

Deletes a health check.

Amazon Route 53 does not prevent you from deleting a health check even if the health check is associated with one or more resource record sets. If you delete a health check and you don't update the associated resource record sets, the future status of the health check can't be predicted and may change. This will affect the routing of DNS queries for your DNS failover configuration. For more information, see Replacing and Deleting Health Checks in the Amazon Route 53 Developer Guide.

If you're using Cloud Map and you configured Cloud Map to create a Route 53 health check when you register an instance, you can't use the Route 53 DeleteHealthCheck command to delete the health check. The health check is deleted automatically when you deregister the instance; there can be a delay of several hours before the health check is deleted from Route 53.

", - "DeleteHostedZone": "

Deletes a hosted zone.

If the hosted zone was created by another service, such as Cloud Map, see Deleting Public Hosted Zones That Were Created by Another Service in the Amazon Route 53 Developer Guide for information about how to delete it. (The process is the same for public and private hosted zones that were created by another service.)

If you want to keep your domain registration but you want to stop routing internet traffic to your website or web application, we recommend that you delete resource record sets in the hosted zone instead of deleting the hosted zone.

If you delete a hosted zone, you can't undelete it. You must create a new hosted zone and update the name servers for your domain registration, which can require up to 48 hours to take effect. (If you delegated responsibility for a subdomain to a hosted zone and you delete the child hosted zone, you must update the name servers in the parent hosted zone.) In addition, if you delete a hosted zone, someone could hijack the domain and route traffic to their own resources using your domain name.

If you want to avoid the monthly charge for the hosted zone, you can transfer DNS service for the domain to a free DNS service. When you transfer DNS service, you have to update the name servers for the domain registration. If the domain is registered with Route 53, see UpdateDomainNameservers for information about how to replace Route 53 name servers with name servers for the new DNS service. If the domain is registered with another registrar, use the method provided by the registrar to update name servers for the domain registration. For more information, perform an internet search on \"free DNS service.\"

You can delete a hosted zone only if it contains only the default SOA record and NS resource record sets. If the hosted zone contains other resource record sets, you must delete them before you can delete the hosted zone. If you try to delete a hosted zone that contains other resource record sets, the request fails, and Route 53 returns a HostedZoneNotEmpty error. For information about deleting records from your hosted zone, see ChangeResourceRecordSets.

To verify that the hosted zone has been deleted, do one of the following:

", + "DeleteHostedZone": "

Deletes a hosted zone.

If the hosted zone was created by another service, such as Cloud Map, see Deleting Public Hosted Zones That Were Created by Another Service in the Amazon Route 53 Developer Guide for information about how to delete it. (The process is the same for public and private hosted zones that were created by another service.)

If you want to keep your domain registration but you want to stop routing internet traffic to your website or web application, we recommend that you delete resource record sets in the hosted zone instead of deleting the hosted zone.

If you delete a hosted zone, you can't undelete it. You must create a new hosted zone and update the name servers for your domain registration, which can require up to 48 hours to take effect. (If you delegated responsibility for a subdomain to a hosted zone and you delete the child hosted zone, you must update the name servers in the parent hosted zone.) In addition, if you delete a hosted zone, someone could hijack the domain and route traffic to their own resources using your domain name.

If you want to avoid the monthly charge for the hosted zone, you can transfer DNS service for the domain to a free DNS service. When you transfer DNS service, you have to update the name servers for the domain registration. If the domain is registered with Route 53, see UpdateDomainNameservers for information about how to replace Route 53 name servers with name servers for the new DNS service. If the domain is registered with another registrar, use the method provided by the registrar to update name servers for the domain registration. For more information, perform an internet search on \"free DNS service.\"

You can delete a hosted zone only if it contains only the default SOA record and NS resource record sets. If the hosted zone contains other resource record sets, you must delete them before you can delete the hosted zone. If you try to delete a hosted zone that contains other resource record sets, the request fails, and Route 53 returns a HostedZoneNotEmpty error. For information about deleting records from your hosted zone, see ChangeResourceRecordSets.

To verify that the hosted zone has been deleted, do one of the following:

", "DeleteKeySigningKey": "

Deletes a key-signing key (KSK). Before you can delete a KSK, you must deactivate it. The KSK must be deactivated before you can delete it regardless of whether the hosted zone is enabled for DNSSEC signing.

You can use DeactivateKeySigningKey to deactivate the key before you delete it.

Use GetDNSSEC to verify that the KSK is in an INACTIVE status.

", "DeleteQueryLoggingConfig": "

Deletes a configuration for DNS query logging. If you delete a configuration, Amazon Route 53 stops sending query logs to CloudWatch Logs. Route 53 doesn't delete any logs that are already in CloudWatch Logs.

For more information about DNS query logs, see CreateQueryLoggingConfig.

", "DeleteReusableDelegationSet": "

Deletes a reusable delegation set.

You can delete a reusable delegation set only if it isn't associated with any hosted zones.

To verify that the reusable delegation set is not associated with any hosted zones, submit a GetReusableDelegationSet request and specify the ID of the reusable delegation set that you want to delete.

", @@ -45,6 +48,9 @@ "GetTrafficPolicy": "

Gets information about a specific traffic policy version.

For information about how of deleting a traffic policy affects the response from GetTrafficPolicy, see DeleteTrafficPolicy.

", "GetTrafficPolicyInstance": "

Gets information about a specified traffic policy instance.

After you submit a CreateTrafficPolicyInstance or an UpdateTrafficPolicyInstance request, there's a brief delay while Amazon Route 53 creates the resource record sets that are specified in the traffic policy definition. For more information, see the State response element.

In the Route 53 console, traffic policy instances are known as policy records.

", "GetTrafficPolicyInstanceCount": "

Gets the number of traffic policy instances that are associated with the current Amazon Web Services account.

", + "ListCidrBlocks": "

Returns a paginated list of location objects and their CIDR blocks.

", + "ListCidrCollections": "

Returns a paginated list of CIDR collections in the Amazon Web Services account (metadata only).

", + "ListCidrLocations": "

Returns a paginated list of CIDR locations for the given collection (metadata only, does not include CIDR blocks).

", "ListGeoLocations": "

Retrieves a list of supported geographic locations.

Countries are listed first, and continents are listed last. If Amazon Route 53 supports subdivisions for a country (for example, states or provinces), the subdivisions for that country are listed in alphabetical order immediately after the corresponding country.

Route 53 does not perform authorization for this API because it retrieves information that is already available to the public.

For a list of supported geolocation codes, see the GeoLocation data type.

", "ListHealthChecks": "

Retrieve a list of the health checks that are associated with the current Amazon Web Services account.

", "ListHostedZones": "

Retrieves a list of the public and private hosted zones that are associated with the current Amazon Web Services account. The response includes a HostedZones child element for each hosted zone.

Amazon Route 53 returns a maximum of 100 items in each response. If you have a lot of hosted zones, you can use the maxitems parameter to list them in groups of up to 100.

", @@ -68,6 +74,13 @@ "UpdateTrafficPolicyInstance": "

Updates the resource record sets in a specified hosted zone that were created based on the settings in a specified traffic policy version.

When you update a traffic policy instance, Amazon Route 53 continues to respond to DNS queries for the root resource record set name (such as example.com) while it replaces one group of resource record sets with another. Route 53 performs the following operations:

  1. Route 53 creates a new group of resource record sets based on the specified traffic policy. This is true regardless of how significant the differences are between the existing resource record sets and the new resource record sets.

  2. When all of the new resource record sets have been created, Route 53 starts to respond to DNS queries for the root resource record set name (such as example.com) by using the new resource record sets.

  3. Route 53 deletes the old group of resource record sets that are associated with the root resource record set name.

" }, "shapes": { + "ARN": { + "base": null, + "refs": { + "CidrCollection$Arn": "

The ARN of the collection. Can be used to reference the collection in IAM policy or in another Amazon Web Services account.

", + "CollectionSummary$Arn": "

The ARN of the collection summary. Can be used to reference the collection in IAM policy or cross-account.

" + } + }, "AWSAccountID": { "base": null, "refs": { @@ -156,6 +169,23 @@ "ChangeResourceRecordSetsRequest$ChangeBatch": "

A complex type that contains an optional comment and the Changes element.

" } }, + "ChangeCidrCollectionRequest": { + "base": null, + "refs": { + } + }, + "ChangeCidrCollectionResponse": { + "base": null, + "refs": { + } + }, + "ChangeId": { + "base": null, + "refs": { + "ChangeCidrCollectionResponse$Id": "

The ID that is returned by ChangeCidrCollection. You can use it as input to GetChange to see if a CIDR collection change has propagated or not.

", + "GetChangeRequest$Id": "

The ID of the change batch request. The value that you specify here is the value that ChangeResourceRecordSets returned in the Id element when you submitted the request.

" + } + }, "ChangeInfo": { "base": "

A complex type that describes change information about changes made to your hosted zone.

", "refs": { @@ -218,6 +248,102 @@ "UpdateHealthCheckRequest$ChildHealthChecks": "

A complex type that contains one ChildHealthCheck element for each health check that you want to associate with a CALCULATED health check.

" } }, + "Cidr": { + "base": null, + "refs": { + "CidrBlockSummary$CidrBlock": "

Value for the CIDR block.

", + "CidrList$member": null + } + }, + "CidrBlockInUseException": { + "base": "

This CIDR block is already in use.

", + "refs": { + } + }, + "CidrBlockSummaries": { + "base": null, + "refs": { + "ListCidrBlocksResponse$CidrBlocks": "

A complex type that contains information about the CIDR blocks.

" + } + }, + "CidrBlockSummary": { + "base": "

A complex type that lists the CIDR blocks.

", + "refs": { + "CidrBlockSummaries$member": null + } + }, + "CidrCollection": { + "base": "

A complex type that identifies a CIDR collection.

", + "refs": { + "CreateCidrCollectionResponse$Collection": "

A complex type that contains information about the CIDR collection.

" + } + }, + "CidrCollectionAlreadyExistsException": { + "base": "

A CIDR collection with this name and a different caller reference already exists in this account.

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

A complex type that contains information about the CIDR collection change.

", + "refs": { + "CidrCollectionChanges$member": null + } + }, + "CidrCollectionChangeAction": { + "base": null, + "refs": { + "CidrCollectionChange$Action": "

CIDR collection change action.

" + } + }, + "CidrCollectionChanges": { + "base": null, + "refs": { + "ChangeCidrCollectionRequest$Changes": "

Information about changes to a CIDR collection.

" + } + }, + "CidrCollectionInUseException": { + "base": "

This CIDR collection is in use, and isn't empty.

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

The CIDR collection version you provided, doesn't match the one in the ListCidrCollections operation.

", + "refs": { + } + }, + "CidrList": { + "base": null, + "refs": { + "CidrCollectionChange$CidrList": "

List of CIDR blocks.

" + } + }, + "CidrLocationNameDefaultAllowed": { + "base": null, + "refs": { + "CidrRoutingConfig$LocationName": "

The CIDR collection location name.

", + "LocationSummary$LocationName": "

A string that specifies a location name.

" + } + }, + "CidrLocationNameDefaultNotAllowed": { + "base": null, + "refs": { + "CidrBlockSummary$LocationName": "

The location name of the CIDR block.

", + "CidrCollectionChange$LocationName": "

Name of the location that is associated with the CIDR collection.

", + "ListCidrBlocksRequest$LocationName": "

The name of the CIDR collection location.

" + } + }, + "CidrNonce": { + "base": null, + "refs": { + "CreateCidrCollectionRequest$CallerReference": "

A client-specific token that allows requests to be securely retried so that the intended outcome will only occur once, retries receive a similar response, and there are no additional edge cases to handle.

" + } + }, + "CidrRoutingConfig": { + "base": "

The object that is specified in resource record set object when you are linking a resource record set to a CIDR location.

A LocationName with an asterisk “*” can be used to create a default CIDR record. CollectionId is still required for default record.

", + "refs": { + "ResourceRecordSet$CidrRoutingConfig": null + } + }, "CloudWatchAlarmConfiguration": { "base": "

A complex type that contains information about the CloudWatch alarm that Amazon Route 53 is monitoring for this health check.

", "refs": { @@ -237,6 +363,34 @@ "AlarmIdentifier$Region": "

For the CloudWatch alarm that you want Route 53 health checkers to use to determine whether this health check is healthy, the region that the alarm was created in.

For the current list of CloudWatch regions, see Amazon CloudWatch endpoints and quotas in the Amazon Web Services General Reference.

" } }, + "CollectionName": { + "base": null, + "refs": { + "CidrCollection$Name": "

The name of a CIDR collection.

", + "CollectionSummary$Name": "

The name of a CIDR collection.

", + "CreateCidrCollectionRequest$Name": "

A unique identifier for the account that can be used to reference the collection from other API calls.

" + } + }, + "CollectionSummaries": { + "base": null, + "refs": { + "ListCidrCollectionsResponse$CidrCollections": "

A complex type with information about the CIDR collection.

" + } + }, + "CollectionSummary": { + "base": "

A complex type that is an entry in an CidrCollection array.

", + "refs": { + "CollectionSummaries$member": null + } + }, + "CollectionVersion": { + "base": null, + "refs": { + "ChangeCidrCollectionRequest$CollectionVersion": "

A sequential counter that Amazon Route 53 sets to 1 when you create a collection and increments it by 1 each time you update the collection.

We recommend that you use ListCidrCollection to get the current value of CollectionVersion for the collection that you want to update, and then include that value with the change request. This prevents Route 53 from overwriting an intervening update:

", + "CidrCollection$Version": "

A sequential counter that Route 53 sets to 1 when you create a CIDR collection and increments by 1 each time you update settings for the CIDR collection.

", + "CollectionSummary$Version": "

A sequential counter that Route 53 sets to 1 when you create a CIDR collection and increments by 1 each time you update settings for the CIDR collection.

" + } + }, "ComparisonOperator": { "base": null, "refs": { @@ -258,6 +412,16 @@ "refs": { } }, + "CreateCidrCollectionRequest": { + "base": null, + "refs": { + } + }, + "CreateCidrCollectionResponse": { + "base": null, + "refs": { + } + }, "CreateHealthCheckRequest": { "base": "

A complex type that contains the health check request information.

", "refs": { @@ -352,7 +516,7 @@ "base": null, "refs": { "AliasTarget$DNSName": "

Alias resource record sets only: The value that you specify depends on where you want to route queries:

Amazon API Gateway custom regional APIs and edge-optimized APIs

Specify the applicable domain name for your API. You can get the applicable value using the CLI command get-domain-names:

The name of the record that you're creating must match a custom domain name for your API, such as api.example.com.

Amazon Virtual Private Cloud interface VPC endpoint

Enter the API endpoint for the interface endpoint, such as vpce-123456789abcdef01-example-us-east-1a.elasticloadbalancing.us-east-1.vpce.amazonaws.com. For edge-optimized APIs, this is the domain name for the corresponding CloudFront distribution. You can get the value of DnsName using the CLI command describe-vpc-endpoints.

CloudFront distribution

Specify the domain name that CloudFront assigned when you created your distribution.

Your CloudFront distribution must include an alternate domain name that matches the name of the resource record set. For example, if the name of the resource record set is acme.example.com, your CloudFront distribution must include acme.example.com as one of the alternate domain names. For more information, see Using Alternate Domain Names (CNAMEs) in the Amazon CloudFront Developer Guide.

You can't create a resource record set in a private hosted zone to route traffic to a CloudFront distribution.

For failover alias records, you can't specify a CloudFront distribution for both the primary and secondary records. A distribution must include an alternate domain name that matches the name of the record. However, the primary and secondary records have the same name, and you can't include the same alternate domain name in more than one distribution.

Elastic Beanstalk environment

If the domain name for your Elastic Beanstalk environment includes the region that you deployed the environment in, you can create an alias record that routes traffic to the environment. For example, the domain name my-environment.us-west-2.elasticbeanstalk.com is a regionalized domain name.

For environments that were created before early 2016, the domain name doesn't include the region. To route traffic to these environments, you must create a CNAME record instead of an alias record. Note that you can't create a CNAME record for the root domain name. For example, if your domain name is example.com, you can create a record that routes traffic for acme.example.com to your Elastic Beanstalk environment, but you can't create a record that routes traffic for example.com to your Elastic Beanstalk environment.

For Elastic Beanstalk environments that have regionalized subdomains, specify the CNAME attribute for the environment. You can use the following methods to get the value of the CNAME attribute:

ELB load balancer

Specify the DNS name that is associated with the load balancer. Get the DNS name by using the Amazon Web Services Management Console, the ELB API, or the CLI.

Global Accelerator accelerator

Specify the DNS name for your accelerator:

Amazon S3 bucket that is configured as a static website

Specify the domain name of the Amazon S3 website endpoint that you created the bucket in, for example, s3-website.us-east-2.amazonaws.com. For more information about valid values, see the table Amazon S3 Website Endpoints in the Amazon Web Services General Reference. For more information about using S3 buckets for websites, see Getting Started with Amazon Route 53 in the Amazon Route 53 Developer Guide.

Another Route 53 resource record set

Specify the value of the Name element for a resource record set in the current hosted zone.

If you're creating an alias record that has the same name as the hosted zone (known as the zone apex), you can't specify the domain name for a record for which the value of Type is CNAME. This is because the alias record must have the same type as the record that you're routing traffic to, and creating a CNAME record for the zone apex isn't supported even for an alias record.

", - "CreateHostedZoneRequest$Name": "

The name of the domain. Specify a fully qualified domain name, for example, www.example.com. The trailing dot is optional; Amazon Route 53 assumes that the domain name is fully qualified. This means that Route 53 treats www.example.com (without a trailing dot) and www.example.com. (with a trailing dot) as identical.

If you're creating a public hosted zone, this is the name you have registered with your DNS registrar. If your domain name is registered with a registrar other than Route 53, change the name servers for your domain to the set of NameServers that CreateHostedZone returns in DelegationSet.

", + "CreateHostedZoneRequest$Name": "

The name of the domain. Specify a fully qualified domain name, for example, www.example.com. The trailing dot is optional; Amazon Route 53 assumes that the domain name is fully qualified. This means that Route 53 treats www.example.com (without a trailing dot) and www.example.com. (with a trailing dot) as identical.

If you're creating a public hosted zone, this is the name you have registered with your DNS registrar. If your domain name is registered with a registrar other than Route 53, change the name servers for your domain to the set of NameServers that CreateHostedZone returns in DelegationSet.

", "CreateTrafficPolicyInstanceRequest$Name": "

The domain name (such as example.com) or subdomain name (such as www.example.com) for which Amazon Route 53 responds to DNS queries by using the resource record sets that Route 53 creates for this traffic policy instance.

", "DelegationSetNameServers$member": null, "HostedZone$Name": "

The name of the domain. For public hosted zones, this is the name that you have registered with your DNS registrar.

For information about how to specify characters other than a-z, 0-9, and - (hyphen) and how to specify internationalized domain names, see CreateHostedZone.

", @@ -448,6 +612,16 @@ "ListReusableDelegationSetsResponse$DelegationSets": "

A complex type that contains one DelegationSet element for each reusable delegation set that was created by the current Amazon Web Services account.

" } }, + "DeleteCidrCollectionRequest": { + "base": null, + "refs": { + } + }, + "DeleteCidrCollectionResponse": { + "base": null, + "refs": { + } + }, "DeleteHealthCheckRequest": { "base": "

This action deletes a health check.

", "refs": { @@ -600,6 +774,10 @@ "ErrorMessage": { "base": null, "refs": { + "CidrBlockInUseException$Message": null, + "CidrCollectionAlreadyExistsException$Message": null, + "CidrCollectionInUseException$Message": null, + "CidrCollectionVersionMismatchException$Message": null, "ConcurrentModification$message": "

", "ConflictingDomainExists$message": null, "ConflictingTypes$message": "

", @@ -638,6 +816,8 @@ "LastVPCAssociation$message": "

", "LimitsExceeded$message": "

", "NoSuchChange$message": null, + "NoSuchCidrCollectionException$Message": null, + "NoSuchCidrLocationException$Message": null, "NoSuchCloudWatchLogsLogGroup$message": null, "NoSuchDelegationSet$message": "

", "NoSuchGeoLocation$message": "

", @@ -1294,7 +1474,7 @@ } }, "LimitsExceeded": { - "base": "

This operation can't be completed either because the current account has reached the limit on reusable delegation sets that it can create or because you've reached the limit on the number of Amazon VPCs that you can associate with a private hosted zone. To get the current limit on the number of reusable delegation sets, see GetAccountLimit. To get the current limit on the number of Amazon VPCs that you can associate with a private hosted zone, see GetHostedZoneLimit. To request a higher limit, create a case with the Amazon Web Services Support Center.

", + "base": "

This operation can't be completed because the current account has reached the limit on the resource you are trying to create. To request a higher limit, create a case with the Amazon Web Services Support Center.

", "refs": { } }, @@ -1305,6 +1485,36 @@ "HostedZone$LinkedService": "

If the hosted zone was created by another service, the service that created the hosted zone. When a hosted zone is created by another service, you can't edit or delete it using Route 53.

" } }, + "ListCidrBlocksRequest": { + "base": null, + "refs": { + } + }, + "ListCidrBlocksResponse": { + "base": null, + "refs": { + } + }, + "ListCidrCollectionsRequest": { + "base": null, + "refs": { + } + }, + "ListCidrCollectionsResponse": { + "base": null, + "refs": { + } + }, + "ListCidrLocationsRequest": { + "base": null, + "refs": { + } + }, + "ListCidrLocationsResponse": { + "base": null, + "refs": { + } + }, "ListGeoLocationsRequest": { "base": "

A request to get a list of geographic locations that Amazon Route 53 supports for geolocation resource record sets.

", "refs": { @@ -1465,9 +1675,24 @@ "refs": { } }, + "LocationSummaries": { + "base": null, + "refs": { + "ListCidrLocationsResponse$CidrLocations": "

A complex type that contains information about the list of CIDR locations.

" + } + }, + "LocationSummary": { + "base": "

A complex type that contains information about the CIDR location.

", + "refs": { + "LocationSummaries$member": null + } + }, "MaxResults": { "base": null, "refs": { + "ListCidrBlocksRequest$MaxResults": "

Maximum number of results you want returned.

", + "ListCidrCollectionsRequest$MaxResults": "

The maximum number of CIDR collections to return in the response.

", + "ListCidrLocationsRequest$MaxResults": "

The maximum number of CIDR collection locations to return in the response.

", "ListQueryLoggingConfigsRequest$MaxResults": "

(Optional) The maximum number of query logging configurations that you want Amazon Route 53 to return in response to the current request. If the current Amazon Web Services account has more than MaxResults configurations, use the value of NextToken in the response to get the next page of results.

If you don't specify a value for MaxResults, Route 53 returns up to 100 configurations.

", "ListVPCAssociationAuthorizationsRequest$MaxResults": "

Optional: An integer that specifies the maximum number of VPCs that you want Amazon Route 53 to return. If you don't specify a value for MaxResults, Route 53 returns up to 50 VPCs per page.

" } @@ -1507,6 +1732,16 @@ "refs": { } }, + "NoSuchCidrCollectionException": { + "base": "

The CIDR collection you specified, doesn't exist.

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

The CIDR collection location doesn't match any locations in your account.

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

There is no CloudWatch Logs log group with the specified ARN.

", "refs": { @@ -1629,6 +1864,12 @@ "PaginationToken": { "base": null, "refs": { + "ListCidrBlocksRequest$NextToken": "

An opaque pagination token to indicate where the service is to begin enumerating results.

", + "ListCidrBlocksResponse$NextToken": "

An opaque pagination token to indicate where the service is to begin enumerating results.

If no value is provided, the listing of results starts from the beginning.

", + "ListCidrCollectionsRequest$NextToken": "

An opaque pagination token to indicate where the service is to begin enumerating results.

If no value is provided, the listing of results starts from the beginning.

", + "ListCidrCollectionsResponse$NextToken": "

An opaque pagination token to indicate where the service is to begin enumerating results.

If no value is provided, the listing of results starts from the beginning.

", + "ListCidrLocationsRequest$NextToken": "

An opaque pagination token to indicate where the service is to begin enumerating results.

If no value is provided, the listing of results starts from the beginning.

", + "ListCidrLocationsResponse$NextToken": "

An opaque pagination token to indicate where the service is to begin enumerating results.

If no value is provided, the listing of results starts from the beginning.

", "ListHostedZonesByVPCRequest$NextToken": "

If the previous response included a NextToken element, the specified VPC is associated with more hosted zones. To get more hosted zones, submit another ListHostedZonesByVPC request.

For the value of NextToken, specify the value of NextToken from the previous response.

If the previous response didn't include a NextToken element, there are no more hosted zones to get.

", "ListHostedZonesByVPCResponse$NextToken": "

The value that you will use for NextToken in the next ListHostedZonesByVPC request.

", "ListQueryLoggingConfigsRequest$NextToken": "

(Optional) If the current Amazon Web Services account has more than MaxResults query logging configurations, use NextToken to get the second and subsequent pages of results.

For the first ListQueryLoggingConfigs request, omit this value.

For the second and subsequent requests, get the value of NextToken from the previous response and specify that value for NextToken in the request.

", @@ -1760,7 +2001,7 @@ "AssociateVPCWithHostedZoneRequest$HostedZoneId": "

The ID of the private hosted zone that you want to associate an Amazon VPC with.

Note that you can't associate a VPC with a hosted zone that doesn't have an existing VPC association.

", "ChangeInfo$Id": "

This element contains an ID that you use when performing a GetChange action to get detailed information about the change.

", "ChangeResourceRecordSetsRequest$HostedZoneId": "

The ID of the hosted zone that contains the resource record sets that you want to change.

", - "CreateHostedZoneRequest$DelegationSetId": "

If you want to associate a reusable delegation set with this hosted zone, the ID that Amazon Route 53 assigned to the reusable delegation set when you created it. For more information about reusable delegation sets, see CreateReusableDelegationSet.

", + "CreateHostedZoneRequest$DelegationSetId": "

If you want to associate a reusable delegation set with this hosted zone, the ID that Amazon Route 53 assigned to the reusable delegation set when you created it. For more information about reusable delegation sets, see CreateReusableDelegationSet.

", "CreateKeySigningKeyRequest$HostedZoneId": "

The unique string (ID) used to identify a hosted zone.

", "CreateQueryLoggingConfigRequest$HostedZoneId": "

The ID of the hosted zone that you want to log queries for. You can log queries only for public hosted zones.

", "CreateReusableDelegationSetRequest$HostedZoneId": "

If you want to mark the delegation set for an existing hosted zone as reusable, the ID for that hosted zone.

", @@ -1776,7 +2017,6 @@ "DisableHostedZoneDNSSECRequest$HostedZoneId": "

A unique string used to identify a hosted zone.

", "DisassociateVPCFromHostedZoneRequest$HostedZoneId": "

The ID of the private hosted zone that you want to disassociate a VPC from.

", "EnableHostedZoneDNSSECRequest$HostedZoneId": "

A unique string used to identify a hosted zone.

", - "GetChangeRequest$Id": "

The ID of the change batch request. The value that you specify here is the value that ChangeResourceRecordSets returned in the Id element when you submitted the request.

", "GetDNSSECRequest$HostedZoneId": "

A unique string used to identify a hosted zone.

", "GetHostedZoneLimitRequest$HostedZoneId": "

The ID of the hosted zone that you want to get a limit for.

", "GetHostedZoneRequest$Id": "

The ID of the hosted zone that you want to get information about.

", @@ -1883,6 +2123,7 @@ "ResourceURI": { "base": null, "refs": { + "CreateCidrCollectionResponse$Location": "

A unique URL that represents the location for the CIDR collection.

", "CreateHealthCheckResponse$Location": "

The unique URL representing the new health check.

", "CreateHostedZoneResponse$Location": "

The unique URL representing the new hosted zone.

", "CreateKeySigningKeyResponse$Location": "

The unique URL representing the new key-signing key (KSK).

", @@ -2289,6 +2530,18 @@ "TestDNSAnswerResponse$Protocol": "

The protocol that Amazon Route 53 used to respond to the request, either UDP or TCP.

" } }, + "UUID": { + "base": null, + "refs": { + "ChangeCidrCollectionRequest$Id": "

The UUID of the CIDR collection to update.

", + "CidrCollection$Id": "

The unique ID of the CIDR collection.

", + "CidrRoutingConfig$CollectionId": "

The CIDR collection ID.

", + "CollectionSummary$Id": "

Unique ID for the CIDR collection.

", + "DeleteCidrCollectionRequest$Id": "

The UUID of the collection to delete.

", + "ListCidrBlocksRequest$CollectionId": "

The UUID of the CIDR collection.

", + "ListCidrLocationsRequest$CollectionId": "

The CIDR collection ID.

" + } + }, "UpdateHealthCheckRequest": { "base": "

A complex type that contains information about a request to update a health check.

", "refs": { diff --git a/models/apis/route53/2013-04-01/paginators-1.json b/models/apis/route53/2013-04-01/paginators-1.json index 418ed85db2..b228a3820d 100644 --- a/models/apis/route53/2013-04-01/paginators-1.json +++ b/models/apis/route53/2013-04-01/paginators-1.json @@ -1,5 +1,23 @@ { "pagination": { + "ListCidrBlocks": { + "input_token": "NextToken", + "limit_key": "MaxResults", + "output_token": "NextToken", + "result_key": "CidrBlocks" + }, + "ListCidrCollections": { + "input_token": "NextToken", + "limit_key": "MaxResults", + "output_token": "NextToken", + "result_key": "CidrCollections" + }, + "ListCidrLocations": { + "input_token": "NextToken", + "limit_key": "MaxResults", + "output_token": "NextToken", + "result_key": "CidrLocations" + }, "ListHealthChecks": { "input_token": "Marker", "limit_key": "MaxItems", diff --git a/service/backupgateway/api.go b/service/backupgateway/api.go index ec43791766..03544f6eeb 100644 --- a/service/backupgateway/api.go +++ b/service/backupgateway/api.go @@ -450,6 +450,92 @@ func (c *BackupGateway) DisassociateGatewayFromServerWithContext(ctx aws.Context return out, req.Send() } +const opGetGateway = "GetGateway" + +// GetGatewayRequest generates a "aws/request.Request" representing the +// client's request for the GetGateway operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See GetGateway for more information on using the GetGateway +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the GetGatewayRequest method. +// req, resp := client.GetGatewayRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/GetGateway +func (c *BackupGateway) GetGatewayRequest(input *GetGatewayInput) (req *request.Request, output *GetGatewayOutput) { + op := &request.Operation{ + Name: opGetGateway, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &GetGatewayInput{} + } + + output = &GetGatewayOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetGateway API operation for AWS Backup Gateway. +// +// By providing the ARN (Amazon Resource Name), this API returns the gateway. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Backup Gateway's +// API operation GetGateway for usage and error information. +// +// Returned Error Types: +// * ValidationException +// The operation did not succeed because a validation error occurred. +// +// * InternalServerException +// The operation did not succeed because an internal error occurred. Try again +// later. +// +// * ResourceNotFoundException +// A resource that is required for the action wasn't found. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/GetGateway +func (c *BackupGateway) GetGateway(input *GetGatewayInput) (*GetGatewayOutput, error) { + req, out := c.GetGatewayRequest(input) + return out, req.Send() +} + +// GetGatewayWithContext is the same as GetGateway with the addition of +// the ability to pass a context and additional request options. +// +// See GetGateway for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *BackupGateway) GetGatewayWithContext(ctx aws.Context, input *GetGatewayInput, opts ...request.Option) (*GetGatewayOutput, error) { + req, out := c.GetGatewayRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opImportHypervisorConfiguration = "ImportHypervisorConfiguration" // ImportHypervisorConfigurationRequest generates a "aws/request.Request" representing the @@ -1490,6 +1576,96 @@ func (c *BackupGateway) UpdateGatewayInformationWithContext(ctx aws.Context, inp return out, req.Send() } +const opUpdateGatewaySoftwareNow = "UpdateGatewaySoftwareNow" + +// UpdateGatewaySoftwareNowRequest generates a "aws/request.Request" representing the +// client's request for the UpdateGatewaySoftwareNow operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdateGatewaySoftwareNow for more information on using the UpdateGatewaySoftwareNow +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the UpdateGatewaySoftwareNowRequest method. +// req, resp := client.UpdateGatewaySoftwareNowRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/UpdateGatewaySoftwareNow +func (c *BackupGateway) UpdateGatewaySoftwareNowRequest(input *UpdateGatewaySoftwareNowInput) (req *request.Request, output *UpdateGatewaySoftwareNowOutput) { + op := &request.Operation{ + Name: opUpdateGatewaySoftwareNow, + HTTPMethod: "POST", + HTTPPath: "/", + } + + if input == nil { + input = &UpdateGatewaySoftwareNowInput{} + } + + output = &UpdateGatewaySoftwareNowOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateGatewaySoftwareNow API operation for AWS Backup Gateway. +// +// Updates the gateway virtual machine (VM) software. The request immediately +// triggers the software update. +// +// When you make this request, you get a 200 OK success response immediately. +// However, it might take some time for the update to complete. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS Backup Gateway's +// API operation UpdateGatewaySoftwareNow for usage and error information. +// +// Returned Error Types: +// * ValidationException +// The operation did not succeed because a validation error occurred. +// +// * InternalServerException +// The operation did not succeed because an internal error occurred. Try again +// later. +// +// * ResourceNotFoundException +// A resource that is required for the action wasn't found. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/UpdateGatewaySoftwareNow +func (c *BackupGateway) UpdateGatewaySoftwareNow(input *UpdateGatewaySoftwareNowInput) (*UpdateGatewaySoftwareNowOutput, error) { + req, out := c.UpdateGatewaySoftwareNowRequest(input) + return out, req.Send() +} + +// UpdateGatewaySoftwareNowWithContext is the same as UpdateGatewaySoftwareNow with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateGatewaySoftwareNow for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *BackupGateway) UpdateGatewaySoftwareNowWithContext(ctx aws.Context, input *UpdateGatewaySoftwareNowInput, opts ...request.Option) (*UpdateGatewaySoftwareNowOutput, error) { + req, out := c.UpdateGatewaySoftwareNowRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opUpdateHypervisor = "UpdateHypervisor" // UpdateHypervisorRequest generates a "aws/request.Request" representing the @@ -2260,6 +2436,175 @@ func (s *Gateway) SetLastSeenTime(v time.Time) *Gateway { return s } +// The details of gateway. +type GatewayDetails struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation + // to return a list of gateways for your account and Amazon Web Services Region. + GatewayArn *string `min:"50" type:"string"` + + // The display name of the gateway. + GatewayDisplayName *string `min:"1" type:"string"` + + // The type of the gateway type. + GatewayType *string `type:"string" enum:"GatewayType"` + + // The hypervisor ID of the gateway. + HypervisorId *string `min:"1" type:"string"` + + // Details showing the last time Backup gateway communicated with the cloud, + // in Unix format and UTC time. + LastSeenTime *time.Time `type:"timestamp"` + + // Details showing the next update availability time of the gateway. + NextUpdateAvailabilityTime *time.Time `type:"timestamp"` + + // The DNS name for the virtual private cloud (VPC) endpoint the gateway uses + // to connect to the cloud for backup gateway. + VpcEndpoint *string `min:"1" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GatewayDetails) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GatewayDetails) GoString() string { + return s.String() +} + +// SetGatewayArn sets the GatewayArn field's value. +func (s *GatewayDetails) SetGatewayArn(v string) *GatewayDetails { + s.GatewayArn = &v + return s +} + +// SetGatewayDisplayName sets the GatewayDisplayName field's value. +func (s *GatewayDetails) SetGatewayDisplayName(v string) *GatewayDetails { + s.GatewayDisplayName = &v + return s +} + +// SetGatewayType sets the GatewayType field's value. +func (s *GatewayDetails) SetGatewayType(v string) *GatewayDetails { + s.GatewayType = &v + return s +} + +// SetHypervisorId sets the HypervisorId field's value. +func (s *GatewayDetails) SetHypervisorId(v string) *GatewayDetails { + s.HypervisorId = &v + return s +} + +// SetLastSeenTime sets the LastSeenTime field's value. +func (s *GatewayDetails) SetLastSeenTime(v time.Time) *GatewayDetails { + s.LastSeenTime = &v + return s +} + +// SetNextUpdateAvailabilityTime sets the NextUpdateAvailabilityTime field's value. +func (s *GatewayDetails) SetNextUpdateAvailabilityTime(v time.Time) *GatewayDetails { + s.NextUpdateAvailabilityTime = &v + return s +} + +// SetVpcEndpoint sets the VpcEndpoint field's value. +func (s *GatewayDetails) SetVpcEndpoint(v string) *GatewayDetails { + s.VpcEndpoint = &v + return s +} + +type GetGatewayInput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the gateway. + // + // GatewayArn is a required field + GatewayArn *string `min:"50" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetGatewayInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetGatewayInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetGatewayInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetGatewayInput"} + if s.GatewayArn == nil { + invalidParams.Add(request.NewErrParamRequired("GatewayArn")) + } + if s.GatewayArn != nil && len(*s.GatewayArn) < 50 { + invalidParams.Add(request.NewErrParamMinLen("GatewayArn", 50)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetGatewayArn sets the GatewayArn field's value. +func (s *GetGatewayInput) SetGatewayArn(v string) *GetGatewayInput { + s.GatewayArn = &v + return s +} + +type GetGatewayOutput struct { + _ struct{} `type:"structure"` + + // By providing the ARN (Amazon Resource Name), this API returns the gateway. + Gateway *GatewayDetails `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetGatewayOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s GetGatewayOutput) GoString() string { + return s.String() +} + +// SetGateway sets the Gateway field's value. +func (s *GetGatewayOutput) SetGateway(v *GatewayDetails) *GetGatewayOutput { + s.Gateway = v + return s +} + // Represents the hypervisor's permissions to which the gateway will connect. // // A hypervisor is hardware, software, or firmware that creates and manages @@ -3170,7 +3515,7 @@ type Tag struct { // Key is a required field Key *string `min:"1" type:"string" required:"true"` - // The key part of a value's key-value pair. + // The value part of a tag's key-value pair. // // Value is a required field Value *string `type:"string" required:"true"` @@ -3636,6 +3981,86 @@ func (s *UpdateGatewayInformationOutput) SetGatewayArn(v string) *UpdateGatewayI return s } +type UpdateGatewaySoftwareNowInput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the gateway to be updated. + // + // GatewayArn is a required field + GatewayArn *string `min:"50" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdateGatewaySoftwareNowInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdateGatewaySoftwareNowInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateGatewaySoftwareNowInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateGatewaySoftwareNowInput"} + if s.GatewayArn == nil { + invalidParams.Add(request.NewErrParamRequired("GatewayArn")) + } + if s.GatewayArn != nil && len(*s.GatewayArn) < 50 { + invalidParams.Add(request.NewErrParamMinLen("GatewayArn", 50)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetGatewayArn sets the GatewayArn field's value. +func (s *UpdateGatewaySoftwareNowInput) SetGatewayArn(v string) *UpdateGatewaySoftwareNowInput { + s.GatewayArn = &v + return s +} + +type UpdateGatewaySoftwareNowOutput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the gateway you updated. + GatewayArn *string `min:"50" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdateGatewaySoftwareNowOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdateGatewaySoftwareNowOutput) GoString() string { + return s.String() +} + +// SetGatewayArn sets the GatewayArn field's value. +func (s *UpdateGatewaySoftwareNowOutput) SetGatewayArn(v string) *UpdateGatewaySoftwareNowOutput { + s.GatewayArn = &v + return s +} + type UpdateHypervisorInput struct { _ struct{} `type:"structure"` @@ -3648,6 +4073,9 @@ type UpdateHypervisorInput struct { // HypervisorArn is a required field HypervisorArn *string `min:"50" type:"string" required:"true"` + // The updated name for the hypervisor + Name *string `min:"1" type:"string"` + // The updated password for the hypervisor. // // Password is a sensitive parameter and its value will be @@ -3693,6 +4121,9 @@ func (s *UpdateHypervisorInput) Validate() error { if s.HypervisorArn != nil && len(*s.HypervisorArn) < 50 { invalidParams.Add(request.NewErrParamMinLen("HypervisorArn", 50)) } + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + } if s.Password != nil && len(*s.Password) < 1 { invalidParams.Add(request.NewErrParamMinLen("Password", 1)) } @@ -3718,6 +4149,12 @@ func (s *UpdateHypervisorInput) SetHypervisorArn(v string) *UpdateHypervisorInpu return s } +// SetName sets the Name field's value. +func (s *UpdateHypervisorInput) SetName(v string) *UpdateHypervisorInput { + s.Name = &v + return s +} + // SetPassword sets the Password field's value. func (s *UpdateHypervisorInput) SetPassword(v string) *UpdateHypervisorInput { s.Password = &v @@ -3848,7 +4285,7 @@ type VirtualMachine struct { // The path of the virtual machine. Path *string `min:"1" type:"string"` - // The Amazon Resource Name (ARN) of the virtual machine. + // The Amazon Resource Name (ARN) of the virtual machine. For example, arn:aws:backup-gateway:us-west-1:0000000000000:vm/vm-0000ABCDEFGIJKL. ResourceArn *string `min:"50" type:"string"` } diff --git a/service/backupgateway/backupgatewayiface/interface.go b/service/backupgateway/backupgatewayiface/interface.go index 4ee65dcb2b..a580cb5e80 100644 --- a/service/backupgateway/backupgatewayiface/interface.go +++ b/service/backupgateway/backupgatewayiface/interface.go @@ -80,6 +80,10 @@ type BackupGatewayAPI interface { DisassociateGatewayFromServerWithContext(aws.Context, *backupgateway.DisassociateGatewayFromServerInput, ...request.Option) (*backupgateway.DisassociateGatewayFromServerOutput, error) DisassociateGatewayFromServerRequest(*backupgateway.DisassociateGatewayFromServerInput) (*request.Request, *backupgateway.DisassociateGatewayFromServerOutput) + GetGateway(*backupgateway.GetGatewayInput) (*backupgateway.GetGatewayOutput, error) + GetGatewayWithContext(aws.Context, *backupgateway.GetGatewayInput, ...request.Option) (*backupgateway.GetGatewayOutput, error) + GetGatewayRequest(*backupgateway.GetGatewayInput) (*request.Request, *backupgateway.GetGatewayOutput) + ImportHypervisorConfiguration(*backupgateway.ImportHypervisorConfigurationInput) (*backupgateway.ImportHypervisorConfigurationOutput, error) ImportHypervisorConfigurationWithContext(aws.Context, *backupgateway.ImportHypervisorConfigurationInput, ...request.Option) (*backupgateway.ImportHypervisorConfigurationOutput, error) ImportHypervisorConfigurationRequest(*backupgateway.ImportHypervisorConfigurationInput) (*request.Request, *backupgateway.ImportHypervisorConfigurationOutput) @@ -129,6 +133,10 @@ type BackupGatewayAPI interface { UpdateGatewayInformationWithContext(aws.Context, *backupgateway.UpdateGatewayInformationInput, ...request.Option) (*backupgateway.UpdateGatewayInformationOutput, error) UpdateGatewayInformationRequest(*backupgateway.UpdateGatewayInformationInput) (*request.Request, *backupgateway.UpdateGatewayInformationOutput) + UpdateGatewaySoftwareNow(*backupgateway.UpdateGatewaySoftwareNowInput) (*backupgateway.UpdateGatewaySoftwareNowOutput, error) + UpdateGatewaySoftwareNowWithContext(aws.Context, *backupgateway.UpdateGatewaySoftwareNowInput, ...request.Option) (*backupgateway.UpdateGatewaySoftwareNowOutput, error) + UpdateGatewaySoftwareNowRequest(*backupgateway.UpdateGatewaySoftwareNowInput) (*request.Request, *backupgateway.UpdateGatewaySoftwareNowOutput) + UpdateHypervisor(*backupgateway.UpdateHypervisorInput) (*backupgateway.UpdateHypervisorOutput, error) UpdateHypervisorWithContext(aws.Context, *backupgateway.UpdateHypervisorInput, ...request.Option) (*backupgateway.UpdateHypervisorOutput, error) UpdateHypervisorRequest(*backupgateway.UpdateHypervisorInput) (*request.Request, *backupgateway.UpdateHypervisorOutput) diff --git a/service/chimesdkmeetings/api.go b/service/chimesdkmeetings/api.go index a08ac31211..34e3deca59 100644 --- a/service/chimesdkmeetings/api.go +++ b/service/chimesdkmeetings/api.go @@ -91,10 +91,10 @@ func (c *ChimeSDKMeetings) BatchCreateAttendeeRequest(input *BatchCreateAttendee // The service is currently unavailable. // // * ServiceFailureException -// The service encountered an unexpected error. +// The service is currently unavailable. // // * ThrottlingException -// The number of customer requests exceeds the request rate limit. +// The number of requests exceeds the limit. // // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-meetings-2021-07-15/BatchCreateAttendee func (c *ChimeSDKMeetings) BatchCreateAttendee(input *BatchCreateAttendeeInput) (*BatchCreateAttendeeOutput, error) { @@ -118,6 +118,102 @@ func (c *ChimeSDKMeetings) BatchCreateAttendeeWithContext(ctx aws.Context, input return out, req.Send() } +const opBatchUpdateAttendeeCapabilitiesExcept = "BatchUpdateAttendeeCapabilitiesExcept" + +// BatchUpdateAttendeeCapabilitiesExceptRequest generates a "aws/request.Request" representing the +// client's request for the BatchUpdateAttendeeCapabilitiesExcept operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See BatchUpdateAttendeeCapabilitiesExcept for more information on using the BatchUpdateAttendeeCapabilitiesExcept +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the BatchUpdateAttendeeCapabilitiesExceptRequest method. +// req, resp := client.BatchUpdateAttendeeCapabilitiesExceptRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-meetings-2021-07-15/BatchUpdateAttendeeCapabilitiesExcept +func (c *ChimeSDKMeetings) BatchUpdateAttendeeCapabilitiesExceptRequest(input *BatchUpdateAttendeeCapabilitiesExceptInput) (req *request.Request, output *BatchUpdateAttendeeCapabilitiesExceptOutput) { + op := &request.Operation{ + Name: opBatchUpdateAttendeeCapabilitiesExcept, + HTTPMethod: "PUT", + HTTPPath: "/meetings/{MeetingId}/attendees/capabilities?operation=batch-update-except", + } + + if input == nil { + input = &BatchUpdateAttendeeCapabilitiesExceptInput{} + } + + output = &BatchUpdateAttendeeCapabilitiesExceptOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// BatchUpdateAttendeeCapabilitiesExcept API operation for Amazon Chime SDK Meetings. +// +// Updates AttendeeCapabilities except the capabilities listed in an ExcludedAttendeeIds +// table. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type 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 SDK Meetings's +// API operation BatchUpdateAttendeeCapabilitiesExcept for usage and error information. +// +// Returned Error Types: +// * BadRequestException +// The input parameters don't match the service's restrictions. +// +// * ConflictException +// Multiple instances of the same request have been made simultaneously. +// +// * UnauthorizedException +// The user isn't authorized to request a resource. +// +// * NotFoundException +// One or more of the resources in the request does not exist in the system. +// +// * ForbiddenException +// The client is permanently forbidden from making the request. +// +// * ServiceUnavailableException +// The service is currently unavailable. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-meetings-2021-07-15/BatchUpdateAttendeeCapabilitiesExcept +func (c *ChimeSDKMeetings) BatchUpdateAttendeeCapabilitiesExcept(input *BatchUpdateAttendeeCapabilitiesExceptInput) (*BatchUpdateAttendeeCapabilitiesExceptOutput, error) { + req, out := c.BatchUpdateAttendeeCapabilitiesExceptRequest(input) + return out, req.Send() +} + +// BatchUpdateAttendeeCapabilitiesExceptWithContext is the same as BatchUpdateAttendeeCapabilitiesExcept with the addition of +// the ability to pass a context and additional request options. +// +// See BatchUpdateAttendeeCapabilitiesExcept for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ChimeSDKMeetings) BatchUpdateAttendeeCapabilitiesExceptWithContext(ctx aws.Context, input *BatchUpdateAttendeeCapabilitiesExceptInput, opts ...request.Option) (*BatchUpdateAttendeeCapabilitiesExceptOutput, error) { + req, out := c.BatchUpdateAttendeeCapabilitiesExceptRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opCreateAttendee = "CreateAttendee" // CreateAttendeeRequest generates a "aws/request.Request" representing the @@ -197,10 +293,10 @@ func (c *ChimeSDKMeetings) CreateAttendeeRequest(input *CreateAttendeeInput) (re // The service is currently unavailable. // // * ServiceFailureException -// The service encountered an unexpected error. +// The service is currently unavailable. // // * ThrottlingException -// The number of customer requests exceeds the request rate limit. +// The number of requests exceeds the limit. // // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-meetings-2021-07-15/CreateAttendee func (c *ChimeSDKMeetings) CreateAttendee(input *CreateAttendeeInput) (*CreateAttendeeOutput, error) { @@ -293,10 +389,10 @@ func (c *ChimeSDKMeetings) CreateMeetingRequest(input *CreateMeetingInput) (req // The user isn't authorized to request a resource. // // * ThrottlingException -// The number of customer requests exceeds the request rate limit. +// The number of requests exceeds the limit. // // * ServiceFailureException -// The service encountered an unexpected error. +// The service is currently unavailable. // // * ServiceUnavailableException // The service is currently unavailable. @@ -395,10 +491,10 @@ func (c *ChimeSDKMeetings) CreateMeetingWithAttendeesRequest(input *CreateMeetin // The user isn't authorized to request a resource. // // * ThrottlingException -// The number of customer requests exceeds the request rate limit. +// The number of requests exceeds the limit. // // * ServiceFailureException -// The service encountered an unexpected error. +// The service is currently unavailable. // // * ServiceUnavailableException // The service is currently unavailable. @@ -503,10 +599,10 @@ func (c *ChimeSDKMeetings) DeleteAttendeeRequest(input *DeleteAttendeeInput) (re // The service is currently unavailable. // // * ServiceFailureException -// The service encountered an unexpected error. +// The service is currently unavailable. // // * ThrottlingException -// The number of customer requests exceeds the request rate limit. +// The number of requests exceeds the limit. // // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-meetings-2021-07-15/DeleteAttendee func (c *ChimeSDKMeetings) DeleteAttendee(input *DeleteAttendeeInput) (*DeleteAttendeeOutput, error) { @@ -605,10 +701,10 @@ func (c *ChimeSDKMeetings) DeleteMeetingRequest(input *DeleteMeetingInput) (req // The service is currently unavailable. // // * ServiceFailureException -// The service encountered an unexpected error. +// The service is currently unavailable. // // * ThrottlingException -// The number of customer requests exceeds the request rate limit. +// The number of requests exceeds the limit. // // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-meetings-2021-07-15/DeleteMeeting func (c *ChimeSDKMeetings) DeleteMeeting(input *DeleteMeetingInput) (*DeleteMeetingOutput, error) { @@ -705,10 +801,10 @@ func (c *ChimeSDKMeetings) GetAttendeeRequest(input *GetAttendeeInput) (req *req // The service is currently unavailable. // // * ServiceFailureException -// The service encountered an unexpected error. +// The service is currently unavailable. // // * ThrottlingException -// The number of customer requests exceeds the request rate limit. +// The number of requests exceeds the limit. // // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-meetings-2021-07-15/GetAttendee func (c *ChimeSDKMeetings) GetAttendee(input *GetAttendeeInput) (*GetAttendeeOutput, error) { @@ -805,10 +901,10 @@ func (c *ChimeSDKMeetings) GetMeetingRequest(input *GetMeetingInput) (req *reque // The service is currently unavailable. // // * ServiceFailureException -// The service encountered an unexpected error. +// The service is currently unavailable. // // * ThrottlingException -// The number of customer requests exceeds the request rate limit. +// The number of requests exceeds the limit. // // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-meetings-2021-07-15/GetMeeting func (c *ChimeSDKMeetings) GetMeeting(input *GetMeetingInput) (*GetMeetingOutput, error) { @@ -910,10 +1006,10 @@ func (c *ChimeSDKMeetings) ListAttendeesRequest(input *ListAttendeesInput) (req // The service is currently unavailable. // // * ServiceFailureException -// The service encountered an unexpected error. +// The service is currently unavailable. // // * ThrottlingException -// The number of customer requests exceeds the request rate limit. +// The number of requests exceeds the limit. // // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-meetings-2021-07-15/ListAttendees func (c *ChimeSDKMeetings) ListAttendees(input *ListAttendeesInput) (*ListAttendeesOutput, error) { @@ -1064,13 +1160,13 @@ func (c *ChimeSDKMeetings) StartMeetingTranscriptionRequest(input *StartMeetingT // errors. // // * ThrottlingException -// The number of customer requests exceeds the request rate limit. +// The number of requests exceeds the limit. // // * ServiceUnavailableException // The service is currently unavailable. // // * ServiceFailureException -// The service encountered an unexpected error. +// The service is currently unavailable. // // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-meetings-2021-07-15/StartMeetingTranscription func (c *ChimeSDKMeetings) StartMeetingTranscription(input *StartMeetingTranscriptionInput) (*StartMeetingTranscriptionOutput, error) { @@ -1166,13 +1262,13 @@ func (c *ChimeSDKMeetings) StopMeetingTranscriptionRequest(input *StopMeetingTra // errors. // // * ThrottlingException -// The number of customer requests exceeds the request rate limit. +// The number of requests exceeds the limit. // // * ServiceUnavailableException // The service is currently unavailable. // // * ServiceFailureException -// The service encountered an unexpected error. +// The service is currently unavailable. // // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-meetings-2021-07-15/StopMeetingTranscription func (c *ChimeSDKMeetings) StopMeetingTranscription(input *StopMeetingTranscriptionInput) (*StopMeetingTranscriptionOutput, error) { @@ -1196,6 +1292,100 @@ func (c *ChimeSDKMeetings) StopMeetingTranscriptionWithContext(ctx aws.Context, return out, req.Send() } +const opUpdateAttendeeCapabilities = "UpdateAttendeeCapabilities" + +// UpdateAttendeeCapabilitiesRequest generates a "aws/request.Request" representing the +// client's request for the UpdateAttendeeCapabilities operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdateAttendeeCapabilities for more information on using the UpdateAttendeeCapabilities +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the UpdateAttendeeCapabilitiesRequest method. +// req, resp := client.UpdateAttendeeCapabilitiesRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-meetings-2021-07-15/UpdateAttendeeCapabilities +func (c *ChimeSDKMeetings) UpdateAttendeeCapabilitiesRequest(input *UpdateAttendeeCapabilitiesInput) (req *request.Request, output *UpdateAttendeeCapabilitiesOutput) { + op := &request.Operation{ + Name: opUpdateAttendeeCapabilities, + HTTPMethod: "PUT", + HTTPPath: "/meetings/{MeetingId}/attendees/{AttendeeId}/capabilities", + } + + if input == nil { + input = &UpdateAttendeeCapabilitiesInput{} + } + + output = &UpdateAttendeeCapabilitiesOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateAttendeeCapabilities API operation for Amazon Chime SDK Meetings. +// +// The capabilties that you want to update. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Chime SDK Meetings's +// API operation UpdateAttendeeCapabilities for usage and error information. +// +// Returned Error Types: +// * BadRequestException +// The input parameters don't match the service's restrictions. +// +// * ConflictException +// Multiple instances of the same request have been made simultaneously. +// +// * UnauthorizedException +// The user isn't authorized to request a resource. +// +// * NotFoundException +// One or more of the resources in the request does not exist in the system. +// +// * ForbiddenException +// The client is permanently forbidden from making the request. +// +// * ServiceUnavailableException +// The service is currently unavailable. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-meetings-2021-07-15/UpdateAttendeeCapabilities +func (c *ChimeSDKMeetings) UpdateAttendeeCapabilities(input *UpdateAttendeeCapabilitiesInput) (*UpdateAttendeeCapabilitiesOutput, error) { + req, out := c.UpdateAttendeeCapabilitiesRequest(input) + return out, req.Send() +} + +// UpdateAttendeeCapabilitiesWithContext is the same as UpdateAttendeeCapabilities with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateAttendeeCapabilities for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ChimeSDKMeetings) UpdateAttendeeCapabilitiesWithContext(ctx aws.Context, input *UpdateAttendeeCapabilitiesInput, opts ...request.Option) (*UpdateAttendeeCapabilitiesOutput, error) { + req, out := c.UpdateAttendeeCapabilitiesRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + // An Amazon Chime SDK meeting attendee. Includes a unique AttendeeId and JoinToken. // The JoinToken allows a client to authenticate and join as the specified attendee. // The JoinToken expires when the meeting ends, or when DeleteAttendee is called. @@ -1210,6 +1400,9 @@ type Attendee struct { // The Amazon Chime SDK attendee ID. AttendeeId *string `type:"string"` + // The capabilities (audio, video, or content) assigned to an attendee. + Capabilities *AttendeeCapabilities `type:"structure"` + // The Amazon Chime SDK external user ID. An idempotency token. Links the attendee // to an identity managed by a builder application. // @@ -1250,6 +1443,12 @@ func (s *Attendee) SetAttendeeId(v string) *Attendee { return s } +// SetCapabilities sets the Capabilities field's value. +func (s *Attendee) SetCapabilities(v *AttendeeCapabilities) *Attendee { + s.Capabilities = v + return s +} + // SetExternalUserId sets the ExternalUserId field's value. func (s *Attendee) SetExternalUserId(v string) *Attendee { s.ExternalUserId = &v @@ -1262,6 +1461,128 @@ func (s *Attendee) SetJoinToken(v string) *Attendee { return s } +// The media capabilities of an attendee, including audio, video and content. +type AttendeeCapabilities struct { + _ struct{} `type:"structure"` + + // The audio capability assigned to an attendee. + // + // Audio is a required field + Audio *string `type:"string" required:"true" enum:"MediaCapabilities"` + + // The content capability assigned to an attendee. + // + // Content is a required field + Content *string `type:"string" required:"true" enum:"MediaCapabilities"` + + // The video capability assigned to an attendee. + // + // Video is a required field + Video *string `type:"string" required:"true" enum:"MediaCapabilities"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s AttendeeCapabilities) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s AttendeeCapabilities) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AttendeeCapabilities) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AttendeeCapabilities"} + if s.Audio == nil { + invalidParams.Add(request.NewErrParamRequired("Audio")) + } + if s.Content == nil { + invalidParams.Add(request.NewErrParamRequired("Content")) + } + if s.Video == nil { + invalidParams.Add(request.NewErrParamRequired("Video")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAudio sets the Audio field's value. +func (s *AttendeeCapabilities) SetAudio(v string) *AttendeeCapabilities { + s.Audio = &v + return s +} + +// SetContent sets the Content field's value. +func (s *AttendeeCapabilities) SetContent(v string) *AttendeeCapabilities { + s.Content = &v + return s +} + +// SetVideo sets the Video field's value. +func (s *AttendeeCapabilities) SetVideo(v string) *AttendeeCapabilities { + s.Video = &v + return s +} + +// A structure that contains one or more attendee IDs. +type AttendeeIdItem struct { + _ struct{} `type:"structure"` + + // A list of one or more attendee IDs. + // + // AttendeeId is a required field + AttendeeId *string `type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s AttendeeIdItem) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s AttendeeIdItem) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AttendeeIdItem) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AttendeeIdItem"} + if s.AttendeeId == nil { + invalidParams.Add(request.NewErrParamRequired("AttendeeId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAttendeeId sets the AttendeeId field's value. +func (s *AttendeeIdItem) SetAttendeeId(v string) *AttendeeIdItem { + s.AttendeeId = &v + return s +} + // An optional category of meeting features that contains audio-specific configurations, // such as operating parameters for Amazon Voice Focus. type AudioFeatures struct { @@ -1481,6 +1802,191 @@ func (s *BatchCreateAttendeeOutput) SetErrors(v []*CreateAttendeeError) *BatchCr return s } +type BatchUpdateAttendeeCapabilitiesExceptInput struct { + _ struct{} `type:"structure"` + + // The capabilities (audio, video, or content) that you want to update. + // + // Capabilities is a required field + Capabilities *AttendeeCapabilities `type:"structure" required:"true"` + + // The AttendeeIDs that you want to exclude from one or more capabilities. + // + // ExcludedAttendeeIds is a required field + ExcludedAttendeeIds []*AttendeeIdItem `min:"1" type:"list" required:"true"` + + // The ID of the meeting associated with the update request. + // + // MeetingId is a required field + MeetingId *string `location:"uri" locationName:"MeetingId" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s BatchUpdateAttendeeCapabilitiesExceptInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s BatchUpdateAttendeeCapabilitiesExceptInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *BatchUpdateAttendeeCapabilitiesExceptInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "BatchUpdateAttendeeCapabilitiesExceptInput"} + if s.Capabilities == nil { + invalidParams.Add(request.NewErrParamRequired("Capabilities")) + } + if s.ExcludedAttendeeIds == nil { + invalidParams.Add(request.NewErrParamRequired("ExcludedAttendeeIds")) + } + if s.ExcludedAttendeeIds != nil && len(s.ExcludedAttendeeIds) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ExcludedAttendeeIds", 1)) + } + if s.MeetingId == nil { + invalidParams.Add(request.NewErrParamRequired("MeetingId")) + } + if s.MeetingId != nil && len(*s.MeetingId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("MeetingId", 1)) + } + if s.Capabilities != nil { + if err := s.Capabilities.Validate(); err != nil { + invalidParams.AddNested("Capabilities", err.(request.ErrInvalidParams)) + } + } + if s.ExcludedAttendeeIds != nil { + for i, v := range s.ExcludedAttendeeIds { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ExcludedAttendeeIds", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetCapabilities sets the Capabilities field's value. +func (s *BatchUpdateAttendeeCapabilitiesExceptInput) SetCapabilities(v *AttendeeCapabilities) *BatchUpdateAttendeeCapabilitiesExceptInput { + s.Capabilities = v + return s +} + +// SetExcludedAttendeeIds sets the ExcludedAttendeeIds field's value. +func (s *BatchUpdateAttendeeCapabilitiesExceptInput) SetExcludedAttendeeIds(v []*AttendeeIdItem) *BatchUpdateAttendeeCapabilitiesExceptInput { + s.ExcludedAttendeeIds = v + return s +} + +// SetMeetingId sets the MeetingId field's value. +func (s *BatchUpdateAttendeeCapabilitiesExceptInput) SetMeetingId(v string) *BatchUpdateAttendeeCapabilitiesExceptInput { + s.MeetingId = &v + return s +} + +type BatchUpdateAttendeeCapabilitiesExceptOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s BatchUpdateAttendeeCapabilitiesExceptOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s BatchUpdateAttendeeCapabilitiesExceptOutput) GoString() string { + return s.String() +} + +// Multiple instances of the same request have been made simultaneously. +type ConflictException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + Code_ *string `locationName:"Code" type:"string"` + + Message_ *string `locationName:"Message" type:"string"` + + RequestId *string `type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ConflictException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ConflictException) GoString() string { + return s.String() +} + +func newErrorConflictException(v protocol.ResponseMetadata) error { + return &ConflictException{ + RespMetadata: v, + } +} + +// Code returns the exception type name. +func (s *ConflictException) Code() string { + return "ConflictException" +} + +// Message returns the exception's message. +func (s *ConflictException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *ConflictException) OrigErr() error { + return nil +} + +func (s *ConflictException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s *ConflictException) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *ConflictException) RequestID() string { + return s.RespMetadata.RequestID +} + // The list of errors returned when errors are encountered during the BatchCreateAttendee // and CreateAttendee actions. This includes external user IDs, error codes, // and error messages. @@ -1541,6 +2047,11 @@ func (s *CreateAttendeeError) SetExternalUserId(v string) *CreateAttendeeError { type CreateAttendeeInput struct { _ struct{} `type:"structure"` + // The capabilities (audio, video, or content) that you want to grant an attendee. + // If you don't specify capabilities, all users have send and receive capabilities + // on all media channels by default. + Capabilities *AttendeeCapabilities `type:"structure"` + // The Amazon Chime SDK external user ID. An idempotency token. Links the attendee // to an identity managed by a builder application. // @@ -1590,6 +2101,11 @@ func (s *CreateAttendeeInput) Validate() error { if s.MeetingId != nil && len(*s.MeetingId) < 1 { invalidParams.Add(request.NewErrParamMinLen("MeetingId", 1)) } + if s.Capabilities != nil { + if err := s.Capabilities.Validate(); err != nil { + invalidParams.AddNested("Capabilities", err.(request.ErrInvalidParams)) + } + } if invalidParams.Len() > 0 { return invalidParams @@ -1597,6 +2113,12 @@ func (s *CreateAttendeeInput) Validate() error { return nil } +// SetCapabilities sets the Capabilities field's value. +func (s *CreateAttendeeInput) SetCapabilities(v *AttendeeCapabilities) *CreateAttendeeInput { + s.Capabilities = v + return s +} + // SetExternalUserId sets the ExternalUserId field's value. func (s *CreateAttendeeInput) SetExternalUserId(v string) *CreateAttendeeInput { s.ExternalUserId = &v @@ -1645,6 +2167,9 @@ func (s *CreateAttendeeOutput) SetAttendee(v *Attendee) *CreateAttendeeOutput { type CreateAttendeeRequestItem struct { _ struct{} `type:"structure"` + // A list of one or more capabilities. + Capabilities *AttendeeCapabilities `type:"structure"` + // The Amazon Chime SDK external user ID. An idempotency token. Links the attendee // to an identity managed by a builder application. // @@ -1683,6 +2208,11 @@ func (s *CreateAttendeeRequestItem) Validate() error { if s.ExternalUserId != nil && len(*s.ExternalUserId) < 2 { invalidParams.Add(request.NewErrParamMinLen("ExternalUserId", 2)) } + if s.Capabilities != nil { + if err := s.Capabilities.Validate(); err != nil { + invalidParams.AddNested("Capabilities", err.(request.ErrInvalidParams)) + } + } if invalidParams.Len() > 0 { return invalidParams @@ -1690,6 +2220,12 @@ func (s *CreateAttendeeRequestItem) Validate() error { return nil } +// SetCapabilities sets the Capabilities field's value. +func (s *CreateAttendeeRequestItem) SetCapabilities(v *AttendeeCapabilities) *CreateAttendeeRequestItem { + s.Capabilities = v + return s +} + // SetExternalUserId sets the ExternalUserId field's value. func (s *CreateAttendeeRequestItem) SetExternalUserId(v string) *CreateAttendeeRequestItem { s.ExternalUserId = &v @@ -3209,7 +3745,7 @@ type NotFoundException struct { Message_ *string `locationName:"Message" type:"string"` - // The request id associated with the call responsible for the exception. + // The request ID associated with the call responsible for the exception. RequestId *string `type:"string"` } @@ -3351,7 +3887,7 @@ func (s *NotificationsConfiguration) SetSqsQueueArn(v string) *NotificationsConf return s } -// The service encountered an unexpected error. +// The service is currently unavailable. type ServiceFailureException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` @@ -3653,7 +4189,7 @@ func (s StopMeetingTranscriptionOutput) GoString() string { return s.String() } -// The number of customer requests exceeds the request rate limit. +// The number of requests exceeds the limit. type ThrottlingException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` @@ -3922,6 +4458,153 @@ func (s *UnprocessableEntityException) RequestID() string { return s.RespMetadata.RequestID } +type UpdateAttendeeCapabilitiesInput struct { + _ struct{} `type:"structure"` + + // The ID of the attendee associated with the update request. + // + // AttendeeId is a required field + AttendeeId *string `location:"uri" locationName:"AttendeeId" type:"string" required:"true"` + + // The capabilties that you want to update. + // + // Capabilities is a required field + Capabilities *AttendeeCapabilities `type:"structure" required:"true"` + + // The ID of the meeting associated with the update request. + // + // MeetingId is a required field + MeetingId *string `location:"uri" locationName:"MeetingId" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdateAttendeeCapabilitiesInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdateAttendeeCapabilitiesInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateAttendeeCapabilitiesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateAttendeeCapabilitiesInput"} + if s.AttendeeId == nil { + invalidParams.Add(request.NewErrParamRequired("AttendeeId")) + } + if s.AttendeeId != nil && len(*s.AttendeeId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AttendeeId", 1)) + } + if s.Capabilities == nil { + invalidParams.Add(request.NewErrParamRequired("Capabilities")) + } + if s.MeetingId == nil { + invalidParams.Add(request.NewErrParamRequired("MeetingId")) + } + if s.MeetingId != nil && len(*s.MeetingId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("MeetingId", 1)) + } + if s.Capabilities != nil { + if err := s.Capabilities.Validate(); err != nil { + invalidParams.AddNested("Capabilities", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAttendeeId sets the AttendeeId field's value. +func (s *UpdateAttendeeCapabilitiesInput) SetAttendeeId(v string) *UpdateAttendeeCapabilitiesInput { + s.AttendeeId = &v + return s +} + +// SetCapabilities sets the Capabilities field's value. +func (s *UpdateAttendeeCapabilitiesInput) SetCapabilities(v *AttendeeCapabilities) *UpdateAttendeeCapabilitiesInput { + s.Capabilities = v + return s +} + +// SetMeetingId sets the MeetingId field's value. +func (s *UpdateAttendeeCapabilitiesInput) SetMeetingId(v string) *UpdateAttendeeCapabilitiesInput { + s.MeetingId = &v + return s +} + +type UpdateAttendeeCapabilitiesOutput struct { + _ struct{} `type:"structure"` + + // An Amazon Chime SDK meeting attendee. Includes a unique AttendeeId and JoinToken. + // The JoinToken allows a client to authenticate and join as the specified attendee. + // The JoinToken expires when the meeting ends, or when DeleteAttendee is called. + // After that, the attendee is unable to join the meeting. + // + // We recommend securely transferring each JoinToken from your server application + // to the client so that no other client has access to the token except for + // the one authorized to represent the attendee. + Attendee *Attendee `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdateAttendeeCapabilitiesOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s UpdateAttendeeCapabilitiesOutput) GoString() string { + return s.String() +} + +// SetAttendee sets the Attendee field's value. +func (s *UpdateAttendeeCapabilitiesOutput) SetAttendee(v *Attendee) *UpdateAttendeeCapabilitiesOutput { + s.Attendee = v + return s +} + +const ( + // MediaCapabilitiesSendReceive is a MediaCapabilities enum value + MediaCapabilitiesSendReceive = "SendReceive" + + // MediaCapabilitiesSend is a MediaCapabilities enum value + MediaCapabilitiesSend = "Send" + + // MediaCapabilitiesReceive is a MediaCapabilities enum value + MediaCapabilitiesReceive = "Receive" + + // MediaCapabilitiesNone is a MediaCapabilities enum value + MediaCapabilitiesNone = "None" +) + +// MediaCapabilities_Values returns all elements of the MediaCapabilities enum +func MediaCapabilities_Values() []string { + return []string{ + MediaCapabilitiesSendReceive, + MediaCapabilitiesSend, + MediaCapabilitiesReceive, + MediaCapabilitiesNone, + } +} + const ( // MeetingFeatureStatusAvailable is a MeetingFeatureStatus enum value MeetingFeatureStatusAvailable = "AVAILABLE" diff --git a/service/chimesdkmeetings/chimesdkmeetingsiface/interface.go b/service/chimesdkmeetings/chimesdkmeetingsiface/interface.go index b7b16bf5bc..523ea0f994 100644 --- a/service/chimesdkmeetings/chimesdkmeetingsiface/interface.go +++ b/service/chimesdkmeetings/chimesdkmeetingsiface/interface.go @@ -64,6 +64,10 @@ type ChimeSDKMeetingsAPI interface { BatchCreateAttendeeWithContext(aws.Context, *chimesdkmeetings.BatchCreateAttendeeInput, ...request.Option) (*chimesdkmeetings.BatchCreateAttendeeOutput, error) BatchCreateAttendeeRequest(*chimesdkmeetings.BatchCreateAttendeeInput) (*request.Request, *chimesdkmeetings.BatchCreateAttendeeOutput) + BatchUpdateAttendeeCapabilitiesExcept(*chimesdkmeetings.BatchUpdateAttendeeCapabilitiesExceptInput) (*chimesdkmeetings.BatchUpdateAttendeeCapabilitiesExceptOutput, error) + BatchUpdateAttendeeCapabilitiesExceptWithContext(aws.Context, *chimesdkmeetings.BatchUpdateAttendeeCapabilitiesExceptInput, ...request.Option) (*chimesdkmeetings.BatchUpdateAttendeeCapabilitiesExceptOutput, error) + BatchUpdateAttendeeCapabilitiesExceptRequest(*chimesdkmeetings.BatchUpdateAttendeeCapabilitiesExceptInput) (*request.Request, *chimesdkmeetings.BatchUpdateAttendeeCapabilitiesExceptOutput) + CreateAttendee(*chimesdkmeetings.CreateAttendeeInput) (*chimesdkmeetings.CreateAttendeeOutput, error) CreateAttendeeWithContext(aws.Context, *chimesdkmeetings.CreateAttendeeInput, ...request.Option) (*chimesdkmeetings.CreateAttendeeOutput, error) CreateAttendeeRequest(*chimesdkmeetings.CreateAttendeeInput) (*request.Request, *chimesdkmeetings.CreateAttendeeOutput) @@ -106,6 +110,10 @@ type ChimeSDKMeetingsAPI interface { StopMeetingTranscription(*chimesdkmeetings.StopMeetingTranscriptionInput) (*chimesdkmeetings.StopMeetingTranscriptionOutput, error) StopMeetingTranscriptionWithContext(aws.Context, *chimesdkmeetings.StopMeetingTranscriptionInput, ...request.Option) (*chimesdkmeetings.StopMeetingTranscriptionOutput, error) StopMeetingTranscriptionRequest(*chimesdkmeetings.StopMeetingTranscriptionInput) (*request.Request, *chimesdkmeetings.StopMeetingTranscriptionOutput) + + UpdateAttendeeCapabilities(*chimesdkmeetings.UpdateAttendeeCapabilitiesInput) (*chimesdkmeetings.UpdateAttendeeCapabilitiesOutput, error) + UpdateAttendeeCapabilitiesWithContext(aws.Context, *chimesdkmeetings.UpdateAttendeeCapabilitiesInput, ...request.Option) (*chimesdkmeetings.UpdateAttendeeCapabilitiesOutput, error) + UpdateAttendeeCapabilitiesRequest(*chimesdkmeetings.UpdateAttendeeCapabilitiesInput) (*request.Request, *chimesdkmeetings.UpdateAttendeeCapabilitiesOutput) } var _ ChimeSDKMeetingsAPI = (*chimesdkmeetings.ChimeSDKMeetings)(nil) diff --git a/service/chimesdkmeetings/errors.go b/service/chimesdkmeetings/errors.go index f5563b8b28..05b979a169 100644 --- a/service/chimesdkmeetings/errors.go +++ b/service/chimesdkmeetings/errors.go @@ -14,6 +14,12 @@ const ( // The input parameters don't match the service's restrictions. ErrCodeBadRequestException = "BadRequestException" + // ErrCodeConflictException for service response error code + // "ConflictException". + // + // Multiple instances of the same request have been made simultaneously. + ErrCodeConflictException = "ConflictException" + // ErrCodeForbiddenException for service response error code // "ForbiddenException". // @@ -35,7 +41,7 @@ const ( // ErrCodeServiceFailureException for service response error code // "ServiceFailureException". // - // The service encountered an unexpected error. + // The service is currently unavailable. ErrCodeServiceFailureException = "ServiceFailureException" // ErrCodeServiceUnavailableException for service response error code @@ -47,7 +53,7 @@ const ( // ErrCodeThrottlingException for service response error code // "ThrottlingException". // - // The number of customer requests exceeds the request rate limit. + // The number of requests exceeds the limit. ErrCodeThrottlingException = "ThrottlingException" // ErrCodeUnauthorizedException for service response error code @@ -66,6 +72,7 @@ const ( var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ "BadRequestException": newErrorBadRequestException, + "ConflictException": newErrorConflictException, "ForbiddenException": newErrorForbiddenException, "LimitExceededException": newErrorLimitExceededException, "NotFoundException": newErrorNotFoundException, diff --git a/service/forecastservice/api.go b/service/forecastservice/api.go index 84de96d33c..8dabe5716b 100644 --- a/service/forecastservice/api.go +++ b/service/forecastservice/api.go @@ -413,9 +413,10 @@ func (c *ForecastService) CreateDatasetImportJobRequest(input *CreateDatasetImpo // copy of your data and processes it in an internal AWS system. For more information, // see Set up permissions (https://docs.aws.amazon.com/forecast/latest/dg/aws-forecast-iam-roles.html). // -// The training data must be in CSV format. The delimiter must be a comma (,). +// The training data must be in CSV or Parquet format. The delimiter must be +// a comma (,). // -// You can specify the path to a specific CSV file, the S3 bucket, or to a folder +// You can specify the path to a specific file, the S3 bucket, or to a folder // in the S3 bucket. For the latter two cases, Amazon Forecast imports all files // up to the limit of 10,000 files. // @@ -809,6 +810,13 @@ func (c *ForecastService) CreateForecastRequest(input *CreateForecastInput) (req // The Status of the forecast must be ACTIVE before you can query or export // the forecast. Use the DescribeForecast operation to get the status. // +// By default, a forecast includes predictions for every item (item_id) in the +// dataset group that was used to train the predictor. However, you can use +// the TimeSeriesSelector object to generate a forecast on a subset of time +// series. Forecast creation is skipped for any time series that you specify +// that are not in the input dataset. The forecast export file will not contain +// these time series or their forecasted values. +// // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. @@ -1253,8 +1261,8 @@ func (c *ForecastService) CreatePredictorBacktestExportJobRequest(input *CreateP // CreatePredictorBacktestExportJob API operation for Amazon Forecast Service. // // Exports backtest forecasts and accuracy metrics generated by the CreateAutoPredictor -// or CreatePredictor operations. Two folders containing CSV files are exported -// to your specified S3 bucket. +// or CreatePredictor operations. Two folders containing CSV or Parquet files +// are exported to your specified S3 bucket. // // The export file names will match the following conventions: // @@ -6701,6 +6709,9 @@ type CreateDatasetImportJobInput struct { // DatasetImportJobName is a required field DatasetImportJobName *string `min:"1" type:"string" required:"true"` + // The format of the imported data, CSV or PARQUET. The default value is CSV. + Format *string `type:"string"` + // The format of the geolocation attribute. The geolocation attribute can be // formatted in one of two ways: // @@ -6841,6 +6852,12 @@ func (s *CreateDatasetImportJobInput) SetDatasetImportJobName(v string) *CreateD return s } +// SetFormat sets the Format field's value. +func (s *CreateDatasetImportJobInput) SetFormat(v string) *CreateDatasetImportJobInput { + s.Format = &v + return s +} + // SetGeolocationFormat sets the GeolocationFormat field's value. func (s *CreateDatasetImportJobInput) SetGeolocationFormat(v string) *CreateDatasetImportJobInput { s.GeolocationFormat = &v @@ -7142,6 +7159,9 @@ type CreateExplainabilityExportInput struct { // ExplainabilityExportName is a required field ExplainabilityExportName *string `min:"1" type:"string" required:"true"` + // The format of the exported data, CSV or PARQUET. + Format *string `type:"string"` + // Optional metadata to help you categorize and organize your resources. Each // tag consists of a key and an optional value, both of which you define. Tag // keys and values are case sensitive. @@ -7244,6 +7264,12 @@ func (s *CreateExplainabilityExportInput) SetExplainabilityExportName(v string) return s } +// SetFormat sets the Format field's value. +func (s *CreateExplainabilityExportInput) SetFormat(v string) *CreateExplainabilityExportInput { + s.Format = &v + return s +} + // SetTags sets the Tags field's value. func (s *CreateExplainabilityExportInput) SetTags(v []*Tag) *CreateExplainabilityExportInput { s.Tags = v @@ -7527,6 +7553,9 @@ type CreateForecastExportJobInput struct { // ForecastExportJobName is a required field ForecastExportJobName *string `min:"1" type:"string" required:"true"` + // The format of the exported data, CSV or PARQUET. The default value is CSV. + Format *string `type:"string"` + // The optional metadata that you apply to the forecast export job to help you // categorize and organize them. Each tag consists of a key and an optional // value, both of which you define. @@ -7632,6 +7661,12 @@ func (s *CreateForecastExportJobInput) SetForecastExportJobName(v string) *Creat return s } +// SetFormat sets the Format field's value. +func (s *CreateForecastExportJobInput) SetFormat(v string) *CreateForecastExportJobInput { + s.Format = &v + return s +} + // SetTags sets the Tags field's value. func (s *CreateForecastExportJobInput) SetTags(v []*Tag) *CreateForecastExportJobInput { s.Tags = v @@ -7722,6 +7757,18 @@ type CreateForecastInput struct { // with only the key prefix of aws do not count against your tags per resource // limit. Tags []*Tag `type:"list"` + + // Defines the set of time series that are used to create the forecasts in a + // TimeSeriesIdentifiers object. + // + // The TimeSeriesIdentifiers object needs the following information: + // + // * DataSource + // + // * Format + // + // * Schema + TimeSeriesSelector *TimeSeriesSelector `type:"structure"` } // String returns the string representation. @@ -7767,6 +7814,11 @@ func (s *CreateForecastInput) Validate() error { } } } + if s.TimeSeriesSelector != nil { + if err := s.TimeSeriesSelector.Validate(); err != nil { + invalidParams.AddNested("TimeSeriesSelector", err.(request.ErrInvalidParams)) + } + } if invalidParams.Len() > 0 { return invalidParams @@ -7798,6 +7850,12 @@ func (s *CreateForecastInput) SetTags(v []*Tag) *CreateForecastInput { return s } +// SetTimeSeriesSelector sets the TimeSeriesSelector field's value. +func (s *CreateForecastInput) SetTimeSeriesSelector(v *TimeSeriesSelector) *CreateForecastInput { + s.TimeSeriesSelector = v + return s +} + type CreateForecastOutput struct { _ struct{} `type:"structure"` @@ -7953,6 +8011,9 @@ type CreatePredictorBacktestExportJobInput struct { // Destination is a required field Destination *DataDestination `type:"structure" required:"true"` + // The format of the exported data, CSV or PARQUET. The default value is CSV. + Format *string `type:"string"` + // The Amazon Resource Name (ARN) of the predictor that you want to export. // // PredictorArn is a required field @@ -8053,6 +8114,12 @@ func (s *CreatePredictorBacktestExportJobInput) SetDestination(v *DataDestinatio return s } +// SetFormat sets the Format field's value. +func (s *CreatePredictorBacktestExportJobInput) SetFormat(v string) *CreatePredictorBacktestExportJobInput { + s.Format = &v + return s +} + // SetPredictorArn sets the PredictorArn field's value. func (s *CreatePredictorBacktestExportJobInput) SetPredictorArn(v string) *CreatePredictorBacktestExportJobInput { s.PredictorArn = &v @@ -10169,6 +10236,9 @@ type DescribeDatasetImportJobOutput struct { // Statistical information about each field in the input data. FieldStatistics map[string]*Statistics `type:"map"` + // The format of the imported data, CSV or PARQUET. + Format *string `type:"string"` + // The format of the geolocation attribute. Valid Values:"LAT_LONG" and "CC_POSTALCODE". GeolocationFormat *string `type:"string"` @@ -10283,6 +10353,12 @@ func (s *DescribeDatasetImportJobOutput) SetFieldStatistics(v map[string]*Statis return s } +// SetFormat sets the Format field's value. +func (s *DescribeDatasetImportJobOutput) SetFormat(v string) *DescribeDatasetImportJobOutput { + s.Format = &v + return s +} + // SetGeolocationFormat sets the GeolocationFormat field's value. func (s *DescribeDatasetImportJobOutput) SetGeolocationFormat(v string) *DescribeDatasetImportJobOutput { s.GeolocationFormat = &v @@ -10568,7 +10644,7 @@ type DescribeExplainabilityExportOutput struct { // and an AWS Key Management Service (KMS) key (optional). Destination *DataDestination `type:"structure"` - // The Amazon Resource Name (ARN) of the Explainability. + // The Amazon Resource Name (ARN) of the Explainability export. ExplainabilityArn *string `type:"string"` // The Amazon Resource Name (ARN) of the Explainability export. @@ -10577,6 +10653,9 @@ type DescribeExplainabilityExportOutput struct { // The name of the Explainability export. ExplainabilityExportName *string `min:"1" type:"string"` + // The format of the exported data, CSV or PARQUET. + Format *string `type:"string"` + // The last time the resource was modified. The timestamp depends on the status // of the job: // @@ -10654,6 +10733,12 @@ func (s *DescribeExplainabilityExportOutput) SetExplainabilityExportName(v strin return s } +// SetFormat sets the Format field's value. +func (s *DescribeExplainabilityExportOutput) SetFormat(v string) *DescribeExplainabilityExportOutput { + s.Format = &v + return s +} + // SetLastModificationTime sets the LastModificationTime field's value. func (s *DescribeExplainabilityExportOutput) SetLastModificationTime(v time.Time) *DescribeExplainabilityExportOutput { s.LastModificationTime = &v @@ -10955,6 +11040,9 @@ type DescribeForecastExportJobOutput struct { // The name of the forecast export job. ForecastExportJobName *string `min:"1" type:"string"` + // The format of the exported data, CSV or PARQUET. + Format *string `type:"string"` + // The last time the resource was modified. The timestamp depends on the status // of the job: // @@ -11035,6 +11123,12 @@ func (s *DescribeForecastExportJobOutput) SetForecastExportJobName(v string) *De return s } +// SetFormat sets the Format field's value. +func (s *DescribeForecastExportJobOutput) SetFormat(v string) *DescribeForecastExportJobOutput { + s.Format = &v + return s +} + // SetLastModificationTime sets the LastModificationTime field's value. func (s *DescribeForecastExportJobOutput) SetLastModificationTime(v time.Time) *DescribeForecastExportJobOutput { s.LastModificationTime = &v @@ -11153,6 +11247,9 @@ type DescribeForecastOutput struct { // The Status of the forecast must be ACTIVE before you can query or export // the forecast. Status *string `type:"string"` + + // The time series to include in the forecast. + TimeSeriesSelector *TimeSeriesSelector `type:"structure"` } // String returns the string representation. @@ -11233,6 +11330,12 @@ func (s *DescribeForecastOutput) SetStatus(v string) *DescribeForecastOutput { return s } +// SetTimeSeriesSelector sets the TimeSeriesSelector field's value. +func (s *DescribeForecastOutput) SetTimeSeriesSelector(v *TimeSeriesSelector) *DescribeForecastOutput { + s.TimeSeriesSelector = v + return s +} + type DescribeMonitorInput struct { _ struct{} `type:"structure"` @@ -11459,6 +11562,9 @@ type DescribePredictorBacktestExportJobOutput struct { // and an AWS Key Management Service (KMS) key (optional). Destination *DataDestination `type:"structure"` + // The format of the exported data, CSV or PARQUET. + Format *string `type:"string"` + // The last time the resource was modified. The timestamp depends on the status // of the job: // @@ -11527,6 +11633,12 @@ func (s *DescribePredictorBacktestExportJobOutput) SetDestination(v *DataDestina return s } +// SetFormat sets the Format field's value. +func (s *DescribePredictorBacktestExportJobOutput) SetFormat(v string) *DescribePredictorBacktestExportJobOutput { + s.Format = &v + return s +} + // SetLastModificationTime sets the LastModificationTime field's value. func (s *DescribePredictorBacktestExportJobOutput) SetLastModificationTime(v time.Time) *DescribePredictorBacktestExportJobOutput { s.LastModificationTime = &v @@ -12149,8 +12261,8 @@ type ExplainabilityConfig struct { // To create an Explainability for specific time series in your datasets, use // SPECIFIC. // - // Specify time series by uploading a CSV file to an Amazon S3 bucket and set - // the location within the DataDestination data type. + // Specify time series by uploading a CSV or Parquet file to an Amazon S3 bucket + // and set the location within the DataDestination data type. // // TimeSeriesGranularity is a required field TimeSeriesGranularity *string `type:"string" required:"true" enum:"TimeSeriesGranularity"` @@ -17481,6 +17593,136 @@ func (s *TimeAlignmentBoundary) SetMonth(v string) *TimeAlignmentBoundary { return s } +// Details about the import file that contains the time series for which you +// want to create forecasts. +type TimeSeriesIdentifiers struct { + _ struct{} `type:"structure"` + + // The source of your data, an AWS Identity and Access Management (IAM) role + // that allows Amazon Forecast to access the data and, optionally, an AWS Key + // Management Service (KMS) key. + DataSource *DataSource `type:"structure"` + + // The format of the data, either CSV or PARQUET. + Format *string `type:"string"` + + // Defines the fields of a dataset. + Schema *Schema `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s TimeSeriesIdentifiers) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s TimeSeriesIdentifiers) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *TimeSeriesIdentifiers) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "TimeSeriesIdentifiers"} + if s.DataSource != nil { + if err := s.DataSource.Validate(); err != nil { + invalidParams.AddNested("DataSource", err.(request.ErrInvalidParams)) + } + } + if s.Schema != nil { + if err := s.Schema.Validate(); err != nil { + invalidParams.AddNested("Schema", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDataSource sets the DataSource field's value. +func (s *TimeSeriesIdentifiers) SetDataSource(v *DataSource) *TimeSeriesIdentifiers { + s.DataSource = v + return s +} + +// SetFormat sets the Format field's value. +func (s *TimeSeriesIdentifiers) SetFormat(v string) *TimeSeriesIdentifiers { + s.Format = &v + return s +} + +// SetSchema sets the Schema field's value. +func (s *TimeSeriesIdentifiers) SetSchema(v *Schema) *TimeSeriesIdentifiers { + s.Schema = v + return s +} + +// Defines the set of time series that are used to create the forecasts in a +// TimeSeriesIdentifiers object. +// +// The TimeSeriesIdentifiers object needs the following information: +// +// * DataSource +// +// * Format +// +// * Schema +type TimeSeriesSelector struct { + _ struct{} `type:"structure"` + + // Details about the import file that contains the time series for which you + // want to create forecasts. + TimeSeriesIdentifiers *TimeSeriesIdentifiers `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s TimeSeriesSelector) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s TimeSeriesSelector) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *TimeSeriesSelector) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "TimeSeriesSelector"} + if s.TimeSeriesIdentifiers != nil { + if err := s.TimeSeriesIdentifiers.Validate(); err != nil { + invalidParams.AddNested("TimeSeriesIdentifiers", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetTimeSeriesIdentifiers sets the TimeSeriesIdentifiers field's value. +func (s *TimeSeriesSelector) SetTimeSeriesIdentifiers(v *TimeSeriesIdentifiers) *TimeSeriesSelector { + s.TimeSeriesIdentifiers = v + return s +} + type UntagResourceInput struct { _ struct{} `type:"structure"` diff --git a/service/route53/api.go b/service/route53/api.go index a690f5f74d..8d1559c578 100644 --- a/service/route53/api.go +++ b/service/route53/api.go @@ -228,15 +228,10 @@ func (c *Route53) AssociateVPCWithHostedZoneRequest(input *AssociateVPCWithHoste // is already associated with another hosted zone that has the same name. // // * ErrCodeLimitsExceeded "LimitsExceeded" -// This operation can't be completed either because the current account has -// reached the limit on reusable delegation sets that it can create or because -// you've reached the limit on the number of Amazon VPCs that you can associate -// with a private hosted zone. To get the current limit on the number of reusable -// delegation sets, see GetAccountLimit (https://docs.aws.amazon.com/Route53/latest/APIReference/API_GetAccountLimit.html). -// To get the current limit on the number of Amazon VPCs that you can associate -// with a private hosted zone, see GetHostedZoneLimit (https://docs.aws.amazon.com/Route53/latest/APIReference/API_GetHostedZoneLimit.html). -// To request a higher limit, create a case (http://aws.amazon.com/route53-request) -// with the Amazon Web Services Support Center. +// This operation can't be completed because the current account has reached +// the limit on the resource you are trying to create. To request a higher limit, +// create a case (http://aws.amazon.com/route53-request) with the Amazon Web +// Services Support Center. // // * ErrCodePriorRequestNotComplete "PriorRequestNotComplete" // If Amazon Route 53 can't process a request before the next request arrives, @@ -267,6 +262,123 @@ func (c *Route53) AssociateVPCWithHostedZoneWithContext(ctx aws.Context, input * return out, req.Send() } +const opChangeCidrCollection = "ChangeCidrCollection" + +// ChangeCidrCollectionRequest generates a "aws/request.Request" representing the +// client's request for the ChangeCidrCollection operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ChangeCidrCollection for more information on using the ChangeCidrCollection +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the ChangeCidrCollectionRequest method. +// req, resp := client.ChangeCidrCollectionRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/ChangeCidrCollection +func (c *Route53) ChangeCidrCollectionRequest(input *ChangeCidrCollectionInput) (req *request.Request, output *ChangeCidrCollectionOutput) { + op := &request.Operation{ + Name: opChangeCidrCollection, + HTTPMethod: "POST", + HTTPPath: "/2013-04-01/cidrcollection/{CidrCollectionId}", + } + + if input == nil { + input = &ChangeCidrCollectionInput{} + } + + output = &ChangeCidrCollectionOutput{} + req = c.newRequest(op, input, output) + return +} + +// ChangeCidrCollection API operation for Amazon Route 53. +// +// Creates, changes, or deletes CIDR blocks within a collection. Contains authoritative +// IP information mapping blocks to one or multiple locations. +// +// A change request can update multiple locations in a collection at a time, +// which is helpful if you want to move one or more CIDR blocks from one location +// to another in one transaction, without downtime. +// +// Limits +// +// The max number of CIDR blocks included in the request is 1000. As a result, +// big updates require multiple API calls. +// +// PUT and DELETE_IF_EXISTS +// +// Use ChangeCidrCollection to perform the following actions: +// +// * PUT: Create a CIDR block within the specified collection. +// +// * DELETE_IF_EXISTS: Delete an existing CIDR block from the collection. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Route 53's +// API operation ChangeCidrCollection for usage and error information. +// +// Returned Error Codes: +// * ErrCodeNoSuchCidrCollectionException "NoSuchCidrCollectionException" +// The CIDR collection you specified, doesn't exist. +// +// * ErrCodeCidrCollectionVersionMismatchException "CidrCollectionVersionMismatchException" +// The CIDR collection version you provided, doesn't match the one in the ListCidrCollections +// operation. +// +// * ErrCodeInvalidInput "InvalidInput" +// The input is not valid. +// +// * ErrCodeCidrBlockInUseException "CidrBlockInUseException" +// This CIDR block is already in use. +// +// * ErrCodeLimitsExceeded "LimitsExceeded" +// This operation can't be completed because the current account has reached +// the limit on the resource you are trying to create. To request a higher limit, +// create a case (http://aws.amazon.com/route53-request) with the Amazon Web +// Services Support Center. +// +// * ErrCodeConcurrentModification "ConcurrentModification" +// Another user submitted a request to create, update, or delete the object +// at the same time that you did. Retry the request. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/ChangeCidrCollection +func (c *Route53) ChangeCidrCollection(input *ChangeCidrCollectionInput) (*ChangeCidrCollectionOutput, error) { + req, out := c.ChangeCidrCollectionRequest(input) + return out, req.Send() +} + +// ChangeCidrCollectionWithContext is the same as ChangeCidrCollection with the addition of +// the ability to pass a context and additional request options. +// +// See ChangeCidrCollection for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Route53) ChangeCidrCollectionWithContext(ctx aws.Context, input *ChangeCidrCollectionInput, opts ...request.Option) (*ChangeCidrCollectionOutput, error) { + req, out := c.ChangeCidrCollectionRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opChangeResourceRecordSets = "ChangeResourceRecordSets" // ChangeResourceRecordSetsRequest generates a "aws/request.Request" representing the @@ -543,6 +655,99 @@ func (c *Route53) ChangeTagsForResourceWithContext(ctx aws.Context, input *Chang return out, req.Send() } +const opCreateCidrCollection = "CreateCidrCollection" + +// CreateCidrCollectionRequest generates a "aws/request.Request" representing the +// client's request for the CreateCidrCollection operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See CreateCidrCollection for more information on using the CreateCidrCollection +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the CreateCidrCollectionRequest method. +// req, resp := client.CreateCidrCollectionRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/CreateCidrCollection +func (c *Route53) CreateCidrCollectionRequest(input *CreateCidrCollectionInput) (req *request.Request, output *CreateCidrCollectionOutput) { + op := &request.Operation{ + Name: opCreateCidrCollection, + HTTPMethod: "POST", + HTTPPath: "/2013-04-01/cidrcollection", + } + + if input == nil { + input = &CreateCidrCollectionInput{} + } + + output = &CreateCidrCollectionOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateCidrCollection API operation for Amazon Route 53. +// +// Creates a CIDR collection in the current Amazon Web Services account. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Route 53's +// API operation CreateCidrCollection for usage and error information. +// +// Returned Error Codes: +// * ErrCodeLimitsExceeded "LimitsExceeded" +// This operation can't be completed because the current account has reached +// the limit on the resource you are trying to create. To request a higher limit, +// create a case (http://aws.amazon.com/route53-request) with the Amazon Web +// Services Support Center. +// +// * ErrCodeInvalidInput "InvalidInput" +// The input is not valid. +// +// * ErrCodeCidrCollectionAlreadyExistsException "CidrCollectionAlreadyExistsException" +// A CIDR collection with this name and a different caller reference already +// exists in this account. +// +// * ErrCodeConcurrentModification "ConcurrentModification" +// Another user submitted a request to create, update, or delete the object +// at the same time that you did. Retry the request. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/CreateCidrCollection +func (c *Route53) CreateCidrCollection(input *CreateCidrCollectionInput) (*CreateCidrCollectionOutput, error) { + req, out := c.CreateCidrCollectionRequest(input) + return out, req.Send() +} + +// CreateCidrCollectionWithContext is the same as CreateCidrCollection with the addition of +// the ability to pass a context and additional request options. +// +// See CreateCidrCollection for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Route53) CreateCidrCollectionWithContext(ctx aws.Context, input *CreateCidrCollectionInput, opts ...request.Option) (*CreateCidrCollectionOutput, error) { + req, out := c.CreateCidrCollectionRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opCreateHealthCheck = "CreateHealthCheck" // CreateHealthCheckRequest generates a "aws/request.Request" representing the @@ -1323,15 +1528,10 @@ func (c *Route53) CreateReusableDelegationSetRequest(input *CreateReusableDelega // already been created. // // * ErrCodeLimitsExceeded "LimitsExceeded" -// This operation can't be completed either because the current account has -// reached the limit on reusable delegation sets that it can create or because -// you've reached the limit on the number of Amazon VPCs that you can associate -// with a private hosted zone. To get the current limit on the number of reusable -// delegation sets, see GetAccountLimit (https://docs.aws.amazon.com/Route53/latest/APIReference/API_GetAccountLimit.html). -// To get the current limit on the number of Amazon VPCs that you can associate -// with a private hosted zone, see GetHostedZoneLimit (https://docs.aws.amazon.com/Route53/latest/APIReference/API_GetHostedZoneLimit.html). -// To request a higher limit, create a case (http://aws.amazon.com/route53-request) -// with the Amazon Web Services Support Center. +// This operation can't be completed because the current account has reached +// the limit on the resource you are trying to create. To request a higher limit, +// create a case (http://aws.amazon.com/route53-request) with the Amazon Web +// Services Support Center. // // * ErrCodeHostedZoneNotFound "HostedZoneNotFound" // The specified HostedZone can't be found. @@ -1896,6 +2096,97 @@ func (c *Route53) DeactivateKeySigningKeyWithContext(ctx aws.Context, input *Dea return out, req.Send() } +const opDeleteCidrCollection = "DeleteCidrCollection" + +// DeleteCidrCollectionRequest generates a "aws/request.Request" representing the +// client's request for the DeleteCidrCollection operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DeleteCidrCollection for more information on using the DeleteCidrCollection +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DeleteCidrCollectionRequest method. +// req, resp := client.DeleteCidrCollectionRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/DeleteCidrCollection +func (c *Route53) DeleteCidrCollectionRequest(input *DeleteCidrCollectionInput) (req *request.Request, output *DeleteCidrCollectionOutput) { + op := &request.Operation{ + Name: opDeleteCidrCollection, + HTTPMethod: "DELETE", + HTTPPath: "/2013-04-01/cidrcollection/{CidrCollectionId}", + } + + if input == nil { + input = &DeleteCidrCollectionInput{} + } + + output = &DeleteCidrCollectionOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restxml.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// DeleteCidrCollection API operation for Amazon Route 53. +// +// Deletes a CIDR collection in the current Amazon Web Services account. The +// collection must be empty before it can be deleted. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Route 53's +// API operation DeleteCidrCollection for usage and error information. +// +// Returned Error Codes: +// * ErrCodeNoSuchCidrCollectionException "NoSuchCidrCollectionException" +// The CIDR collection you specified, doesn't exist. +// +// * ErrCodeCidrCollectionInUseException "CidrCollectionInUseException" +// This CIDR collection is in use, and isn't empty. +// +// * ErrCodeInvalidInput "InvalidInput" +// The input is not valid. +// +// * ErrCodeConcurrentModification "ConcurrentModification" +// Another user submitted a request to create, update, or delete the object +// at the same time that you did. Retry the request. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/DeleteCidrCollection +func (c *Route53) DeleteCidrCollection(input *DeleteCidrCollectionInput) (*DeleteCidrCollectionOutput, error) { + req, out := c.DeleteCidrCollectionRequest(input) + return out, req.Send() +} + +// DeleteCidrCollectionWithContext is the same as DeleteCidrCollection with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteCidrCollection for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Route53) DeleteCidrCollectionWithContext(ctx aws.Context, input *DeleteCidrCollectionInput, opts ...request.Option) (*DeleteCidrCollectionOutput, error) { + req, out := c.DeleteCidrCollectionRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opDeleteHealthCheck = "DeleteHealthCheck" // DeleteHealthCheckRequest generates a "aws/request.Request" representing the @@ -4608,223 +4899,272 @@ func (c *Route53) GetTrafficPolicyInstanceCountWithContext(ctx aws.Context, inpu return out, req.Send() } -const opListGeoLocations = "ListGeoLocations" +const opListCidrBlocks = "ListCidrBlocks" -// ListGeoLocationsRequest generates a "aws/request.Request" representing the -// client's request for the ListGeoLocations operation. The "output" return +// ListCidrBlocksRequest generates a "aws/request.Request" representing the +// client's request for the ListCidrBlocks operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See ListGeoLocations for more information on using the ListGeoLocations +// See ListCidrBlocks for more information on using the ListCidrBlocks // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the ListGeoLocationsRequest method. -// req, resp := client.ListGeoLocationsRequest(params) +// // Example sending a request using the ListCidrBlocksRequest method. +// req, resp := client.ListCidrBlocksRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/ListGeoLocations -func (c *Route53) ListGeoLocationsRequest(input *ListGeoLocationsInput) (req *request.Request, output *ListGeoLocationsOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/ListCidrBlocks +func (c *Route53) ListCidrBlocksRequest(input *ListCidrBlocksInput) (req *request.Request, output *ListCidrBlocksOutput) { op := &request.Operation{ - Name: opListGeoLocations, + Name: opListCidrBlocks, HTTPMethod: "GET", - HTTPPath: "/2013-04-01/geolocations", + HTTPPath: "/2013-04-01/cidrcollection/{CidrCollectionId}/cidrblocks", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, } if input == nil { - input = &ListGeoLocationsInput{} + input = &ListCidrBlocksInput{} } - output = &ListGeoLocationsOutput{} + output = &ListCidrBlocksOutput{} req = c.newRequest(op, input, output) return } -// ListGeoLocations API operation for Amazon Route 53. -// -// Retrieves a list of supported geographic locations. -// -// Countries are listed first, and continents are listed last. If Amazon Route -// 53 supports subdivisions for a country (for example, states or provinces), -// the subdivisions for that country are listed in alphabetical order immediately -// after the corresponding country. -// -// Route 53 does not perform authorization for this API because it retrieves -// information that is already available to the public. +// ListCidrBlocks API operation for Amazon Route 53. // -// For a list of supported geolocation codes, see the GeoLocation (https://docs.aws.amazon.com/Route53/latest/APIReference/API_GeoLocation.html) -// data type. +// Returns a paginated list of location objects and their CIDR blocks. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Route 53's -// API operation ListGeoLocations for usage and error information. +// API operation ListCidrBlocks for usage and error information. // // Returned Error Codes: +// * ErrCodeNoSuchCidrCollectionException "NoSuchCidrCollectionException" +// The CIDR collection you specified, doesn't exist. +// +// * ErrCodeNoSuchCidrLocationException "NoSuchCidrLocationException" +// The CIDR collection location doesn't match any locations in your account. +// // * ErrCodeInvalidInput "InvalidInput" // The input is not valid. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/ListGeoLocations -func (c *Route53) ListGeoLocations(input *ListGeoLocationsInput) (*ListGeoLocationsOutput, error) { - req, out := c.ListGeoLocationsRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/ListCidrBlocks +func (c *Route53) ListCidrBlocks(input *ListCidrBlocksInput) (*ListCidrBlocksOutput, error) { + req, out := c.ListCidrBlocksRequest(input) return out, req.Send() } -// ListGeoLocationsWithContext is the same as ListGeoLocations with the addition of +// ListCidrBlocksWithContext is the same as ListCidrBlocks with the addition of // the ability to pass a context and additional request options. // -// See ListGeoLocations for details on how to use this API operation. +// See ListCidrBlocks for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *Route53) ListGeoLocationsWithContext(ctx aws.Context, input *ListGeoLocationsInput, opts ...request.Option) (*ListGeoLocationsOutput, error) { - req, out := c.ListGeoLocationsRequest(input) +func (c *Route53) ListCidrBlocksWithContext(ctx aws.Context, input *ListCidrBlocksInput, opts ...request.Option) (*ListCidrBlocksOutput, error) { + req, out := c.ListCidrBlocksRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opListHealthChecks = "ListHealthChecks" - -// ListHealthChecksRequest generates a "aws/request.Request" representing the -// client's request for the ListHealthChecks operation. The "output" return -// value will be populated with the request's response once the request completes -// successfully. +// ListCidrBlocksPages iterates over the pages of a ListCidrBlocks operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListCidrBlocks 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 ListCidrBlocks operation. +// pageNum := 0 +// err := client.ListCidrBlocksPages(params, +// func(page *route53.ListCidrBlocksOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *Route53) ListCidrBlocksPages(input *ListCidrBlocksInput, fn func(*ListCidrBlocksOutput, bool) bool) error { + return c.ListCidrBlocksPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListCidrBlocksPagesWithContext same as ListCidrBlocksPages 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 *Route53) ListCidrBlocksPagesWithContext(ctx aws.Context, input *ListCidrBlocksInput, fn func(*ListCidrBlocksOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListCidrBlocksInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListCidrBlocksRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListCidrBlocksOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opListCidrCollections = "ListCidrCollections" + +// ListCidrCollectionsRequest generates a "aws/request.Request" representing the +// client's request for the ListCidrCollections operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See ListHealthChecks for more information on using the ListHealthChecks +// See ListCidrCollections for more information on using the ListCidrCollections // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the ListHealthChecksRequest method. -// req, resp := client.ListHealthChecksRequest(params) +// // Example sending a request using the ListCidrCollectionsRequest method. +// req, resp := client.ListCidrCollectionsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/ListHealthChecks -func (c *Route53) ListHealthChecksRequest(input *ListHealthChecksInput) (req *request.Request, output *ListHealthChecksOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/ListCidrCollections +func (c *Route53) ListCidrCollectionsRequest(input *ListCidrCollectionsInput) (req *request.Request, output *ListCidrCollectionsOutput) { op := &request.Operation{ - Name: opListHealthChecks, + Name: opListCidrCollections, HTTPMethod: "GET", - HTTPPath: "/2013-04-01/healthcheck", + HTTPPath: "/2013-04-01/cidrcollection", Paginator: &request.Paginator{ - InputTokens: []string{"Marker"}, - OutputTokens: []string{"NextMarker"}, - LimitToken: "MaxItems", - TruncationToken: "IsTruncated", + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", }, } if input == nil { - input = &ListHealthChecksInput{} + input = &ListCidrCollectionsInput{} } - output = &ListHealthChecksOutput{} + output = &ListCidrCollectionsOutput{} req = c.newRequest(op, input, output) return } -// ListHealthChecks API operation for Amazon Route 53. +// ListCidrCollections API operation for Amazon Route 53. // -// Retrieve a list of the health checks that are associated with the current -// Amazon Web Services account. +// Returns a paginated list of CIDR collections in the Amazon Web Services account +// (metadata only). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Route 53's -// API operation ListHealthChecks for usage and error information. +// API operation ListCidrCollections for usage and error information. // // Returned Error Codes: // * ErrCodeInvalidInput "InvalidInput" // The input is not valid. // -// * ErrCodeIncompatibleVersion "IncompatibleVersion" -// The resource you're trying to access is unsupported on this Amazon Route -// 53 endpoint. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/ListHealthChecks -func (c *Route53) ListHealthChecks(input *ListHealthChecksInput) (*ListHealthChecksOutput, error) { - req, out := c.ListHealthChecksRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/ListCidrCollections +func (c *Route53) ListCidrCollections(input *ListCidrCollectionsInput) (*ListCidrCollectionsOutput, error) { + req, out := c.ListCidrCollectionsRequest(input) return out, req.Send() } -// ListHealthChecksWithContext is the same as ListHealthChecks with the addition of +// ListCidrCollectionsWithContext is the same as ListCidrCollections with the addition of // the ability to pass a context and additional request options. // -// See ListHealthChecks for details on how to use this API operation. +// See ListCidrCollections for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *Route53) ListHealthChecksWithContext(ctx aws.Context, input *ListHealthChecksInput, opts ...request.Option) (*ListHealthChecksOutput, error) { - req, out := c.ListHealthChecksRequest(input) +func (c *Route53) ListCidrCollectionsWithContext(ctx aws.Context, input *ListCidrCollectionsInput, opts ...request.Option) (*ListCidrCollectionsOutput, error) { + req, out := c.ListCidrCollectionsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// ListHealthChecksPages iterates over the pages of a ListHealthChecks operation, +// ListCidrCollectionsPages iterates over the pages of a ListCidrCollections operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // -// See ListHealthChecks method for more information on how to use this operation. +// See ListCidrCollections 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 ListHealthChecks operation. +// // Example iterating over at most 3 pages of a ListCidrCollections operation. // pageNum := 0 -// err := client.ListHealthChecksPages(params, -// func(page *route53.ListHealthChecksOutput, lastPage bool) bool { +// err := client.ListCidrCollectionsPages(params, +// func(page *route53.ListCidrCollectionsOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) // -func (c *Route53) ListHealthChecksPages(input *ListHealthChecksInput, fn func(*ListHealthChecksOutput, bool) bool) error { - return c.ListHealthChecksPagesWithContext(aws.BackgroundContext(), input, fn) +func (c *Route53) ListCidrCollectionsPages(input *ListCidrCollectionsInput, fn func(*ListCidrCollectionsOutput, bool) bool) error { + return c.ListCidrCollectionsPagesWithContext(aws.BackgroundContext(), input, fn) } -// ListHealthChecksPagesWithContext same as ListHealthChecksPages except +// ListCidrCollectionsPagesWithContext same as ListCidrCollectionsPages 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 *Route53) ListHealthChecksPagesWithContext(ctx aws.Context, input *ListHealthChecksInput, fn func(*ListHealthChecksOutput, bool) bool, opts ...request.Option) error { +func (c *Route53) ListCidrCollectionsPagesWithContext(ctx aws.Context, input *ListCidrCollectionsInput, fn func(*ListCidrCollectionsOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { - var inCpy *ListHealthChecksInput + var inCpy *ListCidrCollectionsInput if input != nil { tmp := *input inCpy = &tmp } - req, _ := c.ListHealthChecksRequest(inCpy) + req, _ := c.ListCidrCollectionsRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil @@ -4832,7 +5172,7 @@ func (c *Route53) ListHealthChecksPagesWithContext(ctx aws.Context, input *ListH } for p.Next() { - if !fn(p.Page().(*ListHealthChecksOutput), !p.HasNextPage()) { + if !fn(p.Page().(*ListCidrCollectionsOutput), !p.HasNextPage()) { break } } @@ -4840,140 +5180,132 @@ func (c *Route53) ListHealthChecksPagesWithContext(ctx aws.Context, input *ListH return p.Err() } -const opListHostedZones = "ListHostedZones" +const opListCidrLocations = "ListCidrLocations" -// ListHostedZonesRequest generates a "aws/request.Request" representing the -// client's request for the ListHostedZones operation. The "output" return +// ListCidrLocationsRequest generates a "aws/request.Request" representing the +// client's request for the ListCidrLocations operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See ListHostedZones for more information on using the ListHostedZones +// See ListCidrLocations for more information on using the ListCidrLocations // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the ListHostedZonesRequest method. -// req, resp := client.ListHostedZonesRequest(params) +// // Example sending a request using the ListCidrLocationsRequest method. +// req, resp := client.ListCidrLocationsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/ListHostedZones -func (c *Route53) ListHostedZonesRequest(input *ListHostedZonesInput) (req *request.Request, output *ListHostedZonesOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/ListCidrLocations +func (c *Route53) ListCidrLocationsRequest(input *ListCidrLocationsInput) (req *request.Request, output *ListCidrLocationsOutput) { op := &request.Operation{ - Name: opListHostedZones, + Name: opListCidrLocations, HTTPMethod: "GET", - HTTPPath: "/2013-04-01/hostedzone", + HTTPPath: "/2013-04-01/cidrcollection/{CidrCollectionId}", Paginator: &request.Paginator{ - InputTokens: []string{"Marker"}, - OutputTokens: []string{"NextMarker"}, - LimitToken: "MaxItems", - TruncationToken: "IsTruncated", + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", }, } if input == nil { - input = &ListHostedZonesInput{} + input = &ListCidrLocationsInput{} } - output = &ListHostedZonesOutput{} + output = &ListCidrLocationsOutput{} req = c.newRequest(op, input, output) return } -// ListHostedZones API operation for Amazon Route 53. -// -// Retrieves a list of the public and private hosted zones that are associated -// with the current Amazon Web Services account. The response includes a HostedZones -// child element for each hosted zone. +// ListCidrLocations API operation for Amazon Route 53. // -// Amazon Route 53 returns a maximum of 100 items in each response. If you have -// a lot of hosted zones, you can use the maxitems parameter to list them in -// groups of up to 100. +// Returns a paginated list of CIDR locations for the given collection (metadata +// only, does not include CIDR blocks). // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Route 53's -// API operation ListHostedZones for usage and error information. +// API operation ListCidrLocations for usage and error information. // // Returned Error Codes: +// * ErrCodeNoSuchCidrCollectionException "NoSuchCidrCollectionException" +// The CIDR collection you specified, doesn't exist. +// // * ErrCodeInvalidInput "InvalidInput" // The input is not valid. // -// * ErrCodeNoSuchDelegationSet "NoSuchDelegationSet" -// A reusable delegation set with the specified ID does not exist. -// -// * ErrCodeDelegationSetNotReusable "DelegationSetNotReusable" -// A reusable delegation set with the specified ID does not exist. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/ListHostedZones -func (c *Route53) ListHostedZones(input *ListHostedZonesInput) (*ListHostedZonesOutput, error) { - req, out := c.ListHostedZonesRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/ListCidrLocations +func (c *Route53) ListCidrLocations(input *ListCidrLocationsInput) (*ListCidrLocationsOutput, error) { + req, out := c.ListCidrLocationsRequest(input) return out, req.Send() } -// ListHostedZonesWithContext is the same as ListHostedZones with the addition of +// ListCidrLocationsWithContext is the same as ListCidrLocations with the addition of // the ability to pass a context and additional request options. // -// See ListHostedZones for details on how to use this API operation. +// See ListCidrLocations for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *Route53) ListHostedZonesWithContext(ctx aws.Context, input *ListHostedZonesInput, opts ...request.Option) (*ListHostedZonesOutput, error) { - req, out := c.ListHostedZonesRequest(input) +func (c *Route53) ListCidrLocationsWithContext(ctx aws.Context, input *ListCidrLocationsInput, opts ...request.Option) (*ListCidrLocationsOutput, error) { + req, out := c.ListCidrLocationsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// ListHostedZonesPages iterates over the pages of a ListHostedZones operation, +// ListCidrLocationsPages iterates over the pages of a ListCidrLocations operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // -// See ListHostedZones method for more information on how to use this operation. +// See ListCidrLocations 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 ListHostedZones operation. +// // Example iterating over at most 3 pages of a ListCidrLocations operation. // pageNum := 0 -// err := client.ListHostedZonesPages(params, -// func(page *route53.ListHostedZonesOutput, lastPage bool) bool { +// err := client.ListCidrLocationsPages(params, +// func(page *route53.ListCidrLocationsOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 // }) // -func (c *Route53) ListHostedZonesPages(input *ListHostedZonesInput, fn func(*ListHostedZonesOutput, bool) bool) error { - return c.ListHostedZonesPagesWithContext(aws.BackgroundContext(), input, fn) +func (c *Route53) ListCidrLocationsPages(input *ListCidrLocationsInput, fn func(*ListCidrLocationsOutput, bool) bool) error { + return c.ListCidrLocationsPagesWithContext(aws.BackgroundContext(), input, fn) } -// ListHostedZonesPagesWithContext same as ListHostedZonesPages except +// ListCidrLocationsPagesWithContext same as ListCidrLocationsPages 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 *Route53) ListHostedZonesPagesWithContext(ctx aws.Context, input *ListHostedZonesInput, fn func(*ListHostedZonesOutput, bool) bool, opts ...request.Option) error { +func (c *Route53) ListCidrLocationsPagesWithContext(ctx aws.Context, input *ListCidrLocationsInput, fn func(*ListCidrLocationsOutput, bool) bool, opts ...request.Option) error { p := request.Pagination{ NewRequest: func() (*request.Request, error) { - var inCpy *ListHostedZonesInput + var inCpy *ListCidrLocationsInput if input != nil { tmp := *input inCpy = &tmp } - req, _ := c.ListHostedZonesRequest(inCpy) + req, _ := c.ListCidrLocationsRequest(inCpy) req.SetContext(ctx) req.ApplyOptions(opts...) return req, nil @@ -4981,7 +5313,7 @@ func (c *Route53) ListHostedZonesPagesWithContext(ctx aws.Context, input *ListHo } for p.Next() { - if !fn(p.Page().(*ListHostedZonesOutput), !p.HasNextPage()) { + if !fn(p.Page().(*ListCidrLocationsOutput), !p.HasNextPage()) { break } } @@ -4989,163 +5321,544 @@ func (c *Route53) ListHostedZonesPagesWithContext(ctx aws.Context, input *ListHo return p.Err() } -const opListHostedZonesByName = "ListHostedZonesByName" +const opListGeoLocations = "ListGeoLocations" -// ListHostedZonesByNameRequest generates a "aws/request.Request" representing the -// client's request for the ListHostedZonesByName operation. The "output" return +// ListGeoLocationsRequest generates a "aws/request.Request" representing the +// client's request for the ListGeoLocations operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See ListHostedZonesByName for more information on using the ListHostedZonesByName +// See ListGeoLocations for more information on using the ListGeoLocations // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the ListHostedZonesByNameRequest method. -// req, resp := client.ListHostedZonesByNameRequest(params) +// // Example sending a request using the ListGeoLocationsRequest method. +// req, resp := client.ListGeoLocationsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/ListHostedZonesByName -func (c *Route53) ListHostedZonesByNameRequest(input *ListHostedZonesByNameInput) (req *request.Request, output *ListHostedZonesByNameOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/ListGeoLocations +func (c *Route53) ListGeoLocationsRequest(input *ListGeoLocationsInput) (req *request.Request, output *ListGeoLocationsOutput) { op := &request.Operation{ - Name: opListHostedZonesByName, + Name: opListGeoLocations, HTTPMethod: "GET", - HTTPPath: "/2013-04-01/hostedzonesbyname", + HTTPPath: "/2013-04-01/geolocations", } if input == nil { - input = &ListHostedZonesByNameInput{} + input = &ListGeoLocationsInput{} } - output = &ListHostedZonesByNameOutput{} + output = &ListGeoLocationsOutput{} req = c.newRequest(op, input, output) return } -// ListHostedZonesByName API operation for Amazon Route 53. -// -// Retrieves a list of your hosted zones in lexicographic order. The response -// includes a HostedZones child element for each hosted zone created by the -// current Amazon Web Services account. -// -// ListHostedZonesByName sorts hosted zones by name with the labels reversed. -// For example: -// -// com.example.www. -// -// Note the trailing dot, which can change the sort order in some circumstances. -// -// If the domain name includes escape characters or Punycode, ListHostedZonesByName -// alphabetizes the domain name using the escaped or Punycoded value, which -// is the format that Amazon Route 53 saves in its database. For example, to -// create a hosted zone for exämple.com, you specify ex\344mple.com for the -// domain name. ListHostedZonesByName alphabetizes it as: -// -// com.ex\344mple. -// -// The labels are reversed and alphabetized using the escaped value. For more -// information about valid domain name formats, including internationalized -// domain names, see DNS Domain Name Format (https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/DomainNameFormat.html) -// in the Amazon Route 53 Developer Guide. -// -// Route 53 returns up to 100 items in each response. If you have a lot of hosted -// zones, use the MaxItems parameter to list them in groups of up to 100. The -// response includes values that help navigate from one group of MaxItems hosted -// zones to the next: +// ListGeoLocations API operation for Amazon Route 53. // -// * The DNSName and HostedZoneId elements in the response contain the values, -// if any, specified for the dnsname and hostedzoneid parameters in the request -// that produced the current response. +// Retrieves a list of supported geographic locations. // -// * The MaxItems element in the response contains the value, if any, that -// you specified for the maxitems parameter in the request that produced -// the current response. +// Countries are listed first, and continents are listed last. If Amazon Route +// 53 supports subdivisions for a country (for example, states or provinces), +// the subdivisions for that country are listed in alphabetical order immediately +// after the corresponding country. // -// * If the value of IsTruncated in the response is true, there are more -// hosted zones associated with the current Amazon Web Services account. -// If IsTruncated is false, this response includes the last hosted zone that -// is associated with the current account. The NextDNSName element and NextHostedZoneId -// elements are omitted from the response. +// Route 53 does not perform authorization for this API because it retrieves +// information that is already available to the public. // -// * The NextDNSName and NextHostedZoneId elements in the response contain -// the domain name and the hosted zone ID of the next hosted zone that is -// associated with the current Amazon Web Services account. If you want to -// list more hosted zones, make another call to ListHostedZonesByName, and -// specify the value of NextDNSName and NextHostedZoneId in the dnsname and -// hostedzoneid parameters, respectively. +// For a list of supported geolocation codes, see the GeoLocation (https://docs.aws.amazon.com/Route53/latest/APIReference/API_GeoLocation.html) +// data 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 Route 53's -// API operation ListHostedZonesByName for usage and error information. +// API operation ListGeoLocations for usage and error information. // // Returned Error Codes: // * ErrCodeInvalidInput "InvalidInput" // The input is not valid. // -// * ErrCodeInvalidDomainName "InvalidDomainName" -// The specified domain name is not valid. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/ListHostedZonesByName -func (c *Route53) ListHostedZonesByName(input *ListHostedZonesByNameInput) (*ListHostedZonesByNameOutput, error) { - req, out := c.ListHostedZonesByNameRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/ListGeoLocations +func (c *Route53) ListGeoLocations(input *ListGeoLocationsInput) (*ListGeoLocationsOutput, error) { + req, out := c.ListGeoLocationsRequest(input) return out, req.Send() } -// ListHostedZonesByNameWithContext is the same as ListHostedZonesByName with the addition of +// ListGeoLocationsWithContext is the same as ListGeoLocations with the addition of // the ability to pass a context and additional request options. // -// See ListHostedZonesByName for details on how to use this API operation. +// See ListGeoLocations for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *Route53) ListHostedZonesByNameWithContext(ctx aws.Context, input *ListHostedZonesByNameInput, opts ...request.Option) (*ListHostedZonesByNameOutput, error) { - req, out := c.ListHostedZonesByNameRequest(input) +func (c *Route53) ListGeoLocationsWithContext(ctx aws.Context, input *ListGeoLocationsInput, opts ...request.Option) (*ListGeoLocationsOutput, error) { + req, out := c.ListGeoLocationsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opListHostedZonesByVPC = "ListHostedZonesByVPC" +const opListHealthChecks = "ListHealthChecks" -// ListHostedZonesByVPCRequest generates a "aws/request.Request" representing the -// client's request for the ListHostedZonesByVPC operation. The "output" return +// ListHealthChecksRequest generates a "aws/request.Request" representing the +// client's request for the ListHealthChecks operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See ListHostedZonesByVPC for more information on using the ListHostedZonesByVPC +// See ListHealthChecks for more information on using the ListHealthChecks // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the ListHostedZonesByVPCRequest method. -// req, resp := client.ListHostedZonesByVPCRequest(params) +// // Example sending a request using the ListHealthChecksRequest method. +// req, resp := client.ListHealthChecksRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/ListHostedZonesByVPC -func (c *Route53) ListHostedZonesByVPCRequest(input *ListHostedZonesByVPCInput) (req *request.Request, output *ListHostedZonesByVPCOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/ListHealthChecks +func (c *Route53) ListHealthChecksRequest(input *ListHealthChecksInput) (req *request.Request, output *ListHealthChecksOutput) { + op := &request.Operation{ + Name: opListHealthChecks, + HTTPMethod: "GET", + HTTPPath: "/2013-04-01/healthcheck", + Paginator: &request.Paginator{ + InputTokens: []string{"Marker"}, + OutputTokens: []string{"NextMarker"}, + LimitToken: "MaxItems", + TruncationToken: "IsTruncated", + }, + } + + if input == nil { + input = &ListHealthChecksInput{} + } + + output = &ListHealthChecksOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListHealthChecks API operation for Amazon Route 53. +// +// Retrieve a list of the health checks that are associated with the current +// Amazon Web Services account. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Route 53's +// API operation ListHealthChecks for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidInput "InvalidInput" +// The input is not valid. +// +// * ErrCodeIncompatibleVersion "IncompatibleVersion" +// The resource you're trying to access is unsupported on this Amazon Route +// 53 endpoint. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/ListHealthChecks +func (c *Route53) ListHealthChecks(input *ListHealthChecksInput) (*ListHealthChecksOutput, error) { + req, out := c.ListHealthChecksRequest(input) + return out, req.Send() +} + +// ListHealthChecksWithContext is the same as ListHealthChecks with the addition of +// the ability to pass a context and additional request options. +// +// See ListHealthChecks for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Route53) ListHealthChecksWithContext(ctx aws.Context, input *ListHealthChecksInput, opts ...request.Option) (*ListHealthChecksOutput, error) { + req, out := c.ListHealthChecksRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// ListHealthChecksPages iterates over the pages of a ListHealthChecks operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListHealthChecks 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 ListHealthChecks operation. +// pageNum := 0 +// err := client.ListHealthChecksPages(params, +// func(page *route53.ListHealthChecksOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *Route53) ListHealthChecksPages(input *ListHealthChecksInput, fn func(*ListHealthChecksOutput, bool) bool) error { + return c.ListHealthChecksPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListHealthChecksPagesWithContext same as ListHealthChecksPages 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 *Route53) ListHealthChecksPagesWithContext(ctx aws.Context, input *ListHealthChecksInput, fn func(*ListHealthChecksOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListHealthChecksInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListHealthChecksRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListHealthChecksOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opListHostedZones = "ListHostedZones" + +// ListHostedZonesRequest generates a "aws/request.Request" representing the +// client's request for the ListHostedZones operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListHostedZones for more information on using the ListHostedZones +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the ListHostedZonesRequest method. +// req, resp := client.ListHostedZonesRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/ListHostedZones +func (c *Route53) ListHostedZonesRequest(input *ListHostedZonesInput) (req *request.Request, output *ListHostedZonesOutput) { + op := &request.Operation{ + Name: opListHostedZones, + HTTPMethod: "GET", + HTTPPath: "/2013-04-01/hostedzone", + Paginator: &request.Paginator{ + InputTokens: []string{"Marker"}, + OutputTokens: []string{"NextMarker"}, + LimitToken: "MaxItems", + TruncationToken: "IsTruncated", + }, + } + + if input == nil { + input = &ListHostedZonesInput{} + } + + output = &ListHostedZonesOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListHostedZones API operation for Amazon Route 53. +// +// Retrieves a list of the public and private hosted zones that are associated +// with the current Amazon Web Services account. The response includes a HostedZones +// child element for each hosted zone. +// +// Amazon Route 53 returns a maximum of 100 items in each response. If you have +// a lot of hosted zones, you can use the maxitems parameter to list them in +// groups of up to 100. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Route 53's +// API operation ListHostedZones for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidInput "InvalidInput" +// The input is not valid. +// +// * ErrCodeNoSuchDelegationSet "NoSuchDelegationSet" +// A reusable delegation set with the specified ID does not exist. +// +// * ErrCodeDelegationSetNotReusable "DelegationSetNotReusable" +// A reusable delegation set with the specified ID does not exist. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/ListHostedZones +func (c *Route53) ListHostedZones(input *ListHostedZonesInput) (*ListHostedZonesOutput, error) { + req, out := c.ListHostedZonesRequest(input) + return out, req.Send() +} + +// ListHostedZonesWithContext is the same as ListHostedZones with the addition of +// the ability to pass a context and additional request options. +// +// See ListHostedZones for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Route53) ListHostedZonesWithContext(ctx aws.Context, input *ListHostedZonesInput, opts ...request.Option) (*ListHostedZonesOutput, error) { + req, out := c.ListHostedZonesRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// ListHostedZonesPages iterates over the pages of a ListHostedZones operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListHostedZones 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 ListHostedZones operation. +// pageNum := 0 +// err := client.ListHostedZonesPages(params, +// func(page *route53.ListHostedZonesOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *Route53) ListHostedZonesPages(input *ListHostedZonesInput, fn func(*ListHostedZonesOutput, bool) bool) error { + return c.ListHostedZonesPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListHostedZonesPagesWithContext same as ListHostedZonesPages 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 *Route53) ListHostedZonesPagesWithContext(ctx aws.Context, input *ListHostedZonesInput, fn func(*ListHostedZonesOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListHostedZonesInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListHostedZonesRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListHostedZonesOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opListHostedZonesByName = "ListHostedZonesByName" + +// ListHostedZonesByNameRequest generates a "aws/request.Request" representing the +// client's request for the ListHostedZonesByName operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListHostedZonesByName for more information on using the ListHostedZonesByName +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the ListHostedZonesByNameRequest method. +// req, resp := client.ListHostedZonesByNameRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/ListHostedZonesByName +func (c *Route53) ListHostedZonesByNameRequest(input *ListHostedZonesByNameInput) (req *request.Request, output *ListHostedZonesByNameOutput) { + op := &request.Operation{ + Name: opListHostedZonesByName, + HTTPMethod: "GET", + HTTPPath: "/2013-04-01/hostedzonesbyname", + } + + if input == nil { + input = &ListHostedZonesByNameInput{} + } + + output = &ListHostedZonesByNameOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListHostedZonesByName API operation for Amazon Route 53. +// +// Retrieves a list of your hosted zones in lexicographic order. The response +// includes a HostedZones child element for each hosted zone created by the +// current Amazon Web Services account. +// +// ListHostedZonesByName sorts hosted zones by name with the labels reversed. +// For example: +// +// com.example.www. +// +// Note the trailing dot, which can change the sort order in some circumstances. +// +// If the domain name includes escape characters or Punycode, ListHostedZonesByName +// alphabetizes the domain name using the escaped or Punycoded value, which +// is the format that Amazon Route 53 saves in its database. For example, to +// create a hosted zone for exämple.com, you specify ex\344mple.com for the +// domain name. ListHostedZonesByName alphabetizes it as: +// +// com.ex\344mple. +// +// The labels are reversed and alphabetized using the escaped value. For more +// information about valid domain name formats, including internationalized +// domain names, see DNS Domain Name Format (https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/DomainNameFormat.html) +// in the Amazon Route 53 Developer Guide. +// +// Route 53 returns up to 100 items in each response. If you have a lot of hosted +// zones, use the MaxItems parameter to list them in groups of up to 100. The +// response includes values that help navigate from one group of MaxItems hosted +// zones to the next: +// +// * The DNSName and HostedZoneId elements in the response contain the values, +// if any, specified for the dnsname and hostedzoneid parameters in the request +// that produced the current response. +// +// * The MaxItems element in the response contains the value, if any, that +// you specified for the maxitems parameter in the request that produced +// the current response. +// +// * If the value of IsTruncated in the response is true, there are more +// hosted zones associated with the current Amazon Web Services account. +// If IsTruncated is false, this response includes the last hosted zone that +// is associated with the current account. The NextDNSName element and NextHostedZoneId +// elements are omitted from the response. +// +// * The NextDNSName and NextHostedZoneId elements in the response contain +// the domain name and the hosted zone ID of the next hosted zone that is +// associated with the current Amazon Web Services account. If you want to +// list more hosted zones, make another call to ListHostedZonesByName, and +// specify the value of NextDNSName and NextHostedZoneId in the dnsname and +// hostedzoneid parameters, respectively. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Route 53's +// API operation ListHostedZonesByName for usage and error information. +// +// Returned Error Codes: +// * ErrCodeInvalidInput "InvalidInput" +// The input is not valid. +// +// * ErrCodeInvalidDomainName "InvalidDomainName" +// The specified domain name is not valid. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/ListHostedZonesByName +func (c *Route53) ListHostedZonesByName(input *ListHostedZonesByNameInput) (*ListHostedZonesByNameOutput, error) { + req, out := c.ListHostedZonesByNameRequest(input) + return out, req.Send() +} + +// ListHostedZonesByNameWithContext is the same as ListHostedZonesByName with the addition of +// the ability to pass a context and additional request options. +// +// See ListHostedZonesByName for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Route53) ListHostedZonesByNameWithContext(ctx aws.Context, input *ListHostedZonesByNameInput, opts ...request.Option) (*ListHostedZonesByNameOutput, error) { + req, out := c.ListHostedZonesByNameRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opListHostedZonesByVPC = "ListHostedZonesByVPC" + +// ListHostedZonesByVPCRequest generates a "aws/request.Request" representing the +// client's request for the ListHostedZonesByVPC operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListHostedZonesByVPC for more information on using the ListHostedZonesByVPC +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the ListHostedZonesByVPCRequest method. +// req, resp := client.ListHostedZonesByVPCRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/ListHostedZonesByVPC +func (c *Route53) ListHostedZonesByVPCRequest(input *ListHostedZonesByVPCInput) (req *request.Request, output *ListHostedZonesByVPCOutput) { op := &request.Operation{ Name: opListHostedZonesByVPC, HTTPMethod: "GET", @@ -7675,17 +8388,104 @@ func (s *Change) SetResourceRecordSet(v *ResourceRecordSet) *Change { return s } -// The information for a change request. -type ChangeBatch struct { - _ struct{} `type:"structure"` +// The information for a change request. +type ChangeBatch struct { + _ struct{} `type:"structure"` + + // Information about the changes to make to the record sets. + // + // Changes is a required field + Changes []*Change `locationNameList:"Change" min:"1" type:"list" required:"true"` + + // Optional: Any comments you want to include about a change batch request. + Comment *string `type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ChangeBatch) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ChangeBatch) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ChangeBatch) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ChangeBatch"} + if s.Changes == nil { + invalidParams.Add(request.NewErrParamRequired("Changes")) + } + if s.Changes != nil && len(s.Changes) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Changes", 1)) + } + if s.Changes != nil { + for i, v := range s.Changes { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Changes", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetChanges sets the Changes field's value. +func (s *ChangeBatch) SetChanges(v []*Change) *ChangeBatch { + s.Changes = v + return s +} + +// SetComment sets the Comment field's value. +func (s *ChangeBatch) SetComment(v string) *ChangeBatch { + s.Comment = &v + return s +} + +type ChangeCidrCollectionInput struct { + _ struct{} `locationName:"ChangeCidrCollectionRequest" type:"structure" xmlURI:"https://route53.amazonaws.com/doc/2013-04-01/"` - // Information about the changes to make to the record sets. + // Information about changes to a CIDR collection. // // Changes is a required field - Changes []*Change `locationNameList:"Change" min:"1" type:"list" required:"true"` + Changes []*CidrCollectionChange `min:"1" type:"list" required:"true"` - // Optional: Any comments you want to include about a change batch request. - Comment *string `type:"string"` + // A sequential counter that Amazon Route 53 sets to 1 when you create a collection + // and increments it by 1 each time you update the collection. + // + // We recommend that you use ListCidrCollection to get the current value of + // CollectionVersion for the collection that you want to update, and then include + // that value with the change request. This prevents Route 53 from overwriting + // an intervening update: + // + // * If the value in the request matches the value of CollectionVersion in + // the collection, Route 53 updates the collection. + // + // * If the value of CollectionVersion in the collection is greater than + // the value in the request, the collection was changed after you got the + // version number. Route 53 does not update the collection, and it returns + // a CidrCollectionVersionMismatch error. + CollectionVersion *int64 `min:"1" type:"long"` + + // The UUID of the CIDR collection to update. + // + // Id is a required field + Id *string `location:"uri" locationName:"CidrCollectionId" type:"string" required:"true"` } // String returns the string representation. @@ -7693,7 +8493,7 @@ type ChangeBatch struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ChangeBatch) String() string { +func (s ChangeCidrCollectionInput) String() string { return awsutil.Prettify(s) } @@ -7702,19 +8502,28 @@ func (s ChangeBatch) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ChangeBatch) GoString() string { +func (s ChangeCidrCollectionInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *ChangeBatch) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ChangeBatch"} +func (s *ChangeCidrCollectionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ChangeCidrCollectionInput"} if s.Changes == nil { invalidParams.Add(request.NewErrParamRequired("Changes")) } if s.Changes != nil && len(s.Changes) < 1 { invalidParams.Add(request.NewErrParamMinLen("Changes", 1)) } + if s.CollectionVersion != nil && *s.CollectionVersion < 1 { + invalidParams.Add(request.NewErrParamMinValue("CollectionVersion", 1)) + } + if s.Id == nil { + invalidParams.Add(request.NewErrParamRequired("Id")) + } + if s.Id != nil && len(*s.Id) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Id", 1)) + } if s.Changes != nil { for i, v := range s.Changes { if v == nil { @@ -7733,14 +8542,54 @@ func (s *ChangeBatch) Validate() error { } // SetChanges sets the Changes field's value. -func (s *ChangeBatch) SetChanges(v []*Change) *ChangeBatch { +func (s *ChangeCidrCollectionInput) SetChanges(v []*CidrCollectionChange) *ChangeCidrCollectionInput { s.Changes = v return s } -// SetComment sets the Comment field's value. -func (s *ChangeBatch) SetComment(v string) *ChangeBatch { - s.Comment = &v +// SetCollectionVersion sets the CollectionVersion field's value. +func (s *ChangeCidrCollectionInput) SetCollectionVersion(v int64) *ChangeCidrCollectionInput { + s.CollectionVersion = &v + return s +} + +// SetId sets the Id field's value. +func (s *ChangeCidrCollectionInput) SetId(v string) *ChangeCidrCollectionInput { + s.Id = &v + return s +} + +type ChangeCidrCollectionOutput struct { + _ struct{} `type:"structure"` + + // The ID that is returned by ChangeCidrCollection. You can use it as input + // to GetChange to see if a CIDR collection change has propagated or not. + // + // Id is a required field + Id *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ChangeCidrCollectionOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ChangeCidrCollectionOutput) GoString() string { + return s.String() +} + +// SetId sets the Id field's value. +func (s *ChangeCidrCollectionOutput) SetId(v string) *ChangeCidrCollectionOutput { + s.Id = &v return s } @@ -7873,30 +8722,238 @@ func (s *ChangeResourceRecordSetsInput) Validate() error { return nil } -// SetChangeBatch sets the ChangeBatch field's value. -func (s *ChangeResourceRecordSetsInput) SetChangeBatch(v *ChangeBatch) *ChangeResourceRecordSetsInput { - s.ChangeBatch = v +// SetChangeBatch sets the ChangeBatch field's value. +func (s *ChangeResourceRecordSetsInput) SetChangeBatch(v *ChangeBatch) *ChangeResourceRecordSetsInput { + s.ChangeBatch = v + return s +} + +// SetHostedZoneId sets the HostedZoneId field's value. +func (s *ChangeResourceRecordSetsInput) SetHostedZoneId(v string) *ChangeResourceRecordSetsInput { + s.HostedZoneId = &v + return s +} + +// A complex type containing the response for the request. +type ChangeResourceRecordSetsOutput struct { + _ struct{} `type:"structure"` + + // A complex type that contains information about changes made to your hosted + // zone. + // + // This element contains an ID that you use when performing a GetChange (https://docs.aws.amazon.com/Route53/latest/APIReference/API_GetChange.html) + // action to get detailed information about the change. + // + // ChangeInfo is a required field + ChangeInfo *ChangeInfo `type:"structure" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ChangeResourceRecordSetsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ChangeResourceRecordSetsOutput) GoString() string { + return s.String() +} + +// SetChangeInfo sets the ChangeInfo field's value. +func (s *ChangeResourceRecordSetsOutput) SetChangeInfo(v *ChangeInfo) *ChangeResourceRecordSetsOutput { + s.ChangeInfo = v + return s +} + +// A complex type that contains information about the tags that you want to +// add, edit, or delete. +type ChangeTagsForResourceInput struct { + _ struct{} `locationName:"ChangeTagsForResourceRequest" type:"structure" xmlURI:"https://route53.amazonaws.com/doc/2013-04-01/"` + + // A complex type that contains a list of the tags that you want to add to the + // specified health check or hosted zone and/or the tags that you want to edit + // Value for. + // + // You can add a maximum of 10 tags to a health check or a hosted zone. + AddTags []*Tag `locationNameList:"Tag" min:"1" type:"list"` + + // A complex type that contains a list of the tags that you want to delete from + // the specified health check or hosted zone. You can specify up to 10 keys. + RemoveTagKeys []*string `locationNameList:"Key" min:"1" type:"list"` + + // The ID of the resource for which you want to add, change, or delete tags. + // + // ResourceId is a required field + ResourceId *string `location:"uri" locationName:"ResourceId" type:"string" required:"true"` + + // The type of the resource. + // + // * The resource type for health checks is healthcheck. + // + // * The resource type for hosted zones is hostedzone. + // + // ResourceType is a required field + ResourceType *string `location:"uri" locationName:"ResourceType" type:"string" required:"true" enum:"TagResourceType"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ChangeTagsForResourceInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ChangeTagsForResourceInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ChangeTagsForResourceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ChangeTagsForResourceInput"} + if s.AddTags != nil && len(s.AddTags) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AddTags", 1)) + } + if s.RemoveTagKeys != nil && len(s.RemoveTagKeys) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RemoveTagKeys", 1)) + } + if s.ResourceId == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceId")) + } + if s.ResourceId != nil && len(*s.ResourceId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResourceId", 1)) + } + if s.ResourceType == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceType")) + } + if s.ResourceType != nil && len(*s.ResourceType) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResourceType", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAddTags sets the AddTags field's value. +func (s *ChangeTagsForResourceInput) SetAddTags(v []*Tag) *ChangeTagsForResourceInput { + s.AddTags = v + return s +} + +// SetRemoveTagKeys sets the RemoveTagKeys field's value. +func (s *ChangeTagsForResourceInput) SetRemoveTagKeys(v []*string) *ChangeTagsForResourceInput { + s.RemoveTagKeys = v + return s +} + +// SetResourceId sets the ResourceId field's value. +func (s *ChangeTagsForResourceInput) SetResourceId(v string) *ChangeTagsForResourceInput { + s.ResourceId = &v + return s +} + +// SetResourceType sets the ResourceType field's value. +func (s *ChangeTagsForResourceInput) SetResourceType(v string) *ChangeTagsForResourceInput { + s.ResourceType = &v + return s +} + +// Empty response for the request. +type ChangeTagsForResourceOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ChangeTagsForResourceOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ChangeTagsForResourceOutput) GoString() string { + return s.String() +} + +// A complex type that lists the CIDR blocks. +type CidrBlockSummary struct { + _ struct{} `type:"structure"` + + // Value for the CIDR block. + CidrBlock *string `min:"1" type:"string"` + + // The location name of the CIDR block. + LocationName *string `min:"1" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CidrBlockSummary) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CidrBlockSummary) GoString() string { + return s.String() +} + +// SetCidrBlock sets the CidrBlock field's value. +func (s *CidrBlockSummary) SetCidrBlock(v string) *CidrBlockSummary { + s.CidrBlock = &v return s } -// SetHostedZoneId sets the HostedZoneId field's value. -func (s *ChangeResourceRecordSetsInput) SetHostedZoneId(v string) *ChangeResourceRecordSetsInput { - s.HostedZoneId = &v +// SetLocationName sets the LocationName field's value. +func (s *CidrBlockSummary) SetLocationName(v string) *CidrBlockSummary { + s.LocationName = &v return s } -// A complex type containing the response for the request. -type ChangeResourceRecordSetsOutput struct { +// A complex type that identifies a CIDR collection. +type CidrCollection struct { _ struct{} `type:"structure"` - // A complex type that contains information about changes made to your hosted - // zone. - // - // This element contains an ID that you use when performing a GetChange (https://docs.aws.amazon.com/Route53/latest/APIReference/API_GetChange.html) - // action to get detailed information about the change. - // - // ChangeInfo is a required field - ChangeInfo *ChangeInfo `type:"structure" required:"true"` + // The ARN of the collection. Can be used to reference the collection in IAM + // policy or in another Amazon Web Services account. + Arn *string `min:"20" type:"string"` + + // The unique ID of the CIDR collection. + Id *string `type:"string"` + + // The name of a CIDR collection. + Name *string `min:"1" type:"string"` + + // A sequential counter that Route 53 sets to 1 when you create a CIDR collection + // and increments by 1 each time you update settings for the CIDR collection. + Version *int64 `min:"1" type:"long"` } // String returns the string representation. @@ -7904,7 +8961,7 @@ type ChangeResourceRecordSetsOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ChangeResourceRecordSetsOutput) String() string { +func (s CidrCollection) String() string { return awsutil.Prettify(s) } @@ -7913,45 +8970,52 @@ func (s ChangeResourceRecordSetsOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ChangeResourceRecordSetsOutput) GoString() string { +func (s CidrCollection) GoString() string { return s.String() } -// SetChangeInfo sets the ChangeInfo field's value. -func (s *ChangeResourceRecordSetsOutput) SetChangeInfo(v *ChangeInfo) *ChangeResourceRecordSetsOutput { - s.ChangeInfo = v +// SetArn sets the Arn field's value. +func (s *CidrCollection) SetArn(v string) *CidrCollection { + s.Arn = &v return s } -// A complex type that contains information about the tags that you want to -// add, edit, or delete. -type ChangeTagsForResourceInput struct { - _ struct{} `locationName:"ChangeTagsForResourceRequest" type:"structure" xmlURI:"https://route53.amazonaws.com/doc/2013-04-01/"` +// SetId sets the Id field's value. +func (s *CidrCollection) SetId(v string) *CidrCollection { + s.Id = &v + return s +} - // A complex type that contains a list of the tags that you want to add to the - // specified health check or hosted zone and/or the tags that you want to edit - // Value for. - // - // You can add a maximum of 10 tags to a health check or a hosted zone. - AddTags []*Tag `locationNameList:"Tag" min:"1" type:"list"` +// SetName sets the Name field's value. +func (s *CidrCollection) SetName(v string) *CidrCollection { + s.Name = &v + return s +} - // A complex type that contains a list of the tags that you want to delete from - // the specified health check or hosted zone. You can specify up to 10 keys. - RemoveTagKeys []*string `locationNameList:"Key" min:"1" type:"list"` +// SetVersion sets the Version field's value. +func (s *CidrCollection) SetVersion(v int64) *CidrCollection { + s.Version = &v + return s +} - // The ID of the resource for which you want to add, change, or delete tags. - // - // ResourceId is a required field - ResourceId *string `location:"uri" locationName:"ResourceId" type:"string" required:"true"` +// A complex type that contains information about the CIDR collection change. +type CidrCollectionChange struct { + _ struct{} `type:"structure"` - // The type of the resource. + // CIDR collection change action. // - // * The resource type for health checks is healthcheck. + // Action is a required field + Action *string `type:"string" required:"true" enum:"CidrCollectionChangeAction"` + + // List of CIDR blocks. // - // * The resource type for hosted zones is hostedzone. + // CidrList is a required field + CidrList []*string `locationNameList:"Cidr" min:"1" type:"list" required:"true"` + + // Name of the location that is associated with the CIDR collection. // - // ResourceType is a required field - ResourceType *string `location:"uri" locationName:"ResourceType" type:"string" required:"true" enum:"TagResourceType"` + // LocationName is a required field + LocationName *string `min:"1" type:"string" required:"true"` } // String returns the string representation. @@ -7959,7 +9023,7 @@ type ChangeTagsForResourceInput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ChangeTagsForResourceInput) String() string { +func (s CidrCollectionChange) String() string { return awsutil.Prettify(s) } @@ -7968,30 +9032,27 @@ func (s ChangeTagsForResourceInput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ChangeTagsForResourceInput) GoString() string { +func (s CidrCollectionChange) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *ChangeTagsForResourceInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ChangeTagsForResourceInput"} - if s.AddTags != nil && len(s.AddTags) < 1 { - invalidParams.Add(request.NewErrParamMinLen("AddTags", 1)) - } - if s.RemoveTagKeys != nil && len(s.RemoveTagKeys) < 1 { - invalidParams.Add(request.NewErrParamMinLen("RemoveTagKeys", 1)) +func (s *CidrCollectionChange) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CidrCollectionChange"} + if s.Action == nil { + invalidParams.Add(request.NewErrParamRequired("Action")) } - if s.ResourceId == nil { - invalidParams.Add(request.NewErrParamRequired("ResourceId")) + if s.CidrList == nil { + invalidParams.Add(request.NewErrParamRequired("CidrList")) } - if s.ResourceId != nil && len(*s.ResourceId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ResourceId", 1)) + if s.CidrList != nil && len(s.CidrList) < 1 { + invalidParams.Add(request.NewErrParamMinLen("CidrList", 1)) } - if s.ResourceType == nil { - invalidParams.Add(request.NewErrParamRequired("ResourceType")) + if s.LocationName == nil { + invalidParams.Add(request.NewErrParamRequired("LocationName")) } - if s.ResourceType != nil && len(*s.ResourceType) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ResourceType", 1)) + if s.LocationName != nil && len(*s.LocationName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("LocationName", 1)) } if invalidParams.Len() > 0 { @@ -8000,33 +9061,41 @@ func (s *ChangeTagsForResourceInput) Validate() error { return nil } -// SetAddTags sets the AddTags field's value. -func (s *ChangeTagsForResourceInput) SetAddTags(v []*Tag) *ChangeTagsForResourceInput { - s.AddTags = v - return s -} - -// SetRemoveTagKeys sets the RemoveTagKeys field's value. -func (s *ChangeTagsForResourceInput) SetRemoveTagKeys(v []*string) *ChangeTagsForResourceInput { - s.RemoveTagKeys = v +// SetAction sets the Action field's value. +func (s *CidrCollectionChange) SetAction(v string) *CidrCollectionChange { + s.Action = &v return s } -// SetResourceId sets the ResourceId field's value. -func (s *ChangeTagsForResourceInput) SetResourceId(v string) *ChangeTagsForResourceInput { - s.ResourceId = &v +// SetCidrList sets the CidrList field's value. +func (s *CidrCollectionChange) SetCidrList(v []*string) *CidrCollectionChange { + s.CidrList = v return s } -// SetResourceType sets the ResourceType field's value. -func (s *ChangeTagsForResourceInput) SetResourceType(v string) *ChangeTagsForResourceInput { - s.ResourceType = &v +// SetLocationName sets the LocationName field's value. +func (s *CidrCollectionChange) SetLocationName(v string) *CidrCollectionChange { + s.LocationName = &v return s } -// Empty response for the request. -type ChangeTagsForResourceOutput struct { +// The object that is specified in resource record set object when you are linking +// a resource record set to a CIDR location. +// +// A LocationName with an asterisk “*” can be used to create a default CIDR +// record. CollectionId is still required for default record. +type CidrRoutingConfig struct { _ struct{} `type:"structure"` + + // The CIDR collection ID. + // + // CollectionId is a required field + CollectionId *string `type:"string" required:"true"` + + // The CIDR collection location name. + // + // LocationName is a required field + LocationName *string `min:"1" type:"string" required:"true"` } // String returns the string representation. @@ -8034,7 +9103,7 @@ type ChangeTagsForResourceOutput struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ChangeTagsForResourceOutput) String() string { +func (s CidrRoutingConfig) String() string { return awsutil.Prettify(s) } @@ -8043,10 +9112,41 @@ func (s ChangeTagsForResourceOutput) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s ChangeTagsForResourceOutput) GoString() string { +func (s CidrRoutingConfig) GoString() string { return s.String() } +// Validate inspects the fields of the type to determine if they are valid. +func (s *CidrRoutingConfig) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CidrRoutingConfig"} + if s.CollectionId == nil { + invalidParams.Add(request.NewErrParamRequired("CollectionId")) + } + if s.LocationName == nil { + invalidParams.Add(request.NewErrParamRequired("LocationName")) + } + if s.LocationName != nil && len(*s.LocationName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("LocationName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetCollectionId sets the CollectionId field's value. +func (s *CidrRoutingConfig) SetCollectionId(v string) *CidrRoutingConfig { + s.CollectionId = &v + return s +} + +// SetLocationName sets the LocationName field's value. +func (s *CidrRoutingConfig) SetLocationName(v string) *CidrRoutingConfig { + s.LocationName = &v + return s +} + // A complex type that contains information about the CloudWatch alarm that // Amazon Route 53 is monitoring for this health check. type CloudWatchAlarmConfiguration struct { @@ -8149,21 +9249,192 @@ func (s *CloudWatchAlarmConfiguration) SetNamespace(v string) *CloudWatchAlarmCo return s } -// SetPeriod sets the Period field's value. -func (s *CloudWatchAlarmConfiguration) SetPeriod(v int64) *CloudWatchAlarmConfiguration { - s.Period = &v - return s +// SetPeriod sets the Period field's value. +func (s *CloudWatchAlarmConfiguration) SetPeriod(v int64) *CloudWatchAlarmConfiguration { + s.Period = &v + return s +} + +// SetStatistic sets the Statistic field's value. +func (s *CloudWatchAlarmConfiguration) SetStatistic(v string) *CloudWatchAlarmConfiguration { + s.Statistic = &v + return s +} + +// SetThreshold sets the Threshold field's value. +func (s *CloudWatchAlarmConfiguration) SetThreshold(v float64) *CloudWatchAlarmConfiguration { + s.Threshold = &v + return s +} + +// A complex type that is an entry in an CidrCollection (https://docs.aws.amazon.com/Route53/latest/APIReference/API_CidrCollection.html) +// array. +type CollectionSummary struct { + _ struct{} `type:"structure"` + + // The ARN of the collection summary. Can be used to reference the collection + // in IAM policy or cross-account. + Arn *string `min:"20" type:"string"` + + // Unique ID for the CIDR collection. + Id *string `type:"string"` + + // The name of a CIDR collection. + Name *string `min:"1" type:"string"` + + // A sequential counter that Route 53 sets to 1 when you create a CIDR collection + // and increments by 1 each time you update settings for the CIDR collection. + Version *int64 `min:"1" type:"long"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CollectionSummary) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CollectionSummary) GoString() string { + return s.String() +} + +// SetArn sets the Arn field's value. +func (s *CollectionSummary) SetArn(v string) *CollectionSummary { + s.Arn = &v + return s +} + +// SetId sets the Id field's value. +func (s *CollectionSummary) SetId(v string) *CollectionSummary { + s.Id = &v + return s +} + +// SetName sets the Name field's value. +func (s *CollectionSummary) SetName(v string) *CollectionSummary { + s.Name = &v + return s +} + +// SetVersion sets the Version field's value. +func (s *CollectionSummary) SetVersion(v int64) *CollectionSummary { + s.Version = &v + return s +} + +type CreateCidrCollectionInput struct { + _ struct{} `locationName:"CreateCidrCollectionRequest" type:"structure" xmlURI:"https://route53.amazonaws.com/doc/2013-04-01/"` + + // A client-specific token that allows requests to be securely retried so that + // the intended outcome will only occur once, retries receive a similar response, + // and there are no additional edge cases to handle. + // + // CallerReference is a required field + CallerReference *string `min:"1" type:"string" required:"true"` + + // A unique identifier for the account that can be used to reference the collection + // from other API calls. + // + // Name is a required field + Name *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateCidrCollectionInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateCidrCollectionInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateCidrCollectionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateCidrCollectionInput"} + if s.CallerReference == nil { + invalidParams.Add(request.NewErrParamRequired("CallerReference")) + } + if s.CallerReference != nil && len(*s.CallerReference) < 1 { + invalidParams.Add(request.NewErrParamMinLen("CallerReference", 1)) + } + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetCallerReference sets the CallerReference field's value. +func (s *CreateCidrCollectionInput) SetCallerReference(v string) *CreateCidrCollectionInput { + s.CallerReference = &v + return s +} + +// SetName sets the Name field's value. +func (s *CreateCidrCollectionInput) SetName(v string) *CreateCidrCollectionInput { + s.Name = &v + return s +} + +type CreateCidrCollectionOutput struct { + _ struct{} `type:"structure"` + + // A complex type that contains information about the CIDR collection. + Collection *CidrCollection `type:"structure"` + + // A unique URL that represents the location for the CIDR collection. + Location *string `location:"header" locationName:"Location" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateCidrCollectionOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s CreateCidrCollectionOutput) GoString() string { + return s.String() } -// SetStatistic sets the Statistic field's value. -func (s *CloudWatchAlarmConfiguration) SetStatistic(v string) *CloudWatchAlarmConfiguration { - s.Statistic = &v +// SetCollection sets the Collection field's value. +func (s *CreateCidrCollectionOutput) SetCollection(v *CidrCollection) *CreateCidrCollectionOutput { + s.Collection = v return s } -// SetThreshold sets the Threshold field's value. -func (s *CloudWatchAlarmConfiguration) SetThreshold(v float64) *CloudWatchAlarmConfiguration { - s.Threshold = &v +// SetLocation sets the Location field's value. +func (s *CreateCidrCollectionOutput) SetLocation(v string) *CreateCidrCollectionOutput { + s.Location = &v return s } @@ -9680,6 +10951,77 @@ func (s *DelegationSet) SetNameServers(v []*string) *DelegationSet { return s } +type DeleteCidrCollectionInput struct { + _ struct{} `locationName:"DeleteCidrCollectionRequest" type:"structure"` + + // The UUID of the collection to delete. + // + // Id is a required field + Id *string `location:"uri" locationName:"CidrCollectionId" type:"string" required:"true"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteCidrCollectionInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteCidrCollectionInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteCidrCollectionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteCidrCollectionInput"} + if s.Id == nil { + invalidParams.Add(request.NewErrParamRequired("Id")) + } + if s.Id != nil && len(*s.Id) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Id", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetId sets the Id field's value. +func (s *DeleteCidrCollectionInput) SetId(v string) *DeleteCidrCollectionInput { + s.Id = &v + return s +} + +type DeleteCidrCollectionOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteCidrCollectionOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s DeleteCidrCollectionOutput) GoString() string { + return s.String() +} + // This action deletes a health check. type DeleteHealthCheckInput struct { _ struct{} `locationName:"DeleteHealthCheckRequest" type:"structure"` @@ -10987,7 +12329,7 @@ type GetChangeInput struct { // the request. // // Id is a required field - Id *string `location:"uri" locationName:"Id" type:"string" required:"true"` + Id *string `location:"uri" locationName:"Id" min:"1" type:"string" required:"true"` } // String returns the string representation. @@ -13533,16 +14875,198 @@ type KeySigningKey struct { // // INTERNAL_FAILURE // - // There was an error during a request. Before you can continue to work with - // DNSSEC signing, including actions that involve this KSK, you must correct - // the problem. For example, you may need to activate or deactivate the KSK. - Status *string `min:"5" type:"string"` + // There was an error during a request. Before you can continue to work with + // DNSSEC signing, including actions that involve this KSK, you must correct + // the problem. For example, you may need to activate or deactivate the KSK. + Status *string `min:"5" type:"string"` + + // The status message provided for the following key-signing key (KSK) statuses: + // ACTION_NEEDED or INTERNAL_FAILURE. The status message includes information + // about what the problem might be and steps that you can take to correct the + // issue. + StatusMessage *string `type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s KeySigningKey) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s KeySigningKey) GoString() string { + return s.String() +} + +// SetCreatedDate sets the CreatedDate field's value. +func (s *KeySigningKey) SetCreatedDate(v time.Time) *KeySigningKey { + s.CreatedDate = &v + return s +} + +// SetDNSKEYRecord sets the DNSKEYRecord field's value. +func (s *KeySigningKey) SetDNSKEYRecord(v string) *KeySigningKey { + s.DNSKEYRecord = &v + return s +} + +// SetDSRecord sets the DSRecord field's value. +func (s *KeySigningKey) SetDSRecord(v string) *KeySigningKey { + s.DSRecord = &v + return s +} + +// SetDigestAlgorithmMnemonic sets the DigestAlgorithmMnemonic field's value. +func (s *KeySigningKey) SetDigestAlgorithmMnemonic(v string) *KeySigningKey { + s.DigestAlgorithmMnemonic = &v + return s +} + +// SetDigestAlgorithmType sets the DigestAlgorithmType field's value. +func (s *KeySigningKey) SetDigestAlgorithmType(v int64) *KeySigningKey { + s.DigestAlgorithmType = &v + return s +} + +// SetDigestValue sets the DigestValue field's value. +func (s *KeySigningKey) SetDigestValue(v string) *KeySigningKey { + s.DigestValue = &v + return s +} + +// SetFlag sets the Flag field's value. +func (s *KeySigningKey) SetFlag(v int64) *KeySigningKey { + s.Flag = &v + return s +} + +// SetKeyTag sets the KeyTag field's value. +func (s *KeySigningKey) SetKeyTag(v int64) *KeySigningKey { + s.KeyTag = &v + return s +} + +// SetKmsArn sets the KmsArn field's value. +func (s *KeySigningKey) SetKmsArn(v string) *KeySigningKey { + s.KmsArn = &v + return s +} + +// SetLastModifiedDate sets the LastModifiedDate field's value. +func (s *KeySigningKey) SetLastModifiedDate(v time.Time) *KeySigningKey { + s.LastModifiedDate = &v + return s +} + +// SetName sets the Name field's value. +func (s *KeySigningKey) SetName(v string) *KeySigningKey { + s.Name = &v + return s +} + +// SetPublicKey sets the PublicKey field's value. +func (s *KeySigningKey) SetPublicKey(v string) *KeySigningKey { + s.PublicKey = &v + return s +} + +// SetSigningAlgorithmMnemonic sets the SigningAlgorithmMnemonic field's value. +func (s *KeySigningKey) SetSigningAlgorithmMnemonic(v string) *KeySigningKey { + s.SigningAlgorithmMnemonic = &v + return s +} + +// SetSigningAlgorithmType sets the SigningAlgorithmType field's value. +func (s *KeySigningKey) SetSigningAlgorithmType(v int64) *KeySigningKey { + s.SigningAlgorithmType = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *KeySigningKey) SetStatus(v string) *KeySigningKey { + s.Status = &v + return s +} + +// SetStatusMessage sets the StatusMessage field's value. +func (s *KeySigningKey) SetStatusMessage(v string) *KeySigningKey { + s.StatusMessage = &v + return s +} + +// If a health check or hosted zone was created by another service, LinkedService +// is a complex type that describes the service that created the resource. When +// a resource is created by another service, you can't edit or delete it using +// Amazon Route 53. +type LinkedService struct { + _ struct{} `type:"structure"` + + // If the health check or hosted zone was created by another service, an optional + // description that can be provided by the other service. When a resource is + // created by another service, you can't edit or delete it using Amazon Route + // 53. + Description *string `type:"string"` + + // If the health check or hosted zone was created by another service, the service + // that created the resource. When a resource is created by another service, + // you can't edit or delete it using Amazon Route 53. + ServicePrincipal *string `type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s LinkedService) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s LinkedService) GoString() string { + return s.String() +} + +// SetDescription sets the Description field's value. +func (s *LinkedService) SetDescription(v string) *LinkedService { + s.Description = &v + return s +} + +// SetServicePrincipal sets the ServicePrincipal field's value. +func (s *LinkedService) SetServicePrincipal(v string) *LinkedService { + s.ServicePrincipal = &v + return s +} + +type ListCidrBlocksInput struct { + _ struct{} `locationName:"ListCidrBlocksRequest" type:"structure"` + + // The UUID of the CIDR collection. + // + // CollectionId is a required field + CollectionId *string `location:"uri" locationName:"CidrCollectionId" type:"string" required:"true"` - // The status message provided for the following key-signing key (KSK) statuses: - // ACTION_NEEDED or INTERNAL_FAILURE. The status message includes information - // about what the problem might be and steps that you can take to correct the - // issue. - StatusMessage *string `type:"string"` + // The name of the CIDR collection location. + LocationName *string `location:"querystring" locationName:"location" min:"1" type:"string"` + + // Maximum number of results you want returned. + MaxResults *string `location:"querystring" locationName:"maxresults" type:"string"` + + // An opaque pagination token to indicate where the service is to begin enumerating + // results. + NextToken *string `location:"querystring" locationName:"nexttoken" type:"string"` } // String returns the string representation. @@ -13550,7 +15074,7 @@ type KeySigningKey struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s KeySigningKey) String() string { +func (s ListCidrBlocksInput) String() string { return awsutil.Prettify(s) } @@ -13559,123 +15083,263 @@ func (s KeySigningKey) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s KeySigningKey) GoString() string { +func (s ListCidrBlocksInput) GoString() string { return s.String() } -// SetCreatedDate sets the CreatedDate field's value. -func (s *KeySigningKey) SetCreatedDate(v time.Time) *KeySigningKey { - s.CreatedDate = &v - return s +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListCidrBlocksInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListCidrBlocksInput"} + if s.CollectionId == nil { + invalidParams.Add(request.NewErrParamRequired("CollectionId")) + } + if s.CollectionId != nil && len(*s.CollectionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("CollectionId", 1)) + } + if s.LocationName != nil && len(*s.LocationName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("LocationName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// SetDNSKEYRecord sets the DNSKEYRecord field's value. -func (s *KeySigningKey) SetDNSKEYRecord(v string) *KeySigningKey { - s.DNSKEYRecord = &v +// SetCollectionId sets the CollectionId field's value. +func (s *ListCidrBlocksInput) SetCollectionId(v string) *ListCidrBlocksInput { + s.CollectionId = &v return s } -// SetDSRecord sets the DSRecord field's value. -func (s *KeySigningKey) SetDSRecord(v string) *KeySigningKey { - s.DSRecord = &v +// SetLocationName sets the LocationName field's value. +func (s *ListCidrBlocksInput) SetLocationName(v string) *ListCidrBlocksInput { + s.LocationName = &v return s } -// SetDigestAlgorithmMnemonic sets the DigestAlgorithmMnemonic field's value. -func (s *KeySigningKey) SetDigestAlgorithmMnemonic(v string) *KeySigningKey { - s.DigestAlgorithmMnemonic = &v +// SetMaxResults sets the MaxResults field's value. +func (s *ListCidrBlocksInput) SetMaxResults(v string) *ListCidrBlocksInput { + s.MaxResults = &v return s } -// SetDigestAlgorithmType sets the DigestAlgorithmType field's value. -func (s *KeySigningKey) SetDigestAlgorithmType(v int64) *KeySigningKey { - s.DigestAlgorithmType = &v +// SetNextToken sets the NextToken field's value. +func (s *ListCidrBlocksInput) SetNextToken(v string) *ListCidrBlocksInput { + s.NextToken = &v return s } -// SetDigestValue sets the DigestValue field's value. -func (s *KeySigningKey) SetDigestValue(v string) *KeySigningKey { - s.DigestValue = &v - return s +type ListCidrBlocksOutput struct { + _ struct{} `type:"structure"` + + // A complex type that contains information about the CIDR blocks. + CidrBlocks []*CidrBlockSummary `type:"list"` + + // An opaque pagination token to indicate where the service is to begin enumerating + // results. + // + // If no value is provided, the listing of results starts from the beginning. + NextToken *string `type:"string"` } -// SetFlag sets the Flag field's value. -func (s *KeySigningKey) SetFlag(v int64) *KeySigningKey { - s.Flag = &v - return s +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListCidrBlocksOutput) String() string { + return awsutil.Prettify(s) } -// SetKeyTag sets the KeyTag field's value. -func (s *KeySigningKey) SetKeyTag(v int64) *KeySigningKey { - s.KeyTag = &v +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListCidrBlocksOutput) GoString() string { + return s.String() +} + +// SetCidrBlocks sets the CidrBlocks field's value. +func (s *ListCidrBlocksOutput) SetCidrBlocks(v []*CidrBlockSummary) *ListCidrBlocksOutput { + s.CidrBlocks = v return s } -// SetKmsArn sets the KmsArn field's value. -func (s *KeySigningKey) SetKmsArn(v string) *KeySigningKey { - s.KmsArn = &v +// SetNextToken sets the NextToken field's value. +func (s *ListCidrBlocksOutput) SetNextToken(v string) *ListCidrBlocksOutput { + s.NextToken = &v return s } -// SetLastModifiedDate sets the LastModifiedDate field's value. -func (s *KeySigningKey) SetLastModifiedDate(v time.Time) *KeySigningKey { - s.LastModifiedDate = &v +type ListCidrCollectionsInput struct { + _ struct{} `locationName:"ListCidrCollectionsRequest" type:"structure"` + + // The maximum number of CIDR collections to return in the response. + MaxResults *string `location:"querystring" locationName:"maxresults" type:"string"` + + // An opaque pagination token to indicate where the service is to begin enumerating + // results. + // + // If no value is provided, the listing of results starts from the beginning. + NextToken *string `location:"querystring" locationName:"nexttoken" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListCidrCollectionsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListCidrCollectionsInput) GoString() string { + return s.String() +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListCidrCollectionsInput) SetMaxResults(v string) *ListCidrCollectionsInput { + s.MaxResults = &v return s } -// SetName sets the Name field's value. -func (s *KeySigningKey) SetName(v string) *KeySigningKey { - s.Name = &v +// SetNextToken sets the NextToken field's value. +func (s *ListCidrCollectionsInput) SetNextToken(v string) *ListCidrCollectionsInput { + s.NextToken = &v return s } -// SetPublicKey sets the PublicKey field's value. -func (s *KeySigningKey) SetPublicKey(v string) *KeySigningKey { - s.PublicKey = &v +type ListCidrCollectionsOutput struct { + _ struct{} `type:"structure"` + + // A complex type with information about the CIDR collection. + CidrCollections []*CollectionSummary `type:"list"` + + // An opaque pagination token to indicate where the service is to begin enumerating + // results. + // + // If no value is provided, the listing of results starts from the beginning. + NextToken *string `type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListCidrCollectionsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListCidrCollectionsOutput) GoString() string { + return s.String() +} + +// SetCidrCollections sets the CidrCollections field's value. +func (s *ListCidrCollectionsOutput) SetCidrCollections(v []*CollectionSummary) *ListCidrCollectionsOutput { + s.CidrCollections = v return s } -// SetSigningAlgorithmMnemonic sets the SigningAlgorithmMnemonic field's value. -func (s *KeySigningKey) SetSigningAlgorithmMnemonic(v string) *KeySigningKey { - s.SigningAlgorithmMnemonic = &v +// SetNextToken sets the NextToken field's value. +func (s *ListCidrCollectionsOutput) SetNextToken(v string) *ListCidrCollectionsOutput { + s.NextToken = &v return s } -// SetSigningAlgorithmType sets the SigningAlgorithmType field's value. -func (s *KeySigningKey) SetSigningAlgorithmType(v int64) *KeySigningKey { - s.SigningAlgorithmType = &v +type ListCidrLocationsInput struct { + _ struct{} `locationName:"ListCidrLocationsRequest" type:"structure"` + + // The CIDR collection ID. + // + // CollectionId is a required field + CollectionId *string `location:"uri" locationName:"CidrCollectionId" type:"string" required:"true"` + + // The maximum number of CIDR collection locations to return in the response. + MaxResults *string `location:"querystring" locationName:"maxresults" type:"string"` + + // An opaque pagination token to indicate where the service is to begin enumerating + // results. + // + // If no value is provided, the listing of results starts from the beginning. + NextToken *string `location:"querystring" locationName:"nexttoken" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListCidrLocationsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s ListCidrLocationsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListCidrLocationsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListCidrLocationsInput"} + if s.CollectionId == nil { + invalidParams.Add(request.NewErrParamRequired("CollectionId")) + } + if s.CollectionId != nil && len(*s.CollectionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("CollectionId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetCollectionId sets the CollectionId field's value. +func (s *ListCidrLocationsInput) SetCollectionId(v string) *ListCidrLocationsInput { + s.CollectionId = &v return s } -// SetStatus sets the Status field's value. -func (s *KeySigningKey) SetStatus(v string) *KeySigningKey { - s.Status = &v +// SetMaxResults sets the MaxResults field's value. +func (s *ListCidrLocationsInput) SetMaxResults(v string) *ListCidrLocationsInput { + s.MaxResults = &v return s } -// SetStatusMessage sets the StatusMessage field's value. -func (s *KeySigningKey) SetStatusMessage(v string) *KeySigningKey { - s.StatusMessage = &v +// SetNextToken sets the NextToken field's value. +func (s *ListCidrLocationsInput) SetNextToken(v string) *ListCidrLocationsInput { + s.NextToken = &v return s } -// If a health check or hosted zone was created by another service, LinkedService -// is a complex type that describes the service that created the resource. When -// a resource is created by another service, you can't edit or delete it using -// Amazon Route 53. -type LinkedService struct { +type ListCidrLocationsOutput struct { _ struct{} `type:"structure"` - // If the health check or hosted zone was created by another service, an optional - // description that can be provided by the other service. When a resource is - // created by another service, you can't edit or delete it using Amazon Route - // 53. - Description *string `type:"string"` + // A complex type that contains information about the list of CIDR locations. + CidrLocations []*LocationSummary `type:"list"` - // If the health check or hosted zone was created by another service, the service - // that created the resource. When a resource is created by another service, - // you can't edit or delete it using Amazon Route 53. - ServicePrincipal *string `type:"string"` + // An opaque pagination token to indicate where the service is to begin enumerating + // results. + // + // If no value is provided, the listing of results starts from the beginning. + NextToken *string `type:"string"` } // String returns the string representation. @@ -13683,7 +15347,7 @@ type LinkedService struct { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s LinkedService) String() string { +func (s ListCidrLocationsOutput) String() string { return awsutil.Prettify(s) } @@ -13692,19 +15356,19 @@ func (s LinkedService) String() string { // API parameter values that are decorated as "sensitive" in the API will not // be included in the string output. The member name will be present, but the // value will be replaced with "sensitive". -func (s LinkedService) GoString() string { +func (s ListCidrLocationsOutput) GoString() string { return s.String() } -// SetDescription sets the Description field's value. -func (s *LinkedService) SetDescription(v string) *LinkedService { - s.Description = &v +// SetCidrLocations sets the CidrLocations field's value. +func (s *ListCidrLocationsOutput) SetCidrLocations(v []*LocationSummary) *ListCidrLocationsOutput { + s.CidrLocations = v return s } -// SetServicePrincipal sets the ServicePrincipal field's value. -func (s *LinkedService) SetServicePrincipal(v string) *LinkedService { - s.ServicePrincipal = &v +// SetNextToken sets the NextToken field's value. +func (s *ListCidrLocationsOutput) SetNextToken(v string) *ListCidrLocationsOutput { + s.NextToken = &v return s } @@ -16243,6 +17907,38 @@ func (s *ListVPCAssociationAuthorizationsOutput) SetVPCs(v []*VPC) *ListVPCAssoc return s } +// A complex type that contains information about the CIDR location. +type LocationSummary struct { + _ struct{} `type:"structure"` + + // A string that specifies a location name. + LocationName *string `min:"1" type:"string"` +} + +// String returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s LocationSummary) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation. +// +// API parameter values that are decorated as "sensitive" in the API will not +// be included in the string output. The member name will be present, but the +// value will be replaced with "sensitive". +func (s LocationSummary) GoString() string { + return s.String() +} + +// SetLocationName sets the LocationName field's value. +func (s *LocationSummary) SetLocationName(v string) *LocationSummary { + s.LocationName = &v + return s +} + // A complex type that contains information about a configuration for DNS query // logging. type QueryLoggingConfig struct { @@ -16381,6 +18077,13 @@ type ResourceRecordSet struct { // in the Amazon Route 53 Developer Guide. AliasTarget *AliasTarget `type:"structure"` + // The object that is specified in resource record set object when you are linking + // a resource record set to a CIDR location. + // + // A LocationName with an asterisk “*” can be used to create a default CIDR + // record. CollectionId is still required for default record. + CidrRoutingConfig *CidrRoutingConfig `type:"structure"` + // Failover resource record sets only: To configure failover, you add the Failover // element to two resource record sets. For one resource record set, you specify // PRIMARY as the value for Failover; for the other resource record set, you @@ -16834,6 +18537,11 @@ func (s *ResourceRecordSet) Validate() error { invalidParams.AddNested("AliasTarget", err.(request.ErrInvalidParams)) } } + if s.CidrRoutingConfig != nil { + if err := s.CidrRoutingConfig.Validate(); err != nil { + invalidParams.AddNested("CidrRoutingConfig", err.(request.ErrInvalidParams)) + } + } if s.GeoLocation != nil { if err := s.GeoLocation.Validate(); err != nil { invalidParams.AddNested("GeoLocation", err.(request.ErrInvalidParams)) @@ -16862,6 +18570,12 @@ func (s *ResourceRecordSet) SetAliasTarget(v *AliasTarget) *ResourceRecordSet { return s } +// SetCidrRoutingConfig sets the CidrRoutingConfig field's value. +func (s *ResourceRecordSet) SetCidrRoutingConfig(v *CidrRoutingConfig) *ResourceRecordSet { + s.CidrRoutingConfig = v + return s +} + // SetFailover sets the Failover field's value. func (s *ResourceRecordSet) SetFailover(v string) *ResourceRecordSet { s.Failover = &v @@ -18616,6 +20330,22 @@ func ChangeStatus_Values() []string { } } +const ( + // CidrCollectionChangeActionPut is a CidrCollectionChangeAction enum value + CidrCollectionChangeActionPut = "PUT" + + // CidrCollectionChangeActionDeleteIfExists is a CidrCollectionChangeAction enum value + CidrCollectionChangeActionDeleteIfExists = "DELETE_IF_EXISTS" +) + +// CidrCollectionChangeAction_Values returns all elements of the CidrCollectionChangeAction enum +func CidrCollectionChangeAction_Values() []string { + return []string{ + CidrCollectionChangeActionPut, + CidrCollectionChangeActionDeleteIfExists, + } +} + const ( // CloudWatchRegionUsEast1 is a CloudWatchRegion enum value CloudWatchRegionUsEast1 = "us-east-1" diff --git a/service/route53/errors.go b/service/route53/errors.go index 49bc7e0d26..f70b474d9d 100644 --- a/service/route53/errors.go +++ b/service/route53/errors.go @@ -4,6 +4,32 @@ package route53 const ( + // ErrCodeCidrBlockInUseException for service response error code + // "CidrBlockInUseException". + // + // This CIDR block is already in use. + ErrCodeCidrBlockInUseException = "CidrBlockInUseException" + + // ErrCodeCidrCollectionAlreadyExistsException for service response error code + // "CidrCollectionAlreadyExistsException". + // + // A CIDR collection with this name and a different caller reference already + // exists in this account. + ErrCodeCidrCollectionAlreadyExistsException = "CidrCollectionAlreadyExistsException" + + // ErrCodeCidrCollectionInUseException for service response error code + // "CidrCollectionInUseException". + // + // This CIDR collection is in use, and isn't empty. + ErrCodeCidrCollectionInUseException = "CidrCollectionInUseException" + + // ErrCodeCidrCollectionVersionMismatchException for service response error code + // "CidrCollectionVersionMismatchException". + // + // The CIDR collection version you provided, doesn't match the one in the ListCidrCollections + // operation. + ErrCodeCidrCollectionVersionMismatchException = "CidrCollectionVersionMismatchException" + // ErrCodeConcurrentModification for service response error code // "ConcurrentModification". // @@ -279,15 +305,10 @@ const ( // ErrCodeLimitsExceeded for service response error code // "LimitsExceeded". // - // This operation can't be completed either because the current account has - // reached the limit on reusable delegation sets that it can create or because - // you've reached the limit on the number of Amazon VPCs that you can associate - // with a private hosted zone. To get the current limit on the number of reusable - // delegation sets, see GetAccountLimit (https://docs.aws.amazon.com/Route53/latest/APIReference/API_GetAccountLimit.html). - // To get the current limit on the number of Amazon VPCs that you can associate - // with a private hosted zone, see GetHostedZoneLimit (https://docs.aws.amazon.com/Route53/latest/APIReference/API_GetHostedZoneLimit.html). - // To request a higher limit, create a case (http://aws.amazon.com/route53-request) - // with the Amazon Web Services Support Center. + // This operation can't be completed because the current account has reached + // the limit on the resource you are trying to create. To request a higher limit, + // create a case (http://aws.amazon.com/route53-request) with the Amazon Web + // Services Support Center. ErrCodeLimitsExceeded = "LimitsExceeded" // ErrCodeNoSuchChange for service response error code @@ -296,6 +317,18 @@ const ( // A change with the specified change ID does not exist. ErrCodeNoSuchChange = "NoSuchChange" + // ErrCodeNoSuchCidrCollectionException for service response error code + // "NoSuchCidrCollectionException". + // + // The CIDR collection you specified, doesn't exist. + ErrCodeNoSuchCidrCollectionException = "NoSuchCidrCollectionException" + + // ErrCodeNoSuchCidrLocationException for service response error code + // "NoSuchCidrLocationException". + // + // The CIDR collection location doesn't match any locations in your account. + ErrCodeNoSuchCidrLocationException = "NoSuchCidrLocationException" + // ErrCodeNoSuchCloudWatchLogsLogGroup for service response error code // "NoSuchCloudWatchLogsLogGroup". // diff --git a/service/route53/route53iface/interface.go b/service/route53/route53iface/interface.go index 81ad6b4709..f6b639d93e 100644 --- a/service/route53/route53iface/interface.go +++ b/service/route53/route53iface/interface.go @@ -68,6 +68,10 @@ type Route53API interface { AssociateVPCWithHostedZoneWithContext(aws.Context, *route53.AssociateVPCWithHostedZoneInput, ...request.Option) (*route53.AssociateVPCWithHostedZoneOutput, error) AssociateVPCWithHostedZoneRequest(*route53.AssociateVPCWithHostedZoneInput) (*request.Request, *route53.AssociateVPCWithHostedZoneOutput) + ChangeCidrCollection(*route53.ChangeCidrCollectionInput) (*route53.ChangeCidrCollectionOutput, error) + ChangeCidrCollectionWithContext(aws.Context, *route53.ChangeCidrCollectionInput, ...request.Option) (*route53.ChangeCidrCollectionOutput, error) + ChangeCidrCollectionRequest(*route53.ChangeCidrCollectionInput) (*request.Request, *route53.ChangeCidrCollectionOutput) + ChangeResourceRecordSets(*route53.ChangeResourceRecordSetsInput) (*route53.ChangeResourceRecordSetsOutput, error) ChangeResourceRecordSetsWithContext(aws.Context, *route53.ChangeResourceRecordSetsInput, ...request.Option) (*route53.ChangeResourceRecordSetsOutput, error) ChangeResourceRecordSetsRequest(*route53.ChangeResourceRecordSetsInput) (*request.Request, *route53.ChangeResourceRecordSetsOutput) @@ -76,6 +80,10 @@ type Route53API interface { ChangeTagsForResourceWithContext(aws.Context, *route53.ChangeTagsForResourceInput, ...request.Option) (*route53.ChangeTagsForResourceOutput, error) ChangeTagsForResourceRequest(*route53.ChangeTagsForResourceInput) (*request.Request, *route53.ChangeTagsForResourceOutput) + CreateCidrCollection(*route53.CreateCidrCollectionInput) (*route53.CreateCidrCollectionOutput, error) + CreateCidrCollectionWithContext(aws.Context, *route53.CreateCidrCollectionInput, ...request.Option) (*route53.CreateCidrCollectionOutput, error) + CreateCidrCollectionRequest(*route53.CreateCidrCollectionInput) (*request.Request, *route53.CreateCidrCollectionOutput) + CreateHealthCheck(*route53.CreateHealthCheckInput) (*route53.CreateHealthCheckOutput, error) CreateHealthCheckWithContext(aws.Context, *route53.CreateHealthCheckInput, ...request.Option) (*route53.CreateHealthCheckOutput, error) CreateHealthCheckRequest(*route53.CreateHealthCheckInput) (*request.Request, *route53.CreateHealthCheckOutput) @@ -116,6 +124,10 @@ type Route53API interface { DeactivateKeySigningKeyWithContext(aws.Context, *route53.DeactivateKeySigningKeyInput, ...request.Option) (*route53.DeactivateKeySigningKeyOutput, error) DeactivateKeySigningKeyRequest(*route53.DeactivateKeySigningKeyInput) (*request.Request, *route53.DeactivateKeySigningKeyOutput) + DeleteCidrCollection(*route53.DeleteCidrCollectionInput) (*route53.DeleteCidrCollectionOutput, error) + DeleteCidrCollectionWithContext(aws.Context, *route53.DeleteCidrCollectionInput, ...request.Option) (*route53.DeleteCidrCollectionOutput, error) + DeleteCidrCollectionRequest(*route53.DeleteCidrCollectionInput) (*request.Request, *route53.DeleteCidrCollectionOutput) + DeleteHealthCheck(*route53.DeleteHealthCheckInput) (*route53.DeleteHealthCheckOutput, error) DeleteHealthCheckWithContext(aws.Context, *route53.DeleteHealthCheckInput, ...request.Option) (*route53.DeleteHealthCheckOutput, error) DeleteHealthCheckRequest(*route53.DeleteHealthCheckInput) (*request.Request, *route53.DeleteHealthCheckOutput) @@ -232,6 +244,27 @@ type Route53API interface { GetTrafficPolicyInstanceCountWithContext(aws.Context, *route53.GetTrafficPolicyInstanceCountInput, ...request.Option) (*route53.GetTrafficPolicyInstanceCountOutput, error) GetTrafficPolicyInstanceCountRequest(*route53.GetTrafficPolicyInstanceCountInput) (*request.Request, *route53.GetTrafficPolicyInstanceCountOutput) + ListCidrBlocks(*route53.ListCidrBlocksInput) (*route53.ListCidrBlocksOutput, error) + ListCidrBlocksWithContext(aws.Context, *route53.ListCidrBlocksInput, ...request.Option) (*route53.ListCidrBlocksOutput, error) + ListCidrBlocksRequest(*route53.ListCidrBlocksInput) (*request.Request, *route53.ListCidrBlocksOutput) + + ListCidrBlocksPages(*route53.ListCidrBlocksInput, func(*route53.ListCidrBlocksOutput, bool) bool) error + ListCidrBlocksPagesWithContext(aws.Context, *route53.ListCidrBlocksInput, func(*route53.ListCidrBlocksOutput, bool) bool, ...request.Option) error + + ListCidrCollections(*route53.ListCidrCollectionsInput) (*route53.ListCidrCollectionsOutput, error) + ListCidrCollectionsWithContext(aws.Context, *route53.ListCidrCollectionsInput, ...request.Option) (*route53.ListCidrCollectionsOutput, error) + ListCidrCollectionsRequest(*route53.ListCidrCollectionsInput) (*request.Request, *route53.ListCidrCollectionsOutput) + + ListCidrCollectionsPages(*route53.ListCidrCollectionsInput, func(*route53.ListCidrCollectionsOutput, bool) bool) error + ListCidrCollectionsPagesWithContext(aws.Context, *route53.ListCidrCollectionsInput, func(*route53.ListCidrCollectionsOutput, bool) bool, ...request.Option) error + + ListCidrLocations(*route53.ListCidrLocationsInput) (*route53.ListCidrLocationsOutput, error) + ListCidrLocationsWithContext(aws.Context, *route53.ListCidrLocationsInput, ...request.Option) (*route53.ListCidrLocationsOutput, error) + ListCidrLocationsRequest(*route53.ListCidrLocationsInput) (*request.Request, *route53.ListCidrLocationsOutput) + + ListCidrLocationsPages(*route53.ListCidrLocationsInput, func(*route53.ListCidrLocationsOutput, bool) bool) error + ListCidrLocationsPagesWithContext(aws.Context, *route53.ListCidrLocationsInput, func(*route53.ListCidrLocationsOutput, bool) bool, ...request.Option) error + ListGeoLocations(*route53.ListGeoLocationsInput) (*route53.ListGeoLocationsOutput, error) ListGeoLocationsWithContext(aws.Context, *route53.ListGeoLocationsInput, ...request.Option) (*route53.ListGeoLocationsOutput, error) ListGeoLocationsRequest(*route53.ListGeoLocationsInput) (*request.Request, *route53.ListGeoLocationsOutput)