Interface ISecurityGroup.Jsii$Default

All Superinterfaces:
IConnectable, IConnectable.Jsii$Default, software.constructs.IConstruct, software.constructs.IConstruct.Jsii$Default, software.constructs.IDependable, software.constructs.IDependable.Jsii$Default, IEnvironmentAware, IEnvironmentAware.Jsii$Default, IPeer, IPeer.Jsii$Default, IResource, IResource.Jsii$Default, ISecurityGroup, ISecurityGroupRef, ISecurityGroupRef.Jsii$Default, software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
ISecurityGroup.Jsii$Proxy
Enclosing interface:
ISecurityGroup

@Internal public static interface ISecurityGroup.Jsii$Default extends ISecurityGroup, IResource.Jsii$Default, ISecurityGroupRef.Jsii$Default, IPeer.Jsii$Default
Internal default implementation for ISecurityGroup.
  • Method Details

    • getAllowAllOutbound

      @Stability(Stable) @NotNull default Boolean getAllowAllOutbound()
      Whether the SecurityGroup has been configured to allow all outbound traffic.
      Specified by:
      getAllowAllOutbound in interface ISecurityGroup
    • getSecurityGroupId

      @Stability(Stable) @NotNull default String getSecurityGroupId()
      ID for the current security group.
      Specified by:
      getSecurityGroupId in interface ISecurityGroup
    • addEgressRule

      @Stability(Stable) default void addEgressRule(@NotNull IPeer peer, @NotNull Port connection, @Nullable String description, @Nullable Boolean remoteRule)
      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
      Parameters:
      peer - This parameter is required.
      connection - This parameter is required.
      description -
      remoteRule -
    • addEgressRule

      @Stability(Stable) default 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
      Parameters:
      peer - This parameter is required.
      connection - This parameter is required.
      description -
    • addEgressRule

      @Stability(Stable) default 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
      Parameters:
      peer - This parameter is required.
      connection - This parameter is required.
    • addIngressRule

      @Stability(Stable) default void addIngressRule(@NotNull IPeer peer, @NotNull Port connection, @Nullable String description, @Nullable Boolean remoteRule)
      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
      Parameters:
      peer - This parameter is required.
      connection - This parameter is required.
      description -
      remoteRule -
    • addIngressRule

      @Stability(Stable) default 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
      Parameters:
      peer - This parameter is required.
      connection - This parameter is required.
      description -
    • addIngressRule

      @Stability(Stable) default 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
      Parameters:
      peer - This parameter is required.
      connection - This parameter is required.