@volcengine/pulumi
Version:
A Pulumi package for creating and managing volcengine cloud resources.
177 lines (176 loc) • 5.32 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "../types/output";
/**
* Use this data source to query detailed information of cfw control policies
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as volcengine from "@pulumi/volcengine";
*
* const foo = volcengine.cloud_firewall.getCfwControlPolicies({
* actions: ["deny"],
* direction: "in",
* });
* ```
*/
export declare function getCfwControlPolicies(args: GetCfwControlPoliciesArgs, opts?: pulumi.InvokeOptions): Promise<GetCfwControlPoliciesResult>;
/**
* A collection of arguments for invoking getCfwControlPolicies.
*/
export interface GetCfwControlPoliciesArgs {
/**
* The action list of the control policy. Valid values: `accept`, `deny`, `monitor`.
*/
actions?: string[];
/**
* The description of the control policy. This field support fuzzy query.
*/
description?: string;
/**
* The destination of the control policy. This field support fuzzy query.
*/
destination?: string;
/**
* The direction of control policy. Valid values: `in`, `out`.
*/
direction: string;
/**
* File name where to save data source results.
*/
outputFile?: string;
/**
* The proto list of the control policy. Valid values: `TCP`, `ICMP`, `UDP`, `ANY`. When the destinationType is `domain`, The proto must be `TCP`.
*/
protos?: string[];
/**
* The repeat type of the control policy. Valid values: `Permanent`, `Once`, `Daily`, `Weekly`, `Monthly`.
*/
repeatTypes?: string[];
/**
* The rule id of the control policy. This field support fuzzy query.
*/
ruleId?: string;
/**
* The source of the control policy. This field support fuzzy query.
*/
source?: string;
/**
* The enable status list of the control policy.
*/
statuses?: boolean[];
}
/**
* A collection of values returned by getCfwControlPolicies.
*/
export interface GetCfwControlPoliciesResult {
/**
* The action of the control policy.
*/
readonly actions?: string[];
/**
* The collection of query.
*/
readonly controlPolicies: outputs.cloud_firewall.GetCfwControlPoliciesControlPolicy[];
/**
* The description of the control policy.
*/
readonly description?: string;
/**
* The destination of the control policy.
*/
readonly destination?: string;
/**
* The direction of the control policy.
*/
readonly direction: string;
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
readonly outputFile?: string;
/**
* The proto of the control policy.
*/
readonly protos?: string[];
/**
* The repeat type of the control policy.
*/
readonly repeatTypes?: string[];
/**
* The id of the control policy.
*/
readonly ruleId?: string;
/**
* The source of the control policy.
*/
readonly source?: string;
/**
* Whether to enable the control policy.
*/
readonly statuses?: boolean[];
/**
* The total count of query.
*/
readonly totalCount: number;
}
/**
* Use this data source to query detailed information of cfw control policies
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as volcengine from "@pulumi/volcengine";
*
* const foo = volcengine.cloud_firewall.getCfwControlPolicies({
* actions: ["deny"],
* direction: "in",
* });
* ```
*/
export declare function getCfwControlPoliciesOutput(args: GetCfwControlPoliciesOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetCfwControlPoliciesResult>;
/**
* A collection of arguments for invoking getCfwControlPolicies.
*/
export interface GetCfwControlPoliciesOutputArgs {
/**
* The action list of the control policy. Valid values: `accept`, `deny`, `monitor`.
*/
actions?: pulumi.Input<pulumi.Input<string>[]>;
/**
* The description of the control policy. This field support fuzzy query.
*/
description?: pulumi.Input<string>;
/**
* The destination of the control policy. This field support fuzzy query.
*/
destination?: pulumi.Input<string>;
/**
* The direction of control policy. Valid values: `in`, `out`.
*/
direction: pulumi.Input<string>;
/**
* File name where to save data source results.
*/
outputFile?: pulumi.Input<string>;
/**
* The proto list of the control policy. Valid values: `TCP`, `ICMP`, `UDP`, `ANY`. When the destinationType is `domain`, The proto must be `TCP`.
*/
protos?: pulumi.Input<pulumi.Input<string>[]>;
/**
* The repeat type of the control policy. Valid values: `Permanent`, `Once`, `Daily`, `Weekly`, `Monthly`.
*/
repeatTypes?: pulumi.Input<pulumi.Input<string>[]>;
/**
* The rule id of the control policy. This field support fuzzy query.
*/
ruleId?: pulumi.Input<string>;
/**
* The source of the control policy. This field support fuzzy query.
*/
source?: pulumi.Input<string>;
/**
* The enable status list of the control policy.
*/
statuses?: pulumi.Input<pulumi.Input<boolean>[]>;
}