@aws-sdk/client-grafana 3.1044.0 → 3.1046.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 (112) hide show
  1. package/dist-cjs/auth/httpAuthSchemeProvider.js +4 -4
  2. package/dist-cjs/endpoint/bdd.js +2 -2
  3. package/dist-cjs/endpoint/endpointResolver.js +4 -4
  4. package/dist-cjs/index.js +66 -67
  5. package/dist-cjs/models/GrafanaServiceException.js +3 -3
  6. package/dist-cjs/runtimeConfig.browser.js +12 -14
  7. package/dist-cjs/runtimeConfig.js +18 -22
  8. package/dist-cjs/runtimeConfig.shared.js +9 -10
  9. package/dist-es/Grafana.js +1 -1
  10. package/dist-es/GrafanaClient.js +5 -5
  11. package/dist-es/auth/httpAuthSchemeProvider.js +1 -1
  12. package/dist-es/commands/AssociateLicenseCommand.js +2 -2
  13. package/dist-es/commands/CreateWorkspaceApiKeyCommand.js +2 -2
  14. package/dist-es/commands/CreateWorkspaceCommand.js +2 -2
  15. package/dist-es/commands/CreateWorkspaceServiceAccountCommand.js +2 -2
  16. package/dist-es/commands/CreateWorkspaceServiceAccountTokenCommand.js +2 -2
  17. package/dist-es/commands/DeleteWorkspaceApiKeyCommand.js +2 -2
  18. package/dist-es/commands/DeleteWorkspaceCommand.js +2 -2
  19. package/dist-es/commands/DeleteWorkspaceServiceAccountCommand.js +2 -2
  20. package/dist-es/commands/DeleteWorkspaceServiceAccountTokenCommand.js +2 -2
  21. package/dist-es/commands/DescribeWorkspaceAuthenticationCommand.js +2 -2
  22. package/dist-es/commands/DescribeWorkspaceCommand.js +2 -2
  23. package/dist-es/commands/DescribeWorkspaceConfigurationCommand.js +2 -2
  24. package/dist-es/commands/DisassociateLicenseCommand.js +2 -2
  25. package/dist-es/commands/ListPermissionsCommand.js +2 -2
  26. package/dist-es/commands/ListTagsForResourceCommand.js +2 -2
  27. package/dist-es/commands/ListVersionsCommand.js +2 -2
  28. package/dist-es/commands/ListWorkspaceServiceAccountTokensCommand.js +2 -2
  29. package/dist-es/commands/ListWorkspaceServiceAccountsCommand.js +2 -2
  30. package/dist-es/commands/ListWorkspacesCommand.js +2 -2
  31. package/dist-es/commands/TagResourceCommand.js +2 -2
  32. package/dist-es/commands/UntagResourceCommand.js +2 -2
  33. package/dist-es/commands/UpdatePermissionsCommand.js +2 -2
  34. package/dist-es/commands/UpdateWorkspaceAuthenticationCommand.js +2 -2
  35. package/dist-es/commands/UpdateWorkspaceCommand.js +2 -2
  36. package/dist-es/commands/UpdateWorkspaceConfigurationCommand.js +2 -2
  37. package/dist-es/endpoint/bdd.js +1 -1
  38. package/dist-es/endpoint/endpointResolver.js +1 -1
  39. package/dist-es/models/GrafanaServiceException.js +1 -1
  40. package/dist-es/runtimeConfig.browser.js +4 -6
  41. package/dist-es/runtimeConfig.js +4 -8
  42. package/dist-es/runtimeConfig.shared.js +3 -4
  43. package/dist-es/runtimeExtensions.js +2 -2
  44. package/dist-types/GrafanaClient.d.ts +5 -5
  45. package/dist-types/commands/AssociateLicenseCommand.d.ts +6 -4
  46. package/dist-types/commands/CreateWorkspaceApiKeyCommand.d.ts +6 -4
  47. package/dist-types/commands/CreateWorkspaceCommand.d.ts +6 -4
  48. package/dist-types/commands/CreateWorkspaceServiceAccountCommand.d.ts +6 -4
  49. package/dist-types/commands/CreateWorkspaceServiceAccountTokenCommand.d.ts +6 -4
  50. package/dist-types/commands/DeleteWorkspaceApiKeyCommand.d.ts +6 -4
  51. package/dist-types/commands/DeleteWorkspaceCommand.d.ts +6 -4
  52. package/dist-types/commands/DeleteWorkspaceServiceAccountCommand.d.ts +6 -4
  53. package/dist-types/commands/DeleteWorkspaceServiceAccountTokenCommand.d.ts +6 -4
  54. package/dist-types/commands/DescribeWorkspaceAuthenticationCommand.d.ts +6 -4
  55. package/dist-types/commands/DescribeWorkspaceCommand.d.ts +6 -4
  56. package/dist-types/commands/DescribeWorkspaceConfigurationCommand.d.ts +6 -4
  57. package/dist-types/commands/DisassociateLicenseCommand.d.ts +6 -4
  58. package/dist-types/commands/ListPermissionsCommand.d.ts +6 -4
  59. package/dist-types/commands/ListTagsForResourceCommand.d.ts +6 -4
  60. package/dist-types/commands/ListVersionsCommand.d.ts +6 -4
  61. package/dist-types/commands/ListWorkspaceServiceAccountTokensCommand.d.ts +6 -4
  62. package/dist-types/commands/ListWorkspaceServiceAccountsCommand.d.ts +6 -4
  63. package/dist-types/commands/ListWorkspacesCommand.d.ts +6 -4
  64. package/dist-types/commands/TagResourceCommand.d.ts +6 -4
  65. package/dist-types/commands/UntagResourceCommand.d.ts +6 -4
  66. package/dist-types/commands/UpdatePermissionsCommand.d.ts +6 -4
  67. package/dist-types/commands/UpdateWorkspaceAuthenticationCommand.d.ts +6 -4
  68. package/dist-types/commands/UpdateWorkspaceCommand.d.ts +6 -4
  69. package/dist-types/commands/UpdateWorkspaceConfigurationCommand.d.ts +6 -4
  70. package/dist-types/endpoint/bdd.d.ts +1 -1
  71. package/dist-types/extensionConfiguration.d.ts +1 -1
  72. package/dist-types/models/GrafanaServiceException.d.ts +1 -1
  73. package/dist-types/models/errors.d.ts +1 -1
  74. package/dist-types/models/models_0.d.ts +1 -1
  75. package/dist-types/runtimeConfig.browser.d.ts +2 -2
  76. package/dist-types/runtimeConfig.d.ts +2 -2
  77. package/dist-types/runtimeConfig.native.d.ts +2 -2
  78. package/dist-types/ts3.4/GrafanaClient.d.ts +8 -14
  79. package/dist-types/ts3.4/commands/AssociateLicenseCommand.d.ts +6 -4
  80. package/dist-types/ts3.4/commands/CreateWorkspaceApiKeyCommand.d.ts +6 -4
  81. package/dist-types/ts3.4/commands/CreateWorkspaceCommand.d.ts +6 -4
  82. package/dist-types/ts3.4/commands/CreateWorkspaceServiceAccountCommand.d.ts +6 -4
  83. package/dist-types/ts3.4/commands/CreateWorkspaceServiceAccountTokenCommand.d.ts +6 -4
  84. package/dist-types/ts3.4/commands/DeleteWorkspaceApiKeyCommand.d.ts +6 -4
  85. package/dist-types/ts3.4/commands/DeleteWorkspaceCommand.d.ts +6 -4
  86. package/dist-types/ts3.4/commands/DeleteWorkspaceServiceAccountCommand.d.ts +6 -4
  87. package/dist-types/ts3.4/commands/DeleteWorkspaceServiceAccountTokenCommand.d.ts +6 -4
  88. package/dist-types/ts3.4/commands/DescribeWorkspaceAuthenticationCommand.d.ts +6 -4
  89. package/dist-types/ts3.4/commands/DescribeWorkspaceCommand.d.ts +6 -4
  90. package/dist-types/ts3.4/commands/DescribeWorkspaceConfigurationCommand.d.ts +6 -4
  91. package/dist-types/ts3.4/commands/DisassociateLicenseCommand.d.ts +6 -4
  92. package/dist-types/ts3.4/commands/ListPermissionsCommand.d.ts +6 -4
  93. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +6 -4
  94. package/dist-types/ts3.4/commands/ListVersionsCommand.d.ts +6 -4
  95. package/dist-types/ts3.4/commands/ListWorkspaceServiceAccountTokensCommand.d.ts +6 -4
  96. package/dist-types/ts3.4/commands/ListWorkspaceServiceAccountsCommand.d.ts +6 -4
  97. package/dist-types/ts3.4/commands/ListWorkspacesCommand.d.ts +6 -4
  98. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +6 -4
  99. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +6 -4
  100. package/dist-types/ts3.4/commands/UpdatePermissionsCommand.d.ts +6 -4
  101. package/dist-types/ts3.4/commands/UpdateWorkspaceAuthenticationCommand.d.ts +6 -4
  102. package/dist-types/ts3.4/commands/UpdateWorkspaceCommand.d.ts +6 -4
  103. package/dist-types/ts3.4/commands/UpdateWorkspaceConfigurationCommand.d.ts +6 -4
  104. package/dist-types/ts3.4/endpoint/bdd.d.ts +1 -1
  105. package/dist-types/ts3.4/extensionConfiguration.d.ts +1 -1
  106. package/dist-types/ts3.4/models/GrafanaServiceException.d.ts +1 -1
  107. package/dist-types/ts3.4/models/errors.d.ts +1 -1
  108. package/dist-types/ts3.4/models/models_0.d.ts +1 -1
  109. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -2
  110. package/dist-types/ts3.4/runtimeConfig.d.ts +2 -2
  111. package/dist-types/ts3.4/runtimeConfig.native.d.ts +3 -3
  112. package/package.json +13 -34
