@aws-sdk/client-grafana 3.575.0 → 3.577.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 (48) hide show
  1. package/README.md +48 -0
  2. package/dist-cjs/index.js +341 -0
  3. package/dist-es/Grafana.js +12 -0
  4. package/dist-es/commands/CreateWorkspaceServiceAccountCommand.js +24 -0
  5. package/dist-es/commands/CreateWorkspaceServiceAccountTokenCommand.js +25 -0
  6. package/dist-es/commands/DeleteWorkspaceServiceAccountCommand.js +24 -0
  7. package/dist-es/commands/DeleteWorkspaceServiceAccountTokenCommand.js +24 -0
  8. package/dist-es/commands/ListWorkspaceServiceAccountTokensCommand.js +24 -0
  9. package/dist-es/commands/ListWorkspaceServiceAccountsCommand.js +24 -0
  10. package/dist-es/commands/index.js +6 -0
  11. package/dist-es/models/models_0.js +10 -0
  12. package/dist-es/pagination/ListWorkspaceServiceAccountTokensPaginator.js +4 -0
  13. package/dist-es/pagination/ListWorkspaceServiceAccountsPaginator.js +4 -0
  14. package/dist-es/pagination/index.js +2 -0
  15. package/dist-es/protocols/Aws_restJson1.js +193 -0
  16. package/dist-types/Grafana.d.ts +42 -0
  17. package/dist-types/GrafanaClient.d.ts +8 -2
  18. package/dist-types/commands/AssociateLicenseCommand.d.ts +3 -1
  19. package/dist-types/commands/CreateWorkspaceApiKeyCommand.d.ts +4 -0
  20. package/dist-types/commands/CreateWorkspaceServiceAccountCommand.d.ts +97 -0
  21. package/dist-types/commands/CreateWorkspaceServiceAccountTokenCommand.d.ts +101 -0
  22. package/dist-types/commands/DeleteWorkspaceApiKeyCommand.d.ts +4 -0
  23. package/dist-types/commands/DeleteWorkspaceServiceAccountCommand.d.ts +84 -0
  24. package/dist-types/commands/DeleteWorkspaceServiceAccountTokenCommand.d.ts +86 -0
  25. package/dist-types/commands/DescribeWorkspaceAuthenticationCommand.d.ts +3 -0
  26. package/dist-types/commands/ListWorkspaceServiceAccountTokensCommand.d.ts +97 -0
  27. package/dist-types/commands/ListWorkspaceServiceAccountsCommand.d.ts +90 -0
  28. package/dist-types/commands/index.d.ts +6 -0
  29. package/dist-types/models/models_0.d.ts +357 -5
  30. package/dist-types/pagination/ListWorkspaceServiceAccountTokensPaginator.d.ts +7 -0
  31. package/dist-types/pagination/ListWorkspaceServiceAccountsPaginator.d.ts +7 -0
  32. package/dist-types/pagination/index.d.ts +2 -0
  33. package/dist-types/protocols/Aws_restJson1.d.ts +54 -0
  34. package/dist-types/ts3.4/Grafana.d.ts +120 -0
  35. package/dist-types/ts3.4/GrafanaClient.d.ts +36 -0
  36. package/dist-types/ts3.4/commands/CreateWorkspaceServiceAccountCommand.d.ts +39 -0
  37. package/dist-types/ts3.4/commands/CreateWorkspaceServiceAccountTokenCommand.d.ts +39 -0
  38. package/dist-types/ts3.4/commands/DeleteWorkspaceServiceAccountCommand.d.ts +39 -0
  39. package/dist-types/ts3.4/commands/DeleteWorkspaceServiceAccountTokenCommand.d.ts +39 -0
  40. package/dist-types/ts3.4/commands/ListWorkspaceServiceAccountTokensCommand.d.ts +39 -0
  41. package/dist-types/ts3.4/commands/ListWorkspaceServiceAccountsCommand.d.ts +39 -0
  42. package/dist-types/ts3.4/commands/index.d.ts +6 -0
  43. package/dist-types/ts3.4/models/models_0.d.ts +86 -0
  44. package/dist-types/ts3.4/pagination/ListWorkspaceServiceAccountTokensPaginator.d.ts +11 -0
  45. package/dist-types/ts3.4/pagination/ListWorkspaceServiceAccountsPaginator.d.ts +11 -0
  46. package/dist-types/ts3.4/pagination/index.d.ts +2 -0
  47. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +72 -0
  48. package/package.json +14 -14
package/README.md CHANGED
@@ -234,6 +234,22 @@ CreateWorkspaceApiKey
234
234
 
235
235
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/grafana/command/CreateWorkspaceApiKeyCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-grafana/Interface/CreateWorkspaceApiKeyCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-grafana/Interface/CreateWorkspaceApiKeyCommandOutput/)
236
236
 
237
+ </details>
238
+ <details>
239
+ <summary>
240
+ CreateWorkspaceServiceAccount
241
+ </summary>
242
+
243
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/grafana/command/CreateWorkspaceServiceAccountCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-grafana/Interface/CreateWorkspaceServiceAccountCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-grafana/Interface/CreateWorkspaceServiceAccountCommandOutput/)
244
+
245
+ </details>
246
+ <details>
247
+ <summary>
248
+ CreateWorkspaceServiceAccountToken
249
+ </summary>
250
+
251
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/grafana/command/CreateWorkspaceServiceAccountTokenCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-grafana/Interface/CreateWorkspaceServiceAccountTokenCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-grafana/Interface/CreateWorkspaceServiceAccountTokenCommandOutput/)
252
+
237
253
  </details>
238
254
  <details>
239
255
  <summary>
