@aws-sdk/client-appsync 3.121.0 → 3.123.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.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.123.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.122.0...v3.123.0) (2022-07-05)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **client-appsync:** fix domainnames routes ([#3773](https://github.com/aws/aws-sdk-js-v3/issues/3773)) ([f1ce95e](https://github.com/aws/aws-sdk-js-v3/commit/f1ce95e40249a3c4b5150f38b6d54bceb054f5c3))
12
+
13
+
14
+
15
+
16
+
6
17
  # [3.121.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.120.0...v3.121.0) (2022-06-30)
7
18
 
8
19
 
@@ -11,7 +11,8 @@ const serializeAws_restJson1AssociateApiCommand = async (input, context) => {
11
11
  const headers = {
12
12
  "content-type": "application/json",
13
13
  };
14
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/domainnames/{domainName}/apiassociation";
14
+ let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
15
+ "/v1/domainnames/{domainName}/apiassociation";
15
16
  if (input.domainName !== undefined) {
16
17
  const labelValue = input.domainName;
17
18
  if (labelValue.length <= 0) {
@@ -171,7 +172,7 @@ const serializeAws_restJson1CreateDomainNameCommand = async (input, context) =>
171
172
  const headers = {
172
173
  "content-type": "application/json",
173
174
  };
174
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/domainnames";
175
+ const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v1/domainnames";
175
176
  let body;
176
177
  body = JSON.stringify({
177
178
  ...(input.certificateArn !== undefined &&
@@ -469,7 +470,7 @@ exports.serializeAws_restJson1DeleteDataSourceCommand = serializeAws_restJson1De
469
470
  const serializeAws_restJson1DeleteDomainNameCommand = async (input, context) => {
470
471
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
471
472
  const headers = {};
472
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/domainnames/{domainName}";
473
+ let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v1/domainnames/{domainName}";
473
474
  if (input.domainName !== undefined) {
474
475
  const labelValue = input.domainName;
475
476
  if (labelValue.length <= 0) {
@@ -640,7 +641,8 @@ exports.serializeAws_restJson1DeleteTypeCommand = serializeAws_restJson1DeleteTy
640
641
  const serializeAws_restJson1DisassociateApiCommand = async (input, context) => {
641
642
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
642
643
  const headers = {};
643
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/domainnames/{domainName}/apiassociation";
644
+ let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
645
+ "/v1/domainnames/{domainName}/apiassociation";
644
646
  if (input.domainName !== undefined) {
645
647
  const labelValue = input.domainName;
646
648
  if (labelValue.length <= 0) {
@@ -692,7 +694,8 @@ exports.serializeAws_restJson1FlushApiCacheCommand = serializeAws_restJson1Flush
692
694
  const serializeAws_restJson1GetApiAssociationCommand = async (input, context) => {
693
695
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
694
696
  const headers = {};
695
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/domainnames/{domainName}/apiassociation";
697
+ let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
698
+ "/v1/domainnames/{domainName}/apiassociation";
696
699
  if (input.domainName !== undefined) {
697
700
  const labelValue = input.domainName;
698
701
  if (labelValue.length <= 0) {
@@ -780,7 +783,7 @@ exports.serializeAws_restJson1GetDataSourceCommand = serializeAws_restJson1GetDa
780
783
  const serializeAws_restJson1GetDomainNameCommand = async (input, context) => {
781
784
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
782
785
  const headers = {};
783
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/domainnames/{domainName}";
786
+ let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v1/domainnames/{domainName}";
784
787
  if (input.domainName !== undefined) {
785
788
  const labelValue = input.domainName;
786
789
  if (labelValue.length <= 0) {
@@ -1074,7 +1077,7 @@ exports.serializeAws_restJson1ListDataSourcesCommand = serializeAws_restJson1Lis
1074
1077
  const serializeAws_restJson1ListDomainNamesCommand = async (input, context) => {
1075
1078
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1076
1079
  const headers = {};
1077
- const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/domainnames";
1080
+ const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v1/domainnames";
1078
1081
  const query = {
1079
1082
  ...(input.nextToken !== undefined && { nextToken: input.nextToken }),
1080
1083
  ...(input.maxResults !== undefined && { maxResults: input.maxResults.toString() }),
@@ -1528,7 +1531,7 @@ const serializeAws_restJson1UpdateDomainNameCommand = async (input, context) =>
1528
1531
  const headers = {
1529
1532
  "content-type": "application/json",
1530
1533
  };
1531
- let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/domainnames/{domainName}";
1534
+ let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v1/domainnames/{domainName}";
1532
1535
  if (input.domainName !== undefined) {
1533
1536
  const labelValue = input.domainName;
1534
1537
  if (labelValue.length <= 0) {
@@ -13,7 +13,8 @@ export var serializeAws_restJson1AssociateApiCommand = function (input, context)
13
13
  headers = {
14
14
  "content-type": "application/json",
15
15
  };
16
- resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/domainnames/{domainName}/apiassociation";
16
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
17
+ "/v1/domainnames/{domainName}/apiassociation";
17
18
  if (input.domainName !== undefined) {
18
19
  labelValue = input.domainName;
19
20
  if (labelValue.length <= 0) {
@@ -171,7 +172,7 @@ export var serializeAws_restJson1CreateDomainNameCommand = function (input, cont
171
172
  headers = {
172
173
  "content-type": "application/json",
173
174
  };
174
- resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/domainnames";
175
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/domainnames";
175
176
  body = JSON.stringify(__assign(__assign(__assign({}, (input.certificateArn !== undefined &&
176
177
  input.certificateArn !== null && { certificateArn: input.certificateArn })), (input.description !== undefined && input.description !== null && { description: input.description })), (input.domainName !== undefined && input.domainName !== null && { domainName: input.domainName })));
177
178
  return [2, new __HttpRequest({
@@ -473,7 +474,7 @@ export var serializeAws_restJson1DeleteDomainNameCommand = function (input, cont
473
474
  case 1:
474
475
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
475
476
  headers = {};
476
- resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/domainnames/{domainName}";
477
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/domainnames/{domainName}";
477
478
  if (input.domainName !== undefined) {
478
479
  labelValue = input.domainName;
479
480
  if (labelValue.length <= 0) {
@@ -669,7 +670,8 @@ export var serializeAws_restJson1DisassociateApiCommand = function (input, conte
669
670
  case 1:
670
671
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
671
672
  headers = {};
672
- resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/domainnames/{domainName}/apiassociation";
673
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
674
+ "/v1/domainnames/{domainName}/apiassociation";
673
675
  if (input.domainName !== undefined) {
674
676
  labelValue = input.domainName;
675
677
  if (labelValue.length <= 0) {
@@ -731,7 +733,8 @@ export var serializeAws_restJson1GetApiAssociationCommand = function (input, con
731
733
  case 1:
732
734
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
733
735
  headers = {};
734
- resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/domainnames/{domainName}/apiassociation";
736
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
737
+ "/v1/domainnames/{domainName}/apiassociation";
735
738
  if (input.domainName !== undefined) {
736
739
  labelValue = input.domainName;
737
740
  if (labelValue.length <= 0) {
@@ -834,7 +837,7 @@ export var serializeAws_restJson1GetDomainNameCommand = function (input, context
834
837
  case 1:
835
838
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
836
839
  headers = {};
837
- resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/domainnames/{domainName}";
840
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/domainnames/{domainName}";
838
841
  if (input.domainName !== undefined) {
839
842
  labelValue = input.domainName;
840
843
  if (labelValue.length <= 0) {
@@ -1162,7 +1165,7 @@ export var serializeAws_restJson1ListDomainNamesCommand = function (input, conte
1162
1165
  case 1:
1163
1166
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1164
1167
  headers = {};
1165
- resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/domainnames";
1168
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/domainnames";
1166
1169
  query = __assign(__assign({}, (input.nextToken !== undefined && { nextToken: input.nextToken })), (input.maxResults !== undefined && { maxResults: input.maxResults.toString() }));
1167
1170
  return [2, new __HttpRequest({
1168
1171
  protocol: protocol,
@@ -1639,7 +1642,7 @@ export var serializeAws_restJson1UpdateDomainNameCommand = function (input, cont
1639
1642
  headers = {
1640
1643
  "content-type": "application/json",
1641
1644
  };
1642
- resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/domainnames/{domainName}";
1645
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/v1/domainnames/{domainName}";
1643
1646
  if (input.domainName !== undefined) {
1644
1647
  labelValue = input.domainName;
1645
1648
  if (labelValue.length <= 0) {
@@ -1223,7 +1223,7 @@ export interface DomainNameConfig {
1223
1223
  */
1224
1224
  appsyncDomainName?: string;
1225
1225
  /**
1226
- * <p>The ID of your Amazon Route 53 hosted zone.</p>
1226
+ * <p>The ID of your Amazon Route 53 hosted zone.</p>
1227
1227
  */
1228
1228
  hostedZoneId?: string;
1229
1229
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-appsync",
3
3
  "description": "AWS SDK for JavaScript Appsync Client for Node.js, Browser and React Native",
4
- "version": "3.121.0",
4
+ "version": "3.123.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",