@@ -3,18 +3,17 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getRuntimeConfig = void 0;
4
4
  const httpAuthSchemes_1 = require("@aws-sdk/core/httpAuthSchemes");
5
5
  const protocols_1 = require("@aws-sdk/core/protocols");
6
- const smithy_client_1 = require("@smithy/smithy-client");
7
- const url_parser_1 = require("@smithy/url-parser");
8
- const util_base64_1 = require("@smithy/util-base64");
9
- const util_utf8_1 = require("@smithy/util-utf8");
6
+ const client_1 = require("@smithy/core/client");
7
+ const protocols_2 = require("@smithy/core/protocols");
8
+ const serde_1 = require("@smithy/core/serde");
10
9
  const httpAuthSchemeProvider_1 = require("./auth/httpAuthSchemeProvider");
11
10
  const endpointResolver_1 = require("./endpoint/endpointResolver");
12
11
  const schemas_0_1 = require("./schemas/schemas_0");
13
12
  const getRuntimeConfig = (config) => {
14
13
  return {
15
14
  apiVersion: "2020-08-18",
16
- base64Decoder: config?.base64Decoder ?? util_base64_1.fromBase64,
17
- base64Encoder: config?.base64Encoder ?? util_base64_1.toBase64,
15
+ base64Decoder: config?.base64Decoder ?? serde_1.fromBase64,
16
+ base64Encoder: config?.base64Encoder ?? serde_1.toBase64,
18
17
  disableHostPrefix: config?.disableHostPrefix ?? false,
19
18
  endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,
20
19
  extensions: config?.extensions ?? [],
@@ -26,7 +25,7 @@ const getRuntimeConfig = (config) => {
26
25
  signer: new httpAuthSchemes_1.AwsSdkSigV4Signer(),
27
26
  },
28
27
  ],
29
- logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
28
+ logger: config?.logger ?? new client_1.NoOpLogger(),
30
29
  protocol: config?.protocol ?? protocols_1.AwsRestJsonProtocol,
31
30
  protocolSettings: config?.protocolSettings ?? {
32
31
  defaultNamespace: "com.amazonaws.grafana",
@@ -35,9 +34,9 @@ const getRuntimeConfig = (config) => {
35
34
  serviceTarget: "AWSGrafanaControlPlane",
36
35
  },
37
36
  serviceId: config?.serviceId ?? "grafana",
38
- urlParser: config?.urlParser ?? url_parser_1.parseUrl,
39
- utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,
40
- utf8Encoder: config?.utf8Encoder ?? util_utf8_1.toUtf8,
37
+ urlParser: config?.urlParser ?? protocols_2.parseUrl,
38
+ utf8Decoder: config?.utf8Decoder ?? serde_1.fromUtf8,
39
+ utf8Encoder: config?.utf8Encoder ?? serde_1.toUtf8,
41
40
  };
42
41
  };
