Skip to content

Commit f1ce95e

Browse files
authored
fix(client-appsync): fix domainnames routes (#3773)
1 parent 60a14ca commit f1ce95e

File tree

3 files changed

+21
-18
lines changed

3 files changed

+21
-18
lines changed

clients/client-appsync/src/models/models_0.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1493,7 +1493,7 @@ export interface DomainNameConfig {
14931493
appsyncDomainName?: string;
14941494

14951495
/**
1496-
* <p>The ID of your Amazon Route 53 hosted zone.</p>
1496+
* <p>The ID of your Amazon Route 53 hosted zone.</p>
14971497
*/
14981498
hostedZoneId?: string;
14991499
}

clients/client-appsync/src/protocols/Aws_restJson1.ts

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -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) {

codegen/sdk-codegen/aws-models/appsync.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -539,7 +539,7 @@
539539
"smithy.api#documentation": "<p>Maps an endpoint to your custom domain.</p>",
540540
"smithy.api#http": {
541541
"method": "POST",
542-
"uri": "/domainnames/{domainName}/apiassociation",
542+
"uri": "/v1/domainnames/{domainName}/apiassociation",
543543
"code": 200
544544
}
545545
}
@@ -1129,7 +1129,7 @@
11291129
"smithy.api#documentation": "<p>Creates a custom <code>DomainName</code> object.</p>",
11301130
"smithy.api#http": {
11311131
"method": "POST",
1132-
"uri": "/domainnames",
1132+
"uri": "/v1/domainnames",
11331133
"code": 200
11341134
}
11351135
}
@@ -1903,7 +1903,7 @@
19031903
"smithy.api#documentation": "<p>Deletes a custom <code>DomainName</code> object.</p>",
19041904
"smithy.api#http": {
19051905
"method": "DELETE",
1906-
"uri": "/domainnames/{domainName}",
1906+
"uri": "/v1/domainnames/{domainName}",
19071907
"code": 200
19081908
}
19091909
}
@@ -2223,7 +2223,7 @@
22232223
"smithy.api#documentation": "<p>Removes an <code>ApiAssociation</code> object from a custom domain.</p>",
22242224
"smithy.api#http": {
22252225
"method": "DELETE",
2226-
"uri": "/domainnames/{domainName}/apiassociation",
2226+
"uri": "/v1/domainnames/{domainName}/apiassociation",
22272227
"code": 200
22282228
}
22292229
}
@@ -2285,7 +2285,7 @@
22852285
"hostedZoneId": {
22862286
"target": "com.amazonaws.appsync#String",
22872287
"traits": {
2288-
"smithy.api#documentation": "<p>The ID of your Amazon Route 53 hosted zone.</p>"
2288+
"smithy.api#documentation": "<p>The ID of your Amazon Route 53 hosted zone.</p>"
22892289
}
22902290
}
22912291
},
@@ -2543,7 +2543,7 @@
25432543
"smithy.api#documentation": "<p>Retrieves an <code>ApiAssociation</code> object.</p>",
25442544
"smithy.api#http": {
25452545
"method": "GET",
2546-
"uri": "/domainnames/{domainName}/apiassociation",
2546+
"uri": "/v1/domainnames/{domainName}/apiassociation",
25472547
"code": 200
25482548
}
25492549
}
@@ -2728,7 +2728,7 @@
27282728
"smithy.api#documentation": "<p>Retrieves a custom <code>DomainName</code> object.</p>",
27292729
"smithy.api#http": {
27302730
"method": "GET",
2731-
"uri": "/domainnames/{domainName}",
2731+
"uri": "/v1/domainnames/{domainName}",
27322732
"code": 200
27332733
}
27342734
}
@@ -3529,7 +3529,7 @@
35293529
"smithy.api#documentation": "<p>Lists multiple custom domain names.</p>",
35303530
"smithy.api#http": {
35313531
"method": "GET",
3532-
"uri": "/domainnames",
3532+
"uri": "/v1/domainnames",
35333533
"code": 200
35343534
}
35353535
}
@@ -5076,7 +5076,7 @@
50765076
"smithy.api#documentation": "<p>Updates a custom <code>DomainName</code> object.</p>",
50775077
"smithy.api#http": {
50785078
"method": "POST",
5079-
"uri": "/domainnames/{domainName}",
5079+
"uri": "/v1/domainnames/{domainName}",
50805080
"code": 200
50815081
}
50825082
}

0 commit comments

Comments
 (0)