Show / Hide Table of Contents

Class CfnDBSecurityGroup

The AWS::RDS::DBSecurityGroup resource creates or updates an Amazon RDS DB security group.

Inheritance
object
CfnElement
CfnRefElement
CfnResource
CfnDBSecurityGroup
Implements
IInspectable
IDBSecurityGroupRef
IConstruct
IDependable
IEnvironmentAware
ITaggable
Inherited Members
CfnResource.IsCfnResource(object)
CfnResource.AddDeletionOverride(string)
CfnResource.AddDependency(CfnResource)
CfnResource.AddDependsOn(CfnResource)
CfnResource.AddMetadata(string, object)
CfnResource.AddOverride(string, object)
CfnResource.AddPropertyDeletionOverride(string)
CfnResource.AddPropertyOverride(string, object)
CfnResource.ApplyRemovalPolicy(RemovalPolicy?, IRemovalPolicyOptions)
CfnResource.GetAtt(string, ResolutionTypeHint?)
CfnResource.GetMetadata(string)
CfnResource.ObtainDependencies()
CfnResource.ObtainResourceDependencies()
CfnResource.RemoveDependency(CfnResource)
CfnResource.ReplaceDependency(CfnResource, CfnResource)
CfnResource.ShouldSynthesize()
CfnResource.ToString()
CfnResource.ValidateProperties(object)
CfnResource.CfnOptions
CfnResource.CfnResourceType
CfnResource.Env
CfnResource.UpdatedProperites
CfnResource.UpdatedProperties
CfnRefElement.Ref
CfnElement.IsCfnElement(object)
CfnElement.OverrideLogicalId(string)
CfnElement.CreationStack
CfnElement.LogicalId
CfnElement.Stack
Namespace: Amazon.CDK.AWS.RDS
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnDBSecurityGroup : CfnResource, IInspectable, IDBSecurityGroupRef, IConstruct, IDependable, IEnvironmentAware, ITaggable
Syntax (vb)
Public Class CfnDBSecurityGroup Inherits CfnResource Implements IInspectable, IDBSecurityGroupRef, IConstruct, IDependable, IEnvironmentAware, ITaggable
Remarks
EC2-Classic was retired on August 15, 2022. If you haven't migrated from EC2-Classic to a VPC, we recommend that you migrate as soon as possible. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-migrate.html">Migrate from EC2-Classic to a VPC</a> in the <em>Amazon EC2 User Guide</em> , the blog <a href="https://docs.aws.amazon.com/aws/ec2-classic-is-retiring-heres-how-to-prepare/">EC2-Classic Networking is Retiring – Here’s How to Prepare</a> , and <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_VPC.Non-VPC2VPC.html">Moving a DB instance not in a VPC into a VPC</a> in the <em>Amazon RDS User Guide</em> .

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbsecuritygroup.html

CloudformationResource: AWS::RDS::DBSecurityGroup

ExampleMetadata: fixture=_generated

Examples
// The code below shows an example of how to instantiate this type.
             // The values are placeholders you should change.
             using Amazon.CDK.AWS.RDS;

             var cfnDBSecurityGroup = new CfnDBSecurityGroup(this, "MyCfnDBSecurityGroup", new CfnDBSecurityGroupProps {
                 DbSecurityGroupIngress = new [] { new IngressProperty {
                     Cidrip = "cidrip",
                     Ec2SecurityGroupId = "ec2SecurityGroupId",
                     Ec2SecurityGroupName = "ec2SecurityGroupName",
                     Ec2SecurityGroupOwnerId = "ec2SecurityGroupOwnerId"
                 } },
                 GroupDescription = "groupDescription",

                 // the properties below are optional
                 Ec2VpcId = "ec2VpcId",
                 Tags = new [] { new CfnTag {
                     Key = "key",
                     Value = "value"
                 } }
             });

Synopsis

Constructors

CfnDBSecurityGroup(Construct, string, ICfnDBSecurityGroupProps)

Create a new AWS::RDS::DBSecurityGroup.

Properties

AttrId

The AWS::RDS::DBSecurityGroup resource creates or updates an Amazon RDS DB security group.

CFN_RESOURCE_TYPE_NAME

The CloudFormation resource type name for this resource class.

