Interface ApiCanaryProps
-
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
ApiCanaryProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.102.0 (build e354887)", date="2024-08-06T18:16:18.992Z") @Stability(Experimental) public interface ApiCanaryProps extends software.amazon.jsii.JsiiSerializable
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classApiCanaryProps.BuilderA builder forApiCanaryPropsstatic classApiCanaryProps.Jsii$ProxyAn implementation forApiCanaryProps
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description static ApiCanaryProps.Builderbuilder()default 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.default StringgetCanaryName()(experimental) The name of the canary.default software.amazon.awscdk.DurationgetDurationAlarmThreshold()(experimental) The threshold for triggering an alarm on the test duration.default software.amazon.awscdk.DurationgetFailureRetentionPeriod()(experimental) How many days should failed runs be retained.default software.amazon.awscdk.services.iam.IRolegetRole()(experimental) Canary execution role.default software.amazon.awscdk.services.synthetics.SchedulegetSchedule()(experimental) Specify the schedule for how often the canary runs.default List<software.amazon.awscdk.services.ec2.ISecurityGroup>getSecurityGroups()(experimental) The list of security groups to associate with the canary's network interfaces.default BooleangetStartAfterCreation()(experimental) Whether or not the canary should start after creation.default List<ApiTestStep>getSteps()(experimental) The steps to perform in the synthetic test.default software.amazon.awscdk.DurationgetSuccessRetentionPeriod()(experimental) How many days should successful runs be retained.default NumbergetThreadCount()(experimental) The number of threads to run concurrently for the synthetic test.default software.amazon.awscdk.DurationgetTimeToLive()(experimental) How long the canary will be in a 'RUNNING' state.default software.amazon.awscdk.services.ec2.IVpcgetVpc()(experimental) The VPC where this canary is run.default software.amazon.awscdk.services.ec2.SubnetSelectiongetVpcSubnets()(experimental) Where to place the network interfaces within the VPC.
-
-
-
Method Detail
-
getBaseUrl
@Stability(Experimental) @NotNull String getBaseUrl()
(experimental) The base URL to use for tests.
-
getArtifactsBucketLocation
@Stability(Experimental) @Nullable default software.amazon.awscdk.services.synthetics.ArtifactsBucketLocation getArtifactsBucketLocation()
(experimental) The s3 location that stores the data of the canary runs.Default: - A new s3 bucket will be created without a prefix.
-
getCanaryName
@Stability(Experimental) @Nullable default String getCanaryName()
(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
-
getDurationAlarmThreshold
@Stability(Experimental) @Nullable default software.amazon.awscdk.Duration getDurationAlarmThreshold()
(experimental) The threshold for triggering an alarm on the test duration.Default: - no alarm is created for duration
-
getFailureRetentionPeriod
@Stability(Experimental) @Nullable default software.amazon.awscdk.Duration getFailureRetentionPeriod()
(experimental) How many days should failed runs be retained.Default: Duration.days(31)
-
getRole
@Stability(Experimental) @Nullable default software.amazon.awscdk.services.iam.IRole getRole()
(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
@Stability(Experimental) @Nullable default software.amazon.awscdk.services.synthetics.Schedule getSchedule()
(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)'
-
getSecurityGroups
@Stability(Experimental) @Nullable default List<software.amazon.awscdk.services.ec2.ISecurityGroup> getSecurityGroups()
(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.
-
getStartAfterCreation
@Stability(Experimental) @Nullable default Boolean getStartAfterCreation()
(experimental) Whether or not the canary should start after creation.Default: true
-
getSteps
@Stability(Experimental) @Nullable default List<ApiTestStep> getSteps()
(experimental) The steps to perform in the synthetic test.
-
getSuccessRetentionPeriod
@Stability(Experimental) @Nullable default software.amazon.awscdk.Duration getSuccessRetentionPeriod()
(experimental) How many days should successful runs be retained.Default: Duration.days(31)
-
getThreadCount
@Stability(Experimental) @Nullable default Number getThreadCount()
(experimental) The number of threads to run concurrently for the synthetic test.Default: - 20
-
getTimeToLive
@Stability(Experimental) @Nullable default software.amazon.awscdk.Duration getTimeToLive()
(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
-
getVpc
@Stability(Experimental) @Nullable default software.amazon.awscdk.services.ec2.IVpc getVpc()
(experimental) The VPC where this canary is run.Specify this if the canary needs to access resources in a VPC.
Default: - Not in VPC
-
getVpcSubnets
@Stability(Experimental) @Nullable default software.amazon.awscdk.services.ec2.SubnetSelection getVpcSubnets()
(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
-
builder
@Stability(Experimental) static ApiCanaryProps.Builder builder()
- Returns:
- a
ApiCanaryProps.BuilderofApiCanaryProps
-
-