@Stability(value=Stable) public static final class CfnSecurityGroup.Builder extends Object implements software.amazon.jsii.Builder<CfnSecurityGroup>
CfnSecurityGroup.| Modifier and Type | Method and Description |
|---|---|
CfnSecurityGroup |
build() |
static CfnSecurityGroup.Builder |
create(software.constructs.Construct scope,
String id) |
CfnSecurityGroup.Builder |
groupDescription(String groupDescription)
A description for the security group.
|
CfnSecurityGroup.Builder |
groupName(String groupName)
The name of the security group.
|
CfnSecurityGroup.Builder |
securityGroupEgress(IResolvable securityGroupEgress)
[VPC only] The outbound rules associated with the security group.
|
CfnSecurityGroup.Builder |
securityGroupEgress(List<? extends Object> securityGroupEgress)
[VPC only] The outbound rules associated with the security group.
|
CfnSecurityGroup.Builder |
securityGroupIngress(IResolvable securityGroupIngress)
The inbound rules associated with the security group.
|
CfnSecurityGroup.Builder |
securityGroupIngress(List<? extends Object> securityGroupIngress)
The inbound rules associated with the security group.
|
CfnSecurityGroup.Builder |
tags(List<? extends CfnTag> tags)
Any tags assigned to the security group.
|
CfnSecurityGroup.Builder |
vpcId(String vpcId)
[VPC only] The ID of the VPC for the security group.
|
@Stability(value=Stable) public static CfnSecurityGroup.Builder create(software.constructs.Construct scope, String id)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.CfnSecurityGroup.EgressProperty.Builder.@Stability(value=Stable) public CfnSecurityGroup.Builder groupDescription(String groupDescription)
Constraints: Up to 255 characters in length
Constraints for EC2-Classic: ASCII characters
Constraints for EC2-VPC: a-z, A-Z, 0-9, spaces, and ._-:/()#,@[]+=&;{}!$*
groupDescription - A description for the security group. This is informational only. This parameter is required.this@Stability(value=Stable) public CfnSecurityGroup.Builder groupName(String groupName)
Constraints: Up to 255 characters in length. Cannot start with sg- .
Constraints for EC2-Classic: ASCII characters
Constraints for EC2-VPC: a-z, A-Z, 0-9, spaces, and ._-:/()#,@[]+=&;{}!$*
groupName - The name of the security group. This parameter is required.this@Stability(value=Stable) public CfnSecurityGroup.Builder securityGroupEgress(IResolvable securityGroupEgress)
There is a short interruption during which you cannot connect to the security group.
securityGroupEgress - [VPC only] The outbound rules associated with the security group. This parameter is required.this@Stability(value=Stable) public CfnSecurityGroup.Builder securityGroupEgress(List<? extends Object> securityGroupEgress)
There is a short interruption during which you cannot connect to the security group.
securityGroupEgress - [VPC only] The outbound rules associated with the security group. This parameter is required.this@Stability(value=Stable) public CfnSecurityGroup.Builder securityGroupIngress(IResolvable securityGroupIngress)
There is a short interruption during which you cannot connect to the security group.
securityGroupIngress - The inbound rules associated with the security group. This parameter is required.this@Stability(value=Stable) public CfnSecurityGroup.Builder securityGroupIngress(List<? extends Object> securityGroupIngress)
There is a short interruption during which you cannot connect to the security group.
securityGroupIngress - The inbound rules associated with the security group. This parameter is required.this@Stability(value=Stable) public CfnSecurityGroup.Builder tags(List<? extends CfnTag> tags)
tags - Any tags assigned to the security group. This parameter is required.this@Stability(value=Stable) public CfnSecurityGroup.Builder vpcId(String vpcId)
vpcId - [VPC only] The ID of the VPC for the security group. This parameter is required.this@Stability(value=Stable) public CfnSecurityGroup build()
build in interface software.amazon.jsii.Builder<CfnSecurityGroup>Copyright © 2022. All rights reserved.