1. Packages
  2. AWS Cloud Control
  3. API Docs
  4. ec2
  5. getSecurityGroupIngress

We recommend new projects start with resources from the AWS provider.

AWS Cloud Control v1.26.0 published on Wednesday, Mar 12, 2025 by Pulumi

aws-native.ec2.getSecurityGroupIngress

Explore with Pulumi AI

We recommend new projects start with resources from the AWS provider.

AWS Cloud Control v1.26.0 published on Wednesday, Mar 12, 2025 by Pulumi

Resource Type definition for AWS::EC2::SecurityGroupIngress

Using getSecurityGroupIngress

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 getSecurityGroupIngress(args: GetSecurityGroupIngressArgs, opts?: InvokeOptions): Promise<GetSecurityGroupIngressResult>
function getSecurityGroupIngressOutput(args: GetSecurityGroupIngressOutputArgs, opts?: InvokeOptions): Output<GetSecurityGroupIngressResult>
Copy
def get_security_group_ingress(id: Optional[str] = None,
                               opts: Optional[InvokeOptions] = None) -> GetSecurityGroupIngressResult
def get_security_group_ingress_output(id: Optional[pulumi.Input[str]] = None,
                               opts: Optional[InvokeOptions] = None) -> Output[GetSecurityGroupIngressResult]
Copy
func LookupSecurityGroupIngress(ctx *Context, args *LookupSecurityGroupIngressArgs, opts ...InvokeOption) (*LookupSecurityGroupIngressResult, error)
func LookupSecurityGroupIngressOutput(ctx *Context, args *LookupSecurityGroupIngressOutputArgs, opts ...InvokeOption) LookupSecurityGroupIngressResultOutput
Copy

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

public static class GetSecurityGroupIngress 
{
    public static Task<GetSecurityGroupIngressResult> InvokeAsync(GetSecurityGroupIngressArgs args, InvokeOptions? opts = null)
    public static Output<GetSecurityGroupIngressResult> Invoke(GetSecurityGroupIngressInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetSecurityGroupIngressResult> getSecurityGroupIngress(GetSecurityGroupIngressArgs args, InvokeOptions options)
public static Output<GetSecurityGroupIngressResult> getSecurityGroupIngress(GetSecurityGroupIngressArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: aws-native:ec2:getSecurityGroupIngress
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Id This property is required. string
The Security Group Rule Id
Id This property is required. string
The Security Group Rule Id
id This property is required. String
The Security Group Rule Id
id This property is required. string
The Security Group Rule Id
id This property is required. str
The Security Group Rule Id
id This property is required. String
The Security Group Rule Id

getSecurityGroupIngress Result

The following output properties are available:

Description string
Updates the description of an ingress (inbound) security group rule. You can replace an existing description, or add a description to a rule that did not have one previously
Id string
The Security Group Rule Id
Description string
Updates the description of an ingress (inbound) security group rule. You can replace an existing description, or add a description to a rule that did not have one previously
Id string
The Security Group Rule Id
description String
Updates the description of an ingress (inbound) security group rule. You can replace an existing description, or add a description to a rule that did not have one previously
id String
The Security Group Rule Id
description string
Updates the description of an ingress (inbound) security group rule. You can replace an existing description, or add a description to a rule that did not have one previously
id string
The Security Group Rule Id
description str
Updates the description of an ingress (inbound) security group rule. You can replace an existing description, or add a description to a rule that did not have one previously
id str
The Security Group Rule Id
description String
Updates the description of an ingress (inbound) security group rule. You can replace an existing description, or add a description to a rule that did not have one previously
id String
The Security Group Rule Id

Package Details

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

We recommend new projects start with resources from the AWS provider.

AWS Cloud Control v1.26.0 published on Wednesday, Mar 12, 2025 by Pulumi