Skip to content

fix(client-s3): return GetBucketPolicyOutput without parsing #2236

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 14, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions clients/client-s3/protocols/Aws_restXml.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6479,10 +6479,8 @@ export const deserializeAws_restXmlGetBucketPolicyCommand = async (
$metadata: deserializeMetadata(output),
Policy: undefined,
};
const data: any = await parseBody(output.body, context);
if (data["Policy"] !== undefined) {
contents.Policy = data["Policy"];
}
const data: any = await collectBodyString(output.body, context);
contents.Policy = data;
return Promise.resolve(contents);
};

Expand Down
3 changes: 2 additions & 1 deletion codegen/sdk-codegen/aws-models/s3.2006-03-01.json
Original file line number Diff line number Diff line change
Expand Up @@ -4233,7 +4233,8 @@
"Policy": {
"target": "com.amazonaws.s3#Policy",
"traits": {
"smithy.api#documentation": "<p>The bucket policy as a JSON document.</p>"
"smithy.api#documentation": "<p>The bucket policy as a JSON document.</p>",
"smithy.api#httpPayload": {}
}
}
}
Expand Down