@aws-sdk/client-api-gateway 3.693.0 → 3.698.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/README.md +32 -0
  2. package/dist-cjs/index.js +241 -8
  3. package/dist-es/APIGateway.js +8 -0
  4. package/dist-es/commands/CreateDomainNameAccessAssociationCommand.js +22 -0
  5. package/dist-es/commands/DeleteDomainNameAccessAssociationCommand.js +22 -0
  6. package/dist-es/commands/GetDomainNameAccessAssociationsCommand.js +22 -0
  7. package/dist-es/commands/RejectDomainNameAccessAssociationCommand.js +22 -0
  8. package/dist-es/commands/index.js +4 -0
  9. package/dist-es/models/models_0.js +7 -0
  10. package/dist-es/protocols/Aws_restJson1.js +153 -6
  11. package/dist-types/APIGateway.d.ts +29 -0
  12. package/dist-types/APIGatewayClient.d.ts +6 -2
  13. package/dist-types/commands/CreateBasePathMappingCommand.d.ts +1 -0
  14. package/dist-types/commands/CreateDomainNameAccessAssociationCommand.d.ts +98 -0
  15. package/dist-types/commands/CreateDomainNameCommand.d.ts +5 -0
  16. package/dist-types/commands/DeleteBasePathMappingCommand.d.ts +1 -0
  17. package/dist-types/commands/DeleteDomainNameAccessAssociationCommand.d.ts +85 -0
  18. package/dist-types/commands/DeleteDomainNameCommand.d.ts +1 -0
  19. package/dist-types/commands/GetBasePathMappingCommand.d.ts +1 -0
  20. package/dist-types/commands/GetBasePathMappingsCommand.d.ts +1 -0
  21. package/dist-types/commands/GetDomainNameAccessAssociationsCommand.d.ts +96 -0
  22. package/dist-types/commands/GetDomainNameCommand.d.ts +5 -0
  23. package/dist-types/commands/GetDomainNamesCommand.d.ts +5 -0
  24. package/dist-types/commands/RejectDomainNameAccessAssociationCommand.d.ts +86 -0
  25. package/dist-types/commands/UpdateBasePathMappingCommand.d.ts +1 -0
  26. package/dist-types/commands/UpdateDomainNameCommand.d.ts +5 -0
  27. package/dist-types/commands/index.d.ts +4 -0
  28. package/dist-types/models/models_0.d.ts +259 -6
  29. package/dist-types/protocols/Aws_restJson1.d.ts +36 -0
  30. package/dist-types/ts3.4/APIGateway.d.ts +87 -0
  31. package/dist-types/ts3.4/APIGatewayClient.d.ts +24 -0
  32. package/dist-types/ts3.4/commands/CreateDomainNameAccessAssociationCommand.d.ts +51 -0
  33. package/dist-types/ts3.4/commands/DeleteDomainNameAccessAssociationCommand.d.ts +47 -0
  34. package/dist-types/ts3.4/commands/GetDomainNameAccessAssociationsCommand.d.ts +51 -0
  35. package/dist-types/ts3.4/commands/RejectDomainNameAccessAssociationCommand.d.ts +47 -0
  36. package/dist-types/ts3.4/commands/index.d.ts +4 -0
  37. package/dist-types/ts3.4/models/models_0.d.ts +53 -0
  38. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +48 -0
  39. package/package.json +37 -37
@@ -6,6 +6,7 @@ import { CreateBasePathMappingCommand, } from "./commands/CreateBasePathMappingC
6
6
  import { CreateDeploymentCommand, } from "./commands/CreateDeploymentCommand";
7
7
  import { CreateDocumentationPartCommand, } from "./commands/CreateDocumentationPartCommand";
8
8
  import { CreateDocumentationVersionCommand, } from "./commands/CreateDocumentationVersionCommand";
9
+ import { CreateDomainNameAccessAssociationCommand, } from "./commands/CreateDomainNameAccessAssociationCommand";
9
10
  import { CreateDomainNameCommand, } from "./commands/CreateDomainNameCommand";
10
11
  import { CreateModelCommand } from "./commands/CreateModelCommand";
11
12
  import { CreateRequestValidatorCommand, } from "./commands/CreateRequestValidatorCommand";
@@ -22,6 +23,7 @@ import { DeleteClientCertificateCommand, } from "./commands/DeleteClientCertific
22
23
  import { DeleteDeploymentCommand, } from "./commands/DeleteDeploymentCommand";
23
24
  import { DeleteDocumentationPartCommand, } from "./commands/DeleteDocumentationPartCommand";
24
25
  import { DeleteDocumentationVersionCommand, } from "./commands/DeleteDocumentationVersionCommand";
26
+ import { DeleteDomainNameAccessAssociationCommand, } from "./commands/DeleteDomainNameAccessAssociationCommand";
25
27
  import { DeleteDomainNameCommand, } from "./commands/DeleteDomainNameCommand";
26
28
  import { DeleteGatewayResponseCommand, } from "./commands/DeleteGatewayResponseCommand";
27
29
  import { DeleteIntegrationCommand, } from "./commands/DeleteIntegrationCommand";
@@ -54,6 +56,7 @@ import { GetDocumentationPartCommand, } from "./commands/GetDocumentationPartCom
54
56
  import { GetDocumentationPartsCommand, } from "./commands/GetDocumentationPartsCommand";
