Class ISecurityGroup.Jsii$Proxy

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.ec2.ISecurityGroup.Jsii$Proxy
All Implemented Interfaces:
ISecurityGroupRef, ISecurityGroupRef.Jsii$Default, IEnvironmentAware, IEnvironmentAware.Jsii$Default, IResource, IResource.Jsii$Default, IConnectable, IConnectable.Jsii$Default, IPeer, IPeer.Jsii$Default, ISecurityGroup, ISecurityGroup.Jsii$Default, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IConstruct.Jsii$Default, software.constructs.IDependable, software.constructs.IDependable.Jsii$Default
Enclosing interface:
ISecurityGroup

@Internal public static final class ISecurityGroup.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements ISecurityGroup.Jsii$Default
A proxy class which represents a concrete javascript instance of this type.
  • Constructor Details

    • Jsii$Proxy

      protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
  • Method Details

    • addEgressRule

      @Stability(Stable) public final void addEgressRule(@NotNull IPeer peer, @NotNull Port connection, @Nullable String description)
      Add an egress rule for the current security group.

      remoteRule controls where the Rule object is created if the peer is also a securityGroup and they are in different stack. If false (default) the rule object is created under the current SecurityGroup object. If true and the peer is also a SecurityGroup, the rule object is created under the remote SecurityGroup object.

      Specified by:
      addEgressRule in interface ISecurityGroup
      Specified by:
      addEgressRule in interface ISecurityGroup.Jsii$Default
      Parameters:
      peer - This parameter is required.
      connection - This parameter is required.
      description -
    • addEgressRule

      @Stability(Stable) public final void addEgressRule(@NotNull IPeer peer, @NotNull Port connection)
      Add an egress rule for the current security group.

      remoteRule controls where the Rule object is created if the peer is also a securityGroup and they are in different stack. If false (default) the rule object is created under the current SecurityGroup object. If true and the peer is also a SecurityGroup, the rule object is created under the remote SecurityGroup object.

      Specified by:
      addEgressRule in interface ISecurityGroup
      Specified by:
      addEgressRule in interface ISecurityGroup.Jsii$Default
      Parameters:
      peer - This parameter is required.
      connection - This parameter is required.
    • addIngressRule

      @Stability(Stable) public final void addIngressRule(@NotNull IPeer peer, @NotNull Port connection, @Nullable String description)
      Add an ingress rule for the current security group.

      remoteRule controls where the Rule object is created if the peer is also a securityGroup and they are in different stack. If false (default) the rule object is created under the current SecurityGroup object. If true and the peer is also a SecurityGroup, the rule object is created under the remote SecurityGroup object.

      Specified by:
      addIngressRule in interface ISecurityGroup
      Specified by:
      addIngressRule in interface ISecurityGroup.Jsii$Default
      Parameters:
      peer - This parameter is required.
      connection - This parameter is required.
      description -
    • addIngressRule

      @Stability(Stable) public final void addIngressRule(@NotNull IPeer peer, @NotNull Port connection)
      Add an ingress rule for the current security group.

      remoteRule controls where the Rule object is created if the peer is also a securityGroup and they are in different stack. If false (default) the rule object is created under the current SecurityGroup object. If true and the peer is also a SecurityGroup, the rule object is created under the remote SecurityGroup object.

      Specified by:
      addIngressRule in interface ISecurityGroup
      Specified by:
      addIngressRule in interface ISecurityGroup.Jsii$Default
      Parameters:
      peer - This parameter is required.
      connection - This parameter is required.