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 Details

    • create

      @Stability(Stable) public static CfnDBSecurityGroupIngress.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 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
    • cidrip

      @Stability(Stable) public CfnDBSecurityGroupIngress.Builder cidrip(String cidrip)
      The IP range to authorize.

      Parameters:
      cidrip - The IP range to authorize. This parameter is required.
      Returns:
      this
    • 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 either EC2SecurityGroupName or EC2SecurityGroupId must be provided.

      Parameters:
      ec2SecurityGroupId - Id of the EC2 security group to authorize. This parameter is required.
      Returns:
      this
    • 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 either EC2SecurityGroupName or EC2SecurityGroupId must be provided.

      Parameters:
      ec2SecurityGroupName - Name of the EC2 security group to authorize. This parameter is required.
      Returns:
      this
    • ec2SecurityGroupOwnerId

      @Stability(Stable) public CfnDBSecurityGroupIngress.Builder ec2SecurityGroupOwnerId(String ec2SecurityGroupOwnerId)
      AWS account number of the owner of the EC2 security group specified in the EC2SecurityGroupName parameter.

      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.

      Parameters:
      ec2SecurityGroupOwnerId - AWS account number of the owner of the EC2 security group specified in the EC2SecurityGroupName parameter. This parameter is required.
      Returns:
      this
    • build

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