@@ -133,7 +133,8 @@ export const serializeAws_restJson1AssociateApiCommand = async (
133133 "content-type" : "application/json" ,
134134 } ;
135135 let resolvedPath =
136- `${ basePath ?. endsWith ( "/" ) ? basePath . slice ( 0 , - 1 ) : basePath || "" } ` + "/domainnames/{domainName}/apiassociation" ;
136+ `${ basePath ?. endsWith ( "/" ) ? basePath . slice ( 0 , - 1 ) : basePath || "" } ` +
137+ "/v1/domainnames/{domainName}/apiassociation" ;
137138 if ( input . domainName !== undefined ) {
138139 const labelValue : string = input . domainName ;
139140 if ( labelValue . length <= 0 ) {
@@ -309,7 +310,7 @@ export const serializeAws_restJson1CreateDomainNameCommand = async (
309310 const headers : any = {
310311 "content-type" : "application/json" ,
311312 } ;
312- const resolvedPath = `${ basePath ?. endsWith ( "/" ) ? basePath . slice ( 0 , - 1 ) : basePath || "" } ` + "/domainnames" ;
313+ const resolvedPath = `${ basePath ?. endsWith ( "/" ) ? basePath . slice ( 0 , - 1 ) : basePath || "" } ` + "/v1/ domainnames" ;
313314 let body : any ;
314315 body = JSON . stringify ( {
315316 ...( input . certificateArn !== undefined &&
@@ -631,7 +632,7 @@ export const serializeAws_restJson1DeleteDomainNameCommand = async (
631632 const { hostname, protocol = "https" , port, path : basePath } = await context . endpoint ( ) ;
632633 const headers : any = { } ;
633634 let resolvedPath =
634- `${ basePath ?. endsWith ( "/" ) ? basePath . slice ( 0 , - 1 ) : basePath || "" } ` + "/domainnames/{domainName}" ;
635+ `${ basePath ?. endsWith ( "/" ) ? basePath . slice ( 0 , - 1 ) : basePath || "" } ` + "/v1/ domainnames/{domainName}" ;
635636 if ( input . domainName !== undefined ) {
636637 const labelValue : string = input . domainName ;
637638 if ( labelValue . length <= 0 ) {
@@ -812,7 +813,8 @@ export const serializeAws_restJson1DisassociateApiCommand = async (
812813 const { hostname, protocol = "https" , port, path : basePath } = await context . endpoint ( ) ;
813814 const headers : any = { } ;
814815 let resolvedPath =
815- `${ basePath ?. endsWith ( "/" ) ? basePath . slice ( 0 , - 1 ) : basePath || "" } ` + "/domainnames/{domainName}/apiassociation" ;
816+ `${ basePath ?. endsWith ( "/" ) ? basePath . slice ( 0 , - 1 ) : basePath || "" } ` +
817+ "/v1/domainnames/{domainName}/apiassociation" ;
816818 if ( input . domainName !== undefined ) {
817819 const labelValue : string = input . domainName ;
818820 if ( labelValue . length <= 0 ) {
@@ -870,7 +872,8 @@ export const serializeAws_restJson1GetApiAssociationCommand = async (
870872 const { hostname, protocol = "https" , port, path : basePath } = await context . endpoint ( ) ;
871873 const headers : any = { } ;
872874 let resolvedPath =
873- `${ basePath ?. endsWith ( "/" ) ? basePath . slice ( 0 , - 1 ) : basePath || "" } ` + "/domainnames/{domainName}/apiassociation" ;
875+ `${ basePath ?. endsWith ( "/" ) ? basePath . slice ( 0 , - 1 ) : basePath || "" } ` +
876+ "/v1/domainnames/{domainName}/apiassociation" ;
874877 if ( input . domainName !== undefined ) {
875878 const labelValue : string = input . domainName ;
876879 if ( labelValue . length <= 0 ) {
@@ -966,7 +969,7 @@ export const serializeAws_restJson1GetDomainNameCommand = async (
966969 const { hostname, protocol = "https" , port, path : basePath } = await context . endpoint ( ) ;
967970 const headers : any = { } ;
968971 let resolvedPath =
969- `${ basePath ?. endsWith ( "/" ) ? basePath . slice ( 0 , - 1 ) : basePath || "" } ` + "/domainnames/{domainName}" ;
972+ `${ basePath ?. endsWith ( "/" ) ? basePath . slice ( 0 , - 1 ) : basePath || "" } ` + "/v1/ domainnames/{domainName}" ;
970973 if ( input . domainName !== undefined ) {
971974 const labelValue : string = input . domainName ;
972975 if ( labelValue . length <= 0 ) {
@@ -1279,7 +1282,7 @@ export const serializeAws_restJson1ListDomainNamesCommand = async (
12791282) : Promise < __HttpRequest > => {
12801283 const { hostname, protocol = "https" , port, path : basePath } = await context . endpoint ( ) ;
12811284 const headers : any = { } ;
1282- const resolvedPath = `${ basePath ?. endsWith ( "/" ) ? basePath . slice ( 0 , - 1 ) : basePath || "" } ` + "/domainnames" ;
1285+ const resolvedPath = `${ basePath ?. endsWith ( "/" ) ? basePath . slice ( 0 , - 1 ) : basePath || "" } ` + "/v1/ domainnames" ;
12831286 const query : any = {
12841287 ...( input . nextToken !== undefined && { nextToken : input . nextToken } ) ,
12851288 ...( input . maxResults !== undefined && { maxResults : input . maxResults . toString ( ) } ) ,
@@ -1771,7 +1774,7 @@ export const serializeAws_restJson1UpdateDomainNameCommand = async (
17711774 "content-type" : "application/json" ,
17721775 } ;
17731776 let resolvedPath =
1774- `${ basePath ?. endsWith ( "/" ) ? basePath . slice ( 0 , - 1 ) : basePath || "" } ` + "/domainnames/{domainName}" ;
1777+ `${ basePath ?. endsWith ( "/" ) ? basePath . slice ( 0 , - 1 ) : basePath || "" } ` + "/v1/ domainnames/{domainName}" ;
17751778 if ( input . domainName !== undefined ) {
17761779 const labelValue : string = input . domainName ;
17771780 if ( labelValue . length <= 0 ) {
0 commit comments