Class CfnDBSecurityGroup.Builder
java.lang.Object
software.amazon.awscdk.services.rds.CfnDBSecurityGroup.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDBSecurityGroup>
- Enclosing class:
CfnDBSecurityGroup
@Stability(Stable)
public static final class CfnDBSecurityGroup.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDBSecurityGroup>
A fluent builder for
CfnDBSecurityGroup
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
static CfnDBSecurityGroup.Builder
dbSecurityGroupIngress
(List<? extends Object> dbSecurityGroupIngress) Ingress rules to be applied to the DB security group.dbSecurityGroupIngress
(IResolvable dbSecurityGroupIngress) Ingress rules to be applied to the DB security group.The identifier of an Amazon VPC.groupDescription
(String groupDescription) Provides the description of the DB security group.An optional array of key-value pairs to apply to this DB security group.
-
Method Details
-
create
@Stability(Stable) public static CfnDBSecurityGroup.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
CfnDBSecurityGroup.Builder
.
-
dbSecurityGroupIngress
@Stability(Stable) public CfnDBSecurityGroup.Builder dbSecurityGroupIngress(IResolvable dbSecurityGroupIngress) Ingress rules to be applied to the DB security group.- Parameters:
dbSecurityGroupIngress
- Ingress rules to be applied to the DB security group. This parameter is required.- Returns:
this
- See Also:
-
dbSecurityGroupIngress
@Stability(Stable) public CfnDBSecurityGroup.Builder dbSecurityGroupIngress(List<? extends Object> dbSecurityGroupIngress) Ingress rules to be applied to the DB security group.- Parameters:
dbSecurityGroupIngress
- Ingress rules to be applied to the DB security group. This parameter is required.- Returns:
this
- See Also:
-
groupDescription
Provides the description of the DB security group.- Parameters:
groupDescription
- Provides the description of the DB security group. This parameter is required.- Returns:
this
- See Also:
-
ec2VpcId
The identifier of an Amazon VPC. This property indicates the VPC that this DB security group belongs to.The
EC2VpcId
property is for backward compatibility with older regions, and is no longer recommended for providing security information to an RDS DB instance.- Parameters:
ec2VpcId
- The identifier of an Amazon VPC. This property indicates the VPC that this DB security group belongs to. This parameter is required.- Returns:
this
- See Also:
-
tags
An optional array of key-value pairs to apply to this DB security group.- Parameters:
tags
- An optional array of key-value pairs to apply to this DB security group. This parameter is required.- Returns:
this
- See Also:
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnDBSecurityGroup>
- Returns:
- a newly built instance of
CfnDBSecurityGroup
.
-