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