UNPKG

huaweicloud-obs-sync

Version:
2,474 lines (2,396 loc) 66.3 kB
'use strict'; const owner = { 'type' : 'object', 'location' : 'xml', 'sentAs' : 'Owner', 'parameters' : { 'ID' : { 'sentAs' : 'ID', } } }; const initiator = { 'type' : 'object', 'location' : 'xml', 'sentAs' : 'Initiator', 'parameters' : { 'ID' : { 'sentAs' : 'ID', }, }, }; const commonPrefixes = { 'type' : 'array', 'location' : 'xml', 'sentAs' : 'CommonPrefixes', 'items' : { 'type' : 'object', 'parameters' : { 'Prefix' : { 'sentAs' : 'Prefix', }, } } }; const grants = { 'type' : 'array', 'location' : 'xml', 'wrapper' : 'AccessControlList', 'sentAs' : 'Grant', 'items' : { 'type' : 'object', 'parameters' : { 'Grantee' : { 'type' : 'object', 'sentAs' : 'Grantee', 'parameters' : { 'Type' : { 'type' : 'ignore', }, 'ID' : { 'sentAs' : 'ID', }, 'URI' : { 'sentAs' : 'Canned', 'type' : 'adapter' } }, }, 'Permission' : { 'sentAs' : 'Permission', }, 'Delivered' :{ 'sentAs' : 'Delivered', } }, }, }; const loggingEnabled = { 'type' : 'object', 'location' : 'xml', 'sentAs' : 'LoggingEnabled', 'parameters' : { 'TargetBucket' : { 'sentAs' : 'TargetBucket', }, 'TargetPrefix' : { 'sentAs' : 'TargetPrefix', }, 'TargetGrants' : { 'type' : 'array', 'wrapper' : 'TargetGrants', 'sentAs' : 'Grant', 'items' : { 'type' : 'object', 'parameters' : { 'Grantee' : { 'type' : 'object', 'sentAs' : 'Grantee', 'parameters' : { 'Type' : { 'type' : 'ignore', }, 'ID' : { 'sentAs' : 'ID', }, 'URI' : { 'sentAs' : 'Canned', 'type' : 'adapter' } }, }, 'Permission' : { 'sentAs' : 'Permission', }, }, }, }, }, }; const rules = { 'required' : true, 'type' : 'array', 'location' : 'xml', 'sentAs' : 'Rule', 'items' : { 'type' : 'object', 'parameters' : { 'ID' : { 'sentAs' : 'ID', }, 'Prefix' : { 'sentAs' : 'Prefix', }, 'Status' : { 'sentAs' : 'Status', }, 'Transitions' : { 'type' : 'array', 'sentAs' : 'Transition', 'items' : { 'type' : 'object', 'parameters' : { 'StorageClass' :{ 'sentAs' : 'StorageClass', 'type' : 'adapter' }, 'Date' : { 'sentAs' : 'Date', }, 'Days' : { 'type' : 'number', 'sentAs' : 'Days' } } } }, 'Expiration' : { 'type' : 'object', 'sentAs' : 'Expiration', 'parameters' : { 'Date' : { 'sentAs' : 'Date', }, 'Days' : { 'type' : 'number', 'sentAs' : 'Days' }, }, }, 'NoncurrentVersionTransitions' :{ 'type' : 'array', 'sentAs' : 'NoncurrentVersionTransition', 'items' : { 'type' : 'object', 'parameters' : { 'StorageClass' :{ 'sentAs' : 'StorageClass', 'type' : 'adapter' }, 'NoncurrentDays' : { 'type' : 'number', 'sentAs' : 'NoncurrentDays' } } } }, 'NoncurrentVersionExpiration' : { 'type' : 'object', 'sentAs' : 'NoncurrentVersionExpiration', 'parameters' : { 'NoncurrentDays' : { 'type' : 'number', 'sentAs' : 'NoncurrentDays', }, }, } }, }, }; const redirectAllRequestsTo = { 'type' : 'object', 'location' : 'xml', 'sentAs' : 'RedirectAllRequestsTo', 'parameters' : { 'HostName' : { 'sentAs' : 'HostName', }, 'Protocol' : { 'sentAs' : 'Protocol', }, } }; const routingRules = { 'type' : 'array', 'wrapper' : 'RoutingRules', 'location' : 'xml', 'sentAs' : 'RoutingRule', 'items' : { 'type' : 'object', 'parameters' : { 'Condition' : { 'type' : 'object', 'sentAs' : 'Condition', 'parameters' : { 'HttpErrorCodeReturnedEquals' : { 'sentAs' : 'HttpErrorCodeReturnedEquals', }, 'KeyPrefixEquals' : { 'sentAs' : 'KeyPrefixEquals', }, }, }, 'Redirect' : { 'type' : 'object', 'sentAs' : 'Redirect', 'parameters' : { 'HostName' : { 'sentAs' : 'HostName', }, 'HttpRedirectCode' : { 'sentAs' : 'HttpRedirectCode', }, 'Protocol' : { 'sentAs' : 'Protocol', }, 'ReplaceKeyPrefixWith' : { 'sentAs' : 'ReplaceKeyPrefixWith', }, 'ReplaceKeyWith' : { 'sentAs' : 'ReplaceKeyWith', } } }, }, }, }; const indexDocument = { 'type' : 'object', 'location' : 'xml', 'sentAs' : 'IndexDocument', 'parameters' : { 'Suffix' : { 'sentAs' : 'Suffix', }, } }; const errorDocument = { 'type' : 'object', 'location' : 'xml', 'sentAs' : 'ErrorDocument', 'parameters' : { 'Key' : { 'sentAs' : 'Key', }, } }; const corsRule = { 'required' : true, 'type' : 'array', 'location' : 'xml', 'sentAs' : 'CORSRule', 'items' : { 'type' : 'object', 'parameters' : { 'ID' : { 'sentAs' : 'ID', }, 'AllowedMethod' : { 'type' : 'array', 'sentAs' : 'AllowedMethod', 'items' : { 'type' : 'string', }, }, 'AllowedOrigin' : { 'type' : 'array', 'sentAs' : 'AllowedOrigin', 'items' : { 'type' : 'string', }, }, 'AllowedHeader' : { 'type' : 'array', 'sentAs' : 'AllowedHeader', 'items' : { 'type' : 'string', }, }, 'MaxAgeSeconds' : { 'type' : 'number', 'sentAs' : 'MaxAgeSeconds', }, 'ExposeHeader' : { 'type' : 'array', 'sentAs' : 'ExposeHeader', 'items' : { 'type' : 'string', }, }, }, }, }; const topicConfiguration = { 'type' : 'array', 'location' : 'xml', 'sentAs' : 'TopicConfiguration', 'items' : { 'type' : 'object', 'location' : 'xml', 'parameters' : { 'ID' : { 'sentAs' : 'Id' }, 'Filter' : { 'type' : 'object', 'parameters' : { 'FilterRules' : { 'wrapper' : 'Object', 'type' : 'array', 'sentAs' : 'FilterRule', 'items' : { 'type' : 'object', 'parameters' : { 'Name' : {}, 'Value' : {} } } } } }, 'Topic' : {}, 'Event' : { 'type' : 'array', 'items' : { 'type' : 'adapter', } } } } }; const tagSet = { 'required' : true, 'type' : 'array', 'location' : 'xml', 'wrapper' : 'TagSet', 'sentAs' : 'Tag', 'items' : { 'type' : 'object', 'parameters' : { 'Key' : { 'sentAs' : 'Key', }, 'Value' : { 'sentAs' : 'Value', } } } }; const replicationRules = { 'required' : true, 'type' : 'array', 'location' : 'xml', 'sentAs' : 'Rule', 'items' : { 'type' : 'object', 'parameters' : { 'ID' : { 'sentAs' : 'ID', }, 'Prefix' : { 'sentAs' : 'Prefix', }, 'Status' : { 'sentAs' : 'Status', }, 'Destination' :{ 'type' : 'object', 'sentAs' : 'Destination', 'parameters' :{ 'Bucket' : { 'sentAs' : 'Bucket', 'type' : 'adapter' }, 'StorageClass' :{ 'sentAs' : 'StorageClass', 'type' : 'adapter' } } } }, } }; const operations = { 'CreateBucket' : { 'httpMethod' : 'PUT', 'data' : { 'xmlRoot' : 'CreateBucketConfiguration', }, 'parameters' : { 'Bucket' : { 'required' : true, 'location' : 'uri', }, 'ACL' : { 'location' : 'header', 'sentAs' : 'acl', 'withPrefix' : true, 'type' : 'adapter' }, 'StorageClass' : { 'location' : 'header', 'sentAs' : 'storage-class', 'withPrefix' : true, 'type' : 'adapter' }, 'Location' : { 'location' : 'xml', 'sentAs' : 'Location' }, 'GrantRead' : { 'location' : 'header', 'sentAs' : 'grant-read', 'withPrefix' : true, }, 'GrantWrite' : { 'location' : 'header', 'sentAs' : 'grant-write', 'withPrefix' : true, }, 'GrantReadAcp' : { 'location' : 'header', 'sentAs' : 'grant-read-acp', 'withPrefix' : true, }, 'GrantWriteAcp' : { 'location' : 'header', 'sentAs' : 'grant-write-acp', 'withPrefix' : true, }, 'GrantFullControl' : { 'location' : 'header', 'sentAs' : 'grant-full-control', 'withPrefix' : true, }, 'GrantReadDelivered' : { 'location' : 'header', 'sentAs' : 'grant-read-delivered', 'withPrefix' : true, }, 'GrantFullControlDelivered' : { 'location' : 'header', 'sentAs' : 'grant-full-control-delivered', 'withPrefix' : true, } } }, 'ListBuckets' : { 'httpMethod' : 'GET', 'parameters' : { } }, 'ListBucketsOutput' : { 'data' : { 'type' : 'xml', 'xmlRoot' : 'ListAllMyBucketsResult', }, 'parameters' : { 'Owner' : { 'type' : 'object', 'location' : 'xml', 'sentAs' : 'Owner', 'parameters' : { 'ID' : { 'sentAs' : 'ID', }, }, }, 'Buckets' : { 'type' : 'array', 'location' : 'xml', 'wrapper' : 'Buckets', 'sentAs' : 'Bucket', 'items' : { 'type' : 'object', 'parameters' : { 'BucketName' : { 'sentAs' : 'Name', }, 'CreationDate' : { 'type' : 'date', 'sentAs' : 'CreationDate' }, 'Location' : { 'sentAs' : 'Location' } }, }, }, }, }, 'HeadBucket' : { 'httpMethod' : 'HEAD', 'parameters' : { 'Bucket' : { 'required' : true, 'location' : 'uri', }, }, }, 'GetBucketMetadata' : { 'httpMethod' : 'HEAD', 'parameters' : { 'Bucket' : { 'required' : true, 'location' : 'uri', }, 'Origin' : { 'location' : 'header', 'sentAs' : 'Origin' }, 'RequestHeader' : { 'location' : 'header', 'sentAs' : 'Access-Control-Request-Headers' } }, }, 'GetBucketMetadataOutput' : { 'parameters' : { 'StorageClass' : { 'location' : 'header', 'sentAs' : 'storage-class', 'withPrefix' : true }, 'ObsVersion' : { 'location' : 'header', 'sentAs' : 'version', 'withPrefix' : true }, 'Location' : { 'location' : 'header', 'sentAs' : 'bucket-location', 'withPrefix' : true }, 'AllowOrigin' : { 'location' : 'header', 'sentAs' : 'access-control-allow-origin' }, 'MaxAgeSeconds' : { 'location' : 'header', 'sentAs' : 'access-control-max-age' }, 'ExposeHeader' : { 'location' : 'header', 'sentAs' : 'access-control-expose-headers' }, 'AllowMethod' : { 'location' : 'header', 'sentAs' : 'access-control-allow-methods' }, 'AllowHeader' : { 'location' : 'header', 'sentAs' : 'access-control-allow-headers' } } }, 'DeleteBucket' : { 'httpMethod' : 'DELETE', 'parameters' : { 'Bucket' : { 'required' : true, 'location' : 'uri', }, }, }, 'ListObjects' : { 'httpMethod' : 'GET', 'parameters' : { 'Bucket' : { 'required' : true, 'location' : 'uri', }, 'Prefix' : { 'location' : 'urlPath', 'sentAs' : 'prefix', }, 'Marker' : { 'location' : 'urlPath', 'sentAs' : 'marker', }, 'MaxKeys' : { 'type' : 'number', 'location' : 'urlPath', 'sentAs' : 'max-keys', }, 'Delimiter' : { 'location' : 'urlPath', 'sentAs' : 'delimiter', }, }, }, 'ListObjectsOutput' : { 'data' : { 'type' : 'xml', 'xmlRoot' : 'ListBucketResult', }, 'parameters' : { 'Location' : { 'location' : 'header', 'sentAs' : 'bucket-location', 'withPrefix' : true }, 'Bucket' : { 'location' : 'xml', 'sentAs' : 'Name', }, 'Delimiter' : { 'location' : 'xml', 'sentAs' : 'Delimiter', }, 'IsTruncated' : { 'location' : 'xml', 'sentAs' : 'IsTruncated', }, 'Prefix' : { 'location' : 'xml', 'sentAs' : 'Prefix', }, 'Marker' : { 'location' : 'xml', 'sentAs' : 'Marker', }, 'NextMarker' : { 'location' : 'xml', 'sentAs' : 'NextMarker', }, 'MaxKeys' : { 'location' : 'xml', 'sentAs' : 'MaxKeys', }, 'Contents' : { 'type' : 'array', 'location' : 'xml', 'sentAs' : 'Contents', 'items' : { 'type' : 'object', 'parameters' : { 'Key' : { 'sentAs' : 'Key', }, 'LastModified' : { 'type' : 'date', 'sentAs' : 'LastModified', }, 'ETag' : { 'sentAs' : 'ETag', }, 'Size' : { 'sentAs' : 'Size', }, 'Type' :{ 'sentAs' : 'Type' }, 'StorageClass' : { 'sentAs' : 'StorageClass', }, 'Owner' : owner }, }, }, 'CommonPrefixes' : commonPrefixes }, }, 'ListVersions' : { 'httpMethod' : 'GET', 'urlPath' : 'versions', 'parameters' : { 'Bucket' : { 'required' : true, 'location' : 'uri', }, 'Prefix' : { 'location' : 'urlPath', 'sentAs' : 'prefix', }, 'KeyMarker' : { 'location' : 'urlPath', 'sentAs' : 'key-marker', }, 'MaxKeys' : { 'type' : 'number', 'location' : 'urlPath', 'sentAs' : 'max-keys', }, 'Delimiter' : { 'location' : 'urlPath', 'sentAs' : 'delimiter', }, 'VersionIdMarker' : { 'location' : 'urlPath', 'sentAs' : 'version-id-marker', }, }, }, 'ListVersionsOutput' : { 'data' : { 'type' : 'xml', 'xmlRoot' : 'ListVersionsResult', }, 'parameters' : { 'Location' : { 'location' : 'header', 'sentAs' : 'bucket-location', 'withPrefix' : true }, 'Bucket' : { 'location' : 'xml', 'sentAs' : 'Name', }, 'Prefix' : { 'location' : 'xml', 'sentAs' : 'Prefix', }, 'Delimiter' : { 'location' : 'xml', 'sentAs' : 'Delimiter', }, 'KeyMarker' : { 'location' : 'xml', 'sentAs' : 'KeyMarker', }, 'VersionIdMarker' : { 'location' : 'xml', 'sentAs' : 'VersionIdMarker', }, 'NextKeyMarker' : { 'location' : 'xml', 'sentAs' : 'NextKeyMarker', }, 'NextVersionIdMarker' : { 'location' : 'xml', 'sentAs' : 'NextVersionIdMarker', }, 'MaxKeys' : { 'location' : 'xml', 'sentAs' : 'MaxKeys', }, 'IsTruncated' : { 'location' : 'xml', 'sentAs' : 'IsTruncated', }, 'Versions' : { 'type' : 'array', 'location' : 'xml', 'sentAs' : 'Version', 'items' : { 'type' : 'object', 'parameters' : { 'Key' : { 'sentAs' : 'Key', }, 'VersionId' : { 'sentAs' : 'VersionId', }, 'IsLatest' : { 'sentAs' : 'IsLatest', }, 'LastModified' : { 'type' : 'date', 'sentAs' : 'LastModified', }, 'ETag' : { 'sentAs' : 'ETag', }, 'Size' : { 'sentAs' : 'Size', }, 'Type' :{ 'sentAs' : 'Type' }, 'Owner' : owner, 'StorageClass' : { 'sentAs' : 'StorageClass', } } }, }, 'DeleteMarkers' : { 'type' : 'array', 'location' : 'xml', 'sentAs' : 'DeleteMarker', 'items' : { 'type' : 'object', 'parameters' : { 'Key' : { 'sentAs' : 'Key', }, 'VersionId' : { 'sentAs' : 'VersionId', }, 'IsLatest' : { 'sentAs' : 'IsLatest', }, 'LastModified' : { 'type' : 'date', 'sentAs' : 'LastModified', }, 'Owner' : owner } }, }, 'CommonPrefixes' : commonPrefixes }, }, 'GetBucketLocation' : { 'httpMethod' : 'GET', 'urlPath' : 'location', 'parameters' : { 'Bucket' : { 'required' : true, 'location' : 'uri', }, }, }, 'GetBucketLocationOutput' : { 'data' : { 'type' : 'xml' }, 'parameters' : { 'Location' : { 'location' : 'xml', 'sentAs' : 'Location' }, }, }, 'GetBucketStorageInfo' : { 'httpMethod' : 'GET', 'urlPath' : 'storageinfo', 'parameters' : { 'Bucket' : { 'required' : true, 'location' : 'uri', }, }, }, 'GetBucketStorageInfoOutput' : { 'data' : { 'type' : 'xml', 'xmlRoot' : 'GetBucketStorageInfoResult', }, 'parameters' : { 'Size' : { 'location' : 'xml', 'sentAs' : 'Size', }, 'ObjectNumber' : { 'location' : 'xml', 'sentAs' : 'ObjectNumber', }, }, }, 'SetBucketQuota' : { 'httpMethod' : 'PUT', 'urlPath' : 'quota', 'data' : { 'xmlRoot' : 'Quota', }, 'parameters' : { 'Bucket' : { 'required' : true, 'location' : 'uri', }, 'StorageQuota' : { 'required' : true, 'location' : 'xml', 'sentAs' : 'StorageQuota', }, }, }, 'GetBucketQuota' : { 'httpMethod' : 'GET', 'urlPath' : 'quota', 'parameters' : { 'Bucket' : { 'required' : true, 'location' : 'uri', }, }, }, 'GetBucketQuotaOutput' : { 'data' : { 'type' : 'xml', 'xmlRoot' : 'Quota', }, 'parameters' : { 'StorageQuota' : { 'location' : 'xml', 'sentAs' : 'StorageQuota', }, }, }, 'SetBucketAcl' : { 'httpMethod' : 'PUT', 'urlPath' : 'acl', 'data' : { 'xmlRoot' : 'AccessControlPolicy', }, 'parameters' : { 'Bucket' : { 'required' : true, 'location' : 'uri', }, 'ACL' : { 'location' : 'header', 'sentAs' : 'acl', 'withPrefix' : true, 'type' : 'adapter' }, 'Owner' : owner, 'Grants' : grants }, }, 'GetBucketAcl' : { 'httpMethod' : 'GET', 'urlPath' : 'acl', 'parameters' : { 'Bucket' : { 'required' : true, 'location' : 'uri', }, }, }, 'GetBucketAclOutput' : { 'data' : { 'type' : 'xml', 'xmlRoot' : 'AccessControlPolicy', }, 'parameters' : { 'Owner' : owner, 'Grants' : grants } }, 'SetBucketLoggingConfiguration' : { 'httpMethod' : 'PUT', 'urlPath' : 'logging', 'data' : { 'xmlRoot' : 'BucketLoggingStatus', 'xmlAllowEmpty' : true }, 'parameters' : { 'Bucket' : { 'required' : true, 'location' : 'uri', }, 'Agency' :{ 'location' : 'xml', 'sentAs' : 'Agency', }, 'LoggingEnabled' : loggingEnabled, }, }, 'GetBucketLoggingConfiguration' : { 'httpMethod' : 'GET', 'urlPath' : 'logging', 'parameters' : { 'Bucket' : { 'required' : true, 'location' : 'uri', }, }, }, 'GetBucketLoggingConfigurationOutput' : { 'data' : { 'type' : 'xml', 'xmlRoot' : 'BucketLoggingStatus', }, 'parameters' : { 'Agency' :{ 'location' : 'xml', 'sentAs' : 'Agency' }, 'LoggingEnabled' : loggingEnabled, }, }, 'SetBucketPolicy' : { 'httpMethod' : 'PUT', 'urlPath' : 'policy', 'parameters' : { 'Bucket' : { 'required' : true, 'location' : 'uri', }, 'Policy' : { 'required' : true, 'location' : 'body', }, }, }, 'GetBucketPolicy' : { 'httpMethod' : 'GET', 'urlPath' : 'policy', 'parameters' : { 'Bucket' : { 'required' : true, 'location' : 'uri', }, }, }, 'GetBucketPolicyOutput' : { 'data' : { 'type' : 'body', }, 'parameters' : { 'Policy' : { 'location' : 'body', }, }, }, 'DeleteBucketPolicy' : { 'httpMethod' : 'DELETE', 'urlPath' : 'policy', 'parameters' : { 'Bucket' : { 'required' : true, 'location' : 'uri', }, }, }, 'SetBucketLifecycleConfiguration' : { 'httpMethod' : 'PUT', 'urlPath' : 'lifecycle', 'data' : { 'xmlRoot' : 'LifecycleConfiguration', 'md5' : true }, 'parameters' : { 'Bucket' : { 'required' : true, 'location' : 'uri', }, 'Rules' : rules }, }, 'GetBucketLifecycleConfiguration' : { 'httpMethod' : 'GET', 'urlPath' : 'lifecycle', 'parameters' : { 'Bucket' : { 'required' : true, 'location' : 'uri', }, }, }, 'GetBucketLifecycleConfigurationOutput' : { 'data' : { 'type' : 'xml', 'xmlRoot' : 'LifecycleConfiguration', }, 'parameters' : { 'Rules' : rules }, }, 'DeleteBucketLifecycleConfiguration' : { 'httpMethod' : 'DELETE', 'urlPath' : 'lifecycle', 'parameters' : { 'Bucket' : { 'required' : true, 'location' : 'uri', }, }, }, 'SetBucketWebsiteConfiguration' : { 'httpMethod' : 'PUT', 'urlPath' : 'website', 'data' : { 'xmlRoot' : 'WebsiteConfiguration', }, 'parameters' : { 'Bucket' : { 'required' : true, 'location' : 'uri', }, 'RedirectAllRequestsTo' : redirectAllRequestsTo, 'IndexDocument' : indexDocument, 'ErrorDocument' : errorDocument, 'RoutingRules' : routingRules }, }, 'GetBucketWebsiteConfiguration' : { 'httpMethod' : 'GET', 'urlPath' : 'website', 'parameters' : { 'Bucket' : { 'required' : true, 'location' : 'uri', }, }, }, 'GetBucketWebsiteConfigurationOutput' : { 'data' : { 'type' : 'xml', 'xmlRoot' : 'WebsiteConfiguration', }, 'parameters' : { 'RedirectAllRequestsTo' : redirectAllRequestsTo, 'IndexDocument' : indexDocument, 'ErrorDocument' : errorDocument, 'RoutingRules' : routingRules, }, }, 'DeleteBucketWebsiteConfiguration' : { 'httpMethod' : 'DELETE', 'urlPath' : 'website', 'parameters' : { 'Bucket' : { 'required' : true, 'location' : 'uri', }, }, }, 'SetBucketVersioningConfiguration' : { 'httpMethod' : 'PUT', 'urlPath' : 'versioning', 'data' : { 'xmlRoot' : 'VersioningConfiguration', }, 'parameters' : { 'Bucket' : { 'required' : true, 'location' : 'uri', }, 'VersionStatus' : { 'required' : true, 'location' : 'xml', 'sentAs' : 'Status', }, }, }, 'GetBucketVersioningConfiguration' : { 'httpMethod' : 'GET', 'urlPath' : 'versioning', 'parameters' : { 'Bucket' : { 'required' : true, 'location' : 'uri', }, }, }, 'GetBucketVersioningConfigurationOutput' : { 'data' : { 'type' : 'xml', 'xmlRoot' : 'VersioningConfiguration', }, 'parameters' : { 'VersionStatus' : { 'location' : 'xml', 'sentAs' : 'Status', }, }, }, 'SetBucketCors' : { 'httpMethod' : 'PUT', 'urlPath' : 'cors', 'data' : { 'xmlRoot' : 'CORSConfiguration', 'md5' : true }, 'parameters' : { 'Bucket' : { 'required' : true, 'location' : 'uri', }, 'CorsRules' : corsRule }, }, 'GetBucketCors' : { 'httpMethod' : 'GET', 'urlPath' : 'cors', 'parameters' : { 'Bucket' : { 'required' : true, 'location' : 'uri', }, }, }, 'GetBucketCorsOutput' : { 'data' : { 'type' : 'xml', 'xmlRoot' : 'CORSConfiguration', }, 'parameters' : { 'CorsRules' : corsRule }, }, 'DeleteBucketCors' : { 'httpMethod' : 'DELETE', 'urlPath' : 'cors', 'parameters' : { 'Bucket' : { 'required' : true, 'location' : 'uri', }, }, }, 'SetBucketNotification' : { 'httpMethod' : 'PUT', 'urlPath' : 'notification', 'data' : { 'xmlRoot' : 'NotificationConfiguration', 'xmlAllowEmpty' : true }, 'parameters' : { 'Bucket' : { 'required' : true, 'location' : 'uri' }, 'TopicConfigurations' : topicConfiguration } }, 'GetBucketNotification' : { 'httpMethod' : 'GET', 'urlPath' : 'notification', 'parameters' : { 'Bucket' : { 'required' : true, 'location' : 'uri', }, } }, 'GetBucketNotificationOutput' : { 'data' : { 'type' : 'xml', 'xmlRoot' : 'NotificationConfiguration', }, 'parameters' : { 'TopicConfigurations' : topicConfiguration }, }, 'OptionsBucket' : { 'httpMethod' : 'OPTIONS', 'parameters' : { 'Bucket' : { 'required' : true, 'location' : 'uri', }, 'Origin' : { 'required' : true, 'location' : 'header', 'sentAs' : 'Origin', }, 'AccessControlRequestMethods' : { 'required' : true, 'type' : 'array', 'location' : 'header', 'sentAs' : 'Access-Control-Request-Method', 'items' : { 'type' : 'string', }, }, 'AccessControlRequestHeaders' : { 'type' : 'array', 'location' : 'header', 'sentAs' : 'Access-Control-Request-Headers', 'items' : { 'type' : 'string', }, }, }, }, 'OptionsBucketOutput' : { 'parameters' : { 'AllowOrigin' : { 'location' : 'header', 'sentAs' : 'access-control-allow-origin', }, 'AllowHeader' : { 'location' : 'header', 'sentAs' : 'access-control-allow-headers', }, 'AllowMethod' : { 'location' : 'header', 'sentAs' : 'access-control-allow-methods', }, 'ExposeHeader' : { 'location' : 'header', 'sentAs' : 'access-control-expose-headers', }, 'MaxAgeSeconds' : { 'location' : 'header', 'sentAs' : 'access-control-max-age', }, }, }, 'SetBucketTagging' : { 'httpMethod' : 'PUT', 'urlPath' : 'tagging', 'data' : { 'xmlRoot' : 'Tagging', 'md5' : true }, 'parameters' : { 'Bucket' : { 'required' : true, 'location' : 'uri' }, 'Tags' : tagSet } }, 'GetBucketTagging' : { 'httpMethod' : 'GET', 'urlPath' : 'tagging', 'parameters' : { 'Bucket' : { 'required' : true, 'location' : 'uri', }, } }, 'GetBucketTaggingOutput' : { 'data' : { 'type' : 'xml', 'xmlRoot' : 'Tagging', }, 'parameters' : { 'Tags' : tagSet } }, 'DeleteBucketTagging' : { 'httpMethod' : 'DELETE', 'urlPath' : 'tagging', 'parameters' : { 'Bucket' : { 'required' : true, 'location' : 'uri', }, } }, 'SetBucketStoragePolicy' : { 'httpMethod' : 'PUT', 'urlPath' : 'storageClass', 'parameters' : { 'Bucket' : { 'required' : true, 'location' : 'uri', }, 'StorageClass' :{ 'required' : true, 'location' : 'xml', 'type' : 'adapter', 'sentAs' : 'StorageClass' } } }, 'GetBucketStoragePolicy' :{ 'httpMethod' : 'GET', 'urlPath' : 'storageClass', 'parameters' : { 'Bucket' : { 'required' : true, 'location' : 'uri', }, } }, 'GetBucketStoragePolicyOutput' :{ 'data' : { 'type' : 'xml', }, 'parameters' : { 'StorageClass' : { 'location' : 'xml', 'type' : 'string', 'sentAs' : 'StorageClass' } } }, 'SetBucketReplication' : { 'httpMethod' : 'PUT', 'urlPath' : 'replication', 'data' : { 'xmlRoot' : 'ReplicationConfiguration', 'md5' : true }, 'parameters' : { 'Bucket' : { 'required' : true, 'location' : 'uri' }, 'Agency' :{ 'location' : 'xml', 'sentAs' : 'Agency' }, 'Rules' : replicationRules } }, 'GetBucketReplication' : { 'httpMethod' : 'GET', 'urlPath' : 'replication', 'parameters' : { 'Bucket' : { 'required' : true, 'location' : 'uri', }, } }, 'GetBucketReplicationOutput' : { 'data' : { 'type' : 'xml', 'xmlRoot' : 'ReplicationConfiguration', }, 'parameters' : { 'Agency' :{ 'location' : 'xml', 'sentAs' : 'Agency' }, 'Rules' : replicationRules } }, 'DeleteBucketReplication' : { 'httpMethod' : 'DELETE', 'urlPath' : 'replication', 'parameters' : { 'Bucket' : { 'required' : true, 'location' : 'uri', }, } }, 'PutObject' : { 'httpMethod' : 'PUT', 'parameters' : { 'Bucket' : { 'required' : true, 'location' : 'uri', }, 'Key' : { 'required' : true, 'location' : 'uri', }, 'ContentMD5' : { 'location' : 'header', 'sentAs' : 'Content-MD5', }, 'ContentType' : { 'location' : 'header', 'sentAs' : 'Content-Type' }, 'Offset' : { 'type' : 'plain' }, 'ContentLength' :{ 'location' : 'header', 'sentAs' : 'Content-Length', 'type' : 'plain' }, 'ACL' : { 'location' : 'header', 'sentAs' : 'acl', 'withPrefix' : true }, 'GrantRead' : { 'location' : 'header', 'sentAs' : 'grant-read', 'withPrefix' : true, }, 'GrantReadAcp' : { 'location' : 'header', 'sentAs' : 'grant-read-acp', 'withPrefix' : true, }, 'GrantWriteAcp' : { 'location' : 'header', 'sentAs' : 'grant-write-acp', 'withPrefix' : true, }, 'GrantFullControl' : { 'location' : 'header', 'sentAs' : 'grant-full-control', 'withPrefix' : true, }, 'StorageClass' : { 'location' : 'header', 'sentAs' : 'storage-class', 'withPrefix' : true, }, 'Metadata' : { 'type' : 'object', 'location' : 'header', 'sentAs' : 'meta-', 'withPrefix' : true, }, 'WebsiteRedirectLocation' : { 'location' : 'header', 'sentAs' : 'website-redirect-location', 'withPrefix' : true, }, 'Expires' : { 'location' : 'header', 'sentAs' : 'expires', 'type' : 'number', 'withPrefix' : true, }, 'SuccessActionRedirect':{ 'location' : 'header', 'sentAs' : 'success-action-redirect' }, 'SseKms' :{ 'location' : 'header', 'sentAs' : 'server-side-encryption', 'withPrefix' : true, 'type' : 'adapter' }, 'SseKmsKey' :{ 'location' : 'header', 'sentAs' : 'server-side-encryption-kms-key-id', 'withPrefix' : true, }, 'SseC' :{ 'location' : 'header', 'sentAs' : 'server-side-encryption-customer-algorithm', 'withPrefix' : true, }, 'SseCKey' :{ 'location' : 'header', 'sentAs' : 'server-side-encryption-customer-key', 'type' : 'password', 'withPrefix' : true, }, 'Body' : { 'location' : 'body', }, 'SourceFile' : { 'type' : 'srcFile', } }, }, 'PutObjectOutput' : { 'parameters' : { 'ETag' : { 'location' : 'header', 'sentAs' : 'etag', }, 'VersionId' : { 'location' : 'header', 'sentAs' : 'version-id', 'withPrefix' : true, }, 'StorageClass' :{ 'location' : 'header', 'sentAs' : 'storage-class', 'withPrefix' : true, }, 'SseKms' :{ 'location' : 'header', 'sentAs' : 'server-side-encryption', 'withPrefix' : true }, 'SseKmsKey' :{ 'location' : 'header', 'sentAs' : 'server-side-encryption-kms-key-id', 'withPrefix' : true, }, 'SseC' :{ 'location' : 'header', 'sentAs' : 'server-side-encryption-customer-algorithm', 'withPrefix' : true, }, 'SseCKeyMd5' :{ 'location' : 'header', 'sentAs' : 'server-side-encryption-customer-key-MD5', 'withPrefix' : true, } }, }, 'AppendObject' : { 'httpMethod' : 'POST', 'urlPath' : 'append', 'parameters' : { 'Bucket' : { 'required' : true, 'location' : 'uri', }, 'Key' : { 'required' : true, 'location' : 'uri', }, 'Position' : { 'location' : 'urlPath', 'sentAs' : 'position', 'type' : 'number' }, 'ContentMD5' : { 'location' : 'header', 'sentAs' : 'Content-MD5', }, 'ContentType' : { 'location' : 'header', 'sentAs' : 'Content-Type' }, 'Offset' : { 'type' : 'plain' }, 'ContentLength' :{ 'location' : 'header', 'sentAs' : 'Content-Length', 'type' : 'plain' }, 'ACL' : { 'location' : 'header', 'sentAs' : 'acl', 'withPrefix' : true }, 'GrantRead' : { 'location' : 'header', 'sentAs' : 'grant-read', 'withPrefix' : true, }, 'GrantReadAcp' : { 'location' : 'header', 'sentAs' : 'grant-read-acp', 'withPrefix' : true, }, 'GrantWriteAcp' : { 'location' : 'header', 'sentAs' : 'grant-write-acp', 'withPrefix' : true, }, 'GrantFullControl' : { 'location' : 'header', 'sentAs' : 'grant-full-control', 'withPrefix' : true, }, 'StorageClass' : { 'location' : 'header', 'sentAs' : 'storage-class', 'withPrefix' : true, }, 'Metadata' : { 'type' : 'object', 'location' : 'header', 'sentAs' : 'meta-', 'withPrefix' : true, }, 'WebsiteRedirectLocation' : { 'location' : 'header', 'sentAs' : 'website-redirect-location', 'withPrefix' : true, }, 'Expires' : { 'location' : 'header', 'sentAs' : 'expires', 'type' : 'number', 'withPrefix' : true, }, 'SseKms' :{ 'location' : 'header', 'sentAs' : 'server-side-encryption', 'withPrefix' : true, 'type' : 'adapter' }, 'SseKmsKey' :{ 'location' : 'header', 'sentAs' : 'server-side-encryption-kms-key-id', 'withPrefix' : true, }, 'SseC' :{ 'location' : 'header', 'sentAs' : 'server-side-encryption-customer-algorithm', 'withPrefix' : true, }, 'SseCKey' :{ 'location' : 'header', 'sentAs' : 'server-side-encryption-customer-key', 'type' : 'password', 'withPrefix' : true, }, 'Body' : { 'location' : 'body', }, 'SourceFile' : { 'type' : 'srcFile', } }, }, 'AppendObjectOutput' : { 'parameters' : { 'ETag' : { 'location' : 'header', 'sentAs' : 'etag', }, 'NextPosition' : { 'location' : 'header', 'sentAs' : 'next-append-position', 'withPrefix' : true, }, 'StorageClass' :{ 'location' : 'header', 'sentAs' : 'storage-class', 'withPrefix' : true, }, 'SseKms' :{ 'location' : 'header', 'sentAs' : 'server-side-encryption', 'withPrefix' : true }, 'SseKmsKey' :{ 'location' : 'header', 'sentAs' : 'server-side-encryption-kms-key-id', 'withPrefix' : true, }, 'SseC' :{ 'location' : 'header', 'sentAs' : 'server-side-encryption-customer-algorithm', 'withPrefix' : true, }, 'SseCKeyMd5' :{ 'location' : 'header', 'sentAs' : 'server-side-encryption-customer-key-MD5', 'withPrefix' : true, } }, }, 'GetObject' : { 'httpMethod' : 'GET', 'parameters' : { 'Bucket' : { 'required' : true, 'location' : 'uri', }, 'Key' : { 'required' : true, 'location' : 'uri', }, 'ResponseCacheControl' : { 'location' : 'urlPath', 'sentAs' : 'response-cache-control', }, 'ResponseContentDisposition' : { 'location' : 'urlPath', 'sentAs' : 'response-content-disposition', }, 'ResponseContentEncoding' : { 'location' : 'urlPath', 'sentAs' : 'response-content-encoding', }, 'ResponseContentLanguage' : { 'location' : 'urlPath', 'sentAs' : 'response-content-language', }, 'ResponseContentType' : { 'location' : 'urlPath', 'sentAs' : 'response-content-type', }, 'ResponseExpires' : { 'location' : 'urlPath', 'sentAs' : 'response-expires', }, 'VersionId' : { 'location' : 'urlPath', 'sentAs' : 'versionId', }, 'ImageProcess' : { 'location' : 'urlPath', 'sentAs' : 'x-image-process', }, 'IfMatch' : { 'location' : 'header', 'sentAs' : 'If-Match', }, 'IfModifiedSince' : { 'location' : 'header', 'sentAs' : 'If-Modified-Since', }, 'IfNoneMatch' : { 'location' : 'header', 'sentAs' : 'If-None-Match', }, 'IfUnmodifiedSince' : { 'location' : 'header', 'sentAs' : 'If-Unmodified-Since', }, 'Range' : { 'location' : 'header', 'sentAs' : 'Range', }, 'Origin' :{ 'location' : 'header', 'sentAs' : 'Origin' }, 'RequestHeader' : { 'location' : 'header', 'sentAs' : 'Access-Control-Request-Headers' }, 'SaveAsFile' : { 'type' : 'dstFile', }, 'SaveAsStream' : { 'type' : 'plain' }, 'SseC' :{ 'location' : 'header', 'sentAs' : 'server-side-encryption-customer-algorithm', 'withPrefix' : true }, 'SseCKey' :{ 'location' : 'header', 'sentAs' : 'server-side-encryption-customer-key', 'type' : 'password', 'withPrefix' : true } } }, 'GetObjectOutput' : { 'data' : { 'type' : 'body' }, 'parameters' : { 'Content' : { 'location' : 'body', }, 'Expiration' : { 'location' : 'header', 'sentAs' : 'expiration', 'withPrefix' : true }, 'ETag' : { 'location' : 'header', 'sentAs' : 'etag', }, 'CacheControl' : { 'location' : 'header', 'sentAs' : 'Cache-Control', }, 'ContentDisposition' : { 'location' : 'header', 'sentAs' : 'Content-Disposition', }, 'ContentEncoding' : { 'location' : 'header', 'sentAs' : 'Content-Encoding', }, 'ContentLanguage' : { 'location' : 'header', 'sentAs' : 'Content-Language', }, 'ContentType' : { 'location' : 'header', 'sentAs' : 'Content-Type', }, 'Expires' : { 'location' : 'header', 'sentAs' : 'Expires', }, 'VersionId' : { 'location' : 'header', 'sentAs' : 'version-id', 'withPrefix' : true }, 'ContentLength' : { 'location' : 'header', 'sentAs' : 'Content-Length', }, 'DeleteMarker' : { 'location' : 'header', 'sentAs' : 'delete-marker', 'withPrefix' : true }, 'LastModified' : { 'type' : 'date', 'location' : 'header', 'sentAs' : 'Last-Modified', }, 'WebsiteRedirectLocation' : { 'location' : 'header', 'sentAs' : 'website-redirect-location', 'withPrefix' : true }, 'StorageClass' : { 'location' : 'header', 'sentAs' : 'storage-class', 'withPrefix' : true }, 'Restore' : { 'location' : 'header', 'sentAs' : 'restore', 'withPrefix' : true }, 'AllowOrigin' : { 'location' : 'header', 'sentAs' : 'access-control-allow-origin' }, 'MaxAgeSeconds' : { 'location' : 'header', 'sentAs' : 'access-control-max-age' }, 'ExposeHeader' : { 'location' : 'header', 'sentAs' : 'access-control-expose-headers' }, 'AllowMethod' : { 'location' : 'header', 'sentAs' : 'access-control-allow-methods' }, 'AllowHeader' : { 'location' : 'header', 'sentAs' : 'access-control-allow-headers' }, 'SseKms' :{ 'location' : 'header', 'sentAs' : 'server-side-encryption', 'withPrefix' : true }, 'SseKmsKey' :{ 'location' : 'header', 'sentAs' : 'server-side-encryption-kms-key-id', 'withPrefix' : true }, 'SseC' :{ 'location' : 'header', 'sentAs' : 'server-side-encryption-customer-algorithm', 'withPrefix' : true }, 'SseCKeyMd5' :{ 'location' : 'header', 'sentAs' : 'server-side-encryption-customer-key-MD5', 'withPrefix' : true }, 'Metadata' : { 'location' : 'header', 'type' : 'object', 'sentAs' : 'meta-', 'withPrefix' : true } }, }, 'CopyObject' : { 'httpMethod' : 'PUT', 'parameters' : { 'Bucket' : { 'required' : true, 'location' : 'uri', }, 'Key' : { 'required' : true, 'location' : 'uri', }, 'ACL' : { 'location' : 'header', 'sentAs' : 'acl', 'withPrefix' : true }, 'GrantRead' : { 'location' : 'header', 'sentAs' : 'grant-read', 'withPrefix' : true, }, 'GrantReadAcp' : { 'location' : 'header', 'sentAs' : 'grant-read-acp', 'withPrefix' : true, }, 'GrantWriteAcp' : { 'location' : 'header', 'sentAs' : 'grant-write-acp', 'withPrefix' : true, }, 'GrantFullControl' : { 'location' : 'header', 'sentAs' : 'grant-full-control', 'withPrefix' : true, }, 'StorageClass' : { 'location' : 'header', 'sentAs' : 'storage-class', 'withPrefix' : true }, 'CopySource' : { 'required' : true, 'location' : 'header', 'sentAs' : 'copy-source', 'withPrefix' : true, 'skipEncoding' : true }, 'CopySourceIfMatch' : { 'location' : 'header', 'sentAs' : 'copy-source-if-match', 'withPrefix' : true }, 'CopySourceIfModifiedSince' : { 'location' : 'header', 'sentAs' : 'copy-source-if-modified-since', 'withPrefix' : true }, 'CopySourceIfNoneMatch' : { 'location' : 'header', 'sentAs' : 'copy-source-if-none-match', 'withPrefix' : true }, 'CopySourceIfUnmodifiedSince' : { 'location' : 'header', 'sentAs' : 'copy-source-if-unmodified-since', 'withPrefix' : true }, 'ContentType' : { 'location' : 'header', 'sentAs' : 'Content-Type' }, 'ContentEncoding' : { 'location' : 'header', 'sentAs' : 'content-encoding' }, 'ContentLanguage' : { 'location' : 'header', 'sentAs' : 'content-language' }, 'ContentDisposition' : { 'location' : 'header', 'sentAs' : 'content-disposition' }, 'CacheControl' : { 'location' : 'header', 'sentAs' : 'cache-control' }, 'Expires' : { 'location' : 'header', 'sentAs' : 'expires' }, 'Metadata' : { 'type' : 'object', 'location' : 'header', 'sentAs' : 'meta-', 'withPrefix' : true }, 'MetadataDirective' : { 'location' : 'header', 'sentAs' : 'metadata-directive', 'withPrefix' : true }, 'WebsiteRedirectLocation' : { 'location' : 'header', 'sentAs' : 'website-redirect-location', 'withPrefix' : true }, 'SuccessActionRedirect':{ 'location' : 'header', 'sentAs' : 'success-action-redirect' }, 'SseKms' :{ 'location' : 'header', 'sentAs' : 'server-side-encryption', 'withPrefix' : true, 'type' : 'adapter' }, 'SseKmsKey' :{ 'location' : 'header', 'sentAs' : 'server-side-encryption-kms-key-id', 'withPrefix' : true }, 'SseC' :{ 'location' : 'header', 'sentAs' : 'server-side-encryption-customer-algorithm', 'withPrefix' : true }, 'SseCKey' :{ 'location' : 'header', 'sentAs' : 'server-side-encryption-customer-key', 'type' : 'password', 'withPrefix' : true }, 'CopySourceSseC' :{ 'location' : 'header', 'sentAs' : 'copy-source-server-side-encryption-customer-algorithm', 'withPrefix' : true }, 'CopySourceSseCKey' :{ 'location' : 'header', 'sentAs' : 'copy-source-server-side-encryption-customer-key', 'type' : 'password', 'withPrefix' : true }, }, }, 'CopyObjectOutput' : { 'data' : { 'type' : 'xml', 'xmlRoot' : 'CopyObjectResult', }, 'parameters' : { 'VersionId' : { 'location' : 'header', 'sentAs' : 'version-id', 'withPrefix' : true }, 'CopySourceVersionId' : { 'location' : 'header', 'sentAs' : 'copy-source-version-id', 'withPrefix' : true }, 'ETag' : { 'location' : 'xml', 'sentAs' : 'ETag', }, 'LastModified' : { 'type' : 'date', 'location' : 'xml', 'sentAs' : 'LastModified', }, 'SseKms' :{ 'location' : 'header', 'sentAs' : 'server-side-encryption', 'withPrefix' : true }, 'SseKmsKey' :{ 'location' : 'header', 'sentAs' : 'server-side-encryption-kms-key-id', 'withPrefix' : true }, 'SseC' :{ 'location' : 'header', 'sentAs' : 'server-side-encryption-customer-algorithm', 'withPrefix' : true }, 'SseCKeyMd5' :{ 'location' : 'header', 'sentAs' : 'server-side-encryption-customer-key-MD5', 'withPrefix' : true } }, }, 'RestoreObject' : { 'httpMethod' : 'POST', 'urlPath' : 'restore', 'data' : { 'xmlRoot' : 'RestoreRequest', 'md5' : true }, 'parameters' : { 'Bucket' : { 'required' : true, 'location' : 'uri', }, 'Key' : { 'required' : true, 'location' : 'uri', }, 'VersionId' : { 'location' : 'urlPath', 'sentAs' : 'versionId', }, 'Days' : { 'location' : 'xml', 'sentAs' : 'Days' }, 'Tier' : { 'wrapper' : 'GlacierJobParameters', 'location' : 'xml', 'sentAs' : 'Tier', } } }, 'GetObjectMetadata' : { 'httpMethod' : 'HEAD', 'parameters' : { 'Bucket' : { 'required' : true, 'location' : 'uri', }, 'Key' : { 'required' : true, 'location' : 'uri', }, 'VersionId' : { 'location' : 'urlPath', 'sentAs' : 'versionId', }, 'Origin' : { 'location' : 'header', 'sentAs' : 'Origin' }, 'RequestHeader' : { 'location' : 'header', 'sentAs' : 'Access-Control-Request-Headers' }, 'SseC' :{ 'location' : 'header', 'sentAs' : 'server-side-encryption-customer-algorithm', 'withPrefix' : true }, 'SseCKey' :{ 'location' : 'header', 'sentAs' : 'server-side-encryption-customer-key', 'type' : 'password', 'withPrefix' : true }, }, }, 'GetObjectMetadataOutput' : { 'parameters' : { 'Expiration' : { 'location' : 'header', 'sentAs' : 'expiration', 'withPrefix' : true }, 'LastModified' : { 'type' : 'date', 'location' : 'header', 'sentAs' : 'Last-Modified', }, 'ContentLength' : { 'location' : 'header', 'sentAs' : 'Content-Length', }, 'ContentType' :{ 'location' : 'header', 'sentAs' : 'Content-Type' }, 'ETag' : { 'location' : 'header', 'sentAs' : 'etag', }, 'VersionId' : { 'location' : 'header', 'sentAs' : 'version-id', 'withPrefix' : true }, 'WebsiteRedirectLocation' : { 'location' : 'header', 'sentAs' : 'website-redirect-location', 'withPrefix' : true }, 'StorageClass' : { 'location' : 'header', 'sentAs' : 'storage-class', 'withPrefix' : true }, 'Restore' : { 'location' : 'header', 'sentAs' : 'restore', 'withPrefix' : true }, 'ObjectType' :{ 'location' : 'header', 'sentAs' : 'object-type', 'withPrefix' : true }, 'NextPosition' :{ 'location' : 'header', 'sentAs' : 'next-append-position', 'withPrefix' : true }, 'AllowOrigin' : { 'location' : 'header', 'sentAs' : 'access-control-allow-origin' }, 'MaxAgeSeconds' : { 'location' : 'header', 'sentAs' : 'access-control-max-age' }, 'ExposeHeader' : { 'location' : 'header', 'sentAs' : 'access-control-expose-headers' }, 'AllowMethod' : { 'location' : 'header', 'sentAs' : 'access-control-allow-methods' }, 'AllowHeader' : { 'location' : 'header', 'sentAs' : 'access-control-allow-headers' }, 'SseKms' :{ 'location' : 'header', 'sentAs' : 'server-side-encryption', 'withPrefix' : true }, 'SseKmsKey' :{ 'location' : 'header', 'sentAs' : 'server-side-encryption-kms-key-id', 'withPrefix' : true }, 'SseC' :{ 'location' : 'header', 'sentAs' : 'server-side-encryption-customer-algorithm', 'withPrefix' : true }, 'SseCKeyMd5' :{ 'location' : 'header', 'sentAs' : 'server-side-encryption-customer-key-MD5', 'withPrefix' : true }, 'Metadata' : { 'location' : 'header', 'type' : 'object', 'sentAs' : 'meta-', 'withPrefix' : true } }, }, 'SetObjectAcl' : { 'httpMethod' : 'PUT', 'urlPath' : 'acl', 'data' : { 'xmlRoot' : 'AccessControlPolicy', }, 'parameters' : { 'Bucket' : { 'required' : true, 'location' : 'uri', }, 'Key' : { 'required' : true, 'location' : 'uri', }, 'VersionId' : { 'location' : 'urlPath', 'sentAs' : 'versionId', }, 'ACL' : { 'location' : 'header', 'sentAs' : 'acl', 'withPrefix' : true, 'type' : 'adapter' }, 'Delivered' :{ 'location' : 'xml', 'sentAs' : 'Delivered' }, 'Owner' : owner, 'Grants' : grants }, }, 'SetObjectAclOutput' : { 'parameters' : { 'VersionId' : { 'location' : 'header', 'sentAs' : 'version-id', 'withPrefix' : true }, }, }, 'GetObjectAcl' : { 'httpMethod' : 'GET', 'urlPath' : 'acl', 'parameters' : { 'Bucket' : { 'required' : true, 'location' : 'uri', }, 'Key' : { 'required' : true, 'location' : 'uri', }, 'VersionId' : { 'location' : 'urlPath', 'sentAs' : 'versionId', }, }, }, 'GetObjectAclOutput' : { 'data' : { 'type' : 'xml', 'xmlRoot' : 'AccessControlPolicy', }, 'parameters' : { 'VersionId' : { 'location' : 'header', 'sentAs' : 'version-id', 'withPrefix' : true }, 'Delivered' :{ 'location' : 'xml', 'sentAs' : 'Delivered' }, 'Owner' : owner, 'Grants' : grants }, }, 'DeleteObject' : { 'httpMethod' : 'DELETE', 'parameters' : { 'Bucket' : { 'required' : true, 'location' : 'uri', }, 'Key' : { 'required' : true, 'loca