@aws-sdk/client-oam 3.300.0 → 3.303.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/models/models_0.js +5 -6
- package/dist-es/models/models_0.js +5 -6
- package/dist-types/commands/CreateLinkCommand.d.ts +3 -3
- package/dist-types/commands/CreateSinkCommand.d.ts +2 -2
- package/dist-types/commands/DeleteLinkCommand.d.ts +1 -1
- package/dist-types/commands/DeleteSinkCommand.d.ts +1 -1
- package/dist-types/commands/GetLinkCommand.d.ts +1 -1
- package/dist-types/commands/GetSinkCommand.d.ts +1 -1
- package/dist-types/commands/GetSinkPolicyCommand.d.ts +1 -1
- package/dist-types/commands/ListAttachedLinksCommand.d.ts +1 -1
- package/dist-types/commands/ListLinksCommand.d.ts +1 -1
- package/dist-types/commands/ListSinksCommand.d.ts +1 -1
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
- package/dist-types/commands/PutSinkPolicyCommand.d.ts +1 -1
- package/dist-types/commands/TagResourceCommand.d.ts +2 -2
- package/dist-types/commands/UntagResourceCommand.d.ts +2 -2
- package/dist-types/commands/UpdateLinkCommand.d.ts +2 -2
- package/dist-types/models/models_0.d.ts +10 -5
- package/dist-types/ts3.4/models/models_0.d.ts +6 -5
- package/package.json +34 -34
|
@@ -17,12 +17,11 @@ class ConflictException extends OAMServiceException_1.OAMServiceException {
|
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
19
|
exports.ConflictException = ConflictException;
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
})(ResourceType = exports.ResourceType || (exports.ResourceType = {}));
|
|
20
|
+
exports.ResourceType = {
|
|
21
|
+
AWS_CLOUDWATCH_METRIC: "AWS::CloudWatch::Metric",
|
|
22
|
+
AWS_LOGS_LOGGROUP: "AWS::Logs::LogGroup",
|
|
23
|
+
AWS_XRAY_TRACE: "AWS::XRay::Trace",
|
|
24
|
+
};
|
|
26
25
|
class InternalServiceFault extends OAMServiceException_1.OAMServiceException {
|
|
27
26
|
constructor(opts) {
|
|
28
27
|
super({
|
|
@@ -13,12 +13,11 @@ export class ConflictException extends __BaseException {
|
|
|
13
13
|
this.amznErrorType = opts.amznErrorType;
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
|
-
export
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
})(ResourceType || (ResourceType = {}));
|
|
16
|
+
export const ResourceType = {
|
|
17
|
+
AWS_CLOUDWATCH_METRIC: "AWS::CloudWatch::Metric",
|
|
18
|
+
AWS_LOGS_LOGGROUP: "AWS::Logs::LogGroup",
|
|
19
|
+
AWS_XRAY_TRACE: "AWS::XRay::Trace",
|
|
20
|
+
};
|
|
22
21
|
export class InternalServiceFault extends __BaseException {
|
|
23
22
|
constructor(opts) {
|
|
24
23
|
super({
|
|
@@ -35,13 +35,13 @@ export interface CreateLinkCommandOutput extends CreateLinkOutput, __MetadataBea
|
|
|
35
35
|
* import { OAMClient, CreateLinkCommand } from "@aws-sdk/client-oam"; // ES Modules import
|
|
36
36
|
* // const { OAMClient, CreateLinkCommand } = require("@aws-sdk/client-oam"); // CommonJS import
|
|
37
37
|
* const client = new OAMClient(config);
|
|
38
|
-
* const input = {
|
|
38
|
+
* const input = { // CreateLinkInput
|
|
39
39
|
* LabelTemplate: "STRING_VALUE", // required
|
|
40
|
-
* ResourceTypes: [ // required
|
|
40
|
+
* ResourceTypes: [ // ResourceTypesInput // required
|
|
41
41
|
* "AWS::CloudWatch::Metric" || "AWS::Logs::LogGroup" || "AWS::XRay::Trace",
|
|
42
42
|
* ],
|
|
43
43
|
* SinkIdentifier: "STRING_VALUE", // required
|
|
44
|
-
* Tags: {
|
|
44
|
+
* Tags: { // TagMapInput
|
|
45
45
|
* "<keys>": "STRING_VALUE",
|
|
46
46
|
* },
|
|
47
47
|
* };
|
|
@@ -32,9 +32,9 @@ export interface CreateSinkCommandOutput extends CreateSinkOutput, __MetadataBea
|
|
|
32
32
|
* import { OAMClient, CreateSinkCommand } from "@aws-sdk/client-oam"; // ES Modules import
|
|
33
33
|
* // const { OAMClient, CreateSinkCommand } = require("@aws-sdk/client-oam"); // CommonJS import
|
|
34
34
|
* const client = new OAMClient(config);
|
|
35
|
-
* const input = {
|
|
35
|
+
* const input = { // CreateSinkInput
|
|
36
36
|
* Name: "STRING_VALUE", // required
|
|
37
|
-
* Tags: {
|
|
37
|
+
* Tags: { // TagMapInput
|
|
38
38
|
* "<keys>": "STRING_VALUE",
|
|
39
39
|
* },
|
|
40
40
|
* };
|
|
@@ -27,7 +27,7 @@ export interface DeleteLinkCommandOutput extends DeleteLinkOutput, __MetadataBea
|
|
|
27
27
|
* import { OAMClient, DeleteLinkCommand } from "@aws-sdk/client-oam"; // ES Modules import
|
|
28
28
|
* // const { OAMClient, DeleteLinkCommand } = require("@aws-sdk/client-oam"); // CommonJS import
|
|
29
29
|
* const client = new OAMClient(config);
|
|
30
|
-
* const input = {
|
|
30
|
+
* const input = { // DeleteLinkInput
|
|
31
31
|
* Identifier: "STRING_VALUE", // required
|
|
32
32
|
* };
|
|
33
33
|
* const command = new DeleteLinkCommand(input);
|
|
@@ -26,7 +26,7 @@ export interface DeleteSinkCommandOutput extends DeleteSinkOutput, __MetadataBea
|
|
|
26
26
|
* import { OAMClient, DeleteSinkCommand } from "@aws-sdk/client-oam"; // ES Modules import
|
|
27
27
|
* // const { OAMClient, DeleteSinkCommand } = require("@aws-sdk/client-oam"); // CommonJS import
|
|
28
28
|
* const client = new OAMClient(config);
|
|
29
|
-
* const input = {
|
|
29
|
+
* const input = { // DeleteSinkInput
|
|
30
30
|
* Identifier: "STRING_VALUE", // required
|
|
31
31
|
* };
|
|
32
32
|
* const command = new DeleteSinkCommand(input);
|
|
@@ -27,7 +27,7 @@ export interface GetLinkCommandOutput extends GetLinkOutput, __MetadataBearer {
|
|
|
27
27
|
* import { OAMClient, GetLinkCommand } from "@aws-sdk/client-oam"; // ES Modules import
|
|
28
28
|
* // const { OAMClient, GetLinkCommand } = require("@aws-sdk/client-oam"); // CommonJS import
|
|
29
29
|
* const client = new OAMClient(config);
|
|
30
|
-
* const input = {
|
|
30
|
+
* const input = { // GetLinkInput
|
|
31
31
|
* Identifier: "STRING_VALUE", // required
|
|
32
32
|
* };
|
|
33
33
|
* const command = new GetLinkCommand(input);
|
|
@@ -27,7 +27,7 @@ export interface GetSinkCommandOutput extends GetSinkOutput, __MetadataBearer {
|
|
|
27
27
|
* import { OAMClient, GetSinkCommand } from "@aws-sdk/client-oam"; // ES Modules import
|
|
28
28
|
* // const { OAMClient, GetSinkCommand } = require("@aws-sdk/client-oam"); // CommonJS import
|
|
29
29
|
* const client = new OAMClient(config);
|
|
30
|
-
* const input = {
|
|
30
|
+
* const input = { // GetSinkInput
|
|
31
31
|
* Identifier: "STRING_VALUE", // required
|
|
32
32
|
* };
|
|
33
33
|
* const command = new GetSinkCommand(input);
|
|
@@ -27,7 +27,7 @@ export interface GetSinkPolicyCommandOutput extends GetSinkPolicyOutput, __Metad
|
|
|
27
27
|
* import { OAMClient, GetSinkPolicyCommand } from "@aws-sdk/client-oam"; // ES Modules import
|
|
28
28
|
* // const { OAMClient, GetSinkPolicyCommand } = require("@aws-sdk/client-oam"); // CommonJS import
|
|
29
29
|
* const client = new OAMClient(config);
|
|
30
|
-
* const input = {
|
|
30
|
+
* const input = { // GetSinkPolicyInput
|
|
31
31
|
* SinkIdentifier: "STRING_VALUE", // required
|
|
32
32
|
* };
|
|
33
33
|
* const command = new GetSinkPolicyCommand(input);
|
|
@@ -28,7 +28,7 @@ export interface ListAttachedLinksCommandOutput extends ListAttachedLinksOutput,
|
|
|
28
28
|
* import { OAMClient, ListAttachedLinksCommand } from "@aws-sdk/client-oam"; // ES Modules import
|
|
29
29
|
* // const { OAMClient, ListAttachedLinksCommand } = require("@aws-sdk/client-oam"); // CommonJS import
|
|
30
30
|
* const client = new OAMClient(config);
|
|
31
|
-
* const input = {
|
|
31
|
+
* const input = { // ListAttachedLinksInput
|
|
32
32
|
* MaxResults: Number("int"),
|
|
33
33
|
* NextToken: "STRING_VALUE",
|
|
34
34
|
* SinkIdentifier: "STRING_VALUE", // required
|
|
@@ -28,7 +28,7 @@ export interface ListLinksCommandOutput extends ListLinksOutput, __MetadataBeare
|
|
|
28
28
|
* import { OAMClient, ListLinksCommand } from "@aws-sdk/client-oam"; // ES Modules import
|
|
29
29
|
* // const { OAMClient, ListLinksCommand } = require("@aws-sdk/client-oam"); // CommonJS import
|
|
30
30
|
* const client = new OAMClient(config);
|
|
31
|
-
* const input = {
|
|
31
|
+
* const input = { // ListLinksInput
|
|
32
32
|
* MaxResults: Number("int"),
|
|
33
33
|
* NextToken: "STRING_VALUE",
|
|
34
34
|
* };
|
|
@@ -26,7 +26,7 @@ export interface ListSinksCommandOutput extends ListSinksOutput, __MetadataBeare
|
|
|
26
26
|
* import { OAMClient, ListSinksCommand } from "@aws-sdk/client-oam"; // ES Modules import
|
|
27
27
|
* // const { OAMClient, ListSinksCommand } = require("@aws-sdk/client-oam"); // CommonJS import
|
|
28
28
|
* const client = new OAMClient(config);
|
|
29
|
-
* const input = {
|
|
29
|
+
* const input = { // ListSinksInput
|
|
30
30
|
* MaxResults: Number("int"),
|
|
31
31
|
* NextToken: "STRING_VALUE",
|
|
32
32
|
* };
|
|
@@ -26,7 +26,7 @@ export interface ListTagsForResourceCommandOutput extends ListTagsForResourceOut
|
|
|
26
26
|
* import { OAMClient, ListTagsForResourceCommand } from "@aws-sdk/client-oam"; // ES Modules import
|
|
27
27
|
* // const { OAMClient, ListTagsForResourceCommand } = require("@aws-sdk/client-oam"); // CommonJS import
|
|
28
28
|
* const client = new OAMClient(config);
|
|
29
|
-
* const input = {
|
|
29
|
+
* const input = { // ListTagsForResourceInput
|
|
30
30
|
* ResourceArn: "STRING_VALUE", // required
|
|
31
31
|
* };
|
|
32
32
|
* const command = new ListTagsForResourceCommand(input);
|
|
@@ -49,7 +49,7 @@ export interface PutSinkPolicyCommandOutput extends PutSinkPolicyOutput, __Metad
|
|
|
49
49
|
* import { OAMClient, PutSinkPolicyCommand } from "@aws-sdk/client-oam"; // ES Modules import
|
|
50
50
|
* // const { OAMClient, PutSinkPolicyCommand } = require("@aws-sdk/client-oam"); // CommonJS import
|
|
51
51
|
* const client = new OAMClient(config);
|
|
52
|
-
* const input = {
|
|
52
|
+
* const input = { // PutSinkPolicyInput
|
|
53
53
|
* SinkIdentifier: "STRING_VALUE", // required
|
|
54
54
|
* Policy: "STRING_VALUE", // required
|
|
55
55
|
* };
|
|
@@ -42,9 +42,9 @@ export interface TagResourceCommandOutput extends TagResourceOutput, __MetadataB
|
|
|
42
42
|
* import { OAMClient, TagResourceCommand } from "@aws-sdk/client-oam"; // ES Modules import
|
|
43
43
|
* // const { OAMClient, TagResourceCommand } = require("@aws-sdk/client-oam"); // CommonJS import
|
|
44
44
|
* const client = new OAMClient(config);
|
|
45
|
-
* const input = {
|
|
45
|
+
* const input = { // TagResourceInput
|
|
46
46
|
* ResourceArn: "STRING_VALUE", // required
|
|
47
|
-
* Tags: { // required
|
|
47
|
+
* Tags: { // TagMapInput // required
|
|
48
48
|
* "<keys>": "STRING_VALUE",
|
|
49
49
|
* },
|
|
50
50
|
* };
|
|
@@ -32,9 +32,9 @@ export interface UntagResourceCommandOutput extends UntagResourceOutput, __Metad
|
|
|
32
32
|
* import { OAMClient, UntagResourceCommand } from "@aws-sdk/client-oam"; // ES Modules import
|
|
33
33
|
* // const { OAMClient, UntagResourceCommand } = require("@aws-sdk/client-oam"); // CommonJS import
|
|
34
34
|
* const client = new OAMClient(config);
|
|
35
|
-
* const input = {
|
|
35
|
+
* const input = { // UntagResourceInput
|
|
36
36
|
* ResourceArn: "STRING_VALUE", // required
|
|
37
|
-
* TagKeys: [ // required
|
|
37
|
+
* TagKeys: [ // TagKeys // required
|
|
38
38
|
* "STRING_VALUE",
|
|
39
39
|
* ],
|
|
40
40
|
* };
|
|
@@ -29,9 +29,9 @@ export interface UpdateLinkCommandOutput extends UpdateLinkOutput, __MetadataBea
|
|
|
29
29
|
* import { OAMClient, UpdateLinkCommand } from "@aws-sdk/client-oam"; // ES Modules import
|
|
30
30
|
* // const { OAMClient, UpdateLinkCommand } = require("@aws-sdk/client-oam"); // CommonJS import
|
|
31
31
|
* const client = new OAMClient(config);
|
|
32
|
-
* const input = {
|
|
32
|
+
* const input = { // UpdateLinkInput
|
|
33
33
|
* Identifier: "STRING_VALUE", // required
|
|
34
|
-
* ResourceTypes: [ // required
|
|
34
|
+
* ResourceTypes: [ // ResourceTypesInput // required
|
|
35
35
|
* "AWS::CloudWatch::Metric" || "AWS::Logs::LogGroup" || "AWS::XRay::Trace",
|
|
36
36
|
* ],
|
|
37
37
|
* };
|
|
@@ -19,12 +19,17 @@ export declare class ConflictException extends __BaseException {
|
|
|
19
19
|
}
|
|
20
20
|
/**
|
|
21
21
|
* @public
|
|
22
|
+
* @enum
|
|
22
23
|
*/
|
|
23
|
-
export declare
|
|
24
|
-
AWS_CLOUDWATCH_METRIC
|
|
25
|
-
AWS_LOGS_LOGGROUP
|
|
26
|
-
AWS_XRAY_TRACE
|
|
27
|
-
}
|
|
24
|
+
export declare const ResourceType: {
|
|
25
|
+
readonly AWS_CLOUDWATCH_METRIC: "AWS::CloudWatch::Metric";
|
|
26
|
+
readonly AWS_LOGS_LOGGROUP: "AWS::Logs::LogGroup";
|
|
27
|
+
readonly AWS_XRAY_TRACE: "AWS::XRay::Trace";
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* @public
|
|
31
|
+
*/
|
|
32
|
+
export type ResourceType = (typeof ResourceType)[keyof typeof ResourceType];
|
|
28
33
|
/**
|
|
29
34
|
* @public
|
|
30
35
|
*/
|
|
@@ -7,11 +7,12 @@ export declare class ConflictException extends __BaseException {
|
|
|
7
7
|
amznErrorType?: string;
|
|
8
8
|
constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
|
|
9
9
|
}
|
|
10
|
-
export declare
|
|
11
|
-
AWS_CLOUDWATCH_METRIC
|
|
12
|
-
AWS_LOGS_LOGGROUP
|
|
13
|
-
AWS_XRAY_TRACE
|
|
14
|
-
}
|
|
10
|
+
export declare const ResourceType: {
|
|
11
|
+
readonly AWS_CLOUDWATCH_METRIC: "AWS::CloudWatch::Metric";
|
|
12
|
+
readonly AWS_LOGS_LOGGROUP: "AWS::Logs::LogGroup";
|
|
13
|
+
readonly AWS_XRAY_TRACE: "AWS::XRay::Trace";
|
|
14
|
+
};
|
|
15
|
+
export type ResourceType = (typeof ResourceType)[keyof typeof ResourceType];
|
|
15
16
|
export interface CreateLinkInput {
|
|
16
17
|
LabelTemplate: string | undefined;
|
|
17
18
|
ResourceTypes: (ResourceType | string)[] | undefined;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-oam",
|
|
3
3
|
"description": "AWS SDK for JavaScript Oam Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.303.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -21,42 +21,42 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
25
|
-
"@aws-sdk/config-resolver": "3.
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
27
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
28
|
-
"@aws-sdk/hash-node": "3.
|
|
29
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
30
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
31
|
-
"@aws-sdk/middleware-endpoint": "3.
|
|
32
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
33
|
-
"@aws-sdk/middleware-logger": "3.
|
|
34
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
35
|
-
"@aws-sdk/middleware-retry": "3.
|
|
36
|
-
"@aws-sdk/middleware-serde": "3.
|
|
37
|
-
"@aws-sdk/middleware-signing": "3.
|
|
38
|
-
"@aws-sdk/middleware-stack": "3.
|
|
39
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
40
|
-
"@aws-sdk/node-config-provider": "3.
|
|
41
|
-
"@aws-sdk/node-http-handler": "3.
|
|
42
|
-
"@aws-sdk/protocol-http": "3.
|
|
43
|
-
"@aws-sdk/smithy-client": "3.
|
|
44
|
-
"@aws-sdk/types": "3.
|
|
45
|
-
"@aws-sdk/url-parser": "3.
|
|
46
|
-
"@aws-sdk/util-base64": "3.
|
|
47
|
-
"@aws-sdk/util-body-length-browser": "3.
|
|
48
|
-
"@aws-sdk/util-body-length-node": "3.
|
|
49
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
50
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
51
|
-
"@aws-sdk/util-endpoints": "3.
|
|
52
|
-
"@aws-sdk/util-retry": "3.
|
|
53
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
54
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
55
|
-
"@aws-sdk/util-utf8": "3.
|
|
24
|
+
"@aws-sdk/client-sts": "3.303.0",
|
|
25
|
+
"@aws-sdk/config-resolver": "3.303.0",
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.303.0",
|
|
27
|
+
"@aws-sdk/fetch-http-handler": "3.303.0",
|
|
28
|
+
"@aws-sdk/hash-node": "3.303.0",
|
|
29
|
+
"@aws-sdk/invalid-dependency": "3.303.0",
|
|
30
|
+
"@aws-sdk/middleware-content-length": "3.303.0",
|
|
31
|
+
"@aws-sdk/middleware-endpoint": "3.303.0",
|
|
32
|
+
"@aws-sdk/middleware-host-header": "3.303.0",
|
|
33
|
+
"@aws-sdk/middleware-logger": "3.303.0",
|
|
34
|
+
"@aws-sdk/middleware-recursion-detection": "3.303.0",
|
|
35
|
+
"@aws-sdk/middleware-retry": "3.303.0",
|
|
36
|
+
"@aws-sdk/middleware-serde": "3.303.0",
|
|
37
|
+
"@aws-sdk/middleware-signing": "3.303.0",
|
|
38
|
+
"@aws-sdk/middleware-stack": "3.303.0",
|
|
39
|
+
"@aws-sdk/middleware-user-agent": "3.303.0",
|
|
40
|
+
"@aws-sdk/node-config-provider": "3.303.0",
|
|
41
|
+
"@aws-sdk/node-http-handler": "3.303.0",
|
|
42
|
+
"@aws-sdk/protocol-http": "3.303.0",
|
|
43
|
+
"@aws-sdk/smithy-client": "3.303.0",
|
|
44
|
+
"@aws-sdk/types": "3.303.0",
|
|
45
|
+
"@aws-sdk/url-parser": "3.303.0",
|
|
46
|
+
"@aws-sdk/util-base64": "3.303.0",
|
|
47
|
+
"@aws-sdk/util-body-length-browser": "3.303.0",
|
|
48
|
+
"@aws-sdk/util-body-length-node": "3.303.0",
|
|
49
|
+
"@aws-sdk/util-defaults-mode-browser": "3.303.0",
|
|
50
|
+
"@aws-sdk/util-defaults-mode-node": "3.303.0",
|
|
51
|
+
"@aws-sdk/util-endpoints": "3.303.0",
|
|
52
|
+
"@aws-sdk/util-retry": "3.303.0",
|
|
53
|
+
"@aws-sdk/util-user-agent-browser": "3.303.0",
|
|
54
|
+
"@aws-sdk/util-user-agent-node": "3.303.0",
|
|
55
|
+
"@aws-sdk/util-utf8": "3.303.0",
|
|
56
56
|
"tslib": "^2.5.0"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
|
-
"@aws-sdk/service-client-documentation-generator": "3.
|
|
59
|
+
"@aws-sdk/service-client-documentation-generator": "3.303.0",
|
|
60
60
|
"@tsconfig/node14": "1.0.3",
|
|
61
61
|
"@types/node": "^14.14.31",
|
|
62
62
|
"concurrently": "7.0.0",
|