CfnProperties

The AWS::RDS::DBSecurityGroup resource creates or updates an Amazon RDS DB security group.

DbSecurityGroupIngress

Ingress rules to be applied to the DB security group.

DbSecurityGroupRef

A reference to a DBSecurityGroup resource.

Ec2VpcId

The identifier of an Amazon virtual private cloud (VPC).

GroupDescription

Provides the description of the DB security group.

Tags

Tag Manager which manages the tags for this resource.

TagsRaw

Metadata assigned to an Amazon RDS resource consisting of a key-value pair.

Methods

Inspect(TreeInspector)

Examines the CloudFormation resource and discloses attributes.

IsCfnDBSecurityGroup(object)

Checks whether the given object is a CfnDBSecurityGroup.

RenderProperties(IDictionary<string, object>)

The AWS::RDS::DBSecurityGroup resource creates or updates an Amazon RDS DB security group.

Constructors

CfnDBSecurityGroup(Construct, string, ICfnDBSecurityGroupProps)

Create a new AWS::RDS::DBSecurityGroup.

public CfnDBSecurityGroup(Construct scope, string id, ICfnDBSecurityGroupProps props)
Parameters
scope Construct

Scope in which this resource is defined.

id string

Construct identifier for this resource (unique in its scope).

props ICfnDBSecurityGroupProps

Resource properties.

Remarks
EC2-Classic was retired on August 15, 2022. If you haven't migrated from EC2-Classic to a VPC, we recommend that you migrate as soon as possible. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-migrate.html">Migrate from EC2-Classic to a VPC</a> in the <em>Amazon EC2 User Guide</em> , the blog <a href="https://docs.aws.amazon.com/aws/ec2-classic-is-retiring-heres-how-to-prepare/">EC2-Classic Networking is Retiring – Here’s How to Prepare</a> , and <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_VPC.Non-VPC2VPC.html">Moving a DB instance not in a VPC into a VPC</a> in the <em>Amazon RDS User Guide</em> .

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbsecuritygroup.html

CloudformationResource: AWS::RDS::DBSecurityGroup

ExampleMetadata: fixture=_generated

Properties

AttrId

The AWS::RDS::DBSecurityGroup resource creates or updates an Amazon RDS DB security group.

public virtual string AttrId { get; }
Property Value

string

Remarks

CloudformationAttribute: Id

CFN_RESOURCE_TYPE_NAME

The CloudFormation resource type name for this resource class.

public static string CFN_RESOURCE_TYPE_NAME { get; }
Property Value

string

Remarks
EC2-Classic was retired on August 15, 2022. If you haven't migrated from EC2-Classic to a VPC, we recommend that you migrate as soon as possible. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-migrate.html">Migrate from EC2-Classic to a VPC</a> in the <em>Amazon EC2 User Guide</em> , the blog <a href="https://docs.aws.amazon.com/aws/ec2-classic-is-retiring-heres-how-to-prepare/">EC2-Classic Networking is Retiring – Here’s How to Prepare</a> , and <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_VPC.Non-VPC2VPC.html">Moving a DB instance not in a VPC into a VPC</a> in the <em>Amazon RDS User Guide</em> .

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbsecuritygroup.html

CloudformationResource: AWS::RDS::DBSecurityGroup

ExampleMetadata: fixture=_generated

CfnProperties

The AWS::RDS::DBSecurityGroup resource creates or updates an Amazon RDS DB security group.

protected override IDictionary<string, object> CfnProperties { get; }
Property Value

IDictionary<string, object>

Overrides
CfnResource.CfnProperties
Remarks
EC2-Classic was retired on August 15, 2022. If you haven't migrated from EC2-Classic to a VPC, we recommend that you migrate as soon as possible. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-migrate.html">Migrate from EC2-Classic to a VPC</a> in the <em>Amazon EC2 User Guide</em> , the blog <a href="https://docs.aws.amazon.com/aws/ec2-classic-is-retiring-heres-how-to-prepare/">EC2-Classic Networking is Retiring – Here’s How to Prepare</a> , and <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_VPC.Non-VPC2VPC.html">Moving a DB instance not in a VPC into a VPC</a> in the <em>Amazon RDS User Guide</em> .

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbsecuritygroup.html

