public static interface Canary.Builder extends SdkPojo, CopyableBuilder<Canary.Builder,Canary>
| Modifier and Type | Method and Description |
|---|---|
Canary.Builder |
artifactS3Location(String artifactS3Location)
The location in Amazon S3 where Synthetics stores artifacts from the runs of this canary.
|
Canary.Builder |
code(CanaryCodeOutput code)
Sets the value of the Code property for this object.
|
default Canary.Builder |
code(Consumer<CanaryCodeOutput.Builder> code)
Sets the value of the Code property for this object.
|
Canary.Builder |
engineArn(String engineArn)
The ARN of the Lambda function that is used as your canary's engine.
|
Canary.Builder |
executionRoleArn(String executionRoleArn)
The ARN of the IAM role used to run the canary.
|
Canary.Builder |
failureRetentionPeriodInDays(Integer failureRetentionPeriodInDays)
The number of days to retain data about failed runs of this canary.
|
Canary.Builder |
id(String id)
The unique ID of this canary.
|
Canary.Builder |
name(String name)
The name of the canary.
|
Canary.Builder |
runConfig(CanaryRunConfigOutput runConfig)
Sets the value of the RunConfig property for this object.
|
default Canary.Builder |
runConfig(Consumer<CanaryRunConfigOutput.Builder> runConfig)
Sets the value of the RunConfig property for this object.
|
Canary.Builder |
runtimeVersion(String runtimeVersion)
Specifies the runtime version to use for the canary.
|
Canary.Builder |
schedule(CanaryScheduleOutput schedule)
A structure that contains information about how often the canary is to run, and when these runs are to stop.
|
default Canary.Builder |
schedule(Consumer<CanaryScheduleOutput.Builder> schedule)
A structure that contains information about how often the canary is to run, and when these runs are to stop.
|
Canary.Builder |
status(CanaryStatus status)
A structure that contains information about the canary's status.
|
default Canary.Builder |
status(Consumer<CanaryStatus.Builder> status)
A structure that contains information about the canary's status.
|
Canary.Builder |
successRetentionPeriodInDays(Integer successRetentionPeriodInDays)
The number of days to retain data about successful runs of this canary.
|
Canary.Builder |
tags(Map<String,String> tags)
The list of key-value pairs that are associated with the canary.
|
Canary.Builder |
timeline(CanaryTimeline timeline)
A structure that contains information about when the canary was created, modified, and most recently run.
|
default Canary.Builder |
timeline(Consumer<CanaryTimeline.Builder> timeline)
A structure that contains information about when the canary was created, modified, and most recently run.
|
default Canary.Builder |
vpcConfig(Consumer<VpcConfigOutput.Builder> vpcConfig)
Sets the value of the VpcConfig property for this object.
|
Canary.Builder |
vpcConfig(VpcConfigOutput vpcConfig)
Sets the value of the VpcConfig property for this object.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildCanary.Builder id(String id)
The unique ID of this canary.
id - The unique ID of this canary.Canary.Builder name(String name)
The name of the canary.
name - The name of the canary.Canary.Builder code(CanaryCodeOutput code)
code - The new value for the Code property for this object.default Canary.Builder code(Consumer<CanaryCodeOutput.Builder> code)
CanaryCodeOutput.Builder avoiding the need to
create one manually via CanaryCodeOutput.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its
result is passed to code(CanaryCodeOutput).code - a consumer that will call methods on CanaryCodeOutput.Buildercode(CanaryCodeOutput)Canary.Builder executionRoleArn(String executionRoleArn)
The ARN of the IAM role used to run the canary. This role must include lambda.amazonaws.com as a
principal in the trust policy.
executionRoleArn - The ARN of the IAM role used to run the canary. This role must include
lambda.amazonaws.com as a principal in the trust policy.Canary.Builder schedule(CanaryScheduleOutput schedule)
A structure that contains information about how often the canary is to run, and when these runs are to stop.
schedule - A structure that contains information about how often the canary is to run, and when these runs are to
stop.default Canary.Builder schedule(Consumer<CanaryScheduleOutput.Builder> schedule)
A structure that contains information about how often the canary is to run, and when these runs are to stop.
This is a convenience that creates an instance of theCanaryScheduleOutput.Builder avoiding the need
to create one manually via CanaryScheduleOutput.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and
its result is passed to schedule(CanaryScheduleOutput).schedule - a consumer that will call methods on CanaryScheduleOutput.Builderschedule(CanaryScheduleOutput)Canary.Builder runConfig(CanaryRunConfigOutput runConfig)
runConfig - The new value for the RunConfig property for this object.default Canary.Builder runConfig(Consumer<CanaryRunConfigOutput.Builder> runConfig)
CanaryRunConfigOutput.Builder avoiding the need
to create one manually via CanaryRunConfigOutput.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and
its result is passed to runConfig(CanaryRunConfigOutput).runConfig - a consumer that will call methods on CanaryRunConfigOutput.BuilderrunConfig(CanaryRunConfigOutput)Canary.Builder successRetentionPeriodInDays(Integer successRetentionPeriodInDays)
The number of days to retain data about successful runs of this canary.
successRetentionPeriodInDays - The number of days to retain data about successful runs of this canary.Canary.Builder failureRetentionPeriodInDays(Integer failureRetentionPeriodInDays)
The number of days to retain data about failed runs of this canary.
failureRetentionPeriodInDays - The number of days to retain data about failed runs of this canary.Canary.Builder status(CanaryStatus status)
A structure that contains information about the canary's status.
status - A structure that contains information about the canary's status.default Canary.Builder status(Consumer<CanaryStatus.Builder> status)
A structure that contains information about the canary's status.
This is a convenience that creates an instance of theCanaryStatus.Builder avoiding the need to
create one manually via CanaryStatus.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its
result is passed to status(CanaryStatus).status - a consumer that will call methods on CanaryStatus.Builderstatus(CanaryStatus)Canary.Builder timeline(CanaryTimeline timeline)
A structure that contains information about when the canary was created, modified, and most recently run.
timeline - A structure that contains information about when the canary was created, modified, and most recently
run.default Canary.Builder timeline(Consumer<CanaryTimeline.Builder> timeline)
A structure that contains information about when the canary was created, modified, and most recently run.
This is a convenience that creates an instance of theCanaryTimeline.Builder avoiding the need to
create one manually via CanaryTimeline.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its
result is passed to timeline(CanaryTimeline).timeline - a consumer that will call methods on CanaryTimeline.Buildertimeline(CanaryTimeline)Canary.Builder artifactS3Location(String artifactS3Location)
The location in Amazon S3 where Synthetics stores artifacts from the runs of this canary. Artifacts include the log file, screenshots, and HAR files.
artifactS3Location - The location in Amazon S3 where Synthetics stores artifacts from the runs of this canary. Artifacts
include the log file, screenshots, and HAR files.Canary.Builder engineArn(String engineArn)
The ARN of the Lambda function that is used as your canary's engine. For more information about Lambda ARN format, see Resources and Conditions for Lambda Actions.
engineArn - The ARN of the Lambda function that is used as your canary's engine. For more information about Lambda
ARN format, see Resources and
Conditions for Lambda Actions.Canary.Builder runtimeVersion(String runtimeVersion)
Specifies the runtime version to use for the canary. For more information about runtime versions, see Canary Runtime Versions.
runtimeVersion - Specifies the runtime version to use for the canary. For more information about runtime versions, see
Canary Runtime Versions.Canary.Builder vpcConfig(VpcConfigOutput vpcConfig)
vpcConfig - The new value for the VpcConfig property for this object.default Canary.Builder vpcConfig(Consumer<VpcConfigOutput.Builder> vpcConfig)
VpcConfigOutput.Builder avoiding the need to
create one manually via VpcConfigOutput.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its
result is passed to vpcConfig(VpcConfigOutput).vpcConfig - a consumer that will call methods on VpcConfigOutput.BuildervpcConfig(VpcConfigOutput)Canary.Builder tags(Map<String,String> tags)
The list of key-value pairs that are associated with the canary.
tags - The list of key-value pairs that are associated with the canary.Copyright © 2021. All rights reserved.