Class CfnSecurityGroupPropsMixin.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.ec2.CfnSecurityGroupPropsMixin.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSecurityGroupPropsMixin>
- Enclosing class:
CfnSecurityGroupPropsMixin
@Stability(Stable)
public static final class CfnSecurityGroupPropsMixin.Builder
extends Object
implements software.amazon.jsii.Builder<CfnSecurityGroupPropsMixin>
A fluent builder for
CfnSecurityGroupPropsMixin.-
Method Summary
Modifier and TypeMethodDescriptionbuild()create()create(CfnPropertyMixinOptions options) groupDescription(String groupDescription) A description for the security group.The name of the security group.securityGroupEgress(List<? extends Object> securityGroupEgress) The outbound rules associated with the security group.securityGroupEgress(IResolvable securityGroupEgress) The outbound rules associated with the security group.securityGroupIngress(List<? extends Object> securityGroupIngress) The inbound rules associated with the security group.securityGroupIngress(IResolvable securityGroupIngress) The inbound rules associated with the security group.Any tags assigned to the security group.The ID of the VPC for the security group.The ID of the VPC for the security group.
-
Method Details
-
create
@Stability(Stable) public static CfnSecurityGroupPropsMixin.Builder create(CfnPropertyMixinOptions options) - Parameters:
options- Mixin options.- Returns:
- a new instance of
CfnSecurityGroupPropsMixin.Builder.
-
create
- Returns:
- a new instance of
CfnSecurityGroupPropsMixin.Builder.
-
groupDescription
@Stability(Stable) public CfnSecurityGroupPropsMixin.Builder groupDescription(String groupDescription) A description for the security group.Constraints: Up to 255 characters in length
Valid characters: a-z, A-Z, 0-9, spaces, and ._-:/()#,@[]+=&;{}!$*
- Parameters:
groupDescription- A description for the security group. This parameter is required.- Returns:
this- See Also:
-
groupName
The name of the security group. Names are case-insensitive and must be unique within the VPC.Constraints: Up to 255 characters in length. Can't start with
sg-.Valid characters: a-z, A-Z, 0-9, spaces, and ._-:/()#,@[]+=&;{}!$*
- Parameters:
groupName- The name of the security group. Names are case-insensitive and must be unique within the VPC. This parameter is required.- Returns:
this- See Also:
-
securityGroupEgress
@Stability(Stable) public CfnSecurityGroupPropsMixin.Builder securityGroupEgress(IResolvable securityGroupEgress) The outbound rules associated with the security group.- Parameters:
securityGroupEgress- The outbound rules associated with the security group. This parameter is required.- Returns:
this- See Also:
-
securityGroupEgress
@Stability(Stable) public CfnSecurityGroupPropsMixin.Builder securityGroupEgress(List<? extends Object> securityGroupEgress) The outbound rules associated with the security group.- Parameters:
securityGroupEgress- The outbound rules associated with the security group. This parameter is required.- Returns:
this- See Also:
-
securityGroupIngress
@Stability(Stable) public CfnSecurityGroupPropsMixin.Builder securityGroupIngress(IResolvable securityGroupIngress) The inbound rules associated with the security group.- Parameters:
securityGroupIngress- The inbound rules associated with the security group. This parameter is required.- Returns:
this- See Also:
-
securityGroupIngress
@Stability(Stable) public CfnSecurityGroupPropsMixin.Builder securityGroupIngress(List<? extends Object> securityGroupIngress) The inbound rules associated with the security group.- Parameters:
securityGroupIngress- The inbound rules associated with the security group. This parameter is required.- Returns:
this- See Also:
-
tags
Any tags assigned to the security group.- Parameters:
tags- Any tags assigned to the security group. This parameter is required.- Returns:
this- See Also:
-
vpcId
The ID of the VPC for the security group.If you do not specify a VPC, the default is to use the default VPC for the Region. If there's no specified VPC and no default VPC, security group creation fails.
- Parameters:
vpcId- The ID of the VPC for the security group. This parameter is required.- Returns:
this- See Also:
-
vpcId
The ID of the VPC for the security group.If you do not specify a VPC, the default is to use the default VPC for the Region. If there's no specified VPC and no default VPC, security group creation fails.
- Parameters:
vpcId- The ID of the VPC for the security group. This parameter is required.- Returns:
this- See Also:
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnSecurityGroupPropsMixin>- Returns:
- a newly built instance of
CfnSecurityGroupPropsMixin.
-