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
- Parameters:
scope
-- scope in which this resource is defined.
id
-- scoped id of the resource.
- 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
-
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
-
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
-
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
-
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
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnDBSecurityGroup>
- Returns:
- a newly built instance of
CfnDBSecurityGroup
.
-