@aws-sdk/client-synthetics 3.650.0 → 3.651.1
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/index.js +6 -0
- package/dist-es/models/models_0.js +3 -0
- package/dist-es/protocols/Aws_restJson1.js +1 -0
- package/dist-types/commands/CreateCanaryCommand.d.ts +3 -0
- package/dist-types/commands/DeleteCanaryCommand.d.ts +9 -6
- package/dist-types/models/models_0.d.ts +39 -1
- package/dist-types/ts3.4/models/models_0.d.ts +5 -0
- package/package.json +5 -5
package/dist-cjs/index.js
CHANGED
|
@@ -49,6 +49,7 @@ __export(src_exports, {
|
|
|
49
49
|
NotFoundException: () => NotFoundException,
|
|
50
50
|
RequestEntityTooLargeException: () => RequestEntityTooLargeException,
|
|
51
51
|
ResourceNotFoundException: () => ResourceNotFoundException,
|
|
52
|
+
ResourceToTag: () => ResourceToTag,
|
|
52
53
|
ServiceQuotaExceededException: () => ServiceQuotaExceededException,
|
|
53
54
|
StartCanaryCommand: () => StartCanaryCommand,
|
|
54
55
|
StopCanaryCommand: () => StopCanaryCommand,
|
|
@@ -382,6 +383,9 @@ var CanaryRunStateReasonCode = {
|
|
|
382
383
|
CANARY_FAILURE: "CANARY_FAILURE",
|
|
383
384
|
EXECUTION_FAILURE: "EXECUTION_FAILURE"
|
|
384
385
|
};
|
|
386
|
+
var ResourceToTag = {
|
|
387
|
+
LAMBDA_FUNCTION: "lambda-function"
|
|
388
|
+
};
|
|
385
389
|
var _RequestEntityTooLargeException = class _RequestEntityTooLargeException extends SyntheticsServiceException {
|
|
386
390
|
/**
|
|
387
391
|
* @internal
|
|
@@ -487,6 +491,7 @@ var se_CreateCanaryCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
487
491
|
ExecutionRoleArn: [],
|
|
488
492
|
FailureRetentionPeriodInDays: [],
|
|
489
493
|
Name: [],
|
|
494
|
+
ResourcesToReplicateTags: (_) => (0, import_smithy_client._json)(_),
|
|
490
495
|
RunConfig: (_) => (0, import_smithy_client._json)(_),
|
|
491
496
|
RuntimeVersion: [],
|
|
492
497
|
Schedule: (_) => (0, import_smithy_client._json)(_),
|
|
@@ -1719,6 +1724,7 @@ var paginateListGroups = (0, import_core.createPaginator)(SyntheticsClient, List
|
|
|
1719
1724
|
CanaryStateReasonCode,
|
|
1720
1725
|
CanaryRunState,
|
|
1721
1726
|
CanaryRunStateReasonCode,
|
|
1727
|
+
ResourceToTag,
|
|
1722
1728
|
RequestEntityTooLargeException,
|
|
1723
1729
|
InternalFailureException,
|
|
1724
1730
|
NotFoundException,
|
|
@@ -115,6 +115,9 @@ export const CanaryRunStateReasonCode = {
|
|
|
115
115
|
CANARY_FAILURE: "CANARY_FAILURE",
|
|
116
116
|
EXECUTION_FAILURE: "EXECUTION_FAILURE",
|
|
117
117
|
};
|
|
118
|
+
export const ResourceToTag = {
|
|
119
|
+
LAMBDA_FUNCTION: "lambda-function",
|
|
120
|
+
};
|
|
118
121
|
export class RequestEntityTooLargeException extends __BaseException {
|
|
119
122
|
constructor(opts) {
|
|
120
123
|
super({
|
|
@@ -31,6 +31,7 @@ export const se_CreateCanaryCommand = async (input, context) => {
|
|
|
31
31
|
ExecutionRoleArn: [],
|
|
32
32
|
FailureRetentionPeriodInDays: [],
|
|
33
33
|
Name: [],
|
|
34
|
+
ResourcesToReplicateTags: (_) => _json(_),
|
|
34
35
|
RunConfig: (_) => _json(_),
|
|
35
36
|
RuntimeVersion: [],
|
|
36
37
|
Schedule: (_) => _json(_),
|
|
@@ -37,8 +37,9 @@ declare const DeleteCanaryCommand_base: {
|
|
|
37
37
|
* <ul>
|
|
38
38
|
* <li>
|
|
39
39
|
* <p>The CloudWatch alarms created for this canary. These alarms have a name of
|
|
40
|
-
*
|
|
41
|
-
* </code
|
|
40
|
+
* <code>Synthetics-Alarm-<i>first-198-characters-of-canary-name</i>-<i>canaryId</i>-<i>alarm number</i>
|
|
41
|
+
* </code>
|
|
42
|
+
* </p>
|
|
42
43
|
* </li>
|
|
43
44
|
* <li>
|
|
44
45
|
* <p>Amazon S3 objects and buckets, such as the canary's artifact location.</p>
|
|
@@ -46,13 +47,15 @@ declare const DeleteCanaryCommand_base: {
|
|
|
46
47
|
* <li>
|
|
47
48
|
* <p>IAM roles created for the canary. If they were created in the console, these roles
|
|
48
49
|
* have the name <code>
|
|
49
|
-
* role/service-role/CloudWatchSyntheticsRole-<i>
|
|
50
|
-
* </code
|
|
50
|
+
* role/service-role/CloudWatchSyntheticsRole-<i>First-21-Characters-of-CanaryName</i>
|
|
51
|
+
* </code>
|
|
52
|
+
* </p>
|
|
51
53
|
* </li>
|
|
52
54
|
* <li>
|
|
53
55
|
* <p>CloudWatch Logs log groups created for the canary. These logs groups have the name
|
|
54
|
-
*
|
|
55
|
-
* </code
|
|
56
|
+
* <code>/aws/lambda/cwsyn-<i>First-21-Characters-of-CanaryName</i>
|
|
57
|
+
* </code>
|
|
58
|
+
* </p>
|
|
56
59
|
* </li>
|
|
57
60
|
* </ul>
|
|
58
61
|
* <p>Before you delete a canary, you might want to use <code>GetCanary</code> to display
|
|
@@ -613,6 +613,23 @@ export interface CanaryLastRun {
|
|
|
613
613
|
* script is stored in an S3 bucket, the bucket name, key, and version are also included. If
|
|
614
614
|
* the script was passed into the canary directly, the script code is contained in the value
|
|
615
615
|
* of <code>Zipfile</code>. </p>
|
|
616
|
+
* <p>If you are uploading your canary scripts with an Amazon S3 bucket, your zip file should include your
|
|
617
|
+
* script in a certain folder structure.</p>
|
|
618
|
+
* <ul>
|
|
619
|
+
* <li>
|
|
620
|
+
* <p>For Node.js canaries, the folder structure must be <code>nodejs/node_modules/<i>myCanaryFilename.js</i>
|
|
621
|
+
* </code>
|
|
622
|
+
* For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Canaries_WritingCanary_Nodejs.html#CloudWatch_Synthetics_Canaries_package">Packaging your Node.js canary files</a>
|
|
623
|
+
* </p>
|
|
624
|
+
* </li>
|
|
625
|
+
* <li>
|
|
626
|
+
* <p>For Python canaries, the folder structure must be <code>python/<i>myCanaryFilename.p</i>
|
|
627
|
+
* </code> or <code>python/<i>myFolder/myCanaryFilename.py</i>
|
|
628
|
+
* </code>
|
|
629
|
+
* For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Canaries_WritingCanary_Python.html#CloudWatch_Synthetics_Canaries_WritingCanary_Python_package">Packaging your Python canary files</a>
|
|
630
|
+
* </p>
|
|
631
|
+
* </li>
|
|
632
|
+
* </ul>
|
|
616
633
|
* @public
|
|
617
634
|
*/
|
|
618
635
|
export interface CanaryCodeInput {
|
|
@@ -738,6 +755,17 @@ export interface CanaryScheduleInput {
|
|
|
738
755
|
*/
|
|
739
756
|
DurationInSeconds?: number;
|
|
740
757
|
}
|
|
758
|
+
/**
|
|
759
|
+
* @public
|
|
760
|
+
* @enum
|
|
761
|
+
*/
|
|
762
|
+
export declare const ResourceToTag: {
|
|
763
|
+
readonly LAMBDA_FUNCTION: "lambda-function";
|
|
764
|
+
};
|
|
765
|
+
/**
|
|
766
|
+
* @public
|
|
767
|
+
*/
|
|
768
|
+
export type ResourceToTag = (typeof ResourceToTag)[keyof typeof ResourceToTag];
|
|
741
769
|
/**
|
|
742
770
|
* <p>If this canary is to test an endpoint in a VPC, this structure contains
|
|
743
771
|
* information about the subnets and security groups of the VPC endpoint.
|
|
@@ -874,6 +902,14 @@ export interface CreateCanaryRequest {
|
|
|
874
902
|
* @public
|
|
875
903
|
*/
|
|
876
904
|
VpcConfig?: VpcConfigInput;
|
|
905
|
+
/**
|
|
906
|
+
* <p>To have the tags that you apply to this canary also be applied to the Lambda function that
|
|
907
|
+
* the canary uses, specify this parameter with the value <code>lambda-function</code>.</p>
|
|
908
|
+
* <p>If you specify this parameter and don't specify any tags in the <code>Tags</code>
|
|
909
|
+
* parameter, the canary creation fails.</p>
|
|
910
|
+
* @public
|
|
911
|
+
*/
|
|
912
|
+
ResourcesToReplicateTags?: ResourceToTag[];
|
|
877
913
|
/**
|
|
878
914
|
* <p>A list of key-value pairs to associate with the canary.
|
|
879
915
|
* You can associate as many as 50 tags with a canary.</p>
|
|
@@ -881,6 +917,8 @@ export interface CreateCanaryRequest {
|
|
|
881
917
|
* resources. You can also use them to scope user permissions, by
|
|
882
918
|
* granting a user permission to access or change only the resources that have
|
|
883
919
|
* certain tag values.</p>
|
|
920
|
+
* <p>To have the tags that you apply to this canary also be applied to the Lambda function that
|
|
921
|
+
* the canary uses, specify this parameter with the value <code>lambda-function</code>.</p>
|
|
884
922
|
* @public
|
|
885
923
|
*/
|
|
886
924
|
Tags?: Record<string, string>;
|
|
@@ -1032,7 +1070,7 @@ export interface DescribeCanariesRequest {
|
|
|
1032
1070
|
NextToken?: string;
|
|
1033
1071
|
/**
|
|
1034
1072
|
* <p>Specify this parameter to limit how many canaries are returned each time you use
|
|
1035
|
-
* the <code>DescribeCanaries</code> operation. If you omit this parameter, the default of
|
|
1073
|
+
* the <code>DescribeCanaries</code> operation. If you omit this parameter, the default of 20 is used.</p>
|
|
1036
1074
|
* @public
|
|
1037
1075
|
*/
|
|
1038
1076
|
MaxResults?: number;
|
|
@@ -201,6 +201,10 @@ export interface CanaryScheduleInput {
|
|
|
201
201
|
Expression: string | undefined;
|
|
202
202
|
DurationInSeconds?: number;
|
|
203
203
|
}
|
|
204
|
+
export declare const ResourceToTag: {
|
|
205
|
+
readonly LAMBDA_FUNCTION: "lambda-function";
|
|
206
|
+
};
|
|
207
|
+
export type ResourceToTag = (typeof ResourceToTag)[keyof typeof ResourceToTag];
|
|
204
208
|
export interface VpcConfigInput {
|
|
205
209
|
SubnetIds?: string[];
|
|
206
210
|
SecurityGroupIds?: string[];
|
|
@@ -216,6 +220,7 @@ export interface CreateCanaryRequest {
|
|
|
216
220
|
FailureRetentionPeriodInDays?: number;
|
|
217
221
|
RuntimeVersion: string | undefined;
|
|
218
222
|
VpcConfig?: VpcConfigInput;
|
|
223
|
+
ResourcesToReplicateTags?: ResourceToTag[];
|
|
219
224
|
Tags?: Record<string, string>;
|
|
220
225
|
ArtifactConfig?: ArtifactConfigInput;
|
|
221
226
|
}
|
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.651.1",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-synthetics",
|
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
23
|
-
"@aws-sdk/client-sso-oidc": "3.
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
25
|
-
"@aws-sdk/core": "3.
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
23
|
+
"@aws-sdk/client-sso-oidc": "3.651.1",
|
|
24
|
+
"@aws-sdk/client-sts": "3.651.1",
|
|
25
|
+
"@aws-sdk/core": "3.651.1",
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.651.1",
|
|
27
27
|
"@aws-sdk/middleware-host-header": "3.649.0",
|
|
28
28
|
"@aws-sdk/middleware-logger": "3.649.0",
|
|
29
29
|
"@aws-sdk/middleware-recursion-detection": "3.649.0",
|