@Stability(value=Experimental) @Internal public static final class CanaryProps.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements CanaryProps
CanaryPropssoftware.amazon.jsii.JsiiObject.InitializationModeCanaryProps.Builder, CanaryProps.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
protected |
Jsii$Proxy(CanaryProps.Builder builder)
Constructor that initializes the object based on literal property values passed by the
CanaryProps.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) |
ArtifactsBucketLocation |
getArtifactsBucketLocation()
(experimental) The s3 location that stores the data of the canary runs.
|
String |
getCanaryName()
(experimental) The name of the canary.
|
Map<String,String> |
getEnvironmentVariables()
(experimental) Key-value pairs that the Synthetics caches and makes available for your canary scripts.
|
Duration |
getFailureRetentionPeriod()
(experimental) How many days should failed runs be retained.
|
IRole |
getRole()
(experimental) Canary execution role.
|
Runtime |
getRuntime()
(experimental) Specify the runtime version to use for the canary.
|
Schedule |
getSchedule()
(experimental) Specify the schedule for how often the canary runs.
|
List<ISecurityGroup> |
getSecurityGroups()
(experimental) The list of security groups to associate with the canary's network interfaces.
|
Boolean |
getStartAfterCreation()
(experimental) Whether or not the canary should start after creation.
|
Duration |
getSuccessRetentionPeriod()
(experimental) How many days should successful runs be retained.
|
Test |
getTest()
(experimental) The type of test that you want your canary to run.
|
Duration |
getTimeToLive()
(experimental) How long the canary will be in a 'RUNNING' state.
|
IVpc |
getVpc()
(experimental) The VPC where this canary is run.
|
SubnetSelection |
getVpcSubnets()
(experimental) Where to place the network interfaces within the VPC.
|
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(CanaryProps.Builder builder)
CanaryProps.Builder.public final Runtime getRuntime()
CanaryPropsgetRuntime in interface CanaryPropspublic final Test getTest()
CanaryProps
Use Test.custom() to specify the test to run.
getTest in interface CanaryPropspublic final ArtifactsBucketLocation getArtifactsBucketLocation()
CanaryPropsDefault: - A new s3 bucket will be created without a prefix.
getArtifactsBucketLocation in interface CanaryPropspublic final String getCanaryName()
CanaryPropsBe 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 name. The canary name makes up part of the canary ARN, which is included in outbound calls over the internet.
Default: - A unique name will be generated from the construct ID
getCanaryName in interface CanaryPropspublic final Map<String,String> getEnvironmentVariables()
CanaryPropsUse environment variables to apply configuration changes, such as test and production environment configurations, without changing your Canary script source code.
Default: - No environment variables.
getEnvironmentVariables in interface CanaryPropspublic final Duration getFailureRetentionPeriod()
CanaryPropsDefault: Duration.days(31)
getFailureRetentionPeriod in interface CanaryPropspublic final IRole getRole()
CanaryPropsThis is the role that will be assumed by the canary upon execution. It controls the permissions that the canary will have. The role must be assumable by the AWS Lambda service principal.
If not supplied, a role will be created with all the required permissions. If you provide a Role, you must add the required permissions.
Default: - A unique role will be generated for this canary. You can add permissions to roles by calling 'addToRolePolicy'.
public final Schedule getSchedule()
CanaryProps
For example, if you set schedule to rate(10 minutes), then the canary will run every 10 minutes.
You can set the schedule with Schedule.rate(Duration) (recommended) or you can specify an expression using Schedule.expression().
Default: 'rate(5 minutes)'
getSchedule in interface CanaryPropspublic final List<ISecurityGroup> getSecurityGroups()
CanaryProps
You must provide vpc when using this prop.
Default: - If the canary is placed within a VPC and a security group is not specified a dedicated security group will be created for this canary.
getSecurityGroups in interface CanaryPropspublic final Boolean getStartAfterCreation()
CanaryPropsDefault: true
getStartAfterCreation in interface CanaryPropspublic final Duration getSuccessRetentionPeriod()
CanaryPropsDefault: Duration.days(31)
getSuccessRetentionPeriod in interface CanaryPropspublic final Duration getTimeToLive()
CanaryProps
For example, if you set timeToLive to be 1 hour and schedule to be rate(10 minutes),
your canary will run at 10 minute intervals for an hour, for a total of 6 times.
Default: - no limit
getTimeToLive in interface CanaryPropspublic final IVpc getVpc()
CanaryPropsSpecify this if the canary needs to access resources in a VPC.
Default: - Not in VPC
getVpc in interface CanaryPropspublic final SubnetSelection getVpcSubnets()
CanaryProps
You must provide vpc when using this prop.
Default: - the Vpc default strategy if not specified
getVpcSubnets in interface CanaryProps@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
$jsii$toJson in interface software.amazon.jsii.JsiiSerializableCopyright © 2022. All rights reserved.