1. Packages
  2. AWS Native
  3. API Docs
  4. ec2
  5. getSecurityGroupEgress

AWS Native is in preview. AWS Classic is fully supported.

AWS Native v0.105.0 published on Thursday, May 2, 2024 by Pulumi

aws-native.ec2.getSecurityGroupEgress

Explore with Pulumi AI

aws-native logo

AWS Native is in preview. AWS Classic is fully supported.

AWS Native v0.105.0 published on Thursday, May 2, 2024 by Pulumi

    Adds the specified outbound (egress) rule to a security group. An outbound rule permits instances to send traffic to the specified IPv4 or IPv6 address range, the IP addresses that are specified by a prefix list, or the instances that are associated with a destination security group. For more information, see Security group rules. You must specify exactly one of the following destinations: an IPv4 address range, an IPv6 address range, a prefix list, or a security group. You must specify a protocol for each rule (for example, TCP). If the protocol is TCP or UDP, you must also specify a port or port range. If the protocol is ICMP or ICMPv6, you must also specify the ICMP/ICMPv6 type and code. To specify all types or all codes, use -1. Rule changes are propagated to instances associated with the security group as quickly as possible. However, a small delay might occur.

    Using getSecurityGroupEgress

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getSecurityGroupEgress(args: GetSecurityGroupEgressArgs, opts?: InvokeOptions): Promise<GetSecurityGroupEgressResult>
    function getSecurityGroupEgressOutput(args: GetSecurityGroupEgressOutputArgs, opts?: InvokeOptions): Output<GetSecurityGroupEgressResult>
    def get_security_group_egress(id: Optional[str] = None,
                                  opts: Optional[InvokeOptions] = None) -> GetSecurityGroupEgressResult
    def get_security_group_egress_output(id: Optional[pulumi.Input[str]] = None,
                                  opts: Optional[InvokeOptions] = None) -> Output[GetSecurityGroupEgressResult]
    func LookupSecurityGroupEgress(ctx *Context, args *LookupSecurityGroupEgressArgs, opts ...InvokeOption) (*LookupSecurityGroupEgressResult, error)
    func LookupSecurityGroupEgressOutput(ctx *Context, args *LookupSecurityGroupEgressOutputArgs, opts ...InvokeOption) LookupSecurityGroupEgressResultOutput

    > Note: This function is named LookupSecurityGroupEgress in the Go SDK.

    public static class GetSecurityGroupEgress 
    {
        public static Task<GetSecurityGroupEgressResult> InvokeAsync(GetSecurityGroupEgressArgs args, InvokeOptions? opts = null)
        public static Output<GetSecurityGroupEgressResult> Invoke(GetSecurityGroupEgressInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetSecurityGroupEgressResult> getSecurityGroupEgress(GetSecurityGroupEgressArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: aws-native:ec2:getSecurityGroupEgress
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    Id string
    id String
    id string
    id str
    id String

    getSecurityGroupEgress Result

    The following output properties are available:

    Description string
    The description of an egress (outbound) security group rule. Constraints: Up to 255 characters in length. Allowed characters are a-z, A-Z, 0-9, spaces, and ._-:/()#,@[]+=;{}!$*
    Id string
    Description string
    The description of an egress (outbound) security group rule. Constraints: Up to 255 characters in length. Allowed characters are a-z, A-Z, 0-9, spaces, and ._-:/()#,@[]+=;{}!$*
    Id string
    description String
    The description of an egress (outbound) security group rule. Constraints: Up to 255 characters in length. Allowed characters are a-z, A-Z, 0-9, spaces, and ._-:/()#,@[]+=;{}!$*
    id String
    description string
    The description of an egress (outbound) security group rule. Constraints: Up to 255 characters in length. Allowed characters are a-z, A-Z, 0-9, spaces, and ._-:/()#,@[]+=;{}!$*
    id string
    description str
    The description of an egress (outbound) security group rule. Constraints: Up to 255 characters in length. Allowed characters are a-z, A-Z, 0-9, spaces, and ._-:/()#,@[]+=;{}!$*
    id str
    description String
    The description of an egress (outbound) security group rule. Constraints: Up to 255 characters in length. Allowed characters are a-z, A-Z, 0-9, spaces, and ._-:/()#,@[]+=;{}!$*
    id String

    Package Details

    Repository
    AWS Native pulumi/pulumi-aws-native
    License
    Apache-2.0
    aws-native logo

    AWS Native is in preview. AWS Classic is fully supported.

    AWS Native v0.105.0 published on Thursday, May 2, 2024 by Pulumi