Class CfnDBSecurityGroupIngress
- All Implemented Interfaces:
IConstruct,IDependable,IInspectable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct
AWS::RDS::DBSecurityGroupIngress.
The 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();
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnDBSecurityGroupIngress.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionCfnDBSecurityGroupIngress(Construct scope, String id, CfnDBSecurityGroupIngressProps props) Create a newAWS::RDS::DBSecurityGroupIngress.protectedCfnDBSecurityGroupIngress(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnDBSecurityGroupIngress(software.amazon.jsii.JsiiObjectRef objRef) -
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 theEC2SecurityGroupNameparameter.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidThe IP range to authorize.voidsetDbSecurityGroupName(String value) The name of the DB security group to add authorization to.voidsetEc2SecurityGroupId(String value) Id of the EC2 security group to authorize.voidsetEc2SecurityGroupName(String value) Name of the EC2 security group to authorize.voidsetEc2SecurityGroupOwnerId(String value) AWS account number of the owner of the EC2 security group specified in theEC2SecurityGroupNameparameter.Methods inherited from class software.amazon.awscdk.core.CfnResource
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.core.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validateMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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 Construct scope, @NotNull String id, @NotNull CfnDBSecurityGroupIngressProps props) Create a newAWS::RDS::DBSecurityGroupIngress.- Parameters:
scope-- scope in which this resource is defined.
id-- scoped id of the resource.
props-- resource properties.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector-- tree inspector to collect and process attributes.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getCfnProperties
- Overrides:
getCfnPropertiesin 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.For VPC DB security groups,
EC2SecurityGroupIdmust be provided. Otherwise,EC2SecurityGroupOwnerIdand eitherEC2SecurityGroupNameorEC2SecurityGroupIdmust be provided. -
setEc2SecurityGroupId
Id of the EC2 security group to authorize.For VPC DB security groups,
EC2SecurityGroupIdmust be provided. Otherwise,EC2SecurityGroupOwnerIdand eitherEC2SecurityGroupNameorEC2SecurityGroupIdmust be provided. -
getEc2SecurityGroupName
Name of the EC2 security group to authorize.For VPC DB security groups,
EC2SecurityGroupIdmust be provided. Otherwise,EC2SecurityGroupOwnerIdand eitherEC2SecurityGroupNameorEC2SecurityGroupIdmust be provided. -
setEc2SecurityGroupName
Name of the EC2 security group to authorize.For VPC DB security groups,
EC2SecurityGroupIdmust be provided. Otherwise,EC2SecurityGroupOwnerIdand eitherEC2SecurityGroupNameorEC2SecurityGroupIdmust be provided. -
getEc2SecurityGroupOwnerId
AWS account number of the owner of the EC2 security group specified in theEC2SecurityGroupNameparameter.The AWS access key ID isn't an acceptable value. For VPC DB security groups,
EC2SecurityGroupIdmust be provided. Otherwise,EC2SecurityGroupOwnerIdand eitherEC2SecurityGroupNameorEC2SecurityGroupIdmust be provided. -
setEc2SecurityGroupOwnerId
AWS account number of the owner of the EC2 security group specified in theEC2SecurityGroupNameparameter.The AWS access key ID isn't an acceptable value. For VPC DB security groups,
EC2SecurityGroupIdmust be provided. Otherwise,EC2SecurityGroupOwnerIdand eitherEC2SecurityGroupNameorEC2SecurityGroupIdmust be provided.
-