55
57
  import { GetDocumentationVersionCommand, } from "./commands/GetDocumentationVersionCommand";
56
58
  import { GetDocumentationVersionsCommand, } from "./commands/GetDocumentationVersionsCommand";
59
+ import { GetDomainNameAccessAssociationsCommand, } from "./commands/GetDomainNameAccessAssociationsCommand";
57
60
  import { GetDomainNameCommand, } from "./commands/GetDomainNameCommand";
58
61
  import { GetDomainNamesCommand, } from "./commands/GetDomainNamesCommand";
59
62
  import { GetExportCommand } from "./commands/GetExportCommand";
@@ -94,6 +97,7 @@ import { PutIntegrationResponseCommand, } from "./commands/PutIntegrationRespons
94
97
  import { PutMethodCommand } from "./commands/PutMethodCommand";
95
98
  import { PutMethodResponseCommand, } from "./commands/PutMethodResponseCommand";
96
99
  import { PutRestApiCommand } from "./commands/PutRestApiCommand";
100
+ import { RejectDomainNameAccessAssociationCommand, } from "./commands/RejectDomainNameAccessAssociationCommand";
97
101
  import { TagResourceCommand } from "./commands/TagResourceCommand";
98
102
  import { TestInvokeAuthorizerCommand, } from "./commands/TestInvokeAuthorizerCommand";
99
103
  import { TestInvokeMethodCommand, } from "./commands/TestInvokeMethodCommand";
