@aws-sdk/client-grafana 3.758.0 → 3.772.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 (2) hide show
  1. package/dist-cjs/index.js +42 -44
  2. package/package.json +3 -3
package/dist-cjs/index.js CHANGED
@@ -19,8 +19,8 @@ var __copyProps = (to, from, except, desc) => {
19
19
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
20
 
21
21
  // src/index.ts
22
- var src_exports = {};
23
- __export(src_exports, {
22
+ var index_exports = {};
23
+ __export(index_exports, {
24
24
  AccessDeniedException: () => AccessDeniedException,
25
25
  AccountAccessType: () => AccountAccessType,
26
26
  AssociateLicenseCommand: () => AssociateLicenseCommand,
@@ -97,7 +97,7 @@ __export(src_exports, {
97
97
  paginateListWorkspaceServiceAccounts: () => paginateListWorkspaceServiceAccounts,
98
98
  paginateListWorkspaces: () => paginateListWorkspaces
99
99
  });
100
- module.exports = __toCommonJS(src_exports);
100
+ module.exports = __toCommonJS(index_exports);
101
101
 
102
102
  // src/GrafanaClient.ts
103
103
  var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
@@ -224,9 +224,9 @@ var GrafanaClient = class extends import_smithy_client.Client {
224
224
  this.middlewareStack.use(
225
225
  (0, import_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
226
226
  httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider.defaultGrafanaHttpAuthSchemeParametersProvider,
227
- identityProviderConfigProvider: async (config) => new import_core.DefaultIdentityProviderConfig({
227
+ identityProviderConfigProvider: /* @__PURE__ */ __name(async (config) => new import_core.DefaultIdentityProviderConfig({
228
228
  "aws.auth#sigv4": config.credentials
229
- })
229
+ }), "identityProviderConfigProvider")
230
230
  })
231
231
  );
232
232
  this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config));
@@ -637,10 +637,8 @@ var WorkspaceStatus = {
637
637
  var IdpMetadata;
638
638
  ((IdpMetadata3) => {
639
639
  IdpMetadata3.visit = /* @__PURE__ */ __name((value, visitor) => {
640
- if (value.url !== void 0)
641
- return visitor.url(value.url);
642
- if (value.xml !== void 0)
643
- return visitor.xml(value.xml);
640
+ if (value.url !== void 0) return visitor.url(value.url);
641
+ if (value.xml !== void 0) return visitor.xml(value.xml);
644
642
  return visitor._(value.$unknown[0], value.$unknown[1]);
645
643
  }, "visit");
646
644
  })(IdpMetadata || (IdpMetadata = {}));
@@ -807,21 +805,21 @@ var se_CreateWorkspaceCommand = /* @__PURE__ */ __name(async (input, context) =>
807
805
  body = JSON.stringify(
808
806
  (0, import_smithy_client.take)(input, {
809
807
  accountAccessType: [],
810
- authenticationProviders: (_) => (0, import_smithy_client._json)(_),
808
+ authenticationProviders: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "authenticationProviders"),
811
809
  clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
812
- configuration: (_) => import_smithy_client.LazyJsonString.from(_),
810
+ configuration: /* @__PURE__ */ __name((_) => import_smithy_client.LazyJsonString.from(_), "configuration"),
813
811
  grafanaVersion: [],
814
- networkAccessControl: (_) => (0, import_smithy_client._json)(_),
812
+ networkAccessControl: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "networkAccessControl"),
815
813
  organizationRoleName: [],
816
814
  permissionType: [],
817
815
  stackSetName: [],
818
- tags: (_) => (0, import_smithy_client._json)(_),
819
- vpcConfiguration: (_) => (0, import_smithy_client._json)(_),
820
- workspaceDataSources: (_) => (0, import_smithy_client._json)(_),
816
+ tags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "tags"),
817
+ vpcConfiguration: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "vpcConfiguration"),
818
+ workspaceDataSources: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "workspaceDataSources"),
821
819
  workspaceDescription: [],
822
820
  workspaceName: [],
823
- workspaceNotificationDestinations: (_) => (0, import_smithy_client._json)(_),
824
- workspaceOrganizationalUnits: (_) => (0, import_smithy_client._json)(_),
821
+ workspaceNotificationDestinations: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "workspaceNotificationDestinations"),
822
+ workspaceOrganizationalUnits: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "workspaceOrganizationalUnits"),
825
823
  workspaceRoleArn: []
826
824
  })
