Interface StartCanaryDryRunRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<StartCanaryDryRunRequest.Builder,
,StartCanaryDryRunRequest> SdkBuilder<StartCanaryDryRunRequest.Builder,
,StartCanaryDryRunRequest> SdkPojo
,SdkRequest.Builder
,SyntheticsRequest.Builder
- Enclosing class:
StartCanaryDryRunRequest
-
Method Summary
Modifier and TypeMethodDescriptiondefault StartCanaryDryRunRequest.Builder
artifactConfig
(Consumer<ArtifactConfigInput.Builder> artifactConfig) Sets the value of the ArtifactConfig property for this object.artifactConfig
(ArtifactConfigInput artifactConfig) Sets the value of the ArtifactConfig property for this object.artifactS3Location
(String artifactS3Location) The location in Amazon S3 where Synthetics stores artifacts from the test runs of this canary.default StartCanaryDryRunRequest.Builder
code
(Consumer<CanaryCodeInput.Builder> code) Sets the value of the Code property for this object.code
(CanaryCodeInput code) Sets the value of the Code property for this object.executionRoleArn
(String executionRoleArn) The ARN of the IAM role to be used to run the canary.failureRetentionPeriodInDays
(Integer failureRetentionPeriodInDays) The number of days to retain data about failed runs of this canary.The name of the canary that you want to dry run.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.provisionedResourceCleanup
(String provisionedResourceCleanup) Specifies whether to also delete the Lambda functions and layers used by this canary when the canary is deleted.provisionedResourceCleanup
(ProvisionedResourceCleanupSetting provisionedResourceCleanup) Specifies whether to also delete the Lambda functions and layers used by this canary when the canary is deleted.default StartCanaryDryRunRequest.Builder
runConfig
(Consumer<CanaryRunConfigInput.Builder> runConfig) Sets the value of the RunConfig property for this object.runConfig
(CanaryRunConfigInput runConfig) Sets the value of the RunConfig property for this object.runtimeVersion
(String runtimeVersion) Specifies the runtime version to use for the canary.successRetentionPeriodInDays
(Integer successRetentionPeriodInDays) The number of days to retain data about successful runs of this canary.default StartCanaryDryRunRequest.Builder
visualReference
(Consumer<VisualReferenceInput.Builder> visualReference) Sets the value of the VisualReference property for this object.visualReference
(VisualReferenceInput visualReference) Sets the value of the VisualReference property for this object.default StartCanaryDryRunRequest.Builder
vpcConfig
(Consumer<VpcConfigInput.Builder> vpcConfig) Sets the value of the VpcConfig property for this object.vpcConfig
(VpcConfigInput vpcConfig) Sets the value of the VpcConfig property for this object.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
Methods inherited from interface software.amazon.awssdk.services.synthetics.model.SyntheticsRequest.Builder
build
-
Method Details
-
name
The name of the canary that you want to dry run. To find canary names, use DescribeCanaries.
- Parameters:
name
- The name of the canary that you want to dry run. To find canary names, use DescribeCanaries.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
code
Sets the value of the Code property for this object.- Parameters:
code
- The new value for the Code property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
code
Sets the value of the Code property for this object. This is a convenience method that creates an instance of theCanaryCodeInput.Builder
avoiding the need to create one manually viaCanaryCodeInput.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocode(CanaryCodeInput)
.- Parameters:
code
- a consumer that will call methods onCanaryCodeInput.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
runConfig
Sets the value of the RunConfig property for this object.- Parameters:
runConfig
- The new value for the RunConfig property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
runConfig
default StartCanaryDryRunRequest.Builder runConfig(Consumer<CanaryRunConfigInput.Builder> runConfig) Sets the value of the RunConfig property for this object. This is a convenience method that creates an instance of theCanaryRunConfigInput.Builder
avoiding the need to create one manually viaCanaryRunConfigInput.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed torunConfig(CanaryRunConfigInput)
.- Parameters:
runConfig
- a consumer that will call methods onCanaryRunConfigInput.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
vpcConfig
Sets the value of the VpcConfig property for this object.- Parameters:
vpcConfig
- The new value for the VpcConfig property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
vpcConfig
Sets the value of the VpcConfig property for this object. This is a convenience method that creates an instance of theVpcConfigInput.Builder
avoiding the need to create one manually viaVpcConfigInput.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tovpcConfig(VpcConfigInput)
.- Parameters:
vpcConfig
- a consumer that will call methods onVpcConfigInput.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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:- Parameters:
executionRoleArn
- The ARN of the IAM role to be used to run the canary. This role must already exist, and must includelambda.amazonaws.com
as a principal in the trust policy. The role must also have the following permissions:- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
successRetentionPeriodInDays
The number of days to retain data about successful runs of this canary. If you omit this field, the default of 31 days is used. The valid range is 1 to 455 days.
This setting affects the range of information returned by GetCanaryRuns, as well as the range of information displayed in the Synthetics console.
- Parameters:
successRetentionPeriodInDays
- The number of days to retain data about successful runs of this canary. If you omit this field, the default of 31 days is used. The valid range is 1 to 455 days.This setting affects the range of information returned by GetCanaryRuns, as well as the range of information displayed in the Synthetics console.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
failureRetentionPeriodInDays
The number of days to retain data about failed runs of this canary. If you omit this field, the default of 31 days is used. The valid range is 1 to 455 days.
This setting affects the range of information returned by GetCanaryRuns, as well as the range of information displayed in the Synthetics console.
- Parameters:
failureRetentionPeriodInDays
- The number of days to retain data about failed runs of this canary. If you omit this field, the default of 31 days is used. The valid range is 1 to 455 days.This setting affects the range of information returned by GetCanaryRuns, as well as the range of information displayed in the Synthetics console.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
visualReference
Sets the value of the VisualReference property for this object.- Parameters:
visualReference
- The new value for the VisualReference property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
visualReference
default StartCanaryDryRunRequest.Builder visualReference(Consumer<VisualReferenceInput.Builder> visualReference) Sets the value of the VisualReference property for this object. This is a convenience method that creates an instance of theVisualReferenceInput.Builder
avoiding the need to create one manually viaVisualReferenceInput.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tovisualReference(VisualReferenceInput)
.- Parameters:
visualReference
- a consumer that will call methods onVisualReferenceInput.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
artifactS3Location
The location in Amazon S3 where Synthetics stores artifacts from the test runs of this canary. Artifacts include the log file, screenshots, and HAR files. The name of the Amazon S3 bucket can't include a period (.).
- Parameters:
artifactS3Location
- The location in Amazon S3 where Synthetics stores artifacts from the test runs of this canary. Artifacts include the log file, screenshots, and HAR files. The name of the Amazon S3 bucket can't include a period (.).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
artifactConfig
Sets the value of the ArtifactConfig property for this object.- Parameters:
artifactConfig
- The new value for the ArtifactConfig property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
artifactConfig
default StartCanaryDryRunRequest.Builder artifactConfig(Consumer<ArtifactConfigInput.Builder> artifactConfig) Sets the value of the ArtifactConfig property for this object. This is a convenience method that creates an instance of theArtifactConfigInput.Builder
avoiding the need to create one manually viaArtifactConfigInput.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toartifactConfig(ArtifactConfigInput)
.- Parameters:
artifactConfig
- a consumer that will call methods onArtifactConfigInput.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
provisionedResourceCleanup
Specifies whether to also delete the Lambda functions and layers used by this canary when the canary is deleted. If you omit this parameter, the default of
AUTOMATIC
is used, which means that the Lambda functions and layers will be deleted when the canary is deleted.If the value of this parameter is
OFF
, then the value of theDeleteLambda
parameter of the DeleteCanary operation determines whether the Lambda functions and layers will be deleted.- Parameters:
provisionedResourceCleanup
- Specifies whether to also delete the Lambda functions and layers used by this canary when the canary is deleted. If you omit this parameter, the default ofAUTOMATIC
is used, which means that the Lambda functions and layers will be deleted when the canary is deleted.If the value of this parameter is
OFF
, then the value of theDeleteLambda
parameter of the DeleteCanary operation determines whether the Lambda functions and layers will be deleted.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
provisionedResourceCleanup
StartCanaryDryRunRequest.Builder provisionedResourceCleanup(ProvisionedResourceCleanupSetting provisionedResourceCleanup) Specifies whether to also delete the Lambda functions and layers used by this canary when the canary is deleted. If you omit this parameter, the default of
AUTOMATIC
is used, which means that the Lambda functions and layers will be deleted when the canary is deleted.If the value of this parameter is
OFF
, then the value of theDeleteLambda
parameter of the DeleteCanary operation determines whether the Lambda functions and layers will be deleted.- Parameters:
provisionedResourceCleanup
- Specifies whether to also delete the Lambda functions and layers used by this canary when the canary is deleted. If you omit this parameter, the default ofAUTOMATIC
is used, which means that the Lambda functions and layers will be deleted when the canary is deleted.If the value of this parameter is
OFF
, then the value of theDeleteLambda
parameter of the DeleteCanary operation determines whether the Lambda functions and layers will be deleted.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
StartCanaryDryRunRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
StartCanaryDryRunRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-