@aws-sdk/client-amp 3.478.0 → 3.479.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.
@@ -87,6 +87,7 @@ const se_CreateWorkspaceCommand = async (input, context) => {
87
87
  body = JSON.stringify((0, smithy_client_1.take)(input, {
88
88
  alias: [],
89
89
  clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
90
+ kmsKeyArn: [],
90
91
  tags: (_) => (0, smithy_client_1._json)(_),
91
92
  }));
92
93
  b.m("POST").h(headers).b(body);
@@ -586,6 +587,7 @@ const de_CreateWorkspaceCommand = async (output, context) => {
586
587
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
587
588
  const doc = (0, smithy_client_1.take)(data, {
588
589
  arn: smithy_client_1.expectString,
590
+ kmsKeyArn: smithy_client_1.expectString,
589
591
  status: smithy_client_1._json,
590
592
  tags: smithy_client_1._json,
591
593
  workspaceId: smithy_client_1.expectString,
@@ -1800,6 +1802,7 @@ const de_WorkspaceDescription = (output, context) => {
1800
1802
  alias: smithy_client_1.expectString,
1801
1803
  arn: smithy_client_1.expectString,
1802
1804
  createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1805
+ kmsKeyArn: smithy_client_1.expectString,
1803
1806
  prometheusEndpoint: smithy_client_1.expectString,
1804
1807
  status: smithy_client_1._json,
1805
1808
  tags: smithy_client_1._json,
@@ -1811,6 +1814,7 @@ const de_WorkspaceSummary = (output, context) => {
1811
1814
  alias: smithy_client_1.expectString,
1812
1815
  arn: smithy_client_1.expectString,
1813
1816
  createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
1817
+ kmsKeyArn: smithy_client_1.expectString,
1814
1818
  status: smithy_client_1._json,
1815
1819
  tags: smithy_client_1._json,
1816
1820
  workspaceId: smithy_client_1.expectString,
@@ -79,6 +79,7 @@ export const se_CreateWorkspaceCommand = async (input, context) => {
79
79
  body = JSON.stringify(take(input, {
80
80
  alias: [],
81
81
  clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
82
+ kmsKeyArn: [],
82
83
  tags: (_) => _json(_),
83
84
  }));
84
85
  b.m("POST").h(headers).b(body);
@@ -552,6 +553,7 @@ export const de_CreateWorkspaceCommand = async (output, context) => {
552
553
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
553
554
  const doc = take(data, {
554
555
  arn: __expectString,
556
+ kmsKeyArn: __expectString,
555
557
  status: _json,
556
558
  tags: _json,
557
559
  workspaceId: __expectString,
@@ -1744,6 +1746,7 @@ const de_WorkspaceDescription = (output, context) => {
1744
1746
  alias: __expectString,
1745
1747
  arn: __expectString,
1746
1748
  createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1749
+ kmsKeyArn: __expectString,
1747
1750
  prometheusEndpoint: __expectString,
1748
1751
  status: _json,
1749
1752
  tags: _json,
@@ -1755,6 +1758,7 @@ const de_WorkspaceSummary = (output, context) => {
1755
1758
  alias: __expectString,
1756
1759
  arn: __expectString,
1757
1760
  createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1761
+ kmsKeyArn: __expectString,
1758
1762
  status: _json,
1759
1763
  tags: _json,
1760
1764
  workspaceId: __expectString,
@@ -36,6 +36,7 @@ export interface CreateWorkspaceCommandOutput extends CreateWorkspaceResponse, _
36
36
  * tags: { // TagMap
37
37
  * "<keys>": "STRING_VALUE",
38
38
  * },
39
+ * kmsKeyArn: "STRING_VALUE",
39
40
  * };
40
41
  * const command = new CreateWorkspaceCommand(input);
41
42
  * const response = await client.send(command);
@@ -48,6 +49,7 @@ export interface CreateWorkspaceCommandOutput extends CreateWorkspaceResponse, _
48
49
  * // tags: { // TagMap
49
50
  * // "<keys>": "STRING_VALUE",
50
51
  * // },
52
+ * // kmsKeyArn: "STRING_VALUE",
51
53
  * // };
52
54
  *
53
55
  * ```
@@ -48,6 +48,7 @@ export interface DescribeWorkspaceCommandOutput extends DescribeWorkspaceRespons
48
48
  * // tags: { // TagMap
49
49
  * // "<keys>": "STRING_VALUE",
50
50
  * // },
51
+ * // kmsKeyArn: "STRING_VALUE",
51
52
  * // },
52
53
  * // };
53
54
  *
@@ -50,6 +50,7 @@ export interface ListWorkspacesCommandOutput extends ListWorkspacesResponse, __M
50
50
  * // tags: { // TagMap
51
51
  * // "<keys>": "STRING_VALUE",
52
52
  * // },
53
+ * // kmsKeyArn: "STRING_VALUE",
53
54
  * // },
54
55
  * // ],
55
56
  * // nextToken: "STRING_VALUE",
@@ -904,6 +904,11 @@ export interface CreateWorkspaceRequest {
904
904
  * Optional, user-provided tags for this workspace.
905
905
  */
906
906
  tags?: Record<string, string>;
907
+ /**
908
+ * @public
909
+ * Optional, customer managed KMS key used to encrypt data for this workspace
910
+ */
911
+ kmsKeyArn?: string;
907
912
  }
908
913
  /**
909
914
  * @public
@@ -971,6 +976,11 @@ export interface CreateWorkspaceResponse {
971
976
  * The tags of this workspace.
972
977
  */
973
978
  tags?: Record<string, string>;
979
+ /**
980
+ * @public
981
+ * Customer managed KMS key ARN for this workspace
982
+ */
983
+ kmsKeyArn?: string;
974
984
  }
975
985
  /**
976
986
  * @public
@@ -1039,6 +1049,11 @@ export interface WorkspaceDescription {
1039
1049
  * The tags of this workspace.
1040
1050
  */
1041
1051
  tags?: Record<string, string>;
1052
+ /**
1053
+ * @public
1054
+ * The customer managed KMS key of this workspace.
1055
+ */
1056
+ kmsKeyArn?: string;
1042
1057
  }
1043
1058
  /**
1044
1059
  * @public
@@ -1107,6 +1122,11 @@ export interface WorkspaceSummary {
1107
1122
  * The tags of this workspace.
1108
1123
  */
1109
1124
  tags?: Record<string, string>;
1125
+ /**
1126
+ * @public
1127
+ * Customer managed KMS key ARN for this workspace
1128
+ */
1129
+ kmsKeyArn?: string;
1110
1130
  }
1111
1131
  /**
1112
1132
  * @public
@@ -281,6 +281,7 @@ export interface CreateWorkspaceRequest {
281
281
  alias?: string;
282
282
  clientToken?: string;
283
283
  tags?: Record<string, string>;
284
+ kmsKeyArn?: string;
284
285
  }
285
286
  export declare const WorkspaceStatusCode: {
286
287
  readonly ACTIVE: "ACTIVE";
@@ -299,6 +300,7 @@ export interface CreateWorkspaceResponse {
299
300
  arn: string | undefined;
300
301
  status: WorkspaceStatus | undefined;
301
302
  tags?: Record<string, string>;
303
+ kmsKeyArn?: string;
302
304
  }
303
305
  export interface DeleteWorkspaceRequest {
304
306
  workspaceId: string | undefined;
@@ -315,6 +317,7 @@ export interface WorkspaceDescription {
315
317
  prometheusEndpoint?: string;
316
318
  createdAt: Date | undefined;
317
319
  tags?: Record<string, string>;
320
+ kmsKeyArn?: string;
318
321
  }
319
322
  export interface DescribeWorkspaceResponse {
320
323
  workspace: WorkspaceDescription | undefined;
@@ -331,6 +334,7 @@ export interface WorkspaceSummary {
331
334
  status: WorkspaceStatus | undefined;
332
335
  createdAt: Date | undefined;
333
336
  tags?: Record<string, string>;
337
+ kmsKeyArn?: string;
334
338
  }
335
339
  export interface ListWorkspacesResponse {
336
340
  workspaces: WorkspaceSummary[] | undefined;
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.478.0",
4
+ "version": "3.479.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",