43
42
  exports.getRuntimeConfig = getRuntimeConfig;
@@ -1,4 +1,4 @@
1
- import { createAggregatedClient } from "@smithy/smithy-client";
1
+ import { createAggregatedClient } from "@smithy/core/client";
2
2
  import { AssociateLicenseCommand, } from "./commands/AssociateLicenseCommand";
3
3
  import { CreateWorkspaceApiKeyCommand, } from "./commands/CreateWorkspaceApiKeyCommand";
4
4
  import { CreateWorkspaceCommand, } from "./commands/CreateWorkspaceCommand";
@@ -2,13 +2,13 @@ import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middlewa
2
2
  import { getLoggerPlugin } from "@aws-sdk/middleware-logger";
3
3
  import { getRecursionDetectionPlugin } from "@aws-sdk/middleware-recursion-detection";
4
4
  import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
5
- import { resolveRegionConfig } from "@smithy/config-resolver";
6
5
  import { DefaultIdentityProviderConfig, getHttpAuthSchemeEndpointRuleSetPlugin, getHttpSigningPlugin, } from "@smithy/core";
6
+ import { Client as __Client, } from "@smithy/core/client";
7
+ import { resolveRegionConfig } from "@smithy/core/config";
8
+ import { resolveEndpointConfig } from "@smithy/core/endpoints";
9
+ import { getContentLengthPlugin } from "@smithy/core/protocols";
10
+ import { getRetryPlugin, resolveRetryConfig, } from "@smithy/core/retry";
7
11
  import { getSchemaSerdePlugin } from "@smithy/core/schema";
8
- import { getContentLengthPlugin } from "@smithy/middleware-content-length";
9
- import { resolveEndpointConfig, } from "@smithy/middleware-endpoint";
10
- import { getRetryPlugin, resolveRetryConfig, } from "@smithy/middleware-retry";
11
- import { Client as __Client, } from "@smithy/smithy-client";
12
12
  import { defaultGrafanaHttpAuthSchemeParametersProvider, resolveHttpAuthSchemeConfig, } from "./auth/httpAuthSchemeProvider";
13
13
  import { resolveClientEndpointParameters, } from "./endpoint/EndpointParameters";
14
14
  import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
@@ -1,5 +1,5 @@
1
1
  import { resolveAwsSdkSigV4Config, } from "@aws-sdk/core/httpAuthSchemes";
