aws-sdk-perl icon indicating copy to clipboard operation
aws-sdk-perl copied to clipboard

PutBucketAcl is fixed

Open byterock opened this issue 6 years ago • 1 comments

This was a major fix as this is the only call in all of AWS that uses an XML trait

<AccessControlList> <Grant> <Grantee xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="CanonicalUser">

I also fixed another bug-bear the flatten problems and the double up of NameInRequest in generated code

traits => ['NameInRequest','NameInRequest'], required => 1); seems I can leverage this to get the above XML to work

as I now get this snippett

has Grants => (is => 'ro', isa => 'ArrayRef[Paws::S3::Grant]', request_name => 'Grant', list_request_name => 'AccessControlList' , traits => ['NameInRequest','ListNameInRequest']); has Owner => (is => 'ro', isa => 'Paws::S3::Owner'

generated in 'AccessControlList.pm' that gives as we can see from above the correct XML

byterock avatar Nov 06 '19 22:11 byterock

opps forgot the branch

https://github.com/byterock/aws-sdk-perl/tree/s3ObjectTagging

byterock avatar Nov 06 '19 22:11 byterock