From 38fa7226536b299efcb488441a9a02dccb8ade44 Mon Sep 17 00:00:00 2001 From: Richard Wang Date: Mon, 6 Jan 2025 12:41:21 -0800 Subject: [PATCH] [two-way-validation skip] Deprecate IoT 1Click --- apis/iot1click-devices/2018-05-14/api-2.json | 902 -------------- apis/iot1click-devices/2018-05-14/docs-2.json | 203 ---- .../2018-05-14/endpoint-rule-set-1.json | 314 ----- .../2018-05-14/endpoint-tests-1.json | 314 ----- apis/iot1click-projects/2018-05-14/api-2.json | 885 -------------- .../iot1click-projects/2018-05-14/docs-2.json | 475 -------- .../2018-05-14/endpoint-rule-set-1.json | 314 ----- .../2018-05-14/endpoint-tests-1.json | 392 ------ .../2018-05-14/examples-1.json | 5 - .../2018-05-14/paginators-1.json | 16 - .../CHANGELOG.md | 327 ----- .../LICENSE.txt | 202 ---- gems/aws-sdk-iot1clickdevicesservice/VERSION | 1 - .../aws-sdk-iot1clickdevicesservice.gemspec | 32 - .../features/env.rb | 18 - .../features/step_definitions.rb | 10 - .../lib/aws-sdk-iot1clickdevicesservice.rb | 61 - .../aws-sdk-iot1clickdevicesservice/client.rb | 926 --------------- .../client_api.rb | 403 ------- .../customizations.rb | 0 .../endpoint_parameters.rb | 69 -- .../endpoint_provider.rb | 54 - .../endpoints.rb | 20 - .../aws-sdk-iot1clickdevicesservice/errors.rb | 185 --- .../plugins/endpoints.rb | 77 -- .../resource.rb | 26 - .../aws-sdk-iot1clickdevicesservice/types.rb | 605 ---------- .../sig/client.rbs | 219 ---- .../sig/errors.rbs | 44 - .../sig/resource.rbs | 82 -- .../sig/types.rbs | 233 ---- .../sig/waiters.rbs | 13 - .../spec/endpoint_provider_spec.rb | 361 ------ .../spec/spec_helper.rb | 18 - gems/aws-sdk-iot1clickprojects/CHANGELOG.md | 337 ------ gems/aws-sdk-iot1clickprojects/LICENSE.txt | 202 ---- gems/aws-sdk-iot1clickprojects/VERSION | 1 - .../aws-sdk-iot1clickprojects.gemspec | 32 - .../aws-sdk-iot1clickprojects/features/env.rb | 18 - .../features/step_definitions.rb | 10 - .../lib/aws-sdk-iot1clickprojects.rb | 61 - .../lib/aws-sdk-iot1clickprojects/client.rb | 1055 ----------------- .../aws-sdk-iot1clickprojects/client_api.rb | 497 -------- .../customizations.rb | 0 .../endpoint_parameters.rb | 69 -- .../endpoint_provider.rb | 54 - .../aws-sdk-iot1clickprojects/endpoints.rb | 20 - .../lib/aws-sdk-iot1clickprojects/errors.rb | 143 --- .../plugins/endpoints.rb | 77 -- .../lib/aws-sdk-iot1clickprojects/resource.rb | 26 - .../lib/aws-sdk-iot1clickprojects/types.rb | 656 ---------- gems/aws-sdk-iot1clickprojects/sig/client.rbs | 266 ----- gems/aws-sdk-iot1clickprojects/sig/errors.rbs | 36 - .../sig/resource.rbs | 82 -- gems/aws-sdk-iot1clickprojects/sig/types.rbs | 254 ---- .../aws-sdk-iot1clickprojects/sig/waiters.rbs | 13 - .../spec/endpoint_provider_spec.rb | 445 ------- .../spec/spec_helper.rb | 18 - services.json | 8 - 59 files changed, 12186 deletions(-) delete mode 100644 apis/iot1click-devices/2018-05-14/api-2.json delete mode 100644 apis/iot1click-devices/2018-05-14/docs-2.json delete mode 100644 apis/iot1click-devices/2018-05-14/endpoint-rule-set-1.json delete mode 100644 apis/iot1click-devices/2018-05-14/endpoint-tests-1.json delete mode 100644 apis/iot1click-projects/2018-05-14/api-2.json delete mode 100644 apis/iot1click-projects/2018-05-14/docs-2.json delete mode 100644 apis/iot1click-projects/2018-05-14/endpoint-rule-set-1.json delete mode 100644 apis/iot1click-projects/2018-05-14/endpoint-tests-1.json delete mode 100644 apis/iot1click-projects/2018-05-14/examples-1.json delete mode 100644 apis/iot1click-projects/2018-05-14/paginators-1.json delete mode 100644 gems/aws-sdk-iot1clickdevicesservice/CHANGELOG.md delete mode 100644 gems/aws-sdk-iot1clickdevicesservice/LICENSE.txt delete mode 100644 gems/aws-sdk-iot1clickdevicesservice/VERSION delete mode 100644 gems/aws-sdk-iot1clickdevicesservice/aws-sdk-iot1clickdevicesservice.gemspec delete mode 100644 gems/aws-sdk-iot1clickdevicesservice/features/env.rb delete mode 100644 gems/aws-sdk-iot1clickdevicesservice/features/step_definitions.rb delete mode 100644 gems/aws-sdk-iot1clickdevicesservice/lib/aws-sdk-iot1clickdevicesservice.rb delete mode 100644 gems/aws-sdk-iot1clickdevicesservice/lib/aws-sdk-iot1clickdevicesservice/client.rb delete mode 100644 gems/aws-sdk-iot1clickdevicesservice/lib/aws-sdk-iot1clickdevicesservice/client_api.rb delete mode 100644 gems/aws-sdk-iot1clickdevicesservice/lib/aws-sdk-iot1clickdevicesservice/customizations.rb delete mode 100644 gems/aws-sdk-iot1clickdevicesservice/lib/aws-sdk-iot1clickdevicesservice/endpoint_parameters.rb delete mode 100644 gems/aws-sdk-iot1clickdevicesservice/lib/aws-sdk-iot1clickdevicesservice/endpoint_provider.rb delete mode 100644 gems/aws-sdk-iot1clickdevicesservice/lib/aws-sdk-iot1clickdevicesservice/endpoints.rb delete mode 100644 gems/aws-sdk-iot1clickdevicesservice/lib/aws-sdk-iot1clickdevicesservice/errors.rb delete mode 100644 gems/aws-sdk-iot1clickdevicesservice/lib/aws-sdk-iot1clickdevicesservice/plugins/endpoints.rb delete mode 100644 gems/aws-sdk-iot1clickdevicesservice/lib/aws-sdk-iot1clickdevicesservice/resource.rb delete mode 100644 gems/aws-sdk-iot1clickdevicesservice/lib/aws-sdk-iot1clickdevicesservice/types.rb delete mode 100644 gems/aws-sdk-iot1clickdevicesservice/sig/client.rbs delete mode 100644 gems/aws-sdk-iot1clickdevicesservice/sig/errors.rbs delete mode 100644 gems/aws-sdk-iot1clickdevicesservice/sig/resource.rbs delete mode 100644 gems/aws-sdk-iot1clickdevicesservice/sig/types.rbs delete mode 100644 gems/aws-sdk-iot1clickdevicesservice/sig/waiters.rbs delete mode 100644 gems/aws-sdk-iot1clickdevicesservice/spec/endpoint_provider_spec.rb delete mode 100644 gems/aws-sdk-iot1clickdevicesservice/spec/spec_helper.rb delete mode 100644 gems/aws-sdk-iot1clickprojects/CHANGELOG.md delete mode 100644 gems/aws-sdk-iot1clickprojects/LICENSE.txt delete mode 100644 gems/aws-sdk-iot1clickprojects/VERSION delete mode 100644 gems/aws-sdk-iot1clickprojects/aws-sdk-iot1clickprojects.gemspec delete mode 100644 gems/aws-sdk-iot1clickprojects/features/env.rb delete mode 100644 gems/aws-sdk-iot1clickprojects/features/step_definitions.rb delete mode 100644 gems/aws-sdk-iot1clickprojects/lib/aws-sdk-iot1clickprojects.rb delete mode 100644 gems/aws-sdk-iot1clickprojects/lib/aws-sdk-iot1clickprojects/client.rb delete mode 100644 gems/aws-sdk-iot1clickprojects/lib/aws-sdk-iot1clickprojects/client_api.rb delete mode 100644 gems/aws-sdk-iot1clickprojects/lib/aws-sdk-iot1clickprojects/customizations.rb delete mode 100644 gems/aws-sdk-iot1clickprojects/lib/aws-sdk-iot1clickprojects/endpoint_parameters.rb delete mode 100644 gems/aws-sdk-iot1clickprojects/lib/aws-sdk-iot1clickprojects/endpoint_provider.rb delete mode 100644 gems/aws-sdk-iot1clickprojects/lib/aws-sdk-iot1clickprojects/endpoints.rb delete mode 100644 gems/aws-sdk-iot1clickprojects/lib/aws-sdk-iot1clickprojects/errors.rb delete mode 100644 gems/aws-sdk-iot1clickprojects/lib/aws-sdk-iot1clickprojects/plugins/endpoints.rb delete mode 100644 gems/aws-sdk-iot1clickprojects/lib/aws-sdk-iot1clickprojects/resource.rb delete mode 100644 gems/aws-sdk-iot1clickprojects/lib/aws-sdk-iot1clickprojects/types.rb delete mode 100644 gems/aws-sdk-iot1clickprojects/sig/client.rbs delete mode 100644 gems/aws-sdk-iot1clickprojects/sig/errors.rbs delete mode 100644 gems/aws-sdk-iot1clickprojects/sig/resource.rbs delete mode 100644 gems/aws-sdk-iot1clickprojects/sig/types.rbs delete mode 100644 gems/aws-sdk-iot1clickprojects/sig/waiters.rbs delete mode 100644 gems/aws-sdk-iot1clickprojects/spec/endpoint_provider_spec.rb delete mode 100644 gems/aws-sdk-iot1clickprojects/spec/spec_helper.rb diff --git a/apis/iot1click-devices/2018-05-14/api-2.json b/apis/iot1click-devices/2018-05-14/api-2.json deleted file mode 100644 index d1e906f4847..00000000000 --- a/apis/iot1click-devices/2018-05-14/api-2.json +++ /dev/null @@ -1,902 +0,0 @@ -{ - "metadata" : { - "apiVersion" : "2018-05-14", - "endpointPrefix" : "devices.iot1click", - "signingName" : "iot1click", - "serviceFullName" : "AWS IoT 1-Click Devices Service", - "serviceId" : "IoT 1Click Devices Service", - "protocol" : "rest-json", - "jsonVersion" : "1.1", - "uid" : "devices-2018-05-14", - "signatureVersion" : "v4" - }, - "operations" : { - "ClaimDevicesByClaimCode" : { - "name" : "ClaimDevicesByClaimCode", - "http" : { - "method" : "PUT", - "requestUri" : "/claims/{claimCode}", - "responseCode" : 200 - }, - "input" : { - "shape" : "ClaimDevicesByClaimCodeRequest" - }, - "output" : { - "shape" : "ClaimDevicesByClaimCodeResponse" - }, - "errors" : [ { - "shape" : "InvalidRequestException" - }, { - "shape" : "InternalFailureException" - }, { - "shape" : "ForbiddenException" - } ] - }, - "DescribeDevice" : { - "name" : "DescribeDevice", - "http" : { - "method" : "GET", - "requestUri" : "/devices/{deviceId}", - "responseCode" : 200 - }, - "input" : { - "shape" : "DescribeDeviceRequest" - }, - "output" : { - "shape" : "DescribeDeviceResponse" - }, - "errors" : [ { - "shape" : "ResourceNotFoundException" - }, { - "shape" : "InvalidRequestException" - }, { - "shape" : "InternalFailureException" - } ] - }, - "FinalizeDeviceClaim" : { - "name" : "FinalizeDeviceClaim", - "http" : { - "method" : "PUT", - "requestUri" : "/devices/{deviceId}/finalize-claim", - "responseCode" : 200 - }, - "input" : { - "shape" : "FinalizeDeviceClaimRequest" - }, - "output" : { - "shape" : "FinalizeDeviceClaimResponse" - }, - "errors" : [ { - "shape" : "ResourceNotFoundException" - }, { - "shape" : "InvalidRequestException" - }, { - "shape" : "InternalFailureException" - }, { - "shape" : "PreconditionFailedException" - }, { - "shape" : "ResourceConflictException" - } ] - }, - "GetDeviceMethods" : { - "name" : "GetDeviceMethods", - "http" : { - "method" : "GET", - "requestUri" : "/devices/{deviceId}/methods", - "responseCode" : 200 - }, - "input" : { - "shape" : "GetDeviceMethodsRequest" - }, - "output" : { - "shape" : "GetDeviceMethodsResponse" - }, - "errors" : [ { - "shape" : "ResourceNotFoundException" - }, { - "shape" : "InvalidRequestException" - }, { - "shape" : "InternalFailureException" - } ] - }, - "InitiateDeviceClaim" : { - "name" : "InitiateDeviceClaim", - "http" : { - "method" : "PUT", - "requestUri" : "/devices/{deviceId}/initiate-claim", - "responseCode" : 200 - }, - "input" : { - "shape" : "InitiateDeviceClaimRequest" - }, - "output" : { - "shape" : "InitiateDeviceClaimResponse" - }, - "errors" : [ { - "shape" : "ResourceNotFoundException" - }, { - "shape" : "InvalidRequestException" - }, { - "shape" : "InternalFailureException" - }, { - "shape" : "ResourceConflictException" - } ] - }, - "InvokeDeviceMethod" : { - "name" : "InvokeDeviceMethod", - "http" : { - "method" : "POST", - "requestUri" : "/devices/{deviceId}/methods", - "responseCode" : 200 - }, - "input" : { - "shape" : "InvokeDeviceMethodRequest" - }, - "output" : { - "shape" : "InvokeDeviceMethodResponse" - }, - "errors" : [ { - "shape" : "InvalidRequestException" - }, { - "shape" : "PreconditionFailedException" - }, { - "shape" : "InternalFailureException" - }, { - "shape" : "ResourceNotFoundException" - }, { - "shape" : "RangeNotSatisfiableException" - }, { - "shape" : "ResourceConflictException" - } ] - }, - "ListDeviceEvents" : { - "name" : "ListDeviceEvents", - "http" : { - "method" : "GET", - "requestUri" : "/devices/{deviceId}/events", - "responseCode" : 200 - }, - "input" : { - "shape" : "ListDeviceEventsRequest" - }, - "output" : { - "shape" : "ListDeviceEventsResponse" - }, - "errors" : [ { - "shape" : "ResourceNotFoundException" - }, { - "shape" : "RangeNotSatisfiableException" - }, { - "shape" : "InvalidRequestException" - }, { - "shape" : "InternalFailureException" - } ] - }, - "ListDevices" : { - "name" : "ListDevices", - "http" : { - "method" : "GET", - "requestUri" : "/devices", - "responseCode" : 200 - }, - "input" : { - "shape" : "ListDevicesRequest" - }, - "output" : { - "shape" : "ListDevicesResponse" - }, - "errors" : [ { - "shape" : "RangeNotSatisfiableException" - }, { - "shape" : "InvalidRequestException" - }, { - "shape" : "InternalFailureException" - } ] - }, - "ListTagsForResource" : { - "name" : "ListTagsForResource", - "http" : { - "method" : "GET", - "requestUri" : "/tags/{resource-arn}", - "responseCode" : 200 - }, - "input" : { - "shape" : "ListTagsForResourceRequest" - }, - "output" : { - "shape" : "ListTagsForResourceResponse" - }, - "errors" : [ { - "shape" : "ResourceNotFoundException" - }, { - "shape" : "InternalFailureException" - } ] - }, - "TagResource" : { - "name" : "TagResource", - "http" : { - "method" : "POST", - "requestUri" : "/tags/{resource-arn}", - "responseCode" : 204 - }, - "input" : { - "shape" : "TagResourceRequest" - }, - "errors" : [ { - "shape" : "ResourceNotFoundException" - }, { - "shape" : "InvalidRequestException" - }, { - "shape" : "InternalFailureException" - } ] - }, - "UnclaimDevice" : { - "name" : "UnclaimDevice", - "http" : { - "method" : "PUT", - "requestUri" : "/devices/{deviceId}/unclaim", - "responseCode" : 200 - }, - "input" : { - "shape" : "UnclaimDeviceRequest" - }, - "output" : { - "shape" : "UnclaimDeviceResponse" - }, - "errors" : [ { - "shape" : "ResourceNotFoundException" - }, { - "shape" : "InvalidRequestException" - }, { - "shape" : "InternalFailureException" - } ] - }, - "UntagResource" : { - "name" : "UntagResource", - "http" : { - "method" : "DELETE", - "requestUri" : "/tags/{resource-arn}", - "responseCode" : 204 - }, - "input" : { - "shape" : "UntagResourceRequest" - }, - "errors" : [ { - "shape" : "ResourceNotFoundException" - }, { - "shape" : "InvalidRequestException" - }, { - "shape" : "InternalFailureException" - } ] - }, - "UpdateDeviceState" : { - "name" : "UpdateDeviceState", - "http" : { - "method" : "PUT", - "requestUri" : "/devices/{deviceId}/state", - "responseCode" : 200 - }, - "input" : { - "shape" : "UpdateDeviceStateRequest" - }, - "output" : { - "shape" : "UpdateDeviceStateResponse" - }, - "errors" : [ { - "shape" : "ResourceNotFoundException" - }, { - "shape" : "InvalidRequestException" - }, { - "shape" : "InternalFailureException" - } ] - } - }, - "shapes" : { - "Attributes" : { - "type" : "structure", - "members" : { } - }, - "ClaimDevicesByClaimCodeRequest" : { - "type" : "structure", - "members" : { - "ClaimCode" : { - "shape" : "__string", - "location" : "uri", - "locationName" : "claimCode" - } - }, - "required" : [ "ClaimCode" ] - }, - "ClaimDevicesByClaimCodeResponse" : { - "type" : "structure", - "members" : { - "ClaimCode" : { - "shape" : "__stringMin12Max40", - "locationName" : "claimCode" - }, - "Total" : { - "shape" : "__integer", - "locationName" : "total" - } - } - }, - "DescribeDeviceRequest" : { - "type" : "structure", - "members" : { - "DeviceId" : { - "shape" : "__string", - "location" : "uri", - "locationName" : "deviceId" - } - }, - "required" : [ "DeviceId" ] - }, - "DescribeDeviceResponse" : { - "type" : "structure", - "members" : { - "DeviceDescription" : { - "shape" : "DeviceDescription", - "locationName" : "deviceDescription" - } - } - }, - "Device" : { - "type" : "structure", - "members" : { - "Attributes" : { - "shape" : "Attributes", - "locationName" : "attributes" - }, - "DeviceId" : { - "shape" : "__string", - "locationName" : "deviceId" - }, - "Type" : { - "shape" : "__string", - "locationName" : "type" - } - } - }, - "DeviceAttributes" : { - "type" : "map", - "key" : { - "shape" : "__string" - }, - "value" : { - "shape" : "__string" - } - }, - "DeviceClaimResponse" : { - "type" : "structure", - "members" : { - "State" : { - "shape" : "__string", - "locationName" : "state" - } - } - }, - "DeviceDescription" : { - "type" : "structure", - "members" : { - "Arn" : { - "shape" : "__string", - "locationName" : "arn" - }, - "Attributes" : { - "shape" : "DeviceAttributes", - "locationName" : "attributes" - }, - "DeviceId" : { - "shape" : "__string", - "locationName" : "deviceId" - }, - "Enabled" : { - "shape" : "__boolean", - "locationName" : "enabled" - }, - "RemainingLife" : { - "shape" : "__doubleMin0Max100", - "locationName" : "remainingLife" - }, - "Type" : { - "shape" : "__string", - "locationName" : "type" - }, - "Tags" : { - "shape" : "__mapOf__string", - "locationName" : "tags" - } - } - }, - "DeviceEvent" : { - "type" : "structure", - "members" : { - "Device" : { - "shape" : "Device", - "locationName" : "device" - }, - "StdEvent" : { - "shape" : "__string", - "locationName" : "stdEvent" - } - } - }, - "DeviceEventsResponse" : { - "type" : "structure", - "members" : { - "Events" : { - "shape" : "__listOfDeviceEvent", - "locationName" : "events" - }, - "NextToken" : { - "shape" : "__string", - "locationName" : "nextToken" - } - } - }, - "DeviceMethod" : { - "type" : "structure", - "members" : { - "DeviceType" : { - "shape" : "__string", - "locationName" : "deviceType" - }, - "MethodName" : { - "shape" : "__string", - "locationName" : "methodName" - } - } - }, - "Empty" : { - "type" : "structure", - "members" : { } - }, - "FinalizeDeviceClaimRequest" : { - "type" : "structure", - "members" : { - "DeviceId" : { - "shape" : "__string", - "location" : "uri", - "locationName" : "deviceId" - }, - "Tags" : { - "shape" : "__mapOf__string", - "locationName" : "tags" - } - }, - "required" : [ "DeviceId" ] - }, - "FinalizeDeviceClaimResponse" : { - "type" : "structure", - "members" : { - "State" : { - "shape" : "__string", - "locationName" : "state" - } - } - }, - "ForbiddenException" : { - "type" : "structure", - "members" : { - "Code" : { - "shape" : "__string", - "locationName" : "code" - }, - "Message" : { - "shape" : "__string", - "locationName" : "message" - } - }, - "exception" : true, - "error" : { - "httpStatusCode" : 403 - } - }, - "GetDeviceMethodsRequest" : { - "type" : "structure", - "members" : { - "DeviceId" : { - "shape" : "__string", - "location" : "uri", - "locationName" : "deviceId" - } - }, - "required" : [ "DeviceId" ] - }, - "GetDeviceMethodsResponse" : { - "type" : "structure", - "members" : { - "DeviceMethods" : { - "shape" : "__listOfDeviceMethod", - "locationName" : "deviceMethods" - } - } - }, - "InitiateDeviceClaimRequest" : { - "type" : "structure", - "members" : { - "DeviceId" : { - "shape" : "__string", - "location" : "uri", - "locationName" : "deviceId" - } - }, - "required" : [ "DeviceId" ] - }, - "InitiateDeviceClaimResponse" : { - "type" : "structure", - "members" : { - "State" : { - "shape" : "__string", - "locationName" : "state" - } - } - }, - "InternalFailureException" : { - "type" : "structure", - "members" : { - "Code" : { - "shape" : "__string", - "locationName" : "code" - }, - "Message" : { - "shape" : "__string", - "locationName" : "message" - } - }, - "exception" : true, - "error" : { - "httpStatusCode" : 500 - } - }, - "InvalidRequestException" : { - "type" : "structure", - "members" : { - "Code" : { - "shape" : "__string", - "locationName" : "code" - }, - "Message" : { - "shape" : "__string", - "locationName" : "message" - } - }, - "exception" : true, - "error" : { - "httpStatusCode" : 400 - } - }, - "InvokeDeviceMethodRequest" : { - "type" : "structure", - "members" : { - "DeviceId" : { - "shape" : "__string", - "location" : "uri", - "locationName" : "deviceId" - }, - "DeviceMethod" : { - "shape" : "DeviceMethod", - "locationName" : "deviceMethod" - }, - "DeviceMethodParameters" : { - "shape" : "__string", - "locationName" : "deviceMethodParameters" - } - }, - "required" : [ "DeviceId" ] - }, - "InvokeDeviceMethodResponse" : { - "type" : "structure", - "members" : { - "DeviceMethodResponse" : { - "shape" : "__string", - "locationName" : "deviceMethodResponse" - } - } - }, - "ListDeviceEventsRequest" : { - "type" : "structure", - "members" : { - "DeviceId" : { - "shape" : "__string", - "location" : "uri", - "locationName" : "deviceId" - }, - "FromTimeStamp" : { - "shape" : "__timestampIso8601", - "location" : "querystring", - "locationName" : "fromTimeStamp" - }, - "MaxResults" : { - "shape" : "MaxResults", - "location" : "querystring", - "locationName" : "maxResults" - }, - "NextToken" : { - "shape" : "__string", - "location" : "querystring", - "locationName" : "nextToken" - }, - "ToTimeStamp" : { - "shape" : "__timestampIso8601", - "location" : "querystring", - "locationName" : "toTimeStamp" - } - }, - "required" : [ "DeviceId", "FromTimeStamp", "ToTimeStamp" ] - }, - "ListDeviceEventsResponse" : { - "type" : "structure", - "members" : { - "Events" : { - "shape" : "__listOfDeviceEvent", - "locationName" : "events" - }, - "NextToken" : { - "shape" : "__string", - "locationName" : "nextToken" - } - } - }, - "ListDevicesRequest" : { - "type" : "structure", - "members" : { - "DeviceType" : { - "shape" : "__string", - "location" : "querystring", - "locationName" : "deviceType" - }, - "MaxResults" : { - "shape" : "MaxResults", - "location" : "querystring", - "locationName" : "maxResults" - }, - "NextToken" : { - "shape" : "__string", - "location" : "querystring", - "locationName" : "nextToken" - } - } - }, - "ListDevicesResponse" : { - "type" : "structure", - "members" : { - "Devices" : { - "shape" : "__listOfDeviceDescription", - "locationName" : "devices" - }, - "NextToken" : { - "shape" : "__string", - "locationName" : "nextToken" - } - } - }, - "ListTagsForResourceRequest" : { - "type" : "structure", - "members" : { - "ResourceArn" : { - "shape" : "__string", - "location" : "uri", - "locationName" : "resource-arn" - } - }, - "required" : [ "ResourceArn" ] - }, - "ListTagsForResourceResponse" : { - "type" : "structure", - "members" : { - "Tags" : { - "shape" : "__mapOf__string", - "locationName" : "tags" - } - } - }, - "MaxResults" : { - "type" : "integer", - "min" : 1, - "max" : 250 - }, - "PreconditionFailedException" : { - "type" : "structure", - "members" : { - "Code" : { - "shape" : "__string", - "locationName" : "code" - }, - "Message" : { - "shape" : "__string", - "locationName" : "message" - } - }, - "exception" : true, - "error" : { - "httpStatusCode" : 412 - } - }, - "RangeNotSatisfiableException" : { - "type" : "structure", - "members" : { - "Code" : { - "shape" : "__string", - "locationName" : "code" - }, - "Message" : { - "shape" : "__string", - "locationName" : "message" - } - }, - "exception" : true, - "error" : { - "httpStatusCode" : 416 - } - }, - "ResourceConflictException" : { - "type" : "structure", - "members" : { - "Code" : { - "shape" : "__string", - "locationName" : "code" - }, - "Message" : { - "shape" : "__string", - "locationName" : "message" - } - }, - "exception" : true, - "error" : { - "httpStatusCode" : 409 - } - }, - "ResourceNotFoundException" : { - "type" : "structure", - "members" : { - "Code" : { - "shape" : "__string", - "locationName" : "code" - }, - "Message" : { - "shape" : "__string", - "locationName" : "message" - } - }, - "exception" : true, - "error" : { - "httpStatusCode" : 404 - } - }, - "TagResourceRequest" : { - "type" : "structure", - "members" : { - "ResourceArn" : { - "shape" : "__string", - "location" : "uri", - "locationName" : "resource-arn" - }, - "Tags" : { - "shape" : "__mapOf__string", - "locationName" : "tags" - } - }, - "required" : [ "ResourceArn", "Tags" ] - }, - "UnclaimDeviceRequest" : { - "type" : "structure", - "members" : { - "DeviceId" : { - "shape" : "__string", - "location" : "uri", - "locationName" : "deviceId" - } - }, - "required" : [ "DeviceId" ] - }, - "UnclaimDeviceResponse" : { - "type" : "structure", - "members" : { - "State" : { - "shape" : "__string", - "locationName" : "state" - } - } - }, - "UntagResourceRequest" : { - "type" : "structure", - "members" : { - "ResourceArn" : { - "shape" : "__string", - "location" : "uri", - "locationName" : "resource-arn" - }, - "TagKeys" : { - "shape" : "__listOf__string", - "location" : "querystring", - "locationName" : "tagKeys" - } - }, - "required" : [ "TagKeys", "ResourceArn" ] - }, - "UpdateDeviceStateRequest" : { - "type" : "structure", - "members" : { - "DeviceId" : { - "shape" : "__string", - "location" : "uri", - "locationName" : "deviceId" - }, - "Enabled" : { - "shape" : "__boolean", - "locationName" : "enabled" - } - }, - "required" : [ "DeviceId" ] - }, - "UpdateDeviceStateResponse" : { - "type" : "structure", - "members" : { } - }, - "__boolean" : { - "type" : "boolean" - }, - "__double" : { - "type" : "double" - }, - "__doubleMin0Max100" : { - "type" : "double" - }, - "__integer" : { - "type" : "integer" - }, - "__listOfDeviceDescription" : { - "type" : "list", - "member" : { - "shape" : "DeviceDescription" - } - }, - "__listOfDeviceEvent" : { - "type" : "list", - "member" : { - "shape" : "DeviceEvent" - } - }, - "__listOfDeviceMethod" : { - "type" : "list", - "member" : { - "shape" : "DeviceMethod" - } - }, - "__listOf__string" : { - "type" : "list", - "member" : { - "shape" : "__string" - } - }, - "__long" : { - "type" : "long" - }, - "__mapOf__string" : { - "type" : "map", - "key" : { - "shape" : "__string" - }, - "value" : { - "shape" : "__string" - } - }, - "__string" : { - "type" : "string" - }, - "__stringMin12Max40" : { - "type" : "string", - "min" : 12, - "max" : 40 - }, - "__timestampIso8601" : { - "type" : "timestamp", - "timestampFormat" : "iso8601" - }, - "__timestampUnix" : { - "type" : "timestamp", - "timestampFormat" : "unixTimestamp" - } - } -} \ No newline at end of file diff --git a/apis/iot1click-devices/2018-05-14/docs-2.json b/apis/iot1click-devices/2018-05-14/docs-2.json deleted file mode 100644 index df8fece9fa4..00000000000 --- a/apis/iot1click-devices/2018-05-14/docs-2.json +++ /dev/null @@ -1,203 +0,0 @@ -{ - "version" : "2.0", - "service" : "

Describes all of the AWS IoT 1-Click device-related API operations for the service.\n Also provides sample requests, responses, and errors for the supported web services\n protocols.

", - "operations" : { - "ClaimDevicesByClaimCode" : "

Adds device(s) to your account (i.e., claim one or more devices) if and only if you\n received a claim code with the device(s).

", - "DescribeDevice" : "

Given a device ID, returns a DescribeDeviceResponse object describing the\n details of the device.

", - "FinalizeDeviceClaim" : "

Given a device ID, finalizes the claim request for the associated device.

\n

Claiming a device consists of initiating a claim, then publishing a device event,\n and finalizing the claim. For a device of type button, a device event can\n be published by simply clicking the device.

\n
", - "GetDeviceMethods" : "

Given a device ID, returns the invokable methods associated with the device.

", - "InitiateDeviceClaim" : "

Given a device ID, initiates a claim request for the associated device.

\n

Claiming a device consists of initiating a claim, then publishing a device event,\n and finalizing the claim. For a device of type button, a device event can\n be published by simply clicking the device.

\n
", - "InvokeDeviceMethod" : "

Given a device ID, issues a request to invoke a named device method (with possible\n parameters). See the \"Example POST\" code snippet below.

", - "ListDeviceEvents" : "

Using a device ID, returns a DeviceEventsResponse object containing an\n array of events for the device.

", - "ListDevices" : "

Lists the 1-Click compatible devices associated with your AWS account.

", - "ListTagsForResource" : "

Lists the tags associated with the specified resource ARN.

", - "TagResource" : "

Adds or updates the tags associated with the resource ARN. See AWS IoT 1-Click Service Limits for the maximum number of tags allowed per\n resource.

", - "UnclaimDevice" : "

Disassociates a device from your AWS account using its device ID.

", - "UntagResource" : "

Using tag keys, deletes the tags (key/value pairs) associated with the specified\n resource ARN.

", - "UpdateDeviceState" : "

Using a Boolean value (true or false), this operation\n enables or disables the device given a device ID.

" - }, - "shapes" : { - "Attributes" : { - "base" : null, - "refs" : { - "Device$Attributes" : "

The user specified attributes associated with the device for an event.

" - } - }, - "ClaimDevicesByClaimCodeResponse" : { - "base" : null, - "refs" : { } - }, - "DescribeDeviceResponse" : { - "base" : null, - "refs" : { } - }, - "Device" : { - "base" : null, - "refs" : { - "DeviceEvent$Device" : "

An object representing the device associated with the event.

" - } - }, - "DeviceAttributes" : { - "base" : "

\n DeviceAttributes is a string-to-string map specified by the user.

", - "refs" : { - "DeviceDescription$Attributes" : "

An array of zero or more elements of DeviceAttribute objects providing\n user specified device attributes.

" - } - }, - "DeviceClaimResponse" : { - "base" : null, - "refs" : { } - }, - "DeviceDescription" : { - "base" : null, - "refs" : { - "DescribeDeviceResponse$DeviceDescription" : "

Device details.

", - "__listOfDeviceDescription$member" : null - } - }, - "DeviceEvent" : { - "base" : null, - "refs" : { - "__listOfDeviceEvent$member" : null - } - }, - "DeviceEventsResponse" : { - "base" : null, - "refs" : { } - }, - "DeviceMethod" : { - "base" : null, - "refs" : { - "InvokeDeviceMethodRequest$DeviceMethod" : "

The device method to invoke.

", - "__listOfDeviceMethod$member" : null - } - }, - "Empty" : { - "base" : "

On success, an empty object is returned.

", - "refs" : { } - }, - "ForbiddenException" : { - "base" : null, - "refs" : { } - }, - "GetDeviceMethodsResponse" : { - "base" : null, - "refs" : { } - }, - "InternalFailureException" : { - "base" : null, - "refs" : { } - }, - "InvalidRequestException" : { - "base" : null, - "refs" : { } - }, - "InvokeDeviceMethodRequest" : { - "base" : null, - "refs" : { } - }, - "InvokeDeviceMethodResponse" : { - "base" : null, - "refs" : { } - }, - "ListDevicesResponse" : { - "base" : null, - "refs" : { } - }, - "PreconditionFailedException" : { - "base" : null, - "refs" : { } - }, - "RangeNotSatisfiableException" : { - "base" : null, - "refs" : { } - }, - "ResourceConflictException" : { - "base" : null, - "refs" : { } - }, - "ResourceNotFoundException" : { - "base" : null, - "refs" : { } - }, - "UpdateDeviceStateRequest" : { - "base" : null, - "refs" : { } - }, - "__boolean" : { - "base" : null, - "refs" : { - "DeviceDescription$Enabled" : "

A Boolean value indicating whether or not the device is enabled.

", - "UpdateDeviceStateRequest$Enabled" : "

If true, the device is enabled. If false, the device is\n disabled.

" - } - }, - "__doubleMin0Max100" : { - "base" : null, - "refs" : { - "DeviceDescription$RemainingLife" : "

A value between 0 and 1 inclusive, representing the fraction of life remaining for the\n device.

" - } - }, - "__integer" : { - "base" : null, - "refs" : { - "ClaimDevicesByClaimCodeResponse$Total" : "

The total number of devices associated with the claim code that has been processed in\n the claim request.

" - } - }, - "__listOfDeviceDescription" : { - "base" : null, - "refs" : { - "ListDevicesResponse$Devices" : "

A list of devices.

" - } - }, - "__listOfDeviceEvent" : { - "base" : null, - "refs" : { - "DeviceEventsResponse$Events" : "

An array of zero or more elements describing the event(s) associated with the\n device.

" - } - }, - "__listOfDeviceMethod" : { - "base" : null, - "refs" : { - "GetDeviceMethodsResponse$DeviceMethods" : "

List of available device APIs.

" - } - }, - "__string" : { - "base" : null, - "refs" : { - "Device$DeviceId" : "

The unique identifier of the device.

", - "Device$Type" : "

The device type, such as \"button\".

", - "DeviceAttributes$member" : null, - "DeviceClaimResponse$State" : "

The device's final claim state.

", - "DeviceDescription$Arn" : "

The ARN of the device.

", - "DeviceDescription$DeviceId" : "

The unique identifier of the device.

", - "DeviceDescription$Type" : "

The type of the device, such as \"button\".

", - "DeviceEvent$StdEvent" : "

A serialized JSON object representing the device-type specific event.

", - "DeviceEventsResponse$NextToken" : "

The token to retrieve the next set of results.

", - "DeviceMethod$DeviceType" : "

The type of the device, such as \"button\".

", - "DeviceMethod$MethodName" : "

The name of the method applicable to the deviceType.

", - "ForbiddenException$Code" : "

403

", - "ForbiddenException$Message" : "

The 403 error message returned by the web server.

", - "InternalFailureException$Code" : "

500

", - "InternalFailureException$Message" : "

The 500 error message returned by the web server.

", - "InvalidRequestException$Code" : "

400

", - "InvalidRequestException$Message" : "

The 400 error message returned by the web server.

", - "InvokeDeviceMethodRequest$DeviceMethodParameters" : "

A JSON encoded string containing the device method request parameters.

", - "InvokeDeviceMethodResponse$DeviceMethodResponse" : "

A JSON encoded string containing the device method response.

", - "ListDevicesResponse$NextToken" : "

The token to retrieve the next set of results.

", - "PreconditionFailedException$Code" : "

412

", - "PreconditionFailedException$Message" : "

An error message explaining the error or its remedy.

", - "RangeNotSatisfiableException$Code" : "

416

", - "RangeNotSatisfiableException$Message" : "

The requested number of results specified by nextToken cannot be\n satisfied.

", - "ResourceConflictException$Code" : "

409

", - "ResourceConflictException$Message" : "

An error message explaining the error or its remedy.

", - "ResourceNotFoundException$Code" : "

404

", - "ResourceNotFoundException$Message" : "

The requested device could not be found.

" - } - }, - "__stringMin12Max40" : { - "base" : null, - "refs" : { - "ClaimDevicesByClaimCodeResponse$ClaimCode" : "

The claim code provided by the device manufacturer.

" - } - } - } -} \ No newline at end of file diff --git a/apis/iot1click-devices/2018-05-14/endpoint-rule-set-1.json b/apis/iot1click-devices/2018-05-14/endpoint-rule-set-1.json deleted file mode 100644 index b23e238a19a..00000000000 --- a/apis/iot1click-devices/2018-05-14/endpoint-rule-set-1.json +++ /dev/null @@ -1,314 +0,0 @@ -{ - "version": "1.0", - "parameters": { - "Region": { - "builtIn": "AWS::Region", - "required": false, - "documentation": "The AWS region used to dispatch the request.", - "type": "String" - }, - "UseDualStack": { - "builtIn": "AWS::UseDualStack", - "required": true, - "default": false, - "documentation": "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - "type": "Boolean" - }, - "UseFIPS": { - "builtIn": "AWS::UseFIPS", - "required": true, - "default": false, - "documentation": "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - "type": "Boolean" - }, - "Endpoint": { - "builtIn": "SDK::Endpoint", - "required": false, - "documentation": "Override the endpoint used to send this request", - "type": "String" - } - }, - "rules": [ - { - "conditions": [ - { - "fn": "isSet", - "argv": [ - { - "ref": "Endpoint" - } - ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [ - { - "fn": "booleanEquals", - "argv": [ - { - "ref": "UseFIPS" - }, - true - ] - } - ], - "error": "Invalid Configuration: FIPS and custom endpoint are not supported", - "type": "error" - }, - { - "conditions": [ - { - "fn": "booleanEquals", - "argv": [ - { - "ref": "UseDualStack" - }, - true - ] - } - ], - "error": "Invalid Configuration: Dualstack and custom endpoint are not supported", - "type": "error" - }, - { - "conditions": [], - "endpoint": { - "url": { - "ref": "Endpoint" - }, - "properties": {}, - "headers": {} - }, - "type": "endpoint" - } - ] - }, - { - "conditions": [ - { - "fn": "isSet", - "argv": [ - { - "ref": "Region" - } - ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [ - { - "fn": "aws.partition", - "argv": [ - { - "ref": "Region" - } - ], - "assign": "PartitionResult" - } - ], - "type": "tree", - "rules": [ - { - "conditions": [ - { - "fn": "booleanEquals", - "argv": [ - { - "ref": "UseFIPS" - }, - true - ] - }, - { - "fn": "booleanEquals", - "argv": [ - { - "ref": "UseDualStack" - }, - true - ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [ - { - "fn": "booleanEquals", - "argv": [ - true, - { - "fn": "getAttr", - "argv": [ - { - "ref": "PartitionResult" - }, - "supportsFIPS" - ] - } - ] - }, - { - "fn": "booleanEquals", - "argv": [ - true, - { - "fn": "getAttr", - "argv": [ - { - "ref": "PartitionResult" - }, - "supportsDualStack" - ] - } - ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [], - "endpoint": { - "url": "https://devices.iot1click-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - "properties": {}, - "headers": {} - }, - "type": "endpoint" - } - ] - }, - { - "conditions": [], - "error": "FIPS and DualStack are enabled, but this partition does not support one or both", - "type": "error" - } - ] - }, - { - "conditions": [ - { - "fn": "booleanEquals", - "argv": [ - { - "ref": "UseFIPS" - }, - true - ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [ - { - "fn": "booleanEquals", - "argv": [ - true, - { - "fn": "getAttr", - "argv": [ - { - "ref": "PartitionResult" - }, - "supportsFIPS" - ] - } - ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [], - "endpoint": { - "url": "https://devices.iot1click-fips.{Region}.{PartitionResult#dnsSuffix}", - "properties": {}, - "headers": {} - }, - "type": "endpoint" - } - ] - }, - { - "conditions": [], - "error": "FIPS is enabled but this partition does not support FIPS", - "type": "error" - } - ] - }, - { - "conditions": [ - { - "fn": "booleanEquals", - "argv": [ - { - "ref": "UseDualStack" - }, - true - ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [ - { - "fn": "booleanEquals", - "argv": [ - true, - { - "fn": "getAttr", - "argv": [ - { - "ref": "PartitionResult" - }, - "supportsDualStack" - ] - } - ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [], - "endpoint": { - "url": "https://devices.iot1click.{Region}.{PartitionResult#dualStackDnsSuffix}", - "properties": {}, - "headers": {} - }, - "type": "endpoint" - } - ] - }, - { - "conditions": [], - "error": "DualStack is enabled but this partition does not support DualStack", - "type": "error" - } - ] - }, - { - "conditions": [], - "endpoint": { - "url": "https://devices.iot1click.{Region}.{PartitionResult#dnsSuffix}", - "properties": {}, - "headers": {} - }, - "type": "endpoint" - } - ] - } - ] - }, - { - "conditions": [], - "error": "Invalid Configuration: Missing Region", - "type": "error" - } - ] -} \ No newline at end of file diff --git a/apis/iot1click-devices/2018-05-14/endpoint-tests-1.json b/apis/iot1click-devices/2018-05-14/endpoint-tests-1.json deleted file mode 100644 index f5c8d9a906e..00000000000 --- a/apis/iot1click-devices/2018-05-14/endpoint-tests-1.json +++ /dev/null @@ -1,314 +0,0 @@ -{ - "testCases": [ - { - "documentation": "For region us-east-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://devices.iot1click-fips.us-east-1.api.aws" - } - }, - "params": { - "Region": "us-east-1", - "UseFIPS": true, - "UseDualStack": true - } - }, - { - "documentation": "For region us-east-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://devices.iot1click-fips.us-east-1.amazonaws.com" - } - }, - "params": { - "Region": "us-east-1", - "UseFIPS": true, - "UseDualStack": false - } - }, - { - "documentation": "For region us-east-1 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://devices.iot1click.us-east-1.api.aws" - } - }, - "params": { - "Region": "us-east-1", - "UseFIPS": false, - "UseDualStack": true - } - }, - { - "documentation": "For region us-east-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://devices.iot1click.us-east-1.amazonaws.com" - } - }, - "params": { - "Region": "us-east-1", - "UseFIPS": false, - "UseDualStack": false - } - }, - { - "documentation": "For region cn-north-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://devices.iot1click-fips.cn-north-1.api.amazonwebservices.com.cn" - } - }, - "params": { - "Region": "cn-north-1", - "UseFIPS": true, - "UseDualStack": true - } - }, - { - "documentation": "For region cn-north-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://devices.iot1click-fips.cn-north-1.amazonaws.com.cn" - } - }, - "params": { - "Region": "cn-north-1", - "UseFIPS": true, - "UseDualStack": false - } - }, - { - "documentation": "For region cn-north-1 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://devices.iot1click.cn-north-1.api.amazonwebservices.com.cn" - } - }, - "params": { - "Region": "cn-north-1", - "UseFIPS": false, - "UseDualStack": true - } - }, - { - "documentation": "For region cn-north-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://devices.iot1click.cn-north-1.amazonaws.com.cn" - } - }, - "params": { - "Region": "cn-north-1", - "UseFIPS": false, - "UseDualStack": false - } - }, - { - "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://devices.iot1click-fips.us-gov-east-1.api.aws" - } - }, - "params": { - "Region": "us-gov-east-1", - "UseFIPS": true, - "UseDualStack": true - } - }, - { - "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://devices.iot1click-fips.us-gov-east-1.amazonaws.com" - } - }, - "params": { - "Region": "us-gov-east-1", - "UseFIPS": true, - "UseDualStack": false - } - }, - { - "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://devices.iot1click.us-gov-east-1.api.aws" - } - }, - "params": { - "Region": "us-gov-east-1", - "UseFIPS": false, - "UseDualStack": true - } - }, - { - "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://devices.iot1click.us-gov-east-1.amazonaws.com" - } - }, - "params": { - "Region": "us-gov-east-1", - "UseFIPS": false, - "UseDualStack": false - } - }, - { - "documentation": "For region us-iso-east-1 with FIPS enabled and DualStack enabled", - "expect": { - "error": "FIPS and DualStack are enabled, but this partition does not support one or both" - }, - "params": { - "Region": "us-iso-east-1", - "UseFIPS": true, - "UseDualStack": true - } - }, - { - "documentation": "For region us-iso-east-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://devices.iot1click-fips.us-iso-east-1.c2s.ic.gov" - } - }, - "params": { - "Region": "us-iso-east-1", - "UseFIPS": true, - "UseDualStack": false - } - }, - { - "documentation": "For region us-iso-east-1 with FIPS disabled and DualStack enabled", - "expect": { - "error": "DualStack is enabled but this partition does not support DualStack" - }, - "params": { - "Region": "us-iso-east-1", - "UseFIPS": false, - "UseDualStack": true - } - }, - { - "documentation": "For region us-iso-east-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://devices.iot1click.us-iso-east-1.c2s.ic.gov" - } - }, - "params": { - "Region": "us-iso-east-1", - "UseFIPS": false, - "UseDualStack": false - } - }, - { - "documentation": "For region us-isob-east-1 with FIPS enabled and DualStack enabled", - "expect": { - "error": "FIPS and DualStack are enabled, but this partition does not support one or both" - }, - "params": { - "Region": "us-isob-east-1", - "UseFIPS": true, - "UseDualStack": true - } - }, - { - "documentation": "For region us-isob-east-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://devices.iot1click-fips.us-isob-east-1.sc2s.sgov.gov" - } - }, - "params": { - "Region": "us-isob-east-1", - "UseFIPS": true, - "UseDualStack": false - } - }, - { - "documentation": "For region us-isob-east-1 with FIPS disabled and DualStack enabled", - "expect": { - "error": "DualStack is enabled but this partition does not support DualStack" - }, - "params": { - "Region": "us-isob-east-1", - "UseFIPS": false, - "UseDualStack": true - } - }, - { - "documentation": "For region us-isob-east-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://devices.iot1click.us-isob-east-1.sc2s.sgov.gov" - } - }, - "params": { - "Region": "us-isob-east-1", - "UseFIPS": false, - "UseDualStack": false - } - }, - { - "documentation": "For custom endpoint with region set and fips disabled and dualstack disabled", - "expect": { - "endpoint": { - "url": "https://example.com" - } - }, - "params": { - "Region": "us-east-1", - "UseFIPS": false, - "UseDualStack": false, - "Endpoint": "https://example.com" - } - }, - { - "documentation": "For custom endpoint with region not set and fips disabled and dualstack disabled", - "expect": { - "endpoint": { - "url": "https://example.com" - } - }, - "params": { - "UseFIPS": false, - "UseDualStack": false, - "Endpoint": "https://example.com" - } - }, - { - "documentation": "For custom endpoint with fips enabled and dualstack disabled", - "expect": { - "error": "Invalid Configuration: FIPS and custom endpoint are not supported" - }, - "params": { - "Region": "us-east-1", - "UseFIPS": true, - "UseDualStack": false, - "Endpoint": "https://example.com" - } - }, - { - "documentation": "For custom endpoint with fips disabled and dualstack enabled", - "expect": { - "error": "Invalid Configuration: Dualstack and custom endpoint are not supported" - }, - "params": { - "Region": "us-east-1", - "UseFIPS": false, - "UseDualStack": true, - "Endpoint": "https://example.com" - } - }, - { - "documentation": "Missing region", - "expect": { - "error": "Invalid Configuration: Missing Region" - } - } - ], - "version": "1.0" -} \ No newline at end of file diff --git a/apis/iot1click-projects/2018-05-14/api-2.json b/apis/iot1click-projects/2018-05-14/api-2.json deleted file mode 100644 index 6a459a89686..00000000000 --- a/apis/iot1click-projects/2018-05-14/api-2.json +++ /dev/null @@ -1,885 +0,0 @@ -{ - "version":"2.0", - "metadata":{ - "apiVersion":"2018-05-14", - "endpointPrefix":"projects.iot1click", - "jsonVersion":"1.1", - "protocol":"rest-json", - "protocols":["rest-json"], - "serviceAbbreviation":"AWS IoT 1-Click Projects", - "serviceFullName":"AWS IoT 1-Click Projects Service", - "serviceId":"IoT 1Click Projects", - "signatureVersion":"v4", - "signingName":"iot1click", - "uid":"iot1click-projects-2018-05-14", - "auth":["aws.auth#sigv4"] - }, - "operations":{ - "AssociateDeviceWithPlacement":{ - "name":"AssociateDeviceWithPlacement", - "http":{ - "method":"PUT", - "requestUri":"/projects/{projectName}/placements/{placementName}/devices/{deviceTemplateName}" - }, - "input":{"shape":"AssociateDeviceWithPlacementRequest"}, - "output":{"shape":"AssociateDeviceWithPlacementResponse"}, - "errors":[ - {"shape":"InternalFailureException"}, - {"shape":"InvalidRequestException"}, - {"shape":"ResourceConflictException"}, - {"shape":"ResourceNotFoundException"} - ] - }, - "CreatePlacement":{ - "name":"CreatePlacement", - "http":{ - "method":"POST", - "requestUri":"/projects/{projectName}/placements" - }, - "input":{"shape":"CreatePlacementRequest"}, - "output":{"shape":"CreatePlacementResponse"}, - "errors":[ - {"shape":"InternalFailureException"}, - {"shape":"InvalidRequestException"}, - {"shape":"ResourceConflictException"}, - {"shape":"ResourceNotFoundException"} - ] - }, - "CreateProject":{ - "name":"CreateProject", - "http":{ - "method":"POST", - "requestUri":"/projects" - }, - "input":{"shape":"CreateProjectRequest"}, - "output":{"shape":"CreateProjectResponse"}, - "errors":[ - {"shape":"InternalFailureException"}, - {"shape":"InvalidRequestException"}, - {"shape":"ResourceConflictException"} - ] - }, - "DeletePlacement":{ - "name":"DeletePlacement", - "http":{ - "method":"DELETE", - "requestUri":"/projects/{projectName}/placements/{placementName}" - }, - "input":{"shape":"DeletePlacementRequest"}, - "output":{"shape":"DeletePlacementResponse"}, - "errors":[ - {"shape":"InternalFailureException"}, - {"shape":"InvalidRequestException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"TooManyRequestsException"} - ] - }, - "DeleteProject":{ - "name":"DeleteProject", - "http":{ - "method":"DELETE", - "requestUri":"/projects/{projectName}" - }, - "input":{"shape":"DeleteProjectRequest"}, - "output":{"shape":"DeleteProjectResponse"}, - "errors":[ - {"shape":"InternalFailureException"}, - {"shape":"InvalidRequestException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"TooManyRequestsException"} - ] - }, - "DescribePlacement":{ - "name":"DescribePlacement", - "http":{ - "method":"GET", - "requestUri":"/projects/{projectName}/placements/{placementName}" - }, - "input":{"shape":"DescribePlacementRequest"}, - "output":{"shape":"DescribePlacementResponse"}, - "errors":[ - {"shape":"InternalFailureException"}, - {"shape":"InvalidRequestException"}, - {"shape":"ResourceNotFoundException"} - ] - }, - "DescribeProject":{ - "name":"DescribeProject", - "http":{ - "method":"GET", - "requestUri":"/projects/{projectName}" - }, - "input":{"shape":"DescribeProjectRequest"}, - "output":{"shape":"DescribeProjectResponse"}, - "errors":[ - {"shape":"InternalFailureException"}, - {"shape":"InvalidRequestException"}, - {"shape":"ResourceNotFoundException"} - ] - }, - "DisassociateDeviceFromPlacement":{ - "name":"DisassociateDeviceFromPlacement", - "http":{ - "method":"DELETE", - "requestUri":"/projects/{projectName}/placements/{placementName}/devices/{deviceTemplateName}" - }, - "input":{"shape":"DisassociateDeviceFromPlacementRequest"}, - "output":{"shape":"DisassociateDeviceFromPlacementResponse"}, - "errors":[ - {"shape":"InternalFailureException"}, - {"shape":"InvalidRequestException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"TooManyRequestsException"} - ] - }, - "GetDevicesInPlacement":{ - "name":"GetDevicesInPlacement", - "http":{ - "method":"GET", - "requestUri":"/projects/{projectName}/placements/{placementName}/devices" - }, - "input":{"shape":"GetDevicesInPlacementRequest"}, - "output":{"shape":"GetDevicesInPlacementResponse"}, - "errors":[ - {"shape":"InternalFailureException"}, - {"shape":"InvalidRequestException"}, - {"shape":"ResourceNotFoundException"} - ] - }, - "ListPlacements":{ - "name":"ListPlacements", - "http":{ - "method":"GET", - "requestUri":"/projects/{projectName}/placements" - }, - "input":{"shape":"ListPlacementsRequest"}, - "output":{"shape":"ListPlacementsResponse"}, - "errors":[ - {"shape":"InternalFailureException"}, - {"shape":"InvalidRequestException"}, - {"shape":"ResourceNotFoundException"} - ] - }, - "ListProjects":{ - "name":"ListProjects", - "http":{ - "method":"GET", - "requestUri":"/projects" - }, - "input":{"shape":"ListProjectsRequest"}, - "output":{"shape":"ListProjectsResponse"}, - "errors":[ - {"shape":"InternalFailureException"}, - {"shape":"InvalidRequestException"} - ] - }, - "ListTagsForResource":{ - "name":"ListTagsForResource", - "http":{ - "method":"GET", - "requestUri":"/tags/{resourceArn}" - }, - "input":{"shape":"ListTagsForResourceRequest"}, - "output":{"shape":"ListTagsForResourceResponse"}, - "errors":[ - {"shape":"InternalFailureException"}, - {"shape":"InvalidRequestException"}, - {"shape":"ResourceNotFoundException"} - ] - }, - "TagResource":{ - "name":"TagResource", - "http":{ - "method":"POST", - "requestUri":"/tags/{resourceArn}" - }, - "input":{"shape":"TagResourceRequest"}, - "output":{"shape":"TagResourceResponse"}, - "errors":[ - {"shape":"InternalFailureException"}, - {"shape":"InvalidRequestException"}, - {"shape":"ResourceNotFoundException"} - ] - }, - "UntagResource":{ - "name":"UntagResource", - "http":{ - "method":"DELETE", - "requestUri":"/tags/{resourceArn}" - }, - "input":{"shape":"UntagResourceRequest"}, - "output":{"shape":"UntagResourceResponse"}, - "errors":[ - {"shape":"InternalFailureException"}, - {"shape":"InvalidRequestException"}, - {"shape":"ResourceNotFoundException"} - ] - }, - "UpdatePlacement":{ - "name":"UpdatePlacement", - "http":{ - "method":"PUT", - "requestUri":"/projects/{projectName}/placements/{placementName}" - }, - "input":{"shape":"UpdatePlacementRequest"}, - "output":{"shape":"UpdatePlacementResponse"}, - "errors":[ - {"shape":"InternalFailureException"}, - {"shape":"InvalidRequestException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"TooManyRequestsException"} - ] - }, - "UpdateProject":{ - "name":"UpdateProject", - "http":{ - "method":"PUT", - "requestUri":"/projects/{projectName}" - }, - "input":{"shape":"UpdateProjectRequest"}, - "output":{"shape":"UpdateProjectResponse"}, - "errors":[ - {"shape":"InternalFailureException"}, - {"shape":"InvalidRequestException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"TooManyRequestsException"} - ] - } - }, - "shapes":{ - "AssociateDeviceWithPlacementRequest":{ - "type":"structure", - "required":[ - "projectName", - "placementName", - "deviceId", - "deviceTemplateName" - ], - "members":{ - "projectName":{ - "shape":"ProjectName", - "location":"uri", - "locationName":"projectName" - }, - "placementName":{ - "shape":"PlacementName", - "location":"uri", - "locationName":"placementName" - }, - "deviceId":{"shape":"DeviceId"}, - "deviceTemplateName":{ - "shape":"DeviceTemplateName", - "location":"uri", - "locationName":"deviceTemplateName" - } - } - }, - "AssociateDeviceWithPlacementResponse":{ - "type":"structure", - "members":{ - } - }, - "AttributeDefaultValue":{ - "type":"string", - "max":800 - }, - "AttributeName":{ - "type":"string", - "max":128, - "min":1 - }, - "AttributeValue":{ - "type":"string", - "max":800 - }, - "Code":{"type":"string"}, - "CreatePlacementRequest":{ - "type":"structure", - "required":[ - "placementName", - "projectName" - ], - "members":{ - "placementName":{"shape":"PlacementName"}, - "projectName":{ - "shape":"ProjectName", - "location":"uri", - "locationName":"projectName" - }, - "attributes":{"shape":"PlacementAttributeMap"} - } - }, - "CreatePlacementResponse":{ - "type":"structure", - "members":{ - } - }, - "CreateProjectRequest":{ - "type":"structure", - "required":["projectName"], - "members":{ - "projectName":{"shape":"ProjectName"}, - "description":{"shape":"Description"}, - "placementTemplate":{"shape":"PlacementTemplate"}, - "tags":{"shape":"TagMap"} - } - }, - "CreateProjectResponse":{ - "type":"structure", - "members":{ - } - }, - "DefaultPlacementAttributeMap":{ - "type":"map", - "key":{"shape":"AttributeName"}, - "value":{"shape":"AttributeDefaultValue"} - }, - "DeletePlacementRequest":{ - "type":"structure", - "required":[ - "placementName", - "projectName" - ], - "members":{ - "placementName":{ - "shape":"PlacementName", - "location":"uri", - "locationName":"placementName" - }, - "projectName":{ - "shape":"ProjectName", - "location":"uri", - "locationName":"projectName" - } - } - }, - "DeletePlacementResponse":{ - "type":"structure", - "members":{ - } - }, - "DeleteProjectRequest":{ - "type":"structure", - "required":["projectName"], - "members":{ - "projectName":{ - "shape":"ProjectName", - "location":"uri", - "locationName":"projectName" - } - } - }, - "DeleteProjectResponse":{ - "type":"structure", - "members":{ - } - }, - "DescribePlacementRequest":{ - "type":"structure", - "required":[ - "placementName", - "projectName" - ], - "members":{ - "placementName":{ - "shape":"PlacementName", - "location":"uri", - "locationName":"placementName" - }, - "projectName":{ - "shape":"ProjectName", - "location":"uri", - "locationName":"projectName" - } - } - }, - "DescribePlacementResponse":{ - "type":"structure", - "required":["placement"], - "members":{ - "placement":{"shape":"PlacementDescription"} - } - }, - "DescribeProjectRequest":{ - "type":"structure", - "required":["projectName"], - "members":{ - "projectName":{ - "shape":"ProjectName", - "location":"uri", - "locationName":"projectName" - } - } - }, - "DescribeProjectResponse":{ - "type":"structure", - "required":["project"], - "members":{ - "project":{"shape":"ProjectDescription"} - } - }, - "Description":{ - "type":"string", - "max":500, - "min":0 - }, - "DeviceCallbackKey":{ - "type":"string", - "max":128, - "min":1 - }, - "DeviceCallbackOverrideMap":{ - "type":"map", - "key":{"shape":"DeviceCallbackKey"}, - "value":{"shape":"DeviceCallbackValue"} - }, - "DeviceCallbackValue":{ - "type":"string", - "max":200 - }, - "DeviceId":{ - "type":"string", - "max":32, - "min":1 - }, - "DeviceMap":{ - "type":"map", - "key":{"shape":"DeviceTemplateName"}, - "value":{"shape":"DeviceId"} - }, - "DeviceTemplate":{ - "type":"structure", - "members":{ - "deviceType":{"shape":"DeviceType"}, - "callbackOverrides":{"shape":"DeviceCallbackOverrideMap"} - } - }, - "DeviceTemplateMap":{ - "type":"map", - "key":{"shape":"DeviceTemplateName"}, - "value":{"shape":"DeviceTemplate"} - }, - "DeviceTemplateName":{ - "type":"string", - "max":128, - "min":1, - "pattern":"^[a-zA-Z0-9_-]+$" - }, - "DeviceType":{ - "type":"string", - "max":128 - }, - "DisassociateDeviceFromPlacementRequest":{ - "type":"structure", - "required":[ - "projectName", - "placementName", - "deviceTemplateName" - ], - "members":{ - "projectName":{ - "shape":"ProjectName", - "location":"uri", - "locationName":"projectName" - }, - "placementName":{ - "shape":"PlacementName", - "location":"uri", - "locationName":"placementName" - }, - "deviceTemplateName":{ - "shape":"DeviceTemplateName", - "location":"uri", - "locationName":"deviceTemplateName" - } - } - }, - "DisassociateDeviceFromPlacementResponse":{ - "type":"structure", - "members":{ - } - }, - "GetDevicesInPlacementRequest":{ - "type":"structure", - "required":[ - "projectName", - "placementName" - ], - "members":{ - "projectName":{ - "shape":"ProjectName", - "location":"uri", - "locationName":"projectName" - }, - "placementName":{ - "shape":"PlacementName", - "location":"uri", - "locationName":"placementName" - } - } - }, - "GetDevicesInPlacementResponse":{ - "type":"structure", - "required":["devices"], - "members":{ - "devices":{"shape":"DeviceMap"} - } - }, - "InternalFailureException":{ - "type":"structure", - "required":[ - "code", - "message" - ], - "members":{ - "code":{"shape":"Code"}, - "message":{"shape":"Message"} - }, - "error":{"httpStatusCode":500}, - "exception":true - }, - "InvalidRequestException":{ - "type":"structure", - "required":[ - "code", - "message" - ], - "members":{ - "code":{"shape":"Code"}, - "message":{"shape":"Message"} - }, - "error":{"httpStatusCode":400}, - "exception":true - }, - "ListPlacementsRequest":{ - "type":"structure", - "required":["projectName"], - "members":{ - "projectName":{ - "shape":"ProjectName", - "location":"uri", - "locationName":"projectName" - }, - "nextToken":{ - "shape":"NextToken", - "location":"querystring", - "locationName":"nextToken" - }, - "maxResults":{ - "shape":"MaxResults", - "location":"querystring", - "locationName":"maxResults" - } - } - }, - "ListPlacementsResponse":{ - "type":"structure", - "required":["placements"], - "members":{ - "placements":{"shape":"PlacementSummaryList"}, - "nextToken":{"shape":"NextToken"} - } - }, - "ListProjectsRequest":{ - "type":"structure", - "members":{ - "nextToken":{ - "shape":"NextToken", - "location":"querystring", - "locationName":"nextToken" - }, - "maxResults":{ - "shape":"MaxResults", - "location":"querystring", - "locationName":"maxResults" - } - } - }, - "ListProjectsResponse":{ - "type":"structure", - "required":["projects"], - "members":{ - "projects":{"shape":"ProjectSummaryList"}, - "nextToken":{"shape":"NextToken"} - } - }, - "ListTagsForResourceRequest":{ - "type":"structure", - "required":["resourceArn"], - "members":{ - "resourceArn":{ - "shape":"ProjectArn", - "location":"uri", - "locationName":"resourceArn" - } - } - }, - "ListTagsForResourceResponse":{ - "type":"structure", - "members":{ - "tags":{"shape":"TagMap"} - } - }, - "MaxResults":{ - "type":"integer", - "max":250, - "min":1 - }, - "Message":{"type":"string"}, - "NextToken":{ - "type":"string", - "max":1024, - "min":1 - }, - "PlacementAttributeMap":{ - "type":"map", - "key":{"shape":"AttributeName"}, - "value":{"shape":"AttributeValue"} - }, - "PlacementDescription":{ - "type":"structure", - "required":[ - "projectName", - "placementName", - "attributes", - "createdDate", - "updatedDate" - ], - "members":{ - "projectName":{"shape":"ProjectName"}, - "placementName":{"shape":"PlacementName"}, - "attributes":{"shape":"PlacementAttributeMap"}, - "createdDate":{"shape":"Time"}, - "updatedDate":{"shape":"Time"} - } - }, - "PlacementName":{ - "type":"string", - "max":128, - "min":1, - "pattern":"^[a-zA-Z0-9_-]+$" - }, - "PlacementSummary":{ - "type":"structure", - "required":[ - "projectName", - "placementName", - "createdDate", - "updatedDate" - ], - "members":{ - "projectName":{"shape":"ProjectName"}, - "placementName":{"shape":"PlacementName"}, - "createdDate":{"shape":"Time"}, - "updatedDate":{"shape":"Time"} - } - }, - "PlacementSummaryList":{ - "type":"list", - "member":{"shape":"PlacementSummary"} - }, - "PlacementTemplate":{ - "type":"structure", - "members":{ - "defaultAttributes":{"shape":"DefaultPlacementAttributeMap"}, - "deviceTemplates":{"shape":"DeviceTemplateMap"} - } - }, - "ProjectArn":{ - "type":"string", - "pattern":"^arn:aws:iot1click:[A-Za-z0-9_/.-]{0,63}:\\d+:projects/[0-9A-Za-z_-]{1,128}$" - }, - "ProjectDescription":{ - "type":"structure", - "required":[ - "projectName", - "createdDate", - "updatedDate" - ], - "members":{ - "arn":{"shape":"ProjectArn"}, - "projectName":{"shape":"ProjectName"}, - "description":{"shape":"Description"}, - "createdDate":{"shape":"Time"}, - "updatedDate":{"shape":"Time"}, - "placementTemplate":{"shape":"PlacementTemplate"}, - "tags":{"shape":"TagMap"} - } - }, - "ProjectName":{ - "type":"string", - "max":128, - "min":1, - "pattern":"^[0-9A-Za-z_-]+$" - }, - "ProjectSummary":{ - "type":"structure", - "required":[ - "projectName", - "createdDate", - "updatedDate" - ], - "members":{ - "arn":{"shape":"ProjectArn"}, - "projectName":{"shape":"ProjectName"}, - "createdDate":{"shape":"Time"}, - "updatedDate":{"shape":"Time"}, - "tags":{"shape":"TagMap"} - } - }, - "ProjectSummaryList":{ - "type":"list", - "member":{"shape":"ProjectSummary"} - }, - "ResourceConflictException":{ - "type":"structure", - "required":[ - "code", - "message" - ], - "members":{ - "code":{"shape":"Code"}, - "message":{"shape":"Message"} - }, - "error":{"httpStatusCode":409}, - "exception":true - }, - "ResourceNotFoundException":{ - "type":"structure", - "required":[ - "code", - "message" - ], - "members":{ - "code":{"shape":"Code"}, - "message":{"shape":"Message"} - }, - "error":{"httpStatusCode":404}, - "exception":true - }, - "TagKey":{ - "type":"string", - "max":128, - "min":1, - "pattern":"^(?!aws:)[a-zA-Z+-=._:/]+$" - }, - "TagKeyList":{ - "type":"list", - "member":{"shape":"TagKey"}, - "max":50, - "min":1 - }, - "TagMap":{ - "type":"map", - "key":{"shape":"TagKey"}, - "value":{"shape":"TagValue"}, - "max":50, - "min":1 - }, - "TagResourceRequest":{ - "type":"structure", - "required":[ - "resourceArn", - "tags" - ], - "members":{ - "resourceArn":{ - "shape":"ProjectArn", - "location":"uri", - "locationName":"resourceArn" - }, - "tags":{"shape":"TagMap"} - } - }, - "TagResourceResponse":{ - "type":"structure", - "members":{ - } - }, - "TagValue":{ - "type":"string", - "max":256 - }, - "Time":{"type":"timestamp"}, - "TooManyRequestsException":{ - "type":"structure", - "required":[ - "code", - "message" - ], - "members":{ - "code":{"shape":"Code"}, - "message":{"shape":"Message"} - }, - "error":{"httpStatusCode":429}, - "exception":true - }, - "UntagResourceRequest":{ - "type":"structure", - "required":[ - "resourceArn", - "tagKeys" - ], - "members":{ - "resourceArn":{ - "shape":"ProjectArn", - "location":"uri", - "locationName":"resourceArn" - }, - "tagKeys":{ - "shape":"TagKeyList", - "location":"querystring", - "locationName":"tagKeys" - } - } - }, - "UntagResourceResponse":{ - "type":"structure", - "members":{ - } - }, - "UpdatePlacementRequest":{ - "type":"structure", - "required":[ - "placementName", - "projectName" - ], - "members":{ - "placementName":{ - "shape":"PlacementName", - "location":"uri", - "locationName":"placementName" - }, - "projectName":{ - "shape":"ProjectName", - "location":"uri", - "locationName":"projectName" - }, - "attributes":{"shape":"PlacementAttributeMap"} - } - }, - "UpdatePlacementResponse":{ - "type":"structure", - "members":{ - } - }, - "UpdateProjectRequest":{ - "type":"structure", - "required":["projectName"], - "members":{ - "projectName":{ - "shape":"ProjectName", - "location":"uri", - "locationName":"projectName" - }, - "description":{"shape":"Description"}, - "placementTemplate":{"shape":"PlacementTemplate"} - } - }, - "UpdateProjectResponse":{ - "type":"structure", - "members":{ - } - } - } -} diff --git a/apis/iot1click-projects/2018-05-14/docs-2.json b/apis/iot1click-projects/2018-05-14/docs-2.json deleted file mode 100644 index cb811ffef1e..00000000000 --- a/apis/iot1click-projects/2018-05-14/docs-2.json +++ /dev/null @@ -1,475 +0,0 @@ -{ - "version": "2.0", - "service": "

The AWS IoT 1-Click Projects API Reference

", - "operations": { - "AssociateDeviceWithPlacement": "

Associates a physical device with a placement.

", - "CreatePlacement": "

Creates an empty placement.

", - "CreateProject": "

Creates an empty project with a placement template. A project contains zero or more placements that adhere to the placement template defined in the project.

", - "DeletePlacement": "

Deletes a placement. To delete a placement, it must not have any devices associated with it.

When you delete a placement, all associated data becomes irretrievable.

", - "DeleteProject": "

Deletes a project. To delete a project, it must not have any placements associated with it.

When you delete a project, all associated data becomes irretrievable.

", - "DescribePlacement": "

Describes a placement in a project.

", - "DescribeProject": "

Returns an object describing a project.

", - "DisassociateDeviceFromPlacement": "

Removes a physical device from a placement.

", - "GetDevicesInPlacement": "

Returns an object enumerating the devices in a placement.

", - "ListPlacements": "

Lists the placement(s) of a project.

", - "ListProjects": "

Lists the AWS IoT 1-Click project(s) associated with your AWS account and region.

", - "ListTagsForResource": "

Lists the tags (metadata key/value pairs) which you have assigned to the resource.

", - "TagResource": "

Creates or modifies tags for a resource. Tags are key/value pairs (metadata) that can be used to manage a resource. For more information, see AWS Tagging Strategies.

", - "UntagResource": "

Removes one or more tags (metadata key/value pairs) from a resource.

", - "UpdatePlacement": "

Updates a placement with the given attributes. To clear an attribute, pass an empty value (i.e., \"\").

", - "UpdateProject": "

Updates a project associated with your AWS account and region. With the exception of device template names, you can pass just the values that need to be updated because the update request will change only the values that are provided. To clear a value, pass the empty string (i.e., \"\").

" - }, - "shapes": { - "AssociateDeviceWithPlacementRequest": { - "base": null, - "refs": { - } - }, - "AssociateDeviceWithPlacementResponse": { - "base": null, - "refs": { - } - }, - "AttributeDefaultValue": { - "base": null, - "refs": { - "DefaultPlacementAttributeMap$value": null - } - }, - "AttributeName": { - "base": null, - "refs": { - "DefaultPlacementAttributeMap$key": null, - "PlacementAttributeMap$key": null - } - }, - "AttributeValue": { - "base": null, - "refs": { - "PlacementAttributeMap$value": null - } - }, - "Code": { - "base": null, - "refs": { - "InternalFailureException$code": null, - "InvalidRequestException$code": null, - "ResourceConflictException$code": null, - "ResourceNotFoundException$code": null, - "TooManyRequestsException$code": null - } - }, - "CreatePlacementRequest": { - "base": null, - "refs": { - } - }, - "CreatePlacementResponse": { - "base": null, - "refs": { - } - }, - "CreateProjectRequest": { - "base": null, - "refs": { - } - }, - "CreateProjectResponse": { - "base": null, - "refs": { - } - }, - "DefaultPlacementAttributeMap": { - "base": null, - "refs": { - "PlacementTemplate$defaultAttributes": "

The default attributes (key/value pairs) to be applied to all placements using this template.

" - } - }, - "DeletePlacementRequest": { - "base": null, - "refs": { - } - }, - "DeletePlacementResponse": { - "base": null, - "refs": { - } - }, - "DeleteProjectRequest": { - "base": null, - "refs": { - } - }, - "DeleteProjectResponse": { - "base": null, - "refs": { - } - }, - "DescribePlacementRequest": { - "base": null, - "refs": { - } - }, - "DescribePlacementResponse": { - "base": null, - "refs": { - } - }, - "DescribeProjectRequest": { - "base": null, - "refs": { - } - }, - "DescribeProjectResponse": { - "base": null, - "refs": { - } - }, - "Description": { - "base": null, - "refs": { - "CreateProjectRequest$description": "

An optional description for the project.

", - "ProjectDescription$description": "

The description of the project.

", - "UpdateProjectRequest$description": "

An optional user-defined description for the project.

" - } - }, - "DeviceCallbackKey": { - "base": null, - "refs": { - "DeviceCallbackOverrideMap$key": null - } - }, - "DeviceCallbackOverrideMap": { - "base": null, - "refs": { - "DeviceTemplate$callbackOverrides": "

An optional Lambda function to invoke instead of the default Lambda function provided by the placement template.

" - } - }, - "DeviceCallbackValue": { - "base": null, - "refs": { - "DeviceCallbackOverrideMap$value": null - } - }, - "DeviceId": { - "base": null, - "refs": { - "AssociateDeviceWithPlacementRequest$deviceId": "

The ID of the physical device to be associated with the given placement in the project. Note that a mandatory 4 character prefix is required for all deviceId values.

", - "DeviceMap$value": null - } - }, - "DeviceMap": { - "base": null, - "refs": { - "GetDevicesInPlacementResponse$devices": "

An object containing the devices (zero or more) within the placement.

" - } - }, - "DeviceTemplate": { - "base": "

An object representing a device for a placement template (see PlacementTemplate).

", - "refs": { - "DeviceTemplateMap$value": null - } - }, - "DeviceTemplateMap": { - "base": null, - "refs": { - "PlacementTemplate$deviceTemplates": "

An object specifying the DeviceTemplate for all placements using this (PlacementTemplate) template.

" - } - }, - "DeviceTemplateName": { - "base": null, - "refs": { - "AssociateDeviceWithPlacementRequest$deviceTemplateName": "

The device template name to associate with the device ID.

", - "DeviceMap$key": null, - "DeviceTemplateMap$key": null, - "DisassociateDeviceFromPlacementRequest$deviceTemplateName": "

The device ID that should be removed from the placement.

" - } - }, - "DeviceType": { - "base": null, - "refs": { - "DeviceTemplate$deviceType": "

The device type, which currently must be \"button\".

" - } - }, - "DisassociateDeviceFromPlacementRequest": { - "base": null, - "refs": { - } - }, - "DisassociateDeviceFromPlacementResponse": { - "base": null, - "refs": { - } - }, - "GetDevicesInPlacementRequest": { - "base": null, - "refs": { - } - }, - "GetDevicesInPlacementResponse": { - "base": null, - "refs": { - } - }, - "InternalFailureException": { - "base": "

", - "refs": { - } - }, - "InvalidRequestException": { - "base": "

", - "refs": { - } - }, - "ListPlacementsRequest": { - "base": null, - "refs": { - } - }, - "ListPlacementsResponse": { - "base": null, - "refs": { - } - }, - "ListProjectsRequest": { - "base": null, - "refs": { - } - }, - "ListProjectsResponse": { - "base": null, - "refs": { - } - }, - "ListTagsForResourceRequest": { - "base": null, - "refs": { - } - }, - "ListTagsForResourceResponse": { - "base": null, - "refs": { - } - }, - "MaxResults": { - "base": null, - "refs": { - "ListPlacementsRequest$maxResults": "

The maximum number of results to return per request. If not set, a default value of 100 is used.

", - "ListProjectsRequest$maxResults": "

The maximum number of results to return per request. If not set, a default value of 100 is used.

" - } - }, - "Message": { - "base": null, - "refs": { - "InternalFailureException$message": null, - "InvalidRequestException$message": null, - "ResourceConflictException$message": null, - "ResourceNotFoundException$message": null, - "TooManyRequestsException$message": null - } - }, - "NextToken": { - "base": null, - "refs": { - "ListPlacementsRequest$nextToken": "

The token to retrieve the next set of results.

", - "ListPlacementsResponse$nextToken": "

The token used to retrieve the next set of results - will be effectively empty if there are no further results.

", - "ListProjectsRequest$nextToken": "

The token to retrieve the next set of results.

", - "ListProjectsResponse$nextToken": "

The token used to retrieve the next set of results - will be effectively empty if there are no further results.

" - } - }, - "PlacementAttributeMap": { - "base": null, - "refs": { - "CreatePlacementRequest$attributes": "

Optional user-defined key/value pairs providing contextual data (such as location or function) for the placement.

", - "PlacementDescription$attributes": "

The user-defined attributes associated with the placement.

", - "UpdatePlacementRequest$attributes": "

The user-defined object of attributes used to update the placement. The maximum number of key/value pairs is 50.

" - } - }, - "PlacementDescription": { - "base": "

An object describing a project's placement.

", - "refs": { - "DescribePlacementResponse$placement": "

An object describing the placement.

" - } - }, - "PlacementName": { - "base": null, - "refs": { - "AssociateDeviceWithPlacementRequest$placementName": "

The name of the placement in which to associate the device.

", - "CreatePlacementRequest$placementName": "

The name of the placement to be created.

", - "DeletePlacementRequest$placementName": "

The name of the empty placement to delete.

", - "DescribePlacementRequest$placementName": "

The name of the placement within a project.

", - "DisassociateDeviceFromPlacementRequest$placementName": "

The name of the placement that the device should be removed from.

", - "GetDevicesInPlacementRequest$placementName": "

The name of the placement to get the devices from.

", - "PlacementDescription$placementName": "

The name of the placement.

", - "PlacementSummary$placementName": "

The name of the placement being summarized.

", - "UpdatePlacementRequest$placementName": "

The name of the placement to update.

" - } - }, - "PlacementSummary": { - "base": "

An object providing summary information for a particular placement.

", - "refs": { - "PlacementSummaryList$member": null - } - }, - "PlacementSummaryList": { - "base": null, - "refs": { - "ListPlacementsResponse$placements": "

An object listing the requested placements.

" - } - }, - "PlacementTemplate": { - "base": "

An object defining the template for a placement.

", - "refs": { - "CreateProjectRequest$placementTemplate": "

The schema defining the placement to be created. A placement template defines placement default attributes and device templates. You cannot add or remove device templates after the project has been created. However, you can update callbackOverrides for the device templates using the UpdateProject API.

", - "ProjectDescription$placementTemplate": "

An object describing the project's placement specifications.

", - "UpdateProjectRequest$placementTemplate": "

An object defining the project update. Once a project has been created, you cannot add device template names to the project. However, for a given placementTemplate, you can update the associated callbackOverrides for the device definition using this API.

" - } - }, - "ProjectArn": { - "base": null, - "refs": { - "ListTagsForResourceRequest$resourceArn": "

The ARN of the resource whose tags you want to list.

", - "ProjectDescription$arn": "

The ARN of the project.

", - "ProjectSummary$arn": "

The ARN of the project.

", - "TagResourceRequest$resourceArn": "

The ARN of the resouce for which tag(s) should be added or modified.

", - "UntagResourceRequest$resourceArn": "

The ARN of the resource whose tag you want to remove.

" - } - }, - "ProjectDescription": { - "base": "

An object providing detailed information for a particular project associated with an AWS account and region.

", - "refs": { - "DescribeProjectResponse$project": "

An object describing the project.

" - } - }, - "ProjectName": { - "base": null, - "refs": { - "AssociateDeviceWithPlacementRequest$projectName": "

The name of the project containing the placement in which to associate the device.

", - "CreatePlacementRequest$projectName": "

The name of the project in which to create the placement.

", - "CreateProjectRequest$projectName": "

The name of the project to create.

", - "DeletePlacementRequest$projectName": "

The project containing the empty placement to delete.

", - "DeleteProjectRequest$projectName": "

The name of the empty project to delete.

", - "DescribePlacementRequest$projectName": "

The project containing the placement to be described.

", - "DescribeProjectRequest$projectName": "

The name of the project to be described.

", - "DisassociateDeviceFromPlacementRequest$projectName": "

The name of the project that contains the placement.

", - "GetDevicesInPlacementRequest$projectName": "

The name of the project containing the placement.

", - "ListPlacementsRequest$projectName": "

The project containing the placements to be listed.

", - "PlacementDescription$projectName": "

The name of the project containing the placement.

", - "PlacementSummary$projectName": "

The name of the project containing the placement.

", - "ProjectDescription$projectName": "

The name of the project for which to obtain information from.

", - "ProjectSummary$projectName": "

The name of the project being summarized.

", - "UpdatePlacementRequest$projectName": "

The name of the project containing the placement to be updated.

", - "UpdateProjectRequest$projectName": "

The name of the project to be updated.

" - } - }, - "ProjectSummary": { - "base": "

An object providing summary information for a particular project for an associated AWS account and region.

", - "refs": { - "ProjectSummaryList$member": null - } - }, - "ProjectSummaryList": { - "base": null, - "refs": { - "ListProjectsResponse$projects": "

An object containing the list of projects.

" - } - }, - "ResourceConflictException": { - "base": "

", - "refs": { - } - }, - "ResourceNotFoundException": { - "base": "

", - "refs": { - } - }, - "TagKey": { - "base": null, - "refs": { - "TagKeyList$member": null, - "TagMap$key": null - } - }, - "TagKeyList": { - "base": null, - "refs": { - "UntagResourceRequest$tagKeys": "

The keys of those tags which you want to remove.

" - } - }, - "TagMap": { - "base": null, - "refs": { - "CreateProjectRequest$tags": "

Optional tags (metadata key/value pairs) to be associated with the project. For example, { {\"key1\": \"value1\", \"key2\": \"value2\"} }. For more information, see AWS Tagging Strategies.

", - "ListTagsForResourceResponse$tags": "

The tags (metadata key/value pairs) which you have assigned to the resource.

", - "ProjectDescription$tags": "

The tags (metadata key/value pairs) associated with the project.

", - "ProjectSummary$tags": "

The tags (metadata key/value pairs) associated with the project.

", - "TagResourceRequest$tags": "

The new or modifying tag(s) for the resource. See AWS IoT 1-Click Service Limits for the maximum number of tags allowed per resource.

" - } - }, - "TagResourceRequest": { - "base": null, - "refs": { - } - }, - "TagResourceResponse": { - "base": null, - "refs": { - } - }, - "TagValue": { - "base": null, - "refs": { - "TagMap$value": null - } - }, - "Time": { - "base": null, - "refs": { - "PlacementDescription$createdDate": "

The date when the placement was initially created, in UNIX epoch time format.

", - "PlacementDescription$updatedDate": "

The date when the placement was last updated, in UNIX epoch time format. If the placement was not updated, then createdDate and updatedDate are the same.

", - "PlacementSummary$createdDate": "

The date when the placement was originally created, in UNIX epoch time format.

", - "PlacementSummary$updatedDate": "

The date when the placement was last updated, in UNIX epoch time format. If the placement was not updated, then createdDate and updatedDate are the same.

", - "ProjectDescription$createdDate": "

The date when the project was originally created, in UNIX epoch time format.

", - "ProjectDescription$updatedDate": "

The date when the project was last updated, in UNIX epoch time format. If the project was not updated, then createdDate and updatedDate are the same.

", - "ProjectSummary$createdDate": "

The date when the project was originally created, in UNIX epoch time format.

", - "ProjectSummary$updatedDate": "

The date when the project was last updated, in UNIX epoch time format. If the project was not updated, then createdDate and updatedDate are the same.

" - } - }, - "TooManyRequestsException": { - "base": "

", - "refs": { - } - }, - "UntagResourceRequest": { - "base": null, - "refs": { - } - }, - "UntagResourceResponse": { - "base": null, - "refs": { - } - }, - "UpdatePlacementRequest": { - "base": null, - "refs": { - } - }, - "UpdatePlacementResponse": { - "base": null, - "refs": { - } - }, - "UpdateProjectRequest": { - "base": null, - "refs": { - } - }, - "UpdateProjectResponse": { - "base": null, - "refs": { - } - } - } -} diff --git a/apis/iot1click-projects/2018-05-14/endpoint-rule-set-1.json b/apis/iot1click-projects/2018-05-14/endpoint-rule-set-1.json deleted file mode 100644 index 02e37ba5c89..00000000000 --- a/apis/iot1click-projects/2018-05-14/endpoint-rule-set-1.json +++ /dev/null @@ -1,314 +0,0 @@ -{ - "version": "1.0", - "parameters": { - "Region": { - "builtIn": "AWS::Region", - "required": false, - "documentation": "The AWS region used to dispatch the request.", - "type": "String" - }, - "UseDualStack": { - "builtIn": "AWS::UseDualStack", - "required": true, - "default": false, - "documentation": "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", - "type": "Boolean" - }, - "UseFIPS": { - "builtIn": "AWS::UseFIPS", - "required": true, - "default": false, - "documentation": "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", - "type": "Boolean" - }, - "Endpoint": { - "builtIn": "SDK::Endpoint", - "required": false, - "documentation": "Override the endpoint used to send this request", - "type": "String" - } - }, - "rules": [ - { - "conditions": [ - { - "fn": "isSet", - "argv": [ - { - "ref": "Endpoint" - } - ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [ - { - "fn": "booleanEquals", - "argv": [ - { - "ref": "UseFIPS" - }, - true - ] - } - ], - "error": "Invalid Configuration: FIPS and custom endpoint are not supported", - "type": "error" - }, - { - "conditions": [ - { - "fn": "booleanEquals", - "argv": [ - { - "ref": "UseDualStack" - }, - true - ] - } - ], - "error": "Invalid Configuration: Dualstack and custom endpoint are not supported", - "type": "error" - }, - { - "conditions": [], - "endpoint": { - "url": { - "ref": "Endpoint" - }, - "properties": {}, - "headers": {} - }, - "type": "endpoint" - } - ] - }, - { - "conditions": [ - { - "fn": "isSet", - "argv": [ - { - "ref": "Region" - } - ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [ - { - "fn": "aws.partition", - "argv": [ - { - "ref": "Region" - } - ], - "assign": "PartitionResult" - } - ], - "type": "tree", - "rules": [ - { - "conditions": [ - { - "fn": "booleanEquals", - "argv": [ - { - "ref": "UseFIPS" - }, - true - ] - }, - { - "fn": "booleanEquals", - "argv": [ - { - "ref": "UseDualStack" - }, - true - ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [ - { - "fn": "booleanEquals", - "argv": [ - true, - { - "fn": "getAttr", - "argv": [ - { - "ref": "PartitionResult" - }, - "supportsFIPS" - ] - } - ] - }, - { - "fn": "booleanEquals", - "argv": [ - true, - { - "fn": "getAttr", - "argv": [ - { - "ref": "PartitionResult" - }, - "supportsDualStack" - ] - } - ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [], - "endpoint": { - "url": "https://projects.iot1click-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - "properties": {}, - "headers": {} - }, - "type": "endpoint" - } - ] - }, - { - "conditions": [], - "error": "FIPS and DualStack are enabled, but this partition does not support one or both", - "type": "error" - } - ] - }, - { - "conditions": [ - { - "fn": "booleanEquals", - "argv": [ - { - "ref": "UseFIPS" - }, - true - ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [ - { - "fn": "booleanEquals", - "argv": [ - true, - { - "fn": "getAttr", - "argv": [ - { - "ref": "PartitionResult" - }, - "supportsFIPS" - ] - } - ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [], - "endpoint": { - "url": "https://projects.iot1click-fips.{Region}.{PartitionResult#dnsSuffix}", - "properties": {}, - "headers": {} - }, - "type": "endpoint" - } - ] - }, - { - "conditions": [], - "error": "FIPS is enabled but this partition does not support FIPS", - "type": "error" - } - ] - }, - { - "conditions": [ - { - "fn": "booleanEquals", - "argv": [ - { - "ref": "UseDualStack" - }, - true - ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [ - { - "fn": "booleanEquals", - "argv": [ - true, - { - "fn": "getAttr", - "argv": [ - { - "ref": "PartitionResult" - }, - "supportsDualStack" - ] - } - ] - } - ], - "type": "tree", - "rules": [ - { - "conditions": [], - "endpoint": { - "url": "https://projects.iot1click.{Region}.{PartitionResult#dualStackDnsSuffix}", - "properties": {}, - "headers": {} - }, - "type": "endpoint" - } - ] - }, - { - "conditions": [], - "error": "DualStack is enabled but this partition does not support DualStack", - "type": "error" - } - ] - }, - { - "conditions": [], - "endpoint": { - "url": "https://projects.iot1click.{Region}.{PartitionResult#dnsSuffix}", - "properties": {}, - "headers": {} - }, - "type": "endpoint" - } - ] - } - ] - }, - { - "conditions": [], - "error": "Invalid Configuration: Missing Region", - "type": "error" - } - ] -} \ No newline at end of file diff --git a/apis/iot1click-projects/2018-05-14/endpoint-tests-1.json b/apis/iot1click-projects/2018-05-14/endpoint-tests-1.json deleted file mode 100644 index 51b62173602..00000000000 --- a/apis/iot1click-projects/2018-05-14/endpoint-tests-1.json +++ /dev/null @@ -1,392 +0,0 @@ -{ - "testCases": [ - { - "documentation": "For region ap-northeast-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://projects.iot1click.ap-northeast-1.amazonaws.com" - } - }, - "params": { - "Region": "ap-northeast-1", - "UseFIPS": false, - "UseDualStack": false - } - }, - { - "documentation": "For region eu-central-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://projects.iot1click.eu-central-1.amazonaws.com" - } - }, - "params": { - "Region": "eu-central-1", - "UseFIPS": false, - "UseDualStack": false - } - }, - { - "documentation": "For region eu-west-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://projects.iot1click.eu-west-1.amazonaws.com" - } - }, - "params": { - "Region": "eu-west-1", - "UseFIPS": false, - "UseDualStack": false - } - }, - { - "documentation": "For region eu-west-2 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://projects.iot1click.eu-west-2.amazonaws.com" - } - }, - "params": { - "Region": "eu-west-2", - "UseFIPS": false, - "UseDualStack": false - } - }, - { - "documentation": "For region us-east-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://projects.iot1click.us-east-1.amazonaws.com" - } - }, - "params": { - "Region": "us-east-1", - "UseFIPS": false, - "UseDualStack": false - } - }, - { - "documentation": "For region us-east-2 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://projects.iot1click.us-east-2.amazonaws.com" - } - }, - "params": { - "Region": "us-east-2", - "UseFIPS": false, - "UseDualStack": false - } - }, - { - "documentation": "For region us-west-2 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://projects.iot1click.us-west-2.amazonaws.com" - } - }, - "params": { - "Region": "us-west-2", - "UseFIPS": false, - "UseDualStack": false - } - }, - { - "documentation": "For region us-east-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://projects.iot1click-fips.us-east-1.api.aws" - } - }, - "params": { - "Region": "us-east-1", - "UseFIPS": true, - "UseDualStack": true - } - }, - { - "documentation": "For region us-east-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://projects.iot1click-fips.us-east-1.amazonaws.com" - } - }, - "params": { - "Region": "us-east-1", - "UseFIPS": true, - "UseDualStack": false - } - }, - { - "documentation": "For region us-east-1 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://projects.iot1click.us-east-1.api.aws" - } - }, - "params": { - "Region": "us-east-1", - "UseFIPS": false, - "UseDualStack": true - } - }, - { - "documentation": "For region cn-north-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://projects.iot1click-fips.cn-north-1.api.amazonwebservices.com.cn" - } - }, - "params": { - "Region": "cn-north-1", - "UseFIPS": true, - "UseDualStack": true - } - }, - { - "documentation": "For region cn-north-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://projects.iot1click-fips.cn-north-1.amazonaws.com.cn" - } - }, - "params": { - "Region": "cn-north-1", - "UseFIPS": true, - "UseDualStack": false - } - }, - { - "documentation": "For region cn-north-1 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://projects.iot1click.cn-north-1.api.amazonwebservices.com.cn" - } - }, - "params": { - "Region": "cn-north-1", - "UseFIPS": false, - "UseDualStack": true - } - }, - { - "documentation": "For region cn-north-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://projects.iot1click.cn-north-1.amazonaws.com.cn" - } - }, - "params": { - "Region": "cn-north-1", - "UseFIPS": false, - "UseDualStack": false - } - }, - { - "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://projects.iot1click-fips.us-gov-east-1.api.aws" - } - }, - "params": { - "Region": "us-gov-east-1", - "UseFIPS": true, - "UseDualStack": true - } - }, - { - "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://projects.iot1click-fips.us-gov-east-1.amazonaws.com" - } - }, - "params": { - "Region": "us-gov-east-1", - "UseFIPS": true, - "UseDualStack": false - } - }, - { - "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack enabled", - "expect": { - "endpoint": { - "url": "https://projects.iot1click.us-gov-east-1.api.aws" - } - }, - "params": { - "Region": "us-gov-east-1", - "UseFIPS": false, - "UseDualStack": true - } - }, - { - "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://projects.iot1click.us-gov-east-1.amazonaws.com" - } - }, - "params": { - "Region": "us-gov-east-1", - "UseFIPS": false, - "UseDualStack": false - } - }, - { - "documentation": "For region us-iso-east-1 with FIPS enabled and DualStack enabled", - "expect": { - "error": "FIPS and DualStack are enabled, but this partition does not support one or both" - }, - "params": { - "Region": "us-iso-east-1", - "UseFIPS": true, - "UseDualStack": true - } - }, - { - "documentation": "For region us-iso-east-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://projects.iot1click-fips.us-iso-east-1.c2s.ic.gov" - } - }, - "params": { - "Region": "us-iso-east-1", - "UseFIPS": true, - "UseDualStack": false - } - }, - { - "documentation": "For region us-iso-east-1 with FIPS disabled and DualStack enabled", - "expect": { - "error": "DualStack is enabled but this partition does not support DualStack" - }, - "params": { - "Region": "us-iso-east-1", - "UseFIPS": false, - "UseDualStack": true - } - }, - { - "documentation": "For region us-iso-east-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://projects.iot1click.us-iso-east-1.c2s.ic.gov" - } - }, - "params": { - "Region": "us-iso-east-1", - "UseFIPS": false, - "UseDualStack": false - } - }, - { - "documentation": "For region us-isob-east-1 with FIPS enabled and DualStack enabled", - "expect": { - "error": "FIPS and DualStack are enabled, but this partition does not support one or both" - }, - "params": { - "Region": "us-isob-east-1", - "UseFIPS": true, - "UseDualStack": true - } - }, - { - "documentation": "For region us-isob-east-1 with FIPS enabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://projects.iot1click-fips.us-isob-east-1.sc2s.sgov.gov" - } - }, - "params": { - "Region": "us-isob-east-1", - "UseFIPS": true, - "UseDualStack": false - } - }, - { - "documentation": "For region us-isob-east-1 with FIPS disabled and DualStack enabled", - "expect": { - "error": "DualStack is enabled but this partition does not support DualStack" - }, - "params": { - "Region": "us-isob-east-1", - "UseFIPS": false, - "UseDualStack": true - } - }, - { - "documentation": "For region us-isob-east-1 with FIPS disabled and DualStack disabled", - "expect": { - "endpoint": { - "url": "https://projects.iot1click.us-isob-east-1.sc2s.sgov.gov" - } - }, - "params": { - "Region": "us-isob-east-1", - "UseFIPS": false, - "UseDualStack": false - } - }, - { - "documentation": "For custom endpoint with region set and fips disabled and dualstack disabled", - "expect": { - "endpoint": { - "url": "https://example.com" - } - }, - "params": { - "Region": "us-east-1", - "UseFIPS": false, - "UseDualStack": false, - "Endpoint": "https://example.com" - } - }, - { - "documentation": "For custom endpoint with region not set and fips disabled and dualstack disabled", - "expect": { - "endpoint": { - "url": "https://example.com" - } - }, - "params": { - "UseFIPS": false, - "UseDualStack": false, - "Endpoint": "https://example.com" - } - }, - { - "documentation": "For custom endpoint with fips enabled and dualstack disabled", - "expect": { - "error": "Invalid Configuration: FIPS and custom endpoint are not supported" - }, - "params": { - "Region": "us-east-1", - "UseFIPS": true, - "UseDualStack": false, - "Endpoint": "https://example.com" - } - }, - { - "documentation": "For custom endpoint with fips disabled and dualstack enabled", - "expect": { - "error": "Invalid Configuration: Dualstack and custom endpoint are not supported" - }, - "params": { - "Region": "us-east-1", - "UseFIPS": false, - "UseDualStack": true, - "Endpoint": "https://example.com" - } - }, - { - "documentation": "Missing region", - "expect": { - "error": "Invalid Configuration: Missing Region" - } - } - ], - "version": "1.0" -} \ No newline at end of file diff --git a/apis/iot1click-projects/2018-05-14/examples-1.json b/apis/iot1click-projects/2018-05-14/examples-1.json deleted file mode 100644 index 0ea7e3b0bbe..00000000000 --- a/apis/iot1click-projects/2018-05-14/examples-1.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "version": "1.0", - "examples": { - } -} diff --git a/apis/iot1click-projects/2018-05-14/paginators-1.json b/apis/iot1click-projects/2018-05-14/paginators-1.json deleted file mode 100644 index 7bd69d3ede5..00000000000 --- a/apis/iot1click-projects/2018-05-14/paginators-1.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "pagination": { - "ListPlacements": { - "input_token": "nextToken", - "limit_key": "maxResults", - "output_token": "nextToken", - "result_key": "placements" - }, - "ListProjects": { - "input_token": "nextToken", - "limit_key": "maxResults", - "output_token": "nextToken", - "result_key": "projects" - } - } -} \ No newline at end of file diff --git a/gems/aws-sdk-iot1clickdevicesservice/CHANGELOG.md b/gems/aws-sdk-iot1clickdevicesservice/CHANGELOG.md deleted file mode 100644 index e002be97480..00000000000 --- a/gems/aws-sdk-iot1clickdevicesservice/CHANGELOG.md +++ /dev/null @@ -1,327 +0,0 @@ -Unreleased Changes ------------------- - -* Feature - IoT 1Click Devices Service has been removed from the SDK because it has been discontinued. - -1.62.0 (2024-10-18) ------------------- - -* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details. - -1.61.0 (2024-09-24) ------------------- - -* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details. - -1.60.0 (2024-09-23) ------------------- - -* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details. - -1.59.0 (2024-09-20) ------------------- - -* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details. - -1.58.0 (2024-09-11) ------------------- - -* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details. - -1.57.0 (2024-09-10) ------------------- - -* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details. - -1.56.0 (2024-09-03) ------------------- - -* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details. - -1.55.0 (2024-07-02) ------------------- - -* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details. - -1.54.0 (2024-06-25) ------------------- - -* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details. - -1.53.0 (2024-06-24) ------------------- - -* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details. - -1.52.0 (2024-06-05) ------------------- - -* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details. - -1.51.0 (2024-05-13) ------------------- - -* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details. - -1.50.0 (2024-04-25) ------------------- - -* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details. - -1.49.0 (2024-01-26) ------------------- - -* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details. - -1.48.0 (2023-11-28) ------------------- - -* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details. - -1.47.0 (2023-11-22) ------------------- - -* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details. - -1.46.0 (2023-09-27) ------------------- - -* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details. - -1.45.0 (2023-09-19) ------------------- - -* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details. - -1.44.0 (2023-07-11) ------------------- - -* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details. - -1.43.0 (2023-07-06) ------------------- - -* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details. - -1.42.0 (2023-06-28) ------------------- - -* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details. - -1.41.0 (2023-06-15) ------------------- - -* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details. - -1.40.0 (2023-05-31) ------------------- - -* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details. - -1.39.0 (2023-01-18) ------------------- - -* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details. - -* Issue - Replace runtime endpoint resolution approach with generated ruby code. - -1.38.0 (2022-10-25) ------------------- - -* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details. - -1.37.0 (2022-02-24) ------------------- - -* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details. - -1.36.0 (2022-02-03) ------------------- - -* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details. - -1.35.0 (2021-12-21) ------------------- - -* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details. - -1.34.0 (2021-11-30) ------------------- - -* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details. - -1.33.0 (2021-11-04) ------------------- - -* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details. - -1.32.0 (2021-10-18) ------------------- - -* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details. - -1.31.0 (2021-09-01) ------------------- - -* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details. - -1.30.0 (2021-07-30) ------------------- - -* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details. - -1.29.0 (2021-07-28) ------------------- - -* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details. - -1.28.0 (2021-03-10) ------------------- - -* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details. - -1.27.0 (2021-02-02) ------------------- - -* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details. - -1.26.0 (2020-09-30) ------------------- - -* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details. - -1.25.0 (2020-09-15) ------------------- - -* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details. - -1.24.0 (2020-08-25) ------------------- - -* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details. - -1.23.0 (2020-06-23) ------------------- - -* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details. - -1.22.1 (2020-06-11) ------------------- - -* Issue - Republish previous version with correct dependency on `aws-sdk-core`. - -1.22.0 (2020-06-10) ------------------- - -* Issue - This version has been yanked. (#2327). -* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details. - -1.21.0 (2020-05-28) ------------------- - -* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details. - -1.20.0 (2020-05-07) ------------------- - -* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details. - -1.19.0 (2020-03-09) ------------------- - -* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details. - -1.18.0 (2019-10-23) ------------------- - -* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details. - -1.17.0 (2019-07-25) ------------------- - -* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details. - -1.16.0 (2019-07-01) ------------------- - -* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details. - -1.15.0 (2019-06-17) ------------------- - -* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details. - -1.14.0 (2019-05-21) ------------------- - -* Feature - API update. - -1.13.0 (2019-05-15) ------------------- - -* Feature - API update. - -1.12.0 (2019-05-14) ------------------- - -* Feature - API update. - -1.11.0 (2019-04-05) ------------------- - -* Feature - API update. - -1.10.0 (2019-03-25) ------------------- - -* Feature - API update. - -1.9.0 (2019-03-21) ------------------- - -* Feature - API update. - -1.8.0 (2019-03-18) ------------------- - -* Feature - API update. - -1.7.0 (2019-03-14) ------------------- - -* Feature - API update. - -1.6.0 (2018-11-20) ------------------- - -* Feature - API update. - -1.5.0 (2018-10-24) ------------------- - -* Feature - API update. - -1.4.0 (2018-10-23) ------------------- - -* Feature - API update. - -1.3.0 (2018-09-06) ------------------- - -* Feature - Adds code paths and plugins for future SDK instrumentation and telemetry. - -1.2.0 (2018-09-05) ------------------- - -* Feature - API update. - -1.1.0 (2018-06-26) ------------------- - -* Feature - API update. - -1.0.0 (2018-05-14) ------------------- - -* Feature - Initial release of `aws-sdk-iot1clickdevicesservice`. diff --git a/gems/aws-sdk-iot1clickdevicesservice/LICENSE.txt b/gems/aws-sdk-iot1clickdevicesservice/LICENSE.txt deleted file mode 100644 index d6456956733..00000000000 --- a/gems/aws-sdk-iot1clickdevicesservice/LICENSE.txt +++ /dev/null @@ -1,202 +0,0 @@ - - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright [yyyy] [name of copyright owner] - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/gems/aws-sdk-iot1clickdevicesservice/VERSION b/gems/aws-sdk-iot1clickdevicesservice/VERSION deleted file mode 100644 index 76d05362056..00000000000 --- a/gems/aws-sdk-iot1clickdevicesservice/VERSION +++ /dev/null @@ -1 +0,0 @@ -1.62.0 diff --git a/gems/aws-sdk-iot1clickdevicesservice/aws-sdk-iot1clickdevicesservice.gemspec b/gems/aws-sdk-iot1clickdevicesservice/aws-sdk-iot1clickdevicesservice.gemspec deleted file mode 100644 index 75b63069a83..00000000000 --- a/gems/aws-sdk-iot1clickdevicesservice/aws-sdk-iot1clickdevicesservice.gemspec +++ /dev/null @@ -1,32 +0,0 @@ -# frozen_string_literal: true - -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -Gem::Specification.new do |spec| - - spec.name = 'aws-sdk-iot1clickdevicesservice' - spec.version = File.read(File.expand_path('../VERSION', __FILE__)).strip - spec.summary = 'AWS SDK for Ruby - AWS IoT 1-Click Devices Service' - spec.description = 'Official AWS Ruby gem for AWS IoT 1-Click Devices Service. This gem is part of the AWS SDK for Ruby.' - spec.author = 'Amazon Web Services' - spec.homepage = 'https://github.com/aws/aws-sdk-ruby' - spec.license = 'Apache-2.0' - spec.email = ['aws-dr-rubygems@amazon.com'] - spec.require_paths = ['lib'] - spec.files = Dir["LICENSE.txt", "CHANGELOG.md", "VERSION", "lib/**/*.rb", "sig/**/*.rbs"] - - spec.metadata = { - 'source_code_uri' => 'https://github.com/aws/aws-sdk-ruby/tree/version-3/gems/aws-sdk-iot1clickdevicesservice', - 'changelog_uri' => 'https://github.com/aws/aws-sdk-ruby/tree/version-3/gems/aws-sdk-iot1clickdevicesservice/CHANGELOG.md' - } - - spec.add_dependency('aws-sdk-core', '~> 3', '>= 3.210.0') - spec.add_dependency('aws-sigv4', '~> 1.1') - - spec.required_ruby_version = '>= 2.5' -end diff --git a/gems/aws-sdk-iot1clickdevicesservice/features/env.rb b/gems/aws-sdk-iot1clickdevicesservice/features/env.rb deleted file mode 100644 index 7a74844fda0..00000000000 --- a/gems/aws-sdk-iot1clickdevicesservice/features/env.rb +++ /dev/null @@ -1,18 +0,0 @@ -# frozen_string_literal: true - -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -$:.unshift(File.expand_path('../../lib', __FILE__)) -$:.unshift(File.expand_path('../../../aws-sdk-core/features', __FILE__)) -$:.unshift(File.expand_path('../../../aws-sdk-core/lib', __FILE__)) -$:.unshift(File.expand_path('../../../aws-sigv4/lib', __FILE__)) - -require 'features_helper' -require 'aws-sdk-iot1clickdevicesservice' - -Aws::IoT1ClickDevicesService::Client.add_plugin(ApiCallTracker) diff --git a/gems/aws-sdk-iot1clickdevicesservice/features/step_definitions.rb b/gems/aws-sdk-iot1clickdevicesservice/features/step_definitions.rb deleted file mode 100644 index 3f259971a54..00000000000 --- a/gems/aws-sdk-iot1clickdevicesservice/features/step_definitions.rb +++ /dev/null @@ -1,10 +0,0 @@ -# frozen_string_literal: true - -Before("@iot1clickdevicesservice") do - @service = Aws::IoT1ClickDevicesService::Resource.new - @client = @service.client -end - -After("@iot1clickdevicesservice") do - # shared cleanup logic -end diff --git a/gems/aws-sdk-iot1clickdevicesservice/lib/aws-sdk-iot1clickdevicesservice.rb b/gems/aws-sdk-iot1clickdevicesservice/lib/aws-sdk-iot1clickdevicesservice.rb deleted file mode 100644 index c28e6a60dc6..00000000000 --- a/gems/aws-sdk-iot1clickdevicesservice/lib/aws-sdk-iot1clickdevicesservice.rb +++ /dev/null @@ -1,61 +0,0 @@ -# frozen_string_literal: true - -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - - -require 'aws-sdk-core' -require 'aws-sigv4' - -Aws::Plugins::GlobalConfiguration.add_identifier(:iot1clickdevicesservice) - -# This module provides support for AWS IoT 1-Click Devices Service. This module is available in the -# `aws-sdk-iot1clickdevicesservice` gem. -# -# # Client -# -# The {Client} class provides one method for each API operation. Operation -# methods each accept a hash of request parameters and return a response -# structure. -# -# io_t1_click_devices_service = Aws::IoT1ClickDevicesService::Client.new -# resp = io_t1_click_devices_service.claim_devices_by_claim_code(params) -# -# See {Client} for more information. -# -# # Errors -# -# Errors returned from AWS IoT 1-Click Devices Service are defined in the -# {Errors} module and all extend {Errors::ServiceError}. -# -# begin -# # do stuff -# rescue Aws::IoT1ClickDevicesService::Errors::ServiceError -# # rescues all AWS IoT 1-Click Devices Service API errors -# end -# -# See {Errors} for more information. -# -# @!group service -module Aws::IoT1ClickDevicesService - autoload :Types, 'aws-sdk-iot1clickdevicesservice/types' - autoload :ClientApi, 'aws-sdk-iot1clickdevicesservice/client_api' - module Plugins - autoload :Endpoints, 'aws-sdk-iot1clickdevicesservice/plugins/endpoints.rb' - end - autoload :Client, 'aws-sdk-iot1clickdevicesservice/client' - autoload :Errors, 'aws-sdk-iot1clickdevicesservice/errors' - autoload :Resource, 'aws-sdk-iot1clickdevicesservice/resource' - autoload :EndpointParameters, 'aws-sdk-iot1clickdevicesservice/endpoint_parameters' - autoload :EndpointProvider, 'aws-sdk-iot1clickdevicesservice/endpoint_provider' - autoload :Endpoints, 'aws-sdk-iot1clickdevicesservice/endpoints' - - GEM_VERSION = '1.62.0' - -end - -require_relative 'aws-sdk-iot1clickdevicesservice/customizations' diff --git a/gems/aws-sdk-iot1clickdevicesservice/lib/aws-sdk-iot1clickdevicesservice/client.rb b/gems/aws-sdk-iot1clickdevicesservice/lib/aws-sdk-iot1clickdevicesservice/client.rb deleted file mode 100644 index aba4b9c9e4b..00000000000 --- a/gems/aws-sdk-iot1clickdevicesservice/lib/aws-sdk-iot1clickdevicesservice/client.rb +++ /dev/null @@ -1,926 +0,0 @@ -# frozen_string_literal: true - -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -require 'seahorse/client/plugins/content_length.rb' -require 'aws-sdk-core/plugins/credentials_configuration.rb' -require 'aws-sdk-core/plugins/logging.rb' -require 'aws-sdk-core/plugins/param_converter.rb' -require 'aws-sdk-core/plugins/param_validator.rb' -require 'aws-sdk-core/plugins/user_agent.rb' -require 'aws-sdk-core/plugins/helpful_socket_errors.rb' -require 'aws-sdk-core/plugins/retry_errors.rb' -require 'aws-sdk-core/plugins/global_configuration.rb' -require 'aws-sdk-core/plugins/regional_endpoint.rb' -require 'aws-sdk-core/plugins/endpoint_discovery.rb' -require 'aws-sdk-core/plugins/endpoint_pattern.rb' -require 'aws-sdk-core/plugins/response_paging.rb' -require 'aws-sdk-core/plugins/stub_responses.rb' -require 'aws-sdk-core/plugins/idempotency_token.rb' -require 'aws-sdk-core/plugins/invocation_id.rb' -require 'aws-sdk-core/plugins/jsonvalue_converter.rb' -require 'aws-sdk-core/plugins/client_metrics_plugin.rb' -require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb' -require 'aws-sdk-core/plugins/transfer_encoding.rb' -require 'aws-sdk-core/plugins/http_checksum.rb' -require 'aws-sdk-core/plugins/checksum_algorithm.rb' -require 'aws-sdk-core/plugins/request_compression.rb' -require 'aws-sdk-core/plugins/defaults_mode.rb' -require 'aws-sdk-core/plugins/recursion_detection.rb' -require 'aws-sdk-core/plugins/telemetry.rb' -require 'aws-sdk-core/plugins/sign.rb' -require 'aws-sdk-core/plugins/protocols/rest_json.rb' - -module Aws::IoT1ClickDevicesService - # An API client for IoT1ClickDevicesService. To construct a client, you need to configure a `:region` and `:credentials`. - # - # client = Aws::IoT1ClickDevicesService::Client.new( - # region: region_name, - # credentials: credentials, - # # ... - # ) - # - # For details on configuring region and credentials see - # the [developer guide](/sdk-for-ruby/v3/developer-guide/setup-config.html). - # - # See {#initialize} for a full list of supported configuration options. - class Client < Seahorse::Client::Base - - include Aws::ClientStubs - - @identifier = :iot1clickdevicesservice - - set_api(ClientApi::API) - - add_plugin(Seahorse::Client::Plugins::ContentLength) - add_plugin(Aws::Plugins::CredentialsConfiguration) - add_plugin(Aws::Plugins::Logging) - add_plugin(Aws::Plugins::ParamConverter) - add_plugin(Aws::Plugins::ParamValidator) - add_plugin(Aws::Plugins::UserAgent) - add_plugin(Aws::Plugins::HelpfulSocketErrors) - add_plugin(Aws::Plugins::RetryErrors) - add_plugin(Aws::Plugins::GlobalConfiguration) - add_plugin(Aws::Plugins::RegionalEndpoint) - add_plugin(Aws::Plugins::EndpointDiscovery) - add_plugin(Aws::Plugins::EndpointPattern) - add_plugin(Aws::Plugins::ResponsePaging) - add_plugin(Aws::Plugins::StubResponses) - add_plugin(Aws::Plugins::IdempotencyToken) - add_plugin(Aws::Plugins::InvocationId) - add_plugin(Aws::Plugins::JsonvalueConverter) - add_plugin(Aws::Plugins::ClientMetricsPlugin) - add_plugin(Aws::Plugins::ClientMetricsSendPlugin) - add_plugin(Aws::Plugins::TransferEncoding) - add_plugin(Aws::Plugins::HttpChecksum) - add_plugin(Aws::Plugins::ChecksumAlgorithm) - add_plugin(Aws::Plugins::RequestCompression) - add_plugin(Aws::Plugins::DefaultsMode) - add_plugin(Aws::Plugins::RecursionDetection) - add_plugin(Aws::Plugins::Telemetry) - add_plugin(Aws::Plugins::Sign) - add_plugin(Aws::Plugins::Protocols::RestJson) - add_plugin(Aws::IoT1ClickDevicesService::Plugins::Endpoints) - - # @overload initialize(options) - # @param [Hash] options - # - # @option options [Array] :plugins ([]]) - # A list of plugins to apply to the client. Each plugin is either a - # class name or an instance of a plugin class. - # - # @option options [required, Aws::CredentialProvider] :credentials - # Your AWS credentials. This can be an instance of any one of the - # following classes: - # - # * `Aws::Credentials` - Used for configuring static, non-refreshing - # credentials. - # - # * `Aws::SharedCredentials` - Used for loading static credentials from a - # shared file, such as `~/.aws/config`. - # - # * `Aws::AssumeRoleCredentials` - Used when you need to assume a role. - # - # * `Aws::AssumeRoleWebIdentityCredentials` - Used when you need to - # assume a role after providing credentials via the web. - # - # * `Aws::SSOCredentials` - Used for loading credentials from AWS SSO using an - # access token generated from `aws login`. - # - # * `Aws::ProcessCredentials` - Used for loading credentials from a - # process that outputs to stdout. - # - # * `Aws::InstanceProfileCredentials` - Used for loading credentials - # from an EC2 IMDS on an EC2 instance. - # - # * `Aws::ECSCredentials` - Used for loading credentials from - # instances running in ECS. - # - # * `Aws::CognitoIdentityCredentials` - Used for loading credentials - # from the Cognito Identity service. - # - # When `:credentials` are not configured directly, the following - # locations will be searched for credentials: - # - # * `Aws.config[:credentials]` - # * The `:access_key_id`, `:secret_access_key`, `:session_token`, and - # `:account_id` options. - # * ENV['AWS_ACCESS_KEY_ID'], ENV['AWS_SECRET_ACCESS_KEY'], - # ENV['AWS_SESSION_TOKEN'], and ENV['AWS_ACCOUNT_ID'] - # * `~/.aws/credentials` - # * `~/.aws/config` - # * EC2/ECS IMDS instance profile - When used by default, the timeouts - # are very aggressive. Construct and pass an instance of - # `Aws::InstanceProfileCredentials` or `Aws::ECSCredentials` to - # enable retries and extended timeouts. Instance profile credential - # fetching can be disabled by setting ENV['AWS_EC2_METADATA_DISABLED'] - # to true. - # - # @option options [required, String] :region - # The AWS region to connect to. The configured `:region` is - # used to determine the service `:endpoint`. When not passed, - # a default `:region` is searched for in the following locations: - # - # * `Aws.config[:region]` - # * `ENV['AWS_REGION']` - # * `ENV['AMAZON_REGION']` - # * `ENV['AWS_DEFAULT_REGION']` - # * `~/.aws/credentials` - # * `~/.aws/config` - # - # @option options [String] :access_key_id - # - # @option options [String] :account_id - # - # @option options [Boolean] :active_endpoint_cache (false) - # When set to `true`, a thread polling for endpoints will be running in - # the background every 60 secs (default). Defaults to `false`. - # - # @option options [Boolean] :adaptive_retry_wait_to_fill (true) - # Used only in `adaptive` retry mode. When true, the request will sleep - # until there is sufficent client side capacity to retry the request. - # When false, the request will raise a `RetryCapacityNotAvailableError` and will - # not retry instead of sleeping. - # - # @option options [Boolean] :client_side_monitoring (false) - # When `true`, client-side metrics will be collected for all API requests from - # this client. - # - # @option options [String] :client_side_monitoring_client_id ("") - # Allows you to provide an identifier for this client which will be attached to - # all generated client side metrics. Defaults to an empty string. - # - # @option options [String] :client_side_monitoring_host ("127.0.0.1") - # Allows you to specify the DNS hostname or IPv4 or IPv6 address that the client - # side monitoring agent is running on, where client metrics will be published via UDP. - # - # @option options [Integer] :client_side_monitoring_port (31000) - # Required for publishing client metrics. The port that the client side monitoring - # agent is running on, where client metrics will be published via UDP. - # - # @option options [Aws::ClientSideMonitoring::Publisher] :client_side_monitoring_publisher (Aws::ClientSideMonitoring::Publisher) - # Allows you to provide a custom client-side monitoring publisher class. By default, - # will use the Client Side Monitoring Agent Publisher. - # - # @option options [Boolean] :convert_params (true) - # When `true`, an attempt is made to coerce request parameters into - # the required types. - # - # @option options [Boolean] :correct_clock_skew (true) - # Used only in `standard` and adaptive retry modes. Specifies whether to apply - # a clock skew correction and retry requests with skewed client clocks. - # - # @option options [String] :defaults_mode ("legacy") - # See {Aws::DefaultsModeConfiguration} for a list of the - # accepted modes and the configuration defaults that are included. - # - # @option options [Boolean] :disable_host_prefix_injection (false) - # Set to true to disable SDK automatically adding host prefix - # to default service endpoint when available. - # - # @option options [Boolean] :disable_request_compression (false) - # When set to 'true' the request body will not be compressed - # for supported operations. - # - # @option options [String, URI::HTTPS, URI::HTTP] :endpoint - # Normally you should not configure the `:endpoint` option - # directly. This is normally constructed from the `:region` - # option. Configuring `:endpoint` is normally reserved for - # connecting to test or custom endpoints. The endpoint should - # be a URI formatted like: - # - # 'http://example.com' - # 'https://example.com' - # 'http://example.com:123' - # - # @option options [Integer] :endpoint_cache_max_entries (1000) - # Used for the maximum size limit of the LRU cache storing endpoints data - # for endpoint discovery enabled operations. Defaults to 1000. - # - # @option options [Integer] :endpoint_cache_max_threads (10) - # Used for the maximum threads in use for polling endpoints to be cached, defaults to 10. - # - # @option options [Integer] :endpoint_cache_poll_interval (60) - # When :endpoint_discovery and :active_endpoint_cache is enabled, - # Use this option to config the time interval in seconds for making - # requests fetching endpoints information. Defaults to 60 sec. - # - # @option options [Boolean] :endpoint_discovery (false) - # When set to `true`, endpoint discovery will be enabled for operations when available. - # - # @option options [Boolean] :ignore_configured_endpoint_urls - # Setting to true disables use of endpoint URLs provided via environment - # variables and the shared configuration file. - # - # @option options [Aws::Log::Formatter] :log_formatter (Aws::Log::Formatter.default) - # The log formatter. - # - # @option options [Symbol] :log_level (:info) - # The log level to send messages to the `:logger` at. - # - # @option options [Logger] :logger - # The Logger instance to send log messages to. If this option - # is not set, logging will be disabled. - # - # @option options [Integer] :max_attempts (3) - # An integer representing the maximum number attempts that will be made for - # a single request, including the initial attempt. For example, - # setting this value to 5 will result in a request being retried up to - # 4 times. Used in `standard` and `adaptive` retry modes. - # - # @option options [String] :profile ("default") - # Used when loading credentials from the shared credentials file - # at HOME/.aws/credentials. When not specified, 'default' is used. - # - # @option options [Integer] :request_min_compression_size_bytes (10240) - # The minimum size in bytes that triggers compression for request - # bodies. The value must be non-negative integer value between 0 - # and 10485780 bytes inclusive. - # - # @option options [Proc] :retry_backoff - # A proc or lambda used for backoff. Defaults to 2**retries * retry_base_delay. - # This option is only used in the `legacy` retry mode. - # - # @option options [Float] :retry_base_delay (0.3) - # The base delay in seconds used by the default backoff function. This option - # is only used in the `legacy` retry mode. - # - # @option options [Symbol] :retry_jitter (:none) - # A delay randomiser function used by the default backoff function. - # Some predefined functions can be referenced by name - :none, :equal, :full, - # otherwise a Proc that takes and returns a number. This option is only used - # in the `legacy` retry mode. - # - # @see https://www.awsarchitectureblog.com/2015/03/backoff.html - # - # @option options [Integer] :retry_limit (3) - # The maximum number of times to retry failed requests. Only - # ~ 500 level server errors and certain ~ 400 level client errors - # are retried. Generally, these are throttling errors, data - # checksum errors, networking errors, timeout errors, auth errors, - # endpoint discovery, and errors from expired credentials. - # This option is only used in the `legacy` retry mode. - # - # @option options [Integer] :retry_max_delay (0) - # The maximum number of seconds to delay between retries (0 for no limit) - # used by the default backoff function. This option is only used in the - # `legacy` retry mode. - # - # @option options [String] :retry_mode ("legacy") - # Specifies which retry algorithm to use. Values are: - # - # * `legacy` - The pre-existing retry behavior. This is default value if - # no retry mode is provided. - # - # * `standard` - A standardized set of retry rules across the AWS SDKs. - # This includes support for retry quotas, which limit the number of - # unsuccessful retries a client can make. - # - # * `adaptive` - An experimental retry mode that includes all the - # functionality of `standard` mode along with automatic client side - # throttling. This is a provisional mode that may change behavior - # in the future. - # - # @option options [String] :sdk_ua_app_id - # A unique and opaque application ID that is appended to the - # User-Agent header as app/sdk_ua_app_id. It should have a - # maximum length of 50. This variable is sourced from environment - # variable AWS_SDK_UA_APP_ID or the shared config profile attribute sdk_ua_app_id. - # - # @option options [String] :secret_access_key - # - # @option options [String] :session_token - # - # @option options [Array] :sigv4a_signing_region_set - # A list of regions that should be signed with SigV4a signing. When - # not passed, a default `:sigv4a_signing_region_set` is searched for - # in the following locations: - # - # * `Aws.config[:sigv4a_signing_region_set]` - # * `ENV['AWS_SIGV4A_SIGNING_REGION_SET']` - # * `~/.aws/config` - # - # @option options [Boolean] :stub_responses (false) - # Causes the client to return stubbed responses. By default - # fake responses are generated and returned. You can specify - # the response data to return or errors to raise by calling - # {ClientStubs#stub_responses}. See {ClientStubs} for more information. - # - # ** Please note ** When response stubbing is enabled, no HTTP - # requests are made, and retries are disabled. - # - # @option options [Aws::Telemetry::TelemetryProviderBase] :telemetry_provider (Aws::Telemetry::NoOpTelemetryProvider) - # Allows you to provide a telemetry provider, which is used to - # emit telemetry data. By default, uses `NoOpTelemetryProvider` which - # will not record or emit any telemetry data. The SDK supports the - # following telemetry providers: - # - # * OpenTelemetry (OTel) - To use the OTel provider, install and require the - # `opentelemetry-sdk` gem and then, pass in an instance of a - # `Aws::Telemetry::OTelProvider` for telemetry provider. - # - # @option options [Aws::TokenProvider] :token_provider - # A Bearer Token Provider. This can be an instance of any one of the - # following classes: - # - # * `Aws::StaticTokenProvider` - Used for configuring static, non-refreshing - # tokens. - # - # * `Aws::SSOTokenProvider` - Used for loading tokens from AWS SSO using an - # access token generated from `aws login`. - # - # When `:token_provider` is not configured directly, the `Aws::TokenProviderChain` - # will be used to search for tokens configured for your profile in shared configuration files. - # - # @option options [Boolean] :use_dualstack_endpoint - # When set to `true`, dualstack enabled endpoints (with `.aws` TLD) - # will be used if available. - # - # @option options [Boolean] :use_fips_endpoint - # When set to `true`, fips compatible endpoints will be used if available. - # When a `fips` region is used, the region is normalized and this config - # is set to `true`. - # - # @option options [Boolean] :validate_params (true) - # When `true`, request parameters are validated before - # sending the request. - # - # @option options [Aws::IoT1ClickDevicesService::EndpointProvider] :endpoint_provider - # The endpoint provider used to resolve endpoints. Any object that responds to - # `#resolve_endpoint(parameters)` where `parameters` is a Struct similar to - # `Aws::IoT1ClickDevicesService::EndpointParameters`. - # - # @option options [Float] :http_continue_timeout (1) - # The number of seconds to wait for a 100-continue response before sending the - # request body. This option has no effect unless the request has "Expect" - # header set to "100-continue". Defaults to `nil` which disables this - # behaviour. This value can safely be set per request on the session. - # - # @option options [Float] :http_idle_timeout (5) - # The number of seconds a connection is allowed to sit idle before it - # is considered stale. Stale connections are closed and removed from the - # pool before making a request. - # - # @option options [Float] :http_open_timeout (15) - # The default number of seconds to wait for response data. - # This value can safely be set per-request on the session. - # - # @option options [URI::HTTP,String] :http_proxy - # A proxy to send requests through. Formatted like 'http://proxy.com:123'. - # - # @option options [Float] :http_read_timeout (60) - # The default number of seconds to wait for response data. - # This value can safely be set per-request on the session. - # - # @option options [Boolean] :http_wire_trace (false) - # When `true`, HTTP debug output will be sent to the `:logger`. - # - # @option options [Proc] :on_chunk_received - # When a Proc object is provided, it will be used as callback when each chunk - # of the response body is received. It provides three arguments: the chunk, - # the number of bytes received, and the total number of - # bytes in the response (or nil if the server did not send a `content-length`). - # - # @option options [Proc] :on_chunk_sent - # When a Proc object is provided, it will be used as callback when each chunk - # of the request body is sent. It provides three arguments: the chunk, - # the number of bytes read from the body, and the total number of - # bytes in the body. - # - # @option options [Boolean] :raise_response_errors (true) - # When `true`, response errors are raised. - # - # @option options [String] :ssl_ca_bundle - # Full path to the SSL certificate authority bundle file that should be used when - # verifying peer certificates. If you do not pass `:ssl_ca_bundle` or - # `:ssl_ca_directory` the the system default will be used if available. - # - # @option options [String] :ssl_ca_directory - # Full path of the directory that contains the unbundled SSL certificate - # authority files for verifying peer certificates. If you do - # not pass `:ssl_ca_bundle` or `:ssl_ca_directory` the the system - # default will be used if available. - # - # @option options [String] :ssl_ca_store - # Sets the X509::Store to verify peer certificate. - # - # @option options [OpenSSL::X509::Certificate] :ssl_cert - # Sets a client certificate when creating http connections. - # - # @option options [OpenSSL::PKey] :ssl_key - # Sets a client key when creating http connections. - # - # @option options [Float] :ssl_timeout - # Sets the SSL timeout in seconds - # - # @option options [Boolean] :ssl_verify_peer (true) - # When `true`, SSL peer certificates are verified when establishing a connection. - # - def initialize(*args) - super - end - - # @!group API Operations - - # Adds device(s) to your account (i.e., claim one or more devices) if - # and only if you received a claim code with the device(s). - # - # @option params [required, String] :claim_code - # - # @return [Types::ClaimDevicesByClaimCodeResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods: - # - # * {Types::ClaimDevicesByClaimCodeResponse#claim_code #claim_code} => String - # * {Types::ClaimDevicesByClaimCodeResponse#total #total} => Integer - # - # @example Request syntax with placeholder values - # - # resp = client.claim_devices_by_claim_code({ - # claim_code: "__string", # required - # }) - # - # @example Response structure - # - # resp.claim_code #=> String - # resp.total #=> Integer - # - # @see http://docs.aws.amazon.com/goto/WebAPI/devices-2018-05-14/ClaimDevicesByClaimCode AWS API Documentation - # - # @overload claim_devices_by_claim_code(params = {}) - # @param [Hash] params ({}) - def claim_devices_by_claim_code(params = {}, options = {}) - req = build_request(:claim_devices_by_claim_code, params) - req.send_request(options) - end - - # Given a device ID, returns a DescribeDeviceResponse object describing - # the details of the device. - # - # @option params [required, String] :device_id - # - # @return [Types::DescribeDeviceResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods: - # - # * {Types::DescribeDeviceResponse#device_description #device_description} => Types::DeviceDescription - # - # @example Request syntax with placeholder values - # - # resp = client.describe_device({ - # device_id: "__string", # required - # }) - # - # @example Response structure - # - # resp.device_description.arn #=> String - # resp.device_description.attributes #=> Hash - # resp.device_description.attributes["__string"] #=> String - # resp.device_description.device_id #=> String - # resp.device_description.enabled #=> Boolean - # resp.device_description.remaining_life #=> Float - # resp.device_description.type #=> String - # resp.device_description.tags #=> Hash - # resp.device_description.tags["__string"] #=> String - # - # @see http://docs.aws.amazon.com/goto/WebAPI/devices-2018-05-14/DescribeDevice AWS API Documentation - # - # @overload describe_device(params = {}) - # @param [Hash] params ({}) - def describe_device(params = {}, options = {}) - req = build_request(:describe_device, params) - req.send_request(options) - end - - # Given a device ID, finalizes the claim request for the associated - # device. - # - # Claiming a device consists of initiating a claim, then publishing a - # device event, and finalizing the claim. For a device of type button, a - # device event can be published by simply clicking the device. - # - # - # - # @option params [required, String] :device_id - # - # @option params [Hash] :tags - # - # @return [Types::FinalizeDeviceClaimResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods: - # - # * {Types::FinalizeDeviceClaimResponse#state #state} => String - # - # @example Request syntax with placeholder values - # - # resp = client.finalize_device_claim({ - # device_id: "__string", # required - # tags: { - # "__string" => "__string", - # }, - # }) - # - # @example Response structure - # - # resp.state #=> String - # - # @see http://docs.aws.amazon.com/goto/WebAPI/devices-2018-05-14/FinalizeDeviceClaim AWS API Documentation - # - # @overload finalize_device_claim(params = {}) - # @param [Hash] params ({}) - def finalize_device_claim(params = {}, options = {}) - req = build_request(:finalize_device_claim, params) - req.send_request(options) - end - - # Given a device ID, returns the invokable methods associated with the - # device. - # - # @option params [required, String] :device_id - # - # @return [Types::GetDeviceMethodsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods: - # - # * {Types::GetDeviceMethodsResponse#device_methods #device_methods} => Array<Types::DeviceMethod> - # - # @example Request syntax with placeholder values - # - # resp = client.get_device_methods({ - # device_id: "__string", # required - # }) - # - # @example Response structure - # - # resp.device_methods #=> Array - # resp.device_methods[0].device_type #=> String - # resp.device_methods[0].method_name #=> String - # - # @see http://docs.aws.amazon.com/goto/WebAPI/devices-2018-05-14/GetDeviceMethods AWS API Documentation - # - # @overload get_device_methods(params = {}) - # @param [Hash] params ({}) - def get_device_methods(params = {}, options = {}) - req = build_request(:get_device_methods, params) - req.send_request(options) - end - - # Given a device ID, initiates a claim request for the associated - # device. - # - # Claiming a device consists of initiating a claim, then publishing a - # device event, and finalizing the claim. For a device of type button, a - # device event can be published by simply clicking the device. - # - # - # - # @option params [required, String] :device_id - # - # @return [Types::InitiateDeviceClaimResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods: - # - # * {Types::InitiateDeviceClaimResponse#state #state} => String - # - # @example Request syntax with placeholder values - # - # resp = client.initiate_device_claim({ - # device_id: "__string", # required - # }) - # - # @example Response structure - # - # resp.state #=> String - # - # @see http://docs.aws.amazon.com/goto/WebAPI/devices-2018-05-14/InitiateDeviceClaim AWS API Documentation - # - # @overload initiate_device_claim(params = {}) - # @param [Hash] params ({}) - def initiate_device_claim(params = {}, options = {}) - req = build_request(:initiate_device_claim, params) - req.send_request(options) - end - - # Given a device ID, issues a request to invoke a named device method - # (with possible parameters). See the "Example POST" code snippet - # below. - # - # @option params [required, String] :device_id - # - # @option params [Types::DeviceMethod] :device_method - # The device method to invoke. - # - # @option params [String] :device_method_parameters - # A JSON encoded string containing the device method request parameters. - # - # @return [Types::InvokeDeviceMethodResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods: - # - # * {Types::InvokeDeviceMethodResponse#device_method_response #device_method_response} => String - # - # @example Request syntax with placeholder values - # - # resp = client.invoke_device_method({ - # device_id: "__string", # required - # device_method: { - # device_type: "__string", - # method_name: "__string", - # }, - # device_method_parameters: "__string", - # }) - # - # @example Response structure - # - # resp.device_method_response #=> String - # - # @see http://docs.aws.amazon.com/goto/WebAPI/devices-2018-05-14/InvokeDeviceMethod AWS API Documentation - # - # @overload invoke_device_method(params = {}) - # @param [Hash] params ({}) - def invoke_device_method(params = {}, options = {}) - req = build_request(:invoke_device_method, params) - req.send_request(options) - end - - # Using a device ID, returns a DeviceEventsResponse object containing an - # array of events for the device. - # - # @option params [required, String] :device_id - # - # @option params [required, Time,DateTime,Date,Integer,String] :from_time_stamp - # - # @option params [Integer] :max_results - # - # @option params [String] :next_token - # - # @option params [required, Time,DateTime,Date,Integer,String] :to_time_stamp - # - # @return [Types::ListDeviceEventsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods: - # - # * {Types::ListDeviceEventsResponse#events #events} => Array<Types::DeviceEvent> - # * {Types::ListDeviceEventsResponse#next_token #next_token} => String - # - # @example Request syntax with placeholder values - # - # resp = client.list_device_events({ - # device_id: "__string", # required - # from_time_stamp: Time.now, # required - # max_results: 1, - # next_token: "__string", - # to_time_stamp: Time.now, # required - # }) - # - # @example Response structure - # - # resp.events #=> Array - # resp.events[0].device.device_id #=> String - # resp.events[0].device.type #=> String - # resp.events[0].std_event #=> String - # resp.next_token #=> String - # - # @see http://docs.aws.amazon.com/goto/WebAPI/devices-2018-05-14/ListDeviceEvents AWS API Documentation - # - # @overload list_device_events(params = {}) - # @param [Hash] params ({}) - def list_device_events(params = {}, options = {}) - req = build_request(:list_device_events, params) - req.send_request(options) - end - - # Lists the 1-Click compatible devices associated with your AWS account. - # - # @option params [String] :device_type - # - # @option params [Integer] :max_results - # - # @option params [String] :next_token - # - # @return [Types::ListDevicesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods: - # - # * {Types::ListDevicesResponse#devices #devices} => Array<Types::DeviceDescription> - # * {Types::ListDevicesResponse#next_token #next_token} => String - # - # @example Request syntax with placeholder values - # - # resp = client.list_devices({ - # device_type: "__string", - # max_results: 1, - # next_token: "__string", - # }) - # - # @example Response structure - # - # resp.devices #=> Array - # resp.devices[0].arn #=> String - # resp.devices[0].attributes #=> Hash - # resp.devices[0].attributes["__string"] #=> String - # resp.devices[0].device_id #=> String - # resp.devices[0].enabled #=> Boolean - # resp.devices[0].remaining_life #=> Float - # resp.devices[0].type #=> String - # resp.devices[0].tags #=> Hash - # resp.devices[0].tags["__string"] #=> String - # resp.next_token #=> String - # - # @see http://docs.aws.amazon.com/goto/WebAPI/devices-2018-05-14/ListDevices AWS API Documentation - # - # @overload list_devices(params = {}) - # @param [Hash] params ({}) - def list_devices(params = {}, options = {}) - req = build_request(:list_devices, params) - req.send_request(options) - end - - # Lists the tags associated with the specified resource ARN. - # - # @option params [required, String] :resource_arn - # - # @return [Types::ListTagsForResourceResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods: - # - # * {Types::ListTagsForResourceResponse#tags #tags} => Hash<String,String> - # - # @example Request syntax with placeholder values - # - # resp = client.list_tags_for_resource({ - # resource_arn: "__string", # required - # }) - # - # @example Response structure - # - # resp.tags #=> Hash - # resp.tags["__string"] #=> String - # - # @see http://docs.aws.amazon.com/goto/WebAPI/devices-2018-05-14/ListTagsForResource AWS API Documentation - # - # @overload list_tags_for_resource(params = {}) - # @param [Hash] params ({}) - def list_tags_for_resource(params = {}, options = {}) - req = build_request(:list_tags_for_resource, params) - req.send_request(options) - end - - # Adds or updates the tags associated with the resource ARN. See [AWS - # IoT 1-Click Service Limits][1] for the maximum number of tags allowed - # per resource. - # - # - # - # [1]: https://docs.aws.amazon.com/iot-1-click/latest/developerguide/1click-appendix.html#1click-limits - # - # @option params [required, String] :resource_arn - # - # @option params [required, Hash] :tags - # - # @return [Struct] Returns an empty {Seahorse::Client::Response response}. - # - # @example Request syntax with placeholder values - # - # resp = client.tag_resource({ - # resource_arn: "__string", # required - # tags: { # required - # "__string" => "__string", - # }, - # }) - # - # @see http://docs.aws.amazon.com/goto/WebAPI/devices-2018-05-14/TagResource AWS API Documentation - # - # @overload tag_resource(params = {}) - # @param [Hash] params ({}) - def tag_resource(params = {}, options = {}) - req = build_request(:tag_resource, params) - req.send_request(options) - end - - # Disassociates a device from your AWS account using its device ID. - # - # @option params [required, String] :device_id - # - # @return [Types::UnclaimDeviceResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods: - # - # * {Types::UnclaimDeviceResponse#state #state} => String - # - # @example Request syntax with placeholder values - # - # resp = client.unclaim_device({ - # device_id: "__string", # required - # }) - # - # @example Response structure - # - # resp.state #=> String - # - # @see http://docs.aws.amazon.com/goto/WebAPI/devices-2018-05-14/UnclaimDevice AWS API Documentation - # - # @overload unclaim_device(params = {}) - # @param [Hash] params ({}) - def unclaim_device(params = {}, options = {}) - req = build_request(:unclaim_device, params) - req.send_request(options) - end - - # Using tag keys, deletes the tags (key/value pairs) associated with the - # specified resource ARN. - # - # @option params [required, String] :resource_arn - # - # @option params [required, Array] :tag_keys - # - # @return [Struct] Returns an empty {Seahorse::Client::Response response}. - # - # @example Request syntax with placeholder values - # - # resp = client.untag_resource({ - # resource_arn: "__string", # required - # tag_keys: ["__string"], # required - # }) - # - # @see http://docs.aws.amazon.com/goto/WebAPI/devices-2018-05-14/UntagResource AWS API Documentation - # - # @overload untag_resource(params = {}) - # @param [Hash] params ({}) - def untag_resource(params = {}, options = {}) - req = build_request(:untag_resource, params) - req.send_request(options) - end - - # Using a Boolean value (true or false), this operation enables or - # disables the device given a device ID. - # - # @option params [required, String] :device_id - # - # @option params [Boolean] :enabled - # If true, the device is enabled. If false, the device is disabled. - # - # @return [Struct] Returns an empty {Seahorse::Client::Response response}. - # - # @example Request syntax with placeholder values - # - # resp = client.update_device_state({ - # device_id: "__string", # required - # enabled: false, - # }) - # - # @see http://docs.aws.amazon.com/goto/WebAPI/devices-2018-05-14/UpdateDeviceState AWS API Documentation - # - # @overload update_device_state(params = {}) - # @param [Hash] params ({}) - def update_device_state(params = {}, options = {}) - req = build_request(:update_device_state, params) - req.send_request(options) - end - - # @!endgroup - - # @param params ({}) - # @api private - def build_request(operation_name, params = {}) - handlers = @handlers.for(operation_name) - tracer = config.telemetry_provider.tracer_provider.tracer( - Aws::Telemetry.module_to_tracer_name('Aws::IoT1ClickDevicesService') - ) - context = Seahorse::Client::RequestContext.new( - operation_name: operation_name, - operation: config.api.operation(operation_name), - client: self, - params: params, - config: config, - tracer: tracer - ) - context[:gem_name] = 'aws-sdk-iot1clickdevicesservice' - context[:gem_version] = '1.62.0' - Seahorse::Client::Request.new(handlers, context) - end - - # @api private - # @deprecated - def waiter_names - [] - end - - class << self - - # @api private - attr_reader :identifier - - # @api private - def errors_module - Errors - end - - end - end -end diff --git a/gems/aws-sdk-iot1clickdevicesservice/lib/aws-sdk-iot1clickdevicesservice/client_api.rb b/gems/aws-sdk-iot1clickdevicesservice/lib/aws-sdk-iot1clickdevicesservice/client_api.rb deleted file mode 100644 index b1ccbaf61c6..00000000000 --- a/gems/aws-sdk-iot1clickdevicesservice/lib/aws-sdk-iot1clickdevicesservice/client_api.rb +++ /dev/null @@ -1,403 +0,0 @@ -# frozen_string_literal: true - -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - - -module Aws::IoT1ClickDevicesService - # @api private - module ClientApi - - include Seahorse::Model - - Attributes = Shapes::StructureShape.new(name: 'Attributes') - ClaimDevicesByClaimCodeRequest = Shapes::StructureShape.new(name: 'ClaimDevicesByClaimCodeRequest') - ClaimDevicesByClaimCodeResponse = Shapes::StructureShape.new(name: 'ClaimDevicesByClaimCodeResponse') - DescribeDeviceRequest = Shapes::StructureShape.new(name: 'DescribeDeviceRequest') - DescribeDeviceResponse = Shapes::StructureShape.new(name: 'DescribeDeviceResponse') - Device = Shapes::StructureShape.new(name: 'Device') - DeviceAttributes = Shapes::MapShape.new(name: 'DeviceAttributes') - DeviceClaimResponse = Shapes::StructureShape.new(name: 'DeviceClaimResponse') - DeviceDescription = Shapes::StructureShape.new(name: 'DeviceDescription') - DeviceEvent = Shapes::StructureShape.new(name: 'DeviceEvent') - DeviceEventsResponse = Shapes::StructureShape.new(name: 'DeviceEventsResponse') - DeviceMethod = Shapes::StructureShape.new(name: 'DeviceMethod') - Empty = Shapes::StructureShape.new(name: 'Empty') - FinalizeDeviceClaimRequest = Shapes::StructureShape.new(name: 'FinalizeDeviceClaimRequest') - FinalizeDeviceClaimResponse = Shapes::StructureShape.new(name: 'FinalizeDeviceClaimResponse') - ForbiddenException = Shapes::StructureShape.new(name: 'ForbiddenException') - GetDeviceMethodsRequest = Shapes::StructureShape.new(name: 'GetDeviceMethodsRequest') - GetDeviceMethodsResponse = Shapes::StructureShape.new(name: 'GetDeviceMethodsResponse') - InitiateDeviceClaimRequest = Shapes::StructureShape.new(name: 'InitiateDeviceClaimRequest') - InitiateDeviceClaimResponse = Shapes::StructureShape.new(name: 'InitiateDeviceClaimResponse') - InternalFailureException = Shapes::StructureShape.new(name: 'InternalFailureException') - InvalidRequestException = Shapes::StructureShape.new(name: 'InvalidRequestException') - InvokeDeviceMethodRequest = Shapes::StructureShape.new(name: 'InvokeDeviceMethodRequest') - InvokeDeviceMethodResponse = Shapes::StructureShape.new(name: 'InvokeDeviceMethodResponse') - ListDeviceEventsRequest = Shapes::StructureShape.new(name: 'ListDeviceEventsRequest') - ListDeviceEventsResponse = Shapes::StructureShape.new(name: 'ListDeviceEventsResponse') - ListDevicesRequest = Shapes::StructureShape.new(name: 'ListDevicesRequest') - ListDevicesResponse = Shapes::StructureShape.new(name: 'ListDevicesResponse') - ListTagsForResourceRequest = Shapes::StructureShape.new(name: 'ListTagsForResourceRequest') - ListTagsForResourceResponse = Shapes::StructureShape.new(name: 'ListTagsForResourceResponse') - MaxResults = Shapes::IntegerShape.new(name: 'MaxResults') - PreconditionFailedException = Shapes::StructureShape.new(name: 'PreconditionFailedException') - RangeNotSatisfiableException = Shapes::StructureShape.new(name: 'RangeNotSatisfiableException') - ResourceConflictException = Shapes::StructureShape.new(name: 'ResourceConflictException') - ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException') - TagResourceRequest = Shapes::StructureShape.new(name: 'TagResourceRequest') - UnclaimDeviceRequest = Shapes::StructureShape.new(name: 'UnclaimDeviceRequest') - UnclaimDeviceResponse = Shapes::StructureShape.new(name: 'UnclaimDeviceResponse') - UntagResourceRequest = Shapes::StructureShape.new(name: 'UntagResourceRequest') - UpdateDeviceStateRequest = Shapes::StructureShape.new(name: 'UpdateDeviceStateRequest') - UpdateDeviceStateResponse = Shapes::StructureShape.new(name: 'UpdateDeviceStateResponse') - __boolean = Shapes::BooleanShape.new(name: '__boolean') - __double = Shapes::FloatShape.new(name: '__double') - __doubleMin0Max100 = Shapes::FloatShape.new(name: '__doubleMin0Max100') - __integer = Shapes::IntegerShape.new(name: '__integer') - __listOfDeviceDescription = Shapes::ListShape.new(name: '__listOfDeviceDescription') - __listOfDeviceEvent = Shapes::ListShape.new(name: '__listOfDeviceEvent') - __listOfDeviceMethod = Shapes::ListShape.new(name: '__listOfDeviceMethod') - __listOf__string = Shapes::ListShape.new(name: '__listOf__string') - __long = Shapes::IntegerShape.new(name: '__long') - __mapOf__string = Shapes::MapShape.new(name: '__mapOf__string') - __string = Shapes::StringShape.new(name: '__string') - __stringMin12Max40 = Shapes::StringShape.new(name: '__stringMin12Max40') - __timestampIso8601 = Shapes::TimestampShape.new(name: '__timestampIso8601', timestampFormat: "iso8601") - __timestampUnix = Shapes::TimestampShape.new(name: '__timestampUnix', timestampFormat: "unixTimestamp") - - Attributes.struct_class = Types::Attributes - - ClaimDevicesByClaimCodeRequest.add_member(:claim_code, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "claimCode")) - ClaimDevicesByClaimCodeRequest.struct_class = Types::ClaimDevicesByClaimCodeRequest - - ClaimDevicesByClaimCodeResponse.add_member(:claim_code, Shapes::ShapeRef.new(shape: __stringMin12Max40, location_name: "claimCode")) - ClaimDevicesByClaimCodeResponse.add_member(:total, Shapes::ShapeRef.new(shape: __integer, location_name: "total")) - ClaimDevicesByClaimCodeResponse.struct_class = Types::ClaimDevicesByClaimCodeResponse - - DescribeDeviceRequest.add_member(:device_id, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "deviceId")) - DescribeDeviceRequest.struct_class = Types::DescribeDeviceRequest - - DescribeDeviceResponse.add_member(:device_description, Shapes::ShapeRef.new(shape: DeviceDescription, location_name: "deviceDescription")) - DescribeDeviceResponse.struct_class = Types::DescribeDeviceResponse - - Device.add_member(:attributes, Shapes::ShapeRef.new(shape: Attributes, location_name: "attributes")) - Device.add_member(:device_id, Shapes::ShapeRef.new(shape: __string, location_name: "deviceId")) - Device.add_member(:type, Shapes::ShapeRef.new(shape: __string, location_name: "type")) - Device.struct_class = Types::Device - - DeviceAttributes.key = Shapes::ShapeRef.new(shape: __string) - DeviceAttributes.value = Shapes::ShapeRef.new(shape: __string) - - DeviceClaimResponse.add_member(:state, Shapes::ShapeRef.new(shape: __string, location_name: "state")) - DeviceClaimResponse.struct_class = Types::DeviceClaimResponse - - DeviceDescription.add_member(:arn, Shapes::ShapeRef.new(shape: __string, location_name: "arn")) - DeviceDescription.add_member(:attributes, Shapes::ShapeRef.new(shape: DeviceAttributes, location_name: "attributes")) - DeviceDescription.add_member(:device_id, Shapes::ShapeRef.new(shape: __string, location_name: "deviceId")) - DeviceDescription.add_member(:enabled, Shapes::ShapeRef.new(shape: __boolean, location_name: "enabled")) - DeviceDescription.add_member(:remaining_life, Shapes::ShapeRef.new(shape: __doubleMin0Max100, location_name: "remainingLife")) - DeviceDescription.add_member(:type, Shapes::ShapeRef.new(shape: __string, location_name: "type")) - DeviceDescription.add_member(:tags, Shapes::ShapeRef.new(shape: __mapOf__string, location_name: "tags")) - DeviceDescription.struct_class = Types::DeviceDescription - - DeviceEvent.add_member(:device, Shapes::ShapeRef.new(shape: Device, location_name: "device")) - DeviceEvent.add_member(:std_event, Shapes::ShapeRef.new(shape: __string, location_name: "stdEvent")) - DeviceEvent.struct_class = Types::DeviceEvent - - DeviceEventsResponse.add_member(:events, Shapes::ShapeRef.new(shape: __listOfDeviceEvent, location_name: "events")) - DeviceEventsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: __string, location_name: "nextToken")) - DeviceEventsResponse.struct_class = Types::DeviceEventsResponse - - DeviceMethod.add_member(:device_type, Shapes::ShapeRef.new(shape: __string, location_name: "deviceType")) - DeviceMethod.add_member(:method_name, Shapes::ShapeRef.new(shape: __string, location_name: "methodName")) - DeviceMethod.struct_class = Types::DeviceMethod - - Empty.struct_class = Types::Empty - - FinalizeDeviceClaimRequest.add_member(:device_id, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "deviceId")) - FinalizeDeviceClaimRequest.add_member(:tags, Shapes::ShapeRef.new(shape: __mapOf__string, location_name: "tags")) - FinalizeDeviceClaimRequest.struct_class = Types::FinalizeDeviceClaimRequest - - FinalizeDeviceClaimResponse.add_member(:state, Shapes::ShapeRef.new(shape: __string, location_name: "state")) - FinalizeDeviceClaimResponse.struct_class = Types::FinalizeDeviceClaimResponse - - ForbiddenException.add_member(:code, Shapes::ShapeRef.new(shape: __string, location_name: "code")) - ForbiddenException.add_member(:message, Shapes::ShapeRef.new(shape: __string, location_name: "message")) - ForbiddenException.struct_class = Types::ForbiddenException - - GetDeviceMethodsRequest.add_member(:device_id, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "deviceId")) - GetDeviceMethodsRequest.struct_class = Types::GetDeviceMethodsRequest - - GetDeviceMethodsResponse.add_member(:device_methods, Shapes::ShapeRef.new(shape: __listOfDeviceMethod, location_name: "deviceMethods")) - GetDeviceMethodsResponse.struct_class = Types::GetDeviceMethodsResponse - - InitiateDeviceClaimRequest.add_member(:device_id, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "deviceId")) - InitiateDeviceClaimRequest.struct_class = Types::InitiateDeviceClaimRequest - - InitiateDeviceClaimResponse.add_member(:state, Shapes::ShapeRef.new(shape: __string, location_name: "state")) - InitiateDeviceClaimResponse.struct_class = Types::InitiateDeviceClaimResponse - - InternalFailureException.add_member(:code, Shapes::ShapeRef.new(shape: __string, location_name: "code")) - InternalFailureException.add_member(:message, Shapes::ShapeRef.new(shape: __string, location_name: "message")) - InternalFailureException.struct_class = Types::InternalFailureException - - InvalidRequestException.add_member(:code, Shapes::ShapeRef.new(shape: __string, location_name: "code")) - InvalidRequestException.add_member(:message, Shapes::ShapeRef.new(shape: __string, location_name: "message")) - InvalidRequestException.struct_class = Types::InvalidRequestException - - InvokeDeviceMethodRequest.add_member(:device_id, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "deviceId")) - InvokeDeviceMethodRequest.add_member(:device_method, Shapes::ShapeRef.new(shape: DeviceMethod, location_name: "deviceMethod")) - InvokeDeviceMethodRequest.add_member(:device_method_parameters, Shapes::ShapeRef.new(shape: __string, location_name: "deviceMethodParameters")) - InvokeDeviceMethodRequest.struct_class = Types::InvokeDeviceMethodRequest - - InvokeDeviceMethodResponse.add_member(:device_method_response, Shapes::ShapeRef.new(shape: __string, location_name: "deviceMethodResponse")) - InvokeDeviceMethodResponse.struct_class = Types::InvokeDeviceMethodResponse - - ListDeviceEventsRequest.add_member(:device_id, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "deviceId")) - ListDeviceEventsRequest.add_member(:from_time_stamp, Shapes::ShapeRef.new(shape: __timestampIso8601, required: true, location: "querystring", location_name: "fromTimeStamp")) - ListDeviceEventsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location: "querystring", location_name: "maxResults")) - ListDeviceEventsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: __string, location: "querystring", location_name: "nextToken")) - ListDeviceEventsRequest.add_member(:to_time_stamp, Shapes::ShapeRef.new(shape: __timestampIso8601, required: true, location: "querystring", location_name: "toTimeStamp")) - ListDeviceEventsRequest.struct_class = Types::ListDeviceEventsRequest - - ListDeviceEventsResponse.add_member(:events, Shapes::ShapeRef.new(shape: __listOfDeviceEvent, location_name: "events")) - ListDeviceEventsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: __string, location_name: "nextToken")) - ListDeviceEventsResponse.struct_class = Types::ListDeviceEventsResponse - - ListDevicesRequest.add_member(:device_type, Shapes::ShapeRef.new(shape: __string, location: "querystring", location_name: "deviceType")) - ListDevicesRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location: "querystring", location_name: "maxResults")) - ListDevicesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: __string, location: "querystring", location_name: "nextToken")) - ListDevicesRequest.struct_class = Types::ListDevicesRequest - - ListDevicesResponse.add_member(:devices, Shapes::ShapeRef.new(shape: __listOfDeviceDescription, location_name: "devices")) - ListDevicesResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: __string, location_name: "nextToken")) - ListDevicesResponse.struct_class = Types::ListDevicesResponse - - ListTagsForResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "resource-arn")) - ListTagsForResourceRequest.struct_class = Types::ListTagsForResourceRequest - - ListTagsForResourceResponse.add_member(:tags, Shapes::ShapeRef.new(shape: __mapOf__string, location_name: "tags")) - ListTagsForResourceResponse.struct_class = Types::ListTagsForResourceResponse - - PreconditionFailedException.add_member(:code, Shapes::ShapeRef.new(shape: __string, location_name: "code")) - PreconditionFailedException.add_member(:message, Shapes::ShapeRef.new(shape: __string, location_name: "message")) - PreconditionFailedException.struct_class = Types::PreconditionFailedException - - RangeNotSatisfiableException.add_member(:code, Shapes::ShapeRef.new(shape: __string, location_name: "code")) - RangeNotSatisfiableException.add_member(:message, Shapes::ShapeRef.new(shape: __string, location_name: "message")) - RangeNotSatisfiableException.struct_class = Types::RangeNotSatisfiableException - - ResourceConflictException.add_member(:code, Shapes::ShapeRef.new(shape: __string, location_name: "code")) - ResourceConflictException.add_member(:message, Shapes::ShapeRef.new(shape: __string, location_name: "message")) - ResourceConflictException.struct_class = Types::ResourceConflictException - - ResourceNotFoundException.add_member(:code, Shapes::ShapeRef.new(shape: __string, location_name: "code")) - ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: __string, location_name: "message")) - ResourceNotFoundException.struct_class = Types::ResourceNotFoundException - - TagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "resource-arn")) - TagResourceRequest.add_member(:tags, Shapes::ShapeRef.new(shape: __mapOf__string, required: true, location_name: "tags")) - TagResourceRequest.struct_class = Types::TagResourceRequest - - UnclaimDeviceRequest.add_member(:device_id, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "deviceId")) - UnclaimDeviceRequest.struct_class = Types::UnclaimDeviceRequest - - UnclaimDeviceResponse.add_member(:state, Shapes::ShapeRef.new(shape: __string, location_name: "state")) - UnclaimDeviceResponse.struct_class = Types::UnclaimDeviceResponse - - UntagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "resource-arn")) - UntagResourceRequest.add_member(:tag_keys, Shapes::ShapeRef.new(shape: __listOf__string, required: true, location: "querystring", location_name: "tagKeys")) - UntagResourceRequest.struct_class = Types::UntagResourceRequest - - UpdateDeviceStateRequest.add_member(:device_id, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "deviceId")) - UpdateDeviceStateRequest.add_member(:enabled, Shapes::ShapeRef.new(shape: __boolean, location_name: "enabled")) - UpdateDeviceStateRequest.struct_class = Types::UpdateDeviceStateRequest - - UpdateDeviceStateResponse.struct_class = Types::UpdateDeviceStateResponse - - __listOfDeviceDescription.member = Shapes::ShapeRef.new(shape: DeviceDescription) - - __listOfDeviceEvent.member = Shapes::ShapeRef.new(shape: DeviceEvent) - - __listOfDeviceMethod.member = Shapes::ShapeRef.new(shape: DeviceMethod) - - __listOf__string.member = Shapes::ShapeRef.new(shape: __string) - - __mapOf__string.key = Shapes::ShapeRef.new(shape: __string) - __mapOf__string.value = Shapes::ShapeRef.new(shape: __string) - - - # @api private - API = Seahorse::Model::Api.new.tap do |api| - - api.version = "2018-05-14" - - api.metadata = { - "apiVersion" => "2018-05-14", - "endpointPrefix" => "devices.iot1click", - "jsonVersion" => "1.1", - "protocol" => "rest-json", - "serviceFullName" => "AWS IoT 1-Click Devices Service", - "serviceId" => "IoT 1Click Devices Service", - "signatureVersion" => "v4", - "signingName" => "iot1click", - "uid" => "devices-2018-05-14", - } - - api.add_operation(:claim_devices_by_claim_code, Seahorse::Model::Operation.new.tap do |o| - o.name = "ClaimDevicesByClaimCode" - o.http_method = "PUT" - o.http_request_uri = "/claims/{claimCode}" - o.input = Shapes::ShapeRef.new(shape: ClaimDevicesByClaimCodeRequest) - o.output = Shapes::ShapeRef.new(shape: ClaimDevicesByClaimCodeResponse) - o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException) - o.errors << Shapes::ShapeRef.new(shape: InternalFailureException) - o.errors << Shapes::ShapeRef.new(shape: ForbiddenException) - end) - - api.add_operation(:describe_device, Seahorse::Model::Operation.new.tap do |o| - o.name = "DescribeDevice" - o.http_method = "GET" - o.http_request_uri = "/devices/{deviceId}" - o.input = Shapes::ShapeRef.new(shape: DescribeDeviceRequest) - o.output = Shapes::ShapeRef.new(shape: DescribeDeviceResponse) - o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException) - o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException) - o.errors << Shapes::ShapeRef.new(shape: InternalFailureException) - end) - - api.add_operation(:finalize_device_claim, Seahorse::Model::Operation.new.tap do |o| - o.name = "FinalizeDeviceClaim" - o.http_method = "PUT" - o.http_request_uri = "/devices/{deviceId}/finalize-claim" - o.input = Shapes::ShapeRef.new(shape: FinalizeDeviceClaimRequest) - o.output = Shapes::ShapeRef.new(shape: FinalizeDeviceClaimResponse) - o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException) - o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException) - o.errors << Shapes::ShapeRef.new(shape: InternalFailureException) - o.errors << Shapes::ShapeRef.new(shape: PreconditionFailedException) - o.errors << Shapes::ShapeRef.new(shape: ResourceConflictException) - end) - - api.add_operation(:get_device_methods, Seahorse::Model::Operation.new.tap do |o| - o.name = "GetDeviceMethods" - o.http_method = "GET" - o.http_request_uri = "/devices/{deviceId}/methods" - o.input = Shapes::ShapeRef.new(shape: GetDeviceMethodsRequest) - o.output = Shapes::ShapeRef.new(shape: GetDeviceMethodsResponse) - o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException) - o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException) - o.errors << Shapes::ShapeRef.new(shape: InternalFailureException) - end) - - api.add_operation(:initiate_device_claim, Seahorse::Model::Operation.new.tap do |o| - o.name = "InitiateDeviceClaim" - o.http_method = "PUT" - o.http_request_uri = "/devices/{deviceId}/initiate-claim" - o.input = Shapes::ShapeRef.new(shape: InitiateDeviceClaimRequest) - o.output = Shapes::ShapeRef.new(shape: InitiateDeviceClaimResponse) - o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException) - o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException) - o.errors << Shapes::ShapeRef.new(shape: InternalFailureException) - o.errors << Shapes::ShapeRef.new(shape: ResourceConflictException) - end) - - api.add_operation(:invoke_device_method, Seahorse::Model::Operation.new.tap do |o| - o.name = "InvokeDeviceMethod" - o.http_method = "POST" - o.http_request_uri = "/devices/{deviceId}/methods" - o.input = Shapes::ShapeRef.new(shape: InvokeDeviceMethodRequest) - o.output = Shapes::ShapeRef.new(shape: InvokeDeviceMethodResponse) - o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException) - o.errors << Shapes::ShapeRef.new(shape: PreconditionFailedException) - o.errors << Shapes::ShapeRef.new(shape: InternalFailureException) - o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException) - o.errors << Shapes::ShapeRef.new(shape: RangeNotSatisfiableException) - o.errors << Shapes::ShapeRef.new(shape: ResourceConflictException) - end) - - api.add_operation(:list_device_events, Seahorse::Model::Operation.new.tap do |o| - o.name = "ListDeviceEvents" - o.http_method = "GET" - o.http_request_uri = "/devices/{deviceId}/events" - o.input = Shapes::ShapeRef.new(shape: ListDeviceEventsRequest) - o.output = Shapes::ShapeRef.new(shape: ListDeviceEventsResponse) - o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException) - o.errors << Shapes::ShapeRef.new(shape: RangeNotSatisfiableException) - o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException) - o.errors << Shapes::ShapeRef.new(shape: InternalFailureException) - end) - - api.add_operation(:list_devices, Seahorse::Model::Operation.new.tap do |o| - o.name = "ListDevices" - o.http_method = "GET" - o.http_request_uri = "/devices" - o.input = Shapes::ShapeRef.new(shape: ListDevicesRequest) - o.output = Shapes::ShapeRef.new(shape: ListDevicesResponse) - o.errors << Shapes::ShapeRef.new(shape: RangeNotSatisfiableException) - o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException) - o.errors << Shapes::ShapeRef.new(shape: InternalFailureException) - end) - - api.add_operation(:list_tags_for_resource, Seahorse::Model::Operation.new.tap do |o| - o.name = "ListTagsForResource" - o.http_method = "GET" - o.http_request_uri = "/tags/{resource-arn}" - o.input = Shapes::ShapeRef.new(shape: ListTagsForResourceRequest) - o.output = Shapes::ShapeRef.new(shape: ListTagsForResourceResponse) - o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException) - o.errors << Shapes::ShapeRef.new(shape: InternalFailureException) - end) - - api.add_operation(:tag_resource, Seahorse::Model::Operation.new.tap do |o| - o.name = "TagResource" - o.http_method = "POST" - o.http_request_uri = "/tags/{resource-arn}" - o.input = Shapes::ShapeRef.new(shape: TagResourceRequest) - o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure)) - o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException) - o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException) - o.errors << Shapes::ShapeRef.new(shape: InternalFailureException) - end) - - api.add_operation(:unclaim_device, Seahorse::Model::Operation.new.tap do |o| - o.name = "UnclaimDevice" - o.http_method = "PUT" - o.http_request_uri = "/devices/{deviceId}/unclaim" - o.input = Shapes::ShapeRef.new(shape: UnclaimDeviceRequest) - o.output = Shapes::ShapeRef.new(shape: UnclaimDeviceResponse) - o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException) - o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException) - o.errors << Shapes::ShapeRef.new(shape: InternalFailureException) - end) - - api.add_operation(:untag_resource, Seahorse::Model::Operation.new.tap do |o| - o.name = "UntagResource" - o.http_method = "DELETE" - o.http_request_uri = "/tags/{resource-arn}" - o.input = Shapes::ShapeRef.new(shape: UntagResourceRequest) - o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure)) - o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException) - o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException) - o.errors << Shapes::ShapeRef.new(shape: InternalFailureException) - end) - - api.add_operation(:update_device_state, Seahorse::Model::Operation.new.tap do |o| - o.name = "UpdateDeviceState" - o.http_method = "PUT" - o.http_request_uri = "/devices/{deviceId}/state" - o.input = Shapes::ShapeRef.new(shape: UpdateDeviceStateRequest) - o.output = Shapes::ShapeRef.new(shape: UpdateDeviceStateResponse) - o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException) - o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException) - o.errors << Shapes::ShapeRef.new(shape: InternalFailureException) - end) - end - - end -end diff --git a/gems/aws-sdk-iot1clickdevicesservice/lib/aws-sdk-iot1clickdevicesservice/customizations.rb b/gems/aws-sdk-iot1clickdevicesservice/lib/aws-sdk-iot1clickdevicesservice/customizations.rb deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/gems/aws-sdk-iot1clickdevicesservice/lib/aws-sdk-iot1clickdevicesservice/endpoint_parameters.rb b/gems/aws-sdk-iot1clickdevicesservice/lib/aws-sdk-iot1clickdevicesservice/endpoint_parameters.rb deleted file mode 100644 index 9faab7dffa4..00000000000 --- a/gems/aws-sdk-iot1clickdevicesservice/lib/aws-sdk-iot1clickdevicesservice/endpoint_parameters.rb +++ /dev/null @@ -1,69 +0,0 @@ -# frozen_string_literal: true - -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -module Aws::IoT1ClickDevicesService - # Endpoint parameters used to influence endpoints per request. - # - # @!attribute region - # The AWS region used to dispatch the request. - # - # @return [String] - # - # @!attribute use_dual_stack - # When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error. - # - # @return [Boolean] - # - # @!attribute use_fips - # When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error. - # - # @return [Boolean] - # - # @!attribute endpoint - # Override the endpoint used to send this request - # - # @return [String] - # - EndpointParameters = Struct.new( - :region, - :use_dual_stack, - :use_fips, - :endpoint, - ) do - include Aws::Structure - - # @api private - class << self - PARAM_MAP = { - 'Region' => :region, - 'UseDualStack' => :use_dual_stack, - 'UseFIPS' => :use_fips, - 'Endpoint' => :endpoint, - }.freeze - end - - def initialize(options = {}) - self[:region] = options[:region] - self[:use_dual_stack] = options[:use_dual_stack] - self[:use_dual_stack] = false if self[:use_dual_stack].nil? - self[:use_fips] = options[:use_fips] - self[:use_fips] = false if self[:use_fips].nil? - self[:endpoint] = options[:endpoint] - end - - def self.create(config, options={}) - new({ - region: config.region, - use_dual_stack: config.use_dualstack_endpoint, - use_fips: config.use_fips_endpoint, - endpoint: (config.endpoint.to_s unless config.regional_endpoint), - }.merge(options)) - end - end -end diff --git a/gems/aws-sdk-iot1clickdevicesservice/lib/aws-sdk-iot1clickdevicesservice/endpoint_provider.rb b/gems/aws-sdk-iot1clickdevicesservice/lib/aws-sdk-iot1clickdevicesservice/endpoint_provider.rb deleted file mode 100644 index 26c8b4fa941..00000000000 --- a/gems/aws-sdk-iot1clickdevicesservice/lib/aws-sdk-iot1clickdevicesservice/endpoint_provider.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true - -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -module Aws::IoT1ClickDevicesService - class EndpointProvider - def resolve_endpoint(parameters) - region = parameters.region - use_dual_stack = parameters.use_dual_stack - use_fips = parameters.use_fips - endpoint = parameters.endpoint - if Aws::Endpoints::Matchers.set?(endpoint) - if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) - raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported" - end - if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true) - raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported" - end - return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {}) - end - if Aws::Endpoints::Matchers.set?(region) - if (partition_result = Aws::Endpoints::Matchers.aws_partition(region)) - if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true) - if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack")) - return Aws::Endpoints::Endpoint.new(url: "https://devices.iot1click-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {}) - end - raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both" - end - if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) - if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) - return Aws::Endpoints::Endpoint.new(url: "https://devices.iot1click-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {}) - end - raise ArgumentError, "FIPS is enabled but this partition does not support FIPS" - end - if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true) - if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack")) - return Aws::Endpoints::Endpoint.new(url: "https://devices.iot1click.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {}) - end - raise ArgumentError, "DualStack is enabled but this partition does not support DualStack" - end - return Aws::Endpoints::Endpoint.new(url: "https://devices.iot1click.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {}) - end - end - raise ArgumentError, "Invalid Configuration: Missing Region" - raise ArgumentError, 'No endpoint could be resolved' - - end - end -end diff --git a/gems/aws-sdk-iot1clickdevicesservice/lib/aws-sdk-iot1clickdevicesservice/endpoints.rb b/gems/aws-sdk-iot1clickdevicesservice/lib/aws-sdk-iot1clickdevicesservice/endpoints.rb deleted file mode 100644 index 2bac5047525..00000000000 --- a/gems/aws-sdk-iot1clickdevicesservice/lib/aws-sdk-iot1clickdevicesservice/endpoints.rb +++ /dev/null @@ -1,20 +0,0 @@ -# frozen_string_literal: true - -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - - -module Aws::IoT1ClickDevicesService - # @api private - module Endpoints - - - def self.parameters_for_operation(context) - Aws::IoT1ClickDevicesService::EndpointParameters.create(context.config) - end - end -end diff --git a/gems/aws-sdk-iot1clickdevicesservice/lib/aws-sdk-iot1clickdevicesservice/errors.rb b/gems/aws-sdk-iot1clickdevicesservice/lib/aws-sdk-iot1clickdevicesservice/errors.rb deleted file mode 100644 index b270be36bc0..00000000000 --- a/gems/aws-sdk-iot1clickdevicesservice/lib/aws-sdk-iot1clickdevicesservice/errors.rb +++ /dev/null @@ -1,185 +0,0 @@ -# frozen_string_literal: true - -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -module Aws::IoT1ClickDevicesService - - # When IoT1ClickDevicesService returns an error response, the Ruby SDK constructs and raises an error. - # These errors all extend Aws::IoT1ClickDevicesService::Errors::ServiceError < {Aws::Errors::ServiceError} - # - # You can rescue all IoT1ClickDevicesService errors using ServiceError: - # - # begin - # # do stuff - # rescue Aws::IoT1ClickDevicesService::Errors::ServiceError - # # rescues all IoT1ClickDevicesService API errors - # end - # - # - # ## Request Context - # ServiceError objects have a {Aws::Errors::ServiceError#context #context} method that returns - # information about the request that generated the error. - # See {Seahorse::Client::RequestContext} for more information. - # - # ## Error Classes - # * {ForbiddenException} - # * {InternalFailureException} - # * {InvalidRequestException} - # * {PreconditionFailedException} - # * {RangeNotSatisfiableException} - # * {ResourceConflictException} - # * {ResourceNotFoundException} - # - # Additionally, error classes are dynamically generated for service errors based on the error code - # if they are not defined above. - module Errors - - extend Aws::Errors::DynamicErrors - - class ForbiddenException < ServiceError - - # @param [Seahorse::Client::RequestContext] context - # @param [String] message - # @param [Aws::IoT1ClickDevicesService::Types::ForbiddenException] data - def initialize(context, message, data = Aws::EmptyStructure.new) - super(context, message, data) - end - - # @return [String] - def code - @code || @data[:code] - end - - # @return [String] - def message - @message || @data[:message] - end - end - - class InternalFailureException < ServiceError - - # @param [Seahorse::Client::RequestContext] context - # @param [String] message - # @param [Aws::IoT1ClickDevicesService::Types::InternalFailureException] data - def initialize(context, message, data = Aws::EmptyStructure.new) - super(context, message, data) - end - - # @return [String] - def code - @code || @data[:code] - end - - # @return [String] - def message - @message || @data[:message] - end - end - - class InvalidRequestException < ServiceError - - # @param [Seahorse::Client::RequestContext] context - # @param [String] message - # @param [Aws::IoT1ClickDevicesService::Types::InvalidRequestException] data - def initialize(context, message, data = Aws::EmptyStructure.new) - super(context, message, data) - end - - # @return [String] - def code - @code || @data[:code] - end - - # @return [String] - def message - @message || @data[:message] - end - end - - class PreconditionFailedException < ServiceError - - # @param [Seahorse::Client::RequestContext] context - # @param [String] message - # @param [Aws::IoT1ClickDevicesService::Types::PreconditionFailedException] data - def initialize(context, message, data = Aws::EmptyStructure.new) - super(context, message, data) - end - - # @return [String] - def code - @code || @data[:code] - end - - # @return [String] - def message - @message || @data[:message] - end - end - - class RangeNotSatisfiableException < ServiceError - - # @param [Seahorse::Client::RequestContext] context - # @param [String] message - # @param [Aws::IoT1ClickDevicesService::Types::RangeNotSatisfiableException] data - def initialize(context, message, data = Aws::EmptyStructure.new) - super(context, message, data) - end - - # @return [String] - def code - @code || @data[:code] - end - - # @return [String] - def message - @message || @data[:message] - end - end - - class ResourceConflictException < ServiceError - - # @param [Seahorse::Client::RequestContext] context - # @param [String] message - # @param [Aws::IoT1ClickDevicesService::Types::ResourceConflictException] data - def initialize(context, message, data = Aws::EmptyStructure.new) - super(context, message, data) - end - - # @return [String] - def code - @code || @data[:code] - end - - # @return [String] - def message - @message || @data[:message] - end - end - - class ResourceNotFoundException < ServiceError - - # @param [Seahorse::Client::RequestContext] context - # @param [String] message - # @param [Aws::IoT1ClickDevicesService::Types::ResourceNotFoundException] data - def initialize(context, message, data = Aws::EmptyStructure.new) - super(context, message, data) - end - - # @return [String] - def code - @code || @data[:code] - end - - # @return [String] - def message - @message || @data[:message] - end - end - - end -end diff --git a/gems/aws-sdk-iot1clickdevicesservice/lib/aws-sdk-iot1clickdevicesservice/plugins/endpoints.rb b/gems/aws-sdk-iot1clickdevicesservice/lib/aws-sdk-iot1clickdevicesservice/plugins/endpoints.rb deleted file mode 100644 index eeb3b2f01c2..00000000000 --- a/gems/aws-sdk-iot1clickdevicesservice/lib/aws-sdk-iot1clickdevicesservice/plugins/endpoints.rb +++ /dev/null @@ -1,77 +0,0 @@ -# frozen_string_literal: true - -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - - -module Aws::IoT1ClickDevicesService - module Plugins - class Endpoints < Seahorse::Client::Plugin - option( - :endpoint_provider, - doc_type: 'Aws::IoT1ClickDevicesService::EndpointProvider', - rbs_type: 'untyped', - docstring: <<~DOCS) do |_cfg| -The endpoint provider used to resolve endpoints. Any object that responds to -`#resolve_endpoint(parameters)` where `parameters` is a Struct similar to -`Aws::IoT1ClickDevicesService::EndpointParameters`. - DOCS - Aws::IoT1ClickDevicesService::EndpointProvider.new - end - - # @api private - class Handler < Seahorse::Client::Handler - def call(context) - unless context[:discovered_endpoint] - params = Aws::IoT1ClickDevicesService::Endpoints.parameters_for_operation(context) - endpoint = context.config.endpoint_provider.resolve_endpoint(params) - - context.http_request.endpoint = endpoint.url - apply_endpoint_headers(context, endpoint.headers) - - context[:endpoint_params] = params - context[:endpoint_properties] = endpoint.properties - end - - context[:auth_scheme] = - Aws::Endpoints.resolve_auth_scheme(context, endpoint) - - with_metrics(context) { @handler.call(context) } - end - - private - - def with_metrics(context, &block) - metrics = [] - metrics << 'ENDPOINT_OVERRIDE' unless context.config.regional_endpoint - if context[:auth_scheme] && context[:auth_scheme]['name'] == 'sigv4a' - metrics << 'SIGV4A_SIGNING' - end - if context.config.credentials&.credentials&.account_id - metrics << 'RESOLVED_ACCOUNT_ID' - end - Aws::Plugins::UserAgent.metric(*metrics, &block) - end - - def apply_endpoint_headers(context, headers) - headers.each do |key, values| - value = values - .compact - .map { |s| Seahorse::Util.escape_header_list_string(s.to_s) } - .join(',') - - context.http_request.headers[key] = value - end - end - end - - def add_handlers(handlers, _config) - handlers.add(Handler, step: :build, priority: 75) - end - end - end -end diff --git a/gems/aws-sdk-iot1clickdevicesservice/lib/aws-sdk-iot1clickdevicesservice/resource.rb b/gems/aws-sdk-iot1clickdevicesservice/lib/aws-sdk-iot1clickdevicesservice/resource.rb deleted file mode 100644 index b1ff9da7a7f..00000000000 --- a/gems/aws-sdk-iot1clickdevicesservice/lib/aws-sdk-iot1clickdevicesservice/resource.rb +++ /dev/null @@ -1,26 +0,0 @@ -# frozen_string_literal: true - -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -module Aws::IoT1ClickDevicesService - - class Resource - - # @param options ({}) - # @option options [Client] :client - def initialize(options = {}) - @client = options[:client] || Client.new(options) - end - - # @return [Client] - def client - @client - end - - end -end diff --git a/gems/aws-sdk-iot1clickdevicesservice/lib/aws-sdk-iot1clickdevicesservice/types.rb b/gems/aws-sdk-iot1clickdevicesservice/lib/aws-sdk-iot1clickdevicesservice/types.rb deleted file mode 100644 index 12e8d25090c..00000000000 --- a/gems/aws-sdk-iot1clickdevicesservice/lib/aws-sdk-iot1clickdevicesservice/types.rb +++ /dev/null @@ -1,605 +0,0 @@ -# frozen_string_literal: true - -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -module Aws::IoT1ClickDevicesService - module Types - - # @see http://docs.aws.amazon.com/goto/WebAPI/devices-2018-05-14/Attributes AWS API Documentation - # - class Attributes < Aws::EmptyStructure; end - - # @!attribute [rw] claim_code - # @return [String] - # - # @see http://docs.aws.amazon.com/goto/WebAPI/devices-2018-05-14/ClaimDevicesByClaimCodeRequest AWS API Documentation - # - class ClaimDevicesByClaimCodeRequest < Struct.new( - :claim_code) - SENSITIVE = [] - include Aws::Structure - end - - # @!attribute [rw] claim_code - # The claim code provided by the device manufacturer. - # @return [String] - # - # @!attribute [rw] total - # The total number of devices associated with the claim code that has - # been processed in the claim request. - # @return [Integer] - # - # @see http://docs.aws.amazon.com/goto/WebAPI/devices-2018-05-14/ClaimDevicesByClaimCodeResponse AWS API Documentation - # - class ClaimDevicesByClaimCodeResponse < Struct.new( - :claim_code, - :total) - SENSITIVE = [] - include Aws::Structure - end - - # @!attribute [rw] device_id - # @return [String] - # - # @see http://docs.aws.amazon.com/goto/WebAPI/devices-2018-05-14/DescribeDeviceRequest AWS API Documentation - # - class DescribeDeviceRequest < Struct.new( - :device_id) - SENSITIVE = [] - include Aws::Structure - end - - # @!attribute [rw] device_description - # Device details. - # @return [Types::DeviceDescription] - # - # @see http://docs.aws.amazon.com/goto/WebAPI/devices-2018-05-14/DescribeDeviceResponse AWS API Documentation - # - class DescribeDeviceResponse < Struct.new( - :device_description) - SENSITIVE = [] - include Aws::Structure - end - - # @!attribute [rw] attributes - # The user specified attributes associated with the device for an - # event. - # @return [Types::Attributes] - # - # @!attribute [rw] device_id - # The unique identifier of the device. - # @return [String] - # - # @!attribute [rw] type - # The device type, such as "button". - # @return [String] - # - # @see http://docs.aws.amazon.com/goto/WebAPI/devices-2018-05-14/Device AWS API Documentation - # - class Device < Struct.new( - :attributes, - :device_id, - :type) - SENSITIVE = [] - include Aws::Structure - end - - # @!attribute [rw] state - # The device's final claim state. - # @return [String] - # - # @see http://docs.aws.amazon.com/goto/WebAPI/devices-2018-05-14/DeviceClaimResponse AWS API Documentation - # - class DeviceClaimResponse < Struct.new( - :state) - SENSITIVE = [] - include Aws::Structure - end - - # @!attribute [rw] arn - # The ARN of the device. - # @return [String] - # - # @!attribute [rw] attributes - # An array of zero or more elements of DeviceAttribute objects - # providing user specified device attributes. - # @return [Hash] - # - # @!attribute [rw] device_id - # The unique identifier of the device. - # @return [String] - # - # @!attribute [rw] enabled - # A Boolean value indicating whether or not the device is enabled. - # @return [Boolean] - # - # @!attribute [rw] remaining_life - # A value between 0 and 1 inclusive, representing the fraction of life - # remaining for the device. - # @return [Float] - # - # @!attribute [rw] type - # The type of the device, such as "button". - # @return [String] - # - # @!attribute [rw] tags - # @return [Hash] - # - # @see http://docs.aws.amazon.com/goto/WebAPI/devices-2018-05-14/DeviceDescription AWS API Documentation - # - class DeviceDescription < Struct.new( - :arn, - :attributes, - :device_id, - :enabled, - :remaining_life, - :type, - :tags) - SENSITIVE = [] - include Aws::Structure - end - - # @!attribute [rw] device - # An object representing the device associated with the event. - # @return [Types::Device] - # - # @!attribute [rw] std_event - # A serialized JSON object representing the device-type specific - # event. - # @return [String] - # - # @see http://docs.aws.amazon.com/goto/WebAPI/devices-2018-05-14/DeviceEvent AWS API Documentation - # - class DeviceEvent < Struct.new( - :device, - :std_event) - SENSITIVE = [] - include Aws::Structure - end - - # @!attribute [rw] events - # An array of zero or more elements describing the event(s) associated - # with the device. - # @return [Array] - # - # @!attribute [rw] next_token - # The token to retrieve the next set of results. - # @return [String] - # - # @see http://docs.aws.amazon.com/goto/WebAPI/devices-2018-05-14/DeviceEventsResponse AWS API Documentation - # - class DeviceEventsResponse < Struct.new( - :events, - :next_token) - SENSITIVE = [] - include Aws::Structure - end - - # @!attribute [rw] device_type - # The type of the device, such as "button". - # @return [String] - # - # @!attribute [rw] method_name - # The name of the method applicable to the deviceType. - # @return [String] - # - # @see http://docs.aws.amazon.com/goto/WebAPI/devices-2018-05-14/DeviceMethod AWS API Documentation - # - class DeviceMethod < Struct.new( - :device_type, - :method_name) - SENSITIVE = [] - include Aws::Structure - end - - # On success, an empty object is returned. - # - # @see http://docs.aws.amazon.com/goto/WebAPI/devices-2018-05-14/Empty AWS API Documentation - # - class Empty < Aws::EmptyStructure; end - - # @!attribute [rw] device_id - # @return [String] - # - # @!attribute [rw] tags - # @return [Hash] - # - # @see http://docs.aws.amazon.com/goto/WebAPI/devices-2018-05-14/FinalizeDeviceClaimRequest AWS API Documentation - # - class FinalizeDeviceClaimRequest < Struct.new( - :device_id, - :tags) - SENSITIVE = [] - include Aws::Structure - end - - # @!attribute [rw] state - # @return [String] - # - # @see http://docs.aws.amazon.com/goto/WebAPI/devices-2018-05-14/FinalizeDeviceClaimResponse AWS API Documentation - # - class FinalizeDeviceClaimResponse < Struct.new( - :state) - SENSITIVE = [] - include Aws::Structure - end - - # @!attribute [rw] code - # 403 - # @return [String] - # - # @!attribute [rw] message - # The 403 error message returned by the web server. - # @return [String] - # - # @see http://docs.aws.amazon.com/goto/WebAPI/devices-2018-05-14/ForbiddenException AWS API Documentation - # - class ForbiddenException < Struct.new( - :code, - :message) - SENSITIVE = [] - include Aws::Structure - end - - # @!attribute [rw] device_id - # @return [String] - # - # @see http://docs.aws.amazon.com/goto/WebAPI/devices-2018-05-14/GetDeviceMethodsRequest AWS API Documentation - # - class GetDeviceMethodsRequest < Struct.new( - :device_id) - SENSITIVE = [] - include Aws::Structure - end - - # @!attribute [rw] device_methods - # List of available device APIs. - # @return [Array] - # - # @see http://docs.aws.amazon.com/goto/WebAPI/devices-2018-05-14/GetDeviceMethodsResponse AWS API Documentation - # - class GetDeviceMethodsResponse < Struct.new( - :device_methods) - SENSITIVE = [] - include Aws::Structure - end - - # @!attribute [rw] device_id - # @return [String] - # - # @see http://docs.aws.amazon.com/goto/WebAPI/devices-2018-05-14/InitiateDeviceClaimRequest AWS API Documentation - # - class InitiateDeviceClaimRequest < Struct.new( - :device_id) - SENSITIVE = [] - include Aws::Structure - end - - # @!attribute [rw] state - # @return [String] - # - # @see http://docs.aws.amazon.com/goto/WebAPI/devices-2018-05-14/InitiateDeviceClaimResponse AWS API Documentation - # - class InitiateDeviceClaimResponse < Struct.new( - :state) - SENSITIVE = [] - include Aws::Structure - end - - # @!attribute [rw] code - # 500 - # @return [String] - # - # @!attribute [rw] message - # The 500 error message returned by the web server. - # @return [String] - # - # @see http://docs.aws.amazon.com/goto/WebAPI/devices-2018-05-14/InternalFailureException AWS API Documentation - # - class InternalFailureException < Struct.new( - :code, - :message) - SENSITIVE = [] - include Aws::Structure - end - - # @!attribute [rw] code - # 400 - # @return [String] - # - # @!attribute [rw] message - # The 400 error message returned by the web server. - # @return [String] - # - # @see http://docs.aws.amazon.com/goto/WebAPI/devices-2018-05-14/InvalidRequestException AWS API Documentation - # - class InvalidRequestException < Struct.new( - :code, - :message) - SENSITIVE = [] - include Aws::Structure - end - - # @!attribute [rw] device_id - # @return [String] - # - # @!attribute [rw] device_method - # The device method to invoke. - # @return [Types::DeviceMethod] - # - # @!attribute [rw] device_method_parameters - # A JSON encoded string containing the device method request - # parameters. - # @return [String] - # - # @see http://docs.aws.amazon.com/goto/WebAPI/devices-2018-05-14/InvokeDeviceMethodRequest AWS API Documentation - # - class InvokeDeviceMethodRequest < Struct.new( - :device_id, - :device_method, - :device_method_parameters) - SENSITIVE = [] - include Aws::Structure - end - - # @!attribute [rw] device_method_response - # A JSON encoded string containing the device method response. - # @return [String] - # - # @see http://docs.aws.amazon.com/goto/WebAPI/devices-2018-05-14/InvokeDeviceMethodResponse AWS API Documentation - # - class InvokeDeviceMethodResponse < Struct.new( - :device_method_response) - SENSITIVE = [] - include Aws::Structure - end - - # @!attribute [rw] device_id - # @return [String] - # - # @!attribute [rw] from_time_stamp - # @return [Time] - # - # @!attribute [rw] max_results - # @return [Integer] - # - # @!attribute [rw] next_token - # @return [String] - # - # @!attribute [rw] to_time_stamp - # @return [Time] - # - # @see http://docs.aws.amazon.com/goto/WebAPI/devices-2018-05-14/ListDeviceEventsRequest AWS API Documentation - # - class ListDeviceEventsRequest < Struct.new( - :device_id, - :from_time_stamp, - :max_results, - :next_token, - :to_time_stamp) - SENSITIVE = [] - include Aws::Structure - end - - # @!attribute [rw] events - # @return [Array] - # - # @!attribute [rw] next_token - # @return [String] - # - # @see http://docs.aws.amazon.com/goto/WebAPI/devices-2018-05-14/ListDeviceEventsResponse AWS API Documentation - # - class ListDeviceEventsResponse < Struct.new( - :events, - :next_token) - SENSITIVE = [] - include Aws::Structure - end - - # @!attribute [rw] device_type - # @return [String] - # - # @!attribute [rw] max_results - # @return [Integer] - # - # @!attribute [rw] next_token - # @return [String] - # - # @see http://docs.aws.amazon.com/goto/WebAPI/devices-2018-05-14/ListDevicesRequest AWS API Documentation - # - class ListDevicesRequest < Struct.new( - :device_type, - :max_results, - :next_token) - SENSITIVE = [] - include Aws::Structure - end - - # @!attribute [rw] devices - # A list of devices. - # @return [Array] - # - # @!attribute [rw] next_token - # The token to retrieve the next set of results. - # @return [String] - # - # @see http://docs.aws.amazon.com/goto/WebAPI/devices-2018-05-14/ListDevicesResponse AWS API Documentation - # - class ListDevicesResponse < Struct.new( - :devices, - :next_token) - SENSITIVE = [] - include Aws::Structure - end - - # @!attribute [rw] resource_arn - # @return [String] - # - # @see http://docs.aws.amazon.com/goto/WebAPI/devices-2018-05-14/ListTagsForResourceRequest AWS API Documentation - # - class ListTagsForResourceRequest < Struct.new( - :resource_arn) - SENSITIVE = [] - include Aws::Structure - end - - # @!attribute [rw] tags - # @return [Hash] - # - # @see http://docs.aws.amazon.com/goto/WebAPI/devices-2018-05-14/ListTagsForResourceResponse AWS API Documentation - # - class ListTagsForResourceResponse < Struct.new( - :tags) - SENSITIVE = [] - include Aws::Structure - end - - # @!attribute [rw] code - # 412 - # @return [String] - # - # @!attribute [rw] message - # An error message explaining the error or its remedy. - # @return [String] - # - # @see http://docs.aws.amazon.com/goto/WebAPI/devices-2018-05-14/PreconditionFailedException AWS API Documentation - # - class PreconditionFailedException < Struct.new( - :code, - :message) - SENSITIVE = [] - include Aws::Structure - end - - # @!attribute [rw] code - # 416 - # @return [String] - # - # @!attribute [rw] message - # The requested number of results specified by nextToken cannot be - # satisfied. - # @return [String] - # - # @see http://docs.aws.amazon.com/goto/WebAPI/devices-2018-05-14/RangeNotSatisfiableException AWS API Documentation - # - class RangeNotSatisfiableException < Struct.new( - :code, - :message) - SENSITIVE = [] - include Aws::Structure - end - - # @!attribute [rw] code - # 409 - # @return [String] - # - # @!attribute [rw] message - # An error message explaining the error or its remedy. - # @return [String] - # - # @see http://docs.aws.amazon.com/goto/WebAPI/devices-2018-05-14/ResourceConflictException AWS API Documentation - # - class ResourceConflictException < Struct.new( - :code, - :message) - SENSITIVE = [] - include Aws::Structure - end - - # @!attribute [rw] code - # 404 - # @return [String] - # - # @!attribute [rw] message - # The requested device could not be found. - # @return [String] - # - # @see http://docs.aws.amazon.com/goto/WebAPI/devices-2018-05-14/ResourceNotFoundException AWS API Documentation - # - class ResourceNotFoundException < Struct.new( - :code, - :message) - SENSITIVE = [] - include Aws::Structure - end - - # @!attribute [rw] resource_arn - # @return [String] - # - # @!attribute [rw] tags - # @return [Hash] - # - # @see http://docs.aws.amazon.com/goto/WebAPI/devices-2018-05-14/TagResourceRequest AWS API Documentation - # - class TagResourceRequest < Struct.new( - :resource_arn, - :tags) - SENSITIVE = [] - include Aws::Structure - end - - # @!attribute [rw] device_id - # @return [String] - # - # @see http://docs.aws.amazon.com/goto/WebAPI/devices-2018-05-14/UnclaimDeviceRequest AWS API Documentation - # - class UnclaimDeviceRequest < Struct.new( - :device_id) - SENSITIVE = [] - include Aws::Structure - end - - # @!attribute [rw] state - # @return [String] - # - # @see http://docs.aws.amazon.com/goto/WebAPI/devices-2018-05-14/UnclaimDeviceResponse AWS API Documentation - # - class UnclaimDeviceResponse < Struct.new( - :state) - SENSITIVE = [] - include Aws::Structure - end - - # @!attribute [rw] resource_arn - # @return [String] - # - # @!attribute [rw] tag_keys - # @return [Array] - # - # @see http://docs.aws.amazon.com/goto/WebAPI/devices-2018-05-14/UntagResourceRequest AWS API Documentation - # - class UntagResourceRequest < Struct.new( - :resource_arn, - :tag_keys) - SENSITIVE = [] - include Aws::Structure - end - - # @!attribute [rw] device_id - # @return [String] - # - # @!attribute [rw] enabled - # If true, the device is enabled. If false, the device is disabled. - # @return [Boolean] - # - # @see http://docs.aws.amazon.com/goto/WebAPI/devices-2018-05-14/UpdateDeviceStateRequest AWS API Documentation - # - class UpdateDeviceStateRequest < Struct.new( - :device_id, - :enabled) - SENSITIVE = [] - include Aws::Structure - end - - # @see http://docs.aws.amazon.com/goto/WebAPI/devices-2018-05-14/UpdateDeviceStateResponse AWS API Documentation - # - class UpdateDeviceStateResponse < Aws::EmptyStructure; end - - end -end - diff --git a/gems/aws-sdk-iot1clickdevicesservice/sig/client.rbs b/gems/aws-sdk-iot1clickdevicesservice/sig/client.rbs deleted file mode 100644 index f608a40a043..00000000000 --- a/gems/aws-sdk-iot1clickdevicesservice/sig/client.rbs +++ /dev/null @@ -1,219 +0,0 @@ -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -module Aws - module IoT1ClickDevicesService - class Client < ::Seahorse::Client::Base - include ::Aws::ClientStubs - - # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IoT1ClickDevicesService/Client.html#initialize-instance_method - def self.new: ( - ?credentials: untyped, - ?region: String, - ?access_key_id: String, - ?account_id: String, - ?active_endpoint_cache: bool, - ?adaptive_retry_wait_to_fill: bool, - ?client_side_monitoring: bool, - ?client_side_monitoring_client_id: String, - ?client_side_monitoring_host: String, - ?client_side_monitoring_port: Integer, - ?client_side_monitoring_publisher: untyped, - ?convert_params: bool, - ?correct_clock_skew: bool, - ?defaults_mode: String, - ?disable_host_prefix_injection: bool, - ?disable_request_compression: bool, - ?endpoint: String, - ?endpoint_cache_max_entries: Integer, - ?endpoint_cache_max_threads: Integer, - ?endpoint_cache_poll_interval: Integer, - ?endpoint_discovery: bool, - ?ignore_configured_endpoint_urls: bool, - ?log_formatter: untyped, - ?log_level: Symbol, - ?logger: untyped, - ?max_attempts: Integer, - ?profile: String, - ?request_min_compression_size_bytes: Integer, - ?retry_backoff: Proc, - ?retry_base_delay: Float, - ?retry_jitter: (:none | :equal | :full | ^(Integer) -> Integer), - ?retry_limit: Integer, - ?retry_max_delay: Integer, - ?retry_mode: ("legacy" | "standard" | "adaptive"), - ?sdk_ua_app_id: String, - ?secret_access_key: String, - ?session_token: String, - ?sigv4a_signing_region_set: Array[String], - ?stub_responses: untyped, - ?telemetry_provider: Aws::Telemetry::TelemetryProviderBase, - ?token_provider: untyped, - ?use_dualstack_endpoint: bool, - ?use_fips_endpoint: bool, - ?validate_params: bool, - ?endpoint_provider: untyped, - ?http_proxy: String, - ?http_open_timeout: (Float | Integer), - ?http_read_timeout: (Float | Integer), - ?http_idle_timeout: (Float | Integer), - ?http_continue_timeout: (Float | Integer), - ?ssl_timeout: (Float | Integer | nil), - ?http_wire_trace: bool, - ?ssl_verify_peer: bool, - ?ssl_ca_bundle: String, - ?ssl_ca_directory: String, - ?ssl_ca_store: String, - ?on_chunk_received: Proc, - ?on_chunk_sent: Proc, - ?raise_response_errors: bool - ) -> instance - | (?Hash[Symbol, untyped]) -> instance - - - interface _ClaimDevicesByClaimCodeResponseSuccess - include ::Seahorse::Client::_ResponseSuccess[Types::ClaimDevicesByClaimCodeResponse] - def claim_code: () -> ::String - def total: () -> ::Integer - end - # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IoT1ClickDevicesService/Client.html#claim_devices_by_claim_code-instance_method - def claim_devices_by_claim_code: ( - claim_code: ::String - ) -> _ClaimDevicesByClaimCodeResponseSuccess - | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ClaimDevicesByClaimCodeResponseSuccess - - interface _DescribeDeviceResponseSuccess - include ::Seahorse::Client::_ResponseSuccess[Types::DescribeDeviceResponse] - def device_description: () -> Types::DeviceDescription - end - # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IoT1ClickDevicesService/Client.html#describe_device-instance_method - def describe_device: ( - device_id: ::String - ) -> _DescribeDeviceResponseSuccess - | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DescribeDeviceResponseSuccess - - interface _FinalizeDeviceClaimResponseSuccess - include ::Seahorse::Client::_ResponseSuccess[Types::FinalizeDeviceClaimResponse] - def state: () -> ::String - end - # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IoT1ClickDevicesService/Client.html#finalize_device_claim-instance_method - def finalize_device_claim: ( - device_id: ::String, - ?tags: Hash[::String, ::String] - ) -> _FinalizeDeviceClaimResponseSuccess - | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _FinalizeDeviceClaimResponseSuccess - - interface _GetDeviceMethodsResponseSuccess - include ::Seahorse::Client::_ResponseSuccess[Types::GetDeviceMethodsResponse] - def device_methods: () -> ::Array[Types::DeviceMethod] - end - # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IoT1ClickDevicesService/Client.html#get_device_methods-instance_method - def get_device_methods: ( - device_id: ::String - ) -> _GetDeviceMethodsResponseSuccess - | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetDeviceMethodsResponseSuccess - - interface _InitiateDeviceClaimResponseSuccess - include ::Seahorse::Client::_ResponseSuccess[Types::InitiateDeviceClaimResponse] - def state: () -> ::String - end - # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IoT1ClickDevicesService/Client.html#initiate_device_claim-instance_method - def initiate_device_claim: ( - device_id: ::String - ) -> _InitiateDeviceClaimResponseSuccess - | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _InitiateDeviceClaimResponseSuccess - - interface _InvokeDeviceMethodResponseSuccess - include ::Seahorse::Client::_ResponseSuccess[Types::InvokeDeviceMethodResponse] - def device_method_response: () -> ::String - end - # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IoT1ClickDevicesService/Client.html#invoke_device_method-instance_method - def invoke_device_method: ( - device_id: ::String, - ?device_method: { - device_type: ::String?, - method_name: ::String? - }, - ?device_method_parameters: ::String - ) -> _InvokeDeviceMethodResponseSuccess - | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _InvokeDeviceMethodResponseSuccess - - interface _ListDeviceEventsResponseSuccess - include ::Seahorse::Client::_ResponseSuccess[Types::ListDeviceEventsResponse] - def events: () -> ::Array[Types::DeviceEvent] - def next_token: () -> ::String - end - # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IoT1ClickDevicesService/Client.html#list_device_events-instance_method - def list_device_events: ( - device_id: ::String, - from_time_stamp: ::Time, - ?max_results: ::Integer, - ?next_token: ::String, - to_time_stamp: ::Time - ) -> _ListDeviceEventsResponseSuccess - | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListDeviceEventsResponseSuccess - - interface _ListDevicesResponseSuccess - include ::Seahorse::Client::_ResponseSuccess[Types::ListDevicesResponse] - def devices: () -> ::Array[Types::DeviceDescription] - def next_token: () -> ::String - end - # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IoT1ClickDevicesService/Client.html#list_devices-instance_method - def list_devices: ( - ?device_type: ::String, - ?max_results: ::Integer, - ?next_token: ::String - ) -> _ListDevicesResponseSuccess - | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListDevicesResponseSuccess - - interface _ListTagsForResourceResponseSuccess - include ::Seahorse::Client::_ResponseSuccess[Types::ListTagsForResourceResponse] - def tags: () -> ::Hash[::String, ::String] - end - # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IoT1ClickDevicesService/Client.html#list_tags_for_resource-instance_method - def list_tags_for_resource: ( - resource_arn: ::String - ) -> _ListTagsForResourceResponseSuccess - | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListTagsForResourceResponseSuccess - - # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IoT1ClickDevicesService/Client.html#tag_resource-instance_method - def tag_resource: ( - resource_arn: ::String, - tags: Hash[::String, ::String] - ) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure] - | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure] - - interface _UnclaimDeviceResponseSuccess - include ::Seahorse::Client::_ResponseSuccess[Types::UnclaimDeviceResponse] - def state: () -> ::String - end - # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IoT1ClickDevicesService/Client.html#unclaim_device-instance_method - def unclaim_device: ( - device_id: ::String - ) -> _UnclaimDeviceResponseSuccess - | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UnclaimDeviceResponseSuccess - - # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IoT1ClickDevicesService/Client.html#untag_resource-instance_method - def untag_resource: ( - resource_arn: ::String, - tag_keys: Array[::String] - ) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure] - | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure] - - interface _UpdateDeviceStateResponseSuccess - include ::Seahorse::Client::_ResponseSuccess[Types::UpdateDeviceStateResponse] - end - # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IoT1ClickDevicesService/Client.html#update_device_state-instance_method - def update_device_state: ( - device_id: ::String, - ?enabled: bool - ) -> _UpdateDeviceStateResponseSuccess - | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateDeviceStateResponseSuccess - end - end -end - diff --git a/gems/aws-sdk-iot1clickdevicesservice/sig/errors.rbs b/gems/aws-sdk-iot1clickdevicesservice/sig/errors.rbs deleted file mode 100644 index ad3d5dbb013..00000000000 --- a/gems/aws-sdk-iot1clickdevicesservice/sig/errors.rbs +++ /dev/null @@ -1,44 +0,0 @@ -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -module Aws - module IoT1ClickDevicesService - module Errors - class ServiceError < ::Aws::Errors::ServiceError - end - - class ForbiddenException < ::Aws::Errors::ServiceError - def code: () -> ::String - def message: () -> ::String - end - class InternalFailureException < ::Aws::Errors::ServiceError - def code: () -> ::String - def message: () -> ::String - end - class InvalidRequestException < ::Aws::Errors::ServiceError - def code: () -> ::String - def message: () -> ::String - end - class PreconditionFailedException < ::Aws::Errors::ServiceError - def code: () -> ::String - def message: () -> ::String - end - class RangeNotSatisfiableException < ::Aws::Errors::ServiceError - def code: () -> ::String - def message: () -> ::String - end - class ResourceConflictException < ::Aws::Errors::ServiceError - def code: () -> ::String - def message: () -> ::String - end - class ResourceNotFoundException < ::Aws::Errors::ServiceError - def code: () -> ::String - def message: () -> ::String - end - end - end -end diff --git a/gems/aws-sdk-iot1clickdevicesservice/sig/resource.rbs b/gems/aws-sdk-iot1clickdevicesservice/sig/resource.rbs deleted file mode 100644 index 4d301ec9866..00000000000 --- a/gems/aws-sdk-iot1clickdevicesservice/sig/resource.rbs +++ /dev/null @@ -1,82 +0,0 @@ -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -module Aws - module IoT1ClickDevicesService - # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IoT1ClickDevicesService/Resource.html - class Resource - # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IoT1ClickDevicesService/Resource.html#initialize-instance_method - def initialize: ( - ?client: Client, - ?credentials: untyped, - ?region: String, - ?access_key_id: String, - ?account_id: String, - ?active_endpoint_cache: bool, - ?adaptive_retry_wait_to_fill: bool, - ?client_side_monitoring: bool, - ?client_side_monitoring_client_id: String, - ?client_side_monitoring_host: String, - ?client_side_monitoring_port: Integer, - ?client_side_monitoring_publisher: untyped, - ?convert_params: bool, - ?correct_clock_skew: bool, - ?defaults_mode: String, - ?disable_host_prefix_injection: bool, - ?disable_request_compression: bool, - ?endpoint: String, - ?endpoint_cache_max_entries: Integer, - ?endpoint_cache_max_threads: Integer, - ?endpoint_cache_poll_interval: Integer, - ?endpoint_discovery: bool, - ?ignore_configured_endpoint_urls: bool, - ?log_formatter: untyped, - ?log_level: Symbol, - ?logger: untyped, - ?max_attempts: Integer, - ?profile: String, - ?request_min_compression_size_bytes: Integer, - ?retry_backoff: Proc, - ?retry_base_delay: Float, - ?retry_jitter: (:none | :equal | :full | ^(Integer) -> Integer), - ?retry_limit: Integer, - ?retry_max_delay: Integer, - ?retry_mode: ("legacy" | "standard" | "adaptive"), - ?sdk_ua_app_id: String, - ?secret_access_key: String, - ?session_token: String, - ?sigv4a_signing_region_set: Array[String], - ?stub_responses: untyped, - ?telemetry_provider: Aws::Telemetry::TelemetryProviderBase, - ?token_provider: untyped, - ?use_dualstack_endpoint: bool, - ?use_fips_endpoint: bool, - ?validate_params: bool, - ?endpoint_provider: untyped, - ?http_proxy: String, - ?http_open_timeout: (Float | Integer), - ?http_read_timeout: (Float | Integer), - ?http_idle_timeout: (Float | Integer), - ?http_continue_timeout: (Float | Integer), - ?ssl_timeout: (Float | Integer | nil), - ?http_wire_trace: bool, - ?ssl_verify_peer: bool, - ?ssl_ca_bundle: String, - ?ssl_ca_directory: String, - ?ssl_ca_store: String, - ?on_chunk_received: Proc, - ?on_chunk_sent: Proc, - ?raise_response_errors: bool - ) -> void - | (?Hash[Symbol, untyped]) -> void - - def client: () -> Client - - - end - end -end diff --git a/gems/aws-sdk-iot1clickdevicesservice/sig/types.rbs b/gems/aws-sdk-iot1clickdevicesservice/sig/types.rbs deleted file mode 100644 index be87becb5a9..00000000000 --- a/gems/aws-sdk-iot1clickdevicesservice/sig/types.rbs +++ /dev/null @@ -1,233 +0,0 @@ -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -module Aws::IoT1ClickDevicesService - module Types - - class Attributes < Aws::EmptyStructure - end - - class ClaimDevicesByClaimCodeRequest - attr_accessor claim_code: ::String - SENSITIVE: [] - end - - class ClaimDevicesByClaimCodeResponse - attr_accessor claim_code: ::String - attr_accessor total: ::Integer - SENSITIVE: [] - end - - class DescribeDeviceRequest - attr_accessor device_id: ::String - SENSITIVE: [] - end - - class DescribeDeviceResponse - attr_accessor device_description: Types::DeviceDescription - SENSITIVE: [] - end - - class Device - attr_accessor attributes: Types::Attributes - attr_accessor device_id: ::String - attr_accessor type: ::String - SENSITIVE: [] - end - - class DeviceClaimResponse - attr_accessor state: ::String - SENSITIVE: [] - end - - class DeviceDescription - attr_accessor arn: ::String - attr_accessor attributes: ::Hash[::String, ::String] - attr_accessor device_id: ::String - attr_accessor enabled: bool - attr_accessor remaining_life: ::Float - attr_accessor type: ::String - attr_accessor tags: ::Hash[::String, ::String] - SENSITIVE: [] - end - - class DeviceEvent - attr_accessor device: Types::Device - attr_accessor std_event: ::String - SENSITIVE: [] - end - - class DeviceEventsResponse - attr_accessor events: ::Array[Types::DeviceEvent] - attr_accessor next_token: ::String - SENSITIVE: [] - end - - class DeviceMethod - attr_accessor device_type: ::String - attr_accessor method_name: ::String - SENSITIVE: [] - end - - class Empty < Aws::EmptyStructure - end - - class FinalizeDeviceClaimRequest - attr_accessor device_id: ::String - attr_accessor tags: ::Hash[::String, ::String] - SENSITIVE: [] - end - - class FinalizeDeviceClaimResponse - attr_accessor state: ::String - SENSITIVE: [] - end - - class ForbiddenException - attr_accessor code: ::String - attr_accessor message: ::String - SENSITIVE: [] - end - - class GetDeviceMethodsRequest - attr_accessor device_id: ::String - SENSITIVE: [] - end - - class GetDeviceMethodsResponse - attr_accessor device_methods: ::Array[Types::DeviceMethod] - SENSITIVE: [] - end - - class InitiateDeviceClaimRequest - attr_accessor device_id: ::String - SENSITIVE: [] - end - - class InitiateDeviceClaimResponse - attr_accessor state: ::String - SENSITIVE: [] - end - - class InternalFailureException - attr_accessor code: ::String - attr_accessor message: ::String - SENSITIVE: [] - end - - class InvalidRequestException - attr_accessor code: ::String - attr_accessor message: ::String - SENSITIVE: [] - end - - class InvokeDeviceMethodRequest - attr_accessor device_id: ::String - attr_accessor device_method: Types::DeviceMethod - attr_accessor device_method_parameters: ::String - SENSITIVE: [] - end - - class InvokeDeviceMethodResponse - attr_accessor device_method_response: ::String - SENSITIVE: [] - end - - class ListDeviceEventsRequest - attr_accessor device_id: ::String - attr_accessor from_time_stamp: ::Time - attr_accessor max_results: ::Integer - attr_accessor next_token: ::String - attr_accessor to_time_stamp: ::Time - SENSITIVE: [] - end - - class ListDeviceEventsResponse - attr_accessor events: ::Array[Types::DeviceEvent] - attr_accessor next_token: ::String - SENSITIVE: [] - end - - class ListDevicesRequest - attr_accessor device_type: ::String - attr_accessor max_results: ::Integer - attr_accessor next_token: ::String - SENSITIVE: [] - end - - class ListDevicesResponse - attr_accessor devices: ::Array[Types::DeviceDescription] - attr_accessor next_token: ::String - SENSITIVE: [] - end - - class ListTagsForResourceRequest - attr_accessor resource_arn: ::String - SENSITIVE: [] - end - - class ListTagsForResourceResponse - attr_accessor tags: ::Hash[::String, ::String] - SENSITIVE: [] - end - - class PreconditionFailedException - attr_accessor code: ::String - attr_accessor message: ::String - SENSITIVE: [] - end - - class RangeNotSatisfiableException - attr_accessor code: ::String - attr_accessor message: ::String - SENSITIVE: [] - end - - class ResourceConflictException - attr_accessor code: ::String - attr_accessor message: ::String - SENSITIVE: [] - end - - class ResourceNotFoundException - attr_accessor code: ::String - attr_accessor message: ::String - SENSITIVE: [] - end - - class TagResourceRequest - attr_accessor resource_arn: ::String - attr_accessor tags: ::Hash[::String, ::String] - SENSITIVE: [] - end - - class UnclaimDeviceRequest - attr_accessor device_id: ::String - SENSITIVE: [] - end - - class UnclaimDeviceResponse - attr_accessor state: ::String - SENSITIVE: [] - end - - class UntagResourceRequest - attr_accessor resource_arn: ::String - attr_accessor tag_keys: ::Array[::String] - SENSITIVE: [] - end - - class UpdateDeviceStateRequest - attr_accessor device_id: ::String - attr_accessor enabled: bool - SENSITIVE: [] - end - - class UpdateDeviceStateResponse < Aws::EmptyStructure - end - end -end diff --git a/gems/aws-sdk-iot1clickdevicesservice/sig/waiters.rbs b/gems/aws-sdk-iot1clickdevicesservice/sig/waiters.rbs deleted file mode 100644 index 72802bef7d5..00000000000 --- a/gems/aws-sdk-iot1clickdevicesservice/sig/waiters.rbs +++ /dev/null @@ -1,13 +0,0 @@ -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -module Aws - module IoT1ClickDevicesService - module Waiters - end - end -end diff --git a/gems/aws-sdk-iot1clickdevicesservice/spec/endpoint_provider_spec.rb b/gems/aws-sdk-iot1clickdevicesservice/spec/endpoint_provider_spec.rb deleted file mode 100644 index f8582affac1..00000000000 --- a/gems/aws-sdk-iot1clickdevicesservice/spec/endpoint_provider_spec.rb +++ /dev/null @@ -1,361 +0,0 @@ -# frozen_string_literal: true - -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - - -require_relative 'spec_helper' - -module Aws::IoT1ClickDevicesService - describe EndpointProvider do - subject { Aws::IoT1ClickDevicesService::EndpointProvider.new } - - context "For region us-east-1 with FIPS enabled and DualStack enabled" do - let(:expected) do - {"endpoint"=>{"url"=>"https://devices.iot1click-fips.us-east-1.api.aws"}} - end - - it 'produces the expected output from the EndpointProvider' do - params = EndpointParameters.new(**{:region=>"us-east-1", :use_fips=>true, :use_dual_stack=>true}) - endpoint = subject.resolve_endpoint(params) - expect(endpoint.url).to eq(expected['endpoint']['url']) - expect(endpoint.headers).to eq(expected['endpoint']['headers'] || {}) - expect(endpoint.properties).to eq(expected['endpoint']['properties'] || {}) - end - end - - context "For region us-east-1 with FIPS enabled and DualStack disabled" do - let(:expected) do - {"endpoint"=>{"url"=>"https://devices.iot1click-fips.us-east-1.amazonaws.com"}} - end - - it 'produces the expected output from the EndpointProvider' do - params = EndpointParameters.new(**{:region=>"us-east-1", :use_fips=>true, :use_dual_stack=>false}) - endpoint = subject.resolve_endpoint(params) - expect(endpoint.url).to eq(expected['endpoint']['url']) - expect(endpoint.headers).to eq(expected['endpoint']['headers'] || {}) - expect(endpoint.properties).to eq(expected['endpoint']['properties'] || {}) - end - end - - context "For region us-east-1 with FIPS disabled and DualStack enabled" do - let(:expected) do - {"endpoint"=>{"url"=>"https://devices.iot1click.us-east-1.api.aws"}} - end - - it 'produces the expected output from the EndpointProvider' do - params = EndpointParameters.new(**{:region=>"us-east-1", :use_fips=>false, :use_dual_stack=>true}) - endpoint = subject.resolve_endpoint(params) - expect(endpoint.url).to eq(expected['endpoint']['url']) - expect(endpoint.headers).to eq(expected['endpoint']['headers'] || {}) - expect(endpoint.properties).to eq(expected['endpoint']['properties'] || {}) - end - end - - context "For region us-east-1 with FIPS disabled and DualStack disabled" do - let(:expected) do - {"endpoint"=>{"url"=>"https://devices.iot1click.us-east-1.amazonaws.com"}} - end - - it 'produces the expected output from the EndpointProvider' do - params = EndpointParameters.new(**{:region=>"us-east-1", :use_fips=>false, :use_dual_stack=>false}) - endpoint = subject.resolve_endpoint(params) - expect(endpoint.url).to eq(expected['endpoint']['url']) - expect(endpoint.headers).to eq(expected['endpoint']['headers'] || {}) - expect(endpoint.properties).to eq(expected['endpoint']['properties'] || {}) - end - end - - context "For region cn-north-1 with FIPS enabled and DualStack enabled" do - let(:expected) do - {"endpoint"=>{"url"=>"https://devices.iot1click-fips.cn-north-1.api.amazonwebservices.com.cn"}} - end - - it 'produces the expected output from the EndpointProvider' do - params = EndpointParameters.new(**{:region=>"cn-north-1", :use_fips=>true, :use_dual_stack=>true}) - endpoint = subject.resolve_endpoint(params) - expect(endpoint.url).to eq(expected['endpoint']['url']) - expect(endpoint.headers).to eq(expected['endpoint']['headers'] || {}) - expect(endpoint.properties).to eq(expected['endpoint']['properties'] || {}) - end - end - - context "For region cn-north-1 with FIPS enabled and DualStack disabled" do - let(:expected) do - {"endpoint"=>{"url"=>"https://devices.iot1click-fips.cn-north-1.amazonaws.com.cn"}} - end - - it 'produces the expected output from the EndpointProvider' do - params = EndpointParameters.new(**{:region=>"cn-north-1", :use_fips=>true, :use_dual_stack=>false}) - endpoint = subject.resolve_endpoint(params) - expect(endpoint.url).to eq(expected['endpoint']['url']) - expect(endpoint.headers).to eq(expected['endpoint']['headers'] || {}) - expect(endpoint.properties).to eq(expected['endpoint']['properties'] || {}) - end - end - - context "For region cn-north-1 with FIPS disabled and DualStack enabled" do - let(:expected) do - {"endpoint"=>{"url"=>"https://devices.iot1click.cn-north-1.api.amazonwebservices.com.cn"}} - end - - it 'produces the expected output from the EndpointProvider' do - params = EndpointParameters.new(**{:region=>"cn-north-1", :use_fips=>false, :use_dual_stack=>true}) - endpoint = subject.resolve_endpoint(params) - expect(endpoint.url).to eq(expected['endpoint']['url']) - expect(endpoint.headers).to eq(expected['endpoint']['headers'] || {}) - expect(endpoint.properties).to eq(expected['endpoint']['properties'] || {}) - end - end - - context "For region cn-north-1 with FIPS disabled and DualStack disabled" do - let(:expected) do - {"endpoint"=>{"url"=>"https://devices.iot1click.cn-north-1.amazonaws.com.cn"}} - end - - it 'produces the expected output from the EndpointProvider' do - params = EndpointParameters.new(**{:region=>"cn-north-1", :use_fips=>false, :use_dual_stack=>false}) - endpoint = subject.resolve_endpoint(params) - expect(endpoint.url).to eq(expected['endpoint']['url']) - expect(endpoint.headers).to eq(expected['endpoint']['headers'] || {}) - expect(endpoint.properties).to eq(expected['endpoint']['properties'] || {}) - end - end - - context "For region us-gov-east-1 with FIPS enabled and DualStack enabled" do - let(:expected) do - {"endpoint"=>{"url"=>"https://devices.iot1click-fips.us-gov-east-1.api.aws"}} - end - - it 'produces the expected output from the EndpointProvider' do - params = EndpointParameters.new(**{:region=>"us-gov-east-1", :use_fips=>true, :use_dual_stack=>true}) - endpoint = subject.resolve_endpoint(params) - expect(endpoint.url).to eq(expected['endpoint']['url']) - expect(endpoint.headers).to eq(expected['endpoint']['headers'] || {}) - expect(endpoint.properties).to eq(expected['endpoint']['properties'] || {}) - end - end - - context "For region us-gov-east-1 with FIPS enabled and DualStack disabled" do - let(:expected) do - {"endpoint"=>{"url"=>"https://devices.iot1click-fips.us-gov-east-1.amazonaws.com"}} - end - - it 'produces the expected output from the EndpointProvider' do - params = EndpointParameters.new(**{:region=>"us-gov-east-1", :use_fips=>true, :use_dual_stack=>false}) - endpoint = subject.resolve_endpoint(params) - expect(endpoint.url).to eq(expected['endpoint']['url']) - expect(endpoint.headers).to eq(expected['endpoint']['headers'] || {}) - expect(endpoint.properties).to eq(expected['endpoint']['properties'] || {}) - end - end - - context "For region us-gov-east-1 with FIPS disabled and DualStack enabled" do - let(:expected) do - {"endpoint"=>{"url"=>"https://devices.iot1click.us-gov-east-1.api.aws"}} - end - - it 'produces the expected output from the EndpointProvider' do - params = EndpointParameters.new(**{:region=>"us-gov-east-1", :use_fips=>false, :use_dual_stack=>true}) - endpoint = subject.resolve_endpoint(params) - expect(endpoint.url).to eq(expected['endpoint']['url']) - expect(endpoint.headers).to eq(expected['endpoint']['headers'] || {}) - expect(endpoint.properties).to eq(expected['endpoint']['properties'] || {}) - end - end - - context "For region us-gov-east-1 with FIPS disabled and DualStack disabled" do - let(:expected) do - {"endpoint"=>{"url"=>"https://devices.iot1click.us-gov-east-1.amazonaws.com"}} - end - - it 'produces the expected output from the EndpointProvider' do - params = EndpointParameters.new(**{:region=>"us-gov-east-1", :use_fips=>false, :use_dual_stack=>false}) - endpoint = subject.resolve_endpoint(params) - expect(endpoint.url).to eq(expected['endpoint']['url']) - expect(endpoint.headers).to eq(expected['endpoint']['headers'] || {}) - expect(endpoint.properties).to eq(expected['endpoint']['properties'] || {}) - end - end - - context "For region us-iso-east-1 with FIPS enabled and DualStack enabled" do - let(:expected) do - {"error"=>"FIPS and DualStack are enabled, but this partition does not support one or both"} - end - - it 'produces the expected output from the EndpointProvider' do - params = EndpointParameters.new(**{:region=>"us-iso-east-1", :use_fips=>true, :use_dual_stack=>true}) - expect do - subject.resolve_endpoint(params) - end.to raise_error(ArgumentError, expected['error']) - end - end - - context "For region us-iso-east-1 with FIPS enabled and DualStack disabled" do - let(:expected) do - {"endpoint"=>{"url"=>"https://devices.iot1click-fips.us-iso-east-1.c2s.ic.gov"}} - end - - it 'produces the expected output from the EndpointProvider' do - params = EndpointParameters.new(**{:region=>"us-iso-east-1", :use_fips=>true, :use_dual_stack=>false}) - endpoint = subject.resolve_endpoint(params) - expect(endpoint.url).to eq(expected['endpoint']['url']) - expect(endpoint.headers).to eq(expected['endpoint']['headers'] || {}) - expect(endpoint.properties).to eq(expected['endpoint']['properties'] || {}) - end - end - - context "For region us-iso-east-1 with FIPS disabled and DualStack enabled" do - let(:expected) do - {"error"=>"DualStack is enabled but this partition does not support DualStack"} - end - - it 'produces the expected output from the EndpointProvider' do - params = EndpointParameters.new(**{:region=>"us-iso-east-1", :use_fips=>false, :use_dual_stack=>true}) - expect do - subject.resolve_endpoint(params) - end.to raise_error(ArgumentError, expected['error']) - end - end - - context "For region us-iso-east-1 with FIPS disabled and DualStack disabled" do - let(:expected) do - {"endpoint"=>{"url"=>"https://devices.iot1click.us-iso-east-1.c2s.ic.gov"}} - end - - it 'produces the expected output from the EndpointProvider' do - params = EndpointParameters.new(**{:region=>"us-iso-east-1", :use_fips=>false, :use_dual_stack=>false}) - endpoint = subject.resolve_endpoint(params) - expect(endpoint.url).to eq(expected['endpoint']['url']) - expect(endpoint.headers).to eq(expected['endpoint']['headers'] || {}) - expect(endpoint.properties).to eq(expected['endpoint']['properties'] || {}) - end - end - - context "For region us-isob-east-1 with FIPS enabled and DualStack enabled" do - let(:expected) do - {"error"=>"FIPS and DualStack are enabled, but this partition does not support one or both"} - end - - it 'produces the expected output from the EndpointProvider' do - params = EndpointParameters.new(**{:region=>"us-isob-east-1", :use_fips=>true, :use_dual_stack=>true}) - expect do - subject.resolve_endpoint(params) - end.to raise_error(ArgumentError, expected['error']) - end - end - - context "For region us-isob-east-1 with FIPS enabled and DualStack disabled" do - let(:expected) do - {"endpoint"=>{"url"=>"https://devices.iot1click-fips.us-isob-east-1.sc2s.sgov.gov"}} - end - - it 'produces the expected output from the EndpointProvider' do - params = EndpointParameters.new(**{:region=>"us-isob-east-1", :use_fips=>true, :use_dual_stack=>false}) - endpoint = subject.resolve_endpoint(params) - expect(endpoint.url).to eq(expected['endpoint']['url']) - expect(endpoint.headers).to eq(expected['endpoint']['headers'] || {}) - expect(endpoint.properties).to eq(expected['endpoint']['properties'] || {}) - end - end - - context "For region us-isob-east-1 with FIPS disabled and DualStack enabled" do - let(:expected) do - {"error"=>"DualStack is enabled but this partition does not support DualStack"} - end - - it 'produces the expected output from the EndpointProvider' do - params = EndpointParameters.new(**{:region=>"us-isob-east-1", :use_fips=>false, :use_dual_stack=>true}) - expect do - subject.resolve_endpoint(params) - end.to raise_error(ArgumentError, expected['error']) - end - end - - context "For region us-isob-east-1 with FIPS disabled and DualStack disabled" do - let(:expected) do - {"endpoint"=>{"url"=>"https://devices.iot1click.us-isob-east-1.sc2s.sgov.gov"}} - end - - it 'produces the expected output from the EndpointProvider' do - params = EndpointParameters.new(**{:region=>"us-isob-east-1", :use_fips=>false, :use_dual_stack=>false}) - endpoint = subject.resolve_endpoint(params) - expect(endpoint.url).to eq(expected['endpoint']['url']) - expect(endpoint.headers).to eq(expected['endpoint']['headers'] || {}) - expect(endpoint.properties).to eq(expected['endpoint']['properties'] || {}) - end - end - - context "For custom endpoint with region set and fips disabled and dualstack disabled" do - let(:expected) do - {"endpoint"=>{"url"=>"https://example.com"}} - end - - it 'produces the expected output from the EndpointProvider' do - params = EndpointParameters.new(**{:region=>"us-east-1", :use_fips=>false, :use_dual_stack=>false, :endpoint=>"https://example.com"}) - endpoint = subject.resolve_endpoint(params) - expect(endpoint.url).to eq(expected['endpoint']['url']) - expect(endpoint.headers).to eq(expected['endpoint']['headers'] || {}) - expect(endpoint.properties).to eq(expected['endpoint']['properties'] || {}) - end - end - - context "For custom endpoint with region not set and fips disabled and dualstack disabled" do - let(:expected) do - {"endpoint"=>{"url"=>"https://example.com"}} - end - - it 'produces the expected output from the EndpointProvider' do - params = EndpointParameters.new(**{:use_fips=>false, :use_dual_stack=>false, :endpoint=>"https://example.com"}) - endpoint = subject.resolve_endpoint(params) - expect(endpoint.url).to eq(expected['endpoint']['url']) - expect(endpoint.headers).to eq(expected['endpoint']['headers'] || {}) - expect(endpoint.properties).to eq(expected['endpoint']['properties'] || {}) - end - end - - context "For custom endpoint with fips enabled and dualstack disabled" do - let(:expected) do - {"error"=>"Invalid Configuration: FIPS and custom endpoint are not supported"} - end - - it 'produces the expected output from the EndpointProvider' do - params = EndpointParameters.new(**{:region=>"us-east-1", :use_fips=>true, :use_dual_stack=>false, :endpoint=>"https://example.com"}) - expect do - subject.resolve_endpoint(params) - end.to raise_error(ArgumentError, expected['error']) - end - end - - context "For custom endpoint with fips disabled and dualstack enabled" do - let(:expected) do - {"error"=>"Invalid Configuration: Dualstack and custom endpoint are not supported"} - end - - it 'produces the expected output from the EndpointProvider' do - params = EndpointParameters.new(**{:region=>"us-east-1", :use_fips=>false, :use_dual_stack=>true, :endpoint=>"https://example.com"}) - expect do - subject.resolve_endpoint(params) - end.to raise_error(ArgumentError, expected['error']) - end - end - - context "Missing region" do - let(:expected) do - {"error"=>"Invalid Configuration: Missing Region"} - end - - it 'produces the expected output from the EndpointProvider' do - params = EndpointParameters.new(**{}) - expect do - subject.resolve_endpoint(params) - end.to raise_error(ArgumentError, expected['error']) - end - end - - end -end diff --git a/gems/aws-sdk-iot1clickdevicesservice/spec/spec_helper.rb b/gems/aws-sdk-iot1clickdevicesservice/spec/spec_helper.rb deleted file mode 100644 index dfe5b025aec..00000000000 --- a/gems/aws-sdk-iot1clickdevicesservice/spec/spec_helper.rb +++ /dev/null @@ -1,18 +0,0 @@ -# frozen_string_literal: true - -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -require_relative '../../aws-sdk-core/spec/shared_spec_helper' - -$:.unshift(File.expand_path('../../lib', __FILE__)) -$:.unshift(File.expand_path('../../../aws-sdk-core/lib', __FILE__)) -$:.unshift(File.expand_path('../../../aws-sigv4/lib', __FILE__)) - -require 'rspec' -require 'webmock/rspec' -require 'aws-sdk-iot1clickdevicesservice' diff --git a/gems/aws-sdk-iot1clickprojects/CHANGELOG.md b/gems/aws-sdk-iot1clickprojects/CHANGELOG.md deleted file mode 100644 index 11816155a88..00000000000 --- a/gems/aws-sdk-iot1clickprojects/CHANGELOG.md +++ /dev/null @@ -1,337 +0,0 @@ -Unreleased Changes ------------------- - -* Feature - IoT 1Click Projects has been removed from the SDK because it has been discontinued. - -1.64.0 (2024-11-06) ------------------- - -* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details. - -1.63.0 (2024-10-18) ------------------- - -* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details. - -1.62.0 (2024-09-24) ------------------- - -* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details. - -1.61.0 (2024-09-23) ------------------- - -* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details. - -1.60.0 (2024-09-20) ------------------- - -* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details. - -1.59.0 (2024-09-11) ------------------- - -* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details. - -1.58.0 (2024-09-10) ------------------- - -* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details. - -1.57.0 (2024-09-03) ------------------- - -* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details. - -1.56.0 (2024-07-02) ------------------- - -* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details. - -1.55.0 (2024-06-28) ------------------- - -* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details. - -1.54.0 (2024-06-25) ------------------- - -* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details. - -1.53.0 (2024-06-24) ------------------- - -* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details. - -1.52.0 (2024-06-05) ------------------- - -* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details. - -1.51.0 (2024-05-13) ------------------- - -* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details. - -1.50.0 (2024-04-25) ------------------- - -* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details. - -1.49.0 (2024-01-26) ------------------- - -* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details. - -1.48.0 (2023-11-28) ------------------- - -* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details. - -1.47.0 (2023-11-22) ------------------- - -* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details. - -1.46.0 (2023-09-27) ------------------- - -* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details. - -1.45.0 (2023-09-19) ------------------- - -* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details. - -1.44.0 (2023-07-11) ------------------- - -* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details. - -1.43.0 (2023-07-06) ------------------- - -* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details. - -1.42.0 (2023-06-28) ------------------- - -* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details. - -1.41.0 (2023-06-15) ------------------- - -* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details. - -1.40.0 (2023-05-31) ------------------- - -* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details. - -1.39.0 (2023-01-18) ------------------- - -* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details. - -* Issue - Replace runtime endpoint resolution approach with generated ruby code. - -1.38.0 (2022-10-25) ------------------- - -* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details. - -1.37.0 (2022-02-24) ------------------- - -* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details. - -1.36.0 (2022-02-03) ------------------- - -* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details. - -1.35.0 (2021-12-21) ------------------- - -* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details. - -1.34.0 (2021-11-30) ------------------- - -* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details. - -1.33.0 (2021-11-04) ------------------- - -* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details. - -1.32.0 (2021-10-18) ------------------- - -* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details. - -1.31.0 (2021-09-01) ------------------- - -* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details. - -1.30.0 (2021-07-30) ------------------- - -* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details. - -1.29.0 (2021-07-28) ------------------- - -* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details. - -1.28.0 (2021-03-10) ------------------- - -* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details. - -1.27.0 (2021-02-02) ------------------- - -* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details. - -1.26.0 (2020-09-30) ------------------- - -* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details. - -1.25.0 (2020-09-15) ------------------- - -* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details. - -1.24.0 (2020-08-25) ------------------- - -* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details. - -1.23.0 (2020-06-23) ------------------- - -* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details. - -1.22.1 (2020-06-11) ------------------- - -* Issue - Republish previous version with correct dependency on `aws-sdk-core`. - -1.22.0 (2020-06-10) ------------------- - -* Issue - This version has been yanked. (#2327). -* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details. - -1.21.0 (2020-05-28) ------------------- - -* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details. - -1.20.0 (2020-05-07) ------------------- - -* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details. - -1.19.0 (2020-03-09) ------------------- - -* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details. - -1.18.0 (2019-10-23) ------------------- - -* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details. - -1.17.0 (2019-07-25) ------------------- - -* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details. - -1.16.0 (2019-07-01) ------------------- - -* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details. - -1.15.0 (2019-06-17) ------------------- - -* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details. - -1.14.0 (2019-05-21) ------------------- - -* Feature - API update. - -1.13.0 (2019-05-15) ------------------- - -* Feature - API update. - -1.12.0 (2019-05-14) ------------------- - -* Feature - API update. - -1.11.0 (2019-05-08) ------------------- - -* Feature - API update. - -1.10.0 (2019-03-22) ------------------- - -* Feature - API update. - -1.9.0 (2019-03-21) ------------------- - -* Feature - API update. - -1.8.0 (2019-03-18) ------------------- - -* Feature - API update. - -1.7.0 (2019-03-14) ------------------- - -* Feature - API update. - -1.6.0 (2018-11-20) ------------------- - -* Feature - API update. - -1.5.0 (2018-10-24) ------------------- - -* Feature - API update. - -1.4.0 (2018-10-23) ------------------- - -* Feature - API update. - -1.3.0 (2018-09-06) ------------------- - -* Feature - Adds code paths and plugins for future SDK instrumentation and telemetry. - -1.2.0 (2018-09-05) ------------------- - -* Feature - API update. - -1.1.0 (2018-06-26) ------------------- - -* Feature - API update. - -1.0.0 (2018-05-14) ------------------- - -* Feature - Initial release of `aws-sdk-iot1clickprojects`. diff --git a/gems/aws-sdk-iot1clickprojects/LICENSE.txt b/gems/aws-sdk-iot1clickprojects/LICENSE.txt deleted file mode 100644 index d6456956733..00000000000 --- a/gems/aws-sdk-iot1clickprojects/LICENSE.txt +++ /dev/null @@ -1,202 +0,0 @@ - - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright [yyyy] [name of copyright owner] - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/gems/aws-sdk-iot1clickprojects/VERSION b/gems/aws-sdk-iot1clickprojects/VERSION deleted file mode 100644 index 9405730420f..00000000000 --- a/gems/aws-sdk-iot1clickprojects/VERSION +++ /dev/null @@ -1 +0,0 @@ -1.64.0 diff --git a/gems/aws-sdk-iot1clickprojects/aws-sdk-iot1clickprojects.gemspec b/gems/aws-sdk-iot1clickprojects/aws-sdk-iot1clickprojects.gemspec deleted file mode 100644 index e5bf8f3ef79..00000000000 --- a/gems/aws-sdk-iot1clickprojects/aws-sdk-iot1clickprojects.gemspec +++ /dev/null @@ -1,32 +0,0 @@ -# frozen_string_literal: true - -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -Gem::Specification.new do |spec| - - spec.name = 'aws-sdk-iot1clickprojects' - spec.version = File.read(File.expand_path('../VERSION', __FILE__)).strip - spec.summary = 'AWS SDK for Ruby - AWS IoT 1-Click Projects' - spec.description = 'Official AWS Ruby gem for AWS IoT 1-Click Projects Service (AWS IoT 1-Click Projects). This gem is part of the AWS SDK for Ruby.' - spec.author = 'Amazon Web Services' - spec.homepage = 'https://github.com/aws/aws-sdk-ruby' - spec.license = 'Apache-2.0' - spec.email = ['aws-dr-rubygems@amazon.com'] - spec.require_paths = ['lib'] - spec.files = Dir["LICENSE.txt", "CHANGELOG.md", "VERSION", "lib/**/*.rb", "sig/**/*.rbs"] - - spec.metadata = { - 'source_code_uri' => 'https://github.com/aws/aws-sdk-ruby/tree/version-3/gems/aws-sdk-iot1clickprojects', - 'changelog_uri' => 'https://github.com/aws/aws-sdk-ruby/tree/version-3/gems/aws-sdk-iot1clickprojects/CHANGELOG.md' - } - - spec.add_dependency('aws-sdk-core', '~> 3', '>= 3.210.0') - spec.add_dependency('aws-sigv4', '~> 1.5') - - spec.required_ruby_version = '>= 2.5' -end diff --git a/gems/aws-sdk-iot1clickprojects/features/env.rb b/gems/aws-sdk-iot1clickprojects/features/env.rb deleted file mode 100644 index 2fdae8b515c..00000000000 --- a/gems/aws-sdk-iot1clickprojects/features/env.rb +++ /dev/null @@ -1,18 +0,0 @@ -# frozen_string_literal: true - -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -$:.unshift(File.expand_path('../../lib', __FILE__)) -$:.unshift(File.expand_path('../../../aws-sdk-core/features', __FILE__)) -$:.unshift(File.expand_path('../../../aws-sdk-core/lib', __FILE__)) -$:.unshift(File.expand_path('../../../aws-sigv4/lib', __FILE__)) - -require 'features_helper' -require 'aws-sdk-iot1clickprojects' - -Aws::IoT1ClickProjects::Client.add_plugin(ApiCallTracker) diff --git a/gems/aws-sdk-iot1clickprojects/features/step_definitions.rb b/gems/aws-sdk-iot1clickprojects/features/step_definitions.rb deleted file mode 100644 index e7c0ce56c8d..00000000000 --- a/gems/aws-sdk-iot1clickprojects/features/step_definitions.rb +++ /dev/null @@ -1,10 +0,0 @@ -# frozen_string_literal: true - -Before("@iot1clickprojects") do - @service = Aws::IoT1ClickProjects::Resource.new - @client = @service.client -end - -After("@iot1clickprojects") do - # shared cleanup logic -end diff --git a/gems/aws-sdk-iot1clickprojects/lib/aws-sdk-iot1clickprojects.rb b/gems/aws-sdk-iot1clickprojects/lib/aws-sdk-iot1clickprojects.rb deleted file mode 100644 index 467e43bbfb4..00000000000 --- a/gems/aws-sdk-iot1clickprojects/lib/aws-sdk-iot1clickprojects.rb +++ /dev/null @@ -1,61 +0,0 @@ -# frozen_string_literal: true - -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - - -require 'aws-sdk-core' -require 'aws-sigv4' - -Aws::Plugins::GlobalConfiguration.add_identifier(:iot1clickprojects) - -# This module provides support for AWS IoT 1-Click Projects Service. This module is available in the -# `aws-sdk-iot1clickprojects` gem. -# -# # Client -# -# The {Client} class provides one method for each API operation. Operation -# methods each accept a hash of request parameters and return a response -# structure. -# -# io_t1_click_projects = Aws::IoT1ClickProjects::Client.new -# resp = io_t1_click_projects.associate_device_with_placement(params) -# -# See {Client} for more information. -# -# # Errors -# -# Errors returned from AWS IoT 1-Click Projects Service are defined in the -# {Errors} module and all extend {Errors::ServiceError}. -# -# begin -# # do stuff -# rescue Aws::IoT1ClickProjects::Errors::ServiceError -# # rescues all AWS IoT 1-Click Projects Service API errors -# end -# -# See {Errors} for more information. -# -# @!group service -module Aws::IoT1ClickProjects - autoload :Types, 'aws-sdk-iot1clickprojects/types' - autoload :ClientApi, 'aws-sdk-iot1clickprojects/client_api' - module Plugins - autoload :Endpoints, 'aws-sdk-iot1clickprojects/plugins/endpoints.rb' - end - autoload :Client, 'aws-sdk-iot1clickprojects/client' - autoload :Errors, 'aws-sdk-iot1clickprojects/errors' - autoload :Resource, 'aws-sdk-iot1clickprojects/resource' - autoload :EndpointParameters, 'aws-sdk-iot1clickprojects/endpoint_parameters' - autoload :EndpointProvider, 'aws-sdk-iot1clickprojects/endpoint_provider' - autoload :Endpoints, 'aws-sdk-iot1clickprojects/endpoints' - - GEM_VERSION = '1.64.0' - -end - -require_relative 'aws-sdk-iot1clickprojects/customizations' diff --git a/gems/aws-sdk-iot1clickprojects/lib/aws-sdk-iot1clickprojects/client.rb b/gems/aws-sdk-iot1clickprojects/lib/aws-sdk-iot1clickprojects/client.rb deleted file mode 100644 index dab544d0919..00000000000 --- a/gems/aws-sdk-iot1clickprojects/lib/aws-sdk-iot1clickprojects/client.rb +++ /dev/null @@ -1,1055 +0,0 @@ -# frozen_string_literal: true - -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -require 'seahorse/client/plugins/content_length.rb' -require 'aws-sdk-core/plugins/credentials_configuration.rb' -require 'aws-sdk-core/plugins/logging.rb' -require 'aws-sdk-core/plugins/param_converter.rb' -require 'aws-sdk-core/plugins/param_validator.rb' -require 'aws-sdk-core/plugins/user_agent.rb' -require 'aws-sdk-core/plugins/helpful_socket_errors.rb' -require 'aws-sdk-core/plugins/retry_errors.rb' -require 'aws-sdk-core/plugins/global_configuration.rb' -require 'aws-sdk-core/plugins/regional_endpoint.rb' -require 'aws-sdk-core/plugins/endpoint_discovery.rb' -require 'aws-sdk-core/plugins/endpoint_pattern.rb' -require 'aws-sdk-core/plugins/response_paging.rb' -require 'aws-sdk-core/plugins/stub_responses.rb' -require 'aws-sdk-core/plugins/idempotency_token.rb' -require 'aws-sdk-core/plugins/invocation_id.rb' -require 'aws-sdk-core/plugins/jsonvalue_converter.rb' -require 'aws-sdk-core/plugins/client_metrics_plugin.rb' -require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb' -require 'aws-sdk-core/plugins/transfer_encoding.rb' -require 'aws-sdk-core/plugins/http_checksum.rb' -require 'aws-sdk-core/plugins/checksum_algorithm.rb' -require 'aws-sdk-core/plugins/request_compression.rb' -require 'aws-sdk-core/plugins/defaults_mode.rb' -require 'aws-sdk-core/plugins/recursion_detection.rb' -require 'aws-sdk-core/plugins/telemetry.rb' -require 'aws-sdk-core/plugins/sign.rb' -require 'aws-sdk-core/plugins/protocols/rest_json.rb' - -module Aws::IoT1ClickProjects - # An API client for IoT1ClickProjects. To construct a client, you need to configure a `:region` and `:credentials`. - # - # client = Aws::IoT1ClickProjects::Client.new( - # region: region_name, - # credentials: credentials, - # # ... - # ) - # - # For details on configuring region and credentials see - # the [developer guide](/sdk-for-ruby/v3/developer-guide/setup-config.html). - # - # See {#initialize} for a full list of supported configuration options. - class Client < Seahorse::Client::Base - - include Aws::ClientStubs - - @identifier = :iot1clickprojects - - set_api(ClientApi::API) - - add_plugin(Seahorse::Client::Plugins::ContentLength) - add_plugin(Aws::Plugins::CredentialsConfiguration) - add_plugin(Aws::Plugins::Logging) - add_plugin(Aws::Plugins::ParamConverter) - add_plugin(Aws::Plugins::ParamValidator) - add_plugin(Aws::Plugins::UserAgent) - add_plugin(Aws::Plugins::HelpfulSocketErrors) - add_plugin(Aws::Plugins::RetryErrors) - add_plugin(Aws::Plugins::GlobalConfiguration) - add_plugin(Aws::Plugins::RegionalEndpoint) - add_plugin(Aws::Plugins::EndpointDiscovery) - add_plugin(Aws::Plugins::EndpointPattern) - add_plugin(Aws::Plugins::ResponsePaging) - add_plugin(Aws::Plugins::StubResponses) - add_plugin(Aws::Plugins::IdempotencyToken) - add_plugin(Aws::Plugins::InvocationId) - add_plugin(Aws::Plugins::JsonvalueConverter) - add_plugin(Aws::Plugins::ClientMetricsPlugin) - add_plugin(Aws::Plugins::ClientMetricsSendPlugin) - add_plugin(Aws::Plugins::TransferEncoding) - add_plugin(Aws::Plugins::HttpChecksum) - add_plugin(Aws::Plugins::ChecksumAlgorithm) - add_plugin(Aws::Plugins::RequestCompression) - add_plugin(Aws::Plugins::DefaultsMode) - add_plugin(Aws::Plugins::RecursionDetection) - add_plugin(Aws::Plugins::Telemetry) - add_plugin(Aws::Plugins::Sign) - add_plugin(Aws::Plugins::Protocols::RestJson) - add_plugin(Aws::IoT1ClickProjects::Plugins::Endpoints) - - # @overload initialize(options) - # @param [Hash] options - # - # @option options [Array] :plugins ([]]) - # A list of plugins to apply to the client. Each plugin is either a - # class name or an instance of a plugin class. - # - # @option options [required, Aws::CredentialProvider] :credentials - # Your AWS credentials. This can be an instance of any one of the - # following classes: - # - # * `Aws::Credentials` - Used for configuring static, non-refreshing - # credentials. - # - # * `Aws::SharedCredentials` - Used for loading static credentials from a - # shared file, such as `~/.aws/config`. - # - # * `Aws::AssumeRoleCredentials` - Used when you need to assume a role. - # - # * `Aws::AssumeRoleWebIdentityCredentials` - Used when you need to - # assume a role after providing credentials via the web. - # - # * `Aws::SSOCredentials` - Used for loading credentials from AWS SSO using an - # access token generated from `aws login`. - # - # * `Aws::ProcessCredentials` - Used for loading credentials from a - # process that outputs to stdout. - # - # * `Aws::InstanceProfileCredentials` - Used for loading credentials - # from an EC2 IMDS on an EC2 instance. - # - # * `Aws::ECSCredentials` - Used for loading credentials from - # instances running in ECS. - # - # * `Aws::CognitoIdentityCredentials` - Used for loading credentials - # from the Cognito Identity service. - # - # When `:credentials` are not configured directly, the following - # locations will be searched for credentials: - # - # * `Aws.config[:credentials]` - # * The `:access_key_id`, `:secret_access_key`, `:session_token`, and - # `:account_id` options. - # * ENV['AWS_ACCESS_KEY_ID'], ENV['AWS_SECRET_ACCESS_KEY'], - # ENV['AWS_SESSION_TOKEN'], and ENV['AWS_ACCOUNT_ID'] - # * `~/.aws/credentials` - # * `~/.aws/config` - # * EC2/ECS IMDS instance profile - When used by default, the timeouts - # are very aggressive. Construct and pass an instance of - # `Aws::InstanceProfileCredentials` or `Aws::ECSCredentials` to - # enable retries and extended timeouts. Instance profile credential - # fetching can be disabled by setting ENV['AWS_EC2_METADATA_DISABLED'] - # to true. - # - # @option options [required, String] :region - # The AWS region to connect to. The configured `:region` is - # used to determine the service `:endpoint`. When not passed, - # a default `:region` is searched for in the following locations: - # - # * `Aws.config[:region]` - # * `ENV['AWS_REGION']` - # * `ENV['AMAZON_REGION']` - # * `ENV['AWS_DEFAULT_REGION']` - # * `~/.aws/credentials` - # * `~/.aws/config` - # - # @option options [String] :access_key_id - # - # @option options [String] :account_id - # - # @option options [Boolean] :active_endpoint_cache (false) - # When set to `true`, a thread polling for endpoints will be running in - # the background every 60 secs (default). Defaults to `false`. - # - # @option options [Boolean] :adaptive_retry_wait_to_fill (true) - # Used only in `adaptive` retry mode. When true, the request will sleep - # until there is sufficent client side capacity to retry the request. - # When false, the request will raise a `RetryCapacityNotAvailableError` and will - # not retry instead of sleeping. - # - # @option options [Boolean] :client_side_monitoring (false) - # When `true`, client-side metrics will be collected for all API requests from - # this client. - # - # @option options [String] :client_side_monitoring_client_id ("") - # Allows you to provide an identifier for this client which will be attached to - # all generated client side metrics. Defaults to an empty string. - # - # @option options [String] :client_side_monitoring_host ("127.0.0.1") - # Allows you to specify the DNS hostname or IPv4 or IPv6 address that the client - # side monitoring agent is running on, where client metrics will be published via UDP. - # - # @option options [Integer] :client_side_monitoring_port (31000) - # Required for publishing client metrics. The port that the client side monitoring - # agent is running on, where client metrics will be published via UDP. - # - # @option options [Aws::ClientSideMonitoring::Publisher] :client_side_monitoring_publisher (Aws::ClientSideMonitoring::Publisher) - # Allows you to provide a custom client-side monitoring publisher class. By default, - # will use the Client Side Monitoring Agent Publisher. - # - # @option options [Boolean] :convert_params (true) - # When `true`, an attempt is made to coerce request parameters into - # the required types. - # - # @option options [Boolean] :correct_clock_skew (true) - # Used only in `standard` and adaptive retry modes. Specifies whether to apply - # a clock skew correction and retry requests with skewed client clocks. - # - # @option options [String] :defaults_mode ("legacy") - # See {Aws::DefaultsModeConfiguration} for a list of the - # accepted modes and the configuration defaults that are included. - # - # @option options [Boolean] :disable_host_prefix_injection (false) - # Set to true to disable SDK automatically adding host prefix - # to default service endpoint when available. - # - # @option options [Boolean] :disable_request_compression (false) - # When set to 'true' the request body will not be compressed - # for supported operations. - # - # @option options [String, URI::HTTPS, URI::HTTP] :endpoint - # Normally you should not configure the `:endpoint` option - # directly. This is normally constructed from the `:region` - # option. Configuring `:endpoint` is normally reserved for - # connecting to test or custom endpoints. The endpoint should - # be a URI formatted like: - # - # 'http://example.com' - # 'https://example.com' - # 'http://example.com:123' - # - # @option options [Integer] :endpoint_cache_max_entries (1000) - # Used for the maximum size limit of the LRU cache storing endpoints data - # for endpoint discovery enabled operations. Defaults to 1000. - # - # @option options [Integer] :endpoint_cache_max_threads (10) - # Used for the maximum threads in use for polling endpoints to be cached, defaults to 10. - # - # @option options [Integer] :endpoint_cache_poll_interval (60) - # When :endpoint_discovery and :active_endpoint_cache is enabled, - # Use this option to config the time interval in seconds for making - # requests fetching endpoints information. Defaults to 60 sec. - # - # @option options [Boolean] :endpoint_discovery (false) - # When set to `true`, endpoint discovery will be enabled for operations when available. - # - # @option options [Boolean] :ignore_configured_endpoint_urls - # Setting to true disables use of endpoint URLs provided via environment - # variables and the shared configuration file. - # - # @option options [Aws::Log::Formatter] :log_formatter (Aws::Log::Formatter.default) - # The log formatter. - # - # @option options [Symbol] :log_level (:info) - # The log level to send messages to the `:logger` at. - # - # @option options [Logger] :logger - # The Logger instance to send log messages to. If this option - # is not set, logging will be disabled. - # - # @option options [Integer] :max_attempts (3) - # An integer representing the maximum number attempts that will be made for - # a single request, including the initial attempt. For example, - # setting this value to 5 will result in a request being retried up to - # 4 times. Used in `standard` and `adaptive` retry modes. - # - # @option options [String] :profile ("default") - # Used when loading credentials from the shared credentials file - # at HOME/.aws/credentials. When not specified, 'default' is used. - # - # @option options [Integer] :request_min_compression_size_bytes (10240) - # The minimum size in bytes that triggers compression for request - # bodies. The value must be non-negative integer value between 0 - # and 10485780 bytes inclusive. - # - # @option options [Proc] :retry_backoff - # A proc or lambda used for backoff. Defaults to 2**retries * retry_base_delay. - # This option is only used in the `legacy` retry mode. - # - # @option options [Float] :retry_base_delay (0.3) - # The base delay in seconds used by the default backoff function. This option - # is only used in the `legacy` retry mode. - # - # @option options [Symbol] :retry_jitter (:none) - # A delay randomiser function used by the default backoff function. - # Some predefined functions can be referenced by name - :none, :equal, :full, - # otherwise a Proc that takes and returns a number. This option is only used - # in the `legacy` retry mode. - # - # @see https://www.awsarchitectureblog.com/2015/03/backoff.html - # - # @option options [Integer] :retry_limit (3) - # The maximum number of times to retry failed requests. Only - # ~ 500 level server errors and certain ~ 400 level client errors - # are retried. Generally, these are throttling errors, data - # checksum errors, networking errors, timeout errors, auth errors, - # endpoint discovery, and errors from expired credentials. - # This option is only used in the `legacy` retry mode. - # - # @option options [Integer] :retry_max_delay (0) - # The maximum number of seconds to delay between retries (0 for no limit) - # used by the default backoff function. This option is only used in the - # `legacy` retry mode. - # - # @option options [String] :retry_mode ("legacy") - # Specifies which retry algorithm to use. Values are: - # - # * `legacy` - The pre-existing retry behavior. This is default value if - # no retry mode is provided. - # - # * `standard` - A standardized set of retry rules across the AWS SDKs. - # This includes support for retry quotas, which limit the number of - # unsuccessful retries a client can make. - # - # * `adaptive` - An experimental retry mode that includes all the - # functionality of `standard` mode along with automatic client side - # throttling. This is a provisional mode that may change behavior - # in the future. - # - # @option options [String] :sdk_ua_app_id - # A unique and opaque application ID that is appended to the - # User-Agent header as app/sdk_ua_app_id. It should have a - # maximum length of 50. This variable is sourced from environment - # variable AWS_SDK_UA_APP_ID or the shared config profile attribute sdk_ua_app_id. - # - # @option options [String] :secret_access_key - # - # @option options [String] :session_token - # - # @option options [Array] :sigv4a_signing_region_set - # A list of regions that should be signed with SigV4a signing. When - # not passed, a default `:sigv4a_signing_region_set` is searched for - # in the following locations: - # - # * `Aws.config[:sigv4a_signing_region_set]` - # * `ENV['AWS_SIGV4A_SIGNING_REGION_SET']` - # * `~/.aws/config` - # - # @option options [Boolean] :stub_responses (false) - # Causes the client to return stubbed responses. By default - # fake responses are generated and returned. You can specify - # the response data to return or errors to raise by calling - # {ClientStubs#stub_responses}. See {ClientStubs} for more information. - # - # ** Please note ** When response stubbing is enabled, no HTTP - # requests are made, and retries are disabled. - # - # @option options [Aws::Telemetry::TelemetryProviderBase] :telemetry_provider (Aws::Telemetry::NoOpTelemetryProvider) - # Allows you to provide a telemetry provider, which is used to - # emit telemetry data. By default, uses `NoOpTelemetryProvider` which - # will not record or emit any telemetry data. The SDK supports the - # following telemetry providers: - # - # * OpenTelemetry (OTel) - To use the OTel provider, install and require the - # `opentelemetry-sdk` gem and then, pass in an instance of a - # `Aws::Telemetry::OTelProvider` for telemetry provider. - # - # @option options [Aws::TokenProvider] :token_provider - # A Bearer Token Provider. This can be an instance of any one of the - # following classes: - # - # * `Aws::StaticTokenProvider` - Used for configuring static, non-refreshing - # tokens. - # - # * `Aws::SSOTokenProvider` - Used for loading tokens from AWS SSO using an - # access token generated from `aws login`. - # - # When `:token_provider` is not configured directly, the `Aws::TokenProviderChain` - # will be used to search for tokens configured for your profile in shared configuration files. - # - # @option options [Boolean] :use_dualstack_endpoint - # When set to `true`, dualstack enabled endpoints (with `.aws` TLD) - # will be used if available. - # - # @option options [Boolean] :use_fips_endpoint - # When set to `true`, fips compatible endpoints will be used if available. - # When a `fips` region is used, the region is normalized and this config - # is set to `true`. - # - # @option options [Boolean] :validate_params (true) - # When `true`, request parameters are validated before - # sending the request. - # - # @option options [Aws::IoT1ClickProjects::EndpointProvider] :endpoint_provider - # The endpoint provider used to resolve endpoints. Any object that responds to - # `#resolve_endpoint(parameters)` where `parameters` is a Struct similar to - # `Aws::IoT1ClickProjects::EndpointParameters`. - # - # @option options [Float] :http_continue_timeout (1) - # The number of seconds to wait for a 100-continue response before sending the - # request body. This option has no effect unless the request has "Expect" - # header set to "100-continue". Defaults to `nil` which disables this - # behaviour. This value can safely be set per request on the session. - # - # @option options [Float] :http_idle_timeout (5) - # The number of seconds a connection is allowed to sit idle before it - # is considered stale. Stale connections are closed and removed from the - # pool before making a request. - # - # @option options [Float] :http_open_timeout (15) - # The default number of seconds to wait for response data. - # This value can safely be set per-request on the session. - # - # @option options [URI::HTTP,String] :http_proxy - # A proxy to send requests through. Formatted like 'http://proxy.com:123'. - # - # @option options [Float] :http_read_timeout (60) - # The default number of seconds to wait for response data. - # This value can safely be set per-request on the session. - # - # @option options [Boolean] :http_wire_trace (false) - # When `true`, HTTP debug output will be sent to the `:logger`. - # - # @option options [Proc] :on_chunk_received - # When a Proc object is provided, it will be used as callback when each chunk - # of the response body is received. It provides three arguments: the chunk, - # the number of bytes received, and the total number of - # bytes in the response (or nil if the server did not send a `content-length`). - # - # @option options [Proc] :on_chunk_sent - # When a Proc object is provided, it will be used as callback when each chunk - # of the request body is sent. It provides three arguments: the chunk, - # the number of bytes read from the body, and the total number of - # bytes in the body. - # - # @option options [Boolean] :raise_response_errors (true) - # When `true`, response errors are raised. - # - # @option options [String] :ssl_ca_bundle - # Full path to the SSL certificate authority bundle file that should be used when - # verifying peer certificates. If you do not pass `:ssl_ca_bundle` or - # `:ssl_ca_directory` the the system default will be used if available. - # - # @option options [String] :ssl_ca_directory - # Full path of the directory that contains the unbundled SSL certificate - # authority files for verifying peer certificates. If you do - # not pass `:ssl_ca_bundle` or `:ssl_ca_directory` the the system - # default will be used if available. - # - # @option options [String] :ssl_ca_store - # Sets the X509::Store to verify peer certificate. - # - # @option options [OpenSSL::X509::Certificate] :ssl_cert - # Sets a client certificate when creating http connections. - # - # @option options [OpenSSL::PKey] :ssl_key - # Sets a client key when creating http connections. - # - # @option options [Float] :ssl_timeout - # Sets the SSL timeout in seconds - # - # @option options [Boolean] :ssl_verify_peer (true) - # When `true`, SSL peer certificates are verified when establishing a connection. - # - def initialize(*args) - super - end - - # @!group API Operations - - # Associates a physical device with a placement. - # - # @option params [required, String] :project_name - # The name of the project containing the placement in which to associate - # the device. - # - # @option params [required, String] :placement_name - # The name of the placement in which to associate the device. - # - # @option params [required, String] :device_id - # The ID of the physical device to be associated with the given - # placement in the project. Note that a mandatory 4 character prefix is - # required for all `deviceId` values. - # - # @option params [required, String] :device_template_name - # The device template name to associate with the device ID. - # - # @return [Struct] Returns an empty {Seahorse::Client::Response response}. - # - # @example Request syntax with placeholder values - # - # resp = client.associate_device_with_placement({ - # project_name: "ProjectName", # required - # placement_name: "PlacementName", # required - # device_id: "DeviceId", # required - # device_template_name: "DeviceTemplateName", # required - # }) - # - # @overload associate_device_with_placement(params = {}) - # @param [Hash] params ({}) - def associate_device_with_placement(params = {}, options = {}) - req = build_request(:associate_device_with_placement, params) - req.send_request(options) - end - - # Creates an empty placement. - # - # @option params [required, String] :placement_name - # The name of the placement to be created. - # - # @option params [required, String] :project_name - # The name of the project in which to create the placement. - # - # @option params [Hash] :attributes - # Optional user-defined key/value pairs providing contextual data (such - # as location or function) for the placement. - # - # @return [Struct] Returns an empty {Seahorse::Client::Response response}. - # - # @example Request syntax with placeholder values - # - # resp = client.create_placement({ - # placement_name: "PlacementName", # required - # project_name: "ProjectName", # required - # attributes: { - # "AttributeName" => "AttributeValue", - # }, - # }) - # - # @overload create_placement(params = {}) - # @param [Hash] params ({}) - def create_placement(params = {}, options = {}) - req = build_request(:create_placement, params) - req.send_request(options) - end - - # Creates an empty project with a placement template. A project contains - # zero or more placements that adhere to the placement template defined - # in the project. - # - # @option params [required, String] :project_name - # The name of the project to create. - # - # @option params [String] :description - # An optional description for the project. - # - # @option params [Types::PlacementTemplate] :placement_template - # The schema defining the placement to be created. A placement template - # defines placement default attributes and device templates. You cannot - # add or remove device templates after the project has been created. - # However, you can update `callbackOverrides` for the device templates - # using the `UpdateProject` API. - # - # @option params [Hash] :tags - # Optional tags (metadata key/value pairs) to be associated with the - # project. For example, `{ {"key1": "value1", "key2": "value2"} }`. For - # more information, see [AWS Tagging Strategies][1]. - # - # - # - # [1]: https://aws.amazon.com/answers/account-management/aws-tagging-strategies/ - # - # @return [Struct] Returns an empty {Seahorse::Client::Response response}. - # - # @example Request syntax with placeholder values - # - # resp = client.create_project({ - # project_name: "ProjectName", # required - # description: "Description", - # placement_template: { - # default_attributes: { - # "AttributeName" => "AttributeDefaultValue", - # }, - # device_templates: { - # "DeviceTemplateName" => { - # device_type: "DeviceType", - # callback_overrides: { - # "DeviceCallbackKey" => "DeviceCallbackValue", - # }, - # }, - # }, - # }, - # tags: { - # "TagKey" => "TagValue", - # }, - # }) - # - # @overload create_project(params = {}) - # @param [Hash] params ({}) - def create_project(params = {}, options = {}) - req = build_request(:create_project, params) - req.send_request(options) - end - - # Deletes a placement. To delete a placement, it must not have any - # devices associated with it. - # - # When you delete a placement, all associated data becomes - # irretrievable. - # - # - # - # @option params [required, String] :placement_name - # The name of the empty placement to delete. - # - # @option params [required, String] :project_name - # The project containing the empty placement to delete. - # - # @return [Struct] Returns an empty {Seahorse::Client::Response response}. - # - # @example Request syntax with placeholder values - # - # resp = client.delete_placement({ - # placement_name: "PlacementName", # required - # project_name: "ProjectName", # required - # }) - # - # @overload delete_placement(params = {}) - # @param [Hash] params ({}) - def delete_placement(params = {}, options = {}) - req = build_request(:delete_placement, params) - req.send_request(options) - end - - # Deletes a project. To delete a project, it must not have any - # placements associated with it. - # - # When you delete a project, all associated data becomes irretrievable. - # - # - # - # @option params [required, String] :project_name - # The name of the empty project to delete. - # - # @return [Struct] Returns an empty {Seahorse::Client::Response response}. - # - # @example Request syntax with placeholder values - # - # resp = client.delete_project({ - # project_name: "ProjectName", # required - # }) - # - # @overload delete_project(params = {}) - # @param [Hash] params ({}) - def delete_project(params = {}, options = {}) - req = build_request(:delete_project, params) - req.send_request(options) - end - - # Describes a placement in a project. - # - # @option params [required, String] :placement_name - # The name of the placement within a project. - # - # @option params [required, String] :project_name - # The project containing the placement to be described. - # - # @return [Types::DescribePlacementResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods: - # - # * {Types::DescribePlacementResponse#placement #placement} => Types::PlacementDescription - # - # @example Request syntax with placeholder values - # - # resp = client.describe_placement({ - # placement_name: "PlacementName", # required - # project_name: "ProjectName", # required - # }) - # - # @example Response structure - # - # resp.placement.project_name #=> String - # resp.placement.placement_name #=> String - # resp.placement.attributes #=> Hash - # resp.placement.attributes["AttributeName"] #=> - # resp.placement.created_date #=> Time - # resp.placement.updated_date #=> Time - # - # @overload describe_placement(params = {}) - # @param [Hash] params ({}) - def describe_placement(params = {}, options = {}) - req = build_request(:describe_placement, params) - req.send_request(options) - end - - # Returns an object describing a project. - # - # @option params [required, String] :project_name - # The name of the project to be described. - # - # @return [Types::DescribeProjectResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods: - # - # * {Types::DescribeProjectResponse#project #project} => Types::ProjectDescription - # - # @example Request syntax with placeholder values - # - # resp = client.describe_project({ - # project_name: "ProjectName", # required - # }) - # - # @example Response structure - # - # resp.project.arn #=> String - # resp.project.project_name #=> String - # resp.project.description #=> String - # resp.project.created_date #=> Time - # resp.project.updated_date #=> Time - # resp.project.placement_template.default_attributes #=> Hash - # resp.project.placement_template.default_attributes["AttributeName"] #=> String - # resp.project.placement_template.device_templates #=> Hash - # resp.project.placement_template.device_templates["DeviceTemplateName"].device_type #=> String - # resp.project.placement_template.device_templates["DeviceTemplateName"].callback_overrides #=> Hash - # resp.project.placement_template.device_templates["DeviceTemplateName"].callback_overrides["DeviceCallbackKey"] #=> String - # resp.project.tags #=> Hash - # resp.project.tags["TagKey"] #=> String - # - # @overload describe_project(params = {}) - # @param [Hash] params ({}) - def describe_project(params = {}, options = {}) - req = build_request(:describe_project, params) - req.send_request(options) - end - - # Removes a physical device from a placement. - # - # @option params [required, String] :project_name - # The name of the project that contains the placement. - # - # @option params [required, String] :placement_name - # The name of the placement that the device should be removed from. - # - # @option params [required, String] :device_template_name - # The device ID that should be removed from the placement. - # - # @return [Struct] Returns an empty {Seahorse::Client::Response response}. - # - # @example Request syntax with placeholder values - # - # resp = client.disassociate_device_from_placement({ - # project_name: "ProjectName", # required - # placement_name: "PlacementName", # required - # device_template_name: "DeviceTemplateName", # required - # }) - # - # @overload disassociate_device_from_placement(params = {}) - # @param [Hash] params ({}) - def disassociate_device_from_placement(params = {}, options = {}) - req = build_request(:disassociate_device_from_placement, params) - req.send_request(options) - end - - # Returns an object enumerating the devices in a placement. - # - # @option params [required, String] :project_name - # The name of the project containing the placement. - # - # @option params [required, String] :placement_name - # The name of the placement to get the devices from. - # - # @return [Types::GetDevicesInPlacementResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods: - # - # * {Types::GetDevicesInPlacementResponse#devices #devices} => Hash<String,String> - # - # @example Request syntax with placeholder values - # - # resp = client.get_devices_in_placement({ - # project_name: "ProjectName", # required - # placement_name: "PlacementName", # required - # }) - # - # @example Response structure - # - # resp.devices #=> Hash - # resp.devices["DeviceTemplateName"] #=> String - # - # @overload get_devices_in_placement(params = {}) - # @param [Hash] params ({}) - def get_devices_in_placement(params = {}, options = {}) - req = build_request(:get_devices_in_placement, params) - req.send_request(options) - end - - # Lists the placement(s) of a project. - # - # @option params [required, String] :project_name - # The project containing the placements to be listed. - # - # @option params [String] :next_token - # The token to retrieve the next set of results. - # - # @option params [Integer] :max_results - # The maximum number of results to return per request. If not set, a - # default value of 100 is used. - # - # @return [Types::ListPlacementsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods: - # - # * {Types::ListPlacementsResponse#placements #placements} => Array<Types::PlacementSummary> - # * {Types::ListPlacementsResponse#next_token #next_token} => String - # - # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}. - # - # @example Request syntax with placeholder values - # - # resp = client.list_placements({ - # project_name: "ProjectName", # required - # next_token: "NextToken", - # max_results: 1, - # }) - # - # @example Response structure - # - # resp.placements #=> Array - # resp.placements[0].project_name #=> String - # resp.placements[0].placement_name #=> String - # resp.placements[0].created_date #=> Time - # resp.placements[0].updated_date #=> Time - # resp.next_token #=> String - # - # @overload list_placements(params = {}) - # @param [Hash] params ({}) - def list_placements(params = {}, options = {}) - req = build_request(:list_placements, params) - req.send_request(options) - end - - # Lists the AWS IoT 1-Click project(s) associated with your AWS account - # and region. - # - # @option params [String] :next_token - # The token to retrieve the next set of results. - # - # @option params [Integer] :max_results - # The maximum number of results to return per request. If not set, a - # default value of 100 is used. - # - # @return [Types::ListProjectsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods: - # - # * {Types::ListProjectsResponse#projects #projects} => Array<Types::ProjectSummary> - # * {Types::ListProjectsResponse#next_token #next_token} => String - # - # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}. - # - # @example Request syntax with placeholder values - # - # resp = client.list_projects({ - # next_token: "NextToken", - # max_results: 1, - # }) - # - # @example Response structure - # - # resp.projects #=> Array - # resp.projects[0].arn #=> String - # resp.projects[0].project_name #=> String - # resp.projects[0].created_date #=> Time - # resp.projects[0].updated_date #=> Time - # resp.projects[0].tags #=> Hash - # resp.projects[0].tags["TagKey"] #=> String - # resp.next_token #=> String - # - # @overload list_projects(params = {}) - # @param [Hash] params ({}) - def list_projects(params = {}, options = {}) - req = build_request(:list_projects, params) - req.send_request(options) - end - - # Lists the tags (metadata key/value pairs) which you have assigned to - # the resource. - # - # @option params [required, String] :resource_arn - # The ARN of the resource whose tags you want to list. - # - # @return [Types::ListTagsForResourceResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods: - # - # * {Types::ListTagsForResourceResponse#tags #tags} => Hash<String,String> - # - # @example Request syntax with placeholder values - # - # resp = client.list_tags_for_resource({ - # resource_arn: "ProjectArn", # required - # }) - # - # @example Response structure - # - # resp.tags #=> Hash - # resp.tags["TagKey"] #=> String - # - # @overload list_tags_for_resource(params = {}) - # @param [Hash] params ({}) - def list_tags_for_resource(params = {}, options = {}) - req = build_request(:list_tags_for_resource, params) - req.send_request(options) - end - - # Creates or modifies tags for a resource. Tags are key/value pairs - # (metadata) that can be used to manage a resource. For more - # information, see [AWS Tagging Strategies][1]. - # - # - # - # [1]: https://aws.amazon.com/answers/account-management/aws-tagging-strategies/ - # - # @option params [required, String] :resource_arn - # The ARN of the resouce for which tag(s) should be added or modified. - # - # @option params [required, Hash] :tags - # The new or modifying tag(s) for the resource. See [AWS IoT 1-Click - # Service Limits][1] for the maximum number of tags allowed per - # resource. - # - # - # - # [1]: https://docs.aws.amazon.com/iot-1-click/latest/developerguide/1click-appendix.html#1click-limits - # - # @return [Struct] Returns an empty {Seahorse::Client::Response response}. - # - # @example Request syntax with placeholder values - # - # resp = client.tag_resource({ - # resource_arn: "ProjectArn", # required - # tags: { # required - # "TagKey" => "TagValue", - # }, - # }) - # - # @overload tag_resource(params = {}) - # @param [Hash] params ({}) - def tag_resource(params = {}, options = {}) - req = build_request(:tag_resource, params) - req.send_request(options) - end - - # Removes one or more tags (metadata key/value pairs) from a resource. - # - # @option params [required, String] :resource_arn - # The ARN of the resource whose tag you want to remove. - # - # @option params [required, Array] :tag_keys - # The keys of those tags which you want to remove. - # - # @return [Struct] Returns an empty {Seahorse::Client::Response response}. - # - # @example Request syntax with placeholder values - # - # resp = client.untag_resource({ - # resource_arn: "ProjectArn", # required - # tag_keys: ["TagKey"], # required - # }) - # - # @overload untag_resource(params = {}) - # @param [Hash] params ({}) - def untag_resource(params = {}, options = {}) - req = build_request(:untag_resource, params) - req.send_request(options) - end - - # Updates a placement with the given attributes. To clear an attribute, - # pass an empty value (i.e., ""). - # - # @option params [required, String] :placement_name - # The name of the placement to update. - # - # @option params [required, String] :project_name - # The name of the project containing the placement to be updated. - # - # @option params [Hash] :attributes - # The user-defined object of attributes used to update the placement. - # The maximum number of key/value pairs is 50. - # - # @return [Struct] Returns an empty {Seahorse::Client::Response response}. - # - # @example Request syntax with placeholder values - # - # resp = client.update_placement({ - # placement_name: "PlacementName", # required - # project_name: "ProjectName", # required - # attributes: { - # "AttributeName" => "AttributeValue", - # }, - # }) - # - # @overload update_placement(params = {}) - # @param [Hash] params ({}) - def update_placement(params = {}, options = {}) - req = build_request(:update_placement, params) - req.send_request(options) - end - - # Updates a project associated with your AWS account and region. With - # the exception of device template names, you can pass just the values - # that need to be updated because the update request will change only - # the values that are provided. To clear a value, pass the empty string - # (i.e., `""`). - # - # @option params [required, String] :project_name - # The name of the project to be updated. - # - # @option params [String] :description - # An optional user-defined description for the project. - # - # @option params [Types::PlacementTemplate] :placement_template - # An object defining the project update. Once a project has been - # created, you cannot add device template names to the project. However, - # for a given `placementTemplate`, you can update the associated - # `callbackOverrides` for the device definition using this API. - # - # @return [Struct] Returns an empty {Seahorse::Client::Response response}. - # - # @example Request syntax with placeholder values - # - # resp = client.update_project({ - # project_name: "ProjectName", # required - # description: "Description", - # placement_template: { - # default_attributes: { - # "AttributeName" => "AttributeDefaultValue", - # }, - # device_templates: { - # "DeviceTemplateName" => { - # device_type: "DeviceType", - # callback_overrides: { - # "DeviceCallbackKey" => "DeviceCallbackValue", - # }, - # }, - # }, - # }, - # }) - # - # @overload update_project(params = {}) - # @param [Hash] params ({}) - def update_project(params = {}, options = {}) - req = build_request(:update_project, params) - req.send_request(options) - end - - # @!endgroup - - # @param params ({}) - # @api private - def build_request(operation_name, params = {}) - handlers = @handlers.for(operation_name) - tracer = config.telemetry_provider.tracer_provider.tracer( - Aws::Telemetry.module_to_tracer_name('Aws::IoT1ClickProjects') - ) - context = Seahorse::Client::RequestContext.new( - operation_name: operation_name, - operation: config.api.operation(operation_name), - client: self, - params: params, - config: config, - tracer: tracer - ) - context[:gem_name] = 'aws-sdk-iot1clickprojects' - context[:gem_version] = '1.64.0' - Seahorse::Client::Request.new(handlers, context) - end - - # @api private - # @deprecated - def waiter_names - [] - end - - class << self - - # @api private - attr_reader :identifier - - # @api private - def errors_module - Errors - end - - end - end -end diff --git a/gems/aws-sdk-iot1clickprojects/lib/aws-sdk-iot1clickprojects/client_api.rb b/gems/aws-sdk-iot1clickprojects/lib/aws-sdk-iot1clickprojects/client_api.rb deleted file mode 100644 index ffa7fd3a96d..00000000000 --- a/gems/aws-sdk-iot1clickprojects/lib/aws-sdk-iot1clickprojects/client_api.rb +++ /dev/null @@ -1,497 +0,0 @@ -# frozen_string_literal: true - -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - - -module Aws::IoT1ClickProjects - # @api private - module ClientApi - - include Seahorse::Model - - AssociateDeviceWithPlacementRequest = Shapes::StructureShape.new(name: 'AssociateDeviceWithPlacementRequest') - AssociateDeviceWithPlacementResponse = Shapes::StructureShape.new(name: 'AssociateDeviceWithPlacementResponse') - AttributeDefaultValue = Shapes::StringShape.new(name: 'AttributeDefaultValue') - AttributeName = Shapes::StringShape.new(name: 'AttributeName') - AttributeValue = Shapes::StringShape.new(name: 'AttributeValue') - Code = Shapes::StringShape.new(name: 'Code') - CreatePlacementRequest = Shapes::StructureShape.new(name: 'CreatePlacementRequest') - CreatePlacementResponse = Shapes::StructureShape.new(name: 'CreatePlacementResponse') - CreateProjectRequest = Shapes::StructureShape.new(name: 'CreateProjectRequest') - CreateProjectResponse = Shapes::StructureShape.new(name: 'CreateProjectResponse') - DefaultPlacementAttributeMap = Shapes::MapShape.new(name: 'DefaultPlacementAttributeMap') - DeletePlacementRequest = Shapes::StructureShape.new(name: 'DeletePlacementRequest') - DeletePlacementResponse = Shapes::StructureShape.new(name: 'DeletePlacementResponse') - DeleteProjectRequest = Shapes::StructureShape.new(name: 'DeleteProjectRequest') - DeleteProjectResponse = Shapes::StructureShape.new(name: 'DeleteProjectResponse') - DescribePlacementRequest = Shapes::StructureShape.new(name: 'DescribePlacementRequest') - DescribePlacementResponse = Shapes::StructureShape.new(name: 'DescribePlacementResponse') - DescribeProjectRequest = Shapes::StructureShape.new(name: 'DescribeProjectRequest') - DescribeProjectResponse = Shapes::StructureShape.new(name: 'DescribeProjectResponse') - Description = Shapes::StringShape.new(name: 'Description') - DeviceCallbackKey = Shapes::StringShape.new(name: 'DeviceCallbackKey') - DeviceCallbackOverrideMap = Shapes::MapShape.new(name: 'DeviceCallbackOverrideMap') - DeviceCallbackValue = Shapes::StringShape.new(name: 'DeviceCallbackValue') - DeviceId = Shapes::StringShape.new(name: 'DeviceId') - DeviceMap = Shapes::MapShape.new(name: 'DeviceMap') - DeviceTemplate = Shapes::StructureShape.new(name: 'DeviceTemplate') - DeviceTemplateMap = Shapes::MapShape.new(name: 'DeviceTemplateMap') - DeviceTemplateName = Shapes::StringShape.new(name: 'DeviceTemplateName') - DeviceType = Shapes::StringShape.new(name: 'DeviceType') - DisassociateDeviceFromPlacementRequest = Shapes::StructureShape.new(name: 'DisassociateDeviceFromPlacementRequest') - DisassociateDeviceFromPlacementResponse = Shapes::StructureShape.new(name: 'DisassociateDeviceFromPlacementResponse') - GetDevicesInPlacementRequest = Shapes::StructureShape.new(name: 'GetDevicesInPlacementRequest') - GetDevicesInPlacementResponse = Shapes::StructureShape.new(name: 'GetDevicesInPlacementResponse') - InternalFailureException = Shapes::StructureShape.new(name: 'InternalFailureException') - InvalidRequestException = Shapes::StructureShape.new(name: 'InvalidRequestException') - ListPlacementsRequest = Shapes::StructureShape.new(name: 'ListPlacementsRequest') - ListPlacementsResponse = Shapes::StructureShape.new(name: 'ListPlacementsResponse') - ListProjectsRequest = Shapes::StructureShape.new(name: 'ListProjectsRequest') - ListProjectsResponse = Shapes::StructureShape.new(name: 'ListProjectsResponse') - ListTagsForResourceRequest = Shapes::StructureShape.new(name: 'ListTagsForResourceRequest') - ListTagsForResourceResponse = Shapes::StructureShape.new(name: 'ListTagsForResourceResponse') - MaxResults = Shapes::IntegerShape.new(name: 'MaxResults') - Message = Shapes::StringShape.new(name: 'Message') - NextToken = Shapes::StringShape.new(name: 'NextToken') - PlacementAttributeMap = Shapes::MapShape.new(name: 'PlacementAttributeMap') - PlacementDescription = Shapes::StructureShape.new(name: 'PlacementDescription') - PlacementName = Shapes::StringShape.new(name: 'PlacementName') - PlacementSummary = Shapes::StructureShape.new(name: 'PlacementSummary') - PlacementSummaryList = Shapes::ListShape.new(name: 'PlacementSummaryList') - PlacementTemplate = Shapes::StructureShape.new(name: 'PlacementTemplate') - ProjectArn = Shapes::StringShape.new(name: 'ProjectArn') - ProjectDescription = Shapes::StructureShape.new(name: 'ProjectDescription') - ProjectName = Shapes::StringShape.new(name: 'ProjectName') - ProjectSummary = Shapes::StructureShape.new(name: 'ProjectSummary') - ProjectSummaryList = Shapes::ListShape.new(name: 'ProjectSummaryList') - ResourceConflictException = Shapes::StructureShape.new(name: 'ResourceConflictException') - ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException') - TagKey = Shapes::StringShape.new(name: 'TagKey') - TagKeyList = Shapes::ListShape.new(name: 'TagKeyList') - TagMap = Shapes::MapShape.new(name: 'TagMap') - TagResourceRequest = Shapes::StructureShape.new(name: 'TagResourceRequest') - TagResourceResponse = Shapes::StructureShape.new(name: 'TagResourceResponse') - TagValue = Shapes::StringShape.new(name: 'TagValue') - Time = Shapes::TimestampShape.new(name: 'Time') - TooManyRequestsException = Shapes::StructureShape.new(name: 'TooManyRequestsException') - UntagResourceRequest = Shapes::StructureShape.new(name: 'UntagResourceRequest') - UntagResourceResponse = Shapes::StructureShape.new(name: 'UntagResourceResponse') - UpdatePlacementRequest = Shapes::StructureShape.new(name: 'UpdatePlacementRequest') - UpdatePlacementResponse = Shapes::StructureShape.new(name: 'UpdatePlacementResponse') - UpdateProjectRequest = Shapes::StructureShape.new(name: 'UpdateProjectRequest') - UpdateProjectResponse = Shapes::StructureShape.new(name: 'UpdateProjectResponse') - - AssociateDeviceWithPlacementRequest.add_member(:project_name, Shapes::ShapeRef.new(shape: ProjectName, required: true, location: "uri", location_name: "projectName")) - AssociateDeviceWithPlacementRequest.add_member(:placement_name, Shapes::ShapeRef.new(shape: PlacementName, required: true, location: "uri", location_name: "placementName")) - AssociateDeviceWithPlacementRequest.add_member(:device_id, Shapes::ShapeRef.new(shape: DeviceId, required: true, location_name: "deviceId")) - AssociateDeviceWithPlacementRequest.add_member(:device_template_name, Shapes::ShapeRef.new(shape: DeviceTemplateName, required: true, location: "uri", location_name: "deviceTemplateName")) - AssociateDeviceWithPlacementRequest.struct_class = Types::AssociateDeviceWithPlacementRequest - - AssociateDeviceWithPlacementResponse.struct_class = Types::AssociateDeviceWithPlacementResponse - - CreatePlacementRequest.add_member(:placement_name, Shapes::ShapeRef.new(shape: PlacementName, required: true, location_name: "placementName")) - CreatePlacementRequest.add_member(:project_name, Shapes::ShapeRef.new(shape: ProjectName, required: true, location: "uri", location_name: "projectName")) - CreatePlacementRequest.add_member(:attributes, Shapes::ShapeRef.new(shape: PlacementAttributeMap, location_name: "attributes")) - CreatePlacementRequest.struct_class = Types::CreatePlacementRequest - - CreatePlacementResponse.struct_class = Types::CreatePlacementResponse - - CreateProjectRequest.add_member(:project_name, Shapes::ShapeRef.new(shape: ProjectName, required: true, location_name: "projectName")) - CreateProjectRequest.add_member(:description, Shapes::ShapeRef.new(shape: Description, location_name: "description")) - CreateProjectRequest.add_member(:placement_template, Shapes::ShapeRef.new(shape: PlacementTemplate, location_name: "placementTemplate")) - CreateProjectRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "tags")) - CreateProjectRequest.struct_class = Types::CreateProjectRequest - - CreateProjectResponse.struct_class = Types::CreateProjectResponse - - DefaultPlacementAttributeMap.key = Shapes::ShapeRef.new(shape: AttributeName) - DefaultPlacementAttributeMap.value = Shapes::ShapeRef.new(shape: AttributeDefaultValue) - - DeletePlacementRequest.add_member(:placement_name, Shapes::ShapeRef.new(shape: PlacementName, required: true, location: "uri", location_name: "placementName")) - DeletePlacementRequest.add_member(:project_name, Shapes::ShapeRef.new(shape: ProjectName, required: true, location: "uri", location_name: "projectName")) - DeletePlacementRequest.struct_class = Types::DeletePlacementRequest - - DeletePlacementResponse.struct_class = Types::DeletePlacementResponse - - DeleteProjectRequest.add_member(:project_name, Shapes::ShapeRef.new(shape: ProjectName, required: true, location: "uri", location_name: "projectName")) - DeleteProjectRequest.struct_class = Types::DeleteProjectRequest - - DeleteProjectResponse.struct_class = Types::DeleteProjectResponse - - DescribePlacementRequest.add_member(:placement_name, Shapes::ShapeRef.new(shape: PlacementName, required: true, location: "uri", location_name: "placementName")) - DescribePlacementRequest.add_member(:project_name, Shapes::ShapeRef.new(shape: ProjectName, required: true, location: "uri", location_name: "projectName")) - DescribePlacementRequest.struct_class = Types::DescribePlacementRequest - - DescribePlacementResponse.add_member(:placement, Shapes::ShapeRef.new(shape: PlacementDescription, required: true, location_name: "placement")) - DescribePlacementResponse.struct_class = Types::DescribePlacementResponse - - DescribeProjectRequest.add_member(:project_name, Shapes::ShapeRef.new(shape: ProjectName, required: true, location: "uri", location_name: "projectName")) - DescribeProjectRequest.struct_class = Types::DescribeProjectRequest - - DescribeProjectResponse.add_member(:project, Shapes::ShapeRef.new(shape: ProjectDescription, required: true, location_name: "project")) - DescribeProjectResponse.struct_class = Types::DescribeProjectResponse - - DeviceCallbackOverrideMap.key = Shapes::ShapeRef.new(shape: DeviceCallbackKey) - DeviceCallbackOverrideMap.value = Shapes::ShapeRef.new(shape: DeviceCallbackValue) - - DeviceMap.key = Shapes::ShapeRef.new(shape: DeviceTemplateName) - DeviceMap.value = Shapes::ShapeRef.new(shape: DeviceId) - - DeviceTemplate.add_member(:device_type, Shapes::ShapeRef.new(shape: DeviceType, location_name: "deviceType")) - DeviceTemplate.add_member(:callback_overrides, Shapes::ShapeRef.new(shape: DeviceCallbackOverrideMap, location_name: "callbackOverrides")) - DeviceTemplate.struct_class = Types::DeviceTemplate - - DeviceTemplateMap.key = Shapes::ShapeRef.new(shape: DeviceTemplateName) - DeviceTemplateMap.value = Shapes::ShapeRef.new(shape: DeviceTemplate) - - DisassociateDeviceFromPlacementRequest.add_member(:project_name, Shapes::ShapeRef.new(shape: ProjectName, required: true, location: "uri", location_name: "projectName")) - DisassociateDeviceFromPlacementRequest.add_member(:placement_name, Shapes::ShapeRef.new(shape: PlacementName, required: true, location: "uri", location_name: "placementName")) - DisassociateDeviceFromPlacementRequest.add_member(:device_template_name, Shapes::ShapeRef.new(shape: DeviceTemplateName, required: true, location: "uri", location_name: "deviceTemplateName")) - DisassociateDeviceFromPlacementRequest.struct_class = Types::DisassociateDeviceFromPlacementRequest - - DisassociateDeviceFromPlacementResponse.struct_class = Types::DisassociateDeviceFromPlacementResponse - - GetDevicesInPlacementRequest.add_member(:project_name, Shapes::ShapeRef.new(shape: ProjectName, required: true, location: "uri", location_name: "projectName")) - GetDevicesInPlacementRequest.add_member(:placement_name, Shapes::ShapeRef.new(shape: PlacementName, required: true, location: "uri", location_name: "placementName")) - GetDevicesInPlacementRequest.struct_class = Types::GetDevicesInPlacementRequest - - GetDevicesInPlacementResponse.add_member(:devices, Shapes::ShapeRef.new(shape: DeviceMap, required: true, location_name: "devices")) - GetDevicesInPlacementResponse.struct_class = Types::GetDevicesInPlacementResponse - - InternalFailureException.add_member(:code, Shapes::ShapeRef.new(shape: Code, required: true, location_name: "code")) - InternalFailureException.add_member(:message, Shapes::ShapeRef.new(shape: Message, required: true, location_name: "message")) - InternalFailureException.struct_class = Types::InternalFailureException - - InvalidRequestException.add_member(:code, Shapes::ShapeRef.new(shape: Code, required: true, location_name: "code")) - InvalidRequestException.add_member(:message, Shapes::ShapeRef.new(shape: Message, required: true, location_name: "message")) - InvalidRequestException.struct_class = Types::InvalidRequestException - - ListPlacementsRequest.add_member(:project_name, Shapes::ShapeRef.new(shape: ProjectName, required: true, location: "uri", location_name: "projectName")) - ListPlacementsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location: "querystring", location_name: "nextToken")) - ListPlacementsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location: "querystring", location_name: "maxResults")) - ListPlacementsRequest.struct_class = Types::ListPlacementsRequest - - ListPlacementsResponse.add_member(:placements, Shapes::ShapeRef.new(shape: PlacementSummaryList, required: true, location_name: "placements")) - ListPlacementsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken")) - ListPlacementsResponse.struct_class = Types::ListPlacementsResponse - - ListProjectsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location: "querystring", location_name: "nextToken")) - ListProjectsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location: "querystring", location_name: "maxResults")) - ListProjectsRequest.struct_class = Types::ListProjectsRequest - - ListProjectsResponse.add_member(:projects, Shapes::ShapeRef.new(shape: ProjectSummaryList, required: true, location_name: "projects")) - ListProjectsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken")) - ListProjectsResponse.struct_class = Types::ListProjectsResponse - - ListTagsForResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ProjectArn, required: true, location: "uri", location_name: "resourceArn")) - ListTagsForResourceRequest.struct_class = Types::ListTagsForResourceRequest - - ListTagsForResourceResponse.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "tags")) - ListTagsForResourceResponse.struct_class = Types::ListTagsForResourceResponse - - PlacementAttributeMap.key = Shapes::ShapeRef.new(shape: AttributeName) - PlacementAttributeMap.value = Shapes::ShapeRef.new(shape: AttributeValue) - - PlacementDescription.add_member(:project_name, Shapes::ShapeRef.new(shape: ProjectName, required: true, location_name: "projectName")) - PlacementDescription.add_member(:placement_name, Shapes::ShapeRef.new(shape: PlacementName, required: true, location_name: "placementName")) - PlacementDescription.add_member(:attributes, Shapes::ShapeRef.new(shape: PlacementAttributeMap, required: true, location_name: "attributes")) - PlacementDescription.add_member(:created_date, Shapes::ShapeRef.new(shape: Time, required: true, location_name: "createdDate")) - PlacementDescription.add_member(:updated_date, Shapes::ShapeRef.new(shape: Time, required: true, location_name: "updatedDate")) - PlacementDescription.struct_class = Types::PlacementDescription - - PlacementSummary.add_member(:project_name, Shapes::ShapeRef.new(shape: ProjectName, required: true, location_name: "projectName")) - PlacementSummary.add_member(:placement_name, Shapes::ShapeRef.new(shape: PlacementName, required: true, location_name: "placementName")) - PlacementSummary.add_member(:created_date, Shapes::ShapeRef.new(shape: Time, required: true, location_name: "createdDate")) - PlacementSummary.add_member(:updated_date, Shapes::ShapeRef.new(shape: Time, required: true, location_name: "updatedDate")) - PlacementSummary.struct_class = Types::PlacementSummary - - PlacementSummaryList.member = Shapes::ShapeRef.new(shape: PlacementSummary) - - PlacementTemplate.add_member(:default_attributes, Shapes::ShapeRef.new(shape: DefaultPlacementAttributeMap, location_name: "defaultAttributes")) - PlacementTemplate.add_member(:device_templates, Shapes::ShapeRef.new(shape: DeviceTemplateMap, location_name: "deviceTemplates")) - PlacementTemplate.struct_class = Types::PlacementTemplate - - ProjectDescription.add_member(:arn, Shapes::ShapeRef.new(shape: ProjectArn, location_name: "arn")) - ProjectDescription.add_member(:project_name, Shapes::ShapeRef.new(shape: ProjectName, required: true, location_name: "projectName")) - ProjectDescription.add_member(:description, Shapes::ShapeRef.new(shape: Description, location_name: "description")) - ProjectDescription.add_member(:created_date, Shapes::ShapeRef.new(shape: Time, required: true, location_name: "createdDate")) - ProjectDescription.add_member(:updated_date, Shapes::ShapeRef.new(shape: Time, required: true, location_name: "updatedDate")) - ProjectDescription.add_member(:placement_template, Shapes::ShapeRef.new(shape: PlacementTemplate, location_name: "placementTemplate")) - ProjectDescription.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "tags")) - ProjectDescription.struct_class = Types::ProjectDescription - - ProjectSummary.add_member(:arn, Shapes::ShapeRef.new(shape: ProjectArn, location_name: "arn")) - ProjectSummary.add_member(:project_name, Shapes::ShapeRef.new(shape: ProjectName, required: true, location_name: "projectName")) - ProjectSummary.add_member(:created_date, Shapes::ShapeRef.new(shape: Time, required: true, location_name: "createdDate")) - ProjectSummary.add_member(:updated_date, Shapes::ShapeRef.new(shape: Time, required: true, location_name: "updatedDate")) - ProjectSummary.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "tags")) - ProjectSummary.struct_class = Types::ProjectSummary - - ProjectSummaryList.member = Shapes::ShapeRef.new(shape: ProjectSummary) - - ResourceConflictException.add_member(:code, Shapes::ShapeRef.new(shape: Code, required: true, location_name: "code")) - ResourceConflictException.add_member(:message, Shapes::ShapeRef.new(shape: Message, required: true, location_name: "message")) - ResourceConflictException.struct_class = Types::ResourceConflictException - - ResourceNotFoundException.add_member(:code, Shapes::ShapeRef.new(shape: Code, required: true, location_name: "code")) - ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: Message, required: true, location_name: "message")) - ResourceNotFoundException.struct_class = Types::ResourceNotFoundException - - TagKeyList.member = Shapes::ShapeRef.new(shape: TagKey) - - TagMap.key = Shapes::ShapeRef.new(shape: TagKey) - TagMap.value = Shapes::ShapeRef.new(shape: TagValue) - - TagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ProjectArn, required: true, location: "uri", location_name: "resourceArn")) - TagResourceRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, required: true, location_name: "tags")) - TagResourceRequest.struct_class = Types::TagResourceRequest - - TagResourceResponse.struct_class = Types::TagResourceResponse - - TooManyRequestsException.add_member(:code, Shapes::ShapeRef.new(shape: Code, required: true, location_name: "code")) - TooManyRequestsException.add_member(:message, Shapes::ShapeRef.new(shape: Message, required: true, location_name: "message")) - TooManyRequestsException.struct_class = Types::TooManyRequestsException - - UntagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ProjectArn, required: true, location: "uri", location_name: "resourceArn")) - UntagResourceRequest.add_member(:tag_keys, Shapes::ShapeRef.new(shape: TagKeyList, required: true, location: "querystring", location_name: "tagKeys")) - UntagResourceRequest.struct_class = Types::UntagResourceRequest - - UntagResourceResponse.struct_class = Types::UntagResourceResponse - - UpdatePlacementRequest.add_member(:placement_name, Shapes::ShapeRef.new(shape: PlacementName, required: true, location: "uri", location_name: "placementName")) - UpdatePlacementRequest.add_member(:project_name, Shapes::ShapeRef.new(shape: ProjectName, required: true, location: "uri", location_name: "projectName")) - UpdatePlacementRequest.add_member(:attributes, Shapes::ShapeRef.new(shape: PlacementAttributeMap, location_name: "attributes")) - UpdatePlacementRequest.struct_class = Types::UpdatePlacementRequest - - UpdatePlacementResponse.struct_class = Types::UpdatePlacementResponse - - UpdateProjectRequest.add_member(:project_name, Shapes::ShapeRef.new(shape: ProjectName, required: true, location: "uri", location_name: "projectName")) - UpdateProjectRequest.add_member(:description, Shapes::ShapeRef.new(shape: Description, location_name: "description")) - UpdateProjectRequest.add_member(:placement_template, Shapes::ShapeRef.new(shape: PlacementTemplate, location_name: "placementTemplate")) - UpdateProjectRequest.struct_class = Types::UpdateProjectRequest - - UpdateProjectResponse.struct_class = Types::UpdateProjectResponse - - - # @api private - API = Seahorse::Model::Api.new.tap do |api| - - api.version = "2018-05-14" - - api.metadata = { - "apiVersion" => "2018-05-14", - "auth" => ["aws.auth#sigv4"], - "endpointPrefix" => "projects.iot1click", - "jsonVersion" => "1.1", - "protocol" => "rest-json", - "protocols" => ["rest-json"], - "serviceAbbreviation" => "AWS IoT 1-Click Projects", - "serviceFullName" => "AWS IoT 1-Click Projects Service", - "serviceId" => "IoT 1Click Projects", - "signatureVersion" => "v4", - "signingName" => "iot1click", - "uid" => "iot1click-projects-2018-05-14", - } - - api.add_operation(:associate_device_with_placement, Seahorse::Model::Operation.new.tap do |o| - o.name = "AssociateDeviceWithPlacement" - o.http_method = "PUT" - o.http_request_uri = "/projects/{projectName}/placements/{placementName}/devices/{deviceTemplateName}" - o.input = Shapes::ShapeRef.new(shape: AssociateDeviceWithPlacementRequest) - o.output = Shapes::ShapeRef.new(shape: AssociateDeviceWithPlacementResponse) - o.errors << Shapes::ShapeRef.new(shape: InternalFailureException) - o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException) - o.errors << Shapes::ShapeRef.new(shape: ResourceConflictException) - o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException) - end) - - api.add_operation(:create_placement, Seahorse::Model::Operation.new.tap do |o| - o.name = "CreatePlacement" - o.http_method = "POST" - o.http_request_uri = "/projects/{projectName}/placements" - o.input = Shapes::ShapeRef.new(shape: CreatePlacementRequest) - o.output = Shapes::ShapeRef.new(shape: CreatePlacementResponse) - o.errors << Shapes::ShapeRef.new(shape: InternalFailureException) - o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException) - o.errors << Shapes::ShapeRef.new(shape: ResourceConflictException) - o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException) - end) - - api.add_operation(:create_project, Seahorse::Model::Operation.new.tap do |o| - o.name = "CreateProject" - o.http_method = "POST" - o.http_request_uri = "/projects" - o.input = Shapes::ShapeRef.new(shape: CreateProjectRequest) - o.output = Shapes::ShapeRef.new(shape: CreateProjectResponse) - o.errors << Shapes::ShapeRef.new(shape: InternalFailureException) - o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException) - o.errors << Shapes::ShapeRef.new(shape: ResourceConflictException) - end) - - api.add_operation(:delete_placement, Seahorse::Model::Operation.new.tap do |o| - o.name = "DeletePlacement" - o.http_method = "DELETE" - o.http_request_uri = "/projects/{projectName}/placements/{placementName}" - o.input = Shapes::ShapeRef.new(shape: DeletePlacementRequest) - o.output = Shapes::ShapeRef.new(shape: DeletePlacementResponse) - o.errors << Shapes::ShapeRef.new(shape: InternalFailureException) - o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException) - o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException) - o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException) - end) - - api.add_operation(:delete_project, Seahorse::Model::Operation.new.tap do |o| - o.name = "DeleteProject" - o.http_method = "DELETE" - o.http_request_uri = "/projects/{projectName}" - o.input = Shapes::ShapeRef.new(shape: DeleteProjectRequest) - o.output = Shapes::ShapeRef.new(shape: DeleteProjectResponse) - o.errors << Shapes::ShapeRef.new(shape: InternalFailureException) - o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException) - o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException) - o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException) - end) - - api.add_operation(:describe_placement, Seahorse::Model::Operation.new.tap do |o| - o.name = "DescribePlacement" - o.http_method = "GET" - o.http_request_uri = "/projects/{projectName}/placements/{placementName}" - o.input = Shapes::ShapeRef.new(shape: DescribePlacementRequest) - o.output = Shapes::ShapeRef.new(shape: DescribePlacementResponse) - o.errors << Shapes::ShapeRef.new(shape: InternalFailureException) - o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException) - o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException) - end) - - api.add_operation(:describe_project, Seahorse::Model::Operation.new.tap do |o| - o.name = "DescribeProject" - o.http_method = "GET" - o.http_request_uri = "/projects/{projectName}" - o.input = Shapes::ShapeRef.new(shape: DescribeProjectRequest) - o.output = Shapes::ShapeRef.new(shape: DescribeProjectResponse) - o.errors << Shapes::ShapeRef.new(shape: InternalFailureException) - o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException) - o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException) - end) - - api.add_operation(:disassociate_device_from_placement, Seahorse::Model::Operation.new.tap do |o| - o.name = "DisassociateDeviceFromPlacement" - o.http_method = "DELETE" - o.http_request_uri = "/projects/{projectName}/placements/{placementName}/devices/{deviceTemplateName}" - o.input = Shapes::ShapeRef.new(shape: DisassociateDeviceFromPlacementRequest) - o.output = Shapes::ShapeRef.new(shape: DisassociateDeviceFromPlacementResponse) - o.errors << Shapes::ShapeRef.new(shape: InternalFailureException) - o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException) - o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException) - o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException) - end) - - api.add_operation(:get_devices_in_placement, Seahorse::Model::Operation.new.tap do |o| - o.name = "GetDevicesInPlacement" - o.http_method = "GET" - o.http_request_uri = "/projects/{projectName}/placements/{placementName}/devices" - o.input = Shapes::ShapeRef.new(shape: GetDevicesInPlacementRequest) - o.output = Shapes::ShapeRef.new(shape: GetDevicesInPlacementResponse) - o.errors << Shapes::ShapeRef.new(shape: InternalFailureException) - o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException) - o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException) - end) - - api.add_operation(:list_placements, Seahorse::Model::Operation.new.tap do |o| - o.name = "ListPlacements" - o.http_method = "GET" - o.http_request_uri = "/projects/{projectName}/placements" - o.input = Shapes::ShapeRef.new(shape: ListPlacementsRequest) - o.output = Shapes::ShapeRef.new(shape: ListPlacementsResponse) - o.errors << Shapes::ShapeRef.new(shape: InternalFailureException) - o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException) - o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException) - o[:pager] = Aws::Pager.new( - limit_key: "max_results", - tokens: { - "next_token" => "next_token" - } - ) - end) - - api.add_operation(:list_projects, Seahorse::Model::Operation.new.tap do |o| - o.name = "ListProjects" - o.http_method = "GET" - o.http_request_uri = "/projects" - o.input = Shapes::ShapeRef.new(shape: ListProjectsRequest) - o.output = Shapes::ShapeRef.new(shape: ListProjectsResponse) - o.errors << Shapes::ShapeRef.new(shape: InternalFailureException) - o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException) - o[:pager] = Aws::Pager.new( - limit_key: "max_results", - tokens: { - "next_token" => "next_token" - } - ) - end) - - api.add_operation(:list_tags_for_resource, Seahorse::Model::Operation.new.tap do |o| - o.name = "ListTagsForResource" - o.http_method = "GET" - o.http_request_uri = "/tags/{resourceArn}" - o.input = Shapes::ShapeRef.new(shape: ListTagsForResourceRequest) - o.output = Shapes::ShapeRef.new(shape: ListTagsForResourceResponse) - o.errors << Shapes::ShapeRef.new(shape: InternalFailureException) - o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException) - o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException) - end) - - api.add_operation(:tag_resource, Seahorse::Model::Operation.new.tap do |o| - o.name = "TagResource" - o.http_method = "POST" - o.http_request_uri = "/tags/{resourceArn}" - o.input = Shapes::ShapeRef.new(shape: TagResourceRequest) - o.output = Shapes::ShapeRef.new(shape: TagResourceResponse) - o.errors << Shapes::ShapeRef.new(shape: InternalFailureException) - o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException) - o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException) - end) - - api.add_operation(:untag_resource, Seahorse::Model::Operation.new.tap do |o| - o.name = "UntagResource" - o.http_method = "DELETE" - o.http_request_uri = "/tags/{resourceArn}" - o.input = Shapes::ShapeRef.new(shape: UntagResourceRequest) - o.output = Shapes::ShapeRef.new(shape: UntagResourceResponse) - o.errors << Shapes::ShapeRef.new(shape: InternalFailureException) - o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException) - o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException) - end) - - api.add_operation(:update_placement, Seahorse::Model::Operation.new.tap do |o| - o.name = "UpdatePlacement" - o.http_method = "PUT" - o.http_request_uri = "/projects/{projectName}/placements/{placementName}" - o.input = Shapes::ShapeRef.new(shape: UpdatePlacementRequest) - o.output = Shapes::ShapeRef.new(shape: UpdatePlacementResponse) - o.errors << Shapes::ShapeRef.new(shape: InternalFailureException) - o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException) - o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException) - o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException) - end) - - api.add_operation(:update_project, Seahorse::Model::Operation.new.tap do |o| - o.name = "UpdateProject" - o.http_method = "PUT" - o.http_request_uri = "/projects/{projectName}" - o.input = Shapes::ShapeRef.new(shape: UpdateProjectRequest) - o.output = Shapes::ShapeRef.new(shape: UpdateProjectResponse) - o.errors << Shapes::ShapeRef.new(shape: InternalFailureException) - o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException) - o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException) - o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException) - end) - end - - end -end diff --git a/gems/aws-sdk-iot1clickprojects/lib/aws-sdk-iot1clickprojects/customizations.rb b/gems/aws-sdk-iot1clickprojects/lib/aws-sdk-iot1clickprojects/customizations.rb deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/gems/aws-sdk-iot1clickprojects/lib/aws-sdk-iot1clickprojects/endpoint_parameters.rb b/gems/aws-sdk-iot1clickprojects/lib/aws-sdk-iot1clickprojects/endpoint_parameters.rb deleted file mode 100644 index 2ae7e271fdd..00000000000 --- a/gems/aws-sdk-iot1clickprojects/lib/aws-sdk-iot1clickprojects/endpoint_parameters.rb +++ /dev/null @@ -1,69 +0,0 @@ -# frozen_string_literal: true - -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -module Aws::IoT1ClickProjects - # Endpoint parameters used to influence endpoints per request. - # - # @!attribute region - # The AWS region used to dispatch the request. - # - # @return [String] - # - # @!attribute use_dual_stack - # When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error. - # - # @return [Boolean] - # - # @!attribute use_fips - # When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error. - # - # @return [Boolean] - # - # @!attribute endpoint - # Override the endpoint used to send this request - # - # @return [String] - # - EndpointParameters = Struct.new( - :region, - :use_dual_stack, - :use_fips, - :endpoint, - ) do - include Aws::Structure - - # @api private - class << self - PARAM_MAP = { - 'Region' => :region, - 'UseDualStack' => :use_dual_stack, - 'UseFIPS' => :use_fips, - 'Endpoint' => :endpoint, - }.freeze - end - - def initialize(options = {}) - self[:region] = options[:region] - self[:use_dual_stack] = options[:use_dual_stack] - self[:use_dual_stack] = false if self[:use_dual_stack].nil? - self[:use_fips] = options[:use_fips] - self[:use_fips] = false if self[:use_fips].nil? - self[:endpoint] = options[:endpoint] - end - - def self.create(config, options={}) - new({ - region: config.region, - use_dual_stack: config.use_dualstack_endpoint, - use_fips: config.use_fips_endpoint, - endpoint: (config.endpoint.to_s unless config.regional_endpoint), - }.merge(options)) - end - end -end diff --git a/gems/aws-sdk-iot1clickprojects/lib/aws-sdk-iot1clickprojects/endpoint_provider.rb b/gems/aws-sdk-iot1clickprojects/lib/aws-sdk-iot1clickprojects/endpoint_provider.rb deleted file mode 100644 index 4ff2db5b408..00000000000 --- a/gems/aws-sdk-iot1clickprojects/lib/aws-sdk-iot1clickprojects/endpoint_provider.rb +++ /dev/null @@ -1,54 +0,0 @@ -# frozen_string_literal: true - -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -module Aws::IoT1ClickProjects - class EndpointProvider - def resolve_endpoint(parameters) - region = parameters.region - use_dual_stack = parameters.use_dual_stack - use_fips = parameters.use_fips - endpoint = parameters.endpoint - if Aws::Endpoints::Matchers.set?(endpoint) - if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) - raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported" - end - if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true) - raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported" - end - return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {}) - end - if Aws::Endpoints::Matchers.set?(region) - if (partition_result = Aws::Endpoints::Matchers.aws_partition(region)) - if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true) - if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack")) - return Aws::Endpoints::Endpoint.new(url: "https://projects.iot1click-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {}) - end - raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both" - end - if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) - if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) - return Aws::Endpoints::Endpoint.new(url: "https://projects.iot1click-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {}) - end - raise ArgumentError, "FIPS is enabled but this partition does not support FIPS" - end - if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true) - if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack")) - return Aws::Endpoints::Endpoint.new(url: "https://projects.iot1click.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {}) - end - raise ArgumentError, "DualStack is enabled but this partition does not support DualStack" - end - return Aws::Endpoints::Endpoint.new(url: "https://projects.iot1click.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {}) - end - end - raise ArgumentError, "Invalid Configuration: Missing Region" - raise ArgumentError, 'No endpoint could be resolved' - - end - end -end diff --git a/gems/aws-sdk-iot1clickprojects/lib/aws-sdk-iot1clickprojects/endpoints.rb b/gems/aws-sdk-iot1clickprojects/lib/aws-sdk-iot1clickprojects/endpoints.rb deleted file mode 100644 index 16be569092d..00000000000 --- a/gems/aws-sdk-iot1clickprojects/lib/aws-sdk-iot1clickprojects/endpoints.rb +++ /dev/null @@ -1,20 +0,0 @@ -# frozen_string_literal: true - -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - - -module Aws::IoT1ClickProjects - # @api private - module Endpoints - - - def self.parameters_for_operation(context) - Aws::IoT1ClickProjects::EndpointParameters.create(context.config) - end - end -end diff --git a/gems/aws-sdk-iot1clickprojects/lib/aws-sdk-iot1clickprojects/errors.rb b/gems/aws-sdk-iot1clickprojects/lib/aws-sdk-iot1clickprojects/errors.rb deleted file mode 100644 index b72792baafc..00000000000 --- a/gems/aws-sdk-iot1clickprojects/lib/aws-sdk-iot1clickprojects/errors.rb +++ /dev/null @@ -1,143 +0,0 @@ -# frozen_string_literal: true - -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -module Aws::IoT1ClickProjects - - # When IoT1ClickProjects returns an error response, the Ruby SDK constructs and raises an error. - # These errors all extend Aws::IoT1ClickProjects::Errors::ServiceError < {Aws::Errors::ServiceError} - # - # You can rescue all IoT1ClickProjects errors using ServiceError: - # - # begin - # # do stuff - # rescue Aws::IoT1ClickProjects::Errors::ServiceError - # # rescues all IoT1ClickProjects API errors - # end - # - # - # ## Request Context - # ServiceError objects have a {Aws::Errors::ServiceError#context #context} method that returns - # information about the request that generated the error. - # See {Seahorse::Client::RequestContext} for more information. - # - # ## Error Classes - # * {InternalFailureException} - # * {InvalidRequestException} - # * {ResourceConflictException} - # * {ResourceNotFoundException} - # * {TooManyRequestsException} - # - # Additionally, error classes are dynamically generated for service errors based on the error code - # if they are not defined above. - module Errors - - extend Aws::Errors::DynamicErrors - - class InternalFailureException < ServiceError - - # @param [Seahorse::Client::RequestContext] context - # @param [String] message - # @param [Aws::IoT1ClickProjects::Types::InternalFailureException] data - def initialize(context, message, data = Aws::EmptyStructure.new) - super(context, message, data) - end - - # @return [String] - def code - @code || @data[:code] - end - - # @return [String] - def message - @message || @data[:message] - end - end - - class InvalidRequestException < ServiceError - - # @param [Seahorse::Client::RequestContext] context - # @param [String] message - # @param [Aws::IoT1ClickProjects::Types::InvalidRequestException] data - def initialize(context, message, data = Aws::EmptyStructure.new) - super(context, message, data) - end - - # @return [String] - def code - @code || @data[:code] - end - - # @return [String] - def message - @message || @data[:message] - end - end - - class ResourceConflictException < ServiceError - - # @param [Seahorse::Client::RequestContext] context - # @param [String] message - # @param [Aws::IoT1ClickProjects::Types::ResourceConflictException] data - def initialize(context, message, data = Aws::EmptyStructure.new) - super(context, message, data) - end - - # @return [String] - def code - @code || @data[:code] - end - - # @return [String] - def message - @message || @data[:message] - end - end - - class ResourceNotFoundException < ServiceError - - # @param [Seahorse::Client::RequestContext] context - # @param [String] message - # @param [Aws::IoT1ClickProjects::Types::ResourceNotFoundException] data - def initialize(context, message, data = Aws::EmptyStructure.new) - super(context, message, data) - end - - # @return [String] - def code - @code || @data[:code] - end - - # @return [String] - def message - @message || @data[:message] - end - end - - class TooManyRequestsException < ServiceError - - # @param [Seahorse::Client::RequestContext] context - # @param [String] message - # @param [Aws::IoT1ClickProjects::Types::TooManyRequestsException] data - def initialize(context, message, data = Aws::EmptyStructure.new) - super(context, message, data) - end - - # @return [String] - def code - @code || @data[:code] - end - - # @return [String] - def message - @message || @data[:message] - end - end - - end -end diff --git a/gems/aws-sdk-iot1clickprojects/lib/aws-sdk-iot1clickprojects/plugins/endpoints.rb b/gems/aws-sdk-iot1clickprojects/lib/aws-sdk-iot1clickprojects/plugins/endpoints.rb deleted file mode 100644 index 1766da306b7..00000000000 --- a/gems/aws-sdk-iot1clickprojects/lib/aws-sdk-iot1clickprojects/plugins/endpoints.rb +++ /dev/null @@ -1,77 +0,0 @@ -# frozen_string_literal: true - -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - - -module Aws::IoT1ClickProjects - module Plugins - class Endpoints < Seahorse::Client::Plugin - option( - :endpoint_provider, - doc_type: 'Aws::IoT1ClickProjects::EndpointProvider', - rbs_type: 'untyped', - docstring: <<~DOCS) do |_cfg| -The endpoint provider used to resolve endpoints. Any object that responds to -`#resolve_endpoint(parameters)` where `parameters` is a Struct similar to -`Aws::IoT1ClickProjects::EndpointParameters`. - DOCS - Aws::IoT1ClickProjects::EndpointProvider.new - end - - # @api private - class Handler < Seahorse::Client::Handler - def call(context) - unless context[:discovered_endpoint] - params = Aws::IoT1ClickProjects::Endpoints.parameters_for_operation(context) - endpoint = context.config.endpoint_provider.resolve_endpoint(params) - - context.http_request.endpoint = endpoint.url - apply_endpoint_headers(context, endpoint.headers) - - context[:endpoint_params] = params - context[:endpoint_properties] = endpoint.properties - end - - context[:auth_scheme] = - Aws::Endpoints.resolve_auth_scheme(context, endpoint) - - with_metrics(context) { @handler.call(context) } - end - - private - - def with_metrics(context, &block) - metrics = [] - metrics << 'ENDPOINT_OVERRIDE' unless context.config.regional_endpoint - if context[:auth_scheme] && context[:auth_scheme]['name'] == 'sigv4a' - metrics << 'SIGV4A_SIGNING' - end - if context.config.credentials&.credentials&.account_id - metrics << 'RESOLVED_ACCOUNT_ID' - end - Aws::Plugins::UserAgent.metric(*metrics, &block) - end - - def apply_endpoint_headers(context, headers) - headers.each do |key, values| - value = values - .compact - .map { |s| Seahorse::Util.escape_header_list_string(s.to_s) } - .join(',') - - context.http_request.headers[key] = value - end - end - end - - def add_handlers(handlers, _config) - handlers.add(Handler, step: :build, priority: 75) - end - end - end -end diff --git a/gems/aws-sdk-iot1clickprojects/lib/aws-sdk-iot1clickprojects/resource.rb b/gems/aws-sdk-iot1clickprojects/lib/aws-sdk-iot1clickprojects/resource.rb deleted file mode 100644 index 0a12d59fa1f..00000000000 --- a/gems/aws-sdk-iot1clickprojects/lib/aws-sdk-iot1clickprojects/resource.rb +++ /dev/null @@ -1,26 +0,0 @@ -# frozen_string_literal: true - -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -module Aws::IoT1ClickProjects - - class Resource - - # @param options ({}) - # @option options [Client] :client - def initialize(options = {}) - @client = options[:client] || Client.new(options) - end - - # @return [Client] - def client - @client - end - - end -end diff --git a/gems/aws-sdk-iot1clickprojects/lib/aws-sdk-iot1clickprojects/types.rb b/gems/aws-sdk-iot1clickprojects/lib/aws-sdk-iot1clickprojects/types.rb deleted file mode 100644 index 348d37864eb..00000000000 --- a/gems/aws-sdk-iot1clickprojects/lib/aws-sdk-iot1clickprojects/types.rb +++ /dev/null @@ -1,656 +0,0 @@ -# frozen_string_literal: true - -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -module Aws::IoT1ClickProjects - module Types - - # @!attribute [rw] project_name - # The name of the project containing the placement in which to - # associate the device. - # @return [String] - # - # @!attribute [rw] placement_name - # The name of the placement in which to associate the device. - # @return [String] - # - # @!attribute [rw] device_id - # The ID of the physical device to be associated with the given - # placement in the project. Note that a mandatory 4 character prefix - # is required for all `deviceId` values. - # @return [String] - # - # @!attribute [rw] device_template_name - # The device template name to associate with the device ID. - # @return [String] - # - class AssociateDeviceWithPlacementRequest < Struct.new( - :project_name, - :placement_name, - :device_id, - :device_template_name) - SENSITIVE = [] - include Aws::Structure - end - - class AssociateDeviceWithPlacementResponse < Aws::EmptyStructure; end - - # @!attribute [rw] placement_name - # The name of the placement to be created. - # @return [String] - # - # @!attribute [rw] project_name - # The name of the project in which to create the placement. - # @return [String] - # - # @!attribute [rw] attributes - # Optional user-defined key/value pairs providing contextual data - # (such as location or function) for the placement. - # @return [Hash] - # - class CreatePlacementRequest < Struct.new( - :placement_name, - :project_name, - :attributes) - SENSITIVE = [] - include Aws::Structure - end - - class CreatePlacementResponse < Aws::EmptyStructure; end - - # @!attribute [rw] project_name - # The name of the project to create. - # @return [String] - # - # @!attribute [rw] description - # An optional description for the project. - # @return [String] - # - # @!attribute [rw] placement_template - # The schema defining the placement to be created. A placement - # template defines placement default attributes and device templates. - # You cannot add or remove device templates after the project has been - # created. However, you can update `callbackOverrides` for the device - # templates using the `UpdateProject` API. - # @return [Types::PlacementTemplate] - # - # @!attribute [rw] tags - # Optional tags (metadata key/value pairs) to be associated with the - # project. For example, `{ {"key1": "value1", "key2": "value2"} }`. - # For more information, see [AWS Tagging Strategies][1]. - # - # - # - # [1]: https://aws.amazon.com/answers/account-management/aws-tagging-strategies/ - # @return [Hash] - # - class CreateProjectRequest < Struct.new( - :project_name, - :description, - :placement_template, - :tags) - SENSITIVE = [] - include Aws::Structure - end - - class CreateProjectResponse < Aws::EmptyStructure; end - - # @!attribute [rw] placement_name - # The name of the empty placement to delete. - # @return [String] - # - # @!attribute [rw] project_name - # The project containing the empty placement to delete. - # @return [String] - # - class DeletePlacementRequest < Struct.new( - :placement_name, - :project_name) - SENSITIVE = [] - include Aws::Structure - end - - class DeletePlacementResponse < Aws::EmptyStructure; end - - # @!attribute [rw] project_name - # The name of the empty project to delete. - # @return [String] - # - class DeleteProjectRequest < Struct.new( - :project_name) - SENSITIVE = [] - include Aws::Structure - end - - class DeleteProjectResponse < Aws::EmptyStructure; end - - # @!attribute [rw] placement_name - # The name of the placement within a project. - # @return [String] - # - # @!attribute [rw] project_name - # The project containing the placement to be described. - # @return [String] - # - class DescribePlacementRequest < Struct.new( - :placement_name, - :project_name) - SENSITIVE = [] - include Aws::Structure - end - - # @!attribute [rw] placement - # An object describing the placement. - # @return [Types::PlacementDescription] - # - class DescribePlacementResponse < Struct.new( - :placement) - SENSITIVE = [] - include Aws::Structure - end - - # @!attribute [rw] project_name - # The name of the project to be described. - # @return [String] - # - class DescribeProjectRequest < Struct.new( - :project_name) - SENSITIVE = [] - include Aws::Structure - end - - # @!attribute [rw] project - # An object describing the project. - # @return [Types::ProjectDescription] - # - class DescribeProjectResponse < Struct.new( - :project) - SENSITIVE = [] - include Aws::Structure - end - - # An object representing a device for a placement template (see - # PlacementTemplate). - # - # @!attribute [rw] device_type - # The device type, which currently must be `"button"`. - # @return [String] - # - # @!attribute [rw] callback_overrides - # An optional Lambda function to invoke instead of the default Lambda - # function provided by the placement template. - # @return [Hash] - # - class DeviceTemplate < Struct.new( - :device_type, - :callback_overrides) - SENSITIVE = [] - include Aws::Structure - end - - # @!attribute [rw] project_name - # The name of the project that contains the placement. - # @return [String] - # - # @!attribute [rw] placement_name - # The name of the placement that the device should be removed from. - # @return [String] - # - # @!attribute [rw] device_template_name - # The device ID that should be removed from the placement. - # @return [String] - # - class DisassociateDeviceFromPlacementRequest < Struct.new( - :project_name, - :placement_name, - :device_template_name) - SENSITIVE = [] - include Aws::Structure - end - - class DisassociateDeviceFromPlacementResponse < Aws::EmptyStructure; end - - # @!attribute [rw] project_name - # The name of the project containing the placement. - # @return [String] - # - # @!attribute [rw] placement_name - # The name of the placement to get the devices from. - # @return [String] - # - class GetDevicesInPlacementRequest < Struct.new( - :project_name, - :placement_name) - SENSITIVE = [] - include Aws::Structure - end - - # @!attribute [rw] devices - # An object containing the devices (zero or more) within the - # placement. - # @return [Hash] - # - class GetDevicesInPlacementResponse < Struct.new( - :devices) - SENSITIVE = [] - include Aws::Structure - end - - # @!attribute [rw] code - # @return [String] - # - # @!attribute [rw] message - # @return [String] - # - class InternalFailureException < Struct.new( - :code, - :message) - SENSITIVE = [] - include Aws::Structure - end - - # @!attribute [rw] code - # @return [String] - # - # @!attribute [rw] message - # @return [String] - # - class InvalidRequestException < Struct.new( - :code, - :message) - SENSITIVE = [] - include Aws::Structure - end - - # @!attribute [rw] project_name - # The project containing the placements to be listed. - # @return [String] - # - # @!attribute [rw] next_token - # The token to retrieve the next set of results. - # @return [String] - # - # @!attribute [rw] max_results - # The maximum number of results to return per request. If not set, a - # default value of 100 is used. - # @return [Integer] - # - class ListPlacementsRequest < Struct.new( - :project_name, - :next_token, - :max_results) - SENSITIVE = [] - include Aws::Structure - end - - # @!attribute [rw] placements - # An object listing the requested placements. - # @return [Array] - # - # @!attribute [rw] next_token - # The token used to retrieve the next set of results - will be - # effectively empty if there are no further results. - # @return [String] - # - class ListPlacementsResponse < Struct.new( - :placements, - :next_token) - SENSITIVE = [] - include Aws::Structure - end - - # @!attribute [rw] next_token - # The token to retrieve the next set of results. - # @return [String] - # - # @!attribute [rw] max_results - # The maximum number of results to return per request. If not set, a - # default value of 100 is used. - # @return [Integer] - # - class ListProjectsRequest < Struct.new( - :next_token, - :max_results) - SENSITIVE = [] - include Aws::Structure - end - - # @!attribute [rw] projects - # An object containing the list of projects. - # @return [Array] - # - # @!attribute [rw] next_token - # The token used to retrieve the next set of results - will be - # effectively empty if there are no further results. - # @return [String] - # - class ListProjectsResponse < Struct.new( - :projects, - :next_token) - SENSITIVE = [] - include Aws::Structure - end - - # @!attribute [rw] resource_arn - # The ARN of the resource whose tags you want to list. - # @return [String] - # - class ListTagsForResourceRequest < Struct.new( - :resource_arn) - SENSITIVE = [] - include Aws::Structure - end - - # @!attribute [rw] tags - # The tags (metadata key/value pairs) which you have assigned to the - # resource. - # @return [Hash] - # - class ListTagsForResourceResponse < Struct.new( - :tags) - SENSITIVE = [] - include Aws::Structure - end - - # An object describing a project's placement. - # - # @!attribute [rw] project_name - # The name of the project containing the placement. - # @return [String] - # - # @!attribute [rw] placement_name - # The name of the placement. - # @return [String] - # - # @!attribute [rw] attributes - # The user-defined attributes associated with the placement. - # @return [Hash] - # - # @!attribute [rw] created_date - # The date when the placement was initially created, in UNIX epoch - # time format. - # @return [Time] - # - # @!attribute [rw] updated_date - # The date when the placement was last updated, in UNIX epoch time - # format. If the placement was not updated, then `createdDate` and - # `updatedDate` are the same. - # @return [Time] - # - class PlacementDescription < Struct.new( - :project_name, - :placement_name, - :attributes, - :created_date, - :updated_date) - SENSITIVE = [] - include Aws::Structure - end - - # An object providing summary information for a particular placement. - # - # @!attribute [rw] project_name - # The name of the project containing the placement. - # @return [String] - # - # @!attribute [rw] placement_name - # The name of the placement being summarized. - # @return [String] - # - # @!attribute [rw] created_date - # The date when the placement was originally created, in UNIX epoch - # time format. - # @return [Time] - # - # @!attribute [rw] updated_date - # The date when the placement was last updated, in UNIX epoch time - # format. If the placement was not updated, then `createdDate` and - # `updatedDate` are the same. - # @return [Time] - # - class PlacementSummary < Struct.new( - :project_name, - :placement_name, - :created_date, - :updated_date) - SENSITIVE = [] - include Aws::Structure - end - - # An object defining the template for a placement. - # - # @!attribute [rw] default_attributes - # The default attributes (key/value pairs) to be applied to all - # placements using this template. - # @return [Hash] - # - # @!attribute [rw] device_templates - # An object specifying the DeviceTemplate for all placements using - # this (PlacementTemplate) template. - # @return [Hash] - # - class PlacementTemplate < Struct.new( - :default_attributes, - :device_templates) - SENSITIVE = [] - include Aws::Structure - end - - # An object providing detailed information for a particular project - # associated with an AWS account and region. - # - # @!attribute [rw] arn - # The ARN of the project. - # @return [String] - # - # @!attribute [rw] project_name - # The name of the project for which to obtain information from. - # @return [String] - # - # @!attribute [rw] description - # The description of the project. - # @return [String] - # - # @!attribute [rw] created_date - # The date when the project was originally created, in UNIX epoch time - # format. - # @return [Time] - # - # @!attribute [rw] updated_date - # The date when the project was last updated, in UNIX epoch time - # format. If the project was not updated, then `createdDate` and - # `updatedDate` are the same. - # @return [Time] - # - # @!attribute [rw] placement_template - # An object describing the project's placement specifications. - # @return [Types::PlacementTemplate] - # - # @!attribute [rw] tags - # The tags (metadata key/value pairs) associated with the project. - # @return [Hash] - # - class ProjectDescription < Struct.new( - :arn, - :project_name, - :description, - :created_date, - :updated_date, - :placement_template, - :tags) - SENSITIVE = [] - include Aws::Structure - end - - # An object providing summary information for a particular project for - # an associated AWS account and region. - # - # @!attribute [rw] arn - # The ARN of the project. - # @return [String] - # - # @!attribute [rw] project_name - # The name of the project being summarized. - # @return [String] - # - # @!attribute [rw] created_date - # The date when the project was originally created, in UNIX epoch time - # format. - # @return [Time] - # - # @!attribute [rw] updated_date - # The date when the project was last updated, in UNIX epoch time - # format. If the project was not updated, then `createdDate` and - # `updatedDate` are the same. - # @return [Time] - # - # @!attribute [rw] tags - # The tags (metadata key/value pairs) associated with the project. - # @return [Hash] - # - class ProjectSummary < Struct.new( - :arn, - :project_name, - :created_date, - :updated_date, - :tags) - SENSITIVE = [] - include Aws::Structure - end - - # @!attribute [rw] code - # @return [String] - # - # @!attribute [rw] message - # @return [String] - # - class ResourceConflictException < Struct.new( - :code, - :message) - SENSITIVE = [] - include Aws::Structure - end - - # @!attribute [rw] code - # @return [String] - # - # @!attribute [rw] message - # @return [String] - # - class ResourceNotFoundException < Struct.new( - :code, - :message) - SENSITIVE = [] - include Aws::Structure - end - - # @!attribute [rw] resource_arn - # The ARN of the resouce for which tag(s) should be added or modified. - # @return [String] - # - # @!attribute [rw] tags - # The new or modifying tag(s) for the resource. See [AWS IoT 1-Click - # Service Limits][1] for the maximum number of tags allowed per - # resource. - # - # - # - # [1]: https://docs.aws.amazon.com/iot-1-click/latest/developerguide/1click-appendix.html#1click-limits - # @return [Hash] - # - class TagResourceRequest < Struct.new( - :resource_arn, - :tags) - SENSITIVE = [] - include Aws::Structure - end - - class TagResourceResponse < Aws::EmptyStructure; end - - # @!attribute [rw] code - # @return [String] - # - # @!attribute [rw] message - # @return [String] - # - class TooManyRequestsException < Struct.new( - :code, - :message) - SENSITIVE = [] - include Aws::Structure - end - - # @!attribute [rw] resource_arn - # The ARN of the resource whose tag you want to remove. - # @return [String] - # - # @!attribute [rw] tag_keys - # The keys of those tags which you want to remove. - # @return [Array] - # - class UntagResourceRequest < Struct.new( - :resource_arn, - :tag_keys) - SENSITIVE = [] - include Aws::Structure - end - - class UntagResourceResponse < Aws::EmptyStructure; end - - # @!attribute [rw] placement_name - # The name of the placement to update. - # @return [String] - # - # @!attribute [rw] project_name - # The name of the project containing the placement to be updated. - # @return [String] - # - # @!attribute [rw] attributes - # The user-defined object of attributes used to update the placement. - # The maximum number of key/value pairs is 50. - # @return [Hash] - # - class UpdatePlacementRequest < Struct.new( - :placement_name, - :project_name, - :attributes) - SENSITIVE = [] - include Aws::Structure - end - - class UpdatePlacementResponse < Aws::EmptyStructure; end - - # @!attribute [rw] project_name - # The name of the project to be updated. - # @return [String] - # - # @!attribute [rw] description - # An optional user-defined description for the project. - # @return [String] - # - # @!attribute [rw] placement_template - # An object defining the project update. Once a project has been - # created, you cannot add device template names to the project. - # However, for a given `placementTemplate`, you can update the - # associated `callbackOverrides` for the device definition using this - # API. - # @return [Types::PlacementTemplate] - # - class UpdateProjectRequest < Struct.new( - :project_name, - :description, - :placement_template) - SENSITIVE = [] - include Aws::Structure - end - - class UpdateProjectResponse < Aws::EmptyStructure; end - - end -end - diff --git a/gems/aws-sdk-iot1clickprojects/sig/client.rbs b/gems/aws-sdk-iot1clickprojects/sig/client.rbs deleted file mode 100644 index 777451d9c6f..00000000000 --- a/gems/aws-sdk-iot1clickprojects/sig/client.rbs +++ /dev/null @@ -1,266 +0,0 @@ -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -module Aws - module IoT1ClickProjects - class Client < ::Seahorse::Client::Base - include ::Aws::ClientStubs - - # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IoT1ClickProjects/Client.html#initialize-instance_method - def self.new: ( - ?credentials: untyped, - ?region: String, - ?access_key_id: String, - ?account_id: String, - ?active_endpoint_cache: bool, - ?adaptive_retry_wait_to_fill: bool, - ?client_side_monitoring: bool, - ?client_side_monitoring_client_id: String, - ?client_side_monitoring_host: String, - ?client_side_monitoring_port: Integer, - ?client_side_monitoring_publisher: untyped, - ?convert_params: bool, - ?correct_clock_skew: bool, - ?defaults_mode: String, - ?disable_host_prefix_injection: bool, - ?disable_request_compression: bool, - ?endpoint: String, - ?endpoint_cache_max_entries: Integer, - ?endpoint_cache_max_threads: Integer, - ?endpoint_cache_poll_interval: Integer, - ?endpoint_discovery: bool, - ?ignore_configured_endpoint_urls: bool, - ?log_formatter: untyped, - ?log_level: Symbol, - ?logger: untyped, - ?max_attempts: Integer, - ?profile: String, - ?request_min_compression_size_bytes: Integer, - ?retry_backoff: Proc, - ?retry_base_delay: Float, - ?retry_jitter: (:none | :equal | :full | ^(Integer) -> Integer), - ?retry_limit: Integer, - ?retry_max_delay: Integer, - ?retry_mode: ("legacy" | "standard" | "adaptive"), - ?sdk_ua_app_id: String, - ?secret_access_key: String, - ?session_token: String, - ?sigv4a_signing_region_set: Array[String], - ?stub_responses: untyped, - ?telemetry_provider: Aws::Telemetry::TelemetryProviderBase, - ?token_provider: untyped, - ?use_dualstack_endpoint: bool, - ?use_fips_endpoint: bool, - ?validate_params: bool, - ?endpoint_provider: untyped, - ?http_proxy: String, - ?http_open_timeout: (Float | Integer), - ?http_read_timeout: (Float | Integer), - ?http_idle_timeout: (Float | Integer), - ?http_continue_timeout: (Float | Integer), - ?ssl_timeout: (Float | Integer | nil), - ?http_wire_trace: bool, - ?ssl_verify_peer: bool, - ?ssl_ca_bundle: String, - ?ssl_ca_directory: String, - ?ssl_ca_store: String, - ?on_chunk_received: Proc, - ?on_chunk_sent: Proc, - ?raise_response_errors: bool - ) -> instance - | (?Hash[Symbol, untyped]) -> instance - - - interface _AssociateDeviceWithPlacementResponseSuccess - include ::Seahorse::Client::_ResponseSuccess[Types::AssociateDeviceWithPlacementResponse] - end - # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IoT1ClickProjects/Client.html#associate_device_with_placement-instance_method - def associate_device_with_placement: ( - project_name: ::String, - placement_name: ::String, - device_id: ::String, - device_template_name: ::String - ) -> _AssociateDeviceWithPlacementResponseSuccess - | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _AssociateDeviceWithPlacementResponseSuccess - - interface _CreatePlacementResponseSuccess - include ::Seahorse::Client::_ResponseSuccess[Types::CreatePlacementResponse] - end - # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IoT1ClickProjects/Client.html#create_placement-instance_method - def create_placement: ( - placement_name: ::String, - project_name: ::String, - ?attributes: Hash[::String, ::String] - ) -> _CreatePlacementResponseSuccess - | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreatePlacementResponseSuccess - - interface _CreateProjectResponseSuccess - include ::Seahorse::Client::_ResponseSuccess[Types::CreateProjectResponse] - end - # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IoT1ClickProjects/Client.html#create_project-instance_method - def create_project: ( - project_name: ::String, - ?description: ::String, - ?placement_template: { - default_attributes: Hash[::String, ::String]?, - device_templates: Hash[::String, { - device_type: ::String?, - callback_overrides: Hash[::String, ::String]? - }]? - }, - ?tags: Hash[::String, ::String] - ) -> _CreateProjectResponseSuccess - | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateProjectResponseSuccess - - interface _DeletePlacementResponseSuccess - include ::Seahorse::Client::_ResponseSuccess[Types::DeletePlacementResponse] - end - # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IoT1ClickProjects/Client.html#delete_placement-instance_method - def delete_placement: ( - placement_name: ::String, - project_name: ::String - ) -> _DeletePlacementResponseSuccess - | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DeletePlacementResponseSuccess - - interface _DeleteProjectResponseSuccess - include ::Seahorse::Client::_ResponseSuccess[Types::DeleteProjectResponse] - end - # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IoT1ClickProjects/Client.html#delete_project-instance_method - def delete_project: ( - project_name: ::String - ) -> _DeleteProjectResponseSuccess - | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DeleteProjectResponseSuccess - - interface _DescribePlacementResponseSuccess - include ::Seahorse::Client::_ResponseSuccess[Types::DescribePlacementResponse] - def placement: () -> Types::PlacementDescription - end - # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IoT1ClickProjects/Client.html#describe_placement-instance_method - def describe_placement: ( - placement_name: ::String, - project_name: ::String - ) -> _DescribePlacementResponseSuccess - | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DescribePlacementResponseSuccess - - interface _DescribeProjectResponseSuccess - include ::Seahorse::Client::_ResponseSuccess[Types::DescribeProjectResponse] - def project: () -> Types::ProjectDescription - end - # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IoT1ClickProjects/Client.html#describe_project-instance_method - def describe_project: ( - project_name: ::String - ) -> _DescribeProjectResponseSuccess - | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DescribeProjectResponseSuccess - - interface _DisassociateDeviceFromPlacementResponseSuccess - include ::Seahorse::Client::_ResponseSuccess[Types::DisassociateDeviceFromPlacementResponse] - end - # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IoT1ClickProjects/Client.html#disassociate_device_from_placement-instance_method - def disassociate_device_from_placement: ( - project_name: ::String, - placement_name: ::String, - device_template_name: ::String - ) -> _DisassociateDeviceFromPlacementResponseSuccess - | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DisassociateDeviceFromPlacementResponseSuccess - - interface _GetDevicesInPlacementResponseSuccess - include ::Seahorse::Client::_ResponseSuccess[Types::GetDevicesInPlacementResponse] - def devices: () -> ::Hash[::String, ::String] - end - # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IoT1ClickProjects/Client.html#get_devices_in_placement-instance_method - def get_devices_in_placement: ( - project_name: ::String, - placement_name: ::String - ) -> _GetDevicesInPlacementResponseSuccess - | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetDevicesInPlacementResponseSuccess - - interface _ListPlacementsResponseSuccess - include ::Seahorse::Client::_ResponseSuccess[Types::ListPlacementsResponse] - def placements: () -> ::Array[Types::PlacementSummary] - def next_token: () -> ::String - end - # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IoT1ClickProjects/Client.html#list_placements-instance_method - def list_placements: ( - project_name: ::String, - ?next_token: ::String, - ?max_results: ::Integer - ) -> _ListPlacementsResponseSuccess - | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListPlacementsResponseSuccess - - interface _ListProjectsResponseSuccess - include ::Seahorse::Client::_ResponseSuccess[Types::ListProjectsResponse] - def projects: () -> ::Array[Types::ProjectSummary] - def next_token: () -> ::String - end - # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IoT1ClickProjects/Client.html#list_projects-instance_method - def list_projects: ( - ?next_token: ::String, - ?max_results: ::Integer - ) -> _ListProjectsResponseSuccess - | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListProjectsResponseSuccess - - interface _ListTagsForResourceResponseSuccess - include ::Seahorse::Client::_ResponseSuccess[Types::ListTagsForResourceResponse] - def tags: () -> ::Hash[::String, ::String] - end - # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IoT1ClickProjects/Client.html#list_tags_for_resource-instance_method - def list_tags_for_resource: ( - resource_arn: ::String - ) -> _ListTagsForResourceResponseSuccess - | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListTagsForResourceResponseSuccess - - interface _TagResourceResponseSuccess - include ::Seahorse::Client::_ResponseSuccess[Types::TagResourceResponse] - end - # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IoT1ClickProjects/Client.html#tag_resource-instance_method - def tag_resource: ( - resource_arn: ::String, - tags: Hash[::String, ::String] - ) -> _TagResourceResponseSuccess - | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _TagResourceResponseSuccess - - interface _UntagResourceResponseSuccess - include ::Seahorse::Client::_ResponseSuccess[Types::UntagResourceResponse] - end - # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IoT1ClickProjects/Client.html#untag_resource-instance_method - def untag_resource: ( - resource_arn: ::String, - tag_keys: Array[::String] - ) -> _UntagResourceResponseSuccess - | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UntagResourceResponseSuccess - - interface _UpdatePlacementResponseSuccess - include ::Seahorse::Client::_ResponseSuccess[Types::UpdatePlacementResponse] - end - # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IoT1ClickProjects/Client.html#update_placement-instance_method - def update_placement: ( - placement_name: ::String, - project_name: ::String, - ?attributes: Hash[::String, ::String] - ) -> _UpdatePlacementResponseSuccess - | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdatePlacementResponseSuccess - - interface _UpdateProjectResponseSuccess - include ::Seahorse::Client::_ResponseSuccess[Types::UpdateProjectResponse] - end - # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IoT1ClickProjects/Client.html#update_project-instance_method - def update_project: ( - project_name: ::String, - ?description: ::String, - ?placement_template: { - default_attributes: Hash[::String, ::String]?, - device_templates: Hash[::String, { - device_type: ::String?, - callback_overrides: Hash[::String, ::String]? - }]? - } - ) -> _UpdateProjectResponseSuccess - | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateProjectResponseSuccess - end - end -end - diff --git a/gems/aws-sdk-iot1clickprojects/sig/errors.rbs b/gems/aws-sdk-iot1clickprojects/sig/errors.rbs deleted file mode 100644 index b86b4badae0..00000000000 --- a/gems/aws-sdk-iot1clickprojects/sig/errors.rbs +++ /dev/null @@ -1,36 +0,0 @@ -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -module Aws - module IoT1ClickProjects - module Errors - class ServiceError < ::Aws::Errors::ServiceError - end - - class InternalFailureException < ::Aws::Errors::ServiceError - def code: () -> ::String - def message: () -> ::String - end - class InvalidRequestException < ::Aws::Errors::ServiceError - def code: () -> ::String - def message: () -> ::String - end - class ResourceConflictException < ::Aws::Errors::ServiceError - def code: () -> ::String - def message: () -> ::String - end - class ResourceNotFoundException < ::Aws::Errors::ServiceError - def code: () -> ::String - def message: () -> ::String - end - class TooManyRequestsException < ::Aws::Errors::ServiceError - def code: () -> ::String - def message: () -> ::String - end - end - end -end diff --git a/gems/aws-sdk-iot1clickprojects/sig/resource.rbs b/gems/aws-sdk-iot1clickprojects/sig/resource.rbs deleted file mode 100644 index 8e62f0c9f37..00000000000 --- a/gems/aws-sdk-iot1clickprojects/sig/resource.rbs +++ /dev/null @@ -1,82 +0,0 @@ -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -module Aws - module IoT1ClickProjects - # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IoT1ClickProjects/Resource.html - class Resource - # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IoT1ClickProjects/Resource.html#initialize-instance_method - def initialize: ( - ?client: Client, - ?credentials: untyped, - ?region: String, - ?access_key_id: String, - ?account_id: String, - ?active_endpoint_cache: bool, - ?adaptive_retry_wait_to_fill: bool, - ?client_side_monitoring: bool, - ?client_side_monitoring_client_id: String, - ?client_side_monitoring_host: String, - ?client_side_monitoring_port: Integer, - ?client_side_monitoring_publisher: untyped, - ?convert_params: bool, - ?correct_clock_skew: bool, - ?defaults_mode: String, - ?disable_host_prefix_injection: bool, - ?disable_request_compression: bool, - ?endpoint: String, - ?endpoint_cache_max_entries: Integer, - ?endpoint_cache_max_threads: Integer, - ?endpoint_cache_poll_interval: Integer, - ?endpoint_discovery: bool, - ?ignore_configured_endpoint_urls: bool, - ?log_formatter: untyped, - ?log_level: Symbol, - ?logger: untyped, - ?max_attempts: Integer, - ?profile: String, - ?request_min_compression_size_bytes: Integer, - ?retry_backoff: Proc, - ?retry_base_delay: Float, - ?retry_jitter: (:none | :equal | :full | ^(Integer) -> Integer), - ?retry_limit: Integer, - ?retry_max_delay: Integer, - ?retry_mode: ("legacy" | "standard" | "adaptive"), - ?sdk_ua_app_id: String, - ?secret_access_key: String, - ?session_token: String, - ?sigv4a_signing_region_set: Array[String], - ?stub_responses: untyped, - ?telemetry_provider: Aws::Telemetry::TelemetryProviderBase, - ?token_provider: untyped, - ?use_dualstack_endpoint: bool, - ?use_fips_endpoint: bool, - ?validate_params: bool, - ?endpoint_provider: untyped, - ?http_proxy: String, - ?http_open_timeout: (Float | Integer), - ?http_read_timeout: (Float | Integer), - ?http_idle_timeout: (Float | Integer), - ?http_continue_timeout: (Float | Integer), - ?ssl_timeout: (Float | Integer | nil), - ?http_wire_trace: bool, - ?ssl_verify_peer: bool, - ?ssl_ca_bundle: String, - ?ssl_ca_directory: String, - ?ssl_ca_store: String, - ?on_chunk_received: Proc, - ?on_chunk_sent: Proc, - ?raise_response_errors: bool - ) -> void - | (?Hash[Symbol, untyped]) -> void - - def client: () -> Client - - - end - end -end diff --git a/gems/aws-sdk-iot1clickprojects/sig/types.rbs b/gems/aws-sdk-iot1clickprojects/sig/types.rbs deleted file mode 100644 index dd7936da052..00000000000 --- a/gems/aws-sdk-iot1clickprojects/sig/types.rbs +++ /dev/null @@ -1,254 +0,0 @@ -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -module Aws::IoT1ClickProjects - module Types - - class AssociateDeviceWithPlacementRequest - attr_accessor project_name: ::String - attr_accessor placement_name: ::String - attr_accessor device_id: ::String - attr_accessor device_template_name: ::String - SENSITIVE: [] - end - - class AssociateDeviceWithPlacementResponse < Aws::EmptyStructure - end - - class CreatePlacementRequest - attr_accessor placement_name: ::String - attr_accessor project_name: ::String - attr_accessor attributes: ::Hash[::String, ::String] - SENSITIVE: [] - end - - class CreatePlacementResponse < Aws::EmptyStructure - end - - class CreateProjectRequest - attr_accessor project_name: ::String - attr_accessor description: ::String - attr_accessor placement_template: Types::PlacementTemplate - attr_accessor tags: ::Hash[::String, ::String] - SENSITIVE: [] - end - - class CreateProjectResponse < Aws::EmptyStructure - end - - class DeletePlacementRequest - attr_accessor placement_name: ::String - attr_accessor project_name: ::String - SENSITIVE: [] - end - - class DeletePlacementResponse < Aws::EmptyStructure - end - - class DeleteProjectRequest - attr_accessor project_name: ::String - SENSITIVE: [] - end - - class DeleteProjectResponse < Aws::EmptyStructure - end - - class DescribePlacementRequest - attr_accessor placement_name: ::String - attr_accessor project_name: ::String - SENSITIVE: [] - end - - class DescribePlacementResponse - attr_accessor placement: Types::PlacementDescription - SENSITIVE: [] - end - - class DescribeProjectRequest - attr_accessor project_name: ::String - SENSITIVE: [] - end - - class DescribeProjectResponse - attr_accessor project: Types::ProjectDescription - SENSITIVE: [] - end - - class DeviceTemplate - attr_accessor device_type: ::String - attr_accessor callback_overrides: ::Hash[::String, ::String] - SENSITIVE: [] - end - - class DisassociateDeviceFromPlacementRequest - attr_accessor project_name: ::String - attr_accessor placement_name: ::String - attr_accessor device_template_name: ::String - SENSITIVE: [] - end - - class DisassociateDeviceFromPlacementResponse < Aws::EmptyStructure - end - - class GetDevicesInPlacementRequest - attr_accessor project_name: ::String - attr_accessor placement_name: ::String - SENSITIVE: [] - end - - class GetDevicesInPlacementResponse - attr_accessor devices: ::Hash[::String, ::String] - SENSITIVE: [] - end - - class InternalFailureException - attr_accessor code: ::String - attr_accessor message: ::String - SENSITIVE: [] - end - - class InvalidRequestException - attr_accessor code: ::String - attr_accessor message: ::String - SENSITIVE: [] - end - - class ListPlacementsRequest - attr_accessor project_name: ::String - attr_accessor next_token: ::String - attr_accessor max_results: ::Integer - SENSITIVE: [] - end - - class ListPlacementsResponse - attr_accessor placements: ::Array[Types::PlacementSummary] - attr_accessor next_token: ::String - SENSITIVE: [] - end - - class ListProjectsRequest - attr_accessor next_token: ::String - attr_accessor max_results: ::Integer - SENSITIVE: [] - end - - class ListProjectsResponse - attr_accessor projects: ::Array[Types::ProjectSummary] - attr_accessor next_token: ::String - SENSITIVE: [] - end - - class ListTagsForResourceRequest - attr_accessor resource_arn: ::String - SENSITIVE: [] - end - - class ListTagsForResourceResponse - attr_accessor tags: ::Hash[::String, ::String] - SENSITIVE: [] - end - - class PlacementDescription - attr_accessor project_name: ::String - attr_accessor placement_name: ::String - attr_accessor attributes: ::Hash[::String, ::String] - attr_accessor created_date: ::Time - attr_accessor updated_date: ::Time - SENSITIVE: [] - end - - class PlacementSummary - attr_accessor project_name: ::String - attr_accessor placement_name: ::String - attr_accessor created_date: ::Time - attr_accessor updated_date: ::Time - SENSITIVE: [] - end - - class PlacementTemplate - attr_accessor default_attributes: ::Hash[::String, ::String] - attr_accessor device_templates: ::Hash[::String, Types::DeviceTemplate] - SENSITIVE: [] - end - - class ProjectDescription - attr_accessor arn: ::String - attr_accessor project_name: ::String - attr_accessor description: ::String - attr_accessor created_date: ::Time - attr_accessor updated_date: ::Time - attr_accessor placement_template: Types::PlacementTemplate - attr_accessor tags: ::Hash[::String, ::String] - SENSITIVE: [] - end - - class ProjectSummary - attr_accessor arn: ::String - attr_accessor project_name: ::String - attr_accessor created_date: ::Time - attr_accessor updated_date: ::Time - attr_accessor tags: ::Hash[::String, ::String] - SENSITIVE: [] - end - - class ResourceConflictException - attr_accessor code: ::String - attr_accessor message: ::String - SENSITIVE: [] - end - - class ResourceNotFoundException - attr_accessor code: ::String - attr_accessor message: ::String - SENSITIVE: [] - end - - class TagResourceRequest - attr_accessor resource_arn: ::String - attr_accessor tags: ::Hash[::String, ::String] - SENSITIVE: [] - end - - class TagResourceResponse < Aws::EmptyStructure - end - - class TooManyRequestsException - attr_accessor code: ::String - attr_accessor message: ::String - SENSITIVE: [] - end - - class UntagResourceRequest - attr_accessor resource_arn: ::String - attr_accessor tag_keys: ::Array[::String] - SENSITIVE: [] - end - - class UntagResourceResponse < Aws::EmptyStructure - end - - class UpdatePlacementRequest - attr_accessor placement_name: ::String - attr_accessor project_name: ::String - attr_accessor attributes: ::Hash[::String, ::String] - SENSITIVE: [] - end - - class UpdatePlacementResponse < Aws::EmptyStructure - end - - class UpdateProjectRequest - attr_accessor project_name: ::String - attr_accessor description: ::String - attr_accessor placement_template: Types::PlacementTemplate - SENSITIVE: [] - end - - class UpdateProjectResponse < Aws::EmptyStructure - end - end -end diff --git a/gems/aws-sdk-iot1clickprojects/sig/waiters.rbs b/gems/aws-sdk-iot1clickprojects/sig/waiters.rbs deleted file mode 100644 index 60f91bdb92f..00000000000 --- a/gems/aws-sdk-iot1clickprojects/sig/waiters.rbs +++ /dev/null @@ -1,13 +0,0 @@ -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -module Aws - module IoT1ClickProjects - module Waiters - end - end -end diff --git a/gems/aws-sdk-iot1clickprojects/spec/endpoint_provider_spec.rb b/gems/aws-sdk-iot1clickprojects/spec/endpoint_provider_spec.rb deleted file mode 100644 index 1a454be6626..00000000000 --- a/gems/aws-sdk-iot1clickprojects/spec/endpoint_provider_spec.rb +++ /dev/null @@ -1,445 +0,0 @@ -# frozen_string_literal: true - -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - - -require_relative 'spec_helper' - -module Aws::IoT1ClickProjects - describe EndpointProvider do - subject { Aws::IoT1ClickProjects::EndpointProvider.new } - - context "For region ap-northeast-1 with FIPS disabled and DualStack disabled" do - let(:expected) do - {"endpoint"=>{"url"=>"https://projects.iot1click.ap-northeast-1.amazonaws.com"}} - end - - it 'produces the expected output from the EndpointProvider' do - params = EndpointParameters.new(**{:region=>"ap-northeast-1", :use_fips=>false, :use_dual_stack=>false}) - endpoint = subject.resolve_endpoint(params) - expect(endpoint.url).to eq(expected['endpoint']['url']) - expect(endpoint.headers).to eq(expected['endpoint']['headers'] || {}) - expect(endpoint.properties).to eq(expected['endpoint']['properties'] || {}) - end - end - - context "For region eu-central-1 with FIPS disabled and DualStack disabled" do - let(:expected) do - {"endpoint"=>{"url"=>"https://projects.iot1click.eu-central-1.amazonaws.com"}} - end - - it 'produces the expected output from the EndpointProvider' do - params = EndpointParameters.new(**{:region=>"eu-central-1", :use_fips=>false, :use_dual_stack=>false}) - endpoint = subject.resolve_endpoint(params) - expect(endpoint.url).to eq(expected['endpoint']['url']) - expect(endpoint.headers).to eq(expected['endpoint']['headers'] || {}) - expect(endpoint.properties).to eq(expected['endpoint']['properties'] || {}) - end - end - - context "For region eu-west-1 with FIPS disabled and DualStack disabled" do - let(:expected) do - {"endpoint"=>{"url"=>"https://projects.iot1click.eu-west-1.amazonaws.com"}} - end - - it 'produces the expected output from the EndpointProvider' do - params = EndpointParameters.new(**{:region=>"eu-west-1", :use_fips=>false, :use_dual_stack=>false}) - endpoint = subject.resolve_endpoint(params) - expect(endpoint.url).to eq(expected['endpoint']['url']) - expect(endpoint.headers).to eq(expected['endpoint']['headers'] || {}) - expect(endpoint.properties).to eq(expected['endpoint']['properties'] || {}) - end - end - - context "For region eu-west-2 with FIPS disabled and DualStack disabled" do - let(:expected) do - {"endpoint"=>{"url"=>"https://projects.iot1click.eu-west-2.amazonaws.com"}} - end - - it 'produces the expected output from the EndpointProvider' do - params = EndpointParameters.new(**{:region=>"eu-west-2", :use_fips=>false, :use_dual_stack=>false}) - endpoint = subject.resolve_endpoint(params) - expect(endpoint.url).to eq(expected['endpoint']['url']) - expect(endpoint.headers).to eq(expected['endpoint']['headers'] || {}) - expect(endpoint.properties).to eq(expected['endpoint']['properties'] || {}) - end - end - - context "For region us-east-1 with FIPS disabled and DualStack disabled" do - let(:expected) do - {"endpoint"=>{"url"=>"https://projects.iot1click.us-east-1.amazonaws.com"}} - end - - it 'produces the expected output from the EndpointProvider' do - params = EndpointParameters.new(**{:region=>"us-east-1", :use_fips=>false, :use_dual_stack=>false}) - endpoint = subject.resolve_endpoint(params) - expect(endpoint.url).to eq(expected['endpoint']['url']) - expect(endpoint.headers).to eq(expected['endpoint']['headers'] || {}) - expect(endpoint.properties).to eq(expected['endpoint']['properties'] || {}) - end - end - - context "For region us-east-2 with FIPS disabled and DualStack disabled" do - let(:expected) do - {"endpoint"=>{"url"=>"https://projects.iot1click.us-east-2.amazonaws.com"}} - end - - it 'produces the expected output from the EndpointProvider' do - params = EndpointParameters.new(**{:region=>"us-east-2", :use_fips=>false, :use_dual_stack=>false}) - endpoint = subject.resolve_endpoint(params) - expect(endpoint.url).to eq(expected['endpoint']['url']) - expect(endpoint.headers).to eq(expected['endpoint']['headers'] || {}) - expect(endpoint.properties).to eq(expected['endpoint']['properties'] || {}) - end - end - - context "For region us-west-2 with FIPS disabled and DualStack disabled" do - let(:expected) do - {"endpoint"=>{"url"=>"https://projects.iot1click.us-west-2.amazonaws.com"}} - end - - it 'produces the expected output from the EndpointProvider' do - params = EndpointParameters.new(**{:region=>"us-west-2", :use_fips=>false, :use_dual_stack=>false}) - endpoint = subject.resolve_endpoint(params) - expect(endpoint.url).to eq(expected['endpoint']['url']) - expect(endpoint.headers).to eq(expected['endpoint']['headers'] || {}) - expect(endpoint.properties).to eq(expected['endpoint']['properties'] || {}) - end - end - - context "For region us-east-1 with FIPS enabled and DualStack enabled" do - let(:expected) do - {"endpoint"=>{"url"=>"https://projects.iot1click-fips.us-east-1.api.aws"}} - end - - it 'produces the expected output from the EndpointProvider' do - params = EndpointParameters.new(**{:region=>"us-east-1", :use_fips=>true, :use_dual_stack=>true}) - endpoint = subject.resolve_endpoint(params) - expect(endpoint.url).to eq(expected['endpoint']['url']) - expect(endpoint.headers).to eq(expected['endpoint']['headers'] || {}) - expect(endpoint.properties).to eq(expected['endpoint']['properties'] || {}) - end - end - - context "For region us-east-1 with FIPS enabled and DualStack disabled" do - let(:expected) do - {"endpoint"=>{"url"=>"https://projects.iot1click-fips.us-east-1.amazonaws.com"}} - end - - it 'produces the expected output from the EndpointProvider' do - params = EndpointParameters.new(**{:region=>"us-east-1", :use_fips=>true, :use_dual_stack=>false}) - endpoint = subject.resolve_endpoint(params) - expect(endpoint.url).to eq(expected['endpoint']['url']) - expect(endpoint.headers).to eq(expected['endpoint']['headers'] || {}) - expect(endpoint.properties).to eq(expected['endpoint']['properties'] || {}) - end - end - - context "For region us-east-1 with FIPS disabled and DualStack enabled" do - let(:expected) do - {"endpoint"=>{"url"=>"https://projects.iot1click.us-east-1.api.aws"}} - end - - it 'produces the expected output from the EndpointProvider' do - params = EndpointParameters.new(**{:region=>"us-east-1", :use_fips=>false, :use_dual_stack=>true}) - endpoint = subject.resolve_endpoint(params) - expect(endpoint.url).to eq(expected['endpoint']['url']) - expect(endpoint.headers).to eq(expected['endpoint']['headers'] || {}) - expect(endpoint.properties).to eq(expected['endpoint']['properties'] || {}) - end - end - - context "For region cn-north-1 with FIPS enabled and DualStack enabled" do - let(:expected) do - {"endpoint"=>{"url"=>"https://projects.iot1click-fips.cn-north-1.api.amazonwebservices.com.cn"}} - end - - it 'produces the expected output from the EndpointProvider' do - params = EndpointParameters.new(**{:region=>"cn-north-1", :use_fips=>true, :use_dual_stack=>true}) - endpoint = subject.resolve_endpoint(params) - expect(endpoint.url).to eq(expected['endpoint']['url']) - expect(endpoint.headers).to eq(expected['endpoint']['headers'] || {}) - expect(endpoint.properties).to eq(expected['endpoint']['properties'] || {}) - end - end - - context "For region cn-north-1 with FIPS enabled and DualStack disabled" do - let(:expected) do - {"endpoint"=>{"url"=>"https://projects.iot1click-fips.cn-north-1.amazonaws.com.cn"}} - end - - it 'produces the expected output from the EndpointProvider' do - params = EndpointParameters.new(**{:region=>"cn-north-1", :use_fips=>true, :use_dual_stack=>false}) - endpoint = subject.resolve_endpoint(params) - expect(endpoint.url).to eq(expected['endpoint']['url']) - expect(endpoint.headers).to eq(expected['endpoint']['headers'] || {}) - expect(endpoint.properties).to eq(expected['endpoint']['properties'] || {}) - end - end - - context "For region cn-north-1 with FIPS disabled and DualStack enabled" do - let(:expected) do - {"endpoint"=>{"url"=>"https://projects.iot1click.cn-north-1.api.amazonwebservices.com.cn"}} - end - - it 'produces the expected output from the EndpointProvider' do - params = EndpointParameters.new(**{:region=>"cn-north-1", :use_fips=>false, :use_dual_stack=>true}) - endpoint = subject.resolve_endpoint(params) - expect(endpoint.url).to eq(expected['endpoint']['url']) - expect(endpoint.headers).to eq(expected['endpoint']['headers'] || {}) - expect(endpoint.properties).to eq(expected['endpoint']['properties'] || {}) - end - end - - context "For region cn-north-1 with FIPS disabled and DualStack disabled" do - let(:expected) do - {"endpoint"=>{"url"=>"https://projects.iot1click.cn-north-1.amazonaws.com.cn"}} - end - - it 'produces the expected output from the EndpointProvider' do - params = EndpointParameters.new(**{:region=>"cn-north-1", :use_fips=>false, :use_dual_stack=>false}) - endpoint = subject.resolve_endpoint(params) - expect(endpoint.url).to eq(expected['endpoint']['url']) - expect(endpoint.headers).to eq(expected['endpoint']['headers'] || {}) - expect(endpoint.properties).to eq(expected['endpoint']['properties'] || {}) - end - end - - context "For region us-gov-east-1 with FIPS enabled and DualStack enabled" do - let(:expected) do - {"endpoint"=>{"url"=>"https://projects.iot1click-fips.us-gov-east-1.api.aws"}} - end - - it 'produces the expected output from the EndpointProvider' do - params = EndpointParameters.new(**{:region=>"us-gov-east-1", :use_fips=>true, :use_dual_stack=>true}) - endpoint = subject.resolve_endpoint(params) - expect(endpoint.url).to eq(expected['endpoint']['url']) - expect(endpoint.headers).to eq(expected['endpoint']['headers'] || {}) - expect(endpoint.properties).to eq(expected['endpoint']['properties'] || {}) - end - end - - context "For region us-gov-east-1 with FIPS enabled and DualStack disabled" do - let(:expected) do - {"endpoint"=>{"url"=>"https://projects.iot1click-fips.us-gov-east-1.amazonaws.com"}} - end - - it 'produces the expected output from the EndpointProvider' do - params = EndpointParameters.new(**{:region=>"us-gov-east-1", :use_fips=>true, :use_dual_stack=>false}) - endpoint = subject.resolve_endpoint(params) - expect(endpoint.url).to eq(expected['endpoint']['url']) - expect(endpoint.headers).to eq(expected['endpoint']['headers'] || {}) - expect(endpoint.properties).to eq(expected['endpoint']['properties'] || {}) - end - end - - context "For region us-gov-east-1 with FIPS disabled and DualStack enabled" do - let(:expected) do - {"endpoint"=>{"url"=>"https://projects.iot1click.us-gov-east-1.api.aws"}} - end - - it 'produces the expected output from the EndpointProvider' do - params = EndpointParameters.new(**{:region=>"us-gov-east-1", :use_fips=>false, :use_dual_stack=>true}) - endpoint = subject.resolve_endpoint(params) - expect(endpoint.url).to eq(expected['endpoint']['url']) - expect(endpoint.headers).to eq(expected['endpoint']['headers'] || {}) - expect(endpoint.properties).to eq(expected['endpoint']['properties'] || {}) - end - end - - context "For region us-gov-east-1 with FIPS disabled and DualStack disabled" do - let(:expected) do - {"endpoint"=>{"url"=>"https://projects.iot1click.us-gov-east-1.amazonaws.com"}} - end - - it 'produces the expected output from the EndpointProvider' do - params = EndpointParameters.new(**{:region=>"us-gov-east-1", :use_fips=>false, :use_dual_stack=>false}) - endpoint = subject.resolve_endpoint(params) - expect(endpoint.url).to eq(expected['endpoint']['url']) - expect(endpoint.headers).to eq(expected['endpoint']['headers'] || {}) - expect(endpoint.properties).to eq(expected['endpoint']['properties'] || {}) - end - end - - context "For region us-iso-east-1 with FIPS enabled and DualStack enabled" do - let(:expected) do - {"error"=>"FIPS and DualStack are enabled, but this partition does not support one or both"} - end - - it 'produces the expected output from the EndpointProvider' do - params = EndpointParameters.new(**{:region=>"us-iso-east-1", :use_fips=>true, :use_dual_stack=>true}) - expect do - subject.resolve_endpoint(params) - end.to raise_error(ArgumentError, expected['error']) - end - end - - context "For region us-iso-east-1 with FIPS enabled and DualStack disabled" do - let(:expected) do - {"endpoint"=>{"url"=>"https://projects.iot1click-fips.us-iso-east-1.c2s.ic.gov"}} - end - - it 'produces the expected output from the EndpointProvider' do - params = EndpointParameters.new(**{:region=>"us-iso-east-1", :use_fips=>true, :use_dual_stack=>false}) - endpoint = subject.resolve_endpoint(params) - expect(endpoint.url).to eq(expected['endpoint']['url']) - expect(endpoint.headers).to eq(expected['endpoint']['headers'] || {}) - expect(endpoint.properties).to eq(expected['endpoint']['properties'] || {}) - end - end - - context "For region us-iso-east-1 with FIPS disabled and DualStack enabled" do - let(:expected) do - {"error"=>"DualStack is enabled but this partition does not support DualStack"} - end - - it 'produces the expected output from the EndpointProvider' do - params = EndpointParameters.new(**{:region=>"us-iso-east-1", :use_fips=>false, :use_dual_stack=>true}) - expect do - subject.resolve_endpoint(params) - end.to raise_error(ArgumentError, expected['error']) - end - end - - context "For region us-iso-east-1 with FIPS disabled and DualStack disabled" do - let(:expected) do - {"endpoint"=>{"url"=>"https://projects.iot1click.us-iso-east-1.c2s.ic.gov"}} - end - - it 'produces the expected output from the EndpointProvider' do - params = EndpointParameters.new(**{:region=>"us-iso-east-1", :use_fips=>false, :use_dual_stack=>false}) - endpoint = subject.resolve_endpoint(params) - expect(endpoint.url).to eq(expected['endpoint']['url']) - expect(endpoint.headers).to eq(expected['endpoint']['headers'] || {}) - expect(endpoint.properties).to eq(expected['endpoint']['properties'] || {}) - end - end - - context "For region us-isob-east-1 with FIPS enabled and DualStack enabled" do - let(:expected) do - {"error"=>"FIPS and DualStack are enabled, but this partition does not support one or both"} - end - - it 'produces the expected output from the EndpointProvider' do - params = EndpointParameters.new(**{:region=>"us-isob-east-1", :use_fips=>true, :use_dual_stack=>true}) - expect do - subject.resolve_endpoint(params) - end.to raise_error(ArgumentError, expected['error']) - end - end - - context "For region us-isob-east-1 with FIPS enabled and DualStack disabled" do - let(:expected) do - {"endpoint"=>{"url"=>"https://projects.iot1click-fips.us-isob-east-1.sc2s.sgov.gov"}} - end - - it 'produces the expected output from the EndpointProvider' do - params = EndpointParameters.new(**{:region=>"us-isob-east-1", :use_fips=>true, :use_dual_stack=>false}) - endpoint = subject.resolve_endpoint(params) - expect(endpoint.url).to eq(expected['endpoint']['url']) - expect(endpoint.headers).to eq(expected['endpoint']['headers'] || {}) - expect(endpoint.properties).to eq(expected['endpoint']['properties'] || {}) - end - end - - context "For region us-isob-east-1 with FIPS disabled and DualStack enabled" do - let(:expected) do - {"error"=>"DualStack is enabled but this partition does not support DualStack"} - end - - it 'produces the expected output from the EndpointProvider' do - params = EndpointParameters.new(**{:region=>"us-isob-east-1", :use_fips=>false, :use_dual_stack=>true}) - expect do - subject.resolve_endpoint(params) - end.to raise_error(ArgumentError, expected['error']) - end - end - - context "For region us-isob-east-1 with FIPS disabled and DualStack disabled" do - let(:expected) do - {"endpoint"=>{"url"=>"https://projects.iot1click.us-isob-east-1.sc2s.sgov.gov"}} - end - - it 'produces the expected output from the EndpointProvider' do - params = EndpointParameters.new(**{:region=>"us-isob-east-1", :use_fips=>false, :use_dual_stack=>false}) - endpoint = subject.resolve_endpoint(params) - expect(endpoint.url).to eq(expected['endpoint']['url']) - expect(endpoint.headers).to eq(expected['endpoint']['headers'] || {}) - expect(endpoint.properties).to eq(expected['endpoint']['properties'] || {}) - end - end - - context "For custom endpoint with region set and fips disabled and dualstack disabled" do - let(:expected) do - {"endpoint"=>{"url"=>"https://example.com"}} - end - - it 'produces the expected output from the EndpointProvider' do - params = EndpointParameters.new(**{:region=>"us-east-1", :use_fips=>false, :use_dual_stack=>false, :endpoint=>"https://example.com"}) - endpoint = subject.resolve_endpoint(params) - expect(endpoint.url).to eq(expected['endpoint']['url']) - expect(endpoint.headers).to eq(expected['endpoint']['headers'] || {}) - expect(endpoint.properties).to eq(expected['endpoint']['properties'] || {}) - end - end - - context "For custom endpoint with region not set and fips disabled and dualstack disabled" do - let(:expected) do - {"endpoint"=>{"url"=>"https://example.com"}} - end - - it 'produces the expected output from the EndpointProvider' do - params = EndpointParameters.new(**{:use_fips=>false, :use_dual_stack=>false, :endpoint=>"https://example.com"}) - endpoint = subject.resolve_endpoint(params) - expect(endpoint.url).to eq(expected['endpoint']['url']) - expect(endpoint.headers).to eq(expected['endpoint']['headers'] || {}) - expect(endpoint.properties).to eq(expected['endpoint']['properties'] || {}) - end - end - - context "For custom endpoint with fips enabled and dualstack disabled" do - let(:expected) do - {"error"=>"Invalid Configuration: FIPS and custom endpoint are not supported"} - end - - it 'produces the expected output from the EndpointProvider' do - params = EndpointParameters.new(**{:region=>"us-east-1", :use_fips=>true, :use_dual_stack=>false, :endpoint=>"https://example.com"}) - expect do - subject.resolve_endpoint(params) - end.to raise_error(ArgumentError, expected['error']) - end - end - - context "For custom endpoint with fips disabled and dualstack enabled" do - let(:expected) do - {"error"=>"Invalid Configuration: Dualstack and custom endpoint are not supported"} - end - - it 'produces the expected output from the EndpointProvider' do - params = EndpointParameters.new(**{:region=>"us-east-1", :use_fips=>false, :use_dual_stack=>true, :endpoint=>"https://example.com"}) - expect do - subject.resolve_endpoint(params) - end.to raise_error(ArgumentError, expected['error']) - end - end - - context "Missing region" do - let(:expected) do - {"error"=>"Invalid Configuration: Missing Region"} - end - - it 'produces the expected output from the EndpointProvider' do - params = EndpointParameters.new(**{}) - expect do - subject.resolve_endpoint(params) - end.to raise_error(ArgumentError, expected['error']) - end - end - - end -end diff --git a/gems/aws-sdk-iot1clickprojects/spec/spec_helper.rb b/gems/aws-sdk-iot1clickprojects/spec/spec_helper.rb deleted file mode 100644 index c52f1b2d7e3..00000000000 --- a/gems/aws-sdk-iot1clickprojects/spec/spec_helper.rb +++ /dev/null @@ -1,18 +0,0 @@ -# frozen_string_literal: true - -# WARNING ABOUT GENERATED CODE -# -# This file is generated. See the contributing guide for more information: -# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md -# -# WARNING ABOUT GENERATED CODE - -require_relative '../../aws-sdk-core/spec/shared_spec_helper' - -$:.unshift(File.expand_path('../../lib', __FILE__)) -$:.unshift(File.expand_path('../../../aws-sdk-core/lib', __FILE__)) -$:.unshift(File.expand_path('../../../aws-sigv4/lib', __FILE__)) - -require 'rspec' -require 'webmock/rspec' -require 'aws-sdk-iot1clickprojects' diff --git a/services.json b/services.json index 0ecb2d5c43f..a1aafd0524c 100644 --- a/services.json +++ b/services.json @@ -595,14 +595,6 @@ "IoT": { "models": "iot/2015-05-28" }, - "IoT1ClickDevicesService": { - "models": "iot1click-devices/2018-05-14", - "deprecated": true - }, - "IoT1ClickProjects": { - "models": "iot1click-projects/2018-05-14", - "deprecated": true - }, "IoTAnalytics": { "models": "iotanalytics/2017-11-27" },