@@ -128,6 +132,7 @@ const commands = {
128
132
  CreateDocumentationPartCommand,
129
133
  CreateDocumentationVersionCommand,
130
134
  CreateDomainNameCommand,
135
+ CreateDomainNameAccessAssociationCommand,
131
136
  CreateModelCommand,
132
137
  CreateRequestValidatorCommand,
133
138
  CreateResourceCommand,
@@ -144,6 +149,7 @@ const commands = {
144
149
  DeleteDocumentationPartCommand,
145
150
  DeleteDocumentationVersionCommand,
146
151
  DeleteDomainNameCommand,
152
+ DeleteDomainNameAccessAssociationCommand,
147
153
  DeleteGatewayResponseCommand,
148
154
  DeleteIntegrationCommand,
149
155
  DeleteIntegrationResponseCommand,
@@ -176,6 +182,7 @@ const commands = {
176
182
  GetDocumentationVersionCommand,
177
183
  GetDocumentationVersionsCommand,
178
184
  GetDomainNameCommand,
185
+ GetDomainNameAccessAssociationsCommand,
179
186
  GetDomainNamesCommand,
180
187
  GetExportCommand,
181
188
  GetGatewayResponseCommand,
@@ -215,6 +222,7 @@ const commands = {
215
222
  PutMethodCommand,
216
223
  PutMethodResponseCommand,
217
224
  PutRestApiCommand,
225
+ RejectDomainNameAccessAssociationCommand,
218
226
  TagResourceCommand,
219
227
  TestInvokeAuthorizerCommand,
220
228
  TestInvokeMethodCommand,
@@ -0,0 +1,22 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_CreateDomainNameAccessAssociationCommand, se_CreateDomainNameAccessAssociationCommand, } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class CreateDomainNameAccessAssociationCommand extends $Command
8
+ .classBuilder()
9
+ .ep(commonParams)
10
+ .m(function (Command, cs, config, o) {
11
+ return [
12
+ getSerdePlugin(config, this.serialize, this.deserialize),
13
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
+ ];
15
+ })
16
+ .s("BackplaneControlService", "CreateDomainNameAccessAssociation", {})
17
+ .n("APIGatewayClient", "CreateDomainNameAccessAssociationCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_CreateDomainNameAccessAssociationCommand)
20
+ .de(de_CreateDomainNameAccessAssociationCommand)
21
+ .build() {
22
+ }
@@ -0,0 +1,22 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_DeleteDomainNameAccessAssociationCommand, se_DeleteDomainNameAccessAssociationCommand, } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class DeleteDomainNameAccessAssociationCommand extends $Command
8
+ .classBuilder()
9
+ .ep(commonParams)
10
+ .m(function (Command, cs, config, o) {
11
+ return [
12
+ getSerdePlugin(config, this.serialize, this.deserialize),
13
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
+ ];
15
+ })
16
+ .s("BackplaneControlService", "DeleteDomainNameAccessAssociation", {})
17
+ .n("APIGatewayClient", "DeleteDomainNameAccessAssociationCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_DeleteDomainNameAccessAssociationCommand)
20
+ .de(de_DeleteDomainNameAccessAssociationCommand)
21
+ .build() {
22
+ }
@@ -0,0 +1,22 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_GetDomainNameAccessAssociationsCommand, se_GetDomainNameAccessAssociationsCommand, } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class GetDomainNameAccessAssociationsCommand extends $Command
8
+ .classBuilder()
9
+ .ep(commonParams)
10
+ .m(function (Command, cs, config, o) {
11
+ return [
12
+ getSerdePlugin(config, this.serialize, this.deserialize),
13
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
+ ];
15
+ })
16
+ .s("BackplaneControlService", "GetDomainNameAccessAssociations", {})
17
+ .n("APIGatewayClient", "GetDomainNameAccessAssociationsCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_GetDomainNameAccessAssociationsCommand)
20
+ .de(de_GetDomainNameAccessAssociationsCommand)
21
+ .build() {
22
+ }
@@ -0,0 +1,22 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_RejectDomainNameAccessAssociationCommand, se_RejectDomainNameAccessAssociationCommand, } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class RejectDomainNameAccessAssociationCommand extends $Command
8
+ .classBuilder()
9
+ .ep(commonParams)
10
+ .m(function (Command, cs, config, o) {
11
+ return [
12
+ getSerdePlugin(config, this.serialize, this.deserialize),
13
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
+ ];
15
+ })
16
+ .s("BackplaneControlService", "RejectDomainNameAccessAssociation", {})
17
+ .n("APIGatewayClient", "RejectDomainNameAccessAssociationCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_RejectDomainNameAccessAssociationCommand)
20
+ .de(de_RejectDomainNameAccessAssociationCommand)
21
+ .build() {
22
+ }
@@ -4,6 +4,7 @@ export * from "./CreateBasePathMappingCommand";
4
4
  export * from "./CreateDeploymentCommand";
5
5
  export * from "./CreateDocumentationPartCommand";
6
6
  export * from "./CreateDocumentationVersionCommand";
7
+ export * from "./CreateDomainNameAccessAssociationCommand";
7
8
  export * from "./CreateDomainNameCommand";
8
9
  export * from "./CreateModelCommand";
9
10
  export * from "./CreateRequestValidatorCommand";
@@ -20,6 +21,7 @@ export * from "./DeleteClientCertificateCommand";
20
21
  export * from "./DeleteDeploymentCommand";
21
22
  export * from "./DeleteDocumentationPartCommand";
22
23
  export * from "./DeleteDocumentationVersionCommand";
24
+ export * from "./DeleteDomainNameAccessAssociationCommand";
23
25
  export * from "./DeleteDomainNameCommand";
24
26
  export * from "./DeleteGatewayResponseCommand";
25
27
  export * from "./DeleteIntegrationCommand";
@@ -52,6 +54,7 @@ export * from "./GetDocumentationPartCommand";
52
54
  export * from "./GetDocumentationPartsCommand";
53
55
  export * from "./GetDocumentationVersionCommand";
54
56
  export * from "./GetDocumentationVersionsCommand";
57
+ export * from "./GetDomainNameAccessAssociationsCommand";
55
58
  export * from "./GetDomainNameCommand";
56
59
  export * from "./GetDomainNamesCommand";
57
60
  export * from "./GetExportCommand";
@@ -92,6 +95,7 @@ export * from "./PutIntegrationResponseCommand";
92
95
  export * from "./PutMethodCommand";
93
96
  export * from "./PutMethodResponseCommand";
94
97
  export * from "./PutRestApiCommand";
98
+ export * from "./RejectDomainNameAccessAssociationCommand";
95
99
  export * from "./TagResourceCommand";
96
100
  export * from "./TestInvokeAuthorizerCommand";
97
101
  export * from "./TestInvokeMethodCommand";
@@ -1,4 +1,7 @@
1
1
  import { APIGatewayServiceException as __BaseException } from "./APIGatewayServiceException";
2
+ export const AccessAssociationSourceType = {
3
+ VPCE: "VPCE",
4
+ };
2
5
  export const ApiKeysFormat = {
3
6
  csv: "csv",
4
7
  };
@@ -203,6 +206,10 @@ export const LocationStatusType = {
203
206
  DOCUMENTED: "DOCUMENTED",
204
207
  UNDOCUMENTED: "UNDOCUMENTED",
205
208
  };
209
+ export const ResourceOwner = {
210
+ OTHER_ACCOUNTS: "OTHER_ACCOUNTS",
211
+ SELF: "SELF",
212
+ };
206
213
  export const PutMode = {
207
214
  Merge: "merge",
208
215
  Overwrite: "overwrite",
@@ -52,13 +52,16 @@ export const se_CreateBasePathMappingCommand = async (input, context) => {
52
52
  };
53
53
  b.bp("/domainnames/{domainName}/basepathmappings");
54
54
  b.p("domainName", () => input.domainName, "{domainName}", false);
55
+ const query = map({
56
+ [_dNI]: [, input[_dNI]],
57
+ });
55
58
  let body;
56
59
  body = JSON.stringify(take(input, {
57
60
  basePath: [],
58
61
  restApiId: [],
59
62
  stage: [],
60
63
  }));
61
- b.m("POST").h(headers).b(body);
64
+ b.m("POST").h(headers).q(query).b(body);
62
65
  return b.build();
63
66
  };
64
67
  export const se_CreateDeploymentCommand = async (input, context) => {
@@ -130,6 +133,7 @@ export const se_CreateDomainNameCommand = async (input, context) => {
130
133
  endpointConfiguration: (_) => _json(_),
131
134
  mutualTlsAuthentication: (_) => _json(_),
132
135
  ownershipVerificationCertificateArn: [],
136
+ policy: [],
133
137
  regionalCertificateArn: [],
134
138
  regionalCertificateName: [],
135
139
  securityPolicy: [],
@@ -138,6 +142,22 @@ export const se_CreateDomainNameCommand = async (input, context) => {
138
142
  b.m("POST").h(headers).b(body);
139
143
  return b.build();
140
144
  };
145
+ export const se_CreateDomainNameAccessAssociationCommand = async (input, context) => {
146
+ const b = rb(input, context);
147
+ const headers = {
148
+ "content-type": "application/json",
149
+ };
150
+ b.bp("/domainnameaccessassociations");
151
+ let body;
152
+ body = JSON.stringify(take(input, {
153
+ accessAssociationSource: [],
154
+ accessAssociationSourceType: [],
155
+ domainNameArn: [],
156
+ tags: (_) => _json(_),
157
+ }));
158
+ b.m("POST").h(headers).b(body);
159
+ return b.build();
160
+ };
141
161
  export const se_CreateModelCommand = async (input, context) => {
142
162
  const b = rb(input, context);
143
163
  const headers = {
@@ -306,8 +326,11 @@ export const se_DeleteBasePathMappingCommand = async (input, context) => {
306
326
  b.bp("/domainnames/{domainName}/basepathmappings/{basePath}");
307
327
  b.p("domainName", () => input.domainName, "{domainName}", false);
308
328
  b.p("basePath", () => input.basePath, "{basePath}", false);
329
+ const query = map({
330
+ [_dNI]: [, input[_dNI]],
331
+ });
309
332
  let body;
310
- b.m("DELETE").h(headers).b(body);
333
+ b.m("DELETE").h(headers).q(query).b(body);
311
334
  return b.build();
312
335
  };
313
336
  export const se_DeleteClientCertificateCommand = async (input, context) => {
@@ -354,6 +377,18 @@ export const se_DeleteDomainNameCommand = async (input, context) => {
354
377
  const headers = {};
355
378
  b.bp("/domainnames/{domainName}");
356
379
  b.p("domainName", () => input.domainName, "{domainName}", false);
380
+ const query = map({
381
+ [_dNI]: [, input[_dNI]],
382
+ });
383
+ let body;
384
+ b.m("DELETE").h(headers).q(query).b(body);
385
+ return b.build();
386
+ };
387
+ export const se_DeleteDomainNameAccessAssociationCommand = async (input, context) => {
388
+ const b = rb(input, context);
389
+ const headers = {};
390
+ b.bp("/domainnameaccessassociations/{domainNameAccessAssociationArn}");
391
+ b.p("domainNameAccessAssociationArn", () => input.domainNameAccessAssociationArn, "{domainNameAccessAssociationArn}", false);
357
392
  let body;
358
393
  b.m("DELETE").h(headers).b(body);
359
394
  return b.build();
@@ -589,8 +624,11 @@ export const se_GetBasePathMappingCommand = async (input, context) => {
589
624
  b.bp("/domainnames/{domainName}/basepathmappings/{basePath}");
590
625
  b.p("domainName", () => input.domainName, "{domainName}", false);
591
626
  b.p("basePath", () => input.basePath, "{basePath}", false);
627
+ const query = map({
628
+ [_dNI]: [, input[_dNI]],
629
+ });
592
630
  let body;
593
- b.m("GET").h(headers).b(body);
631
+ b.m("GET").h(headers).q(query).b(body);
594
632
  return b.build();
595
633
  };
596
634
  export const se_GetBasePathMappingsCommand = async (input, context) => {
@@ -599,6 +637,7 @@ export const se_GetBasePathMappingsCommand = async (input, context) => {
599
637
  b.bp("/domainnames/{domainName}/basepathmappings");
600
638
  b.p("domainName", () => input.domainName, "{domainName}", false);
601
639
  const query = map({
640
+ [_dNI]: [, input[_dNI]],
602
641
  [_p]: [, input[_p]],
603
642
  [_l]: [() => input.limit !== void 0, () => input[_l].toString()],
604
643
  });
@@ -708,8 +747,24 @@ export const se_GetDomainNameCommand = async (input, context) => {
708
747
  const headers = {};
709
748
  b.bp("/domainnames/{domainName}");
710
749
  b.p("domainName", () => input.domainName, "{domainName}", false);
750
+ const query = map({
751
+ [_dNI]: [, input[_dNI]],
752
+ });
711
753
  let body;
712
- b.m("GET").h(headers).b(body);
754
+ b.m("GET").h(headers).q(query).b(body);
755
+ return b.build();
756
+ };
757
+ export const se_GetDomainNameAccessAssociationsCommand = async (input, context) => {
758
+ const b = rb(input, context);
759
+ const headers = {};
760
+ b.bp("/domainnameaccessassociations");
761
+ const query = map({
762
+ [_p]: [, input[_p]],
763
+ [_l]: [() => input.limit !== void 0, () => input[_l].toString()],
764
+ [_rO]: [, input[_rO]],
765
+ });
766
+ let body;
767
+ b.m("GET").h(headers).q(query).b(body);
713
768
  return b.build();
714
769
  };
715
770
  export const se_GetDomainNamesCommand = async (input, context) => {
@@ -719,6 +774,7 @@ export const se_GetDomainNamesCommand = async (input, context) => {
719
774
  const query = map({
720
775
  [_p]: [, input[_p]],
721
776
  [_l]: [() => input.limit !== void 0, () => input[_l].toString()],
777
+ [_rO]: [, input[_rO]],
722
778
  });
723
779
  let body;
724
780
  b.m("GET").h(headers).q(query).b(body);
@@ -1249,6 +1305,18 @@ export const se_PutRestApiCommand = async (input, context) => {
1249
1305
  b.m("PUT").h(headers).q(query).b(body);
1250
1306
  return b.build();
1251
1307
  };
1308
+ export const se_RejectDomainNameAccessAssociationCommand = async (input, context) => {
1309
+ const b = rb(input, context);
1310
+ const headers = {};
1311
+ b.bp("/rejectdomainnameaccessassociations");
1312
+ const query = map({
1313
+ [_dNAAA]: [, __expectNonNull(input[_dNAAA], `domainNameAccessAssociationArn`)],
1314
+ [_dNA]: [, __expectNonNull(input[_dNA], `domainNameArn`)],
1315
+ });
1316
+ let body;
1317
+ b.m("POST").h(headers).q(query).b(body);
1318
+ return b.build();
1319
+ };
1252
1320
  export const se_TagResourceCommand = async (input, context) => {
1253
1321
  const b = rb(input, context);
1254
1322
  const headers = {
@@ -1366,11 +1434,14 @@ export const se_UpdateBasePathMappingCommand = async (input, context) => {
1366
1434
  b.bp("/domainnames/{domainName}/basepathmappings/{basePath}");
1367
1435
  b.p("domainName", () => input.domainName, "{domainName}", false);
1368
1436
  b.p("basePath", () => input.basePath, "{basePath}", false);
1437
+ const query = map({
1438
+ [_dNI]: [, input[_dNI]],
1439
+ });
1369
1440
  let body;
1370
1441
  body = JSON.stringify(take(input, {
1371
1442
  patchOperations: (_) => _json(_),
1372
1443
  }));
1373
- b.m("PATCH").h(headers).b(body);
1444
+ b.m("PATCH").h(headers).q(query).b(body);
1374
1445
  return b.build();
1375
1446
  };
1376
1447
  export const se_UpdateClientCertificateCommand = async (input, context) => {
@@ -1439,11 +1510,14 @@ export const se_UpdateDomainNameCommand = async (input, context) => {
1439
1510
  };
1440
1511
  b.bp("/domainnames/{domainName}");
1441
1512
  b.p("domainName", () => input.domainName, "{domainName}", false);
1513
+ const query = map({
1514
+ [_dNI]: [, input[_dNI]],
1515
+ });
1442
1516
  let body;
1443
1517
  body = JSON.stringify(take(input, {
1444
1518
  patchOperations: (_) => _json(_),
1445
1519
  }));
1446
- b.m("PATCH").h(headers).b(body);
1520
+ b.m("PATCH").h(headers).q(query).b(body);
1447
1521
  return b.build();
1448
1522
  };
1449
1523
  export const se_UpdateGatewayResponseCommand = async (input, context) => {
@@ -1770,11 +1844,15 @@ export const de_CreateDomainNameCommand = async (output, context) => {
1770
1844
  distributionDomainName: __expectString,
1771
1845
  distributionHostedZoneId: __expectString,
1772
1846
  domainName: __expectString,
1847
+ domainNameArn: __expectString,
1848
+ domainNameId: __expectString,
1773
1849
  domainNameStatus: __expectString,
1774
1850
  domainNameStatusMessage: __expectString,
1775
1851
  endpointConfiguration: _json,
1852
+ managementPolicy: __expectString,
1776
1853
  mutualTlsAuthentication: _json,
1777
1854
  ownershipVerificationCertificateArn: __expectString,
1855
+ policy: __expectString,
1778
1856
  regionalCertificateArn: __expectString,
1779
1857
  regionalCertificateName: __expectString,
1780
1858
  regionalDomainName: __expectString,
@@ -1785,6 +1863,24 @@ export const de_CreateDomainNameCommand = async (output, context) => {
1785
1863
  Object.assign(contents, doc);
1786
1864
  return contents;
1787
1865
  };
1866
+ export const de_CreateDomainNameAccessAssociationCommand = async (output, context) => {
1867
+ if (output.statusCode !== 201 && output.statusCode >= 300) {
1868
+ return de_CommandError(output, context);
1869
+ }
1870
+ const contents = map({
1871
+ $metadata: deserializeMetadata(output),
1872
+ });
1873
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1874
+ const doc = take(data, {
1875
+ accessAssociationSource: __expectString,
1876
+ accessAssociationSourceType: __expectString,
1877
+ domainNameAccessAssociationArn: __expectString,
1878
+ domainNameArn: __expectString,
1879
+ tags: _json,
1880
+ });
1881
+ Object.assign(contents, doc);
1882
+ return contents;
1883
+ };
1788
1884
  export const de_CreateModelCommand = async (output, context) => {
1789
1885
  if (output.statusCode !== 201 && output.statusCode >= 300) {
1790
1886
  return de_CommandError(output, context);
@@ -2033,6 +2129,16 @@ export const de_DeleteDomainNameCommand = async (output, context) => {
2033
2129
  await collectBody(output.body, context);
2034
2130
  return contents;
2035
2131
  };
2132
+ export const de_DeleteDomainNameAccessAssociationCommand = async (output, context) => {
2133
+ if (output.statusCode !== 202 && output.statusCode >= 300) {
2134
+ return de_CommandError(output, context);
2135
+ }
2136
+ const contents = map({
2137
+ $metadata: deserializeMetadata(output),
2138
+ });
2139
+ await collectBody(output.body, context);
2140
+ return contents;
2141
+ };
2036
2142
  export const de_DeleteGatewayResponseCommand = async (output, context) => {
2037
2143
  if (output.statusCode !== 202 && output.statusCode >= 300) {
2038
2144
  return de_CommandError(output, context);
@@ -2470,11 +2576,15 @@ export const de_GetDomainNameCommand = async (output, context) => {
2470
2576
  distributionDomainName: __expectString,
2471
2577
  distributionHostedZoneId: __expectString,
2472
2578
  domainName: __expectString,
2579
+ domainNameArn: __expectString,
2580
+ domainNameId: __expectString,
2473
2581
  domainNameStatus: __expectString,
2474
2582
  domainNameStatusMessage: __expectString,
2475
2583
  endpointConfiguration: _json,
2584
+ managementPolicy: __expectString,
2476
2585
  mutualTlsAuthentication: _json,
2477
2586
  ownershipVerificationCertificateArn: __expectString,
2587
+ policy: __expectString,
2478
2588
  regionalCertificateArn: __expectString,
2479
2589
  regionalCertificateName: __expectString,
2480
2590
  regionalDomainName: __expectString,
@@ -2485,6 +2595,21 @@ export const de_GetDomainNameCommand = async (output, context) => {
2485
2595
  Object.assign(contents, doc);
2486
2596
  return contents;
2487
2597
  };
2598
+ export const de_GetDomainNameAccessAssociationsCommand = async (output, context) => {
2599
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2600
+ return de_CommandError(output, context);
2601
+ }
2602
+ const contents = map({
2603
+ $metadata: deserializeMetadata(output),
2604
+ });
2605
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2606
+ const doc = take(data, {
2607
+ items: [, _json, `item`],
2608
+ position: __expectString,
2609
+ });
2610
+ Object.assign(contents, doc);
2611
+ return contents;
2612
+ };
2488
2613
  export const de_GetDomainNamesCommand = async (output, context) => {
2489
2614
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2490
2615
  return de_CommandError(output, context);
@@ -3197,6 +3322,16 @@ export const de_PutRestApiCommand = async (output, context) => {
3197
3322
  Object.assign(contents, doc);
3198
3323
  return contents;
3199
3324
  };
3325
+ export const de_RejectDomainNameAccessAssociationCommand = async (output, context) => {
3326
+ if (output.statusCode !== 202 && output.statusCode >= 300) {
3327
+ return de_CommandError(output, context);
3328
+ }
3329
+ const contents = map({
3330
+ $metadata: deserializeMetadata(output),
3331
+ });
3332
+ await collectBody(output.body, context);
3333
+ return contents;
3334
+ };
3200
3335
  export const de_TagResourceCommand = async (output, context) => {
3201
3336
  if (output.statusCode !== 204 && output.statusCode >= 300) {
3202
3337
  return de_CommandError(output, context);
@@ -3418,11 +3553,15 @@ export const de_UpdateDomainNameCommand = async (output, context) => {
3418
3553
  distributionDomainName: __expectString,
3419
3554
  distributionHostedZoneId: __expectString,
3420
3555
  domainName: __expectString,
3556
+ domainNameArn: __expectString,
3557
+ domainNameId: __expectString,
3421
3558
  domainNameStatus: __expectString,
3422
3559
  domainNameStatusMessage: __expectString,
3423
3560
  endpointConfiguration: _json,
3561
+ managementPolicy: __expectString,
3424
3562
  mutualTlsAuthentication: _json,
3425
3563
  ownershipVerificationCertificateArn: __expectString,
3564
+ policy: __expectString,
3426
3565
  regionalCertificateArn: __expectString,
3427
3566
  regionalCertificateName: __expectString,
3428
3567
  regionalDomainName: __expectString,
@@ -3947,11 +4086,15 @@ const de_DomainName = (output, context) => {
3947
4086
  distributionDomainName: __expectString,
3948
4087
  distributionHostedZoneId: __expectString,
3949
4088
  domainName: __expectString,
4089
+ domainNameArn: __expectString,
4090
+ domainNameId: __expectString,
3950
4091
  domainNameStatus: __expectString,
3951
4092
  domainNameStatusMessage: __expectString,
3952
4093
  endpointConfiguration: _json,
4094
+ managementPolicy: __expectString,
3953
4095
  mutualTlsAuthentication: _json,
3954
4096
  ownershipVerificationCertificateArn: __expectString,
4097
+ policy: __expectString,
3955
4098
  regionalCertificateArn: __expectString,
3956
4099
  regionalCertificateName: __expectString,
3957
4100
  regionalDomainName: __expectString,
@@ -4136,6 +4279,9 @@ const _cT = "contentType";
4136
4279
  const _cd = "content-disposition";
4137
4280
  const _ct = "content-type";
4138
4281
  const _dI = "deploymentId";
4282
+ const _dNA = "domainNameArn";
4283
+ const _dNAAA = "domainNameAccessAssociationArn";
4284
+ const _dNI = "domainNameId";
4139
4285
  const _e = "embed";
4140
4286
  const _eD = "endDate";
4141
4287
  const _f = "flatten";
@@ -4153,6 +4299,7 @@ const _nQ = "nameQuery";
4153
4299
  const _p = "position";
4154
4300
  const _pa = "path";
4155
4301
  const _rAS = "retryAfterSeconds";
4302
+ const _rO = "resourceOwner";
4156
4303
  const _ra = "retry-after";
4157
4304
  const _sD = "startDate";
4158
4305
  const _t = "type";
@@ -6,6 +6,7 @@ import { CreateBasePathMappingCommandInput, CreateBasePathMappingCommandOutput }
6
6
  import { CreateDeploymentCommandInput, CreateDeploymentCommandOutput } from "./commands/CreateDeploymentCommand";
7
7
  import { CreateDocumentationPartCommandInput, CreateDocumentationPartCommandOutput } from "./commands/CreateDocumentationPartCommand";
8
8
  import { CreateDocumentationVersionCommandInput, CreateDocumentationVersionCommandOutput } from "./commands/CreateDocumentationVersionCommand";
9
+ import { CreateDomainNameAccessAssociationCommandInput, CreateDomainNameAccessAssociationCommandOutput } from "./commands/CreateDomainNameAccessAssociationCommand";
9
10
  import { CreateDomainNameCommandInput, CreateDomainNameCommandOutput } from "./commands/CreateDomainNameCommand";
10
11
  import { CreateModelCommandInput, CreateModelCommandOutput } from "./commands/CreateModelCommand";
11
12
  import { CreateRequestValidatorCommandInput, CreateRequestValidatorCommandOutput } from "./commands/CreateRequestValidatorCommand";
@@ -22,6 +23,7 @@ import { DeleteClientCertificateCommandInput, DeleteClientCertificateCommandOutp
22
23
  import { DeleteDeploymentCommandInput, DeleteDeploymentCommandOutput } from "./commands/DeleteDeploymentCommand";
23
24
  import { DeleteDocumentationPartCommandInput, DeleteDocumentationPartCommandOutput } from "./commands/DeleteDocumentationPartCommand";
24
25
  import { DeleteDocumentationVersionCommandInput, DeleteDocumentationVersionCommandOutput } from "./commands/DeleteDocumentationVersionCommand";
26
+ import { DeleteDomainNameAccessAssociationCommandInput, DeleteDomainNameAccessAssociationCommandOutput } from "./commands/DeleteDomainNameAccessAssociationCommand";
25
27
  import { DeleteDomainNameCommandInput, DeleteDomainNameCommandOutput } from "./commands/DeleteDomainNameCommand";
26
28
  import { DeleteGatewayResponseCommandInput, DeleteGatewayResponseCommandOutput } from "./commands/DeleteGatewayResponseCommand";
27
29
  import { DeleteIntegrationCommandInput, DeleteIntegrationCommandOutput } from "./commands/DeleteIntegrationCommand";
@@ -54,6 +56,7 @@ import { GetDocumentationPartCommandInput, GetDocumentationPartCommandOutput } f
54
56
  import { GetDocumentationPartsCommandInput, GetDocumentationPartsCommandOutput } from "./commands/GetDocumentationPartsCommand";
55
57
  import { GetDocumentationVersionCommandInput, GetDocumentationVersionCommandOutput } from "./commands/GetDocumentationVersionCommand";
56
58
  import { GetDocumentationVersionsCommandInput, GetDocumentationVersionsCommandOutput } from "./commands/GetDocumentationVersionsCommand";
59
+ import { GetDomainNameAccessAssociationsCommandInput, GetDomainNameAccessAssociationsCommandOutput } from "./commands/GetDomainNameAccessAssociationsCommand";
57
60
  import { GetDomainNameCommandInput, GetDomainNameCommandOutput } from "./commands/GetDomainNameCommand";
58
61
  import { GetDomainNamesCommandInput, GetDomainNamesCommandOutput } from "./commands/GetDomainNamesCommand";
59
62
  import { GetExportCommandInput, GetExportCommandOutput } from "./commands/GetExportCommand";
@@ -94,6 +97,7 @@ import { PutIntegrationResponseCommandInput, PutIntegrationResponseCommandOutput
94
97
  import { PutMethodCommandInput, PutMethodCommandOutput } from "./commands/PutMethodCommand";
95
98
  import { PutMethodResponseCommandInput, PutMethodResponseCommandOutput } from "./commands/PutMethodResponseCommand";
96
99
  import { PutRestApiCommandInput, PutRestApiCommandOutput } from "./commands/PutRestApiCommand";
100
+ import { RejectDomainNameAccessAssociationCommandInput, RejectDomainNameAccessAssociationCommandOutput } from "./commands/RejectDomainNameAccessAssociationCommand";
97
101
  import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
98
102
  import { TestInvokeAuthorizerCommandInput, TestInvokeAuthorizerCommandOutput } from "./commands/TestInvokeAuthorizerCommand";
99
103
  import { TestInvokeMethodCommandInput, TestInvokeMethodCommandOutput } from "./commands/TestInvokeMethodCommand";
@@ -164,6 +168,12 @@ export interface APIGateway {
164
168
  createDomainName(args: CreateDomainNameCommandInput, options?: __HttpHandlerOptions): Promise<CreateDomainNameCommandOutput>;
165
169
  createDomainName(args: CreateDomainNameCommandInput, cb: (err: any, data?: CreateDomainNameCommandOutput) => void): void;
166
170
  createDomainName(args: CreateDomainNameCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateDomainNameCommandOutput) => void): void;
171
+ /**
172
+ * @see {@link CreateDomainNameAccessAssociationCommand}
173
+ */
174
+ createDomainNameAccessAssociation(args: CreateDomainNameAccessAssociationCommandInput, options?: __HttpHandlerOptions): Promise<CreateDomainNameAccessAssociationCommandOutput>;
175
+ createDomainNameAccessAssociation(args: CreateDomainNameAccessAssociationCommandInput, cb: (err: any, data?: CreateDomainNameAccessAssociationCommandOutput) => void): void;
176
+ createDomainNameAccessAssociation(args: CreateDomainNameAccessAssociationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateDomainNameAccessAssociationCommandOutput) => void): void;
167
177
  /**
168
178
  * @see {@link CreateModelCommand}
169
179
  */
@@ -260,6 +270,12 @@ export interface APIGateway {
260
270
  deleteDomainName(args: DeleteDomainNameCommandInput, options?: __HttpHandlerOptions): Promise<DeleteDomainNameCommandOutput>;
261
271
  deleteDomainName(args: DeleteDomainNameCommandInput, cb: (err: any, data?: DeleteDomainNameCommandOutput) => void): void;
262
272
  deleteDomainName(args: DeleteDomainNameCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteDomainNameCommandOutput) => void): void;
273
+ /**
274
+ * @see {@link DeleteDomainNameAccessAssociationCommand}
275
+ */
276
+ deleteDomainNameAccessAssociation(args: DeleteDomainNameAccessAssociationCommandInput, options?: __HttpHandlerOptions): Promise<DeleteDomainNameAccessAssociationCommandOutput>;
277
+ deleteDomainNameAccessAssociation(args: DeleteDomainNameAccessAssociationCommandInput, cb: (err: any, data?: DeleteDomainNameAccessAssociationCommandOutput) => void): void;
278
+ deleteDomainNameAccessAssociation(args: DeleteDomainNameAccessAssociationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteDomainNameAccessAssociationCommandOutput) => void): void;
263
279
  /**
264
280
  * @see {@link DeleteGatewayResponseCommand}
265
281
  */
@@ -456,6 +472,13 @@ export interface APIGateway {
456
472
  getDomainName(args: GetDomainNameCommandInput, options?: __HttpHandlerOptions): Promise<GetDomainNameCommandOutput>;
457
473
  getDomainName(args: GetDomainNameCommandInput, cb: (err: any, data?: GetDomainNameCommandOutput) => void): void;
458
474
  getDomainName(args: GetDomainNameCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetDomainNameCommandOutput) => void): void;
475
+ /**
476
+ * @see {@link GetDomainNameAccessAssociationsCommand}
477
+ */
478
+ getDomainNameAccessAssociations(): Promise<GetDomainNameAccessAssociationsCommandOutput>;
479
+ getDomainNameAccessAssociations(args: GetDomainNameAccessAssociationsCommandInput, options?: __HttpHandlerOptions): Promise<GetDomainNameAccessAssociationsCommandOutput>;
480
+ getDomainNameAccessAssociations(args: GetDomainNameAccessAssociationsCommandInput, cb: (err: any, data?: GetDomainNameAccessAssociationsCommandOutput) => void): void;
481
+ getDomainNameAccessAssociations(args: GetDomainNameAccessAssociationsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetDomainNameAccessAssociationsCommandOutput) => void): void;
459
482
  /**
460
483
  * @see {@link GetDomainNamesCommand}
461
484
  */
@@ -695,6 +718,12 @@ export interface APIGateway {
695
718
  putRestApi(args: PutRestApiCommandInput, options?: __HttpHandlerOptions): Promise<PutRestApiCommandOutput>;
696
719
  putRestApi(args: PutRestApiCommandInput, cb: (err: any, data?: PutRestApiCommandOutput) => void): void;
697
720
  putRestApi(args: PutRestApiCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PutRestApiCommandOutput) => void): void;
721
+ /**
722
+ * @see {@link RejectDomainNameAccessAssociationCommand}
723
+ */
724
+ rejectDomainNameAccessAssociation(args: RejectDomainNameAccessAssociationCommandInput, options?: __HttpHandlerOptions): Promise<RejectDomainNameAccessAssociationCommandOutput>;
725
+ rejectDomainNameAccessAssociation(args: RejectDomainNameAccessAssociationCommandInput, cb: (err: any, data?: RejectDomainNameAccessAssociationCommandOutput) => void): void;
726
+ rejectDomainNameAccessAssociation(args: RejectDomainNameAccessAssociationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: RejectDomainNameAccessAssociationCommandOutput) => void): void;
698
727
  /**
699
728
  * @see {@link TagResourceCommand}
700
729
  */