@volcengine/pulumi
Version:
A Pulumi package for creating and managing volcengine cloud resources.
203 lines (202 loc) • 6.94 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "../types/output";
/**
* Use this data source to query detailed information of cfw nat firewall control policies
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as volcengine from "@pulumi/volcengine";
*
* const foo = volcengine.cloud_firewall.getCfwNatFirewallControlPolicies({
* direction: "in",
* natFirewallId: "nfw-ydmkayvjsw2vsavx****",
* });
* ```
*/
/** @deprecated volcengine.cloud_firewall.CfwNatFirewallControlPolicies has been deprecated in favor of volcengine.cloud_firewall.getCfwNatFirewallControlPolicies */
export declare function cfwNatFirewallControlPolicies(args: CfwNatFirewallControlPoliciesArgs, opts?: pulumi.InvokeOptions): Promise<CfwNatFirewallControlPoliciesResult>;
/**
* A collection of arguments for invoking CfwNatFirewallControlPolicies.
*/
export interface CfwNatFirewallControlPoliciesArgs {
/**
* The action list of the nat firewall control policy. Valid values: `accept`, `deny`, `monitor`.
*/
actions?: string[];
/**
* The description of the nat firewall control policy. This field support fuzzy query.
*/
description?: string;
/**
* The dest port of the nat firewall control policy.
*/
destPorts?: string[];
/**
* The destination of the nat firewall control policy. This field support fuzzy query.
*/
destinations?: string[];
/**
* The direction of nat firewall control policy. Valid values: `in`, `out`.
*/
direction: string;
/**
* The nat firewall id of the nat firewall control policy.
*/
natFirewallId: string;
/**
* File name where to save data source results.
*/
outputFile?: string;
/**
* The proto list of the nat firewall 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 nat firewall control policy. Valid values: `Permanent`, `Once`, `Daily`, `Weekly`, `Monthly`.
*/
repeatTypes?: string[];
/**
* The rule id of the nat firewall control policy. This field support fuzzy query.
*/
ruleIds?: string[];
/**
* The source of the nat firewall control policy. This field support fuzzy query.
*/
sources?: string[];
/**
* The enable status list of the nat firewall control policy.
*/
statuses?: boolean[];
}
/**
* A collection of values returned by CfwNatFirewallControlPolicies.
*/
export interface CfwNatFirewallControlPoliciesResult {
/**
* The action of the nat firewall control policy.
*/
readonly actions?: string[];
/**
* The description of the nat firewall control policy.
*/
readonly description?: string;
/**
* The dest port of the nat firewall control policy.
*/
readonly destPorts?: string[];
/**
* The destination of the nat firewall control policy.
*/
readonly destinations?: string[];
/**
* The direction of the nat firewall control policy.
*/
readonly direction: string;
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
/**
* The collection of query.
*/
readonly natFirewallControlPolicies: outputs.cloud_firewall.CfwNatFirewallControlPoliciesNatFirewallControlPolicy[];
/**
* The id of the nat firewall.
*/
readonly natFirewallId: string;
readonly outputFile?: string;
/**
* The proto of the nat firewall control policy.
*/
readonly protos?: string[];
/**
* The repeat type of the nat firewall control policy.
*/
readonly repeatTypes?: string[];
/**
* The id of the nat firewall control policy.
*/
readonly ruleIds?: string[];
/**
* The source of the nat firewall control policy.
*/
readonly sources?: string[];
/**
* Whether to enable the nat firewall control policy.
*/
readonly statuses?: boolean[];
/**
* The total count of query.
*/
readonly totalCount: number;
}
/**
* Use this data source to query detailed information of cfw nat firewall control policies
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as volcengine from "@pulumi/volcengine";
*
* const foo = volcengine.cloud_firewall.getCfwNatFirewallControlPolicies({
* direction: "in",
* natFirewallId: "nfw-ydmkayvjsw2vsavx****",
* });
* ```
*/
/** @deprecated volcengine.cloud_firewall.CfwNatFirewallControlPolicies has been deprecated in favor of volcengine.cloud_firewall.getCfwNatFirewallControlPolicies */
export declare function cfwNatFirewallControlPoliciesOutput(args: CfwNatFirewallControlPoliciesOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<CfwNatFirewallControlPoliciesResult>;
/**
* A collection of arguments for invoking CfwNatFirewallControlPolicies.
*/
export interface CfwNatFirewallControlPoliciesOutputArgs {
/**
* The action list of the nat firewall control policy. Valid values: `accept`, `deny`, `monitor`.
*/
actions?: pulumi.Input<pulumi.Input<string>[]>;
/**
* The description of the nat firewall control policy. This field support fuzzy query.
*/
description?: pulumi.Input<string>;
/**
* The dest port of the nat firewall control policy.
*/
destPorts?: pulumi.Input<pulumi.Input<string>[]>;
/**
* The destination of the nat firewall control policy. This field support fuzzy query.
*/
destinations?: pulumi.Input<pulumi.Input<string>[]>;
/**
* The direction of nat firewall control policy. Valid values: `in`, `out`.
*/
direction: pulumi.Input<string>;
/**
* The nat firewall id of the nat firewall control policy.
*/
natFirewallId: pulumi.Input<string>;
/**
* File name where to save data source results.
*/
outputFile?: pulumi.Input<string>;
/**
* The proto list of the nat firewall 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 nat firewall control policy. Valid values: `Permanent`, `Once`, `Daily`, `Weekly`, `Monthly`.
*/
repeatTypes?: pulumi.Input<pulumi.Input<string>[]>;
/**
* The rule id of the nat firewall control policy. This field support fuzzy query.
*/
ruleIds?: pulumi.Input<pulumi.Input<string>[]>;
/**
* The source of the nat firewall control policy. This field support fuzzy query.
*/
sources?: pulumi.Input<pulumi.Input<string>[]>;
/**
* The enable status list of the nat firewall control policy.
*/
statuses?: pulumi.Input<pulumi.Input<boolean>[]>;
}