Class CfnDBSecurityGroupIngress.Builder
java.lang.Object
software.amazon.awscdk.services.rds.CfnDBSecurityGroupIngress.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDBSecurityGroupIngress>
- Enclosing class:
CfnDBSecurityGroupIngress
@Stability(Stable)
public static final class CfnDBSecurityGroupIngress.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDBSecurityGroupIngress>
A fluent builder for
CfnDBSecurityGroupIngress
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
The IP range to authorize.dbSecurityGroupName
(String dbSecurityGroupName) The name of the DB security group to add authorization to.ec2SecurityGroupId
(String ec2SecurityGroupId) Id of the EC2 security group to authorize.ec2SecurityGroupName
(String ec2SecurityGroupName) Name of the EC2 security group to authorize.ec2SecurityGroupOwnerId
(String ec2SecurityGroupOwnerId) AWS account number of the owner of the EC2 security group specified in theEC2SecurityGroupName
parameter.
-
Method Details
-
create
@Stability(Stable) public static CfnDBSecurityGroupIngress.Builder create(software.constructs.Construct scope, String id) - 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.- Returns:
- a new instance of
CfnDBSecurityGroupIngress.Builder
.
-
dbSecurityGroupName
@Stability(Stable) public CfnDBSecurityGroupIngress.Builder dbSecurityGroupName(String dbSecurityGroupName) The name of the DB security group to add authorization to.- Parameters:
dbSecurityGroupName
- The name of the DB security group to add authorization to. This parameter is required.- Returns:
this
- See Also:
-
cidrip
The IP range to authorize.- Parameters:
cidrip
- The IP range to authorize. This parameter is required.- Returns:
this
- See Also:
-
ec2SecurityGroupId
@Stability(Stable) public CfnDBSecurityGroupIngress.Builder ec2SecurityGroupId(String ec2SecurityGroupId) Id of the EC2 security group to authorize.For VPC DB security groups,
EC2SecurityGroupId
must be provided. Otherwise,EC2SecurityGroupOwnerId
and eitherEC2SecurityGroupName
orEC2SecurityGroupId
must be provided.- Parameters:
ec2SecurityGroupId
- Id of the EC2 security group to authorize. This parameter is required.- Returns:
this
- See Also:
-
ec2SecurityGroupName
@Stability(Stable) public CfnDBSecurityGroupIngress.Builder ec2SecurityGroupName(String ec2SecurityGroupName) Name of the EC2 security group to authorize.For VPC DB security groups,
EC2SecurityGroupId
must be provided. Otherwise,EC2SecurityGroupOwnerId
and eitherEC2SecurityGroupName
orEC2SecurityGroupId
must be provided.- Parameters:
ec2SecurityGroupName
- Name of the EC2 security group to authorize. This parameter is required.- Returns:
this
- See Also:
-
ec2SecurityGroupOwnerId
@Stability(Stable) public CfnDBSecurityGroupIngress.Builder ec2SecurityGroupOwnerId(String ec2SecurityGroupOwnerId) AWS account number of the owner of the EC2 security group specified in theEC2SecurityGroupName
parameter.The AWS access key ID isn't an acceptable value. For VPC DB security groups,
EC2SecurityGroupId
must be provided. Otherwise,EC2SecurityGroupOwnerId
and eitherEC2SecurityGroupName
orEC2SecurityGroupId
must be provided.- Parameters:
ec2SecurityGroupOwnerId
- AWS account number of the owner of the EC2 security group specified in theEC2SecurityGroupName
parameter. This parameter is required.- Returns:
this
- See Also:
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnDBSecurityGroupIngress>
- Returns:
- a newly built instance of
CfnDBSecurityGroupIngress
.
-