Class CfnDBSecurityGroupIngress
- All Implemented Interfaces:
IInspectable
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
,software.constructs.IDependable
AWS::RDS::DBSecurityGroupIngress
resource enables ingress to a DB security group using one of two forms of authorization.
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 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 .
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.rds.*; CfnDBSecurityGroupIngress cfnDBSecurityGroupIngress = CfnDBSecurityGroupIngress.Builder.create(this, "MyCfnDBSecurityGroupIngress") .dbSecurityGroupName("dbSecurityGroupName") // the properties below are optional .cidrip("cidrip") .ec2SecurityGroupId("ec2SecurityGroupId") .ec2SecurityGroupName("ec2SecurityGroupName") .ec2SecurityGroupOwnerId("ec2SecurityGroupOwnerId") .build();
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
A fluent builder forCfnDBSecurityGroupIngress
.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ModifierConstructorDescriptionprotected
CfnDBSecurityGroupIngress
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnDBSecurityGroupIngress
(software.amazon.jsii.JsiiObjectRef objRef) CfnDBSecurityGroupIngress
(software.constructs.Construct scope, String id, CfnDBSecurityGroupIngressProps props) -
Method Summary
Modifier and TypeMethodDescriptionThe IP range to authorize.The name of the DB security group to add authorization to.Id of the EC2 security group to authorize.Name of the EC2 security group to authorize.AWS account number of the owner of the EC2 security group specified in theEC2SecurityGroupName
parameter.void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties
(Map<String, Object> props) void
The IP range to authorize.void
setDbSecurityGroupName
(String value) The name of the DB security group to add authorization to.void
setEc2SecurityGroupId
(String value) Id of the EC2 security group to authorize.void
setEc2SecurityGroupName
(String value) Name of the EC2 security group to authorize.void
setEc2SecurityGroupOwnerId
(String value) AWS account number of the owner of the EC2 security group specified in theEC2SecurityGroupName
parameter.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validateProperties
Methods inherited from class software.amazon.awscdk.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.constructs.Construct
getNode, isConstruct
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnDBSecurityGroupIngress
protected CfnDBSecurityGroupIngress(software.amazon.jsii.JsiiObjectRef objRef) -
CfnDBSecurityGroupIngress
protected CfnDBSecurityGroupIngress(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnDBSecurityGroupIngress
@Stability(Stable) public CfnDBSecurityGroupIngress(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnDBSecurityGroupIngressProps props) - Parameters:
scope
- Scope in which this resource is defined. This parameter is required.id
- Construct identifier for this resource (unique in its scope). This parameter is required.props
- Resource properties. This parameter is required.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspect
in interfaceIInspectable
- Parameters:
inspector
- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderProperties
in classCfnResource
- Parameters:
props
- This parameter is required.
-
getAttrId
-
getCfnProperties
- Overrides:
getCfnProperties
in classCfnResource
-
getDbSecurityGroupName
The name of the DB security group to add authorization to. -
setDbSecurityGroupName
The name of the DB security group to add authorization to. -
getCidrip
The IP range to authorize. -
setCidrip
The IP range to authorize. -
getEc2SecurityGroupId
Id of the EC2 security group to authorize. -
setEc2SecurityGroupId
Id of the EC2 security group to authorize. -
getEc2SecurityGroupName
Name of the EC2 security group to authorize. -
setEc2SecurityGroupName
Name of the EC2 security group to authorize. -
getEc2SecurityGroupOwnerId
AWS account number of the owner of the EC2 security group specified in theEC2SecurityGroupName
parameter. -
setEc2SecurityGroupOwnerId
AWS account number of the owner of the EC2 security group specified in theEC2SecurityGroupName
parameter.
-