@aws-sdk/client-amp 3.229.0 → 3.230.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.
@@ -109,7 +109,7 @@ const serializeAws_restJson1DeleteAlertManagerDefinitionCommand = async (input,
109
109
  "/workspaces/{workspaceId}/alertmanager/definition";
110
110
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "workspaceId", () => input.workspaceId, "{workspaceId}", false);
111
111
  const query = map({
112
- clientToken: [, input.clientToken],
112
+ clientToken: [, input.clientToken ?? (0, uuid_1.v4)()],
113
113
  });
114
114
  let body;
115
115
  return new protocol_http_1.HttpRequest({
@@ -130,7 +130,7 @@ const serializeAws_restJson1DeleteLoggingConfigurationCommand = async (input, co
130
130
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workspaces/{workspaceId}/logging";
131
131
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "workspaceId", () => input.workspaceId, "{workspaceId}", false);
132
132
  const query = map({
133
- clientToken: [, input.clientToken],
133
+ clientToken: [, input.clientToken ?? (0, uuid_1.v4)()],
134
134
  });
135
135
  let body;
136
136
  return new protocol_http_1.HttpRequest({
@@ -153,7 +153,7 @@ const serializeAws_restJson1DeleteRuleGroupsNamespaceCommand = async (input, con
153
153
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "workspaceId", () => input.workspaceId, "{workspaceId}", false);
154
154
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "name", () => input.name, "{name}", false);
155
155
  const query = map({
156
- clientToken: [, input.clientToken],
156
+ clientToken: [, input.clientToken ?? (0, uuid_1.v4)()],
157
157
  });
158
158
  let body;
159
159
  return new protocol_http_1.HttpRequest({
@@ -174,7 +174,7 @@ const serializeAws_restJson1DeleteWorkspaceCommand = async (input, context) => {
174
174
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workspaces/{workspaceId}";
175
175
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "workspaceId", () => input.workspaceId, "{workspaceId}", false);
176
176
  const query = map({
177
- clientToken: [, input.clientToken],
177
+ clientToken: [, input.clientToken ?? (0, uuid_1.v4)()],
178
178
  });
179
179
  let body;
180
180
  return new protocol_http_1.HttpRequest({
@@ -102,7 +102,7 @@ export const serializeAws_restJson1DeleteAlertManagerDefinitionCommand = async (
102
102
  "/workspaces/{workspaceId}/alertmanager/definition";
103
103
  resolvedPath = __resolvedPath(resolvedPath, input, "workspaceId", () => input.workspaceId, "{workspaceId}", false);
104
104
  const query = map({
105
- clientToken: [, input.clientToken],
105
+ clientToken: [, input.clientToken ?? generateIdempotencyToken()],
106
106
  });
107
107
  let body;
108
108
  return new __HttpRequest({
@@ -122,7 +122,7 @@ export const serializeAws_restJson1DeleteLoggingConfigurationCommand = async (in
122
122
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workspaces/{workspaceId}/logging";
123
123
  resolvedPath = __resolvedPath(resolvedPath, input, "workspaceId", () => input.workspaceId, "{workspaceId}", false);
124
124
  const query = map({
125
- clientToken: [, input.clientToken],
125
+ clientToken: [, input.clientToken ?? generateIdempotencyToken()],
126
126
  });
127
127
  let body;
128
128
  return new __HttpRequest({
@@ -144,7 +144,7 @@ export const serializeAws_restJson1DeleteRuleGroupsNamespaceCommand = async (inp
144
144
  resolvedPath = __resolvedPath(resolvedPath, input, "workspaceId", () => input.workspaceId, "{workspaceId}", false);
145
145
  resolvedPath = __resolvedPath(resolvedPath, input, "name", () => input.name, "{name}", false);
146
146
  const query = map({
147
- clientToken: [, input.clientToken],
147
+ clientToken: [, input.clientToken ?? generateIdempotencyToken()],
148
148
  });
149
149
  let body;
150
150
  return new __HttpRequest({
@@ -164,7 +164,7 @@ export const serializeAws_restJson1DeleteWorkspaceCommand = async (input, contex
164
164
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workspaces/{workspaceId}";
165
165
  resolvedPath = __resolvedPath(resolvedPath, input, "workspaceId", () => input.workspaceId, "{workspaceId}", false);
166
166
  const query = map({
167
- clientToken: [, input.clientToken],
167
+ clientToken: [, input.clientToken ?? generateIdempotencyToken()],
168
168
  });
169
169
  let body;
170
170
  return new __HttpRequest({
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-amp",
3
3
  "description": "AWS SDK for JavaScript Amp Client for Node.js, Browser and React Native",
4
- "version": "3.229.0",
4
+ "version": "3.230.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",