public static interface UpdateCanaryRequest.Builder extends SyntheticsRequest.Builder, SdkPojo, CopyableBuilder<UpdateCanaryRequest.Builder,UpdateCanaryRequest>
| Modifier and Type | Method and Description |
|---|---|
UpdateCanaryRequest.Builder |
code(CanaryCodeInput code)
A structure that includes the entry point from which the canary should start running your script.
|
default UpdateCanaryRequest.Builder |
code(Consumer<CanaryCodeInput.Builder> code)
A structure that includes the entry point from which the canary should start running your script.
|
UpdateCanaryRequest.Builder |
executionRoleArn(String executionRoleArn)
The ARN of the IAM role to be used to run the canary.
|
UpdateCanaryRequest.Builder |
failureRetentionPeriodInDays(Integer failureRetentionPeriodInDays)
The number of days to retain data about failed runs of this canary.
|
UpdateCanaryRequest.Builder |
name(String name)
The name of the canary that you want to update.
|
UpdateCanaryRequest.Builder |
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) |
UpdateCanaryRequest.Builder |
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) |
UpdateCanaryRequest.Builder |
runConfig(CanaryRunConfigInput runConfig)
A structure that contains the timeout value that is used for each individual run of the canary.
|
default UpdateCanaryRequest.Builder |
runConfig(Consumer<CanaryRunConfigInput.Builder> runConfig)
A structure that contains the timeout value that is used for each individual run of the canary.
|
UpdateCanaryRequest.Builder |
runtimeVersion(String runtimeVersion)
Specifies the runtime version to use for the canary.
|
UpdateCanaryRequest.Builder |
schedule(CanaryScheduleInput schedule)
A structure that contains information about how often the canary is to run, and when these runs are to stop.
|
default UpdateCanaryRequest.Builder |
schedule(Consumer<CanaryScheduleInput.Builder> schedule)
A structure that contains information about how often the canary is to run, and when these runs are to stop.
|
UpdateCanaryRequest.Builder |
successRetentionPeriodInDays(Integer successRetentionPeriodInDays)
The number of days to retain data about successful runs of this canary.
|
default UpdateCanaryRequest.Builder |
vpcConfig(Consumer<VpcConfigInput.Builder> vpcConfig)
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.
|
UpdateCanaryRequest.Builder |
vpcConfig(VpcConfigInput vpcConfig)
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.
|
buildoverrideConfigurationequalsBySdkFields, sdkFieldscopyapplyMutation, buildUpdateCanaryRequest.Builder name(String name)
The name of the canary that you want to update. To find the names of your canaries, use DescribeCanaries.
You cannot change the name of a canary that has already been created.
name - The name of the canary that you want to update. To find the names of your canaries, use DescribeCanaries.
You cannot change the name of a canary that has already been created.
UpdateCanaryRequest.Builder code(CanaryCodeInput code)
A structure that includes the entry point from which the canary should start running your script. If the script is stored in an S3 bucket, the bucket name, key, and version are also included.
code - A structure that includes the entry point from which the canary should start running your script. If
the script is stored in an S3 bucket, the bucket name, key, and version are also included.default UpdateCanaryRequest.Builder code(Consumer<CanaryCodeInput.Builder> code)
A structure that includes the entry point from which the canary should start running your script. If the script is stored in an S3 bucket, the bucket name, key, and version are also included.
This is a convenience that creates an instance of theCanaryCodeInput.Builder avoiding the need to
create one manually via CanaryCodeInput.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its
result is passed to code(CanaryCodeInput).code - a consumer that will call methods on CanaryCodeInput.Buildercode(CanaryCodeInput)UpdateCanaryRequest.Builder executionRoleArn(String executionRoleArn)
The ARN of the IAM role to be used to run the canary. 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:PutObject
s3:GetBucketLocation
s3:ListAllMyBuckets
cloudwatch:PutMetricData
logs:CreateLogGroup
logs:CreateLogStream
logs:CreateLogStream
executionRoleArn - The ARN of the IAM role to be used to run the canary. 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:PutObject
s3:GetBucketLocation
s3:ListAllMyBuckets
cloudwatch:PutMetricData
logs:CreateLogGroup
logs:CreateLogStream
logs:CreateLogStream
UpdateCanaryRequest.Builder runtimeVersion(String runtimeVersion)
Specifies the runtime version to use for the canary. For a list of valid runtime versions and for more information about runtime versions, see Canary Runtime Versions.
runtimeVersion - Specifies the runtime version to use for the canary. For a list of valid runtime versions and for more
information about runtime versions, see Canary Runtime Versions.UpdateCanaryRequest.Builder schedule(CanaryScheduleInput 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 UpdateCanaryRequest.Builder schedule(Consumer<CanaryScheduleInput.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 theCanaryScheduleInput.Builder avoiding the need
to create one manually via CanaryScheduleInput.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and
its result is passed to schedule(CanaryScheduleInput).schedule - a consumer that will call methods on CanaryScheduleInput.Builderschedule(CanaryScheduleInput)UpdateCanaryRequest.Builder runConfig(CanaryRunConfigInput runConfig)
A structure that contains the timeout value that is used for each individual run of the canary.
runConfig - A structure that contains the timeout value that is used for each individual run of the canary.default UpdateCanaryRequest.Builder runConfig(Consumer<CanaryRunConfigInput.Builder> runConfig)
A structure that contains the timeout value that is used for each individual run of the canary.
This is a convenience that creates an instance of theCanaryRunConfigInput.Builder avoiding the need
to create one manually via CanaryRunConfigInput.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and
its result is passed to runConfig(CanaryRunConfigInput).runConfig - a consumer that will call methods on CanaryRunConfigInput.BuilderrunConfig(CanaryRunConfigInput)UpdateCanaryRequest.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.UpdateCanaryRequest.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.UpdateCanaryRequest.Builder vpcConfig(VpcConfigInput vpcConfig)
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. For more information, see Running a Canary in a VPC.
vpcConfig - 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. For more information, see Running a Canary in a VPC.default UpdateCanaryRequest.Builder vpcConfig(Consumer<VpcConfigInput.Builder> vpcConfig)
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. For more information, see Running a Canary in a VPC.
This is a convenience that creates an instance of theVpcConfigInput.Builder avoiding the need to
create one manually via VpcConfigInput.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its
result is passed to vpcConfig(VpcConfigInput).vpcConfig - a consumer that will call methods on VpcConfigInput.BuildervpcConfig(VpcConfigInput)UpdateCanaryRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
overrideConfiguration in interface AwsRequest.BuilderUpdateCanaryRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
overrideConfiguration in interface AwsRequest.BuilderCopyright © 2021. All rights reserved.