SecurityGroup

class SecurityGroup : KotlinCustomResource

Provides an RDS security group resource. This is only for DB instances in the EC2-Classic Platform. For instances inside a VPC, use the aws_db_instance.vpc_security_group_ids attribute instead. !>WARNING: With the retirement of EC2-Classic the aws.rds.SecurityGroup resource has been deprecated and will be removed in a future version.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.rds.SecurityGroup;
import com.pulumi.aws.rds.SecurityGroupArgs;
import com.pulumi.aws.rds.inputs.SecurityGroupIngressArgs;
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 default_ = new SecurityGroup("default", SecurityGroupArgs.builder()
.ingress(SecurityGroupIngressArgs.builder()
.cidr("10.0.0.0/24")
.build())
.build());
}
}

Import

DB Security groups can be imported using the name, e.g.,

$ pulumi import aws:rds/securityGroup:SecurityGroup default aws_rds_sg-1

Properties

Link copied to clipboard
val arn: Output<String>

The arn of the DB security group.

Link copied to clipboard
val description: Output<String>

The description of the DB security group. Defaults to "Managed by Pulumi".

Link copied to clipboard
val id: Output<String>
Link copied to clipboard

A list of ingress rules.

Link copied to clipboard
val name: Output<String>

The name of the DB security group.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val tags: Output<Map<String, String>>?

A map of tags to assign to the resource. .If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

Link copied to clipboard
val tagsAll: Output<Map<String, String>>

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

Link copied to clipboard
val urn: Output<String>