diff --git a/clients/client-s3/src/commands/CopyObjectCommand.ts b/clients/client-s3/src/commands/CopyObjectCommand.ts index 789b0443eeb0..0e5009779a10 100644 --- a/clients/client-s3/src/commands/CopyObjectCommand.ts +++ b/clients/client-s3/src/commands/CopyObjectCommand.ts @@ -318,6 +318,8 @@ export class CopyObjectCommand extends $Command ...commonParams, DisableS3ExpressSessionAuth: { type: "staticContextParams", value: true }, Bucket: { type: "contextParams", name: "Bucket" }, + Key: { type: "contextParams", name: "Key" }, + CopySource: { type: "contextParams", name: "CopySource" }, }) .m(function (this: any, Command: any, cs: any, config: S3ClientResolvedConfig, o: any) { return [ diff --git a/clients/client-s3/src/endpoint/EndpointParameters.ts b/clients/client-s3/src/endpoint/EndpointParameters.ts index 1e29001ded25..b48276cafc16 100644 --- a/clients/client-s3/src/endpoint/EndpointParameters.ts +++ b/clients/client-s3/src/endpoint/EndpointParameters.ts @@ -61,6 +61,7 @@ export interface EndpointParameters extends __EndpointParameters { UseObjectLambdaEndpoint?: boolean; Key?: string; Prefix?: string; + CopySource?: string; DisableAccessPoints?: boolean; DisableMultiRegionAccessPoints?: boolean; UseArnRegion?: boolean; diff --git a/clients/client-s3/src/endpoint/ruleset.ts b/clients/client-s3/src/endpoint/ruleset.ts index 6a0eef405250..c2780dcb92d6 100644 --- a/clients/client-s3/src/endpoint/ruleset.ts +++ b/clients/client-s3/src/endpoint/ruleset.ts @@ -182,5 +182,5 @@ ca=[{[ch]:x,[ci]:[{[ch]:h,[ci]:[aQ,"region"]},true]}], cb=[{[ch]:x,[ci]:[aZ,false]}], cc=[{[ch]:x,[ci]:[aT,false]}], cd=[{[ch]:x,[ci]:[{[cj]:"Region"},true]}]; -const _data={version:"1.0",parameters:{Bucket:S,Region:S,UseFIPS:T,UseDualStack:T,Endpoint:S,ForcePathStyle:T,Accelerate:T,UseGlobalEndpoint:T,UseObjectLambdaEndpoint:U,Key:S,Prefix:S,DisableAccessPoints:U,DisableMultiRegionAccessPoints:T,UseArnRegion:U,UseS3ExpressControlEndpoint:U,DisableS3ExpressSessionAuth:U},rules:[{[cg]:[{[ch]:c,[ci]:bw}],rules:[{[cg]:[V,W],error:"Accelerate cannot be used with FIPS",[cf]:e},{[cg]:[X,Y],error:"Cannot set dual-stack in combination with a custom endpoint.",[cf]:e},{[cg]:[Y,W],error:"A custom endpoint cannot be combined with FIPS",[cf]:e},{[cg]:[Y,V],error:"A custom endpoint cannot be combined with S3 Accelerate",[cf]:e},{[cg]:[W,Z,aa],error:"Partition does not support FIPS",[cf]:e},{[cg]:[ab,{[ch]:j,[ci]:[ac,0,6,b],[ck]:k},{[ch]:g,[ci]:[{[cj]:k},"--x-s3"]}],rules:[{[cg]:bz,error:"S3Express does not support Dual-stack.",[cf]:e},{[cg]:bA,error:"S3Express does not support S3 Accelerate.",[cf]:e},{[cg]:bB,rules:[{[cg]:bC,rules:[{[cg]:bD,rules:[{[cg]:bE,rules:[{endpoint:{[cl]:m,[cm]:ah,[cs]:ai},[cf]:n}],[cf]:o}],[cf]:o},{[cg]:bF,rules:[{endpoint:{[cl]:q,[cm]:ah,[cs]:ai},[cf]:n}],[cf]:o},ak],[cf]:o},{[cg]:bD,rules:[{[cg]:bE,rules:[{endpoint:{[cl]:m,[cm]:al,[cs]:ai},[cf]:n}],[cf]:o}],[cf]:o},{[cg]:bF,rules:[{endpoint:{[cl]:q,[cm]:al,[cs]:ai},[cf]:n}],[cf]:o},ak],[cf]:o},{[cg]:[am,an],rules:[{[cg]:[ag,ao],rules:[{[cg]:bG,endpoint:{[cl]:"https://s3express-control-fips.{Region}.amazonaws.com/{uri_encoded_bucket}",[cm]:ah,[cs]:ai},[cf]:n},{endpoint:{[cl]:"https://s3express-control.{Region}.amazonaws.com/{uri_encoded_bucket}",[cm]:ah,[cs]:ai},[cf]:n}],[cf]:o}],[cf]:o},{[cg]:bF,rules:[{[cg]:bC,rules:[{[cg]:bH,rules:bI,[cf]:o},{[cg]:bJ,rules:bI,[cf]:o},ap],[cf]:o},{[cg]:bH,rules:bK,[cf]:o},{[cg]:bJ,rules:bK,[cf]:o},ap],[cf]:o},ak],[cf]:o},{[cg]:[aq,am,an],rules:[{[cg]:bB,endpoint:{[cl]:s,[cm]:ah,[cs]:ai},[cf]:n},{[cg]:bG,endpoint:{[cl]:"https://s3express-control-fips.{Region}.amazonaws.com",[cm]:ah,[cs]:ai},[cf]:n},{endpoint:{[cl]:"https://s3express-control.{Region}.amazonaws.com",[cm]:ah,[cs]:ai},[cf]:n}],[cf]:o},{[cg]:[ab,{[ch]:j,[ci]:[ac,49,50,b],[ck]:t},{[ch]:j,[ci]:[ac,8,12,b],[ck]:u},{[ch]:j,[ci]:[ac,0,7,b],[ck]:v},{[ch]:j,[ci]:[ac,32,49,b],[ck]:w},{[ch]:f,[ci]:bw,[ck]:"regionPartition"},{[ch]:g,[ci]:[{[cj]:v},"--op-s3"]}],rules:[{[cg]:bM,rules:[{[cg]:[{[ch]:g,[ci]:[ar,"e"]}],rules:[{[cg]:bN,rules:[as,{[cg]:bB,endpoint:{[cl]:"https://{Bucket}.ec2.{url#authority}",[cm]:at,[cs]:ai},[cf]:n}],[cf]:o},{endpoint:{[cl]:"https://{Bucket}.ec2.s3-outposts.{Region}.{regionPartition#dnsSuffix}",[cm]:at,[cs]:ai},[cf]:n}],[cf]:o},{[cg]:[{[ch]:g,[ci]:[ar,"o"]}],rules:[{[cg]:bN,rules:[as,{[cg]:bB,endpoint:{[cl]:"https://{Bucket}.op-{outpostId}.{url#authority}",[cm]:at,[cs]:ai},[cf]:n}],[cf]:o},{endpoint:{[cl]:"https://{Bucket}.op-{outpostId}.s3-outposts.{Region}.{regionPartition#dnsSuffix}",[cm]:at,[cs]:ai},[cf]:n}],[cf]:o},{error:"Unrecognized hardware type: \"Expected hardware type o or e but got {hardwareType}\"",[cf]:e}],[cf]:o},{error:"Invalid ARN: The outpost Id must only contain a-z, A-Z, 0-9 and `-`.",[cf]:e}],[cf]:o},{[cg]:bL,rules:[{[cg]:[Y,{[ch]:r,[ci]:[{[ch]:c,[ci]:[{[ch]:l,[ci]:bx}]}]}],error:"Custom endpoint `{Endpoint}` was not a valid URI",[cf]:e},{[cg]:[au,aj],rules:[{[cg]:bP,rules:[{[cg]:bQ,rules:[{[cg]:[V,aa],error:"S3 Accelerate cannot be used in this region",[cf]:e},{[cg]:[X,W,aw,ao,ax],endpoint:{[cl]:"https://{Bucket}.s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}",[cm]:ay,[cs]:ai},[cf]:n},{[cg]:[X,W,aw,ao,az,aA],rules:[{endpoint:aB,[cf]:n}],[cf]:o},{[cg]:[X,W,aw,ao,az,aD],endpoint:aB,[cf]:n},{[cg]:[aE,W,aw,ao,ax],endpoint:{[cl]:"https://{Bucket}.s3-fips.us-east-1.{partitionResult#dnsSuffix}",[cm]:ay,[cs]:ai},[cf]:n},{[cg]:[aE,W,aw,ao,az,aA],rules:[{endpoint:aF,[cf]:n}],[cf]:o},{[cg]:[aE,W,aw,ao,az,aD],endpoint:aF,[cf]:n},{[cg]:[X,aG,V,ao,ax],endpoint:{[cl]:"https://{Bucket}.s3-accelerate.dualstack.us-east-1.{partitionResult#dnsSuffix}",[cm]:ay,[cs]:ai},[cf]:n},{[cg]:[X,aG,V,ao,az,aA],rules:[{endpoint:aH,[cf]:n}],[cf]:o},{[cg]:[X,aG,V,ao,az,aD],endpoint:aH,[cf]:n},{[cg]:[X,aG,aw,ao,ax],endpoint:{[cl]:"https://{Bucket}.s3.dualstack.us-east-1.{partitionResult#dnsSuffix}",[cm]:ay,[cs]:ai},[cf]:n},{[cg]:[X,aG,aw,ao,az,aA],rules:[{endpoint:aI,[cf]:n}],[cf]:o},{[cg]:[X,aG,aw,ao,az,aD],endpoint:aI,[cf]:n},{[cg]:[aE,aG,aw,Y,ad,ae,ax],endpoint:{[cl]:B,[cm]:ay,[cs]:ai},[cf]:n},{[cg]:[aE,aG,aw,Y,ad,aJ,ax],endpoint:{[cl]:q,[cm]:ay,[cs]:ai},[cf]:n},{[cg]:[aE,aG,aw,Y,ad,ae,az,aA],rules:[{[cg]:bR,endpoint:aK,[cf]:n},{endpoint:aK,[cf]:n}],[cf]:o},{[cg]:[aE,aG,aw,Y,ad,aJ,az,aA],rules:[{[cg]:bR,endpoint:aL,[cf]:n},aM],[cf]:o},{[cg]:[aE,aG,aw,Y,ad,ae,az,aD],endpoint:aK,[cf]:n},{[cg]:[aE,aG,aw,Y,ad,aJ,az,aD],endpoint:aL,[cf]:n},{[cg]:[aE,aG,V,ao,ax],endpoint:{[cl]:C,[cm]:ay,[cs]:ai},[cf]:n},{[cg]:[aE,aG,V,ao,az,aA],rules:[{[cg]:bR,endpoint:aN,[cf]:n},{endpoint:aN,[cf]:n}],[cf]:o},{[cg]:[aE,aG,V,ao,az,aD],endpoint:aN,[cf]:n},{[cg]:[aE,aG,aw,ao,ax],endpoint:{[cl]:D,[cm]:ay,[cs]:ai},[cf]:n},{[cg]:[aE,aG,aw,ao,az,aA],rules:[{[cg]:bR,endpoint:{[cl]:D,[cm]:aC,[cs]:ai},[cf]:n},{endpoint:aO,[cf]:n}],[cf]:o},{[cg]:[aE,aG,aw,ao,az,aD],endpoint:aO,[cf]:n}],[cf]:o},aP],[cf]:o}],[cf]:o},{[cg]:[Y,ad,{[ch]:g,[ci]:[{[ch]:h,[ci]:[af,"scheme"]},"http"]},{[ch]:p,[ci]:[ac,b]},au,aG,aE,aw],rules:[{[cg]:bP,rules:[{[cg]:bQ,rules:[aM],[cf]:o},aP],[cf]:o}],[cf]:o},{[cg]:[au,{[ch]:E,[ci]:by,[ck]:F}],rules:[{[cg]:[{[ch]:h,[ci]:[aQ,"resourceId[0]"],[ck]:G},{[ch]:r,[ci]:[{[ch]:g,[ci]:[aR,H]}]}],rules:[{[cg]:[{[ch]:g,[ci]:[aS,I]}],rules:[{[cg]:bS,rules:[{[cg]:bT,rules:[aU,aV,{[cg]:bV,rules:[aW,{[cg]:bW,rules:[aX,{[cg]:bY,rules:[{[cg]:bP,rules:[{[cg]:bZ,rules:[{[cg]:ca,rules:[{[cg]:[{[ch]:g,[ci]:[aZ,H]}],error:"Invalid ARN: Missing account id",[cf]:e},{[cg]:cb,rules:[{[cg]:cc,rules:[{[cg]:bB,endpoint:{[cl]:L,[cm]:ba,[cs]:ai},[cf]:n},{[cg]:bG,endpoint:{[cl]:"https://{accessPointName}-{bucketArn#accountId}.s3-object-lambda-fips.{bucketArn#region}.{bucketPartition#dnsSuffix}",[cm]:ba,[cs]:ai},[cf]:n},{endpoint:{[cl]:"https://{accessPointName}-{bucketArn#accountId}.s3-object-lambda.{bucketArn#region}.{bucketPartition#dnsSuffix}",[cm]:ba,[cs]:ai},[cf]:n}],[cf]:o},bb],[cf]:o},bc],[cf]:o},bd],[cf]:o},be],[cf]:o}],[cf]:o}],[cf]:o},bf],[cf]:o},{error:"Invalid ARN: bucket ARN is missing a region",[cf]:e}],[cf]:o},bg],[cf]:o},{error:"Invalid ARN: Object Lambda ARNs only support `accesspoint` arn types, but found: `{arnType}`",[cf]:e}],[cf]:o},{[cg]:bS,rules:[{[cg]:bT,rules:[{[cg]:bV,rules:[{[cg]:bS,rules:[{[cg]:bV,rules:[aW,{[cg]:bW,rules:[aX,{[cg]:bY,rules:[{[cg]:bP,rules:[{[cg]:[{[ch]:g,[ci]:[aY,"{partitionResult#name}"]}],rules:[{[cg]:ca,rules:[{[cg]:[{[ch]:g,[ci]:[aS,A]}],rules:[{[cg]:cb,rules:[{[cg]:cc,rules:[{[cg]:bA,error:"Access Points do not support S3 Accelerate",[cf]:e},{[cg]:[W,X],endpoint:{[cl]:"https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint-fips.dualstack.{bucketArn#region}.{bucketPartition#dnsSuffix}",[cm]:bh,[cs]:ai},[cf]:n},{[cg]:[W,aE],endpoint:{[cl]:"https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint-fips.{bucketArn#region}.{bucketPartition#dnsSuffix}",[cm]:bh,[cs]:ai},[cf]:n},{[cg]:[aG,X],endpoint:{[cl]:"https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint.dualstack.{bucketArn#region}.{bucketPartition#dnsSuffix}",[cm]:bh,[cs]:ai},[cf]:n},{[cg]:[aG,aE,Y,ad],endpoint:{[cl]:L,[cm]:bh,[cs]:ai},[cf]:n},{[cg]:[aG,aE],endpoint:{[cl]:"https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint.{bucketArn#region}.{bucketPartition#dnsSuffix}",[cm]:bh,[cs]:ai},[cf]:n}],[cf]:o},bb],[cf]:o},bc],[cf]:o},{error:"Invalid ARN: The ARN was not for the S3 service, found: {bucketArn#service}",[cf]:e}],[cf]:o},bd],[cf]:o},be],[cf]:o}],[cf]:o}],[cf]:o},bf],[cf]:o}],[cf]:o}],[cf]:o},{[cg]:[{[ch]:x,[ci]:[aT,b]}],rules:[{[cg]:bz,error:"S3 MRAP does not support dual-stack",[cf]:e},{[cg]:bG,error:"S3 MRAP does not support FIPS",[cf]:e},{[cg]:bA,error:"S3 MRAP does not support S3 Accelerate",[cf]:e},{[cg]:[{[ch]:d,[ci]:[{[cj]:"DisableMultiRegionAccessPoints"},b]}],error:"Invalid configuration: Multi-Region Access Point ARNs are disabled.",[cf]:e},{[cg]:[{[ch]:f,[ci]:bw,[ck]:M}],rules:[{[cg]:[{[ch]:g,[ci]:[{[ch]:h,[ci]:[{[cj]:M},i]},{[ch]:h,[ci]:[aQ,"partition"]}]}],rules:[{endpoint:{[cl]:"https://{accessPointName}.accesspoint.s3-global.{mrapPartition#dnsSuffix}",[cm]:{[co]:[{[cp]:b,name:y,[cq]:A,[ct]:bO}]},[cs]:ai},[cf]:n}],[cf]:o},{error:"Client was configured for partition `{mrapPartition#name}` but bucket referred to partition `{bucketArn#partition}`",[cf]:e}],[cf]:o}],[cf]:o},{error:"Invalid Access Point Name",[cf]:e}],[cf]:o},bg],[cf]:o},{[cg]:[{[ch]:g,[ci]:[aS,z]}],rules:[{[cg]:bz,error:"S3 Outposts does not support Dual-stack",[cf]:e},{[cg]:bG,error:"S3 Outposts does not support FIPS",[cf]:e},{[cg]:bA,error:"S3 Outposts does not support S3 Accelerate",[cf]:e},{[cg]:[{[ch]:c,[ci]:[{[ch]:h,[ci]:[aQ,"resourceId[4]"]}]}],error:"Invalid Arn: Outpost Access Point ARN contains sub resources",[cf]:e},{[cg]:[{[ch]:h,[ci]:bU,[ck]:w}],rules:[{[cg]:bM,rules:[aX,{[cg]:bY,rules:[{[cg]:bP,rules:[{[cg]:bZ,rules:[{[cg]:ca,rules:[{[cg]:cb,rules:[{[cg]:[{[ch]:h,[ci]:bX,[ck]:N}],rules:[{[cg]:[{[ch]:h,[ci]:[aQ,"resourceId[3]"],[ck]:K}],rules:[{[cg]:[{[ch]:g,[ci]:[{[cj]:N},J]}],rules:[{[cg]:bB,endpoint:{[cl]:"https://{accessPointName}-{bucketArn#accountId}.{outpostId}.{url#authority}",[cm]:bi,[cs]:ai},[cf]:n},{endpoint:{[cl]:"https://{accessPointName}-{bucketArn#accountId}.{outpostId}.s3-outposts.{bucketArn#region}.{bucketPartition#dnsSuffix}",[cm]:bi,[cs]:ai},[cf]:n}],[cf]:o},{error:"Expected an outpost type `accesspoint`, found {outpostType}",[cf]:e}],[cf]:o},{error:"Invalid ARN: expected an access point name",[cf]:e}],[cf]:o},{error:"Invalid ARN: Expected a 4-component resource",[cf]:e}],[cf]:o},bc],[cf]:o},bd],[cf]:o},be],[cf]:o}],[cf]:o}],[cf]:o},{error:"Invalid ARN: The outpost Id may only contain a-z, A-Z, 0-9 and `-`. Found: `{outpostId}`",[cf]:e}],[cf]:o},{error:"Invalid ARN: The Outpost Id was not set",[cf]:e}],[cf]:o},{error:"Invalid ARN: Unrecognized format: {Bucket} (type: {arnType})",[cf]:e}],[cf]:o},{error:"Invalid ARN: No ARN type specified",[cf]:e}],[cf]:o},{[cg]:[{[ch]:j,[ci]:[ac,0,4,a],[ck]:O},{[ch]:g,[ci]:[{[cj]:O},"arn:"]},{[ch]:r,[ci]:[{[ch]:c,[ci]:[bj]}]}],error:"Invalid ARN: `{Bucket}` was not a valid ARN",[cf]:e},{[cg]:[{[ch]:d,[ci]:[av,b]},bj],error:"Path-style addressing cannot be used with ARN buckets",[cf]:e},{[cg]:bE,rules:[{[cg]:bP,rules:[{[cg]:[aw],rules:[{[cg]:[X,ao,W,ax],endpoint:{[cl]:"https://s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[cm]:ay,[cs]:ai},[cf]:n},{[cg]:[X,ao,W,az,aA],rules:[{endpoint:bk,[cf]:n}],[cf]:o},{[cg]:[X,ao,W,az,aD],endpoint:bk,[cf]:n},{[cg]:[aE,ao,W,ax],endpoint:{[cl]:"https://s3-fips.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[cm]:ay,[cs]:ai},[cf]:n},{[cg]:[aE,ao,W,az,aA],rules:[{endpoint:bl,[cf]:n}],[cf]:o},{[cg]:[aE,ao,W,az,aD],endpoint:bl,[cf]:n},{[cg]:[X,ao,aG,ax],endpoint:{[cl]:"https://s3.dualstack.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[cm]:ay,[cs]:ai},[cf]:n},{[cg]:[X,ao,aG,az,aA],rules:[{endpoint:bm,[cf]:n}],[cf]:o},{[cg]:[X,ao,aG,az,aD],endpoint:bm,[cf]:n},{[cg]:[aE,Y,ad,aG,ax],endpoint:{[cl]:P,[cm]:ay,[cs]:ai},[cf]:n},{[cg]:[aE,Y,ad,aG,az,aA],rules:[{[cg]:bR,endpoint:bn,[cf]:n},{endpoint:bn,[cf]:n}],[cf]:o},{[cg]:[aE,Y,ad,aG,az,aD],endpoint:bn,[cf]:n},{[cg]:[aE,ao,aG,ax],endpoint:{[cl]:Q,[cm]:ay,[cs]:ai},[cf]:n},{[cg]:[aE,ao,aG,az,aA],rules:[{[cg]:bR,endpoint:{[cl]:Q,[cm]:aC,[cs]:ai},[cf]:n},{endpoint:bo,[cf]:n}],[cf]:o},{[cg]:[aE,ao,aG,az,aD],endpoint:bo,[cf]:n}],[cf]:o},{error:"Path-style addressing cannot be used with S3 Accelerate",[cf]:e}],[cf]:o}],[cf]:o}],[cf]:o},{[cg]:[{[ch]:c,[ci]:[bp]},{[ch]:d,[ci]:[bp,b]}],rules:[{[cg]:bP,rules:[{[cg]:cd,rules:[aU,aV,{[cg]:bB,endpoint:{[cl]:s,[cm]:bq,[cs]:ai},[cf]:n},{[cg]:bG,endpoint:{[cl]:"https://s3-object-lambda-fips.{Region}.{partitionResult#dnsSuffix}",[cm]:bq,[cs]:ai},[cf]:n},{endpoint:{[cl]:"https://s3-object-lambda.{Region}.{partitionResult#dnsSuffix}",[cm]:bq,[cs]:ai},[cf]:n}],[cf]:o},aP],[cf]:o}],[cf]:o},{[cg]:[aq],rules:[{[cg]:bP,rules:[{[cg]:cd,rules:[{[cg]:[W,X,ao,ax],endpoint:{[cl]:"https://s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}",[cm]:ay,[cs]:ai},[cf]:n},{[cg]:[W,X,ao,az,aA],rules:[{endpoint:br,[cf]:n}],[cf]:o},{[cg]:[W,X,ao,az,aD],endpoint:br,[cf]:n},{[cg]:[W,aE,ao,ax],endpoint:{[cl]:"https://s3-fips.us-east-1.{partitionResult#dnsSuffix}",[cm]:ay,[cs]:ai},[cf]:n},{[cg]:[W,aE,ao,az,aA],rules:[{endpoint:bs,[cf]:n}],[cf]:o},{[cg]:[W,aE,ao,az,aD],endpoint:bs,[cf]:n},{[cg]:[aG,X,ao,ax],endpoint:{[cl]:"https://s3.dualstack.us-east-1.{partitionResult#dnsSuffix}",[cm]:ay,[cs]:ai},[cf]:n},{[cg]:[aG,X,ao,az,aA],rules:[{endpoint:bt,[cf]:n}],[cf]:o},{[cg]:[aG,X,ao,az,aD],endpoint:bt,[cf]:n},{[cg]:[aG,aE,Y,ad,ax],endpoint:{[cl]:s,[cm]:ay,[cs]:ai},[cf]:n},{[cg]:[aG,aE,Y,ad,az,aA],rules:[{[cg]:bR,endpoint:bu,[cf]:n},{endpoint:bu,[cf]:n}],[cf]:o},{[cg]:[aG,aE,Y,ad,az,aD],endpoint:bu,[cf]:n},{[cg]:[aG,aE,ao,ax],endpoint:{[cl]:R,[cm]:ay,[cs]:ai},[cf]:n},{[cg]:[aG,aE,ao,az,aA],rules:[{[cg]:bR,endpoint:{[cl]:R,[cm]:aC,[cs]:ai},[cf]:n},{endpoint:bv,[cf]:n}],[cf]:o},{[cg]:[aG,aE,ao,az,aD],endpoint:bv,[cf]:n}],[cf]:o},aP],[cf]:o}],[cf]:o}],[cf]:o},{error:"A region must be set when sending requests to S3.",[cf]:e}]}; +const _data={version:"1.0",parameters:{Bucket:S,Region:S,UseFIPS:T,UseDualStack:T,Endpoint:S,ForcePathStyle:T,Accelerate:T,UseGlobalEndpoint:T,UseObjectLambdaEndpoint:U,Key:S,Prefix:S,CopySource:S,DisableAccessPoints:U,DisableMultiRegionAccessPoints:T,UseArnRegion:U,UseS3ExpressControlEndpoint:U,DisableS3ExpressSessionAuth:U},rules:[{[cg]:[{[ch]:c,[ci]:bw}],rules:[{[cg]:[V,W],error:"Accelerate cannot be used with FIPS",[cf]:e},{[cg]:[X,Y],error:"Cannot set dual-stack in combination with a custom endpoint.",[cf]:e},{[cg]:[Y,W],error:"A custom endpoint cannot be combined with FIPS",[cf]:e},{[cg]:[Y,V],error:"A custom endpoint cannot be combined with S3 Accelerate",[cf]:e},{[cg]:[W,Z,aa],error:"Partition does not support FIPS",[cf]:e},{[cg]:[ab,{[ch]:j,[ci]:[ac,0,6,b],[ck]:k},{[ch]:g,[ci]:[{[cj]:k},"--x-s3"]}],rules:[{[cg]:bz,error:"S3Express does not support Dual-stack.",[cf]:e},{[cg]:bA,error:"S3Express does not support S3 Accelerate.",[cf]:e},{[cg]:bB,rules:[{[cg]:bC,rules:[{[cg]:bD,rules:[{[cg]:bE,rules:[{endpoint:{[cl]:m,[cm]:ah,[cs]:ai},[cf]:n}],[cf]:o}],[cf]:o},{[cg]:bF,rules:[{endpoint:{[cl]:q,[cm]:ah,[cs]:ai},[cf]:n}],[cf]:o},ak],[cf]:o},{[cg]:bD,rules:[{[cg]:bE,rules:[{endpoint:{[cl]:m,[cm]:al,[cs]:ai},[cf]:n}],[cf]:o}],[cf]:o},{[cg]:bF,rules:[{endpoint:{[cl]:q,[cm]:al,[cs]:ai},[cf]:n}],[cf]:o},ak],[cf]:o},{[cg]:[am,an],rules:[{[cg]:[ag,ao],rules:[{[cg]:bG,endpoint:{[cl]:"https://s3express-control-fips.{Region}.amazonaws.com/{uri_encoded_bucket}",[cm]:ah,[cs]:ai},[cf]:n},{endpoint:{[cl]:"https://s3express-control.{Region}.amazonaws.com/{uri_encoded_bucket}",[cm]:ah,[cs]:ai},[cf]:n}],[cf]:o}],[cf]:o},{[cg]:bF,rules:[{[cg]:bC,rules:[{[cg]:bH,rules:bI,[cf]:o},{[cg]:bJ,rules:bI,[cf]:o},ap],[cf]:o},{[cg]:bH,rules:bK,[cf]:o},{[cg]:bJ,rules:bK,[cf]:o},ap],[cf]:o},ak],[cf]:o},{[cg]:[aq,am,an],rules:[{[cg]:bB,endpoint:{[cl]:s,[cm]:ah,[cs]:ai},[cf]:n},{[cg]:bG,endpoint:{[cl]:"https://s3express-control-fips.{Region}.amazonaws.com",[cm]:ah,[cs]:ai},[cf]:n},{endpoint:{[cl]:"https://s3express-control.{Region}.amazonaws.com",[cm]:ah,[cs]:ai},[cf]:n}],[cf]:o},{[cg]:[ab,{[ch]:j,[ci]:[ac,49,50,b],[ck]:t},{[ch]:j,[ci]:[ac,8,12,b],[ck]:u},{[ch]:j,[ci]:[ac,0,7,b],[ck]:v},{[ch]:j,[ci]:[ac,32,49,b],[ck]:w},{[ch]:f,[ci]:bw,[ck]:"regionPartition"},{[ch]:g,[ci]:[{[cj]:v},"--op-s3"]}],rules:[{[cg]:bM,rules:[{[cg]:[{[ch]:g,[ci]:[ar,"e"]}],rules:[{[cg]:bN,rules:[as,{[cg]:bB,endpoint:{[cl]:"https://{Bucket}.ec2.{url#authority}",[cm]:at,[cs]:ai},[cf]:n}],[cf]:o},{endpoint:{[cl]:"https://{Bucket}.ec2.s3-outposts.{Region}.{regionPartition#dnsSuffix}",[cm]:at,[cs]:ai},[cf]:n}],[cf]:o},{[cg]:[{[ch]:g,[ci]:[ar,"o"]}],rules:[{[cg]:bN,rules:[as,{[cg]:bB,endpoint:{[cl]:"https://{Bucket}.op-{outpostId}.{url#authority}",[cm]:at,[cs]:ai},[cf]:n}],[cf]:o},{endpoint:{[cl]:"https://{Bucket}.op-{outpostId}.s3-outposts.{Region}.{regionPartition#dnsSuffix}",[cm]:at,[cs]:ai},[cf]:n}],[cf]:o},{error:"Unrecognized hardware type: \"Expected hardware type o or e but got {hardwareType}\"",[cf]:e}],[cf]:o},{error:"Invalid ARN: The outpost Id must only contain a-z, A-Z, 0-9 and `-`.",[cf]:e}],[cf]:o},{[cg]:bL,rules:[{[cg]:[Y,{[ch]:r,[ci]:[{[ch]:c,[ci]:[{[ch]:l,[ci]:bx}]}]}],error:"Custom endpoint `{Endpoint}` was not a valid URI",[cf]:e},{[cg]:[au,aj],rules:[{[cg]:bP,rules:[{[cg]:bQ,rules:[{[cg]:[V,aa],error:"S3 Accelerate cannot be used in this region",[cf]:e},{[cg]:[X,W,aw,ao,ax],endpoint:{[cl]:"https://{Bucket}.s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}",[cm]:ay,[cs]:ai},[cf]:n},{[cg]:[X,W,aw,ao,az,aA],rules:[{endpoint:aB,[cf]:n}],[cf]:o},{[cg]:[X,W,aw,ao,az,aD],endpoint:aB,[cf]:n},{[cg]:[aE,W,aw,ao,ax],endpoint:{[cl]:"https://{Bucket}.s3-fips.us-east-1.{partitionResult#dnsSuffix}",[cm]:ay,[cs]:ai},[cf]:n},{[cg]:[aE,W,aw,ao,az,aA],rules:[{endpoint:aF,[cf]:n}],[cf]:o},{[cg]:[aE,W,aw,ao,az,aD],endpoint:aF,[cf]:n},{[cg]:[X,aG,V,ao,ax],endpoint:{[cl]:"https://{Bucket}.s3-accelerate.dualstack.us-east-1.{partitionResult#dnsSuffix}",[cm]:ay,[cs]:ai},[cf]:n},{[cg]:[X,aG,V,ao,az,aA],rules:[{endpoint:aH,[cf]:n}],[cf]:o},{[cg]:[X,aG,V,ao,az,aD],endpoint:aH,[cf]:n},{[cg]:[X,aG,aw,ao,ax],endpoint:{[cl]:"https://{Bucket}.s3.dualstack.us-east-1.{partitionResult#dnsSuffix}",[cm]:ay,[cs]:ai},[cf]:n},{[cg]:[X,aG,aw,ao,az,aA],rules:[{endpoint:aI,[cf]:n}],[cf]:o},{[cg]:[X,aG,aw,ao,az,aD],endpoint:aI,[cf]:n},{[cg]:[aE,aG,aw,Y,ad,ae,ax],endpoint:{[cl]:B,[cm]:ay,[cs]:ai},[cf]:n},{[cg]:[aE,aG,aw,Y,ad,aJ,ax],endpoint:{[cl]:q,[cm]:ay,[cs]:ai},[cf]:n},{[cg]:[aE,aG,aw,Y,ad,ae,az,aA],rules:[{[cg]:bR,endpoint:aK,[cf]:n},{endpoint:aK,[cf]:n}],[cf]:o},{[cg]:[aE,aG,aw,Y,ad,aJ,az,aA],rules:[{[cg]:bR,endpoint:aL,[cf]:n},aM],[cf]:o},{[cg]:[aE,aG,aw,Y,ad,ae,az,aD],endpoint:aK,[cf]:n},{[cg]:[aE,aG,aw,Y,ad,aJ,az,aD],endpoint:aL,[cf]:n},{[cg]:[aE,aG,V,ao,ax],endpoint:{[cl]:C,[cm]:ay,[cs]:ai},[cf]:n},{[cg]:[aE,aG,V,ao,az,aA],rules:[{[cg]:bR,endpoint:aN,[cf]:n},{endpoint:aN,[cf]:n}],[cf]:o},{[cg]:[aE,aG,V,ao,az,aD],endpoint:aN,[cf]:n},{[cg]:[aE,aG,aw,ao,ax],endpoint:{[cl]:D,[cm]:ay,[cs]:ai},[cf]:n},{[cg]:[aE,aG,aw,ao,az,aA],rules:[{[cg]:bR,endpoint:{[cl]:D,[cm]:aC,[cs]:ai},[cf]:n},{endpoint:aO,[cf]:n}],[cf]:o},{[cg]:[aE,aG,aw,ao,az,aD],endpoint:aO,[cf]:n}],[cf]:o},aP],[cf]:o}],[cf]:o},{[cg]:[Y,ad,{[ch]:g,[ci]:[{[ch]:h,[ci]:[af,"scheme"]},"http"]},{[ch]:p,[ci]:[ac,b]},au,aG,aE,aw],rules:[{[cg]:bP,rules:[{[cg]:bQ,rules:[aM],[cf]:o},aP],[cf]:o}],[cf]:o},{[cg]:[au,{[ch]:E,[ci]:by,[ck]:F}],rules:[{[cg]:[{[ch]:h,[ci]:[aQ,"resourceId[0]"],[ck]:G},{[ch]:r,[ci]:[{[ch]:g,[ci]:[aR,H]}]}],rules:[{[cg]:[{[ch]:g,[ci]:[aS,I]}],rules:[{[cg]:bS,rules:[{[cg]:bT,rules:[aU,aV,{[cg]:bV,rules:[aW,{[cg]:bW,rules:[aX,{[cg]:bY,rules:[{[cg]:bP,rules:[{[cg]:bZ,rules:[{[cg]:ca,rules:[{[cg]:[{[ch]:g,[ci]:[aZ,H]}],error:"Invalid ARN: Missing account id",[cf]:e},{[cg]:cb,rules:[{[cg]:cc,rules:[{[cg]:bB,endpoint:{[cl]:L,[cm]:ba,[cs]:ai},[cf]:n},{[cg]:bG,endpoint:{[cl]:"https://{accessPointName}-{bucketArn#accountId}.s3-object-lambda-fips.{bucketArn#region}.{bucketPartition#dnsSuffix}",[cm]:ba,[cs]:ai},[cf]:n},{endpoint:{[cl]:"https://{accessPointName}-{bucketArn#accountId}.s3-object-lambda.{bucketArn#region}.{bucketPartition#dnsSuffix}",[cm]:ba,[cs]:ai},[cf]:n}],[cf]:o},bb],[cf]:o},bc],[cf]:o},bd],[cf]:o},be],[cf]:o}],[cf]:o}],[cf]:o},bf],[cf]:o},{error:"Invalid ARN: bucket ARN is missing a region",[cf]:e}],[cf]:o},bg],[cf]:o},{error:"Invalid ARN: Object Lambda ARNs only support `accesspoint` arn types, but found: `{arnType}`",[cf]:e}],[cf]:o},{[cg]:bS,rules:[{[cg]:bT,rules:[{[cg]:bV,rules:[{[cg]:bS,rules:[{[cg]:bV,rules:[aW,{[cg]:bW,rules:[aX,{[cg]:bY,rules:[{[cg]:bP,rules:[{[cg]:[{[ch]:g,[ci]:[aY,"{partitionResult#name}"]}],rules:[{[cg]:ca,rules:[{[cg]:[{[ch]:g,[ci]:[aS,A]}],rules:[{[cg]:cb,rules:[{[cg]:cc,rules:[{[cg]:bA,error:"Access Points do not support S3 Accelerate",[cf]:e},{[cg]:[W,X],endpoint:{[cl]:"https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint-fips.dualstack.{bucketArn#region}.{bucketPartition#dnsSuffix}",[cm]:bh,[cs]:ai},[cf]:n},{[cg]:[W,aE],endpoint:{[cl]:"https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint-fips.{bucketArn#region}.{bucketPartition#dnsSuffix}",[cm]:bh,[cs]:ai},[cf]:n},{[cg]:[aG,X],endpoint:{[cl]:"https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint.dualstack.{bucketArn#region}.{bucketPartition#dnsSuffix}",[cm]:bh,[cs]:ai},[cf]:n},{[cg]:[aG,aE,Y,ad],endpoint:{[cl]:L,[cm]:bh,[cs]:ai},[cf]:n},{[cg]:[aG,aE],endpoint:{[cl]:"https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint.{bucketArn#region}.{bucketPartition#dnsSuffix}",[cm]:bh,[cs]:ai},[cf]:n}],[cf]:o},bb],[cf]:o},bc],[cf]:o},{error:"Invalid ARN: The ARN was not for the S3 service, found: {bucketArn#service}",[cf]:e}],[cf]:o},bd],[cf]:o},be],[cf]:o}],[cf]:o}],[cf]:o},bf],[cf]:o}],[cf]:o}],[cf]:o},{[cg]:[{[ch]:x,[ci]:[aT,b]}],rules:[{[cg]:bz,error:"S3 MRAP does not support dual-stack",[cf]:e},{[cg]:bG,error:"S3 MRAP does not support FIPS",[cf]:e},{[cg]:bA,error:"S3 MRAP does not support S3 Accelerate",[cf]:e},{[cg]:[{[ch]:d,[ci]:[{[cj]:"DisableMultiRegionAccessPoints"},b]}],error:"Invalid configuration: Multi-Region Access Point ARNs are disabled.",[cf]:e},{[cg]:[{[ch]:f,[ci]:bw,[ck]:M}],rules:[{[cg]:[{[ch]:g,[ci]:[{[ch]:h,[ci]:[{[cj]:M},i]},{[ch]:h,[ci]:[aQ,"partition"]}]}],rules:[{endpoint:{[cl]:"https://{accessPointName}.accesspoint.s3-global.{mrapPartition#dnsSuffix}",[cm]:{[co]:[{[cp]:b,name:y,[cq]:A,[ct]:bO}]},[cs]:ai},[cf]:n}],[cf]:o},{error:"Client was configured for partition `{mrapPartition#name}` but bucket referred to partition `{bucketArn#partition}`",[cf]:e}],[cf]:o}],[cf]:o},{error:"Invalid Access Point Name",[cf]:e}],[cf]:o},bg],[cf]:o},{[cg]:[{[ch]:g,[ci]:[aS,z]}],rules:[{[cg]:bz,error:"S3 Outposts does not support Dual-stack",[cf]:e},{[cg]:bG,error:"S3 Outposts does not support FIPS",[cf]:e},{[cg]:bA,error:"S3 Outposts does not support S3 Accelerate",[cf]:e},{[cg]:[{[ch]:c,[ci]:[{[ch]:h,[ci]:[aQ,"resourceId[4]"]}]}],error:"Invalid Arn: Outpost Access Point ARN contains sub resources",[cf]:e},{[cg]:[{[ch]:h,[ci]:bU,[ck]:w}],rules:[{[cg]:bM,rules:[aX,{[cg]:bY,rules:[{[cg]:bP,rules:[{[cg]:bZ,rules:[{[cg]:ca,rules:[{[cg]:cb,rules:[{[cg]:[{[ch]:h,[ci]:bX,[ck]:N}],rules:[{[cg]:[{[ch]:h,[ci]:[aQ,"resourceId[3]"],[ck]:K}],rules:[{[cg]:[{[ch]:g,[ci]:[{[cj]:N},J]}],rules:[{[cg]:bB,endpoint:{[cl]:"https://{accessPointName}-{bucketArn#accountId}.{outpostId}.{url#authority}",[cm]:bi,[cs]:ai},[cf]:n},{endpoint:{[cl]:"https://{accessPointName}-{bucketArn#accountId}.{outpostId}.s3-outposts.{bucketArn#region}.{bucketPartition#dnsSuffix}",[cm]:bi,[cs]:ai},[cf]:n}],[cf]:o},{error:"Expected an outpost type `accesspoint`, found {outpostType}",[cf]:e}],[cf]:o},{error:"Invalid ARN: expected an access point name",[cf]:e}],[cf]:o},{error:"Invalid ARN: Expected a 4-component resource",[cf]:e}],[cf]:o},bc],[cf]:o},bd],[cf]:o},be],[cf]:o}],[cf]:o}],[cf]:o},{error:"Invalid ARN: The outpost Id may only contain a-z, A-Z, 0-9 and `-`. Found: `{outpostId}`",[cf]:e}],[cf]:o},{error:"Invalid ARN: The Outpost Id was not set",[cf]:e}],[cf]:o},{error:"Invalid ARN: Unrecognized format: {Bucket} (type: {arnType})",[cf]:e}],[cf]:o},{error:"Invalid ARN: No ARN type specified",[cf]:e}],[cf]:o},{[cg]:[{[ch]:j,[ci]:[ac,0,4,a],[ck]:O},{[ch]:g,[ci]:[{[cj]:O},"arn:"]},{[ch]:r,[ci]:[{[ch]:c,[ci]:[bj]}]}],error:"Invalid ARN: `{Bucket}` was not a valid ARN",[cf]:e},{[cg]:[{[ch]:d,[ci]:[av,b]},bj],error:"Path-style addressing cannot be used with ARN buckets",[cf]:e},{[cg]:bE,rules:[{[cg]:bP,rules:[{[cg]:[aw],rules:[{[cg]:[X,ao,W,ax],endpoint:{[cl]:"https://s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[cm]:ay,[cs]:ai},[cf]:n},{[cg]:[X,ao,W,az,aA],rules:[{endpoint:bk,[cf]:n}],[cf]:o},{[cg]:[X,ao,W,az,aD],endpoint:bk,[cf]:n},{[cg]:[aE,ao,W,ax],endpoint:{[cl]:"https://s3-fips.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[cm]:ay,[cs]:ai},[cf]:n},{[cg]:[aE,ao,W,az,aA],rules:[{endpoint:bl,[cf]:n}],[cf]:o},{[cg]:[aE,ao,W,az,aD],endpoint:bl,[cf]:n},{[cg]:[X,ao,aG,ax],endpoint:{[cl]:"https://s3.dualstack.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[cm]:ay,[cs]:ai},[cf]:n},{[cg]:[X,ao,aG,az,aA],rules:[{endpoint:bm,[cf]:n}],[cf]:o},{[cg]:[X,ao,aG,az,aD],endpoint:bm,[cf]:n},{[cg]:[aE,Y,ad,aG,ax],endpoint:{[cl]:P,[cm]:ay,[cs]:ai},[cf]:n},{[cg]:[aE,Y,ad,aG,az,aA],rules:[{[cg]:bR,endpoint:bn,[cf]:n},{endpoint:bn,[cf]:n}],[cf]:o},{[cg]:[aE,Y,ad,aG,az,aD],endpoint:bn,[cf]:n},{[cg]:[aE,ao,aG,ax],endpoint:{[cl]:Q,[cm]:ay,[cs]:ai},[cf]:n},{[cg]:[aE,ao,aG,az,aA],rules:[{[cg]:bR,endpoint:{[cl]:Q,[cm]:aC,[cs]:ai},[cf]:n},{endpoint:bo,[cf]:n}],[cf]:o},{[cg]:[aE,ao,aG,az,aD],endpoint:bo,[cf]:n}],[cf]:o},{error:"Path-style addressing cannot be used with S3 Accelerate",[cf]:e}],[cf]:o}],[cf]:o}],[cf]:o},{[cg]:[{[ch]:c,[ci]:[bp]},{[ch]:d,[ci]:[bp,b]}],rules:[{[cg]:bP,rules:[{[cg]:cd,rules:[aU,aV,{[cg]:bB,endpoint:{[cl]:s,[cm]:bq,[cs]:ai},[cf]:n},{[cg]:bG,endpoint:{[cl]:"https://s3-object-lambda-fips.{Region}.{partitionResult#dnsSuffix}",[cm]:bq,[cs]:ai},[cf]:n},{endpoint:{[cl]:"https://s3-object-lambda.{Region}.{partitionResult#dnsSuffix}",[cm]:bq,[cs]:ai},[cf]:n}],[cf]:o},aP],[cf]:o}],[cf]:o},{[cg]:[aq],rules:[{[cg]:bP,rules:[{[cg]:cd,rules:[{[cg]:[W,X,ao,ax],endpoint:{[cl]:"https://s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}",[cm]:ay,[cs]:ai},[cf]:n},{[cg]:[W,X,ao,az,aA],rules:[{endpoint:br,[cf]:n}],[cf]:o},{[cg]:[W,X,ao,az,aD],endpoint:br,[cf]:n},{[cg]:[W,aE,ao,ax],endpoint:{[cl]:"https://s3-fips.us-east-1.{partitionResult#dnsSuffix}",[cm]:ay,[cs]:ai},[cf]:n},{[cg]:[W,aE,ao,az,aA],rules:[{endpoint:bs,[cf]:n}],[cf]:o},{[cg]:[W,aE,ao,az,aD],endpoint:bs,[cf]:n},{[cg]:[aG,X,ao,ax],endpoint:{[cl]:"https://s3.dualstack.us-east-1.{partitionResult#dnsSuffix}",[cm]:ay,[cs]:ai},[cf]:n},{[cg]:[aG,X,ao,az,aA],rules:[{endpoint:bt,[cf]:n}],[cf]:o},{[cg]:[aG,X,ao,az,aD],endpoint:bt,[cf]:n},{[cg]:[aG,aE,Y,ad,ax],endpoint:{[cl]:s,[cm]:ay,[cs]:ai},[cf]:n},{[cg]:[aG,aE,Y,ad,az,aA],rules:[{[cg]:bR,endpoint:bu,[cf]:n},{endpoint:bu,[cf]:n}],[cf]:o},{[cg]:[aG,aE,Y,ad,az,aD],endpoint:bu,[cf]:n},{[cg]:[aG,aE,ao,ax],endpoint:{[cl]:R,[cm]:ay,[cs]:ai},[cf]:n},{[cg]:[aG,aE,ao,az,aA],rules:[{[cg]:bR,endpoint:{[cl]:R,[cm]:aC,[cs]:ai},[cf]:n},{endpoint:bv,[cf]:n}],[cf]:o},{[cg]:[aG,aE,ao,az,aD],endpoint:bv,[cf]:n}],[cf]:o},aP],[cf]:o}],[cf]:o}],[cf]:o},{error:"A region must be set when sending requests to S3.",[cf]:e}]}; export const ruleSet: RuleSetObject = _data; diff --git a/codegen/sdk-codegen/aws-models/s3.json b/codegen/sdk-codegen/aws-models/s3.json index e35fefbb233a..a46672f8b1b6 100644 --- a/codegen/sdk-codegen/aws-models/s3.json +++ b/codegen/sdk-codegen/aws-models/s3.json @@ -645,6 +645,11 @@ "documentation": "The S3 Prefix used to send the request. This is an optional parameter that will be set automatically for operations that are scoped to an S3 Prefix.", "type": "String" }, + "CopySource": { + "required": false, + "documentation": "The Copy Source used for Copy Object request. This is an optional parameter that will be set automatically for operations that are scoped to Copy Source.", + "type": "String" + }, "DisableAccessPoints": { "required": false, "documentation": "Internal parameter to disable Access Point Buckets", @@ -10645,6 +10650,33 @@ "Key": "key" } }, + { + "documentation": "virtual addressing, aws-global region with Copy Source, and Key uses the global endpoint. Copy Source and Key parameters should not be used in endpoint evaluation.", + "expect": { + "endpoint": { + "properties": { + "authSchemes": [ + { + "name": "sigv4", + "signingName": "s3", + "signingRegion": "us-east-1", + "disableDoubleEncoding": true + } + ] + }, + "url": "https://bucket-name.s3.amazonaws.com" + } + }, + "params": { + "Region": "aws-global", + "Bucket": "bucket-name", + "UseFIPS": false, + "UseDualStack": false, + "Accelerate": false, + "CopySource": "/copy/source", + "Key": "key" + } + }, { "documentation": "virtual addressing, aws-global region with fips uses the regional fips endpoint", "expect": { @@ -18802,7 +18834,10 @@ "traits": { "smithy.api#documentation": "

Specifies the source object for the copy operation. The source object \n can be up to 5 GB. If the source object is an object that was uploaded by using a multipart upload, the object copy will be a single part object after the source object is copied to the destination bucket.

\n

You specify the value of the copy source in one of two\n formats, depending on whether you want to access the source object through an access point:

\n \n

If your source bucket versioning is enabled, the x-amz-copy-source header by default identifies the current\n version of an object to copy. If the current version is a delete marker, Amazon S3\n behaves as if the object was deleted. To copy a different version, use the\n versionId query parameter. Specifically, append ?versionId=\n to the value (for example,\n awsexamplebucket/reports/january.pdf?versionId=QUpfdndhfd8438MNFDN93jdnJFkdmqnh893).\n If you don't specify a version ID, Amazon S3 copies the latest version of the source\n object.

\n

If you enable versioning on the destination bucket, Amazon S3 generates a unique version\n ID for the copied object. This version ID is different from the version ID\n of the source object. Amazon S3 returns the version ID of the copied object in the\n x-amz-version-id response header in the response.

\n

If you do not enable versioning or suspend it on the destination bucket, the version\n ID that Amazon S3 generates in the\n x-amz-version-id response header is always null.

\n \n

\n Directory buckets - S3 Versioning isn't enabled and supported for directory buckets.

\n
", "smithy.api#httpHeader": "x-amz-copy-source", - "smithy.api#required": {} + "smithy.api#required": {}, + "smithy.rules#contextParam": { + "name": "CopySource" + } } }, "CopySourceIfMatch": { @@ -18873,7 +18908,10 @@ "traits": { "smithy.api#documentation": "

The key of the destination object.

", "smithy.api#httpLabel": {}, - "smithy.api#required": {} + "smithy.api#required": {}, + "smithy.rules#contextParam": { + "name": "Key" + } } }, "Metadata": { @@ -30541,19 +30579,31 @@ "smithy.api#documentation": "

Adds an object to a bucket.

\n \n \n \n

Amazon S3 is a distributed system. If it receives multiple write requests for the same object\n simultaneously, it overwrites all but the last object written. However, Amazon S3 provides features that can modify this behavior:

\n \n
\n
Permissions
\n
\n \n
\n
Data integrity with Content-MD5
\n
\n \n
\n
HTTP Host header syntax
\n
\n

\n Directory buckets - The HTTP Host header syntax is \n Bucket_name.s3express-az_id.region.amazonaws.com.

\n
\n
\n

For more information about related Amazon S3 APIs, see the following:

\n ", "smithy.api#examples": [ { - "title": "To upload object and specify user-defined metadata", - "documentation": "The following example creates an object. The request also specifies optional metadata. If the bucket is versioning enabled, S3 returns version ID in response.", + "title": "To upload an object and specify server-side encryption and object tags", + "documentation": "The following example uploads an object. The request specifies the optional server-side encryption option. The request also specifies optional object tags. If the bucket is versioning enabled, S3 returns version ID in response.", "input": { "Body": "filetoupload", "Bucket": "examplebucket", "Key": "exampleobject", - "Metadata": { - "metadata1": "value1", - "metadata2": "value2" - } + "ServerSideEncryption": "AES256", + "Tagging": "key1=value1&key2=value2" }, "output": { - "VersionId": "pSKidl4pHBiNwukdbcPXAIs.sshFFOc0", + "VersionId": "Ri.vC6qVlA4dEnjgRV4ZHsHoFIjqEMNt", + "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"", + "ServerSideEncryption": "AES256" + } + }, + { + "title": "To create an object.", + "documentation": "The following example creates an object. If the bucket is versioning enabled, S3 returns version ID in response.", + "input": { + "Body": "filetoupload", + "Bucket": "examplebucket", + "Key": "objectkey" + }, + "output": { + "VersionId": "Bvq0EDKxOcXLJXNo_Lkz37eM3R4pfzyQ", "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"" } }, @@ -30588,28 +30638,19 @@ } }, { - "title": "To create an object.", - "documentation": "The following example creates an object. If the bucket is versioning enabled, S3 returns version ID in response.", + "title": "To upload object and specify user-defined metadata", + "documentation": "The following example creates an object. The request also specifies optional metadata. If the bucket is versioning enabled, S3 returns version ID in response.", "input": { "Body": "filetoupload", "Bucket": "examplebucket", - "Key": "objectkey" - }, - "output": { - "VersionId": "Bvq0EDKxOcXLJXNo_Lkz37eM3R4pfzyQ", - "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"" - } - }, - { - "title": "To upload an object", - "documentation": "The following example uploads an object to a versioning-enabled bucket. The source file is specified using Windows file syntax. S3 returns VersionId of the newly created object.", - "input": { - "Body": "HappyFace.jpg", - "Bucket": "examplebucket", - "Key": "HappyFace.jpg" + "Key": "exampleobject", + "Metadata": { + "metadata1": "value1", + "metadata2": "value2" + } }, "output": { - "VersionId": "tpf3zF08nBplQK1XLOefGskR7mGDwcDk", + "VersionId": "pSKidl4pHBiNwukdbcPXAIs.sshFFOc0", "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"" } }, @@ -30628,19 +30669,16 @@ } }, { - "title": "To upload an object and specify server-side encryption and object tags", - "documentation": "The following example uploads an object. The request specifies the optional server-side encryption option. The request also specifies optional object tags. If the bucket is versioning enabled, S3 returns version ID in response.", + "title": "To upload an object", + "documentation": "The following example uploads an object to a versioning-enabled bucket. The source file is specified using Windows file syntax. S3 returns VersionId of the newly created object.", "input": { - "Body": "filetoupload", + "Body": "HappyFace.jpg", "Bucket": "examplebucket", - "Key": "exampleobject", - "ServerSideEncryption": "AES256", - "Tagging": "key1=value1&key2=value2" + "Key": "HappyFace.jpg" }, "output": { - "VersionId": "Ri.vC6qVlA4dEnjgRV4ZHsHoFIjqEMNt", - "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"", - "ServerSideEncryption": "AES256" + "VersionId": "tpf3zF08nBplQK1XLOefGskR7mGDwcDk", + "ETag": "\"6805f2cfc46c0f04559748bb039d69ae\"" } } ],