Resource: awsDocdbSubnetGroup
Provides an DocumentDB subnet group resource.
Example Usage
/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as aws from "./.gen/providers/aws";
new aws.docdbSubnetGroup.DocdbSubnetGroup(this, "default", {
name: "main",
subnetIds: ["${aws_subnet.frontend.id}", "${aws_subnet.backend.id}"],
tags: {
Name: "My docdb subnet group",
},
});
Argument Reference
The following arguments are supported:
name
- (Optional, Forces new resource) The name of the docDB subnet group. If omitted, Terraform will assign a random, unique name.namePrefix
- (Optional, Forces new resource) Creates a unique name beginning with the specified prefix. Conflicts withname
.description
- (Optional) The description of the docDB subnet group. Defaults to "Managed by Terraform".subnetIds
- (Required) A list of VPC subnet IDs.tags
- (Optional) A map of tags to assign to the resource. If configured with a providerdefaultTags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.
Attributes Reference
In addition to all arguments above, the following attributes are exported:
id
- The docDB subnet group name.arn
- The ARN of the docDB subnet group.tagsAll
- A map of tags assigned to the resource, including those inherited from the providerdefaultTags
configuration block.
Import
DocumentDB Subnet groups can be imported using the name
, e.g.,