827
825
  );
@@ -1045,7 +1043,7 @@ var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
1045
1043
  let body;
1046
1044
  body = JSON.stringify(
1047
1045
  (0, import_smithy_client.take)(input, {
1048
- tags: (_) => (0, import_smithy_client._json)(_)
1046
+ tags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "tags")
1049
1047
  })
1050
1048
  );
1051
1049
  b.m("POST").h(headers).b(body);
@@ -1073,7 +1071,7 @@ var se_UpdatePermissionsCommand = /* @__PURE__ */ __name(async (input, context)
1073
1071
  let body;
1074
1072
  body = JSON.stringify(
1075
1073
  (0, import_smithy_client.take)(input, {
1076
- updateInstructionBatch: (_) => (0, import_smithy_client._json)(_)
1074
+ updateInstructionBatch: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "updateInstructionBatch")
1077
1075
  })
1078
1076
  );
1079
1077
  b.m("PATCH").h(headers).b(body);
@@ -1090,18 +1088,18 @@ var se_UpdateWorkspaceCommand = /* @__PURE__ */ __name(async (input, context) =>
1090
1088
  body = JSON.stringify(
1091
1089
  (0, import_smithy_client.take)(input, {
1092
1090
  accountAccessType: [],
1093
- networkAccessControl: (_) => (0, import_smithy_client._json)(_),
1091
+ networkAccessControl: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "networkAccessControl"),
1094
1092
  organizationRoleName: [],
1095
1093
  permissionType: [],
1096
1094
  removeNetworkAccessConfiguration: [],
1097
1095
  removeVpcConfiguration: [],
1098
1096
  stackSetName: [],
1099
- vpcConfiguration: (_) => (0, import_smithy_client._json)(_),
1100
- workspaceDataSources: (_) => (0, import_smithy_client._json)(_),
1097
+ vpcConfiguration: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "vpcConfiguration"),
1098
+ workspaceDataSources: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "workspaceDataSources"),
1101
1099
  workspaceDescription: [],
1102
1100
  workspaceName: [],
1103
- workspaceNotificationDestinations: (_) => (0, import_smithy_client._json)(_),
1104
- workspaceOrganizationalUnits: (_) => (0, import_smithy_client._json)(_),
1101
+ workspaceNotificationDestinations: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "workspaceNotificationDestinations"),
1102
+ workspaceOrganizationalUnits: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "workspaceOrganizationalUnits"),
1105
1103
  workspaceRoleArn: []
1106
1104
  })
1107
1105
  );
@@ -1118,8 +1116,8 @@ var se_UpdateWorkspaceAuthenticationCommand = /* @__PURE__ */ __name(async (inpu
1118
1116
  let body;
1119
1117
  body = JSON.stringify(
1120
1118
  (0, import_smithy_client.take)(input, {
1121
- authenticationProviders: (_) => (0, import_smithy_client._json)(_),
1122
- samlConfiguration: (_) => (0, import_smithy_client._json)(_)
1119
+ authenticationProviders: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "authenticationProviders"),
1120
+ samlConfiguration: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "samlConfiguration")
1123
1121
  })
1124
1122
  );
1125
1123
  b.m("POST").h(headers).b(body);
@@ -1135,7 +1133,7 @@ var se_UpdateWorkspaceConfigurationCommand = /* @__PURE__ */ __name(async (input
1135
1133
  let body;
1136
1134
  body = JSON.stringify(
1137
1135
  (0, import_smithy_client.take)(input, {
1138
- configuration: (_) => import_smithy_client.LazyJsonString.from(_),
1136
+ configuration: /* @__PURE__ */ __name((_) => import_smithy_client.LazyJsonString.from(_), "configuration"),
1139
1137
  grafanaVersion: []
1140
1138
  })
1141
1139
  );
@@ -1151,7 +1149,7 @@ var de_AssociateLicenseCommand = /* @__PURE__ */ __name(async (output, context)
1151
1149
  });
1152
1150
  const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1153
1151
  const doc = (0, import_smithy_client.take)(data, {
1154
- workspace: (_) => de_WorkspaceDescription(_, context)
1152
+ workspace: /* @__PURE__ */ __name((_) => de_WorkspaceDescription(_, context), "workspace")
1155
1153
  });
1156
1154
  Object.assign(contents, doc);
1157
1155
  return contents;
@@ -1165,7 +1163,7 @@ var de_CreateWorkspaceCommand = /* @__PURE__ */ __name(async (output, context) =
1165
1163
  });