2
- import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware";
2
+ import { getSmithyContext, normalizeProvider } from "@smithy/core/client";
3
3
  export const defaultGrafanaHttpAuthSchemeParametersProvider = async (config, context, input) => {
4
4
  return {
5
5
  operation: getSmithyContext(context).operation,
@@ -1,5 +1,5 @@
1
- import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { Command as $Command } from "@smithy/smithy-client";
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
4
  import { AssociateLicense$ } from "../schemas/schemas_0";
5
5
  export { $Command };
@@ -1,5 +1,5 @@
1
- import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { Command as $Command } from "@smithy/smithy-client";
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
4
  import { CreateWorkspaceApiKey$ } from "../schemas/schemas_0";
5
5
  export { $Command };
@@ -1,5 +1,5 @@
1
- import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { Command as $Command } from "@smithy/smithy-client";
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
4
  import { CreateWorkspace$ } from "../schemas/schemas_0";
5
5
  export { $Command };
@@ -1,5 +1,5 @@
1
- import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { Command as $Command } from "@smithy/smithy-client";
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
4
  import { CreateWorkspaceServiceAccount$ } from "../schemas/schemas_0";
5
5
  export { $Command };
@@ -1,5 +1,5 @@
1
- import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { Command as $Command } from "@smithy/smithy-client";
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
4
  import { CreateWorkspaceServiceAccountToken$ } from "../schemas/schemas_0";
5
5
  export { $Command };
@@ -1,5 +1,5 @@
1
- import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { Command as $Command } from "@smithy/smithy-client";
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
4
  import { DeleteWorkspaceApiKey$ } from "../schemas/schemas_0";
5
5
  export { $Command };
@@ -1,5 +1,5 @@
1
- import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { Command as $Command } from "@smithy/smithy-client";
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
4
  import { DeleteWorkspace$ } from "../schemas/schemas_0";
5
5
  export { $Command };
@@ -1,5 +1,5 @@
1
- import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { Command as $Command } from "@smithy/smithy-client";
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
4
  import { DeleteWorkspaceServiceAccount$ } from "../schemas/schemas_0";
5
5
  export { $Command };
@@ -1,5 +1,5 @@
1
- import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { Command as $Command } from "@smithy/smithy-client";
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
4
  import { DeleteWorkspaceServiceAccountToken$ } from "../schemas/schemas_0";
5
5
  export { $Command };
@@ -1,5 +1,5 @@
1
- import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { Command as $Command } from "@smithy/smithy-client";
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
4
  import { DescribeWorkspaceAuthentication$ } from "../schemas/schemas_0";
5
5
  export { $Command };
@@ -1,5 +1,5 @@
1
- import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { Command as $Command } from "@smithy/smithy-client";
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
4
  import { DescribeWorkspace$ } from "../schemas/schemas_0";
5
5
  export { $Command };
@@ -1,5 +1,5 @@
1
- import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { Command as $Command } from "@smithy/smithy-client";
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
4
  import { DescribeWorkspaceConfiguration$ } from "../schemas/schemas_0";
5
5
  export { $Command };
@@ -1,5 +1,5 @@
1
- import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { Command as $Command } from "@smithy/smithy-client";
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
4
  import { DisassociateLicense$ } from "../schemas/schemas_0";
5
5
  export { $Command };
@@ -1,5 +1,5 @@
1
- import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { Command as $Command } from "@smithy/smithy-client";
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
4
  import { ListPermissions$ } from "../schemas/schemas_0";
5
5
  export { $Command };
@@ -1,5 +1,5 @@
1
- import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { Command as $Command } from "@smithy/smithy-client";
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
4
  import { ListTagsForResource$ } from "../schemas/schemas_0";
5
5
  export { $Command };
@@ -1,5 +1,5 @@
1
- import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { Command as $Command } from "@smithy/smithy-client";
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
4
  import { ListVersions$ } from "../schemas/schemas_0";
5
5
  export { $Command };
@@ -1,5 +1,5 @@
1
- import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { Command as $Command } from "@smithy/smithy-client";
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
4
  import { ListWorkspaceServiceAccountTokens$ } from "../schemas/schemas_0";
5
5
  export { $Command };
@@ -1,5 +1,5 @@
1
- import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { Command as $Command } from "@smithy/smithy-client";
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
4
  import { ListWorkspaceServiceAccounts$ } from "../schemas/schemas_0";
5
5
  export { $Command };
@@ -1,5 +1,5 @@
1
- import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { Command as $Command } from "@smithy/smithy-client";
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
4
  import { ListWorkspaces$ } from "../schemas/schemas_0";
5
5
  export { $Command };
@@ -1,5 +1,5 @@
1
- import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { Command as $Command } from "@smithy/smithy-client";
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
4
  import { TagResource$ } from "../schemas/schemas_0";
5
5
  export { $Command };
@@ -1,5 +1,5 @@
1
- import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { Command as $Command } from "@smithy/smithy-client";
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
4
  import { UntagResource$ } from "../schemas/schemas_0";
5
5
  export { $Command };
@@ -1,5 +1,5 @@
1
- import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { Command as $Command } from "@smithy/smithy-client";
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
4
  import { UpdatePermissions$ } from "../schemas/schemas_0";
5
5
  export { $Command };
@@ -1,5 +1,5 @@
1
- import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { Command as $Command } from "@smithy/smithy-client";
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
4
  import { UpdateWorkspaceAuthentication$ } from "../schemas/schemas_0";
5
5
  export { $Command };
@@ -1,5 +1,5 @@
1
- import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { Command as $Command } from "@smithy/smithy-client";
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
4
  import { UpdateWorkspace$ } from "../schemas/schemas_0";
5
5
  export { $Command };
@@ -1,5 +1,5 @@
1
- import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { Command as $Command } from "@smithy/smithy-client";
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
4
  import { UpdateWorkspaceConfiguration$ } from "../schemas/schemas_0";
5
5
  export { $Command };
@@ -1,4 +1,4 @@
1
- import { BinaryDecisionDiagram } from "@smithy/util-endpoints";
1
+ import { BinaryDecisionDiagram } from "@smithy/core/endpoints";
2
2
  const k = "ref";
3
3
  const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g = { [k]: "Endpoint" }, h = { [k]: d }, i = {}, j = [{ [k]: "Region" }];
4
4
  const _data = {
@@ -1,5 +1,5 @@
1
1
  import { awsEndpointFunctions } from "@aws-sdk/util-endpoints";
2
- import { customEndpointFunctions, decideEndpoint, EndpointCache } from "@smithy/util-endpoints";
2
+ import { customEndpointFunctions, decideEndpoint, EndpointCache } from "@smithy/core/endpoints";
3
3
  import { bdd } from "./bdd";
4
4
  const cache = new EndpointCache({
5
5
  size: 50,
@@ -1,4 +1,4 @@
1
- import { ServiceException as __ServiceException, } from "@smithy/smithy-client";
1
+ import { ServiceException as __ServiceException, } from "@smithy/core/client";
2
2
  export { __ServiceException };
3
3
  export class GrafanaServiceException extends __ServiceException {
4
4
  constructor(options) {
@@ -1,13 +1,11 @@
1
1
  import packageInfo from "../package.json";
2
2
  import { Sha256 } from "@aws-crypto/sha256-browser";
3
3
  import { createDefaultUserAgentProvider } from "@aws-sdk/util-user-agent-browser";
4
- import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@smithy/config-resolver";
4
+ import { invalidProvider, loadConfigsForDefaultMode } from "@smithy/core/client";
5
+ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT, resolveDefaultsModeConfig, } from "@smithy/core/config";
6
+ import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@smithy/core/retry";
7
+ import { calculateBodyLength } from "@smithy/core/serde";
5
8
  import { FetchHttpHandler as RequestHandler, streamCollector } from "@smithy/fetch-http-handler";
6
- import { invalidProvider } from "@smithy/invalid-dependency";
7
- import { loadConfigsForDefaultMode } from "@smithy/smithy-client";
8
- import { calculateBodyLength } from "@smithy/util-body-length-browser";
9
- import { resolveDefaultsModeConfig } from "@smithy/util-defaults-mode-browser";
10
- import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@smithy/util-retry";
11
9
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
12
10
  export const getRuntimeConfig = (config) => {
13
11
  const defaultsMode = resolveDefaultsModeConfig(config);
@@ -3,15 +3,11 @@ import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/cor
3
3
  import { NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } from "@aws-sdk/core/httpAuthSchemes";
4
4
  import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
5
5
  import { createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS } from "@aws-sdk/util-user-agent-node";
6
- import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@smithy/config-resolver";
7
- import { Hash } from "@smithy/hash-node";
8
- import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@smithy/middleware-retry";
9
- import { loadConfig as loadNodeConfig } from "@smithy/node-config-provider";
6
+ import { emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode } from "@smithy/core/client";
7
+ import { loadConfig as loadNodeConfig, NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, resolveDefaultsModeConfig, } from "@smithy/core/config";
8
+ import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@smithy/core/retry";
9
+ import { calculateBodyLength, Hash } from "@smithy/core/serde";
10
10
  import { NodeHttpHandler as RequestHandler, streamCollector } from "@smithy/node-http-handler";
11
- import { emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode } from "@smithy/smithy-client";
12
- import { calculateBodyLength } from "@smithy/util-body-length-node";
13
- import { resolveDefaultsModeConfig } from "@smithy/util-defaults-mode-node";
14
- import { DEFAULT_RETRY_MODE } from "@smithy/util-retry";
15
11
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
16
12
  export const getRuntimeConfig = (config) => {
17
13
  emitWarningIfUnsupportedVersion(process.version);
@@ -1,9 +1,8 @@
1
1
  import { AwsSdkSigV4Signer } from "@aws-sdk/core/httpAuthSchemes";
2
2
  import { AwsRestJsonProtocol } from "@aws-sdk/core/protocols";
3
- import { NoOpLogger } from "@smithy/smithy-client";
4
- import { parseUrl } from "@smithy/url-parser";
5
- import { fromBase64, toBase64 } from "@smithy/util-base64";
6
- import { fromUtf8, toUtf8 } from "@smithy/util-utf8";
3
+ import { NoOpLogger } from "@smithy/core/client";
4
+ import { parseUrl } from "@smithy/core/protocols";
5
+ import { fromBase64, fromUtf8, toBase64, toUtf8 } from "@smithy/core/serde";
7
6
  import { defaultGrafanaHttpAuthSchemeProvider } from "./auth/httpAuthSchemeProvider";
8
7
  import { defaultEndpointResolver } from "./endpoint/endpointResolver";
9
8
  import { errorTypeRegistries } from "./schemas/schemas_0";
@@ -1,6 +1,6 @@
1
1
  import { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, } from "@aws-sdk/region-config-resolver";
2
- import { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig } from "@smithy/protocol-http";
3
- import { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig } from "@smithy/smithy-client";
2
+ import { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig } from "@smithy/core/client";
3
+ import { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig } from "@smithy/core/protocols";
4
4
  import { getHttpAuthExtensionConfiguration, resolveHttpAuthRuntimeConfig } from "./auth/httpAuthExtensionConfiguration";
5
5
  export const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
6
6
  const extensionConfiguration = Object.assign(getAwsRegionExtensionConfiguration(runtimeConfig), getDefaultExtensionConfiguration(runtimeConfig), getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
@@ -1,10 +1,10 @@
1
1
  import { type HostHeaderInputConfig, type HostHeaderResolvedConfig } from "@aws-sdk/middleware-host-header";
2
2
  import { type UserAgentInputConfig, type UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
3
- import { type RegionInputConfig, type RegionResolvedConfig } from "@smithy/config-resolver";
4
- import { type EndpointInputConfig, type EndpointResolvedConfig } from "@smithy/middleware-endpoint";
5
- import { type RetryInputConfig, type RetryResolvedConfig } from "@smithy/middleware-retry";
6
- import type { HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/protocol-http";
7
- import { type DefaultsMode as __DefaultsMode, type SmithyConfiguration as __SmithyConfiguration, type SmithyResolvedConfiguration as __SmithyResolvedConfiguration, Client as __Client } from "@smithy/smithy-client";
3
+ import { type DefaultsMode as __DefaultsMode, type SmithyConfiguration as __SmithyConfiguration, type SmithyResolvedConfiguration as __SmithyResolvedConfiguration, Client as __Client } from "@smithy/core/client";
4
+ import { type RegionInputConfig, type RegionResolvedConfig } from "@smithy/core/config";
5
+ import { type EndpointInputConfig, type EndpointResolvedConfig } from "@smithy/core/endpoints";
6
+ import { type HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/core/protocols";
7
+ import { type RetryInputConfig, type RetryResolvedConfig } from "@smithy/core/retry";
8
8
  import type { AwsCredentialIdentityProvider, BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
9
9
  import { type HttpAuthSchemeInputConfig, type HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider";
10
10
  import type { AssociateLicenseCommandInput, AssociateLicenseCommandOutput } from "./commands/AssociateLicenseCommand";
@@ -1,4 +1,4 @@
1
- import { Command as $Command } from "@smithy/smithy-client";
1
+ import { Command as $Command } from "@smithy/core/client";
2
2
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
3
  import type { GrafanaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../GrafanaClient";
4
4
  import type { AssociateLicenseRequest, AssociateLicenseResponse } from "../models/models_0";
@@ -22,9 +22,11 @@ export interface AssociateLicenseCommandInput extends AssociateLicenseRequest {
22
22
  export interface AssociateLicenseCommandOutput extends AssociateLicenseResponse, __MetadataBearer {
23
23
  }
24
24
  declare const AssociateLicenseCommand_base: {
25
- new (input: AssociateLicenseCommandInput): import("@smithy/smithy-client").CommandImpl<AssociateLicenseCommandInput, AssociateLicenseCommandOutput, GrafanaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (input: AssociateLicenseCommandInput): import("@smithy/smithy-client").CommandImpl<AssociateLicenseCommandInput, AssociateLicenseCommandOutput, GrafanaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
25
+ new (input: AssociateLicenseCommandInput): import("@smithy/core/client").CommandImpl<AssociateLicenseCommandInput, AssociateLicenseCommandOutput, GrafanaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: AssociateLicenseCommandInput): import("@smithy/core/client").CommandImpl<AssociateLicenseCommandInput, AssociateLicenseCommandOutput, GrafanaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): {
28
+ [x: string]: unknown;
29
+ };
28
30
  };
29
31
  /**
30
32
  * <p>Assigns a Grafana Enterprise license to a workspace. To upgrade, you must use <code>ENTERPRISE</code> for the <code>licenseType</code>, and pass in a valid Grafana Labs token for the <code>grafanaToken</code>. Upgrading to Grafana Enterprise incurs additional fees. For more information, see <a href="https://docs.aws.amazon.com/grafana/latest/userguide/upgrade-to-Grafana-Enterprise.html">Upgrade a workspace to Grafana Enterprise</a>.</p>
@@ -1,4 +1,4 @@
1
- import { Command as $Command } from "@smithy/smithy-client";
1
+ import { Command as $Command } from "@smithy/core/client";
2
2
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
3
  import type { GrafanaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../GrafanaClient";
4
4
  import type { CreateWorkspaceApiKeyRequest, CreateWorkspaceApiKeyResponse } from "../models/models_0";
@@ -22,9 +22,11 @@ export interface CreateWorkspaceApiKeyCommandInput extends CreateWorkspaceApiKey
22
22
  export interface CreateWorkspaceApiKeyCommandOutput extends CreateWorkspaceApiKeyResponse, __MetadataBearer {
23
23
  }
24
24
  declare const CreateWorkspaceApiKeyCommand_base: {
25
- new (input: CreateWorkspaceApiKeyCommandInput): import("@smithy/smithy-client").CommandImpl<CreateWorkspaceApiKeyCommandInput, CreateWorkspaceApiKeyCommandOutput, GrafanaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (input: CreateWorkspaceApiKeyCommandInput): import("@smithy/smithy-client").CommandImpl<CreateWorkspaceApiKeyCommandInput, CreateWorkspaceApiKeyCommandOutput, GrafanaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
25
+ new (input: CreateWorkspaceApiKeyCommandInput): import("@smithy/core/client").CommandImpl<CreateWorkspaceApiKeyCommandInput, CreateWorkspaceApiKeyCommandOutput, GrafanaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: CreateWorkspaceApiKeyCommandInput): import("@smithy/core/client").CommandImpl<CreateWorkspaceApiKeyCommandInput, CreateWorkspaceApiKeyCommandOutput, GrafanaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): {
28
+ [x: string]: unknown;
29
+ };
28
30
  };
29
31
  /**
30
32
  * <p>Creates a Grafana API key for the workspace. This key can be used to authenticate requests sent to the workspace's HTTP API. See <a href="https://docs.aws.amazon.com/grafana/latest/userguide/Using-Grafana-APIs.html">https://docs.aws.amazon.com/grafana/latest/userguide/Using-Grafana-APIs.html</a> for available APIs and example requests.</p> <note> <p>In workspaces compatible with Grafana version 9 or above, use workspace service accounts instead of API keys. API keys will be removed in a future release.</p> </note>
@@ -1,4 +1,4 @@
1
- import { Command as $Command } from "@smithy/smithy-client";
1
+ import { Command as $Command } from "@smithy/core/client";
2
2
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
3
  import type { GrafanaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../GrafanaClient";
4
4
  import type { CreateWorkspaceRequest, CreateWorkspaceResponse } from "../models/models_0";
@@ -22,9 +22,11 @@ export interface CreateWorkspaceCommandInput extends CreateWorkspaceRequest {
22
22
  export interface CreateWorkspaceCommandOutput extends CreateWorkspaceResponse, __MetadataBearer {
23
23
  }
24
24
  declare const CreateWorkspaceCommand_base: {
25
- new (input: CreateWorkspaceCommandInput): import("@smithy/smithy-client").CommandImpl<CreateWorkspaceCommandInput, CreateWorkspaceCommandOutput, GrafanaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (input: CreateWorkspaceCommandInput): import("@smithy/smithy-client").CommandImpl<CreateWorkspaceCommandInput, CreateWorkspaceCommandOutput, GrafanaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
25
+ new (input: CreateWorkspaceCommandInput): import("@smithy/core/client").CommandImpl<CreateWorkspaceCommandInput, CreateWorkspaceCommandOutput, GrafanaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: CreateWorkspaceCommandInput): import("@smithy/core/client").CommandImpl<CreateWorkspaceCommandInput, CreateWorkspaceCommandOutput, GrafanaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): {
28
+ [x: string]: unknown;
29
+ };
28
30
  };
29
31
  /**
30
32
  * <p>Creates a <i>workspace</i>. In a workspace, you can create Grafana dashboards and visualizations to analyze your metrics, logs, and traces. You don't have to build, package, or deploy any hardware to run the Grafana server.</p> <p>Don't use <code>CreateWorkspace</code> to modify an existing workspace. Instead, use <a href="https://docs.aws.amazon.com/grafana/latest/APIReference/API_UpdateWorkspace.html">UpdateWorkspace</a>.</p>
@@ -1,4 +1,4 @@
1
- import { Command as $Command } from "@smithy/smithy-client";
1
+ import { Command as $Command } from "@smithy/core/client";
2
2
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
3
  import type { GrafanaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../GrafanaClient";
4
4
  import type { CreateWorkspaceServiceAccountRequest, CreateWorkspaceServiceAccountResponse } from "../models/models_0";
@@ -22,9 +22,11 @@ export interface CreateWorkspaceServiceAccountCommandInput extends CreateWorkspa
22
22
  export interface CreateWorkspaceServiceAccountCommandOutput extends CreateWorkspaceServiceAccountResponse, __MetadataBearer {
23
23
  }
24
24
  declare const CreateWorkspaceServiceAccountCommand_base: {
25
- new (input: CreateWorkspaceServiceAccountCommandInput): import("@smithy/smithy-client").CommandImpl<CreateWorkspaceServiceAccountCommandInput, CreateWorkspaceServiceAccountCommandOutput, GrafanaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (input: CreateWorkspaceServiceAccountCommandInput): import("@smithy/smithy-client").CommandImpl<CreateWorkspaceServiceAccountCommandInput, CreateWorkspaceServiceAccountCommandOutput, GrafanaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
25
+ new (input: CreateWorkspaceServiceAccountCommandInput): import("@smithy/core/client").CommandImpl<CreateWorkspaceServiceAccountCommandInput, CreateWorkspaceServiceAccountCommandOutput, GrafanaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: CreateWorkspaceServiceAccountCommandInput): import("@smithy/core/client").CommandImpl<CreateWorkspaceServiceAccountCommandInput, CreateWorkspaceServiceAccountCommandOutput, GrafanaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): {
28
+ [x: string]: unknown;
29
+ };
28
30
  };
29
31
  /**
30
32
  * <p>Creates a service account for the workspace. A service account can be used to call Grafana HTTP APIs, and run automated workloads. After creating the service account with the correct <code>GrafanaRole</code> for your use case, use <code>CreateWorkspaceServiceAccountToken</code> to create a token that can be used to authenticate and authorize Grafana HTTP API calls.</p> <p>You can only create service accounts for workspaces that are compatible with Grafana version 9 and above.</p> <note> <p>For more information about service accounts, see <a href="https://docs.aws.amazon.com/grafana/latest/userguide/service-accounts.html">Service accounts</a> in the <i>Amazon Managed Grafana User Guide</i>.</p> <p>For more information about the Grafana HTTP APIs, see <a href="https://docs.aws.amazon.com/grafana/latest/userguide/Using-Grafana-APIs.html">Using Grafana HTTP APIs</a> in the <i>Amazon Managed Grafana User Guide</i>.</p> </note>
@@ -1,4 +1,4 @@
1
- import { Command as $Command } from "@smithy/smithy-client";
1
+ import { Command as $Command } from "@smithy/core/client";
2
2
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
3
  import type { GrafanaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../GrafanaClient";
4
4
  import type { CreateWorkspaceServiceAccountTokenRequest, CreateWorkspaceServiceAccountTokenResponse } from "../models/models_0";
@@ -22,9 +22,11 @@ export interface CreateWorkspaceServiceAccountTokenCommandInput extends CreateWo
22
22
  export interface CreateWorkspaceServiceAccountTokenCommandOutput extends CreateWorkspaceServiceAccountTokenResponse, __MetadataBearer {
23
23
  }
24
24
  declare const CreateWorkspaceServiceAccountTokenCommand_base: {
25
- new (input: CreateWorkspaceServiceAccountTokenCommandInput): import("@smithy/smithy-client").CommandImpl<CreateWorkspaceServiceAccountTokenCommandInput, CreateWorkspaceServiceAccountTokenCommandOutput, GrafanaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (input: CreateWorkspaceServiceAccountTokenCommandInput): import("@smithy/smithy-client").CommandImpl<CreateWorkspaceServiceAccountTokenCommandInput, CreateWorkspaceServiceAccountTokenCommandOutput, GrafanaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
25
+ new (input: CreateWorkspaceServiceAccountTokenCommandInput): import("@smithy/core/client").CommandImpl<CreateWorkspaceServiceAccountTokenCommandInput, CreateWorkspaceServiceAccountTokenCommandOutput, GrafanaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: CreateWorkspaceServiceAccountTokenCommandInput): import("@smithy/core/client").CommandImpl<CreateWorkspaceServiceAccountTokenCommandInput, CreateWorkspaceServiceAccountTokenCommandOutput, GrafanaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): {
28
+ [x: string]: unknown;
29
+ };
28
30
  };
29
31
  /**
30
32
  * <p>Creates a token that can be used to authenticate and authorize Grafana HTTP API operations for the given <a href="https://docs.aws.amazon.com/grafana/latest/userguide/service-accounts.html">workspace service account</a>. The service account acts as a user for the API operations, and defines the permissions that are used by the API.</p> <important> <p>When you create the service account token, you will receive a key that is used when calling Grafana APIs. Do not lose this key, as it will not be retrievable again.</p> <p>If you do lose the key, you can delete the token and recreate it to receive a new key. This will disable the initial key.</p> </important> <p>Service accounts are only available for workspaces that are compatible with Grafana version 9 and above.</p>
@@ -1,4 +1,4 @@
1
- import { Command as $Command } from "@smithy/smithy-client";
1
+ import { Command as $Command } from "@smithy/core/client";
2
2
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
3
  import type { GrafanaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../GrafanaClient";
4
4
  import type { DeleteWorkspaceApiKeyRequest, DeleteWorkspaceApiKeyResponse } from "../models/models_0";
@@ -22,9 +22,11 @@ export interface DeleteWorkspaceApiKeyCommandInput extends DeleteWorkspaceApiKey
22
22
  export interface DeleteWorkspaceApiKeyCommandOutput extends DeleteWorkspaceApiKeyResponse, __MetadataBearer {
23
23
  }
24
24
  declare const DeleteWorkspaceApiKeyCommand_base: {
25
- new (input: DeleteWorkspaceApiKeyCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteWorkspaceApiKeyCommandInput, DeleteWorkspaceApiKeyCommandOutput, GrafanaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (input: DeleteWorkspaceApiKeyCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteWorkspaceApiKeyCommandInput, DeleteWorkspaceApiKeyCommandOutput, GrafanaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
25
+ new (input: DeleteWorkspaceApiKeyCommandInput): import("@smithy/core/client").CommandImpl<DeleteWorkspaceApiKeyCommandInput, DeleteWorkspaceApiKeyCommandOutput, GrafanaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: DeleteWorkspaceApiKeyCommandInput): import("@smithy/core/client").CommandImpl<DeleteWorkspaceApiKeyCommandInput, DeleteWorkspaceApiKeyCommandOutput, GrafanaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): {
28
+ [x: string]: unknown;
29
+ };
28
30
  };
29
31
  /**
30
32
  * <p>Deletes a Grafana API key for the workspace.</p> <note> <p>In workspaces compatible with Grafana version 9 or above, use workspace service accounts instead of API keys. API keys will be removed in a future release.</p> </note>
@@ -1,4 +1,4 @@
1
- import { Command as $Command } from "@smithy/smithy-client";
1
+ import { Command as $Command } from "@smithy/core/client";
2
2
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
3
  import type { GrafanaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../GrafanaClient";
4
4
  import type { DeleteWorkspaceRequest, DeleteWorkspaceResponse } from "../models/models_0";
@@ -22,9 +22,11 @@ export interface DeleteWorkspaceCommandInput extends DeleteWorkspaceRequest {
22
22
  export interface DeleteWorkspaceCommandOutput extends DeleteWorkspaceResponse, __MetadataBearer {
23
23
  }
24
24
  declare const DeleteWorkspaceCommand_base: {
25
- new (input: DeleteWorkspaceCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteWorkspaceCommandInput, DeleteWorkspaceCommandOutput, GrafanaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (input: DeleteWorkspaceCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteWorkspaceCommandInput, DeleteWorkspaceCommandOutput, GrafanaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
25
+ new (input: DeleteWorkspaceCommandInput): import("@smithy/core/client").CommandImpl<DeleteWorkspaceCommandInput, DeleteWorkspaceCommandOutput, GrafanaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: DeleteWorkspaceCommandInput): import("@smithy/core/client").CommandImpl<DeleteWorkspaceCommandInput, DeleteWorkspaceCommandOutput, GrafanaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): {
28
+ [x: string]: unknown;
29
+ };
28
30
  };
29
31
  /**
30
32
  * <p>Deletes an Amazon Managed Grafana workspace.</p>