@aws-sdk/client-synthetics 3.408.0 → 3.409.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/README.md +0 -1
- package/dist-cjs/endpoint/ruleset.js +3 -3
- package/dist-es/endpoint/ruleset.js +3 -3
- package/dist-types/Synthetics.d.ts +0 -1
- package/dist-types/SyntheticsClient.d.ts +0 -1
- package/dist-types/commands/CreateCanaryCommand.d.ts +4 -4
- package/dist-types/commands/DeleteCanaryCommand.d.ts +0 -1
- package/dist-types/commands/DescribeCanariesCommand.d.ts +3 -3
- package/dist-types/commands/DescribeCanariesLastRunCommand.d.ts +2 -3
- package/dist-types/commands/GetCanaryCommand.d.ts +3 -3
- package/dist-types/commands/GetCanaryRunsCommand.d.ts +2 -2
- package/dist-types/commands/UpdateCanaryCommand.d.ts +1 -1
- package/dist-types/index.d.ts +0 -1
- package/dist-types/models/models_0.d.ts +1 -2
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -19,7 +19,6 @@ ServiceLens to help you trace the causes of impacted nodes in your applications.
|
|
|
19
19
|
information, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/ServiceLens.html">Using ServiceLens to Monitor
|
|
20
20
|
the Health of Your Applications</a> in the <i>Amazon CloudWatch User
|
|
21
21
|
Guide</i>.</p>
|
|
22
|
-
|
|
23
22
|
<p>Before you create and manage canaries, be aware of the security considerations. For more
|
|
24
23
|
information, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/servicelens_canaries_security.html">Security
|
|
25
24
|
Considerations for Synthetics Canaries</a>.</p>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ruleSet = void 0;
|
|
4
|
-
const
|
|
5
|
-
const a = "
|
|
6
|
-
const _data = { version: "1.0", parameters: { Region:
|
|
4
|
+
const q = "required", r = "fn", s = "argv", t = "ref";
|
|
5
|
+
const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = { [q]: false, "type": "String" }, g = { [q]: true, "default": false, "type": "Boolean" }, h = { [t]: "Endpoint" }, i = { [r]: "booleanEquals", [s]: [{ [t]: "UseFIPS" }, true] }, j = { [r]: "booleanEquals", [s]: [{ [t]: "UseDualStack" }, true] }, k = {}, l = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsFIPS"] }] }, m = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsDualStack"] }] }, n = [i], o = [j], p = [{ [t]: "Region" }];
|
|
6
|
+
const _data = { version: "1.0", parameters: { Region: f, UseDualStack: g, UseFIPS: g, Endpoint: f }, rules: [{ conditions: [{ [r]: a, [s]: [h] }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: h, properties: k, headers: k }, type: d }] }, { conditions: [{ [r]: a, [s]: p }], type: b, rules: [{ conditions: [{ [r]: "aws.partition", [s]: p, assign: e }], type: b, rules: [{ conditions: [i, j], type: b, rules: [{ conditions: [l, m], type: b, rules: [{ endpoint: { url: "https://synthetics-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: n, type: b, rules: [{ conditions: [l], type: b, rules: [{ endpoint: { url: "https://synthetics-fips.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [m], type: b, rules: [{ endpoint: { url: "https://synthetics.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { endpoint: { url: "https://synthetics.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] };
|
|
7
7
|
exports.ruleSet = _data;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
2
|
-
const a = "
|
|
3
|
-
const _data = { version: "1.0", parameters: { Region:
|
|
1
|
+
const q = "required", r = "fn", s = "argv", t = "ref";
|
|
2
|
+
const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = { [q]: false, "type": "String" }, g = { [q]: true, "default": false, "type": "Boolean" }, h = { [t]: "Endpoint" }, i = { [r]: "booleanEquals", [s]: [{ [t]: "UseFIPS" }, true] }, j = { [r]: "booleanEquals", [s]: [{ [t]: "UseDualStack" }, true] }, k = {}, l = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsFIPS"] }] }, m = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsDualStack"] }] }, n = [i], o = [j], p = [{ [t]: "Region" }];
|
|
3
|
+
const _data = { version: "1.0", parameters: { Region: f, UseDualStack: g, UseFIPS: g, Endpoint: f }, rules: [{ conditions: [{ [r]: a, [s]: [h] }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: h, properties: k, headers: k }, type: d }] }, { conditions: [{ [r]: a, [s]: p }], type: b, rules: [{ conditions: [{ [r]: "aws.partition", [s]: p, assign: e }], type: b, rules: [{ conditions: [i, j], type: b, rules: [{ conditions: [l, m], type: b, rules: [{ endpoint: { url: "https://synthetics-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: n, type: b, rules: [{ conditions: [l], type: b, rules: [{ endpoint: { url: "https://synthetics-fips.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [m], type: b, rules: [{ endpoint: { url: "https://synthetics.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { endpoint: { url: "https://synthetics.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] };
|
|
4
4
|
export const ruleSet = _data;
|
|
@@ -163,7 +163,6 @@ export interface Synthetics {
|
|
|
163
163
|
* information, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/ServiceLens.html">Using ServiceLens to Monitor
|
|
164
164
|
* the Health of Your Applications</a> in the <i>Amazon CloudWatch User
|
|
165
165
|
* Guide</i>.</p>
|
|
166
|
-
*
|
|
167
166
|
* <p>Before you create and manage canaries, be aware of the security considerations. For more
|
|
168
167
|
* information, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/servicelens_canaries_security.html">Security
|
|
169
168
|
* Considerations for Synthetics Canaries</a>.</p>
|
|
@@ -183,7 +183,6 @@ export interface SyntheticsClientResolvedConfig extends SyntheticsClientResolved
|
|
|
183
183
|
* information, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/ServiceLens.html">Using ServiceLens to Monitor
|
|
184
184
|
* the Health of Your Applications</a> in the <i>Amazon CloudWatch User
|
|
185
185
|
* Guide</i>.</p>
|
|
186
|
-
*
|
|
187
186
|
* <p>Before you create and manage canaries, be aware of the security considerations. For more
|
|
188
187
|
* information, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/servicelens_canaries_security.html">Security
|
|
189
188
|
* Considerations for Synthetics Canaries</a>.</p>
|
|
@@ -82,7 +82,7 @@ export interface CreateCanaryCommandOutput extends CreateCanaryResponse, __Metad
|
|
|
82
82
|
* },
|
|
83
83
|
* ArtifactConfig: { // ArtifactConfigInput
|
|
84
84
|
* S3Encryption: { // S3EncryptionConfig
|
|
85
|
-
* EncryptionMode: "
|
|
85
|
+
* EncryptionMode: "SSE_S3" || "SSE_KMS",
|
|
86
86
|
* KmsKeyArn: "STRING_VALUE",
|
|
87
87
|
* },
|
|
88
88
|
* },
|
|
@@ -110,9 +110,9 @@ export interface CreateCanaryCommandOutput extends CreateCanaryResponse, __Metad
|
|
|
110
110
|
* // SuccessRetentionPeriodInDays: Number("int"),
|
|
111
111
|
* // FailureRetentionPeriodInDays: Number("int"),
|
|
112
112
|
* // Status: { // CanaryStatus
|
|
113
|
-
* // State: "
|
|
113
|
+
* // State: "CREATING" || "READY" || "STARTING" || "RUNNING" || "UPDATING" || "STOPPING" || "STOPPED" || "ERROR" || "DELETING",
|
|
114
114
|
* // StateReason: "STRING_VALUE",
|
|
115
|
-
* // StateReasonCode: "
|
|
115
|
+
* // StateReasonCode: "INVALID_PERMISSIONS" || "CREATE_PENDING" || "CREATE_IN_PROGRESS" || "CREATE_FAILED" || "UPDATE_PENDING" || "UPDATE_IN_PROGRESS" || "UPDATE_COMPLETE" || "ROLLBACK_COMPLETE" || "ROLLBACK_FAILED" || "DELETE_IN_PROGRESS" || "DELETE_FAILED" || "SYNC_DELETE_IN_PROGRESS",
|
|
116
116
|
* // },
|
|
117
117
|
* // Timeline: { // CanaryTimeline
|
|
118
118
|
* // Created: new Date("TIMESTAMP"),
|
|
@@ -148,7 +148,7 @@ export interface CreateCanaryCommandOutput extends CreateCanaryResponse, __Metad
|
|
|
148
148
|
* // },
|
|
149
149
|
* // ArtifactConfig: { // ArtifactConfigOutput
|
|
150
150
|
* // S3Encryption: { // S3EncryptionConfig
|
|
151
|
-
* // EncryptionMode: "
|
|
151
|
+
* // EncryptionMode: "SSE_S3" || "SSE_KMS",
|
|
152
152
|
* // KmsKeyArn: "STRING_VALUE",
|
|
153
153
|
* // },
|
|
154
154
|
* // },
|
|
@@ -51,7 +51,6 @@ export interface DeleteCanaryCommandOutput extends DeleteCanaryResponse, __Metad
|
|
|
51
51
|
* </code>. </p>
|
|
52
52
|
* </li>
|
|
53
53
|
* </ul>
|
|
54
|
-
*
|
|
55
54
|
* <p>Before you delete a canary, you might want to use <code>GetCanary</code> to display
|
|
56
55
|
* the information about this canary. Make
|
|
57
56
|
* note of the information returned by this operation so that you can delete these resources
|
|
@@ -70,9 +70,9 @@ export interface DescribeCanariesCommandOutput extends DescribeCanariesResponse,
|
|
|
70
70
|
* // SuccessRetentionPeriodInDays: Number("int"),
|
|
71
71
|
* // FailureRetentionPeriodInDays: Number("int"),
|
|
72
72
|
* // Status: { // CanaryStatus
|
|
73
|
-
* // State: "
|
|
73
|
+
* // State: "CREATING" || "READY" || "STARTING" || "RUNNING" || "UPDATING" || "STOPPING" || "STOPPED" || "ERROR" || "DELETING",
|
|
74
74
|
* // StateReason: "STRING_VALUE",
|
|
75
|
-
* // StateReasonCode: "
|
|
75
|
+
* // StateReasonCode: "INVALID_PERMISSIONS" || "CREATE_PENDING" || "CREATE_IN_PROGRESS" || "CREATE_FAILED" || "UPDATE_PENDING" || "UPDATE_IN_PROGRESS" || "UPDATE_COMPLETE" || "ROLLBACK_COMPLETE" || "ROLLBACK_FAILED" || "DELETE_IN_PROGRESS" || "DELETE_FAILED" || "SYNC_DELETE_IN_PROGRESS",
|
|
76
76
|
* // },
|
|
77
77
|
* // Timeline: { // CanaryTimeline
|
|
78
78
|
* // Created: new Date("TIMESTAMP"),
|
|
@@ -108,7 +108,7 @@ export interface DescribeCanariesCommandOutput extends DescribeCanariesResponse,
|
|
|
108
108
|
* // },
|
|
109
109
|
* // ArtifactConfig: { // ArtifactConfigOutput
|
|
110
110
|
* // S3Encryption: { // S3EncryptionConfig
|
|
111
|
-
* // EncryptionMode: "
|
|
111
|
+
* // EncryptionMode: "SSE_S3" || "SSE_KMS",
|
|
112
112
|
* // KmsKeyArn: "STRING_VALUE",
|
|
113
113
|
* // },
|
|
114
114
|
* // },
|
|
@@ -24,7 +24,6 @@ export interface DescribeCanariesLastRunCommandOutput extends DescribeCanariesLa
|
|
|
24
24
|
/**
|
|
25
25
|
* @public
|
|
26
26
|
* <p>Use this operation to see information from the most recent run of each canary that you have created.</p>
|
|
27
|
-
*
|
|
28
27
|
* <p>This operation supports resource-level authorization using an IAM policy and
|
|
29
28
|
* the <code>Names</code> parameter. If you specify the <code>Names</code> parameter, the operation is successful only if you have authorization to view
|
|
30
29
|
* all the canaries that you specify in your request. If you do not have permission to view any of
|
|
@@ -56,9 +55,9 @@ export interface DescribeCanariesLastRunCommandOutput extends DescribeCanariesLa
|
|
|
56
55
|
* // Id: "STRING_VALUE",
|
|
57
56
|
* // Name: "STRING_VALUE",
|
|
58
57
|
* // Status: { // CanaryRunStatus
|
|
59
|
-
* // State: "
|
|
58
|
+
* // State: "RUNNING" || "PASSED" || "FAILED",
|
|
60
59
|
* // StateReason: "STRING_VALUE",
|
|
61
|
-
* // StateReasonCode: "
|
|
60
|
+
* // StateReasonCode: "CANARY_FAILURE" || "EXECUTION_FAILURE",
|
|
62
61
|
* // },
|
|
63
62
|
* // Timeline: { // CanaryRunTimeline
|
|
64
63
|
* // Started: new Date("TIMESTAMP"),
|
|
@@ -58,9 +58,9 @@ export interface GetCanaryCommandOutput extends GetCanaryResponse, __MetadataBea
|
|
|
58
58
|
* // SuccessRetentionPeriodInDays: Number("int"),
|
|
59
59
|
* // FailureRetentionPeriodInDays: Number("int"),
|
|
60
60
|
* // Status: { // CanaryStatus
|
|
61
|
-
* // State: "
|
|
61
|
+
* // State: "CREATING" || "READY" || "STARTING" || "RUNNING" || "UPDATING" || "STOPPING" || "STOPPED" || "ERROR" || "DELETING",
|
|
62
62
|
* // StateReason: "STRING_VALUE",
|
|
63
|
-
* // StateReasonCode: "
|
|
63
|
+
* // StateReasonCode: "INVALID_PERMISSIONS" || "CREATE_PENDING" || "CREATE_IN_PROGRESS" || "CREATE_FAILED" || "UPDATE_PENDING" || "UPDATE_IN_PROGRESS" || "UPDATE_COMPLETE" || "ROLLBACK_COMPLETE" || "ROLLBACK_FAILED" || "DELETE_IN_PROGRESS" || "DELETE_FAILED" || "SYNC_DELETE_IN_PROGRESS",
|
|
64
64
|
* // },
|
|
65
65
|
* // Timeline: { // CanaryTimeline
|
|
66
66
|
* // Created: new Date("TIMESTAMP"),
|
|
@@ -96,7 +96,7 @@ export interface GetCanaryCommandOutput extends GetCanaryResponse, __MetadataBea
|
|
|
96
96
|
* // },
|
|
97
97
|
* // ArtifactConfig: { // ArtifactConfigOutput
|
|
98
98
|
* // S3Encryption: { // S3EncryptionConfig
|
|
99
|
-
* // EncryptionMode: "
|
|
99
|
+
* // EncryptionMode: "SSE_S3" || "SSE_KMS",
|
|
100
100
|
* // KmsKeyArn: "STRING_VALUE",
|
|
101
101
|
* // },
|
|
102
102
|
* // },
|
|
@@ -43,9 +43,9 @@ export interface GetCanaryRunsCommandOutput extends GetCanaryRunsResponse, __Met
|
|
|
43
43
|
* // Id: "STRING_VALUE",
|
|
44
44
|
* // Name: "STRING_VALUE",
|
|
45
45
|
* // Status: { // CanaryRunStatus
|
|
46
|
-
* // State: "
|
|
46
|
+
* // State: "RUNNING" || "PASSED" || "FAILED",
|
|
47
47
|
* // StateReason: "STRING_VALUE",
|
|
48
|
-
* // StateReasonCode: "
|
|
48
|
+
* // StateReasonCode: "CANARY_FAILURE" || "EXECUTION_FAILURE",
|
|
49
49
|
* // },
|
|
50
50
|
* // Timeline: { // CanaryRunTimeline
|
|
51
51
|
* // Started: new Date("TIMESTAMP"),
|
|
@@ -81,7 +81,7 @@ export interface UpdateCanaryCommandOutput extends UpdateCanaryResponse, __Metad
|
|
|
81
81
|
* ArtifactS3Location: "STRING_VALUE",
|
|
82
82
|
* ArtifactConfig: { // ArtifactConfigInput
|
|
83
83
|
* S3Encryption: { // S3EncryptionConfig
|
|
84
|
-
* EncryptionMode: "
|
|
84
|
+
* EncryptionMode: "SSE_S3" || "SSE_KMS",
|
|
85
85
|
* KmsKeyArn: "STRING_VALUE",
|
|
86
86
|
* },
|
|
87
87
|
* },
|
package/dist-types/index.d.ts
CHANGED
|
@@ -11,7 +11,6 @@
|
|
|
11
11
|
* information, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/ServiceLens.html">Using ServiceLens to Monitor
|
|
12
12
|
* the Health of Your Applications</a> in the <i>Amazon CloudWatch User
|
|
13
13
|
* Guide</i>.</p>
|
|
14
|
-
*
|
|
15
14
|
* <p>Before you create and manage canaries, be aware of the security considerations. For more
|
|
16
15
|
* information, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/servicelens_canaries_security.html">Security
|
|
17
16
|
* Considerations for Synthetics Canaries</a>.</p>
|
|
@@ -18,7 +18,7 @@ export type EncryptionMode = (typeof EncryptionMode)[keyof typeof EncryptionMode
|
|
|
18
18
|
* uploads to Amazon S3. </p>
|
|
19
19
|
* <p>For more information, see
|
|
20
20
|
* <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_artifact_encryption.html">Encrypting canary artifacts</a>
|
|
21
|
-
*
|
|
21
|
+
* </p>
|
|
22
22
|
*/
|
|
23
23
|
export interface S3EncryptionConfig {
|
|
24
24
|
/**
|
|
@@ -1580,7 +1580,6 @@ export interface UntagResourceResponse {
|
|
|
1580
1580
|
* @public
|
|
1581
1581
|
* <p>An object that specifies what screenshots to use as a baseline for visual monitoring by this canary. It can
|
|
1582
1582
|
* optionally also specify parts of the screenshots to ignore during the visual monitoring comparison.</p>
|
|
1583
|
-
*
|
|
1584
1583
|
* <p>Visual monitoring is supported only on canaries running the <b>syn-puppeteer-node-3.2</b>
|
|
1585
1584
|
* runtime or later. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Library_SyntheticsLogger_VisualTesting.html">
|
|
1586
1585
|
* Visual monitoring</a> and <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Canaries_Blueprints_VisualTesting.html">
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-synthetics",
|
|
3
3
|
"description": "AWS SDK for JavaScript Synthetics Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.409.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,8 +21,8 @@
|
|
|
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/credential-provider-node": "3.
|
|
24
|
+
"@aws-sdk/client-sts": "3.409.0",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.409.0",
|
|
26
26
|
"@aws-sdk/middleware-host-header": "3.408.0",
|
|
27
27
|
"@aws-sdk/middleware-logger": "3.408.0",
|
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "3.408.0",
|