1166
1164
  const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1167
1165
  const doc = (0, import_smithy_client.take)(data, {
1168
- workspace: (_) => de_WorkspaceDescription(_, context)
1166
+ workspace: /* @__PURE__ */ __name((_) => de_WorkspaceDescription(_, context), "workspace")
1169
1167
  });
1170
1168
  Object.assign(contents, doc);
1171
1169
  return contents;
@@ -1228,7 +1226,7 @@ var de_DeleteWorkspaceCommand = /* @__PURE__ */ __name(async (output, context) =
1228
1226
  });
1229
1227
  const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1230
1228
  const doc = (0, import_smithy_client.take)(data, {
1231
- workspace: (_) => de_WorkspaceDescription(_, context)
1229
+ workspace: /* @__PURE__ */ __name((_) => de_WorkspaceDescription(_, context), "workspace")
1232
1230
  });
1233
1231
  Object.assign(contents, doc);
1234
1232
  return contents;
@@ -1288,7 +1286,7 @@ var de_DescribeWorkspaceCommand = /* @__PURE__ */ __name(async (output, context)
1288
1286
  });
1289
1287
  const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1290
1288
  const doc = (0, import_smithy_client.take)(data, {
1291
- workspace: (_) => de_WorkspaceDescription(_, context)
1289
+ workspace: /* @__PURE__ */ __name((_) => de_WorkspaceDescription(_, context), "workspace")
1292
1290
  });
1293
1291
  Object.assign(contents, doc);
1294
1292
  return contents;
@@ -1331,7 +1329,7 @@ var de_DisassociateLicenseCommand = /* @__PURE__ */ __name(async (output, contex
1331
1329
  });
1332
1330
  const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1333
1331
  const doc = (0, import_smithy_client.take)(data, {
1334
- workspace: (_) => de_WorkspaceDescription(_, context)
1332
+ workspace: /* @__PURE__ */ __name((_) => de_WorkspaceDescription(_, context), "workspace")
1335
1333
  });
1336
1334
  Object.assign(contents, doc);
1337
1335
  return contents;
@@ -1390,7 +1388,7 @@ var de_ListWorkspacesCommand = /* @__PURE__ */ __name(async (output, context) =>
1390
1388
  const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1391
1389
  const doc = (0, import_smithy_client.take)(data, {
1392
1390
  nextToken: import_smithy_client.expectString,
1393
- workspaces: (_) => de_WorkspaceList(_, context)
1391
+ workspaces: /* @__PURE__ */ __name((_) => de_WorkspaceList(_, context), "workspaces")
1394
1392
  });
1395
1393
  Object.assign(contents, doc);
1396
1394
  return contents;
@@ -1422,7 +1420,7 @@ var de_ListWorkspaceServiceAccountTokensCommand = /* @__PURE__ */ __name(async (
1422
1420
  const doc = (0, import_smithy_client.take)(data, {
1423
1421
  nextToken: import_smithy_client.expectString,
1424
1422
  serviceAccountId: import_smithy_client.expectString,
1425
- serviceAccountTokens: (_) => de_ServiceAccountTokenList(_, context),
1423
+ serviceAccountTokens: /* @__PURE__ */ __name((_) => de_ServiceAccountTokenList(_, context), "serviceAccountTokens"),
1426
1424
  workspaceId: import_smithy_client.expectString
1427
1425
  });
1428
1426
  Object.assign(contents, doc);
@@ -1471,7 +1469,7 @@ var de_UpdateWorkspaceCommand = /* @__PURE__ */ __name(async (output, context) =
1471
1469
  });
1472
1470
  const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1473
1471
  const doc = (0, import_smithy_client.take)(data, {
1474
- workspace: (_) => de_WorkspaceDescription(_, context)
1472
+ workspace: /* @__PURE__ */ __name((_) => de_WorkspaceDescription(_, context), "workspace")
1475
1473
  });
1476
1474
  Object.assign(contents, doc);
1477
1475
  return contents;
@@ -1653,10 +1651,10 @@ var de_ServiceAccountTokenList = /* @__PURE__ */ __name((output, context) => {
1653
1651
  }, "de_ServiceAccountTokenList");
1654
1652
  var de_ServiceAccountTokenSummary = /* @__PURE__ */ __name((output, context) => {
1655
1653
  return (0, import_smithy_client.take)(output, {
1656
- createdAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1657
- expiresAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1654
+ createdAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "createdAt"),
1655
+ expiresAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "expiresAt"),
1658
1656
  id: import_smithy_client.expectString,
1659
- lastUsedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1657
+ lastUsedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "lastUsedAt"),
1660
1658
  name: import_smithy_client.expectString
1661
1659
  });
1662
1660
  }, "de_ServiceAccountTokenSummary");
