@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.
- package/dist-cjs/commands/CreateLinkCommand.js +18 -41
- package/dist-cjs/commands/CreateSinkCommand.js +18 -41
- package/dist-cjs/commands/DeleteLinkCommand.js +18 -41
- package/dist-cjs/commands/DeleteSinkCommand.js +18 -41
- package/dist-cjs/commands/GetLinkCommand.js +18 -41
- package/dist-cjs/commands/GetSinkCommand.js +18 -41
- package/dist-cjs/commands/GetSinkPolicyCommand.js +18 -41
- package/dist-cjs/commands/ListAttachedLinksCommand.js +18 -41
- package/dist-cjs/commands/ListLinksCommand.js +18 -41
- package/dist-cjs/commands/ListSinksCommand.js +18 -41
- package/dist-cjs/commands/ListTagsForResourceCommand.js +18 -41
- package/dist-cjs/commands/PutSinkPolicyCommand.js +18 -41
- package/dist-cjs/commands/TagResourceCommand.js +18 -41
- package/dist-cjs/commands/UntagResourceCommand.js +18 -41
- package/dist-cjs/commands/UpdateLinkCommand.js +18 -41
- package/dist-cjs/endpoint/EndpointParameters.js +7 -1
- package/dist-cjs/pagination/ListAttachedLinksPaginator.js +2 -24
- package/dist-cjs/pagination/ListLinksPaginator.js +2 -24
- package/dist-cjs/pagination/ListSinksPaginator.js +2 -24
- package/dist-es/commands/CreateLinkCommand.js +18 -41
- package/dist-es/commands/CreateSinkCommand.js +18 -41
- package/dist-es/commands/DeleteLinkCommand.js +18 -41
- package/dist-es/commands/DeleteSinkCommand.js +18 -41
- package/dist-es/commands/GetLinkCommand.js +18 -41
- package/dist-es/commands/GetSinkCommand.js +18 -41
- package/dist-es/commands/GetSinkPolicyCommand.js +18 -41
- package/dist-es/commands/ListAttachedLinksCommand.js +18 -41
- package/dist-es/commands/ListLinksCommand.js +18 -41
- package/dist-es/commands/ListSinksCommand.js +18 -41
- package/dist-es/commands/ListTagsForResourceCommand.js +18 -41
- package/dist-es/commands/PutSinkPolicyCommand.js +18 -41
- package/dist-es/commands/TagResourceCommand.js +18 -41
- package/dist-es/commands/UntagResourceCommand.js +18 -41
- package/dist-es/commands/UpdateLinkCommand.js +18 -41
- package/dist-es/endpoint/EndpointParameters.js +6 -0
- package/dist-es/pagination/ListAttachedLinksPaginator.js +2 -23
- package/dist-es/pagination/ListLinksPaginator.js +2 -23
- package/dist-es/pagination/ListSinksPaginator.js +2 -23
- package/dist-types/commands/CreateLinkCommand.d.ts +6 -21
- package/dist-types/commands/CreateSinkCommand.d.ts +6 -21
- package/dist-types/commands/DeleteLinkCommand.d.ts +6 -21
- package/dist-types/commands/DeleteSinkCommand.d.ts +6 -21
- package/dist-types/commands/GetLinkCommand.d.ts +6 -21
- package/dist-types/commands/GetSinkCommand.d.ts +6 -21
- package/dist-types/commands/GetSinkPolicyCommand.d.ts +6 -21
- package/dist-types/commands/ListAttachedLinksCommand.d.ts +6 -21
- package/dist-types/commands/ListLinksCommand.d.ts +6 -21
- package/dist-types/commands/ListSinksCommand.d.ts +6 -21
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +6 -21
- package/dist-types/commands/PutSinkPolicyCommand.d.ts +6 -21
- package/dist-types/commands/TagResourceCommand.d.ts +6 -21
- package/dist-types/commands/UntagResourceCommand.d.ts +6 -21
- package/dist-types/commands/UpdateLinkCommand.d.ts +6 -21
- package/dist-types/endpoint/EndpointParameters.d.ts +18 -0
- package/dist-types/pagination/ListAttachedLinksPaginator.d.ts +1 -1
- package/dist-types/pagination/ListLinksPaginator.d.ts +1 -1
- package/dist-types/pagination/ListSinksPaginator.d.ts +1 -1
- package/dist-types/ts3.4/commands/CreateLinkCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/CreateSinkCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/DeleteLinkCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/DeleteSinkCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/GetLinkCommand.d.ts +12 -23
- package/dist-types/ts3.4/commands/GetSinkCommand.d.ts +12 -23
- package/dist-types/ts3.4/commands/GetSinkPolicyCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/ListAttachedLinksCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/ListLinksCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/ListSinksCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/PutSinkPolicyCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/UpdateLinkCommand.d.ts +14 -23
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +18 -0
- package/dist-types/ts3.4/pagination/ListAttachedLinksPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListLinksPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListSinksPaginator.d.ts +3 -3
- 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 {
|
|
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
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
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 {
|
|
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
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
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 {
|
|
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
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
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 {
|
|
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
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
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 {
|
|
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
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
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
|
|
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
|
|
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
|
|
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 {
|
|
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
|
|
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 {
|
|
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
|
|
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 {
|
|
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
|
|
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 {
|
|
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
|
|
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 {
|
|
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
|
|
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
|
}
|