Try AWS Native preview for resources not in the classic version.
aws.docdb.ElasticCluster
Explore with Pulumi AI
Try AWS Native preview for resources not in the classic version.
Manages an AWS DocDB (DocumentDB) Elastic Cluster.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.docdb.ElasticCluster("example", {
name: "my-docdb-cluster",
adminUserName: "foo",
adminUserPassword: "mustbeeightchars",
authType: "PLAIN_TEXT",
shardCapacity: 2,
shardCount: 1,
});
import pulumi
import pulumi_aws as aws
example = aws.docdb.ElasticCluster("example",
name="my-docdb-cluster",
admin_user_name="foo",
admin_user_password="mustbeeightchars",
auth_type="PLAIN_TEXT",
shard_capacity=2,
shard_count=1)
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/docdb"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := docdb.NewElasticCluster(ctx, "example", &docdb.ElasticClusterArgs{
Name: pulumi.String("my-docdb-cluster"),
AdminUserName: pulumi.String("foo"),
AdminUserPassword: pulumi.String("mustbeeightchars"),
AuthType: pulumi.String("PLAIN_TEXT"),
ShardCapacity: pulumi.Int(2),
ShardCount: pulumi.Int(1),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.DocDB.ElasticCluster("example", new()
{
Name = "my-docdb-cluster",
AdminUserName = "foo",
AdminUserPassword = "mustbeeightchars",
AuthType = "PLAIN_TEXT",
ShardCapacity = 2,
ShardCount = 1,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.docdb.ElasticCluster;
import com.pulumi.aws.docdb.ElasticClusterArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new ElasticCluster("example", ElasticClusterArgs.builder()
.name("my-docdb-cluster")
.adminUserName("foo")
.adminUserPassword("mustbeeightchars")
.authType("PLAIN_TEXT")
.shardCapacity(2)
.shardCount(1)
.build());
}
}
resources:
example:
type: aws:docdb:ElasticCluster
properties:
name: my-docdb-cluster
adminUserName: foo
adminUserPassword: mustbeeightchars
authType: PLAIN_TEXT
shardCapacity: 2
shardCount: 1
Create ElasticCluster Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ElasticCluster(name: string, args: ElasticClusterArgs, opts?: CustomResourceOptions);
@overload
def ElasticCluster(resource_name: str,
args: ElasticClusterArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ElasticCluster(resource_name: str,
opts: Optional[ResourceOptions] = None,
admin_user_name: Optional[str] = None,
admin_user_password: Optional[str] = None,
auth_type: Optional[str] = None,
shard_capacity: Optional[int] = None,
shard_count: Optional[int] = None,
kms_key_id: Optional[str] = None,
name: Optional[str] = None,
preferred_maintenance_window: Optional[str] = None,
subnet_ids: Optional[Sequence[str]] = None,
tags: Optional[Mapping[str, str]] = None,
timeouts: Optional[ElasticClusterTimeoutsArgs] = None,
vpc_security_group_ids: Optional[Sequence[str]] = None)
func NewElasticCluster(ctx *Context, name string, args ElasticClusterArgs, opts ...ResourceOption) (*ElasticCluster, error)
public ElasticCluster(string name, ElasticClusterArgs args, CustomResourceOptions? opts = null)
public ElasticCluster(String name, ElasticClusterArgs args)
public ElasticCluster(String name, ElasticClusterArgs args, CustomResourceOptions options)
type: aws:docdb:ElasticCluster
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args ElasticClusterArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args ElasticClusterArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ElasticClusterArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ElasticClusterArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ElasticClusterArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var elasticClusterResource = new Aws.DocDB.ElasticCluster("elasticClusterResource", new()
{
AdminUserName = "string",
AdminUserPassword = "string",
AuthType = "string",
ShardCapacity = 0,
ShardCount = 0,
KmsKeyId = "string",
Name = "string",
PreferredMaintenanceWindow = "string",
SubnetIds = new[]
{
"string",
},
Tags =
{
{ "string", "string" },
},
Timeouts = new Aws.DocDB.Inputs.ElasticClusterTimeoutsArgs
{
Create = "string",
Delete = "string",
Update = "string",
},
VpcSecurityGroupIds = new[]
{
"string",
},
});
example, err := docdb.NewElasticCluster(ctx, "elasticClusterResource", &docdb.ElasticClusterArgs{
AdminUserName: pulumi.String("string"),
AdminUserPassword: pulumi.String("string"),
AuthType: pulumi.String("string"),
ShardCapacity: pulumi.Int(0),
ShardCount: pulumi.Int(0),
KmsKeyId: pulumi.String("string"),
Name: pulumi.String("string"),
PreferredMaintenanceWindow: pulumi.String("string"),
SubnetIds: pulumi.StringArray{
pulumi.String("string"),
},
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
Timeouts: &docdb.ElasticClusterTimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
Update: pulumi.String("string"),
},
VpcSecurityGroupIds: pulumi.StringArray{
pulumi.String("string"),
},
})
var elasticClusterResource = new ElasticCluster("elasticClusterResource", ElasticClusterArgs.builder()
.adminUserName("string")
.adminUserPassword("string")
.authType("string")
.shardCapacity(0)
.shardCount(0)
.kmsKeyId("string")
.name("string")
.preferredMaintenanceWindow("string")
.subnetIds("string")
.tags(Map.of("string", "string"))
.timeouts(ElasticClusterTimeoutsArgs.builder()
.create("string")
.delete("string")
.update("string")
.build())
.vpcSecurityGroupIds("string")
.build());
elastic_cluster_resource = aws.docdb.ElasticCluster("elasticClusterResource",
admin_user_name="string",
admin_user_password="string",
auth_type="string",
shard_capacity=0,
shard_count=0,
kms_key_id="string",
name="string",
preferred_maintenance_window="string",
subnet_ids=["string"],
tags={
"string": "string",
},
timeouts={
"create": "string",
"delete": "string",
"update": "string",
},
vpc_security_group_ids=["string"])
const elasticClusterResource = new aws.docdb.ElasticCluster("elasticClusterResource", {
adminUserName: "string",
adminUserPassword: "string",
authType: "string",
shardCapacity: 0,
shardCount: 0,
kmsKeyId: "string",
name: "string",
preferredMaintenanceWindow: "string",
subnetIds: ["string"],
tags: {
string: "string",
},
timeouts: {
create: "string",
"delete": "string",
update: "string",
},
vpcSecurityGroupIds: ["string"],
});
type: aws:docdb:ElasticCluster
properties:
adminUserName: string
adminUserPassword: string
authType: string
kmsKeyId: string
name: string
preferredMaintenanceWindow: string
shardCapacity: 0
shardCount: 0
subnetIds:
- string
tags:
string: string
timeouts:
create: string
delete: string
update: string
vpcSecurityGroupIds:
- string
ElasticCluster Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The ElasticCluster resource accepts the following input properties:
- Admin
User stringName - Name of the Elastic DocumentDB cluster administrator
- Admin
User stringPassword - Password for the Elastic DocumentDB cluster administrator. Can contain any printable ASCII characters. Must be at least 8 characters
- Auth
Type string - Authentication type for the Elastic DocumentDB cluster. Valid values are
PLAIN_TEXT
andSECRET_ARN
- int
- Number of vCPUs assigned to each elastic cluster shard. Maximum is 64. Allowed values are 2, 4, 8, 16, 32, 64
- int
Number of shards assigned to the elastic cluster. Maximum is 32
The following arguments are optional:
- Kms
Key stringId - ARN of a KMS key that is used to encrypt the Elastic DocumentDB cluster. If not specified, the default encryption key that KMS creates for your account is used.
- Name string
- Name of the Elastic DocumentDB cluster
- Preferred
Maintenance stringWindow - Weekly time range during which system maintenance can occur in UTC. Format:
ddd:hh24:mi-ddd:hh24:mi
. If not specified, AWS will choose a random 30-minute window on a random day of the week. - Subnet
Ids List<string> - IDs of subnets in which the Elastic DocumentDB Cluster operates.
- Dictionary<string, string>
- A map of tags to assign to the collection. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - Timeouts
Elastic
Cluster Timeouts - Vpc
Security List<string>Group Ids - List of VPC security groups to associate with the Elastic DocumentDB Cluster
- Admin
User stringName - Name of the Elastic DocumentDB cluster administrator
- Admin
User stringPassword - Password for the Elastic DocumentDB cluster administrator. Can contain any printable ASCII characters. Must be at least 8 characters
- Auth
Type string - Authentication type for the Elastic DocumentDB cluster. Valid values are
PLAIN_TEXT
andSECRET_ARN
- int
- Number of vCPUs assigned to each elastic cluster shard. Maximum is 64. Allowed values are 2, 4, 8, 16, 32, 64
- int
Number of shards assigned to the elastic cluster. Maximum is 32
The following arguments are optional:
- Kms
Key stringId - ARN of a KMS key that is used to encrypt the Elastic DocumentDB cluster. If not specified, the default encryption key that KMS creates for your account is used.
- Name string
- Name of the Elastic DocumentDB cluster
- Preferred
Maintenance stringWindow - Weekly time range during which system maintenance can occur in UTC. Format:
ddd:hh24:mi-ddd:hh24:mi
. If not specified, AWS will choose a random 30-minute window on a random day of the week. - Subnet
Ids []string - IDs of subnets in which the Elastic DocumentDB Cluster operates.
- map[string]string
- A map of tags to assign to the collection. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - Timeouts
Elastic
Cluster Timeouts Args - Vpc
Security []stringGroup Ids - List of VPC security groups to associate with the Elastic DocumentDB Cluster
- admin
User StringName - Name of the Elastic DocumentDB cluster administrator
- admin
User StringPassword - Password for the Elastic DocumentDB cluster administrator. Can contain any printable ASCII characters. Must be at least 8 characters
- auth
Type String - Authentication type for the Elastic DocumentDB cluster. Valid values are
PLAIN_TEXT
andSECRET_ARN
- Integer
- Number of vCPUs assigned to each elastic cluster shard. Maximum is 64. Allowed values are 2, 4, 8, 16, 32, 64
- Integer
Number of shards assigned to the elastic cluster. Maximum is 32
The following arguments are optional:
- kms
Key StringId - ARN of a KMS key that is used to encrypt the Elastic DocumentDB cluster. If not specified, the default encryption key that KMS creates for your account is used.
- name String
- Name of the Elastic DocumentDB cluster
- preferred
Maintenance StringWindow - Weekly time range during which system maintenance can occur in UTC. Format:
ddd:hh24:mi-ddd:hh24:mi
. If not specified, AWS will choose a random 30-minute window on a random day of the week. - subnet
Ids List<String> - IDs of subnets in which the Elastic DocumentDB Cluster operates.
- Map<String,String>
- A map of tags to assign to the collection. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - timeouts
Elastic
Cluster Timeouts - vpc
Security List<String>Group Ids - List of VPC security groups to associate with the Elastic DocumentDB Cluster
- admin
User stringName - Name of the Elastic DocumentDB cluster administrator
- admin
User stringPassword - Password for the Elastic DocumentDB cluster administrator. Can contain any printable ASCII characters. Must be at least 8 characters
- auth
Type string - Authentication type for the Elastic DocumentDB cluster. Valid values are
PLAIN_TEXT
andSECRET_ARN
- number
- Number of vCPUs assigned to each elastic cluster shard. Maximum is 64. Allowed values are 2, 4, 8, 16, 32, 64
- number
Number of shards assigned to the elastic cluster. Maximum is 32
The following arguments are optional:
- kms
Key stringId - ARN of a KMS key that is used to encrypt the Elastic DocumentDB cluster. If not specified, the default encryption key that KMS creates for your account is used.
- name string
- Name of the Elastic DocumentDB cluster
- preferred
Maintenance stringWindow - Weekly time range during which system maintenance can occur in UTC. Format:
ddd:hh24:mi-ddd:hh24:mi
. If not specified, AWS will choose a random 30-minute window on a random day of the week. - subnet
Ids string[] - IDs of subnets in which the Elastic DocumentDB Cluster operates.
- {[key: string]: string}
- A map of tags to assign to the collection. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - timeouts
Elastic
Cluster Timeouts - vpc
Security string[]Group Ids - List of VPC security groups to associate with the Elastic DocumentDB Cluster
- admin_
user_ strname - Name of the Elastic DocumentDB cluster administrator
- admin_
user_ strpassword - Password for the Elastic DocumentDB cluster administrator. Can contain any printable ASCII characters. Must be at least 8 characters
- auth_
type str - Authentication type for the Elastic DocumentDB cluster. Valid values are
PLAIN_TEXT
andSECRET_ARN
- int
- Number of vCPUs assigned to each elastic cluster shard. Maximum is 64. Allowed values are 2, 4, 8, 16, 32, 64
- int
Number of shards assigned to the elastic cluster. Maximum is 32
The following arguments are optional:
- kms_
key_ strid - ARN of a KMS key that is used to encrypt the Elastic DocumentDB cluster. If not specified, the default encryption key that KMS creates for your account is used.
- name str
- Name of the Elastic DocumentDB cluster
- preferred_
maintenance_ strwindow - Weekly time range during which system maintenance can occur in UTC. Format:
ddd:hh24:mi-ddd:hh24:mi
. If not specified, AWS will choose a random 30-minute window on a random day of the week. - subnet_
ids Sequence[str] - IDs of subnets in which the Elastic DocumentDB Cluster operates.
- Mapping[str, str]
- A map of tags to assign to the collection. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - timeouts
Elastic
Cluster Timeouts Args - vpc_
security_ Sequence[str]group_ ids - List of VPC security groups to associate with the Elastic DocumentDB Cluster
- admin
User StringName - Name of the Elastic DocumentDB cluster administrator
- admin
User StringPassword - Password for the Elastic DocumentDB cluster administrator. Can contain any printable ASCII characters. Must be at least 8 characters
- auth
Type String - Authentication type for the Elastic DocumentDB cluster. Valid values are
PLAIN_TEXT
andSECRET_ARN
- Number
- Number of vCPUs assigned to each elastic cluster shard. Maximum is 64. Allowed values are 2, 4, 8, 16, 32, 64
- Number
Number of shards assigned to the elastic cluster. Maximum is 32
The following arguments are optional:
- kms
Key StringId - ARN of a KMS key that is used to encrypt the Elastic DocumentDB cluster. If not specified, the default encryption key that KMS creates for your account is used.
- name String
- Name of the Elastic DocumentDB cluster
- preferred
Maintenance StringWindow - Weekly time range during which system maintenance can occur in UTC. Format:
ddd:hh24:mi-ddd:hh24:mi
. If not specified, AWS will choose a random 30-minute window on a random day of the week. - subnet
Ids List<String> - IDs of subnets in which the Elastic DocumentDB Cluster operates.
- Map<String>
- A map of tags to assign to the collection. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - timeouts Property Map
- vpc
Security List<String>Group Ids - List of VPC security groups to associate with the Elastic DocumentDB Cluster
Outputs
All input properties are implicitly available as output properties. Additionally, the ElasticCluster resource produces the following output properties:
Look up Existing ElasticCluster Resource
Get an existing ElasticCluster resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: ElasticClusterState, opts?: CustomResourceOptions): ElasticCluster
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
admin_user_name: Optional[str] = None,
admin_user_password: Optional[str] = None,
arn: Optional[str] = None,
auth_type: Optional[str] = None,
endpoint: Optional[str] = None,
kms_key_id: Optional[str] = None,
name: Optional[str] = None,
preferred_maintenance_window: Optional[str] = None,
shard_capacity: Optional[int] = None,
shard_count: Optional[int] = None,
subnet_ids: Optional[Sequence[str]] = None,
tags: Optional[Mapping[str, str]] = None,
tags_all: Optional[Mapping[str, str]] = None,
timeouts: Optional[ElasticClusterTimeoutsArgs] = None,
vpc_security_group_ids: Optional[Sequence[str]] = None) -> ElasticCluster
func GetElasticCluster(ctx *Context, name string, id IDInput, state *ElasticClusterState, opts ...ResourceOption) (*ElasticCluster, error)
public static ElasticCluster Get(string name, Input<string> id, ElasticClusterState? state, CustomResourceOptions? opts = null)
public static ElasticCluster get(String name, Output<String> id, ElasticClusterState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Admin
User stringName - Name of the Elastic DocumentDB cluster administrator
- Admin
User stringPassword - Password for the Elastic DocumentDB cluster administrator. Can contain any printable ASCII characters. Must be at least 8 characters
- Arn string
- ARN of the DocumentDB Elastic Cluster
- Auth
Type string - Authentication type for the Elastic DocumentDB cluster. Valid values are
PLAIN_TEXT
andSECRET_ARN
- Endpoint string
- The DNS address of the DocDB instance
- Kms
Key stringId - ARN of a KMS key that is used to encrypt the Elastic DocumentDB cluster. If not specified, the default encryption key that KMS creates for your account is used.
- Name string
- Name of the Elastic DocumentDB cluster
- Preferred
Maintenance stringWindow - Weekly time range during which system maintenance can occur in UTC. Format:
ddd:hh24:mi-ddd:hh24:mi
. If not specified, AWS will choose a random 30-minute window on a random day of the week. - Shard
Capacity int - Number of vCPUs assigned to each elastic cluster shard. Maximum is 64. Allowed values are 2, 4, 8, 16, 32, 64
- Shard
Count int Number of shards assigned to the elastic cluster. Maximum is 32
The following arguments are optional:
- Subnet
Ids List<string> - IDs of subnets in which the Elastic DocumentDB Cluster operates.
- Dictionary<string, string>
- A map of tags to assign to the collection. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - Dictionary<string, string>
- Timeouts
Elastic
Cluster Timeouts - Vpc
Security List<string>Group Ids - List of VPC security groups to associate with the Elastic DocumentDB Cluster
- Admin
User stringName - Name of the Elastic DocumentDB cluster administrator
- Admin
User stringPassword - Password for the Elastic DocumentDB cluster administrator. Can contain any printable ASCII characters. Must be at least 8 characters
- Arn string
- ARN of the DocumentDB Elastic Cluster
- Auth
Type string - Authentication type for the Elastic DocumentDB cluster. Valid values are
PLAIN_TEXT
andSECRET_ARN
- Endpoint string
- The DNS address of the DocDB instance
- Kms
Key stringId - ARN of a KMS key that is used to encrypt the Elastic DocumentDB cluster. If not specified, the default encryption key that KMS creates for your account is used.
- Name string
- Name of the Elastic DocumentDB cluster
- Preferred
Maintenance stringWindow - Weekly time range during which system maintenance can occur in UTC. Format:
ddd:hh24:mi-ddd:hh24:mi
. If not specified, AWS will choose a random 30-minute window on a random day of the week. - Shard
Capacity int - Number of vCPUs assigned to each elastic cluster shard. Maximum is 64. Allowed values are 2, 4, 8, 16, 32, 64
- Shard
Count int Number of shards assigned to the elastic cluster. Maximum is 32
The following arguments are optional:
- Subnet
Ids []string - IDs of subnets in which the Elastic DocumentDB Cluster operates.
- map[string]string
- A map of tags to assign to the collection. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - map[string]string
- Timeouts
Elastic
Cluster Timeouts Args - Vpc
Security []stringGroup Ids - List of VPC security groups to associate with the Elastic DocumentDB Cluster
- admin
User StringName - Name of the Elastic DocumentDB cluster administrator
- admin
User StringPassword - Password for the Elastic DocumentDB cluster administrator. Can contain any printable ASCII characters. Must be at least 8 characters
- arn String
- ARN of the DocumentDB Elastic Cluster
- auth
Type String - Authentication type for the Elastic DocumentDB cluster. Valid values are
PLAIN_TEXT
andSECRET_ARN
- endpoint String
- The DNS address of the DocDB instance
- kms
Key StringId - ARN of a KMS key that is used to encrypt the Elastic DocumentDB cluster. If not specified, the default encryption key that KMS creates for your account is used.
- name String
- Name of the Elastic DocumentDB cluster
- preferred
Maintenance StringWindow - Weekly time range during which system maintenance can occur in UTC. Format:
ddd:hh24:mi-ddd:hh24:mi
. If not specified, AWS will choose a random 30-minute window on a random day of the week. - shard
Capacity Integer - Number of vCPUs assigned to each elastic cluster shard. Maximum is 64. Allowed values are 2, 4, 8, 16, 32, 64
- shard
Count Integer Number of shards assigned to the elastic cluster. Maximum is 32
The following arguments are optional:
- subnet
Ids List<String> - IDs of subnets in which the Elastic DocumentDB Cluster operates.
- Map<String,String>
- A map of tags to assign to the collection. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - Map<String,String>
- timeouts
Elastic
Cluster Timeouts - vpc
Security List<String>Group Ids - List of VPC security groups to associate with the Elastic DocumentDB Cluster
- admin
User stringName - Name of the Elastic DocumentDB cluster administrator
- admin
User stringPassword - Password for the Elastic DocumentDB cluster administrator. Can contain any printable ASCII characters. Must be at least 8 characters
- arn string
- ARN of the DocumentDB Elastic Cluster
- auth
Type string - Authentication type for the Elastic DocumentDB cluster. Valid values are
PLAIN_TEXT
andSECRET_ARN
- endpoint string
- The DNS address of the DocDB instance
- kms
Key stringId - ARN of a KMS key that is used to encrypt the Elastic DocumentDB cluster. If not specified, the default encryption key that KMS creates for your account is used.
- name string
- Name of the Elastic DocumentDB cluster
- preferred
Maintenance stringWindow - Weekly time range during which system maintenance can occur in UTC. Format:
ddd:hh24:mi-ddd:hh24:mi
. If not specified, AWS will choose a random 30-minute window on a random day of the week. - shard
Capacity number - Number of vCPUs assigned to each elastic cluster shard. Maximum is 64. Allowed values are 2, 4, 8, 16, 32, 64
- shard
Count number Number of shards assigned to the elastic cluster. Maximum is 32
The following arguments are optional:
- subnet
Ids string[] - IDs of subnets in which the Elastic DocumentDB Cluster operates.
- {[key: string]: string}
- A map of tags to assign to the collection. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - {[key: string]: string}
- timeouts
Elastic
Cluster Timeouts - vpc
Security string[]Group Ids - List of VPC security groups to associate with the Elastic DocumentDB Cluster
- admin_
user_ strname - Name of the Elastic DocumentDB cluster administrator
- admin_
user_ strpassword - Password for the Elastic DocumentDB cluster administrator. Can contain any printable ASCII characters. Must be at least 8 characters
- arn str
- ARN of the DocumentDB Elastic Cluster
- auth_
type str - Authentication type for the Elastic DocumentDB cluster. Valid values are
PLAIN_TEXT
andSECRET_ARN
- endpoint str
- The DNS address of the DocDB instance
- kms_
key_ strid - ARN of a KMS key that is used to encrypt the Elastic DocumentDB cluster. If not specified, the default encryption key that KMS creates for your account is used.
- name str
- Name of the Elastic DocumentDB cluster
- preferred_
maintenance_ strwindow - Weekly time range during which system maintenance can occur in UTC. Format:
ddd:hh24:mi-ddd:hh24:mi
. If not specified, AWS will choose a random 30-minute window on a random day of the week. - shard_
capacity int - Number of vCPUs assigned to each elastic cluster shard. Maximum is 64. Allowed values are 2, 4, 8, 16, 32, 64
- shard_
count int Number of shards assigned to the elastic cluster. Maximum is 32
The following arguments are optional:
- subnet_
ids Sequence[str] - IDs of subnets in which the Elastic DocumentDB Cluster operates.
- Mapping[str, str]
- A map of tags to assign to the collection. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - Mapping[str, str]
- timeouts
Elastic
Cluster Timeouts Args - vpc_
security_ Sequence[str]group_ ids - List of VPC security groups to associate with the Elastic DocumentDB Cluster
- admin
User StringName - Name of the Elastic DocumentDB cluster administrator
- admin
User StringPassword - Password for the Elastic DocumentDB cluster administrator. Can contain any printable ASCII characters. Must be at least 8 characters
- arn String
- ARN of the DocumentDB Elastic Cluster
- auth
Type String - Authentication type for the Elastic DocumentDB cluster. Valid values are
PLAIN_TEXT
andSECRET_ARN
- endpoint String
- The DNS address of the DocDB instance
- kms
Key StringId - ARN of a KMS key that is used to encrypt the Elastic DocumentDB cluster. If not specified, the default encryption key that KMS creates for your account is used.
- name String
- Name of the Elastic DocumentDB cluster
- preferred
Maintenance StringWindow - Weekly time range during which system maintenance can occur in UTC. Format:
ddd:hh24:mi-ddd:hh24:mi
. If not specified, AWS will choose a random 30-minute window on a random day of the week. - shard
Capacity Number - Number of vCPUs assigned to each elastic cluster shard. Maximum is 64. Allowed values are 2, 4, 8, 16, 32, 64
- shard
Count Number Number of shards assigned to the elastic cluster. Maximum is 32
The following arguments are optional:
- subnet
Ids List<String> - IDs of subnets in which the Elastic DocumentDB Cluster operates.
- Map<String>
- A map of tags to assign to the collection. If configured with a provider
default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level. - Map<String>
- timeouts Property Map
- vpc
Security List<String>Group Ids - List of VPC security groups to associate with the Elastic DocumentDB Cluster
Supporting Types
ElasticClusterTimeouts, ElasticClusterTimeoutsArgs
- Create string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- Delete string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- Update string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- Create string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- Delete string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- Update string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- create String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- delete String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- update String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- create string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- delete string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- update string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- create str
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- delete str
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- update str
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- create String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- delete String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- update String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
Import
Using pulumi import
, import DocDB (DocumentDB) Elastic Cluster using the arn
argument. For example,
$ pulumi import aws:docdb/elasticCluster:ElasticCluster example arn:aws:docdb-elastic:us-east-1:000011112222:cluster/12345678-7abc-def0-1234-56789abcdef
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aws
Terraform Provider.
Try AWS Native preview for resources not in the classic version.