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 Summary
Modifier and TypeMethodDescriptionbuild()
cacheSecurityGroupName
(String cacheSecurityGroupName) The name of the Cache Security Group to authorize.ec2SecurityGroupName
(String ec2SecurityGroupName) Name of the EC2 Security Group to include in the authorization.ec2SecurityGroupOwnerId
(String ec2SecurityGroupOwnerId) Specifies the Amazon Account ID of the owner of the EC2 security group specified in the EC2SecurityGroupName property.
-
Method Details
-
create
- Parameters:
scope
-- scope in which this resource is defined.
id
-- scoped id of the resource.
- 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
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnSecurityGroupIngress>
- Returns:
- a newly built instance of
CfnSecurityGroupIngress
.
-