@@ -106,7 +106,7 @@ public function createBucket($input): CreateBucketOutput
106
106
$ input = CreateBucketRequest::create ($ input );
107
107
$ input ->validate ();
108
108
$ xmlConfig = ['CreateBucketConfiguration ' => ['type ' => 'structure ' ,'members ' => ['LocationConstraint ' => ['shape ' => 'BucketLocationConstraint ' ]]],'BucketLocationConstraint ' => ['type ' => 'string ' ],'_root ' => ['type ' => 'CreateBucketConfiguration ' ,'xmlName ' => 'CreateBucketConfiguration ' ,'uri ' => 'http://s3.amazonaws.com/doc/2006-03-01/ ' ]];
109
- $ payload = (new XmlBuilder ($ input ->getCreateBucketConfiguration () ?? [] , $ xmlConfig ))->getXml ();
109
+ $ payload = (new XmlBuilder ($ input ->requestBody () , $ xmlConfig ))->getXml ();
110
110
111
111
$ response = $ this ->getResponse (
112
112
'PUT ' ,
@@ -299,48 +299,8 @@ public function putObjectAcl($input): PutObjectAclOutput
299
299
{
300
300
$ input = PutObjectAclRequest::create ($ input );
301
301
$ input ->validate ();
302
- $ xmlConfig = [
303
- 'AccessControlPolicy ' => [
304
- 'type ' => 'structure ' ,
305
- 'members ' => [
306
- 'Grants ' => ['shape ' => 'Grants ' , 'locationName ' => 'AccessControlList ' ],
307
- 'Owner ' => ['shape ' => 'Owner ' ],
308
- ],
309
- ],
310
- 'Grants ' => ['type ' => 'list ' , 'member ' => ['shape ' => 'Grant ' , 'locationName ' => 'Grant ' ]],
311
- 'Grant ' => [
312
- 'type ' => 'structure ' ,
313
- 'members ' => ['Grantee ' => ['shape ' => 'Grantee ' ], 'Permission ' => ['shape ' => 'Permission ' ]],
314
- ],
315
- 'Grantee ' => [
316
- 'type ' => 'structure ' ,
317
- 'required ' => [0 => 'Type ' ],
318
- 'members ' => [
319
- 'DisplayName ' => ['shape ' => 'DisplayName ' ],
320
- 'EmailAddress ' => ['shape ' => 'EmailAddress ' ],
321
- 'ID ' => ['shape ' => 'ID ' ],
322
- 'Type ' => ['shape ' => 'Type ' , 'locationName ' => 'xsi:type ' , 'xmlAttribute ' => '1 ' ],
323
- 'URI ' => ['shape ' => 'URI ' ],
324
- ],
325
- 'xmlNamespace ' => ['prefix ' => 'xsi ' , 'uri ' => 'http://www.w3.org/2001/XMLSchema-instance ' ],
326
- ],
327
- 'DisplayName ' => ['type ' => 'string ' ],
328
- 'EmailAddress ' => ['type ' => 'string ' ],
329
- 'ID ' => ['type ' => 'string ' ],
330
- 'Type ' => ['type ' => 'string ' ],
331
- 'URI ' => ['type ' => 'string ' ],
332
- 'Permission ' => ['type ' => 'string ' ],
333
- 'Owner ' => [
334
- 'type ' => 'structure ' ,
335
- 'members ' => ['DisplayName ' => ['shape ' => 'DisplayName ' ], 'ID ' => ['shape ' => 'ID ' ]],
336
- ],
337
- '_root ' => [
338
- 'type ' => 'AccessControlPolicy ' ,
339
- 'xmlName ' => 'AccessControlPolicy ' ,
340
- 'uri ' => 'http://s3.amazonaws.com/doc/2006-03-01/ ' ,
341
- ],
342
- ];
343
- $ payload = (new XmlBuilder ($ input ->getAccessControlPolicy () ?? [], $ xmlConfig ))->getXml ();
302
+ $ xmlConfig = ['AccessControlPolicy ' => ['type ' => 'structure ' ,'members ' => ['Grants ' => ['shape ' => 'Grants ' ,'locationName ' => 'AccessControlList ' ],'Owner ' => ['shape ' => 'Owner ' ]]],'Grants ' => ['type ' => 'list ' ,'member ' => ['shape ' => 'Grant ' ,'locationName ' => 'Grant ' ]],'Grant ' => ['type ' => 'structure ' ,'members ' => ['Grantee ' => ['shape ' => 'Grantee ' ],'Permission ' => ['shape ' => 'Permission ' ]]],'Grantee ' => ['type ' => 'structure ' ,'required ' => [0 => 'Type ' ],'members ' => ['DisplayName ' => ['shape ' => 'DisplayName ' ],'EmailAddress ' => ['shape ' => 'EmailAddress ' ],'ID ' => ['shape ' => 'ID ' ],'Type ' => ['shape ' => 'Type ' ,'locationName ' => 'xsi:type ' ,'xmlAttribute ' => '1 ' ],'URI ' => ['shape ' => 'URI ' ]],'xmlNamespace ' => ['prefix ' => 'xsi ' ,'uri ' => 'http://www.w3.org/2001/XMLSchema-instance ' ]],'DisplayName ' => ['type ' => 'string ' ],'EmailAddress ' => ['type ' => 'string ' ],'ID ' => ['type ' => 'string ' ],'Type ' => ['type ' => 'string ' ],'URI ' => ['type ' => 'string ' ],'Permission ' => ['type ' => 'string ' ],'Owner ' => ['type ' => 'structure ' ,'members ' => ['DisplayName ' => ['shape ' => 'DisplayName ' ],'ID ' => ['shape ' => 'ID ' ]]],'_root ' => ['type ' => 'AccessControlPolicy ' ,'xmlName ' => 'AccessControlPolicy ' ,'uri ' => 'http://s3.amazonaws.com/doc/2006-03-01/ ' ]];
303
+ $ payload = (new XmlBuilder ($ input ->requestBody (), $ xmlConfig ))->getXml ();
344
304
345
305
$ response = $ this ->getResponse (
346
306
'PUT ' ,
0 commit comments