Class CfnDBSecurityGroupIngress
The AWS::RDS::DBSecurityGroupIngress
resource enables ingress to a DB security group using one of two forms of authorization.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.RDS
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnDBSecurityGroupIngress : CfnResource, IInspectable
Syntax (vb)
Public Class CfnDBSecurityGroupIngress Inherits CfnResource Implements IInspectable
Remarks
First, you can add EC2 or VPC security groups to the DB security group if the application using the database is running on EC2 or VPC instances. Second, IP ranges are available if the application accessing your database is running on the Internet.
This type supports updates. For more information about updating stacks, see AWS CloudFormation Stacks Updates .
For details about the settings for DB security group ingress, see AuthorizeDBSecurityGroupIngress .
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> .
CloudformationResource: AWS::RDS::DBSecurityGroupIngress
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 cfnDBSecurityGroupIngress = new CfnDBSecurityGroupIngress(this, "MyCfnDBSecurityGroupIngress", new CfnDBSecurityGroupIngressProps {
DbSecurityGroupName = "dbSecurityGroupName",
// the properties below are optional
Cidrip = "cidrip",
Ec2SecurityGroupId = "ec2SecurityGroupId",
Ec2SecurityGroupName = "ec2SecurityGroupName",
Ec2SecurityGroupOwnerId = "ec2SecurityGroupOwnerId"
});
Synopsis
Constructors
CfnDBSecurityGroupIngress(Construct, string, ICfnDBSecurityGroupIngressProps) | The |
Properties
AttrId | The |
CFN_RESOURCE_TYPE_NAME | The CloudFormation resource type name for this resource class. |
CfnProperties | The |
Cidrip | The IP range to authorize. |
DbSecurityGroupName | The name of the DB security group to add authorization to. |
Ec2SecurityGroupId | Id of the EC2 security group to authorize. |
Ec2SecurityGroupName | Name of the EC2 security group to authorize. |
Ec2SecurityGroupOwnerId | AWS account number of the owner of the EC2 security group specified in the |
Methods
Inspect(TreeInspector) | Examines the CloudFormation resource and discloses attributes. |
RenderProperties(IDictionary<string, object>) | The |
Constructors
CfnDBSecurityGroupIngress(Construct, string, ICfnDBSecurityGroupIngressProps)
The AWS::RDS::DBSecurityGroupIngress
resource enables ingress to a DB security group using one of two forms of authorization.
public CfnDBSecurityGroupIngress(Construct scope, string id, ICfnDBSecurityGroupIngressProps props)
Parameters
- scope Construct
Scope in which this resource is defined.
- id string
Construct identifier for this resource (unique in its scope).
- props ICfnDBSecurityGroupIngressProps
Resource properties.
Remarks
First, you can add EC2 or VPC security groups to the DB security group if the application using the database is running on EC2 or VPC instances. Second, IP ranges are available if the application accessing your database is running on the Internet.
This type supports updates. For more information about updating stacks, see AWS CloudFormation Stacks Updates .
For details about the settings for DB security group ingress, see AuthorizeDBSecurityGroupIngress .
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> .
CloudformationResource: AWS::RDS::DBSecurityGroupIngress
ExampleMetadata: fixture=_generated
Properties
AttrId
The AWS::RDS::DBSecurityGroupIngress
resource enables ingress to a DB security group using one of two forms of authorization.
public virtual string AttrId { get; }
Property Value
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
Remarks
First, you can add EC2 or VPC security groups to the DB security group if the application using the database is running on EC2 or VPC instances. Second, IP ranges are available if the application accessing your database is running on the Internet.
This type supports updates. For more information about updating stacks, see AWS CloudFormation Stacks Updates .
For details about the settings for DB security group ingress, see AuthorizeDBSecurityGroupIngress .
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> .
CloudformationResource: AWS::RDS::DBSecurityGroupIngress
ExampleMetadata: fixture=_generated
CfnProperties
The AWS::RDS::DBSecurityGroupIngress
resource enables ingress to a DB security group using one of two forms of authorization.
protected override IDictionary<string, object> CfnProperties { get; }
Property Value
Overrides
Remarks
First, you can add EC2 or VPC security groups to the DB security group if the application using the database is running on EC2 or VPC instances. Second, IP ranges are available if the application accessing your database is running on the Internet.
This type supports updates. For more information about updating stacks, see AWS CloudFormation Stacks Updates .
For details about the settings for DB security group ingress, see AuthorizeDBSecurityGroupIngress .
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> .
CloudformationResource: AWS::RDS::DBSecurityGroupIngress
ExampleMetadata: fixture=_generated
Cidrip
The IP range to authorize.
public virtual string? Cidrip { get; set; }
Property Value
Remarks
First, you can add EC2 or VPC security groups to the DB security group if the application using the database is running on EC2 or VPC instances. Second, IP ranges are available if the application accessing your database is running on the Internet.
This type supports updates. For more information about updating stacks, see AWS CloudFormation Stacks Updates .
For details about the settings for DB security group ingress, see AuthorizeDBSecurityGroupIngress .
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> .
CloudformationResource: AWS::RDS::DBSecurityGroupIngress
ExampleMetadata: fixture=_generated
DbSecurityGroupName
The name of the DB security group to add authorization to.
public virtual string DbSecurityGroupName { get; set; }
Property Value
Remarks
First, you can add EC2 or VPC security groups to the DB security group if the application using the database is running on EC2 or VPC instances. Second, IP ranges are available if the application accessing your database is running on the Internet.
This type supports updates. For more information about updating stacks, see AWS CloudFormation Stacks Updates .
For details about the settings for DB security group ingress, see AuthorizeDBSecurityGroupIngress .
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> .
CloudformationResource: AWS::RDS::DBSecurityGroupIngress
ExampleMetadata: fixture=_generated
Ec2SecurityGroupId
Id of the EC2 security group to authorize.
public virtual string? Ec2SecurityGroupId { get; set; }
Property Value
Remarks
First, you can add EC2 or VPC security groups to the DB security group if the application using the database is running on EC2 or VPC instances. Second, IP ranges are available if the application accessing your database is running on the Internet.
This type supports updates. For more information about updating stacks, see AWS CloudFormation Stacks Updates .
For details about the settings for DB security group ingress, see AuthorizeDBSecurityGroupIngress .
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> .
CloudformationResource: AWS::RDS::DBSecurityGroupIngress
ExampleMetadata: fixture=_generated
Ec2SecurityGroupName
Name of the EC2 security group to authorize.
public virtual string? Ec2SecurityGroupName { get; set; }
Property Value
Remarks
First, you can add EC2 or VPC security groups to the DB security group if the application using the database is running on EC2 or VPC instances. Second, IP ranges are available if the application accessing your database is running on the Internet.
This type supports updates. For more information about updating stacks, see AWS CloudFormation Stacks Updates .
For details about the settings for DB security group ingress, see AuthorizeDBSecurityGroupIngress .
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> .
CloudformationResource: AWS::RDS::DBSecurityGroupIngress
ExampleMetadata: fixture=_generated
Ec2SecurityGroupOwnerId
AWS account number of the owner of the EC2 security group specified in the EC2SecurityGroupName
parameter.
public virtual string? Ec2SecurityGroupOwnerId { get; set; }
Property Value
Remarks
First, you can add EC2 or VPC security groups to the DB security group if the application using the database is running on EC2 or VPC instances. Second, IP ranges are available if the application accessing your database is running on the Internet.
This type supports updates. For more information about updating stacks, see AWS CloudFormation Stacks Updates .
For details about the settings for DB security group ingress, see AuthorizeDBSecurityGroupIngress .
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> .
CloudformationResource: AWS::RDS::DBSecurityGroupIngress
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
First, you can add EC2 or VPC security groups to the DB security group if the application using the database is running on EC2 or VPC instances. Second, IP ranges are available if the application accessing your database is running on the Internet.
This type supports updates. For more information about updating stacks, see AWS CloudFormation Stacks Updates .
For details about the settings for DB security group ingress, see AuthorizeDBSecurityGroupIngress .
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> .
CloudformationResource: AWS::RDS::DBSecurityGroupIngress
ExampleMetadata: fixture=_generated
RenderProperties(IDictionary<string, object>)
The AWS::RDS::DBSecurityGroupIngress
resource enables ingress to a DB security group using one of two forms of authorization.
protected override IDictionary<string, object> RenderProperties(IDictionary<string, object> props)
Parameters
- props IDictionary<string, object>
Returns
Overrides
Remarks
First, you can add EC2 or VPC security groups to the DB security group if the application using the database is running on EC2 or VPC instances. Second, IP ranges are available if the application accessing your database is running on the Internet.
This type supports updates. For more information about updating stacks, see AWS CloudFormation Stacks Updates .
For details about the settings for DB security group ingress, see AuthorizeDBSecurityGroupIngress .
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> .
CloudformationResource: AWS::RDS::DBSecurityGroupIngress
ExampleMetadata: fixture=_generated