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 Details

    • create

      @Stability(Stable) public static CfnDBSecurityGroup.Builder create(Construct scope, String id)
      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      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
    • 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

      @Stability(Stable) public CfnDBSecurityGroup.Builder groupDescription(String 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

      @Stability(Stable) public CfnDBSecurityGroup.Builder ec2VpcId(String 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

      @Stability(Stable) public CfnDBSecurityGroup.Builder tags(List<? extends CfnTag> 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

      @Stability(Stable) public CfnDBSecurityGroup build()
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnDBSecurityGroup>
      Returns:
      a newly built instance of CfnDBSecurityGroup.