CloudformationResource: AWS::RDS::DBSecurityGroup

ExampleMetadata: fixture=_generated

DbSecurityGroupIngress

Ingress rules to be applied to the DB security group.

public virtual object DbSecurityGroupIngress { get; set; }
Property Value

object

Remarks

Type union: either IResolvable or (either IResolvable or CfnDBSecurityGroup.IIngressProperty)[]

DbSecurityGroupRef

A reference to a DBSecurityGroup resource.

public virtual IDBSecurityGroupReference DbSecurityGroupRef { get; }
Property Value

IDBSecurityGroupReference

Remarks
EC2-Classic was retired on August 15, 2022. If you haven't migrated from EC2-Classic to a VPC, we recommend that you migrate as soon as possible. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-migrate.html">Migrate from EC2-Classic to a VPC</a> in the <em>Amazon EC2 User Guide</em> , the blog <a href="https://docs.aws.amazon.com/aws/ec2-classic-is-retiring-heres-how-to-prepare/">EC2-Classic Networking is Retiring – Here’s How to Prepare</a> , and <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_VPC.Non-VPC2VPC.html">Moving a DB instance not in a VPC into a VPC</a> in the <em>Amazon RDS User Guide</em> .

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbsecuritygroup.html

CloudformationResource: AWS::RDS::DBSecurityGroup

ExampleMetadata: fixture=_generated

Ec2VpcId

The identifier of an Amazon virtual private cloud (VPC).

public virtual string? Ec2VpcId { get; set; }
Property Value

string

Remarks
EC2-Classic was retired on August 15, 2022. If you haven't migrated from EC2-Classic to a VPC, we recommend that you migrate as soon as possible. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-migrate.html">Migrate from EC2-Classic to a VPC</a> in the <em>Amazon EC2 User Guide</em> , the blog <a href="https://docs.aws.amazon.com/aws/ec2-classic-is-retiring-heres-how-to-prepare/">EC2-Classic Networking is Retiring – Here’s How to Prepare</a> , and <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_VPC.Non-VPC2VPC.html">Moving a DB instance not in a VPC into a VPC</a> in the <em>Amazon RDS User Guide</em> .

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbsecuritygroup.html

CloudformationResource: AWS::RDS::DBSecurityGroup

ExampleMetadata: fixture=_generated

GroupDescription

Provides the description of the DB security group.

public virtual string GroupDescription { get; set; }
Property Value

string

Remarks
EC2-Classic was retired on August 15, 2022. If you haven't migrated from EC2-Classic to a VPC, we recommend that you migrate as soon as possible. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-migrate.html">Migrate from EC2-Classic to a VPC</a> in the <em>Amazon EC2 User Guide</em> , the blog <a href="https://docs.aws.amazon.com/aws/ec2-classic-is-retiring-heres-how-to-prepare/">EC2-Classic Networking is Retiring – Here’s How to Prepare</a> , and <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_VPC.Non-VPC2VPC.html">Moving a DB instance not in a VPC into a VPC</a> in the <em>Amazon RDS User Guide</em> .

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbsecuritygroup.html

CloudformationResource: AWS::RDS::DBSecurityGroup

ExampleMetadata: fixture=_generated

Tags

Tag Manager which manages the tags for this resource.

public virtual TagManager Tags { get; }
Property Value

TagManager

Remarks
EC2-Classic was retired on August 15, 2022. If you haven't migrated from EC2-Classic to a VPC, we recommend that you migrate as soon as possible. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-migrate.html">Migrate from EC2-Classic to a VPC</a> in the <em>Amazon EC2 User Guide</em> , the blog <a href="https://docs.aws.amazon.com/aws/ec2-classic-is-retiring-heres-how-to-prepare/">EC2-Classic Networking is Retiring – Here’s How to Prepare</a> , and <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_VPC.Non-VPC2VPC.html">Moving a DB instance not in a VPC into a VPC</a> in the <em>Amazon RDS User Guide</em> .

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbsecuritygroup.html

CloudformationResource: AWS::RDS::DBSecurityGroup

ExampleMetadata: fixture=_generated

TagsRaw

Metadata assigned to an Amazon RDS resource consisting of a key-value pair.

