@huaweicloudos/pulumi
Version:
A Pulumi package for creating and managing Huaweicloud cloud resources.
84 lines (83 loc) • 2.42 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import { output as outputs } from "../types";
/**
* Use this data source to get the list of CFW firewalls.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as huaweicloud from "@pulumi/huaweicloud";
*
* const test = pulumi.output(huaweicloud.Cfw.getFirewalls({
* serviceType: 0,
* }));
* ```
*/
export declare function getFirewalls(args?: GetFirewallsArgs, opts?: pulumi.InvokeOptions): Promise<GetFirewallsResult>;
/**
* A collection of arguments for invoking getFirewalls.
*/
export interface GetFirewallsArgs {
/**
* Specifies the firewall instance ID.
* If not specified, the first instance will be returned.
*/
fwInstanceId?: string;
/**
* Specifies the region in which to query the data source.
* If omitted, the provider-level region will be used.
*/
region?: string;
/**
* Specifies the service type. The value can be:
* + **0**: North-south firewall;
* + **1**: East-west firewall;
*/
serviceType?: number;
}
/**
* A collection of values returned by getFirewalls.
*/
export interface GetFirewallsResult {
/**
* The firewall ID.
*/
readonly fwInstanceId?: string;
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
/**
* The firewall instance records.
* The records object structure is documented below.
*/
readonly records: outputs.Cfw.GetFirewallsRecord[];
readonly region: string;
/**
* The service type.
*/
readonly serviceType?: number;
}
export declare function getFirewallsOutput(args?: GetFirewallsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetFirewallsResult>;
/**
* A collection of arguments for invoking getFirewalls.
*/
export interface GetFirewallsOutputArgs {
/**
* Specifies the firewall instance ID.
* If not specified, the first instance will be returned.
*/
fwInstanceId?: pulumi.Input<string>;
/**
* Specifies the region in which to query the data source.
* If omitted, the provider-level region will be used.
*/
region?: pulumi.Input<string>;
/**
* Specifies the service type. The value can be:
* + **0**: North-south firewall;
* + **1**: East-west firewall;
*/
serviceType?: pulumi.Input<number>;
}