@Generated(value="jsii-pacmak/0.17.0 (build 7d5d104)", date="2019-09-20T09:56:19.053Z") @Stability(value=Stable) public class SecurityGroup extends software.amazon.awscdk.core.Resource implements ISecurityGroup
software.amazon.jsii.JsiiObject.InitializationMode
ISecurityGroup.Jsii$Proxy
Modifier | Constructor and Description |
---|---|
|
SecurityGroup(software.amazon.awscdk.core.Construct scope,
String id,
SecurityGroupProps props) |
protected |
SecurityGroup(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
SecurityGroup(software.amazon.jsii.JsiiObjectRef objRef) |
Modifier and Type | Method and Description |
---|---|
void |
addEgressRule(IPeer peer,
Port connection)
Add an egress rule for the current security group.
|
void |
addEgressRule(IPeer peer,
Port connection,
String description)
Add an egress rule for the current security group.
|
void |
addEgressRule(IPeer peer,
Port connection,
String description,
Boolean remoteRule)
Add an egress rule for the current security group.
|
void |
addIngressRule(IPeer peer,
Port connection)
Add an ingress rule for the current security group.
|
void |
addIngressRule(IPeer peer,
Port connection,
String description)
Add an ingress rule for the current security group.
|
void |
addIngressRule(IPeer peer,
Port connection,
String description,
Boolean remoteRule)
Add an ingress rule for the current security group.
|
static ISecurityGroup |
fromSecurityGroupId(software.amazon.awscdk.core.Construct scope,
String id,
String securityGroupId)
Import an existing security group into this app.
|
static ISecurityGroup |
fromSecurityGroupId(software.amazon.awscdk.core.Construct scope,
String id,
String securityGroupId,
SecurityGroupImportOptions options)
Import an existing security group into this app.
|
Boolean |
getCanInlineRule()
Whether the rule can be inlined into a SecurityGroup or not.
|
Connections |
getConnections() |
Port |
getDefaultPort() |
String |
getSecurityGroupId()
The ID of the security group.
|
String |
getSecurityGroupName()
An attribute that represents the security group name.
|
String |
getSecurityGroupVpcId()
The VPC ID this security group is part of.
|
String |
getUniqueId()
A unique identifier for this connection peer.
|
static Boolean |
isSecurityGroup(Object x)
Return whether the indicated object is a security group.
|
Object |
toEgressRuleConfig()
Produce the egress rule JSON for the given connection.
|
Object |
toIngressRuleConfig()
Produce the ingress rule JSON for the given connection.
|
generatePhysicalName, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack
getNode, isConstruct, prepare, synthesize, toString, validate
jsiiAsyncCall, jsiiCall, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticGet, jsiiStaticSet, setObjRef
protected SecurityGroup(software.amazon.jsii.JsiiObjectRef objRef)
protected SecurityGroup(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable) public SecurityGroup(software.amazon.awscdk.core.Construct scope, String id, SecurityGroupProps props)
scope
- This parameter is required.id
- This parameter is required.props
- This parameter is required.@Stability(value=Stable) public static ISecurityGroup fromSecurityGroupId(software.amazon.awscdk.core.Construct scope, String id, String securityGroupId, SecurityGroupImportOptions options)
scope
- This parameter is required.id
- This parameter is required.securityGroupId
- This parameter is required.options
- @Stability(value=Stable) public static ISecurityGroup fromSecurityGroupId(software.amazon.awscdk.core.Construct scope, String id, String securityGroupId)
scope
- This parameter is required.id
- This parameter is required.securityGroupId
- This parameter is required.@Stability(value=Stable) public static Boolean isSecurityGroup(Object x)
x
- This parameter is required.@Stability(value=Stable) public void addEgressRule(IPeer peer, Port connection, String description, Boolean remoteRule)
addEgressRule
in interface ISecurityGroup
peer
- This parameter is required.connection
- This parameter is required.description
- remoteRule
- @Stability(value=Stable) public void addEgressRule(IPeer peer, Port connection, String description)
addEgressRule
in interface ISecurityGroup
peer
- This parameter is required.connection
- This parameter is required.description
- @Stability(value=Stable) public void addEgressRule(IPeer peer, Port connection)
addEgressRule
in interface ISecurityGroup
peer
- This parameter is required.connection
- This parameter is required.@Stability(value=Stable) public void addIngressRule(IPeer peer, Port connection, String description, Boolean remoteRule)
addIngressRule
in interface ISecurityGroup
peer
- This parameter is required.connection
- This parameter is required.description
- remoteRule
- @Stability(value=Stable) public void addIngressRule(IPeer peer, Port connection, String description)
addIngressRule
in interface ISecurityGroup
peer
- This parameter is required.connection
- This parameter is required.description
- @Stability(value=Stable) public void addIngressRule(IPeer peer, Port connection)
addIngressRule
in interface ISecurityGroup
peer
- This parameter is required.connection
- This parameter is required.@Stability(value=Stable) public Object toEgressRuleConfig()
toEgressRuleConfig
in interface IPeer
@Stability(value=Stable) public Object toIngressRuleConfig()
toIngressRuleConfig
in interface IPeer
@Stability(value=Stable) public Boolean getCanInlineRule()
getCanInlineRule
in interface IPeer
@Stability(value=Stable) public Connections getConnections()
getConnections
in interface IConnectable
@Stability(value=Stable) public String getSecurityGroupId()
getSecurityGroupId
in interface ISecurityGroup
@Stability(value=Stable) public String getSecurityGroupName()
@Stability(value=Stable) public String getSecurityGroupVpcId()
@Stability(value=Stable) public String getUniqueId()
getUniqueId
in interface IPeer
@Stability(value=Stable) public Port getDefaultPort()
Copyright © 2019. All rights reserved.