Class CfnSecurityGroupIngress.Builder

java.lang.Object
software.amazon.awscdk.services.elasticache.CfnSecurityGroupIngress.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSecurityGroupIngress>
Enclosing class:
CfnSecurityGroupIngress

@Stability(Stable) public static final class CfnSecurityGroupIngress.Builder extends Object implements software.amazon.jsii.Builder<CfnSecurityGroupIngress>
A fluent builder for CfnSecurityGroupIngress.
  • Method Details

    • create

      @Stability(Stable) public static CfnSecurityGroupIngress.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 CfnSecurityGroupIngress.Builder.
    • cacheSecurityGroupName

      @Stability(Stable) public CfnSecurityGroupIngress.Builder cacheSecurityGroupName(String cacheSecurityGroupName)
      The name of the Cache Security Group to authorize.

      Parameters:
      cacheSecurityGroupName - The name of the Cache Security Group to authorize. This parameter is required.
      Returns:
      this
    • ec2SecurityGroupName

      @Stability(Stable) public CfnSecurityGroupIngress.Builder ec2SecurityGroupName(String ec2SecurityGroupName)
      Name of the EC2 Security Group to include in the authorization.

      Parameters:
      ec2SecurityGroupName - Name of the EC2 Security Group to include in the authorization. This parameter is required.
      Returns:
      this
    • ec2SecurityGroupOwnerId

      @Stability(Stable) public CfnSecurityGroupIngress.Builder ec2SecurityGroupOwnerId(String ec2SecurityGroupOwnerId)
      Specifies the Amazon Account ID of the owner of the EC2 security group specified in the EC2SecurityGroupName property.

      The Amazon access key ID is not an acceptable value.

      Parameters:
      ec2SecurityGroupOwnerId - Specifies the Amazon Account ID of the owner of the EC2 security group specified in the EC2SecurityGroupName property. This parameter is required.
      Returns:
      this
    • build

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