Class ClusterState.Builder
- java.lang.Object
-
- com.pulumi.aws.elasticache.inputs.ClusterState.Builder
-
- Enclosing class:
- ClusterState
public static final class ClusterState.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()Builder(ClusterState defaults)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClusterState.BuilderapplyImmediately(com.pulumi.core.Output<java.lang.Boolean> applyImmediately)ClusterState.BuilderapplyImmediately(java.lang.Boolean applyImmediately)ClusterState.Builderarn(com.pulumi.core.Output<java.lang.String> arn)ClusterState.Builderarn(java.lang.String arn)ClusterState.BuilderautoMinorVersionUpgrade(com.pulumi.core.Output<java.lang.String> autoMinorVersionUpgrade)ClusterState.BuilderautoMinorVersionUpgrade(java.lang.String autoMinorVersionUpgrade)ClusterState.BuilderavailabilityZone(com.pulumi.core.Output<java.lang.String> availabilityZone)ClusterState.BuilderavailabilityZone(java.lang.String availabilityZone)ClusterState.BuilderazMode(com.pulumi.core.Output<java.lang.String> azMode)ClusterState.BuilderazMode(java.lang.String azMode)ClusterStatebuild()ClusterState.BuildercacheNodes(ClusterCacheNodeArgs... cacheNodes)ClusterState.BuildercacheNodes(com.pulumi.core.Output<java.util.List<ClusterCacheNodeArgs>> cacheNodes)ClusterState.BuildercacheNodes(java.util.List<ClusterCacheNodeArgs> cacheNodes)ClusterState.BuilderclusterAddress(com.pulumi.core.Output<java.lang.String> clusterAddress)ClusterState.BuilderclusterAddress(java.lang.String clusterAddress)ClusterState.BuilderclusterId(com.pulumi.core.Output<java.lang.String> clusterId)ClusterState.BuilderclusterId(java.lang.String clusterId)ClusterState.BuilderconfigurationEndpoint(com.pulumi.core.Output<java.lang.String> configurationEndpoint)ClusterState.BuilderconfigurationEndpoint(java.lang.String configurationEndpoint)ClusterState.Builderengine(com.pulumi.core.Output<java.lang.String> engine)ClusterState.Builderengine(java.lang.String engine)ClusterState.BuilderengineVersion(com.pulumi.core.Output<java.lang.String> engineVersion)ClusterState.BuilderengineVersion(java.lang.String engineVersion)ClusterState.BuilderengineVersionActual(com.pulumi.core.Output<java.lang.String> engineVersionActual)ClusterState.BuilderengineVersionActual(java.lang.String engineVersionActual)ClusterState.BuilderfinalSnapshotIdentifier(com.pulumi.core.Output<java.lang.String> finalSnapshotIdentifier)ClusterState.BuilderfinalSnapshotIdentifier(java.lang.String finalSnapshotIdentifier)ClusterState.BuilderipDiscovery(com.pulumi.core.Output<java.lang.String> ipDiscovery)ClusterState.BuilderipDiscovery(java.lang.String ipDiscovery)ClusterState.BuilderlogDeliveryConfigurations(ClusterLogDeliveryConfigurationArgs... logDeliveryConfigurations)ClusterState.BuilderlogDeliveryConfigurations(com.pulumi.core.Output<java.util.List<ClusterLogDeliveryConfigurationArgs>> logDeliveryConfigurations)ClusterState.BuilderlogDeliveryConfigurations(java.util.List<ClusterLogDeliveryConfigurationArgs> logDeliveryConfigurations)ClusterState.BuildermaintenanceWindow(com.pulumi.core.Output<java.lang.String> maintenanceWindow)ClusterState.BuildermaintenanceWindow(java.lang.String maintenanceWindow)ClusterState.BuildernetworkType(com.pulumi.core.Output<java.lang.String> networkType)ClusterState.BuildernetworkType(java.lang.String networkType)ClusterState.BuildernodeType(com.pulumi.core.Output<java.lang.String> nodeType)ClusterState.BuildernodeType(java.lang.String nodeType)ClusterState.BuildernotificationTopicArn(com.pulumi.core.Output<java.lang.String> notificationTopicArn)ClusterState.BuildernotificationTopicArn(java.lang.String notificationTopicArn)ClusterState.BuildernumCacheNodes(com.pulumi.core.Output<java.lang.Integer> numCacheNodes)ClusterState.BuildernumCacheNodes(java.lang.Integer numCacheNodes)ClusterState.BuilderoutpostMode(com.pulumi.core.Output<java.lang.String> outpostMode)ClusterState.BuilderoutpostMode(java.lang.String outpostMode)ClusterState.BuilderparameterGroupName(com.pulumi.core.Output<java.lang.String> parameterGroupName)ClusterState.BuilderparameterGroupName(java.lang.String parameterGroupName)ClusterState.Builderport(com.pulumi.core.Output<java.lang.Integer> port)ClusterState.Builderport(java.lang.Integer port)ClusterState.BuilderpreferredAvailabilityZones(com.pulumi.core.Output<java.util.List<java.lang.String>> preferredAvailabilityZones)ClusterState.BuilderpreferredAvailabilityZones(java.lang.String... preferredAvailabilityZones)ClusterState.BuilderpreferredAvailabilityZones(java.util.List<java.lang.String> preferredAvailabilityZones)ClusterState.BuilderpreferredOutpostArn(com.pulumi.core.Output<java.lang.String> preferredOutpostArn)ClusterState.BuilderpreferredOutpostArn(java.lang.String preferredOutpostArn)ClusterState.Builderregion(com.pulumi.core.Output<java.lang.String> region)ClusterState.Builderregion(java.lang.String region)ClusterState.BuilderreplicationGroupId(com.pulumi.core.Output<java.lang.String> replicationGroupId)ClusterState.BuilderreplicationGroupId(java.lang.String replicationGroupId)ClusterState.BuildersecurityGroupIds(com.pulumi.core.Output<java.util.List<java.lang.String>> securityGroupIds)ClusterState.BuildersecurityGroupIds(java.lang.String... securityGroupIds)ClusterState.BuildersecurityGroupIds(java.util.List<java.lang.String> securityGroupIds)ClusterState.BuildersnapshotArns(com.pulumi.core.Output<java.lang.String> snapshotArns)ClusterState.BuildersnapshotArns(java.lang.String snapshotArns)ClusterState.BuildersnapshotName(com.pulumi.core.Output<java.lang.String> snapshotName)ClusterState.BuildersnapshotName(java.lang.String snapshotName)ClusterState.BuildersnapshotRetentionLimit(com.pulumi.core.Output<java.lang.Integer> snapshotRetentionLimit)ClusterState.BuildersnapshotRetentionLimit(java.lang.Integer snapshotRetentionLimit)ClusterState.BuildersnapshotWindow(com.pulumi.core.Output<java.lang.String> snapshotWindow)ClusterState.BuildersnapshotWindow(java.lang.String snapshotWindow)ClusterState.BuildersubnetGroupName(com.pulumi.core.Output<java.lang.String> subnetGroupName)ClusterState.BuildersubnetGroupName(java.lang.String subnetGroupName)ClusterState.Buildertags(com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>> tags)ClusterState.Buildertags(java.util.Map<java.lang.String,java.lang.String> tags)ClusterState.BuildertagsAll(com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>> tagsAll)ClusterState.BuildertagsAll(java.util.Map<java.lang.String,java.lang.String> tagsAll)ClusterState.BuildertransitEncryptionEnabled(com.pulumi.core.Output<java.lang.Boolean> transitEncryptionEnabled)ClusterState.BuildertransitEncryptionEnabled(java.lang.Boolean transitEncryptionEnabled)
-
-
-
Constructor Detail
-
Builder
public Builder()
-
Builder
public Builder(ClusterState defaults)
-
-
Method Detail
-
applyImmediately
public ClusterState.Builder applyImmediately(@Nullable com.pulumi.core.Output<java.lang.Boolean> applyImmediately)
- Parameters:
applyImmediately- Whether any database modifications are applied immediately, or during the next maintenance window. Default is `false`. See [Amazon ElastiCache Documentation for more information](https://docs.aws.amazon.com/AmazonElastiCache/latest/APIReference/API_ModifyCacheCluster.html).- Returns:
- builder
-
applyImmediately
public ClusterState.Builder applyImmediately(java.lang.Boolean applyImmediately)
- Parameters:
applyImmediately- Whether any database modifications are applied immediately, or during the next maintenance window. Default is `false`. See [Amazon ElastiCache Documentation for more information](https://docs.aws.amazon.com/AmazonElastiCache/latest/APIReference/API_ModifyCacheCluster.html).- Returns:
- builder
-
arn
public ClusterState.Builder arn(@Nullable com.pulumi.core.Output<java.lang.String> arn)
- Parameters:
arn- The ARN of the created ElastiCache Cluster.- Returns:
- builder
-
arn
public ClusterState.Builder arn(java.lang.String arn)
- Parameters:
arn- The ARN of the created ElastiCache Cluster.- Returns:
- builder
-
autoMinorVersionUpgrade
public ClusterState.Builder autoMinorVersionUpgrade(@Nullable com.pulumi.core.Output<java.lang.String> autoMinorVersionUpgrade)
- Parameters:
autoMinorVersionUpgrade- Specifies whether minor version engine upgrades will be applied automatically to the underlying Cache Cluster instances during the maintenance window. Only supported for engine type `"redis"` and if the engine version is 6 or higher. Defaults to `true`.- Returns:
- builder
-
autoMinorVersionUpgrade
public ClusterState.Builder autoMinorVersionUpgrade(java.lang.String autoMinorVersionUpgrade)
- Parameters:
autoMinorVersionUpgrade- Specifies whether minor version engine upgrades will be applied automatically to the underlying Cache Cluster instances during the maintenance window. Only supported for engine type `"redis"` and if the engine version is 6 or higher. Defaults to `true`.- Returns:
- builder
-
availabilityZone
public ClusterState.Builder availabilityZone(@Nullable com.pulumi.core.Output<java.lang.String> availabilityZone)
- Parameters:
availabilityZone- Availability Zone for the cache cluster. If you want to create cache nodes in multi-az, use `preferredAvailabilityZones` instead. Default: System chosen Availability Zone. Changing this value will re-create the resource.- Returns:
- builder
-
availabilityZone
public ClusterState.Builder availabilityZone(java.lang.String availabilityZone)
- Parameters:
availabilityZone- Availability Zone for the cache cluster. If you want to create cache nodes in multi-az, use `preferredAvailabilityZones` instead. Default: System chosen Availability Zone. Changing this value will re-create the resource.- Returns:
- builder
-
azMode
public ClusterState.Builder azMode(@Nullable com.pulumi.core.Output<java.lang.String> azMode)
- Parameters:
azMode- Whether the nodes in this Memcached node group are created in a single Availability Zone or created across multiple Availability Zones in the cluster's region. Valid values for this parameter are `single-az` or `cross-az`, default is `single-az`. If you want to choose `cross-az`, `numCacheNodes` must be greater than `1`.- Returns:
- builder
-
azMode
public ClusterState.Builder azMode(java.lang.String azMode)
- Parameters:
azMode- Whether the nodes in this Memcached node group are created in a single Availability Zone or created across multiple Availability Zones in the cluster's region. Valid values for this parameter are `single-az` or `cross-az`, default is `single-az`. If you want to choose `cross-az`, `numCacheNodes` must be greater than `1`.- Returns:
- builder
-
cacheNodes
public ClusterState.Builder cacheNodes(@Nullable com.pulumi.core.Output<java.util.List<ClusterCacheNodeArgs>> cacheNodes)
- Parameters:
cacheNodes- List of node objects including `id`, `address`, `port` and `availabilityZone`.- Returns:
- builder
-
cacheNodes
public ClusterState.Builder cacheNodes(java.util.List<ClusterCacheNodeArgs> cacheNodes)
- Parameters:
cacheNodes- List of node objects including `id`, `address`, `port` and `availabilityZone`.- Returns:
- builder
-
cacheNodes
public ClusterState.Builder cacheNodes(ClusterCacheNodeArgs... cacheNodes)
- Parameters:
cacheNodes- List of node objects including `id`, `address`, `port` and `availabilityZone`.- Returns:
- builder
-
clusterAddress
public ClusterState.Builder clusterAddress(@Nullable com.pulumi.core.Output<java.lang.String> clusterAddress)
- Parameters:
clusterAddress- (Memcached only) DNS name of the cache cluster without the port appended.- Returns:
- builder
-
clusterAddress
public ClusterState.Builder clusterAddress(java.lang.String clusterAddress)
- Parameters:
clusterAddress- (Memcached only) DNS name of the cache cluster without the port appended.- Returns:
- builder
-
clusterId
public ClusterState.Builder clusterId(@Nullable com.pulumi.core.Output<java.lang.String> clusterId)
- Parameters:
clusterId- Group identifier. ElastiCache converts this name to lowercase. Changing this value will re-create the resource.- Returns:
- builder
-
clusterId
public ClusterState.Builder clusterId(java.lang.String clusterId)
- Parameters:
clusterId- Group identifier. ElastiCache converts this name to lowercase. Changing this value will re-create the resource.- Returns:
- builder
-
configurationEndpoint
public ClusterState.Builder configurationEndpoint(@Nullable com.pulumi.core.Output<java.lang.String> configurationEndpoint)
- Parameters:
configurationEndpoint- (Memcached only) Configuration endpoint to allow host discovery.- Returns:
- builder
-
configurationEndpoint
public ClusterState.Builder configurationEndpoint(java.lang.String configurationEndpoint)
- Parameters:
configurationEndpoint- (Memcached only) Configuration endpoint to allow host discovery.- Returns:
- builder
-
engine
public ClusterState.Builder engine(@Nullable com.pulumi.core.Output<java.lang.String> engine)
- Parameters:
engine- Name of the cache engine to be used for this cache cluster. Valid values are `memcached`, `redis`.- Returns:
- builder
-
engine
public ClusterState.Builder engine(java.lang.String engine)
- Parameters:
engine- Name of the cache engine to be used for this cache cluster. Valid values are `memcached`, `redis`.- Returns:
- builder
-
engineVersion
public ClusterState.Builder engineVersion(@Nullable com.pulumi.core.Output<java.lang.String> engineVersion)
- Parameters:
engineVersion- Version number of the cache engine to be used. If not set, defaults to the latest version. See [Describe Cache Engine Versions](https://docs.aws.amazon.com/cli/latest/reference/elasticache/describe-cache-engine-versions.html) in the AWS Documentation for supported versions. When `engine` is `redis` and the version is 7 or higher, the major and minor version should be set, e.g., `7.2`. When the version is 6, the major and minor version can be set, e.g., `6.2`, or the minor version can be unspecified which will use the latest version at creation time, e.g., `6.x`. Otherwise, specify the full version desired, e.g., `5.0.6`. The actual engine version used is returned in the attribute `engineVersionActual`, see Attribute Reference below. Cannot be provided with `replication_group_id.`- Returns:
- builder
-
engineVersion
public ClusterState.Builder engineVersion(java.lang.String engineVersion)
- Parameters:
engineVersion- Version number of the cache engine to be used. If not set, defaults to the latest version. See [Describe Cache Engine Versions](https://docs.aws.amazon.com/cli/latest/reference/elasticache/describe-cache-engine-versions.html) in the AWS Documentation for supported versions. When `engine` is `redis` and the version is 7 or higher, the major and minor version should be set, e.g., `7.2`. When the version is 6, the major and minor version can be set, e.g., `6.2`, or the minor version can be unspecified which will use the latest version at creation time, e.g., `6.x`. Otherwise, specify the full version desired, e.g., `5.0.6`. The actual engine version used is returned in the attribute `engineVersionActual`, see Attribute Reference below. Cannot be provided with `replication_group_id.`- Returns:
- builder
-
engineVersionActual
public ClusterState.Builder engineVersionActual(@Nullable com.pulumi.core.Output<java.lang.String> engineVersionActual)
- Parameters:
engineVersionActual- Because ElastiCache pulls the latest minor or patch for a version, this attribute returns the running version of the cache engine.- Returns:
- builder
-
engineVersionActual
public ClusterState.Builder engineVersionActual(java.lang.String engineVersionActual)
- Parameters:
engineVersionActual- Because ElastiCache pulls the latest minor or patch for a version, this attribute returns the running version of the cache engine.- Returns:
- builder
-
finalSnapshotIdentifier
public ClusterState.Builder finalSnapshotIdentifier(@Nullable com.pulumi.core.Output<java.lang.String> finalSnapshotIdentifier)
- Parameters:
finalSnapshotIdentifier- Name of your final cluster snapshot. If omitted, no final snapshot will be made.- Returns:
- builder
-
finalSnapshotIdentifier
public ClusterState.Builder finalSnapshotIdentifier(java.lang.String finalSnapshotIdentifier)
- Parameters:
finalSnapshotIdentifier- Name of your final cluster snapshot. If omitted, no final snapshot will be made.- Returns:
- builder
-
ipDiscovery
public ClusterState.Builder ipDiscovery(@Nullable com.pulumi.core.Output<java.lang.String> ipDiscovery)
- Parameters:
ipDiscovery- The IP version to advertise in the discovery protocol. Valid values are `ipv4` or `ipv6`.- Returns:
- builder
-
ipDiscovery
public ClusterState.Builder ipDiscovery(java.lang.String ipDiscovery)
- Parameters:
ipDiscovery- The IP version to advertise in the discovery protocol. Valid values are `ipv4` or `ipv6`.- Returns:
- builder
-
logDeliveryConfigurations
public ClusterState.Builder logDeliveryConfigurations(@Nullable com.pulumi.core.Output<java.util.List<ClusterLogDeliveryConfigurationArgs>> logDeliveryConfigurations)
- Parameters:
logDeliveryConfigurations- Specifies the destination and format of Redis [SLOWLOG](https://redis.io/commands/slowlog) or Redis [Engine Log](https://docs.aws.amazon.com/AmazonElastiCache/latest/dg/Log_Delivery.html#Log_contents-engine-log). See the documentation on [Amazon ElastiCache](https://docs.aws.amazon.com/AmazonElastiCache/latest/dg/Log_Delivery.html). See Log Delivery Configuration below for more details.- Returns:
- builder
-
logDeliveryConfigurations
public ClusterState.Builder logDeliveryConfigurations(java.util.List<ClusterLogDeliveryConfigurationArgs> logDeliveryConfigurations)
- Parameters:
logDeliveryConfigurations- Specifies the destination and format of Redis [SLOWLOG](https://redis.io/commands/slowlog) or Redis [Engine Log](https://docs.aws.amazon.com/AmazonElastiCache/latest/dg/Log_Delivery.html#Log_contents-engine-log). See the documentation on [Amazon ElastiCache](https://docs.aws.amazon.com/AmazonElastiCache/latest/dg/Log_Delivery.html). See Log Delivery Configuration below for more details.- Returns:
- builder
-
logDeliveryConfigurations
public ClusterState.Builder logDeliveryConfigurations(ClusterLogDeliveryConfigurationArgs... logDeliveryConfigurations)
- Parameters:
logDeliveryConfigurations- Specifies the destination and format of Redis [SLOWLOG](https://redis.io/commands/slowlog) or Redis [Engine Log](https://docs.aws.amazon.com/AmazonElastiCache/latest/dg/Log_Delivery.html#Log_contents-engine-log). See the documentation on [Amazon ElastiCache](https://docs.aws.amazon.com/AmazonElastiCache/latest/dg/Log_Delivery.html). See Log Delivery Configuration below for more details.- Returns:
- builder
-
maintenanceWindow
public ClusterState.Builder maintenanceWindow(@Nullable com.pulumi.core.Output<java.lang.String> maintenanceWindow)
- Parameters:
maintenanceWindow- Specifies the weekly time range for when maintenance on the cache cluster is performed. The format is `ddd:hh24:mi-ddd:hh24:mi` (24H Clock UTC). The minimum maintenance window is a 60 minute period. Example: `sun:05:00-sun:09:00`.- Returns:
- builder
-
maintenanceWindow
public ClusterState.Builder maintenanceWindow(java.lang.String maintenanceWindow)
- Parameters:
maintenanceWindow- Specifies the weekly time range for when maintenance on the cache cluster is performed. The format is `ddd:hh24:mi-ddd:hh24:mi` (24H Clock UTC). The minimum maintenance window is a 60 minute period. Example: `sun:05:00-sun:09:00`.- Returns:
- builder
-
networkType
public ClusterState.Builder networkType(@Nullable com.pulumi.core.Output<java.lang.String> networkType)
- Parameters:
networkType- The IP versions for cache cluster connections. IPv6 is supported with Redis engine `6.2` onword or Memcached version `1.6.6` for all [Nitro system](https://aws.amazon.com/ec2/nitro/) instances. Valid values are `ipv4`, `ipv6` or `dualStack`.- Returns:
- builder
-
networkType
public ClusterState.Builder networkType(java.lang.String networkType)
- Parameters:
networkType- The IP versions for cache cluster connections. IPv6 is supported with Redis engine `6.2` onword or Memcached version `1.6.6` for all [Nitro system](https://aws.amazon.com/ec2/nitro/) instances. Valid values are `ipv4`, `ipv6` or `dualStack`.- Returns:
- builder
-
nodeType
public ClusterState.Builder nodeType(@Nullable com.pulumi.core.Output<java.lang.String> nodeType)
- Parameters:
nodeType- The instance class used. See AWS documentation for information on [supported node types for Redis OSS](https://docs.aws.amazon.com/AmazonElastiCache/latest/dg/CacheNodes.SupportedTypes.html#CacheNodes.CurrentGen) and [guidance on selecting node types for Redis OSS](https://docs.aws.amazon.com/AmazonElastiCache/latest/dg/CacheNodes.SelectSize.html#CacheNodes.SelectSize.redis). See AWS documentation for information on [supported node types for Memcached](https://docs.aws.amazon.com/AmazonElastiCache/latest/dg/CacheNodes.SupportedTypes.html#CacheNodes.CurrentGen-Memcached) and [guidance on selecting node types for Memcached](https://docs.aws.amazon.com/AmazonElastiCache/latest/dg/CacheNodes.SelectSize.html#CacheNodes.SelectSize.Mem). For Memcached, changing this value will re-create the resource.- Returns:
- builder
-
nodeType
public ClusterState.Builder nodeType(java.lang.String nodeType)
- Parameters:
nodeType- The instance class used. See AWS documentation for information on [supported node types for Redis OSS](https://docs.aws.amazon.com/AmazonElastiCache/latest/dg/CacheNodes.SupportedTypes.html#CacheNodes.CurrentGen) and [guidance on selecting node types for Redis OSS](https://docs.aws.amazon.com/AmazonElastiCache/latest/dg/CacheNodes.SelectSize.html#CacheNodes.SelectSize.redis). See AWS documentation for information on [supported node types for Memcached](https://docs.aws.amazon.com/AmazonElastiCache/latest/dg/CacheNodes.SupportedTypes.html#CacheNodes.CurrentGen-Memcached) and [guidance on selecting node types for Memcached](https://docs.aws.amazon.com/AmazonElastiCache/latest/dg/CacheNodes.SelectSize.html#CacheNodes.SelectSize.Mem). For Memcached, changing this value will re-create the resource.- Returns:
- builder
-
notificationTopicArn
public ClusterState.Builder notificationTopicArn(@Nullable com.pulumi.core.Output<java.lang.String> notificationTopicArn)
- Parameters:
notificationTopicArn- ARN of an SNS topic to send ElastiCache notifications to. Example: `arn:aws:sns:us-east-1:012345678999:my_sns_topic`.- Returns:
- builder
-
notificationTopicArn
public ClusterState.Builder notificationTopicArn(java.lang.String notificationTopicArn)
- Parameters:
notificationTopicArn- ARN of an SNS topic to send ElastiCache notifications to. Example: `arn:aws:sns:us-east-1:012345678999:my_sns_topic`.- Returns:
- builder
-
numCacheNodes
public ClusterState.Builder numCacheNodes(@Nullable com.pulumi.core.Output<java.lang.Integer> numCacheNodes)
- Parameters:
numCacheNodes- The initial number of cache nodes that the cache cluster will have. For Redis, this value must be 1. For Memcached, this value must be between 1 and 40. If this number is reduced on subsequent runs, the highest numbered nodes will be removed.- Returns:
- builder
-
numCacheNodes
public ClusterState.Builder numCacheNodes(java.lang.Integer numCacheNodes)
- Parameters:
numCacheNodes- The initial number of cache nodes that the cache cluster will have. For Redis, this value must be 1. For Memcached, this value must be between 1 and 40. If this number is reduced on subsequent runs, the highest numbered nodes will be removed.- Returns:
- builder
-
outpostMode
public ClusterState.Builder outpostMode(@Nullable com.pulumi.core.Output<java.lang.String> outpostMode)
- Parameters:
outpostMode- Specify the outpost mode that will apply to the cache cluster creation. Valid values are `"single-outpost"` and `"cross-outpost"`, however AWS currently only supports `"single-outpost"` mode.- Returns:
- builder
-
outpostMode
public ClusterState.Builder outpostMode(java.lang.String outpostMode)
- Parameters:
outpostMode- Specify the outpost mode that will apply to the cache cluster creation. Valid values are `"single-outpost"` and `"cross-outpost"`, however AWS currently only supports `"single-outpost"` mode.- Returns:
- builder
-
parameterGroupName
public ClusterState.Builder parameterGroupName(@Nullable com.pulumi.core.Output<java.lang.String> parameterGroupName)
- Parameters:
parameterGroupName- The name of the parameter group to associate with this cache cluster.- Returns:
- builder
-
parameterGroupName
public ClusterState.Builder parameterGroupName(java.lang.String parameterGroupName)
- Parameters:
parameterGroupName- The name of the parameter group to associate with this cache cluster.- Returns:
- builder
-
port
public ClusterState.Builder port(@Nullable com.pulumi.core.Output<java.lang.Integer> port)
- Parameters:
port- The port number on which each of the cache nodes will accept connections. For Memcached the default is 11211, and for Redis the default port is 6379. Cannot be provided with `replicationGroupId`. Changing this value will re-create the resource.- Returns:
- builder
-
port
public ClusterState.Builder port(java.lang.Integer port)
- Parameters:
port- The port number on which each of the cache nodes will accept connections. For Memcached the default is 11211, and for Redis the default port is 6379. Cannot be provided with `replicationGroupId`. Changing this value will re-create the resource.- Returns:
- builder
-
preferredAvailabilityZones
public ClusterState.Builder preferredAvailabilityZones(@Nullable com.pulumi.core.Output<java.util.List<java.lang.String>> preferredAvailabilityZones)
- Parameters:
preferredAvailabilityZones- List of the Availability Zones in which cache nodes are created. If you are creating your cluster in an Amazon VPC you can only locate nodes in Availability Zones that are associated with the subnets in the selected subnet group. The number of Availability Zones listed must equal the value of `numCacheNodes`. If you want all the nodes in the same Availability Zone, use `availabilityZone` instead, or repeat the Availability Zone multiple times in the list. Default: System chosen Availability Zones. Detecting drift of existing node availability zone is not currently supported. Updating this argument by itself to migrate existing node availability zones is not currently supported and will show a perpetual difference.- Returns:
- builder
-
preferredAvailabilityZones
public ClusterState.Builder preferredAvailabilityZones(java.util.List<java.lang.String> preferredAvailabilityZones)
- Parameters:
preferredAvailabilityZones- List of the Availability Zones in which cache nodes are created. If you are creating your cluster in an Amazon VPC you can only locate nodes in Availability Zones that are associated with the subnets in the selected subnet group. The number of Availability Zones listed must equal the value of `numCacheNodes`. If you want all the nodes in the same Availability Zone, use `availabilityZone` instead, or repeat the Availability Zone multiple times in the list. Default: System chosen Availability Zones. Detecting drift of existing node availability zone is not currently supported. Updating this argument by itself to migrate existing node availability zones is not currently supported and will show a perpetual difference.- Returns:
- builder
-
preferredAvailabilityZones
public ClusterState.Builder preferredAvailabilityZones(java.lang.String... preferredAvailabilityZones)
- Parameters:
preferredAvailabilityZones- List of the Availability Zones in which cache nodes are created. If you are creating your cluster in an Amazon VPC you can only locate nodes in Availability Zones that are associated with the subnets in the selected subnet group. The number of Availability Zones listed must equal the value of `numCacheNodes`. If you want all the nodes in the same Availability Zone, use `availabilityZone` instead, or repeat the Availability Zone multiple times in the list. Default: System chosen Availability Zones. Detecting drift of existing node availability zone is not currently supported. Updating this argument by itself to migrate existing node availability zones is not currently supported and will show a perpetual difference.- Returns:
- builder
-
preferredOutpostArn
public ClusterState.Builder preferredOutpostArn(@Nullable com.pulumi.core.Output<java.lang.String> preferredOutpostArn)
- Parameters:
preferredOutpostArn- The outpost ARN in which the cache cluster will be created.- Returns:
- builder
-
preferredOutpostArn
public ClusterState.Builder preferredOutpostArn(java.lang.String preferredOutpostArn)
- Parameters:
preferredOutpostArn- The outpost ARN in which the cache cluster will be created.- Returns:
- builder
-
region
public ClusterState.Builder region(@Nullable com.pulumi.core.Output<java.lang.String> region)
- Parameters:
region- Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.- Returns:
- builder
-
region
public ClusterState.Builder region(java.lang.String region)
- Parameters:
region- Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.- Returns:
- builder
-
replicationGroupId
public ClusterState.Builder replicationGroupId(@Nullable com.pulumi.core.Output<java.lang.String> replicationGroupId)
- Parameters:
replicationGroupId- ID of the replication group to which this cluster should belong. If this parameter is specified, the cluster is added to the specified replication group as a read replica; otherwise, the cluster is a standalone primary that is not part of any replication group.- Returns:
- builder
-
replicationGroupId
public ClusterState.Builder replicationGroupId(java.lang.String replicationGroupId)
- Parameters:
replicationGroupId- ID of the replication group to which this cluster should belong. If this parameter is specified, the cluster is added to the specified replication group as a read replica; otherwise, the cluster is a standalone primary that is not part of any replication group.- Returns:
- builder
-
securityGroupIds
public ClusterState.Builder securityGroupIds(@Nullable com.pulumi.core.Output<java.util.List<java.lang.String>> securityGroupIds)
- Parameters:
securityGroupIds- One or more VPC security groups associated with the cache cluster. Cannot be provided with `replication_group_id.`- Returns:
- builder
-
securityGroupIds
public ClusterState.Builder securityGroupIds(java.util.List<java.lang.String> securityGroupIds)
- Parameters:
securityGroupIds- One or more VPC security groups associated with the cache cluster. Cannot be provided with `replication_group_id.`- Returns:
- builder
-
securityGroupIds
public ClusterState.Builder securityGroupIds(java.lang.String... securityGroupIds)
- Parameters:
securityGroupIds- One or more VPC security groups associated with the cache cluster. Cannot be provided with `replication_group_id.`- Returns:
- builder
-
snapshotArns
public ClusterState.Builder snapshotArns(@Nullable com.pulumi.core.Output<java.lang.String> snapshotArns)
- Parameters:
snapshotArns- Single-element string list containing an ARN of a Redis RDB snapshot file stored in Amazon S3. The object name cannot contain any commas. Changing `snapshotArns` forces a new resource.- Returns:
- builder
-
snapshotArns
public ClusterState.Builder snapshotArns(java.lang.String snapshotArns)
- Parameters:
snapshotArns- Single-element string list containing an ARN of a Redis RDB snapshot file stored in Amazon S3. The object name cannot contain any commas. Changing `snapshotArns` forces a new resource.- Returns:
- builder
-
snapshotName
public ClusterState.Builder snapshotName(@Nullable com.pulumi.core.Output<java.lang.String> snapshotName)
- Parameters:
snapshotName- Name of a snapshot from which to restore data into the new node group. Changing `snapshotName` forces a new resource.- Returns:
- builder
-
snapshotName
public ClusterState.Builder snapshotName(java.lang.String snapshotName)
- Parameters:
snapshotName- Name of a snapshot from which to restore data into the new node group. Changing `snapshotName` forces a new resource.- Returns:
- builder
-
snapshotRetentionLimit
public ClusterState.Builder snapshotRetentionLimit(@Nullable com.pulumi.core.Output<java.lang.Integer> snapshotRetentionLimit)
- Parameters:
snapshotRetentionLimit- Number of days for which ElastiCache will retain automatic cache cluster snapshots before deleting them. For example, if you set SnapshotRetentionLimit to 5, then a snapshot that was taken today will be retained for 5 days before being deleted. If the value of SnapshotRetentionLimit is set to zero (0), backups are turned off. Please note that setting a `snapshotRetentionLimit` is not supported on cache.t1.micro cache nodes- Returns:
- builder
-
snapshotRetentionLimit
public ClusterState.Builder snapshotRetentionLimit(java.lang.Integer snapshotRetentionLimit)
- Parameters:
snapshotRetentionLimit- Number of days for which ElastiCache will retain automatic cache cluster snapshots before deleting them. For example, if you set SnapshotRetentionLimit to 5, then a snapshot that was taken today will be retained for 5 days before being deleted. If the value of SnapshotRetentionLimit is set to zero (0), backups are turned off. Please note that setting a `snapshotRetentionLimit` is not supported on cache.t1.micro cache nodes- Returns:
- builder
-
snapshotWindow
public ClusterState.Builder snapshotWindow(@Nullable com.pulumi.core.Output<java.lang.String> snapshotWindow)
- Parameters:
snapshotWindow- Daily time range (in UTC) during which ElastiCache will begin taking a daily snapshot of your cache cluster. Example: 05:00-09:00- Returns:
- builder
-
snapshotWindow
public ClusterState.Builder snapshotWindow(java.lang.String snapshotWindow)
- Parameters:
snapshotWindow- Daily time range (in UTC) during which ElastiCache will begin taking a daily snapshot of your cache cluster. Example: 05:00-09:00- Returns:
- builder
-
subnetGroupName
public ClusterState.Builder subnetGroupName(@Nullable com.pulumi.core.Output<java.lang.String> subnetGroupName)
- Parameters:
subnetGroupName- Name of the subnet group to be used for the cache cluster. Changing this value will re-create the resource. Cannot be provided with `replication_group_id.`- Returns:
- builder
-
subnetGroupName
public ClusterState.Builder subnetGroupName(java.lang.String subnetGroupName)
- Parameters:
subnetGroupName- Name of the subnet group to be used for the cache cluster. Changing this value will re-create the resource. Cannot be provided with `replication_group_id.`- Returns:
- builder
-
tags
public ClusterState.Builder tags(@Nullable com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>> tags)
- Parameters:
tags- Map of tags to assign to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.- Returns:
- builder
-
tags
public ClusterState.Builder tags(java.util.Map<java.lang.String,java.lang.String> tags)
- Parameters:
tags- Map of tags to assign to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.- Returns:
- builder
-
tagsAll
public ClusterState.Builder tagsAll(@Nullable com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>> tagsAll)
- Parameters:
tagsAll- Map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.- Returns:
- builder
-
tagsAll
public ClusterState.Builder tagsAll(java.util.Map<java.lang.String,java.lang.String> tagsAll)
- Parameters:
tagsAll- Map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.- Returns:
- builder
-
transitEncryptionEnabled
public ClusterState.Builder transitEncryptionEnabled(@Nullable com.pulumi.core.Output<java.lang.Boolean> transitEncryptionEnabled)
- Parameters:
transitEncryptionEnabled- Enable encryption in-transit. Supported only with Memcached versions `1.6.12` and later, running in a VPC. For Redis or Valkey transit encryption, use `aws.elasticache.ReplicationGroup` instead. See the [ElastiCache in-transit encryption documentation](https://docs.aws.amazon.com/AmazonElastiCache/latest/dg/in-transit-encryption.html#in-transit-encryption-constraints) for more details.- Returns:
- builder
-
transitEncryptionEnabled
public ClusterState.Builder transitEncryptionEnabled(java.lang.Boolean transitEncryptionEnabled)
- Parameters:
transitEncryptionEnabled- Enable encryption in-transit. Supported only with Memcached versions `1.6.12` and later, running in a VPC. For Redis or Valkey transit encryption, use `aws.elasticache.ReplicationGroup` instead. See the [ElastiCache in-transit encryption documentation](https://docs.aws.amazon.com/AmazonElastiCache/latest/dg/in-transit-encryption.html#in-transit-encryption-constraints) for more details.- Returns:
- builder
-
build
public ClusterState build()
-
-