From c352579a7242066f07048a245ce80f4721db15c5 Mon Sep 17 00:00:00 2001 From: awssdkgo Date: Thu, 4 Nov 2021 18:43:15 +0000 Subject: [PATCH] Release v1.41.18 (2021-11-04) === ### Service Client Updates * `service/chime-sdk-meetings`: Adds new service * `service/connect`: Updates service API, documentation, and paginators * `service/ec2`: Updates service API and documentation * This release adds a new instance replacement strategy for EC2 Fleet, Spot Fleet. Now you can select an action to perform when your instance gets a rebalance notification. EC2 Fleet, Spot Fleet can launch a replacement then terminate the instance that received notification after a termination delay * `service/iotwireless`: Updates service API, documentation, and paginators * `service/sagemaker`: Updates service API and documentation * ListDevices and DescribeDevice now show Edge Manager agent version. ### SDK Bugs * `aws/signer/v4`: Fix Signer not trimming header value spaces * Fixes the AWS Sigv4 signer to trim header value's whitespace when computing the canonical headers block of the string to sign. --- CHANGELOG.md | 16 + CHANGELOG_PENDING.md | 2 - aws/endpoints/defaults.go | 1 + aws/version.go | 2 +- .../chime-sdk-meetings/2021-07-15/api-2.json | 712 + .../chime-sdk-meetings/2021-07-15/docs-2.json | 388 + .../2021-07-15/examples-1.json | 5 + .../2021-07-15/paginators-1.json | 9 + models/apis/connect/2017-08-08/api-2.json | 242 + models/apis/connect/2017-08-08/docs-2.json | 138 +- .../apis/connect/2017-08-08/paginators-1.json | 6 + models/apis/ec2/2016-11-15/api-2.json | 21 +- models/apis/ec2/2016-11-15/docs-2.json | 11 +- models/apis/iotwireless/2020-11-22/api-2.json | 1321 +- .../apis/iotwireless/2020-11-22/docs-2.json | 680 +- .../iotwireless/2020-11-22/paginators-1.json | 15 + models/apis/sagemaker/2017-07-24/api-2.json | 6 +- models/apis/sagemaker/2017-07-24/docs-2.json | 2 + models/endpoints/endpoints.json | 30 +- service/chimesdkmeetings/api.go | 3644 ++++ .../chimesdkmeetingsiface/interface.go | 111 + service/chimesdkmeetings/doc.go | 31 + service/chimesdkmeetings/errors.go | 63 + service/chimesdkmeetings/service.go | 104 + service/connect/api.go | 1425 +- service/connect/connectiface/interface.go | 23 + service/connect/doc.go | 5 +- service/connect/errors.go | 7 + service/ec2/api.go | 92 +- service/iotwireless/api.go | 16357 +++++++++++----- .../iotwireless/iotwirelessiface/interface.go | 113 + service/sagemaker/api.go | 18 + 32 files changed, 20305 insertions(+), 5295 deletions(-) create mode 100644 models/apis/chime-sdk-meetings/2021-07-15/api-2.json create mode 100644 models/apis/chime-sdk-meetings/2021-07-15/docs-2.json create mode 100644 models/apis/chime-sdk-meetings/2021-07-15/examples-1.json create mode 100644 models/apis/chime-sdk-meetings/2021-07-15/paginators-1.json create mode 100644 service/chimesdkmeetings/api.go create mode 100644 service/chimesdkmeetings/chimesdkmeetingsiface/interface.go create mode 100644 service/chimesdkmeetings/doc.go create mode 100644 service/chimesdkmeetings/errors.go create mode 100644 service/chimesdkmeetings/service.go diff --git a/CHANGELOG.md b/CHANGELOG.md index 8904dcb2b12..e1016fc94fe 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,19 @@ +Release v1.41.18 (2021-11-04) +=== + +### Service Client Updates +* `service/chime-sdk-meetings`: Adds new service +* `service/connect`: Updates service API, documentation, and paginators +* `service/ec2`: Updates service API and documentation + * This release adds a new instance replacement strategy for EC2 Fleet, Spot Fleet. Now you can select an action to perform when your instance gets a rebalance notification. EC2 Fleet, Spot Fleet can launch a replacement then terminate the instance that received notification after a termination delay +* `service/iotwireless`: Updates service API, documentation, and paginators +* `service/sagemaker`: Updates service API and documentation + * ListDevices and DescribeDevice now show Edge Manager agent version. + +### SDK Bugs +* `aws/signer/v4`: Fix Signer not trimming header value spaces + * Fixes the AWS Sigv4 signer to trim header value's whitespace when computing the canonical headers block of the string to sign. + Release v1.41.17 (2021-11-03) === diff --git a/CHANGELOG_PENDING.md b/CHANGELOG_PENDING.md index 79402172759..8a1927a39ca 100644 --- a/CHANGELOG_PENDING.md +++ b/CHANGELOG_PENDING.md @@ -3,5 +3,3 @@ ### SDK Enhancements ### SDK Bugs -* `aws/signer/v4`: Fix Signer not trimming header value spaces - * Fixes the AWS Sigv4 signer to trim header value's whitespace when computing the canonical headers block of the string to sign. diff --git a/aws/endpoints/defaults.go b/aws/endpoints/defaults.go index ce847d47ff2..e99475a40c4 100644 --- a/aws/endpoints/defaults.go +++ b/aws/endpoints/defaults.go @@ -3815,6 +3815,7 @@ var awsPartition = partition{ "ap-east-1": endpoint{}, "ap-northeast-1": endpoint{}, "ap-northeast-2": endpoint{}, + "ap-northeast-3": endpoint{}, "ap-south-1": endpoint{}, "ap-southeast-1": endpoint{}, "ap-southeast-2": endpoint{}, diff --git a/aws/version.go b/aws/version.go index 1cfa43cb3a0..0291fd75e4b 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.41.17" +const SDKVersion = "1.41.18" 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 new file mode 100644 index 00000000000..4b9da79e39c --- /dev/null +++ b/models/apis/chime-sdk-meetings/2021-07-15/api-2.json @@ -0,0 +1,712 @@ +{ + "version":"2.0", + "metadata":{ + "apiVersion":"2021-07-15", + "endpointPrefix":"meetings-chime", + "protocol":"rest-json", + "serviceFullName":"Amazon Chime SDK Meetings", + "serviceId":"Chime SDK Meetings", + "signatureVersion":"v4", + "signingName":"chime", + "uid":"chime-sdk-meetings-2021-07-15" + }, + "operations":{ + "BatchCreateAttendee":{ + "name":"BatchCreateAttendee", + "http":{ + "method":"POST", + "requestUri":"/meetings/{MeetingId}/attendees?operation=batch-create" + }, + "input":{"shape":"BatchCreateAttendeeRequest"}, + "output":{"shape":"BatchCreateAttendeeResponse"}, + "errors":[ + {"shape":"BadRequestException"}, + {"shape":"UnauthorizedException"}, + {"shape":"ServiceUnavailableException"}, + {"shape":"NotFoundException"}, + {"shape":"ForbiddenException"}, + {"shape":"LimitExceededException"} + ] + }, + "CreateAttendee":{ + "name":"CreateAttendee", + "http":{ + "method":"POST", + "requestUri":"/meetings/{MeetingId}/attendees" + }, + "input":{"shape":"CreateAttendeeRequest"}, + "output":{"shape":"CreateAttendeeResponse"}, + "errors":[ + {"shape":"BadRequestException"}, + {"shape":"ForbiddenException"}, + {"shape":"UnauthorizedException"}, + {"shape":"UnprocessableEntityException"}, + {"shape":"ServiceUnavailableException"}, + {"shape":"NotFoundException"}, + {"shape":"LimitExceededException"} + ] + }, + "CreateMeeting":{ + "name":"CreateMeeting", + "http":{ + "method":"POST", + "requestUri":"/meetings" + }, + "input":{"shape":"CreateMeetingRequest"}, + "output":{"shape":"CreateMeetingResponse"}, + "errors":[ + {"shape":"BadRequestException"}, + {"shape":"ServiceUnavailableException"}, + {"shape":"UnauthorizedException"}, + {"shape":"LimitExceededException"} + ] + }, + "CreateMeetingWithAttendees":{ + "name":"CreateMeetingWithAttendees", + "http":{ + "method":"POST", + "requestUri":"/meetings?operation=create-attendees" + }, + "input":{"shape":"CreateMeetingWithAttendeesRequest"}, + "output":{"shape":"CreateMeetingWithAttendeesResponse"}, + "errors":[ + {"shape":"BadRequestException"}, + {"shape":"ServiceUnavailableException"}, + {"shape":"UnauthorizedException"}, + {"shape":"LimitExceededException"} + ] + }, + "DeleteAttendee":{ + "name":"DeleteAttendee", + "http":{ + "method":"DELETE", + "requestUri":"/meetings/{MeetingId}/attendees/{AttendeeId}", + "responseCode":204 + }, + "input":{"shape":"DeleteAttendeeRequest"}, + "errors":[ + {"shape":"ForbiddenException"}, + {"shape":"NotFoundException"} + ] + }, + "DeleteMeeting":{ + "name":"DeleteMeeting", + "http":{ + "method":"DELETE", + "requestUri":"/meetings/{MeetingId}", + "responseCode":204 + }, + "input":{"shape":"DeleteMeetingRequest"}, + "errors":[ + {"shape":"BadRequestException"}, + {"shape":"ForbiddenException"} + ] + }, + "GetAttendee":{ + "name":"GetAttendee", + "http":{ + "method":"GET", + "requestUri":"/meetings/{MeetingId}/attendees/{AttendeeId}" + }, + "input":{"shape":"GetAttendeeRequest"}, + "output":{"shape":"GetAttendeeResponse"}, + "errors":[ + {"shape":"BadRequestException"}, + {"shape":"NotFoundException"}, + {"shape":"ForbiddenException"} + ] + }, + "GetMeeting":{ + "name":"GetMeeting", + "http":{ + "method":"GET", + "requestUri":"/meetings/{MeetingId}" + }, + "input":{"shape":"GetMeetingRequest"}, + "output":{"shape":"GetMeetingResponse"}, + "errors":[ + {"shape":"NotFoundException"}, + {"shape":"BadRequestException"}, + {"shape":"ForbiddenException"} + ] + }, + "ListAttendees":{ + "name":"ListAttendees", + "http":{ + "method":"GET", + "requestUri":"/meetings/{MeetingId}/attendees", + "responseCode":200 + }, + "input":{"shape":"ListAttendeesRequest"}, + "output":{"shape":"ListAttendeesResponse"}, + "errors":[ + {"shape":"BadRequestException"}, + {"shape":"NotFoundException"}, + {"shape":"ForbiddenException"} + ] + }, + "StartMeetingTranscription":{ + "name":"StartMeetingTranscription", + "http":{ + "method":"POST", + "requestUri":"/meetings/{MeetingId}/transcription?operation=start", + "responseCode":200 + }, + "input":{"shape":"StartMeetingTranscriptionRequest"}, + "errors":[ + {"shape":"NotFoundException"}, + {"shape":"ForbiddenException"}, + {"shape":"BadRequestException"}, + {"shape":"UnauthorizedException"}, + {"shape":"LimitExceededException"}, + {"shape":"UnprocessableEntityException"}, + {"shape":"ServiceUnavailableException"} + ] + }, + "StopMeetingTranscription":{ + "name":"StopMeetingTranscription", + "http":{ + "method":"POST", + "requestUri":"/meetings/{MeetingId}/transcription?operation=stop", + "responseCode":200 + }, + "input":{"shape":"StopMeetingTranscriptionRequest"}, + "errors":[ + {"shape":"ForbiddenException"}, + {"shape":"NotFoundException"}, + {"shape":"BadRequestException"}, + {"shape":"UnauthorizedException"}, + {"shape":"UnprocessableEntityException"}, + {"shape":"ServiceUnavailableException"} + ] + } + }, + "shapes":{ + "Arn":{ + "type":"string", + "max":1024, + "min":1, + "pattern":"^arn[\\/\\:\\-\\_\\.a-zA-Z0-9]+$", + "sensitive":true + }, + "Attendee":{ + "type":"structure", + "members":{ + "ExternalUserId":{"shape":"ExternalUserId"}, + "AttendeeId":{"shape":"String"}, + "JoinToken":{"shape":"JoinTokenString"} + } + }, + "AttendeeList":{ + "type":"list", + "member":{"shape":"Attendee"} + }, + "BadRequestException":{ + "type":"structure", + "members":{ + "Code":{"shape":"String"}, + "Message":{"shape":"String"}, + "RequestId":{"shape":"String"} + }, + "error":{"httpStatusCode":400}, + "exception":true + }, + "BatchCreateAttendeeErrorList":{ + "type":"list", + "member":{"shape":"CreateAttendeeError"} + }, + "BatchCreateAttendeeRequest":{ + "type":"structure", + "required":[ + "MeetingId", + "Attendees" + ], + "members":{ + "MeetingId":{ + "shape":"String", + "location":"uri", + "locationName":"MeetingId" + }, + "Attendees":{"shape":"CreateAttendeeRequestItemList"} + } + }, + "BatchCreateAttendeeResponse":{ + "type":"structure", + "members":{ + "Attendees":{"shape":"AttendeeList"}, + "Errors":{"shape":"BatchCreateAttendeeErrorList"} + } + }, + "ClientRequestToken":{ + "type":"string", + "max":64, + "min":2, + "pattern":"[-_a-zA-Z0-9]*", + "sensitive":true + }, + "CreateAttendeeError":{ + "type":"structure", + "members":{ + "ExternalUserId":{"shape":"ExternalUserId"}, + "ErrorCode":{"shape":"String"}, + "ErrorMessage":{"shape":"String"} + } + }, + "CreateAttendeeRequest":{ + "type":"structure", + "required":[ + "MeetingId", + "ExternalUserId" + ], + "members":{ + "MeetingId":{ + "shape":"String", + "location":"uri", + "locationName":"MeetingId" + }, + "ExternalUserId":{"shape":"ExternalUserId"} + } + }, + "CreateAttendeeRequestItem":{ + "type":"structure", + "required":["ExternalUserId"], + "members":{ + "ExternalUserId":{"shape":"ExternalUserId"} + } + }, + "CreateAttendeeRequestItemList":{ + "type":"list", + "member":{"shape":"CreateAttendeeRequestItem"}, + "max":100, + "min":1 + }, + "CreateAttendeeResponse":{ + "type":"structure", + "members":{ + "Attendee":{"shape":"Attendee"} + } + }, + "CreateMeetingRequest":{ + "type":"structure", + "required":[ + "ClientRequestToken", + "MediaRegion", + "ExternalMeetingId" + ], + "members":{ + "ClientRequestToken":{ + "shape":"ClientRequestToken", + "idempotencyToken":true + }, + "MediaRegion":{"shape":"String"}, + "MeetingHostId":{"shape":"ExternalUserId"}, + "ExternalMeetingId":{"shape":"ExternalMeetingId"}, + "NotificationsConfiguration":{"shape":"NotificationsConfiguration"} + } + }, + "CreateMeetingResponse":{ + "type":"structure", + "members":{ + "Meeting":{"shape":"Meeting"} + } + }, + "CreateMeetingWithAttendeesRequest":{ + "type":"structure", + "required":[ + "ClientRequestToken", + "MediaRegion", + "ExternalMeetingId", + "Attendees" + ], + "members":{ + "ClientRequestToken":{ + "shape":"ClientRequestToken", + "idempotencyToken":true + }, + "MediaRegion":{"shape":"String"}, + "MeetingHostId":{"shape":"ExternalUserId"}, + "ExternalMeetingId":{"shape":"ExternalMeetingId"}, + "NotificationsConfiguration":{"shape":"NotificationsConfiguration"}, + "Attendees":{"shape":"CreateMeetingWithAttendeesRequestItemList"} + } + }, + "CreateMeetingWithAttendeesRequestItemList":{ + "type":"list", + "member":{"shape":"CreateAttendeeRequestItem"}, + "max":20, + "min":1 + }, + "CreateMeetingWithAttendeesResponse":{ + "type":"structure", + "members":{ + "Meeting":{"shape":"Meeting"}, + "Attendees":{"shape":"AttendeeList"}, + "Errors":{"shape":"BatchCreateAttendeeErrorList"} + } + }, + "DeleteAttendeeRequest":{ + "type":"structure", + "required":[ + "MeetingId", + "AttendeeId" + ], + "members":{ + "MeetingId":{ + "shape":"String", + "location":"uri", + "locationName":"MeetingId" + }, + "AttendeeId":{ + "shape":"String", + "location":"uri", + "locationName":"AttendeeId" + } + } + }, + "DeleteMeetingRequest":{ + "type":"structure", + "required":["MeetingId"], + "members":{ + "MeetingId":{ + "shape":"String", + "location":"uri", + "locationName":"MeetingId" + } + } + }, + "EngineTranscribeMedicalSettings":{ + "type":"structure", + "required":[ + "LanguageCode", + "Specialty", + "Type" + ], + "members":{ + "LanguageCode":{"shape":"TranscribeMedicalLanguageCode"}, + "Specialty":{"shape":"TranscribeMedicalSpecialty"}, + "Type":{"shape":"TranscribeMedicalType"}, + "VocabularyName":{"shape":"String"}, + "Region":{"shape":"TranscribeMedicalRegion"} + } + }, + "EngineTranscribeSettings":{ + "type":"structure", + "required":["LanguageCode"], + "members":{ + "LanguageCode":{"shape":"TranscribeLanguageCode"}, + "VocabularyFilterMethod":{"shape":"TranscribeVocabularyFilterMethod"}, + "VocabularyFilterName":{"shape":"String"}, + "VocabularyName":{"shape":"String"}, + "Region":{"shape":"TranscribeRegion"} + } + }, + "ExternalMeetingId":{ + "type":"string", + "max":64, + "min":2, + "sensitive":true + }, + "ExternalUserId":{ + "type":"string", + "max":64, + "min":2, + "sensitive":true + }, + "ForbiddenException":{ + "type":"structure", + "members":{ + "Code":{"shape":"String"}, + "Message":{"shape":"String"}, + "RequestId":{"shape":"String"} + }, + "error":{"httpStatusCode":403}, + "exception":true + }, + "GetAttendeeRequest":{ + "type":"structure", + "required":[ + "MeetingId", + "AttendeeId" + ], + "members":{ + "MeetingId":{ + "shape":"String", + "location":"uri", + "locationName":"MeetingId" + }, + "AttendeeId":{ + "shape":"String", + "location":"uri", + "locationName":"AttendeeId" + } + } + }, + "GetAttendeeResponse":{ + "type":"structure", + "members":{ + "Attendee":{"shape":"Attendee"} + } + }, + "GetMeetingRequest":{ + "type":"structure", + "required":["MeetingId"], + "members":{ + "MeetingId":{ + "shape":"String", + "location":"uri", + "locationName":"MeetingId" + } + } + }, + "GetMeetingResponse":{ + "type":"structure", + "members":{ + "Meeting":{"shape":"Meeting"} + } + }, + "GuidString":{ + "type":"string", + "pattern":"[a-fA-F0-9]{8}(?:-[a-fA-F0-9]{4}){3}-[a-fA-F0-9]{12}" + }, + "JoinTokenString":{ + "type":"string", + "max":4096, + "min":2, + "sensitive":true + }, + "LimitExceededException":{ + "type":"structure", + "members":{ + "Code":{"shape":"String"}, + "Message":{"shape":"String"}, + "RequestId":{"shape":"String"} + }, + "error":{"httpStatusCode":400}, + "exception":true + }, + "ListAttendeesRequest":{ + "type":"structure", + "required":["MeetingId"], + "members":{ + "MeetingId":{ + "shape":"String", + "location":"uri", + "locationName":"MeetingId" + }, + "NextToken":{ + "shape":"String", + "location":"querystring", + "locationName":"next-token" + }, + "MaxResults":{ + "shape":"ResultMax", + "location":"querystring", + "locationName":"max-results" + } + } + }, + "ListAttendeesResponse":{ + "type":"structure", + "members":{ + "Attendees":{"shape":"AttendeeList"}, + "NextToken":{"shape":"String"} + } + }, + "MediaPlacement":{ + "type":"structure", + "members":{ + "AudioHostUrl":{"shape":"String"}, + "AudioFallbackUrl":{"shape":"String"}, + "SignalingUrl":{"shape":"String"}, + "TurnControlUrl":{"shape":"String"}, + "ScreenDataUrl":{"shape":"String"}, + "ScreenViewingUrl":{"shape":"String"}, + "ScreenSharingUrl":{"shape":"String"}, + "EventIngestionUrl":{"shape":"String"} + } + }, + "Meeting":{ + "type":"structure", + "members":{ + "MeetingId":{"shape":"GuidString"}, + "MeetingHostId":{"shape":"ExternalUserId"}, + "ExternalMeetingId":{"shape":"ExternalMeetingId"}, + "MediaRegion":{"shape":"String"}, + "MediaPlacement":{"shape":"MediaPlacement"} + } + }, + "NotFoundException":{ + "type":"structure", + "members":{ + "Code":{"shape":"String"}, + "Message":{"shape":"String"}, + "RequestId":{"shape":"String"} + }, + "error":{"httpStatusCode":404}, + "exception":true + }, + "NotificationsConfiguration":{ + "type":"structure", + "members":{ + "LambdaFunctionArn":{"shape":"Arn"}, + "SnsTopicArn":{"shape":"Arn"}, + "SqsQueueArn":{"shape":"Arn"} + } + }, + "ResultMax":{ + "type":"integer", + "max":100, + "min":1 + }, + "RetryAfterSeconds":{"type":"string"}, + "ServiceUnavailableException":{ + "type":"structure", + "members":{ + "Code":{"shape":"String"}, + "Message":{"shape":"String"}, + "RequestId":{"shape":"String"}, + "RetryAfterSeconds":{ + "shape":"RetryAfterSeconds", + "location":"header", + "locationName":"Retry-After" + } + }, + "error":{"httpStatusCode":503}, + "exception":true, + "fault":true + }, + "StartMeetingTranscriptionRequest":{ + "type":"structure", + "required":[ + "MeetingId", + "TranscriptionConfiguration" + ], + "members":{ + "MeetingId":{ + "shape":"String", + "location":"uri", + "locationName":"MeetingId" + }, + "TranscriptionConfiguration":{"shape":"TranscriptionConfiguration"} + } + }, + "StopMeetingTranscriptionRequest":{ + "type":"structure", + "required":["MeetingId"], + "members":{ + "MeetingId":{ + "shape":"String", + "location":"uri", + "locationName":"MeetingId" + } + } + }, + "String":{ + "type":"string", + "max":4096 + }, + "TranscribeLanguageCode":{ + "type":"string", + "enum":[ + "en-US", + "en-GB", + "es-US", + "fr-CA", + "fr-FR", + "en-AU", + "it-IT", + "de-DE", + "pt-BR", + "ja-JP", + "ko-KR", + "zh-CN" + ] + }, + "TranscribeMedicalLanguageCode":{ + "type":"string", + "enum":["en-US"] + }, + "TranscribeMedicalRegion":{ + "type":"string", + "enum":[ + "us-east-1", + "us-east-2", + "us-west-2", + "ap-southeast-2", + "ca-central-1", + "eu-west-1", + "auto" + ] + }, + "TranscribeMedicalSpecialty":{ + "type":"string", + "enum":[ + "PRIMARYCARE", + "CARDIOLOGY", + "NEUROLOGY", + "ONCOLOGY", + "RADIOLOGY", + "UROLOGY" + ] + }, + "TranscribeMedicalType":{ + "type":"string", + "enum":[ + "CONVERSATION", + "DICTATION" + ] + }, + "TranscribeRegion":{ + "type":"string", + "enum":[ + "us-east-2", + "us-east-1", + "us-west-2", + "ap-northeast-2", + "ap-southeast-2", + "ap-northeast-1", + "ca-central-1", + "eu-central-1", + "eu-west-1", + "eu-west-2", + "sa-east-1", + "auto" + ] + }, + "TranscribeVocabularyFilterMethod":{ + "type":"string", + "enum":[ + "remove", + "mask", + "tag" + ] + }, + "TranscriptionConfiguration":{ + "type":"structure", + "members":{ + "EngineTranscribeSettings":{"shape":"EngineTranscribeSettings"}, + "EngineTranscribeMedicalSettings":{"shape":"EngineTranscribeMedicalSettings"} + } + }, + "UnauthorizedException":{ + "type":"structure", + "members":{ + "Code":{"shape":"String"}, + "Message":{"shape":"String"}, + "RequestId":{"shape":"String"} + }, + "error":{"httpStatusCode":401}, + "exception":true + }, + "UnprocessableEntityException":{ + "type":"structure", + "members":{ + "Code":{"shape":"String"}, + "Message":{"shape":"String"}, + "RequestId":{"shape":"String"} + }, + "error":{"httpStatusCode":422}, + "exception":true + } + } +} 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 new file mode 100644 index 00000000000..c002751c66c --- /dev/null +++ b/models/apis/chime-sdk-meetings/2021-07-15/docs-2.json @@ -0,0 +1,388 @@ +{ + "version": "2.0", + "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 a group of meeting attendees.

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

", + "DeleteAttendee": "

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

", + "DeleteMeeting": "

Deletes the specified Amazon Chime SDK meeting. The operation deletes all attendees, disconnects all clients, and prevents new clients from joining the meeting. For more information about the Amazon Chime SDK, see Using the Amazon Chime SDK in the Amazon Chime Developer Guide.

", + "GetAttendee": "

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

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

" + }, + "shapes": { + "Arn": { + "base": null, + "refs": { + "NotificationsConfiguration$LambdaFunctionArn": "

The ARN of the AWS Lambda function in the notifications configuration.

", + "NotificationsConfiguration$SnsTopicArn": "

The ARN of the SNS topic.

", + "NotificationsConfiguration$SqsQueueArn": "

The ARN of the SQS queue.

" + } + }, + "Attendee": { + "base": "

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.

", + "refs": { + "AttendeeList$member": null, + "CreateAttendeeResponse$Attendee": "

The attendee information, including attendee ID and join token.

", + "GetAttendeeResponse$Attendee": "

The Amazon Chime SDK attendee information.

" + } + }, + "AttendeeList": { + "base": null, + "refs": { + "BatchCreateAttendeeResponse$Attendees": "

The attendee information, including attendees' IDs and join tokens.

", + "CreateMeetingWithAttendeesResponse$Attendees": "

The attendee information, including attendees' IDs and join tokens.

", + "ListAttendeesResponse$Attendees": "

The Amazon Chime SDK attendee information.

" + } + }, + "BadRequestException": { + "base": "

The input parameters don't match the service's restrictions.

", + "refs": { + } + }, + "BatchCreateAttendeeErrorList": { + "base": null, + "refs": { + "BatchCreateAttendeeResponse$Errors": "

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

", + "CreateMeetingWithAttendeesResponse$Errors": "

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

" + } + }, + "BatchCreateAttendeeRequest": { + "base": null, + "refs": { + } + }, + "BatchCreateAttendeeResponse": { + "base": null, + "refs": { + } + }, + "ClientRequestToken": { + "base": null, + "refs": { + "CreateMeetingRequest$ClientRequestToken": "

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

", + "CreateMeetingWithAttendeesRequest$ClientRequestToken": "

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

" + } + }, + "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": { + "BatchCreateAttendeeErrorList$member": null + } + }, + "CreateAttendeeRequest": { + "base": null, + "refs": { + } + }, + "CreateAttendeeRequestItem": { + "base": "

The Amazon Chime SDK attendee fields to create, used with the BatchCreateAttendee action.

", + "refs": { + "CreateAttendeeRequestItemList$member": null, + "CreateMeetingWithAttendeesRequestItemList$member": null + } + }, + "CreateAttendeeRequestItemList": { + "base": null, + "refs": { + "BatchCreateAttendeeRequest$Attendees": "

The attendee information, including attendees' IDs and join tokens.

" + } + }, + "CreateAttendeeResponse": { + "base": null, + "refs": { + } + }, + "CreateMeetingRequest": { + "base": null, + "refs": { + } + }, + "CreateMeetingResponse": { + "base": null, + "refs": { + } + }, + "CreateMeetingWithAttendeesRequest": { + "base": null, + "refs": { + } + }, + "CreateMeetingWithAttendeesRequestItemList": { + "base": null, + "refs": { + "CreateMeetingWithAttendeesRequest$Attendees": "

The attendee information, including attendees' IDs and join tokens.

" + } + }, + "CreateMeetingWithAttendeesResponse": { + "base": null, + "refs": { + } + }, + "DeleteAttendeeRequest": { + "base": null, + "refs": { + } + }, + "DeleteMeetingRequest": { + "base": null, + "refs": { + } + }, + "EngineTranscribeMedicalSettings": { + "base": "

Settings specific to the Amazon Transcribe Medical engine.

", + "refs": { + "TranscriptionConfiguration$EngineTranscribeMedicalSettings": "

The transcription configuration settings passed to Amazon Transcribe Medical.

" + } + }, + "EngineTranscribeSettings": { + "base": "

Settings specific to the Amazon Transcribe engine.

", + "refs": { + "TranscriptionConfiguration$EngineTranscribeSettings": "

The transcription configuration settings passed to Amazon Transcribe.

" + } + }, + "ExternalMeetingId": { + "base": null, + "refs": { + "CreateMeetingRequest$ExternalMeetingId": "

The external meeting ID.

", + "CreateMeetingWithAttendeesRequest$ExternalMeetingId": "

The external meeting ID.

", + "Meeting$ExternalMeetingId": "

The external meeting ID.

" + } + }, + "ExternalUserId": { + "base": null, + "refs": { + "Attendee$ExternalUserId": "

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

", + "CreateAttendeeError$ExternalUserId": "

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

", + "CreateAttendeeRequest$ExternalUserId": "

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

", + "CreateAttendeeRequestItem$ExternalUserId": "

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

", + "CreateMeetingRequest$MeetingHostId": "

Reserved.

", + "CreateMeetingWithAttendeesRequest$MeetingHostId": "

Reserved.

", + "Meeting$MeetingHostId": "

Reserved.

" + } + }, + "ForbiddenException": { + "base": "

The client is permanently forbidden from making the request.

", + "refs": { + } + }, + "GetAttendeeRequest": { + "base": null, + "refs": { + } + }, + "GetAttendeeResponse": { + "base": null, + "refs": { + } + }, + "GetMeetingRequest": { + "base": null, + "refs": { + } + }, + "GetMeetingResponse": { + "base": null, + "refs": { + } + }, + "GuidString": { + "base": null, + "refs": { + "Meeting$MeetingId": "

The Amazon Chime SDK meeting ID.

" + } + }, + "JoinTokenString": { + "base": null, + "refs": { + "Attendee$JoinToken": "

The join token used by the Amazon Chime SDK attendee.

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

The request exceeds the resource limit.

", + "refs": { + } + }, + "ListAttendeesRequest": { + "base": null, + "refs": { + } + }, + "ListAttendeesResponse": { + "base": null, + "refs": { + } + }, + "MediaPlacement": { + "base": "

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

", + "refs": { + "Meeting$MediaPlacement": "

The media placement for the meeting.

" + } + }, + "Meeting": { + "base": "

A meeting created using the Amazon Chime SDK.

", + "refs": { + "CreateMeetingResponse$Meeting": "

The meeting information, including the meeting ID and MediaPlacement.

", + "CreateMeetingWithAttendeesResponse$Meeting": "

The meeting information, including the meeting ID and MediaPlacement.

", + "GetMeetingResponse$Meeting": "

The Amazon Chime SDK meeting information.

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

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

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

The configuration for resource targets to receive notifications when meeting and attendee events occur.

", + "refs": { + "CreateMeetingRequest$NotificationsConfiguration": "

The configuration for resource targets to receive notifications when meeting and attendee events occur.

", + "CreateMeetingWithAttendeesRequest$NotificationsConfiguration": "

The configuration for resource targets to receive notifications when meeting and attendee events occur.

" + } + }, + "ResultMax": { + "base": null, + "refs": { + "ListAttendeesRequest$MaxResults": "

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

" + } + }, + "RetryAfterSeconds": { + "base": null, + "refs": { + "ServiceUnavailableException$RetryAfterSeconds": "

The number of seconds the caller should wait before retrying.

" + } + }, + "ServiceUnavailableException": { + "base": "

The service is currently unavailable.

", + "refs": { + } + }, + "StartMeetingTranscriptionRequest": { + "base": null, + "refs": { + } + }, + "StopMeetingTranscriptionRequest": { + "base": null, + "refs": { + } + }, + "String": { + "base": null, + "refs": { + "Attendee$AttendeeId": "

The Amazon Chime SDK attendee ID.

", + "BadRequestException$Code": null, + "BadRequestException$Message": null, + "BadRequestException$RequestId": "

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

", + "BatchCreateAttendeeRequest$MeetingId": "

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

", + "CreateAttendeeError$ErrorCode": "

The error code.

", + "CreateAttendeeError$ErrorMessage": "

The error message.

", + "CreateAttendeeRequest$MeetingId": "

The unique ID of the meeting.

", + "CreateMeetingRequest$MediaRegion": "

The Region in which to create the meeting. Default: us-east-1.

Available values: af-south-1 , ap-northeast-1 , ap-northeast-2 , ap-south-1 , ap-southeast-1 , ap-southeast-2 , ca-central-1 , eu-central-1 , eu-north-1 , eu-south-1 , eu-west-1 , eu-west-2 , eu-west-3 , sa-east-1 , us-east-1 , us-east-2 , us-west-1 , us-west-2 .

", + "CreateMeetingWithAttendeesRequest$MediaRegion": "

The Region in which to create the meeting. Default: us-east-1.

", + "DeleteAttendeeRequest$MeetingId": "

The Amazon Chime SDK meeting ID.

", + "DeleteAttendeeRequest$AttendeeId": "

The Amazon Chime SDK attendee ID.

", + "DeleteMeetingRequest$MeetingId": "

The Amazon Chime SDK meeting ID.

", + "EngineTranscribeMedicalSettings$VocabularyName": "

The name of the vocabulary passed to Amazon Transcribe Medical.

", + "EngineTranscribeSettings$VocabularyFilterName": "

The name of the vocabulary filter passed to Amazon Transcribe.

", + "EngineTranscribeSettings$VocabularyName": "

The name of the vocabulary passed to Amazon Transcribe.

", + "ForbiddenException$Code": null, + "ForbiddenException$Message": null, + "ForbiddenException$RequestId": "

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

", + "GetAttendeeRequest$MeetingId": "

The Amazon Chime SDK meeting ID.

", + "GetAttendeeRequest$AttendeeId": "

The Amazon Chime SDK attendee ID.

", + "GetMeetingRequest$MeetingId": "

The Amazon Chime SDK meeting ID.

", + "LimitExceededException$Code": null, + "LimitExceededException$Message": null, + "LimitExceededException$RequestId": "

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

", + "ListAttendeesRequest$MeetingId": "

The Amazon Chime SDK meeting ID.

", + "ListAttendeesRequest$NextToken": "

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

", + "ListAttendeesResponse$NextToken": "

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

", + "MediaPlacement$AudioHostUrl": "

The audio host URL.

", + "MediaPlacement$AudioFallbackUrl": "

The audio fallback URL.

", + "MediaPlacement$SignalingUrl": "

The signaling URL.

", + "MediaPlacement$TurnControlUrl": "

The turn control URL.

", + "MediaPlacement$ScreenDataUrl": "

The screen data URL.

", + "MediaPlacement$ScreenViewingUrl": "

The screen viewing URL.

", + "MediaPlacement$ScreenSharingUrl": "

The screen sharing URL.

", + "MediaPlacement$EventIngestionUrl": "

The event ingestion URL.

", + "Meeting$MediaRegion": "

The Region in which you create the meeting. Available values: af-south-1, ap-northeast-1, ap-northeast-2, ap-south-1, ap-southeast-1, ap-southeast-2, ca-central-1, eu-central-1, eu-north-1, eu-south-1, eu-west-1, eu-west-2, eu-west-3, sa-east-1, us-east-1, us-east-2, us-west-1, us-west-2.

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

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

", + "ServiceUnavailableException$Code": null, + "ServiceUnavailableException$Message": null, + "ServiceUnavailableException$RequestId": "

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

", + "StartMeetingTranscriptionRequest$MeetingId": "

The unique ID of the meeting being transcribed.

", + "StopMeetingTranscriptionRequest$MeetingId": "

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

", + "UnauthorizedException$Code": null, + "UnauthorizedException$Message": null, + "UnauthorizedException$RequestId": "

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

", + "UnprocessableEntityException$Code": null, + "UnprocessableEntityException$Message": null, + "UnprocessableEntityException$RequestId": "

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

" + } + }, + "TranscribeLanguageCode": { + "base": null, + "refs": { + "EngineTranscribeSettings$LanguageCode": "

The language code specified for the Amazon Transcribe engine.

" + } + }, + "TranscribeMedicalLanguageCode": { + "base": null, + "refs": { + "EngineTranscribeMedicalSettings$LanguageCode": "

The language code specified for the Amazon Transcribe Medical engine.

" + } + }, + "TranscribeMedicalRegion": { + "base": null, + "refs": { + "EngineTranscribeMedicalSettings$Region": "

The AWS Region passed to Amazon Transcribe Medical. If you don't specify a Region, Amazon Chime uses the meeting's Region.

" + } + }, + "TranscribeMedicalSpecialty": { + "base": null, + "refs": { + "EngineTranscribeMedicalSettings$Specialty": "

The specialty specified for the Amazon Transcribe Medical engine.

" + } + }, + "TranscribeMedicalType": { + "base": null, + "refs": { + "EngineTranscribeMedicalSettings$Type": "

The type of transcription.

" + } + }, + "TranscribeRegion": { + "base": null, + "refs": { + "EngineTranscribeSettings$Region": "

The AWS Region passed to Amazon Transcribe. If you don't specify a Region, Amazon Chime uses the meeting's Region.

" + } + }, + "TranscribeVocabularyFilterMethod": { + "base": null, + "refs": { + "EngineTranscribeSettings$VocabularyFilterMethod": "

The filtering method passed to Amazon Transcribe.

" + } + }, + "TranscriptionConfiguration": { + "base": "

The configuration for the current transcription operation. Must contain EngineTranscribeSettings or EngineTranscribeMedicalSettings.

", + "refs": { + "StartMeetingTranscriptionRequest$TranscriptionConfiguration": "

The configuration for the current transcription operation. Must contain EngineTranscribeSettings or EngineTranscribeMedicalSettings.

" + } + }, + "UnauthorizedException": { + "base": "

The user isn't authorized to request a resource.

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

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

", + "refs": { + } + } + } +} diff --git a/models/apis/chime-sdk-meetings/2021-07-15/examples-1.json b/models/apis/chime-sdk-meetings/2021-07-15/examples-1.json new file mode 100644 index 00000000000..0ea7e3b0bbe --- /dev/null +++ b/models/apis/chime-sdk-meetings/2021-07-15/examples-1.json @@ -0,0 +1,5 @@ +{ + "version": "1.0", + "examples": { + } +} diff --git a/models/apis/chime-sdk-meetings/2021-07-15/paginators-1.json b/models/apis/chime-sdk-meetings/2021-07-15/paginators-1.json new file mode 100644 index 00000000000..52fee5ad5a2 --- /dev/null +++ b/models/apis/chime-sdk-meetings/2021-07-15/paginators-1.json @@ -0,0 +1,9 @@ +{ + "pagination": { + "ListAttendees": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "MaxResults" + } + } +} diff --git a/models/apis/connect/2017-08-08/api-2.json b/models/apis/connect/2017-08-08/api-2.json index 6f0c5013ce3..942f627a896 100644 --- a/models/apis/connect/2017-08-08/api-2.json +++ b/models/apis/connect/2017-08-08/api-2.json @@ -288,6 +288,24 @@ {"shape":"InternalServiceException"} ] }, + "CreateSecurityProfile":{ + "name":"CreateSecurityProfile", + "http":{ + "method":"PUT", + "requestUri":"/security-profiles/{InstanceId}" + }, + "input":{"shape":"CreateSecurityProfileRequest"}, + "output":{"shape":"CreateSecurityProfileResponse"}, + "errors":[ + {"shape":"InvalidRequestException"}, + {"shape":"InvalidParameterException"}, + {"shape":"LimitExceededException"}, + {"shape":"DuplicateResourceException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ThrottlingException"}, + {"shape":"InternalServiceException"} + ] + }, "CreateUseCase":{ "name":"CreateUseCase", "http":{ @@ -397,6 +415,23 @@ {"shape":"InternalServiceException"} ] }, + "DeleteSecurityProfile":{ + "name":"DeleteSecurityProfile", + "http":{ + "method":"DELETE", + "requestUri":"/security-profiles/{InstanceId}/{SecurityProfileId}" + }, + "input":{"shape":"DeleteSecurityProfileRequest"}, + "errors":[ + {"shape":"InvalidRequestException"}, + {"shape":"InvalidParameterException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ThrottlingException"}, + {"shape":"InternalServiceException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ResourceInUseException"} + ] + }, "DeleteUseCase":{ "name":"DeleteUseCase", "http":{ @@ -585,6 +620,22 @@ {"shape":"InternalServiceException"} ] }, + "DescribeSecurityProfile":{ + "name":"DescribeSecurityProfile", + "http":{ + "method":"GET", + "requestUri":"/security-profiles/{InstanceId}/{SecurityProfileId}" + }, + "input":{"shape":"DescribeSecurityProfileRequest"}, + "output":{"shape":"DescribeSecurityProfileResponse"}, + "errors":[ + {"shape":"InvalidRequestException"}, + {"shape":"InvalidParameterException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ThrottlingException"}, + {"shape":"InternalServiceException"} + ] + }, "DescribeUser":{ "name":"DescribeUser", "http":{ @@ -1114,6 +1165,22 @@ {"shape":"ThrottlingException"} ] }, + "ListSecurityProfilePermissions":{ + "name":"ListSecurityProfilePermissions", + "http":{ + "method":"GET", + "requestUri":"/security-profiles-permissions/{InstanceId}/{SecurityProfileId}" + }, + "input":{"shape":"ListSecurityProfilePermissionsRequest"}, + "output":{"shape":"ListSecurityProfilePermissionsResponse"}, + "errors":[ + {"shape":"InvalidRequestException"}, + {"shape":"InvalidParameterException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ThrottlingException"}, + {"shape":"InternalServiceException"} + ] + }, "ListSecurityProfiles":{ "name":"ListSecurityProfiles", "http":{ @@ -1655,6 +1722,21 @@ {"shape":"InternalServiceException"} ] }, + "UpdateSecurityProfile":{ + "name":"UpdateSecurityProfile", + "http":{ + "method":"POST", + "requestUri":"/security-profiles/{InstanceId}/{SecurityProfileId}" + }, + "input":{"shape":"UpdateSecurityProfileRequest"}, + "errors":[ + {"shape":"InvalidRequestException"}, + {"shape":"InvalidParameterException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ThrottlingException"}, + {"shape":"InternalServiceException"} + ] + }, "UpdateUserHierarchy":{ "name":"UpdateUserHierarchy", "http":{ @@ -1765,6 +1847,14 @@ }, "shapes":{ "ARN":{"type":"string"}, + "AccessDeniedException":{ + "type":"structure", + "members":{ + "Message":{"shape":"Message"} + }, + "error":{"httpStatusCode":403}, + "exception":true + }, "AfterContactWorkTimeLimit":{ "type":"integer", "min":0 @@ -2418,6 +2508,31 @@ "RoutingProfileId":{"shape":"RoutingProfileId"} } }, + "CreateSecurityProfileRequest":{ + "type":"structure", + "required":[ + "SecurityProfileName", + "InstanceId" + ], + "members":{ + "SecurityProfileName":{"shape":"SecurityProfileName"}, + "Description":{"shape":"SecurityProfileDescription"}, + "Permissions":{"shape":"PermissionsList"}, + "InstanceId":{ + "shape":"InstanceId", + "location":"uri", + "locationName":"InstanceId" + }, + "Tags":{"shape":"TagMap"} + } + }, + "CreateSecurityProfileResponse":{ + "type":"structure", + "members":{ + "SecurityProfileId":{"shape":"SecurityProfileId"}, + "SecurityProfileArn":{"shape":"ARN"} + } + }, "CreateUseCaseRequest":{ "type":"structure", "required":[ @@ -2639,6 +2754,25 @@ } } }, + "DeleteSecurityProfileRequest":{ + "type":"structure", + "required":[ + "InstanceId", + "SecurityProfileId" + ], + "members":{ + "InstanceId":{ + "shape":"InstanceId", + "location":"uri", + "locationName":"InstanceId" + }, + "SecurityProfileId":{ + "shape":"SecurityProfileId", + "location":"uri", + "locationName":"SecurityProfileId" + } + } + }, "DeleteUseCaseRequest":{ "type":"structure", "required":[ @@ -2925,6 +3059,31 @@ "RoutingProfile":{"shape":"RoutingProfile"} } }, + "DescribeSecurityProfileRequest":{ + "type":"structure", + "required":[ + "SecurityProfileId", + "InstanceId" + ], + "members":{ + "SecurityProfileId":{ + "shape":"SecurityProfileId", + "location":"uri", + "locationName":"SecurityProfileId" + }, + "InstanceId":{ + "shape":"InstanceId", + "location":"uri", + "locationName":"InstanceId" + } + } + }, + "DescribeSecurityProfileResponse":{ + "type":"structure", + "members":{ + "SecurityProfile":{"shape":"SecurityProfile"} + } + }, "DescribeUserHierarchyGroupRequest":{ "type":"structure", "required":[ @@ -4439,6 +4598,43 @@ "NextToken":{"shape":"NextToken"} } }, + "ListSecurityProfilePermissionsRequest":{ + "type":"structure", + "required":[ + "SecurityProfileId", + "InstanceId" + ], + "members":{ + "SecurityProfileId":{ + "shape":"SecurityProfileId", + "location":"uri", + "locationName":"SecurityProfileId" + }, + "InstanceId":{ + "shape":"InstanceId", + "location":"uri", + "locationName":"InstanceId" + }, + "NextToken":{ + "shape":"NextToken", + "location":"querystring", + "locationName":"nextToken" + }, + "MaxResults":{ + "shape":"MaxResult1000", + "box":true, + "location":"querystring", + "locationName":"maxResults" + } + } + }, + "ListSecurityProfilePermissionsResponse":{ + "type":"structure", + "members":{ + "Permissions":{"shape":"PermissionsList"}, + "NextToken":{"shape":"NextToken"} + } + }, "ListSecurityProfilesRequest":{ "type":"structure", "required":["InstanceId"], @@ -4693,6 +4889,11 @@ "type":"string", "pattern":"/^(?=.*[a-z])(?=.*[A-Z])(?=.*\\d)[a-zA-Z\\d\\S]{8,64}$/" }, + "PermissionsList":{ + "type":"list", + "member":{"shape":"SecurityProfilePermission"}, + "max":500 + }, "PhoneNumber":{"type":"string"}, "PhoneNumberCountryCode":{ "type":"string", @@ -5387,6 +5588,21 @@ "type":"list", "member":{"shape":"SecurityKey"} }, + "SecurityProfile":{ + "type":"structure", + "members":{ + "Id":{"shape":"SecurityProfileId"}, + "OrganizationResourceId":{"shape":"InstanceId"}, + "Arn":{"shape":"ARN"}, + "SecurityProfileName":{"shape":"SecurityProfileName"}, + "Description":{"shape":"SecurityProfileDescription"}, + "Tags":{"shape":"TagMap"} + } + }, + "SecurityProfileDescription":{ + "type":"string", + "max":250 + }, "SecurityProfileId":{"type":"string"}, "SecurityProfileIds":{ "type":"list", @@ -5395,6 +5611,11 @@ "min":1 }, "SecurityProfileName":{"type":"string"}, + "SecurityProfilePermission":{ + "type":"string", + "max":128, + "min":1 + }, "SecurityProfileSummary":{ "type":"structure", "members":{ @@ -6157,6 +6378,27 @@ "QueueConfigs":{"shape":"RoutingProfileQueueConfigList"} } }, + "UpdateSecurityProfileRequest":{ + "type":"structure", + "required":[ + "SecurityProfileId", + "InstanceId" + ], + "members":{ + "Description":{"shape":"SecurityProfileDescription"}, + "Permissions":{"shape":"PermissionsList"}, + "SecurityProfileId":{ + "shape":"SecurityProfileId", + "location":"uri", + "locationName":"SecurityProfileId" + }, + "InstanceId":{ + "shape":"InstanceId", + "location":"uri", + "locationName":"InstanceId" + } + } + }, "UpdateUserHierarchyGroupNameRequest":{ "type":"structure", "required":[ diff --git a/models/apis/connect/2017-08-08/docs-2.json b/models/apis/connect/2017-08-08/docs-2.json index db8d6dc9f64..1616083dd3a 100644 --- a/models/apis/connect/2017-08-08/docs-2.json +++ b/models/apis/connect/2017-08-08/docs-2.json @@ -1,6 +1,6 @@ { "version": "2.0", - "service": "

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

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

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

You can connect programmatically to an AWS service by using an endpoint. For a list of Amazon Connect endpoints, see Amazon Connect Endpoints.

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

", + "service": "

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

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

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

You can connect programmatically to an Amazon Web Services service by using an endpoint. For a list of Amazon Connect endpoints, see Amazon Connect Endpoints.

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

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

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

Associates an approved origin to an Amazon Connect instance.

", "AssociateBot": "

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

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

", @@ -14,17 +14,19 @@ "CreateContactFlow": "

Creates a contact flow for the specified Amazon Connect instance.

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

", "CreateHoursOfOperation": "

Creates hours of operation.

", "CreateInstance": "

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

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

Amazon Connect enforces a limit on the total number of instances that you can create or delete in 30 days. If you exceed this limit, you will get an error message indicating there has been an excessive number of attempts at creating or deleting instances. You must wait 30 days before you can restart creating and deleting instances in your account.

", - "CreateIntegrationAssociation": "

Creates an AWS resource association with an Amazon Connect instance.

", + "CreateIntegrationAssociation": "

Creates an Amazon Web Services resource association with an Amazon Connect instance.

", "CreateQueue": "

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

Creates a new queue for the specified Amazon Connect instance.

", "CreateQuickConnect": "

Creates a quick connect for the specified Amazon Connect instance.

", "CreateRoutingProfile": "

Creates a new routing profile.

", + "CreateSecurityProfile": "

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

Creates a security profile.

", "CreateUseCase": "

Creates a use case for an integration association.

", "CreateUser": "

Creates a user account for the specified Amazon Connect instance.

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

", "CreateUserHierarchyGroup": "

Creates a new user hierarchy group.

", "DeleteHoursOfOperation": "

Deletes an hours of operation.

", "DeleteInstance": "

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

Deletes the Amazon Connect instance.

Amazon Connect enforces a limit on the total number of instances that you can create or delete in 30 days. If you exceed this limit, you will get an error message indicating there has been an excessive number of attempts at creating or deleting instances. You must wait 30 days before you can restart creating and deleting instances in your account.

", - "DeleteIntegrationAssociation": "

Deletes an AWS resource association from an Amazon Connect instance. The association must not have any use cases associated with it.

", + "DeleteIntegrationAssociation": "

Deletes an Amazon Web Services resource association from an Amazon Connect instance. The association must not have any use cases associated with it.

", "DeleteQuickConnect": "

Deletes a quick connect.

", + "DeleteSecurityProfile": "

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

Deletes a security profile.

", "DeleteUseCase": "

Deletes a use case from an integration association.

", "DeleteUser": "

Deletes a user account from the specified Amazon Connect instance.

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

", "DeleteUserHierarchyGroup": "

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

", @@ -37,6 +39,7 @@ "DescribeQueue": "

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

Describes the specified queue.

", "DescribeQuickConnect": "

Describes the quick connect.

", "DescribeRoutingProfile": "

Describes the specified routing profile.

", + "DescribeSecurityProfile": "

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

Gets basic information about the security profle.

", "DescribeUser": "

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

", "DescribeUserHierarchyGroup": "

Describes the specified hierarchy group.

", "DescribeUserHierarchyStructure": "

Describes the hierarchy structure of the specified Amazon Connect instance.

", @@ -60,7 +63,7 @@ "ListInstanceAttributes": "

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

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

", "ListInstanceStorageConfigs": "

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

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

", "ListInstances": "

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

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

", - "ListIntegrationAssociations": "

Provides summary information about the AWS resource associations for the specified Amazon Connect instance.

", + "ListIntegrationAssociations": "

Provides summary information about the Amazon Web Services resource associations for the specified Amazon Connect instance.

", "ListLambdaFunctions": "

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

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

", "ListLexBots": "

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

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

", "ListPhoneNumbers": "

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

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

", @@ -71,7 +74,8 @@ "ListRoutingProfileQueues": "

Lists the queues associated with a routing profile.

", "ListRoutingProfiles": "

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

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

", "ListSecurityKeys": "

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

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

", - "ListSecurityProfiles": "

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

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

", + "ListSecurityProfilePermissions": "

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

Lists the permissions granted to a security profile.

", + "ListSecurityProfiles": "

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

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

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

", "ListTagsForResource": "

Lists the tags for the specified resource.

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

", "ListUseCases": "

Lists the use cases for the integration association.

", "ListUserHierarchyGroups": "

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

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

", @@ -106,6 +110,7 @@ "UpdateRoutingProfileDefaultOutboundQueue": "

Updates the default outbound queue of a routing profile.

", "UpdateRoutingProfileName": "

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

", "UpdateRoutingProfileQueues": "

Updates the properties associated with a set of queues for a routing profile.

", + "UpdateSecurityProfile": "

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

Updates a security profile.

", "UpdateUserHierarchy": "

Assigns the specified hierarchy group to the specified user.

", "UpdateUserHierarchyGroupName": "

Updates the name of the user hierarchy group.

", "UpdateUserHierarchyStructure": "

Updates the user hierarchy structure: add, remove, and rename user hierarchy levels.

", @@ -131,6 +136,7 @@ "CreateQueueResponse$QueueArn": "

The Amazon Resource Name (ARN) of the queue.

", "CreateQuickConnectResponse$QuickConnectARN": "

The Amazon Resource Name (ARN) for the quick connect.

", "CreateRoutingProfileResponse$RoutingProfileArn": "

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

", + "CreateSecurityProfileResponse$SecurityProfileArn": "

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

", "CreateUseCaseResponse$UseCaseArn": "

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

", "CreateUserHierarchyGroupResponse$HierarchyGroupArn": "

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

", "CreateUserResponse$UserArn": "

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

", @@ -159,6 +165,7 @@ "RoutingProfile$RoutingProfileArn": "

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

", "RoutingProfileQueueConfigSummary$QueueArn": "

The Amazon Resource Name (ARN) of the queue.

", "RoutingProfileSummary$Arn": "

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

", + "SecurityProfile$Arn": "

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

", "SecurityProfileSummary$Arn": "

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

", "TagResourceRequest$resourceArn": "

The Amazon Resource Name (ARN) of the resource.

", "UntagResourceRequest$resourceArn": "

The Amazon Resource Name (ARN) of the resource.

", @@ -167,6 +174,11 @@ "UserSummary$Arn": "

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

" } }, + "AccessDeniedException": { + "base": "

You do not have sufficient access to perform this action.

", + "refs": { + } + }, "AfterContactWorkTimeLimit": { "base": null, "refs": { @@ -682,6 +694,16 @@ "refs": { } }, + "CreateSecurityProfileRequest": { + "base": null, + "refs": { + } + }, + "CreateSecurityProfileResponse": { + "base": null, + "refs": { + } + }, "CreateUseCaseRequest": { "base": null, "refs": { @@ -788,6 +810,11 @@ "refs": { } }, + "DeleteSecurityProfileRequest": { + "base": null, + "refs": { + } + }, "DeleteUseCaseRequest": { "base": null, "refs": { @@ -893,6 +920,16 @@ "refs": { } }, + "DescribeSecurityProfileRequest": { + "base": null, + "refs": { + } + }, + "DescribeSecurityProfileResponse": { + "base": null, + "refs": { + } + }, "DescribeUserHierarchyGroupRequest": { "base": null, "refs": { @@ -1058,7 +1095,7 @@ "FunctionArnsList": { "base": null, "refs": { - "ListLambdaFunctionsResponse$LambdaFunctions": "

The Lambdafunction ARNs associated with the specified instance.

" + "ListLambdaFunctionsResponse$LambdaFunctions": "

The Lambda function ARNs associated with the specified instance.

" } }, "GetContactAttributesRequest": { @@ -1359,7 +1396,7 @@ "refs": { "Attribute$AttributeType": "

The type of attribute.

", "DescribeInstanceAttributeRequest$AttributeType": "

The type of attribute.

", - "UpdateInstanceAttributeRequest$AttributeType": "

The type of attribute.

Only allowlisted customers can consume USE_CUSTOM_TTS_VOICES. To access this feature, contact AWS Support for allowlisting.

" + "UpdateInstanceAttributeRequest$AttributeType": "

The type of attribute.

Only allowlisted customers can consume USE_CUSTOM_TTS_VOICES. To access this feature, contact Amazon Web Services Support for allowlisting.

" } }, "InstanceAttributeValue": { @@ -1388,6 +1425,7 @@ "CreateQueueRequest$InstanceId": "

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

", "CreateQuickConnectRequest$InstanceId": "

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

", "CreateRoutingProfileRequest$InstanceId": "

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

", + "CreateSecurityProfileRequest$InstanceId": "

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

", "CreateUseCaseRequest$InstanceId": "

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

", "CreateUserHierarchyGroupRequest$InstanceId": "

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

", "CreateUserRequest$InstanceId": "

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

", @@ -1395,6 +1433,7 @@ "DeleteInstanceRequest$InstanceId": "

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

", "DeleteIntegrationAssociationRequest$InstanceId": "

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

", "DeleteQuickConnectRequest$InstanceId": "

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

", + "DeleteSecurityProfileRequest$InstanceId": "

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

", "DeleteUseCaseRequest$InstanceId": "

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

", "DeleteUserHierarchyGroupRequest$InstanceId": "

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

", "DeleteUserRequest$InstanceId": "

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

", @@ -1407,6 +1446,7 @@ "DescribeQueueRequest$InstanceId": "

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

", "DescribeQuickConnectRequest$InstanceId": "

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

", "DescribeRoutingProfileRequest$InstanceId": "

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

", + "DescribeSecurityProfileRequest$InstanceId": "

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

", "DescribeUserHierarchyGroupRequest$InstanceId": "

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

", "DescribeUserHierarchyStructureRequest$InstanceId": "

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

", "DescribeUserRequest$InstanceId": "

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

", @@ -1443,12 +1483,14 @@ "ListRoutingProfileQueuesRequest$InstanceId": "

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

", "ListRoutingProfilesRequest$InstanceId": "

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

", "ListSecurityKeysRequest$InstanceId": "

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

", + "ListSecurityProfilePermissionsRequest$InstanceId": "

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

", "ListSecurityProfilesRequest$InstanceId": "

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

", "ListUseCasesRequest$InstanceId": "

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

", "ListUserHierarchyGroupsRequest$InstanceId": "

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

", "ListUsersRequest$InstanceId": "

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

", "ResumeContactRecordingRequest$InstanceId": "

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

", "RoutingProfile$InstanceId": "

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

", + "SecurityProfile$OrganizationResourceId": "

The organization resource identifier for the security profile.

", "StartChatContactRequest$InstanceId": "

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

", "StartContactRecordingRequest$InstanceId": "

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

", "StartContactStreamingRequest$InstanceId": "

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

", @@ -1476,6 +1518,7 @@ "UpdateRoutingProfileDefaultOutboundQueueRequest$InstanceId": "

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

", "UpdateRoutingProfileNameRequest$InstanceId": "

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

", "UpdateRoutingProfileQueuesRequest$InstanceId": "

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

", + "UpdateSecurityProfileRequest$InstanceId": "

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

", "UpdateUserHierarchyGroupNameRequest$InstanceId": "

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

", "UpdateUserHierarchyRequest$InstanceId": "

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

", "UpdateUserHierarchyStructureRequest$InstanceId": "

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

", @@ -1563,7 +1606,7 @@ "refs": { "CreateIntegrationAssociationRequest$IntegrationType": "

The type of information to be ingested.

", "IntegrationAssociationSummary$IntegrationType": "

The integration type.

", - "ListIntegrationAssociationsRequest$IntegrationType": "

" + "ListIntegrationAssociationsRequest$IntegrationType": "

The type of integration.

" } }, "InternalServiceException": { @@ -1854,6 +1897,16 @@ "refs": { } }, + "ListSecurityProfilePermissionsRequest": { + "base": null, + "refs": { + } + }, + "ListSecurityProfilePermissionsResponse": { + "base": null, + "refs": { + } + }, "ListSecurityProfilesRequest": { "base": null, "refs": { @@ -1933,6 +1986,7 @@ "ListQueuesRequest$MaxResults": "

The maximum number of results to return per page.

", "ListQuickConnectsRequest$MaxResults": "

The maximum number of results to return per page.

", "ListRoutingProfilesRequest$MaxResults": "

The maximum number of results to return per page.

", + "ListSecurityProfilePermissionsRequest$MaxResults": "

The maximum number of results to return per page.

", "ListSecurityProfilesRequest$MaxResults": "

The maximum number of results to return per page.

", "ListUserHierarchyGroupsRequest$MaxResults": "

The maximum number of results to return per page.

", "ListUsersRequest$MaxResults": "

The maximum number of results to return per page.

" @@ -1976,6 +2030,7 @@ "Message": { "base": null, "refs": { + "AccessDeniedException$Message": null, "ContactFlowNotPublishedException$Message": null, "ContactNotFoundException$Message": "

The message.

", "DestinationNotAllowedException$Message": "

The message about the outbound calls.

", @@ -2050,6 +2105,8 @@ "ListRoutingProfilesResponse$NextToken": "

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

", "ListSecurityKeysRequest$NextToken": "

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

", "ListSecurityKeysResponse$NextToken": "

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

", + "ListSecurityProfilePermissionsRequest$NextToken": "

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

", + "ListSecurityProfilePermissionsResponse$NextToken": "

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

", "ListSecurityProfilesRequest$NextToken": "

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

", "ListSecurityProfilesResponse$NextToken": "

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

", "ListUseCasesRequest$NextToken": "

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

", @@ -2132,6 +2189,14 @@ "CreateUserRequest$Password": "

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

" } }, + "PermissionsList": { + "base": null, + "refs": { + "CreateSecurityProfileRequest$Permissions": "

Permissions assigned to the security profile.

", + "ListSecurityProfilePermissionsResponse$Permissions": "

The permissions granted to the security profile.

", + "UpdateSecurityProfileRequest$Permissions": "

The permissions granted to a security profile.

" + } + }, "PhoneNumber": { "base": null, "refs": { @@ -2604,11 +2669,31 @@ "ListSecurityKeysResponse$SecurityKeys": "

The security keys.

" } }, + "SecurityProfile": { + "base": "

Contains information about a security profile.

", + "refs": { + "DescribeSecurityProfileResponse$SecurityProfile": "

The security profile.

" + } + }, + "SecurityProfileDescription": { + "base": null, + "refs": { + "CreateSecurityProfileRequest$Description": "

The description of the security profile.

", + "SecurityProfile$Description": "

The description of the security profile.

", + "UpdateSecurityProfileRequest$Description": "

The description of the security profile.

" + } + }, "SecurityProfileId": { "base": null, "refs": { + "CreateSecurityProfileResponse$SecurityProfileId": "

The identifier for the security profle.

", + "DeleteSecurityProfileRequest$SecurityProfileId": "

The identifier for the security profle.

", + "DescribeSecurityProfileRequest$SecurityProfileId": "

The identifier for the security profle.

", + "ListSecurityProfilePermissionsRequest$SecurityProfileId": "

The identifier for the security profle.

", + "SecurityProfile$Id": "

The identifier for the security profile.

", "SecurityProfileIds$member": null, - "SecurityProfileSummary$Id": "

The identifier of the security profile.

" + "SecurityProfileSummary$Id": "

The identifier of the security profile.

", + "UpdateSecurityProfileRequest$SecurityProfileId": "

The identifier for the security profle.

" } }, "SecurityProfileIds": { @@ -2622,9 +2707,17 @@ "SecurityProfileName": { "base": null, "refs": { + "CreateSecurityProfileRequest$SecurityProfileName": "

The name of the security profile.

", + "SecurityProfile$SecurityProfileName": "

The name for the security profile.

", "SecurityProfileSummary$Name": "

The name of the security profile.

" } }, + "SecurityProfilePermission": { + "base": null, + "refs": { + "PermissionsList$member": null + } + }, "SecurityProfileSummary": { "base": "

Contains information about a security profile.

", "refs": { @@ -2794,22 +2887,24 @@ "TagMap": { "base": null, "refs": { - "AgentStatus$Tags": "

One or more tags.

", + "AgentStatus$Tags": "

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

", "ContactFlow$Tags": "

One or more tags.

", - "CreateAgentStatusRequest$Tags": "

One or more tags.

", + "CreateAgentStatusRequest$Tags": "

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

", "CreateContactFlowRequest$Tags": "

One or more tags.

", - "CreateHoursOfOperationRequest$Tags": "

One or more tags.

", - "CreateIntegrationAssociationRequest$Tags": "

One or more tags.

", - "CreateQueueRequest$Tags": "

One or more tags.

", - "CreateQuickConnectRequest$Tags": "

One or more tags.

", + "CreateHoursOfOperationRequest$Tags": "

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

", + "CreateIntegrationAssociationRequest$Tags": "

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

", + "CreateQueueRequest$Tags": "

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

", + "CreateQuickConnectRequest$Tags": "

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

", "CreateRoutingProfileRequest$Tags": "

One or more tags.

", - "CreateUseCaseRequest$Tags": "

One or more tags.

", + "CreateSecurityProfileRequest$Tags": "

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

", + "CreateUseCaseRequest$Tags": "

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

", "CreateUserRequest$Tags": "

One or more tags.

", - "HoursOfOperation$Tags": "

One or more tags.

", + "HoursOfOperation$Tags": "

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

", "ListTagsForResourceResponse$tags": "

Information about the tags.

", - "Queue$Tags": "

One or more tags.

", - "QuickConnect$Tags": "

One or more tags.

", + "Queue$Tags": "

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

", + "QuickConnect$Tags": "

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

", "RoutingProfile$Tags": "

One or more tags.

", + "SecurityProfile$Tags": "

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

", "TagResourceRequest$tags": "

One or more tags. For example, { \"tags\": {\"key1\":\"value1\", \"key2\":\"value2\"} }.

", "User$Tags": "

The tags.

" } @@ -2995,6 +3090,11 @@ "refs": { } }, + "UpdateSecurityProfileRequest": { + "base": null, + "refs": { + } + }, "UpdateUserHierarchyGroupNameRequest": { "base": null, "refs": { diff --git a/models/apis/connect/2017-08-08/paginators-1.json b/models/apis/connect/2017-08-08/paginators-1.json index c26c20308b8..770ac3c49bc 100644 --- a/models/apis/connect/2017-08-08/paginators-1.json +++ b/models/apis/connect/2017-08-08/paginators-1.json @@ -124,6 +124,12 @@ "output_token": "NextToken", "result_key": "SecurityKeys" }, + "ListSecurityProfilePermissions": { + "input_token": "NextToken", + "limit_key": "MaxResults", + "output_token": "NextToken", + "result_key": "Permissions" + }, "ListSecurityProfiles": { "input_token": "NextToken", "limit_key": "MaxResults", diff --git a/models/apis/ec2/2016-11-15/api-2.json b/models/apis/ec2/2016-11-15/api-2.json index 7a1344e319c..c20e7e7553a 100755 --- a/models/apis/ec2/2016-11-15/api-2.json +++ b/models/apis/ec2/2016-11-15/api-2.json @@ -17970,7 +17970,10 @@ }, "FleetReplacementStrategy":{ "type":"string", - "enum":["launch"] + "enum":[ + "launch", + "launch-before-terminate" + ] }, "FleetSet":{ "type":"list", @@ -17985,13 +17988,18 @@ "ReplacementStrategy":{ "shape":"FleetReplacementStrategy", "locationName":"replacementStrategy" + }, + "TerminationDelay":{ + "shape":"Integer", + "locationName":"terminationDelay" } } }, "FleetSpotCapacityRebalanceRequest":{ "type":"structure", "members":{ - "ReplacementStrategy":{"shape":"FleetReplacementStrategy"} + "ReplacementStrategy":{"shape":"FleetReplacementStrategy"}, + "TerminationDelay":{"shape":"Integer"} } }, "FleetSpotMaintenanceStrategies":{ @@ -28668,7 +28676,10 @@ }, "ReplacementStrategy":{ "type":"string", - "enum":["launch"] + "enum":[ + "launch", + "launch-before-terminate" + ] }, "ReportInstanceReasonCodes":{ "type":"string", @@ -31454,6 +31465,10 @@ "ReplacementStrategy":{ "shape":"ReplacementStrategy", "locationName":"replacementStrategy" + }, + "TerminationDelay":{ + "shape":"Integer", + "locationName":"terminationDelay" } } }, diff --git a/models/apis/ec2/2016-11-15/docs-2.json b/models/apis/ec2/2016-11-15/docs-2.json index 7e9c625d2b5..2f190c69461 100755 --- a/models/apis/ec2/2016-11-15/docs-2.json +++ b/models/apis/ec2/2016-11-15/docs-2.json @@ -7602,8 +7602,8 @@ "FleetReplacementStrategy": { "base": null, "refs": { - "FleetSpotCapacityRebalance$ReplacementStrategy": "

To allow EC2 Fleet to launch a replacement Spot Instance when an instance rebalance notification is emitted for an existing Spot Instance in the fleet, specify launch. Only available for fleets of type maintain.

When a replacement instance is launched, the instance marked for rebalance is not automatically terminated. You can terminate it, or you can leave it running. You are charged for both instances while they are running.

", - "FleetSpotCapacityRebalanceRequest$ReplacementStrategy": "

The replacement strategy to use. Only available for fleets of type maintain.

To allow EC2 Fleet to launch a replacement Spot Instance when an instance rebalance notification is emitted for an existing Spot Instance in the fleet, specify launch. You must specify a value, otherwise you get an error.

When a replacement instance is launched, the instance marked for rebalance is not automatically terminated. You can terminate it, or you can leave it running. You are charged for all instances while they are running.

" + "FleetSpotCapacityRebalance$ReplacementStrategy": "

The replacement strategy to use. Only available for fleets of type maintain.

launch - EC2 Fleet launches a new replacement Spot Instance when a rebalance notification is emitted for an existing Spot Instance in the fleet. EC2 Fleet does not terminate the instances that receive a rebalance notification. You can terminate the old instances, or you can leave them running. You are charged for all instances while they are running.

launch-before-terminate - EC2 Fleet launches a new replacement Spot Instance when a rebalance notification is emitted for an existing Spot Instance in the fleet, and then, after a delay that you specify (in TerminationDelay), terminates the instances that received a rebalance notification.

", + "FleetSpotCapacityRebalanceRequest$ReplacementStrategy": "

The replacement strategy to use. Only available for fleets of type maintain.

launch - EC2 Fleet launches a replacement Spot Instance when a rebalance notification is emitted for an existing Spot Instance in the fleet. EC2 Fleet does not terminate the instances that receive a rebalance notification. You can terminate the old instances, or you can leave them running. You are charged for all instances while they are running.

launch-before-terminate - EC2 Fleet launches a replacement Spot Instance when a rebalance notification is emitted for an existing Spot Instance in the fleet, and then, after a delay that you specify (in TerminationDelay), terminates the instances that received a rebalance notification.

" } }, "FleetSet": { @@ -7619,7 +7619,7 @@ } }, "FleetSpotCapacityRebalanceRequest": { - "base": "

The Spot Instance replacement strategy to use when Amazon EC2 emits a signal that your Spot Instance is at an elevated risk of being interrupted. For more information, see Capacity rebalancing in the Amazon EC2 User Guide.

", + "base": "

The Spot Instance replacement strategy to use when Amazon EC2 emits a rebalance notification signal that your Spot Instance is at an elevated risk of being interrupted. For more information, see Capacity rebalancing in the Amazon EC2 User Guide.

", "refs": { "FleetSpotMaintenanceStrategiesRequest$CapacityRebalance": "

The strategy to use when Amazon EC2 emits a signal that your Spot Instance is at an elevated risk of being interrupted.

" } @@ -9587,6 +9587,8 @@ "EbsBlockDevice$VolumeSize": "

The size of the volume, in GiBs. You must specify either a snapshot ID or a volume size. If you specify a snapshot, the default is the snapshot size. You can specify a volume size that is equal to or larger than the snapshot size.

The following are the supported volumes sizes for each volume type:

", "EbsBlockDevice$Throughput": "

The throughput that the volume supports, in MiB/s.

This parameter is valid only for gp3 volumes.

Valid Range: Minimum value of 125. Maximum value of 1000.

", "FleetCapacityReservation$TotalInstanceCount": "

The total number of instances for which the Capacity Reservation reserves capacity.

", + "FleetSpotCapacityRebalance$TerminationDelay": "

The amount of time (in seconds) that Amazon EC2 waits before terminating the old Spot Instance after launching a new replacement Spot Instance.

", + "FleetSpotCapacityRebalanceRequest$TerminationDelay": "

The amount of time (in seconds) that Amazon EC2 waits before terminating the old Spot Instance after launching a new replacement Spot Instance.

", "FlowLog$MaxAggregationInterval": "

The maximum interval of time, in seconds, during which a flow of packets is captured and aggregated into a flow log record.

When a network interface is attached to a Nitro-based instance, the aggregation interval is always 60 seconds (1 minute) or less, regardless of the specified value.

Valid Values: 60 | 600

", "GetCapacityReservationUsageResult$TotalInstanceCount": "

The number of instances for which the Capacity Reservation reserves capacity.

", "GetCapacityReservationUsageResult$AvailableInstanceCount": "

The remaining capacity. Indicates the number of instances that can be launched in the Capacity Reservation.

", @@ -9743,6 +9745,7 @@ "SecurityGroupRuleRequest$ToPort": "

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

", "Snapshot$VolumeSize": "

The size of the volume, in GiB.

", "SnapshotInfo$VolumeSize": "

Size of the volume from which this snapshot was created.

", + "SpotCapacityRebalance$TerminationDelay": "

The amount of time (in seconds) that Amazon EC2 waits before terminating the old Spot Instance after launching a new replacement Spot Instance.

", "SpotFleetRequestConfigData$TargetCapacity": "

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

", "SpotFleetRequestConfigData$OnDemandTargetCapacity": "

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

", "SpotFleetRequestConfigData$InstancePoolsToUseCount": "

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

Note that Spot Fleet attempts to draw Spot Instances from the number of pools that you specify on a best effort basis. If a pool runs out of Spot capacity before fulfilling your target capacity, Spot Fleet will continue to fulfill your request by drawing from the next cheapest pool. To ensure that your target capacity is met, you might receive Spot Instances from more than the number of pools that you specified. Similarly, if most of the pools have no Spot capacity, you might receive your full target capacity from fewer than the number of pools that you specified.

", @@ -13246,7 +13249,7 @@ "ReplacementStrategy": { "base": null, "refs": { - "SpotCapacityRebalance$ReplacementStrategy": "

The replacement strategy to use. Only available for fleets of type maintain. You must specify a value, otherwise you get an error.

To allow Spot Fleet to launch a replacement Spot Instance when an instance rebalance notification is emitted for a Spot Instance in the fleet, specify launch.

When a replacement instance is launched, the instance marked for rebalance is not automatically terminated. You can terminate it, or you can leave it running. You are charged for all instances while they are running.

" + "SpotCapacityRebalance$ReplacementStrategy": "

The replacement strategy to use. Only available for fleets of type maintain.

launch - Spot Fleet launches a new replacement Spot Instance when a rebalance notification is emitted for an existing Spot Instance in the fleet. Spot Fleet does not terminate the instances that receive a rebalance notification. You can terminate the old instances, or you can leave them running. You are charged for all instances while they are running.

launch-before-terminate - Spot Fleet launches a new replacement Spot Instance when a rebalance notification is emitted for an existing Spot Instance in the fleet, and then, after a delay that you specify (in TerminationDelay), terminates the instances that received a rebalance notification.

" } }, "ReportInstanceReasonCodes": { diff --git a/models/apis/iotwireless/2020-11-22/api-2.json b/models/apis/iotwireless/2020-11-22/api-2.json index 4cc237494b0..61efb693c74 100644 --- a/models/apis/iotwireless/2020-11-22/api-2.json +++ b/models/apis/iotwireless/2020-11-22/api-2.json @@ -28,6 +28,60 @@ {"shape":"AccessDeniedException"} ] }, + "AssociateMulticastGroupWithFuotaTask":{ + "name":"AssociateMulticastGroupWithFuotaTask", + "http":{ + "method":"PUT", + "requestUri":"/fuota-tasks/{Id}/multicast-group", + "responseCode":204 + }, + "input":{"shape":"AssociateMulticastGroupWithFuotaTaskRequest"}, + "output":{"shape":"AssociateMulticastGroupWithFuotaTaskResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ConflictException"}, + {"shape":"ThrottlingException"}, + {"shape":"InternalServerException"} + ] + }, + "AssociateWirelessDeviceWithFuotaTask":{ + "name":"AssociateWirelessDeviceWithFuotaTask", + "http":{ + "method":"PUT", + "requestUri":"/fuota-tasks/{Id}/wireless-device", + "responseCode":204 + }, + "input":{"shape":"AssociateWirelessDeviceWithFuotaTaskRequest"}, + "output":{"shape":"AssociateWirelessDeviceWithFuotaTaskResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ConflictException"}, + {"shape":"ThrottlingException"}, + {"shape":"InternalServerException"} + ] + }, + "AssociateWirelessDeviceWithMulticastGroup":{ + "name":"AssociateWirelessDeviceWithMulticastGroup", + "http":{ + "method":"PUT", + "requestUri":"/multicast-groups/{Id}/wireless-device", + "responseCode":204 + }, + "input":{"shape":"AssociateWirelessDeviceWithMulticastGroupRequest"}, + "output":{"shape":"AssociateWirelessDeviceWithMulticastGroupResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ConflictException"}, + {"shape":"ThrottlingException"}, + {"shape":"InternalServerException"} + ] + }, "AssociateWirelessDeviceWithThing":{ "name":"AssociateWirelessDeviceWithThing", "http":{ @@ -81,6 +135,24 @@ {"shape":"InternalServerException"} ] }, + "CancelMulticastGroupSession":{ + "name":"CancelMulticastGroupSession", + "http":{ + "method":"DELETE", + "requestUri":"/multicast-groups/{Id}/session", + "responseCode":204 + }, + "input":{"shape":"CancelMulticastGroupSessionRequest"}, + "output":{"shape":"CancelMulticastGroupSessionResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ConflictException"}, + {"shape":"InternalServerException"}, + {"shape":"ThrottlingException"} + ] + }, "CreateDestination":{ "name":"CreateDestination", "http":{ @@ -116,6 +188,42 @@ {"shape":"ThrottlingException"} ] }, + "CreateFuotaTask":{ + "name":"CreateFuotaTask", + "http":{ + "method":"POST", + "requestUri":"/fuota-tasks", + "responseCode":201 + }, + "input":{"shape":"CreateFuotaTaskRequest"}, + "output":{"shape":"CreateFuotaTaskResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ConflictException"}, + {"shape":"InternalServerException"}, + {"shape":"ThrottlingException"} + ] + }, + "CreateMulticastGroup":{ + "name":"CreateMulticastGroup", + "http":{ + "method":"POST", + "requestUri":"/multicast-groups", + "responseCode":201 + }, + "input":{"shape":"CreateMulticastGroupRequest"}, + "output":{"shape":"CreateMulticastGroupResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ConflictException"}, + {"shape":"InternalServerException"}, + {"shape":"ThrottlingException"} + ] + }, "CreateServiceProfile":{ "name":"CreateServiceProfile", "http":{ @@ -240,6 +348,41 @@ {"shape":"ThrottlingException"} ] }, + "DeleteFuotaTask":{ + "name":"DeleteFuotaTask", + "http":{ + "method":"DELETE", + "requestUri":"/fuota-tasks/{Id}", + "responseCode":204 + }, + "input":{"shape":"DeleteFuotaTaskRequest"}, + "output":{"shape":"DeleteFuotaTaskResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"AccessDeniedException"}, + {"shape":"InternalServerException"}, + {"shape":"ThrottlingException"} + ] + }, + "DeleteMulticastGroup":{ + "name":"DeleteMulticastGroup", + "http":{ + "method":"DELETE", + "requestUri":"/multicast-groups/{Id}", + "responseCode":204 + }, + "input":{"shape":"DeleteMulticastGroupRequest"}, + "output":{"shape":"DeleteMulticastGroupResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ConflictException"}, + {"shape":"InternalServerException"}, + {"shape":"ThrottlingException"} + ] + }, "DeleteServiceProfile":{ "name":"DeleteServiceProfile", "http":{ @@ -342,6 +485,58 @@ {"shape":"ThrottlingException"} ] }, + "DisassociateMulticastGroupFromFuotaTask":{ + "name":"DisassociateMulticastGroupFromFuotaTask", + "http":{ + "method":"DELETE", + "requestUri":"/fuota-tasks/{Id}/multicast-groups/{MulticastGroupId}", + "responseCode":204 + }, + "input":{"shape":"DisassociateMulticastGroupFromFuotaTaskRequest"}, + "output":{"shape":"DisassociateMulticastGroupFromFuotaTaskResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ConflictException"}, + {"shape":"InternalServerException"} + ] + }, + "DisassociateWirelessDeviceFromFuotaTask":{ + "name":"DisassociateWirelessDeviceFromFuotaTask", + "http":{ + "method":"DELETE", + "requestUri":"/fuota-tasks/{Id}/wireless-devices/{WirelessDeviceId}", + "responseCode":204 + }, + "input":{"shape":"DisassociateWirelessDeviceFromFuotaTaskRequest"}, + "output":{"shape":"DisassociateWirelessDeviceFromFuotaTaskResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ConflictException"}, + {"shape":"ThrottlingException"}, + {"shape":"InternalServerException"} + ] + }, + "DisassociateWirelessDeviceFromMulticastGroup":{ + "name":"DisassociateWirelessDeviceFromMulticastGroup", + "http":{ + "method":"DELETE", + "requestUri":"/multicast-groups/{Id}/wireless-devices/{WirelessDeviceId}", + "responseCode":204 + }, + "input":{"shape":"DisassociateWirelessDeviceFromMulticastGroupRequest"}, + "output":{"shape":"DisassociateWirelessDeviceFromMulticastGroupResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ThrottlingException"}, + {"shape":"InternalServerException"} + ] + }, "DisassociateWirelessDeviceFromThing":{ "name":"DisassociateWirelessDeviceFromThing", "http":{ @@ -427,6 +622,22 @@ {"shape":"ThrottlingException"} ] }, + "GetFuotaTask":{ + "name":"GetFuotaTask", + "http":{ + "method":"GET", + "requestUri":"/fuota-tasks/{Id}" + }, + "input":{"shape":"GetFuotaTaskRequest"}, + "output":{"shape":"GetFuotaTaskResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"AccessDeniedException"}, + {"shape":"InternalServerException"}, + {"shape":"ThrottlingException"} + ] + }, "GetLogLevelsByResourceTypes":{ "name":"GetLogLevelsByResourceTypes", "http":{ @@ -444,6 +655,38 @@ {"shape":"ValidationException"} ] }, + "GetMulticastGroup":{ + "name":"GetMulticastGroup", + "http":{ + "method":"GET", + "requestUri":"/multicast-groups/{Id}" + }, + "input":{"shape":"GetMulticastGroupRequest"}, + "output":{"shape":"GetMulticastGroupResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"AccessDeniedException"}, + {"shape":"InternalServerException"}, + {"shape":"ThrottlingException"} + ] + }, + "GetMulticastGroupSession":{ + "name":"GetMulticastGroupSession", + "http":{ + "method":"GET", + "requestUri":"/multicast-groups/{Id}/session" + }, + "input":{"shape":"GetMulticastGroupSessionRequest"}, + "output":{"shape":"GetMulticastGroupSessionResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"AccessDeniedException"}, + {"shape":"InternalServerException"}, + {"shape":"ThrottlingException"} + ] + }, "GetPartnerAccount":{ "name":"GetPartnerAccount", "http":{ @@ -459,6 +702,22 @@ {"shape":"ThrottlingException"} ] }, + "GetResourceEventConfiguration":{ + "name":"GetResourceEventConfiguration", + "http":{ + "method":"GET", + "requestUri":"/event-configurations/{Identifier}" + }, + "input":{"shape":"GetResourceEventConfigurationRequest"}, + "output":{"shape":"GetResourceEventConfigurationResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"InternalServerException"} + ] + }, "GetResourceLogLevel":{ "name":"GetResourceLogLevel", "http":{ @@ -667,6 +926,52 @@ {"shape":"ThrottlingException"} ] }, + "ListFuotaTasks":{ + "name":"ListFuotaTasks", + "http":{ + "method":"GET", + "requestUri":"/fuota-tasks" + }, + "input":{"shape":"ListFuotaTasksRequest"}, + "output":{"shape":"ListFuotaTasksResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"InternalServerException"}, + {"shape":"ThrottlingException"} + ] + }, + "ListMulticastGroups":{ + "name":"ListMulticastGroups", + "http":{ + "method":"GET", + "requestUri":"/multicast-groups" + }, + "input":{"shape":"ListMulticastGroupsRequest"}, + "output":{"shape":"ListMulticastGroupsResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"InternalServerException"}, + {"shape":"ThrottlingException"} + ] + }, + "ListMulticastGroupsByFuotaTask":{ + "name":"ListMulticastGroupsByFuotaTask", + "http":{ + "method":"GET", + "requestUri":"/fuota-tasks/{Id}/multicast-groups" + }, + "input":{"shape":"ListMulticastGroupsByFuotaTaskRequest"}, + "output":{"shape":"ListMulticastGroupsByFuotaTaskResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"InternalServerException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ThrottlingException"} + ] + }, "ListPartnerAccounts":{ "name":"ListPartnerAccounts", "http":{ @@ -809,6 +1114,24 @@ {"shape":"ValidationException"} ] }, + "SendDataToMulticastGroup":{ + "name":"SendDataToMulticastGroup", + "http":{ + "method":"POST", + "requestUri":"/multicast-groups/{Id}/data", + "responseCode":201 + }, + "input":{"shape":"SendDataToMulticastGroupRequest"}, + "output":{"shape":"SendDataToMulticastGroupResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ConflictException"}, + {"shape":"InternalServerException"}, + {"shape":"ThrottlingException"} + ] + }, "SendDataToWirelessDevice":{ "name":"SendDataToWirelessDevice", "http":{ @@ -825,6 +1148,76 @@ {"shape":"InternalServerException"} ] }, + "StartBulkAssociateWirelessDeviceWithMulticastGroup":{ + "name":"StartBulkAssociateWirelessDeviceWithMulticastGroup", + "http":{ + "method":"PATCH", + "requestUri":"/multicast-groups/{Id}/bulk", + "responseCode":204 + }, + "input":{"shape":"StartBulkAssociateWirelessDeviceWithMulticastGroupRequest"}, + "output":{"shape":"StartBulkAssociateWirelessDeviceWithMulticastGroupResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"AccessDeniedException"}, + {"shape":"InternalServerException"}, + {"shape":"ThrottlingException"} + ] + }, + "StartBulkDisassociateWirelessDeviceFromMulticastGroup":{ + "name":"StartBulkDisassociateWirelessDeviceFromMulticastGroup", + "http":{ + "method":"POST", + "requestUri":"/multicast-groups/{Id}/bulk", + "responseCode":204 + }, + "input":{"shape":"StartBulkDisassociateWirelessDeviceFromMulticastGroupRequest"}, + "output":{"shape":"StartBulkDisassociateWirelessDeviceFromMulticastGroupResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"AccessDeniedException"}, + {"shape":"InternalServerException"}, + {"shape":"ThrottlingException"} + ] + }, + "StartFuotaTask":{ + "name":"StartFuotaTask", + "http":{ + "method":"PUT", + "requestUri":"/fuota-tasks/{Id}", + "responseCode":204 + }, + "input":{"shape":"StartFuotaTaskRequest"}, + "output":{"shape":"StartFuotaTaskResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ConflictException"}, + {"shape":"ThrottlingException"}, + {"shape":"InternalServerException"} + ] + }, + "StartMulticastGroupSession":{ + "name":"StartMulticastGroupSession", + "http":{ + "method":"PUT", + "requestUri":"/multicast-groups/{Id}/session", + "responseCode":204 + }, + "input":{"shape":"StartMulticastGroupSessionRequest"}, + "output":{"shape":"StartMulticastGroupSessionResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ConflictException"}, + {"shape":"InternalServerException"}, + {"shape":"ThrottlingException"} + ] + }, "TagResource":{ "name":"TagResource", "http":{ @@ -893,6 +1286,24 @@ {"shape":"ThrottlingException"} ] }, + "UpdateFuotaTask":{ + "name":"UpdateFuotaTask", + "http":{ + "method":"PATCH", + "requestUri":"/fuota-tasks/{Id}", + "responseCode":204 + }, + "input":{"shape":"UpdateFuotaTaskRequest"}, + "output":{"shape":"UpdateFuotaTaskResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ConflictException"}, + {"shape":"InternalServerException"}, + {"shape":"ThrottlingException"} + ] + }, "UpdateLogLevelsByResourceTypes":{ "name":"UpdateLogLevelsByResourceTypes", "http":{ @@ -911,6 +1322,24 @@ {"shape":"ValidationException"} ] }, + "UpdateMulticastGroup":{ + "name":"UpdateMulticastGroup", + "http":{ + "method":"PATCH", + "requestUri":"/multicast-groups/{Id}", + "responseCode":204 + }, + "input":{"shape":"UpdateMulticastGroupRequest"}, + "output":{"shape":"UpdateMulticastGroupResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ConflictException"}, + {"shape":"InternalServerException"}, + {"shape":"ThrottlingException"} + ] + }, "UpdatePartnerAccount":{ "name":"UpdatePartnerAccount", "http":{ @@ -927,6 +1356,24 @@ {"shape":"ThrottlingException"} ] }, + "UpdateResourceEventConfiguration":{ + "name":"UpdateResourceEventConfiguration", + "http":{ + "method":"PATCH", + "requestUri":"/event-configurations/{Identifier}", + "responseCode":204 + }, + "input":{"shape":"UpdateResourceEventConfigurationRequest"}, + "output":{"shape":"UpdateResourceEventConfigurationResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ConflictException"}, + {"shape":"ThrottlingException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"InternalServerException"} + ] + }, "UpdateWirelessDevice":{ "name":"UpdateWirelessDevice", "http":{ @@ -1034,6 +1481,66 @@ "Arn":{"shape":"PartnerAccountArn"} } }, + "AssociateMulticastGroupWithFuotaTaskRequest":{ + "type":"structure", + "required":[ + "Id", + "MulticastGroupId" + ], + "members":{ + "Id":{ + "shape":"FuotaTaskId", + "location":"uri", + "locationName":"Id" + }, + "MulticastGroupId":{"shape":"MulticastGroupId"} + } + }, + "AssociateMulticastGroupWithFuotaTaskResponse":{ + "type":"structure", + "members":{ + } + }, + "AssociateWirelessDeviceWithFuotaTaskRequest":{ + "type":"structure", + "required":[ + "Id", + "WirelessDeviceId" + ], + "members":{ + "Id":{ + "shape":"FuotaTaskId", + "location":"uri", + "locationName":"Id" + }, + "WirelessDeviceId":{"shape":"WirelessDeviceId"} + } + }, + "AssociateWirelessDeviceWithFuotaTaskResponse":{ + "type":"structure", + "members":{ + } + }, + "AssociateWirelessDeviceWithMulticastGroupRequest":{ + "type":"structure", + "required":[ + "Id", + "WirelessDeviceId" + ], + "members":{ + "Id":{ + "shape":"MulticastGroupId", + "location":"uri", + "locationName":"Id" + }, + "WirelessDeviceId":{"shape":"WirelessDeviceId"} + } + }, + "AssociateWirelessDeviceWithMulticastGroupResponse":{ + "type":"structure", + "members":{ + } + }, "AssociateWirelessDeviceWithThingRequest":{ "type":"structure", "required":[ @@ -1104,6 +1611,22 @@ "critical" ] }, + "CancelMulticastGroupSessionRequest":{ + "type":"structure", + "required":["Id"], + "members":{ + "Id":{ + "shape":"MulticastGroupId", + "location":"uri", + "locationName":"Id" + } + } + }, + "CancelMulticastGroupSessionResponse":{ + "type":"structure", + "members":{ + } + }, "CertificateList":{ "type":"structure", "required":[ @@ -1192,27 +1715,74 @@ "CreateDestinationResponse":{ "type":"structure", "members":{ - "Arn":{"shape":"DestinationArn"}, - "Name":{"shape":"DestinationName"} + "Arn":{"shape":"DestinationArn"}, + "Name":{"shape":"DestinationName"} + } + }, + "CreateDeviceProfileRequest":{ + "type":"structure", + "members":{ + "Name":{"shape":"DeviceProfileName"}, + "LoRaWAN":{"shape":"LoRaWANDeviceProfile"}, + "Tags":{"shape":"TagList"}, + "ClientRequestToken":{ + "shape":"ClientRequestToken", + "idempotencyToken":true + } + } + }, + "CreateDeviceProfileResponse":{ + "type":"structure", + "members":{ + "Arn":{"shape":"DeviceProfileArn"}, + "Id":{"shape":"DeviceProfileId"} + } + }, + "CreateFuotaTaskRequest":{ + "type":"structure", + "required":[ + "FirmwareUpdateImage", + "FirmwareUpdateRole" + ], + "members":{ + "Name":{"shape":"FuotaTaskName"}, + "Description":{"shape":"Description"}, + "ClientRequestToken":{ + "shape":"ClientRequestToken", + "idempotencyToken":true + }, + "LoRaWAN":{"shape":"LoRaWANFuotaTask"}, + "FirmwareUpdateImage":{"shape":"FirmwareUpdateImage"}, + "FirmwareUpdateRole":{"shape":"FirmwareUpdateRole"}, + "Tags":{"shape":"TagList"} + } + }, + "CreateFuotaTaskResponse":{ + "type":"structure", + "members":{ + "Arn":{"shape":"FuotaTaskArn"}, + "Id":{"shape":"FuotaTaskId"} } }, - "CreateDeviceProfileRequest":{ + "CreateMulticastGroupRequest":{ "type":"structure", + "required":["LoRaWAN"], "members":{ - "Name":{"shape":"DeviceProfileName"}, - "LoRaWAN":{"shape":"LoRaWANDeviceProfile"}, - "Tags":{"shape":"TagList"}, + "Name":{"shape":"MulticastGroupName"}, + "Description":{"shape":"Description"}, "ClientRequestToken":{ "shape":"ClientRequestToken", "idempotencyToken":true - } + }, + "LoRaWAN":{"shape":"LoRaWANMulticast"}, + "Tags":{"shape":"TagList"} } }, - "CreateDeviceProfileResponse":{ + "CreateMulticastGroupResponse":{ "type":"structure", "members":{ - "Arn":{"shape":"DeviceProfileArn"}, - "Id":{"shape":"DeviceProfileId"} + "Arn":{"shape":"MulticastGroupArn"}, + "Id":{"shape":"MulticastGroupId"} } }, "CreateServiceProfileRequest":{ @@ -1324,6 +1894,7 @@ "Status":{"shape":"WirelessGatewayTaskStatus"} } }, + "CreatedAt":{"type":"timestamp"}, "DeleteDestinationRequest":{ "type":"structure", "required":["Name"], @@ -1356,6 +1927,38 @@ "members":{ } }, + "DeleteFuotaTaskRequest":{ + "type":"structure", + "required":["Id"], + "members":{ + "Id":{ + "shape":"FuotaTaskId", + "location":"uri", + "locationName":"Id" + } + } + }, + "DeleteFuotaTaskResponse":{ + "type":"structure", + "members":{ + } + }, + "DeleteMulticastGroupRequest":{ + "type":"structure", + "required":["Id"], + "members":{ + "Id":{ + "shape":"MulticastGroupId", + "location":"uri", + "locationName":"Id" + } + } + }, + "DeleteMulticastGroupResponse":{ + "type":"structure", + "members":{ + } + }, "DeleteServiceProfileRequest":{ "type":"structure", "required":["Id"], @@ -1499,6 +2102,12 @@ "type":"string", "max":256 }, + "DeviceRegistrationStateEventConfiguration":{ + "type":"structure", + "members":{ + "Sidewalk":{"shape":"SidewalkEventNotificationConfigurations"} + } + }, "DeviceState":{ "type":"string", "enum":[ @@ -1532,6 +2141,78 @@ "members":{ } }, + "DisassociateMulticastGroupFromFuotaTaskRequest":{ + "type":"structure", + "required":[ + "Id", + "MulticastGroupId" + ], + "members":{ + "Id":{ + "shape":"FuotaTaskId", + "location":"uri", + "locationName":"Id" + }, + "MulticastGroupId":{ + "shape":"MulticastGroupId", + "location":"uri", + "locationName":"MulticastGroupId" + } + } + }, + "DisassociateMulticastGroupFromFuotaTaskResponse":{ + "type":"structure", + "members":{ + } + }, + "DisassociateWirelessDeviceFromFuotaTaskRequest":{ + "type":"structure", + "required":[ + "Id", + "WirelessDeviceId" + ], + "members":{ + "Id":{ + "shape":"FuotaTaskId", + "location":"uri", + "locationName":"Id" + }, + "WirelessDeviceId":{ + "shape":"WirelessDeviceId", + "location":"uri", + "locationName":"WirelessDeviceId" + } + } + }, + "DisassociateWirelessDeviceFromFuotaTaskResponse":{ + "type":"structure", + "members":{ + } + }, + "DisassociateWirelessDeviceFromMulticastGroupRequest":{ + "type":"structure", + "required":[ + "Id", + "WirelessDeviceId" + ], + "members":{ + "Id":{ + "shape":"MulticastGroupId", + "location":"uri", + "locationName":"Id" + }, + "WirelessDeviceId":{ + "shape":"WirelessDeviceId", + "location":"uri", + "locationName":"WirelessDeviceId" + } + } + }, + "DisassociateWirelessDeviceFromMulticastGroupResponse":{ + "type":"structure", + "members":{ + } + }, "DisassociateWirelessDeviceFromThingRequest":{ "type":"structure", "required":["Id"], @@ -1585,6 +2266,24 @@ "max":2147483647, "min":0 }, + "DlClass":{ + "type":"string", + "enum":[ + "ClassB", + "ClassC" + ], + "max":256 + }, + "DlDr":{ + "type":"integer", + "max":15, + "min":0 + }, + "DlFreq":{ + "type":"integer", + "max":1000000000, + "min":100000000 + }, "DlRate":{ "type":"integer", "max":2147483647, @@ -1620,6 +2319,17 @@ "passthrough" ] }, + "EventNotificationPartnerType":{ + "type":"string", + "enum":["Sidewalk"] + }, + "EventNotificationTopicStatus":{ + "type":"string", + "enum":[ + "Enabled", + "Disabled" + ] + }, "Expression":{ "type":"string", "max":2048 @@ -1640,6 +2350,14 @@ "max":223, "min":1 }, + "FPorts":{ + "type":"structure", + "members":{ + "Fuota":{"shape":"FPort"}, + "Multicast":{"shape":"FPort"}, + "ClockSync":{"shape":"FPort"} + } + }, "FactoryPresetFreqsList":{ "type":"list", "member":{"shape":"PresetFreq"}, @@ -1653,10 +2371,74 @@ "pattern":"[a-fA-F0-9]{64}", "sensitive":true }, + "FirmwareUpdateImage":{ + "type":"string", + "max":4096, + "min":1 + }, + "FirmwareUpdateRole":{ + "type":"string", + "max":2048, + "min":1 + }, + "FuotaDeviceStatus":{ + "type":"string", + "enum":[ + "Initial", + "Package_Not_Supported", + "FragAlgo_unsupported", + "Not_enough_memory", + "FragIndex_unsupported", + "Wrong_descriptor", + "SessionCnt_replay", + "MissingFrag", + "MemoryError", + "MICError", + "Successful" + ] + }, + "FuotaTask":{ + "type":"structure", + "members":{ + "Id":{"shape":"FuotaTaskId"}, + "Arn":{"shape":"FuotaTaskArn"}, + "Name":{"shape":"FuotaTaskName"} + } + }, + "FuotaTaskArn":{ + "type":"string", + "max":128 + }, + "FuotaTaskId":{ + "type":"string", + "max":256 + }, + "FuotaTaskList":{ + "type":"list", + "member":{"shape":"FuotaTask"} + }, + "FuotaTaskName":{ + "type":"string", + "max":256 + }, + "FuotaTaskStatus":{ + "type":"string", + "enum":[ + "Pending", + "FuotaSession_Waiting", + "In_FuotaSession", + "FuotaDone", + "Delete_Waiting" + ] + }, "GatewayEui":{ "type":"string", "pattern":"^(([0-9A-Fa-f]{2}-){7}|([0-9A-Fa-f]{2}:){7}|([0-9A-Fa-f]{2}\\s){7}|([0-9A-Fa-f]{2}){7})([0-9A-Fa-f]{2})$" }, + "GenAppKey":{ + "type":"string", + "pattern":"[a-fA-F0-9]{32}" + }, "GetDestinationRequest":{ "type":"structure", "required":["Name"], @@ -1699,6 +2481,31 @@ "LoRaWAN":{"shape":"LoRaWANDeviceProfile"} } }, + "GetFuotaTaskRequest":{ + "type":"structure", + "required":["Id"], + "members":{ + "Id":{ + "shape":"FuotaTaskId", + "location":"uri", + "locationName":"Id" + } + } + }, + "GetFuotaTaskResponse":{ + "type":"structure", + "members":{ + "Arn":{"shape":"FuotaTaskArn"}, + "Id":{"shape":"FuotaTaskId"}, + "Status":{"shape":"FuotaTaskStatus"}, + "Name":{"shape":"FuotaTaskName"}, + "Description":{"shape":"Description"}, + "LoRaWAN":{"shape":"LoRaWANFuotaTaskGetInfo"}, + "FirmwareUpdateImage":{"shape":"FirmwareUpdateImage"}, + "FirmwareUpdateRole":{"shape":"FirmwareUpdateRole"}, + "CreatedAt":{"shape":"CreatedAt"} + } + }, "GetLogLevelsByResourceTypesRequest":{ "type":"structure", "members":{ @@ -1712,6 +2519,46 @@ "WirelessDeviceLogOptions":{"shape":"WirelessDeviceLogOptionList"} } }, + "GetMulticastGroupRequest":{ + "type":"structure", + "required":["Id"], + "members":{ + "Id":{ + "shape":"MulticastGroupId", + "location":"uri", + "locationName":"Id" + } + } + }, + "GetMulticastGroupResponse":{ + "type":"structure", + "members":{ + "Arn":{"shape":"MulticastGroupArn"}, + "Id":{"shape":"MulticastGroupId"}, + "Name":{"shape":"MulticastGroupName"}, + "Description":{"shape":"Description"}, + "Status":{"shape":"MulticastGroupStatus"}, + "LoRaWAN":{"shape":"LoRaWANMulticastGet"}, + "CreatedAt":{"shape":"CreatedAt"} + } + }, + "GetMulticastGroupSessionRequest":{ + "type":"structure", + "required":["Id"], + "members":{ + "Id":{ + "shape":"MulticastGroupId", + "location":"uri", + "locationName":"Id" + } + } + }, + "GetMulticastGroupSessionResponse":{ + "type":"structure", + "members":{ + "LoRaWAN":{"shape":"LoRaWANMulticastSession"} + } + }, "GetPartnerAccountRequest":{ "type":"structure", "required":[ @@ -1738,6 +2585,37 @@ "AccountLinked":{"shape":"AccountLinked"} } }, + "GetResourceEventConfigurationRequest":{ + "type":"structure", + "required":[ + "Identifier", + "IdentifierType" + ], + "members":{ + "Identifier":{ + "shape":"Identifier", + "location":"uri", + "locationName":"Identifier" + }, + "IdentifierType":{ + "shape":"IdentifierType", + "location":"querystring", + "locationName":"identifierType" + }, + "PartnerType":{ + "shape":"EventNotificationPartnerType", + "location":"querystring", + "locationName":"partnerType" + } + } + }, + "GetResourceEventConfigurationResponse":{ + "type":"structure", + "members":{ + "DeviceRegistrationState":{"shape":"DeviceRegistrationStateEventConfiguration"}, + "Proximity":{"shape":"ProximityEventConfiguration"} + } + }, "GetResourceLogLevelRequest":{ "type":"structure", "required":[ @@ -1990,6 +2868,10 @@ "type":"string", "max":256 }, + "IdentifierType":{ + "type":"string", + "enum":["PartnerAccountId"] + }, "Integer":{"type":"integer"}, "InternalServerException":{ "type":"structure", @@ -2020,29 +2902,101 @@ "max":2, "min":2 }, - "ListDestinationsRequest":{ + "ListDestinationsRequest":{ + "type":"structure", + "members":{ + "MaxResults":{ + "shape":"MaxResults", + "location":"querystring", + "locationName":"maxResults" + }, + "NextToken":{ + "shape":"NextToken", + "location":"querystring", + "locationName":"nextToken" + } + } + }, + "ListDestinationsResponse":{ + "type":"structure", + "members":{ + "NextToken":{"shape":"NextToken"}, + "DestinationList":{"shape":"DestinationList"} + } + }, + "ListDeviceProfilesRequest":{ + "type":"structure", + "members":{ + "NextToken":{ + "shape":"NextToken", + "location":"querystring", + "locationName":"nextToken" + }, + "MaxResults":{ + "shape":"MaxResults", + "location":"querystring", + "locationName":"maxResults" + } + } + }, + "ListDeviceProfilesResponse":{ + "type":"structure", + "members":{ + "NextToken":{"shape":"NextToken"}, + "DeviceProfileList":{"shape":"DeviceProfileList"} + } + }, + "ListFuotaTasksRequest":{ "type":"structure", "members":{ + "NextToken":{ + "shape":"NextToken", + "location":"querystring", + "locationName":"nextToken" + }, "MaxResults":{ "shape":"MaxResults", "location":"querystring", "locationName":"maxResults" + } + } + }, + "ListFuotaTasksResponse":{ + "type":"structure", + "members":{ + "NextToken":{"shape":"NextToken"}, + "FuotaTaskList":{"shape":"FuotaTaskList"} + } + }, + "ListMulticastGroupsByFuotaTaskRequest":{ + "type":"structure", + "required":["Id"], + "members":{ + "Id":{ + "shape":"FuotaTaskId", + "location":"uri", + "locationName":"Id" }, "NextToken":{ "shape":"NextToken", "location":"querystring", "locationName":"nextToken" + }, + "MaxResults":{ + "shape":"MaxResults", + "location":"querystring", + "locationName":"maxResults" } } }, - "ListDestinationsResponse":{ + "ListMulticastGroupsByFuotaTaskResponse":{ "type":"structure", "members":{ "NextToken":{"shape":"NextToken"}, - "DestinationList":{"shape":"DestinationList"} + "MulticastGroupList":{"shape":"MulticastGroupListByFuotaTask"} } }, - "ListDeviceProfilesRequest":{ + "ListMulticastGroupsRequest":{ "type":"structure", "members":{ "NextToken":{ @@ -2057,11 +3011,11 @@ } } }, - "ListDeviceProfilesResponse":{ + "ListMulticastGroupsResponse":{ "type":"structure", "members":{ "NextToken":{"shape":"NextToken"}, - "DeviceProfileList":{"shape":"DeviceProfileList"} + "MulticastGroupList":{"shape":"MulticastGroupList"} } }, "ListPartnerAccountsRequest":{ @@ -2157,6 +3111,16 @@ "shape":"WirelessDeviceType", "location":"querystring", "locationName":"wirelessDeviceType" + }, + "FuotaTaskId":{ + "shape":"FuotaTaskId", + "location":"querystring", + "locationName":"fuotaTaskId" + }, + "MulticastGroupId":{ + "shape":"MulticastGroupId", + "location":"querystring", + "locationName":"multicastGroupId" } } }, @@ -2225,7 +3189,8 @@ "OtaaV1_1":{"shape":"OtaaV1_1"}, "OtaaV1_0_x":{"shape":"OtaaV1_0_x"}, "AbpV1_1":{"shape":"AbpV1_1"}, - "AbpV1_0_x":{"shape":"AbpV1_0_x"} + "AbpV1_0_x":{"shape":"AbpV1_0_x"}, + "FPorts":{"shape":"FPorts"} } }, "LoRaWANDeviceMetadata":{ @@ -2263,6 +3228,19 @@ "Supports32BitFCnt":{"shape":"Supports32BitFCnt"} } }, + "LoRaWANFuotaTask":{ + "type":"structure", + "members":{ + "RfRegion":{"shape":"SupportedRfRegion"} + } + }, + "LoRaWANFuotaTaskGetInfo":{ + "type":"structure", + "members":{ + "RfRegion":{"shape":"RfRegion"}, + "StartTime":{"shape":"StartTime"} + } + }, "LoRaWANGateway":{ "type":"structure", "members":{ @@ -2329,6 +3307,37 @@ "DevEui":{"shape":"DevEui"} } }, + "LoRaWANMulticast":{ + "type":"structure", + "members":{ + "RfRegion":{"shape":"SupportedRfRegion"}, + "DlClass":{"shape":"DlClass"} + } + }, + "LoRaWANMulticastGet":{ + "type":"structure", + "members":{ + "RfRegion":{"shape":"SupportedRfRegion"}, + "DlClass":{"shape":"DlClass"}, + "NumberOfDevicesRequested":{"shape":"NumberOfDevicesRequested"}, + "NumberOfDevicesInGroup":{"shape":"NumberOfDevicesInGroup"} + } + }, + "LoRaWANMulticastMetadata":{ + "type":"structure", + "members":{ + "FPort":{"shape":"FPort"} + } + }, + "LoRaWANMulticastSession":{ + "type":"structure", + "members":{ + "DlDr":{"shape":"DlDr"}, + "DlFreq":{"shape":"DlFreq"}, + "SessionStartTime":{"shape":"SessionStartTimeTimestamp"}, + "SessionTimeout":{"shape":"SessionTimeout"} + } + }, "LoRaWANSendDataToDevice":{ "type":"structure", "members":{ @@ -2341,6 +3350,12 @@ "AddGwMetadata":{"shape":"AddGwMetadata"} } }, + "LoRaWANStartFuotaTask":{ + "type":"structure", + "members":{ + "StartTime":{"shape":"StartTime"} + } + }, "LoRaWANUpdateDevice":{ "type":"structure", "members":{ @@ -2391,6 +3406,11 @@ "max":250, "min":0 }, + "McGroupId":{ + "type":"integer", + "max":256, + "min":1 + }, "Message":{ "type":"string", "max":2048 @@ -2415,6 +3435,58 @@ "max":4096, "min":1 }, + "MulticastDeviceStatus":{ + "type":"string", + "max":256 + }, + "MulticastGroup":{ + "type":"structure", + "members":{ + "Id":{"shape":"MulticastGroupId"}, + "Arn":{"shape":"MulticastGroupArn"}, + "Name":{"shape":"MulticastGroupName"} + } + }, + "MulticastGroupArn":{ + "type":"string", + "max":128 + }, + "MulticastGroupByFuotaTask":{ + "type":"structure", + "members":{ + "Id":{"shape":"MulticastGroupId"} + } + }, + "MulticastGroupId":{ + "type":"string", + "max":256 + }, + "MulticastGroupList":{ + "type":"list", + "member":{"shape":"MulticastGroup"} + }, + "MulticastGroupListByFuotaTask":{ + "type":"list", + "member":{"shape":"MulticastGroupByFuotaTask"} + }, + "MulticastGroupMessageId":{ + "type":"string", + "max":256 + }, + "MulticastGroupName":{ + "type":"string", + "max":256 + }, + "MulticastGroupStatus":{ + "type":"string", + "max":256 + }, + "MulticastWirelessMetadata":{ + "type":"structure", + "members":{ + "LoRaWAN":{"shape":"LoRaWANMulticastMetadata"} + } + }, "NetId":{ "type":"string", "pattern":"[a-fA-F0-9]{6}" @@ -2429,6 +3501,8 @@ "type":"string", "max":4096 }, + "NumberOfDevicesInGroup":{"type":"integer"}, + "NumberOfDevicesRequested":{"type":"integer"}, "NwkGeoLoc":{"type":"boolean"}, "NwkKey":{ "type":"string", @@ -2446,7 +3520,8 @@ "type":"structure", "members":{ "AppKey":{"shape":"AppKey"}, - "AppEui":{"shape":"AppEui"} + "AppEui":{"shape":"AppEui"}, + "GenAppKey":{"shape":"GenAppKey"} } }, "OtaaV1_1":{ @@ -2497,6 +3572,12 @@ "max":16700000, "min":1000000 }, + "ProximityEventConfiguration":{ + "type":"structure", + "members":{ + "Sidewalk":{"shape":"SidewalkEventNotificationConfigurations"} + } + }, "PutResourceLogLevelRequest":{ "type":"structure", "required":[ @@ -2523,6 +3604,10 @@ "members":{ } }, + "QueryString":{ + "type":"string", + "max":4096 + }, "RaAllowed":{"type":"boolean"}, "RegParamsRevision":{ "type":"string", @@ -2617,6 +3702,29 @@ "type":"string", "pattern":"[a-fA-F0-9]{32}" }, + "SendDataToMulticastGroupRequest":{ + "type":"structure", + "required":[ + "Id", + "PayloadData", + "WirelessMetadata" + ], + "members":{ + "Id":{ + "shape":"MulticastGroupId", + "location":"uri", + "locationName":"Id" + }, + "PayloadData":{"shape":"PayloadData"}, + "WirelessMetadata":{"shape":"MulticastWirelessMetadata"} + } + }, + "SendDataToMulticastGroupResponse":{ + "type":"structure", + "members":{ + "MessageId":{"shape":"MulticastGroupMessageId"} + } + }, "SendDataToWirelessDeviceRequest":{ "type":"structure", "required":[ @@ -2683,6 +3791,15 @@ "AppSKey":{"shape":"AppSKey"} } }, + "SessionStartTimeTimestamp":{ + "type":"timestamp", + "timestampFormat":"iso8601" + }, + "SessionTimeout":{ + "type":"integer", + "max":172800, + "min":60 + }, "SidewalkAccountInfo":{ "type":"structure", "members":{ @@ -2720,6 +3837,12 @@ "DeviceState":{"shape":"DeviceState"} } }, + "SidewalkEventNotificationConfigurations":{ + "type":"structure", + "members":{ + "AmazonIdEventTopic":{"shape":"EventNotificationTopicStatus"} + } + }, "SidewalkId":{ "type":"string", "max":256 @@ -2757,6 +3880,83 @@ "P256r1" ] }, + "StartBulkAssociateWirelessDeviceWithMulticastGroupRequest":{ + "type":"structure", + "required":["Id"], + "members":{ + "Id":{ + "shape":"MulticastGroupId", + "location":"uri", + "locationName":"Id" + }, + "QueryString":{"shape":"QueryString"}, + "Tags":{"shape":"TagList"} + } + }, + "StartBulkAssociateWirelessDeviceWithMulticastGroupResponse":{ + "type":"structure", + "members":{ + } + }, + "StartBulkDisassociateWirelessDeviceFromMulticastGroupRequest":{ + "type":"structure", + "required":["Id"], + "members":{ + "Id":{ + "shape":"MulticastGroupId", + "location":"uri", + "locationName":"Id" + }, + "QueryString":{"shape":"QueryString"}, + "Tags":{"shape":"TagList"} + } + }, + "StartBulkDisassociateWirelessDeviceFromMulticastGroupResponse":{ + "type":"structure", + "members":{ + } + }, + "StartFuotaTaskRequest":{ + "type":"structure", + "required":["Id"], + "members":{ + "Id":{ + "shape":"FuotaTaskId", + "location":"uri", + "locationName":"Id" + }, + "LoRaWAN":{"shape":"LoRaWANStartFuotaTask"} + } + }, + "StartFuotaTaskResponse":{ + "type":"structure", + "members":{ + } + }, + "StartMulticastGroupSessionRequest":{ + "type":"structure", + "required":[ + "Id", + "LoRaWAN" + ], + "members":{ + "Id":{ + "shape":"MulticastGroupId", + "location":"uri", + "locationName":"Id" + }, + "LoRaWAN":{"shape":"LoRaWANMulticastSession"} + } + }, + "StartMulticastGroupSessionResponse":{ + "type":"structure", + "members":{ + } + }, + "StartTime":{ + "type":"timestamp", + "timestampFormat":"iso8601" + }, "Station":{ "type":"string", "max":4096, @@ -2773,6 +3973,15 @@ "max":8, "min":0 }, + "SupportedRfRegion":{ + "type":"string", + "enum":[ + "EU868", + "US915", + "AU915", + "AS923-1" + ] + }, "Supports32BitFCnt":{"type":"boolean"}, "SupportsClassB":{"type":"boolean"}, "SupportsClassC":{"type":"boolean"}, @@ -2939,6 +4148,27 @@ "members":{ } }, + "UpdateFuotaTaskRequest":{ + "type":"structure", + "required":["Id"], + "members":{ + "Id":{ + "shape":"FuotaTaskId", + "location":"uri", + "locationName":"Id" + }, + "Name":{"shape":"FuotaTaskName"}, + "Description":{"shape":"Description"}, + "LoRaWAN":{"shape":"LoRaWANFuotaTask"}, + "FirmwareUpdateImage":{"shape":"FirmwareUpdateImage"}, + "FirmwareUpdateRole":{"shape":"FirmwareUpdateRole"} + } + }, + "UpdateFuotaTaskResponse":{ + "type":"structure", + "members":{ + } + }, "UpdateLogLevelsByResourceTypesRequest":{ "type":"structure", "members":{ @@ -2952,6 +4182,25 @@ "members":{ } }, + "UpdateMulticastGroupRequest":{ + "type":"structure", + "required":["Id"], + "members":{ + "Id":{ + "shape":"MulticastGroupId", + "location":"uri", + "locationName":"Id" + }, + "Name":{"shape":"MulticastGroupName"}, + "Description":{"shape":"Description"}, + "LoRaWAN":{"shape":"LoRaWANMulticast"} + } + }, + "UpdateMulticastGroupResponse":{ + "type":"structure", + "members":{ + } + }, "UpdatePartnerAccountRequest":{ "type":"structure", "required":[ @@ -2978,6 +4227,37 @@ "members":{ } }, + "UpdateResourceEventConfigurationRequest":{ + "type":"structure", + "required":[ + "Identifier", + "IdentifierType" + ], + "members":{ + "Identifier":{ + "shape":"Identifier", + "location":"uri", + "locationName":"Identifier" + }, + "IdentifierType":{ + "shape":"IdentifierType", + "location":"querystring", + "locationName":"identifierType" + }, + "PartnerType":{ + "shape":"EventNotificationPartnerType", + "location":"querystring", + "locationName":"partnerType" + }, + "DeviceRegistrationState":{"shape":"DeviceRegistrationStateEventConfiguration"}, + "Proximity":{"shape":"ProximityEventConfiguration"} + } + }, + "UpdateResourceEventConfigurationResponse":{ + "type":"structure", + "members":{ + } + }, "UpdateSignature":{ "type":"string", "max":4096, @@ -3116,7 +4396,10 @@ "DestinationName":{"shape":"DestinationName"}, "LastUplinkReceivedAt":{"shape":"ISODateTimeString"}, "LoRaWAN":{"shape":"LoRaWANListDevice"}, - "Sidewalk":{"shape":"SidewalkListDevice"} + "Sidewalk":{"shape":"SidewalkListDevice"}, + "FuotaDeviceStatus":{"shape":"FuotaDeviceStatus"}, + "MulticastDeviceStatus":{"shape":"MulticastDeviceStatus"}, + "McGroupId":{"shape":"McGroupId"} } }, "WirelessDeviceStatisticsList":{ diff --git a/models/apis/iotwireless/2020-11-22/docs-2.json b/models/apis/iotwireless/2020-11-22/docs-2.json index 96c387df460..70495032eb1 100644 --- a/models/apis/iotwireless/2020-11-22/docs-2.json +++ b/models/apis/iotwireless/2020-11-22/docs-2.json @@ -3,11 +3,17 @@ "service": "

AWS IoT Wireless API documentation

", "operations": { "AssociateAwsAccountWithPartnerAccount": "

Associates a partner account with your AWS account.

", + "AssociateMulticastGroupWithFuotaTask": "

Associate a multicast group with a FUOTA task.

", + "AssociateWirelessDeviceWithFuotaTask": "

Associate a wireless device with a FUOTA task.

", + "AssociateWirelessDeviceWithMulticastGroup": "

Associates a wireless device with a multicast group.

", "AssociateWirelessDeviceWithThing": "

Associates a wireless device with a thing.

", "AssociateWirelessGatewayWithCertificate": "

Associates a wireless gateway with a certificate.

", "AssociateWirelessGatewayWithThing": "

Associates a wireless gateway with a thing.

", + "CancelMulticastGroupSession": "

Cancels an existing multicast group session.

", "CreateDestination": "

Creates a new destination that maps a device message to an AWS IoT rule.

", "CreateDeviceProfile": "

Creates a new device profile.

", + "CreateFuotaTask": "

Creates a FUOTA task.

", + "CreateMulticastGroup": "

Creates a multicast group.

", "CreateServiceProfile": "

Creates a new service profile.

", "CreateWirelessDevice": "

Provisions a wireless device.

", "CreateWirelessGateway": "

Provisions a wireless gateway.

", @@ -15,19 +21,28 @@ "CreateWirelessGatewayTaskDefinition": "

Creates a gateway task definition.

", "DeleteDestination": "

Deletes a destination.

", "DeleteDeviceProfile": "

Deletes a device profile.

", + "DeleteFuotaTask": "

Deletes a FUOTA task.

", + "DeleteMulticastGroup": "

Deletes a multicast group if it is not in use by a fuota task.

", "DeleteServiceProfile": "

Deletes a service profile.

", "DeleteWirelessDevice": "

Deletes a wireless device.

", "DeleteWirelessGateway": "

Deletes a wireless gateway.

", "DeleteWirelessGatewayTask": "

Deletes a wireless gateway task.

", "DeleteWirelessGatewayTaskDefinition": "

Deletes a wireless gateway task definition. Deleting this task definition does not affect tasks that are currently in progress.

", "DisassociateAwsAccountFromPartnerAccount": "

Disassociates your AWS account from a partner account. If PartnerAccountId and PartnerType are null, disassociates your AWS account from all partner accounts.

", + "DisassociateMulticastGroupFromFuotaTask": "

Disassociates a multicast group from a fuota task.

", + "DisassociateWirelessDeviceFromFuotaTask": "

Disassociates a wireless device from a FUOTA task.

", + "DisassociateWirelessDeviceFromMulticastGroup": "

Disassociates a wireless device from a multicast group.

", "DisassociateWirelessDeviceFromThing": "

Disassociates a wireless device from its currently associated thing.

", "DisassociateWirelessGatewayFromCertificate": "

Disassociates a wireless gateway from its currently associated certificate.

", "DisassociateWirelessGatewayFromThing": "

Disassociates a wireless gateway from its currently associated thing.

", "GetDestination": "

Gets information about a destination.

", "GetDeviceProfile": "

Gets information about a device profile.

", + "GetFuotaTask": "

Gets information about a FUOTA task.

", "GetLogLevelsByResourceTypes": "

Returns current default log levels or log levels by resource types. Based on resource types, log levels can be for wireless device log options or wireless gateway log options.

", + "GetMulticastGroup": "

Gets information about a multicast group.

", + "GetMulticastGroupSession": "

Gets information about a multicast group session.

", "GetPartnerAccount": "

Gets information about a partner account. If PartnerAccountId and PartnerType are null, returns all partner accounts.

", + "GetResourceEventConfiguration": "

Get the event configuration for a particular resource identifier.

", "GetResourceLogLevel": "

Fetches the log-level override, if any, for a given resource-ID and resource-type. It can be used for a wireless device or a wireless gateway.

", "GetServiceEndpoint": "

Gets the account-specific endpoint for Configuration and Update Server (CUPS) protocol or LoRaWAN Network Server (LNS) connections.

", "GetServiceProfile": "

Gets information about a service profile.

", @@ -41,6 +56,9 @@ "GetWirelessGatewayTaskDefinition": "

Gets information about a wireless gateway task definition.

", "ListDestinations": "

Lists the destinations registered to your AWS account.

", "ListDeviceProfiles": "

Lists the device profiles registered to your AWS account.

", + "ListFuotaTasks": "

Lists the FUOTA tasks registered to your AWS account.

", + "ListMulticastGroups": "

Lists the multicast groups registered to your AWS account.

", + "ListMulticastGroupsByFuotaTask": "

List all multicast groups associated with a fuota task.

", "ListPartnerAccounts": "

Lists the partner accounts associated with your AWS account.

", "ListServiceProfiles": "

Lists the service profiles registered to your AWS account.

", "ListTagsForResource": "

Lists the tags (metadata) you have assigned to the resource.

", @@ -50,13 +68,21 @@ "PutResourceLogLevel": "

Sets the log-level override for a resource-ID and resource-type. This option can be specified for a wireless gateway or a wireless device. A limit of 200 log level override can be set per account.

", "ResetAllResourceLogLevels": "

Removes the log-level overrides for all resources; both wireless devices and wireless gateways.

", "ResetResourceLogLevel": "

Removes the log-level override, if any, for a specific resource-ID and resource-type. It can be used for a wireless device or a wireless gateway.

", + "SendDataToMulticastGroup": "

Sends the specified data to a multicast group.

", "SendDataToWirelessDevice": "

Sends a decrypted application data frame to a device.

", + "StartBulkAssociateWirelessDeviceWithMulticastGroup": "

Starts a bulk association of all qualifying wireless devices with a multicast group.

", + "StartBulkDisassociateWirelessDeviceFromMulticastGroup": "

Starts a bulk disassociatin of all qualifying wireless devices from a multicast group.

", + "StartFuotaTask": "

Starts a FUOTA task.

", + "StartMulticastGroupSession": "

Starts a multicast group session.

", "TagResource": "

Adds a tag to a resource.

", "TestWirelessDevice": "

Simulates a provisioned device by sending an uplink data payload of Hello.

", "UntagResource": "

Removes one or more tags from a resource.

", "UpdateDestination": "

Updates properties of a destination.

", + "UpdateFuotaTask": "

Updates properties of a FUOTA task.

", "UpdateLogLevelsByResourceTypes": "

Set default log level, or log levels by resource types. This can be for wireless device log options or wireless gateways log options and is used to control the log messages that'll be displayed in CloudWatch.

", + "UpdateMulticastGroup": "

Updates properties of a multicast group session.

", "UpdatePartnerAccount": "

Updates properties of a partner account.

", + "UpdateResourceEventConfiguration": "

Update the event configuration for a particular resource identifier.

", "UpdateWirelessDevice": "

Updates properties of a wireless device.

", "UpdateWirelessGateway": "

Updates properties of a wireless gateway.

" }, @@ -146,6 +172,36 @@ "refs": { } }, + "AssociateMulticastGroupWithFuotaTaskRequest": { + "base": null, + "refs": { + } + }, + "AssociateMulticastGroupWithFuotaTaskResponse": { + "base": null, + "refs": { + } + }, + "AssociateWirelessDeviceWithFuotaTaskRequest": { + "base": null, + "refs": { + } + }, + "AssociateWirelessDeviceWithFuotaTaskResponse": { + "base": null, + "refs": { + } + }, + "AssociateWirelessDeviceWithMulticastGroupRequest": { + "base": null, + "refs": { + } + }, + "AssociateWirelessDeviceWithMulticastGroupResponse": { + "base": null, + "refs": { + } + }, "AssociateWirelessDeviceWithThingRequest": { "base": null, "refs": { @@ -189,6 +245,16 @@ "SidewalkDeviceMetadata$BatteryLevel": "

Sidewalk device battery level.

" } }, + "CancelMulticastGroupSessionRequest": { + "base": null, + "refs": { + } + }, + "CancelMulticastGroupSessionResponse": { + "base": null, + "refs": { + } + }, "CertificateList": { "base": "

List of sidewalk certificates.

", "refs": { @@ -226,11 +292,13 @@ } }, "ClientRequestToken": { - "base": null, + "base": "

Each resource must have a unique client request token. If you try to create a new resource with the same token as a resource that already exists, an exception occurs. If you omit this value, AWS SDKs will automatically generate a unique client request.

", "refs": { "AssociateAwsAccountWithPartnerAccountRequest$ClientRequestToken": "

Each resource must have a unique client request token. If you try to create a new resource with the same token as a resource that already exists, an exception occurs. If you omit this value, AWS SDKs will automatically generate a unique client request.

", "CreateDestinationRequest$ClientRequestToken": "

Each resource must have a unique client request token. If you try to create a new resource with the same token as a resource that already exists, an exception occurs. If you omit this value, AWS SDKs will automatically generate a unique client request.

", "CreateDeviceProfileRequest$ClientRequestToken": "

Each resource must have a unique client request token. If you try to create a new resource with the same token as a resource that already exists, an exception occurs. If you omit this value, AWS SDKs will automatically generate a unique client request.

", + "CreateFuotaTaskRequest$ClientRequestToken": null, + "CreateMulticastGroupRequest$ClientRequestToken": "

Each resource must have a unique client request token. If you try to create a new resource with the same token as a resource that already exists, an exception occurs. If you omit this value, AWS SDKs will automatically generate a unique client request.

", "CreateServiceProfileRequest$ClientRequestToken": "

Each resource must have a unique client request token. If you try to create a new resource with the same token as a resource that already exists, an exception occurs. If you omit this value, AWS SDKs will automatically generate a unique client request.

", "CreateWirelessDeviceRequest$ClientRequestToken": "

Each resource must have a unique client request token. If you try to create a new resource with the same token as a resource that already exists, an exception occurs. If you omit this value, AWS SDKs will automatically generate a unique client request.

", "CreateWirelessGatewayRequest$ClientRequestToken": "

Each resource must have a unique client request token. If you try to create a new resource with the same token as a resource that already exists, an exception occurs. If you omit this value, AWS SDKs will automatically generate a unique client request.

", @@ -274,6 +342,26 @@ "refs": { } }, + "CreateFuotaTaskRequest": { + "base": null, + "refs": { + } + }, + "CreateFuotaTaskResponse": { + "base": null, + "refs": { + } + }, + "CreateMulticastGroupRequest": { + "base": null, + "refs": { + } + }, + "CreateMulticastGroupResponse": { + "base": null, + "refs": { + } + }, "CreateServiceProfileRequest": { "base": null, "refs": { @@ -324,6 +412,13 @@ "refs": { } }, + "CreatedAt": { + "base": "

Created at timestamp for the resource.

", + "refs": { + "GetFuotaTaskResponse$CreatedAt": null, + "GetMulticastGroupResponse$CreatedAt": null + } + }, "DeleteDestinationRequest": { "base": null, "refs": { @@ -344,6 +439,26 @@ "refs": { } }, + "DeleteFuotaTaskRequest": { + "base": null, + "refs": { + } + }, + "DeleteFuotaTaskResponse": { + "base": null, + "refs": { + } + }, + "DeleteMulticastGroupRequest": { + "base": null, + "refs": { + } + }, + "DeleteMulticastGroupResponse": { + "base": null, + "refs": { + } + }, "DeleteServiceProfileRequest": { "base": null, "refs": { @@ -395,16 +510,22 @@ } }, "Description": { - "base": null, + "base": "

The description of the new resource.

", "refs": { "CreateDestinationRequest$Description": "

The description of the new resource.

", + "CreateFuotaTaskRequest$Description": null, + "CreateMulticastGroupRequest$Description": "

The description of the multicast group.

", "CreateWirelessDeviceRequest$Description": "

The description of the new resource.

", "CreateWirelessGatewayRequest$Description": "

The description of the new resource.

", "Destinations$Description": "

The description of the resource.

", "GetDestinationResponse$Description": "

The description of the resource.

", + "GetFuotaTaskResponse$Description": null, + "GetMulticastGroupResponse$Description": null, "GetWirelessDeviceResponse$Description": "

The description of the resource.

", "GetWirelessGatewayResponse$Description": "

The description of the resource.

", "UpdateDestinationRequest$Description": "

A new description of the resource.

", + "UpdateFuotaTaskRequest$Description": null, + "UpdateMulticastGroupRequest$Description": null, "UpdateWirelessDeviceRequest$Description": "

A new description of the resource.

", "UpdateWirelessGatewayRequest$Description": "

A new description of the resource.

", "WirelessGatewayStatistics$Description": "

The description of the resource.

" @@ -516,6 +637,13 @@ "GetDeviceProfileResponse$Name": "

The name of the resource.

" } }, + "DeviceRegistrationStateEventConfiguration": { + "base": "

Device registration state event configuration object for enabling and disabling relevant topics.

", + "refs": { + "GetResourceEventConfigurationResponse$DeviceRegistrationState": "

Event configuration for the device registration state event

", + "UpdateResourceEventConfigurationRequest$DeviceRegistrationState": "

Event configuration for the device registration state event

" + } + }, "DeviceState": { "base": "

Device state defines the device status of sidewalk device.

", "refs": { @@ -532,6 +660,36 @@ "refs": { } }, + "DisassociateMulticastGroupFromFuotaTaskRequest": { + "base": null, + "refs": { + } + }, + "DisassociateMulticastGroupFromFuotaTaskResponse": { + "base": null, + "refs": { + } + }, + "DisassociateWirelessDeviceFromFuotaTaskRequest": { + "base": null, + "refs": { + } + }, + "DisassociateWirelessDeviceFromFuotaTaskResponse": { + "base": null, + "refs": { + } + }, + "DisassociateWirelessDeviceFromMulticastGroupRequest": { + "base": null, + "refs": { + } + }, + "DisassociateWirelessDeviceFromMulticastGroupResponse": { + "base": null, + "refs": { + } + }, "DisassociateWirelessDeviceFromThingRequest": { "base": null, "refs": { @@ -568,6 +726,25 @@ "LoRaWANGetServiceProfileInfo$DlBucketSize": "

The DLBucketSize value.

" } }, + "DlClass": { + "base": "

DlClass for LoRaWAM, valid values are ClassB and ClassC.

", + "refs": { + "LoRaWANMulticast$DlClass": null, + "LoRaWANMulticastGet$DlClass": null + } + }, + "DlDr": { + "base": "

Downlink data rate.

", + "refs": { + "LoRaWANMulticastSession$DlDr": null + } + }, + "DlFreq": { + "base": "

Downlink frequency.

", + "refs": { + "LoRaWANMulticastSession$DlFreq": null + } + }, "DlRate": { "base": null, "refs": { @@ -611,6 +788,19 @@ "SidewalkDeviceMetadata$Event": "

Sidewalk device status notification.

" } }, + "EventNotificationPartnerType": { + "base": null, + "refs": { + "GetResourceEventConfigurationRequest$PartnerType": "

Partner type of the resource if the identifier type is PartnerAccountId.

", + "UpdateResourceEventConfigurationRequest$PartnerType": "

Partner type of the resource if the identifier type is PartnerAccountId

" + } + }, + "EventNotificationTopicStatus": { + "base": null, + "refs": { + "SidewalkEventNotificationConfigurations$AmazonIdEventTopic": "

Enum to denote whether amazon id event topic is enabled or disabled.

" + } + }, "Expression": { "base": null, "refs": { @@ -636,9 +826,19 @@ } }, "FPort": { - "base": null, + "base": "

The Fport value.

", "refs": { - "LoRaWANSendDataToDevice$FPort": "

The Fport value.

" + "FPorts$Fuota": null, + "FPorts$Multicast": null, + "FPorts$ClockSync": null, + "LoRaWANMulticastMetadata$FPort": null, + "LoRaWANSendDataToDevice$FPort": null + } + }, + "FPorts": { + "base": "

List of FPort assigned for different LoRaWAN application packages to use

", + "refs": { + "LoRaWANDevice$FPorts": null } }, "FactoryPresetFreqsList": { @@ -653,6 +853,81 @@ "SidewalkAccountInfoWithFingerprint$Fingerprint": "

The fingerprint of the Sidewalk application server private key.

" } }, + "FirmwareUpdateImage": { + "base": "

The S3 URI points to a firmware update image that is to be used with a FUOTA task.

", + "refs": { + "CreateFuotaTaskRequest$FirmwareUpdateImage": null, + "GetFuotaTaskResponse$FirmwareUpdateImage": null, + "UpdateFuotaTaskRequest$FirmwareUpdateImage": null + } + }, + "FirmwareUpdateRole": { + "base": "

The firmware update role that is to be used with a FUOTA task.

", + "refs": { + "CreateFuotaTaskRequest$FirmwareUpdateRole": null, + "GetFuotaTaskResponse$FirmwareUpdateRole": null, + "UpdateFuotaTaskRequest$FirmwareUpdateRole": null + } + }, + "FuotaDeviceStatus": { + "base": "

The status of a wireless device in a FUOTA task.

", + "refs": { + "WirelessDeviceStatistics$FuotaDeviceStatus": null + } + }, + "FuotaTask": { + "base": "

A FUOTA task.

", + "refs": { + "FuotaTaskList$member": null + } + }, + "FuotaTaskArn": { + "base": "

The arn of a FUOTA task.

", + "refs": { + "CreateFuotaTaskResponse$Arn": null, + "FuotaTask$Arn": null, + "GetFuotaTaskResponse$Arn": null + } + }, + "FuotaTaskId": { + "base": "

The ID of a FUOTA task.

", + "refs": { + "AssociateMulticastGroupWithFuotaTaskRequest$Id": null, + "AssociateWirelessDeviceWithFuotaTaskRequest$Id": null, + "CreateFuotaTaskResponse$Id": null, + "DeleteFuotaTaskRequest$Id": null, + "DisassociateMulticastGroupFromFuotaTaskRequest$Id": null, + "DisassociateWirelessDeviceFromFuotaTaskRequest$Id": null, + "FuotaTask$Id": null, + "GetFuotaTaskRequest$Id": null, + "GetFuotaTaskResponse$Id": null, + "ListMulticastGroupsByFuotaTaskRequest$Id": null, + "ListWirelessDevicesRequest$FuotaTaskId": null, + "StartFuotaTaskRequest$Id": null, + "UpdateFuotaTaskRequest$Id": null + } + }, + "FuotaTaskList": { + "base": "

Lists the FUOTA tasks registered to your AWS account.

", + "refs": { + "ListFuotaTasksResponse$FuotaTaskList": null + } + }, + "FuotaTaskName": { + "base": "

The name of a FUOTA task.

", + "refs": { + "CreateFuotaTaskRequest$Name": null, + "FuotaTask$Name": null, + "GetFuotaTaskResponse$Name": null, + "UpdateFuotaTaskRequest$Name": null + } + }, + "FuotaTaskStatus": { + "base": "

The status of a FUOTA task.

", + "refs": { + "GetFuotaTaskResponse$Status": null + } + }, "GatewayEui": { "base": null, "refs": { @@ -660,6 +935,12 @@ "LoRaWANGatewayMetadata$GatewayEui": "

The gateway's EUI value.

" } }, + "GenAppKey": { + "base": null, + "refs": { + "OtaaV1_0_x$GenAppKey": "

The GenAppKey value.

" + } + }, "GetDestinationRequest": { "base": null, "refs": { @@ -680,6 +961,16 @@ "refs": { } }, + "GetFuotaTaskRequest": { + "base": null, + "refs": { + } + }, + "GetFuotaTaskResponse": { + "base": null, + "refs": { + } + }, "GetLogLevelsByResourceTypesRequest": { "base": null, "refs": { @@ -690,6 +981,26 @@ "refs": { } }, + "GetMulticastGroupRequest": { + "base": null, + "refs": { + } + }, + "GetMulticastGroupResponse": { + "base": null, + "refs": { + } + }, + "GetMulticastGroupSessionRequest": { + "base": null, + "refs": { + } + }, + "GetMulticastGroupSessionResponse": { + "base": null, + "refs": { + } + }, "GetPartnerAccountRequest": { "base": null, "refs": { @@ -700,6 +1011,16 @@ "refs": { } }, + "GetResourceEventConfigurationRequest": { + "base": null, + "refs": { + } + }, + "GetResourceEventConfigurationResponse": { + "base": null, + "refs": { + } + }, "GetResourceLogLevelRequest": { "base": null, "refs": { @@ -831,8 +1152,17 @@ "Identifier": { "base": null, "refs": { + "GetResourceEventConfigurationRequest$Identifier": "

Resource identifier to opt in for event messaging.

", "GetWirelessDeviceRequest$Identifier": "

The identifier of the wireless device to get.

", - "GetWirelessGatewayRequest$Identifier": "

The identifier of the wireless gateway to get.

" + "GetWirelessGatewayRequest$Identifier": "

The identifier of the wireless gateway to get.

", + "UpdateResourceEventConfigurationRequest$Identifier": "

Resource identifier to opt in for event messaging.

" + } + }, + "IdentifierType": { + "base": null, + "refs": { + "GetResourceEventConfigurationRequest$IdentifierType": "

Identifier type of the particular resource identifier for event configuration.

", + "UpdateResourceEventConfigurationRequest$IdentifierType": "

Identifier type of the particular resource identifier for event configuration.

" } }, "Integer": { @@ -898,6 +1228,36 @@ "refs": { } }, + "ListFuotaTasksRequest": { + "base": null, + "refs": { + } + }, + "ListFuotaTasksResponse": { + "base": null, + "refs": { + } + }, + "ListMulticastGroupsByFuotaTaskRequest": { + "base": null, + "refs": { + } + }, + "ListMulticastGroupsByFuotaTaskResponse": { + "base": null, + "refs": { + } + }, + "ListMulticastGroupsRequest": { + "base": null, + "refs": { + } + }, + "ListMulticastGroupsResponse": { + "base": null, + "refs": { + } + }, "ListPartnerAccountsRequest": { "base": null, "refs": { @@ -978,6 +1338,19 @@ "GetDeviceProfileResponse$LoRaWAN": "

Information about the device profile.

" } }, + "LoRaWANFuotaTask": { + "base": "

The LoRaWAN information used with a FUOTA task.

", + "refs": { + "CreateFuotaTaskRequest$LoRaWAN": null, + "UpdateFuotaTaskRequest$LoRaWAN": null + } + }, + "LoRaWANFuotaTaskGetInfo": { + "base": "

The LoRaWAN information returned from getting a FUOTA task.

", + "refs": { + "GetFuotaTaskResponse$LoRaWAN": null + } + }, "LoRaWANGateway": { "base": "

LoRaWANGateway object.

", "refs": { @@ -1026,6 +1399,32 @@ "WirelessDeviceStatistics$LoRaWAN": "

LoRaWAN device info.

" } }, + "LoRaWANMulticast": { + "base": "

The LoRaWAN information that is to be used with the multicast group.

", + "refs": { + "CreateMulticastGroupRequest$LoRaWAN": null, + "UpdateMulticastGroupRequest$LoRaWAN": null + } + }, + "LoRaWANMulticastGet": { + "base": "

The LoRaWAN information that is to be returned from getting multicast group information.

", + "refs": { + "GetMulticastGroupResponse$LoRaWAN": null + } + }, + "LoRaWANMulticastMetadata": { + "base": "

The metadata information of the LoRaWAN multicast group.

", + "refs": { + "MulticastWirelessMetadata$LoRaWAN": null + } + }, + "LoRaWANMulticastSession": { + "base": "

The LoRaWAN information used with the multicast session.

", + "refs": { + "GetMulticastGroupSessionResponse$LoRaWAN": null, + "StartMulticastGroupSessionRequest$LoRaWAN": null + } + }, "LoRaWANSendDataToDevice": { "base": "

LoRaWAN router info.

", "refs": { @@ -1038,6 +1437,12 @@ "CreateServiceProfileRequest$LoRaWAN": "

The service profile information to use to create the service profile.

" } }, + "LoRaWANStartFuotaTask": { + "base": "

The LoRaWAN information used to start a FUOTA task.

", + "refs": { + "StartFuotaTaskRequest$LoRaWAN": null + } + }, "LoRaWANUpdateDevice": { "base": "

LoRaWAN object for update functions.

", "refs": { @@ -1088,10 +1493,13 @@ } }, "MaxResults": { - "base": null, + "base": "

The maximum number of results to return in this operation.

", "refs": { "ListDestinationsRequest$MaxResults": "

The maximum number of results to return in this operation.

", "ListDeviceProfilesRequest$MaxResults": "

The maximum number of results to return in this operation.

", + "ListFuotaTasksRequest$MaxResults": null, + "ListMulticastGroupsByFuotaTaskRequest$MaxResults": null, + "ListMulticastGroupsRequest$MaxResults": null, "ListPartnerAccountsRequest$MaxResults": "

The maximum number of results to return in this operation.

", "ListServiceProfilesRequest$MaxResults": "

The maximum number of results to return in this operation.

", "ListWirelessDevicesRequest$MaxResults": "

The maximum number of results to return in this operation.

", @@ -1099,6 +1507,12 @@ "ListWirelessGatewaysRequest$MaxResults": "

The maximum number of results to return in this operation.

" } }, + "McGroupId": { + "base": "

Id of the multicast group.

", + "refs": { + "WirelessDeviceStatistics$McGroupId": null + } + }, "Message": { "base": null, "refs": { @@ -1135,6 +1549,94 @@ "LoRaWANGatewayVersion$Model": "

The model number of the wireless gateway.

" } }, + "MulticastDeviceStatus": { + "base": null, + "refs": { + "WirelessDeviceStatistics$MulticastDeviceStatus": "

The status of the wireless device in the multicast group.

" + } + }, + "MulticastGroup": { + "base": "

A multicast group.

", + "refs": { + "MulticastGroupList$member": null + } + }, + "MulticastGroupArn": { + "base": "

The arn of the multicast group.

", + "refs": { + "CreateMulticastGroupResponse$Arn": null, + "GetMulticastGroupResponse$Arn": null, + "MulticastGroup$Arn": null + } + }, + "MulticastGroupByFuotaTask": { + "base": "

A multicast group that is associated with a FUOTA task.

", + "refs": { + "MulticastGroupListByFuotaTask$member": null + } + }, + "MulticastGroupId": { + "base": "

The ID of the multicast group.

", + "refs": { + "AssociateMulticastGroupWithFuotaTaskRequest$MulticastGroupId": null, + "AssociateWirelessDeviceWithMulticastGroupRequest$Id": null, + "CancelMulticastGroupSessionRequest$Id": null, + "CreateMulticastGroupResponse$Id": null, + "DeleteMulticastGroupRequest$Id": null, + "DisassociateMulticastGroupFromFuotaTaskRequest$MulticastGroupId": null, + "DisassociateWirelessDeviceFromMulticastGroupRequest$Id": null, + "GetMulticastGroupRequest$Id": null, + "GetMulticastGroupResponse$Id": null, + "GetMulticastGroupSessionRequest$Id": null, + "ListWirelessDevicesRequest$MulticastGroupId": null, + "MulticastGroup$Id": null, + "MulticastGroupByFuotaTask$Id": null, + "SendDataToMulticastGroupRequest$Id": null, + "StartBulkAssociateWirelessDeviceWithMulticastGroupRequest$Id": null, + "StartBulkDisassociateWirelessDeviceFromMulticastGroupRequest$Id": null, + "StartMulticastGroupSessionRequest$Id": null, + "UpdateMulticastGroupRequest$Id": null + } + }, + "MulticastGroupList": { + "base": "

List of multicast groups.

", + "refs": { + "ListMulticastGroupsResponse$MulticastGroupList": null + } + }, + "MulticastGroupListByFuotaTask": { + "base": "

List of multicast groups associated with a FUOTA task.

", + "refs": { + "ListMulticastGroupsByFuotaTaskResponse$MulticastGroupList": null + } + }, + "MulticastGroupMessageId": { + "base": "

ID of a multicast group message.

", + "refs": { + "SendDataToMulticastGroupResponse$MessageId": null + } + }, + "MulticastGroupName": { + "base": "

The name of the multicast group.

", + "refs": { + "CreateMulticastGroupRequest$Name": null, + "GetMulticastGroupResponse$Name": null, + "MulticastGroup$Name": null, + "UpdateMulticastGroupRequest$Name": null + } + }, + "MulticastGroupStatus": { + "base": "

The status of the multicast group.

", + "refs": { + "GetMulticastGroupResponse$Status": null + } + }, + "MulticastWirelessMetadata": { + "base": "

Wireless metadata that is to be sent to multicast group.

", + "refs": { + "SendDataToMulticastGroupRequest$WirelessMetadata": null + } + }, "NetId": { "base": "

LoRaWAN network ID.

", "refs": { @@ -1155,6 +1657,12 @@ "ListDestinationsResponse$NextToken": "

The token to use to get the next set of results, or null if there are no additional results.

", "ListDeviceProfilesRequest$NextToken": "

To retrieve the next set of results, the nextToken value from a previous response; otherwise null to receive the first set of results.

", "ListDeviceProfilesResponse$NextToken": "

The token to use to get the next set of results, or null if there are no additional results.

", + "ListFuotaTasksRequest$NextToken": "

To retrieve the next set of results, the nextToken value from a previous response; otherwise null to receive the first set of results.

", + "ListFuotaTasksResponse$NextToken": "

To retrieve the next set of results, the nextToken value from a previous response; otherwise null to receive the first set of results.

", + "ListMulticastGroupsByFuotaTaskRequest$NextToken": "

To retrieve the next set of results, the nextToken value from a previous response; otherwise null to receive the first set of results.

", + "ListMulticastGroupsByFuotaTaskResponse$NextToken": "

To retrieve the next set of results, the nextToken value from a previous response; otherwise null to receive the first set of results.

", + "ListMulticastGroupsRequest$NextToken": "

To retrieve the next set of results, the nextToken value from a previous response; otherwise null to receive the first set of results.

", + "ListMulticastGroupsResponse$NextToken": "

To retrieve the next set of results, the nextToken value from a previous response; otherwise null to receive the first set of results.

", "ListPartnerAccountsRequest$NextToken": "

To retrieve the next set of results, the nextToken value from a previous response; otherwise null to receive the first set of results.

", "ListPartnerAccountsResponse$NextToken": "

The token to use to get the next set of results, or null if there are no additional results.

", "ListServiceProfilesRequest$NextToken": "

To retrieve the next set of results, the nextToken value from a previous response; otherwise null to receive the first set of results.

", @@ -1167,6 +1675,18 @@ "ListWirelessGatewaysResponse$NextToken": "

The token to use to get the next set of results, or null if there are no additional results.

" } }, + "NumberOfDevicesInGroup": { + "base": "

Number of devices that are associated to the multicast group.

", + "refs": { + "LoRaWANMulticastGet$NumberOfDevicesInGroup": null + } + }, + "NumberOfDevicesRequested": { + "base": "

Number of devices that are requested to be associated with the multicast group.

", + "refs": { + "LoRaWANMulticastGet$NumberOfDevicesRequested": null + } + }, "NwkGeoLoc": { "base": null, "refs": { @@ -1233,9 +1753,10 @@ } }, "PayloadData": { - "base": null, + "base": "

The binary to be sent to the end device, encoded in base64.

", "refs": { - "SendDataToWirelessDeviceRequest$PayloadData": "

The binary to be sent to the end device, encoded in base64.

" + "SendDataToMulticastGroupRequest$PayloadData": null, + "SendDataToWirelessDeviceRequest$PayloadData": null } }, "PingSlotDr": { @@ -1268,6 +1789,13 @@ "FactoryPresetFreqsList$member": null } }, + "ProximityEventConfiguration": { + "base": "

Proximity event configuration object for enabling and disabling relevant topics.

", + "refs": { + "GetResourceEventConfigurationResponse$Proximity": "

Event configuration for the Proximity event

", + "UpdateResourceEventConfigurationRequest$Proximity": "

Event configuration for the Proximity event

" + } + }, "PutResourceLogLevelRequest": { "base": null, "refs": { @@ -1278,6 +1806,13 @@ "refs": { } }, + "QueryString": { + "base": "

Query string used to search for wireless devices as part of the bulk associate and disassociate process.

", + "refs": { + "StartBulkAssociateWirelessDeviceWithMulticastGroupRequest$QueryString": null, + "StartBulkDisassociateWirelessDeviceFromMulticastGroupRequest$QueryString": null + } + }, "RaAllowed": { "base": null, "refs": { @@ -1359,9 +1894,10 @@ } }, "RfRegion": { - "base": null, + "base": "

The frequency band (RFRegion) value.

", "refs": { "LoRaWANDeviceProfile$RfRegion": "

The frequency band (RFRegion) value.

", + "LoRaWANFuotaTaskGetInfo$RfRegion": null, "LoRaWANGateway$RfRegion": "

The frequency band (RFRegion) value.

" } }, @@ -1404,6 +1940,16 @@ "SessionKeysAbpV1_1$SNwkSIntKey": "

The SNwkSIntKey value.

" } }, + "SendDataToMulticastGroupRequest": { + "base": null, + "refs": { + } + }, + "SendDataToMulticastGroupResponse": { + "base": null, + "refs": { + } + }, "SendDataToWirelessDeviceRequest": { "base": null, "refs": { @@ -1473,6 +2019,18 @@ "AbpV1_1$SessionKeys": "

Session keys for ABP v1.1

" } }, + "SessionStartTimeTimestamp": { + "base": "

Timestamp of when the multicast group session is to start.

", + "refs": { + "LoRaWANMulticastSession$SessionStartTime": null + } + }, + "SessionTimeout": { + "base": "

How long before a multicast group session is to timeout.

", + "refs": { + "LoRaWANMulticastSession$SessionTimeout": null + } + }, "SidewalkAccountInfo": { "base": "

Information about a Sidewalk account.

", "refs": { @@ -1505,6 +2063,13 @@ "GetWirelessDeviceStatisticsResponse$Sidewalk": "

MetaData for Sidewalk device.

" } }, + "SidewalkEventNotificationConfigurations": { + "base": "

SidewalkEventNotificationConfigurations object Event configuration object for Sidewalk related event topics.

", + "refs": { + "DeviceRegistrationStateEventConfiguration$Sidewalk": "

Device registration state event configuration object for enabling or disabling Sidewalk related event topics.

", + "ProximityEventConfiguration$Sidewalk": "

Proximity event configuration object for enabling or disabling Sidewalk related event topics.

" + } + }, "SidewalkId": { "base": "

The sidewalk device identification.

", "refs": { @@ -1543,6 +2108,53 @@ "CertificateList$SigningAlg": "

The certificate chain algorithm provided by sidewalk.

" } }, + "StartBulkAssociateWirelessDeviceWithMulticastGroupRequest": { + "base": null, + "refs": { + } + }, + "StartBulkAssociateWirelessDeviceWithMulticastGroupResponse": { + "base": null, + "refs": { + } + }, + "StartBulkDisassociateWirelessDeviceFromMulticastGroupRequest": { + "base": null, + "refs": { + } + }, + "StartBulkDisassociateWirelessDeviceFromMulticastGroupResponse": { + "base": null, + "refs": { + } + }, + "StartFuotaTaskRequest": { + "base": null, + "refs": { + } + }, + "StartFuotaTaskResponse": { + "base": null, + "refs": { + } + }, + "StartMulticastGroupSessionRequest": { + "base": null, + "refs": { + } + }, + "StartMulticastGroupSessionResponse": { + "base": null, + "refs": { + } + }, + "StartTime": { + "base": "

Start time of a FUOTA task.

", + "refs": { + "LoRaWANFuotaTaskGetInfo$StartTime": null, + "LoRaWANStartFuotaTask$StartTime": null + } + }, "Station": { "base": null, "refs": { @@ -1561,6 +2173,14 @@ "LoRaWANGateway$SubBands": null } }, + "SupportedRfRegion": { + "base": "

Supported RfRegions

", + "refs": { + "LoRaWANFuotaTask$RfRegion": null, + "LoRaWANMulticast$RfRegion": null, + "LoRaWANMulticastGet$RfRegion": null + } + }, "Supports32BitFCnt": { "base": null, "refs": { @@ -1605,16 +2225,20 @@ } }, "TagList": { - "base": null, + "base": "

The tag to attach to the specified resource. Tags are metadata that you can use to manage a resource.

", "refs": { "AssociateAwsAccountWithPartnerAccountRequest$Tags": "

The tags to attach to the specified resource. Tags are metadata that you can use to manage a resource.

", "CreateDestinationRequest$Tags": "

The tags to attach to the new destination. Tags are metadata that you can use to manage a resource.

", "CreateDeviceProfileRequest$Tags": "

The tags to attach to the new device profile. Tags are metadata that you can use to manage a resource.

", + "CreateFuotaTaskRequest$Tags": null, + "CreateMulticastGroupRequest$Tags": null, "CreateServiceProfileRequest$Tags": "

The tags to attach to the new service profile. Tags are metadata that you can use to manage a resource.

", "CreateWirelessDeviceRequest$Tags": "

The tags to attach to the new wireless device. Tags are metadata that you can use to manage a resource.

", "CreateWirelessGatewayRequest$Tags": "

The tags to attach to the new wireless gateway. Tags are metadata that you can use to manage a resource.

", "CreateWirelessGatewayTaskDefinitionRequest$Tags": "

The tags to attach to the specified resource. Tags are metadata that you can use to manage a resource.

", "ListTagsForResourceResponse$Tags": "

The tags to attach to the specified resource. Tags are metadata that you can use to manage a resource.

", + "StartBulkAssociateWirelessDeviceWithMulticastGroupRequest$Tags": null, + "StartBulkDisassociateWirelessDeviceFromMulticastGroupRequest$Tags": null, "TagResourceRequest$Tags": "

Adds to or modifies the tags of the given resource. Tags are metadata that you can use to manage a resource.

" } }, @@ -1727,6 +2351,16 @@ "refs": { } }, + "UpdateFuotaTaskRequest": { + "base": null, + "refs": { + } + }, + "UpdateFuotaTaskResponse": { + "base": null, + "refs": { + } + }, "UpdateLogLevelsByResourceTypesRequest": { "base": null, "refs": { @@ -1737,6 +2371,16 @@ "refs": { } }, + "UpdateMulticastGroupRequest": { + "base": null, + "refs": { + } + }, + "UpdateMulticastGroupResponse": { + "base": null, + "refs": { + } + }, "UpdatePartnerAccountRequest": { "base": null, "refs": { @@ -1747,6 +2391,16 @@ "refs": { } }, + "UpdateResourceEventConfigurationRequest": { + "base": null, + "refs": { + } + }, + "UpdateResourceEventConfigurationResponse": { + "base": null, + "refs": { + } + }, "UpdateSignature": { "base": null, "refs": { @@ -1818,12 +2472,16 @@ } }, "WirelessDeviceId": { - "base": null, + "base": "

The ID of the wireless device.

", "refs": { + "AssociateWirelessDeviceWithFuotaTaskRequest$WirelessDeviceId": null, + "AssociateWirelessDeviceWithMulticastGroupRequest$WirelessDeviceId": null, "AssociateWirelessDeviceWithThingRequest$Id": "

The ID of the resource to update.

", "CreateWirelessDeviceResponse$Id": "

The ID of the new wireless device.

", "CreateWirelessGatewayResponse$Id": "

The ID of the new wireless gateway.

", "DeleteWirelessDeviceRequest$Id": "

The ID of the resource to delete.

", + "DisassociateWirelessDeviceFromFuotaTaskRequest$WirelessDeviceId": null, + "DisassociateWirelessDeviceFromMulticastGroupRequest$WirelessDeviceId": null, "DisassociateWirelessDeviceFromThingRequest$Id": "

The ID of the resource to update.

", "GetWirelessDeviceResponse$Id": "

The ID of the wireless device.

", "GetWirelessDeviceStatisticsRequest$WirelessDeviceId": "

The ID of the wireless device for which to get the data.

", diff --git a/models/apis/iotwireless/2020-11-22/paginators-1.json b/models/apis/iotwireless/2020-11-22/paginators-1.json index 6ebd70afa3c..f489332c693 100644 --- a/models/apis/iotwireless/2020-11-22/paginators-1.json +++ b/models/apis/iotwireless/2020-11-22/paginators-1.json @@ -10,6 +10,21 @@ "output_token": "NextToken", "limit_key": "MaxResults" }, + "ListFuotaTasks": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "MaxResults" + }, + "ListMulticastGroups": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "MaxResults" + }, + "ListMulticastGroupsByFuotaTask": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "MaxResults" + }, "ListServiceProfiles": { "input_token": "NextToken", "output_token": "NextToken", diff --git a/models/apis/sagemaker/2017-07-24/api-2.json b/models/apis/sagemaker/2017-07-24/api-2.json index 35e4ef95d81..33b3bc34fca 100644 --- a/models/apis/sagemaker/2017-07-24/api-2.json +++ b/models/apis/sagemaker/2017-07-24/api-2.json @@ -6353,7 +6353,8 @@ "LatestHeartbeat":{"shape":"Timestamp"}, "Models":{"shape":"EdgeModels"}, "MaxModels":{"shape":"Integer"}, - "NextToken":{"shape":"NextToken"} + "NextToken":{"shape":"NextToken"}, + "AgentVersion":{"shape":"EdgeVersion"} } }, "DescribeDomainRequest":{ @@ -7486,7 +7487,8 @@ "IotThingName":{"shape":"ThingName"}, "RegistrationTime":{"shape":"Timestamp"}, "LatestHeartbeat":{"shape":"Timestamp"}, - "Models":{"shape":"EdgeModelSummaries"} + "Models":{"shape":"EdgeModelSummaries"}, + "AgentVersion":{"shape":"EdgeVersion"} } }, "Devices":{ diff --git a/models/apis/sagemaker/2017-07-24/docs-2.json b/models/apis/sagemaker/2017-07-24/docs-2.json index c0b7fafc80b..54661779a24 100644 --- a/models/apis/sagemaker/2017-07-24/docs-2.json +++ b/models/apis/sagemaker/2017-07-24/docs-2.json @@ -3535,7 +3535,9 @@ "refs": { "AgentVersion$Version": "

Version of the agent.

", "CreateEdgePackagingJobRequest$ModelVersion": "

The version of the model.

", + "DescribeDeviceResponse$AgentVersion": "

Edge Manager agent version.

", "DescribeEdgePackagingJobResponse$ModelVersion": "

The version of the model.

", + "DeviceSummary$AgentVersion": "

Edge Manager agent version.

", "EdgeModel$ModelVersion": "

The model version.

", "EdgeModelStat$ModelVersion": "

The model version.

", "EdgeModelSummary$ModelVersion": "

The version model.

", diff --git a/models/endpoints/endpoints.json b/models/endpoints/endpoints.json index 5160602f593..9b46cf34c6e 100644 --- a/models/endpoints/endpoints.json +++ b/models/endpoints/endpoints.json @@ -5159,6 +5159,7 @@ "ap-east-1" : { }, "ap-northeast-1" : { }, "ap-northeast-2" : { }, + "ap-northeast-3" : { }, "ap-south-1" : { }, "ap-southeast-1" : { }, "ap-southeast-2" : { }, @@ -9327,7 +9328,16 @@ "s3-control" : { "defaults" : { "protocols" : [ "https" ], - "signatureVersions" : [ "s3v4" ] + "signatureVersions" : [ "s3v4" ], + "variants" : [ { + "dnsSuffix" : "amazonaws.com", + "hostname" : "{service}-fips.dualstack.{region}.{dnsSuffix}", + "tags" : [ "dualstack", "fips" ] + }, { + "dnsSuffix" : "amazonaws.com", + "hostname" : "{service}.dualstack.{region}.{dnsSuffix}", + "tags" : [ "dualstack" ] + } ] }, "endpoints" : { "ap-northeast-1" : { @@ -12845,7 +12855,12 @@ "s3-control" : { "defaults" : { "protocols" : [ "https" ], - "signatureVersions" : [ "s3v4" ] + "signatureVersions" : [ "s3v4" ], + "variants" : [ { + "dnsSuffix" : "amazonaws.com.cn", + "hostname" : "{service}.dualstack.{region}.{dnsSuffix}", + "tags" : [ "dualstack" ] + } ] }, "endpoints" : { "cn-north-1" : { @@ -15562,7 +15577,16 @@ "s3-control" : { "defaults" : { "protocols" : [ "https" ], - "signatureVersions" : [ "s3v4" ] + "signatureVersions" : [ "s3v4" ], + "variants" : [ { + "dnsSuffix" : "amazonaws.com", + "hostname" : "{service}-fips.dualstack.{region}.{dnsSuffix}", + "tags" : [ "dualstack", "fips" ] + }, { + "dnsSuffix" : "amazonaws.com", + "hostname" : "{service}.dualstack.{region}.{dnsSuffix}", + "tags" : [ "dualstack" ] + } ] }, "endpoints" : { "us-gov-east-1" : { diff --git a/service/chimesdkmeetings/api.go b/service/chimesdkmeetings/api.go new file mode 100644 index 00000000000..7042d6d4caa --- /dev/null +++ b/service/chimesdkmeetings/api.go @@ -0,0 +1,3644 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +package chimesdkmeetings + +import ( + "fmt" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/awsutil" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/private/protocol" + "github.com/aws/aws-sdk-go/private/protocol/restjson" +) + +const opBatchCreateAttendee = "BatchCreateAttendee" + +// BatchCreateAttendeeRequest generates a "aws/request.Request" representing the +// client's request for the BatchCreateAttendee operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See BatchCreateAttendee for more information on using the BatchCreateAttendee +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the BatchCreateAttendeeRequest method. +// req, resp := client.BatchCreateAttendeeRequest(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/BatchCreateAttendee +func (c *ChimeSDKMeetings) BatchCreateAttendeeRequest(input *BatchCreateAttendeeInput) (req *request.Request, output *BatchCreateAttendeeOutput) { + op := &request.Operation{ + Name: opBatchCreateAttendee, + HTTPMethod: "POST", + HTTPPath: "/meetings/{MeetingId}/attendees?operation=batch-create", + } + + if input == nil { + input = &BatchCreateAttendeeInput{} + } + + output = &BatchCreateAttendeeOutput{} + req = c.newRequest(op, input, output) + return +} + +// BatchCreateAttendee API operation for Amazon Chime SDK Meetings. +// +// Creates a group of meeting attendees. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type 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 BatchCreateAttendee for usage and error information. +// +// Returned Error Types: +// * BadRequestException +// The input parameters don't match the service's restrictions. +// +// * UnauthorizedException +// The user isn't authorized to request a resource. +// +// * ServiceUnavailableException +// The service is currently unavailable. +// +// * 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. +// +// * LimitExceededException +// The request exceeds the resource 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) { + req, out := c.BatchCreateAttendeeRequest(input) + return out, req.Send() +} + +// BatchCreateAttendeeWithContext is the same as BatchCreateAttendee with the addition of +// the ability to pass a context and additional request options. +// +// See BatchCreateAttendee for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the 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) BatchCreateAttendeeWithContext(ctx aws.Context, input *BatchCreateAttendeeInput, opts ...request.Option) (*BatchCreateAttendeeOutput, error) { + req, out := c.BatchCreateAttendeeRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opCreateAttendee = "CreateAttendee" + +// CreateAttendeeRequest generates a "aws/request.Request" representing the +// client's request for the CreateAttendee operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See CreateAttendee for more information on using the CreateAttendee +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the CreateAttendeeRequest method. +// req, resp := client.CreateAttendeeRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-meetings-2021-07-15/CreateAttendee +func (c *ChimeSDKMeetings) CreateAttendeeRequest(input *CreateAttendeeInput) (req *request.Request, output *CreateAttendeeOutput) { + op := &request.Operation{ + Name: opCreateAttendee, + HTTPMethod: "POST", + HTTPPath: "/meetings/{MeetingId}/attendees", + } + + if input == nil { + input = &CreateAttendeeInput{} + } + + output = &CreateAttendeeOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateAttendee API operation for Amazon Chime SDK Meetings. +// +// Creates a new attendee for an active Amazon Chime SDK meeting. For more information +// about the Amazon Chime SDK, see Using the Amazon Chime SDK (https://docs.aws.amazon.com/chime/latest/dg/meetings-sdk.html) +// in the Amazon Chime Developer Guide. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Chime SDK Meetings's +// API operation CreateAttendee for usage and error information. +// +// Returned Error Types: +// * BadRequestException +// The input parameters don't match the service's restrictions. +// +// * ForbiddenException +// The client is permanently forbidden from making the request. +// +// * UnauthorizedException +// The user isn't authorized to request a resource. +// +// * UnprocessableEntityException +// The request was well-formed but was unable to be followed due to semantic +// errors. +// +// * ServiceUnavailableException +// The service is currently unavailable. +// +// * NotFoundException +// One or more of the resources in the request does not exist in the system. +// +// * LimitExceededException +// The request exceeds the resource 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) { + req, out := c.CreateAttendeeRequest(input) + return out, req.Send() +} + +// CreateAttendeeWithContext is the same as CreateAttendee with the addition of +// the ability to pass a context and additional request options. +// +// See CreateAttendee for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the 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) CreateAttendeeWithContext(ctx aws.Context, input *CreateAttendeeInput, opts ...request.Option) (*CreateAttendeeOutput, error) { + req, out := c.CreateAttendeeRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opCreateMeeting = "CreateMeeting" + +// CreateMeetingRequest generates a "aws/request.Request" representing the +// client's request for the CreateMeeting operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See CreateMeeting for more information on using the CreateMeeting +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the CreateMeetingRequest method. +// req, resp := client.CreateMeetingRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-meetings-2021-07-15/CreateMeeting +func (c *ChimeSDKMeetings) CreateMeetingRequest(input *CreateMeetingInput) (req *request.Request, output *CreateMeetingOutput) { + op := &request.Operation{ + Name: opCreateMeeting, + HTTPMethod: "POST", + HTTPPath: "/meetings", + } + + if input == nil { + input = &CreateMeetingInput{} + } + + output = &CreateMeetingOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateMeeting API operation for Amazon Chime SDK Meetings. +// +// Creates a new Amazon Chime SDK meeting in the specified media Region with +// no initial attendees. For more information about specifying media Regions, +// see Amazon Chime SDK Media Regions (https://docs.aws.amazon.com/chime/latest/dg/chime-sdk-meetings-regions.html) +// in the Amazon Chime Developer Guide. For more information about the Amazon +// Chime SDK, see Using the Amazon Chime SDK (https://docs.aws.amazon.com/chime/latest/dg/meetings-sdk.html) +// in the Amazon Chime Developer Guide. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Chime SDK Meetings's +// API operation CreateMeeting for usage and error information. +// +// Returned Error Types: +// * BadRequestException +// The input parameters don't match the service's restrictions. +// +// * ServiceUnavailableException +// The service is currently unavailable. +// +// * UnauthorizedException +// The user isn't authorized to request a resource. +// +// * LimitExceededException +// The request exceeds the resource limit. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-meetings-2021-07-15/CreateMeeting +func (c *ChimeSDKMeetings) CreateMeeting(input *CreateMeetingInput) (*CreateMeetingOutput, error) { + req, out := c.CreateMeetingRequest(input) + return out, req.Send() +} + +// CreateMeetingWithContext is the same as CreateMeeting with the addition of +// the ability to pass a context and additional request options. +// +// See CreateMeeting for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the 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) CreateMeetingWithContext(ctx aws.Context, input *CreateMeetingInput, opts ...request.Option) (*CreateMeetingOutput, error) { + req, out := c.CreateMeetingRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opCreateMeetingWithAttendees = "CreateMeetingWithAttendees" + +// CreateMeetingWithAttendeesRequest generates a "aws/request.Request" representing the +// client's request for the CreateMeetingWithAttendees operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See CreateMeetingWithAttendees for more information on using the CreateMeetingWithAttendees +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the CreateMeetingWithAttendeesRequest method. +// req, resp := client.CreateMeetingWithAttendeesRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-meetings-2021-07-15/CreateMeetingWithAttendees +func (c *ChimeSDKMeetings) CreateMeetingWithAttendeesRequest(input *CreateMeetingWithAttendeesInput) (req *request.Request, output *CreateMeetingWithAttendeesOutput) { + op := &request.Operation{ + Name: opCreateMeetingWithAttendees, + HTTPMethod: "POST", + HTTPPath: "/meetings?operation=create-attendees", + } + + if input == nil { + input = &CreateMeetingWithAttendeesInput{} + } + + output = &CreateMeetingWithAttendeesOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateMeetingWithAttendees API operation for Amazon Chime SDK Meetings. +// +// Creates a new Amazon Chime SDK meeting in the specified media Region, with +// attendees. For more information about specifying media Regions, see Amazon +// Chime SDK Media Regions (https://docs.aws.amazon.com/chime/latest/dg/chime-sdk-meetings-regions.html) +// in the Amazon Chime Developer Guide. For more information about the Amazon +// Chime SDK, see Using the Amazon Chime SDK (https://docs.aws.amazon.com/chime/latest/dg/meetings-sdk.html) +// in the Amazon Chime Developer Guide. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Chime SDK Meetings's +// API operation CreateMeetingWithAttendees for usage and error information. +// +// Returned Error Types: +// * BadRequestException +// The input parameters don't match the service's restrictions. +// +// * ServiceUnavailableException +// The service is currently unavailable. +// +// * UnauthorizedException +// The user isn't authorized to request a resource. +// +// * LimitExceededException +// The request exceeds the resource limit. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-meetings-2021-07-15/CreateMeetingWithAttendees +func (c *ChimeSDKMeetings) CreateMeetingWithAttendees(input *CreateMeetingWithAttendeesInput) (*CreateMeetingWithAttendeesOutput, error) { + req, out := c.CreateMeetingWithAttendeesRequest(input) + return out, req.Send() +} + +// CreateMeetingWithAttendeesWithContext is the same as CreateMeetingWithAttendees with the addition of +// the ability to pass a context and additional request options. +// +// See CreateMeetingWithAttendees for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the 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) CreateMeetingWithAttendeesWithContext(ctx aws.Context, input *CreateMeetingWithAttendeesInput, opts ...request.Option) (*CreateMeetingWithAttendeesOutput, error) { + req, out := c.CreateMeetingWithAttendeesRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDeleteAttendee = "DeleteAttendee" + +// DeleteAttendeeRequest generates a "aws/request.Request" representing the +// client's request for the DeleteAttendee operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DeleteAttendee for more information on using the DeleteAttendee +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DeleteAttendeeRequest method. +// req, resp := client.DeleteAttendeeRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-meetings-2021-07-15/DeleteAttendee +func (c *ChimeSDKMeetings) DeleteAttendeeRequest(input *DeleteAttendeeInput) (req *request.Request, output *DeleteAttendeeOutput) { + op := &request.Operation{ + Name: opDeleteAttendee, + HTTPMethod: "DELETE", + HTTPPath: "/meetings/{MeetingId}/attendees/{AttendeeId}", + } + + if input == nil { + input = &DeleteAttendeeInput{} + } + + output = &DeleteAttendeeOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// DeleteAttendee API operation for Amazon Chime SDK Meetings. +// +// Deletes an attendee from the specified Amazon Chime SDK meeting and deletes +// their JoinToken. Attendees are automatically deleted when a Amazon Chime +// SDK meeting is deleted. For more information about the Amazon Chime SDK, +// see Using the Amazon Chime SDK (https://docs.aws.amazon.com/chime/latest/dg/meetings-sdk.html) +// in the Amazon Chime Developer Guide. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Chime SDK Meetings's +// API operation DeleteAttendee for usage and error information. +// +// Returned Error Types: +// * ForbiddenException +// The client is permanently forbidden from making the request. +// +// * NotFoundException +// One or more of the resources in the request does not exist in the system. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-meetings-2021-07-15/DeleteAttendee +func (c *ChimeSDKMeetings) DeleteAttendee(input *DeleteAttendeeInput) (*DeleteAttendeeOutput, error) { + req, out := c.DeleteAttendeeRequest(input) + return out, req.Send() +} + +// DeleteAttendeeWithContext is the same as DeleteAttendee with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteAttendee for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the 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) DeleteAttendeeWithContext(ctx aws.Context, input *DeleteAttendeeInput, opts ...request.Option) (*DeleteAttendeeOutput, error) { + req, out := c.DeleteAttendeeRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDeleteMeeting = "DeleteMeeting" + +// DeleteMeetingRequest generates a "aws/request.Request" representing the +// client's request for the DeleteMeeting operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DeleteMeeting for more information on using the DeleteMeeting +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DeleteMeetingRequest method. +// req, resp := client.DeleteMeetingRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-meetings-2021-07-15/DeleteMeeting +func (c *ChimeSDKMeetings) DeleteMeetingRequest(input *DeleteMeetingInput) (req *request.Request, output *DeleteMeetingOutput) { + op := &request.Operation{ + Name: opDeleteMeeting, + HTTPMethod: "DELETE", + HTTPPath: "/meetings/{MeetingId}", + } + + if input == nil { + input = &DeleteMeetingInput{} + } + + output = &DeleteMeetingOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// DeleteMeeting API operation for Amazon Chime SDK Meetings. +// +// Deletes the specified Amazon Chime SDK meeting. The operation deletes all +// attendees, disconnects all clients, and prevents new clients from joining +// the meeting. For more information about the Amazon Chime SDK, see Using the +// Amazon Chime SDK (https://docs.aws.amazon.com/chime/latest/dg/meetings-sdk.html) +// in the Amazon Chime Developer Guide. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Chime SDK Meetings's +// API operation DeleteMeeting for usage and error information. +// +// Returned Error Types: +// * BadRequestException +// The input parameters don't match the service's restrictions. +// +// * ForbiddenException +// The client is permanently forbidden from making the request. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-meetings-2021-07-15/DeleteMeeting +func (c *ChimeSDKMeetings) DeleteMeeting(input *DeleteMeetingInput) (*DeleteMeetingOutput, error) { + req, out := c.DeleteMeetingRequest(input) + return out, req.Send() +} + +// DeleteMeetingWithContext is the same as DeleteMeeting with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteMeeting for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the 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) DeleteMeetingWithContext(ctx aws.Context, input *DeleteMeetingInput, opts ...request.Option) (*DeleteMeetingOutput, error) { + req, out := c.DeleteMeetingRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opGetAttendee = "GetAttendee" + +// GetAttendeeRequest generates a "aws/request.Request" representing the +// client's request for the GetAttendee operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See GetAttendee for more information on using the GetAttendee +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the GetAttendeeRequest method. +// req, resp := client.GetAttendeeRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-meetings-2021-07-15/GetAttendee +func (c *ChimeSDKMeetings) GetAttendeeRequest(input *GetAttendeeInput) (req *request.Request, output *GetAttendeeOutput) { + op := &request.Operation{ + Name: opGetAttendee, + HTTPMethod: "GET", + HTTPPath: "/meetings/{MeetingId}/attendees/{AttendeeId}", + } + + if input == nil { + input = &GetAttendeeInput{} + } + + output = &GetAttendeeOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetAttendee API operation for Amazon Chime SDK Meetings. +// +// Gets the Amazon Chime SDK attendee details for a specified meeting ID and +// attendee ID. For more information about the Amazon Chime SDK, see Using the +// Amazon Chime SDK (https://docs.aws.amazon.com/chime/latest/dg/meetings-sdk.html) +// in the Amazon Chime Developer Guide. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Chime SDK Meetings's +// API operation GetAttendee for usage and error information. +// +// Returned Error Types: +// * BadRequestException +// The input parameters don't match the service's restrictions. +// +// * NotFoundException +// One or more of the resources in the request does not exist in the system. +// +// * ForbiddenException +// The client is permanently forbidden from making the request. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-meetings-2021-07-15/GetAttendee +func (c *ChimeSDKMeetings) GetAttendee(input *GetAttendeeInput) (*GetAttendeeOutput, error) { + req, out := c.GetAttendeeRequest(input) + return out, req.Send() +} + +// GetAttendeeWithContext is the same as GetAttendee with the addition of +// the ability to pass a context and additional request options. +// +// See GetAttendee for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the 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) GetAttendeeWithContext(ctx aws.Context, input *GetAttendeeInput, opts ...request.Option) (*GetAttendeeOutput, error) { + req, out := c.GetAttendeeRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opGetMeeting = "GetMeeting" + +// GetMeetingRequest generates a "aws/request.Request" representing the +// client's request for the GetMeeting operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See GetMeeting for more information on using the GetMeeting +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the GetMeetingRequest method. +// req, resp := client.GetMeetingRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-meetings-2021-07-15/GetMeeting +func (c *ChimeSDKMeetings) GetMeetingRequest(input *GetMeetingInput) (req *request.Request, output *GetMeetingOutput) { + op := &request.Operation{ + Name: opGetMeeting, + HTTPMethod: "GET", + HTTPPath: "/meetings/{MeetingId}", + } + + if input == nil { + input = &GetMeetingInput{} + } + + output = &GetMeetingOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetMeeting API operation for Amazon Chime SDK Meetings. +// +// Gets the Amazon Chime SDK meeting details for the specified meeting ID. For +// more information about the Amazon Chime SDK, see Using the Amazon Chime SDK +// (https://docs.aws.amazon.com/chime/latest/dg/meetings-sdk.html) in the Amazon +// Chime Developer Guide. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Chime SDK Meetings's +// API operation GetMeeting for usage and error information. +// +// Returned Error Types: +// * NotFoundException +// One or more of the resources in the request does not exist in the system. +// +// * BadRequestException +// The input parameters don't match the service's restrictions. +// +// * ForbiddenException +// The client is permanently forbidden from making the request. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-meetings-2021-07-15/GetMeeting +func (c *ChimeSDKMeetings) GetMeeting(input *GetMeetingInput) (*GetMeetingOutput, error) { + req, out := c.GetMeetingRequest(input) + return out, req.Send() +} + +// GetMeetingWithContext is the same as GetMeeting with the addition of +// the ability to pass a context and additional request options. +// +// See GetMeeting for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the 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) GetMeetingWithContext(ctx aws.Context, input *GetMeetingInput, opts ...request.Option) (*GetMeetingOutput, error) { + req, out := c.GetMeetingRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opListAttendees = "ListAttendees" + +// ListAttendeesRequest generates a "aws/request.Request" representing the +// client's request for the ListAttendees operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListAttendees for more information on using the ListAttendees +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the ListAttendeesRequest method. +// req, resp := client.ListAttendeesRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-meetings-2021-07-15/ListAttendees +func (c *ChimeSDKMeetings) ListAttendeesRequest(input *ListAttendeesInput) (req *request.Request, output *ListAttendeesOutput) { + op := &request.Operation{ + Name: opListAttendees, + HTTPMethod: "GET", + HTTPPath: "/meetings/{MeetingId}/attendees", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListAttendeesInput{} + } + + output = &ListAttendeesOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListAttendees API operation for Amazon Chime SDK Meetings. +// +// Lists the attendees for the specified Amazon Chime SDK meeting. For more +// information about the Amazon Chime SDK, see Using the Amazon Chime SDK (https://docs.aws.amazon.com/chime/latest/dg/meetings-sdk.html) +// in the Amazon Chime Developer Guide. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Chime SDK Meetings's +// API operation ListAttendees for usage and error information. +// +// Returned Error Types: +// * BadRequestException +// The input parameters don't match the service's restrictions. +// +// * NotFoundException +// One or more of the resources in the request does not exist in the system. +// +// * ForbiddenException +// The client is permanently forbidden from making the request. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-meetings-2021-07-15/ListAttendees +func (c *ChimeSDKMeetings) ListAttendees(input *ListAttendeesInput) (*ListAttendeesOutput, error) { + req, out := c.ListAttendeesRequest(input) + return out, req.Send() +} + +// ListAttendeesWithContext is the same as ListAttendees with the addition of +// the ability to pass a context and additional request options. +// +// See ListAttendees for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the 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) ListAttendeesWithContext(ctx aws.Context, input *ListAttendeesInput, opts ...request.Option) (*ListAttendeesOutput, error) { + req, out := c.ListAttendeesRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// ListAttendeesPages iterates over the pages of a ListAttendees operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListAttendees method for more information on how to use this operation. +// +// Note: This operation can generate multiple requests to a service. +// +// // Example iterating over at most 3 pages of a ListAttendees operation. +// pageNum := 0 +// err := client.ListAttendeesPages(params, +// func(page *chimesdkmeetings.ListAttendeesOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *ChimeSDKMeetings) ListAttendeesPages(input *ListAttendeesInput, fn func(*ListAttendeesOutput, bool) bool) error { + return c.ListAttendeesPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListAttendeesPagesWithContext same as ListAttendeesPages except +// it takes a Context and allows setting request options on the pages. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *ChimeSDKMeetings) ListAttendeesPagesWithContext(ctx aws.Context, input *ListAttendeesInput, fn func(*ListAttendeesOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListAttendeesInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListAttendeesRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListAttendeesOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opStartMeetingTranscription = "StartMeetingTranscription" + +// StartMeetingTranscriptionRequest generates a "aws/request.Request" representing the +// client's request for the StartMeetingTranscription operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See StartMeetingTranscription for more information on using the StartMeetingTranscription +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the StartMeetingTranscriptionRequest method. +// req, resp := client.StartMeetingTranscriptionRequest(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/StartMeetingTranscription +func (c *ChimeSDKMeetings) StartMeetingTranscriptionRequest(input *StartMeetingTranscriptionInput) (req *request.Request, output *StartMeetingTranscriptionOutput) { + op := &request.Operation{ + Name: opStartMeetingTranscription, + HTTPMethod: "POST", + HTTPPath: "/meetings/{MeetingId}/transcription?operation=start", + } + + if input == nil { + input = &StartMeetingTranscriptionInput{} + } + + output = &StartMeetingTranscriptionOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// StartMeetingTranscription API operation for Amazon Chime SDK Meetings. +// +// Starts transcription for the specified meetingId. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type 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 StartMeetingTranscription for usage and error information. +// +// Returned Error Types: +// * NotFoundException +// One or more of the resources in the request does not exist in the system. +// +// * ForbiddenException +// The client is permanently forbidden from making the request. +// +// * BadRequestException +// The input parameters don't match the service's restrictions. +// +// * UnauthorizedException +// The user isn't authorized to request a resource. +// +// * LimitExceededException +// The request exceeds the resource limit. +// +// * UnprocessableEntityException +// The request was well-formed but was unable to be followed due to semantic +// errors. +// +// * ServiceUnavailableException +// 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) { + req, out := c.StartMeetingTranscriptionRequest(input) + return out, req.Send() +} + +// StartMeetingTranscriptionWithContext is the same as StartMeetingTranscription with the addition of +// the ability to pass a context and additional request options. +// +// See StartMeetingTranscription for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the 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) StartMeetingTranscriptionWithContext(ctx aws.Context, input *StartMeetingTranscriptionInput, opts ...request.Option) (*StartMeetingTranscriptionOutput, error) { + req, out := c.StartMeetingTranscriptionRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opStopMeetingTranscription = "StopMeetingTranscription" + +// StopMeetingTranscriptionRequest generates a "aws/request.Request" representing the +// client's request for the StopMeetingTranscription operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See StopMeetingTranscription for more information on using the StopMeetingTranscription +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the StopMeetingTranscriptionRequest method. +// req, resp := client.StopMeetingTranscriptionRequest(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/StopMeetingTranscription +func (c *ChimeSDKMeetings) StopMeetingTranscriptionRequest(input *StopMeetingTranscriptionInput) (req *request.Request, output *StopMeetingTranscriptionOutput) { + op := &request.Operation{ + Name: opStopMeetingTranscription, + HTTPMethod: "POST", + HTTPPath: "/meetings/{MeetingId}/transcription?operation=stop", + } + + if input == nil { + input = &StopMeetingTranscriptionInput{} + } + + output = &StopMeetingTranscriptionOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// StopMeetingTranscription API operation for Amazon Chime SDK Meetings. +// +// Stops transcription for the specified meetingId. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type 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 StopMeetingTranscription for usage and error information. +// +// Returned Error Types: +// * ForbiddenException +// The client is permanently forbidden from making the request. +// +// * NotFoundException +// One or more of the resources in the request does not exist in the system. +// +// * BadRequestException +// The input parameters don't match the service's restrictions. +// +// * UnauthorizedException +// The user isn't authorized to request a resource. +// +// * UnprocessableEntityException +// The request was well-formed but was unable to be followed due to semantic +// errors. +// +// * ServiceUnavailableException +// 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) { + req, out := c.StopMeetingTranscriptionRequest(input) + return out, req.Send() +} + +// StopMeetingTranscriptionWithContext is the same as StopMeetingTranscription with the addition of +// the ability to pass a context and additional request options. +// +// See StopMeetingTranscription for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the 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) StopMeetingTranscriptionWithContext(ctx aws.Context, input *StopMeetingTranscriptionInput, opts ...request.Option) (*StopMeetingTranscriptionOutput, error) { + req, out := c.StopMeetingTranscriptionRequest(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. +// After that, the attendee is unable to join the meeting. +// +// We recommend securely transferring each JoinToken from your server application +// to the client so that no other client has access to the token except for +// the one authorized to represent the attendee. +type Attendee struct { + _ struct{} `type:"structure"` + + // The Amazon Chime SDK attendee ID. + AttendeeId *string `type:"string"` + + // The Amazon Chime SDK external user ID. An idempotency token. Links the attendee + // to an identity managed by a builder application. + // + // ExternalUserId is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by Attendee's + // String and GoString methods. + ExternalUserId *string `min:"2" type:"string" sensitive:"true"` + + // The join token used by the Amazon Chime SDK attendee. + // + // JoinToken is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by Attendee's + // String and GoString methods. + JoinToken *string `min:"2" type:"string" sensitive:"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 Attendee) 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 Attendee) GoString() string { + return s.String() +} + +// SetAttendeeId sets the AttendeeId field's value. +func (s *Attendee) SetAttendeeId(v string) *Attendee { + s.AttendeeId = &v + return s +} + +// SetExternalUserId sets the ExternalUserId field's value. +func (s *Attendee) SetExternalUserId(v string) *Attendee { + s.ExternalUserId = &v + return s +} + +// SetJoinToken sets the JoinToken field's value. +func (s *Attendee) SetJoinToken(v string) *Attendee { + s.JoinToken = &v + return s +} + +// The input parameters don't match the service's restrictions. +type BadRequestException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + Code_ *string `locationName:"Code" type:"string"` + + Message_ *string `locationName:"Message" type:"string"` + + // The request id associated with the call responsible for the exception. + 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 BadRequestException) 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 BadRequestException) GoString() string { + return s.String() +} + +func newErrorBadRequestException(v protocol.ResponseMetadata) error { + return &BadRequestException{ + RespMetadata: v, + } +} + +// Code returns the exception type name. +func (s *BadRequestException) Code() string { + return "BadRequestException" +} + +// Message returns the exception's message. +func (s *BadRequestException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *BadRequestException) OrigErr() error { + return nil +} + +func (s *BadRequestException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s *BadRequestException) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *BadRequestException) RequestID() string { + return s.RespMetadata.RequestID +} + +type BatchCreateAttendeeInput struct { + _ struct{} `type:"structure"` + + // The attendee information, including attendees' IDs and join tokens. + // + // Attendees is a required field + Attendees []*CreateAttendeeRequestItem `min:"1" type:"list" required:"true"` + + // The Amazon Chime SDK ID of the meeting to which you're adding attendees. + // + // 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 BatchCreateAttendeeInput) 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 BatchCreateAttendeeInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *BatchCreateAttendeeInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "BatchCreateAttendeeInput"} + if s.Attendees == nil { + invalidParams.Add(request.NewErrParamRequired("Attendees")) + } + if s.Attendees != nil && len(s.Attendees) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Attendees", 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.Attendees != nil { + for i, v := range s.Attendees { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Attendees", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAttendees sets the Attendees field's value. +func (s *BatchCreateAttendeeInput) SetAttendees(v []*CreateAttendeeRequestItem) *BatchCreateAttendeeInput { + s.Attendees = v + return s +} + +// SetMeetingId sets the MeetingId field's value. +func (s *BatchCreateAttendeeInput) SetMeetingId(v string) *BatchCreateAttendeeInput { + s.MeetingId = &v + return s +} + +type BatchCreateAttendeeOutput struct { + _ struct{} `type:"structure"` + + // The attendee information, including attendees' IDs and join tokens. + Attendees []*Attendee `type:"list"` + + // If the action fails for one or more of the attendees in the request, a list + // of the attendees is returned, along with error codes and error messages. + Errors []*CreateAttendeeError `type:"list"` +} + +// String returns the string representation. +// +// 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 BatchCreateAttendeeOutput) 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 BatchCreateAttendeeOutput) GoString() string { + return s.String() +} + +// SetAttendees sets the Attendees field's value. +func (s *BatchCreateAttendeeOutput) SetAttendees(v []*Attendee) *BatchCreateAttendeeOutput { + s.Attendees = v + return s +} + +// SetErrors sets the Errors field's value. +func (s *BatchCreateAttendeeOutput) SetErrors(v []*CreateAttendeeError) *BatchCreateAttendeeOutput { + s.Errors = v + return s +} + +// The list of errors returned when errors are encountered during the BatchCreateAttendee +// and CreateAttendee actions. This includes external user IDs, error codes, +// and error messages. +type CreateAttendeeError struct { + _ struct{} `type:"structure"` + + // The error code. + ErrorCode *string `type:"string"` + + // The error message. + ErrorMessage *string `type:"string"` + + // The Amazon Chime SDK external user ID. An idempotency token. Links the attendee + // to an identity managed by a builder application. + // + // ExternalUserId is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by CreateAttendeeError's + // String and GoString methods. + ExternalUserId *string `min:"2" type:"string" sensitive:"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 CreateAttendeeError) 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 CreateAttendeeError) GoString() string { + return s.String() +} + +// SetErrorCode sets the ErrorCode field's value. +func (s *CreateAttendeeError) SetErrorCode(v string) *CreateAttendeeError { + s.ErrorCode = &v + return s +} + +// SetErrorMessage sets the ErrorMessage field's value. +func (s *CreateAttendeeError) SetErrorMessage(v string) *CreateAttendeeError { + s.ErrorMessage = &v + return s +} + +// SetExternalUserId sets the ExternalUserId field's value. +func (s *CreateAttendeeError) SetExternalUserId(v string) *CreateAttendeeError { + s.ExternalUserId = &v + return s +} + +type CreateAttendeeInput struct { + _ struct{} `type:"structure"` + + // The Amazon Chime SDK external user ID. An idempotency token. Links the attendee + // to an identity managed by a builder application. + // + // ExternalUserId is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by CreateAttendeeInput's + // String and GoString methods. + // + // ExternalUserId is a required field + ExternalUserId *string `min:"2" type:"string" required:"true" sensitive:"true"` + + // The unique ID of the meeting. + // + // 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 CreateAttendeeInput) 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 CreateAttendeeInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateAttendeeInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateAttendeeInput"} + if s.ExternalUserId == nil { + invalidParams.Add(request.NewErrParamRequired("ExternalUserId")) + } + if s.ExternalUserId != nil && len(*s.ExternalUserId) < 2 { + invalidParams.Add(request.NewErrParamMinLen("ExternalUserId", 2)) + } + if s.MeetingId == nil { + invalidParams.Add(request.NewErrParamRequired("MeetingId")) + } + if s.MeetingId != nil && len(*s.MeetingId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("MeetingId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetExternalUserId sets the ExternalUserId field's value. +func (s *CreateAttendeeInput) SetExternalUserId(v string) *CreateAttendeeInput { + s.ExternalUserId = &v + return s +} + +// SetMeetingId sets the MeetingId field's value. +func (s *CreateAttendeeInput) SetMeetingId(v string) *CreateAttendeeInput { + s.MeetingId = &v + return s +} + +type CreateAttendeeOutput struct { + _ struct{} `type:"structure"` + + // The attendee information, including attendee ID and join token. + 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 CreateAttendeeOutput) 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 CreateAttendeeOutput) GoString() string { + return s.String() +} + +// SetAttendee sets the Attendee field's value. +func (s *CreateAttendeeOutput) SetAttendee(v *Attendee) *CreateAttendeeOutput { + s.Attendee = v + return s +} + +// The Amazon Chime SDK attendee fields to create, used with the BatchCreateAttendee +// action. +type CreateAttendeeRequestItem struct { + _ struct{} `type:"structure"` + + // The Amazon Chime SDK external user ID. An idempotency token. Links the attendee + // to an identity managed by a builder application. + // + // ExternalUserId is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by CreateAttendeeRequestItem's + // String and GoString methods. + // + // ExternalUserId is a required field + ExternalUserId *string `min:"2" type:"string" required:"true" sensitive:"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 CreateAttendeeRequestItem) 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 CreateAttendeeRequestItem) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateAttendeeRequestItem) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateAttendeeRequestItem"} + if s.ExternalUserId == nil { + invalidParams.Add(request.NewErrParamRequired("ExternalUserId")) + } + if s.ExternalUserId != nil && len(*s.ExternalUserId) < 2 { + invalidParams.Add(request.NewErrParamMinLen("ExternalUserId", 2)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetExternalUserId sets the ExternalUserId field's value. +func (s *CreateAttendeeRequestItem) SetExternalUserId(v string) *CreateAttendeeRequestItem { + s.ExternalUserId = &v + return s +} + +type CreateMeetingInput struct { + _ struct{} `type:"structure"` + + // The unique identifier for the client request. Use a different token for different + // meetings. + // + // ClientRequestToken is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by CreateMeetingInput's + // String and GoString methods. + ClientRequestToken *string `min:"2" type:"string" idempotencyToken:"true" sensitive:"true"` + + // The external meeting ID. + // + // ExternalMeetingId is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by CreateMeetingInput's + // String and GoString methods. + // + // ExternalMeetingId is a required field + ExternalMeetingId *string `min:"2" type:"string" required:"true" sensitive:"true"` + + // The Region in which to create the meeting. Default: us-east-1. + // + // Available values: af-south-1 , ap-northeast-1 , ap-northeast-2 , ap-south-1 + // , ap-southeast-1 , ap-southeast-2 , ca-central-1 , eu-central-1 , eu-north-1 + // , eu-south-1 , eu-west-1 , eu-west-2 , eu-west-3 , sa-east-1 , us-east-1 + // , us-east-2 , us-west-1 , us-west-2 . + // + // MediaRegion is a required field + MediaRegion *string `type:"string" required:"true"` + + // Reserved. + // + // MeetingHostId is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by CreateMeetingInput's + // String and GoString methods. + MeetingHostId *string `min:"2" type:"string" sensitive:"true"` + + // The configuration for resource targets to receive notifications when meeting + // and attendee events occur. + NotificationsConfiguration *NotificationsConfiguration `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 CreateMeetingInput) 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 CreateMeetingInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateMeetingInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateMeetingInput"} + if s.ClientRequestToken != nil && len(*s.ClientRequestToken) < 2 { + invalidParams.Add(request.NewErrParamMinLen("ClientRequestToken", 2)) + } + if s.ExternalMeetingId == nil { + invalidParams.Add(request.NewErrParamRequired("ExternalMeetingId")) + } + if s.ExternalMeetingId != nil && len(*s.ExternalMeetingId) < 2 { + invalidParams.Add(request.NewErrParamMinLen("ExternalMeetingId", 2)) + } + if s.MediaRegion == nil { + invalidParams.Add(request.NewErrParamRequired("MediaRegion")) + } + if s.MeetingHostId != nil && len(*s.MeetingHostId) < 2 { + invalidParams.Add(request.NewErrParamMinLen("MeetingHostId", 2)) + } + if s.NotificationsConfiguration != nil { + if err := s.NotificationsConfiguration.Validate(); err != nil { + invalidParams.AddNested("NotificationsConfiguration", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetClientRequestToken sets the ClientRequestToken field's value. +func (s *CreateMeetingInput) SetClientRequestToken(v string) *CreateMeetingInput { + s.ClientRequestToken = &v + return s +} + +// SetExternalMeetingId sets the ExternalMeetingId field's value. +func (s *CreateMeetingInput) SetExternalMeetingId(v string) *CreateMeetingInput { + s.ExternalMeetingId = &v + return s +} + +// SetMediaRegion sets the MediaRegion field's value. +func (s *CreateMeetingInput) SetMediaRegion(v string) *CreateMeetingInput { + s.MediaRegion = &v + return s +} + +// SetMeetingHostId sets the MeetingHostId field's value. +func (s *CreateMeetingInput) SetMeetingHostId(v string) *CreateMeetingInput { + s.MeetingHostId = &v + return s +} + +// SetNotificationsConfiguration sets the NotificationsConfiguration field's value. +func (s *CreateMeetingInput) SetNotificationsConfiguration(v *NotificationsConfiguration) *CreateMeetingInput { + s.NotificationsConfiguration = v + return s +} + +type CreateMeetingOutput struct { + _ struct{} `type:"structure"` + + // The meeting information, including the meeting ID and MediaPlacement. + Meeting *Meeting `type:"structure"` +} + +// String returns the string representation. +// +// 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 CreateMeetingOutput) 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 CreateMeetingOutput) GoString() string { + return s.String() +} + +// SetMeeting sets the Meeting field's value. +func (s *CreateMeetingOutput) SetMeeting(v *Meeting) *CreateMeetingOutput { + s.Meeting = v + return s +} + +type CreateMeetingWithAttendeesInput struct { + _ struct{} `type:"structure"` + + // The attendee information, including attendees' IDs and join tokens. + // + // Attendees is a required field + Attendees []*CreateAttendeeRequestItem `min:"1" type:"list" required:"true"` + + // The unique identifier for the client request. Use a different token for different + // meetings. + // + // ClientRequestToken is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by CreateMeetingWithAttendeesInput's + // String and GoString methods. + ClientRequestToken *string `min:"2" type:"string" idempotencyToken:"true" sensitive:"true"` + + // The external meeting ID. + // + // ExternalMeetingId is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by CreateMeetingWithAttendeesInput's + // String and GoString methods. + // + // ExternalMeetingId is a required field + ExternalMeetingId *string `min:"2" type:"string" required:"true" sensitive:"true"` + + // The Region in which to create the meeting. Default: us-east-1. + // + // MediaRegion is a required field + MediaRegion *string `type:"string" required:"true"` + + // Reserved. + // + // MeetingHostId is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by CreateMeetingWithAttendeesInput's + // String and GoString methods. + MeetingHostId *string `min:"2" type:"string" sensitive:"true"` + + // The configuration for resource targets to receive notifications when meeting + // and attendee events occur. + NotificationsConfiguration *NotificationsConfiguration `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 CreateMeetingWithAttendeesInput) 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 CreateMeetingWithAttendeesInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateMeetingWithAttendeesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateMeetingWithAttendeesInput"} + if s.Attendees == nil { + invalidParams.Add(request.NewErrParamRequired("Attendees")) + } + if s.Attendees != nil && len(s.Attendees) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Attendees", 1)) + } + if s.ClientRequestToken != nil && len(*s.ClientRequestToken) < 2 { + invalidParams.Add(request.NewErrParamMinLen("ClientRequestToken", 2)) + } + if s.ExternalMeetingId == nil { + invalidParams.Add(request.NewErrParamRequired("ExternalMeetingId")) + } + if s.ExternalMeetingId != nil && len(*s.ExternalMeetingId) < 2 { + invalidParams.Add(request.NewErrParamMinLen("ExternalMeetingId", 2)) + } + if s.MediaRegion == nil { + invalidParams.Add(request.NewErrParamRequired("MediaRegion")) + } + if s.MeetingHostId != nil && len(*s.MeetingHostId) < 2 { + invalidParams.Add(request.NewErrParamMinLen("MeetingHostId", 2)) + } + if s.Attendees != nil { + for i, v := range s.Attendees { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Attendees", i), err.(request.ErrInvalidParams)) + } + } + } + if s.NotificationsConfiguration != nil { + if err := s.NotificationsConfiguration.Validate(); err != nil { + invalidParams.AddNested("NotificationsConfiguration", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAttendees sets the Attendees field's value. +func (s *CreateMeetingWithAttendeesInput) SetAttendees(v []*CreateAttendeeRequestItem) *CreateMeetingWithAttendeesInput { + s.Attendees = v + return s +} + +// SetClientRequestToken sets the ClientRequestToken field's value. +func (s *CreateMeetingWithAttendeesInput) SetClientRequestToken(v string) *CreateMeetingWithAttendeesInput { + s.ClientRequestToken = &v + return s +} + +// SetExternalMeetingId sets the ExternalMeetingId field's value. +func (s *CreateMeetingWithAttendeesInput) SetExternalMeetingId(v string) *CreateMeetingWithAttendeesInput { + s.ExternalMeetingId = &v + return s +} + +// SetMediaRegion sets the MediaRegion field's value. +func (s *CreateMeetingWithAttendeesInput) SetMediaRegion(v string) *CreateMeetingWithAttendeesInput { + s.MediaRegion = &v + return s +} + +// SetMeetingHostId sets the MeetingHostId field's value. +func (s *CreateMeetingWithAttendeesInput) SetMeetingHostId(v string) *CreateMeetingWithAttendeesInput { + s.MeetingHostId = &v + return s +} + +// SetNotificationsConfiguration sets the NotificationsConfiguration field's value. +func (s *CreateMeetingWithAttendeesInput) SetNotificationsConfiguration(v *NotificationsConfiguration) *CreateMeetingWithAttendeesInput { + s.NotificationsConfiguration = v + return s +} + +type CreateMeetingWithAttendeesOutput struct { + _ struct{} `type:"structure"` + + // The attendee information, including attendees' IDs and join tokens. + Attendees []*Attendee `type:"list"` + + // If the action fails for one or more of the attendees in the request, a list + // of the attendees is returned, along with error codes and error messages. + Errors []*CreateAttendeeError `type:"list"` + + // The meeting information, including the meeting ID and MediaPlacement. + Meeting *Meeting `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 CreateMeetingWithAttendeesOutput) 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 CreateMeetingWithAttendeesOutput) GoString() string { + return s.String() +} + +// SetAttendees sets the Attendees field's value. +func (s *CreateMeetingWithAttendeesOutput) SetAttendees(v []*Attendee) *CreateMeetingWithAttendeesOutput { + s.Attendees = v + return s +} + +// SetErrors sets the Errors field's value. +func (s *CreateMeetingWithAttendeesOutput) SetErrors(v []*CreateAttendeeError) *CreateMeetingWithAttendeesOutput { + s.Errors = v + return s +} + +// SetMeeting sets the Meeting field's value. +func (s *CreateMeetingWithAttendeesOutput) SetMeeting(v *Meeting) *CreateMeetingWithAttendeesOutput { + s.Meeting = v + return s +} + +type DeleteAttendeeInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // The Amazon Chime SDK attendee ID. + // + // AttendeeId is a required field + AttendeeId *string `location:"uri" locationName:"AttendeeId" type:"string" required:"true"` + + // The Amazon Chime SDK meeting ID. + // + // MeetingId is a required field + MeetingId *string `location:"uri" locationName:"MeetingId" type:"string" required:"true"` +} + +// 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 DeleteAttendeeInput) 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 DeleteAttendeeInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteAttendeeInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteAttendeeInput"} + if s.AttendeeId == nil { + invalidParams.Add(request.NewErrParamRequired("AttendeeId")) + } + if s.AttendeeId != nil && len(*s.AttendeeId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AttendeeId", 1)) + } + if s.MeetingId == nil { + invalidParams.Add(request.NewErrParamRequired("MeetingId")) + } + if s.MeetingId != nil && len(*s.MeetingId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("MeetingId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAttendeeId sets the AttendeeId field's value. +func (s *DeleteAttendeeInput) SetAttendeeId(v string) *DeleteAttendeeInput { + s.AttendeeId = &v + return s +} + +// SetMeetingId sets the MeetingId field's value. +func (s *DeleteAttendeeInput) SetMeetingId(v string) *DeleteAttendeeInput { + s.MeetingId = &v + return s +} + +type DeleteAttendeeOutput 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 DeleteAttendeeOutput) 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 DeleteAttendeeOutput) GoString() string { + return s.String() +} + +type DeleteMeetingInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // The Amazon Chime SDK meeting ID. + // + // MeetingId is a required field + MeetingId *string `location:"uri" locationName:"MeetingId" type:"string" required:"true"` +} + +// String returns the string representation. +// +// 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 DeleteMeetingInput) 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 DeleteMeetingInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteMeetingInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteMeetingInput"} + if s.MeetingId == nil { + invalidParams.Add(request.NewErrParamRequired("MeetingId")) + } + if s.MeetingId != nil && len(*s.MeetingId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("MeetingId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetMeetingId sets the MeetingId field's value. +func (s *DeleteMeetingInput) SetMeetingId(v string) *DeleteMeetingInput { + s.MeetingId = &v + return s +} + +type DeleteMeetingOutput 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 DeleteMeetingOutput) 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 DeleteMeetingOutput) GoString() string { + return s.String() +} + +// Settings specific to the Amazon Transcribe Medical engine. +type EngineTranscribeMedicalSettings struct { + _ struct{} `type:"structure"` + + // The language code specified for the Amazon Transcribe Medical engine. + // + // LanguageCode is a required field + LanguageCode *string `type:"string" required:"true" enum:"TranscribeMedicalLanguageCode"` + + // The AWS Region passed to Amazon Transcribe Medical. If you don't specify + // a Region, Amazon Chime uses the meeting's Region. + Region *string `type:"string" enum:"TranscribeMedicalRegion"` + + // The specialty specified for the Amazon Transcribe Medical engine. + // + // Specialty is a required field + Specialty *string `type:"string" required:"true" enum:"TranscribeMedicalSpecialty"` + + // The type of transcription. + // + // Type is a required field + Type *string `type:"string" required:"true" enum:"TranscribeMedicalType"` + + // The name of the vocabulary passed to Amazon Transcribe Medical. + VocabularyName *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 EngineTranscribeMedicalSettings) 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 EngineTranscribeMedicalSettings) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *EngineTranscribeMedicalSettings) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "EngineTranscribeMedicalSettings"} + if s.LanguageCode == nil { + invalidParams.Add(request.NewErrParamRequired("LanguageCode")) + } + if s.Specialty == nil { + invalidParams.Add(request.NewErrParamRequired("Specialty")) + } + if s.Type == nil { + invalidParams.Add(request.NewErrParamRequired("Type")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetLanguageCode sets the LanguageCode field's value. +func (s *EngineTranscribeMedicalSettings) SetLanguageCode(v string) *EngineTranscribeMedicalSettings { + s.LanguageCode = &v + return s +} + +// SetRegion sets the Region field's value. +func (s *EngineTranscribeMedicalSettings) SetRegion(v string) *EngineTranscribeMedicalSettings { + s.Region = &v + return s +} + +// SetSpecialty sets the Specialty field's value. +func (s *EngineTranscribeMedicalSettings) SetSpecialty(v string) *EngineTranscribeMedicalSettings { + s.Specialty = &v + return s +} + +// SetType sets the Type field's value. +func (s *EngineTranscribeMedicalSettings) SetType(v string) *EngineTranscribeMedicalSettings { + s.Type = &v + return s +} + +// SetVocabularyName sets the VocabularyName field's value. +func (s *EngineTranscribeMedicalSettings) SetVocabularyName(v string) *EngineTranscribeMedicalSettings { + s.VocabularyName = &v + return s +} + +// Settings specific to the Amazon Transcribe engine. +type EngineTranscribeSettings struct { + _ struct{} `type:"structure"` + + // The language code specified for the Amazon Transcribe engine. + // + // LanguageCode is a required field + LanguageCode *string `type:"string" required:"true" enum:"TranscribeLanguageCode"` + + // The AWS Region passed to Amazon Transcribe. If you don't specify a Region, + // Amazon Chime uses the meeting's Region. + Region *string `type:"string" enum:"TranscribeRegion"` + + // The filtering method passed to Amazon Transcribe. + VocabularyFilterMethod *string `type:"string" enum:"TranscribeVocabularyFilterMethod"` + + // The name of the vocabulary filter passed to Amazon Transcribe. + VocabularyFilterName *string `type:"string"` + + // The name of the vocabulary passed to Amazon Transcribe. + VocabularyName *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 EngineTranscribeSettings) 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 EngineTranscribeSettings) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *EngineTranscribeSettings) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "EngineTranscribeSettings"} + if s.LanguageCode == nil { + invalidParams.Add(request.NewErrParamRequired("LanguageCode")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetLanguageCode sets the LanguageCode field's value. +func (s *EngineTranscribeSettings) SetLanguageCode(v string) *EngineTranscribeSettings { + s.LanguageCode = &v + return s +} + +// SetRegion sets the Region field's value. +func (s *EngineTranscribeSettings) SetRegion(v string) *EngineTranscribeSettings { + s.Region = &v + return s +} + +// SetVocabularyFilterMethod sets the VocabularyFilterMethod field's value. +func (s *EngineTranscribeSettings) SetVocabularyFilterMethod(v string) *EngineTranscribeSettings { + s.VocabularyFilterMethod = &v + return s +} + +// SetVocabularyFilterName sets the VocabularyFilterName field's value. +func (s *EngineTranscribeSettings) SetVocabularyFilterName(v string) *EngineTranscribeSettings { + s.VocabularyFilterName = &v + return s +} + +// SetVocabularyName sets the VocabularyName field's value. +func (s *EngineTranscribeSettings) SetVocabularyName(v string) *EngineTranscribeSettings { + s.VocabularyName = &v + return s +} + +// The client is permanently forbidden from making the request. +type ForbiddenException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + Code_ *string `locationName:"Code" type:"string"` + + Message_ *string `locationName:"Message" type:"string"` + + // The request id associated with the call responsible for the exception. + 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 ForbiddenException) 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 ForbiddenException) GoString() string { + return s.String() +} + +func newErrorForbiddenException(v protocol.ResponseMetadata) error { + return &ForbiddenException{ + RespMetadata: v, + } +} + +// Code returns the exception type name. +func (s *ForbiddenException) Code() string { + return "ForbiddenException" +} + +// Message returns the exception's message. +func (s *ForbiddenException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *ForbiddenException) OrigErr() error { + return nil +} + +func (s *ForbiddenException) 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 *ForbiddenException) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *ForbiddenException) RequestID() string { + return s.RespMetadata.RequestID +} + +type GetAttendeeInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // The Amazon Chime SDK attendee ID. + // + // AttendeeId is a required field + AttendeeId *string `location:"uri" locationName:"AttendeeId" type:"string" required:"true"` + + // The Amazon Chime SDK meeting ID. + // + // MeetingId is a required field + MeetingId *string `location:"uri" locationName:"MeetingId" type:"string" required:"true"` +} + +// 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 GetAttendeeInput) 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 GetAttendeeInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetAttendeeInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetAttendeeInput"} + if s.AttendeeId == nil { + invalidParams.Add(request.NewErrParamRequired("AttendeeId")) + } + if s.AttendeeId != nil && len(*s.AttendeeId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AttendeeId", 1)) + } + if s.MeetingId == nil { + invalidParams.Add(request.NewErrParamRequired("MeetingId")) + } + if s.MeetingId != nil && len(*s.MeetingId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("MeetingId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAttendeeId sets the AttendeeId field's value. +func (s *GetAttendeeInput) SetAttendeeId(v string) *GetAttendeeInput { + s.AttendeeId = &v + return s +} + +// SetMeetingId sets the MeetingId field's value. +func (s *GetAttendeeInput) SetMeetingId(v string) *GetAttendeeInput { + s.MeetingId = &v + return s +} + +type GetAttendeeOutput struct { + _ struct{} `type:"structure"` + + // The Amazon Chime SDK attendee information. + 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 GetAttendeeOutput) 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 GetAttendeeOutput) GoString() string { + return s.String() +} + +// SetAttendee sets the Attendee field's value. +func (s *GetAttendeeOutput) SetAttendee(v *Attendee) *GetAttendeeOutput { + s.Attendee = v + return s +} + +type GetMeetingInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // The Amazon Chime SDK meeting ID. + // + // MeetingId is a required field + MeetingId *string `location:"uri" locationName:"MeetingId" type:"string" required:"true"` +} + +// String returns the string representation. +// +// 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 GetMeetingInput) 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 GetMeetingInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetMeetingInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetMeetingInput"} + if s.MeetingId == nil { + invalidParams.Add(request.NewErrParamRequired("MeetingId")) + } + if s.MeetingId != nil && len(*s.MeetingId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("MeetingId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetMeetingId sets the MeetingId field's value. +func (s *GetMeetingInput) SetMeetingId(v string) *GetMeetingInput { + s.MeetingId = &v + return s +} + +type GetMeetingOutput struct { + _ struct{} `type:"structure"` + + // The Amazon Chime SDK meeting information. + Meeting *Meeting `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 GetMeetingOutput) 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 GetMeetingOutput) GoString() string { + return s.String() +} + +// SetMeeting sets the Meeting field's value. +func (s *GetMeetingOutput) SetMeeting(v *Meeting) *GetMeetingOutput { + s.Meeting = v + return s +} + +// The request exceeds the resource limit. +type LimitExceededException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + Code_ *string `locationName:"Code" type:"string"` + + Message_ *string `locationName:"Message" type:"string"` + + // The request id associated with the call responsible for the exception. + 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 LimitExceededException) 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 LimitExceededException) GoString() string { + return s.String() +} + +func newErrorLimitExceededException(v protocol.ResponseMetadata) error { + return &LimitExceededException{ + RespMetadata: v, + } +} + +// Code returns the exception type name. +func (s *LimitExceededException) Code() string { + return "LimitExceededException" +} + +// Message returns the exception's message. +func (s *LimitExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *LimitExceededException) OrigErr() error { + return nil +} + +func (s *LimitExceededException) 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 *LimitExceededException) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *LimitExceededException) RequestID() string { + return s.RespMetadata.RequestID +} + +type ListAttendeesInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // The maximum number of results to return in a single call. + MaxResults *int64 `location:"querystring" locationName:"max-results" min:"1" type:"integer"` + + // The Amazon Chime SDK meeting ID. + // + // MeetingId is a required field + MeetingId *string `location:"uri" locationName:"MeetingId" type:"string" required:"true"` + + // The token to use to retrieve the next page of results. + NextToken *string `location:"querystring" locationName:"next-token" type:"string"` +} + +// String returns the string representation. +// +// 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 ListAttendeesInput) 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 ListAttendeesInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListAttendeesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListAttendeesInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + if s.MeetingId == nil { + invalidParams.Add(request.NewErrParamRequired("MeetingId")) + } + if s.MeetingId != nil && len(*s.MeetingId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("MeetingId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListAttendeesInput) SetMaxResults(v int64) *ListAttendeesInput { + s.MaxResults = &v + return s +} + +// SetMeetingId sets the MeetingId field's value. +func (s *ListAttendeesInput) SetMeetingId(v string) *ListAttendeesInput { + s.MeetingId = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListAttendeesInput) SetNextToken(v string) *ListAttendeesInput { + s.NextToken = &v + return s +} + +type ListAttendeesOutput struct { + _ struct{} `type:"structure"` + + // The Amazon Chime SDK attendee information. + Attendees []*Attendee `type:"list"` + + // The token to use to retrieve the next page of results. + NextToken *string `type:"string"` +} + +// 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 ListAttendeesOutput) 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 ListAttendeesOutput) GoString() string { + return s.String() +} + +// SetAttendees sets the Attendees field's value. +func (s *ListAttendeesOutput) SetAttendees(v []*Attendee) *ListAttendeesOutput { + s.Attendees = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListAttendeesOutput) SetNextToken(v string) *ListAttendeesOutput { + s.NextToken = &v + return s +} + +// A set of endpoints used by clients to connect to the media service group +// for an Amazon Chime SDK meeting. +type MediaPlacement struct { + _ struct{} `type:"structure"` + + // The audio fallback URL. + AudioFallbackUrl *string `type:"string"` + + // The audio host URL. + AudioHostUrl *string `type:"string"` + + // The event ingestion URL. + EventIngestionUrl *string `type:"string"` + + // The screen data URL. + ScreenDataUrl *string `type:"string"` + + // The screen sharing URL. + ScreenSharingUrl *string `type:"string"` + + // The screen viewing URL. + ScreenViewingUrl *string `type:"string"` + + // The signaling URL. + SignalingUrl *string `type:"string"` + + // The turn control URL. + TurnControlUrl *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 MediaPlacement) 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 MediaPlacement) GoString() string { + return s.String() +} + +// SetAudioFallbackUrl sets the AudioFallbackUrl field's value. +func (s *MediaPlacement) SetAudioFallbackUrl(v string) *MediaPlacement { + s.AudioFallbackUrl = &v + return s +} + +// SetAudioHostUrl sets the AudioHostUrl field's value. +func (s *MediaPlacement) SetAudioHostUrl(v string) *MediaPlacement { + s.AudioHostUrl = &v + return s +} + +// SetEventIngestionUrl sets the EventIngestionUrl field's value. +func (s *MediaPlacement) SetEventIngestionUrl(v string) *MediaPlacement { + s.EventIngestionUrl = &v + return s +} + +// SetScreenDataUrl sets the ScreenDataUrl field's value. +func (s *MediaPlacement) SetScreenDataUrl(v string) *MediaPlacement { + s.ScreenDataUrl = &v + return s +} + +// SetScreenSharingUrl sets the ScreenSharingUrl field's value. +func (s *MediaPlacement) SetScreenSharingUrl(v string) *MediaPlacement { + s.ScreenSharingUrl = &v + return s +} + +// SetScreenViewingUrl sets the ScreenViewingUrl field's value. +func (s *MediaPlacement) SetScreenViewingUrl(v string) *MediaPlacement { + s.ScreenViewingUrl = &v + return s +} + +// SetSignalingUrl sets the SignalingUrl field's value. +func (s *MediaPlacement) SetSignalingUrl(v string) *MediaPlacement { + s.SignalingUrl = &v + return s +} + +// SetTurnControlUrl sets the TurnControlUrl field's value. +func (s *MediaPlacement) SetTurnControlUrl(v string) *MediaPlacement { + s.TurnControlUrl = &v + return s +} + +// A meeting created using the Amazon Chime SDK. +type Meeting struct { + _ struct{} `type:"structure"` + + // The external meeting ID. + // + // ExternalMeetingId is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by Meeting's + // String and GoString methods. + ExternalMeetingId *string `min:"2" type:"string" sensitive:"true"` + + // The media placement for the meeting. + MediaPlacement *MediaPlacement `type:"structure"` + + // The Region in which you create the meeting. Available values: af-south-1, + // ap-northeast-1, ap-northeast-2, ap-south-1, ap-southeast-1, ap-southeast-2, + // ca-central-1, eu-central-1, eu-north-1, eu-south-1, eu-west-1, eu-west-2, + // eu-west-3, sa-east-1, us-east-1, us-east-2, us-west-1, us-west-2. + MediaRegion *string `type:"string"` + + // Reserved. + // + // MeetingHostId is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by Meeting's + // String and GoString methods. + MeetingHostId *string `min:"2" type:"string" sensitive:"true"` + + // The Amazon Chime SDK meeting ID. + MeetingId *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 Meeting) 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 Meeting) GoString() string { + return s.String() +} + +// SetExternalMeetingId sets the ExternalMeetingId field's value. +func (s *Meeting) SetExternalMeetingId(v string) *Meeting { + s.ExternalMeetingId = &v + return s +} + +// SetMediaPlacement sets the MediaPlacement field's value. +func (s *Meeting) SetMediaPlacement(v *MediaPlacement) *Meeting { + s.MediaPlacement = v + return s +} + +// SetMediaRegion sets the MediaRegion field's value. +func (s *Meeting) SetMediaRegion(v string) *Meeting { + s.MediaRegion = &v + return s +} + +// SetMeetingHostId sets the MeetingHostId field's value. +func (s *Meeting) SetMeetingHostId(v string) *Meeting { + s.MeetingHostId = &v + return s +} + +// SetMeetingId sets the MeetingId field's value. +func (s *Meeting) SetMeetingId(v string) *Meeting { + s.MeetingId = &v + return s +} + +// One or more of the resources in the request does not exist in the system. +type NotFoundException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + Code_ *string `locationName:"Code" type:"string"` + + Message_ *string `locationName:"Message" type:"string"` + + // The request id associated with the call responsible for the exception. + 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 NotFoundException) 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 NotFoundException) GoString() string { + return s.String() +} + +func newErrorNotFoundException(v protocol.ResponseMetadata) error { + return &NotFoundException{ + RespMetadata: v, + } +} + +// Code returns the exception type name. +func (s *NotFoundException) Code() string { + return "NotFoundException" +} + +// Message returns the exception's message. +func (s *NotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *NotFoundException) OrigErr() error { + return nil +} + +func (s *NotFoundException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s *NotFoundException) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *NotFoundException) RequestID() string { + return s.RespMetadata.RequestID +} + +// The configuration for resource targets to receive notifications when meeting +// and attendee events occur. +type NotificationsConfiguration struct { + _ struct{} `type:"structure"` + + // The ARN of the AWS Lambda function in the notifications configuration. + // + // LambdaFunctionArn is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by NotificationsConfiguration's + // String and GoString methods. + LambdaFunctionArn *string `min:"1" type:"string" sensitive:"true"` + + // The ARN of the SNS topic. + // + // SnsTopicArn is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by NotificationsConfiguration's + // String and GoString methods. + SnsTopicArn *string `min:"1" type:"string" sensitive:"true"` + + // The ARN of the SQS queue. + // + // SqsQueueArn is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by NotificationsConfiguration's + // String and GoString methods. + SqsQueueArn *string `min:"1" type:"string" sensitive:"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 NotificationsConfiguration) 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 NotificationsConfiguration) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *NotificationsConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "NotificationsConfiguration"} + if s.LambdaFunctionArn != nil && len(*s.LambdaFunctionArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("LambdaFunctionArn", 1)) + } + if s.SnsTopicArn != nil && len(*s.SnsTopicArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("SnsTopicArn", 1)) + } + if s.SqsQueueArn != nil && len(*s.SqsQueueArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("SqsQueueArn", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetLambdaFunctionArn sets the LambdaFunctionArn field's value. +func (s *NotificationsConfiguration) SetLambdaFunctionArn(v string) *NotificationsConfiguration { + s.LambdaFunctionArn = &v + return s +} + +// SetSnsTopicArn sets the SnsTopicArn field's value. +func (s *NotificationsConfiguration) SetSnsTopicArn(v string) *NotificationsConfiguration { + s.SnsTopicArn = &v + return s +} + +// SetSqsQueueArn sets the SqsQueueArn field's value. +func (s *NotificationsConfiguration) SetSqsQueueArn(v string) *NotificationsConfiguration { + s.SqsQueueArn = &v + return s +} + +// The service is currently unavailable. +type ServiceUnavailableException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + Code_ *string `locationName:"Code" type:"string"` + + Message_ *string `locationName:"Message" type:"string"` + + // The request id associated with the call responsible for the exception. + RequestId *string `type:"string"` + + // The number of seconds the caller should wait before retrying. + RetryAfterSeconds *string `location:"header" locationName:"Retry-After" 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 ServiceUnavailableException) 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 ServiceUnavailableException) GoString() string { + return s.String() +} + +func newErrorServiceUnavailableException(v protocol.ResponseMetadata) error { + return &ServiceUnavailableException{ + RespMetadata: v, + } +} + +// Code returns the exception type name. +func (s *ServiceUnavailableException) Code() string { + return "ServiceUnavailableException" +} + +// Message returns the exception's message. +func (s *ServiceUnavailableException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *ServiceUnavailableException) OrigErr() error { + return nil +} + +func (s *ServiceUnavailableException) 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 *ServiceUnavailableException) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *ServiceUnavailableException) RequestID() string { + return s.RespMetadata.RequestID +} + +type StartMeetingTranscriptionInput struct { + _ struct{} `type:"structure"` + + // The unique ID of the meeting being transcribed. + // + // MeetingId is a required field + MeetingId *string `location:"uri" locationName:"MeetingId" type:"string" required:"true"` + + // The configuration for the current transcription operation. Must contain EngineTranscribeSettings + // or EngineTranscribeMedicalSettings. + // + // TranscriptionConfiguration is a required field + TranscriptionConfiguration *TranscriptionConfiguration `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 StartMeetingTranscriptionInput) 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 StartMeetingTranscriptionInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *StartMeetingTranscriptionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "StartMeetingTranscriptionInput"} + 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.TranscriptionConfiguration == nil { + invalidParams.Add(request.NewErrParamRequired("TranscriptionConfiguration")) + } + if s.TranscriptionConfiguration != nil { + if err := s.TranscriptionConfiguration.Validate(); err != nil { + invalidParams.AddNested("TranscriptionConfiguration", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetMeetingId sets the MeetingId field's value. +func (s *StartMeetingTranscriptionInput) SetMeetingId(v string) *StartMeetingTranscriptionInput { + s.MeetingId = &v + return s +} + +// SetTranscriptionConfiguration sets the TranscriptionConfiguration field's value. +func (s *StartMeetingTranscriptionInput) SetTranscriptionConfiguration(v *TranscriptionConfiguration) *StartMeetingTranscriptionInput { + s.TranscriptionConfiguration = v + return s +} + +type StartMeetingTranscriptionOutput 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 StartMeetingTranscriptionOutput) 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 StartMeetingTranscriptionOutput) GoString() string { + return s.String() +} + +type StopMeetingTranscriptionInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // The unique ID of the meeting for which you stop transcription. + // + // 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 StopMeetingTranscriptionInput) 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 StopMeetingTranscriptionInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *StopMeetingTranscriptionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "StopMeetingTranscriptionInput"} + if s.MeetingId == nil { + invalidParams.Add(request.NewErrParamRequired("MeetingId")) + } + if s.MeetingId != nil && len(*s.MeetingId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("MeetingId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetMeetingId sets the MeetingId field's value. +func (s *StopMeetingTranscriptionInput) SetMeetingId(v string) *StopMeetingTranscriptionInput { + s.MeetingId = &v + return s +} + +type StopMeetingTranscriptionOutput 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 StopMeetingTranscriptionOutput) 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 StopMeetingTranscriptionOutput) GoString() string { + return s.String() +} + +// The configuration for the current transcription operation. Must contain EngineTranscribeSettings +// or EngineTranscribeMedicalSettings. +type TranscriptionConfiguration struct { + _ struct{} `type:"structure"` + + // The transcription configuration settings passed to Amazon Transcribe Medical. + EngineTranscribeMedicalSettings *EngineTranscribeMedicalSettings `type:"structure"` + + // The transcription configuration settings passed to Amazon Transcribe. + EngineTranscribeSettings *EngineTranscribeSettings `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 TranscriptionConfiguration) 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 TranscriptionConfiguration) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *TranscriptionConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "TranscriptionConfiguration"} + if s.EngineTranscribeMedicalSettings != nil { + if err := s.EngineTranscribeMedicalSettings.Validate(); err != nil { + invalidParams.AddNested("EngineTranscribeMedicalSettings", err.(request.ErrInvalidParams)) + } + } + if s.EngineTranscribeSettings != nil { + if err := s.EngineTranscribeSettings.Validate(); err != nil { + invalidParams.AddNested("EngineTranscribeSettings", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetEngineTranscribeMedicalSettings sets the EngineTranscribeMedicalSettings field's value. +func (s *TranscriptionConfiguration) SetEngineTranscribeMedicalSettings(v *EngineTranscribeMedicalSettings) *TranscriptionConfiguration { + s.EngineTranscribeMedicalSettings = v + return s +} + +// SetEngineTranscribeSettings sets the EngineTranscribeSettings field's value. +func (s *TranscriptionConfiguration) SetEngineTranscribeSettings(v *EngineTranscribeSettings) *TranscriptionConfiguration { + s.EngineTranscribeSettings = v + return s +} + +// The user isn't authorized to request a resource. +type UnauthorizedException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + Code_ *string `locationName:"Code" type:"string"` + + Message_ *string `locationName:"Message" type:"string"` + + // The request id associated with the call responsible for the exception. + 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 UnauthorizedException) 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 UnauthorizedException) GoString() string { + return s.String() +} + +func newErrorUnauthorizedException(v protocol.ResponseMetadata) error { + return &UnauthorizedException{ + RespMetadata: v, + } +} + +// Code returns the exception type name. +func (s *UnauthorizedException) Code() string { + return "UnauthorizedException" +} + +// Message returns the exception's message. +func (s *UnauthorizedException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *UnauthorizedException) OrigErr() error { + return nil +} + +func (s *UnauthorizedException) 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 *UnauthorizedException) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *UnauthorizedException) RequestID() string { + return s.RespMetadata.RequestID +} + +// The request was well-formed but was unable to be followed due to semantic +// errors. +type UnprocessableEntityException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + Code_ *string `locationName:"Code" type:"string"` + + Message_ *string `locationName:"Message" type:"string"` + + // The request id associated with the call responsible for the exception. + 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 UnprocessableEntityException) 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 UnprocessableEntityException) GoString() string { + return s.String() +} + +func newErrorUnprocessableEntityException(v protocol.ResponseMetadata) error { + return &UnprocessableEntityException{ + RespMetadata: v, + } +} + +// Code returns the exception type name. +func (s *UnprocessableEntityException) Code() string { + return "UnprocessableEntityException" +} + +// Message returns the exception's message. +func (s *UnprocessableEntityException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *UnprocessableEntityException) OrigErr() error { + return nil +} + +func (s *UnprocessableEntityException) 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 *UnprocessableEntityException) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *UnprocessableEntityException) RequestID() string { + return s.RespMetadata.RequestID +} + +const ( + // TranscribeLanguageCodeEnUs is a TranscribeLanguageCode enum value + TranscribeLanguageCodeEnUs = "en-US" + + // TranscribeLanguageCodeEnGb is a TranscribeLanguageCode enum value + TranscribeLanguageCodeEnGb = "en-GB" + + // TranscribeLanguageCodeEsUs is a TranscribeLanguageCode enum value + TranscribeLanguageCodeEsUs = "es-US" + + // TranscribeLanguageCodeFrCa is a TranscribeLanguageCode enum value + TranscribeLanguageCodeFrCa = "fr-CA" + + // TranscribeLanguageCodeFrFr is a TranscribeLanguageCode enum value + TranscribeLanguageCodeFrFr = "fr-FR" + + // TranscribeLanguageCodeEnAu is a TranscribeLanguageCode enum value + TranscribeLanguageCodeEnAu = "en-AU" + + // TranscribeLanguageCodeItIt is a TranscribeLanguageCode enum value + TranscribeLanguageCodeItIt = "it-IT" + + // TranscribeLanguageCodeDeDe is a TranscribeLanguageCode enum value + TranscribeLanguageCodeDeDe = "de-DE" + + // TranscribeLanguageCodePtBr is a TranscribeLanguageCode enum value + TranscribeLanguageCodePtBr = "pt-BR" + + // TranscribeLanguageCodeJaJp is a TranscribeLanguageCode enum value + TranscribeLanguageCodeJaJp = "ja-JP" + + // TranscribeLanguageCodeKoKr is a TranscribeLanguageCode enum value + TranscribeLanguageCodeKoKr = "ko-KR" + + // TranscribeLanguageCodeZhCn is a TranscribeLanguageCode enum value + TranscribeLanguageCodeZhCn = "zh-CN" +) + +// TranscribeLanguageCode_Values returns all elements of the TranscribeLanguageCode enum +func TranscribeLanguageCode_Values() []string { + return []string{ + TranscribeLanguageCodeEnUs, + TranscribeLanguageCodeEnGb, + TranscribeLanguageCodeEsUs, + TranscribeLanguageCodeFrCa, + TranscribeLanguageCodeFrFr, + TranscribeLanguageCodeEnAu, + TranscribeLanguageCodeItIt, + TranscribeLanguageCodeDeDe, + TranscribeLanguageCodePtBr, + TranscribeLanguageCodeJaJp, + TranscribeLanguageCodeKoKr, + TranscribeLanguageCodeZhCn, + } +} + +const ( + // TranscribeMedicalLanguageCodeEnUs is a TranscribeMedicalLanguageCode enum value + TranscribeMedicalLanguageCodeEnUs = "en-US" +) + +// TranscribeMedicalLanguageCode_Values returns all elements of the TranscribeMedicalLanguageCode enum +func TranscribeMedicalLanguageCode_Values() []string { + return []string{ + TranscribeMedicalLanguageCodeEnUs, + } +} + +const ( + // TranscribeMedicalRegionUsEast1 is a TranscribeMedicalRegion enum value + TranscribeMedicalRegionUsEast1 = "us-east-1" + + // TranscribeMedicalRegionUsEast2 is a TranscribeMedicalRegion enum value + TranscribeMedicalRegionUsEast2 = "us-east-2" + + // TranscribeMedicalRegionUsWest2 is a TranscribeMedicalRegion enum value + TranscribeMedicalRegionUsWest2 = "us-west-2" + + // TranscribeMedicalRegionApSoutheast2 is a TranscribeMedicalRegion enum value + TranscribeMedicalRegionApSoutheast2 = "ap-southeast-2" + + // TranscribeMedicalRegionCaCentral1 is a TranscribeMedicalRegion enum value + TranscribeMedicalRegionCaCentral1 = "ca-central-1" + + // TranscribeMedicalRegionEuWest1 is a TranscribeMedicalRegion enum value + TranscribeMedicalRegionEuWest1 = "eu-west-1" + + // TranscribeMedicalRegionAuto is a TranscribeMedicalRegion enum value + TranscribeMedicalRegionAuto = "auto" +) + +// TranscribeMedicalRegion_Values returns all elements of the TranscribeMedicalRegion enum +func TranscribeMedicalRegion_Values() []string { + return []string{ + TranscribeMedicalRegionUsEast1, + TranscribeMedicalRegionUsEast2, + TranscribeMedicalRegionUsWest2, + TranscribeMedicalRegionApSoutheast2, + TranscribeMedicalRegionCaCentral1, + TranscribeMedicalRegionEuWest1, + TranscribeMedicalRegionAuto, + } +} + +const ( + // TranscribeMedicalSpecialtyPrimarycare is a TranscribeMedicalSpecialty enum value + TranscribeMedicalSpecialtyPrimarycare = "PRIMARYCARE" + + // TranscribeMedicalSpecialtyCardiology is a TranscribeMedicalSpecialty enum value + TranscribeMedicalSpecialtyCardiology = "CARDIOLOGY" + + // TranscribeMedicalSpecialtyNeurology is a TranscribeMedicalSpecialty enum value + TranscribeMedicalSpecialtyNeurology = "NEUROLOGY" + + // TranscribeMedicalSpecialtyOncology is a TranscribeMedicalSpecialty enum value + TranscribeMedicalSpecialtyOncology = "ONCOLOGY" + + // TranscribeMedicalSpecialtyRadiology is a TranscribeMedicalSpecialty enum value + TranscribeMedicalSpecialtyRadiology = "RADIOLOGY" + + // TranscribeMedicalSpecialtyUrology is a TranscribeMedicalSpecialty enum value + TranscribeMedicalSpecialtyUrology = "UROLOGY" +) + +// TranscribeMedicalSpecialty_Values returns all elements of the TranscribeMedicalSpecialty enum +func TranscribeMedicalSpecialty_Values() []string { + return []string{ + TranscribeMedicalSpecialtyPrimarycare, + TranscribeMedicalSpecialtyCardiology, + TranscribeMedicalSpecialtyNeurology, + TranscribeMedicalSpecialtyOncology, + TranscribeMedicalSpecialtyRadiology, + TranscribeMedicalSpecialtyUrology, + } +} + +const ( + // TranscribeMedicalTypeConversation is a TranscribeMedicalType enum value + TranscribeMedicalTypeConversation = "CONVERSATION" + + // TranscribeMedicalTypeDictation is a TranscribeMedicalType enum value + TranscribeMedicalTypeDictation = "DICTATION" +) + +// TranscribeMedicalType_Values returns all elements of the TranscribeMedicalType enum +func TranscribeMedicalType_Values() []string { + return []string{ + TranscribeMedicalTypeConversation, + TranscribeMedicalTypeDictation, + } +} + +const ( + // TranscribeRegionUsEast2 is a TranscribeRegion enum value + TranscribeRegionUsEast2 = "us-east-2" + + // TranscribeRegionUsEast1 is a TranscribeRegion enum value + TranscribeRegionUsEast1 = "us-east-1" + + // TranscribeRegionUsWest2 is a TranscribeRegion enum value + TranscribeRegionUsWest2 = "us-west-2" + + // TranscribeRegionApNortheast2 is a TranscribeRegion enum value + TranscribeRegionApNortheast2 = "ap-northeast-2" + + // TranscribeRegionApSoutheast2 is a TranscribeRegion enum value + TranscribeRegionApSoutheast2 = "ap-southeast-2" + + // TranscribeRegionApNortheast1 is a TranscribeRegion enum value + TranscribeRegionApNortheast1 = "ap-northeast-1" + + // TranscribeRegionCaCentral1 is a TranscribeRegion enum value + TranscribeRegionCaCentral1 = "ca-central-1" + + // TranscribeRegionEuCentral1 is a TranscribeRegion enum value + TranscribeRegionEuCentral1 = "eu-central-1" + + // TranscribeRegionEuWest1 is a TranscribeRegion enum value + TranscribeRegionEuWest1 = "eu-west-1" + + // TranscribeRegionEuWest2 is a TranscribeRegion enum value + TranscribeRegionEuWest2 = "eu-west-2" + + // TranscribeRegionSaEast1 is a TranscribeRegion enum value + TranscribeRegionSaEast1 = "sa-east-1" + + // TranscribeRegionAuto is a TranscribeRegion enum value + TranscribeRegionAuto = "auto" +) + +// TranscribeRegion_Values returns all elements of the TranscribeRegion enum +func TranscribeRegion_Values() []string { + return []string{ + TranscribeRegionUsEast2, + TranscribeRegionUsEast1, + TranscribeRegionUsWest2, + TranscribeRegionApNortheast2, + TranscribeRegionApSoutheast2, + TranscribeRegionApNortheast1, + TranscribeRegionCaCentral1, + TranscribeRegionEuCentral1, + TranscribeRegionEuWest1, + TranscribeRegionEuWest2, + TranscribeRegionSaEast1, + TranscribeRegionAuto, + } +} + +const ( + // TranscribeVocabularyFilterMethodRemove is a TranscribeVocabularyFilterMethod enum value + TranscribeVocabularyFilterMethodRemove = "remove" + + // TranscribeVocabularyFilterMethodMask is a TranscribeVocabularyFilterMethod enum value + TranscribeVocabularyFilterMethodMask = "mask" + + // TranscribeVocabularyFilterMethodTag is a TranscribeVocabularyFilterMethod enum value + TranscribeVocabularyFilterMethodTag = "tag" +) + +// TranscribeVocabularyFilterMethod_Values returns all elements of the TranscribeVocabularyFilterMethod enum +func TranscribeVocabularyFilterMethod_Values() []string { + return []string{ + TranscribeVocabularyFilterMethodRemove, + TranscribeVocabularyFilterMethodMask, + TranscribeVocabularyFilterMethodTag, + } +} diff --git a/service/chimesdkmeetings/chimesdkmeetingsiface/interface.go b/service/chimesdkmeetings/chimesdkmeetingsiface/interface.go new file mode 100644 index 00000000000..b7b16bf5bcd --- /dev/null +++ b/service/chimesdkmeetings/chimesdkmeetingsiface/interface.go @@ -0,0 +1,111 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +// Package chimesdkmeetingsiface provides an interface to enable mocking the Amazon Chime SDK Meetings service client +// for testing your code. +// +// It is important to note that this interface will have breaking changes +// when the service model is updated and adds new API operations, paginators, +// and waiters. +package chimesdkmeetingsiface + +import ( + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/service/chimesdkmeetings" +) + +// ChimeSDKMeetingsAPI provides an interface to enable mocking the +// chimesdkmeetings.ChimeSDKMeetings service client's API operation, +// paginators, and waiters. This make unit testing your code that calls out +// to the SDK's service client's calls easier. +// +// The best way to use this interface is so the SDK's service client's calls +// can be stubbed out for unit testing your code with the SDK without needing +// to inject custom request handlers into the SDK's request pipeline. +// +// // myFunc uses an SDK service client to make a request to +// // Amazon Chime SDK Meetings. +// func myFunc(svc chimesdkmeetingsiface.ChimeSDKMeetingsAPI) bool { +// // Make svc.BatchCreateAttendee request +// } +// +// func main() { +// sess := session.New() +// svc := chimesdkmeetings.New(sess) +// +// myFunc(svc) +// } +// +// In your _test.go file: +// +// // Define a mock struct to be used in your unit tests of myFunc. +// type mockChimeSDKMeetingsClient struct { +// chimesdkmeetingsiface.ChimeSDKMeetingsAPI +// } +// func (m *mockChimeSDKMeetingsClient) BatchCreateAttendee(input *chimesdkmeetings.BatchCreateAttendeeInput) (*chimesdkmeetings.BatchCreateAttendeeOutput, error) { +// // mock response/functionality +// } +// +// func TestMyFunc(t *testing.T) { +// // Setup Test +// mockSvc := &mockChimeSDKMeetingsClient{} +// +// myfunc(mockSvc) +// +// // Verify myFunc's functionality +// } +// +// It is important to note that this interface will have breaking changes +// when the service model is updated and adds new API operations, paginators, +// and waiters. Its suggested to use the pattern above for testing, or using +// tooling to generate mocks to satisfy the interfaces. +type ChimeSDKMeetingsAPI interface { + BatchCreateAttendee(*chimesdkmeetings.BatchCreateAttendeeInput) (*chimesdkmeetings.BatchCreateAttendeeOutput, error) + BatchCreateAttendeeWithContext(aws.Context, *chimesdkmeetings.BatchCreateAttendeeInput, ...request.Option) (*chimesdkmeetings.BatchCreateAttendeeOutput, error) + BatchCreateAttendeeRequest(*chimesdkmeetings.BatchCreateAttendeeInput) (*request.Request, *chimesdkmeetings.BatchCreateAttendeeOutput) + + CreateAttendee(*chimesdkmeetings.CreateAttendeeInput) (*chimesdkmeetings.CreateAttendeeOutput, error) + CreateAttendeeWithContext(aws.Context, *chimesdkmeetings.CreateAttendeeInput, ...request.Option) (*chimesdkmeetings.CreateAttendeeOutput, error) + CreateAttendeeRequest(*chimesdkmeetings.CreateAttendeeInput) (*request.Request, *chimesdkmeetings.CreateAttendeeOutput) + + CreateMeeting(*chimesdkmeetings.CreateMeetingInput) (*chimesdkmeetings.CreateMeetingOutput, error) + CreateMeetingWithContext(aws.Context, *chimesdkmeetings.CreateMeetingInput, ...request.Option) (*chimesdkmeetings.CreateMeetingOutput, error) + CreateMeetingRequest(*chimesdkmeetings.CreateMeetingInput) (*request.Request, *chimesdkmeetings.CreateMeetingOutput) + + CreateMeetingWithAttendees(*chimesdkmeetings.CreateMeetingWithAttendeesInput) (*chimesdkmeetings.CreateMeetingWithAttendeesOutput, error) + CreateMeetingWithAttendeesWithContext(aws.Context, *chimesdkmeetings.CreateMeetingWithAttendeesInput, ...request.Option) (*chimesdkmeetings.CreateMeetingWithAttendeesOutput, error) + CreateMeetingWithAttendeesRequest(*chimesdkmeetings.CreateMeetingWithAttendeesInput) (*request.Request, *chimesdkmeetings.CreateMeetingWithAttendeesOutput) + + DeleteAttendee(*chimesdkmeetings.DeleteAttendeeInput) (*chimesdkmeetings.DeleteAttendeeOutput, error) + DeleteAttendeeWithContext(aws.Context, *chimesdkmeetings.DeleteAttendeeInput, ...request.Option) (*chimesdkmeetings.DeleteAttendeeOutput, error) + DeleteAttendeeRequest(*chimesdkmeetings.DeleteAttendeeInput) (*request.Request, *chimesdkmeetings.DeleteAttendeeOutput) + + DeleteMeeting(*chimesdkmeetings.DeleteMeetingInput) (*chimesdkmeetings.DeleteMeetingOutput, error) + DeleteMeetingWithContext(aws.Context, *chimesdkmeetings.DeleteMeetingInput, ...request.Option) (*chimesdkmeetings.DeleteMeetingOutput, error) + DeleteMeetingRequest(*chimesdkmeetings.DeleteMeetingInput) (*request.Request, *chimesdkmeetings.DeleteMeetingOutput) + + GetAttendee(*chimesdkmeetings.GetAttendeeInput) (*chimesdkmeetings.GetAttendeeOutput, error) + GetAttendeeWithContext(aws.Context, *chimesdkmeetings.GetAttendeeInput, ...request.Option) (*chimesdkmeetings.GetAttendeeOutput, error) + GetAttendeeRequest(*chimesdkmeetings.GetAttendeeInput) (*request.Request, *chimesdkmeetings.GetAttendeeOutput) + + GetMeeting(*chimesdkmeetings.GetMeetingInput) (*chimesdkmeetings.GetMeetingOutput, error) + GetMeetingWithContext(aws.Context, *chimesdkmeetings.GetMeetingInput, ...request.Option) (*chimesdkmeetings.GetMeetingOutput, error) + GetMeetingRequest(*chimesdkmeetings.GetMeetingInput) (*request.Request, *chimesdkmeetings.GetMeetingOutput) + + ListAttendees(*chimesdkmeetings.ListAttendeesInput) (*chimesdkmeetings.ListAttendeesOutput, error) + ListAttendeesWithContext(aws.Context, *chimesdkmeetings.ListAttendeesInput, ...request.Option) (*chimesdkmeetings.ListAttendeesOutput, error) + ListAttendeesRequest(*chimesdkmeetings.ListAttendeesInput) (*request.Request, *chimesdkmeetings.ListAttendeesOutput) + + ListAttendeesPages(*chimesdkmeetings.ListAttendeesInput, func(*chimesdkmeetings.ListAttendeesOutput, bool) bool) error + ListAttendeesPagesWithContext(aws.Context, *chimesdkmeetings.ListAttendeesInput, func(*chimesdkmeetings.ListAttendeesOutput, bool) bool, ...request.Option) error + + StartMeetingTranscription(*chimesdkmeetings.StartMeetingTranscriptionInput) (*chimesdkmeetings.StartMeetingTranscriptionOutput, error) + StartMeetingTranscriptionWithContext(aws.Context, *chimesdkmeetings.StartMeetingTranscriptionInput, ...request.Option) (*chimesdkmeetings.StartMeetingTranscriptionOutput, error) + StartMeetingTranscriptionRequest(*chimesdkmeetings.StartMeetingTranscriptionInput) (*request.Request, *chimesdkmeetings.StartMeetingTranscriptionOutput) + + StopMeetingTranscription(*chimesdkmeetings.StopMeetingTranscriptionInput) (*chimesdkmeetings.StopMeetingTranscriptionOutput, error) + StopMeetingTranscriptionWithContext(aws.Context, *chimesdkmeetings.StopMeetingTranscriptionInput, ...request.Option) (*chimesdkmeetings.StopMeetingTranscriptionOutput, error) + StopMeetingTranscriptionRequest(*chimesdkmeetings.StopMeetingTranscriptionInput) (*request.Request, *chimesdkmeetings.StopMeetingTranscriptionOutput) +} + +var _ ChimeSDKMeetingsAPI = (*chimesdkmeetings.ChimeSDKMeetings)(nil) diff --git a/service/chimesdkmeetings/doc.go b/service/chimesdkmeetings/doc.go new file mode 100644 index 00000000000..2e0fbdd57ca --- /dev/null +++ b/service/chimesdkmeetings/doc.go @@ -0,0 +1,31 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +// Package chimesdkmeetings provides the client and types for making API +// requests to Amazon Chime SDK Meetings. +// +// 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 (http://amazonaws.com/chime/latest/APIReference/API_Operations_Amazon_Chime_SDK_meetings). +// +// See https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-meetings-2021-07-15 for more information on this service. +// +// See chimesdkmeetings package documentation for more information. +// https://docs.aws.amazon.com/sdk-for-go/api/service/chimesdkmeetings/ +// +// Using the Client +// +// To contact Amazon Chime SDK Meetings with the SDK use the New function to create +// a new service client. With that client you can make API requests to the service. +// These clients are safe to use concurrently. +// +// See the SDK's documentation for more information on how to use the SDK. +// https://docs.aws.amazon.com/sdk-for-go/api/ +// +// See aws.Config documentation for more information on configuring SDK clients. +// https://docs.aws.amazon.com/sdk-for-go/api/aws/#Config +// +// See the Amazon Chime SDK Meetings client ChimeSDKMeetings for more +// information on creating client for this service. +// https://docs.aws.amazon.com/sdk-for-go/api/service/chimesdkmeetings/#New +package chimesdkmeetings diff --git a/service/chimesdkmeetings/errors.go b/service/chimesdkmeetings/errors.go new file mode 100644 index 00000000000..b4c449b09bf --- /dev/null +++ b/service/chimesdkmeetings/errors.go @@ -0,0 +1,63 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +package chimesdkmeetings + +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + +const ( + + // ErrCodeBadRequestException for service response error code + // "BadRequestException". + // + // The input parameters don't match the service's restrictions. + ErrCodeBadRequestException = "BadRequestException" + + // ErrCodeForbiddenException for service response error code + // "ForbiddenException". + // + // The client is permanently forbidden from making the request. + ErrCodeForbiddenException = "ForbiddenException" + + // ErrCodeLimitExceededException for service response error code + // "LimitExceededException". + // + // The request exceeds the resource limit. + ErrCodeLimitExceededException = "LimitExceededException" + + // ErrCodeNotFoundException for service response error code + // "NotFoundException". + // + // One or more of the resources in the request does not exist in the system. + ErrCodeNotFoundException = "NotFoundException" + + // ErrCodeServiceUnavailableException for service response error code + // "ServiceUnavailableException". + // + // The service is currently unavailable. + ErrCodeServiceUnavailableException = "ServiceUnavailableException" + + // ErrCodeUnauthorizedException for service response error code + // "UnauthorizedException". + // + // The user isn't authorized to request a resource. + ErrCodeUnauthorizedException = "UnauthorizedException" + + // ErrCodeUnprocessableEntityException for service response error code + // "UnprocessableEntityException". + // + // The request was well-formed but was unable to be followed due to semantic + // errors. + ErrCodeUnprocessableEntityException = "UnprocessableEntityException" +) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "BadRequestException": newErrorBadRequestException, + "ForbiddenException": newErrorForbiddenException, + "LimitExceededException": newErrorLimitExceededException, + "NotFoundException": newErrorNotFoundException, + "ServiceUnavailableException": newErrorServiceUnavailableException, + "UnauthorizedException": newErrorUnauthorizedException, + "UnprocessableEntityException": newErrorUnprocessableEntityException, +} diff --git a/service/chimesdkmeetings/service.go b/service/chimesdkmeetings/service.go new file mode 100644 index 00000000000..195eea1406e --- /dev/null +++ b/service/chimesdkmeetings/service.go @@ -0,0 +1,104 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +package chimesdkmeetings + +import ( + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/client" + "github.com/aws/aws-sdk-go/aws/client/metadata" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" + "github.com/aws/aws-sdk-go/private/protocol/restjson" +) + +// ChimeSDKMeetings provides the API operation methods for making requests to +// Amazon Chime SDK Meetings. See this package's package overview docs +// for details on the service. +// +// ChimeSDKMeetings methods are safe to use concurrently. It is not safe to +// modify mutate any of the struct's properties though. +type ChimeSDKMeetings struct { + *client.Client +} + +// Used for custom client initialization logic +var initClient func(*client.Client) + +// Used for custom request initialization logic +var initRequest func(*request.Request) + +// Service information constants +const ( + ServiceName = "Chime SDK Meetings" // Name of service. + EndpointsID = "meetings-chime" // ID to lookup a service endpoint with. + ServiceID = "Chime SDK Meetings" // ServiceID is a unique identifier of a specific service. +) + +// New creates a new instance of the ChimeSDKMeetings client with a session. +// If additional configuration is needed for the client instance use the optional +// aws.Config parameter to add your extra config. +// +// Example: +// mySession := session.Must(session.NewSession()) +// +// // Create a ChimeSDKMeetings client from just a session. +// svc := chimesdkmeetings.New(mySession) +// +// // Create a ChimeSDKMeetings client with additional configuration +// svc := chimesdkmeetings.New(mySession, aws.NewConfig().WithRegion("us-west-2")) +func New(p client.ConfigProvider, cfgs ...*aws.Config) *ChimeSDKMeetings { + c := p.ClientConfig(EndpointsID, cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + c.SigningName = "chime" + } + return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName) +} + +// newClient creates, initializes and returns a new service client instance. +func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName string) *ChimeSDKMeetings { + svc := &ChimeSDKMeetings{ + Client: client.New( + cfg, + metadata.ClientInfo{ + ServiceName: ServiceName, + ServiceID: ServiceID, + SigningName: signingName, + SigningRegion: signingRegion, + PartitionID: partitionID, + Endpoint: endpoint, + APIVersion: "2021-07-15", + }, + handlers, + ), + } + + // Handlers + svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler) + svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) + svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) + svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(restjson.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) + + // Run custom client initialization if present + if initClient != nil { + initClient(svc.Client) + } + + return svc +} + +// newRequest creates a new request for a ChimeSDKMeetings operation and runs any +// custom request initialization. +func (c *ChimeSDKMeetings) newRequest(op *request.Operation, params, data interface{}) *request.Request { + req := c.NewRequest(op, params, data) + + // Run custom request initialization if present + if initRequest != nil { + initRequest(req) + } + + return req +} diff --git a/service/connect/api.go b/service/connect/api.go index edd0039903c..1cd89e8aa16 100644 --- a/service/connect/api.go +++ b/service/connect/api.go @@ -1252,7 +1252,8 @@ func (c *Connect) CreateIntegrationAssociationRequest(input *CreateIntegrationAs // CreateIntegrationAssociation API operation for Amazon Connect Service. // -// Creates an AWS resource association with an Amazon Connect instance. +// Creates an Amazon Web Services resource association with an Amazon Connect +// instance. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -1592,6 +1593,105 @@ func (c *Connect) CreateRoutingProfileWithContext(ctx aws.Context, input *Create return out, req.Send() } +const opCreateSecurityProfile = "CreateSecurityProfile" + +// CreateSecurityProfileRequest generates a "aws/request.Request" representing the +// client's request for the CreateSecurityProfile operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See CreateSecurityProfile for more information on using the CreateSecurityProfile +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the CreateSecurityProfileRequest method. +// req, resp := client.CreateSecurityProfileRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/CreateSecurityProfile +func (c *Connect) CreateSecurityProfileRequest(input *CreateSecurityProfileInput) (req *request.Request, output *CreateSecurityProfileOutput) { + op := &request.Operation{ + Name: opCreateSecurityProfile, + HTTPMethod: "PUT", + HTTPPath: "/security-profiles/{InstanceId}", + } + + if input == nil { + input = &CreateSecurityProfileInput{} + } + + output = &CreateSecurityProfileOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateSecurityProfile API operation for Amazon Connect Service. +// +// This API is in preview release for Amazon Connect and is subject to change. +// +// Creates a security profile. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Connect Service's +// API operation CreateSecurityProfile for usage and error information. +// +// Returned Error Types: +// * InvalidRequestException +// The request is not valid. +// +// * InvalidParameterException +// One or more of the specified parameters are not valid. +// +// * LimitExceededException +// The allowed limit for the resource has been exceeded. +// +// * DuplicateResourceException +// A resource with the specified name already exists. +// +// * ResourceNotFoundException +// The specified resource was not found. +// +// * ThrottlingException +// The throttling limit has been exceeded. +// +// * InternalServiceException +// Request processing failed because of an error or failure with the service. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/CreateSecurityProfile +func (c *Connect) CreateSecurityProfile(input *CreateSecurityProfileInput) (*CreateSecurityProfileOutput, error) { + req, out := c.CreateSecurityProfileRequest(input) + return out, req.Send() +} + +// CreateSecurityProfileWithContext is the same as CreateSecurityProfile with the addition of +// the ability to pass a context and additional request options. +// +// See CreateSecurityProfile for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Connect) CreateSecurityProfileWithContext(ctx aws.Context, input *CreateSecurityProfileInput, opts ...request.Option) (*CreateSecurityProfileOutput, error) { + req, out := c.CreateSecurityProfileRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opCreateUseCase = "CreateUseCase" // CreateUseCaseRequest generates a "aws/request.Request" representing the @@ -2112,8 +2212,8 @@ func (c *Connect) DeleteIntegrationAssociationRequest(input *DeleteIntegrationAs // DeleteIntegrationAssociation API operation for Amazon Connect Service. // -// Deletes an AWS resource association from an Amazon Connect instance. The -// association must not have any use cases associated with it. +// Deletes an Amazon Web Services resource association from an Amazon Connect +// instance. The association must not have any use cases associated with it. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -2249,6 +2349,106 @@ func (c *Connect) DeleteQuickConnectWithContext(ctx aws.Context, input *DeleteQu return out, req.Send() } +const opDeleteSecurityProfile = "DeleteSecurityProfile" + +// DeleteSecurityProfileRequest generates a "aws/request.Request" representing the +// client's request for the DeleteSecurityProfile operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DeleteSecurityProfile for more information on using the DeleteSecurityProfile +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DeleteSecurityProfileRequest method. +// req, resp := client.DeleteSecurityProfileRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/DeleteSecurityProfile +func (c *Connect) DeleteSecurityProfileRequest(input *DeleteSecurityProfileInput) (req *request.Request, output *DeleteSecurityProfileOutput) { + op := &request.Operation{ + Name: opDeleteSecurityProfile, + HTTPMethod: "DELETE", + HTTPPath: "/security-profiles/{InstanceId}/{SecurityProfileId}", + } + + if input == nil { + input = &DeleteSecurityProfileInput{} + } + + output = &DeleteSecurityProfileOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// DeleteSecurityProfile API operation for Amazon Connect Service. +// +// This API is in preview release for Amazon Connect and is subject to change. +// +// Deletes a security profile. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Connect Service's +// API operation DeleteSecurityProfile for usage and error information. +// +// Returned Error Types: +// * InvalidRequestException +// The request is not valid. +// +// * InvalidParameterException +// One or more of the specified parameters are not valid. +// +// * ResourceNotFoundException +// The specified resource was not found. +// +// * ThrottlingException +// The throttling limit has been exceeded. +// +// * InternalServiceException +// Request processing failed because of an error or failure with the service. +// +// * AccessDeniedException +// You do not have sufficient access to perform this action. +// +// * ResourceInUseException +// That resource is already in use. Please try another. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/DeleteSecurityProfile +func (c *Connect) DeleteSecurityProfile(input *DeleteSecurityProfileInput) (*DeleteSecurityProfileOutput, error) { + req, out := c.DeleteSecurityProfileRequest(input) + return out, req.Send() +} + +// DeleteSecurityProfileWithContext is the same as DeleteSecurityProfile with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteSecurityProfile for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Connect) DeleteSecurityProfileWithContext(ctx aws.Context, input *DeleteSecurityProfileInput, opts ...request.Option) (*DeleteSecurityProfileOutput, error) { + req, out := c.DeleteSecurityProfileRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opDeleteUseCase = "DeleteUseCase" // DeleteUseCaseRequest generates a "aws/request.Request" representing the @@ -3365,6 +3565,99 @@ func (c *Connect) DescribeRoutingProfileWithContext(ctx aws.Context, input *Desc return out, req.Send() } +const opDescribeSecurityProfile = "DescribeSecurityProfile" + +// DescribeSecurityProfileRequest generates a "aws/request.Request" representing the +// client's request for the DescribeSecurityProfile operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DescribeSecurityProfile for more information on using the DescribeSecurityProfile +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DescribeSecurityProfileRequest method. +// req, resp := client.DescribeSecurityProfileRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/DescribeSecurityProfile +func (c *Connect) DescribeSecurityProfileRequest(input *DescribeSecurityProfileInput) (req *request.Request, output *DescribeSecurityProfileOutput) { + op := &request.Operation{ + Name: opDescribeSecurityProfile, + HTTPMethod: "GET", + HTTPPath: "/security-profiles/{InstanceId}/{SecurityProfileId}", + } + + if input == nil { + input = &DescribeSecurityProfileInput{} + } + + output = &DescribeSecurityProfileOutput{} + req = c.newRequest(op, input, output) + return +} + +// DescribeSecurityProfile API operation for Amazon Connect Service. +// +// This API is in preview release for Amazon Connect and is subject to change. +// +// Gets basic information about the security profle. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Connect Service's +// API operation DescribeSecurityProfile for usage and error information. +// +// Returned Error Types: +// * InvalidRequestException +// The request is not valid. +// +// * InvalidParameterException +// One or more of the specified parameters are not valid. +// +// * ResourceNotFoundException +// The specified resource was not found. +// +// * ThrottlingException +// The throttling limit has been exceeded. +// +// * InternalServiceException +// Request processing failed because of an error or failure with the service. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/DescribeSecurityProfile +func (c *Connect) DescribeSecurityProfile(input *DescribeSecurityProfileInput) (*DescribeSecurityProfileOutput, error) { + req, out := c.DescribeSecurityProfileRequest(input) + return out, req.Send() +} + +// DescribeSecurityProfileWithContext is the same as DescribeSecurityProfile with the addition of +// the ability to pass a context and additional request options. +// +// See DescribeSecurityProfile for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Connect) DescribeSecurityProfileWithContext(ctx aws.Context, input *DescribeSecurityProfileInput, opts ...request.Option) (*DescribeSecurityProfileOutput, error) { + req, out := c.DescribeSecurityProfileRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opDescribeUser = "DescribeUser" // DescribeUserRequest generates a "aws/request.Request" representing the @@ -6140,8 +6433,8 @@ func (c *Connect) ListIntegrationAssociationsRequest(input *ListIntegrationAssoc // ListIntegrationAssociations API operation for Amazon Connect Service. // -// Provides summary information about the AWS resource associations for the -// specified Amazon Connect instance. +// Provides summary information about the Amazon Web Services resource associations +// for the specified Amazon Connect instance. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -7756,37 +8049,37 @@ func (c *Connect) ListSecurityKeysPagesWithContext(ctx aws.Context, input *ListS return p.Err() } -const opListSecurityProfiles = "ListSecurityProfiles" +const opListSecurityProfilePermissions = "ListSecurityProfilePermissions" -// ListSecurityProfilesRequest generates a "aws/request.Request" representing the -// client's request for the ListSecurityProfiles operation. The "output" return +// ListSecurityProfilePermissionsRequest generates a "aws/request.Request" representing the +// client's request for the ListSecurityProfilePermissions operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See ListSecurityProfiles for more information on using the ListSecurityProfiles +// See ListSecurityProfilePermissions for more information on using the ListSecurityProfilePermissions // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the ListSecurityProfilesRequest method. -// req, resp := client.ListSecurityProfilesRequest(params) +// // Example sending a request using the ListSecurityProfilePermissionsRequest method. +// req, resp := client.ListSecurityProfilePermissionsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/ListSecurityProfiles -func (c *Connect) ListSecurityProfilesRequest(input *ListSecurityProfilesInput) (req *request.Request, output *ListSecurityProfilesOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/ListSecurityProfilePermissions +func (c *Connect) ListSecurityProfilePermissionsRequest(input *ListSecurityProfilePermissionsInput) (req *request.Request, output *ListSecurityProfilePermissionsOutput) { op := &request.Operation{ - Name: opListSecurityProfiles, + Name: opListSecurityProfilePermissions, HTTPMethod: "GET", - HTTPPath: "/security-profiles-summary/{InstanceId}", + HTTPPath: "/security-profiles-permissions/{InstanceId}/{SecurityProfileId}", Paginator: &request.Paginator{ InputTokens: []string{"NextToken"}, OutputTokens: []string{"NextToken"}, @@ -7796,28 +8089,26 @@ func (c *Connect) ListSecurityProfilesRequest(input *ListSecurityProfilesInput) } if input == nil { - input = &ListSecurityProfilesInput{} + input = &ListSecurityProfilePermissionsInput{} } - output = &ListSecurityProfilesOutput{} + output = &ListSecurityProfilePermissionsOutput{} req = c.newRequest(op, input, output) return } -// ListSecurityProfiles API operation for Amazon Connect Service. +// ListSecurityProfilePermissions API operation for Amazon Connect Service. // -// Provides summary information about the security profiles for the specified -// Amazon Connect instance. +// This API is in preview release for Amazon Connect and is subject to change. // -// For more information about security profiles, see Security Profiles (https://docs.aws.amazon.com/connect/latest/adminguide/connect-security-profiles.html) -// in the Amazon Connect Administrator Guide. +// Lists the permissions granted to a security profile. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for Amazon Connect Service's -// API operation ListSecurityProfiles for usage and error information. +// API operation ListSecurityProfilePermissions for usage and error information. // // Returned Error Types: // * InvalidRequestException @@ -7835,40 +8126,195 @@ func (c *Connect) ListSecurityProfilesRequest(input *ListSecurityProfilesInput) // * InternalServiceException // Request processing failed because of an error or failure with the service. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/ListSecurityProfiles -func (c *Connect) ListSecurityProfiles(input *ListSecurityProfilesInput) (*ListSecurityProfilesOutput, error) { - req, out := c.ListSecurityProfilesRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/ListSecurityProfilePermissions +func (c *Connect) ListSecurityProfilePermissions(input *ListSecurityProfilePermissionsInput) (*ListSecurityProfilePermissionsOutput, error) { + req, out := c.ListSecurityProfilePermissionsRequest(input) return out, req.Send() } -// ListSecurityProfilesWithContext is the same as ListSecurityProfiles with the addition of +// ListSecurityProfilePermissionsWithContext is the same as ListSecurityProfilePermissions with the addition of // the ability to pass a context and additional request options. // -// See ListSecurityProfiles for details on how to use this API operation. +// See ListSecurityProfilePermissions for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *Connect) ListSecurityProfilesWithContext(ctx aws.Context, input *ListSecurityProfilesInput, opts ...request.Option) (*ListSecurityProfilesOutput, error) { - req, out := c.ListSecurityProfilesRequest(input) +func (c *Connect) ListSecurityProfilePermissionsWithContext(ctx aws.Context, input *ListSecurityProfilePermissionsInput, opts ...request.Option) (*ListSecurityProfilePermissionsOutput, error) { + req, out := c.ListSecurityProfilePermissionsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// ListSecurityProfilesPages iterates over the pages of a ListSecurityProfiles operation, +// ListSecurityProfilePermissionsPages iterates over the pages of a ListSecurityProfilePermissions operation, // calling the "fn" function with the response data for each page. To stop // iterating, return false from the fn function. // -// See ListSecurityProfiles method for more information on how to use this operation. +// See ListSecurityProfilePermissions method for more information on how to use this operation. // // Note: This operation can generate multiple requests to a service. // -// // Example iterating over at most 3 pages of a ListSecurityProfiles operation. +// // Example iterating over at most 3 pages of a ListSecurityProfilePermissions operation. // pageNum := 0 -// err := client.ListSecurityProfilesPages(params, -// func(page *connect.ListSecurityProfilesOutput, lastPage bool) bool { +// err := client.ListSecurityProfilePermissionsPages(params, +// func(page *connect.ListSecurityProfilePermissionsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *Connect) ListSecurityProfilePermissionsPages(input *ListSecurityProfilePermissionsInput, fn func(*ListSecurityProfilePermissionsOutput, bool) bool) error { + return c.ListSecurityProfilePermissionsPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListSecurityProfilePermissionsPagesWithContext same as ListSecurityProfilePermissionsPages except +// it takes a Context and allows setting request options on the pages. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Connect) ListSecurityProfilePermissionsPagesWithContext(ctx aws.Context, input *ListSecurityProfilePermissionsInput, fn func(*ListSecurityProfilePermissionsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListSecurityProfilePermissionsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListSecurityProfilePermissionsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListSecurityProfilePermissionsOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opListSecurityProfiles = "ListSecurityProfiles" + +// ListSecurityProfilesRequest generates a "aws/request.Request" representing the +// client's request for the ListSecurityProfiles operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListSecurityProfiles for more information on using the ListSecurityProfiles +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the ListSecurityProfilesRequest method. +// req, resp := client.ListSecurityProfilesRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/ListSecurityProfiles +func (c *Connect) ListSecurityProfilesRequest(input *ListSecurityProfilesInput) (req *request.Request, output *ListSecurityProfilesOutput) { + op := &request.Operation{ + Name: opListSecurityProfiles, + HTTPMethod: "GET", + HTTPPath: "/security-profiles-summary/{InstanceId}", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListSecurityProfilesInput{} + } + + output = &ListSecurityProfilesOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListSecurityProfiles API operation for Amazon Connect Service. +// +// This API is in preview release for Amazon Connect and is subject to change. +// +// Provides summary information about the security profiles for the specified +// Amazon Connect instance. +// +// For more information about security profiles, see Security Profiles (https://docs.aws.amazon.com/connect/latest/adminguide/connect-security-profiles.html) +// in the Amazon Connect Administrator Guide. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Connect Service's +// API operation ListSecurityProfiles for usage and error information. +// +// Returned Error Types: +// * InvalidRequestException +// The request is not valid. +// +// * InvalidParameterException +// One or more of the specified parameters are not valid. +// +// * ResourceNotFoundException +// The specified resource was not found. +// +// * ThrottlingException +// The throttling limit has been exceeded. +// +// * InternalServiceException +// Request processing failed because of an error or failure with the service. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/ListSecurityProfiles +func (c *Connect) ListSecurityProfiles(input *ListSecurityProfilesInput) (*ListSecurityProfilesOutput, error) { + req, out := c.ListSecurityProfilesRequest(input) + return out, req.Send() +} + +// ListSecurityProfilesWithContext is the same as ListSecurityProfiles with the addition of +// the ability to pass a context and additional request options. +// +// See ListSecurityProfiles for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Connect) ListSecurityProfilesWithContext(ctx aws.Context, input *ListSecurityProfilesInput, opts ...request.Option) (*ListSecurityProfilesOutput, error) { + req, out := c.ListSecurityProfilesRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// ListSecurityProfilesPages iterates over the pages of a ListSecurityProfiles operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListSecurityProfiles method for more information on how to use this operation. +// +// Note: This operation can generate multiple requests to a service. +// +// // Example iterating over at most 3 pages of a ListSecurityProfiles operation. +// pageNum := 0 +// err := client.ListSecurityProfilesPages(params, +// func(page *connect.ListSecurityProfilesOutput, lastPage bool) bool { // pageNum++ // fmt.Println(page) // return pageNum <= 3 @@ -11344,6 +11790,100 @@ func (c *Connect) UpdateRoutingProfileQueuesWithContext(ctx aws.Context, input * return out, req.Send() } +const opUpdateSecurityProfile = "UpdateSecurityProfile" + +// UpdateSecurityProfileRequest generates a "aws/request.Request" representing the +// client's request for the UpdateSecurityProfile operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdateSecurityProfile for more information on using the UpdateSecurityProfile +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the UpdateSecurityProfileRequest method. +// req, resp := client.UpdateSecurityProfileRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/UpdateSecurityProfile +func (c *Connect) UpdateSecurityProfileRequest(input *UpdateSecurityProfileInput) (req *request.Request, output *UpdateSecurityProfileOutput) { + op := &request.Operation{ + Name: opUpdateSecurityProfile, + HTTPMethod: "POST", + HTTPPath: "/security-profiles/{InstanceId}/{SecurityProfileId}", + } + + if input == nil { + input = &UpdateSecurityProfileInput{} + } + + output = &UpdateSecurityProfileOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// UpdateSecurityProfile API operation for Amazon Connect Service. +// +// This API is in preview release for Amazon Connect and is subject to change. +// +// Updates a security profile. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Connect Service's +// API operation UpdateSecurityProfile for usage and error information. +// +// Returned Error Types: +// * InvalidRequestException +// The request is not valid. +// +// * InvalidParameterException +// One or more of the specified parameters are not valid. +// +// * ResourceNotFoundException +// The specified resource was not found. +// +// * ThrottlingException +// The throttling limit has been exceeded. +// +// * InternalServiceException +// Request processing failed because of an error or failure with the service. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/UpdateSecurityProfile +func (c *Connect) UpdateSecurityProfile(input *UpdateSecurityProfileInput) (*UpdateSecurityProfileOutput, error) { + req, out := c.UpdateSecurityProfileRequest(input) + return out, req.Send() +} + +// UpdateSecurityProfileWithContext is the same as UpdateSecurityProfile with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateSecurityProfile for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *Connect) UpdateSecurityProfileWithContext(ctx aws.Context, input *UpdateSecurityProfileInput, opts ...request.Option) (*UpdateSecurityProfileOutput, error) { + req, out := c.UpdateSecurityProfileRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + const opUpdateUserHierarchy = "UpdateUserHierarchy" // UpdateUserHierarchyRequest generates a "aws/request.Request" representing the @@ -12003,33 +12543,12 @@ func (c *Connect) UpdateUserSecurityProfilesWithContext(ctx aws.Context, input * return out, req.Send() } -// Contains information about an agent status. -type AgentStatus struct { - _ struct{} `type:"structure"` - - // The Amazon Resource Name (ARN) of the agent status. - AgentStatusARN *string `type:"string"` - - // The identifier of the agent status. - AgentStatusId *string `type:"string"` - - // The description of the agent status. - Description *string `min:"1" type:"string"` - - // The display order of the agent status. - DisplayOrder *int64 `min:"1" type:"integer"` - - // The name of the agent status. - Name *string `min:"1" type:"string"` - - // The state of the agent status. - State *string `type:"string" enum:"AgentStatusState"` - - // One or more tags. - Tags map[string]*string `min:"1" type:"map"` +// You do not have sufficient access to perform this action. +type AccessDeniedException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` - // The type of agent status. - Type *string `type:"string" enum:"AgentStatusType"` + Message_ *string `locationName:"Message" type:"string"` } // String returns the string representation. @@ -12037,7 +12556,7 @@ type AgentStatus 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 AgentStatus) String() string { +func (s AccessDeniedException) String() string { return awsutil.Prettify(s) } @@ -12046,15 +12565,100 @@ func (s AgentStatus) 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 AgentStatus) GoString() string { +func (s AccessDeniedException) GoString() string { return s.String() } -// SetAgentStatusARN sets the AgentStatusARN field's value. -func (s *AgentStatus) SetAgentStatusARN(v string) *AgentStatus { - s.AgentStatusARN = &v - return s -} +func newErrorAccessDeniedException(v protocol.ResponseMetadata) error { + return &AccessDeniedException{ + RespMetadata: v, + } +} + +// Code returns the exception type name. +func (s *AccessDeniedException) Code() string { + return "AccessDeniedException" +} + +// Message returns the exception's message. +func (s *AccessDeniedException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *AccessDeniedException) OrigErr() error { + return nil +} + +func (s *AccessDeniedException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s *AccessDeniedException) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *AccessDeniedException) RequestID() string { + return s.RespMetadata.RequestID +} + +// Contains information about an agent status. +type AgentStatus struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the agent status. + AgentStatusARN *string `type:"string"` + + // The identifier of the agent status. + AgentStatusId *string `type:"string"` + + // The description of the agent status. + Description *string `min:"1" type:"string"` + + // The display order of the agent status. + DisplayOrder *int64 `min:"1" type:"integer"` + + // The name of the agent status. + Name *string `min:"1" type:"string"` + + // The state of the agent status. + State *string `type:"string" enum:"AgentStatusState"` + + // The tags used to organize, track, or control access for this resource. + Tags map[string]*string `min:"1" type:"map"` + + // The type of agent status. + Type *string `type:"string" enum:"AgentStatusType"` +} + +// 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 AgentStatus) 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 AgentStatus) GoString() string { + return s.String() +} + +// SetAgentStatusARN sets the AgentStatusARN field's value. +func (s *AgentStatus) SetAgentStatusARN(v string) *AgentStatus { + s.AgentStatusARN = &v + return s +} // SetAgentStatusId sets the AgentStatusId field's value. func (s *AgentStatus) SetAgentStatusId(v string) *AgentStatus { @@ -13456,7 +14060,7 @@ type CreateAgentStatusInput struct { // State is a required field State *string `type:"string" required:"true" enum:"AgentStatusState"` - // One or more tags. + // The tags used to organize, track, or control access for this resource. Tags map[string]*string `min:"1" type:"map"` } @@ -13768,7 +14372,7 @@ type CreateHoursOfOperationInput struct { // Name is a required field Name *string `min:"1" type:"string" required:"true"` - // One or more tags. + // The tags used to organize, track, or control access for this resource. Tags map[string]*string `min:"1" type:"map"` // The time zone of the hours of operation. @@ -14097,7 +14701,7 @@ type CreateIntegrationAssociationInput struct { // type. SourceType *string `type:"string" enum:"SourceType"` - // One or more tags. + // The tags used to organize, track, or control access for this resource. Tags map[string]*string `min:"1" type:"map"` } @@ -14264,7 +14868,7 @@ type CreateQueueInput struct { // The quick connects available to agents who are working the queue. QuickConnectIds []*string `min:"1" type:"list"` - // One or more tags. + // The tags used to organize, track, or control access for this resource. Tags map[string]*string `min:"1" type:"map"` } @@ -14435,7 +15039,7 @@ type CreateQuickConnectInput struct { // QuickConnectConfig is a required field QuickConnectConfig *QuickConnectConfig `type:"structure" required:"true"` - // One or more tags. + // The tags used to organize, track, or control access for this resource. Tags map[string]*string `min:"1" type:"map"` } @@ -14761,6 +15365,140 @@ func (s *CreateRoutingProfileOutput) SetRoutingProfileId(v string) *CreateRoutin return s } +type CreateSecurityProfileInput struct { + _ struct{} `type:"structure"` + + // The description of the security profile. + Description *string `type:"string"` + + // The identifier of the Amazon Connect instance. You can find the instanceId + // in the ARN of the instance. + // + // InstanceId is a required field + InstanceId *string `location:"uri" locationName:"InstanceId" min:"1" type:"string" required:"true"` + + // Permissions assigned to the security profile. + Permissions []*string `type:"list"` + + // The name of the security profile. + // + // SecurityProfileName is a required field + SecurityProfileName *string `type:"string" required:"true"` + + // The tags used to organize, track, or control access for this resource. + Tags map[string]*string `min:"1" type:"map"` +} + +// 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 CreateSecurityProfileInput) 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 CreateSecurityProfileInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateSecurityProfileInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateSecurityProfileInput"} + if s.InstanceId == nil { + invalidParams.Add(request.NewErrParamRequired("InstanceId")) + } + if s.InstanceId != nil && len(*s.InstanceId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("InstanceId", 1)) + } + if s.SecurityProfileName == nil { + invalidParams.Add(request.NewErrParamRequired("SecurityProfileName")) + } + if s.Tags != nil && len(s.Tags) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Tags", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDescription sets the Description field's value. +func (s *CreateSecurityProfileInput) SetDescription(v string) *CreateSecurityProfileInput { + s.Description = &v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *CreateSecurityProfileInput) SetInstanceId(v string) *CreateSecurityProfileInput { + s.InstanceId = &v + return s +} + +// SetPermissions sets the Permissions field's value. +func (s *CreateSecurityProfileInput) SetPermissions(v []*string) *CreateSecurityProfileInput { + s.Permissions = v + return s +} + +// SetSecurityProfileName sets the SecurityProfileName field's value. +func (s *CreateSecurityProfileInput) SetSecurityProfileName(v string) *CreateSecurityProfileInput { + s.SecurityProfileName = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateSecurityProfileInput) SetTags(v map[string]*string) *CreateSecurityProfileInput { + s.Tags = v + return s +} + +type CreateSecurityProfileOutput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) for the security profile. + SecurityProfileArn *string `type:"string"` + + // The identifier for the security profle. + SecurityProfileId *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 CreateSecurityProfileOutput) 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 CreateSecurityProfileOutput) GoString() string { + return s.String() +} + +// SetSecurityProfileArn sets the SecurityProfileArn field's value. +func (s *CreateSecurityProfileOutput) SetSecurityProfileArn(v string) *CreateSecurityProfileOutput { + s.SecurityProfileArn = &v + return s +} + +// SetSecurityProfileId sets the SecurityProfileId field's value. +func (s *CreateSecurityProfileOutput) SetSecurityProfileId(v string) *CreateSecurityProfileOutput { + s.SecurityProfileId = &v + return s +} + type CreateUseCaseInput struct { _ struct{} `type:"structure"` @@ -14775,7 +15513,7 @@ type CreateUseCaseInput struct { // IntegrationAssociationId is a required field IntegrationAssociationId *string `location:"uri" locationName:"IntegrationAssociationId" min:"1" type:"string" required:"true"` - // One or more tags. + // The tags used to organize, track, or control access for this resource. Tags map[string]*string `min:"1" type:"map"` // The type of use case to associate to the integration association. Each integration @@ -15765,6 +16503,95 @@ func (s DeleteQuickConnectOutput) GoString() string { return s.String() } +type DeleteSecurityProfileInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // The identifier of the Amazon Connect instance. You can find the instanceId + // in the ARN of the instance. + // + // InstanceId is a required field + InstanceId *string `location:"uri" locationName:"InstanceId" min:"1" type:"string" required:"true"` + + // The identifier for the security profle. + // + // SecurityProfileId is a required field + SecurityProfileId *string `location:"uri" locationName:"SecurityProfileId" 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 DeleteSecurityProfileInput) 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 DeleteSecurityProfileInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteSecurityProfileInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteSecurityProfileInput"} + if s.InstanceId == nil { + invalidParams.Add(request.NewErrParamRequired("InstanceId")) + } + if s.InstanceId != nil && len(*s.InstanceId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("InstanceId", 1)) + } + if s.SecurityProfileId == nil { + invalidParams.Add(request.NewErrParamRequired("SecurityProfileId")) + } + if s.SecurityProfileId != nil && len(*s.SecurityProfileId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("SecurityProfileId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetInstanceId sets the InstanceId field's value. +func (s *DeleteSecurityProfileInput) SetInstanceId(v string) *DeleteSecurityProfileInput { + s.InstanceId = &v + return s +} + +// SetSecurityProfileId sets the SecurityProfileId field's value. +func (s *DeleteSecurityProfileInput) SetSecurityProfileId(v string) *DeleteSecurityProfileInput { + s.SecurityProfileId = &v + return s +} + +type DeleteSecurityProfileOutput 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 DeleteSecurityProfileOutput) 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 DeleteSecurityProfileOutput) GoString() string { + return s.String() +} + type DeleteUseCaseInput struct { _ struct{} `type:"structure" nopayload:"true"` @@ -16875,8 +17702,106 @@ func (s *DescribeRoutingProfileInput) Validate() error { if s.RoutingProfileId == nil { invalidParams.Add(request.NewErrParamRequired("RoutingProfileId")) } - if s.RoutingProfileId != nil && len(*s.RoutingProfileId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("RoutingProfileId", 1)) + if s.RoutingProfileId != nil && len(*s.RoutingProfileId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RoutingProfileId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetInstanceId sets the InstanceId field's value. +func (s *DescribeRoutingProfileInput) SetInstanceId(v string) *DescribeRoutingProfileInput { + s.InstanceId = &v + return s +} + +// SetRoutingProfileId sets the RoutingProfileId field's value. +func (s *DescribeRoutingProfileInput) SetRoutingProfileId(v string) *DescribeRoutingProfileInput { + s.RoutingProfileId = &v + return s +} + +type DescribeRoutingProfileOutput struct { + _ struct{} `type:"structure"` + + // The routing profile. + RoutingProfile *RoutingProfile `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 DescribeRoutingProfileOutput) 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 DescribeRoutingProfileOutput) GoString() string { + return s.String() +} + +// SetRoutingProfile sets the RoutingProfile field's value. +func (s *DescribeRoutingProfileOutput) SetRoutingProfile(v *RoutingProfile) *DescribeRoutingProfileOutput { + s.RoutingProfile = v + return s +} + +type DescribeSecurityProfileInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // The identifier of the Amazon Connect instance. You can find the instanceId + // in the ARN of the instance. + // + // InstanceId is a required field + InstanceId *string `location:"uri" locationName:"InstanceId" min:"1" type:"string" required:"true"` + + // The identifier for the security profle. + // + // SecurityProfileId is a required field + SecurityProfileId *string `location:"uri" locationName:"SecurityProfileId" 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 DescribeSecurityProfileInput) 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 DescribeSecurityProfileInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeSecurityProfileInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeSecurityProfileInput"} + if s.InstanceId == nil { + invalidParams.Add(request.NewErrParamRequired("InstanceId")) + } + if s.InstanceId != nil && len(*s.InstanceId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("InstanceId", 1)) + } + if s.SecurityProfileId == nil { + invalidParams.Add(request.NewErrParamRequired("SecurityProfileId")) + } + if s.SecurityProfileId != nil && len(*s.SecurityProfileId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("SecurityProfileId", 1)) } if invalidParams.Len() > 0 { @@ -16886,22 +17811,22 @@ func (s *DescribeRoutingProfileInput) Validate() error { } // SetInstanceId sets the InstanceId field's value. -func (s *DescribeRoutingProfileInput) SetInstanceId(v string) *DescribeRoutingProfileInput { +func (s *DescribeSecurityProfileInput) SetInstanceId(v string) *DescribeSecurityProfileInput { s.InstanceId = &v return s } -// SetRoutingProfileId sets the RoutingProfileId field's value. -func (s *DescribeRoutingProfileInput) SetRoutingProfileId(v string) *DescribeRoutingProfileInput { - s.RoutingProfileId = &v +// SetSecurityProfileId sets the SecurityProfileId field's value. +func (s *DescribeSecurityProfileInput) SetSecurityProfileId(v string) *DescribeSecurityProfileInput { + s.SecurityProfileId = &v return s } -type DescribeRoutingProfileOutput struct { +type DescribeSecurityProfileOutput struct { _ struct{} `type:"structure"` - // The routing profile. - RoutingProfile *RoutingProfile `type:"structure"` + // The security profile. + SecurityProfile *SecurityProfile `type:"structure"` } // String returns the string representation. @@ -16909,7 +17834,7 @@ type DescribeRoutingProfileOutput 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 DescribeRoutingProfileOutput) String() string { +func (s DescribeSecurityProfileOutput) String() string { return awsutil.Prettify(s) } @@ -16918,13 +17843,13 @@ func (s DescribeRoutingProfileOutput) 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 DescribeRoutingProfileOutput) GoString() string { +func (s DescribeSecurityProfileOutput) GoString() string { return s.String() } -// SetRoutingProfile sets the RoutingProfile field's value. -func (s *DescribeRoutingProfileOutput) SetRoutingProfile(v *RoutingProfile) *DescribeRoutingProfileOutput { - s.RoutingProfile = v +// SetSecurityProfile sets the SecurityProfile field's value. +func (s *DescribeSecurityProfileOutput) SetSecurityProfile(v *SecurityProfile) *DescribeSecurityProfileOutput { + s.SecurityProfile = v return s } @@ -19711,7 +20636,7 @@ type HoursOfOperation struct { // The name for the hours of operation. Name *string `min:"1" type:"string"` - // One or more tags. + // The tags used to organize, track, or control access for this resource. Tags map[string]*string `min:"1" type:"map"` // The time zone for the hours of operation. @@ -22012,6 +22937,7 @@ type ListIntegrationAssociationsInput struct { // InstanceId is a required field InstanceId *string `location:"uri" locationName:"InstanceId" min:"1" type:"string" required:"true"` + // The type of integration. IntegrationType *string `location:"querystring" locationName:"integrationType" type:"string" enum:"IntegrationType"` // The maximum number of results to return per page. @@ -22198,7 +23124,7 @@ func (s *ListLambdaFunctionsInput) SetNextToken(v string) *ListLambdaFunctionsIn type ListLambdaFunctionsOutput struct { _ struct{} `type:"structure"` - // The Lambdafunction ARNs associated with the specified instance. + // The Lambda function ARNs associated with the specified instance. LambdaFunctions []*string `type:"list"` // If there are additional results, this is the token for the next set of results. @@ -23316,6 +24242,135 @@ func (s *ListSecurityKeysOutput) SetSecurityKeys(v []*SecurityKey) *ListSecurity return s } +type ListSecurityProfilePermissionsInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // The identifier of the Amazon Connect instance. You can find the instanceId + // in the ARN of the instance. + // + // InstanceId is a required field + InstanceId *string `location:"uri" locationName:"InstanceId" min:"1" type:"string" required:"true"` + + // The maximum number of results to return per page. + MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"` + + // The token for the next set of results. Use the value returned in the previous + // response in the next request to retrieve the next set of results. + NextToken *string `location:"querystring" locationName:"nextToken" type:"string"` + + // The identifier for the security profle. + // + // SecurityProfileId is a required field + SecurityProfileId *string `location:"uri" locationName:"SecurityProfileId" 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 ListSecurityProfilePermissionsInput) 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 ListSecurityProfilePermissionsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListSecurityProfilePermissionsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListSecurityProfilePermissionsInput"} + if s.InstanceId == nil { + invalidParams.Add(request.NewErrParamRequired("InstanceId")) + } + if s.InstanceId != nil && len(*s.InstanceId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("InstanceId", 1)) + } + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + if s.SecurityProfileId == nil { + invalidParams.Add(request.NewErrParamRequired("SecurityProfileId")) + } + if s.SecurityProfileId != nil && len(*s.SecurityProfileId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("SecurityProfileId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetInstanceId sets the InstanceId field's value. +func (s *ListSecurityProfilePermissionsInput) SetInstanceId(v string) *ListSecurityProfilePermissionsInput { + s.InstanceId = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListSecurityProfilePermissionsInput) SetMaxResults(v int64) *ListSecurityProfilePermissionsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListSecurityProfilePermissionsInput) SetNextToken(v string) *ListSecurityProfilePermissionsInput { + s.NextToken = &v + return s +} + +// SetSecurityProfileId sets the SecurityProfileId field's value. +func (s *ListSecurityProfilePermissionsInput) SetSecurityProfileId(v string) *ListSecurityProfilePermissionsInput { + s.SecurityProfileId = &v + return s +} + +type ListSecurityProfilePermissionsOutput struct { + _ struct{} `type:"structure"` + + // If there are additional results, this is the token for the next set of results. + NextToken *string `type:"string"` + + // The permissions granted to the security profile. + Permissions []*string `type:"list"` +} + +// 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 ListSecurityProfilePermissionsOutput) 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 ListSecurityProfilePermissionsOutput) GoString() string { + return s.String() +} + +// SetNextToken sets the NextToken field's value. +func (s *ListSecurityProfilePermissionsOutput) SetNextToken(v string) *ListSecurityProfilePermissionsOutput { + s.NextToken = &v + return s +} + +// SetPermissions sets the Permissions field's value. +func (s *ListSecurityProfilePermissionsOutput) SetPermissions(v []*string) *ListSecurityProfilePermissionsOutput { + s.Permissions = v + return s +} + type ListSecurityProfilesInput struct { _ struct{} `type:"structure" nopayload:"true"` @@ -24338,7 +25393,7 @@ type Queue struct { // The status of the queue. Status *string `type:"string" enum:"QueueStatus"` - // One or more tags. + // The tags used to organize, track, or control access for this resource. Tags map[string]*string `min:"1" type:"map"` } @@ -24595,7 +25650,7 @@ type QuickConnect struct { // The identifier for the quick connect. QuickConnectId *string `type:"string"` - // One or more tags. + // The tags used to organize, track, or control access for this resource. Tags map[string]*string `min:"1" type:"map"` } @@ -25695,6 +26750,83 @@ func (s *SecurityKey) SetKey(v string) *SecurityKey { return s } +// Contains information about a security profile. +type SecurityProfile struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) for the secruity profile. + Arn *string `type:"string"` + + // The description of the security profile. + Description *string `type:"string"` + + // The identifier for the security profile. + Id *string `type:"string"` + + // The organization resource identifier for the security profile. + OrganizationResourceId *string `min:"1" type:"string"` + + // The name for the security profile. + SecurityProfileName *string `type:"string"` + + // The tags used to organize, track, or control access for this resource. + Tags map[string]*string `min:"1" type:"map"` +} + +// 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 SecurityProfile) 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 SecurityProfile) GoString() string { + return s.String() +} + +// SetArn sets the Arn field's value. +func (s *SecurityProfile) SetArn(v string) *SecurityProfile { + s.Arn = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *SecurityProfile) SetDescription(v string) *SecurityProfile { + s.Description = &v + return s +} + +// SetId sets the Id field's value. +func (s *SecurityProfile) SetId(v string) *SecurityProfile { + s.Id = &v + return s +} + +// SetOrganizationResourceId sets the OrganizationResourceId field's value. +func (s *SecurityProfile) SetOrganizationResourceId(v string) *SecurityProfile { + s.OrganizationResourceId = &v + return s +} + +// SetSecurityProfileName sets the SecurityProfileName field's value. +func (s *SecurityProfile) SetSecurityProfileName(v string) *SecurityProfile { + s.SecurityProfileName = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *SecurityProfile) SetTags(v map[string]*string) *SecurityProfile { + s.Tags = v + return s +} + // Contains information about a security profile. type SecurityProfileSummary struct { _ struct{} `type:"structure"` @@ -27912,7 +29044,7 @@ type UpdateInstanceAttributeInput struct { // The type of attribute. // // Only allowlisted customers can consume USE_CUSTOM_TTS_VOICES. To access this - // feature, contact AWS Support for allowlisting. + // feature, contact Amazon Web Services Support for allowlisting. // // AttributeType is a required field AttributeType *string `location:"uri" locationName:"AttributeType" type:"string" required:"true" enum:"InstanceAttributeType"` @@ -29328,6 +30460,113 @@ func (s UpdateRoutingProfileQueuesOutput) GoString() string { return s.String() } +type UpdateSecurityProfileInput struct { + _ struct{} `type:"structure"` + + // The description of the security profile. + Description *string `type:"string"` + + // The identifier of the Amazon Connect instance. You can find the instanceId + // in the ARN of the instance. + // + // InstanceId is a required field + InstanceId *string `location:"uri" locationName:"InstanceId" min:"1" type:"string" required:"true"` + + // The permissions granted to a security profile. + Permissions []*string `type:"list"` + + // The identifier for the security profle. + // + // SecurityProfileId is a required field + SecurityProfileId *string `location:"uri" locationName:"SecurityProfileId" 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 UpdateSecurityProfileInput) 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 UpdateSecurityProfileInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateSecurityProfileInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateSecurityProfileInput"} + if s.InstanceId == nil { + invalidParams.Add(request.NewErrParamRequired("InstanceId")) + } + if s.InstanceId != nil && len(*s.InstanceId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("InstanceId", 1)) + } + if s.SecurityProfileId == nil { + invalidParams.Add(request.NewErrParamRequired("SecurityProfileId")) + } + if s.SecurityProfileId != nil && len(*s.SecurityProfileId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("SecurityProfileId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDescription sets the Description field's value. +func (s *UpdateSecurityProfileInput) SetDescription(v string) *UpdateSecurityProfileInput { + s.Description = &v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *UpdateSecurityProfileInput) SetInstanceId(v string) *UpdateSecurityProfileInput { + s.InstanceId = &v + return s +} + +// SetPermissions sets the Permissions field's value. +func (s *UpdateSecurityProfileInput) SetPermissions(v []*string) *UpdateSecurityProfileInput { + s.Permissions = v + return s +} + +// SetSecurityProfileId sets the SecurityProfileId field's value. +func (s *UpdateSecurityProfileInput) SetSecurityProfileId(v string) *UpdateSecurityProfileInput { + s.SecurityProfileId = &v + return s +} + +type UpdateSecurityProfileOutput 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 UpdateSecurityProfileOutput) 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 UpdateSecurityProfileOutput) GoString() string { + return s.String() +} + type UpdateUserHierarchyGroupNameInput struct { _ struct{} `type:"structure"` diff --git a/service/connect/connectiface/interface.go b/service/connect/connectiface/interface.go index cc29b27783e..1c220fb47c2 100644 --- a/service/connect/connectiface/interface.go +++ b/service/connect/connectiface/interface.go @@ -124,6 +124,10 @@ type ConnectAPI interface { CreateRoutingProfileWithContext(aws.Context, *connect.CreateRoutingProfileInput, ...request.Option) (*connect.CreateRoutingProfileOutput, error) CreateRoutingProfileRequest(*connect.CreateRoutingProfileInput) (*request.Request, *connect.CreateRoutingProfileOutput) + CreateSecurityProfile(*connect.CreateSecurityProfileInput) (*connect.CreateSecurityProfileOutput, error) + CreateSecurityProfileWithContext(aws.Context, *connect.CreateSecurityProfileInput, ...request.Option) (*connect.CreateSecurityProfileOutput, error) + CreateSecurityProfileRequest(*connect.CreateSecurityProfileInput) (*request.Request, *connect.CreateSecurityProfileOutput) + CreateUseCase(*connect.CreateUseCaseInput) (*connect.CreateUseCaseOutput, error) CreateUseCaseWithContext(aws.Context, *connect.CreateUseCaseInput, ...request.Option) (*connect.CreateUseCaseOutput, error) CreateUseCaseRequest(*connect.CreateUseCaseInput) (*request.Request, *connect.CreateUseCaseOutput) @@ -152,6 +156,10 @@ type ConnectAPI interface { DeleteQuickConnectWithContext(aws.Context, *connect.DeleteQuickConnectInput, ...request.Option) (*connect.DeleteQuickConnectOutput, error) DeleteQuickConnectRequest(*connect.DeleteQuickConnectInput) (*request.Request, *connect.DeleteQuickConnectOutput) + DeleteSecurityProfile(*connect.DeleteSecurityProfileInput) (*connect.DeleteSecurityProfileOutput, error) + DeleteSecurityProfileWithContext(aws.Context, *connect.DeleteSecurityProfileInput, ...request.Option) (*connect.DeleteSecurityProfileOutput, error) + DeleteSecurityProfileRequest(*connect.DeleteSecurityProfileInput) (*request.Request, *connect.DeleteSecurityProfileOutput) + DeleteUseCase(*connect.DeleteUseCaseInput) (*connect.DeleteUseCaseOutput, error) DeleteUseCaseWithContext(aws.Context, *connect.DeleteUseCaseInput, ...request.Option) (*connect.DeleteUseCaseOutput, error) DeleteUseCaseRequest(*connect.DeleteUseCaseInput) (*request.Request, *connect.DeleteUseCaseOutput) @@ -200,6 +208,10 @@ type ConnectAPI interface { DescribeRoutingProfileWithContext(aws.Context, *connect.DescribeRoutingProfileInput, ...request.Option) (*connect.DescribeRoutingProfileOutput, error) DescribeRoutingProfileRequest(*connect.DescribeRoutingProfileInput) (*request.Request, *connect.DescribeRoutingProfileOutput) + DescribeSecurityProfile(*connect.DescribeSecurityProfileInput) (*connect.DescribeSecurityProfileOutput, error) + DescribeSecurityProfileWithContext(aws.Context, *connect.DescribeSecurityProfileInput, ...request.Option) (*connect.DescribeSecurityProfileOutput, error) + DescribeSecurityProfileRequest(*connect.DescribeSecurityProfileInput) (*request.Request, *connect.DescribeSecurityProfileOutput) + DescribeUser(*connect.DescribeUserInput) (*connect.DescribeUserOutput, error) DescribeUserWithContext(aws.Context, *connect.DescribeUserInput, ...request.Option) (*connect.DescribeUserOutput, error) DescribeUserRequest(*connect.DescribeUserInput) (*request.Request, *connect.DescribeUserOutput) @@ -399,6 +411,13 @@ type ConnectAPI interface { ListSecurityKeysPages(*connect.ListSecurityKeysInput, func(*connect.ListSecurityKeysOutput, bool) bool) error ListSecurityKeysPagesWithContext(aws.Context, *connect.ListSecurityKeysInput, func(*connect.ListSecurityKeysOutput, bool) bool, ...request.Option) error + ListSecurityProfilePermissions(*connect.ListSecurityProfilePermissionsInput) (*connect.ListSecurityProfilePermissionsOutput, error) + ListSecurityProfilePermissionsWithContext(aws.Context, *connect.ListSecurityProfilePermissionsInput, ...request.Option) (*connect.ListSecurityProfilePermissionsOutput, error) + ListSecurityProfilePermissionsRequest(*connect.ListSecurityProfilePermissionsInput) (*request.Request, *connect.ListSecurityProfilePermissionsOutput) + + ListSecurityProfilePermissionsPages(*connect.ListSecurityProfilePermissionsInput, func(*connect.ListSecurityProfilePermissionsOutput, bool) bool) error + ListSecurityProfilePermissionsPagesWithContext(aws.Context, *connect.ListSecurityProfilePermissionsInput, func(*connect.ListSecurityProfilePermissionsOutput, bool) bool, ...request.Option) error + ListSecurityProfiles(*connect.ListSecurityProfilesInput) (*connect.ListSecurityProfilesOutput, error) ListSecurityProfilesWithContext(aws.Context, *connect.ListSecurityProfilesInput, ...request.Option) (*connect.ListSecurityProfilesOutput, error) ListSecurityProfilesRequest(*connect.ListSecurityProfilesInput) (*request.Request, *connect.ListSecurityProfilesOutput) @@ -551,6 +570,10 @@ type ConnectAPI interface { UpdateRoutingProfileQueuesWithContext(aws.Context, *connect.UpdateRoutingProfileQueuesInput, ...request.Option) (*connect.UpdateRoutingProfileQueuesOutput, error) UpdateRoutingProfileQueuesRequest(*connect.UpdateRoutingProfileQueuesInput) (*request.Request, *connect.UpdateRoutingProfileQueuesOutput) + UpdateSecurityProfile(*connect.UpdateSecurityProfileInput) (*connect.UpdateSecurityProfileOutput, error) + UpdateSecurityProfileWithContext(aws.Context, *connect.UpdateSecurityProfileInput, ...request.Option) (*connect.UpdateSecurityProfileOutput, error) + UpdateSecurityProfileRequest(*connect.UpdateSecurityProfileInput) (*request.Request, *connect.UpdateSecurityProfileOutput) + UpdateUserHierarchy(*connect.UpdateUserHierarchyInput) (*connect.UpdateUserHierarchyOutput, error) UpdateUserHierarchyWithContext(aws.Context, *connect.UpdateUserHierarchyInput, ...request.Option) (*connect.UpdateUserHierarchyOutput, error) UpdateUserHierarchyRequest(*connect.UpdateUserHierarchyInput) (*request.Request, *connect.UpdateUserHierarchyOutput) diff --git a/service/connect/doc.go b/service/connect/doc.go index d50379048e7..63b2d9ed6f1 100644 --- a/service/connect/doc.go +++ b/service/connect/doc.go @@ -16,8 +16,9 @@ // For more information, see Amazon Connect Service Quotas (https://docs.aws.amazon.com/connect/latest/adminguide/amazon-connect-service-limits.html) // in the Amazon Connect Administrator Guide. // -// You can connect programmatically to an AWS service by using an endpoint. -// For a list of Amazon Connect endpoints, see Amazon Connect Endpoints (https://docs.aws.amazon.com/general/latest/gr/connect_region.html). +// You can connect programmatically to an Amazon Web Services service by using +// an endpoint. For a list of Amazon Connect endpoints, see Amazon Connect Endpoints +// (https://docs.aws.amazon.com/general/latest/gr/connect_region.html). // // Working with contact flows? Check out the Amazon Connect Flow language (https://docs.aws.amazon.com/connect/latest/adminguide/flow-language.html). // diff --git a/service/connect/errors.go b/service/connect/errors.go index 8cb5311c4f8..04598d87e88 100644 --- a/service/connect/errors.go +++ b/service/connect/errors.go @@ -8,6 +8,12 @@ import ( const ( + // ErrCodeAccessDeniedException for service response error code + // "AccessDeniedException". + // + // You do not have sufficient access to perform this action. + ErrCodeAccessDeniedException = "AccessDeniedException" + // ErrCodeContactFlowNotPublishedException for service response error code // "ContactFlowNotPublishedException". // @@ -106,6 +112,7 @@ const ( ) var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "AccessDeniedException": newErrorAccessDeniedException, "ContactFlowNotPublishedException": newErrorContactFlowNotPublishedException, "ContactNotFoundException": newErrorContactNotFoundException, "DestinationNotAllowedException": newErrorDestinationNotAllowedException, diff --git a/service/ec2/api.go b/service/ec2/api.go index bf87b756b0e..0ebb0fe9f8e 100644 --- a/service/ec2/api.go +++ b/service/ec2/api.go @@ -96245,14 +96245,23 @@ func (s *FleetLaunchTemplateSpecificationRequest) SetVersion(v string) *FleetLau type FleetSpotCapacityRebalance struct { _ struct{} `type:"structure"` - // To allow EC2 Fleet to launch a replacement Spot Instance when an instance - // rebalance notification is emitted for an existing Spot Instance in the fleet, - // specify launch. Only available for fleets of type maintain. + // The replacement strategy to use. Only available for fleets of type maintain. + // + // launch - EC2 Fleet launches a new replacement Spot Instance when a rebalance + // notification is emitted for an existing Spot Instance in the fleet. EC2 Fleet + // does not terminate the instances that receive a rebalance notification. You + // can terminate the old instances, or you can leave them running. You are charged + // for all instances while they are running. // - // When a replacement instance is launched, the instance marked for rebalance - // is not automatically terminated. You can terminate it, or you can leave it - // running. You are charged for both instances while they are running. + // launch-before-terminate - EC2 Fleet launches a new replacement Spot Instance + // when a rebalance notification is emitted for an existing Spot Instance in + // the fleet, and then, after a delay that you specify (in TerminationDelay), + // terminates the instances that received a rebalance notification. ReplacementStrategy *string `locationName:"replacementStrategy" type:"string" enum:"FleetReplacementStrategy"` + + // The amount of time (in seconds) that Amazon EC2 waits before terminating + // the old Spot Instance after launching a new replacement Spot Instance. + TerminationDelay *int64 `locationName:"terminationDelay" type:"integer"` } // String returns the string representation. @@ -96279,23 +96288,36 @@ func (s *FleetSpotCapacityRebalance) SetReplacementStrategy(v string) *FleetSpot return s } -// The Spot Instance replacement strategy to use when Amazon EC2 emits a signal -// that your Spot Instance is at an elevated risk of being interrupted. For -// more information, see Capacity rebalancing (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-fleet-configuration-strategies.html#ec2-fleet-capacity-rebalance) +// SetTerminationDelay sets the TerminationDelay field's value. +func (s *FleetSpotCapacityRebalance) SetTerminationDelay(v int64) *FleetSpotCapacityRebalance { + s.TerminationDelay = &v + return s +} + +// The Spot Instance replacement strategy to use when Amazon EC2 emits a rebalance +// notification signal that your Spot Instance is at an elevated risk of being +// interrupted. For more information, see Capacity rebalancing (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-fleet-configuration-strategies.html#ec2-fleet-capacity-rebalance) // in the Amazon EC2 User Guide. type FleetSpotCapacityRebalanceRequest struct { _ struct{} `type:"structure"` // The replacement strategy to use. Only available for fleets of type maintain. // - // To allow EC2 Fleet to launch a replacement Spot Instance when an instance - // rebalance notification is emitted for an existing Spot Instance in the fleet, - // specify launch. You must specify a value, otherwise you get an error. + // launch - EC2 Fleet launches a replacement Spot Instance when a rebalance + // notification is emitted for an existing Spot Instance in the fleet. EC2 Fleet + // does not terminate the instances that receive a rebalance notification. You + // can terminate the old instances, or you can leave them running. You are charged + // for all instances while they are running. // - // When a replacement instance is launched, the instance marked for rebalance - // is not automatically terminated. You can terminate it, or you can leave it - // running. You are charged for all instances while they are running. + // launch-before-terminate - EC2 Fleet launches a replacement Spot Instance + // when a rebalance notification is emitted for an existing Spot Instance in + // the fleet, and then, after a delay that you specify (in TerminationDelay), + // terminates the instances that received a rebalance notification. ReplacementStrategy *string `type:"string" enum:"FleetReplacementStrategy"` + + // The amount of time (in seconds) that Amazon EC2 waits before terminating + // the old Spot Instance after launching a new replacement Spot Instance. + TerminationDelay *int64 `type:"integer"` } // String returns the string representation. @@ -96322,6 +96344,12 @@ func (s *FleetSpotCapacityRebalanceRequest) SetReplacementStrategy(v string) *Fl return s } +// SetTerminationDelay sets the TerminationDelay field's value. +func (s *FleetSpotCapacityRebalanceRequest) SetTerminationDelay(v int64) *FleetSpotCapacityRebalanceRequest { + s.TerminationDelay = &v + return s +} + // The strategies for managing your Spot Instances that are at an elevated risk // of being interrupted. type FleetSpotMaintenanceStrategies struct { @@ -134710,16 +134738,22 @@ type SpotCapacityRebalance struct { _ struct{} `type:"structure"` // The replacement strategy to use. Only available for fleets of type maintain. - // You must specify a value, otherwise you get an error. // - // To allow Spot Fleet to launch a replacement Spot Instance when an instance - // rebalance notification is emitted for a Spot Instance in the fleet, specify - // launch. + // launch - Spot Fleet launches a new replacement Spot Instance when a rebalance + // notification is emitted for an existing Spot Instance in the fleet. Spot + // Fleet does not terminate the instances that receive a rebalance notification. + // You can terminate the old instances, or you can leave them running. You are + // charged for all instances while they are running. // - // When a replacement instance is launched, the instance marked for rebalance - // is not automatically terminated. You can terminate it, or you can leave it - // running. You are charged for all instances while they are running. + // launch-before-terminate - Spot Fleet launches a new replacement Spot Instance + // when a rebalance notification is emitted for an existing Spot Instance in + // the fleet, and then, after a delay that you specify (in TerminationDelay), + // terminates the instances that received a rebalance notification. ReplacementStrategy *string `locationName:"replacementStrategy" type:"string" enum:"ReplacementStrategy"` + + // The amount of time (in seconds) that Amazon EC2 waits before terminating + // the old Spot Instance after launching a new replacement Spot Instance. + TerminationDelay *int64 `locationName:"terminationDelay" type:"integer"` } // String returns the string representation. @@ -134746,6 +134780,12 @@ func (s *SpotCapacityRebalance) SetReplacementStrategy(v string) *SpotCapacityRe return s } +// SetTerminationDelay sets the TerminationDelay field's value. +func (s *SpotCapacityRebalance) SetTerminationDelay(v int64) *SpotCapacityRebalance { + s.TerminationDelay = &v + return s +} + // Describes the data feed for a Spot Instance. type SpotDatafeedSubscription struct { _ struct{} `type:"structure"` @@ -147467,12 +147507,16 @@ func FleetOnDemandAllocationStrategy_Values() []string { const ( // FleetReplacementStrategyLaunch is a FleetReplacementStrategy enum value FleetReplacementStrategyLaunch = "launch" + + // FleetReplacementStrategyLaunchBeforeTerminate is a FleetReplacementStrategy enum value + FleetReplacementStrategyLaunchBeforeTerminate = "launch-before-terminate" ) // FleetReplacementStrategy_Values returns all elements of the FleetReplacementStrategy enum func FleetReplacementStrategy_Values() []string { return []string{ FleetReplacementStrategyLaunch, + FleetReplacementStrategyLaunchBeforeTerminate, } } @@ -150795,12 +150839,16 @@ func ReplaceRootVolumeTaskState_Values() []string { const ( // ReplacementStrategyLaunch is a ReplacementStrategy enum value ReplacementStrategyLaunch = "launch" + + // ReplacementStrategyLaunchBeforeTerminate is a ReplacementStrategy enum value + ReplacementStrategyLaunchBeforeTerminate = "launch-before-terminate" ) // ReplacementStrategy_Values returns all elements of the ReplacementStrategy enum func ReplacementStrategy_Values() []string { return []string{ ReplacementStrategyLaunch, + ReplacementStrategyLaunchBeforeTerminate, } } diff --git a/service/iotwireless/api.go b/service/iotwireless/api.go index 6327a36b5fb..09895531ee4 100644 --- a/service/iotwireless/api.go +++ b/service/iotwireless/api.go @@ -4,6 +4,7 @@ package iotwireless import ( "fmt" + "time" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awsutil" @@ -106,59 +107,59 @@ func (c *IoTWireless) AssociateAwsAccountWithPartnerAccountWithContext(ctx aws.C return out, req.Send() } -const opAssociateWirelessDeviceWithThing = "AssociateWirelessDeviceWithThing" +const opAssociateMulticastGroupWithFuotaTask = "AssociateMulticastGroupWithFuotaTask" -// AssociateWirelessDeviceWithThingRequest generates a "aws/request.Request" representing the -// client's request for the AssociateWirelessDeviceWithThing operation. The "output" return +// AssociateMulticastGroupWithFuotaTaskRequest generates a "aws/request.Request" representing the +// client's request for the AssociateMulticastGroupWithFuotaTask operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See AssociateWirelessDeviceWithThing for more information on using the AssociateWirelessDeviceWithThing +// See AssociateMulticastGroupWithFuotaTask for more information on using the AssociateMulticastGroupWithFuotaTask // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the AssociateWirelessDeviceWithThingRequest method. -// req, resp := client.AssociateWirelessDeviceWithThingRequest(params) +// // Example sending a request using the AssociateMulticastGroupWithFuotaTaskRequest method. +// req, resp := client.AssociateMulticastGroupWithFuotaTaskRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/AssociateWirelessDeviceWithThing -func (c *IoTWireless) AssociateWirelessDeviceWithThingRequest(input *AssociateWirelessDeviceWithThingInput) (req *request.Request, output *AssociateWirelessDeviceWithThingOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/AssociateMulticastGroupWithFuotaTask +func (c *IoTWireless) AssociateMulticastGroupWithFuotaTaskRequest(input *AssociateMulticastGroupWithFuotaTaskInput) (req *request.Request, output *AssociateMulticastGroupWithFuotaTaskOutput) { op := &request.Operation{ - Name: opAssociateWirelessDeviceWithThing, + Name: opAssociateMulticastGroupWithFuotaTask, HTTPMethod: "PUT", - HTTPPath: "/wireless-devices/{Id}/thing", + HTTPPath: "/fuota-tasks/{Id}/multicast-group", } if input == nil { - input = &AssociateWirelessDeviceWithThingInput{} + input = &AssociateMulticastGroupWithFuotaTaskInput{} } - output = &AssociateWirelessDeviceWithThingOutput{} + output = &AssociateMulticastGroupWithFuotaTaskOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// AssociateWirelessDeviceWithThing API operation for AWS IoT Wireless. +// AssociateMulticastGroupWithFuotaTask API operation for AWS IoT Wireless. // -// Associates a wireless device with a thing. +// Associate a multicast group with a FUOTA task. // // Returns awserr.Error for service API and SDK errors. Use runtime 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 IoT Wireless's -// API operation AssociateWirelessDeviceWithThing for usage and error information. +// API operation AssociateMulticastGroupWithFuotaTask for usage and error information. // // Returned Error Types: // * ValidationException @@ -179,80 +180,81 @@ func (c *IoTWireless) AssociateWirelessDeviceWithThingRequest(input *AssociateWi // * InternalServerException // An unexpected error occurred while processing a request. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/AssociateWirelessDeviceWithThing -func (c *IoTWireless) AssociateWirelessDeviceWithThing(input *AssociateWirelessDeviceWithThingInput) (*AssociateWirelessDeviceWithThingOutput, error) { - req, out := c.AssociateWirelessDeviceWithThingRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/AssociateMulticastGroupWithFuotaTask +func (c *IoTWireless) AssociateMulticastGroupWithFuotaTask(input *AssociateMulticastGroupWithFuotaTaskInput) (*AssociateMulticastGroupWithFuotaTaskOutput, error) { + req, out := c.AssociateMulticastGroupWithFuotaTaskRequest(input) return out, req.Send() } -// AssociateWirelessDeviceWithThingWithContext is the same as AssociateWirelessDeviceWithThing with the addition of +// AssociateMulticastGroupWithFuotaTaskWithContext is the same as AssociateMulticastGroupWithFuotaTask with the addition of // the ability to pass a context and additional request options. // -// See AssociateWirelessDeviceWithThing for details on how to use this API operation. +// See AssociateMulticastGroupWithFuotaTask for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *IoTWireless) AssociateWirelessDeviceWithThingWithContext(ctx aws.Context, input *AssociateWirelessDeviceWithThingInput, opts ...request.Option) (*AssociateWirelessDeviceWithThingOutput, error) { - req, out := c.AssociateWirelessDeviceWithThingRequest(input) +func (c *IoTWireless) AssociateMulticastGroupWithFuotaTaskWithContext(ctx aws.Context, input *AssociateMulticastGroupWithFuotaTaskInput, opts ...request.Option) (*AssociateMulticastGroupWithFuotaTaskOutput, error) { + req, out := c.AssociateMulticastGroupWithFuotaTaskRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opAssociateWirelessGatewayWithCertificate = "AssociateWirelessGatewayWithCertificate" +const opAssociateWirelessDeviceWithFuotaTask = "AssociateWirelessDeviceWithFuotaTask" -// AssociateWirelessGatewayWithCertificateRequest generates a "aws/request.Request" representing the -// client's request for the AssociateWirelessGatewayWithCertificate operation. The "output" return +// AssociateWirelessDeviceWithFuotaTaskRequest generates a "aws/request.Request" representing the +// client's request for the AssociateWirelessDeviceWithFuotaTask operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See AssociateWirelessGatewayWithCertificate for more information on using the AssociateWirelessGatewayWithCertificate +// See AssociateWirelessDeviceWithFuotaTask for more information on using the AssociateWirelessDeviceWithFuotaTask // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the AssociateWirelessGatewayWithCertificateRequest method. -// req, resp := client.AssociateWirelessGatewayWithCertificateRequest(params) +// // Example sending a request using the AssociateWirelessDeviceWithFuotaTaskRequest method. +// req, resp := client.AssociateWirelessDeviceWithFuotaTaskRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/AssociateWirelessGatewayWithCertificate -func (c *IoTWireless) AssociateWirelessGatewayWithCertificateRequest(input *AssociateWirelessGatewayWithCertificateInput) (req *request.Request, output *AssociateWirelessGatewayWithCertificateOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/AssociateWirelessDeviceWithFuotaTask +func (c *IoTWireless) AssociateWirelessDeviceWithFuotaTaskRequest(input *AssociateWirelessDeviceWithFuotaTaskInput) (req *request.Request, output *AssociateWirelessDeviceWithFuotaTaskOutput) { op := &request.Operation{ - Name: opAssociateWirelessGatewayWithCertificate, + Name: opAssociateWirelessDeviceWithFuotaTask, HTTPMethod: "PUT", - HTTPPath: "/wireless-gateways/{Id}/certificate", + HTTPPath: "/fuota-tasks/{Id}/wireless-device", } if input == nil { - input = &AssociateWirelessGatewayWithCertificateInput{} + input = &AssociateWirelessDeviceWithFuotaTaskInput{} } - output = &AssociateWirelessGatewayWithCertificateOutput{} + output = &AssociateWirelessDeviceWithFuotaTaskOutput{} req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// AssociateWirelessGatewayWithCertificate API operation for AWS IoT Wireless. +// AssociateWirelessDeviceWithFuotaTask API operation for AWS IoT Wireless. // -// Associates a wireless gateway with a certificate. +// Associate a wireless device with a FUOTA task. // // Returns awserr.Error for service API and SDK errors. Use runtime 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 IoT Wireless's -// API operation AssociateWirelessGatewayWithCertificate for usage and error information. +// API operation AssociateWirelessDeviceWithFuotaTask for usage and error information. // // Returned Error Types: // * ValidationException @@ -267,98 +269,98 @@ func (c *IoTWireless) AssociateWirelessGatewayWithCertificateRequest(input *Asso // * ConflictException // Adding, updating, or deleting the resource can cause an inconsistent state. // -// * InternalServerException -// An unexpected error occurred while processing a request. -// // * ThrottlingException // The request was denied because it exceeded the allowed API request rate. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/AssociateWirelessGatewayWithCertificate -func (c *IoTWireless) AssociateWirelessGatewayWithCertificate(input *AssociateWirelessGatewayWithCertificateInput) (*AssociateWirelessGatewayWithCertificateOutput, error) { - req, out := c.AssociateWirelessGatewayWithCertificateRequest(input) +// * InternalServerException +// An unexpected error occurred while processing a request. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/AssociateWirelessDeviceWithFuotaTask +func (c *IoTWireless) AssociateWirelessDeviceWithFuotaTask(input *AssociateWirelessDeviceWithFuotaTaskInput) (*AssociateWirelessDeviceWithFuotaTaskOutput, error) { + req, out := c.AssociateWirelessDeviceWithFuotaTaskRequest(input) return out, req.Send() } -// AssociateWirelessGatewayWithCertificateWithContext is the same as AssociateWirelessGatewayWithCertificate with the addition of +// AssociateWirelessDeviceWithFuotaTaskWithContext is the same as AssociateWirelessDeviceWithFuotaTask with the addition of // the ability to pass a context and additional request options. // -// See AssociateWirelessGatewayWithCertificate for details on how to use this API operation. +// See AssociateWirelessDeviceWithFuotaTask for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *IoTWireless) AssociateWirelessGatewayWithCertificateWithContext(ctx aws.Context, input *AssociateWirelessGatewayWithCertificateInput, opts ...request.Option) (*AssociateWirelessGatewayWithCertificateOutput, error) { - req, out := c.AssociateWirelessGatewayWithCertificateRequest(input) +func (c *IoTWireless) AssociateWirelessDeviceWithFuotaTaskWithContext(ctx aws.Context, input *AssociateWirelessDeviceWithFuotaTaskInput, opts ...request.Option) (*AssociateWirelessDeviceWithFuotaTaskOutput, error) { + req, out := c.AssociateWirelessDeviceWithFuotaTaskRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opAssociateWirelessGatewayWithThing = "AssociateWirelessGatewayWithThing" +const opAssociateWirelessDeviceWithMulticastGroup = "AssociateWirelessDeviceWithMulticastGroup" -// AssociateWirelessGatewayWithThingRequest generates a "aws/request.Request" representing the -// client's request for the AssociateWirelessGatewayWithThing operation. The "output" return +// AssociateWirelessDeviceWithMulticastGroupRequest generates a "aws/request.Request" representing the +// client's request for the AssociateWirelessDeviceWithMulticastGroup operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See AssociateWirelessGatewayWithThing for more information on using the AssociateWirelessGatewayWithThing +// See AssociateWirelessDeviceWithMulticastGroup for more information on using the AssociateWirelessDeviceWithMulticastGroup // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the AssociateWirelessGatewayWithThingRequest method. -// req, resp := client.AssociateWirelessGatewayWithThingRequest(params) +// // Example sending a request using the AssociateWirelessDeviceWithMulticastGroupRequest method. +// req, resp := client.AssociateWirelessDeviceWithMulticastGroupRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/AssociateWirelessGatewayWithThing -func (c *IoTWireless) AssociateWirelessGatewayWithThingRequest(input *AssociateWirelessGatewayWithThingInput) (req *request.Request, output *AssociateWirelessGatewayWithThingOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/AssociateWirelessDeviceWithMulticastGroup +func (c *IoTWireless) AssociateWirelessDeviceWithMulticastGroupRequest(input *AssociateWirelessDeviceWithMulticastGroupInput) (req *request.Request, output *AssociateWirelessDeviceWithMulticastGroupOutput) { op := &request.Operation{ - Name: opAssociateWirelessGatewayWithThing, + Name: opAssociateWirelessDeviceWithMulticastGroup, HTTPMethod: "PUT", - HTTPPath: "/wireless-gateways/{Id}/thing", + HTTPPath: "/multicast-groups/{Id}/wireless-device", } if input == nil { - input = &AssociateWirelessGatewayWithThingInput{} + input = &AssociateWirelessDeviceWithMulticastGroupInput{} } - output = &AssociateWirelessGatewayWithThingOutput{} + output = &AssociateWirelessDeviceWithMulticastGroupOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// AssociateWirelessGatewayWithThing API operation for AWS IoT Wireless. +// AssociateWirelessDeviceWithMulticastGroup API operation for AWS IoT Wireless. // -// Associates a wireless gateway with a thing. +// Associates a wireless device with a multicast group. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS IoT Wireless's -// API operation AssociateWirelessGatewayWithThing for usage and error information. +// API operation AssociateWirelessDeviceWithMulticastGroup for usage and error information. // // Returned Error Types: // * ValidationException // The input did not meet the specified constraints. // -// * ResourceNotFoundException -// Resource does not exist. -// // * AccessDeniedException // User does not have permission to perform this action. // +// * ResourceNotFoundException +// Resource does not exist. +// // * ConflictException // Adding, updating, or deleting the resource can cause an inconsistent state. // @@ -368,174 +370,175 @@ func (c *IoTWireless) AssociateWirelessGatewayWithThingRequest(input *AssociateW // * InternalServerException // An unexpected error occurred while processing a request. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/AssociateWirelessGatewayWithThing -func (c *IoTWireless) AssociateWirelessGatewayWithThing(input *AssociateWirelessGatewayWithThingInput) (*AssociateWirelessGatewayWithThingOutput, error) { - req, out := c.AssociateWirelessGatewayWithThingRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/AssociateWirelessDeviceWithMulticastGroup +func (c *IoTWireless) AssociateWirelessDeviceWithMulticastGroup(input *AssociateWirelessDeviceWithMulticastGroupInput) (*AssociateWirelessDeviceWithMulticastGroupOutput, error) { + req, out := c.AssociateWirelessDeviceWithMulticastGroupRequest(input) return out, req.Send() } -// AssociateWirelessGatewayWithThingWithContext is the same as AssociateWirelessGatewayWithThing with the addition of +// AssociateWirelessDeviceWithMulticastGroupWithContext is the same as AssociateWirelessDeviceWithMulticastGroup with the addition of // the ability to pass a context and additional request options. // -// See AssociateWirelessGatewayWithThing for details on how to use this API operation. +// See AssociateWirelessDeviceWithMulticastGroup for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *IoTWireless) AssociateWirelessGatewayWithThingWithContext(ctx aws.Context, input *AssociateWirelessGatewayWithThingInput, opts ...request.Option) (*AssociateWirelessGatewayWithThingOutput, error) { - req, out := c.AssociateWirelessGatewayWithThingRequest(input) +func (c *IoTWireless) AssociateWirelessDeviceWithMulticastGroupWithContext(ctx aws.Context, input *AssociateWirelessDeviceWithMulticastGroupInput, opts ...request.Option) (*AssociateWirelessDeviceWithMulticastGroupOutput, error) { + req, out := c.AssociateWirelessDeviceWithMulticastGroupRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opCreateDestination = "CreateDestination" +const opAssociateWirelessDeviceWithThing = "AssociateWirelessDeviceWithThing" -// CreateDestinationRequest generates a "aws/request.Request" representing the -// client's request for the CreateDestination operation. The "output" return +// AssociateWirelessDeviceWithThingRequest generates a "aws/request.Request" representing the +// client's request for the AssociateWirelessDeviceWithThing operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See CreateDestination for more information on using the CreateDestination +// See AssociateWirelessDeviceWithThing for more information on using the AssociateWirelessDeviceWithThing // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the CreateDestinationRequest method. -// req, resp := client.CreateDestinationRequest(params) +// // Example sending a request using the AssociateWirelessDeviceWithThingRequest method. +// req, resp := client.AssociateWirelessDeviceWithThingRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/CreateDestination -func (c *IoTWireless) CreateDestinationRequest(input *CreateDestinationInput) (req *request.Request, output *CreateDestinationOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/AssociateWirelessDeviceWithThing +func (c *IoTWireless) AssociateWirelessDeviceWithThingRequest(input *AssociateWirelessDeviceWithThingInput) (req *request.Request, output *AssociateWirelessDeviceWithThingOutput) { op := &request.Operation{ - Name: opCreateDestination, - HTTPMethod: "POST", - HTTPPath: "/destinations", + Name: opAssociateWirelessDeviceWithThing, + HTTPMethod: "PUT", + HTTPPath: "/wireless-devices/{Id}/thing", } if input == nil { - input = &CreateDestinationInput{} + input = &AssociateWirelessDeviceWithThingInput{} } - output = &CreateDestinationOutput{} + output = &AssociateWirelessDeviceWithThingOutput{} req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// CreateDestination API operation for AWS IoT Wireless. +// AssociateWirelessDeviceWithThing API operation for AWS IoT Wireless. // -// Creates a new destination that maps a device message to an AWS IoT rule. +// Associates a wireless device with a thing. // // Returns awserr.Error for service API and SDK errors. Use runtime 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 IoT Wireless's -// API operation CreateDestination for usage and error information. +// API operation AssociateWirelessDeviceWithThing for usage and error information. // // Returned Error Types: // * ValidationException // The input did not meet the specified constraints. // -// * ResourceNotFoundException -// Resource does not exist. -// // * AccessDeniedException // User does not have permission to perform this action. // +// * ResourceNotFoundException +// Resource does not exist. +// // * ConflictException // Adding, updating, or deleting the resource can cause an inconsistent state. // -// * InternalServerException -// An unexpected error occurred while processing a request. -// // * ThrottlingException // The request was denied because it exceeded the allowed API request rate. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/CreateDestination -func (c *IoTWireless) CreateDestination(input *CreateDestinationInput) (*CreateDestinationOutput, error) { - req, out := c.CreateDestinationRequest(input) +// * InternalServerException +// An unexpected error occurred while processing a request. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/AssociateWirelessDeviceWithThing +func (c *IoTWireless) AssociateWirelessDeviceWithThing(input *AssociateWirelessDeviceWithThingInput) (*AssociateWirelessDeviceWithThingOutput, error) { + req, out := c.AssociateWirelessDeviceWithThingRequest(input) return out, req.Send() } -// CreateDestinationWithContext is the same as CreateDestination with the addition of +// AssociateWirelessDeviceWithThingWithContext is the same as AssociateWirelessDeviceWithThing with the addition of // the ability to pass a context and additional request options. // -// See CreateDestination for details on how to use this API operation. +// See AssociateWirelessDeviceWithThing for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *IoTWireless) CreateDestinationWithContext(ctx aws.Context, input *CreateDestinationInput, opts ...request.Option) (*CreateDestinationOutput, error) { - req, out := c.CreateDestinationRequest(input) +func (c *IoTWireless) AssociateWirelessDeviceWithThingWithContext(ctx aws.Context, input *AssociateWirelessDeviceWithThingInput, opts ...request.Option) (*AssociateWirelessDeviceWithThingOutput, error) { + req, out := c.AssociateWirelessDeviceWithThingRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opCreateDeviceProfile = "CreateDeviceProfile" +const opAssociateWirelessGatewayWithCertificate = "AssociateWirelessGatewayWithCertificate" -// CreateDeviceProfileRequest generates a "aws/request.Request" representing the -// client's request for the CreateDeviceProfile operation. The "output" return +// AssociateWirelessGatewayWithCertificateRequest generates a "aws/request.Request" representing the +// client's request for the AssociateWirelessGatewayWithCertificate operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See CreateDeviceProfile for more information on using the CreateDeviceProfile +// See AssociateWirelessGatewayWithCertificate for more information on using the AssociateWirelessGatewayWithCertificate // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the CreateDeviceProfileRequest method. -// req, resp := client.CreateDeviceProfileRequest(params) +// // Example sending a request using the AssociateWirelessGatewayWithCertificateRequest method. +// req, resp := client.AssociateWirelessGatewayWithCertificateRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/CreateDeviceProfile -func (c *IoTWireless) CreateDeviceProfileRequest(input *CreateDeviceProfileInput) (req *request.Request, output *CreateDeviceProfileOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/AssociateWirelessGatewayWithCertificate +func (c *IoTWireless) AssociateWirelessGatewayWithCertificateRequest(input *AssociateWirelessGatewayWithCertificateInput) (req *request.Request, output *AssociateWirelessGatewayWithCertificateOutput) { op := &request.Operation{ - Name: opCreateDeviceProfile, - HTTPMethod: "POST", - HTTPPath: "/device-profiles", + Name: opAssociateWirelessGatewayWithCertificate, + HTTPMethod: "PUT", + HTTPPath: "/wireless-gateways/{Id}/certificate", } if input == nil { - input = &CreateDeviceProfileInput{} + input = &AssociateWirelessGatewayWithCertificateInput{} } - output = &CreateDeviceProfileOutput{} + output = &AssociateWirelessGatewayWithCertificateOutput{} req = c.newRequest(op, input, output) return } -// CreateDeviceProfile API operation for AWS IoT Wireless. +// AssociateWirelessGatewayWithCertificate API operation for AWS IoT Wireless. // -// Creates a new device profile. +// Associates a wireless gateway with a certificate. // // Returns awserr.Error for service API and SDK errors. Use runtime 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 IoT Wireless's -// API operation CreateDeviceProfile for usage and error information. +// API operation AssociateWirelessGatewayWithCertificate for usage and error information. // // Returned Error Types: // * ValidationException @@ -544,6 +547,9 @@ func (c *IoTWireless) CreateDeviceProfileRequest(input *CreateDeviceProfileInput // * AccessDeniedException // User does not have permission to perform this action. // +// * ResourceNotFoundException +// Resource does not exist. +// // * ConflictException // Adding, updating, or deleting the resource can cause an inconsistent state. // @@ -553,171 +559,176 @@ func (c *IoTWireless) CreateDeviceProfileRequest(input *CreateDeviceProfileInput // * ThrottlingException // The request was denied because it exceeded the allowed API request rate. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/CreateDeviceProfile -func (c *IoTWireless) CreateDeviceProfile(input *CreateDeviceProfileInput) (*CreateDeviceProfileOutput, error) { - req, out := c.CreateDeviceProfileRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/AssociateWirelessGatewayWithCertificate +func (c *IoTWireless) AssociateWirelessGatewayWithCertificate(input *AssociateWirelessGatewayWithCertificateInput) (*AssociateWirelessGatewayWithCertificateOutput, error) { + req, out := c.AssociateWirelessGatewayWithCertificateRequest(input) return out, req.Send() } -// CreateDeviceProfileWithContext is the same as CreateDeviceProfile with the addition of +// AssociateWirelessGatewayWithCertificateWithContext is the same as AssociateWirelessGatewayWithCertificate with the addition of // the ability to pass a context and additional request options. // -// See CreateDeviceProfile for details on how to use this API operation. +// See AssociateWirelessGatewayWithCertificate for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *IoTWireless) CreateDeviceProfileWithContext(ctx aws.Context, input *CreateDeviceProfileInput, opts ...request.Option) (*CreateDeviceProfileOutput, error) { - req, out := c.CreateDeviceProfileRequest(input) +func (c *IoTWireless) AssociateWirelessGatewayWithCertificateWithContext(ctx aws.Context, input *AssociateWirelessGatewayWithCertificateInput, opts ...request.Option) (*AssociateWirelessGatewayWithCertificateOutput, error) { + req, out := c.AssociateWirelessGatewayWithCertificateRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opCreateServiceProfile = "CreateServiceProfile" +const opAssociateWirelessGatewayWithThing = "AssociateWirelessGatewayWithThing" -// CreateServiceProfileRequest generates a "aws/request.Request" representing the -// client's request for the CreateServiceProfile operation. The "output" return +// AssociateWirelessGatewayWithThingRequest generates a "aws/request.Request" representing the +// client's request for the AssociateWirelessGatewayWithThing operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See CreateServiceProfile for more information on using the CreateServiceProfile +// See AssociateWirelessGatewayWithThing for more information on using the AssociateWirelessGatewayWithThing // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the CreateServiceProfileRequest method. -// req, resp := client.CreateServiceProfileRequest(params) +// // Example sending a request using the AssociateWirelessGatewayWithThingRequest method. +// req, resp := client.AssociateWirelessGatewayWithThingRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/CreateServiceProfile -func (c *IoTWireless) CreateServiceProfileRequest(input *CreateServiceProfileInput) (req *request.Request, output *CreateServiceProfileOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/AssociateWirelessGatewayWithThing +func (c *IoTWireless) AssociateWirelessGatewayWithThingRequest(input *AssociateWirelessGatewayWithThingInput) (req *request.Request, output *AssociateWirelessGatewayWithThingOutput) { op := &request.Operation{ - Name: opCreateServiceProfile, - HTTPMethod: "POST", - HTTPPath: "/service-profiles", + Name: opAssociateWirelessGatewayWithThing, + HTTPMethod: "PUT", + HTTPPath: "/wireless-gateways/{Id}/thing", } if input == nil { - input = &CreateServiceProfileInput{} + input = &AssociateWirelessGatewayWithThingInput{} } - output = &CreateServiceProfileOutput{} + output = &AssociateWirelessGatewayWithThingOutput{} req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// CreateServiceProfile API operation for AWS IoT Wireless. +// AssociateWirelessGatewayWithThing API operation for AWS IoT Wireless. // -// Creates a new service profile. +// Associates a wireless gateway with a thing. // // Returns awserr.Error for service API and SDK errors. Use runtime 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 IoT Wireless's -// API operation CreateServiceProfile for usage and error information. +// API operation AssociateWirelessGatewayWithThing for usage and error information. // // Returned Error Types: // * ValidationException // The input did not meet the specified constraints. // +// * ResourceNotFoundException +// Resource does not exist. +// // * AccessDeniedException // User does not have permission to perform this action. // // * ConflictException // Adding, updating, or deleting the resource can cause an inconsistent state. // -// * InternalServerException -// An unexpected error occurred while processing a request. -// // * ThrottlingException // The request was denied because it exceeded the allowed API request rate. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/CreateServiceProfile -func (c *IoTWireless) CreateServiceProfile(input *CreateServiceProfileInput) (*CreateServiceProfileOutput, error) { - req, out := c.CreateServiceProfileRequest(input) +// * InternalServerException +// An unexpected error occurred while processing a request. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/AssociateWirelessGatewayWithThing +func (c *IoTWireless) AssociateWirelessGatewayWithThing(input *AssociateWirelessGatewayWithThingInput) (*AssociateWirelessGatewayWithThingOutput, error) { + req, out := c.AssociateWirelessGatewayWithThingRequest(input) return out, req.Send() } -// CreateServiceProfileWithContext is the same as CreateServiceProfile with the addition of +// AssociateWirelessGatewayWithThingWithContext is the same as AssociateWirelessGatewayWithThing with the addition of // the ability to pass a context and additional request options. // -// See CreateServiceProfile for details on how to use this API operation. +// See AssociateWirelessGatewayWithThing for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *IoTWireless) CreateServiceProfileWithContext(ctx aws.Context, input *CreateServiceProfileInput, opts ...request.Option) (*CreateServiceProfileOutput, error) { - req, out := c.CreateServiceProfileRequest(input) +func (c *IoTWireless) AssociateWirelessGatewayWithThingWithContext(ctx aws.Context, input *AssociateWirelessGatewayWithThingInput, opts ...request.Option) (*AssociateWirelessGatewayWithThingOutput, error) { + req, out := c.AssociateWirelessGatewayWithThingRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opCreateWirelessDevice = "CreateWirelessDevice" +const opCancelMulticastGroupSession = "CancelMulticastGroupSession" -// CreateWirelessDeviceRequest generates a "aws/request.Request" representing the -// client's request for the CreateWirelessDevice operation. The "output" return +// CancelMulticastGroupSessionRequest generates a "aws/request.Request" representing the +// client's request for the CancelMulticastGroupSession operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See CreateWirelessDevice for more information on using the CreateWirelessDevice +// See CancelMulticastGroupSession for more information on using the CancelMulticastGroupSession // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the CreateWirelessDeviceRequest method. -// req, resp := client.CreateWirelessDeviceRequest(params) +// // Example sending a request using the CancelMulticastGroupSessionRequest method. +// req, resp := client.CancelMulticastGroupSessionRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/CreateWirelessDevice -func (c *IoTWireless) CreateWirelessDeviceRequest(input *CreateWirelessDeviceInput) (req *request.Request, output *CreateWirelessDeviceOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/CancelMulticastGroupSession +func (c *IoTWireless) CancelMulticastGroupSessionRequest(input *CancelMulticastGroupSessionInput) (req *request.Request, output *CancelMulticastGroupSessionOutput) { op := &request.Operation{ - Name: opCreateWirelessDevice, - HTTPMethod: "POST", - HTTPPath: "/wireless-devices", + Name: opCancelMulticastGroupSession, + HTTPMethod: "DELETE", + HTTPPath: "/multicast-groups/{Id}/session", } if input == nil { - input = &CreateWirelessDeviceInput{} + input = &CancelMulticastGroupSessionInput{} } - output = &CreateWirelessDeviceOutput{} + output = &CancelMulticastGroupSessionOutput{} req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// CreateWirelessDevice API operation for AWS IoT Wireless. +// CancelMulticastGroupSession API operation for AWS IoT Wireless. // -// Provisions a wireless device. +// Cancels an existing multicast group session. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS IoT Wireless's -// API operation CreateWirelessDevice for usage and error information. +// API operation CancelMulticastGroupSession for usage and error information. // // Returned Error Types: // * ValidationException @@ -738,85 +749,88 @@ func (c *IoTWireless) CreateWirelessDeviceRequest(input *CreateWirelessDeviceInp // * ThrottlingException // The request was denied because it exceeded the allowed API request rate. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/CreateWirelessDevice -func (c *IoTWireless) CreateWirelessDevice(input *CreateWirelessDeviceInput) (*CreateWirelessDeviceOutput, error) { - req, out := c.CreateWirelessDeviceRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/CancelMulticastGroupSession +func (c *IoTWireless) CancelMulticastGroupSession(input *CancelMulticastGroupSessionInput) (*CancelMulticastGroupSessionOutput, error) { + req, out := c.CancelMulticastGroupSessionRequest(input) return out, req.Send() } -// CreateWirelessDeviceWithContext is the same as CreateWirelessDevice with the addition of +// CancelMulticastGroupSessionWithContext is the same as CancelMulticastGroupSession with the addition of // the ability to pass a context and additional request options. // -// See CreateWirelessDevice for details on how to use this API operation. +// See CancelMulticastGroupSession for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *IoTWireless) CreateWirelessDeviceWithContext(ctx aws.Context, input *CreateWirelessDeviceInput, opts ...request.Option) (*CreateWirelessDeviceOutput, error) { - req, out := c.CreateWirelessDeviceRequest(input) +func (c *IoTWireless) CancelMulticastGroupSessionWithContext(ctx aws.Context, input *CancelMulticastGroupSessionInput, opts ...request.Option) (*CancelMulticastGroupSessionOutput, error) { + req, out := c.CancelMulticastGroupSessionRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opCreateWirelessGateway = "CreateWirelessGateway" +const opCreateDestination = "CreateDestination" -// CreateWirelessGatewayRequest generates a "aws/request.Request" representing the -// client's request for the CreateWirelessGateway operation. The "output" return +// CreateDestinationRequest generates a "aws/request.Request" representing the +// client's request for the CreateDestination operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See CreateWirelessGateway for more information on using the CreateWirelessGateway +// See CreateDestination for more information on using the CreateDestination // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the CreateWirelessGatewayRequest method. -// req, resp := client.CreateWirelessGatewayRequest(params) +// // Example sending a request using the CreateDestinationRequest method. +// req, resp := client.CreateDestinationRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/CreateWirelessGateway -func (c *IoTWireless) CreateWirelessGatewayRequest(input *CreateWirelessGatewayInput) (req *request.Request, output *CreateWirelessGatewayOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/CreateDestination +func (c *IoTWireless) CreateDestinationRequest(input *CreateDestinationInput) (req *request.Request, output *CreateDestinationOutput) { op := &request.Operation{ - Name: opCreateWirelessGateway, + Name: opCreateDestination, HTTPMethod: "POST", - HTTPPath: "/wireless-gateways", + HTTPPath: "/destinations", } if input == nil { - input = &CreateWirelessGatewayInput{} + input = &CreateDestinationInput{} } - output = &CreateWirelessGatewayOutput{} + output = &CreateDestinationOutput{} req = c.newRequest(op, input, output) return } -// CreateWirelessGateway API operation for AWS IoT Wireless. +// CreateDestination API operation for AWS IoT Wireless. // -// Provisions a wireless gateway. +// Creates a new destination that maps a device message to an AWS IoT rule. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS IoT Wireless's -// API operation CreateWirelessGateway for usage and error information. +// API operation CreateDestination for usage and error information. // // Returned Error Types: // * ValidationException // The input did not meet the specified constraints. // +// * ResourceNotFoundException +// Resource does not exist. +// // * AccessDeniedException // User does not have permission to perform this action. // @@ -829,80 +843,80 @@ func (c *IoTWireless) CreateWirelessGatewayRequest(input *CreateWirelessGatewayI // * ThrottlingException // The request was denied because it exceeded the allowed API request rate. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/CreateWirelessGateway -func (c *IoTWireless) CreateWirelessGateway(input *CreateWirelessGatewayInput) (*CreateWirelessGatewayOutput, error) { - req, out := c.CreateWirelessGatewayRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/CreateDestination +func (c *IoTWireless) CreateDestination(input *CreateDestinationInput) (*CreateDestinationOutput, error) { + req, out := c.CreateDestinationRequest(input) return out, req.Send() } -// CreateWirelessGatewayWithContext is the same as CreateWirelessGateway with the addition of +// CreateDestinationWithContext is the same as CreateDestination with the addition of // the ability to pass a context and additional request options. // -// See CreateWirelessGateway for details on how to use this API operation. +// See CreateDestination for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *IoTWireless) CreateWirelessGatewayWithContext(ctx aws.Context, input *CreateWirelessGatewayInput, opts ...request.Option) (*CreateWirelessGatewayOutput, error) { - req, out := c.CreateWirelessGatewayRequest(input) +func (c *IoTWireless) CreateDestinationWithContext(ctx aws.Context, input *CreateDestinationInput, opts ...request.Option) (*CreateDestinationOutput, error) { + req, out := c.CreateDestinationRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opCreateWirelessGatewayTask = "CreateWirelessGatewayTask" +const opCreateDeviceProfile = "CreateDeviceProfile" -// CreateWirelessGatewayTaskRequest generates a "aws/request.Request" representing the -// client's request for the CreateWirelessGatewayTask operation. The "output" return +// CreateDeviceProfileRequest generates a "aws/request.Request" representing the +// client's request for the CreateDeviceProfile operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See CreateWirelessGatewayTask for more information on using the CreateWirelessGatewayTask +// See CreateDeviceProfile for more information on using the CreateDeviceProfile // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the CreateWirelessGatewayTaskRequest method. -// req, resp := client.CreateWirelessGatewayTaskRequest(params) +// // Example sending a request using the CreateDeviceProfileRequest method. +// req, resp := client.CreateDeviceProfileRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/CreateWirelessGatewayTask -func (c *IoTWireless) CreateWirelessGatewayTaskRequest(input *CreateWirelessGatewayTaskInput) (req *request.Request, output *CreateWirelessGatewayTaskOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/CreateDeviceProfile +func (c *IoTWireless) CreateDeviceProfileRequest(input *CreateDeviceProfileInput) (req *request.Request, output *CreateDeviceProfileOutput) { op := &request.Operation{ - Name: opCreateWirelessGatewayTask, + Name: opCreateDeviceProfile, HTTPMethod: "POST", - HTTPPath: "/wireless-gateways/{Id}/tasks", + HTTPPath: "/device-profiles", } if input == nil { - input = &CreateWirelessGatewayTaskInput{} + input = &CreateDeviceProfileInput{} } - output = &CreateWirelessGatewayTaskOutput{} + output = &CreateDeviceProfileOutput{} req = c.newRequest(op, input, output) return } -// CreateWirelessGatewayTask API operation for AWS IoT Wireless. +// CreateDeviceProfile API operation for AWS IoT Wireless. // -// Creates a task for a wireless gateway. +// Creates a new device profile. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS IoT Wireless's -// API operation CreateWirelessGatewayTask for usage and error information. +// API operation CreateDeviceProfile for usage and error information. // // Returned Error Types: // * ValidationException @@ -911,9 +925,6 @@ func (c *IoTWireless) CreateWirelessGatewayTaskRequest(input *CreateWirelessGate // * AccessDeniedException // User does not have permission to perform this action. // -// * ResourceNotFoundException -// Resource does not exist. -// // * ConflictException // Adding, updating, or deleting the resource can cause an inconsistent state. // @@ -923,91 +934,91 @@ func (c *IoTWireless) CreateWirelessGatewayTaskRequest(input *CreateWirelessGate // * ThrottlingException // The request was denied because it exceeded the allowed API request rate. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/CreateWirelessGatewayTask -func (c *IoTWireless) CreateWirelessGatewayTask(input *CreateWirelessGatewayTaskInput) (*CreateWirelessGatewayTaskOutput, error) { - req, out := c.CreateWirelessGatewayTaskRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/CreateDeviceProfile +func (c *IoTWireless) CreateDeviceProfile(input *CreateDeviceProfileInput) (*CreateDeviceProfileOutput, error) { + req, out := c.CreateDeviceProfileRequest(input) return out, req.Send() } -// CreateWirelessGatewayTaskWithContext is the same as CreateWirelessGatewayTask with the addition of +// CreateDeviceProfileWithContext is the same as CreateDeviceProfile with the addition of // the ability to pass a context and additional request options. // -// See CreateWirelessGatewayTask for details on how to use this API operation. +// See CreateDeviceProfile for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *IoTWireless) CreateWirelessGatewayTaskWithContext(ctx aws.Context, input *CreateWirelessGatewayTaskInput, opts ...request.Option) (*CreateWirelessGatewayTaskOutput, error) { - req, out := c.CreateWirelessGatewayTaskRequest(input) +func (c *IoTWireless) CreateDeviceProfileWithContext(ctx aws.Context, input *CreateDeviceProfileInput, opts ...request.Option) (*CreateDeviceProfileOutput, error) { + req, out := c.CreateDeviceProfileRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opCreateWirelessGatewayTaskDefinition = "CreateWirelessGatewayTaskDefinition" +const opCreateFuotaTask = "CreateFuotaTask" -// CreateWirelessGatewayTaskDefinitionRequest generates a "aws/request.Request" representing the -// client's request for the CreateWirelessGatewayTaskDefinition operation. The "output" return +// CreateFuotaTaskRequest generates a "aws/request.Request" representing the +// client's request for the CreateFuotaTask operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See CreateWirelessGatewayTaskDefinition for more information on using the CreateWirelessGatewayTaskDefinition +// See CreateFuotaTask for more information on using the CreateFuotaTask // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the CreateWirelessGatewayTaskDefinitionRequest method. -// req, resp := client.CreateWirelessGatewayTaskDefinitionRequest(params) +// // Example sending a request using the CreateFuotaTaskRequest method. +// req, resp := client.CreateFuotaTaskRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/CreateWirelessGatewayTaskDefinition -func (c *IoTWireless) CreateWirelessGatewayTaskDefinitionRequest(input *CreateWirelessGatewayTaskDefinitionInput) (req *request.Request, output *CreateWirelessGatewayTaskDefinitionOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/CreateFuotaTask +func (c *IoTWireless) CreateFuotaTaskRequest(input *CreateFuotaTaskInput) (req *request.Request, output *CreateFuotaTaskOutput) { op := &request.Operation{ - Name: opCreateWirelessGatewayTaskDefinition, + Name: opCreateFuotaTask, HTTPMethod: "POST", - HTTPPath: "/wireless-gateway-task-definitions", + HTTPPath: "/fuota-tasks", } if input == nil { - input = &CreateWirelessGatewayTaskDefinitionInput{} + input = &CreateFuotaTaskInput{} } - output = &CreateWirelessGatewayTaskDefinitionOutput{} + output = &CreateFuotaTaskOutput{} req = c.newRequest(op, input, output) return } -// CreateWirelessGatewayTaskDefinition API operation for AWS IoT Wireless. +// CreateFuotaTask API operation for AWS IoT Wireless. // -// Creates a gateway task definition. +// Creates a FUOTA task. // // Returns awserr.Error for service API and SDK errors. Use runtime 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 IoT Wireless's -// API operation CreateWirelessGatewayTaskDefinition for usage and error information. +// API operation CreateFuotaTask for usage and error information. // // Returned Error Types: // * ValidationException // The input did not meet the specified constraints. // -// * AccessDeniedException -// User does not have permission to perform this action. -// // * ResourceNotFoundException // Resource does not exist. // +// * AccessDeniedException +// User does not have permission to perform this action. +// // * ConflictException // Adding, updating, or deleting the resource can cause an inconsistent state. // @@ -1017,81 +1028,80 @@ func (c *IoTWireless) CreateWirelessGatewayTaskDefinitionRequest(input *CreateWi // * ThrottlingException // The request was denied because it exceeded the allowed API request rate. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/CreateWirelessGatewayTaskDefinition -func (c *IoTWireless) CreateWirelessGatewayTaskDefinition(input *CreateWirelessGatewayTaskDefinitionInput) (*CreateWirelessGatewayTaskDefinitionOutput, error) { - req, out := c.CreateWirelessGatewayTaskDefinitionRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/CreateFuotaTask +func (c *IoTWireless) CreateFuotaTask(input *CreateFuotaTaskInput) (*CreateFuotaTaskOutput, error) { + req, out := c.CreateFuotaTaskRequest(input) return out, req.Send() } -// CreateWirelessGatewayTaskDefinitionWithContext is the same as CreateWirelessGatewayTaskDefinition with the addition of +// CreateFuotaTaskWithContext is the same as CreateFuotaTask with the addition of // the ability to pass a context and additional request options. // -// See CreateWirelessGatewayTaskDefinition for details on how to use this API operation. +// See CreateFuotaTask for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *IoTWireless) CreateWirelessGatewayTaskDefinitionWithContext(ctx aws.Context, input *CreateWirelessGatewayTaskDefinitionInput, opts ...request.Option) (*CreateWirelessGatewayTaskDefinitionOutput, error) { - req, out := c.CreateWirelessGatewayTaskDefinitionRequest(input) +func (c *IoTWireless) CreateFuotaTaskWithContext(ctx aws.Context, input *CreateFuotaTaskInput, opts ...request.Option) (*CreateFuotaTaskOutput, error) { + req, out := c.CreateFuotaTaskRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opDeleteDestination = "DeleteDestination" +const opCreateMulticastGroup = "CreateMulticastGroup" -// DeleteDestinationRequest generates a "aws/request.Request" representing the -// client's request for the DeleteDestination operation. The "output" return +// CreateMulticastGroupRequest generates a "aws/request.Request" representing the +// client's request for the CreateMulticastGroup operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See DeleteDestination for more information on using the DeleteDestination +// See CreateMulticastGroup for more information on using the CreateMulticastGroup // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the DeleteDestinationRequest method. -// req, resp := client.DeleteDestinationRequest(params) +// // Example sending a request using the CreateMulticastGroupRequest method. +// req, resp := client.CreateMulticastGroupRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/DeleteDestination -func (c *IoTWireless) DeleteDestinationRequest(input *DeleteDestinationInput) (req *request.Request, output *DeleteDestinationOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/CreateMulticastGroup +func (c *IoTWireless) CreateMulticastGroupRequest(input *CreateMulticastGroupInput) (req *request.Request, output *CreateMulticastGroupOutput) { op := &request.Operation{ - Name: opDeleteDestination, - HTTPMethod: "DELETE", - HTTPPath: "/destinations/{Name}", + Name: opCreateMulticastGroup, + HTTPMethod: "POST", + HTTPPath: "/multicast-groups", } if input == nil { - input = &DeleteDestinationInput{} + input = &CreateMulticastGroupInput{} } - output = &DeleteDestinationOutput{} + output = &CreateMulticastGroupOutput{} req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// DeleteDestination API operation for AWS IoT Wireless. +// CreateMulticastGroup API operation for AWS IoT Wireless. // -// Deletes a destination. +// Creates a multicast group. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS IoT Wireless's -// API operation DeleteDestination for usage and error information. +// API operation CreateMulticastGroup for usage and error information. // // Returned Error Types: // * ValidationException @@ -1103,90 +1113,89 @@ func (c *IoTWireless) DeleteDestinationRequest(input *DeleteDestinationInput) (r // * AccessDeniedException // User does not have permission to perform this action. // -// * InternalServerException -// An unexpected error occurred while processing a request. -// // * ConflictException // Adding, updating, or deleting the resource can cause an inconsistent state. // +// * InternalServerException +// An unexpected error occurred while processing a request. +// // * ThrottlingException // The request was denied because it exceeded the allowed API request rate. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/DeleteDestination -func (c *IoTWireless) DeleteDestination(input *DeleteDestinationInput) (*DeleteDestinationOutput, error) { - req, out := c.DeleteDestinationRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/CreateMulticastGroup +func (c *IoTWireless) CreateMulticastGroup(input *CreateMulticastGroupInput) (*CreateMulticastGroupOutput, error) { + req, out := c.CreateMulticastGroupRequest(input) return out, req.Send() } -// DeleteDestinationWithContext is the same as DeleteDestination with the addition of +// CreateMulticastGroupWithContext is the same as CreateMulticastGroup with the addition of // the ability to pass a context and additional request options. // -// See DeleteDestination for details on how to use this API operation. +// See CreateMulticastGroup for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *IoTWireless) DeleteDestinationWithContext(ctx aws.Context, input *DeleteDestinationInput, opts ...request.Option) (*DeleteDestinationOutput, error) { - req, out := c.DeleteDestinationRequest(input) +func (c *IoTWireless) CreateMulticastGroupWithContext(ctx aws.Context, input *CreateMulticastGroupInput, opts ...request.Option) (*CreateMulticastGroupOutput, error) { + req, out := c.CreateMulticastGroupRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opDeleteDeviceProfile = "DeleteDeviceProfile" +const opCreateServiceProfile = "CreateServiceProfile" -// DeleteDeviceProfileRequest generates a "aws/request.Request" representing the -// client's request for the DeleteDeviceProfile operation. The "output" return +// CreateServiceProfileRequest generates a "aws/request.Request" representing the +// client's request for the CreateServiceProfile operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See DeleteDeviceProfile for more information on using the DeleteDeviceProfile +// See CreateServiceProfile for more information on using the CreateServiceProfile // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the DeleteDeviceProfileRequest method. -// req, resp := client.DeleteDeviceProfileRequest(params) +// // Example sending a request using the CreateServiceProfileRequest method. +// req, resp := client.CreateServiceProfileRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/DeleteDeviceProfile -func (c *IoTWireless) DeleteDeviceProfileRequest(input *DeleteDeviceProfileInput) (req *request.Request, output *DeleteDeviceProfileOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/CreateServiceProfile +func (c *IoTWireless) CreateServiceProfileRequest(input *CreateServiceProfileInput) (req *request.Request, output *CreateServiceProfileOutput) { op := &request.Operation{ - Name: opDeleteDeviceProfile, - HTTPMethod: "DELETE", - HTTPPath: "/device-profiles/{Id}", + Name: opCreateServiceProfile, + HTTPMethod: "POST", + HTTPPath: "/service-profiles", } if input == nil { - input = &DeleteDeviceProfileInput{} + input = &CreateServiceProfileInput{} } - output = &DeleteDeviceProfileOutput{} + output = &CreateServiceProfileOutput{} req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// DeleteDeviceProfile API operation for AWS IoT Wireless. +// CreateServiceProfile API operation for AWS IoT Wireless. // -// Deletes a device profile. +// Creates a new service profile. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS IoT Wireless's -// API operation DeleteDeviceProfile for usage and error information. +// API operation CreateServiceProfile for usage and error information. // // Returned Error Types: // * ValidationException @@ -1195,290 +1204,287 @@ func (c *IoTWireless) DeleteDeviceProfileRequest(input *DeleteDeviceProfileInput // * AccessDeniedException // User does not have permission to perform this action. // -// * ResourceNotFoundException -// Resource does not exist. +// * ConflictException +// Adding, updating, or deleting the resource can cause an inconsistent state. // // * InternalServerException // An unexpected error occurred while processing a request. // -// * ConflictException -// Adding, updating, or deleting the resource can cause an inconsistent state. -// // * ThrottlingException // The request was denied because it exceeded the allowed API request rate. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/DeleteDeviceProfile -func (c *IoTWireless) DeleteDeviceProfile(input *DeleteDeviceProfileInput) (*DeleteDeviceProfileOutput, error) { - req, out := c.DeleteDeviceProfileRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/CreateServiceProfile +func (c *IoTWireless) CreateServiceProfile(input *CreateServiceProfileInput) (*CreateServiceProfileOutput, error) { + req, out := c.CreateServiceProfileRequest(input) return out, req.Send() } -// DeleteDeviceProfileWithContext is the same as DeleteDeviceProfile with the addition of +// CreateServiceProfileWithContext is the same as CreateServiceProfile with the addition of // the ability to pass a context and additional request options. // -// See DeleteDeviceProfile for details on how to use this API operation. +// See CreateServiceProfile for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *IoTWireless) DeleteDeviceProfileWithContext(ctx aws.Context, input *DeleteDeviceProfileInput, opts ...request.Option) (*DeleteDeviceProfileOutput, error) { - req, out := c.DeleteDeviceProfileRequest(input) +func (c *IoTWireless) CreateServiceProfileWithContext(ctx aws.Context, input *CreateServiceProfileInput, opts ...request.Option) (*CreateServiceProfileOutput, error) { + req, out := c.CreateServiceProfileRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opDeleteServiceProfile = "DeleteServiceProfile" +const opCreateWirelessDevice = "CreateWirelessDevice" -// DeleteServiceProfileRequest generates a "aws/request.Request" representing the -// client's request for the DeleteServiceProfile operation. The "output" return +// CreateWirelessDeviceRequest generates a "aws/request.Request" representing the +// client's request for the CreateWirelessDevice operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See DeleteServiceProfile for more information on using the DeleteServiceProfile +// See CreateWirelessDevice for more information on using the CreateWirelessDevice // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the DeleteServiceProfileRequest method. -// req, resp := client.DeleteServiceProfileRequest(params) +// // Example sending a request using the CreateWirelessDeviceRequest method. +// req, resp := client.CreateWirelessDeviceRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/DeleteServiceProfile -func (c *IoTWireless) DeleteServiceProfileRequest(input *DeleteServiceProfileInput) (req *request.Request, output *DeleteServiceProfileOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/CreateWirelessDevice +func (c *IoTWireless) CreateWirelessDeviceRequest(input *CreateWirelessDeviceInput) (req *request.Request, output *CreateWirelessDeviceOutput) { op := &request.Operation{ - Name: opDeleteServiceProfile, - HTTPMethod: "DELETE", - HTTPPath: "/service-profiles/{Id}", + Name: opCreateWirelessDevice, + HTTPMethod: "POST", + HTTPPath: "/wireless-devices", } if input == nil { - input = &DeleteServiceProfileInput{} + input = &CreateWirelessDeviceInput{} } - output = &DeleteServiceProfileOutput{} + output = &CreateWirelessDeviceOutput{} req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// DeleteServiceProfile API operation for AWS IoT Wireless. +// CreateWirelessDevice API operation for AWS IoT Wireless. // -// Deletes a service profile. +// Provisions a wireless device. // // Returns awserr.Error for service API and SDK errors. Use runtime 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 IoT Wireless's -// API operation DeleteServiceProfile for usage and error information. +// API operation CreateWirelessDevice for usage and error information. // // Returned Error Types: // * ValidationException // The input did not meet the specified constraints. // -// * AccessDeniedException -// User does not have permission to perform this action. -// // * ResourceNotFoundException // Resource does not exist. // -// * InternalServerException -// An unexpected error occurred while processing a request. +// * AccessDeniedException +// User does not have permission to perform this action. // // * ConflictException // Adding, updating, or deleting the resource can cause an inconsistent state. // +// * InternalServerException +// An unexpected error occurred while processing a request. +// // * ThrottlingException // The request was denied because it exceeded the allowed API request rate. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/DeleteServiceProfile -func (c *IoTWireless) DeleteServiceProfile(input *DeleteServiceProfileInput) (*DeleteServiceProfileOutput, error) { - req, out := c.DeleteServiceProfileRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/CreateWirelessDevice +func (c *IoTWireless) CreateWirelessDevice(input *CreateWirelessDeviceInput) (*CreateWirelessDeviceOutput, error) { + req, out := c.CreateWirelessDeviceRequest(input) return out, req.Send() } -// DeleteServiceProfileWithContext is the same as DeleteServiceProfile with the addition of +// CreateWirelessDeviceWithContext is the same as CreateWirelessDevice with the addition of // the ability to pass a context and additional request options. // -// See DeleteServiceProfile for details on how to use this API operation. +// See CreateWirelessDevice for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *IoTWireless) DeleteServiceProfileWithContext(ctx aws.Context, input *DeleteServiceProfileInput, opts ...request.Option) (*DeleteServiceProfileOutput, error) { - req, out := c.DeleteServiceProfileRequest(input) +func (c *IoTWireless) CreateWirelessDeviceWithContext(ctx aws.Context, input *CreateWirelessDeviceInput, opts ...request.Option) (*CreateWirelessDeviceOutput, error) { + req, out := c.CreateWirelessDeviceRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opDeleteWirelessDevice = "DeleteWirelessDevice" +const opCreateWirelessGateway = "CreateWirelessGateway" -// DeleteWirelessDeviceRequest generates a "aws/request.Request" representing the -// client's request for the DeleteWirelessDevice operation. The "output" return +// CreateWirelessGatewayRequest generates a "aws/request.Request" representing the +// client's request for the CreateWirelessGateway operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See DeleteWirelessDevice for more information on using the DeleteWirelessDevice +// See CreateWirelessGateway for more information on using the CreateWirelessGateway // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the DeleteWirelessDeviceRequest method. -// req, resp := client.DeleteWirelessDeviceRequest(params) +// // Example sending a request using the CreateWirelessGatewayRequest method. +// req, resp := client.CreateWirelessGatewayRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/DeleteWirelessDevice -func (c *IoTWireless) DeleteWirelessDeviceRequest(input *DeleteWirelessDeviceInput) (req *request.Request, output *DeleteWirelessDeviceOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/CreateWirelessGateway +func (c *IoTWireless) CreateWirelessGatewayRequest(input *CreateWirelessGatewayInput) (req *request.Request, output *CreateWirelessGatewayOutput) { op := &request.Operation{ - Name: opDeleteWirelessDevice, - HTTPMethod: "DELETE", - HTTPPath: "/wireless-devices/{Id}", + Name: opCreateWirelessGateway, + HTTPMethod: "POST", + HTTPPath: "/wireless-gateways", } if input == nil { - input = &DeleteWirelessDeviceInput{} + input = &CreateWirelessGatewayInput{} } - output = &DeleteWirelessDeviceOutput{} + output = &CreateWirelessGatewayOutput{} req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// DeleteWirelessDevice API operation for AWS IoT Wireless. +// CreateWirelessGateway API operation for AWS IoT Wireless. // -// Deletes a wireless device. +// Provisions a wireless 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 IoT Wireless's -// API operation DeleteWirelessDevice for usage and error information. +// API operation CreateWirelessGateway for usage and error information. // // Returned Error Types: // * ValidationException // The input did not meet the specified constraints. // -// * ResourceNotFoundException -// Resource does not exist. -// // * AccessDeniedException // User does not have permission to perform this action. // +// * ConflictException +// Adding, updating, or deleting the resource can cause an inconsistent state. +// // * InternalServerException // An unexpected error occurred while processing a request. // // * ThrottlingException // The request was denied because it exceeded the allowed API request rate. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/DeleteWirelessDevice -func (c *IoTWireless) DeleteWirelessDevice(input *DeleteWirelessDeviceInput) (*DeleteWirelessDeviceOutput, error) { - req, out := c.DeleteWirelessDeviceRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/CreateWirelessGateway +func (c *IoTWireless) CreateWirelessGateway(input *CreateWirelessGatewayInput) (*CreateWirelessGatewayOutput, error) { + req, out := c.CreateWirelessGatewayRequest(input) return out, req.Send() } -// DeleteWirelessDeviceWithContext is the same as DeleteWirelessDevice with the addition of +// CreateWirelessGatewayWithContext is the same as CreateWirelessGateway with the addition of // the ability to pass a context and additional request options. // -// See DeleteWirelessDevice for details on how to use this API operation. +// See CreateWirelessGateway for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *IoTWireless) DeleteWirelessDeviceWithContext(ctx aws.Context, input *DeleteWirelessDeviceInput, opts ...request.Option) (*DeleteWirelessDeviceOutput, error) { - req, out := c.DeleteWirelessDeviceRequest(input) +func (c *IoTWireless) CreateWirelessGatewayWithContext(ctx aws.Context, input *CreateWirelessGatewayInput, opts ...request.Option) (*CreateWirelessGatewayOutput, error) { + req, out := c.CreateWirelessGatewayRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opDeleteWirelessGateway = "DeleteWirelessGateway" +const opCreateWirelessGatewayTask = "CreateWirelessGatewayTask" -// DeleteWirelessGatewayRequest generates a "aws/request.Request" representing the -// client's request for the DeleteWirelessGateway operation. The "output" return +// CreateWirelessGatewayTaskRequest generates a "aws/request.Request" representing the +// client's request for the CreateWirelessGatewayTask operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See DeleteWirelessGateway for more information on using the DeleteWirelessGateway +// See CreateWirelessGatewayTask for more information on using the CreateWirelessGatewayTask // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the DeleteWirelessGatewayRequest method. -// req, resp := client.DeleteWirelessGatewayRequest(params) +// // Example sending a request using the CreateWirelessGatewayTaskRequest method. +// req, resp := client.CreateWirelessGatewayTaskRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/DeleteWirelessGateway -func (c *IoTWireless) DeleteWirelessGatewayRequest(input *DeleteWirelessGatewayInput) (req *request.Request, output *DeleteWirelessGatewayOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/CreateWirelessGatewayTask +func (c *IoTWireless) CreateWirelessGatewayTaskRequest(input *CreateWirelessGatewayTaskInput) (req *request.Request, output *CreateWirelessGatewayTaskOutput) { op := &request.Operation{ - Name: opDeleteWirelessGateway, - HTTPMethod: "DELETE", - HTTPPath: "/wireless-gateways/{Id}", + Name: opCreateWirelessGatewayTask, + HTTPMethod: "POST", + HTTPPath: "/wireless-gateways/{Id}/tasks", } if input == nil { - input = &DeleteWirelessGatewayInput{} + input = &CreateWirelessGatewayTaskInput{} } - output = &DeleteWirelessGatewayOutput{} + output = &CreateWirelessGatewayTaskOutput{} req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// DeleteWirelessGateway API operation for AWS IoT Wireless. +// CreateWirelessGatewayTask API operation for AWS IoT Wireless. // -// Deletes a wireless gateway. +// Creates a task for a wireless 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 IoT Wireless's -// API operation DeleteWirelessGateway for usage and error information. +// API operation CreateWirelessGatewayTask for usage and error information. // // Returned Error Types: // * ValidationException // The input did not meet the specified constraints. // +// * AccessDeniedException +// User does not have permission to perform this action. +// // * ResourceNotFoundException // Resource does not exist. // -// * AccessDeniedException -// User does not have permission to perform this action. +// * ConflictException +// Adding, updating, or deleting the resource can cause an inconsistent state. // // * InternalServerException // An unexpected error occurred while processing a request. @@ -1486,81 +1492,80 @@ func (c *IoTWireless) DeleteWirelessGatewayRequest(input *DeleteWirelessGatewayI // * ThrottlingException // The request was denied because it exceeded the allowed API request rate. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/DeleteWirelessGateway -func (c *IoTWireless) DeleteWirelessGateway(input *DeleteWirelessGatewayInput) (*DeleteWirelessGatewayOutput, error) { - req, out := c.DeleteWirelessGatewayRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/CreateWirelessGatewayTask +func (c *IoTWireless) CreateWirelessGatewayTask(input *CreateWirelessGatewayTaskInput) (*CreateWirelessGatewayTaskOutput, error) { + req, out := c.CreateWirelessGatewayTaskRequest(input) return out, req.Send() } -// DeleteWirelessGatewayWithContext is the same as DeleteWirelessGateway with the addition of +// CreateWirelessGatewayTaskWithContext is the same as CreateWirelessGatewayTask with the addition of // the ability to pass a context and additional request options. // -// See DeleteWirelessGateway for details on how to use this API operation. +// See CreateWirelessGatewayTask for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *IoTWireless) DeleteWirelessGatewayWithContext(ctx aws.Context, input *DeleteWirelessGatewayInput, opts ...request.Option) (*DeleteWirelessGatewayOutput, error) { - req, out := c.DeleteWirelessGatewayRequest(input) +func (c *IoTWireless) CreateWirelessGatewayTaskWithContext(ctx aws.Context, input *CreateWirelessGatewayTaskInput, opts ...request.Option) (*CreateWirelessGatewayTaskOutput, error) { + req, out := c.CreateWirelessGatewayTaskRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opDeleteWirelessGatewayTask = "DeleteWirelessGatewayTask" +const opCreateWirelessGatewayTaskDefinition = "CreateWirelessGatewayTaskDefinition" -// DeleteWirelessGatewayTaskRequest generates a "aws/request.Request" representing the -// client's request for the DeleteWirelessGatewayTask operation. The "output" return +// CreateWirelessGatewayTaskDefinitionRequest generates a "aws/request.Request" representing the +// client's request for the CreateWirelessGatewayTaskDefinition operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See DeleteWirelessGatewayTask for more information on using the DeleteWirelessGatewayTask +// See CreateWirelessGatewayTaskDefinition for more information on using the CreateWirelessGatewayTaskDefinition // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the DeleteWirelessGatewayTaskRequest method. -// req, resp := client.DeleteWirelessGatewayTaskRequest(params) +// // Example sending a request using the CreateWirelessGatewayTaskDefinitionRequest method. +// req, resp := client.CreateWirelessGatewayTaskDefinitionRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/DeleteWirelessGatewayTask -func (c *IoTWireless) DeleteWirelessGatewayTaskRequest(input *DeleteWirelessGatewayTaskInput) (req *request.Request, output *DeleteWirelessGatewayTaskOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/CreateWirelessGatewayTaskDefinition +func (c *IoTWireless) CreateWirelessGatewayTaskDefinitionRequest(input *CreateWirelessGatewayTaskDefinitionInput) (req *request.Request, output *CreateWirelessGatewayTaskDefinitionOutput) { op := &request.Operation{ - Name: opDeleteWirelessGatewayTask, - HTTPMethod: "DELETE", - HTTPPath: "/wireless-gateways/{Id}/tasks", + Name: opCreateWirelessGatewayTaskDefinition, + HTTPMethod: "POST", + HTTPPath: "/wireless-gateway-task-definitions", } if input == nil { - input = &DeleteWirelessGatewayTaskInput{} + input = &CreateWirelessGatewayTaskDefinitionInput{} } - output = &DeleteWirelessGatewayTaskOutput{} + output = &CreateWirelessGatewayTaskDefinitionOutput{} req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// DeleteWirelessGatewayTask API operation for AWS IoT Wireless. +// CreateWirelessGatewayTaskDefinition API operation for AWS IoT Wireless. // -// Deletes a wireless gateway task. +// Creates a gateway task definition. // // Returns awserr.Error for service API and SDK errors. Use runtime 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 IoT Wireless's -// API operation DeleteWirelessGatewayTask for usage and error information. +// API operation CreateWirelessGatewayTaskDefinition for usage and error information. // // Returned Error Types: // * ValidationException @@ -1572,376 +1577,385 @@ func (c *IoTWireless) DeleteWirelessGatewayTaskRequest(input *DeleteWirelessGate // * ResourceNotFoundException // Resource does not exist. // +// * ConflictException +// Adding, updating, or deleting the resource can cause an inconsistent state. +// // * InternalServerException // An unexpected error occurred while processing a request. // // * ThrottlingException // The request was denied because it exceeded the allowed API request rate. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/DeleteWirelessGatewayTask -func (c *IoTWireless) DeleteWirelessGatewayTask(input *DeleteWirelessGatewayTaskInput) (*DeleteWirelessGatewayTaskOutput, error) { - req, out := c.DeleteWirelessGatewayTaskRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/CreateWirelessGatewayTaskDefinition +func (c *IoTWireless) CreateWirelessGatewayTaskDefinition(input *CreateWirelessGatewayTaskDefinitionInput) (*CreateWirelessGatewayTaskDefinitionOutput, error) { + req, out := c.CreateWirelessGatewayTaskDefinitionRequest(input) return out, req.Send() } -// DeleteWirelessGatewayTaskWithContext is the same as DeleteWirelessGatewayTask with the addition of +// CreateWirelessGatewayTaskDefinitionWithContext is the same as CreateWirelessGatewayTaskDefinition with the addition of // the ability to pass a context and additional request options. // -// See DeleteWirelessGatewayTask for details on how to use this API operation. +// See CreateWirelessGatewayTaskDefinition for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *IoTWireless) DeleteWirelessGatewayTaskWithContext(ctx aws.Context, input *DeleteWirelessGatewayTaskInput, opts ...request.Option) (*DeleteWirelessGatewayTaskOutput, error) { - req, out := c.DeleteWirelessGatewayTaskRequest(input) +func (c *IoTWireless) CreateWirelessGatewayTaskDefinitionWithContext(ctx aws.Context, input *CreateWirelessGatewayTaskDefinitionInput, opts ...request.Option) (*CreateWirelessGatewayTaskDefinitionOutput, error) { + req, out := c.CreateWirelessGatewayTaskDefinitionRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opDeleteWirelessGatewayTaskDefinition = "DeleteWirelessGatewayTaskDefinition" +const opDeleteDestination = "DeleteDestination" -// DeleteWirelessGatewayTaskDefinitionRequest generates a "aws/request.Request" representing the -// client's request for the DeleteWirelessGatewayTaskDefinition operation. The "output" return +// DeleteDestinationRequest generates a "aws/request.Request" representing the +// client's request for the DeleteDestination operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See DeleteWirelessGatewayTaskDefinition for more information on using the DeleteWirelessGatewayTaskDefinition +// See DeleteDestination for more information on using the DeleteDestination // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the DeleteWirelessGatewayTaskDefinitionRequest method. -// req, resp := client.DeleteWirelessGatewayTaskDefinitionRequest(params) +// // Example sending a request using the DeleteDestinationRequest method. +// req, resp := client.DeleteDestinationRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/DeleteWirelessGatewayTaskDefinition -func (c *IoTWireless) DeleteWirelessGatewayTaskDefinitionRequest(input *DeleteWirelessGatewayTaskDefinitionInput) (req *request.Request, output *DeleteWirelessGatewayTaskDefinitionOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/DeleteDestination +func (c *IoTWireless) DeleteDestinationRequest(input *DeleteDestinationInput) (req *request.Request, output *DeleteDestinationOutput) { op := &request.Operation{ - Name: opDeleteWirelessGatewayTaskDefinition, + Name: opDeleteDestination, HTTPMethod: "DELETE", - HTTPPath: "/wireless-gateway-task-definitions/{Id}", + HTTPPath: "/destinations/{Name}", } if input == nil { - input = &DeleteWirelessGatewayTaskDefinitionInput{} + input = &DeleteDestinationInput{} } - output = &DeleteWirelessGatewayTaskDefinitionOutput{} + output = &DeleteDestinationOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// DeleteWirelessGatewayTaskDefinition API operation for AWS IoT Wireless. +// DeleteDestination API operation for AWS IoT Wireless. // -// Deletes a wireless gateway task definition. Deleting this task definition -// does not affect tasks that are currently in progress. +// Deletes a destination. // // Returns awserr.Error for service API and SDK errors. Use runtime 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 IoT Wireless's -// API operation DeleteWirelessGatewayTaskDefinition for usage and error information. +// API operation DeleteDestination for usage and error information. // // Returned Error Types: // * ValidationException // The input did not meet the specified constraints. // -// * AccessDeniedException -// User does not have permission to perform this action. -// // * ResourceNotFoundException // Resource does not exist. // +// * AccessDeniedException +// User does not have permission to perform this action. +// // * InternalServerException // An unexpected error occurred while processing a request. // +// * ConflictException +// Adding, updating, or deleting the resource can cause an inconsistent state. +// // * ThrottlingException // The request was denied because it exceeded the allowed API request rate. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/DeleteWirelessGatewayTaskDefinition -func (c *IoTWireless) DeleteWirelessGatewayTaskDefinition(input *DeleteWirelessGatewayTaskDefinitionInput) (*DeleteWirelessGatewayTaskDefinitionOutput, error) { - req, out := c.DeleteWirelessGatewayTaskDefinitionRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/DeleteDestination +func (c *IoTWireless) DeleteDestination(input *DeleteDestinationInput) (*DeleteDestinationOutput, error) { + req, out := c.DeleteDestinationRequest(input) return out, req.Send() } -// DeleteWirelessGatewayTaskDefinitionWithContext is the same as DeleteWirelessGatewayTaskDefinition with the addition of +// DeleteDestinationWithContext is the same as DeleteDestination with the addition of // the ability to pass a context and additional request options. // -// See DeleteWirelessGatewayTaskDefinition for details on how to use this API operation. +// See DeleteDestination for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *IoTWireless) DeleteWirelessGatewayTaskDefinitionWithContext(ctx aws.Context, input *DeleteWirelessGatewayTaskDefinitionInput, opts ...request.Option) (*DeleteWirelessGatewayTaskDefinitionOutput, error) { - req, out := c.DeleteWirelessGatewayTaskDefinitionRequest(input) +func (c *IoTWireless) DeleteDestinationWithContext(ctx aws.Context, input *DeleteDestinationInput, opts ...request.Option) (*DeleteDestinationOutput, error) { + req, out := c.DeleteDestinationRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opDisassociateAwsAccountFromPartnerAccount = "DisassociateAwsAccountFromPartnerAccount" +const opDeleteDeviceProfile = "DeleteDeviceProfile" -// DisassociateAwsAccountFromPartnerAccountRequest generates a "aws/request.Request" representing the -// client's request for the DisassociateAwsAccountFromPartnerAccount operation. The "output" return +// DeleteDeviceProfileRequest generates a "aws/request.Request" representing the +// client's request for the DeleteDeviceProfile operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See DisassociateAwsAccountFromPartnerAccount for more information on using the DisassociateAwsAccountFromPartnerAccount +// See DeleteDeviceProfile for more information on using the DeleteDeviceProfile // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the DisassociateAwsAccountFromPartnerAccountRequest method. -// req, resp := client.DisassociateAwsAccountFromPartnerAccountRequest(params) +// // Example sending a request using the DeleteDeviceProfileRequest method. +// req, resp := client.DeleteDeviceProfileRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/DisassociateAwsAccountFromPartnerAccount -func (c *IoTWireless) DisassociateAwsAccountFromPartnerAccountRequest(input *DisassociateAwsAccountFromPartnerAccountInput) (req *request.Request, output *DisassociateAwsAccountFromPartnerAccountOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/DeleteDeviceProfile +func (c *IoTWireless) DeleteDeviceProfileRequest(input *DeleteDeviceProfileInput) (req *request.Request, output *DeleteDeviceProfileOutput) { op := &request.Operation{ - Name: opDisassociateAwsAccountFromPartnerAccount, + Name: opDeleteDeviceProfile, HTTPMethod: "DELETE", - HTTPPath: "/partner-accounts/{PartnerAccountId}", + HTTPPath: "/device-profiles/{Id}", } if input == nil { - input = &DisassociateAwsAccountFromPartnerAccountInput{} + input = &DeleteDeviceProfileInput{} } - output = &DisassociateAwsAccountFromPartnerAccountOutput{} + output = &DeleteDeviceProfileOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// DisassociateAwsAccountFromPartnerAccount API operation for AWS IoT Wireless. +// DeleteDeviceProfile API operation for AWS IoT Wireless. // -// Disassociates your AWS account from a partner account. If PartnerAccountId -// and PartnerType are null, disassociates your AWS account from all partner -// accounts. +// Deletes a device profile. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS IoT Wireless's -// API operation DisassociateAwsAccountFromPartnerAccount for usage and error information. +// API operation DeleteDeviceProfile for usage and error information. // // Returned Error Types: // * ValidationException // The input did not meet the specified constraints. // +// * AccessDeniedException +// User does not have permission to perform this action. +// // * ResourceNotFoundException // Resource does not exist. // // * InternalServerException // An unexpected error occurred while processing a request. // +// * ConflictException +// Adding, updating, or deleting the resource can cause an inconsistent state. +// // * ThrottlingException // The request was denied because it exceeded the allowed API request rate. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/DisassociateAwsAccountFromPartnerAccount -func (c *IoTWireless) DisassociateAwsAccountFromPartnerAccount(input *DisassociateAwsAccountFromPartnerAccountInput) (*DisassociateAwsAccountFromPartnerAccountOutput, error) { - req, out := c.DisassociateAwsAccountFromPartnerAccountRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/DeleteDeviceProfile +func (c *IoTWireless) DeleteDeviceProfile(input *DeleteDeviceProfileInput) (*DeleteDeviceProfileOutput, error) { + req, out := c.DeleteDeviceProfileRequest(input) return out, req.Send() } -// DisassociateAwsAccountFromPartnerAccountWithContext is the same as DisassociateAwsAccountFromPartnerAccount with the addition of +// DeleteDeviceProfileWithContext is the same as DeleteDeviceProfile with the addition of // the ability to pass a context and additional request options. // -// See DisassociateAwsAccountFromPartnerAccount for details on how to use this API operation. +// See DeleteDeviceProfile for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *IoTWireless) DisassociateAwsAccountFromPartnerAccountWithContext(ctx aws.Context, input *DisassociateAwsAccountFromPartnerAccountInput, opts ...request.Option) (*DisassociateAwsAccountFromPartnerAccountOutput, error) { - req, out := c.DisassociateAwsAccountFromPartnerAccountRequest(input) +func (c *IoTWireless) DeleteDeviceProfileWithContext(ctx aws.Context, input *DeleteDeviceProfileInput, opts ...request.Option) (*DeleteDeviceProfileOutput, error) { + req, out := c.DeleteDeviceProfileRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opDisassociateWirelessDeviceFromThing = "DisassociateWirelessDeviceFromThing" +const opDeleteFuotaTask = "DeleteFuotaTask" -// DisassociateWirelessDeviceFromThingRequest generates a "aws/request.Request" representing the -// client's request for the DisassociateWirelessDeviceFromThing operation. The "output" return +// DeleteFuotaTaskRequest generates a "aws/request.Request" representing the +// client's request for the DeleteFuotaTask operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See DisassociateWirelessDeviceFromThing for more information on using the DisassociateWirelessDeviceFromThing +// See DeleteFuotaTask for more information on using the DeleteFuotaTask // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the DisassociateWirelessDeviceFromThingRequest method. -// req, resp := client.DisassociateWirelessDeviceFromThingRequest(params) +// // Example sending a request using the DeleteFuotaTaskRequest method. +// req, resp := client.DeleteFuotaTaskRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/DisassociateWirelessDeviceFromThing -func (c *IoTWireless) DisassociateWirelessDeviceFromThingRequest(input *DisassociateWirelessDeviceFromThingInput) (req *request.Request, output *DisassociateWirelessDeviceFromThingOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/DeleteFuotaTask +func (c *IoTWireless) DeleteFuotaTaskRequest(input *DeleteFuotaTaskInput) (req *request.Request, output *DeleteFuotaTaskOutput) { op := &request.Operation{ - Name: opDisassociateWirelessDeviceFromThing, + Name: opDeleteFuotaTask, HTTPMethod: "DELETE", - HTTPPath: "/wireless-devices/{Id}/thing", + HTTPPath: "/fuota-tasks/{Id}", } if input == nil { - input = &DisassociateWirelessDeviceFromThingInput{} + input = &DeleteFuotaTaskInput{} } - output = &DisassociateWirelessDeviceFromThingOutput{} + output = &DeleteFuotaTaskOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// DisassociateWirelessDeviceFromThing API operation for AWS IoT Wireless. +// DeleteFuotaTask API operation for AWS IoT Wireless. // -// Disassociates a wireless device from its currently associated thing. +// Deletes a FUOTA task. // // Returns awserr.Error for service API and SDK errors. Use runtime 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 IoT Wireless's -// API operation DisassociateWirelessDeviceFromThing for usage and error information. +// API operation DeleteFuotaTask for usage and error information. // // Returned Error Types: // * ValidationException // The input did not meet the specified constraints. // -// * AccessDeniedException -// User does not have permission to perform this action. -// // * ResourceNotFoundException // Resource does not exist. // -// * ConflictException -// Adding, updating, or deleting the resource can cause an inconsistent state. -// -// * ThrottlingException -// The request was denied because it exceeded the allowed API request rate. +// * AccessDeniedException +// User does not have permission to perform this action. // // * InternalServerException // An unexpected error occurred while processing a request. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/DisassociateWirelessDeviceFromThing -func (c *IoTWireless) DisassociateWirelessDeviceFromThing(input *DisassociateWirelessDeviceFromThingInput) (*DisassociateWirelessDeviceFromThingOutput, error) { - req, out := c.DisassociateWirelessDeviceFromThingRequest(input) +// * ThrottlingException +// The request was denied because it exceeded the allowed API request rate. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/DeleteFuotaTask +func (c *IoTWireless) DeleteFuotaTask(input *DeleteFuotaTaskInput) (*DeleteFuotaTaskOutput, error) { + req, out := c.DeleteFuotaTaskRequest(input) return out, req.Send() } -// DisassociateWirelessDeviceFromThingWithContext is the same as DisassociateWirelessDeviceFromThing with the addition of +// DeleteFuotaTaskWithContext is the same as DeleteFuotaTask with the addition of // the ability to pass a context and additional request options. // -// See DisassociateWirelessDeviceFromThing for details on how to use this API operation. +// See DeleteFuotaTask for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *IoTWireless) DisassociateWirelessDeviceFromThingWithContext(ctx aws.Context, input *DisassociateWirelessDeviceFromThingInput, opts ...request.Option) (*DisassociateWirelessDeviceFromThingOutput, error) { - req, out := c.DisassociateWirelessDeviceFromThingRequest(input) +func (c *IoTWireless) DeleteFuotaTaskWithContext(ctx aws.Context, input *DeleteFuotaTaskInput, opts ...request.Option) (*DeleteFuotaTaskOutput, error) { + req, out := c.DeleteFuotaTaskRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opDisassociateWirelessGatewayFromCertificate = "DisassociateWirelessGatewayFromCertificate" +const opDeleteMulticastGroup = "DeleteMulticastGroup" -// DisassociateWirelessGatewayFromCertificateRequest generates a "aws/request.Request" representing the -// client's request for the DisassociateWirelessGatewayFromCertificate operation. The "output" return +// DeleteMulticastGroupRequest generates a "aws/request.Request" representing the +// client's request for the DeleteMulticastGroup operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See DisassociateWirelessGatewayFromCertificate for more information on using the DisassociateWirelessGatewayFromCertificate +// See DeleteMulticastGroup for more information on using the DeleteMulticastGroup // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the DisassociateWirelessGatewayFromCertificateRequest method. -// req, resp := client.DisassociateWirelessGatewayFromCertificateRequest(params) +// // Example sending a request using the DeleteMulticastGroupRequest method. +// req, resp := client.DeleteMulticastGroupRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/DisassociateWirelessGatewayFromCertificate -func (c *IoTWireless) DisassociateWirelessGatewayFromCertificateRequest(input *DisassociateWirelessGatewayFromCertificateInput) (req *request.Request, output *DisassociateWirelessGatewayFromCertificateOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/DeleteMulticastGroup +func (c *IoTWireless) DeleteMulticastGroupRequest(input *DeleteMulticastGroupInput) (req *request.Request, output *DeleteMulticastGroupOutput) { op := &request.Operation{ - Name: opDisassociateWirelessGatewayFromCertificate, + Name: opDeleteMulticastGroup, HTTPMethod: "DELETE", - HTTPPath: "/wireless-gateways/{Id}/certificate", + HTTPPath: "/multicast-groups/{Id}", } if input == nil { - input = &DisassociateWirelessGatewayFromCertificateInput{} + input = &DeleteMulticastGroupInput{} } - output = &DisassociateWirelessGatewayFromCertificateOutput{} + output = &DeleteMulticastGroupOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// DisassociateWirelessGatewayFromCertificate API operation for AWS IoT Wireless. +// DeleteMulticastGroup API operation for AWS IoT Wireless. // -// Disassociates a wireless gateway from its currently associated certificate. +// Deletes a multicast group if it is not in use by a fuota task. // // Returns awserr.Error for service API and SDK errors. Use runtime 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 IoT Wireless's -// API operation DisassociateWirelessGatewayFromCertificate for usage and error information. +// API operation DeleteMulticastGroup for usage and error information. // // Returned Error Types: // * ValidationException // The input did not meet the specified constraints. // +// * ResourceNotFoundException +// Resource does not exist. +// // * AccessDeniedException // User does not have permission to perform this action. // -// * ResourceNotFoundException -// Resource does not exist. +// * ConflictException +// Adding, updating, or deleting the resource can cause an inconsistent state. // // * InternalServerException // An unexpected error occurred while processing a request. @@ -1949,81 +1963,81 @@ func (c *IoTWireless) DisassociateWirelessGatewayFromCertificateRequest(input *D // * ThrottlingException // The request was denied because it exceeded the allowed API request rate. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/DisassociateWirelessGatewayFromCertificate -func (c *IoTWireless) DisassociateWirelessGatewayFromCertificate(input *DisassociateWirelessGatewayFromCertificateInput) (*DisassociateWirelessGatewayFromCertificateOutput, error) { - req, out := c.DisassociateWirelessGatewayFromCertificateRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/DeleteMulticastGroup +func (c *IoTWireless) DeleteMulticastGroup(input *DeleteMulticastGroupInput) (*DeleteMulticastGroupOutput, error) { + req, out := c.DeleteMulticastGroupRequest(input) return out, req.Send() } -// DisassociateWirelessGatewayFromCertificateWithContext is the same as DisassociateWirelessGatewayFromCertificate with the addition of +// DeleteMulticastGroupWithContext is the same as DeleteMulticastGroup with the addition of // the ability to pass a context and additional request options. // -// See DisassociateWirelessGatewayFromCertificate for details on how to use this API operation. +// See DeleteMulticastGroup for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *IoTWireless) DisassociateWirelessGatewayFromCertificateWithContext(ctx aws.Context, input *DisassociateWirelessGatewayFromCertificateInput, opts ...request.Option) (*DisassociateWirelessGatewayFromCertificateOutput, error) { - req, out := c.DisassociateWirelessGatewayFromCertificateRequest(input) +func (c *IoTWireless) DeleteMulticastGroupWithContext(ctx aws.Context, input *DeleteMulticastGroupInput, opts ...request.Option) (*DeleteMulticastGroupOutput, error) { + req, out := c.DeleteMulticastGroupRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opDisassociateWirelessGatewayFromThing = "DisassociateWirelessGatewayFromThing" +const opDeleteServiceProfile = "DeleteServiceProfile" -// DisassociateWirelessGatewayFromThingRequest generates a "aws/request.Request" representing the -// client's request for the DisassociateWirelessGatewayFromThing operation. The "output" return +// DeleteServiceProfileRequest generates a "aws/request.Request" representing the +// client's request for the DeleteServiceProfile operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See DisassociateWirelessGatewayFromThing for more information on using the DisassociateWirelessGatewayFromThing +// See DeleteServiceProfile for more information on using the DeleteServiceProfile // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the DisassociateWirelessGatewayFromThingRequest method. -// req, resp := client.DisassociateWirelessGatewayFromThingRequest(params) +// // Example sending a request using the DeleteServiceProfileRequest method. +// req, resp := client.DeleteServiceProfileRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/DisassociateWirelessGatewayFromThing -func (c *IoTWireless) DisassociateWirelessGatewayFromThingRequest(input *DisassociateWirelessGatewayFromThingInput) (req *request.Request, output *DisassociateWirelessGatewayFromThingOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/DeleteServiceProfile +func (c *IoTWireless) DeleteServiceProfileRequest(input *DeleteServiceProfileInput) (req *request.Request, output *DeleteServiceProfileOutput) { op := &request.Operation{ - Name: opDisassociateWirelessGatewayFromThing, + Name: opDeleteServiceProfile, HTTPMethod: "DELETE", - HTTPPath: "/wireless-gateways/{Id}/thing", + HTTPPath: "/service-profiles/{Id}", } if input == nil { - input = &DisassociateWirelessGatewayFromThingInput{} + input = &DeleteServiceProfileInput{} } - output = &DisassociateWirelessGatewayFromThingOutput{} + output = &DeleteServiceProfileOutput{} req = c.newRequest(op, input, output) req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// DisassociateWirelessGatewayFromThing API operation for AWS IoT Wireless. +// DeleteServiceProfile API operation for AWS IoT Wireless. // -// Disassociates a wireless gateway from its currently associated thing. +// Deletes a service profile. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS IoT Wireless's -// API operation DisassociateWirelessGatewayFromThing for usage and error information. +// API operation DeleteServiceProfile for usage and error information. // // Returned Error Types: // * ValidationException @@ -2035,89 +2049,90 @@ func (c *IoTWireless) DisassociateWirelessGatewayFromThingRequest(input *Disasso // * ResourceNotFoundException // Resource does not exist. // +// * InternalServerException +// An unexpected error occurred while processing a request. +// // * ConflictException // Adding, updating, or deleting the resource can cause an inconsistent state. // // * ThrottlingException // The request was denied because it exceeded the allowed API request rate. // -// * InternalServerException -// An unexpected error occurred while processing a request. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/DisassociateWirelessGatewayFromThing -func (c *IoTWireless) DisassociateWirelessGatewayFromThing(input *DisassociateWirelessGatewayFromThingInput) (*DisassociateWirelessGatewayFromThingOutput, error) { - req, out := c.DisassociateWirelessGatewayFromThingRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/DeleteServiceProfile +func (c *IoTWireless) DeleteServiceProfile(input *DeleteServiceProfileInput) (*DeleteServiceProfileOutput, error) { + req, out := c.DeleteServiceProfileRequest(input) return out, req.Send() } -// DisassociateWirelessGatewayFromThingWithContext is the same as DisassociateWirelessGatewayFromThing with the addition of +// DeleteServiceProfileWithContext is the same as DeleteServiceProfile with the addition of // the ability to pass a context and additional request options. // -// See DisassociateWirelessGatewayFromThing for details on how to use this API operation. +// See DeleteServiceProfile for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *IoTWireless) DisassociateWirelessGatewayFromThingWithContext(ctx aws.Context, input *DisassociateWirelessGatewayFromThingInput, opts ...request.Option) (*DisassociateWirelessGatewayFromThingOutput, error) { - req, out := c.DisassociateWirelessGatewayFromThingRequest(input) +func (c *IoTWireless) DeleteServiceProfileWithContext(ctx aws.Context, input *DeleteServiceProfileInput, opts ...request.Option) (*DeleteServiceProfileOutput, error) { + req, out := c.DeleteServiceProfileRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opGetDestination = "GetDestination" +const opDeleteWirelessDevice = "DeleteWirelessDevice" -// GetDestinationRequest generates a "aws/request.Request" representing the -// client's request for the GetDestination operation. The "output" return +// DeleteWirelessDeviceRequest generates a "aws/request.Request" representing the +// client's request for the DeleteWirelessDevice operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See GetDestination for more information on using the GetDestination +// See DeleteWirelessDevice for more information on using the DeleteWirelessDevice // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the GetDestinationRequest method. -// req, resp := client.GetDestinationRequest(params) +// // Example sending a request using the DeleteWirelessDeviceRequest method. +// req, resp := client.DeleteWirelessDeviceRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/GetDestination -func (c *IoTWireless) GetDestinationRequest(input *GetDestinationInput) (req *request.Request, output *GetDestinationOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/DeleteWirelessDevice +func (c *IoTWireless) DeleteWirelessDeviceRequest(input *DeleteWirelessDeviceInput) (req *request.Request, output *DeleteWirelessDeviceOutput) { op := &request.Operation{ - Name: opGetDestination, - HTTPMethod: "GET", - HTTPPath: "/destinations/{Name}", + Name: opDeleteWirelessDevice, + HTTPMethod: "DELETE", + HTTPPath: "/wireless-devices/{Id}", } if input == nil { - input = &GetDestinationInput{} + input = &DeleteWirelessDeviceInput{} } - output = &GetDestinationOutput{} + output = &DeleteWirelessDeviceOutput{} req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// GetDestination API operation for AWS IoT Wireless. +// DeleteWirelessDevice API operation for AWS IoT Wireless. // -// Gets information about a destination. +// Deletes a wireless device. // // Returns awserr.Error for service API and SDK errors. Use runtime 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 IoT Wireless's -// API operation GetDestination for usage and error information. +// API operation DeleteWirelessDevice for usage and error information. // // Returned Error Types: // * ValidationException @@ -2135,270 +2150,274 @@ func (c *IoTWireless) GetDestinationRequest(input *GetDestinationInput) (req *re // * ThrottlingException // The request was denied because it exceeded the allowed API request rate. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/GetDestination -func (c *IoTWireless) GetDestination(input *GetDestinationInput) (*GetDestinationOutput, error) { - req, out := c.GetDestinationRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/DeleteWirelessDevice +func (c *IoTWireless) DeleteWirelessDevice(input *DeleteWirelessDeviceInput) (*DeleteWirelessDeviceOutput, error) { + req, out := c.DeleteWirelessDeviceRequest(input) return out, req.Send() } -// GetDestinationWithContext is the same as GetDestination with the addition of +// DeleteWirelessDeviceWithContext is the same as DeleteWirelessDevice with the addition of // the ability to pass a context and additional request options. // -// See GetDestination for details on how to use this API operation. +// See DeleteWirelessDevice for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *IoTWireless) GetDestinationWithContext(ctx aws.Context, input *GetDestinationInput, opts ...request.Option) (*GetDestinationOutput, error) { - req, out := c.GetDestinationRequest(input) +func (c *IoTWireless) DeleteWirelessDeviceWithContext(ctx aws.Context, input *DeleteWirelessDeviceInput, opts ...request.Option) (*DeleteWirelessDeviceOutput, error) { + req, out := c.DeleteWirelessDeviceRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opGetDeviceProfile = "GetDeviceProfile" +const opDeleteWirelessGateway = "DeleteWirelessGateway" -// GetDeviceProfileRequest generates a "aws/request.Request" representing the -// client's request for the GetDeviceProfile operation. The "output" return +// DeleteWirelessGatewayRequest generates a "aws/request.Request" representing the +// client's request for the DeleteWirelessGateway operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See GetDeviceProfile for more information on using the GetDeviceProfile +// See DeleteWirelessGateway for more information on using the DeleteWirelessGateway // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the GetDeviceProfileRequest method. -// req, resp := client.GetDeviceProfileRequest(params) +// // Example sending a request using the DeleteWirelessGatewayRequest method. +// req, resp := client.DeleteWirelessGatewayRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/GetDeviceProfile -func (c *IoTWireless) GetDeviceProfileRequest(input *GetDeviceProfileInput) (req *request.Request, output *GetDeviceProfileOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/DeleteWirelessGateway +func (c *IoTWireless) DeleteWirelessGatewayRequest(input *DeleteWirelessGatewayInput) (req *request.Request, output *DeleteWirelessGatewayOutput) { op := &request.Operation{ - Name: opGetDeviceProfile, - HTTPMethod: "GET", - HTTPPath: "/device-profiles/{Id}", + Name: opDeleteWirelessGateway, + HTTPMethod: "DELETE", + HTTPPath: "/wireless-gateways/{Id}", } if input == nil { - input = &GetDeviceProfileInput{} + input = &DeleteWirelessGatewayInput{} } - output = &GetDeviceProfileOutput{} + output = &DeleteWirelessGatewayOutput{} req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// GetDeviceProfile API operation for AWS IoT Wireless. +// DeleteWirelessGateway API operation for AWS IoT Wireless. // -// Gets information about a device profile. +// Deletes a wireless 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 IoT Wireless's -// API operation GetDeviceProfile for usage and error information. +// API operation DeleteWirelessGateway for usage and error information. // // Returned Error Types: // * ValidationException // The input did not meet the specified constraints. // -// * AccessDeniedException -// User does not have permission to perform this action. -// // * ResourceNotFoundException // Resource does not exist. // +// * AccessDeniedException +// User does not have permission to perform this action. +// // * InternalServerException // An unexpected error occurred while processing a request. // // * ThrottlingException // The request was denied because it exceeded the allowed API request rate. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/GetDeviceProfile -func (c *IoTWireless) GetDeviceProfile(input *GetDeviceProfileInput) (*GetDeviceProfileOutput, error) { - req, out := c.GetDeviceProfileRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/DeleteWirelessGateway +func (c *IoTWireless) DeleteWirelessGateway(input *DeleteWirelessGatewayInput) (*DeleteWirelessGatewayOutput, error) { + req, out := c.DeleteWirelessGatewayRequest(input) return out, req.Send() } -// GetDeviceProfileWithContext is the same as GetDeviceProfile with the addition of +// DeleteWirelessGatewayWithContext is the same as DeleteWirelessGateway with the addition of // the ability to pass a context and additional request options. // -// See GetDeviceProfile for details on how to use this API operation. +// See DeleteWirelessGateway for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *IoTWireless) GetDeviceProfileWithContext(ctx aws.Context, input *GetDeviceProfileInput, opts ...request.Option) (*GetDeviceProfileOutput, error) { - req, out := c.GetDeviceProfileRequest(input) +func (c *IoTWireless) DeleteWirelessGatewayWithContext(ctx aws.Context, input *DeleteWirelessGatewayInput, opts ...request.Option) (*DeleteWirelessGatewayOutput, error) { + req, out := c.DeleteWirelessGatewayRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opGetLogLevelsByResourceTypes = "GetLogLevelsByResourceTypes" +const opDeleteWirelessGatewayTask = "DeleteWirelessGatewayTask" -// GetLogLevelsByResourceTypesRequest generates a "aws/request.Request" representing the -// client's request for the GetLogLevelsByResourceTypes operation. The "output" return +// DeleteWirelessGatewayTaskRequest generates a "aws/request.Request" representing the +// client's request for the DeleteWirelessGatewayTask operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See GetLogLevelsByResourceTypes for more information on using the GetLogLevelsByResourceTypes +// See DeleteWirelessGatewayTask for more information on using the DeleteWirelessGatewayTask // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the GetLogLevelsByResourceTypesRequest method. -// req, resp := client.GetLogLevelsByResourceTypesRequest(params) +// // Example sending a request using the DeleteWirelessGatewayTaskRequest method. +// req, resp := client.DeleteWirelessGatewayTaskRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/GetLogLevelsByResourceTypes -func (c *IoTWireless) GetLogLevelsByResourceTypesRequest(input *GetLogLevelsByResourceTypesInput) (req *request.Request, output *GetLogLevelsByResourceTypesOutput) { - op := &request.Operation{ - Name: opGetLogLevelsByResourceTypes, - HTTPMethod: "GET", - HTTPPath: "/log-levels", +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/DeleteWirelessGatewayTask +func (c *IoTWireless) DeleteWirelessGatewayTaskRequest(input *DeleteWirelessGatewayTaskInput) (req *request.Request, output *DeleteWirelessGatewayTaskOutput) { + op := &request.Operation{ + Name: opDeleteWirelessGatewayTask, + HTTPMethod: "DELETE", + HTTPPath: "/wireless-gateways/{Id}/tasks", } if input == nil { - input = &GetLogLevelsByResourceTypesInput{} + input = &DeleteWirelessGatewayTaskInput{} } - output = &GetLogLevelsByResourceTypesOutput{} + output = &DeleteWirelessGatewayTaskOutput{} req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// GetLogLevelsByResourceTypes API operation for AWS IoT Wireless. +// DeleteWirelessGatewayTask API operation for AWS IoT Wireless. // -// Returns current default log levels or log levels by resource types. Based -// on resource types, log levels can be for wireless device log options or wireless -// gateway log options. +// Deletes a wireless gateway task. // // Returns awserr.Error for service API and SDK errors. Use runtime 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 IoT Wireless's -// API operation GetLogLevelsByResourceTypes for usage and error information. +// API operation DeleteWirelessGatewayTask for usage and error information. // // Returned Error Types: +// * ValidationException +// The input did not meet the specified constraints. +// // * AccessDeniedException // User does not have permission to perform this action. // -// * InternalServerException -// An unexpected error occurred while processing a request. -// // * ResourceNotFoundException // Resource does not exist. // +// * InternalServerException +// An unexpected error occurred while processing a request. +// // * ThrottlingException // The request was denied because it exceeded the allowed API request rate. // -// * ValidationException -// The input did not meet the specified constraints. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/GetLogLevelsByResourceTypes -func (c *IoTWireless) GetLogLevelsByResourceTypes(input *GetLogLevelsByResourceTypesInput) (*GetLogLevelsByResourceTypesOutput, error) { - req, out := c.GetLogLevelsByResourceTypesRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/DeleteWirelessGatewayTask +func (c *IoTWireless) DeleteWirelessGatewayTask(input *DeleteWirelessGatewayTaskInput) (*DeleteWirelessGatewayTaskOutput, error) { + req, out := c.DeleteWirelessGatewayTaskRequest(input) return out, req.Send() } -// GetLogLevelsByResourceTypesWithContext is the same as GetLogLevelsByResourceTypes with the addition of +// DeleteWirelessGatewayTaskWithContext is the same as DeleteWirelessGatewayTask with the addition of // the ability to pass a context and additional request options. // -// See GetLogLevelsByResourceTypes for details on how to use this API operation. +// See DeleteWirelessGatewayTask for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *IoTWireless) GetLogLevelsByResourceTypesWithContext(ctx aws.Context, input *GetLogLevelsByResourceTypesInput, opts ...request.Option) (*GetLogLevelsByResourceTypesOutput, error) { - req, out := c.GetLogLevelsByResourceTypesRequest(input) +func (c *IoTWireless) DeleteWirelessGatewayTaskWithContext(ctx aws.Context, input *DeleteWirelessGatewayTaskInput, opts ...request.Option) (*DeleteWirelessGatewayTaskOutput, error) { + req, out := c.DeleteWirelessGatewayTaskRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opGetPartnerAccount = "GetPartnerAccount" +const opDeleteWirelessGatewayTaskDefinition = "DeleteWirelessGatewayTaskDefinition" -// GetPartnerAccountRequest generates a "aws/request.Request" representing the -// client's request for the GetPartnerAccount operation. The "output" return +// DeleteWirelessGatewayTaskDefinitionRequest generates a "aws/request.Request" representing the +// client's request for the DeleteWirelessGatewayTaskDefinition operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See GetPartnerAccount for more information on using the GetPartnerAccount +// See DeleteWirelessGatewayTaskDefinition for more information on using the DeleteWirelessGatewayTaskDefinition // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the GetPartnerAccountRequest method. -// req, resp := client.GetPartnerAccountRequest(params) +// // Example sending a request using the DeleteWirelessGatewayTaskDefinitionRequest method. +// req, resp := client.DeleteWirelessGatewayTaskDefinitionRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/GetPartnerAccount -func (c *IoTWireless) GetPartnerAccountRequest(input *GetPartnerAccountInput) (req *request.Request, output *GetPartnerAccountOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/DeleteWirelessGatewayTaskDefinition +func (c *IoTWireless) DeleteWirelessGatewayTaskDefinitionRequest(input *DeleteWirelessGatewayTaskDefinitionInput) (req *request.Request, output *DeleteWirelessGatewayTaskDefinitionOutput) { op := &request.Operation{ - Name: opGetPartnerAccount, - HTTPMethod: "GET", - HTTPPath: "/partner-accounts/{PartnerAccountId}", + Name: opDeleteWirelessGatewayTaskDefinition, + HTTPMethod: "DELETE", + HTTPPath: "/wireless-gateway-task-definitions/{Id}", } if input == nil { - input = &GetPartnerAccountInput{} + input = &DeleteWirelessGatewayTaskDefinitionInput{} } - output = &GetPartnerAccountOutput{} + output = &DeleteWirelessGatewayTaskDefinitionOutput{} req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// GetPartnerAccount API operation for AWS IoT Wireless. +// DeleteWirelessGatewayTaskDefinition API operation for AWS IoT Wireless. // -// Gets information about a partner account. If PartnerAccountId and PartnerType -// are null, returns all partner accounts. +// Deletes a wireless gateway task definition. Deleting this task definition +// does not affect tasks that are currently in progress. // // Returns awserr.Error for service API and SDK errors. Use runtime 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 IoT Wireless's -// API operation GetPartnerAccount for usage and error information. +// API operation DeleteWirelessGatewayTaskDefinition for usage and error information. // // Returned Error Types: // * ValidationException // The input did not meet the specified constraints. // +// * AccessDeniedException +// User does not have permission to perform this action. +// // * ResourceNotFoundException // Resource does not exist. // @@ -2408,173 +2427,172 @@ func (c *IoTWireless) GetPartnerAccountRequest(input *GetPartnerAccountInput) (r // * ThrottlingException // The request was denied because it exceeded the allowed API request rate. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/GetPartnerAccount -func (c *IoTWireless) GetPartnerAccount(input *GetPartnerAccountInput) (*GetPartnerAccountOutput, error) { - req, out := c.GetPartnerAccountRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/DeleteWirelessGatewayTaskDefinition +func (c *IoTWireless) DeleteWirelessGatewayTaskDefinition(input *DeleteWirelessGatewayTaskDefinitionInput) (*DeleteWirelessGatewayTaskDefinitionOutput, error) { + req, out := c.DeleteWirelessGatewayTaskDefinitionRequest(input) return out, req.Send() } -// GetPartnerAccountWithContext is the same as GetPartnerAccount with the addition of +// DeleteWirelessGatewayTaskDefinitionWithContext is the same as DeleteWirelessGatewayTaskDefinition with the addition of // the ability to pass a context and additional request options. // -// See GetPartnerAccount for details on how to use this API operation. +// See DeleteWirelessGatewayTaskDefinition for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *IoTWireless) GetPartnerAccountWithContext(ctx aws.Context, input *GetPartnerAccountInput, opts ...request.Option) (*GetPartnerAccountOutput, error) { - req, out := c.GetPartnerAccountRequest(input) +func (c *IoTWireless) DeleteWirelessGatewayTaskDefinitionWithContext(ctx aws.Context, input *DeleteWirelessGatewayTaskDefinitionInput, opts ...request.Option) (*DeleteWirelessGatewayTaskDefinitionOutput, error) { + req, out := c.DeleteWirelessGatewayTaskDefinitionRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opGetResourceLogLevel = "GetResourceLogLevel" +const opDisassociateAwsAccountFromPartnerAccount = "DisassociateAwsAccountFromPartnerAccount" -// GetResourceLogLevelRequest generates a "aws/request.Request" representing the -// client's request for the GetResourceLogLevel operation. The "output" return +// DisassociateAwsAccountFromPartnerAccountRequest generates a "aws/request.Request" representing the +// client's request for the DisassociateAwsAccountFromPartnerAccount operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See GetResourceLogLevel for more information on using the GetResourceLogLevel +// See DisassociateAwsAccountFromPartnerAccount for more information on using the DisassociateAwsAccountFromPartnerAccount // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the GetResourceLogLevelRequest method. -// req, resp := client.GetResourceLogLevelRequest(params) +// // Example sending a request using the DisassociateAwsAccountFromPartnerAccountRequest method. +// req, resp := client.DisassociateAwsAccountFromPartnerAccountRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/GetResourceLogLevel -func (c *IoTWireless) GetResourceLogLevelRequest(input *GetResourceLogLevelInput) (req *request.Request, output *GetResourceLogLevelOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/DisassociateAwsAccountFromPartnerAccount +func (c *IoTWireless) DisassociateAwsAccountFromPartnerAccountRequest(input *DisassociateAwsAccountFromPartnerAccountInput) (req *request.Request, output *DisassociateAwsAccountFromPartnerAccountOutput) { op := &request.Operation{ - Name: opGetResourceLogLevel, - HTTPMethod: "GET", - HTTPPath: "/log-levels/{ResourceIdentifier}", + Name: opDisassociateAwsAccountFromPartnerAccount, + HTTPMethod: "DELETE", + HTTPPath: "/partner-accounts/{PartnerAccountId}", } if input == nil { - input = &GetResourceLogLevelInput{} + input = &DisassociateAwsAccountFromPartnerAccountInput{} } - output = &GetResourceLogLevelOutput{} + output = &DisassociateAwsAccountFromPartnerAccountOutput{} req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// GetResourceLogLevel API operation for AWS IoT Wireless. +// DisassociateAwsAccountFromPartnerAccount API operation for AWS IoT Wireless. // -// Fetches the log-level override, if any, for a given resource-ID and resource-type. -// It can be used for a wireless device or a wireless gateway. +// Disassociates your AWS account from a partner account. If PartnerAccountId +// and PartnerType are null, disassociates your AWS account from all partner +// accounts. // // Returns awserr.Error for service API and SDK errors. Use runtime 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 IoT Wireless's -// API operation GetResourceLogLevel for usage and error information. +// API operation DisassociateAwsAccountFromPartnerAccount for usage and error information. // // Returned Error Types: -// * AccessDeniedException -// User does not have permission to perform this action. -// -// * InternalServerException -// An unexpected error occurred while processing a request. +// * ValidationException +// The input did not meet the specified constraints. // // * ResourceNotFoundException // Resource does not exist. // +// * InternalServerException +// An unexpected error occurred while processing a request. +// // * ThrottlingException // The request was denied because it exceeded the allowed API request rate. // -// * ValidationException -// The input did not meet the specified constraints. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/GetResourceLogLevel -func (c *IoTWireless) GetResourceLogLevel(input *GetResourceLogLevelInput) (*GetResourceLogLevelOutput, error) { - req, out := c.GetResourceLogLevelRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/DisassociateAwsAccountFromPartnerAccount +func (c *IoTWireless) DisassociateAwsAccountFromPartnerAccount(input *DisassociateAwsAccountFromPartnerAccountInput) (*DisassociateAwsAccountFromPartnerAccountOutput, error) { + req, out := c.DisassociateAwsAccountFromPartnerAccountRequest(input) return out, req.Send() } -// GetResourceLogLevelWithContext is the same as GetResourceLogLevel with the addition of +// DisassociateAwsAccountFromPartnerAccountWithContext is the same as DisassociateAwsAccountFromPartnerAccount with the addition of // the ability to pass a context and additional request options. // -// See GetResourceLogLevel for details on how to use this API operation. +// See DisassociateAwsAccountFromPartnerAccount for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *IoTWireless) GetResourceLogLevelWithContext(ctx aws.Context, input *GetResourceLogLevelInput, opts ...request.Option) (*GetResourceLogLevelOutput, error) { - req, out := c.GetResourceLogLevelRequest(input) +func (c *IoTWireless) DisassociateAwsAccountFromPartnerAccountWithContext(ctx aws.Context, input *DisassociateAwsAccountFromPartnerAccountInput, opts ...request.Option) (*DisassociateAwsAccountFromPartnerAccountOutput, error) { + req, out := c.DisassociateAwsAccountFromPartnerAccountRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opGetServiceEndpoint = "GetServiceEndpoint" +const opDisassociateMulticastGroupFromFuotaTask = "DisassociateMulticastGroupFromFuotaTask" -// GetServiceEndpointRequest generates a "aws/request.Request" representing the -// client's request for the GetServiceEndpoint operation. The "output" return +// DisassociateMulticastGroupFromFuotaTaskRequest generates a "aws/request.Request" representing the +// client's request for the DisassociateMulticastGroupFromFuotaTask operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See GetServiceEndpoint for more information on using the GetServiceEndpoint +// See DisassociateMulticastGroupFromFuotaTask for more information on using the DisassociateMulticastGroupFromFuotaTask // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the GetServiceEndpointRequest method. -// req, resp := client.GetServiceEndpointRequest(params) +// // Example sending a request using the DisassociateMulticastGroupFromFuotaTaskRequest method. +// req, resp := client.DisassociateMulticastGroupFromFuotaTaskRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/GetServiceEndpoint -func (c *IoTWireless) GetServiceEndpointRequest(input *GetServiceEndpointInput) (req *request.Request, output *GetServiceEndpointOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/DisassociateMulticastGroupFromFuotaTask +func (c *IoTWireless) DisassociateMulticastGroupFromFuotaTaskRequest(input *DisassociateMulticastGroupFromFuotaTaskInput) (req *request.Request, output *DisassociateMulticastGroupFromFuotaTaskOutput) { op := &request.Operation{ - Name: opGetServiceEndpoint, - HTTPMethod: "GET", - HTTPPath: "/service-endpoint", + Name: opDisassociateMulticastGroupFromFuotaTask, + HTTPMethod: "DELETE", + HTTPPath: "/fuota-tasks/{Id}/multicast-groups/{MulticastGroupId}", } if input == nil { - input = &GetServiceEndpointInput{} + input = &DisassociateMulticastGroupFromFuotaTaskInput{} } - output = &GetServiceEndpointOutput{} + output = &DisassociateMulticastGroupFromFuotaTaskOutput{} req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// GetServiceEndpoint API operation for AWS IoT Wireless. +// DisassociateMulticastGroupFromFuotaTask API operation for AWS IoT Wireless. // -// Gets the account-specific endpoint for Configuration and Update Server (CUPS) -// protocol or LoRaWAN Network Server (LNS) connections. +// Disassociates a multicast group from a fuota task. // // Returns awserr.Error for service API and SDK errors. Use runtime 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 IoT Wireless's -// API operation GetServiceEndpoint for usage and error information. +// API operation DisassociateMulticastGroupFromFuotaTask for usage and error information. // // Returned Error Types: // * ValidationException @@ -2583,86 +2601,90 @@ func (c *IoTWireless) GetServiceEndpointRequest(input *GetServiceEndpointInput) // * AccessDeniedException // User does not have permission to perform this action. // +// * ResourceNotFoundException +// Resource does not exist. +// +// * ConflictException +// Adding, updating, or deleting the resource can cause an inconsistent state. +// // * InternalServerException // An unexpected error occurred while processing a request. // -// * ThrottlingException -// The request was denied because it exceeded the allowed API request rate. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/GetServiceEndpoint -func (c *IoTWireless) GetServiceEndpoint(input *GetServiceEndpointInput) (*GetServiceEndpointOutput, error) { - req, out := c.GetServiceEndpointRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/DisassociateMulticastGroupFromFuotaTask +func (c *IoTWireless) DisassociateMulticastGroupFromFuotaTask(input *DisassociateMulticastGroupFromFuotaTaskInput) (*DisassociateMulticastGroupFromFuotaTaskOutput, error) { + req, out := c.DisassociateMulticastGroupFromFuotaTaskRequest(input) return out, req.Send() } -// GetServiceEndpointWithContext is the same as GetServiceEndpoint with the addition of +// DisassociateMulticastGroupFromFuotaTaskWithContext is the same as DisassociateMulticastGroupFromFuotaTask with the addition of // the ability to pass a context and additional request options. // -// See GetServiceEndpoint for details on how to use this API operation. +// See DisassociateMulticastGroupFromFuotaTask for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *IoTWireless) GetServiceEndpointWithContext(ctx aws.Context, input *GetServiceEndpointInput, opts ...request.Option) (*GetServiceEndpointOutput, error) { - req, out := c.GetServiceEndpointRequest(input) +func (c *IoTWireless) DisassociateMulticastGroupFromFuotaTaskWithContext(ctx aws.Context, input *DisassociateMulticastGroupFromFuotaTaskInput, opts ...request.Option) (*DisassociateMulticastGroupFromFuotaTaskOutput, error) { + req, out := c.DisassociateMulticastGroupFromFuotaTaskRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opGetServiceProfile = "GetServiceProfile" +const opDisassociateWirelessDeviceFromFuotaTask = "DisassociateWirelessDeviceFromFuotaTask" -// GetServiceProfileRequest generates a "aws/request.Request" representing the -// client's request for the GetServiceProfile operation. The "output" return +// DisassociateWirelessDeviceFromFuotaTaskRequest generates a "aws/request.Request" representing the +// client's request for the DisassociateWirelessDeviceFromFuotaTask operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See GetServiceProfile for more information on using the GetServiceProfile +// See DisassociateWirelessDeviceFromFuotaTask for more information on using the DisassociateWirelessDeviceFromFuotaTask // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the GetServiceProfileRequest method. -// req, resp := client.GetServiceProfileRequest(params) +// // Example sending a request using the DisassociateWirelessDeviceFromFuotaTaskRequest method. +// req, resp := client.DisassociateWirelessDeviceFromFuotaTaskRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/GetServiceProfile -func (c *IoTWireless) GetServiceProfileRequest(input *GetServiceProfileInput) (req *request.Request, output *GetServiceProfileOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/DisassociateWirelessDeviceFromFuotaTask +func (c *IoTWireless) DisassociateWirelessDeviceFromFuotaTaskRequest(input *DisassociateWirelessDeviceFromFuotaTaskInput) (req *request.Request, output *DisassociateWirelessDeviceFromFuotaTaskOutput) { op := &request.Operation{ - Name: opGetServiceProfile, - HTTPMethod: "GET", - HTTPPath: "/service-profiles/{Id}", + Name: opDisassociateWirelessDeviceFromFuotaTask, + HTTPMethod: "DELETE", + HTTPPath: "/fuota-tasks/{Id}/wireless-devices/{WirelessDeviceId}", } if input == nil { - input = &GetServiceProfileInput{} + input = &DisassociateWirelessDeviceFromFuotaTaskInput{} } - output = &GetServiceProfileOutput{} + output = &DisassociateWirelessDeviceFromFuotaTaskOutput{} req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// GetServiceProfile API operation for AWS IoT Wireless. +// DisassociateWirelessDeviceFromFuotaTask API operation for AWS IoT Wireless. // -// Gets information about a service profile. +// Disassociates a wireless device from a FUOTA task. // // Returns awserr.Error for service API and SDK errors. Use runtime 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 IoT Wireless's -// API operation GetServiceProfile for usage and error information. +// API operation DisassociateWirelessDeviceFromFuotaTask for usage and error information. // // Returned Error Types: // * ValidationException @@ -2674,86 +2696,90 @@ func (c *IoTWireless) GetServiceProfileRequest(input *GetServiceProfileInput) (r // * ResourceNotFoundException // Resource does not exist. // -// * InternalServerException -// An unexpected error occurred while processing a request. +// * ConflictException +// Adding, updating, or deleting the resource can cause an inconsistent state. // // * ThrottlingException // The request was denied because it exceeded the allowed API request rate. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/GetServiceProfile -func (c *IoTWireless) GetServiceProfile(input *GetServiceProfileInput) (*GetServiceProfileOutput, error) { - req, out := c.GetServiceProfileRequest(input) +// * InternalServerException +// An unexpected error occurred while processing a request. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/DisassociateWirelessDeviceFromFuotaTask +func (c *IoTWireless) DisassociateWirelessDeviceFromFuotaTask(input *DisassociateWirelessDeviceFromFuotaTaskInput) (*DisassociateWirelessDeviceFromFuotaTaskOutput, error) { + req, out := c.DisassociateWirelessDeviceFromFuotaTaskRequest(input) return out, req.Send() } -// GetServiceProfileWithContext is the same as GetServiceProfile with the addition of +// DisassociateWirelessDeviceFromFuotaTaskWithContext is the same as DisassociateWirelessDeviceFromFuotaTask with the addition of // the ability to pass a context and additional request options. // -// See GetServiceProfile for details on how to use this API operation. +// See DisassociateWirelessDeviceFromFuotaTask for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *IoTWireless) GetServiceProfileWithContext(ctx aws.Context, input *GetServiceProfileInput, opts ...request.Option) (*GetServiceProfileOutput, error) { - req, out := c.GetServiceProfileRequest(input) +func (c *IoTWireless) DisassociateWirelessDeviceFromFuotaTaskWithContext(ctx aws.Context, input *DisassociateWirelessDeviceFromFuotaTaskInput, opts ...request.Option) (*DisassociateWirelessDeviceFromFuotaTaskOutput, error) { + req, out := c.DisassociateWirelessDeviceFromFuotaTaskRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opGetWirelessDevice = "GetWirelessDevice" +const opDisassociateWirelessDeviceFromMulticastGroup = "DisassociateWirelessDeviceFromMulticastGroup" -// GetWirelessDeviceRequest generates a "aws/request.Request" representing the -// client's request for the GetWirelessDevice operation. The "output" return +// DisassociateWirelessDeviceFromMulticastGroupRequest generates a "aws/request.Request" representing the +// client's request for the DisassociateWirelessDeviceFromMulticastGroup operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See GetWirelessDevice for more information on using the GetWirelessDevice +// See DisassociateWirelessDeviceFromMulticastGroup for more information on using the DisassociateWirelessDeviceFromMulticastGroup // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the GetWirelessDeviceRequest method. -// req, resp := client.GetWirelessDeviceRequest(params) +// // Example sending a request using the DisassociateWirelessDeviceFromMulticastGroupRequest method. +// req, resp := client.DisassociateWirelessDeviceFromMulticastGroupRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/GetWirelessDevice -func (c *IoTWireless) GetWirelessDeviceRequest(input *GetWirelessDeviceInput) (req *request.Request, output *GetWirelessDeviceOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/DisassociateWirelessDeviceFromMulticastGroup +func (c *IoTWireless) DisassociateWirelessDeviceFromMulticastGroupRequest(input *DisassociateWirelessDeviceFromMulticastGroupInput) (req *request.Request, output *DisassociateWirelessDeviceFromMulticastGroupOutput) { op := &request.Operation{ - Name: opGetWirelessDevice, - HTTPMethod: "GET", - HTTPPath: "/wireless-devices/{Identifier}", + Name: opDisassociateWirelessDeviceFromMulticastGroup, + HTTPMethod: "DELETE", + HTTPPath: "/multicast-groups/{Id}/wireless-devices/{WirelessDeviceId}", } if input == nil { - input = &GetWirelessDeviceInput{} + input = &DisassociateWirelessDeviceFromMulticastGroupInput{} } - output = &GetWirelessDeviceOutput{} + output = &DisassociateWirelessDeviceFromMulticastGroupOutput{} req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// GetWirelessDevice API operation for AWS IoT Wireless. +// DisassociateWirelessDeviceFromMulticastGroup API operation for AWS IoT Wireless. // -// Gets information about a wireless device. +// Disassociates a wireless device from a multicast group. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS IoT Wireless's -// API operation GetWirelessDevice for usage and error information. +// API operation DisassociateWirelessDeviceFromMulticastGroup for usage and error information. // // Returned Error Types: // * ValidationException @@ -2765,86 +2791,87 @@ func (c *IoTWireless) GetWirelessDeviceRequest(input *GetWirelessDeviceInput) (r // * ResourceNotFoundException // Resource does not exist. // -// * InternalServerException -// An unexpected error occurred while processing a request. -// // * ThrottlingException // The request was denied because it exceeded the allowed API request rate. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/GetWirelessDevice -func (c *IoTWireless) GetWirelessDevice(input *GetWirelessDeviceInput) (*GetWirelessDeviceOutput, error) { - req, out := c.GetWirelessDeviceRequest(input) - return out, req.Send() -} +// * InternalServerException +// An unexpected error occurred while processing a request. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/DisassociateWirelessDeviceFromMulticastGroup +func (c *IoTWireless) DisassociateWirelessDeviceFromMulticastGroup(input *DisassociateWirelessDeviceFromMulticastGroupInput) (*DisassociateWirelessDeviceFromMulticastGroupOutput, error) { + req, out := c.DisassociateWirelessDeviceFromMulticastGroupRequest(input) + return out, req.Send() +} -// GetWirelessDeviceWithContext is the same as GetWirelessDevice with the addition of +// DisassociateWirelessDeviceFromMulticastGroupWithContext is the same as DisassociateWirelessDeviceFromMulticastGroup with the addition of // the ability to pass a context and additional request options. // -// See GetWirelessDevice for details on how to use this API operation. +// See DisassociateWirelessDeviceFromMulticastGroup for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *IoTWireless) GetWirelessDeviceWithContext(ctx aws.Context, input *GetWirelessDeviceInput, opts ...request.Option) (*GetWirelessDeviceOutput, error) { - req, out := c.GetWirelessDeviceRequest(input) +func (c *IoTWireless) DisassociateWirelessDeviceFromMulticastGroupWithContext(ctx aws.Context, input *DisassociateWirelessDeviceFromMulticastGroupInput, opts ...request.Option) (*DisassociateWirelessDeviceFromMulticastGroupOutput, error) { + req, out := c.DisassociateWirelessDeviceFromMulticastGroupRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opGetWirelessDeviceStatistics = "GetWirelessDeviceStatistics" +const opDisassociateWirelessDeviceFromThing = "DisassociateWirelessDeviceFromThing" -// GetWirelessDeviceStatisticsRequest generates a "aws/request.Request" representing the -// client's request for the GetWirelessDeviceStatistics operation. The "output" return +// DisassociateWirelessDeviceFromThingRequest generates a "aws/request.Request" representing the +// client's request for the DisassociateWirelessDeviceFromThing operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See GetWirelessDeviceStatistics for more information on using the GetWirelessDeviceStatistics +// See DisassociateWirelessDeviceFromThing for more information on using the DisassociateWirelessDeviceFromThing // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the GetWirelessDeviceStatisticsRequest method. -// req, resp := client.GetWirelessDeviceStatisticsRequest(params) +// // Example sending a request using the DisassociateWirelessDeviceFromThingRequest method. +// req, resp := client.DisassociateWirelessDeviceFromThingRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/GetWirelessDeviceStatistics -func (c *IoTWireless) GetWirelessDeviceStatisticsRequest(input *GetWirelessDeviceStatisticsInput) (req *request.Request, output *GetWirelessDeviceStatisticsOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/DisassociateWirelessDeviceFromThing +func (c *IoTWireless) DisassociateWirelessDeviceFromThingRequest(input *DisassociateWirelessDeviceFromThingInput) (req *request.Request, output *DisassociateWirelessDeviceFromThingOutput) { op := &request.Operation{ - Name: opGetWirelessDeviceStatistics, - HTTPMethod: "GET", - HTTPPath: "/wireless-devices/{Id}/statistics", + Name: opDisassociateWirelessDeviceFromThing, + HTTPMethod: "DELETE", + HTTPPath: "/wireless-devices/{Id}/thing", } if input == nil { - input = &GetWirelessDeviceStatisticsInput{} + input = &DisassociateWirelessDeviceFromThingInput{} } - output = &GetWirelessDeviceStatisticsOutput{} + output = &DisassociateWirelessDeviceFromThingOutput{} req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// GetWirelessDeviceStatistics API operation for AWS IoT Wireless. +// DisassociateWirelessDeviceFromThing API operation for AWS IoT Wireless. // -// Gets operating information about a wireless device. +// Disassociates a wireless device from its currently associated thing. // // Returns awserr.Error for service API and SDK errors. Use runtime 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 IoT Wireless's -// API operation GetWirelessDeviceStatistics for usage and error information. +// API operation DisassociateWirelessDeviceFromThing for usage and error information. // // Returned Error Types: // * ValidationException @@ -2856,178 +2883,182 @@ func (c *IoTWireless) GetWirelessDeviceStatisticsRequest(input *GetWirelessDevic // * ResourceNotFoundException // Resource does not exist. // -// * InternalServerException -// An unexpected error occurred while processing a request. +// * ConflictException +// Adding, updating, or deleting the resource can cause an inconsistent state. // // * ThrottlingException // The request was denied because it exceeded the allowed API request rate. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/GetWirelessDeviceStatistics -func (c *IoTWireless) GetWirelessDeviceStatistics(input *GetWirelessDeviceStatisticsInput) (*GetWirelessDeviceStatisticsOutput, error) { - req, out := c.GetWirelessDeviceStatisticsRequest(input) +// * InternalServerException +// An unexpected error occurred while processing a request. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/DisassociateWirelessDeviceFromThing +func (c *IoTWireless) DisassociateWirelessDeviceFromThing(input *DisassociateWirelessDeviceFromThingInput) (*DisassociateWirelessDeviceFromThingOutput, error) { + req, out := c.DisassociateWirelessDeviceFromThingRequest(input) return out, req.Send() } -// GetWirelessDeviceStatisticsWithContext is the same as GetWirelessDeviceStatistics with the addition of +// DisassociateWirelessDeviceFromThingWithContext is the same as DisassociateWirelessDeviceFromThing with the addition of // the ability to pass a context and additional request options. // -// See GetWirelessDeviceStatistics for details on how to use this API operation. +// See DisassociateWirelessDeviceFromThing for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *IoTWireless) GetWirelessDeviceStatisticsWithContext(ctx aws.Context, input *GetWirelessDeviceStatisticsInput, opts ...request.Option) (*GetWirelessDeviceStatisticsOutput, error) { - req, out := c.GetWirelessDeviceStatisticsRequest(input) +func (c *IoTWireless) DisassociateWirelessDeviceFromThingWithContext(ctx aws.Context, input *DisassociateWirelessDeviceFromThingInput, opts ...request.Option) (*DisassociateWirelessDeviceFromThingOutput, error) { + req, out := c.DisassociateWirelessDeviceFromThingRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opGetWirelessGateway = "GetWirelessGateway" +const opDisassociateWirelessGatewayFromCertificate = "DisassociateWirelessGatewayFromCertificate" -// GetWirelessGatewayRequest generates a "aws/request.Request" representing the -// client's request for the GetWirelessGateway operation. The "output" return +// DisassociateWirelessGatewayFromCertificateRequest generates a "aws/request.Request" representing the +// client's request for the DisassociateWirelessGatewayFromCertificate operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See GetWirelessGateway for more information on using the GetWirelessGateway +// See DisassociateWirelessGatewayFromCertificate for more information on using the DisassociateWirelessGatewayFromCertificate // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the GetWirelessGatewayRequest method. -// req, resp := client.GetWirelessGatewayRequest(params) +// // Example sending a request using the DisassociateWirelessGatewayFromCertificateRequest method. +// req, resp := client.DisassociateWirelessGatewayFromCertificateRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/GetWirelessGateway -func (c *IoTWireless) GetWirelessGatewayRequest(input *GetWirelessGatewayInput) (req *request.Request, output *GetWirelessGatewayOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/DisassociateWirelessGatewayFromCertificate +func (c *IoTWireless) DisassociateWirelessGatewayFromCertificateRequest(input *DisassociateWirelessGatewayFromCertificateInput) (req *request.Request, output *DisassociateWirelessGatewayFromCertificateOutput) { op := &request.Operation{ - Name: opGetWirelessGateway, - HTTPMethod: "GET", - HTTPPath: "/wireless-gateways/{Identifier}", + Name: opDisassociateWirelessGatewayFromCertificate, + HTTPMethod: "DELETE", + HTTPPath: "/wireless-gateways/{Id}/certificate", } if input == nil { - input = &GetWirelessGatewayInput{} + input = &DisassociateWirelessGatewayFromCertificateInput{} } - output = &GetWirelessGatewayOutput{} + output = &DisassociateWirelessGatewayFromCertificateOutput{} req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// GetWirelessGateway API operation for AWS IoT Wireless. +// DisassociateWirelessGatewayFromCertificate API operation for AWS IoT Wireless. // -// Gets information about a wireless gateway. +// Disassociates a wireless gateway from its currently associated certificate. // // Returns awserr.Error for service API and SDK errors. Use runtime 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 IoT Wireless's -// API operation GetWirelessGateway for usage and error information. +// API operation DisassociateWirelessGatewayFromCertificate for usage and error information. // // Returned Error Types: // * ValidationException // The input did not meet the specified constraints. // -// * ResourceNotFoundException -// Resource does not exist. -// // * AccessDeniedException // User does not have permission to perform this action. // +// * ResourceNotFoundException +// Resource does not exist. +// // * InternalServerException // An unexpected error occurred while processing a request. // // * ThrottlingException // The request was denied because it exceeded the allowed API request rate. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/GetWirelessGateway -func (c *IoTWireless) GetWirelessGateway(input *GetWirelessGatewayInput) (*GetWirelessGatewayOutput, error) { - req, out := c.GetWirelessGatewayRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/DisassociateWirelessGatewayFromCertificate +func (c *IoTWireless) DisassociateWirelessGatewayFromCertificate(input *DisassociateWirelessGatewayFromCertificateInput) (*DisassociateWirelessGatewayFromCertificateOutput, error) { + req, out := c.DisassociateWirelessGatewayFromCertificateRequest(input) return out, req.Send() } -// GetWirelessGatewayWithContext is the same as GetWirelessGateway with the addition of +// DisassociateWirelessGatewayFromCertificateWithContext is the same as DisassociateWirelessGatewayFromCertificate with the addition of // the ability to pass a context and additional request options. // -// See GetWirelessGateway for details on how to use this API operation. +// See DisassociateWirelessGatewayFromCertificate for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *IoTWireless) GetWirelessGatewayWithContext(ctx aws.Context, input *GetWirelessGatewayInput, opts ...request.Option) (*GetWirelessGatewayOutput, error) { - req, out := c.GetWirelessGatewayRequest(input) +func (c *IoTWireless) DisassociateWirelessGatewayFromCertificateWithContext(ctx aws.Context, input *DisassociateWirelessGatewayFromCertificateInput, opts ...request.Option) (*DisassociateWirelessGatewayFromCertificateOutput, error) { + req, out := c.DisassociateWirelessGatewayFromCertificateRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opGetWirelessGatewayCertificate = "GetWirelessGatewayCertificate" +const opDisassociateWirelessGatewayFromThing = "DisassociateWirelessGatewayFromThing" -// GetWirelessGatewayCertificateRequest generates a "aws/request.Request" representing the -// client's request for the GetWirelessGatewayCertificate operation. The "output" return +// DisassociateWirelessGatewayFromThingRequest generates a "aws/request.Request" representing the +// client's request for the DisassociateWirelessGatewayFromThing operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See GetWirelessGatewayCertificate for more information on using the GetWirelessGatewayCertificate +// See DisassociateWirelessGatewayFromThing for more information on using the DisassociateWirelessGatewayFromThing // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the GetWirelessGatewayCertificateRequest method. -// req, resp := client.GetWirelessGatewayCertificateRequest(params) +// // Example sending a request using the DisassociateWirelessGatewayFromThingRequest method. +// req, resp := client.DisassociateWirelessGatewayFromThingRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/GetWirelessGatewayCertificate -func (c *IoTWireless) GetWirelessGatewayCertificateRequest(input *GetWirelessGatewayCertificateInput) (req *request.Request, output *GetWirelessGatewayCertificateOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/DisassociateWirelessGatewayFromThing +func (c *IoTWireless) DisassociateWirelessGatewayFromThingRequest(input *DisassociateWirelessGatewayFromThingInput) (req *request.Request, output *DisassociateWirelessGatewayFromThingOutput) { op := &request.Operation{ - Name: opGetWirelessGatewayCertificate, - HTTPMethod: "GET", - HTTPPath: "/wireless-gateways/{Id}/certificate", + Name: opDisassociateWirelessGatewayFromThing, + HTTPMethod: "DELETE", + HTTPPath: "/wireless-gateways/{Id}/thing", } if input == nil { - input = &GetWirelessGatewayCertificateInput{} + input = &DisassociateWirelessGatewayFromThingInput{} } - output = &GetWirelessGatewayCertificateOutput{} + output = &DisassociateWirelessGatewayFromThingOutput{} req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// GetWirelessGatewayCertificate API operation for AWS IoT Wireless. +// DisassociateWirelessGatewayFromThing API operation for AWS IoT Wireless. // -// Gets the ID of the certificate that is currently associated with a wireless -// gateway. +// Disassociates a wireless gateway from its currently associated thing. // // Returns awserr.Error for service API and SDK errors. Use runtime 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 IoT Wireless's -// API operation GetWirelessGatewayCertificate for usage and error information. +// API operation DisassociateWirelessGatewayFromThing for usage and error information. // // Returned Error Types: // * ValidationException @@ -3039,177 +3070,180 @@ func (c *IoTWireless) GetWirelessGatewayCertificateRequest(input *GetWirelessGat // * ResourceNotFoundException // Resource does not exist. // -// * InternalServerException -// An unexpected error occurred while processing a request. +// * ConflictException +// Adding, updating, or deleting the resource can cause an inconsistent state. // // * ThrottlingException // The request was denied because it exceeded the allowed API request rate. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/GetWirelessGatewayCertificate -func (c *IoTWireless) GetWirelessGatewayCertificate(input *GetWirelessGatewayCertificateInput) (*GetWirelessGatewayCertificateOutput, error) { - req, out := c.GetWirelessGatewayCertificateRequest(input) +// * InternalServerException +// An unexpected error occurred while processing a request. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/DisassociateWirelessGatewayFromThing +func (c *IoTWireless) DisassociateWirelessGatewayFromThing(input *DisassociateWirelessGatewayFromThingInput) (*DisassociateWirelessGatewayFromThingOutput, error) { + req, out := c.DisassociateWirelessGatewayFromThingRequest(input) return out, req.Send() } -// GetWirelessGatewayCertificateWithContext is the same as GetWirelessGatewayCertificate with the addition of +// DisassociateWirelessGatewayFromThingWithContext is the same as DisassociateWirelessGatewayFromThing with the addition of // the ability to pass a context and additional request options. // -// See GetWirelessGatewayCertificate for details on how to use this API operation. +// See DisassociateWirelessGatewayFromThing for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *IoTWireless) GetWirelessGatewayCertificateWithContext(ctx aws.Context, input *GetWirelessGatewayCertificateInput, opts ...request.Option) (*GetWirelessGatewayCertificateOutput, error) { - req, out := c.GetWirelessGatewayCertificateRequest(input) +func (c *IoTWireless) DisassociateWirelessGatewayFromThingWithContext(ctx aws.Context, input *DisassociateWirelessGatewayFromThingInput, opts ...request.Option) (*DisassociateWirelessGatewayFromThingOutput, error) { + req, out := c.DisassociateWirelessGatewayFromThingRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opGetWirelessGatewayFirmwareInformation = "GetWirelessGatewayFirmwareInformation" +const opGetDestination = "GetDestination" -// GetWirelessGatewayFirmwareInformationRequest generates a "aws/request.Request" representing the -// client's request for the GetWirelessGatewayFirmwareInformation operation. The "output" return +// GetDestinationRequest generates a "aws/request.Request" representing the +// client's request for the GetDestination operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See GetWirelessGatewayFirmwareInformation for more information on using the GetWirelessGatewayFirmwareInformation +// See GetDestination for more information on using the GetDestination // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the GetWirelessGatewayFirmwareInformationRequest method. -// req, resp := client.GetWirelessGatewayFirmwareInformationRequest(params) +// // Example sending a request using the GetDestinationRequest method. +// req, resp := client.GetDestinationRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/GetWirelessGatewayFirmwareInformation -func (c *IoTWireless) GetWirelessGatewayFirmwareInformationRequest(input *GetWirelessGatewayFirmwareInformationInput) (req *request.Request, output *GetWirelessGatewayFirmwareInformationOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/GetDestination +func (c *IoTWireless) GetDestinationRequest(input *GetDestinationInput) (req *request.Request, output *GetDestinationOutput) { op := &request.Operation{ - Name: opGetWirelessGatewayFirmwareInformation, + Name: opGetDestination, HTTPMethod: "GET", - HTTPPath: "/wireless-gateways/{Id}/firmware-information", + HTTPPath: "/destinations/{Name}", } if input == nil { - input = &GetWirelessGatewayFirmwareInformationInput{} + input = &GetDestinationInput{} } - output = &GetWirelessGatewayFirmwareInformationOutput{} + output = &GetDestinationOutput{} req = c.newRequest(op, input, output) return } -// GetWirelessGatewayFirmwareInformation API operation for AWS IoT Wireless. +// GetDestination API operation for AWS IoT Wireless. // -// Gets the firmware version and other information about a wireless gateway. +// Gets information about a destination. // // Returns awserr.Error for service API and SDK errors. Use runtime 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 IoT Wireless's -// API operation GetWirelessGatewayFirmwareInformation for usage and error information. +// API operation GetDestination for usage and error information. // // Returned Error Types: // * ValidationException // The input did not meet the specified constraints. // -// * AccessDeniedException -// User does not have permission to perform this action. -// // * ResourceNotFoundException // Resource does not exist. // +// * AccessDeniedException +// User does not have permission to perform this action. +// // * InternalServerException // An unexpected error occurred while processing a request. // // * ThrottlingException // The request was denied because it exceeded the allowed API request rate. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/GetWirelessGatewayFirmwareInformation -func (c *IoTWireless) GetWirelessGatewayFirmwareInformation(input *GetWirelessGatewayFirmwareInformationInput) (*GetWirelessGatewayFirmwareInformationOutput, error) { - req, out := c.GetWirelessGatewayFirmwareInformationRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/GetDestination +func (c *IoTWireless) GetDestination(input *GetDestinationInput) (*GetDestinationOutput, error) { + req, out := c.GetDestinationRequest(input) return out, req.Send() } -// GetWirelessGatewayFirmwareInformationWithContext is the same as GetWirelessGatewayFirmwareInformation with the addition of +// GetDestinationWithContext is the same as GetDestination with the addition of // the ability to pass a context and additional request options. // -// See GetWirelessGatewayFirmwareInformation for details on how to use this API operation. +// See GetDestination for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *IoTWireless) GetWirelessGatewayFirmwareInformationWithContext(ctx aws.Context, input *GetWirelessGatewayFirmwareInformationInput, opts ...request.Option) (*GetWirelessGatewayFirmwareInformationOutput, error) { - req, out := c.GetWirelessGatewayFirmwareInformationRequest(input) +func (c *IoTWireless) GetDestinationWithContext(ctx aws.Context, input *GetDestinationInput, opts ...request.Option) (*GetDestinationOutput, error) { + req, out := c.GetDestinationRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opGetWirelessGatewayStatistics = "GetWirelessGatewayStatistics" +const opGetDeviceProfile = "GetDeviceProfile" -// GetWirelessGatewayStatisticsRequest generates a "aws/request.Request" representing the -// client's request for the GetWirelessGatewayStatistics operation. The "output" return +// GetDeviceProfileRequest generates a "aws/request.Request" representing the +// client's request for the GetDeviceProfile operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See GetWirelessGatewayStatistics for more information on using the GetWirelessGatewayStatistics +// See GetDeviceProfile for more information on using the GetDeviceProfile // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the GetWirelessGatewayStatisticsRequest method. -// req, resp := client.GetWirelessGatewayStatisticsRequest(params) +// // Example sending a request using the GetDeviceProfileRequest method. +// req, resp := client.GetDeviceProfileRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/GetWirelessGatewayStatistics -func (c *IoTWireless) GetWirelessGatewayStatisticsRequest(input *GetWirelessGatewayStatisticsInput) (req *request.Request, output *GetWirelessGatewayStatisticsOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/GetDeviceProfile +func (c *IoTWireless) GetDeviceProfileRequest(input *GetDeviceProfileInput) (req *request.Request, output *GetDeviceProfileOutput) { op := &request.Operation{ - Name: opGetWirelessGatewayStatistics, + Name: opGetDeviceProfile, HTTPMethod: "GET", - HTTPPath: "/wireless-gateways/{Id}/statistics", + HTTPPath: "/device-profiles/{Id}", } if input == nil { - input = &GetWirelessGatewayStatisticsInput{} + input = &GetDeviceProfileInput{} } - output = &GetWirelessGatewayStatisticsOutput{} + output = &GetDeviceProfileOutput{} req = c.newRequest(op, input, output) return } -// GetWirelessGatewayStatistics API operation for AWS IoT Wireless. +// GetDeviceProfile API operation for AWS IoT Wireless. // -// Gets operating information about a wireless gateway. +// Gets information about a device profile. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS IoT Wireless's -// API operation GetWirelessGatewayStatistics for usage and error information. +// API operation GetDeviceProfile for usage and error information. // // Returned Error Types: // * ValidationException @@ -3227,273 +3261,272 @@ func (c *IoTWireless) GetWirelessGatewayStatisticsRequest(input *GetWirelessGate // * ThrottlingException // The request was denied because it exceeded the allowed API request rate. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/GetWirelessGatewayStatistics -func (c *IoTWireless) GetWirelessGatewayStatistics(input *GetWirelessGatewayStatisticsInput) (*GetWirelessGatewayStatisticsOutput, error) { - req, out := c.GetWirelessGatewayStatisticsRequest(input) - return out, req.Send() -} +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/GetDeviceProfile +func (c *IoTWireless) GetDeviceProfile(input *GetDeviceProfileInput) (*GetDeviceProfileOutput, error) { + req, out := c.GetDeviceProfileRequest(input) + return out, req.Send() +} -// GetWirelessGatewayStatisticsWithContext is the same as GetWirelessGatewayStatistics with the addition of +// GetDeviceProfileWithContext is the same as GetDeviceProfile with the addition of // the ability to pass a context and additional request options. // -// See GetWirelessGatewayStatistics for details on how to use this API operation. +// See GetDeviceProfile for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *IoTWireless) GetWirelessGatewayStatisticsWithContext(ctx aws.Context, input *GetWirelessGatewayStatisticsInput, opts ...request.Option) (*GetWirelessGatewayStatisticsOutput, error) { - req, out := c.GetWirelessGatewayStatisticsRequest(input) +func (c *IoTWireless) GetDeviceProfileWithContext(ctx aws.Context, input *GetDeviceProfileInput, opts ...request.Option) (*GetDeviceProfileOutput, error) { + req, out := c.GetDeviceProfileRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opGetWirelessGatewayTask = "GetWirelessGatewayTask" +const opGetFuotaTask = "GetFuotaTask" -// GetWirelessGatewayTaskRequest generates a "aws/request.Request" representing the -// client's request for the GetWirelessGatewayTask operation. The "output" return +// GetFuotaTaskRequest generates a "aws/request.Request" representing the +// client's request for the GetFuotaTask operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See GetWirelessGatewayTask for more information on using the GetWirelessGatewayTask +// See GetFuotaTask for more information on using the GetFuotaTask // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the GetWirelessGatewayTaskRequest method. -// req, resp := client.GetWirelessGatewayTaskRequest(params) +// // Example sending a request using the GetFuotaTaskRequest method. +// req, resp := client.GetFuotaTaskRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/GetWirelessGatewayTask -func (c *IoTWireless) GetWirelessGatewayTaskRequest(input *GetWirelessGatewayTaskInput) (req *request.Request, output *GetWirelessGatewayTaskOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/GetFuotaTask +func (c *IoTWireless) GetFuotaTaskRequest(input *GetFuotaTaskInput) (req *request.Request, output *GetFuotaTaskOutput) { op := &request.Operation{ - Name: opGetWirelessGatewayTask, + Name: opGetFuotaTask, HTTPMethod: "GET", - HTTPPath: "/wireless-gateways/{Id}/tasks", + HTTPPath: "/fuota-tasks/{Id}", } if input == nil { - input = &GetWirelessGatewayTaskInput{} + input = &GetFuotaTaskInput{} } - output = &GetWirelessGatewayTaskOutput{} + output = &GetFuotaTaskOutput{} req = c.newRequest(op, input, output) return } -// GetWirelessGatewayTask API operation for AWS IoT Wireless. +// GetFuotaTask API operation for AWS IoT Wireless. // -// Gets information about a wireless gateway task. +// Gets information about a FUOTA task. // // Returns awserr.Error for service API and SDK errors. Use runtime 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 IoT Wireless's -// API operation GetWirelessGatewayTask for usage and error information. +// API operation GetFuotaTask for usage and error information. // // Returned Error Types: // * ValidationException // The input did not meet the specified constraints. // -// * AccessDeniedException -// User does not have permission to perform this action. -// // * ResourceNotFoundException // Resource does not exist. // +// * AccessDeniedException +// User does not have permission to perform this action. +// // * InternalServerException // An unexpected error occurred while processing a request. // // * ThrottlingException // The request was denied because it exceeded the allowed API request rate. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/GetWirelessGatewayTask -func (c *IoTWireless) GetWirelessGatewayTask(input *GetWirelessGatewayTaskInput) (*GetWirelessGatewayTaskOutput, error) { - req, out := c.GetWirelessGatewayTaskRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/GetFuotaTask +func (c *IoTWireless) GetFuotaTask(input *GetFuotaTaskInput) (*GetFuotaTaskOutput, error) { + req, out := c.GetFuotaTaskRequest(input) return out, req.Send() } -// GetWirelessGatewayTaskWithContext is the same as GetWirelessGatewayTask with the addition of +// GetFuotaTaskWithContext is the same as GetFuotaTask with the addition of // the ability to pass a context and additional request options. // -// See GetWirelessGatewayTask for details on how to use this API operation. +// See GetFuotaTask for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *IoTWireless) GetWirelessGatewayTaskWithContext(ctx aws.Context, input *GetWirelessGatewayTaskInput, opts ...request.Option) (*GetWirelessGatewayTaskOutput, error) { - req, out := c.GetWirelessGatewayTaskRequest(input) +func (c *IoTWireless) GetFuotaTaskWithContext(ctx aws.Context, input *GetFuotaTaskInput, opts ...request.Option) (*GetFuotaTaskOutput, error) { + req, out := c.GetFuotaTaskRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opGetWirelessGatewayTaskDefinition = "GetWirelessGatewayTaskDefinition" +const opGetLogLevelsByResourceTypes = "GetLogLevelsByResourceTypes" -// GetWirelessGatewayTaskDefinitionRequest generates a "aws/request.Request" representing the -// client's request for the GetWirelessGatewayTaskDefinition operation. The "output" return +// GetLogLevelsByResourceTypesRequest generates a "aws/request.Request" representing the +// client's request for the GetLogLevelsByResourceTypes operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See GetWirelessGatewayTaskDefinition for more information on using the GetWirelessGatewayTaskDefinition +// See GetLogLevelsByResourceTypes for more information on using the GetLogLevelsByResourceTypes // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the GetWirelessGatewayTaskDefinitionRequest method. -// req, resp := client.GetWirelessGatewayTaskDefinitionRequest(params) +// // Example sending a request using the GetLogLevelsByResourceTypesRequest method. +// req, resp := client.GetLogLevelsByResourceTypesRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/GetWirelessGatewayTaskDefinition -func (c *IoTWireless) GetWirelessGatewayTaskDefinitionRequest(input *GetWirelessGatewayTaskDefinitionInput) (req *request.Request, output *GetWirelessGatewayTaskDefinitionOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/GetLogLevelsByResourceTypes +func (c *IoTWireless) GetLogLevelsByResourceTypesRequest(input *GetLogLevelsByResourceTypesInput) (req *request.Request, output *GetLogLevelsByResourceTypesOutput) { op := &request.Operation{ - Name: opGetWirelessGatewayTaskDefinition, + Name: opGetLogLevelsByResourceTypes, HTTPMethod: "GET", - HTTPPath: "/wireless-gateway-task-definitions/{Id}", + HTTPPath: "/log-levels", } if input == nil { - input = &GetWirelessGatewayTaskDefinitionInput{} + input = &GetLogLevelsByResourceTypesInput{} } - output = &GetWirelessGatewayTaskDefinitionOutput{} + output = &GetLogLevelsByResourceTypesOutput{} req = c.newRequest(op, input, output) return } -// GetWirelessGatewayTaskDefinition API operation for AWS IoT Wireless. +// GetLogLevelsByResourceTypes API operation for AWS IoT Wireless. // -// Gets information about a wireless gateway task definition. +// Returns current default log levels or log levels by resource types. Based +// on resource types, log levels can be for wireless device log options or wireless +// gateway log options. // // Returns awserr.Error for service API and SDK errors. Use runtime 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 IoT Wireless's -// API operation GetWirelessGatewayTaskDefinition for usage and error information. +// API operation GetLogLevelsByResourceTypes for usage and error information. // // Returned Error Types: -// * ValidationException -// The input did not meet the specified constraints. -// // * AccessDeniedException // User does not have permission to perform this action. // -// * ResourceNotFoundException -// Resource does not exist. -// // * InternalServerException // An unexpected error occurred while processing a request. // +// * ResourceNotFoundException +// Resource does not exist. +// // * ThrottlingException // The request was denied because it exceeded the allowed API request rate. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/GetWirelessGatewayTaskDefinition -func (c *IoTWireless) GetWirelessGatewayTaskDefinition(input *GetWirelessGatewayTaskDefinitionInput) (*GetWirelessGatewayTaskDefinitionOutput, error) { - req, out := c.GetWirelessGatewayTaskDefinitionRequest(input) +// * ValidationException +// The input did not meet the specified constraints. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/GetLogLevelsByResourceTypes +func (c *IoTWireless) GetLogLevelsByResourceTypes(input *GetLogLevelsByResourceTypesInput) (*GetLogLevelsByResourceTypesOutput, error) { + req, out := c.GetLogLevelsByResourceTypesRequest(input) return out, req.Send() } -// GetWirelessGatewayTaskDefinitionWithContext is the same as GetWirelessGatewayTaskDefinition with the addition of +// GetLogLevelsByResourceTypesWithContext is the same as GetLogLevelsByResourceTypes with the addition of // the ability to pass a context and additional request options. // -// See GetWirelessGatewayTaskDefinition for details on how to use this API operation. +// See GetLogLevelsByResourceTypes for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *IoTWireless) GetWirelessGatewayTaskDefinitionWithContext(ctx aws.Context, input *GetWirelessGatewayTaskDefinitionInput, opts ...request.Option) (*GetWirelessGatewayTaskDefinitionOutput, error) { - req, out := c.GetWirelessGatewayTaskDefinitionRequest(input) +func (c *IoTWireless) GetLogLevelsByResourceTypesWithContext(ctx aws.Context, input *GetLogLevelsByResourceTypesInput, opts ...request.Option) (*GetLogLevelsByResourceTypesOutput, error) { + req, out := c.GetLogLevelsByResourceTypesRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opListDestinations = "ListDestinations" +const opGetMulticastGroup = "GetMulticastGroup" -// ListDestinationsRequest generates a "aws/request.Request" representing the -// client's request for the ListDestinations operation. The "output" return +// GetMulticastGroupRequest generates a "aws/request.Request" representing the +// client's request for the GetMulticastGroup operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See ListDestinations for more information on using the ListDestinations +// See GetMulticastGroup for more information on using the GetMulticastGroup // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the ListDestinationsRequest method. -// req, resp := client.ListDestinationsRequest(params) +// // Example sending a request using the GetMulticastGroupRequest method. +// req, resp := client.GetMulticastGroupRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/ListDestinations -func (c *IoTWireless) ListDestinationsRequest(input *ListDestinationsInput) (req *request.Request, output *ListDestinationsOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/GetMulticastGroup +func (c *IoTWireless) GetMulticastGroupRequest(input *GetMulticastGroupInput) (req *request.Request, output *GetMulticastGroupOutput) { op := &request.Operation{ - Name: opListDestinations, + Name: opGetMulticastGroup, HTTPMethod: "GET", - HTTPPath: "/destinations", - Paginator: &request.Paginator{ - InputTokens: []string{"NextToken"}, - OutputTokens: []string{"NextToken"}, - LimitToken: "MaxResults", - TruncationToken: "", - }, + HTTPPath: "/multicast-groups/{Id}", } if input == nil { - input = &ListDestinationsInput{} + input = &GetMulticastGroupInput{} } - output = &ListDestinationsOutput{} + output = &GetMulticastGroupOutput{} req = c.newRequest(op, input, output) return } -// ListDestinations API operation for AWS IoT Wireless. +// GetMulticastGroup API operation for AWS IoT Wireless. // -// Lists the destinations registered to your AWS account. +// Gets information about a multicast group. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS IoT Wireless's -// API operation ListDestinations for usage and error information. +// API operation GetMulticastGroup for usage and error information. // // Returned Error Types: // * ValidationException // The input did not meet the specified constraints. // +// * ResourceNotFoundException +// Resource does not exist. +// // * AccessDeniedException // User does not have permission to perform this action. // @@ -3503,143 +3536,88 @@ func (c *IoTWireless) ListDestinationsRequest(input *ListDestinationsInput) (req // * ThrottlingException // The request was denied because it exceeded the allowed API request rate. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/ListDestinations -func (c *IoTWireless) ListDestinations(input *ListDestinationsInput) (*ListDestinationsOutput, error) { - req, out := c.ListDestinationsRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/GetMulticastGroup +func (c *IoTWireless) GetMulticastGroup(input *GetMulticastGroupInput) (*GetMulticastGroupOutput, error) { + req, out := c.GetMulticastGroupRequest(input) return out, req.Send() } -// ListDestinationsWithContext is the same as ListDestinations with the addition of +// GetMulticastGroupWithContext is the same as GetMulticastGroup with the addition of // the ability to pass a context and additional request options. // -// See ListDestinations for details on how to use this API operation. +// See GetMulticastGroup for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *IoTWireless) ListDestinationsWithContext(ctx aws.Context, input *ListDestinationsInput, opts ...request.Option) (*ListDestinationsOutput, error) { - req, out := c.ListDestinationsRequest(input) +func (c *IoTWireless) GetMulticastGroupWithContext(ctx aws.Context, input *GetMulticastGroupInput, opts ...request.Option) (*GetMulticastGroupOutput, error) { + req, out := c.GetMulticastGroupRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// ListDestinationsPages iterates over the pages of a ListDestinations operation, -// calling the "fn" function with the response data for each page. To stop -// iterating, return false from the fn function. -// -// See ListDestinations 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 ListDestinations operation. -// pageNum := 0 -// err := client.ListDestinationsPages(params, -// func(page *iotwireless.ListDestinationsOutput, lastPage bool) bool { -// pageNum++ -// fmt.Println(page) -// return pageNum <= 3 -// }) -// -func (c *IoTWireless) ListDestinationsPages(input *ListDestinationsInput, fn func(*ListDestinationsOutput, bool) bool) error { - return c.ListDestinationsPagesWithContext(aws.BackgroundContext(), input, fn) -} - -// ListDestinationsPagesWithContext same as ListDestinationsPages 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 *IoTWireless) ListDestinationsPagesWithContext(ctx aws.Context, input *ListDestinationsInput, fn func(*ListDestinationsOutput, bool) bool, opts ...request.Option) error { - p := request.Pagination{ - NewRequest: func() (*request.Request, error) { - var inCpy *ListDestinationsInput - if input != nil { - tmp := *input - inCpy = &tmp - } - req, _ := c.ListDestinationsRequest(inCpy) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return req, nil - }, - } - - for p.Next() { - if !fn(p.Page().(*ListDestinationsOutput), !p.HasNextPage()) { - break - } - } - - return p.Err() -} - -const opListDeviceProfiles = "ListDeviceProfiles" +const opGetMulticastGroupSession = "GetMulticastGroupSession" -// ListDeviceProfilesRequest generates a "aws/request.Request" representing the -// client's request for the ListDeviceProfiles operation. The "output" return +// GetMulticastGroupSessionRequest generates a "aws/request.Request" representing the +// client's request for the GetMulticastGroupSession operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See ListDeviceProfiles for more information on using the ListDeviceProfiles +// See GetMulticastGroupSession for more information on using the GetMulticastGroupSession // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the ListDeviceProfilesRequest method. -// req, resp := client.ListDeviceProfilesRequest(params) +// // Example sending a request using the GetMulticastGroupSessionRequest method. +// req, resp := client.GetMulticastGroupSessionRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/ListDeviceProfiles -func (c *IoTWireless) ListDeviceProfilesRequest(input *ListDeviceProfilesInput) (req *request.Request, output *ListDeviceProfilesOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/GetMulticastGroupSession +func (c *IoTWireless) GetMulticastGroupSessionRequest(input *GetMulticastGroupSessionInput) (req *request.Request, output *GetMulticastGroupSessionOutput) { op := &request.Operation{ - Name: opListDeviceProfiles, + Name: opGetMulticastGroupSession, HTTPMethod: "GET", - HTTPPath: "/device-profiles", - Paginator: &request.Paginator{ - InputTokens: []string{"NextToken"}, - OutputTokens: []string{"NextToken"}, - LimitToken: "MaxResults", - TruncationToken: "", - }, + HTTPPath: "/multicast-groups/{Id}/session", } if input == nil { - input = &ListDeviceProfilesInput{} + input = &GetMulticastGroupSessionInput{} } - output = &ListDeviceProfilesOutput{} + output = &GetMulticastGroupSessionOutput{} req = c.newRequest(op, input, output) return } -// ListDeviceProfiles API operation for AWS IoT Wireless. +// GetMulticastGroupSession API operation for AWS IoT Wireless. // -// Lists the device profiles registered to your AWS account. +// Gets information about a multicast group session. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS IoT Wireless's -// API operation ListDeviceProfiles for usage and error information. +// API operation GetMulticastGroupSession for usage and error information. // // Returned Error Types: // * ValidationException // The input did not meet the specified constraints. // +// * ResourceNotFoundException +// Resource does not exist. +// // * AccessDeniedException // User does not have permission to perform this action. // @@ -3649,132 +3627,81 @@ func (c *IoTWireless) ListDeviceProfilesRequest(input *ListDeviceProfilesInput) // * ThrottlingException // The request was denied because it exceeded the allowed API request rate. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/ListDeviceProfiles -func (c *IoTWireless) ListDeviceProfiles(input *ListDeviceProfilesInput) (*ListDeviceProfilesOutput, error) { - req, out := c.ListDeviceProfilesRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/GetMulticastGroupSession +func (c *IoTWireless) GetMulticastGroupSession(input *GetMulticastGroupSessionInput) (*GetMulticastGroupSessionOutput, error) { + req, out := c.GetMulticastGroupSessionRequest(input) return out, req.Send() } -// ListDeviceProfilesWithContext is the same as ListDeviceProfiles with the addition of +// GetMulticastGroupSessionWithContext is the same as GetMulticastGroupSession with the addition of // the ability to pass a context and additional request options. // -// See ListDeviceProfiles for details on how to use this API operation. +// See GetMulticastGroupSession for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *IoTWireless) ListDeviceProfilesWithContext(ctx aws.Context, input *ListDeviceProfilesInput, opts ...request.Option) (*ListDeviceProfilesOutput, error) { - req, out := c.ListDeviceProfilesRequest(input) +func (c *IoTWireless) GetMulticastGroupSessionWithContext(ctx aws.Context, input *GetMulticastGroupSessionInput, opts ...request.Option) (*GetMulticastGroupSessionOutput, error) { + req, out := c.GetMulticastGroupSessionRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// ListDeviceProfilesPages iterates over the pages of a ListDeviceProfiles operation, -// calling the "fn" function with the response data for each page. To stop -// iterating, return false from the fn function. +const opGetPartnerAccount = "GetPartnerAccount" + +// GetPartnerAccountRequest generates a "aws/request.Request" representing the +// client's request for the GetPartnerAccount operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. // -// See ListDeviceProfiles method for more information on how to use this operation. +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. // -// Note: This operation can generate multiple requests to a service. +// See GetPartnerAccount for more information on using the GetPartnerAccount +// API call, and error handling. // -// // Example iterating over at most 3 pages of a ListDeviceProfiles operation. -// pageNum := 0 -// err := client.ListDeviceProfilesPages(params, -// func(page *iotwireless.ListDeviceProfilesOutput, lastPage bool) bool { -// pageNum++ -// fmt.Println(page) -// return pageNum <= 3 -// }) +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. // -func (c *IoTWireless) ListDeviceProfilesPages(input *ListDeviceProfilesInput, fn func(*ListDeviceProfilesOutput, bool) bool) error { - return c.ListDeviceProfilesPagesWithContext(aws.BackgroundContext(), input, fn) -} - -// ListDeviceProfilesPagesWithContext same as ListDeviceProfilesPages 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 *IoTWireless) ListDeviceProfilesPagesWithContext(ctx aws.Context, input *ListDeviceProfilesInput, fn func(*ListDeviceProfilesOutput, bool) bool, opts ...request.Option) error { - p := request.Pagination{ - NewRequest: func() (*request.Request, error) { - var inCpy *ListDeviceProfilesInput - if input != nil { - tmp := *input - inCpy = &tmp - } - req, _ := c.ListDeviceProfilesRequest(inCpy) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return req, nil - }, - } - - for p.Next() { - if !fn(p.Page().(*ListDeviceProfilesOutput), !p.HasNextPage()) { - break - } - } - - return p.Err() -} - -const opListPartnerAccounts = "ListPartnerAccounts" - -// ListPartnerAccountsRequest generates a "aws/request.Request" representing the -// client's request for the ListPartnerAccounts operation. The "output" return -// value will be populated with the request's response once the request completes -// successfully. -// -// Use "Send" method on the returned Request to send the API call to the service. -// the "output" return value is not valid until after Send returns without error. -// -// See ListPartnerAccounts for more information on using the ListPartnerAccounts -// API call, and error handling. -// -// This method is useful when you want to inject custom logic or configuration -// into the SDK's request lifecycle. Such as custom headers, or retry logic. -// -// -// // Example sending a request using the ListPartnerAccountsRequest method. -// req, resp := client.ListPartnerAccountsRequest(params) +// // Example sending a request using the GetPartnerAccountRequest method. +// req, resp := client.GetPartnerAccountRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/ListPartnerAccounts -func (c *IoTWireless) ListPartnerAccountsRequest(input *ListPartnerAccountsInput) (req *request.Request, output *ListPartnerAccountsOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/GetPartnerAccount +func (c *IoTWireless) GetPartnerAccountRequest(input *GetPartnerAccountInput) (req *request.Request, output *GetPartnerAccountOutput) { op := &request.Operation{ - Name: opListPartnerAccounts, + Name: opGetPartnerAccount, HTTPMethod: "GET", - HTTPPath: "/partner-accounts", + HTTPPath: "/partner-accounts/{PartnerAccountId}", } if input == nil { - input = &ListPartnerAccountsInput{} + input = &GetPartnerAccountInput{} } - output = &ListPartnerAccountsOutput{} + output = &GetPartnerAccountOutput{} req = c.newRequest(op, input, output) return } -// ListPartnerAccounts API operation for AWS IoT Wireless. +// GetPartnerAccount API operation for AWS IoT Wireless. // -// Lists the partner accounts associated with your AWS account. +// Gets information about a partner account. If PartnerAccountId and PartnerType +// are null, returns all partner accounts. // // Returns awserr.Error for service API and SDK errors. Use runtime 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 IoT Wireless's -// API operation ListPartnerAccounts for usage and error information. +// API operation GetPartnerAccount for usage and error information. // // Returned Error Types: // * ValidationException @@ -3789,86 +3716,80 @@ func (c *IoTWireless) ListPartnerAccountsRequest(input *ListPartnerAccountsInput // * ThrottlingException // The request was denied because it exceeded the allowed API request rate. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/ListPartnerAccounts -func (c *IoTWireless) ListPartnerAccounts(input *ListPartnerAccountsInput) (*ListPartnerAccountsOutput, error) { - req, out := c.ListPartnerAccountsRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/GetPartnerAccount +func (c *IoTWireless) GetPartnerAccount(input *GetPartnerAccountInput) (*GetPartnerAccountOutput, error) { + req, out := c.GetPartnerAccountRequest(input) return out, req.Send() } -// ListPartnerAccountsWithContext is the same as ListPartnerAccounts with the addition of +// GetPartnerAccountWithContext is the same as GetPartnerAccount with the addition of // the ability to pass a context and additional request options. // -// See ListPartnerAccounts for details on how to use this API operation. +// See GetPartnerAccount for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *IoTWireless) ListPartnerAccountsWithContext(ctx aws.Context, input *ListPartnerAccountsInput, opts ...request.Option) (*ListPartnerAccountsOutput, error) { - req, out := c.ListPartnerAccountsRequest(input) +func (c *IoTWireless) GetPartnerAccountWithContext(ctx aws.Context, input *GetPartnerAccountInput, opts ...request.Option) (*GetPartnerAccountOutput, error) { + req, out := c.GetPartnerAccountRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opListServiceProfiles = "ListServiceProfiles" +const opGetResourceEventConfiguration = "GetResourceEventConfiguration" -// ListServiceProfilesRequest generates a "aws/request.Request" representing the -// client's request for the ListServiceProfiles operation. The "output" return +// GetResourceEventConfigurationRequest generates a "aws/request.Request" representing the +// client's request for the GetResourceEventConfiguration operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See ListServiceProfiles for more information on using the ListServiceProfiles +// See GetResourceEventConfiguration for more information on using the GetResourceEventConfiguration // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the ListServiceProfilesRequest method. -// req, resp := client.ListServiceProfilesRequest(params) +// // Example sending a request using the GetResourceEventConfigurationRequest method. +// req, resp := client.GetResourceEventConfigurationRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/ListServiceProfiles -func (c *IoTWireless) ListServiceProfilesRequest(input *ListServiceProfilesInput) (req *request.Request, output *ListServiceProfilesOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/GetResourceEventConfiguration +func (c *IoTWireless) GetResourceEventConfigurationRequest(input *GetResourceEventConfigurationInput) (req *request.Request, output *GetResourceEventConfigurationOutput) { op := &request.Operation{ - Name: opListServiceProfiles, + Name: opGetResourceEventConfiguration, HTTPMethod: "GET", - HTTPPath: "/service-profiles", - Paginator: &request.Paginator{ - InputTokens: []string{"NextToken"}, - OutputTokens: []string{"NextToken"}, - LimitToken: "MaxResults", - TruncationToken: "", - }, + HTTPPath: "/event-configurations/{Identifier}", } if input == nil { - input = &ListServiceProfilesInput{} + input = &GetResourceEventConfigurationInput{} } - output = &ListServiceProfilesOutput{} + output = &GetResourceEventConfigurationOutput{} req = c.newRequest(op, input, output) return } -// ListServiceProfiles API operation for AWS IoT Wireless. +// GetResourceEventConfiguration API operation for AWS IoT Wireless. // -// Lists the service profiles registered to your AWS account. +// Get the event configuration for a particular resource identifier. // // Returns awserr.Error for service API and SDK errors. Use runtime 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 IoT Wireless's -// API operation ListServiceProfiles for usage and error information. +// API operation GetResourceEventConfiguration for usage and error information. // // Returned Error Types: // * ValidationException @@ -3877,375 +3798,270 @@ func (c *IoTWireless) ListServiceProfilesRequest(input *ListServiceProfilesInput // * AccessDeniedException // User does not have permission to perform this action. // -// * InternalServerException -// An unexpected error occurred while processing a request. -// // * ThrottlingException // The request was denied because it exceeded the allowed API request rate. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/ListServiceProfiles -func (c *IoTWireless) ListServiceProfiles(input *ListServiceProfilesInput) (*ListServiceProfilesOutput, error) { - req, out := c.ListServiceProfilesRequest(input) +// * ResourceNotFoundException +// Resource does not exist. +// +// * InternalServerException +// An unexpected error occurred while processing a request. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/GetResourceEventConfiguration +func (c *IoTWireless) GetResourceEventConfiguration(input *GetResourceEventConfigurationInput) (*GetResourceEventConfigurationOutput, error) { + req, out := c.GetResourceEventConfigurationRequest(input) return out, req.Send() } -// ListServiceProfilesWithContext is the same as ListServiceProfiles with the addition of +// GetResourceEventConfigurationWithContext is the same as GetResourceEventConfiguration with the addition of // the ability to pass a context and additional request options. // -// See ListServiceProfiles for details on how to use this API operation. +// See GetResourceEventConfiguration for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *IoTWireless) ListServiceProfilesWithContext(ctx aws.Context, input *ListServiceProfilesInput, opts ...request.Option) (*ListServiceProfilesOutput, error) { - req, out := c.ListServiceProfilesRequest(input) +func (c *IoTWireless) GetResourceEventConfigurationWithContext(ctx aws.Context, input *GetResourceEventConfigurationInput, opts ...request.Option) (*GetResourceEventConfigurationOutput, error) { + req, out := c.GetResourceEventConfigurationRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// ListServiceProfilesPages iterates over the pages of a ListServiceProfiles operation, -// calling the "fn" function with the response data for each page. To stop -// iterating, return false from the fn function. -// -// See ListServiceProfiles 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 ListServiceProfiles operation. -// pageNum := 0 -// err := client.ListServiceProfilesPages(params, -// func(page *iotwireless.ListServiceProfilesOutput, lastPage bool) bool { -// pageNum++ -// fmt.Println(page) -// return pageNum <= 3 -// }) -// -func (c *IoTWireless) ListServiceProfilesPages(input *ListServiceProfilesInput, fn func(*ListServiceProfilesOutput, bool) bool) error { - return c.ListServiceProfilesPagesWithContext(aws.BackgroundContext(), input, fn) -} - -// ListServiceProfilesPagesWithContext same as ListServiceProfilesPages 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 *IoTWireless) ListServiceProfilesPagesWithContext(ctx aws.Context, input *ListServiceProfilesInput, fn func(*ListServiceProfilesOutput, bool) bool, opts ...request.Option) error { - p := request.Pagination{ - NewRequest: func() (*request.Request, error) { - var inCpy *ListServiceProfilesInput - if input != nil { - tmp := *input - inCpy = &tmp - } - req, _ := c.ListServiceProfilesRequest(inCpy) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return req, nil - }, - } - - for p.Next() { - if !fn(p.Page().(*ListServiceProfilesOutput), !p.HasNextPage()) { - break - } - } - - return p.Err() -} - -const opListTagsForResource = "ListTagsForResource" +const opGetResourceLogLevel = "GetResourceLogLevel" -// ListTagsForResourceRequest generates a "aws/request.Request" representing the -// client's request for the ListTagsForResource operation. The "output" return +// GetResourceLogLevelRequest generates a "aws/request.Request" representing the +// client's request for the GetResourceLogLevel operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See ListTagsForResource for more information on using the ListTagsForResource +// See GetResourceLogLevel for more information on using the GetResourceLogLevel // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the ListTagsForResourceRequest method. -// req, resp := client.ListTagsForResourceRequest(params) +// // Example sending a request using the GetResourceLogLevelRequest method. +// req, resp := client.GetResourceLogLevelRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/ListTagsForResource -func (c *IoTWireless) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req *request.Request, output *ListTagsForResourceOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/GetResourceLogLevel +func (c *IoTWireless) GetResourceLogLevelRequest(input *GetResourceLogLevelInput) (req *request.Request, output *GetResourceLogLevelOutput) { op := &request.Operation{ - Name: opListTagsForResource, + Name: opGetResourceLogLevel, HTTPMethod: "GET", - HTTPPath: "/tags", + HTTPPath: "/log-levels/{ResourceIdentifier}", } if input == nil { - input = &ListTagsForResourceInput{} + input = &GetResourceLogLevelInput{} } - output = &ListTagsForResourceOutput{} + output = &GetResourceLogLevelOutput{} req = c.newRequest(op, input, output) return } -// ListTagsForResource API operation for AWS IoT Wireless. +// GetResourceLogLevel API operation for AWS IoT Wireless. // -// Lists the tags (metadata) you have assigned to the resource. +// Fetches the log-level override, if any, for a given resource-ID and resource-type. +// It can be used for a wireless device or a wireless 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 IoT Wireless's -// API operation ListTagsForResource for usage and error information. +// API operation GetResourceLogLevel for usage and error information. // // Returned Error Types: -// * ValidationException -// The input did not meet the specified constraints. -// -// * ResourceNotFoundException -// Resource does not exist. -// -// * ConflictException -// Adding, updating, or deleting the resource can cause an inconsistent state. +// * AccessDeniedException +// User does not have permission to perform this action. // // * InternalServerException // An unexpected error occurred while processing a request. // +// * ResourceNotFoundException +// Resource does not exist. +// // * ThrottlingException // The request was denied because it exceeded the allowed API request rate. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/ListTagsForResource -func (c *IoTWireless) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) { - req, out := c.ListTagsForResourceRequest(input) +// * ValidationException +// The input did not meet the specified constraints. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/GetResourceLogLevel +func (c *IoTWireless) GetResourceLogLevel(input *GetResourceLogLevelInput) (*GetResourceLogLevelOutput, error) { + req, out := c.GetResourceLogLevelRequest(input) return out, req.Send() } -// ListTagsForResourceWithContext is the same as ListTagsForResource with the addition of +// GetResourceLogLevelWithContext is the same as GetResourceLogLevel with the addition of // the ability to pass a context and additional request options. // -// See ListTagsForResource for details on how to use this API operation. +// See GetResourceLogLevel for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *IoTWireless) ListTagsForResourceWithContext(ctx aws.Context, input *ListTagsForResourceInput, opts ...request.Option) (*ListTagsForResourceOutput, error) { - req, out := c.ListTagsForResourceRequest(input) +func (c *IoTWireless) GetResourceLogLevelWithContext(ctx aws.Context, input *GetResourceLogLevelInput, opts ...request.Option) (*GetResourceLogLevelOutput, error) { + req, out := c.GetResourceLogLevelRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opListWirelessDevices = "ListWirelessDevices" +const opGetServiceEndpoint = "GetServiceEndpoint" -// ListWirelessDevicesRequest generates a "aws/request.Request" representing the -// client's request for the ListWirelessDevices operation. The "output" return +// GetServiceEndpointRequest generates a "aws/request.Request" representing the +// client's request for the GetServiceEndpoint operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See ListWirelessDevices for more information on using the ListWirelessDevices +// See GetServiceEndpoint for more information on using the GetServiceEndpoint // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the ListWirelessDevicesRequest method. -// req, resp := client.ListWirelessDevicesRequest(params) +// // Example sending a request using the GetServiceEndpointRequest method. +// req, resp := client.GetServiceEndpointRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/ListWirelessDevices -func (c *IoTWireless) ListWirelessDevicesRequest(input *ListWirelessDevicesInput) (req *request.Request, output *ListWirelessDevicesOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/GetServiceEndpoint +func (c *IoTWireless) GetServiceEndpointRequest(input *GetServiceEndpointInput) (req *request.Request, output *GetServiceEndpointOutput) { op := &request.Operation{ - Name: opListWirelessDevices, + Name: opGetServiceEndpoint, HTTPMethod: "GET", - HTTPPath: "/wireless-devices", - Paginator: &request.Paginator{ - InputTokens: []string{"NextToken"}, - OutputTokens: []string{"NextToken"}, - LimitToken: "MaxResults", - TruncationToken: "", - }, + HTTPPath: "/service-endpoint", } if input == nil { - input = &ListWirelessDevicesInput{} + input = &GetServiceEndpointInput{} } - output = &ListWirelessDevicesOutput{} + output = &GetServiceEndpointOutput{} req = c.newRequest(op, input, output) return } -// ListWirelessDevices API operation for AWS IoT Wireless. +// GetServiceEndpoint API operation for AWS IoT Wireless. // -// Lists the wireless devices registered to your AWS account. +// Gets the account-specific endpoint for Configuration and Update Server (CUPS) +// protocol or LoRaWAN Network Server (LNS) connections. // // Returns awserr.Error for service API and SDK errors. Use runtime 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 IoT Wireless's -// API operation ListWirelessDevices for usage and error information. +// API operation GetServiceEndpoint for usage and error information. // // Returned Error Types: // * ValidationException // The input did not meet the specified constraints. // +// * AccessDeniedException +// User does not have permission to perform this action. +// // * InternalServerException // An unexpected error occurred while processing a request. // // * ThrottlingException // The request was denied because it exceeded the allowed API request rate. // -// * AccessDeniedException -// User does not have permission to perform this action. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/ListWirelessDevices -func (c *IoTWireless) ListWirelessDevices(input *ListWirelessDevicesInput) (*ListWirelessDevicesOutput, error) { - req, out := c.ListWirelessDevicesRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/GetServiceEndpoint +func (c *IoTWireless) GetServiceEndpoint(input *GetServiceEndpointInput) (*GetServiceEndpointOutput, error) { + req, out := c.GetServiceEndpointRequest(input) return out, req.Send() } -// ListWirelessDevicesWithContext is the same as ListWirelessDevices with the addition of +// GetServiceEndpointWithContext is the same as GetServiceEndpoint with the addition of // the ability to pass a context and additional request options. // -// See ListWirelessDevices for details on how to use this API operation. +// See GetServiceEndpoint for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *IoTWireless) ListWirelessDevicesWithContext(ctx aws.Context, input *ListWirelessDevicesInput, opts ...request.Option) (*ListWirelessDevicesOutput, error) { - req, out := c.ListWirelessDevicesRequest(input) +func (c *IoTWireless) GetServiceEndpointWithContext(ctx aws.Context, input *GetServiceEndpointInput, opts ...request.Option) (*GetServiceEndpointOutput, error) { + req, out := c.GetServiceEndpointRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// ListWirelessDevicesPages iterates over the pages of a ListWirelessDevices operation, -// calling the "fn" function with the response data for each page. To stop -// iterating, return false from the fn function. -// -// See ListWirelessDevices 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 ListWirelessDevices operation. -// pageNum := 0 -// err := client.ListWirelessDevicesPages(params, -// func(page *iotwireless.ListWirelessDevicesOutput, lastPage bool) bool { -// pageNum++ -// fmt.Println(page) -// return pageNum <= 3 -// }) -// -func (c *IoTWireless) ListWirelessDevicesPages(input *ListWirelessDevicesInput, fn func(*ListWirelessDevicesOutput, bool) bool) error { - return c.ListWirelessDevicesPagesWithContext(aws.BackgroundContext(), input, fn) -} - -// ListWirelessDevicesPagesWithContext same as ListWirelessDevicesPages 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 *IoTWireless) ListWirelessDevicesPagesWithContext(ctx aws.Context, input *ListWirelessDevicesInput, fn func(*ListWirelessDevicesOutput, bool) bool, opts ...request.Option) error { - p := request.Pagination{ - NewRequest: func() (*request.Request, error) { - var inCpy *ListWirelessDevicesInput - if input != nil { - tmp := *input - inCpy = &tmp - } - req, _ := c.ListWirelessDevicesRequest(inCpy) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return req, nil - }, - } - - for p.Next() { - if !fn(p.Page().(*ListWirelessDevicesOutput), !p.HasNextPage()) { - break - } - } - - return p.Err() -} - -const opListWirelessGatewayTaskDefinitions = "ListWirelessGatewayTaskDefinitions" +const opGetServiceProfile = "GetServiceProfile" -// ListWirelessGatewayTaskDefinitionsRequest generates a "aws/request.Request" representing the -// client's request for the ListWirelessGatewayTaskDefinitions operation. The "output" return +// GetServiceProfileRequest generates a "aws/request.Request" representing the +// client's request for the GetServiceProfile operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See ListWirelessGatewayTaskDefinitions for more information on using the ListWirelessGatewayTaskDefinitions +// See GetServiceProfile for more information on using the GetServiceProfile // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the ListWirelessGatewayTaskDefinitionsRequest method. -// req, resp := client.ListWirelessGatewayTaskDefinitionsRequest(params) +// // Example sending a request using the GetServiceProfileRequest method. +// req, resp := client.GetServiceProfileRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/ListWirelessGatewayTaskDefinitions -func (c *IoTWireless) ListWirelessGatewayTaskDefinitionsRequest(input *ListWirelessGatewayTaskDefinitionsInput) (req *request.Request, output *ListWirelessGatewayTaskDefinitionsOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/GetServiceProfile +func (c *IoTWireless) GetServiceProfileRequest(input *GetServiceProfileInput) (req *request.Request, output *GetServiceProfileOutput) { op := &request.Operation{ - Name: opListWirelessGatewayTaskDefinitions, + Name: opGetServiceProfile, HTTPMethod: "GET", - HTTPPath: "/wireless-gateway-task-definitions", + HTTPPath: "/service-profiles/{Id}", } if input == nil { - input = &ListWirelessGatewayTaskDefinitionsInput{} + input = &GetServiceProfileInput{} } - output = &ListWirelessGatewayTaskDefinitionsOutput{} + output = &GetServiceProfileOutput{} req = c.newRequest(op, input, output) return } -// ListWirelessGatewayTaskDefinitions API operation for AWS IoT Wireless. +// GetServiceProfile API operation for AWS IoT Wireless. // -// List the wireless gateway tasks definitions registered to your AWS account. +// Gets information about a service profile. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS IoT Wireless's -// API operation ListWirelessGatewayTaskDefinitions for usage and error information. +// API operation GetServiceProfile for usage and error information. // // Returned Error Types: // * ValidationException @@ -4254,884 +4070,829 @@ func (c *IoTWireless) ListWirelessGatewayTaskDefinitionsRequest(input *ListWirel // * AccessDeniedException // User does not have permission to perform this action. // +// * ResourceNotFoundException +// Resource does not exist. +// // * InternalServerException // An unexpected error occurred while processing a request. // // * ThrottlingException // The request was denied because it exceeded the allowed API request rate. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/ListWirelessGatewayTaskDefinitions -func (c *IoTWireless) ListWirelessGatewayTaskDefinitions(input *ListWirelessGatewayTaskDefinitionsInput) (*ListWirelessGatewayTaskDefinitionsOutput, error) { - req, out := c.ListWirelessGatewayTaskDefinitionsRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/GetServiceProfile +func (c *IoTWireless) GetServiceProfile(input *GetServiceProfileInput) (*GetServiceProfileOutput, error) { + req, out := c.GetServiceProfileRequest(input) return out, req.Send() } -// ListWirelessGatewayTaskDefinitionsWithContext is the same as ListWirelessGatewayTaskDefinitions with the addition of +// GetServiceProfileWithContext is the same as GetServiceProfile with the addition of // the ability to pass a context and additional request options. // -// See ListWirelessGatewayTaskDefinitions for details on how to use this API operation. +// See GetServiceProfile for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *IoTWireless) ListWirelessGatewayTaskDefinitionsWithContext(ctx aws.Context, input *ListWirelessGatewayTaskDefinitionsInput, opts ...request.Option) (*ListWirelessGatewayTaskDefinitionsOutput, error) { - req, out := c.ListWirelessGatewayTaskDefinitionsRequest(input) +func (c *IoTWireless) GetServiceProfileWithContext(ctx aws.Context, input *GetServiceProfileInput, opts ...request.Option) (*GetServiceProfileOutput, error) { + req, out := c.GetServiceProfileRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opListWirelessGateways = "ListWirelessGateways" +const opGetWirelessDevice = "GetWirelessDevice" -// ListWirelessGatewaysRequest generates a "aws/request.Request" representing the -// client's request for the ListWirelessGateways operation. The "output" return +// GetWirelessDeviceRequest generates a "aws/request.Request" representing the +// client's request for the GetWirelessDevice operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See ListWirelessGateways for more information on using the ListWirelessGateways +// See GetWirelessDevice for more information on using the GetWirelessDevice // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the ListWirelessGatewaysRequest method. -// req, resp := client.ListWirelessGatewaysRequest(params) +// // Example sending a request using the GetWirelessDeviceRequest method. +// req, resp := client.GetWirelessDeviceRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/ListWirelessGateways -func (c *IoTWireless) ListWirelessGatewaysRequest(input *ListWirelessGatewaysInput) (req *request.Request, output *ListWirelessGatewaysOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/GetWirelessDevice +func (c *IoTWireless) GetWirelessDeviceRequest(input *GetWirelessDeviceInput) (req *request.Request, output *GetWirelessDeviceOutput) { op := &request.Operation{ - Name: opListWirelessGateways, + Name: opGetWirelessDevice, HTTPMethod: "GET", - HTTPPath: "/wireless-gateways", - Paginator: &request.Paginator{ - InputTokens: []string{"NextToken"}, - OutputTokens: []string{"NextToken"}, - LimitToken: "MaxResults", - TruncationToken: "", - }, + HTTPPath: "/wireless-devices/{Identifier}", } if input == nil { - input = &ListWirelessGatewaysInput{} + input = &GetWirelessDeviceInput{} } - output = &ListWirelessGatewaysOutput{} + output = &GetWirelessDeviceOutput{} req = c.newRequest(op, input, output) return } -// ListWirelessGateways API operation for AWS IoT Wireless. +// GetWirelessDevice API operation for AWS IoT Wireless. // -// Lists the wireless gateways registered to your AWS account. +// Gets information about a wireless device. // // Returns awserr.Error for service API and SDK errors. Use runtime 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 IoT Wireless's -// API operation ListWirelessGateways for usage and error information. +// API operation GetWirelessDevice for usage and error information. // // Returned Error Types: // * ValidationException // The input did not meet the specified constraints. // +// * AccessDeniedException +// User does not have permission to perform this action. +// +// * ResourceNotFoundException +// Resource does not exist. +// // * InternalServerException // An unexpected error occurred while processing a request. // // * ThrottlingException // The request was denied because it exceeded the allowed API request rate. // -// * AccessDeniedException -// User does not have permission to perform this action. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/ListWirelessGateways -func (c *IoTWireless) ListWirelessGateways(input *ListWirelessGatewaysInput) (*ListWirelessGatewaysOutput, error) { - req, out := c.ListWirelessGatewaysRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/GetWirelessDevice +func (c *IoTWireless) GetWirelessDevice(input *GetWirelessDeviceInput) (*GetWirelessDeviceOutput, error) { + req, out := c.GetWirelessDeviceRequest(input) return out, req.Send() } -// ListWirelessGatewaysWithContext is the same as ListWirelessGateways with the addition of +// GetWirelessDeviceWithContext is the same as GetWirelessDevice with the addition of // the ability to pass a context and additional request options. // -// See ListWirelessGateways for details on how to use this API operation. +// See GetWirelessDevice for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *IoTWireless) ListWirelessGatewaysWithContext(ctx aws.Context, input *ListWirelessGatewaysInput, opts ...request.Option) (*ListWirelessGatewaysOutput, error) { - req, out := c.ListWirelessGatewaysRequest(input) +func (c *IoTWireless) GetWirelessDeviceWithContext(ctx aws.Context, input *GetWirelessDeviceInput, opts ...request.Option) (*GetWirelessDeviceOutput, error) { + req, out := c.GetWirelessDeviceRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// ListWirelessGatewaysPages iterates over the pages of a ListWirelessGateways operation, -// calling the "fn" function with the response data for each page. To stop -// iterating, return false from the fn function. -// -// See ListWirelessGateways 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 ListWirelessGateways operation. -// pageNum := 0 -// err := client.ListWirelessGatewaysPages(params, -// func(page *iotwireless.ListWirelessGatewaysOutput, lastPage bool) bool { -// pageNum++ -// fmt.Println(page) -// return pageNum <= 3 -// }) -// -func (c *IoTWireless) ListWirelessGatewaysPages(input *ListWirelessGatewaysInput, fn func(*ListWirelessGatewaysOutput, bool) bool) error { - return c.ListWirelessGatewaysPagesWithContext(aws.BackgroundContext(), input, fn) -} - -// ListWirelessGatewaysPagesWithContext same as ListWirelessGatewaysPages 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 *IoTWireless) ListWirelessGatewaysPagesWithContext(ctx aws.Context, input *ListWirelessGatewaysInput, fn func(*ListWirelessGatewaysOutput, bool) bool, opts ...request.Option) error { - p := request.Pagination{ - NewRequest: func() (*request.Request, error) { - var inCpy *ListWirelessGatewaysInput - if input != nil { - tmp := *input - inCpy = &tmp - } - req, _ := c.ListWirelessGatewaysRequest(inCpy) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return req, nil - }, - } - - for p.Next() { - if !fn(p.Page().(*ListWirelessGatewaysOutput), !p.HasNextPage()) { - break - } - } - - return p.Err() -} - -const opPutResourceLogLevel = "PutResourceLogLevel" +const opGetWirelessDeviceStatistics = "GetWirelessDeviceStatistics" -// PutResourceLogLevelRequest generates a "aws/request.Request" representing the -// client's request for the PutResourceLogLevel operation. The "output" return +// GetWirelessDeviceStatisticsRequest generates a "aws/request.Request" representing the +// client's request for the GetWirelessDeviceStatistics operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See PutResourceLogLevel for more information on using the PutResourceLogLevel +// See GetWirelessDeviceStatistics for more information on using the GetWirelessDeviceStatistics // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the PutResourceLogLevelRequest method. -// req, resp := client.PutResourceLogLevelRequest(params) +// // Example sending a request using the GetWirelessDeviceStatisticsRequest method. +// req, resp := client.GetWirelessDeviceStatisticsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/PutResourceLogLevel -func (c *IoTWireless) PutResourceLogLevelRequest(input *PutResourceLogLevelInput) (req *request.Request, output *PutResourceLogLevelOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/GetWirelessDeviceStatistics +func (c *IoTWireless) GetWirelessDeviceStatisticsRequest(input *GetWirelessDeviceStatisticsInput) (req *request.Request, output *GetWirelessDeviceStatisticsOutput) { op := &request.Operation{ - Name: opPutResourceLogLevel, - HTTPMethod: "PUT", - HTTPPath: "/log-levels/{ResourceIdentifier}", + Name: opGetWirelessDeviceStatistics, + HTTPMethod: "GET", + HTTPPath: "/wireless-devices/{Id}/statistics", } if input == nil { - input = &PutResourceLogLevelInput{} + input = &GetWirelessDeviceStatisticsInput{} } - output = &PutResourceLogLevelOutput{} + output = &GetWirelessDeviceStatisticsOutput{} req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// PutResourceLogLevel API operation for AWS IoT Wireless. +// GetWirelessDeviceStatistics API operation for AWS IoT Wireless. // -// Sets the log-level override for a resource-ID and resource-type. This option -// can be specified for a wireless gateway or a wireless device. A limit of -// 200 log level override can be set per account. +// Gets operating information about a wireless device. // // Returns awserr.Error for service API and SDK errors. Use runtime 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 IoT Wireless's -// API operation PutResourceLogLevel for usage and error information. +// API operation GetWirelessDeviceStatistics for usage and error information. // // Returned Error Types: +// * ValidationException +// The input did not meet the specified constraints. +// // * AccessDeniedException // User does not have permission to perform this action. // -// * InternalServerException -// An unexpected error occurred while processing a request. -// // * ResourceNotFoundException // Resource does not exist. // +// * InternalServerException +// An unexpected error occurred while processing a request. +// // * ThrottlingException // The request was denied because it exceeded the allowed API request rate. // -// * ValidationException -// The input did not meet the specified constraints. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/PutResourceLogLevel -func (c *IoTWireless) PutResourceLogLevel(input *PutResourceLogLevelInput) (*PutResourceLogLevelOutput, error) { - req, out := c.PutResourceLogLevelRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/GetWirelessDeviceStatistics +func (c *IoTWireless) GetWirelessDeviceStatistics(input *GetWirelessDeviceStatisticsInput) (*GetWirelessDeviceStatisticsOutput, error) { + req, out := c.GetWirelessDeviceStatisticsRequest(input) return out, req.Send() } -// PutResourceLogLevelWithContext is the same as PutResourceLogLevel with the addition of +// GetWirelessDeviceStatisticsWithContext is the same as GetWirelessDeviceStatistics with the addition of // the ability to pass a context and additional request options. // -// See PutResourceLogLevel for details on how to use this API operation. +// See GetWirelessDeviceStatistics for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *IoTWireless) PutResourceLogLevelWithContext(ctx aws.Context, input *PutResourceLogLevelInput, opts ...request.Option) (*PutResourceLogLevelOutput, error) { - req, out := c.PutResourceLogLevelRequest(input) +func (c *IoTWireless) GetWirelessDeviceStatisticsWithContext(ctx aws.Context, input *GetWirelessDeviceStatisticsInput, opts ...request.Option) (*GetWirelessDeviceStatisticsOutput, error) { + req, out := c.GetWirelessDeviceStatisticsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opResetAllResourceLogLevels = "ResetAllResourceLogLevels" +const opGetWirelessGateway = "GetWirelessGateway" -// ResetAllResourceLogLevelsRequest generates a "aws/request.Request" representing the -// client's request for the ResetAllResourceLogLevels operation. The "output" return +// GetWirelessGatewayRequest generates a "aws/request.Request" representing the +// client's request for the GetWirelessGateway operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See ResetAllResourceLogLevels for more information on using the ResetAllResourceLogLevels +// See GetWirelessGateway for more information on using the GetWirelessGateway // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the ResetAllResourceLogLevelsRequest method. -// req, resp := client.ResetAllResourceLogLevelsRequest(params) +// // Example sending a request using the GetWirelessGatewayRequest method. +// req, resp := client.GetWirelessGatewayRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/ResetAllResourceLogLevels -func (c *IoTWireless) ResetAllResourceLogLevelsRequest(input *ResetAllResourceLogLevelsInput) (req *request.Request, output *ResetAllResourceLogLevelsOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/GetWirelessGateway +func (c *IoTWireless) GetWirelessGatewayRequest(input *GetWirelessGatewayInput) (req *request.Request, output *GetWirelessGatewayOutput) { op := &request.Operation{ - Name: opResetAllResourceLogLevels, - HTTPMethod: "DELETE", - HTTPPath: "/log-levels", + Name: opGetWirelessGateway, + HTTPMethod: "GET", + HTTPPath: "/wireless-gateways/{Identifier}", } if input == nil { - input = &ResetAllResourceLogLevelsInput{} + input = &GetWirelessGatewayInput{} } - output = &ResetAllResourceLogLevelsOutput{} + output = &GetWirelessGatewayOutput{} req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// ResetAllResourceLogLevels API operation for AWS IoT Wireless. +// GetWirelessGateway API operation for AWS IoT Wireless. // -// Removes the log-level overrides for all resources; both wireless devices -// and wireless gateways. +// Gets information about a wireless 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 IoT Wireless's -// API operation ResetAllResourceLogLevels for usage and error information. +// API operation GetWirelessGateway for usage and error information. // // Returned Error Types: +// * ValidationException +// The input did not meet the specified constraints. +// +// * ResourceNotFoundException +// Resource does not exist. +// // * AccessDeniedException // User does not have permission to perform this action. // // * InternalServerException // An unexpected error occurred while processing a request. // -// * ResourceNotFoundException -// Resource does not exist. -// // * ThrottlingException // The request was denied because it exceeded the allowed API request rate. // -// * ValidationException -// The input did not meet the specified constraints. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/ResetAllResourceLogLevels -func (c *IoTWireless) ResetAllResourceLogLevels(input *ResetAllResourceLogLevelsInput) (*ResetAllResourceLogLevelsOutput, error) { - req, out := c.ResetAllResourceLogLevelsRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/GetWirelessGateway +func (c *IoTWireless) GetWirelessGateway(input *GetWirelessGatewayInput) (*GetWirelessGatewayOutput, error) { + req, out := c.GetWirelessGatewayRequest(input) return out, req.Send() } -// ResetAllResourceLogLevelsWithContext is the same as ResetAllResourceLogLevels with the addition of +// GetWirelessGatewayWithContext is the same as GetWirelessGateway with the addition of // the ability to pass a context and additional request options. // -// See ResetAllResourceLogLevels for details on how to use this API operation. +// See GetWirelessGateway for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *IoTWireless) ResetAllResourceLogLevelsWithContext(ctx aws.Context, input *ResetAllResourceLogLevelsInput, opts ...request.Option) (*ResetAllResourceLogLevelsOutput, error) { - req, out := c.ResetAllResourceLogLevelsRequest(input) +func (c *IoTWireless) GetWirelessGatewayWithContext(ctx aws.Context, input *GetWirelessGatewayInput, opts ...request.Option) (*GetWirelessGatewayOutput, error) { + req, out := c.GetWirelessGatewayRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opResetResourceLogLevel = "ResetResourceLogLevel" +const opGetWirelessGatewayCertificate = "GetWirelessGatewayCertificate" -// ResetResourceLogLevelRequest generates a "aws/request.Request" representing the -// client's request for the ResetResourceLogLevel operation. The "output" return +// GetWirelessGatewayCertificateRequest generates a "aws/request.Request" representing the +// client's request for the GetWirelessGatewayCertificate operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See ResetResourceLogLevel for more information on using the ResetResourceLogLevel +// See GetWirelessGatewayCertificate for more information on using the GetWirelessGatewayCertificate // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the ResetResourceLogLevelRequest method. -// req, resp := client.ResetResourceLogLevelRequest(params) +// // Example sending a request using the GetWirelessGatewayCertificateRequest method. +// req, resp := client.GetWirelessGatewayCertificateRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/ResetResourceLogLevel -func (c *IoTWireless) ResetResourceLogLevelRequest(input *ResetResourceLogLevelInput) (req *request.Request, output *ResetResourceLogLevelOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/GetWirelessGatewayCertificate +func (c *IoTWireless) GetWirelessGatewayCertificateRequest(input *GetWirelessGatewayCertificateInput) (req *request.Request, output *GetWirelessGatewayCertificateOutput) { op := &request.Operation{ - Name: opResetResourceLogLevel, - HTTPMethod: "DELETE", - HTTPPath: "/log-levels/{ResourceIdentifier}", + Name: opGetWirelessGatewayCertificate, + HTTPMethod: "GET", + HTTPPath: "/wireless-gateways/{Id}/certificate", } if input == nil { - input = &ResetResourceLogLevelInput{} + input = &GetWirelessGatewayCertificateInput{} } - output = &ResetResourceLogLevelOutput{} + output = &GetWirelessGatewayCertificateOutput{} req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// ResetResourceLogLevel API operation for AWS IoT Wireless. +// GetWirelessGatewayCertificate API operation for AWS IoT Wireless. // -// Removes the log-level override, if any, for a specific resource-ID and resource-type. -// It can be used for a wireless device or a wireless gateway. +// Gets the ID of the certificate that is currently associated with a wireless +// 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 IoT Wireless's -// API operation ResetResourceLogLevel for usage and error information. +// API operation GetWirelessGatewayCertificate for usage and error information. // // Returned Error Types: +// * ValidationException +// The input did not meet the specified constraints. +// // * AccessDeniedException // User does not have permission to perform this action. // -// * InternalServerException -// An unexpected error occurred while processing a request. -// // * ResourceNotFoundException // Resource does not exist. // +// * InternalServerException +// An unexpected error occurred while processing a request. +// // * ThrottlingException // The request was denied because it exceeded the allowed API request rate. // -// * ValidationException -// The input did not meet the specified constraints. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/ResetResourceLogLevel -func (c *IoTWireless) ResetResourceLogLevel(input *ResetResourceLogLevelInput) (*ResetResourceLogLevelOutput, error) { - req, out := c.ResetResourceLogLevelRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/GetWirelessGatewayCertificate +func (c *IoTWireless) GetWirelessGatewayCertificate(input *GetWirelessGatewayCertificateInput) (*GetWirelessGatewayCertificateOutput, error) { + req, out := c.GetWirelessGatewayCertificateRequest(input) return out, req.Send() } -// ResetResourceLogLevelWithContext is the same as ResetResourceLogLevel with the addition of +// GetWirelessGatewayCertificateWithContext is the same as GetWirelessGatewayCertificate with the addition of // the ability to pass a context and additional request options. // -// See ResetResourceLogLevel for details on how to use this API operation. +// See GetWirelessGatewayCertificate for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *IoTWireless) ResetResourceLogLevelWithContext(ctx aws.Context, input *ResetResourceLogLevelInput, opts ...request.Option) (*ResetResourceLogLevelOutput, error) { - req, out := c.ResetResourceLogLevelRequest(input) +func (c *IoTWireless) GetWirelessGatewayCertificateWithContext(ctx aws.Context, input *GetWirelessGatewayCertificateInput, opts ...request.Option) (*GetWirelessGatewayCertificateOutput, error) { + req, out := c.GetWirelessGatewayCertificateRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opSendDataToWirelessDevice = "SendDataToWirelessDevice" +const opGetWirelessGatewayFirmwareInformation = "GetWirelessGatewayFirmwareInformation" -// SendDataToWirelessDeviceRequest generates a "aws/request.Request" representing the -// client's request for the SendDataToWirelessDevice operation. The "output" return +// GetWirelessGatewayFirmwareInformationRequest generates a "aws/request.Request" representing the +// client's request for the GetWirelessGatewayFirmwareInformation operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See SendDataToWirelessDevice for more information on using the SendDataToWirelessDevice +// See GetWirelessGatewayFirmwareInformation for more information on using the GetWirelessGatewayFirmwareInformation // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the SendDataToWirelessDeviceRequest method. -// req, resp := client.SendDataToWirelessDeviceRequest(params) +// // Example sending a request using the GetWirelessGatewayFirmwareInformationRequest method. +// req, resp := client.GetWirelessGatewayFirmwareInformationRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/SendDataToWirelessDevice -func (c *IoTWireless) SendDataToWirelessDeviceRequest(input *SendDataToWirelessDeviceInput) (req *request.Request, output *SendDataToWirelessDeviceOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/GetWirelessGatewayFirmwareInformation +func (c *IoTWireless) GetWirelessGatewayFirmwareInformationRequest(input *GetWirelessGatewayFirmwareInformationInput) (req *request.Request, output *GetWirelessGatewayFirmwareInformationOutput) { op := &request.Operation{ - Name: opSendDataToWirelessDevice, - HTTPMethod: "POST", - HTTPPath: "/wireless-devices/{Id}/data", + Name: opGetWirelessGatewayFirmwareInformation, + HTTPMethod: "GET", + HTTPPath: "/wireless-gateways/{Id}/firmware-information", } if input == nil { - input = &SendDataToWirelessDeviceInput{} + input = &GetWirelessGatewayFirmwareInformationInput{} } - output = &SendDataToWirelessDeviceOutput{} + output = &GetWirelessGatewayFirmwareInformationOutput{} req = c.newRequest(op, input, output) return } -// SendDataToWirelessDevice API operation for AWS IoT Wireless. +// GetWirelessGatewayFirmwareInformation API operation for AWS IoT Wireless. // -// Sends a decrypted application data frame to a device. +// Gets the firmware version and other information about a wireless 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 IoT Wireless's -// API operation SendDataToWirelessDevice for usage and error information. +// API operation GetWirelessGatewayFirmwareInformation for usage and error information. // // Returned Error Types: // * ValidationException // The input did not meet the specified constraints. // +// * AccessDeniedException +// User does not have permission to perform this action. +// // * ResourceNotFoundException // Resource does not exist. // -// * ThrottlingException -// The request was denied because it exceeded the allowed API request rate. -// // * InternalServerException // An unexpected error occurred while processing a request. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/SendDataToWirelessDevice -func (c *IoTWireless) SendDataToWirelessDevice(input *SendDataToWirelessDeviceInput) (*SendDataToWirelessDeviceOutput, error) { - req, out := c.SendDataToWirelessDeviceRequest(input) +// * ThrottlingException +// The request was denied because it exceeded the allowed API request rate. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/GetWirelessGatewayFirmwareInformation +func (c *IoTWireless) GetWirelessGatewayFirmwareInformation(input *GetWirelessGatewayFirmwareInformationInput) (*GetWirelessGatewayFirmwareInformationOutput, error) { + req, out := c.GetWirelessGatewayFirmwareInformationRequest(input) return out, req.Send() } -// SendDataToWirelessDeviceWithContext is the same as SendDataToWirelessDevice with the addition of +// GetWirelessGatewayFirmwareInformationWithContext is the same as GetWirelessGatewayFirmwareInformation with the addition of // the ability to pass a context and additional request options. // -// See SendDataToWirelessDevice for details on how to use this API operation. +// See GetWirelessGatewayFirmwareInformation for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *IoTWireless) SendDataToWirelessDeviceWithContext(ctx aws.Context, input *SendDataToWirelessDeviceInput, opts ...request.Option) (*SendDataToWirelessDeviceOutput, error) { - req, out := c.SendDataToWirelessDeviceRequest(input) +func (c *IoTWireless) GetWirelessGatewayFirmwareInformationWithContext(ctx aws.Context, input *GetWirelessGatewayFirmwareInformationInput, opts ...request.Option) (*GetWirelessGatewayFirmwareInformationOutput, error) { + req, out := c.GetWirelessGatewayFirmwareInformationRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opTagResource = "TagResource" +const opGetWirelessGatewayStatistics = "GetWirelessGatewayStatistics" -// TagResourceRequest generates a "aws/request.Request" representing the -// client's request for the TagResource operation. The "output" return +// GetWirelessGatewayStatisticsRequest generates a "aws/request.Request" representing the +// client's request for the GetWirelessGatewayStatistics operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See TagResource for more information on using the TagResource +// See GetWirelessGatewayStatistics for more information on using the GetWirelessGatewayStatistics // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the TagResourceRequest method. -// req, resp := client.TagResourceRequest(params) +// // Example sending a request using the GetWirelessGatewayStatisticsRequest method. +// req, resp := client.GetWirelessGatewayStatisticsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/TagResource -func (c *IoTWireless) TagResourceRequest(input *TagResourceInput) (req *request.Request, output *TagResourceOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/GetWirelessGatewayStatistics +func (c *IoTWireless) GetWirelessGatewayStatisticsRequest(input *GetWirelessGatewayStatisticsInput) (req *request.Request, output *GetWirelessGatewayStatisticsOutput) { op := &request.Operation{ - Name: opTagResource, - HTTPMethod: "POST", - HTTPPath: "/tags", + Name: opGetWirelessGatewayStatistics, + HTTPMethod: "GET", + HTTPPath: "/wireless-gateways/{Id}/statistics", } if input == nil { - input = &TagResourceInput{} + input = &GetWirelessGatewayStatisticsInput{} } - output = &TagResourceOutput{} + output = &GetWirelessGatewayStatisticsOutput{} req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// TagResource API operation for AWS IoT Wireless. +// GetWirelessGatewayStatistics API operation for AWS IoT Wireless. // -// Adds a tag to a resource. +// Gets operating information about a wireless 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 IoT Wireless's -// API operation TagResource for usage and error information. +// API operation GetWirelessGatewayStatistics for usage and error information. // // Returned Error Types: // * ValidationException // The input did not meet the specified constraints. // +// * AccessDeniedException +// User does not have permission to perform this action. +// // * ResourceNotFoundException // Resource does not exist. // -// * ConflictException -// Adding, updating, or deleting the resource can cause an inconsistent state. -// // * InternalServerException // An unexpected error occurred while processing a request. // // * ThrottlingException // The request was denied because it exceeded the allowed API request rate. // -// * TooManyTagsException -// The request was denied because the resource can't have any more tags. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/TagResource -func (c *IoTWireless) TagResource(input *TagResourceInput) (*TagResourceOutput, error) { - req, out := c.TagResourceRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/GetWirelessGatewayStatistics +func (c *IoTWireless) GetWirelessGatewayStatistics(input *GetWirelessGatewayStatisticsInput) (*GetWirelessGatewayStatisticsOutput, error) { + req, out := c.GetWirelessGatewayStatisticsRequest(input) return out, req.Send() } -// TagResourceWithContext is the same as TagResource with the addition of +// GetWirelessGatewayStatisticsWithContext is the same as GetWirelessGatewayStatistics with the addition of // the ability to pass a context and additional request options. // -// See TagResource for details on how to use this API operation. +// See GetWirelessGatewayStatistics for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *IoTWireless) TagResourceWithContext(ctx aws.Context, input *TagResourceInput, opts ...request.Option) (*TagResourceOutput, error) { - req, out := c.TagResourceRequest(input) +func (c *IoTWireless) GetWirelessGatewayStatisticsWithContext(ctx aws.Context, input *GetWirelessGatewayStatisticsInput, opts ...request.Option) (*GetWirelessGatewayStatisticsOutput, error) { + req, out := c.GetWirelessGatewayStatisticsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opTestWirelessDevice = "TestWirelessDevice" +const opGetWirelessGatewayTask = "GetWirelessGatewayTask" -// TestWirelessDeviceRequest generates a "aws/request.Request" representing the -// client's request for the TestWirelessDevice operation. The "output" return +// GetWirelessGatewayTaskRequest generates a "aws/request.Request" representing the +// client's request for the GetWirelessGatewayTask operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See TestWirelessDevice for more information on using the TestWirelessDevice +// See GetWirelessGatewayTask for more information on using the GetWirelessGatewayTask // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the TestWirelessDeviceRequest method. -// req, resp := client.TestWirelessDeviceRequest(params) +// // Example sending a request using the GetWirelessGatewayTaskRequest method. +// req, resp := client.GetWirelessGatewayTaskRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/TestWirelessDevice -func (c *IoTWireless) TestWirelessDeviceRequest(input *TestWirelessDeviceInput) (req *request.Request, output *TestWirelessDeviceOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/GetWirelessGatewayTask +func (c *IoTWireless) GetWirelessGatewayTaskRequest(input *GetWirelessGatewayTaskInput) (req *request.Request, output *GetWirelessGatewayTaskOutput) { op := &request.Operation{ - Name: opTestWirelessDevice, - HTTPMethod: "POST", - HTTPPath: "/wireless-devices/{Id}/test", + Name: opGetWirelessGatewayTask, + HTTPMethod: "GET", + HTTPPath: "/wireless-gateways/{Id}/tasks", } if input == nil { - input = &TestWirelessDeviceInput{} + input = &GetWirelessGatewayTaskInput{} } - output = &TestWirelessDeviceOutput{} + output = &GetWirelessGatewayTaskOutput{} req = c.newRequest(op, input, output) return } -// TestWirelessDevice API operation for AWS IoT Wireless. +// GetWirelessGatewayTask API operation for AWS IoT Wireless. // -// Simulates a provisioned device by sending an uplink data payload of Hello. +// Gets information about a wireless gateway task. // // Returns awserr.Error for service API and SDK errors. Use runtime 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 IoT Wireless's -// API operation TestWirelessDevice for usage and error information. +// API operation GetWirelessGatewayTask for usage and error information. // // Returned Error Types: // * ValidationException // The input did not meet the specified constraints. // +// * AccessDeniedException +// User does not have permission to perform this action. +// // * ResourceNotFoundException // Resource does not exist. // -// * ThrottlingException -// The request was denied because it exceeded the allowed API request rate. -// // * InternalServerException // An unexpected error occurred while processing a request. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/TestWirelessDevice -func (c *IoTWireless) TestWirelessDevice(input *TestWirelessDeviceInput) (*TestWirelessDeviceOutput, error) { - req, out := c.TestWirelessDeviceRequest(input) +// * ThrottlingException +// The request was denied because it exceeded the allowed API request rate. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/GetWirelessGatewayTask +func (c *IoTWireless) GetWirelessGatewayTask(input *GetWirelessGatewayTaskInput) (*GetWirelessGatewayTaskOutput, error) { + req, out := c.GetWirelessGatewayTaskRequest(input) return out, req.Send() } -// TestWirelessDeviceWithContext is the same as TestWirelessDevice with the addition of +// GetWirelessGatewayTaskWithContext is the same as GetWirelessGatewayTask with the addition of // the ability to pass a context and additional request options. // -// See TestWirelessDevice for details on how to use this API operation. +// See GetWirelessGatewayTask for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *IoTWireless) TestWirelessDeviceWithContext(ctx aws.Context, input *TestWirelessDeviceInput, opts ...request.Option) (*TestWirelessDeviceOutput, error) { - req, out := c.TestWirelessDeviceRequest(input) +func (c *IoTWireless) GetWirelessGatewayTaskWithContext(ctx aws.Context, input *GetWirelessGatewayTaskInput, opts ...request.Option) (*GetWirelessGatewayTaskOutput, error) { + req, out := c.GetWirelessGatewayTaskRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opUntagResource = "UntagResource" +const opGetWirelessGatewayTaskDefinition = "GetWirelessGatewayTaskDefinition" -// UntagResourceRequest generates a "aws/request.Request" representing the -// client's request for the UntagResource operation. The "output" return +// GetWirelessGatewayTaskDefinitionRequest generates a "aws/request.Request" representing the +// client's request for the GetWirelessGatewayTaskDefinition operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See UntagResource for more information on using the UntagResource +// See GetWirelessGatewayTaskDefinition for more information on using the GetWirelessGatewayTaskDefinition // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the UntagResourceRequest method. -// req, resp := client.UntagResourceRequest(params) +// // Example sending a request using the GetWirelessGatewayTaskDefinitionRequest method. +// req, resp := client.GetWirelessGatewayTaskDefinitionRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/UntagResource -func (c *IoTWireless) UntagResourceRequest(input *UntagResourceInput) (req *request.Request, output *UntagResourceOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/GetWirelessGatewayTaskDefinition +func (c *IoTWireless) GetWirelessGatewayTaskDefinitionRequest(input *GetWirelessGatewayTaskDefinitionInput) (req *request.Request, output *GetWirelessGatewayTaskDefinitionOutput) { op := &request.Operation{ - Name: opUntagResource, - HTTPMethod: "DELETE", - HTTPPath: "/tags", + Name: opGetWirelessGatewayTaskDefinition, + HTTPMethod: "GET", + HTTPPath: "/wireless-gateway-task-definitions/{Id}", } if input == nil { - input = &UntagResourceInput{} + input = &GetWirelessGatewayTaskDefinitionInput{} } - output = &UntagResourceOutput{} + output = &GetWirelessGatewayTaskDefinitionOutput{} req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// UntagResource API operation for AWS IoT Wireless. +// GetWirelessGatewayTaskDefinition API operation for AWS IoT Wireless. // -// Removes one or more tags from a resource. +// Gets information about a wireless gateway task definition. // // Returns awserr.Error for service API and SDK errors. Use runtime 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 IoT Wireless's -// API operation UntagResource for usage and error information. +// API operation GetWirelessGatewayTaskDefinition for usage and error information. // // Returned Error Types: // * ValidationException // The input did not meet the specified constraints. // +// * AccessDeniedException +// User does not have permission to perform this action. +// // * ResourceNotFoundException // Resource does not exist. // -// * ConflictException -// Adding, updating, or deleting the resource can cause an inconsistent state. -// // * InternalServerException // An unexpected error occurred while processing a request. // // * ThrottlingException // The request was denied because it exceeded the allowed API request rate. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/UntagResource -func (c *IoTWireless) UntagResource(input *UntagResourceInput) (*UntagResourceOutput, error) { - req, out := c.UntagResourceRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/GetWirelessGatewayTaskDefinition +func (c *IoTWireless) GetWirelessGatewayTaskDefinition(input *GetWirelessGatewayTaskDefinitionInput) (*GetWirelessGatewayTaskDefinitionOutput, error) { + req, out := c.GetWirelessGatewayTaskDefinitionRequest(input) return out, req.Send() } -// UntagResourceWithContext is the same as UntagResource with the addition of +// GetWirelessGatewayTaskDefinitionWithContext is the same as GetWirelessGatewayTaskDefinition with the addition of // the ability to pass a context and additional request options. // -// See UntagResource for details on how to use this API operation. +// See GetWirelessGatewayTaskDefinition for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *IoTWireless) UntagResourceWithContext(ctx aws.Context, input *UntagResourceInput, opts ...request.Option) (*UntagResourceOutput, error) { - req, out := c.UntagResourceRequest(input) +func (c *IoTWireless) GetWirelessGatewayTaskDefinitionWithContext(ctx aws.Context, input *GetWirelessGatewayTaskDefinitionInput, opts ...request.Option) (*GetWirelessGatewayTaskDefinitionOutput, error) { + req, out := c.GetWirelessGatewayTaskDefinitionRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opUpdateDestination = "UpdateDestination" +const opListDestinations = "ListDestinations" -// UpdateDestinationRequest generates a "aws/request.Request" representing the -// client's request for the UpdateDestination operation. The "output" return +// ListDestinationsRequest generates a "aws/request.Request" representing the +// client's request for the ListDestinations operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See UpdateDestination for more information on using the UpdateDestination +// See ListDestinations for more information on using the ListDestinations // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the UpdateDestinationRequest method. -// req, resp := client.UpdateDestinationRequest(params) +// // Example sending a request using the ListDestinationsRequest method. +// req, resp := client.ListDestinationsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/UpdateDestination -func (c *IoTWireless) UpdateDestinationRequest(input *UpdateDestinationInput) (req *request.Request, output *UpdateDestinationOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/ListDestinations +func (c *IoTWireless) ListDestinationsRequest(input *ListDestinationsInput) (req *request.Request, output *ListDestinationsOutput) { op := &request.Operation{ - Name: opUpdateDestination, - HTTPMethod: "PATCH", - HTTPPath: "/destinations/{Name}", + Name: opListDestinations, + HTTPMethod: "GET", + HTTPPath: "/destinations", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, } if input == nil { - input = &UpdateDestinationInput{} + input = &ListDestinationsInput{} } - output = &UpdateDestinationOutput{} + output = &ListDestinationsOutput{} req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// UpdateDestination API operation for AWS IoT Wireless. +// ListDestinations API operation for AWS IoT Wireless. // -// Updates properties of a destination. +// Lists the destinations registered to your AWS account. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS IoT Wireless's -// API operation UpdateDestination for usage and error information. +// API operation ListDestinations for usage and error information. // // Returned Error Types: // * ValidationException // The input did not meet the specified constraints. // -// * ResourceNotFoundException -// Resource does not exist. -// // * AccessDeniedException // User does not have permission to perform this action. // @@ -5141,185 +4902,291 @@ func (c *IoTWireless) UpdateDestinationRequest(input *UpdateDestinationInput) (r // * ThrottlingException // The request was denied because it exceeded the allowed API request rate. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/UpdateDestination -func (c *IoTWireless) UpdateDestination(input *UpdateDestinationInput) (*UpdateDestinationOutput, error) { - req, out := c.UpdateDestinationRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/ListDestinations +func (c *IoTWireless) ListDestinations(input *ListDestinationsInput) (*ListDestinationsOutput, error) { + req, out := c.ListDestinationsRequest(input) return out, req.Send() } -// UpdateDestinationWithContext is the same as UpdateDestination with the addition of +// ListDestinationsWithContext is the same as ListDestinations with the addition of // the ability to pass a context and additional request options. // -// See UpdateDestination for details on how to use this API operation. +// See ListDestinations for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *IoTWireless) UpdateDestinationWithContext(ctx aws.Context, input *UpdateDestinationInput, opts ...request.Option) (*UpdateDestinationOutput, error) { - req, out := c.UpdateDestinationRequest(input) +func (c *IoTWireless) ListDestinationsWithContext(ctx aws.Context, input *ListDestinationsInput, opts ...request.Option) (*ListDestinationsOutput, error) { + req, out := c.ListDestinationsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opUpdateLogLevelsByResourceTypes = "UpdateLogLevelsByResourceTypes" +// ListDestinationsPages iterates over the pages of a ListDestinations operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListDestinations 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 ListDestinations operation. +// pageNum := 0 +// err := client.ListDestinationsPages(params, +// func(page *iotwireless.ListDestinationsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *IoTWireless) ListDestinationsPages(input *ListDestinationsInput, fn func(*ListDestinationsOutput, bool) bool) error { + return c.ListDestinationsPagesWithContext(aws.BackgroundContext(), input, fn) +} -// UpdateLogLevelsByResourceTypesRequest generates a "aws/request.Request" representing the -// client's request for the UpdateLogLevelsByResourceTypes operation. The "output" return +// ListDestinationsPagesWithContext same as ListDestinationsPages 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 *IoTWireless) ListDestinationsPagesWithContext(ctx aws.Context, input *ListDestinationsInput, fn func(*ListDestinationsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListDestinationsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListDestinationsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListDestinationsOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opListDeviceProfiles = "ListDeviceProfiles" + +// ListDeviceProfilesRequest generates a "aws/request.Request" representing the +// client's request for the ListDeviceProfiles operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See UpdateLogLevelsByResourceTypes for more information on using the UpdateLogLevelsByResourceTypes +// See ListDeviceProfiles for more information on using the ListDeviceProfiles // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the UpdateLogLevelsByResourceTypesRequest method. -// req, resp := client.UpdateLogLevelsByResourceTypesRequest(params) +// // Example sending a request using the ListDeviceProfilesRequest method. +// req, resp := client.ListDeviceProfilesRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/UpdateLogLevelsByResourceTypes -func (c *IoTWireless) UpdateLogLevelsByResourceTypesRequest(input *UpdateLogLevelsByResourceTypesInput) (req *request.Request, output *UpdateLogLevelsByResourceTypesOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/ListDeviceProfiles +func (c *IoTWireless) ListDeviceProfilesRequest(input *ListDeviceProfilesInput) (req *request.Request, output *ListDeviceProfilesOutput) { op := &request.Operation{ - Name: opUpdateLogLevelsByResourceTypes, - HTTPMethod: "POST", - HTTPPath: "/log-levels", + Name: opListDeviceProfiles, + HTTPMethod: "GET", + HTTPPath: "/device-profiles", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, } if input == nil { - input = &UpdateLogLevelsByResourceTypesInput{} + input = &ListDeviceProfilesInput{} } - output = &UpdateLogLevelsByResourceTypesOutput{} + output = &ListDeviceProfilesOutput{} req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// UpdateLogLevelsByResourceTypes API operation for AWS IoT Wireless. +// ListDeviceProfiles API operation for AWS IoT Wireless. // -// Set default log level, or log levels by resource types. This can be for wireless -// device log options or wireless gateways log options and is used to control -// the log messages that'll be displayed in CloudWatch. +// Lists the device profiles registered to your AWS account. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS IoT Wireless's -// API operation UpdateLogLevelsByResourceTypes for usage and error information. +// API operation ListDeviceProfiles for usage and error information. // // Returned Error Types: +// * ValidationException +// The input did not meet the specified constraints. +// // * AccessDeniedException // User does not have permission to perform this action. // -// * ConflictException -// Adding, updating, or deleting the resource can cause an inconsistent state. -// // * InternalServerException // An unexpected error occurred while processing a request. // -// * ResourceNotFoundException -// Resource does not exist. -// // * ThrottlingException // The request was denied because it exceeded the allowed API request rate. // -// * ValidationException -// The input did not meet the specified constraints. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/UpdateLogLevelsByResourceTypes -func (c *IoTWireless) UpdateLogLevelsByResourceTypes(input *UpdateLogLevelsByResourceTypesInput) (*UpdateLogLevelsByResourceTypesOutput, error) { - req, out := c.UpdateLogLevelsByResourceTypesRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/ListDeviceProfiles +func (c *IoTWireless) ListDeviceProfiles(input *ListDeviceProfilesInput) (*ListDeviceProfilesOutput, error) { + req, out := c.ListDeviceProfilesRequest(input) return out, req.Send() } -// UpdateLogLevelsByResourceTypesWithContext is the same as UpdateLogLevelsByResourceTypes with the addition of +// ListDeviceProfilesWithContext is the same as ListDeviceProfiles with the addition of // the ability to pass a context and additional request options. // -// See UpdateLogLevelsByResourceTypes for details on how to use this API operation. +// See ListDeviceProfiles for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *IoTWireless) UpdateLogLevelsByResourceTypesWithContext(ctx aws.Context, input *UpdateLogLevelsByResourceTypesInput, opts ...request.Option) (*UpdateLogLevelsByResourceTypesOutput, error) { - req, out := c.UpdateLogLevelsByResourceTypesRequest(input) +func (c *IoTWireless) ListDeviceProfilesWithContext(ctx aws.Context, input *ListDeviceProfilesInput, opts ...request.Option) (*ListDeviceProfilesOutput, error) { + req, out := c.ListDeviceProfilesRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opUpdatePartnerAccount = "UpdatePartnerAccount" +// ListDeviceProfilesPages iterates over the pages of a ListDeviceProfiles operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListDeviceProfiles 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 ListDeviceProfiles operation. +// pageNum := 0 +// err := client.ListDeviceProfilesPages(params, +// func(page *iotwireless.ListDeviceProfilesOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *IoTWireless) ListDeviceProfilesPages(input *ListDeviceProfilesInput, fn func(*ListDeviceProfilesOutput, bool) bool) error { + return c.ListDeviceProfilesPagesWithContext(aws.BackgroundContext(), input, fn) +} -// UpdatePartnerAccountRequest generates a "aws/request.Request" representing the -// client's request for the UpdatePartnerAccount operation. The "output" return +// ListDeviceProfilesPagesWithContext same as ListDeviceProfilesPages 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 *IoTWireless) ListDeviceProfilesPagesWithContext(ctx aws.Context, input *ListDeviceProfilesInput, fn func(*ListDeviceProfilesOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListDeviceProfilesInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListDeviceProfilesRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListDeviceProfilesOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opListFuotaTasks = "ListFuotaTasks" + +// ListFuotaTasksRequest generates a "aws/request.Request" representing the +// client's request for the ListFuotaTasks operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See UpdatePartnerAccount for more information on using the UpdatePartnerAccount +// See ListFuotaTasks for more information on using the ListFuotaTasks // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the UpdatePartnerAccountRequest method. -// req, resp := client.UpdatePartnerAccountRequest(params) +// // Example sending a request using the ListFuotaTasksRequest method. +// req, resp := client.ListFuotaTasksRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/UpdatePartnerAccount -func (c *IoTWireless) UpdatePartnerAccountRequest(input *UpdatePartnerAccountInput) (req *request.Request, output *UpdatePartnerAccountOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/ListFuotaTasks +func (c *IoTWireless) ListFuotaTasksRequest(input *ListFuotaTasksInput) (req *request.Request, output *ListFuotaTasksOutput) { op := &request.Operation{ - Name: opUpdatePartnerAccount, - HTTPMethod: "PATCH", - HTTPPath: "/partner-accounts/{PartnerAccountId}", + Name: opListFuotaTasks, + HTTPMethod: "GET", + HTTPPath: "/fuota-tasks", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, } if input == nil { - input = &UpdatePartnerAccountInput{} + input = &ListFuotaTasksInput{} } - output = &UpdatePartnerAccountOutput{} + output = &ListFuotaTasksOutput{} req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// UpdatePartnerAccount API operation for AWS IoT Wireless. +// ListFuotaTasks API operation for AWS IoT Wireless. // -// Updates properties of a partner account. +// Lists the FUOTA tasks registered to your AWS account. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS IoT Wireless's -// API operation UpdatePartnerAccount for usage and error information. +// API operation ListFuotaTasks for usage and error information. // // Returned Error Types: // * ValidationException // The input did not meet the specified constraints. // -// * ResourceNotFoundException -// Resource does not exist. +// * AccessDeniedException +// User does not have permission to perform this action. // // * InternalServerException // An unexpected error occurred while processing a request. @@ -5327,89 +5194,143 @@ func (c *IoTWireless) UpdatePartnerAccountRequest(input *UpdatePartnerAccountInp // * ThrottlingException // The request was denied because it exceeded the allowed API request rate. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/UpdatePartnerAccount -func (c *IoTWireless) UpdatePartnerAccount(input *UpdatePartnerAccountInput) (*UpdatePartnerAccountOutput, error) { - req, out := c.UpdatePartnerAccountRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/ListFuotaTasks +func (c *IoTWireless) ListFuotaTasks(input *ListFuotaTasksInput) (*ListFuotaTasksOutput, error) { + req, out := c.ListFuotaTasksRequest(input) return out, req.Send() } -// UpdatePartnerAccountWithContext is the same as UpdatePartnerAccount with the addition of +// ListFuotaTasksWithContext is the same as ListFuotaTasks with the addition of // the ability to pass a context and additional request options. // -// See UpdatePartnerAccount for details on how to use this API operation. +// See ListFuotaTasks for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *IoTWireless) UpdatePartnerAccountWithContext(ctx aws.Context, input *UpdatePartnerAccountInput, opts ...request.Option) (*UpdatePartnerAccountOutput, error) { - req, out := c.UpdatePartnerAccountRequest(input) +func (c *IoTWireless) ListFuotaTasksWithContext(ctx aws.Context, input *ListFuotaTasksInput, opts ...request.Option) (*ListFuotaTasksOutput, error) { + req, out := c.ListFuotaTasksRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opUpdateWirelessDevice = "UpdateWirelessDevice" +// ListFuotaTasksPages iterates over the pages of a ListFuotaTasks operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListFuotaTasks 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 ListFuotaTasks operation. +// pageNum := 0 +// err := client.ListFuotaTasksPages(params, +// func(page *iotwireless.ListFuotaTasksOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *IoTWireless) ListFuotaTasksPages(input *ListFuotaTasksInput, fn func(*ListFuotaTasksOutput, bool) bool) error { + return c.ListFuotaTasksPagesWithContext(aws.BackgroundContext(), input, fn) +} -// UpdateWirelessDeviceRequest generates a "aws/request.Request" representing the -// client's request for the UpdateWirelessDevice operation. The "output" return +// ListFuotaTasksPagesWithContext same as ListFuotaTasksPages 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 *IoTWireless) ListFuotaTasksPagesWithContext(ctx aws.Context, input *ListFuotaTasksInput, fn func(*ListFuotaTasksOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListFuotaTasksInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListFuotaTasksRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListFuotaTasksOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opListMulticastGroups = "ListMulticastGroups" + +// ListMulticastGroupsRequest generates a "aws/request.Request" representing the +// client's request for the ListMulticastGroups operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See UpdateWirelessDevice for more information on using the UpdateWirelessDevice +// See ListMulticastGroups for more information on using the ListMulticastGroups // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the UpdateWirelessDeviceRequest method. -// req, resp := client.UpdateWirelessDeviceRequest(params) +// // Example sending a request using the ListMulticastGroupsRequest method. +// req, resp := client.ListMulticastGroupsRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/UpdateWirelessDevice -func (c *IoTWireless) UpdateWirelessDeviceRequest(input *UpdateWirelessDeviceInput) (req *request.Request, output *UpdateWirelessDeviceOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/ListMulticastGroups +func (c *IoTWireless) ListMulticastGroupsRequest(input *ListMulticastGroupsInput) (req *request.Request, output *ListMulticastGroupsOutput) { op := &request.Operation{ - Name: opUpdateWirelessDevice, - HTTPMethod: "PATCH", - HTTPPath: "/wireless-devices/{Id}", + Name: opListMulticastGroups, + HTTPMethod: "GET", + HTTPPath: "/multicast-groups", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, } if input == nil { - input = &UpdateWirelessDeviceInput{} + input = &ListMulticastGroupsInput{} } - output = &UpdateWirelessDeviceOutput{} + output = &ListMulticastGroupsOutput{} req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// UpdateWirelessDevice API operation for AWS IoT Wireless. +// ListMulticastGroups API operation for AWS IoT Wireless. // -// Updates properties of a wireless device. +// Lists the multicast groups registered to your AWS account. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about // the error. // // See the AWS API reference guide for AWS IoT Wireless's -// API operation UpdateWirelessDevice for usage and error information. +// API operation ListMulticastGroups for usage and error information. // // Returned Error Types: // * ValidationException // The input did not meet the specified constraints. // -// * ResourceNotFoundException -// Resource does not exist. -// // * AccessDeniedException // User does not have permission to perform this action. // @@ -5419,81 +5340,281 @@ func (c *IoTWireless) UpdateWirelessDeviceRequest(input *UpdateWirelessDeviceInp // * ThrottlingException // The request was denied because it exceeded the allowed API request rate. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/UpdateWirelessDevice -func (c *IoTWireless) UpdateWirelessDevice(input *UpdateWirelessDeviceInput) (*UpdateWirelessDeviceOutput, error) { - req, out := c.UpdateWirelessDeviceRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/ListMulticastGroups +func (c *IoTWireless) ListMulticastGroups(input *ListMulticastGroupsInput) (*ListMulticastGroupsOutput, error) { + req, out := c.ListMulticastGroupsRequest(input) return out, req.Send() } -// UpdateWirelessDeviceWithContext is the same as UpdateWirelessDevice with the addition of +// ListMulticastGroupsWithContext is the same as ListMulticastGroups with the addition of // the ability to pass a context and additional request options. // -// See UpdateWirelessDevice for details on how to use this API operation. +// See ListMulticastGroups for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *IoTWireless) UpdateWirelessDeviceWithContext(ctx aws.Context, input *UpdateWirelessDeviceInput, opts ...request.Option) (*UpdateWirelessDeviceOutput, error) { - req, out := c.UpdateWirelessDeviceRequest(input) +func (c *IoTWireless) ListMulticastGroupsWithContext(ctx aws.Context, input *ListMulticastGroupsInput, opts ...request.Option) (*ListMulticastGroupsOutput, error) { + req, out := c.ListMulticastGroupsRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -const opUpdateWirelessGateway = "UpdateWirelessGateway" +// ListMulticastGroupsPages iterates over the pages of a ListMulticastGroups operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListMulticastGroups 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 ListMulticastGroups operation. +// pageNum := 0 +// err := client.ListMulticastGroupsPages(params, +// func(page *iotwireless.ListMulticastGroupsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *IoTWireless) ListMulticastGroupsPages(input *ListMulticastGroupsInput, fn func(*ListMulticastGroupsOutput, bool) bool) error { + return c.ListMulticastGroupsPagesWithContext(aws.BackgroundContext(), input, fn) +} -// UpdateWirelessGatewayRequest generates a "aws/request.Request" representing the -// client's request for the UpdateWirelessGateway operation. The "output" return +// ListMulticastGroupsPagesWithContext same as ListMulticastGroupsPages 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 *IoTWireless) ListMulticastGroupsPagesWithContext(ctx aws.Context, input *ListMulticastGroupsInput, fn func(*ListMulticastGroupsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListMulticastGroupsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListMulticastGroupsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListMulticastGroupsOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opListMulticastGroupsByFuotaTask = "ListMulticastGroupsByFuotaTask" + +// ListMulticastGroupsByFuotaTaskRequest generates a "aws/request.Request" representing the +// client's request for the ListMulticastGroupsByFuotaTask operation. The "output" return // value will be populated with the request's response once the request completes // successfully. // // Use "Send" method on the returned Request to send the API call to the service. // the "output" return value is not valid until after Send returns without error. // -// See UpdateWirelessGateway for more information on using the UpdateWirelessGateway +// See ListMulticastGroupsByFuotaTask for more information on using the ListMulticastGroupsByFuotaTask // API call, and error handling. // // This method is useful when you want to inject custom logic or configuration // into the SDK's request lifecycle. Such as custom headers, or retry logic. // // -// // Example sending a request using the UpdateWirelessGatewayRequest method. -// req, resp := client.UpdateWirelessGatewayRequest(params) +// // Example sending a request using the ListMulticastGroupsByFuotaTaskRequest method. +// req, resp := client.ListMulticastGroupsByFuotaTaskRequest(params) // // err := req.Send() // if err == nil { // resp is now filled // fmt.Println(resp) // } // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/UpdateWirelessGateway -func (c *IoTWireless) UpdateWirelessGatewayRequest(input *UpdateWirelessGatewayInput) (req *request.Request, output *UpdateWirelessGatewayOutput) { +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/ListMulticastGroupsByFuotaTask +func (c *IoTWireless) ListMulticastGroupsByFuotaTaskRequest(input *ListMulticastGroupsByFuotaTaskInput) (req *request.Request, output *ListMulticastGroupsByFuotaTaskOutput) { op := &request.Operation{ - Name: opUpdateWirelessGateway, - HTTPMethod: "PATCH", - HTTPPath: "/wireless-gateways/{Id}", - } - - if input == nil { - input = &UpdateWirelessGatewayInput{} - } + Name: opListMulticastGroupsByFuotaTask, + HTTPMethod: "GET", + HTTPPath: "/fuota-tasks/{Id}/multicast-groups", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, + } - output = &UpdateWirelessGatewayOutput{} + if input == nil { + input = &ListMulticastGroupsByFuotaTaskInput{} + } + + output = &ListMulticastGroupsByFuotaTaskOutput{} req = c.newRequest(op, input, output) - req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) return } -// UpdateWirelessGateway API operation for AWS IoT Wireless. +// ListMulticastGroupsByFuotaTask API operation for AWS IoT Wireless. // -// Updates properties of a wireless gateway. +// List all multicast groups associated with a fuota task. // // Returns awserr.Error for service API and SDK errors. Use runtime 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 IoT Wireless's -// API operation UpdateWirelessGateway for usage and error information. +// API operation ListMulticastGroupsByFuotaTask for usage and error information. +// +// Returned Error Types: +// * ValidationException +// The input did not meet the specified constraints. +// +// * AccessDeniedException +// User does not have permission to perform this action. +// +// * InternalServerException +// An unexpected error occurred while processing a request. +// +// * ResourceNotFoundException +// Resource does not exist. +// +// * ThrottlingException +// The request was denied because it exceeded the allowed API request rate. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/ListMulticastGroupsByFuotaTask +func (c *IoTWireless) ListMulticastGroupsByFuotaTask(input *ListMulticastGroupsByFuotaTaskInput) (*ListMulticastGroupsByFuotaTaskOutput, error) { + req, out := c.ListMulticastGroupsByFuotaTaskRequest(input) + return out, req.Send() +} + +// ListMulticastGroupsByFuotaTaskWithContext is the same as ListMulticastGroupsByFuotaTask with the addition of +// the ability to pass a context and additional request options. +// +// See ListMulticastGroupsByFuotaTask for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *IoTWireless) ListMulticastGroupsByFuotaTaskWithContext(ctx aws.Context, input *ListMulticastGroupsByFuotaTaskInput, opts ...request.Option) (*ListMulticastGroupsByFuotaTaskOutput, error) { + req, out := c.ListMulticastGroupsByFuotaTaskRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// ListMulticastGroupsByFuotaTaskPages iterates over the pages of a ListMulticastGroupsByFuotaTask operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListMulticastGroupsByFuotaTask 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 ListMulticastGroupsByFuotaTask operation. +// pageNum := 0 +// err := client.ListMulticastGroupsByFuotaTaskPages(params, +// func(page *iotwireless.ListMulticastGroupsByFuotaTaskOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *IoTWireless) ListMulticastGroupsByFuotaTaskPages(input *ListMulticastGroupsByFuotaTaskInput, fn func(*ListMulticastGroupsByFuotaTaskOutput, bool) bool) error { + return c.ListMulticastGroupsByFuotaTaskPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListMulticastGroupsByFuotaTaskPagesWithContext same as ListMulticastGroupsByFuotaTaskPages 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 *IoTWireless) ListMulticastGroupsByFuotaTaskPagesWithContext(ctx aws.Context, input *ListMulticastGroupsByFuotaTaskInput, fn func(*ListMulticastGroupsByFuotaTaskOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListMulticastGroupsByFuotaTaskInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListMulticastGroupsByFuotaTaskRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListMulticastGroupsByFuotaTaskOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opListPartnerAccounts = "ListPartnerAccounts" + +// ListPartnerAccountsRequest generates a "aws/request.Request" representing the +// client's request for the ListPartnerAccounts operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListPartnerAccounts for more information on using the ListPartnerAccounts +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the ListPartnerAccountsRequest method. +// req, resp := client.ListPartnerAccountsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/ListPartnerAccounts +func (c *IoTWireless) ListPartnerAccountsRequest(input *ListPartnerAccountsInput) (req *request.Request, output *ListPartnerAccountsOutput) { + op := &request.Operation{ + Name: opListPartnerAccounts, + HTTPMethod: "GET", + HTTPPath: "/partner-accounts", + } + + if input == nil { + input = &ListPartnerAccountsInput{} + } + + output = &ListPartnerAccountsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListPartnerAccounts API operation for AWS IoT Wireless. +// +// Lists the partner accounts associated with your AWS account. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS IoT Wireless's +// API operation ListPartnerAccounts for usage and error information. // // Returned Error Types: // * ValidationException @@ -5502,6 +5623,97 @@ func (c *IoTWireless) UpdateWirelessGatewayRequest(input *UpdateWirelessGatewayI // * ResourceNotFoundException // Resource does not exist. // +// * InternalServerException +// An unexpected error occurred while processing a request. +// +// * ThrottlingException +// The request was denied because it exceeded the allowed API request rate. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/ListPartnerAccounts +func (c *IoTWireless) ListPartnerAccounts(input *ListPartnerAccountsInput) (*ListPartnerAccountsOutput, error) { + req, out := c.ListPartnerAccountsRequest(input) + return out, req.Send() +} + +// ListPartnerAccountsWithContext is the same as ListPartnerAccounts with the addition of +// the ability to pass a context and additional request options. +// +// See ListPartnerAccounts for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *IoTWireless) ListPartnerAccountsWithContext(ctx aws.Context, input *ListPartnerAccountsInput, opts ...request.Option) (*ListPartnerAccountsOutput, error) { + req, out := c.ListPartnerAccountsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opListServiceProfiles = "ListServiceProfiles" + +// ListServiceProfilesRequest generates a "aws/request.Request" representing the +// client's request for the ListServiceProfiles operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListServiceProfiles for more information on using the ListServiceProfiles +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the ListServiceProfilesRequest method. +// req, resp := client.ListServiceProfilesRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/ListServiceProfiles +func (c *IoTWireless) ListServiceProfilesRequest(input *ListServiceProfilesInput) (req *request.Request, output *ListServiceProfilesOutput) { + op := &request.Operation{ + Name: opListServiceProfiles, + HTTPMethod: "GET", + HTTPPath: "/service-profiles", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListServiceProfilesInput{} + } + + output = &ListServiceProfilesOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListServiceProfiles API operation for AWS IoT Wireless. +// +// Lists the service profiles registered to your AWS account. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS IoT Wireless's +// API operation ListServiceProfiles for usage and error information. +// +// Returned Error Types: +// * ValidationException +// The input did not meet the specified constraints. +// // * AccessDeniedException // User does not have permission to perform this action. // @@ -5511,37 +5723,5306 @@ func (c *IoTWireless) UpdateWirelessGatewayRequest(input *UpdateWirelessGatewayI // * ThrottlingException // The request was denied because it exceeded the allowed API request rate. // -// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/UpdateWirelessGateway -func (c *IoTWireless) UpdateWirelessGateway(input *UpdateWirelessGatewayInput) (*UpdateWirelessGatewayOutput, error) { - req, out := c.UpdateWirelessGatewayRequest(input) +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/ListServiceProfiles +func (c *IoTWireless) ListServiceProfiles(input *ListServiceProfilesInput) (*ListServiceProfilesOutput, error) { + req, out := c.ListServiceProfilesRequest(input) return out, req.Send() } -// UpdateWirelessGatewayWithContext is the same as UpdateWirelessGateway with the addition of +// ListServiceProfilesWithContext is the same as ListServiceProfiles with the addition of // the ability to pass a context and additional request options. // -// See UpdateWirelessGateway for details on how to use this API operation. +// See ListServiceProfiles for details on how to use this API operation. // // The context must be non-nil and will be used for request cancellation. If // the context is nil a panic will occur. In the future the SDK may create // sub-contexts for http.Requests. See https://golang.org/pkg/context/ // for more information on using Contexts. -func (c *IoTWireless) UpdateWirelessGatewayWithContext(ctx aws.Context, input *UpdateWirelessGatewayInput, opts ...request.Option) (*UpdateWirelessGatewayOutput, error) { - req, out := c.UpdateWirelessGatewayRequest(input) +func (c *IoTWireless) ListServiceProfilesWithContext(ctx aws.Context, input *ListServiceProfilesInput, opts ...request.Option) (*ListServiceProfilesOutput, error) { + req, out := c.ListServiceProfilesRequest(input) req.SetContext(ctx) req.ApplyOptions(opts...) return out, req.Send() } -// ABP device object for LoRaWAN specification v1.0.x -type AbpV10X struct { - _ struct{} `type:"structure"` - - // The DevAddr value. - DevAddr *string `type:"string"` +// ListServiceProfilesPages iterates over the pages of a ListServiceProfiles operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListServiceProfiles 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 ListServiceProfiles operation. +// pageNum := 0 +// err := client.ListServiceProfilesPages(params, +// func(page *iotwireless.ListServiceProfilesOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *IoTWireless) ListServiceProfilesPages(input *ListServiceProfilesInput, fn func(*ListServiceProfilesOutput, bool) bool) error { + return c.ListServiceProfilesPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListServiceProfilesPagesWithContext same as ListServiceProfilesPages 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 *IoTWireless) ListServiceProfilesPagesWithContext(ctx aws.Context, input *ListServiceProfilesInput, fn func(*ListServiceProfilesOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListServiceProfilesInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListServiceProfilesRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListServiceProfilesOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opListTagsForResource = "ListTagsForResource" + +// ListTagsForResourceRequest generates a "aws/request.Request" representing the +// client's request for the ListTagsForResource operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListTagsForResource for more information on using the ListTagsForResource +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the ListTagsForResourceRequest method. +// req, resp := client.ListTagsForResourceRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/ListTagsForResource +func (c *IoTWireless) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req *request.Request, output *ListTagsForResourceOutput) { + op := &request.Operation{ + Name: opListTagsForResource, + HTTPMethod: "GET", + HTTPPath: "/tags", + } + + if input == nil { + input = &ListTagsForResourceInput{} + } + + output = &ListTagsForResourceOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListTagsForResource API operation for AWS IoT Wireless. +// +// Lists the tags (metadata) you have assigned to the resource. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS IoT Wireless's +// API operation ListTagsForResource for usage and error information. +// +// Returned Error Types: +// * ValidationException +// The input did not meet the specified constraints. +// +// * ResourceNotFoundException +// Resource does not exist. +// +// * ConflictException +// Adding, updating, or deleting the resource can cause an inconsistent state. +// +// * InternalServerException +// An unexpected error occurred while processing a request. +// +// * ThrottlingException +// The request was denied because it exceeded the allowed API request rate. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/ListTagsForResource +func (c *IoTWireless) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) { + req, out := c.ListTagsForResourceRequest(input) + return out, req.Send() +} + +// ListTagsForResourceWithContext is the same as ListTagsForResource with the addition of +// the ability to pass a context and additional request options. +// +// See ListTagsForResource for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *IoTWireless) ListTagsForResourceWithContext(ctx aws.Context, input *ListTagsForResourceInput, opts ...request.Option) (*ListTagsForResourceOutput, error) { + req, out := c.ListTagsForResourceRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opListWirelessDevices = "ListWirelessDevices" + +// ListWirelessDevicesRequest generates a "aws/request.Request" representing the +// client's request for the ListWirelessDevices operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListWirelessDevices for more information on using the ListWirelessDevices +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the ListWirelessDevicesRequest method. +// req, resp := client.ListWirelessDevicesRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/ListWirelessDevices +func (c *IoTWireless) ListWirelessDevicesRequest(input *ListWirelessDevicesInput) (req *request.Request, output *ListWirelessDevicesOutput) { + op := &request.Operation{ + Name: opListWirelessDevices, + HTTPMethod: "GET", + HTTPPath: "/wireless-devices", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListWirelessDevicesInput{} + } + + output = &ListWirelessDevicesOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListWirelessDevices API operation for AWS IoT Wireless. +// +// Lists the wireless devices registered to your AWS account. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS IoT Wireless's +// API operation ListWirelessDevices for usage and error information. +// +// Returned Error Types: +// * ValidationException +// The input did not meet the specified constraints. +// +// * InternalServerException +// An unexpected error occurred while processing a request. +// +// * ThrottlingException +// The request was denied because it exceeded the allowed API request rate. +// +// * AccessDeniedException +// User does not have permission to perform this action. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/ListWirelessDevices +func (c *IoTWireless) ListWirelessDevices(input *ListWirelessDevicesInput) (*ListWirelessDevicesOutput, error) { + req, out := c.ListWirelessDevicesRequest(input) + return out, req.Send() +} + +// ListWirelessDevicesWithContext is the same as ListWirelessDevices with the addition of +// the ability to pass a context and additional request options. +// +// See ListWirelessDevices for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *IoTWireless) ListWirelessDevicesWithContext(ctx aws.Context, input *ListWirelessDevicesInput, opts ...request.Option) (*ListWirelessDevicesOutput, error) { + req, out := c.ListWirelessDevicesRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// ListWirelessDevicesPages iterates over the pages of a ListWirelessDevices operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListWirelessDevices 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 ListWirelessDevices operation. +// pageNum := 0 +// err := client.ListWirelessDevicesPages(params, +// func(page *iotwireless.ListWirelessDevicesOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *IoTWireless) ListWirelessDevicesPages(input *ListWirelessDevicesInput, fn func(*ListWirelessDevicesOutput, bool) bool) error { + return c.ListWirelessDevicesPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListWirelessDevicesPagesWithContext same as ListWirelessDevicesPages 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 *IoTWireless) ListWirelessDevicesPagesWithContext(ctx aws.Context, input *ListWirelessDevicesInput, fn func(*ListWirelessDevicesOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListWirelessDevicesInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListWirelessDevicesRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListWirelessDevicesOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opListWirelessGatewayTaskDefinitions = "ListWirelessGatewayTaskDefinitions" + +// ListWirelessGatewayTaskDefinitionsRequest generates a "aws/request.Request" representing the +// client's request for the ListWirelessGatewayTaskDefinitions operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListWirelessGatewayTaskDefinitions for more information on using the ListWirelessGatewayTaskDefinitions +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the ListWirelessGatewayTaskDefinitionsRequest method. +// req, resp := client.ListWirelessGatewayTaskDefinitionsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/ListWirelessGatewayTaskDefinitions +func (c *IoTWireless) ListWirelessGatewayTaskDefinitionsRequest(input *ListWirelessGatewayTaskDefinitionsInput) (req *request.Request, output *ListWirelessGatewayTaskDefinitionsOutput) { + op := &request.Operation{ + Name: opListWirelessGatewayTaskDefinitions, + HTTPMethod: "GET", + HTTPPath: "/wireless-gateway-task-definitions", + } + + if input == nil { + input = &ListWirelessGatewayTaskDefinitionsInput{} + } + + output = &ListWirelessGatewayTaskDefinitionsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListWirelessGatewayTaskDefinitions API operation for AWS IoT Wireless. +// +// List the wireless gateway tasks definitions registered to your AWS account. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS IoT Wireless's +// API operation ListWirelessGatewayTaskDefinitions for usage and error information. +// +// Returned Error Types: +// * ValidationException +// The input did not meet the specified constraints. +// +// * AccessDeniedException +// User does not have permission to perform this action. +// +// * InternalServerException +// An unexpected error occurred while processing a request. +// +// * ThrottlingException +// The request was denied because it exceeded the allowed API request rate. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/ListWirelessGatewayTaskDefinitions +func (c *IoTWireless) ListWirelessGatewayTaskDefinitions(input *ListWirelessGatewayTaskDefinitionsInput) (*ListWirelessGatewayTaskDefinitionsOutput, error) { + req, out := c.ListWirelessGatewayTaskDefinitionsRequest(input) + return out, req.Send() +} + +// ListWirelessGatewayTaskDefinitionsWithContext is the same as ListWirelessGatewayTaskDefinitions with the addition of +// the ability to pass a context and additional request options. +// +// See ListWirelessGatewayTaskDefinitions for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *IoTWireless) ListWirelessGatewayTaskDefinitionsWithContext(ctx aws.Context, input *ListWirelessGatewayTaskDefinitionsInput, opts ...request.Option) (*ListWirelessGatewayTaskDefinitionsOutput, error) { + req, out := c.ListWirelessGatewayTaskDefinitionsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opListWirelessGateways = "ListWirelessGateways" + +// ListWirelessGatewaysRequest generates a "aws/request.Request" representing the +// client's request for the ListWirelessGateways operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListWirelessGateways for more information on using the ListWirelessGateways +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the ListWirelessGatewaysRequest method. +// req, resp := client.ListWirelessGatewaysRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/ListWirelessGateways +func (c *IoTWireless) ListWirelessGatewaysRequest(input *ListWirelessGatewaysInput) (req *request.Request, output *ListWirelessGatewaysOutput) { + op := &request.Operation{ + Name: opListWirelessGateways, + HTTPMethod: "GET", + HTTPPath: "/wireless-gateways", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListWirelessGatewaysInput{} + } + + output = &ListWirelessGatewaysOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListWirelessGateways API operation for AWS IoT Wireless. +// +// Lists the wireless gateways registered to your AWS account. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS IoT Wireless's +// API operation ListWirelessGateways for usage and error information. +// +// Returned Error Types: +// * ValidationException +// The input did not meet the specified constraints. +// +// * InternalServerException +// An unexpected error occurred while processing a request. +// +// * ThrottlingException +// The request was denied because it exceeded the allowed API request rate. +// +// * AccessDeniedException +// User does not have permission to perform this action. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/ListWirelessGateways +func (c *IoTWireless) ListWirelessGateways(input *ListWirelessGatewaysInput) (*ListWirelessGatewaysOutput, error) { + req, out := c.ListWirelessGatewaysRequest(input) + return out, req.Send() +} + +// ListWirelessGatewaysWithContext is the same as ListWirelessGateways with the addition of +// the ability to pass a context and additional request options. +// +// See ListWirelessGateways for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *IoTWireless) ListWirelessGatewaysWithContext(ctx aws.Context, input *ListWirelessGatewaysInput, opts ...request.Option) (*ListWirelessGatewaysOutput, error) { + req, out := c.ListWirelessGatewaysRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// ListWirelessGatewaysPages iterates over the pages of a ListWirelessGateways operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListWirelessGateways 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 ListWirelessGateways operation. +// pageNum := 0 +// err := client.ListWirelessGatewaysPages(params, +// func(page *iotwireless.ListWirelessGatewaysOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *IoTWireless) ListWirelessGatewaysPages(input *ListWirelessGatewaysInput, fn func(*ListWirelessGatewaysOutput, bool) bool) error { + return c.ListWirelessGatewaysPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListWirelessGatewaysPagesWithContext same as ListWirelessGatewaysPages 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 *IoTWireless) ListWirelessGatewaysPagesWithContext(ctx aws.Context, input *ListWirelessGatewaysInput, fn func(*ListWirelessGatewaysOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListWirelessGatewaysInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListWirelessGatewaysRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListWirelessGatewaysOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opPutResourceLogLevel = "PutResourceLogLevel" + +// PutResourceLogLevelRequest generates a "aws/request.Request" representing the +// client's request for the PutResourceLogLevel operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See PutResourceLogLevel for more information on using the PutResourceLogLevel +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the PutResourceLogLevelRequest method. +// req, resp := client.PutResourceLogLevelRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/PutResourceLogLevel +func (c *IoTWireless) PutResourceLogLevelRequest(input *PutResourceLogLevelInput) (req *request.Request, output *PutResourceLogLevelOutput) { + op := &request.Operation{ + Name: opPutResourceLogLevel, + HTTPMethod: "PUT", + HTTPPath: "/log-levels/{ResourceIdentifier}", + } + + if input == nil { + input = &PutResourceLogLevelInput{} + } + + output = &PutResourceLogLevelOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// PutResourceLogLevel API operation for AWS IoT Wireless. +// +// Sets the log-level override for a resource-ID and resource-type. This option +// can be specified for a wireless gateway or a wireless device. A limit of +// 200 log level override can be set per 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 AWS IoT Wireless's +// API operation PutResourceLogLevel for usage and error information. +// +// Returned Error Types: +// * AccessDeniedException +// User does not have permission to perform this action. +// +// * InternalServerException +// An unexpected error occurred while processing a request. +// +// * ResourceNotFoundException +// Resource does not exist. +// +// * ThrottlingException +// The request was denied because it exceeded the allowed API request rate. +// +// * ValidationException +// The input did not meet the specified constraints. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/PutResourceLogLevel +func (c *IoTWireless) PutResourceLogLevel(input *PutResourceLogLevelInput) (*PutResourceLogLevelOutput, error) { + req, out := c.PutResourceLogLevelRequest(input) + return out, req.Send() +} + +// PutResourceLogLevelWithContext is the same as PutResourceLogLevel with the addition of +// the ability to pass a context and additional request options. +// +// See PutResourceLogLevel for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *IoTWireless) PutResourceLogLevelWithContext(ctx aws.Context, input *PutResourceLogLevelInput, opts ...request.Option) (*PutResourceLogLevelOutput, error) { + req, out := c.PutResourceLogLevelRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opResetAllResourceLogLevels = "ResetAllResourceLogLevels" + +// ResetAllResourceLogLevelsRequest generates a "aws/request.Request" representing the +// client's request for the ResetAllResourceLogLevels operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ResetAllResourceLogLevels for more information on using the ResetAllResourceLogLevels +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the ResetAllResourceLogLevelsRequest method. +// req, resp := client.ResetAllResourceLogLevelsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/ResetAllResourceLogLevels +func (c *IoTWireless) ResetAllResourceLogLevelsRequest(input *ResetAllResourceLogLevelsInput) (req *request.Request, output *ResetAllResourceLogLevelsOutput) { + op := &request.Operation{ + Name: opResetAllResourceLogLevels, + HTTPMethod: "DELETE", + HTTPPath: "/log-levels", + } + + if input == nil { + input = &ResetAllResourceLogLevelsInput{} + } + + output = &ResetAllResourceLogLevelsOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// ResetAllResourceLogLevels API operation for AWS IoT Wireless. +// +// Removes the log-level overrides for all resources; both wireless devices +// and wireless gateways. +// +// Returns awserr.Error for service API and SDK errors. Use runtime 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 IoT Wireless's +// API operation ResetAllResourceLogLevels for usage and error information. +// +// Returned Error Types: +// * AccessDeniedException +// User does not have permission to perform this action. +// +// * InternalServerException +// An unexpected error occurred while processing a request. +// +// * ResourceNotFoundException +// Resource does not exist. +// +// * ThrottlingException +// The request was denied because it exceeded the allowed API request rate. +// +// * ValidationException +// The input did not meet the specified constraints. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/ResetAllResourceLogLevels +func (c *IoTWireless) ResetAllResourceLogLevels(input *ResetAllResourceLogLevelsInput) (*ResetAllResourceLogLevelsOutput, error) { + req, out := c.ResetAllResourceLogLevelsRequest(input) + return out, req.Send() +} + +// ResetAllResourceLogLevelsWithContext is the same as ResetAllResourceLogLevels with the addition of +// the ability to pass a context and additional request options. +// +// See ResetAllResourceLogLevels for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *IoTWireless) ResetAllResourceLogLevelsWithContext(ctx aws.Context, input *ResetAllResourceLogLevelsInput, opts ...request.Option) (*ResetAllResourceLogLevelsOutput, error) { + req, out := c.ResetAllResourceLogLevelsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opResetResourceLogLevel = "ResetResourceLogLevel" + +// ResetResourceLogLevelRequest generates a "aws/request.Request" representing the +// client's request for the ResetResourceLogLevel operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ResetResourceLogLevel for more information on using the ResetResourceLogLevel +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the ResetResourceLogLevelRequest method. +// req, resp := client.ResetResourceLogLevelRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/ResetResourceLogLevel +func (c *IoTWireless) ResetResourceLogLevelRequest(input *ResetResourceLogLevelInput) (req *request.Request, output *ResetResourceLogLevelOutput) { + op := &request.Operation{ + Name: opResetResourceLogLevel, + HTTPMethod: "DELETE", + HTTPPath: "/log-levels/{ResourceIdentifier}", + } + + if input == nil { + input = &ResetResourceLogLevelInput{} + } + + output = &ResetResourceLogLevelOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// ResetResourceLogLevel API operation for AWS IoT Wireless. +// +// Removes the log-level override, if any, for a specific resource-ID and resource-type. +// It can be used for a wireless device or a wireless 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 IoT Wireless's +// API operation ResetResourceLogLevel for usage and error information. +// +// Returned Error Types: +// * AccessDeniedException +// User does not have permission to perform this action. +// +// * InternalServerException +// An unexpected error occurred while processing a request. +// +// * ResourceNotFoundException +// Resource does not exist. +// +// * ThrottlingException +// The request was denied because it exceeded the allowed API request rate. +// +// * ValidationException +// The input did not meet the specified constraints. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/ResetResourceLogLevel +func (c *IoTWireless) ResetResourceLogLevel(input *ResetResourceLogLevelInput) (*ResetResourceLogLevelOutput, error) { + req, out := c.ResetResourceLogLevelRequest(input) + return out, req.Send() +} + +// ResetResourceLogLevelWithContext is the same as ResetResourceLogLevel with the addition of +// the ability to pass a context and additional request options. +// +// See ResetResourceLogLevel for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *IoTWireless) ResetResourceLogLevelWithContext(ctx aws.Context, input *ResetResourceLogLevelInput, opts ...request.Option) (*ResetResourceLogLevelOutput, error) { + req, out := c.ResetResourceLogLevelRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opSendDataToMulticastGroup = "SendDataToMulticastGroup" + +// SendDataToMulticastGroupRequest generates a "aws/request.Request" representing the +// client's request for the SendDataToMulticastGroup operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See SendDataToMulticastGroup for more information on using the SendDataToMulticastGroup +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the SendDataToMulticastGroupRequest method. +// req, resp := client.SendDataToMulticastGroupRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/SendDataToMulticastGroup +func (c *IoTWireless) SendDataToMulticastGroupRequest(input *SendDataToMulticastGroupInput) (req *request.Request, output *SendDataToMulticastGroupOutput) { + op := &request.Operation{ + Name: opSendDataToMulticastGroup, + HTTPMethod: "POST", + HTTPPath: "/multicast-groups/{Id}/data", + } + + if input == nil { + input = &SendDataToMulticastGroupInput{} + } + + output = &SendDataToMulticastGroupOutput{} + req = c.newRequest(op, input, output) + return +} + +// SendDataToMulticastGroup API operation for AWS IoT Wireless. +// +// Sends the specified data to a multicast group. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS IoT Wireless's +// API operation SendDataToMulticastGroup for usage and error information. +// +// Returned Error Types: +// * ValidationException +// The input did not meet the specified constraints. +// +// * ResourceNotFoundException +// Resource does not exist. +// +// * AccessDeniedException +// User does not have permission to perform this action. +// +// * ConflictException +// Adding, updating, or deleting the resource can cause an inconsistent state. +// +// * InternalServerException +// An unexpected error occurred while processing a request. +// +// * ThrottlingException +// The request was denied because it exceeded the allowed API request rate. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/SendDataToMulticastGroup +func (c *IoTWireless) SendDataToMulticastGroup(input *SendDataToMulticastGroupInput) (*SendDataToMulticastGroupOutput, error) { + req, out := c.SendDataToMulticastGroupRequest(input) + return out, req.Send() +} + +// SendDataToMulticastGroupWithContext is the same as SendDataToMulticastGroup with the addition of +// the ability to pass a context and additional request options. +// +// See SendDataToMulticastGroup for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *IoTWireless) SendDataToMulticastGroupWithContext(ctx aws.Context, input *SendDataToMulticastGroupInput, opts ...request.Option) (*SendDataToMulticastGroupOutput, error) { + req, out := c.SendDataToMulticastGroupRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opSendDataToWirelessDevice = "SendDataToWirelessDevice" + +// SendDataToWirelessDeviceRequest generates a "aws/request.Request" representing the +// client's request for the SendDataToWirelessDevice operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See SendDataToWirelessDevice for more information on using the SendDataToWirelessDevice +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the SendDataToWirelessDeviceRequest method. +// req, resp := client.SendDataToWirelessDeviceRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/SendDataToWirelessDevice +func (c *IoTWireless) SendDataToWirelessDeviceRequest(input *SendDataToWirelessDeviceInput) (req *request.Request, output *SendDataToWirelessDeviceOutput) { + op := &request.Operation{ + Name: opSendDataToWirelessDevice, + HTTPMethod: "POST", + HTTPPath: "/wireless-devices/{Id}/data", + } + + if input == nil { + input = &SendDataToWirelessDeviceInput{} + } + + output = &SendDataToWirelessDeviceOutput{} + req = c.newRequest(op, input, output) + return +} + +// SendDataToWirelessDevice API operation for AWS IoT Wireless. +// +// Sends a decrypted application data frame to a device. +// +// Returns awserr.Error for service API and SDK errors. Use runtime 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 IoT Wireless's +// API operation SendDataToWirelessDevice for usage and error information. +// +// Returned Error Types: +// * ValidationException +// The input did not meet the specified constraints. +// +// * ResourceNotFoundException +// Resource does not exist. +// +// * ThrottlingException +// The request was denied because it exceeded the allowed API request rate. +// +// * InternalServerException +// An unexpected error occurred while processing a request. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/SendDataToWirelessDevice +func (c *IoTWireless) SendDataToWirelessDevice(input *SendDataToWirelessDeviceInput) (*SendDataToWirelessDeviceOutput, error) { + req, out := c.SendDataToWirelessDeviceRequest(input) + return out, req.Send() +} + +// SendDataToWirelessDeviceWithContext is the same as SendDataToWirelessDevice with the addition of +// the ability to pass a context and additional request options. +// +// See SendDataToWirelessDevice for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *IoTWireless) SendDataToWirelessDeviceWithContext(ctx aws.Context, input *SendDataToWirelessDeviceInput, opts ...request.Option) (*SendDataToWirelessDeviceOutput, error) { + req, out := c.SendDataToWirelessDeviceRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opStartBulkAssociateWirelessDeviceWithMulticastGroup = "StartBulkAssociateWirelessDeviceWithMulticastGroup" + +// StartBulkAssociateWirelessDeviceWithMulticastGroupRequest generates a "aws/request.Request" representing the +// client's request for the StartBulkAssociateWirelessDeviceWithMulticastGroup operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See StartBulkAssociateWirelessDeviceWithMulticastGroup for more information on using the StartBulkAssociateWirelessDeviceWithMulticastGroup +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the StartBulkAssociateWirelessDeviceWithMulticastGroupRequest method. +// req, resp := client.StartBulkAssociateWirelessDeviceWithMulticastGroupRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/StartBulkAssociateWirelessDeviceWithMulticastGroup +func (c *IoTWireless) StartBulkAssociateWirelessDeviceWithMulticastGroupRequest(input *StartBulkAssociateWirelessDeviceWithMulticastGroupInput) (req *request.Request, output *StartBulkAssociateWirelessDeviceWithMulticastGroupOutput) { + op := &request.Operation{ + Name: opStartBulkAssociateWirelessDeviceWithMulticastGroup, + HTTPMethod: "PATCH", + HTTPPath: "/multicast-groups/{Id}/bulk", + } + + if input == nil { + input = &StartBulkAssociateWirelessDeviceWithMulticastGroupInput{} + } + + output = &StartBulkAssociateWirelessDeviceWithMulticastGroupOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// StartBulkAssociateWirelessDeviceWithMulticastGroup API operation for AWS IoT Wireless. +// +// Starts a bulk association of all qualifying wireless devices with a multicast +// group. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS IoT Wireless's +// API operation StartBulkAssociateWirelessDeviceWithMulticastGroup for usage and error information. +// +// Returned Error Types: +// * ValidationException +// The input did not meet the specified constraints. +// +// * ResourceNotFoundException +// Resource does not exist. +// +// * AccessDeniedException +// User does not have permission to perform this action. +// +// * InternalServerException +// An unexpected error occurred while processing a request. +// +// * ThrottlingException +// The request was denied because it exceeded the allowed API request rate. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/StartBulkAssociateWirelessDeviceWithMulticastGroup +func (c *IoTWireless) StartBulkAssociateWirelessDeviceWithMulticastGroup(input *StartBulkAssociateWirelessDeviceWithMulticastGroupInput) (*StartBulkAssociateWirelessDeviceWithMulticastGroupOutput, error) { + req, out := c.StartBulkAssociateWirelessDeviceWithMulticastGroupRequest(input) + return out, req.Send() +} + +// StartBulkAssociateWirelessDeviceWithMulticastGroupWithContext is the same as StartBulkAssociateWirelessDeviceWithMulticastGroup with the addition of +// the ability to pass a context and additional request options. +// +// See StartBulkAssociateWirelessDeviceWithMulticastGroup for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *IoTWireless) StartBulkAssociateWirelessDeviceWithMulticastGroupWithContext(ctx aws.Context, input *StartBulkAssociateWirelessDeviceWithMulticastGroupInput, opts ...request.Option) (*StartBulkAssociateWirelessDeviceWithMulticastGroupOutput, error) { + req, out := c.StartBulkAssociateWirelessDeviceWithMulticastGroupRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opStartBulkDisassociateWirelessDeviceFromMulticastGroup = "StartBulkDisassociateWirelessDeviceFromMulticastGroup" + +// StartBulkDisassociateWirelessDeviceFromMulticastGroupRequest generates a "aws/request.Request" representing the +// client's request for the StartBulkDisassociateWirelessDeviceFromMulticastGroup operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See StartBulkDisassociateWirelessDeviceFromMulticastGroup for more information on using the StartBulkDisassociateWirelessDeviceFromMulticastGroup +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the StartBulkDisassociateWirelessDeviceFromMulticastGroupRequest method. +// req, resp := client.StartBulkDisassociateWirelessDeviceFromMulticastGroupRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/StartBulkDisassociateWirelessDeviceFromMulticastGroup +func (c *IoTWireless) StartBulkDisassociateWirelessDeviceFromMulticastGroupRequest(input *StartBulkDisassociateWirelessDeviceFromMulticastGroupInput) (req *request.Request, output *StartBulkDisassociateWirelessDeviceFromMulticastGroupOutput) { + op := &request.Operation{ + Name: opStartBulkDisassociateWirelessDeviceFromMulticastGroup, + HTTPMethod: "POST", + HTTPPath: "/multicast-groups/{Id}/bulk", + } + + if input == nil { + input = &StartBulkDisassociateWirelessDeviceFromMulticastGroupInput{} + } + + output = &StartBulkDisassociateWirelessDeviceFromMulticastGroupOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// StartBulkDisassociateWirelessDeviceFromMulticastGroup API operation for AWS IoT Wireless. +// +// Starts a bulk disassociatin of all qualifying wireless devices from a multicast +// group. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS IoT Wireless's +// API operation StartBulkDisassociateWirelessDeviceFromMulticastGroup for usage and error information. +// +// Returned Error Types: +// * ValidationException +// The input did not meet the specified constraints. +// +// * ResourceNotFoundException +// Resource does not exist. +// +// * AccessDeniedException +// User does not have permission to perform this action. +// +// * InternalServerException +// An unexpected error occurred while processing a request. +// +// * ThrottlingException +// The request was denied because it exceeded the allowed API request rate. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/StartBulkDisassociateWirelessDeviceFromMulticastGroup +func (c *IoTWireless) StartBulkDisassociateWirelessDeviceFromMulticastGroup(input *StartBulkDisassociateWirelessDeviceFromMulticastGroupInput) (*StartBulkDisassociateWirelessDeviceFromMulticastGroupOutput, error) { + req, out := c.StartBulkDisassociateWirelessDeviceFromMulticastGroupRequest(input) + return out, req.Send() +} + +// StartBulkDisassociateWirelessDeviceFromMulticastGroupWithContext is the same as StartBulkDisassociateWirelessDeviceFromMulticastGroup with the addition of +// the ability to pass a context and additional request options. +// +// See StartBulkDisassociateWirelessDeviceFromMulticastGroup for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *IoTWireless) StartBulkDisassociateWirelessDeviceFromMulticastGroupWithContext(ctx aws.Context, input *StartBulkDisassociateWirelessDeviceFromMulticastGroupInput, opts ...request.Option) (*StartBulkDisassociateWirelessDeviceFromMulticastGroupOutput, error) { + req, out := c.StartBulkDisassociateWirelessDeviceFromMulticastGroupRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opStartFuotaTask = "StartFuotaTask" + +// StartFuotaTaskRequest generates a "aws/request.Request" representing the +// client's request for the StartFuotaTask operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See StartFuotaTask for more information on using the StartFuotaTask +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the StartFuotaTaskRequest method. +// req, resp := client.StartFuotaTaskRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/StartFuotaTask +func (c *IoTWireless) StartFuotaTaskRequest(input *StartFuotaTaskInput) (req *request.Request, output *StartFuotaTaskOutput) { + op := &request.Operation{ + Name: opStartFuotaTask, + HTTPMethod: "PUT", + HTTPPath: "/fuota-tasks/{Id}", + } + + if input == nil { + input = &StartFuotaTaskInput{} + } + + output = &StartFuotaTaskOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// StartFuotaTask API operation for AWS IoT Wireless. +// +// Starts a FUOTA task. +// +// Returns awserr.Error for service API and SDK errors. Use runtime 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 IoT Wireless's +// API operation StartFuotaTask for usage and error information. +// +// Returned Error Types: +// * ValidationException +// The input did not meet the specified constraints. +// +// * AccessDeniedException +// User does not have permission to perform this action. +// +// * ResourceNotFoundException +// Resource does not exist. +// +// * ConflictException +// Adding, updating, or deleting the resource can cause an inconsistent state. +// +// * ThrottlingException +// The request was denied because it exceeded the allowed API request rate. +// +// * InternalServerException +// An unexpected error occurred while processing a request. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/StartFuotaTask +func (c *IoTWireless) StartFuotaTask(input *StartFuotaTaskInput) (*StartFuotaTaskOutput, error) { + req, out := c.StartFuotaTaskRequest(input) + return out, req.Send() +} + +// StartFuotaTaskWithContext is the same as StartFuotaTask with the addition of +// the ability to pass a context and additional request options. +// +// See StartFuotaTask for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *IoTWireless) StartFuotaTaskWithContext(ctx aws.Context, input *StartFuotaTaskInput, opts ...request.Option) (*StartFuotaTaskOutput, error) { + req, out := c.StartFuotaTaskRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opStartMulticastGroupSession = "StartMulticastGroupSession" + +// StartMulticastGroupSessionRequest generates a "aws/request.Request" representing the +// client's request for the StartMulticastGroupSession operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See StartMulticastGroupSession for more information on using the StartMulticastGroupSession +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the StartMulticastGroupSessionRequest method. +// req, resp := client.StartMulticastGroupSessionRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/StartMulticastGroupSession +func (c *IoTWireless) StartMulticastGroupSessionRequest(input *StartMulticastGroupSessionInput) (req *request.Request, output *StartMulticastGroupSessionOutput) { + op := &request.Operation{ + Name: opStartMulticastGroupSession, + HTTPMethod: "PUT", + HTTPPath: "/multicast-groups/{Id}/session", + } + + if input == nil { + input = &StartMulticastGroupSessionInput{} + } + + output = &StartMulticastGroupSessionOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// StartMulticastGroupSession API operation for AWS IoT Wireless. +// +// Starts a multicast group session. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS IoT Wireless's +// API operation StartMulticastGroupSession for usage and error information. +// +// Returned Error Types: +// * ValidationException +// The input did not meet the specified constraints. +// +// * ResourceNotFoundException +// Resource does not exist. +// +// * AccessDeniedException +// User does not have permission to perform this action. +// +// * ConflictException +// Adding, updating, or deleting the resource can cause an inconsistent state. +// +// * InternalServerException +// An unexpected error occurred while processing a request. +// +// * ThrottlingException +// The request was denied because it exceeded the allowed API request rate. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/StartMulticastGroupSession +func (c *IoTWireless) StartMulticastGroupSession(input *StartMulticastGroupSessionInput) (*StartMulticastGroupSessionOutput, error) { + req, out := c.StartMulticastGroupSessionRequest(input) + return out, req.Send() +} + +// StartMulticastGroupSessionWithContext is the same as StartMulticastGroupSession with the addition of +// the ability to pass a context and additional request options. +// +// See StartMulticastGroupSession for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *IoTWireless) StartMulticastGroupSessionWithContext(ctx aws.Context, input *StartMulticastGroupSessionInput, opts ...request.Option) (*StartMulticastGroupSessionOutput, error) { + req, out := c.StartMulticastGroupSessionRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opTagResource = "TagResource" + +// TagResourceRequest generates a "aws/request.Request" representing the +// client's request for the TagResource operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See TagResource for more information on using the TagResource +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the TagResourceRequest method. +// req, resp := client.TagResourceRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/TagResource +func (c *IoTWireless) TagResourceRequest(input *TagResourceInput) (req *request.Request, output *TagResourceOutput) { + op := &request.Operation{ + Name: opTagResource, + HTTPMethod: "POST", + HTTPPath: "/tags", + } + + if input == nil { + input = &TagResourceInput{} + } + + output = &TagResourceOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// TagResource API operation for AWS IoT Wireless. +// +// Adds a tag to a resource. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS IoT Wireless's +// API operation TagResource for usage and error information. +// +// Returned Error Types: +// * ValidationException +// The input did not meet the specified constraints. +// +// * ResourceNotFoundException +// Resource does not exist. +// +// * ConflictException +// Adding, updating, or deleting the resource can cause an inconsistent state. +// +// * InternalServerException +// An unexpected error occurred while processing a request. +// +// * ThrottlingException +// The request was denied because it exceeded the allowed API request rate. +// +// * TooManyTagsException +// The request was denied because the resource can't have any more tags. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/TagResource +func (c *IoTWireless) TagResource(input *TagResourceInput) (*TagResourceOutput, error) { + req, out := c.TagResourceRequest(input) + return out, req.Send() +} + +// TagResourceWithContext is the same as TagResource with the addition of +// the ability to pass a context and additional request options. +// +// See TagResource for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *IoTWireless) TagResourceWithContext(ctx aws.Context, input *TagResourceInput, opts ...request.Option) (*TagResourceOutput, error) { + req, out := c.TagResourceRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opTestWirelessDevice = "TestWirelessDevice" + +// TestWirelessDeviceRequest generates a "aws/request.Request" representing the +// client's request for the TestWirelessDevice operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See TestWirelessDevice for more information on using the TestWirelessDevice +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the TestWirelessDeviceRequest method. +// req, resp := client.TestWirelessDeviceRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/TestWirelessDevice +func (c *IoTWireless) TestWirelessDeviceRequest(input *TestWirelessDeviceInput) (req *request.Request, output *TestWirelessDeviceOutput) { + op := &request.Operation{ + Name: opTestWirelessDevice, + HTTPMethod: "POST", + HTTPPath: "/wireless-devices/{Id}/test", + } + + if input == nil { + input = &TestWirelessDeviceInput{} + } + + output = &TestWirelessDeviceOutput{} + req = c.newRequest(op, input, output) + return +} + +// TestWirelessDevice API operation for AWS IoT Wireless. +// +// Simulates a provisioned device by sending an uplink data payload of Hello. +// +// Returns awserr.Error for service API and SDK errors. Use runtime 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 IoT Wireless's +// API operation TestWirelessDevice for usage and error information. +// +// Returned Error Types: +// * ValidationException +// The input did not meet the specified constraints. +// +// * ResourceNotFoundException +// Resource does not exist. +// +// * ThrottlingException +// The request was denied because it exceeded the allowed API request rate. +// +// * InternalServerException +// An unexpected error occurred while processing a request. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/TestWirelessDevice +func (c *IoTWireless) TestWirelessDevice(input *TestWirelessDeviceInput) (*TestWirelessDeviceOutput, error) { + req, out := c.TestWirelessDeviceRequest(input) + return out, req.Send() +} + +// TestWirelessDeviceWithContext is the same as TestWirelessDevice with the addition of +// the ability to pass a context and additional request options. +// +// See TestWirelessDevice for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *IoTWireless) TestWirelessDeviceWithContext(ctx aws.Context, input *TestWirelessDeviceInput, opts ...request.Option) (*TestWirelessDeviceOutput, error) { + req, out := c.TestWirelessDeviceRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUntagResource = "UntagResource" + +// UntagResourceRequest generates a "aws/request.Request" representing the +// client's request for the UntagResource operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UntagResource for more information on using the UntagResource +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the UntagResourceRequest method. +// req, resp := client.UntagResourceRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/UntagResource +func (c *IoTWireless) UntagResourceRequest(input *UntagResourceInput) (req *request.Request, output *UntagResourceOutput) { + op := &request.Operation{ + Name: opUntagResource, + HTTPMethod: "DELETE", + HTTPPath: "/tags", + } + + if input == nil { + input = &UntagResourceInput{} + } + + output = &UntagResourceOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// UntagResource API operation for AWS IoT Wireless. +// +// Removes one or more tags from a resource. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS IoT Wireless's +// API operation UntagResource for usage and error information. +// +// Returned Error Types: +// * ValidationException +// The input did not meet the specified constraints. +// +// * ResourceNotFoundException +// Resource does not exist. +// +// * ConflictException +// Adding, updating, or deleting the resource can cause an inconsistent state. +// +// * InternalServerException +// An unexpected error occurred while processing a request. +// +// * ThrottlingException +// The request was denied because it exceeded the allowed API request rate. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/UntagResource +func (c *IoTWireless) UntagResource(input *UntagResourceInput) (*UntagResourceOutput, error) { + req, out := c.UntagResourceRequest(input) + return out, req.Send() +} + +// UntagResourceWithContext is the same as UntagResource with the addition of +// the ability to pass a context and additional request options. +// +// See UntagResource for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *IoTWireless) UntagResourceWithContext(ctx aws.Context, input *UntagResourceInput, opts ...request.Option) (*UntagResourceOutput, error) { + req, out := c.UntagResourceRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateDestination = "UpdateDestination" + +// UpdateDestinationRequest generates a "aws/request.Request" representing the +// client's request for the UpdateDestination operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdateDestination for more information on using the UpdateDestination +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the UpdateDestinationRequest method. +// req, resp := client.UpdateDestinationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/UpdateDestination +func (c *IoTWireless) UpdateDestinationRequest(input *UpdateDestinationInput) (req *request.Request, output *UpdateDestinationOutput) { + op := &request.Operation{ + Name: opUpdateDestination, + HTTPMethod: "PATCH", + HTTPPath: "/destinations/{Name}", + } + + if input == nil { + input = &UpdateDestinationInput{} + } + + output = &UpdateDestinationOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// UpdateDestination API operation for AWS IoT Wireless. +// +// Updates properties of a destination. +// +// Returns awserr.Error for service API and SDK errors. Use runtime 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 IoT Wireless's +// API operation UpdateDestination for usage and error information. +// +// Returned Error Types: +// * ValidationException +// The input did not meet the specified constraints. +// +// * ResourceNotFoundException +// Resource does not exist. +// +// * AccessDeniedException +// User does not have permission to perform this action. +// +// * InternalServerException +// An unexpected error occurred while processing a request. +// +// * ThrottlingException +// The request was denied because it exceeded the allowed API request rate. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/UpdateDestination +func (c *IoTWireless) UpdateDestination(input *UpdateDestinationInput) (*UpdateDestinationOutput, error) { + req, out := c.UpdateDestinationRequest(input) + return out, req.Send() +} + +// UpdateDestinationWithContext is the same as UpdateDestination with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateDestination for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *IoTWireless) UpdateDestinationWithContext(ctx aws.Context, input *UpdateDestinationInput, opts ...request.Option) (*UpdateDestinationOutput, error) { + req, out := c.UpdateDestinationRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateFuotaTask = "UpdateFuotaTask" + +// UpdateFuotaTaskRequest generates a "aws/request.Request" representing the +// client's request for the UpdateFuotaTask operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdateFuotaTask for more information on using the UpdateFuotaTask +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the UpdateFuotaTaskRequest method. +// req, resp := client.UpdateFuotaTaskRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/UpdateFuotaTask +func (c *IoTWireless) UpdateFuotaTaskRequest(input *UpdateFuotaTaskInput) (req *request.Request, output *UpdateFuotaTaskOutput) { + op := &request.Operation{ + Name: opUpdateFuotaTask, + HTTPMethod: "PATCH", + HTTPPath: "/fuota-tasks/{Id}", + } + + if input == nil { + input = &UpdateFuotaTaskInput{} + } + + output = &UpdateFuotaTaskOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// UpdateFuotaTask API operation for AWS IoT Wireless. +// +// Updates properties of a FUOTA task. +// +// Returns awserr.Error for service API and SDK errors. Use runtime 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 IoT Wireless's +// API operation UpdateFuotaTask for usage and error information. +// +// Returned Error Types: +// * ValidationException +// The input did not meet the specified constraints. +// +// * ResourceNotFoundException +// Resource does not exist. +// +// * AccessDeniedException +// User does not have permission to perform this action. +// +// * ConflictException +// Adding, updating, or deleting the resource can cause an inconsistent state. +// +// * InternalServerException +// An unexpected error occurred while processing a request. +// +// * ThrottlingException +// The request was denied because it exceeded the allowed API request rate. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/UpdateFuotaTask +func (c *IoTWireless) UpdateFuotaTask(input *UpdateFuotaTaskInput) (*UpdateFuotaTaskOutput, error) { + req, out := c.UpdateFuotaTaskRequest(input) + return out, req.Send() +} + +// UpdateFuotaTaskWithContext is the same as UpdateFuotaTask with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateFuotaTask for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *IoTWireless) UpdateFuotaTaskWithContext(ctx aws.Context, input *UpdateFuotaTaskInput, opts ...request.Option) (*UpdateFuotaTaskOutput, error) { + req, out := c.UpdateFuotaTaskRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateLogLevelsByResourceTypes = "UpdateLogLevelsByResourceTypes" + +// UpdateLogLevelsByResourceTypesRequest generates a "aws/request.Request" representing the +// client's request for the UpdateLogLevelsByResourceTypes operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdateLogLevelsByResourceTypes for more information on using the UpdateLogLevelsByResourceTypes +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the UpdateLogLevelsByResourceTypesRequest method. +// req, resp := client.UpdateLogLevelsByResourceTypesRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/UpdateLogLevelsByResourceTypes +func (c *IoTWireless) UpdateLogLevelsByResourceTypesRequest(input *UpdateLogLevelsByResourceTypesInput) (req *request.Request, output *UpdateLogLevelsByResourceTypesOutput) { + op := &request.Operation{ + Name: opUpdateLogLevelsByResourceTypes, + HTTPMethod: "POST", + HTTPPath: "/log-levels", + } + + if input == nil { + input = &UpdateLogLevelsByResourceTypesInput{} + } + + output = &UpdateLogLevelsByResourceTypesOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// UpdateLogLevelsByResourceTypes API operation for AWS IoT Wireless. +// +// Set default log level, or log levels by resource types. This can be for wireless +// device log options or wireless gateways log options and is used to control +// the log messages that'll be displayed in CloudWatch. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS IoT Wireless's +// API operation UpdateLogLevelsByResourceTypes for usage and error information. +// +// Returned Error Types: +// * AccessDeniedException +// User does not have permission to perform this action. +// +// * ConflictException +// Adding, updating, or deleting the resource can cause an inconsistent state. +// +// * InternalServerException +// An unexpected error occurred while processing a request. +// +// * ResourceNotFoundException +// Resource does not exist. +// +// * ThrottlingException +// The request was denied because it exceeded the allowed API request rate. +// +// * ValidationException +// The input did not meet the specified constraints. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/UpdateLogLevelsByResourceTypes +func (c *IoTWireless) UpdateLogLevelsByResourceTypes(input *UpdateLogLevelsByResourceTypesInput) (*UpdateLogLevelsByResourceTypesOutput, error) { + req, out := c.UpdateLogLevelsByResourceTypesRequest(input) + return out, req.Send() +} + +// UpdateLogLevelsByResourceTypesWithContext is the same as UpdateLogLevelsByResourceTypes with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateLogLevelsByResourceTypes for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *IoTWireless) UpdateLogLevelsByResourceTypesWithContext(ctx aws.Context, input *UpdateLogLevelsByResourceTypesInput, opts ...request.Option) (*UpdateLogLevelsByResourceTypesOutput, error) { + req, out := c.UpdateLogLevelsByResourceTypesRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateMulticastGroup = "UpdateMulticastGroup" + +// UpdateMulticastGroupRequest generates a "aws/request.Request" representing the +// client's request for the UpdateMulticastGroup operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdateMulticastGroup for more information on using the UpdateMulticastGroup +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the UpdateMulticastGroupRequest method. +// req, resp := client.UpdateMulticastGroupRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/UpdateMulticastGroup +func (c *IoTWireless) UpdateMulticastGroupRequest(input *UpdateMulticastGroupInput) (req *request.Request, output *UpdateMulticastGroupOutput) { + op := &request.Operation{ + Name: opUpdateMulticastGroup, + HTTPMethod: "PATCH", + HTTPPath: "/multicast-groups/{Id}", + } + + if input == nil { + input = &UpdateMulticastGroupInput{} + } + + output = &UpdateMulticastGroupOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// UpdateMulticastGroup API operation for AWS IoT Wireless. +// +// Updates properties of a multicast group session. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for AWS IoT Wireless's +// API operation UpdateMulticastGroup for usage and error information. +// +// Returned Error Types: +// * ValidationException +// The input did not meet the specified constraints. +// +// * ResourceNotFoundException +// Resource does not exist. +// +// * AccessDeniedException +// User does not have permission to perform this action. +// +// * ConflictException +// Adding, updating, or deleting the resource can cause an inconsistent state. +// +// * InternalServerException +// An unexpected error occurred while processing a request. +// +// * ThrottlingException +// The request was denied because it exceeded the allowed API request rate. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/UpdateMulticastGroup +func (c *IoTWireless) UpdateMulticastGroup(input *UpdateMulticastGroupInput) (*UpdateMulticastGroupOutput, error) { + req, out := c.UpdateMulticastGroupRequest(input) + return out, req.Send() +} + +// UpdateMulticastGroupWithContext is the same as UpdateMulticastGroup with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateMulticastGroup for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *IoTWireless) UpdateMulticastGroupWithContext(ctx aws.Context, input *UpdateMulticastGroupInput, opts ...request.Option) (*UpdateMulticastGroupOutput, error) { + req, out := c.UpdateMulticastGroupRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdatePartnerAccount = "UpdatePartnerAccount" + +// UpdatePartnerAccountRequest generates a "aws/request.Request" representing the +// client's request for the UpdatePartnerAccount operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdatePartnerAccount for more information on using the UpdatePartnerAccount +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the UpdatePartnerAccountRequest method. +// req, resp := client.UpdatePartnerAccountRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/UpdatePartnerAccount +func (c *IoTWireless) UpdatePartnerAccountRequest(input *UpdatePartnerAccountInput) (req *request.Request, output *UpdatePartnerAccountOutput) { + op := &request.Operation{ + Name: opUpdatePartnerAccount, + HTTPMethod: "PATCH", + HTTPPath: "/partner-accounts/{PartnerAccountId}", + } + + if input == nil { + input = &UpdatePartnerAccountInput{} + } + + output = &UpdatePartnerAccountOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// UpdatePartnerAccount API operation for AWS IoT Wireless. +// +// Updates properties of a partner 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 AWS IoT Wireless's +// API operation UpdatePartnerAccount for usage and error information. +// +// Returned Error Types: +// * ValidationException +// The input did not meet the specified constraints. +// +// * ResourceNotFoundException +// Resource does not exist. +// +// * InternalServerException +// An unexpected error occurred while processing a request. +// +// * ThrottlingException +// The request was denied because it exceeded the allowed API request rate. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/UpdatePartnerAccount +func (c *IoTWireless) UpdatePartnerAccount(input *UpdatePartnerAccountInput) (*UpdatePartnerAccountOutput, error) { + req, out := c.UpdatePartnerAccountRequest(input) + return out, req.Send() +} + +// UpdatePartnerAccountWithContext is the same as UpdatePartnerAccount with the addition of +// the ability to pass a context and additional request options. +// +// See UpdatePartnerAccount for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *IoTWireless) UpdatePartnerAccountWithContext(ctx aws.Context, input *UpdatePartnerAccountInput, opts ...request.Option) (*UpdatePartnerAccountOutput, error) { + req, out := c.UpdatePartnerAccountRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateResourceEventConfiguration = "UpdateResourceEventConfiguration" + +// UpdateResourceEventConfigurationRequest generates a "aws/request.Request" representing the +// client's request for the UpdateResourceEventConfiguration operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdateResourceEventConfiguration for more information on using the UpdateResourceEventConfiguration +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the UpdateResourceEventConfigurationRequest method. +// req, resp := client.UpdateResourceEventConfigurationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/UpdateResourceEventConfiguration +func (c *IoTWireless) UpdateResourceEventConfigurationRequest(input *UpdateResourceEventConfigurationInput) (req *request.Request, output *UpdateResourceEventConfigurationOutput) { + op := &request.Operation{ + Name: opUpdateResourceEventConfiguration, + HTTPMethod: "PATCH", + HTTPPath: "/event-configurations/{Identifier}", + } + + if input == nil { + input = &UpdateResourceEventConfigurationInput{} + } + + output = &UpdateResourceEventConfigurationOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// UpdateResourceEventConfiguration API operation for AWS IoT Wireless. +// +// Update the event configuration for a particular resource identifier. +// +// Returns awserr.Error for service API and SDK errors. Use runtime 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 IoT Wireless's +// API operation UpdateResourceEventConfiguration for usage and error information. +// +// Returned Error Types: +// * ValidationException +// The input did not meet the specified constraints. +// +// * AccessDeniedException +// User does not have permission to perform this action. +// +// * ConflictException +// Adding, updating, or deleting the resource can cause an inconsistent state. +// +// * ThrottlingException +// The request was denied because it exceeded the allowed API request rate. +// +// * ResourceNotFoundException +// Resource does not exist. +// +// * InternalServerException +// An unexpected error occurred while processing a request. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/UpdateResourceEventConfiguration +func (c *IoTWireless) UpdateResourceEventConfiguration(input *UpdateResourceEventConfigurationInput) (*UpdateResourceEventConfigurationOutput, error) { + req, out := c.UpdateResourceEventConfigurationRequest(input) + return out, req.Send() +} + +// UpdateResourceEventConfigurationWithContext is the same as UpdateResourceEventConfiguration with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateResourceEventConfiguration for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *IoTWireless) UpdateResourceEventConfigurationWithContext(ctx aws.Context, input *UpdateResourceEventConfigurationInput, opts ...request.Option) (*UpdateResourceEventConfigurationOutput, error) { + req, out := c.UpdateResourceEventConfigurationRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateWirelessDevice = "UpdateWirelessDevice" + +// UpdateWirelessDeviceRequest generates a "aws/request.Request" representing the +// client's request for the UpdateWirelessDevice operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdateWirelessDevice for more information on using the UpdateWirelessDevice +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the UpdateWirelessDeviceRequest method. +// req, resp := client.UpdateWirelessDeviceRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/UpdateWirelessDevice +func (c *IoTWireless) UpdateWirelessDeviceRequest(input *UpdateWirelessDeviceInput) (req *request.Request, output *UpdateWirelessDeviceOutput) { + op := &request.Operation{ + Name: opUpdateWirelessDevice, + HTTPMethod: "PATCH", + HTTPPath: "/wireless-devices/{Id}", + } + + if input == nil { + input = &UpdateWirelessDeviceInput{} + } + + output = &UpdateWirelessDeviceOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// UpdateWirelessDevice API operation for AWS IoT Wireless. +// +// Updates properties of a wireless device. +// +// Returns awserr.Error for service API and SDK errors. Use runtime 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 IoT Wireless's +// API operation UpdateWirelessDevice for usage and error information. +// +// Returned Error Types: +// * ValidationException +// The input did not meet the specified constraints. +// +// * ResourceNotFoundException +// Resource does not exist. +// +// * AccessDeniedException +// User does not have permission to perform this action. +// +// * InternalServerException +// An unexpected error occurred while processing a request. +// +// * ThrottlingException +// The request was denied because it exceeded the allowed API request rate. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/UpdateWirelessDevice +func (c *IoTWireless) UpdateWirelessDevice(input *UpdateWirelessDeviceInput) (*UpdateWirelessDeviceOutput, error) { + req, out := c.UpdateWirelessDeviceRequest(input) + return out, req.Send() +} + +// UpdateWirelessDeviceWithContext is the same as UpdateWirelessDevice with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateWirelessDevice for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *IoTWireless) UpdateWirelessDeviceWithContext(ctx aws.Context, input *UpdateWirelessDeviceInput, opts ...request.Option) (*UpdateWirelessDeviceOutput, error) { + req, out := c.UpdateWirelessDeviceRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateWirelessGateway = "UpdateWirelessGateway" + +// UpdateWirelessGatewayRequest generates a "aws/request.Request" representing the +// client's request for the UpdateWirelessGateway operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdateWirelessGateway for more information on using the UpdateWirelessGateway +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the UpdateWirelessGatewayRequest method. +// req, resp := client.UpdateWirelessGatewayRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/UpdateWirelessGateway +func (c *IoTWireless) UpdateWirelessGatewayRequest(input *UpdateWirelessGatewayInput) (req *request.Request, output *UpdateWirelessGatewayOutput) { + op := &request.Operation{ + Name: opUpdateWirelessGateway, + HTTPMethod: "PATCH", + HTTPPath: "/wireless-gateways/{Id}", + } + + if input == nil { + input = &UpdateWirelessGatewayInput{} + } + + output = &UpdateWirelessGatewayOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// UpdateWirelessGateway API operation for AWS IoT Wireless. +// +// Updates properties of a wireless 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 IoT Wireless's +// API operation UpdateWirelessGateway for usage and error information. +// +// Returned Error Types: +// * ValidationException +// The input did not meet the specified constraints. +// +// * ResourceNotFoundException +// Resource does not exist. +// +// * AccessDeniedException +// User does not have permission to perform this action. +// +// * InternalServerException +// An unexpected error occurred while processing a request. +// +// * ThrottlingException +// The request was denied because it exceeded the allowed API request rate. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/UpdateWirelessGateway +func (c *IoTWireless) UpdateWirelessGateway(input *UpdateWirelessGatewayInput) (*UpdateWirelessGatewayOutput, error) { + req, out := c.UpdateWirelessGatewayRequest(input) + return out, req.Send() +} + +// UpdateWirelessGatewayWithContext is the same as UpdateWirelessGateway with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateWirelessGateway for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *IoTWireless) UpdateWirelessGatewayWithContext(ctx aws.Context, input *UpdateWirelessGatewayInput, opts ...request.Option) (*UpdateWirelessGatewayOutput, error) { + req, out := c.UpdateWirelessGatewayRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// ABP device object for LoRaWAN specification v1.0.x +type AbpV10X struct { + _ struct{} `type:"structure"` + + // The DevAddr value. + DevAddr *string `type:"string"` + + // Session keys for ABP v1.0.x + SessionKeys *SessionKeysAbpV10X `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 AbpV10X) 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 AbpV10X) GoString() string { + return s.String() +} + +// SetDevAddr sets the DevAddr field's value. +func (s *AbpV10X) SetDevAddr(v string) *AbpV10X { + s.DevAddr = &v + return s +} + +// SetSessionKeys sets the SessionKeys field's value. +func (s *AbpV10X) SetSessionKeys(v *SessionKeysAbpV10X) *AbpV10X { + s.SessionKeys = v + return s +} + +// ABP device object for LoRaWAN specification v1.1 +type AbpV11 struct { + _ struct{} `type:"structure"` + + // The DevAddr value. + DevAddr *string `type:"string"` + + // Session keys for ABP v1.1 + SessionKeys *SessionKeysAbpV11 `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 AbpV11) 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 AbpV11) GoString() string { + return s.String() +} + +// SetDevAddr sets the DevAddr field's value. +func (s *AbpV11) SetDevAddr(v string) *AbpV11 { + s.DevAddr = &v + return s +} + +// SetSessionKeys sets the SessionKeys field's value. +func (s *AbpV11) SetSessionKeys(v *SessionKeysAbpV11) *AbpV11 { + s.SessionKeys = v + return s +} + +// User does not have permission to perform this action. +type AccessDeniedException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + Message_ *string `locationName:"Message" 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 AccessDeniedException) 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 AccessDeniedException) GoString() string { + return s.String() +} + +func newErrorAccessDeniedException(v protocol.ResponseMetadata) error { + return &AccessDeniedException{ + RespMetadata: v, + } +} + +// Code returns the exception type name. +func (s *AccessDeniedException) Code() string { + return "AccessDeniedException" +} + +// Message returns the exception's message. +func (s *AccessDeniedException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *AccessDeniedException) OrigErr() error { + return nil +} + +func (s *AccessDeniedException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s *AccessDeniedException) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *AccessDeniedException) RequestID() string { + return s.RespMetadata.RequestID +} + +type AssociateAwsAccountWithPartnerAccountInput struct { + _ struct{} `type:"structure"` + + // Each resource must have a unique client request token. If you try to create + // a new resource with the same token as a resource that already exists, an + // exception occurs. If you omit this value, AWS SDKs will automatically generate + // a unique client request. + ClientRequestToken *string `min:"1" type:"string" idempotencyToken:"true"` + + // The Sidewalk account credentials. + // + // Sidewalk is a required field + Sidewalk *SidewalkAccountInfo `type:"structure" required:"true"` + + // The tags to attach to the specified resource. Tags are metadata that you + // can use to manage a resource. + Tags []*Tag `type:"list"` +} + +// 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 AssociateAwsAccountWithPartnerAccountInput) 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 AssociateAwsAccountWithPartnerAccountInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AssociateAwsAccountWithPartnerAccountInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AssociateAwsAccountWithPartnerAccountInput"} + if s.ClientRequestToken != nil && len(*s.ClientRequestToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ClientRequestToken", 1)) + } + if s.Sidewalk == nil { + invalidParams.Add(request.NewErrParamRequired("Sidewalk")) + } + if s.Sidewalk != nil { + if err := s.Sidewalk.Validate(); err != nil { + invalidParams.AddNested("Sidewalk", err.(request.ErrInvalidParams)) + } + } + if s.Tags != nil { + for i, v := range s.Tags { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetClientRequestToken sets the ClientRequestToken field's value. +func (s *AssociateAwsAccountWithPartnerAccountInput) SetClientRequestToken(v string) *AssociateAwsAccountWithPartnerAccountInput { + s.ClientRequestToken = &v + return s +} + +// SetSidewalk sets the Sidewalk field's value. +func (s *AssociateAwsAccountWithPartnerAccountInput) SetSidewalk(v *SidewalkAccountInfo) *AssociateAwsAccountWithPartnerAccountInput { + s.Sidewalk = v + return s +} + +// SetTags sets the Tags field's value. +func (s *AssociateAwsAccountWithPartnerAccountInput) SetTags(v []*Tag) *AssociateAwsAccountWithPartnerAccountInput { + s.Tags = v + return s +} + +type AssociateAwsAccountWithPartnerAccountOutput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name of the resource. + Arn *string `type:"string"` + + // The Sidewalk account credentials. + Sidewalk *SidewalkAccountInfo `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 AssociateAwsAccountWithPartnerAccountOutput) 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 AssociateAwsAccountWithPartnerAccountOutput) GoString() string { + return s.String() +} + +// SetArn sets the Arn field's value. +func (s *AssociateAwsAccountWithPartnerAccountOutput) SetArn(v string) *AssociateAwsAccountWithPartnerAccountOutput { + s.Arn = &v + return s +} + +// SetSidewalk sets the Sidewalk field's value. +func (s *AssociateAwsAccountWithPartnerAccountOutput) SetSidewalk(v *SidewalkAccountInfo) *AssociateAwsAccountWithPartnerAccountOutput { + s.Sidewalk = v + return s +} + +type AssociateMulticastGroupWithFuotaTaskInput struct { + _ struct{} `type:"structure"` + + // The ID of a FUOTA task. + // + // Id is a required field + Id *string `location:"uri" locationName:"Id" type:"string" required:"true"` + + // The ID of the multicast group. + // + // MulticastGroupId is a required field + MulticastGroupId *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 AssociateMulticastGroupWithFuotaTaskInput) 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 AssociateMulticastGroupWithFuotaTaskInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AssociateMulticastGroupWithFuotaTaskInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AssociateMulticastGroupWithFuotaTaskInput"} + 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.MulticastGroupId == nil { + invalidParams.Add(request.NewErrParamRequired("MulticastGroupId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetId sets the Id field's value. +func (s *AssociateMulticastGroupWithFuotaTaskInput) SetId(v string) *AssociateMulticastGroupWithFuotaTaskInput { + s.Id = &v + return s +} + +// SetMulticastGroupId sets the MulticastGroupId field's value. +func (s *AssociateMulticastGroupWithFuotaTaskInput) SetMulticastGroupId(v string) *AssociateMulticastGroupWithFuotaTaskInput { + s.MulticastGroupId = &v + return s +} + +type AssociateMulticastGroupWithFuotaTaskOutput 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 AssociateMulticastGroupWithFuotaTaskOutput) 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 AssociateMulticastGroupWithFuotaTaskOutput) GoString() string { + return s.String() +} + +type AssociateWirelessDeviceWithFuotaTaskInput struct { + _ struct{} `type:"structure"` + + // The ID of a FUOTA task. + // + // Id is a required field + Id *string `location:"uri" locationName:"Id" type:"string" required:"true"` + + // The ID of the wireless device. + // + // WirelessDeviceId is a required field + WirelessDeviceId *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 AssociateWirelessDeviceWithFuotaTaskInput) 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 AssociateWirelessDeviceWithFuotaTaskInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AssociateWirelessDeviceWithFuotaTaskInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AssociateWirelessDeviceWithFuotaTaskInput"} + 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.WirelessDeviceId == nil { + invalidParams.Add(request.NewErrParamRequired("WirelessDeviceId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetId sets the Id field's value. +func (s *AssociateWirelessDeviceWithFuotaTaskInput) SetId(v string) *AssociateWirelessDeviceWithFuotaTaskInput { + s.Id = &v + return s +} + +// SetWirelessDeviceId sets the WirelessDeviceId field's value. +func (s *AssociateWirelessDeviceWithFuotaTaskInput) SetWirelessDeviceId(v string) *AssociateWirelessDeviceWithFuotaTaskInput { + s.WirelessDeviceId = &v + return s +} + +type AssociateWirelessDeviceWithFuotaTaskOutput 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 AssociateWirelessDeviceWithFuotaTaskOutput) 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 AssociateWirelessDeviceWithFuotaTaskOutput) GoString() string { + return s.String() +} + +type AssociateWirelessDeviceWithMulticastGroupInput struct { + _ struct{} `type:"structure"` + + // The ID of the multicast group. + // + // Id is a required field + Id *string `location:"uri" locationName:"Id" type:"string" required:"true"` + + // The ID of the wireless device. + // + // WirelessDeviceId is a required field + WirelessDeviceId *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 AssociateWirelessDeviceWithMulticastGroupInput) 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 AssociateWirelessDeviceWithMulticastGroupInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AssociateWirelessDeviceWithMulticastGroupInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AssociateWirelessDeviceWithMulticastGroupInput"} + 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.WirelessDeviceId == nil { + invalidParams.Add(request.NewErrParamRequired("WirelessDeviceId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetId sets the Id field's value. +func (s *AssociateWirelessDeviceWithMulticastGroupInput) SetId(v string) *AssociateWirelessDeviceWithMulticastGroupInput { + s.Id = &v + return s +} + +// SetWirelessDeviceId sets the WirelessDeviceId field's value. +func (s *AssociateWirelessDeviceWithMulticastGroupInput) SetWirelessDeviceId(v string) *AssociateWirelessDeviceWithMulticastGroupInput { + s.WirelessDeviceId = &v + return s +} + +type AssociateWirelessDeviceWithMulticastGroupOutput 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 AssociateWirelessDeviceWithMulticastGroupOutput) 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 AssociateWirelessDeviceWithMulticastGroupOutput) GoString() string { + return s.String() +} + +type AssociateWirelessDeviceWithThingInput struct { + _ struct{} `type:"structure"` + + // The ID of the resource to update. + // + // Id is a required field + Id *string `location:"uri" locationName:"Id" type:"string" required:"true"` + + // The ARN of the thing to associate with the wireless device. + // + // ThingArn is a required field + ThingArn *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 AssociateWirelessDeviceWithThingInput) 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 AssociateWirelessDeviceWithThingInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AssociateWirelessDeviceWithThingInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AssociateWirelessDeviceWithThingInput"} + 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.ThingArn == nil { + invalidParams.Add(request.NewErrParamRequired("ThingArn")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetId sets the Id field's value. +func (s *AssociateWirelessDeviceWithThingInput) SetId(v string) *AssociateWirelessDeviceWithThingInput { + s.Id = &v + return s +} + +// SetThingArn sets the ThingArn field's value. +func (s *AssociateWirelessDeviceWithThingInput) SetThingArn(v string) *AssociateWirelessDeviceWithThingInput { + s.ThingArn = &v + return s +} + +type AssociateWirelessDeviceWithThingOutput 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 AssociateWirelessDeviceWithThingOutput) 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 AssociateWirelessDeviceWithThingOutput) GoString() string { + return s.String() +} + +type AssociateWirelessGatewayWithCertificateInput struct { + _ struct{} `type:"structure"` + + // The ID of the resource to update. + // + // Id is a required field + Id *string `location:"uri" locationName:"Id" type:"string" required:"true"` + + // The ID of the certificate to associate with the wireless gateway. + // + // IotCertificateId is a required field + IotCertificateId *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 AssociateWirelessGatewayWithCertificateInput) 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 AssociateWirelessGatewayWithCertificateInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AssociateWirelessGatewayWithCertificateInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AssociateWirelessGatewayWithCertificateInput"} + 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.IotCertificateId == nil { + invalidParams.Add(request.NewErrParamRequired("IotCertificateId")) + } + if s.IotCertificateId != nil && len(*s.IotCertificateId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("IotCertificateId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetId sets the Id field's value. +func (s *AssociateWirelessGatewayWithCertificateInput) SetId(v string) *AssociateWirelessGatewayWithCertificateInput { + s.Id = &v + return s +} + +// SetIotCertificateId sets the IotCertificateId field's value. +func (s *AssociateWirelessGatewayWithCertificateInput) SetIotCertificateId(v string) *AssociateWirelessGatewayWithCertificateInput { + s.IotCertificateId = &v + return s +} + +type AssociateWirelessGatewayWithCertificateOutput struct { + _ struct{} `type:"structure"` + + // The ID of the certificate associated with the wireless gateway. + IotCertificateId *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 AssociateWirelessGatewayWithCertificateOutput) 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 AssociateWirelessGatewayWithCertificateOutput) GoString() string { + return s.String() +} + +// SetIotCertificateId sets the IotCertificateId field's value. +func (s *AssociateWirelessGatewayWithCertificateOutput) SetIotCertificateId(v string) *AssociateWirelessGatewayWithCertificateOutput { + s.IotCertificateId = &v + return s +} + +type AssociateWirelessGatewayWithThingInput struct { + _ struct{} `type:"structure"` + + // The ID of the resource to update. + // + // Id is a required field + Id *string `location:"uri" locationName:"Id" type:"string" required:"true"` + + // The ARN of the thing to associate with the wireless gateway. + // + // ThingArn is a required field + ThingArn *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 AssociateWirelessGatewayWithThingInput) 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 AssociateWirelessGatewayWithThingInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AssociateWirelessGatewayWithThingInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AssociateWirelessGatewayWithThingInput"} + 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.ThingArn == nil { + invalidParams.Add(request.NewErrParamRequired("ThingArn")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetId sets the Id field's value. +func (s *AssociateWirelessGatewayWithThingInput) SetId(v string) *AssociateWirelessGatewayWithThingInput { + s.Id = &v + return s +} + +// SetThingArn sets the ThingArn field's value. +func (s *AssociateWirelessGatewayWithThingInput) SetThingArn(v string) *AssociateWirelessGatewayWithThingInput { + s.ThingArn = &v + return s +} + +type AssociateWirelessGatewayWithThingOutput 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 AssociateWirelessGatewayWithThingOutput) 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 AssociateWirelessGatewayWithThingOutput) GoString() string { + return s.String() +} + +type CancelMulticastGroupSessionInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // The ID of the multicast group. + // + // Id is a required field + Id *string `location:"uri" locationName:"Id" 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 CancelMulticastGroupSessionInput) 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 CancelMulticastGroupSessionInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CancelMulticastGroupSessionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CancelMulticastGroupSessionInput"} + 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 *CancelMulticastGroupSessionInput) SetId(v string) *CancelMulticastGroupSessionInput { + s.Id = &v + return s +} + +type CancelMulticastGroupSessionOutput 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 CancelMulticastGroupSessionOutput) 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 CancelMulticastGroupSessionOutput) GoString() string { + return s.String() +} + +// List of sidewalk certificates. +type CertificateList struct { + _ struct{} `type:"structure"` + + // The certificate chain algorithm provided by sidewalk. + // + // SigningAlg is a required field + SigningAlg *string `type:"string" required:"true" enum:"SigningAlg"` + + // The value of the chosen sidewalk certificate. + // + // Value is a required field + Value *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 CertificateList) 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 CertificateList) GoString() string { + return s.String() +} + +// SetSigningAlg sets the SigningAlg field's value. +func (s *CertificateList) SetSigningAlg(v string) *CertificateList { + s.SigningAlg = &v + return s +} + +// SetValue sets the Value field's value. +func (s *CertificateList) SetValue(v string) *CertificateList { + s.Value = &v + return s +} + +// Adding, updating, or deleting the resource can cause an inconsistent state. +type ConflictException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + Message_ *string `locationName:"Message" type:"string"` + + // Id of the resource in the conflicting operation. + ResourceId *string `type:"string"` + + // Type of the resource in the conflicting operation. + ResourceType *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 +} + +type CreateDestinationInput struct { + _ struct{} `type:"structure"` + + // Each resource must have a unique client request token. If you try to create + // a new resource with the same token as a resource that already exists, an + // exception occurs. If you omit this value, AWS SDKs will automatically generate + // a unique client request. + ClientRequestToken *string `min:"1" type:"string" idempotencyToken:"true"` + + // The description of the new resource. + Description *string `type:"string"` + + // The rule name or topic rule to send messages to. + // + // Expression is a required field + Expression *string `type:"string" required:"true"` + + // The type of value in Expression. + // + // ExpressionType is a required field + ExpressionType *string `type:"string" required:"true" enum:"ExpressionType"` + + // The name of the new resource. + // + // Name is a required field + Name *string `type:"string" required:"true"` + + // The ARN of the IAM Role that authorizes the destination. + // + // RoleArn is a required field + RoleArn *string `min:"20" type:"string" required:"true"` + + // The tags to attach to the new destination. Tags are metadata that you can + // use to manage a resource. + Tags []*Tag `type:"list"` +} + +// 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 CreateDestinationInput) 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 CreateDestinationInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateDestinationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateDestinationInput"} + if s.ClientRequestToken != nil && len(*s.ClientRequestToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ClientRequestToken", 1)) + } + if s.Expression == nil { + invalidParams.Add(request.NewErrParamRequired("Expression")) + } + if s.ExpressionType == nil { + invalidParams.Add(request.NewErrParamRequired("ExpressionType")) + } + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + if s.RoleArn == nil { + invalidParams.Add(request.NewErrParamRequired("RoleArn")) + } + if s.RoleArn != nil && len(*s.RoleArn) < 20 { + invalidParams.Add(request.NewErrParamMinLen("RoleArn", 20)) + } + if s.Tags != nil { + for i, v := range s.Tags { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetClientRequestToken sets the ClientRequestToken field's value. +func (s *CreateDestinationInput) SetClientRequestToken(v string) *CreateDestinationInput { + s.ClientRequestToken = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *CreateDestinationInput) SetDescription(v string) *CreateDestinationInput { + s.Description = &v + return s +} + +// SetExpression sets the Expression field's value. +func (s *CreateDestinationInput) SetExpression(v string) *CreateDestinationInput { + s.Expression = &v + return s +} + +// SetExpressionType sets the ExpressionType field's value. +func (s *CreateDestinationInput) SetExpressionType(v string) *CreateDestinationInput { + s.ExpressionType = &v + return s +} + +// SetName sets the Name field's value. +func (s *CreateDestinationInput) SetName(v string) *CreateDestinationInput { + s.Name = &v + return s +} + +// SetRoleArn sets the RoleArn field's value. +func (s *CreateDestinationInput) SetRoleArn(v string) *CreateDestinationInput { + s.RoleArn = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateDestinationInput) SetTags(v []*Tag) *CreateDestinationInput { + s.Tags = v + return s +} + +type CreateDestinationOutput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name of the new resource. + Arn *string `type:"string"` + + // The name of the new resource. + Name *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 CreateDestinationOutput) 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 CreateDestinationOutput) GoString() string { + return s.String() +} + +// SetArn sets the Arn field's value. +func (s *CreateDestinationOutput) SetArn(v string) *CreateDestinationOutput { + s.Arn = &v + return s +} + +// SetName sets the Name field's value. +func (s *CreateDestinationOutput) SetName(v string) *CreateDestinationOutput { + s.Name = &v + return s +} + +type CreateDeviceProfileInput struct { + _ struct{} `type:"structure"` + + // Each resource must have a unique client request token. If you try to create + // a new resource with the same token as a resource that already exists, an + // exception occurs. If you omit this value, AWS SDKs will automatically generate + // a unique client request. + ClientRequestToken *string `min:"1" type:"string" idempotencyToken:"true"` + + // The device profile information to use to create the device profile. + LoRaWAN *LoRaWANDeviceProfile `type:"structure"` + + // The name of the new resource. + Name *string `type:"string"` + + // The tags to attach to the new device profile. Tags are metadata that you + // can use to manage a resource. + Tags []*Tag `type:"list"` +} + +// 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 CreateDeviceProfileInput) 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 CreateDeviceProfileInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateDeviceProfileInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateDeviceProfileInput"} + if s.ClientRequestToken != nil && len(*s.ClientRequestToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ClientRequestToken", 1)) + } + if s.LoRaWAN != nil { + if err := s.LoRaWAN.Validate(); err != nil { + invalidParams.AddNested("LoRaWAN", err.(request.ErrInvalidParams)) + } + } + if s.Tags != nil { + for i, v := range s.Tags { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetClientRequestToken sets the ClientRequestToken field's value. +func (s *CreateDeviceProfileInput) SetClientRequestToken(v string) *CreateDeviceProfileInput { + s.ClientRequestToken = &v + return s +} + +// SetLoRaWAN sets the LoRaWAN field's value. +func (s *CreateDeviceProfileInput) SetLoRaWAN(v *LoRaWANDeviceProfile) *CreateDeviceProfileInput { + s.LoRaWAN = v + return s +} + +// SetName sets the Name field's value. +func (s *CreateDeviceProfileInput) SetName(v string) *CreateDeviceProfileInput { + s.Name = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateDeviceProfileInput) SetTags(v []*Tag) *CreateDeviceProfileInput { + s.Tags = v + return s +} + +type CreateDeviceProfileOutput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name of the new resource. + Arn *string `type:"string"` + + // The ID of the new device profile. + Id *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 CreateDeviceProfileOutput) 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 CreateDeviceProfileOutput) GoString() string { + return s.String() +} + +// SetArn sets the Arn field's value. +func (s *CreateDeviceProfileOutput) SetArn(v string) *CreateDeviceProfileOutput { + s.Arn = &v + return s +} + +// SetId sets the Id field's value. +func (s *CreateDeviceProfileOutput) SetId(v string) *CreateDeviceProfileOutput { + s.Id = &v + return s +} + +type CreateFuotaTaskInput struct { + _ struct{} `type:"structure"` + + // Each resource must have a unique client request token. If you try to create + // a new resource with the same token as a resource that already exists, an + // exception occurs. If you omit this value, AWS SDKs will automatically generate + // a unique client request. + ClientRequestToken *string `min:"1" type:"string" idempotencyToken:"true"` + + // The description of the new resource. + Description *string `type:"string"` + + // The S3 URI points to a firmware update image that is to be used with a FUOTA + // task. + // + // FirmwareUpdateImage is a required field + FirmwareUpdateImage *string `min:"1" type:"string" required:"true"` + + // The firmware update role that is to be used with a FUOTA task. + // + // FirmwareUpdateRole is a required field + FirmwareUpdateRole *string `min:"1" type:"string" required:"true"` + + // The LoRaWAN information used with a FUOTA task. + LoRaWAN *LoRaWANFuotaTask `type:"structure"` + + // The name of a FUOTA task. + Name *string `type:"string"` + + // The tag to attach to the specified resource. Tags are metadata that you can + // use to manage a resource. + Tags []*Tag `type:"list"` +} + +// 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 CreateFuotaTaskInput) 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 CreateFuotaTaskInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateFuotaTaskInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateFuotaTaskInput"} + if s.ClientRequestToken != nil && len(*s.ClientRequestToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ClientRequestToken", 1)) + } + if s.FirmwareUpdateImage == nil { + invalidParams.Add(request.NewErrParamRequired("FirmwareUpdateImage")) + } + if s.FirmwareUpdateImage != nil && len(*s.FirmwareUpdateImage) < 1 { + invalidParams.Add(request.NewErrParamMinLen("FirmwareUpdateImage", 1)) + } + if s.FirmwareUpdateRole == nil { + invalidParams.Add(request.NewErrParamRequired("FirmwareUpdateRole")) + } + if s.FirmwareUpdateRole != nil && len(*s.FirmwareUpdateRole) < 1 { + invalidParams.Add(request.NewErrParamMinLen("FirmwareUpdateRole", 1)) + } + if s.Tags != nil { + for i, v := range s.Tags { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetClientRequestToken sets the ClientRequestToken field's value. +func (s *CreateFuotaTaskInput) SetClientRequestToken(v string) *CreateFuotaTaskInput { + s.ClientRequestToken = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *CreateFuotaTaskInput) SetDescription(v string) *CreateFuotaTaskInput { + s.Description = &v + return s +} + +// SetFirmwareUpdateImage sets the FirmwareUpdateImage field's value. +func (s *CreateFuotaTaskInput) SetFirmwareUpdateImage(v string) *CreateFuotaTaskInput { + s.FirmwareUpdateImage = &v + return s +} + +// SetFirmwareUpdateRole sets the FirmwareUpdateRole field's value. +func (s *CreateFuotaTaskInput) SetFirmwareUpdateRole(v string) *CreateFuotaTaskInput { + s.FirmwareUpdateRole = &v + return s +} + +// SetLoRaWAN sets the LoRaWAN field's value. +func (s *CreateFuotaTaskInput) SetLoRaWAN(v *LoRaWANFuotaTask) *CreateFuotaTaskInput { + s.LoRaWAN = v + return s +} + +// SetName sets the Name field's value. +func (s *CreateFuotaTaskInput) SetName(v string) *CreateFuotaTaskInput { + s.Name = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateFuotaTaskInput) SetTags(v []*Tag) *CreateFuotaTaskInput { + s.Tags = v + return s +} + +type CreateFuotaTaskOutput struct { + _ struct{} `type:"structure"` + + // The arn of a FUOTA task. + Arn *string `type:"string"` + + // The ID of a FUOTA task. + Id *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 CreateFuotaTaskOutput) 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 CreateFuotaTaskOutput) GoString() string { + return s.String() +} + +// SetArn sets the Arn field's value. +func (s *CreateFuotaTaskOutput) SetArn(v string) *CreateFuotaTaskOutput { + s.Arn = &v + return s +} + +// SetId sets the Id field's value. +func (s *CreateFuotaTaskOutput) SetId(v string) *CreateFuotaTaskOutput { + s.Id = &v + return s +} + +type CreateMulticastGroupInput struct { + _ struct{} `type:"structure"` + + // Each resource must have a unique client request token. If you try to create + // a new resource with the same token as a resource that already exists, an + // exception occurs. If you omit this value, AWS SDKs will automatically generate + // a unique client request. + ClientRequestToken *string `min:"1" type:"string" idempotencyToken:"true"` + + // The description of the multicast group. + Description *string `type:"string"` + + // The LoRaWAN information that is to be used with the multicast group. + // + // LoRaWAN is a required field + LoRaWAN *LoRaWANMulticast `type:"structure" required:"true"` + + // The name of the multicast group. + Name *string `type:"string"` + + // The tag to attach to the specified resource. Tags are metadata that you can + // use to manage a resource. + Tags []*Tag `type:"list"` +} + +// 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 CreateMulticastGroupInput) 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 CreateMulticastGroupInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateMulticastGroupInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateMulticastGroupInput"} + if s.ClientRequestToken != nil && len(*s.ClientRequestToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ClientRequestToken", 1)) + } + if s.LoRaWAN == nil { + invalidParams.Add(request.NewErrParamRequired("LoRaWAN")) + } + if s.Tags != nil { + for i, v := range s.Tags { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetClientRequestToken sets the ClientRequestToken field's value. +func (s *CreateMulticastGroupInput) SetClientRequestToken(v string) *CreateMulticastGroupInput { + s.ClientRequestToken = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *CreateMulticastGroupInput) SetDescription(v string) *CreateMulticastGroupInput { + s.Description = &v + return s +} + +// SetLoRaWAN sets the LoRaWAN field's value. +func (s *CreateMulticastGroupInput) SetLoRaWAN(v *LoRaWANMulticast) *CreateMulticastGroupInput { + s.LoRaWAN = v + return s +} + +// SetName sets the Name field's value. +func (s *CreateMulticastGroupInput) SetName(v string) *CreateMulticastGroupInput { + s.Name = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateMulticastGroupInput) SetTags(v []*Tag) *CreateMulticastGroupInput { + s.Tags = v + return s +} + +type CreateMulticastGroupOutput struct { + _ struct{} `type:"structure"` + + // The arn of the multicast group. + Arn *string `type:"string"` + + // The ID of the multicast group. + Id *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 CreateMulticastGroupOutput) 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 CreateMulticastGroupOutput) GoString() string { + return s.String() +} + +// SetArn sets the Arn field's value. +func (s *CreateMulticastGroupOutput) SetArn(v string) *CreateMulticastGroupOutput { + s.Arn = &v + return s +} + +// SetId sets the Id field's value. +func (s *CreateMulticastGroupOutput) SetId(v string) *CreateMulticastGroupOutput { + s.Id = &v + return s +} + +type CreateServiceProfileInput struct { + _ struct{} `type:"structure"` + + // Each resource must have a unique client request token. If you try to create + // a new resource with the same token as a resource that already exists, an + // exception occurs. If you omit this value, AWS SDKs will automatically generate + // a unique client request. + ClientRequestToken *string `min:"1" type:"string" idempotencyToken:"true"` + + // The service profile information to use to create the service profile. + LoRaWAN *LoRaWANServiceProfile `type:"structure"` + + // The name of the new resource. + Name *string `type:"string"` + + // The tags to attach to the new service profile. Tags are metadata that you + // can use to manage a resource. + Tags []*Tag `type:"list"` +} + +// 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 CreateServiceProfileInput) 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 CreateServiceProfileInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateServiceProfileInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateServiceProfileInput"} + if s.ClientRequestToken != nil && len(*s.ClientRequestToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ClientRequestToken", 1)) + } + if s.Tags != nil { + for i, v := range s.Tags { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetClientRequestToken sets the ClientRequestToken field's value. +func (s *CreateServiceProfileInput) SetClientRequestToken(v string) *CreateServiceProfileInput { + s.ClientRequestToken = &v + return s +} + +// SetLoRaWAN sets the LoRaWAN field's value. +func (s *CreateServiceProfileInput) SetLoRaWAN(v *LoRaWANServiceProfile) *CreateServiceProfileInput { + s.LoRaWAN = v + return s +} + +// SetName sets the Name field's value. +func (s *CreateServiceProfileInput) SetName(v string) *CreateServiceProfileInput { + s.Name = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateServiceProfileInput) SetTags(v []*Tag) *CreateServiceProfileInput { + s.Tags = v + return s +} + +type CreateServiceProfileOutput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name of the new resource. + Arn *string `type:"string"` + + // The ID of the new service profile. + Id *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 CreateServiceProfileOutput) 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 CreateServiceProfileOutput) GoString() string { + return s.String() +} + +// SetArn sets the Arn field's value. +func (s *CreateServiceProfileOutput) SetArn(v string) *CreateServiceProfileOutput { + s.Arn = &v + return s +} + +// SetId sets the Id field's value. +func (s *CreateServiceProfileOutput) SetId(v string) *CreateServiceProfileOutput { + s.Id = &v + return s +} + +type CreateWirelessDeviceInput struct { + _ struct{} `type:"structure"` + + // Each resource must have a unique client request token. If you try to create + // a new resource with the same token as a resource that already exists, an + // exception occurs. If you omit this value, AWS SDKs will automatically generate + // a unique client request. + ClientRequestToken *string `min:"1" type:"string" idempotencyToken:"true"` + + // The description of the new resource. + Description *string `type:"string"` + + // The name of the destination to assign to the new wireless device. + // + // DestinationName is a required field + DestinationName *string `type:"string" required:"true"` + + // The device configuration information to use to create the wireless device. + LoRaWAN *LoRaWANDevice `type:"structure"` + + // The name of the new resource. + Name *string `type:"string"` + + // The tags to attach to the new wireless device. Tags are metadata that you + // can use to manage a resource. + Tags []*Tag `type:"list"` + + // The wireless device type. + // + // Type is a required field + Type *string `type:"string" required:"true" enum:"WirelessDeviceType"` +} + +// 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 CreateWirelessDeviceInput) 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 CreateWirelessDeviceInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateWirelessDeviceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateWirelessDeviceInput"} + if s.ClientRequestToken != nil && len(*s.ClientRequestToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ClientRequestToken", 1)) + } + if s.DestinationName == nil { + invalidParams.Add(request.NewErrParamRequired("DestinationName")) + } + if s.Type == nil { + invalidParams.Add(request.NewErrParamRequired("Type")) + } + if s.LoRaWAN != nil { + if err := s.LoRaWAN.Validate(); err != nil { + invalidParams.AddNested("LoRaWAN", err.(request.ErrInvalidParams)) + } + } + if s.Tags != nil { + for i, v := range s.Tags { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetClientRequestToken sets the ClientRequestToken field's value. +func (s *CreateWirelessDeviceInput) SetClientRequestToken(v string) *CreateWirelessDeviceInput { + s.ClientRequestToken = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *CreateWirelessDeviceInput) SetDescription(v string) *CreateWirelessDeviceInput { + s.Description = &v + return s +} + +// SetDestinationName sets the DestinationName field's value. +func (s *CreateWirelessDeviceInput) SetDestinationName(v string) *CreateWirelessDeviceInput { + s.DestinationName = &v + return s +} + +// SetLoRaWAN sets the LoRaWAN field's value. +func (s *CreateWirelessDeviceInput) SetLoRaWAN(v *LoRaWANDevice) *CreateWirelessDeviceInput { + s.LoRaWAN = v + return s +} + +// SetName sets the Name field's value. +func (s *CreateWirelessDeviceInput) SetName(v string) *CreateWirelessDeviceInput { + s.Name = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateWirelessDeviceInput) SetTags(v []*Tag) *CreateWirelessDeviceInput { + s.Tags = v + return s +} + +// SetType sets the Type field's value. +func (s *CreateWirelessDeviceInput) SetType(v string) *CreateWirelessDeviceInput { + s.Type = &v + return s +} + +type CreateWirelessDeviceOutput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name of the new resource. + Arn *string `type:"string"` + + // The ID of the new wireless device. + Id *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 CreateWirelessDeviceOutput) 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 CreateWirelessDeviceOutput) GoString() string { + return s.String() +} + +// SetArn sets the Arn field's value. +func (s *CreateWirelessDeviceOutput) SetArn(v string) *CreateWirelessDeviceOutput { + s.Arn = &v + return s +} + +// SetId sets the Id field's value. +func (s *CreateWirelessDeviceOutput) SetId(v string) *CreateWirelessDeviceOutput { + s.Id = &v + return s +} + +type CreateWirelessGatewayInput struct { + _ struct{} `type:"structure"` + + // Each resource must have a unique client request token. If you try to create + // a new resource with the same token as a resource that already exists, an + // exception occurs. If you omit this value, AWS SDKs will automatically generate + // a unique client request. + ClientRequestToken *string `min:"1" type:"string" idempotencyToken:"true"` + + // The description of the new resource. + Description *string `type:"string"` + + // The gateway configuration information to use to create the wireless gateway. + // + // LoRaWAN is a required field + LoRaWAN *LoRaWANGateway `type:"structure" required:"true"` + + // The name of the new resource. + Name *string `type:"string"` + + // The tags to attach to the new wireless gateway. Tags are metadata that you + // can use to manage a resource. + Tags []*Tag `type:"list"` +} + +// 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 CreateWirelessGatewayInput) 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 CreateWirelessGatewayInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateWirelessGatewayInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateWirelessGatewayInput"} + if s.ClientRequestToken != nil && len(*s.ClientRequestToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ClientRequestToken", 1)) + } + if s.LoRaWAN == nil { + invalidParams.Add(request.NewErrParamRequired("LoRaWAN")) + } + if s.Tags != nil { + for i, v := range s.Tags { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetClientRequestToken sets the ClientRequestToken field's value. +func (s *CreateWirelessGatewayInput) SetClientRequestToken(v string) *CreateWirelessGatewayInput { + s.ClientRequestToken = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *CreateWirelessGatewayInput) SetDescription(v string) *CreateWirelessGatewayInput { + s.Description = &v + return s +} + +// SetLoRaWAN sets the LoRaWAN field's value. +func (s *CreateWirelessGatewayInput) SetLoRaWAN(v *LoRaWANGateway) *CreateWirelessGatewayInput { + s.LoRaWAN = v + return s +} + +// SetName sets the Name field's value. +func (s *CreateWirelessGatewayInput) SetName(v string) *CreateWirelessGatewayInput { + s.Name = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateWirelessGatewayInput) SetTags(v []*Tag) *CreateWirelessGatewayInput { + s.Tags = v + return s +} + +type CreateWirelessGatewayOutput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name of the new resource. + Arn *string `type:"string"` + + // The ID of the new wireless gateway. + Id *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 CreateWirelessGatewayOutput) 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 CreateWirelessGatewayOutput) GoString() string { + return s.String() +} + +// SetArn sets the Arn field's value. +func (s *CreateWirelessGatewayOutput) SetArn(v string) *CreateWirelessGatewayOutput { + s.Arn = &v + return s +} + +// SetId sets the Id field's value. +func (s *CreateWirelessGatewayOutput) SetId(v string) *CreateWirelessGatewayOutput { + s.Id = &v + return s +} + +type CreateWirelessGatewayTaskDefinitionInput struct { + _ struct{} `type:"structure"` + + // Whether to automatically create tasks using this task definition for all + // gateways with the specified current version. If false, the task must me created + // by calling CreateWirelessGatewayTask. + // + // AutoCreateTasks is a required field + AutoCreateTasks *bool `type:"boolean" required:"true"` + + // Each resource must have a unique client request token. If you try to create + // a new resource with the same token as a resource that already exists, an + // exception occurs. If you omit this value, AWS SDKs will automatically generate + // a unique client request. + ClientRequestToken *string `min:"1" type:"string" idempotencyToken:"true"` + + // The name of the new resource. + Name *string `min:"1" type:"string"` + + // The tags to attach to the specified resource. Tags are metadata that you + // can use to manage a resource. + Tags []*Tag `type:"list"` + + // Information about the gateways to update. + Update *UpdateWirelessGatewayTaskCreate `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 CreateWirelessGatewayTaskDefinitionInput) 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 CreateWirelessGatewayTaskDefinitionInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateWirelessGatewayTaskDefinitionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateWirelessGatewayTaskDefinitionInput"} + if s.AutoCreateTasks == nil { + invalidParams.Add(request.NewErrParamRequired("AutoCreateTasks")) + } + if s.ClientRequestToken != nil && len(*s.ClientRequestToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ClientRequestToken", 1)) + } + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + } + if s.Tags != nil { + for i, v := range s.Tags { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) + } + } + } + if s.Update != nil { + if err := s.Update.Validate(); err != nil { + invalidParams.AddNested("Update", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAutoCreateTasks sets the AutoCreateTasks field's value. +func (s *CreateWirelessGatewayTaskDefinitionInput) SetAutoCreateTasks(v bool) *CreateWirelessGatewayTaskDefinitionInput { + s.AutoCreateTasks = &v + return s +} + +// SetClientRequestToken sets the ClientRequestToken field's value. +func (s *CreateWirelessGatewayTaskDefinitionInput) SetClientRequestToken(v string) *CreateWirelessGatewayTaskDefinitionInput { + s.ClientRequestToken = &v + return s +} + +// SetName sets the Name field's value. +func (s *CreateWirelessGatewayTaskDefinitionInput) SetName(v string) *CreateWirelessGatewayTaskDefinitionInput { + s.Name = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateWirelessGatewayTaskDefinitionInput) SetTags(v []*Tag) *CreateWirelessGatewayTaskDefinitionInput { + s.Tags = v + return s +} + +// SetUpdate sets the Update field's value. +func (s *CreateWirelessGatewayTaskDefinitionInput) SetUpdate(v *UpdateWirelessGatewayTaskCreate) *CreateWirelessGatewayTaskDefinitionInput { + s.Update = v + return s +} + +type CreateWirelessGatewayTaskDefinitionOutput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name of the resource. + Arn *string `type:"string"` + + // The ID of the new wireless gateway task definition. + Id *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 CreateWirelessGatewayTaskDefinitionOutput) 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 CreateWirelessGatewayTaskDefinitionOutput) GoString() string { + return s.String() +} + +// SetArn sets the Arn field's value. +func (s *CreateWirelessGatewayTaskDefinitionOutput) SetArn(v string) *CreateWirelessGatewayTaskDefinitionOutput { + s.Arn = &v + return s +} + +// SetId sets the Id field's value. +func (s *CreateWirelessGatewayTaskDefinitionOutput) SetId(v string) *CreateWirelessGatewayTaskDefinitionOutput { + s.Id = &v + return s +} + +type CreateWirelessGatewayTaskInput struct { + _ struct{} `type:"structure"` + + // The ID of the resource to update. + // + // Id is a required field + Id *string `location:"uri" locationName:"Id" type:"string" required:"true"` + + // The ID of the WirelessGatewayTaskDefinition. + // + // WirelessGatewayTaskDefinitionId is a required field + WirelessGatewayTaskDefinitionId *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 CreateWirelessGatewayTaskInput) 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 CreateWirelessGatewayTaskInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateWirelessGatewayTaskInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateWirelessGatewayTaskInput"} + 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.WirelessGatewayTaskDefinitionId == nil { + invalidParams.Add(request.NewErrParamRequired("WirelessGatewayTaskDefinitionId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetId sets the Id field's value. +func (s *CreateWirelessGatewayTaskInput) SetId(v string) *CreateWirelessGatewayTaskInput { + s.Id = &v + return s +} + +// SetWirelessGatewayTaskDefinitionId sets the WirelessGatewayTaskDefinitionId field's value. +func (s *CreateWirelessGatewayTaskInput) SetWirelessGatewayTaskDefinitionId(v string) *CreateWirelessGatewayTaskInput { + s.WirelessGatewayTaskDefinitionId = &v + return s +} + +type CreateWirelessGatewayTaskOutput struct { + _ struct{} `type:"structure"` + + // The status of the request. + Status *string `type:"string" enum:"WirelessGatewayTaskStatus"` + + // The ID of the WirelessGatewayTaskDefinition. + WirelessGatewayTaskDefinitionId *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 CreateWirelessGatewayTaskOutput) 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 CreateWirelessGatewayTaskOutput) GoString() string { + return s.String() +} + +// SetStatus sets the Status field's value. +func (s *CreateWirelessGatewayTaskOutput) SetStatus(v string) *CreateWirelessGatewayTaskOutput { + s.Status = &v + return s +} + +// SetWirelessGatewayTaskDefinitionId sets the WirelessGatewayTaskDefinitionId field's value. +func (s *CreateWirelessGatewayTaskOutput) SetWirelessGatewayTaskDefinitionId(v string) *CreateWirelessGatewayTaskOutput { + s.WirelessGatewayTaskDefinitionId = &v + return s +} + +type DeleteDestinationInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // The name of the resource to delete. + // + // Name is a required field + Name *string `location:"uri" locationName:"Name" 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 DeleteDestinationInput) 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 DeleteDestinationInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteDestinationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteDestinationInput"} + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetName sets the Name field's value. +func (s *DeleteDestinationInput) SetName(v string) *DeleteDestinationInput { + s.Name = &v + return s +} + +type DeleteDestinationOutput 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 DeleteDestinationOutput) 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 DeleteDestinationOutput) GoString() string { + return s.String() +} + +type DeleteDeviceProfileInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // The ID of the resource to delete. + // + // Id is a required field + Id *string `location:"uri" locationName:"Id" 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 DeleteDeviceProfileInput) 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 DeleteDeviceProfileInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteDeviceProfileInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteDeviceProfileInput"} + 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 *DeleteDeviceProfileInput) SetId(v string) *DeleteDeviceProfileInput { + s.Id = &v + return s +} + +type DeleteDeviceProfileOutput 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 DeleteDeviceProfileOutput) 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 DeleteDeviceProfileOutput) GoString() string { + return s.String() +} + +type DeleteFuotaTaskInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // The ID of a FUOTA task. + // + // Id is a required field + Id *string `location:"uri" locationName:"Id" 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 DeleteFuotaTaskInput) 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 DeleteFuotaTaskInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteFuotaTaskInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteFuotaTaskInput"} + 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 *DeleteFuotaTaskInput) SetId(v string) *DeleteFuotaTaskInput { + s.Id = &v + return s +} + +type DeleteFuotaTaskOutput 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 DeleteFuotaTaskOutput) 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 DeleteFuotaTaskOutput) GoString() string { + return s.String() +} + +type DeleteMulticastGroupInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // The ID of the multicast group. + // + // Id is a required field + Id *string `location:"uri" locationName:"Id" 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 DeleteMulticastGroupInput) 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 DeleteMulticastGroupInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteMulticastGroupInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteMulticastGroupInput"} + 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 *DeleteMulticastGroupInput) SetId(v string) *DeleteMulticastGroupInput { + s.Id = &v + return s +} + +type DeleteMulticastGroupOutput 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 DeleteMulticastGroupOutput) 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 DeleteMulticastGroupOutput) GoString() string { + return s.String() +} + +type DeleteServiceProfileInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // The ID of the resource to delete. + // + // Id is a required field + Id *string `location:"uri" locationName:"Id" 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 DeleteServiceProfileInput) 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 DeleteServiceProfileInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteServiceProfileInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteServiceProfileInput"} + 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 *DeleteServiceProfileInput) SetId(v string) *DeleteServiceProfileInput { + s.Id = &v + return s +} + +type DeleteServiceProfileOutput 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 DeleteServiceProfileOutput) 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 DeleteServiceProfileOutput) GoString() string { + return s.String() +} + +type DeleteWirelessDeviceInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // The ID of the resource to delete. + // + // Id is a required field + Id *string `location:"uri" locationName:"Id" 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 DeleteWirelessDeviceInput) 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 DeleteWirelessDeviceInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteWirelessDeviceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteWirelessDeviceInput"} + 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 *DeleteWirelessDeviceInput) SetId(v string) *DeleteWirelessDeviceInput { + s.Id = &v + return s +} + +type DeleteWirelessDeviceOutput 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 DeleteWirelessDeviceOutput) 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 DeleteWirelessDeviceOutput) GoString() string { + return s.String() +} + +type DeleteWirelessGatewayInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // The ID of the resource to delete. + // + // Id is a required field + Id *string `location:"uri" locationName:"Id" 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 DeleteWirelessGatewayInput) 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 DeleteWirelessGatewayInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteWirelessGatewayInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteWirelessGatewayInput"} + 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 *DeleteWirelessGatewayInput) SetId(v string) *DeleteWirelessGatewayInput { + s.Id = &v + return s +} + +type DeleteWirelessGatewayOutput 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 DeleteWirelessGatewayOutput) 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 DeleteWirelessGatewayOutput) GoString() string { + return s.String() +} + +type DeleteWirelessGatewayTaskDefinitionInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // The ID of the resource to delete. + // + // Id is a required field + Id *string `location:"uri" locationName:"Id" 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 DeleteWirelessGatewayTaskDefinitionInput) 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 DeleteWirelessGatewayTaskDefinitionInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteWirelessGatewayTaskDefinitionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteWirelessGatewayTaskDefinitionInput"} + 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 *DeleteWirelessGatewayTaskDefinitionInput) SetId(v string) *DeleteWirelessGatewayTaskDefinitionInput { + s.Id = &v + return s +} + +type DeleteWirelessGatewayTaskDefinitionOutput 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 DeleteWirelessGatewayTaskDefinitionOutput) 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 DeleteWirelessGatewayTaskDefinitionOutput) GoString() string { + return s.String() +} + +type DeleteWirelessGatewayTaskInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // The ID of the resource to delete. + // + // Id is a required field + Id *string `location:"uri" locationName:"Id" 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 DeleteWirelessGatewayTaskInput) 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 DeleteWirelessGatewayTaskInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteWirelessGatewayTaskInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteWirelessGatewayTaskInput"} + 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 *DeleteWirelessGatewayTaskInput) SetId(v string) *DeleteWirelessGatewayTaskInput { + s.Id = &v + return s +} - // Session keys for ABP v1.0.x - SessionKeys *SessionKeysAbpV10X `type:"structure"` +type DeleteWirelessGatewayTaskOutput struct { + _ struct{} `type:"structure"` } // String returns the string representation. @@ -5549,7 +11030,7 @@ type AbpV10X 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 AbpV10X) String() string { +func (s DeleteWirelessGatewayTaskOutput) String() string { return awsutil.Prettify(s) } @@ -5558,31 +11039,31 @@ func (s AbpV10X) 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 AbpV10X) GoString() string { +func (s DeleteWirelessGatewayTaskOutput) GoString() string { return s.String() } -// SetDevAddr sets the DevAddr field's value. -func (s *AbpV10X) SetDevAddr(v string) *AbpV10X { - s.DevAddr = &v - return s -} +// Describes a destination. +type Destinations struct { + _ struct{} `type:"structure"` -// SetSessionKeys sets the SessionKeys field's value. -func (s *AbpV10X) SetSessionKeys(v *SessionKeysAbpV10X) *AbpV10X { - s.SessionKeys = v - return s -} + // The Amazon Resource Name of the resource. + Arn *string `type:"string"` -// ABP device object for LoRaWAN specification v1.1 -type AbpV11 struct { - _ struct{} `type:"structure"` + // The description of the resource. + Description *string `type:"string"` - // The DevAddr value. - DevAddr *string `type:"string"` + // The rule name or topic rule to send messages to. + Expression *string `type:"string"` - // Session keys for ABP v1.1 - SessionKeys *SessionKeysAbpV11 `type:"structure"` + // The type of value in Expression. + ExpressionType *string `type:"string" enum:"ExpressionType"` + + // The name of the resource. + Name *string `type:"string"` + + // The ARN of the IAM Role that authorizes the destination. + RoleArn *string `min:"20" type:"string"` } // String returns the string representation. @@ -5590,7 +11071,7 @@ type AbpV11 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 AbpV11) String() string { +func (s Destinations) String() string { return awsutil.Prettify(s) } @@ -5599,28 +11080,58 @@ func (s AbpV11) 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 AbpV11) GoString() string { +func (s Destinations) GoString() string { return s.String() } -// SetDevAddr sets the DevAddr field's value. -func (s *AbpV11) SetDevAddr(v string) *AbpV11 { - s.DevAddr = &v +// SetArn sets the Arn field's value. +func (s *Destinations) SetArn(v string) *Destinations { + s.Arn = &v return s } -// SetSessionKeys sets the SessionKeys field's value. -func (s *AbpV11) SetSessionKeys(v *SessionKeysAbpV11) *AbpV11 { - s.SessionKeys = v +// SetDescription sets the Description field's value. +func (s *Destinations) SetDescription(v string) *Destinations { + s.Description = &v return s } -// User does not have permission to perform this action. -type AccessDeniedException struct { - _ struct{} `type:"structure"` - RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` +// SetExpression sets the Expression field's value. +func (s *Destinations) SetExpression(v string) *Destinations { + s.Expression = &v + return s +} - Message_ *string `locationName:"Message" type:"string"` +// SetExpressionType sets the ExpressionType field's value. +func (s *Destinations) SetExpressionType(v string) *Destinations { + s.ExpressionType = &v + return s +} + +// SetName sets the Name field's value. +func (s *Destinations) SetName(v string) *Destinations { + s.Name = &v + return s +} + +// SetRoleArn sets the RoleArn field's value. +func (s *Destinations) SetRoleArn(v string) *Destinations { + s.RoleArn = &v + return s +} + +// Describes a device profile. +type DeviceProfile struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name of the resource. + Arn *string `type:"string"` + + // The ID of the device profile. + Id *string `type:"string"` + + // The name of the resource. + Name *string `type:"string"` } // String returns the string representation. @@ -5628,7 +11139,7 @@ type AccessDeniedException 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 AccessDeniedException) String() string { +func (s DeviceProfile) String() string { return awsutil.Prettify(s) } @@ -5637,65 +11148,74 @@ func (s AccessDeniedException) 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 AccessDeniedException) GoString() string { +func (s DeviceProfile) GoString() string { return s.String() } -func newErrorAccessDeniedException(v protocol.ResponseMetadata) error { - return &AccessDeniedException{ - RespMetadata: v, - } +// SetArn sets the Arn field's value. +func (s *DeviceProfile) SetArn(v string) *DeviceProfile { + s.Arn = &v + return s } -// Code returns the exception type name. -func (s *AccessDeniedException) Code() string { - return "AccessDeniedException" +// SetId sets the Id field's value. +func (s *DeviceProfile) SetId(v string) *DeviceProfile { + s.Id = &v + return s } -// Message returns the exception's message. -func (s *AccessDeniedException) Message() string { - if s.Message_ != nil { - return *s.Message_ - } - return "" +// SetName sets the Name field's value. +func (s *DeviceProfile) SetName(v string) *DeviceProfile { + s.Name = &v + return s } -// OrigErr always returns nil, satisfies awserr.Error interface. -func (s *AccessDeniedException) OrigErr() error { - return nil -} +// Device registration state event configuration object for enabling and disabling +// relevant topics. +type DeviceRegistrationStateEventConfiguration struct { + _ struct{} `type:"structure"` -func (s *AccessDeniedException) Error() string { - return fmt.Sprintf("%s: %s", s.Code(), s.Message()) + // Device registration state event configuration object for enabling or disabling + // Sidewalk related event topics. + Sidewalk *SidewalkEventNotificationConfigurations `type:"structure"` } -// Status code returns the HTTP status code for the request's response error. -func (s *AccessDeniedException) StatusCode() int { - return s.RespMetadata.StatusCode +// 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 DeviceRegistrationStateEventConfiguration) String() string { + return awsutil.Prettify(s) } -// RequestID returns the service's response RequestID for request. -func (s *AccessDeniedException) RequestID() string { - return s.RespMetadata.RequestID +// 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 DeviceRegistrationStateEventConfiguration) GoString() string { + return s.String() } -type AssociateAwsAccountWithPartnerAccountInput struct { - _ struct{} `type:"structure"` +// SetSidewalk sets the Sidewalk field's value. +func (s *DeviceRegistrationStateEventConfiguration) SetSidewalk(v *SidewalkEventNotificationConfigurations) *DeviceRegistrationStateEventConfiguration { + s.Sidewalk = v + return s +} - // Each resource must have a unique client request token. If you try to create - // a new resource with the same token as a resource that already exists, an - // exception occurs. If you omit this value, AWS SDKs will automatically generate - // a unique client request. - ClientRequestToken *string `min:"1" type:"string" idempotencyToken:"true"` +type DisassociateAwsAccountFromPartnerAccountInput struct { + _ struct{} `type:"structure" nopayload:"true"` - // The Sidewalk account credentials. + // The partner account ID to disassociate from the AWS account. // - // Sidewalk is a required field - Sidewalk *SidewalkAccountInfo `type:"structure" required:"true"` + // PartnerAccountId is a required field + PartnerAccountId *string `location:"uri" locationName:"PartnerAccountId" type:"string" required:"true"` - // The tags to attach to the specified resource. Tags are metadata that you - // can use to manage a resource. - Tags []*Tag `type:"list"` + // The partner type. + // + // PartnerType is a required field + PartnerType *string `location:"querystring" locationName:"partnerType" type:"string" required:"true" enum:"PartnerType"` } // String returns the string representation. @@ -5703,7 +11223,7 @@ type AssociateAwsAccountWithPartnerAccountInput 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 AssociateAwsAccountWithPartnerAccountInput) String() string { +func (s DisassociateAwsAccountFromPartnerAccountInput) String() string { return awsutil.Prettify(s) } @@ -5712,33 +11232,21 @@ func (s AssociateAwsAccountWithPartnerAccountInput) 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 AssociateAwsAccountWithPartnerAccountInput) GoString() string { +func (s DisassociateAwsAccountFromPartnerAccountInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *AssociateAwsAccountWithPartnerAccountInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AssociateAwsAccountWithPartnerAccountInput"} - if s.ClientRequestToken != nil && len(*s.ClientRequestToken) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ClientRequestToken", 1)) - } - if s.Sidewalk == nil { - invalidParams.Add(request.NewErrParamRequired("Sidewalk")) +func (s *DisassociateAwsAccountFromPartnerAccountInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DisassociateAwsAccountFromPartnerAccountInput"} + if s.PartnerAccountId == nil { + invalidParams.Add(request.NewErrParamRequired("PartnerAccountId")) } - if s.Sidewalk != nil { - if err := s.Sidewalk.Validate(); err != nil { - invalidParams.AddNested("Sidewalk", err.(request.ErrInvalidParams)) - } + if s.PartnerAccountId != nil && len(*s.PartnerAccountId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("PartnerAccountId", 1)) } - if s.Tags != nil { - for i, v := range s.Tags { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) - } - } + if s.PartnerType == nil { + invalidParams.Add(request.NewErrParamRequired("PartnerType")) } if invalidParams.Len() > 0 { @@ -5747,32 +11255,20 @@ func (s *AssociateAwsAccountWithPartnerAccountInput) Validate() error { return nil } -// SetClientRequestToken sets the ClientRequestToken field's value. -func (s *AssociateAwsAccountWithPartnerAccountInput) SetClientRequestToken(v string) *AssociateAwsAccountWithPartnerAccountInput { - s.ClientRequestToken = &v - return s -} - -// SetSidewalk sets the Sidewalk field's value. -func (s *AssociateAwsAccountWithPartnerAccountInput) SetSidewalk(v *SidewalkAccountInfo) *AssociateAwsAccountWithPartnerAccountInput { - s.Sidewalk = v +// SetPartnerAccountId sets the PartnerAccountId field's value. +func (s *DisassociateAwsAccountFromPartnerAccountInput) SetPartnerAccountId(v string) *DisassociateAwsAccountFromPartnerAccountInput { + s.PartnerAccountId = &v return s } -// SetTags sets the Tags field's value. -func (s *AssociateAwsAccountWithPartnerAccountInput) SetTags(v []*Tag) *AssociateAwsAccountWithPartnerAccountInput { - s.Tags = v +// SetPartnerType sets the PartnerType field's value. +func (s *DisassociateAwsAccountFromPartnerAccountInput) SetPartnerType(v string) *DisassociateAwsAccountFromPartnerAccountInput { + s.PartnerType = &v return s } -type AssociateAwsAccountWithPartnerAccountOutput struct { +type DisassociateAwsAccountFromPartnerAccountOutput struct { _ struct{} `type:"structure"` - - // The Amazon Resource Name of the resource. - Arn *string `type:"string"` - - // The Sidewalk account credentials. - Sidewalk *SidewalkAccountInfo `type:"structure"` } // String returns the string representation. @@ -5780,43 +11276,31 @@ type AssociateAwsAccountWithPartnerAccountOutput 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 AssociateAwsAccountWithPartnerAccountOutput) 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 AssociateAwsAccountWithPartnerAccountOutput) GoString() string { - return s.String() -} - -// SetArn sets the Arn field's value. -func (s *AssociateAwsAccountWithPartnerAccountOutput) SetArn(v string) *AssociateAwsAccountWithPartnerAccountOutput { - s.Arn = &v - return s +func (s DisassociateAwsAccountFromPartnerAccountOutput) String() string { + return awsutil.Prettify(s) } -// SetSidewalk sets the Sidewalk field's value. -func (s *AssociateAwsAccountWithPartnerAccountOutput) SetSidewalk(v *SidewalkAccountInfo) *AssociateAwsAccountWithPartnerAccountOutput { - s.Sidewalk = v - return 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 DisassociateAwsAccountFromPartnerAccountOutput) GoString() string { + return s.String() } -type AssociateWirelessDeviceWithThingInput struct { - _ struct{} `type:"structure"` +type DisassociateMulticastGroupFromFuotaTaskInput struct { + _ struct{} `type:"structure" nopayload:"true"` - // The ID of the resource to update. + // The ID of a FUOTA task. // // Id is a required field Id *string `location:"uri" locationName:"Id" type:"string" required:"true"` - // The ARN of the thing to associate with the wireless device. + // The ID of the multicast group. // - // ThingArn is a required field - ThingArn *string `type:"string" required:"true"` + // MulticastGroupId is a required field + MulticastGroupId *string `location:"uri" locationName:"MulticastGroupId" type:"string" required:"true"` } // String returns the string representation. @@ -5824,7 +11308,7 @@ type AssociateWirelessDeviceWithThingInput 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 AssociateWirelessDeviceWithThingInput) String() string { +func (s DisassociateMulticastGroupFromFuotaTaskInput) String() string { return awsutil.Prettify(s) } @@ -5833,21 +11317,24 @@ func (s AssociateWirelessDeviceWithThingInput) 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 AssociateWirelessDeviceWithThingInput) GoString() string { +func (s DisassociateMulticastGroupFromFuotaTaskInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *AssociateWirelessDeviceWithThingInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AssociateWirelessDeviceWithThingInput"} +func (s *DisassociateMulticastGroupFromFuotaTaskInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DisassociateMulticastGroupFromFuotaTaskInput"} 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.ThingArn == nil { - invalidParams.Add(request.NewErrParamRequired("ThingArn")) + if s.MulticastGroupId == nil { + invalidParams.Add(request.NewErrParamRequired("MulticastGroupId")) + } + if s.MulticastGroupId != nil && len(*s.MulticastGroupId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("MulticastGroupId", 1)) } if invalidParams.Len() > 0 { @@ -5857,18 +11344,18 @@ func (s *AssociateWirelessDeviceWithThingInput) Validate() error { } // SetId sets the Id field's value. -func (s *AssociateWirelessDeviceWithThingInput) SetId(v string) *AssociateWirelessDeviceWithThingInput { +func (s *DisassociateMulticastGroupFromFuotaTaskInput) SetId(v string) *DisassociateMulticastGroupFromFuotaTaskInput { s.Id = &v return s } -// SetThingArn sets the ThingArn field's value. -func (s *AssociateWirelessDeviceWithThingInput) SetThingArn(v string) *AssociateWirelessDeviceWithThingInput { - s.ThingArn = &v +// SetMulticastGroupId sets the MulticastGroupId field's value. +func (s *DisassociateMulticastGroupFromFuotaTaskInput) SetMulticastGroupId(v string) *DisassociateMulticastGroupFromFuotaTaskInput { + s.MulticastGroupId = &v return s } -type AssociateWirelessDeviceWithThingOutput struct { +type DisassociateMulticastGroupFromFuotaTaskOutput struct { _ struct{} `type:"structure"` } @@ -5877,7 +11364,7 @@ type AssociateWirelessDeviceWithThingOutput 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 AssociateWirelessDeviceWithThingOutput) String() string { +func (s DisassociateMulticastGroupFromFuotaTaskOutput) String() string { return awsutil.Prettify(s) } @@ -5886,22 +11373,22 @@ func (s AssociateWirelessDeviceWithThingOutput) 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 AssociateWirelessDeviceWithThingOutput) GoString() string { +func (s DisassociateMulticastGroupFromFuotaTaskOutput) GoString() string { return s.String() } -type AssociateWirelessGatewayWithCertificateInput struct { - _ struct{} `type:"structure"` +type DisassociateWirelessDeviceFromFuotaTaskInput struct { + _ struct{} `type:"structure" nopayload:"true"` - // The ID of the resource to update. + // The ID of a FUOTA task. // // Id is a required field Id *string `location:"uri" locationName:"Id" type:"string" required:"true"` - // The ID of the certificate to associate with the wireless gateway. + // The ID of the wireless device. // - // IotCertificateId is a required field - IotCertificateId *string `min:"1" type:"string" required:"true"` + // WirelessDeviceId is a required field + WirelessDeviceId *string `location:"uri" locationName:"WirelessDeviceId" type:"string" required:"true"` } // String returns the string representation. @@ -5909,7 +11396,7 @@ type AssociateWirelessGatewayWithCertificateInput 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 AssociateWirelessGatewayWithCertificateInput) String() string { +func (s DisassociateWirelessDeviceFromFuotaTaskInput) String() string { return awsutil.Prettify(s) } @@ -5918,24 +11405,24 @@ func (s AssociateWirelessGatewayWithCertificateInput) 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 AssociateWirelessGatewayWithCertificateInput) GoString() string { +func (s DisassociateWirelessDeviceFromFuotaTaskInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *AssociateWirelessGatewayWithCertificateInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AssociateWirelessGatewayWithCertificateInput"} +func (s *DisassociateWirelessDeviceFromFuotaTaskInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DisassociateWirelessDeviceFromFuotaTaskInput"} 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.IotCertificateId == nil { - invalidParams.Add(request.NewErrParamRequired("IotCertificateId")) + if s.WirelessDeviceId == nil { + invalidParams.Add(request.NewErrParamRequired("WirelessDeviceId")) } - if s.IotCertificateId != nil && len(*s.IotCertificateId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("IotCertificateId", 1)) + if s.WirelessDeviceId != nil && len(*s.WirelessDeviceId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("WirelessDeviceId", 1)) } if invalidParams.Len() > 0 { @@ -5945,22 +11432,19 @@ func (s *AssociateWirelessGatewayWithCertificateInput) Validate() error { } // SetId sets the Id field's value. -func (s *AssociateWirelessGatewayWithCertificateInput) SetId(v string) *AssociateWirelessGatewayWithCertificateInput { +func (s *DisassociateWirelessDeviceFromFuotaTaskInput) SetId(v string) *DisassociateWirelessDeviceFromFuotaTaskInput { s.Id = &v return s } -// SetIotCertificateId sets the IotCertificateId field's value. -func (s *AssociateWirelessGatewayWithCertificateInput) SetIotCertificateId(v string) *AssociateWirelessGatewayWithCertificateInput { - s.IotCertificateId = &v +// SetWirelessDeviceId sets the WirelessDeviceId field's value. +func (s *DisassociateWirelessDeviceFromFuotaTaskInput) SetWirelessDeviceId(v string) *DisassociateWirelessDeviceFromFuotaTaskInput { + s.WirelessDeviceId = &v return s } -type AssociateWirelessGatewayWithCertificateOutput struct { +type DisassociateWirelessDeviceFromFuotaTaskOutput struct { _ struct{} `type:"structure"` - - // The ID of the certificate associated with the wireless gateway. - IotCertificateId *string `min:"1" type:"string"` } // String returns the string representation. @@ -5968,7 +11452,7 @@ type AssociateWirelessGatewayWithCertificateOutput 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 AssociateWirelessGatewayWithCertificateOutput) String() string { +func (s DisassociateWirelessDeviceFromFuotaTaskOutput) String() string { return awsutil.Prettify(s) } @@ -5977,28 +11461,22 @@ func (s AssociateWirelessGatewayWithCertificateOutput) 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 AssociateWirelessGatewayWithCertificateOutput) GoString() string { +func (s DisassociateWirelessDeviceFromFuotaTaskOutput) GoString() string { return s.String() } -// SetIotCertificateId sets the IotCertificateId field's value. -func (s *AssociateWirelessGatewayWithCertificateOutput) SetIotCertificateId(v string) *AssociateWirelessGatewayWithCertificateOutput { - s.IotCertificateId = &v - return s -} - -type AssociateWirelessGatewayWithThingInput struct { - _ struct{} `type:"structure"` +type DisassociateWirelessDeviceFromMulticastGroupInput struct { + _ struct{} `type:"structure" nopayload:"true"` - // The ID of the resource to update. + // The ID of the multicast group. // // Id is a required field Id *string `location:"uri" locationName:"Id" type:"string" required:"true"` - // The ARN of the thing to associate with the wireless gateway. + // The ID of the wireless device. // - // ThingArn is a required field - ThingArn *string `type:"string" required:"true"` + // WirelessDeviceId is a required field + WirelessDeviceId *string `location:"uri" locationName:"WirelessDeviceId" type:"string" required:"true"` } // String returns the string representation. @@ -6006,7 +11484,7 @@ type AssociateWirelessGatewayWithThingInput 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 AssociateWirelessGatewayWithThingInput) String() string { +func (s DisassociateWirelessDeviceFromMulticastGroupInput) String() string { return awsutil.Prettify(s) } @@ -6015,21 +11493,24 @@ func (s AssociateWirelessGatewayWithThingInput) 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 AssociateWirelessGatewayWithThingInput) GoString() string { +func (s DisassociateWirelessDeviceFromMulticastGroupInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *AssociateWirelessGatewayWithThingInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AssociateWirelessGatewayWithThingInput"} +func (s *DisassociateWirelessDeviceFromMulticastGroupInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DisassociateWirelessDeviceFromMulticastGroupInput"} 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.ThingArn == nil { - invalidParams.Add(request.NewErrParamRequired("ThingArn")) + if s.WirelessDeviceId == nil { + invalidParams.Add(request.NewErrParamRequired("WirelessDeviceId")) + } + if s.WirelessDeviceId != nil && len(*s.WirelessDeviceId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("WirelessDeviceId", 1)) } if invalidParams.Len() > 0 { @@ -6039,18 +11520,18 @@ func (s *AssociateWirelessGatewayWithThingInput) Validate() error { } // SetId sets the Id field's value. -func (s *AssociateWirelessGatewayWithThingInput) SetId(v string) *AssociateWirelessGatewayWithThingInput { +func (s *DisassociateWirelessDeviceFromMulticastGroupInput) SetId(v string) *DisassociateWirelessDeviceFromMulticastGroupInput { s.Id = &v return s } -// SetThingArn sets the ThingArn field's value. -func (s *AssociateWirelessGatewayWithThingInput) SetThingArn(v string) *AssociateWirelessGatewayWithThingInput { - s.ThingArn = &v +// SetWirelessDeviceId sets the WirelessDeviceId field's value. +func (s *DisassociateWirelessDeviceFromMulticastGroupInput) SetWirelessDeviceId(v string) *DisassociateWirelessDeviceFromMulticastGroupInput { + s.WirelessDeviceId = &v return s } -type AssociateWirelessGatewayWithThingOutput struct { +type DisassociateWirelessDeviceFromMulticastGroupOutput struct { _ struct{} `type:"structure"` } @@ -6059,7 +11540,7 @@ type AssociateWirelessGatewayWithThingOutput 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 AssociateWirelessGatewayWithThingOutput) String() string { +func (s DisassociateWirelessDeviceFromMulticastGroupOutput) String() string { return awsutil.Prettify(s) } @@ -6068,23 +11549,17 @@ func (s AssociateWirelessGatewayWithThingOutput) 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 AssociateWirelessGatewayWithThingOutput) GoString() string { +func (s DisassociateWirelessDeviceFromMulticastGroupOutput) GoString() string { return s.String() } -// List of sidewalk certificates. -type CertificateList struct { - _ struct{} `type:"structure"` - - // The certificate chain algorithm provided by sidewalk. - // - // SigningAlg is a required field - SigningAlg *string `type:"string" required:"true" enum:"SigningAlg"` +type DisassociateWirelessDeviceFromThingInput struct { + _ struct{} `type:"structure" nopayload:"true"` - // The value of the chosen sidewalk certificate. + // The ID of the resource to update. // - // Value is a required field - Value *string `type:"string" required:"true"` + // Id is a required field + Id *string `location:"uri" locationName:"Id" type:"string" required:"true"` } // String returns the string representation. @@ -6092,7 +11567,7 @@ type CertificateList 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 CertificateList) String() string { +func (s DisassociateWirelessDeviceFromThingInput) String() string { return awsutil.Prettify(s) } @@ -6101,34 +11576,34 @@ func (s CertificateList) 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 CertificateList) GoString() string { +func (s DisassociateWirelessDeviceFromThingInput) GoString() string { return s.String() } -// SetSigningAlg sets the SigningAlg field's value. -func (s *CertificateList) SetSigningAlg(v string) *CertificateList { - s.SigningAlg = &v - return s +// Validate inspects the fields of the type to determine if they are valid. +func (s *DisassociateWirelessDeviceFromThingInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DisassociateWirelessDeviceFromThingInput"} + 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 } -// SetValue sets the Value field's value. -func (s *CertificateList) SetValue(v string) *CertificateList { - s.Value = &v +// SetId sets the Id field's value. +func (s *DisassociateWirelessDeviceFromThingInput) SetId(v string) *DisassociateWirelessDeviceFromThingInput { + s.Id = &v return s } -// Adding, updating, or deleting the resource can cause an inconsistent state. -type ConflictException struct { - _ struct{} `type:"structure"` - RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` - - Message_ *string `locationName:"Message" type:"string"` - - // Id of the resource in the conflicting operation. - ResourceId *string `type:"string"` - - // Type of the resource in the conflicting operation. - ResourceType *string `type:"string"` +type DisassociateWirelessDeviceFromThingOutput struct { + _ struct{} `type:"structure"` } // String returns the string representation. @@ -6136,7 +11611,7 @@ type ConflictException 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 ConflictException) String() string { +func (s DisassociateWirelessDeviceFromThingOutput) String() string { return awsutil.Prettify(s) } @@ -6145,83 +11620,88 @@ func (s ConflictException) 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 ConflictException) GoString() string { +func (s DisassociateWirelessDeviceFromThingOutput) GoString() string { return s.String() } -func newErrorConflictException(v protocol.ResponseMetadata) error { - return &ConflictException{ - RespMetadata: v, - } -} +type DisassociateWirelessGatewayFromCertificateInput struct { + _ struct{} `type:"structure" nopayload:"true"` -// Code returns the exception type name. -func (s *ConflictException) Code() string { - return "ConflictException" + // The ID of the resource to update. + // + // Id is a required field + Id *string `location:"uri" locationName:"Id" type:"string" required:"true"` } -// Message returns the exception's message. -func (s *ConflictException) Message() string { - if s.Message_ != nil { - return *s.Message_ - } - return "" +// 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 DisassociateWirelessGatewayFromCertificateInput) String() string { + return awsutil.Prettify(s) } -// OrigErr always returns nil, satisfies awserr.Error interface. -func (s *ConflictException) OrigErr() error { - return nil +// 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 DisassociateWirelessGatewayFromCertificateInput) GoString() string { + return s.String() } -func (s *ConflictException) Error() string { - return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) -} +// Validate inspects the fields of the type to determine if they are valid. +func (s *DisassociateWirelessGatewayFromCertificateInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DisassociateWirelessGatewayFromCertificateInput"} + if s.Id == nil { + invalidParams.Add(request.NewErrParamRequired("Id")) + } + if s.Id != nil && len(*s.Id) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Id", 1)) + } -// Status code returns the HTTP status code for the request's response error. -func (s *ConflictException) StatusCode() int { - return s.RespMetadata.StatusCode + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// RequestID returns the service's response RequestID for request. -func (s *ConflictException) RequestID() string { - return s.RespMetadata.RequestID +// SetId sets the Id field's value. +func (s *DisassociateWirelessGatewayFromCertificateInput) SetId(v string) *DisassociateWirelessGatewayFromCertificateInput { + s.Id = &v + return s } -type CreateDestinationInput struct { +type DisassociateWirelessGatewayFromCertificateOutput struct { _ struct{} `type:"structure"` +} - // Each resource must have a unique client request token. If you try to create - // a new resource with the same token as a resource that already exists, an - // exception occurs. If you omit this value, AWS SDKs will automatically generate - // a unique client request. - ClientRequestToken *string `min:"1" type:"string" idempotencyToken:"true"` - - // The description of the new resource. - Description *string `type:"string"` - - // The rule name or topic rule to send messages to. - // - // Expression is a required field - Expression *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 DisassociateWirelessGatewayFromCertificateOutput) String() string { + return awsutil.Prettify(s) +} - // The type of value in Expression. - // - // ExpressionType is a required field - ExpressionType *string `type:"string" required:"true" enum:"ExpressionType"` +// 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 DisassociateWirelessGatewayFromCertificateOutput) GoString() string { + return s.String() +} - // The name of the new resource. - // - // Name is a required field - Name *string `type:"string" required:"true"` +type DisassociateWirelessGatewayFromThingInput struct { + _ struct{} `type:"structure" nopayload:"true"` - // The ARN of the IAM Role that authorizes the destination. + // The ID of the resource to update. // - // RoleArn is a required field - RoleArn *string `min:"20" type:"string" required:"true"` - - // The tags to attach to the new destination. Tags are metadata that you can - // use to manage a resource. - Tags []*Tag `type:"list"` + // Id is a required field + Id *string `location:"uri" locationName:"Id" type:"string" required:"true"` } // String returns the string representation. @@ -6229,7 +11709,7 @@ type CreateDestinationInput 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 CreateDestinationInput) String() string { +func (s DisassociateWirelessGatewayFromThingInput) String() string { return awsutil.Prettify(s) } @@ -6238,40 +11718,18 @@ func (s CreateDestinationInput) 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 CreateDestinationInput) GoString() string { +func (s DisassociateWirelessGatewayFromThingInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *CreateDestinationInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateDestinationInput"} - if s.ClientRequestToken != nil && len(*s.ClientRequestToken) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ClientRequestToken", 1)) - } - if s.Expression == nil { - invalidParams.Add(request.NewErrParamRequired("Expression")) - } - if s.ExpressionType == nil { - invalidParams.Add(request.NewErrParamRequired("ExpressionType")) - } - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) - } - if s.RoleArn == nil { - invalidParams.Add(request.NewErrParamRequired("RoleArn")) - } - if s.RoleArn != nil && len(*s.RoleArn) < 20 { - invalidParams.Add(request.NewErrParamMinLen("RoleArn", 20)) +func (s *DisassociateWirelessGatewayFromThingInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DisassociateWirelessGatewayFromThingInput"} + if s.Id == nil { + invalidParams.Add(request.NewErrParamRequired("Id")) } - if s.Tags != nil { - for i, v := range s.Tags { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) - } - } + if s.Id != nil && len(*s.Id) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Id", 1)) } if invalidParams.Len() > 0 { @@ -6280,56 +11738,14 @@ func (s *CreateDestinationInput) Validate() error { return nil } -// SetClientRequestToken sets the ClientRequestToken field's value. -func (s *CreateDestinationInput) SetClientRequestToken(v string) *CreateDestinationInput { - s.ClientRequestToken = &v - return s -} - -// SetDescription sets the Description field's value. -func (s *CreateDestinationInput) SetDescription(v string) *CreateDestinationInput { - s.Description = &v - return s -} - -// SetExpression sets the Expression field's value. -func (s *CreateDestinationInput) SetExpression(v string) *CreateDestinationInput { - s.Expression = &v - return s -} - -// SetExpressionType sets the ExpressionType field's value. -func (s *CreateDestinationInput) SetExpressionType(v string) *CreateDestinationInput { - s.ExpressionType = &v - return s -} - -// SetName sets the Name field's value. -func (s *CreateDestinationInput) SetName(v string) *CreateDestinationInput { - s.Name = &v - return s -} - -// SetRoleArn sets the RoleArn field's value. -func (s *CreateDestinationInput) SetRoleArn(v string) *CreateDestinationInput { - s.RoleArn = &v - return s -} - -// SetTags sets the Tags field's value. -func (s *CreateDestinationInput) SetTags(v []*Tag) *CreateDestinationInput { - s.Tags = v +// SetId sets the Id field's value. +func (s *DisassociateWirelessGatewayFromThingInput) SetId(v string) *DisassociateWirelessGatewayFromThingInput { + s.Id = &v return s } -type CreateDestinationOutput struct { +type DisassociateWirelessGatewayFromThingOutput struct { _ struct{} `type:"structure"` - - // The Amazon Resource Name of the new resource. - Arn *string `type:"string"` - - // The name of the new resource. - Name *string `type:"string"` } // String returns the string representation. @@ -6337,7 +11753,7 @@ type CreateDestinationOutput 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 CreateDestinationOutput) String() string { +func (s DisassociateWirelessGatewayFromThingOutput) String() string { return awsutil.Prettify(s) } @@ -6346,40 +11762,22 @@ func (s CreateDestinationOutput) 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 CreateDestinationOutput) GoString() string { +func (s DisassociateWirelessGatewayFromThingOutput) GoString() string { return s.String() } -// SetArn sets the Arn field's value. -func (s *CreateDestinationOutput) SetArn(v string) *CreateDestinationOutput { - s.Arn = &v - return s -} - -// SetName sets the Name field's value. -func (s *CreateDestinationOutput) SetName(v string) *CreateDestinationOutput { - s.Name = &v - return s -} - -type CreateDeviceProfileInput struct { +// List of FPort assigned for different LoRaWAN application packages to use +type FPorts struct { _ struct{} `type:"structure"` - // Each resource must have a unique client request token. If you try to create - // a new resource with the same token as a resource that already exists, an - // exception occurs. If you omit this value, AWS SDKs will automatically generate - // a unique client request. - ClientRequestToken *string `min:"1" type:"string" idempotencyToken:"true"` - - // The device profile information to use to create the device profile. - LoRaWAN *LoRaWANDeviceProfile `type:"structure"` + // The Fport value. + ClockSync *int64 `min:"1" type:"integer"` - // The name of the new resource. - Name *string `type:"string"` + // The Fport value. + Fuota *int64 `min:"1" type:"integer"` - // The tags to attach to the new device profile. Tags are metadata that you - // can use to manage a resource. - Tags []*Tag `type:"list"` + // The Fport value. + Multicast *int64 `min:"1" type:"integer"` } // String returns the string representation. @@ -6387,7 +11785,7 @@ type CreateDeviceProfileInput 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 CreateDeviceProfileInput) String() string { +func (s FPorts) String() string { return awsutil.Prettify(s) } @@ -6396,30 +11794,21 @@ func (s CreateDeviceProfileInput) 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 CreateDeviceProfileInput) GoString() string { +func (s FPorts) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *CreateDeviceProfileInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateDeviceProfileInput"} - if s.ClientRequestToken != nil && len(*s.ClientRequestToken) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ClientRequestToken", 1)) +func (s *FPorts) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "FPorts"} + if s.ClockSync != nil && *s.ClockSync < 1 { + invalidParams.Add(request.NewErrParamMinValue("ClockSync", 1)) } - if s.LoRaWAN != nil { - if err := s.LoRaWAN.Validate(); err != nil { - invalidParams.AddNested("LoRaWAN", err.(request.ErrInvalidParams)) - } + if s.Fuota != nil && *s.Fuota < 1 { + invalidParams.Add(request.NewErrParamMinValue("Fuota", 1)) } - if s.Tags != nil { - for i, v := range s.Tags { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) - } - } + if s.Multicast != nil && *s.Multicast < 1 { + invalidParams.Add(request.NewErrParamMinValue("Multicast", 1)) } if invalidParams.Len() > 0 { @@ -6428,38 +11817,36 @@ func (s *CreateDeviceProfileInput) Validate() error { return nil } -// SetClientRequestToken sets the ClientRequestToken field's value. -func (s *CreateDeviceProfileInput) SetClientRequestToken(v string) *CreateDeviceProfileInput { - s.ClientRequestToken = &v - return s -} - -// SetLoRaWAN sets the LoRaWAN field's value. -func (s *CreateDeviceProfileInput) SetLoRaWAN(v *LoRaWANDeviceProfile) *CreateDeviceProfileInput { - s.LoRaWAN = v +// SetClockSync sets the ClockSync field's value. +func (s *FPorts) SetClockSync(v int64) *FPorts { + s.ClockSync = &v return s } -// SetName sets the Name field's value. -func (s *CreateDeviceProfileInput) SetName(v string) *CreateDeviceProfileInput { - s.Name = &v +// SetFuota sets the Fuota field's value. +func (s *FPorts) SetFuota(v int64) *FPorts { + s.Fuota = &v return s } -// SetTags sets the Tags field's value. -func (s *CreateDeviceProfileInput) SetTags(v []*Tag) *CreateDeviceProfileInput { - s.Tags = v +// SetMulticast sets the Multicast field's value. +func (s *FPorts) SetMulticast(v int64) *FPorts { + s.Multicast = &v return s } -type CreateDeviceProfileOutput struct { +// A FUOTA task. +type FuotaTask struct { _ struct{} `type:"structure"` - // The Amazon Resource Name of the new resource. + // The arn of a FUOTA task. Arn *string `type:"string"` - // The ID of the new device profile. + // The ID of a FUOTA task. Id *string `type:"string"` + + // The name of a FUOTA task. + Name *string `type:"string"` } // String returns the string representation. @@ -6467,7 +11854,7 @@ type CreateDeviceProfileOutput 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 CreateDeviceProfileOutput) String() string { +func (s FuotaTask) String() string { return awsutil.Prettify(s) } @@ -6476,40 +11863,35 @@ func (s CreateDeviceProfileOutput) 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 CreateDeviceProfileOutput) GoString() string { +func (s FuotaTask) GoString() string { return s.String() } // SetArn sets the Arn field's value. -func (s *CreateDeviceProfileOutput) SetArn(v string) *CreateDeviceProfileOutput { +func (s *FuotaTask) SetArn(v string) *FuotaTask { s.Arn = &v return s } // SetId sets the Id field's value. -func (s *CreateDeviceProfileOutput) SetId(v string) *CreateDeviceProfileOutput { +func (s *FuotaTask) SetId(v string) *FuotaTask { s.Id = &v return s } -type CreateServiceProfileInput struct { - _ struct{} `type:"structure"` - - // Each resource must have a unique client request token. If you try to create - // a new resource with the same token as a resource that already exists, an - // exception occurs. If you omit this value, AWS SDKs will automatically generate - // a unique client request. - ClientRequestToken *string `min:"1" type:"string" idempotencyToken:"true"` - - // The service profile information to use to create the service profile. - LoRaWAN *LoRaWANServiceProfile `type:"structure"` +// SetName sets the Name field's value. +func (s *FuotaTask) SetName(v string) *FuotaTask { + s.Name = &v + return s +} - // The name of the new resource. - Name *string `type:"string"` +type GetDestinationInput struct { + _ struct{} `type:"structure" nopayload:"true"` - // The tags to attach to the new service profile. Tags are metadata that you - // can use to manage a resource. - Tags []*Tag `type:"list"` + // The name of the resource to get. + // + // Name is a required field + Name *string `location:"uri" locationName:"Name" type:"string" required:"true"` } // String returns the string representation. @@ -6517,7 +11899,7 @@ type CreateServiceProfileInput 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 CreateServiceProfileInput) String() string { +func (s GetDestinationInput) String() string { return awsutil.Prettify(s) } @@ -6526,25 +11908,18 @@ func (s CreateServiceProfileInput) 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 CreateServiceProfileInput) GoString() string { +func (s GetDestinationInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *CreateServiceProfileInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateServiceProfileInput"} - if s.ClientRequestToken != nil && len(*s.ClientRequestToken) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ClientRequestToken", 1)) +func (s *GetDestinationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetDestinationInput"} + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) } - if s.Tags != nil { - for i, v := range s.Tags { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) - } - } + if s.Name != nil && len(*s.Name) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Name", 1)) } if invalidParams.Len() > 0 { @@ -6553,38 +11928,32 @@ func (s *CreateServiceProfileInput) Validate() error { return nil } -// SetClientRequestToken sets the ClientRequestToken field's value. -func (s *CreateServiceProfileInput) SetClientRequestToken(v string) *CreateServiceProfileInput { - s.ClientRequestToken = &v - return s -} - -// SetLoRaWAN sets the LoRaWAN field's value. -func (s *CreateServiceProfileInput) SetLoRaWAN(v *LoRaWANServiceProfile) *CreateServiceProfileInput { - s.LoRaWAN = v - return s -} - // SetName sets the Name field's value. -func (s *CreateServiceProfileInput) SetName(v string) *CreateServiceProfileInput { +func (s *GetDestinationInput) SetName(v string) *GetDestinationInput { s.Name = &v return s } -// SetTags sets the Tags field's value. -func (s *CreateServiceProfileInput) SetTags(v []*Tag) *CreateServiceProfileInput { - s.Tags = v - return s -} - -type CreateServiceProfileOutput struct { +type GetDestinationOutput struct { _ struct{} `type:"structure"` - // The Amazon Resource Name of the new resource. + // The Amazon Resource Name of the resource. Arn *string `type:"string"` - // The ID of the new service profile. - Id *string `type:"string"` + // The description of the resource. + Description *string `type:"string"` + + // The rule name or topic rule to send messages to. + Expression *string `type:"string"` + + // The type of value in Expression. + ExpressionType *string `type:"string" enum:"ExpressionType"` + + // The name of the resource. + Name *string `type:"string"` + + // The ARN of the IAM Role that authorizes the destination. + RoleArn *string `min:"20" type:"string"` } // String returns the string representation. @@ -6592,7 +11961,7 @@ type CreateServiceProfileOutput 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 CreateServiceProfileOutput) String() string { +func (s GetDestinationOutput) String() string { return awsutil.Prettify(s) } @@ -6601,53 +11970,53 @@ func (s CreateServiceProfileOutput) 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 CreateServiceProfileOutput) GoString() string { +func (s GetDestinationOutput) GoString() string { return s.String() } // SetArn sets the Arn field's value. -func (s *CreateServiceProfileOutput) SetArn(v string) *CreateServiceProfileOutput { +func (s *GetDestinationOutput) SetArn(v string) *GetDestinationOutput { s.Arn = &v return s } -// SetId sets the Id field's value. -func (s *CreateServiceProfileOutput) SetId(v string) *CreateServiceProfileOutput { - s.Id = &v +// SetDescription sets the Description field's value. +func (s *GetDestinationOutput) SetDescription(v string) *GetDestinationOutput { + s.Description = &v return s } -type CreateWirelessDeviceInput struct { - _ struct{} `type:"structure"` - - // Each resource must have a unique client request token. If you try to create - // a new resource with the same token as a resource that already exists, an - // exception occurs. If you omit this value, AWS SDKs will automatically generate - // a unique client request. - ClientRequestToken *string `min:"1" type:"string" idempotencyToken:"true"` - - // The description of the new resource. - Description *string `type:"string"` +// SetExpression sets the Expression field's value. +func (s *GetDestinationOutput) SetExpression(v string) *GetDestinationOutput { + s.Expression = &v + return s +} - // The name of the destination to assign to the new wireless device. - // - // DestinationName is a required field - DestinationName *string `type:"string" required:"true"` +// SetExpressionType sets the ExpressionType field's value. +func (s *GetDestinationOutput) SetExpressionType(v string) *GetDestinationOutput { + s.ExpressionType = &v + return s +} - // The device configuration information to use to create the wireless device. - LoRaWAN *LoRaWANDevice `type:"structure"` +// SetName sets the Name field's value. +func (s *GetDestinationOutput) SetName(v string) *GetDestinationOutput { + s.Name = &v + return s +} - // The name of the new resource. - Name *string `type:"string"` +// SetRoleArn sets the RoleArn field's value. +func (s *GetDestinationOutput) SetRoleArn(v string) *GetDestinationOutput { + s.RoleArn = &v + return s +} - // The tags to attach to the new wireless device. Tags are metadata that you - // can use to manage a resource. - Tags []*Tag `type:"list"` +type GetDeviceProfileInput struct { + _ struct{} `type:"structure" nopayload:"true"` - // The wireless device type. + // The ID of the resource to get. // - // Type is a required field - Type *string `type:"string" required:"true" enum:"WirelessDeviceType"` + // Id is a required field + Id *string `location:"uri" locationName:"Id" type:"string" required:"true"` } // String returns the string representation. @@ -6655,7 +12024,7 @@ type CreateWirelessDeviceInput 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 CreateWirelessDeviceInput) String() string { +func (s GetDeviceProfileInput) String() string { return awsutil.Prettify(s) } @@ -6664,31 +12033,18 @@ func (s CreateWirelessDeviceInput) 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 CreateWirelessDeviceInput) GoString() string { +func (s GetDeviceProfileInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *CreateWirelessDeviceInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateWirelessDeviceInput"} - if s.ClientRequestToken != nil && len(*s.ClientRequestToken) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ClientRequestToken", 1)) - } - if s.DestinationName == nil { - invalidParams.Add(request.NewErrParamRequired("DestinationName")) - } - if s.Type == nil { - invalidParams.Add(request.NewErrParamRequired("Type")) +func (s *GetDeviceProfileInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetDeviceProfileInput"} + if s.Id == nil { + invalidParams.Add(request.NewErrParamRequired("Id")) } - if s.Tags != nil { - for i, v := range s.Tags { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) - } - } + if s.Id != nil && len(*s.Id) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Id", 1)) } if invalidParams.Len() > 0 { @@ -6697,56 +12053,26 @@ func (s *CreateWirelessDeviceInput) Validate() error { return nil } -// SetClientRequestToken sets the ClientRequestToken field's value. -func (s *CreateWirelessDeviceInput) SetClientRequestToken(v string) *CreateWirelessDeviceInput { - s.ClientRequestToken = &v - return s -} - -// SetDescription sets the Description field's value. -func (s *CreateWirelessDeviceInput) SetDescription(v string) *CreateWirelessDeviceInput { - s.Description = &v - return s -} - -// SetDestinationName sets the DestinationName field's value. -func (s *CreateWirelessDeviceInput) SetDestinationName(v string) *CreateWirelessDeviceInput { - s.DestinationName = &v - return s -} - -// SetLoRaWAN sets the LoRaWAN field's value. -func (s *CreateWirelessDeviceInput) SetLoRaWAN(v *LoRaWANDevice) *CreateWirelessDeviceInput { - s.LoRaWAN = v - return s -} - -// SetName sets the Name field's value. -func (s *CreateWirelessDeviceInput) SetName(v string) *CreateWirelessDeviceInput { - s.Name = &v - return s -} - -// SetTags sets the Tags field's value. -func (s *CreateWirelessDeviceInput) SetTags(v []*Tag) *CreateWirelessDeviceInput { - s.Tags = v - return s -} - -// SetType sets the Type field's value. -func (s *CreateWirelessDeviceInput) SetType(v string) *CreateWirelessDeviceInput { - s.Type = &v +// SetId sets the Id field's value. +func (s *GetDeviceProfileInput) SetId(v string) *GetDeviceProfileInput { + s.Id = &v return s } -type CreateWirelessDeviceOutput struct { +type GetDeviceProfileOutput struct { _ struct{} `type:"structure"` - // The Amazon Resource Name of the new resource. + // The Amazon Resource Name of the resource. Arn *string `type:"string"` - // The ID of the new wireless device. + // The ID of the device profile. Id *string `type:"string"` + + // Information about the device profile. + LoRaWAN *LoRaWANDeviceProfile `type:"structure"` + + // The name of the resource. + Name *string `type:"string"` } // String returns the string representation. @@ -6754,7 +12080,7 @@ type CreateWirelessDeviceOutput 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 CreateWirelessDeviceOutput) String() string { +func (s GetDeviceProfileOutput) String() string { return awsutil.Prettify(s) } @@ -6763,45 +12089,41 @@ func (s CreateWirelessDeviceOutput) 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 CreateWirelessDeviceOutput) GoString() string { +func (s GetDeviceProfileOutput) GoString() string { return s.String() } // SetArn sets the Arn field's value. -func (s *CreateWirelessDeviceOutput) SetArn(v string) *CreateWirelessDeviceOutput { +func (s *GetDeviceProfileOutput) SetArn(v string) *GetDeviceProfileOutput { s.Arn = &v return s } // SetId sets the Id field's value. -func (s *CreateWirelessDeviceOutput) SetId(v string) *CreateWirelessDeviceOutput { +func (s *GetDeviceProfileOutput) SetId(v string) *GetDeviceProfileOutput { s.Id = &v return s } -type CreateWirelessGatewayInput struct { - _ struct{} `type:"structure"` +// SetLoRaWAN sets the LoRaWAN field's value. +func (s *GetDeviceProfileOutput) SetLoRaWAN(v *LoRaWANDeviceProfile) *GetDeviceProfileOutput { + s.LoRaWAN = v + return s +} - // Each resource must have a unique client request token. If you try to create - // a new resource with the same token as a resource that already exists, an - // exception occurs. If you omit this value, AWS SDKs will automatically generate - // a unique client request. - ClientRequestToken *string `min:"1" type:"string" idempotencyToken:"true"` +// SetName sets the Name field's value. +func (s *GetDeviceProfileOutput) SetName(v string) *GetDeviceProfileOutput { + s.Name = &v + return s +} - // The description of the new resource. - Description *string `type:"string"` +type GetFuotaTaskInput struct { + _ struct{} `type:"structure" nopayload:"true"` - // The gateway configuration information to use to create the wireless gateway. + // The ID of a FUOTA task. // - // LoRaWAN is a required field - LoRaWAN *LoRaWANGateway `type:"structure" required:"true"` - - // The name of the new resource. - Name *string `type:"string"` - - // The tags to attach to the new wireless gateway. Tags are metadata that you - // can use to manage a resource. - Tags []*Tag `type:"list"` + // Id is a required field + Id *string `location:"uri" locationName:"Id" type:"string" required:"true"` } // String returns the string representation. @@ -6809,7 +12131,7 @@ type CreateWirelessGatewayInput 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 CreateWirelessGatewayInput) String() string { +func (s GetFuotaTaskInput) String() string { return awsutil.Prettify(s) } @@ -6818,28 +12140,18 @@ func (s CreateWirelessGatewayInput) 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 CreateWirelessGatewayInput) GoString() string { +func (s GetFuotaTaskInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *CreateWirelessGatewayInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateWirelessGatewayInput"} - if s.ClientRequestToken != nil && len(*s.ClientRequestToken) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ClientRequestToken", 1)) - } - if s.LoRaWAN == nil { - invalidParams.Add(request.NewErrParamRequired("LoRaWAN")) +func (s *GetFuotaTaskInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetFuotaTaskInput"} + if s.Id == nil { + invalidParams.Add(request.NewErrParamRequired("Id")) } - if s.Tags != nil { - for i, v := range s.Tags { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) - } - } + if s.Id != nil && len(*s.Id) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Id", 1)) } if invalidParams.Len() > 0 { @@ -6848,44 +12160,42 @@ func (s *CreateWirelessGatewayInput) Validate() error { return nil } -// SetClientRequestToken sets the ClientRequestToken field's value. -func (s *CreateWirelessGatewayInput) SetClientRequestToken(v string) *CreateWirelessGatewayInput { - s.ClientRequestToken = &v +// SetId sets the Id field's value. +func (s *GetFuotaTaskInput) SetId(v string) *GetFuotaTaskInput { + s.Id = &v return s } -// SetDescription sets the Description field's value. -func (s *CreateWirelessGatewayInput) SetDescription(v string) *CreateWirelessGatewayInput { - s.Description = &v - return s -} +type GetFuotaTaskOutput struct { + _ struct{} `type:"structure"` -// SetLoRaWAN sets the LoRaWAN field's value. -func (s *CreateWirelessGatewayInput) SetLoRaWAN(v *LoRaWANGateway) *CreateWirelessGatewayInput { - s.LoRaWAN = v - return s -} + // The arn of a FUOTA task. + Arn *string `type:"string"` -// SetName sets the Name field's value. -func (s *CreateWirelessGatewayInput) SetName(v string) *CreateWirelessGatewayInput { - s.Name = &v - return s -} + // Created at timestamp for the resource. + CreatedAt *time.Time `type:"timestamp"` -// SetTags sets the Tags field's value. -func (s *CreateWirelessGatewayInput) SetTags(v []*Tag) *CreateWirelessGatewayInput { - s.Tags = v - return s -} + // The description of the new resource. + Description *string `type:"string"` -type CreateWirelessGatewayOutput struct { - _ struct{} `type:"structure"` + // The S3 URI points to a firmware update image that is to be used with a FUOTA + // task. + FirmwareUpdateImage *string `min:"1" type:"string"` - // The Amazon Resource Name of the new resource. - Arn *string `type:"string"` + // The firmware update role that is to be used with a FUOTA task. + FirmwareUpdateRole *string `min:"1" type:"string"` - // The ID of the new wireless gateway. + // The ID of a FUOTA task. Id *string `type:"string"` + + // The LoRaWAN information returned from getting a FUOTA task. + LoRaWAN *LoRaWANFuotaTaskGetInfo `type:"structure"` + + // The name of a FUOTA task. + Name *string `type:"string"` + + // The status of a FUOTA task. + Status *string `type:"string" enum:"FuotaTaskStatus"` } // String returns the string representation. @@ -6893,7 +12203,7 @@ type CreateWirelessGatewayOutput 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 CreateWirelessGatewayOutput) String() string { +func (s GetFuotaTaskOutput) String() string { return awsutil.Prettify(s) } @@ -6902,47 +12212,66 @@ func (s CreateWirelessGatewayOutput) 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 CreateWirelessGatewayOutput) GoString() string { +func (s GetFuotaTaskOutput) GoString() string { return s.String() } // SetArn sets the Arn field's value. -func (s *CreateWirelessGatewayOutput) SetArn(v string) *CreateWirelessGatewayOutput { +func (s *GetFuotaTaskOutput) SetArn(v string) *GetFuotaTaskOutput { s.Arn = &v return s } -// SetId sets the Id field's value. -func (s *CreateWirelessGatewayOutput) SetId(v string) *CreateWirelessGatewayOutput { - s.Id = &v +// SetCreatedAt sets the CreatedAt field's value. +func (s *GetFuotaTaskOutput) SetCreatedAt(v time.Time) *GetFuotaTaskOutput { + s.CreatedAt = &v return s } -type CreateWirelessGatewayTaskDefinitionInput struct { - _ struct{} `type:"structure"` +// SetDescription sets the Description field's value. +func (s *GetFuotaTaskOutput) SetDescription(v string) *GetFuotaTaskOutput { + s.Description = &v + return s +} - // Whether to automatically create tasks using this task definition for all - // gateways with the specified current version. If false, the task must me created - // by calling CreateWirelessGatewayTask. - // - // AutoCreateTasks is a required field - AutoCreateTasks *bool `type:"boolean" required:"true"` +// SetFirmwareUpdateImage sets the FirmwareUpdateImage field's value. +func (s *GetFuotaTaskOutput) SetFirmwareUpdateImage(v string) *GetFuotaTaskOutput { + s.FirmwareUpdateImage = &v + return s +} - // Each resource must have a unique client request token. If you try to create - // a new resource with the same token as a resource that already exists, an - // exception occurs. If you omit this value, AWS SDKs will automatically generate - // a unique client request. - ClientRequestToken *string `min:"1" type:"string" idempotencyToken:"true"` +// SetFirmwareUpdateRole sets the FirmwareUpdateRole field's value. +func (s *GetFuotaTaskOutput) SetFirmwareUpdateRole(v string) *GetFuotaTaskOutput { + s.FirmwareUpdateRole = &v + return s +} - // The name of the new resource. - Name *string `min:"1" type:"string"` +// SetId sets the Id field's value. +func (s *GetFuotaTaskOutput) SetId(v string) *GetFuotaTaskOutput { + s.Id = &v + return s +} - // The tags to attach to the specified resource. Tags are metadata that you - // can use to manage a resource. - Tags []*Tag `type:"list"` +// SetLoRaWAN sets the LoRaWAN field's value. +func (s *GetFuotaTaskOutput) SetLoRaWAN(v *LoRaWANFuotaTaskGetInfo) *GetFuotaTaskOutput { + s.LoRaWAN = v + return s +} - // Information about the gateways to update. - Update *UpdateWirelessGatewayTaskCreate `type:"structure"` +// SetName sets the Name field's value. +func (s *GetFuotaTaskOutput) SetName(v string) *GetFuotaTaskOutput { + s.Name = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *GetFuotaTaskOutput) SetStatus(v string) *GetFuotaTaskOutput { + s.Status = &v + return s +} + +type GetLogLevelsByResourceTypesInput struct { + _ struct{} `type:"structure" nopayload:"true"` } // String returns the string representation. @@ -6950,7 +12279,7 @@ type CreateWirelessGatewayTaskDefinitionInput 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 CreateWirelessGatewayTaskDefinitionInput) String() string { +func (s GetLogLevelsByResourceTypesInput) String() string { return awsutil.Prettify(s) } @@ -6959,82 +12288,21 @@ func (s CreateWirelessGatewayTaskDefinitionInput) 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 CreateWirelessGatewayTaskDefinitionInput) GoString() string { +func (s GetLogLevelsByResourceTypesInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateWirelessGatewayTaskDefinitionInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateWirelessGatewayTaskDefinitionInput"} - if s.AutoCreateTasks == nil { - invalidParams.Add(request.NewErrParamRequired("AutoCreateTasks")) - } - if s.ClientRequestToken != nil && len(*s.ClientRequestToken) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ClientRequestToken", 1)) - } - if s.Name != nil && len(*s.Name) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Name", 1)) - } - if s.Tags != nil { - for i, v := range s.Tags { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) - } - } - } - if s.Update != nil { - if err := s.Update.Validate(); err != nil { - invalidParams.AddNested("Update", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetAutoCreateTasks sets the AutoCreateTasks field's value. -func (s *CreateWirelessGatewayTaskDefinitionInput) SetAutoCreateTasks(v bool) *CreateWirelessGatewayTaskDefinitionInput { - s.AutoCreateTasks = &v - return s -} - -// SetClientRequestToken sets the ClientRequestToken field's value. -func (s *CreateWirelessGatewayTaskDefinitionInput) SetClientRequestToken(v string) *CreateWirelessGatewayTaskDefinitionInput { - s.ClientRequestToken = &v - return s -} - -// SetName sets the Name field's value. -func (s *CreateWirelessGatewayTaskDefinitionInput) SetName(v string) *CreateWirelessGatewayTaskDefinitionInput { - s.Name = &v - return s -} - -// SetTags sets the Tags field's value. -func (s *CreateWirelessGatewayTaskDefinitionInput) SetTags(v []*Tag) *CreateWirelessGatewayTaskDefinitionInput { - s.Tags = v - return s -} - -// SetUpdate sets the Update field's value. -func (s *CreateWirelessGatewayTaskDefinitionInput) SetUpdate(v *UpdateWirelessGatewayTaskCreate) *CreateWirelessGatewayTaskDefinitionInput { - s.Update = v - return s -} - -type CreateWirelessGatewayTaskDefinitionOutput struct { +type GetLogLevelsByResourceTypesOutput struct { _ struct{} `type:"structure"` - // The Amazon Resource Name of the resource. - Arn *string `type:"string"` + // The log level for a log message. + DefaultLogLevel *string `type:"string" enum:"LogLevel"` - // The ID of the new wireless gateway task definition. - Id *string `type:"string"` + // The list of wireless device log options. + WirelessDeviceLogOptions []*WirelessDeviceLogOption `type:"list"` + + // The list of wireless gateway log options. + WirelessGatewayLogOptions []*WirelessGatewayLogOption `type:"list"` } // String returns the string representation. @@ -7042,7 +12310,7 @@ type CreateWirelessGatewayTaskDefinitionOutput 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 CreateWirelessGatewayTaskDefinitionOutput) String() string { +func (s GetLogLevelsByResourceTypesOutput) String() string { return awsutil.Prettify(s) } @@ -7051,34 +12319,35 @@ func (s CreateWirelessGatewayTaskDefinitionOutput) 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 CreateWirelessGatewayTaskDefinitionOutput) GoString() string { +func (s GetLogLevelsByResourceTypesOutput) GoString() string { return s.String() } -// SetArn sets the Arn field's value. -func (s *CreateWirelessGatewayTaskDefinitionOutput) SetArn(v string) *CreateWirelessGatewayTaskDefinitionOutput { - s.Arn = &v +// SetDefaultLogLevel sets the DefaultLogLevel field's value. +func (s *GetLogLevelsByResourceTypesOutput) SetDefaultLogLevel(v string) *GetLogLevelsByResourceTypesOutput { + s.DefaultLogLevel = &v return s } -// SetId sets the Id field's value. -func (s *CreateWirelessGatewayTaskDefinitionOutput) SetId(v string) *CreateWirelessGatewayTaskDefinitionOutput { - s.Id = &v +// SetWirelessDeviceLogOptions sets the WirelessDeviceLogOptions field's value. +func (s *GetLogLevelsByResourceTypesOutput) SetWirelessDeviceLogOptions(v []*WirelessDeviceLogOption) *GetLogLevelsByResourceTypesOutput { + s.WirelessDeviceLogOptions = v return s } -type CreateWirelessGatewayTaskInput struct { - _ struct{} `type:"structure"` +// SetWirelessGatewayLogOptions sets the WirelessGatewayLogOptions field's value. +func (s *GetLogLevelsByResourceTypesOutput) SetWirelessGatewayLogOptions(v []*WirelessGatewayLogOption) *GetLogLevelsByResourceTypesOutput { + s.WirelessGatewayLogOptions = v + return s +} - // The ID of the resource to update. +type GetMulticastGroupInput struct { + _ struct{} `type:"structure" nopayload:"true"` + + // The ID of the multicast group. // // Id is a required field Id *string `location:"uri" locationName:"Id" type:"string" required:"true"` - - // The ID of the WirelessGatewayTaskDefinition. - // - // WirelessGatewayTaskDefinitionId is a required field - WirelessGatewayTaskDefinitionId *string `type:"string" required:"true"` } // String returns the string representation. @@ -7086,7 +12355,7 @@ type CreateWirelessGatewayTaskInput 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 CreateWirelessGatewayTaskInput) String() string { +func (s GetMulticastGroupInput) String() string { return awsutil.Prettify(s) } @@ -7095,22 +12364,19 @@ func (s CreateWirelessGatewayTaskInput) 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 CreateWirelessGatewayTaskInput) GoString() string { +func (s GetMulticastGroupInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *CreateWirelessGatewayTaskInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateWirelessGatewayTaskInput"} +func (s *GetMulticastGroupInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetMulticastGroupInput"} 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.WirelessGatewayTaskDefinitionId == nil { - invalidParams.Add(request.NewErrParamRequired("WirelessGatewayTaskDefinitionId")) - } if invalidParams.Len() > 0 { return invalidParams @@ -7119,25 +12385,35 @@ func (s *CreateWirelessGatewayTaskInput) Validate() error { } // SetId sets the Id field's value. -func (s *CreateWirelessGatewayTaskInput) SetId(v string) *CreateWirelessGatewayTaskInput { +func (s *GetMulticastGroupInput) SetId(v string) *GetMulticastGroupInput { s.Id = &v return s } -// SetWirelessGatewayTaskDefinitionId sets the WirelessGatewayTaskDefinitionId field's value. -func (s *CreateWirelessGatewayTaskInput) SetWirelessGatewayTaskDefinitionId(v string) *CreateWirelessGatewayTaskInput { - s.WirelessGatewayTaskDefinitionId = &v - return s -} - -type CreateWirelessGatewayTaskOutput struct { +type GetMulticastGroupOutput struct { _ struct{} `type:"structure"` - // The status of the request. - Status *string `type:"string" enum:"WirelessGatewayTaskStatus"` + // The arn of the multicast group. + Arn *string `type:"string"` - // The ID of the WirelessGatewayTaskDefinition. - WirelessGatewayTaskDefinitionId *string `type:"string"` + // Created at timestamp for the resource. + CreatedAt *time.Time `type:"timestamp"` + + // The description of the new resource. + Description *string `type:"string"` + + // The ID of the multicast group. + Id *string `type:"string"` + + // The LoRaWAN information that is to be returned from getting multicast group + // information. + LoRaWAN *LoRaWANMulticastGet `type:"structure"` + + // The name of the multicast group. + Name *string `type:"string"` + + // The status of the multicast group. + Status *string `type:"string"` } // String returns the string representation. @@ -7145,7 +12421,7 @@ type CreateWirelessGatewayTaskOutput 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 CreateWirelessGatewayTaskOutput) String() string { +func (s GetMulticastGroupOutput) String() string { return awsutil.Prettify(s) } @@ -7154,29 +12430,59 @@ func (s CreateWirelessGatewayTaskOutput) 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 CreateWirelessGatewayTaskOutput) GoString() string { +func (s GetMulticastGroupOutput) GoString() string { return s.String() } -// SetStatus sets the Status field's value. -func (s *CreateWirelessGatewayTaskOutput) SetStatus(v string) *CreateWirelessGatewayTaskOutput { - s.Status = &v +// SetArn sets the Arn field's value. +func (s *GetMulticastGroupOutput) SetArn(v string) *GetMulticastGroupOutput { + s.Arn = &v return s } -// SetWirelessGatewayTaskDefinitionId sets the WirelessGatewayTaskDefinitionId field's value. -func (s *CreateWirelessGatewayTaskOutput) SetWirelessGatewayTaskDefinitionId(v string) *CreateWirelessGatewayTaskOutput { - s.WirelessGatewayTaskDefinitionId = &v +// SetCreatedAt sets the CreatedAt field's value. +func (s *GetMulticastGroupOutput) SetCreatedAt(v time.Time) *GetMulticastGroupOutput { + s.CreatedAt = &v return s } -type DeleteDestinationInput struct { +// SetDescription sets the Description field's value. +func (s *GetMulticastGroupOutput) SetDescription(v string) *GetMulticastGroupOutput { + s.Description = &v + return s +} + +// SetId sets the Id field's value. +func (s *GetMulticastGroupOutput) SetId(v string) *GetMulticastGroupOutput { + s.Id = &v + return s +} + +// SetLoRaWAN sets the LoRaWAN field's value. +func (s *GetMulticastGroupOutput) SetLoRaWAN(v *LoRaWANMulticastGet) *GetMulticastGroupOutput { + s.LoRaWAN = v + return s +} + +// SetName sets the Name field's value. +func (s *GetMulticastGroupOutput) SetName(v string) *GetMulticastGroupOutput { + s.Name = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *GetMulticastGroupOutput) SetStatus(v string) *GetMulticastGroupOutput { + s.Status = &v + return s +} + +type GetMulticastGroupSessionInput struct { _ struct{} `type:"structure" nopayload:"true"` - // The name of the resource to delete. + // The ID of the multicast group. // - // Name is a required field - Name *string `location:"uri" locationName:"Name" type:"string" required:"true"` + // Id is a required field + Id *string `location:"uri" locationName:"Id" type:"string" required:"true"` } // String returns the string representation. @@ -7184,7 +12490,7 @@ type DeleteDestinationInput 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 DeleteDestinationInput) String() string { +func (s GetMulticastGroupSessionInput) String() string { return awsutil.Prettify(s) } @@ -7193,18 +12499,18 @@ func (s DeleteDestinationInput) 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 DeleteDestinationInput) GoString() string { +func (s GetMulticastGroupSessionInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteDestinationInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteDestinationInput"} - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) +func (s *GetMulticastGroupSessionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetMulticastGroupSessionInput"} + if s.Id == nil { + invalidParams.Add(request.NewErrParamRequired("Id")) } - if s.Name != nil && len(*s.Name) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + if s.Id != nil && len(*s.Id) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Id", 1)) } if invalidParams.Len() > 0 { @@ -7213,14 +12519,17 @@ func (s *DeleteDestinationInput) Validate() error { return nil } -// SetName sets the Name field's value. -func (s *DeleteDestinationInput) SetName(v string) *DeleteDestinationInput { - s.Name = &v +// SetId sets the Id field's value. +func (s *GetMulticastGroupSessionInput) SetId(v string) *GetMulticastGroupSessionInput { + s.Id = &v return s } -type DeleteDestinationOutput struct { +type GetMulticastGroupSessionOutput struct { _ struct{} `type:"structure"` + + // The LoRaWAN information used with the multicast session. + LoRaWAN *LoRaWANMulticastSession `type:"structure"` } // String returns the string representation. @@ -7228,7 +12537,7 @@ type DeleteDestinationOutput 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 DeleteDestinationOutput) String() string { +func (s GetMulticastGroupSessionOutput) String() string { return awsutil.Prettify(s) } @@ -7237,17 +12546,28 @@ func (s DeleteDestinationOutput) 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 DeleteDestinationOutput) GoString() string { +func (s GetMulticastGroupSessionOutput) GoString() string { return s.String() } -type DeleteDeviceProfileInput struct { +// SetLoRaWAN sets the LoRaWAN field's value. +func (s *GetMulticastGroupSessionOutput) SetLoRaWAN(v *LoRaWANMulticastSession) *GetMulticastGroupSessionOutput { + s.LoRaWAN = v + return s +} + +type GetPartnerAccountInput struct { _ struct{} `type:"structure" nopayload:"true"` - // The ID of the resource to delete. + // The partner account ID to disassociate from the AWS account. // - // Id is a required field - Id *string `location:"uri" locationName:"Id" type:"string" required:"true"` + // PartnerAccountId is a required field + PartnerAccountId *string `location:"uri" locationName:"PartnerAccountId" type:"string" required:"true"` + + // The partner type. + // + // PartnerType is a required field + PartnerType *string `location:"querystring" locationName:"partnerType" type:"string" required:"true" enum:"PartnerType"` } // String returns the string representation. @@ -7255,7 +12575,7 @@ type DeleteDeviceProfileInput 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 DeleteDeviceProfileInput) String() string { +func (s GetPartnerAccountInput) String() string { return awsutil.Prettify(s) } @@ -7264,18 +12584,21 @@ func (s DeleteDeviceProfileInput) 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 DeleteDeviceProfileInput) GoString() string { +func (s GetPartnerAccountInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteDeviceProfileInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteDeviceProfileInput"} - if s.Id == nil { - invalidParams.Add(request.NewErrParamRequired("Id")) +func (s *GetPartnerAccountInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetPartnerAccountInput"} + if s.PartnerAccountId == nil { + invalidParams.Add(request.NewErrParamRequired("PartnerAccountId")) } - if s.Id != nil && len(*s.Id) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Id", 1)) + if s.PartnerAccountId != nil && len(*s.PartnerAccountId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("PartnerAccountId", 1)) + } + if s.PartnerType == nil { + invalidParams.Add(request.NewErrParamRequired("PartnerType")) } if invalidParams.Len() > 0 { @@ -7284,14 +12607,26 @@ func (s *DeleteDeviceProfileInput) Validate() error { return nil } -// SetId sets the Id field's value. -func (s *DeleteDeviceProfileInput) SetId(v string) *DeleteDeviceProfileInput { - s.Id = &v +// SetPartnerAccountId sets the PartnerAccountId field's value. +func (s *GetPartnerAccountInput) SetPartnerAccountId(v string) *GetPartnerAccountInput { + s.PartnerAccountId = &v return s } -type DeleteDeviceProfileOutput struct { +// SetPartnerType sets the PartnerType field's value. +func (s *GetPartnerAccountInput) SetPartnerType(v string) *GetPartnerAccountInput { + s.PartnerType = &v + return s +} + +type GetPartnerAccountOutput struct { _ struct{} `type:"structure"` + + // Whether the partner account is linked to the AWS account. + AccountLinked *bool `type:"boolean"` + + // The Sidewalk account credentials. + Sidewalk *SidewalkAccountInfoWithFingerprint `type:"structure"` } // String returns the string representation. @@ -7299,7 +12634,7 @@ type DeleteDeviceProfileOutput 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 DeleteDeviceProfileOutput) String() string { +func (s GetPartnerAccountOutput) String() string { return awsutil.Prettify(s) } @@ -7308,17 +12643,37 @@ func (s DeleteDeviceProfileOutput) 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 DeleteDeviceProfileOutput) GoString() string { +func (s GetPartnerAccountOutput) GoString() string { return s.String() } -type DeleteServiceProfileInput struct { +// SetAccountLinked sets the AccountLinked field's value. +func (s *GetPartnerAccountOutput) SetAccountLinked(v bool) *GetPartnerAccountOutput { + s.AccountLinked = &v + return s +} + +// SetSidewalk sets the Sidewalk field's value. +func (s *GetPartnerAccountOutput) SetSidewalk(v *SidewalkAccountInfoWithFingerprint) *GetPartnerAccountOutput { + s.Sidewalk = v + return s +} + +type GetResourceEventConfigurationInput struct { _ struct{} `type:"structure" nopayload:"true"` - // The ID of the resource to delete. + // Resource identifier to opt in for event messaging. // - // Id is a required field - Id *string `location:"uri" locationName:"Id" type:"string" required:"true"` + // Identifier is a required field + Identifier *string `location:"uri" locationName:"Identifier" type:"string" required:"true"` + + // Identifier type of the particular resource identifier for event configuration. + // + // IdentifierType is a required field + IdentifierType *string `location:"querystring" locationName:"identifierType" type:"string" required:"true" enum:"IdentifierType"` + + // Partner type of the resource if the identifier type is PartnerAccountId. + PartnerType *string `location:"querystring" locationName:"partnerType" type:"string" enum:"EventNotificationPartnerType"` } // String returns the string representation. @@ -7326,7 +12681,7 @@ type DeleteServiceProfileInput 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 DeleteServiceProfileInput) String() string { +func (s GetResourceEventConfigurationInput) String() string { return awsutil.Prettify(s) } @@ -7335,18 +12690,21 @@ func (s DeleteServiceProfileInput) 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 DeleteServiceProfileInput) GoString() string { +func (s GetResourceEventConfigurationInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteServiceProfileInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteServiceProfileInput"} - if s.Id == nil { - invalidParams.Add(request.NewErrParamRequired("Id")) +func (s *GetResourceEventConfigurationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetResourceEventConfigurationInput"} + if s.Identifier == nil { + invalidParams.Add(request.NewErrParamRequired("Identifier")) } - if s.Id != nil && len(*s.Id) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Id", 1)) + if s.Identifier != nil && len(*s.Identifier) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Identifier", 1)) + } + if s.IdentifierType == nil { + invalidParams.Add(request.NewErrParamRequired("IdentifierType")) } if invalidParams.Len() > 0 { @@ -7355,14 +12713,32 @@ func (s *DeleteServiceProfileInput) Validate() error { return nil } -// SetId sets the Id field's value. -func (s *DeleteServiceProfileInput) SetId(v string) *DeleteServiceProfileInput { - s.Id = &v +// SetIdentifier sets the Identifier field's value. +func (s *GetResourceEventConfigurationInput) SetIdentifier(v string) *GetResourceEventConfigurationInput { + s.Identifier = &v return s } -type DeleteServiceProfileOutput struct { +// SetIdentifierType sets the IdentifierType field's value. +func (s *GetResourceEventConfigurationInput) SetIdentifierType(v string) *GetResourceEventConfigurationInput { + s.IdentifierType = &v + return s +} + +// SetPartnerType sets the PartnerType field's value. +func (s *GetResourceEventConfigurationInput) SetPartnerType(v string) *GetResourceEventConfigurationInput { + s.PartnerType = &v + return s +} + +type GetResourceEventConfigurationOutput struct { _ struct{} `type:"structure"` + + // Event configuration for the device registration state event + DeviceRegistrationState *DeviceRegistrationStateEventConfiguration `type:"structure"` + + // Event configuration for the Proximity event + Proximity *ProximityEventConfiguration `type:"structure"` } // String returns the string representation. @@ -7370,7 +12746,7 @@ type DeleteServiceProfileOutput 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 DeleteServiceProfileOutput) String() string { +func (s GetResourceEventConfigurationOutput) String() string { return awsutil.Prettify(s) } @@ -7379,17 +12755,35 @@ func (s DeleteServiceProfileOutput) 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 DeleteServiceProfileOutput) GoString() string { +func (s GetResourceEventConfigurationOutput) GoString() string { return s.String() } -type DeleteWirelessDeviceInput struct { +// SetDeviceRegistrationState sets the DeviceRegistrationState field's value. +func (s *GetResourceEventConfigurationOutput) SetDeviceRegistrationState(v *DeviceRegistrationStateEventConfiguration) *GetResourceEventConfigurationOutput { + s.DeviceRegistrationState = v + return s +} + +// SetProximity sets the Proximity field's value. +func (s *GetResourceEventConfigurationOutput) SetProximity(v *ProximityEventConfiguration) *GetResourceEventConfigurationOutput { + s.Proximity = v + return s +} + +type GetResourceLogLevelInput struct { _ struct{} `type:"structure" nopayload:"true"` - // The ID of the resource to delete. + // The identifier of the resource. For a Wireless Device, it is the wireless + // device ID. For a wireless gateway, it is the wireless gateway ID. // - // Id is a required field - Id *string `location:"uri" locationName:"Id" type:"string" required:"true"` + // ResourceIdentifier is a required field + ResourceIdentifier *string `location:"uri" locationName:"ResourceIdentifier" type:"string" required:"true"` + + // The type of the resource, which can be WirelessDevice or WirelessGateway. + // + // ResourceType is a required field + ResourceType *string `location:"querystring" locationName:"resourceType" type:"string" required:"true"` } // String returns the string representation. @@ -7397,7 +12791,7 @@ type DeleteWirelessDeviceInput 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 DeleteWirelessDeviceInput) String() string { +func (s GetResourceLogLevelInput) String() string { return awsutil.Prettify(s) } @@ -7406,18 +12800,21 @@ func (s DeleteWirelessDeviceInput) 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 DeleteWirelessDeviceInput) GoString() string { +func (s GetResourceLogLevelInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteWirelessDeviceInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteWirelessDeviceInput"} - if s.Id == nil { - invalidParams.Add(request.NewErrParamRequired("Id")) +func (s *GetResourceLogLevelInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetResourceLogLevelInput"} + if s.ResourceIdentifier == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceIdentifier")) } - if s.Id != nil && len(*s.Id) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Id", 1)) + if s.ResourceIdentifier != nil && len(*s.ResourceIdentifier) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResourceIdentifier", 1)) + } + if s.ResourceType == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceType")) } if invalidParams.Len() > 0 { @@ -7426,14 +12823,23 @@ func (s *DeleteWirelessDeviceInput) Validate() error { return nil } -// SetId sets the Id field's value. -func (s *DeleteWirelessDeviceInput) SetId(v string) *DeleteWirelessDeviceInput { - s.Id = &v +// SetResourceIdentifier sets the ResourceIdentifier field's value. +func (s *GetResourceLogLevelInput) SetResourceIdentifier(v string) *GetResourceLogLevelInput { + s.ResourceIdentifier = &v return s } -type DeleteWirelessDeviceOutput struct { +// SetResourceType sets the ResourceType field's value. +func (s *GetResourceLogLevelInput) SetResourceType(v string) *GetResourceLogLevelInput { + s.ResourceType = &v + return s +} + +type GetResourceLogLevelOutput struct { _ struct{} `type:"structure"` + + // The log level for a log message. + LogLevel *string `type:"string" enum:"LogLevel"` } // String returns the string representation. @@ -7441,7 +12847,7 @@ type DeleteWirelessDeviceOutput 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 DeleteWirelessDeviceOutput) String() string { +func (s GetResourceLogLevelOutput) String() string { return awsutil.Prettify(s) } @@ -7450,17 +12856,23 @@ func (s DeleteWirelessDeviceOutput) 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 DeleteWirelessDeviceOutput) GoString() string { +func (s GetResourceLogLevelOutput) GoString() string { return s.String() } -type DeleteWirelessGatewayInput struct { +// SetLogLevel sets the LogLevel field's value. +func (s *GetResourceLogLevelOutput) SetLogLevel(v string) *GetResourceLogLevelOutput { + s.LogLevel = &v + return s +} + +type GetServiceEndpointInput struct { _ struct{} `type:"structure" nopayload:"true"` - // The ID of the resource to delete. - // - // Id is a required field - Id *string `location:"uri" locationName:"Id" type:"string" required:"true"` + // The service type for which to get endpoint information about. Can be CUPS + // for the Configuration and Update Server endpoint, or LNS for the LoRaWAN + // Network Server endpoint. + ServiceType *string `location:"querystring" locationName:"serviceType" type:"string" enum:"WirelessGatewayServiceType"` } // String returns the string representation. @@ -7468,7 +12880,7 @@ type DeleteWirelessGatewayInput 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 DeleteWirelessGatewayInput) String() string { +func (s GetServiceEndpointInput) String() string { return awsutil.Prettify(s) } @@ -7477,34 +12889,27 @@ func (s DeleteWirelessGatewayInput) 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 DeleteWirelessGatewayInput) GoString() string { +func (s GetServiceEndpointInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteWirelessGatewayInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteWirelessGatewayInput"} - 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 *DeleteWirelessGatewayInput) SetId(v string) *DeleteWirelessGatewayInput { - s.Id = &v +// SetServiceType sets the ServiceType field's value. +func (s *GetServiceEndpointInput) SetServiceType(v string) *GetServiceEndpointInput { + s.ServiceType = &v return s } -type DeleteWirelessGatewayOutput struct { +type GetServiceEndpointOutput struct { _ struct{} `type:"structure"` + + // The Root CA of the server trust certificate. + ServerTrust *string `min:"1" type:"string"` + + // The service endpoint value. + ServiceEndpoint *string `min:"1" type:"string"` + + // The endpoint's service type. + ServiceType *string `type:"string" enum:"WirelessGatewayServiceType"` } // String returns the string representation. @@ -7512,23 +12917,41 @@ type DeleteWirelessGatewayOutput 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 DeleteWirelessGatewayOutput) String() string { +func (s GetServiceEndpointOutput) 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 DeleteWirelessGatewayOutput) GoString() string { - return s.String() +// 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 GetServiceEndpointOutput) GoString() string { + return s.String() +} + +// SetServerTrust sets the ServerTrust field's value. +func (s *GetServiceEndpointOutput) SetServerTrust(v string) *GetServiceEndpointOutput { + s.ServerTrust = &v + return s +} + +// SetServiceEndpoint sets the ServiceEndpoint field's value. +func (s *GetServiceEndpointOutput) SetServiceEndpoint(v string) *GetServiceEndpointOutput { + s.ServiceEndpoint = &v + return s } -type DeleteWirelessGatewayTaskDefinitionInput struct { +// SetServiceType sets the ServiceType field's value. +func (s *GetServiceEndpointOutput) SetServiceType(v string) *GetServiceEndpointOutput { + s.ServiceType = &v + return s +} + +type GetServiceProfileInput struct { _ struct{} `type:"structure" nopayload:"true"` - // The ID of the resource to delete. + // The ID of the resource to get. // // Id is a required field Id *string `location:"uri" locationName:"Id" type:"string" required:"true"` @@ -7539,7 +12962,7 @@ type DeleteWirelessGatewayTaskDefinitionInput 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 DeleteWirelessGatewayTaskDefinitionInput) String() string { +func (s GetServiceProfileInput) String() string { return awsutil.Prettify(s) } @@ -7548,13 +12971,13 @@ func (s DeleteWirelessGatewayTaskDefinitionInput) 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 DeleteWirelessGatewayTaskDefinitionInput) GoString() string { +func (s GetServiceProfileInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteWirelessGatewayTaskDefinitionInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteWirelessGatewayTaskDefinitionInput"} +func (s *GetServiceProfileInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetServiceProfileInput"} if s.Id == nil { invalidParams.Add(request.NewErrParamRequired("Id")) } @@ -7569,13 +12992,25 @@ func (s *DeleteWirelessGatewayTaskDefinitionInput) Validate() error { } // SetId sets the Id field's value. -func (s *DeleteWirelessGatewayTaskDefinitionInput) SetId(v string) *DeleteWirelessGatewayTaskDefinitionInput { +func (s *GetServiceProfileInput) SetId(v string) *GetServiceProfileInput { s.Id = &v return s } -type DeleteWirelessGatewayTaskDefinitionOutput struct { +type GetServiceProfileOutput struct { _ struct{} `type:"structure"` + + // The Amazon Resource Name of the resource. + Arn *string `type:"string"` + + // The ID of the service profile. + Id *string `type:"string"` + + // Information about the service profile. + LoRaWAN *LoRaWANGetServiceProfileInfo `type:"structure"` + + // The name of the resource. + Name *string `type:"string"` } // String returns the string representation. @@ -7583,7 +13018,7 @@ type DeleteWirelessGatewayTaskDefinitionOutput 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 DeleteWirelessGatewayTaskDefinitionOutput) String() string { +func (s GetServiceProfileOutput) String() string { return awsutil.Prettify(s) } @@ -7592,17 +13027,46 @@ func (s DeleteWirelessGatewayTaskDefinitionOutput) 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 DeleteWirelessGatewayTaskDefinitionOutput) GoString() string { +func (s GetServiceProfileOutput) GoString() string { return s.String() } -type DeleteWirelessGatewayTaskInput struct { +// SetArn sets the Arn field's value. +func (s *GetServiceProfileOutput) SetArn(v string) *GetServiceProfileOutput { + s.Arn = &v + return s +} + +// SetId sets the Id field's value. +func (s *GetServiceProfileOutput) SetId(v string) *GetServiceProfileOutput { + s.Id = &v + return s +} + +// SetLoRaWAN sets the LoRaWAN field's value. +func (s *GetServiceProfileOutput) SetLoRaWAN(v *LoRaWANGetServiceProfileInfo) *GetServiceProfileOutput { + s.LoRaWAN = v + return s +} + +// SetName sets the Name field's value. +func (s *GetServiceProfileOutput) SetName(v string) *GetServiceProfileOutput { + s.Name = &v + return s +} + +type GetWirelessDeviceInput struct { _ struct{} `type:"structure" nopayload:"true"` - // The ID of the resource to delete. + // The identifier of the wireless device to get. // - // Id is a required field - Id *string `location:"uri" locationName:"Id" type:"string" required:"true"` + // Identifier is a required field + Identifier *string `location:"uri" locationName:"Identifier" type:"string" required:"true"` + + // The type of identifier used in identifier. + // + // IdentifierType is a required field + IdentifierType *string `location:"querystring" locationName:"identifierType" type:"string" required:"true" enum:"WirelessDeviceIdType"` } // String returns the string representation. @@ -7610,7 +13074,7 @@ type DeleteWirelessGatewayTaskInput 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 DeleteWirelessGatewayTaskInput) String() string { +func (s GetWirelessDeviceInput) String() string { return awsutil.Prettify(s) } @@ -7619,18 +13083,21 @@ func (s DeleteWirelessGatewayTaskInput) 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 DeleteWirelessGatewayTaskInput) GoString() string { +func (s GetWirelessDeviceInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteWirelessGatewayTaskInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteWirelessGatewayTaskInput"} - if s.Id == nil { - invalidParams.Add(request.NewErrParamRequired("Id")) +func (s *GetWirelessDeviceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetWirelessDeviceInput"} + if s.Identifier == nil { + invalidParams.Add(request.NewErrParamRequired("Identifier")) } - if s.Id != nil && len(*s.Id) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Id", 1)) + if s.Identifier != nil && len(*s.Identifier) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Identifier", 1)) + } + if s.IdentifierType == nil { + invalidParams.Add(request.NewErrParamRequired("IdentifierType")) } if invalidParams.Len() > 0 { @@ -7639,36 +13106,19 @@ func (s *DeleteWirelessGatewayTaskInput) Validate() error { return nil } -// SetId sets the Id field's value. -func (s *DeleteWirelessGatewayTaskInput) SetId(v string) *DeleteWirelessGatewayTaskInput { - s.Id = &v +// SetIdentifier sets the Identifier field's value. +func (s *GetWirelessDeviceInput) SetIdentifier(v string) *GetWirelessDeviceInput { + s.Identifier = &v return s } -type DeleteWirelessGatewayTaskOutput 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 DeleteWirelessGatewayTaskOutput) 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 DeleteWirelessGatewayTaskOutput) GoString() string { - return s.String() +// SetIdentifierType sets the IdentifierType field's value. +func (s *GetWirelessDeviceInput) SetIdentifierType(v string) *GetWirelessDeviceInput { + s.IdentifierType = &v + return s } -// Describes a destination. -type Destinations struct { +type GetWirelessDeviceOutput struct { _ struct{} `type:"structure"` // The Amazon Resource Name of the resource. @@ -7677,17 +13127,30 @@ type Destinations struct { // The description of the resource. Description *string `type:"string"` - // The rule name or topic rule to send messages to. - Expression *string `type:"string"` + // The name of the destination to which the device is assigned. + DestinationName *string `type:"string"` - // The type of value in Expression. - ExpressionType *string `type:"string" enum:"ExpressionType"` + // The ID of the wireless device. + Id *string `type:"string"` + + // Information about the wireless device. + LoRaWAN *LoRaWANDevice `type:"structure"` // The name of the resource. Name *string `type:"string"` - // The ARN of the IAM Role that authorizes the destination. - RoleArn *string `min:"20" type:"string"` + // Sidewalk device object. + Sidewalk *SidewalkDevice `type:"structure"` + + // The ARN of the thing associated with the wireless device. + ThingArn *string `type:"string"` + + // The name of the thing associated with the wireless device. The value is empty + // if a thing isn't associated with the device. + ThingName *string `type:"string"` + + // The wireless device type. + Type *string `type:"string" enum:"WirelessDeviceType"` } // String returns the string representation. @@ -7695,7 +13158,7 @@ type Destinations 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 Destinations) String() string { +func (s GetWirelessDeviceOutput) String() string { return awsutil.Prettify(s) } @@ -7704,108 +13167,77 @@ func (s Destinations) 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 Destinations) GoString() string { +func (s GetWirelessDeviceOutput) GoString() string { return s.String() } // SetArn sets the Arn field's value. -func (s *Destinations) SetArn(v string) *Destinations { +func (s *GetWirelessDeviceOutput) SetArn(v string) *GetWirelessDeviceOutput { s.Arn = &v return s } // SetDescription sets the Description field's value. -func (s *Destinations) SetDescription(v string) *Destinations { +func (s *GetWirelessDeviceOutput) SetDescription(v string) *GetWirelessDeviceOutput { s.Description = &v return s } -// SetExpression sets the Expression field's value. -func (s *Destinations) SetExpression(v string) *Destinations { - s.Expression = &v +// SetDestinationName sets the DestinationName field's value. +func (s *GetWirelessDeviceOutput) SetDestinationName(v string) *GetWirelessDeviceOutput { + s.DestinationName = &v return s } -// SetExpressionType sets the ExpressionType field's value. -func (s *Destinations) SetExpressionType(v string) *Destinations { - s.ExpressionType = &v +// SetId sets the Id field's value. +func (s *GetWirelessDeviceOutput) SetId(v string) *GetWirelessDeviceOutput { + s.Id = &v return s } -// SetName sets the Name field's value. -func (s *Destinations) SetName(v string) *Destinations { - s.Name = &v +// SetLoRaWAN sets the LoRaWAN field's value. +func (s *GetWirelessDeviceOutput) SetLoRaWAN(v *LoRaWANDevice) *GetWirelessDeviceOutput { + s.LoRaWAN = v return s } -// SetRoleArn sets the RoleArn field's value. -func (s *Destinations) SetRoleArn(v string) *Destinations { - s.RoleArn = &v +// SetName sets the Name field's value. +func (s *GetWirelessDeviceOutput) SetName(v string) *GetWirelessDeviceOutput { + s.Name = &v return s } -// Describes a device profile. -type DeviceProfile struct { - _ struct{} `type:"structure"` - - // The Amazon Resource Name of the resource. - Arn *string `type:"string"` - - // The ID of the device profile. - Id *string `type:"string"` - - // The name of the resource. - Name *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 DeviceProfile) 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 DeviceProfile) GoString() string { - return s.String() +// SetSidewalk sets the Sidewalk field's value. +func (s *GetWirelessDeviceOutput) SetSidewalk(v *SidewalkDevice) *GetWirelessDeviceOutput { + s.Sidewalk = v + return s } -// SetArn sets the Arn field's value. -func (s *DeviceProfile) SetArn(v string) *DeviceProfile { - s.Arn = &v +// SetThingArn sets the ThingArn field's value. +func (s *GetWirelessDeviceOutput) SetThingArn(v string) *GetWirelessDeviceOutput { + s.ThingArn = &v return s } -// SetId sets the Id field's value. -func (s *DeviceProfile) SetId(v string) *DeviceProfile { - s.Id = &v +// SetThingName sets the ThingName field's value. +func (s *GetWirelessDeviceOutput) SetThingName(v string) *GetWirelessDeviceOutput { + s.ThingName = &v return s } -// SetName sets the Name field's value. -func (s *DeviceProfile) SetName(v string) *DeviceProfile { - s.Name = &v +// SetType sets the Type field's value. +func (s *GetWirelessDeviceOutput) SetType(v string) *GetWirelessDeviceOutput { + s.Type = &v return s } -type DisassociateAwsAccountFromPartnerAccountInput struct { - _ struct{} `type:"structure" nopayload:"true"` - - // The partner account ID to disassociate from the AWS account. - // - // PartnerAccountId is a required field - PartnerAccountId *string `location:"uri" locationName:"PartnerAccountId" type:"string" required:"true"` +type GetWirelessDeviceStatisticsInput struct { + _ struct{} `type:"structure" nopayload:"true"` - // The partner type. + // The ID of the wireless device for which to get the data. // - // PartnerType is a required field - PartnerType *string `location:"querystring" locationName:"partnerType" type:"string" required:"true" enum:"PartnerType"` + // WirelessDeviceId is a required field + WirelessDeviceId *string `location:"uri" locationName:"Id" type:"string" required:"true"` } // String returns the string representation. @@ -7813,7 +13245,7 @@ type DisassociateAwsAccountFromPartnerAccountInput 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 DisassociateAwsAccountFromPartnerAccountInput) String() string { +func (s GetWirelessDeviceStatisticsInput) String() string { return awsutil.Prettify(s) } @@ -7822,21 +13254,18 @@ func (s DisassociateAwsAccountFromPartnerAccountInput) 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 DisassociateAwsAccountFromPartnerAccountInput) GoString() string { +func (s GetWirelessDeviceStatisticsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DisassociateAwsAccountFromPartnerAccountInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DisassociateAwsAccountFromPartnerAccountInput"} - if s.PartnerAccountId == nil { - invalidParams.Add(request.NewErrParamRequired("PartnerAccountId")) - } - if s.PartnerAccountId != nil && len(*s.PartnerAccountId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("PartnerAccountId", 1)) +func (s *GetWirelessDeviceStatisticsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetWirelessDeviceStatisticsInput"} + if s.WirelessDeviceId == nil { + invalidParams.Add(request.NewErrParamRequired("WirelessDeviceId")) } - if s.PartnerType == nil { - invalidParams.Add(request.NewErrParamRequired("PartnerType")) + if s.WirelessDeviceId != nil && len(*s.WirelessDeviceId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("WirelessDeviceId", 1)) } if invalidParams.Len() > 0 { @@ -7845,20 +13274,26 @@ func (s *DisassociateAwsAccountFromPartnerAccountInput) Validate() error { return nil } -// SetPartnerAccountId sets the PartnerAccountId field's value. -func (s *DisassociateAwsAccountFromPartnerAccountInput) SetPartnerAccountId(v string) *DisassociateAwsAccountFromPartnerAccountInput { - s.PartnerAccountId = &v - return s -} - -// SetPartnerType sets the PartnerType field's value. -func (s *DisassociateAwsAccountFromPartnerAccountInput) SetPartnerType(v string) *DisassociateAwsAccountFromPartnerAccountInput { - s.PartnerType = &v +// SetWirelessDeviceId sets the WirelessDeviceId field's value. +func (s *GetWirelessDeviceStatisticsInput) SetWirelessDeviceId(v string) *GetWirelessDeviceStatisticsInput { + s.WirelessDeviceId = &v return s } -type DisassociateAwsAccountFromPartnerAccountOutput struct { +type GetWirelessDeviceStatisticsOutput struct { _ struct{} `type:"structure"` + + // The date and time when the most recent uplink was received. + LastUplinkReceivedAt *string `type:"string"` + + // Information about the wireless device's operations. + LoRaWAN *LoRaWANDeviceMetadata `type:"structure"` + + // MetaData for Sidewalk device. + Sidewalk *SidewalkDeviceMetadata `type:"structure"` + + // The ID of the wireless device. + WirelessDeviceId *string `type:"string"` } // String returns the string representation. @@ -7866,7 +13301,7 @@ type DisassociateAwsAccountFromPartnerAccountOutput 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 DisassociateAwsAccountFromPartnerAccountOutput) String() string { +func (s GetWirelessDeviceStatisticsOutput) String() string { return awsutil.Prettify(s) } @@ -7875,14 +13310,38 @@ func (s DisassociateAwsAccountFromPartnerAccountOutput) 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 DisassociateAwsAccountFromPartnerAccountOutput) GoString() string { +func (s GetWirelessDeviceStatisticsOutput) GoString() string { return s.String() } -type DisassociateWirelessDeviceFromThingInput struct { +// SetLastUplinkReceivedAt sets the LastUplinkReceivedAt field's value. +func (s *GetWirelessDeviceStatisticsOutput) SetLastUplinkReceivedAt(v string) *GetWirelessDeviceStatisticsOutput { + s.LastUplinkReceivedAt = &v + return s +} + +// SetLoRaWAN sets the LoRaWAN field's value. +func (s *GetWirelessDeviceStatisticsOutput) SetLoRaWAN(v *LoRaWANDeviceMetadata) *GetWirelessDeviceStatisticsOutput { + s.LoRaWAN = v + return s +} + +// SetSidewalk sets the Sidewalk field's value. +func (s *GetWirelessDeviceStatisticsOutput) SetSidewalk(v *SidewalkDeviceMetadata) *GetWirelessDeviceStatisticsOutput { + s.Sidewalk = v + return s +} + +// SetWirelessDeviceId sets the WirelessDeviceId field's value. +func (s *GetWirelessDeviceStatisticsOutput) SetWirelessDeviceId(v string) *GetWirelessDeviceStatisticsOutput { + s.WirelessDeviceId = &v + return s +} + +type GetWirelessGatewayCertificateInput struct { _ struct{} `type:"structure" nopayload:"true"` - // The ID of the resource to update. + // The ID of the resource to get. // // Id is a required field Id *string `location:"uri" locationName:"Id" type:"string" required:"true"` @@ -7893,7 +13352,7 @@ type DisassociateWirelessDeviceFromThingInput 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 DisassociateWirelessDeviceFromThingInput) String() string { +func (s GetWirelessGatewayCertificateInput) String() string { return awsutil.Prettify(s) } @@ -7902,13 +13361,13 @@ func (s DisassociateWirelessDeviceFromThingInput) 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 DisassociateWirelessDeviceFromThingInput) GoString() string { +func (s GetWirelessGatewayCertificateInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DisassociateWirelessDeviceFromThingInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DisassociateWirelessDeviceFromThingInput"} +func (s *GetWirelessGatewayCertificateInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetWirelessGatewayCertificateInput"} if s.Id == nil { invalidParams.Add(request.NewErrParamRequired("Id")) } @@ -7923,13 +13382,20 @@ func (s *DisassociateWirelessDeviceFromThingInput) Validate() error { } // SetId sets the Id field's value. -func (s *DisassociateWirelessDeviceFromThingInput) SetId(v string) *DisassociateWirelessDeviceFromThingInput { +func (s *GetWirelessGatewayCertificateInput) SetId(v string) *GetWirelessGatewayCertificateInput { s.Id = &v return s } -type DisassociateWirelessDeviceFromThingOutput struct { +type GetWirelessGatewayCertificateOutput struct { _ struct{} `type:"structure"` + + // The ID of the certificate associated with the wireless gateway. + IotCertificateId *string `min:"1" type:"string"` + + // The ID of the certificate that is associated with the wireless gateway and + // used for the LoRaWANNetworkServer endpoint. + LoRaWANNetworkServerCertificateId *string `min:"1" type:"string"` } // String returns the string representation. @@ -7937,7 +13403,7 @@ type DisassociateWirelessDeviceFromThingOutput 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 DisassociateWirelessDeviceFromThingOutput) String() string { +func (s GetWirelessGatewayCertificateOutput) String() string { return awsutil.Prettify(s) } @@ -7946,14 +13412,26 @@ func (s DisassociateWirelessDeviceFromThingOutput) 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 DisassociateWirelessDeviceFromThingOutput) GoString() string { +func (s GetWirelessGatewayCertificateOutput) GoString() string { return s.String() } -type DisassociateWirelessGatewayFromCertificateInput struct { +// SetIotCertificateId sets the IotCertificateId field's value. +func (s *GetWirelessGatewayCertificateOutput) SetIotCertificateId(v string) *GetWirelessGatewayCertificateOutput { + s.IotCertificateId = &v + return s +} + +// SetLoRaWANNetworkServerCertificateId sets the LoRaWANNetworkServerCertificateId field's value. +func (s *GetWirelessGatewayCertificateOutput) SetLoRaWANNetworkServerCertificateId(v string) *GetWirelessGatewayCertificateOutput { + s.LoRaWANNetworkServerCertificateId = &v + return s +} + +type GetWirelessGatewayFirmwareInformationInput struct { _ struct{} `type:"structure" nopayload:"true"` - // The ID of the resource to update. + // The ID of the resource to get. // // Id is a required field Id *string `location:"uri" locationName:"Id" type:"string" required:"true"` @@ -7964,7 +13442,7 @@ type DisassociateWirelessGatewayFromCertificateInput 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 DisassociateWirelessGatewayFromCertificateInput) String() string { +func (s GetWirelessGatewayFirmwareInformationInput) String() string { return awsutil.Prettify(s) } @@ -7973,13 +13451,13 @@ func (s DisassociateWirelessGatewayFromCertificateInput) 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 DisassociateWirelessGatewayFromCertificateInput) GoString() string { +func (s GetWirelessGatewayFirmwareInformationInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DisassociateWirelessGatewayFromCertificateInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DisassociateWirelessGatewayFromCertificateInput"} +func (s *GetWirelessGatewayFirmwareInformationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetWirelessGatewayFirmwareInformationInput"} if s.Id == nil { invalidParams.Add(request.NewErrParamRequired("Id")) } @@ -7994,13 +13472,16 @@ func (s *DisassociateWirelessGatewayFromCertificateInput) Validate() error { } // SetId sets the Id field's value. -func (s *DisassociateWirelessGatewayFromCertificateInput) SetId(v string) *DisassociateWirelessGatewayFromCertificateInput { +func (s *GetWirelessGatewayFirmwareInformationInput) SetId(v string) *GetWirelessGatewayFirmwareInformationInput { s.Id = &v return s } -type DisassociateWirelessGatewayFromCertificateOutput struct { +type GetWirelessGatewayFirmwareInformationOutput struct { _ struct{} `type:"structure"` + + // Information about the wireless gateway's firmware. + LoRaWAN *LoRaWANGatewayCurrentVersion `type:"structure"` } // String returns the string representation. @@ -8008,7 +13489,7 @@ type DisassociateWirelessGatewayFromCertificateOutput 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 DisassociateWirelessGatewayFromCertificateOutput) String() string { +func (s GetWirelessGatewayFirmwareInformationOutput) String() string { return awsutil.Prettify(s) } @@ -8017,17 +13498,28 @@ func (s DisassociateWirelessGatewayFromCertificateOutput) 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 DisassociateWirelessGatewayFromCertificateOutput) GoString() string { +func (s GetWirelessGatewayFirmwareInformationOutput) GoString() string { return s.String() } -type DisassociateWirelessGatewayFromThingInput struct { +// SetLoRaWAN sets the LoRaWAN field's value. +func (s *GetWirelessGatewayFirmwareInformationOutput) SetLoRaWAN(v *LoRaWANGatewayCurrentVersion) *GetWirelessGatewayFirmwareInformationOutput { + s.LoRaWAN = v + return s +} + +type GetWirelessGatewayInput struct { _ struct{} `type:"structure" nopayload:"true"` - // The ID of the resource to update. + // The identifier of the wireless gateway to get. // - // Id is a required field - Id *string `location:"uri" locationName:"Id" type:"string" required:"true"` + // Identifier is a required field + Identifier *string `location:"uri" locationName:"Identifier" type:"string" required:"true"` + + // The type of identifier used in identifier. + // + // IdentifierType is a required field + IdentifierType *string `location:"querystring" locationName:"identifierType" type:"string" required:"true" enum:"WirelessGatewayIdType"` } // String returns the string representation. @@ -8035,7 +13527,7 @@ type DisassociateWirelessGatewayFromThingInput 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 DisassociateWirelessGatewayFromThingInput) String() string { +func (s GetWirelessGatewayInput) String() string { return awsutil.Prettify(s) } @@ -8044,18 +13536,21 @@ func (s DisassociateWirelessGatewayFromThingInput) 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 DisassociateWirelessGatewayFromThingInput) GoString() string { +func (s GetWirelessGatewayInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *DisassociateWirelessGatewayFromThingInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DisassociateWirelessGatewayFromThingInput"} - if s.Id == nil { - invalidParams.Add(request.NewErrParamRequired("Id")) +func (s *GetWirelessGatewayInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetWirelessGatewayInput"} + if s.Identifier == nil { + invalidParams.Add(request.NewErrParamRequired("Identifier")) } - if s.Id != nil && len(*s.Id) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Id", 1)) + if s.Identifier != nil && len(*s.Identifier) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Identifier", 1)) + } + if s.IdentifierType == nil { + invalidParams.Add(request.NewErrParamRequired("IdentifierType")) } if invalidParams.Len() > 0 { @@ -8064,14 +13559,42 @@ func (s *DisassociateWirelessGatewayFromThingInput) Validate() error { return nil } -// SetId sets the Id field's value. -func (s *DisassociateWirelessGatewayFromThingInput) SetId(v string) *DisassociateWirelessGatewayFromThingInput { - s.Id = &v +// SetIdentifier sets the Identifier field's value. +func (s *GetWirelessGatewayInput) SetIdentifier(v string) *GetWirelessGatewayInput { + s.Identifier = &v return s } -type DisassociateWirelessGatewayFromThingOutput struct { +// SetIdentifierType sets the IdentifierType field's value. +func (s *GetWirelessGatewayInput) SetIdentifierType(v string) *GetWirelessGatewayInput { + s.IdentifierType = &v + return s +} + +type GetWirelessGatewayOutput struct { _ struct{} `type:"structure"` + + // The Amazon Resource Name of the resource. + Arn *string `type:"string"` + + // The description of the resource. + Description *string `type:"string"` + + // The ID of the wireless gateway. + Id *string `type:"string"` + + // Information about the wireless gateway. + LoRaWAN *LoRaWANGateway `type:"structure"` + + // The name of the resource. + Name *string `type:"string"` + + // The ARN of the thing associated with the wireless gateway. + ThingArn *string `type:"string"` + + // The name of the thing associated with the wireless gateway. The value is + // empty if a thing isn't associated with the gateway. + ThingName *string `type:"string"` } // String returns the string representation. @@ -8079,26 +13602,68 @@ type DisassociateWirelessGatewayFromThingOutput 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 DisassociateWirelessGatewayFromThingOutput) String() string { +func (s GetWirelessGatewayOutput) 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 DisassociateWirelessGatewayFromThingOutput) GoString() string { - return s.String() +// 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 GetWirelessGatewayOutput) GoString() string { + return s.String() +} + +// SetArn sets the Arn field's value. +func (s *GetWirelessGatewayOutput) SetArn(v string) *GetWirelessGatewayOutput { + s.Arn = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *GetWirelessGatewayOutput) SetDescription(v string) *GetWirelessGatewayOutput { + s.Description = &v + return s +} + +// SetId sets the Id field's value. +func (s *GetWirelessGatewayOutput) SetId(v string) *GetWirelessGatewayOutput { + s.Id = &v + return s +} + +// SetLoRaWAN sets the LoRaWAN field's value. +func (s *GetWirelessGatewayOutput) SetLoRaWAN(v *LoRaWANGateway) *GetWirelessGatewayOutput { + s.LoRaWAN = v + return s +} + +// SetName sets the Name field's value. +func (s *GetWirelessGatewayOutput) SetName(v string) *GetWirelessGatewayOutput { + s.Name = &v + return s +} + +// SetThingArn sets the ThingArn field's value. +func (s *GetWirelessGatewayOutput) SetThingArn(v string) *GetWirelessGatewayOutput { + s.ThingArn = &v + return s } -type GetDestinationInput struct { +// SetThingName sets the ThingName field's value. +func (s *GetWirelessGatewayOutput) SetThingName(v string) *GetWirelessGatewayOutput { + s.ThingName = &v + return s +} + +type GetWirelessGatewayStatisticsInput struct { _ struct{} `type:"structure" nopayload:"true"` - // The name of the resource to get. + // The ID of the wireless gateway for which to get the data. // - // Name is a required field - Name *string `location:"uri" locationName:"Name" type:"string" required:"true"` + // WirelessGatewayId is a required field + WirelessGatewayId *string `location:"uri" locationName:"Id" type:"string" required:"true"` } // String returns the string representation. @@ -8106,7 +13671,7 @@ type GetDestinationInput 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 GetDestinationInput) String() string { +func (s GetWirelessGatewayStatisticsInput) String() string { return awsutil.Prettify(s) } @@ -8115,18 +13680,18 @@ func (s GetDestinationInput) 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 GetDestinationInput) GoString() string { +func (s GetWirelessGatewayStatisticsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *GetDestinationInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetDestinationInput"} - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) +func (s *GetWirelessGatewayStatisticsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetWirelessGatewayStatisticsInput"} + if s.WirelessGatewayId == nil { + invalidParams.Add(request.NewErrParamRequired("WirelessGatewayId")) } - if s.Name != nil && len(*s.Name) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Name", 1)) + if s.WirelessGatewayId != nil && len(*s.WirelessGatewayId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("WirelessGatewayId", 1)) } if invalidParams.Len() > 0 { @@ -8135,32 +13700,23 @@ func (s *GetDestinationInput) Validate() error { return nil } -// SetName sets the Name field's value. -func (s *GetDestinationInput) SetName(v string) *GetDestinationInput { - s.Name = &v +// SetWirelessGatewayId sets the WirelessGatewayId field's value. +func (s *GetWirelessGatewayStatisticsInput) SetWirelessGatewayId(v string) *GetWirelessGatewayStatisticsInput { + s.WirelessGatewayId = &v return s } -type GetDestinationOutput struct { +type GetWirelessGatewayStatisticsOutput struct { _ struct{} `type:"structure"` - // The Amazon Resource Name of the resource. - Arn *string `type:"string"` - - // The description of the resource. - Description *string `type:"string"` - - // The rule name or topic rule to send messages to. - Expression *string `type:"string"` - - // The type of value in Expression. - ExpressionType *string `type:"string" enum:"ExpressionType"` + // The connection status of the wireless gateway. + ConnectionStatus *string `type:"string" enum:"ConnectionStatus"` - // The name of the resource. - Name *string `type:"string"` + // The date and time when the most recent uplink was received. + LastUplinkReceivedAt *string `type:"string"` - // The ARN of the IAM Role that authorizes the destination. - RoleArn *string `min:"20" type:"string"` + // The ID of the wireless gateway. + WirelessGatewayId *string `type:"string"` } // String returns the string representation. @@ -8168,7 +13724,7 @@ type GetDestinationOutput 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 GetDestinationOutput) String() string { +func (s GetWirelessGatewayStatisticsOutput) String() string { return awsutil.Prettify(s) } @@ -8177,47 +13733,29 @@ func (s GetDestinationOutput) 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 GetDestinationOutput) GoString() string { +func (s GetWirelessGatewayStatisticsOutput) GoString() string { return s.String() } -// SetArn sets the Arn field's value. -func (s *GetDestinationOutput) SetArn(v string) *GetDestinationOutput { - s.Arn = &v - return s -} - -// SetDescription sets the Description field's value. -func (s *GetDestinationOutput) SetDescription(v string) *GetDestinationOutput { - s.Description = &v - return s -} - -// SetExpression sets the Expression field's value. -func (s *GetDestinationOutput) SetExpression(v string) *GetDestinationOutput { - s.Expression = &v - return s -} - -// SetExpressionType sets the ExpressionType field's value. -func (s *GetDestinationOutput) SetExpressionType(v string) *GetDestinationOutput { - s.ExpressionType = &v +// SetConnectionStatus sets the ConnectionStatus field's value. +func (s *GetWirelessGatewayStatisticsOutput) SetConnectionStatus(v string) *GetWirelessGatewayStatisticsOutput { + s.ConnectionStatus = &v return s } -// SetName sets the Name field's value. -func (s *GetDestinationOutput) SetName(v string) *GetDestinationOutput { - s.Name = &v +// SetLastUplinkReceivedAt sets the LastUplinkReceivedAt field's value. +func (s *GetWirelessGatewayStatisticsOutput) SetLastUplinkReceivedAt(v string) *GetWirelessGatewayStatisticsOutput { + s.LastUplinkReceivedAt = &v return s } -// SetRoleArn sets the RoleArn field's value. -func (s *GetDestinationOutput) SetRoleArn(v string) *GetDestinationOutput { - s.RoleArn = &v +// SetWirelessGatewayId sets the WirelessGatewayId field's value. +func (s *GetWirelessGatewayStatisticsOutput) SetWirelessGatewayId(v string) *GetWirelessGatewayStatisticsOutput { + s.WirelessGatewayId = &v return s } -type GetDeviceProfileInput struct { +type GetWirelessGatewayTaskDefinitionInput struct { _ struct{} `type:"structure" nopayload:"true"` // The ID of the resource to get. @@ -8231,7 +13769,7 @@ type GetDeviceProfileInput 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 GetDeviceProfileInput) String() string { +func (s GetWirelessGatewayTaskDefinitionInput) String() string { return awsutil.Prettify(s) } @@ -8240,13 +13778,13 @@ func (s GetDeviceProfileInput) 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 GetDeviceProfileInput) GoString() string { +func (s GetWirelessGatewayTaskDefinitionInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *GetDeviceProfileInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetDeviceProfileInput"} +func (s *GetWirelessGatewayTaskDefinitionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetWirelessGatewayTaskDefinitionInput"} if s.Id == nil { invalidParams.Add(request.NewErrParamRequired("Id")) } @@ -8261,25 +13799,27 @@ func (s *GetDeviceProfileInput) Validate() error { } // SetId sets the Id field's value. -func (s *GetDeviceProfileInput) SetId(v string) *GetDeviceProfileInput { +func (s *GetWirelessGatewayTaskDefinitionInput) SetId(v string) *GetWirelessGatewayTaskDefinitionInput { s.Id = &v return s } -type GetDeviceProfileOutput struct { +type GetWirelessGatewayTaskDefinitionOutput struct { _ struct{} `type:"structure"` // The Amazon Resource Name of the resource. Arn *string `type:"string"` - // The ID of the device profile. - Id *string `type:"string"` - - // Information about the device profile. - LoRaWAN *LoRaWANDeviceProfile `type:"structure"` + // Whether to automatically create tasks using this task definition for all + // gateways with the specified current version. If false, the task must me created + // by calling CreateWirelessGatewayTask. + AutoCreateTasks *bool `type:"boolean"` // The name of the resource. - Name *string `type:"string"` + Name *string `min:"1" type:"string"` + + // Information about the gateways to update. + Update *UpdateWirelessGatewayTaskCreate `type:"structure"` } // String returns the string representation. @@ -8287,7 +13827,7 @@ type GetDeviceProfileOutput 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 GetDeviceProfileOutput) String() string { +func (s GetWirelessGatewayTaskDefinitionOutput) String() string { return awsutil.Prettify(s) } @@ -8296,36 +13836,41 @@ func (s GetDeviceProfileOutput) 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 GetDeviceProfileOutput) GoString() string { +func (s GetWirelessGatewayTaskDefinitionOutput) GoString() string { return s.String() } // SetArn sets the Arn field's value. -func (s *GetDeviceProfileOutput) SetArn(v string) *GetDeviceProfileOutput { +func (s *GetWirelessGatewayTaskDefinitionOutput) SetArn(v string) *GetWirelessGatewayTaskDefinitionOutput { s.Arn = &v return s } -// SetId sets the Id field's value. -func (s *GetDeviceProfileOutput) SetId(v string) *GetDeviceProfileOutput { - s.Id = &v +// SetAutoCreateTasks sets the AutoCreateTasks field's value. +func (s *GetWirelessGatewayTaskDefinitionOutput) SetAutoCreateTasks(v bool) *GetWirelessGatewayTaskDefinitionOutput { + s.AutoCreateTasks = &v return s } -// SetLoRaWAN sets the LoRaWAN field's value. -func (s *GetDeviceProfileOutput) SetLoRaWAN(v *LoRaWANDeviceProfile) *GetDeviceProfileOutput { - s.LoRaWAN = v +// SetName sets the Name field's value. +func (s *GetWirelessGatewayTaskDefinitionOutput) SetName(v string) *GetWirelessGatewayTaskDefinitionOutput { + s.Name = &v return s } -// SetName sets the Name field's value. -func (s *GetDeviceProfileOutput) SetName(v string) *GetDeviceProfileOutput { - s.Name = &v +// SetUpdate sets the Update field's value. +func (s *GetWirelessGatewayTaskDefinitionOutput) SetUpdate(v *UpdateWirelessGatewayTaskCreate) *GetWirelessGatewayTaskDefinitionOutput { + s.Update = v return s } -type GetLogLevelsByResourceTypesInput struct { +type GetWirelessGatewayTaskInput struct { _ struct{} `type:"structure" nopayload:"true"` + + // The ID of the resource to get. + // + // Id is a required field + Id *string `location:"uri" locationName:"Id" type:"string" required:"true"` } // String returns the string representation. @@ -8333,7 +13878,7 @@ type GetLogLevelsByResourceTypesInput 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 GetLogLevelsByResourceTypesInput) String() string { +func (s GetWirelessGatewayTaskInput) String() string { return awsutil.Prettify(s) } @@ -8342,21 +13887,49 @@ func (s GetLogLevelsByResourceTypesInput) 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 GetLogLevelsByResourceTypesInput) GoString() string { +func (s GetWirelessGatewayTaskInput) GoString() string { return s.String() } -type GetLogLevelsByResourceTypesOutput struct { +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetWirelessGatewayTaskInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetWirelessGatewayTaskInput"} + 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 *GetWirelessGatewayTaskInput) SetId(v string) *GetWirelessGatewayTaskInput { + s.Id = &v + return s +} + +type GetWirelessGatewayTaskOutput struct { _ struct{} `type:"structure"` - // The log level for a log message. - DefaultLogLevel *string `type:"string" enum:"LogLevel"` + // The date and time when the most recent uplink was received. + LastUplinkReceivedAt *string `type:"string"` - // The list of wireless device log options. - WirelessDeviceLogOptions []*WirelessDeviceLogOption `type:"list"` + // The status of the request. + Status *string `type:"string" enum:"WirelessGatewayTaskStatus"` - // The list of wireless gateway log options. - WirelessGatewayLogOptions []*WirelessGatewayLogOption `type:"list"` + // The date and time when the task was created. + TaskCreatedAt *string `type:"string"` + + // The ID of the wireless gateway. + WirelessGatewayId *string `type:"string"` + + // The ID of the WirelessGatewayTask. + WirelessGatewayTaskDefinitionId *string `type:"string"` } // String returns the string representation. @@ -8364,7 +13937,7 @@ type GetLogLevelsByResourceTypesOutput 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 GetLogLevelsByResourceTypesOutput) String() string { +func (s GetWirelessGatewayTaskOutput) String() string { return awsutil.Prettify(s) } @@ -8373,40 +13946,46 @@ func (s GetLogLevelsByResourceTypesOutput) 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 GetLogLevelsByResourceTypesOutput) GoString() string { +func (s GetWirelessGatewayTaskOutput) GoString() string { return s.String() } -// SetDefaultLogLevel sets the DefaultLogLevel field's value. -func (s *GetLogLevelsByResourceTypesOutput) SetDefaultLogLevel(v string) *GetLogLevelsByResourceTypesOutput { - s.DefaultLogLevel = &v +// SetLastUplinkReceivedAt sets the LastUplinkReceivedAt field's value. +func (s *GetWirelessGatewayTaskOutput) SetLastUplinkReceivedAt(v string) *GetWirelessGatewayTaskOutput { + s.LastUplinkReceivedAt = &v return s } -// SetWirelessDeviceLogOptions sets the WirelessDeviceLogOptions field's value. -func (s *GetLogLevelsByResourceTypesOutput) SetWirelessDeviceLogOptions(v []*WirelessDeviceLogOption) *GetLogLevelsByResourceTypesOutput { - s.WirelessDeviceLogOptions = v +// SetStatus sets the Status field's value. +func (s *GetWirelessGatewayTaskOutput) SetStatus(v string) *GetWirelessGatewayTaskOutput { + s.Status = &v return s } -// SetWirelessGatewayLogOptions sets the WirelessGatewayLogOptions field's value. -func (s *GetLogLevelsByResourceTypesOutput) SetWirelessGatewayLogOptions(v []*WirelessGatewayLogOption) *GetLogLevelsByResourceTypesOutput { - s.WirelessGatewayLogOptions = v +// SetTaskCreatedAt sets the TaskCreatedAt field's value. +func (s *GetWirelessGatewayTaskOutput) SetTaskCreatedAt(v string) *GetWirelessGatewayTaskOutput { + s.TaskCreatedAt = &v return s } -type GetPartnerAccountInput struct { - _ struct{} `type:"structure" nopayload:"true"` +// SetWirelessGatewayId sets the WirelessGatewayId field's value. +func (s *GetWirelessGatewayTaskOutput) SetWirelessGatewayId(v string) *GetWirelessGatewayTaskOutput { + s.WirelessGatewayId = &v + return s +} - // The partner account ID to disassociate from the AWS account. - // - // PartnerAccountId is a required field - PartnerAccountId *string `location:"uri" locationName:"PartnerAccountId" type:"string" required:"true"` +// SetWirelessGatewayTaskDefinitionId sets the WirelessGatewayTaskDefinitionId field's value. +func (s *GetWirelessGatewayTaskOutput) SetWirelessGatewayTaskDefinitionId(v string) *GetWirelessGatewayTaskOutput { + s.WirelessGatewayTaskDefinitionId = &v + return s +} + +// An unexpected error occurred while processing a request. +type InternalServerException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` - // The partner type. - // - // PartnerType is a required field - PartnerType *string `location:"querystring" locationName:"partnerType" type:"string" required:"true" enum:"PartnerType"` + Message_ *string `locationName:"Message" type:"string"` } // String returns the string representation. @@ -8414,7 +13993,7 @@ type GetPartnerAccountInput 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 GetPartnerAccountInput) String() string { +func (s InternalServerException) String() string { return awsutil.Prettify(s) } @@ -8423,94 +14002,57 @@ func (s GetPartnerAccountInput) 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 GetPartnerAccountInput) GoString() string { +func (s InternalServerException) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetPartnerAccountInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetPartnerAccountInput"} - if s.PartnerAccountId == nil { - invalidParams.Add(request.NewErrParamRequired("PartnerAccountId")) - } - if s.PartnerAccountId != nil && len(*s.PartnerAccountId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("PartnerAccountId", 1)) - } - if s.PartnerType == nil { - invalidParams.Add(request.NewErrParamRequired("PartnerType")) - } - - if invalidParams.Len() > 0 { - return invalidParams +func newErrorInternalServerException(v protocol.ResponseMetadata) error { + return &InternalServerException{ + RespMetadata: v, } - return nil } -// SetPartnerAccountId sets the PartnerAccountId field's value. -func (s *GetPartnerAccountInput) SetPartnerAccountId(v string) *GetPartnerAccountInput { - s.PartnerAccountId = &v - return s -} - -// SetPartnerType sets the PartnerType field's value. -func (s *GetPartnerAccountInput) SetPartnerType(v string) *GetPartnerAccountInput { - s.PartnerType = &v - return s +// Code returns the exception type name. +func (s *InternalServerException) Code() string { + return "InternalServerException" } -type GetPartnerAccountOutput struct { - _ struct{} `type:"structure"` - - // Whether the partner account is linked to the AWS account. - AccountLinked *bool `type:"boolean"` - - // The Sidewalk account credentials. - Sidewalk *SidewalkAccountInfoWithFingerprint `type:"structure"` +// Message returns the exception's message. +func (s *InternalServerException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" } -// 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 GetPartnerAccountOutput) String() string { - return awsutil.Prettify(s) +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *InternalServerException) OrigErr() error { + return nil } -// 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 GetPartnerAccountOutput) GoString() string { - return s.String() +func (s *InternalServerException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } -// SetAccountLinked sets the AccountLinked field's value. -func (s *GetPartnerAccountOutput) SetAccountLinked(v bool) *GetPartnerAccountOutput { - s.AccountLinked = &v - return s +// Status code returns the HTTP status code for the request's response error. +func (s *InternalServerException) StatusCode() int { + return s.RespMetadata.StatusCode } -// SetSidewalk sets the Sidewalk field's value. -func (s *GetPartnerAccountOutput) SetSidewalk(v *SidewalkAccountInfoWithFingerprint) *GetPartnerAccountOutput { - s.Sidewalk = v - return s +// RequestID returns the service's response RequestID for request. +func (s *InternalServerException) RequestID() string { + return s.RespMetadata.RequestID } -type GetResourceLogLevelInput struct { +type ListDestinationsInput struct { _ struct{} `type:"structure" nopayload:"true"` - // The identifier of the resource. For a Wireless Device, it is the wireless - // device ID. For a wireless gateway, it is the wireless gateway ID. - // - // ResourceIdentifier is a required field - ResourceIdentifier *string `location:"uri" locationName:"ResourceIdentifier" type:"string" required:"true"` + // The maximum number of results to return in this operation. + MaxResults *int64 `location:"querystring" locationName:"maxResults" type:"integer"` - // The type of the resource, which can be WirelessDevice or WirelessGateway. - // - // ResourceType is a required field - ResourceType *string `location:"querystring" locationName:"resourceType" type:"string" required:"true"` + // To retrieve the next set of results, the nextToken value from a previous + // response; otherwise null to receive the first set of results. + NextToken *string `location:"querystring" locationName:"nextToken" type:"string"` } // String returns the string representation. @@ -8518,7 +14060,7 @@ type GetResourceLogLevelInput 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 GetResourceLogLevelInput) String() string { +func (s ListDestinationsInput) String() string { return awsutil.Prettify(s) } @@ -8527,46 +14069,31 @@ func (s GetResourceLogLevelInput) 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 GetResourceLogLevelInput) GoString() string { +func (s ListDestinationsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetResourceLogLevelInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetResourceLogLevelInput"} - if s.ResourceIdentifier == nil { - invalidParams.Add(request.NewErrParamRequired("ResourceIdentifier")) - } - if s.ResourceIdentifier != nil && len(*s.ResourceIdentifier) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ResourceIdentifier", 1)) - } - if s.ResourceType == nil { - invalidParams.Add(request.NewErrParamRequired("ResourceType")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetResourceIdentifier sets the ResourceIdentifier field's value. -func (s *GetResourceLogLevelInput) SetResourceIdentifier(v string) *GetResourceLogLevelInput { - s.ResourceIdentifier = &v +// SetMaxResults sets the MaxResults field's value. +func (s *ListDestinationsInput) SetMaxResults(v int64) *ListDestinationsInput { + s.MaxResults = &v return s } -// SetResourceType sets the ResourceType field's value. -func (s *GetResourceLogLevelInput) SetResourceType(v string) *GetResourceLogLevelInput { - s.ResourceType = &v +// SetNextToken sets the NextToken field's value. +func (s *ListDestinationsInput) SetNextToken(v string) *ListDestinationsInput { + s.NextToken = &v return s } -type GetResourceLogLevelOutput struct { +type ListDestinationsOutput struct { _ struct{} `type:"structure"` - // The log level for a log message. - LogLevel *string `type:"string" enum:"LogLevel"` + // The list of destinations. + DestinationList []*Destinations `type:"list"` + + // The token to use to get the next set of results, or null if there are no + // additional results. + NextToken *string `type:"string"` } // String returns the string representation. @@ -8574,7 +14101,7 @@ type GetResourceLogLevelOutput 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 GetResourceLogLevelOutput) String() string { +func (s ListDestinationsOutput) String() string { return awsutil.Prettify(s) } @@ -8583,23 +14110,31 @@ func (s GetResourceLogLevelOutput) 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 GetResourceLogLevelOutput) GoString() string { +func (s ListDestinationsOutput) GoString() string { return s.String() } -// SetLogLevel sets the LogLevel field's value. -func (s *GetResourceLogLevelOutput) SetLogLevel(v string) *GetResourceLogLevelOutput { - s.LogLevel = &v +// SetDestinationList sets the DestinationList field's value. +func (s *ListDestinationsOutput) SetDestinationList(v []*Destinations) *ListDestinationsOutput { + s.DestinationList = v return s } -type GetServiceEndpointInput struct { +// SetNextToken sets the NextToken field's value. +func (s *ListDestinationsOutput) SetNextToken(v string) *ListDestinationsOutput { + s.NextToken = &v + return s +} + +type ListDeviceProfilesInput struct { _ struct{} `type:"structure" nopayload:"true"` - // The service type for which to get endpoint information about. Can be CUPS - // for the Configuration and Update Server endpoint, or LNS for the LoRaWAN - // Network Server endpoint. - ServiceType *string `location:"querystring" locationName:"serviceType" type:"string" enum:"WirelessGatewayServiceType"` + // The maximum number of results to return in this operation. + MaxResults *int64 `location:"querystring" locationName:"maxResults" type:"integer"` + + // To retrieve the next set of results, the nextToken value from a previous + // response; otherwise null to receive the first set of results. + NextToken *string `location:"querystring" locationName:"nextToken" type:"string"` } // String returns the string representation. @@ -8607,7 +14142,7 @@ type GetServiceEndpointInput 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 GetServiceEndpointInput) String() string { +func (s ListDeviceProfilesInput) String() string { return awsutil.Prettify(s) } @@ -8616,27 +14151,31 @@ func (s GetServiceEndpointInput) 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 GetServiceEndpointInput) GoString() string { +func (s ListDeviceProfilesInput) GoString() string { return s.String() } -// SetServiceType sets the ServiceType field's value. -func (s *GetServiceEndpointInput) SetServiceType(v string) *GetServiceEndpointInput { - s.ServiceType = &v +// SetMaxResults sets the MaxResults field's value. +func (s *ListDeviceProfilesInput) SetMaxResults(v int64) *ListDeviceProfilesInput { + s.MaxResults = &v return s } -type GetServiceEndpointOutput struct { - _ struct{} `type:"structure"` +// SetNextToken sets the NextToken field's value. +func (s *ListDeviceProfilesInput) SetNextToken(v string) *ListDeviceProfilesInput { + s.NextToken = &v + return s +} - // The Root CA of the server trust certificate. - ServerTrust *string `min:"1" type:"string"` +type ListDeviceProfilesOutput struct { + _ struct{} `type:"structure"` - // The service endpoint value. - ServiceEndpoint *string `min:"1" type:"string"` + // The list of device profiles. + DeviceProfileList []*DeviceProfile `type:"list"` - // The endpoint's service type. - ServiceType *string `type:"string" enum:"WirelessGatewayServiceType"` + // The token to use to get the next set of results, or null if there are no + // additional results. + NextToken *string `type:"string"` } // String returns the string representation. @@ -8644,7 +14183,7 @@ type GetServiceEndpointOutput 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 GetServiceEndpointOutput) String() string { +func (s ListDeviceProfilesOutput) String() string { return awsutil.Prettify(s) } @@ -8653,35 +14192,31 @@ func (s GetServiceEndpointOutput) 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 GetServiceEndpointOutput) GoString() string { +func (s ListDeviceProfilesOutput) GoString() string { return s.String() } -// SetServerTrust sets the ServerTrust field's value. -func (s *GetServiceEndpointOutput) SetServerTrust(v string) *GetServiceEndpointOutput { - s.ServerTrust = &v - return s -} - -// SetServiceEndpoint sets the ServiceEndpoint field's value. -func (s *GetServiceEndpointOutput) SetServiceEndpoint(v string) *GetServiceEndpointOutput { - s.ServiceEndpoint = &v +// SetDeviceProfileList sets the DeviceProfileList field's value. +func (s *ListDeviceProfilesOutput) SetDeviceProfileList(v []*DeviceProfile) *ListDeviceProfilesOutput { + s.DeviceProfileList = v return s } -// SetServiceType sets the ServiceType field's value. -func (s *GetServiceEndpointOutput) SetServiceType(v string) *GetServiceEndpointOutput { - s.ServiceType = &v +// SetNextToken sets the NextToken field's value. +func (s *ListDeviceProfilesOutput) SetNextToken(v string) *ListDeviceProfilesOutput { + s.NextToken = &v return s } -type GetServiceProfileInput struct { +type ListFuotaTasksInput struct { _ struct{} `type:"structure" nopayload:"true"` - // The ID of the resource to get. - // - // Id is a required field - Id *string `location:"uri" locationName:"Id" type:"string" required:"true"` + // The maximum number of results to return in this operation. + MaxResults *int64 `location:"querystring" locationName:"maxResults" type:"integer"` + + // To retrieve the next set of results, the nextToken value from a previous + // response; otherwise null to receive the first set of results. + NextToken *string `location:"querystring" locationName:"nextToken" type:"string"` } // String returns the string representation. @@ -8689,7 +14224,7 @@ type GetServiceProfileInput 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 GetServiceProfileInput) String() string { +func (s ListFuotaTasksInput) String() string { return awsutil.Prettify(s) } @@ -8698,46 +14233,31 @@ func (s GetServiceProfileInput) 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 GetServiceProfileInput) GoString() string { +func (s ListFuotaTasksInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetServiceProfileInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetServiceProfileInput"} - 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 +// SetMaxResults sets the MaxResults field's value. +func (s *ListFuotaTasksInput) SetMaxResults(v int64) *ListFuotaTasksInput { + s.MaxResults = &v + return s } -// SetId sets the Id field's value. -func (s *GetServiceProfileInput) SetId(v string) *GetServiceProfileInput { - s.Id = &v +// SetNextToken sets the NextToken field's value. +func (s *ListFuotaTasksInput) SetNextToken(v string) *ListFuotaTasksInput { + s.NextToken = &v return s } -type GetServiceProfileOutput struct { +type ListFuotaTasksOutput struct { _ struct{} `type:"structure"` - // The Amazon Resource Name of the resource. - Arn *string `type:"string"` - - // The ID of the service profile. - Id *string `type:"string"` - - // Information about the service profile. - LoRaWAN *LoRaWANGetServiceProfileInfo `type:"structure"` + // Lists the FUOTA tasks registered to your AWS account. + FuotaTaskList []*FuotaTask `type:"list"` - // The name of the resource. - Name *string `type:"string"` + // To retrieve the next set of results, the nextToken value from a previous + // response; otherwise null to receive the first set of results. + NextToken *string `type:"string"` } // String returns the string representation. @@ -8745,7 +14265,7 @@ type GetServiceProfileOutput 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 GetServiceProfileOutput) String() string { +func (s ListFuotaTasksOutput) String() string { return awsutil.Prettify(s) } @@ -8754,46 +14274,36 @@ func (s GetServiceProfileOutput) 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 GetServiceProfileOutput) GoString() string { +func (s ListFuotaTasksOutput) GoString() string { return s.String() } -// SetArn sets the Arn field's value. -func (s *GetServiceProfileOutput) SetArn(v string) *GetServiceProfileOutput { - s.Arn = &v - return s -} - -// SetId sets the Id field's value. -func (s *GetServiceProfileOutput) SetId(v string) *GetServiceProfileOutput { - s.Id = &v - return s -} - -// SetLoRaWAN sets the LoRaWAN field's value. -func (s *GetServiceProfileOutput) SetLoRaWAN(v *LoRaWANGetServiceProfileInfo) *GetServiceProfileOutput { - s.LoRaWAN = v +// SetFuotaTaskList sets the FuotaTaskList field's value. +func (s *ListFuotaTasksOutput) SetFuotaTaskList(v []*FuotaTask) *ListFuotaTasksOutput { + s.FuotaTaskList = v return s } -// SetName sets the Name field's value. -func (s *GetServiceProfileOutput) SetName(v string) *GetServiceProfileOutput { - s.Name = &v +// SetNextToken sets the NextToken field's value. +func (s *ListFuotaTasksOutput) SetNextToken(v string) *ListFuotaTasksOutput { + s.NextToken = &v return s } -type GetWirelessDeviceInput struct { +type ListMulticastGroupsByFuotaTaskInput struct { _ struct{} `type:"structure" nopayload:"true"` - // The identifier of the wireless device to get. + // The ID of a FUOTA task. // - // Identifier is a required field - Identifier *string `location:"uri" locationName:"Identifier" type:"string" required:"true"` + // Id is a required field + Id *string `location:"uri" locationName:"Id" type:"string" required:"true"` - // The type of identifier used in identifier. - // - // IdentifierType is a required field - IdentifierType *string `location:"querystring" locationName:"identifierType" type:"string" required:"true" enum:"WirelessDeviceIdType"` + // The maximum number of results to return in this operation. + MaxResults *int64 `location:"querystring" locationName:"maxResults" type:"integer"` + + // To retrieve the next set of results, the nextToken value from a previous + // response; otherwise null to receive the first set of results. + NextToken *string `location:"querystring" locationName:"nextToken" type:"string"` } // String returns the string representation. @@ -8801,7 +14311,7 @@ type GetWirelessDeviceInput 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 GetWirelessDeviceInput) String() string { +func (s ListMulticastGroupsByFuotaTaskInput) String() string { return awsutil.Prettify(s) } @@ -8810,21 +14320,18 @@ func (s GetWirelessDeviceInput) 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 GetWirelessDeviceInput) GoString() string { +func (s ListMulticastGroupsByFuotaTaskInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *GetWirelessDeviceInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetWirelessDeviceInput"} - if s.Identifier == nil { - invalidParams.Add(request.NewErrParamRequired("Identifier")) - } - if s.Identifier != nil && len(*s.Identifier) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Identifier", 1)) +func (s *ListMulticastGroupsByFuotaTaskInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListMulticastGroupsByFuotaTaskInput"} + if s.Id == nil { + invalidParams.Add(request.NewErrParamRequired("Id")) } - if s.IdentifierType == nil { - invalidParams.Add(request.NewErrParamRequired("IdentifierType")) + if s.Id != nil && len(*s.Id) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Id", 1)) } if invalidParams.Len() > 0 { @@ -8833,51 +14340,33 @@ func (s *GetWirelessDeviceInput) Validate() error { return nil } -// SetIdentifier sets the Identifier field's value. -func (s *GetWirelessDeviceInput) SetIdentifier(v string) *GetWirelessDeviceInput { - s.Identifier = &v +// SetId sets the Id field's value. +func (s *ListMulticastGroupsByFuotaTaskInput) SetId(v string) *ListMulticastGroupsByFuotaTaskInput { + s.Id = &v return s } -// SetIdentifierType sets the IdentifierType field's value. -func (s *GetWirelessDeviceInput) SetIdentifierType(v string) *GetWirelessDeviceInput { - s.IdentifierType = &v +// SetMaxResults sets the MaxResults field's value. +func (s *ListMulticastGroupsByFuotaTaskInput) SetMaxResults(v int64) *ListMulticastGroupsByFuotaTaskInput { + s.MaxResults = &v return s } -type GetWirelessDeviceOutput struct { - _ struct{} `type:"structure"` - - // The Amazon Resource Name of the resource. - Arn *string `type:"string"` - - // The description of the resource. - Description *string `type:"string"` - - // The name of the destination to which the device is assigned. - DestinationName *string `type:"string"` - - // The ID of the wireless device. - Id *string `type:"string"` - - // Information about the wireless device. - LoRaWAN *LoRaWANDevice `type:"structure"` - - // The name of the resource. - Name *string `type:"string"` - - // Sidewalk device object. - Sidewalk *SidewalkDevice `type:"structure"` +// SetNextToken sets the NextToken field's value. +func (s *ListMulticastGroupsByFuotaTaskInput) SetNextToken(v string) *ListMulticastGroupsByFuotaTaskInput { + s.NextToken = &v + return s +} - // The ARN of the thing associated with the wireless device. - ThingArn *string `type:"string"` +type ListMulticastGroupsByFuotaTaskOutput struct { + _ struct{} `type:"structure"` - // The name of the thing associated with the wireless device. The value is empty - // if a thing isn't associated with the device. - ThingName *string `type:"string"` + // List of multicast groups associated with a FUOTA task. + MulticastGroupList []*MulticastGroupByFuotaTask `type:"list"` - // The wireless device type. - Type *string `type:"string" enum:"WirelessDeviceType"` + // To retrieve the next set of results, the nextToken value from a previous + // response; otherwise null to receive the first set of results. + NextToken *string `type:"string"` } // String returns the string representation. @@ -8885,7 +14374,7 @@ type GetWirelessDeviceOutput 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 GetWirelessDeviceOutput) String() string { +func (s ListMulticastGroupsByFuotaTaskOutput) String() string { return awsutil.Prettify(s) } @@ -8894,77 +14383,31 @@ func (s GetWirelessDeviceOutput) 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 GetWirelessDeviceOutput) GoString() string { +func (s ListMulticastGroupsByFuotaTaskOutput) GoString() string { return s.String() } -// SetArn sets the Arn field's value. -func (s *GetWirelessDeviceOutput) SetArn(v string) *GetWirelessDeviceOutput { - s.Arn = &v - return s -} - -// SetDescription sets the Description field's value. -func (s *GetWirelessDeviceOutput) SetDescription(v string) *GetWirelessDeviceOutput { - s.Description = &v - return s -} - -// SetDestinationName sets the DestinationName field's value. -func (s *GetWirelessDeviceOutput) SetDestinationName(v string) *GetWirelessDeviceOutput { - s.DestinationName = &v - return s -} - -// SetId sets the Id field's value. -func (s *GetWirelessDeviceOutput) SetId(v string) *GetWirelessDeviceOutput { - s.Id = &v - return s -} - -// SetLoRaWAN sets the LoRaWAN field's value. -func (s *GetWirelessDeviceOutput) SetLoRaWAN(v *LoRaWANDevice) *GetWirelessDeviceOutput { - s.LoRaWAN = v - return s -} - -// SetName sets the Name field's value. -func (s *GetWirelessDeviceOutput) SetName(v string) *GetWirelessDeviceOutput { - s.Name = &v - return s -} - -// SetSidewalk sets the Sidewalk field's value. -func (s *GetWirelessDeviceOutput) SetSidewalk(v *SidewalkDevice) *GetWirelessDeviceOutput { - s.Sidewalk = v - return s -} - -// SetThingArn sets the ThingArn field's value. -func (s *GetWirelessDeviceOutput) SetThingArn(v string) *GetWirelessDeviceOutput { - s.ThingArn = &v - return s -} - -// SetThingName sets the ThingName field's value. -func (s *GetWirelessDeviceOutput) SetThingName(v string) *GetWirelessDeviceOutput { - s.ThingName = &v +// SetMulticastGroupList sets the MulticastGroupList field's value. +func (s *ListMulticastGroupsByFuotaTaskOutput) SetMulticastGroupList(v []*MulticastGroupByFuotaTask) *ListMulticastGroupsByFuotaTaskOutput { + s.MulticastGroupList = v return s } -// SetType sets the Type field's value. -func (s *GetWirelessDeviceOutput) SetType(v string) *GetWirelessDeviceOutput { - s.Type = &v +// SetNextToken sets the NextToken field's value. +func (s *ListMulticastGroupsByFuotaTaskOutput) SetNextToken(v string) *ListMulticastGroupsByFuotaTaskOutput { + s.NextToken = &v return s } -type GetWirelessDeviceStatisticsInput struct { +type ListMulticastGroupsInput struct { _ struct{} `type:"structure" nopayload:"true"` - // The ID of the wireless device for which to get the data. - // - // WirelessDeviceId is a required field - WirelessDeviceId *string `location:"uri" locationName:"Id" type:"string" required:"true"` + // The maximum number of results to return in this operation. + MaxResults *int64 `location:"querystring" locationName:"maxResults" type:"integer"` + + // To retrieve the next set of results, the nextToken value from a previous + // response; otherwise null to receive the first set of results. + NextToken *string `location:"querystring" locationName:"nextToken" type:"string"` } // String returns the string representation. @@ -8972,7 +14415,7 @@ type GetWirelessDeviceStatisticsInput 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 GetWirelessDeviceStatisticsInput) String() string { +func (s ListMulticastGroupsInput) String() string { return awsutil.Prettify(s) } @@ -8981,46 +14424,31 @@ func (s GetWirelessDeviceStatisticsInput) 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 GetWirelessDeviceStatisticsInput) GoString() string { +func (s ListMulticastGroupsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetWirelessDeviceStatisticsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetWirelessDeviceStatisticsInput"} - if s.WirelessDeviceId == nil { - invalidParams.Add(request.NewErrParamRequired("WirelessDeviceId")) - } - if s.WirelessDeviceId != nil && len(*s.WirelessDeviceId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("WirelessDeviceId", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetMaxResults sets the MaxResults field's value. +func (s *ListMulticastGroupsInput) SetMaxResults(v int64) *ListMulticastGroupsInput { + s.MaxResults = &v + return s } -// SetWirelessDeviceId sets the WirelessDeviceId field's value. -func (s *GetWirelessDeviceStatisticsInput) SetWirelessDeviceId(v string) *GetWirelessDeviceStatisticsInput { - s.WirelessDeviceId = &v +// SetNextToken sets the NextToken field's value. +func (s *ListMulticastGroupsInput) SetNextToken(v string) *ListMulticastGroupsInput { + s.NextToken = &v return s } -type GetWirelessDeviceStatisticsOutput struct { +type ListMulticastGroupsOutput struct { _ struct{} `type:"structure"` - // The date and time when the most recent uplink was received. - LastUplinkReceivedAt *string `type:"string"` - - // Information about the wireless device's operations. - LoRaWAN *LoRaWANDeviceMetadata `type:"structure"` - - // MetaData for Sidewalk device. - Sidewalk *SidewalkDeviceMetadata `type:"structure"` + // List of multicast groups. + MulticastGroupList []*MulticastGroup `type:"list"` - // The ID of the wireless device. - WirelessDeviceId *string `type:"string"` + // To retrieve the next set of results, the nextToken value from a previous + // response; otherwise null to receive the first set of results. + NextToken *string `type:"string"` } // String returns the string representation. @@ -9028,7 +14456,7 @@ type GetWirelessDeviceStatisticsOutput 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 GetWirelessDeviceStatisticsOutput) String() string { +func (s ListMulticastGroupsOutput) String() string { return awsutil.Prettify(s) } @@ -9037,41 +14465,31 @@ func (s GetWirelessDeviceStatisticsOutput) 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 GetWirelessDeviceStatisticsOutput) GoString() string { +func (s ListMulticastGroupsOutput) GoString() string { return s.String() } -// SetLastUplinkReceivedAt sets the LastUplinkReceivedAt field's value. -func (s *GetWirelessDeviceStatisticsOutput) SetLastUplinkReceivedAt(v string) *GetWirelessDeviceStatisticsOutput { - s.LastUplinkReceivedAt = &v - return s -} - -// SetLoRaWAN sets the LoRaWAN field's value. -func (s *GetWirelessDeviceStatisticsOutput) SetLoRaWAN(v *LoRaWANDeviceMetadata) *GetWirelessDeviceStatisticsOutput { - s.LoRaWAN = v - return s -} - -// SetSidewalk sets the Sidewalk field's value. -func (s *GetWirelessDeviceStatisticsOutput) SetSidewalk(v *SidewalkDeviceMetadata) *GetWirelessDeviceStatisticsOutput { - s.Sidewalk = v +// SetMulticastGroupList sets the MulticastGroupList field's value. +func (s *ListMulticastGroupsOutput) SetMulticastGroupList(v []*MulticastGroup) *ListMulticastGroupsOutput { + s.MulticastGroupList = v return s } -// SetWirelessDeviceId sets the WirelessDeviceId field's value. -func (s *GetWirelessDeviceStatisticsOutput) SetWirelessDeviceId(v string) *GetWirelessDeviceStatisticsOutput { - s.WirelessDeviceId = &v +// SetNextToken sets the NextToken field's value. +func (s *ListMulticastGroupsOutput) SetNextToken(v string) *ListMulticastGroupsOutput { + s.NextToken = &v return s } -type GetWirelessGatewayCertificateInput struct { +type ListPartnerAccountsInput struct { _ struct{} `type:"structure" nopayload:"true"` - // The ID of the resource to get. - // - // Id is a required field - Id *string `location:"uri" locationName:"Id" type:"string" required:"true"` + // The maximum number of results to return in this operation. + MaxResults *int64 `location:"querystring" locationName:"maxResults" type:"integer"` + + // To retrieve the next set of results, the nextToken value from a previous + // response; otherwise null to receive the first set of results. + NextToken *string `location:"querystring" locationName:"nextToken" type:"string"` } // String returns the string representation. @@ -9079,7 +14497,7 @@ type GetWirelessGatewayCertificateInput 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 GetWirelessGatewayCertificateInput) String() string { +func (s ListPartnerAccountsInput) String() string { return awsutil.Prettify(s) } @@ -9088,41 +14506,31 @@ func (s GetWirelessGatewayCertificateInput) 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 GetWirelessGatewayCertificateInput) GoString() string { +func (s ListPartnerAccountsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetWirelessGatewayCertificateInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetWirelessGatewayCertificateInput"} - 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 +// SetMaxResults sets the MaxResults field's value. +func (s *ListPartnerAccountsInput) SetMaxResults(v int64) *ListPartnerAccountsInput { + s.MaxResults = &v + return s } -// SetId sets the Id field's value. -func (s *GetWirelessGatewayCertificateInput) SetId(v string) *GetWirelessGatewayCertificateInput { - s.Id = &v +// SetNextToken sets the NextToken field's value. +func (s *ListPartnerAccountsInput) SetNextToken(v string) *ListPartnerAccountsInput { + s.NextToken = &v return s } -type GetWirelessGatewayCertificateOutput struct { +type ListPartnerAccountsOutput struct { _ struct{} `type:"structure"` - // The ID of the certificate associated with the wireless gateway. - IotCertificateId *string `min:"1" type:"string"` + // The token to use to get the next set of results, or null if there are no + // additional results. + NextToken *string `type:"string"` - // The ID of the certificate that is associated with the wireless gateway and - // used for the LoRaWANNetworkServer endpoint. - LoRaWANNetworkServerCertificateId *string `min:"1" type:"string"` + // The Sidewalk account credentials. + Sidewalk []*SidewalkAccountInfoWithFingerprint `type:"list"` } // String returns the string representation. @@ -9130,7 +14538,7 @@ type GetWirelessGatewayCertificateOutput 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 GetWirelessGatewayCertificateOutput) String() string { +func (s ListPartnerAccountsOutput) String() string { return awsutil.Prettify(s) } @@ -9139,29 +14547,31 @@ func (s GetWirelessGatewayCertificateOutput) 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 GetWirelessGatewayCertificateOutput) GoString() string { +func (s ListPartnerAccountsOutput) GoString() string { return s.String() } -// SetIotCertificateId sets the IotCertificateId field's value. -func (s *GetWirelessGatewayCertificateOutput) SetIotCertificateId(v string) *GetWirelessGatewayCertificateOutput { - s.IotCertificateId = &v +// SetNextToken sets the NextToken field's value. +func (s *ListPartnerAccountsOutput) SetNextToken(v string) *ListPartnerAccountsOutput { + s.NextToken = &v return s } -// SetLoRaWANNetworkServerCertificateId sets the LoRaWANNetworkServerCertificateId field's value. -func (s *GetWirelessGatewayCertificateOutput) SetLoRaWANNetworkServerCertificateId(v string) *GetWirelessGatewayCertificateOutput { - s.LoRaWANNetworkServerCertificateId = &v +// SetSidewalk sets the Sidewalk field's value. +func (s *ListPartnerAccountsOutput) SetSidewalk(v []*SidewalkAccountInfoWithFingerprint) *ListPartnerAccountsOutput { + s.Sidewalk = v return s } -type GetWirelessGatewayFirmwareInformationInput struct { +type ListServiceProfilesInput struct { _ struct{} `type:"structure" nopayload:"true"` - // The ID of the resource to get. - // - // Id is a required field - Id *string `location:"uri" locationName:"Id" type:"string" required:"true"` + // The maximum number of results to return in this operation. + MaxResults *int64 `location:"querystring" locationName:"maxResults" type:"integer"` + + // To retrieve the next set of results, the nextToken value from a previous + // response; otherwise null to receive the first set of results. + NextToken *string `location:"querystring" locationName:"nextToken" type:"string"` } // String returns the string representation. @@ -9169,7 +14579,7 @@ type GetWirelessGatewayFirmwareInformationInput 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 GetWirelessGatewayFirmwareInformationInput) String() string { +func (s ListServiceProfilesInput) String() string { return awsutil.Prettify(s) } @@ -9178,37 +14588,31 @@ func (s GetWirelessGatewayFirmwareInformationInput) 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 GetWirelessGatewayFirmwareInformationInput) GoString() string { +func (s ListServiceProfilesInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetWirelessGatewayFirmwareInformationInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetWirelessGatewayFirmwareInformationInput"} - 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 +// SetMaxResults sets the MaxResults field's value. +func (s *ListServiceProfilesInput) SetMaxResults(v int64) *ListServiceProfilesInput { + s.MaxResults = &v + return s } -// SetId sets the Id field's value. -func (s *GetWirelessGatewayFirmwareInformationInput) SetId(v string) *GetWirelessGatewayFirmwareInformationInput { - s.Id = &v +// SetNextToken sets the NextToken field's value. +func (s *ListServiceProfilesInput) SetNextToken(v string) *ListServiceProfilesInput { + s.NextToken = &v return s } -type GetWirelessGatewayFirmwareInformationOutput struct { +type ListServiceProfilesOutput struct { _ struct{} `type:"structure"` - // Information about the wireless gateway's firmware. - LoRaWAN *LoRaWANGatewayCurrentVersion `type:"structure"` + // The token to use to get the next set of results, or null if there are no + // additional results. + NextToken *string `type:"string"` + + // The list of service profiles. + ServiceProfileList []*ServiceProfile `type:"list"` } // String returns the string representation. @@ -9216,7 +14620,7 @@ type GetWirelessGatewayFirmwareInformationOutput 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 GetWirelessGatewayFirmwareInformationOutput) String() string { +func (s ListServiceProfilesOutput) String() string { return awsutil.Prettify(s) } @@ -9225,28 +14629,29 @@ func (s GetWirelessGatewayFirmwareInformationOutput) 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 GetWirelessGatewayFirmwareInformationOutput) GoString() string { +func (s ListServiceProfilesOutput) GoString() string { return s.String() } -// SetLoRaWAN sets the LoRaWAN field's value. -func (s *GetWirelessGatewayFirmwareInformationOutput) SetLoRaWAN(v *LoRaWANGatewayCurrentVersion) *GetWirelessGatewayFirmwareInformationOutput { - s.LoRaWAN = v +// SetNextToken sets the NextToken field's value. +func (s *ListServiceProfilesOutput) SetNextToken(v string) *ListServiceProfilesOutput { + s.NextToken = &v return s } -type GetWirelessGatewayInput struct { - _ struct{} `type:"structure" nopayload:"true"` +// SetServiceProfileList sets the ServiceProfileList field's value. +func (s *ListServiceProfilesOutput) SetServiceProfileList(v []*ServiceProfile) *ListServiceProfilesOutput { + s.ServiceProfileList = v + return s +} - // The identifier of the wireless gateway to get. - // - // Identifier is a required field - Identifier *string `location:"uri" locationName:"Identifier" type:"string" required:"true"` +type ListTagsForResourceInput struct { + _ struct{} `type:"structure" nopayload:"true"` - // The type of identifier used in identifier. + // The ARN of the resource for which you want to list tags. // - // IdentifierType is a required field - IdentifierType *string `location:"querystring" locationName:"identifierType" type:"string" required:"true" enum:"WirelessGatewayIdType"` + // ResourceArn is a required field + ResourceArn *string `location:"querystring" locationName:"resourceArn" min:"1" type:"string" required:"true"` } // String returns the string representation. @@ -9254,7 +14659,7 @@ type GetWirelessGatewayInput 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 GetWirelessGatewayInput) String() string { +func (s ListTagsForResourceInput) String() string { return awsutil.Prettify(s) } @@ -9263,21 +14668,18 @@ func (s GetWirelessGatewayInput) 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 GetWirelessGatewayInput) GoString() string { +func (s ListTagsForResourceInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *GetWirelessGatewayInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetWirelessGatewayInput"} - if s.Identifier == nil { - invalidParams.Add(request.NewErrParamRequired("Identifier")) - } - if s.Identifier != nil && len(*s.Identifier) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Identifier", 1)) +func (s *ListTagsForResourceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListTagsForResourceInput"} + if s.ResourceArn == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceArn")) } - if s.IdentifierType == nil { - invalidParams.Add(request.NewErrParamRequired("IdentifierType")) + if s.ResourceArn != nil && len(*s.ResourceArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1)) } if invalidParams.Len() > 0 { @@ -9286,42 +14688,18 @@ func (s *GetWirelessGatewayInput) Validate() error { return nil } -// SetIdentifier sets the Identifier field's value. -func (s *GetWirelessGatewayInput) SetIdentifier(v string) *GetWirelessGatewayInput { - s.Identifier = &v - return s -} - -// SetIdentifierType sets the IdentifierType field's value. -func (s *GetWirelessGatewayInput) SetIdentifierType(v string) *GetWirelessGatewayInput { - s.IdentifierType = &v +// SetResourceArn sets the ResourceArn field's value. +func (s *ListTagsForResourceInput) SetResourceArn(v string) *ListTagsForResourceInput { + s.ResourceArn = &v return s } -type GetWirelessGatewayOutput struct { +type ListTagsForResourceOutput struct { _ struct{} `type:"structure"` - // The Amazon Resource Name of the resource. - Arn *string `type:"string"` - - // The description of the resource. - Description *string `type:"string"` - - // The ID of the wireless gateway. - Id *string `type:"string"` - - // Information about the wireless gateway. - LoRaWAN *LoRaWANGateway `type:"structure"` - - // The name of the resource. - Name *string `type:"string"` - - // The ARN of the thing associated with the wireless gateway. - ThingArn *string `type:"string"` - - // The name of the thing associated with the wireless gateway. The value is - // empty if a thing isn't associated with the gateway. - ThingName *string `type:"string"` + // The tags to attach to the specified resource. Tags are metadata that you + // can use to manage a resource. + Tags []*Tag `type:"list"` } // String returns the string representation. @@ -9329,7 +14707,7 @@ type GetWirelessGatewayOutput 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 GetWirelessGatewayOutput) String() string { +func (s ListTagsForResourceOutput) String() string { return awsutil.Prettify(s) } @@ -9338,59 +14716,44 @@ func (s GetWirelessGatewayOutput) 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 GetWirelessGatewayOutput) GoString() string { +func (s ListTagsForResourceOutput) GoString() string { return s.String() } -// SetArn sets the Arn field's value. -func (s *GetWirelessGatewayOutput) SetArn(v string) *GetWirelessGatewayOutput { - s.Arn = &v +// SetTags sets the Tags field's value. +func (s *ListTagsForResourceOutput) SetTags(v []*Tag) *ListTagsForResourceOutput { + s.Tags = v return s } -// SetDescription sets the Description field's value. -func (s *GetWirelessGatewayOutput) SetDescription(v string) *GetWirelessGatewayOutput { - s.Description = &v - return s -} +type ListWirelessDevicesInput struct { + _ struct{} `type:"structure" nopayload:"true"` -// SetId sets the Id field's value. -func (s *GetWirelessGatewayOutput) SetId(v string) *GetWirelessGatewayOutput { - s.Id = &v - return s -} + // A filter to list only the wireless devices that use this destination. + DestinationName *string `location:"querystring" locationName:"destinationName" type:"string"` -// SetLoRaWAN sets the LoRaWAN field's value. -func (s *GetWirelessGatewayOutput) SetLoRaWAN(v *LoRaWANGateway) *GetWirelessGatewayOutput { - s.LoRaWAN = v - return s -} + // A filter to list only the wireless devices that use this device profile. + DeviceProfileId *string `location:"querystring" locationName:"deviceProfileId" type:"string"` -// SetName sets the Name field's value. -func (s *GetWirelessGatewayOutput) SetName(v string) *GetWirelessGatewayOutput { - s.Name = &v - return s -} + // The ID of a FUOTA task. + FuotaTaskId *string `location:"querystring" locationName:"fuotaTaskId" type:"string"` -// SetThingArn sets the ThingArn field's value. -func (s *GetWirelessGatewayOutput) SetThingArn(v string) *GetWirelessGatewayOutput { - s.ThingArn = &v - return s -} + // The maximum number of results to return in this operation. + MaxResults *int64 `location:"querystring" locationName:"maxResults" type:"integer"` -// SetThingName sets the ThingName field's value. -func (s *GetWirelessGatewayOutput) SetThingName(v string) *GetWirelessGatewayOutput { - s.ThingName = &v - return s -} + // The ID of the multicast group. + MulticastGroupId *string `location:"querystring" locationName:"multicastGroupId" type:"string"` + + // To retrieve the next set of results, the nextToken value from a previous + // response; otherwise null to receive the first set of results. + NextToken *string `location:"querystring" locationName:"nextToken" type:"string"` -type GetWirelessGatewayStatisticsInput struct { - _ struct{} `type:"structure" nopayload:"true"` + // A filter to list only the wireless devices that use this service profile. + ServiceProfileId *string `location:"querystring" locationName:"serviceProfileId" type:"string"` - // The ID of the wireless gateway for which to get the data. - // - // WirelessGatewayId is a required field - WirelessGatewayId *string `location:"uri" locationName:"Id" type:"string" required:"true"` + // A filter to list only the wireless devices that use this wireless device + // type. + WirelessDeviceType *string `location:"querystring" locationName:"wirelessDeviceType" type:"string" enum:"WirelessDeviceType"` } // String returns the string representation. @@ -9398,7 +14761,7 @@ type GetWirelessGatewayStatisticsInput 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 GetWirelessGatewayStatisticsInput) String() string { +func (s ListWirelessDevicesInput) String() string { return awsutil.Prettify(s) } @@ -9407,43 +14770,67 @@ func (s GetWirelessGatewayStatisticsInput) 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 GetWirelessGatewayStatisticsInput) GoString() string { +func (s ListWirelessDevicesInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetWirelessGatewayStatisticsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetWirelessGatewayStatisticsInput"} - if s.WirelessGatewayId == nil { - invalidParams.Add(request.NewErrParamRequired("WirelessGatewayId")) - } - if s.WirelessGatewayId != nil && len(*s.WirelessGatewayId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("WirelessGatewayId", 1)) - } +// SetDestinationName sets the DestinationName field's value. +func (s *ListWirelessDevicesInput) SetDestinationName(v string) *ListWirelessDevicesInput { + s.DestinationName = &v + return s +} - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetDeviceProfileId sets the DeviceProfileId field's value. +func (s *ListWirelessDevicesInput) SetDeviceProfileId(v string) *ListWirelessDevicesInput { + s.DeviceProfileId = &v + return s } -// SetWirelessGatewayId sets the WirelessGatewayId field's value. -func (s *GetWirelessGatewayStatisticsInput) SetWirelessGatewayId(v string) *GetWirelessGatewayStatisticsInput { - s.WirelessGatewayId = &v +// SetFuotaTaskId sets the FuotaTaskId field's value. +func (s *ListWirelessDevicesInput) SetFuotaTaskId(v string) *ListWirelessDevicesInput { + s.FuotaTaskId = &v return s } -type GetWirelessGatewayStatisticsOutput struct { - _ struct{} `type:"structure"` +// SetMaxResults sets the MaxResults field's value. +func (s *ListWirelessDevicesInput) SetMaxResults(v int64) *ListWirelessDevicesInput { + s.MaxResults = &v + return s +} - // The connection status of the wireless gateway. - ConnectionStatus *string `type:"string" enum:"ConnectionStatus"` +// SetMulticastGroupId sets the MulticastGroupId field's value. +func (s *ListWirelessDevicesInput) SetMulticastGroupId(v string) *ListWirelessDevicesInput { + s.MulticastGroupId = &v + return s +} - // The date and time when the most recent uplink was received. - LastUplinkReceivedAt *string `type:"string"` +// SetNextToken sets the NextToken field's value. +func (s *ListWirelessDevicesInput) SetNextToken(v string) *ListWirelessDevicesInput { + s.NextToken = &v + return s +} - // The ID of the wireless gateway. - WirelessGatewayId *string `type:"string"` +// SetServiceProfileId sets the ServiceProfileId field's value. +func (s *ListWirelessDevicesInput) SetServiceProfileId(v string) *ListWirelessDevicesInput { + s.ServiceProfileId = &v + return s +} + +// SetWirelessDeviceType sets the WirelessDeviceType field's value. +func (s *ListWirelessDevicesInput) SetWirelessDeviceType(v string) *ListWirelessDevicesInput { + s.WirelessDeviceType = &v + return s +} + +type ListWirelessDevicesOutput struct { + _ struct{} `type:"structure"` + + // The token to use to get the next set of results, or null if there are no + // additional results. + NextToken *string `type:"string"` + + // The ID of the wireless device. + WirelessDeviceList []*WirelessDeviceStatistics `type:"list"` } // String returns the string representation. @@ -9451,7 +14838,7 @@ type GetWirelessGatewayStatisticsOutput 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 GetWirelessGatewayStatisticsOutput) String() string { +func (s ListWirelessDevicesOutput) String() string { return awsutil.Prettify(s) } @@ -9460,35 +14847,35 @@ func (s GetWirelessGatewayStatisticsOutput) 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 GetWirelessGatewayStatisticsOutput) GoString() string { +func (s ListWirelessDevicesOutput) GoString() string { return s.String() } -// SetConnectionStatus sets the ConnectionStatus field's value. -func (s *GetWirelessGatewayStatisticsOutput) SetConnectionStatus(v string) *GetWirelessGatewayStatisticsOutput { - s.ConnectionStatus = &v - return s -} - -// SetLastUplinkReceivedAt sets the LastUplinkReceivedAt field's value. -func (s *GetWirelessGatewayStatisticsOutput) SetLastUplinkReceivedAt(v string) *GetWirelessGatewayStatisticsOutput { - s.LastUplinkReceivedAt = &v +// SetNextToken sets the NextToken field's value. +func (s *ListWirelessDevicesOutput) SetNextToken(v string) *ListWirelessDevicesOutput { + s.NextToken = &v return s } -// SetWirelessGatewayId sets the WirelessGatewayId field's value. -func (s *GetWirelessGatewayStatisticsOutput) SetWirelessGatewayId(v string) *GetWirelessGatewayStatisticsOutput { - s.WirelessGatewayId = &v +// SetWirelessDeviceList sets the WirelessDeviceList field's value. +func (s *ListWirelessDevicesOutput) SetWirelessDeviceList(v []*WirelessDeviceStatistics) *ListWirelessDevicesOutput { + s.WirelessDeviceList = v return s } -type GetWirelessGatewayTaskDefinitionInput struct { +type ListWirelessGatewayTaskDefinitionsInput struct { _ struct{} `type:"structure" nopayload:"true"` - // The ID of the resource to get. - // - // Id is a required field - Id *string `location:"uri" locationName:"Id" type:"string" required:"true"` + // The maximum number of results to return in this operation. + MaxResults *int64 `location:"querystring" locationName:"maxResults" type:"integer"` + + // To retrieve the next set of results, the nextToken value from a previous + // response; otherwise null to receive the first set of results. + NextToken *string `location:"querystring" locationName:"nextToken" type:"string"` + + // A filter to list only the wireless gateway task definitions that use this + // task definition type. + TaskDefinitionType *string `location:"querystring" locationName:"taskDefinitionType" type:"string" enum:"WirelessGatewayTaskDefinitionType"` } // String returns the string representation. @@ -9496,7 +14883,7 @@ type GetWirelessGatewayTaskDefinitionInput 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 GetWirelessGatewayTaskDefinitionInput) String() string { +func (s ListWirelessGatewayTaskDefinitionsInput) String() string { return awsutil.Prettify(s) } @@ -9505,48 +14892,37 @@ func (s GetWirelessGatewayTaskDefinitionInput) 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 GetWirelessGatewayTaskDefinitionInput) GoString() string { +func (s ListWirelessGatewayTaskDefinitionsInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetWirelessGatewayTaskDefinitionInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetWirelessGatewayTaskDefinitionInput"} - if s.Id == nil { - invalidParams.Add(request.NewErrParamRequired("Id")) - } - if s.Id != nil && len(*s.Id) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Id", 1)) - } +// SetMaxResults sets the MaxResults field's value. +func (s *ListWirelessGatewayTaskDefinitionsInput) SetMaxResults(v int64) *ListWirelessGatewayTaskDefinitionsInput { + s.MaxResults = &v + return s +} - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetNextToken sets the NextToken field's value. +func (s *ListWirelessGatewayTaskDefinitionsInput) SetNextToken(v string) *ListWirelessGatewayTaskDefinitionsInput { + s.NextToken = &v + return s } -// SetId sets the Id field's value. -func (s *GetWirelessGatewayTaskDefinitionInput) SetId(v string) *GetWirelessGatewayTaskDefinitionInput { - s.Id = &v +// SetTaskDefinitionType sets the TaskDefinitionType field's value. +func (s *ListWirelessGatewayTaskDefinitionsInput) SetTaskDefinitionType(v string) *ListWirelessGatewayTaskDefinitionsInput { + s.TaskDefinitionType = &v return s } -type GetWirelessGatewayTaskDefinitionOutput struct { +type ListWirelessGatewayTaskDefinitionsOutput struct { _ struct{} `type:"structure"` - // The Amazon Resource Name of the resource. - Arn *string `type:"string"` - - // Whether to automatically create tasks using this task definition for all - // gateways with the specified current version. If false, the task must me created - // by calling CreateWirelessGatewayTask. - AutoCreateTasks *bool `type:"boolean"` - - // The name of the resource. - Name *string `min:"1" type:"string"` + // The token to use to get the next set of results, or null if there are no + // additional results. + NextToken *string `type:"string"` - // Information about the gateways to update. - Update *UpdateWirelessGatewayTaskCreate `type:"structure"` + // The list of task definitions. + TaskDefinitions []*UpdateWirelessGatewayTaskEntry `type:"list"` } // String returns the string representation. @@ -9554,7 +14930,7 @@ type GetWirelessGatewayTaskDefinitionOutput 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 GetWirelessGatewayTaskDefinitionOutput) String() string { +func (s ListWirelessGatewayTaskDefinitionsOutput) String() string { return awsutil.Prettify(s) } @@ -9563,41 +14939,31 @@ func (s GetWirelessGatewayTaskDefinitionOutput) 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 GetWirelessGatewayTaskDefinitionOutput) GoString() string { +func (s ListWirelessGatewayTaskDefinitionsOutput) GoString() string { return s.String() } -// SetArn sets the Arn field's value. -func (s *GetWirelessGatewayTaskDefinitionOutput) SetArn(v string) *GetWirelessGatewayTaskDefinitionOutput { - s.Arn = &v - return s -} - -// SetAutoCreateTasks sets the AutoCreateTasks field's value. -func (s *GetWirelessGatewayTaskDefinitionOutput) SetAutoCreateTasks(v bool) *GetWirelessGatewayTaskDefinitionOutput { - s.AutoCreateTasks = &v - return s -} - -// SetName sets the Name field's value. -func (s *GetWirelessGatewayTaskDefinitionOutput) SetName(v string) *GetWirelessGatewayTaskDefinitionOutput { - s.Name = &v +// SetNextToken sets the NextToken field's value. +func (s *ListWirelessGatewayTaskDefinitionsOutput) SetNextToken(v string) *ListWirelessGatewayTaskDefinitionsOutput { + s.NextToken = &v return s } -// SetUpdate sets the Update field's value. -func (s *GetWirelessGatewayTaskDefinitionOutput) SetUpdate(v *UpdateWirelessGatewayTaskCreate) *GetWirelessGatewayTaskDefinitionOutput { - s.Update = v +// SetTaskDefinitions sets the TaskDefinitions field's value. +func (s *ListWirelessGatewayTaskDefinitionsOutput) SetTaskDefinitions(v []*UpdateWirelessGatewayTaskEntry) *ListWirelessGatewayTaskDefinitionsOutput { + s.TaskDefinitions = v return s } -type GetWirelessGatewayTaskInput struct { +type ListWirelessGatewaysInput struct { _ struct{} `type:"structure" nopayload:"true"` - // The ID of the resource to get. - // - // Id is a required field - Id *string `location:"uri" locationName:"Id" type:"string" required:"true"` + // The maximum number of results to return in this operation. + MaxResults *int64 `location:"querystring" locationName:"maxResults" type:"integer"` + + // To retrieve the next set of results, the nextToken value from a previous + // response; otherwise null to receive the first set of results. + NextToken *string `location:"querystring" locationName:"nextToken" type:"string"` } // String returns the string representation. @@ -9605,7 +14971,7 @@ type GetWirelessGatewayTaskInput 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 GetWirelessGatewayTaskInput) String() string { +func (s ListWirelessGatewaysInput) String() string { return awsutil.Prettify(s) } @@ -9614,49 +14980,31 @@ func (s GetWirelessGatewayTaskInput) 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 GetWirelessGatewayTaskInput) GoString() string { +func (s ListWirelessGatewaysInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetWirelessGatewayTaskInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetWirelessGatewayTaskInput"} - 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 +// SetMaxResults sets the MaxResults field's value. +func (s *ListWirelessGatewaysInput) SetMaxResults(v int64) *ListWirelessGatewaysInput { + s.MaxResults = &v + return s } -// SetId sets the Id field's value. -func (s *GetWirelessGatewayTaskInput) SetId(v string) *GetWirelessGatewayTaskInput { - s.Id = &v +// SetNextToken sets the NextToken field's value. +func (s *ListWirelessGatewaysInput) SetNextToken(v string) *ListWirelessGatewaysInput { + s.NextToken = &v return s } -type GetWirelessGatewayTaskOutput struct { +type ListWirelessGatewaysOutput struct { _ struct{} `type:"structure"` - // The date and time when the most recent uplink was received. - LastUplinkReceivedAt *string `type:"string"` - - // The status of the request. - Status *string `type:"string" enum:"WirelessGatewayTaskStatus"` - - // The date and time when the task was created. - TaskCreatedAt *string `type:"string"` + // The token to use to get the next set of results, or null if there are no + // additional results. + NextToken *string `type:"string"` // The ID of the wireless gateway. - WirelessGatewayId *string `type:"string"` - - // The ID of the WirelessGatewayTask. - WirelessGatewayTaskDefinitionId *string `type:"string"` + WirelessGatewayList []*WirelessGatewayStatistics `type:"list"` } // String returns the string representation. @@ -9664,7 +15012,7 @@ type GetWirelessGatewayTaskOutput 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 GetWirelessGatewayTaskOutput) String() string { +func (s ListWirelessGatewaysOutput) String() string { return awsutil.Prettify(s) } @@ -9673,46 +15021,49 @@ func (s GetWirelessGatewayTaskOutput) 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 GetWirelessGatewayTaskOutput) GoString() string { +func (s ListWirelessGatewaysOutput) GoString() string { return s.String() } -// SetLastUplinkReceivedAt sets the LastUplinkReceivedAt field's value. -func (s *GetWirelessGatewayTaskOutput) SetLastUplinkReceivedAt(v string) *GetWirelessGatewayTaskOutput { - s.LastUplinkReceivedAt = &v +// SetNextToken sets the NextToken field's value. +func (s *ListWirelessGatewaysOutput) SetNextToken(v string) *ListWirelessGatewaysOutput { + s.NextToken = &v return s } -// SetStatus sets the Status field's value. -func (s *GetWirelessGatewayTaskOutput) SetStatus(v string) *GetWirelessGatewayTaskOutput { - s.Status = &v +// SetWirelessGatewayList sets the WirelessGatewayList field's value. +func (s *ListWirelessGatewaysOutput) SetWirelessGatewayList(v []*WirelessGatewayStatistics) *ListWirelessGatewaysOutput { + s.WirelessGatewayList = v return s } -// SetTaskCreatedAt sets the TaskCreatedAt field's value. -func (s *GetWirelessGatewayTaskOutput) SetTaskCreatedAt(v string) *GetWirelessGatewayTaskOutput { - s.TaskCreatedAt = &v - return s -} +// LoRaWAN object for create functions. +type LoRaWANDevice struct { + _ struct{} `type:"structure"` -// SetWirelessGatewayId sets the WirelessGatewayId field's value. -func (s *GetWirelessGatewayTaskOutput) SetWirelessGatewayId(v string) *GetWirelessGatewayTaskOutput { - s.WirelessGatewayId = &v - return s -} + // LoRaWAN object for create APIs + AbpV1_0_x *AbpV10X `type:"structure"` -// SetWirelessGatewayTaskDefinitionId sets the WirelessGatewayTaskDefinitionId field's value. -func (s *GetWirelessGatewayTaskOutput) SetWirelessGatewayTaskDefinitionId(v string) *GetWirelessGatewayTaskOutput { - s.WirelessGatewayTaskDefinitionId = &v - return s -} + // ABP device object for create APIs for v1.1 + AbpV1_1 *AbpV11 `type:"structure"` -// An unexpected error occurred while processing a request. -type InternalServerException struct { - _ struct{} `type:"structure"` - RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + // The DevEUI value. + DevEui *string `type:"string"` - Message_ *string `locationName:"Message" type:"string"` + // The ID of the device profile for the new wireless device. + DeviceProfileId *string `type:"string"` + + // List of FPort assigned for different LoRaWAN application packages to use + FPorts *FPorts `type:"structure"` + + // OTAA device object for create APIs for v1.0.x + OtaaV1_0_x *OtaaV10X `type:"structure"` + + // OTAA device object for v1.1 for create APIs + OtaaV1_1 *OtaaV11 `type:"structure"` + + // The ID of the service profile. + ServiceProfileId *string `type:"string"` } // String returns the string representation. @@ -9720,7 +15071,7 @@ type InternalServerException 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 InternalServerException) String() string { +func (s LoRaWANDevice) String() string { return awsutil.Prettify(s) } @@ -9729,57 +15080,94 @@ func (s InternalServerException) 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 InternalServerException) GoString() string { +func (s LoRaWANDevice) GoString() string { return s.String() } -func newErrorInternalServerException(v protocol.ResponseMetadata) error { - return &InternalServerException{ - RespMetadata: v, +// Validate inspects the fields of the type to determine if they are valid. +func (s *LoRaWANDevice) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "LoRaWANDevice"} + if s.FPorts != nil { + if err := s.FPorts.Validate(); err != nil { + invalidParams.AddNested("FPorts", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams } + return nil } -// Code returns the exception type name. -func (s *InternalServerException) Code() string { - return "InternalServerException" +// SetAbpV1_0_x sets the AbpV1_0_x field's value. +func (s *LoRaWANDevice) SetAbpV1_0_x(v *AbpV10X) *LoRaWANDevice { + s.AbpV1_0_x = v + return s } -// Message returns the exception's message. -func (s *InternalServerException) Message() string { - if s.Message_ != nil { - return *s.Message_ - } - return "" +// SetAbpV1_1 sets the AbpV1_1 field's value. +func (s *LoRaWANDevice) SetAbpV1_1(v *AbpV11) *LoRaWANDevice { + s.AbpV1_1 = v + return s } -// OrigErr always returns nil, satisfies awserr.Error interface. -func (s *InternalServerException) OrigErr() error { - return nil +// SetDevEui sets the DevEui field's value. +func (s *LoRaWANDevice) SetDevEui(v string) *LoRaWANDevice { + s.DevEui = &v + return s } -func (s *InternalServerException) Error() string { - return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +// SetDeviceProfileId sets the DeviceProfileId field's value. +func (s *LoRaWANDevice) SetDeviceProfileId(v string) *LoRaWANDevice { + s.DeviceProfileId = &v + return s } -// Status code returns the HTTP status code for the request's response error. -func (s *InternalServerException) StatusCode() int { - return s.RespMetadata.StatusCode +// SetFPorts sets the FPorts field's value. +func (s *LoRaWANDevice) SetFPorts(v *FPorts) *LoRaWANDevice { + s.FPorts = v + return s } -// RequestID returns the service's response RequestID for request. -func (s *InternalServerException) RequestID() string { - return s.RespMetadata.RequestID +// SetOtaaV1_0_x sets the OtaaV1_0_x field's value. +func (s *LoRaWANDevice) SetOtaaV1_0_x(v *OtaaV10X) *LoRaWANDevice { + s.OtaaV1_0_x = v + return s } -type ListDestinationsInput struct { - _ struct{} `type:"structure" nopayload:"true"` +// SetOtaaV1_1 sets the OtaaV1_1 field's value. +func (s *LoRaWANDevice) SetOtaaV1_1(v *OtaaV11) *LoRaWANDevice { + s.OtaaV1_1 = v + return s +} - // The maximum number of results to return in this operation. - MaxResults *int64 `location:"querystring" locationName:"maxResults" type:"integer"` +// SetServiceProfileId sets the ServiceProfileId field's value. +func (s *LoRaWANDevice) SetServiceProfileId(v string) *LoRaWANDevice { + s.ServiceProfileId = &v + return s +} - // To retrieve the next set of results, the nextToken value from a previous - // response; otherwise null to receive the first set of results. - NextToken *string `location:"querystring" locationName:"nextToken" type:"string"` +// LoRaWAN device metatdata. +type LoRaWANDeviceMetadata struct { + _ struct{} `type:"structure"` + + // The DataRate value. + DataRate *int64 `type:"integer"` + + // The DevEUI value. + DevEui *string `type:"string"` + + // The FPort value. + FPort *int64 `type:"integer"` + + // The device's channel frequency in Hz. + Frequency *int64 `type:"integer"` + + // Information about the gateways accessed by the device. + Gateways []*LoRaWANGatewayMetadata `type:"list"` + + // The date and time of the metadata. + Timestamp *string `type:"string"` } // String returns the string representation. @@ -9787,7 +15175,7 @@ type ListDestinationsInput 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 ListDestinationsInput) String() string { +func (s LoRaWANDeviceMetadata) String() string { return awsutil.Prettify(s) } @@ -9796,72 +15184,107 @@ func (s ListDestinationsInput) 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 ListDestinationsInput) GoString() string { +func (s LoRaWANDeviceMetadata) GoString() string { return s.String() } -// SetMaxResults sets the MaxResults field's value. -func (s *ListDestinationsInput) SetMaxResults(v int64) *ListDestinationsInput { - s.MaxResults = &v +// SetDataRate sets the DataRate field's value. +func (s *LoRaWANDeviceMetadata) SetDataRate(v int64) *LoRaWANDeviceMetadata { + s.DataRate = &v return s } -// SetNextToken sets the NextToken field's value. -func (s *ListDestinationsInput) SetNextToken(v string) *ListDestinationsInput { - s.NextToken = &v +// SetDevEui sets the DevEui field's value. +func (s *LoRaWANDeviceMetadata) SetDevEui(v string) *LoRaWANDeviceMetadata { + s.DevEui = &v return s } -type ListDestinationsOutput struct { - _ struct{} `type:"structure"` - - // The list of destinations. - DestinationList []*Destinations `type:"list"` - - // The token to use to get the next set of results, or null if there are no - // additional results. - NextToken *string `type:"string"` +// SetFPort sets the FPort field's value. +func (s *LoRaWANDeviceMetadata) SetFPort(v int64) *LoRaWANDeviceMetadata { + s.FPort = &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 ListDestinationsOutput) String() string { - return awsutil.Prettify(s) +// SetFrequency sets the Frequency field's value. +func (s *LoRaWANDeviceMetadata) SetFrequency(v int64) *LoRaWANDeviceMetadata { + s.Frequency = &v + return 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 ListDestinationsOutput) GoString() string { - return s.String() +// SetGateways sets the Gateways field's value. +func (s *LoRaWANDeviceMetadata) SetGateways(v []*LoRaWANGatewayMetadata) *LoRaWANDeviceMetadata { + s.Gateways = v + return s } -// SetDestinationList sets the DestinationList field's value. -func (s *ListDestinationsOutput) SetDestinationList(v []*Destinations) *ListDestinationsOutput { - s.DestinationList = v +// SetTimestamp sets the Timestamp field's value. +func (s *LoRaWANDeviceMetadata) SetTimestamp(v string) *LoRaWANDeviceMetadata { + s.Timestamp = &v return s } -// SetNextToken sets the NextToken field's value. -func (s *ListDestinationsOutput) SetNextToken(v string) *ListDestinationsOutput { - s.NextToken = &v - return s -} +// LoRaWANDeviceProfile object. +type LoRaWANDeviceProfile struct { + _ struct{} `type:"structure"` + + // The ClassBTimeout value. + ClassBTimeout *int64 `type:"integer"` + + // The ClassCTimeout value. + ClassCTimeout *int64 `type:"integer"` + + // The list of values that make up the FactoryPresetFreqs value. + FactoryPresetFreqsList []*int64 `type:"list"` + + // The MAC version (such as OTAA 1.1 or OTAA 1.0.3) to use with this device + // profile. + MacVersion *string `type:"string"` + + // The MaxDutyCycle value. + MaxDutyCycle *int64 `type:"integer"` + + // The MaxEIRP value. + MaxEirp *int64 `type:"integer"` + + // The PingSlotDR value. + PingSlotDr *int64 `type:"integer"` + + // The PingSlotFreq value. + PingSlotFreq *int64 `min:"1e+06" type:"integer"` + + // The PingSlotPeriod value. + PingSlotPeriod *int64 `min:"128" type:"integer"` + + // The version of regional parameters. + RegParamsRevision *string `type:"string"` + + // The frequency band (RFRegion) value. + RfRegion *string `type:"string"` + + // The RXDataRate2 value. + RxDataRate2 *int64 `type:"integer"` + + // The RXDelay1 value. + RxDelay1 *int64 `type:"integer"` + + // The RXDROffset1 value. + RxDrOffset1 *int64 `type:"integer"` + + // The RXFreq2 value. + RxFreq2 *int64 `min:"1e+06" type:"integer"` + + // The Supports32BitFCnt value. + Supports32BitFCnt *bool `type:"boolean"` -type ListDeviceProfilesInput struct { - _ struct{} `type:"structure" nopayload:"true"` + // The SupportsClassB value. + SupportsClassB *bool `type:"boolean"` - // The maximum number of results to return in this operation. - MaxResults *int64 `location:"querystring" locationName:"maxResults" type:"integer"` + // The SupportsClassC value. + SupportsClassC *bool `type:"boolean"` - // To retrieve the next set of results, the nextToken value from a previous - // response; otherwise null to receive the first set of results. - NextToken *string `location:"querystring" locationName:"nextToken" type:"string"` + // The SupportsJoin value. + SupportsJoin *bool `type:"boolean"` } // String returns the string representation. @@ -9869,7 +15292,7 @@ type ListDeviceProfilesInput 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 ListDeviceProfilesInput) String() string { +func (s LoRaWANDeviceProfile) String() string { return awsutil.Prettify(s) } @@ -9878,154 +15301,149 @@ func (s ListDeviceProfilesInput) 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 ListDeviceProfilesInput) GoString() string { +func (s LoRaWANDeviceProfile) GoString() string { return s.String() } -// SetMaxResults sets the MaxResults field's value. -func (s *ListDeviceProfilesInput) SetMaxResults(v int64) *ListDeviceProfilesInput { - s.MaxResults = &v - return s +// Validate inspects the fields of the type to determine if they are valid. +func (s *LoRaWANDeviceProfile) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "LoRaWANDeviceProfile"} + if s.PingSlotFreq != nil && *s.PingSlotFreq < 1e+06 { + invalidParams.Add(request.NewErrParamMinValue("PingSlotFreq", 1e+06)) + } + if s.PingSlotPeriod != nil && *s.PingSlotPeriod < 128 { + invalidParams.Add(request.NewErrParamMinValue("PingSlotPeriod", 128)) + } + if s.RxFreq2 != nil && *s.RxFreq2 < 1e+06 { + invalidParams.Add(request.NewErrParamMinValue("RxFreq2", 1e+06)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// SetNextToken sets the NextToken field's value. -func (s *ListDeviceProfilesInput) SetNextToken(v string) *ListDeviceProfilesInput { - s.NextToken = &v +// SetClassBTimeout sets the ClassBTimeout field's value. +func (s *LoRaWANDeviceProfile) SetClassBTimeout(v int64) *LoRaWANDeviceProfile { + s.ClassBTimeout = &v return s } -type ListDeviceProfilesOutput struct { - _ struct{} `type:"structure"` - - // The list of device profiles. - DeviceProfileList []*DeviceProfile `type:"list"` - - // The token to use to get the next set of results, or null if there are no - // additional results. - NextToken *string `type:"string"` +// SetClassCTimeout sets the ClassCTimeout field's value. +func (s *LoRaWANDeviceProfile) SetClassCTimeout(v int64) *LoRaWANDeviceProfile { + s.ClassCTimeout = &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 ListDeviceProfilesOutput) String() string { - return awsutil.Prettify(s) +// SetFactoryPresetFreqsList sets the FactoryPresetFreqsList field's value. +func (s *LoRaWANDeviceProfile) SetFactoryPresetFreqsList(v []*int64) *LoRaWANDeviceProfile { + s.FactoryPresetFreqsList = v + return 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 ListDeviceProfilesOutput) GoString() string { - return s.String() +// SetMacVersion sets the MacVersion field's value. +func (s *LoRaWANDeviceProfile) SetMacVersion(v string) *LoRaWANDeviceProfile { + s.MacVersion = &v + return s } -// SetDeviceProfileList sets the DeviceProfileList field's value. -func (s *ListDeviceProfilesOutput) SetDeviceProfileList(v []*DeviceProfile) *ListDeviceProfilesOutput { - s.DeviceProfileList = v +// SetMaxDutyCycle sets the MaxDutyCycle field's value. +func (s *LoRaWANDeviceProfile) SetMaxDutyCycle(v int64) *LoRaWANDeviceProfile { + s.MaxDutyCycle = &v return s } -// SetNextToken sets the NextToken field's value. -func (s *ListDeviceProfilesOutput) SetNextToken(v string) *ListDeviceProfilesOutput { - s.NextToken = &v +// SetMaxEirp sets the MaxEirp field's value. +func (s *LoRaWANDeviceProfile) SetMaxEirp(v int64) *LoRaWANDeviceProfile { + s.MaxEirp = &v return s } -type ListPartnerAccountsInput struct { - _ struct{} `type:"structure" nopayload:"true"` - - // The maximum number of results to return in this operation. - MaxResults *int64 `location:"querystring" locationName:"maxResults" type:"integer"` - - // To retrieve the next set of results, the nextToken value from a previous - // response; otherwise null to receive the first set of results. - NextToken *string `location:"querystring" locationName:"nextToken" type:"string"` +// SetPingSlotDr sets the PingSlotDr field's value. +func (s *LoRaWANDeviceProfile) SetPingSlotDr(v int64) *LoRaWANDeviceProfile { + s.PingSlotDr = &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 ListPartnerAccountsInput) String() string { - return awsutil.Prettify(s) +// SetPingSlotFreq sets the PingSlotFreq field's value. +func (s *LoRaWANDeviceProfile) SetPingSlotFreq(v int64) *LoRaWANDeviceProfile { + s.PingSlotFreq = &v + return 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 ListPartnerAccountsInput) GoString() string { - return s.String() +// SetPingSlotPeriod sets the PingSlotPeriod field's value. +func (s *LoRaWANDeviceProfile) SetPingSlotPeriod(v int64) *LoRaWANDeviceProfile { + s.PingSlotPeriod = &v + return s } -// SetMaxResults sets the MaxResults field's value. -func (s *ListPartnerAccountsInput) SetMaxResults(v int64) *ListPartnerAccountsInput { - s.MaxResults = &v +// SetRegParamsRevision sets the RegParamsRevision field's value. +func (s *LoRaWANDeviceProfile) SetRegParamsRevision(v string) *LoRaWANDeviceProfile { + s.RegParamsRevision = &v return s } -// SetNextToken sets the NextToken field's value. -func (s *ListPartnerAccountsInput) SetNextToken(v string) *ListPartnerAccountsInput { - s.NextToken = &v +// SetRfRegion sets the RfRegion field's value. +func (s *LoRaWANDeviceProfile) SetRfRegion(v string) *LoRaWANDeviceProfile { + s.RfRegion = &v return s } -type ListPartnerAccountsOutput struct { - _ struct{} `type:"structure"` +// SetRxDataRate2 sets the RxDataRate2 field's value. +func (s *LoRaWANDeviceProfile) SetRxDataRate2(v int64) *LoRaWANDeviceProfile { + s.RxDataRate2 = &v + return s +} - // The token to use to get the next set of results, or null if there are no - // additional results. - NextToken *string `type:"string"` +// SetRxDelay1 sets the RxDelay1 field's value. +func (s *LoRaWANDeviceProfile) SetRxDelay1(v int64) *LoRaWANDeviceProfile { + s.RxDelay1 = &v + return s +} - // The Sidewalk account credentials. - Sidewalk []*SidewalkAccountInfoWithFingerprint `type:"list"` +// SetRxDrOffset1 sets the RxDrOffset1 field's value. +func (s *LoRaWANDeviceProfile) SetRxDrOffset1(v int64) *LoRaWANDeviceProfile { + s.RxDrOffset1 = &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 ListPartnerAccountsOutput) String() string { - return awsutil.Prettify(s) +// SetRxFreq2 sets the RxFreq2 field's value. +func (s *LoRaWANDeviceProfile) SetRxFreq2(v int64) *LoRaWANDeviceProfile { + s.RxFreq2 = &v + return 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 ListPartnerAccountsOutput) GoString() string { - return s.String() +// SetSupports32BitFCnt sets the Supports32BitFCnt field's value. +func (s *LoRaWANDeviceProfile) SetSupports32BitFCnt(v bool) *LoRaWANDeviceProfile { + s.Supports32BitFCnt = &v + return s } -// SetNextToken sets the NextToken field's value. -func (s *ListPartnerAccountsOutput) SetNextToken(v string) *ListPartnerAccountsOutput { - s.NextToken = &v +// SetSupportsClassB sets the SupportsClassB field's value. +func (s *LoRaWANDeviceProfile) SetSupportsClassB(v bool) *LoRaWANDeviceProfile { + s.SupportsClassB = &v return s } -// SetSidewalk sets the Sidewalk field's value. -func (s *ListPartnerAccountsOutput) SetSidewalk(v []*SidewalkAccountInfoWithFingerprint) *ListPartnerAccountsOutput { - s.Sidewalk = v +// SetSupportsClassC sets the SupportsClassC field's value. +func (s *LoRaWANDeviceProfile) SetSupportsClassC(v bool) *LoRaWANDeviceProfile { + s.SupportsClassC = &v return s } -type ListServiceProfilesInput struct { - _ struct{} `type:"structure" nopayload:"true"` +// SetSupportsJoin sets the SupportsJoin field's value. +func (s *LoRaWANDeviceProfile) SetSupportsJoin(v bool) *LoRaWANDeviceProfile { + s.SupportsJoin = &v + return s +} - // The maximum number of results to return in this operation. - MaxResults *int64 `location:"querystring" locationName:"maxResults" type:"integer"` +// The LoRaWAN information used with a FUOTA task. +type LoRaWANFuotaTask struct { + _ struct{} `type:"structure"` - // To retrieve the next set of results, the nextToken value from a previous - // response; otherwise null to receive the first set of results. - NextToken *string `location:"querystring" locationName:"nextToken" type:"string"` + // Supported RfRegions + RfRegion *string `type:"string" enum:"SupportedRfRegion"` } // String returns the string representation. @@ -10033,7 +15451,7 @@ type ListServiceProfilesInput 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 ListServiceProfilesInput) String() string { +func (s LoRaWANFuotaTask) String() string { return awsutil.Prettify(s) } @@ -10042,31 +15460,25 @@ func (s ListServiceProfilesInput) 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 ListServiceProfilesInput) GoString() string { +func (s LoRaWANFuotaTask) GoString() string { return s.String() } -// SetMaxResults sets the MaxResults field's value. -func (s *ListServiceProfilesInput) SetMaxResults(v int64) *ListServiceProfilesInput { - s.MaxResults = &v - return s -} - -// SetNextToken sets the NextToken field's value. -func (s *ListServiceProfilesInput) SetNextToken(v string) *ListServiceProfilesInput { - s.NextToken = &v +// SetRfRegion sets the RfRegion field's value. +func (s *LoRaWANFuotaTask) SetRfRegion(v string) *LoRaWANFuotaTask { + s.RfRegion = &v return s } -type ListServiceProfilesOutput struct { +// The LoRaWAN information returned from getting a FUOTA task. +type LoRaWANFuotaTaskGetInfo struct { _ struct{} `type:"structure"` - // The token to use to get the next set of results, or null if there are no - // additional results. - NextToken *string `type:"string"` + // The frequency band (RFRegion) value. + RfRegion *string `type:"string"` - // The list of service profiles. - ServiceProfileList []*ServiceProfile `type:"list"` + // Start time of a FUOTA task. + StartTime *time.Time `type:"timestamp" timestampFormat:"iso8601"` } // String returns the string representation. @@ -10074,7 +15486,7 @@ type ListServiceProfilesOutput 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 ListServiceProfilesOutput) String() string { +func (s LoRaWANFuotaTaskGetInfo) String() string { return awsutil.Prettify(s) } @@ -10083,29 +15495,41 @@ func (s ListServiceProfilesOutput) 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 ListServiceProfilesOutput) GoString() string { +func (s LoRaWANFuotaTaskGetInfo) GoString() string { return s.String() } -// SetNextToken sets the NextToken field's value. -func (s *ListServiceProfilesOutput) SetNextToken(v string) *ListServiceProfilesOutput { - s.NextToken = &v +// SetRfRegion sets the RfRegion field's value. +func (s *LoRaWANFuotaTaskGetInfo) SetRfRegion(v string) *LoRaWANFuotaTaskGetInfo { + s.RfRegion = &v return s } -// SetServiceProfileList sets the ServiceProfileList field's value. -func (s *ListServiceProfilesOutput) SetServiceProfileList(v []*ServiceProfile) *ListServiceProfilesOutput { - s.ServiceProfileList = v +// SetStartTime sets the StartTime field's value. +func (s *LoRaWANFuotaTaskGetInfo) SetStartTime(v time.Time) *LoRaWANFuotaTaskGetInfo { + s.StartTime = &v return s } -type ListTagsForResourceInput struct { - _ struct{} `type:"structure" nopayload:"true"` +// LoRaWANGateway object. +type LoRaWANGateway struct { + _ struct{} `type:"structure"` + + // The gateway's EUI value. + GatewayEui *string `type:"string"` + + // A list of JoinEuiRange used by LoRa gateways to filter LoRa frames. + JoinEuiFilters [][]*string `type:"list"` + + // A list of NetId values that are used by LoRa gateways to filter the uplink + // frames. + NetIdFilters []*string `type:"list"` + + // The frequency band (RFRegion) value. + RfRegion *string `type:"string"` - // The ARN of the resource for which you want to list tags. - // - // ResourceArn is a required field - ResourceArn *string `location:"querystring" locationName:"resourceArn" min:"1" type:"string" required:"true"` + // A list of integer indicating which sub bands are supported by LoRa gateway. + SubBands []*int64 `type:"list"` } // String returns the string representation. @@ -10113,7 +15537,7 @@ type ListTagsForResourceInput 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 ListTagsForResourceInput) String() string { +func (s LoRaWANGateway) String() string { return awsutil.Prettify(s) } @@ -10122,38 +15546,46 @@ func (s ListTagsForResourceInput) 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 ListTagsForResourceInput) GoString() string { +func (s LoRaWANGateway) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListTagsForResourceInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListTagsForResourceInput"} - if s.ResourceArn == nil { - invalidParams.Add(request.NewErrParamRequired("ResourceArn")) - } - if s.ResourceArn != nil && len(*s.ResourceArn) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1)) - } +// SetGatewayEui sets the GatewayEui field's value. +func (s *LoRaWANGateway) SetGatewayEui(v string) *LoRaWANGateway { + s.GatewayEui = &v + return s +} - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetJoinEuiFilters sets the JoinEuiFilters field's value. +func (s *LoRaWANGateway) SetJoinEuiFilters(v [][]*string) *LoRaWANGateway { + s.JoinEuiFilters = v + return s } -// SetResourceArn sets the ResourceArn field's value. -func (s *ListTagsForResourceInput) SetResourceArn(v string) *ListTagsForResourceInput { - s.ResourceArn = &v +// SetNetIdFilters sets the NetIdFilters field's value. +func (s *LoRaWANGateway) SetNetIdFilters(v []*string) *LoRaWANGateway { + s.NetIdFilters = v return s } -type ListTagsForResourceOutput struct { +// SetRfRegion sets the RfRegion field's value. +func (s *LoRaWANGateway) SetRfRegion(v string) *LoRaWANGateway { + s.RfRegion = &v + return s +} + +// SetSubBands sets the SubBands field's value. +func (s *LoRaWANGateway) SetSubBands(v []*int64) *LoRaWANGateway { + s.SubBands = v + return s +} + +// LoRaWANGatewayCurrentVersion object. +type LoRaWANGatewayCurrentVersion struct { _ struct{} `type:"structure"` - // The tags to attach to the specified resource. Tags are metadata that you - // can use to manage a resource. - Tags []*Tag `type:"list"` + // The version of the gateways that should receive the update. + CurrentVersion *LoRaWANGatewayVersion `type:"structure"` } // String returns the string representation. @@ -10161,7 +15593,7 @@ type ListTagsForResourceOutput 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 ListTagsForResourceOutput) String() string { +func (s LoRaWANGatewayCurrentVersion) String() string { return awsutil.Prettify(s) } @@ -10170,38 +15602,28 @@ func (s ListTagsForResourceOutput) 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 ListTagsForResourceOutput) GoString() string { +func (s LoRaWANGatewayCurrentVersion) GoString() string { return s.String() } -// SetTags sets the Tags field's value. -func (s *ListTagsForResourceOutput) SetTags(v []*Tag) *ListTagsForResourceOutput { - s.Tags = v +// SetCurrentVersion sets the CurrentVersion field's value. +func (s *LoRaWANGatewayCurrentVersion) SetCurrentVersion(v *LoRaWANGatewayVersion) *LoRaWANGatewayCurrentVersion { + s.CurrentVersion = v return s } -type ListWirelessDevicesInput struct { - _ struct{} `type:"structure" nopayload:"true"` - - // A filter to list only the wireless devices that use this destination. - DestinationName *string `location:"querystring" locationName:"destinationName" type:"string"` - - // A filter to list only the wireless devices that use this device profile. - DeviceProfileId *string `location:"querystring" locationName:"deviceProfileId" type:"string"` - - // The maximum number of results to return in this operation. - MaxResults *int64 `location:"querystring" locationName:"maxResults" type:"integer"` +// LoRaWAN gateway metatdata. +type LoRaWANGatewayMetadata struct { + _ struct{} `type:"structure"` - // To retrieve the next set of results, the nextToken value from a previous - // response; otherwise null to receive the first set of results. - NextToken *string `location:"querystring" locationName:"nextToken" type:"string"` + // The gateway's EUI value. + GatewayEui *string `type:"string"` - // A filter to list only the wireless devices that use this service profile. - ServiceProfileId *string `location:"querystring" locationName:"serviceProfileId" type:"string"` + // The RSSI value. + Rssi *float64 `type:"double"` - // A filter to list only the wireless devices that use this wireless device - // type. - WirelessDeviceType *string `location:"querystring" locationName:"wirelessDeviceType" type:"string" enum:"WirelessDeviceType"` + // The SNR value. + Snr *float64 `type:"double"` } // String returns the string representation. @@ -10209,7 +15631,7 @@ type ListWirelessDevicesInput 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 ListWirelessDevicesInput) String() string { +func (s LoRaWANGatewayMetadata) String() string { return awsutil.Prettify(s) } @@ -10218,55 +15640,40 @@ func (s ListWirelessDevicesInput) 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 ListWirelessDevicesInput) GoString() string { +func (s LoRaWANGatewayMetadata) GoString() string { return s.String() } -// SetDestinationName sets the DestinationName field's value. -func (s *ListWirelessDevicesInput) SetDestinationName(v string) *ListWirelessDevicesInput { - s.DestinationName = &v - return s -} - -// SetDeviceProfileId sets the DeviceProfileId field's value. -func (s *ListWirelessDevicesInput) SetDeviceProfileId(v string) *ListWirelessDevicesInput { - s.DeviceProfileId = &v - return s -} - -// SetMaxResults sets the MaxResults field's value. -func (s *ListWirelessDevicesInput) SetMaxResults(v int64) *ListWirelessDevicesInput { - s.MaxResults = &v - return s -} - -// SetNextToken sets the NextToken field's value. -func (s *ListWirelessDevicesInput) SetNextToken(v string) *ListWirelessDevicesInput { - s.NextToken = &v +// SetGatewayEui sets the GatewayEui field's value. +func (s *LoRaWANGatewayMetadata) SetGatewayEui(v string) *LoRaWANGatewayMetadata { + s.GatewayEui = &v return s } -// SetServiceProfileId sets the ServiceProfileId field's value. -func (s *ListWirelessDevicesInput) SetServiceProfileId(v string) *ListWirelessDevicesInput { - s.ServiceProfileId = &v +// SetRssi sets the Rssi field's value. +func (s *LoRaWANGatewayMetadata) SetRssi(v float64) *LoRaWANGatewayMetadata { + s.Rssi = &v return s } -// SetWirelessDeviceType sets the WirelessDeviceType field's value. -func (s *ListWirelessDevicesInput) SetWirelessDeviceType(v string) *ListWirelessDevicesInput { - s.WirelessDeviceType = &v +// SetSnr sets the Snr field's value. +func (s *LoRaWANGatewayMetadata) SetSnr(v float64) *LoRaWANGatewayMetadata { + s.Snr = &v return s } -type ListWirelessDevicesOutput struct { +// LoRaWANGatewayVersion object. +type LoRaWANGatewayVersion struct { _ struct{} `type:"structure"` - // The token to use to get the next set of results, or null if there are no - // additional results. - NextToken *string `type:"string"` + // The model number of the wireless gateway. + Model *string `min:"1" type:"string"` - // The ID of the wireless device. - WirelessDeviceList []*WirelessDeviceStatistics `type:"list"` + // The version of the wireless gateway firmware. + PackageVersion *string `min:"1" type:"string"` + + // The basic station version of the wireless gateway. + Station *string `min:"1" type:"string"` } // String returns the string representation. @@ -10274,7 +15681,7 @@ type ListWirelessDevicesOutput 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 ListWirelessDevicesOutput) String() string { +func (s LoRaWANGatewayVersion) String() string { return awsutil.Prettify(s) } @@ -10283,35 +15690,107 @@ func (s ListWirelessDevicesOutput) 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 ListWirelessDevicesOutput) GoString() string { +func (s LoRaWANGatewayVersion) GoString() string { return s.String() } -// SetNextToken sets the NextToken field's value. -func (s *ListWirelessDevicesOutput) SetNextToken(v string) *ListWirelessDevicesOutput { - s.NextToken = &v +// Validate inspects the fields of the type to determine if they are valid. +func (s *LoRaWANGatewayVersion) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "LoRaWANGatewayVersion"} + if s.Model != nil && len(*s.Model) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Model", 1)) + } + if s.PackageVersion != nil && len(*s.PackageVersion) < 1 { + invalidParams.Add(request.NewErrParamMinLen("PackageVersion", 1)) + } + if s.Station != nil && len(*s.Station) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Station", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetModel sets the Model field's value. +func (s *LoRaWANGatewayVersion) SetModel(v string) *LoRaWANGatewayVersion { + s.Model = &v return s } -// SetWirelessDeviceList sets the WirelessDeviceList field's value. -func (s *ListWirelessDevicesOutput) SetWirelessDeviceList(v []*WirelessDeviceStatistics) *ListWirelessDevicesOutput { - s.WirelessDeviceList = v +// SetPackageVersion sets the PackageVersion field's value. +func (s *LoRaWANGatewayVersion) SetPackageVersion(v string) *LoRaWANGatewayVersion { + s.PackageVersion = &v return s } -type ListWirelessGatewayTaskDefinitionsInput struct { - _ struct{} `type:"structure" nopayload:"true"` +// SetStation sets the Station field's value. +func (s *LoRaWANGatewayVersion) SetStation(v string) *LoRaWANGatewayVersion { + s.Station = &v + return s +} - // The maximum number of results to return in this operation. - MaxResults *int64 `location:"querystring" locationName:"maxResults" type:"integer"` +// LoRaWANGetServiceProfileInfo object. +type LoRaWANGetServiceProfileInfo struct { + _ struct{} `type:"structure"` + + // The AddGWMetaData value. + AddGwMetadata *bool `type:"boolean"` + + // The ChannelMask value. + ChannelMask *string `type:"string"` + + // The DevStatusReqFreq value. + DevStatusReqFreq *int64 `type:"integer"` + + // The DLBucketSize value. + DlBucketSize *int64 `type:"integer"` + + // The DLRate value. + DlRate *int64 `type:"integer"` + + // The DLRatePolicy value. + DlRatePolicy *string `type:"string"` + + // The DRMax value. + DrMax *int64 `type:"integer"` + + // The DRMin value. + DrMin *int64 `type:"integer"` + + // The HRAllowed value that describes whether handover roaming is allowed. + HrAllowed *bool `type:"boolean"` + + // The MinGwDiversity value. + MinGwDiversity *int64 `min:"1" type:"integer"` + + // The NwkGeoLoc value. + NwkGeoLoc *bool `type:"boolean"` + + // The PRAllowed value that describes whether passive roaming is allowed. + PrAllowed *bool `type:"boolean"` + + // The RAAllowed value that describes whether roaming activation is allowed. + RaAllowed *bool `type:"boolean"` + + // The ReportDevStatusBattery value. + ReportDevStatusBattery *bool `type:"boolean"` + + // The ReportDevStatusMargin value. + ReportDevStatusMargin *bool `type:"boolean"` + + // The TargetPER value. + TargetPer *int64 `type:"integer"` + + // The ULBucketSize value. + UlBucketSize *int64 `type:"integer"` - // To retrieve the next set of results, the nextToken value from a previous - // response; otherwise null to receive the first set of results. - NextToken *string `location:"querystring" locationName:"nextToken" type:"string"` + // The ULRate value. + UlRate *int64 `type:"integer"` - // A filter to list only the wireless gateway task definitions that use this - // task definition type. - TaskDefinitionType *string `location:"querystring" locationName:"taskDefinitionType" type:"string" enum:"WirelessGatewayTaskDefinitionType"` + // The ULRatePolicy value. + UlRatePolicy *string `type:"string"` } // String returns the string representation. @@ -10319,7 +15798,7 @@ type ListWirelessGatewayTaskDefinitionsInput 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 ListWirelessGatewayTaskDefinitionsInput) String() string { +func (s LoRaWANGetServiceProfileInfo) String() string { return awsutil.Prettify(s) } @@ -10328,119 +15807,130 @@ func (s ListWirelessGatewayTaskDefinitionsInput) 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 ListWirelessGatewayTaskDefinitionsInput) GoString() string { +func (s LoRaWANGetServiceProfileInfo) GoString() string { return s.String() } -// SetMaxResults sets the MaxResults field's value. -func (s *ListWirelessGatewayTaskDefinitionsInput) SetMaxResults(v int64) *ListWirelessGatewayTaskDefinitionsInput { - s.MaxResults = &v +// SetAddGwMetadata sets the AddGwMetadata field's value. +func (s *LoRaWANGetServiceProfileInfo) SetAddGwMetadata(v bool) *LoRaWANGetServiceProfileInfo { + s.AddGwMetadata = &v return s } -// SetNextToken sets the NextToken field's value. -func (s *ListWirelessGatewayTaskDefinitionsInput) SetNextToken(v string) *ListWirelessGatewayTaskDefinitionsInput { - s.NextToken = &v +// SetChannelMask sets the ChannelMask field's value. +func (s *LoRaWANGetServiceProfileInfo) SetChannelMask(v string) *LoRaWANGetServiceProfileInfo { + s.ChannelMask = &v return s } -// SetTaskDefinitionType sets the TaskDefinitionType field's value. -func (s *ListWirelessGatewayTaskDefinitionsInput) SetTaskDefinitionType(v string) *ListWirelessGatewayTaskDefinitionsInput { - s.TaskDefinitionType = &v +// SetDevStatusReqFreq sets the DevStatusReqFreq field's value. +func (s *LoRaWANGetServiceProfileInfo) SetDevStatusReqFreq(v int64) *LoRaWANGetServiceProfileInfo { + s.DevStatusReqFreq = &v return s } -type ListWirelessGatewayTaskDefinitionsOutput struct { - _ struct{} `type:"structure"` +// SetDlBucketSize sets the DlBucketSize field's value. +func (s *LoRaWANGetServiceProfileInfo) SetDlBucketSize(v int64) *LoRaWANGetServiceProfileInfo { + s.DlBucketSize = &v + return s +} - // The token to use to get the next set of results, or null if there are no - // additional results. - NextToken *string `type:"string"` +// SetDlRate sets the DlRate field's value. +func (s *LoRaWANGetServiceProfileInfo) SetDlRate(v int64) *LoRaWANGetServiceProfileInfo { + s.DlRate = &v + return s +} - // The list of task definitions. - TaskDefinitions []*UpdateWirelessGatewayTaskEntry `type:"list"` +// SetDlRatePolicy sets the DlRatePolicy field's value. +func (s *LoRaWANGetServiceProfileInfo) SetDlRatePolicy(v string) *LoRaWANGetServiceProfileInfo { + s.DlRatePolicy = &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 ListWirelessGatewayTaskDefinitionsOutput) String() string { - return awsutil.Prettify(s) +// SetDrMax sets the DrMax field's value. +func (s *LoRaWANGetServiceProfileInfo) SetDrMax(v int64) *LoRaWANGetServiceProfileInfo { + s.DrMax = &v + return 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 ListWirelessGatewayTaskDefinitionsOutput) GoString() string { - return s.String() +// SetDrMin sets the DrMin field's value. +func (s *LoRaWANGetServiceProfileInfo) SetDrMin(v int64) *LoRaWANGetServiceProfileInfo { + s.DrMin = &v + return s } -// SetNextToken sets the NextToken field's value. -func (s *ListWirelessGatewayTaskDefinitionsOutput) SetNextToken(v string) *ListWirelessGatewayTaskDefinitionsOutput { - s.NextToken = &v +// SetHrAllowed sets the HrAllowed field's value. +func (s *LoRaWANGetServiceProfileInfo) SetHrAllowed(v bool) *LoRaWANGetServiceProfileInfo { + s.HrAllowed = &v return s } -// SetTaskDefinitions sets the TaskDefinitions field's value. -func (s *ListWirelessGatewayTaskDefinitionsOutput) SetTaskDefinitions(v []*UpdateWirelessGatewayTaskEntry) *ListWirelessGatewayTaskDefinitionsOutput { - s.TaskDefinitions = v +// SetMinGwDiversity sets the MinGwDiversity field's value. +func (s *LoRaWANGetServiceProfileInfo) SetMinGwDiversity(v int64) *LoRaWANGetServiceProfileInfo { + s.MinGwDiversity = &v return s } -type ListWirelessGatewaysInput struct { - _ struct{} `type:"structure" nopayload:"true"` +// SetNwkGeoLoc sets the NwkGeoLoc field's value. +func (s *LoRaWANGetServiceProfileInfo) SetNwkGeoLoc(v bool) *LoRaWANGetServiceProfileInfo { + s.NwkGeoLoc = &v + return s +} - // The maximum number of results to return in this operation. - MaxResults *int64 `location:"querystring" locationName:"maxResults" type:"integer"` +// SetPrAllowed sets the PrAllowed field's value. +func (s *LoRaWANGetServiceProfileInfo) SetPrAllowed(v bool) *LoRaWANGetServiceProfileInfo { + s.PrAllowed = &v + return s +} - // To retrieve the next set of results, the nextToken value from a previous - // response; otherwise null to receive the first set of results. - NextToken *string `location:"querystring" locationName:"nextToken" type:"string"` +// SetRaAllowed sets the RaAllowed field's value. +func (s *LoRaWANGetServiceProfileInfo) SetRaAllowed(v bool) *LoRaWANGetServiceProfileInfo { + s.RaAllowed = &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 ListWirelessGatewaysInput) String() string { - return awsutil.Prettify(s) +// SetReportDevStatusBattery sets the ReportDevStatusBattery field's value. +func (s *LoRaWANGetServiceProfileInfo) SetReportDevStatusBattery(v bool) *LoRaWANGetServiceProfileInfo { + s.ReportDevStatusBattery = &v + return 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 ListWirelessGatewaysInput) GoString() string { - return s.String() +// SetReportDevStatusMargin sets the ReportDevStatusMargin field's value. +func (s *LoRaWANGetServiceProfileInfo) SetReportDevStatusMargin(v bool) *LoRaWANGetServiceProfileInfo { + s.ReportDevStatusMargin = &v + return s } -// SetMaxResults sets the MaxResults field's value. -func (s *ListWirelessGatewaysInput) SetMaxResults(v int64) *ListWirelessGatewaysInput { - s.MaxResults = &v +// SetTargetPer sets the TargetPer field's value. +func (s *LoRaWANGetServiceProfileInfo) SetTargetPer(v int64) *LoRaWANGetServiceProfileInfo { + s.TargetPer = &v return s } -// SetNextToken sets the NextToken field's value. -func (s *ListWirelessGatewaysInput) SetNextToken(v string) *ListWirelessGatewaysInput { - s.NextToken = &v +// SetUlBucketSize sets the UlBucketSize field's value. +func (s *LoRaWANGetServiceProfileInfo) SetUlBucketSize(v int64) *LoRaWANGetServiceProfileInfo { + s.UlBucketSize = &v return s } -type ListWirelessGatewaysOutput struct { - _ struct{} `type:"structure"` +// SetUlRate sets the UlRate field's value. +func (s *LoRaWANGetServiceProfileInfo) SetUlRate(v int64) *LoRaWANGetServiceProfileInfo { + s.UlRate = &v + return s +} - // The token to use to get the next set of results, or null if there are no - // additional results. - NextToken *string `type:"string"` +// SetUlRatePolicy sets the UlRatePolicy field's value. +func (s *LoRaWANGetServiceProfileInfo) SetUlRatePolicy(v string) *LoRaWANGetServiceProfileInfo { + s.UlRatePolicy = &v + return s +} - // The ID of the wireless gateway. - WirelessGatewayList []*WirelessGatewayStatistics `type:"list"` +// LoRaWAN object for list functions. +type LoRaWANListDevice struct { + _ struct{} `type:"structure"` + + // The DevEUI value. + DevEui *string `type:"string"` } // String returns the string representation. @@ -10448,7 +15938,7 @@ type ListWirelessGatewaysOutput 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 ListWirelessGatewaysOutput) String() string { +func (s LoRaWANListDevice) String() string { return awsutil.Prettify(s) } @@ -10457,46 +15947,25 @@ func (s ListWirelessGatewaysOutput) 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 ListWirelessGatewaysOutput) GoString() string { +func (s LoRaWANListDevice) GoString() string { return s.String() } -// SetNextToken sets the NextToken field's value. -func (s *ListWirelessGatewaysOutput) SetNextToken(v string) *ListWirelessGatewaysOutput { - s.NextToken = &v - return s -} - -// SetWirelessGatewayList sets the WirelessGatewayList field's value. -func (s *ListWirelessGatewaysOutput) SetWirelessGatewayList(v []*WirelessGatewayStatistics) *ListWirelessGatewaysOutput { - s.WirelessGatewayList = v +// SetDevEui sets the DevEui field's value. +func (s *LoRaWANListDevice) SetDevEui(v string) *LoRaWANListDevice { + s.DevEui = &v return s } -// LoRaWAN object for create functions. -type LoRaWANDevice struct { +// The LoRaWAN information that is to be used with the multicast group. +type LoRaWANMulticast struct { _ struct{} `type:"structure"` - // LoRaWAN object for create APIs - AbpV1_0_x *AbpV10X `type:"structure"` - - // ABP device object for create APIs for v1.1 - AbpV1_1 *AbpV11 `type:"structure"` - - // The DevEUI value. - DevEui *string `type:"string"` - - // The ID of the device profile for the new wireless device. - DeviceProfileId *string `type:"string"` - - // OTAA device object for create APIs for v1.0.x - OtaaV1_0_x *OtaaV10X `type:"structure"` - - // OTAA device object for v1.1 for create APIs - OtaaV1_1 *OtaaV11 `type:"structure"` + // DlClass for LoRaWAM, valid values are ClassB and ClassC. + DlClass *string `type:"string" enum:"DlClass"` - // The ID of the service profile. - ServiceProfileId *string `type:"string"` + // Supported RfRegions + RfRegion *string `type:"string" enum:"SupportedRfRegion"` } // String returns the string representation. @@ -10504,7 +15973,7 @@ type LoRaWANDevice 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 LoRaWANDevice) String() string { +func (s LoRaWANMulticast) String() string { return awsutil.Prettify(s) } @@ -10513,73 +15982,39 @@ func (s LoRaWANDevice) 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 LoRaWANDevice) GoString() string { +func (s LoRaWANMulticast) GoString() string { return s.String() } -// SetAbpV1_0_x sets the AbpV1_0_x field's value. -func (s *LoRaWANDevice) SetAbpV1_0_x(v *AbpV10X) *LoRaWANDevice { - s.AbpV1_0_x = v - return s -} - -// SetAbpV1_1 sets the AbpV1_1 field's value. -func (s *LoRaWANDevice) SetAbpV1_1(v *AbpV11) *LoRaWANDevice { - s.AbpV1_1 = v - return s -} - -// SetDevEui sets the DevEui field's value. -func (s *LoRaWANDevice) SetDevEui(v string) *LoRaWANDevice { - s.DevEui = &v - return s -} - -// SetDeviceProfileId sets the DeviceProfileId field's value. -func (s *LoRaWANDevice) SetDeviceProfileId(v string) *LoRaWANDevice { - s.DeviceProfileId = &v - return s -} - -// SetOtaaV1_0_x sets the OtaaV1_0_x field's value. -func (s *LoRaWANDevice) SetOtaaV1_0_x(v *OtaaV10X) *LoRaWANDevice { - s.OtaaV1_0_x = v - return s -} - -// SetOtaaV1_1 sets the OtaaV1_1 field's value. -func (s *LoRaWANDevice) SetOtaaV1_1(v *OtaaV11) *LoRaWANDevice { - s.OtaaV1_1 = v +// SetDlClass sets the DlClass field's value. +func (s *LoRaWANMulticast) SetDlClass(v string) *LoRaWANMulticast { + s.DlClass = &v return s } -// SetServiceProfileId sets the ServiceProfileId field's value. -func (s *LoRaWANDevice) SetServiceProfileId(v string) *LoRaWANDevice { - s.ServiceProfileId = &v +// SetRfRegion sets the RfRegion field's value. +func (s *LoRaWANMulticast) SetRfRegion(v string) *LoRaWANMulticast { + s.RfRegion = &v return s } -// LoRaWAN device metatdata. -type LoRaWANDeviceMetadata struct { +// The LoRaWAN information that is to be returned from getting multicast group +// information. +type LoRaWANMulticastGet struct { _ struct{} `type:"structure"` - // The DataRate value. - DataRate *int64 `type:"integer"` - - // The DevEUI value. - DevEui *string `type:"string"` - - // The FPort value. - FPort *int64 `type:"integer"` + // DlClass for LoRaWAM, valid values are ClassB and ClassC. + DlClass *string `type:"string" enum:"DlClass"` - // The device's channel frequency in Hz. - Frequency *int64 `type:"integer"` + // Number of devices that are associated to the multicast group. + NumberOfDevicesInGroup *int64 `type:"integer"` - // Information about the gateways accessed by the device. - Gateways []*LoRaWANGatewayMetadata `type:"list"` + // Number of devices that are requested to be associated with the multicast + // group. + NumberOfDevicesRequested *int64 `type:"integer"` - // The date and time of the metadata. - Timestamp *string `type:"string"` + // Supported RfRegions + RfRegion *string `type:"string" enum:"SupportedRfRegion"` } // String returns the string representation. @@ -10587,7 +16022,7 @@ type LoRaWANDeviceMetadata 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 LoRaWANDeviceMetadata) String() string { +func (s LoRaWANMulticastGet) String() string { return awsutil.Prettify(s) } @@ -10596,107 +16031,40 @@ func (s LoRaWANDeviceMetadata) 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 LoRaWANDeviceMetadata) GoString() string { +func (s LoRaWANMulticastGet) GoString() string { return s.String() } -// SetDataRate sets the DataRate field's value. -func (s *LoRaWANDeviceMetadata) SetDataRate(v int64) *LoRaWANDeviceMetadata { - s.DataRate = &v - return s -} - -// SetDevEui sets the DevEui field's value. -func (s *LoRaWANDeviceMetadata) SetDevEui(v string) *LoRaWANDeviceMetadata { - s.DevEui = &v - return s -} - -// SetFPort sets the FPort field's value. -func (s *LoRaWANDeviceMetadata) SetFPort(v int64) *LoRaWANDeviceMetadata { - s.FPort = &v +// SetDlClass sets the DlClass field's value. +func (s *LoRaWANMulticastGet) SetDlClass(v string) *LoRaWANMulticastGet { + s.DlClass = &v return s } -// SetFrequency sets the Frequency field's value. -func (s *LoRaWANDeviceMetadata) SetFrequency(v int64) *LoRaWANDeviceMetadata { - s.Frequency = &v +// SetNumberOfDevicesInGroup sets the NumberOfDevicesInGroup field's value. +func (s *LoRaWANMulticastGet) SetNumberOfDevicesInGroup(v int64) *LoRaWANMulticastGet { + s.NumberOfDevicesInGroup = &v return s } -// SetGateways sets the Gateways field's value. -func (s *LoRaWANDeviceMetadata) SetGateways(v []*LoRaWANGatewayMetadata) *LoRaWANDeviceMetadata { - s.Gateways = v +// SetNumberOfDevicesRequested sets the NumberOfDevicesRequested field's value. +func (s *LoRaWANMulticastGet) SetNumberOfDevicesRequested(v int64) *LoRaWANMulticastGet { + s.NumberOfDevicesRequested = &v return s } -// SetTimestamp sets the Timestamp field's value. -func (s *LoRaWANDeviceMetadata) SetTimestamp(v string) *LoRaWANDeviceMetadata { - s.Timestamp = &v +// SetRfRegion sets the RfRegion field's value. +func (s *LoRaWANMulticastGet) SetRfRegion(v string) *LoRaWANMulticastGet { + s.RfRegion = &v return s } -// LoRaWANDeviceProfile object. -type LoRaWANDeviceProfile struct { +// The metadata information of the LoRaWAN multicast group. +type LoRaWANMulticastMetadata struct { _ struct{} `type:"structure"` - // The ClassBTimeout value. - ClassBTimeout *int64 `type:"integer"` - - // The ClassCTimeout value. - ClassCTimeout *int64 `type:"integer"` - - // The list of values that make up the FactoryPresetFreqs value. - FactoryPresetFreqsList []*int64 `type:"list"` - - // The MAC version (such as OTAA 1.1 or OTAA 1.0.3) to use with this device - // profile. - MacVersion *string `type:"string"` - - // The MaxDutyCycle value. - MaxDutyCycle *int64 `type:"integer"` - - // The MaxEIRP value. - MaxEirp *int64 `type:"integer"` - - // The PingSlotDR value. - PingSlotDr *int64 `type:"integer"` - - // The PingSlotFreq value. - PingSlotFreq *int64 `min:"1e+06" type:"integer"` - - // The PingSlotPeriod value. - PingSlotPeriod *int64 `min:"128" type:"integer"` - - // The version of regional parameters. - RegParamsRevision *string `type:"string"` - - // The frequency band (RFRegion) value. - RfRegion *string `type:"string"` - - // The RXDataRate2 value. - RxDataRate2 *int64 `type:"integer"` - - // The RXDelay1 value. - RxDelay1 *int64 `type:"integer"` - - // The RXDROffset1 value. - RxDrOffset1 *int64 `type:"integer"` - - // The RXFreq2 value. - RxFreq2 *int64 `min:"1e+06" type:"integer"` - - // The Supports32BitFCnt value. - Supports32BitFCnt *bool `type:"boolean"` - - // The SupportsClassB value. - SupportsClassB *bool `type:"boolean"` - - // The SupportsClassC value. - SupportsClassC *bool `type:"boolean"` - - // The SupportsJoin value. - SupportsJoin *bool `type:"boolean"` + // The Fport value. + FPort *int64 `min:"1" type:"integer"` } // String returns the string representation. @@ -10704,7 +16072,7 @@ type LoRaWANDeviceProfile 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 LoRaWANDeviceProfile) String() string { +func (s LoRaWANMulticastMetadata) String() string { return awsutil.Prettify(s) } @@ -10713,21 +16081,15 @@ func (s LoRaWANDeviceProfile) 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 LoRaWANDeviceProfile) GoString() string { +func (s LoRaWANMulticastMetadata) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *LoRaWANDeviceProfile) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "LoRaWANDeviceProfile"} - if s.PingSlotFreq != nil && *s.PingSlotFreq < 1e+06 { - invalidParams.Add(request.NewErrParamMinValue("PingSlotFreq", 1e+06)) - } - if s.PingSlotPeriod != nil && *s.PingSlotPeriod < 128 { - invalidParams.Add(request.NewErrParamMinValue("PingSlotPeriod", 128)) - } - if s.RxFreq2 != nil && *s.RxFreq2 < 1e+06 { - invalidParams.Add(request.NewErrParamMinValue("RxFreq2", 1e+06)) +func (s *LoRaWANMulticastMetadata) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "LoRaWANMulticastMetadata"} + if s.FPort != nil && *s.FPort < 1 { + invalidParams.Add(request.NewErrParamMinValue("FPort", 1)) } if invalidParams.Len() > 0 { @@ -10736,139 +16098,138 @@ func (s *LoRaWANDeviceProfile) Validate() error { return nil } -// SetClassBTimeout sets the ClassBTimeout field's value. -func (s *LoRaWANDeviceProfile) SetClassBTimeout(v int64) *LoRaWANDeviceProfile { - s.ClassBTimeout = &v +// SetFPort sets the FPort field's value. +func (s *LoRaWANMulticastMetadata) SetFPort(v int64) *LoRaWANMulticastMetadata { + s.FPort = &v return s } -// SetClassCTimeout sets the ClassCTimeout field's value. -func (s *LoRaWANDeviceProfile) SetClassCTimeout(v int64) *LoRaWANDeviceProfile { - s.ClassCTimeout = &v - return s -} +// The LoRaWAN information used with the multicast session. +type LoRaWANMulticastSession struct { + _ struct{} `type:"structure"` -// SetFactoryPresetFreqsList sets the FactoryPresetFreqsList field's value. -func (s *LoRaWANDeviceProfile) SetFactoryPresetFreqsList(v []*int64) *LoRaWANDeviceProfile { - s.FactoryPresetFreqsList = v - return s -} + // Downlink data rate. + DlDr *int64 `type:"integer"` -// SetMacVersion sets the MacVersion field's value. -func (s *LoRaWANDeviceProfile) SetMacVersion(v string) *LoRaWANDeviceProfile { - s.MacVersion = &v - return s -} + // Downlink frequency. + DlFreq *int64 `min:"1e+08" type:"integer"` -// SetMaxDutyCycle sets the MaxDutyCycle field's value. -func (s *LoRaWANDeviceProfile) SetMaxDutyCycle(v int64) *LoRaWANDeviceProfile { - s.MaxDutyCycle = &v - return s -} + // Timestamp of when the multicast group session is to start. + SessionStartTime *time.Time `type:"timestamp" timestampFormat:"iso8601"` -// SetMaxEirp sets the MaxEirp field's value. -func (s *LoRaWANDeviceProfile) SetMaxEirp(v int64) *LoRaWANDeviceProfile { - s.MaxEirp = &v - return s + // How long before a multicast group session is to timeout. + SessionTimeout *int64 `min:"60" type:"integer"` } -// SetPingSlotDr sets the PingSlotDr field's value. -func (s *LoRaWANDeviceProfile) SetPingSlotDr(v int64) *LoRaWANDeviceProfile { - s.PingSlotDr = &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 LoRaWANMulticastSession) String() string { + return awsutil.Prettify(s) } -// SetPingSlotFreq sets the PingSlotFreq field's value. -func (s *LoRaWANDeviceProfile) SetPingSlotFreq(v int64) *LoRaWANDeviceProfile { - s.PingSlotFreq = &v - return 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 LoRaWANMulticastSession) GoString() string { + return s.String() } -// SetPingSlotPeriod sets the PingSlotPeriod field's value. -func (s *LoRaWANDeviceProfile) SetPingSlotPeriod(v int64) *LoRaWANDeviceProfile { - s.PingSlotPeriod = &v - return s -} +// Validate inspects the fields of the type to determine if they are valid. +func (s *LoRaWANMulticastSession) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "LoRaWANMulticastSession"} + if s.DlFreq != nil && *s.DlFreq < 1e+08 { + invalidParams.Add(request.NewErrParamMinValue("DlFreq", 1e+08)) + } + if s.SessionTimeout != nil && *s.SessionTimeout < 60 { + invalidParams.Add(request.NewErrParamMinValue("SessionTimeout", 60)) + } -// SetRegParamsRevision sets the RegParamsRevision field's value. -func (s *LoRaWANDeviceProfile) SetRegParamsRevision(v string) *LoRaWANDeviceProfile { - s.RegParamsRevision = &v - return s + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// SetRfRegion sets the RfRegion field's value. -func (s *LoRaWANDeviceProfile) SetRfRegion(v string) *LoRaWANDeviceProfile { - s.RfRegion = &v +// SetDlDr sets the DlDr field's value. +func (s *LoRaWANMulticastSession) SetDlDr(v int64) *LoRaWANMulticastSession { + s.DlDr = &v return s } -// SetRxDataRate2 sets the RxDataRate2 field's value. -func (s *LoRaWANDeviceProfile) SetRxDataRate2(v int64) *LoRaWANDeviceProfile { - s.RxDataRate2 = &v +// SetDlFreq sets the DlFreq field's value. +func (s *LoRaWANMulticastSession) SetDlFreq(v int64) *LoRaWANMulticastSession { + s.DlFreq = &v return s } -// SetRxDelay1 sets the RxDelay1 field's value. -func (s *LoRaWANDeviceProfile) SetRxDelay1(v int64) *LoRaWANDeviceProfile { - s.RxDelay1 = &v +// SetSessionStartTime sets the SessionStartTime field's value. +func (s *LoRaWANMulticastSession) SetSessionStartTime(v time.Time) *LoRaWANMulticastSession { + s.SessionStartTime = &v return s } -// SetRxDrOffset1 sets the RxDrOffset1 field's value. -func (s *LoRaWANDeviceProfile) SetRxDrOffset1(v int64) *LoRaWANDeviceProfile { - s.RxDrOffset1 = &v +// SetSessionTimeout sets the SessionTimeout field's value. +func (s *LoRaWANMulticastSession) SetSessionTimeout(v int64) *LoRaWANMulticastSession { + s.SessionTimeout = &v return s } -// SetRxFreq2 sets the RxFreq2 field's value. -func (s *LoRaWANDeviceProfile) SetRxFreq2(v int64) *LoRaWANDeviceProfile { - s.RxFreq2 = &v - return s +// LoRaWAN router info. +type LoRaWANSendDataToDevice struct { + _ struct{} `type:"structure"` + + // The Fport value. + FPort *int64 `min:"1" type:"integer"` } -// SetSupports32BitFCnt sets the Supports32BitFCnt field's value. -func (s *LoRaWANDeviceProfile) SetSupports32BitFCnt(v bool) *LoRaWANDeviceProfile { - s.Supports32BitFCnt = &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 LoRaWANSendDataToDevice) String() string { + return awsutil.Prettify(s) } -// SetSupportsClassB sets the SupportsClassB field's value. -func (s *LoRaWANDeviceProfile) SetSupportsClassB(v bool) *LoRaWANDeviceProfile { - s.SupportsClassB = &v - return 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 LoRaWANSendDataToDevice) GoString() string { + return s.String() } -// SetSupportsClassC sets the SupportsClassC field's value. -func (s *LoRaWANDeviceProfile) SetSupportsClassC(v bool) *LoRaWANDeviceProfile { - s.SupportsClassC = &v - return s +// Validate inspects the fields of the type to determine if they are valid. +func (s *LoRaWANSendDataToDevice) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "LoRaWANSendDataToDevice"} + if s.FPort != nil && *s.FPort < 1 { + invalidParams.Add(request.NewErrParamMinValue("FPort", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// SetSupportsJoin sets the SupportsJoin field's value. -func (s *LoRaWANDeviceProfile) SetSupportsJoin(v bool) *LoRaWANDeviceProfile { - s.SupportsJoin = &v +// SetFPort sets the FPort field's value. +func (s *LoRaWANSendDataToDevice) SetFPort(v int64) *LoRaWANSendDataToDevice { + s.FPort = &v return s } -// LoRaWANGateway object. -type LoRaWANGateway struct { +// LoRaWANServiceProfile object. +type LoRaWANServiceProfile struct { _ struct{} `type:"structure"` - // The gateway's EUI value. - GatewayEui *string `type:"string"` - - // A list of JoinEuiRange used by LoRa gateways to filter LoRa frames. - JoinEuiFilters [][]*string `type:"list"` - - // A list of NetId values that are used by LoRa gateways to filter the uplink - // frames. - NetIdFilters []*string `type:"list"` - - // The frequency band (RFRegion) value. - RfRegion *string `type:"string"` - - // A list of integer indicating which sub bands are supported by LoRa gateway. - SubBands []*int64 `type:"list"` + // The AddGWMetaData value. + AddGwMetadata *bool `type:"boolean"` } // String returns the string representation. @@ -10876,7 +16237,7 @@ type LoRaWANGateway 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 LoRaWANGateway) String() string { +func (s LoRaWANServiceProfile) String() string { return awsutil.Prettify(s) } @@ -10885,46 +16246,22 @@ func (s LoRaWANGateway) 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 LoRaWANGateway) GoString() string { +func (s LoRaWANServiceProfile) GoString() string { return s.String() } -// SetGatewayEui sets the GatewayEui field's value. -func (s *LoRaWANGateway) SetGatewayEui(v string) *LoRaWANGateway { - s.GatewayEui = &v - return s -} - -// SetJoinEuiFilters sets the JoinEuiFilters field's value. -func (s *LoRaWANGateway) SetJoinEuiFilters(v [][]*string) *LoRaWANGateway { - s.JoinEuiFilters = v - return s -} - -// SetNetIdFilters sets the NetIdFilters field's value. -func (s *LoRaWANGateway) SetNetIdFilters(v []*string) *LoRaWANGateway { - s.NetIdFilters = v - return s -} - -// SetRfRegion sets the RfRegion field's value. -func (s *LoRaWANGateway) SetRfRegion(v string) *LoRaWANGateway { - s.RfRegion = &v - return s -} - -// SetSubBands sets the SubBands field's value. -func (s *LoRaWANGateway) SetSubBands(v []*int64) *LoRaWANGateway { - s.SubBands = v +// SetAddGwMetadata sets the AddGwMetadata field's value. +func (s *LoRaWANServiceProfile) SetAddGwMetadata(v bool) *LoRaWANServiceProfile { + s.AddGwMetadata = &v return s } -// LoRaWANGatewayCurrentVersion object. -type LoRaWANGatewayCurrentVersion struct { +// The LoRaWAN information used to start a FUOTA task. +type LoRaWANStartFuotaTask struct { _ struct{} `type:"structure"` - // The version of the gateways that should receive the update. - CurrentVersion *LoRaWANGatewayVersion `type:"structure"` + // Start time of a FUOTA task. + StartTime *time.Time `type:"timestamp" timestampFormat:"iso8601"` } // String returns the string representation. @@ -10932,7 +16269,7 @@ type LoRaWANGatewayCurrentVersion 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 LoRaWANGatewayCurrentVersion) String() string { +func (s LoRaWANStartFuotaTask) String() string { return awsutil.Prettify(s) } @@ -10941,28 +16278,25 @@ func (s LoRaWANGatewayCurrentVersion) 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 LoRaWANGatewayCurrentVersion) GoString() string { +func (s LoRaWANStartFuotaTask) GoString() string { return s.String() } -// SetCurrentVersion sets the CurrentVersion field's value. -func (s *LoRaWANGatewayCurrentVersion) SetCurrentVersion(v *LoRaWANGatewayVersion) *LoRaWANGatewayCurrentVersion { - s.CurrentVersion = v +// SetStartTime sets the StartTime field's value. +func (s *LoRaWANStartFuotaTask) SetStartTime(v time.Time) *LoRaWANStartFuotaTask { + s.StartTime = &v return s } -// LoRaWAN gateway metatdata. -type LoRaWANGatewayMetadata struct { +// LoRaWAN object for update functions. +type LoRaWANUpdateDevice struct { _ struct{} `type:"structure"` - // The gateway's EUI value. - GatewayEui *string `type:"string"` - - // The RSSI value. - Rssi *float64 `type:"double"` + // The ID of the device profile for the wireless device. + DeviceProfileId *string `type:"string"` - // The SNR value. - Snr *float64 `type:"double"` + // The ID of the service profile. + ServiceProfileId *string `type:"string"` } // String returns the string representation. @@ -10970,7 +16304,7 @@ type LoRaWANGatewayMetadata 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 LoRaWANGatewayMetadata) String() string { +func (s LoRaWANUpdateDevice) String() string { return awsutil.Prettify(s) } @@ -10979,40 +16313,37 @@ func (s LoRaWANGatewayMetadata) 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 LoRaWANGatewayMetadata) GoString() string { +func (s LoRaWANUpdateDevice) GoString() string { return s.String() } -// SetGatewayEui sets the GatewayEui field's value. -func (s *LoRaWANGatewayMetadata) SetGatewayEui(v string) *LoRaWANGatewayMetadata { - s.GatewayEui = &v - return s -} - -// SetRssi sets the Rssi field's value. -func (s *LoRaWANGatewayMetadata) SetRssi(v float64) *LoRaWANGatewayMetadata { - s.Rssi = &v +// SetDeviceProfileId sets the DeviceProfileId field's value. +func (s *LoRaWANUpdateDevice) SetDeviceProfileId(v string) *LoRaWANUpdateDevice { + s.DeviceProfileId = &v return s } -// SetSnr sets the Snr field's value. -func (s *LoRaWANGatewayMetadata) SetSnr(v float64) *LoRaWANGatewayMetadata { - s.Snr = &v +// SetServiceProfileId sets the ServiceProfileId field's value. +func (s *LoRaWANUpdateDevice) SetServiceProfileId(v string) *LoRaWANUpdateDevice { + s.ServiceProfileId = &v return s } -// LoRaWANGatewayVersion object. -type LoRaWANGatewayVersion struct { +// LoRaWANUpdateGatewayTaskCreate object. +type LoRaWANUpdateGatewayTaskCreate struct { _ struct{} `type:"structure"` - // The model number of the wireless gateway. - Model *string `min:"1" type:"string"` + // The version of the gateways that should receive the update. + CurrentVersion *LoRaWANGatewayVersion `type:"structure"` - // The version of the wireless gateway firmware. - PackageVersion *string `min:"1" type:"string"` + // The CRC of the signature private key to check. + SigKeyCrc *int64 `min:"1" type:"long"` - // The basic station version of the wireless gateway. - Station *string `min:"1" type:"string"` + // The signature used to verify the update firmware. + UpdateSignature *string `min:"1" type:"string"` + + // The firmware version to update the gateway to. + UpdateVersion *LoRaWANGatewayVersion `type:"structure"` } // String returns the string representation. @@ -11020,7 +16351,7 @@ type LoRaWANGatewayVersion 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 LoRaWANGatewayVersion) String() string { +func (s LoRaWANUpdateGatewayTaskCreate) String() string { return awsutil.Prettify(s) } @@ -11029,21 +16360,28 @@ func (s LoRaWANGatewayVersion) 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 LoRaWANGatewayVersion) GoString() string { +func (s LoRaWANUpdateGatewayTaskCreate) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *LoRaWANGatewayVersion) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "LoRaWANGatewayVersion"} - if s.Model != nil && len(*s.Model) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Model", 1)) +func (s *LoRaWANUpdateGatewayTaskCreate) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "LoRaWANUpdateGatewayTaskCreate"} + if s.SigKeyCrc != nil && *s.SigKeyCrc < 1 { + invalidParams.Add(request.NewErrParamMinValue("SigKeyCrc", 1)) } - if s.PackageVersion != nil && len(*s.PackageVersion) < 1 { - invalidParams.Add(request.NewErrParamMinLen("PackageVersion", 1)) + if s.UpdateSignature != nil && len(*s.UpdateSignature) < 1 { + invalidParams.Add(request.NewErrParamMinLen("UpdateSignature", 1)) } - if s.Station != nil && len(*s.Station) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Station", 1)) + if s.CurrentVersion != nil { + if err := s.CurrentVersion.Validate(); err != nil { + invalidParams.AddNested("CurrentVersion", err.(request.ErrInvalidParams)) + } + } + if s.UpdateVersion != nil { + if err := s.UpdateVersion.Validate(); err != nil { + invalidParams.AddNested("UpdateVersion", err.(request.ErrInvalidParams)) + } } if invalidParams.Len() > 0 { @@ -11052,84 +16390,127 @@ func (s *LoRaWANGatewayVersion) Validate() error { return nil } -// SetModel sets the Model field's value. -func (s *LoRaWANGatewayVersion) SetModel(v string) *LoRaWANGatewayVersion { - s.Model = &v +// SetCurrentVersion sets the CurrentVersion field's value. +func (s *LoRaWANUpdateGatewayTaskCreate) SetCurrentVersion(v *LoRaWANGatewayVersion) *LoRaWANUpdateGatewayTaskCreate { + s.CurrentVersion = v return s } -// SetPackageVersion sets the PackageVersion field's value. -func (s *LoRaWANGatewayVersion) SetPackageVersion(v string) *LoRaWANGatewayVersion { - s.PackageVersion = &v +// SetSigKeyCrc sets the SigKeyCrc field's value. +func (s *LoRaWANUpdateGatewayTaskCreate) SetSigKeyCrc(v int64) *LoRaWANUpdateGatewayTaskCreate { + s.SigKeyCrc = &v return s } -// SetStation sets the Station field's value. -func (s *LoRaWANGatewayVersion) SetStation(v string) *LoRaWANGatewayVersion { - s.Station = &v +// SetUpdateSignature sets the UpdateSignature field's value. +func (s *LoRaWANUpdateGatewayTaskCreate) SetUpdateSignature(v string) *LoRaWANUpdateGatewayTaskCreate { + s.UpdateSignature = &v return s } -// LoRaWANGetServiceProfileInfo object. -type LoRaWANGetServiceProfileInfo struct { - _ struct{} `type:"structure"` - - // The AddGWMetaData value. - AddGwMetadata *bool `type:"boolean"` +// SetUpdateVersion sets the UpdateVersion field's value. +func (s *LoRaWANUpdateGatewayTaskCreate) SetUpdateVersion(v *LoRaWANGatewayVersion) *LoRaWANUpdateGatewayTaskCreate { + s.UpdateVersion = v + return s +} - // The ChannelMask value. - ChannelMask *string `type:"string"` +// LoRaWANUpdateGatewayTaskEntry object. +type LoRaWANUpdateGatewayTaskEntry struct { + _ struct{} `type:"structure"` - // The DevStatusReqFreq value. - DevStatusReqFreq *int64 `type:"integer"` + // The version of the gateways that should receive the update. + CurrentVersion *LoRaWANGatewayVersion `type:"structure"` - // The DLBucketSize value. - DlBucketSize *int64 `type:"integer"` + // The firmware version to update the gateway to. + UpdateVersion *LoRaWANGatewayVersion `type:"structure"` +} - // The DLRate value. - DlRate *int64 `type:"integer"` +// 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 LoRaWANUpdateGatewayTaskEntry) String() string { + return awsutil.Prettify(s) +} - // The DLRatePolicy value. - DlRatePolicy *string `type:"string"` +// 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 LoRaWANUpdateGatewayTaskEntry) GoString() string { + return s.String() +} - // The DRMax value. - DrMax *int64 `type:"integer"` +// SetCurrentVersion sets the CurrentVersion field's value. +func (s *LoRaWANUpdateGatewayTaskEntry) SetCurrentVersion(v *LoRaWANGatewayVersion) *LoRaWANUpdateGatewayTaskEntry { + s.CurrentVersion = v + return s +} - // The DRMin value. - DrMin *int64 `type:"integer"` +// SetUpdateVersion sets the UpdateVersion field's value. +func (s *LoRaWANUpdateGatewayTaskEntry) SetUpdateVersion(v *LoRaWANGatewayVersion) *LoRaWANUpdateGatewayTaskEntry { + s.UpdateVersion = v + return s +} - // The HRAllowed value that describes whether handover roaming is allowed. - HrAllowed *bool `type:"boolean"` +// A multicast group. +type MulticastGroup struct { + _ struct{} `type:"structure"` - // The MinGwDiversity value. - MinGwDiversity *int64 `min:"1" type:"integer"` + // The arn of the multicast group. + Arn *string `type:"string"` - // The NwkGeoLoc value. - NwkGeoLoc *bool `type:"boolean"` + // The ID of the multicast group. + Id *string `type:"string"` - // The PRAllowed value that describes whether passive roaming is allowed. - PrAllowed *bool `type:"boolean"` + // The name of the multicast group. + Name *string `type:"string"` +} - // The RAAllowed value that describes whether roaming activation is allowed. - RaAllowed *bool `type:"boolean"` +// 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 MulticastGroup) String() string { + return awsutil.Prettify(s) +} - // The ReportDevStatusBattery value. - ReportDevStatusBattery *bool `type:"boolean"` +// 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 MulticastGroup) GoString() string { + return s.String() +} - // The ReportDevStatusMargin value. - ReportDevStatusMargin *bool `type:"boolean"` +// SetArn sets the Arn field's value. +func (s *MulticastGroup) SetArn(v string) *MulticastGroup { + s.Arn = &v + return s +} - // The TargetPER value. - TargetPer *int64 `type:"integer"` +// SetId sets the Id field's value. +func (s *MulticastGroup) SetId(v string) *MulticastGroup { + s.Id = &v + return s +} - // The ULBucketSize value. - UlBucketSize *int64 `type:"integer"` +// SetName sets the Name field's value. +func (s *MulticastGroup) SetName(v string) *MulticastGroup { + s.Name = &v + return s +} - // The ULRate value. - UlRate *int64 `type:"integer"` +// A multicast group that is associated with a FUOTA task. +type MulticastGroupByFuotaTask struct { + _ struct{} `type:"structure"` - // The ULRatePolicy value. - UlRatePolicy *string `type:"string"` + // The ID of the multicast group. + Id *string `type:"string"` } // String returns the string representation. @@ -11137,7 +16518,7 @@ type LoRaWANGetServiceProfileInfo 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 LoRaWANGetServiceProfileInfo) String() string { +func (s MulticastGroupByFuotaTask) String() string { return awsutil.Prettify(s) } @@ -11146,130 +16527,171 @@ func (s LoRaWANGetServiceProfileInfo) 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 LoRaWANGetServiceProfileInfo) GoString() string { +func (s MulticastGroupByFuotaTask) GoString() string { return s.String() } -// SetAddGwMetadata sets the AddGwMetadata field's value. -func (s *LoRaWANGetServiceProfileInfo) SetAddGwMetadata(v bool) *LoRaWANGetServiceProfileInfo { - s.AddGwMetadata = &v +// SetId sets the Id field's value. +func (s *MulticastGroupByFuotaTask) SetId(v string) *MulticastGroupByFuotaTask { + s.Id = &v return s } -// SetChannelMask sets the ChannelMask field's value. -func (s *LoRaWANGetServiceProfileInfo) SetChannelMask(v string) *LoRaWANGetServiceProfileInfo { - s.ChannelMask = &v - return s -} +// Wireless metadata that is to be sent to multicast group. +type MulticastWirelessMetadata struct { + _ struct{} `type:"structure"` -// SetDevStatusReqFreq sets the DevStatusReqFreq field's value. -func (s *LoRaWANGetServiceProfileInfo) SetDevStatusReqFreq(v int64) *LoRaWANGetServiceProfileInfo { - s.DevStatusReqFreq = &v - return s + // The metadata information of the LoRaWAN multicast group. + LoRaWAN *LoRaWANMulticastMetadata `type:"structure"` } -// SetDlBucketSize sets the DlBucketSize field's value. -func (s *LoRaWANGetServiceProfileInfo) SetDlBucketSize(v int64) *LoRaWANGetServiceProfileInfo { - s.DlBucketSize = &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 MulticastWirelessMetadata) String() string { + return awsutil.Prettify(s) } -// SetDlRate sets the DlRate field's value. -func (s *LoRaWANGetServiceProfileInfo) SetDlRate(v int64) *LoRaWANGetServiceProfileInfo { - s.DlRate = &v - return 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 MulticastWirelessMetadata) GoString() string { + return s.String() } -// SetDlRatePolicy sets the DlRatePolicy field's value. -func (s *LoRaWANGetServiceProfileInfo) SetDlRatePolicy(v string) *LoRaWANGetServiceProfileInfo { - s.DlRatePolicy = &v - return s +// Validate inspects the fields of the type to determine if they are valid. +func (s *MulticastWirelessMetadata) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "MulticastWirelessMetadata"} + if s.LoRaWAN != nil { + if err := s.LoRaWAN.Validate(); err != nil { + invalidParams.AddNested("LoRaWAN", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// SetDrMax sets the DrMax field's value. -func (s *LoRaWANGetServiceProfileInfo) SetDrMax(v int64) *LoRaWANGetServiceProfileInfo { - s.DrMax = &v +// SetLoRaWAN sets the LoRaWAN field's value. +func (s *MulticastWirelessMetadata) SetLoRaWAN(v *LoRaWANMulticastMetadata) *MulticastWirelessMetadata { + s.LoRaWAN = v return s } -// SetDrMin sets the DrMin field's value. -func (s *LoRaWANGetServiceProfileInfo) SetDrMin(v int64) *LoRaWANGetServiceProfileInfo { - s.DrMin = &v - return s +// OTAA device object for v1.0.x +type OtaaV10X struct { + _ struct{} `type:"structure"` + + // The AppEUI value. + AppEui *string `type:"string"` + + // The AppKey value. + AppKey *string `type:"string"` + + // The GenAppKey value. + GenAppKey *string `type:"string"` } -// SetHrAllowed sets the HrAllowed field's value. -func (s *LoRaWANGetServiceProfileInfo) SetHrAllowed(v bool) *LoRaWANGetServiceProfileInfo { - s.HrAllowed = &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 OtaaV10X) String() string { + return awsutil.Prettify(s) } -// SetMinGwDiversity sets the MinGwDiversity field's value. -func (s *LoRaWANGetServiceProfileInfo) SetMinGwDiversity(v int64) *LoRaWANGetServiceProfileInfo { - s.MinGwDiversity = &v - return 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 OtaaV10X) GoString() string { + return s.String() } -// SetNwkGeoLoc sets the NwkGeoLoc field's value. -func (s *LoRaWANGetServiceProfileInfo) SetNwkGeoLoc(v bool) *LoRaWANGetServiceProfileInfo { - s.NwkGeoLoc = &v +// SetAppEui sets the AppEui field's value. +func (s *OtaaV10X) SetAppEui(v string) *OtaaV10X { + s.AppEui = &v return s } -// SetPrAllowed sets the PrAllowed field's value. -func (s *LoRaWANGetServiceProfileInfo) SetPrAllowed(v bool) *LoRaWANGetServiceProfileInfo { - s.PrAllowed = &v +// SetAppKey sets the AppKey field's value. +func (s *OtaaV10X) SetAppKey(v string) *OtaaV10X { + s.AppKey = &v return s } -// SetRaAllowed sets the RaAllowed field's value. -func (s *LoRaWANGetServiceProfileInfo) SetRaAllowed(v bool) *LoRaWANGetServiceProfileInfo { - s.RaAllowed = &v +// SetGenAppKey sets the GenAppKey field's value. +func (s *OtaaV10X) SetGenAppKey(v string) *OtaaV10X { + s.GenAppKey = &v return s } -// SetReportDevStatusBattery sets the ReportDevStatusBattery field's value. -func (s *LoRaWANGetServiceProfileInfo) SetReportDevStatusBattery(v bool) *LoRaWANGetServiceProfileInfo { - s.ReportDevStatusBattery = &v - return s +// OTAA device object for v1.1 +type OtaaV11 struct { + _ struct{} `type:"structure"` + + // The AppKey value. + AppKey *string `type:"string"` + + // The JoinEUI value. + JoinEui *string `type:"string"` + + // The NwkKey value. + NwkKey *string `type:"string"` } -// SetReportDevStatusMargin sets the ReportDevStatusMargin field's value. -func (s *LoRaWANGetServiceProfileInfo) SetReportDevStatusMargin(v bool) *LoRaWANGetServiceProfileInfo { - s.ReportDevStatusMargin = &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 OtaaV11) String() string { + return awsutil.Prettify(s) } -// SetTargetPer sets the TargetPer field's value. -func (s *LoRaWANGetServiceProfileInfo) SetTargetPer(v int64) *LoRaWANGetServiceProfileInfo { - s.TargetPer = &v - return 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 OtaaV11) GoString() string { + return s.String() } -// SetUlBucketSize sets the UlBucketSize field's value. -func (s *LoRaWANGetServiceProfileInfo) SetUlBucketSize(v int64) *LoRaWANGetServiceProfileInfo { - s.UlBucketSize = &v +// SetAppKey sets the AppKey field's value. +func (s *OtaaV11) SetAppKey(v string) *OtaaV11 { + s.AppKey = &v return s } -// SetUlRate sets the UlRate field's value. -func (s *LoRaWANGetServiceProfileInfo) SetUlRate(v int64) *LoRaWANGetServiceProfileInfo { - s.UlRate = &v +// SetJoinEui sets the JoinEui field's value. +func (s *OtaaV11) SetJoinEui(v string) *OtaaV11 { + s.JoinEui = &v return s } -// SetUlRatePolicy sets the UlRatePolicy field's value. -func (s *LoRaWANGetServiceProfileInfo) SetUlRatePolicy(v string) *LoRaWANGetServiceProfileInfo { - s.UlRatePolicy = &v +// SetNwkKey sets the NwkKey field's value. +func (s *OtaaV11) SetNwkKey(v string) *OtaaV11 { + s.NwkKey = &v return s } -// LoRaWAN object for list functions. -type LoRaWANListDevice struct { +// Proximity event configuration object for enabling and disabling relevant +// topics. +type ProximityEventConfiguration struct { _ struct{} `type:"structure"` - // The DevEUI value. - DevEui *string `type:"string"` + // Proximity event configuration object for enabling or disabling Sidewalk related + // event topics. + Sidewalk *SidewalkEventNotificationConfigurations `type:"structure"` } // String returns the string representation. @@ -11277,7 +16699,7 @@ type LoRaWANListDevice 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 LoRaWANListDevice) String() string { +func (s ProximityEventConfiguration) String() string { return awsutil.Prettify(s) } @@ -11286,22 +16708,34 @@ func (s LoRaWANListDevice) 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 LoRaWANListDevice) GoString() string { +func (s ProximityEventConfiguration) GoString() string { return s.String() } -// SetDevEui sets the DevEui field's value. -func (s *LoRaWANListDevice) SetDevEui(v string) *LoRaWANListDevice { - s.DevEui = &v +// SetSidewalk sets the Sidewalk field's value. +func (s *ProximityEventConfiguration) SetSidewalk(v *SidewalkEventNotificationConfigurations) *ProximityEventConfiguration { + s.Sidewalk = v return s } -// LoRaWAN router info. -type LoRaWANSendDataToDevice struct { +type PutResourceLogLevelInput struct { _ struct{} `type:"structure"` - // The Fport value. - FPort *int64 `min:"1" type:"integer"` + // The log level for a log message. + // + // LogLevel is a required field + LogLevel *string `type:"string" required:"true" enum:"LogLevel"` + + // The identifier of the resource. For a Wireless Device, it is the wireless + // device ID. For a wireless gateway, it is the wireless gateway ID. + // + // ResourceIdentifier is a required field + ResourceIdentifier *string `location:"uri" locationName:"ResourceIdentifier" type:"string" required:"true"` + + // The type of the resource, which can be WirelessDevice or WirelessGateway. + // + // ResourceType is a required field + ResourceType *string `location:"querystring" locationName:"resourceType" type:"string" required:"true"` } // String returns the string representation. @@ -11309,7 +16743,7 @@ type LoRaWANSendDataToDevice 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 LoRaWANSendDataToDevice) String() string { +func (s PutResourceLogLevelInput) String() string { return awsutil.Prettify(s) } @@ -11318,15 +16752,24 @@ func (s LoRaWANSendDataToDevice) 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 LoRaWANSendDataToDevice) GoString() string { +func (s PutResourceLogLevelInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *LoRaWANSendDataToDevice) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "LoRaWANSendDataToDevice"} - if s.FPort != nil && *s.FPort < 1 { - invalidParams.Add(request.NewErrParamMinValue("FPort", 1)) +func (s *PutResourceLogLevelInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "PutResourceLogLevelInput"} + if s.LogLevel == nil { + invalidParams.Add(request.NewErrParamRequired("LogLevel")) + } + if s.ResourceIdentifier == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceIdentifier")) + } + if s.ResourceIdentifier != nil && len(*s.ResourceIdentifier) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResourceIdentifier", 1)) + } + if s.ResourceType == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceType")) } if invalidParams.Len() > 0 { @@ -11335,18 +16778,48 @@ func (s *LoRaWANSendDataToDevice) Validate() error { return nil } -// SetFPort sets the FPort field's value. -func (s *LoRaWANSendDataToDevice) SetFPort(v int64) *LoRaWANSendDataToDevice { - s.FPort = &v +// SetLogLevel sets the LogLevel field's value. +func (s *PutResourceLogLevelInput) SetLogLevel(v string) *PutResourceLogLevelInput { + s.LogLevel = &v + return s +} + +// SetResourceIdentifier sets the ResourceIdentifier field's value. +func (s *PutResourceLogLevelInput) SetResourceIdentifier(v string) *PutResourceLogLevelInput { + s.ResourceIdentifier = &v + return s +} + +// SetResourceType sets the ResourceType field's value. +func (s *PutResourceLogLevelInput) SetResourceType(v string) *PutResourceLogLevelInput { + s.ResourceType = &v return s } -// LoRaWANServiceProfile object. -type LoRaWANServiceProfile struct { - _ struct{} `type:"structure"` - - // The AddGWMetaData value. - AddGwMetadata *bool `type:"boolean"` +type PutResourceLogLevelOutput 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 PutResourceLogLevelOutput) 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 PutResourceLogLevelOutput) GoString() string { + return s.String() +} + +type ResetAllResourceLogLevelsInput struct { + _ struct{} `type:"structure" nopayload:"true"` } // String returns the string representation. @@ -11354,7 +16827,7 @@ type LoRaWANServiceProfile 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 LoRaWANServiceProfile) String() string { +func (s ResetAllResourceLogLevelsInput) String() string { return awsutil.Prettify(s) } @@ -11363,25 +16836,12 @@ func (s LoRaWANServiceProfile) 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 LoRaWANServiceProfile) GoString() string { +func (s ResetAllResourceLogLevelsInput) GoString() string { return s.String() } -// SetAddGwMetadata sets the AddGwMetadata field's value. -func (s *LoRaWANServiceProfile) SetAddGwMetadata(v bool) *LoRaWANServiceProfile { - s.AddGwMetadata = &v - return s -} - -// LoRaWAN object for update functions. -type LoRaWANUpdateDevice struct { +type ResetAllResourceLogLevelsOutput struct { _ struct{} `type:"structure"` - - // The ID of the device profile for the wireless device. - DeviceProfileId *string `type:"string"` - - // The ID of the service profile. - ServiceProfileId *string `type:"string"` } // String returns the string representation. @@ -11389,7 +16849,7 @@ type LoRaWANUpdateDevice 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 LoRaWANUpdateDevice) String() string { +func (s ResetAllResourceLogLevelsOutput) String() string { return awsutil.Prettify(s) } @@ -11398,37 +16858,23 @@ func (s LoRaWANUpdateDevice) 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 LoRaWANUpdateDevice) GoString() string { +func (s ResetAllResourceLogLevelsOutput) GoString() string { return s.String() } -// SetDeviceProfileId sets the DeviceProfileId field's value. -func (s *LoRaWANUpdateDevice) SetDeviceProfileId(v string) *LoRaWANUpdateDevice { - s.DeviceProfileId = &v - return s -} - -// SetServiceProfileId sets the ServiceProfileId field's value. -func (s *LoRaWANUpdateDevice) SetServiceProfileId(v string) *LoRaWANUpdateDevice { - s.ServiceProfileId = &v - return s -} - -// LoRaWANUpdateGatewayTaskCreate object. -type LoRaWANUpdateGatewayTaskCreate struct { - _ struct{} `type:"structure"` - - // The version of the gateways that should receive the update. - CurrentVersion *LoRaWANGatewayVersion `type:"structure"` - - // The CRC of the signature private key to check. - SigKeyCrc *int64 `min:"1" type:"long"` +type ResetResourceLogLevelInput struct { + _ struct{} `type:"structure" nopayload:"true"` - // The signature used to verify the update firmware. - UpdateSignature *string `min:"1" type:"string"` + // The identifier of the resource. For a Wireless Device, it is the wireless + // device ID. For a wireless gateway, it is the wireless gateway ID. + // + // ResourceIdentifier is a required field + ResourceIdentifier *string `location:"uri" locationName:"ResourceIdentifier" type:"string" required:"true"` - // The firmware version to update the gateway to. - UpdateVersion *LoRaWANGatewayVersion `type:"structure"` + // The type of the resource, which can be WirelessDevice or WirelessGateway. + // + // ResourceType is a required field + ResourceType *string `location:"querystring" locationName:"resourceType" type:"string" required:"true"` } // String returns the string representation. @@ -11436,7 +16882,7 @@ type LoRaWANUpdateGatewayTaskCreate 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 LoRaWANUpdateGatewayTaskCreate) String() string { +func (s ResetResourceLogLevelInput) String() string { return awsutil.Prettify(s) } @@ -11445,28 +16891,21 @@ func (s LoRaWANUpdateGatewayTaskCreate) 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 LoRaWANUpdateGatewayTaskCreate) GoString() string { +func (s ResetResourceLogLevelInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *LoRaWANUpdateGatewayTaskCreate) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "LoRaWANUpdateGatewayTaskCreate"} - if s.SigKeyCrc != nil && *s.SigKeyCrc < 1 { - invalidParams.Add(request.NewErrParamMinValue("SigKeyCrc", 1)) - } - if s.UpdateSignature != nil && len(*s.UpdateSignature) < 1 { - invalidParams.Add(request.NewErrParamMinLen("UpdateSignature", 1)) +func (s *ResetResourceLogLevelInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ResetResourceLogLevelInput"} + if s.ResourceIdentifier == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceIdentifier")) } - if s.CurrentVersion != nil { - if err := s.CurrentVersion.Validate(); err != nil { - invalidParams.AddNested("CurrentVersion", err.(request.ErrInvalidParams)) - } + if s.ResourceIdentifier != nil && len(*s.ResourceIdentifier) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResourceIdentifier", 1)) } - if s.UpdateVersion != nil { - if err := s.UpdateVersion.Validate(); err != nil { - invalidParams.AddNested("UpdateVersion", err.(request.ErrInvalidParams)) - } + if s.ResourceType == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceType")) } if invalidParams.Len() > 0 { @@ -11475,39 +16914,52 @@ func (s *LoRaWANUpdateGatewayTaskCreate) Validate() error { return nil } -// SetCurrentVersion sets the CurrentVersion field's value. -func (s *LoRaWANUpdateGatewayTaskCreate) SetCurrentVersion(v *LoRaWANGatewayVersion) *LoRaWANUpdateGatewayTaskCreate { - s.CurrentVersion = v +// SetResourceIdentifier sets the ResourceIdentifier field's value. +func (s *ResetResourceLogLevelInput) SetResourceIdentifier(v string) *ResetResourceLogLevelInput { + s.ResourceIdentifier = &v return s } -// SetSigKeyCrc sets the SigKeyCrc field's value. -func (s *LoRaWANUpdateGatewayTaskCreate) SetSigKeyCrc(v int64) *LoRaWANUpdateGatewayTaskCreate { - s.SigKeyCrc = &v +// SetResourceType sets the ResourceType field's value. +func (s *ResetResourceLogLevelInput) SetResourceType(v string) *ResetResourceLogLevelInput { + s.ResourceType = &v return s } -// SetUpdateSignature sets the UpdateSignature field's value. -func (s *LoRaWANUpdateGatewayTaskCreate) SetUpdateSignature(v string) *LoRaWANUpdateGatewayTaskCreate { - s.UpdateSignature = &v - return s +type ResetResourceLogLevelOutput struct { + _ struct{} `type:"structure"` } -// SetUpdateVersion sets the UpdateVersion field's value. -func (s *LoRaWANUpdateGatewayTaskCreate) SetUpdateVersion(v *LoRaWANGatewayVersion) *LoRaWANUpdateGatewayTaskCreate { - s.UpdateVersion = 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 ResetResourceLogLevelOutput) String() string { + return awsutil.Prettify(s) } -// LoRaWANUpdateGatewayTaskEntry object. -type LoRaWANUpdateGatewayTaskEntry struct { - _ struct{} `type:"structure"` +// 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 ResetResourceLogLevelOutput) GoString() string { + return s.String() +} - // The version of the gateways that should receive the update. - CurrentVersion *LoRaWANGatewayVersion `type:"structure"` +// Resource does not exist. +type ResourceNotFoundException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` - // The firmware version to update the gateway to. - UpdateVersion *LoRaWANGatewayVersion `type:"structure"` + Message_ *string `locationName:"Message" type:"string"` + + // Id of the not found resource. + ResourceId *string `type:"string"` + + // Type of the font found resource. + ResourceType *string `type:"string"` } // String returns the string representation. @@ -11515,7 +16967,7 @@ type LoRaWANUpdateGatewayTaskEntry 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 LoRaWANUpdateGatewayTaskEntry) String() string { +func (s ResourceNotFoundException) String() string { return awsutil.Prettify(s) } @@ -11524,31 +16976,65 @@ func (s LoRaWANUpdateGatewayTaskEntry) 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 LoRaWANUpdateGatewayTaskEntry) GoString() string { +func (s ResourceNotFoundException) GoString() string { return s.String() } -// SetCurrentVersion sets the CurrentVersion field's value. -func (s *LoRaWANUpdateGatewayTaskEntry) SetCurrentVersion(v *LoRaWANGatewayVersion) *LoRaWANUpdateGatewayTaskEntry { - s.CurrentVersion = v - return s +func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error { + return &ResourceNotFoundException{ + RespMetadata: v, + } } -// SetUpdateVersion sets the UpdateVersion field's value. -func (s *LoRaWANUpdateGatewayTaskEntry) SetUpdateVersion(v *LoRaWANGatewayVersion) *LoRaWANUpdateGatewayTaskEntry { - s.UpdateVersion = v - return s +// Code returns the exception type name. +func (s *ResourceNotFoundException) Code() string { + return "ResourceNotFoundException" } -// OTAA device object for v1.0.x -type OtaaV10X struct { +// Message returns the exception's message. +func (s *ResourceNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *ResourceNotFoundException) OrigErr() error { + return nil +} + +func (s *ResourceNotFoundException) 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 *ResourceNotFoundException) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *ResourceNotFoundException) RequestID() string { + return s.RespMetadata.RequestID +} + +type SendDataToMulticastGroupInput struct { _ struct{} `type:"structure"` - // The AppEUI value. - AppEui *string `type:"string"` + // The ID of the multicast group. + // + // Id is a required field + Id *string `location:"uri" locationName:"Id" type:"string" required:"true"` - // The AppKey value. - AppKey *string `type:"string"` + // The binary to be sent to the end device, encoded in base64. + // + // PayloadData is a required field + PayloadData *string `type:"string" required:"true"` + + // Wireless metadata that is to be sent to multicast group. + // + // WirelessMetadata is a required field + WirelessMetadata *MulticastWirelessMetadata `type:"structure" required:"true"` } // String returns the string representation. @@ -11556,7 +17042,7 @@ type OtaaV10X 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 OtaaV10X) String() string { +func (s SendDataToMulticastGroupInput) String() string { return awsutil.Prettify(s) } @@ -11565,34 +17051,60 @@ func (s OtaaV10X) 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 OtaaV10X) GoString() string { +func (s SendDataToMulticastGroupInput) GoString() string { return s.String() } -// SetAppEui sets the AppEui field's value. -func (s *OtaaV10X) SetAppEui(v string) *OtaaV10X { - s.AppEui = &v - return s +// Validate inspects the fields of the type to determine if they are valid. +func (s *SendDataToMulticastGroupInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "SendDataToMulticastGroupInput"} + 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.PayloadData == nil { + invalidParams.Add(request.NewErrParamRequired("PayloadData")) + } + if s.WirelessMetadata == nil { + invalidParams.Add(request.NewErrParamRequired("WirelessMetadata")) + } + if s.WirelessMetadata != nil { + if err := s.WirelessMetadata.Validate(); err != nil { + invalidParams.AddNested("WirelessMetadata", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// SetAppKey sets the AppKey field's value. -func (s *OtaaV10X) SetAppKey(v string) *OtaaV10X { - s.AppKey = &v +// SetId sets the Id field's value. +func (s *SendDataToMulticastGroupInput) SetId(v string) *SendDataToMulticastGroupInput { + s.Id = &v return s } -// OTAA device object for v1.1 -type OtaaV11 struct { - _ struct{} `type:"structure"` +// SetPayloadData sets the PayloadData field's value. +func (s *SendDataToMulticastGroupInput) SetPayloadData(v string) *SendDataToMulticastGroupInput { + s.PayloadData = &v + return s +} - // The AppKey value. - AppKey *string `type:"string"` +// SetWirelessMetadata sets the WirelessMetadata field's value. +func (s *SendDataToMulticastGroupInput) SetWirelessMetadata(v *MulticastWirelessMetadata) *SendDataToMulticastGroupInput { + s.WirelessMetadata = v + return s +} - // The JoinEUI value. - JoinEui *string `type:"string"` +type SendDataToMulticastGroupOutput struct { + _ struct{} `type:"structure"` - // The NwkKey value. - NwkKey *string `type:"string"` + // ID of a multicast group message. + MessageId *string `type:"string"` } // String returns the string representation. @@ -11600,7 +17112,7 @@ type OtaaV11 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 OtaaV11) String() string { +func (s SendDataToMulticastGroupOutput) String() string { return awsutil.Prettify(s) } @@ -11609,46 +17121,37 @@ func (s OtaaV11) 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 OtaaV11) GoString() string { +func (s SendDataToMulticastGroupOutput) GoString() string { return s.String() } -// SetAppKey sets the AppKey field's value. -func (s *OtaaV11) SetAppKey(v string) *OtaaV11 { - s.AppKey = &v - return s -} - -// SetJoinEui sets the JoinEui field's value. -func (s *OtaaV11) SetJoinEui(v string) *OtaaV11 { - s.JoinEui = &v - return s -} - -// SetNwkKey sets the NwkKey field's value. -func (s *OtaaV11) SetNwkKey(v string) *OtaaV11 { - s.NwkKey = &v +// SetMessageId sets the MessageId field's value. +func (s *SendDataToMulticastGroupOutput) SetMessageId(v string) *SendDataToMulticastGroupOutput { + s.MessageId = &v return s } -type PutResourceLogLevelInput struct { +type SendDataToWirelessDeviceInput struct { _ struct{} `type:"structure"` - // The log level for a log message. + // The ID of the wireless device to receive the data. // - // LogLevel is a required field - LogLevel *string `type:"string" required:"true" enum:"LogLevel"` + // Id is a required field + Id *string `location:"uri" locationName:"Id" type:"string" required:"true"` - // The identifier of the resource. For a Wireless Device, it is the wireless - // device ID. For a wireless gateway, it is the wireless gateway ID. + // The binary to be sent to the end device, encoded in base64. // - // ResourceIdentifier is a required field - ResourceIdentifier *string `location:"uri" locationName:"ResourceIdentifier" type:"string" required:"true"` + // PayloadData is a required field + PayloadData *string `type:"string" required:"true"` - // The type of the resource, which can be WirelessDevice or WirelessGateway. + // The transmit mode to use to send data to the wireless device. Can be: 0 for + // UM (unacknowledge mode) or 1 for AM (acknowledge mode). // - // ResourceType is a required field - ResourceType *string `location:"querystring" locationName:"resourceType" type:"string" required:"true"` + // TransmitMode is a required field + TransmitMode *int64 `type:"integer" required:"true"` + + // Metadata about the message request. + WirelessMetadata *WirelessMetadata `type:"structure"` } // String returns the string representation. @@ -11656,7 +17159,7 @@ type PutResourceLogLevelInput 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 PutResourceLogLevelInput) String() string { +func (s SendDataToWirelessDeviceInput) String() string { return awsutil.Prettify(s) } @@ -11665,24 +17168,29 @@ func (s PutResourceLogLevelInput) 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 PutResourceLogLevelInput) GoString() string { +func (s SendDataToWirelessDeviceInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *PutResourceLogLevelInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "PutResourceLogLevelInput"} - if s.LogLevel == nil { - invalidParams.Add(request.NewErrParamRequired("LogLevel")) +func (s *SendDataToWirelessDeviceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "SendDataToWirelessDeviceInput"} + if s.Id == nil { + invalidParams.Add(request.NewErrParamRequired("Id")) } - if s.ResourceIdentifier == nil { - invalidParams.Add(request.NewErrParamRequired("ResourceIdentifier")) + if s.Id != nil && len(*s.Id) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Id", 1)) } - if s.ResourceIdentifier != nil && len(*s.ResourceIdentifier) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ResourceIdentifier", 1)) + if s.PayloadData == nil { + invalidParams.Add(request.NewErrParamRequired("PayloadData")) } - if s.ResourceType == nil { - invalidParams.Add(request.NewErrParamRequired("ResourceType")) + if s.TransmitMode == nil { + invalidParams.Add(request.NewErrParamRequired("TransmitMode")) + } + if s.WirelessMetadata != nil { + if err := s.WirelessMetadata.Validate(); err != nil { + invalidParams.AddNested("WirelessMetadata", err.(request.ErrInvalidParams)) + } } if invalidParams.Len() > 0 { @@ -11691,26 +17199,35 @@ func (s *PutResourceLogLevelInput) Validate() error { return nil } -// SetLogLevel sets the LogLevel field's value. -func (s *PutResourceLogLevelInput) SetLogLevel(v string) *PutResourceLogLevelInput { - s.LogLevel = &v +// SetId sets the Id field's value. +func (s *SendDataToWirelessDeviceInput) SetId(v string) *SendDataToWirelessDeviceInput { + s.Id = &v return s } -// SetResourceIdentifier sets the ResourceIdentifier field's value. -func (s *PutResourceLogLevelInput) SetResourceIdentifier(v string) *PutResourceLogLevelInput { - s.ResourceIdentifier = &v +// SetPayloadData sets the PayloadData field's value. +func (s *SendDataToWirelessDeviceInput) SetPayloadData(v string) *SendDataToWirelessDeviceInput { + s.PayloadData = &v return s } -// SetResourceType sets the ResourceType field's value. -func (s *PutResourceLogLevelInput) SetResourceType(v string) *PutResourceLogLevelInput { - s.ResourceType = &v +// SetTransmitMode sets the TransmitMode field's value. +func (s *SendDataToWirelessDeviceInput) SetTransmitMode(v int64) *SendDataToWirelessDeviceInput { + s.TransmitMode = &v return s } -type PutResourceLogLevelOutput struct { +// SetWirelessMetadata sets the WirelessMetadata field's value. +func (s *SendDataToWirelessDeviceInput) SetWirelessMetadata(v *WirelessMetadata) *SendDataToWirelessDeviceInput { + s.WirelessMetadata = v + return s +} + +type SendDataToWirelessDeviceOutput struct { _ struct{} `type:"structure"` + + // The ID of the message sent to the wireless device. + MessageId *string `type:"string"` } // String returns the string representation. @@ -11718,7 +17235,7 @@ type PutResourceLogLevelOutput 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 PutResourceLogLevelOutput) String() string { +func (s SendDataToWirelessDeviceOutput) String() string { return awsutil.Prettify(s) } @@ -11727,12 +17244,28 @@ func (s PutResourceLogLevelOutput) 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 PutResourceLogLevelOutput) GoString() string { +func (s SendDataToWirelessDeviceOutput) GoString() string { return s.String() } -type ResetAllResourceLogLevelsInput struct { - _ struct{} `type:"structure" nopayload:"true"` +// SetMessageId sets the MessageId field's value. +func (s *SendDataToWirelessDeviceOutput) SetMessageId(v string) *SendDataToWirelessDeviceOutput { + s.MessageId = &v + return s +} + +// Information about a service profile. +type ServiceProfile struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name of the resource. + Arn *string `type:"string"` + + // The ID of the service profile. + Id *string `type:"string"` + + // The name of the resource. + Name *string `type:"string"` } // String returns the string representation. @@ -11740,7 +17273,7 @@ type ResetAllResourceLogLevelsInput 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 ResetAllResourceLogLevelsInput) String() string { +func (s ServiceProfile) String() string { return awsutil.Prettify(s) } @@ -11749,12 +17282,37 @@ func (s ResetAllResourceLogLevelsInput) 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 ResetAllResourceLogLevelsInput) GoString() string { +func (s ServiceProfile) GoString() string { return s.String() } -type ResetAllResourceLogLevelsOutput struct { +// SetArn sets the Arn field's value. +func (s *ServiceProfile) SetArn(v string) *ServiceProfile { + s.Arn = &v + return s +} + +// SetId sets the Id field's value. +func (s *ServiceProfile) SetId(v string) *ServiceProfile { + s.Id = &v + return s +} + +// SetName sets the Name field's value. +func (s *ServiceProfile) SetName(v string) *ServiceProfile { + s.Name = &v + return s +} + +// Session keys for ABP v1.1 +type SessionKeysAbpV10X struct { _ struct{} `type:"structure"` + + // The AppSKey value. + AppSKey *string `type:"string"` + + // The NwkSKey value. + NwkSKey *string `type:"string"` } // String returns the string representation. @@ -11762,7 +17320,7 @@ type ResetAllResourceLogLevelsOutput 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 ResetAllResourceLogLevelsOutput) String() string { +func (s SessionKeysAbpV10X) String() string { return awsutil.Prettify(s) } @@ -11771,23 +17329,37 @@ func (s ResetAllResourceLogLevelsOutput) 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 ResetAllResourceLogLevelsOutput) GoString() string { +func (s SessionKeysAbpV10X) GoString() string { return s.String() } -type ResetResourceLogLevelInput struct { - _ struct{} `type:"structure" nopayload:"true"` +// SetAppSKey sets the AppSKey field's value. +func (s *SessionKeysAbpV10X) SetAppSKey(v string) *SessionKeysAbpV10X { + s.AppSKey = &v + return s +} - // The identifier of the resource. For a Wireless Device, it is the wireless - // device ID. For a wireless gateway, it is the wireless gateway ID. - // - // ResourceIdentifier is a required field - ResourceIdentifier *string `location:"uri" locationName:"ResourceIdentifier" type:"string" required:"true"` +// SetNwkSKey sets the NwkSKey field's value. +func (s *SessionKeysAbpV10X) SetNwkSKey(v string) *SessionKeysAbpV10X { + s.NwkSKey = &v + return s +} - // The type of the resource, which can be WirelessDevice or WirelessGateway. - // - // ResourceType is a required field - ResourceType *string `location:"querystring" locationName:"resourceType" type:"string" required:"true"` +// Session keys for ABP v1.1 +type SessionKeysAbpV11 struct { + _ struct{} `type:"structure"` + + // The AppSKey value. + AppSKey *string `type:"string"` + + // The FNwkSIntKey value. + FNwkSIntKey *string `type:"string"` + + // The NwkSEncKey value. + NwkSEncKey *string `type:"string"` + + // The SNwkSIntKey value. + SNwkSIntKey *string `type:"string"` } // String returns the string representation. @@ -11795,7 +17367,7 @@ type ResetResourceLogLevelInput 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 ResetResourceLogLevelInput) String() string { +func (s SessionKeysAbpV11) String() string { return awsutil.Prettify(s) } @@ -11804,43 +17376,47 @@ func (s ResetResourceLogLevelInput) 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 ResetResourceLogLevelInput) GoString() string { +func (s SessionKeysAbpV11) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ResetResourceLogLevelInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ResetResourceLogLevelInput"} - if s.ResourceIdentifier == nil { - invalidParams.Add(request.NewErrParamRequired("ResourceIdentifier")) - } - if s.ResourceIdentifier != nil && len(*s.ResourceIdentifier) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ResourceIdentifier", 1)) - } - if s.ResourceType == nil { - invalidParams.Add(request.NewErrParamRequired("ResourceType")) - } +// SetAppSKey sets the AppSKey field's value. +func (s *SessionKeysAbpV11) SetAppSKey(v string) *SessionKeysAbpV11 { + s.AppSKey = &v + return s +} - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetFNwkSIntKey sets the FNwkSIntKey field's value. +func (s *SessionKeysAbpV11) SetFNwkSIntKey(v string) *SessionKeysAbpV11 { + s.FNwkSIntKey = &v + return s } -// SetResourceIdentifier sets the ResourceIdentifier field's value. -func (s *ResetResourceLogLevelInput) SetResourceIdentifier(v string) *ResetResourceLogLevelInput { - s.ResourceIdentifier = &v +// SetNwkSEncKey sets the NwkSEncKey field's value. +func (s *SessionKeysAbpV11) SetNwkSEncKey(v string) *SessionKeysAbpV11 { + s.NwkSEncKey = &v return s } -// SetResourceType sets the ResourceType field's value. -func (s *ResetResourceLogLevelInput) SetResourceType(v string) *ResetResourceLogLevelInput { - s.ResourceType = &v +// SetSNwkSIntKey sets the SNwkSIntKey field's value. +func (s *SessionKeysAbpV11) SetSNwkSIntKey(v string) *SessionKeysAbpV11 { + s.SNwkSIntKey = &v return s } -type ResetResourceLogLevelOutput struct { +// Information about a Sidewalk account. +type SidewalkAccountInfo struct { _ struct{} `type:"structure"` + + // The Sidewalk Amazon ID. + AmazonId *string `type:"string"` + + // The Sidewalk application server private key. + // + // AppServerPrivateKey is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by SidewalkAccountInfo's + // String and GoString methods. + AppServerPrivateKey *string `min:"1" type:"string" sensitive:"true"` } // String returns the string representation. @@ -11848,7 +17424,7 @@ type ResetResourceLogLevelOutput 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 ResetResourceLogLevelOutput) String() string { +func (s SidewalkAccountInfo) String() string { return awsutil.Prettify(s) } @@ -11857,22 +17433,51 @@ func (s ResetResourceLogLevelOutput) 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 ResetResourceLogLevelOutput) GoString() string { +func (s SidewalkAccountInfo) GoString() string { return s.String() } -// Resource does not exist. -type ResourceNotFoundException struct { - _ struct{} `type:"structure"` - RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` +// Validate inspects the fields of the type to determine if they are valid. +func (s *SidewalkAccountInfo) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "SidewalkAccountInfo"} + if s.AppServerPrivateKey != nil && len(*s.AppServerPrivateKey) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AppServerPrivateKey", 1)) + } - Message_ *string `locationName:"Message" type:"string"` + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} - // Id of the not found resource. - ResourceId *string `type:"string"` +// SetAmazonId sets the AmazonId field's value. +func (s *SidewalkAccountInfo) SetAmazonId(v string) *SidewalkAccountInfo { + s.AmazonId = &v + return s +} - // Type of the font found resource. - ResourceType *string `type:"string"` +// SetAppServerPrivateKey sets the AppServerPrivateKey field's value. +func (s *SidewalkAccountInfo) SetAppServerPrivateKey(v string) *SidewalkAccountInfo { + s.AppServerPrivateKey = &v + return s +} + +// Information about a Sidewalk account. +type SidewalkAccountInfoWithFingerprint struct { + _ struct{} `type:"structure"` + + // The Sidewalk Amazon ID. + AmazonId *string `type:"string"` + + // The Amazon Resource Name of the resource. + Arn *string `type:"string"` + + // The fingerprint of the Sidewalk application server private key. + // + // Fingerprint is a sensitive parameter and its value will be + // replaced with "sensitive" in string returned by SidewalkAccountInfoWithFingerprint's + // String and GoString methods. + Fingerprint *string `min:"64" type:"string" sensitive:"true"` } // String returns the string representation. @@ -11880,7 +17485,7 @@ type ResourceNotFoundException 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 ResourceNotFoundException) String() string { +func (s SidewalkAccountInfoWithFingerprint) String() string { return awsutil.Prettify(s) } @@ -11889,69 +17494,43 @@ func (s ResourceNotFoundException) 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 ResourceNotFoundException) GoString() string { +func (s SidewalkAccountInfoWithFingerprint) GoString() string { return s.String() } -func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error { - return &ResourceNotFoundException{ - RespMetadata: v, - } -} - -// Code returns the exception type name. -func (s *ResourceNotFoundException) Code() string { - return "ResourceNotFoundException" -} - -// Message returns the exception's message. -func (s *ResourceNotFoundException) Message() string { - if s.Message_ != nil { - return *s.Message_ - } - return "" -} - -// OrigErr always returns nil, satisfies awserr.Error interface. -func (s *ResourceNotFoundException) OrigErr() error { - return nil -} - -func (s *ResourceNotFoundException) Error() string { - return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +// SetAmazonId sets the AmazonId field's value. +func (s *SidewalkAccountInfoWithFingerprint) SetAmazonId(v string) *SidewalkAccountInfoWithFingerprint { + s.AmazonId = &v + return s } -// Status code returns the HTTP status code for the request's response error. -func (s *ResourceNotFoundException) StatusCode() int { - return s.RespMetadata.StatusCode +// SetArn sets the Arn field's value. +func (s *SidewalkAccountInfoWithFingerprint) SetArn(v string) *SidewalkAccountInfoWithFingerprint { + s.Arn = &v + return s } -// RequestID returns the service's response RequestID for request. -func (s *ResourceNotFoundException) RequestID() string { - return s.RespMetadata.RequestID +// SetFingerprint sets the Fingerprint field's value. +func (s *SidewalkAccountInfoWithFingerprint) SetFingerprint(v string) *SidewalkAccountInfoWithFingerprint { + s.Fingerprint = &v + return s } -type SendDataToWirelessDeviceInput struct { +// Sidewalk device object. +type SidewalkDevice struct { _ struct{} `type:"structure"` - // The ID of the wireless device to receive the data. - // - // Id is a required field - Id *string `location:"uri" locationName:"Id" type:"string" required:"true"` + // The Sidewalk Amazon ID. + AmazonId *string `type:"string"` - // The binary to be sent to the end device, encoded in base64. - // - // PayloadData is a required field - PayloadData *string `type:"string" required:"true"` + // The sidewalk device certificates for Ed25519 and P256r1. + DeviceCertificates []*CertificateList `type:"list"` - // The transmit mode to use to send data to the wireless device. Can be: 0 for - // UM (unacknowledge mode) or 1 for AM (acknowledge mode). - // - // TransmitMode is a required field - TransmitMode *int64 `type:"integer" required:"true"` + // The sidewalk device identification. + SidewalkId *string `type:"string"` - // Metadata about the message request. - WirelessMetadata *WirelessMetadata `type:"structure"` + // The Sidewalk manufacturing series number. + SidewalkManufacturingSn *string `type:"string"` } // String returns the string representation. @@ -11959,7 +17538,7 @@ type SendDataToWirelessDeviceInput 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 SendDataToWirelessDeviceInput) String() string { +func (s SidewalkDevice) String() string { return awsutil.Prettify(s) } @@ -11968,66 +17547,49 @@ func (s SendDataToWirelessDeviceInput) 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 SendDataToWirelessDeviceInput) GoString() string { +func (s SidewalkDevice) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *SendDataToWirelessDeviceInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "SendDataToWirelessDeviceInput"} - 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.PayloadData == nil { - invalidParams.Add(request.NewErrParamRequired("PayloadData")) - } - if s.TransmitMode == nil { - invalidParams.Add(request.NewErrParamRequired("TransmitMode")) - } - if s.WirelessMetadata != nil { - if err := s.WirelessMetadata.Validate(); err != nil { - invalidParams.AddNested("WirelessMetadata", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetId sets the Id field's value. -func (s *SendDataToWirelessDeviceInput) SetId(v string) *SendDataToWirelessDeviceInput { - s.Id = &v +// SetAmazonId sets the AmazonId field's value. +func (s *SidewalkDevice) SetAmazonId(v string) *SidewalkDevice { + s.AmazonId = &v return s } -// SetPayloadData sets the PayloadData field's value. -func (s *SendDataToWirelessDeviceInput) SetPayloadData(v string) *SendDataToWirelessDeviceInput { - s.PayloadData = &v +// SetDeviceCertificates sets the DeviceCertificates field's value. +func (s *SidewalkDevice) SetDeviceCertificates(v []*CertificateList) *SidewalkDevice { + s.DeviceCertificates = v return s } -// SetTransmitMode sets the TransmitMode field's value. -func (s *SendDataToWirelessDeviceInput) SetTransmitMode(v int64) *SendDataToWirelessDeviceInput { - s.TransmitMode = &v +// SetSidewalkId sets the SidewalkId field's value. +func (s *SidewalkDevice) SetSidewalkId(v string) *SidewalkDevice { + s.SidewalkId = &v return s } -// SetWirelessMetadata sets the WirelessMetadata field's value. -func (s *SendDataToWirelessDeviceInput) SetWirelessMetadata(v *WirelessMetadata) *SendDataToWirelessDeviceInput { - s.WirelessMetadata = v +// SetSidewalkManufacturingSn sets the SidewalkManufacturingSn field's value. +func (s *SidewalkDevice) SetSidewalkManufacturingSn(v string) *SidewalkDevice { + s.SidewalkManufacturingSn = &v return s } -type SendDataToWirelessDeviceOutput struct { +// MetaData for Sidewalk device. +type SidewalkDeviceMetadata struct { _ struct{} `type:"structure"` - // The ID of the message sent to the wireless device. - MessageId *string `type:"string"` + // Sidewalk device battery level. + BatteryLevel *string `type:"string" enum:"BatteryLevel"` + + // Device state defines the device status of sidewalk device. + DeviceState *string `type:"string" enum:"DeviceState"` + + // Sidewalk device status notification. + Event *string `type:"string" enum:"Event"` + + // The RSSI value. + Rssi *int64 `type:"integer"` } // String returns the string representation. @@ -12035,7 +17597,7 @@ type SendDataToWirelessDeviceOutput 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 SendDataToWirelessDeviceOutput) String() string { +func (s SidewalkDeviceMetadata) String() string { return awsutil.Prettify(s) } @@ -12044,28 +17606,41 @@ func (s SendDataToWirelessDeviceOutput) 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 SendDataToWirelessDeviceOutput) GoString() string { +func (s SidewalkDeviceMetadata) GoString() string { return s.String() } -// SetMessageId sets the MessageId field's value. -func (s *SendDataToWirelessDeviceOutput) SetMessageId(v string) *SendDataToWirelessDeviceOutput { - s.MessageId = &v +// SetBatteryLevel sets the BatteryLevel field's value. +func (s *SidewalkDeviceMetadata) SetBatteryLevel(v string) *SidewalkDeviceMetadata { + s.BatteryLevel = &v return s } -// Information about a service profile. -type ServiceProfile struct { - _ struct{} `type:"structure"` +// SetDeviceState sets the DeviceState field's value. +func (s *SidewalkDeviceMetadata) SetDeviceState(v string) *SidewalkDeviceMetadata { + s.DeviceState = &v + return s +} - // The Amazon Resource Name of the resource. - Arn *string `type:"string"` +// SetEvent sets the Event field's value. +func (s *SidewalkDeviceMetadata) SetEvent(v string) *SidewalkDeviceMetadata { + s.Event = &v + return s +} - // The ID of the service profile. - Id *string `type:"string"` +// SetRssi sets the Rssi field's value. +func (s *SidewalkDeviceMetadata) SetRssi(v int64) *SidewalkDeviceMetadata { + s.Rssi = &v + return s +} - // The name of the resource. - Name *string `type:"string"` +// SidewalkEventNotificationConfigurations object Event configuration object +// for Sidewalk related event topics. +type SidewalkEventNotificationConfigurations struct { + _ struct{} `type:"structure"` + + // Enum to denote whether amazon id event topic is enabled or disabled. + AmazonIdEventTopic *string `type:"string" enum:"EventNotificationTopicStatus"` } // String returns the string representation. @@ -12073,7 +17648,7 @@ type ServiceProfile 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 ServiceProfile) String() string { +func (s SidewalkEventNotificationConfigurations) String() string { return awsutil.Prettify(s) } @@ -12082,37 +17657,31 @@ func (s ServiceProfile) 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 ServiceProfile) GoString() string { +func (s SidewalkEventNotificationConfigurations) GoString() string { return s.String() } -// SetArn sets the Arn field's value. -func (s *ServiceProfile) SetArn(v string) *ServiceProfile { - s.Arn = &v - return s -} - -// SetId sets the Id field's value. -func (s *ServiceProfile) SetId(v string) *ServiceProfile { - s.Id = &v - return s -} - -// SetName sets the Name field's value. -func (s *ServiceProfile) SetName(v string) *ServiceProfile { - s.Name = &v +// SetAmazonIdEventTopic sets the AmazonIdEventTopic field's value. +func (s *SidewalkEventNotificationConfigurations) SetAmazonIdEventTopic(v string) *SidewalkEventNotificationConfigurations { + s.AmazonIdEventTopic = &v return s } -// Session keys for ABP v1.1 -type SessionKeysAbpV10X struct { +// Sidewalk object used by list functions. +type SidewalkListDevice struct { _ struct{} `type:"structure"` - // The AppSKey value. - AppSKey *string `type:"string"` + // The Sidewalk Amazon ID. + AmazonId *string `type:"string"` - // The NwkSKey value. - NwkSKey *string `type:"string"` + // The sidewalk device certificates for Ed25519 and P256r1. + DeviceCertificates []*CertificateList `type:"list"` + + // The sidewalk device identification. + SidewalkId *string `type:"string"` + + // The Sidewalk manufacturing series number. + SidewalkManufacturingSn *string `type:"string"` } // String returns the string representation. @@ -12120,7 +17689,7 @@ type SessionKeysAbpV10X 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 SessionKeysAbpV10X) String() string { +func (s SidewalkListDevice) String() string { return awsutil.Prettify(s) } @@ -12129,37 +17698,43 @@ func (s SessionKeysAbpV10X) 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 SessionKeysAbpV10X) GoString() string { +func (s SidewalkListDevice) GoString() string { return s.String() } -// SetAppSKey sets the AppSKey field's value. -func (s *SessionKeysAbpV10X) SetAppSKey(v string) *SessionKeysAbpV10X { - s.AppSKey = &v +// SetAmazonId sets the AmazonId field's value. +func (s *SidewalkListDevice) SetAmazonId(v string) *SidewalkListDevice { + s.AmazonId = &v return s } -// SetNwkSKey sets the NwkSKey field's value. -func (s *SessionKeysAbpV10X) SetNwkSKey(v string) *SessionKeysAbpV10X { - s.NwkSKey = &v +// SetDeviceCertificates sets the DeviceCertificates field's value. +func (s *SidewalkListDevice) SetDeviceCertificates(v []*CertificateList) *SidewalkListDevice { + s.DeviceCertificates = v return s } -// Session keys for ABP v1.1 -type SessionKeysAbpV11 struct { - _ struct{} `type:"structure"` +// SetSidewalkId sets the SidewalkId field's value. +func (s *SidewalkListDevice) SetSidewalkId(v string) *SidewalkListDevice { + s.SidewalkId = &v + return s +} - // The AppSKey value. - AppSKey *string `type:"string"` +// SetSidewalkManufacturingSn sets the SidewalkManufacturingSn field's value. +func (s *SidewalkListDevice) SetSidewalkManufacturingSn(v string) *SidewalkListDevice { + s.SidewalkManufacturingSn = &v + return s +} - // The FNwkSIntKey value. - FNwkSIntKey *string `type:"string"` +// Information about a Sidewalk router. +type SidewalkSendDataToDevice struct { + _ struct{} `type:"structure"` - // The NwkSEncKey value. - NwkSEncKey *string `type:"string"` + // Sidewalk device message type. Default value is CUSTOM_COMMAND_ID_NOTIFY. + MessageType *string `type:"string" enum:"MessageType"` - // The SNwkSIntKey value. - SNwkSIntKey *string `type:"string"` + // The sequence number. + Seq *int64 `type:"integer"` } // String returns the string representation. @@ -12167,7 +17742,7 @@ type SessionKeysAbpV11 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 SessionKeysAbpV11) String() string { +func (s SidewalkSendDataToDevice) String() string { return awsutil.Prettify(s) } @@ -12176,45 +17751,30 @@ func (s SessionKeysAbpV11) 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 SessionKeysAbpV11) GoString() string { +func (s SidewalkSendDataToDevice) GoString() string { return s.String() } -// SetAppSKey sets the AppSKey field's value. -func (s *SessionKeysAbpV11) SetAppSKey(v string) *SessionKeysAbpV11 { - s.AppSKey = &v - return s -} - -// SetFNwkSIntKey sets the FNwkSIntKey field's value. -func (s *SessionKeysAbpV11) SetFNwkSIntKey(v string) *SessionKeysAbpV11 { - s.FNwkSIntKey = &v - return s -} - -// SetNwkSEncKey sets the NwkSEncKey field's value. -func (s *SessionKeysAbpV11) SetNwkSEncKey(v string) *SessionKeysAbpV11 { - s.NwkSEncKey = &v +// SetMessageType sets the MessageType field's value. +func (s *SidewalkSendDataToDevice) SetMessageType(v string) *SidewalkSendDataToDevice { + s.MessageType = &v return s } -// SetSNwkSIntKey sets the SNwkSIntKey field's value. -func (s *SessionKeysAbpV11) SetSNwkSIntKey(v string) *SessionKeysAbpV11 { - s.SNwkSIntKey = &v +// SetSeq sets the Seq field's value. +func (s *SidewalkSendDataToDevice) SetSeq(v int64) *SidewalkSendDataToDevice { + s.Seq = &v return s } -// Information about a Sidewalk account. -type SidewalkAccountInfo struct { +// Sidewalk update. +type SidewalkUpdateAccount struct { _ struct{} `type:"structure"` - // The Sidewalk Amazon ID. - AmazonId *string `type:"string"` - - // The Sidewalk application server private key. + // The new Sidewalk application server private key. // // AppServerPrivateKey is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by SidewalkAccountInfo's + // replaced with "sensitive" in string returned by SidewalkUpdateAccount's // String and GoString methods. AppServerPrivateKey *string `min:"1" type:"string" sensitive:"true"` } @@ -12224,7 +17784,7 @@ type SidewalkAccountInfo 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 SidewalkAccountInfo) String() string { +func (s SidewalkUpdateAccount) String() string { return awsutil.Prettify(s) } @@ -12233,13 +17793,13 @@ func (s SidewalkAccountInfo) 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 SidewalkAccountInfo) GoString() string { +func (s SidewalkUpdateAccount) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *SidewalkAccountInfo) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "SidewalkAccountInfo"} +func (s *SidewalkUpdateAccount) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "SidewalkUpdateAccount"} if s.AppServerPrivateKey != nil && len(*s.AppServerPrivateKey) < 1 { invalidParams.Add(request.NewErrParamMinLen("AppServerPrivateKey", 1)) } @@ -12250,34 +17810,27 @@ func (s *SidewalkAccountInfo) Validate() error { return nil } -// SetAmazonId sets the AmazonId field's value. -func (s *SidewalkAccountInfo) SetAmazonId(v string) *SidewalkAccountInfo { - s.AmazonId = &v - return s -} - // SetAppServerPrivateKey sets the AppServerPrivateKey field's value. -func (s *SidewalkAccountInfo) SetAppServerPrivateKey(v string) *SidewalkAccountInfo { +func (s *SidewalkUpdateAccount) SetAppServerPrivateKey(v string) *SidewalkUpdateAccount { s.AppServerPrivateKey = &v return s } -// Information about a Sidewalk account. -type SidewalkAccountInfoWithFingerprint struct { +type StartBulkAssociateWirelessDeviceWithMulticastGroupInput struct { _ struct{} `type:"structure"` - // The Sidewalk Amazon ID. - AmazonId *string `type:"string"` + // The ID of the multicast group. + // + // Id is a required field + Id *string `location:"uri" locationName:"Id" type:"string" required:"true"` - // The Amazon Resource Name of the resource. - Arn *string `type:"string"` + // Query string used to search for wireless devices as part of the bulk associate + // and disassociate process. + QueryString *string `type:"string"` - // The fingerprint of the Sidewalk application server private key. - // - // Fingerprint is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by SidewalkAccountInfoWithFingerprint's - // String and GoString methods. - Fingerprint *string `min:"64" type:"string" sensitive:"true"` + // The tag to attach to the specified resource. Tags are metadata that you can + // use to manage a resource. + Tags []*Tag `type:"list"` } // String returns the string representation. @@ -12285,7 +17838,7 @@ type SidewalkAccountInfoWithFingerprint 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 SidewalkAccountInfoWithFingerprint) String() string { +func (s StartBulkAssociateWirelessDeviceWithMulticastGroupInput) String() string { return awsutil.Prettify(s) } @@ -12294,43 +17847,91 @@ func (s SidewalkAccountInfoWithFingerprint) 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 SidewalkAccountInfoWithFingerprint) GoString() string { +func (s StartBulkAssociateWirelessDeviceWithMulticastGroupInput) GoString() string { return s.String() } -// SetAmazonId sets the AmazonId field's value. -func (s *SidewalkAccountInfoWithFingerprint) SetAmazonId(v string) *SidewalkAccountInfoWithFingerprint { - s.AmazonId = &v +// Validate inspects the fields of the type to determine if they are valid. +func (s *StartBulkAssociateWirelessDeviceWithMulticastGroupInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "StartBulkAssociateWirelessDeviceWithMulticastGroupInput"} + 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.Tags != nil { + for i, v := range s.Tags { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetId sets the Id field's value. +func (s *StartBulkAssociateWirelessDeviceWithMulticastGroupInput) SetId(v string) *StartBulkAssociateWirelessDeviceWithMulticastGroupInput { + s.Id = &v return s } -// SetArn sets the Arn field's value. -func (s *SidewalkAccountInfoWithFingerprint) SetArn(v string) *SidewalkAccountInfoWithFingerprint { - s.Arn = &v +// SetQueryString sets the QueryString field's value. +func (s *StartBulkAssociateWirelessDeviceWithMulticastGroupInput) SetQueryString(v string) *StartBulkAssociateWirelessDeviceWithMulticastGroupInput { + s.QueryString = &v return s } -// SetFingerprint sets the Fingerprint field's value. -func (s *SidewalkAccountInfoWithFingerprint) SetFingerprint(v string) *SidewalkAccountInfoWithFingerprint { - s.Fingerprint = &v +// SetTags sets the Tags field's value. +func (s *StartBulkAssociateWirelessDeviceWithMulticastGroupInput) SetTags(v []*Tag) *StartBulkAssociateWirelessDeviceWithMulticastGroupInput { + s.Tags = v return s } -// Sidewalk device object. -type SidewalkDevice struct { +type StartBulkAssociateWirelessDeviceWithMulticastGroupOutput struct { _ struct{} `type:"structure"` +} - // The Sidewalk Amazon ID. - AmazonId *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 StartBulkAssociateWirelessDeviceWithMulticastGroupOutput) String() string { + return awsutil.Prettify(s) +} - // The sidewalk device certificates for Ed25519 and P256r1. - DeviceCertificates []*CertificateList `type:"list"` +// 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 StartBulkAssociateWirelessDeviceWithMulticastGroupOutput) GoString() string { + return s.String() +} - // The sidewalk device identification. - SidewalkId *string `type:"string"` +type StartBulkDisassociateWirelessDeviceFromMulticastGroupInput struct { + _ struct{} `type:"structure"` - // The Sidewalk manufacturing series number. - SidewalkManufacturingSn *string `type:"string"` + // The ID of the multicast group. + // + // Id is a required field + Id *string `location:"uri" locationName:"Id" type:"string" required:"true"` + + // Query string used to search for wireless devices as part of the bulk associate + // and disassociate process. + QueryString *string `type:"string"` + + // The tag to attach to the specified resource. Tags are metadata that you can + // use to manage a resource. + Tags []*Tag `type:"list"` } // String returns the string representation. @@ -12338,7 +17939,7 @@ type SidewalkDevice 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 SidewalkDevice) String() string { +func (s StartBulkDisassociateWirelessDeviceFromMulticastGroupInput) String() string { return awsutil.Prettify(s) } @@ -12347,49 +17948,56 @@ func (s SidewalkDevice) 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 SidewalkDevice) GoString() string { +func (s StartBulkDisassociateWirelessDeviceFromMulticastGroupInput) GoString() string { return s.String() } -// SetAmazonId sets the AmazonId field's value. -func (s *SidewalkDevice) SetAmazonId(v string) *SidewalkDevice { - s.AmazonId = &v - return s -} +// Validate inspects the fields of the type to determine if they are valid. +func (s *StartBulkDisassociateWirelessDeviceFromMulticastGroupInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "StartBulkDisassociateWirelessDeviceFromMulticastGroupInput"} + 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.Tags != nil { + for i, v := range s.Tags { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) + } + } + } -// SetDeviceCertificates sets the DeviceCertificates field's value. -func (s *SidewalkDevice) SetDeviceCertificates(v []*CertificateList) *SidewalkDevice { - s.DeviceCertificates = v - return s + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// SetSidewalkId sets the SidewalkId field's value. -func (s *SidewalkDevice) SetSidewalkId(v string) *SidewalkDevice { - s.SidewalkId = &v +// SetId sets the Id field's value. +func (s *StartBulkDisassociateWirelessDeviceFromMulticastGroupInput) SetId(v string) *StartBulkDisassociateWirelessDeviceFromMulticastGroupInput { + s.Id = &v return s } -// SetSidewalkManufacturingSn sets the SidewalkManufacturingSn field's value. -func (s *SidewalkDevice) SetSidewalkManufacturingSn(v string) *SidewalkDevice { - s.SidewalkManufacturingSn = &v +// SetQueryString sets the QueryString field's value. +func (s *StartBulkDisassociateWirelessDeviceFromMulticastGroupInput) SetQueryString(v string) *StartBulkDisassociateWirelessDeviceFromMulticastGroupInput { + s.QueryString = &v return s } -// MetaData for Sidewalk device. -type SidewalkDeviceMetadata struct { - _ struct{} `type:"structure"` - - // Sidewalk device battery level. - BatteryLevel *string `type:"string" enum:"BatteryLevel"` - - // Device state defines the device status of sidewalk device. - DeviceState *string `type:"string" enum:"DeviceState"` - - // Sidewalk device status notification. - Event *string `type:"string" enum:"Event"` +// SetTags sets the Tags field's value. +func (s *StartBulkDisassociateWirelessDeviceFromMulticastGroupInput) SetTags(v []*Tag) *StartBulkDisassociateWirelessDeviceFromMulticastGroupInput { + s.Tags = v + return s +} - // The RSSI value. - Rssi *int64 `type:"integer"` +type StartBulkDisassociateWirelessDeviceFromMulticastGroupOutput struct { + _ struct{} `type:"structure"` } // String returns the string representation. @@ -12397,7 +18005,7 @@ type SidewalkDeviceMetadata 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 SidewalkDeviceMetadata) String() string { +func (s StartBulkDisassociateWirelessDeviceFromMulticastGroupOutput) String() string { return awsutil.Prettify(s) } @@ -12406,49 +18014,20 @@ func (s SidewalkDeviceMetadata) 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 SidewalkDeviceMetadata) GoString() string { +func (s StartBulkDisassociateWirelessDeviceFromMulticastGroupOutput) GoString() string { return s.String() } -// SetBatteryLevel sets the BatteryLevel field's value. -func (s *SidewalkDeviceMetadata) SetBatteryLevel(v string) *SidewalkDeviceMetadata { - s.BatteryLevel = &v - return s -} - -// SetDeviceState sets the DeviceState field's value. -func (s *SidewalkDeviceMetadata) SetDeviceState(v string) *SidewalkDeviceMetadata { - s.DeviceState = &v - return s -} - -// SetEvent sets the Event field's value. -func (s *SidewalkDeviceMetadata) SetEvent(v string) *SidewalkDeviceMetadata { - s.Event = &v - return s -} - -// SetRssi sets the Rssi field's value. -func (s *SidewalkDeviceMetadata) SetRssi(v int64) *SidewalkDeviceMetadata { - s.Rssi = &v - return s -} - -// Sidewalk object used by list functions. -type SidewalkListDevice struct { +type StartFuotaTaskInput struct { _ struct{} `type:"structure"` - // The Sidewalk Amazon ID. - AmazonId *string `type:"string"` - - // The sidewalk device certificates for Ed25519 and P256r1. - DeviceCertificates []*CertificateList `type:"list"` - - // The sidewalk device identification. - SidewalkId *string `type:"string"` + // The ID of a FUOTA task. + // + // Id is a required field + Id *string `location:"uri" locationName:"Id" type:"string" required:"true"` - // The Sidewalk manufacturing series number. - SidewalkManufacturingSn *string `type:"string"` + // The LoRaWAN information used to start a FUOTA task. + LoRaWAN *LoRaWANStartFuotaTask `type:"structure"` } // String returns the string representation. @@ -12456,7 +18035,7 @@ type SidewalkListDevice 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 SidewalkListDevice) String() string { +func (s StartFuotaTaskInput) String() string { return awsutil.Prettify(s) } @@ -12465,43 +18044,40 @@ func (s SidewalkListDevice) 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 SidewalkListDevice) GoString() string { +func (s StartFuotaTaskInput) GoString() string { return s.String() } -// SetAmazonId sets the AmazonId field's value. -func (s *SidewalkListDevice) SetAmazonId(v string) *SidewalkListDevice { - s.AmazonId = &v - return s -} +// Validate inspects the fields of the type to determine if they are valid. +func (s *StartFuotaTaskInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "StartFuotaTaskInput"} + if s.Id == nil { + invalidParams.Add(request.NewErrParamRequired("Id")) + } + if s.Id != nil && len(*s.Id) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Id", 1)) + } -// SetDeviceCertificates sets the DeviceCertificates field's value. -func (s *SidewalkListDevice) SetDeviceCertificates(v []*CertificateList) *SidewalkListDevice { - s.DeviceCertificates = v - return s + if invalidParams.Len() > 0 { + return invalidParams + } + return nil } -// SetSidewalkId sets the SidewalkId field's value. -func (s *SidewalkListDevice) SetSidewalkId(v string) *SidewalkListDevice { - s.SidewalkId = &v +// SetId sets the Id field's value. +func (s *StartFuotaTaskInput) SetId(v string) *StartFuotaTaskInput { + s.Id = &v return s } -// SetSidewalkManufacturingSn sets the SidewalkManufacturingSn field's value. -func (s *SidewalkListDevice) SetSidewalkManufacturingSn(v string) *SidewalkListDevice { - s.SidewalkManufacturingSn = &v +// SetLoRaWAN sets the LoRaWAN field's value. +func (s *StartFuotaTaskInput) SetLoRaWAN(v *LoRaWANStartFuotaTask) *StartFuotaTaskInput { + s.LoRaWAN = v return s } -// Information about a Sidewalk router. -type SidewalkSendDataToDevice struct { +type StartFuotaTaskOutput struct { _ struct{} `type:"structure"` - - // Sidewalk device message type. Default value is CUSTOM_COMMAND_ID_NOTIFY. - MessageType *string `type:"string" enum:"MessageType"` - - // The sequence number. - Seq *int64 `type:"integer"` } // String returns the string representation. @@ -12509,7 +18085,7 @@ type SidewalkSendDataToDevice 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 SidewalkSendDataToDevice) String() string { +func (s StartFuotaTaskOutput) String() string { return awsutil.Prettify(s) } @@ -12518,32 +18094,22 @@ func (s SidewalkSendDataToDevice) 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 SidewalkSendDataToDevice) GoString() string { +func (s StartFuotaTaskOutput) GoString() string { return s.String() } -// SetMessageType sets the MessageType field's value. -func (s *SidewalkSendDataToDevice) SetMessageType(v string) *SidewalkSendDataToDevice { - s.MessageType = &v - return s -} - -// SetSeq sets the Seq field's value. -func (s *SidewalkSendDataToDevice) SetSeq(v int64) *SidewalkSendDataToDevice { - s.Seq = &v - return s -} - -// Sidewalk update. -type SidewalkUpdateAccount struct { +type StartMulticastGroupSessionInput struct { _ struct{} `type:"structure"` - // The new Sidewalk application server private key. + // The ID of the multicast group. // - // AppServerPrivateKey is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by SidewalkUpdateAccount's - // String and GoString methods. - AppServerPrivateKey *string `min:"1" type:"string" sensitive:"true"` + // Id is a required field + Id *string `location:"uri" locationName:"Id" type:"string" required:"true"` + + // The LoRaWAN information used with the multicast session. + // + // LoRaWAN is a required field + LoRaWAN *LoRaWANMulticastSession `type:"structure" required:"true"` } // String returns the string representation. @@ -12551,7 +18117,7 @@ type SidewalkUpdateAccount 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 SidewalkUpdateAccount) String() string { +func (s StartMulticastGroupSessionInput) String() string { return awsutil.Prettify(s) } @@ -12560,15 +18126,26 @@ func (s SidewalkUpdateAccount) 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 SidewalkUpdateAccount) GoString() string { +func (s StartMulticastGroupSessionInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *SidewalkUpdateAccount) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "SidewalkUpdateAccount"} - if s.AppServerPrivateKey != nil && len(*s.AppServerPrivateKey) < 1 { - invalidParams.Add(request.NewErrParamMinLen("AppServerPrivateKey", 1)) +func (s *StartMulticastGroupSessionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "StartMulticastGroupSessionInput"} + 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.LoRaWAN == nil { + invalidParams.Add(request.NewErrParamRequired("LoRaWAN")) + } + if s.LoRaWAN != nil { + if err := s.LoRaWAN.Validate(); err != nil { + invalidParams.AddNested("LoRaWAN", err.(request.ErrInvalidParams)) + } } if invalidParams.Len() > 0 { @@ -12577,12 +18154,40 @@ func (s *SidewalkUpdateAccount) Validate() error { return nil } -// SetAppServerPrivateKey sets the AppServerPrivateKey field's value. -func (s *SidewalkUpdateAccount) SetAppServerPrivateKey(v string) *SidewalkUpdateAccount { - s.AppServerPrivateKey = &v +// SetId sets the Id field's value. +func (s *StartMulticastGroupSessionInput) SetId(v string) *StartMulticastGroupSessionInput { + s.Id = &v return s } +// SetLoRaWAN sets the LoRaWAN field's value. +func (s *StartMulticastGroupSessionInput) SetLoRaWAN(v *LoRaWANMulticastSession) *StartMulticastGroupSessionInput { + s.LoRaWAN = v + return s +} + +type StartMulticastGroupSessionOutput 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 StartMulticastGroupSessionOutput) 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 StartMulticastGroupSessionOutput) GoString() string { + return s.String() +} + // A simple label consisting of a customer-defined key-value pair type Tag struct { _ struct{} `type:"structure"` @@ -13121,13 +18726,136 @@ func (s *UpdateDestinationInput) SetName(v string) *UpdateDestinationInput { return s } -// SetRoleArn sets the RoleArn field's value. -func (s *UpdateDestinationInput) SetRoleArn(v string) *UpdateDestinationInput { - s.RoleArn = &v +// SetRoleArn sets the RoleArn field's value. +func (s *UpdateDestinationInput) SetRoleArn(v string) *UpdateDestinationInput { + s.RoleArn = &v + return s +} + +type UpdateDestinationOutput 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 UpdateDestinationOutput) 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 UpdateDestinationOutput) GoString() string { + return s.String() +} + +type UpdateFuotaTaskInput struct { + _ struct{} `type:"structure"` + + // The description of the new resource. + Description *string `type:"string"` + + // The S3 URI points to a firmware update image that is to be used with a FUOTA + // task. + FirmwareUpdateImage *string `min:"1" type:"string"` + + // The firmware update role that is to be used with a FUOTA task. + FirmwareUpdateRole *string `min:"1" type:"string"` + + // The ID of a FUOTA task. + // + // Id is a required field + Id *string `location:"uri" locationName:"Id" type:"string" required:"true"` + + // The LoRaWAN information used with a FUOTA task. + LoRaWAN *LoRaWANFuotaTask `type:"structure"` + + // The name of a FUOTA task. + Name *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 UpdateFuotaTaskInput) 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 UpdateFuotaTaskInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateFuotaTaskInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateFuotaTaskInput"} + if s.FirmwareUpdateImage != nil && len(*s.FirmwareUpdateImage) < 1 { + invalidParams.Add(request.NewErrParamMinLen("FirmwareUpdateImage", 1)) + } + if s.FirmwareUpdateRole != nil && len(*s.FirmwareUpdateRole) < 1 { + invalidParams.Add(request.NewErrParamMinLen("FirmwareUpdateRole", 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 invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDescription sets the Description field's value. +func (s *UpdateFuotaTaskInput) SetDescription(v string) *UpdateFuotaTaskInput { + s.Description = &v + return s +} + +// SetFirmwareUpdateImage sets the FirmwareUpdateImage field's value. +func (s *UpdateFuotaTaskInput) SetFirmwareUpdateImage(v string) *UpdateFuotaTaskInput { + s.FirmwareUpdateImage = &v + return s +} + +// SetFirmwareUpdateRole sets the FirmwareUpdateRole field's value. +func (s *UpdateFuotaTaskInput) SetFirmwareUpdateRole(v string) *UpdateFuotaTaskInput { + s.FirmwareUpdateRole = &v + return s +} + +// SetId sets the Id field's value. +func (s *UpdateFuotaTaskInput) SetId(v string) *UpdateFuotaTaskInput { + s.Id = &v + return s +} + +// SetLoRaWAN sets the LoRaWAN field's value. +func (s *UpdateFuotaTaskInput) SetLoRaWAN(v *LoRaWANFuotaTask) *UpdateFuotaTaskInput { + s.LoRaWAN = v + return s +} + +// SetName sets the Name field's value. +func (s *UpdateFuotaTaskInput) SetName(v string) *UpdateFuotaTaskInput { + s.Name = &v return s } -type UpdateDestinationOutput struct { +type UpdateFuotaTaskOutput struct { _ struct{} `type:"structure"` } @@ -13136,7 +18864,7 @@ type UpdateDestinationOutput 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 UpdateDestinationOutput) String() string { +func (s UpdateFuotaTaskOutput) String() string { return awsutil.Prettify(s) } @@ -13145,7 +18873,7 @@ func (s UpdateDestinationOutput) 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 UpdateDestinationOutput) GoString() string { +func (s UpdateFuotaTaskOutput) GoString() string { return s.String() } @@ -13250,6 +18978,104 @@ func (s UpdateLogLevelsByResourceTypesOutput) GoString() string { return s.String() } +type UpdateMulticastGroupInput struct { + _ struct{} `type:"structure"` + + // The description of the new resource. + Description *string `type:"string"` + + // The ID of the multicast group. + // + // Id is a required field + Id *string `location:"uri" locationName:"Id" type:"string" required:"true"` + + // The LoRaWAN information that is to be used with the multicast group. + LoRaWAN *LoRaWANMulticast `type:"structure"` + + // The name of the multicast group. + Name *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 UpdateMulticastGroupInput) 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 UpdateMulticastGroupInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateMulticastGroupInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateMulticastGroupInput"} + 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 +} + +// SetDescription sets the Description field's value. +func (s *UpdateMulticastGroupInput) SetDescription(v string) *UpdateMulticastGroupInput { + s.Description = &v + return s +} + +// SetId sets the Id field's value. +func (s *UpdateMulticastGroupInput) SetId(v string) *UpdateMulticastGroupInput { + s.Id = &v + return s +} + +// SetLoRaWAN sets the LoRaWAN field's value. +func (s *UpdateMulticastGroupInput) SetLoRaWAN(v *LoRaWANMulticast) *UpdateMulticastGroupInput { + s.LoRaWAN = v + return s +} + +// SetName sets the Name field's value. +func (s *UpdateMulticastGroupInput) SetName(v string) *UpdateMulticastGroupInput { + s.Name = &v + return s +} + +type UpdateMulticastGroupOutput 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 UpdateMulticastGroupOutput) 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 UpdateMulticastGroupOutput) GoString() string { + return s.String() +} + type UpdatePartnerAccountInput struct { _ struct{} `type:"structure"` @@ -13354,6 +19180,118 @@ func (s UpdatePartnerAccountOutput) GoString() string { return s.String() } +type UpdateResourceEventConfigurationInput struct { + _ struct{} `type:"structure"` + + // Event configuration for the device registration state event + DeviceRegistrationState *DeviceRegistrationStateEventConfiguration `type:"structure"` + + // Resource identifier to opt in for event messaging. + // + // Identifier is a required field + Identifier *string `location:"uri" locationName:"Identifier" type:"string" required:"true"` + + // Identifier type of the particular resource identifier for event configuration. + // + // IdentifierType is a required field + IdentifierType *string `location:"querystring" locationName:"identifierType" type:"string" required:"true" enum:"IdentifierType"` + + // Partner type of the resource if the identifier type is PartnerAccountId + PartnerType *string `location:"querystring" locationName:"partnerType" type:"string" enum:"EventNotificationPartnerType"` + + // Event configuration for the Proximity event + Proximity *ProximityEventConfiguration `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 UpdateResourceEventConfigurationInput) 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 UpdateResourceEventConfigurationInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateResourceEventConfigurationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateResourceEventConfigurationInput"} + if s.Identifier == nil { + invalidParams.Add(request.NewErrParamRequired("Identifier")) + } + if s.Identifier != nil && len(*s.Identifier) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Identifier", 1)) + } + if s.IdentifierType == nil { + invalidParams.Add(request.NewErrParamRequired("IdentifierType")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDeviceRegistrationState sets the DeviceRegistrationState field's value. +func (s *UpdateResourceEventConfigurationInput) SetDeviceRegistrationState(v *DeviceRegistrationStateEventConfiguration) *UpdateResourceEventConfigurationInput { + s.DeviceRegistrationState = v + return s +} + +// SetIdentifier sets the Identifier field's value. +func (s *UpdateResourceEventConfigurationInput) SetIdentifier(v string) *UpdateResourceEventConfigurationInput { + s.Identifier = &v + return s +} + +// SetIdentifierType sets the IdentifierType field's value. +func (s *UpdateResourceEventConfigurationInput) SetIdentifierType(v string) *UpdateResourceEventConfigurationInput { + s.IdentifierType = &v + return s +} + +// SetPartnerType sets the PartnerType field's value. +func (s *UpdateResourceEventConfigurationInput) SetPartnerType(v string) *UpdateResourceEventConfigurationInput { + s.PartnerType = &v + return s +} + +// SetProximity sets the Proximity field's value. +func (s *UpdateResourceEventConfigurationInput) SetProximity(v *ProximityEventConfiguration) *UpdateResourceEventConfigurationInput { + s.Proximity = v + return s +} + +type UpdateResourceEventConfigurationOutput 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 UpdateResourceEventConfigurationOutput) 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 UpdateResourceEventConfigurationOutput) GoString() string { + return s.String() +} + type UpdateWirelessDeviceInput struct { _ struct{} `type:"structure"` @@ -13911,6 +19849,9 @@ type WirelessDeviceStatistics struct { // The name of the destination to which the device is assigned. DestinationName *string `type:"string"` + // The status of a wireless device in a FUOTA task. + FuotaDeviceStatus *string `type:"string" enum:"FuotaDeviceStatus"` + // The ID of the wireless device reporting the data. Id *string `type:"string"` @@ -13920,6 +19861,12 @@ type WirelessDeviceStatistics struct { // LoRaWAN device info. LoRaWAN *LoRaWANListDevice `type:"structure"` + // Id of the multicast group. + McGroupId *int64 `min:"1" type:"integer"` + + // The status of the wireless device in the multicast group. + MulticastDeviceStatus *string `type:"string"` + // The name of the resource. Name *string `type:"string"` @@ -13960,6 +19907,12 @@ func (s *WirelessDeviceStatistics) SetDestinationName(v string) *WirelessDeviceS return s } +// SetFuotaDeviceStatus sets the FuotaDeviceStatus field's value. +func (s *WirelessDeviceStatistics) SetFuotaDeviceStatus(v string) *WirelessDeviceStatistics { + s.FuotaDeviceStatus = &v + return s +} + // SetId sets the Id field's value. func (s *WirelessDeviceStatistics) SetId(v string) *WirelessDeviceStatistics { s.Id = &v @@ -13978,6 +19931,18 @@ func (s *WirelessDeviceStatistics) SetLoRaWAN(v *LoRaWANListDevice) *WirelessDev return s } +// SetMcGroupId sets the McGroupId field's value. +func (s *WirelessDeviceStatistics) SetMcGroupId(v int64) *WirelessDeviceStatistics { + s.McGroupId = &v + return s +} + +// SetMulticastDeviceStatus sets the MulticastDeviceStatus field's value. +func (s *WirelessDeviceStatistics) SetMulticastDeviceStatus(v string) *WirelessDeviceStatistics { + s.MulticastDeviceStatus = &v + return s +} + // SetName sets the Name field's value. func (s *WirelessDeviceStatistics) SetName(v string) *WirelessDeviceStatistics { s.Name = &v @@ -14337,6 +20302,23 @@ func DeviceState_Values() []string { } } +// DlClass for LoRaWAM, valid values are ClassB and ClassC. +const ( + // DlClassClassB is a DlClass enum value + DlClassClassB = "ClassB" + + // DlClassClassC is a DlClass enum value + DlClassClassC = "ClassC" +) + +// DlClass_Values returns all elements of the DlClass enum +func DlClass_Values() []string { + return []string{ + DlClassClassB, + DlClassClassC, + } +} + // Sidewalk device status notification. const ( // EventDiscovered is a Event enum value @@ -14366,6 +20348,34 @@ func Event_Values() []string { } } +const ( + // EventNotificationPartnerTypeSidewalk is a EventNotificationPartnerType enum value + EventNotificationPartnerTypeSidewalk = "Sidewalk" +) + +// EventNotificationPartnerType_Values returns all elements of the EventNotificationPartnerType enum +func EventNotificationPartnerType_Values() []string { + return []string{ + EventNotificationPartnerTypeSidewalk, + } +} + +const ( + // EventNotificationTopicStatusEnabled is a EventNotificationTopicStatus enum value + EventNotificationTopicStatusEnabled = "Enabled" + + // EventNotificationTopicStatusDisabled is a EventNotificationTopicStatus enum value + EventNotificationTopicStatusDisabled = "Disabled" +) + +// EventNotificationTopicStatus_Values returns all elements of the EventNotificationTopicStatus enum +func EventNotificationTopicStatus_Values() []string { + return []string{ + EventNotificationTopicStatusEnabled, + EventNotificationTopicStatusDisabled, + } +} + const ( // ExpressionTypeRuleName is a ExpressionType enum value ExpressionTypeRuleName = "RuleName" @@ -14382,6 +20392,100 @@ func ExpressionType_Values() []string { } } +// The status of a wireless device in a FUOTA task. +const ( + // FuotaDeviceStatusInitial is a FuotaDeviceStatus enum value + FuotaDeviceStatusInitial = "Initial" + + // FuotaDeviceStatusPackageNotSupported is a FuotaDeviceStatus enum value + FuotaDeviceStatusPackageNotSupported = "Package_Not_Supported" + + // FuotaDeviceStatusFragAlgoUnsupported is a FuotaDeviceStatus enum value + FuotaDeviceStatusFragAlgoUnsupported = "FragAlgo_unsupported" + + // FuotaDeviceStatusNotEnoughMemory is a FuotaDeviceStatus enum value + FuotaDeviceStatusNotEnoughMemory = "Not_enough_memory" + + // FuotaDeviceStatusFragIndexUnsupported is a FuotaDeviceStatus enum value + FuotaDeviceStatusFragIndexUnsupported = "FragIndex_unsupported" + + // FuotaDeviceStatusWrongDescriptor is a FuotaDeviceStatus enum value + FuotaDeviceStatusWrongDescriptor = "Wrong_descriptor" + + // FuotaDeviceStatusSessionCntReplay is a FuotaDeviceStatus enum value + FuotaDeviceStatusSessionCntReplay = "SessionCnt_replay" + + // FuotaDeviceStatusMissingFrag is a FuotaDeviceStatus enum value + FuotaDeviceStatusMissingFrag = "MissingFrag" + + // FuotaDeviceStatusMemoryError is a FuotaDeviceStatus enum value + FuotaDeviceStatusMemoryError = "MemoryError" + + // FuotaDeviceStatusMicerror is a FuotaDeviceStatus enum value + FuotaDeviceStatusMicerror = "MICError" + + // FuotaDeviceStatusSuccessful is a FuotaDeviceStatus enum value + FuotaDeviceStatusSuccessful = "Successful" +) + +// FuotaDeviceStatus_Values returns all elements of the FuotaDeviceStatus enum +func FuotaDeviceStatus_Values() []string { + return []string{ + FuotaDeviceStatusInitial, + FuotaDeviceStatusPackageNotSupported, + FuotaDeviceStatusFragAlgoUnsupported, + FuotaDeviceStatusNotEnoughMemory, + FuotaDeviceStatusFragIndexUnsupported, + FuotaDeviceStatusWrongDescriptor, + FuotaDeviceStatusSessionCntReplay, + FuotaDeviceStatusMissingFrag, + FuotaDeviceStatusMemoryError, + FuotaDeviceStatusMicerror, + FuotaDeviceStatusSuccessful, + } +} + +// The status of a FUOTA task. +const ( + // FuotaTaskStatusPending is a FuotaTaskStatus enum value + FuotaTaskStatusPending = "Pending" + + // FuotaTaskStatusFuotaSessionWaiting is a FuotaTaskStatus enum value + FuotaTaskStatusFuotaSessionWaiting = "FuotaSession_Waiting" + + // FuotaTaskStatusInFuotaSession is a FuotaTaskStatus enum value + FuotaTaskStatusInFuotaSession = "In_FuotaSession" + + // FuotaTaskStatusFuotaDone is a FuotaTaskStatus enum value + FuotaTaskStatusFuotaDone = "FuotaDone" + + // FuotaTaskStatusDeleteWaiting is a FuotaTaskStatus enum value + FuotaTaskStatusDeleteWaiting = "Delete_Waiting" +) + +// FuotaTaskStatus_Values returns all elements of the FuotaTaskStatus enum +func FuotaTaskStatus_Values() []string { + return []string{ + FuotaTaskStatusPending, + FuotaTaskStatusFuotaSessionWaiting, + FuotaTaskStatusInFuotaSession, + FuotaTaskStatusFuotaDone, + FuotaTaskStatusDeleteWaiting, + } +} + +const ( + // IdentifierTypePartnerAccountId is a IdentifierType enum value + IdentifierTypePartnerAccountId = "PartnerAccountId" +) + +// IdentifierType_Values returns all elements of the IdentifierType enum +func IdentifierType_Values() []string { + return []string{ + IdentifierTypePartnerAccountId, + } +} + // The log level for a log message. const ( // LogLevelInfo is a LogLevel enum value @@ -14457,6 +20561,31 @@ func SigningAlg_Values() []string { } } +// Supported RfRegions +const ( + // SupportedRfRegionEu868 is a SupportedRfRegion enum value + SupportedRfRegionEu868 = "EU868" + + // SupportedRfRegionUs915 is a SupportedRfRegion enum value + SupportedRfRegionUs915 = "US915" + + // SupportedRfRegionAu915 is a SupportedRfRegion enum value + SupportedRfRegionAu915 = "AU915" + + // SupportedRfRegionAs9231 is a SupportedRfRegion enum value + SupportedRfRegionAs9231 = "AS923-1" +) + +// SupportedRfRegion_Values returns all elements of the SupportedRfRegion enum +func SupportedRfRegion_Values() []string { + return []string{ + SupportedRfRegionEu868, + SupportedRfRegionUs915, + SupportedRfRegionAu915, + SupportedRfRegionAs9231, + } +} + // The event for a log message, if the log message is tied to a wireless device. const ( // WirelessDeviceEventJoin is a WirelessDeviceEvent enum value diff --git a/service/iotwireless/iotwirelessiface/interface.go b/service/iotwireless/iotwirelessiface/interface.go index 8ec682202c1..b5620219251 100644 --- a/service/iotwireless/iotwirelessiface/interface.go +++ b/service/iotwireless/iotwirelessiface/interface.go @@ -64,6 +64,18 @@ type IoTWirelessAPI interface { AssociateAwsAccountWithPartnerAccountWithContext(aws.Context, *iotwireless.AssociateAwsAccountWithPartnerAccountInput, ...request.Option) (*iotwireless.AssociateAwsAccountWithPartnerAccountOutput, error) AssociateAwsAccountWithPartnerAccountRequest(*iotwireless.AssociateAwsAccountWithPartnerAccountInput) (*request.Request, *iotwireless.AssociateAwsAccountWithPartnerAccountOutput) + AssociateMulticastGroupWithFuotaTask(*iotwireless.AssociateMulticastGroupWithFuotaTaskInput) (*iotwireless.AssociateMulticastGroupWithFuotaTaskOutput, error) + AssociateMulticastGroupWithFuotaTaskWithContext(aws.Context, *iotwireless.AssociateMulticastGroupWithFuotaTaskInput, ...request.Option) (*iotwireless.AssociateMulticastGroupWithFuotaTaskOutput, error) + AssociateMulticastGroupWithFuotaTaskRequest(*iotwireless.AssociateMulticastGroupWithFuotaTaskInput) (*request.Request, *iotwireless.AssociateMulticastGroupWithFuotaTaskOutput) + + AssociateWirelessDeviceWithFuotaTask(*iotwireless.AssociateWirelessDeviceWithFuotaTaskInput) (*iotwireless.AssociateWirelessDeviceWithFuotaTaskOutput, error) + AssociateWirelessDeviceWithFuotaTaskWithContext(aws.Context, *iotwireless.AssociateWirelessDeviceWithFuotaTaskInput, ...request.Option) (*iotwireless.AssociateWirelessDeviceWithFuotaTaskOutput, error) + AssociateWirelessDeviceWithFuotaTaskRequest(*iotwireless.AssociateWirelessDeviceWithFuotaTaskInput) (*request.Request, *iotwireless.AssociateWirelessDeviceWithFuotaTaskOutput) + + AssociateWirelessDeviceWithMulticastGroup(*iotwireless.AssociateWirelessDeviceWithMulticastGroupInput) (*iotwireless.AssociateWirelessDeviceWithMulticastGroupOutput, error) + AssociateWirelessDeviceWithMulticastGroupWithContext(aws.Context, *iotwireless.AssociateWirelessDeviceWithMulticastGroupInput, ...request.Option) (*iotwireless.AssociateWirelessDeviceWithMulticastGroupOutput, error) + AssociateWirelessDeviceWithMulticastGroupRequest(*iotwireless.AssociateWirelessDeviceWithMulticastGroupInput) (*request.Request, *iotwireless.AssociateWirelessDeviceWithMulticastGroupOutput) + AssociateWirelessDeviceWithThing(*iotwireless.AssociateWirelessDeviceWithThingInput) (*iotwireless.AssociateWirelessDeviceWithThingOutput, error) AssociateWirelessDeviceWithThingWithContext(aws.Context, *iotwireless.AssociateWirelessDeviceWithThingInput, ...request.Option) (*iotwireless.AssociateWirelessDeviceWithThingOutput, error) AssociateWirelessDeviceWithThingRequest(*iotwireless.AssociateWirelessDeviceWithThingInput) (*request.Request, *iotwireless.AssociateWirelessDeviceWithThingOutput) @@ -76,6 +88,10 @@ type IoTWirelessAPI interface { AssociateWirelessGatewayWithThingWithContext(aws.Context, *iotwireless.AssociateWirelessGatewayWithThingInput, ...request.Option) (*iotwireless.AssociateWirelessGatewayWithThingOutput, error) AssociateWirelessGatewayWithThingRequest(*iotwireless.AssociateWirelessGatewayWithThingInput) (*request.Request, *iotwireless.AssociateWirelessGatewayWithThingOutput) + CancelMulticastGroupSession(*iotwireless.CancelMulticastGroupSessionInput) (*iotwireless.CancelMulticastGroupSessionOutput, error) + CancelMulticastGroupSessionWithContext(aws.Context, *iotwireless.CancelMulticastGroupSessionInput, ...request.Option) (*iotwireless.CancelMulticastGroupSessionOutput, error) + CancelMulticastGroupSessionRequest(*iotwireless.CancelMulticastGroupSessionInput) (*request.Request, *iotwireless.CancelMulticastGroupSessionOutput) + CreateDestination(*iotwireless.CreateDestinationInput) (*iotwireless.CreateDestinationOutput, error) CreateDestinationWithContext(aws.Context, *iotwireless.CreateDestinationInput, ...request.Option) (*iotwireless.CreateDestinationOutput, error) CreateDestinationRequest(*iotwireless.CreateDestinationInput) (*request.Request, *iotwireless.CreateDestinationOutput) @@ -84,6 +100,14 @@ type IoTWirelessAPI interface { CreateDeviceProfileWithContext(aws.Context, *iotwireless.CreateDeviceProfileInput, ...request.Option) (*iotwireless.CreateDeviceProfileOutput, error) CreateDeviceProfileRequest(*iotwireless.CreateDeviceProfileInput) (*request.Request, *iotwireless.CreateDeviceProfileOutput) + CreateFuotaTask(*iotwireless.CreateFuotaTaskInput) (*iotwireless.CreateFuotaTaskOutput, error) + CreateFuotaTaskWithContext(aws.Context, *iotwireless.CreateFuotaTaskInput, ...request.Option) (*iotwireless.CreateFuotaTaskOutput, error) + CreateFuotaTaskRequest(*iotwireless.CreateFuotaTaskInput) (*request.Request, *iotwireless.CreateFuotaTaskOutput) + + CreateMulticastGroup(*iotwireless.CreateMulticastGroupInput) (*iotwireless.CreateMulticastGroupOutput, error) + CreateMulticastGroupWithContext(aws.Context, *iotwireless.CreateMulticastGroupInput, ...request.Option) (*iotwireless.CreateMulticastGroupOutput, error) + CreateMulticastGroupRequest(*iotwireless.CreateMulticastGroupInput) (*request.Request, *iotwireless.CreateMulticastGroupOutput) + CreateServiceProfile(*iotwireless.CreateServiceProfileInput) (*iotwireless.CreateServiceProfileOutput, error) CreateServiceProfileWithContext(aws.Context, *iotwireless.CreateServiceProfileInput, ...request.Option) (*iotwireless.CreateServiceProfileOutput, error) CreateServiceProfileRequest(*iotwireless.CreateServiceProfileInput) (*request.Request, *iotwireless.CreateServiceProfileOutput) @@ -112,6 +136,14 @@ type IoTWirelessAPI interface { DeleteDeviceProfileWithContext(aws.Context, *iotwireless.DeleteDeviceProfileInput, ...request.Option) (*iotwireless.DeleteDeviceProfileOutput, error) DeleteDeviceProfileRequest(*iotwireless.DeleteDeviceProfileInput) (*request.Request, *iotwireless.DeleteDeviceProfileOutput) + DeleteFuotaTask(*iotwireless.DeleteFuotaTaskInput) (*iotwireless.DeleteFuotaTaskOutput, error) + DeleteFuotaTaskWithContext(aws.Context, *iotwireless.DeleteFuotaTaskInput, ...request.Option) (*iotwireless.DeleteFuotaTaskOutput, error) + DeleteFuotaTaskRequest(*iotwireless.DeleteFuotaTaskInput) (*request.Request, *iotwireless.DeleteFuotaTaskOutput) + + DeleteMulticastGroup(*iotwireless.DeleteMulticastGroupInput) (*iotwireless.DeleteMulticastGroupOutput, error) + DeleteMulticastGroupWithContext(aws.Context, *iotwireless.DeleteMulticastGroupInput, ...request.Option) (*iotwireless.DeleteMulticastGroupOutput, error) + DeleteMulticastGroupRequest(*iotwireless.DeleteMulticastGroupInput) (*request.Request, *iotwireless.DeleteMulticastGroupOutput) + DeleteServiceProfile(*iotwireless.DeleteServiceProfileInput) (*iotwireless.DeleteServiceProfileOutput, error) DeleteServiceProfileWithContext(aws.Context, *iotwireless.DeleteServiceProfileInput, ...request.Option) (*iotwireless.DeleteServiceProfileOutput, error) DeleteServiceProfileRequest(*iotwireless.DeleteServiceProfileInput) (*request.Request, *iotwireless.DeleteServiceProfileOutput) @@ -136,6 +168,18 @@ type IoTWirelessAPI interface { DisassociateAwsAccountFromPartnerAccountWithContext(aws.Context, *iotwireless.DisassociateAwsAccountFromPartnerAccountInput, ...request.Option) (*iotwireless.DisassociateAwsAccountFromPartnerAccountOutput, error) DisassociateAwsAccountFromPartnerAccountRequest(*iotwireless.DisassociateAwsAccountFromPartnerAccountInput) (*request.Request, *iotwireless.DisassociateAwsAccountFromPartnerAccountOutput) + DisassociateMulticastGroupFromFuotaTask(*iotwireless.DisassociateMulticastGroupFromFuotaTaskInput) (*iotwireless.DisassociateMulticastGroupFromFuotaTaskOutput, error) + DisassociateMulticastGroupFromFuotaTaskWithContext(aws.Context, *iotwireless.DisassociateMulticastGroupFromFuotaTaskInput, ...request.Option) (*iotwireless.DisassociateMulticastGroupFromFuotaTaskOutput, error) + DisassociateMulticastGroupFromFuotaTaskRequest(*iotwireless.DisassociateMulticastGroupFromFuotaTaskInput) (*request.Request, *iotwireless.DisassociateMulticastGroupFromFuotaTaskOutput) + + DisassociateWirelessDeviceFromFuotaTask(*iotwireless.DisassociateWirelessDeviceFromFuotaTaskInput) (*iotwireless.DisassociateWirelessDeviceFromFuotaTaskOutput, error) + DisassociateWirelessDeviceFromFuotaTaskWithContext(aws.Context, *iotwireless.DisassociateWirelessDeviceFromFuotaTaskInput, ...request.Option) (*iotwireless.DisassociateWirelessDeviceFromFuotaTaskOutput, error) + DisassociateWirelessDeviceFromFuotaTaskRequest(*iotwireless.DisassociateWirelessDeviceFromFuotaTaskInput) (*request.Request, *iotwireless.DisassociateWirelessDeviceFromFuotaTaskOutput) + + DisassociateWirelessDeviceFromMulticastGroup(*iotwireless.DisassociateWirelessDeviceFromMulticastGroupInput) (*iotwireless.DisassociateWirelessDeviceFromMulticastGroupOutput, error) + DisassociateWirelessDeviceFromMulticastGroupWithContext(aws.Context, *iotwireless.DisassociateWirelessDeviceFromMulticastGroupInput, ...request.Option) (*iotwireless.DisassociateWirelessDeviceFromMulticastGroupOutput, error) + DisassociateWirelessDeviceFromMulticastGroupRequest(*iotwireless.DisassociateWirelessDeviceFromMulticastGroupInput) (*request.Request, *iotwireless.DisassociateWirelessDeviceFromMulticastGroupOutput) + DisassociateWirelessDeviceFromThing(*iotwireless.DisassociateWirelessDeviceFromThingInput) (*iotwireless.DisassociateWirelessDeviceFromThingOutput, error) DisassociateWirelessDeviceFromThingWithContext(aws.Context, *iotwireless.DisassociateWirelessDeviceFromThingInput, ...request.Option) (*iotwireless.DisassociateWirelessDeviceFromThingOutput, error) DisassociateWirelessDeviceFromThingRequest(*iotwireless.DisassociateWirelessDeviceFromThingInput) (*request.Request, *iotwireless.DisassociateWirelessDeviceFromThingOutput) @@ -156,14 +200,30 @@ type IoTWirelessAPI interface { GetDeviceProfileWithContext(aws.Context, *iotwireless.GetDeviceProfileInput, ...request.Option) (*iotwireless.GetDeviceProfileOutput, error) GetDeviceProfileRequest(*iotwireless.GetDeviceProfileInput) (*request.Request, *iotwireless.GetDeviceProfileOutput) + GetFuotaTask(*iotwireless.GetFuotaTaskInput) (*iotwireless.GetFuotaTaskOutput, error) + GetFuotaTaskWithContext(aws.Context, *iotwireless.GetFuotaTaskInput, ...request.Option) (*iotwireless.GetFuotaTaskOutput, error) + GetFuotaTaskRequest(*iotwireless.GetFuotaTaskInput) (*request.Request, *iotwireless.GetFuotaTaskOutput) + GetLogLevelsByResourceTypes(*iotwireless.GetLogLevelsByResourceTypesInput) (*iotwireless.GetLogLevelsByResourceTypesOutput, error) GetLogLevelsByResourceTypesWithContext(aws.Context, *iotwireless.GetLogLevelsByResourceTypesInput, ...request.Option) (*iotwireless.GetLogLevelsByResourceTypesOutput, error) GetLogLevelsByResourceTypesRequest(*iotwireless.GetLogLevelsByResourceTypesInput) (*request.Request, *iotwireless.GetLogLevelsByResourceTypesOutput) + GetMulticastGroup(*iotwireless.GetMulticastGroupInput) (*iotwireless.GetMulticastGroupOutput, error) + GetMulticastGroupWithContext(aws.Context, *iotwireless.GetMulticastGroupInput, ...request.Option) (*iotwireless.GetMulticastGroupOutput, error) + GetMulticastGroupRequest(*iotwireless.GetMulticastGroupInput) (*request.Request, *iotwireless.GetMulticastGroupOutput) + + GetMulticastGroupSession(*iotwireless.GetMulticastGroupSessionInput) (*iotwireless.GetMulticastGroupSessionOutput, error) + GetMulticastGroupSessionWithContext(aws.Context, *iotwireless.GetMulticastGroupSessionInput, ...request.Option) (*iotwireless.GetMulticastGroupSessionOutput, error) + GetMulticastGroupSessionRequest(*iotwireless.GetMulticastGroupSessionInput) (*request.Request, *iotwireless.GetMulticastGroupSessionOutput) + GetPartnerAccount(*iotwireless.GetPartnerAccountInput) (*iotwireless.GetPartnerAccountOutput, error) GetPartnerAccountWithContext(aws.Context, *iotwireless.GetPartnerAccountInput, ...request.Option) (*iotwireless.GetPartnerAccountOutput, error) GetPartnerAccountRequest(*iotwireless.GetPartnerAccountInput) (*request.Request, *iotwireless.GetPartnerAccountOutput) + GetResourceEventConfiguration(*iotwireless.GetResourceEventConfigurationInput) (*iotwireless.GetResourceEventConfigurationOutput, error) + GetResourceEventConfigurationWithContext(aws.Context, *iotwireless.GetResourceEventConfigurationInput, ...request.Option) (*iotwireless.GetResourceEventConfigurationOutput, error) + GetResourceEventConfigurationRequest(*iotwireless.GetResourceEventConfigurationInput) (*request.Request, *iotwireless.GetResourceEventConfigurationOutput) + GetResourceLogLevel(*iotwireless.GetResourceLogLevelInput) (*iotwireless.GetResourceLogLevelOutput, error) GetResourceLogLevelWithContext(aws.Context, *iotwireless.GetResourceLogLevelInput, ...request.Option) (*iotwireless.GetResourceLogLevelOutput, error) GetResourceLogLevelRequest(*iotwireless.GetResourceLogLevelInput) (*request.Request, *iotwireless.GetResourceLogLevelOutput) @@ -222,6 +282,27 @@ type IoTWirelessAPI interface { ListDeviceProfilesPages(*iotwireless.ListDeviceProfilesInput, func(*iotwireless.ListDeviceProfilesOutput, bool) bool) error ListDeviceProfilesPagesWithContext(aws.Context, *iotwireless.ListDeviceProfilesInput, func(*iotwireless.ListDeviceProfilesOutput, bool) bool, ...request.Option) error + ListFuotaTasks(*iotwireless.ListFuotaTasksInput) (*iotwireless.ListFuotaTasksOutput, error) + ListFuotaTasksWithContext(aws.Context, *iotwireless.ListFuotaTasksInput, ...request.Option) (*iotwireless.ListFuotaTasksOutput, error) + ListFuotaTasksRequest(*iotwireless.ListFuotaTasksInput) (*request.Request, *iotwireless.ListFuotaTasksOutput) + + ListFuotaTasksPages(*iotwireless.ListFuotaTasksInput, func(*iotwireless.ListFuotaTasksOutput, bool) bool) error + ListFuotaTasksPagesWithContext(aws.Context, *iotwireless.ListFuotaTasksInput, func(*iotwireless.ListFuotaTasksOutput, bool) bool, ...request.Option) error + + ListMulticastGroups(*iotwireless.ListMulticastGroupsInput) (*iotwireless.ListMulticastGroupsOutput, error) + ListMulticastGroupsWithContext(aws.Context, *iotwireless.ListMulticastGroupsInput, ...request.Option) (*iotwireless.ListMulticastGroupsOutput, error) + ListMulticastGroupsRequest(*iotwireless.ListMulticastGroupsInput) (*request.Request, *iotwireless.ListMulticastGroupsOutput) + + ListMulticastGroupsPages(*iotwireless.ListMulticastGroupsInput, func(*iotwireless.ListMulticastGroupsOutput, bool) bool) error + ListMulticastGroupsPagesWithContext(aws.Context, *iotwireless.ListMulticastGroupsInput, func(*iotwireless.ListMulticastGroupsOutput, bool) bool, ...request.Option) error + + ListMulticastGroupsByFuotaTask(*iotwireless.ListMulticastGroupsByFuotaTaskInput) (*iotwireless.ListMulticastGroupsByFuotaTaskOutput, error) + ListMulticastGroupsByFuotaTaskWithContext(aws.Context, *iotwireless.ListMulticastGroupsByFuotaTaskInput, ...request.Option) (*iotwireless.ListMulticastGroupsByFuotaTaskOutput, error) + ListMulticastGroupsByFuotaTaskRequest(*iotwireless.ListMulticastGroupsByFuotaTaskInput) (*request.Request, *iotwireless.ListMulticastGroupsByFuotaTaskOutput) + + ListMulticastGroupsByFuotaTaskPages(*iotwireless.ListMulticastGroupsByFuotaTaskInput, func(*iotwireless.ListMulticastGroupsByFuotaTaskOutput, bool) bool) error + ListMulticastGroupsByFuotaTaskPagesWithContext(aws.Context, *iotwireless.ListMulticastGroupsByFuotaTaskInput, func(*iotwireless.ListMulticastGroupsByFuotaTaskOutput, bool) bool, ...request.Option) error + ListPartnerAccounts(*iotwireless.ListPartnerAccountsInput) (*iotwireless.ListPartnerAccountsOutput, error) ListPartnerAccountsWithContext(aws.Context, *iotwireless.ListPartnerAccountsInput, ...request.Option) (*iotwireless.ListPartnerAccountsOutput, error) ListPartnerAccountsRequest(*iotwireless.ListPartnerAccountsInput) (*request.Request, *iotwireless.ListPartnerAccountsOutput) @@ -267,10 +348,30 @@ type IoTWirelessAPI interface { ResetResourceLogLevelWithContext(aws.Context, *iotwireless.ResetResourceLogLevelInput, ...request.Option) (*iotwireless.ResetResourceLogLevelOutput, error) ResetResourceLogLevelRequest(*iotwireless.ResetResourceLogLevelInput) (*request.Request, *iotwireless.ResetResourceLogLevelOutput) + SendDataToMulticastGroup(*iotwireless.SendDataToMulticastGroupInput) (*iotwireless.SendDataToMulticastGroupOutput, error) + SendDataToMulticastGroupWithContext(aws.Context, *iotwireless.SendDataToMulticastGroupInput, ...request.Option) (*iotwireless.SendDataToMulticastGroupOutput, error) + SendDataToMulticastGroupRequest(*iotwireless.SendDataToMulticastGroupInput) (*request.Request, *iotwireless.SendDataToMulticastGroupOutput) + SendDataToWirelessDevice(*iotwireless.SendDataToWirelessDeviceInput) (*iotwireless.SendDataToWirelessDeviceOutput, error) SendDataToWirelessDeviceWithContext(aws.Context, *iotwireless.SendDataToWirelessDeviceInput, ...request.Option) (*iotwireless.SendDataToWirelessDeviceOutput, error) SendDataToWirelessDeviceRequest(*iotwireless.SendDataToWirelessDeviceInput) (*request.Request, *iotwireless.SendDataToWirelessDeviceOutput) + StartBulkAssociateWirelessDeviceWithMulticastGroup(*iotwireless.StartBulkAssociateWirelessDeviceWithMulticastGroupInput) (*iotwireless.StartBulkAssociateWirelessDeviceWithMulticastGroupOutput, error) + StartBulkAssociateWirelessDeviceWithMulticastGroupWithContext(aws.Context, *iotwireless.StartBulkAssociateWirelessDeviceWithMulticastGroupInput, ...request.Option) (*iotwireless.StartBulkAssociateWirelessDeviceWithMulticastGroupOutput, error) + StartBulkAssociateWirelessDeviceWithMulticastGroupRequest(*iotwireless.StartBulkAssociateWirelessDeviceWithMulticastGroupInput) (*request.Request, *iotwireless.StartBulkAssociateWirelessDeviceWithMulticastGroupOutput) + + StartBulkDisassociateWirelessDeviceFromMulticastGroup(*iotwireless.StartBulkDisassociateWirelessDeviceFromMulticastGroupInput) (*iotwireless.StartBulkDisassociateWirelessDeviceFromMulticastGroupOutput, error) + StartBulkDisassociateWirelessDeviceFromMulticastGroupWithContext(aws.Context, *iotwireless.StartBulkDisassociateWirelessDeviceFromMulticastGroupInput, ...request.Option) (*iotwireless.StartBulkDisassociateWirelessDeviceFromMulticastGroupOutput, error) + StartBulkDisassociateWirelessDeviceFromMulticastGroupRequest(*iotwireless.StartBulkDisassociateWirelessDeviceFromMulticastGroupInput) (*request.Request, *iotwireless.StartBulkDisassociateWirelessDeviceFromMulticastGroupOutput) + + StartFuotaTask(*iotwireless.StartFuotaTaskInput) (*iotwireless.StartFuotaTaskOutput, error) + StartFuotaTaskWithContext(aws.Context, *iotwireless.StartFuotaTaskInput, ...request.Option) (*iotwireless.StartFuotaTaskOutput, error) + StartFuotaTaskRequest(*iotwireless.StartFuotaTaskInput) (*request.Request, *iotwireless.StartFuotaTaskOutput) + + StartMulticastGroupSession(*iotwireless.StartMulticastGroupSessionInput) (*iotwireless.StartMulticastGroupSessionOutput, error) + StartMulticastGroupSessionWithContext(aws.Context, *iotwireless.StartMulticastGroupSessionInput, ...request.Option) (*iotwireless.StartMulticastGroupSessionOutput, error) + StartMulticastGroupSessionRequest(*iotwireless.StartMulticastGroupSessionInput) (*request.Request, *iotwireless.StartMulticastGroupSessionOutput) + TagResource(*iotwireless.TagResourceInput) (*iotwireless.TagResourceOutput, error) TagResourceWithContext(aws.Context, *iotwireless.TagResourceInput, ...request.Option) (*iotwireless.TagResourceOutput, error) TagResourceRequest(*iotwireless.TagResourceInput) (*request.Request, *iotwireless.TagResourceOutput) @@ -287,14 +388,26 @@ type IoTWirelessAPI interface { UpdateDestinationWithContext(aws.Context, *iotwireless.UpdateDestinationInput, ...request.Option) (*iotwireless.UpdateDestinationOutput, error) UpdateDestinationRequest(*iotwireless.UpdateDestinationInput) (*request.Request, *iotwireless.UpdateDestinationOutput) + UpdateFuotaTask(*iotwireless.UpdateFuotaTaskInput) (*iotwireless.UpdateFuotaTaskOutput, error) + UpdateFuotaTaskWithContext(aws.Context, *iotwireless.UpdateFuotaTaskInput, ...request.Option) (*iotwireless.UpdateFuotaTaskOutput, error) + UpdateFuotaTaskRequest(*iotwireless.UpdateFuotaTaskInput) (*request.Request, *iotwireless.UpdateFuotaTaskOutput) + UpdateLogLevelsByResourceTypes(*iotwireless.UpdateLogLevelsByResourceTypesInput) (*iotwireless.UpdateLogLevelsByResourceTypesOutput, error) UpdateLogLevelsByResourceTypesWithContext(aws.Context, *iotwireless.UpdateLogLevelsByResourceTypesInput, ...request.Option) (*iotwireless.UpdateLogLevelsByResourceTypesOutput, error) UpdateLogLevelsByResourceTypesRequest(*iotwireless.UpdateLogLevelsByResourceTypesInput) (*request.Request, *iotwireless.UpdateLogLevelsByResourceTypesOutput) + UpdateMulticastGroup(*iotwireless.UpdateMulticastGroupInput) (*iotwireless.UpdateMulticastGroupOutput, error) + UpdateMulticastGroupWithContext(aws.Context, *iotwireless.UpdateMulticastGroupInput, ...request.Option) (*iotwireless.UpdateMulticastGroupOutput, error) + UpdateMulticastGroupRequest(*iotwireless.UpdateMulticastGroupInput) (*request.Request, *iotwireless.UpdateMulticastGroupOutput) + UpdatePartnerAccount(*iotwireless.UpdatePartnerAccountInput) (*iotwireless.UpdatePartnerAccountOutput, error) UpdatePartnerAccountWithContext(aws.Context, *iotwireless.UpdatePartnerAccountInput, ...request.Option) (*iotwireless.UpdatePartnerAccountOutput, error) UpdatePartnerAccountRequest(*iotwireless.UpdatePartnerAccountInput) (*request.Request, *iotwireless.UpdatePartnerAccountOutput) + UpdateResourceEventConfiguration(*iotwireless.UpdateResourceEventConfigurationInput) (*iotwireless.UpdateResourceEventConfigurationOutput, error) + UpdateResourceEventConfigurationWithContext(aws.Context, *iotwireless.UpdateResourceEventConfigurationInput, ...request.Option) (*iotwireless.UpdateResourceEventConfigurationOutput, error) + UpdateResourceEventConfigurationRequest(*iotwireless.UpdateResourceEventConfigurationInput) (*request.Request, *iotwireless.UpdateResourceEventConfigurationOutput) + UpdateWirelessDevice(*iotwireless.UpdateWirelessDeviceInput) (*iotwireless.UpdateWirelessDeviceOutput, error) UpdateWirelessDeviceWithContext(aws.Context, *iotwireless.UpdateWirelessDeviceInput, ...request.Option) (*iotwireless.UpdateWirelessDeviceOutput, error) UpdateWirelessDeviceRequest(*iotwireless.UpdateWirelessDeviceInput) (*request.Request, *iotwireless.UpdateWirelessDeviceOutput) diff --git a/service/sagemaker/api.go b/service/sagemaker/api.go index c744a149241..206923cf3ee 100644 --- a/service/sagemaker/api.go +++ b/service/sagemaker/api.go @@ -43605,6 +43605,9 @@ func (s *DescribeDeviceInput) SetNextToken(v string) *DescribeDeviceInput { type DescribeDeviceOutput struct { _ struct{} `type:"structure"` + // Edge Manager agent version. + AgentVersion *string `min:"1" type:"string"` + // A description of the device. Description *string `min:"1" type:"string"` @@ -43662,6 +43665,12 @@ func (s DescribeDeviceOutput) GoString() string { return s.String() } +// SetAgentVersion sets the AgentVersion field's value. +func (s *DescribeDeviceOutput) SetAgentVersion(v string) *DescribeDeviceOutput { + s.AgentVersion = &v + return s +} + // SetDescription sets the Description field's value. func (s *DescribeDeviceOutput) SetDescription(v string) *DescribeDeviceOutput { s.Description = &v @@ -50792,6 +50801,9 @@ func (s *DeviceStats) SetRegisteredDeviceCount(v int64) *DeviceStats { type DeviceSummary struct { _ struct{} `type:"structure"` + // Edge Manager agent version. + AgentVersion *string `min:"1" type:"string"` + // A description of the device. Description *string `min:"1" type:"string"` @@ -50840,6 +50852,12 @@ func (s DeviceSummary) GoString() string { return s.String() } +// SetAgentVersion sets the AgentVersion field's value. +func (s *DeviceSummary) SetAgentVersion(v string) *DeviceSummary { + s.AgentVersion = &v + return s +} + // SetDescription sets the Description field's value. func (s *DeviceSummary) SetDescription(v string) *DeviceSummary { s.Description = &v