@@ -250,6 +266,22 @@ DeleteWorkspaceApiKey
250
266
 
251
267
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/grafana/command/DeleteWorkspaceApiKeyCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-grafana/Interface/DeleteWorkspaceApiKeyCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-grafana/Interface/DeleteWorkspaceApiKeyCommandOutput/)
252
268
 
269
+ </details>
270
+ <details>
271
+ <summary>
272
+ DeleteWorkspaceServiceAccount
273
+ </summary>
274
+
275
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/grafana/command/DeleteWorkspaceServiceAccountCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-grafana/Interface/DeleteWorkspaceServiceAccountCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-grafana/Interface/DeleteWorkspaceServiceAccountCommandOutput/)
276
+
277
+ </details>
278
+ <details>
279
+ <summary>
280
+ DeleteWorkspaceServiceAccountToken
281
+ </summary>
282
+
283
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/grafana/command/DeleteWorkspaceServiceAccountTokenCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-grafana/Interface/DeleteWorkspaceServiceAccountTokenCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-grafana/Interface/DeleteWorkspaceServiceAccountTokenCommandOutput/)
284
+
253
285
  </details>
254
286
  <details>
255
287
  <summary>
@@ -314,6 +346,22 @@ ListWorkspaces
314
346
 
315
347
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/grafana/command/ListWorkspacesCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-grafana/Interface/ListWorkspacesCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-grafana/Interface/ListWorkspacesCommandOutput/)
316
348
 
349
+ </details>
350
+ <details>
351
+ <summary>
352
+ ListWorkspaceServiceAccounts
353
+ </summary>
354
+
355
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/grafana/command/ListWorkspaceServiceAccountsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-grafana/Interface/ListWorkspaceServiceAccountsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-grafana/Interface/ListWorkspaceServiceAccountsCommandOutput/)
356
+
357
+ </details>
358
+ <details>
359
+ <summary>
360
+ ListWorkspaceServiceAccountTokens
361
+ </summary>
362
+
363
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/grafana/command/ListWorkspaceServiceAccountTokensCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-grafana/Interface/ListWorkspaceServiceAccountTokensCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-grafana/Interface/ListWorkspaceServiceAccountTokensCommandOutput/)
364
+
317
365
  </details>
318
366
  <details>
319
367
  <summary>
package/dist-cjs/index.js CHANGED
@@ -33,10 +33,15 @@ __export(src_exports, {
33
33
  CreateWorkspaceCommand: () => CreateWorkspaceCommand,
34
34
  CreateWorkspaceRequestFilterSensitiveLog: () => CreateWorkspaceRequestFilterSensitiveLog,
35
35
  CreateWorkspaceResponseFilterSensitiveLog: () => CreateWorkspaceResponseFilterSensitiveLog,
36
+ CreateWorkspaceServiceAccountCommand: () => CreateWorkspaceServiceAccountCommand,
37
+ CreateWorkspaceServiceAccountTokenCommand: () => CreateWorkspaceServiceAccountTokenCommand,
38
+ CreateWorkspaceServiceAccountTokenResponseFilterSensitiveLog: () => CreateWorkspaceServiceAccountTokenResponseFilterSensitiveLog,
36
39
  DataSourceType: () => DataSourceType,
37
40
  DeleteWorkspaceApiKeyCommand: () => DeleteWorkspaceApiKeyCommand,
38
41
  DeleteWorkspaceCommand: () => DeleteWorkspaceCommand,
39
42
  DeleteWorkspaceResponseFilterSensitiveLog: () => DeleteWorkspaceResponseFilterSensitiveLog,
43
+ DeleteWorkspaceServiceAccountCommand: () => DeleteWorkspaceServiceAccountCommand,
44
+ DeleteWorkspaceServiceAccountTokenCommand: () => DeleteWorkspaceServiceAccountTokenCommand,
40
45
  DescribeWorkspaceAuthenticationCommand: () => DescribeWorkspaceAuthenticationCommand,
41
46
  DescribeWorkspaceAuthenticationResponseFilterSensitiveLog: () => DescribeWorkspaceAuthenticationResponseFilterSensitiveLog,
42
47
  DescribeWorkspaceCommand: () => DescribeWorkspaceCommand,
@@ -53,6 +58,8 @@ __export(src_exports, {
53
58
  ListPermissionsCommand: () => ListPermissionsCommand,
54
59
  ListTagsForResourceCommand: () => ListTagsForResourceCommand,
55
60
  ListVersionsCommand: () => ListVersionsCommand,
61
+ ListWorkspaceServiceAccountTokensCommand: () => ListWorkspaceServiceAccountTokensCommand,
62
+ ListWorkspaceServiceAccountsCommand: () => ListWorkspaceServiceAccountsCommand,
56
63
  ListWorkspacesCommand: () => ListWorkspacesCommand,
57
64
  ListWorkspacesResponseFilterSensitiveLog: () => ListWorkspacesResponseFilterSensitiveLog,
58
65
  NotificationDestinationType: () => NotificationDestinationType,
@@ -63,6 +70,7 @@ __export(src_exports, {
63
70
  SamlAuthenticationFilterSensitiveLog: () => SamlAuthenticationFilterSensitiveLog,
64
71
  SamlConfigurationFilterSensitiveLog: () => SamlConfigurationFilterSensitiveLog,
65
72
  SamlConfigurationStatus: () => SamlConfigurationStatus,
73
+ ServiceAccountTokenSummaryWithKeyFilterSensitiveLog: () => ServiceAccountTokenSummaryWithKeyFilterSensitiveLog,
66
74
  ServiceQuotaExceededException: () => ServiceQuotaExceededException,
67
75
  TagResourceCommand: () => TagResourceCommand,
68
76
  ThrottlingException: () => ThrottlingException,
@@ -85,6 +93,8 @@ __export(src_exports, {
85
93
  __Client: () => import_smithy_client.Client,
86
94
  paginateListPermissions: () => paginateListPermissions,
87
95
  paginateListVersions: () => paginateListVersions,
96
+ paginateListWorkspaceServiceAccountTokens: () => paginateListWorkspaceServiceAccountTokens,
97
+ paginateListWorkspaceServiceAccounts: () => paginateListWorkspaceServiceAccounts,
88
98
  paginateListWorkspaces: () => paginateListWorkspaces
89
99
  });
90
100
  module.exports = __toCommonJS(src_exports);
@@ -642,6 +652,16 @@ var DisassociateLicenseResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj)
642
652
  ...obj,
643
653
  ...obj.workspace && { workspace: WorkspaceDescriptionFilterSensitiveLog(obj.workspace) }
644
654
  }), "DisassociateLicenseResponseFilterSensitiveLog");
655
+ var ServiceAccountTokenSummaryWithKeyFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
656
+ ...obj,
657
+ ...obj.key && { key: import_smithy_client.SENSITIVE_STRING }
658
+ }), "ServiceAccountTokenSummaryWithKeyFilterSensitiveLog");
659
+ var CreateWorkspaceServiceAccountTokenResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
660
+ ...obj,
661
+ ...obj.serviceAccountToken && {
662
+ serviceAccountToken: ServiceAccountTokenSummaryWithKeyFilterSensitiveLog(obj.serviceAccountToken)
663
+ }
664
+ }), "CreateWorkspaceServiceAccountTokenResponseFilterSensitiveLog");
645
665
  var CreateWorkspaceRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
