@aws-sdk/client-oam 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 (77) hide show
  1. package/dist-cjs/commands/CreateLinkCommand.js +18 -41
  2. package/dist-cjs/commands/CreateSinkCommand.js +18 -41
  3. package/dist-cjs/commands/DeleteLinkCommand.js +18 -41
  4. package/dist-cjs/commands/DeleteSinkCommand.js +18 -41
  5. package/dist-cjs/commands/GetLinkCommand.js +18 -41
  6. package/dist-cjs/commands/GetSinkCommand.js +18 -41
  7. package/dist-cjs/commands/GetSinkPolicyCommand.js +18 -41
  8. package/dist-cjs/commands/ListAttachedLinksCommand.js +18 -41
  9. package/dist-cjs/commands/ListLinksCommand.js +18 -41
  10. package/dist-cjs/commands/ListSinksCommand.js +18 -41
  11. package/dist-cjs/commands/ListTagsForResourceCommand.js +18 -41
  12. package/dist-cjs/commands/PutSinkPolicyCommand.js +18 -41
  13. package/dist-cjs/commands/TagResourceCommand.js +18 -41
  14. package/dist-cjs/commands/UntagResourceCommand.js +18 -41
  15. package/dist-cjs/commands/UpdateLinkCommand.js +18 -41
  16. package/dist-cjs/endpoint/EndpointParameters.js +7 -1
  17. package/dist-cjs/pagination/ListAttachedLinksPaginator.js +2 -24
  18. package/dist-cjs/pagination/ListLinksPaginator.js +2 -24
  19. package/dist-cjs/pagination/ListSinksPaginator.js +2 -24
  20. package/dist-es/commands/CreateLinkCommand.js +18 -41
  21. package/dist-es/commands/CreateSinkCommand.js +18 -41
  22. package/dist-es/commands/DeleteLinkCommand.js +18 -41
  23. package/dist-es/commands/DeleteSinkCommand.js +18 -41
  24. package/dist-es/commands/GetLinkCommand.js +18 -41
  25. package/dist-es/commands/GetSinkCommand.js +18 -41
  26. package/dist-es/commands/GetSinkPolicyCommand.js +18 -41
  27. package/dist-es/commands/ListAttachedLinksCommand.js +18 -41
  28. package/dist-es/commands/ListLinksCommand.js +18 -41
  29. package/dist-es/commands/ListSinksCommand.js +18 -41
  30. package/dist-es/commands/ListTagsForResourceCommand.js +18 -41
  31. package/dist-es/commands/PutSinkPolicyCommand.js +18 -41
  32. package/dist-es/commands/TagResourceCommand.js +18 -41
  33. package/dist-es/commands/UntagResourceCommand.js +18 -41
  34. package/dist-es/commands/UpdateLinkCommand.js +18 -41
  35. package/dist-es/endpoint/EndpointParameters.js +6 -0
  36. package/dist-es/pagination/ListAttachedLinksPaginator.js +2 -23
  37. package/dist-es/pagination/ListLinksPaginator.js +2 -23
  38. package/dist-es/pagination/ListSinksPaginator.js +2 -23
  39. package/dist-types/commands/CreateLinkCommand.d.ts +6 -21
  40. package/dist-types/commands/CreateSinkCommand.d.ts +6 -21
  41. package/dist-types/commands/DeleteLinkCommand.d.ts +6 -21
  42. package/dist-types/commands/DeleteSinkCommand.d.ts +6 -21
  43. package/dist-types/commands/GetLinkCommand.d.ts +6 -21
  44. package/dist-types/commands/GetSinkCommand.d.ts +6 -21
  45. package/dist-types/commands/GetSinkPolicyCommand.d.ts +6 -21
  46. package/dist-types/commands/ListAttachedLinksCommand.d.ts +6 -21
  47. package/dist-types/commands/ListLinksCommand.d.ts +6 -21
  48. package/dist-types/commands/ListSinksCommand.d.ts +6 -21
  49. package/dist-types/commands/ListTagsForResourceCommand.d.ts +6 -21
  50. package/dist-types/commands/PutSinkPolicyCommand.d.ts +6 -21
  51. package/dist-types/commands/TagResourceCommand.d.ts +6 -21
  52. package/dist-types/commands/UntagResourceCommand.d.ts +6 -21
  53. package/dist-types/commands/UpdateLinkCommand.d.ts +6 -21
  54. package/dist-types/endpoint/EndpointParameters.d.ts +18 -0
  55. package/dist-types/pagination/ListAttachedLinksPaginator.d.ts +1 -1
  56. package/dist-types/pagination/ListLinksPaginator.d.ts +1 -1
  57. package/dist-types/pagination/ListSinksPaginator.d.ts +1 -1
  58. package/dist-types/ts3.4/commands/CreateLinkCommand.d.ts +14 -23
  59. package/dist-types/ts3.4/commands/CreateSinkCommand.d.ts +14 -23
  60. package/dist-types/ts3.4/commands/DeleteLinkCommand.d.ts +14 -23
  61. package/dist-types/ts3.4/commands/DeleteSinkCommand.d.ts +14 -23
  62. package/dist-types/ts3.4/commands/GetLinkCommand.d.ts +12 -23
  63. package/dist-types/ts3.4/commands/GetSinkCommand.d.ts +12 -23
  64. package/dist-types/ts3.4/commands/GetSinkPolicyCommand.d.ts +14 -23
  65. package/dist-types/ts3.4/commands/ListAttachedLinksCommand.d.ts +14 -23
  66. package/dist-types/ts3.4/commands/ListLinksCommand.d.ts +14 -23
  67. package/dist-types/ts3.4/commands/ListSinksCommand.d.ts +14 -23
  68. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +14 -23
  69. package/dist-types/ts3.4/commands/PutSinkPolicyCommand.d.ts +14 -23
  70. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +14 -23
  71. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +14 -23
  72. package/dist-types/ts3.4/commands/UpdateLinkCommand.d.ts +14 -23
  73. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +18 -0
  74. package/dist-types/ts3.4/pagination/ListAttachedLinksPaginator.d.ts +3 -3
  75. package/dist-types/ts3.4/pagination/ListLinksPaginator.d.ts +3 -3
  76. package/dist-types/ts3.4/pagination/ListSinksPaginator.d.ts +3 -3
  77. 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_ListTagsForResourceCommand, se_ListTagsForResourceCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class ListTagsForResourceCommand 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, ListTagsForResourceCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "OAMClient";
