123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256 |
- {
- "version": "1.0",
- "examples": {
- "CreateFunction": [
- {
- "input": {
- "FunctionCode": "function-code.js",
- "FunctionConfig": {
- "Comment": "my-function-comment",
- "KeyValueStoreAssociations": {
- "Items": [
- {
- "KeyValueStoreARN": "arn:aws:cloudfront::123456789012:key-value-store/54947df8-0e9e-4471-a2f9-9af509fb5889"
- }
- ],
- "Quantity": 1
- },
- "Runtime": "cloudfront-js-2.0"
- },
- "Name": "my-function-name"
- },
- "output": {
- "ETag": "ETVPDKIKX0DER",
- "FunctionSummary": {
- "FunctionConfig": {
- "Comment": "my-function-comment",
- "KeyValueStoreAssociations": {
- "Items": [
- {
- "KeyValueStoreARN": "arn:aws:cloudfront::123456789012:key-value-store/54947df8-0e9e-4471-a2f9-9af509fb5889"
- }
- ],
- "Quantity": 1
- },
- "Runtime": "cloudfront-js-2.0"
- },
- "FunctionMetadata": {
- "CreatedTime": "2023-11-07T19:53:50.334Z",
- "FunctionARN": "arn:aws:cloudfront::123456789012:function/my-function-name",
- "LastModifiedTime": "2023-11-07T19:53:50.334Z",
- "Stage": "DEVELOPMENT"
- },
- "Name": "my-function-name",
- "Status": "UNPUBLISHED"
- },
- "Location": "https://cloudfront.amazonaws.com/2020-05-31/function/arn:aws:cloudfront::123456789012:function/my-function-name"
- },
- "comments": {
- "input": {
- },
- "output": {
- }
- },
- "description": "Use the following command to create a function.",
- "id": "to-create-a-function-1699737558249",
- "title": "To create a function"
- }
- ],
- "CreateKeyValueStore": [
- {
- "input": {
- "Comment": "my-key-valuestore-comment",
- "ImportSource": {
- "SourceARN": "arn:aws:s3:::my-bucket/validJSON.json",
- "SourceType": "S3"
- },
- "Name": "my-keyvaluestore-name"
- },
- "output": {
- "ETag": "ETVPDKIKX0DER",
- "KeyValueStore": {
- "ARN": "arn:aws:cloudfront::123456789012:key-value-store/54947df8-0e9e-4471-a2f9-9af509fb5889",
- "Comment": "my-key-valuestore-comment",
- "Id": "54947df8-0e9e-4471-a2f9-9af509fb5889",
- "LastModifiedTime": "2023-11-07T18:15:52.042Z",
- "Name": "my-keyvaluestore-name",
- "Status": "PROVISIONING"
- },
- "Location": "https://cloudfront.amazonaws.com/2020-05-31/key-value-store/arn:aws:cloudfront::123456789012:key-value-store/54947df8-0e9e-4471-a2f9-9af509fb5889"
- },
- "comments": {
- "input": {
- },
- "output": {
- }
- },
- "description": "Use the following command to create a KeyValueStore.",
- "id": "to-create-a-key-value-store-1699751722467",
- "title": "To create a KeyValueStore"
- }
- ],
- "DeleteKeyValueStore": [
- {
- "input": {
- "IfMatch": "ETVPDKIKX0DER",
- "Name": "my-keyvaluestore-name"
- },
- "comments": {
- "input": {
- },
- "output": {
- }
- },
- "description": "Use the following command to delete a KeyValueStore.",
- "id": "to-delete-a-key-value-store-1699751759648",
- "title": "To delete a KeyValueStore"
- }
- ],
- "DescribeKeyValueStore": [
- {
- "input": {
- "Name": "my-keyvaluestore-name"
- },
- "output": {
- "ETag": "ETVPDKIKX0DER",
- "KeyValueStore": {
- "ARN": "arn:aws:cloudfront::123456789012:key-value-store/54947df8-0e9e-4471-a2f9-9af509fb5889",
- "Comment": "my-key-valuestore-comment",
- "Id": "54947df8-0e9e-4471-a2f9-9af509fb5889",
- "LastModifiedTime": "2023-11-07T18:20:33.056Z",
- "Name": "my-keyvaluestore-name",
- "Status": "READY"
- }
- },
- "comments": {
- "input": {
- },
- "output": {
- }
- },
- "description": "Use the following command to describe a KeyValueStore.",
- "id": "to-describe-a-key-value-store-1699751788152",
- "title": "To describe a KeyValueStore"
- }
- ],
- "ListKeyValueStores": [
- {
- "input": {
- "Marker": "",
- "MaxItems": "100",
- "Status": "READY"
- },
- "output": {
- "KeyValueStoreList": {
- "Items": [
- {
- "ARN": "arn:aws:cloudfront::123456789012:key-value-store/54947df8-0e9e-4471-a2f9-9af509fb5889",
- "Comment": "",
- "Id": "54947df8-0e9e-4471-a2f9-9af509fb5889",
- "LastModifiedTime": "2023-11-07T18:45:21.069Z",
- "Name": "my-keyvaluestore-name",
- "Status": "READY"
- }
- ],
- "MaxItems": 100,
- "NextMarker": "",
- "Quantity": 1
- }
- },
- "comments": {
- "input": {
- },
- "output": {
- }
- },
- "description": "The following command retrieves a list of KeyValueStores with READY status.",
- "id": "to-get-a-list-of-key-value-store-1699751799198",
- "title": "To get a list of KeyValueStores"
- }
- ],
- "UpdateFunction": [
- {
- "input": {
- "FunctionCode": "function-code-changed.js",
- "FunctionConfig": {
- "Comment": "my-changed-comment",
- "KeyValueStoreAssociations": {
- "Items": [
- {
- "KeyValueStoreARN": "arn:aws:cloudfront::123456789012:key-value-store/54947df8-0e9e-4471-a2f9-9af509fb5889"
- }
- ],
- "Quantity": 1
- },
- "Runtime": "cloudfront-js-2.0"
- },
- "IfMatch": "ETVPDKIKX0DER",
- "Name": "my-function-name"
- },
- "output": {
- "ETag": "E3UN6WX5RRO2AG",
- "FunctionSummary": {
- "FunctionConfig": {
- "Comment": "my-changed-comment",
- "KeyValueStoreAssociations": {
- "Items": [
- {
- "KeyValueStoreARN": "arn:aws:cloudfront::123456789012:key-value-store/54947df8-0e9e-4471-a2f9-9af509fb5889"
- }
- ],
- "Quantity": 1
- },
- "Runtime": "cloudfront-js-2.0"
- },
- "FunctionMetadata": {
- "CreatedTime": "2023-11-07T19:53:50.334Z",
- "FunctionARN": "arn:aws:cloudfront::123456789012:function/my-function-name",
- "LastModifiedTime": "2023-11-07T20:01:37.174Z",
- "Stage": "DEVELOPMENT"
- },
- "Name": "my-function-name",
- "Status": "UNPUBLISHED"
- }
- },
- "comments": {
- "input": {
- },
- "output": {
- }
- },
- "description": "Use the following command to update a function.",
- "id": "to-update-a-function-1699751865053",
- "title": "To update a function"
- }
- ],
- "UpdateKeyValueStore": [
- {
- "input": {
- "Comment": "my-changed-comment",
- "IfMatch": "ETVPDKIKX0DER",
- "Name": "my-keyvaluestore-name"
- },
- "output": {
- "ETag": "E3UN6WX5RRO2AG",
- "KeyValueStore": {
- "ARN": "arn:aws:cloudfront::123456789012:key-value-store/54947df8-0e9e-4471-a2f9-9af509fb5889",
- "Comment": "my-changed-comment",
- "Id": "54947df8-0e9e-4471-a2f9-9af509fb5889",
- "LastModifiedTime": "2023-11-07T18:45:21.069Z",
- "Name": "my-keyvaluestore-name",
- "Status": "READY"
- }
- },
- "comments": {
- "input": {
- },
- "output": {
- }
- },
- "description": "Use the following command to update a KeyValueStore.",
- "id": "to-update-a-key-value-store-1699751822090",
- "title": "To update a KeyValueStore"
- }
- ]
- }
- }
|