@@ -1664,18 +1662,18 @@ var de_WorkspaceDescription = /* @__PURE__ */ __name((output, context) => {
1664
1662
  return (0, import_smithy_client.take)(output, {
1665
1663
  accountAccessType: import_smithy_client.expectString,
1666
1664
  authentication: import_smithy_client._json,
1667
- created: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1665
+ created: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "created"),
1668
1666
  dataSources: import_smithy_client._json,
1669
1667
  description: import_smithy_client.expectString,
1670
1668
  endpoint: import_smithy_client.expectString,
1671
1669
  freeTrialConsumed: import_smithy_client.expectBoolean,
1672
- freeTrialExpiration: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1670
+ freeTrialExpiration: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "freeTrialExpiration"),
1673
1671
  grafanaToken: import_smithy_client.expectString,
1674
1672
  grafanaVersion: import_smithy_client.expectString,
1675
1673
  id: import_smithy_client.expectString,
1676
- licenseExpiration: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1674
+ licenseExpiration: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "licenseExpiration"),
1677
1675
  licenseType: import_smithy_client.expectString,
1678
- modified: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1676
+ modified: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "modified"),
1679
1677
  name: import_smithy_client.expectString,
1680
1678
  networkAccessControl: import_smithy_client._json,
1681
1679
  notificationDestinations: import_smithy_client._json,
@@ -1698,14 +1696,14 @@ var de_WorkspaceList = /* @__PURE__ */ __name((output, context) => {
1698
1696
  var de_WorkspaceSummary = /* @__PURE__ */ __name((output, context) => {
1699
1697
  return (0, import_smithy_client.take)(output, {
1700
1698
  authentication: import_smithy_client._json,
1701
- created: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1699
+ created: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "created"),
1702
1700
  description: import_smithy_client.expectString,
1703
1701
  endpoint: import_smithy_client.expectString,
1704
1702
  grafanaToken: import_smithy_client.expectString,
1705
1703
  grafanaVersion: import_smithy_client.expectString,
1706
1704
  id: import_smithy_client.expectString,
1707
1705
  licenseType: import_smithy_client.expectString,
1708
- modified: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1706
+ modified: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "modified"),
1709
1707
  name: import_smithy_client.expectString,
1710
1708
  notificationDestinations: import_smithy_client._json,
1711
1709
  status: import_smithy_client.expectString,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-grafana",
3
3
  "description": "AWS SDK for JavaScript Grafana Client for Node.js, Browser and React Native",
4
- "version": "3.758.0",
4
+ "version": "3.772.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-grafana",
@@ -21,10 +21,10 @@
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
23
  "@aws-sdk/core": "3.758.0",
24
- "@aws-sdk/credential-provider-node": "3.758.0",
24
+ "@aws-sdk/credential-provider-node": "3.772.0",
25
25
  "@aws-sdk/middleware-host-header": "3.734.0",
26
26
  "@aws-sdk/middleware-logger": "3.734.0",
27
- "@aws-sdk/middleware-recursion-detection": "3.734.0",
27
+ "@aws-sdk/middleware-recursion-detection": "3.772.0",
28
28
  "@aws-sdk/middleware-user-agent": "3.758.0",
29
29
  "@aws-sdk/region-config-resolver": "3.734.0",
30
30
  "@aws-sdk/types": "3.734.0",