@Stability(value=Stable) @Internal public static final class CfnCanaryProps.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements CfnCanaryProps
CfnCanaryPropssoftware.amazon.jsii.JsiiObject.InitializationModeCfnCanaryProps.Builder, CfnCanaryProps.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
protected |
Jsii$Proxy(CfnCanaryProps.Builder builder)
Constructor that initializes the object based on literal property values passed by the
CfnCanaryProps.Builder. |
protected |
Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
Constructor that initializes the object based on values retrieved from the JsiiObject.
|
| Modifier and Type | Method and Description |
|---|---|
com.fasterxml.jackson.databind.JsonNode |
$jsii$toJson() |
boolean |
equals(Object o) |
Object |
getArtifactConfig()
A structure that contains the configuration for canary artifacts, including the encryption-at-rest settings for artifacts that the canary uploads to Amazon S3.
|
String |
getArtifactS3Location()
The location in Amazon S3 where Synthetics stores artifacts from the runs of this canary.
|
Object |
getCode()
Use this structure to input your script code for the canary.
|
Object |
getDeleteLambdaResourcesOnCanaryDeletion()
Specifies whether AWS CloudFormation is to also delete the Lambda functions and layers used by this canary, when the canary is deleted.
|
String |
getExecutionRoleArn()
The ARN of the IAM role to be used to run the canary.
|
Number |
getFailureRetentionPeriod()
The number of days to retain data about failed runs of this canary.
|
String |
getName()
The name for this canary.
|
Object |
getRunConfig()
A structure that contains input information for a canary run.
|
String |
getRuntimeVersion()
Specifies the runtime version to use for the canary.
|
Object |
getSchedule()
A structure that contains information about how often the canary is to run, and when these runs are to stop.
|
Object |
getStartCanaryAfterCreation()
Specify TRUE to have the canary start making runs immediately after it is created.
|
Number |
getSuccessRetentionPeriod()
The number of days to retain data about successful runs of this canary.
|
List<CfnTag> |
getTags()
The list of key-value pairs that are associated with the canary.
|
Object |
getVisualReference()
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.
|
Object |
getVpcConfig()
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.
|
int |
hashCode() |
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitbuilderprotected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
objRef - Reference to the JSII managed object.protected Jsii$Proxy(CfnCanaryProps.Builder builder)
CfnCanaryProps.Builder.public final String getArtifactS3Location()
CfnCanaryProps
Artifacts include the log file, screenshots, and HAR files. Specify the full location path, including s3:// at the beginning of the path.
getArtifactS3Location in interface CfnCanaryPropspublic final Object getCode()
CfnCanaryProps
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 .
getCode in interface CfnCanaryPropspublic final String getExecutionRoleArn()
CfnCanaryProps
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:PutLogEventsgetExecutionRoleArn in interface CfnCanaryPropspublic final String getName()
CfnCanaryPropsBe 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 .
getName in interface CfnCanaryPropspublic final String getRuntimeVersion()
CfnCanaryPropsFor more information about runtime versions, see Canary Runtime Versions .
getRuntimeVersion in interface CfnCanaryPropspublic final Object getSchedule()
CfnCanaryPropsgetSchedule in interface CfnCanaryPropspublic final Object getStartCanaryAfterCreation()
CfnCanaryPropsA 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.
getStartCanaryAfterCreation in interface CfnCanaryPropspublic final Object getArtifactConfig()
CfnCanaryPropsgetArtifactConfig in interface CfnCanaryPropspublic final Object getDeleteLambdaResourcesOnCanaryDeletion()
CfnCanaryPropsThe default is false.
getDeleteLambdaResourcesOnCanaryDeletion in interface CfnCanaryPropspublic final Number getFailureRetentionPeriod()
CfnCanaryPropsIf you omit this field, the default of 31 days is used. The valid range is 1 to 455 days.
getFailureRetentionPeriod in interface CfnCanaryPropspublic final Object getRunConfig()
CfnCanaryPropsIf you omit this structure, the frequency of the canary is used as canary's timeout value, up to a maximum of 900 seconds.
getRunConfig in interface CfnCanaryPropspublic final Number getSuccessRetentionPeriod()
CfnCanaryPropsIf you omit this field, the default of 31 days is used. The valid range is 1 to 455 days.
getSuccessRetentionPeriod in interface CfnCanaryPropspublic final List<CfnTag> getTags()
CfnCanaryPropsgetTags in interface CfnCanaryPropspublic final Object getVisualReference()
CfnCanaryPropsgetVisualReference in interface CfnCanaryPropspublic final Object getVpcConfig()
CfnCanaryPropsFor more information, see Running a Canary in a VPC .
getVpcConfig in interface CfnCanaryProps@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
$jsii$toJson in interface software.amazon.jsii.JsiiSerializableCopyright © 2022. All rights reserved.