@aws-sdk/client-grafana 3.477.0 → 3.481.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 (93) hide show
  1. package/dist-cjs/commands/AssociateLicenseCommand.js +18 -41
  2. package/dist-cjs/commands/CreateWorkspaceApiKeyCommand.js +18 -41
  3. package/dist-cjs/commands/CreateWorkspaceCommand.js +18 -41
  4. package/dist-cjs/commands/DeleteWorkspaceApiKeyCommand.js +18 -41
  5. package/dist-cjs/commands/DeleteWorkspaceCommand.js +18 -41
  6. package/dist-cjs/commands/DescribeWorkspaceAuthenticationCommand.js +18 -41
  7. package/dist-cjs/commands/DescribeWorkspaceCommand.js +18 -41
  8. package/dist-cjs/commands/DescribeWorkspaceConfigurationCommand.js +18 -41
  9. package/dist-cjs/commands/DisassociateLicenseCommand.js +18 -41
  10. package/dist-cjs/commands/ListPermissionsCommand.js +18 -41
  11. package/dist-cjs/commands/ListTagsForResourceCommand.js +18 -41
  12. package/dist-cjs/commands/ListVersionsCommand.js +18 -41
  13. package/dist-cjs/commands/ListWorkspacesCommand.js +18 -41
  14. package/dist-cjs/commands/TagResourceCommand.js +18 -41
  15. package/dist-cjs/commands/UntagResourceCommand.js +18 -41
  16. package/dist-cjs/commands/UpdatePermissionsCommand.js +18 -41
  17. package/dist-cjs/commands/UpdateWorkspaceAuthenticationCommand.js +18 -41
  18. package/dist-cjs/commands/UpdateWorkspaceCommand.js +18 -41
  19. package/dist-cjs/commands/UpdateWorkspaceConfigurationCommand.js +18 -41
  20. package/dist-cjs/endpoint/EndpointParameters.js +7 -1
  21. package/dist-cjs/pagination/ListPermissionsPaginator.js +2 -24
  22. package/dist-cjs/pagination/ListVersionsPaginator.js +2 -24
  23. package/dist-cjs/pagination/ListWorkspacesPaginator.js +2 -24
  24. package/dist-es/commands/AssociateLicenseCommand.js +18 -41
  25. package/dist-es/commands/CreateWorkspaceApiKeyCommand.js +18 -41
  26. package/dist-es/commands/CreateWorkspaceCommand.js +18 -41
  27. package/dist-es/commands/DeleteWorkspaceApiKeyCommand.js +18 -41
  28. package/dist-es/commands/DeleteWorkspaceCommand.js +18 -41
  29. package/dist-es/commands/DescribeWorkspaceAuthenticationCommand.js +18 -41
  30. package/dist-es/commands/DescribeWorkspaceCommand.js +18 -41
  31. package/dist-es/commands/DescribeWorkspaceConfigurationCommand.js +18 -41
  32. package/dist-es/commands/DisassociateLicenseCommand.js +18 -41
  33. package/dist-es/commands/ListPermissionsCommand.js +18 -41
  34. package/dist-es/commands/ListTagsForResourceCommand.js +18 -41
  35. package/dist-es/commands/ListVersionsCommand.js +18 -41
  36. package/dist-es/commands/ListWorkspacesCommand.js +18 -41
  37. package/dist-es/commands/TagResourceCommand.js +18 -41
  38. package/dist-es/commands/UntagResourceCommand.js +18 -41
  39. package/dist-es/commands/UpdatePermissionsCommand.js +18 -41
  40. package/dist-es/commands/UpdateWorkspaceAuthenticationCommand.js +18 -41
  41. package/dist-es/commands/UpdateWorkspaceCommand.js +18 -41
  42. package/dist-es/commands/UpdateWorkspaceConfigurationCommand.js +18 -41
  43. package/dist-es/endpoint/EndpointParameters.js +6 -0
  44. package/dist-es/pagination/ListPermissionsPaginator.js +2 -23
  45. package/dist-es/pagination/ListVersionsPaginator.js +2 -23
  46. package/dist-es/pagination/ListWorkspacesPaginator.js +2 -23
  47. package/dist-types/commands/AssociateLicenseCommand.d.ts +6 -21
  48. package/dist-types/commands/CreateWorkspaceApiKeyCommand.d.ts +6 -21
  49. package/dist-types/commands/CreateWorkspaceCommand.d.ts +6 -21
  50. package/dist-types/commands/DeleteWorkspaceApiKeyCommand.d.ts +6 -21
  51. package/dist-types/commands/DeleteWorkspaceCommand.d.ts +6 -21
  52. package/dist-types/commands/DescribeWorkspaceAuthenticationCommand.d.ts +6 -21
  53. package/dist-types/commands/DescribeWorkspaceCommand.d.ts +6 -21
  54. package/dist-types/commands/DescribeWorkspaceConfigurationCommand.d.ts +6 -21
  55. package/dist-types/commands/DisassociateLicenseCommand.d.ts +6 -21
  56. package/dist-types/commands/ListPermissionsCommand.d.ts +6 -21
  57. package/dist-types/commands/ListTagsForResourceCommand.d.ts +6 -21
  58. package/dist-types/commands/ListVersionsCommand.d.ts +6 -21
  59. package/dist-types/commands/ListWorkspacesCommand.d.ts +6 -21
  60. package/dist-types/commands/TagResourceCommand.d.ts +6 -21
  61. package/dist-types/commands/UntagResourceCommand.d.ts +6 -21
  62. package/dist-types/commands/UpdatePermissionsCommand.d.ts +6 -21
  63. package/dist-types/commands/UpdateWorkspaceAuthenticationCommand.d.ts +6 -21
  64. package/dist-types/commands/UpdateWorkspaceCommand.d.ts +6 -21
  65. package/dist-types/commands/UpdateWorkspaceConfigurationCommand.d.ts +6 -21
  66. package/dist-types/endpoint/EndpointParameters.d.ts +18 -0
  67. package/dist-types/pagination/ListPermissionsPaginator.d.ts +1 -1
  68. package/dist-types/pagination/ListVersionsPaginator.d.ts +1 -1
  69. package/dist-types/pagination/ListWorkspacesPaginator.d.ts +1 -1
  70. package/dist-types/ts3.4/commands/AssociateLicenseCommand.d.ts +14 -23
  71. package/dist-types/ts3.4/commands/CreateWorkspaceApiKeyCommand.d.ts +12 -24
  72. package/dist-types/ts3.4/commands/CreateWorkspaceCommand.d.ts +14 -23
  73. package/dist-types/ts3.4/commands/DeleteWorkspaceApiKeyCommand.d.ts +12 -24
  74. package/dist-types/ts3.4/commands/DeleteWorkspaceCommand.d.ts +14 -23
  75. package/dist-types/ts3.4/commands/DescribeWorkspaceAuthenticationCommand.d.ts +12 -24
  76. package/dist-types/ts3.4/commands/DescribeWorkspaceCommand.d.ts +14 -23
  77. package/dist-types/ts3.4/commands/DescribeWorkspaceConfigurationCommand.d.ts +12 -24
  78. package/dist-types/ts3.4/commands/DisassociateLicenseCommand.d.ts +14 -23
  79. package/dist-types/ts3.4/commands/ListPermissionsCommand.d.ts +14 -23
  80. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +14 -23
  81. package/dist-types/ts3.4/commands/ListVersionsCommand.d.ts +14 -23
  82. package/dist-types/ts3.4/commands/ListWorkspacesCommand.d.ts +14 -23
  83. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +14 -23
  84. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +14 -23
  85. package/dist-types/ts3.4/commands/UpdatePermissionsCommand.d.ts +14 -23
  86. package/dist-types/ts3.4/commands/UpdateWorkspaceAuthenticationCommand.d.ts +12 -24
  87. package/dist-types/ts3.4/commands/UpdateWorkspaceCommand.d.ts +14 -23
  88. package/dist-types/ts3.4/commands/UpdateWorkspaceConfigurationCommand.d.ts +12 -24
  89. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +18 -0
  90. package/dist-types/ts3.4/pagination/ListPermissionsPaginator.d.ts +3 -3
  91. package/dist-types/ts3.4/pagination/ListVersionsPaginator.d.ts +3 -3
  92. package/dist-types/ts3.4/pagination/ListWorkspacesPaginator.d.ts +3 -3
  93. package/package.json +11 -11
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_UpdatePermissionsCommand, se_UpdatePermissionsCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class UpdatePermissionsCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, UpdatePermissionsCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "GrafanaClient";
26
- const commandName = "UpdatePermissionsCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "AWSGrafanaControlPlane",
35
- operation: "UpdatePermissions",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_UpdatePermissionsCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_UpdatePermissionsCommand(output, context);
46
- }
7
+ export class UpdatePermissionsCommand 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", "UpdatePermissions", {})
19
+ .n("GrafanaClient", "UpdatePermissionsCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_UpdatePermissionsCommand)
22
+ .de(de_UpdatePermissionsCommand)
23
+ .build() {
47
24
  }
@@ -1,48 +1,25 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { UpdateWorkspaceAuthenticationRequestFilterSensitiveLog, UpdateWorkspaceAuthenticationResponseFilterSensitiveLog, } from "../models/models_0";
6
6
  import { de_UpdateWorkspaceAuthenticationCommand, se_UpdateWorkspaceAuthenticationCommand, } from "../protocols/Aws_restJson1";
7
7
  export { $Command };
8
- export class UpdateWorkspaceAuthenticationCommand extends $Command {
9
- static getEndpointParameterInstructions() {
10
- return {
11
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
12
- Endpoint: { type: "builtInParams", name: "endpoint" },
13
- Region: { type: "builtInParams", name: "region" },
14
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
15
- };
16
- }
17
- constructor(input) {
18
- super();
19
- this.input = input;
20
- }
21
- resolveMiddleware(clientStack, configuration, options) {
22
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
23
- this.middlewareStack.use(getEndpointPlugin(configuration, UpdateWorkspaceAuthenticationCommand.getEndpointParameterInstructions()));
24
- const stack = clientStack.concat(this.middlewareStack);
25
- const { logger } = configuration;
26
- const clientName = "GrafanaClient";
27
- const commandName = "UpdateWorkspaceAuthenticationCommand";
28
- const handlerExecutionContext = {
29
- logger,
30
- clientName,
31
- commandName,
32
- inputFilterSensitiveLog: UpdateWorkspaceAuthenticationRequestFilterSensitiveLog,
33
- outputFilterSensitiveLog: UpdateWorkspaceAuthenticationResponseFilterSensitiveLog,
34
- [SMITHY_CONTEXT_KEY]: {
35
- service: "AWSGrafanaControlPlane",
36
- operation: "UpdateWorkspaceAuthentication",
37
- },
38
- };
39
- const { requestHandler } = configuration;
40
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
41
- }
42
- serialize(input, context) {
43
- return se_UpdateWorkspaceAuthenticationCommand(input, context);
44
- }
45
- deserialize(output, context) {
46
- return de_UpdateWorkspaceAuthenticationCommand(output, context);
47
- }
8
+ export class UpdateWorkspaceAuthenticationCommand 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", "UpdateWorkspaceAuthentication", {})
20
+ .n("GrafanaClient", "UpdateWorkspaceAuthenticationCommand")
21
+ .f(UpdateWorkspaceAuthenticationRequestFilterSensitiveLog, UpdateWorkspaceAuthenticationResponseFilterSensitiveLog)
22
+ .ser(se_UpdateWorkspaceAuthenticationCommand)
23
+ .de(de_UpdateWorkspaceAuthenticationCommand)
24
+ .build() {
48
25
  }
@@ -1,48 +1,25 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { UpdateWorkspaceRequestFilterSensitiveLog, UpdateWorkspaceResponseFilterSensitiveLog, } from "../models/models_0";
6
6
  import { de_UpdateWorkspaceCommand, se_UpdateWorkspaceCommand } from "../protocols/Aws_restJson1";
7
7
  export { $Command };
8
- export class UpdateWorkspaceCommand extends $Command {
9
- static getEndpointParameterInstructions() {
10
- return {
11
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
12
- Endpoint: { type: "builtInParams", name: "endpoint" },
13
- Region: { type: "builtInParams", name: "region" },
14
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
15
- };
16
- }
17
- constructor(input) {
18
- super();
19
- this.input = input;
20
- }
21
- resolveMiddleware(clientStack, configuration, options) {
22
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
23
- this.middlewareStack.use(getEndpointPlugin(configuration, UpdateWorkspaceCommand.getEndpointParameterInstructions()));
24
- const stack = clientStack.concat(this.middlewareStack);
25
- const { logger } = configuration;
26
- const clientName = "GrafanaClient";
27
- const commandName = "UpdateWorkspaceCommand";
28
- const handlerExecutionContext = {
29
- logger,
30
- clientName,
31
- commandName,
32
- inputFilterSensitiveLog: UpdateWorkspaceRequestFilterSensitiveLog,
33
- outputFilterSensitiveLog: UpdateWorkspaceResponseFilterSensitiveLog,
34
- [SMITHY_CONTEXT_KEY]: {
35
- service: "AWSGrafanaControlPlane",
36
- operation: "UpdateWorkspace",
37
- },
38
- };
39
- const { requestHandler } = configuration;
40
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
41
- }
42
- serialize(input, context) {
43
- return se_UpdateWorkspaceCommand(input, context);
44
- }
45
- deserialize(output, context) {
46
- return de_UpdateWorkspaceCommand(output, context);
47
- }
8
+ export class UpdateWorkspaceCommand 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", "UpdateWorkspace", {})
20
+ .n("GrafanaClient", "UpdateWorkspaceCommand")
21
+ .f(UpdateWorkspaceRequestFilterSensitiveLog, UpdateWorkspaceResponseFilterSensitiveLog)
22
+ .ser(se_UpdateWorkspaceCommand)
23
+ .de(de_UpdateWorkspaceCommand)
24
+ .build() {
48
25
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_UpdateWorkspaceConfigurationCommand, se_UpdateWorkspaceConfigurationCommand, } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class UpdateWorkspaceConfigurationCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, UpdateWorkspaceConfigurationCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "GrafanaClient";
26
- const commandName = "UpdateWorkspaceConfigurationCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "AWSGrafanaControlPlane",
35
- operation: "UpdateWorkspaceConfiguration",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_UpdateWorkspaceConfigurationCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_UpdateWorkspaceConfigurationCommand(output, context);
46
- }
7
+ export class UpdateWorkspaceConfigurationCommand 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", "UpdateWorkspaceConfiguration", {})
19
+ .n("GrafanaClient", "UpdateWorkspaceConfigurationCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_UpdateWorkspaceConfigurationCommand)
22
+ .de(de_UpdateWorkspaceConfigurationCommand)
23
+ .build() {
47
24
  }
@@ -6,3 +6,9 @@ export const resolveClientEndpointParameters = (options) => {
6
6
  defaultSigningName: "grafana",
7
7
  };
8
8
  };
9
+ export const commonParams = {
10
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
+ Endpoint: { type: "builtInParams", name: "endpoint" },
12
+ Region: { type: "builtInParams", name: "region" },
13
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
+ };
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListPermissionsCommand, } from "../commands/ListPermissionsCommand";
2
3
  import { GrafanaClient } from "../GrafanaClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListPermissionsCommand(input), ...args);
5
- };
6
- export async function* paginateListPermissions(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.nextToken = token;
12
- input["maxResults"] = config.pageSize;
13
- if (config.client instanceof GrafanaClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected Grafana | GrafanaClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.nextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateListPermissions = createPaginator(GrafanaClient, ListPermissionsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListVersionsCommand, } from "../commands/ListVersionsCommand";
2
3
  import { GrafanaClient } from "../GrafanaClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListVersionsCommand(input), ...args);
5
- };
6
- export async function* paginateListVersions(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.nextToken = token;
12
- input["maxResults"] = config.pageSize;
13
- if (config.client instanceof GrafanaClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected Grafana | GrafanaClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.nextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateListVersions = createPaginator(GrafanaClient, ListVersionsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListWorkspacesCommand, } from "../commands/ListWorkspacesCommand";
2
3
  import { GrafanaClient } from "../GrafanaClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListWorkspacesCommand(input), ...args);
5
- };
6
- export async function* paginateListWorkspaces(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.nextToken = token;
12
- input["maxResults"] = config.pageSize;
13
- if (config.client instanceof GrafanaClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected Grafana | GrafanaClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.nextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateListWorkspaces = createPaginator(GrafanaClient, ListWorkspacesCommand, "nextToken", "nextToken", "maxResults");
@@ -1,6 +1,5 @@
1
- import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
1
  import { Command as $Command } from "@smithy/smithy-client";
3
- import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
4
3
  import { GrafanaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../GrafanaClient";
5
4
  import { AssociateLicenseRequest, AssociateLicenseResponse } from "../models/models_0";
6
5
  /**
@@ -21,6 +20,10 @@ export interface AssociateLicenseCommandInput extends AssociateLicenseRequest {
21
20
  */
22
21
  export interface AssociateLicenseCommandOutput extends AssociateLicenseResponse, __MetadataBearer {
23
22
  }
23
+ declare const AssociateLicenseCommand_base: {
24
+ new (input: AssociateLicenseCommandInput): import("@smithy/smithy-client").CommandImpl<AssociateLicenseCommandInput, AssociateLicenseCommandOutput, GrafanaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
24
27
  /**
25
28
  * @public
26
29
  * <p>Assigns a Grafana Enterprise license to a workspace. Upgrading to Grafana Enterprise
@@ -121,23 +124,5 @@ export interface AssociateLicenseCommandOutput extends AssociateLicenseResponse,
121
124
  * <p>Base exception class for all service exceptions from Grafana service.</p>
122
125
  *
123
126
  */
124
- export declare class AssociateLicenseCommand extends $Command<AssociateLicenseCommandInput, AssociateLicenseCommandOutput, GrafanaClientResolvedConfig> {
125
- readonly input: AssociateLicenseCommandInput;
126
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
127
- /**
128
- * @public
129
- */
130
- constructor(input: AssociateLicenseCommandInput);
131
- /**
132
- * @internal
133
- */
134
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: GrafanaClientResolvedConfig, options?: __HttpHandlerOptions): Handler<AssociateLicenseCommandInput, AssociateLicenseCommandOutput>;
135
- /**
136
- * @internal
137
- */
138
- private serialize;
139
- /**
140
- * @internal
141
- */
142
- private deserialize;
127
+ export declare class AssociateLicenseCommand extends AssociateLicenseCommand_base {
143
128
  }
@@ -1,6 +1,5 @@
1
- import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
1
  import { Command as $Command } from "@smithy/smithy-client";
3
- import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
4
3
  import { GrafanaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../GrafanaClient";
5
4
  import { CreateWorkspaceApiKeyRequest, CreateWorkspaceApiKeyResponse } from "../models/models_0";
6
5
  /**
@@ -21,6 +20,10 @@ export interface CreateWorkspaceApiKeyCommandInput extends CreateWorkspaceApiKey
21
20
  */
22
21
  export interface CreateWorkspaceApiKeyCommandOutput extends CreateWorkspaceApiKeyResponse, __MetadataBearer {
23
22
  }
23
+ declare const CreateWorkspaceApiKeyCommand_base: {
24
+ new (input: CreateWorkspaceApiKeyCommandInput): import("@smithy/smithy-client").CommandImpl<CreateWorkspaceApiKeyCommandInput, CreateWorkspaceApiKeyCommandOutput, GrafanaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
24
27
  /**
25
28
  * @public
26
29
  * <p>Creates a Grafana API key for the workspace. This key can be used to authenticate
@@ -79,23 +82,5 @@ export interface CreateWorkspaceApiKeyCommandOutput extends CreateWorkspaceApiKe
79
82
  * <p>Base exception class for all service exceptions from Grafana service.</p>
80
83
  *
81
84
  */
82
- export declare class CreateWorkspaceApiKeyCommand extends $Command<CreateWorkspaceApiKeyCommandInput, CreateWorkspaceApiKeyCommandOutput, GrafanaClientResolvedConfig> {
83
- readonly input: CreateWorkspaceApiKeyCommandInput;
84
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
85
- /**
86
- * @public
87
- */
88
- constructor(input: CreateWorkspaceApiKeyCommandInput);
89
- /**
90
- * @internal
91
- */
92
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: GrafanaClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CreateWorkspaceApiKeyCommandInput, CreateWorkspaceApiKeyCommandOutput>;
93
- /**
94
- * @internal
95
- */
96
- private serialize;
97
- /**
98
- * @internal
99
- */
100
- private deserialize;
85
+ export declare class CreateWorkspaceApiKeyCommand extends CreateWorkspaceApiKeyCommand_base {
101
86
  }
@@ -1,6 +1,5 @@
1
- import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
1
  import { Command as $Command } from "@smithy/smithy-client";
3
- import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
4
3
  import { GrafanaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../GrafanaClient";
5
4
  import { CreateWorkspaceRequest, CreateWorkspaceResponse } from "../models/models_0";
6
5
  /**
@@ -21,6 +20,10 @@ export interface CreateWorkspaceCommandInput extends CreateWorkspaceRequest {
21
20
  */
22
21
  export interface CreateWorkspaceCommandOutput extends CreateWorkspaceResponse, __MetadataBearer {
23
22
  }
23
+ declare const CreateWorkspaceCommand_base: {
24
+ new (input: CreateWorkspaceCommandInput): import("@smithy/smithy-client").CommandImpl<CreateWorkspaceCommandInput, CreateWorkspaceCommandOutput, GrafanaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
24
27
  /**
25
28
  * @public
26
29
  * <p>Creates a <i>workspace</i>. In a workspace, you can create Grafana
@@ -165,23 +168,5 @@ export interface CreateWorkspaceCommandOutput extends CreateWorkspaceResponse, _
165
168
  * <p>Base exception class for all service exceptions from Grafana service.</p>
166
169
  *
167
170
  */
168
- export declare class CreateWorkspaceCommand extends $Command<CreateWorkspaceCommandInput, CreateWorkspaceCommandOutput, GrafanaClientResolvedConfig> {
169
- readonly input: CreateWorkspaceCommandInput;
170
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
171
- /**
172
- * @public
173
- */
174
- constructor(input: CreateWorkspaceCommandInput);
175
- /**
176
- * @internal
177
- */
178
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: GrafanaClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CreateWorkspaceCommandInput, CreateWorkspaceCommandOutput>;
179
- /**
180
- * @internal
181
- */
182
- private serialize;
183
- /**
184
- * @internal
185
- */
186
- private deserialize;
171
+ export declare class CreateWorkspaceCommand extends CreateWorkspaceCommand_base {
187
172
  }
@@ -1,6 +1,5 @@
1
- import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
1
  import { Command as $Command } from "@smithy/smithy-client";
3
- import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
4
3
  import { GrafanaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../GrafanaClient";
5
4
  import { DeleteWorkspaceApiKeyRequest, DeleteWorkspaceApiKeyResponse } from "../models/models_0";
6
5
  /**
@@ -21,6 +20,10 @@ export interface DeleteWorkspaceApiKeyCommandInput extends DeleteWorkspaceApiKey
21
20
  */
22
21
  export interface DeleteWorkspaceApiKeyCommandOutput extends DeleteWorkspaceApiKeyResponse, __MetadataBearer {
23
22
  }
23
+ declare const DeleteWorkspaceApiKeyCommand_base: {
24
+ new (input: DeleteWorkspaceApiKeyCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteWorkspaceApiKeyCommandInput, DeleteWorkspaceApiKeyCommandOutput, GrafanaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
24
27
  /**
25
28
  * @public
26
29
  * <p>Deletes a Grafana API key for the workspace.</p>
@@ -71,23 +74,5 @@ export interface DeleteWorkspaceApiKeyCommandOutput extends DeleteWorkspaceApiKe
71
74
  * <p>Base exception class for all service exceptions from Grafana service.</p>
72
75
  *
73
76
  */
74
- export declare class DeleteWorkspaceApiKeyCommand extends $Command<DeleteWorkspaceApiKeyCommandInput, DeleteWorkspaceApiKeyCommandOutput, GrafanaClientResolvedConfig> {
75
- readonly input: DeleteWorkspaceApiKeyCommandInput;
76
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
77
- /**
78
- * @public
79
- */
80
- constructor(input: DeleteWorkspaceApiKeyCommandInput);
81
- /**
82
- * @internal
83
- */
84
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: GrafanaClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DeleteWorkspaceApiKeyCommandInput, DeleteWorkspaceApiKeyCommandOutput>;
85
- /**
86
- * @internal
87
- */
88
- private serialize;
89
- /**
90
- * @internal
91
- */
92
- private deserialize;
77
+ export declare class DeleteWorkspaceApiKeyCommand extends DeleteWorkspaceApiKeyCommand_base {
93
78
  }
@@ -1,6 +1,5 @@
1
- import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
1
  import { Command as $Command } from "@smithy/smithy-client";
3
- import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
4
3
  import { GrafanaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../GrafanaClient";
5
4
  import { DeleteWorkspaceRequest, DeleteWorkspaceResponse } from "../models/models_0";
6
5
  /**
@@ -21,6 +20,10 @@ export interface DeleteWorkspaceCommandInput extends DeleteWorkspaceRequest {
21
20
  */
22
21
  export interface DeleteWorkspaceCommandOutput extends DeleteWorkspaceResponse, __MetadataBearer {
23
22
  }
23
+ declare const DeleteWorkspaceCommand_base: {
24
+ new (input: DeleteWorkspaceCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteWorkspaceCommandInput, DeleteWorkspaceCommandOutput, GrafanaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
24
27
  /**
25
28
  * @public
26
29
  * <p>Deletes an Amazon Managed Grafana workspace.</p>
@@ -121,23 +124,5 @@ export interface DeleteWorkspaceCommandOutput extends DeleteWorkspaceResponse, _
121
124
  * <p>Base exception class for all service exceptions from Grafana service.</p>
122
125
  *
123
126
  */
124
- export declare class DeleteWorkspaceCommand extends $Command<DeleteWorkspaceCommandInput, DeleteWorkspaceCommandOutput, GrafanaClientResolvedConfig> {
125
- readonly input: DeleteWorkspaceCommandInput;
126
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
127
- /**
128
- * @public
129
- */
130
- constructor(input: DeleteWorkspaceCommandInput);
131
- /**
132
- * @internal
133
- */
134
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: GrafanaClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DeleteWorkspaceCommandInput, DeleteWorkspaceCommandOutput>;
135
- /**
136
- * @internal
137
- */
138
- private serialize;
139
- /**
140
- * @internal
141
- */
142
- private deserialize;
127
+ export declare class DeleteWorkspaceCommand extends DeleteWorkspaceCommand_base {
143
128
  }
@@ -1,6 +1,5 @@
1
- import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
1
  import { Command as $Command } from "@smithy/smithy-client";
3
- import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
4
3
  import { GrafanaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../GrafanaClient";
5
4
  import { DescribeWorkspaceAuthenticationRequest, DescribeWorkspaceAuthenticationResponse } from "../models/models_0";
6
5
  /**
@@ -21,6 +20,10 @@ export interface DescribeWorkspaceAuthenticationCommandInput extends DescribeWor
21
20
  */
22
21
  export interface DescribeWorkspaceAuthenticationCommandOutput extends DescribeWorkspaceAuthenticationResponse, __MetadataBearer {
23
22
  }
23
+ declare const DescribeWorkspaceAuthenticationCommand_base: {
24
+ new (input: DescribeWorkspaceAuthenticationCommandInput): import("@smithy/smithy-client").CommandImpl<DescribeWorkspaceAuthenticationCommandInput, DescribeWorkspaceAuthenticationCommandOutput, GrafanaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
24
27
  /**
25
28
  * @public
26
29
  * <p>Displays information about the authentication methods used in one Amazon Managed Grafana
@@ -103,23 +106,5 @@ export interface DescribeWorkspaceAuthenticationCommandOutput extends DescribeWo
103
106
  * <p>Base exception class for all service exceptions from Grafana service.</p>
104
107
  *
105
108
  */
106
- export declare class DescribeWorkspaceAuthenticationCommand extends $Command<DescribeWorkspaceAuthenticationCommandInput, DescribeWorkspaceAuthenticationCommandOutput, GrafanaClientResolvedConfig> {
107
- readonly input: DescribeWorkspaceAuthenticationCommandInput;
108
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
109
- /**
110
- * @public
111
- */
112
- constructor(input: DescribeWorkspaceAuthenticationCommandInput);
113
- /**
114
- * @internal
115
- */
116
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: GrafanaClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DescribeWorkspaceAuthenticationCommandInput, DescribeWorkspaceAuthenticationCommandOutput>;
117
- /**
118
- * @internal
119
- */
120
- private serialize;
121
- /**
122
- * @internal
123
- */
124
- private deserialize;
109
+ export declare class DescribeWorkspaceAuthenticationCommand extends DescribeWorkspaceAuthenticationCommand_base {
125
110
  }