26
- const commandName = "ListTagsForResourceCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "oamservice",
35
- operation: "ListTagsForResource",
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_ListTagsForResourceCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_ListTagsForResourceCommand(output, context);
46
- }
7
+ export class ListTagsForResourceCommand 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("oamservice", "ListTagsForResource", {})
19
+ .n("OAMClient", "ListTagsForResourceCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_ListTagsForResourceCommand)
22
+ .de(de_ListTagsForResourceCommand)
23
+ .build() {
47
24
  }
@@ -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_PutSinkPolicyCommand, se_PutSinkPolicyCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class PutSinkPolicyCommand 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, PutSinkPolicyCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "OAMClient";
26
- const commandName = "PutSinkPolicyCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "oamservice",
35
- operation: "PutSinkPolicy",
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_PutSinkPolicyCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_PutSinkPolicyCommand(output, context);
46
- }
7
+ export class PutSinkPolicyCommand 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("oamservice", "PutSinkPolicy", {})
19
+ .n("OAMClient", "PutSinkPolicyCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_PutSinkPolicyCommand)
22
+ .de(de_PutSinkPolicyCommand)
23
+ .build() {
47
24
  }
@@ -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_TagResourceCommand, se_TagResourceCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class TagResourceCommand 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, TagResourceCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "OAMClient";
26
- const commandName = "TagResourceCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "oamservice",
35
- operation: "TagResource",
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_TagResourceCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_TagResourceCommand(output, context);
46
- }
7
+ export class TagResourceCommand 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("oamservice", "TagResource", {})
19
+ .n("OAMClient", "TagResourceCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_TagResourceCommand)
22
+ .de(de_TagResourceCommand)
23
+ .build() {
47
24
  }
@@ -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_UntagResourceCommand, se_UntagResourceCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class UntagResourceCommand 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, UntagResourceCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "OAMClient";
26
- const commandName = "UntagResourceCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "oamservice",
35
- operation: "UntagResource",
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_UntagResourceCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_UntagResourceCommand(output, context);
46
- }
7
+ export class UntagResourceCommand 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("oamservice", "UntagResource", {})
19
+ .n("OAMClient", "UntagResourceCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_UntagResourceCommand)
22
+ .de(de_UntagResourceCommand)
23
+ .build() {
47
24
  }
@@ -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_UpdateLinkCommand, se_UpdateLinkCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class UpdateLinkCommand 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, UpdateLinkCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "OAMClient";
26
- const commandName = "UpdateLinkCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "oamservice",
35
- operation: "UpdateLink",
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_UpdateLinkCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_UpdateLinkCommand(output, context);
46
- }
7
+ export class UpdateLinkCommand 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("oamservice", "UpdateLink", {})
19
+ .n("OAMClient", "UpdateLinkCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_UpdateLinkCommand)
22
+ .de(de_UpdateLinkCommand)
23
+ .build() {
47
24
  }
@@ -6,3 +6,9 @@ export const resolveClientEndpointParameters = (options) => {
6
6
  defaultSigningName: "oam",
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 { ListAttachedLinksCommand, } from "../commands/ListAttachedLinksCommand";
2
3
  import { OAMClient } from "../OAMClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListAttachedLinksCommand(input), ...args);
5
- };
6
- export async function* paginateListAttachedLinks(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 OAMClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected OAM | OAMClient");
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 paginateListAttachedLinks = createPaginator(OAMClient, ListAttachedLinksCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListLinksCommand } from "../commands/ListLinksCommand";
2
3
  import { OAMClient } from "../OAMClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListLinksCommand(input), ...args);
5
- };
6
- export async function* paginateListLinks(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 OAMClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected OAM | OAMClient");
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 paginateListLinks = createPaginator(OAMClient, ListLinksCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListSinksCommand } from "../commands/ListSinksCommand";
2
3
  import { OAMClient } from "../OAMClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListSinksCommand(input), ...args);
5
- };
6
- export async function* paginateListSinks(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 OAMClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected OAM | OAMClient");
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 paginateListSinks = createPaginator(OAMClient, ListSinksCommand, "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 { CreateLinkInput, CreateLinkOutput } from "../models/models_0";
5
4
  import { OAMClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../OAMClient";
6
5
  /**
@@ -21,6 +20,10 @@ export interface CreateLinkCommandInput extends CreateLinkInput {
21
20
  */
22
21
  export interface CreateLinkCommandOutput extends CreateLinkOutput, __MetadataBearer {
23
22
  }
23
+ declare const CreateLinkCommand_base: {
24
+ new (input: CreateLinkCommandInput): import("@smithy/smithy-client").CommandImpl<CreateLinkCommandInput, CreateLinkCommandOutput, OAMClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
24
27
  /**
25
28
  * @public
26
29
  * <p>Creates a link between a source account and a sink that you have created in a monitoring account.</p>
@@ -92,23 +95,5 @@ export interface CreateLinkCommandOutput extends CreateLinkOutput, __MetadataBea
92
95
  * <p>Base exception class for all service exceptions from OAM service.</p>
93
96
  *
94
97
  */
95
- export declare class CreateLinkCommand extends $Command<CreateLinkCommandInput, CreateLinkCommandOutput, OAMClientResolvedConfig> {
96
- readonly input: CreateLinkCommandInput;
97
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
98
- /**
99
- * @public
100
- */
101
- constructor(input: CreateLinkCommandInput);
102
- /**
103
- * @internal
104
- */
105
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: OAMClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CreateLinkCommandInput, CreateLinkCommandOutput>;
106
- /**
107
- * @internal
108
- */
109
- private serialize;
110
- /**
111
- * @internal
112
- */
113
- private deserialize;
98
+ export declare class CreateLinkCommand extends CreateLinkCommand_base {
114
99
  }
@@ -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 { CreateSinkInput, CreateSinkOutput } from "../models/models_0";
5
4
  import { OAMClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../OAMClient";
6
5
  /**
@@ -21,6 +20,10 @@ export interface CreateSinkCommandInput extends CreateSinkInput {
21
20
  */
22
21
  export interface CreateSinkCommandOutput extends CreateSinkOutput, __MetadataBearer {
23
22
  }
23
+ declare const CreateSinkCommand_base: {
24
+ new (input: CreateSinkCommandInput): import("@smithy/smithy-client").CommandImpl<CreateSinkCommandInput, CreateSinkCommandOutput, OAMClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
24
27
  /**
25
28
  * @public
26
29
  * <p>Use this to create a <i>sink</i> in the current account, so that it can be
@@ -80,23 +83,5 @@ export interface CreateSinkCommandOutput extends CreateSinkOutput, __MetadataBea
80
83
  * <p>Base exception class for all service exceptions from OAM service.</p>
81
84
  *
82
85
  */
83
- export declare class CreateSinkCommand extends $Command<CreateSinkCommandInput, CreateSinkCommandOutput, OAMClientResolvedConfig> {
84
- readonly input: CreateSinkCommandInput;
85
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
86
- /**
87
- * @public
88
- */
89
- constructor(input: CreateSinkCommandInput);
90
- /**
91
- * @internal
92
- */
93
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: OAMClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CreateSinkCommandInput, CreateSinkCommandOutput>;
94
- /**
95
- * @internal
96
- */
97
- private serialize;
98
- /**
99
- * @internal
100
- */
101
- private deserialize;
86
+ export declare class CreateSinkCommand extends CreateSinkCommand_base {
102
87
  }
@@ -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 { DeleteLinkInput, DeleteLinkOutput } from "../models/models_0";
5
4
  import { OAMClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../OAMClient";
6
5
  /**
@@ -21,6 +20,10 @@ export interface DeleteLinkCommandInput extends DeleteLinkInput {
21
20
  */
22
21
  export interface DeleteLinkCommandOutput extends DeleteLinkOutput, __MetadataBearer {
23
22
  }
23
+ declare const DeleteLinkCommand_base: {
24
+ new (input: DeleteLinkCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteLinkCommandInput, DeleteLinkCommandOutput, OAMClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
24
27
  /**
25
28
  * @public
26
29
  * <p>Deletes a link between a monitoring account sink and a source account. You must run this operation
@@ -62,23 +65,5 @@ export interface DeleteLinkCommandOutput extends DeleteLinkOutput, __MetadataBea
62
65
  * <p>Base exception class for all service exceptions from OAM service.</p>
63
66
  *
64
67
  */
65
- export declare class DeleteLinkCommand extends $Command<DeleteLinkCommandInput, DeleteLinkCommandOutput, OAMClientResolvedConfig> {
66
- readonly input: DeleteLinkCommandInput;
67
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
68
- /**
69
- * @public
70
- */
71
- constructor(input: DeleteLinkCommandInput);
72
- /**
73
- * @internal
74
- */
75
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: OAMClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DeleteLinkCommandInput, DeleteLinkCommandOutput>;
76
- /**
77
- * @internal
78
- */
79
- private serialize;
80
- /**
81
- * @internal
82
- */
83
- private deserialize;
68
+ export declare class DeleteLinkCommand extends DeleteLinkCommand_base {
84
69
  }
@@ -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 { DeleteSinkInput, DeleteSinkOutput } from "../models/models_0";
5
4
  import { OAMClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../OAMClient";
6
5
  /**
@@ -21,6 +20,10 @@ export interface DeleteSinkCommandInput extends DeleteSinkInput {
21
20
  */
22
21
  export interface DeleteSinkCommandOutput extends DeleteSinkOutput, __MetadataBearer {
23
22
  }
23
+ declare const DeleteSinkCommand_base: {
24
+ new (input: DeleteSinkCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteSinkCommandInput, DeleteSinkCommandOutput, OAMClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
24
27
  /**
25
28
  * @public
26
29
  * <p>Deletes a sink. You must delete all links to a sink before you can delete that sink.</p>
@@ -64,23 +67,5 @@ export interface DeleteSinkCommandOutput extends DeleteSinkOutput, __MetadataBea
64
67
  * <p>Base exception class for all service exceptions from OAM service.</p>
65
68
  *
66
69
  */
67
- export declare class DeleteSinkCommand extends $Command<DeleteSinkCommandInput, DeleteSinkCommandOutput, OAMClientResolvedConfig> {
68
- readonly input: DeleteSinkCommandInput;
69
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
70
- /**
71
- * @public
72
- */
73
- constructor(input: DeleteSinkCommandInput);
74
- /**
75
- * @internal
76
- */
77
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: OAMClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DeleteSinkCommandInput, DeleteSinkCommandOutput>;
78
- /**
79
- * @internal
80
- */
81
- private serialize;
82
- /**
83
- * @internal
84
- */
85
- private deserialize;
70
+ export declare class DeleteSinkCommand extends DeleteSinkCommand_base {
86
71
  }
@@ -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 { GetLinkInput, GetLinkOutput } from "../models/models_0";
5
4
  import { OAMClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../OAMClient";
6
5
  /**
@@ -21,6 +20,10 @@ export interface GetLinkCommandInput extends GetLinkInput {
21
20
  */
22
21
  export interface GetLinkCommandOutput extends GetLinkOutput, __MetadataBearer {
23
22
  }
23
+ declare const GetLinkCommand_base: {
24
+ new (input: GetLinkCommandInput): import("@smithy/smithy-client").CommandImpl<GetLinkCommandInput, GetLinkCommandOutput, OAMClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
24
27
  /**
25
28
  * @public
26
29
  * <p>Returns complete information about one link.</p>
@@ -74,23 +77,5 @@ export interface GetLinkCommandOutput extends GetLinkOutput, __MetadataBearer {
74
77
  * <p>Base exception class for all service exceptions from OAM service.</p>
75
78
  *
76
79
  */
77
- export declare class GetLinkCommand extends $Command<GetLinkCommandInput, GetLinkCommandOutput, OAMClientResolvedConfig> {
78
- readonly input: GetLinkCommandInput;
79
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
80
- /**
81
- * @public
82
- */
83
- constructor(input: GetLinkCommandInput);
84
- /**
85
- * @internal
86
- */
87
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: OAMClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetLinkCommandInput, GetLinkCommandOutput>;
88
- /**
89
- * @internal
90
- */
91
- private serialize;
92
- /**
93
- * @internal
94
- */
95
- private deserialize;
80
+ export declare class GetLinkCommand extends GetLinkCommand_base {
96
81
  }