| Modifier and Type | Method and Description |
|---|---|
CfnCanary.Builder |
artifactConfig(CfnCanary.ArtifactConfigProperty artifactConfig)
A structure that contains the configuration for canary artifacts, including the encryption-at-rest settings for artifacts that the canary uploads to Amazon S3.
|
CfnCanary.Builder |
artifactConfig(IResolvable artifactConfig)
A structure that contains the configuration for canary artifacts, including the encryption-at-rest settings for artifacts that the canary uploads to Amazon S3.
|
CfnCanary.Builder |
artifactS3Location(String artifactS3Location)
The location in Amazon S3 where Synthetics stores artifacts from the runs of this canary.
|
CfnCanary |
build() |
CfnCanary.Builder |
code(CfnCanary.CodeProperty code)
Use this structure to input your script code for the canary.
|
CfnCanary.Builder |
code(IResolvable code)
Use this structure to input your script code for the canary.
|
static CfnCanary.Builder |
create(software.constructs.Construct scope,
String id) |
CfnCanary.Builder |
deleteLambdaResourcesOnCanaryDeletion(Boolean deleteLambdaResourcesOnCanaryDeletion)
Specifies whether AWS CloudFormation is to also delete the Lambda functions and layers used by this canary, when the canary is deleted.
|
CfnCanary.Builder |
deleteLambdaResourcesOnCanaryDeletion(IResolvable deleteLambdaResourcesOnCanaryDeletion)
Specifies whether AWS CloudFormation is to also delete the Lambda functions and layers used by this canary, when the canary is deleted.
|
CfnCanary.Builder |
executionRoleArn(String executionRoleArn)
The ARN of the IAM role to be used to run the canary.
|
CfnCanary.Builder |
failureRetentionPeriod(Number failureRetentionPeriod)
The number of days to retain data about failed runs of this canary.
|
CfnCanary.Builder |
name(String name)
The name for this canary.
|
CfnCanary.Builder |
runConfig(CfnCanary.RunConfigProperty runConfig)
A structure that contains input information for a canary run.
|
CfnCanary.Builder |
runConfig(IResolvable runConfig)
A structure that contains input information for a canary run.
|
CfnCanary.Builder |
runtimeVersion(String runtimeVersion)
Specifies the runtime version to use for the canary.
|
CfnCanary.Builder |
schedule(CfnCanary.ScheduleProperty schedule)
A structure that contains information about how often the canary is to run, and when these runs are to stop.
|
CfnCanary.Builder |
schedule(IResolvable schedule)
A structure that contains information about how often the canary is to run, and when these runs are to stop.
|
CfnCanary.Builder |
startCanaryAfterCreation(Boolean startCanaryAfterCreation)
Specify TRUE to have the canary start making runs immediately after it is created.
|
CfnCanary.Builder |
startCanaryAfterCreation(IResolvable startCanaryAfterCreation)
Specify TRUE to have the canary start making runs immediately after it is created.
|
CfnCanary.Builder |
successRetentionPeriod(Number successRetentionPeriod)
The number of days to retain data about successful runs of this canary.
|
CfnCanary.Builder |
tags(List<? extends CfnTag> tags)
The list of key-value pairs that are associated with the canary.
|
CfnCanary.Builder |
visualReference(CfnCanary.VisualReferenceProperty visualReference)
If this canary performs visual monitoring by comparing screenshots, this structure contains the ID of the canary run to use as the baseline for screenshots, and the coordinates of any parts of the screen to ignore during the visual monitoring comparison.
|
CfnCanary.Builder |
visualReference(IResolvable visualReference)
If this canary performs visual monitoring by comparing screenshots, this structure contains the ID of the canary run to use as the baseline for screenshots, and the coordinates of any parts of the screen to ignore during the visual monitoring comparison.
|
CfnCanary.Builder |
vpcConfig(CfnCanary.VPCConfigProperty vpcConfig)
If this canary is to test an endpoint in a VPC, this structure contains information about the subnet and security groups of the VPC endpoint.
|
CfnCanary.Builder |
vpcConfig(IResolvable vpcConfig)
If this canary is to test an endpoint in a VPC, this structure contains information about the subnet and security groups of the VPC endpoint.
|
@Stability(value=Stable) public static CfnCanary.Builder create(software.constructs.Construct scope, String id)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.CfnCanary.ArtifactConfigProperty.Builder.@Stability(value=Stable) public CfnCanary.Builder artifactS3Location(String artifactS3Location)
Artifacts include the log file, screenshots, and HAR files. Specify the full location path, including s3:// at the beginning of the path.
artifactS3Location - The location in Amazon S3 where Synthetics stores artifacts from the runs of this canary. This parameter is required.this@Stability(value=Stable) public CfnCanary.Builder code(CfnCanary.CodeProperty code)
This structure contains the Lambda handler with the location where the canary should start running the script. If the script is stored in an S3 bucket, the bucket name, key, and version are also included. If the script is passed into the canary directly, the script code is contained in the value of Script .
code - Use this structure to input your script code for the canary. This parameter is required.this@Stability(value=Stable) public CfnCanary.Builder code(IResolvable code)
This structure contains the Lambda handler with the location where the canary should start running the script. If the script is stored in an S3 bucket, the bucket name, key, and version are also included. If the script is passed into the canary directly, the script code is contained in the value of Script .
code - Use this structure to input your script code for the canary. This parameter is required.this@Stability(value=Stable) public CfnCanary.Builder executionRoleArn(String executionRoleArn)
This role must already exist, and must include lambda.amazonaws.com as a principal in the trust policy. The role must also have the following permissions:
s3:PutObjects3:GetBucketLocations3:ListAllMyBucketscloudwatch:PutMetricDatalogs:CreateLogGrouplogs:CreateLogStreamlogs:PutLogEventsexecutionRoleArn - The ARN of the IAM role to be used to run the canary. This parameter is required.this@Stability(value=Stable) public CfnCanary.Builder name(String name)
Be sure to give it a descriptive name that distinguishes it from other canaries in your account.
Do not include secrets or proprietary information in your canary names. The canary name makes up part of the canary ARN, and the ARN is included in outbound calls over the internet. For more information, see Security Considerations for Synthetics Canaries .
name - The name for this canary. This parameter is required.this@Stability(value=Stable) public CfnCanary.Builder runtimeVersion(String runtimeVersion)
For more information about runtime versions, see Canary Runtime Versions .
runtimeVersion - Specifies the runtime version to use for the canary. This parameter is required.this@Stability(value=Stable) public CfnCanary.Builder schedule(CfnCanary.ScheduleProperty schedule)
schedule - A structure that contains information about how often the canary is to run, and when these runs are to stop. This parameter is required.this@Stability(value=Stable) public CfnCanary.Builder schedule(IResolvable schedule)
schedule - A structure that contains information about how often the canary is to run, and when these runs are to stop. This parameter is required.this@Stability(value=Stable) public CfnCanary.Builder startCanaryAfterCreation(Boolean startCanaryAfterCreation)
A canary that you create using CloudFormation can't be used to monitor the CloudFormation stack that creates the canary or to roll back that stack if there is a failure.
startCanaryAfterCreation - Specify TRUE to have the canary start making runs immediately after it is created. This parameter is required.this@Stability(value=Stable) public CfnCanary.Builder startCanaryAfterCreation(IResolvable startCanaryAfterCreation)
A canary that you create using CloudFormation can't be used to monitor the CloudFormation stack that creates the canary or to roll back that stack if there is a failure.
startCanaryAfterCreation - Specify TRUE to have the canary start making runs immediately after it is created. This parameter is required.this@Stability(value=Stable) public CfnCanary.Builder artifactConfig(CfnCanary.ArtifactConfigProperty artifactConfig)
artifactConfig - A structure that contains the configuration for canary artifacts, including the encryption-at-rest settings for artifacts that the canary uploads to Amazon S3. This parameter is required.this@Stability(value=Stable) public CfnCanary.Builder artifactConfig(IResolvable artifactConfig)
artifactConfig - A structure that contains the configuration for canary artifacts, including the encryption-at-rest settings for artifacts that the canary uploads to Amazon S3. This parameter is required.this@Stability(value=Stable) public CfnCanary.Builder deleteLambdaResourcesOnCanaryDeletion(Boolean deleteLambdaResourcesOnCanaryDeletion)
The default is false.
deleteLambdaResourcesOnCanaryDeletion - Specifies whether AWS CloudFormation is to also delete the Lambda functions and layers used by this canary, when the canary is deleted. This parameter is required.this@Stability(value=Stable) public CfnCanary.Builder deleteLambdaResourcesOnCanaryDeletion(IResolvable deleteLambdaResourcesOnCanaryDeletion)
The default is false.
deleteLambdaResourcesOnCanaryDeletion - Specifies whether AWS CloudFormation is to also delete the Lambda functions and layers used by this canary, when the canary is deleted. This parameter is required.this@Stability(value=Stable) public CfnCanary.Builder failureRetentionPeriod(Number failureRetentionPeriod)
If you omit this field, the default of 31 days is used. The valid range is 1 to 455 days.
failureRetentionPeriod - The number of days to retain data about failed runs of this canary. This parameter is required.this@Stability(value=Stable) public CfnCanary.Builder runConfig(CfnCanary.RunConfigProperty runConfig)
If you omit this structure, the frequency of the canary is used as canary's timeout value, up to a maximum of 900 seconds.
runConfig - A structure that contains input information for a canary run. This parameter is required.this@Stability(value=Stable) public CfnCanary.Builder runConfig(IResolvable runConfig)
If you omit this structure, the frequency of the canary is used as canary's timeout value, up to a maximum of 900 seconds.
runConfig - A structure that contains input information for a canary run. This parameter is required.this@Stability(value=Stable) public CfnCanary.Builder successRetentionPeriod(Number successRetentionPeriod)
If you omit this field, the default of 31 days is used. The valid range is 1 to 455 days.
successRetentionPeriod - The number of days to retain data about successful runs of this canary. This parameter is required.this@Stability(value=Stable) public CfnCanary.Builder tags(List<? extends CfnTag> tags)
tags - The list of key-value pairs that are associated with the canary. This parameter is required.this@Stability(value=Stable) public CfnCanary.Builder visualReference(CfnCanary.VisualReferenceProperty visualReference)
visualReference - If this canary performs visual monitoring by comparing screenshots, this structure contains the ID of the canary run to use as the baseline for screenshots, and the coordinates of any parts of the screen to ignore during the visual monitoring comparison. This parameter is required.this@Stability(value=Stable) public CfnCanary.Builder visualReference(IResolvable visualReference)
visualReference - If this canary performs visual monitoring by comparing screenshots, this structure contains the ID of the canary run to use as the baseline for screenshots, and the coordinates of any parts of the screen to ignore during the visual monitoring comparison. This parameter is required.this@Stability(value=Stable) public CfnCanary.Builder vpcConfig(CfnCanary.VPCConfigProperty vpcConfig)
For more information, see Running a Canary in a VPC .
vpcConfig - If this canary is to test an endpoint in a VPC, this structure contains information about the subnet and security groups of the VPC endpoint. This parameter is required.this@Stability(value=Stable) public CfnCanary.Builder vpcConfig(IResolvable vpcConfig)
For more information, see Running a Canary in a VPC .
vpcConfig - If this canary is to test an endpoint in a VPC, this structure contains information about the subnet and security groups of the VPC endpoint. This parameter is required.thisCopyright © 2022. All rights reserved.