Class CfnDBSecurityGroup
The AWS::RDS::DBSecurityGroup
resource creates or updates an Amazon RDS DB security group.
Inherited Members
Namespace: Amazon.CDK.AWS.RDS
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnDBSecurityGroup : CfnResource, IInspectable, ITaggable
Syntax (vb)
Public Class CfnDBSecurityGroup
Inherits CfnResource
Implements IInspectable, 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 Migrate from EC2-Classic to a VPC in the Amazon EC2 User Guide , the blog EC2-Classic Networking is Retiring – Here’s How to Prepare , and Moving a DB instance not in a VPC into a VPC in the Amazon RDS User Guide .
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(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
CfnDBSecurityGroup(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
CfnDBSecurityGroup(Construct, String, ICfnDBSecurityGroupProps) |
Properties
AttrId | |
CFN_RESOURCE_TYPE_NAME | The CloudFormation resource type name for this resource class. |
CfnProperties | |
DbSecurityGroupIngress | Ingress rules to be applied to the DB security group. |
Ec2VpcId | The identifier of an Amazon VPC. |
GroupDescription | Provides the description of the DB security group. |
Tags | Tag Manager which manages the tags for this resource. |
TagsRaw | An optional array of key-value pairs to apply to this DB security group. |
Methods
Inspect(TreeInspector) | Examines the CloudFormation resource and discloses attributes. |
RenderProperties(IDictionary<String, Object>) |
Constructors
CfnDBSecurityGroup(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected CfnDBSecurityGroup(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
CfnDBSecurityGroup(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected CfnDBSecurityGroup(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
CfnDBSecurityGroup(Construct, String, ICfnDBSecurityGroupProps)
public CfnDBSecurityGroup(Construct scope, string id, ICfnDBSecurityGroupProps props)
Parameters
- scope Constructs.Construct
Scope in which this resource is defined.
- id System.String
Construct identifier for this resource (unique in its scope).
- props ICfnDBSecurityGroupProps
Resource properties.
Properties
AttrId
public virtual string AttrId { get; }
Property Value
System.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
System.String
CfnProperties
protected override IDictionary<string, object> CfnProperties { get; }
Property Value
System.Collections.Generic.IDictionary<System.String, System.Object>
Overrides
DbSecurityGroupIngress
Ingress rules to be applied to the DB security group.
public virtual object DbSecurityGroupIngress { get; set; }
Property Value
System.Object
Ec2VpcId
The identifier of an Amazon VPC.
public virtual string Ec2VpcId { get; set; }
Property Value
System.String
Remarks
This property indicates the VPC that this DB security group belongs to.
GroupDescription
Provides the description of the DB security group.
public virtual string GroupDescription { get; set; }
Property Value
System.String
Tags
Tag Manager which manages the tags for this resource.
public virtual TagManager Tags { get; }
Property Value
TagsRaw
An optional array of key-value pairs to apply to this DB security group.
public virtual ICfnTag[] TagsRaw { get; set; }
Property Value
ICfnTag[]
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.
RenderProperties(IDictionary<String, Object>)
protected override IDictionary<string, object> RenderProperties(IDictionary<string, object> props)
Parameters
- props System.Collections.Generic.IDictionary<System.String, System.Object>
Returns
System.Collections.Generic.IDictionary<System.String, System.Object>