UNPKG

@huaweicloudos/pulumi

Version:

A Pulumi package for creating and managing Huaweicloud cloud resources.

158 lines (157 loc) 4.46 kB
import * as pulumi from "@pulumi/pulumi"; import { output as outputs } from "../types"; /** * Use this data source to get the list of VPC flow logs. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as huaweicloud from "@pulumi/huaweicloud"; * * const config = new pulumi.Config(); * const flowLogName = config.requireObject("flowLogName"); * const basic = huaweicloud.Vpc.getFlowLogs({ * name: flowLogName, * }); * ``` */ export declare function getFlowLogs(args?: GetFlowLogsArgs, opts?: pulumi.InvokeOptions): Promise<GetFlowLogsResult>; /** * A collection of arguments for invoking getFlowLogs. */ export interface GetFlowLogsArgs { /** * Specifies the VPC flow log ID. */ flowLogId?: string; /** * Specifies the LTS log group ID. */ logGroupId?: string; /** * Specifies the LTS log stream ID. */ logStreamId?: string; /** * Specifies the VPC flow log name. * The value can contain no more than 64 characters, * including letters, digits, underscores (_), hyphens (-), and periods (.). */ name?: string; /** * Specifies the region in which to query the resource. * If omitted, the provider-level region will be used. */ region?: string; /** * Specifies the resource ID for which that the logs to be collected. */ resourceId?: string; /** * Specifies the resource type for which that the logs to be collected. * The value can be: **port**, **network,** and **vpc**. */ resourceType?: string; /** * Specifies the status of the flow log. * The value can be **ACTIVE**, **DOWN** or **ERROR**. */ status?: string; /** * Specifies the type of traffic to log. * The value can be: **all**, **accept** and **reject**. */ trafficType?: string; } /** * A collection of values returned by getFlowLogs. */ export interface GetFlowLogsResult { readonly flowLogId?: string; /** * The list of VPC flow logs. */ readonly flowLogs: outputs.Vpc.GetFlowLogsFlowLog[]; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * The LTS log group ID. */ readonly logGroupId?: string; /** * The LTS log stream ID. */ readonly logStreamId?: string; /** * The VPC flow log name. */ readonly name?: string; readonly region: string; /** * The resource ID for which that the logs to be collected. */ readonly resourceId?: string; /** * The resource type for which that the logs to be collected. */ readonly resourceType?: string; /** * The VPC flow log status. */ readonly status?: string; /** * The type of traffic to log. */ readonly trafficType?: string; } export declare function getFlowLogsOutput(args?: GetFlowLogsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetFlowLogsResult>; /** * A collection of arguments for invoking getFlowLogs. */ export interface GetFlowLogsOutputArgs { /** * Specifies the VPC flow log ID. */ flowLogId?: pulumi.Input<string>; /** * Specifies the LTS log group ID. */ logGroupId?: pulumi.Input<string>; /** * Specifies the LTS log stream ID. */ logStreamId?: pulumi.Input<string>; /** * Specifies the VPC flow log name. * The value can contain no more than 64 characters, * including letters, digits, underscores (_), hyphens (-), and periods (.). */ name?: pulumi.Input<string>; /** * Specifies the region in which to query the resource. * If omitted, the provider-level region will be used. */ region?: pulumi.Input<string>; /** * Specifies the resource ID for which that the logs to be collected. */ resourceId?: pulumi.Input<string>; /** * Specifies the resource type for which that the logs to be collected. * The value can be: **port**, **network,** and **vpc**. */ resourceType?: pulumi.Input<string>; /** * Specifies the status of the flow log. * The value can be **ACTIVE**, **DOWN** or **ERROR**. */ status?: pulumi.Input<string>; /** * Specifies the type of traffic to log. * The value can be: **all**, **accept** and **reject**. */ trafficType?: pulumi.Input<string>; }