File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed
clients/client-s3/protocols
codegen/sdk-codegen/aws-models Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -6479,10 +6479,8 @@ export const deserializeAws_restXmlGetBucketPolicyCommand = async (
6479
6479
$metadata : deserializeMetadata ( output ) ,
6480
6480
Policy : undefined ,
6481
6481
} ;
6482
- const data : any = await parseBody ( output . body , context ) ;
6483
- if ( data [ "Policy" ] !== undefined ) {
6484
- contents . Policy = data [ "Policy" ] ;
6485
- }
6482
+ const data : any = await collectBodyString ( output . body , context ) ;
6483
+ contents . Policy = data ;
6486
6484
return Promise . resolve ( contents ) ;
6487
6485
} ;
6488
6486
Original file line number Diff line number Diff line change 4233
4233
"Policy": {
4234
4234
"target": "com.amazonaws.s3#Policy",
4235
4235
"traits": {
4236
- "smithy.api#documentation": "<p>The bucket policy as a JSON document.</p>"
4236
+ "smithy.api#documentation": "<p>The bucket policy as a JSON document.</p>",
4237
+ "smithy.api#httpPayload": {}
4237
4238
}
4238
4239
}
4239
4240
}
You can’t perform that action at this time.
0 commit comments