From f55d9b11493acebf549a63d5d24650ea54022a6b Mon Sep 17 00:00:00 2001 From: Eren Yeager <92114074+wty-Bryant@users.noreply.github.com> Date: Fri, 19 Jan 2024 12:26:12 -0500 Subject: [PATCH] Remove cloudfrontkeyvaluestore (#5146) * Remove cloudfrontkeyvaluestore service from v1 * Add changelog * Put back the blank line in changelog * Put back the trailing blank line in changelog --------- Co-authored-by: Tianyi Wang --- CHANGELOG_PENDING.md | 2 + .../2022-07-26/api-2.json | 485 ---- .../2022-07-26/docs-2.json | 231 -- .../2022-07-26/endpoint-rule-set-1.json | 449 ---- .../2022-07-26/endpoint-tests-1.json | 198 -- .../2022-07-26/examples-1.json | 5 - .../2022-07-26/paginators-1.json | 10 - service/cloudfrontkeyvaluestore/api.go | 2010 ----------------- .../cloudfrontkeyvaluestoreiface/interface.go | 91 - service/cloudfrontkeyvaluestore/doc.go | 29 - service/cloudfrontkeyvaluestore/errors.go | 55 - service/cloudfrontkeyvaluestore/service.go | 106 - 12 files changed, 2 insertions(+), 3669 deletions(-) delete mode 100644 models/apis/cloudfront-keyvaluestore/2022-07-26/api-2.json delete mode 100644 models/apis/cloudfront-keyvaluestore/2022-07-26/docs-2.json delete mode 100644 models/apis/cloudfront-keyvaluestore/2022-07-26/endpoint-rule-set-1.json delete mode 100644 models/apis/cloudfront-keyvaluestore/2022-07-26/endpoint-tests-1.json delete mode 100644 models/apis/cloudfront-keyvaluestore/2022-07-26/examples-1.json delete mode 100644 models/apis/cloudfront-keyvaluestore/2022-07-26/paginators-1.json delete mode 100644 service/cloudfrontkeyvaluestore/api.go delete mode 100644 service/cloudfrontkeyvaluestore/cloudfrontkeyvaluestoreiface/interface.go delete mode 100644 service/cloudfrontkeyvaluestore/doc.go delete mode 100644 service/cloudfrontkeyvaluestore/errors.go delete mode 100644 service/cloudfrontkeyvaluestore/service.go diff --git a/CHANGELOG_PENDING.md b/CHANGELOG_PENDING.md index 8a1927a39ca..724f4e807bf 100644 --- a/CHANGELOG_PENDING.md +++ b/CHANGELOG_PENDING.md @@ -1,4 +1,6 @@ ### SDK Features +* `service/cloudfrontkeyvaluestore`: Deprecate cloudfrontkeyvaluestore + * This change removes the cloudfrontkeyvaluestore service, since it does not support sigv4a. ### SDK Enhancements diff --git a/models/apis/cloudfront-keyvaluestore/2022-07-26/api-2.json b/models/apis/cloudfront-keyvaluestore/2022-07-26/api-2.json deleted file mode 100644 index c16640ebbce..00000000000 --- a/models/apis/cloudfront-keyvaluestore/2022-07-26/api-2.json +++ /dev/null @@ -1,485 +0,0 @@ -{ - "version":"2.0", - "metadata":{ - "apiVersion":"2022-07-26", - "endpointPrefix":"cloudfront-keyvaluestore", - "jsonVersion":"1.1", - "protocol":"rest-json", - "serviceFullName":"Amazon CloudFront KeyValueStore", - "serviceId":"CloudFront KeyValueStore", - "signatureVersion":"v4", - "signingName":"cloudfront-keyvaluestore", - "uid":"cloudfront-keyvaluestore-2022-07-26" - }, - "operations":{ - "DeleteKey":{ - "name":"DeleteKey", - "http":{ - "method":"DELETE", - "requestUri":"/key-value-stores/{KvsARN}/keys/{Key}", - "responseCode":200 - }, - "input":{"shape":"DeleteKeyRequest"}, - "output":{"shape":"DeleteKeyResponse"}, - "errors":[ - {"shape":"ConflictException"}, - {"shape":"ValidationException"}, - {"shape":"InternalServerException"}, - {"shape":"ServiceQuotaExceededException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"AccessDeniedException"} - ], - "idempotent":true - }, - "DescribeKeyValueStore":{ - "name":"DescribeKeyValueStore", - "http":{ - "method":"GET", - "requestUri":"/key-value-stores/{KvsARN}", - "responseCode":200 - }, - "input":{"shape":"DescribeKeyValueStoreRequest"}, - "output":{"shape":"DescribeKeyValueStoreResponse"}, - "errors":[ - {"shape":"ConflictException"}, - {"shape":"InternalServerException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"AccessDeniedException"} - ] - }, - "GetKey":{ - "name":"GetKey", - "http":{ - "method":"GET", - "requestUri":"/key-value-stores/{KvsARN}/keys/{Key}", - "responseCode":200 - }, - "input":{"shape":"GetKeyRequest"}, - "output":{"shape":"GetKeyResponse"}, - "errors":[ - {"shape":"ConflictException"}, - {"shape":"InternalServerException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"AccessDeniedException"} - ] - }, - "ListKeys":{ - "name":"ListKeys", - "http":{ - "method":"GET", - "requestUri":"/key-value-stores/{KvsARN}/keys", - "responseCode":200 - }, - "input":{"shape":"ListKeysRequest"}, - "output":{"shape":"ListKeysResponse"}, - "errors":[ - {"shape":"ConflictException"}, - {"shape":"ValidationException"}, - {"shape":"InternalServerException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"AccessDeniedException"} - ] - }, - "PutKey":{ - "name":"PutKey", - "http":{ - "method":"PUT", - "requestUri":"/key-value-stores/{KvsARN}/keys/{Key}", - "responseCode":200 - }, - "input":{"shape":"PutKeyRequest"}, - "output":{"shape":"PutKeyResponse"}, - "errors":[ - {"shape":"ConflictException"}, - {"shape":"ValidationException"}, - {"shape":"InternalServerException"}, - {"shape":"ServiceQuotaExceededException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"AccessDeniedException"} - ], - "idempotent":true - }, - "UpdateKeys":{ - "name":"UpdateKeys", - "http":{ - "method":"POST", - "requestUri":"/key-value-stores/{KvsARN}/keys", - "responseCode":200 - }, - "input":{"shape":"UpdateKeysRequest"}, - "output":{"shape":"UpdateKeysResponse"}, - "errors":[ - {"shape":"ConflictException"}, - {"shape":"ValidationException"}, - {"shape":"InternalServerException"}, - {"shape":"ServiceQuotaExceededException"}, - {"shape":"ResourceNotFoundException"}, - {"shape":"AccessDeniedException"} - ], - "idempotent":true - } - }, - "shapes":{ - "AccessDeniedException":{ - "type":"structure", - "members":{ - "Message":{"shape":"String"} - }, - "error":{ - "httpStatusCode":403, - "senderFault":true - }, - "exception":true - }, - "ConflictException":{ - "type":"structure", - "members":{ - "Message":{"shape":"String"} - }, - "error":{ - "httpStatusCode":409, - "senderFault":true - }, - "exception":true - }, - "DeleteKeyRequest":{ - "type":"structure", - "required":[ - "KvsARN", - "Key", - "IfMatch" - ], - "members":{ - "KvsARN":{ - "shape":"KvsARN", - "contextParam":{"name":"KvsARN"}, - "location":"uri", - "locationName":"KvsARN" - }, - "Key":{ - "shape":"Key", - "location":"uri", - "locationName":"Key" - }, - "IfMatch":{ - "shape":"Etag", - "location":"header", - "locationName":"If-Match" - } - } - }, - "DeleteKeyRequestListItem":{ - "type":"structure", - "required":["Key"], - "members":{ - "Key":{"shape":"Key"} - } - }, - "DeleteKeyRequestsList":{ - "type":"list", - "member":{"shape":"DeleteKeyRequestListItem"} - }, - "DeleteKeyResponse":{ - "type":"structure", - "required":[ - "ItemCount", - "TotalSizeInBytes", - "ETag" - ], - "members":{ - "ItemCount":{"shape":"Integer"}, - "TotalSizeInBytes":{"shape":"Long"}, - "ETag":{ - "shape":"Etag", - "location":"header", - "locationName":"ETag" - } - } - }, - "DescribeKeyValueStoreRequest":{ - "type":"structure", - "required":["KvsARN"], - "members":{ - "KvsARN":{ - "shape":"KvsARN", - "contextParam":{"name":"KvsARN"}, - "location":"uri", - "locationName":"KvsARN" - } - } - }, - "DescribeKeyValueStoreResponse":{ - "type":"structure", - "required":[ - "ItemCount", - "TotalSizeInBytes", - "KvsARN", - "Created", - "ETag" - ], - "members":{ - "ItemCount":{"shape":"Integer"}, - "TotalSizeInBytes":{"shape":"Long"}, - "KvsARN":{"shape":"KvsARN"}, - "Created":{"shape":"Timestamp"}, - "ETag":{ - "shape":"Etag", - "location":"header", - "locationName":"ETag" - }, - "LastModified":{"shape":"Timestamp"} - } - }, - "Etag":{"type":"string"}, - "GetKeyRequest":{ - "type":"structure", - "required":[ - "KvsARN", - "Key" - ], - "members":{ - "KvsARN":{ - "shape":"KvsARN", - "contextParam":{"name":"KvsARN"}, - "location":"uri", - "locationName":"KvsARN" - }, - "Key":{ - "shape":"Key", - "location":"uri", - "locationName":"Key" - } - } - }, - "GetKeyResponse":{ - "type":"structure", - "required":[ - "Key", - "Value", - "ItemCount", - "TotalSizeInBytes" - ], - "members":{ - "Key":{"shape":"Key"}, - "Value":{"shape":"Value"}, - "ItemCount":{"shape":"Integer"}, - "TotalSizeInBytes":{"shape":"Long"} - } - }, - "Integer":{ - "type":"integer", - "box":true - }, - "InternalServerException":{ - "type":"structure", - "members":{ - "Message":{"shape":"String"} - }, - "error":{"httpStatusCode":500}, - "exception":true, - "fault":true - }, - "Key":{ - "type":"string", - "max":1024, - "min":1 - }, - "KvsARN":{ - "type":"string", - "max":2048, - "min":1 - }, - "ListKeysRequest":{ - "type":"structure", - "required":["KvsARN"], - "members":{ - "KvsARN":{ - "shape":"KvsARN", - "contextParam":{"name":"KvsARN"}, - "location":"uri", - "locationName":"KvsARN" - }, - "NextToken":{ - "shape":"String", - "location":"querystring", - "locationName":"NextToken" - }, - "MaxResults":{ - "shape":"ListKeysRequestMaxResultsInteger", - "location":"querystring", - "locationName":"MaxResults" - } - } - }, - "ListKeysRequestMaxResultsInteger":{ - "type":"integer", - "box":true, - "max":50, - "min":1 - }, - "ListKeysResponse":{ - "type":"structure", - "members":{ - "NextToken":{"shape":"String"}, - "Items":{"shape":"ListKeysResponseList"} - } - }, - "ListKeysResponseList":{ - "type":"list", - "member":{"shape":"ListKeysResponseListItem"} - }, - "ListKeysResponseListItem":{ - "type":"structure", - "required":[ - "Key", - "Value" - ], - "members":{ - "Key":{"shape":"Key"}, - "Value":{"shape":"Value"} - } - }, - "Long":{ - "type":"long", - "box":true - }, - "PutKeyRequest":{ - "type":"structure", - "required":[ - "Key", - "Value", - "KvsARN", - "IfMatch" - ], - "members":{ - "Key":{ - "shape":"Key", - "location":"uri", - "locationName":"Key" - }, - "Value":{"shape":"Value"}, - "KvsARN":{ - "shape":"KvsARN", - "contextParam":{"name":"KvsARN"}, - "location":"uri", - "locationName":"KvsARN" - }, - "IfMatch":{ - "shape":"Etag", - "location":"header", - "locationName":"If-Match" - } - } - }, - "PutKeyRequestListItem":{ - "type":"structure", - "required":[ - "Key", - "Value" - ], - "members":{ - "Key":{"shape":"Key"}, - "Value":{"shape":"Value"} - } - }, - "PutKeyRequestsList":{ - "type":"list", - "member":{"shape":"PutKeyRequestListItem"} - }, - "PutKeyResponse":{ - "type":"structure", - "required":[ - "ItemCount", - "TotalSizeInBytes", - "ETag" - ], - "members":{ - "ItemCount":{"shape":"Integer"}, - "TotalSizeInBytes":{"shape":"Long"}, - "ETag":{ - "shape":"Etag", - "location":"header", - "locationName":"ETag" - } - } - }, - "ResourceNotFoundException":{ - "type":"structure", - "members":{ - "Message":{"shape":"String"} - }, - "error":{ - "httpStatusCode":404, - "senderFault":true - }, - "exception":true - }, - "ServiceQuotaExceededException":{ - "type":"structure", - "members":{ - "Message":{"shape":"String"} - }, - "error":{ - "httpStatusCode":402, - "senderFault":true - }, - "exception":true - }, - "String":{"type":"string"}, - "Timestamp":{"type":"timestamp"}, - "UpdateKeysRequest":{ - "type":"structure", - "required":[ - "KvsARN", - "IfMatch" - ], - "members":{ - "KvsARN":{ - "shape":"KvsARN", - "contextParam":{"name":"KvsARN"}, - "location":"uri", - "locationName":"KvsARN" - }, - "IfMatch":{ - "shape":"Etag", - "location":"header", - "locationName":"If-Match" - }, - "Puts":{"shape":"PutKeyRequestsList"}, - "Deletes":{"shape":"DeleteKeyRequestsList"} - } - }, - "UpdateKeysResponse":{ - "type":"structure", - "required":[ - "ItemCount", - "TotalSizeInBytes", - "ETag" - ], - "members":{ - "ItemCount":{"shape":"Integer"}, - "TotalSizeInBytes":{"shape":"Long"}, - "ETag":{ - "shape":"Etag", - "location":"header", - "locationName":"ETag" - } - } - }, - "ValidationException":{ - "type":"structure", - "members":{ - "Message":{"shape":"String"} - }, - "error":{ - "httpStatusCode":400, - "senderFault":true - }, - "exception":true - }, - "Value":{ - "type":"string", - "sensitive":true - } - } -} diff --git a/models/apis/cloudfront-keyvaluestore/2022-07-26/docs-2.json b/models/apis/cloudfront-keyvaluestore/2022-07-26/docs-2.json deleted file mode 100644 index 97a873f7d3e..00000000000 --- a/models/apis/cloudfront-keyvaluestore/2022-07-26/docs-2.json +++ /dev/null @@ -1,231 +0,0 @@ -{ - "version": "2.0", - "service": "

Amazon CloudFront KeyValueStore Service to View and Update Data in a KVS Resource

", - "operations": { - "DeleteKey": "

Deletes the key value pair specified by the key.

", - "DescribeKeyValueStore": "

Returns metadata information about Key Value Store.

", - "GetKey": "

Returns a key value pair.

", - "ListKeys": "

Returns a list of key value pairs.

", - "PutKey": "

Creates a new key value pair or replaces the value of an existing key.

", - "UpdateKeys": "

Puts or Deletes multiple key value pairs in a single, all-or-nothing operation.

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

Access denied.

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

Resource is not in expected state.

", - "refs": { - } - }, - "DeleteKeyRequest": { - "base": null, - "refs": { - } - }, - "DeleteKeyRequestListItem": { - "base": "

List item for keys to delete.

", - "refs": { - "DeleteKeyRequestsList$member": null - } - }, - "DeleteKeyRequestsList": { - "base": null, - "refs": { - "UpdateKeysRequest$Deletes": "

List of keys to delete.

" - } - }, - "DeleteKeyResponse": { - "base": "

Metadata information about a Key Value Store.

", - "refs": { - } - }, - "DescribeKeyValueStoreRequest": { - "base": null, - "refs": { - } - }, - "DescribeKeyValueStoreResponse": { - "base": "

Metadata information about a Key Value Store.

", - "refs": { - } - }, - "Etag": { - "base": null, - "refs": { - "DeleteKeyRequest$IfMatch": "

The current version (ETag) of the Key Value Store that you are deleting keys from, which you can get using DescribeKeyValueStore.

", - "DeleteKeyResponse$ETag": "

The current version identifier of the Key Value Store after the successful delete.

", - "DescribeKeyValueStoreResponse$ETag": "

The version identifier for the current version of the Key Value Store.

", - "PutKeyRequest$IfMatch": "

The current version (ETag) of the Key Value Store that you are putting keys into, which you can get using DescribeKeyValueStore.

", - "PutKeyResponse$ETag": "

The current version identifier of the Key Value Store after the successful put.

", - "UpdateKeysRequest$IfMatch": "

The current version (ETag) of the Key Value Store that you are updating keys of, which you can get using DescribeKeyValueStore.

", - "UpdateKeysResponse$ETag": "

The current version identifier of the Key Value Store after the successful update.

" - } - }, - "GetKeyRequest": { - "base": null, - "refs": { - } - }, - "GetKeyResponse": { - "base": "

A key value pair.

", - "refs": { - } - }, - "Integer": { - "base": null, - "refs": { - "DeleteKeyResponse$ItemCount": "

Number of key value pairs in the Key Value Store after the successful delete.

", - "DescribeKeyValueStoreResponse$ItemCount": "

Number of key value pairs in the Key Value Store.

", - "GetKeyResponse$ItemCount": "

Number of key value pairs in the Key Value Store.

", - "PutKeyResponse$ItemCount": "

Number of key value pairs in the Key Value Store after the successful put.

", - "UpdateKeysResponse$ItemCount": "

Number of key value pairs in the Key Value Store after the successful update.

" - } - }, - "InternalServerException": { - "base": "

Internal server error.

", - "refs": { - } - }, - "Key": { - "base": null, - "refs": { - "DeleteKeyRequest$Key": "

The key to delete.

", - "DeleteKeyRequestListItem$Key": "

The key of the key value pair to be deleted.

", - "GetKeyRequest$Key": "

The key to get.

", - "GetKeyResponse$Key": "

The key of the key value pair.

", - "ListKeysResponseListItem$Key": "

The key of the key value pair.

", - "PutKeyRequest$Key": "

The key to put.

", - "PutKeyRequestListItem$Key": "

The key of the key value pair list item to put.

" - } - }, - "KvsARN": { - "base": null, - "refs": { - "DeleteKeyRequest$KvsARN": "

The Amazon Resource Name (ARN) of the Key Value Store.

", - "DescribeKeyValueStoreRequest$KvsARN": "

The Amazon Resource Name (ARN) of the Key Value Store.

", - "DescribeKeyValueStoreResponse$KvsARN": "

The Amazon Resource Name (ARN) of the Key Value Store.

", - "GetKeyRequest$KvsARN": "

The Amazon Resource Name (ARN) of the Key Value Store.

", - "ListKeysRequest$KvsARN": "

The Amazon Resource Name (ARN) of the Key Value Store.

", - "PutKeyRequest$KvsARN": "

The Amazon Resource Name (ARN) of the Key Value Store.

", - "UpdateKeysRequest$KvsARN": "

The Amazon Resource Name (ARN) of the Key Value Store.

" - } - }, - "ListKeysRequest": { - "base": null, - "refs": { - } - }, - "ListKeysRequestMaxResultsInteger": { - "base": null, - "refs": { - "ListKeysRequest$MaxResults": "

Maximum number of results that are returned per call. The default is 10 and maximum allowed page is 50.

" - } - }, - "ListKeysResponse": { - "base": null, - "refs": { - } - }, - "ListKeysResponseList": { - "base": null, - "refs": { - "ListKeysResponse$Items": "

Key value pairs

" - } - }, - "ListKeysResponseListItem": { - "base": "

A key value pair.

", - "refs": { - "ListKeysResponseList$member": null - } - }, - "Long": { - "base": null, - "refs": { - "DeleteKeyResponse$TotalSizeInBytes": "

Total size of the Key Value Store after the successful delete, in bytes.

", - "DescribeKeyValueStoreResponse$TotalSizeInBytes": "

Total size of the Key Value Store in bytes.

", - "GetKeyResponse$TotalSizeInBytes": "

Total size of the Key Value Store in bytes.

", - "PutKeyResponse$TotalSizeInBytes": "

Total size of the Key Value Store after the successful put, in bytes.

", - "UpdateKeysResponse$TotalSizeInBytes": "

Total size of the Key Value Store after the successful update, in bytes.

" - } - }, - "PutKeyRequest": { - "base": "

A key value pair.

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

List item for key value pair to put.

", - "refs": { - "PutKeyRequestsList$member": null - } - }, - "PutKeyRequestsList": { - "base": null, - "refs": { - "UpdateKeysRequest$Puts": "

List of key value pairs to put.

" - } - }, - "PutKeyResponse": { - "base": "

Metadata information about a Key Value Store.

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

Resource was not found.

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

Limit exceeded.

", - "refs": { - } - }, - "String": { - "base": null, - "refs": { - "AccessDeniedException$Message": null, - "ConflictException$Message": null, - "InternalServerException$Message": null, - "ListKeysRequest$NextToken": "

If nextToken is returned in the response, there are more results available. Make the next call using the returned token to retrieve the next page.

", - "ListKeysResponse$NextToken": "

If nextToken is returned in the response, there are more results available. Make the next call using the returned token to retrieve the next page.

", - "ResourceNotFoundException$Message": null, - "ServiceQuotaExceededException$Message": null, - "ValidationException$Message": null - } - }, - "Timestamp": { - "base": null, - "refs": { - "DescribeKeyValueStoreResponse$Created": "

Date and time when the Key Value Store was created.

", - "DescribeKeyValueStoreResponse$LastModified": "

Date and time when the key value pairs in the Key Value Store was last modified.

" - } - }, - "UpdateKeysRequest": { - "base": null, - "refs": { - } - }, - "UpdateKeysResponse": { - "base": "

Metadata information about a Key Value Store.

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

Validation failed.

", - "refs": { - } - }, - "Value": { - "base": null, - "refs": { - "GetKeyResponse$Value": "

The value of the key value pair.

", - "ListKeysResponseListItem$Value": "

The value of the key value pair.

", - "PutKeyRequest$Value": "

The value to put.

", - "PutKeyRequestListItem$Value": "

The value for the key value pair to put.

" - } - } - } -} diff --git a/models/apis/cloudfront-keyvaluestore/2022-07-26/endpoint-rule-set-1.json b/models/apis/cloudfront-keyvaluestore/2022-07-26/endpoint-rule-set-1.json deleted file mode 100644 index 1994b7d23e2..00000000000 --- a/models/apis/cloudfront-keyvaluestore/2022-07-26/endpoint-rule-set-1.json +++ /dev/null @@ -1,449 +0,0 @@ -{ - "version": "1.0", - "parameters": { - "KvsARN": { - "required": false, - "documentation": "The ARN of the Key Value Store", - "type": "String" - }, - "Region": { - "builtIn": "AWS::Region", - "required": false, - "documentation": "The AWS region used to dispatch the request.", - "type": "String" - }, - "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": "booleanEquals", - "argv": [ - { - "ref": "UseFIPS" - }, - false - ] - } - ], - "rules": [ - { - "conditions": [ - { - "fn": "isSet", - "argv": [ - { - "ref": "KvsARN" - } - ] - } - ], - "rules": [ - { - "conditions": [ - { - "fn": "aws.parseArn", - "argv": [ - { - "ref": "KvsARN" - } - ], - "assign": "parsedArn" - } - ], - "rules": [ - { - "conditions": [ - { - "fn": "stringEquals", - "argv": [ - { - "fn": "getAttr", - "argv": [ - { - "ref": "parsedArn" - }, - "service" - ] - }, - "cloudfront" - ] - } - ], - "rules": [ - { - "conditions": [ - { - "fn": "stringEquals", - "argv": [ - { - "fn": "getAttr", - "argv": [ - { - "ref": "parsedArn" - }, - "region" - ] - }, - "" - ] - } - ], - "rules": [ - { - "conditions": [ - { - "fn": "getAttr", - "argv": [ - { - "ref": "parsedArn" - }, - "resourceId[0]" - ], - "assign": "arnType" - } - ], - "rules": [ - { - "conditions": [ - { - "fn": "not", - "argv": [ - { - "fn": "stringEquals", - "argv": [ - { - "ref": "arnType" - }, - "" - ] - } - ] - } - ], - "rules": [ - { - "conditions": [ - { - "fn": "stringEquals", - "argv": [ - { - "ref": "arnType" - }, - "key-value-store" - ] - } - ], - "rules": [ - { - "conditions": [ - { - "fn": "stringEquals", - "argv": [ - { - "fn": "getAttr", - "argv": [ - { - "ref": "parsedArn" - }, - "partition" - ] - }, - "aws" - ] - } - ], - "rules": [ - { - "conditions": [ - { - "fn": "isSet", - "argv": [ - { - "ref": "Region" - } - ] - } - ], - "rules": [ - { - "conditions": [ - { - "fn": "aws.partition", - "argv": [ - { - "ref": "Region" - } - ], - "assign": "partitionResult" - } - ], - "rules": [ - { - "conditions": [ - { - "fn": "stringEquals", - "argv": [ - { - "fn": "getAttr", - "argv": [ - { - "ref": "partitionResult" - }, - "name" - ] - }, - "{parsedArn#partition}" - ] - } - ], - "rules": [ - { - "conditions": [ - { - "fn": "isSet", - "argv": [ - { - "ref": "Endpoint" - } - ] - } - ], - "rules": [ - { - "conditions": [ - { - "fn": "parseURL", - "argv": [ - { - "ref": "Endpoint" - } - ], - "assign": "url" - } - ], - "rules": [ - { - "conditions": [], - "endpoint": { - "url": "{url#scheme}://{parsedArn#accountId}.{url#authority}{url#path}", - "properties": { - "authSchemes": [ - { - "name": "sigv4a", - "signingName": "cloudfront-keyvaluestore", - "signingRegionSet": [ - "*" - ] - } - ] - }, - "headers": {} - }, - "type": "endpoint" - } - ], - "type": "tree" - }, - { - "conditions": [], - "error": "Provided endpoint is not a valid URL", - "type": "error" - } - ], - "type": "tree" - }, - { - "conditions": [], - "endpoint": { - "url": "https://{parsedArn#accountId}.cloudfront-kvs.global.api.aws", - "properties": { - "authSchemes": [ - { - "name": "sigv4a", - "signingName": "cloudfront-keyvaluestore", - "signingRegionSet": [ - "*" - ] - } - ] - }, - "headers": {} - }, - "type": "endpoint" - } - ], - "type": "tree" - }, - { - "conditions": [], - "error": "Client was configured for partition `{partitionResult#name}` but Kvs ARN has `{parsedArn#partition}`", - "type": "error" - } - ], - "type": "tree" - } - ], - "type": "tree" - }, - { - "conditions": [ - { - "fn": "isSet", - "argv": [ - { - "ref": "Endpoint" - } - ] - } - ], - "rules": [ - { - "conditions": [ - { - "fn": "parseURL", - "argv": [ - { - "ref": "Endpoint" - } - ], - "assign": "url" - } - ], - "rules": [ - { - "conditions": [], - "endpoint": { - "url": "{url#scheme}://{parsedArn#accountId}.{url#authority}{url#path}", - "properties": { - "authSchemes": [ - { - "name": "sigv4a", - "signingName": "cloudfront-keyvaluestore", - "signingRegionSet": [ - "*" - ] - } - ] - }, - "headers": {} - }, - "type": "endpoint" - } - ], - "type": "tree" - }, - { - "conditions": [], - "error": "Provided endpoint is not a valid URL", - "type": "error" - } - ], - "type": "tree" - }, - { - "conditions": [], - "endpoint": { - "url": "https://{parsedArn#accountId}.cloudfront-kvs.global.api.aws", - "properties": { - "authSchemes": [ - { - "name": "sigv4a", - "signingName": "cloudfront-keyvaluestore", - "signingRegionSet": [ - "*" - ] - } - ] - }, - "headers": {} - }, - "type": "endpoint" - } - ], - "type": "tree" - }, - { - "conditions": [], - "error": "CloudFront-KeyValueStore is not supported in partition `{parsedArn#partition}`", - "type": "error" - } - ], - "type": "tree" - }, - { - "conditions": [], - "error": "ARN resource type is invalid. Expected `key-value-store`, found: `{arnType}`", - "type": "error" - } - ], - "type": "tree" - }, - { - "conditions": [], - "error": "No resource type found in the KVS ARN. Resource type must be `key-value-store`.", - "type": "error" - } - ], - "type": "tree" - }, - { - "conditions": [], - "error": "No resource type found in the KVS ARN. Resource type must be `key-value-store`.", - "type": "error" - } - ], - "type": "tree" - }, - { - "conditions": [], - "error": "Provided ARN must be a global resource ARN. Found: `{parsedArn#region}`", - "type": "error" - } - ], - "type": "tree" - }, - { - "conditions": [], - "error": "Provided ARN is not a valid CloudFront Service ARN. Found: `{parsedArn#service}`", - "type": "error" - } - ], - "type": "tree" - }, - { - "conditions": [], - "error": "KVS ARN must be a valid ARN", - "type": "error" - } - ], - "type": "tree" - }, - { - "conditions": [], - "error": "KVS ARN must be provided to use this service", - "type": "error" - } - ], - "type": "tree" - }, - { - "conditions": [], - "error": "Invalid Configuration: FIPS is not supported with CloudFront-KeyValueStore.", - "type": "error" - } - ] -} \ No newline at end of file diff --git a/models/apis/cloudfront-keyvaluestore/2022-07-26/endpoint-tests-1.json b/models/apis/cloudfront-keyvaluestore/2022-07-26/endpoint-tests-1.json deleted file mode 100644 index e073f9b859c..00000000000 --- a/models/apis/cloudfront-keyvaluestore/2022-07-26/endpoint-tests-1.json +++ /dev/null @@ -1,198 +0,0 @@ -{ - "testCases": [ - { - "documentation": "FIPS should error", - "expect": { - "error": "Invalid Configuration: FIPS is not supported with CloudFront-KeyValueStore." - }, - "params": { - "UseFIPS": true - } - }, - { - "documentation": "KVS ARN must be provided to use this service", - "expect": { - "error": "KVS ARN must be provided to use this service" - } - }, - { - "documentation": "KVS ARN must be a valid ARN", - "expect": { - "error": "KVS ARN must be a valid ARN" - }, - "params": { - "KvsARN": "not-a-valid-arn" - } - }, - { - "documentation": "Provided ARN was not a valid CloudFront Service ARN. Found: `notcloudfront`", - "expect": { - "error": "Provided ARN is not a valid CloudFront Service ARN. Found: `notcloudfront`" - }, - "params": { - "KvsARN": "arn:aws:notcloudfront::123456789012:key-value-store/my-first-kvs-e10b1dce4f394248811e77167e0451ba" - } - }, - { - "documentation": "Provided ARN must be a global resource ARN. Found: `us-west-2`", - "expect": { - "error": "Provided ARN must be a global resource ARN. Found: `us-west-2`" - }, - "params": { - "KvsARN": "arn:aws:cloudfront:us-west-2:123456789012:key-value-store/my-first-kvs-e10b1dce4f394248811e77167e0451ba" - } - }, - { - "documentation": "ARN resource type is invalid. Expected `key-value-store`, found: `some-other-resource-type`", - "expect": { - "error": "ARN resource type is invalid. Expected `key-value-store`, found: `some-other-resource-type`" - }, - "params": { - "KvsARN": "arn:aws:cloudfront::123456789012:some-other-resource-type/my-first-kvs-e10b1dce4f394248811e77167e0451ba" - } - }, - { - "documentation": "CloudFront-KeyValueStore is not supported in partition `aws-cn`", - "expect": { - "error": "CloudFront-KeyValueStore is not supported in partition `aws-cn`" - }, - "params": { - "KvsARN": "arn:aws-cn:cloudfront::123456789012:key-value-store/my-first-kvs-e10b1dce4f394248811e77167e0451ba" - } - }, - { - "documentation": "CloudFront-KeyValueStore is not supported in partition `aws-us-gov`", - "expect": { - "error": "CloudFront-KeyValueStore is not supported in partition `aws-us-gov`" - }, - "params": { - "KvsARN": "arn:aws-us-gov:cloudfront::123456789012:key-value-store/my-first-kvs-e10b1dce4f394248811e77167e0451ba" - } - }, - { - "documentation": "Valid account based endpoint", - "expect": { - "endpoint": { - "properties": { - "authSchemes": [ - { - "signingName": "cloudfront-keyvaluestore", - "name": "sigv4a", - "signingRegionSet": [ - "*" - ] - } - ] - }, - "url": "https://123456789012.cloudfront-kvs.global.api.aws" - } - }, - "params": { - "KvsARN": "arn:aws:cloudfront::123456789012:key-value-store/my-first-kvs-e10b1dce4f394248811e77167e0451ba" - } - }, - { - "documentation": "Valid account based endpoint, with SDK region", - "expect": { - "endpoint": { - "properties": { - "authSchemes": [ - { - "signingName": "cloudfront-keyvaluestore", - "name": "sigv4a", - "signingRegionSet": [ - "*" - ] - } - ] - }, - "url": "https://123456789012.cloudfront-kvs.global.api.aws" - } - }, - "params": { - "KvsARN": "arn:aws:cloudfront::123456789012:key-value-store/my-first-kvs-e10b1dce4f394248811e77167e0451ba", - "Region": "us-west-2" - } - }, - { - "documentation": "Valid ARN, different partition, should error", - "expect": { - "error": "Client was configured for partition `aws-cn` but Kvs ARN has `aws`" - }, - "params": { - "KvsARN": "arn:aws:cloudfront::123456789012:key-value-store/my-first-kvs-e10b1dce4f394248811e77167e0451ba", - "Region": "cn-north-1" - } - }, - { - "documentation": "Valid account based endpoint with FIPS, should error", - "expect": { - "error": "Invalid Configuration: FIPS is not supported with CloudFront-KeyValueStore." - }, - "params": { - "KvsARN": "arn:aws:cloudfront::123456789012:key-value-store/my-first-kvs-e10b1dce4f394248811e77167e0451ba", - "Region": "us-east-1", - "UseFIPS": true - } - }, - { - "documentation": "Custom sdk endpoint override", - "expect": { - "endpoint": { - "properties": { - "authSchemes": [ - { - "signingName": "cloudfront-keyvaluestore", - "name": "sigv4a", - "signingRegionSet": [ - "*" - ] - } - ] - }, - "url": "https://123456789012.my-override.example.com" - } - }, - "params": { - "KvsARN": "arn:aws:cloudfront::123456789012:key-value-store/my-first-kvs-e10b1dce4f394248811e77167e0451ba", - "Region": "us-east-1", - "Endpoint": "https://my-override.example.com" - } - }, - { - "documentation": "Custom sdk endpoint override with path and http", - "expect": { - "endpoint": { - "properties": { - "authSchemes": [ - { - "signingName": "cloudfront-keyvaluestore", - "name": "sigv4a", - "signingRegionSet": [ - "*" - ] - } - ] - }, - "url": "http://123456789012.my-override.example.com/custom-path" - } - }, - "params": { - "KvsARN": "arn:aws:cloudfront::123456789012:key-value-store/my-first-kvs-e10b1dce4f394248811e77167e0451ba", - "Endpoint": "http://my-override.example.com/custom-path" - } - }, - { - "documentation": "Custom override with different partition should error", - "expect": { - "error": "Client was configured for partition `aws-us-gov` but Kvs ARN has `aws`" - }, - "params": { - "KvsARN": "arn:aws:cloudfront::123456789012:key-value-store/my-first-kvs-e10b1dce4f394248811e77167e0451ba", - "Region": "us-gov-east-1", - "Endpoint": "https://my-override.example.com" - } - } - ], - "version": "1.0" -} \ No newline at end of file diff --git a/models/apis/cloudfront-keyvaluestore/2022-07-26/examples-1.json b/models/apis/cloudfront-keyvaluestore/2022-07-26/examples-1.json deleted file mode 100644 index 0ea7e3b0bbe..00000000000 --- a/models/apis/cloudfront-keyvaluestore/2022-07-26/examples-1.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "version": "1.0", - "examples": { - } -} diff --git a/models/apis/cloudfront-keyvaluestore/2022-07-26/paginators-1.json b/models/apis/cloudfront-keyvaluestore/2022-07-26/paginators-1.json deleted file mode 100644 index 8fda57a3e0f..00000000000 --- a/models/apis/cloudfront-keyvaluestore/2022-07-26/paginators-1.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "pagination": { - "ListKeys": { - "input_token": "NextToken", - "output_token": "NextToken", - "limit_key": "MaxResults", - "result_key": "Items" - } - } -} diff --git a/service/cloudfrontkeyvaluestore/api.go b/service/cloudfrontkeyvaluestore/api.go deleted file mode 100644 index 8ccaf0854c2..00000000000 --- a/service/cloudfrontkeyvaluestore/api.go +++ /dev/null @@ -1,2010 +0,0 @@ -// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. - -package cloudfrontkeyvaluestore - -import ( - "fmt" - "time" - - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/awsutil" - "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/private/protocol" -) - -const opDeleteKey = "DeleteKey" - -// DeleteKeyRequest generates a "aws/request.Request" representing the -// client's request for the DeleteKey operation. The "output" return -// value will be populated with the request's response once the request completes -// successfully. -// -// Use "Send" method on the returned Request to send the API call to the service. -// the "output" return value is not valid until after Send returns without error. -// -// See DeleteKey for more information on using the DeleteKey -// API call, and error handling. -// -// This method is useful when you want to inject custom logic or configuration -// into the SDK's request lifecycle. Such as custom headers, or retry logic. -// -// // Example sending a request using the DeleteKeyRequest method. -// req, resp := client.DeleteKeyRequest(params) -// -// err := req.Send() -// if err == nil { // resp is now filled -// fmt.Println(resp) -// } -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-keyvaluestore-2022-07-26/DeleteKey -func (c *CloudFrontKeyValueStore) DeleteKeyRequest(input *DeleteKeyInput) (req *request.Request, output *DeleteKeyOutput) { - op := &request.Operation{ - Name: opDeleteKey, - HTTPMethod: "DELETE", - HTTPPath: "/key-value-stores/{KvsARN}/keys/{Key}", - } - - if input == nil { - input = &DeleteKeyInput{} - } - - output = &DeleteKeyOutput{} - req = c.newRequest(op, input, output) - return -} - -// DeleteKey API operation for Amazon CloudFront KeyValueStore. -// -// Deletes the key value pair specified by the key. -// -// Returns awserr.Error for service API and SDK errors. Use runtime type assertions -// with awserr.Error's Code and Message methods to get detailed information about -// the error. -// -// See the AWS API reference guide for Amazon CloudFront KeyValueStore's -// API operation DeleteKey for usage and error information. -// -// Returned Error Types: -// -// - ConflictException -// Resource is not in expected state. -// -// - ValidationException -// Validation failed. -// -// - InternalServerException -// Internal server error. -// -// - ServiceQuotaExceededException -// Limit exceeded. -// -// - ResourceNotFoundException -// Resource was not found. -// -// - AccessDeniedException -// Access denied. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-keyvaluestore-2022-07-26/DeleteKey -func (c *CloudFrontKeyValueStore) DeleteKey(input *DeleteKeyInput) (*DeleteKeyOutput, error) { - req, out := c.DeleteKeyRequest(input) - return out, req.Send() -} - -// DeleteKeyWithContext is the same as DeleteKey with the addition of -// the ability to pass a context and additional request options. -// -// See DeleteKey for details on how to use this API operation. -// -// The context must be non-nil and will be used for request cancellation. If -// the context is nil a panic will occur. In the future the SDK may create -// sub-contexts for http.Requests. See https://golang.org/pkg/context/ -// for more information on using Contexts. -func (c *CloudFrontKeyValueStore) DeleteKeyWithContext(ctx aws.Context, input *DeleteKeyInput, opts ...request.Option) (*DeleteKeyOutput, error) { - req, out := c.DeleteKeyRequest(input) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return out, req.Send() -} - -const opDescribeKeyValueStore = "DescribeKeyValueStore" - -// DescribeKeyValueStoreRequest generates a "aws/request.Request" representing the -// client's request for the DescribeKeyValueStore operation. The "output" return -// value will be populated with the request's response once the request completes -// successfully. -// -// Use "Send" method on the returned Request to send the API call to the service. -// the "output" return value is not valid until after Send returns without error. -// -// See DescribeKeyValueStore for more information on using the DescribeKeyValueStore -// API call, and error handling. -// -// This method is useful when you want to inject custom logic or configuration -// into the SDK's request lifecycle. Such as custom headers, or retry logic. -// -// // Example sending a request using the DescribeKeyValueStoreRequest method. -// req, resp := client.DescribeKeyValueStoreRequest(params) -// -// err := req.Send() -// if err == nil { // resp is now filled -// fmt.Println(resp) -// } -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-keyvaluestore-2022-07-26/DescribeKeyValueStore -func (c *CloudFrontKeyValueStore) DescribeKeyValueStoreRequest(input *DescribeKeyValueStoreInput) (req *request.Request, output *DescribeKeyValueStoreOutput) { - op := &request.Operation{ - Name: opDescribeKeyValueStore, - HTTPMethod: "GET", - HTTPPath: "/key-value-stores/{KvsARN}", - } - - if input == nil { - input = &DescribeKeyValueStoreInput{} - } - - output = &DescribeKeyValueStoreOutput{} - req = c.newRequest(op, input, output) - return -} - -// DescribeKeyValueStore API operation for Amazon CloudFront KeyValueStore. -// -// Returns metadata information about Key Value Store. -// -// Returns awserr.Error for service API and SDK errors. Use runtime type assertions -// with awserr.Error's Code and Message methods to get detailed information about -// the error. -// -// See the AWS API reference guide for Amazon CloudFront KeyValueStore's -// API operation DescribeKeyValueStore for usage and error information. -// -// Returned Error Types: -// -// - ConflictException -// Resource is not in expected state. -// -// - InternalServerException -// Internal server error. -// -// - ResourceNotFoundException -// Resource was not found. -// -// - AccessDeniedException -// Access denied. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-keyvaluestore-2022-07-26/DescribeKeyValueStore -func (c *CloudFrontKeyValueStore) DescribeKeyValueStore(input *DescribeKeyValueStoreInput) (*DescribeKeyValueStoreOutput, error) { - req, out := c.DescribeKeyValueStoreRequest(input) - return out, req.Send() -} - -// DescribeKeyValueStoreWithContext is the same as DescribeKeyValueStore with the addition of -// the ability to pass a context and additional request options. -// -// See DescribeKeyValueStore for details on how to use this API operation. -// -// The context must be non-nil and will be used for request cancellation. If -// the context is nil a panic will occur. In the future the SDK may create -// sub-contexts for http.Requests. See https://golang.org/pkg/context/ -// for more information on using Contexts. -func (c *CloudFrontKeyValueStore) DescribeKeyValueStoreWithContext(ctx aws.Context, input *DescribeKeyValueStoreInput, opts ...request.Option) (*DescribeKeyValueStoreOutput, error) { - req, out := c.DescribeKeyValueStoreRequest(input) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return out, req.Send() -} - -const opGetKey = "GetKey" - -// GetKeyRequest generates a "aws/request.Request" representing the -// client's request for the GetKey operation. The "output" return -// value will be populated with the request's response once the request completes -// successfully. -// -// Use "Send" method on the returned Request to send the API call to the service. -// the "output" return value is not valid until after Send returns without error. -// -// See GetKey for more information on using the GetKey -// API call, and error handling. -// -// This method is useful when you want to inject custom logic or configuration -// into the SDK's request lifecycle. Such as custom headers, or retry logic. -// -// // Example sending a request using the GetKeyRequest method. -// req, resp := client.GetKeyRequest(params) -// -// err := req.Send() -// if err == nil { // resp is now filled -// fmt.Println(resp) -// } -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-keyvaluestore-2022-07-26/GetKey -func (c *CloudFrontKeyValueStore) GetKeyRequest(input *GetKeyInput) (req *request.Request, output *GetKeyOutput) { - op := &request.Operation{ - Name: opGetKey, - HTTPMethod: "GET", - HTTPPath: "/key-value-stores/{KvsARN}/keys/{Key}", - } - - if input == nil { - input = &GetKeyInput{} - } - - output = &GetKeyOutput{} - req = c.newRequest(op, input, output) - return -} - -// GetKey API operation for Amazon CloudFront KeyValueStore. -// -// Returns a key value pair. -// -// Returns awserr.Error for service API and SDK errors. Use runtime type assertions -// with awserr.Error's Code and Message methods to get detailed information about -// the error. -// -// See the AWS API reference guide for Amazon CloudFront KeyValueStore's -// API operation GetKey for usage and error information. -// -// Returned Error Types: -// -// - ConflictException -// Resource is not in expected state. -// -// - InternalServerException -// Internal server error. -// -// - ResourceNotFoundException -// Resource was not found. -// -// - AccessDeniedException -// Access denied. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-keyvaluestore-2022-07-26/GetKey -func (c *CloudFrontKeyValueStore) GetKey(input *GetKeyInput) (*GetKeyOutput, error) { - req, out := c.GetKeyRequest(input) - return out, req.Send() -} - -// GetKeyWithContext is the same as GetKey with the addition of -// the ability to pass a context and additional request options. -// -// See GetKey for details on how to use this API operation. -// -// The context must be non-nil and will be used for request cancellation. If -// the context is nil a panic will occur. In the future the SDK may create -// sub-contexts for http.Requests. See https://golang.org/pkg/context/ -// for more information on using Contexts. -func (c *CloudFrontKeyValueStore) GetKeyWithContext(ctx aws.Context, input *GetKeyInput, opts ...request.Option) (*GetKeyOutput, error) { - req, out := c.GetKeyRequest(input) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return out, req.Send() -} - -const opListKeys = "ListKeys" - -// ListKeysRequest generates a "aws/request.Request" representing the -// client's request for the ListKeys operation. The "output" return -// value will be populated with the request's response once the request completes -// successfully. -// -// Use "Send" method on the returned Request to send the API call to the service. -// the "output" return value is not valid until after Send returns without error. -// -// See ListKeys for more information on using the ListKeys -// API call, and error handling. -// -// This method is useful when you want to inject custom logic or configuration -// into the SDK's request lifecycle. Such as custom headers, or retry logic. -// -// // Example sending a request using the ListKeysRequest method. -// req, resp := client.ListKeysRequest(params) -// -// err := req.Send() -// if err == nil { // resp is now filled -// fmt.Println(resp) -// } -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-keyvaluestore-2022-07-26/ListKeys -func (c *CloudFrontKeyValueStore) ListKeysRequest(input *ListKeysInput) (req *request.Request, output *ListKeysOutput) { - op := &request.Operation{ - Name: opListKeys, - HTTPMethod: "GET", - HTTPPath: "/key-value-stores/{KvsARN}/keys", - Paginator: &request.Paginator{ - InputTokens: []string{"NextToken"}, - OutputTokens: []string{"NextToken"}, - LimitToken: "MaxResults", - TruncationToken: "", - }, - } - - if input == nil { - input = &ListKeysInput{} - } - - output = &ListKeysOutput{} - req = c.newRequest(op, input, output) - return -} - -// ListKeys API operation for Amazon CloudFront KeyValueStore. -// -// Returns a list of key value pairs. -// -// Returns awserr.Error for service API and SDK errors. Use runtime type assertions -// with awserr.Error's Code and Message methods to get detailed information about -// the error. -// -// See the AWS API reference guide for Amazon CloudFront KeyValueStore's -// API operation ListKeys for usage and error information. -// -// Returned Error Types: -// -// - ConflictException -// Resource is not in expected state. -// -// - ValidationException -// Validation failed. -// -// - InternalServerException -// Internal server error. -// -// - ResourceNotFoundException -// Resource was not found. -// -// - AccessDeniedException -// Access denied. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-keyvaluestore-2022-07-26/ListKeys -func (c *CloudFrontKeyValueStore) ListKeys(input *ListKeysInput) (*ListKeysOutput, error) { - req, out := c.ListKeysRequest(input) - return out, req.Send() -} - -// ListKeysWithContext is the same as ListKeys with the addition of -// the ability to pass a context and additional request options. -// -// See ListKeys for details on how to use this API operation. -// -// The context must be non-nil and will be used for request cancellation. If -// the context is nil a panic will occur. In the future the SDK may create -// sub-contexts for http.Requests. See https://golang.org/pkg/context/ -// for more information on using Contexts. -func (c *CloudFrontKeyValueStore) ListKeysWithContext(ctx aws.Context, input *ListKeysInput, opts ...request.Option) (*ListKeysOutput, error) { - req, out := c.ListKeysRequest(input) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return out, req.Send() -} - -// ListKeysPages iterates over the pages of a ListKeys operation, -// calling the "fn" function with the response data for each page. To stop -// iterating, return false from the fn function. -// -// See ListKeys method for more information on how to use this operation. -// -// Note: This operation can generate multiple requests to a service. -// -// // Example iterating over at most 3 pages of a ListKeys operation. -// pageNum := 0 -// err := client.ListKeysPages(params, -// func(page *cloudfrontkeyvaluestore.ListKeysOutput, lastPage bool) bool { -// pageNum++ -// fmt.Println(page) -// return pageNum <= 3 -// }) -func (c *CloudFrontKeyValueStore) ListKeysPages(input *ListKeysInput, fn func(*ListKeysOutput, bool) bool) error { - return c.ListKeysPagesWithContext(aws.BackgroundContext(), input, fn) -} - -// ListKeysPagesWithContext same as ListKeysPages except -// it takes a Context and allows setting request options on the pages. -// -// The context must be non-nil and will be used for request cancellation. If -// the context is nil a panic will occur. In the future the SDK may create -// sub-contexts for http.Requests. See https://golang.org/pkg/context/ -// for more information on using Contexts. -func (c *CloudFrontKeyValueStore) ListKeysPagesWithContext(ctx aws.Context, input *ListKeysInput, fn func(*ListKeysOutput, bool) bool, opts ...request.Option) error { - p := request.Pagination{ - NewRequest: func() (*request.Request, error) { - var inCpy *ListKeysInput - if input != nil { - tmp := *input - inCpy = &tmp - } - req, _ := c.ListKeysRequest(inCpy) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return req, nil - }, - } - - for p.Next() { - if !fn(p.Page().(*ListKeysOutput), !p.HasNextPage()) { - break - } - } - - return p.Err() -} - -const opPutKey = "PutKey" - -// PutKeyRequest generates a "aws/request.Request" representing the -// client's request for the PutKey operation. The "output" return -// value will be populated with the request's response once the request completes -// successfully. -// -// Use "Send" method on the returned Request to send the API call to the service. -// the "output" return value is not valid until after Send returns without error. -// -// See PutKey for more information on using the PutKey -// API call, and error handling. -// -// This method is useful when you want to inject custom logic or configuration -// into the SDK's request lifecycle. Such as custom headers, or retry logic. -// -// // Example sending a request using the PutKeyRequest method. -// req, resp := client.PutKeyRequest(params) -// -// err := req.Send() -// if err == nil { // resp is now filled -// fmt.Println(resp) -// } -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-keyvaluestore-2022-07-26/PutKey -func (c *CloudFrontKeyValueStore) PutKeyRequest(input *PutKeyInput) (req *request.Request, output *PutKeyOutput) { - op := &request.Operation{ - Name: opPutKey, - HTTPMethod: "PUT", - HTTPPath: "/key-value-stores/{KvsARN}/keys/{Key}", - } - - if input == nil { - input = &PutKeyInput{} - } - - output = &PutKeyOutput{} - req = c.newRequest(op, input, output) - return -} - -// PutKey API operation for Amazon CloudFront KeyValueStore. -// -// Creates a new key value pair or replaces the value of an existing key. -// -// Returns awserr.Error for service API and SDK errors. Use runtime type assertions -// with awserr.Error's Code and Message methods to get detailed information about -// the error. -// -// See the AWS API reference guide for Amazon CloudFront KeyValueStore's -// API operation PutKey for usage and error information. -// -// Returned Error Types: -// -// - ConflictException -// Resource is not in expected state. -// -// - ValidationException -// Validation failed. -// -// - InternalServerException -// Internal server error. -// -// - ServiceQuotaExceededException -// Limit exceeded. -// -// - ResourceNotFoundException -// Resource was not found. -// -// - AccessDeniedException -// Access denied. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-keyvaluestore-2022-07-26/PutKey -func (c *CloudFrontKeyValueStore) PutKey(input *PutKeyInput) (*PutKeyOutput, error) { - req, out := c.PutKeyRequest(input) - return out, req.Send() -} - -// PutKeyWithContext is the same as PutKey with the addition of -// the ability to pass a context and additional request options. -// -// See PutKey for details on how to use this API operation. -// -// The context must be non-nil and will be used for request cancellation. If -// the context is nil a panic will occur. In the future the SDK may create -// sub-contexts for http.Requests. See https://golang.org/pkg/context/ -// for more information on using Contexts. -func (c *CloudFrontKeyValueStore) PutKeyWithContext(ctx aws.Context, input *PutKeyInput, opts ...request.Option) (*PutKeyOutput, error) { - req, out := c.PutKeyRequest(input) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return out, req.Send() -} - -const opUpdateKeys = "UpdateKeys" - -// UpdateKeysRequest generates a "aws/request.Request" representing the -// client's request for the UpdateKeys operation. The "output" return -// value will be populated with the request's response once the request completes -// successfully. -// -// Use "Send" method on the returned Request to send the API call to the service. -// the "output" return value is not valid until after Send returns without error. -// -// See UpdateKeys for more information on using the UpdateKeys -// API call, and error handling. -// -// This method is useful when you want to inject custom logic or configuration -// into the SDK's request lifecycle. Such as custom headers, or retry logic. -// -// // Example sending a request using the UpdateKeysRequest method. -// req, resp := client.UpdateKeysRequest(params) -// -// err := req.Send() -// if err == nil { // resp is now filled -// fmt.Println(resp) -// } -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-keyvaluestore-2022-07-26/UpdateKeys -func (c *CloudFrontKeyValueStore) UpdateKeysRequest(input *UpdateKeysInput) (req *request.Request, output *UpdateKeysOutput) { - op := &request.Operation{ - Name: opUpdateKeys, - HTTPMethod: "POST", - HTTPPath: "/key-value-stores/{KvsARN}/keys", - } - - if input == nil { - input = &UpdateKeysInput{} - } - - output = &UpdateKeysOutput{} - req = c.newRequest(op, input, output) - return -} - -// UpdateKeys API operation for Amazon CloudFront KeyValueStore. -// -// Puts or Deletes multiple key value pairs in a single, all-or-nothing operation. -// -// Returns awserr.Error for service API and SDK errors. Use runtime type assertions -// with awserr.Error's Code and Message methods to get detailed information about -// the error. -// -// See the AWS API reference guide for Amazon CloudFront KeyValueStore's -// API operation UpdateKeys for usage and error information. -// -// Returned Error Types: -// -// - ConflictException -// Resource is not in expected state. -// -// - ValidationException -// Validation failed. -// -// - InternalServerException -// Internal server error. -// -// - ServiceQuotaExceededException -// Limit exceeded. -// -// - ResourceNotFoundException -// Resource was not found. -// -// - AccessDeniedException -// Access denied. -// -// See also, https://docs.aws.amazon.com/goto/WebAPI/cloudfront-keyvaluestore-2022-07-26/UpdateKeys -func (c *CloudFrontKeyValueStore) UpdateKeys(input *UpdateKeysInput) (*UpdateKeysOutput, error) { - req, out := c.UpdateKeysRequest(input) - return out, req.Send() -} - -// UpdateKeysWithContext is the same as UpdateKeys with the addition of -// the ability to pass a context and additional request options. -// -// See UpdateKeys for details on how to use this API operation. -// -// The context must be non-nil and will be used for request cancellation. If -// the context is nil a panic will occur. In the future the SDK may create -// sub-contexts for http.Requests. See https://golang.org/pkg/context/ -// for more information on using Contexts. -func (c *CloudFrontKeyValueStore) UpdateKeysWithContext(ctx aws.Context, input *UpdateKeysInput, opts ...request.Option) (*UpdateKeysOutput, error) { - req, out := c.UpdateKeysRequest(input) - req.SetContext(ctx) - req.ApplyOptions(opts...) - return out, req.Send() -} - -// Access denied. -type AccessDeniedException struct { - _ struct{} `type:"structure"` - RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` - - Message_ *string `locationName:"Message" type:"string"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s AccessDeniedException) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s AccessDeniedException) GoString() string { - return s.String() -} - -func newErrorAccessDeniedException(v protocol.ResponseMetadata) error { - return &AccessDeniedException{ - RespMetadata: v, - } -} - -// Code returns the exception type name. -func (s *AccessDeniedException) Code() string { - return "AccessDeniedException" -} - -// Message returns the exception's message. -func (s *AccessDeniedException) Message() string { - if s.Message_ != nil { - return *s.Message_ - } - return "" -} - -// OrigErr always returns nil, satisfies awserr.Error interface. -func (s *AccessDeniedException) OrigErr() error { - return nil -} - -func (s *AccessDeniedException) Error() string { - return fmt.Sprintf("%s: %s", s.Code(), s.Message()) -} - -// Status code returns the HTTP status code for the request's response error. -func (s *AccessDeniedException) StatusCode() int { - return s.RespMetadata.StatusCode -} - -// RequestID returns the service's response RequestID for request. -func (s *AccessDeniedException) RequestID() string { - return s.RespMetadata.RequestID -} - -// Resource is not in expected state. -type ConflictException struct { - _ struct{} `type:"structure"` - RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` - - Message_ *string `locationName:"Message" type:"string"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ConflictException) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ConflictException) GoString() string { - return s.String() -} - -func newErrorConflictException(v protocol.ResponseMetadata) error { - return &ConflictException{ - RespMetadata: v, - } -} - -// Code returns the exception type name. -func (s *ConflictException) Code() string { - return "ConflictException" -} - -// Message returns the exception's message. -func (s *ConflictException) Message() string { - if s.Message_ != nil { - return *s.Message_ - } - return "" -} - -// OrigErr always returns nil, satisfies awserr.Error interface. -func (s *ConflictException) OrigErr() error { - return nil -} - -func (s *ConflictException) Error() string { - return fmt.Sprintf("%s: %s", s.Code(), s.Message()) -} - -// Status code returns the HTTP status code for the request's response error. -func (s *ConflictException) StatusCode() int { - return s.RespMetadata.StatusCode -} - -// RequestID returns the service's response RequestID for request. -func (s *ConflictException) RequestID() string { - return s.RespMetadata.RequestID -} - -type DeleteKeyInput struct { - _ struct{} `type:"structure" nopayload:"true"` - - // The current version (ETag) of the Key Value Store that you are deleting keys - // from, which you can get using DescribeKeyValueStore. - // - // IfMatch is a required field - IfMatch *string `location:"header" locationName:"If-Match" type:"string" required:"true"` - - // The key to delete. - // - // Key is a required field - Key *string `location:"uri" locationName:"Key" min:"1" type:"string" required:"true"` - - // The Amazon Resource Name (ARN) of the Key Value Store. - // - // KvsARN is a required field - KvsARN *string `location:"uri" locationName:"KvsARN" min:"1" type:"string" required:"true"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s DeleteKeyInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s DeleteKeyInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteKeyInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteKeyInput"} - if s.IfMatch == nil { - invalidParams.Add(request.NewErrParamRequired("IfMatch")) - } - if s.Key == nil { - invalidParams.Add(request.NewErrParamRequired("Key")) - } - if s.Key != nil && len(*s.Key) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Key", 1)) - } - if s.KvsARN == nil { - invalidParams.Add(request.NewErrParamRequired("KvsARN")) - } - if s.KvsARN != nil && len(*s.KvsARN) < 1 { - invalidParams.Add(request.NewErrParamMinLen("KvsARN", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetIfMatch sets the IfMatch field's value. -func (s *DeleteKeyInput) SetIfMatch(v string) *DeleteKeyInput { - s.IfMatch = &v - return s -} - -// SetKey sets the Key field's value. -func (s *DeleteKeyInput) SetKey(v string) *DeleteKeyInput { - s.Key = &v - return s -} - -// SetKvsARN sets the KvsARN field's value. -func (s *DeleteKeyInput) SetKvsARN(v string) *DeleteKeyInput { - s.KvsARN = &v - return s -} - -// Metadata information about a Key Value Store. -type DeleteKeyOutput struct { - _ struct{} `type:"structure"` - - // The current version identifier of the Key Value Store after the successful - // delete. - // - // ETag is a required field - ETag *string `location:"header" locationName:"ETag" type:"string" required:"true"` - - // Number of key value pairs in the Key Value Store after the successful delete. - // - // ItemCount is a required field - ItemCount *int64 `type:"integer" required:"true"` - - // Total size of the Key Value Store after the successful delete, in bytes. - // - // TotalSizeInBytes is a required field - TotalSizeInBytes *int64 `type:"long" required:"true"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s DeleteKeyOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s DeleteKeyOutput) GoString() string { - return s.String() -} - -// SetETag sets the ETag field's value. -func (s *DeleteKeyOutput) SetETag(v string) *DeleteKeyOutput { - s.ETag = &v - return s -} - -// SetItemCount sets the ItemCount field's value. -func (s *DeleteKeyOutput) SetItemCount(v int64) *DeleteKeyOutput { - s.ItemCount = &v - return s -} - -// SetTotalSizeInBytes sets the TotalSizeInBytes field's value. -func (s *DeleteKeyOutput) SetTotalSizeInBytes(v int64) *DeleteKeyOutput { - s.TotalSizeInBytes = &v - return s -} - -// List item for keys to delete. -type DeleteKeyRequestListItem struct { - _ struct{} `type:"structure"` - - // The key of the key value pair to be deleted. - // - // Key is a required field - Key *string `min:"1" type:"string" required:"true"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s DeleteKeyRequestListItem) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s DeleteKeyRequestListItem) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteKeyRequestListItem) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteKeyRequestListItem"} - if s.Key == nil { - invalidParams.Add(request.NewErrParamRequired("Key")) - } - if s.Key != nil && len(*s.Key) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Key", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetKey sets the Key field's value. -func (s *DeleteKeyRequestListItem) SetKey(v string) *DeleteKeyRequestListItem { - s.Key = &v - return s -} - -type DescribeKeyValueStoreInput struct { - _ struct{} `type:"structure" nopayload:"true"` - - // The Amazon Resource Name (ARN) of the Key Value Store. - // - // KvsARN is a required field - KvsARN *string `location:"uri" locationName:"KvsARN" min:"1" type:"string" required:"true"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s DescribeKeyValueStoreInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s DescribeKeyValueStoreInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeKeyValueStoreInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeKeyValueStoreInput"} - if s.KvsARN == nil { - invalidParams.Add(request.NewErrParamRequired("KvsARN")) - } - if s.KvsARN != nil && len(*s.KvsARN) < 1 { - invalidParams.Add(request.NewErrParamMinLen("KvsARN", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetKvsARN sets the KvsARN field's value. -func (s *DescribeKeyValueStoreInput) SetKvsARN(v string) *DescribeKeyValueStoreInput { - s.KvsARN = &v - return s -} - -// Metadata information about a Key Value Store. -type DescribeKeyValueStoreOutput struct { - _ struct{} `type:"structure"` - - // Date and time when the Key Value Store was created. - // - // Created is a required field - Created *time.Time `type:"timestamp" required:"true"` - - // The version identifier for the current version of the Key Value Store. - // - // ETag is a required field - ETag *string `location:"header" locationName:"ETag" type:"string" required:"true"` - - // Number of key value pairs in the Key Value Store. - // - // ItemCount is a required field - ItemCount *int64 `type:"integer" required:"true"` - - // The Amazon Resource Name (ARN) of the Key Value Store. - // - // KvsARN is a required field - KvsARN *string `min:"1" type:"string" required:"true"` - - // Date and time when the key value pairs in the Key Value Store was last modified. - LastModified *time.Time `type:"timestamp"` - - // Total size of the Key Value Store in bytes. - // - // TotalSizeInBytes is a required field - TotalSizeInBytes *int64 `type:"long" required:"true"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s DescribeKeyValueStoreOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s DescribeKeyValueStoreOutput) GoString() string { - return s.String() -} - -// SetCreated sets the Created field's value. -func (s *DescribeKeyValueStoreOutput) SetCreated(v time.Time) *DescribeKeyValueStoreOutput { - s.Created = &v - return s -} - -// SetETag sets the ETag field's value. -func (s *DescribeKeyValueStoreOutput) SetETag(v string) *DescribeKeyValueStoreOutput { - s.ETag = &v - return s -} - -// SetItemCount sets the ItemCount field's value. -func (s *DescribeKeyValueStoreOutput) SetItemCount(v int64) *DescribeKeyValueStoreOutput { - s.ItemCount = &v - return s -} - -// SetKvsARN sets the KvsARN field's value. -func (s *DescribeKeyValueStoreOutput) SetKvsARN(v string) *DescribeKeyValueStoreOutput { - s.KvsARN = &v - return s -} - -// SetLastModified sets the LastModified field's value. -func (s *DescribeKeyValueStoreOutput) SetLastModified(v time.Time) *DescribeKeyValueStoreOutput { - s.LastModified = &v - return s -} - -// SetTotalSizeInBytes sets the TotalSizeInBytes field's value. -func (s *DescribeKeyValueStoreOutput) SetTotalSizeInBytes(v int64) *DescribeKeyValueStoreOutput { - s.TotalSizeInBytes = &v - return s -} - -type GetKeyInput struct { - _ struct{} `type:"structure" nopayload:"true"` - - // The key to get. - // - // Key is a required field - Key *string `location:"uri" locationName:"Key" min:"1" type:"string" required:"true"` - - // The Amazon Resource Name (ARN) of the Key Value Store. - // - // KvsARN is a required field - KvsARN *string `location:"uri" locationName:"KvsARN" min:"1" type:"string" required:"true"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s GetKeyInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s GetKeyInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetKeyInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetKeyInput"} - if s.Key == nil { - invalidParams.Add(request.NewErrParamRequired("Key")) - } - if s.Key != nil && len(*s.Key) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Key", 1)) - } - if s.KvsARN == nil { - invalidParams.Add(request.NewErrParamRequired("KvsARN")) - } - if s.KvsARN != nil && len(*s.KvsARN) < 1 { - invalidParams.Add(request.NewErrParamMinLen("KvsARN", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetKey sets the Key field's value. -func (s *GetKeyInput) SetKey(v string) *GetKeyInput { - s.Key = &v - return s -} - -// SetKvsARN sets the KvsARN field's value. -func (s *GetKeyInput) SetKvsARN(v string) *GetKeyInput { - s.KvsARN = &v - return s -} - -// A key value pair. -type GetKeyOutput struct { - _ struct{} `type:"structure"` - - // Number of key value pairs in the Key Value Store. - // - // ItemCount is a required field - ItemCount *int64 `type:"integer" required:"true"` - - // The key of the key value pair. - // - // Key is a required field - Key *string `min:"1" type:"string" required:"true"` - - // Total size of the Key Value Store in bytes. - // - // TotalSizeInBytes is a required field - TotalSizeInBytes *int64 `type:"long" required:"true"` - - // The value of the key value pair. - // - // Value is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by GetKeyOutput's - // String and GoString methods. - // - // Value is a required field - Value *string `type:"string" required:"true" sensitive:"true"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s GetKeyOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s GetKeyOutput) GoString() string { - return s.String() -} - -// SetItemCount sets the ItemCount field's value. -func (s *GetKeyOutput) SetItemCount(v int64) *GetKeyOutput { - s.ItemCount = &v - return s -} - -// SetKey sets the Key field's value. -func (s *GetKeyOutput) SetKey(v string) *GetKeyOutput { - s.Key = &v - return s -} - -// SetTotalSizeInBytes sets the TotalSizeInBytes field's value. -func (s *GetKeyOutput) SetTotalSizeInBytes(v int64) *GetKeyOutput { - s.TotalSizeInBytes = &v - return s -} - -// SetValue sets the Value field's value. -func (s *GetKeyOutput) SetValue(v string) *GetKeyOutput { - s.Value = &v - return s -} - -// Internal server error. -type InternalServerException struct { - _ struct{} `type:"structure"` - RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` - - Message_ *string `locationName:"Message" type:"string"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s InternalServerException) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s InternalServerException) GoString() string { - return s.String() -} - -func newErrorInternalServerException(v protocol.ResponseMetadata) error { - return &InternalServerException{ - RespMetadata: v, - } -} - -// Code returns the exception type name. -func (s *InternalServerException) Code() string { - return "InternalServerException" -} - -// Message returns the exception's message. -func (s *InternalServerException) Message() string { - if s.Message_ != nil { - return *s.Message_ - } - return "" -} - -// OrigErr always returns nil, satisfies awserr.Error interface. -func (s *InternalServerException) OrigErr() error { - return nil -} - -func (s *InternalServerException) Error() string { - return fmt.Sprintf("%s: %s", s.Code(), s.Message()) -} - -// Status code returns the HTTP status code for the request's response error. -func (s *InternalServerException) StatusCode() int { - return s.RespMetadata.StatusCode -} - -// RequestID returns the service's response RequestID for request. -func (s *InternalServerException) RequestID() string { - return s.RespMetadata.RequestID -} - -type ListKeysInput struct { - _ struct{} `type:"structure" nopayload:"true"` - - // The Amazon Resource Name (ARN) of the Key Value Store. - // - // KvsARN is a required field - KvsARN *string `location:"uri" locationName:"KvsARN" min:"1" type:"string" required:"true"` - - // Maximum number of results that are returned per call. The default is 10 and - // maximum allowed page is 50. - MaxResults *int64 `location:"querystring" locationName:"MaxResults" min:"1" type:"integer"` - - // If nextToken is returned in the response, there are more results available. - // Make the next call using the returned token to retrieve the next page. - NextToken *string `location:"querystring" locationName:"NextToken" type:"string"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ListKeysInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ListKeysInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListKeysInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListKeysInput"} - if s.KvsARN == nil { - invalidParams.Add(request.NewErrParamRequired("KvsARN")) - } - if s.KvsARN != nil && len(*s.KvsARN) < 1 { - invalidParams.Add(request.NewErrParamMinLen("KvsARN", 1)) - } - if s.MaxResults != nil && *s.MaxResults < 1 { - invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetKvsARN sets the KvsARN field's value. -func (s *ListKeysInput) SetKvsARN(v string) *ListKeysInput { - s.KvsARN = &v - return s -} - -// SetMaxResults sets the MaxResults field's value. -func (s *ListKeysInput) SetMaxResults(v int64) *ListKeysInput { - s.MaxResults = &v - return s -} - -// SetNextToken sets the NextToken field's value. -func (s *ListKeysInput) SetNextToken(v string) *ListKeysInput { - s.NextToken = &v - return s -} - -type ListKeysOutput struct { - _ struct{} `type:"structure"` - - // Key value pairs - Items []*ListKeysResponseListItem `type:"list"` - - // If nextToken is returned in the response, there are more results available. - // Make the next call using the returned token to retrieve the next page. - NextToken *string `type:"string"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ListKeysOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ListKeysOutput) GoString() string { - return s.String() -} - -// SetItems sets the Items field's value. -func (s *ListKeysOutput) SetItems(v []*ListKeysResponseListItem) *ListKeysOutput { - s.Items = v - return s -} - -// SetNextToken sets the NextToken field's value. -func (s *ListKeysOutput) SetNextToken(v string) *ListKeysOutput { - s.NextToken = &v - return s -} - -// A key value pair. -type ListKeysResponseListItem struct { - _ struct{} `type:"structure"` - - // The key of the key value pair. - // - // Key is a required field - Key *string `min:"1" type:"string" required:"true"` - - // The value of the key value pair. - // - // Value is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by ListKeysResponseListItem's - // String and GoString methods. - // - // Value is a required field - Value *string `type:"string" required:"true" sensitive:"true"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ListKeysResponseListItem) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ListKeysResponseListItem) GoString() string { - return s.String() -} - -// SetKey sets the Key field's value. -func (s *ListKeysResponseListItem) SetKey(v string) *ListKeysResponseListItem { - s.Key = &v - return s -} - -// SetValue sets the Value field's value. -func (s *ListKeysResponseListItem) SetValue(v string) *ListKeysResponseListItem { - s.Value = &v - return s -} - -// A key value pair. -type PutKeyInput struct { - _ struct{} `type:"structure"` - - // The current version (ETag) of the Key Value Store that you are putting keys - // into, which you can get using DescribeKeyValueStore. - // - // IfMatch is a required field - IfMatch *string `location:"header" locationName:"If-Match" type:"string" required:"true"` - - // The key to put. - // - // Key is a required field - Key *string `location:"uri" locationName:"Key" min:"1" type:"string" required:"true"` - - // The Amazon Resource Name (ARN) of the Key Value Store. - // - // KvsARN is a required field - KvsARN *string `location:"uri" locationName:"KvsARN" min:"1" type:"string" required:"true"` - - // The value to put. - // - // Value is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by PutKeyInput's - // String and GoString methods. - // - // Value is a required field - Value *string `type:"string" required:"true" sensitive:"true"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s PutKeyInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s PutKeyInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *PutKeyInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "PutKeyInput"} - if s.IfMatch == nil { - invalidParams.Add(request.NewErrParamRequired("IfMatch")) - } - if s.Key == nil { - invalidParams.Add(request.NewErrParamRequired("Key")) - } - if s.Key != nil && len(*s.Key) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Key", 1)) - } - if s.KvsARN == nil { - invalidParams.Add(request.NewErrParamRequired("KvsARN")) - } - if s.KvsARN != nil && len(*s.KvsARN) < 1 { - invalidParams.Add(request.NewErrParamMinLen("KvsARN", 1)) - } - if s.Value == nil { - invalidParams.Add(request.NewErrParamRequired("Value")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetIfMatch sets the IfMatch field's value. -func (s *PutKeyInput) SetIfMatch(v string) *PutKeyInput { - s.IfMatch = &v - return s -} - -// SetKey sets the Key field's value. -func (s *PutKeyInput) SetKey(v string) *PutKeyInput { - s.Key = &v - return s -} - -// SetKvsARN sets the KvsARN field's value. -func (s *PutKeyInput) SetKvsARN(v string) *PutKeyInput { - s.KvsARN = &v - return s -} - -// SetValue sets the Value field's value. -func (s *PutKeyInput) SetValue(v string) *PutKeyInput { - s.Value = &v - return s -} - -// Metadata information about a Key Value Store. -type PutKeyOutput struct { - _ struct{} `type:"structure"` - - // The current version identifier of the Key Value Store after the successful - // put. - // - // ETag is a required field - ETag *string `location:"header" locationName:"ETag" type:"string" required:"true"` - - // Number of key value pairs in the Key Value Store after the successful put. - // - // ItemCount is a required field - ItemCount *int64 `type:"integer" required:"true"` - - // Total size of the Key Value Store after the successful put, in bytes. - // - // TotalSizeInBytes is a required field - TotalSizeInBytes *int64 `type:"long" required:"true"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s PutKeyOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s PutKeyOutput) GoString() string { - return s.String() -} - -// SetETag sets the ETag field's value. -func (s *PutKeyOutput) SetETag(v string) *PutKeyOutput { - s.ETag = &v - return s -} - -// SetItemCount sets the ItemCount field's value. -func (s *PutKeyOutput) SetItemCount(v int64) *PutKeyOutput { - s.ItemCount = &v - return s -} - -// SetTotalSizeInBytes sets the TotalSizeInBytes field's value. -func (s *PutKeyOutput) SetTotalSizeInBytes(v int64) *PutKeyOutput { - s.TotalSizeInBytes = &v - return s -} - -// List item for key value pair to put. -type PutKeyRequestListItem struct { - _ struct{} `type:"structure"` - - // The key of the key value pair list item to put. - // - // Key is a required field - Key *string `min:"1" type:"string" required:"true"` - - // The value for the key value pair to put. - // - // Value is a sensitive parameter and its value will be - // replaced with "sensitive" in string returned by PutKeyRequestListItem's - // String and GoString methods. - // - // Value is a required field - Value *string `type:"string" required:"true" sensitive:"true"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s PutKeyRequestListItem) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s PutKeyRequestListItem) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *PutKeyRequestListItem) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "PutKeyRequestListItem"} - if s.Key == nil { - invalidParams.Add(request.NewErrParamRequired("Key")) - } - if s.Key != nil && len(*s.Key) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Key", 1)) - } - if s.Value == nil { - invalidParams.Add(request.NewErrParamRequired("Value")) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetKey sets the Key field's value. -func (s *PutKeyRequestListItem) SetKey(v string) *PutKeyRequestListItem { - s.Key = &v - return s -} - -// SetValue sets the Value field's value. -func (s *PutKeyRequestListItem) SetValue(v string) *PutKeyRequestListItem { - s.Value = &v - return s -} - -// Resource was not found. -type ResourceNotFoundException struct { - _ struct{} `type:"structure"` - RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` - - Message_ *string `locationName:"Message" type:"string"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ResourceNotFoundException) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ResourceNotFoundException) GoString() string { - return s.String() -} - -func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error { - return &ResourceNotFoundException{ - RespMetadata: v, - } -} - -// Code returns the exception type name. -func (s *ResourceNotFoundException) Code() string { - return "ResourceNotFoundException" -} - -// Message returns the exception's message. -func (s *ResourceNotFoundException) Message() string { - if s.Message_ != nil { - return *s.Message_ - } - return "" -} - -// OrigErr always returns nil, satisfies awserr.Error interface. -func (s *ResourceNotFoundException) OrigErr() error { - return nil -} - -func (s *ResourceNotFoundException) Error() string { - return fmt.Sprintf("%s: %s", s.Code(), s.Message()) -} - -// Status code returns the HTTP status code for the request's response error. -func (s *ResourceNotFoundException) StatusCode() int { - return s.RespMetadata.StatusCode -} - -// RequestID returns the service's response RequestID for request. -func (s *ResourceNotFoundException) RequestID() string { - return s.RespMetadata.RequestID -} - -// Limit exceeded. -type ServiceQuotaExceededException struct { - _ struct{} `type:"structure"` - RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` - - Message_ *string `locationName:"Message" type:"string"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ServiceQuotaExceededException) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ServiceQuotaExceededException) GoString() string { - return s.String() -} - -func newErrorServiceQuotaExceededException(v protocol.ResponseMetadata) error { - return &ServiceQuotaExceededException{ - RespMetadata: v, - } -} - -// Code returns the exception type name. -func (s *ServiceQuotaExceededException) Code() string { - return "ServiceQuotaExceededException" -} - -// Message returns the exception's message. -func (s *ServiceQuotaExceededException) Message() string { - if s.Message_ != nil { - return *s.Message_ - } - return "" -} - -// OrigErr always returns nil, satisfies awserr.Error interface. -func (s *ServiceQuotaExceededException) OrigErr() error { - return nil -} - -func (s *ServiceQuotaExceededException) Error() string { - return fmt.Sprintf("%s: %s", s.Code(), s.Message()) -} - -// Status code returns the HTTP status code for the request's response error. -func (s *ServiceQuotaExceededException) StatusCode() int { - return s.RespMetadata.StatusCode -} - -// RequestID returns the service's response RequestID for request. -func (s *ServiceQuotaExceededException) RequestID() string { - return s.RespMetadata.RequestID -} - -type UpdateKeysInput struct { - _ struct{} `type:"structure"` - - // List of keys to delete. - Deletes []*DeleteKeyRequestListItem `type:"list"` - - // The current version (ETag) of the Key Value Store that you are updating keys - // of, which you can get using DescribeKeyValueStore. - // - // IfMatch is a required field - IfMatch *string `location:"header" locationName:"If-Match" type:"string" required:"true"` - - // The Amazon Resource Name (ARN) of the Key Value Store. - // - // KvsARN is a required field - KvsARN *string `location:"uri" locationName:"KvsARN" min:"1" type:"string" required:"true"` - - // List of key value pairs to put. - Puts []*PutKeyRequestListItem `type:"list"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s UpdateKeysInput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s UpdateKeysInput) GoString() string { - return s.String() -} - -// Validate inspects the fields of the type to determine if they are valid. -func (s *UpdateKeysInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "UpdateKeysInput"} - if s.IfMatch == nil { - invalidParams.Add(request.NewErrParamRequired("IfMatch")) - } - if s.KvsARN == nil { - invalidParams.Add(request.NewErrParamRequired("KvsARN")) - } - if s.KvsARN != nil && len(*s.KvsARN) < 1 { - invalidParams.Add(request.NewErrParamMinLen("KvsARN", 1)) - } - if s.Deletes != nil { - for i, v := range s.Deletes { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Deletes", i), err.(request.ErrInvalidParams)) - } - } - } - if s.Puts != nil { - for i, v := range s.Puts { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Puts", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetDeletes sets the Deletes field's value. -func (s *UpdateKeysInput) SetDeletes(v []*DeleteKeyRequestListItem) *UpdateKeysInput { - s.Deletes = v - return s -} - -// SetIfMatch sets the IfMatch field's value. -func (s *UpdateKeysInput) SetIfMatch(v string) *UpdateKeysInput { - s.IfMatch = &v - return s -} - -// SetKvsARN sets the KvsARN field's value. -func (s *UpdateKeysInput) SetKvsARN(v string) *UpdateKeysInput { - s.KvsARN = &v - return s -} - -// SetPuts sets the Puts field's value. -func (s *UpdateKeysInput) SetPuts(v []*PutKeyRequestListItem) *UpdateKeysInput { - s.Puts = v - return s -} - -// Metadata information about a Key Value Store. -type UpdateKeysOutput struct { - _ struct{} `type:"structure"` - - // The current version identifier of the Key Value Store after the successful - // update. - // - // ETag is a required field - ETag *string `location:"header" locationName:"ETag" type:"string" required:"true"` - - // Number of key value pairs in the Key Value Store after the successful update. - // - // ItemCount is a required field - ItemCount *int64 `type:"integer" required:"true"` - - // Total size of the Key Value Store after the successful update, in bytes. - // - // TotalSizeInBytes is a required field - TotalSizeInBytes *int64 `type:"long" required:"true"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s UpdateKeysOutput) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s UpdateKeysOutput) GoString() string { - return s.String() -} - -// SetETag sets the ETag field's value. -func (s *UpdateKeysOutput) SetETag(v string) *UpdateKeysOutput { - s.ETag = &v - return s -} - -// SetItemCount sets the ItemCount field's value. -func (s *UpdateKeysOutput) SetItemCount(v int64) *UpdateKeysOutput { - s.ItemCount = &v - return s -} - -// SetTotalSizeInBytes sets the TotalSizeInBytes field's value. -func (s *UpdateKeysOutput) SetTotalSizeInBytes(v int64) *UpdateKeysOutput { - s.TotalSizeInBytes = &v - return s -} - -// Validation failed. -type ValidationException struct { - _ struct{} `type:"structure"` - RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` - - Message_ *string `locationName:"Message" type:"string"` -} - -// String returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ValidationException) String() string { - return awsutil.Prettify(s) -} - -// GoString returns the string representation. -// -// API parameter values that are decorated as "sensitive" in the API will not -// be included in the string output. The member name will be present, but the -// value will be replaced with "sensitive". -func (s ValidationException) GoString() string { - return s.String() -} - -func newErrorValidationException(v protocol.ResponseMetadata) error { - return &ValidationException{ - RespMetadata: v, - } -} - -// Code returns the exception type name. -func (s *ValidationException) Code() string { - return "ValidationException" -} - -// Message returns the exception's message. -func (s *ValidationException) Message() string { - if s.Message_ != nil { - return *s.Message_ - } - return "" -} - -// OrigErr always returns nil, satisfies awserr.Error interface. -func (s *ValidationException) OrigErr() error { - return nil -} - -func (s *ValidationException) Error() string { - return fmt.Sprintf("%s: %s", s.Code(), s.Message()) -} - -// Status code returns the HTTP status code for the request's response error. -func (s *ValidationException) StatusCode() int { - return s.RespMetadata.StatusCode -} - -// RequestID returns the service's response RequestID for request. -func (s *ValidationException) RequestID() string { - return s.RespMetadata.RequestID -} diff --git a/service/cloudfrontkeyvaluestore/cloudfrontkeyvaluestoreiface/interface.go b/service/cloudfrontkeyvaluestore/cloudfrontkeyvaluestoreiface/interface.go deleted file mode 100644 index 290eb886c84..00000000000 --- a/service/cloudfrontkeyvaluestore/cloudfrontkeyvaluestoreiface/interface.go +++ /dev/null @@ -1,91 +0,0 @@ -// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. - -// Package cloudfrontkeyvaluestoreiface provides an interface to enable mocking the Amazon CloudFront KeyValueStore service client -// for testing your code. -// -// It is important to note that this interface will have breaking changes -// when the service model is updated and adds new API operations, paginators, -// and waiters. -package cloudfrontkeyvaluestoreiface - -import ( - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/service/cloudfrontkeyvaluestore" -) - -// CloudFrontKeyValueStoreAPI provides an interface to enable mocking the -// cloudfrontkeyvaluestore.CloudFrontKeyValueStore service client's API operation, -// paginators, and waiters. This make unit testing your code that calls out -// to the SDK's service client's calls easier. -// -// The best way to use this interface is so the SDK's service client's calls -// can be stubbed out for unit testing your code with the SDK without needing -// to inject custom request handlers into the SDK's request pipeline. -// -// // myFunc uses an SDK service client to make a request to -// // Amazon CloudFront KeyValueStore. -// func myFunc(svc cloudfrontkeyvaluestoreiface.CloudFrontKeyValueStoreAPI) bool { -// // Make svc.DeleteKey request -// } -// -// func main() { -// sess := session.New() -// svc := cloudfrontkeyvaluestore.New(sess) -// -// myFunc(svc) -// } -// -// In your _test.go file: -// -// // Define a mock struct to be used in your unit tests of myFunc. -// type mockCloudFrontKeyValueStoreClient struct { -// cloudfrontkeyvaluestoreiface.CloudFrontKeyValueStoreAPI -// } -// func (m *mockCloudFrontKeyValueStoreClient) DeleteKey(input *cloudfrontkeyvaluestore.DeleteKeyInput) (*cloudfrontkeyvaluestore.DeleteKeyOutput, error) { -// // mock response/functionality -// } -// -// func TestMyFunc(t *testing.T) { -// // Setup Test -// mockSvc := &mockCloudFrontKeyValueStoreClient{} -// -// myfunc(mockSvc) -// -// // Verify myFunc's functionality -// } -// -// It is important to note that this interface will have breaking changes -// when the service model is updated and adds new API operations, paginators, -// and waiters. Its suggested to use the pattern above for testing, or using -// tooling to generate mocks to satisfy the interfaces. -type CloudFrontKeyValueStoreAPI interface { - DeleteKey(*cloudfrontkeyvaluestore.DeleteKeyInput) (*cloudfrontkeyvaluestore.DeleteKeyOutput, error) - DeleteKeyWithContext(aws.Context, *cloudfrontkeyvaluestore.DeleteKeyInput, ...request.Option) (*cloudfrontkeyvaluestore.DeleteKeyOutput, error) - DeleteKeyRequest(*cloudfrontkeyvaluestore.DeleteKeyInput) (*request.Request, *cloudfrontkeyvaluestore.DeleteKeyOutput) - - DescribeKeyValueStore(*cloudfrontkeyvaluestore.DescribeKeyValueStoreInput) (*cloudfrontkeyvaluestore.DescribeKeyValueStoreOutput, error) - DescribeKeyValueStoreWithContext(aws.Context, *cloudfrontkeyvaluestore.DescribeKeyValueStoreInput, ...request.Option) (*cloudfrontkeyvaluestore.DescribeKeyValueStoreOutput, error) - DescribeKeyValueStoreRequest(*cloudfrontkeyvaluestore.DescribeKeyValueStoreInput) (*request.Request, *cloudfrontkeyvaluestore.DescribeKeyValueStoreOutput) - - GetKey(*cloudfrontkeyvaluestore.GetKeyInput) (*cloudfrontkeyvaluestore.GetKeyOutput, error) - GetKeyWithContext(aws.Context, *cloudfrontkeyvaluestore.GetKeyInput, ...request.Option) (*cloudfrontkeyvaluestore.GetKeyOutput, error) - GetKeyRequest(*cloudfrontkeyvaluestore.GetKeyInput) (*request.Request, *cloudfrontkeyvaluestore.GetKeyOutput) - - ListKeys(*cloudfrontkeyvaluestore.ListKeysInput) (*cloudfrontkeyvaluestore.ListKeysOutput, error) - ListKeysWithContext(aws.Context, *cloudfrontkeyvaluestore.ListKeysInput, ...request.Option) (*cloudfrontkeyvaluestore.ListKeysOutput, error) - ListKeysRequest(*cloudfrontkeyvaluestore.ListKeysInput) (*request.Request, *cloudfrontkeyvaluestore.ListKeysOutput) - - ListKeysPages(*cloudfrontkeyvaluestore.ListKeysInput, func(*cloudfrontkeyvaluestore.ListKeysOutput, bool) bool) error - ListKeysPagesWithContext(aws.Context, *cloudfrontkeyvaluestore.ListKeysInput, func(*cloudfrontkeyvaluestore.ListKeysOutput, bool) bool, ...request.Option) error - - PutKey(*cloudfrontkeyvaluestore.PutKeyInput) (*cloudfrontkeyvaluestore.PutKeyOutput, error) - PutKeyWithContext(aws.Context, *cloudfrontkeyvaluestore.PutKeyInput, ...request.Option) (*cloudfrontkeyvaluestore.PutKeyOutput, error) - PutKeyRequest(*cloudfrontkeyvaluestore.PutKeyInput) (*request.Request, *cloudfrontkeyvaluestore.PutKeyOutput) - - UpdateKeys(*cloudfrontkeyvaluestore.UpdateKeysInput) (*cloudfrontkeyvaluestore.UpdateKeysOutput, error) - UpdateKeysWithContext(aws.Context, *cloudfrontkeyvaluestore.UpdateKeysInput, ...request.Option) (*cloudfrontkeyvaluestore.UpdateKeysOutput, error) - UpdateKeysRequest(*cloudfrontkeyvaluestore.UpdateKeysInput) (*request.Request, *cloudfrontkeyvaluestore.UpdateKeysOutput) -} - -var _ CloudFrontKeyValueStoreAPI = (*cloudfrontkeyvaluestore.CloudFrontKeyValueStore)(nil) diff --git a/service/cloudfrontkeyvaluestore/doc.go b/service/cloudfrontkeyvaluestore/doc.go deleted file mode 100644 index 189c3e1bf76..00000000000 --- a/service/cloudfrontkeyvaluestore/doc.go +++ /dev/null @@ -1,29 +0,0 @@ -// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. - -// Package cloudfrontkeyvaluestore provides the client and types for making API -// requests to Amazon CloudFront KeyValueStore. -// -// Amazon CloudFront KeyValueStore Service to View and Update Data in a KVS -// Resource -// -// See https://docs.aws.amazon.com/goto/WebAPI/cloudfront-keyvaluestore-2022-07-26 for more information on this service. -// -// See cloudfrontkeyvaluestore package documentation for more information. -// https://docs.aws.amazon.com/sdk-for-go/api/service/cloudfrontkeyvaluestore/ -// -// # Using the Client -// -// To contact Amazon CloudFront KeyValueStore with the SDK use the New function to create -// a new service client. With that client you can make API requests to the service. -// These clients are safe to use concurrently. -// -// See the SDK's documentation for more information on how to use the SDK. -// https://docs.aws.amazon.com/sdk-for-go/api/ -// -// See aws.Config documentation for more information on configuring SDK clients. -// https://docs.aws.amazon.com/sdk-for-go/api/aws/#Config -// -// See the Amazon CloudFront KeyValueStore client CloudFrontKeyValueStore for more -// information on creating client for this service. -// https://docs.aws.amazon.com/sdk-for-go/api/service/cloudfrontkeyvaluestore/#New -package cloudfrontkeyvaluestore diff --git a/service/cloudfrontkeyvaluestore/errors.go b/service/cloudfrontkeyvaluestore/errors.go deleted file mode 100644 index 0163c2148e5..00000000000 --- a/service/cloudfrontkeyvaluestore/errors.go +++ /dev/null @@ -1,55 +0,0 @@ -// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. - -package cloudfrontkeyvaluestore - -import ( - "github.com/aws/aws-sdk-go/private/protocol" -) - -const ( - - // ErrCodeAccessDeniedException for service response error code - // "AccessDeniedException". - // - // Access denied. - ErrCodeAccessDeniedException = "AccessDeniedException" - - // ErrCodeConflictException for service response error code - // "ConflictException". - // - // Resource is not in expected state. - ErrCodeConflictException = "ConflictException" - - // ErrCodeInternalServerException for service response error code - // "InternalServerException". - // - // Internal server error. - ErrCodeInternalServerException = "InternalServerException" - - // ErrCodeResourceNotFoundException for service response error code - // "ResourceNotFoundException". - // - // Resource was not found. - ErrCodeResourceNotFoundException = "ResourceNotFoundException" - - // ErrCodeServiceQuotaExceededException for service response error code - // "ServiceQuotaExceededException". - // - // Limit exceeded. - ErrCodeServiceQuotaExceededException = "ServiceQuotaExceededException" - - // ErrCodeValidationException for service response error code - // "ValidationException". - // - // Validation failed. - ErrCodeValidationException = "ValidationException" -) - -var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ - "AccessDeniedException": newErrorAccessDeniedException, - "ConflictException": newErrorConflictException, - "InternalServerException": newErrorInternalServerException, - "ResourceNotFoundException": newErrorResourceNotFoundException, - "ServiceQuotaExceededException": newErrorServiceQuotaExceededException, - "ValidationException": newErrorValidationException, -} diff --git a/service/cloudfrontkeyvaluestore/service.go b/service/cloudfrontkeyvaluestore/service.go deleted file mode 100644 index 006c6ab4fb1..00000000000 --- a/service/cloudfrontkeyvaluestore/service.go +++ /dev/null @@ -1,106 +0,0 @@ -// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. - -package cloudfrontkeyvaluestore - -import ( - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/client" - "github.com/aws/aws-sdk-go/aws/client/metadata" - "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/aws/signer/v4" - "github.com/aws/aws-sdk-go/private/protocol" - "github.com/aws/aws-sdk-go/private/protocol/restjson" -) - -// CloudFrontKeyValueStore provides the API operation methods for making requests to -// Amazon CloudFront KeyValueStore. See this package's package overview docs -// for details on the service. -// -// CloudFrontKeyValueStore methods are safe to use concurrently. It is not safe to -// modify mutate any of the struct's properties though. -type CloudFrontKeyValueStore struct { - *client.Client -} - -// Used for custom client initialization logic -var initClient func(*client.Client) - -// Used for custom request initialization logic -var initRequest func(*request.Request) - -// Service information constants -const ( - ServiceName = "CloudFront KeyValueStore" // Name of service. - EndpointsID = "cloudfront-keyvaluestore" // ID to lookup a service endpoint with. - ServiceID = "CloudFront KeyValueStore" // ServiceID is a unique identifier of a specific service. -) - -// New creates a new instance of the CloudFrontKeyValueStore client with a session. -// If additional configuration is needed for the client instance use the optional -// aws.Config parameter to add your extra config. -// -// Example: -// -// mySession := session.Must(session.NewSession()) -// -// // Create a CloudFrontKeyValueStore client from just a session. -// svc := cloudfrontkeyvaluestore.New(mySession) -// -// // Create a CloudFrontKeyValueStore client with additional configuration -// svc := cloudfrontkeyvaluestore.New(mySession, aws.NewConfig().WithRegion("us-west-2")) -func New(p client.ConfigProvider, cfgs ...*aws.Config) *CloudFrontKeyValueStore { - c := p.ClientConfig(EndpointsID, cfgs...) - if c.SigningNameDerived || len(c.SigningName) == 0 { - c.SigningName = "cloudfront-keyvaluestore" - } - return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion) -} - -// newClient creates, initializes and returns a new service client instance. -func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName, resolvedRegion string) *CloudFrontKeyValueStore { - svc := &CloudFrontKeyValueStore{ - Client: client.New( - cfg, - metadata.ClientInfo{ - ServiceName: ServiceName, - ServiceID: ServiceID, - SigningName: signingName, - SigningRegion: signingRegion, - PartitionID: partitionID, - Endpoint: endpoint, - APIVersion: "2022-07-26", - ResolvedRegion: resolvedRegion, - }, - handlers, - ), - } - - // Handlers - svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler) - svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) - svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) - svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed( - protocol.NewUnmarshalErrorHandler(restjson.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), - ) - - // Run custom client initialization if present - if initClient != nil { - initClient(svc.Client) - } - - return svc -} - -// newRequest creates a new request for a CloudFrontKeyValueStore operation and runs any -// custom request initialization. -func (c *CloudFrontKeyValueStore) newRequest(op *request.Operation, params, data interface{}) *request.Request { - req := c.NewRequest(op, params, data) - - // Run custom request initialization if present - if initRequest != nil { - initRequest(req) - } - - return req -}