aws.docdb.ElasticCluster
Explore with Pulumi AI
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,
shard_capacity: Optional[int] = None,
admin_user_password: Optional[str] = None,
auth_type: Optional[str] = None,
admin_user_name: Optional[str] = None,
shard_count: Optional[int] = None,
backup_retention_period: Optional[float] = None,
preferred_backup_window: Optional[str] = None,
preferred_maintenance_window: Optional[str] = None,
name: Optional[str] = None,
kms_key_id: 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()
{
ShardCapacity = 0,
AdminUserPassword = "string",
AuthType = "string",
AdminUserName = "string",
ShardCount = 0,
BackupRetentionPeriod = 0,
PreferredBackupWindow = "string",
PreferredMaintenanceWindow = "string",
Name = "string",
KmsKeyId = "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{
ShardCapacity: pulumi.Int(0),
AdminUserPassword: pulumi.String("string"),
AuthType: pulumi.String("string"),
AdminUserName: pulumi.String("string"),
ShardCount: pulumi.Int(0),
BackupRetentionPeriod: pulumi.Float64(0),
PreferredBackupWindow: pulumi.String("string"),
PreferredMaintenanceWindow: pulumi.String("string"),
Name: pulumi.String("string"),
KmsKeyId: 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()
.shardCapacity(0)
.adminUserPassword("string")
.authType("string")
.adminUserName("string")
.shardCount(0)
.backupRetentionPeriod(0)
.preferredBackupWindow("string")
.preferredMaintenanceWindow("string")
.name("string")
.kmsKeyId("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",
shard_capacity=0,
admin_user_password="string",
auth_type="string",
admin_user_name="string",
shard_count=0,
backup_retention_period=0,
preferred_backup_window="string",
preferred_maintenance_window="string",
name="string",
kms_key_id="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", {
shardCapacity: 0,
adminUserPassword: "string",
authType: "string",
adminUserName: "string",
shardCount: 0,
backupRetentionPeriod: 0,
preferredBackupWindow: "string",
preferredMaintenanceWindow: "string",
name: "string",
kmsKeyId: "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
backupRetentionPeriod: 0
kmsKeyId: string
name: string
preferredBackupWindow: 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:
- Backup
Retention doublePeriod - The number of days for which automatic snapshots are retained. It should be in between 1 and 35. If not specified, the default value of 1 is set.
- 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
Backup stringWindow - The daily time range during which automated backups are created if automated backups are enabled, as determined by the
backup_retention_period
. - 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:
- Backup
Retention float64Period - The number of days for which automatic snapshots are retained. It should be in between 1 and 35. If not specified, the default value of 1 is set.
- 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
Backup stringWindow - The daily time range during which automated backups are created if automated backups are enabled, as determined by the
backup_retention_period
. - 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:
- backup
Retention DoublePeriod - The number of days for which automatic snapshots are retained. It should be in between 1 and 35. If not specified, the default value of 1 is set.
- 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
Backup StringWindow - The daily time range during which automated backups are created if automated backups are enabled, as determined by the
backup_retention_period
. - 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:
- backup
Retention numberPeriod - The number of days for which automatic snapshots are retained. It should be in between 1 and 35. If not specified, the default value of 1 is set.
- 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
Backup stringWindow - The daily time range during which automated backups are created if automated backups are enabled, as determined by the
backup_retention_period
. - 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:
- backup_
retention_ floatperiod - The number of days for which automatic snapshots are retained. It should be in between 1 and 35. If not specified, the default value of 1 is set.
- 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_
backup_ strwindow - The daily time range during which automated backups are created if automated backups are enabled, as determined by the
backup_retention_period
. - 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:
- backup
Retention NumberPeriod - The number of days for which automatic snapshots are retained. It should be in between 1 and 35. If not specified, the default value of 1 is set.
- 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
Backup StringWindow - The daily time range during which automated backups are created if automated backups are enabled, as determined by the
backup_retention_period
. - 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,
backup_retention_period: Optional[float] = None,
endpoint: Optional[str] = None,
kms_key_id: Optional[str] = None,
name: Optional[str] = None,
preferred_backup_window: 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
- Backup
Retention doublePeriod - The number of days for which automatic snapshots are retained. It should be in between 1 and 35. If not specified, the default value of 1 is set.
- 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
Backup stringWindow - The daily time range during which automated backups are created if automated backups are enabled, as determined by the
backup_retention_period
. - 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
- Backup
Retention float64Period - The number of days for which automatic snapshots are retained. It should be in between 1 and 35. If not specified, the default value of 1 is set.
- 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
Backup stringWindow - The daily time range during which automated backups are created if automated backups are enabled, as determined by the
backup_retention_period
. - 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
- backup
Retention DoublePeriod - The number of days for which automatic snapshots are retained. It should be in between 1 and 35. If not specified, the default value of 1 is set.
- 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
Backup StringWindow - The daily time range during which automated backups are created if automated backups are enabled, as determined by the
backup_retention_period
. - 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
- backup
Retention numberPeriod - The number of days for which automatic snapshots are retained. It should be in between 1 and 35. If not specified, the default value of 1 is set.
- 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
Backup stringWindow - The daily time range during which automated backups are created if automated backups are enabled, as determined by the
backup_retention_period
. - 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
- backup_
retention_ floatperiod - The number of days for which automatic snapshots are retained. It should be in between 1 and 35. If not specified, the default value of 1 is set.
- 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_
backup_ strwindow - The daily time range during which automated backups are created if automated backups are enabled, as determined by the
backup_retention_period
. - 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
- backup
Retention NumberPeriod - The number of days for which automatic snapshots are retained. It should be in between 1 and 35. If not specified, the default value of 1 is set.
- 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
Backup StringWindow - The daily time range during which automated backups are created if automated backups are enabled, as determined by the
backup_retention_period
. - 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.