646
666
  ...obj,
647
667
  ...obj.organizationRoleName && { organizationRoleName: import_smithy_client.SENSITIVE_STRING },
@@ -750,6 +770,41 @@ var se_CreateWorkspaceApiKeyCommand = /* @__PURE__ */ __name(async (input, conte
750
770
  b.m("POST").h(headers).b(body);
751
771
  return b.build();
752
772
  }, "se_CreateWorkspaceApiKeyCommand");
773
+ var se_CreateWorkspaceServiceAccountCommand = /* @__PURE__ */ __name(async (input, context) => {
774
+ const b = (0, import_core.requestBuilder)(input, context);
775
+ const headers = {
776
+ "content-type": "application/json"
777
+ };
778
+ b.bp("/workspaces/{workspaceId}/serviceaccounts");
779
+ b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
780
+ let body;
781
+ body = JSON.stringify(
782
+ (0, import_smithy_client.take)(input, {
783
+ grafanaRole: [],
784
+ name: []
785
+ })
786
+ );
787
+ b.m("POST").h(headers).b(body);
788
+ return b.build();
789
+ }, "se_CreateWorkspaceServiceAccountCommand");
790
+ var se_CreateWorkspaceServiceAccountTokenCommand = /* @__PURE__ */ __name(async (input, context) => {
791
+ const b = (0, import_core.requestBuilder)(input, context);
792
+ const headers = {
793
+ "content-type": "application/json"
794
+ };
795
+ b.bp("/workspaces/{workspaceId}/serviceaccounts/{serviceAccountId}/tokens");
796
+ b.p("serviceAccountId", () => input.serviceAccountId, "{serviceAccountId}", false);
797
+ b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
798
+ let body;
799
+ body = JSON.stringify(
800
+ (0, import_smithy_client.take)(input, {
801
+ name: [],
802
+ secondsToLive: []
803
+ })
804
+ );
805
+ b.m("POST").h(headers).b(body);
806
+ return b.build();
807
+ }, "se_CreateWorkspaceServiceAccountTokenCommand");
753
808
  var se_DeleteWorkspaceCommand = /* @__PURE__ */ __name(async (input, context) => {
754
809
  const b = (0, import_core.requestBuilder)(input, context);
755
810
  const headers = {};
@@ -769,6 +824,27 @@ var se_DeleteWorkspaceApiKeyCommand = /* @__PURE__ */ __name(async (input, conte
769
824
  b.m("DELETE").h(headers).b(body);
770
825
  return b.build();
771
826
  }, "se_DeleteWorkspaceApiKeyCommand");
827
+ var se_DeleteWorkspaceServiceAccountCommand = /* @__PURE__ */ __name(async (input, context) => {
828
+ const b = (0, import_core.requestBuilder)(input, context);
829
+ const headers = {};
830
+ b.bp("/workspaces/{workspaceId}/serviceaccounts/{serviceAccountId}");
831
+ b.p("serviceAccountId", () => input.serviceAccountId, "{serviceAccountId}", false);
832
+ b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
833
+ let body;
834
+ b.m("DELETE").h(headers).b(body);
835
+ return b.build();
836
+ }, "se_DeleteWorkspaceServiceAccountCommand");
837
+ var se_DeleteWorkspaceServiceAccountTokenCommand = /* @__PURE__ */ __name(async (input, context) => {
838
+ const b = (0, import_core.requestBuilder)(input, context);
839
+ const headers = {};
840
+ b.bp("/workspaces/{workspaceId}/serviceaccounts/{serviceAccountId}/tokens/{tokenId}");
841
+ b.p("tokenId", () => input.tokenId, "{tokenId}", false);
842
+ b.p("serviceAccountId", () => input.serviceAccountId, "{serviceAccountId}", false);
843
+ b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
844
+ let body;
845
+ b.m("DELETE").h(headers).b(body);
846
+ return b.build();
847
+ }, "se_DeleteWorkspaceServiceAccountTokenCommand");
772
848
  var se_DescribeWorkspaceCommand = /* @__PURE__ */ __name(async (input, context) => {
773
849
  const b = (0, import_core.requestBuilder)(input, context);
774
850
  const headers = {};
@@ -856,6 +932,33 @@ var se_ListWorkspacesCommand = /* @__PURE__ */ __name(async (input, context) =>
856
932
  b.m("GET").h(headers).q(query).b(body);
857
933
  return b.build();
858
934
  }, "se_ListWorkspacesCommand");
935
+ var se_ListWorkspaceServiceAccountsCommand = /* @__PURE__ */ __name(async (input, context) => {
936
+ const b = (0, import_core.requestBuilder)(input, context);
937
+ const headers = {};
938
+ b.bp("/workspaces/{workspaceId}/serviceaccounts");
939
+ b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
940
+ const query = (0, import_smithy_client.map)({
941
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
942
+ [_nT]: [, input[_nT]]
943
+ });
944
+ let body;
945
+ b.m("GET").h(headers).q(query).b(body);
946
+ return b.build();
947
+ }, "se_ListWorkspaceServiceAccountsCommand");
948
+ var se_ListWorkspaceServiceAccountTokensCommand = /* @__PURE__ */ __name(async (input, context) => {
949
+ const b = (0, import_core.requestBuilder)(input, context);
950
+ const headers = {};
951
+ b.bp("/workspaces/{workspaceId}/serviceaccounts/{serviceAccountId}/tokens");
952
+ b.p("serviceAccountId", () => input.serviceAccountId, "{serviceAccountId}", false);
953
+ b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
954
+ const query = (0, import_smithy_client.map)({
955
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
956
+ [_nT]: [, input[_nT]]
957
+ });
958
+ let body;
959
+ b.m("GET").h(headers).q(query).b(body);
960
+ return b.build();
961
+ }, "se_ListWorkspaceServiceAccountTokensCommand");
859
962
  var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
860
963
  const b = (0, import_core.requestBuilder)(input, context);
861
964
  const headers = {
@@ -1010,6 +1113,39 @@ var de_CreateWorkspaceApiKeyCommand = /* @__PURE__ */ __name(async (output, cont
1010
1113
  Object.assign(contents, doc);
1011
1114
  return contents;
1012
1115
  }, "de_CreateWorkspaceApiKeyCommand");
1116
+ var de_CreateWorkspaceServiceAccountCommand = /* @__PURE__ */ __name(async (output, context) => {
1117
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1118
+ return de_CommandError(output, context);
1119
+ }
1120
+ const contents = (0, import_smithy_client.map)({
1121
+ $metadata: deserializeMetadata(output)
1122
+ });
1123
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1124
+ const doc = (0, import_smithy_client.take)(data, {
1125
+ grafanaRole: import_smithy_client.expectString,
1126
+ id: import_smithy_client.expectString,
1127
+ name: import_smithy_client.expectString,
1128
+ workspaceId: import_smithy_client.expectString
1129
+ });
1130
+ Object.assign(contents, doc);
1131
+ return contents;
1132
+ }, "de_CreateWorkspaceServiceAccountCommand");
1133
+ var de_CreateWorkspaceServiceAccountTokenCommand = /* @__PURE__ */ __name(async (output, context) => {
1134
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1135
+ return de_CommandError(output, context);
1136
+ }
1137
+ const contents = (0, import_smithy_client.map)({
1138
+ $metadata: deserializeMetadata(output)
1139
+ });
1140
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1141
+ const doc = (0, import_smithy_client.take)(data, {
1142
+ serviceAccountId: import_smithy_client.expectString,
1143
+ serviceAccountToken: import_smithy_client._json,
1144
+ workspaceId: import_smithy_client.expectString
1145
+ });
1146
+ Object.assign(contents, doc);
1147
+ return contents;
1148
+ }, "de_CreateWorkspaceServiceAccountTokenCommand");
1013
1149
  var de_DeleteWorkspaceCommand = /* @__PURE__ */ __name(async (output, context) => {
1014
1150
  if (output.statusCode !== 202 && output.statusCode >= 300) {
1015
1151
  return de_CommandError(output, context);
@@ -1039,6 +1175,37 @@ var de_DeleteWorkspaceApiKeyCommand = /* @__PURE__ */ __name(async (output, cont
1039
1175
  Object.assign(contents, doc);
1040
1176
  return contents;
1041
1177
  }, "de_DeleteWorkspaceApiKeyCommand");
1178
+ var de_DeleteWorkspaceServiceAccountCommand = /* @__PURE__ */ __name(async (output, context) => {
1179
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1180
+ return de_CommandError(output, context);
1181
+ }
1182
+ const contents = (0, import_smithy_client.map)({
1183
+ $metadata: deserializeMetadata(output)
1184
+ });
1185
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1186
+ const doc = (0, import_smithy_client.take)(data, {
1187
+ serviceAccountId: import_smithy_client.expectString,
1188
+ workspaceId: import_smithy_client.expectString
1189
+ });
1190
+ Object.assign(contents, doc);
1191
+ return contents;
1192
+ }, "de_DeleteWorkspaceServiceAccountCommand");
1193
+ var de_DeleteWorkspaceServiceAccountTokenCommand = /* @__PURE__ */ __name(async (output, context) => {
1194
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1195
+ return de_CommandError(output, context);
1196
+ }
1197
+ const contents = (0, import_smithy_client.map)({
1198
+ $metadata: deserializeMetadata(output)
1199
+ });
1200
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1201
+ const doc = (0, import_smithy_client.take)(data, {
1202
+ serviceAccountId: import_smithy_client.expectString,
1203
+ tokenId: import_smithy_client.expectString,
1204
+ workspaceId: import_smithy_client.expectString
1205
+ });
1206
+ Object.assign(contents, doc);
1207
+ return contents;
1208
+ }, "de_DeleteWorkspaceServiceAccountTokenCommand");
1042
1209
  var de_DescribeWorkspaceCommand = /* @__PURE__ */ __name(async (output, context) => {
1043
1210
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1044
1211
  return de_CommandError(output, context);
@@ -1155,6 +1322,39 @@ var de_ListWorkspacesCommand = /* @__PURE__ */ __name(async (output, context) =>
1155
1322
  Object.assign(contents, doc);
1156
1323
  return contents;
1157
1324
  }, "de_ListWorkspacesCommand");
1325
+ var de_ListWorkspaceServiceAccountsCommand = /* @__PURE__ */ __name(async (output, context) => {
1326
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1327
+ return de_CommandError(output, context);
1328
+ }
1329
+ const contents = (0, import_smithy_client.map)({
1330
+ $metadata: deserializeMetadata(output)
1331
+ });
1332
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1333
+ const doc = (0, import_smithy_client.take)(data, {
1334
+ nextToken: import_smithy_client.expectString,
1335
+ serviceAccounts: import_smithy_client._json,
1336
+ workspaceId: import_smithy_client.expectString
1337
+ });
1338
+ Object.assign(contents, doc);
1339
+ return contents;
1340
+ }, "de_ListWorkspaceServiceAccountsCommand");
1341
+ var de_ListWorkspaceServiceAccountTokensCommand = /* @__PURE__ */ __name(async (output, context) => {
1342
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1343
+ return de_CommandError(output, context);
1344
+ }
1345
+ const contents = (0, import_smithy_client.map)({
1346
+ $metadata: deserializeMetadata(output)
1347
+ });
1348
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1349
+ const doc = (0, import_smithy_client.take)(data, {
1350
+ nextToken: import_smithy_client.expectString,
1351
+ serviceAccountId: import_smithy_client.expectString,
1352
+ serviceAccountTokens: (_) => de_ServiceAccountTokenList(_, context),
1353
+ workspaceId: import_smithy_client.expectString
1354
+ });
1355
+ Object.assign(contents, doc);
1356
+ return contents;
1357
+ }, "de_ListWorkspaceServiceAccountTokensCommand");
1158
1358
  var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1159
1359
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1160
1360
  return de_CommandError(output, context);
@@ -1372,6 +1572,21 @@ var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, cont
1372
1572
  });
