@Generated(value="jsii-pacmak/1.29.0 (build 41df200)", date="2021-06-02T09:55:17.113Z") @Stability(value=Experimental) public interface SecurityGroupProps extends software.amazon.jsii.JsiiSerializable
| Modifier and Type | Interface and Description |
|---|---|
static class |
SecurityGroupProps.Builder
A builder for
SecurityGroupProps |
static class |
SecurityGroupProps.Jsii$Proxy
An implementation for
SecurityGroupProps |
| Modifier and Type | Method and Description |
|---|---|
static SecurityGroupProps.Builder |
builder() |
default Boolean |
getAllowAllOutbound()
(experimental) Whether to allow all outbound traffic by default.
|
default String |
getDescription()
(experimental) A description of the security group.
|
default Boolean |
getDisableInlineRules()
(experimental) Whether to disable inline ingress and egress rule optimization.
|
default String |
getSecurityGroupName()
(experimental) The name of the security group.
|
IVpc |
getVpc()
(experimental) The VPC in which to create the security group.
|
@Stability(value=Experimental) @NotNull IVpc getVpc()
@Stability(value=Experimental) @Nullable default Boolean getAllowAllOutbound()
If this is set to true, there will only be a single egress rule which allows all outbound traffic. If this is set to false, no outbound traffic will be allowed by default and all egress traffic must be explicitly authorized.
Default: true
@Stability(value=Experimental) @Nullable default String getDescription()
Default: The default name will be the construct's CDK path.
@Stability(value=Experimental) @Nullable default Boolean getDisableInlineRules()
If this is set to true, ingress and egress rules will not be declared under the SecurityGroup in cloudformation, but will be separate elements.
Inlining rules is an optimization for producing smaller stack templates. Sometimes this is not desirable, for example when security group access is managed via tags.
The default value can be overriden globally by setting the context variable '@aws-cdk/aws-ec2.securityGroupDisableInlineRules'.
Default: false
@Stability(value=Experimental) @Nullable default String getSecurityGroupName()
For valid values, see the GroupName parameter of the CreateSecurityGroup action in the Amazon EC2 API Reference.
It is not recommended to use an explicit group name.
Default: If you don't specify a GroupName, AWS CloudFormation generates a unique physical ID and uses that ID for the group name.
@Stability(value=Experimental) static SecurityGroupProps.Builder builder()
SecurityGroupProps.Builder of SecurityGroupPropsCopyright © 2021. All rights reserved.