public virtual ICfnTag[]? TagsRaw { get; set; }
Property Value

ICfnTag[]

Remarks
EC2-Classic was retired on August 15, 2022. If you haven't migrated from EC2-Classic to a VPC, we recommend that you migrate as soon as possible. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-migrate.html">Migrate from EC2-Classic to a VPC</a> in the <em>Amazon EC2 User Guide</em> , the blog <a href="https://docs.aws.amazon.com/aws/ec2-classic-is-retiring-heres-how-to-prepare/">EC2-Classic Networking is Retiring – Here’s How to Prepare</a> , and <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_VPC.Non-VPC2VPC.html">Moving a DB instance not in a VPC into a VPC</a> in the <em>Amazon RDS User Guide</em> .

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbsecuritygroup.html

CloudformationResource: AWS::RDS::DBSecurityGroup

ExampleMetadata: fixture=_generated

Methods

Inspect(TreeInspector)

Examines the CloudFormation resource and discloses attributes.

public virtual void Inspect(TreeInspector inspector)
Parameters
inspector TreeInspector

tree inspector to collect and process attributes.

Remarks
EC2-Classic was retired on August 15, 2022. If you haven't migrated from EC2-Classic to a VPC, we recommend that you migrate as soon as possible. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-migrate.html">Migrate from EC2-Classic to a VPC</a> in the <em>Amazon EC2 User Guide</em> , the blog <a href="https://docs.aws.amazon.com/aws/ec2-classic-is-retiring-heres-how-to-prepare/">EC2-Classic Networking is Retiring – Here’s How to Prepare</a> , and <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_VPC.Non-VPC2VPC.html">Moving a DB instance not in a VPC into a VPC</a> in the <em>Amazon RDS User Guide</em> .

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbsecuritygroup.html

CloudformationResource: AWS::RDS::DBSecurityGroup

ExampleMetadata: fixture=_generated

IsCfnDBSecurityGroup(object)

Checks whether the given object is a CfnDBSecurityGroup.

public static bool IsCfnDBSecurityGroup(object x)
Parameters
x object
Returns

bool

Remarks
EC2-Classic was retired on August 15, 2022. If you haven't migrated from EC2-Classic to a VPC, we recommend that you migrate as soon as possible. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-migrate.html">Migrate from EC2-Classic to a VPC</a> in the <em>Amazon EC2 User Guide</em> , the blog <a href="https://docs.aws.amazon.com/aws/ec2-classic-is-retiring-heres-how-to-prepare/">EC2-Classic Networking is Retiring – Here’s How to Prepare</a> , and <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_VPC.Non-VPC2VPC.html">Moving a DB instance not in a VPC into a VPC</a> in the <em>Amazon RDS User Guide</em> .

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbsecuritygroup.html

CloudformationResource: AWS::RDS::DBSecurityGroup

ExampleMetadata: fixture=_generated

RenderProperties(IDictionary<string, object>)

The AWS::RDS::DBSecurityGroup resource creates or updates an Amazon RDS DB security group.

protected override IDictionary<string, object> RenderProperties(IDictionary<string, object> props)
Parameters
props IDictionary<string, object>
Returns

IDictionary<string, object>

Overrides
CfnResource.RenderProperties(IDictionary<string, object>)
Remarks
EC2-Classic was retired on August 15, 2022. If you haven't migrated from EC2-Classic to a VPC, we recommend that you migrate as soon as possible. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-migrate.html">Migrate from EC2-Classic to a VPC</a> in the <em>Amazon EC2 User Guide</em> , the blog <a href="https://docs.aws.amazon.com/aws/ec2-classic-is-retiring-heres-how-to-prepare/">EC2-Classic Networking is Retiring – Here’s How to Prepare</a> , and <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_VPC.Non-VPC2VPC.html">Moving a DB instance not in a VPC into a VPC</a> in the <em>Amazon RDS User Guide</em> .

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbsecuritygroup.html

CloudformationResource: AWS::RDS::DBSecurityGroup

ExampleMetadata: fixture=_generated

Implements

IInspectable
IDBSecurityGroupRef
Constructs.IConstruct
Constructs.IDependable
IEnvironmentAware
ITaggable
Back to top Generated by DocFX