Class CfnDBSecurityGroup
A CloudFormation AWS::RDS::DBSecurityGroup
.
Inherited Members
Namespace: Amazon.CDK.AWS.RDS
Assembly: Amazon.CDK.AWS.RDS.dll
Syntax (csharp)
public class CfnDBSecurityGroup : CfnResource, IConstruct, IDependable, IInspectable
Syntax (vb)
Public Class CfnDBSecurityGroup
Inherits CfnResource
Implements IConstruct, IDependable, IInspectable
Remarks
The AWS::RDS::DBSecurityGroup
resource creates or updates an Amazon RDS DB security group.
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 .
CloudformationResource: AWS::RDS::DBSecurityGroup
Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-security-group.html
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 |
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 |
Properties
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. This property indicates the VPC that this DB security group belongs to. |
GroupDescription | Provides the description of the DB security group. |
Tags | 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(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 System.String
- scoped id of the resource.
- props ICfnDBSecurityGroupProps
- resource properties.
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
Properties
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
Remarks
Ec2VpcId
The identifier of an Amazon VPC. This property indicates the VPC that this DB security group belongs to.
public virtual string Ec2VpcId { get; set; }
Property Value
System.String
Remarks
The EC2VpcId
property is for backward compatibility with older regions, and is no longer recommended for providing security information to an RDS DB instance.
GroupDescription
Provides the description of the DB security group.
public virtual string GroupDescription { get; set; }
Property Value
System.String
Remarks
Tags
An optional array of key-value pairs to apply to this DB security group.
public virtual TagManager Tags { get; }
Property Value
Remarks
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>