@huaweicloudos/pulumi
Version:
A Pulumi package for creating and managing Huaweicloud cloud resources.
64 lines (63 loc) • 1.92 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import { output as outputs } from "../types";
/**
* Use this data source to get the list of CFW capture tasks.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as huaweicloud from "@pulumi/huaweicloud";
*
* const config = new pulumi.Config();
* const fwInstanceId = config.requireObject("fwInstanceId");
* const test = huaweicloud.Cfw.getCaptureTasks({
* fwInstanceId: fwInstanceId,
* });
* ```
*/
export declare function getCaptureTasks(args: GetCaptureTasksArgs, opts?: pulumi.InvokeOptions): Promise<GetCaptureTasksResult>;
/**
* A collection of arguments for invoking getCaptureTasks.
*/
export interface GetCaptureTasksArgs {
/**
* Specifies the ID of the firewall instance.
*/
fwInstanceId: string;
/**
* Specifies the region in which to query the resource.
* If omitted, the provider-level region will be used.
*/
region?: string;
}
/**
* A collection of values returned by getCaptureTasks.
*/
export interface GetCaptureTasksResult {
readonly fwInstanceId: string;
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
/**
* List of capture task information.
*/
readonly records: outputs.Cfw.GetCaptureTasksRecord[];
readonly region: string;
}
export declare function getCaptureTasksOutput(args: GetCaptureTasksOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetCaptureTasksResult>;
/**
* A collection of arguments for invoking getCaptureTasks.
*/
export interface GetCaptureTasksOutputArgs {
/**
* Specifies the ID of the firewall instance.
*/
fwInstanceId: 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>;
}