diff --git a/CHANGELOG.md b/CHANGELOG.md index e8e25adff4..30e2651f1d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,14 @@ +Release v1.36.10 (2020-12-16) +=== + +### Service Client Updates +* `service/amp`: Updates service documentation +* `service/ce`: Updates service API and documentation +* `service/location`: Adds new service +* `service/quicksight`: Updates service API and documentation + * QuickSight now supports connecting to federated data sources of Athena +* `service/wellarchitected`: Adds new service + Release v1.36.9 (2020-12-15) === diff --git a/aws/endpoints/defaults.go b/aws/endpoints/defaults.go index d1f217cc9b..5e81d67d0c 100644 --- a/aws/endpoints/defaults.go +++ b/aws/endpoints/defaults.go @@ -3520,6 +3520,23 @@ var awsPartition = partition{ "us-west-2": endpoint{}, }, }, + "iotwireless": service{ + + Endpoints: endpoints{ + "eu-west-1": endpoint{ + Hostname: "api.iotwireless.eu-west-1.amazonaws.com", + CredentialScope: credentialScope{ + Region: "eu-west-1", + }, + }, + "us-east-1": endpoint{ + Hostname: "api.iotwireless.us-east-1.amazonaws.com", + CredentialScope: credentialScope{ + Region: "us-east-1", + }, + }, + }, + }, "kafka": service{ Endpoints: endpoints{ diff --git a/aws/version.go b/aws/version.go index 730735ee0a..70486b6854 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.36.9" +const SDKVersion = "1.36.10" diff --git a/models/apis/amp/2020-08-01/docs-2.json b/models/apis/amp/2020-08-01/docs-2.json index deae74f90d..8f0c0852e3 100644 --- a/models/apis/amp/2020-08-01/docs-2.json +++ b/models/apis/amp/2020-08-01/docs-2.json @@ -1,12 +1,12 @@ { "version": "2.0", - "service": "

StealFire Service

", + "service": "

Amazon Managed Service for Prometheus

", "operations": { - "CreateWorkspace": "

Creates a new StealFire workspace.

", - "DeleteWorkspace": "

Deletes a StealFire workspace.

", - "DescribeWorkspace": "

Describes an existing StealFire workspace.

", - "ListWorkspaces": "

Lists all StealFire workspaces, including workspaces being created or deleted.

", - "UpdateWorkspaceAlias": "

Updates a StealFire workspace alias.

" + "CreateWorkspace": "

Creates a new AMP workspace.

", + "DeleteWorkspace": "

Deletes an AMP workspace.

", + "DescribeWorkspace": "

Describes an existing AMP workspace.

", + "ListWorkspaces": "

Lists all AMP workspaces, including workspaces being created or deleted.

", + "UpdateWorkspaceAlias": "

Updates an AMP workspace alias.

" }, "shapes": { "AccessDeniedException": { diff --git a/models/apis/ce/2017-10-25/api-2.json b/models/apis/ce/2017-10-25/api-2.json index 5bbd0ea2fa..22035f2caf 100644 --- a/models/apis/ce/2017-10-25/api-2.json +++ b/models/apis/ce/2017-10-25/api-2.json @@ -506,7 +506,7 @@ "members":{ "SubscriptionArn":{"shape":"GenericString"}, "AccountId":{"shape":"GenericString"}, - "MonitorArnList":{"shape":"Values"}, + "MonitorArnList":{"shape":"MonitorArnList"}, "Subscribers":{"shape":"Subscribers"}, "Threshold":{"shape":"NullableNonNegativeDouble"}, "Frequency":{"shape":"AnomalySubscriptionFrequency"}, @@ -1546,6 +1546,10 @@ "TargetInstances":{"shape":"TargetInstancesList"} } }, + "MonitorArnList":{ + "type":"list", + "member":{"shape":"Arn"} + }, "MonitorDimension":{ "type":"string", "enum":["SERVICE"] @@ -2196,7 +2200,7 @@ "SubscriptionArn":{"shape":"GenericString"}, "Threshold":{"shape":"NullableNonNegativeDouble"}, "Frequency":{"shape":"AnomalySubscriptionFrequency"}, - "MonitorArnList":{"shape":"Values"}, + "MonitorArnList":{"shape":"MonitorArnList"}, "Subscribers":{"shape":"Subscribers"}, "SubscriptionName":{"shape":"GenericString"} } diff --git a/models/apis/ce/2017-10-25/docs-2.json b/models/apis/ce/2017-10-25/docs-2.json index b901022bd3..96f893e209 100644 --- a/models/apis/ce/2017-10-25/docs-2.json +++ b/models/apis/ce/2017-10-25/docs-2.json @@ -128,6 +128,7 @@ "DeleteCostCategoryDefinitionRequest$CostCategoryArn": "

The unique identifier for your Cost Category.

", "DeleteCostCategoryDefinitionResponse$CostCategoryArn": "

The unique identifier for your Cost Category.

", "DescribeCostCategoryDefinitionRequest$CostCategoryArn": "

The unique identifier for your Cost Category.

", + "MonitorArnList$member": null, "UpdateCostCategoryDefinitionRequest$CostCategoryArn": "

The unique identifier for your Cost Category.

", "UpdateCostCategoryDefinitionResponse$CostCategoryArn": "

The unique identifier for your Cost Category.

" } @@ -1100,6 +1101,13 @@ "RightsizingRecommendation$ModifyRecommendationDetail": "

Details for modification recommendations.

" } }, + "MonitorArnList": { + "base": null, + "refs": { + "AnomalySubscription$MonitorArnList": "

A list of cost anomaly monitors.

", + "UpdateAnomalySubscriptionRequest$MonitorArnList": "

A list of cost anomaly subscription ARNs.

" + } + }, "MonitorDimension": { "base": null, "refs": { @@ -1810,13 +1818,11 @@ "Values": { "base": null, "refs": { - "AnomalySubscription$MonitorArnList": "

A list of cost anomaly monitors.

", "CostCategoryValues$Values": "

The specific value of the Cost Category.

", "DimensionValues$Values": "

The metadata values that you can use to filter and group your results. You can use GetDimensionValues to find specific values.

", "GetAnomalyMonitorsRequest$MonitorArnList": "

A list of cost anomaly monitor ARNs.

", "GetAnomalySubscriptionsRequest$SubscriptionArnList": "

A list of cost anomaly subscription ARNs.

", - "TagValues$Values": "

The specific value of the tag.

", - "UpdateAnomalySubscriptionRequest$MonitorArnList": "

A list of cost anomaly subscription ARNs.

" + "TagValues$Values": "

The specific value of the tag.

" } }, "YearMonthDay": { diff --git a/models/apis/location/2020-11-19/api-2.json b/models/apis/location/2020-11-19/api-2.json new file mode 100644 index 0000000000..8a19346482 --- /dev/null +++ b/models/apis/location/2020-11-19/api-2.json @@ -0,0 +1,2208 @@ +{ + "version":"2.0", + "metadata":{ + "apiVersion":"2020-11-19", + "endpointPrefix":"geo", + "jsonVersion":"1.1", + "protocol":"rest-json", + "serviceFullName":"Amazon Location Service", + "serviceId":"Location", + "signatureVersion":"v4", + "signingName":"geo", + "uid":"location-2020-11-19" + }, + "operations":{ + "AssociateTrackerConsumer":{ + "name":"AssociateTrackerConsumer", + "http":{ + "method":"POST", + "requestUri":"/tracking/v0/trackers/{TrackerName}/consumers", + "responseCode":200 + }, + "input":{"shape":"AssociateTrackerConsumerRequest"}, + "output":{"shape":"AssociateTrackerConsumerResponse"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ConflictException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ValidationException"}, + {"shape":"ThrottlingException"} + ], + "endpoint":{"hostPrefix":"tracking."} + }, + "BatchDeleteGeofence":{ + "name":"BatchDeleteGeofence", + "http":{ + "method":"POST", + "requestUri":"/geofencing/v0/collections/{CollectionName}/delete-geofences", + "responseCode":200 + }, + "input":{"shape":"BatchDeleteGeofenceRequest"}, + "output":{"shape":"BatchDeleteGeofenceResponse"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ValidationException"}, + {"shape":"ThrottlingException"} + ], + "endpoint":{"hostPrefix":"geofencing."} + }, + "BatchEvaluateGeofences":{ + "name":"BatchEvaluateGeofences", + "http":{ + "method":"POST", + "requestUri":"/geofencing/v0/collections/{CollectionName}/positions", + "responseCode":200 + }, + "input":{"shape":"BatchEvaluateGeofencesRequest"}, + "output":{"shape":"BatchEvaluateGeofencesResponse"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ValidationException"}, + {"shape":"ThrottlingException"} + ], + "endpoint":{"hostPrefix":"geofencing."} + }, + "BatchGetDevicePosition":{ + "name":"BatchGetDevicePosition", + "http":{ + "method":"POST", + "requestUri":"/tracking/v0/trackers/{TrackerName}/get-positions", + "responseCode":200 + }, + "input":{"shape":"BatchGetDevicePositionRequest"}, + "output":{"shape":"BatchGetDevicePositionResponse"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ValidationException"}, + {"shape":"ThrottlingException"} + ], + "endpoint":{"hostPrefix":"tracking."} + }, + "BatchPutGeofence":{ + "name":"BatchPutGeofence", + "http":{ + "method":"POST", + "requestUri":"/geofencing/v0/collections/{CollectionName}/put-geofences", + "responseCode":200 + }, + "input":{"shape":"BatchPutGeofenceRequest"}, + "output":{"shape":"BatchPutGeofenceResponse"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ValidationException"}, + {"shape":"ThrottlingException"} + ], + "endpoint":{"hostPrefix":"geofencing."} + }, + "BatchUpdateDevicePosition":{ + "name":"BatchUpdateDevicePosition", + "http":{ + "method":"POST", + "requestUri":"/tracking/v0/trackers/{TrackerName}/positions", + "responseCode":200 + }, + "input":{"shape":"BatchUpdateDevicePositionRequest"}, + "output":{"shape":"BatchUpdateDevicePositionResponse"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ValidationException"}, + {"shape":"ThrottlingException"} + ], + "endpoint":{"hostPrefix":"tracking."} + }, + "CreateGeofenceCollection":{ + "name":"CreateGeofenceCollection", + "http":{ + "method":"POST", + "requestUri":"/geofencing/v0/collections", + "responseCode":200 + }, + "input":{"shape":"CreateGeofenceCollectionRequest"}, + "output":{"shape":"CreateGeofenceCollectionResponse"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"ConflictException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ValidationException"}, + {"shape":"ThrottlingException"} + ], + "endpoint":{"hostPrefix":"geofencing."}, + "idempotent":true + }, + "CreateMap":{ + "name":"CreateMap", + "http":{ + "method":"POST", + "requestUri":"/maps/v0/maps", + "responseCode":200 + }, + "input":{"shape":"CreateMapRequest"}, + "output":{"shape":"CreateMapResponse"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"ConflictException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ValidationException"}, + {"shape":"ThrottlingException"} + ], + "endpoint":{"hostPrefix":"maps."}, + "idempotent":true + }, + "CreatePlaceIndex":{ + "name":"CreatePlaceIndex", + "http":{ + "method":"POST", + "requestUri":"/places/v0/indexes", + "responseCode":200 + }, + "input":{"shape":"CreatePlaceIndexRequest"}, + "output":{"shape":"CreatePlaceIndexResponse"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"ConflictException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ValidationException"}, + {"shape":"ThrottlingException"} + ], + "endpoint":{"hostPrefix":"places."}, + "idempotent":true + }, + "CreateTracker":{ + "name":"CreateTracker", + "http":{ + "method":"POST", + "requestUri":"/tracking/v0/trackers", + "responseCode":200 + }, + "input":{"shape":"CreateTrackerRequest"}, + "output":{"shape":"CreateTrackerResponse"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"ConflictException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ValidationException"}, + {"shape":"ThrottlingException"} + ], + "endpoint":{"hostPrefix":"tracking."}, + "idempotent":true + }, + "DeleteGeofenceCollection":{ + "name":"DeleteGeofenceCollection", + "http":{ + "method":"DELETE", + "requestUri":"/geofencing/v0/collections/{CollectionName}", + "responseCode":200 + }, + "input":{"shape":"DeleteGeofenceCollectionRequest"}, + "output":{"shape":"DeleteGeofenceCollectionResponse"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ValidationException"}, + {"shape":"ThrottlingException"} + ], + "endpoint":{"hostPrefix":"geofencing."}, + "idempotent":true + }, + "DeleteMap":{ + "name":"DeleteMap", + "http":{ + "method":"DELETE", + "requestUri":"/maps/v0/maps/{MapName}", + "responseCode":200 + }, + "input":{"shape":"DeleteMapRequest"}, + "output":{"shape":"DeleteMapResponse"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ValidationException"}, + {"shape":"ThrottlingException"} + ], + "endpoint":{"hostPrefix":"maps."}, + "idempotent":true + }, + "DeletePlaceIndex":{ + "name":"DeletePlaceIndex", + "http":{ + "method":"DELETE", + "requestUri":"/places/v0/indexes/{IndexName}", + "responseCode":200 + }, + "input":{"shape":"DeletePlaceIndexRequest"}, + "output":{"shape":"DeletePlaceIndexResponse"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ValidationException"}, + {"shape":"ThrottlingException"} + ], + "endpoint":{"hostPrefix":"places."}, + "idempotent":true + }, + "DeleteTracker":{ + "name":"DeleteTracker", + "http":{ + "method":"DELETE", + "requestUri":"/tracking/v0/trackers/{TrackerName}", + "responseCode":200 + }, + "input":{"shape":"DeleteTrackerRequest"}, + "output":{"shape":"DeleteTrackerResponse"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ValidationException"}, + {"shape":"ThrottlingException"} + ], + "endpoint":{"hostPrefix":"tracking."}, + "idempotent":true + }, + "DescribeGeofenceCollection":{ + "name":"DescribeGeofenceCollection", + "http":{ + "method":"GET", + "requestUri":"/geofencing/v0/collections/{CollectionName}", + "responseCode":200 + }, + "input":{"shape":"DescribeGeofenceCollectionRequest"}, + "output":{"shape":"DescribeGeofenceCollectionResponse"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ValidationException"}, + {"shape":"ThrottlingException"} + ], + "endpoint":{"hostPrefix":"geofencing."} + }, + "DescribeMap":{ + "name":"DescribeMap", + "http":{ + "method":"GET", + "requestUri":"/maps/v0/maps/{MapName}", + "responseCode":200 + }, + "input":{"shape":"DescribeMapRequest"}, + "output":{"shape":"DescribeMapResponse"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ValidationException"}, + {"shape":"ThrottlingException"} + ], + "endpoint":{"hostPrefix":"maps."} + }, + "DescribePlaceIndex":{ + "name":"DescribePlaceIndex", + "http":{ + "method":"GET", + "requestUri":"/places/v0/indexes/{IndexName}", + "responseCode":200 + }, + "input":{"shape":"DescribePlaceIndexRequest"}, + "output":{"shape":"DescribePlaceIndexResponse"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ValidationException"}, + {"shape":"ThrottlingException"} + ], + "endpoint":{"hostPrefix":"places."} + }, + "DescribeTracker":{ + "name":"DescribeTracker", + "http":{ + "method":"GET", + "requestUri":"/tracking/v0/trackers/{TrackerName}", + "responseCode":200 + }, + "input":{"shape":"DescribeTrackerRequest"}, + "output":{"shape":"DescribeTrackerResponse"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ValidationException"}, + {"shape":"ThrottlingException"} + ], + "endpoint":{"hostPrefix":"tracking."} + }, + "DisassociateTrackerConsumer":{ + "name":"DisassociateTrackerConsumer", + "http":{ + "method":"DELETE", + "requestUri":"/tracking/v0/trackers/{TrackerName}/consumers/{ConsumerArn}", + "responseCode":200 + }, + "input":{"shape":"DisassociateTrackerConsumerRequest"}, + "output":{"shape":"DisassociateTrackerConsumerResponse"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ValidationException"}, + {"shape":"ThrottlingException"} + ], + "endpoint":{"hostPrefix":"tracking."} + }, + "GetDevicePosition":{ + "name":"GetDevicePosition", + "http":{ + "method":"GET", + "requestUri":"/tracking/v0/trackers/{TrackerName}/devices/{DeviceId}/positions/latest", + "responseCode":200 + }, + "input":{"shape":"GetDevicePositionRequest"}, + "output":{"shape":"GetDevicePositionResponse"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ValidationException"}, + {"shape":"ThrottlingException"} + ], + "endpoint":{"hostPrefix":"tracking."} + }, + "GetDevicePositionHistory":{ + "name":"GetDevicePositionHistory", + "http":{ + "method":"POST", + "requestUri":"/tracking/v0/trackers/{TrackerName}/devices/{DeviceId}/list-positions", + "responseCode":200 + }, + "input":{"shape":"GetDevicePositionHistoryRequest"}, + "output":{"shape":"GetDevicePositionHistoryResponse"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ValidationException"}, + {"shape":"ThrottlingException"} + ], + "endpoint":{"hostPrefix":"tracking."} + }, + "GetGeofence":{ + "name":"GetGeofence", + "http":{ + "method":"GET", + "requestUri":"/geofencing/v0/collections/{CollectionName}/geofences/{GeofenceId}", + "responseCode":200 + }, + "input":{"shape":"GetGeofenceRequest"}, + "output":{"shape":"GetGeofenceResponse"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ValidationException"}, + {"shape":"ThrottlingException"} + ], + "endpoint":{"hostPrefix":"geofencing."} + }, + "GetMapGlyphs":{ + "name":"GetMapGlyphs", + "http":{ + "method":"GET", + "requestUri":"/maps/v0/maps/{MapName}/glyphs/{FontStack}/{FontUnicodeRange}", + "responseCode":200 + }, + "input":{"shape":"GetMapGlyphsRequest"}, + "output":{"shape":"GetMapGlyphsResponse"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ValidationException"}, + {"shape":"ThrottlingException"} + ], + "endpoint":{"hostPrefix":"maps."} + }, + "GetMapSprites":{ + "name":"GetMapSprites", + "http":{ + "method":"GET", + "requestUri":"/maps/v0/maps/{MapName}/sprites/{FileName}", + "responseCode":200 + }, + "input":{"shape":"GetMapSpritesRequest"}, + "output":{"shape":"GetMapSpritesResponse"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ValidationException"}, + {"shape":"ThrottlingException"} + ], + "endpoint":{"hostPrefix":"maps."} + }, + "GetMapStyleDescriptor":{ + "name":"GetMapStyleDescriptor", + "http":{ + "method":"GET", + "requestUri":"/maps/v0/maps/{MapName}/style-descriptor", + "responseCode":200 + }, + "input":{"shape":"GetMapStyleDescriptorRequest"}, + "output":{"shape":"GetMapStyleDescriptorResponse"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ValidationException"}, + {"shape":"ThrottlingException"} + ], + "endpoint":{"hostPrefix":"maps."} + }, + "GetMapTile":{ + "name":"GetMapTile", + "http":{ + "method":"GET", + "requestUri":"/maps/v0/maps/{MapName}/tiles/{Z}/{X}/{Y}", + "responseCode":200 + }, + "input":{"shape":"GetMapTileRequest"}, + "output":{"shape":"GetMapTileResponse"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ValidationException"}, + {"shape":"ThrottlingException"} + ], + "endpoint":{"hostPrefix":"maps."} + }, + "ListGeofenceCollections":{ + "name":"ListGeofenceCollections", + "http":{ + "method":"POST", + "requestUri":"/geofencing/v0/list-collections", + "responseCode":200 + }, + "input":{"shape":"ListGeofenceCollectionsRequest"}, + "output":{"shape":"ListGeofenceCollectionsResponse"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ValidationException"}, + {"shape":"ThrottlingException"} + ], + "endpoint":{"hostPrefix":"geofencing."} + }, + "ListGeofences":{ + "name":"ListGeofences", + "http":{ + "method":"POST", + "requestUri":"/geofencing/v0/collections/{CollectionName}/list-geofences", + "responseCode":200 + }, + "input":{"shape":"ListGeofencesRequest"}, + "output":{"shape":"ListGeofencesResponse"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ValidationException"}, + {"shape":"ThrottlingException"} + ], + "endpoint":{"hostPrefix":"geofencing."} + }, + "ListMaps":{ + "name":"ListMaps", + "http":{ + "method":"POST", + "requestUri":"/maps/v0/list-maps", + "responseCode":200 + }, + "input":{"shape":"ListMapsRequest"}, + "output":{"shape":"ListMapsResponse"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ValidationException"}, + {"shape":"ThrottlingException"} + ], + "endpoint":{"hostPrefix":"maps."} + }, + "ListPlaceIndexes":{ + "name":"ListPlaceIndexes", + "http":{ + "method":"POST", + "requestUri":"/places/v0/list-indexes", + "responseCode":200 + }, + "input":{"shape":"ListPlaceIndexesRequest"}, + "output":{"shape":"ListPlaceIndexesResponse"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ValidationException"}, + {"shape":"ThrottlingException"} + ], + "endpoint":{"hostPrefix":"places."} + }, + "ListTrackerConsumers":{ + "name":"ListTrackerConsumers", + "http":{ + "method":"POST", + "requestUri":"/tracking/v0/trackers/{TrackerName}/list-consumers", + "responseCode":200 + }, + "input":{"shape":"ListTrackerConsumersRequest"}, + "output":{"shape":"ListTrackerConsumersResponse"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ValidationException"}, + {"shape":"ThrottlingException"} + ], + "endpoint":{"hostPrefix":"tracking."} + }, + "ListTrackers":{ + "name":"ListTrackers", + "http":{ + "method":"POST", + "requestUri":"/tracking/v0/list-trackers", + "responseCode":200 + }, + "input":{"shape":"ListTrackersRequest"}, + "output":{"shape":"ListTrackersResponse"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ValidationException"}, + {"shape":"ThrottlingException"} + ], + "endpoint":{"hostPrefix":"tracking."} + }, + "PutGeofence":{ + "name":"PutGeofence", + "http":{ + "method":"PUT", + "requestUri":"/geofencing/v0/collections/{CollectionName}/geofences/{GeofenceId}", + "responseCode":200 + }, + "input":{"shape":"PutGeofenceRequest"}, + "output":{"shape":"PutGeofenceResponse"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ConflictException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ValidationException"}, + {"shape":"ThrottlingException"} + ], + "endpoint":{"hostPrefix":"geofencing."} + }, + "SearchPlaceIndexForPosition":{ + "name":"SearchPlaceIndexForPosition", + "http":{ + "method":"POST", + "requestUri":"/places/v0/indexes/{IndexName}/search/position", + "responseCode":200 + }, + "input":{"shape":"SearchPlaceIndexForPositionRequest"}, + "output":{"shape":"SearchPlaceIndexForPositionResponse"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ValidationException"}, + {"shape":"ThrottlingException"} + ], + "endpoint":{"hostPrefix":"places."} + }, + "SearchPlaceIndexForText":{ + "name":"SearchPlaceIndexForText", + "http":{ + "method":"POST", + "requestUri":"/places/v0/indexes/{IndexName}/search/text", + "responseCode":200 + }, + "input":{"shape":"SearchPlaceIndexForTextRequest"}, + "output":{"shape":"SearchPlaceIndexForTextResponse"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ValidationException"}, + {"shape":"ThrottlingException"} + ], + "endpoint":{"hostPrefix":"places."} + } + }, + "shapes":{ + "AccessDeniedException":{ + "type":"structure", + "required":["Message"], + "members":{ + "Message":{ + "shape":"String", + "locationName":"message" + } + }, + "error":{ + "httpStatusCode":403, + "senderFault":true + }, + "exception":true + }, + "Arn":{ + "type":"string", + "max":1600, + "min":0, + "pattern":"^arn(:[a-z0-9]+([.-][a-z0-9]+)*){2}(:([a-z0-9]+([.-][a-z0-9]+)*)?){2}:([^/].*)?$" + }, + "ArnList":{ + "type":"list", + "member":{"shape":"Arn"} + }, + "AssociateTrackerConsumerRequest":{ + "type":"structure", + "required":[ + "ConsumerArn", + "TrackerName" + ], + "members":{ + "ConsumerArn":{"shape":"Arn"}, + "TrackerName":{ + "shape":"ResourceName", + "location":"uri", + "locationName":"TrackerName" + } + } + }, + "AssociateTrackerConsumerResponse":{ + "type":"structure", + "members":{ + } + }, + "BatchDeleteGeofenceError":{ + "type":"structure", + "required":[ + "Error", + "GeofenceId" + ], + "members":{ + "Error":{"shape":"BatchItemError"}, + "GeofenceId":{"shape":"Id"} + } + }, + "BatchDeleteGeofenceErrorList":{ + "type":"list", + "member":{"shape":"BatchDeleteGeofenceError"} + }, + "BatchDeleteGeofenceRequest":{ + "type":"structure", + "required":[ + "CollectionName", + "GeofenceIds" + ], + "members":{ + "CollectionName":{ + "shape":"ResourceName", + "location":"uri", + "locationName":"CollectionName" + }, + "GeofenceIds":{"shape":"BatchDeleteGeofenceRequestGeofenceIdsList"} + } + }, + "BatchDeleteGeofenceRequestGeofenceIdsList":{ + "type":"list", + "member":{"shape":"Id"}, + "max":10, + "min":1 + }, + "BatchDeleteGeofenceResponse":{ + "type":"structure", + "required":["Errors"], + "members":{ + "Errors":{"shape":"BatchDeleteGeofenceErrorList"} + } + }, + "BatchEvaluateGeofencesError":{ + "type":"structure", + "required":[ + "DeviceId", + "Error", + "SampleTime" + ], + "members":{ + "DeviceId":{"shape":"Id"}, + "Error":{"shape":"BatchItemError"}, + "SampleTime":{"shape":"Timestamp"} + } + }, + "BatchEvaluateGeofencesErrorList":{ + "type":"list", + "member":{"shape":"BatchEvaluateGeofencesError"} + }, + "BatchEvaluateGeofencesRequest":{ + "type":"structure", + "required":[ + "CollectionName", + "DevicePositionUpdates" + ], + "members":{ + "CollectionName":{ + "shape":"ResourceName", + "location":"uri", + "locationName":"CollectionName" + }, + "DevicePositionUpdates":{"shape":"BatchEvaluateGeofencesRequestDevicePositionUpdatesList"} + } + }, + "BatchEvaluateGeofencesRequestDevicePositionUpdatesList":{ + "type":"list", + "member":{"shape":"DevicePositionUpdate"}, + "max":10, + "min":1 + }, + "BatchEvaluateGeofencesResponse":{ + "type":"structure", + "required":["Errors"], + "members":{ + "Errors":{"shape":"BatchEvaluateGeofencesErrorList"} + } + }, + "BatchGetDevicePositionError":{ + "type":"structure", + "required":[ + "DeviceId", + "Error" + ], + "members":{ + "DeviceId":{"shape":"Id"}, + "Error":{"shape":"BatchItemError"} + } + }, + "BatchGetDevicePositionErrorList":{ + "type":"list", + "member":{"shape":"BatchGetDevicePositionError"} + }, + "BatchGetDevicePositionRequest":{ + "type":"structure", + "required":[ + "DeviceIds", + "TrackerName" + ], + "members":{ + "DeviceIds":{"shape":"BatchGetDevicePositionRequestDeviceIdsList"}, + "TrackerName":{ + "shape":"BatchGetDevicePositionRequestTrackerNameString", + "location":"uri", + "locationName":"TrackerName" + } + } + }, + "BatchGetDevicePositionRequestDeviceIdsList":{ + "type":"list", + "member":{"shape":"Id"}, + "max":10, + "min":1 + }, + "BatchGetDevicePositionRequestTrackerNameString":{ + "type":"string", + "min":1, + "pattern":"^[-._\\w]+$" + }, + "BatchGetDevicePositionResponse":{ + "type":"structure", + "required":[ + "DevicePositions", + "Errors" + ], + "members":{ + "DevicePositions":{"shape":"DevicePositionList"}, + "Errors":{"shape":"BatchGetDevicePositionErrorList"} + } + }, + "BatchItemError":{ + "type":"structure", + "members":{ + "Code":{"shape":"BatchItemErrorCode"}, + "Message":{"shape":"String"} + } + }, + "BatchItemErrorCode":{ + "type":"string", + "enum":[ + "AccessDeniedError", + "ConflictError", + "InternalServerError", + "ResourceNotFoundError", + "ThrottlingError", + "ValidationError" + ] + }, + "BatchPutGeofenceError":{ + "type":"structure", + "required":[ + "Error", + "GeofenceId" + ], + "members":{ + "Error":{"shape":"BatchItemError"}, + "GeofenceId":{"shape":"Id"} + } + }, + "BatchPutGeofenceErrorList":{ + "type":"list", + "member":{"shape":"BatchPutGeofenceError"} + }, + "BatchPutGeofenceRequest":{ + "type":"structure", + "required":[ + "CollectionName", + "Entries" + ], + "members":{ + "CollectionName":{ + "shape":"ResourceName", + "location":"uri", + "locationName":"CollectionName" + }, + "Entries":{"shape":"BatchPutGeofenceRequestEntriesList"} + } + }, + "BatchPutGeofenceRequestEntriesList":{ + "type":"list", + "member":{"shape":"BatchPutGeofenceRequestEntry"}, + "max":10, + "min":1 + }, + "BatchPutGeofenceRequestEntry":{ + "type":"structure", + "required":[ + "GeofenceId", + "Geometry" + ], + "members":{ + "GeofenceId":{"shape":"Id"}, + "Geometry":{"shape":"GeofenceGeometry"} + } + }, + "BatchPutGeofenceResponse":{ + "type":"structure", + "required":[ + "Errors", + "Successes" + ], + "members":{ + "Errors":{"shape":"BatchPutGeofenceErrorList"}, + "Successes":{"shape":"BatchPutGeofenceSuccessList"} + } + }, + "BatchPutGeofenceSuccess":{ + "type":"structure", + "required":[ + "CreateTime", + "GeofenceId", + "UpdateTime" + ], + "members":{ + "CreateTime":{"shape":"Timestamp"}, + "GeofenceId":{"shape":"Id"}, + "UpdateTime":{"shape":"Timestamp"} + } + }, + "BatchPutGeofenceSuccessList":{ + "type":"list", + "member":{"shape":"BatchPutGeofenceSuccess"} + }, + "BatchUpdateDevicePositionError":{ + "type":"structure", + "required":[ + "DeviceId", + "Error", + "SampleTime" + ], + "members":{ + "DeviceId":{"shape":"Id"}, + "Error":{"shape":"BatchItemError"}, + "SampleTime":{"shape":"Timestamp"} + } + }, + "BatchUpdateDevicePositionErrorList":{ + "type":"list", + "member":{"shape":"BatchUpdateDevicePositionError"} + }, + "BatchUpdateDevicePositionRequest":{ + "type":"structure", + "required":[ + "TrackerName", + "Updates" + ], + "members":{ + "TrackerName":{ + "shape":"ResourceName", + "location":"uri", + "locationName":"TrackerName" + }, + "Updates":{"shape":"BatchUpdateDevicePositionRequestUpdatesList"} + } + }, + "BatchUpdateDevicePositionRequestUpdatesList":{ + "type":"list", + "member":{"shape":"DevicePositionUpdate"}, + "max":10, + "min":1 + }, + "BatchUpdateDevicePositionResponse":{ + "type":"structure", + "required":["Errors"], + "members":{ + "Errors":{"shape":"BatchUpdateDevicePositionErrorList"} + } + }, + "Blob":{"type":"blob"}, + "BoundingBox":{ + "type":"list", + "member":{"shape":"Double"}, + "max":6, + "min":4, + "sensitive":true + }, + "ConflictException":{ + "type":"structure", + "required":["Message"], + "members":{ + "Message":{ + "shape":"String", + "locationName":"message" + } + }, + "error":{ + "httpStatusCode":409, + "senderFault":true + }, + "exception":true + }, + "CountryCode":{ + "type":"string", + "pattern":"^[A-Z]{3}$" + }, + "CountryCodeList":{ + "type":"list", + "member":{"shape":"CountryCode"}, + "max":100, + "min":1 + }, + "CreateGeofenceCollectionRequest":{ + "type":"structure", + "required":[ + "CollectionName", + "PricingPlan" + ], + "members":{ + "CollectionName":{"shape":"ResourceName"}, + "Description":{"shape":"ResourceDescription"}, + "PricingPlan":{"shape":"PricingPlan"} + } + }, + "CreateGeofenceCollectionResponse":{ + "type":"structure", + "required":[ + "CollectionArn", + "CollectionName", + "CreateTime" + ], + "members":{ + "CollectionArn":{"shape":"Arn"}, + "CollectionName":{"shape":"ResourceName"}, + "CreateTime":{"shape":"Timestamp"} + } + }, + "CreateMapRequest":{ + "type":"structure", + "required":[ + "Configuration", + "MapName", + "PricingPlan" + ], + "members":{ + "Configuration":{"shape":"MapConfiguration"}, + "Description":{"shape":"ResourceDescription"}, + "MapName":{"shape":"ResourceName"}, + "PricingPlan":{"shape":"PricingPlan"} + } + }, + "CreateMapResponse":{ + "type":"structure", + "required":[ + "CreateTime", + "MapArn", + "MapName" + ], + "members":{ + "CreateTime":{"shape":"Timestamp"}, + "MapArn":{"shape":"Arn"}, + "MapName":{"shape":"ResourceName"} + } + }, + "CreatePlaceIndexRequest":{ + "type":"structure", + "required":[ + "DataSource", + "IndexName", + "PricingPlan" + ], + "members":{ + "DataSource":{"shape":"String"}, + "DataSourceConfiguration":{"shape":"DataSourceConfiguration"}, + "Description":{"shape":"ResourceDescription"}, + "IndexName":{"shape":"ResourceName"}, + "PricingPlan":{"shape":"PricingPlan"} + } + }, + "CreatePlaceIndexResponse":{ + "type":"structure", + "required":[ + "CreateTime", + "IndexArn", + "IndexName" + ], + "members":{ + "CreateTime":{"shape":"Timestamp"}, + "IndexArn":{"shape":"Arn"}, + "IndexName":{"shape":"ResourceName"} + } + }, + "CreateTrackerRequest":{ + "type":"structure", + "required":[ + "PricingPlan", + "TrackerName" + ], + "members":{ + "Description":{"shape":"ResourceDescription"}, + "PricingPlan":{"shape":"PricingPlan"}, + "TrackerName":{"shape":"ResourceName"} + } + }, + "CreateTrackerResponse":{ + "type":"structure", + "required":[ + "CreateTime", + "TrackerArn", + "TrackerName" + ], + "members":{ + "CreateTime":{"shape":"Timestamp"}, + "TrackerArn":{"shape":"Arn"}, + "TrackerName":{"shape":"ResourceName"} + } + }, + "DataSourceConfiguration":{ + "type":"structure", + "members":{ + "IntendedUse":{"shape":"IntendedUse"} + } + }, + "DeleteGeofenceCollectionRequest":{ + "type":"structure", + "required":["CollectionName"], + "members":{ + "CollectionName":{ + "shape":"ResourceName", + "location":"uri", + "locationName":"CollectionName" + } + } + }, + "DeleteGeofenceCollectionResponse":{ + "type":"structure", + "members":{ + } + }, + "DeleteMapRequest":{ + "type":"structure", + "required":["MapName"], + "members":{ + "MapName":{ + "shape":"ResourceName", + "location":"uri", + "locationName":"MapName" + } + } + }, + "DeleteMapResponse":{ + "type":"structure", + "members":{ + } + }, + "DeletePlaceIndexRequest":{ + "type":"structure", + "required":["IndexName"], + "members":{ + "IndexName":{ + "shape":"ResourceName", + "location":"uri", + "locationName":"IndexName" + } + } + }, + "DeletePlaceIndexResponse":{ + "type":"structure", + "members":{ + } + }, + "DeleteTrackerRequest":{ + "type":"structure", + "required":["TrackerName"], + "members":{ + "TrackerName":{ + "shape":"ResourceName", + "location":"uri", + "locationName":"TrackerName" + } + } + }, + "DeleteTrackerResponse":{ + "type":"structure", + "members":{ + } + }, + "DescribeGeofenceCollectionRequest":{ + "type":"structure", + "required":["CollectionName"], + "members":{ + "CollectionName":{ + "shape":"ResourceName", + "location":"uri", + "locationName":"CollectionName" + } + } + }, + "DescribeGeofenceCollectionResponse":{ + "type":"structure", + "required":[ + "CollectionArn", + "CollectionName", + "CreateTime", + "Description", + "UpdateTime" + ], + "members":{ + "CollectionArn":{"shape":"Arn"}, + "CollectionName":{"shape":"ResourceName"}, + "CreateTime":{"shape":"Timestamp"}, + "Description":{"shape":"ResourceDescription"}, + "UpdateTime":{"shape":"Timestamp"} + } + }, + "DescribeMapRequest":{ + "type":"structure", + "required":["MapName"], + "members":{ + "MapName":{ + "shape":"ResourceName", + "location":"uri", + "locationName":"MapName" + } + } + }, + "DescribeMapResponse":{ + "type":"structure", + "required":[ + "Configuration", + "CreateTime", + "DataSource", + "Description", + "MapArn", + "MapName", + "UpdateTime" + ], + "members":{ + "Configuration":{"shape":"MapConfiguration"}, + "CreateTime":{"shape":"Timestamp"}, + "DataSource":{"shape":"String"}, + "Description":{"shape":"ResourceDescription"}, + "MapArn":{"shape":"Arn"}, + "MapName":{"shape":"ResourceName"}, + "UpdateTime":{"shape":"Timestamp"} + } + }, + "DescribePlaceIndexRequest":{ + "type":"structure", + "required":["IndexName"], + "members":{ + "IndexName":{ + "shape":"ResourceName", + "location":"uri", + "locationName":"IndexName" + } + } + }, + "DescribePlaceIndexResponse":{ + "type":"structure", + "required":[ + "CreateTime", + "DataSource", + "DataSourceConfiguration", + "Description", + "IndexArn", + "IndexName", + "UpdateTime" + ], + "members":{ + "CreateTime":{"shape":"Timestamp"}, + "DataSource":{"shape":"String"}, + "DataSourceConfiguration":{"shape":"DataSourceConfiguration"}, + "Description":{"shape":"ResourceDescription"}, + "IndexArn":{"shape":"Arn"}, + "IndexName":{"shape":"ResourceName"}, + "UpdateTime":{"shape":"Timestamp"} + } + }, + "DescribeTrackerRequest":{ + "type":"structure", + "required":["TrackerName"], + "members":{ + "TrackerName":{ + "shape":"ResourceName", + "location":"uri", + "locationName":"TrackerName" + } + } + }, + "DescribeTrackerResponse":{ + "type":"structure", + "required":[ + "CreateTime", + "Description", + "TrackerArn", + "TrackerName", + "UpdateTime" + ], + "members":{ + "CreateTime":{"shape":"Timestamp"}, + "Description":{"shape":"ResourceDescription"}, + "TrackerArn":{"shape":"Arn"}, + "TrackerName":{"shape":"ResourceName"}, + "UpdateTime":{"shape":"Timestamp"} + } + }, + "DevicePosition":{ + "type":"structure", + "required":[ + "Position", + "ReceivedTime", + "SampleTime" + ], + "members":{ + "DeviceId":{"shape":"Id"}, + "Position":{"shape":"Position"}, + "ReceivedTime":{"shape":"Timestamp"}, + "SampleTime":{"shape":"Timestamp"} + } + }, + "DevicePositionList":{ + "type":"list", + "member":{"shape":"DevicePosition"} + }, + "DevicePositionUpdate":{ + "type":"structure", + "required":[ + "DeviceId", + "Position", + "SampleTime" + ], + "members":{ + "DeviceId":{"shape":"Id"}, + "Position":{"shape":"Position"}, + "SampleTime":{"shape":"Timestamp"} + } + }, + "DisassociateTrackerConsumerRequest":{ + "type":"structure", + "required":[ + "ConsumerArn", + "TrackerName" + ], + "members":{ + "ConsumerArn":{ + "shape":"Arn", + "location":"uri", + "locationName":"ConsumerArn" + }, + "TrackerName":{ + "shape":"ResourceName", + "location":"uri", + "locationName":"TrackerName" + } + } + }, + "DisassociateTrackerConsumerResponse":{ + "type":"structure", + "members":{ + } + }, + "Double":{ + "type":"double", + "box":true + }, + "GeofenceGeometry":{ + "type":"structure", + "members":{ + "Polygon":{"shape":"LinearRings"} + } + }, + "GetDevicePositionHistoryRequest":{ + "type":"structure", + "required":[ + "DeviceId", + "TrackerName" + ], + "members":{ + "DeviceId":{ + "shape":"Id", + "location":"uri", + "locationName":"DeviceId" + }, + "EndTimeExclusive":{"shape":"Timestamp"}, + "NextToken":{"shape":"Token"}, + "StartTimeInclusive":{"shape":"Timestamp"}, + "TrackerName":{ + "shape":"ResourceName", + "location":"uri", + "locationName":"TrackerName" + } + } + }, + "GetDevicePositionHistoryResponse":{ + "type":"structure", + "required":["DevicePositions"], + "members":{ + "DevicePositions":{"shape":"DevicePositionList"}, + "NextToken":{"shape":"Token"} + } + }, + "GetDevicePositionRequest":{ + "type":"structure", + "required":[ + "DeviceId", + "TrackerName" + ], + "members":{ + "DeviceId":{ + "shape":"Id", + "location":"uri", + "locationName":"DeviceId" + }, + "TrackerName":{ + "shape":"ResourceName", + "location":"uri", + "locationName":"TrackerName" + } + } + }, + "GetDevicePositionResponse":{ + "type":"structure", + "required":[ + "Position", + "ReceivedTime", + "SampleTime" + ], + "members":{ + "DeviceId":{"shape":"Id"}, + "Position":{"shape":"Position"}, + "ReceivedTime":{"shape":"Timestamp"}, + "SampleTime":{"shape":"Timestamp"} + } + }, + "GetGeofenceRequest":{ + "type":"structure", + "required":[ + "CollectionName", + "GeofenceId" + ], + "members":{ + "CollectionName":{ + "shape":"ResourceName", + "location":"uri", + "locationName":"CollectionName" + }, + "GeofenceId":{ + "shape":"Id", + "location":"uri", + "locationName":"GeofenceId" + } + } + }, + "GetGeofenceResponse":{ + "type":"structure", + "required":[ + "CreateTime", + "GeofenceId", + "Geometry", + "Status", + "UpdateTime" + ], + "members":{ + "CreateTime":{"shape":"Timestamp"}, + "GeofenceId":{"shape":"Id"}, + "Geometry":{"shape":"GeofenceGeometry"}, + "Status":{"shape":"String"}, + "UpdateTime":{"shape":"Timestamp"} + } + }, + "GetMapGlyphsRequest":{ + "type":"structure", + "required":[ + "FontStack", + "FontUnicodeRange", + "MapName" + ], + "members":{ + "FontStack":{ + "shape":"String", + "location":"uri", + "locationName":"FontStack" + }, + "FontUnicodeRange":{ + "shape":"GetMapGlyphsRequestFontUnicodeRangeString", + "location":"uri", + "locationName":"FontUnicodeRange" + }, + "MapName":{ + "shape":"ResourceName", + "location":"uri", + "locationName":"MapName" + } + } + }, + "GetMapGlyphsRequestFontUnicodeRangeString":{ + "type":"string", + "pattern":"^[0-9]+-[0-9]+\\.pbf$" + }, + "GetMapGlyphsResponse":{ + "type":"structure", + "members":{ + "Blob":{"shape":"Blob"}, + "ContentType":{ + "shape":"String", + "location":"header", + "locationName":"Content-Type" + } + }, + "payload":"Blob" + }, + "GetMapSpritesRequest":{ + "type":"structure", + "required":[ + "FileName", + "MapName" + ], + "members":{ + "FileName":{ + "shape":"GetMapSpritesRequestFileNameString", + "location":"uri", + "locationName":"FileName" + }, + "MapName":{ + "shape":"ResourceName", + "location":"uri", + "locationName":"MapName" + } + } + }, + "GetMapSpritesRequestFileNameString":{ + "type":"string", + "pattern":"^sprites(@2x)?\\.(png|json)$" + }, + "GetMapSpritesResponse":{ + "type":"structure", + "members":{ + "Blob":{"shape":"Blob"}, + "ContentType":{ + "shape":"String", + "location":"header", + "locationName":"Content-Type" + } + }, + "payload":"Blob" + }, + "GetMapStyleDescriptorRequest":{ + "type":"structure", + "required":["MapName"], + "members":{ + "MapName":{ + "shape":"ResourceName", + "location":"uri", + "locationName":"MapName" + } + } + }, + "GetMapStyleDescriptorResponse":{ + "type":"structure", + "members":{ + "Blob":{"shape":"Blob"}, + "ContentType":{ + "shape":"String", + "location":"header", + "locationName":"Content-Type" + } + }, + "payload":"Blob" + }, + "GetMapTileRequest":{ + "type":"structure", + "required":[ + "MapName", + "X", + "Y", + "Z" + ], + "members":{ + "MapName":{ + "shape":"ResourceName", + "location":"uri", + "locationName":"MapName" + }, + "X":{ + "shape":"GetMapTileRequestXString", + "location":"uri", + "locationName":"X" + }, + "Y":{ + "shape":"GetMapTileRequestYString", + "location":"uri", + "locationName":"Y" + }, + "Z":{ + "shape":"GetMapTileRequestZString", + "location":"uri", + "locationName":"Z" + } + } + }, + "GetMapTileRequestXString":{ + "type":"string", + "pattern":"\\d+" + }, + "GetMapTileRequestYString":{ + "type":"string", + "pattern":"\\d+" + }, + "GetMapTileRequestZString":{ + "type":"string", + "pattern":"\\d+" + }, + "GetMapTileResponse":{ + "type":"structure", + "members":{ + "Blob":{"shape":"Blob"}, + "ContentType":{ + "shape":"String", + "location":"header", + "locationName":"Content-Type" + } + }, + "payload":"Blob" + }, + "Id":{ + "type":"string", + "max":100, + "min":1, + "pattern":"^[-._\\p{L}\\p{N}]+$" + }, + "IntendedUse":{ + "type":"string", + "enum":[ + "SingleUse", + "Storage" + ] + }, + "InternalServerException":{ + "type":"structure", + "required":["Message"], + "members":{ + "Message":{ + "shape":"String", + "locationName":"message" + } + }, + "error":{"httpStatusCode":500}, + "exception":true, + "fault":true, + "retryable":{"throttling":false} + }, + "LinearRing":{ + "type":"list", + "member":{"shape":"Position"}, + "min":4 + }, + "LinearRings":{ + "type":"list", + "member":{"shape":"LinearRing"}, + "min":1 + }, + "ListGeofenceCollectionsRequest":{ + "type":"structure", + "members":{ + "MaxResults":{"shape":"ListGeofenceCollectionsRequestMaxResultsInteger"}, + "NextToken":{"shape":"Token"} + } + }, + "ListGeofenceCollectionsRequestMaxResultsInteger":{ + "type":"integer", + "box":true, + "max":100, + "min":1 + }, + "ListGeofenceCollectionsResponse":{ + "type":"structure", + "required":["Entries"], + "members":{ + "Entries":{"shape":"ListGeofenceCollectionsResponseEntryList"}, + "NextToken":{"shape":"Token"} + } + }, + "ListGeofenceCollectionsResponseEntry":{ + "type":"structure", + "required":[ + "CollectionName", + "CreateTime", + "Description", + "UpdateTime" + ], + "members":{ + "CollectionName":{"shape":"ResourceName"}, + "CreateTime":{"shape":"Timestamp"}, + "Description":{"shape":"ResourceDescription"}, + "UpdateTime":{"shape":"Timestamp"} + } + }, + "ListGeofenceCollectionsResponseEntryList":{ + "type":"list", + "member":{"shape":"ListGeofenceCollectionsResponseEntry"} + }, + "ListGeofenceResponseEntry":{ + "type":"structure", + "required":[ + "CreateTime", + "GeofenceId", + "Geometry", + "Status", + "UpdateTime" + ], + "members":{ + "CreateTime":{"shape":"Timestamp"}, + "GeofenceId":{"shape":"Id"}, + "Geometry":{"shape":"GeofenceGeometry"}, + "Status":{"shape":"String"}, + "UpdateTime":{"shape":"Timestamp"} + } + }, + "ListGeofenceResponseEntryList":{ + "type":"list", + "member":{"shape":"ListGeofenceResponseEntry"} + }, + "ListGeofencesRequest":{ + "type":"structure", + "required":["CollectionName"], + "members":{ + "CollectionName":{ + "shape":"ResourceName", + "location":"uri", + "locationName":"CollectionName" + }, + "NextToken":{"shape":"Token"} + } + }, + "ListGeofencesResponse":{ + "type":"structure", + "required":["Entries"], + "members":{ + "Entries":{"shape":"ListGeofenceResponseEntryList"}, + "NextToken":{"shape":"Token"} + } + }, + "ListMapsRequest":{ + "type":"structure", + "members":{ + "MaxResults":{"shape":"ListMapsRequestMaxResultsInteger"}, + "NextToken":{"shape":"Token"} + } + }, + "ListMapsRequestMaxResultsInteger":{ + "type":"integer", + "box":true, + "max":100, + "min":1 + }, + "ListMapsResponse":{ + "type":"structure", + "required":["Entries"], + "members":{ + "Entries":{"shape":"ListMapsResponseEntryList"}, + "NextToken":{"shape":"Token"} + } + }, + "ListMapsResponseEntry":{ + "type":"structure", + "required":[ + "CreateTime", + "DataSource", + "Description", + "MapName", + "UpdateTime" + ], + "members":{ + "CreateTime":{"shape":"Timestamp"}, + "DataSource":{"shape":"String"}, + "Description":{"shape":"ResourceDescription"}, + "MapName":{"shape":"ResourceName"}, + "UpdateTime":{"shape":"Timestamp"} + } + }, + "ListMapsResponseEntryList":{ + "type":"list", + "member":{"shape":"ListMapsResponseEntry"} + }, + "ListPlaceIndexesRequest":{ + "type":"structure", + "members":{ + "MaxResults":{"shape":"ListPlaceIndexesRequestMaxResultsInteger"}, + "NextToken":{"shape":"Token"} + } + }, + "ListPlaceIndexesRequestMaxResultsInteger":{ + "type":"integer", + "box":true, + "max":100, + "min":1 + }, + "ListPlaceIndexesResponse":{ + "type":"structure", + "required":["Entries"], + "members":{ + "Entries":{"shape":"ListPlaceIndexesResponseEntryList"}, + "NextToken":{"shape":"Token"} + } + }, + "ListPlaceIndexesResponseEntry":{ + "type":"structure", + "required":[ + "CreateTime", + "DataSource", + "Description", + "IndexName", + "UpdateTime" + ], + "members":{ + "CreateTime":{"shape":"Timestamp"}, + "DataSource":{"shape":"String"}, + "Description":{"shape":"ResourceDescription"}, + "IndexName":{"shape":"ResourceName"}, + "UpdateTime":{"shape":"Timestamp"} + } + }, + "ListPlaceIndexesResponseEntryList":{ + "type":"list", + "member":{"shape":"ListPlaceIndexesResponseEntry"} + }, + "ListTrackerConsumersRequest":{ + "type":"structure", + "required":["TrackerName"], + "members":{ + "MaxResults":{"shape":"ListTrackerConsumersRequestMaxResultsInteger"}, + "NextToken":{"shape":"Token"}, + "TrackerName":{ + "shape":"ResourceName", + "location":"uri", + "locationName":"TrackerName" + } + } + }, + "ListTrackerConsumersRequestMaxResultsInteger":{ + "type":"integer", + "box":true, + "max":100, + "min":1 + }, + "ListTrackerConsumersResponse":{ + "type":"structure", + "required":["ConsumerArns"], + "members":{ + "ConsumerArns":{"shape":"ArnList"}, + "NextToken":{"shape":"Token"} + } + }, + "ListTrackersRequest":{ + "type":"structure", + "members":{ + "MaxResults":{"shape":"ListTrackersRequestMaxResultsInteger"}, + "NextToken":{"shape":"Token"} + } + }, + "ListTrackersRequestMaxResultsInteger":{ + "type":"integer", + "box":true, + "max":100, + "min":1 + }, + "ListTrackersResponse":{ + "type":"structure", + "required":["Entries"], + "members":{ + "Entries":{"shape":"ListTrackersResponseEntryList"}, + "NextToken":{"shape":"Token"} + } + }, + "ListTrackersResponseEntry":{ + "type":"structure", + "required":[ + "CreateTime", + "Description", + "TrackerName", + "UpdateTime" + ], + "members":{ + "CreateTime":{"shape":"Timestamp"}, + "Description":{"shape":"ResourceDescription"}, + "TrackerName":{"shape":"ResourceName"}, + "UpdateTime":{"shape":"Timestamp"} + } + }, + "ListTrackersResponseEntryList":{ + "type":"list", + "member":{"shape":"ListTrackersResponseEntry"} + }, + "MapConfiguration":{ + "type":"structure", + "required":["Style"], + "members":{ + "Style":{"shape":"MapStyle"} + } + }, + "MapStyle":{ + "type":"string", + "max":100, + "min":1, + "pattern":"^[-._\\p{L}\\p{N}]+$" + }, + "Place":{ + "type":"structure", + "required":["Geometry"], + "members":{ + "AddressNumber":{"shape":"String"}, + "Country":{"shape":"String"}, + "Geometry":{"shape":"PlaceGeometry"}, + "Label":{"shape":"String"}, + "Municipality":{"shape":"String"}, + "Neighborhood":{"shape":"String"}, + "PostalCode":{"shape":"String"}, + "Region":{"shape":"String"}, + "Street":{"shape":"String"}, + "SubRegion":{"shape":"String"} + } + }, + "PlaceGeometry":{ + "type":"structure", + "members":{ + "Point":{"shape":"Position"} + } + }, + "PlaceIndexSearchResultLimit":{ + "type":"integer", + "max":50, + "min":1 + }, + "Position":{ + "type":"list", + "member":{"shape":"Double"}, + "max":2, + "min":2, + "sensitive":true + }, + "PricingPlan":{ + "type":"string", + "enum":[ + "RequestBasedUsage", + "MobileAssetTracking", + "MobileAssetManagement" + ] + }, + "PutGeofenceRequest":{ + "type":"structure", + "required":[ + "CollectionName", + "GeofenceId", + "Geometry" + ], + "members":{ + "CollectionName":{ + "shape":"ResourceName", + "location":"uri", + "locationName":"CollectionName" + }, + "GeofenceId":{ + "shape":"Id", + "location":"uri", + "locationName":"GeofenceId" + }, + "Geometry":{"shape":"GeofenceGeometry"} + } + }, + "PutGeofenceResponse":{ + "type":"structure", + "required":[ + "CreateTime", + "GeofenceId", + "UpdateTime" + ], + "members":{ + "CreateTime":{"shape":"Timestamp"}, + "GeofenceId":{"shape":"Id"}, + "UpdateTime":{"shape":"Timestamp"} + } + }, + "ResourceDescription":{ + "type":"string", + "max":1000, + "min":0 + }, + "ResourceName":{ + "type":"string", + "max":100, + "min":1, + "pattern":"^[-._\\w]+$" + }, + "ResourceNotFoundException":{ + "type":"structure", + "required":["Message"], + "members":{ + "Message":{ + "shape":"String", + "locationName":"message" + } + }, + "error":{ + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + "SearchForPositionResult":{ + "type":"structure", + "required":["Place"], + "members":{ + "Place":{"shape":"Place"} + } + }, + "SearchForPositionResultList":{ + "type":"list", + "member":{"shape":"SearchForPositionResult"} + }, + "SearchForTextResult":{ + "type":"structure", + "required":["Place"], + "members":{ + "Place":{"shape":"Place"} + } + }, + "SearchForTextResultList":{ + "type":"list", + "member":{"shape":"SearchForTextResult"} + }, + "SearchPlaceIndexForPositionRequest":{ + "type":"structure", + "required":[ + "IndexName", + "Position" + ], + "members":{ + "IndexName":{ + "shape":"ResourceName", + "location":"uri", + "locationName":"IndexName" + }, + "MaxResults":{"shape":"PlaceIndexSearchResultLimit"}, + "Position":{"shape":"Position"} + } + }, + "SearchPlaceIndexForPositionResponse":{ + "type":"structure", + "required":[ + "Results", + "Summary" + ], + "members":{ + "Results":{"shape":"SearchForPositionResultList"}, + "Summary":{"shape":"SearchPlaceIndexForPositionSummary"} + } + }, + "SearchPlaceIndexForPositionSummary":{ + "type":"structure", + "required":[ + "DataSource", + "Position" + ], + "members":{ + "DataSource":{"shape":"String"}, + "MaxResults":{"shape":"PlaceIndexSearchResultLimit"}, + "Position":{"shape":"Position"} + } + }, + "SearchPlaceIndexForTextRequest":{ + "type":"structure", + "required":[ + "IndexName", + "Text" + ], + "members":{ + "BiasPosition":{"shape":"Position"}, + "FilterBBox":{"shape":"BoundingBox"}, + "FilterCountries":{"shape":"CountryCodeList"}, + "IndexName":{ + "shape":"ResourceName", + "location":"uri", + "locationName":"IndexName" + }, + "MaxResults":{"shape":"PlaceIndexSearchResultLimit"}, + "Text":{"shape":"SyntheticSearchPlaceIndexForTextRequestString"} + } + }, + "SearchPlaceIndexForTextResponse":{ + "type":"structure", + "required":[ + "Results", + "Summary" + ], + "members":{ + "Results":{"shape":"SearchForTextResultList"}, + "Summary":{"shape":"SearchPlaceIndexForTextSummary"} + } + }, + "SearchPlaceIndexForTextSummary":{ + "type":"structure", + "required":[ + "DataSource", + "Text" + ], + "members":{ + "BiasPosition":{"shape":"Position"}, + "DataSource":{"shape":"String"}, + "FilterBBox":{"shape":"BoundingBox"}, + "FilterCountries":{"shape":"CountryCodeList"}, + "MaxResults":{"shape":"PlaceIndexSearchResultLimit"}, + "ResultBBox":{"shape":"BoundingBox"}, + "Text":{"shape":"SyntheticSearchPlaceIndexForTextSummaryString"} + } + }, + "String":{"type":"string"}, + "SyntheticSearchPlaceIndexForTextRequestString":{ + "type":"string", + "max":200, + "min":1, + "sensitive":true + }, + "SyntheticSearchPlaceIndexForTextSummaryString":{ + "type":"string", + "sensitive":true + }, + "ThrottlingException":{ + "type":"structure", + "required":["Message"], + "members":{ + "Message":{ + "shape":"String", + "locationName":"message" + } + }, + "error":{ + "httpStatusCode":429, + "senderFault":true + }, + "exception":true, + "retryable":{"throttling":false} + }, + "Timestamp":{ + "type":"timestamp", + "timestampFormat":"iso8601" + }, + "Token":{ + "type":"string", + "max":2000, + "min":1 + }, + "ValidationException":{ + "type":"structure", + "required":[ + "FieldList", + "Message", + "Reason" + ], + "members":{ + "FieldList":{ + "shape":"ValidationExceptionFieldList", + "locationName":"fieldList" + }, + "Message":{ + "shape":"String", + "locationName":"message" + }, + "Reason":{ + "shape":"ValidationExceptionReason", + "locationName":"reason" + } + }, + "error":{ + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + }, + "ValidationExceptionField":{ + "type":"structure", + "required":[ + "Message", + "Name" + ], + "members":{ + "Message":{ + "shape":"String", + "locationName":"message" + }, + "Name":{ + "shape":"String", + "locationName":"name" + } + } + }, + "ValidationExceptionFieldList":{ + "type":"list", + "member":{"shape":"ValidationExceptionField"} + }, + "ValidationExceptionReason":{ + "type":"string", + "enum":[ + "UnknownOperation", + "Missing", + "CannotParse", + "FieldValidationFailed", + "Other" + ] + } + } +} diff --git a/models/apis/location/2020-11-19/docs-2.json b/models/apis/location/2020-11-19/docs-2.json new file mode 100644 index 0000000000..5d48831990 --- /dev/null +++ b/models/apis/location/2020-11-19/docs-2.json @@ -0,0 +1,1096 @@ +{ + "version": "2.0", + "service": "

Suite of geospatial services including Maps, Places, Tracking, and Geofencing

", + "operations": { + "AssociateTrackerConsumer": "

Creates an association between a geofence collection and a tracker resource. This allows the tracker resource to communicate location data to the linked geofence collection.

", + "BatchDeleteGeofence": "

Deletes a batch of geofences from a geofence collection.

This action deletes the resource permanently. You can't undo this action.

", + "BatchEvaluateGeofences": "

Used in geofence monitoring. Evaluates device positions against the position of geofences in a given geofence collection.

", + "BatchGetDevicePosition": "

A batch request to retrieve device positions.

The response will return the device positions from the last 24 hours.

", + "BatchPutGeofence": "

A batch request for storing geofences into a given geofence collection.

", + "BatchUpdateDevicePosition": "

Uploads a position update for one or more devices to a tracker resource. The data is used for API queries requesting the device position and position history.

Limitation — Location data is sampled at a fixed rate of 1 position per 30 second interval, and retained for 1 year before it is deleted.

", + "CreateGeofenceCollection": "

Creates a geofence collection, which manages and stores geofences.

", + "CreateMap": "

Creates a map resource in your AWS account, which provides map tiles of different styles sourced from global location data providers.

By using Maps, you agree that AWS may transmit your API queries to your selected third party provider for processing, which may be outside the AWS region you are currently using. For more information, see the AWS Service Terms for Amazon Location Service.

", + "CreatePlaceIndex": "

Creates a Place index resource in your AWS account, which supports Places functions with geospatial data sourced from your chosen data provider.

By using Places, you agree that AWS may transmit your API queries to your selected third party provider for processing, which may be outside the AWS region you are currently using.

Because of licensing limitations, you may not use HERE to store results for locations in Japan. For more information, see the AWS Service Terms for Amazon Location Service.

", + "CreateTracker": "

Creates a tracker resource in your AWS account, which lets you retrieve current and historical location of devices.

", + "DeleteGeofenceCollection": "

Deletes a geofence collection from your AWS account.

This action deletes the resource permanently. You can't undo this action. If the geofence collection is the target of a tracker resource, the devices will no longer be monitored.

", + "DeleteMap": "

Deletes a map resource from your AWS account.

This action deletes the resource permanently. You cannot undo this action. If the map is being used in an application, the map may not render.

", + "DeletePlaceIndex": "

Deletes a Place index resource from your AWS account.

This action deletes the resource permanently. You cannot undo this action.

", + "DeleteTracker": "

Deletes a tracker resource from your AWS account.

This action deletes the resource permanently. You can't undo this action. If the tracker resource is in use, you may encounter an error. Make sure that the target resource is not a dependency for your applications.

", + "DescribeGeofenceCollection": "

Retrieves the geofence collection details.

", + "DescribeMap": "

Retrieves the map resource details.

", + "DescribePlaceIndex": "

Retrieves the Place index resource details.

", + "DescribeTracker": "

Retrieves the tracker resource details.

", + "DisassociateTrackerConsumer": "

Removes the association bewteen a tracker resource and a geofence collection.

Once you unlink a tracker resource from a geofence collection, the tracker positions will no longer be automatically evaluated against geofences.

", + "GetDevicePosition": "

Retrieves the latest device position.

Limitation — Device positions are deleted after one year.

", + "GetDevicePositionHistory": "

Retrieves the device position history from a tracker resource within a specified range of time.

Limitation — Device positions are deleted after one year.

", + "GetGeofence": "

Retrieves the geofence details from a geofence collection.

", + "GetMapGlyphs": "

Retrieves glyphs used to display labels on a map.

", + "GetMapSprites": "

Retrieves the sprite sheet corresponding to a map resource. The sprite sheet is a PNG image paired with a JSON document describing the offsets of individual icons that will be displayed on a rendered map.

", + "GetMapStyleDescriptor": "

Retrieves the map style descriptor from a map resource.

The style descriptor contains specifications on how features render on a map. For example, what data to display, what order to display the data in, and the style for the data. Style descriptors follow the Mapbox Style Specification.

", + "GetMapTile": "

Retrieves a vector data tile from the map resource. Map tiles are used by clients to render a map. They are addressed using a grid arrangement with an X coordinate, Y coordinate, and Z (zoom) level.

The origin (0, 0) is the top left of the map. Increasing the zoom level by 1 doubles both the X and Y dimensions, so a tile containing data for the entire world at (0/0/0) will be split into 4 tiles at zoom 1 (1/0/0, 1/0/1, 1/1/0, 1/1/1).

", + "ListGeofenceCollections": "

Lists geofence collections in your AWS account.

", + "ListGeofences": "

Lists geofences stored in a given geofence collection.

", + "ListMaps": "

Lists map resources in your AWS account.

", + "ListPlaceIndexes": "

Lists Place index resources in your AWS account.

", + "ListTrackerConsumers": "

Lists geofence collections currently associated to the given tracker resource.

", + "ListTrackers": "

Lists tracker resources in your AWS account.

", + "PutGeofence": "

Stores a geofence to a given geofence collection, or updates the geometry of an existing geofence if a geofence ID is included in the request.

", + "SearchPlaceIndexForPosition": "

Reverse geocodes a given coordinate and returns a legible address. Allows you to search for Places or points of interest near a given position.

By using Places, you agree that AWS may transmit your API queries to your selected third party provider for processing, which may be outside the AWS region you are currently using.

Because of licensing limitations, you may not use HERE to store results for locations in Japan. For more information, see the AWS Service Terms for Amazon Location Service.

", + "SearchPlaceIndexForText": "

Geocodes free-form text, such as an address, name, city, or region to allow you to search for Places or points of interest.

Includes the option to apply additional parameters to narrow your list of results.

You can search for places near a given position using BiasPosition, or filter results within a bounding box using FilterBBox. Providing both parameters simultaneously returns an error.

By using Places, you agree that AWS may transmit your API queries to your selected third party provider for processing, which may be outside the AWS region you are currently using.

Also, when using HERE as your data provider, you may not (a) use HERE Places for Asset Management, or (b) select the Storage option for the IntendedUse parameter when requesting Places in Japan. For more information, see the AWS Service Terms for Amazon Location Service.

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

The request was denied due to insufficient access or permission. Check with an administrator to verify your permissions.

", + "refs": { + } + }, + "Arn": { + "base": null, + "refs": { + "ArnList$member": null, + "AssociateTrackerConsumerRequest$ConsumerArn": "

The Amazon Resource Name (ARN) for the geofence collection to be associated to tracker resource. Used when you need to specify a resource across all AWS.

", + "CreateGeofenceCollectionResponse$CollectionArn": "

The Amazon Resource Name (ARN) for the geofence collection resource. Used when you need to specify a resource across all AWS.

", + "CreateMapResponse$MapArn": "

The Amazon Resource Name (ARN) for the map resource. Used when you need to specify a resource across all AWS.

", + "CreatePlaceIndexResponse$IndexArn": "

The Amazon Resource Name (ARN) for the Place index resource. Used when you need to specify a resource across all AWS.

", + "CreateTrackerResponse$TrackerArn": "

The Amazon Resource Name (ARN) for the tracker resource. Used when you need to specify a resource across all AWS.

", + "DescribeGeofenceCollectionResponse$CollectionArn": "

The Amazon Resource Name (ARN) for the geofence collection resource. Used when you need to specify a resource across all AWS.

", + "DescribeMapResponse$MapArn": "

The Amazon Resource Name (ARN) for the map resource. Used when you need to specify a resource across all AWS.

", + "DescribePlaceIndexResponse$IndexArn": "

The Amazon Resource Name (ARN) for the Place index resource. Used when you need to specify a resource across all AWS.

", + "DescribeTrackerResponse$TrackerArn": "

The Amazon Resource Name (ARN) for the tracker resource. Used when you need to specify a resource across all AWS.

", + "DisassociateTrackerConsumerRequest$ConsumerArn": "

The Amazon Resource Name (ARN) for the geofence collection to be disassociated from the tracker resource. Used when you need to specify a resource across all AWS.

" + } + }, + "ArnList": { + "base": null, + "refs": { + "ListTrackerConsumersResponse$ConsumerArns": "

Contains the list of geofence collection ARNs associated to the tracker resource.

" + } + }, + "AssociateTrackerConsumerRequest": { + "base": null, + "refs": { + } + }, + "AssociateTrackerConsumerResponse": { + "base": null, + "refs": { + } + }, + "BatchDeleteGeofenceError": { + "base": "

Contains error details for each geofence that failed to delete from the geofence collection.

", + "refs": { + "BatchDeleteGeofenceErrorList$member": null + } + }, + "BatchDeleteGeofenceErrorList": { + "base": null, + "refs": { + "BatchDeleteGeofenceResponse$Errors": "

Contains error details for each geofence that failed to delete.

" + } + }, + "BatchDeleteGeofenceRequest": { + "base": null, + "refs": { + } + }, + "BatchDeleteGeofenceRequestGeofenceIdsList": { + "base": null, + "refs": { + "BatchDeleteGeofenceRequest$GeofenceIds": "

The batch of geofences to be deleted.

" + } + }, + "BatchDeleteGeofenceResponse": { + "base": null, + "refs": { + } + }, + "BatchEvaluateGeofencesError": { + "base": "

Contains error details for each device that failed to evaluate its position against the geofences in a given geofence collection.

", + "refs": { + "BatchEvaluateGeofencesErrorList$member": null + } + }, + "BatchEvaluateGeofencesErrorList": { + "base": null, + "refs": { + "BatchEvaluateGeofencesResponse$Errors": "

Contains error details for each device that failed to evaluate its position against the given geofence collection.

" + } + }, + "BatchEvaluateGeofencesRequest": { + "base": null, + "refs": { + } + }, + "BatchEvaluateGeofencesRequestDevicePositionUpdatesList": { + "base": null, + "refs": { + "BatchEvaluateGeofencesRequest$DevicePositionUpdates": "

Contains device details for each device to be evaluated against the given geofence collection.

" + } + }, + "BatchEvaluateGeofencesResponse": { + "base": null, + "refs": { + } + }, + "BatchGetDevicePositionError": { + "base": "

Contains error details for each device that didn't return a position.

", + "refs": { + "BatchGetDevicePositionErrorList$member": null + } + }, + "BatchGetDevicePositionErrorList": { + "base": null, + "refs": { + "BatchGetDevicePositionResponse$Errors": "

Contains error details for each device that failed to send its position to the tracker resource.

" + } + }, + "BatchGetDevicePositionRequest": { + "base": null, + "refs": { + } + }, + "BatchGetDevicePositionRequestDeviceIdsList": { + "base": null, + "refs": { + "BatchGetDevicePositionRequest$DeviceIds": "

Devices whose position you want to retrieve.

" + } + }, + "BatchGetDevicePositionRequestTrackerNameString": { + "base": null, + "refs": { + "BatchGetDevicePositionRequest$TrackerName": "

The tracker resource retrieving the device position.

" + } + }, + "BatchGetDevicePositionResponse": { + "base": null, + "refs": { + } + }, + "BatchItemError": { + "base": "

Contains the batch request error details associated with the request.

", + "refs": { + "BatchDeleteGeofenceError$Error": "

Contains details associated to the batch error.

", + "BatchEvaluateGeofencesError$Error": "

Contains details associated to the batch error.

", + "BatchGetDevicePositionError$Error": "

Contains details related to the error code.

", + "BatchPutGeofenceError$Error": "

Contains details associated to the batch error.

", + "BatchUpdateDevicePositionError$Error": "

Contains details related to the error code such as the error code and error message.

" + } + }, + "BatchItemErrorCode": { + "base": null, + "refs": { + "BatchItemError$Code": "

The error code associated with the batch request error.

" + } + }, + "BatchPutGeofenceError": { + "base": "

Contains error details for each geofence that failed to be stored in a given geofence collection.

", + "refs": { + "BatchPutGeofenceErrorList$member": null + } + }, + "BatchPutGeofenceErrorList": { + "base": null, + "refs": { + "BatchPutGeofenceResponse$Errors": "

Contains additional error details for each geofence that failed to be stored in a geofence collection.

" + } + }, + "BatchPutGeofenceRequest": { + "base": null, + "refs": { + } + }, + "BatchPutGeofenceRequestEntriesList": { + "base": null, + "refs": { + "BatchPutGeofenceRequest$Entries": "

The batch of geofences to be stored in a geofence collection.

" + } + }, + "BatchPutGeofenceRequestEntry": { + "base": "

Contains geofence details.

", + "refs": { + "BatchPutGeofenceRequestEntriesList$member": null + } + }, + "BatchPutGeofenceResponse": { + "base": null, + "refs": { + } + }, + "BatchPutGeofenceSuccess": { + "base": "

Contains a summary of each geofence that was successfully stored in a given geofence collection.

", + "refs": { + "BatchPutGeofenceSuccessList$member": null + } + }, + "BatchPutGeofenceSuccessList": { + "base": null, + "refs": { + "BatchPutGeofenceResponse$Successes": "

Contains each geofence that was successfully stored in a geofence collection.

" + } + }, + "BatchUpdateDevicePositionError": { + "base": "

Contains error details for each device that failed to update its position.

", + "refs": { + "BatchUpdateDevicePositionErrorList$member": null + } + }, + "BatchUpdateDevicePositionErrorList": { + "base": null, + "refs": { + "BatchUpdateDevicePositionResponse$Errors": "

Contains error details for each device that failed to update its position.

" + } + }, + "BatchUpdateDevicePositionRequest": { + "base": null, + "refs": { + } + }, + "BatchUpdateDevicePositionRequestUpdatesList": { + "base": null, + "refs": { + "BatchUpdateDevicePositionRequest$Updates": "

Contains the position update details for each device.

" + } + }, + "BatchUpdateDevicePositionResponse": { + "base": null, + "refs": { + } + }, + "Blob": { + "base": null, + "refs": { + "GetMapGlyphsResponse$Blob": "

The blob's content type.

", + "GetMapSpritesResponse$Blob": "

Contains the body of the sprite sheet or JSON offset file.

", + "GetMapStyleDescriptorResponse$Blob": "

Contains the body of the style descriptor.

", + "GetMapTileResponse$Blob": "

Contains Mapbox Vector Tile (MVT) data.

" + } + }, + "BoundingBox": { + "base": null, + "refs": { + "SearchPlaceIndexForTextRequest$FilterBBox": "

Filters the results by returning only Places within the provided bounding box. An optional parameter.

The first 2 bbox parameters describe the lower southwest corner:

For example, bbox=xLongitudeSW&bbox=yLatitudeSW.

The next bbox parameters describe the upper northeast corner:

For example, bbox=xLongitudeNE&bbox=yLatitudeNE

", + "SearchPlaceIndexForTextSummary$FilterBBox": "

Contains the coordinates for the optional bounding box coordinated entered in the geocoding request.

", + "SearchPlaceIndexForTextSummary$ResultBBox": "

A bounding box that contains the search results within the specified area indicated by FilterBBox. A subset of bounding box specified using FilterBBox.

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

The request was unsuccessful due to a conflict.

", + "refs": { + } + }, + "CountryCode": { + "base": null, + "refs": { + "CountryCodeList$member": null + } + }, + "CountryCodeList": { + "base": null, + "refs": { + "SearchPlaceIndexForTextRequest$FilterCountries": "

Limits the search to the given a list of countries/regions. An optional parameter.

", + "SearchPlaceIndexForTextSummary$FilterCountries": "

Contains the country filter entered in the geocoding request.

" + } + }, + "CreateGeofenceCollectionRequest": { + "base": null, + "refs": { + } + }, + "CreateGeofenceCollectionResponse": { + "base": null, + "refs": { + } + }, + "CreateMapRequest": { + "base": null, + "refs": { + } + }, + "CreateMapResponse": { + "base": null, + "refs": { + } + }, + "CreatePlaceIndexRequest": { + "base": null, + "refs": { + } + }, + "CreatePlaceIndexResponse": { + "base": null, + "refs": { + } + }, + "CreateTrackerRequest": { + "base": null, + "refs": { + } + }, + "CreateTrackerResponse": { + "base": null, + "refs": { + } + }, + "DataSourceConfiguration": { + "base": "

Specifies the data storage option chosen for requesting Places.

By using Places, you agree that AWS may transmit your API queries to your selected third party provider for processing, which may be outside the AWS region you are currently using.

Also, when using HERE as your data provider, you may not (a) use HERE Places for Asset Management, or (b) select the Storage option for the IntendedUse parameter when requesting Places in Japan. For more information, see the AWS Service Terms for Amazon Location Service.

", + "refs": { + "CreatePlaceIndexRequest$DataSourceConfiguration": "

Specifies the data storage option for requesting Places.

", + "DescribePlaceIndexResponse$DataSourceConfiguration": "

The specified data storage option for requesting Places.

" + } + }, + "DeleteGeofenceCollectionRequest": { + "base": null, + "refs": { + } + }, + "DeleteGeofenceCollectionResponse": { + "base": null, + "refs": { + } + }, + "DeleteMapRequest": { + "base": null, + "refs": { + } + }, + "DeleteMapResponse": { + "base": null, + "refs": { + } + }, + "DeletePlaceIndexRequest": { + "base": null, + "refs": { + } + }, + "DeletePlaceIndexResponse": { + "base": null, + "refs": { + } + }, + "DeleteTrackerRequest": { + "base": null, + "refs": { + } + }, + "DeleteTrackerResponse": { + "base": null, + "refs": { + } + }, + "DescribeGeofenceCollectionRequest": { + "base": null, + "refs": { + } + }, + "DescribeGeofenceCollectionResponse": { + "base": null, + "refs": { + } + }, + "DescribeMapRequest": { + "base": null, + "refs": { + } + }, + "DescribeMapResponse": { + "base": null, + "refs": { + } + }, + "DescribePlaceIndexRequest": { + "base": null, + "refs": { + } + }, + "DescribePlaceIndexResponse": { + "base": null, + "refs": { + } + }, + "DescribeTrackerRequest": { + "base": null, + "refs": { + } + }, + "DescribeTrackerResponse": { + "base": null, + "refs": { + } + }, + "DevicePosition": { + "base": "

Contains the device position details.

", + "refs": { + "DevicePositionList$member": null + } + }, + "DevicePositionList": { + "base": null, + "refs": { + "BatchGetDevicePositionResponse$DevicePositions": "

Contains device position details such as the device ID, position, and timestamps for when the position was received and sampled.

", + "GetDevicePositionHistoryResponse$DevicePositions": "

Contains the position history details for the requested device.

" + } + }, + "DevicePositionUpdate": { + "base": "

Contains the position update details for a device.

", + "refs": { + "BatchEvaluateGeofencesRequestDevicePositionUpdatesList$member": null, + "BatchUpdateDevicePositionRequestUpdatesList$member": null + } + }, + "DisassociateTrackerConsumerRequest": { + "base": null, + "refs": { + } + }, + "DisassociateTrackerConsumerResponse": { + "base": null, + "refs": { + } + }, + "Double": { + "base": null, + "refs": { + "BoundingBox$member": null, + "Position$member": null + } + }, + "GeofenceGeometry": { + "base": "

Contains the geofence geometry details.

Limitation — Amazon Location does not currently support polygons with holes, multipolygons, polygons that are wound clockwise, or that cross the antimeridian.

", + "refs": { + "BatchPutGeofenceRequestEntry$Geometry": "

The geometry details for the geofence.

", + "GetGeofenceResponse$Geometry": "

Contains the geofence geometry details describing a polygon.

", + "ListGeofenceResponseEntry$Geometry": "

Contains the geofence geometry details describing a polygon.

", + "PutGeofenceRequest$Geometry": "

Contains the polygon details to specify the position of the geofence.

" + } + }, + "GetDevicePositionHistoryRequest": { + "base": null, + "refs": { + } + }, + "GetDevicePositionHistoryResponse": { + "base": null, + "refs": { + } + }, + "GetDevicePositionRequest": { + "base": null, + "refs": { + } + }, + "GetDevicePositionResponse": { + "base": null, + "refs": { + } + }, + "GetGeofenceRequest": { + "base": null, + "refs": { + } + }, + "GetGeofenceResponse": { + "base": null, + "refs": { + } + }, + "GetMapGlyphsRequest": { + "base": null, + "refs": { + } + }, + "GetMapGlyphsRequestFontUnicodeRangeString": { + "base": null, + "refs": { + "GetMapGlyphsRequest$FontUnicodeRange": "

A Unicode range of characters to download glyphs for. Each response will contain 256 characters. For example, 0-255 includes all characters from range U+0000 to 00FF. Must be aligned to multiples of 256.

" + } + }, + "GetMapGlyphsResponse": { + "base": null, + "refs": { + } + }, + "GetMapSpritesRequest": { + "base": null, + "refs": { + } + }, + "GetMapSpritesRequestFileNameString": { + "base": null, + "refs": { + "GetMapSpritesRequest$FileName": "

The name of the sprite file. Use the following file names for the sprite sheet:

For the JSON document contain image offsets. Use the following file names:

" + } + }, + "GetMapSpritesResponse": { + "base": null, + "refs": { + } + }, + "GetMapStyleDescriptorRequest": { + "base": null, + "refs": { + } + }, + "GetMapStyleDescriptorResponse": { + "base": null, + "refs": { + } + }, + "GetMapTileRequest": { + "base": null, + "refs": { + } + }, + "GetMapTileRequestXString": { + "base": null, + "refs": { + "GetMapTileRequest$X": "

The X axis value for the map tile.

" + } + }, + "GetMapTileRequestYString": { + "base": null, + "refs": { + "GetMapTileRequest$Y": "

The Y axis value for the map tile.

" + } + }, + "GetMapTileRequestZString": { + "base": null, + "refs": { + "GetMapTileRequest$Z": "

The zoom value for the map tile.

" + } + }, + "GetMapTileResponse": { + "base": null, + "refs": { + } + }, + "Id": { + "base": null, + "refs": { + "BatchDeleteGeofenceError$GeofenceId": "

The geofence associated with the error message.

", + "BatchDeleteGeofenceRequestGeofenceIdsList$member": null, + "BatchEvaluateGeofencesError$DeviceId": "

The device associated with the position evaluation error.

", + "BatchGetDevicePositionError$DeviceId": "

The ID of the device that didn't return a position.

", + "BatchGetDevicePositionRequestDeviceIdsList$member": null, + "BatchPutGeofenceError$GeofenceId": "

The geofence associated with the error message.

", + "BatchPutGeofenceRequestEntry$GeofenceId": "

The identifier for the geofence to be stored in a given geofence collection.

", + "BatchPutGeofenceSuccess$GeofenceId": "

The geofence successfully stored in a geofence collection.

", + "BatchUpdateDevicePositionError$DeviceId": "

The device associated with the failed location update.

", + "DevicePosition$DeviceId": "

The device whose position you retrieved.

", + "DevicePositionUpdate$DeviceId": "

The device associated to the position update.

", + "GetDevicePositionHistoryRequest$DeviceId": "

The device whose position history you want to retrieve.

", + "GetDevicePositionRequest$DeviceId": "

The device whose position you want to retreieve.

", + "GetDevicePositionResponse$DeviceId": "

The device whose position you retrieved.

", + "GetGeofenceRequest$GeofenceId": "

The geofence you're retrieving details for.

", + "GetGeofenceResponse$GeofenceId": "

The geofence identifier.

", + "ListGeofenceResponseEntry$GeofenceId": "

The geofence identifier.

", + "PutGeofenceRequest$GeofenceId": "

An identifier for the geofence. For example, ExampleGeofence-1.

", + "PutGeofenceResponse$GeofenceId": "

The geofence identifier entered in the request.

" + } + }, + "IntendedUse": { + "base": null, + "refs": { + "DataSourceConfiguration$IntendedUse": "

Specifies how the results of an operation will be stored by the caller.

Valid values include:

Default value: SingleUse

" + } + }, + "InternalServerException": { + "base": "

The request has failed to process because of an unknown server error, exception, or failure.

", + "refs": { + } + }, + "LinearRing": { + "base": null, + "refs": { + "LinearRings$member": null + } + }, + "LinearRings": { + "base": null, + "refs": { + "GeofenceGeometry$Polygon": "

An array of 1 or more linear rings. A linear ring is an array of 4 or more vertices, where the first and last vertex are the same to form a closed boundary. Each vertex is a 2-dimensional point of the form: [longitude, latitude].

The first linear ring is an outer ring, describing the polygon's boundary. Subsequent linear rings may be inner or outer rings to describe holes and islands. Outer rings must list their vertices in counter-clockwise order around the ring's center, where the left side is the polygon's exterior. Inner rings must list their vertices in clockwise order, where the left side is the polygon's interior.

" + } + }, + "ListGeofenceCollectionsRequest": { + "base": null, + "refs": { + } + }, + "ListGeofenceCollectionsRequestMaxResultsInteger": { + "base": null, + "refs": { + "ListGeofenceCollectionsRequest$MaxResults": "

An optional limit for the number of resources returned in a single call.

Default value: 100

" + } + }, + "ListGeofenceCollectionsResponse": { + "base": null, + "refs": { + } + }, + "ListGeofenceCollectionsResponseEntry": { + "base": "

Contains the geofence collection details.

", + "refs": { + "ListGeofenceCollectionsResponseEntryList$member": null + } + }, + "ListGeofenceCollectionsResponseEntryList": { + "base": null, + "refs": { + "ListGeofenceCollectionsResponse$Entries": "

Lists the geofence collections that exist in your AWS account.

" + } + }, + "ListGeofenceResponseEntry": { + "base": "

Contains a list of geofences stored in a given geofence collection.

", + "refs": { + "ListGeofenceResponseEntryList$member": null + } + }, + "ListGeofenceResponseEntryList": { + "base": null, + "refs": { + "ListGeofencesResponse$Entries": "

Contains a list of geofences stored in the geofence collection.

" + } + }, + "ListGeofencesRequest": { + "base": null, + "refs": { + } + }, + "ListGeofencesResponse": { + "base": null, + "refs": { + } + }, + "ListMapsRequest": { + "base": null, + "refs": { + } + }, + "ListMapsRequestMaxResultsInteger": { + "base": null, + "refs": { + "ListMapsRequest$MaxResults": "

An optional limit for the number of resources returned in a single call.

Default value: 100

" + } + }, + "ListMapsResponse": { + "base": null, + "refs": { + } + }, + "ListMapsResponseEntry": { + "base": "

Contains details of an existing map resource in your AWS account.

", + "refs": { + "ListMapsResponseEntryList$member": null + } + }, + "ListMapsResponseEntryList": { + "base": null, + "refs": { + "ListMapsResponse$Entries": "

Contains a list of maps in your AWS account

" + } + }, + "ListPlaceIndexesRequest": { + "base": null, + "refs": { + } + }, + "ListPlaceIndexesRequestMaxResultsInteger": { + "base": null, + "refs": { + "ListPlaceIndexesRequest$MaxResults": "

An optional limit for the maximum number of results returned in a single call.

Default value: 100

" + } + }, + "ListPlaceIndexesResponse": { + "base": null, + "refs": { + } + }, + "ListPlaceIndexesResponseEntry": { + "base": "

A Place index resource listed in your AWS account.

", + "refs": { + "ListPlaceIndexesResponseEntryList$member": null + } + }, + "ListPlaceIndexesResponseEntryList": { + "base": null, + "refs": { + "ListPlaceIndexesResponse$Entries": "

Lists the Place index resources that exist in your AWS account

" + } + }, + "ListTrackerConsumersRequest": { + "base": null, + "refs": { + } + }, + "ListTrackerConsumersRequestMaxResultsInteger": { + "base": null, + "refs": { + "ListTrackerConsumersRequest$MaxResults": "

An optional limit for the number of resources returned in a single call.

Default value: 100

" + } + }, + "ListTrackerConsumersResponse": { + "base": null, + "refs": { + } + }, + "ListTrackersRequest": { + "base": null, + "refs": { + } + }, + "ListTrackersRequestMaxResultsInteger": { + "base": null, + "refs": { + "ListTrackersRequest$MaxResults": "

An optional limit for the number of resources returned in a single call.

Default value: 100

" + } + }, + "ListTrackersResponse": { + "base": null, + "refs": { + } + }, + "ListTrackersResponseEntry": { + "base": "

Contains the tracker resource details.

", + "refs": { + "ListTrackersResponseEntryList$member": null + } + }, + "ListTrackersResponseEntryList": { + "base": null, + "refs": { + "ListTrackersResponse$Entries": "

Contains tracker resources in your AWS account. Details include tracker name, description and timestamps for when the tracker was created and last updated.

" + } + }, + "MapConfiguration": { + "base": "

Specifies the map tile style selected from an available provider.

", + "refs": { + "CreateMapRequest$Configuration": "

Specifies the map style selected from an available data provider.

", + "DescribeMapResponse$Configuration": "

Specifies the map tile style selected from a partner data provider.

" + } + }, + "MapStyle": { + "base": null, + "refs": { + "MapConfiguration$Style": "

Specifies the map style selected from an available data provider.

Valid styles: VectorEsriLightGrayCanvas, VectorEsriLight, VectorEsriStreets, VectorEsriNavigation, VectorEsriDarkGrayCanvas, VectorEsriLightGrayCanvas, VectorHereBerlin

When using HERE as your data provider, and selecting the Style VectorHereBerlin, you may not use HERE Maps for Asset Management. See the AWS Service Terms for Amazon Location Service.

" + } + }, + "Place": { + "base": "

Contains details about addresses or points of interest that match the search criteria.

", + "refs": { + "SearchForPositionResult$Place": "

Contains details about the relevant point of interest.

", + "SearchForTextResult$Place": "

Contains details about the relevant point of interest.

" + } + }, + "PlaceGeometry": { + "base": "

Places uses a point geometry to specify a location or a Place.

", + "refs": { + "Place$Geometry": null + } + }, + "PlaceIndexSearchResultLimit": { + "base": null, + "refs": { + "SearchPlaceIndexForPositionRequest$MaxResults": "

An optional paramer. The maximum number of results returned per request.

Default value: 50

", + "SearchPlaceIndexForPositionSummary$MaxResults": "

An optional parameter. The maximum number of results returned per request.

Default value: 50

", + "SearchPlaceIndexForTextRequest$MaxResults": "

An optional parameter. The maximum number of results returned per request.

The default: 50

", + "SearchPlaceIndexForTextSummary$MaxResults": "

Contains the maximum number of results indicated for the request.

" + } + }, + "Position": { + "base": null, + "refs": { + "DevicePosition$Position": "

The last known device position.

", + "DevicePositionUpdate$Position": "

The latest device position defined in WGS 84 format: [Xlongitude, Ylatitude].

", + "GetDevicePositionResponse$Position": "

The last known device position.

", + "LinearRing$member": null, + "PlaceGeometry$Point": "

A single point geometry specifies a location for a Place using WGS 84 coordinates:

", + "SearchPlaceIndexForPositionRequest$Position": "

Specifies a coordinate for the query defined by a longitude, and latitude.

For example, position=xLongitude&position=yLatitude .

", + "SearchPlaceIndexForPositionSummary$Position": "

The position given in the reverse geocoding request.

", + "SearchPlaceIndexForTextRequest$BiasPosition": "

Searches for results closest to the given position. An optional parameter defined by longitude, and latitude.

For example, bias=xLongitude&bias=yLatitude.

", + "SearchPlaceIndexForTextSummary$BiasPosition": "

Contains the coordinates for the bias position entered in the geocoding request.

" + } + }, + "PricingPlan": { + "base": null, + "refs": { + "CreateGeofenceCollectionRequest$PricingPlan": "

Specifies the pricing plan for your geofence collection. There's three pricing plan options:

For additional details and restrictions on each pricing plan option, see the Amazon Location Service pricing page.

", + "CreateMapRequest$PricingPlan": "

Specifies the pricing plan for your map resource. There's three pricing plan options:

For additional details and restrictions on each pricing plan option, see the Amazon Location Service pricing page.

", + "CreatePlaceIndexRequest$PricingPlan": "

Specifies the pricing plan for your Place index resource. There's three pricing plan options:

For additional details and restrictions on each pricing plan option, see the Amazon Location Service pricing page.

", + "CreateTrackerRequest$PricingPlan": "

Specifies the pricing plan for your tracker resource. There's three pricing plan options:

For additional details and restrictions on each pricing plan option, see the Amazon Location Service pricing page.

" + } + }, + "PutGeofenceRequest": { + "base": null, + "refs": { + } + }, + "PutGeofenceResponse": { + "base": null, + "refs": { + } + }, + "ResourceDescription": { + "base": null, + "refs": { + "CreateGeofenceCollectionRequest$Description": "

An optional description for the geofence collection.

", + "CreateMapRequest$Description": "

An optional description for the map resource.

", + "CreatePlaceIndexRequest$Description": "

The optional description for the Place index resource.

", + "CreateTrackerRequest$Description": "

An optional description for the tracker resource.

", + "DescribeGeofenceCollectionResponse$Description": "

The optional description for the geofence collection.

", + "DescribeMapResponse$Description": "

The optional description for the map resource.

", + "DescribePlaceIndexResponse$Description": "

The optional description for the Place index resource.

", + "DescribeTrackerResponse$Description": "

The optional description for the tracker resource.

", + "ListGeofenceCollectionsResponseEntry$Description": "

The description for the geofence collection

", + "ListMapsResponseEntry$Description": "

The description for the map resource.

", + "ListPlaceIndexesResponseEntry$Description": "

The optional description for the Place index resource.

", + "ListTrackersResponseEntry$Description": "

The description for the tracker resource.

" + } + }, + "ResourceName": { + "base": null, + "refs": { + "AssociateTrackerConsumerRequest$TrackerName": "

The name of the tracker resource to be associated with a geofence collection.

", + "BatchDeleteGeofenceRequest$CollectionName": "

The geofence collection storing the geofences to be deleted.

", + "BatchEvaluateGeofencesRequest$CollectionName": "

The geofence collection used in evaluating the position of devices against its geofences.

", + "BatchPutGeofenceRequest$CollectionName": "

The geofence collection storing the geofences.

", + "BatchUpdateDevicePositionRequest$TrackerName": "

The name of the tracker resource to update.

", + "CreateGeofenceCollectionRequest$CollectionName": "

A custom name for the geofence collection.

Requirements:

", + "CreateGeofenceCollectionResponse$CollectionName": "

The name for the geofence collection.

", + "CreateMapRequest$MapName": "

The name for the map resource.

Requirements:

", + "CreateMapResponse$MapName": "

The name of the map resource.

", + "CreatePlaceIndexRequest$IndexName": "

The name of the Place index resource.

Requirements:

", + "CreatePlaceIndexResponse$IndexName": "

The name for the Place index resource.

", + "CreateTrackerRequest$TrackerName": "

The name for the tracker resource.

Requirements:

", + "CreateTrackerResponse$TrackerName": "

The name of the tracker resource.

", + "DeleteGeofenceCollectionRequest$CollectionName": "

The name of the geofence collection to be deleted.

", + "DeleteMapRequest$MapName": "

The name of the map resource to be deleted.

", + "DeletePlaceIndexRequest$IndexName": "

The name of the Place index resource to be deleted.

", + "DeleteTrackerRequest$TrackerName": "

The name of the tracker resource to be deleted.

", + "DescribeGeofenceCollectionRequest$CollectionName": "

The name of the geofence collection.

", + "DescribeGeofenceCollectionResponse$CollectionName": "

The name of the geofence collection.

", + "DescribeMapRequest$MapName": "

The name of the map resource.

", + "DescribeMapResponse$MapName": "

The map style selected from an available provider.

", + "DescribePlaceIndexRequest$IndexName": "

The name of the Place index resource.

", + "DescribePlaceIndexResponse$IndexName": "

The name of the Place index resource being described.

", + "DescribeTrackerRequest$TrackerName": "

The name of the tracker resource.

", + "DescribeTrackerResponse$TrackerName": "

The name of the tracker resource.

", + "DisassociateTrackerConsumerRequest$TrackerName": "

The name of the tracker resource to be dissociated from the consumer.

", + "GetDevicePositionHistoryRequest$TrackerName": "

The tracker resource receiving the request for the device position history.

", + "GetDevicePositionRequest$TrackerName": "

The tracker resource receiving the position update.

", + "GetGeofenceRequest$CollectionName": "

The geofence collection storing the target geofence.

", + "GetMapGlyphsRequest$MapName": "

The map resource associated with the glyph file.

", + "GetMapSpritesRequest$MapName": "

The map resource associated with the sprite file.

", + "GetMapStyleDescriptorRequest$MapName": "

The map resource to retrieve the style descriptor from.

", + "GetMapTileRequest$MapName": "

The map resource to retrieve the map tiles from.

", + "ListGeofenceCollectionsResponseEntry$CollectionName": "

The name of the geofence collection.

", + "ListGeofencesRequest$CollectionName": "

The name of the geofence collection storing the list of geofences.

", + "ListMapsResponseEntry$MapName": "

The name of the associated map resource.

", + "ListPlaceIndexesResponseEntry$IndexName": "

The name of the Place index resource.

", + "ListTrackerConsumersRequest$TrackerName": "

The tracker resource whose associated geofence collections you want to list.

", + "ListTrackersResponseEntry$TrackerName": "

The name of the tracker resource.

", + "PutGeofenceRequest$CollectionName": "

The geofence collection to store the geofence in.

", + "SearchPlaceIndexForPositionRequest$IndexName": "

The name of the Place index resource you want to use for the search.

", + "SearchPlaceIndexForTextRequest$IndexName": "

The name of the Place index resource you want to use for the search.

" + } + }, + "ResourceNotFoundException": { + "base": "

The resource that you've entered was not found in your AWS account.

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

Specifies a single point of interest, or Place as a result of a search query obtained from a dataset configured in the Place index Resource.

", + "refs": { + "SearchForPositionResultList$member": null + } + }, + "SearchForPositionResultList": { + "base": null, + "refs": { + "SearchPlaceIndexForPositionResponse$Results": "

Returns a list of Places closest to the specified position. Each result contains additional information about the Places returned.

" + } + }, + "SearchForTextResult": { + "base": "

Contains relevant Places returned by calling SearchPlaceIndexForText.

", + "refs": { + "SearchForTextResultList$member": null + } + }, + "SearchForTextResultList": { + "base": null, + "refs": { + "SearchPlaceIndexForTextResponse$Results": "

A list of Places closest to the specified position. Each result contains additional information about the specific point of interest.

" + } + }, + "SearchPlaceIndexForPositionRequest": { + "base": null, + "refs": { + } + }, + "SearchPlaceIndexForPositionResponse": { + "base": null, + "refs": { + } + }, + "SearchPlaceIndexForPositionSummary": { + "base": "

A summary of the reverse geocoding request sent using SearchPlaceIndexForPosition.

", + "refs": { + "SearchPlaceIndexForPositionResponse$Summary": "

Contains a summary of the request.

" + } + }, + "SearchPlaceIndexForTextRequest": { + "base": null, + "refs": { + } + }, + "SearchPlaceIndexForTextResponse": { + "base": null, + "refs": { + } + }, + "SearchPlaceIndexForTextSummary": { + "base": "

A summary of the geocoding request sent using SearchPlaceIndexForText.

", + "refs": { + "SearchPlaceIndexForTextResponse$Summary": "

Contains a summary of the request. Contains the BiasPosition, DataSource, FilterBBox, FilterCountries, MaxResults, ResultBBox, and Text.

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

A message with the reason for the batch request error.

", + "ConflictException$Message": null, + "CreatePlaceIndexRequest$DataSource": "

Specifies the data provider of geospatial data.

", + "DescribeMapResponse$DataSource": "

Specifies the data provider for the associated map tiles.

", + "DescribePlaceIndexResponse$DataSource": "

The data provider of geospatial data.

", + "GetGeofenceResponse$Status": "

Identifies the state of the geofence. A geofence will hold one of the following states:

", + "GetMapGlyphsRequest$FontStack": "

A comma-separated list of fonts to load glyphs from in order of preference.. For example, Noto Sans, Arial Unicode.

", + "GetMapGlyphsResponse$ContentType": "

The map glyph content type. For example, application/octet-stream.

", + "GetMapSpritesResponse$ContentType": "

The content type of the sprite sheet and offsets. For example, the sprite sheet content type is image/png, and the sprite offset JSON document is application/json.

", + "GetMapStyleDescriptorResponse$ContentType": "

The style descriptor's content type. For example, application/json.

", + "GetMapTileResponse$ContentType": "

The map tile's content type. For example, application/vnd.mapbox-vector-tile.

", + "InternalServerException$Message": null, + "ListGeofenceResponseEntry$Status": "

Identifies the state of the geofence. A geofence will hold one of the following states:

", + "ListMapsResponseEntry$DataSource": "

Specifies the data provider for the associated map tiles.

", + "ListPlaceIndexesResponseEntry$DataSource": "

The data provider of geospatial data.

", + "Place$AddressNumber": "

The numerical portion of an address, such as a building number.

", + "Place$Country": "

A country/region specified using ISO 3166 3-digit country/region code. For example, CAN.

", + "Place$Label": "

The full name and address of the point of interest such as a city, region, or country. For example, 123 Any Street, Any Town, USA.

", + "Place$Municipality": "

A name for a local area, such as a city or town name. For example, Toronto.

", + "Place$Neighborhood": "

The name of a community district. For example, Downtown.

", + "Place$PostalCode": "

A group of numbers and letters in a country-specific format, which accompanies the address for the purpose of identifying a location.

", + "Place$Region": "

A name for an area or geographical division, such as a province or state name. For example, British Columbia.

", + "Place$Street": "

The name for a street or a road to identify a location. For example, Main Street.

", + "Place$SubRegion": "

A country, or an area that's part of a larger region . For example, Metro Vancouver.

", + "ResourceNotFoundException$Message": null, + "SearchPlaceIndexForPositionSummary$DataSource": "

The data provider of geospatial data for the Place index resource.

", + "SearchPlaceIndexForTextSummary$DataSource": "

The data provider of geospatial data for the Place index resource.

", + "ThrottlingException$Message": null, + "ValidationException$Message": null, + "ValidationExceptionField$Message": "

A message with the reason for the validation exception error.

", + "ValidationExceptionField$Name": "

The field name where the invalid entry was detected.

" + } + }, + "SyntheticSearchPlaceIndexForTextRequestString": { + "base": null, + "refs": { + "SearchPlaceIndexForTextRequest$Text": "

The address, name, city, or region to be used in the search. In free-form text format. For example, 123 Any Street.

" + } + }, + "SyntheticSearchPlaceIndexForTextSummaryString": { + "base": null, + "refs": { + "SearchPlaceIndexForTextSummary$Text": "

The address, name, city or region to be used in the geocoding request. In free-form text format. For example, Vancouver.

" + } + }, + "ThrottlingException": { + "base": "

The request was denied due to request throttling.

", + "refs": { + } + }, + "Timestamp": { + "base": null, + "refs": { + "BatchEvaluateGeofencesError$SampleTime": "

Specifies a timestamp for when the error occurred in ISO 8601 format: YYYY-MM-DDThh:mm:ss.sssZ

", + "BatchPutGeofenceSuccess$CreateTime": "

The timestamp for when the geofence was stored in a geofence collection in ISO 8601 format: YYYY-MM-DDThh:mm:ss.sssZ

", + "BatchPutGeofenceSuccess$UpdateTime": "

The timestamp for when the geofence was last updated in ISO 8601 format: YYYY-MM-DDThh:mm:ss.sssZ

", + "BatchUpdateDevicePositionError$SampleTime": "

The timestamp for when a position sample was attempted in ISO 8601 format: YYYY-MM-DDThh:mm:ss.sssZ.

", + "CreateGeofenceCollectionResponse$CreateTime": "

The timestamp for when the geofence collection was created in ISO 8601 format: YYYY-MM-DDThh:mm:ss.sssZ

", + "CreateMapResponse$CreateTime": "

The timestamp for when the map resource was created in ISO 8601 format: YYYY-MM-DDThh:mm:ss.sssZ.

", + "CreatePlaceIndexResponse$CreateTime": "

The timestamp for when the Place index resource was created in ISO 8601 format: YYYY-MM-DDThh:mm:ss.sssZ.

", + "CreateTrackerResponse$CreateTime": "

The timestamp for when the tracker resource was created in ISO 8601 format: YYYY-MM-DDThh:mm:ss.sssZ.

", + "DescribeGeofenceCollectionResponse$CreateTime": "

The timestamp for when the geofence resource was created in ISO 8601 format: YYYY-MM-DDThh:mm:ss.sssZ

", + "DescribeGeofenceCollectionResponse$UpdateTime": "

The timestamp for when the geofence collection was last updated in ISO 8601 format: YYYY-MM-DDThh:mm:ss.sssZ

", + "DescribeMapResponse$CreateTime": "

The timestamp for when the map resource was created in ISO 8601 format: YYYY-MM-DDThh:mm:ss.sssZ.

", + "DescribeMapResponse$UpdateTime": "

The timestamp for when the map resource was last update in ISO 8601 format: YYYY-MM-DDThh:mm:ss.sssZ.

", + "DescribePlaceIndexResponse$CreateTime": "

The timestamp for when the Place index resource was created in ISO 8601 format: YYYY-MM-DDThh:mm:ss.sssZ.

", + "DescribePlaceIndexResponse$UpdateTime": "

The timestamp for when the Place index resource was last updated in ISO 8601 format: YYYY-MM-DDThh:mm:ss.sssZ.

", + "DescribeTrackerResponse$CreateTime": "

The timestamp for when the tracker resource was created in ISO 8601 format: YYYY-MM-DDThh:mm:ss.sssZ.

", + "DescribeTrackerResponse$UpdateTime": "

The timestamp for when the tracker resource was last updated in ISO 8601 format: YYYY-MM-DDThh:mm:ss.sssZ.

", + "DevicePosition$ReceivedTime": "

The timestamp for when the tracker resource recieved the position in ISO 8601 format: YYYY-MM-DDThh:mm:ss.sssZ.

", + "DevicePosition$SampleTime": "

The timestamp for when the position was detected and sampled in ISO 8601 format: YYYY-MM-DDThh:mm:ss.sssZ.

", + "DevicePositionUpdate$SampleTime": "

The timestamp for when the position update was received in ISO 8601 format: YYYY-MM-DDThh:mm:ss.sssZ

", + "GetDevicePositionHistoryRequest$EndTimeExclusive": "

Specify the end time for the position history in ISO 8601 format: YYYY-MM-DDThh:mm:ss.sssZ.

", + "GetDevicePositionHistoryRequest$StartTimeInclusive": "

Specify the start time for the position history in ISO 8601 format: YYYY-MM-DDThh:mm:ss.sssZ.

", + "GetDevicePositionResponse$ReceivedTime": "

The timestamp for when the tracker resource recieved the position in ISO 8601 format: YYYY-MM-DDThh:mm:ss.sssZ.

", + "GetDevicePositionResponse$SampleTime": "

The timestamp for when the position was detected and sampled in ISO 8601 format: YYYY-MM-DDThh:mm:ss.sssZ.

", + "GetGeofenceResponse$CreateTime": "

The timestamp for when the geofence collection was created in ISO 8601 format: YYYY-MM-DDThh:mm:ss.sssZ

", + "GetGeofenceResponse$UpdateTime": "

The timestamp for when the geofence collection was last updated in ISO 8601 format: YYYY-MM-DDThh:mm:ss.sssZ

", + "ListGeofenceCollectionsResponseEntry$CreateTime": "

The timestamp for when the geofence collection was created in ISO 8601 format: YYYY-MM-DDThh:mm:ss.sssZ

", + "ListGeofenceCollectionsResponseEntry$UpdateTime": "

Specifies a timestamp for when the resource was last updated in ISO 8601 format: YYYY-MM-DDThh:mm:ss.sssZ

", + "ListGeofenceResponseEntry$CreateTime": "

The timestamp for when the geofence was stored in a geofence collection in ISO 8601 format: YYYY-MM-DDThh:mm:ss.sssZ

", + "ListGeofenceResponseEntry$UpdateTime": "

The timestamp for when the geofence was last updated in ISO 8601 format: YYYY-MM-DDThh:mm:ss.sssZ

", + "ListMapsResponseEntry$CreateTime": "

The timestamp for when the map resource was created in ISO 8601 format: YYYY-MM-DDThh:mm:ss.sssZ.

", + "ListMapsResponseEntry$UpdateTime": "

The timestamp for when the map resource was last updated in ISO 8601 format: YYYY-MM-DDThh:mm:ss.sssZ.

", + "ListPlaceIndexesResponseEntry$CreateTime": "

The timestamp for when the Place index resource was created in ISO 8601 format: YYYY-MM-DDThh:mm:ss.sssZ.

", + "ListPlaceIndexesResponseEntry$UpdateTime": "

The timestamp for when the Place index resource was last updated in ISO 8601 format: YYYY-MM-DDThh:mm:ss.sssZ.

", + "ListTrackersResponseEntry$CreateTime": "

The timestamp for when the tracker resource was created in ISO 8601 format: YYYY-MM-DDThh:mm:ss.sssZ.

", + "ListTrackersResponseEntry$UpdateTime": "

The timestamp for when the position was detected and sampled in ISO 8601 format: YYYY-MM-DDThh:mm:ss.sssZ.

", + "PutGeofenceResponse$CreateTime": "

The timestamp for when the geofence was created in ISO 8601 format: YYYY-MM-DDThh:mm:ss.sssZ

", + "PutGeofenceResponse$UpdateTime": "

The timestamp for when the geofence was last updated in ISO 8601 format: YYYY-MM-DDThh:mm:ss.sssZ

" + } + }, + "Token": { + "base": null, + "refs": { + "GetDevicePositionHistoryRequest$NextToken": "

The pagination token specifying which page of results to return in the response. If no token is provided, the default page is the first page.

Default value: null

", + "GetDevicePositionHistoryResponse$NextToken": "

A pagination token indicating there are additional pages available. You can use the token in a following request to fetch the next set of results.

", + "ListGeofenceCollectionsRequest$NextToken": "

The pagination token specifying which page of results to return in the response. If no token is provided, the default page is the first page.

Default value: null

", + "ListGeofenceCollectionsResponse$NextToken": "

A pagination token indicating there are additional pages available. You can use the token in a following request to fetch the next set of results.

", + "ListGeofencesRequest$NextToken": "

The pagination token specifying which page of results to return in the response. If no token is provided, the default page is the first page.

Default value: null

", + "ListGeofencesResponse$NextToken": "

A pagination token indicating there are additional pages available. You can use the token in a following request to fetch the next set of results.

", + "ListMapsRequest$NextToken": "

The pagination token specifying which page of results to return in the response. If no token is provided, the default page is the first page.

Default value: null

", + "ListMapsResponse$NextToken": "

A pagination token indicating there are additional pages available. You can use the token in a following request to fetch the next set of results.

", + "ListPlaceIndexesRequest$NextToken": "

The pagination token specifying which page of results to return in the response. If no token is provided, the default page is the first page.

Default value: null

", + "ListPlaceIndexesResponse$NextToken": "

A pagination token indicating there are additional pages available. You can use the token in a following request to fetch the next set of results.

", + "ListTrackerConsumersRequest$NextToken": "

The pagination token specifying which page of results to return in the response. If no token is provided, the default page is the first page.

Default value: null

", + "ListTrackerConsumersResponse$NextToken": "

A pagination token indicating there are additional pages available. You can use the token in a following request to fetch the next set of results.

", + "ListTrackersRequest$NextToken": "

The pagination token specifying which page of results to return in the response. If no token is provided, the default page is the first page.

Default value: null

", + "ListTrackersResponse$NextToken": "

A pagination token indicating there are additional pages available. You can use the token in a following request to fetch the next set of results.

" + } + }, + "ValidationException": { + "base": "

The input failed to meet the constraints specified by the AWS service.

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

The input failed to meet the constraints specified by the AWS service in a specified field.

", + "refs": { + "ValidationExceptionFieldList$member": null + } + }, + "ValidationExceptionFieldList": { + "base": null, + "refs": { + "ValidationException$FieldList": "

The field where the invalid entry was detected.

" + } + }, + "ValidationExceptionReason": { + "base": null, + "refs": { + "ValidationException$Reason": "

A message with the reason for the validation exception error.

" + } + } + } +} diff --git a/models/apis/location/2020-11-19/examples-1.json b/models/apis/location/2020-11-19/examples-1.json new file mode 100644 index 0000000000..0ea7e3b0bb --- /dev/null +++ b/models/apis/location/2020-11-19/examples-1.json @@ -0,0 +1,5 @@ +{ + "version": "1.0", + "examples": { + } +} diff --git a/models/apis/location/2020-11-19/paginators-1.json b/models/apis/location/2020-11-19/paginators-1.json new file mode 100644 index 0000000000..72701ae990 --- /dev/null +++ b/models/apis/location/2020-11-19/paginators-1.json @@ -0,0 +1,44 @@ +{ + "pagination": { + "GetDevicePositionHistory": { + "input_token": "NextToken", + "output_token": "NextToken", + "result_key": "DevicePositions" + }, + "ListGeofenceCollections": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "MaxResults", + "result_key": "Entries" + }, + "ListGeofences": { + "input_token": "NextToken", + "output_token": "NextToken", + "result_key": "Entries" + }, + "ListMaps": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "MaxResults", + "result_key": "Entries" + }, + "ListPlaceIndexes": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "MaxResults", + "result_key": "Entries" + }, + "ListTrackerConsumers": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "MaxResults", + "result_key": "ConsumerArns" + }, + "ListTrackers": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "MaxResults", + "result_key": "Entries" + } + } +} diff --git a/models/apis/quicksight/2018-04-01/api-2.json b/models/apis/quicksight/2018-04-01/api-2.json index 02b36df652..b513ef2d38 100644 --- a/models/apis/quicksight/2018-04-01/api-2.json +++ b/models/apis/quicksight/2018-04-01/api-2.json @@ -6177,11 +6177,16 @@ ], "members":{ "DataSourceArn":{"shape":"Arn"}, + "Catalog":{"shape":"RelationalTableCatalog"}, "Schema":{"shape":"RelationalTableSchema"}, "Name":{"shape":"RelationalTableName"}, "InputColumns":{"shape":"InputColumnList"} } }, + "RelationalTableCatalog":{ + "type":"string", + "max":256 + }, "RelationalTableName":{ "type":"string", "max":64, diff --git a/models/apis/quicksight/2018-04-01/docs-2.json b/models/apis/quicksight/2018-04-01/docs-2.json index ebd23b181d..635eb9d1a0 100644 --- a/models/apis/quicksight/2018-04-01/docs-2.json +++ b/models/apis/quicksight/2018-04-01/docs-2.json @@ -11,7 +11,7 @@ "CreateGroup": "

Creates an Amazon QuickSight group.

The permissions resource is arn:aws:quicksight:us-east-1:<relevant-aws-account-id>:group/default/<group-name> .

The response is a group object.

", "CreateGroupMembership": "

Adds an Amazon QuickSight user to an Amazon QuickSight group.

", "CreateIAMPolicyAssignment": "

Creates an assignment with one specified IAM policy, identified by its Amazon Resource Name (ARN). This policy assignment is attached to the specified groups or users of Amazon QuickSight. Assignment names are unique per AWS account. To avoid overwriting rules in other namespaces, use assignment names that are unique.

", - "CreateIngestion": "

Creates and starts a new SPICE ingestion on a dataset

Any ingestions operating on tagged datasets inherit the same tags automatically for use in access control. For an example, see How do I create an IAM policy to control access to Amazon EC2 resources using tags? in the AWS Knowledge Center. Tags are visible on the tagged dataset, but not on the ingestion resource.

", + "CreateIngestion": "

Creates and starts a new SPICE ingestion on a dataset

Any ingestions operating on tagged datasets inherit the same tags automatically for use in access control. For an example, see How do I create an IAM policy to control access to Amazon EC2 resources using tags? in the AWS Knowledge Center. Tags are visible on the tagged dataset, but not on the ingestion resource.

", "CreateNamespace": "

(Enterprise edition only) Creates a new namespace for you to use with Amazon QuickSight.

A namespace allows you to isolate the QuickSight users and groups that are registered for that namespace. Users that access the namespace can share assets only with other users or groups in the same namespace. They can't see users and groups in other namespaces. You can create a namespace after your AWS account is subscribed to QuickSight. The namespace must be unique within the AWS account. By default, there is a limit of 100 namespaces per AWS account. To increase your limit, create a ticket with AWS Support.

", "CreateTemplate": "

Creates a template from an existing QuickSight analysis or template. You can use the resulting template to create a dashboard.

A template is an entity in QuickSight that encapsulates the metadata required to create an analysis and that you can use to create s dashboard. A template adds a layer of abstraction by using placeholders to replace the dataset associated with the analysis. You can use templates to create dashboards by replacing dataset placeholders with datasets that follow the same schema that was used to create the source analysis and template.

", "CreateTemplateAlias": "

Creates a template alias for a template.

", @@ -53,7 +53,7 @@ "DescribeThemeAlias": "

Describes the alias for a theme.

", "DescribeThemePermissions": "

Describes the read and write permissions for a theme.

", "DescribeUser": "

Returns information about a user, given the user name.

", - "GetDashboardEmbedUrl": "

Generates a session URL and authorization code that you can use to embed an Amazon QuickSight read-only dashboard in your web server code. Before you use this command, make sure that you have configured the dashboards and permissions.

Currently, you can use GetDashboardEmbedURL only from the server, not from the user's browser. The following rules apply to the combination of URL and authorization code:

For more information, see Embedding Amazon QuickSight in the Amazon QuickSight User Guide .

", + "GetDashboardEmbedUrl": "

Generates a session URL and authorization code that you can use to embed an Amazon QuickSight read-only dashboard in your web server code. Before you use this command, make sure that you have configured the dashboards and permissions.

Currently, you can use GetDashboardEmbedURL only from the server, not from the user's browser. The following rules apply to the combination of URL and authorization code:

For more information, see Embedded Analytics in the Amazon QuickSight User Guide.

", "GetSessionEmbedUrl": "

Generates a session URL and authorization code that you can use to embed the Amazon QuickSight console in your web server code. Use GetSessionEmbedUrl where you want to provide an authoring portal that allows users to create data sources, datasets, analyses, and dashboards. The users who access an embedded QuickSight console need belong to the author or admin security cohort. If you want to restrict permissions to some of these features, add a custom permissions profile to the user with the UpdateUser API operation. Use RegisterUser API operation to add a new user with a custom permission profile attached. For more information, see the following sections in the Amazon QuickSight User Guide:

", "ListAnalyses": "

Lists Amazon QuickSight analyses that exist in the specified AWS account.

", "ListDashboardVersions": "

Lists all the versions of the dashboards in the QuickSight subscription.

", @@ -151,7 +151,7 @@ "AdditionalDashboardIdList": { "base": null, "refs": { - "GetDashboardEmbedUrlRequest$AdditionalDashboardIds": "

A list of one or more dashboard ids that you want to add to a session that includes anonymous authorizations. IdentityType must be set to ANONYMOUS for this to work, because other identity types authenticate as QuickSight users. For example, if you set \"--dashboard-id dash_id1 --dashboard-id dash_id2 dash_id3 identity-type ANONYMOUS\", the session can access all three dashboards.

" + "GetDashboardEmbedUrlRequest$AdditionalDashboardIds": "

A list of one or more dashboard IDs that you want to add to a session that includes anonymous users. The IdentityType parameter must be set to ANONYMOUS for this to work, because other identity types authenticate as QuickSight or IAM users. For example, if you set \"--dashboard-id dash_id1 --dashboard-id dash_id2 dash_id3 identity-type ANONYMOUS\", the session can access all three dashboards.

" } }, "AliasName": { @@ -314,7 +314,7 @@ "DescribeTemplatePermissionsResponse$TemplateArn": "

The Amazon Resource Name (ARN) of the template.

", "DescribeThemePermissionsResponse$ThemeArn": "

The Amazon Resource Name (ARN) of the theme.

", "GetDashboardEmbedUrlRequest$UserArn": "

The Amazon QuickSight user's Amazon Resource Name (ARN), for use with QUICKSIGHT identity type. You can use this for any Amazon QuickSight users in your account (readers, authors, or admins) authenticated as one of the following:

Omit this parameter for users in the third group – IAM users and IAM role-based sessions.

", - "GetSessionEmbedUrlRequest$UserArn": "

The Amazon QuickSight user's Amazon Resource Name (ARN), for use with QUICKSIGHT identity type. You can use this for any type of Amazon QuickSight users in your account (readers, authors, or admins). They need to be authenticated as one of the following:

  1. Active Directory (AD) users or group members

  2. Invited nonfederated users

  3. IAM users and IAM role-based sessions authenticated through Federated Single Sign-On using SAML, OpenID Connect, or IAM federation

Omit this parameter for users in the third group – IAM users and IAM role-based sessions.

", + "GetSessionEmbedUrlRequest$UserArn": "

The Amazon QuickSight user's Amazon Resource Name (ARN), for use with QUICKSIGHT identity type. You can use this for any type of Amazon QuickSight users in your account (readers, authors, or admins). They need to be authenticated as one of the following:

  1. Active Directory (AD) users or group members

  2. Invited nonfederated users

  3. AWS Identity and Access Management (IAM) users and IAM role-based sessions authenticated through Federated Single Sign-On using SAML, OpenID Connect, or IAM federation

Omit this parameter for users in the third group, IAM users and IAM role-based sessions.

", "Group$Arn": "

The Amazon Resource Name (ARN) for the group.

", "GroupMember$Arn": "

The Amazon Resource Name (ARN) for the group member (user).

", "IAMPolicyAssignment$PolicyArn": "

The Amazon Resource Name (ARN) for the IAM policy.

", @@ -515,11 +515,11 @@ "Boolean": { "base": null, "refs": { - "DataSetSummary$ColumnLevelPermissionRulesApplied": "

Indicates if the dataset has column level permission configured.

", + "DataSetSummary$ColumnLevelPermissionRulesApplied": "

A value that indicates if the dataset has column level permission configured.

", "GetDashboardEmbedUrlRequest$UndoRedoDisabled": "

Remove the undo/redo button on the embedded dashboard. The default is FALSE, which enables the undo/redo button.

", "GetDashboardEmbedUrlRequest$ResetDisabled": "

Remove the reset button on the embedded dashboard. The default is FALSE, which enables the reset button.

", - "GetDashboardEmbedUrlRequest$StatePersistenceEnabled": "

Adds persistence of state for the user session in an embedded dashboard. Persistence applies to the sheet and the parameter settings. These are control settings that the dashboard subscriber (QuickSight reader) chooses while viewing the dashboard. If this is set to TRUE, the settings are the same when the the subscriber reopens the same dashboard URL. The state is stored in QuickSight, not in a browser cookie. If this is set to FALSE, the state of the user session is not persisted. The default is FALSE.

", - "JoinKeyProperties$UniqueKey": "

Indicates that a row in a table is uniquely identified by the columns in a join key. This is used by QuickSight to optimize query performance.

", + "GetDashboardEmbedUrlRequest$StatePersistenceEnabled": "

Adds persistence of state for the user session in an embedded dashboard. Persistence applies to the sheet and the parameter settings. These are control settings that the dashboard subscriber (QuickSight reader) chooses while viewing the dashboard. If this is set to TRUE, the settings are the same when the subscriber reopens the same dashboard URL. The state is stored in QuickSight, not in a browser cookie. If this is set to FALSE, the state of the user session is not persisted. The default is FALSE.

", + "JoinKeyProperties$UniqueKey": "

A value that indicates that a row in a table is uniquely identified by the columns in a join key. This is used by QuickSight to optimize query performance.

", "SslProperties$DisableSsl": "

A Boolean option to control whether SSL should be disabled.

", "UpdateUserRequest$UnapplyCustomPermissions": "

A flag that you use to indicate that you want to remove all custom permissions from this user. Using this parameter resets the user to the state it was in before a custom permissions profile was applied. This parameter defaults to NULL and it doesn't accept any other value.

", "UploadSettings$ContainsHeader": "

Whether the file has a header row, or the files each have a header row.

", @@ -1042,8 +1042,8 @@ "base": null, "refs": { "CreateDataSetRequest$ImportMode": "

Indicates whether you want to import the data into SPICE.

", - "DataSet$ImportMode": "

Indicates whether you want to import the data into SPICE.

", - "DataSetSummary$ImportMode": "

Indicates whether you want to import the data into SPICE.

", + "DataSet$ImportMode": "

A value that indicates whether you want to import the data into SPICE.

", + "DataSetSummary$ImportMode": "

A value that indicates whether you want to import the data into SPICE.

", "UpdateDataSetRequest$ImportMode": "

Indicates whether you want to import the data into SPICE.

" } }, @@ -1660,7 +1660,7 @@ } }, "GetDashboardEmbedUrlRequest": { - "base": "

Parameter input for the GetDashboardEmbedUrl operation.

", + "base": null, "refs": { } }, @@ -2561,6 +2561,12 @@ "PhysicalTable$RelationalTable": "

A physical table type for relational data sources.

" } }, + "RelationalTableCatalog": { + "base": null, + "refs": { + "RelationalTable$Catalog": "

The catalog associated with a table.

" + } + }, "RelationalTableName": { "base": null, "refs": { @@ -2749,7 +2755,7 @@ "DescribeThemePermissionsRequest$ThemeId": "

The ID for the theme that you want to describe permissions for.

", "DescribeThemePermissionsResponse$ThemeId": "

The ID for the theme.

", "DescribeThemeRequest$ThemeId": "

The ID for the theme.

", - "GetDashboardEmbedUrlRequest$DashboardId": "

The ID for the dashboard, also added to the IAM policy.

", + "GetDashboardEmbedUrlRequest$DashboardId": "

The ID for the dashboard, also added to the AWS Identity and Access Management (IAM) policy.

", "ListDashboardVersionsRequest$DashboardId": "

The ID for the dashboard.

", "ListTemplateAliasesRequest$TemplateId": "

The ID for the template.

", "ListTemplateVersionsRequest$TemplateId": "

The ID for the template.

", @@ -2797,7 +2803,7 @@ "RoleSessionName": { "base": null, "refs": { - "RegisterUserRequest$SessionName": "

You need to use this parameter only when you register one or more users using an assumed IAM role. You don't need to provide the session name for other scenarios, for example when you are registering an IAM user or an Amazon QuickSight user. You can register multiple users using the same IAM role if each user has a different session name. For more information on assuming IAM roles, see assume-role in the AWS CLI Reference.

" + "RegisterUserRequest$SessionName": "

You need to use this parameter only when you register one or more users using an assumed IAM role. You don't need to provide the session name for other scenarios, for example when you are registering an IAM user or an Amazon QuickSight user. You can register multiple users using the same IAM role if each user has a different session name. For more information on assuming IAM roles, see assume-role in the AWS CLI Reference.

" } }, "RowInfo": { @@ -3627,7 +3633,7 @@ } }, "UnsupportedPricingPlanException": { - "base": "

This error indicates that you are calling an embedding operation in Amazon QuickSight without the required pricing plan on your AWS account. Before you can use anonymous embedding, a QuickSight administrator needs to add capacity pricing to QuickSight. You can do this on the Manage QuickSight page.

After capacity pricing is added, you can enable anonymous embedding by using the GetDashboardEmbedUrl API operation with the --identity-type ANONYMOUS option.

", + "base": "

This error indicates that you are calling an embedding operation in Amazon QuickSight without the required pricing plan on your AWS account. Before you can use embedding for anonymous users, a QuickSight administrator needs to add capacity pricing to QuickSight. You can do this on the Manage QuickSight page.

After capacity pricing is added, you can use the GetDashboardEmbedUrl API operation with the --identity-type ANONYMOUS option.

", "refs": { } }, diff --git a/models/apis/wellarchitected/2020-03-31/api-2.json b/models/apis/wellarchitected/2020-03-31/api-2.json new file mode 100644 index 0000000000..5e464ba18f --- /dev/null +++ b/models/apis/wellarchitected/2020-03-31/api-2.json @@ -0,0 +1,1962 @@ +{ + "version":"2.0", + "metadata":{ + "apiVersion":"2020-03-31", + "endpointPrefix":"wellarchitected", + "jsonVersion":"1.1", + "protocol":"rest-json", + "serviceAbbreviation":"Well-Architected", + "serviceFullName":"AWS Well-Architected Tool", + "serviceId":"WellArchitected", + "signatureVersion":"v4", + "signingName":"wellarchitected", + "uid":"wellarchitected-2020-03-31" + }, + "operations":{ + "AssociateLenses":{ + "name":"AssociateLenses", + "http":{ + "method":"PATCH", + "requestUri":"/workloads/{WorkloadId}/associateLenses" + }, + "input":{"shape":"AssociateLensesInput"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ConflictException"}, + {"shape":"InternalServerException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"} + ] + }, + "CreateMilestone":{ + "name":"CreateMilestone", + "http":{ + "method":"POST", + "requestUri":"/workloads/{WorkloadId}/milestones" + }, + "input":{"shape":"CreateMilestoneInput"}, + "output":{"shape":"CreateMilestoneOutput"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ConflictException"}, + {"shape":"InternalServerException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ServiceQuotaExceededException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"} + ] + }, + "CreateWorkload":{ + "name":"CreateWorkload", + "http":{ + "method":"POST", + "requestUri":"/workloads" + }, + "input":{"shape":"CreateWorkloadInput"}, + "output":{"shape":"CreateWorkloadOutput"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ConflictException"}, + {"shape":"ServiceQuotaExceededException"}, + {"shape":"InternalServerException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"} + ] + }, + "CreateWorkloadShare":{ + "name":"CreateWorkloadShare", + "http":{ + "method":"POST", + "requestUri":"/workloads/{WorkloadId}/shares" + }, + "input":{"shape":"CreateWorkloadShareInput"}, + "output":{"shape":"CreateWorkloadShareOutput"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ConflictException"}, + {"shape":"InternalServerException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ServiceQuotaExceededException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"} + ] + }, + "DeleteWorkload":{ + "name":"DeleteWorkload", + "http":{ + "method":"DELETE", + "requestUri":"/workloads/{WorkloadId}" + }, + "input":{"shape":"DeleteWorkloadInput"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ConflictException"}, + {"shape":"InternalServerException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"} + ] + }, + "DeleteWorkloadShare":{ + "name":"DeleteWorkloadShare", + "http":{ + "method":"DELETE", + "requestUri":"/workloads/{WorkloadId}/shares/{ShareId}" + }, + "input":{"shape":"DeleteWorkloadShareInput"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"InternalServerException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ConflictException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"} + ] + }, + "DisassociateLenses":{ + "name":"DisassociateLenses", + "http":{ + "method":"PATCH", + "requestUri":"/workloads/{WorkloadId}/disassociateLenses" + }, + "input":{"shape":"DisassociateLensesInput"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ConflictException"}, + {"shape":"InternalServerException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"} + ] + }, + "GetAnswer":{ + "name":"GetAnswer", + "http":{ + "method":"GET", + "requestUri":"/workloads/{WorkloadId}/lensReviews/{LensAlias}/answers/{QuestionId}" + }, + "input":{"shape":"GetAnswerInput"}, + "output":{"shape":"GetAnswerOutput"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"InternalServerException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"} + ] + }, + "GetLensReview":{ + "name":"GetLensReview", + "http":{ + "method":"GET", + "requestUri":"/workloads/{WorkloadId}/lensReviews/{LensAlias}" + }, + "input":{"shape":"GetLensReviewInput"}, + "output":{"shape":"GetLensReviewOutput"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"InternalServerException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"} + ] + }, + "GetLensReviewReport":{ + "name":"GetLensReviewReport", + "http":{ + "method":"GET", + "requestUri":"/workloads/{WorkloadId}/lensReviews/{LensAlias}/report" + }, + "input":{"shape":"GetLensReviewReportInput"}, + "output":{"shape":"GetLensReviewReportOutput"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"InternalServerException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"} + ] + }, + "GetLensVersionDifference":{ + "name":"GetLensVersionDifference", + "http":{ + "method":"GET", + "requestUri":"/lenses/{LensAlias}/versionDifference" + }, + "input":{"shape":"GetLensVersionDifferenceInput"}, + "output":{"shape":"GetLensVersionDifferenceOutput"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"InternalServerException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"} + ] + }, + "GetMilestone":{ + "name":"GetMilestone", + "http":{ + "method":"GET", + "requestUri":"/workloads/{WorkloadId}/milestones/{MilestoneNumber}" + }, + "input":{"shape":"GetMilestoneInput"}, + "output":{"shape":"GetMilestoneOutput"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"InternalServerException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"} + ] + }, + "GetWorkload":{ + "name":"GetWorkload", + "http":{ + "method":"GET", + "requestUri":"/workloads/{WorkloadId}" + }, + "input":{"shape":"GetWorkloadInput"}, + "output":{"shape":"GetWorkloadOutput"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"InternalServerException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"} + ] + }, + "ListAnswers":{ + "name":"ListAnswers", + "http":{ + "method":"GET", + "requestUri":"/workloads/{WorkloadId}/lensReviews/{LensAlias}/answers" + }, + "input":{"shape":"ListAnswersInput"}, + "output":{"shape":"ListAnswersOutput"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"InternalServerException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"} + ] + }, + "ListLensReviewImprovements":{ + "name":"ListLensReviewImprovements", + "http":{ + "method":"GET", + "requestUri":"/workloads/{WorkloadId}/lensReviews/{LensAlias}/improvements" + }, + "input":{"shape":"ListLensReviewImprovementsInput"}, + "output":{"shape":"ListLensReviewImprovementsOutput"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"InternalServerException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"} + ] + }, + "ListLensReviews":{ + "name":"ListLensReviews", + "http":{ + "method":"GET", + "requestUri":"/workloads/{WorkloadId}/lensReviews" + }, + "input":{"shape":"ListLensReviewsInput"}, + "output":{"shape":"ListLensReviewsOutput"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"InternalServerException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"} + ] + }, + "ListLenses":{ + "name":"ListLenses", + "http":{ + "method":"GET", + "requestUri":"/lenses" + }, + "input":{"shape":"ListLensesInput"}, + "output":{"shape":"ListLensesOutput"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"InternalServerException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"} + ] + }, + "ListMilestones":{ + "name":"ListMilestones", + "http":{ + "method":"POST", + "requestUri":"/workloads/{WorkloadId}/milestonesSummaries" + }, + "input":{"shape":"ListMilestonesInput"}, + "output":{"shape":"ListMilestonesOutput"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"InternalServerException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"} + ] + }, + "ListNotifications":{ + "name":"ListNotifications", + "http":{ + "method":"POST", + "requestUri":"/notifications" + }, + "input":{"shape":"ListNotificationsInput"}, + "output":{"shape":"ListNotificationsOutput"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"InternalServerException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"} + ] + }, + "ListShareInvitations":{ + "name":"ListShareInvitations", + "http":{ + "method":"GET", + "requestUri":"/shareInvitations" + }, + "input":{"shape":"ListShareInvitationsInput"}, + "output":{"shape":"ListShareInvitationsOutput"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"InternalServerException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"} + ] + }, + "ListWorkloadShares":{ + "name":"ListWorkloadShares", + "http":{ + "method":"GET", + "requestUri":"/workloads/{WorkloadId}/shares" + }, + "input":{"shape":"ListWorkloadSharesInput"}, + "output":{"shape":"ListWorkloadSharesOutput"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"InternalServerException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"} + ] + }, + "ListWorkloads":{ + "name":"ListWorkloads", + "http":{ + "method":"POST", + "requestUri":"/workloadsSummaries" + }, + "input":{"shape":"ListWorkloadsInput"}, + "output":{"shape":"ListWorkloadsOutput"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"InternalServerException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"} + ] + }, + "UpdateAnswer":{ + "name":"UpdateAnswer", + "http":{ + "method":"PATCH", + "requestUri":"/workloads/{WorkloadId}/lensReviews/{LensAlias}/answers/{QuestionId}" + }, + "input":{"shape":"UpdateAnswerInput"}, + "output":{"shape":"UpdateAnswerOutput"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ConflictException"}, + {"shape":"InternalServerException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"} + ] + }, + "UpdateLensReview":{ + "name":"UpdateLensReview", + "http":{ + "method":"PATCH", + "requestUri":"/workloads/{WorkloadId}/lensReviews/{LensAlias}" + }, + "input":{"shape":"UpdateLensReviewInput"}, + "output":{"shape":"UpdateLensReviewOutput"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ConflictException"}, + {"shape":"InternalServerException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"} + ] + }, + "UpdateShareInvitation":{ + "name":"UpdateShareInvitation", + "http":{ + "method":"PATCH", + "requestUri":"/shareInvitations/{ShareInvitationId}" + }, + "input":{"shape":"UpdateShareInvitationInput"}, + "output":{"shape":"UpdateShareInvitationOutput"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"InternalServerException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ConflictException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"} + ] + }, + "UpdateWorkload":{ + "name":"UpdateWorkload", + "http":{ + "method":"PATCH", + "requestUri":"/workloads/{WorkloadId}" + }, + "input":{"shape":"UpdateWorkloadInput"}, + "output":{"shape":"UpdateWorkloadOutput"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ConflictException"}, + {"shape":"InternalServerException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"} + ] + }, + "UpdateWorkloadShare":{ + "name":"UpdateWorkloadShare", + "http":{ + "method":"PATCH", + "requestUri":"/workloads/{WorkloadId}/shares/{ShareId}" + }, + "input":{"shape":"UpdateWorkloadShareInput"}, + "output":{"shape":"UpdateWorkloadShareOutput"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"InternalServerException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ConflictException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"} + ] + }, + "UpgradeLensReview":{ + "name":"UpgradeLensReview", + "http":{ + "method":"PUT", + "requestUri":"/workloads/{WorkloadId}/lensReviews/{LensAlias}/upgrade" + }, + "input":{"shape":"UpgradeLensReviewInput"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ConflictException"}, + {"shape":"InternalServerException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ThrottlingException"} + ] + } + }, + "shapes":{ + "AccessDeniedException":{ + "type":"structure", + "required":["Message"], + "members":{ + "Message":{"shape":"ExceptionMessage"} + }, + "error":{"httpStatusCode":403}, + "exception":true + }, + "Answer":{ + "type":"structure", + "members":{ + "QuestionId":{"shape":"QuestionId"}, + "PillarId":{"shape":"PillarId"}, + "QuestionTitle":{"shape":"QuestionTitle"}, + "QuestionDescription":{"shape":"QuestionDescription"}, + "ImprovementPlanUrl":{"shape":"ImprovementPlanUrl"}, + "HelpfulResourceUrl":{"shape":"HelpfulResourceUrl"}, + "Choices":{"shape":"Choices"}, + "SelectedChoices":{"shape":"SelectedChoices"}, + "IsApplicable":{"shape":"IsApplicable"}, + "Risk":{"shape":"Risk"}, + "Notes":{"shape":"Notes"} + } + }, + "AnswerSummaries":{ + "type":"list", + "member":{"shape":"AnswerSummary"} + }, + "AnswerSummary":{ + "type":"structure", + "members":{ + "QuestionId":{"shape":"QuestionId"}, + "PillarId":{"shape":"PillarId"}, + "QuestionTitle":{"shape":"QuestionTitle"}, + "Choices":{"shape":"Choices"}, + "SelectedChoices":{"shape":"SelectedChoices"}, + "IsApplicable":{"shape":"IsApplicable"}, + "Risk":{"shape":"Risk"} + } + }, + "AssociateLensesInput":{ + "type":"structure", + "required":[ + "WorkloadId", + "LensAliases" + ], + "members":{ + "WorkloadId":{ + "shape":"WorkloadId", + "location":"uri", + "locationName":"WorkloadId" + }, + "LensAliases":{"shape":"LensAliases"} + } + }, + "AwsAccountId":{ + "type":"string", + "pattern":"[0-9]{12}" + }, + "AwsRegion":{ + "type":"string", + "max":100 + }, + "Base64String":{"type":"string"}, + "Choice":{ + "type":"structure", + "members":{ + "ChoiceId":{"shape":"ChoiceId"}, + "Title":{"shape":"ChoiceTitle"}, + "Description":{"shape":"ChoiceDescription"} + } + }, + "ChoiceDescription":{ + "type":"string", + "max":1024, + "min":1 + }, + "ChoiceId":{ + "type":"string", + "max":64, + "min":1 + }, + "ChoiceTitle":{ + "type":"string", + "max":512, + "min":1 + }, + "Choices":{ + "type":"list", + "member":{"shape":"Choice"} + }, + "ClientRequestToken":{"type":"string"}, + "ConflictException":{ + "type":"structure", + "required":[ + "Message", + "ResourceId", + "ResourceType" + ], + "members":{ + "Message":{"shape":"ExceptionMessage"}, + "ResourceId":{"shape":"ExceptionResourceId"}, + "ResourceType":{"shape":"ExceptionResourceType"} + }, + "error":{"httpStatusCode":409}, + "exception":true + }, + "Count":{ + "type":"integer", + "min":0 + }, + "CreateMilestoneInput":{ + "type":"structure", + "required":[ + "WorkloadId", + "MilestoneName", + "ClientRequestToken" + ], + "members":{ + "WorkloadId":{ + "shape":"WorkloadId", + "location":"uri", + "locationName":"WorkloadId" + }, + "MilestoneName":{"shape":"MilestoneName"}, + "ClientRequestToken":{ + "shape":"ClientRequestToken", + "idempotencyToken":true + } + } + }, + "CreateMilestoneOutput":{ + "type":"structure", + "members":{ + "WorkloadId":{"shape":"WorkloadId"}, + "MilestoneNumber":{"shape":"MilestoneNumber"} + } + }, + "CreateWorkloadInput":{ + "type":"structure", + "required":[ + "WorkloadName", + "Description", + "Environment", + "ReviewOwner", + "Lenses", + "ClientRequestToken" + ], + "members":{ + "WorkloadName":{"shape":"WorkloadName"}, + "Description":{"shape":"WorkloadDescription"}, + "Environment":{"shape":"WorkloadEnvironment"}, + "AccountIds":{"shape":"WorkloadAccountIds"}, + "AwsRegions":{"shape":"WorkloadAwsRegions"}, + "NonAwsRegions":{"shape":"WorkloadNonAwsRegions"}, + "PillarPriorities":{"shape":"WorkloadPillarPriorities"}, + "ArchitecturalDesign":{"shape":"WorkloadArchitecturalDesign"}, + "ReviewOwner":{"shape":"WorkloadReviewOwner"}, + "IndustryType":{"shape":"WorkloadIndustryType"}, + "Industry":{"shape":"WorkloadIndustry"}, + "Lenses":{"shape":"WorkloadLenses"}, + "Notes":{"shape":"Notes"}, + "ClientRequestToken":{ + "shape":"ClientRequestToken", + "idempotencyToken":true + } + } + }, + "CreateWorkloadOutput":{ + "type":"structure", + "members":{ + "WorkloadId":{"shape":"WorkloadId"}, + "WorkloadArn":{"shape":"WorkloadArn"} + } + }, + "CreateWorkloadShareInput":{ + "type":"structure", + "required":[ + "WorkloadId", + "SharedWith", + "PermissionType", + "ClientRequestToken" + ], + "members":{ + "WorkloadId":{ + "shape":"WorkloadId", + "location":"uri", + "locationName":"WorkloadId" + }, + "SharedWith":{"shape":"SharedWith"}, + "PermissionType":{"shape":"PermissionType"}, + "ClientRequestToken":{ + "shape":"ClientRequestToken", + "idempotencyToken":true + } + } + }, + "CreateWorkloadShareOutput":{ + "type":"structure", + "members":{ + "WorkloadId":{"shape":"WorkloadId"}, + "ShareId":{"shape":"ShareId"} + } + }, + "DeleteWorkloadInput":{ + "type":"structure", + "required":[ + "WorkloadId", + "ClientRequestToken" + ], + "members":{ + "WorkloadId":{ + "shape":"WorkloadId", + "location":"uri", + "locationName":"WorkloadId" + }, + "ClientRequestToken":{ + "shape":"ClientRequestToken", + "idempotencyToken":true, + "location":"querystring", + "locationName":"ClientRequestToken" + } + } + }, + "DeleteWorkloadShareInput":{ + "type":"structure", + "required":[ + "ShareId", + "WorkloadId", + "ClientRequestToken" + ], + "members":{ + "ShareId":{ + "shape":"ShareId", + "location":"uri", + "locationName":"ShareId" + }, + "WorkloadId":{ + "shape":"WorkloadId", + "location":"uri", + "locationName":"WorkloadId" + }, + "ClientRequestToken":{ + "shape":"ClientRequestToken", + "idempotencyToken":true, + "location":"querystring", + "locationName":"ClientRequestToken" + } + } + }, + "DifferenceStatus":{ + "type":"string", + "enum":[ + "UPDATED", + "NEW", + "DELETED" + ] + }, + "DisassociateLensesInput":{ + "type":"structure", + "required":[ + "WorkloadId", + "LensAliases" + ], + "members":{ + "WorkloadId":{ + "shape":"WorkloadId", + "location":"uri", + "locationName":"WorkloadId" + }, + "LensAliases":{"shape":"LensAliases"} + } + }, + "ExceptionMessage":{"type":"string"}, + "ExceptionResourceId":{"type":"string"}, + "ExceptionResourceType":{"type":"string"}, + "GetAnswerInput":{ + "type":"structure", + "required":[ + "WorkloadId", + "LensAlias", + "QuestionId" + ], + "members":{ + "WorkloadId":{ + "shape":"WorkloadId", + "location":"uri", + "locationName":"WorkloadId" + }, + "LensAlias":{ + "shape":"LensAlias", + "location":"uri", + "locationName":"LensAlias" + }, + "QuestionId":{ + "shape":"QuestionId", + "location":"uri", + "locationName":"QuestionId" + }, + "MilestoneNumber":{ + "shape":"MilestoneNumber", + "location":"querystring", + "locationName":"MilestoneNumber" + } + } + }, + "GetAnswerOutput":{ + "type":"structure", + "members":{ + "WorkloadId":{"shape":"WorkloadId"}, + "MilestoneNumber":{"shape":"MilestoneNumber"}, + "LensAlias":{"shape":"LensAlias"}, + "Answer":{"shape":"Answer"} + } + }, + "GetLensReviewInput":{ + "type":"structure", + "required":[ + "WorkloadId", + "LensAlias" + ], + "members":{ + "WorkloadId":{ + "shape":"WorkloadId", + "location":"uri", + "locationName":"WorkloadId" + }, + "LensAlias":{ + "shape":"LensAlias", + "location":"uri", + "locationName":"LensAlias" + }, + "MilestoneNumber":{ + "shape":"MilestoneNumber", + "location":"querystring", + "locationName":"MilestoneNumber" + } + } + }, + "GetLensReviewOutput":{ + "type":"structure", + "members":{ + "WorkloadId":{"shape":"WorkloadId"}, + "MilestoneNumber":{"shape":"MilestoneNumber"}, + "LensReview":{"shape":"LensReview"} + } + }, + "GetLensReviewReportInput":{ + "type":"structure", + "required":[ + "WorkloadId", + "LensAlias" + ], + "members":{ + "WorkloadId":{ + "shape":"WorkloadId", + "location":"uri", + "locationName":"WorkloadId" + }, + "LensAlias":{ + "shape":"LensAlias", + "location":"uri", + "locationName":"LensAlias" + }, + "MilestoneNumber":{ + "shape":"MilestoneNumber", + "location":"querystring", + "locationName":"MilestoneNumber" + } + } + }, + "GetLensReviewReportOutput":{ + "type":"structure", + "members":{ + "WorkloadId":{"shape":"WorkloadId"}, + "MilestoneNumber":{"shape":"MilestoneNumber"}, + "LensReviewReport":{"shape":"LensReviewReport"} + } + }, + "GetLensVersionDifferenceInput":{ + "type":"structure", + "required":[ + "LensAlias", + "BaseLensVersion" + ], + "members":{ + "LensAlias":{ + "shape":"LensAlias", + "location":"uri", + "locationName":"LensAlias" + }, + "BaseLensVersion":{ + "shape":"LensVersion", + "location":"querystring", + "locationName":"BaseLensVersion" + } + } + }, + "GetLensVersionDifferenceOutput":{ + "type":"structure", + "members":{ + "LensAlias":{"shape":"LensAlias"}, + "BaseLensVersion":{"shape":"LensVersion"}, + "LatestLensVersion":{"shape":"LensVersion"}, + "VersionDifferences":{"shape":"VersionDifferences"} + } + }, + "GetMilestoneInput":{ + "type":"structure", + "required":[ + "WorkloadId", + "MilestoneNumber" + ], + "members":{ + "WorkloadId":{ + "shape":"WorkloadId", + "location":"uri", + "locationName":"WorkloadId" + }, + "MilestoneNumber":{ + "shape":"MilestoneNumber", + "location":"uri", + "locationName":"MilestoneNumber" + } + } + }, + "GetMilestoneOutput":{ + "type":"structure", + "members":{ + "WorkloadId":{"shape":"WorkloadId"}, + "Milestone":{"shape":"Milestone"} + } + }, + "GetWorkloadInput":{ + "type":"structure", + "required":["WorkloadId"], + "members":{ + "WorkloadId":{ + "shape":"WorkloadId", + "location":"uri", + "locationName":"WorkloadId" + } + } + }, + "GetWorkloadOutput":{ + "type":"structure", + "members":{ + "Workload":{"shape":"Workload"} + } + }, + "HelpfulResourceUrl":{ + "type":"string", + "max":2048, + "min":1 + }, + "ImprovementPlanUrl":{ + "type":"string", + "max":2048, + "min":1 + }, + "ImprovementSummaries":{ + "type":"list", + "member":{"shape":"ImprovementSummary"} + }, + "ImprovementSummary":{ + "type":"structure", + "members":{ + "QuestionId":{"shape":"QuestionId"}, + "PillarId":{"shape":"PillarId"}, + "QuestionTitle":{"shape":"QuestionTitle"}, + "Risk":{"shape":"Risk"}, + "ImprovementPlanUrl":{"shape":"ImprovementPlanUrl"} + } + }, + "InternalServerException":{ + "type":"structure", + "required":["Message"], + "members":{ + "Message":{"shape":"ExceptionMessage"} + }, + "error":{"httpStatusCode":500}, + "exception":true, + "fault":true + }, + "IsApplicable":{"type":"boolean"}, + "IsReviewOwnerUpdateAcknowledged":{"type":"boolean"}, + "LensAlias":{ + "type":"string", + "max":64, + "min":1 + }, + "LensAliases":{ + "type":"list", + "member":{"shape":"LensAlias"}, + "min":1 + }, + "LensDescription":{ + "type":"string", + "max":1024, + "min":1 + }, + "LensName":{ + "type":"string", + "max":128, + "min":1 + }, + "LensReview":{ + "type":"structure", + "members":{ + "LensAlias":{"shape":"LensAlias"}, + "LensVersion":{"shape":"LensVersion"}, + "LensName":{"shape":"LensName"}, + "LensStatus":{"shape":"LensStatus"}, + "PillarReviewSummaries":{"shape":"PillarReviewSummaries"}, + "UpdatedAt":{"shape":"Timestamp"}, + "Notes":{"shape":"Notes"}, + "RiskCounts":{"shape":"RiskCounts"}, + "NextToken":{"shape":"NextToken"} + } + }, + "LensReviewReport":{ + "type":"structure", + "members":{ + "LensAlias":{"shape":"LensAlias"}, + "Base64String":{"shape":"Base64String"} + } + }, + "LensReviewSummaries":{ + "type":"list", + "member":{"shape":"LensReviewSummary"} + }, + "LensReviewSummary":{ + "type":"structure", + "members":{ + "LensAlias":{"shape":"LensAlias"}, + "LensVersion":{"shape":"LensVersion"}, + "LensName":{"shape":"LensName"}, + "LensStatus":{"shape":"LensStatus"}, + "UpdatedAt":{"shape":"Timestamp"}, + "RiskCounts":{"shape":"RiskCounts"} + } + }, + "LensStatus":{ + "type":"string", + "enum":[ + "CURRENT", + "NOT_CURRENT", + "DEPRECATED" + ] + }, + "LensSummaries":{ + "type":"list", + "member":{"shape":"LensSummary"} + }, + "LensSummary":{ + "type":"structure", + "members":{ + "LensAlias":{"shape":"LensAlias"}, + "LensVersion":{"shape":"LensVersion"}, + "LensName":{"shape":"LensName"}, + "Description":{"shape":"LensDescription"} + } + }, + "LensUpgradeSummary":{ + "type":"structure", + "members":{ + "WorkloadId":{"shape":"WorkloadId"}, + "WorkloadName":{"shape":"WorkloadName"}, + "LensAlias":{"shape":"LensAlias"}, + "CurrentLensVersion":{"shape":"LensVersion"}, + "LatestLensVersion":{"shape":"LensVersion"} + } + }, + "LensVersion":{ + "type":"string", + "max":128, + "min":1 + }, + "ListAnswersInput":{ + "type":"structure", + "required":[ + "WorkloadId", + "LensAlias" + ], + "members":{ + "WorkloadId":{ + "shape":"WorkloadId", + "location":"uri", + "locationName":"WorkloadId" + }, + "LensAlias":{ + "shape":"LensAlias", + "location":"uri", + "locationName":"LensAlias" + }, + "PillarId":{ + "shape":"PillarId", + "location":"querystring", + "locationName":"PillarId" + }, + "MilestoneNumber":{ + "shape":"MilestoneNumber", + "location":"querystring", + "locationName":"MilestoneNumber" + }, + "NextToken":{ + "shape":"NextToken", + "location":"querystring", + "locationName":"NextToken" + }, + "MaxResults":{ + "shape":"ListAnswersMaxResults", + "location":"querystring", + "locationName":"MaxResults" + } + } + }, + "ListAnswersMaxResults":{ + "type":"integer", + "max":50, + "min":1 + }, + "ListAnswersOutput":{ + "type":"structure", + "members":{ + "WorkloadId":{"shape":"WorkloadId"}, + "MilestoneNumber":{"shape":"MilestoneNumber"}, + "LensAlias":{"shape":"LensAlias"}, + "AnswerSummaries":{"shape":"AnswerSummaries"}, + "NextToken":{"shape":"NextToken"} + } + }, + "ListLensReviewImprovementsInput":{ + "type":"structure", + "required":[ + "WorkloadId", + "LensAlias" + ], + "members":{ + "WorkloadId":{ + "shape":"WorkloadId", + "location":"uri", + "locationName":"WorkloadId" + }, + "LensAlias":{ + "shape":"LensAlias", + "location":"uri", + "locationName":"LensAlias" + }, + "PillarId":{ + "shape":"PillarId", + "location":"querystring", + "locationName":"PillarId" + }, + "MilestoneNumber":{ + "shape":"MilestoneNumber", + "location":"querystring", + "locationName":"MilestoneNumber" + }, + "NextToken":{ + "shape":"NextToken", + "location":"querystring", + "locationName":"NextToken" + }, + "MaxResults":{ + "shape":"ListLensReviewImprovementsMaxResults", + "location":"querystring", + "locationName":"MaxResults" + } + } + }, + "ListLensReviewImprovementsMaxResults":{ + "type":"integer", + "max":100, + "min":1 + }, + "ListLensReviewImprovementsOutput":{ + "type":"structure", + "members":{ + "WorkloadId":{"shape":"WorkloadId"}, + "MilestoneNumber":{"shape":"MilestoneNumber"}, + "LensAlias":{"shape":"LensAlias"}, + "ImprovementSummaries":{"shape":"ImprovementSummaries"}, + "NextToken":{"shape":"NextToken"} + } + }, + "ListLensReviewsInput":{ + "type":"structure", + "required":["WorkloadId"], + "members":{ + "WorkloadId":{ + "shape":"WorkloadId", + "location":"uri", + "locationName":"WorkloadId" + }, + "MilestoneNumber":{ + "shape":"MilestoneNumber", + "location":"querystring", + "locationName":"MilestoneNumber" + }, + "NextToken":{ + "shape":"NextToken", + "location":"querystring", + "locationName":"NextToken" + }, + "MaxResults":{ + "shape":"MaxResults", + "location":"querystring", + "locationName":"MaxResults" + } + } + }, + "ListLensReviewsOutput":{ + "type":"structure", + "members":{ + "WorkloadId":{"shape":"WorkloadId"}, + "MilestoneNumber":{"shape":"MilestoneNumber"}, + "LensReviewSummaries":{"shape":"LensReviewSummaries"}, + "NextToken":{"shape":"NextToken"} + } + }, + "ListLensesInput":{ + "type":"structure", + "members":{ + "NextToken":{ + "shape":"NextToken", + "location":"querystring", + "locationName":"NextToken" + }, + "MaxResults":{ + "shape":"MaxResults", + "location":"querystring", + "locationName":"MaxResults" + } + } + }, + "ListLensesOutput":{ + "type":"structure", + "members":{ + "LensSummaries":{"shape":"LensSummaries"}, + "NextToken":{"shape":"NextToken"} + } + }, + "ListMilestonesInput":{ + "type":"structure", + "required":["WorkloadId"], + "members":{ + "WorkloadId":{ + "shape":"WorkloadId", + "location":"uri", + "locationName":"WorkloadId" + }, + "NextToken":{"shape":"NextToken"}, + "MaxResults":{"shape":"MaxResults"} + } + }, + "ListMilestonesOutput":{ + "type":"structure", + "members":{ + "WorkloadId":{"shape":"WorkloadId"}, + "MilestoneSummaries":{"shape":"MilestoneSummaries"}, + "NextToken":{"shape":"NextToken"} + } + }, + "ListNotificationsInput":{ + "type":"structure", + "members":{ + "WorkloadId":{"shape":"WorkloadId"}, + "NextToken":{"shape":"NextToken"}, + "MaxResults":{"shape":"ListNotificationsMaxResults"} + } + }, + "ListNotificationsMaxResults":{ + "type":"integer", + "max":50, + "min":1 + }, + "ListNotificationsOutput":{ + "type":"structure", + "members":{ + "NotificationSummaries":{"shape":"NotificationSummaries"}, + "NextToken":{"shape":"NextToken"} + } + }, + "ListShareInvitationsInput":{ + "type":"structure", + "members":{ + "WorkloadNamePrefix":{ + "shape":"WorkloadNamePrefix", + "location":"querystring", + "locationName":"WorkloadNamePrefix" + }, + "NextToken":{ + "shape":"NextToken", + "location":"querystring", + "locationName":"NextToken" + }, + "MaxResults":{ + "shape":"ListShareInvitationsMaxResults", + "location":"querystring", + "locationName":"MaxResults" + } + } + }, + "ListShareInvitationsMaxResults":{ + "type":"integer", + "max":50, + "min":1 + }, + "ListShareInvitationsOutput":{ + "type":"structure", + "members":{ + "ShareInvitationSummaries":{"shape":"ShareInvitationSummaries"}, + "NextToken":{"shape":"NextToken"} + } + }, + "ListWorkloadSharesInput":{ + "type":"structure", + "required":["WorkloadId"], + "members":{ + "WorkloadId":{ + "shape":"WorkloadId", + "location":"uri", + "locationName":"WorkloadId" + }, + "SharedWithPrefix":{ + "shape":"SharedWithPrefix", + "location":"querystring", + "locationName":"SharedWithPrefix" + }, + "NextToken":{ + "shape":"NextToken", + "location":"querystring", + "locationName":"NextToken" + }, + "MaxResults":{ + "shape":"ListWorkloadSharesMaxResults", + "location":"querystring", + "locationName":"MaxResults" + } + } + }, + "ListWorkloadSharesMaxResults":{ + "type":"integer", + "max":50, + "min":1 + }, + "ListWorkloadSharesOutput":{ + "type":"structure", + "members":{ + "WorkloadId":{"shape":"WorkloadId"}, + "WorkloadShareSummaries":{"shape":"WorkloadShareSummaries"}, + "NextToken":{"shape":"NextToken"} + } + }, + "ListWorkloadsInput":{ + "type":"structure", + "members":{ + "WorkloadNamePrefix":{"shape":"WorkloadNamePrefix"}, + "NextToken":{"shape":"NextToken"}, + "MaxResults":{"shape":"ListWorkloadsMaxResults"} + } + }, + "ListWorkloadsMaxResults":{ + "type":"integer", + "max":50, + "min":1 + }, + "ListWorkloadsOutput":{ + "type":"structure", + "members":{ + "WorkloadSummaries":{"shape":"WorkloadSummaries"}, + "NextToken":{"shape":"NextToken"} + } + }, + "MaxResults":{ + "type":"integer", + "max":50, + "min":1 + }, + "Milestone":{ + "type":"structure", + "members":{ + "MilestoneNumber":{"shape":"MilestoneNumber"}, + "MilestoneName":{"shape":"MilestoneName"}, + "RecordedAt":{"shape":"Timestamp"}, + "Workload":{"shape":"Workload"} + } + }, + "MilestoneName":{ + "type":"string", + "max":100, + "min":3 + }, + "MilestoneNumber":{ + "type":"integer", + "max":100, + "min":1 + }, + "MilestoneSummaries":{ + "type":"list", + "member":{"shape":"MilestoneSummary"} + }, + "MilestoneSummary":{ + "type":"structure", + "members":{ + "MilestoneNumber":{"shape":"MilestoneNumber"}, + "MilestoneName":{"shape":"MilestoneName"}, + "RecordedAt":{"shape":"Timestamp"}, + "WorkloadSummary":{"shape":"WorkloadSummary"} + } + }, + "NextToken":{"type":"string"}, + "Notes":{ + "type":"string", + "max":2084 + }, + "NotificationSummaries":{ + "type":"list", + "member":{"shape":"NotificationSummary"} + }, + "NotificationSummary":{ + "type":"structure", + "members":{ + "Type":{"shape":"NotificationType"}, + "LensUpgradeSummary":{"shape":"LensUpgradeSummary"} + } + }, + "NotificationType":{ + "type":"string", + "enum":[ + "LENS_VERSION_UPGRADED", + "LENS_VERSION_DEPRECATED" + ] + }, + "PermissionType":{ + "type":"string", + "enum":[ + "READONLY", + "CONTRIBUTOR" + ] + }, + "PillarDifference":{ + "type":"structure", + "members":{ + "PillarId":{"shape":"PillarId"}, + "DifferenceStatus":{"shape":"DifferenceStatus"}, + "QuestionDifferences":{"shape":"QuestionDifferences"} + } + }, + "PillarDifferences":{ + "type":"list", + "member":{"shape":"PillarDifference"} + }, + "PillarId":{ + "type":"string", + "max":64, + "min":1 + }, + "PillarName":{ + "type":"string", + "max":128, + "min":1 + }, + "PillarNotes":{ + "type":"map", + "key":{"shape":"PillarId"}, + "value":{"shape":"Notes"} + }, + "PillarReviewSummaries":{ + "type":"list", + "member":{"shape":"PillarReviewSummary"} + }, + "PillarReviewSummary":{ + "type":"structure", + "members":{ + "PillarId":{"shape":"PillarId"}, + "PillarName":{"shape":"PillarName"}, + "Notes":{"shape":"Notes"}, + "RiskCounts":{"shape":"RiskCounts"} + } + }, + "QuestionDescription":{ + "type":"string", + "max":1024, + "min":1 + }, + "QuestionDifference":{ + "type":"structure", + "members":{ + "QuestionId":{"shape":"QuestionId"}, + "QuestionTitle":{"shape":"QuestionTitle"}, + "DifferenceStatus":{"shape":"DifferenceStatus"} + } + }, + "QuestionDifferences":{ + "type":"list", + "member":{"shape":"QuestionDifference"} + }, + "QuestionId":{ + "type":"string", + "max":128, + "min":1 + }, + "QuestionTitle":{ + "type":"string", + "max":512, + "min":1 + }, + "QuotaCode":{"type":"string"}, + "ResourceNotFoundException":{ + "type":"structure", + "required":[ + "Message", + "ResourceId", + "ResourceType" + ], + "members":{ + "Message":{"shape":"ExceptionMessage"}, + "ResourceId":{"shape":"ExceptionResourceId"}, + "ResourceType":{"shape":"ExceptionResourceType"} + }, + "error":{"httpStatusCode":404}, + "exception":true + }, + "Risk":{ + "type":"string", + "enum":[ + "UNANSWERED", + "HIGH", + "MEDIUM", + "NONE", + "NOT_APPLICABLE" + ] + }, + "RiskCounts":{ + "type":"map", + "key":{"shape":"Risk"}, + "value":{"shape":"Count"} + }, + "SelectedChoices":{ + "type":"list", + "member":{"shape":"ChoiceId"} + }, + "ServiceCode":{"type":"string"}, + "ServiceQuotaExceededException":{ + "type":"structure", + "required":[ + "Message", + "QuotaCode", + "ServiceCode" + ], + "members":{ + "Message":{"shape":"ExceptionMessage"}, + "ResourceId":{"shape":"ExceptionResourceId"}, + "ResourceType":{"shape":"ExceptionResourceType"}, + "QuotaCode":{"shape":"QuotaCode"}, + "ServiceCode":{"shape":"ServiceCode"} + }, + "error":{"httpStatusCode":402}, + "exception":true + }, + "ShareId":{ + "type":"string", + "pattern":"[0-9a-f]{32}" + }, + "ShareInvitation":{ + "type":"structure", + "members":{ + "ShareInvitationId":{"shape":"ShareInvitationId"}, + "WorkloadId":{"shape":"WorkloadId"} + } + }, + "ShareInvitationAction":{ + "type":"string", + "enum":[ + "ACCEPT", + "REJECT" + ] + }, + "ShareInvitationId":{ + "type":"string", + "pattern":"[0-9a-f]{32}" + }, + "ShareInvitationSummaries":{ + "type":"list", + "member":{"shape":"ShareInvitationSummary"} + }, + "ShareInvitationSummary":{ + "type":"structure", + "members":{ + "ShareInvitationId":{"shape":"ShareInvitationId"}, + "SharedBy":{"shape":"AwsAccountId"}, + "SharedWith":{"shape":"SharedWith"}, + "PermissionType":{"shape":"PermissionType"}, + "WorkloadName":{"shape":"WorkloadName"}, + "WorkloadId":{"shape":"WorkloadId"} + } + }, + "ShareStatus":{ + "type":"string", + "enum":[ + "ACCEPTED", + "REJECTED", + "PENDING", + "REVOKED", + "EXPIRED" + ] + }, + "SharedWith":{ + "type":"string", + "max":2048, + "min":12 + }, + "SharedWithPrefix":{ + "type":"string", + "max":100 + }, + "ThrottlingException":{ + "type":"structure", + "required":["Message"], + "members":{ + "Message":{"shape":"ExceptionMessage"}, + "QuotaCode":{"shape":"QuotaCode"}, + "ServiceCode":{"shape":"ServiceCode"} + }, + "error":{"httpStatusCode":429}, + "exception":true + }, + "Timestamp":{"type":"timestamp"}, + "UpdateAnswerInput":{ + "type":"structure", + "required":[ + "WorkloadId", + "LensAlias", + "QuestionId" + ], + "members":{ + "WorkloadId":{ + "shape":"WorkloadId", + "location":"uri", + "locationName":"WorkloadId" + }, + "LensAlias":{ + "shape":"LensAlias", + "location":"uri", + "locationName":"LensAlias" + }, + "QuestionId":{ + "shape":"QuestionId", + "location":"uri", + "locationName":"QuestionId" + }, + "SelectedChoices":{"shape":"SelectedChoices"}, + "Notes":{"shape":"Notes"}, + "IsApplicable":{"shape":"IsApplicable"} + } + }, + "UpdateAnswerOutput":{ + "type":"structure", + "members":{ + "WorkloadId":{"shape":"WorkloadId"}, + "LensAlias":{"shape":"LensAlias"}, + "Answer":{"shape":"Answer"} + } + }, + "UpdateLensReviewInput":{ + "type":"structure", + "required":[ + "WorkloadId", + "LensAlias" + ], + "members":{ + "WorkloadId":{ + "shape":"WorkloadId", + "location":"uri", + "locationName":"WorkloadId" + }, + "LensAlias":{ + "shape":"LensAlias", + "location":"uri", + "locationName":"LensAlias" + }, + "LensNotes":{"shape":"Notes"}, + "PillarNotes":{"shape":"PillarNotes"} + } + }, + "UpdateLensReviewOutput":{ + "type":"structure", + "members":{ + "WorkloadId":{"shape":"WorkloadId"}, + "LensReview":{"shape":"LensReview"} + } + }, + "UpdateShareInvitationInput":{ + "type":"structure", + "required":[ + "ShareInvitationId", + "ShareInvitationAction" + ], + "members":{ + "ShareInvitationId":{ + "shape":"ShareInvitationId", + "location":"uri", + "locationName":"ShareInvitationId" + }, + "ShareInvitationAction":{"shape":"ShareInvitationAction"} + } + }, + "UpdateShareInvitationOutput":{ + "type":"structure", + "members":{ + "ShareInvitation":{"shape":"ShareInvitation"} + } + }, + "UpdateWorkloadInput":{ + "type":"structure", + "required":["WorkloadId"], + "members":{ + "WorkloadId":{ + "shape":"WorkloadId", + "location":"uri", + "locationName":"WorkloadId" + }, + "WorkloadName":{"shape":"WorkloadName"}, + "Description":{"shape":"WorkloadDescription"}, + "Environment":{"shape":"WorkloadEnvironment"}, + "AccountIds":{"shape":"WorkloadAccountIds"}, + "AwsRegions":{"shape":"WorkloadAwsRegions"}, + "NonAwsRegions":{"shape":"WorkloadNonAwsRegions"}, + "PillarPriorities":{"shape":"WorkloadPillarPriorities"}, + "ArchitecturalDesign":{"shape":"WorkloadArchitecturalDesign"}, + "ReviewOwner":{"shape":"WorkloadReviewOwner"}, + "IsReviewOwnerUpdateAcknowledged":{"shape":"IsReviewOwnerUpdateAcknowledged"}, + "IndustryType":{"shape":"WorkloadIndustryType"}, + "Industry":{"shape":"WorkloadIndustry"}, + "Notes":{"shape":"Notes"}, + "ImprovementStatus":{"shape":"WorkloadImprovementStatus"} + } + }, + "UpdateWorkloadOutput":{ + "type":"structure", + "members":{ + "Workload":{"shape":"Workload"} + } + }, + "UpdateWorkloadShareInput":{ + "type":"structure", + "required":[ + "ShareId", + "WorkloadId", + "PermissionType" + ], + "members":{ + "ShareId":{ + "shape":"ShareId", + "location":"uri", + "locationName":"ShareId" + }, + "WorkloadId":{ + "shape":"WorkloadId", + "location":"uri", + "locationName":"WorkloadId" + }, + "PermissionType":{"shape":"PermissionType"} + } + }, + "UpdateWorkloadShareOutput":{ + "type":"structure", + "members":{ + "WorkloadId":{"shape":"WorkloadId"}, + "WorkloadShare":{"shape":"WorkloadShare"} + } + }, + "UpgradeLensReviewInput":{ + "type":"structure", + "required":[ + "WorkloadId", + "LensAlias", + "MilestoneName" + ], + "members":{ + "WorkloadId":{ + "shape":"WorkloadId", + "location":"uri", + "locationName":"WorkloadId" + }, + "LensAlias":{ + "shape":"LensAlias", + "location":"uri", + "locationName":"LensAlias" + }, + "MilestoneName":{"shape":"MilestoneName"}, + "ClientRequestToken":{"shape":"ClientRequestToken"} + } + }, + "ValidationException":{ + "type":"structure", + "required":["Message"], + "members":{ + "Message":{"shape":"ExceptionMessage"}, + "Reason":{"shape":"ValidationExceptionReason"}, + "Fields":{"shape":"ValidationExceptionFieldList"} + }, + "error":{"httpStatusCode":400}, + "exception":true + }, + "ValidationExceptionField":{ + "type":"structure", + "required":[ + "Name", + "Message" + ], + "members":{ + "Name":{"shape":"ValidationExceptionFieldName"}, + "Message":{"shape":"ExceptionMessage"} + } + }, + "ValidationExceptionFieldList":{ + "type":"list", + "member":{"shape":"ValidationExceptionField"} + }, + "ValidationExceptionFieldName":{"type":"string"}, + "ValidationExceptionReason":{ + "type":"string", + "enum":[ + "UNKNOWN_OPERATION", + "CANNOT_PARSE", + "FIELD_VALIDATION_FAILED", + "OTHER" + ] + }, + "VersionDifferences":{ + "type":"structure", + "members":{ + "PillarDifferences":{"shape":"PillarDifferences"} + } + }, + "Workload":{ + "type":"structure", + "members":{ + "WorkloadId":{"shape":"WorkloadId"}, + "WorkloadArn":{"shape":"WorkloadArn"}, + "WorkloadName":{"shape":"WorkloadName"}, + "Description":{"shape":"WorkloadDescription"}, + "Environment":{"shape":"WorkloadEnvironment"}, + "UpdatedAt":{"shape":"Timestamp"}, + "AccountIds":{"shape":"WorkloadAccountIds"}, + "AwsRegions":{"shape":"WorkloadAwsRegions"}, + "NonAwsRegions":{"shape":"WorkloadNonAwsRegions"}, + "ArchitecturalDesign":{"shape":"WorkloadArchitecturalDesign"}, + "ReviewOwner":{"shape":"WorkloadReviewOwner"}, + "ReviewRestrictionDate":{"shape":"Timestamp"}, + "IsReviewOwnerUpdateAcknowledged":{"shape":"IsReviewOwnerUpdateAcknowledged"}, + "IndustryType":{"shape":"WorkloadIndustryType"}, + "Industry":{"shape":"WorkloadIndustry"}, + "Notes":{"shape":"Notes"}, + "ImprovementStatus":{"shape":"WorkloadImprovementStatus"}, + "RiskCounts":{"shape":"RiskCounts"}, + "PillarPriorities":{"shape":"WorkloadPillarPriorities"}, + "Lenses":{"shape":"WorkloadLenses"}, + "Owner":{"shape":"AwsAccountId"}, + "ShareInvitationId":{"shape":"ShareInvitationId"} + } + }, + "WorkloadAccountIds":{ + "type":"list", + "member":{"shape":"AwsAccountId"}, + "max":100 + }, + "WorkloadArchitecturalDesign":{ + "type":"string", + "max":2048 + }, + "WorkloadArn":{"type":"string"}, + "WorkloadAwsRegions":{ + "type":"list", + "member":{"shape":"AwsRegion"}, + "max":50 + }, + "WorkloadDescription":{ + "type":"string", + "max":250, + "min":3 + }, + "WorkloadEnvironment":{ + "type":"string", + "enum":[ + "PRODUCTION", + "PREPRODUCTION" + ] + }, + "WorkloadId":{ + "type":"string", + "pattern":"[0-9a-f]{32}" + }, + "WorkloadImprovementStatus":{ + "type":"string", + "enum":[ + "NOT_APPLICABLE", + "NOT_STARTED", + "IN_PROGRESS", + "COMPLETE", + "RISK_ACKNOWLEDGED" + ] + }, + "WorkloadIndustry":{ + "type":"string", + "max":100 + }, + "WorkloadIndustryType":{ + "type":"string", + "max":100 + }, + "WorkloadLenses":{ + "type":"list", + "member":{"shape":"LensAlias"} + }, + "WorkloadName":{ + "type":"string", + "max":100, + "min":3 + }, + "WorkloadNamePrefix":{ + "type":"string", + "max":100 + }, + "WorkloadNonAwsRegion":{ + "type":"string", + "max":25, + "min":3 + }, + "WorkloadNonAwsRegions":{ + "type":"list", + "member":{"shape":"WorkloadNonAwsRegion"}, + "max":5 + }, + "WorkloadPillarPriorities":{ + "type":"list", + "member":{"shape":"PillarId"} + }, + "WorkloadReviewOwner":{ + "type":"string", + "max":255, + "min":3 + }, + "WorkloadShare":{ + "type":"structure", + "members":{ + "ShareId":{"shape":"ShareId"}, + "SharedBy":{"shape":"AwsAccountId"}, + "SharedWith":{"shape":"SharedWith"}, + "PermissionType":{"shape":"PermissionType"}, + "Status":{"shape":"ShareStatus"}, + "WorkloadName":{"shape":"WorkloadName"}, + "WorkloadId":{"shape":"WorkloadId"} + } + }, + "WorkloadShareSummaries":{ + "type":"list", + "member":{"shape":"WorkloadShareSummary"} + }, + "WorkloadShareSummary":{ + "type":"structure", + "members":{ + "ShareId":{"shape":"ShareId"}, + "SharedWith":{"shape":"SharedWith"}, + "PermissionType":{"shape":"PermissionType"}, + "Status":{"shape":"ShareStatus"} + } + }, + "WorkloadSummaries":{ + "type":"list", + "member":{"shape":"WorkloadSummary"} + }, + "WorkloadSummary":{ + "type":"structure", + "members":{ + "WorkloadId":{"shape":"WorkloadId"}, + "WorkloadArn":{"shape":"WorkloadArn"}, + "WorkloadName":{"shape":"WorkloadName"}, + "Owner":{"shape":"AwsAccountId"}, + "UpdatedAt":{"shape":"Timestamp"}, + "Lenses":{"shape":"WorkloadLenses"}, + "RiskCounts":{"shape":"RiskCounts"}, + "ImprovementStatus":{"shape":"WorkloadImprovementStatus"} + } + } + } +} diff --git a/models/apis/wellarchitected/2020-03-31/docs-2.json b/models/apis/wellarchitected/2020-03-31/docs-2.json new file mode 100644 index 0000000000..e994edd7cc --- /dev/null +++ b/models/apis/wellarchitected/2020-03-31/docs-2.json @@ -0,0 +1,1212 @@ +{ + "version": "2.0", + "service": "AWS Well-Architected Tool

This is the AWS Well-Architected Tool API Reference.

The AWS Well-Architected Tool API provides programmatic access to the AWS Well-Architected Tool in the AWS Management Console.

Managing workloads:

Managing milestones:

Managing lenses:

Managing reviews:

Managing workload shares:

Managing workload share invitations:

For information about the AWS Well-Architected Tool, see the AWS Well-Architected Tool User Guide.

", + "operations": { + "AssociateLenses": "

Associate a lens to a workload.

", + "CreateMilestone": "

Create a milestone for an existing workload.

", + "CreateWorkload": "

Create a new workload.

The owner of a workload can share the workload with other AWS accounts and IAM users in the same AWS Region. Only the owner of a workload can delete it.

For more information, see Defining a Workload in the AWS Well-Architected Tool User Guide.

", + "CreateWorkloadShare": "

Create a workload share.

The owner of a workload can share it with other AWS accounts and IAM users in the same AWS Region. Shared access to a workload is not removed until the workload invitation is deleted.

For more information, see Sharing a Workload in the AWS Well-Architected Tool User Guide.

", + "DeleteWorkload": "

Delete an existing workload.

", + "DeleteWorkloadShare": "

Delete a workload share.

", + "DisassociateLenses": "

Disassociate a lens from a workload.

The AWS Well-Architected Framework lens (wellarchitected) cannot be removed from a workload.

", + "GetAnswer": "

Get lens review.

", + "GetLensReview": "

Get lens review.

", + "GetLensReviewReport": "

Get lens review report.

", + "GetLensVersionDifference": "

Get lens version differences.

", + "GetMilestone": "

Get a milestone for an existing workload.

", + "GetWorkload": "

Get an existing workload.

", + "ListAnswers": "

List of answers.

", + "ListLensReviewImprovements": "

List lens review improvements.

", + "ListLensReviews": "

List lens reviews.

", + "ListLenses": "

List the available lenses.

", + "ListMilestones": "

List all milestones for an existing workload.

", + "ListNotifications": "

List lens notifications.

", + "ListShareInvitations": "

List the workload invitations.

", + "ListWorkloadShares": "

List the workload shares associated with the workload.

", + "ListWorkloads": "

List workloads. Paginated.

", + "UpdateAnswer": "

Update the answer.

", + "UpdateLensReview": "

Update lens review.

", + "UpdateShareInvitation": "

Update a workload invitation.

", + "UpdateWorkload": "

Update an existing workload.

", + "UpdateWorkloadShare": "

Update a workload share.

", + "UpgradeLensReview": "

Upgrade lens review.

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

User does not have sufficient access to perform this action.

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

An answer of the question.

", + "refs": { + "GetAnswerOutput$Answer": null, + "UpdateAnswerOutput$Answer": null + } + }, + "AnswerSummaries": { + "base": "

List of answer summaries of lens review in a workload.

", + "refs": { + "ListAnswersOutput$AnswerSummaries": null + } + }, + "AnswerSummary": { + "base": "

An answer summary of a lens review in a workload.

", + "refs": { + "AnswerSummaries$member": null + } + }, + "AssociateLensesInput": { + "base": "

Input to associate lens reviews.

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

An AWS account ID.

", + "refs": { + "ShareInvitationSummary$SharedBy": null, + "Workload$Owner": null, + "WorkloadAccountIds$member": null, + "WorkloadShare$SharedBy": null, + "WorkloadSummary$Owner": null + } + }, + "AwsRegion": { + "base": "

An AWS Region, for example, us-west-2 or ap-northeast-1.

", + "refs": { + "WorkloadAwsRegions$member": null + } + }, + "Base64String": { + "base": "

The Base64-encoded string representation of a lens review report.

This data can be used to create a PDF file.

", + "refs": { + "LensReviewReport$Base64String": null + } + }, + "Choice": { + "base": "

A choice available to answer question.

", + "refs": { + "Choices$member": null + } + }, + "ChoiceDescription": { + "base": "

The description of a choice.

", + "refs": { + "Choice$Description": null + } + }, + "ChoiceId": { + "base": "

The ID of a choice.

", + "refs": { + "Choice$ChoiceId": null, + "SelectedChoices$member": null + } + }, + "ChoiceTitle": { + "base": "

The title of a choice.

", + "refs": { + "Choice$Title": null + } + }, + "Choices": { + "base": "

List of choices available for a question.

", + "refs": { + "Answer$Choices": null, + "AnswerSummary$Choices": null + } + }, + "ClientRequestToken": { + "base": "

A unique case-sensitive string used to ensure that this request is idempotent (executes only once).

You should not reuse the same token for other requests. If you retry a request with the same client request token and the same parameters after it has completed successfully, the result of the original request is returned.

This token is listed as required, however, if you do not specify it, the AWS SDKs automatically generate one for you. If you are not using the AWS SDK or the AWS CLI, you must provide this token or the request will fail.

", + "refs": { + "CreateMilestoneInput$ClientRequestToken": null, + "CreateWorkloadInput$ClientRequestToken": null, + "CreateWorkloadShareInput$ClientRequestToken": null, + "DeleteWorkloadInput$ClientRequestToken": null, + "DeleteWorkloadShareInput$ClientRequestToken": null, + "UpgradeLensReviewInput$ClientRequestToken": null + } + }, + "ConflictException": { + "base": "

The resource already exists.

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

A non-negative integer that denotes how many.

", + "refs": { + "RiskCounts$value": null + } + }, + "CreateMilestoneInput": { + "base": "

Input for milestone creation.

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

Output of a create milestone call.

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

Input for workload creation.

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

Output of a create workload call.

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

Input for Create Workload Share

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

Input for Create Workload Share

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

Input for workload deletion.

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

Input for Delete Workload Share

", + "refs": { + } + }, + "DifferenceStatus": { + "base": null, + "refs": { + "PillarDifference$DifferenceStatus": "

Indicates the type of change to the pillar.

", + "QuestionDifference$DifferenceStatus": "

Indicates the type of change to the question.

" + } + }, + "DisassociateLensesInput": { + "base": "

Input to disassociate lens reviews.

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

Description of the error.

", + "refs": { + "AccessDeniedException$Message": null, + "ConflictException$Message": null, + "InternalServerException$Message": null, + "ResourceNotFoundException$Message": null, + "ServiceQuotaExceededException$Message": null, + "ThrottlingException$Message": null, + "ValidationException$Message": null, + "ValidationExceptionField$Message": null + } + }, + "ExceptionResourceId": { + "base": "

Identifier of the resource affected.

", + "refs": { + "ConflictException$ResourceId": null, + "ResourceNotFoundException$ResourceId": null, + "ServiceQuotaExceededException$ResourceId": null + } + }, + "ExceptionResourceType": { + "base": "

Type of the resource affected.

", + "refs": { + "ConflictException$ResourceType": null, + "ResourceNotFoundException$ResourceType": null, + "ServiceQuotaExceededException$ResourceType": null + } + }, + "GetAnswerInput": { + "base": "

Input to get answer.

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

Output of a get answer call.

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

Input to get lens review.

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

Output of a get lens review call.

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

Input to get lens review report.

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

Output of a get lens review report call.

", + "refs": { + } + }, + "GetLensVersionDifferenceInput": { + "base": null, + "refs": { + } + }, + "GetLensVersionDifferenceOutput": { + "base": null, + "refs": { + } + }, + "GetMilestoneInput": { + "base": "

Input to get a milestone.

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

Output of a get milestone call.

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

Input to get a workload.

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

Output of a get workload call.

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

The helpful resource URL for a question.

", + "refs": { + "Answer$HelpfulResourceUrl": null + } + }, + "ImprovementPlanUrl": { + "base": "

The improvement plan URL for a question.

", + "refs": { + "Answer$ImprovementPlanUrl": null, + "ImprovementSummary$ImprovementPlanUrl": null + } + }, + "ImprovementSummaries": { + "base": "

List of improvement summaries of lens review in a workload.

", + "refs": { + "ListLensReviewImprovementsOutput$ImprovementSummaries": null + } + }, + "ImprovementSummary": { + "base": "

An improvement summary of a lens review in a workload.

", + "refs": { + "ImprovementSummaries$member": null + } + }, + "InternalServerException": { + "base": "

There is a problem with the AWS Well-Architected Tool API service.

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

Defines whether this question is applicable to a lens review.

", + "refs": { + "Answer$IsApplicable": null, + "AnswerSummary$IsApplicable": null, + "UpdateAnswerInput$IsApplicable": null + } + }, + "IsReviewOwnerUpdateAcknowledged": { + "base": null, + "refs": { + "UpdateWorkloadInput$IsReviewOwnerUpdateAcknowledged": "

Flag indicating whether the workload owner has acknowledged that the Review owner field is required.

If a Review owner is not added to the workload within 60 days of acknowledgement, access to the workload is restricted until an owner is added.

", + "Workload$IsReviewOwnerUpdateAcknowledged": "

Flag indicating whether the workload owner has acknowledged that the Review owner field is required.

If a Review owner is not added to the workload within 60 days of acknowledgement, access to the workload is restricted until an owner is added.

" + } + }, + "LensAlias": { + "base": "

The alias of the lens, for example, serverless.

Each lens is identified by its LensSummary$LensAlias.

", + "refs": { + "GetAnswerInput$LensAlias": null, + "GetAnswerOutput$LensAlias": null, + "GetLensReviewInput$LensAlias": null, + "GetLensReviewReportInput$LensAlias": null, + "GetLensVersionDifferenceInput$LensAlias": null, + "GetLensVersionDifferenceOutput$LensAlias": null, + "LensAliases$member": null, + "LensReview$LensAlias": null, + "LensReviewReport$LensAlias": null, + "LensReviewSummary$LensAlias": null, + "LensSummary$LensAlias": null, + "LensUpgradeSummary$LensAlias": null, + "ListAnswersInput$LensAlias": null, + "ListAnswersOutput$LensAlias": null, + "ListLensReviewImprovementsInput$LensAlias": null, + "ListLensReviewImprovementsOutput$LensAlias": null, + "UpdateAnswerInput$LensAlias": null, + "UpdateAnswerOutput$LensAlias": null, + "UpdateLensReviewInput$LensAlias": null, + "UpgradeLensReviewInput$LensAlias": null, + "WorkloadLenses$member": null + } + }, + "LensAliases": { + "base": "

List of lens aliases to associate or disassociate with a workload.

Identify a lens using its LensSummary$LensAlias.

", + "refs": { + "AssociateLensesInput$LensAliases": null, + "DisassociateLensesInput$LensAliases": null + } + }, + "LensDescription": { + "base": "

The description of the lens.

", + "refs": { + "LensSummary$Description": null + } + }, + "LensName": { + "base": "

The full name of the lens.

", + "refs": { + "LensReview$LensName": null, + "LensReviewSummary$LensName": null, + "LensSummary$LensName": null + } + }, + "LensReview": { + "base": "

A lens review of a question.

", + "refs": { + "GetLensReviewOutput$LensReview": null, + "UpdateLensReviewOutput$LensReview": null + } + }, + "LensReviewReport": { + "base": "

A report of a lens review.

", + "refs": { + "GetLensReviewReportOutput$LensReviewReport": null + } + }, + "LensReviewSummaries": { + "base": "

List of lens summaries of lens reviews of a workload.

", + "refs": { + "ListLensReviewsOutput$LensReviewSummaries": null + } + }, + "LensReviewSummary": { + "base": "

A lens review summary of a workload.

", + "refs": { + "LensReviewSummaries$member": null + } + }, + "LensStatus": { + "base": null, + "refs": { + "LensReview$LensStatus": "

The status of the lens.

", + "LensReviewSummary$LensStatus": "

The status of the lens.

" + } + }, + "LensSummaries": { + "base": "

List of lens summaries of available lenses.

", + "refs": { + "ListLensesOutput$LensSummaries": null + } + }, + "LensSummary": { + "base": "

A lens summary of a lens.

", + "refs": { + "LensSummaries$member": null + } + }, + "LensUpgradeSummary": { + "base": "

Lens upgrade summary return object.

", + "refs": { + "NotificationSummary$LensUpgradeSummary": "

Summary of lens upgrade.

" + } + }, + "LensVersion": { + "base": null, + "refs": { + "GetLensVersionDifferenceInput$BaseLensVersion": "

The base version of the lens.

", + "GetLensVersionDifferenceOutput$BaseLensVersion": "

The base version of the lens.

", + "GetLensVersionDifferenceOutput$LatestLensVersion": "

The latest version of the lens.

", + "LensReview$LensVersion": "

The version of the lens.

", + "LensReviewSummary$LensVersion": "

The version of the lens.

", + "LensSummary$LensVersion": "

The version of the lens.

", + "LensUpgradeSummary$CurrentLensVersion": "

The current version of the lens.

", + "LensUpgradeSummary$LatestLensVersion": "

The latest version of the lens.

" + } + }, + "ListAnswersInput": { + "base": "

Input to list answers.

", + "refs": { + } + }, + "ListAnswersMaxResults": { + "base": null, + "refs": { + "ListAnswersInput$MaxResults": "

The maximum number of results to return for this request.

" + } + }, + "ListAnswersOutput": { + "base": "

Output of a list answers call.

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

Input to list lens review improvements.

", + "refs": { + } + }, + "ListLensReviewImprovementsMaxResults": { + "base": null, + "refs": { + "ListLensReviewImprovementsInput$MaxResults": "

The maximum number of results to return for this request.

" + } + }, + "ListLensReviewImprovementsOutput": { + "base": "

Output of a list lens review improvements call.

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

Input to list lens reviews.

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

Output of a list lens reviews call.

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

Input to list lenses.

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

Output of a list lenses call.

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

Input to list all milestones for a workload.

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

Output of a list milestones call.

", + "refs": { + } + }, + "ListNotificationsInput": { + "base": null, + "refs": { + } + }, + "ListNotificationsMaxResults": { + "base": null, + "refs": { + "ListNotificationsInput$MaxResults": "

The maximum number of results to return for this request.

" + } + }, + "ListNotificationsOutput": { + "base": null, + "refs": { + } + }, + "ListShareInvitationsInput": { + "base": "

Input for List Share Invitations

", + "refs": { + } + }, + "ListShareInvitationsMaxResults": { + "base": null, + "refs": { + "ListShareInvitationsInput$MaxResults": "

The maximum number of results to return for this request.

" + } + }, + "ListShareInvitationsOutput": { + "base": "

Input for List Share Invitations

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

Input for List Workload Share

", + "refs": { + } + }, + "ListWorkloadSharesMaxResults": { + "base": null, + "refs": { + "ListWorkloadSharesInput$MaxResults": "

The maximum number of results to return for this request.

" + } + }, + "ListWorkloadSharesOutput": { + "base": "

Input for List Workload Share

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

Input to list all workloads.

", + "refs": { + } + }, + "ListWorkloadsMaxResults": { + "base": null, + "refs": { + "ListWorkloadsInput$MaxResults": "

The maximum number of results to return for this request.

" + } + }, + "ListWorkloadsOutput": { + "base": "

Output of a list workloads call.

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

The maximum number of results to return for this request.

", + "refs": { + "ListLensReviewsInput$MaxResults": null, + "ListLensesInput$MaxResults": null, + "ListMilestonesInput$MaxResults": null + } + }, + "Milestone": { + "base": "

A milestone return object.

", + "refs": { + "GetMilestoneOutput$Milestone": null + } + }, + "MilestoneName": { + "base": "

The name of the milestone in a workload.

Milestone names must be unique within a workload.

", + "refs": { + "CreateMilestoneInput$MilestoneName": null, + "Milestone$MilestoneName": null, + "MilestoneSummary$MilestoneName": null, + "UpgradeLensReviewInput$MilestoneName": null + } + }, + "MilestoneNumber": { + "base": "

The milestone number.

A workload can have a maximum of 100 milestones.

", + "refs": { + "CreateMilestoneOutput$MilestoneNumber": null, + "GetAnswerInput$MilestoneNumber": null, + "GetAnswerOutput$MilestoneNumber": null, + "GetLensReviewInput$MilestoneNumber": null, + "GetLensReviewOutput$MilestoneNumber": null, + "GetLensReviewReportInput$MilestoneNumber": null, + "GetLensReviewReportOutput$MilestoneNumber": null, + "GetMilestoneInput$MilestoneNumber": null, + "ListAnswersInput$MilestoneNumber": null, + "ListAnswersOutput$MilestoneNumber": null, + "ListLensReviewImprovementsInput$MilestoneNumber": null, + "ListLensReviewImprovementsOutput$MilestoneNumber": null, + "ListLensReviewsInput$MilestoneNumber": null, + "ListLensReviewsOutput$MilestoneNumber": null, + "Milestone$MilestoneNumber": null, + "MilestoneSummary$MilestoneNumber": null + } + }, + "MilestoneSummaries": { + "base": "

A list of milestone summaries.

", + "refs": { + "ListMilestonesOutput$MilestoneSummaries": null + } + }, + "MilestoneSummary": { + "base": "

A milestone summary return object.

", + "refs": { + "MilestoneSummaries$member": null + } + }, + "NextToken": { + "base": "

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

", + "refs": { + "LensReview$NextToken": null, + "ListAnswersInput$NextToken": null, + "ListAnswersOutput$NextToken": null, + "ListLensReviewImprovementsInput$NextToken": null, + "ListLensReviewImprovementsOutput$NextToken": null, + "ListLensReviewsInput$NextToken": null, + "ListLensReviewsOutput$NextToken": null, + "ListLensesInput$NextToken": null, + "ListLensesOutput$NextToken": null, + "ListMilestonesInput$NextToken": null, + "ListMilestonesOutput$NextToken": null, + "ListNotificationsInput$NextToken": null, + "ListNotificationsOutput$NextToken": null, + "ListShareInvitationsInput$NextToken": null, + "ListShareInvitationsOutput$NextToken": null, + "ListWorkloadSharesInput$NextToken": null, + "ListWorkloadSharesOutput$NextToken": null, + "ListWorkloadsInput$NextToken": null, + "ListWorkloadsOutput$NextToken": null + } + }, + "Notes": { + "base": "

The notes associated with the workload.

", + "refs": { + "Answer$Notes": null, + "CreateWorkloadInput$Notes": null, + "LensReview$Notes": null, + "PillarNotes$value": null, + "PillarReviewSummary$Notes": null, + "UpdateAnswerInput$Notes": null, + "UpdateLensReviewInput$LensNotes": null, + "UpdateWorkloadInput$Notes": null, + "Workload$Notes": null + } + }, + "NotificationSummaries": { + "base": null, + "refs": { + "ListNotificationsOutput$NotificationSummaries": "

List of lens notification summaries in a workload.

" + } + }, + "NotificationSummary": { + "base": "

A notification summary return object.

", + "refs": { + "NotificationSummaries$member": null + } + }, + "NotificationType": { + "base": null, + "refs": { + "NotificationSummary$Type": "

The type of notification.

" + } + }, + "PermissionType": { + "base": "

Permission granted on a workload share.

", + "refs": { + "CreateWorkloadShareInput$PermissionType": null, + "ShareInvitationSummary$PermissionType": null, + "UpdateWorkloadShareInput$PermissionType": null, + "WorkloadShare$PermissionType": null, + "WorkloadShareSummary$PermissionType": null + } + }, + "PillarDifference": { + "base": "

A pillar difference return object.

", + "refs": { + "PillarDifferences$member": null + } + }, + "PillarDifferences": { + "base": null, + "refs": { + "VersionDifferences$PillarDifferences": "

The differences between the base and latest versions of the lens.

" + } + }, + "PillarId": { + "base": "

The ID used to identify a pillar, for example, security.

A pillar is identified by its PillarReviewSummary$PillarId.

", + "refs": { + "Answer$PillarId": null, + "AnswerSummary$PillarId": null, + "ImprovementSummary$PillarId": null, + "ListAnswersInput$PillarId": null, + "ListLensReviewImprovementsInput$PillarId": null, + "PillarDifference$PillarId": null, + "PillarNotes$key": null, + "PillarReviewSummary$PillarId": null, + "WorkloadPillarPriorities$member": null + } + }, + "PillarName": { + "base": "

The name of the pillar.

", + "refs": { + "PillarReviewSummary$PillarName": null + } + }, + "PillarNotes": { + "base": "

List of pillar notes of a lens review in a workload.

", + "refs": { + "UpdateLensReviewInput$PillarNotes": null + } + }, + "PillarReviewSummaries": { + "base": "

List of pillar review summaries of lens review in a workload.

", + "refs": { + "LensReview$PillarReviewSummaries": null + } + }, + "PillarReviewSummary": { + "base": "

A pillar review summary of a lens review.

", + "refs": { + "PillarReviewSummaries$member": null + } + }, + "QuestionDescription": { + "base": "

The description of the question.

", + "refs": { + "Answer$QuestionDescription": null + } + }, + "QuestionDifference": { + "base": "

A question difference return object.

", + "refs": { + "QuestionDifferences$member": null + } + }, + "QuestionDifferences": { + "base": null, + "refs": { + "PillarDifference$QuestionDifferences": "

List of question differences.

" + } + }, + "QuestionId": { + "base": "

The ID of the question.

", + "refs": { + "Answer$QuestionId": null, + "AnswerSummary$QuestionId": null, + "GetAnswerInput$QuestionId": null, + "ImprovementSummary$QuestionId": null, + "QuestionDifference$QuestionId": null, + "UpdateAnswerInput$QuestionId": null + } + }, + "QuestionTitle": { + "base": "

The title of the question.

", + "refs": { + "Answer$QuestionTitle": null, + "AnswerSummary$QuestionTitle": null, + "ImprovementSummary$QuestionTitle": null, + "QuestionDifference$QuestionTitle": null + } + }, + "QuotaCode": { + "base": "

Service Quotas requirement to identify originating quota.

", + "refs": { + "ServiceQuotaExceededException$QuotaCode": null, + "ThrottlingException$QuotaCode": null + } + }, + "ResourceNotFoundException": { + "base": "

The requested resource was not found.

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

The risk for a given workload, lens review, pillar, or question.

", + "refs": { + "Answer$Risk": null, + "AnswerSummary$Risk": null, + "ImprovementSummary$Risk": null, + "RiskCounts$key": null + } + }, + "RiskCounts": { + "base": "

A map from risk names to the count of how questions have that rating.

", + "refs": { + "LensReview$RiskCounts": null, + "LensReviewSummary$RiskCounts": null, + "PillarReviewSummary$RiskCounts": null, + "Workload$RiskCounts": null, + "WorkloadSummary$RiskCounts": null + } + }, + "SelectedChoices": { + "base": "

List of selected choice IDs in a question answer.

", + "refs": { + "Answer$SelectedChoices": null, + "AnswerSummary$SelectedChoices": null, + "UpdateAnswerInput$SelectedChoices": null + } + }, + "ServiceCode": { + "base": "

Service Quotas requirement to identify originating service.

", + "refs": { + "ServiceQuotaExceededException$ServiceCode": null, + "ThrottlingException$ServiceCode": null + } + }, + "ServiceQuotaExceededException": { + "base": "

The user has reached their resource quota.

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

The ID associated with the workload share.

", + "refs": { + "CreateWorkloadShareOutput$ShareId": null, + "DeleteWorkloadShareInput$ShareId": null, + "UpdateWorkloadShareInput$ShareId": null, + "WorkloadShare$ShareId": null, + "WorkloadShareSummary$ShareId": null + } + }, + "ShareInvitation": { + "base": "

The share invitation.

", + "refs": { + "UpdateShareInvitationOutput$ShareInvitation": "

The updated workload share invitation.

" + } + }, + "ShareInvitationAction": { + "base": "

Share invitation action taken by contributor.

", + "refs": { + "UpdateShareInvitationInput$ShareInvitationAction": null + } + }, + "ShareInvitationId": { + "base": null, + "refs": { + "ShareInvitation$ShareInvitationId": "

The ID assigned to the share invitation.

", + "ShareInvitationSummary$ShareInvitationId": "

The ID assigned to the share invitation.

", + "UpdateShareInvitationInput$ShareInvitationId": "

The ID assigned to the share invitation.

", + "Workload$ShareInvitationId": "

The ID assigned to the share invitation.

" + } + }, + "ShareInvitationSummaries": { + "base": null, + "refs": { + "ListShareInvitationsOutput$ShareInvitationSummaries": "

List of share invitation summaries in a workload.

" + } + }, + "ShareInvitationSummary": { + "base": "

A share invitation summary return object.

", + "refs": { + "ShareInvitationSummaries$member": null + } + }, + "ShareStatus": { + "base": "

The status of a workload share.

", + "refs": { + "WorkloadShare$Status": null, + "WorkloadShareSummary$Status": null + } + }, + "SharedWith": { + "base": "

The AWS account ID or IAM role with which the workload is shared.

", + "refs": { + "CreateWorkloadShareInput$SharedWith": null, + "ShareInvitationSummary$SharedWith": null, + "WorkloadShare$SharedWith": null, + "WorkloadShareSummary$SharedWith": null + } + }, + "SharedWithPrefix": { + "base": null, + "refs": { + "ListWorkloadSharesInput$SharedWithPrefix": "

The AWS account ID or IAM role with which the workload is shared.

" + } + }, + "ThrottlingException": { + "base": "

Request was denied due to request throttling.

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

The date and time recorded.

", + "refs": { + "LensReview$UpdatedAt": null, + "LensReviewSummary$UpdatedAt": null, + "Milestone$RecordedAt": null, + "MilestoneSummary$RecordedAt": null, + "Workload$UpdatedAt": null, + "Workload$ReviewRestrictionDate": null, + "WorkloadSummary$UpdatedAt": null + } + }, + "UpdateAnswerInput": { + "base": "

Input to update answer.

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

Output of a update answer call.

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

Input for update lens review.

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

Output of a update lens review call.

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

Input for Update Share Invitation

", + "refs": { + } + }, + "UpdateShareInvitationOutput": { + "base": null, + "refs": { + } + }, + "UpdateWorkloadInput": { + "base": "

Input to update a workload.

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

Output of an update workload call.

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

Input for Update Workload Share

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

Input for Update Workload Share

", + "refs": { + } + }, + "UpgradeLensReviewInput": { + "base": null, + "refs": { + } + }, + "ValidationException": { + "base": "

The user input is not valid.

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

Stores information about a field passed inside a request that resulted in an exception.

", + "refs": { + "ValidationExceptionFieldList$member": null + } + }, + "ValidationExceptionFieldList": { + "base": "

The fields that caused the error, if applicable.

", + "refs": { + "ValidationException$Fields": null + } + }, + "ValidationExceptionFieldName": { + "base": "

The field name for which validation failed.

", + "refs": { + "ValidationExceptionField$Name": null + } + }, + "ValidationExceptionReason": { + "base": "

The reason why the request failed validation.

", + "refs": { + "ValidationException$Reason": null + } + }, + "VersionDifferences": { + "base": "

The differences between the base and latest versions of the lens.

", + "refs": { + "GetLensVersionDifferenceOutput$VersionDifferences": null + } + }, + "Workload": { + "base": "

A workload return object.

", + "refs": { + "GetWorkloadOutput$Workload": null, + "Milestone$Workload": null, + "UpdateWorkloadOutput$Workload": null + } + }, + "WorkloadAccountIds": { + "base": "

The list of AWS account IDs associated with the workload.

", + "refs": { + "CreateWorkloadInput$AccountIds": null, + "UpdateWorkloadInput$AccountIds": null, + "Workload$AccountIds": null + } + }, + "WorkloadArchitecturalDesign": { + "base": "

The URL of the architectural design for the workload.

", + "refs": { + "CreateWorkloadInput$ArchitecturalDesign": null, + "UpdateWorkloadInput$ArchitecturalDesign": null, + "Workload$ArchitecturalDesign": null + } + }, + "WorkloadArn": { + "base": "

The ARN for the workload.

", + "refs": { + "CreateWorkloadOutput$WorkloadArn": null, + "Workload$WorkloadArn": null, + "WorkloadSummary$WorkloadArn": null + } + }, + "WorkloadAwsRegions": { + "base": "

The list of AWS Regions associated with the workload, for example, us-east-2, or ca-central-1.

", + "refs": { + "CreateWorkloadInput$AwsRegions": null, + "UpdateWorkloadInput$AwsRegions": null, + "Workload$AwsRegions": null + } + }, + "WorkloadDescription": { + "base": "

The description for the workload.

", + "refs": { + "CreateWorkloadInput$Description": null, + "UpdateWorkloadInput$Description": null, + "Workload$Description": null + } + }, + "WorkloadEnvironment": { + "base": "

The environment for the workload.

", + "refs": { + "CreateWorkloadInput$Environment": null, + "UpdateWorkloadInput$Environment": null, + "Workload$Environment": null + } + }, + "WorkloadId": { + "base": "

The ID assigned to the workload. This ID is unique within an AWS Region.

", + "refs": { + "AssociateLensesInput$WorkloadId": null, + "CreateMilestoneInput$WorkloadId": null, + "CreateMilestoneOutput$WorkloadId": null, + "CreateWorkloadOutput$WorkloadId": null, + "CreateWorkloadShareInput$WorkloadId": null, + "CreateWorkloadShareOutput$WorkloadId": null, + "DeleteWorkloadInput$WorkloadId": null, + "DeleteWorkloadShareInput$WorkloadId": null, + "DisassociateLensesInput$WorkloadId": null, + "GetAnswerInput$WorkloadId": null, + "GetAnswerOutput$WorkloadId": null, + "GetLensReviewInput$WorkloadId": null, + "GetLensReviewOutput$WorkloadId": null, + "GetLensReviewReportInput$WorkloadId": null, + "GetLensReviewReportOutput$WorkloadId": null, + "GetMilestoneInput$WorkloadId": null, + "GetMilestoneOutput$WorkloadId": null, + "GetWorkloadInput$WorkloadId": null, + "LensUpgradeSummary$WorkloadId": null, + "ListAnswersInput$WorkloadId": null, + "ListAnswersOutput$WorkloadId": null, + "ListLensReviewImprovementsInput$WorkloadId": null, + "ListLensReviewImprovementsOutput$WorkloadId": null, + "ListLensReviewsInput$WorkloadId": null, + "ListLensReviewsOutput$WorkloadId": null, + "ListMilestonesInput$WorkloadId": null, + "ListMilestonesOutput$WorkloadId": null, + "ListNotificationsInput$WorkloadId": null, + "ListWorkloadSharesInput$WorkloadId": null, + "ListWorkloadSharesOutput$WorkloadId": null, + "ShareInvitation$WorkloadId": null, + "ShareInvitationSummary$WorkloadId": null, + "UpdateAnswerInput$WorkloadId": null, + "UpdateAnswerOutput$WorkloadId": null, + "UpdateLensReviewInput$WorkloadId": null, + "UpdateLensReviewOutput$WorkloadId": null, + "UpdateWorkloadInput$WorkloadId": null, + "UpdateWorkloadShareInput$WorkloadId": null, + "UpdateWorkloadShareOutput$WorkloadId": null, + "UpgradeLensReviewInput$WorkloadId": null, + "Workload$WorkloadId": null, + "WorkloadShare$WorkloadId": null, + "WorkloadSummary$WorkloadId": null + } + }, + "WorkloadImprovementStatus": { + "base": "

The improvement status for a workload.

", + "refs": { + "UpdateWorkloadInput$ImprovementStatus": null, + "Workload$ImprovementStatus": null, + "WorkloadSummary$ImprovementStatus": null + } + }, + "WorkloadIndustry": { + "base": "

The industry for the workload.

", + "refs": { + "CreateWorkloadInput$Industry": null, + "UpdateWorkloadInput$Industry": null, + "Workload$Industry": null + } + }, + "WorkloadIndustryType": { + "base": "

The industry type for the workload.

If specified, must be one of the following:

", + "refs": { + "CreateWorkloadInput$IndustryType": null, + "UpdateWorkloadInput$IndustryType": null, + "Workload$IndustryType": null + } + }, + "WorkloadLenses": { + "base": "

The list of lenses associated with the workload. Each lens is identified by its LensSummary$LensAlias.

", + "refs": { + "CreateWorkloadInput$Lenses": null, + "Workload$Lenses": null, + "WorkloadSummary$Lenses": null + } + }, + "WorkloadName": { + "base": "

The name of the workload.

The name must be unique within an account within a Region. Spaces and capitalization are ignored when checking for uniqueness.

", + "refs": { + "CreateWorkloadInput$WorkloadName": null, + "LensUpgradeSummary$WorkloadName": null, + "ShareInvitationSummary$WorkloadName": null, + "UpdateWorkloadInput$WorkloadName": null, + "Workload$WorkloadName": null, + "WorkloadShare$WorkloadName": null, + "WorkloadSummary$WorkloadName": null + } + }, + "WorkloadNamePrefix": { + "base": "

An optional string added to the beginning of each workload name returned in the results.

", + "refs": { + "ListShareInvitationsInput$WorkloadNamePrefix": null, + "ListWorkloadsInput$WorkloadNamePrefix": null + } + }, + "WorkloadNonAwsRegion": { + "base": null, + "refs": { + "WorkloadNonAwsRegions$member": null + } + }, + "WorkloadNonAwsRegions": { + "base": "

The list of non-AWS Regions associated with the workload.

", + "refs": { + "CreateWorkloadInput$NonAwsRegions": null, + "UpdateWorkloadInput$NonAwsRegions": null, + "Workload$NonAwsRegions": null + } + }, + "WorkloadPillarPriorities": { + "base": "

The priorities of the pillars, which are used to order items in the improvement plan. Each pillar is represented by its PillarReviewSummary$PillarId.

", + "refs": { + "CreateWorkloadInput$PillarPriorities": null, + "UpdateWorkloadInput$PillarPriorities": null, + "Workload$PillarPriorities": null + } + }, + "WorkloadReviewOwner": { + "base": "

The review owner of the workload. The name, email address, or identifier for the primary group or individual that owns the workload review process.

", + "refs": { + "CreateWorkloadInput$ReviewOwner": null, + "UpdateWorkloadInput$ReviewOwner": null, + "Workload$ReviewOwner": null + } + }, + "WorkloadShare": { + "base": "

A workload share return object.

", + "refs": { + "UpdateWorkloadShareOutput$WorkloadShare": null + } + }, + "WorkloadShareSummaries": { + "base": "

A list of workload share summaries.

", + "refs": { + "ListWorkloadSharesOutput$WorkloadShareSummaries": null + } + }, + "WorkloadShareSummary": { + "base": "

A workload share summary return object.

", + "refs": { + "WorkloadShareSummaries$member": null + } + }, + "WorkloadSummaries": { + "base": "

A list of workload summaries.

", + "refs": { + "ListWorkloadsOutput$WorkloadSummaries": null + } + }, + "WorkloadSummary": { + "base": "

A workload summary return object.

", + "refs": { + "MilestoneSummary$WorkloadSummary": null, + "WorkloadSummaries$member": null + } + } + } +} diff --git a/models/apis/wellarchitected/2020-03-31/examples-1.json b/models/apis/wellarchitected/2020-03-31/examples-1.json new file mode 100644 index 0000000000..0ea7e3b0bb --- /dev/null +++ b/models/apis/wellarchitected/2020-03-31/examples-1.json @@ -0,0 +1,5 @@ +{ + "version": "1.0", + "examples": { + } +} diff --git a/models/apis/wellarchitected/2020-03-31/paginators-1.json b/models/apis/wellarchitected/2020-03-31/paginators-1.json new file mode 100644 index 0000000000..279d4ee705 --- /dev/null +++ b/models/apis/wellarchitected/2020-03-31/paginators-1.json @@ -0,0 +1,49 @@ +{ + "pagination": { + "ListAnswers": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "MaxResults" + }, + "ListLensReviewImprovements": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "MaxResults" + }, + "ListLensReviews": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "MaxResults" + }, + "ListLenses": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "MaxResults" + }, + "ListMilestones": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "MaxResults" + }, + "ListNotifications": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "MaxResults" + }, + "ListShareInvitations": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "MaxResults" + }, + "ListWorkloadShares": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "MaxResults" + }, + "ListWorkloads": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "MaxResults" + } + } +} diff --git a/models/endpoints/endpoints.json b/models/endpoints/endpoints.json index 336d02015d..1771c86b7d 100644 --- a/models/endpoints/endpoints.json +++ b/models/endpoints/endpoints.json @@ -3360,6 +3360,22 @@ "us-west-2" : { } } }, + "iotwireless" : { + "endpoints" : { + "eu-west-1" : { + "credentialScope" : { + "region" : "eu-west-1" + }, + "hostname" : "api.iotwireless.eu-west-1.amazonaws.com" + }, + "us-east-1" : { + "credentialScope" : { + "region" : "us-east-1" + }, + "hostname" : "api.iotwireless.us-east-1.amazonaws.com" + } + } + }, "kafka" : { "endpoints" : { "ap-east-1" : { }, diff --git a/service/locationservice/api.go b/service/locationservice/api.go new file mode 100644 index 0000000000..9e4f89a26f --- /dev/null +++ b/service/locationservice/api.go @@ -0,0 +1,9317 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +package locationservice + +import ( + "fmt" + "time" + + "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 opAssociateTrackerConsumer = "AssociateTrackerConsumer" + +// AssociateTrackerConsumerRequest generates a "aws/request.Request" representing the +// client's request for the AssociateTrackerConsumer operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See AssociateTrackerConsumer for more information on using the AssociateTrackerConsumer +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the AssociateTrackerConsumerRequest method. +// req, resp := client.AssociateTrackerConsumerRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/location-2020-11-19/AssociateTrackerConsumer +func (c *LocationService) AssociateTrackerConsumerRequest(input *AssociateTrackerConsumerInput) (req *request.Request, output *AssociateTrackerConsumerOutput) { + op := &request.Operation{ + Name: opAssociateTrackerConsumer, + HTTPMethod: "POST", + HTTPPath: "/tracking/v0/trackers/{TrackerName}/consumers", + } + + if input == nil { + input = &AssociateTrackerConsumerInput{} + } + + output = &AssociateTrackerConsumerOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("tracking.", nil)) + req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) + return +} + +// AssociateTrackerConsumer API operation for Amazon Location Service. +// +// Creates an association between a geofence collection and a tracker resource. +// This allows the tracker resource to communicate location data to the linked +// geofence collection. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Location Service's +// API operation AssociateTrackerConsumer for usage and error information. +// +// Returned Error Types: +// * InternalServerException +// The request has failed to process because of an unknown server error, exception, +// or failure. +// +// * ResourceNotFoundException +// The resource that you've entered was not found in your AWS account. +// +// * ConflictException +// The request was unsuccessful due to a conflict. +// +// * AccessDeniedException +// The request was denied due to insufficient access or permission. Check with +// an administrator to verify your permissions. +// +// * ValidationException +// The input failed to meet the constraints specified by the AWS service. +// +// * ThrottlingException +// The request was denied due to request throttling. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/location-2020-11-19/AssociateTrackerConsumer +func (c *LocationService) AssociateTrackerConsumer(input *AssociateTrackerConsumerInput) (*AssociateTrackerConsumerOutput, error) { + req, out := c.AssociateTrackerConsumerRequest(input) + return out, req.Send() +} + +// AssociateTrackerConsumerWithContext is the same as AssociateTrackerConsumer with the addition of +// the ability to pass a context and additional request options. +// +// See AssociateTrackerConsumer for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *LocationService) AssociateTrackerConsumerWithContext(ctx aws.Context, input *AssociateTrackerConsumerInput, opts ...request.Option) (*AssociateTrackerConsumerOutput, error) { + req, out := c.AssociateTrackerConsumerRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opBatchDeleteGeofence = "BatchDeleteGeofence" + +// BatchDeleteGeofenceRequest generates a "aws/request.Request" representing the +// client's request for the BatchDeleteGeofence operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See BatchDeleteGeofence for more information on using the BatchDeleteGeofence +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the BatchDeleteGeofenceRequest method. +// req, resp := client.BatchDeleteGeofenceRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/location-2020-11-19/BatchDeleteGeofence +func (c *LocationService) BatchDeleteGeofenceRequest(input *BatchDeleteGeofenceInput) (req *request.Request, output *BatchDeleteGeofenceOutput) { + op := &request.Operation{ + Name: opBatchDeleteGeofence, + HTTPMethod: "POST", + HTTPPath: "/geofencing/v0/collections/{CollectionName}/delete-geofences", + } + + if input == nil { + input = &BatchDeleteGeofenceInput{} + } + + output = &BatchDeleteGeofenceOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("geofencing.", nil)) + req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) + return +} + +// BatchDeleteGeofence API operation for Amazon Location Service. +// +// Deletes a batch of geofences from a geofence collection. +// +// This action deletes the resource permanently. You can't undo this action. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Location Service's +// API operation BatchDeleteGeofence for usage and error information. +// +// Returned Error Types: +// * InternalServerException +// The request has failed to process because of an unknown server error, exception, +// or failure. +// +// * ResourceNotFoundException +// The resource that you've entered was not found in your AWS account. +// +// * AccessDeniedException +// The request was denied due to insufficient access or permission. Check with +// an administrator to verify your permissions. +// +// * ValidationException +// The input failed to meet the constraints specified by the AWS service. +// +// * ThrottlingException +// The request was denied due to request throttling. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/location-2020-11-19/BatchDeleteGeofence +func (c *LocationService) BatchDeleteGeofence(input *BatchDeleteGeofenceInput) (*BatchDeleteGeofenceOutput, error) { + req, out := c.BatchDeleteGeofenceRequest(input) + return out, req.Send() +} + +// BatchDeleteGeofenceWithContext is the same as BatchDeleteGeofence with the addition of +// the ability to pass a context and additional request options. +// +// See BatchDeleteGeofence for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *LocationService) BatchDeleteGeofenceWithContext(ctx aws.Context, input *BatchDeleteGeofenceInput, opts ...request.Option) (*BatchDeleteGeofenceOutput, error) { + req, out := c.BatchDeleteGeofenceRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opBatchEvaluateGeofences = "BatchEvaluateGeofences" + +// BatchEvaluateGeofencesRequest generates a "aws/request.Request" representing the +// client's request for the BatchEvaluateGeofences operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See BatchEvaluateGeofences for more information on using the BatchEvaluateGeofences +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the BatchEvaluateGeofencesRequest method. +// req, resp := client.BatchEvaluateGeofencesRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/location-2020-11-19/BatchEvaluateGeofences +func (c *LocationService) BatchEvaluateGeofencesRequest(input *BatchEvaluateGeofencesInput) (req *request.Request, output *BatchEvaluateGeofencesOutput) { + op := &request.Operation{ + Name: opBatchEvaluateGeofences, + HTTPMethod: "POST", + HTTPPath: "/geofencing/v0/collections/{CollectionName}/positions", + } + + if input == nil { + input = &BatchEvaluateGeofencesInput{} + } + + output = &BatchEvaluateGeofencesOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("geofencing.", nil)) + req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) + return +} + +// BatchEvaluateGeofences API operation for Amazon Location Service. +// +// Used in geofence monitoring. Evaluates device positions against the position +// of geofences in a given geofence collection. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Location Service's +// API operation BatchEvaluateGeofences for usage and error information. +// +// Returned Error Types: +// * InternalServerException +// The request has failed to process because of an unknown server error, exception, +// or failure. +// +// * ResourceNotFoundException +// The resource that you've entered was not found in your AWS account. +// +// * AccessDeniedException +// The request was denied due to insufficient access or permission. Check with +// an administrator to verify your permissions. +// +// * ValidationException +// The input failed to meet the constraints specified by the AWS service. +// +// * ThrottlingException +// The request was denied due to request throttling. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/location-2020-11-19/BatchEvaluateGeofences +func (c *LocationService) BatchEvaluateGeofences(input *BatchEvaluateGeofencesInput) (*BatchEvaluateGeofencesOutput, error) { + req, out := c.BatchEvaluateGeofencesRequest(input) + return out, req.Send() +} + +// BatchEvaluateGeofencesWithContext is the same as BatchEvaluateGeofences with the addition of +// the ability to pass a context and additional request options. +// +// See BatchEvaluateGeofences for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *LocationService) BatchEvaluateGeofencesWithContext(ctx aws.Context, input *BatchEvaluateGeofencesInput, opts ...request.Option) (*BatchEvaluateGeofencesOutput, error) { + req, out := c.BatchEvaluateGeofencesRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opBatchGetDevicePosition = "BatchGetDevicePosition" + +// BatchGetDevicePositionRequest generates a "aws/request.Request" representing the +// client's request for the BatchGetDevicePosition operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See BatchGetDevicePosition for more information on using the BatchGetDevicePosition +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the BatchGetDevicePositionRequest method. +// req, resp := client.BatchGetDevicePositionRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/location-2020-11-19/BatchGetDevicePosition +func (c *LocationService) BatchGetDevicePositionRequest(input *BatchGetDevicePositionInput) (req *request.Request, output *BatchGetDevicePositionOutput) { + op := &request.Operation{ + Name: opBatchGetDevicePosition, + HTTPMethod: "POST", + HTTPPath: "/tracking/v0/trackers/{TrackerName}/get-positions", + } + + if input == nil { + input = &BatchGetDevicePositionInput{} + } + + output = &BatchGetDevicePositionOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("tracking.", nil)) + req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) + return +} + +// BatchGetDevicePosition API operation for Amazon Location Service. +// +// A batch request to retrieve device positions. +// +// The response will return the device positions from the last 24 hours. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Location Service's +// API operation BatchGetDevicePosition for usage and error information. +// +// Returned Error Types: +// * InternalServerException +// The request has failed to process because of an unknown server error, exception, +// or failure. +// +// * ResourceNotFoundException +// The resource that you've entered was not found in your AWS account. +// +// * AccessDeniedException +// The request was denied due to insufficient access or permission. Check with +// an administrator to verify your permissions. +// +// * ValidationException +// The input failed to meet the constraints specified by the AWS service. +// +// * ThrottlingException +// The request was denied due to request throttling. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/location-2020-11-19/BatchGetDevicePosition +func (c *LocationService) BatchGetDevicePosition(input *BatchGetDevicePositionInput) (*BatchGetDevicePositionOutput, error) { + req, out := c.BatchGetDevicePositionRequest(input) + return out, req.Send() +} + +// BatchGetDevicePositionWithContext is the same as BatchGetDevicePosition with the addition of +// the ability to pass a context and additional request options. +// +// See BatchGetDevicePosition for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *LocationService) BatchGetDevicePositionWithContext(ctx aws.Context, input *BatchGetDevicePositionInput, opts ...request.Option) (*BatchGetDevicePositionOutput, error) { + req, out := c.BatchGetDevicePositionRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opBatchPutGeofence = "BatchPutGeofence" + +// BatchPutGeofenceRequest generates a "aws/request.Request" representing the +// client's request for the BatchPutGeofence operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See BatchPutGeofence for more information on using the BatchPutGeofence +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the BatchPutGeofenceRequest method. +// req, resp := client.BatchPutGeofenceRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/location-2020-11-19/BatchPutGeofence +func (c *LocationService) BatchPutGeofenceRequest(input *BatchPutGeofenceInput) (req *request.Request, output *BatchPutGeofenceOutput) { + op := &request.Operation{ + Name: opBatchPutGeofence, + HTTPMethod: "POST", + HTTPPath: "/geofencing/v0/collections/{CollectionName}/put-geofences", + } + + if input == nil { + input = &BatchPutGeofenceInput{} + } + + output = &BatchPutGeofenceOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("geofencing.", nil)) + req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) + return +} + +// BatchPutGeofence API operation for Amazon Location Service. +// +// A batch request for storing geofences into a given geofence collection. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Location Service's +// API operation BatchPutGeofence for usage and error information. +// +// Returned Error Types: +// * InternalServerException +// The request has failed to process because of an unknown server error, exception, +// or failure. +// +// * ResourceNotFoundException +// The resource that you've entered was not found in your AWS account. +// +// * AccessDeniedException +// The request was denied due to insufficient access or permission. Check with +// an administrator to verify your permissions. +// +// * ValidationException +// The input failed to meet the constraints specified by the AWS service. +// +// * ThrottlingException +// The request was denied due to request throttling. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/location-2020-11-19/BatchPutGeofence +func (c *LocationService) BatchPutGeofence(input *BatchPutGeofenceInput) (*BatchPutGeofenceOutput, error) { + req, out := c.BatchPutGeofenceRequest(input) + return out, req.Send() +} + +// BatchPutGeofenceWithContext is the same as BatchPutGeofence with the addition of +// the ability to pass a context and additional request options. +// +// See BatchPutGeofence for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *LocationService) BatchPutGeofenceWithContext(ctx aws.Context, input *BatchPutGeofenceInput, opts ...request.Option) (*BatchPutGeofenceOutput, error) { + req, out := c.BatchPutGeofenceRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opBatchUpdateDevicePosition = "BatchUpdateDevicePosition" + +// BatchUpdateDevicePositionRequest generates a "aws/request.Request" representing the +// client's request for the BatchUpdateDevicePosition operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See BatchUpdateDevicePosition for more information on using the BatchUpdateDevicePosition +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the BatchUpdateDevicePositionRequest method. +// req, resp := client.BatchUpdateDevicePositionRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/location-2020-11-19/BatchUpdateDevicePosition +func (c *LocationService) BatchUpdateDevicePositionRequest(input *BatchUpdateDevicePositionInput) (req *request.Request, output *BatchUpdateDevicePositionOutput) { + op := &request.Operation{ + Name: opBatchUpdateDevicePosition, + HTTPMethod: "POST", + HTTPPath: "/tracking/v0/trackers/{TrackerName}/positions", + } + + if input == nil { + input = &BatchUpdateDevicePositionInput{} + } + + output = &BatchUpdateDevicePositionOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("tracking.", nil)) + req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) + return +} + +// BatchUpdateDevicePosition API operation for Amazon Location Service. +// +// Uploads a position update for one or more devices to a tracker resource. +// The data is used for API queries requesting the device position and position +// history. +// +// Limitation — Location data is sampled at a fixed rate of 1 position per +// 30 second interval, and retained for 1 year before it is deleted. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Location Service's +// API operation BatchUpdateDevicePosition for usage and error information. +// +// Returned Error Types: +// * InternalServerException +// The request has failed to process because of an unknown server error, exception, +// or failure. +// +// * ResourceNotFoundException +// The resource that you've entered was not found in your AWS account. +// +// * AccessDeniedException +// The request was denied due to insufficient access or permission. Check with +// an administrator to verify your permissions. +// +// * ValidationException +// The input failed to meet the constraints specified by the AWS service. +// +// * ThrottlingException +// The request was denied due to request throttling. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/location-2020-11-19/BatchUpdateDevicePosition +func (c *LocationService) BatchUpdateDevicePosition(input *BatchUpdateDevicePositionInput) (*BatchUpdateDevicePositionOutput, error) { + req, out := c.BatchUpdateDevicePositionRequest(input) + return out, req.Send() +} + +// BatchUpdateDevicePositionWithContext is the same as BatchUpdateDevicePosition with the addition of +// the ability to pass a context and additional request options. +// +// See BatchUpdateDevicePosition for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *LocationService) BatchUpdateDevicePositionWithContext(ctx aws.Context, input *BatchUpdateDevicePositionInput, opts ...request.Option) (*BatchUpdateDevicePositionOutput, error) { + req, out := c.BatchUpdateDevicePositionRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opCreateGeofenceCollection = "CreateGeofenceCollection" + +// CreateGeofenceCollectionRequest generates a "aws/request.Request" representing the +// client's request for the CreateGeofenceCollection operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See CreateGeofenceCollection for more information on using the CreateGeofenceCollection +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the CreateGeofenceCollectionRequest method. +// req, resp := client.CreateGeofenceCollectionRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/location-2020-11-19/CreateGeofenceCollection +func (c *LocationService) CreateGeofenceCollectionRequest(input *CreateGeofenceCollectionInput) (req *request.Request, output *CreateGeofenceCollectionOutput) { + op := &request.Operation{ + Name: opCreateGeofenceCollection, + HTTPMethod: "POST", + HTTPPath: "/geofencing/v0/collections", + } + + if input == nil { + input = &CreateGeofenceCollectionInput{} + } + + output = &CreateGeofenceCollectionOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("geofencing.", nil)) + req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) + return +} + +// CreateGeofenceCollection API operation for Amazon Location Service. +// +// Creates a geofence collection, which manages and stores geofences. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Location Service's +// API operation CreateGeofenceCollection for usage and error information. +// +// Returned Error Types: +// * InternalServerException +// The request has failed to process because of an unknown server error, exception, +// or failure. +// +// * ConflictException +// The request was unsuccessful due to a conflict. +// +// * AccessDeniedException +// The request was denied due to insufficient access or permission. Check with +// an administrator to verify your permissions. +// +// * ValidationException +// The input failed to meet the constraints specified by the AWS service. +// +// * ThrottlingException +// The request was denied due to request throttling. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/location-2020-11-19/CreateGeofenceCollection +func (c *LocationService) CreateGeofenceCollection(input *CreateGeofenceCollectionInput) (*CreateGeofenceCollectionOutput, error) { + req, out := c.CreateGeofenceCollectionRequest(input) + return out, req.Send() +} + +// CreateGeofenceCollectionWithContext is the same as CreateGeofenceCollection with the addition of +// the ability to pass a context and additional request options. +// +// See CreateGeofenceCollection for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *LocationService) CreateGeofenceCollectionWithContext(ctx aws.Context, input *CreateGeofenceCollectionInput, opts ...request.Option) (*CreateGeofenceCollectionOutput, error) { + req, out := c.CreateGeofenceCollectionRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opCreateMap = "CreateMap" + +// CreateMapRequest generates a "aws/request.Request" representing the +// client's request for the CreateMap operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See CreateMap for more information on using the CreateMap +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the CreateMapRequest method. +// req, resp := client.CreateMapRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/location-2020-11-19/CreateMap +func (c *LocationService) CreateMapRequest(input *CreateMapInput) (req *request.Request, output *CreateMapOutput) { + op := &request.Operation{ + Name: opCreateMap, + HTTPMethod: "POST", + HTTPPath: "/maps/v0/maps", + } + + if input == nil { + input = &CreateMapInput{} + } + + output = &CreateMapOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("maps.", nil)) + req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) + return +} + +// CreateMap API operation for Amazon Location Service. +// +// Creates a map resource in your AWS account, which provides map tiles of different +// styles sourced from global location data providers. +// +// By using Maps, you agree that AWS may transmit your API queries to your selected +// third party provider for processing, which may be outside the AWS region +// you are currently using. For more information, see the AWS Service Terms +// (https://aws.amazon.com/service-terms/) for Amazon Location Service. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Location Service's +// API operation CreateMap for usage and error information. +// +// Returned Error Types: +// * InternalServerException +// The request has failed to process because of an unknown server error, exception, +// or failure. +// +// * ConflictException +// The request was unsuccessful due to a conflict. +// +// * AccessDeniedException +// The request was denied due to insufficient access or permission. Check with +// an administrator to verify your permissions. +// +// * ValidationException +// The input failed to meet the constraints specified by the AWS service. +// +// * ThrottlingException +// The request was denied due to request throttling. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/location-2020-11-19/CreateMap +func (c *LocationService) CreateMap(input *CreateMapInput) (*CreateMapOutput, error) { + req, out := c.CreateMapRequest(input) + return out, req.Send() +} + +// CreateMapWithContext is the same as CreateMap with the addition of +// the ability to pass a context and additional request options. +// +// See CreateMap for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *LocationService) CreateMapWithContext(ctx aws.Context, input *CreateMapInput, opts ...request.Option) (*CreateMapOutput, error) { + req, out := c.CreateMapRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opCreatePlaceIndex = "CreatePlaceIndex" + +// CreatePlaceIndexRequest generates a "aws/request.Request" representing the +// client's request for the CreatePlaceIndex operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See CreatePlaceIndex for more information on using the CreatePlaceIndex +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the CreatePlaceIndexRequest method. +// req, resp := client.CreatePlaceIndexRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/location-2020-11-19/CreatePlaceIndex +func (c *LocationService) CreatePlaceIndexRequest(input *CreatePlaceIndexInput) (req *request.Request, output *CreatePlaceIndexOutput) { + op := &request.Operation{ + Name: opCreatePlaceIndex, + HTTPMethod: "POST", + HTTPPath: "/places/v0/indexes", + } + + if input == nil { + input = &CreatePlaceIndexInput{} + } + + output = &CreatePlaceIndexOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("places.", nil)) + req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) + return +} + +// CreatePlaceIndex API operation for Amazon Location Service. +// +// Creates a Place index resource in your AWS account, which supports Places +// functions with geospatial data sourced from your chosen data provider. +// +// By using Places, you agree that AWS may transmit your API queries to your +// selected third party provider for processing, which may be outside the AWS +// region you are currently using. +// +// Because of licensing limitations, you may not use HERE to store results for +// locations in Japan. For more information, see the AWS Service Terms (https://aws.amazon.com/service-terms/) +// for Amazon Location Service. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Location Service's +// API operation CreatePlaceIndex for usage and error information. +// +// Returned Error Types: +// * InternalServerException +// The request has failed to process because of an unknown server error, exception, +// or failure. +// +// * ConflictException +// The request was unsuccessful due to a conflict. +// +// * AccessDeniedException +// The request was denied due to insufficient access or permission. Check with +// an administrator to verify your permissions. +// +// * ValidationException +// The input failed to meet the constraints specified by the AWS service. +// +// * ThrottlingException +// The request was denied due to request throttling. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/location-2020-11-19/CreatePlaceIndex +func (c *LocationService) CreatePlaceIndex(input *CreatePlaceIndexInput) (*CreatePlaceIndexOutput, error) { + req, out := c.CreatePlaceIndexRequest(input) + return out, req.Send() +} + +// CreatePlaceIndexWithContext is the same as CreatePlaceIndex with the addition of +// the ability to pass a context and additional request options. +// +// See CreatePlaceIndex for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *LocationService) CreatePlaceIndexWithContext(ctx aws.Context, input *CreatePlaceIndexInput, opts ...request.Option) (*CreatePlaceIndexOutput, error) { + req, out := c.CreatePlaceIndexRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opCreateTracker = "CreateTracker" + +// CreateTrackerRequest generates a "aws/request.Request" representing the +// client's request for the CreateTracker operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See CreateTracker for more information on using the CreateTracker +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the CreateTrackerRequest method. +// req, resp := client.CreateTrackerRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/location-2020-11-19/CreateTracker +func (c *LocationService) CreateTrackerRequest(input *CreateTrackerInput) (req *request.Request, output *CreateTrackerOutput) { + op := &request.Operation{ + Name: opCreateTracker, + HTTPMethod: "POST", + HTTPPath: "/tracking/v0/trackers", + } + + if input == nil { + input = &CreateTrackerInput{} + } + + output = &CreateTrackerOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("tracking.", nil)) + req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) + return +} + +// CreateTracker API operation for Amazon Location Service. +// +// Creates a tracker resource in your AWS account, which lets you retrieve current +// and historical location of devices. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Location Service's +// API operation CreateTracker for usage and error information. +// +// Returned Error Types: +// * InternalServerException +// The request has failed to process because of an unknown server error, exception, +// or failure. +// +// * ConflictException +// The request was unsuccessful due to a conflict. +// +// * AccessDeniedException +// The request was denied due to insufficient access or permission. Check with +// an administrator to verify your permissions. +// +// * ValidationException +// The input failed to meet the constraints specified by the AWS service. +// +// * ThrottlingException +// The request was denied due to request throttling. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/location-2020-11-19/CreateTracker +func (c *LocationService) CreateTracker(input *CreateTrackerInput) (*CreateTrackerOutput, error) { + req, out := c.CreateTrackerRequest(input) + return out, req.Send() +} + +// CreateTrackerWithContext is the same as CreateTracker with the addition of +// the ability to pass a context and additional request options. +// +// See CreateTracker for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *LocationService) CreateTrackerWithContext(ctx aws.Context, input *CreateTrackerInput, opts ...request.Option) (*CreateTrackerOutput, error) { + req, out := c.CreateTrackerRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDeleteGeofenceCollection = "DeleteGeofenceCollection" + +// DeleteGeofenceCollectionRequest generates a "aws/request.Request" representing the +// client's request for the DeleteGeofenceCollection operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DeleteGeofenceCollection for more information on using the DeleteGeofenceCollection +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DeleteGeofenceCollectionRequest method. +// req, resp := client.DeleteGeofenceCollectionRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/location-2020-11-19/DeleteGeofenceCollection +func (c *LocationService) DeleteGeofenceCollectionRequest(input *DeleteGeofenceCollectionInput) (req *request.Request, output *DeleteGeofenceCollectionOutput) { + op := &request.Operation{ + Name: opDeleteGeofenceCollection, + HTTPMethod: "DELETE", + HTTPPath: "/geofencing/v0/collections/{CollectionName}", + } + + if input == nil { + input = &DeleteGeofenceCollectionInput{} + } + + output = &DeleteGeofenceCollectionOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("geofencing.", nil)) + req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) + return +} + +// DeleteGeofenceCollection API operation for Amazon Location Service. +// +// Deletes a geofence collection from your AWS account. +// +// This action deletes the resource permanently. You can't undo this action. +// If the geofence collection is the target of a tracker resource, the devices +// will no longer be monitored. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Location Service's +// API operation DeleteGeofenceCollection for usage and error information. +// +// Returned Error Types: +// * InternalServerException +// The request has failed to process because of an unknown server error, exception, +// or failure. +// +// * ResourceNotFoundException +// The resource that you've entered was not found in your AWS account. +// +// * AccessDeniedException +// The request was denied due to insufficient access or permission. Check with +// an administrator to verify your permissions. +// +// * ValidationException +// The input failed to meet the constraints specified by the AWS service. +// +// * ThrottlingException +// The request was denied due to request throttling. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/location-2020-11-19/DeleteGeofenceCollection +func (c *LocationService) DeleteGeofenceCollection(input *DeleteGeofenceCollectionInput) (*DeleteGeofenceCollectionOutput, error) { + req, out := c.DeleteGeofenceCollectionRequest(input) + return out, req.Send() +} + +// DeleteGeofenceCollectionWithContext is the same as DeleteGeofenceCollection with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteGeofenceCollection for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *LocationService) DeleteGeofenceCollectionWithContext(ctx aws.Context, input *DeleteGeofenceCollectionInput, opts ...request.Option) (*DeleteGeofenceCollectionOutput, error) { + req, out := c.DeleteGeofenceCollectionRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDeleteMap = "DeleteMap" + +// DeleteMapRequest generates a "aws/request.Request" representing the +// client's request for the DeleteMap operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DeleteMap for more information on using the DeleteMap +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DeleteMapRequest method. +// req, resp := client.DeleteMapRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/location-2020-11-19/DeleteMap +func (c *LocationService) DeleteMapRequest(input *DeleteMapInput) (req *request.Request, output *DeleteMapOutput) { + op := &request.Operation{ + Name: opDeleteMap, + HTTPMethod: "DELETE", + HTTPPath: "/maps/v0/maps/{MapName}", + } + + if input == nil { + input = &DeleteMapInput{} + } + + output = &DeleteMapOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("maps.", nil)) + req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) + return +} + +// DeleteMap API operation for Amazon Location Service. +// +// Deletes a map resource from your AWS account. +// +// This action deletes the resource permanently. You cannot undo this action. +// If the map is being used in an application, the map may not render. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Location Service's +// API operation DeleteMap for usage and error information. +// +// Returned Error Types: +// * InternalServerException +// The request has failed to process because of an unknown server error, exception, +// or failure. +// +// * ResourceNotFoundException +// The resource that you've entered was not found in your AWS account. +// +// * AccessDeniedException +// The request was denied due to insufficient access or permission. Check with +// an administrator to verify your permissions. +// +// * ValidationException +// The input failed to meet the constraints specified by the AWS service. +// +// * ThrottlingException +// The request was denied due to request throttling. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/location-2020-11-19/DeleteMap +func (c *LocationService) DeleteMap(input *DeleteMapInput) (*DeleteMapOutput, error) { + req, out := c.DeleteMapRequest(input) + return out, req.Send() +} + +// DeleteMapWithContext is the same as DeleteMap with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteMap for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *LocationService) DeleteMapWithContext(ctx aws.Context, input *DeleteMapInput, opts ...request.Option) (*DeleteMapOutput, error) { + req, out := c.DeleteMapRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDeletePlaceIndex = "DeletePlaceIndex" + +// DeletePlaceIndexRequest generates a "aws/request.Request" representing the +// client's request for the DeletePlaceIndex operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DeletePlaceIndex for more information on using the DeletePlaceIndex +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DeletePlaceIndexRequest method. +// req, resp := client.DeletePlaceIndexRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/location-2020-11-19/DeletePlaceIndex +func (c *LocationService) DeletePlaceIndexRequest(input *DeletePlaceIndexInput) (req *request.Request, output *DeletePlaceIndexOutput) { + op := &request.Operation{ + Name: opDeletePlaceIndex, + HTTPMethod: "DELETE", + HTTPPath: "/places/v0/indexes/{IndexName}", + } + + if input == nil { + input = &DeletePlaceIndexInput{} + } + + output = &DeletePlaceIndexOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("places.", nil)) + req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) + return +} + +// DeletePlaceIndex API operation for Amazon Location Service. +// +// Deletes a Place index resource from your AWS account. +// +// This action deletes the resource permanently. You cannot undo this action. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Location Service's +// API operation DeletePlaceIndex for usage and error information. +// +// Returned Error Types: +// * InternalServerException +// The request has failed to process because of an unknown server error, exception, +// or failure. +// +// * ResourceNotFoundException +// The resource that you've entered was not found in your AWS account. +// +// * AccessDeniedException +// The request was denied due to insufficient access or permission. Check with +// an administrator to verify your permissions. +// +// * ValidationException +// The input failed to meet the constraints specified by the AWS service. +// +// * ThrottlingException +// The request was denied due to request throttling. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/location-2020-11-19/DeletePlaceIndex +func (c *LocationService) DeletePlaceIndex(input *DeletePlaceIndexInput) (*DeletePlaceIndexOutput, error) { + req, out := c.DeletePlaceIndexRequest(input) + return out, req.Send() +} + +// DeletePlaceIndexWithContext is the same as DeletePlaceIndex with the addition of +// the ability to pass a context and additional request options. +// +// See DeletePlaceIndex for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *LocationService) DeletePlaceIndexWithContext(ctx aws.Context, input *DeletePlaceIndexInput, opts ...request.Option) (*DeletePlaceIndexOutput, error) { + req, out := c.DeletePlaceIndexRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDeleteTracker = "DeleteTracker" + +// DeleteTrackerRequest generates a "aws/request.Request" representing the +// client's request for the DeleteTracker operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DeleteTracker for more information on using the DeleteTracker +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DeleteTrackerRequest method. +// req, resp := client.DeleteTrackerRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/location-2020-11-19/DeleteTracker +func (c *LocationService) DeleteTrackerRequest(input *DeleteTrackerInput) (req *request.Request, output *DeleteTrackerOutput) { + op := &request.Operation{ + Name: opDeleteTracker, + HTTPMethod: "DELETE", + HTTPPath: "/tracking/v0/trackers/{TrackerName}", + } + + if input == nil { + input = &DeleteTrackerInput{} + } + + output = &DeleteTrackerOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("tracking.", nil)) + req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) + return +} + +// DeleteTracker API operation for Amazon Location Service. +// +// Deletes a tracker resource from your AWS account. +// +// This action deletes the resource permanently. You can't undo this action. +// If the tracker resource is in use, you may encounter an error. Make sure +// that the target resource is not a dependency for your applications. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Location Service's +// API operation DeleteTracker for usage and error information. +// +// Returned Error Types: +// * InternalServerException +// The request has failed to process because of an unknown server error, exception, +// or failure. +// +// * ResourceNotFoundException +// The resource that you've entered was not found in your AWS account. +// +// * AccessDeniedException +// The request was denied due to insufficient access or permission. Check with +// an administrator to verify your permissions. +// +// * ValidationException +// The input failed to meet the constraints specified by the AWS service. +// +// * ThrottlingException +// The request was denied due to request throttling. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/location-2020-11-19/DeleteTracker +func (c *LocationService) DeleteTracker(input *DeleteTrackerInput) (*DeleteTrackerOutput, error) { + req, out := c.DeleteTrackerRequest(input) + return out, req.Send() +} + +// DeleteTrackerWithContext is the same as DeleteTracker with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteTracker for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *LocationService) DeleteTrackerWithContext(ctx aws.Context, input *DeleteTrackerInput, opts ...request.Option) (*DeleteTrackerOutput, error) { + req, out := c.DeleteTrackerRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDescribeGeofenceCollection = "DescribeGeofenceCollection" + +// DescribeGeofenceCollectionRequest generates a "aws/request.Request" representing the +// client's request for the DescribeGeofenceCollection operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DescribeGeofenceCollection for more information on using the DescribeGeofenceCollection +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DescribeGeofenceCollectionRequest method. +// req, resp := client.DescribeGeofenceCollectionRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/location-2020-11-19/DescribeGeofenceCollection +func (c *LocationService) DescribeGeofenceCollectionRequest(input *DescribeGeofenceCollectionInput) (req *request.Request, output *DescribeGeofenceCollectionOutput) { + op := &request.Operation{ + Name: opDescribeGeofenceCollection, + HTTPMethod: "GET", + HTTPPath: "/geofencing/v0/collections/{CollectionName}", + } + + if input == nil { + input = &DescribeGeofenceCollectionInput{} + } + + output = &DescribeGeofenceCollectionOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("geofencing.", nil)) + req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) + return +} + +// DescribeGeofenceCollection API operation for Amazon Location Service. +// +// Retrieves the geofence collection details. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Location Service's +// API operation DescribeGeofenceCollection for usage and error information. +// +// Returned Error Types: +// * InternalServerException +// The request has failed to process because of an unknown server error, exception, +// or failure. +// +// * ResourceNotFoundException +// The resource that you've entered was not found in your AWS account. +// +// * AccessDeniedException +// The request was denied due to insufficient access or permission. Check with +// an administrator to verify your permissions. +// +// * ValidationException +// The input failed to meet the constraints specified by the AWS service. +// +// * ThrottlingException +// The request was denied due to request throttling. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/location-2020-11-19/DescribeGeofenceCollection +func (c *LocationService) DescribeGeofenceCollection(input *DescribeGeofenceCollectionInput) (*DescribeGeofenceCollectionOutput, error) { + req, out := c.DescribeGeofenceCollectionRequest(input) + return out, req.Send() +} + +// DescribeGeofenceCollectionWithContext is the same as DescribeGeofenceCollection with the addition of +// the ability to pass a context and additional request options. +// +// See DescribeGeofenceCollection for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *LocationService) DescribeGeofenceCollectionWithContext(ctx aws.Context, input *DescribeGeofenceCollectionInput, opts ...request.Option) (*DescribeGeofenceCollectionOutput, error) { + req, out := c.DescribeGeofenceCollectionRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDescribeMap = "DescribeMap" + +// DescribeMapRequest generates a "aws/request.Request" representing the +// client's request for the DescribeMap operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DescribeMap for more information on using the DescribeMap +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DescribeMapRequest method. +// req, resp := client.DescribeMapRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/location-2020-11-19/DescribeMap +func (c *LocationService) DescribeMapRequest(input *DescribeMapInput) (req *request.Request, output *DescribeMapOutput) { + op := &request.Operation{ + Name: opDescribeMap, + HTTPMethod: "GET", + HTTPPath: "/maps/v0/maps/{MapName}", + } + + if input == nil { + input = &DescribeMapInput{} + } + + output = &DescribeMapOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("maps.", nil)) + req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) + return +} + +// DescribeMap API operation for Amazon Location Service. +// +// Retrieves the map resource details. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Location Service's +// API operation DescribeMap for usage and error information. +// +// Returned Error Types: +// * InternalServerException +// The request has failed to process because of an unknown server error, exception, +// or failure. +// +// * ResourceNotFoundException +// The resource that you've entered was not found in your AWS account. +// +// * AccessDeniedException +// The request was denied due to insufficient access or permission. Check with +// an administrator to verify your permissions. +// +// * ValidationException +// The input failed to meet the constraints specified by the AWS service. +// +// * ThrottlingException +// The request was denied due to request throttling. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/location-2020-11-19/DescribeMap +func (c *LocationService) DescribeMap(input *DescribeMapInput) (*DescribeMapOutput, error) { + req, out := c.DescribeMapRequest(input) + return out, req.Send() +} + +// DescribeMapWithContext is the same as DescribeMap with the addition of +// the ability to pass a context and additional request options. +// +// See DescribeMap for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *LocationService) DescribeMapWithContext(ctx aws.Context, input *DescribeMapInput, opts ...request.Option) (*DescribeMapOutput, error) { + req, out := c.DescribeMapRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDescribePlaceIndex = "DescribePlaceIndex" + +// DescribePlaceIndexRequest generates a "aws/request.Request" representing the +// client's request for the DescribePlaceIndex operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DescribePlaceIndex for more information on using the DescribePlaceIndex +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DescribePlaceIndexRequest method. +// req, resp := client.DescribePlaceIndexRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/location-2020-11-19/DescribePlaceIndex +func (c *LocationService) DescribePlaceIndexRequest(input *DescribePlaceIndexInput) (req *request.Request, output *DescribePlaceIndexOutput) { + op := &request.Operation{ + Name: opDescribePlaceIndex, + HTTPMethod: "GET", + HTTPPath: "/places/v0/indexes/{IndexName}", + } + + if input == nil { + input = &DescribePlaceIndexInput{} + } + + output = &DescribePlaceIndexOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("places.", nil)) + req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) + return +} + +// DescribePlaceIndex API operation for Amazon Location Service. +// +// Retrieves the Place index resource details. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Location Service's +// API operation DescribePlaceIndex for usage and error information. +// +// Returned Error Types: +// * InternalServerException +// The request has failed to process because of an unknown server error, exception, +// or failure. +// +// * ResourceNotFoundException +// The resource that you've entered was not found in your AWS account. +// +// * AccessDeniedException +// The request was denied due to insufficient access or permission. Check with +// an administrator to verify your permissions. +// +// * ValidationException +// The input failed to meet the constraints specified by the AWS service. +// +// * ThrottlingException +// The request was denied due to request throttling. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/location-2020-11-19/DescribePlaceIndex +func (c *LocationService) DescribePlaceIndex(input *DescribePlaceIndexInput) (*DescribePlaceIndexOutput, error) { + req, out := c.DescribePlaceIndexRequest(input) + return out, req.Send() +} + +// DescribePlaceIndexWithContext is the same as DescribePlaceIndex with the addition of +// the ability to pass a context and additional request options. +// +// See DescribePlaceIndex for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *LocationService) DescribePlaceIndexWithContext(ctx aws.Context, input *DescribePlaceIndexInput, opts ...request.Option) (*DescribePlaceIndexOutput, error) { + req, out := c.DescribePlaceIndexRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDescribeTracker = "DescribeTracker" + +// DescribeTrackerRequest generates a "aws/request.Request" representing the +// client's request for the DescribeTracker operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DescribeTracker for more information on using the DescribeTracker +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DescribeTrackerRequest method. +// req, resp := client.DescribeTrackerRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/location-2020-11-19/DescribeTracker +func (c *LocationService) DescribeTrackerRequest(input *DescribeTrackerInput) (req *request.Request, output *DescribeTrackerOutput) { + op := &request.Operation{ + Name: opDescribeTracker, + HTTPMethod: "GET", + HTTPPath: "/tracking/v0/trackers/{TrackerName}", + } + + if input == nil { + input = &DescribeTrackerInput{} + } + + output = &DescribeTrackerOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("tracking.", nil)) + req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) + return +} + +// DescribeTracker API operation for Amazon Location Service. +// +// Retrieves the tracker resource details. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Location Service's +// API operation DescribeTracker for usage and error information. +// +// Returned Error Types: +// * InternalServerException +// The request has failed to process because of an unknown server error, exception, +// or failure. +// +// * ResourceNotFoundException +// The resource that you've entered was not found in your AWS account. +// +// * AccessDeniedException +// The request was denied due to insufficient access or permission. Check with +// an administrator to verify your permissions. +// +// * ValidationException +// The input failed to meet the constraints specified by the AWS service. +// +// * ThrottlingException +// The request was denied due to request throttling. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/location-2020-11-19/DescribeTracker +func (c *LocationService) DescribeTracker(input *DescribeTrackerInput) (*DescribeTrackerOutput, error) { + req, out := c.DescribeTrackerRequest(input) + return out, req.Send() +} + +// DescribeTrackerWithContext is the same as DescribeTracker with the addition of +// the ability to pass a context and additional request options. +// +// See DescribeTracker for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *LocationService) DescribeTrackerWithContext(ctx aws.Context, input *DescribeTrackerInput, opts ...request.Option) (*DescribeTrackerOutput, error) { + req, out := c.DescribeTrackerRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDisassociateTrackerConsumer = "DisassociateTrackerConsumer" + +// DisassociateTrackerConsumerRequest generates a "aws/request.Request" representing the +// client's request for the DisassociateTrackerConsumer operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DisassociateTrackerConsumer for more information on using the DisassociateTrackerConsumer +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DisassociateTrackerConsumerRequest method. +// req, resp := client.DisassociateTrackerConsumerRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/location-2020-11-19/DisassociateTrackerConsumer +func (c *LocationService) DisassociateTrackerConsumerRequest(input *DisassociateTrackerConsumerInput) (req *request.Request, output *DisassociateTrackerConsumerOutput) { + op := &request.Operation{ + Name: opDisassociateTrackerConsumer, + HTTPMethod: "DELETE", + HTTPPath: "/tracking/v0/trackers/{TrackerName}/consumers/{ConsumerArn}", + } + + if input == nil { + input = &DisassociateTrackerConsumerInput{} + } + + output = &DisassociateTrackerConsumerOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("tracking.", nil)) + req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) + return +} + +// DisassociateTrackerConsumer API operation for Amazon Location Service. +// +// Removes the association bewteen a tracker resource and a geofence collection. +// +// Once you unlink a tracker resource from a geofence collection, the tracker +// positions will no longer be automatically evaluated against geofences. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Location Service's +// API operation DisassociateTrackerConsumer for usage and error information. +// +// Returned Error Types: +// * InternalServerException +// The request has failed to process because of an unknown server error, exception, +// or failure. +// +// * ResourceNotFoundException +// The resource that you've entered was not found in your AWS account. +// +// * AccessDeniedException +// The request was denied due to insufficient access or permission. Check with +// an administrator to verify your permissions. +// +// * ValidationException +// The input failed to meet the constraints specified by the AWS service. +// +// * ThrottlingException +// The request was denied due to request throttling. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/location-2020-11-19/DisassociateTrackerConsumer +func (c *LocationService) DisassociateTrackerConsumer(input *DisassociateTrackerConsumerInput) (*DisassociateTrackerConsumerOutput, error) { + req, out := c.DisassociateTrackerConsumerRequest(input) + return out, req.Send() +} + +// DisassociateTrackerConsumerWithContext is the same as DisassociateTrackerConsumer with the addition of +// the ability to pass a context and additional request options. +// +// See DisassociateTrackerConsumer for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *LocationService) DisassociateTrackerConsumerWithContext(ctx aws.Context, input *DisassociateTrackerConsumerInput, opts ...request.Option) (*DisassociateTrackerConsumerOutput, error) { + req, out := c.DisassociateTrackerConsumerRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opGetDevicePosition = "GetDevicePosition" + +// GetDevicePositionRequest generates a "aws/request.Request" representing the +// client's request for the GetDevicePosition operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See GetDevicePosition for more information on using the GetDevicePosition +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the GetDevicePositionRequest method. +// req, resp := client.GetDevicePositionRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/location-2020-11-19/GetDevicePosition +func (c *LocationService) GetDevicePositionRequest(input *GetDevicePositionInput) (req *request.Request, output *GetDevicePositionOutput) { + op := &request.Operation{ + Name: opGetDevicePosition, + HTTPMethod: "GET", + HTTPPath: "/tracking/v0/trackers/{TrackerName}/devices/{DeviceId}/positions/latest", + } + + if input == nil { + input = &GetDevicePositionInput{} + } + + output = &GetDevicePositionOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("tracking.", nil)) + req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) + return +} + +// GetDevicePosition API operation for Amazon Location Service. +// +// Retrieves the latest device position. +// +// Limitation — Device positions are deleted after one year. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Location Service's +// API operation GetDevicePosition for usage and error information. +// +// Returned Error Types: +// * InternalServerException +// The request has failed to process because of an unknown server error, exception, +// or failure. +// +// * ResourceNotFoundException +// The resource that you've entered was not found in your AWS account. +// +// * AccessDeniedException +// The request was denied due to insufficient access or permission. Check with +// an administrator to verify your permissions. +// +// * ValidationException +// The input failed to meet the constraints specified by the AWS service. +// +// * ThrottlingException +// The request was denied due to request throttling. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/location-2020-11-19/GetDevicePosition +func (c *LocationService) GetDevicePosition(input *GetDevicePositionInput) (*GetDevicePositionOutput, error) { + req, out := c.GetDevicePositionRequest(input) + return out, req.Send() +} + +// GetDevicePositionWithContext is the same as GetDevicePosition with the addition of +// the ability to pass a context and additional request options. +// +// See GetDevicePosition for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *LocationService) GetDevicePositionWithContext(ctx aws.Context, input *GetDevicePositionInput, opts ...request.Option) (*GetDevicePositionOutput, error) { + req, out := c.GetDevicePositionRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opGetDevicePositionHistory = "GetDevicePositionHistory" + +// GetDevicePositionHistoryRequest generates a "aws/request.Request" representing the +// client's request for the GetDevicePositionHistory operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See GetDevicePositionHistory for more information on using the GetDevicePositionHistory +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the GetDevicePositionHistoryRequest method. +// req, resp := client.GetDevicePositionHistoryRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/location-2020-11-19/GetDevicePositionHistory +func (c *LocationService) GetDevicePositionHistoryRequest(input *GetDevicePositionHistoryInput) (req *request.Request, output *GetDevicePositionHistoryOutput) { + op := &request.Operation{ + Name: opGetDevicePositionHistory, + HTTPMethod: "POST", + HTTPPath: "/tracking/v0/trackers/{TrackerName}/devices/{DeviceId}/list-positions", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "", + TruncationToken: "", + }, + } + + if input == nil { + input = &GetDevicePositionHistoryInput{} + } + + output = &GetDevicePositionHistoryOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("tracking.", nil)) + req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) + return +} + +// GetDevicePositionHistory API operation for Amazon Location Service. +// +// Retrieves the device position history from a tracker resource within a specified +// range of time. +// +// Limitation — Device positions are deleted after one year. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Location Service's +// API operation GetDevicePositionHistory for usage and error information. +// +// Returned Error Types: +// * InternalServerException +// The request has failed to process because of an unknown server error, exception, +// or failure. +// +// * ResourceNotFoundException +// The resource that you've entered was not found in your AWS account. +// +// * AccessDeniedException +// The request was denied due to insufficient access or permission. Check with +// an administrator to verify your permissions. +// +// * ValidationException +// The input failed to meet the constraints specified by the AWS service. +// +// * ThrottlingException +// The request was denied due to request throttling. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/location-2020-11-19/GetDevicePositionHistory +func (c *LocationService) GetDevicePositionHistory(input *GetDevicePositionHistoryInput) (*GetDevicePositionHistoryOutput, error) { + req, out := c.GetDevicePositionHistoryRequest(input) + return out, req.Send() +} + +// GetDevicePositionHistoryWithContext is the same as GetDevicePositionHistory with the addition of +// the ability to pass a context and additional request options. +// +// See GetDevicePositionHistory for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *LocationService) GetDevicePositionHistoryWithContext(ctx aws.Context, input *GetDevicePositionHistoryInput, opts ...request.Option) (*GetDevicePositionHistoryOutput, error) { + req, out := c.GetDevicePositionHistoryRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// GetDevicePositionHistoryPages iterates over the pages of a GetDevicePositionHistory operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See GetDevicePositionHistory 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 GetDevicePositionHistory operation. +// pageNum := 0 +// err := client.GetDevicePositionHistoryPages(params, +// func(page *locationservice.GetDevicePositionHistoryOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *LocationService) GetDevicePositionHistoryPages(input *GetDevicePositionHistoryInput, fn func(*GetDevicePositionHistoryOutput, bool) bool) error { + return c.GetDevicePositionHistoryPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// GetDevicePositionHistoryPagesWithContext same as GetDevicePositionHistoryPages 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 *LocationService) GetDevicePositionHistoryPagesWithContext(ctx aws.Context, input *GetDevicePositionHistoryInput, fn func(*GetDevicePositionHistoryOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *GetDevicePositionHistoryInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.GetDevicePositionHistoryRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*GetDevicePositionHistoryOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opGetGeofence = "GetGeofence" + +// GetGeofenceRequest generates a "aws/request.Request" representing the +// client's request for the GetGeofence operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See GetGeofence for more information on using the GetGeofence +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the GetGeofenceRequest method. +// req, resp := client.GetGeofenceRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/location-2020-11-19/GetGeofence +func (c *LocationService) GetGeofenceRequest(input *GetGeofenceInput) (req *request.Request, output *GetGeofenceOutput) { + op := &request.Operation{ + Name: opGetGeofence, + HTTPMethod: "GET", + HTTPPath: "/geofencing/v0/collections/{CollectionName}/geofences/{GeofenceId}", + } + + if input == nil { + input = &GetGeofenceInput{} + } + + output = &GetGeofenceOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("geofencing.", nil)) + req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) + return +} + +// GetGeofence API operation for Amazon Location Service. +// +// Retrieves the geofence details from a geofence collection. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Location Service's +// API operation GetGeofence for usage and error information. +// +// Returned Error Types: +// * InternalServerException +// The request has failed to process because of an unknown server error, exception, +// or failure. +// +// * ResourceNotFoundException +// The resource that you've entered was not found in your AWS account. +// +// * AccessDeniedException +// The request was denied due to insufficient access or permission. Check with +// an administrator to verify your permissions. +// +// * ValidationException +// The input failed to meet the constraints specified by the AWS service. +// +// * ThrottlingException +// The request was denied due to request throttling. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/location-2020-11-19/GetGeofence +func (c *LocationService) GetGeofence(input *GetGeofenceInput) (*GetGeofenceOutput, error) { + req, out := c.GetGeofenceRequest(input) + return out, req.Send() +} + +// GetGeofenceWithContext is the same as GetGeofence with the addition of +// the ability to pass a context and additional request options. +// +// See GetGeofence for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *LocationService) GetGeofenceWithContext(ctx aws.Context, input *GetGeofenceInput, opts ...request.Option) (*GetGeofenceOutput, error) { + req, out := c.GetGeofenceRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opGetMapGlyphs = "GetMapGlyphs" + +// GetMapGlyphsRequest generates a "aws/request.Request" representing the +// client's request for the GetMapGlyphs operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See GetMapGlyphs for more information on using the GetMapGlyphs +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the GetMapGlyphsRequest method. +// req, resp := client.GetMapGlyphsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/location-2020-11-19/GetMapGlyphs +func (c *LocationService) GetMapGlyphsRequest(input *GetMapGlyphsInput) (req *request.Request, output *GetMapGlyphsOutput) { + op := &request.Operation{ + Name: opGetMapGlyphs, + HTTPMethod: "GET", + HTTPPath: "/maps/v0/maps/{MapName}/glyphs/{FontStack}/{FontUnicodeRange}", + } + + if input == nil { + input = &GetMapGlyphsInput{} + } + + output = &GetMapGlyphsOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("maps.", nil)) + req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) + return +} + +// GetMapGlyphs API operation for Amazon Location Service. +// +// Retrieves glyphs used to display labels on a map. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Location Service's +// API operation GetMapGlyphs for usage and error information. +// +// Returned Error Types: +// * InternalServerException +// The request has failed to process because of an unknown server error, exception, +// or failure. +// +// * ResourceNotFoundException +// The resource that you've entered was not found in your AWS account. +// +// * AccessDeniedException +// The request was denied due to insufficient access or permission. Check with +// an administrator to verify your permissions. +// +// * ValidationException +// The input failed to meet the constraints specified by the AWS service. +// +// * ThrottlingException +// The request was denied due to request throttling. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/location-2020-11-19/GetMapGlyphs +func (c *LocationService) GetMapGlyphs(input *GetMapGlyphsInput) (*GetMapGlyphsOutput, error) { + req, out := c.GetMapGlyphsRequest(input) + return out, req.Send() +} + +// GetMapGlyphsWithContext is the same as GetMapGlyphs with the addition of +// the ability to pass a context and additional request options. +// +// See GetMapGlyphs for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *LocationService) GetMapGlyphsWithContext(ctx aws.Context, input *GetMapGlyphsInput, opts ...request.Option) (*GetMapGlyphsOutput, error) { + req, out := c.GetMapGlyphsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opGetMapSprites = "GetMapSprites" + +// GetMapSpritesRequest generates a "aws/request.Request" representing the +// client's request for the GetMapSprites operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See GetMapSprites for more information on using the GetMapSprites +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the GetMapSpritesRequest method. +// req, resp := client.GetMapSpritesRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/location-2020-11-19/GetMapSprites +func (c *LocationService) GetMapSpritesRequest(input *GetMapSpritesInput) (req *request.Request, output *GetMapSpritesOutput) { + op := &request.Operation{ + Name: opGetMapSprites, + HTTPMethod: "GET", + HTTPPath: "/maps/v0/maps/{MapName}/sprites/{FileName}", + } + + if input == nil { + input = &GetMapSpritesInput{} + } + + output = &GetMapSpritesOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("maps.", nil)) + req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) + return +} + +// GetMapSprites API operation for Amazon Location Service. +// +// Retrieves the sprite sheet corresponding to a map resource. The sprite sheet +// is a PNG image paired with a JSON document describing the offsets of individual +// icons that will be displayed on a rendered map. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Location Service's +// API operation GetMapSprites for usage and error information. +// +// Returned Error Types: +// * InternalServerException +// The request has failed to process because of an unknown server error, exception, +// or failure. +// +// * ResourceNotFoundException +// The resource that you've entered was not found in your AWS account. +// +// * AccessDeniedException +// The request was denied due to insufficient access or permission. Check with +// an administrator to verify your permissions. +// +// * ValidationException +// The input failed to meet the constraints specified by the AWS service. +// +// * ThrottlingException +// The request was denied due to request throttling. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/location-2020-11-19/GetMapSprites +func (c *LocationService) GetMapSprites(input *GetMapSpritesInput) (*GetMapSpritesOutput, error) { + req, out := c.GetMapSpritesRequest(input) + return out, req.Send() +} + +// GetMapSpritesWithContext is the same as GetMapSprites with the addition of +// the ability to pass a context and additional request options. +// +// See GetMapSprites for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *LocationService) GetMapSpritesWithContext(ctx aws.Context, input *GetMapSpritesInput, opts ...request.Option) (*GetMapSpritesOutput, error) { + req, out := c.GetMapSpritesRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opGetMapStyleDescriptor = "GetMapStyleDescriptor" + +// GetMapStyleDescriptorRequest generates a "aws/request.Request" representing the +// client's request for the GetMapStyleDescriptor operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See GetMapStyleDescriptor for more information on using the GetMapStyleDescriptor +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the GetMapStyleDescriptorRequest method. +// req, resp := client.GetMapStyleDescriptorRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/location-2020-11-19/GetMapStyleDescriptor +func (c *LocationService) GetMapStyleDescriptorRequest(input *GetMapStyleDescriptorInput) (req *request.Request, output *GetMapStyleDescriptorOutput) { + op := &request.Operation{ + Name: opGetMapStyleDescriptor, + HTTPMethod: "GET", + HTTPPath: "/maps/v0/maps/{MapName}/style-descriptor", + } + + if input == nil { + input = &GetMapStyleDescriptorInput{} + } + + output = &GetMapStyleDescriptorOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("maps.", nil)) + req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) + return +} + +// GetMapStyleDescriptor API operation for Amazon Location Service. +// +// Retrieves the map style descriptor from a map resource. +// +// The style descriptor contains specifications on how features render on a +// map. For example, what data to display, what order to display the data in, +// and the style for the data. Style descriptors follow the Mapbox Style Specification. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Location Service's +// API operation GetMapStyleDescriptor for usage and error information. +// +// Returned Error Types: +// * InternalServerException +// The request has failed to process because of an unknown server error, exception, +// or failure. +// +// * ResourceNotFoundException +// The resource that you've entered was not found in your AWS account. +// +// * AccessDeniedException +// The request was denied due to insufficient access or permission. Check with +// an administrator to verify your permissions. +// +// * ValidationException +// The input failed to meet the constraints specified by the AWS service. +// +// * ThrottlingException +// The request was denied due to request throttling. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/location-2020-11-19/GetMapStyleDescriptor +func (c *LocationService) GetMapStyleDescriptor(input *GetMapStyleDescriptorInput) (*GetMapStyleDescriptorOutput, error) { + req, out := c.GetMapStyleDescriptorRequest(input) + return out, req.Send() +} + +// GetMapStyleDescriptorWithContext is the same as GetMapStyleDescriptor with the addition of +// the ability to pass a context and additional request options. +// +// See GetMapStyleDescriptor for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *LocationService) GetMapStyleDescriptorWithContext(ctx aws.Context, input *GetMapStyleDescriptorInput, opts ...request.Option) (*GetMapStyleDescriptorOutput, error) { + req, out := c.GetMapStyleDescriptorRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opGetMapTile = "GetMapTile" + +// GetMapTileRequest generates a "aws/request.Request" representing the +// client's request for the GetMapTile operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See GetMapTile for more information on using the GetMapTile +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the GetMapTileRequest method. +// req, resp := client.GetMapTileRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/location-2020-11-19/GetMapTile +func (c *LocationService) GetMapTileRequest(input *GetMapTileInput) (req *request.Request, output *GetMapTileOutput) { + op := &request.Operation{ + Name: opGetMapTile, + HTTPMethod: "GET", + HTTPPath: "/maps/v0/maps/{MapName}/tiles/{Z}/{X}/{Y}", + } + + if input == nil { + input = &GetMapTileInput{} + } + + output = &GetMapTileOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("maps.", nil)) + req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) + return +} + +// GetMapTile API operation for Amazon Location Service. +// +// Retrieves a vector data tile from the map resource. Map tiles are used by +// clients to render a map. They are addressed using a grid arrangement with +// an X coordinate, Y coordinate, and Z (zoom) level. +// +// The origin (0, 0) is the top left of the map. Increasing the zoom level by +// 1 doubles both the X and Y dimensions, so a tile containing data for the +// entire world at (0/0/0) will be split into 4 tiles at zoom 1 (1/0/0, 1/0/1, +// 1/1/0, 1/1/1). +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Location Service's +// API operation GetMapTile for usage and error information. +// +// Returned Error Types: +// * InternalServerException +// The request has failed to process because of an unknown server error, exception, +// or failure. +// +// * ResourceNotFoundException +// The resource that you've entered was not found in your AWS account. +// +// * AccessDeniedException +// The request was denied due to insufficient access or permission. Check with +// an administrator to verify your permissions. +// +// * ValidationException +// The input failed to meet the constraints specified by the AWS service. +// +// * ThrottlingException +// The request was denied due to request throttling. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/location-2020-11-19/GetMapTile +func (c *LocationService) GetMapTile(input *GetMapTileInput) (*GetMapTileOutput, error) { + req, out := c.GetMapTileRequest(input) + return out, req.Send() +} + +// GetMapTileWithContext is the same as GetMapTile with the addition of +// the ability to pass a context and additional request options. +// +// See GetMapTile for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *LocationService) GetMapTileWithContext(ctx aws.Context, input *GetMapTileInput, opts ...request.Option) (*GetMapTileOutput, error) { + req, out := c.GetMapTileRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opListGeofenceCollections = "ListGeofenceCollections" + +// ListGeofenceCollectionsRequest generates a "aws/request.Request" representing the +// client's request for the ListGeofenceCollections operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListGeofenceCollections for more information on using the ListGeofenceCollections +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the ListGeofenceCollectionsRequest method. +// req, resp := client.ListGeofenceCollectionsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/location-2020-11-19/ListGeofenceCollections +func (c *LocationService) ListGeofenceCollectionsRequest(input *ListGeofenceCollectionsInput) (req *request.Request, output *ListGeofenceCollectionsOutput) { + op := &request.Operation{ + Name: opListGeofenceCollections, + HTTPMethod: "POST", + HTTPPath: "/geofencing/v0/list-collections", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListGeofenceCollectionsInput{} + } + + output = &ListGeofenceCollectionsOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("geofencing.", nil)) + req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) + return +} + +// ListGeofenceCollections API operation for Amazon Location Service. +// +// Lists geofence collections in 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 Amazon Location Service's +// API operation ListGeofenceCollections for usage and error information. +// +// Returned Error Types: +// * InternalServerException +// The request has failed to process because of an unknown server error, exception, +// or failure. +// +// * AccessDeniedException +// The request was denied due to insufficient access or permission. Check with +// an administrator to verify your permissions. +// +// * ValidationException +// The input failed to meet the constraints specified by the AWS service. +// +// * ThrottlingException +// The request was denied due to request throttling. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/location-2020-11-19/ListGeofenceCollections +func (c *LocationService) ListGeofenceCollections(input *ListGeofenceCollectionsInput) (*ListGeofenceCollectionsOutput, error) { + req, out := c.ListGeofenceCollectionsRequest(input) + return out, req.Send() +} + +// ListGeofenceCollectionsWithContext is the same as ListGeofenceCollections with the addition of +// the ability to pass a context and additional request options. +// +// See ListGeofenceCollections for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *LocationService) ListGeofenceCollectionsWithContext(ctx aws.Context, input *ListGeofenceCollectionsInput, opts ...request.Option) (*ListGeofenceCollectionsOutput, error) { + req, out := c.ListGeofenceCollectionsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// ListGeofenceCollectionsPages iterates over the pages of a ListGeofenceCollections operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListGeofenceCollections 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 ListGeofenceCollections operation. +// pageNum := 0 +// err := client.ListGeofenceCollectionsPages(params, +// func(page *locationservice.ListGeofenceCollectionsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *LocationService) ListGeofenceCollectionsPages(input *ListGeofenceCollectionsInput, fn func(*ListGeofenceCollectionsOutput, bool) bool) error { + return c.ListGeofenceCollectionsPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListGeofenceCollectionsPagesWithContext same as ListGeofenceCollectionsPages 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 *LocationService) ListGeofenceCollectionsPagesWithContext(ctx aws.Context, input *ListGeofenceCollectionsInput, fn func(*ListGeofenceCollectionsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListGeofenceCollectionsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListGeofenceCollectionsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListGeofenceCollectionsOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opListGeofences = "ListGeofences" + +// ListGeofencesRequest generates a "aws/request.Request" representing the +// client's request for the ListGeofences operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListGeofences for more information on using the ListGeofences +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the ListGeofencesRequest method. +// req, resp := client.ListGeofencesRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/location-2020-11-19/ListGeofences +func (c *LocationService) ListGeofencesRequest(input *ListGeofencesInput) (req *request.Request, output *ListGeofencesOutput) { + op := &request.Operation{ + Name: opListGeofences, + HTTPMethod: "POST", + HTTPPath: "/geofencing/v0/collections/{CollectionName}/list-geofences", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListGeofencesInput{} + } + + output = &ListGeofencesOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("geofencing.", nil)) + req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) + return +} + +// ListGeofences API operation for Amazon Location Service. +// +// Lists geofences stored in a given geofence collection. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Location Service's +// API operation ListGeofences for usage and error information. +// +// Returned Error Types: +// * InternalServerException +// The request has failed to process because of an unknown server error, exception, +// or failure. +// +// * ResourceNotFoundException +// The resource that you've entered was not found in your AWS account. +// +// * AccessDeniedException +// The request was denied due to insufficient access or permission. Check with +// an administrator to verify your permissions. +// +// * ValidationException +// The input failed to meet the constraints specified by the AWS service. +// +// * ThrottlingException +// The request was denied due to request throttling. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/location-2020-11-19/ListGeofences +func (c *LocationService) ListGeofences(input *ListGeofencesInput) (*ListGeofencesOutput, error) { + req, out := c.ListGeofencesRequest(input) + return out, req.Send() +} + +// ListGeofencesWithContext is the same as ListGeofences with the addition of +// the ability to pass a context and additional request options. +// +// See ListGeofences for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *LocationService) ListGeofencesWithContext(ctx aws.Context, input *ListGeofencesInput, opts ...request.Option) (*ListGeofencesOutput, error) { + req, out := c.ListGeofencesRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// ListGeofencesPages iterates over the pages of a ListGeofences operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListGeofences 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 ListGeofences operation. +// pageNum := 0 +// err := client.ListGeofencesPages(params, +// func(page *locationservice.ListGeofencesOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *LocationService) ListGeofencesPages(input *ListGeofencesInput, fn func(*ListGeofencesOutput, bool) bool) error { + return c.ListGeofencesPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListGeofencesPagesWithContext same as ListGeofencesPages 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 *LocationService) ListGeofencesPagesWithContext(ctx aws.Context, input *ListGeofencesInput, fn func(*ListGeofencesOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListGeofencesInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListGeofencesRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListGeofencesOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opListMaps = "ListMaps" + +// ListMapsRequest generates a "aws/request.Request" representing the +// client's request for the ListMaps operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListMaps for more information on using the ListMaps +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the ListMapsRequest method. +// req, resp := client.ListMapsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/location-2020-11-19/ListMaps +func (c *LocationService) ListMapsRequest(input *ListMapsInput) (req *request.Request, output *ListMapsOutput) { + op := &request.Operation{ + Name: opListMaps, + HTTPMethod: "POST", + HTTPPath: "/maps/v0/list-maps", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListMapsInput{} + } + + output = &ListMapsOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("maps.", nil)) + req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) + return +} + +// ListMaps API operation for Amazon Location Service. +// +// Lists map resources in 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 Amazon Location Service's +// API operation ListMaps for usage and error information. +// +// Returned Error Types: +// * InternalServerException +// The request has failed to process because of an unknown server error, exception, +// or failure. +// +// * AccessDeniedException +// The request was denied due to insufficient access or permission. Check with +// an administrator to verify your permissions. +// +// * ValidationException +// The input failed to meet the constraints specified by the AWS service. +// +// * ThrottlingException +// The request was denied due to request throttling. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/location-2020-11-19/ListMaps +func (c *LocationService) ListMaps(input *ListMapsInput) (*ListMapsOutput, error) { + req, out := c.ListMapsRequest(input) + return out, req.Send() +} + +// ListMapsWithContext is the same as ListMaps with the addition of +// the ability to pass a context and additional request options. +// +// See ListMaps for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *LocationService) ListMapsWithContext(ctx aws.Context, input *ListMapsInput, opts ...request.Option) (*ListMapsOutput, error) { + req, out := c.ListMapsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// ListMapsPages iterates over the pages of a ListMaps operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListMaps 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 ListMaps operation. +// pageNum := 0 +// err := client.ListMapsPages(params, +// func(page *locationservice.ListMapsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *LocationService) ListMapsPages(input *ListMapsInput, fn func(*ListMapsOutput, bool) bool) error { + return c.ListMapsPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListMapsPagesWithContext same as ListMapsPages 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 *LocationService) ListMapsPagesWithContext(ctx aws.Context, input *ListMapsInput, fn func(*ListMapsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListMapsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListMapsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListMapsOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opListPlaceIndexes = "ListPlaceIndexes" + +// ListPlaceIndexesRequest generates a "aws/request.Request" representing the +// client's request for the ListPlaceIndexes operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListPlaceIndexes for more information on using the ListPlaceIndexes +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the ListPlaceIndexesRequest method. +// req, resp := client.ListPlaceIndexesRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/location-2020-11-19/ListPlaceIndexes +func (c *LocationService) ListPlaceIndexesRequest(input *ListPlaceIndexesInput) (req *request.Request, output *ListPlaceIndexesOutput) { + op := &request.Operation{ + Name: opListPlaceIndexes, + HTTPMethod: "POST", + HTTPPath: "/places/v0/list-indexes", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListPlaceIndexesInput{} + } + + output = &ListPlaceIndexesOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("places.", nil)) + req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) + return +} + +// ListPlaceIndexes API operation for Amazon Location Service. +// +// Lists Place index resources in 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 Amazon Location Service's +// API operation ListPlaceIndexes for usage and error information. +// +// Returned Error Types: +// * InternalServerException +// The request has failed to process because of an unknown server error, exception, +// or failure. +// +// * AccessDeniedException +// The request was denied due to insufficient access or permission. Check with +// an administrator to verify your permissions. +// +// * ValidationException +// The input failed to meet the constraints specified by the AWS service. +// +// * ThrottlingException +// The request was denied due to request throttling. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/location-2020-11-19/ListPlaceIndexes +func (c *LocationService) ListPlaceIndexes(input *ListPlaceIndexesInput) (*ListPlaceIndexesOutput, error) { + req, out := c.ListPlaceIndexesRequest(input) + return out, req.Send() +} + +// ListPlaceIndexesWithContext is the same as ListPlaceIndexes with the addition of +// the ability to pass a context and additional request options. +// +// See ListPlaceIndexes for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *LocationService) ListPlaceIndexesWithContext(ctx aws.Context, input *ListPlaceIndexesInput, opts ...request.Option) (*ListPlaceIndexesOutput, error) { + req, out := c.ListPlaceIndexesRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// ListPlaceIndexesPages iterates over the pages of a ListPlaceIndexes operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListPlaceIndexes 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 ListPlaceIndexes operation. +// pageNum := 0 +// err := client.ListPlaceIndexesPages(params, +// func(page *locationservice.ListPlaceIndexesOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *LocationService) ListPlaceIndexesPages(input *ListPlaceIndexesInput, fn func(*ListPlaceIndexesOutput, bool) bool) error { + return c.ListPlaceIndexesPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListPlaceIndexesPagesWithContext same as ListPlaceIndexesPages 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 *LocationService) ListPlaceIndexesPagesWithContext(ctx aws.Context, input *ListPlaceIndexesInput, fn func(*ListPlaceIndexesOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListPlaceIndexesInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListPlaceIndexesRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListPlaceIndexesOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opListTrackerConsumers = "ListTrackerConsumers" + +// ListTrackerConsumersRequest generates a "aws/request.Request" representing the +// client's request for the ListTrackerConsumers operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListTrackerConsumers for more information on using the ListTrackerConsumers +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the ListTrackerConsumersRequest method. +// req, resp := client.ListTrackerConsumersRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/location-2020-11-19/ListTrackerConsumers +func (c *LocationService) ListTrackerConsumersRequest(input *ListTrackerConsumersInput) (req *request.Request, output *ListTrackerConsumersOutput) { + op := &request.Operation{ + Name: opListTrackerConsumers, + HTTPMethod: "POST", + HTTPPath: "/tracking/v0/trackers/{TrackerName}/list-consumers", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListTrackerConsumersInput{} + } + + output = &ListTrackerConsumersOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("tracking.", nil)) + req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) + return +} + +// ListTrackerConsumers API operation for Amazon Location Service. +// +// Lists geofence collections currently associated to the given tracker resource. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Location Service's +// API operation ListTrackerConsumers for usage and error information. +// +// Returned Error Types: +// * InternalServerException +// The request has failed to process because of an unknown server error, exception, +// or failure. +// +// * ResourceNotFoundException +// The resource that you've entered was not found in your AWS account. +// +// * AccessDeniedException +// The request was denied due to insufficient access or permission. Check with +// an administrator to verify your permissions. +// +// * ValidationException +// The input failed to meet the constraints specified by the AWS service. +// +// * ThrottlingException +// The request was denied due to request throttling. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/location-2020-11-19/ListTrackerConsumers +func (c *LocationService) ListTrackerConsumers(input *ListTrackerConsumersInput) (*ListTrackerConsumersOutput, error) { + req, out := c.ListTrackerConsumersRequest(input) + return out, req.Send() +} + +// ListTrackerConsumersWithContext is the same as ListTrackerConsumers with the addition of +// the ability to pass a context and additional request options. +// +// See ListTrackerConsumers for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *LocationService) ListTrackerConsumersWithContext(ctx aws.Context, input *ListTrackerConsumersInput, opts ...request.Option) (*ListTrackerConsumersOutput, error) { + req, out := c.ListTrackerConsumersRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// ListTrackerConsumersPages iterates over the pages of a ListTrackerConsumers operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListTrackerConsumers 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 ListTrackerConsumers operation. +// pageNum := 0 +// err := client.ListTrackerConsumersPages(params, +// func(page *locationservice.ListTrackerConsumersOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *LocationService) ListTrackerConsumersPages(input *ListTrackerConsumersInput, fn func(*ListTrackerConsumersOutput, bool) bool) error { + return c.ListTrackerConsumersPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListTrackerConsumersPagesWithContext same as ListTrackerConsumersPages 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 *LocationService) ListTrackerConsumersPagesWithContext(ctx aws.Context, input *ListTrackerConsumersInput, fn func(*ListTrackerConsumersOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListTrackerConsumersInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListTrackerConsumersRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListTrackerConsumersOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opListTrackers = "ListTrackers" + +// ListTrackersRequest generates a "aws/request.Request" representing the +// client's request for the ListTrackers operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListTrackers for more information on using the ListTrackers +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the ListTrackersRequest method. +// req, resp := client.ListTrackersRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/location-2020-11-19/ListTrackers +func (c *LocationService) ListTrackersRequest(input *ListTrackersInput) (req *request.Request, output *ListTrackersOutput) { + op := &request.Operation{ + Name: opListTrackers, + HTTPMethod: "POST", + HTTPPath: "/tracking/v0/list-trackers", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListTrackersInput{} + } + + output = &ListTrackersOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("tracking.", nil)) + req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) + return +} + +// ListTrackers API operation for Amazon Location Service. +// +// Lists tracker resources in 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 Amazon Location Service's +// API operation ListTrackers for usage and error information. +// +// Returned Error Types: +// * InternalServerException +// The request has failed to process because of an unknown server error, exception, +// or failure. +// +// * AccessDeniedException +// The request was denied due to insufficient access or permission. Check with +// an administrator to verify your permissions. +// +// * ValidationException +// The input failed to meet the constraints specified by the AWS service. +// +// * ThrottlingException +// The request was denied due to request throttling. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/location-2020-11-19/ListTrackers +func (c *LocationService) ListTrackers(input *ListTrackersInput) (*ListTrackersOutput, error) { + req, out := c.ListTrackersRequest(input) + return out, req.Send() +} + +// ListTrackersWithContext is the same as ListTrackers with the addition of +// the ability to pass a context and additional request options. +// +// See ListTrackers for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *LocationService) ListTrackersWithContext(ctx aws.Context, input *ListTrackersInput, opts ...request.Option) (*ListTrackersOutput, error) { + req, out := c.ListTrackersRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// ListTrackersPages iterates over the pages of a ListTrackers operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListTrackers 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 ListTrackers operation. +// pageNum := 0 +// err := client.ListTrackersPages(params, +// func(page *locationservice.ListTrackersOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *LocationService) ListTrackersPages(input *ListTrackersInput, fn func(*ListTrackersOutput, bool) bool) error { + return c.ListTrackersPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListTrackersPagesWithContext same as ListTrackersPages 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 *LocationService) ListTrackersPagesWithContext(ctx aws.Context, input *ListTrackersInput, fn func(*ListTrackersOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListTrackersInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListTrackersRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListTrackersOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opPutGeofence = "PutGeofence" + +// PutGeofenceRequest generates a "aws/request.Request" representing the +// client's request for the PutGeofence operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See PutGeofence for more information on using the PutGeofence +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the PutGeofenceRequest method. +// req, resp := client.PutGeofenceRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/location-2020-11-19/PutGeofence +func (c *LocationService) PutGeofenceRequest(input *PutGeofenceInput) (req *request.Request, output *PutGeofenceOutput) { + op := &request.Operation{ + Name: opPutGeofence, + HTTPMethod: "PUT", + HTTPPath: "/geofencing/v0/collections/{CollectionName}/geofences/{GeofenceId}", + } + + if input == nil { + input = &PutGeofenceInput{} + } + + output = &PutGeofenceOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("geofencing.", nil)) + req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) + return +} + +// PutGeofence API operation for Amazon Location Service. +// +// Stores a geofence to a given geofence collection, or updates the geometry +// of an existing geofence if a geofence ID is included in the request. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Location Service's +// API operation PutGeofence for usage and error information. +// +// Returned Error Types: +// * InternalServerException +// The request has failed to process because of an unknown server error, exception, +// or failure. +// +// * ResourceNotFoundException +// The resource that you've entered was not found in your AWS account. +// +// * ConflictException +// The request was unsuccessful due to a conflict. +// +// * AccessDeniedException +// The request was denied due to insufficient access or permission. Check with +// an administrator to verify your permissions. +// +// * ValidationException +// The input failed to meet the constraints specified by the AWS service. +// +// * ThrottlingException +// The request was denied due to request throttling. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/location-2020-11-19/PutGeofence +func (c *LocationService) PutGeofence(input *PutGeofenceInput) (*PutGeofenceOutput, error) { + req, out := c.PutGeofenceRequest(input) + return out, req.Send() +} + +// PutGeofenceWithContext is the same as PutGeofence with the addition of +// the ability to pass a context and additional request options. +// +// See PutGeofence for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *LocationService) PutGeofenceWithContext(ctx aws.Context, input *PutGeofenceInput, opts ...request.Option) (*PutGeofenceOutput, error) { + req, out := c.PutGeofenceRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opSearchPlaceIndexForPosition = "SearchPlaceIndexForPosition" + +// SearchPlaceIndexForPositionRequest generates a "aws/request.Request" representing the +// client's request for the SearchPlaceIndexForPosition operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See SearchPlaceIndexForPosition for more information on using the SearchPlaceIndexForPosition +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the SearchPlaceIndexForPositionRequest method. +// req, resp := client.SearchPlaceIndexForPositionRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/location-2020-11-19/SearchPlaceIndexForPosition +func (c *LocationService) SearchPlaceIndexForPositionRequest(input *SearchPlaceIndexForPositionInput) (req *request.Request, output *SearchPlaceIndexForPositionOutput) { + op := &request.Operation{ + Name: opSearchPlaceIndexForPosition, + HTTPMethod: "POST", + HTTPPath: "/places/v0/indexes/{IndexName}/search/position", + } + + if input == nil { + input = &SearchPlaceIndexForPositionInput{} + } + + output = &SearchPlaceIndexForPositionOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("places.", nil)) + req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) + return +} + +// SearchPlaceIndexForPosition API operation for Amazon Location Service. +// +// Reverse geocodes a given coordinate and returns a legible address. Allows +// you to search for Places or points of interest near a given position. +// +// By using Places, you agree that AWS may transmit your API queries to your +// selected third party provider for processing, which may be outside the AWS +// region you are currently using. +// +// Because of licensing limitations, you may not use HERE to store results for +// locations in Japan. For more information, see the AWS Service Terms (https://aws.amazon.com/service-terms/) +// for Amazon Location Service. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Location Service's +// API operation SearchPlaceIndexForPosition for usage and error information. +// +// Returned Error Types: +// * InternalServerException +// The request has failed to process because of an unknown server error, exception, +// or failure. +// +// * ResourceNotFoundException +// The resource that you've entered was not found in your AWS account. +// +// * AccessDeniedException +// The request was denied due to insufficient access or permission. Check with +// an administrator to verify your permissions. +// +// * ValidationException +// The input failed to meet the constraints specified by the AWS service. +// +// * ThrottlingException +// The request was denied due to request throttling. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/location-2020-11-19/SearchPlaceIndexForPosition +func (c *LocationService) SearchPlaceIndexForPosition(input *SearchPlaceIndexForPositionInput) (*SearchPlaceIndexForPositionOutput, error) { + req, out := c.SearchPlaceIndexForPositionRequest(input) + return out, req.Send() +} + +// SearchPlaceIndexForPositionWithContext is the same as SearchPlaceIndexForPosition with the addition of +// the ability to pass a context and additional request options. +// +// See SearchPlaceIndexForPosition for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *LocationService) SearchPlaceIndexForPositionWithContext(ctx aws.Context, input *SearchPlaceIndexForPositionInput, opts ...request.Option) (*SearchPlaceIndexForPositionOutput, error) { + req, out := c.SearchPlaceIndexForPositionRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opSearchPlaceIndexForText = "SearchPlaceIndexForText" + +// SearchPlaceIndexForTextRequest generates a "aws/request.Request" representing the +// client's request for the SearchPlaceIndexForText operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See SearchPlaceIndexForText for more information on using the SearchPlaceIndexForText +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the SearchPlaceIndexForTextRequest method. +// req, resp := client.SearchPlaceIndexForTextRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/location-2020-11-19/SearchPlaceIndexForText +func (c *LocationService) SearchPlaceIndexForTextRequest(input *SearchPlaceIndexForTextInput) (req *request.Request, output *SearchPlaceIndexForTextOutput) { + op := &request.Operation{ + Name: opSearchPlaceIndexForText, + HTTPMethod: "POST", + HTTPPath: "/places/v0/indexes/{IndexName}/search/text", + } + + if input == nil { + input = &SearchPlaceIndexForTextInput{} + } + + output = &SearchPlaceIndexForTextOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("places.", nil)) + req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler) + return +} + +// SearchPlaceIndexForText API operation for Amazon Location Service. +// +// Geocodes free-form text, such as an address, name, city, or region to allow +// you to search for Places or points of interest. +// +// Includes the option to apply additional parameters to narrow your list of +// results. +// +// You can search for places near a given position using BiasPosition, or filter +// results within a bounding box using FilterBBox. Providing both parameters +// simultaneously returns an error. +// +// By using Places, you agree that AWS may transmit your API queries to your +// selected third party provider for processing, which may be outside the AWS +// region you are currently using. +// +// Also, when using HERE as your data provider, you may not (a) use HERE Places +// for Asset Management, or (b) select the Storage option for the IntendedUse +// parameter when requesting Places in Japan. For more information, see the +// AWS Service Terms (https://aws.amazon.com/service-terms/) for Amazon Location +// Service. +// +// Returns awserr.Error for service API and SDK errors. Use runtime type assertions +// with awserr.Error's Code and Message methods to get detailed information about +// the error. +// +// See the AWS API reference guide for Amazon Location Service's +// API operation SearchPlaceIndexForText for usage and error information. +// +// Returned Error Types: +// * InternalServerException +// The request has failed to process because of an unknown server error, exception, +// or failure. +// +// * ResourceNotFoundException +// The resource that you've entered was not found in your AWS account. +// +// * AccessDeniedException +// The request was denied due to insufficient access or permission. Check with +// an administrator to verify your permissions. +// +// * ValidationException +// The input failed to meet the constraints specified by the AWS service. +// +// * ThrottlingException +// The request was denied due to request throttling. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/location-2020-11-19/SearchPlaceIndexForText +func (c *LocationService) SearchPlaceIndexForText(input *SearchPlaceIndexForTextInput) (*SearchPlaceIndexForTextOutput, error) { + req, out := c.SearchPlaceIndexForTextRequest(input) + return out, req.Send() +} + +// SearchPlaceIndexForTextWithContext is the same as SearchPlaceIndexForText with the addition of +// the ability to pass a context and additional request options. +// +// See SearchPlaceIndexForText for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *LocationService) SearchPlaceIndexForTextWithContext(ctx aws.Context, input *SearchPlaceIndexForTextInput, opts ...request.Option) (*SearchPlaceIndexForTextOutput, error) { + req, out := c.SearchPlaceIndexForTextRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// The request was denied due to insufficient access or permission. Check with +// an administrator to verify your permissions. +type AccessDeniedException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s AccessDeniedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AccessDeniedException) GoString() string { + return s.String() +} + +func newErrorAccessDeniedException(v protocol.ResponseMetadata) error { + return &AccessDeniedException{ + RespMetadata: v, + } +} + +// Code returns the exception type name. +func (s *AccessDeniedException) Code() string { + return "AccessDeniedException" +} + +// Message returns the exception's message. +func (s *AccessDeniedException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *AccessDeniedException) OrigErr() error { + return nil +} + +func (s *AccessDeniedException) Error() string { + return fmt.Sprintf("%s: %s", 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 AssociateTrackerConsumerInput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) for the geofence collection to be associated + // to tracker resource. Used when you need to specify a resource across all + // AWS. + // + // * Format example: arn:partition:service:region:account-id:resource-type:resource-id + // + // ConsumerArn is a required field + ConsumerArn *string `type:"string" required:"true"` + + // The name of the tracker resource to be associated with a geofence collection. + // + // TrackerName is a required field + TrackerName *string `location:"uri" locationName:"TrackerName" min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s AssociateTrackerConsumerInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AssociateTrackerConsumerInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AssociateTrackerConsumerInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AssociateTrackerConsumerInput"} + if s.ConsumerArn == nil { + invalidParams.Add(request.NewErrParamRequired("ConsumerArn")) + } + if s.TrackerName == nil { + invalidParams.Add(request.NewErrParamRequired("TrackerName")) + } + if s.TrackerName != nil && len(*s.TrackerName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("TrackerName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetConsumerArn sets the ConsumerArn field's value. +func (s *AssociateTrackerConsumerInput) SetConsumerArn(v string) *AssociateTrackerConsumerInput { + s.ConsumerArn = &v + return s +} + +// SetTrackerName sets the TrackerName field's value. +func (s *AssociateTrackerConsumerInput) SetTrackerName(v string) *AssociateTrackerConsumerInput { + s.TrackerName = &v + return s +} + +type AssociateTrackerConsumerOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s AssociateTrackerConsumerOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AssociateTrackerConsumerOutput) GoString() string { + return s.String() +} + +// Contains error details for each geofence that failed to delete from the geofence +// collection. +type BatchDeleteGeofenceError struct { + _ struct{} `type:"structure"` + + // Contains details associated to the batch error. + // + // Error is a required field + Error *BatchItemError `type:"structure" required:"true"` + + // The geofence associated with the error message. + // + // GeofenceId is a required field + GeofenceId *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s BatchDeleteGeofenceError) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BatchDeleteGeofenceError) GoString() string { + return s.String() +} + +// SetError sets the Error field's value. +func (s *BatchDeleteGeofenceError) SetError(v *BatchItemError) *BatchDeleteGeofenceError { + s.Error = v + return s +} + +// SetGeofenceId sets the GeofenceId field's value. +func (s *BatchDeleteGeofenceError) SetGeofenceId(v string) *BatchDeleteGeofenceError { + s.GeofenceId = &v + return s +} + +type BatchDeleteGeofenceInput struct { + _ struct{} `type:"structure"` + + // The geofence collection storing the geofences to be deleted. + // + // CollectionName is a required field + CollectionName *string `location:"uri" locationName:"CollectionName" min:"1" type:"string" required:"true"` + + // The batch of geofences to be deleted. + // + // GeofenceIds is a required field + GeofenceIds []*string `min:"1" type:"list" required:"true"` +} + +// String returns the string representation +func (s BatchDeleteGeofenceInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BatchDeleteGeofenceInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *BatchDeleteGeofenceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "BatchDeleteGeofenceInput"} + if s.CollectionName == nil { + invalidParams.Add(request.NewErrParamRequired("CollectionName")) + } + if s.CollectionName != nil && len(*s.CollectionName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("CollectionName", 1)) + } + if s.GeofenceIds == nil { + invalidParams.Add(request.NewErrParamRequired("GeofenceIds")) + } + if s.GeofenceIds != nil && len(s.GeofenceIds) < 1 { + invalidParams.Add(request.NewErrParamMinLen("GeofenceIds", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetCollectionName sets the CollectionName field's value. +func (s *BatchDeleteGeofenceInput) SetCollectionName(v string) *BatchDeleteGeofenceInput { + s.CollectionName = &v + return s +} + +// SetGeofenceIds sets the GeofenceIds field's value. +func (s *BatchDeleteGeofenceInput) SetGeofenceIds(v []*string) *BatchDeleteGeofenceInput { + s.GeofenceIds = v + return s +} + +type BatchDeleteGeofenceOutput struct { + _ struct{} `type:"structure"` + + // Contains error details for each geofence that failed to delete. + // + // Errors is a required field + Errors []*BatchDeleteGeofenceError `type:"list" required:"true"` +} + +// String returns the string representation +func (s BatchDeleteGeofenceOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BatchDeleteGeofenceOutput) GoString() string { + return s.String() +} + +// SetErrors sets the Errors field's value. +func (s *BatchDeleteGeofenceOutput) SetErrors(v []*BatchDeleteGeofenceError) *BatchDeleteGeofenceOutput { + s.Errors = v + return s +} + +// Contains error details for each device that failed to evaluate its position +// against the geofences in a given geofence collection. +type BatchEvaluateGeofencesError struct { + _ struct{} `type:"structure"` + + // The device associated with the position evaluation error. + // + // DeviceId is a required field + DeviceId *string `min:"1" type:"string" required:"true"` + + // Contains details associated to the batch error. + // + // Error is a required field + Error *BatchItemError `type:"structure" required:"true"` + + // Specifies a timestamp for when the error occurred in ISO 8601 (https://www.iso.org/iso-8601-date-and-time-format.html) + // format: YYYY-MM-DDThh:mm:ss.sssZ + // + // SampleTime is a required field + SampleTime *time.Time `type:"timestamp" timestampFormat:"iso8601" required:"true"` +} + +// String returns the string representation +func (s BatchEvaluateGeofencesError) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BatchEvaluateGeofencesError) GoString() string { + return s.String() +} + +// SetDeviceId sets the DeviceId field's value. +func (s *BatchEvaluateGeofencesError) SetDeviceId(v string) *BatchEvaluateGeofencesError { + s.DeviceId = &v + return s +} + +// SetError sets the Error field's value. +func (s *BatchEvaluateGeofencesError) SetError(v *BatchItemError) *BatchEvaluateGeofencesError { + s.Error = v + return s +} + +// SetSampleTime sets the SampleTime field's value. +func (s *BatchEvaluateGeofencesError) SetSampleTime(v time.Time) *BatchEvaluateGeofencesError { + s.SampleTime = &v + return s +} + +type BatchEvaluateGeofencesInput struct { + _ struct{} `type:"structure"` + + // The geofence collection used in evaluating the position of devices against + // its geofences. + // + // CollectionName is a required field + CollectionName *string `location:"uri" locationName:"CollectionName" min:"1" type:"string" required:"true"` + + // Contains device details for each device to be evaluated against the given + // geofence collection. + // + // DevicePositionUpdates is a required field + DevicePositionUpdates []*DevicePositionUpdate `min:"1" type:"list" required:"true"` +} + +// String returns the string representation +func (s BatchEvaluateGeofencesInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BatchEvaluateGeofencesInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *BatchEvaluateGeofencesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "BatchEvaluateGeofencesInput"} + if s.CollectionName == nil { + invalidParams.Add(request.NewErrParamRequired("CollectionName")) + } + if s.CollectionName != nil && len(*s.CollectionName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("CollectionName", 1)) + } + if s.DevicePositionUpdates == nil { + invalidParams.Add(request.NewErrParamRequired("DevicePositionUpdates")) + } + if s.DevicePositionUpdates != nil && len(s.DevicePositionUpdates) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DevicePositionUpdates", 1)) + } + if s.DevicePositionUpdates != nil { + for i, v := range s.DevicePositionUpdates { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "DevicePositionUpdates", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetCollectionName sets the CollectionName field's value. +func (s *BatchEvaluateGeofencesInput) SetCollectionName(v string) *BatchEvaluateGeofencesInput { + s.CollectionName = &v + return s +} + +// SetDevicePositionUpdates sets the DevicePositionUpdates field's value. +func (s *BatchEvaluateGeofencesInput) SetDevicePositionUpdates(v []*DevicePositionUpdate) *BatchEvaluateGeofencesInput { + s.DevicePositionUpdates = v + return s +} + +type BatchEvaluateGeofencesOutput struct { + _ struct{} `type:"structure"` + + // Contains error details for each device that failed to evaluate its position + // against the given geofence collection. + // + // Errors is a required field + Errors []*BatchEvaluateGeofencesError `type:"list" required:"true"` +} + +// String returns the string representation +func (s BatchEvaluateGeofencesOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BatchEvaluateGeofencesOutput) GoString() string { + return s.String() +} + +// SetErrors sets the Errors field's value. +func (s *BatchEvaluateGeofencesOutput) SetErrors(v []*BatchEvaluateGeofencesError) *BatchEvaluateGeofencesOutput { + s.Errors = v + return s +} + +// Contains error details for each device that didn't return a position. +type BatchGetDevicePositionError struct { + _ struct{} `type:"structure"` + + // The ID of the device that didn't return a position. + // + // DeviceId is a required field + DeviceId *string `min:"1" type:"string" required:"true"` + + // Contains details related to the error code. + // + // Error is a required field + Error *BatchItemError `type:"structure" required:"true"` +} + +// String returns the string representation +func (s BatchGetDevicePositionError) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BatchGetDevicePositionError) GoString() string { + return s.String() +} + +// SetDeviceId sets the DeviceId field's value. +func (s *BatchGetDevicePositionError) SetDeviceId(v string) *BatchGetDevicePositionError { + s.DeviceId = &v + return s +} + +// SetError sets the Error field's value. +func (s *BatchGetDevicePositionError) SetError(v *BatchItemError) *BatchGetDevicePositionError { + s.Error = v + return s +} + +type BatchGetDevicePositionInput struct { + _ struct{} `type:"structure"` + + // Devices whose position you want to retrieve. + // + // * For example, for two devices: device-ids=DeviceId1&device-ids=DeviceId2 + // + // DeviceIds is a required field + DeviceIds []*string `min:"1" type:"list" required:"true"` + + // The tracker resource retrieving the device position. + // + // TrackerName is a required field + TrackerName *string `location:"uri" locationName:"TrackerName" min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s BatchGetDevicePositionInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BatchGetDevicePositionInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *BatchGetDevicePositionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "BatchGetDevicePositionInput"} + if s.DeviceIds == nil { + invalidParams.Add(request.NewErrParamRequired("DeviceIds")) + } + if s.DeviceIds != nil && len(s.DeviceIds) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DeviceIds", 1)) + } + if s.TrackerName == nil { + invalidParams.Add(request.NewErrParamRequired("TrackerName")) + } + if s.TrackerName != nil && len(*s.TrackerName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("TrackerName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDeviceIds sets the DeviceIds field's value. +func (s *BatchGetDevicePositionInput) SetDeviceIds(v []*string) *BatchGetDevicePositionInput { + s.DeviceIds = v + return s +} + +// SetTrackerName sets the TrackerName field's value. +func (s *BatchGetDevicePositionInput) SetTrackerName(v string) *BatchGetDevicePositionInput { + s.TrackerName = &v + return s +} + +type BatchGetDevicePositionOutput struct { + _ struct{} `type:"structure"` + + // Contains device position details such as the device ID, position, and timestamps + // for when the position was received and sampled. + // + // DevicePositions is a required field + DevicePositions []*DevicePosition `type:"list" required:"true"` + + // Contains error details for each device that failed to send its position to + // the tracker resource. + // + // Errors is a required field + Errors []*BatchGetDevicePositionError `type:"list" required:"true"` +} + +// String returns the string representation +func (s BatchGetDevicePositionOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BatchGetDevicePositionOutput) GoString() string { + return s.String() +} + +// SetDevicePositions sets the DevicePositions field's value. +func (s *BatchGetDevicePositionOutput) SetDevicePositions(v []*DevicePosition) *BatchGetDevicePositionOutput { + s.DevicePositions = v + return s +} + +// SetErrors sets the Errors field's value. +func (s *BatchGetDevicePositionOutput) SetErrors(v []*BatchGetDevicePositionError) *BatchGetDevicePositionOutput { + s.Errors = v + return s +} + +// Contains the batch request error details associated with the request. +type BatchItemError struct { + _ struct{} `type:"structure"` + + // The error code associated with the batch request error. + Code *string `type:"string" enum:"BatchItemErrorCode"` + + // A message with the reason for the batch request error. + Message *string `type:"string"` +} + +// String returns the string representation +func (s BatchItemError) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BatchItemError) GoString() string { + return s.String() +} + +// SetCode sets the Code field's value. +func (s *BatchItemError) SetCode(v string) *BatchItemError { + s.Code = &v + return s +} + +// SetMessage sets the Message field's value. +func (s *BatchItemError) SetMessage(v string) *BatchItemError { + s.Message = &v + return s +} + +// Contains error details for each geofence that failed to be stored in a given +// geofence collection. +type BatchPutGeofenceError struct { + _ struct{} `type:"structure"` + + // Contains details associated to the batch error. + // + // Error is a required field + Error *BatchItemError `type:"structure" required:"true"` + + // The geofence associated with the error message. + // + // GeofenceId is a required field + GeofenceId *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s BatchPutGeofenceError) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BatchPutGeofenceError) GoString() string { + return s.String() +} + +// SetError sets the Error field's value. +func (s *BatchPutGeofenceError) SetError(v *BatchItemError) *BatchPutGeofenceError { + s.Error = v + return s +} + +// SetGeofenceId sets the GeofenceId field's value. +func (s *BatchPutGeofenceError) SetGeofenceId(v string) *BatchPutGeofenceError { + s.GeofenceId = &v + return s +} + +type BatchPutGeofenceInput struct { + _ struct{} `type:"structure"` + + // The geofence collection storing the geofences. + // + // CollectionName is a required field + CollectionName *string `location:"uri" locationName:"CollectionName" min:"1" type:"string" required:"true"` + + // The batch of geofences to be stored in a geofence collection. + // + // Entries is a required field + Entries []*BatchPutGeofenceRequestEntry `min:"1" type:"list" required:"true"` +} + +// String returns the string representation +func (s BatchPutGeofenceInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BatchPutGeofenceInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *BatchPutGeofenceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "BatchPutGeofenceInput"} + if s.CollectionName == nil { + invalidParams.Add(request.NewErrParamRequired("CollectionName")) + } + if s.CollectionName != nil && len(*s.CollectionName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("CollectionName", 1)) + } + if s.Entries == nil { + invalidParams.Add(request.NewErrParamRequired("Entries")) + } + if s.Entries != nil && len(s.Entries) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Entries", 1)) + } + if s.Entries != nil { + for i, v := range s.Entries { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Entries", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetCollectionName sets the CollectionName field's value. +func (s *BatchPutGeofenceInput) SetCollectionName(v string) *BatchPutGeofenceInput { + s.CollectionName = &v + return s +} + +// SetEntries sets the Entries field's value. +func (s *BatchPutGeofenceInput) SetEntries(v []*BatchPutGeofenceRequestEntry) *BatchPutGeofenceInput { + s.Entries = v + return s +} + +type BatchPutGeofenceOutput struct { + _ struct{} `type:"structure"` + + // Contains additional error details for each geofence that failed to be stored + // in a geofence collection. + // + // Errors is a required field + Errors []*BatchPutGeofenceError `type:"list" required:"true"` + + // Contains each geofence that was successfully stored in a geofence collection. + // + // Successes is a required field + Successes []*BatchPutGeofenceSuccess `type:"list" required:"true"` +} + +// String returns the string representation +func (s BatchPutGeofenceOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BatchPutGeofenceOutput) GoString() string { + return s.String() +} + +// SetErrors sets the Errors field's value. +func (s *BatchPutGeofenceOutput) SetErrors(v []*BatchPutGeofenceError) *BatchPutGeofenceOutput { + s.Errors = v + return s +} + +// SetSuccesses sets the Successes field's value. +func (s *BatchPutGeofenceOutput) SetSuccesses(v []*BatchPutGeofenceSuccess) *BatchPutGeofenceOutput { + s.Successes = v + return s +} + +// Contains geofence details. +type BatchPutGeofenceRequestEntry struct { + _ struct{} `type:"structure"` + + // The identifier for the geofence to be stored in a given geofence collection. + // + // GeofenceId is a required field + GeofenceId *string `min:"1" type:"string" required:"true"` + + // The geometry details for the geofence. + // + // Geometry is a required field + Geometry *GeofenceGeometry `type:"structure" required:"true"` +} + +// String returns the string representation +func (s BatchPutGeofenceRequestEntry) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BatchPutGeofenceRequestEntry) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *BatchPutGeofenceRequestEntry) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "BatchPutGeofenceRequestEntry"} + if s.GeofenceId == nil { + invalidParams.Add(request.NewErrParamRequired("GeofenceId")) + } + if s.GeofenceId != nil && len(*s.GeofenceId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("GeofenceId", 1)) + } + if s.Geometry == nil { + invalidParams.Add(request.NewErrParamRequired("Geometry")) + } + if s.Geometry != nil { + if err := s.Geometry.Validate(); err != nil { + invalidParams.AddNested("Geometry", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetGeofenceId sets the GeofenceId field's value. +func (s *BatchPutGeofenceRequestEntry) SetGeofenceId(v string) *BatchPutGeofenceRequestEntry { + s.GeofenceId = &v + return s +} + +// SetGeometry sets the Geometry field's value. +func (s *BatchPutGeofenceRequestEntry) SetGeometry(v *GeofenceGeometry) *BatchPutGeofenceRequestEntry { + s.Geometry = v + return s +} + +// Contains a summary of each geofence that was successfully stored in a given +// geofence collection. +type BatchPutGeofenceSuccess struct { + _ struct{} `type:"structure"` + + // The timestamp for when the geofence was stored in a geofence collection in + // ISO 8601 (https://www.iso.org/iso-8601-date-and-time-format.html) format: + // YYYY-MM-DDThh:mm:ss.sssZ + // + // CreateTime is a required field + CreateTime *time.Time `type:"timestamp" timestampFormat:"iso8601" required:"true"` + + // The geofence successfully stored in a geofence collection. + // + // GeofenceId is a required field + GeofenceId *string `min:"1" type:"string" required:"true"` + + // The timestamp for when the geofence was last updated in ISO 8601 (https://www.iso.org/iso-8601-date-and-time-format.html) + // format: YYYY-MM-DDThh:mm:ss.sssZ + // + // UpdateTime is a required field + UpdateTime *time.Time `type:"timestamp" timestampFormat:"iso8601" required:"true"` +} + +// String returns the string representation +func (s BatchPutGeofenceSuccess) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BatchPutGeofenceSuccess) GoString() string { + return s.String() +} + +// SetCreateTime sets the CreateTime field's value. +func (s *BatchPutGeofenceSuccess) SetCreateTime(v time.Time) *BatchPutGeofenceSuccess { + s.CreateTime = &v + return s +} + +// SetGeofenceId sets the GeofenceId field's value. +func (s *BatchPutGeofenceSuccess) SetGeofenceId(v string) *BatchPutGeofenceSuccess { + s.GeofenceId = &v + return s +} + +// SetUpdateTime sets the UpdateTime field's value. +func (s *BatchPutGeofenceSuccess) SetUpdateTime(v time.Time) *BatchPutGeofenceSuccess { + s.UpdateTime = &v + return s +} + +// Contains error details for each device that failed to update its position. +type BatchUpdateDevicePositionError struct { + _ struct{} `type:"structure"` + + // The device associated with the failed location update. + // + // DeviceId is a required field + DeviceId *string `min:"1" type:"string" required:"true"` + + // Contains details related to the error code such as the error code and error + // message. + // + // Error is a required field + Error *BatchItemError `type:"structure" required:"true"` + + // The timestamp for when a position sample was attempted in ISO 8601 (https://www.iso.org/iso-8601-date-and-time-format.html) + // format: YYYY-MM-DDThh:mm:ss.sssZ. + // + // SampleTime is a required field + SampleTime *time.Time `type:"timestamp" timestampFormat:"iso8601" required:"true"` +} + +// String returns the string representation +func (s BatchUpdateDevicePositionError) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BatchUpdateDevicePositionError) GoString() string { + return s.String() +} + +// SetDeviceId sets the DeviceId field's value. +func (s *BatchUpdateDevicePositionError) SetDeviceId(v string) *BatchUpdateDevicePositionError { + s.DeviceId = &v + return s +} + +// SetError sets the Error field's value. +func (s *BatchUpdateDevicePositionError) SetError(v *BatchItemError) *BatchUpdateDevicePositionError { + s.Error = v + return s +} + +// SetSampleTime sets the SampleTime field's value. +func (s *BatchUpdateDevicePositionError) SetSampleTime(v time.Time) *BatchUpdateDevicePositionError { + s.SampleTime = &v + return s +} + +type BatchUpdateDevicePositionInput struct { + _ struct{} `type:"structure"` + + // The name of the tracker resource to update. + // + // TrackerName is a required field + TrackerName *string `location:"uri" locationName:"TrackerName" min:"1" type:"string" required:"true"` + + // Contains the position update details for each device. + // + // Updates is a required field + Updates []*DevicePositionUpdate `min:"1" type:"list" required:"true"` +} + +// String returns the string representation +func (s BatchUpdateDevicePositionInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BatchUpdateDevicePositionInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *BatchUpdateDevicePositionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "BatchUpdateDevicePositionInput"} + if s.TrackerName == nil { + invalidParams.Add(request.NewErrParamRequired("TrackerName")) + } + if s.TrackerName != nil && len(*s.TrackerName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("TrackerName", 1)) + } + if s.Updates == nil { + invalidParams.Add(request.NewErrParamRequired("Updates")) + } + if s.Updates != nil && len(s.Updates) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Updates", 1)) + } + if s.Updates != nil { + for i, v := range s.Updates { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Updates", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetTrackerName sets the TrackerName field's value. +func (s *BatchUpdateDevicePositionInput) SetTrackerName(v string) *BatchUpdateDevicePositionInput { + s.TrackerName = &v + return s +} + +// SetUpdates sets the Updates field's value. +func (s *BatchUpdateDevicePositionInput) SetUpdates(v []*DevicePositionUpdate) *BatchUpdateDevicePositionInput { + s.Updates = v + return s +} + +type BatchUpdateDevicePositionOutput struct { + _ struct{} `type:"structure"` + + // Contains error details for each device that failed to update its position. + // + // Errors is a required field + Errors []*BatchUpdateDevicePositionError `type:"list" required:"true"` +} + +// String returns the string representation +func (s BatchUpdateDevicePositionOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BatchUpdateDevicePositionOutput) GoString() string { + return s.String() +} + +// SetErrors sets the Errors field's value. +func (s *BatchUpdateDevicePositionOutput) SetErrors(v []*BatchUpdateDevicePositionError) *BatchUpdateDevicePositionOutput { + s.Errors = v + return s +} + +// The request was unsuccessful due to a conflict. +type ConflictException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ConflictException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ConflictException) GoString() string { + return s.String() +} + +func newErrorConflictException(v protocol.ResponseMetadata) error { + return &ConflictException{ + RespMetadata: v, + } +} + +// Code returns the exception type name. +func (s *ConflictException) Code() string { + return "ConflictException" +} + +// Message returns the exception's message. +func (s *ConflictException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *ConflictException) OrigErr() error { + return nil +} + +func (s *ConflictException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// 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 CreateGeofenceCollectionInput struct { + _ struct{} `type:"structure"` + + // A custom name for the geofence collection. + // + // Requirements: + // + // * Contain only alphanumeric characters (A–Z, a–z, 0-9), hyphens (-), + // and underscores (_). + // + // * Must be a unique geofence collection name. + // + // * No spaces allowed. For example, ExampleGeofenceCollection. + // + // CollectionName is a required field + CollectionName *string `min:"1" type:"string" required:"true"` + + // An optional description for the geofence collection. + Description *string `type:"string"` + + // Specifies the pricing plan for your geofence collection. There's three pricing + // plan options: + // + // * RequestBasedUsage — Selects the "Request-Based Usage" pricing plan. + // + // * MobileAssetTracking — Selects the "Mobile Asset Tracking" pricing + // plan. + // + // * MobileAssetManagement — Selects the "Mobile Asset Management" pricing + // plan. + // + // For additional details and restrictions on each pricing plan option, see + // the Amazon Location Service pricing page (https://aws.amazon.com/location/pricing/). + // + // PricingPlan is a required field + PricingPlan *string `type:"string" required:"true" enum:"PricingPlan"` +} + +// String returns the string representation +func (s CreateGeofenceCollectionInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateGeofenceCollectionInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateGeofenceCollectionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateGeofenceCollectionInput"} + if s.CollectionName == nil { + invalidParams.Add(request.NewErrParamRequired("CollectionName")) + } + if s.CollectionName != nil && len(*s.CollectionName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("CollectionName", 1)) + } + if s.PricingPlan == nil { + invalidParams.Add(request.NewErrParamRequired("PricingPlan")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetCollectionName sets the CollectionName field's value. +func (s *CreateGeofenceCollectionInput) SetCollectionName(v string) *CreateGeofenceCollectionInput { + s.CollectionName = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *CreateGeofenceCollectionInput) SetDescription(v string) *CreateGeofenceCollectionInput { + s.Description = &v + return s +} + +// SetPricingPlan sets the PricingPlan field's value. +func (s *CreateGeofenceCollectionInput) SetPricingPlan(v string) *CreateGeofenceCollectionInput { + s.PricingPlan = &v + return s +} + +type CreateGeofenceCollectionOutput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) for the geofence collection resource. Used + // when you need to specify a resource across all AWS. + // + // CollectionArn is a required field + CollectionArn *string `type:"string" required:"true"` + + // The name for the geofence collection. + // + // CollectionName is a required field + CollectionName *string `min:"1" type:"string" required:"true"` + + // The timestamp for when the geofence collection was created in ISO 8601 (https://www.iso.org/iso-8601-date-and-time-format.html) + // format: YYYY-MM-DDThh:mm:ss.sssZ + // + // CreateTime is a required field + CreateTime *time.Time `type:"timestamp" timestampFormat:"iso8601" required:"true"` +} + +// String returns the string representation +func (s CreateGeofenceCollectionOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateGeofenceCollectionOutput) GoString() string { + return s.String() +} + +// SetCollectionArn sets the CollectionArn field's value. +func (s *CreateGeofenceCollectionOutput) SetCollectionArn(v string) *CreateGeofenceCollectionOutput { + s.CollectionArn = &v + return s +} + +// SetCollectionName sets the CollectionName field's value. +func (s *CreateGeofenceCollectionOutput) SetCollectionName(v string) *CreateGeofenceCollectionOutput { + s.CollectionName = &v + return s +} + +// SetCreateTime sets the CreateTime field's value. +func (s *CreateGeofenceCollectionOutput) SetCreateTime(v time.Time) *CreateGeofenceCollectionOutput { + s.CreateTime = &v + return s +} + +type CreateMapInput struct { + _ struct{} `type:"structure"` + + // Specifies the map style selected from an available data provider. + // + // Configuration is a required field + Configuration *MapConfiguration `type:"structure" required:"true"` + + // An optional description for the map resource. + Description *string `type:"string"` + + // The name for the map resource. + // + // Requirements: + // + // * Must contain only alphanumeric characters (A–Z, a–z, 0–9), hyphens + // (-), and underscores (_). + // + // * Must be a unique map resource name. + // + // * No spaces allowed. For example, ExampleMap. + // + // MapName is a required field + MapName *string `min:"1" type:"string" required:"true"` + + // Specifies the pricing plan for your map resource. There's three pricing plan + // options: + // + // * RequestBasedUsage — Selects the "Request-Based Usage" pricing plan. + // + // * MobileAssetTracking — Selects the "Mobile Asset Tracking" pricing + // plan. + // + // * MobileAssetManagement — Selects the "Mobile Asset Management" pricing + // plan. + // + // For additional details and restrictions on each pricing plan option, see + // the Amazon Location Service pricing page (https://aws.amazon.com/location/pricing/). + // + // PricingPlan is a required field + PricingPlan *string `type:"string" required:"true" enum:"PricingPlan"` +} + +// String returns the string representation +func (s CreateMapInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateMapInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateMapInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateMapInput"} + if s.Configuration == nil { + invalidParams.Add(request.NewErrParamRequired("Configuration")) + } + if s.MapName == nil { + invalidParams.Add(request.NewErrParamRequired("MapName")) + } + if s.MapName != nil && len(*s.MapName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("MapName", 1)) + } + if s.PricingPlan == nil { + invalidParams.Add(request.NewErrParamRequired("PricingPlan")) + } + if s.Configuration != nil { + if err := s.Configuration.Validate(); err != nil { + invalidParams.AddNested("Configuration", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetConfiguration sets the Configuration field's value. +func (s *CreateMapInput) SetConfiguration(v *MapConfiguration) *CreateMapInput { + s.Configuration = v + return s +} + +// SetDescription sets the Description field's value. +func (s *CreateMapInput) SetDescription(v string) *CreateMapInput { + s.Description = &v + return s +} + +// SetMapName sets the MapName field's value. +func (s *CreateMapInput) SetMapName(v string) *CreateMapInput { + s.MapName = &v + return s +} + +// SetPricingPlan sets the PricingPlan field's value. +func (s *CreateMapInput) SetPricingPlan(v string) *CreateMapInput { + s.PricingPlan = &v + return s +} + +type CreateMapOutput struct { + _ struct{} `type:"structure"` + + // The timestamp for when the map resource was created in ISO 8601 (https://www.iso.org/iso-8601-date-and-time-format.html) + // format: YYYY-MM-DDThh:mm:ss.sssZ. + // + // CreateTime is a required field + CreateTime *time.Time `type:"timestamp" timestampFormat:"iso8601" required:"true"` + + // The Amazon Resource Name (ARN) for the map resource. Used when you need to + // specify a resource across all AWS. + // + // * Format example: arn:partition:service:region:account-id:resource-type:resource-id + // + // MapArn is a required field + MapArn *string `type:"string" required:"true"` + + // The name of the map resource. + // + // MapName is a required field + MapName *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s CreateMapOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateMapOutput) GoString() string { + return s.String() +} + +// SetCreateTime sets the CreateTime field's value. +func (s *CreateMapOutput) SetCreateTime(v time.Time) *CreateMapOutput { + s.CreateTime = &v + return s +} + +// SetMapArn sets the MapArn field's value. +func (s *CreateMapOutput) SetMapArn(v string) *CreateMapOutput { + s.MapArn = &v + return s +} + +// SetMapName sets the MapName field's value. +func (s *CreateMapOutput) SetMapName(v string) *CreateMapOutput { + s.MapName = &v + return s +} + +type CreatePlaceIndexInput struct { + _ struct{} `type:"structure"` + + // Specifies the data provider of geospatial data. + // + // DataSource is a required field + DataSource *string `type:"string" required:"true"` + + // Specifies the data storage option for requesting Places. + DataSourceConfiguration *DataSourceConfiguration `type:"structure"` + + // The optional description for the Place index resource. + Description *string `type:"string"` + + // The name of the Place index resource. + // + // Requirements: + // + // * Contain only alphanumeric characters (A-Z, a-z, 0-9) , hyphens (-) and + // underscores (_) ). + // + // * Must be a unique Place index resource name. + // + // * No spaces allowed. For example, ExamplePlaceIndex. + // + // IndexName is a required field + IndexName *string `min:"1" type:"string" required:"true"` + + // Specifies the pricing plan for your Place index resource. There's three pricing + // plan options: + // + // * RequestBasedUsage — Selects the "Request-Based Usage" pricing plan. + // + // * MobileAssetTracking — Selects the "Mobile Asset Tracking" pricing + // plan. + // + // * MobileAssetManagement — Selects the "Mobile Asset Management" pricing + // plan. + // + // For additional details and restrictions on each pricing plan option, see + // the Amazon Location Service pricing page (https://aws.amazon.com/location/pricing/). + // + // PricingPlan is a required field + PricingPlan *string `type:"string" required:"true" enum:"PricingPlan"` +} + +// String returns the string representation +func (s CreatePlaceIndexInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreatePlaceIndexInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreatePlaceIndexInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreatePlaceIndexInput"} + if s.DataSource == nil { + invalidParams.Add(request.NewErrParamRequired("DataSource")) + } + if s.IndexName == nil { + invalidParams.Add(request.NewErrParamRequired("IndexName")) + } + if s.IndexName != nil && len(*s.IndexName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("IndexName", 1)) + } + if s.PricingPlan == nil { + invalidParams.Add(request.NewErrParamRequired("PricingPlan")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDataSource sets the DataSource field's value. +func (s *CreatePlaceIndexInput) SetDataSource(v string) *CreatePlaceIndexInput { + s.DataSource = &v + return s +} + +// SetDataSourceConfiguration sets the DataSourceConfiguration field's value. +func (s *CreatePlaceIndexInput) SetDataSourceConfiguration(v *DataSourceConfiguration) *CreatePlaceIndexInput { + s.DataSourceConfiguration = v + return s +} + +// SetDescription sets the Description field's value. +func (s *CreatePlaceIndexInput) SetDescription(v string) *CreatePlaceIndexInput { + s.Description = &v + return s +} + +// SetIndexName sets the IndexName field's value. +func (s *CreatePlaceIndexInput) SetIndexName(v string) *CreatePlaceIndexInput { + s.IndexName = &v + return s +} + +// SetPricingPlan sets the PricingPlan field's value. +func (s *CreatePlaceIndexInput) SetPricingPlan(v string) *CreatePlaceIndexInput { + s.PricingPlan = &v + return s +} + +type CreatePlaceIndexOutput struct { + _ struct{} `type:"structure"` + + // The timestamp for when the Place index resource was created in ISO 8601 (https://www.iso.org/iso-8601-date-and-time-format.html) + // format: YYYY-MM-DDThh:mm:ss.sssZ. + // + // CreateTime is a required field + CreateTime *time.Time `type:"timestamp" timestampFormat:"iso8601" required:"true"` + + // The Amazon Resource Name (ARN) for the Place index resource. Used when you + // need to specify a resource across all AWS. + // + // IndexArn is a required field + IndexArn *string `type:"string" required:"true"` + + // The name for the Place index resource. + // + // IndexName is a required field + IndexName *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s CreatePlaceIndexOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreatePlaceIndexOutput) GoString() string { + return s.String() +} + +// SetCreateTime sets the CreateTime field's value. +func (s *CreatePlaceIndexOutput) SetCreateTime(v time.Time) *CreatePlaceIndexOutput { + s.CreateTime = &v + return s +} + +// SetIndexArn sets the IndexArn field's value. +func (s *CreatePlaceIndexOutput) SetIndexArn(v string) *CreatePlaceIndexOutput { + s.IndexArn = &v + return s +} + +// SetIndexName sets the IndexName field's value. +func (s *CreatePlaceIndexOutput) SetIndexName(v string) *CreatePlaceIndexOutput { + s.IndexName = &v + return s +} + +type CreateTrackerInput struct { + _ struct{} `type:"structure"` + + // An optional description for the tracker resource. + Description *string `type:"string"` + + // Specifies the pricing plan for your tracker resource. There's three pricing + // plan options: + // + // * RequestBasedUsage — Selects the "Request-Based Usage" pricing plan. + // + // * MobileAssetTracking — Selects the "Mobile Asset Tracking" pricing + // plan. + // + // * MobileAssetManagement — Selects the "Mobile Asset Management" pricing + // plan. + // + // For additional details and restrictions on each pricing plan option, see + // the Amazon Location Service pricing page (https://aws.amazon.com/location/pricing/). + // + // PricingPlan is a required field + PricingPlan *string `type:"string" required:"true" enum:"PricingPlan"` + + // The name for the tracker resource. + // + // Requirements: + // + // * Contain only alphanumeric characters (A-Z, a-z, 0-9) , hyphens (-) and + // underscores (_). + // + // * Must be a unique tracker resource name. + // + // * No spaces allowed. For example, ExampleTracker. + // + // TrackerName is a required field + TrackerName *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s CreateTrackerInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateTrackerInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateTrackerInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateTrackerInput"} + if s.PricingPlan == nil { + invalidParams.Add(request.NewErrParamRequired("PricingPlan")) + } + if s.TrackerName == nil { + invalidParams.Add(request.NewErrParamRequired("TrackerName")) + } + if s.TrackerName != nil && len(*s.TrackerName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("TrackerName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDescription sets the Description field's value. +func (s *CreateTrackerInput) SetDescription(v string) *CreateTrackerInput { + s.Description = &v + return s +} + +// SetPricingPlan sets the PricingPlan field's value. +func (s *CreateTrackerInput) SetPricingPlan(v string) *CreateTrackerInput { + s.PricingPlan = &v + return s +} + +// SetTrackerName sets the TrackerName field's value. +func (s *CreateTrackerInput) SetTrackerName(v string) *CreateTrackerInput { + s.TrackerName = &v + return s +} + +type CreateTrackerOutput struct { + _ struct{} `type:"structure"` + + // The timestamp for when the tracker resource was created in ISO 8601 (https://www.iso.org/iso-8601-date-and-time-format.html) + // format: YYYY-MM-DDThh:mm:ss.sssZ. + // + // CreateTime is a required field + CreateTime *time.Time `type:"timestamp" timestampFormat:"iso8601" required:"true"` + + // The Amazon Resource Name (ARN) for the tracker resource. Used when you need + // to specify a resource across all AWS. + // + // TrackerArn is a required field + TrackerArn *string `type:"string" required:"true"` + + // The name of the tracker resource. + // + // TrackerName is a required field + TrackerName *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s CreateTrackerOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateTrackerOutput) GoString() string { + return s.String() +} + +// SetCreateTime sets the CreateTime field's value. +func (s *CreateTrackerOutput) SetCreateTime(v time.Time) *CreateTrackerOutput { + s.CreateTime = &v + return s +} + +// SetTrackerArn sets the TrackerArn field's value. +func (s *CreateTrackerOutput) SetTrackerArn(v string) *CreateTrackerOutput { + s.TrackerArn = &v + return s +} + +// SetTrackerName sets the TrackerName field's value. +func (s *CreateTrackerOutput) SetTrackerName(v string) *CreateTrackerOutput { + s.TrackerName = &v + return s +} + +// Specifies the data storage option chosen for requesting Places. +// +// By using Places, you agree that AWS may transmit your API queries to your +// selected third party provider for processing, which may be outside the AWS +// region you are currently using. +// +// Also, when using HERE as your data provider, you may not (a) use HERE Places +// for Asset Management, or (b) select the Storage option for the IntendedUse +// parameter when requesting Places in Japan. For more information, see the +// AWS Service Terms (https://aws.amazon.com/service-terms/) for Amazon Location +// Service. +type DataSourceConfiguration struct { + _ struct{} `type:"structure"` + + // Specifies how the results of an operation will be stored by the caller. + // + // Valid values include: + // + // * SingleUse specifies that the results won't be stored. + // + // * Storage specifies that the result can be cached or stored in a database. + // + // Default value: SingleUse + IntendedUse *string `type:"string" enum:"IntendedUse"` +} + +// String returns the string representation +func (s DataSourceConfiguration) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DataSourceConfiguration) GoString() string { + return s.String() +} + +// SetIntendedUse sets the IntendedUse field's value. +func (s *DataSourceConfiguration) SetIntendedUse(v string) *DataSourceConfiguration { + s.IntendedUse = &v + return s +} + +type DeleteGeofenceCollectionInput struct { + _ struct{} `type:"structure"` + + // The name of the geofence collection to be deleted. + // + // CollectionName is a required field + CollectionName *string `location:"uri" locationName:"CollectionName" min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteGeofenceCollectionInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteGeofenceCollectionInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteGeofenceCollectionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteGeofenceCollectionInput"} + if s.CollectionName == nil { + invalidParams.Add(request.NewErrParamRequired("CollectionName")) + } + if s.CollectionName != nil && len(*s.CollectionName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("CollectionName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetCollectionName sets the CollectionName field's value. +func (s *DeleteGeofenceCollectionInput) SetCollectionName(v string) *DeleteGeofenceCollectionInput { + s.CollectionName = &v + return s +} + +type DeleteGeofenceCollectionOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DeleteGeofenceCollectionOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteGeofenceCollectionOutput) GoString() string { + return s.String() +} + +type DeleteMapInput struct { + _ struct{} `type:"structure"` + + // The name of the map resource to be deleted. + // + // MapName is a required field + MapName *string `location:"uri" locationName:"MapName" min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteMapInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteMapInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteMapInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteMapInput"} + if s.MapName == nil { + invalidParams.Add(request.NewErrParamRequired("MapName")) + } + if s.MapName != nil && len(*s.MapName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("MapName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetMapName sets the MapName field's value. +func (s *DeleteMapInput) SetMapName(v string) *DeleteMapInput { + s.MapName = &v + return s +} + +type DeleteMapOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DeleteMapOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteMapOutput) GoString() string { + return s.String() +} + +type DeletePlaceIndexInput struct { + _ struct{} `type:"structure"` + + // The name of the Place index resource to be deleted. + // + // IndexName is a required field + IndexName *string `location:"uri" locationName:"IndexName" min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s DeletePlaceIndexInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeletePlaceIndexInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeletePlaceIndexInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeletePlaceIndexInput"} + if s.IndexName == nil { + invalidParams.Add(request.NewErrParamRequired("IndexName")) + } + if s.IndexName != nil && len(*s.IndexName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("IndexName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetIndexName sets the IndexName field's value. +func (s *DeletePlaceIndexInput) SetIndexName(v string) *DeletePlaceIndexInput { + s.IndexName = &v + return s +} + +type DeletePlaceIndexOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DeletePlaceIndexOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeletePlaceIndexOutput) GoString() string { + return s.String() +} + +type DeleteTrackerInput struct { + _ struct{} `type:"structure"` + + // The name of the tracker resource to be deleted. + // + // TrackerName is a required field + TrackerName *string `location:"uri" locationName:"TrackerName" min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteTrackerInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteTrackerInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteTrackerInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteTrackerInput"} + if s.TrackerName == nil { + invalidParams.Add(request.NewErrParamRequired("TrackerName")) + } + if s.TrackerName != nil && len(*s.TrackerName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("TrackerName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetTrackerName sets the TrackerName field's value. +func (s *DeleteTrackerInput) SetTrackerName(v string) *DeleteTrackerInput { + s.TrackerName = &v + return s +} + +type DeleteTrackerOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DeleteTrackerOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteTrackerOutput) GoString() string { + return s.String() +} + +type DescribeGeofenceCollectionInput struct { + _ struct{} `type:"structure"` + + // The name of the geofence collection. + // + // CollectionName is a required field + CollectionName *string `location:"uri" locationName:"CollectionName" min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s DescribeGeofenceCollectionInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeGeofenceCollectionInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeGeofenceCollectionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeGeofenceCollectionInput"} + if s.CollectionName == nil { + invalidParams.Add(request.NewErrParamRequired("CollectionName")) + } + if s.CollectionName != nil && len(*s.CollectionName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("CollectionName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetCollectionName sets the CollectionName field's value. +func (s *DescribeGeofenceCollectionInput) SetCollectionName(v string) *DescribeGeofenceCollectionInput { + s.CollectionName = &v + return s +} + +type DescribeGeofenceCollectionOutput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) for the geofence collection resource. Used + // when you need to specify a resource across all AWS. + // + // CollectionArn is a required field + CollectionArn *string `type:"string" required:"true"` + + // The name of the geofence collection. + // + // CollectionName is a required field + CollectionName *string `min:"1" type:"string" required:"true"` + + // The timestamp for when the geofence resource was created in ISO 8601 (https://www.iso.org/iso-8601-date-and-time-format.html) + // format: YYYY-MM-DDThh:mm:ss.sssZ + // + // CreateTime is a required field + CreateTime *time.Time `type:"timestamp" timestampFormat:"iso8601" required:"true"` + + // The optional description for the geofence collection. + // + // Description is a required field + Description *string `type:"string" required:"true"` + + // The timestamp for when the geofence collection was last updated in ISO 8601 + // (https://www.iso.org/iso-8601-date-and-time-format.html) format: YYYY-MM-DDThh:mm:ss.sssZ + // + // UpdateTime is a required field + UpdateTime *time.Time `type:"timestamp" timestampFormat:"iso8601" required:"true"` +} + +// String returns the string representation +func (s DescribeGeofenceCollectionOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeGeofenceCollectionOutput) GoString() string { + return s.String() +} + +// SetCollectionArn sets the CollectionArn field's value. +func (s *DescribeGeofenceCollectionOutput) SetCollectionArn(v string) *DescribeGeofenceCollectionOutput { + s.CollectionArn = &v + return s +} + +// SetCollectionName sets the CollectionName field's value. +func (s *DescribeGeofenceCollectionOutput) SetCollectionName(v string) *DescribeGeofenceCollectionOutput { + s.CollectionName = &v + return s +} + +// SetCreateTime sets the CreateTime field's value. +func (s *DescribeGeofenceCollectionOutput) SetCreateTime(v time.Time) *DescribeGeofenceCollectionOutput { + s.CreateTime = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *DescribeGeofenceCollectionOutput) SetDescription(v string) *DescribeGeofenceCollectionOutput { + s.Description = &v + return s +} + +// SetUpdateTime sets the UpdateTime field's value. +func (s *DescribeGeofenceCollectionOutput) SetUpdateTime(v time.Time) *DescribeGeofenceCollectionOutput { + s.UpdateTime = &v + return s +} + +type DescribeMapInput struct { + _ struct{} `type:"structure"` + + // The name of the map resource. + // + // MapName is a required field + MapName *string `location:"uri" locationName:"MapName" min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s DescribeMapInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeMapInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeMapInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeMapInput"} + if s.MapName == nil { + invalidParams.Add(request.NewErrParamRequired("MapName")) + } + if s.MapName != nil && len(*s.MapName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("MapName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetMapName sets the MapName field's value. +func (s *DescribeMapInput) SetMapName(v string) *DescribeMapInput { + s.MapName = &v + return s +} + +type DescribeMapOutput struct { + _ struct{} `type:"structure"` + + // Specifies the map tile style selected from a partner data provider. + // + // Configuration is a required field + Configuration *MapConfiguration `type:"structure" required:"true"` + + // The timestamp for when the map resource was created in ISO 8601 (https://www.iso.org/iso-8601-date-and-time-format.html) + // format: YYYY-MM-DDThh:mm:ss.sssZ. + // + // CreateTime is a required field + CreateTime *time.Time `type:"timestamp" timestampFormat:"iso8601" required:"true"` + + // Specifies the data provider for the associated map tiles. + // + // DataSource is a required field + DataSource *string `type:"string" required:"true"` + + // The optional description for the map resource. + // + // Description is a required field + Description *string `type:"string" required:"true"` + + // The Amazon Resource Name (ARN) for the map resource. Used when you need to + // specify a resource across all AWS. + // + // MapArn is a required field + MapArn *string `type:"string" required:"true"` + + // The map style selected from an available provider. + // + // MapName is a required field + MapName *string `min:"1" type:"string" required:"true"` + + // The timestamp for when the map resource was last update in ISO 8601 (https://www.iso.org/iso-8601-date-and-time-format.html) + // format: YYYY-MM-DDThh:mm:ss.sssZ. + // + // UpdateTime is a required field + UpdateTime *time.Time `type:"timestamp" timestampFormat:"iso8601" required:"true"` +} + +// String returns the string representation +func (s DescribeMapOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeMapOutput) GoString() string { + return s.String() +} + +// SetConfiguration sets the Configuration field's value. +func (s *DescribeMapOutput) SetConfiguration(v *MapConfiguration) *DescribeMapOutput { + s.Configuration = v + return s +} + +// SetCreateTime sets the CreateTime field's value. +func (s *DescribeMapOutput) SetCreateTime(v time.Time) *DescribeMapOutput { + s.CreateTime = &v + return s +} + +// SetDataSource sets the DataSource field's value. +func (s *DescribeMapOutput) SetDataSource(v string) *DescribeMapOutput { + s.DataSource = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *DescribeMapOutput) SetDescription(v string) *DescribeMapOutput { + s.Description = &v + return s +} + +// SetMapArn sets the MapArn field's value. +func (s *DescribeMapOutput) SetMapArn(v string) *DescribeMapOutput { + s.MapArn = &v + return s +} + +// SetMapName sets the MapName field's value. +func (s *DescribeMapOutput) SetMapName(v string) *DescribeMapOutput { + s.MapName = &v + return s +} + +// SetUpdateTime sets the UpdateTime field's value. +func (s *DescribeMapOutput) SetUpdateTime(v time.Time) *DescribeMapOutput { + s.UpdateTime = &v + return s +} + +type DescribePlaceIndexInput struct { + _ struct{} `type:"structure"` + + // The name of the Place index resource. + // + // IndexName is a required field + IndexName *string `location:"uri" locationName:"IndexName" min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s DescribePlaceIndexInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribePlaceIndexInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribePlaceIndexInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribePlaceIndexInput"} + if s.IndexName == nil { + invalidParams.Add(request.NewErrParamRequired("IndexName")) + } + if s.IndexName != nil && len(*s.IndexName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("IndexName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetIndexName sets the IndexName field's value. +func (s *DescribePlaceIndexInput) SetIndexName(v string) *DescribePlaceIndexInput { + s.IndexName = &v + return s +} + +type DescribePlaceIndexOutput struct { + _ struct{} `type:"structure"` + + // The timestamp for when the Place index resource was created in ISO 8601 (https://www.iso.org/iso-8601-date-and-time-format.html) + // format: YYYY-MM-DDThh:mm:ss.sssZ. + // + // CreateTime is a required field + CreateTime *time.Time `type:"timestamp" timestampFormat:"iso8601" required:"true"` + + // The data provider of geospatial data. + // + // DataSource is a required field + DataSource *string `type:"string" required:"true"` + + // The specified data storage option for requesting Places. + // + // DataSourceConfiguration is a required field + DataSourceConfiguration *DataSourceConfiguration `type:"structure" required:"true"` + + // The optional description for the Place index resource. + // + // Description is a required field + Description *string `type:"string" required:"true"` + + // The Amazon Resource Name (ARN) for the Place index resource. Used when you + // need to specify a resource across all AWS. + // + // IndexArn is a required field + IndexArn *string `type:"string" required:"true"` + + // The name of the Place index resource being described. + // + // IndexName is a required field + IndexName *string `min:"1" type:"string" required:"true"` + + // The timestamp for when the Place index resource was last updated in ISO 8601 + // (https://www.iso.org/iso-8601-date-and-time-format.html) format: YYYY-MM-DDThh:mm:ss.sssZ. + // + // UpdateTime is a required field + UpdateTime *time.Time `type:"timestamp" timestampFormat:"iso8601" required:"true"` +} + +// String returns the string representation +func (s DescribePlaceIndexOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribePlaceIndexOutput) GoString() string { + return s.String() +} + +// SetCreateTime sets the CreateTime field's value. +func (s *DescribePlaceIndexOutput) SetCreateTime(v time.Time) *DescribePlaceIndexOutput { + s.CreateTime = &v + return s +} + +// SetDataSource sets the DataSource field's value. +func (s *DescribePlaceIndexOutput) SetDataSource(v string) *DescribePlaceIndexOutput { + s.DataSource = &v + return s +} + +// SetDataSourceConfiguration sets the DataSourceConfiguration field's value. +func (s *DescribePlaceIndexOutput) SetDataSourceConfiguration(v *DataSourceConfiguration) *DescribePlaceIndexOutput { + s.DataSourceConfiguration = v + return s +} + +// SetDescription sets the Description field's value. +func (s *DescribePlaceIndexOutput) SetDescription(v string) *DescribePlaceIndexOutput { + s.Description = &v + return s +} + +// SetIndexArn sets the IndexArn field's value. +func (s *DescribePlaceIndexOutput) SetIndexArn(v string) *DescribePlaceIndexOutput { + s.IndexArn = &v + return s +} + +// SetIndexName sets the IndexName field's value. +func (s *DescribePlaceIndexOutput) SetIndexName(v string) *DescribePlaceIndexOutput { + s.IndexName = &v + return s +} + +// SetUpdateTime sets the UpdateTime field's value. +func (s *DescribePlaceIndexOutput) SetUpdateTime(v time.Time) *DescribePlaceIndexOutput { + s.UpdateTime = &v + return s +} + +type DescribeTrackerInput struct { + _ struct{} `type:"structure"` + + // The name of the tracker resource. + // + // TrackerName is a required field + TrackerName *string `location:"uri" locationName:"TrackerName" min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s DescribeTrackerInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeTrackerInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeTrackerInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeTrackerInput"} + if s.TrackerName == nil { + invalidParams.Add(request.NewErrParamRequired("TrackerName")) + } + if s.TrackerName != nil && len(*s.TrackerName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("TrackerName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetTrackerName sets the TrackerName field's value. +func (s *DescribeTrackerInput) SetTrackerName(v string) *DescribeTrackerInput { + s.TrackerName = &v + return s +} + +type DescribeTrackerOutput struct { + _ struct{} `type:"structure"` + + // The timestamp for when the tracker resource was created in ISO 8601 (https://www.iso.org/iso-8601-date-and-time-format.html) + // format: YYYY-MM-DDThh:mm:ss.sssZ. + // + // CreateTime is a required field + CreateTime *time.Time `type:"timestamp" timestampFormat:"iso8601" required:"true"` + + // The optional description for the tracker resource. + // + // Description is a required field + Description *string `type:"string" required:"true"` + + // The Amazon Resource Name (ARN) for the tracker resource. Used when you need + // to specify a resource across all AWS. + // + // TrackerArn is a required field + TrackerArn *string `type:"string" required:"true"` + + // The name of the tracker resource. + // + // TrackerName is a required field + TrackerName *string `min:"1" type:"string" required:"true"` + + // The timestamp for when the tracker resource was last updated in ISO 8601 + // (https://www.iso.org/iso-8601-date-and-time-format.html) format: YYYY-MM-DDThh:mm:ss.sssZ. + // + // UpdateTime is a required field + UpdateTime *time.Time `type:"timestamp" timestampFormat:"iso8601" required:"true"` +} + +// String returns the string representation +func (s DescribeTrackerOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeTrackerOutput) GoString() string { + return s.String() +} + +// SetCreateTime sets the CreateTime field's value. +func (s *DescribeTrackerOutput) SetCreateTime(v time.Time) *DescribeTrackerOutput { + s.CreateTime = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *DescribeTrackerOutput) SetDescription(v string) *DescribeTrackerOutput { + s.Description = &v + return s +} + +// SetTrackerArn sets the TrackerArn field's value. +func (s *DescribeTrackerOutput) SetTrackerArn(v string) *DescribeTrackerOutput { + s.TrackerArn = &v + return s +} + +// SetTrackerName sets the TrackerName field's value. +func (s *DescribeTrackerOutput) SetTrackerName(v string) *DescribeTrackerOutput { + s.TrackerName = &v + return s +} + +// SetUpdateTime sets the UpdateTime field's value. +func (s *DescribeTrackerOutput) SetUpdateTime(v time.Time) *DescribeTrackerOutput { + s.UpdateTime = &v + return s +} + +// Contains the device position details. +type DevicePosition struct { + _ struct{} `type:"structure"` + + // The device whose position you retrieved. + DeviceId *string `min:"1" type:"string"` + + // The last known device position. + // + // Position is a required field + Position []*float64 `min:"2" type:"list" required:"true" sensitive:"true"` + + // The timestamp for when the tracker resource recieved the position in ISO + // 8601 (https://www.iso.org/iso-8601-date-and-time-format.html) format: YYYY-MM-DDThh:mm:ss.sssZ. + // + // ReceivedTime is a required field + ReceivedTime *time.Time `type:"timestamp" timestampFormat:"iso8601" required:"true"` + + // The timestamp for when the position was detected and sampled in ISO 8601 + // (https://www.iso.org/iso-8601-date-and-time-format.html) format: YYYY-MM-DDThh:mm:ss.sssZ. + // + // SampleTime is a required field + SampleTime *time.Time `type:"timestamp" timestampFormat:"iso8601" required:"true"` +} + +// String returns the string representation +func (s DevicePosition) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DevicePosition) GoString() string { + return s.String() +} + +// SetDeviceId sets the DeviceId field's value. +func (s *DevicePosition) SetDeviceId(v string) *DevicePosition { + s.DeviceId = &v + return s +} + +// SetPosition sets the Position field's value. +func (s *DevicePosition) SetPosition(v []*float64) *DevicePosition { + s.Position = v + return s +} + +// SetReceivedTime sets the ReceivedTime field's value. +func (s *DevicePosition) SetReceivedTime(v time.Time) *DevicePosition { + s.ReceivedTime = &v + return s +} + +// SetSampleTime sets the SampleTime field's value. +func (s *DevicePosition) SetSampleTime(v time.Time) *DevicePosition { + s.SampleTime = &v + return s +} + +// Contains the position update details for a device. +type DevicePositionUpdate struct { + _ struct{} `type:"structure"` + + // The device associated to the position update. + // + // DeviceId is a required field + DeviceId *string `min:"1" type:"string" required:"true"` + + // The latest device position defined in WGS 84 (https://earth-info.nga.mil/GandG/wgs84/index.html) + // format: [Xlongitude, Ylatitude]. + // + // Position is a required field + Position []*float64 `min:"2" type:"list" required:"true" sensitive:"true"` + + // The timestamp for when the position update was received in ISO 8601 (https://www.iso.org/iso-8601-date-and-time-format.html) + // format: YYYY-MM-DDThh:mm:ss.sssZ + // + // SampleTime is a required field + SampleTime *time.Time `type:"timestamp" timestampFormat:"iso8601" required:"true"` +} + +// String returns the string representation +func (s DevicePositionUpdate) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DevicePositionUpdate) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DevicePositionUpdate) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DevicePositionUpdate"} + if s.DeviceId == nil { + invalidParams.Add(request.NewErrParamRequired("DeviceId")) + } + if s.DeviceId != nil && len(*s.DeviceId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DeviceId", 1)) + } + if s.Position == nil { + invalidParams.Add(request.NewErrParamRequired("Position")) + } + if s.Position != nil && len(s.Position) < 2 { + invalidParams.Add(request.NewErrParamMinLen("Position", 2)) + } + if s.SampleTime == nil { + invalidParams.Add(request.NewErrParamRequired("SampleTime")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDeviceId sets the DeviceId field's value. +func (s *DevicePositionUpdate) SetDeviceId(v string) *DevicePositionUpdate { + s.DeviceId = &v + return s +} + +// SetPosition sets the Position field's value. +func (s *DevicePositionUpdate) SetPosition(v []*float64) *DevicePositionUpdate { + s.Position = v + return s +} + +// SetSampleTime sets the SampleTime field's value. +func (s *DevicePositionUpdate) SetSampleTime(v time.Time) *DevicePositionUpdate { + s.SampleTime = &v + return s +} + +type DisassociateTrackerConsumerInput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) for the geofence collection to be disassociated + // from the tracker resource. Used when you need to specify a resource across + // all AWS. + // + // * Format example: arn:partition:service:region:account-id:resource-type:resource-id + // + // ConsumerArn is a required field + ConsumerArn *string `location:"uri" locationName:"ConsumerArn" type:"string" required:"true"` + + // The name of the tracker resource to be dissociated from the consumer. + // + // TrackerName is a required field + TrackerName *string `location:"uri" locationName:"TrackerName" min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s DisassociateTrackerConsumerInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DisassociateTrackerConsumerInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DisassociateTrackerConsumerInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DisassociateTrackerConsumerInput"} + if s.ConsumerArn == nil { + invalidParams.Add(request.NewErrParamRequired("ConsumerArn")) + } + if s.ConsumerArn != nil && len(*s.ConsumerArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ConsumerArn", 1)) + } + if s.TrackerName == nil { + invalidParams.Add(request.NewErrParamRequired("TrackerName")) + } + if s.TrackerName != nil && len(*s.TrackerName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("TrackerName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetConsumerArn sets the ConsumerArn field's value. +func (s *DisassociateTrackerConsumerInput) SetConsumerArn(v string) *DisassociateTrackerConsumerInput { + s.ConsumerArn = &v + return s +} + +// SetTrackerName sets the TrackerName field's value. +func (s *DisassociateTrackerConsumerInput) SetTrackerName(v string) *DisassociateTrackerConsumerInput { + s.TrackerName = &v + return s +} + +type DisassociateTrackerConsumerOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DisassociateTrackerConsumerOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DisassociateTrackerConsumerOutput) GoString() string { + return s.String() +} + +// Contains the geofence geometry details. +// +// Limitation — Amazon Location does not currently support polygons with holes, +// multipolygons, polygons that are wound clockwise, or that cross the antimeridian. +type GeofenceGeometry struct { + _ struct{} `type:"structure"` + + // An array of 1 or more linear rings. A linear ring is an array of 4 or more + // vertices, where the first and last vertex are the same to form a closed boundary. + // Each vertex is a 2-dimensional point of the form: [longitude, latitude]. + // + // The first linear ring is an outer ring, describing the polygon's boundary. + // Subsequent linear rings may be inner or outer rings to describe holes and + // islands. Outer rings must list their vertices in counter-clockwise order + // around the ring's center, where the left side is the polygon's exterior. + // Inner rings must list their vertices in clockwise order, where the left side + // is the polygon's interior. + Polygon [][][]*float64 `min:"1" type:"list"` +} + +// String returns the string representation +func (s GeofenceGeometry) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GeofenceGeometry) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GeofenceGeometry) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GeofenceGeometry"} + if s.Polygon != nil && len(s.Polygon) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Polygon", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetPolygon sets the Polygon field's value. +func (s *GeofenceGeometry) SetPolygon(v [][][]*float64) *GeofenceGeometry { + s.Polygon = v + return s +} + +type GetDevicePositionHistoryInput struct { + _ struct{} `type:"structure"` + + // The device whose position history you want to retrieve. + // + // DeviceId is a required field + DeviceId *string `location:"uri" locationName:"DeviceId" min:"1" type:"string" required:"true"` + + // Specify the end time for the position history in ISO 8601 (https://www.iso.org/iso-8601-date-and-time-format.html) + // format: YYYY-MM-DDThh:mm:ss.sssZ. + // + // * The given time for EndTimeExclusive must be after the time for StartTimeInclusive. + EndTimeExclusive *time.Time `type:"timestamp" timestampFormat:"iso8601"` + + // The pagination token specifying which page of results to return in the response. + // If no token is provided, the default page is the first page. + // + // Default value: null + NextToken *string `min:"1" type:"string"` + + // Specify the start time for the position history in ISO 8601 (https://www.iso.org/iso-8601-date-and-time-format.html) + // format: YYYY-MM-DDThh:mm:ss.sssZ. + // + // * The given time for EndTimeExclusive must be after the time for StartTimeInclusive. + StartTimeInclusive *time.Time `type:"timestamp" timestampFormat:"iso8601"` + + // The tracker resource receiving the request for the device position history. + // + // TrackerName is a required field + TrackerName *string `location:"uri" locationName:"TrackerName" min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s GetDevicePositionHistoryInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetDevicePositionHistoryInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetDevicePositionHistoryInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetDevicePositionHistoryInput"} + if s.DeviceId == nil { + invalidParams.Add(request.NewErrParamRequired("DeviceId")) + } + if s.DeviceId != nil && len(*s.DeviceId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DeviceId", 1)) + } + if s.NextToken != nil && len(*s.NextToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) + } + if s.TrackerName == nil { + invalidParams.Add(request.NewErrParamRequired("TrackerName")) + } + if s.TrackerName != nil && len(*s.TrackerName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("TrackerName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDeviceId sets the DeviceId field's value. +func (s *GetDevicePositionHistoryInput) SetDeviceId(v string) *GetDevicePositionHistoryInput { + s.DeviceId = &v + return s +} + +// SetEndTimeExclusive sets the EndTimeExclusive field's value. +func (s *GetDevicePositionHistoryInput) SetEndTimeExclusive(v time.Time) *GetDevicePositionHistoryInput { + s.EndTimeExclusive = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *GetDevicePositionHistoryInput) SetNextToken(v string) *GetDevicePositionHistoryInput { + s.NextToken = &v + return s +} + +// SetStartTimeInclusive sets the StartTimeInclusive field's value. +func (s *GetDevicePositionHistoryInput) SetStartTimeInclusive(v time.Time) *GetDevicePositionHistoryInput { + s.StartTimeInclusive = &v + return s +} + +// SetTrackerName sets the TrackerName field's value. +func (s *GetDevicePositionHistoryInput) SetTrackerName(v string) *GetDevicePositionHistoryInput { + s.TrackerName = &v + return s +} + +type GetDevicePositionHistoryOutput struct { + _ struct{} `type:"structure"` + + // Contains the position history details for the requested device. + // + // DevicePositions is a required field + DevicePositions []*DevicePosition `type:"list" required:"true"` + + // A pagination token indicating there are additional pages available. You can + // use the token in a following request to fetch the next set of results. + NextToken *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s GetDevicePositionHistoryOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetDevicePositionHistoryOutput) GoString() string { + return s.String() +} + +// SetDevicePositions sets the DevicePositions field's value. +func (s *GetDevicePositionHistoryOutput) SetDevicePositions(v []*DevicePosition) *GetDevicePositionHistoryOutput { + s.DevicePositions = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *GetDevicePositionHistoryOutput) SetNextToken(v string) *GetDevicePositionHistoryOutput { + s.NextToken = &v + return s +} + +type GetDevicePositionInput struct { + _ struct{} `type:"structure"` + + // The device whose position you want to retreieve. + // + // DeviceId is a required field + DeviceId *string `location:"uri" locationName:"DeviceId" min:"1" type:"string" required:"true"` + + // The tracker resource receiving the position update. + // + // TrackerName is a required field + TrackerName *string `location:"uri" locationName:"TrackerName" min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s GetDevicePositionInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetDevicePositionInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetDevicePositionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetDevicePositionInput"} + if s.DeviceId == nil { + invalidParams.Add(request.NewErrParamRequired("DeviceId")) + } + if s.DeviceId != nil && len(*s.DeviceId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DeviceId", 1)) + } + if s.TrackerName == nil { + invalidParams.Add(request.NewErrParamRequired("TrackerName")) + } + if s.TrackerName != nil && len(*s.TrackerName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("TrackerName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDeviceId sets the DeviceId field's value. +func (s *GetDevicePositionInput) SetDeviceId(v string) *GetDevicePositionInput { + s.DeviceId = &v + return s +} + +// SetTrackerName sets the TrackerName field's value. +func (s *GetDevicePositionInput) SetTrackerName(v string) *GetDevicePositionInput { + s.TrackerName = &v + return s +} + +type GetDevicePositionOutput struct { + _ struct{} `type:"structure"` + + // The device whose position you retrieved. + DeviceId *string `min:"1" type:"string"` + + // The last known device position. + // + // Position is a required field + Position []*float64 `min:"2" type:"list" required:"true" sensitive:"true"` + + // The timestamp for when the tracker resource recieved the position in ISO + // 8601 (https://www.iso.org/iso-8601-date-and-time-format.html) format: YYYY-MM-DDThh:mm:ss.sssZ. + // + // ReceivedTime is a required field + ReceivedTime *time.Time `type:"timestamp" timestampFormat:"iso8601" required:"true"` + + // The timestamp for when the position was detected and sampled in ISO 8601 + // (https://www.iso.org/iso-8601-date-and-time-format.html) format: YYYY-MM-DDThh:mm:ss.sssZ. + // + // SampleTime is a required field + SampleTime *time.Time `type:"timestamp" timestampFormat:"iso8601" required:"true"` +} + +// String returns the string representation +func (s GetDevicePositionOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetDevicePositionOutput) GoString() string { + return s.String() +} + +// SetDeviceId sets the DeviceId field's value. +func (s *GetDevicePositionOutput) SetDeviceId(v string) *GetDevicePositionOutput { + s.DeviceId = &v + return s +} + +// SetPosition sets the Position field's value. +func (s *GetDevicePositionOutput) SetPosition(v []*float64) *GetDevicePositionOutput { + s.Position = v + return s +} + +// SetReceivedTime sets the ReceivedTime field's value. +func (s *GetDevicePositionOutput) SetReceivedTime(v time.Time) *GetDevicePositionOutput { + s.ReceivedTime = &v + return s +} + +// SetSampleTime sets the SampleTime field's value. +func (s *GetDevicePositionOutput) SetSampleTime(v time.Time) *GetDevicePositionOutput { + s.SampleTime = &v + return s +} + +type GetGeofenceInput struct { + _ struct{} `type:"structure"` + + // The geofence collection storing the target geofence. + // + // CollectionName is a required field + CollectionName *string `location:"uri" locationName:"CollectionName" min:"1" type:"string" required:"true"` + + // The geofence you're retrieving details for. + // + // GeofenceId is a required field + GeofenceId *string `location:"uri" locationName:"GeofenceId" min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s GetGeofenceInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetGeofenceInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetGeofenceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetGeofenceInput"} + if s.CollectionName == nil { + invalidParams.Add(request.NewErrParamRequired("CollectionName")) + } + if s.CollectionName != nil && len(*s.CollectionName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("CollectionName", 1)) + } + if s.GeofenceId == nil { + invalidParams.Add(request.NewErrParamRequired("GeofenceId")) + } + if s.GeofenceId != nil && len(*s.GeofenceId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("GeofenceId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetCollectionName sets the CollectionName field's value. +func (s *GetGeofenceInput) SetCollectionName(v string) *GetGeofenceInput { + s.CollectionName = &v + return s +} + +// SetGeofenceId sets the GeofenceId field's value. +func (s *GetGeofenceInput) SetGeofenceId(v string) *GetGeofenceInput { + s.GeofenceId = &v + return s +} + +type GetGeofenceOutput struct { + _ struct{} `type:"structure"` + + // The timestamp for when the geofence collection was created in ISO 8601 (https://www.iso.org/iso-8601-date-and-time-format.html) + // format: YYYY-MM-DDThh:mm:ss.sssZ + // + // CreateTime is a required field + CreateTime *time.Time `type:"timestamp" timestampFormat:"iso8601" required:"true"` + + // The geofence identifier. + // + // GeofenceId is a required field + GeofenceId *string `min:"1" type:"string" required:"true"` + + // Contains the geofence geometry details describing a polygon. + // + // Geometry is a required field + Geometry *GeofenceGeometry `type:"structure" required:"true"` + + // Identifies the state of the geofence. A geofence will hold one of the following + // states: + // + // * ACTIVE — The geofence has been indexed by the system. + // + // * PENDING — The geofence is being processed by the system. + // + // * FAILED — The geofence failed to be indexed by the system. + // + // * DELETED — The geofence has been deleted from the system index. + // + // * DELETING — The geofence is being deleted from the system index. + // + // Status is a required field + Status *string `type:"string" required:"true"` + + // The timestamp for when the geofence collection was last updated in ISO 8601 + // (https://www.iso.org/iso-8601-date-and-time-format.html) format: YYYY-MM-DDThh:mm:ss.sssZ + // + // UpdateTime is a required field + UpdateTime *time.Time `type:"timestamp" timestampFormat:"iso8601" required:"true"` +} + +// String returns the string representation +func (s GetGeofenceOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetGeofenceOutput) GoString() string { + return s.String() +} + +// SetCreateTime sets the CreateTime field's value. +func (s *GetGeofenceOutput) SetCreateTime(v time.Time) *GetGeofenceOutput { + s.CreateTime = &v + return s +} + +// SetGeofenceId sets the GeofenceId field's value. +func (s *GetGeofenceOutput) SetGeofenceId(v string) *GetGeofenceOutput { + s.GeofenceId = &v + return s +} + +// SetGeometry sets the Geometry field's value. +func (s *GetGeofenceOutput) SetGeometry(v *GeofenceGeometry) *GetGeofenceOutput { + s.Geometry = v + return s +} + +// SetStatus sets the Status field's value. +func (s *GetGeofenceOutput) SetStatus(v string) *GetGeofenceOutput { + s.Status = &v + return s +} + +// SetUpdateTime sets the UpdateTime field's value. +func (s *GetGeofenceOutput) SetUpdateTime(v time.Time) *GetGeofenceOutput { + s.UpdateTime = &v + return s +} + +type GetMapGlyphsInput struct { + _ struct{} `type:"structure"` + + // A comma-separated list of fonts to load glyphs from in order of preference.. + // For example, Noto Sans, Arial Unicode. + // + // FontStack is a required field + FontStack *string `location:"uri" locationName:"FontStack" type:"string" required:"true"` + + // A Unicode range of characters to download glyphs for. Each response will + // contain 256 characters. For example, 0-255 includes all characters from range + // U+0000 to 00FF. Must be aligned to multiples of 256. + // + // FontUnicodeRange is a required field + FontUnicodeRange *string `location:"uri" locationName:"FontUnicodeRange" type:"string" required:"true"` + + // The map resource associated with the glyph file. + // + // MapName is a required field + MapName *string `location:"uri" locationName:"MapName" min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s GetMapGlyphsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetMapGlyphsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetMapGlyphsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetMapGlyphsInput"} + if s.FontStack == nil { + invalidParams.Add(request.NewErrParamRequired("FontStack")) + } + if s.FontStack != nil && len(*s.FontStack) < 1 { + invalidParams.Add(request.NewErrParamMinLen("FontStack", 1)) + } + if s.FontUnicodeRange == nil { + invalidParams.Add(request.NewErrParamRequired("FontUnicodeRange")) + } + if s.FontUnicodeRange != nil && len(*s.FontUnicodeRange) < 1 { + invalidParams.Add(request.NewErrParamMinLen("FontUnicodeRange", 1)) + } + if s.MapName == nil { + invalidParams.Add(request.NewErrParamRequired("MapName")) + } + if s.MapName != nil && len(*s.MapName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("MapName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetFontStack sets the FontStack field's value. +func (s *GetMapGlyphsInput) SetFontStack(v string) *GetMapGlyphsInput { + s.FontStack = &v + return s +} + +// SetFontUnicodeRange sets the FontUnicodeRange field's value. +func (s *GetMapGlyphsInput) SetFontUnicodeRange(v string) *GetMapGlyphsInput { + s.FontUnicodeRange = &v + return s +} + +// SetMapName sets the MapName field's value. +func (s *GetMapGlyphsInput) SetMapName(v string) *GetMapGlyphsInput { + s.MapName = &v + return s +} + +type GetMapGlyphsOutput struct { + _ struct{} `type:"structure" payload:"Blob"` + + // The blob's content type. + Blob []byte `type:"blob"` + + // The map glyph content type. For example, application/octet-stream. + ContentType *string `location:"header" locationName:"Content-Type" type:"string"` +} + +// String returns the string representation +func (s GetMapGlyphsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetMapGlyphsOutput) GoString() string { + return s.String() +} + +// SetBlob sets the Blob field's value. +func (s *GetMapGlyphsOutput) SetBlob(v []byte) *GetMapGlyphsOutput { + s.Blob = v + return s +} + +// SetContentType sets the ContentType field's value. +func (s *GetMapGlyphsOutput) SetContentType(v string) *GetMapGlyphsOutput { + s.ContentType = &v + return s +} + +type GetMapSpritesInput struct { + _ struct{} `type:"structure"` + + // The name of the sprite file. Use the following file names for the sprite + // sheet: + // + // * sprites.png + // + // * sprites@2x.png for high pixel density displays + // + // For the JSON document contain image offsets. Use the following file names: + // + // * sprites.json + // + // * sprites@2x.json for high pixel density displays + // + // FileName is a required field + FileName *string `location:"uri" locationName:"FileName" type:"string" required:"true"` + + // The map resource associated with the sprite file. + // + // MapName is a required field + MapName *string `location:"uri" locationName:"MapName" min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s GetMapSpritesInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetMapSpritesInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetMapSpritesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetMapSpritesInput"} + if s.FileName == nil { + invalidParams.Add(request.NewErrParamRequired("FileName")) + } + if s.FileName != nil && len(*s.FileName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("FileName", 1)) + } + if s.MapName == nil { + invalidParams.Add(request.NewErrParamRequired("MapName")) + } + if s.MapName != nil && len(*s.MapName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("MapName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetFileName sets the FileName field's value. +func (s *GetMapSpritesInput) SetFileName(v string) *GetMapSpritesInput { + s.FileName = &v + return s +} + +// SetMapName sets the MapName field's value. +func (s *GetMapSpritesInput) SetMapName(v string) *GetMapSpritesInput { + s.MapName = &v + return s +} + +type GetMapSpritesOutput struct { + _ struct{} `type:"structure" payload:"Blob"` + + // Contains the body of the sprite sheet or JSON offset file. + Blob []byte `type:"blob"` + + // The content type of the sprite sheet and offsets. For example, the sprite + // sheet content type is image/png, and the sprite offset JSON document is application/json. + ContentType *string `location:"header" locationName:"Content-Type" type:"string"` +} + +// String returns the string representation +func (s GetMapSpritesOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetMapSpritesOutput) GoString() string { + return s.String() +} + +// SetBlob sets the Blob field's value. +func (s *GetMapSpritesOutput) SetBlob(v []byte) *GetMapSpritesOutput { + s.Blob = v + return s +} + +// SetContentType sets the ContentType field's value. +func (s *GetMapSpritesOutput) SetContentType(v string) *GetMapSpritesOutput { + s.ContentType = &v + return s +} + +type GetMapStyleDescriptorInput struct { + _ struct{} `type:"structure"` + + // The map resource to retrieve the style descriptor from. + // + // MapName is a required field + MapName *string `location:"uri" locationName:"MapName" min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s GetMapStyleDescriptorInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetMapStyleDescriptorInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetMapStyleDescriptorInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetMapStyleDescriptorInput"} + if s.MapName == nil { + invalidParams.Add(request.NewErrParamRequired("MapName")) + } + if s.MapName != nil && len(*s.MapName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("MapName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetMapName sets the MapName field's value. +func (s *GetMapStyleDescriptorInput) SetMapName(v string) *GetMapStyleDescriptorInput { + s.MapName = &v + return s +} + +type GetMapStyleDescriptorOutput struct { + _ struct{} `type:"structure" payload:"Blob"` + + // Contains the body of the style descriptor. + Blob []byte `type:"blob"` + + // The style descriptor's content type. For example, application/json. + ContentType *string `location:"header" locationName:"Content-Type" type:"string"` +} + +// String returns the string representation +func (s GetMapStyleDescriptorOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetMapStyleDescriptorOutput) GoString() string { + return s.String() +} + +// SetBlob sets the Blob field's value. +func (s *GetMapStyleDescriptorOutput) SetBlob(v []byte) *GetMapStyleDescriptorOutput { + s.Blob = v + return s +} + +// SetContentType sets the ContentType field's value. +func (s *GetMapStyleDescriptorOutput) SetContentType(v string) *GetMapStyleDescriptorOutput { + s.ContentType = &v + return s +} + +type GetMapTileInput struct { + _ struct{} `type:"structure"` + + // The map resource to retrieve the map tiles from. + // + // MapName is a required field + MapName *string `location:"uri" locationName:"MapName" min:"1" type:"string" required:"true"` + + // The X axis value for the map tile. + // + // X is a required field + X *string `location:"uri" locationName:"X" type:"string" required:"true"` + + // The Y axis value for the map tile. + // + // Y is a required field + Y *string `location:"uri" locationName:"Y" type:"string" required:"true"` + + // The zoom value for the map tile. + // + // Z is a required field + Z *string `location:"uri" locationName:"Z" type:"string" required:"true"` +} + +// String returns the string representation +func (s GetMapTileInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetMapTileInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetMapTileInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetMapTileInput"} + if s.MapName == nil { + invalidParams.Add(request.NewErrParamRequired("MapName")) + } + if s.MapName != nil && len(*s.MapName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("MapName", 1)) + } + if s.X == nil { + invalidParams.Add(request.NewErrParamRequired("X")) + } + if s.X != nil && len(*s.X) < 1 { + invalidParams.Add(request.NewErrParamMinLen("X", 1)) + } + if s.Y == nil { + invalidParams.Add(request.NewErrParamRequired("Y")) + } + if s.Y != nil && len(*s.Y) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Y", 1)) + } + if s.Z == nil { + invalidParams.Add(request.NewErrParamRequired("Z")) + } + if s.Z != nil && len(*s.Z) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Z", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetMapName sets the MapName field's value. +func (s *GetMapTileInput) SetMapName(v string) *GetMapTileInput { + s.MapName = &v + return s +} + +// SetX sets the X field's value. +func (s *GetMapTileInput) SetX(v string) *GetMapTileInput { + s.X = &v + return s +} + +// SetY sets the Y field's value. +func (s *GetMapTileInput) SetY(v string) *GetMapTileInput { + s.Y = &v + return s +} + +// SetZ sets the Z field's value. +func (s *GetMapTileInput) SetZ(v string) *GetMapTileInput { + s.Z = &v + return s +} + +type GetMapTileOutput struct { + _ struct{} `type:"structure" payload:"Blob"` + + // Contains Mapbox Vector Tile (MVT) data. + Blob []byte `type:"blob"` + + // The map tile's content type. For example, application/vnd.mapbox-vector-tile. + ContentType *string `location:"header" locationName:"Content-Type" type:"string"` +} + +// String returns the string representation +func (s GetMapTileOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetMapTileOutput) GoString() string { + return s.String() +} + +// SetBlob sets the Blob field's value. +func (s *GetMapTileOutput) SetBlob(v []byte) *GetMapTileOutput { + s.Blob = v + return s +} + +// SetContentType sets the ContentType field's value. +func (s *GetMapTileOutput) SetContentType(v string) *GetMapTileOutput { + s.ContentType = &v + return s +} + +// The request has failed to process because of an unknown server error, exception, +// or failure. +type InternalServerException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InternalServerException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InternalServerException) GoString() string { + return s.String() +} + +func newErrorInternalServerException(v protocol.ResponseMetadata) error { + return &InternalServerException{ + RespMetadata: v, + } +} + +// Code returns the exception type name. +func (s *InternalServerException) Code() string { + return "InternalServerException" +} + +// Message returns the exception's message. +func (s *InternalServerException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *InternalServerException) OrigErr() error { + return nil +} + +func (s *InternalServerException) 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 *InternalServerException) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *InternalServerException) RequestID() string { + return s.RespMetadata.RequestID +} + +type ListGeofenceCollectionsInput struct { + _ struct{} `type:"structure"` + + // An optional limit for the number of resources returned in a single call. + // + // Default value: 100 + MaxResults *int64 `min:"1" type:"integer"` + + // The pagination token specifying which page of results to return in the response. + // If no token is provided, the default page is the first page. + // + // Default value: null + NextToken *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s ListGeofenceCollectionsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListGeofenceCollectionsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListGeofenceCollectionsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListGeofenceCollectionsInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + if s.NextToken != nil && len(*s.NextToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListGeofenceCollectionsInput) SetMaxResults(v int64) *ListGeofenceCollectionsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListGeofenceCollectionsInput) SetNextToken(v string) *ListGeofenceCollectionsInput { + s.NextToken = &v + return s +} + +type ListGeofenceCollectionsOutput struct { + _ struct{} `type:"structure"` + + // Lists the geofence collections that exist in your AWS account. + // + // Entries is a required field + Entries []*ListGeofenceCollectionsResponseEntry `type:"list" required:"true"` + + // A pagination token indicating there are additional pages available. You can + // use the token in a following request to fetch the next set of results. + NextToken *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s ListGeofenceCollectionsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListGeofenceCollectionsOutput) GoString() string { + return s.String() +} + +// SetEntries sets the Entries field's value. +func (s *ListGeofenceCollectionsOutput) SetEntries(v []*ListGeofenceCollectionsResponseEntry) *ListGeofenceCollectionsOutput { + s.Entries = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListGeofenceCollectionsOutput) SetNextToken(v string) *ListGeofenceCollectionsOutput { + s.NextToken = &v + return s +} + +// Contains the geofence collection details. +type ListGeofenceCollectionsResponseEntry struct { + _ struct{} `type:"structure"` + + // The name of the geofence collection. + // + // CollectionName is a required field + CollectionName *string `min:"1" type:"string" required:"true"` + + // The timestamp for when the geofence collection was created in ISO 8601 (https://www.iso.org/iso-8601-date-and-time-format.html) + // format: YYYY-MM-DDThh:mm:ss.sssZ + // + // CreateTime is a required field + CreateTime *time.Time `type:"timestamp" timestampFormat:"iso8601" required:"true"` + + // The description for the geofence collection + // + // Description is a required field + Description *string `type:"string" required:"true"` + + // Specifies a timestamp for when the resource was last updated in ISO 8601 + // (https://www.iso.org/iso-8601-date-and-time-format.html) format: YYYY-MM-DDThh:mm:ss.sssZ + // + // UpdateTime is a required field + UpdateTime *time.Time `type:"timestamp" timestampFormat:"iso8601" required:"true"` +} + +// String returns the string representation +func (s ListGeofenceCollectionsResponseEntry) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListGeofenceCollectionsResponseEntry) GoString() string { + return s.String() +} + +// SetCollectionName sets the CollectionName field's value. +func (s *ListGeofenceCollectionsResponseEntry) SetCollectionName(v string) *ListGeofenceCollectionsResponseEntry { + s.CollectionName = &v + return s +} + +// SetCreateTime sets the CreateTime field's value. +func (s *ListGeofenceCollectionsResponseEntry) SetCreateTime(v time.Time) *ListGeofenceCollectionsResponseEntry { + s.CreateTime = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *ListGeofenceCollectionsResponseEntry) SetDescription(v string) *ListGeofenceCollectionsResponseEntry { + s.Description = &v + return s +} + +// SetUpdateTime sets the UpdateTime field's value. +func (s *ListGeofenceCollectionsResponseEntry) SetUpdateTime(v time.Time) *ListGeofenceCollectionsResponseEntry { + s.UpdateTime = &v + return s +} + +// Contains a list of geofences stored in a given geofence collection. +type ListGeofenceResponseEntry struct { + _ struct{} `type:"structure"` + + // The timestamp for when the geofence was stored in a geofence collection in + // ISO 8601 (https://www.iso.org/iso-8601-date-and-time-format.html) format: + // YYYY-MM-DDThh:mm:ss.sssZ + // + // CreateTime is a required field + CreateTime *time.Time `type:"timestamp" timestampFormat:"iso8601" required:"true"` + + // The geofence identifier. + // + // GeofenceId is a required field + GeofenceId *string `min:"1" type:"string" required:"true"` + + // Contains the geofence geometry details describing a polygon. + // + // Geometry is a required field + Geometry *GeofenceGeometry `type:"structure" required:"true"` + + // Identifies the state of the geofence. A geofence will hold one of the following + // states: + // + // * ACTIVE — The geofence has been indexed by the system. + // + // * PENDING — The geofence is being processed by the system. + // + // * FAILED — The geofence failed to be indexed by the system. + // + // * DELETED — The geofence has been deleted from the system index. + // + // * DELETING — The geofence is being deleted from the system index. + // + // Status is a required field + Status *string `type:"string" required:"true"` + + // The timestamp for when the geofence was last updated in ISO 8601 (https://www.iso.org/iso-8601-date-and-time-format.html) + // format: YYYY-MM-DDThh:mm:ss.sssZ + // + // UpdateTime is a required field + UpdateTime *time.Time `type:"timestamp" timestampFormat:"iso8601" required:"true"` +} + +// String returns the string representation +func (s ListGeofenceResponseEntry) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListGeofenceResponseEntry) GoString() string { + return s.String() +} + +// SetCreateTime sets the CreateTime field's value. +func (s *ListGeofenceResponseEntry) SetCreateTime(v time.Time) *ListGeofenceResponseEntry { + s.CreateTime = &v + return s +} + +// SetGeofenceId sets the GeofenceId field's value. +func (s *ListGeofenceResponseEntry) SetGeofenceId(v string) *ListGeofenceResponseEntry { + s.GeofenceId = &v + return s +} + +// SetGeometry sets the Geometry field's value. +func (s *ListGeofenceResponseEntry) SetGeometry(v *GeofenceGeometry) *ListGeofenceResponseEntry { + s.Geometry = v + return s +} + +// SetStatus sets the Status field's value. +func (s *ListGeofenceResponseEntry) SetStatus(v string) *ListGeofenceResponseEntry { + s.Status = &v + return s +} + +// SetUpdateTime sets the UpdateTime field's value. +func (s *ListGeofenceResponseEntry) SetUpdateTime(v time.Time) *ListGeofenceResponseEntry { + s.UpdateTime = &v + return s +} + +type ListGeofencesInput struct { + _ struct{} `type:"structure"` + + // The name of the geofence collection storing the list of geofences. + // + // CollectionName is a required field + CollectionName *string `location:"uri" locationName:"CollectionName" min:"1" type:"string" required:"true"` + + // The pagination token specifying which page of results to return in the response. + // If no token is provided, the default page is the first page. + // + // Default value: null + NextToken *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s ListGeofencesInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListGeofencesInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListGeofencesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListGeofencesInput"} + if s.CollectionName == nil { + invalidParams.Add(request.NewErrParamRequired("CollectionName")) + } + if s.CollectionName != nil && len(*s.CollectionName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("CollectionName", 1)) + } + if s.NextToken != nil && len(*s.NextToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetCollectionName sets the CollectionName field's value. +func (s *ListGeofencesInput) SetCollectionName(v string) *ListGeofencesInput { + s.CollectionName = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListGeofencesInput) SetNextToken(v string) *ListGeofencesInput { + s.NextToken = &v + return s +} + +type ListGeofencesOutput struct { + _ struct{} `type:"structure"` + + // Contains a list of geofences stored in the geofence collection. + // + // Entries is a required field + Entries []*ListGeofenceResponseEntry `type:"list" required:"true"` + + // A pagination token indicating there are additional pages available. You can + // use the token in a following request to fetch the next set of results. + NextToken *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s ListGeofencesOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListGeofencesOutput) GoString() string { + return s.String() +} + +// SetEntries sets the Entries field's value. +func (s *ListGeofencesOutput) SetEntries(v []*ListGeofenceResponseEntry) *ListGeofencesOutput { + s.Entries = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListGeofencesOutput) SetNextToken(v string) *ListGeofencesOutput { + s.NextToken = &v + return s +} + +type ListMapsInput struct { + _ struct{} `type:"structure"` + + // An optional limit for the number of resources returned in a single call. + // + // Default value: 100 + MaxResults *int64 `min:"1" type:"integer"` + + // The pagination token specifying which page of results to return in the response. + // If no token is provided, the default page is the first page. + // + // Default value: null + NextToken *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s ListMapsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListMapsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListMapsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListMapsInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + if s.NextToken != nil && len(*s.NextToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListMapsInput) SetMaxResults(v int64) *ListMapsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListMapsInput) SetNextToken(v string) *ListMapsInput { + s.NextToken = &v + return s +} + +type ListMapsOutput struct { + _ struct{} `type:"structure"` + + // Contains a list of maps in your AWS account + // + // Entries is a required field + Entries []*ListMapsResponseEntry `type:"list" required:"true"` + + // A pagination token indicating there are additional pages available. You can + // use the token in a following request to fetch the next set of results. + NextToken *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s ListMapsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListMapsOutput) GoString() string { + return s.String() +} + +// SetEntries sets the Entries field's value. +func (s *ListMapsOutput) SetEntries(v []*ListMapsResponseEntry) *ListMapsOutput { + s.Entries = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListMapsOutput) SetNextToken(v string) *ListMapsOutput { + s.NextToken = &v + return s +} + +// Contains details of an existing map resource in your AWS account. +type ListMapsResponseEntry struct { + _ struct{} `type:"structure"` + + // The timestamp for when the map resource was created in ISO 8601 (https://www.iso.org/iso-8601-date-and-time-format.html) + // format: YYYY-MM-DDThh:mm:ss.sssZ. + // + // CreateTime is a required field + CreateTime *time.Time `type:"timestamp" timestampFormat:"iso8601" required:"true"` + + // Specifies the data provider for the associated map tiles. + // + // DataSource is a required field + DataSource *string `type:"string" required:"true"` + + // The description for the map resource. + // + // Description is a required field + Description *string `type:"string" required:"true"` + + // The name of the associated map resource. + // + // MapName is a required field + MapName *string `min:"1" type:"string" required:"true"` + + // The timestamp for when the map resource was last updated in ISO 8601 (https://www.iso.org/iso-8601-date-and-time-format.html) + // format: YYYY-MM-DDThh:mm:ss.sssZ. + // + // UpdateTime is a required field + UpdateTime *time.Time `type:"timestamp" timestampFormat:"iso8601" required:"true"` +} + +// String returns the string representation +func (s ListMapsResponseEntry) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListMapsResponseEntry) GoString() string { + return s.String() +} + +// SetCreateTime sets the CreateTime field's value. +func (s *ListMapsResponseEntry) SetCreateTime(v time.Time) *ListMapsResponseEntry { + s.CreateTime = &v + return s +} + +// SetDataSource sets the DataSource field's value. +func (s *ListMapsResponseEntry) SetDataSource(v string) *ListMapsResponseEntry { + s.DataSource = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *ListMapsResponseEntry) SetDescription(v string) *ListMapsResponseEntry { + s.Description = &v + return s +} + +// SetMapName sets the MapName field's value. +func (s *ListMapsResponseEntry) SetMapName(v string) *ListMapsResponseEntry { + s.MapName = &v + return s +} + +// SetUpdateTime sets the UpdateTime field's value. +func (s *ListMapsResponseEntry) SetUpdateTime(v time.Time) *ListMapsResponseEntry { + s.UpdateTime = &v + return s +} + +type ListPlaceIndexesInput struct { + _ struct{} `type:"structure"` + + // An optional limit for the maximum number of results returned in a single + // call. + // + // Default value: 100 + MaxResults *int64 `min:"1" type:"integer"` + + // The pagination token specifying which page of results to return in the response. + // If no token is provided, the default page is the first page. + // + // Default value: null + NextToken *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s ListPlaceIndexesInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListPlaceIndexesInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListPlaceIndexesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListPlaceIndexesInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + if s.NextToken != nil && len(*s.NextToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListPlaceIndexesInput) SetMaxResults(v int64) *ListPlaceIndexesInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListPlaceIndexesInput) SetNextToken(v string) *ListPlaceIndexesInput { + s.NextToken = &v + return s +} + +type ListPlaceIndexesOutput struct { + _ struct{} `type:"structure"` + + // Lists the Place index resources that exist in your AWS account + // + // Entries is a required field + Entries []*ListPlaceIndexesResponseEntry `type:"list" required:"true"` + + // A pagination token indicating there are additional pages available. You can + // use the token in a following request to fetch the next set of results. + NextToken *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s ListPlaceIndexesOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListPlaceIndexesOutput) GoString() string { + return s.String() +} + +// SetEntries sets the Entries field's value. +func (s *ListPlaceIndexesOutput) SetEntries(v []*ListPlaceIndexesResponseEntry) *ListPlaceIndexesOutput { + s.Entries = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListPlaceIndexesOutput) SetNextToken(v string) *ListPlaceIndexesOutput { + s.NextToken = &v + return s +} + +// A Place index resource listed in your AWS account. +type ListPlaceIndexesResponseEntry struct { + _ struct{} `type:"structure"` + + // The timestamp for when the Place index resource was created in ISO 8601 (https://www.iso.org/iso-8601-date-and-time-format.html) + // format: YYYY-MM-DDThh:mm:ss.sssZ. + // + // CreateTime is a required field + CreateTime *time.Time `type:"timestamp" timestampFormat:"iso8601" required:"true"` + + // The data provider of geospatial data. + // + // DataSource is a required field + DataSource *string `type:"string" required:"true"` + + // The optional description for the Place index resource. + // + // Description is a required field + Description *string `type:"string" required:"true"` + + // The name of the Place index resource. + // + // IndexName is a required field + IndexName *string `min:"1" type:"string" required:"true"` + + // The timestamp for when the Place index resource was last updated in ISO 8601 + // (https://www.iso.org/iso-8601-date-and-time-format.html) format: YYYY-MM-DDThh:mm:ss.sssZ. + // + // UpdateTime is a required field + UpdateTime *time.Time `type:"timestamp" timestampFormat:"iso8601" required:"true"` +} + +// String returns the string representation +func (s ListPlaceIndexesResponseEntry) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListPlaceIndexesResponseEntry) GoString() string { + return s.String() +} + +// SetCreateTime sets the CreateTime field's value. +func (s *ListPlaceIndexesResponseEntry) SetCreateTime(v time.Time) *ListPlaceIndexesResponseEntry { + s.CreateTime = &v + return s +} + +// SetDataSource sets the DataSource field's value. +func (s *ListPlaceIndexesResponseEntry) SetDataSource(v string) *ListPlaceIndexesResponseEntry { + s.DataSource = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *ListPlaceIndexesResponseEntry) SetDescription(v string) *ListPlaceIndexesResponseEntry { + s.Description = &v + return s +} + +// SetIndexName sets the IndexName field's value. +func (s *ListPlaceIndexesResponseEntry) SetIndexName(v string) *ListPlaceIndexesResponseEntry { + s.IndexName = &v + return s +} + +// SetUpdateTime sets the UpdateTime field's value. +func (s *ListPlaceIndexesResponseEntry) SetUpdateTime(v time.Time) *ListPlaceIndexesResponseEntry { + s.UpdateTime = &v + return s +} + +type ListTrackerConsumersInput struct { + _ struct{} `type:"structure"` + + // An optional limit for the number of resources returned in a single call. + // + // Default value: 100 + MaxResults *int64 `min:"1" type:"integer"` + + // The pagination token specifying which page of results to return in the response. + // If no token is provided, the default page is the first page. + // + // Default value: null + NextToken *string `min:"1" type:"string"` + + // The tracker resource whose associated geofence collections you want to list. + // + // TrackerName is a required field + TrackerName *string `location:"uri" locationName:"TrackerName" min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s ListTrackerConsumersInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListTrackerConsumersInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListTrackerConsumersInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListTrackerConsumersInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + if s.NextToken != nil && len(*s.NextToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) + } + if s.TrackerName == nil { + invalidParams.Add(request.NewErrParamRequired("TrackerName")) + } + if s.TrackerName != nil && len(*s.TrackerName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("TrackerName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListTrackerConsumersInput) SetMaxResults(v int64) *ListTrackerConsumersInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListTrackerConsumersInput) SetNextToken(v string) *ListTrackerConsumersInput { + s.NextToken = &v + return s +} + +// SetTrackerName sets the TrackerName field's value. +func (s *ListTrackerConsumersInput) SetTrackerName(v string) *ListTrackerConsumersInput { + s.TrackerName = &v + return s +} + +type ListTrackerConsumersOutput struct { + _ struct{} `type:"structure"` + + // Contains the list of geofence collection ARNs associated to the tracker resource. + // + // ConsumerArns is a required field + ConsumerArns []*string `type:"list" required:"true"` + + // A pagination token indicating there are additional pages available. You can + // use the token in a following request to fetch the next set of results. + NextToken *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s ListTrackerConsumersOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListTrackerConsumersOutput) GoString() string { + return s.String() +} + +// SetConsumerArns sets the ConsumerArns field's value. +func (s *ListTrackerConsumersOutput) SetConsumerArns(v []*string) *ListTrackerConsumersOutput { + s.ConsumerArns = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListTrackerConsumersOutput) SetNextToken(v string) *ListTrackerConsumersOutput { + s.NextToken = &v + return s +} + +type ListTrackersInput struct { + _ struct{} `type:"structure"` + + // An optional limit for the number of resources returned in a single call. + // + // Default value: 100 + MaxResults *int64 `min:"1" type:"integer"` + + // The pagination token specifying which page of results to return in the response. + // If no token is provided, the default page is the first page. + // + // Default value: null + NextToken *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s ListTrackersInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListTrackersInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListTrackersInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListTrackersInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + if s.NextToken != nil && len(*s.NextToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListTrackersInput) SetMaxResults(v int64) *ListTrackersInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListTrackersInput) SetNextToken(v string) *ListTrackersInput { + s.NextToken = &v + return s +} + +type ListTrackersOutput struct { + _ struct{} `type:"structure"` + + // Contains tracker resources in your AWS account. Details include tracker name, + // description and timestamps for when the tracker was created and last updated. + // + // Entries is a required field + Entries []*ListTrackersResponseEntry `type:"list" required:"true"` + + // A pagination token indicating there are additional pages available. You can + // use the token in a following request to fetch the next set of results. + NextToken *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s ListTrackersOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListTrackersOutput) GoString() string { + return s.String() +} + +// SetEntries sets the Entries field's value. +func (s *ListTrackersOutput) SetEntries(v []*ListTrackersResponseEntry) *ListTrackersOutput { + s.Entries = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListTrackersOutput) SetNextToken(v string) *ListTrackersOutput { + s.NextToken = &v + return s +} + +// Contains the tracker resource details. +type ListTrackersResponseEntry struct { + _ struct{} `type:"structure"` + + // The timestamp for when the tracker resource was created in ISO 8601 (https://www.iso.org/iso-8601-date-and-time-format.html) + // format: YYYY-MM-DDThh:mm:ss.sssZ. + // + // CreateTime is a required field + CreateTime *time.Time `type:"timestamp" timestampFormat:"iso8601" required:"true"` + + // The description for the tracker resource. + // + // Description is a required field + Description *string `type:"string" required:"true"` + + // The name of the tracker resource. + // + // TrackerName is a required field + TrackerName *string `min:"1" type:"string" required:"true"` + + // The timestamp for when the position was detected and sampled in ISO 8601 + // (https://www.iso.org/iso-8601-date-and-time-format.html) format: YYYY-MM-DDThh:mm:ss.sssZ. + // + // UpdateTime is a required field + UpdateTime *time.Time `type:"timestamp" timestampFormat:"iso8601" required:"true"` +} + +// String returns the string representation +func (s ListTrackersResponseEntry) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListTrackersResponseEntry) GoString() string { + return s.String() +} + +// SetCreateTime sets the CreateTime field's value. +func (s *ListTrackersResponseEntry) SetCreateTime(v time.Time) *ListTrackersResponseEntry { + s.CreateTime = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *ListTrackersResponseEntry) SetDescription(v string) *ListTrackersResponseEntry { + s.Description = &v + return s +} + +// SetTrackerName sets the TrackerName field's value. +func (s *ListTrackersResponseEntry) SetTrackerName(v string) *ListTrackersResponseEntry { + s.TrackerName = &v + return s +} + +// SetUpdateTime sets the UpdateTime field's value. +func (s *ListTrackersResponseEntry) SetUpdateTime(v time.Time) *ListTrackersResponseEntry { + s.UpdateTime = &v + return s +} + +// Specifies the map tile style selected from an available provider. +type MapConfiguration struct { + _ struct{} `type:"structure"` + + // Specifies the map style selected from an available data provider. + // + // Valid styles: VectorEsriLightGrayCanvas, VectorEsriLight, VectorEsriStreets, + // VectorEsriNavigation, VectorEsriDarkGrayCanvas, VectorEsriLightGrayCanvas, + // VectorHereBerlin + // + // When using HERE as your data provider, and selecting the Style VectorHereBerlin, + // you may not use HERE Maps for Asset Management. See the AWS Service Terms + // (https://aws.amazon.com/service-terms/) for Amazon Location Service. + // + // Style is a required field + Style *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s MapConfiguration) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s MapConfiguration) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *MapConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "MapConfiguration"} + if s.Style == nil { + invalidParams.Add(request.NewErrParamRequired("Style")) + } + if s.Style != nil && len(*s.Style) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Style", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetStyle sets the Style field's value. +func (s *MapConfiguration) SetStyle(v string) *MapConfiguration { + s.Style = &v + return s +} + +// Contains details about addresses or points of interest that match the search +// criteria. +type Place struct { + _ struct{} `type:"structure"` + + // The numerical portion of an address, such as a building number. + AddressNumber *string `type:"string"` + + // A country/region specified using ISO 3166 (https://www.iso.org/iso-3166-country-codes.html) + // 3-digit country/region code. For example, CAN. + Country *string `type:"string"` + + // Places uses a point geometry to specify a location or a Place. + // + // Geometry is a required field + Geometry *PlaceGeometry `type:"structure" required:"true"` + + // The full name and address of the point of interest such as a city, region, + // or country. For example, 123 Any Street, Any Town, USA. + Label *string `type:"string"` + + // A name for a local area, such as a city or town name. For example, Toronto. + Municipality *string `type:"string"` + + // The name of a community district. For example, Downtown. + Neighborhood *string `type:"string"` + + // A group of numbers and letters in a country-specific format, which accompanies + // the address for the purpose of identifying a location. + PostalCode *string `type:"string"` + + // A name for an area or geographical division, such as a province or state + // name. For example, British Columbia. + Region *string `type:"string"` + + // The name for a street or a road to identify a location. For example, Main + // Street. + Street *string `type:"string"` + + // A country, or an area that's part of a larger region . For example, Metro + // Vancouver. + SubRegion *string `type:"string"` +} + +// String returns the string representation +func (s Place) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Place) GoString() string { + return s.String() +} + +// SetAddressNumber sets the AddressNumber field's value. +func (s *Place) SetAddressNumber(v string) *Place { + s.AddressNumber = &v + return s +} + +// SetCountry sets the Country field's value. +func (s *Place) SetCountry(v string) *Place { + s.Country = &v + return s +} + +// SetGeometry sets the Geometry field's value. +func (s *Place) SetGeometry(v *PlaceGeometry) *Place { + s.Geometry = v + return s +} + +// SetLabel sets the Label field's value. +func (s *Place) SetLabel(v string) *Place { + s.Label = &v + return s +} + +// SetMunicipality sets the Municipality field's value. +func (s *Place) SetMunicipality(v string) *Place { + s.Municipality = &v + return s +} + +// SetNeighborhood sets the Neighborhood field's value. +func (s *Place) SetNeighborhood(v string) *Place { + s.Neighborhood = &v + return s +} + +// SetPostalCode sets the PostalCode field's value. +func (s *Place) SetPostalCode(v string) *Place { + s.PostalCode = &v + return s +} + +// SetRegion sets the Region field's value. +func (s *Place) SetRegion(v string) *Place { + s.Region = &v + return s +} + +// SetStreet sets the Street field's value. +func (s *Place) SetStreet(v string) *Place { + s.Street = &v + return s +} + +// SetSubRegion sets the SubRegion field's value. +func (s *Place) SetSubRegion(v string) *Place { + s.SubRegion = &v + return s +} + +// Places uses a point geometry to specify a location or a Place. +type PlaceGeometry struct { + _ struct{} `type:"structure"` + + // A single point geometry specifies a location for a Place using WGS 84 (https://gisgeography.com/wgs84-world-geodetic-system/) + // coordinates: + // + // * x — Specifies the x coordinate or longitude. + // + // * y — Specifies the y coordinate or latitude. + Point []*float64 `min:"2" type:"list" sensitive:"true"` +} + +// String returns the string representation +func (s PlaceGeometry) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PlaceGeometry) GoString() string { + return s.String() +} + +// SetPoint sets the Point field's value. +func (s *PlaceGeometry) SetPoint(v []*float64) *PlaceGeometry { + s.Point = v + return s +} + +type PutGeofenceInput struct { + _ struct{} `type:"structure"` + + // The geofence collection to store the geofence in. + // + // CollectionName is a required field + CollectionName *string `location:"uri" locationName:"CollectionName" min:"1" type:"string" required:"true"` + + // An identifier for the geofence. For example, ExampleGeofence-1. + // + // GeofenceId is a required field + GeofenceId *string `location:"uri" locationName:"GeofenceId" min:"1" type:"string" required:"true"` + + // Contains the polygon details to specify the position of the geofence. + // + // Geometry is a required field + Geometry *GeofenceGeometry `type:"structure" required:"true"` +} + +// String returns the string representation +func (s PutGeofenceInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PutGeofenceInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *PutGeofenceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "PutGeofenceInput"} + if s.CollectionName == nil { + invalidParams.Add(request.NewErrParamRequired("CollectionName")) + } + if s.CollectionName != nil && len(*s.CollectionName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("CollectionName", 1)) + } + if s.GeofenceId == nil { + invalidParams.Add(request.NewErrParamRequired("GeofenceId")) + } + if s.GeofenceId != nil && len(*s.GeofenceId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("GeofenceId", 1)) + } + if s.Geometry == nil { + invalidParams.Add(request.NewErrParamRequired("Geometry")) + } + if s.Geometry != nil { + if err := s.Geometry.Validate(); err != nil { + invalidParams.AddNested("Geometry", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetCollectionName sets the CollectionName field's value. +func (s *PutGeofenceInput) SetCollectionName(v string) *PutGeofenceInput { + s.CollectionName = &v + return s +} + +// SetGeofenceId sets the GeofenceId field's value. +func (s *PutGeofenceInput) SetGeofenceId(v string) *PutGeofenceInput { + s.GeofenceId = &v + return s +} + +// SetGeometry sets the Geometry field's value. +func (s *PutGeofenceInput) SetGeometry(v *GeofenceGeometry) *PutGeofenceInput { + s.Geometry = v + return s +} + +type PutGeofenceOutput struct { + _ struct{} `type:"structure"` + + // The timestamp for when the geofence was created in ISO 8601 (https://www.iso.org/iso-8601-date-and-time-format.html) + // format: YYYY-MM-DDThh:mm:ss.sssZ + // + // CreateTime is a required field + CreateTime *time.Time `type:"timestamp" timestampFormat:"iso8601" required:"true"` + + // The geofence identifier entered in the request. + // + // GeofenceId is a required field + GeofenceId *string `min:"1" type:"string" required:"true"` + + // The timestamp for when the geofence was last updated in ISO 8601 (https://www.iso.org/iso-8601-date-and-time-format.html) + // format: YYYY-MM-DDThh:mm:ss.sssZ + // + // UpdateTime is a required field + UpdateTime *time.Time `type:"timestamp" timestampFormat:"iso8601" required:"true"` +} + +// String returns the string representation +func (s PutGeofenceOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PutGeofenceOutput) GoString() string { + return s.String() +} + +// SetCreateTime sets the CreateTime field's value. +func (s *PutGeofenceOutput) SetCreateTime(v time.Time) *PutGeofenceOutput { + s.CreateTime = &v + return s +} + +// SetGeofenceId sets the GeofenceId field's value. +func (s *PutGeofenceOutput) SetGeofenceId(v string) *PutGeofenceOutput { + s.GeofenceId = &v + return s +} + +// SetUpdateTime sets the UpdateTime field's value. +func (s *PutGeofenceOutput) SetUpdateTime(v time.Time) *PutGeofenceOutput { + s.UpdateTime = &v + return s +} + +// The resource that you've entered was not found in your AWS account. +type ResourceNotFoundException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ResourceNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceNotFoundException) 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", s.Code(), s.Message()) +} + +// 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 +} + +// Specifies a single point of interest, or Place as a result of a search query +// obtained from a dataset configured in the Place index Resource. +type SearchForPositionResult struct { + _ struct{} `type:"structure"` + + // Contains details about the relevant point of interest. + // + // Place is a required field + Place *Place `type:"structure" required:"true"` +} + +// String returns the string representation +func (s SearchForPositionResult) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s SearchForPositionResult) GoString() string { + return s.String() +} + +// SetPlace sets the Place field's value. +func (s *SearchForPositionResult) SetPlace(v *Place) *SearchForPositionResult { + s.Place = v + return s +} + +// Contains relevant Places returned by calling SearchPlaceIndexForText. +type SearchForTextResult struct { + _ struct{} `type:"structure"` + + // Contains details about the relevant point of interest. + // + // Place is a required field + Place *Place `type:"structure" required:"true"` +} + +// String returns the string representation +func (s SearchForTextResult) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s SearchForTextResult) GoString() string { + return s.String() +} + +// SetPlace sets the Place field's value. +func (s *SearchForTextResult) SetPlace(v *Place) *SearchForTextResult { + s.Place = v + return s +} + +type SearchPlaceIndexForPositionInput struct { + _ struct{} `type:"structure"` + + // The name of the Place index resource you want to use for the search. + // + // IndexName is a required field + IndexName *string `location:"uri" locationName:"IndexName" min:"1" type:"string" required:"true"` + + // An optional paramer. The maximum number of results returned per request. + // + // Default value: 50 + MaxResults *int64 `min:"1" type:"integer"` + + // Specifies a coordinate for the query defined by a longitude, and latitude. + // + // * The first position is the X coordinate, or longitude. + // + // * The second position is the Y coordinate, or latitude. + // + // For example, position=xLongitude&position=yLatitude . + // + // Position is a required field + Position []*float64 `min:"2" type:"list" required:"true" sensitive:"true"` +} + +// String returns the string representation +func (s SearchPlaceIndexForPositionInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s SearchPlaceIndexForPositionInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *SearchPlaceIndexForPositionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "SearchPlaceIndexForPositionInput"} + if s.IndexName == nil { + invalidParams.Add(request.NewErrParamRequired("IndexName")) + } + if s.IndexName != nil && len(*s.IndexName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("IndexName", 1)) + } + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + if s.Position == nil { + invalidParams.Add(request.NewErrParamRequired("Position")) + } + if s.Position != nil && len(s.Position) < 2 { + invalidParams.Add(request.NewErrParamMinLen("Position", 2)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetIndexName sets the IndexName field's value. +func (s *SearchPlaceIndexForPositionInput) SetIndexName(v string) *SearchPlaceIndexForPositionInput { + s.IndexName = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *SearchPlaceIndexForPositionInput) SetMaxResults(v int64) *SearchPlaceIndexForPositionInput { + s.MaxResults = &v + return s +} + +// SetPosition sets the Position field's value. +func (s *SearchPlaceIndexForPositionInput) SetPosition(v []*float64) *SearchPlaceIndexForPositionInput { + s.Position = v + return s +} + +type SearchPlaceIndexForPositionOutput struct { + _ struct{} `type:"structure"` + + // Returns a list of Places closest to the specified position. Each result contains + // additional information about the Places returned. + // + // Results is a required field + Results []*SearchForPositionResult `type:"list" required:"true"` + + // Contains a summary of the request. + // + // Summary is a required field + Summary *SearchPlaceIndexForPositionSummary `type:"structure" required:"true"` +} + +// String returns the string representation +func (s SearchPlaceIndexForPositionOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s SearchPlaceIndexForPositionOutput) GoString() string { + return s.String() +} + +// SetResults sets the Results field's value. +func (s *SearchPlaceIndexForPositionOutput) SetResults(v []*SearchForPositionResult) *SearchPlaceIndexForPositionOutput { + s.Results = v + return s +} + +// SetSummary sets the Summary field's value. +func (s *SearchPlaceIndexForPositionOutput) SetSummary(v *SearchPlaceIndexForPositionSummary) *SearchPlaceIndexForPositionOutput { + s.Summary = v + return s +} + +// A summary of the reverse geocoding request sent using SearchPlaceIndexForPosition. +type SearchPlaceIndexForPositionSummary struct { + _ struct{} `type:"structure"` + + // The data provider of geospatial data for the Place index resource. + // + // DataSource is a required field + DataSource *string `type:"string" required:"true"` + + // An optional parameter. The maximum number of results returned per request. + // + // Default value: 50 + MaxResults *int64 `min:"1" type:"integer"` + + // The position given in the reverse geocoding request. + // + // Position is a required field + Position []*float64 `min:"2" type:"list" required:"true" sensitive:"true"` +} + +// String returns the string representation +func (s SearchPlaceIndexForPositionSummary) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s SearchPlaceIndexForPositionSummary) GoString() string { + return s.String() +} + +// SetDataSource sets the DataSource field's value. +func (s *SearchPlaceIndexForPositionSummary) SetDataSource(v string) *SearchPlaceIndexForPositionSummary { + s.DataSource = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *SearchPlaceIndexForPositionSummary) SetMaxResults(v int64) *SearchPlaceIndexForPositionSummary { + s.MaxResults = &v + return s +} + +// SetPosition sets the Position field's value. +func (s *SearchPlaceIndexForPositionSummary) SetPosition(v []*float64) *SearchPlaceIndexForPositionSummary { + s.Position = v + return s +} + +type SearchPlaceIndexForTextInput struct { + _ struct{} `type:"structure"` + + // Searches for results closest to the given position. An optional parameter + // defined by longitude, and latitude. + // + // * The first bias position is the X coordinate, or longitude. + // + // * The second bias position is the Y coordinate, or latitude. + // + // For example, bias=xLongitude&bias=yLatitude. + BiasPosition []*float64 `min:"2" type:"list" sensitive:"true"` + + // Filters the results by returning only Places within the provided bounding + // box. An optional parameter. + // + // The first 2 bbox parameters describe the lower southwest corner: + // + // * The first bbox position is the X coordinate or longitude of the lower + // southwest corner. + // + // * The second bbox position is the Y coordinate or latitude of the lower + // southwest corner. + // + // For example, bbox=xLongitudeSW&bbox=yLatitudeSW. + // + // The next bbox parameters describe the upper northeast corner: + // + // * The third bbox position is the X coordinate, or longitude of the upper + // northeast corner. + // + // * The fourth bbox position is the Y coordinate, or longitude of the upper + // northeast corner. + // + // For example, bbox=xLongitudeNE&bbox=yLatitudeNE + FilterBBox []*float64 `min:"4" type:"list" sensitive:"true"` + + // Limits the search to the given a list of countries/regions. An optional parameter. + // + // * Use the ISO 3166 (https://www.iso.org/iso-3166-country-codes.html) 3-digit + // country code. For example, Australia uses three upper-case characters: + // AUS. + FilterCountries []*string `min:"1" type:"list"` + + // The name of the Place index resource you want to use for the search. + // + // IndexName is a required field + IndexName *string `location:"uri" locationName:"IndexName" min:"1" type:"string" required:"true"` + + // An optional parameter. The maximum number of results returned per request. + // + // The default: 50 + MaxResults *int64 `min:"1" type:"integer"` + + // The address, name, city, or region to be used in the search. In free-form + // text format. For example, 123 Any Street. + // + // Text is a required field + Text *string `min:"1" type:"string" required:"true" sensitive:"true"` +} + +// String returns the string representation +func (s SearchPlaceIndexForTextInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s SearchPlaceIndexForTextInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *SearchPlaceIndexForTextInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "SearchPlaceIndexForTextInput"} + if s.BiasPosition != nil && len(s.BiasPosition) < 2 { + invalidParams.Add(request.NewErrParamMinLen("BiasPosition", 2)) + } + if s.FilterBBox != nil && len(s.FilterBBox) < 4 { + invalidParams.Add(request.NewErrParamMinLen("FilterBBox", 4)) + } + if s.FilterCountries != nil && len(s.FilterCountries) < 1 { + invalidParams.Add(request.NewErrParamMinLen("FilterCountries", 1)) + } + if s.IndexName == nil { + invalidParams.Add(request.NewErrParamRequired("IndexName")) + } + if s.IndexName != nil && len(*s.IndexName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("IndexName", 1)) + } + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + if s.Text == nil { + invalidParams.Add(request.NewErrParamRequired("Text")) + } + if s.Text != nil && len(*s.Text) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Text", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetBiasPosition sets the BiasPosition field's value. +func (s *SearchPlaceIndexForTextInput) SetBiasPosition(v []*float64) *SearchPlaceIndexForTextInput { + s.BiasPosition = v + return s +} + +// SetFilterBBox sets the FilterBBox field's value. +func (s *SearchPlaceIndexForTextInput) SetFilterBBox(v []*float64) *SearchPlaceIndexForTextInput { + s.FilterBBox = v + return s +} + +// SetFilterCountries sets the FilterCountries field's value. +func (s *SearchPlaceIndexForTextInput) SetFilterCountries(v []*string) *SearchPlaceIndexForTextInput { + s.FilterCountries = v + return s +} + +// SetIndexName sets the IndexName field's value. +func (s *SearchPlaceIndexForTextInput) SetIndexName(v string) *SearchPlaceIndexForTextInput { + s.IndexName = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *SearchPlaceIndexForTextInput) SetMaxResults(v int64) *SearchPlaceIndexForTextInput { + s.MaxResults = &v + return s +} + +// SetText sets the Text field's value. +func (s *SearchPlaceIndexForTextInput) SetText(v string) *SearchPlaceIndexForTextInput { + s.Text = &v + return s +} + +type SearchPlaceIndexForTextOutput struct { + _ struct{} `type:"structure"` + + // A list of Places closest to the specified position. Each result contains + // additional information about the specific point of interest. + // + // Results is a required field + Results []*SearchForTextResult `type:"list" required:"true"` + + // Contains a summary of the request. Contains the BiasPosition, DataSource, + // FilterBBox, FilterCountries, MaxResults, ResultBBox, and Text. + // + // Summary is a required field + Summary *SearchPlaceIndexForTextSummary `type:"structure" required:"true"` +} + +// String returns the string representation +func (s SearchPlaceIndexForTextOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s SearchPlaceIndexForTextOutput) GoString() string { + return s.String() +} + +// SetResults sets the Results field's value. +func (s *SearchPlaceIndexForTextOutput) SetResults(v []*SearchForTextResult) *SearchPlaceIndexForTextOutput { + s.Results = v + return s +} + +// SetSummary sets the Summary field's value. +func (s *SearchPlaceIndexForTextOutput) SetSummary(v *SearchPlaceIndexForTextSummary) *SearchPlaceIndexForTextOutput { + s.Summary = v + return s +} + +// A summary of the geocoding request sent using SearchPlaceIndexForText. +type SearchPlaceIndexForTextSummary struct { + _ struct{} `type:"structure"` + + // Contains the coordinates for the bias position entered in the geocoding request. + BiasPosition []*float64 `min:"2" type:"list" sensitive:"true"` + + // The data provider of geospatial data for the Place index resource. + // + // DataSource is a required field + DataSource *string `type:"string" required:"true"` + + // Contains the coordinates for the optional bounding box coordinated entered + // in the geocoding request. + FilterBBox []*float64 `min:"4" type:"list" sensitive:"true"` + + // Contains the country filter entered in the geocoding request. + FilterCountries []*string `min:"1" type:"list"` + + // Contains the maximum number of results indicated for the request. + MaxResults *int64 `min:"1" type:"integer"` + + // A bounding box that contains the search results within the specified area + // indicated by FilterBBox. A subset of bounding box specified using FilterBBox. + ResultBBox []*float64 `min:"4" type:"list" sensitive:"true"` + + // The address, name, city or region to be used in the geocoding request. In + // free-form text format. For example, Vancouver. + // + // Text is a required field + Text *string `type:"string" required:"true" sensitive:"true"` +} + +// String returns the string representation +func (s SearchPlaceIndexForTextSummary) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s SearchPlaceIndexForTextSummary) GoString() string { + return s.String() +} + +// SetBiasPosition sets the BiasPosition field's value. +func (s *SearchPlaceIndexForTextSummary) SetBiasPosition(v []*float64) *SearchPlaceIndexForTextSummary { + s.BiasPosition = v + return s +} + +// SetDataSource sets the DataSource field's value. +func (s *SearchPlaceIndexForTextSummary) SetDataSource(v string) *SearchPlaceIndexForTextSummary { + s.DataSource = &v + return s +} + +// SetFilterBBox sets the FilterBBox field's value. +func (s *SearchPlaceIndexForTextSummary) SetFilterBBox(v []*float64) *SearchPlaceIndexForTextSummary { + s.FilterBBox = v + return s +} + +// SetFilterCountries sets the FilterCountries field's value. +func (s *SearchPlaceIndexForTextSummary) SetFilterCountries(v []*string) *SearchPlaceIndexForTextSummary { + s.FilterCountries = v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *SearchPlaceIndexForTextSummary) SetMaxResults(v int64) *SearchPlaceIndexForTextSummary { + s.MaxResults = &v + return s +} + +// SetResultBBox sets the ResultBBox field's value. +func (s *SearchPlaceIndexForTextSummary) SetResultBBox(v []*float64) *SearchPlaceIndexForTextSummary { + s.ResultBBox = v + return s +} + +// SetText sets the Text field's value. +func (s *SearchPlaceIndexForTextSummary) SetText(v string) *SearchPlaceIndexForTextSummary { + s.Text = &v + return s +} + +// The request was denied due to request throttling. +type ThrottlingException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ThrottlingException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ThrottlingException) GoString() string { + return s.String() +} + +func newErrorThrottlingException(v protocol.ResponseMetadata) error { + return &ThrottlingException{ + RespMetadata: v, + } +} + +// Code returns the exception type name. +func (s *ThrottlingException) Code() string { + return "ThrottlingException" +} + +// Message returns the exception's message. +func (s *ThrottlingException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *ThrottlingException) OrigErr() error { + return nil +} + +func (s *ThrottlingException) 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 *ThrottlingException) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *ThrottlingException) RequestID() string { + return s.RespMetadata.RequestID +} + +// The input failed to meet the constraints specified by the AWS service. +type ValidationException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + // The field where the invalid entry was detected. + // + // FieldList is a required field + FieldList []*ValidationExceptionField `locationName:"fieldList" type:"list" required:"true"` + + Message_ *string `locationName:"message" type:"string"` + + // A message with the reason for the validation exception error. + // + // Reason is a required field + Reason *string `locationName:"reason" type:"string" required:"true" enum:"ValidationExceptionReason"` +} + +// String returns the string representation +func (s ValidationException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ValidationException) GoString() string { + return s.String() +} + +func newErrorValidationException(v protocol.ResponseMetadata) error { + return &ValidationException{ + RespMetadata: v, + } +} + +// Code returns the exception type name. +func (s *ValidationException) Code() string { + return "ValidationException" +} + +// Message returns the exception's message. +func (s *ValidationException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *ValidationException) OrigErr() error { + return nil +} + +func (s *ValidationException) 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 *ValidationException) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *ValidationException) RequestID() string { + return s.RespMetadata.RequestID +} + +// The input failed to meet the constraints specified by the AWS service in +// a specified field. +type ValidationExceptionField struct { + _ struct{} `type:"structure"` + + // A message with the reason for the validation exception error. + // + // Message is a required field + Message *string `locationName:"message" type:"string" required:"true"` + + // The field name where the invalid entry was detected. + // + // Name is a required field + Name *string `locationName:"name" type:"string" required:"true"` +} + +// String returns the string representation +func (s ValidationExceptionField) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ValidationExceptionField) GoString() string { + return s.String() +} + +// SetMessage sets the Message field's value. +func (s *ValidationExceptionField) SetMessage(v string) *ValidationExceptionField { + s.Message = &v + return s +} + +// SetName sets the Name field's value. +func (s *ValidationExceptionField) SetName(v string) *ValidationExceptionField { + s.Name = &v + return s +} + +const ( + // BatchItemErrorCodeAccessDeniedError is a BatchItemErrorCode enum value + BatchItemErrorCodeAccessDeniedError = "AccessDeniedError" + + // BatchItemErrorCodeConflictError is a BatchItemErrorCode enum value + BatchItemErrorCodeConflictError = "ConflictError" + + // BatchItemErrorCodeInternalServerError is a BatchItemErrorCode enum value + BatchItemErrorCodeInternalServerError = "InternalServerError" + + // BatchItemErrorCodeResourceNotFoundError is a BatchItemErrorCode enum value + BatchItemErrorCodeResourceNotFoundError = "ResourceNotFoundError" + + // BatchItemErrorCodeThrottlingError is a BatchItemErrorCode enum value + BatchItemErrorCodeThrottlingError = "ThrottlingError" + + // BatchItemErrorCodeValidationError is a BatchItemErrorCode enum value + BatchItemErrorCodeValidationError = "ValidationError" +) + +// BatchItemErrorCode_Values returns all elements of the BatchItemErrorCode enum +func BatchItemErrorCode_Values() []string { + return []string{ + BatchItemErrorCodeAccessDeniedError, + BatchItemErrorCodeConflictError, + BatchItemErrorCodeInternalServerError, + BatchItemErrorCodeResourceNotFoundError, + BatchItemErrorCodeThrottlingError, + BatchItemErrorCodeValidationError, + } +} + +const ( + // IntendedUseSingleUse is a IntendedUse enum value + IntendedUseSingleUse = "SingleUse" + + // IntendedUseStorage is a IntendedUse enum value + IntendedUseStorage = "Storage" +) + +// IntendedUse_Values returns all elements of the IntendedUse enum +func IntendedUse_Values() []string { + return []string{ + IntendedUseSingleUse, + IntendedUseStorage, + } +} + +const ( + // PricingPlanRequestBasedUsage is a PricingPlan enum value + PricingPlanRequestBasedUsage = "RequestBasedUsage" + + // PricingPlanMobileAssetTracking is a PricingPlan enum value + PricingPlanMobileAssetTracking = "MobileAssetTracking" + + // PricingPlanMobileAssetManagement is a PricingPlan enum value + PricingPlanMobileAssetManagement = "MobileAssetManagement" +) + +// PricingPlan_Values returns all elements of the PricingPlan enum +func PricingPlan_Values() []string { + return []string{ + PricingPlanRequestBasedUsage, + PricingPlanMobileAssetTracking, + PricingPlanMobileAssetManagement, + } +} + +const ( + // ValidationExceptionReasonUnknownOperation is a ValidationExceptionReason enum value + ValidationExceptionReasonUnknownOperation = "UnknownOperation" + + // ValidationExceptionReasonMissing is a ValidationExceptionReason enum value + ValidationExceptionReasonMissing = "Missing" + + // ValidationExceptionReasonCannotParse is a ValidationExceptionReason enum value + ValidationExceptionReasonCannotParse = "CannotParse" + + // ValidationExceptionReasonFieldValidationFailed is a ValidationExceptionReason enum value + ValidationExceptionReasonFieldValidationFailed = "FieldValidationFailed" + + // ValidationExceptionReasonOther is a ValidationExceptionReason enum value + ValidationExceptionReasonOther = "Other" +) + +// ValidationExceptionReason_Values returns all elements of the ValidationExceptionReason enum +func ValidationExceptionReason_Values() []string { + return []string{ + ValidationExceptionReasonUnknownOperation, + ValidationExceptionReasonMissing, + ValidationExceptionReasonCannotParse, + ValidationExceptionReasonFieldValidationFailed, + ValidationExceptionReasonOther, + } +} diff --git a/service/locationservice/doc.go b/service/locationservice/doc.go new file mode 100644 index 0000000000..806497e2e6 --- /dev/null +++ b/service/locationservice/doc.go @@ -0,0 +1,28 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +// Package locationservice provides the client and types for making API +// requests to Amazon Location Service. +// +// Suite of geospatial services including Maps, Places, Tracking, and Geofencing +// +// See https://docs.aws.amazon.com/goto/WebAPI/location-2020-11-19 for more information on this service. +// +// See locationservice package documentation for more information. +// https://docs.aws.amazon.com/sdk-for-go/api/service/locationservice/ +// +// Using the Client +// +// To contact Amazon Location Service 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 Location Service client LocationService for more +// information on creating client for this service. +// https://docs.aws.amazon.com/sdk-for-go/api/service/locationservice/#New +package locationservice diff --git a/service/locationservice/errors.go b/service/locationservice/errors.go new file mode 100644 index 0000000000..dca7429cd8 --- /dev/null +++ b/service/locationservice/errors.go @@ -0,0 +1,57 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +package locationservice + +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + +const ( + + // ErrCodeAccessDeniedException for service response error code + // "AccessDeniedException". + // + // The request was denied due to insufficient access or permission. Check with + // an administrator to verify your permissions. + ErrCodeAccessDeniedException = "AccessDeniedException" + + // ErrCodeConflictException for service response error code + // "ConflictException". + // + // The request was unsuccessful due to a conflict. + ErrCodeConflictException = "ConflictException" + + // ErrCodeInternalServerException for service response error code + // "InternalServerException". + // + // The request has failed to process because of an unknown server error, exception, + // or failure. + ErrCodeInternalServerException = "InternalServerException" + + // ErrCodeResourceNotFoundException for service response error code + // "ResourceNotFoundException". + // + // The resource that you've entered was not found in your AWS account. + ErrCodeResourceNotFoundException = "ResourceNotFoundException" + + // ErrCodeThrottlingException for service response error code + // "ThrottlingException". + // + // The request was denied due to request throttling. + ErrCodeThrottlingException = "ThrottlingException" + + // ErrCodeValidationException for service response error code + // "ValidationException". + // + // The input failed to meet the constraints specified by the AWS service. + ErrCodeValidationException = "ValidationException" +) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "AccessDeniedException": newErrorAccessDeniedException, + "ConflictException": newErrorConflictException, + "InternalServerException": newErrorInternalServerException, + "ResourceNotFoundException": newErrorResourceNotFoundException, + "ThrottlingException": newErrorThrottlingException, + "ValidationException": newErrorValidationException, +} diff --git a/service/locationservice/locationserviceiface/interface.go b/service/locationservice/locationserviceiface/interface.go new file mode 100644 index 0000000000..fabd3c8735 --- /dev/null +++ b/service/locationservice/locationserviceiface/interface.go @@ -0,0 +1,225 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +// Package locationserviceiface provides an interface to enable mocking the Amazon Location Service 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 locationserviceiface + +import ( + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/service/locationservice" +) + +// LocationServiceAPI provides an interface to enable mocking the +// locationservice.LocationService 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 Location Service. +// func myFunc(svc locationserviceiface.LocationServiceAPI) bool { +// // Make svc.AssociateTrackerConsumer request +// } +// +// func main() { +// sess := session.New() +// svc := locationservice.New(sess) +// +// myFunc(svc) +// } +// +// In your _test.go file: +// +// // Define a mock struct to be used in your unit tests of myFunc. +// type mockLocationServiceClient struct { +// locationserviceiface.LocationServiceAPI +// } +// func (m *mockLocationServiceClient) AssociateTrackerConsumer(input *locationservice.AssociateTrackerConsumerInput) (*locationservice.AssociateTrackerConsumerOutput, error) { +// // mock response/functionality +// } +// +// func TestMyFunc(t *testing.T) { +// // Setup Test +// mockSvc := &mockLocationServiceClient{} +// +// 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 LocationServiceAPI interface { + AssociateTrackerConsumer(*locationservice.AssociateTrackerConsumerInput) (*locationservice.AssociateTrackerConsumerOutput, error) + AssociateTrackerConsumerWithContext(aws.Context, *locationservice.AssociateTrackerConsumerInput, ...request.Option) (*locationservice.AssociateTrackerConsumerOutput, error) + AssociateTrackerConsumerRequest(*locationservice.AssociateTrackerConsumerInput) (*request.Request, *locationservice.AssociateTrackerConsumerOutput) + + BatchDeleteGeofence(*locationservice.BatchDeleteGeofenceInput) (*locationservice.BatchDeleteGeofenceOutput, error) + BatchDeleteGeofenceWithContext(aws.Context, *locationservice.BatchDeleteGeofenceInput, ...request.Option) (*locationservice.BatchDeleteGeofenceOutput, error) + BatchDeleteGeofenceRequest(*locationservice.BatchDeleteGeofenceInput) (*request.Request, *locationservice.BatchDeleteGeofenceOutput) + + BatchEvaluateGeofences(*locationservice.BatchEvaluateGeofencesInput) (*locationservice.BatchEvaluateGeofencesOutput, error) + BatchEvaluateGeofencesWithContext(aws.Context, *locationservice.BatchEvaluateGeofencesInput, ...request.Option) (*locationservice.BatchEvaluateGeofencesOutput, error) + BatchEvaluateGeofencesRequest(*locationservice.BatchEvaluateGeofencesInput) (*request.Request, *locationservice.BatchEvaluateGeofencesOutput) + + BatchGetDevicePosition(*locationservice.BatchGetDevicePositionInput) (*locationservice.BatchGetDevicePositionOutput, error) + BatchGetDevicePositionWithContext(aws.Context, *locationservice.BatchGetDevicePositionInput, ...request.Option) (*locationservice.BatchGetDevicePositionOutput, error) + BatchGetDevicePositionRequest(*locationservice.BatchGetDevicePositionInput) (*request.Request, *locationservice.BatchGetDevicePositionOutput) + + BatchPutGeofence(*locationservice.BatchPutGeofenceInput) (*locationservice.BatchPutGeofenceOutput, error) + BatchPutGeofenceWithContext(aws.Context, *locationservice.BatchPutGeofenceInput, ...request.Option) (*locationservice.BatchPutGeofenceOutput, error) + BatchPutGeofenceRequest(*locationservice.BatchPutGeofenceInput) (*request.Request, *locationservice.BatchPutGeofenceOutput) + + BatchUpdateDevicePosition(*locationservice.BatchUpdateDevicePositionInput) (*locationservice.BatchUpdateDevicePositionOutput, error) + BatchUpdateDevicePositionWithContext(aws.Context, *locationservice.BatchUpdateDevicePositionInput, ...request.Option) (*locationservice.BatchUpdateDevicePositionOutput, error) + BatchUpdateDevicePositionRequest(*locationservice.BatchUpdateDevicePositionInput) (*request.Request, *locationservice.BatchUpdateDevicePositionOutput) + + CreateGeofenceCollection(*locationservice.CreateGeofenceCollectionInput) (*locationservice.CreateGeofenceCollectionOutput, error) + CreateGeofenceCollectionWithContext(aws.Context, *locationservice.CreateGeofenceCollectionInput, ...request.Option) (*locationservice.CreateGeofenceCollectionOutput, error) + CreateGeofenceCollectionRequest(*locationservice.CreateGeofenceCollectionInput) (*request.Request, *locationservice.CreateGeofenceCollectionOutput) + + CreateMap(*locationservice.CreateMapInput) (*locationservice.CreateMapOutput, error) + CreateMapWithContext(aws.Context, *locationservice.CreateMapInput, ...request.Option) (*locationservice.CreateMapOutput, error) + CreateMapRequest(*locationservice.CreateMapInput) (*request.Request, *locationservice.CreateMapOutput) + + CreatePlaceIndex(*locationservice.CreatePlaceIndexInput) (*locationservice.CreatePlaceIndexOutput, error) + CreatePlaceIndexWithContext(aws.Context, *locationservice.CreatePlaceIndexInput, ...request.Option) (*locationservice.CreatePlaceIndexOutput, error) + CreatePlaceIndexRequest(*locationservice.CreatePlaceIndexInput) (*request.Request, *locationservice.CreatePlaceIndexOutput) + + CreateTracker(*locationservice.CreateTrackerInput) (*locationservice.CreateTrackerOutput, error) + CreateTrackerWithContext(aws.Context, *locationservice.CreateTrackerInput, ...request.Option) (*locationservice.CreateTrackerOutput, error) + CreateTrackerRequest(*locationservice.CreateTrackerInput) (*request.Request, *locationservice.CreateTrackerOutput) + + DeleteGeofenceCollection(*locationservice.DeleteGeofenceCollectionInput) (*locationservice.DeleteGeofenceCollectionOutput, error) + DeleteGeofenceCollectionWithContext(aws.Context, *locationservice.DeleteGeofenceCollectionInput, ...request.Option) (*locationservice.DeleteGeofenceCollectionOutput, error) + DeleteGeofenceCollectionRequest(*locationservice.DeleteGeofenceCollectionInput) (*request.Request, *locationservice.DeleteGeofenceCollectionOutput) + + DeleteMap(*locationservice.DeleteMapInput) (*locationservice.DeleteMapOutput, error) + DeleteMapWithContext(aws.Context, *locationservice.DeleteMapInput, ...request.Option) (*locationservice.DeleteMapOutput, error) + DeleteMapRequest(*locationservice.DeleteMapInput) (*request.Request, *locationservice.DeleteMapOutput) + + DeletePlaceIndex(*locationservice.DeletePlaceIndexInput) (*locationservice.DeletePlaceIndexOutput, error) + DeletePlaceIndexWithContext(aws.Context, *locationservice.DeletePlaceIndexInput, ...request.Option) (*locationservice.DeletePlaceIndexOutput, error) + DeletePlaceIndexRequest(*locationservice.DeletePlaceIndexInput) (*request.Request, *locationservice.DeletePlaceIndexOutput) + + DeleteTracker(*locationservice.DeleteTrackerInput) (*locationservice.DeleteTrackerOutput, error) + DeleteTrackerWithContext(aws.Context, *locationservice.DeleteTrackerInput, ...request.Option) (*locationservice.DeleteTrackerOutput, error) + DeleteTrackerRequest(*locationservice.DeleteTrackerInput) (*request.Request, *locationservice.DeleteTrackerOutput) + + DescribeGeofenceCollection(*locationservice.DescribeGeofenceCollectionInput) (*locationservice.DescribeGeofenceCollectionOutput, error) + DescribeGeofenceCollectionWithContext(aws.Context, *locationservice.DescribeGeofenceCollectionInput, ...request.Option) (*locationservice.DescribeGeofenceCollectionOutput, error) + DescribeGeofenceCollectionRequest(*locationservice.DescribeGeofenceCollectionInput) (*request.Request, *locationservice.DescribeGeofenceCollectionOutput) + + DescribeMap(*locationservice.DescribeMapInput) (*locationservice.DescribeMapOutput, error) + DescribeMapWithContext(aws.Context, *locationservice.DescribeMapInput, ...request.Option) (*locationservice.DescribeMapOutput, error) + DescribeMapRequest(*locationservice.DescribeMapInput) (*request.Request, *locationservice.DescribeMapOutput) + + DescribePlaceIndex(*locationservice.DescribePlaceIndexInput) (*locationservice.DescribePlaceIndexOutput, error) + DescribePlaceIndexWithContext(aws.Context, *locationservice.DescribePlaceIndexInput, ...request.Option) (*locationservice.DescribePlaceIndexOutput, error) + DescribePlaceIndexRequest(*locationservice.DescribePlaceIndexInput) (*request.Request, *locationservice.DescribePlaceIndexOutput) + + DescribeTracker(*locationservice.DescribeTrackerInput) (*locationservice.DescribeTrackerOutput, error) + DescribeTrackerWithContext(aws.Context, *locationservice.DescribeTrackerInput, ...request.Option) (*locationservice.DescribeTrackerOutput, error) + DescribeTrackerRequest(*locationservice.DescribeTrackerInput) (*request.Request, *locationservice.DescribeTrackerOutput) + + DisassociateTrackerConsumer(*locationservice.DisassociateTrackerConsumerInput) (*locationservice.DisassociateTrackerConsumerOutput, error) + DisassociateTrackerConsumerWithContext(aws.Context, *locationservice.DisassociateTrackerConsumerInput, ...request.Option) (*locationservice.DisassociateTrackerConsumerOutput, error) + DisassociateTrackerConsumerRequest(*locationservice.DisassociateTrackerConsumerInput) (*request.Request, *locationservice.DisassociateTrackerConsumerOutput) + + GetDevicePosition(*locationservice.GetDevicePositionInput) (*locationservice.GetDevicePositionOutput, error) + GetDevicePositionWithContext(aws.Context, *locationservice.GetDevicePositionInput, ...request.Option) (*locationservice.GetDevicePositionOutput, error) + GetDevicePositionRequest(*locationservice.GetDevicePositionInput) (*request.Request, *locationservice.GetDevicePositionOutput) + + GetDevicePositionHistory(*locationservice.GetDevicePositionHistoryInput) (*locationservice.GetDevicePositionHistoryOutput, error) + GetDevicePositionHistoryWithContext(aws.Context, *locationservice.GetDevicePositionHistoryInput, ...request.Option) (*locationservice.GetDevicePositionHistoryOutput, error) + GetDevicePositionHistoryRequest(*locationservice.GetDevicePositionHistoryInput) (*request.Request, *locationservice.GetDevicePositionHistoryOutput) + + GetDevicePositionHistoryPages(*locationservice.GetDevicePositionHistoryInput, func(*locationservice.GetDevicePositionHistoryOutput, bool) bool) error + GetDevicePositionHistoryPagesWithContext(aws.Context, *locationservice.GetDevicePositionHistoryInput, func(*locationservice.GetDevicePositionHistoryOutput, bool) bool, ...request.Option) error + + GetGeofence(*locationservice.GetGeofenceInput) (*locationservice.GetGeofenceOutput, error) + GetGeofenceWithContext(aws.Context, *locationservice.GetGeofenceInput, ...request.Option) (*locationservice.GetGeofenceOutput, error) + GetGeofenceRequest(*locationservice.GetGeofenceInput) (*request.Request, *locationservice.GetGeofenceOutput) + + GetMapGlyphs(*locationservice.GetMapGlyphsInput) (*locationservice.GetMapGlyphsOutput, error) + GetMapGlyphsWithContext(aws.Context, *locationservice.GetMapGlyphsInput, ...request.Option) (*locationservice.GetMapGlyphsOutput, error) + GetMapGlyphsRequest(*locationservice.GetMapGlyphsInput) (*request.Request, *locationservice.GetMapGlyphsOutput) + + GetMapSprites(*locationservice.GetMapSpritesInput) (*locationservice.GetMapSpritesOutput, error) + GetMapSpritesWithContext(aws.Context, *locationservice.GetMapSpritesInput, ...request.Option) (*locationservice.GetMapSpritesOutput, error) + GetMapSpritesRequest(*locationservice.GetMapSpritesInput) (*request.Request, *locationservice.GetMapSpritesOutput) + + GetMapStyleDescriptor(*locationservice.GetMapStyleDescriptorInput) (*locationservice.GetMapStyleDescriptorOutput, error) + GetMapStyleDescriptorWithContext(aws.Context, *locationservice.GetMapStyleDescriptorInput, ...request.Option) (*locationservice.GetMapStyleDescriptorOutput, error) + GetMapStyleDescriptorRequest(*locationservice.GetMapStyleDescriptorInput) (*request.Request, *locationservice.GetMapStyleDescriptorOutput) + + GetMapTile(*locationservice.GetMapTileInput) (*locationservice.GetMapTileOutput, error) + GetMapTileWithContext(aws.Context, *locationservice.GetMapTileInput, ...request.Option) (*locationservice.GetMapTileOutput, error) + GetMapTileRequest(*locationservice.GetMapTileInput) (*request.Request, *locationservice.GetMapTileOutput) + + ListGeofenceCollections(*locationservice.ListGeofenceCollectionsInput) (*locationservice.ListGeofenceCollectionsOutput, error) + ListGeofenceCollectionsWithContext(aws.Context, *locationservice.ListGeofenceCollectionsInput, ...request.Option) (*locationservice.ListGeofenceCollectionsOutput, error) + ListGeofenceCollectionsRequest(*locationservice.ListGeofenceCollectionsInput) (*request.Request, *locationservice.ListGeofenceCollectionsOutput) + + ListGeofenceCollectionsPages(*locationservice.ListGeofenceCollectionsInput, func(*locationservice.ListGeofenceCollectionsOutput, bool) bool) error + ListGeofenceCollectionsPagesWithContext(aws.Context, *locationservice.ListGeofenceCollectionsInput, func(*locationservice.ListGeofenceCollectionsOutput, bool) bool, ...request.Option) error + + ListGeofences(*locationservice.ListGeofencesInput) (*locationservice.ListGeofencesOutput, error) + ListGeofencesWithContext(aws.Context, *locationservice.ListGeofencesInput, ...request.Option) (*locationservice.ListGeofencesOutput, error) + ListGeofencesRequest(*locationservice.ListGeofencesInput) (*request.Request, *locationservice.ListGeofencesOutput) + + ListGeofencesPages(*locationservice.ListGeofencesInput, func(*locationservice.ListGeofencesOutput, bool) bool) error + ListGeofencesPagesWithContext(aws.Context, *locationservice.ListGeofencesInput, func(*locationservice.ListGeofencesOutput, bool) bool, ...request.Option) error + + ListMaps(*locationservice.ListMapsInput) (*locationservice.ListMapsOutput, error) + ListMapsWithContext(aws.Context, *locationservice.ListMapsInput, ...request.Option) (*locationservice.ListMapsOutput, error) + ListMapsRequest(*locationservice.ListMapsInput) (*request.Request, *locationservice.ListMapsOutput) + + ListMapsPages(*locationservice.ListMapsInput, func(*locationservice.ListMapsOutput, bool) bool) error + ListMapsPagesWithContext(aws.Context, *locationservice.ListMapsInput, func(*locationservice.ListMapsOutput, bool) bool, ...request.Option) error + + ListPlaceIndexes(*locationservice.ListPlaceIndexesInput) (*locationservice.ListPlaceIndexesOutput, error) + ListPlaceIndexesWithContext(aws.Context, *locationservice.ListPlaceIndexesInput, ...request.Option) (*locationservice.ListPlaceIndexesOutput, error) + ListPlaceIndexesRequest(*locationservice.ListPlaceIndexesInput) (*request.Request, *locationservice.ListPlaceIndexesOutput) + + ListPlaceIndexesPages(*locationservice.ListPlaceIndexesInput, func(*locationservice.ListPlaceIndexesOutput, bool) bool) error + ListPlaceIndexesPagesWithContext(aws.Context, *locationservice.ListPlaceIndexesInput, func(*locationservice.ListPlaceIndexesOutput, bool) bool, ...request.Option) error + + ListTrackerConsumers(*locationservice.ListTrackerConsumersInput) (*locationservice.ListTrackerConsumersOutput, error) + ListTrackerConsumersWithContext(aws.Context, *locationservice.ListTrackerConsumersInput, ...request.Option) (*locationservice.ListTrackerConsumersOutput, error) + ListTrackerConsumersRequest(*locationservice.ListTrackerConsumersInput) (*request.Request, *locationservice.ListTrackerConsumersOutput) + + ListTrackerConsumersPages(*locationservice.ListTrackerConsumersInput, func(*locationservice.ListTrackerConsumersOutput, bool) bool) error + ListTrackerConsumersPagesWithContext(aws.Context, *locationservice.ListTrackerConsumersInput, func(*locationservice.ListTrackerConsumersOutput, bool) bool, ...request.Option) error + + ListTrackers(*locationservice.ListTrackersInput) (*locationservice.ListTrackersOutput, error) + ListTrackersWithContext(aws.Context, *locationservice.ListTrackersInput, ...request.Option) (*locationservice.ListTrackersOutput, error) + ListTrackersRequest(*locationservice.ListTrackersInput) (*request.Request, *locationservice.ListTrackersOutput) + + ListTrackersPages(*locationservice.ListTrackersInput, func(*locationservice.ListTrackersOutput, bool) bool) error + ListTrackersPagesWithContext(aws.Context, *locationservice.ListTrackersInput, func(*locationservice.ListTrackersOutput, bool) bool, ...request.Option) error + + PutGeofence(*locationservice.PutGeofenceInput) (*locationservice.PutGeofenceOutput, error) + PutGeofenceWithContext(aws.Context, *locationservice.PutGeofenceInput, ...request.Option) (*locationservice.PutGeofenceOutput, error) + PutGeofenceRequest(*locationservice.PutGeofenceInput) (*request.Request, *locationservice.PutGeofenceOutput) + + SearchPlaceIndexForPosition(*locationservice.SearchPlaceIndexForPositionInput) (*locationservice.SearchPlaceIndexForPositionOutput, error) + SearchPlaceIndexForPositionWithContext(aws.Context, *locationservice.SearchPlaceIndexForPositionInput, ...request.Option) (*locationservice.SearchPlaceIndexForPositionOutput, error) + SearchPlaceIndexForPositionRequest(*locationservice.SearchPlaceIndexForPositionInput) (*request.Request, *locationservice.SearchPlaceIndexForPositionOutput) + + SearchPlaceIndexForText(*locationservice.SearchPlaceIndexForTextInput) (*locationservice.SearchPlaceIndexForTextOutput, error) + SearchPlaceIndexForTextWithContext(aws.Context, *locationservice.SearchPlaceIndexForTextInput, ...request.Option) (*locationservice.SearchPlaceIndexForTextOutput, error) + SearchPlaceIndexForTextRequest(*locationservice.SearchPlaceIndexForTextInput) (*request.Request, *locationservice.SearchPlaceIndexForTextOutput) +} + +var _ LocationServiceAPI = (*locationservice.LocationService)(nil) diff --git a/service/locationservice/service.go b/service/locationservice/service.go new file mode 100644 index 0000000000..618863a642 --- /dev/null +++ b/service/locationservice/service.go @@ -0,0 +1,104 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +package locationservice + +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" +) + +// LocationService provides the API operation methods for making requests to +// Amazon Location Service. See this package's package overview docs +// for details on the service. +// +// LocationService methods are safe to use concurrently. It is not safe to +// modify mutate any of the struct's properties though. +type LocationService 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 = "Location" // Name of service. + EndpointsID = "geo" // ID to lookup a service endpoint with. + ServiceID = "Location" // ServiceID is a unique identifier of a specific service. +) + +// New creates a new instance of the LocationService 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 LocationService client from just a session. +// svc := locationservice.New(mySession) +// +// // Create a LocationService client with additional configuration +// svc := locationservice.New(mySession, aws.NewConfig().WithRegion("us-west-2")) +func New(p client.ConfigProvider, cfgs ...*aws.Config) *LocationService { + c := p.ClientConfig(EndpointsID, cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + c.SigningName = "geo" + } + 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) *LocationService { + svc := &LocationService{ + Client: client.New( + cfg, + metadata.ClientInfo{ + ServiceName: ServiceName, + ServiceID: ServiceID, + SigningName: signingName, + SigningRegion: signingRegion, + PartitionID: partitionID, + Endpoint: endpoint, + APIVersion: "2020-11-19", + }, + 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 LocationService operation and runs any +// custom request initialization. +func (c *LocationService) 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/prometheusservice/api.go b/service/prometheusservice/api.go index b43211509d..b09fa7fde9 100644 --- a/service/prometheusservice/api.go +++ b/service/prometheusservice/api.go @@ -57,7 +57,7 @@ func (c *PrometheusService) CreateWorkspaceRequest(input *CreateWorkspaceInput) // CreateWorkspace API operation for Amazon Prometheus Service. // -// Creates a new StealFire workspace. +// Creates a new AMP workspace. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -152,7 +152,7 @@ func (c *PrometheusService) DeleteWorkspaceRequest(input *DeleteWorkspaceInput) // DeleteWorkspace API operation for Amazon Prometheus Service. // -// Deletes a StealFire workspace. +// Deletes an AMP workspace. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -243,7 +243,7 @@ func (c *PrometheusService) DescribeWorkspaceRequest(input *DescribeWorkspaceInp // DescribeWorkspace API operation for Amazon Prometheus Service. // -// Describes an existing StealFire workspace. +// Describes an existing AMP workspace. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -340,7 +340,7 @@ func (c *PrometheusService) ListWorkspacesRequest(input *ListWorkspacesInput) (r // ListWorkspaces API operation for Amazon Prometheus Service. // -// Lists all StealFire workspaces, including workspaces being created or deleted. +// Lists all AMP workspaces, including workspaces being created or deleted. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -481,7 +481,7 @@ func (c *PrometheusService) UpdateWorkspaceAliasRequest(input *UpdateWorkspaceAl // UpdateWorkspaceAlias API operation for Amazon Prometheus Service. // -// Updates a StealFire workspace alias. +// Updates an AMP workspace alias. // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about diff --git a/service/prometheusservice/doc.go b/service/prometheusservice/doc.go index c4dbf111a7..d6c248e103 100644 --- a/service/prometheusservice/doc.go +++ b/service/prometheusservice/doc.go @@ -3,7 +3,7 @@ // Package prometheusservice provides the client and types for making API // requests to Amazon Prometheus Service. // -// StealFire Service +// Amazon Managed Service for Prometheus // // See https://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01 for more information on this service. // diff --git a/service/quicksight/api.go b/service/quicksight/api.go index aa114baa0a..4b98ae3031 100644 --- a/service/quicksight/api.go +++ b/service/quicksight/api.go @@ -1016,7 +1016,7 @@ func (c *QuickSight) CreateIngestionRequest(input *CreateIngestionInput) (req *r // // Any ingestions operating on tagged datasets inherit the same tags automatically // for use in access control. For an example, see How do I create an IAM policy -// to control access to Amazon EC2 resources using tags? (https://aws.amazon.com/premiumsupport/knowledge-center/iam-ec2-resource-tags/) +// to control access to Amazon EC2 resources using tags? (http://aws.amazon.com/premiumsupport/knowledge-center/iam-ec2-resource-tags/) // in the AWS Knowledge Center. Tags are visible on the tagged dataset, but // not on the ingestion resource. // @@ -5304,8 +5304,8 @@ func (c *QuickSight) GetDashboardEmbedUrlRequest(input *GetDashboardEmbedUrlInpu // // * The resulting user session is valid for 10 hours. // -// For more information, see Embedding Amazon QuickSight (https://docs.aws.amazon.com/quicksight/latest/user/embedding-dashboards.html) -// in the Amazon QuickSight User Guide . +// For more information, see Embedded Analytics (https://docs.aws.amazon.com/quicksight/latest/user/embedded-analytics.html) +// in the Amazon QuickSight User 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 @@ -5360,13 +5360,12 @@ func (c *QuickSight) GetDashboardEmbedUrlRequest(input *GetDashboardEmbedUrlInpu // * UnsupportedPricingPlanException // This error indicates that you are calling an embedding operation in Amazon // QuickSight without the required pricing plan on your AWS account. Before -// you can use anonymous embedding, a QuickSight administrator needs to add -// capacity pricing to QuickSight. You can do this on the Manage QuickSight +// you can use embedding for anonymous users, a QuickSight administrator needs +// to add capacity pricing to QuickSight. You can do this on the Manage QuickSight // page. // -// After capacity pricing is added, you can enable anonymous embedding by using -// the GetDashboardEmbedUrl API operation with the --identity-type ANONYMOUS -// option. +// After capacity pricing is added, you can use the GetDashboardEmbedUrl API +// operation with the --identity-type ANONYMOUS option. // // * InternalFailureException // An internal failure occurred. @@ -15964,7 +15963,7 @@ type DataSet struct { // The ID of the dataset. DataSetId *string `type:"string"` - // Indicates whether you want to import the data into SPICE. + // A value that indicates whether you want to import the data into SPICE. ImportMode *string `type:"string" enum:"DataSetImportMode"` // The last time that this dataset was updated. @@ -16202,7 +16201,7 @@ type DataSetSummary struct { // The Amazon Resource Name (ARN) of the dataset. Arn *string `type:"string"` - // Indicates if the dataset has column level permission configured. + // A value that indicates if the dataset has column level permission configured. ColumnLevelPermissionRulesApplied *bool `type:"boolean"` // The time that this dataset was created. @@ -16211,7 +16210,7 @@ type DataSetSummary struct { // The ID of the dataset. DataSetId *string `type:"string"` - // Indicates whether you want to import the data into SPICE. + // A value that indicates whether you want to import the data into SPICE. ImportMode *string `type:"string" enum:"DataSetImportMode"` // The last time that this dataset was updated. @@ -21306,15 +21305,15 @@ func (s *GeoSpatialColumnGroup) SetName(v string) *GeoSpatialColumnGroup { return s } -// Parameter input for the GetDashboardEmbedUrl operation. type GetDashboardEmbedUrlInput struct { _ struct{} `type:"structure"` - // A list of one or more dashboard ids that you want to add to a session that - // includes anonymous authorizations. IdentityType must be set to ANONYMOUS + // A list of one or more dashboard IDs that you want to add to a session that + // includes anonymous users. The IdentityType parameter must be set to ANONYMOUS // for this to work, because other identity types authenticate as QuickSight - // users. For example, if you set "--dashboard-id dash_id1 --dashboard-id dash_id2 - // dash_id3 identity-type ANONYMOUS", the session can access all three dashboards. + // or IAM users. For example, if you set "--dashboard-id dash_id1 --dashboard-id + // dash_id2 dash_id3 identity-type ANONYMOUS", the session can access all three + // dashboards. AdditionalDashboardIds []*string `location:"querystring" locationName:"additional-dashboard-ids" min:"1" type:"list"` // The ID for the AWS account that contains the dashboard that you're embedding. @@ -21322,7 +21321,8 @@ type GetDashboardEmbedUrlInput struct { // AwsAccountId is a required field AwsAccountId *string `location:"uri" locationName:"AwsAccountId" min:"12" type:"string" required:"true"` - // The ID for the dashboard, also added to the IAM policy. + // The ID for the dashboard, also added to the AWS Identity and Access Management + // (IAM) policy. // // DashboardId is a required field DashboardId *string `location:"uri" locationName:"DashboardId" min:"1" type:"string" required:"true"` @@ -21348,9 +21348,9 @@ type GetDashboardEmbedUrlInput struct { // Persistence applies to the sheet and the parameter settings. These are control // settings that the dashboard subscriber (QuickSight reader) chooses while // viewing the dashboard. If this is set to TRUE, the settings are the same - // when the the subscriber reopens the same dashboard URL. The state is stored - // in QuickSight, not in a browser cookie. If this is set to FALSE, the state - // of the user session is not persisted. The default is FALSE. + // when the subscriber reopens the same dashboard URL. The state is stored in + // QuickSight, not in a browser cookie. If this is set to FALSE, the state of + // the user session is not persisted. The default is FALSE. StatePersistenceEnabled *bool `location:"querystring" locationName:"state-persistence-enabled" type:"boolean"` // Remove the undo/redo button on the embedded dashboard. The default is FALSE, @@ -21558,10 +21558,11 @@ type GetSessionEmbedUrlInput struct { // // Invited nonfederated users // - // IAM users and IAM role-based sessions authenticated through Federated Single - // Sign-On using SAML, OpenID Connect, or IAM federation + // AWS Identity and Access Management (IAM) users and IAM role-based sessions + // authenticated through Federated Single Sign-On using SAML, OpenID Connect, + // or IAM federation // - // Omit this parameter for users in the third group – IAM users and IAM role-based + // Omit this parameter for users in the third group, IAM users and IAM role-based // sessions. UserArn *string `location:"querystring" locationName:"user-arn" type:"string"` } @@ -22499,8 +22500,8 @@ func (s *JoinInstruction) SetType(v string) *JoinInstruction { type JoinKeyProperties struct { _ struct{} `type:"structure"` - // Indicates that a row in a table is uniquely identified by the columns in - // a join key. This is used by QuickSight to optimize query performance. + // A value that indicates that a row in a table is uniquely identified by the + // columns in a join key. This is used by QuickSight to optimize query performance. UniqueKey *bool `type:"boolean"` } @@ -26336,7 +26337,7 @@ type RegisterUserInput struct { // scenarios, for example when you are registering an IAM user or an Amazon // QuickSight user. You can register multiple users using the same IAM role // if each user has a different session name. For more information on assuming - // IAM roles, see assume-role (https://awscli.amazonaws.com/v2/documentation/api/latest/reference/sts/assume-role.html) + // IAM roles, see assume-role (https://docs.aws.amazon.com/cli/latest/reference/sts/assume-role.html) // in the AWS CLI Reference. SessionName *string `min:"2" type:"string"` @@ -26522,6 +26523,9 @@ func (s *RegisterUserOutput) SetUserInvitationUrl(v string) *RegisterUserOutput type RelationalTable struct { _ struct{} `type:"structure"` + // The catalog associated with a table. + Catalog *string `type:"string"` + // The Amazon Resource Name (ARN) for the data source. // // DataSourceArn is a required field @@ -26586,6 +26590,12 @@ func (s *RelationalTable) Validate() error { return nil } +// SetCatalog sets the Catalog field's value. +func (s *RelationalTable) SetCatalog(v string) *RelationalTable { + s.Catalog = &v + return s +} + // SetDataSourceArn sets the DataSourceArn field's value. func (s *RelationalTable) SetDataSourceArn(v string) *RelationalTable { s.DataSourceArn = &v @@ -29717,13 +29727,12 @@ func (s *UIColorPalette) SetWarningForeground(v string) *UIColorPalette { // This error indicates that you are calling an embedding operation in Amazon // QuickSight without the required pricing plan on your AWS account. Before -// you can use anonymous embedding, a QuickSight administrator needs to add -// capacity pricing to QuickSight. You can do this on the Manage QuickSight +// you can use embedding for anonymous users, a QuickSight administrator needs +// to add capacity pricing to QuickSight. You can do this on the Manage QuickSight // page. // -// After capacity pricing is added, you can enable anonymous embedding by using -// the GetDashboardEmbedUrl API operation with the --identity-type ANONYMOUS -// option. +// After capacity pricing is added, you can use the GetDashboardEmbedUrl API +// operation with the --identity-type ANONYMOUS option. type UnsupportedPricingPlanException struct { _ struct{} `type:"structure"` RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` diff --git a/service/quicksight/errors.go b/service/quicksight/errors.go index 34fe15ec6c..1b972231ea 100644 --- a/service/quicksight/errors.go +++ b/service/quicksight/errors.go @@ -111,13 +111,12 @@ const ( // // This error indicates that you are calling an embedding operation in Amazon // QuickSight without the required pricing plan on your AWS account. Before - // you can use anonymous embedding, a QuickSight administrator needs to add - // capacity pricing to QuickSight. You can do this on the Manage QuickSight + // you can use embedding for anonymous users, a QuickSight administrator needs + // to add capacity pricing to QuickSight. You can do this on the Manage QuickSight // page. // - // After capacity pricing is added, you can enable anonymous embedding by using - // the GetDashboardEmbedUrl API operation with the --identity-type ANONYMOUS - // option. + // After capacity pricing is added, you can use the GetDashboardEmbedUrl API + // operation with the --identity-type ANONYMOUS option. ErrCodeUnsupportedPricingPlanException = "UnsupportedPricingPlanException" // ErrCodeUnsupportedUserEditionException for service response error code diff --git a/service/wellarchitected/api.go b/service/wellarchitected/api.go new file mode 100644 index 0000000000..6b192f91f2 --- /dev/null +++ b/service/wellarchitected/api.go @@ -0,0 +1,8745 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +package wellarchitected + +import ( + "fmt" + "time" + + "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 opAssociateLenses = "AssociateLenses" + +// AssociateLensesRequest generates a "aws/request.Request" representing the +// client's request for the AssociateLenses operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See AssociateLenses for more information on using the AssociateLenses +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the AssociateLensesRequest method. +// req, resp := client.AssociateLensesRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/wellarchitected-2020-03-31/AssociateLenses +func (c *WellArchitected) AssociateLensesRequest(input *AssociateLensesInput) (req *request.Request, output *AssociateLensesOutput) { + op := &request.Operation{ + Name: opAssociateLenses, + HTTPMethod: "PATCH", + HTTPPath: "/workloads/{WorkloadId}/associateLenses", + } + + if input == nil { + input = &AssociateLensesInput{} + } + + output = &AssociateLensesOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// AssociateLenses API operation for AWS Well-Architected Tool. +// +// Associate a lens to a workload. +// +// Returns awserr.Error for service API and SDK errors. Use runtime 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 Well-Architected Tool's +// API operation AssociateLenses for usage and error information. +// +// Returned Error Types: +// * ValidationException +// The user input is not valid. +// +// * ResourceNotFoundException +// The requested resource was not found. +// +// * ConflictException +// The resource already exists. +// +// * InternalServerException +// There is a problem with the AWS Well-Architected Tool API service. +// +// * AccessDeniedException +// User does not have sufficient access to perform this action. +// +// * ThrottlingException +// Request was denied due to request throttling. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/wellarchitected-2020-03-31/AssociateLenses +func (c *WellArchitected) AssociateLenses(input *AssociateLensesInput) (*AssociateLensesOutput, error) { + req, out := c.AssociateLensesRequest(input) + return out, req.Send() +} + +// AssociateLensesWithContext is the same as AssociateLenses with the addition of +// the ability to pass a context and additional request options. +// +// See AssociateLenses for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *WellArchitected) AssociateLensesWithContext(ctx aws.Context, input *AssociateLensesInput, opts ...request.Option) (*AssociateLensesOutput, error) { + req, out := c.AssociateLensesRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opCreateMilestone = "CreateMilestone" + +// CreateMilestoneRequest generates a "aws/request.Request" representing the +// client's request for the CreateMilestone operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See CreateMilestone for more information on using the CreateMilestone +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the CreateMilestoneRequest method. +// req, resp := client.CreateMilestoneRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/wellarchitected-2020-03-31/CreateMilestone +func (c *WellArchitected) CreateMilestoneRequest(input *CreateMilestoneInput) (req *request.Request, output *CreateMilestoneOutput) { + op := &request.Operation{ + Name: opCreateMilestone, + HTTPMethod: "POST", + HTTPPath: "/workloads/{WorkloadId}/milestones", + } + + if input == nil { + input = &CreateMilestoneInput{} + } + + output = &CreateMilestoneOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateMilestone API operation for AWS Well-Architected Tool. +// +// Create a milestone for an existing workload. +// +// Returns awserr.Error for service API and SDK errors. Use runtime 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 Well-Architected Tool's +// API operation CreateMilestone for usage and error information. +// +// Returned Error Types: +// * ValidationException +// The user input is not valid. +// +// * ConflictException +// The resource already exists. +// +// * InternalServerException +// There is a problem with the AWS Well-Architected Tool API service. +// +// * ResourceNotFoundException +// The requested resource was not found. +// +// * ServiceQuotaExceededException +// The user has reached their resource quota. +// +// * AccessDeniedException +// User does not have sufficient access to perform this action. +// +// * ThrottlingException +// Request was denied due to request throttling. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/wellarchitected-2020-03-31/CreateMilestone +func (c *WellArchitected) CreateMilestone(input *CreateMilestoneInput) (*CreateMilestoneOutput, error) { + req, out := c.CreateMilestoneRequest(input) + return out, req.Send() +} + +// CreateMilestoneWithContext is the same as CreateMilestone with the addition of +// the ability to pass a context and additional request options. +// +// See CreateMilestone for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *WellArchitected) CreateMilestoneWithContext(ctx aws.Context, input *CreateMilestoneInput, opts ...request.Option) (*CreateMilestoneOutput, error) { + req, out := c.CreateMilestoneRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opCreateWorkload = "CreateWorkload" + +// CreateWorkloadRequest generates a "aws/request.Request" representing the +// client's request for the CreateWorkload operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See CreateWorkload for more information on using the CreateWorkload +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the CreateWorkloadRequest method. +// req, resp := client.CreateWorkloadRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/wellarchitected-2020-03-31/CreateWorkload +func (c *WellArchitected) CreateWorkloadRequest(input *CreateWorkloadInput) (req *request.Request, output *CreateWorkloadOutput) { + op := &request.Operation{ + Name: opCreateWorkload, + HTTPMethod: "POST", + HTTPPath: "/workloads", + } + + if input == nil { + input = &CreateWorkloadInput{} + } + + output = &CreateWorkloadOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateWorkload API operation for AWS Well-Architected Tool. +// +// Create a new workload. +// +// The owner of a workload can share the workload with other AWS accounts and +// IAM users in the same AWS Region. Only the owner of a workload can delete +// it. +// +// For more information, see Defining a Workload (https://docs.aws.amazon.com/wellarchitected/latest/userguide/define-workload.html) +// in the AWS Well-Architected Tool User 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 AWS Well-Architected Tool's +// API operation CreateWorkload for usage and error information. +// +// Returned Error Types: +// * ValidationException +// The user input is not valid. +// +// * ConflictException +// The resource already exists. +// +// * ServiceQuotaExceededException +// The user has reached their resource quota. +// +// * InternalServerException +// There is a problem with the AWS Well-Architected Tool API service. +// +// * AccessDeniedException +// User does not have sufficient access to perform this action. +// +// * ThrottlingException +// Request was denied due to request throttling. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/wellarchitected-2020-03-31/CreateWorkload +func (c *WellArchitected) CreateWorkload(input *CreateWorkloadInput) (*CreateWorkloadOutput, error) { + req, out := c.CreateWorkloadRequest(input) + return out, req.Send() +} + +// CreateWorkloadWithContext is the same as CreateWorkload with the addition of +// the ability to pass a context and additional request options. +// +// See CreateWorkload for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *WellArchitected) CreateWorkloadWithContext(ctx aws.Context, input *CreateWorkloadInput, opts ...request.Option) (*CreateWorkloadOutput, error) { + req, out := c.CreateWorkloadRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opCreateWorkloadShare = "CreateWorkloadShare" + +// CreateWorkloadShareRequest generates a "aws/request.Request" representing the +// client's request for the CreateWorkloadShare operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See CreateWorkloadShare for more information on using the CreateWorkloadShare +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the CreateWorkloadShareRequest method. +// req, resp := client.CreateWorkloadShareRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/wellarchitected-2020-03-31/CreateWorkloadShare +func (c *WellArchitected) CreateWorkloadShareRequest(input *CreateWorkloadShareInput) (req *request.Request, output *CreateWorkloadShareOutput) { + op := &request.Operation{ + Name: opCreateWorkloadShare, + HTTPMethod: "POST", + HTTPPath: "/workloads/{WorkloadId}/shares", + } + + if input == nil { + input = &CreateWorkloadShareInput{} + } + + output = &CreateWorkloadShareOutput{} + req = c.newRequest(op, input, output) + return +} + +// CreateWorkloadShare API operation for AWS Well-Architected Tool. +// +// Create a workload share. +// +// The owner of a workload can share it with other AWS accounts and IAM users +// in the same AWS Region. Shared access to a workload is not removed until +// the workload invitation is deleted. +// +// For more information, see Sharing a Workload (https://docs.aws.amazon.com/wellarchitected/latest/userguide/workloads-sharing.html) +// in the AWS Well-Architected Tool User 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 AWS Well-Architected Tool's +// API operation CreateWorkloadShare for usage and error information. +// +// Returned Error Types: +// * ValidationException +// The user input is not valid. +// +// * ConflictException +// The resource already exists. +// +// * InternalServerException +// There is a problem with the AWS Well-Architected Tool API service. +// +// * ResourceNotFoundException +// The requested resource was not found. +// +// * ServiceQuotaExceededException +// The user has reached their resource quota. +// +// * AccessDeniedException +// User does not have sufficient access to perform this action. +// +// * ThrottlingException +// Request was denied due to request throttling. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/wellarchitected-2020-03-31/CreateWorkloadShare +func (c *WellArchitected) CreateWorkloadShare(input *CreateWorkloadShareInput) (*CreateWorkloadShareOutput, error) { + req, out := c.CreateWorkloadShareRequest(input) + return out, req.Send() +} + +// CreateWorkloadShareWithContext is the same as CreateWorkloadShare with the addition of +// the ability to pass a context and additional request options. +// +// See CreateWorkloadShare for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *WellArchitected) CreateWorkloadShareWithContext(ctx aws.Context, input *CreateWorkloadShareInput, opts ...request.Option) (*CreateWorkloadShareOutput, error) { + req, out := c.CreateWorkloadShareRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDeleteWorkload = "DeleteWorkload" + +// DeleteWorkloadRequest generates a "aws/request.Request" representing the +// client's request for the DeleteWorkload operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DeleteWorkload for more information on using the DeleteWorkload +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DeleteWorkloadRequest method. +// req, resp := client.DeleteWorkloadRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/wellarchitected-2020-03-31/DeleteWorkload +func (c *WellArchitected) DeleteWorkloadRequest(input *DeleteWorkloadInput) (req *request.Request, output *DeleteWorkloadOutput) { + op := &request.Operation{ + Name: opDeleteWorkload, + HTTPMethod: "DELETE", + HTTPPath: "/workloads/{WorkloadId}", + } + + if input == nil { + input = &DeleteWorkloadInput{} + } + + output = &DeleteWorkloadOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// DeleteWorkload API operation for AWS Well-Architected Tool. +// +// Delete an existing workload. +// +// Returns awserr.Error for service API and SDK errors. Use runtime 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 Well-Architected Tool's +// API operation DeleteWorkload for usage and error information. +// +// Returned Error Types: +// * ValidationException +// The user input is not valid. +// +// * ResourceNotFoundException +// The requested resource was not found. +// +// * ConflictException +// The resource already exists. +// +// * InternalServerException +// There is a problem with the AWS Well-Architected Tool API service. +// +// * AccessDeniedException +// User does not have sufficient access to perform this action. +// +// * ThrottlingException +// Request was denied due to request throttling. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/wellarchitected-2020-03-31/DeleteWorkload +func (c *WellArchitected) DeleteWorkload(input *DeleteWorkloadInput) (*DeleteWorkloadOutput, error) { + req, out := c.DeleteWorkloadRequest(input) + return out, req.Send() +} + +// DeleteWorkloadWithContext is the same as DeleteWorkload with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteWorkload for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *WellArchitected) DeleteWorkloadWithContext(ctx aws.Context, input *DeleteWorkloadInput, opts ...request.Option) (*DeleteWorkloadOutput, error) { + req, out := c.DeleteWorkloadRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDeleteWorkloadShare = "DeleteWorkloadShare" + +// DeleteWorkloadShareRequest generates a "aws/request.Request" representing the +// client's request for the DeleteWorkloadShare operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DeleteWorkloadShare for more information on using the DeleteWorkloadShare +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DeleteWorkloadShareRequest method. +// req, resp := client.DeleteWorkloadShareRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/wellarchitected-2020-03-31/DeleteWorkloadShare +func (c *WellArchitected) DeleteWorkloadShareRequest(input *DeleteWorkloadShareInput) (req *request.Request, output *DeleteWorkloadShareOutput) { + op := &request.Operation{ + Name: opDeleteWorkloadShare, + HTTPMethod: "DELETE", + HTTPPath: "/workloads/{WorkloadId}/shares/{ShareId}", + } + + if input == nil { + input = &DeleteWorkloadShareInput{} + } + + output = &DeleteWorkloadShareOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// DeleteWorkloadShare API operation for AWS Well-Architected Tool. +// +// Delete a workload share. +// +// Returns awserr.Error for service API and SDK errors. Use runtime 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 Well-Architected Tool's +// API operation DeleteWorkloadShare for usage and error information. +// +// Returned Error Types: +// * ValidationException +// The user input is not valid. +// +// * InternalServerException +// There is a problem with the AWS Well-Architected Tool API service. +// +// * ResourceNotFoundException +// The requested resource was not found. +// +// * ConflictException +// The resource already exists. +// +// * AccessDeniedException +// User does not have sufficient access to perform this action. +// +// * ThrottlingException +// Request was denied due to request throttling. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/wellarchitected-2020-03-31/DeleteWorkloadShare +func (c *WellArchitected) DeleteWorkloadShare(input *DeleteWorkloadShareInput) (*DeleteWorkloadShareOutput, error) { + req, out := c.DeleteWorkloadShareRequest(input) + return out, req.Send() +} + +// DeleteWorkloadShareWithContext is the same as DeleteWorkloadShare with the addition of +// the ability to pass a context and additional request options. +// +// See DeleteWorkloadShare for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *WellArchitected) DeleteWorkloadShareWithContext(ctx aws.Context, input *DeleteWorkloadShareInput, opts ...request.Option) (*DeleteWorkloadShareOutput, error) { + req, out := c.DeleteWorkloadShareRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opDisassociateLenses = "DisassociateLenses" + +// DisassociateLensesRequest generates a "aws/request.Request" representing the +// client's request for the DisassociateLenses operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See DisassociateLenses for more information on using the DisassociateLenses +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the DisassociateLensesRequest method. +// req, resp := client.DisassociateLensesRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/wellarchitected-2020-03-31/DisassociateLenses +func (c *WellArchitected) DisassociateLensesRequest(input *DisassociateLensesInput) (req *request.Request, output *DisassociateLensesOutput) { + op := &request.Operation{ + Name: opDisassociateLenses, + HTTPMethod: "PATCH", + HTTPPath: "/workloads/{WorkloadId}/disassociateLenses", + } + + if input == nil { + input = &DisassociateLensesInput{} + } + + output = &DisassociateLensesOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// DisassociateLenses API operation for AWS Well-Architected Tool. +// +// Disassociate a lens from a workload. +// +// The AWS Well-Architected Framework lens (wellarchitected) cannot be removed +// from a workload. +// +// Returns awserr.Error for service API and SDK errors. Use runtime 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 Well-Architected Tool's +// API operation DisassociateLenses for usage and error information. +// +// Returned Error Types: +// * ValidationException +// The user input is not valid. +// +// * ResourceNotFoundException +// The requested resource was not found. +// +// * ConflictException +// The resource already exists. +// +// * InternalServerException +// There is a problem with the AWS Well-Architected Tool API service. +// +// * AccessDeniedException +// User does not have sufficient access to perform this action. +// +// * ThrottlingException +// Request was denied due to request throttling. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/wellarchitected-2020-03-31/DisassociateLenses +func (c *WellArchitected) DisassociateLenses(input *DisassociateLensesInput) (*DisassociateLensesOutput, error) { + req, out := c.DisassociateLensesRequest(input) + return out, req.Send() +} + +// DisassociateLensesWithContext is the same as DisassociateLenses with the addition of +// the ability to pass a context and additional request options. +// +// See DisassociateLenses for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *WellArchitected) DisassociateLensesWithContext(ctx aws.Context, input *DisassociateLensesInput, opts ...request.Option) (*DisassociateLensesOutput, error) { + req, out := c.DisassociateLensesRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opGetAnswer = "GetAnswer" + +// GetAnswerRequest generates a "aws/request.Request" representing the +// client's request for the GetAnswer operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See GetAnswer for more information on using the GetAnswer +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the GetAnswerRequest method. +// req, resp := client.GetAnswerRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/wellarchitected-2020-03-31/GetAnswer +func (c *WellArchitected) GetAnswerRequest(input *GetAnswerInput) (req *request.Request, output *GetAnswerOutput) { + op := &request.Operation{ + Name: opGetAnswer, + HTTPMethod: "GET", + HTTPPath: "/workloads/{WorkloadId}/lensReviews/{LensAlias}/answers/{QuestionId}", + } + + if input == nil { + input = &GetAnswerInput{} + } + + output = &GetAnswerOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetAnswer API operation for AWS Well-Architected Tool. +// +// Get lens review. +// +// Returns awserr.Error for service API and SDK errors. Use runtime 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 Well-Architected Tool's +// API operation GetAnswer for usage and error information. +// +// Returned Error Types: +// * ValidationException +// The user input is not valid. +// +// * ResourceNotFoundException +// The requested resource was not found. +// +// * InternalServerException +// There is a problem with the AWS Well-Architected Tool API service. +// +// * AccessDeniedException +// User does not have sufficient access to perform this action. +// +// * ThrottlingException +// Request was denied due to request throttling. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/wellarchitected-2020-03-31/GetAnswer +func (c *WellArchitected) GetAnswer(input *GetAnswerInput) (*GetAnswerOutput, error) { + req, out := c.GetAnswerRequest(input) + return out, req.Send() +} + +// GetAnswerWithContext is the same as GetAnswer with the addition of +// the ability to pass a context and additional request options. +// +// See GetAnswer for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *WellArchitected) GetAnswerWithContext(ctx aws.Context, input *GetAnswerInput, opts ...request.Option) (*GetAnswerOutput, error) { + req, out := c.GetAnswerRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opGetLensReview = "GetLensReview" + +// GetLensReviewRequest generates a "aws/request.Request" representing the +// client's request for the GetLensReview operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See GetLensReview for more information on using the GetLensReview +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the GetLensReviewRequest method. +// req, resp := client.GetLensReviewRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/wellarchitected-2020-03-31/GetLensReview +func (c *WellArchitected) GetLensReviewRequest(input *GetLensReviewInput) (req *request.Request, output *GetLensReviewOutput) { + op := &request.Operation{ + Name: opGetLensReview, + HTTPMethod: "GET", + HTTPPath: "/workloads/{WorkloadId}/lensReviews/{LensAlias}", + } + + if input == nil { + input = &GetLensReviewInput{} + } + + output = &GetLensReviewOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetLensReview API operation for AWS Well-Architected Tool. +// +// Get lens review. +// +// Returns awserr.Error for service API and SDK errors. Use runtime 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 Well-Architected Tool's +// API operation GetLensReview for usage and error information. +// +// Returned Error Types: +// * ValidationException +// The user input is not valid. +// +// * ResourceNotFoundException +// The requested resource was not found. +// +// * InternalServerException +// There is a problem with the AWS Well-Architected Tool API service. +// +// * AccessDeniedException +// User does not have sufficient access to perform this action. +// +// * ThrottlingException +// Request was denied due to request throttling. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/wellarchitected-2020-03-31/GetLensReview +func (c *WellArchitected) GetLensReview(input *GetLensReviewInput) (*GetLensReviewOutput, error) { + req, out := c.GetLensReviewRequest(input) + return out, req.Send() +} + +// GetLensReviewWithContext is the same as GetLensReview with the addition of +// the ability to pass a context and additional request options. +// +// See GetLensReview for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *WellArchitected) GetLensReviewWithContext(ctx aws.Context, input *GetLensReviewInput, opts ...request.Option) (*GetLensReviewOutput, error) { + req, out := c.GetLensReviewRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opGetLensReviewReport = "GetLensReviewReport" + +// GetLensReviewReportRequest generates a "aws/request.Request" representing the +// client's request for the GetLensReviewReport operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See GetLensReviewReport for more information on using the GetLensReviewReport +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the GetLensReviewReportRequest method. +// req, resp := client.GetLensReviewReportRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/wellarchitected-2020-03-31/GetLensReviewReport +func (c *WellArchitected) GetLensReviewReportRequest(input *GetLensReviewReportInput) (req *request.Request, output *GetLensReviewReportOutput) { + op := &request.Operation{ + Name: opGetLensReviewReport, + HTTPMethod: "GET", + HTTPPath: "/workloads/{WorkloadId}/lensReviews/{LensAlias}/report", + } + + if input == nil { + input = &GetLensReviewReportInput{} + } + + output = &GetLensReviewReportOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetLensReviewReport API operation for AWS Well-Architected Tool. +// +// Get lens review report. +// +// Returns awserr.Error for service API and SDK errors. Use runtime 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 Well-Architected Tool's +// API operation GetLensReviewReport for usage and error information. +// +// Returned Error Types: +// * ValidationException +// The user input is not valid. +// +// * ResourceNotFoundException +// The requested resource was not found. +// +// * InternalServerException +// There is a problem with the AWS Well-Architected Tool API service. +// +// * AccessDeniedException +// User does not have sufficient access to perform this action. +// +// * ThrottlingException +// Request was denied due to request throttling. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/wellarchitected-2020-03-31/GetLensReviewReport +func (c *WellArchitected) GetLensReviewReport(input *GetLensReviewReportInput) (*GetLensReviewReportOutput, error) { + req, out := c.GetLensReviewReportRequest(input) + return out, req.Send() +} + +// GetLensReviewReportWithContext is the same as GetLensReviewReport with the addition of +// the ability to pass a context and additional request options. +// +// See GetLensReviewReport for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *WellArchitected) GetLensReviewReportWithContext(ctx aws.Context, input *GetLensReviewReportInput, opts ...request.Option) (*GetLensReviewReportOutput, error) { + req, out := c.GetLensReviewReportRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opGetLensVersionDifference = "GetLensVersionDifference" + +// GetLensVersionDifferenceRequest generates a "aws/request.Request" representing the +// client's request for the GetLensVersionDifference operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See GetLensVersionDifference for more information on using the GetLensVersionDifference +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the GetLensVersionDifferenceRequest method. +// req, resp := client.GetLensVersionDifferenceRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/wellarchitected-2020-03-31/GetLensVersionDifference +func (c *WellArchitected) GetLensVersionDifferenceRequest(input *GetLensVersionDifferenceInput) (req *request.Request, output *GetLensVersionDifferenceOutput) { + op := &request.Operation{ + Name: opGetLensVersionDifference, + HTTPMethod: "GET", + HTTPPath: "/lenses/{LensAlias}/versionDifference", + } + + if input == nil { + input = &GetLensVersionDifferenceInput{} + } + + output = &GetLensVersionDifferenceOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetLensVersionDifference API operation for AWS Well-Architected Tool. +// +// Get lens version differences. +// +// Returns awserr.Error for service API and SDK errors. Use runtime 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 Well-Architected Tool's +// API operation GetLensVersionDifference for usage and error information. +// +// Returned Error Types: +// * ValidationException +// The user input is not valid. +// +// * ResourceNotFoundException +// The requested resource was not found. +// +// * InternalServerException +// There is a problem with the AWS Well-Architected Tool API service. +// +// * AccessDeniedException +// User does not have sufficient access to perform this action. +// +// * ThrottlingException +// Request was denied due to request throttling. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/wellarchitected-2020-03-31/GetLensVersionDifference +func (c *WellArchitected) GetLensVersionDifference(input *GetLensVersionDifferenceInput) (*GetLensVersionDifferenceOutput, error) { + req, out := c.GetLensVersionDifferenceRequest(input) + return out, req.Send() +} + +// GetLensVersionDifferenceWithContext is the same as GetLensVersionDifference with the addition of +// the ability to pass a context and additional request options. +// +// See GetLensVersionDifference for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *WellArchitected) GetLensVersionDifferenceWithContext(ctx aws.Context, input *GetLensVersionDifferenceInput, opts ...request.Option) (*GetLensVersionDifferenceOutput, error) { + req, out := c.GetLensVersionDifferenceRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opGetMilestone = "GetMilestone" + +// GetMilestoneRequest generates a "aws/request.Request" representing the +// client's request for the GetMilestone operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See GetMilestone for more information on using the GetMilestone +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the GetMilestoneRequest method. +// req, resp := client.GetMilestoneRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/wellarchitected-2020-03-31/GetMilestone +func (c *WellArchitected) GetMilestoneRequest(input *GetMilestoneInput) (req *request.Request, output *GetMilestoneOutput) { + op := &request.Operation{ + Name: opGetMilestone, + HTTPMethod: "GET", + HTTPPath: "/workloads/{WorkloadId}/milestones/{MilestoneNumber}", + } + + if input == nil { + input = &GetMilestoneInput{} + } + + output = &GetMilestoneOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetMilestone API operation for AWS Well-Architected Tool. +// +// Get a milestone for an existing workload. +// +// Returns awserr.Error for service API and SDK errors. Use runtime 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 Well-Architected Tool's +// API operation GetMilestone for usage and error information. +// +// Returned Error Types: +// * ValidationException +// The user input is not valid. +// +// * ResourceNotFoundException +// The requested resource was not found. +// +// * InternalServerException +// There is a problem with the AWS Well-Architected Tool API service. +// +// * AccessDeniedException +// User does not have sufficient access to perform this action. +// +// * ThrottlingException +// Request was denied due to request throttling. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/wellarchitected-2020-03-31/GetMilestone +func (c *WellArchitected) GetMilestone(input *GetMilestoneInput) (*GetMilestoneOutput, error) { + req, out := c.GetMilestoneRequest(input) + return out, req.Send() +} + +// GetMilestoneWithContext is the same as GetMilestone with the addition of +// the ability to pass a context and additional request options. +// +// See GetMilestone for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *WellArchitected) GetMilestoneWithContext(ctx aws.Context, input *GetMilestoneInput, opts ...request.Option) (*GetMilestoneOutput, error) { + req, out := c.GetMilestoneRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opGetWorkload = "GetWorkload" + +// GetWorkloadRequest generates a "aws/request.Request" representing the +// client's request for the GetWorkload operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See GetWorkload for more information on using the GetWorkload +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the GetWorkloadRequest method. +// req, resp := client.GetWorkloadRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/wellarchitected-2020-03-31/GetWorkload +func (c *WellArchitected) GetWorkloadRequest(input *GetWorkloadInput) (req *request.Request, output *GetWorkloadOutput) { + op := &request.Operation{ + Name: opGetWorkload, + HTTPMethod: "GET", + HTTPPath: "/workloads/{WorkloadId}", + } + + if input == nil { + input = &GetWorkloadInput{} + } + + output = &GetWorkloadOutput{} + req = c.newRequest(op, input, output) + return +} + +// GetWorkload API operation for AWS Well-Architected Tool. +// +// Get an existing workload. +// +// Returns awserr.Error for service API and SDK errors. Use runtime 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 Well-Architected Tool's +// API operation GetWorkload for usage and error information. +// +// Returned Error Types: +// * ValidationException +// The user input is not valid. +// +// * ResourceNotFoundException +// The requested resource was not found. +// +// * InternalServerException +// There is a problem with the AWS Well-Architected Tool API service. +// +// * AccessDeniedException +// User does not have sufficient access to perform this action. +// +// * ThrottlingException +// Request was denied due to request throttling. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/wellarchitected-2020-03-31/GetWorkload +func (c *WellArchitected) GetWorkload(input *GetWorkloadInput) (*GetWorkloadOutput, error) { + req, out := c.GetWorkloadRequest(input) + return out, req.Send() +} + +// GetWorkloadWithContext is the same as GetWorkload with the addition of +// the ability to pass a context and additional request options. +// +// See GetWorkload for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *WellArchitected) GetWorkloadWithContext(ctx aws.Context, input *GetWorkloadInput, opts ...request.Option) (*GetWorkloadOutput, error) { + req, out := c.GetWorkloadRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opListAnswers = "ListAnswers" + +// ListAnswersRequest generates a "aws/request.Request" representing the +// client's request for the ListAnswers operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListAnswers for more information on using the ListAnswers +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the ListAnswersRequest method. +// req, resp := client.ListAnswersRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/wellarchitected-2020-03-31/ListAnswers +func (c *WellArchitected) ListAnswersRequest(input *ListAnswersInput) (req *request.Request, output *ListAnswersOutput) { + op := &request.Operation{ + Name: opListAnswers, + HTTPMethod: "GET", + HTTPPath: "/workloads/{WorkloadId}/lensReviews/{LensAlias}/answers", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListAnswersInput{} + } + + output = &ListAnswersOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListAnswers API operation for AWS Well-Architected Tool. +// +// List of answers. +// +// Returns awserr.Error for service API and SDK errors. Use runtime 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 Well-Architected Tool's +// API operation ListAnswers for usage and error information. +// +// Returned Error Types: +// * ValidationException +// The user input is not valid. +// +// * InternalServerException +// There is a problem with the AWS Well-Architected Tool API service. +// +// * ResourceNotFoundException +// The requested resource was not found. +// +// * AccessDeniedException +// User does not have sufficient access to perform this action. +// +// * ThrottlingException +// Request was denied due to request throttling. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/wellarchitected-2020-03-31/ListAnswers +func (c *WellArchitected) ListAnswers(input *ListAnswersInput) (*ListAnswersOutput, error) { + req, out := c.ListAnswersRequest(input) + return out, req.Send() +} + +// ListAnswersWithContext is the same as ListAnswers with the addition of +// the ability to pass a context and additional request options. +// +// See ListAnswers for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *WellArchitected) ListAnswersWithContext(ctx aws.Context, input *ListAnswersInput, opts ...request.Option) (*ListAnswersOutput, error) { + req, out := c.ListAnswersRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// ListAnswersPages iterates over the pages of a ListAnswers operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListAnswers 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 ListAnswers operation. +// pageNum := 0 +// err := client.ListAnswersPages(params, +// func(page *wellarchitected.ListAnswersOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *WellArchitected) ListAnswersPages(input *ListAnswersInput, fn func(*ListAnswersOutput, bool) bool) error { + return c.ListAnswersPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListAnswersPagesWithContext same as ListAnswersPages 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 *WellArchitected) ListAnswersPagesWithContext(ctx aws.Context, input *ListAnswersInput, fn func(*ListAnswersOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListAnswersInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListAnswersRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListAnswersOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opListLensReviewImprovements = "ListLensReviewImprovements" + +// ListLensReviewImprovementsRequest generates a "aws/request.Request" representing the +// client's request for the ListLensReviewImprovements operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListLensReviewImprovements for more information on using the ListLensReviewImprovements +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the ListLensReviewImprovementsRequest method. +// req, resp := client.ListLensReviewImprovementsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/wellarchitected-2020-03-31/ListLensReviewImprovements +func (c *WellArchitected) ListLensReviewImprovementsRequest(input *ListLensReviewImprovementsInput) (req *request.Request, output *ListLensReviewImprovementsOutput) { + op := &request.Operation{ + Name: opListLensReviewImprovements, + HTTPMethod: "GET", + HTTPPath: "/workloads/{WorkloadId}/lensReviews/{LensAlias}/improvements", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListLensReviewImprovementsInput{} + } + + output = &ListLensReviewImprovementsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListLensReviewImprovements API operation for AWS Well-Architected Tool. +// +// List lens review improvements. +// +// Returns awserr.Error for service API and SDK errors. Use runtime 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 Well-Architected Tool's +// API operation ListLensReviewImprovements for usage and error information. +// +// Returned Error Types: +// * ValidationException +// The user input is not valid. +// +// * InternalServerException +// There is a problem with the AWS Well-Architected Tool API service. +// +// * ResourceNotFoundException +// The requested resource was not found. +// +// * AccessDeniedException +// User does not have sufficient access to perform this action. +// +// * ThrottlingException +// Request was denied due to request throttling. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/wellarchitected-2020-03-31/ListLensReviewImprovements +func (c *WellArchitected) ListLensReviewImprovements(input *ListLensReviewImprovementsInput) (*ListLensReviewImprovementsOutput, error) { + req, out := c.ListLensReviewImprovementsRequest(input) + return out, req.Send() +} + +// ListLensReviewImprovementsWithContext is the same as ListLensReviewImprovements with the addition of +// the ability to pass a context and additional request options. +// +// See ListLensReviewImprovements for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *WellArchitected) ListLensReviewImprovementsWithContext(ctx aws.Context, input *ListLensReviewImprovementsInput, opts ...request.Option) (*ListLensReviewImprovementsOutput, error) { + req, out := c.ListLensReviewImprovementsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// ListLensReviewImprovementsPages iterates over the pages of a ListLensReviewImprovements operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListLensReviewImprovements 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 ListLensReviewImprovements operation. +// pageNum := 0 +// err := client.ListLensReviewImprovementsPages(params, +// func(page *wellarchitected.ListLensReviewImprovementsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *WellArchitected) ListLensReviewImprovementsPages(input *ListLensReviewImprovementsInput, fn func(*ListLensReviewImprovementsOutput, bool) bool) error { + return c.ListLensReviewImprovementsPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListLensReviewImprovementsPagesWithContext same as ListLensReviewImprovementsPages 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 *WellArchitected) ListLensReviewImprovementsPagesWithContext(ctx aws.Context, input *ListLensReviewImprovementsInput, fn func(*ListLensReviewImprovementsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListLensReviewImprovementsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListLensReviewImprovementsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListLensReviewImprovementsOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opListLensReviews = "ListLensReviews" + +// ListLensReviewsRequest generates a "aws/request.Request" representing the +// client's request for the ListLensReviews operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListLensReviews for more information on using the ListLensReviews +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the ListLensReviewsRequest method. +// req, resp := client.ListLensReviewsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/wellarchitected-2020-03-31/ListLensReviews +func (c *WellArchitected) ListLensReviewsRequest(input *ListLensReviewsInput) (req *request.Request, output *ListLensReviewsOutput) { + op := &request.Operation{ + Name: opListLensReviews, + HTTPMethod: "GET", + HTTPPath: "/workloads/{WorkloadId}/lensReviews", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListLensReviewsInput{} + } + + output = &ListLensReviewsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListLensReviews API operation for AWS Well-Architected Tool. +// +// List lens reviews. +// +// Returns awserr.Error for service API and SDK errors. Use runtime 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 Well-Architected Tool's +// API operation ListLensReviews for usage and error information. +// +// Returned Error Types: +// * ValidationException +// The user input is not valid. +// +// * InternalServerException +// There is a problem with the AWS Well-Architected Tool API service. +// +// * ResourceNotFoundException +// The requested resource was not found. +// +// * AccessDeniedException +// User does not have sufficient access to perform this action. +// +// * ThrottlingException +// Request was denied due to request throttling. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/wellarchitected-2020-03-31/ListLensReviews +func (c *WellArchitected) ListLensReviews(input *ListLensReviewsInput) (*ListLensReviewsOutput, error) { + req, out := c.ListLensReviewsRequest(input) + return out, req.Send() +} + +// ListLensReviewsWithContext is the same as ListLensReviews with the addition of +// the ability to pass a context and additional request options. +// +// See ListLensReviews for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *WellArchitected) ListLensReviewsWithContext(ctx aws.Context, input *ListLensReviewsInput, opts ...request.Option) (*ListLensReviewsOutput, error) { + req, out := c.ListLensReviewsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// ListLensReviewsPages iterates over the pages of a ListLensReviews operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListLensReviews 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 ListLensReviews operation. +// pageNum := 0 +// err := client.ListLensReviewsPages(params, +// func(page *wellarchitected.ListLensReviewsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *WellArchitected) ListLensReviewsPages(input *ListLensReviewsInput, fn func(*ListLensReviewsOutput, bool) bool) error { + return c.ListLensReviewsPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListLensReviewsPagesWithContext same as ListLensReviewsPages 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 *WellArchitected) ListLensReviewsPagesWithContext(ctx aws.Context, input *ListLensReviewsInput, fn func(*ListLensReviewsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListLensReviewsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListLensReviewsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListLensReviewsOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opListLenses = "ListLenses" + +// ListLensesRequest generates a "aws/request.Request" representing the +// client's request for the ListLenses operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListLenses for more information on using the ListLenses +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the ListLensesRequest method. +// req, resp := client.ListLensesRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/wellarchitected-2020-03-31/ListLenses +func (c *WellArchitected) ListLensesRequest(input *ListLensesInput) (req *request.Request, output *ListLensesOutput) { + op := &request.Operation{ + Name: opListLenses, + HTTPMethod: "GET", + HTTPPath: "/lenses", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListLensesInput{} + } + + output = &ListLensesOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListLenses API operation for AWS Well-Architected Tool. +// +// List the available lenses. +// +// Returns awserr.Error for service API and SDK errors. Use runtime 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 Well-Architected Tool's +// API operation ListLenses for usage and error information. +// +// Returned Error Types: +// * ValidationException +// The user input is not valid. +// +// * InternalServerException +// There is a problem with the AWS Well-Architected Tool API service. +// +// * AccessDeniedException +// User does not have sufficient access to perform this action. +// +// * ThrottlingException +// Request was denied due to request throttling. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/wellarchitected-2020-03-31/ListLenses +func (c *WellArchitected) ListLenses(input *ListLensesInput) (*ListLensesOutput, error) { + req, out := c.ListLensesRequest(input) + return out, req.Send() +} + +// ListLensesWithContext is the same as ListLenses with the addition of +// the ability to pass a context and additional request options. +// +// See ListLenses for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *WellArchitected) ListLensesWithContext(ctx aws.Context, input *ListLensesInput, opts ...request.Option) (*ListLensesOutput, error) { + req, out := c.ListLensesRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// ListLensesPages iterates over the pages of a ListLenses operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListLenses 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 ListLenses operation. +// pageNum := 0 +// err := client.ListLensesPages(params, +// func(page *wellarchitected.ListLensesOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *WellArchitected) ListLensesPages(input *ListLensesInput, fn func(*ListLensesOutput, bool) bool) error { + return c.ListLensesPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListLensesPagesWithContext same as ListLensesPages 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 *WellArchitected) ListLensesPagesWithContext(ctx aws.Context, input *ListLensesInput, fn func(*ListLensesOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListLensesInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListLensesRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListLensesOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opListMilestones = "ListMilestones" + +// ListMilestonesRequest generates a "aws/request.Request" representing the +// client's request for the ListMilestones operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListMilestones for more information on using the ListMilestones +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the ListMilestonesRequest method. +// req, resp := client.ListMilestonesRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/wellarchitected-2020-03-31/ListMilestones +func (c *WellArchitected) ListMilestonesRequest(input *ListMilestonesInput) (req *request.Request, output *ListMilestonesOutput) { + op := &request.Operation{ + Name: opListMilestones, + HTTPMethod: "POST", + HTTPPath: "/workloads/{WorkloadId}/milestonesSummaries", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListMilestonesInput{} + } + + output = &ListMilestonesOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListMilestones API operation for AWS Well-Architected Tool. +// +// List all milestones for an existing workload. +// +// Returns awserr.Error for service API and SDK errors. Use runtime 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 Well-Architected Tool's +// API operation ListMilestones for usage and error information. +// +// Returned Error Types: +// * ValidationException +// The user input is not valid. +// +// * InternalServerException +// There is a problem with the AWS Well-Architected Tool API service. +// +// * ResourceNotFoundException +// The requested resource was not found. +// +// * AccessDeniedException +// User does not have sufficient access to perform this action. +// +// * ThrottlingException +// Request was denied due to request throttling. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/wellarchitected-2020-03-31/ListMilestones +func (c *WellArchitected) ListMilestones(input *ListMilestonesInput) (*ListMilestonesOutput, error) { + req, out := c.ListMilestonesRequest(input) + return out, req.Send() +} + +// ListMilestonesWithContext is the same as ListMilestones with the addition of +// the ability to pass a context and additional request options. +// +// See ListMilestones for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *WellArchitected) ListMilestonesWithContext(ctx aws.Context, input *ListMilestonesInput, opts ...request.Option) (*ListMilestonesOutput, error) { + req, out := c.ListMilestonesRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// ListMilestonesPages iterates over the pages of a ListMilestones operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListMilestones 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 ListMilestones operation. +// pageNum := 0 +// err := client.ListMilestonesPages(params, +// func(page *wellarchitected.ListMilestonesOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *WellArchitected) ListMilestonesPages(input *ListMilestonesInput, fn func(*ListMilestonesOutput, bool) bool) error { + return c.ListMilestonesPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListMilestonesPagesWithContext same as ListMilestonesPages 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 *WellArchitected) ListMilestonesPagesWithContext(ctx aws.Context, input *ListMilestonesInput, fn func(*ListMilestonesOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListMilestonesInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListMilestonesRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListMilestonesOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opListNotifications = "ListNotifications" + +// ListNotificationsRequest generates a "aws/request.Request" representing the +// client's request for the ListNotifications operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListNotifications for more information on using the ListNotifications +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the ListNotificationsRequest method. +// req, resp := client.ListNotificationsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/wellarchitected-2020-03-31/ListNotifications +func (c *WellArchitected) ListNotificationsRequest(input *ListNotificationsInput) (req *request.Request, output *ListNotificationsOutput) { + op := &request.Operation{ + Name: opListNotifications, + HTTPMethod: "POST", + HTTPPath: "/notifications", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListNotificationsInput{} + } + + output = &ListNotificationsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListNotifications API operation for AWS Well-Architected Tool. +// +// List lens notifications. +// +// Returns awserr.Error for service API and SDK errors. Use runtime 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 Well-Architected Tool's +// API operation ListNotifications for usage and error information. +// +// Returned Error Types: +// * ValidationException +// The user input is not valid. +// +// * InternalServerException +// There is a problem with the AWS Well-Architected Tool API service. +// +// * AccessDeniedException +// User does not have sufficient access to perform this action. +// +// * ThrottlingException +// Request was denied due to request throttling. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/wellarchitected-2020-03-31/ListNotifications +func (c *WellArchitected) ListNotifications(input *ListNotificationsInput) (*ListNotificationsOutput, error) { + req, out := c.ListNotificationsRequest(input) + return out, req.Send() +} + +// ListNotificationsWithContext is the same as ListNotifications with the addition of +// the ability to pass a context and additional request options. +// +// See ListNotifications for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *WellArchitected) ListNotificationsWithContext(ctx aws.Context, input *ListNotificationsInput, opts ...request.Option) (*ListNotificationsOutput, error) { + req, out := c.ListNotificationsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// ListNotificationsPages iterates over the pages of a ListNotifications operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListNotifications 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 ListNotifications operation. +// pageNum := 0 +// err := client.ListNotificationsPages(params, +// func(page *wellarchitected.ListNotificationsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *WellArchitected) ListNotificationsPages(input *ListNotificationsInput, fn func(*ListNotificationsOutput, bool) bool) error { + return c.ListNotificationsPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListNotificationsPagesWithContext same as ListNotificationsPages 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 *WellArchitected) ListNotificationsPagesWithContext(ctx aws.Context, input *ListNotificationsInput, fn func(*ListNotificationsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListNotificationsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListNotificationsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListNotificationsOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opListShareInvitations = "ListShareInvitations" + +// ListShareInvitationsRequest generates a "aws/request.Request" representing the +// client's request for the ListShareInvitations operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListShareInvitations for more information on using the ListShareInvitations +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the ListShareInvitationsRequest method. +// req, resp := client.ListShareInvitationsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/wellarchitected-2020-03-31/ListShareInvitations +func (c *WellArchitected) ListShareInvitationsRequest(input *ListShareInvitationsInput) (req *request.Request, output *ListShareInvitationsOutput) { + op := &request.Operation{ + Name: opListShareInvitations, + HTTPMethod: "GET", + HTTPPath: "/shareInvitations", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListShareInvitationsInput{} + } + + output = &ListShareInvitationsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListShareInvitations API operation for AWS Well-Architected Tool. +// +// List the workload invitations. +// +// Returns awserr.Error for service API and SDK errors. Use runtime 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 Well-Architected Tool's +// API operation ListShareInvitations for usage and error information. +// +// Returned Error Types: +// * ValidationException +// The user input is not valid. +// +// * InternalServerException +// There is a problem with the AWS Well-Architected Tool API service. +// +// * AccessDeniedException +// User does not have sufficient access to perform this action. +// +// * ThrottlingException +// Request was denied due to request throttling. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/wellarchitected-2020-03-31/ListShareInvitations +func (c *WellArchitected) ListShareInvitations(input *ListShareInvitationsInput) (*ListShareInvitationsOutput, error) { + req, out := c.ListShareInvitationsRequest(input) + return out, req.Send() +} + +// ListShareInvitationsWithContext is the same as ListShareInvitations with the addition of +// the ability to pass a context and additional request options. +// +// See ListShareInvitations for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *WellArchitected) ListShareInvitationsWithContext(ctx aws.Context, input *ListShareInvitationsInput, opts ...request.Option) (*ListShareInvitationsOutput, error) { + req, out := c.ListShareInvitationsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// ListShareInvitationsPages iterates over the pages of a ListShareInvitations operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListShareInvitations 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 ListShareInvitations operation. +// pageNum := 0 +// err := client.ListShareInvitationsPages(params, +// func(page *wellarchitected.ListShareInvitationsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *WellArchitected) ListShareInvitationsPages(input *ListShareInvitationsInput, fn func(*ListShareInvitationsOutput, bool) bool) error { + return c.ListShareInvitationsPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListShareInvitationsPagesWithContext same as ListShareInvitationsPages 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 *WellArchitected) ListShareInvitationsPagesWithContext(ctx aws.Context, input *ListShareInvitationsInput, fn func(*ListShareInvitationsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListShareInvitationsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListShareInvitationsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListShareInvitationsOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opListWorkloadShares = "ListWorkloadShares" + +// ListWorkloadSharesRequest generates a "aws/request.Request" representing the +// client's request for the ListWorkloadShares operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListWorkloadShares for more information on using the ListWorkloadShares +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the ListWorkloadSharesRequest method. +// req, resp := client.ListWorkloadSharesRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/wellarchitected-2020-03-31/ListWorkloadShares +func (c *WellArchitected) ListWorkloadSharesRequest(input *ListWorkloadSharesInput) (req *request.Request, output *ListWorkloadSharesOutput) { + op := &request.Operation{ + Name: opListWorkloadShares, + HTTPMethod: "GET", + HTTPPath: "/workloads/{WorkloadId}/shares", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListWorkloadSharesInput{} + } + + output = &ListWorkloadSharesOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListWorkloadShares API operation for AWS Well-Architected Tool. +// +// List the workload shares associated with the workload. +// +// Returns awserr.Error for service API and SDK errors. Use runtime 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 Well-Architected Tool's +// API operation ListWorkloadShares for usage and error information. +// +// Returned Error Types: +// * ValidationException +// The user input is not valid. +// +// * InternalServerException +// There is a problem with the AWS Well-Architected Tool API service. +// +// * ResourceNotFoundException +// The requested resource was not found. +// +// * AccessDeniedException +// User does not have sufficient access to perform this action. +// +// * ThrottlingException +// Request was denied due to request throttling. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/wellarchitected-2020-03-31/ListWorkloadShares +func (c *WellArchitected) ListWorkloadShares(input *ListWorkloadSharesInput) (*ListWorkloadSharesOutput, error) { + req, out := c.ListWorkloadSharesRequest(input) + return out, req.Send() +} + +// ListWorkloadSharesWithContext is the same as ListWorkloadShares with the addition of +// the ability to pass a context and additional request options. +// +// See ListWorkloadShares for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *WellArchitected) ListWorkloadSharesWithContext(ctx aws.Context, input *ListWorkloadSharesInput, opts ...request.Option) (*ListWorkloadSharesOutput, error) { + req, out := c.ListWorkloadSharesRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// ListWorkloadSharesPages iterates over the pages of a ListWorkloadShares operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListWorkloadShares 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 ListWorkloadShares operation. +// pageNum := 0 +// err := client.ListWorkloadSharesPages(params, +// func(page *wellarchitected.ListWorkloadSharesOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *WellArchitected) ListWorkloadSharesPages(input *ListWorkloadSharesInput, fn func(*ListWorkloadSharesOutput, bool) bool) error { + return c.ListWorkloadSharesPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListWorkloadSharesPagesWithContext same as ListWorkloadSharesPages 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 *WellArchitected) ListWorkloadSharesPagesWithContext(ctx aws.Context, input *ListWorkloadSharesInput, fn func(*ListWorkloadSharesOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListWorkloadSharesInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListWorkloadSharesRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListWorkloadSharesOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opListWorkloads = "ListWorkloads" + +// ListWorkloadsRequest generates a "aws/request.Request" representing the +// client's request for the ListWorkloads operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See ListWorkloads for more information on using the ListWorkloads +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the ListWorkloadsRequest method. +// req, resp := client.ListWorkloadsRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/wellarchitected-2020-03-31/ListWorkloads +func (c *WellArchitected) ListWorkloadsRequest(input *ListWorkloadsInput) (req *request.Request, output *ListWorkloadsOutput) { + op := &request.Operation{ + Name: opListWorkloads, + HTTPMethod: "POST", + HTTPPath: "/workloadsSummaries", + Paginator: &request.Paginator{ + InputTokens: []string{"NextToken"}, + OutputTokens: []string{"NextToken"}, + LimitToken: "MaxResults", + TruncationToken: "", + }, + } + + if input == nil { + input = &ListWorkloadsInput{} + } + + output = &ListWorkloadsOutput{} + req = c.newRequest(op, input, output) + return +} + +// ListWorkloads API operation for AWS Well-Architected Tool. +// +// List workloads. Paginated. +// +// Returns awserr.Error for service API and SDK errors. Use runtime 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 Well-Architected Tool's +// API operation ListWorkloads for usage and error information. +// +// Returned Error Types: +// * ValidationException +// The user input is not valid. +// +// * InternalServerException +// There is a problem with the AWS Well-Architected Tool API service. +// +// * AccessDeniedException +// User does not have sufficient access to perform this action. +// +// * ThrottlingException +// Request was denied due to request throttling. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/wellarchitected-2020-03-31/ListWorkloads +func (c *WellArchitected) ListWorkloads(input *ListWorkloadsInput) (*ListWorkloadsOutput, error) { + req, out := c.ListWorkloadsRequest(input) + return out, req.Send() +} + +// ListWorkloadsWithContext is the same as ListWorkloads with the addition of +// the ability to pass a context and additional request options. +// +// See ListWorkloads for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *WellArchitected) ListWorkloadsWithContext(ctx aws.Context, input *ListWorkloadsInput, opts ...request.Option) (*ListWorkloadsOutput, error) { + req, out := c.ListWorkloadsRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// ListWorkloadsPages iterates over the pages of a ListWorkloads operation, +// calling the "fn" function with the response data for each page. To stop +// iterating, return false from the fn function. +// +// See ListWorkloads 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 ListWorkloads operation. +// pageNum := 0 +// err := client.ListWorkloadsPages(params, +// func(page *wellarchitected.ListWorkloadsOutput, lastPage bool) bool { +// pageNum++ +// fmt.Println(page) +// return pageNum <= 3 +// }) +// +func (c *WellArchitected) ListWorkloadsPages(input *ListWorkloadsInput, fn func(*ListWorkloadsOutput, bool) bool) error { + return c.ListWorkloadsPagesWithContext(aws.BackgroundContext(), input, fn) +} + +// ListWorkloadsPagesWithContext same as ListWorkloadsPages 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 *WellArchitected) ListWorkloadsPagesWithContext(ctx aws.Context, input *ListWorkloadsInput, fn func(*ListWorkloadsOutput, bool) bool, opts ...request.Option) error { + p := request.Pagination{ + NewRequest: func() (*request.Request, error) { + var inCpy *ListWorkloadsInput + if input != nil { + tmp := *input + inCpy = &tmp + } + req, _ := c.ListWorkloadsRequest(inCpy) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return req, nil + }, + } + + for p.Next() { + if !fn(p.Page().(*ListWorkloadsOutput), !p.HasNextPage()) { + break + } + } + + return p.Err() +} + +const opUpdateAnswer = "UpdateAnswer" + +// UpdateAnswerRequest generates a "aws/request.Request" representing the +// client's request for the UpdateAnswer operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdateAnswer for more information on using the UpdateAnswer +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the UpdateAnswerRequest method. +// req, resp := client.UpdateAnswerRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/wellarchitected-2020-03-31/UpdateAnswer +func (c *WellArchitected) UpdateAnswerRequest(input *UpdateAnswerInput) (req *request.Request, output *UpdateAnswerOutput) { + op := &request.Operation{ + Name: opUpdateAnswer, + HTTPMethod: "PATCH", + HTTPPath: "/workloads/{WorkloadId}/lensReviews/{LensAlias}/answers/{QuestionId}", + } + + if input == nil { + input = &UpdateAnswerInput{} + } + + output = &UpdateAnswerOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateAnswer API operation for AWS Well-Architected Tool. +// +// Update the answer. +// +// Returns awserr.Error for service API and SDK errors. Use runtime 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 Well-Architected Tool's +// API operation UpdateAnswer for usage and error information. +// +// Returned Error Types: +// * ValidationException +// The user input is not valid. +// +// * ResourceNotFoundException +// The requested resource was not found. +// +// * ConflictException +// The resource already exists. +// +// * InternalServerException +// There is a problem with the AWS Well-Architected Tool API service. +// +// * AccessDeniedException +// User does not have sufficient access to perform this action. +// +// * ThrottlingException +// Request was denied due to request throttling. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/wellarchitected-2020-03-31/UpdateAnswer +func (c *WellArchitected) UpdateAnswer(input *UpdateAnswerInput) (*UpdateAnswerOutput, error) { + req, out := c.UpdateAnswerRequest(input) + return out, req.Send() +} + +// UpdateAnswerWithContext is the same as UpdateAnswer with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateAnswer for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *WellArchitected) UpdateAnswerWithContext(ctx aws.Context, input *UpdateAnswerInput, opts ...request.Option) (*UpdateAnswerOutput, error) { + req, out := c.UpdateAnswerRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateLensReview = "UpdateLensReview" + +// UpdateLensReviewRequest generates a "aws/request.Request" representing the +// client's request for the UpdateLensReview operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdateLensReview for more information on using the UpdateLensReview +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the UpdateLensReviewRequest method. +// req, resp := client.UpdateLensReviewRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/wellarchitected-2020-03-31/UpdateLensReview +func (c *WellArchitected) UpdateLensReviewRequest(input *UpdateLensReviewInput) (req *request.Request, output *UpdateLensReviewOutput) { + op := &request.Operation{ + Name: opUpdateLensReview, + HTTPMethod: "PATCH", + HTTPPath: "/workloads/{WorkloadId}/lensReviews/{LensAlias}", + } + + if input == nil { + input = &UpdateLensReviewInput{} + } + + output = &UpdateLensReviewOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateLensReview API operation for AWS Well-Architected Tool. +// +// Update lens review. +// +// Returns awserr.Error for service API and SDK errors. Use runtime 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 Well-Architected Tool's +// API operation UpdateLensReview for usage and error information. +// +// Returned Error Types: +// * ValidationException +// The user input is not valid. +// +// * ResourceNotFoundException +// The requested resource was not found. +// +// * ConflictException +// The resource already exists. +// +// * InternalServerException +// There is a problem with the AWS Well-Architected Tool API service. +// +// * AccessDeniedException +// User does not have sufficient access to perform this action. +// +// * ThrottlingException +// Request was denied due to request throttling. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/wellarchitected-2020-03-31/UpdateLensReview +func (c *WellArchitected) UpdateLensReview(input *UpdateLensReviewInput) (*UpdateLensReviewOutput, error) { + req, out := c.UpdateLensReviewRequest(input) + return out, req.Send() +} + +// UpdateLensReviewWithContext is the same as UpdateLensReview with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateLensReview for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *WellArchitected) UpdateLensReviewWithContext(ctx aws.Context, input *UpdateLensReviewInput, opts ...request.Option) (*UpdateLensReviewOutput, error) { + req, out := c.UpdateLensReviewRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateShareInvitation = "UpdateShareInvitation" + +// UpdateShareInvitationRequest generates a "aws/request.Request" representing the +// client's request for the UpdateShareInvitation operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdateShareInvitation for more information on using the UpdateShareInvitation +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the UpdateShareInvitationRequest method. +// req, resp := client.UpdateShareInvitationRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/wellarchitected-2020-03-31/UpdateShareInvitation +func (c *WellArchitected) UpdateShareInvitationRequest(input *UpdateShareInvitationInput) (req *request.Request, output *UpdateShareInvitationOutput) { + op := &request.Operation{ + Name: opUpdateShareInvitation, + HTTPMethod: "PATCH", + HTTPPath: "/shareInvitations/{ShareInvitationId}", + } + + if input == nil { + input = &UpdateShareInvitationInput{} + } + + output = &UpdateShareInvitationOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateShareInvitation API operation for AWS Well-Architected Tool. +// +// Update a workload invitation. +// +// Returns awserr.Error for service API and SDK errors. Use runtime 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 Well-Architected Tool's +// API operation UpdateShareInvitation for usage and error information. +// +// Returned Error Types: +// * ValidationException +// The user input is not valid. +// +// * InternalServerException +// There is a problem with the AWS Well-Architected Tool API service. +// +// * ResourceNotFoundException +// The requested resource was not found. +// +// * ConflictException +// The resource already exists. +// +// * AccessDeniedException +// User does not have sufficient access to perform this action. +// +// * ThrottlingException +// Request was denied due to request throttling. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/wellarchitected-2020-03-31/UpdateShareInvitation +func (c *WellArchitected) UpdateShareInvitation(input *UpdateShareInvitationInput) (*UpdateShareInvitationOutput, error) { + req, out := c.UpdateShareInvitationRequest(input) + return out, req.Send() +} + +// UpdateShareInvitationWithContext is the same as UpdateShareInvitation with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateShareInvitation for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *WellArchitected) UpdateShareInvitationWithContext(ctx aws.Context, input *UpdateShareInvitationInput, opts ...request.Option) (*UpdateShareInvitationOutput, error) { + req, out := c.UpdateShareInvitationRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateWorkload = "UpdateWorkload" + +// UpdateWorkloadRequest generates a "aws/request.Request" representing the +// client's request for the UpdateWorkload operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdateWorkload for more information on using the UpdateWorkload +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the UpdateWorkloadRequest method. +// req, resp := client.UpdateWorkloadRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/wellarchitected-2020-03-31/UpdateWorkload +func (c *WellArchitected) UpdateWorkloadRequest(input *UpdateWorkloadInput) (req *request.Request, output *UpdateWorkloadOutput) { + op := &request.Operation{ + Name: opUpdateWorkload, + HTTPMethod: "PATCH", + HTTPPath: "/workloads/{WorkloadId}", + } + + if input == nil { + input = &UpdateWorkloadInput{} + } + + output = &UpdateWorkloadOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateWorkload API operation for AWS Well-Architected Tool. +// +// Update an existing workload. +// +// Returns awserr.Error for service API and SDK errors. Use runtime 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 Well-Architected Tool's +// API operation UpdateWorkload for usage and error information. +// +// Returned Error Types: +// * ValidationException +// The user input is not valid. +// +// * ResourceNotFoundException +// The requested resource was not found. +// +// * ConflictException +// The resource already exists. +// +// * InternalServerException +// There is a problem with the AWS Well-Architected Tool API service. +// +// * AccessDeniedException +// User does not have sufficient access to perform this action. +// +// * ThrottlingException +// Request was denied due to request throttling. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/wellarchitected-2020-03-31/UpdateWorkload +func (c *WellArchitected) UpdateWorkload(input *UpdateWorkloadInput) (*UpdateWorkloadOutput, error) { + req, out := c.UpdateWorkloadRequest(input) + return out, req.Send() +} + +// UpdateWorkloadWithContext is the same as UpdateWorkload with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateWorkload for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *WellArchitected) UpdateWorkloadWithContext(ctx aws.Context, input *UpdateWorkloadInput, opts ...request.Option) (*UpdateWorkloadOutput, error) { + req, out := c.UpdateWorkloadRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpdateWorkloadShare = "UpdateWorkloadShare" + +// UpdateWorkloadShareRequest generates a "aws/request.Request" representing the +// client's request for the UpdateWorkloadShare operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpdateWorkloadShare for more information on using the UpdateWorkloadShare +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the UpdateWorkloadShareRequest method. +// req, resp := client.UpdateWorkloadShareRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/wellarchitected-2020-03-31/UpdateWorkloadShare +func (c *WellArchitected) UpdateWorkloadShareRequest(input *UpdateWorkloadShareInput) (req *request.Request, output *UpdateWorkloadShareOutput) { + op := &request.Operation{ + Name: opUpdateWorkloadShare, + HTTPMethod: "PATCH", + HTTPPath: "/workloads/{WorkloadId}/shares/{ShareId}", + } + + if input == nil { + input = &UpdateWorkloadShareInput{} + } + + output = &UpdateWorkloadShareOutput{} + req = c.newRequest(op, input, output) + return +} + +// UpdateWorkloadShare API operation for AWS Well-Architected Tool. +// +// Update a workload share. +// +// Returns awserr.Error for service API and SDK errors. Use runtime 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 Well-Architected Tool's +// API operation UpdateWorkloadShare for usage and error information. +// +// Returned Error Types: +// * ValidationException +// The user input is not valid. +// +// * InternalServerException +// There is a problem with the AWS Well-Architected Tool API service. +// +// * ResourceNotFoundException +// The requested resource was not found. +// +// * ConflictException +// The resource already exists. +// +// * AccessDeniedException +// User does not have sufficient access to perform this action. +// +// * ThrottlingException +// Request was denied due to request throttling. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/wellarchitected-2020-03-31/UpdateWorkloadShare +func (c *WellArchitected) UpdateWorkloadShare(input *UpdateWorkloadShareInput) (*UpdateWorkloadShareOutput, error) { + req, out := c.UpdateWorkloadShareRequest(input) + return out, req.Send() +} + +// UpdateWorkloadShareWithContext is the same as UpdateWorkloadShare with the addition of +// the ability to pass a context and additional request options. +// +// See UpdateWorkloadShare for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *WellArchitected) UpdateWorkloadShareWithContext(ctx aws.Context, input *UpdateWorkloadShareInput, opts ...request.Option) (*UpdateWorkloadShareOutput, error) { + req, out := c.UpdateWorkloadShareRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +const opUpgradeLensReview = "UpgradeLensReview" + +// UpgradeLensReviewRequest generates a "aws/request.Request" representing the +// client's request for the UpgradeLensReview operation. The "output" return +// value will be populated with the request's response once the request completes +// successfully. +// +// Use "Send" method on the returned Request to send the API call to the service. +// the "output" return value is not valid until after Send returns without error. +// +// See UpgradeLensReview for more information on using the UpgradeLensReview +// API call, and error handling. +// +// This method is useful when you want to inject custom logic or configuration +// into the SDK's request lifecycle. Such as custom headers, or retry logic. +// +// +// // Example sending a request using the UpgradeLensReviewRequest method. +// req, resp := client.UpgradeLensReviewRequest(params) +// +// err := req.Send() +// if err == nil { // resp is now filled +// fmt.Println(resp) +// } +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/wellarchitected-2020-03-31/UpgradeLensReview +func (c *WellArchitected) UpgradeLensReviewRequest(input *UpgradeLensReviewInput) (req *request.Request, output *UpgradeLensReviewOutput) { + op := &request.Operation{ + Name: opUpgradeLensReview, + HTTPMethod: "PUT", + HTTPPath: "/workloads/{WorkloadId}/lensReviews/{LensAlias}/upgrade", + } + + if input == nil { + input = &UpgradeLensReviewInput{} + } + + output = &UpgradeLensReviewOutput{} + req = c.newRequest(op, input, output) + req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) + return +} + +// UpgradeLensReview API operation for AWS Well-Architected Tool. +// +// Upgrade lens review. +// +// Returns awserr.Error for service API and SDK errors. Use runtime 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 Well-Architected Tool's +// API operation UpgradeLensReview for usage and error information. +// +// Returned Error Types: +// * ValidationException +// The user input is not valid. +// +// * ResourceNotFoundException +// The requested resource was not found. +// +// * ConflictException +// The resource already exists. +// +// * InternalServerException +// There is a problem with the AWS Well-Architected Tool API service. +// +// * AccessDeniedException +// User does not have sufficient access to perform this action. +// +// * ThrottlingException +// Request was denied due to request throttling. +// +// See also, https://docs.aws.amazon.com/goto/WebAPI/wellarchitected-2020-03-31/UpgradeLensReview +func (c *WellArchitected) UpgradeLensReview(input *UpgradeLensReviewInput) (*UpgradeLensReviewOutput, error) { + req, out := c.UpgradeLensReviewRequest(input) + return out, req.Send() +} + +// UpgradeLensReviewWithContext is the same as UpgradeLensReview with the addition of +// the ability to pass a context and additional request options. +// +// See UpgradeLensReview for details on how to use this API operation. +// +// The context must be non-nil and will be used for request cancellation. If +// the context is nil a panic will occur. In the future the SDK may create +// sub-contexts for http.Requests. See https://golang.org/pkg/context/ +// for more information on using Contexts. +func (c *WellArchitected) UpgradeLensReviewWithContext(ctx aws.Context, input *UpgradeLensReviewInput, opts ...request.Option) (*UpgradeLensReviewOutput, error) { + req, out := c.UpgradeLensReviewRequest(input) + req.SetContext(ctx) + req.ApplyOptions(opts...) + return out, req.Send() +} + +// User does not have sufficient access to perform this action. +type AccessDeniedException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + // Description of the error. + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s AccessDeniedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AccessDeniedException) GoString() string { + return s.String() +} + +func newErrorAccessDeniedException(v protocol.ResponseMetadata) error { + return &AccessDeniedException{ + RespMetadata: v, + } +} + +// Code returns the exception type name. +func (s *AccessDeniedException) Code() string { + return "AccessDeniedException" +} + +// Message returns the exception's message. +func (s *AccessDeniedException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *AccessDeniedException) OrigErr() error { + return nil +} + +func (s *AccessDeniedException) Error() string { + return fmt.Sprintf("%s: %s", 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 +} + +// An answer of the question. +type Answer struct { + _ struct{} `type:"structure"` + + // List of choices available for a question. + Choices []*Choice `type:"list"` + + // The helpful resource URL for a question. + HelpfulResourceUrl *string `min:"1" type:"string"` + + // The improvement plan URL for a question. + ImprovementPlanUrl *string `min:"1" type:"string"` + + // Defines whether this question is applicable to a lens review. + IsApplicable *bool `type:"boolean"` + + // The notes associated with the workload. + Notes *string `type:"string"` + + // The ID used to identify a pillar, for example, security. + // + // A pillar is identified by its PillarReviewSummary$PillarId. + PillarId *string `min:"1" type:"string"` + + // The description of the question. + QuestionDescription *string `min:"1" type:"string"` + + // The ID of the question. + QuestionId *string `min:"1" type:"string"` + + // The title of the question. + QuestionTitle *string `min:"1" type:"string"` + + // The risk for a given workload, lens review, pillar, or question. + Risk *string `type:"string" enum:"Risk"` + + // List of selected choice IDs in a question answer. + SelectedChoices []*string `type:"list"` +} + +// String returns the string representation +func (s Answer) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Answer) GoString() string { + return s.String() +} + +// SetChoices sets the Choices field's value. +func (s *Answer) SetChoices(v []*Choice) *Answer { + s.Choices = v + return s +} + +// SetHelpfulResourceUrl sets the HelpfulResourceUrl field's value. +func (s *Answer) SetHelpfulResourceUrl(v string) *Answer { + s.HelpfulResourceUrl = &v + return s +} + +// SetImprovementPlanUrl sets the ImprovementPlanUrl field's value. +func (s *Answer) SetImprovementPlanUrl(v string) *Answer { + s.ImprovementPlanUrl = &v + return s +} + +// SetIsApplicable sets the IsApplicable field's value. +func (s *Answer) SetIsApplicable(v bool) *Answer { + s.IsApplicable = &v + return s +} + +// SetNotes sets the Notes field's value. +func (s *Answer) SetNotes(v string) *Answer { + s.Notes = &v + return s +} + +// SetPillarId sets the PillarId field's value. +func (s *Answer) SetPillarId(v string) *Answer { + s.PillarId = &v + return s +} + +// SetQuestionDescription sets the QuestionDescription field's value. +func (s *Answer) SetQuestionDescription(v string) *Answer { + s.QuestionDescription = &v + return s +} + +// SetQuestionId sets the QuestionId field's value. +func (s *Answer) SetQuestionId(v string) *Answer { + s.QuestionId = &v + return s +} + +// SetQuestionTitle sets the QuestionTitle field's value. +func (s *Answer) SetQuestionTitle(v string) *Answer { + s.QuestionTitle = &v + return s +} + +// SetRisk sets the Risk field's value. +func (s *Answer) SetRisk(v string) *Answer { + s.Risk = &v + return s +} + +// SetSelectedChoices sets the SelectedChoices field's value. +func (s *Answer) SetSelectedChoices(v []*string) *Answer { + s.SelectedChoices = v + return s +} + +// An answer summary of a lens review in a workload. +type AnswerSummary struct { + _ struct{} `type:"structure"` + + // List of choices available for a question. + Choices []*Choice `type:"list"` + + // Defines whether this question is applicable to a lens review. + IsApplicable *bool `type:"boolean"` + + // The ID used to identify a pillar, for example, security. + // + // A pillar is identified by its PillarReviewSummary$PillarId. + PillarId *string `min:"1" type:"string"` + + // The ID of the question. + QuestionId *string `min:"1" type:"string"` + + // The title of the question. + QuestionTitle *string `min:"1" type:"string"` + + // The risk for a given workload, lens review, pillar, or question. + Risk *string `type:"string" enum:"Risk"` + + // List of selected choice IDs in a question answer. + SelectedChoices []*string `type:"list"` +} + +// String returns the string representation +func (s AnswerSummary) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AnswerSummary) GoString() string { + return s.String() +} + +// SetChoices sets the Choices field's value. +func (s *AnswerSummary) SetChoices(v []*Choice) *AnswerSummary { + s.Choices = v + return s +} + +// SetIsApplicable sets the IsApplicable field's value. +func (s *AnswerSummary) SetIsApplicable(v bool) *AnswerSummary { + s.IsApplicable = &v + return s +} + +// SetPillarId sets the PillarId field's value. +func (s *AnswerSummary) SetPillarId(v string) *AnswerSummary { + s.PillarId = &v + return s +} + +// SetQuestionId sets the QuestionId field's value. +func (s *AnswerSummary) SetQuestionId(v string) *AnswerSummary { + s.QuestionId = &v + return s +} + +// SetQuestionTitle sets the QuestionTitle field's value. +func (s *AnswerSummary) SetQuestionTitle(v string) *AnswerSummary { + s.QuestionTitle = &v + return s +} + +// SetRisk sets the Risk field's value. +func (s *AnswerSummary) SetRisk(v string) *AnswerSummary { + s.Risk = &v + return s +} + +// SetSelectedChoices sets the SelectedChoices field's value. +func (s *AnswerSummary) SetSelectedChoices(v []*string) *AnswerSummary { + s.SelectedChoices = v + return s +} + +// Input to associate lens reviews. +type AssociateLensesInput struct { + _ struct{} `type:"structure"` + + // List of lens aliases to associate or disassociate with a workload. + // + // Identify a lens using its LensSummary$LensAlias. + // + // LensAliases is a required field + LensAliases []*string `min:"1" type:"list" required:"true"` + + // The ID assigned to the workload. This ID is unique within an AWS Region. + // + // WorkloadId is a required field + WorkloadId *string `location:"uri" locationName:"WorkloadId" type:"string" required:"true"` +} + +// String returns the string representation +func (s AssociateLensesInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AssociateLensesInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AssociateLensesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AssociateLensesInput"} + if s.LensAliases == nil { + invalidParams.Add(request.NewErrParamRequired("LensAliases")) + } + if s.LensAliases != nil && len(s.LensAliases) < 1 { + invalidParams.Add(request.NewErrParamMinLen("LensAliases", 1)) + } + if s.WorkloadId == nil { + invalidParams.Add(request.NewErrParamRequired("WorkloadId")) + } + if s.WorkloadId != nil && len(*s.WorkloadId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("WorkloadId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetLensAliases sets the LensAliases field's value. +func (s *AssociateLensesInput) SetLensAliases(v []*string) *AssociateLensesInput { + s.LensAliases = v + return s +} + +// SetWorkloadId sets the WorkloadId field's value. +func (s *AssociateLensesInput) SetWorkloadId(v string) *AssociateLensesInput { + s.WorkloadId = &v + return s +} + +type AssociateLensesOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s AssociateLensesOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AssociateLensesOutput) GoString() string { + return s.String() +} + +// A choice available to answer question. +type Choice struct { + _ struct{} `type:"structure"` + + // The ID of a choice. + ChoiceId *string `min:"1" type:"string"` + + // The description of a choice. + Description *string `min:"1" type:"string"` + + // The title of a choice. + Title *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s Choice) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Choice) GoString() string { + return s.String() +} + +// SetChoiceId sets the ChoiceId field's value. +func (s *Choice) SetChoiceId(v string) *Choice { + s.ChoiceId = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *Choice) SetDescription(v string) *Choice { + s.Description = &v + return s +} + +// SetTitle sets the Title field's value. +func (s *Choice) SetTitle(v string) *Choice { + s.Title = &v + return s +} + +// The resource already exists. +type ConflictException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + // Description of the error. + Message_ *string `locationName:"Message" type:"string"` + + // Identifier of the resource affected. + // + // ResourceId is a required field + ResourceId *string `type:"string" required:"true"` + + // Type of the resource affected. + // + // ResourceType is a required field + ResourceType *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s ConflictException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ConflictException) GoString() string { + return s.String() +} + +func newErrorConflictException(v protocol.ResponseMetadata) error { + return &ConflictException{ + RespMetadata: v, + } +} + +// Code returns the exception type name. +func (s *ConflictException) Code() string { + return "ConflictException" +} + +// Message returns the exception's message. +func (s *ConflictException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *ConflictException) OrigErr() error { + return nil +} + +func (s *ConflictException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s *ConflictException) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *ConflictException) RequestID() string { + return s.RespMetadata.RequestID +} + +// Input for milestone creation. +type CreateMilestoneInput struct { + _ struct{} `type:"structure"` + + // A unique case-sensitive string used to ensure that this request is idempotent + // (executes only once). + // + // You should not reuse the same token for other requests. If you retry a request + // with the same client request token and the same parameters after it has completed + // successfully, the result of the original request is returned. + // + // This token is listed as required, however, if you do not specify it, the + // AWS SDKs automatically generate one for you. If you are not using the AWS + // SDK or the AWS CLI, you must provide this token or the request will fail. + ClientRequestToken *string `type:"string" idempotencyToken:"true"` + + // The name of the milestone in a workload. + // + // Milestone names must be unique within a workload. + // + // MilestoneName is a required field + MilestoneName *string `min:"3" type:"string" required:"true"` + + // The ID assigned to the workload. This ID is unique within an AWS Region. + // + // WorkloadId is a required field + WorkloadId *string `location:"uri" locationName:"WorkloadId" type:"string" required:"true"` +} + +// String returns the string representation +func (s CreateMilestoneInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateMilestoneInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateMilestoneInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateMilestoneInput"} + if s.MilestoneName == nil { + invalidParams.Add(request.NewErrParamRequired("MilestoneName")) + } + if s.MilestoneName != nil && len(*s.MilestoneName) < 3 { + invalidParams.Add(request.NewErrParamMinLen("MilestoneName", 3)) + } + if s.WorkloadId == nil { + invalidParams.Add(request.NewErrParamRequired("WorkloadId")) + } + if s.WorkloadId != nil && len(*s.WorkloadId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("WorkloadId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetClientRequestToken sets the ClientRequestToken field's value. +func (s *CreateMilestoneInput) SetClientRequestToken(v string) *CreateMilestoneInput { + s.ClientRequestToken = &v + return s +} + +// SetMilestoneName sets the MilestoneName field's value. +func (s *CreateMilestoneInput) SetMilestoneName(v string) *CreateMilestoneInput { + s.MilestoneName = &v + return s +} + +// SetWorkloadId sets the WorkloadId field's value. +func (s *CreateMilestoneInput) SetWorkloadId(v string) *CreateMilestoneInput { + s.WorkloadId = &v + return s +} + +// Output of a create milestone call. +type CreateMilestoneOutput struct { + _ struct{} `type:"structure"` + + // The milestone number. + // + // A workload can have a maximum of 100 milestones. + MilestoneNumber *int64 `min:"1" type:"integer"` + + // The ID assigned to the workload. This ID is unique within an AWS Region. + WorkloadId *string `type:"string"` +} + +// String returns the string representation +func (s CreateMilestoneOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateMilestoneOutput) GoString() string { + return s.String() +} + +// SetMilestoneNumber sets the MilestoneNumber field's value. +func (s *CreateMilestoneOutput) SetMilestoneNumber(v int64) *CreateMilestoneOutput { + s.MilestoneNumber = &v + return s +} + +// SetWorkloadId sets the WorkloadId field's value. +func (s *CreateMilestoneOutput) SetWorkloadId(v string) *CreateMilestoneOutput { + s.WorkloadId = &v + return s +} + +// Input for workload creation. +type CreateWorkloadInput struct { + _ struct{} `type:"structure"` + + // The list of AWS account IDs associated with the workload. + AccountIds []*string `type:"list"` + + // The URL of the architectural design for the workload. + ArchitecturalDesign *string `type:"string"` + + // The list of AWS Regions associated with the workload, for example, us-east-2, + // or ca-central-1. + AwsRegions []*string `type:"list"` + + // A unique case-sensitive string used to ensure that this request is idempotent + // (executes only once). + // + // You should not reuse the same token for other requests. If you retry a request + // with the same client request token and the same parameters after it has completed + // successfully, the result of the original request is returned. + // + // This token is listed as required, however, if you do not specify it, the + // AWS SDKs automatically generate one for you. If you are not using the AWS + // SDK or the AWS CLI, you must provide this token or the request will fail. + ClientRequestToken *string `type:"string" idempotencyToken:"true"` + + // The description for the workload. + // + // Description is a required field + Description *string `min:"3" type:"string" required:"true"` + + // The environment for the workload. + // + // Environment is a required field + Environment *string `type:"string" required:"true" enum:"WorkloadEnvironment"` + + // The industry for the workload. + Industry *string `type:"string"` + + // The industry type for the workload. + // + // If specified, must be one of the following: + // + // * Agriculture + // + // * Automobile + // + // * Defense + // + // * Design and Engineering + // + // * Digital Advertising + // + // * Education + // + // * Environmental Protection + // + // * Financial Services + // + // * Gaming + // + // * General Public Services + // + // * Healthcare + // + // * Hospitality + // + // * InfoTech + // + // * Justice and Public Safety + // + // * Life Sciences + // + // * Manufacturing + // + // * Media & Entertainment + // + // * Mining & Resources + // + // * Oil & Gas + // + // * Power & Utilities + // + // * Professional Services + // + // * Real Estate & Construction + // + // * Retail & Wholesale + // + // * Social Protection + // + // * Telecommunications + // + // * Travel, Transportation & Logistics + // + // * Other + IndustryType *string `type:"string"` + + // The list of lenses associated with the workload. Each lens is identified + // by its LensSummary$LensAlias. + // + // Lenses is a required field + Lenses []*string `type:"list" required:"true"` + + // The list of non-AWS Regions associated with the workload. + NonAwsRegions []*string `type:"list"` + + // The notes associated with the workload. + Notes *string `type:"string"` + + // The priorities of the pillars, which are used to order items in the improvement + // plan. Each pillar is represented by its PillarReviewSummary$PillarId. + PillarPriorities []*string `type:"list"` + + // The review owner of the workload. The name, email address, or identifier + // for the primary group or individual that owns the workload review process. + // + // ReviewOwner is a required field + ReviewOwner *string `min:"3" type:"string" required:"true"` + + // The name of the workload. + // + // The name must be unique within an account within a Region. Spaces and capitalization + // are ignored when checking for uniqueness. + // + // WorkloadName is a required field + WorkloadName *string `min:"3" type:"string" required:"true"` +} + +// String returns the string representation +func (s CreateWorkloadInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateWorkloadInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateWorkloadInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateWorkloadInput"} + if s.Description == nil { + invalidParams.Add(request.NewErrParamRequired("Description")) + } + if s.Description != nil && len(*s.Description) < 3 { + invalidParams.Add(request.NewErrParamMinLen("Description", 3)) + } + if s.Environment == nil { + invalidParams.Add(request.NewErrParamRequired("Environment")) + } + if s.Lenses == nil { + invalidParams.Add(request.NewErrParamRequired("Lenses")) + } + if s.ReviewOwner == nil { + invalidParams.Add(request.NewErrParamRequired("ReviewOwner")) + } + if s.ReviewOwner != nil && len(*s.ReviewOwner) < 3 { + invalidParams.Add(request.NewErrParamMinLen("ReviewOwner", 3)) + } + if s.WorkloadName == nil { + invalidParams.Add(request.NewErrParamRequired("WorkloadName")) + } + if s.WorkloadName != nil && len(*s.WorkloadName) < 3 { + invalidParams.Add(request.NewErrParamMinLen("WorkloadName", 3)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAccountIds sets the AccountIds field's value. +func (s *CreateWorkloadInput) SetAccountIds(v []*string) *CreateWorkloadInput { + s.AccountIds = v + return s +} + +// SetArchitecturalDesign sets the ArchitecturalDesign field's value. +func (s *CreateWorkloadInput) SetArchitecturalDesign(v string) *CreateWorkloadInput { + s.ArchitecturalDesign = &v + return s +} + +// SetAwsRegions sets the AwsRegions field's value. +func (s *CreateWorkloadInput) SetAwsRegions(v []*string) *CreateWorkloadInput { + s.AwsRegions = v + return s +} + +// SetClientRequestToken sets the ClientRequestToken field's value. +func (s *CreateWorkloadInput) SetClientRequestToken(v string) *CreateWorkloadInput { + s.ClientRequestToken = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *CreateWorkloadInput) SetDescription(v string) *CreateWorkloadInput { + s.Description = &v + return s +} + +// SetEnvironment sets the Environment field's value. +func (s *CreateWorkloadInput) SetEnvironment(v string) *CreateWorkloadInput { + s.Environment = &v + return s +} + +// SetIndustry sets the Industry field's value. +func (s *CreateWorkloadInput) SetIndustry(v string) *CreateWorkloadInput { + s.Industry = &v + return s +} + +// SetIndustryType sets the IndustryType field's value. +func (s *CreateWorkloadInput) SetIndustryType(v string) *CreateWorkloadInput { + s.IndustryType = &v + return s +} + +// SetLenses sets the Lenses field's value. +func (s *CreateWorkloadInput) SetLenses(v []*string) *CreateWorkloadInput { + s.Lenses = v + return s +} + +// SetNonAwsRegions sets the NonAwsRegions field's value. +func (s *CreateWorkloadInput) SetNonAwsRegions(v []*string) *CreateWorkloadInput { + s.NonAwsRegions = v + return s +} + +// SetNotes sets the Notes field's value. +func (s *CreateWorkloadInput) SetNotes(v string) *CreateWorkloadInput { + s.Notes = &v + return s +} + +// SetPillarPriorities sets the PillarPriorities field's value. +func (s *CreateWorkloadInput) SetPillarPriorities(v []*string) *CreateWorkloadInput { + s.PillarPriorities = v + return s +} + +// SetReviewOwner sets the ReviewOwner field's value. +func (s *CreateWorkloadInput) SetReviewOwner(v string) *CreateWorkloadInput { + s.ReviewOwner = &v + return s +} + +// SetWorkloadName sets the WorkloadName field's value. +func (s *CreateWorkloadInput) SetWorkloadName(v string) *CreateWorkloadInput { + s.WorkloadName = &v + return s +} + +// Output of a create workload call. +type CreateWorkloadOutput struct { + _ struct{} `type:"structure"` + + // The ARN for the workload. + WorkloadArn *string `type:"string"` + + // The ID assigned to the workload. This ID is unique within an AWS Region. + WorkloadId *string `type:"string"` +} + +// String returns the string representation +func (s CreateWorkloadOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateWorkloadOutput) GoString() string { + return s.String() +} + +// SetWorkloadArn sets the WorkloadArn field's value. +func (s *CreateWorkloadOutput) SetWorkloadArn(v string) *CreateWorkloadOutput { + s.WorkloadArn = &v + return s +} + +// SetWorkloadId sets the WorkloadId field's value. +func (s *CreateWorkloadOutput) SetWorkloadId(v string) *CreateWorkloadOutput { + s.WorkloadId = &v + return s +} + +// Input for Create Workload Share +type CreateWorkloadShareInput struct { + _ struct{} `type:"structure"` + + // A unique case-sensitive string used to ensure that this request is idempotent + // (executes only once). + // + // You should not reuse the same token for other requests. If you retry a request + // with the same client request token and the same parameters after it has completed + // successfully, the result of the original request is returned. + // + // This token is listed as required, however, if you do not specify it, the + // AWS SDKs automatically generate one for you. If you are not using the AWS + // SDK or the AWS CLI, you must provide this token or the request will fail. + ClientRequestToken *string `type:"string" idempotencyToken:"true"` + + // Permission granted on a workload share. + // + // PermissionType is a required field + PermissionType *string `type:"string" required:"true" enum:"PermissionType"` + + // The AWS account ID or IAM role with which the workload is shared. + // + // SharedWith is a required field + SharedWith *string `min:"12" type:"string" required:"true"` + + // The ID assigned to the workload. This ID is unique within an AWS Region. + // + // WorkloadId is a required field + WorkloadId *string `location:"uri" locationName:"WorkloadId" type:"string" required:"true"` +} + +// String returns the string representation +func (s CreateWorkloadShareInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateWorkloadShareInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateWorkloadShareInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateWorkloadShareInput"} + if s.PermissionType == nil { + invalidParams.Add(request.NewErrParamRequired("PermissionType")) + } + if s.SharedWith == nil { + invalidParams.Add(request.NewErrParamRequired("SharedWith")) + } + if s.SharedWith != nil && len(*s.SharedWith) < 12 { + invalidParams.Add(request.NewErrParamMinLen("SharedWith", 12)) + } + if s.WorkloadId == nil { + invalidParams.Add(request.NewErrParamRequired("WorkloadId")) + } + if s.WorkloadId != nil && len(*s.WorkloadId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("WorkloadId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetClientRequestToken sets the ClientRequestToken field's value. +func (s *CreateWorkloadShareInput) SetClientRequestToken(v string) *CreateWorkloadShareInput { + s.ClientRequestToken = &v + return s +} + +// SetPermissionType sets the PermissionType field's value. +func (s *CreateWorkloadShareInput) SetPermissionType(v string) *CreateWorkloadShareInput { + s.PermissionType = &v + return s +} + +// SetSharedWith sets the SharedWith field's value. +func (s *CreateWorkloadShareInput) SetSharedWith(v string) *CreateWorkloadShareInput { + s.SharedWith = &v + return s +} + +// SetWorkloadId sets the WorkloadId field's value. +func (s *CreateWorkloadShareInput) SetWorkloadId(v string) *CreateWorkloadShareInput { + s.WorkloadId = &v + return s +} + +// Input for Create Workload Share +type CreateWorkloadShareOutput struct { + _ struct{} `type:"structure"` + + // The ID associated with the workload share. + ShareId *string `type:"string"` + + // The ID assigned to the workload. This ID is unique within an AWS Region. + WorkloadId *string `type:"string"` +} + +// String returns the string representation +func (s CreateWorkloadShareOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateWorkloadShareOutput) GoString() string { + return s.String() +} + +// SetShareId sets the ShareId field's value. +func (s *CreateWorkloadShareOutput) SetShareId(v string) *CreateWorkloadShareOutput { + s.ShareId = &v + return s +} + +// SetWorkloadId sets the WorkloadId field's value. +func (s *CreateWorkloadShareOutput) SetWorkloadId(v string) *CreateWorkloadShareOutput { + s.WorkloadId = &v + return s +} + +// Input for workload deletion. +type DeleteWorkloadInput struct { + _ struct{} `type:"structure"` + + // A unique case-sensitive string used to ensure that this request is idempotent + // (executes only once). + // + // You should not reuse the same token for other requests. If you retry a request + // with the same client request token and the same parameters after it has completed + // successfully, the result of the original request is returned. + // + // This token is listed as required, however, if you do not specify it, the + // AWS SDKs automatically generate one for you. If you are not using the AWS + // SDK or the AWS CLI, you must provide this token or the request will fail. + ClientRequestToken *string `location:"querystring" locationName:"ClientRequestToken" type:"string" idempotencyToken:"true"` + + // The ID assigned to the workload. This ID is unique within an AWS Region. + // + // WorkloadId is a required field + WorkloadId *string `location:"uri" locationName:"WorkloadId" type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteWorkloadInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteWorkloadInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteWorkloadInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteWorkloadInput"} + if s.WorkloadId == nil { + invalidParams.Add(request.NewErrParamRequired("WorkloadId")) + } + if s.WorkloadId != nil && len(*s.WorkloadId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("WorkloadId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetClientRequestToken sets the ClientRequestToken field's value. +func (s *DeleteWorkloadInput) SetClientRequestToken(v string) *DeleteWorkloadInput { + s.ClientRequestToken = &v + return s +} + +// SetWorkloadId sets the WorkloadId field's value. +func (s *DeleteWorkloadInput) SetWorkloadId(v string) *DeleteWorkloadInput { + s.WorkloadId = &v + return s +} + +type DeleteWorkloadOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DeleteWorkloadOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteWorkloadOutput) GoString() string { + return s.String() +} + +// Input for Delete Workload Share +type DeleteWorkloadShareInput struct { + _ struct{} `type:"structure"` + + // A unique case-sensitive string used to ensure that this request is idempotent + // (executes only once). + // + // You should not reuse the same token for other requests. If you retry a request + // with the same client request token and the same parameters after it has completed + // successfully, the result of the original request is returned. + // + // This token is listed as required, however, if you do not specify it, the + // AWS SDKs automatically generate one for you. If you are not using the AWS + // SDK or the AWS CLI, you must provide this token or the request will fail. + ClientRequestToken *string `location:"querystring" locationName:"ClientRequestToken" type:"string" idempotencyToken:"true"` + + // The ID associated with the workload share. + // + // ShareId is a required field + ShareId *string `location:"uri" locationName:"ShareId" type:"string" required:"true"` + + // The ID assigned to the workload. This ID is unique within an AWS Region. + // + // WorkloadId is a required field + WorkloadId *string `location:"uri" locationName:"WorkloadId" type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteWorkloadShareInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteWorkloadShareInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteWorkloadShareInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteWorkloadShareInput"} + if s.ShareId == nil { + invalidParams.Add(request.NewErrParamRequired("ShareId")) + } + if s.ShareId != nil && len(*s.ShareId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ShareId", 1)) + } + if s.WorkloadId == nil { + invalidParams.Add(request.NewErrParamRequired("WorkloadId")) + } + if s.WorkloadId != nil && len(*s.WorkloadId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("WorkloadId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetClientRequestToken sets the ClientRequestToken field's value. +func (s *DeleteWorkloadShareInput) SetClientRequestToken(v string) *DeleteWorkloadShareInput { + s.ClientRequestToken = &v + return s +} + +// SetShareId sets the ShareId field's value. +func (s *DeleteWorkloadShareInput) SetShareId(v string) *DeleteWorkloadShareInput { + s.ShareId = &v + return s +} + +// SetWorkloadId sets the WorkloadId field's value. +func (s *DeleteWorkloadShareInput) SetWorkloadId(v string) *DeleteWorkloadShareInput { + s.WorkloadId = &v + return s +} + +type DeleteWorkloadShareOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DeleteWorkloadShareOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteWorkloadShareOutput) GoString() string { + return s.String() +} + +// Input to disassociate lens reviews. +type DisassociateLensesInput struct { + _ struct{} `type:"structure"` + + // List of lens aliases to associate or disassociate with a workload. + // + // Identify a lens using its LensSummary$LensAlias. + // + // LensAliases is a required field + LensAliases []*string `min:"1" type:"list" required:"true"` + + // The ID assigned to the workload. This ID is unique within an AWS Region. + // + // WorkloadId is a required field + WorkloadId *string `location:"uri" locationName:"WorkloadId" type:"string" required:"true"` +} + +// String returns the string representation +func (s DisassociateLensesInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DisassociateLensesInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DisassociateLensesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DisassociateLensesInput"} + if s.LensAliases == nil { + invalidParams.Add(request.NewErrParamRequired("LensAliases")) + } + if s.LensAliases != nil && len(s.LensAliases) < 1 { + invalidParams.Add(request.NewErrParamMinLen("LensAliases", 1)) + } + if s.WorkloadId == nil { + invalidParams.Add(request.NewErrParamRequired("WorkloadId")) + } + if s.WorkloadId != nil && len(*s.WorkloadId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("WorkloadId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetLensAliases sets the LensAliases field's value. +func (s *DisassociateLensesInput) SetLensAliases(v []*string) *DisassociateLensesInput { + s.LensAliases = v + return s +} + +// SetWorkloadId sets the WorkloadId field's value. +func (s *DisassociateLensesInput) SetWorkloadId(v string) *DisassociateLensesInput { + s.WorkloadId = &v + return s +} + +type DisassociateLensesOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DisassociateLensesOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DisassociateLensesOutput) GoString() string { + return s.String() +} + +// Input to get answer. +type GetAnswerInput struct { + _ struct{} `type:"structure"` + + // The alias of the lens, for example, serverless. + // + // Each lens is identified by its LensSummary$LensAlias. + // + // LensAlias is a required field + LensAlias *string `location:"uri" locationName:"LensAlias" min:"1" type:"string" required:"true"` + + // The milestone number. + // + // A workload can have a maximum of 100 milestones. + MilestoneNumber *int64 `location:"querystring" locationName:"MilestoneNumber" min:"1" type:"integer"` + + // The ID of the question. + // + // QuestionId is a required field + QuestionId *string `location:"uri" locationName:"QuestionId" min:"1" type:"string" required:"true"` + + // The ID assigned to the workload. This ID is unique within an AWS Region. + // + // WorkloadId is a required field + WorkloadId *string `location:"uri" locationName:"WorkloadId" type:"string" required:"true"` +} + +// String returns the string representation +func (s GetAnswerInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetAnswerInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetAnswerInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetAnswerInput"} + if s.LensAlias == nil { + invalidParams.Add(request.NewErrParamRequired("LensAlias")) + } + if s.LensAlias != nil && len(*s.LensAlias) < 1 { + invalidParams.Add(request.NewErrParamMinLen("LensAlias", 1)) + } + if s.MilestoneNumber != nil && *s.MilestoneNumber < 1 { + invalidParams.Add(request.NewErrParamMinValue("MilestoneNumber", 1)) + } + if s.QuestionId == nil { + invalidParams.Add(request.NewErrParamRequired("QuestionId")) + } + if s.QuestionId != nil && len(*s.QuestionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("QuestionId", 1)) + } + if s.WorkloadId == nil { + invalidParams.Add(request.NewErrParamRequired("WorkloadId")) + } + if s.WorkloadId != nil && len(*s.WorkloadId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("WorkloadId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetLensAlias sets the LensAlias field's value. +func (s *GetAnswerInput) SetLensAlias(v string) *GetAnswerInput { + s.LensAlias = &v + return s +} + +// SetMilestoneNumber sets the MilestoneNumber field's value. +func (s *GetAnswerInput) SetMilestoneNumber(v int64) *GetAnswerInput { + s.MilestoneNumber = &v + return s +} + +// SetQuestionId sets the QuestionId field's value. +func (s *GetAnswerInput) SetQuestionId(v string) *GetAnswerInput { + s.QuestionId = &v + return s +} + +// SetWorkloadId sets the WorkloadId field's value. +func (s *GetAnswerInput) SetWorkloadId(v string) *GetAnswerInput { + s.WorkloadId = &v + return s +} + +// Output of a get answer call. +type GetAnswerOutput struct { + _ struct{} `type:"structure"` + + // An answer of the question. + Answer *Answer `type:"structure"` + + // The alias of the lens, for example, serverless. + // + // Each lens is identified by its LensSummary$LensAlias. + LensAlias *string `min:"1" type:"string"` + + // The milestone number. + // + // A workload can have a maximum of 100 milestones. + MilestoneNumber *int64 `min:"1" type:"integer"` + + // The ID assigned to the workload. This ID is unique within an AWS Region. + WorkloadId *string `type:"string"` +} + +// String returns the string representation +func (s GetAnswerOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetAnswerOutput) GoString() string { + return s.String() +} + +// SetAnswer sets the Answer field's value. +func (s *GetAnswerOutput) SetAnswer(v *Answer) *GetAnswerOutput { + s.Answer = v + return s +} + +// SetLensAlias sets the LensAlias field's value. +func (s *GetAnswerOutput) SetLensAlias(v string) *GetAnswerOutput { + s.LensAlias = &v + return s +} + +// SetMilestoneNumber sets the MilestoneNumber field's value. +func (s *GetAnswerOutput) SetMilestoneNumber(v int64) *GetAnswerOutput { + s.MilestoneNumber = &v + return s +} + +// SetWorkloadId sets the WorkloadId field's value. +func (s *GetAnswerOutput) SetWorkloadId(v string) *GetAnswerOutput { + s.WorkloadId = &v + return s +} + +// Input to get lens review. +type GetLensReviewInput struct { + _ struct{} `type:"structure"` + + // The alias of the lens, for example, serverless. + // + // Each lens is identified by its LensSummary$LensAlias. + // + // LensAlias is a required field + LensAlias *string `location:"uri" locationName:"LensAlias" min:"1" type:"string" required:"true"` + + // The milestone number. + // + // A workload can have a maximum of 100 milestones. + MilestoneNumber *int64 `location:"querystring" locationName:"MilestoneNumber" min:"1" type:"integer"` + + // The ID assigned to the workload. This ID is unique within an AWS Region. + // + // WorkloadId is a required field + WorkloadId *string `location:"uri" locationName:"WorkloadId" type:"string" required:"true"` +} + +// String returns the string representation +func (s GetLensReviewInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetLensReviewInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetLensReviewInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetLensReviewInput"} + if s.LensAlias == nil { + invalidParams.Add(request.NewErrParamRequired("LensAlias")) + } + if s.LensAlias != nil && len(*s.LensAlias) < 1 { + invalidParams.Add(request.NewErrParamMinLen("LensAlias", 1)) + } + if s.MilestoneNumber != nil && *s.MilestoneNumber < 1 { + invalidParams.Add(request.NewErrParamMinValue("MilestoneNumber", 1)) + } + if s.WorkloadId == nil { + invalidParams.Add(request.NewErrParamRequired("WorkloadId")) + } + if s.WorkloadId != nil && len(*s.WorkloadId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("WorkloadId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetLensAlias sets the LensAlias field's value. +func (s *GetLensReviewInput) SetLensAlias(v string) *GetLensReviewInput { + s.LensAlias = &v + return s +} + +// SetMilestoneNumber sets the MilestoneNumber field's value. +func (s *GetLensReviewInput) SetMilestoneNumber(v int64) *GetLensReviewInput { + s.MilestoneNumber = &v + return s +} + +// SetWorkloadId sets the WorkloadId field's value. +func (s *GetLensReviewInput) SetWorkloadId(v string) *GetLensReviewInput { + s.WorkloadId = &v + return s +} + +// Output of a get lens review call. +type GetLensReviewOutput struct { + _ struct{} `type:"structure"` + + // A lens review of a question. + LensReview *LensReview `type:"structure"` + + // The milestone number. + // + // A workload can have a maximum of 100 milestones. + MilestoneNumber *int64 `min:"1" type:"integer"` + + // The ID assigned to the workload. This ID is unique within an AWS Region. + WorkloadId *string `type:"string"` +} + +// String returns the string representation +func (s GetLensReviewOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetLensReviewOutput) GoString() string { + return s.String() +} + +// SetLensReview sets the LensReview field's value. +func (s *GetLensReviewOutput) SetLensReview(v *LensReview) *GetLensReviewOutput { + s.LensReview = v + return s +} + +// SetMilestoneNumber sets the MilestoneNumber field's value. +func (s *GetLensReviewOutput) SetMilestoneNumber(v int64) *GetLensReviewOutput { + s.MilestoneNumber = &v + return s +} + +// SetWorkloadId sets the WorkloadId field's value. +func (s *GetLensReviewOutput) SetWorkloadId(v string) *GetLensReviewOutput { + s.WorkloadId = &v + return s +} + +// Input to get lens review report. +type GetLensReviewReportInput struct { + _ struct{} `type:"structure"` + + // The alias of the lens, for example, serverless. + // + // Each lens is identified by its LensSummary$LensAlias. + // + // LensAlias is a required field + LensAlias *string `location:"uri" locationName:"LensAlias" min:"1" type:"string" required:"true"` + + // The milestone number. + // + // A workload can have a maximum of 100 milestones. + MilestoneNumber *int64 `location:"querystring" locationName:"MilestoneNumber" min:"1" type:"integer"` + + // The ID assigned to the workload. This ID is unique within an AWS Region. + // + // WorkloadId is a required field + WorkloadId *string `location:"uri" locationName:"WorkloadId" type:"string" required:"true"` +} + +// String returns the string representation +func (s GetLensReviewReportInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetLensReviewReportInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetLensReviewReportInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetLensReviewReportInput"} + if s.LensAlias == nil { + invalidParams.Add(request.NewErrParamRequired("LensAlias")) + } + if s.LensAlias != nil && len(*s.LensAlias) < 1 { + invalidParams.Add(request.NewErrParamMinLen("LensAlias", 1)) + } + if s.MilestoneNumber != nil && *s.MilestoneNumber < 1 { + invalidParams.Add(request.NewErrParamMinValue("MilestoneNumber", 1)) + } + if s.WorkloadId == nil { + invalidParams.Add(request.NewErrParamRequired("WorkloadId")) + } + if s.WorkloadId != nil && len(*s.WorkloadId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("WorkloadId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetLensAlias sets the LensAlias field's value. +func (s *GetLensReviewReportInput) SetLensAlias(v string) *GetLensReviewReportInput { + s.LensAlias = &v + return s +} + +// SetMilestoneNumber sets the MilestoneNumber field's value. +func (s *GetLensReviewReportInput) SetMilestoneNumber(v int64) *GetLensReviewReportInput { + s.MilestoneNumber = &v + return s +} + +// SetWorkloadId sets the WorkloadId field's value. +func (s *GetLensReviewReportInput) SetWorkloadId(v string) *GetLensReviewReportInput { + s.WorkloadId = &v + return s +} + +// Output of a get lens review report call. +type GetLensReviewReportOutput struct { + _ struct{} `type:"structure"` + + // A report of a lens review. + LensReviewReport *LensReviewReport `type:"structure"` + + // The milestone number. + // + // A workload can have a maximum of 100 milestones. + MilestoneNumber *int64 `min:"1" type:"integer"` + + // The ID assigned to the workload. This ID is unique within an AWS Region. + WorkloadId *string `type:"string"` +} + +// String returns the string representation +func (s GetLensReviewReportOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetLensReviewReportOutput) GoString() string { + return s.String() +} + +// SetLensReviewReport sets the LensReviewReport field's value. +func (s *GetLensReviewReportOutput) SetLensReviewReport(v *LensReviewReport) *GetLensReviewReportOutput { + s.LensReviewReport = v + return s +} + +// SetMilestoneNumber sets the MilestoneNumber field's value. +func (s *GetLensReviewReportOutput) SetMilestoneNumber(v int64) *GetLensReviewReportOutput { + s.MilestoneNumber = &v + return s +} + +// SetWorkloadId sets the WorkloadId field's value. +func (s *GetLensReviewReportOutput) SetWorkloadId(v string) *GetLensReviewReportOutput { + s.WorkloadId = &v + return s +} + +type GetLensVersionDifferenceInput struct { + _ struct{} `type:"structure"` + + // The base version of the lens. + // + // BaseLensVersion is a required field + BaseLensVersion *string `location:"querystring" locationName:"BaseLensVersion" min:"1" type:"string" required:"true"` + + // The alias of the lens, for example, serverless. + // + // Each lens is identified by its LensSummary$LensAlias. + // + // LensAlias is a required field + LensAlias *string `location:"uri" locationName:"LensAlias" min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s GetLensVersionDifferenceInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetLensVersionDifferenceInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetLensVersionDifferenceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetLensVersionDifferenceInput"} + if s.BaseLensVersion == nil { + invalidParams.Add(request.NewErrParamRequired("BaseLensVersion")) + } + if s.BaseLensVersion != nil && len(*s.BaseLensVersion) < 1 { + invalidParams.Add(request.NewErrParamMinLen("BaseLensVersion", 1)) + } + if s.LensAlias == nil { + invalidParams.Add(request.NewErrParamRequired("LensAlias")) + } + if s.LensAlias != nil && len(*s.LensAlias) < 1 { + invalidParams.Add(request.NewErrParamMinLen("LensAlias", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetBaseLensVersion sets the BaseLensVersion field's value. +func (s *GetLensVersionDifferenceInput) SetBaseLensVersion(v string) *GetLensVersionDifferenceInput { + s.BaseLensVersion = &v + return s +} + +// SetLensAlias sets the LensAlias field's value. +func (s *GetLensVersionDifferenceInput) SetLensAlias(v string) *GetLensVersionDifferenceInput { + s.LensAlias = &v + return s +} + +type GetLensVersionDifferenceOutput struct { + _ struct{} `type:"structure"` + + // The base version of the lens. + BaseLensVersion *string `min:"1" type:"string"` + + // The latest version of the lens. + LatestLensVersion *string `min:"1" type:"string"` + + // The alias of the lens, for example, serverless. + // + // Each lens is identified by its LensSummary$LensAlias. + LensAlias *string `min:"1" type:"string"` + + // The differences between the base and latest versions of the lens. + VersionDifferences *VersionDifferences `type:"structure"` +} + +// String returns the string representation +func (s GetLensVersionDifferenceOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetLensVersionDifferenceOutput) GoString() string { + return s.String() +} + +// SetBaseLensVersion sets the BaseLensVersion field's value. +func (s *GetLensVersionDifferenceOutput) SetBaseLensVersion(v string) *GetLensVersionDifferenceOutput { + s.BaseLensVersion = &v + return s +} + +// SetLatestLensVersion sets the LatestLensVersion field's value. +func (s *GetLensVersionDifferenceOutput) SetLatestLensVersion(v string) *GetLensVersionDifferenceOutput { + s.LatestLensVersion = &v + return s +} + +// SetLensAlias sets the LensAlias field's value. +func (s *GetLensVersionDifferenceOutput) SetLensAlias(v string) *GetLensVersionDifferenceOutput { + s.LensAlias = &v + return s +} + +// SetVersionDifferences sets the VersionDifferences field's value. +func (s *GetLensVersionDifferenceOutput) SetVersionDifferences(v *VersionDifferences) *GetLensVersionDifferenceOutput { + s.VersionDifferences = v + return s +} + +// Input to get a milestone. +type GetMilestoneInput struct { + _ struct{} `type:"structure"` + + // The milestone number. + // + // A workload can have a maximum of 100 milestones. + // + // MilestoneNumber is a required field + MilestoneNumber *int64 `location:"uri" locationName:"MilestoneNumber" min:"1" type:"integer" required:"true"` + + // The ID assigned to the workload. This ID is unique within an AWS Region. + // + // WorkloadId is a required field + WorkloadId *string `location:"uri" locationName:"WorkloadId" type:"string" required:"true"` +} + +// String returns the string representation +func (s GetMilestoneInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetMilestoneInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetMilestoneInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetMilestoneInput"} + if s.MilestoneNumber == nil { + invalidParams.Add(request.NewErrParamRequired("MilestoneNumber")) + } + if s.MilestoneNumber != nil && *s.MilestoneNumber < 1 { + invalidParams.Add(request.NewErrParamMinValue("MilestoneNumber", 1)) + } + if s.WorkloadId == nil { + invalidParams.Add(request.NewErrParamRequired("WorkloadId")) + } + if s.WorkloadId != nil && len(*s.WorkloadId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("WorkloadId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetMilestoneNumber sets the MilestoneNumber field's value. +func (s *GetMilestoneInput) SetMilestoneNumber(v int64) *GetMilestoneInput { + s.MilestoneNumber = &v + return s +} + +// SetWorkloadId sets the WorkloadId field's value. +func (s *GetMilestoneInput) SetWorkloadId(v string) *GetMilestoneInput { + s.WorkloadId = &v + return s +} + +// Output of a get milestone call. +type GetMilestoneOutput struct { + _ struct{} `type:"structure"` + + // A milestone return object. + Milestone *Milestone `type:"structure"` + + // The ID assigned to the workload. This ID is unique within an AWS Region. + WorkloadId *string `type:"string"` +} + +// String returns the string representation +func (s GetMilestoneOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetMilestoneOutput) GoString() string { + return s.String() +} + +// SetMilestone sets the Milestone field's value. +func (s *GetMilestoneOutput) SetMilestone(v *Milestone) *GetMilestoneOutput { + s.Milestone = v + return s +} + +// SetWorkloadId sets the WorkloadId field's value. +func (s *GetMilestoneOutput) SetWorkloadId(v string) *GetMilestoneOutput { + s.WorkloadId = &v + return s +} + +// Input to get a workload. +type GetWorkloadInput struct { + _ struct{} `type:"structure"` + + // The ID assigned to the workload. This ID is unique within an AWS Region. + // + // WorkloadId is a required field + WorkloadId *string `location:"uri" locationName:"WorkloadId" type:"string" required:"true"` +} + +// String returns the string representation +func (s GetWorkloadInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetWorkloadInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetWorkloadInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetWorkloadInput"} + if s.WorkloadId == nil { + invalidParams.Add(request.NewErrParamRequired("WorkloadId")) + } + if s.WorkloadId != nil && len(*s.WorkloadId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("WorkloadId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetWorkloadId sets the WorkloadId field's value. +func (s *GetWorkloadInput) SetWorkloadId(v string) *GetWorkloadInput { + s.WorkloadId = &v + return s +} + +// Output of a get workload call. +type GetWorkloadOutput struct { + _ struct{} `type:"structure"` + + // A workload return object. + Workload *Workload `type:"structure"` +} + +// String returns the string representation +func (s GetWorkloadOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetWorkloadOutput) GoString() string { + return s.String() +} + +// SetWorkload sets the Workload field's value. +func (s *GetWorkloadOutput) SetWorkload(v *Workload) *GetWorkloadOutput { + s.Workload = v + return s +} + +// An improvement summary of a lens review in a workload. +type ImprovementSummary struct { + _ struct{} `type:"structure"` + + // The improvement plan URL for a question. + ImprovementPlanUrl *string `min:"1" type:"string"` + + // The ID used to identify a pillar, for example, security. + // + // A pillar is identified by its PillarReviewSummary$PillarId. + PillarId *string `min:"1" type:"string"` + + // The ID of the question. + QuestionId *string `min:"1" type:"string"` + + // The title of the question. + QuestionTitle *string `min:"1" type:"string"` + + // The risk for a given workload, lens review, pillar, or question. + Risk *string `type:"string" enum:"Risk"` +} + +// String returns the string representation +func (s ImprovementSummary) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ImprovementSummary) GoString() string { + return s.String() +} + +// SetImprovementPlanUrl sets the ImprovementPlanUrl field's value. +func (s *ImprovementSummary) SetImprovementPlanUrl(v string) *ImprovementSummary { + s.ImprovementPlanUrl = &v + return s +} + +// SetPillarId sets the PillarId field's value. +func (s *ImprovementSummary) SetPillarId(v string) *ImprovementSummary { + s.PillarId = &v + return s +} + +// SetQuestionId sets the QuestionId field's value. +func (s *ImprovementSummary) SetQuestionId(v string) *ImprovementSummary { + s.QuestionId = &v + return s +} + +// SetQuestionTitle sets the QuestionTitle field's value. +func (s *ImprovementSummary) SetQuestionTitle(v string) *ImprovementSummary { + s.QuestionTitle = &v + return s +} + +// SetRisk sets the Risk field's value. +func (s *ImprovementSummary) SetRisk(v string) *ImprovementSummary { + s.Risk = &v + return s +} + +// There is a problem with the AWS Well-Architected Tool API service. +type InternalServerException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + // Description of the error. + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InternalServerException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InternalServerException) GoString() string { + return s.String() +} + +func newErrorInternalServerException(v protocol.ResponseMetadata) error { + return &InternalServerException{ + RespMetadata: v, + } +} + +// Code returns the exception type name. +func (s *InternalServerException) Code() string { + return "InternalServerException" +} + +// Message returns the exception's message. +func (s *InternalServerException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *InternalServerException) OrigErr() error { + return nil +} + +func (s *InternalServerException) 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 *InternalServerException) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *InternalServerException) RequestID() string { + return s.RespMetadata.RequestID +} + +// A lens review of a question. +type LensReview struct { + _ struct{} `type:"structure"` + + // The alias of the lens, for example, serverless. + // + // Each lens is identified by its LensSummary$LensAlias. + LensAlias *string `min:"1" type:"string"` + + // The full name of the lens. + LensName *string `min:"1" type:"string"` + + // The status of the lens. + LensStatus *string `type:"string" enum:"LensStatus"` + + // The version of the lens. + LensVersion *string `min:"1" type:"string"` + + // The token to use to retrieve the next set of results. + NextToken *string `type:"string"` + + // The notes associated with the workload. + Notes *string `type:"string"` + + // List of pillar review summaries of lens review in a workload. + PillarReviewSummaries []*PillarReviewSummary `type:"list"` + + // A map from risk names to the count of how questions have that rating. + RiskCounts map[string]*int64 `type:"map"` + + // The date and time recorded. + UpdatedAt *time.Time `type:"timestamp"` +} + +// String returns the string representation +func (s LensReview) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LensReview) GoString() string { + return s.String() +} + +// SetLensAlias sets the LensAlias field's value. +func (s *LensReview) SetLensAlias(v string) *LensReview { + s.LensAlias = &v + return s +} + +// SetLensName sets the LensName field's value. +func (s *LensReview) SetLensName(v string) *LensReview { + s.LensName = &v + return s +} + +// SetLensStatus sets the LensStatus field's value. +func (s *LensReview) SetLensStatus(v string) *LensReview { + s.LensStatus = &v + return s +} + +// SetLensVersion sets the LensVersion field's value. +func (s *LensReview) SetLensVersion(v string) *LensReview { + s.LensVersion = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *LensReview) SetNextToken(v string) *LensReview { + s.NextToken = &v + return s +} + +// SetNotes sets the Notes field's value. +func (s *LensReview) SetNotes(v string) *LensReview { + s.Notes = &v + return s +} + +// SetPillarReviewSummaries sets the PillarReviewSummaries field's value. +func (s *LensReview) SetPillarReviewSummaries(v []*PillarReviewSummary) *LensReview { + s.PillarReviewSummaries = v + return s +} + +// SetRiskCounts sets the RiskCounts field's value. +func (s *LensReview) SetRiskCounts(v map[string]*int64) *LensReview { + s.RiskCounts = v + return s +} + +// SetUpdatedAt sets the UpdatedAt field's value. +func (s *LensReview) SetUpdatedAt(v time.Time) *LensReview { + s.UpdatedAt = &v + return s +} + +// A report of a lens review. +type LensReviewReport struct { + _ struct{} `type:"structure"` + + // The Base64-encoded string representation of a lens review report. + // + // This data can be used to create a PDF file. + Base64String *string `type:"string"` + + // The alias of the lens, for example, serverless. + // + // Each lens is identified by its LensSummary$LensAlias. + LensAlias *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s LensReviewReport) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LensReviewReport) GoString() string { + return s.String() +} + +// SetBase64String sets the Base64String field's value. +func (s *LensReviewReport) SetBase64String(v string) *LensReviewReport { + s.Base64String = &v + return s +} + +// SetLensAlias sets the LensAlias field's value. +func (s *LensReviewReport) SetLensAlias(v string) *LensReviewReport { + s.LensAlias = &v + return s +} + +// A lens review summary of a workload. +type LensReviewSummary struct { + _ struct{} `type:"structure"` + + // The alias of the lens, for example, serverless. + // + // Each lens is identified by its LensSummary$LensAlias. + LensAlias *string `min:"1" type:"string"` + + // The full name of the lens. + LensName *string `min:"1" type:"string"` + + // The status of the lens. + LensStatus *string `type:"string" enum:"LensStatus"` + + // The version of the lens. + LensVersion *string `min:"1" type:"string"` + + // A map from risk names to the count of how questions have that rating. + RiskCounts map[string]*int64 `type:"map"` + + // The date and time recorded. + UpdatedAt *time.Time `type:"timestamp"` +} + +// String returns the string representation +func (s LensReviewSummary) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LensReviewSummary) GoString() string { + return s.String() +} + +// SetLensAlias sets the LensAlias field's value. +func (s *LensReviewSummary) SetLensAlias(v string) *LensReviewSummary { + s.LensAlias = &v + return s +} + +// SetLensName sets the LensName field's value. +func (s *LensReviewSummary) SetLensName(v string) *LensReviewSummary { + s.LensName = &v + return s +} + +// SetLensStatus sets the LensStatus field's value. +func (s *LensReviewSummary) SetLensStatus(v string) *LensReviewSummary { + s.LensStatus = &v + return s +} + +// SetLensVersion sets the LensVersion field's value. +func (s *LensReviewSummary) SetLensVersion(v string) *LensReviewSummary { + s.LensVersion = &v + return s +} + +// SetRiskCounts sets the RiskCounts field's value. +func (s *LensReviewSummary) SetRiskCounts(v map[string]*int64) *LensReviewSummary { + s.RiskCounts = v + return s +} + +// SetUpdatedAt sets the UpdatedAt field's value. +func (s *LensReviewSummary) SetUpdatedAt(v time.Time) *LensReviewSummary { + s.UpdatedAt = &v + return s +} + +// A lens summary of a lens. +type LensSummary struct { + _ struct{} `type:"structure"` + + // The description of the lens. + Description *string `min:"1" type:"string"` + + // The alias of the lens, for example, serverless. + // + // Each lens is identified by its LensSummary$LensAlias. + LensAlias *string `min:"1" type:"string"` + + // The full name of the lens. + LensName *string `min:"1" type:"string"` + + // The version of the lens. + LensVersion *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s LensSummary) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LensSummary) GoString() string { + return s.String() +} + +// SetDescription sets the Description field's value. +func (s *LensSummary) SetDescription(v string) *LensSummary { + s.Description = &v + return s +} + +// SetLensAlias sets the LensAlias field's value. +func (s *LensSummary) SetLensAlias(v string) *LensSummary { + s.LensAlias = &v + return s +} + +// SetLensName sets the LensName field's value. +func (s *LensSummary) SetLensName(v string) *LensSummary { + s.LensName = &v + return s +} + +// SetLensVersion sets the LensVersion field's value. +func (s *LensSummary) SetLensVersion(v string) *LensSummary { + s.LensVersion = &v + return s +} + +// Lens upgrade summary return object. +type LensUpgradeSummary struct { + _ struct{} `type:"structure"` + + // The current version of the lens. + CurrentLensVersion *string `min:"1" type:"string"` + + // The latest version of the lens. + LatestLensVersion *string `min:"1" type:"string"` + + // The alias of the lens, for example, serverless. + // + // Each lens is identified by its LensSummary$LensAlias. + LensAlias *string `min:"1" type:"string"` + + // The ID assigned to the workload. This ID is unique within an AWS Region. + WorkloadId *string `type:"string"` + + // The name of the workload. + // + // The name must be unique within an account within a Region. Spaces and capitalization + // are ignored when checking for uniqueness. + WorkloadName *string `min:"3" type:"string"` +} + +// String returns the string representation +func (s LensUpgradeSummary) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LensUpgradeSummary) GoString() string { + return s.String() +} + +// SetCurrentLensVersion sets the CurrentLensVersion field's value. +func (s *LensUpgradeSummary) SetCurrentLensVersion(v string) *LensUpgradeSummary { + s.CurrentLensVersion = &v + return s +} + +// SetLatestLensVersion sets the LatestLensVersion field's value. +func (s *LensUpgradeSummary) SetLatestLensVersion(v string) *LensUpgradeSummary { + s.LatestLensVersion = &v + return s +} + +// SetLensAlias sets the LensAlias field's value. +func (s *LensUpgradeSummary) SetLensAlias(v string) *LensUpgradeSummary { + s.LensAlias = &v + return s +} + +// SetWorkloadId sets the WorkloadId field's value. +func (s *LensUpgradeSummary) SetWorkloadId(v string) *LensUpgradeSummary { + s.WorkloadId = &v + return s +} + +// SetWorkloadName sets the WorkloadName field's value. +func (s *LensUpgradeSummary) SetWorkloadName(v string) *LensUpgradeSummary { + s.WorkloadName = &v + return s +} + +// Input to list answers. +type ListAnswersInput struct { + _ struct{} `type:"structure"` + + // The alias of the lens, for example, serverless. + // + // Each lens is identified by its LensSummary$LensAlias. + // + // LensAlias is a required field + LensAlias *string `location:"uri" locationName:"LensAlias" min:"1" type:"string" required:"true"` + + // The maximum number of results to return for this request. + MaxResults *int64 `location:"querystring" locationName:"MaxResults" min:"1" type:"integer"` + + // The milestone number. + // + // A workload can have a maximum of 100 milestones. + MilestoneNumber *int64 `location:"querystring" locationName:"MilestoneNumber" min:"1" type:"integer"` + + // The token to use to retrieve the next set of results. + NextToken *string `location:"querystring" locationName:"NextToken" type:"string"` + + // The ID used to identify a pillar, for example, security. + // + // A pillar is identified by its PillarReviewSummary$PillarId. + PillarId *string `location:"querystring" locationName:"PillarId" min:"1" type:"string"` + + // The ID assigned to the workload. This ID is unique within an AWS Region. + // + // WorkloadId is a required field + WorkloadId *string `location:"uri" locationName:"WorkloadId" type:"string" required:"true"` +} + +// String returns the string representation +func (s ListAnswersInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListAnswersInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListAnswersInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListAnswersInput"} + if s.LensAlias == nil { + invalidParams.Add(request.NewErrParamRequired("LensAlias")) + } + if s.LensAlias != nil && len(*s.LensAlias) < 1 { + invalidParams.Add(request.NewErrParamMinLen("LensAlias", 1)) + } + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + if s.MilestoneNumber != nil && *s.MilestoneNumber < 1 { + invalidParams.Add(request.NewErrParamMinValue("MilestoneNumber", 1)) + } + if s.PillarId != nil && len(*s.PillarId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("PillarId", 1)) + } + if s.WorkloadId == nil { + invalidParams.Add(request.NewErrParamRequired("WorkloadId")) + } + if s.WorkloadId != nil && len(*s.WorkloadId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("WorkloadId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetLensAlias sets the LensAlias field's value. +func (s *ListAnswersInput) SetLensAlias(v string) *ListAnswersInput { + s.LensAlias = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListAnswersInput) SetMaxResults(v int64) *ListAnswersInput { + s.MaxResults = &v + return s +} + +// SetMilestoneNumber sets the MilestoneNumber field's value. +func (s *ListAnswersInput) SetMilestoneNumber(v int64) *ListAnswersInput { + s.MilestoneNumber = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListAnswersInput) SetNextToken(v string) *ListAnswersInput { + s.NextToken = &v + return s +} + +// SetPillarId sets the PillarId field's value. +func (s *ListAnswersInput) SetPillarId(v string) *ListAnswersInput { + s.PillarId = &v + return s +} + +// SetWorkloadId sets the WorkloadId field's value. +func (s *ListAnswersInput) SetWorkloadId(v string) *ListAnswersInput { + s.WorkloadId = &v + return s +} + +// Output of a list answers call. +type ListAnswersOutput struct { + _ struct{} `type:"structure"` + + // List of answer summaries of lens review in a workload. + AnswerSummaries []*AnswerSummary `type:"list"` + + // The alias of the lens, for example, serverless. + // + // Each lens is identified by its LensSummary$LensAlias. + LensAlias *string `min:"1" type:"string"` + + // The milestone number. + // + // A workload can have a maximum of 100 milestones. + MilestoneNumber *int64 `min:"1" type:"integer"` + + // The token to use to retrieve the next set of results. + NextToken *string `type:"string"` + + // The ID assigned to the workload. This ID is unique within an AWS Region. + WorkloadId *string `type:"string"` +} + +// String returns the string representation +func (s ListAnswersOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListAnswersOutput) GoString() string { + return s.String() +} + +// SetAnswerSummaries sets the AnswerSummaries field's value. +func (s *ListAnswersOutput) SetAnswerSummaries(v []*AnswerSummary) *ListAnswersOutput { + s.AnswerSummaries = v + return s +} + +// SetLensAlias sets the LensAlias field's value. +func (s *ListAnswersOutput) SetLensAlias(v string) *ListAnswersOutput { + s.LensAlias = &v + return s +} + +// SetMilestoneNumber sets the MilestoneNumber field's value. +func (s *ListAnswersOutput) SetMilestoneNumber(v int64) *ListAnswersOutput { + s.MilestoneNumber = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListAnswersOutput) SetNextToken(v string) *ListAnswersOutput { + s.NextToken = &v + return s +} + +// SetWorkloadId sets the WorkloadId field's value. +func (s *ListAnswersOutput) SetWorkloadId(v string) *ListAnswersOutput { + s.WorkloadId = &v + return s +} + +// Input to list lens review improvements. +type ListLensReviewImprovementsInput struct { + _ struct{} `type:"structure"` + + // The alias of the lens, for example, serverless. + // + // Each lens is identified by its LensSummary$LensAlias. + // + // LensAlias is a required field + LensAlias *string `location:"uri" locationName:"LensAlias" min:"1" type:"string" required:"true"` + + // The maximum number of results to return for this request. + MaxResults *int64 `location:"querystring" locationName:"MaxResults" min:"1" type:"integer"` + + // The milestone number. + // + // A workload can have a maximum of 100 milestones. + MilestoneNumber *int64 `location:"querystring" locationName:"MilestoneNumber" min:"1" type:"integer"` + + // The token to use to retrieve the next set of results. + NextToken *string `location:"querystring" locationName:"NextToken" type:"string"` + + // The ID used to identify a pillar, for example, security. + // + // A pillar is identified by its PillarReviewSummary$PillarId. + PillarId *string `location:"querystring" locationName:"PillarId" min:"1" type:"string"` + + // The ID assigned to the workload. This ID is unique within an AWS Region. + // + // WorkloadId is a required field + WorkloadId *string `location:"uri" locationName:"WorkloadId" type:"string" required:"true"` +} + +// String returns the string representation +func (s ListLensReviewImprovementsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListLensReviewImprovementsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListLensReviewImprovementsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListLensReviewImprovementsInput"} + if s.LensAlias == nil { + invalidParams.Add(request.NewErrParamRequired("LensAlias")) + } + if s.LensAlias != nil && len(*s.LensAlias) < 1 { + invalidParams.Add(request.NewErrParamMinLen("LensAlias", 1)) + } + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + if s.MilestoneNumber != nil && *s.MilestoneNumber < 1 { + invalidParams.Add(request.NewErrParamMinValue("MilestoneNumber", 1)) + } + if s.PillarId != nil && len(*s.PillarId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("PillarId", 1)) + } + if s.WorkloadId == nil { + invalidParams.Add(request.NewErrParamRequired("WorkloadId")) + } + if s.WorkloadId != nil && len(*s.WorkloadId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("WorkloadId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetLensAlias sets the LensAlias field's value. +func (s *ListLensReviewImprovementsInput) SetLensAlias(v string) *ListLensReviewImprovementsInput { + s.LensAlias = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListLensReviewImprovementsInput) SetMaxResults(v int64) *ListLensReviewImprovementsInput { + s.MaxResults = &v + return s +} + +// SetMilestoneNumber sets the MilestoneNumber field's value. +func (s *ListLensReviewImprovementsInput) SetMilestoneNumber(v int64) *ListLensReviewImprovementsInput { + s.MilestoneNumber = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListLensReviewImprovementsInput) SetNextToken(v string) *ListLensReviewImprovementsInput { + s.NextToken = &v + return s +} + +// SetPillarId sets the PillarId field's value. +func (s *ListLensReviewImprovementsInput) SetPillarId(v string) *ListLensReviewImprovementsInput { + s.PillarId = &v + return s +} + +// SetWorkloadId sets the WorkloadId field's value. +func (s *ListLensReviewImprovementsInput) SetWorkloadId(v string) *ListLensReviewImprovementsInput { + s.WorkloadId = &v + return s +} + +// Output of a list lens review improvements call. +type ListLensReviewImprovementsOutput struct { + _ struct{} `type:"structure"` + + // List of improvement summaries of lens review in a workload. + ImprovementSummaries []*ImprovementSummary `type:"list"` + + // The alias of the lens, for example, serverless. + // + // Each lens is identified by its LensSummary$LensAlias. + LensAlias *string `min:"1" type:"string"` + + // The milestone number. + // + // A workload can have a maximum of 100 milestones. + MilestoneNumber *int64 `min:"1" type:"integer"` + + // The token to use to retrieve the next set of results. + NextToken *string `type:"string"` + + // The ID assigned to the workload. This ID is unique within an AWS Region. + WorkloadId *string `type:"string"` +} + +// String returns the string representation +func (s ListLensReviewImprovementsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListLensReviewImprovementsOutput) GoString() string { + return s.String() +} + +// SetImprovementSummaries sets the ImprovementSummaries field's value. +func (s *ListLensReviewImprovementsOutput) SetImprovementSummaries(v []*ImprovementSummary) *ListLensReviewImprovementsOutput { + s.ImprovementSummaries = v + return s +} + +// SetLensAlias sets the LensAlias field's value. +func (s *ListLensReviewImprovementsOutput) SetLensAlias(v string) *ListLensReviewImprovementsOutput { + s.LensAlias = &v + return s +} + +// SetMilestoneNumber sets the MilestoneNumber field's value. +func (s *ListLensReviewImprovementsOutput) SetMilestoneNumber(v int64) *ListLensReviewImprovementsOutput { + s.MilestoneNumber = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListLensReviewImprovementsOutput) SetNextToken(v string) *ListLensReviewImprovementsOutput { + s.NextToken = &v + return s +} + +// SetWorkloadId sets the WorkloadId field's value. +func (s *ListLensReviewImprovementsOutput) SetWorkloadId(v string) *ListLensReviewImprovementsOutput { + s.WorkloadId = &v + return s +} + +// Input to list lens reviews. +type ListLensReviewsInput struct { + _ struct{} `type:"structure"` + + // The maximum number of results to return for this request. + MaxResults *int64 `location:"querystring" locationName:"MaxResults" min:"1" type:"integer"` + + // The milestone number. + // + // A workload can have a maximum of 100 milestones. + MilestoneNumber *int64 `location:"querystring" locationName:"MilestoneNumber" min:"1" type:"integer"` + + // The token to use to retrieve the next set of results. + NextToken *string `location:"querystring" locationName:"NextToken" type:"string"` + + // The ID assigned to the workload. This ID is unique within an AWS Region. + // + // WorkloadId is a required field + WorkloadId *string `location:"uri" locationName:"WorkloadId" type:"string" required:"true"` +} + +// String returns the string representation +func (s ListLensReviewsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListLensReviewsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListLensReviewsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListLensReviewsInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + if s.MilestoneNumber != nil && *s.MilestoneNumber < 1 { + invalidParams.Add(request.NewErrParamMinValue("MilestoneNumber", 1)) + } + if s.WorkloadId == nil { + invalidParams.Add(request.NewErrParamRequired("WorkloadId")) + } + if s.WorkloadId != nil && len(*s.WorkloadId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("WorkloadId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListLensReviewsInput) SetMaxResults(v int64) *ListLensReviewsInput { + s.MaxResults = &v + return s +} + +// SetMilestoneNumber sets the MilestoneNumber field's value. +func (s *ListLensReviewsInput) SetMilestoneNumber(v int64) *ListLensReviewsInput { + s.MilestoneNumber = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListLensReviewsInput) SetNextToken(v string) *ListLensReviewsInput { + s.NextToken = &v + return s +} + +// SetWorkloadId sets the WorkloadId field's value. +func (s *ListLensReviewsInput) SetWorkloadId(v string) *ListLensReviewsInput { + s.WorkloadId = &v + return s +} + +// Output of a list lens reviews call. +type ListLensReviewsOutput struct { + _ struct{} `type:"structure"` + + // List of lens summaries of lens reviews of a workload. + LensReviewSummaries []*LensReviewSummary `type:"list"` + + // The milestone number. + // + // A workload can have a maximum of 100 milestones. + MilestoneNumber *int64 `min:"1" type:"integer"` + + // The token to use to retrieve the next set of results. + NextToken *string `type:"string"` + + // The ID assigned to the workload. This ID is unique within an AWS Region. + WorkloadId *string `type:"string"` +} + +// String returns the string representation +func (s ListLensReviewsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListLensReviewsOutput) GoString() string { + return s.String() +} + +// SetLensReviewSummaries sets the LensReviewSummaries field's value. +func (s *ListLensReviewsOutput) SetLensReviewSummaries(v []*LensReviewSummary) *ListLensReviewsOutput { + s.LensReviewSummaries = v + return s +} + +// SetMilestoneNumber sets the MilestoneNumber field's value. +func (s *ListLensReviewsOutput) SetMilestoneNumber(v int64) *ListLensReviewsOutput { + s.MilestoneNumber = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListLensReviewsOutput) SetNextToken(v string) *ListLensReviewsOutput { + s.NextToken = &v + return s +} + +// SetWorkloadId sets the WorkloadId field's value. +func (s *ListLensReviewsOutput) SetWorkloadId(v string) *ListLensReviewsOutput { + s.WorkloadId = &v + return s +} + +// Input to list lenses. +type ListLensesInput struct { + _ struct{} `type:"structure"` + + // The maximum number of results to return for this request. + MaxResults *int64 `location:"querystring" locationName:"MaxResults" min:"1" type:"integer"` + + // The token to use to retrieve the next set of results. + NextToken *string `location:"querystring" locationName:"NextToken" type:"string"` +} + +// String returns the string representation +func (s ListLensesInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListLensesInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListLensesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListLensesInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListLensesInput) SetMaxResults(v int64) *ListLensesInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListLensesInput) SetNextToken(v string) *ListLensesInput { + s.NextToken = &v + return s +} + +// Output of a list lenses call. +type ListLensesOutput struct { + _ struct{} `type:"structure"` + + // List of lens summaries of available lenses. + LensSummaries []*LensSummary `type:"list"` + + // The token to use to retrieve the next set of results. + NextToken *string `type:"string"` +} + +// String returns the string representation +func (s ListLensesOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListLensesOutput) GoString() string { + return s.String() +} + +// SetLensSummaries sets the LensSummaries field's value. +func (s *ListLensesOutput) SetLensSummaries(v []*LensSummary) *ListLensesOutput { + s.LensSummaries = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListLensesOutput) SetNextToken(v string) *ListLensesOutput { + s.NextToken = &v + return s +} + +// Input to list all milestones for a workload. +type ListMilestonesInput struct { + _ struct{} `type:"structure"` + + // The maximum number of results to return for this request. + MaxResults *int64 `min:"1" type:"integer"` + + // The token to use to retrieve the next set of results. + NextToken *string `type:"string"` + + // The ID assigned to the workload. This ID is unique within an AWS Region. + // + // WorkloadId is a required field + WorkloadId *string `location:"uri" locationName:"WorkloadId" type:"string" required:"true"` +} + +// String returns the string representation +func (s ListMilestonesInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListMilestonesInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListMilestonesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListMilestonesInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + if s.WorkloadId == nil { + invalidParams.Add(request.NewErrParamRequired("WorkloadId")) + } + if s.WorkloadId != nil && len(*s.WorkloadId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("WorkloadId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListMilestonesInput) SetMaxResults(v int64) *ListMilestonesInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListMilestonesInput) SetNextToken(v string) *ListMilestonesInput { + s.NextToken = &v + return s +} + +// SetWorkloadId sets the WorkloadId field's value. +func (s *ListMilestonesInput) SetWorkloadId(v string) *ListMilestonesInput { + s.WorkloadId = &v + return s +} + +// Output of a list milestones call. +type ListMilestonesOutput struct { + _ struct{} `type:"structure"` + + // A list of milestone summaries. + MilestoneSummaries []*MilestoneSummary `type:"list"` + + // The token to use to retrieve the next set of results. + NextToken *string `type:"string"` + + // The ID assigned to the workload. This ID is unique within an AWS Region. + WorkloadId *string `type:"string"` +} + +// String returns the string representation +func (s ListMilestonesOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListMilestonesOutput) GoString() string { + return s.String() +} + +// SetMilestoneSummaries sets the MilestoneSummaries field's value. +func (s *ListMilestonesOutput) SetMilestoneSummaries(v []*MilestoneSummary) *ListMilestonesOutput { + s.MilestoneSummaries = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListMilestonesOutput) SetNextToken(v string) *ListMilestonesOutput { + s.NextToken = &v + return s +} + +// SetWorkloadId sets the WorkloadId field's value. +func (s *ListMilestonesOutput) SetWorkloadId(v string) *ListMilestonesOutput { + s.WorkloadId = &v + return s +} + +type ListNotificationsInput struct { + _ struct{} `type:"structure"` + + // The maximum number of results to return for this request. + MaxResults *int64 `min:"1" type:"integer"` + + // The token to use to retrieve the next set of results. + NextToken *string `type:"string"` + + // The ID assigned to the workload. This ID is unique within an AWS Region. + WorkloadId *string `type:"string"` +} + +// String returns the string representation +func (s ListNotificationsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListNotificationsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListNotificationsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListNotificationsInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListNotificationsInput) SetMaxResults(v int64) *ListNotificationsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListNotificationsInput) SetNextToken(v string) *ListNotificationsInput { + s.NextToken = &v + return s +} + +// SetWorkloadId sets the WorkloadId field's value. +func (s *ListNotificationsInput) SetWorkloadId(v string) *ListNotificationsInput { + s.WorkloadId = &v + return s +} + +type ListNotificationsOutput struct { + _ struct{} `type:"structure"` + + // The token to use to retrieve the next set of results. + NextToken *string `type:"string"` + + // List of lens notification summaries in a workload. + NotificationSummaries []*NotificationSummary `type:"list"` +} + +// String returns the string representation +func (s ListNotificationsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListNotificationsOutput) GoString() string { + return s.String() +} + +// SetNextToken sets the NextToken field's value. +func (s *ListNotificationsOutput) SetNextToken(v string) *ListNotificationsOutput { + s.NextToken = &v + return s +} + +// SetNotificationSummaries sets the NotificationSummaries field's value. +func (s *ListNotificationsOutput) SetNotificationSummaries(v []*NotificationSummary) *ListNotificationsOutput { + s.NotificationSummaries = v + return s +} + +// Input for List Share Invitations +type ListShareInvitationsInput struct { + _ struct{} `type:"structure"` + + // The maximum number of results to return for this request. + MaxResults *int64 `location:"querystring" locationName:"MaxResults" min:"1" type:"integer"` + + // The token to use to retrieve the next set of results. + NextToken *string `location:"querystring" locationName:"NextToken" type:"string"` + + // An optional string added to the beginning of each workload name returned + // in the results. + WorkloadNamePrefix *string `location:"querystring" locationName:"WorkloadNamePrefix" type:"string"` +} + +// String returns the string representation +func (s ListShareInvitationsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListShareInvitationsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListShareInvitationsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListShareInvitationsInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListShareInvitationsInput) SetMaxResults(v int64) *ListShareInvitationsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListShareInvitationsInput) SetNextToken(v string) *ListShareInvitationsInput { + s.NextToken = &v + return s +} + +// SetWorkloadNamePrefix sets the WorkloadNamePrefix field's value. +func (s *ListShareInvitationsInput) SetWorkloadNamePrefix(v string) *ListShareInvitationsInput { + s.WorkloadNamePrefix = &v + return s +} + +// Input for List Share Invitations +type ListShareInvitationsOutput struct { + _ struct{} `type:"structure"` + + // The token to use to retrieve the next set of results. + NextToken *string `type:"string"` + + // List of share invitation summaries in a workload. + ShareInvitationSummaries []*ShareInvitationSummary `type:"list"` +} + +// String returns the string representation +func (s ListShareInvitationsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListShareInvitationsOutput) GoString() string { + return s.String() +} + +// SetNextToken sets the NextToken field's value. +func (s *ListShareInvitationsOutput) SetNextToken(v string) *ListShareInvitationsOutput { + s.NextToken = &v + return s +} + +// SetShareInvitationSummaries sets the ShareInvitationSummaries field's value. +func (s *ListShareInvitationsOutput) SetShareInvitationSummaries(v []*ShareInvitationSummary) *ListShareInvitationsOutput { + s.ShareInvitationSummaries = v + return s +} + +// Input for List Workload Share +type ListWorkloadSharesInput struct { + _ struct{} `type:"structure"` + + // The maximum number of results to return for this request. + MaxResults *int64 `location:"querystring" locationName:"MaxResults" min:"1" type:"integer"` + + // The token to use to retrieve the next set of results. + NextToken *string `location:"querystring" locationName:"NextToken" type:"string"` + + // The AWS account ID or IAM role with which the workload is shared. + SharedWithPrefix *string `location:"querystring" locationName:"SharedWithPrefix" type:"string"` + + // The ID assigned to the workload. This ID is unique within an AWS Region. + // + // WorkloadId is a required field + WorkloadId *string `location:"uri" locationName:"WorkloadId" type:"string" required:"true"` +} + +// String returns the string representation +func (s ListWorkloadSharesInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListWorkloadSharesInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListWorkloadSharesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListWorkloadSharesInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + if s.WorkloadId == nil { + invalidParams.Add(request.NewErrParamRequired("WorkloadId")) + } + if s.WorkloadId != nil && len(*s.WorkloadId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("WorkloadId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListWorkloadSharesInput) SetMaxResults(v int64) *ListWorkloadSharesInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListWorkloadSharesInput) SetNextToken(v string) *ListWorkloadSharesInput { + s.NextToken = &v + return s +} + +// SetSharedWithPrefix sets the SharedWithPrefix field's value. +func (s *ListWorkloadSharesInput) SetSharedWithPrefix(v string) *ListWorkloadSharesInput { + s.SharedWithPrefix = &v + return s +} + +// SetWorkloadId sets the WorkloadId field's value. +func (s *ListWorkloadSharesInput) SetWorkloadId(v string) *ListWorkloadSharesInput { + s.WorkloadId = &v + return s +} + +// Input for List Workload Share +type ListWorkloadSharesOutput struct { + _ struct{} `type:"structure"` + + // The token to use to retrieve the next set of results. + NextToken *string `type:"string"` + + // The ID assigned to the workload. This ID is unique within an AWS Region. + WorkloadId *string `type:"string"` + + // A list of workload share summaries. + WorkloadShareSummaries []*WorkloadShareSummary `type:"list"` +} + +// String returns the string representation +func (s ListWorkloadSharesOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListWorkloadSharesOutput) GoString() string { + return s.String() +} + +// SetNextToken sets the NextToken field's value. +func (s *ListWorkloadSharesOutput) SetNextToken(v string) *ListWorkloadSharesOutput { + s.NextToken = &v + return s +} + +// SetWorkloadId sets the WorkloadId field's value. +func (s *ListWorkloadSharesOutput) SetWorkloadId(v string) *ListWorkloadSharesOutput { + s.WorkloadId = &v + return s +} + +// SetWorkloadShareSummaries sets the WorkloadShareSummaries field's value. +func (s *ListWorkloadSharesOutput) SetWorkloadShareSummaries(v []*WorkloadShareSummary) *ListWorkloadSharesOutput { + s.WorkloadShareSummaries = v + return s +} + +// Input to list all workloads. +type ListWorkloadsInput struct { + _ struct{} `type:"structure"` + + // The maximum number of results to return for this request. + MaxResults *int64 `min:"1" type:"integer"` + + // The token to use to retrieve the next set of results. + NextToken *string `type:"string"` + + // An optional string added to the beginning of each workload name returned + // in the results. + WorkloadNamePrefix *string `type:"string"` +} + +// String returns the string representation +func (s ListWorkloadsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListWorkloadsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListWorkloadsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListWorkloadsInput"} + if s.MaxResults != nil && *s.MaxResults < 1 { + invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetMaxResults sets the MaxResults field's value. +func (s *ListWorkloadsInput) SetMaxResults(v int64) *ListWorkloadsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListWorkloadsInput) SetNextToken(v string) *ListWorkloadsInput { + s.NextToken = &v + return s +} + +// SetWorkloadNamePrefix sets the WorkloadNamePrefix field's value. +func (s *ListWorkloadsInput) SetWorkloadNamePrefix(v string) *ListWorkloadsInput { + s.WorkloadNamePrefix = &v + return s +} + +// Output of a list workloads call. +type ListWorkloadsOutput struct { + _ struct{} `type:"structure"` + + // The token to use to retrieve the next set of results. + NextToken *string `type:"string"` + + // A list of workload summaries. + WorkloadSummaries []*WorkloadSummary `type:"list"` +} + +// String returns the string representation +func (s ListWorkloadsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListWorkloadsOutput) GoString() string { + return s.String() +} + +// SetNextToken sets the NextToken field's value. +func (s *ListWorkloadsOutput) SetNextToken(v string) *ListWorkloadsOutput { + s.NextToken = &v + return s +} + +// SetWorkloadSummaries sets the WorkloadSummaries field's value. +func (s *ListWorkloadsOutput) SetWorkloadSummaries(v []*WorkloadSummary) *ListWorkloadsOutput { + s.WorkloadSummaries = v + return s +} + +// A milestone return object. +type Milestone struct { + _ struct{} `type:"structure"` + + // The name of the milestone in a workload. + // + // Milestone names must be unique within a workload. + MilestoneName *string `min:"3" type:"string"` + + // The milestone number. + // + // A workload can have a maximum of 100 milestones. + MilestoneNumber *int64 `min:"1" type:"integer"` + + // The date and time recorded. + RecordedAt *time.Time `type:"timestamp"` + + // A workload return object. + Workload *Workload `type:"structure"` +} + +// String returns the string representation +func (s Milestone) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Milestone) GoString() string { + return s.String() +} + +// SetMilestoneName sets the MilestoneName field's value. +func (s *Milestone) SetMilestoneName(v string) *Milestone { + s.MilestoneName = &v + return s +} + +// SetMilestoneNumber sets the MilestoneNumber field's value. +func (s *Milestone) SetMilestoneNumber(v int64) *Milestone { + s.MilestoneNumber = &v + return s +} + +// SetRecordedAt sets the RecordedAt field's value. +func (s *Milestone) SetRecordedAt(v time.Time) *Milestone { + s.RecordedAt = &v + return s +} + +// SetWorkload sets the Workload field's value. +func (s *Milestone) SetWorkload(v *Workload) *Milestone { + s.Workload = v + return s +} + +// A milestone summary return object. +type MilestoneSummary struct { + _ struct{} `type:"structure"` + + // The name of the milestone in a workload. + // + // Milestone names must be unique within a workload. + MilestoneName *string `min:"3" type:"string"` + + // The milestone number. + // + // A workload can have a maximum of 100 milestones. + MilestoneNumber *int64 `min:"1" type:"integer"` + + // The date and time recorded. + RecordedAt *time.Time `type:"timestamp"` + + // A workload summary return object. + WorkloadSummary *WorkloadSummary `type:"structure"` +} + +// String returns the string representation +func (s MilestoneSummary) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s MilestoneSummary) GoString() string { + return s.String() +} + +// SetMilestoneName sets the MilestoneName field's value. +func (s *MilestoneSummary) SetMilestoneName(v string) *MilestoneSummary { + s.MilestoneName = &v + return s +} + +// SetMilestoneNumber sets the MilestoneNumber field's value. +func (s *MilestoneSummary) SetMilestoneNumber(v int64) *MilestoneSummary { + s.MilestoneNumber = &v + return s +} + +// SetRecordedAt sets the RecordedAt field's value. +func (s *MilestoneSummary) SetRecordedAt(v time.Time) *MilestoneSummary { + s.RecordedAt = &v + return s +} + +// SetWorkloadSummary sets the WorkloadSummary field's value. +func (s *MilestoneSummary) SetWorkloadSummary(v *WorkloadSummary) *MilestoneSummary { + s.WorkloadSummary = v + return s +} + +// A notification summary return object. +type NotificationSummary struct { + _ struct{} `type:"structure"` + + // Summary of lens upgrade. + LensUpgradeSummary *LensUpgradeSummary `type:"structure"` + + // The type of notification. + Type *string `type:"string" enum:"NotificationType"` +} + +// String returns the string representation +func (s NotificationSummary) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s NotificationSummary) GoString() string { + return s.String() +} + +// SetLensUpgradeSummary sets the LensUpgradeSummary field's value. +func (s *NotificationSummary) SetLensUpgradeSummary(v *LensUpgradeSummary) *NotificationSummary { + s.LensUpgradeSummary = v + return s +} + +// SetType sets the Type field's value. +func (s *NotificationSummary) SetType(v string) *NotificationSummary { + s.Type = &v + return s +} + +// A pillar difference return object. +type PillarDifference struct { + _ struct{} `type:"structure"` + + // Indicates the type of change to the pillar. + DifferenceStatus *string `type:"string" enum:"DifferenceStatus"` + + // The ID used to identify a pillar, for example, security. + // + // A pillar is identified by its PillarReviewSummary$PillarId. + PillarId *string `min:"1" type:"string"` + + // List of question differences. + QuestionDifferences []*QuestionDifference `type:"list"` +} + +// String returns the string representation +func (s PillarDifference) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PillarDifference) GoString() string { + return s.String() +} + +// SetDifferenceStatus sets the DifferenceStatus field's value. +func (s *PillarDifference) SetDifferenceStatus(v string) *PillarDifference { + s.DifferenceStatus = &v + return s +} + +// SetPillarId sets the PillarId field's value. +func (s *PillarDifference) SetPillarId(v string) *PillarDifference { + s.PillarId = &v + return s +} + +// SetQuestionDifferences sets the QuestionDifferences field's value. +func (s *PillarDifference) SetQuestionDifferences(v []*QuestionDifference) *PillarDifference { + s.QuestionDifferences = v + return s +} + +// A pillar review summary of a lens review. +type PillarReviewSummary struct { + _ struct{} `type:"structure"` + + // The notes associated with the workload. + Notes *string `type:"string"` + + // The ID used to identify a pillar, for example, security. + // + // A pillar is identified by its PillarReviewSummary$PillarId. + PillarId *string `min:"1" type:"string"` + + // The name of the pillar. + PillarName *string `min:"1" type:"string"` + + // A map from risk names to the count of how questions have that rating. + RiskCounts map[string]*int64 `type:"map"` +} + +// String returns the string representation +func (s PillarReviewSummary) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PillarReviewSummary) GoString() string { + return s.String() +} + +// SetNotes sets the Notes field's value. +func (s *PillarReviewSummary) SetNotes(v string) *PillarReviewSummary { + s.Notes = &v + return s +} + +// SetPillarId sets the PillarId field's value. +func (s *PillarReviewSummary) SetPillarId(v string) *PillarReviewSummary { + s.PillarId = &v + return s +} + +// SetPillarName sets the PillarName field's value. +func (s *PillarReviewSummary) SetPillarName(v string) *PillarReviewSummary { + s.PillarName = &v + return s +} + +// SetRiskCounts sets the RiskCounts field's value. +func (s *PillarReviewSummary) SetRiskCounts(v map[string]*int64) *PillarReviewSummary { + s.RiskCounts = v + return s +} + +// A question difference return object. +type QuestionDifference struct { + _ struct{} `type:"structure"` + + // Indicates the type of change to the question. + DifferenceStatus *string `type:"string" enum:"DifferenceStatus"` + + // The ID of the question. + QuestionId *string `min:"1" type:"string"` + + // The title of the question. + QuestionTitle *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s QuestionDifference) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s QuestionDifference) GoString() string { + return s.String() +} + +// SetDifferenceStatus sets the DifferenceStatus field's value. +func (s *QuestionDifference) SetDifferenceStatus(v string) *QuestionDifference { + s.DifferenceStatus = &v + return s +} + +// SetQuestionId sets the QuestionId field's value. +func (s *QuestionDifference) SetQuestionId(v string) *QuestionDifference { + s.QuestionId = &v + return s +} + +// SetQuestionTitle sets the QuestionTitle field's value. +func (s *QuestionDifference) SetQuestionTitle(v string) *QuestionDifference { + s.QuestionTitle = &v + return s +} + +// The requested resource was not found. +type ResourceNotFoundException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + // Description of the error. + Message_ *string `locationName:"Message" type:"string"` + + // Identifier of the resource affected. + // + // ResourceId is a required field + ResourceId *string `type:"string" required:"true"` + + // Type of the resource affected. + // + // ResourceType is a required field + ResourceType *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s ResourceNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceNotFoundException) 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()) +} + +// 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 +} + +// The user has reached their resource quota. +type ServiceQuotaExceededException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + // Description of the error. + Message_ *string `locationName:"Message" type:"string"` + + // Service Quotas requirement to identify originating quota. + // + // QuotaCode is a required field + QuotaCode *string `type:"string" required:"true"` + + // Identifier of the resource affected. + ResourceId *string `type:"string"` + + // Type of the resource affected. + ResourceType *string `type:"string"` + + // Service Quotas requirement to identify originating service. + // + // ServiceCode is a required field + ServiceCode *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s ServiceQuotaExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ServiceQuotaExceededException) GoString() string { + return s.String() +} + +func newErrorServiceQuotaExceededException(v protocol.ResponseMetadata) error { + return &ServiceQuotaExceededException{ + RespMetadata: v, + } +} + +// Code returns the exception type name. +func (s *ServiceQuotaExceededException) Code() string { + return "ServiceQuotaExceededException" +} + +// Message returns the exception's message. +func (s *ServiceQuotaExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *ServiceQuotaExceededException) OrigErr() error { + return nil +} + +func (s *ServiceQuotaExceededException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s *ServiceQuotaExceededException) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *ServiceQuotaExceededException) RequestID() string { + return s.RespMetadata.RequestID +} + +// The share invitation. +type ShareInvitation struct { + _ struct{} `type:"structure"` + + // The ID assigned to the share invitation. + ShareInvitationId *string `type:"string"` + + // The ID assigned to the workload. This ID is unique within an AWS Region. + WorkloadId *string `type:"string"` +} + +// String returns the string representation +func (s ShareInvitation) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ShareInvitation) GoString() string { + return s.String() +} + +// SetShareInvitationId sets the ShareInvitationId field's value. +func (s *ShareInvitation) SetShareInvitationId(v string) *ShareInvitation { + s.ShareInvitationId = &v + return s +} + +// SetWorkloadId sets the WorkloadId field's value. +func (s *ShareInvitation) SetWorkloadId(v string) *ShareInvitation { + s.WorkloadId = &v + return s +} + +// A share invitation summary return object. +type ShareInvitationSummary struct { + _ struct{} `type:"structure"` + + // Permission granted on a workload share. + PermissionType *string `type:"string" enum:"PermissionType"` + + // The ID assigned to the share invitation. + ShareInvitationId *string `type:"string"` + + // An AWS account ID. + SharedBy *string `type:"string"` + + // The AWS account ID or IAM role with which the workload is shared. + SharedWith *string `min:"12" type:"string"` + + // The ID assigned to the workload. This ID is unique within an AWS Region. + WorkloadId *string `type:"string"` + + // The name of the workload. + // + // The name must be unique within an account within a Region. Spaces and capitalization + // are ignored when checking for uniqueness. + WorkloadName *string `min:"3" type:"string"` +} + +// String returns the string representation +func (s ShareInvitationSummary) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ShareInvitationSummary) GoString() string { + return s.String() +} + +// SetPermissionType sets the PermissionType field's value. +func (s *ShareInvitationSummary) SetPermissionType(v string) *ShareInvitationSummary { + s.PermissionType = &v + return s +} + +// SetShareInvitationId sets the ShareInvitationId field's value. +func (s *ShareInvitationSummary) SetShareInvitationId(v string) *ShareInvitationSummary { + s.ShareInvitationId = &v + return s +} + +// SetSharedBy sets the SharedBy field's value. +func (s *ShareInvitationSummary) SetSharedBy(v string) *ShareInvitationSummary { + s.SharedBy = &v + return s +} + +// SetSharedWith sets the SharedWith field's value. +func (s *ShareInvitationSummary) SetSharedWith(v string) *ShareInvitationSummary { + s.SharedWith = &v + return s +} + +// SetWorkloadId sets the WorkloadId field's value. +func (s *ShareInvitationSummary) SetWorkloadId(v string) *ShareInvitationSummary { + s.WorkloadId = &v + return s +} + +// SetWorkloadName sets the WorkloadName field's value. +func (s *ShareInvitationSummary) SetWorkloadName(v string) *ShareInvitationSummary { + s.WorkloadName = &v + return s +} + +// Request was denied due to request throttling. +type ThrottlingException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + // Description of the error. + Message_ *string `locationName:"Message" type:"string"` + + // Service Quotas requirement to identify originating quota. + QuotaCode *string `type:"string"` + + // Service Quotas requirement to identify originating service. + ServiceCode *string `type:"string"` +} + +// String returns the string representation +func (s ThrottlingException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ThrottlingException) GoString() string { + return s.String() +} + +func newErrorThrottlingException(v protocol.ResponseMetadata) error { + return &ThrottlingException{ + RespMetadata: v, + } +} + +// Code returns the exception type name. +func (s *ThrottlingException) Code() string { + return "ThrottlingException" +} + +// Message returns the exception's message. +func (s *ThrottlingException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *ThrottlingException) OrigErr() error { + return nil +} + +func (s *ThrottlingException) 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 *ThrottlingException) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *ThrottlingException) RequestID() string { + return s.RespMetadata.RequestID +} + +// Input to update answer. +type UpdateAnswerInput struct { + _ struct{} `type:"structure"` + + // Defines whether this question is applicable to a lens review. + IsApplicable *bool `type:"boolean"` + + // The alias of the lens, for example, serverless. + // + // Each lens is identified by its LensSummary$LensAlias. + // + // LensAlias is a required field + LensAlias *string `location:"uri" locationName:"LensAlias" min:"1" type:"string" required:"true"` + + // The notes associated with the workload. + Notes *string `type:"string"` + + // The ID of the question. + // + // QuestionId is a required field + QuestionId *string `location:"uri" locationName:"QuestionId" min:"1" type:"string" required:"true"` + + // List of selected choice IDs in a question answer. + SelectedChoices []*string `type:"list"` + + // The ID assigned to the workload. This ID is unique within an AWS Region. + // + // WorkloadId is a required field + WorkloadId *string `location:"uri" locationName:"WorkloadId" type:"string" required:"true"` +} + +// String returns the string representation +func (s UpdateAnswerInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateAnswerInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateAnswerInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateAnswerInput"} + if s.LensAlias == nil { + invalidParams.Add(request.NewErrParamRequired("LensAlias")) + } + if s.LensAlias != nil && len(*s.LensAlias) < 1 { + invalidParams.Add(request.NewErrParamMinLen("LensAlias", 1)) + } + if s.QuestionId == nil { + invalidParams.Add(request.NewErrParamRequired("QuestionId")) + } + if s.QuestionId != nil && len(*s.QuestionId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("QuestionId", 1)) + } + if s.WorkloadId == nil { + invalidParams.Add(request.NewErrParamRequired("WorkloadId")) + } + if s.WorkloadId != nil && len(*s.WorkloadId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("WorkloadId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetIsApplicable sets the IsApplicable field's value. +func (s *UpdateAnswerInput) SetIsApplicable(v bool) *UpdateAnswerInput { + s.IsApplicable = &v + return s +} + +// SetLensAlias sets the LensAlias field's value. +func (s *UpdateAnswerInput) SetLensAlias(v string) *UpdateAnswerInput { + s.LensAlias = &v + return s +} + +// SetNotes sets the Notes field's value. +func (s *UpdateAnswerInput) SetNotes(v string) *UpdateAnswerInput { + s.Notes = &v + return s +} + +// SetQuestionId sets the QuestionId field's value. +func (s *UpdateAnswerInput) SetQuestionId(v string) *UpdateAnswerInput { + s.QuestionId = &v + return s +} + +// SetSelectedChoices sets the SelectedChoices field's value. +func (s *UpdateAnswerInput) SetSelectedChoices(v []*string) *UpdateAnswerInput { + s.SelectedChoices = v + return s +} + +// SetWorkloadId sets the WorkloadId field's value. +func (s *UpdateAnswerInput) SetWorkloadId(v string) *UpdateAnswerInput { + s.WorkloadId = &v + return s +} + +// Output of a update answer call. +type UpdateAnswerOutput struct { + _ struct{} `type:"structure"` + + // An answer of the question. + Answer *Answer `type:"structure"` + + // The alias of the lens, for example, serverless. + // + // Each lens is identified by its LensSummary$LensAlias. + LensAlias *string `min:"1" type:"string"` + + // The ID assigned to the workload. This ID is unique within an AWS Region. + WorkloadId *string `type:"string"` +} + +// String returns the string representation +func (s UpdateAnswerOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateAnswerOutput) GoString() string { + return s.String() +} + +// SetAnswer sets the Answer field's value. +func (s *UpdateAnswerOutput) SetAnswer(v *Answer) *UpdateAnswerOutput { + s.Answer = v + return s +} + +// SetLensAlias sets the LensAlias field's value. +func (s *UpdateAnswerOutput) SetLensAlias(v string) *UpdateAnswerOutput { + s.LensAlias = &v + return s +} + +// SetWorkloadId sets the WorkloadId field's value. +func (s *UpdateAnswerOutput) SetWorkloadId(v string) *UpdateAnswerOutput { + s.WorkloadId = &v + return s +} + +// Input for update lens review. +type UpdateLensReviewInput struct { + _ struct{} `type:"structure"` + + // The alias of the lens, for example, serverless. + // + // Each lens is identified by its LensSummary$LensAlias. + // + // LensAlias is a required field + LensAlias *string `location:"uri" locationName:"LensAlias" min:"1" type:"string" required:"true"` + + // The notes associated with the workload. + LensNotes *string `type:"string"` + + // List of pillar notes of a lens review in a workload. + PillarNotes map[string]*string `type:"map"` + + // The ID assigned to the workload. This ID is unique within an AWS Region. + // + // WorkloadId is a required field + WorkloadId *string `location:"uri" locationName:"WorkloadId" type:"string" required:"true"` +} + +// String returns the string representation +func (s UpdateLensReviewInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateLensReviewInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateLensReviewInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateLensReviewInput"} + if s.LensAlias == nil { + invalidParams.Add(request.NewErrParamRequired("LensAlias")) + } + if s.LensAlias != nil && len(*s.LensAlias) < 1 { + invalidParams.Add(request.NewErrParamMinLen("LensAlias", 1)) + } + if s.WorkloadId == nil { + invalidParams.Add(request.NewErrParamRequired("WorkloadId")) + } + if s.WorkloadId != nil && len(*s.WorkloadId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("WorkloadId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetLensAlias sets the LensAlias field's value. +func (s *UpdateLensReviewInput) SetLensAlias(v string) *UpdateLensReviewInput { + s.LensAlias = &v + return s +} + +// SetLensNotes sets the LensNotes field's value. +func (s *UpdateLensReviewInput) SetLensNotes(v string) *UpdateLensReviewInput { + s.LensNotes = &v + return s +} + +// SetPillarNotes sets the PillarNotes field's value. +func (s *UpdateLensReviewInput) SetPillarNotes(v map[string]*string) *UpdateLensReviewInput { + s.PillarNotes = v + return s +} + +// SetWorkloadId sets the WorkloadId field's value. +func (s *UpdateLensReviewInput) SetWorkloadId(v string) *UpdateLensReviewInput { + s.WorkloadId = &v + return s +} + +// Output of a update lens review call. +type UpdateLensReviewOutput struct { + _ struct{} `type:"structure"` + + // A lens review of a question. + LensReview *LensReview `type:"structure"` + + // The ID assigned to the workload. This ID is unique within an AWS Region. + WorkloadId *string `type:"string"` +} + +// String returns the string representation +func (s UpdateLensReviewOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateLensReviewOutput) GoString() string { + return s.String() +} + +// SetLensReview sets the LensReview field's value. +func (s *UpdateLensReviewOutput) SetLensReview(v *LensReview) *UpdateLensReviewOutput { + s.LensReview = v + return s +} + +// SetWorkloadId sets the WorkloadId field's value. +func (s *UpdateLensReviewOutput) SetWorkloadId(v string) *UpdateLensReviewOutput { + s.WorkloadId = &v + return s +} + +// Input for Update Share Invitation +type UpdateShareInvitationInput struct { + _ struct{} `type:"structure"` + + // Share invitation action taken by contributor. + // + // ShareInvitationAction is a required field + ShareInvitationAction *string `type:"string" required:"true" enum:"ShareInvitationAction"` + + // The ID assigned to the share invitation. + // + // ShareInvitationId is a required field + ShareInvitationId *string `location:"uri" locationName:"ShareInvitationId" type:"string" required:"true"` +} + +// String returns the string representation +func (s UpdateShareInvitationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateShareInvitationInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateShareInvitationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateShareInvitationInput"} + if s.ShareInvitationAction == nil { + invalidParams.Add(request.NewErrParamRequired("ShareInvitationAction")) + } + if s.ShareInvitationId == nil { + invalidParams.Add(request.NewErrParamRequired("ShareInvitationId")) + } + if s.ShareInvitationId != nil && len(*s.ShareInvitationId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ShareInvitationId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetShareInvitationAction sets the ShareInvitationAction field's value. +func (s *UpdateShareInvitationInput) SetShareInvitationAction(v string) *UpdateShareInvitationInput { + s.ShareInvitationAction = &v + return s +} + +// SetShareInvitationId sets the ShareInvitationId field's value. +func (s *UpdateShareInvitationInput) SetShareInvitationId(v string) *UpdateShareInvitationInput { + s.ShareInvitationId = &v + return s +} + +type UpdateShareInvitationOutput struct { + _ struct{} `type:"structure"` + + // The updated workload share invitation. + ShareInvitation *ShareInvitation `type:"structure"` +} + +// String returns the string representation +func (s UpdateShareInvitationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateShareInvitationOutput) GoString() string { + return s.String() +} + +// SetShareInvitation sets the ShareInvitation field's value. +func (s *UpdateShareInvitationOutput) SetShareInvitation(v *ShareInvitation) *UpdateShareInvitationOutput { + s.ShareInvitation = v + return s +} + +// Input to update a workload. +type UpdateWorkloadInput struct { + _ struct{} `type:"structure"` + + // The list of AWS account IDs associated with the workload. + AccountIds []*string `type:"list"` + + // The URL of the architectural design for the workload. + ArchitecturalDesign *string `type:"string"` + + // The list of AWS Regions associated with the workload, for example, us-east-2, + // or ca-central-1. + AwsRegions []*string `type:"list"` + + // The description for the workload. + Description *string `min:"3" type:"string"` + + // The environment for the workload. + Environment *string `type:"string" enum:"WorkloadEnvironment"` + + // The improvement status for a workload. + ImprovementStatus *string `type:"string" enum:"WorkloadImprovementStatus"` + + // The industry for the workload. + Industry *string `type:"string"` + + // The industry type for the workload. + // + // If specified, must be one of the following: + // + // * Agriculture + // + // * Automobile + // + // * Defense + // + // * Design and Engineering + // + // * Digital Advertising + // + // * Education + // + // * Environmental Protection + // + // * Financial Services + // + // * Gaming + // + // * General Public Services + // + // * Healthcare + // + // * Hospitality + // + // * InfoTech + // + // * Justice and Public Safety + // + // * Life Sciences + // + // * Manufacturing + // + // * Media & Entertainment + // + // * Mining & Resources + // + // * Oil & Gas + // + // * Power & Utilities + // + // * Professional Services + // + // * Real Estate & Construction + // + // * Retail & Wholesale + // + // * Social Protection + // + // * Telecommunications + // + // * Travel, Transportation & Logistics + // + // * Other + IndustryType *string `type:"string"` + + // Flag indicating whether the workload owner has acknowledged that the Review + // owner field is required. + // + // If a Review owner is not added to the workload within 60 days of acknowledgement, + // access to the workload is restricted until an owner is added. + IsReviewOwnerUpdateAcknowledged *bool `type:"boolean"` + + // The list of non-AWS Regions associated with the workload. + NonAwsRegions []*string `type:"list"` + + // The notes associated with the workload. + Notes *string `type:"string"` + + // The priorities of the pillars, which are used to order items in the improvement + // plan. Each pillar is represented by its PillarReviewSummary$PillarId. + PillarPriorities []*string `type:"list"` + + // The review owner of the workload. The name, email address, or identifier + // for the primary group or individual that owns the workload review process. + ReviewOwner *string `min:"3" type:"string"` + + // The ID assigned to the workload. This ID is unique within an AWS Region. + // + // WorkloadId is a required field + WorkloadId *string `location:"uri" locationName:"WorkloadId" type:"string" required:"true"` + + // The name of the workload. + // + // The name must be unique within an account within a Region. Spaces and capitalization + // are ignored when checking for uniqueness. + WorkloadName *string `min:"3" type:"string"` +} + +// String returns the string representation +func (s UpdateWorkloadInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateWorkloadInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateWorkloadInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateWorkloadInput"} + if s.Description != nil && len(*s.Description) < 3 { + invalidParams.Add(request.NewErrParamMinLen("Description", 3)) + } + if s.ReviewOwner != nil && len(*s.ReviewOwner) < 3 { + invalidParams.Add(request.NewErrParamMinLen("ReviewOwner", 3)) + } + if s.WorkloadId == nil { + invalidParams.Add(request.NewErrParamRequired("WorkloadId")) + } + if s.WorkloadId != nil && len(*s.WorkloadId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("WorkloadId", 1)) + } + if s.WorkloadName != nil && len(*s.WorkloadName) < 3 { + invalidParams.Add(request.NewErrParamMinLen("WorkloadName", 3)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAccountIds sets the AccountIds field's value. +func (s *UpdateWorkloadInput) SetAccountIds(v []*string) *UpdateWorkloadInput { + s.AccountIds = v + return s +} + +// SetArchitecturalDesign sets the ArchitecturalDesign field's value. +func (s *UpdateWorkloadInput) SetArchitecturalDesign(v string) *UpdateWorkloadInput { + s.ArchitecturalDesign = &v + return s +} + +// SetAwsRegions sets the AwsRegions field's value. +func (s *UpdateWorkloadInput) SetAwsRegions(v []*string) *UpdateWorkloadInput { + s.AwsRegions = v + return s +} + +// SetDescription sets the Description field's value. +func (s *UpdateWorkloadInput) SetDescription(v string) *UpdateWorkloadInput { + s.Description = &v + return s +} + +// SetEnvironment sets the Environment field's value. +func (s *UpdateWorkloadInput) SetEnvironment(v string) *UpdateWorkloadInput { + s.Environment = &v + return s +} + +// SetImprovementStatus sets the ImprovementStatus field's value. +func (s *UpdateWorkloadInput) SetImprovementStatus(v string) *UpdateWorkloadInput { + s.ImprovementStatus = &v + return s +} + +// SetIndustry sets the Industry field's value. +func (s *UpdateWorkloadInput) SetIndustry(v string) *UpdateWorkloadInput { + s.Industry = &v + return s +} + +// SetIndustryType sets the IndustryType field's value. +func (s *UpdateWorkloadInput) SetIndustryType(v string) *UpdateWorkloadInput { + s.IndustryType = &v + return s +} + +// SetIsReviewOwnerUpdateAcknowledged sets the IsReviewOwnerUpdateAcknowledged field's value. +func (s *UpdateWorkloadInput) SetIsReviewOwnerUpdateAcknowledged(v bool) *UpdateWorkloadInput { + s.IsReviewOwnerUpdateAcknowledged = &v + return s +} + +// SetNonAwsRegions sets the NonAwsRegions field's value. +func (s *UpdateWorkloadInput) SetNonAwsRegions(v []*string) *UpdateWorkloadInput { + s.NonAwsRegions = v + return s +} + +// SetNotes sets the Notes field's value. +func (s *UpdateWorkloadInput) SetNotes(v string) *UpdateWorkloadInput { + s.Notes = &v + return s +} + +// SetPillarPriorities sets the PillarPriorities field's value. +func (s *UpdateWorkloadInput) SetPillarPriorities(v []*string) *UpdateWorkloadInput { + s.PillarPriorities = v + return s +} + +// SetReviewOwner sets the ReviewOwner field's value. +func (s *UpdateWorkloadInput) SetReviewOwner(v string) *UpdateWorkloadInput { + s.ReviewOwner = &v + return s +} + +// SetWorkloadId sets the WorkloadId field's value. +func (s *UpdateWorkloadInput) SetWorkloadId(v string) *UpdateWorkloadInput { + s.WorkloadId = &v + return s +} + +// SetWorkloadName sets the WorkloadName field's value. +func (s *UpdateWorkloadInput) SetWorkloadName(v string) *UpdateWorkloadInput { + s.WorkloadName = &v + return s +} + +// Output of an update workload call. +type UpdateWorkloadOutput struct { + _ struct{} `type:"structure"` + + // A workload return object. + Workload *Workload `type:"structure"` +} + +// String returns the string representation +func (s UpdateWorkloadOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateWorkloadOutput) GoString() string { + return s.String() +} + +// SetWorkload sets the Workload field's value. +func (s *UpdateWorkloadOutput) SetWorkload(v *Workload) *UpdateWorkloadOutput { + s.Workload = v + return s +} + +// Input for Update Workload Share +type UpdateWorkloadShareInput struct { + _ struct{} `type:"structure"` + + // Permission granted on a workload share. + // + // PermissionType is a required field + PermissionType *string `type:"string" required:"true" enum:"PermissionType"` + + // The ID associated with the workload share. + // + // ShareId is a required field + ShareId *string `location:"uri" locationName:"ShareId" type:"string" required:"true"` + + // The ID assigned to the workload. This ID is unique within an AWS Region. + // + // WorkloadId is a required field + WorkloadId *string `location:"uri" locationName:"WorkloadId" type:"string" required:"true"` +} + +// String returns the string representation +func (s UpdateWorkloadShareInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateWorkloadShareInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpdateWorkloadShareInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpdateWorkloadShareInput"} + if s.PermissionType == nil { + invalidParams.Add(request.NewErrParamRequired("PermissionType")) + } + if s.ShareId == nil { + invalidParams.Add(request.NewErrParamRequired("ShareId")) + } + if s.ShareId != nil && len(*s.ShareId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ShareId", 1)) + } + if s.WorkloadId == nil { + invalidParams.Add(request.NewErrParamRequired("WorkloadId")) + } + if s.WorkloadId != nil && len(*s.WorkloadId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("WorkloadId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetPermissionType sets the PermissionType field's value. +func (s *UpdateWorkloadShareInput) SetPermissionType(v string) *UpdateWorkloadShareInput { + s.PermissionType = &v + return s +} + +// SetShareId sets the ShareId field's value. +func (s *UpdateWorkloadShareInput) SetShareId(v string) *UpdateWorkloadShareInput { + s.ShareId = &v + return s +} + +// SetWorkloadId sets the WorkloadId field's value. +func (s *UpdateWorkloadShareInput) SetWorkloadId(v string) *UpdateWorkloadShareInput { + s.WorkloadId = &v + return s +} + +// Input for Update Workload Share +type UpdateWorkloadShareOutput struct { + _ struct{} `type:"structure"` + + // The ID assigned to the workload. This ID is unique within an AWS Region. + WorkloadId *string `type:"string"` + + // A workload share return object. + WorkloadShare *WorkloadShare `type:"structure"` +} + +// String returns the string representation +func (s UpdateWorkloadShareOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateWorkloadShareOutput) GoString() string { + return s.String() +} + +// SetWorkloadId sets the WorkloadId field's value. +func (s *UpdateWorkloadShareOutput) SetWorkloadId(v string) *UpdateWorkloadShareOutput { + s.WorkloadId = &v + return s +} + +// SetWorkloadShare sets the WorkloadShare field's value. +func (s *UpdateWorkloadShareOutput) SetWorkloadShare(v *WorkloadShare) *UpdateWorkloadShareOutput { + s.WorkloadShare = v + return s +} + +type UpgradeLensReviewInput struct { + _ struct{} `type:"structure"` + + // A unique case-sensitive string used to ensure that this request is idempotent + // (executes only once). + // + // You should not reuse the same token for other requests. If you retry a request + // with the same client request token and the same parameters after it has completed + // successfully, the result of the original request is returned. + // + // This token is listed as required, however, if you do not specify it, the + // AWS SDKs automatically generate one for you. If you are not using the AWS + // SDK or the AWS CLI, you must provide this token or the request will fail. + ClientRequestToken *string `type:"string"` + + // The alias of the lens, for example, serverless. + // + // Each lens is identified by its LensSummary$LensAlias. + // + // LensAlias is a required field + LensAlias *string `location:"uri" locationName:"LensAlias" min:"1" type:"string" required:"true"` + + // The name of the milestone in a workload. + // + // Milestone names must be unique within a workload. + // + // MilestoneName is a required field + MilestoneName *string `min:"3" type:"string" required:"true"` + + // The ID assigned to the workload. This ID is unique within an AWS Region. + // + // WorkloadId is a required field + WorkloadId *string `location:"uri" locationName:"WorkloadId" type:"string" required:"true"` +} + +// String returns the string representation +func (s UpgradeLensReviewInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpgradeLensReviewInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *UpgradeLensReviewInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "UpgradeLensReviewInput"} + if s.LensAlias == nil { + invalidParams.Add(request.NewErrParamRequired("LensAlias")) + } + if s.LensAlias != nil && len(*s.LensAlias) < 1 { + invalidParams.Add(request.NewErrParamMinLen("LensAlias", 1)) + } + if s.MilestoneName == nil { + invalidParams.Add(request.NewErrParamRequired("MilestoneName")) + } + if s.MilestoneName != nil && len(*s.MilestoneName) < 3 { + invalidParams.Add(request.NewErrParamMinLen("MilestoneName", 3)) + } + if s.WorkloadId == nil { + invalidParams.Add(request.NewErrParamRequired("WorkloadId")) + } + if s.WorkloadId != nil && len(*s.WorkloadId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("WorkloadId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetClientRequestToken sets the ClientRequestToken field's value. +func (s *UpgradeLensReviewInput) SetClientRequestToken(v string) *UpgradeLensReviewInput { + s.ClientRequestToken = &v + return s +} + +// SetLensAlias sets the LensAlias field's value. +func (s *UpgradeLensReviewInput) SetLensAlias(v string) *UpgradeLensReviewInput { + s.LensAlias = &v + return s +} + +// SetMilestoneName sets the MilestoneName field's value. +func (s *UpgradeLensReviewInput) SetMilestoneName(v string) *UpgradeLensReviewInput { + s.MilestoneName = &v + return s +} + +// SetWorkloadId sets the WorkloadId field's value. +func (s *UpgradeLensReviewInput) SetWorkloadId(v string) *UpgradeLensReviewInput { + s.WorkloadId = &v + return s +} + +type UpgradeLensReviewOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s UpgradeLensReviewOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpgradeLensReviewOutput) GoString() string { + return s.String() +} + +// The user input is not valid. +type ValidationException struct { + _ struct{} `type:"structure"` + RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` + + // The fields that caused the error, if applicable. + Fields []*ValidationExceptionField `type:"list"` + + // Description of the error. + Message_ *string `locationName:"Message" type:"string"` + + // The reason why the request failed validation. + Reason *string `type:"string" enum:"ValidationExceptionReason"` +} + +// String returns the string representation +func (s ValidationException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ValidationException) GoString() string { + return s.String() +} + +func newErrorValidationException(v protocol.ResponseMetadata) error { + return &ValidationException{ + RespMetadata: v, + } +} + +// Code returns the exception type name. +func (s *ValidationException) Code() string { + return "ValidationException" +} + +// Message returns the exception's message. +func (s *ValidationException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s *ValidationException) OrigErr() error { + return nil +} + +func (s *ValidationException) 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 *ValidationException) StatusCode() int { + return s.RespMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s *ValidationException) RequestID() string { + return s.RespMetadata.RequestID +} + +// Stores information about a field passed inside a request that resulted in +// an exception. +type ValidationExceptionField struct { + _ struct{} `type:"structure"` + + // Description of the error. + // + // Message is a required field + Message *string `type:"string" required:"true"` + + // The field name for which validation failed. + // + // Name is a required field + Name *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s ValidationExceptionField) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ValidationExceptionField) GoString() string { + return s.String() +} + +// SetMessage sets the Message field's value. +func (s *ValidationExceptionField) SetMessage(v string) *ValidationExceptionField { + s.Message = &v + return s +} + +// SetName sets the Name field's value. +func (s *ValidationExceptionField) SetName(v string) *ValidationExceptionField { + s.Name = &v + return s +} + +// The differences between the base and latest versions of the lens. +type VersionDifferences struct { + _ struct{} `type:"structure"` + + // The differences between the base and latest versions of the lens. + PillarDifferences []*PillarDifference `type:"list"` +} + +// String returns the string representation +func (s VersionDifferences) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s VersionDifferences) GoString() string { + return s.String() +} + +// SetPillarDifferences sets the PillarDifferences field's value. +func (s *VersionDifferences) SetPillarDifferences(v []*PillarDifference) *VersionDifferences { + s.PillarDifferences = v + return s +} + +// A workload return object. +type Workload struct { + _ struct{} `type:"structure"` + + // The list of AWS account IDs associated with the workload. + AccountIds []*string `type:"list"` + + // The URL of the architectural design for the workload. + ArchitecturalDesign *string `type:"string"` + + // The list of AWS Regions associated with the workload, for example, us-east-2, + // or ca-central-1. + AwsRegions []*string `type:"list"` + + // The description for the workload. + Description *string `min:"3" type:"string"` + + // The environment for the workload. + Environment *string `type:"string" enum:"WorkloadEnvironment"` + + // The improvement status for a workload. + ImprovementStatus *string `type:"string" enum:"WorkloadImprovementStatus"` + + // The industry for the workload. + Industry *string `type:"string"` + + // The industry type for the workload. + // + // If specified, must be one of the following: + // + // * Agriculture + // + // * Automobile + // + // * Defense + // + // * Design and Engineering + // + // * Digital Advertising + // + // * Education + // + // * Environmental Protection + // + // * Financial Services + // + // * Gaming + // + // * General Public Services + // + // * Healthcare + // + // * Hospitality + // + // * InfoTech + // + // * Justice and Public Safety + // + // * Life Sciences + // + // * Manufacturing + // + // * Media & Entertainment + // + // * Mining & Resources + // + // * Oil & Gas + // + // * Power & Utilities + // + // * Professional Services + // + // * Real Estate & Construction + // + // * Retail & Wholesale + // + // * Social Protection + // + // * Telecommunications + // + // * Travel, Transportation & Logistics + // + // * Other + IndustryType *string `type:"string"` + + // Flag indicating whether the workload owner has acknowledged that the Review + // owner field is required. + // + // If a Review owner is not added to the workload within 60 days of acknowledgement, + // access to the workload is restricted until an owner is added. + IsReviewOwnerUpdateAcknowledged *bool `type:"boolean"` + + // The list of lenses associated with the workload. Each lens is identified + // by its LensSummary$LensAlias. + Lenses []*string `type:"list"` + + // The list of non-AWS Regions associated with the workload. + NonAwsRegions []*string `type:"list"` + + // The notes associated with the workload. + Notes *string `type:"string"` + + // An AWS account ID. + Owner *string `type:"string"` + + // The priorities of the pillars, which are used to order items in the improvement + // plan. Each pillar is represented by its PillarReviewSummary$PillarId. + PillarPriorities []*string `type:"list"` + + // The review owner of the workload. The name, email address, or identifier + // for the primary group or individual that owns the workload review process. + ReviewOwner *string `min:"3" type:"string"` + + // The date and time recorded. + ReviewRestrictionDate *time.Time `type:"timestamp"` + + // A map from risk names to the count of how questions have that rating. + RiskCounts map[string]*int64 `type:"map"` + + // The ID assigned to the share invitation. + ShareInvitationId *string `type:"string"` + + // The date and time recorded. + UpdatedAt *time.Time `type:"timestamp"` + + // The ARN for the workload. + WorkloadArn *string `type:"string"` + + // The ID assigned to the workload. This ID is unique within an AWS Region. + WorkloadId *string `type:"string"` + + // The name of the workload. + // + // The name must be unique within an account within a Region. Spaces and capitalization + // are ignored when checking for uniqueness. + WorkloadName *string `min:"3" type:"string"` +} + +// String returns the string representation +func (s Workload) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Workload) GoString() string { + return s.String() +} + +// SetAccountIds sets the AccountIds field's value. +func (s *Workload) SetAccountIds(v []*string) *Workload { + s.AccountIds = v + return s +} + +// SetArchitecturalDesign sets the ArchitecturalDesign field's value. +func (s *Workload) SetArchitecturalDesign(v string) *Workload { + s.ArchitecturalDesign = &v + return s +} + +// SetAwsRegions sets the AwsRegions field's value. +func (s *Workload) SetAwsRegions(v []*string) *Workload { + s.AwsRegions = v + return s +} + +// SetDescription sets the Description field's value. +func (s *Workload) SetDescription(v string) *Workload { + s.Description = &v + return s +} + +// SetEnvironment sets the Environment field's value. +func (s *Workload) SetEnvironment(v string) *Workload { + s.Environment = &v + return s +} + +// SetImprovementStatus sets the ImprovementStatus field's value. +func (s *Workload) SetImprovementStatus(v string) *Workload { + s.ImprovementStatus = &v + return s +} + +// SetIndustry sets the Industry field's value. +func (s *Workload) SetIndustry(v string) *Workload { + s.Industry = &v + return s +} + +// SetIndustryType sets the IndustryType field's value. +func (s *Workload) SetIndustryType(v string) *Workload { + s.IndustryType = &v + return s +} + +// SetIsReviewOwnerUpdateAcknowledged sets the IsReviewOwnerUpdateAcknowledged field's value. +func (s *Workload) SetIsReviewOwnerUpdateAcknowledged(v bool) *Workload { + s.IsReviewOwnerUpdateAcknowledged = &v + return s +} + +// SetLenses sets the Lenses field's value. +func (s *Workload) SetLenses(v []*string) *Workload { + s.Lenses = v + return s +} + +// SetNonAwsRegions sets the NonAwsRegions field's value. +func (s *Workload) SetNonAwsRegions(v []*string) *Workload { + s.NonAwsRegions = v + return s +} + +// SetNotes sets the Notes field's value. +func (s *Workload) SetNotes(v string) *Workload { + s.Notes = &v + return s +} + +// SetOwner sets the Owner field's value. +func (s *Workload) SetOwner(v string) *Workload { + s.Owner = &v + return s +} + +// SetPillarPriorities sets the PillarPriorities field's value. +func (s *Workload) SetPillarPriorities(v []*string) *Workload { + s.PillarPriorities = v + return s +} + +// SetReviewOwner sets the ReviewOwner field's value. +func (s *Workload) SetReviewOwner(v string) *Workload { + s.ReviewOwner = &v + return s +} + +// SetReviewRestrictionDate sets the ReviewRestrictionDate field's value. +func (s *Workload) SetReviewRestrictionDate(v time.Time) *Workload { + s.ReviewRestrictionDate = &v + return s +} + +// SetRiskCounts sets the RiskCounts field's value. +func (s *Workload) SetRiskCounts(v map[string]*int64) *Workload { + s.RiskCounts = v + return s +} + +// SetShareInvitationId sets the ShareInvitationId field's value. +func (s *Workload) SetShareInvitationId(v string) *Workload { + s.ShareInvitationId = &v + return s +} + +// SetUpdatedAt sets the UpdatedAt field's value. +func (s *Workload) SetUpdatedAt(v time.Time) *Workload { + s.UpdatedAt = &v + return s +} + +// SetWorkloadArn sets the WorkloadArn field's value. +func (s *Workload) SetWorkloadArn(v string) *Workload { + s.WorkloadArn = &v + return s +} + +// SetWorkloadId sets the WorkloadId field's value. +func (s *Workload) SetWorkloadId(v string) *Workload { + s.WorkloadId = &v + return s +} + +// SetWorkloadName sets the WorkloadName field's value. +func (s *Workload) SetWorkloadName(v string) *Workload { + s.WorkloadName = &v + return s +} + +// A workload share return object. +type WorkloadShare struct { + _ struct{} `type:"structure"` + + // Permission granted on a workload share. + PermissionType *string `type:"string" enum:"PermissionType"` + + // The ID associated with the workload share. + ShareId *string `type:"string"` + + // An AWS account ID. + SharedBy *string `type:"string"` + + // The AWS account ID or IAM role with which the workload is shared. + SharedWith *string `min:"12" type:"string"` + + // The status of a workload share. + Status *string `type:"string" enum:"ShareStatus"` + + // The ID assigned to the workload. This ID is unique within an AWS Region. + WorkloadId *string `type:"string"` + + // The name of the workload. + // + // The name must be unique within an account within a Region. Spaces and capitalization + // are ignored when checking for uniqueness. + WorkloadName *string `min:"3" type:"string"` +} + +// String returns the string representation +func (s WorkloadShare) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s WorkloadShare) GoString() string { + return s.String() +} + +// SetPermissionType sets the PermissionType field's value. +func (s *WorkloadShare) SetPermissionType(v string) *WorkloadShare { + s.PermissionType = &v + return s +} + +// SetShareId sets the ShareId field's value. +func (s *WorkloadShare) SetShareId(v string) *WorkloadShare { + s.ShareId = &v + return s +} + +// SetSharedBy sets the SharedBy field's value. +func (s *WorkloadShare) SetSharedBy(v string) *WorkloadShare { + s.SharedBy = &v + return s +} + +// SetSharedWith sets the SharedWith field's value. +func (s *WorkloadShare) SetSharedWith(v string) *WorkloadShare { + s.SharedWith = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *WorkloadShare) SetStatus(v string) *WorkloadShare { + s.Status = &v + return s +} + +// SetWorkloadId sets the WorkloadId field's value. +func (s *WorkloadShare) SetWorkloadId(v string) *WorkloadShare { + s.WorkloadId = &v + return s +} + +// SetWorkloadName sets the WorkloadName field's value. +func (s *WorkloadShare) SetWorkloadName(v string) *WorkloadShare { + s.WorkloadName = &v + return s +} + +// A workload share summary return object. +type WorkloadShareSummary struct { + _ struct{} `type:"structure"` + + // Permission granted on a workload share. + PermissionType *string `type:"string" enum:"PermissionType"` + + // The ID associated with the workload share. + ShareId *string `type:"string"` + + // The AWS account ID or IAM role with which the workload is shared. + SharedWith *string `min:"12" type:"string"` + + // The status of a workload share. + Status *string `type:"string" enum:"ShareStatus"` +} + +// String returns the string representation +func (s WorkloadShareSummary) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s WorkloadShareSummary) GoString() string { + return s.String() +} + +// SetPermissionType sets the PermissionType field's value. +func (s *WorkloadShareSummary) SetPermissionType(v string) *WorkloadShareSummary { + s.PermissionType = &v + return s +} + +// SetShareId sets the ShareId field's value. +func (s *WorkloadShareSummary) SetShareId(v string) *WorkloadShareSummary { + s.ShareId = &v + return s +} + +// SetSharedWith sets the SharedWith field's value. +func (s *WorkloadShareSummary) SetSharedWith(v string) *WorkloadShareSummary { + s.SharedWith = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *WorkloadShareSummary) SetStatus(v string) *WorkloadShareSummary { + s.Status = &v + return s +} + +// A workload summary return object. +type WorkloadSummary struct { + _ struct{} `type:"structure"` + + // The improvement status for a workload. + ImprovementStatus *string `type:"string" enum:"WorkloadImprovementStatus"` + + // The list of lenses associated with the workload. Each lens is identified + // by its LensSummary$LensAlias. + Lenses []*string `type:"list"` + + // An AWS account ID. + Owner *string `type:"string"` + + // A map from risk names to the count of how questions have that rating. + RiskCounts map[string]*int64 `type:"map"` + + // The date and time recorded. + UpdatedAt *time.Time `type:"timestamp"` + + // The ARN for the workload. + WorkloadArn *string `type:"string"` + + // The ID assigned to the workload. This ID is unique within an AWS Region. + WorkloadId *string `type:"string"` + + // The name of the workload. + // + // The name must be unique within an account within a Region. Spaces and capitalization + // are ignored when checking for uniqueness. + WorkloadName *string `min:"3" type:"string"` +} + +// String returns the string representation +func (s WorkloadSummary) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s WorkloadSummary) GoString() string { + return s.String() +} + +// SetImprovementStatus sets the ImprovementStatus field's value. +func (s *WorkloadSummary) SetImprovementStatus(v string) *WorkloadSummary { + s.ImprovementStatus = &v + return s +} + +// SetLenses sets the Lenses field's value. +func (s *WorkloadSummary) SetLenses(v []*string) *WorkloadSummary { + s.Lenses = v + return s +} + +// SetOwner sets the Owner field's value. +func (s *WorkloadSummary) SetOwner(v string) *WorkloadSummary { + s.Owner = &v + return s +} + +// SetRiskCounts sets the RiskCounts field's value. +func (s *WorkloadSummary) SetRiskCounts(v map[string]*int64) *WorkloadSummary { + s.RiskCounts = v + return s +} + +// SetUpdatedAt sets the UpdatedAt field's value. +func (s *WorkloadSummary) SetUpdatedAt(v time.Time) *WorkloadSummary { + s.UpdatedAt = &v + return s +} + +// SetWorkloadArn sets the WorkloadArn field's value. +func (s *WorkloadSummary) SetWorkloadArn(v string) *WorkloadSummary { + s.WorkloadArn = &v + return s +} + +// SetWorkloadId sets the WorkloadId field's value. +func (s *WorkloadSummary) SetWorkloadId(v string) *WorkloadSummary { + s.WorkloadId = &v + return s +} + +// SetWorkloadName sets the WorkloadName field's value. +func (s *WorkloadSummary) SetWorkloadName(v string) *WorkloadSummary { + s.WorkloadName = &v + return s +} + +const ( + // DifferenceStatusUpdated is a DifferenceStatus enum value + DifferenceStatusUpdated = "UPDATED" + + // DifferenceStatusNew is a DifferenceStatus enum value + DifferenceStatusNew = "NEW" + + // DifferenceStatusDeleted is a DifferenceStatus enum value + DifferenceStatusDeleted = "DELETED" +) + +// DifferenceStatus_Values returns all elements of the DifferenceStatus enum +func DifferenceStatus_Values() []string { + return []string{ + DifferenceStatusUpdated, + DifferenceStatusNew, + DifferenceStatusDeleted, + } +} + +const ( + // LensStatusCurrent is a LensStatus enum value + LensStatusCurrent = "CURRENT" + + // LensStatusNotCurrent is a LensStatus enum value + LensStatusNotCurrent = "NOT_CURRENT" + + // LensStatusDeprecated is a LensStatus enum value + LensStatusDeprecated = "DEPRECATED" +) + +// LensStatus_Values returns all elements of the LensStatus enum +func LensStatus_Values() []string { + return []string{ + LensStatusCurrent, + LensStatusNotCurrent, + LensStatusDeprecated, + } +} + +const ( + // NotificationTypeLensVersionUpgraded is a NotificationType enum value + NotificationTypeLensVersionUpgraded = "LENS_VERSION_UPGRADED" + + // NotificationTypeLensVersionDeprecated is a NotificationType enum value + NotificationTypeLensVersionDeprecated = "LENS_VERSION_DEPRECATED" +) + +// NotificationType_Values returns all elements of the NotificationType enum +func NotificationType_Values() []string { + return []string{ + NotificationTypeLensVersionUpgraded, + NotificationTypeLensVersionDeprecated, + } +} + +// Permission granted on a workload share. +const ( + // PermissionTypeReadonly is a PermissionType enum value + PermissionTypeReadonly = "READONLY" + + // PermissionTypeContributor is a PermissionType enum value + PermissionTypeContributor = "CONTRIBUTOR" +) + +// PermissionType_Values returns all elements of the PermissionType enum +func PermissionType_Values() []string { + return []string{ + PermissionTypeReadonly, + PermissionTypeContributor, + } +} + +// The risk for a given workload, lens review, pillar, or question. +const ( + // RiskUnanswered is a Risk enum value + RiskUnanswered = "UNANSWERED" + + // RiskHigh is a Risk enum value + RiskHigh = "HIGH" + + // RiskMedium is a Risk enum value + RiskMedium = "MEDIUM" + + // RiskNone is a Risk enum value + RiskNone = "NONE" + + // RiskNotApplicable is a Risk enum value + RiskNotApplicable = "NOT_APPLICABLE" +) + +// Risk_Values returns all elements of the Risk enum +func Risk_Values() []string { + return []string{ + RiskUnanswered, + RiskHigh, + RiskMedium, + RiskNone, + RiskNotApplicable, + } +} + +// Share invitation action taken by contributor. +const ( + // ShareInvitationActionAccept is a ShareInvitationAction enum value + ShareInvitationActionAccept = "ACCEPT" + + // ShareInvitationActionReject is a ShareInvitationAction enum value + ShareInvitationActionReject = "REJECT" +) + +// ShareInvitationAction_Values returns all elements of the ShareInvitationAction enum +func ShareInvitationAction_Values() []string { + return []string{ + ShareInvitationActionAccept, + ShareInvitationActionReject, + } +} + +// The status of a workload share. +const ( + // ShareStatusAccepted is a ShareStatus enum value + ShareStatusAccepted = "ACCEPTED" + + // ShareStatusRejected is a ShareStatus enum value + ShareStatusRejected = "REJECTED" + + // ShareStatusPending is a ShareStatus enum value + ShareStatusPending = "PENDING" + + // ShareStatusRevoked is a ShareStatus enum value + ShareStatusRevoked = "REVOKED" + + // ShareStatusExpired is a ShareStatus enum value + ShareStatusExpired = "EXPIRED" +) + +// ShareStatus_Values returns all elements of the ShareStatus enum +func ShareStatus_Values() []string { + return []string{ + ShareStatusAccepted, + ShareStatusRejected, + ShareStatusPending, + ShareStatusRevoked, + ShareStatusExpired, + } +} + +// The reason why the request failed validation. +const ( + // ValidationExceptionReasonUnknownOperation is a ValidationExceptionReason enum value + ValidationExceptionReasonUnknownOperation = "UNKNOWN_OPERATION" + + // ValidationExceptionReasonCannotParse is a ValidationExceptionReason enum value + ValidationExceptionReasonCannotParse = "CANNOT_PARSE" + + // ValidationExceptionReasonFieldValidationFailed is a ValidationExceptionReason enum value + ValidationExceptionReasonFieldValidationFailed = "FIELD_VALIDATION_FAILED" + + // ValidationExceptionReasonOther is a ValidationExceptionReason enum value + ValidationExceptionReasonOther = "OTHER" +) + +// ValidationExceptionReason_Values returns all elements of the ValidationExceptionReason enum +func ValidationExceptionReason_Values() []string { + return []string{ + ValidationExceptionReasonUnknownOperation, + ValidationExceptionReasonCannotParse, + ValidationExceptionReasonFieldValidationFailed, + ValidationExceptionReasonOther, + } +} + +// The environment for the workload. +const ( + // WorkloadEnvironmentProduction is a WorkloadEnvironment enum value + WorkloadEnvironmentProduction = "PRODUCTION" + + // WorkloadEnvironmentPreproduction is a WorkloadEnvironment enum value + WorkloadEnvironmentPreproduction = "PREPRODUCTION" +) + +// WorkloadEnvironment_Values returns all elements of the WorkloadEnvironment enum +func WorkloadEnvironment_Values() []string { + return []string{ + WorkloadEnvironmentProduction, + WorkloadEnvironmentPreproduction, + } +} + +// The improvement status for a workload. +const ( + // WorkloadImprovementStatusNotApplicable is a WorkloadImprovementStatus enum value + WorkloadImprovementStatusNotApplicable = "NOT_APPLICABLE" + + // WorkloadImprovementStatusNotStarted is a WorkloadImprovementStatus enum value + WorkloadImprovementStatusNotStarted = "NOT_STARTED" + + // WorkloadImprovementStatusInProgress is a WorkloadImprovementStatus enum value + WorkloadImprovementStatusInProgress = "IN_PROGRESS" + + // WorkloadImprovementStatusComplete is a WorkloadImprovementStatus enum value + WorkloadImprovementStatusComplete = "COMPLETE" + + // WorkloadImprovementStatusRiskAcknowledged is a WorkloadImprovementStatus enum value + WorkloadImprovementStatusRiskAcknowledged = "RISK_ACKNOWLEDGED" +) + +// WorkloadImprovementStatus_Values returns all elements of the WorkloadImprovementStatus enum +func WorkloadImprovementStatus_Values() []string { + return []string{ + WorkloadImprovementStatusNotApplicable, + WorkloadImprovementStatusNotStarted, + WorkloadImprovementStatusInProgress, + WorkloadImprovementStatusComplete, + WorkloadImprovementStatusRiskAcknowledged, + } +} diff --git a/service/wellarchitected/doc.go b/service/wellarchitected/doc.go new file mode 100644 index 0000000000..f9449bd08c --- /dev/null +++ b/service/wellarchitected/doc.go @@ -0,0 +1,105 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +// Package wellarchitected provides the client and types for making API +// requests to AWS Well-Architected Tool. +// +// This is the AWS Well-Architected Tool API Reference. +// +// The AWS Well-Architected Tool API provides programmatic access to the AWS +// Well-Architected Tool (http://aws.amazon.com/well-architected-tool) in the +// AWS Management Console (https://console.aws.amazon.com/wellarchitected). +// +// Managing workloads: +// +// * CreateWorkload: Define a new workload. +// +// * ListWorkloads: List workloads. +// +// * GetWorkload: Get the properties of a workload. +// +// * UpdateWorkload: Update the properties of a workload. +// +// * DeleteWorkload: Delete a workload. +// +// Managing milestones: +// +// * CreateMilestone: Create a milestone. +// +// * ListMilestones: List milestones. +// +// * GetMilestone: Get the properties of a milestone. +// +// Managing lenses: +// +// * ListLenses: List the available lenses. +// +// * AssociateLenses: Add one or more lenses to a workload. +// +// * DisassociateLenses: Remove one or more lenses from a workload. +// +// * ListNotifications: List lens notifications for a workload. +// +// * GetLensVersionDifference: Get the differences between the version of +// a lens used in a workload and the latest version. +// +// * UpgradeLensReview: Upgrade a workload to use the latest version of a +// lens. +// +// Managing reviews: +// +// * ListLensReviews: List reviews associated with a workload. +// +// * GetLensReview: Get pillar and risk data associated with a workload review. +// +// * GetLensReviewReport: Get the report associated with a workload review. +// +// * UpdateLensReview: Update the notes associated with a workload review. +// +// * ListAnswers: List the questions and answers in a workload review. +// +// * UpdateAnswer: Update the answer to a specific question in a workload +// review. +// +// * ListLensReviewImprovements: List the improvement plan associated with +// a workload review. +// +// Managing workload shares: +// +// * ListWorkloadShares: List the workload shares associated with a workload. +// +// * CreateWorkloadShare: Create a workload share. +// +// * UpdateWorkloadShare: Update a workload share. +// +// * DeleteWorkloadShare: Delete a workload share. +// +// Managing workload share invitations: +// +// * ListShareInvitations: List workload share invitations. +// +// * UpdateShareInvitation: Update a workload share invitation. +// +// For information about the AWS Well-Architected Tool, see the AWS Well-Architected +// Tool User Guide (https://docs.aws.amazon.com/wellarchitected/latest/userguide/intro.html). +// +// See https://docs.aws.amazon.com/goto/WebAPI/wellarchitected-2020-03-31 for more information on this service. +// +// See wellarchitected package documentation for more information. +// https://docs.aws.amazon.com/sdk-for-go/api/service/wellarchitected/ +// +// Using the Client +// +// To contact AWS Well-Architected Tool 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 AWS Well-Architected Tool client WellArchitected for more +// information on creating client for this service. +// https://docs.aws.amazon.com/sdk-for-go/api/service/wellarchitected/#New +package wellarchitected diff --git a/service/wellarchitected/errors.go b/service/wellarchitected/errors.go new file mode 100644 index 0000000000..6c2675f0fd --- /dev/null +++ b/service/wellarchitected/errors.go @@ -0,0 +1,62 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +package wellarchitected + +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + +const ( + + // ErrCodeAccessDeniedException for service response error code + // "AccessDeniedException". + // + // User does not have sufficient access to perform this action. + ErrCodeAccessDeniedException = "AccessDeniedException" + + // ErrCodeConflictException for service response error code + // "ConflictException". + // + // The resource already exists. + ErrCodeConflictException = "ConflictException" + + // ErrCodeInternalServerException for service response error code + // "InternalServerException". + // + // There is a problem with the AWS Well-Architected Tool API service. + ErrCodeInternalServerException = "InternalServerException" + + // ErrCodeResourceNotFoundException for service response error code + // "ResourceNotFoundException". + // + // The requested resource was not found. + ErrCodeResourceNotFoundException = "ResourceNotFoundException" + + // ErrCodeServiceQuotaExceededException for service response error code + // "ServiceQuotaExceededException". + // + // The user has reached their resource quota. + ErrCodeServiceQuotaExceededException = "ServiceQuotaExceededException" + + // ErrCodeThrottlingException for service response error code + // "ThrottlingException". + // + // Request was denied due to request throttling. + ErrCodeThrottlingException = "ThrottlingException" + + // ErrCodeValidationException for service response error code + // "ValidationException". + // + // The user input is not valid. + ErrCodeValidationException = "ValidationException" +) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "AccessDeniedException": newErrorAccessDeniedException, + "ConflictException": newErrorConflictException, + "InternalServerException": newErrorInternalServerException, + "ResourceNotFoundException": newErrorResourceNotFoundException, + "ServiceQuotaExceededException": newErrorServiceQuotaExceededException, + "ThrottlingException": newErrorThrottlingException, + "ValidationException": newErrorValidationException, +} diff --git a/service/wellarchitected/service.go b/service/wellarchitected/service.go new file mode 100644 index 0000000000..fbcbff8368 --- /dev/null +++ b/service/wellarchitected/service.go @@ -0,0 +1,104 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +package wellarchitected + +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" +) + +// WellArchitected provides the API operation methods for making requests to +// AWS Well-Architected Tool. See this package's package overview docs +// for details on the service. +// +// WellArchitected methods are safe to use concurrently. It is not safe to +// modify mutate any of the struct's properties though. +type WellArchitected 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 = "WellArchitected" // Name of service. + EndpointsID = "wellarchitected" // ID to lookup a service endpoint with. + ServiceID = "WellArchitected" // ServiceID is a unique identifier of a specific service. +) + +// New creates a new instance of the WellArchitected 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 WellArchitected client from just a session. +// svc := wellarchitected.New(mySession) +// +// // Create a WellArchitected client with additional configuration +// svc := wellarchitected.New(mySession, aws.NewConfig().WithRegion("us-west-2")) +func New(p client.ConfigProvider, cfgs ...*aws.Config) *WellArchitected { + c := p.ClientConfig(EndpointsID, cfgs...) + if c.SigningNameDerived || len(c.SigningName) == 0 { + c.SigningName = "wellarchitected" + } + 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) *WellArchitected { + svc := &WellArchitected{ + Client: client.New( + cfg, + metadata.ClientInfo{ + ServiceName: ServiceName, + ServiceID: ServiceID, + SigningName: signingName, + SigningRegion: signingRegion, + PartitionID: partitionID, + Endpoint: endpoint, + APIVersion: "2020-03-31", + }, + 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 WellArchitected operation and runs any +// custom request initialization. +func (c *WellArchitected) 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/wellarchitected/wellarchitectediface/interface.go b/service/wellarchitected/wellarchitectediface/interface.go new file mode 100644 index 0000000000..d0fae0ae99 --- /dev/null +++ b/service/wellarchitected/wellarchitectediface/interface.go @@ -0,0 +1,203 @@ +// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. + +// Package wellarchitectediface provides an interface to enable mocking the AWS Well-Architected Tool 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 wellarchitectediface + +import ( + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/service/wellarchitected" +) + +// WellArchitectedAPI provides an interface to enable mocking the +// wellarchitected.WellArchitected 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 +// // AWS Well-Architected Tool. +// func myFunc(svc wellarchitectediface.WellArchitectedAPI) bool { +// // Make svc.AssociateLenses request +// } +// +// func main() { +// sess := session.New() +// svc := wellarchitected.New(sess) +// +// myFunc(svc) +// } +// +// In your _test.go file: +// +// // Define a mock struct to be used in your unit tests of myFunc. +// type mockWellArchitectedClient struct { +// wellarchitectediface.WellArchitectedAPI +// } +// func (m *mockWellArchitectedClient) AssociateLenses(input *wellarchitected.AssociateLensesInput) (*wellarchitected.AssociateLensesOutput, error) { +// // mock response/functionality +// } +// +// func TestMyFunc(t *testing.T) { +// // Setup Test +// mockSvc := &mockWellArchitectedClient{} +// +// 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 WellArchitectedAPI interface { + AssociateLenses(*wellarchitected.AssociateLensesInput) (*wellarchitected.AssociateLensesOutput, error) + AssociateLensesWithContext(aws.Context, *wellarchitected.AssociateLensesInput, ...request.Option) (*wellarchitected.AssociateLensesOutput, error) + AssociateLensesRequest(*wellarchitected.AssociateLensesInput) (*request.Request, *wellarchitected.AssociateLensesOutput) + + CreateMilestone(*wellarchitected.CreateMilestoneInput) (*wellarchitected.CreateMilestoneOutput, error) + CreateMilestoneWithContext(aws.Context, *wellarchitected.CreateMilestoneInput, ...request.Option) (*wellarchitected.CreateMilestoneOutput, error) + CreateMilestoneRequest(*wellarchitected.CreateMilestoneInput) (*request.Request, *wellarchitected.CreateMilestoneOutput) + + CreateWorkload(*wellarchitected.CreateWorkloadInput) (*wellarchitected.CreateWorkloadOutput, error) + CreateWorkloadWithContext(aws.Context, *wellarchitected.CreateWorkloadInput, ...request.Option) (*wellarchitected.CreateWorkloadOutput, error) + CreateWorkloadRequest(*wellarchitected.CreateWorkloadInput) (*request.Request, *wellarchitected.CreateWorkloadOutput) + + CreateWorkloadShare(*wellarchitected.CreateWorkloadShareInput) (*wellarchitected.CreateWorkloadShareOutput, error) + CreateWorkloadShareWithContext(aws.Context, *wellarchitected.CreateWorkloadShareInput, ...request.Option) (*wellarchitected.CreateWorkloadShareOutput, error) + CreateWorkloadShareRequest(*wellarchitected.CreateWorkloadShareInput) (*request.Request, *wellarchitected.CreateWorkloadShareOutput) + + DeleteWorkload(*wellarchitected.DeleteWorkloadInput) (*wellarchitected.DeleteWorkloadOutput, error) + DeleteWorkloadWithContext(aws.Context, *wellarchitected.DeleteWorkloadInput, ...request.Option) (*wellarchitected.DeleteWorkloadOutput, error) + DeleteWorkloadRequest(*wellarchitected.DeleteWorkloadInput) (*request.Request, *wellarchitected.DeleteWorkloadOutput) + + DeleteWorkloadShare(*wellarchitected.DeleteWorkloadShareInput) (*wellarchitected.DeleteWorkloadShareOutput, error) + DeleteWorkloadShareWithContext(aws.Context, *wellarchitected.DeleteWorkloadShareInput, ...request.Option) (*wellarchitected.DeleteWorkloadShareOutput, error) + DeleteWorkloadShareRequest(*wellarchitected.DeleteWorkloadShareInput) (*request.Request, *wellarchitected.DeleteWorkloadShareOutput) + + DisassociateLenses(*wellarchitected.DisassociateLensesInput) (*wellarchitected.DisassociateLensesOutput, error) + DisassociateLensesWithContext(aws.Context, *wellarchitected.DisassociateLensesInput, ...request.Option) (*wellarchitected.DisassociateLensesOutput, error) + DisassociateLensesRequest(*wellarchitected.DisassociateLensesInput) (*request.Request, *wellarchitected.DisassociateLensesOutput) + + GetAnswer(*wellarchitected.GetAnswerInput) (*wellarchitected.GetAnswerOutput, error) + GetAnswerWithContext(aws.Context, *wellarchitected.GetAnswerInput, ...request.Option) (*wellarchitected.GetAnswerOutput, error) + GetAnswerRequest(*wellarchitected.GetAnswerInput) (*request.Request, *wellarchitected.GetAnswerOutput) + + GetLensReview(*wellarchitected.GetLensReviewInput) (*wellarchitected.GetLensReviewOutput, error) + GetLensReviewWithContext(aws.Context, *wellarchitected.GetLensReviewInput, ...request.Option) (*wellarchitected.GetLensReviewOutput, error) + GetLensReviewRequest(*wellarchitected.GetLensReviewInput) (*request.Request, *wellarchitected.GetLensReviewOutput) + + GetLensReviewReport(*wellarchitected.GetLensReviewReportInput) (*wellarchitected.GetLensReviewReportOutput, error) + GetLensReviewReportWithContext(aws.Context, *wellarchitected.GetLensReviewReportInput, ...request.Option) (*wellarchitected.GetLensReviewReportOutput, error) + GetLensReviewReportRequest(*wellarchitected.GetLensReviewReportInput) (*request.Request, *wellarchitected.GetLensReviewReportOutput) + + GetLensVersionDifference(*wellarchitected.GetLensVersionDifferenceInput) (*wellarchitected.GetLensVersionDifferenceOutput, error) + GetLensVersionDifferenceWithContext(aws.Context, *wellarchitected.GetLensVersionDifferenceInput, ...request.Option) (*wellarchitected.GetLensVersionDifferenceOutput, error) + GetLensVersionDifferenceRequest(*wellarchitected.GetLensVersionDifferenceInput) (*request.Request, *wellarchitected.GetLensVersionDifferenceOutput) + + GetMilestone(*wellarchitected.GetMilestoneInput) (*wellarchitected.GetMilestoneOutput, error) + GetMilestoneWithContext(aws.Context, *wellarchitected.GetMilestoneInput, ...request.Option) (*wellarchitected.GetMilestoneOutput, error) + GetMilestoneRequest(*wellarchitected.GetMilestoneInput) (*request.Request, *wellarchitected.GetMilestoneOutput) + + GetWorkload(*wellarchitected.GetWorkloadInput) (*wellarchitected.GetWorkloadOutput, error) + GetWorkloadWithContext(aws.Context, *wellarchitected.GetWorkloadInput, ...request.Option) (*wellarchitected.GetWorkloadOutput, error) + GetWorkloadRequest(*wellarchitected.GetWorkloadInput) (*request.Request, *wellarchitected.GetWorkloadOutput) + + ListAnswers(*wellarchitected.ListAnswersInput) (*wellarchitected.ListAnswersOutput, error) + ListAnswersWithContext(aws.Context, *wellarchitected.ListAnswersInput, ...request.Option) (*wellarchitected.ListAnswersOutput, error) + ListAnswersRequest(*wellarchitected.ListAnswersInput) (*request.Request, *wellarchitected.ListAnswersOutput) + + ListAnswersPages(*wellarchitected.ListAnswersInput, func(*wellarchitected.ListAnswersOutput, bool) bool) error + ListAnswersPagesWithContext(aws.Context, *wellarchitected.ListAnswersInput, func(*wellarchitected.ListAnswersOutput, bool) bool, ...request.Option) error + + ListLensReviewImprovements(*wellarchitected.ListLensReviewImprovementsInput) (*wellarchitected.ListLensReviewImprovementsOutput, error) + ListLensReviewImprovementsWithContext(aws.Context, *wellarchitected.ListLensReviewImprovementsInput, ...request.Option) (*wellarchitected.ListLensReviewImprovementsOutput, error) + ListLensReviewImprovementsRequest(*wellarchitected.ListLensReviewImprovementsInput) (*request.Request, *wellarchitected.ListLensReviewImprovementsOutput) + + ListLensReviewImprovementsPages(*wellarchitected.ListLensReviewImprovementsInput, func(*wellarchitected.ListLensReviewImprovementsOutput, bool) bool) error + ListLensReviewImprovementsPagesWithContext(aws.Context, *wellarchitected.ListLensReviewImprovementsInput, func(*wellarchitected.ListLensReviewImprovementsOutput, bool) bool, ...request.Option) error + + ListLensReviews(*wellarchitected.ListLensReviewsInput) (*wellarchitected.ListLensReviewsOutput, error) + ListLensReviewsWithContext(aws.Context, *wellarchitected.ListLensReviewsInput, ...request.Option) (*wellarchitected.ListLensReviewsOutput, error) + ListLensReviewsRequest(*wellarchitected.ListLensReviewsInput) (*request.Request, *wellarchitected.ListLensReviewsOutput) + + ListLensReviewsPages(*wellarchitected.ListLensReviewsInput, func(*wellarchitected.ListLensReviewsOutput, bool) bool) error + ListLensReviewsPagesWithContext(aws.Context, *wellarchitected.ListLensReviewsInput, func(*wellarchitected.ListLensReviewsOutput, bool) bool, ...request.Option) error + + ListLenses(*wellarchitected.ListLensesInput) (*wellarchitected.ListLensesOutput, error) + ListLensesWithContext(aws.Context, *wellarchitected.ListLensesInput, ...request.Option) (*wellarchitected.ListLensesOutput, error) + ListLensesRequest(*wellarchitected.ListLensesInput) (*request.Request, *wellarchitected.ListLensesOutput) + + ListLensesPages(*wellarchitected.ListLensesInput, func(*wellarchitected.ListLensesOutput, bool) bool) error + ListLensesPagesWithContext(aws.Context, *wellarchitected.ListLensesInput, func(*wellarchitected.ListLensesOutput, bool) bool, ...request.Option) error + + ListMilestones(*wellarchitected.ListMilestonesInput) (*wellarchitected.ListMilestonesOutput, error) + ListMilestonesWithContext(aws.Context, *wellarchitected.ListMilestonesInput, ...request.Option) (*wellarchitected.ListMilestonesOutput, error) + ListMilestonesRequest(*wellarchitected.ListMilestonesInput) (*request.Request, *wellarchitected.ListMilestonesOutput) + + ListMilestonesPages(*wellarchitected.ListMilestonesInput, func(*wellarchitected.ListMilestonesOutput, bool) bool) error + ListMilestonesPagesWithContext(aws.Context, *wellarchitected.ListMilestonesInput, func(*wellarchitected.ListMilestonesOutput, bool) bool, ...request.Option) error + + ListNotifications(*wellarchitected.ListNotificationsInput) (*wellarchitected.ListNotificationsOutput, error) + ListNotificationsWithContext(aws.Context, *wellarchitected.ListNotificationsInput, ...request.Option) (*wellarchitected.ListNotificationsOutput, error) + ListNotificationsRequest(*wellarchitected.ListNotificationsInput) (*request.Request, *wellarchitected.ListNotificationsOutput) + + ListNotificationsPages(*wellarchitected.ListNotificationsInput, func(*wellarchitected.ListNotificationsOutput, bool) bool) error + ListNotificationsPagesWithContext(aws.Context, *wellarchitected.ListNotificationsInput, func(*wellarchitected.ListNotificationsOutput, bool) bool, ...request.Option) error + + ListShareInvitations(*wellarchitected.ListShareInvitationsInput) (*wellarchitected.ListShareInvitationsOutput, error) + ListShareInvitationsWithContext(aws.Context, *wellarchitected.ListShareInvitationsInput, ...request.Option) (*wellarchitected.ListShareInvitationsOutput, error) + ListShareInvitationsRequest(*wellarchitected.ListShareInvitationsInput) (*request.Request, *wellarchitected.ListShareInvitationsOutput) + + ListShareInvitationsPages(*wellarchitected.ListShareInvitationsInput, func(*wellarchitected.ListShareInvitationsOutput, bool) bool) error + ListShareInvitationsPagesWithContext(aws.Context, *wellarchitected.ListShareInvitationsInput, func(*wellarchitected.ListShareInvitationsOutput, bool) bool, ...request.Option) error + + ListWorkloadShares(*wellarchitected.ListWorkloadSharesInput) (*wellarchitected.ListWorkloadSharesOutput, error) + ListWorkloadSharesWithContext(aws.Context, *wellarchitected.ListWorkloadSharesInput, ...request.Option) (*wellarchitected.ListWorkloadSharesOutput, error) + ListWorkloadSharesRequest(*wellarchitected.ListWorkloadSharesInput) (*request.Request, *wellarchitected.ListWorkloadSharesOutput) + + ListWorkloadSharesPages(*wellarchitected.ListWorkloadSharesInput, func(*wellarchitected.ListWorkloadSharesOutput, bool) bool) error + ListWorkloadSharesPagesWithContext(aws.Context, *wellarchitected.ListWorkloadSharesInput, func(*wellarchitected.ListWorkloadSharesOutput, bool) bool, ...request.Option) error + + ListWorkloads(*wellarchitected.ListWorkloadsInput) (*wellarchitected.ListWorkloadsOutput, error) + ListWorkloadsWithContext(aws.Context, *wellarchitected.ListWorkloadsInput, ...request.Option) (*wellarchitected.ListWorkloadsOutput, error) + ListWorkloadsRequest(*wellarchitected.ListWorkloadsInput) (*request.Request, *wellarchitected.ListWorkloadsOutput) + + ListWorkloadsPages(*wellarchitected.ListWorkloadsInput, func(*wellarchitected.ListWorkloadsOutput, bool) bool) error + ListWorkloadsPagesWithContext(aws.Context, *wellarchitected.ListWorkloadsInput, func(*wellarchitected.ListWorkloadsOutput, bool) bool, ...request.Option) error + + UpdateAnswer(*wellarchitected.UpdateAnswerInput) (*wellarchitected.UpdateAnswerOutput, error) + UpdateAnswerWithContext(aws.Context, *wellarchitected.UpdateAnswerInput, ...request.Option) (*wellarchitected.UpdateAnswerOutput, error) + UpdateAnswerRequest(*wellarchitected.UpdateAnswerInput) (*request.Request, *wellarchitected.UpdateAnswerOutput) + + UpdateLensReview(*wellarchitected.UpdateLensReviewInput) (*wellarchitected.UpdateLensReviewOutput, error) + UpdateLensReviewWithContext(aws.Context, *wellarchitected.UpdateLensReviewInput, ...request.Option) (*wellarchitected.UpdateLensReviewOutput, error) + UpdateLensReviewRequest(*wellarchitected.UpdateLensReviewInput) (*request.Request, *wellarchitected.UpdateLensReviewOutput) + + UpdateShareInvitation(*wellarchitected.UpdateShareInvitationInput) (*wellarchitected.UpdateShareInvitationOutput, error) + UpdateShareInvitationWithContext(aws.Context, *wellarchitected.UpdateShareInvitationInput, ...request.Option) (*wellarchitected.UpdateShareInvitationOutput, error) + UpdateShareInvitationRequest(*wellarchitected.UpdateShareInvitationInput) (*request.Request, *wellarchitected.UpdateShareInvitationOutput) + + UpdateWorkload(*wellarchitected.UpdateWorkloadInput) (*wellarchitected.UpdateWorkloadOutput, error) + UpdateWorkloadWithContext(aws.Context, *wellarchitected.UpdateWorkloadInput, ...request.Option) (*wellarchitected.UpdateWorkloadOutput, error) + UpdateWorkloadRequest(*wellarchitected.UpdateWorkloadInput) (*request.Request, *wellarchitected.UpdateWorkloadOutput) + + UpdateWorkloadShare(*wellarchitected.UpdateWorkloadShareInput) (*wellarchitected.UpdateWorkloadShareOutput, error) + UpdateWorkloadShareWithContext(aws.Context, *wellarchitected.UpdateWorkloadShareInput, ...request.Option) (*wellarchitected.UpdateWorkloadShareOutput, error) + UpdateWorkloadShareRequest(*wellarchitected.UpdateWorkloadShareInput) (*request.Request, *wellarchitected.UpdateWorkloadShareOutput) + + UpgradeLensReview(*wellarchitected.UpgradeLensReviewInput) (*wellarchitected.UpgradeLensReviewOutput, error) + UpgradeLensReviewWithContext(aws.Context, *wellarchitected.UpgradeLensReviewInput, ...request.Option) (*wellarchitected.UpgradeLensReviewOutput, error) + UpgradeLensReviewRequest(*wellarchitected.UpgradeLensReviewInput) (*request.Request, *wellarchitected.UpgradeLensReviewOutput) +} + +var _ WellArchitectedAPI = (*wellarchitected.WellArchitected)(nil)