@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:41.422Z") @Stability(value=Stable) public class CfnDBSecurityGroupIngress extends CfnResource implements IInspectable
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 .
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();
| Modifier and Type | Class and Description |
|---|---|
static class |
CfnDBSecurityGroupIngress.Builder
A fluent builder for
CfnDBSecurityGroupIngress. |
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$Proxy| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnDBSecurityGroupIngress(software.constructs.Construct scope,
String id,
CfnDBSecurityGroupIngressProps props)
Create a new `AWS::RDS::DBSecurityGroupIngress`.
|
protected |
CfnDBSecurityGroupIngress(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnDBSecurityGroupIngress(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
protected Map<String,Object> |
getCfnProperties() |
String |
getCidrip()
The IP range to authorize.
|
String |
getDbSecurityGroupName()
The name of the DB security group to add authorization to.
|
String |
getEc2SecurityGroupId()
Id of the EC2 security group to authorize.
|
String |
getEc2SecurityGroupName()
Name of the EC2 security group to authorize.
|
String |
getEc2SecurityGroupOwnerId()
AWS account number of the owner of the EC2 security group specified in the `EC2SecurityGroupName` parameter.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setCidrip(String value)
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 the `EC2SecurityGroupName` parameter.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnDBSecurityGroupIngress(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnDBSecurityGroupIngress(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnDBSecurityGroupIngress(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
CfnDBSecurityGroupIngressProps props)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.props - - resource properties. This parameter is required.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public String getDbSecurityGroupName()
@Stability(value=Stable)
public void setDbSecurityGroupName(@NotNull
String value)
@Stability(value=Stable) @Nullable public String getCidrip()
@Stability(value=Stable)
public void setCidrip(@Nullable
String value)
@Stability(value=Stable) @Nullable public String getEc2SecurityGroupId()
For VPC DB security groups, EC2SecurityGroupId must be provided. Otherwise, EC2SecurityGroupOwnerId and either EC2SecurityGroupName or EC2SecurityGroupId must be provided.
@Stability(value=Stable)
public void setEc2SecurityGroupId(@Nullable
String value)
For VPC DB security groups, EC2SecurityGroupId must be provided. Otherwise, EC2SecurityGroupOwnerId and either EC2SecurityGroupName or EC2SecurityGroupId must be provided.
@Stability(value=Stable) @Nullable public String getEc2SecurityGroupName()
For VPC DB security groups, EC2SecurityGroupId must be provided. Otherwise, EC2SecurityGroupOwnerId and either EC2SecurityGroupName or EC2SecurityGroupId must be provided.
@Stability(value=Stable)
public void setEc2SecurityGroupName(@Nullable
String value)
For VPC DB security groups, EC2SecurityGroupId must be provided. Otherwise, EC2SecurityGroupOwnerId and either EC2SecurityGroupName or EC2SecurityGroupId must be provided.
@Stability(value=Stable) @Nullable public String getEc2SecurityGroupOwnerId()
The AWS access key ID isn't an acceptable value. For VPC DB security groups, EC2SecurityGroupId must be provided. Otherwise, EC2SecurityGroupOwnerId and either EC2SecurityGroupName or EC2SecurityGroupId must be provided.
@Stability(value=Stable)
public void setEc2SecurityGroupOwnerId(@Nullable
String value)
The AWS access key ID isn't an acceptable value. For VPC DB security groups, EC2SecurityGroupId must be provided. Otherwise, EC2SecurityGroupOwnerId and either EC2SecurityGroupName or EC2SecurityGroupId must be provided.
Copyright © 2022. All rights reserved.