Class CfnCanary.ReplicaProperty.Builder
java.lang.Object
software.amazon.awscdk.services.synthetics.CfnCanary.ReplicaProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCanary.ReplicaProperty>
- Enclosing interface:
CfnCanary.ReplicaProperty
@Stability(Stable)
public static final class CfnCanary.ReplicaProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCanary.ReplicaProperty>
A builder for
CfnCanary.ReplicaProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.canaryState(String canaryState) Sets the value ofCfnCanary.ReplicaProperty.getCanaryState()Sets the value ofCfnCanary.ReplicaProperty.getKmsKeyArn()lastModified(Number lastModified) Sets the value ofCfnCanary.ReplicaProperty.getLastModified()Sets the value ofCfnCanary.ReplicaProperty.getLocation()replicationStatus(IResolvable replicationStatus) Sets the value ofCfnCanary.ReplicaProperty.getReplicationStatus()replicationStatus(CfnCanary.ReplicaReplicationStatusProperty replicationStatus) Sets the value ofCfnCanary.ReplicaProperty.getReplicationStatus()resourcesToReplicateTags(List<String> resourcesToReplicateTags) Sets the value ofCfnCanary.ReplicaProperty.getResourcesToReplicateTags()Sets the value ofCfnCanary.ReplicaProperty.getTags()vpcConfig(IResolvable vpcConfig) Sets the value ofCfnCanary.ReplicaProperty.getVpcConfig()vpcConfig(CfnCanary.VPCConfigProperty vpcConfig) Sets the value ofCfnCanary.ReplicaProperty.getVpcConfig()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
location
Sets the value ofCfnCanary.ReplicaProperty.getLocation()- Parameters:
location- AWS region for the replica (e.g., us-east-1). This parameter is required.- Returns:
this
-
canaryState
Sets the value ofCfnCanary.ReplicaProperty.getCanaryState()- Parameters:
canaryState- State of the replica canary (CREATING, READY, RUNNING, etc.).- Returns:
this
-
kmsKeyArn
Sets the value ofCfnCanary.ReplicaProperty.getKmsKeyArn()- Parameters:
kmsKeyArn- ARN of the KMS key used to encrypt the replica canary's Lambda function environment variables.- Returns:
this
-
lastModified
Sets the value ofCfnCanary.ReplicaProperty.getLastModified()- Parameters:
lastModified- Last modified timestamp of the replica.- Returns:
this
-
replicationStatus
@Stability(Stable) public CfnCanary.ReplicaProperty.Builder replicationStatus(IResolvable replicationStatus) Sets the value ofCfnCanary.ReplicaProperty.getReplicationStatus()- Parameters:
replicationStatus- Replication status details.- Returns:
this
-
replicationStatus
@Stability(Stable) public CfnCanary.ReplicaProperty.Builder replicationStatus(CfnCanary.ReplicaReplicationStatusProperty replicationStatus) Sets the value ofCfnCanary.ReplicaProperty.getReplicationStatus()- Parameters:
replicationStatus- Replication status details.- Returns:
this
-
resourcesToReplicateTags
@Stability(Stable) public CfnCanary.ReplicaProperty.Builder resourcesToReplicateTags(List<String> resourcesToReplicateTags) Sets the value ofCfnCanary.ReplicaProperty.getResourcesToReplicateTags()- Parameters:
resourcesToReplicateTags- Resources to replicate tags to for this replica (e.g., lambda-function).- Returns:
this
-
tags
Sets the value ofCfnCanary.ReplicaProperty.getTags()- Parameters:
tags- Tags to apply to this replica canary and optionally its Lambda function.- Returns:
this
-
vpcConfig
Sets the value ofCfnCanary.ReplicaProperty.getVpcConfig()- Parameters:
vpcConfig- the value to be set.- Returns:
this
-
vpcConfig
@Stability(Stable) public CfnCanary.ReplicaProperty.Builder vpcConfig(CfnCanary.VPCConfigProperty vpcConfig) Sets the value ofCfnCanary.ReplicaProperty.getVpcConfig()- Parameters:
vpcConfig- the value to be set.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnCanary.ReplicaProperty>- Returns:
- a new instance of
CfnCanary.ReplicaProperty - Throws:
NullPointerException- if any required attribute was not provided
-