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

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

AWS Cloud Control v1.27.0 published on Monday, Apr 14, 2025 by Pulumi

aws-native.ec2.getFlowLog

Explore with Pulumi AI

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

AWS Cloud Control v1.27.0 published on Monday, Apr 14, 2025 by Pulumi

Specifies a VPC flow log, which enables you to capture IP traffic for a specific network interface, subnet, or VPC.

Using getFlowLog

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 getFlowLog(args: GetFlowLogArgs, opts?: InvokeOptions): Promise<GetFlowLogResult>
function getFlowLogOutput(args: GetFlowLogOutputArgs, opts?: InvokeOptions): Output<GetFlowLogResult>
Copy
def get_flow_log(id: Optional[str] = None,
                 opts: Optional[InvokeOptions] = None) -> GetFlowLogResult
def get_flow_log_output(id: Optional[pulumi.Input[str]] = None,
                 opts: Optional[InvokeOptions] = None) -> Output[GetFlowLogResult]
Copy
func LookupFlowLog(ctx *Context, args *LookupFlowLogArgs, opts ...InvokeOption) (*LookupFlowLogResult, error)
func LookupFlowLogOutput(ctx *Context, args *LookupFlowLogOutputArgs, opts ...InvokeOption) LookupFlowLogResultOutput
Copy

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

public static class GetFlowLog 
{
    public static Task<GetFlowLogResult> InvokeAsync(GetFlowLogArgs args, InvokeOptions? opts = null)
    public static Output<GetFlowLogResult> Invoke(GetFlowLogInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetFlowLogResult> getFlowLog(GetFlowLogArgs args, InvokeOptions options)
public static Output<GetFlowLogResult> getFlowLog(GetFlowLogArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: aws-native:ec2:getFlowLog
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Id This property is required. string
The Flow Log ID
Id This property is required. string
The Flow Log ID
id This property is required. String
The Flow Log ID
id This property is required. string
The Flow Log ID
id This property is required. str
The Flow Log ID
id This property is required. String
The Flow Log ID

getFlowLog Result

The following output properties are available:

Id string
The Flow Log ID
Tags List<Pulumi.AwsNative.Outputs.Tag>
The tags to apply to the flow logs.
Id string
The Flow Log ID
Tags Tag
The tags to apply to the flow logs.
id String
The Flow Log ID
tags List<Tag>
The tags to apply to the flow logs.
id string
The Flow Log ID
tags Tag[]
The tags to apply to the flow logs.
id str
The Flow Log ID
tags Sequence[root_Tag]
The tags to apply to the flow logs.
id String
The Flow Log ID
tags List<Property Map>
The tags to apply to the flow logs.

Supporting Types

Tag

Key This property is required. string
The key name of the tag
Value This property is required. string
The value of the tag
Key This property is required. string
The key name of the tag
Value This property is required. string
The value of the tag
key This property is required. String
The key name of the tag
value This property is required. String
The value of the tag
key This property is required. string
The key name of the tag
value This property is required. string
The value of the tag
key This property is required. str
The key name of the tag
value This property is required. str
The value of the tag
key This property is required. String
The key name of the tag
value This property is required. String
The value of the tag

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.27.0 published on Monday, Apr 14, 2025 by Pulumi