@@ -435,7 +435,8 @@ export const serializeAws_restXmlCreateBucketCommand = async (
435
435
] ,
436
436
"x-amz-outpost-id" : input . OutpostId ! ,
437
437
} ) ;
438
- let resolvedPath = `${ basePath ?. endsWith ( "/" ) ? basePath . slice ( 0 , - 1 ) : basePath || "" } ` + "/v20180820/bucket" ;
438
+ let resolvedPath =
439
+ `${ basePath ?. endsWith ( "/" ) ? basePath . slice ( 0 , - 1 ) : basePath || "" } ` + "/v20180820/bucket/{Bucket}" ;
439
440
resolvedPath = __resolvedPath ( resolvedPath , input , "Bucket" , ( ) => input . Bucket ! , "{Bucket}" , false ) ;
440
441
let body : any ;
441
442
if ( input . CreateBucketConfiguration !== undefined ) {
@@ -742,7 +743,8 @@ export const serializeAws_restXmlDeleteBucketCommand = async (
742
743
const headers : any = map ( { } , isSerializableHeaderValue , {
743
744
"x-amz-account-id" : input . AccountId ! ,
744
745
} ) ;
745
- let resolvedPath = `${ basePath ?. endsWith ( "/" ) ? basePath . slice ( 0 , - 1 ) : basePath || "" } ` + "/v20180820/bucket" ;
746
+ let resolvedPath =
747
+ `${ basePath ?. endsWith ( "/" ) ? basePath . slice ( 0 , - 1 ) : basePath || "" } ` + "/v20180820/bucket/{Bucket}" ;
746
748
resolvedPath = __resolvedPath ( resolvedPath , input , "Bucket" , ( ) => input . Bucket ! , "{Bucket}" , false ) ;
747
749
let body : any ;
748
750
let { hostname : resolvedHostname } = await context . endpoint ( ) ;
@@ -776,7 +778,8 @@ export const serializeAws_restXmlDeleteBucketLifecycleConfigurationCommand = asy
776
778
"x-amz-account-id" : input . AccountId ! ,
777
779
} ) ;
778
780
let resolvedPath =
779
- `${ basePath ?. endsWith ( "/" ) ? basePath . slice ( 0 , - 1 ) : basePath || "" } ` + "/v20180820/bucket/lifecycleconfiguration" ;
781
+ `${ basePath ?. endsWith ( "/" ) ? basePath . slice ( 0 , - 1 ) : basePath || "" } ` +
782
+ "/v20180820/bucket/{Bucket}/lifecycleconfiguration" ;
780
783
resolvedPath = __resolvedPath ( resolvedPath , input , "Bucket" , ( ) => input . Bucket ! , "{Bucket}" , false ) ;
781
784
let body : any ;
782
785
let { hostname : resolvedHostname } = await context . endpoint ( ) ;
@@ -809,7 +812,8 @@ export const serializeAws_restXmlDeleteBucketPolicyCommand = async (
809
812
const headers : any = map ( { } , isSerializableHeaderValue , {
810
813
"x-amz-account-id" : input . AccountId ! ,
811
814
} ) ;
812
- let resolvedPath = `${ basePath ?. endsWith ( "/" ) ? basePath . slice ( 0 , - 1 ) : basePath || "" } ` + "/v20180820/bucket/policy" ;
815
+ let resolvedPath =
816
+ `${ basePath ?. endsWith ( "/" ) ? basePath . slice ( 0 , - 1 ) : basePath || "" } ` + "/v20180820/bucket/{Bucket}/policy" ;
813
817
resolvedPath = __resolvedPath ( resolvedPath , input , "Bucket" , ( ) => input . Bucket ! , "{Bucket}" , false ) ;
814
818
let body : any ;
815
819
let { hostname : resolvedHostname } = await context . endpoint ( ) ;
@@ -843,7 +847,7 @@ export const serializeAws_restXmlDeleteBucketTaggingCommand = async (
843
847
"x-amz-account-id" : input . AccountId ! ,
844
848
} ) ;
845
849
let resolvedPath =
846
- `${ basePath ?. endsWith ( "/" ) ? basePath . slice ( 0 , - 1 ) : basePath || "" } ` + "/v20180820/bucket/tagging" ;
850
+ `${ basePath ?. endsWith ( "/" ) ? basePath . slice ( 0 , - 1 ) : basePath || "" } ` + "/v20180820/bucket/{Bucket}/ tagging" ;
847
851
resolvedPath = __resolvedPath ( resolvedPath , input , "Bucket" , ( ) => input . Bucket ! , "{Bucket}" , false ) ;
848
852
let body : any ;
849
853
let { hostname : resolvedHostname } = await context . endpoint ( ) ;
@@ -1379,7 +1383,8 @@ export const serializeAws_restXmlGetBucketCommand = async (
1379
1383
const headers : any = map ( { } , isSerializableHeaderValue , {
1380
1384
"x-amz-account-id" : input . AccountId ! ,
1381
1385
} ) ;
1382
- let resolvedPath = `${ basePath ?. endsWith ( "/" ) ? basePath . slice ( 0 , - 1 ) : basePath || "" } ` + "/v20180820/bucket" ;
1386
+ let resolvedPath =
1387
+ `${ basePath ?. endsWith ( "/" ) ? basePath . slice ( 0 , - 1 ) : basePath || "" } ` + "/v20180820/bucket/{Bucket}" ;
1383
1388
resolvedPath = __resolvedPath ( resolvedPath , input , "Bucket" , ( ) => input . Bucket ! , "{Bucket}" , false ) ;
1384
1389
let body : any ;
1385
1390
let { hostname : resolvedHostname } = await context . endpoint ( ) ;
@@ -1413,7 +1418,8 @@ export const serializeAws_restXmlGetBucketLifecycleConfigurationCommand = async
1413
1418
"x-amz-account-id" : input . AccountId ! ,
1414
1419
} ) ;
1415
1420
let resolvedPath =
1416
- `${ basePath ?. endsWith ( "/" ) ? basePath . slice ( 0 , - 1 ) : basePath || "" } ` + "/v20180820/bucket/lifecycleconfiguration" ;
1421
+ `${ basePath ?. endsWith ( "/" ) ? basePath . slice ( 0 , - 1 ) : basePath || "" } ` +
1422
+ "/v20180820/bucket/{Bucket}/lifecycleconfiguration" ;
1417
1423
resolvedPath = __resolvedPath ( resolvedPath , input , "Bucket" , ( ) => input . Bucket ! , "{Bucket}" , false ) ;
1418
1424
let body : any ;
1419
1425
let { hostname : resolvedHostname } = await context . endpoint ( ) ;
@@ -1446,7 +1452,8 @@ export const serializeAws_restXmlGetBucketPolicyCommand = async (
1446
1452
const headers : any = map ( { } , isSerializableHeaderValue , {
1447
1453
"x-amz-account-id" : input . AccountId ! ,
1448
1454
} ) ;
1449
- let resolvedPath = `${ basePath ?. endsWith ( "/" ) ? basePath . slice ( 0 , - 1 ) : basePath || "" } ` + "/v20180820/bucket/policy" ;
1455
+ let resolvedPath =
1456
+ `${ basePath ?. endsWith ( "/" ) ? basePath . slice ( 0 , - 1 ) : basePath || "" } ` + "/v20180820/bucket/{Bucket}/policy" ;
1450
1457
resolvedPath = __resolvedPath ( resolvedPath , input , "Bucket" , ( ) => input . Bucket ! , "{Bucket}" , false ) ;
1451
1458
let body : any ;
1452
1459
let { hostname : resolvedHostname } = await context . endpoint ( ) ;
@@ -1480,7 +1487,7 @@ export const serializeAws_restXmlGetBucketTaggingCommand = async (
1480
1487
"x-amz-account-id" : input . AccountId ! ,
1481
1488
} ) ;
1482
1489
let resolvedPath =
1483
- `${ basePath ?. endsWith ( "/" ) ? basePath . slice ( 0 , - 1 ) : basePath || "" } ` + "/v20180820/bucket/tagging" ;
1490
+ `${ basePath ?. endsWith ( "/" ) ? basePath . slice ( 0 , - 1 ) : basePath || "" } ` + "/v20180820/bucket/{Bucket}/ tagging" ;
1484
1491
resolvedPath = __resolvedPath ( resolvedPath , input , "Bucket" , ( ) => input . Bucket ! , "{Bucket}" , false ) ;
1485
1492
let body : any ;
1486
1493
let { hostname : resolvedHostname } = await context . endpoint ( ) ;
@@ -2145,7 +2152,8 @@ export const serializeAws_restXmlPutBucketLifecycleConfigurationCommand = async
2145
2152
"x-amz-account-id" : input . AccountId ! ,
2146
2153
} ) ;
2147
2154
let resolvedPath =
2148
- `${ basePath ?. endsWith ( "/" ) ? basePath . slice ( 0 , - 1 ) : basePath || "" } ` + "/v20180820/bucket/lifecycleconfiguration" ;
2155
+ `${ basePath ?. endsWith ( "/" ) ? basePath . slice ( 0 , - 1 ) : basePath || "" } ` +
2156
+ "/v20180820/bucket/{Bucket}/lifecycleconfiguration" ;
2149
2157
resolvedPath = __resolvedPath ( resolvedPath , input , "Bucket" , ( ) => input . Bucket ! , "{Bucket}" , false ) ;
2150
2158
let body : any ;
2151
2159
if ( input . LifecycleConfiguration !== undefined ) {
@@ -2193,7 +2201,8 @@ export const serializeAws_restXmlPutBucketPolicyCommand = async (
2193
2201
( ) => input . ConfirmRemoveSelfBucketAccess ! . toString ( ) ,
2194
2202
] ,
2195
2203
} ) ;
2196
- let resolvedPath = `${ basePath ?. endsWith ( "/" ) ? basePath . slice ( 0 , - 1 ) : basePath || "" } ` + "/v20180820/bucket/policy" ;
2204
+ let resolvedPath =
2205
+ `${ basePath ?. endsWith ( "/" ) ? basePath . slice ( 0 , - 1 ) : basePath || "" } ` + "/v20180820/bucket/{Bucket}/policy" ;
2197
2206
resolvedPath = __resolvedPath ( resolvedPath , input , "Bucket" , ( ) => input . Bucket ! , "{Bucket}" , false ) ;
2198
2207
let body : any ;
2199
2208
body = '<?xml version="1.0" encoding="UTF-8"?>' ;
@@ -2236,7 +2245,7 @@ export const serializeAws_restXmlPutBucketTaggingCommand = async (
2236
2245
"x-amz-account-id" : input . AccountId ! ,
2237
2246
} ) ;
2238
2247
let resolvedPath =
2239
- `${ basePath ?. endsWith ( "/" ) ? basePath . slice ( 0 , - 1 ) : basePath || "" } ` + "/v20180820/bucket/tagging" ;
2248
+ `${ basePath ?. endsWith ( "/" ) ? basePath . slice ( 0 , - 1 ) : basePath || "" } ` + "/v20180820/bucket/{Bucket}/ tagging" ;
2240
2249
resolvedPath = __resolvedPath ( resolvedPath , input , "Bucket" , ( ) => input . Bucket ! , "{Bucket}" , false ) ;
2241
2250
let body : any ;
2242
2251
if ( input . Tagging !== undefined ) {
0 commit comments