@volcengine/pulumi
Version:
A Pulumi package for creating and managing volcengine cloud resources.
230 lines (229 loc) • 5.75 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as inputs from "../types/input";
import * as outputs from "../types/output";
/**
* Use this data source to query detailed information of flow logs
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as volcengine from "@pulumi/volcengine";
*
* const foo = volcengine.vpc.getFlowLogs({
* flowLogIds: ["fl-13g4fqngluhog3n6nu57o****"],
* });
* ```
*/
export declare function getFlowLogs(args?: GetFlowLogsArgs, opts?: pulumi.InvokeOptions): Promise<GetFlowLogsResult>;
/**
* A collection of arguments for invoking getFlowLogs.
*/
export interface GetFlowLogsArgs {
/**
* The aggregation interval of flow log. Unit: minute. Valid values: `1`, `5`, `10`.
*/
aggregationInterval?: number;
/**
* The description of flow log.
*/
description?: string;
/**
* A list of flow log IDs.
*/
flowLogIds?: string[];
/**
* The name of flow log.
*/
flowLogName?: string;
/**
* The ID of log project.
*/
logProjectId?: string;
/**
* The ID of log topic.
*/
logTopicId?: string;
/**
* A Name Regex of Resource.
*/
nameRegex?: string;
/**
* File name where to save data source results.
*/
outputFile?: string;
/**
* The project name of flow log.
*/
projectName?: string;
/**
* The ID of resource.
*/
resourceId?: string;
/**
* The type of resource. Valid values: `vpc`, `subnet`, `eni`.
*/
resourceType?: string;
/**
* The status of flow log. Valid values: `Active`, `Pending`, `Inactive`, `Creating`, `Deleting`.
*/
status?: string;
/**
* Tags.
*/
tags?: inputs.vpc.GetFlowLogsTag[];
/**
* The type of traffic. Valid values: `All`, `Allow`, `Drop`.
*/
trafficType?: string;
/**
* The ID of VPC.
*/
vpcId?: string;
}
/**
* A collection of values returned by getFlowLogs.
*/
export interface GetFlowLogsResult {
/**
* The aggregation interval of flow log. Unit: minute. Valid values: `1`, `5`, `10`.
*/
readonly aggregationInterval?: number;
/**
* The description of flow log.
*/
readonly description?: string;
readonly flowLogIds?: string[];
/**
* The name of flow log.
*/
readonly flowLogName?: string;
/**
* The collection of query.
*/
readonly flowLogs: outputs.vpc.GetFlowLogsFlowLog[];
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
/**
* The ID of log project.
*/
readonly logProjectId?: string;
/**
* The ID of log topic.
*/
readonly logTopicId?: string;
readonly nameRegex?: string;
readonly outputFile?: string;
/**
* The project name of flow log.
*/
readonly projectName?: string;
/**
* The ID of resource.
*/
readonly resourceId?: string;
/**
* The type of resource. Valid values: `vpc`, `subnet`, `eni`.
*/
readonly resourceType?: string;
/**
* The status of flow log. Valid values: `Active`, `Pending`, `Inactive`, `Creating`, `Deleting`.
*/
readonly status?: string;
/**
* Tags.
*/
readonly tags?: outputs.vpc.GetFlowLogsTag[];
/**
* The total count of query.
*/
readonly totalCount: number;
/**
* The type of traffic. Valid values: `All`, `Allow`, `Drop`.
*/
readonly trafficType?: string;
/**
* The ID of VPC.
*/
readonly vpcId?: string;
}
/**
* Use this data source to query detailed information of flow logs
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as volcengine from "@pulumi/volcengine";
*
* const foo = volcengine.vpc.getFlowLogs({
* flowLogIds: ["fl-13g4fqngluhog3n6nu57o****"],
* });
* ```
*/
export declare function getFlowLogsOutput(args?: GetFlowLogsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetFlowLogsResult>;
/**
* A collection of arguments for invoking getFlowLogs.
*/
export interface GetFlowLogsOutputArgs {
/**
* The aggregation interval of flow log. Unit: minute. Valid values: `1`, `5`, `10`.
*/
aggregationInterval?: pulumi.Input<number>;
/**
* The description of flow log.
*/
description?: pulumi.Input<string>;
/**
* A list of flow log IDs.
*/
flowLogIds?: pulumi.Input<pulumi.Input<string>[]>;
/**
* The name of flow log.
*/
flowLogName?: pulumi.Input<string>;
/**
* The ID of log project.
*/
logProjectId?: pulumi.Input<string>;
/**
* The ID of log topic.
*/
logTopicId?: pulumi.Input<string>;
/**
* A Name Regex of Resource.
*/
nameRegex?: pulumi.Input<string>;
/**
* File name where to save data source results.
*/
outputFile?: pulumi.Input<string>;
/**
* The project name of flow log.
*/
projectName?: pulumi.Input<string>;
/**
* The ID of resource.
*/
resourceId?: pulumi.Input<string>;
/**
* The type of resource. Valid values: `vpc`, `subnet`, `eni`.
*/
resourceType?: pulumi.Input<string>;
/**
* The status of flow log. Valid values: `Active`, `Pending`, `Inactive`, `Creating`, `Deleting`.
*/
status?: pulumi.Input<string>;
/**
* Tags.
*/
tags?: pulumi.Input<pulumi.Input<inputs.vpc.GetFlowLogsTagArgs>[]>;
/**
* The type of traffic. Valid values: `All`, `Allow`, `Drop`.
*/
trafficType?: pulumi.Input<string>;
/**
* The ID of VPC.
*/
vpcId?: pulumi.Input<string>;
}