UNPKG

lambdaws

Version:

AWS lambda functions made easy

1,531 lines 36.9 kB
{ "metadata": { "apiVersion": "2014-10-21", "endpointPrefix": "cloudfront", "globalEndpoint": "cloudfront.amazonaws.com", "serviceAbbreviation": "CloudFront", "serviceFullName": "Amazon CloudFront", "signatureVersion": "v4", "protocol": "rest-xml" }, "operations": { "CreateCloudFrontOriginAccessIdentity": { "http": { "requestUri": "/2014-10-21/origin-access-identity/cloudfront", "responseCode": 201 }, "input": { "type": "structure", "required": [ "CloudFrontOriginAccessIdentityConfig" ], "members": { "CloudFrontOriginAccessIdentityConfig": { "shape": "S2", "xmlNamespace": { "uri": "http://cloudfront.amazonaws.com/doc/2014-10-21/" }, "locationName": "CloudFrontOriginAccessIdentityConfig" } }, "payload": "CloudFrontOriginAccessIdentityConfig" }, "output": { "type": "structure", "members": { "CloudFrontOriginAccessIdentity": { "shape": "S5" }, "Location": { "location": "header", "locationName": "Location" }, "ETag": { "location": "header", "locationName": "ETag" } }, "payload": "CloudFrontOriginAccessIdentity" } }, "CreateDistribution": { "http": { "requestUri": "/2014-10-21/distribution", "responseCode": 201 }, "input": { "type": "structure", "required": [ "DistributionConfig" ], "members": { "DistributionConfig": { "shape": "S7", "xmlNamespace": { "uri": "http://cloudfront.amazonaws.com/doc/2014-10-21/" }, "locationName": "DistributionConfig" } }, "payload": "DistributionConfig" }, "output": { "type": "structure", "members": { "Distribution": { "shape": "S1e" }, "Location": { "location": "header", "locationName": "Location" }, "ETag": { "location": "header", "locationName": "ETag" } }, "payload": "Distribution" } }, "CreateInvalidation": { "http": { "requestUri": "/2014-10-21/distribution/{DistributionId}/invalidation", "responseCode": 201 }, "input": { "type": "structure", "required": [ "DistributionId", "InvalidationBatch" ], "members": { "DistributionId": { "location": "uri", "locationName": "DistributionId" }, "InvalidationBatch": { "shape": "S1m", "xmlNamespace": { "uri": "http://cloudfront.amazonaws.com/doc/2014-10-21/" }, "locationName": "InvalidationBatch" } }, "payload": "InvalidationBatch" }, "output": { "type": "structure", "members": { "Location": { "location": "header", "locationName": "Location" }, "Invalidation": { "shape": "S1q" } }, "payload": "Invalidation" } }, "CreateStreamingDistribution": { "http": { "requestUri": "/2014-10-21/streaming-distribution", "responseCode": 201 }, "input": { "type": "structure", "required": [ "StreamingDistributionConfig" ], "members": { "StreamingDistributionConfig": { "shape": "S1s", "xmlNamespace": { "uri": "http://cloudfront.amazonaws.com/doc/2014-10-21/" }, "locationName": "StreamingDistributionConfig" } }, "payload": "StreamingDistributionConfig" }, "output": { "type": "structure", "members": { "StreamingDistribution": { "shape": "S1w" }, "Location": { "location": "header", "locationName": "Location" }, "ETag": { "location": "header", "locationName": "ETag" } }, "payload": "StreamingDistribution" } }, "DeleteCloudFrontOriginAccessIdentity": { "http": { "method": "DELETE", "requestUri": "/2014-10-21/origin-access-identity/cloudfront/{Id}", "responseCode": 204 }, "input": { "type": "structure", "members": { "Id": { "location": "uri", "locationName": "Id" }, "IfMatch": { "location": "header", "locationName": "If-Match" } }, "required": [ "Id" ] } }, "DeleteDistribution": { "http": { "method": "DELETE", "requestUri": "/2014-10-21/distribution/{Id}", "responseCode": 204 }, "input": { "type": "structure", "members": { "Id": { "location": "uri", "locationName": "Id" }, "IfMatch": { "location": "header", "locationName": "If-Match" } }, "required": [ "Id" ] } }, "DeleteStreamingDistribution": { "http": { "method": "DELETE", "requestUri": "/2014-10-21/streaming-distribution/{Id}", "responseCode": 204 }, "input": { "type": "structure", "members": { "Id": { "location": "uri", "locationName": "Id" }, "IfMatch": { "location": "header", "locationName": "If-Match" } }, "required": [ "Id" ] } }, "GetCloudFrontOriginAccessIdentity": { "http": { "method": "GET", "requestUri": "/2014-10-21/origin-access-identity/cloudfront/{Id}" }, "input": { "type": "structure", "members": { "Id": { "location": "uri", "locationName": "Id" } }, "required": [ "Id" ] }, "output": { "type": "structure", "members": { "CloudFrontOriginAccessIdentity": { "shape": "S5" }, "ETag": { "location": "header", "locationName": "ETag" } }, "payload": "CloudFrontOriginAccessIdentity" } }, "GetCloudFrontOriginAccessIdentityConfig": { "http": { "method": "GET", "requestUri": "/2014-10-21/origin-access-identity/cloudfront/{Id}/config" }, "input": { "type": "structure", "members": { "Id": { "location": "uri", "locationName": "Id" } }, "required": [ "Id" ] }, "output": { "type": "structure", "members": { "CloudFrontOriginAccessIdentityConfig": { "shape": "S2" }, "ETag": { "location": "header", "locationName": "ETag" } }, "payload": "CloudFrontOriginAccessIdentityConfig" } }, "GetDistribution": { "http": { "method": "GET", "requestUri": "/2014-10-21/distribution/{Id}" }, "input": { "type": "structure", "members": { "Id": { "location": "uri", "locationName": "Id" } }, "required": [ "Id" ] }, "output": { "type": "structure", "members": { "Distribution": { "shape": "S1e" }, "ETag": { "location": "header", "locationName": "ETag" } }, "payload": "Distribution" } }, "GetDistributionConfig": { "http": { "method": "GET", "requestUri": "/2014-10-21/distribution/{Id}/config" }, "input": { "type": "structure", "members": { "Id": { "location": "uri", "locationName": "Id" } }, "required": [ "Id" ] }, "output": { "type": "structure", "members": { "DistributionConfig": { "shape": "S7" }, "ETag": { "location": "header", "locationName": "ETag" } }, "payload": "DistributionConfig" } }, "GetInvalidation": { "http": { "method": "GET", "requestUri": "/2014-10-21/distribution/{DistributionId}/invalidation/{Id}" }, "input": { "type": "structure", "required": [ "DistributionId", "Id" ], "members": { "DistributionId": { "location": "uri", "locationName": "DistributionId" }, "Id": { "location": "uri", "locationName": "Id" } } }, "output": { "type": "structure", "members": { "Invalidation": { "shape": "S1q" } }, "payload": "Invalidation" } }, "GetStreamingDistribution": { "http": { "method": "GET", "requestUri": "/2014-10-21/streaming-distribution/{Id}" }, "input": { "type": "structure", "members": { "Id": { "location": "uri", "locationName": "Id" } }, "required": [ "Id" ] }, "output": { "type": "structure", "members": { "StreamingDistribution": { "shape": "S1w" }, "ETag": { "location": "header", "locationName": "ETag" } }, "payload": "StreamingDistribution" } }, "GetStreamingDistributionConfig": { "http": { "method": "GET", "requestUri": "/2014-10-21/streaming-distribution/{Id}/config" }, "input": { "type": "structure", "members": { "Id": { "location": "uri", "locationName": "Id" } }, "required": [ "Id" ] }, "output": { "type": "structure", "members": { "StreamingDistributionConfig": { "shape": "S1s" }, "ETag": { "location": "header", "locationName": "ETag" } }, "payload": "StreamingDistributionConfig" } }, "ListCloudFrontOriginAccessIdentities": { "http": { "method": "GET", "requestUri": "/2014-10-21/origin-access-identity/cloudfront" }, "input": { "type": "structure", "members": { "Marker": { "location": "querystring", "locationName": "Marker" }, "MaxItems": { "location": "querystring", "locationName": "MaxItems" } } }, "output": { "type": "structure", "members": { "CloudFrontOriginAccessIdentityList": { "type": "structure", "required": [ "Marker", "MaxItems", "IsTruncated", "Quantity" ], "members": { "Marker": {}, "NextMarker": {}, "MaxItems": { "type": "integer" }, "IsTruncated": { "type": "boolean" }, "Quantity": { "type": "integer" }, "Items": { "type": "list", "member": { "locationName": "CloudFrontOriginAccessIdentitySummary", "type": "structure", "required": [ "Id", "S3CanonicalUserId", "Comment" ], "members": { "Id": {}, "S3CanonicalUserId": {}, "Comment": {} } } } } } }, "payload": "CloudFrontOriginAccessIdentityList" } }, "ListDistributions": { "http": { "method": "GET", "requestUri": "/2014-10-21/distribution" }, "input": { "type": "structure", "members": { "Marker": { "location": "querystring", "locationName": "Marker" }, "MaxItems": { "location": "querystring", "locationName": "MaxItems" } } }, "output": { "type": "structure", "members": { "DistributionList": { "type": "structure", "required": [ "Marker", "MaxItems", "IsTruncated", "Quantity" ], "members": { "Marker": {}, "NextMarker": {}, "MaxItems": { "type": "integer" }, "IsTruncated": { "type": "boolean" }, "Quantity": { "type": "integer" }, "Items": { "type": "list", "member": { "locationName": "DistributionSummary", "type": "structure", "required": [ "Id", "Status", "LastModifiedTime", "DomainName", "Aliases", "Origins", "DefaultCacheBehavior", "CacheBehaviors", "CustomErrorResponses", "Comment", "PriceClass", "Enabled", "ViewerCertificate", "Restrictions" ], "members": { "Id": {}, "Status": {}, "LastModifiedTime": { "type": "timestamp" }, "DomainName": {}, "Aliases": { "shape": "S8" }, "Origins": { "shape": "Sb" }, "DefaultCacheBehavior": { "shape": "Sh" }, "CacheBehaviors": { "shape": "Sy" }, "CustomErrorResponses": { "shape": "S11" }, "Comment": {}, "PriceClass": {}, "Enabled": { "type": "boolean" }, "ViewerCertificate": { "shape": "S16" }, "Restrictions": { "shape": "S19" } } } } } } }, "payload": "DistributionList" } }, "ListInvalidations": { "http": { "method": "GET", "requestUri": "/2014-10-21/distribution/{DistributionId}/invalidation" }, "input": { "type": "structure", "required": [ "DistributionId" ], "members": { "DistributionId": { "location": "uri", "locationName": "DistributionId" }, "Marker": { "location": "querystring", "locationName": "Marker" }, "MaxItems": { "location": "querystring", "locationName": "MaxItems" } } }, "output": { "type": "structure", "members": { "InvalidationList": { "type": "structure", "required": [ "Marker", "MaxItems", "IsTruncated", "Quantity" ], "members": { "Marker": {}, "NextMarker": {}, "MaxItems": { "type": "integer" }, "IsTruncated": { "type": "boolean" }, "Quantity": { "type": "integer" }, "Items": { "type": "list", "member": { "locationName": "InvalidationSummary", "type": "structure", "required": [ "Id", "CreateTime", "Status" ], "members": { "Id": {}, "CreateTime": { "type": "timestamp" }, "Status": {} } } } } } }, "payload": "InvalidationList" } }, "ListStreamingDistributions": { "http": { "method": "GET", "requestUri": "/2014-10-21/streaming-distribution" }, "input": { "type": "structure", "members": { "Marker": { "location": "querystring", "locationName": "Marker" }, "MaxItems": { "location": "querystring", "locationName": "MaxItems" } } }, "output": { "type": "structure", "members": { "StreamingDistributionList": { "type": "structure", "required": [ "Marker", "MaxItems", "IsTruncated", "Quantity" ], "members": { "Marker": {}, "NextMarker": {}, "MaxItems": { "type": "integer" }, "IsTruncated": { "type": "boolean" }, "Quantity": { "type": "integer" }, "Items": { "type": "list", "member": { "locationName": "StreamingDistributionSummary", "type": "structure", "required": [ "Id", "Status", "LastModifiedTime", "DomainName", "S3Origin", "Aliases", "TrustedSigners", "Comment", "PriceClass", "Enabled" ], "members": { "Id": {}, "Status": {}, "LastModifiedTime": { "type": "timestamp" }, "DomainName": {}, "S3Origin": { "shape": "S1t" }, "Aliases": { "shape": "S8" }, "TrustedSigners": { "shape": "Sq" }, "Comment": {}, "PriceClass": {}, "Enabled": { "type": "boolean" } } } } } } }, "payload": "StreamingDistributionList" } }, "UpdateCloudFrontOriginAccessIdentity": { "http": { "method": "PUT", "requestUri": "/2014-10-21/origin-access-identity/cloudfront/{Id}/config" }, "input": { "type": "structure", "required": [ "CloudFrontOriginAccessIdentityConfig", "Id" ], "members": { "CloudFrontOriginAccessIdentityConfig": { "shape": "S2", "xmlNamespace": { "uri": "http://cloudfront.amazonaws.com/doc/2014-10-21/" }, "locationName": "CloudFrontOriginAccessIdentityConfig" }, "Id": { "location": "uri", "locationName": "Id" }, "IfMatch": { "location": "header", "locationName": "If-Match" } }, "payload": "CloudFrontOriginAccessIdentityConfig" }, "output": { "type": "structure", "members": { "CloudFrontOriginAccessIdentity": { "shape": "S5" }, "ETag": { "location": "header", "locationName": "ETag" } }, "payload": "CloudFrontOriginAccessIdentity" } }, "UpdateDistribution": { "http": { "method": "PUT", "requestUri": "/2014-10-21/distribution/{Id}/config" }, "input": { "type": "structure", "required": [ "DistributionConfig", "Id" ], "members": { "DistributionConfig": { "shape": "S7", "xmlNamespace": { "uri": "http://cloudfront.amazonaws.com/doc/2014-10-21/" }, "locationName": "DistributionConfig" }, "Id": { "location": "uri", "locationName": "Id" }, "IfMatch": { "location": "header", "locationName": "If-Match" } }, "payload": "DistributionConfig" }, "output": { "type": "structure", "members": { "Distribution": { "shape": "S1e" }, "ETag": { "location": "header", "locationName": "ETag" } }, "payload": "Distribution" } }, "UpdateStreamingDistribution": { "http": { "method": "PUT", "requestUri": "/2014-10-21/streaming-distribution/{Id}/config" }, "input": { "type": "structure", "required": [ "StreamingDistributionConfig", "Id" ], "members": { "StreamingDistributionConfig": { "shape": "S1s", "xmlNamespace": { "uri": "http://cloudfront.amazonaws.com/doc/2014-10-21/" }, "locationName": "StreamingDistributionConfig" }, "Id": { "location": "uri", "locationName": "Id" }, "IfMatch": { "location": "header", "locationName": "If-Match" } }, "payload": "StreamingDistributionConfig" }, "output": { "type": "structure", "members": { "StreamingDistribution": { "shape": "S1w" }, "ETag": { "location": "header", "locationName": "ETag" } }, "payload": "StreamingDistribution" } } }, "shapes": { "S2": { "type": "structure", "required": [ "CallerReference", "Comment" ], "members": { "CallerReference": {}, "Comment": {} } }, "S5": { "type": "structure", "required": [ "Id", "S3CanonicalUserId" ], "members": { "Id": {}, "S3CanonicalUserId": {}, "CloudFrontOriginAccessIdentityConfig": { "shape": "S2" } } }, "S7": { "type": "structure", "required": [ "CallerReference", "Aliases", "DefaultRootObject", "Origins", "DefaultCacheBehavior", "CacheBehaviors", "Comment", "Logging", "PriceClass", "Enabled" ], "members": { "CallerReference": {}, "Aliases": { "shape": "S8" }, "DefaultRootObject": {}, "Origins": { "shape": "Sb" }, "DefaultCacheBehavior": { "shape": "Sh" }, "CacheBehaviors": { "shape": "Sy" }, "CustomErrorResponses": { "shape": "S11" }, "Comment": {}, "Logging": { "type": "structure", "required": [ "Enabled", "IncludeCookies", "Bucket", "Prefix" ], "members": { "Enabled": { "type": "boolean" }, "IncludeCookies": { "type": "boolean" }, "Bucket": {}, "Prefix": {} } }, "PriceClass": {}, "Enabled": { "type": "boolean" }, "ViewerCertificate": { "shape": "S16" }, "Restrictions": { "shape": "S19" } } }, "S8": { "type": "structure", "required": [ "Quantity" ], "members": { "Quantity": { "type": "integer" }, "Items": { "type": "list", "member": { "locationName": "CNAME" } } } }, "Sb": { "type": "structure", "required": [ "Quantity" ], "members": { "Quantity": { "type": "integer" }, "Items": { "type": "list", "member": { "locationName": "Origin", "type": "structure", "required": [ "Id", "DomainName" ], "members": { "Id": {}, "DomainName": {}, "S3OriginConfig": { "type": "structure", "required": [ "OriginAccessIdentity" ], "members": { "OriginAccessIdentity": {} } }, "CustomOriginConfig": { "type": "structure", "required": [ "HTTPPort", "HTTPSPort", "OriginProtocolPolicy" ], "members": { "HTTPPort": { "type": "integer" }, "HTTPSPort": { "type": "integer" }, "OriginProtocolPolicy": {} } } } } } } }, "Sh": { "type": "structure", "required": [ "TargetOriginId", "ForwardedValues", "TrustedSigners", "ViewerProtocolPolicy", "MinTTL" ], "members": { "TargetOriginId": {}, "ForwardedValues": { "shape": "Si" }, "TrustedSigners": { "shape": "Sq" }, "ViewerProtocolPolicy": {}, "MinTTL": { "type": "long" }, "AllowedMethods": { "shape": "Su" }, "SmoothStreaming": { "type": "boolean" } } }, "Si": { "type": "structure", "required": [ "QueryString", "Cookies" ], "members": { "QueryString": { "type": "boolean" }, "Cookies": { "type": "structure", "required": [ "Forward" ], "members": { "Forward": {}, "WhitelistedNames": { "type": "structure", "required": [ "Quantity" ], "members": { "Quantity": { "type": "integer" }, "Items": { "type": "list", "member": { "locationName": "Name" } } } } } }, "Headers": { "type": "structure", "required": [ "Quantity" ], "members": { "Quantity": { "type": "integer" }, "Items": { "type": "list", "member": { "locationName": "Name" } } } } } }, "Sq": { "type": "structure", "required": [ "Enabled", "Quantity" ], "members": { "Enabled": { "type": "boolean" }, "Quantity": { "type": "integer" }, "Items": { "type": "list", "member": { "locationName": "AwsAccountNumber" } } } }, "Su": { "type": "structure", "required": [ "Quantity", "Items" ], "members": { "Quantity": { "type": "integer" }, "Items": { "shape": "Sv" }, "CachedMethods": { "type": "structure", "required": [ "Quantity", "Items" ], "members": { "Quantity": { "type": "integer" }, "Items": { "shape": "Sv" } } } } }, "Sv": { "type": "list", "member": { "locationName": "Method" } }, "Sy": { "type": "structure", "required": [ "Quantity" ], "members": { "Quantity": { "type": "integer" }, "Items": { "type": "list", "member": { "locationName": "CacheBehavior", "type": "structure", "required": [ "PathPattern", "TargetOriginId", "ForwardedValues", "TrustedSigners", "ViewerProtocolPolicy", "MinTTL" ], "members": { "PathPattern": {}, "TargetOriginId": {}, "ForwardedValues": { "shape": "Si" }, "TrustedSigners": { "shape": "Sq" }, "ViewerProtocolPolicy": {}, "MinTTL": { "type": "long" }, "AllowedMethods": { "shape": "Su" }, "SmoothStreaming": { "type": "boolean" } } } } } }, "S11": { "type": "structure", "required": [ "Quantity" ], "members": { "Quantity": { "type": "integer" }, "Items": { "type": "list", "member": { "locationName": "CustomErrorResponse", "type": "structure", "required": [ "ErrorCode" ], "members": { "ErrorCode": { "type": "integer" }, "ResponsePagePath": {}, "ResponseCode": {}, "ErrorCachingMinTTL": { "type": "long" } } } } } }, "S16": { "type": "structure", "members": { "IAMCertificateId": {}, "CloudFrontDefaultCertificate": { "type": "boolean" }, "SSLSupportMethod": {}, "MinimumProtocolVersion": {} } }, "S19": { "type": "structure", "required": [ "GeoRestriction" ], "members": { "GeoRestriction": { "type": "structure", "required": [ "RestrictionType", "Quantity" ], "members": { "RestrictionType": {}, "Quantity": { "type": "integer" }, "Items": { "type": "list", "member": { "locationName": "Location" } } } } } }, "S1e": { "type": "structure", "required": [ "Id", "Status", "LastModifiedTime", "InProgressInvalidationBatches", "DomainName", "ActiveTrustedSigners", "DistributionConfig" ], "members": { "Id": {}, "Status": {}, "LastModifiedTime": { "type": "timestamp" }, "InProgressInvalidationBatches": { "type": "integer" }, "DomainName": {}, "ActiveTrustedSigners": { "shape": "S1g" }, "DistributionConfig": { "shape": "S7" } } }, "S1g": { "type": "structure", "required": [ "Enabled", "Quantity" ], "members": { "Enabled": { "type": "boolean" }, "Quantity": { "type": "integer" }, "Items": { "type": "list", "member": { "locationName": "Signer", "type": "structure", "members": { "AwsAccountNumber": {}, "KeyPairIds": { "type": "structure", "required": [ "Quantity" ], "members": { "Quantity": { "type": "integer" }, "Items": { "type": "list", "member": { "locationName": "KeyPairId" } } } } } } } } }, "S1m": { "type": "structure", "required": [ "Paths", "CallerReference" ], "members": { "Paths": { "type": "structure", "required": [ "Quantity" ], "members": { "Quantity": { "type": "integer" }, "Items": { "type": "list", "member": { "locationName": "Path" } } } }, "CallerReference": {} } }, "S1q": { "type": "structure", "required": [ "Id", "Status", "CreateTime", "InvalidationBatch" ], "members": { "Id": {}, "Status": {}, "CreateTime": { "type": "timestamp" }, "InvalidationBatch": { "shape": "S1m" } } }, "S1s": { "type": "structure", "required": [ "CallerReference", "S3Origin", "Aliases", "Comment", "Logging", "TrustedSigners", "PriceClass", "Enabled" ], "members": { "CallerReference": {}, "S3Origin": { "shape": "S1t" }, "Aliases": { "shape": "S8" }, "Comment": {}, "Logging": { "type": "structure", "required": [ "Enabled", "Bucket", "Prefix" ], "members": { "Enabled": { "type": "boolean" }, "Bucket": {}, "Prefix": {} } }, "TrustedSigners": { "shape": "Sq" }, "PriceClass": {}, "Enabled": { "type": "boolean" } } }, "S1t": { "type": "structure", "required": [ "DomainName", "OriginAccessIdentity" ], "members": { "DomainName": {}, "OriginAccessIdentity": {} } }, "S1w": { "type": "structure", "required": [ "Id", "Status", "DomainName", "ActiveTrustedSigners", "StreamingDistributionConfig" ], "members": { "Id": {}, "Status": {}, "LastModifiedTime": { "type": "timestamp" }, "DomainName": {}, "ActiveTrustedSigners": { "shape": "S1g" }, "StreamingDistributionConfig": { "shape": "S1s" } } } } }