Class ApiCanaryProps.Jsii$Proxy
- java.lang.Object
-
- software.amazon.jsii.JsiiObject
-
- io.github.cdklabs.cdk.ecs.codedeploy.ApiCanaryProps.Jsii$Proxy
-
- All Implemented Interfaces:
ApiCanaryProps,software.amazon.jsii.JsiiSerializable
- Enclosing interface:
- ApiCanaryProps
@Stability(Experimental) @Internal public static final class ApiCanaryProps.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements ApiCanaryProps
An implementation forApiCanaryProps
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
-
Nested classes/interfaces inherited from interface io.github.cdklabs.cdk.ecs.codedeploy.ApiCanaryProps
ApiCanaryProps.Builder, ApiCanaryProps.Jsii$Proxy
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedJsii$Proxy(ApiCanaryProps.Builder builder)Constructor that initializes the object based on literal property values passed by theApiCanaryProps.Builder.protectedJsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)Constructor that initializes the object based on values retrieved from the JsiiObject.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.fasterxml.jackson.databind.JsonNode$jsii$toJson()booleanequals(Object o)software.amazon.awscdk.services.synthetics.ArtifactsBucketLocationgetArtifactsBucketLocation()(experimental) The s3 location that stores the data of the canary runs.StringgetBaseUrl()(experimental) The base URL to use for tests.StringgetCanaryName()(experimental) The name of the canary.software.amazon.awscdk.DurationgetDurationAlarmThreshold()(experimental) The threshold for triggering an alarm on the test duration.software.amazon.awscdk.DurationgetFailureRetentionPeriod()(experimental) How many days should failed runs be retained.software.amazon.awscdk.services.iam.IRolegetRole()(experimental) Canary execution role.software.amazon.awscdk.services.synthetics.SchedulegetSchedule()(experimental) Specify the schedule for how often the canary runs.List<software.amazon.awscdk.services.ec2.ISecurityGroup>getSecurityGroups()(experimental) The list of security groups to associate with the canary's network interfaces.BooleangetStartAfterCreation()(experimental) Whether or not the canary should start after creation.List<ApiTestStep>getSteps()(experimental) The steps to perform in the synthetic test.software.amazon.awscdk.DurationgetSuccessRetentionPeriod()(experimental) How many days should successful runs be retained.NumbergetThreadCount()(experimental) The number of threads to run concurrently for the synthetic test.software.amazon.awscdk.DurationgetTimeToLive()(experimental) How long the canary will be in a 'RUNNING' state.software.amazon.awscdk.services.ec2.IVpcgetVpc()(experimental) The VPC where this canary is run.software.amazon.awscdk.services.ec2.SubnetSelectiongetVpcSubnets()(experimental) Where to place the network interfaces within the VPC.inthashCode()
-
-
-
Constructor Detail
-
Jsii$Proxy
protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
Constructor that initializes the object based on values retrieved from the JsiiObject.- Parameters:
objRef- Reference to the JSII managed object.
-
Jsii$Proxy
protected Jsii$Proxy(ApiCanaryProps.Builder builder)
Constructor that initializes the object based on literal property values passed by theApiCanaryProps.Builder.
-
-
Method Detail
-
getBaseUrl
public final String getBaseUrl()
Description copied from interface:ApiCanaryProps(experimental) The base URL to use for tests.- Specified by:
getBaseUrlin interfaceApiCanaryProps
-
getArtifactsBucketLocation
public final software.amazon.awscdk.services.synthetics.ArtifactsBucketLocation getArtifactsBucketLocation()
Description copied from interface:ApiCanaryProps(experimental) The s3 location that stores the data of the canary runs.Default: - A new s3 bucket will be created without a prefix.
- Specified by:
getArtifactsBucketLocationin interfaceApiCanaryProps
-
getCanaryName
public final String getCanaryName()
Description copied from interface:ApiCanaryProps(experimental) The name of the canary.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 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
- Specified by:
getCanaryNamein interfaceApiCanaryProps- See Also:
- https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/servicelens_canaries_security.html
-
getDurationAlarmThreshold
public final software.amazon.awscdk.Duration getDurationAlarmThreshold()
Description copied from interface:ApiCanaryProps(experimental) The threshold for triggering an alarm on the test duration.Default: - no alarm is created for duration
- Specified by:
getDurationAlarmThresholdin interfaceApiCanaryProps
-
getFailureRetentionPeriod
public final software.amazon.awscdk.Duration getFailureRetentionPeriod()
Description copied from interface:ApiCanaryProps(experimental) How many days should failed runs be retained.Default: Duration.days(31)
- Specified by:
getFailureRetentionPeriodin interfaceApiCanaryProps
-
getRole
public final software.amazon.awscdk.services.iam.IRole getRole()
Description copied from interface:ApiCanaryProps(experimental) Canary execution role.This 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'.
-
getSchedule
public final software.amazon.awscdk.services.synthetics.Schedule getSchedule()
Description copied from interface:ApiCanaryProps(experimental) Specify the schedule for how often the canary runs.For example, if you set
scheduletorate(10 minutes), then the canary will run every 10 minutes. You can set the schedule withSchedule.rate(Duration)(recommended) or you can specify an expression usingSchedule.expression().Default: 'rate(5 minutes)'
- Specified by:
getSchedulein interfaceApiCanaryProps
-
getSecurityGroups
public final List<software.amazon.awscdk.services.ec2.ISecurityGroup> getSecurityGroups()
Description copied from interface:ApiCanaryProps(experimental) The list of security groups to associate with the canary's network interfaces.You must provide
vpcwhen 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.
- Specified by:
getSecurityGroupsin interfaceApiCanaryProps
-
getStartAfterCreation
public final Boolean getStartAfterCreation()
Description copied from interface:ApiCanaryProps(experimental) Whether or not the canary should start after creation.Default: true
- Specified by:
getStartAfterCreationin interfaceApiCanaryProps
-
getSteps
public final List<ApiTestStep> getSteps()
Description copied from interface:ApiCanaryProps(experimental) The steps to perform in the synthetic test.- Specified by:
getStepsin interfaceApiCanaryProps
-
getSuccessRetentionPeriod
public final software.amazon.awscdk.Duration getSuccessRetentionPeriod()
Description copied from interface:ApiCanaryProps(experimental) How many days should successful runs be retained.Default: Duration.days(31)
- Specified by:
getSuccessRetentionPeriodin interfaceApiCanaryProps
-
getThreadCount
public final Number getThreadCount()
Description copied from interface:ApiCanaryProps(experimental) The number of threads to run concurrently for the synthetic test.Default: - 20
- Specified by:
getThreadCountin interfaceApiCanaryProps
-
getTimeToLive
public final software.amazon.awscdk.Duration getTimeToLive()
Description copied from interface:ApiCanaryProps(experimental) How long the canary will be in a 'RUNNING' state.For example, if you set
timeToLiveto be 1 hour andscheduleto berate(10 minutes), your canary will run at 10 minute intervals for an hour, for a total of 6 times.Default: - no limit
- Specified by:
getTimeToLivein interfaceApiCanaryProps
-
getVpc
public final software.amazon.awscdk.services.ec2.IVpc getVpc()
Description copied from interface:ApiCanaryProps(experimental) The VPC where this canary is run.Specify this if the canary needs to access resources in a VPC.
Default: - Not in VPC
- Specified by:
getVpcin interfaceApiCanaryProps
-
getVpcSubnets
public final software.amazon.awscdk.services.ec2.SubnetSelection getVpcSubnets()
Description copied from interface:ApiCanaryProps(experimental) Where to place the network interfaces within the VPC.You must provide
vpcwhen using this prop.Default: - the Vpc default strategy if not specified
- Specified by:
getVpcSubnetsin interfaceApiCanaryProps
-
$jsii$toJson
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
- Specified by:
$jsii$toJsonin interfacesoftware.amazon.jsii.JsiiSerializable
-
-