1373
1573
  return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1374
1574
  }, "de_ValidationExceptionRes");
1575
+ var de_ServiceAccountTokenList = /* @__PURE__ */ __name((output, context) => {
1576
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
1577
+ return de_ServiceAccountTokenSummary(entry, context);
1578
+ });
1579
+ return retVal;
1580
+ }, "de_ServiceAccountTokenList");
1581
+ var de_ServiceAccountTokenSummary = /* @__PURE__ */ __name((output, context) => {
1582
+ return (0, import_smithy_client.take)(output, {
1583
+ createdAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1584
+ expiresAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1585
+ id: import_smithy_client.expectString,
1586
+ lastUsedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1587
+ name: import_smithy_client.expectString
1588
+ });
1589
+ }, "de_ServiceAccountTokenSummary");
1375
1590
  var de_WorkspaceDescription = /* @__PURE__ */ __name((output, context) => {
1376
1591
  return (0, import_smithy_client.take)(output, {
1377
1592
  accountAccessType: import_smithy_client.expectString,
@@ -1491,6 +1706,40 @@ var _CreateWorkspaceCommand = class _CreateWorkspaceCommand extends import_smith
1491
1706
  __name(_CreateWorkspaceCommand, "CreateWorkspaceCommand");
1492
1707
  var CreateWorkspaceCommand = _CreateWorkspaceCommand;
1493
1708
 
1709
+ // src/commands/CreateWorkspaceServiceAccountCommand.ts
1710
+
1711
+
1712
+
1713
+
1714
+ var _CreateWorkspaceServiceAccountCommand = class _CreateWorkspaceServiceAccountCommand extends import_smithy_client.Command.classBuilder().ep({
1715
+ ...commonParams
1716
+ }).m(function(Command, cs, config, o) {
1717
+ return [
1718
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1719
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1720
+ ];
1721
+ }).s("AWSGrafanaControlPlane", "CreateWorkspaceServiceAccount", {}).n("GrafanaClient", "CreateWorkspaceServiceAccountCommand").f(void 0, void 0).ser(se_CreateWorkspaceServiceAccountCommand).de(de_CreateWorkspaceServiceAccountCommand).build() {
1722
+ };
1723
+ __name(_CreateWorkspaceServiceAccountCommand, "CreateWorkspaceServiceAccountCommand");
1724
+ var CreateWorkspaceServiceAccountCommand = _CreateWorkspaceServiceAccountCommand;
1725
+
1726
+ // src/commands/CreateWorkspaceServiceAccountTokenCommand.ts
1727
+
1728
+
1729
+
1730
+
1731
+ var _CreateWorkspaceServiceAccountTokenCommand = class _CreateWorkspaceServiceAccountTokenCommand extends import_smithy_client.Command.classBuilder().ep({
1732
+ ...commonParams
1733
+ }).m(function(Command, cs, config, o) {
1734
+ return [
1735
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1736
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1737
+ ];
1738
+ }).s("AWSGrafanaControlPlane", "CreateWorkspaceServiceAccountToken", {}).n("GrafanaClient", "CreateWorkspaceServiceAccountTokenCommand").f(void 0, CreateWorkspaceServiceAccountTokenResponseFilterSensitiveLog).ser(se_CreateWorkspaceServiceAccountTokenCommand).de(de_CreateWorkspaceServiceAccountTokenCommand).build() {
1739
+ };
1740
+ __name(_CreateWorkspaceServiceAccountTokenCommand, "CreateWorkspaceServiceAccountTokenCommand");
1741
+ var CreateWorkspaceServiceAccountTokenCommand = _CreateWorkspaceServiceAccountTokenCommand;
1742
+
1494
1743
  // src/commands/DeleteWorkspaceApiKeyCommand.ts
1495
1744
 
1496
1745
 
@@ -1525,6 +1774,40 @@ var _DeleteWorkspaceCommand = class _DeleteWorkspaceCommand extends import_smith
1525
1774
  __name(_DeleteWorkspaceCommand, "DeleteWorkspaceCommand");
1526
1775
  var DeleteWorkspaceCommand = _DeleteWorkspaceCommand;
1527
1776
 
1777
+ // src/commands/DeleteWorkspaceServiceAccountCommand.ts
1778
+
1779
+
1780
+
1781
+
1782
+ var _DeleteWorkspaceServiceAccountCommand = class _DeleteWorkspaceServiceAccountCommand extends import_smithy_client.Command.classBuilder().ep({
1783
+ ...commonParams
1784
+ }).m(function(Command, cs, config, o) {
1785
+ return [
1786
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1787
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1788
+ ];
1789
+ }).s("AWSGrafanaControlPlane", "DeleteWorkspaceServiceAccount", {}).n("GrafanaClient", "DeleteWorkspaceServiceAccountCommand").f(void 0, void 0).ser(se_DeleteWorkspaceServiceAccountCommand).de(de_DeleteWorkspaceServiceAccountCommand).build() {
1790
+ };
1791
+ __name(_DeleteWorkspaceServiceAccountCommand, "DeleteWorkspaceServiceAccountCommand");
1792
+ var DeleteWorkspaceServiceAccountCommand = _DeleteWorkspaceServiceAccountCommand;
1793
+
1794
+ // src/commands/DeleteWorkspaceServiceAccountTokenCommand.ts
1795
+
1796
+
1797
+
1798
+
1799
+ var _DeleteWorkspaceServiceAccountTokenCommand = class _DeleteWorkspaceServiceAccountTokenCommand extends import_smithy_client.Command.classBuilder().ep({
1800
+ ...commonParams
1801
+ }).m(function(Command, cs, config, o) {
1802
+ return [
1803
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1804
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1805
+ ];
1806
+ }).s("AWSGrafanaControlPlane", "DeleteWorkspaceServiceAccountToken", {}).n("GrafanaClient", "DeleteWorkspaceServiceAccountTokenCommand").f(void 0, void 0).ser(se_DeleteWorkspaceServiceAccountTokenCommand).de(de_DeleteWorkspaceServiceAccountTokenCommand).build() {
1807
+ };
1808
+ __name(_DeleteWorkspaceServiceAccountTokenCommand, "DeleteWorkspaceServiceAccountTokenCommand");
1809
+ var DeleteWorkspaceServiceAccountTokenCommand = _DeleteWorkspaceServiceAccountTokenCommand;
1810
+
1528
1811
  // src/commands/DescribeWorkspaceAuthenticationCommand.ts
1529
1812
 
1530
1813
 
@@ -1661,6 +1944,40 @@ var _ListWorkspacesCommand = class _ListWorkspacesCommand extends import_smithy_
1661
1944
  __name(_ListWorkspacesCommand, "ListWorkspacesCommand");
1662
1945
  var ListWorkspacesCommand = _ListWorkspacesCommand;
1663
1946
 
1947
+ // src/commands/ListWorkspaceServiceAccountsCommand.ts
1948
+
1949
+
1950
+
1951
+
1952
+ var _ListWorkspaceServiceAccountsCommand = class _ListWorkspaceServiceAccountsCommand extends import_smithy_client.Command.classBuilder().ep({
1953
+ ...commonParams
1954
+ }).m(function(Command, cs, config, o) {
1955
+ return [
1956
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1957
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1958
+ ];
1959
+ }).s("AWSGrafanaControlPlane", "ListWorkspaceServiceAccounts", {}).n("GrafanaClient", "ListWorkspaceServiceAccountsCommand").f(void 0, void 0).ser(se_ListWorkspaceServiceAccountsCommand).de(de_ListWorkspaceServiceAccountsCommand).build() {
1960
+ };
1961
+ __name(_ListWorkspaceServiceAccountsCommand, "ListWorkspaceServiceAccountsCommand");
1962
+ var ListWorkspaceServiceAccountsCommand = _ListWorkspaceServiceAccountsCommand;
1963
+
1964
+ // src/commands/ListWorkspaceServiceAccountTokensCommand.ts
1965
+
1966
+
1967
+
1968
+
1969
+ var _ListWorkspaceServiceAccountTokensCommand = class _ListWorkspaceServiceAccountTokensCommand extends import_smithy_client.Command.classBuilder().ep({
1970
+ ...commonParams
1971
+ }).m(function(Command, cs, config, o) {
1972
+ return [
1973
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1974
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1975
+ ];
1976
+ }).s("AWSGrafanaControlPlane", "ListWorkspaceServiceAccountTokens", {}).n("GrafanaClient", "ListWorkspaceServiceAccountTokensCommand").f(void 0, void 0).ser(se_ListWorkspaceServiceAccountTokensCommand).de(de_ListWorkspaceServiceAccountTokensCommand).build() {
1977
+ };
1978
+ __name(_ListWorkspaceServiceAccountTokensCommand, "ListWorkspaceServiceAccountTokensCommand");
1979
+ var ListWorkspaceServiceAccountTokensCommand = _ListWorkspaceServiceAccountTokensCommand;
1980
+
1664
1981
  // src/commands/TagResourceCommand.ts
1665
1982
 
1666
1983
 
@@ -1768,8 +2085,12 @@ var commands = {
1768
2085
  AssociateLicenseCommand,
1769
2086
  CreateWorkspaceCommand,
1770
2087
  CreateWorkspaceApiKeyCommand,
2088
+ CreateWorkspaceServiceAccountCommand,
2089
+ CreateWorkspaceServiceAccountTokenCommand,
1771
2090
  DeleteWorkspaceCommand,
1772
2091
  DeleteWorkspaceApiKeyCommand,
2092
+ DeleteWorkspaceServiceAccountCommand,
2093
+ DeleteWorkspaceServiceAccountTokenCommand,
1773
2094
  DescribeWorkspaceCommand,
1774
2095
  DescribeWorkspaceAuthenticationCommand,
1775
2096
  DescribeWorkspaceConfigurationCommand,
@@ -1778,6 +2099,8 @@ var commands = {
1778
2099
  ListTagsForResourceCommand,
1779
2100
  ListVersionsCommand,
1780
2101
  ListWorkspacesCommand,
2102
+ ListWorkspaceServiceAccountsCommand,
2103
+ ListWorkspaceServiceAccountTokensCommand,
1781
2104
  TagResourceCommand,
1782
2105
  UntagResourceCommand,
1783
2106
  UpdatePermissionsCommand,
@@ -1799,6 +2122,14 @@ var paginateListPermissions = (0, import_core.createPaginator)(GrafanaClient, Li
1799
2122
 
1800
2123
  var paginateListVersions = (0, import_core.createPaginator)(GrafanaClient, ListVersionsCommand, "nextToken", "nextToken", "maxResults");
1801
2124
 
2125
+ // src/pagination/ListWorkspaceServiceAccountTokensPaginator.ts
2126
+
2127
+ var paginateListWorkspaceServiceAccountTokens = (0, import_core.createPaginator)(GrafanaClient, ListWorkspaceServiceAccountTokensCommand, "nextToken", "nextToken", "maxResults");
2128
+
2129
+ // src/pagination/ListWorkspaceServiceAccountsPaginator.ts
2130
+
2131
+ var paginateListWorkspaceServiceAccounts = (0, import_core.createPaginator)(GrafanaClient, ListWorkspaceServiceAccountsCommand, "nextToken", "nextToken", "maxResults");
2132
+
1802
2133
  // src/pagination/ListWorkspacesPaginator.ts
1803
2134
 
1804
2135
  var paginateListWorkspaces = (0, import_core.createPaginator)(GrafanaClient, ListWorkspacesCommand, "nextToken", "nextToken", "maxResults");
@@ -1813,8 +2144,12 @@ var paginateListWorkspaces = (0, import_core.createPaginator)(GrafanaClient, Lis
1813
2144
  AssociateLicenseCommand,
1814
2145
  CreateWorkspaceApiKeyCommand,
1815
2146
  CreateWorkspaceCommand,
2147
+ CreateWorkspaceServiceAccountCommand,
2148
+ CreateWorkspaceServiceAccountTokenCommand,
1816
2149
  DeleteWorkspaceApiKeyCommand,
1817
2150
  DeleteWorkspaceCommand,
2151
+ DeleteWorkspaceServiceAccountCommand,
2152
+ DeleteWorkspaceServiceAccountTokenCommand,
1818
2153
  DescribeWorkspaceAuthenticationCommand,
1819
2154
  DescribeWorkspaceCommand,
1820
2155
  DescribeWorkspaceConfigurationCommand,
@@ -1822,6 +2157,8 @@ var paginateListWorkspaces = (0, import_core.createPaginator)(GrafanaClient, Lis
1822
2157
  ListPermissionsCommand,
1823
2158
  ListTagsForResourceCommand,
1824
2159
  ListVersionsCommand,
2160
+ ListWorkspaceServiceAccountTokensCommand,
2161
+ ListWorkspaceServiceAccountsCommand,
1825
2162
  ListWorkspacesCommand,
1826
2163
  TagResourceCommand,
1827
2164
  UntagResourceCommand,
@@ -1831,6 +2168,8 @@ var paginateListWorkspaces = (0, import_core.createPaginator)(GrafanaClient, Lis
1831
2168
  UpdateWorkspaceConfigurationCommand,
1832
2169
  paginateListPermissions,
1833
2170
  paginateListVersions,
2171
+ paginateListWorkspaceServiceAccountTokens,
2172
+ paginateListWorkspaceServiceAccounts,
1834
2173
  paginateListWorkspaces,
1835
2174
  AccessDeniedException,
1836
2175
  AccountAccessType,
@@ -1863,6 +2202,8 @@ var paginateListWorkspaces = (0, import_core.createPaginator)(GrafanaClient, Lis
1863
2202
  UpdateWorkspaceAuthenticationRequestFilterSensitiveLog,
1864
2203
  UpdateWorkspaceAuthenticationResponseFilterSensitiveLog,
1865
2204
  DisassociateLicenseResponseFilterSensitiveLog,
2205
+ ServiceAccountTokenSummaryWithKeyFilterSensitiveLog,
2206
+ CreateWorkspaceServiceAccountTokenResponseFilterSensitiveLog,
1866
2207
  CreateWorkspaceRequestFilterSensitiveLog,
1867
2208
  CreateWorkspaceResponseFilterSensitiveLog,
1868
2209
  DeleteWorkspaceResponseFilterSensitiveLog,
@@ -2,8 +2,12 @@ import { createAggregatedClient } from "@smithy/smithy-client";
2
2
  import { AssociateLicenseCommand, } from "./commands/AssociateLicenseCommand";
3
3
  import { CreateWorkspaceApiKeyCommand, } from "./commands/CreateWorkspaceApiKeyCommand";
4
4
  import { CreateWorkspaceCommand, } from "./commands/CreateWorkspaceCommand";
5
+ import { CreateWorkspaceServiceAccountCommand, } from "./commands/CreateWorkspaceServiceAccountCommand";
6
+ import { CreateWorkspaceServiceAccountTokenCommand, } from "./commands/CreateWorkspaceServiceAccountTokenCommand";
5
7
  import { DeleteWorkspaceApiKeyCommand, } from "./commands/DeleteWorkspaceApiKeyCommand";
6
8
  import { DeleteWorkspaceCommand, } from "./commands/DeleteWorkspaceCommand";
9
+ import { DeleteWorkspaceServiceAccountCommand, } from "./commands/DeleteWorkspaceServiceAccountCommand";
10
+ import { DeleteWorkspaceServiceAccountTokenCommand, } from "./commands/DeleteWorkspaceServiceAccountTokenCommand";
7
11
  import { DescribeWorkspaceAuthenticationCommand, } from "./commands/DescribeWorkspaceAuthenticationCommand";
8
12
  import { DescribeWorkspaceCommand, } from "./commands/DescribeWorkspaceCommand";
9
13
  import { DescribeWorkspaceConfigurationCommand, } from "./commands/DescribeWorkspaceConfigurationCommand";
@@ -12,6 +16,8 @@ import { ListPermissionsCommand, } from "./commands/ListPermissionsCommand";
12
16
  import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
13
17
  import { ListVersionsCommand, } from "./commands/ListVersionsCommand";
14
18
  import { ListWorkspacesCommand, } from "./commands/ListWorkspacesCommand";
19
+ import { ListWorkspaceServiceAccountsCommand, } from "./commands/ListWorkspaceServiceAccountsCommand";
20
+ import { ListWorkspaceServiceAccountTokensCommand, } from "./commands/ListWorkspaceServiceAccountTokensCommand";
15
21
  import { TagResourceCommand } from "./commands/TagResourceCommand";
16
22
  import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
17
23
  import { UpdatePermissionsCommand, } from "./commands/UpdatePermissionsCommand";
@@ -23,8 +29,12 @@ const commands = {
23
29
  AssociateLicenseCommand,
24
30
  CreateWorkspaceCommand,
25
31
  CreateWorkspaceApiKeyCommand,
32
+ CreateWorkspaceServiceAccountCommand,
33
+ CreateWorkspaceServiceAccountTokenCommand,
26
34
  DeleteWorkspaceCommand,
27
35
  DeleteWorkspaceApiKeyCommand,
36
+ DeleteWorkspaceServiceAccountCommand,
37
+ DeleteWorkspaceServiceAccountTokenCommand,
28
38
  DescribeWorkspaceCommand,
29
39
  DescribeWorkspaceAuthenticationCommand,
30
40
  DescribeWorkspaceConfigurationCommand,
@@ -33,6 +43,8 @@ const commands = {
33
43
  ListTagsForResourceCommand,
34
44
  ListVersionsCommand,
35
45
  ListWorkspacesCommand,
46
+ ListWorkspaceServiceAccountsCommand,
47
+ ListWorkspaceServiceAccountTokensCommand,
36
48
  TagResourceCommand,
37
49
  UntagResourceCommand,
38
50
  UpdatePermissionsCommand,
@@ -0,0 +1,24 @@
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_CreateWorkspaceServiceAccountCommand, se_CreateWorkspaceServiceAccountCommand, } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class CreateWorkspaceServiceAccountCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("AWSGrafanaControlPlane", "CreateWorkspaceServiceAccount", {})
19
+ .n("GrafanaClient", "CreateWorkspaceServiceAccountCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_CreateWorkspaceServiceAccountCommand)
22
+ .de(de_CreateWorkspaceServiceAccountCommand)
23
+ .build() {
24
+ }
@@ -0,0 +1,25 @@
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 { CreateWorkspaceServiceAccountTokenResponseFilterSensitiveLog, } from "../models/models_0";
6
+ import { de_CreateWorkspaceServiceAccountTokenCommand, se_CreateWorkspaceServiceAccountTokenCommand, } from "../protocols/Aws_restJson1";
7
+ export { $Command };
8
+ export class CreateWorkspaceServiceAccountTokenCommand extends $Command
9
+ .classBuilder()
10
+ .ep({
11
+ ...commonParams,
12
+ })
13
+ .m(function (Command, cs, config, o) {
14
+ return [
15
+ getSerdePlugin(config, this.serialize, this.deserialize),
16
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
17
+ ];
18
+ })
19
+ .s("AWSGrafanaControlPlane", "CreateWorkspaceServiceAccountToken", {})
20
+ .n("GrafanaClient", "CreateWorkspaceServiceAccountTokenCommand")
21
+ .f(void 0, CreateWorkspaceServiceAccountTokenResponseFilterSensitiveLog)
22
+ .ser(se_CreateWorkspaceServiceAccountTokenCommand)
23
+ .de(de_CreateWorkspaceServiceAccountTokenCommand)
24
+ .build() {
25
+ }