UNPKG

@huaweicloudos/pulumi

Version:

A Pulumi package for creating and managing Huaweicloud cloud resources.

117 lines (116 loc) 3.56 kB
import * as pulumi from "@pulumi/pulumi"; import { output as outputs } from "../types"; /** * Use this data source to get the list of VPC network ACLs. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as huaweicloud from "@pulumi/huaweicloud"; * * const config = new pulumi.Config(); * const networkAclName = config.requireObject("networkAclName"); * const enterpriseProjectId = config.requireObject("enterpriseProjectId"); * const basic = huaweicloud.Vpc.getNetworkAcls({ * name: networkAclName, * enterpriseProjectId: enterpriseProjectId, * }); * ``` */ export declare function getNetworkAcls(args?: GetNetworkAclsArgs, opts?: pulumi.InvokeOptions): Promise<GetNetworkAclsResult>; /** * A collection of arguments for invoking getNetworkAcls. */ export interface GetNetworkAclsArgs { /** * Specifies whether the network ACL is enabled. The value can be **true** or **false**. */ enabled?: string; /** * Specifies the enterprise project ID of the network ACL. */ enterpriseProjectId?: string; /** * Specifies the network ACL name. The value can contain no more than 64 characters, * including letters, digits, underscores (_), hyphens (-), and periods (.). */ name?: string; /** * Specifies the network ACL ID. */ networkAclId?: string; /** * Specifies the region in which to obtain the network ACLs. * If omitted, the provider-level region will be used. */ region?: string; /** * Specifies the status of the network ACL. */ status?: string; } /** * A collection of values returned by getNetworkAcls. */ export interface GetNetworkAclsResult { /** * Whether the network ACL is enabled. */ readonly enabled?: string; /** * The enterprise project ID of the network ACL. */ readonly enterpriseProjectId?: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * The network ACL rule name. */ readonly name?: string; readonly networkAclId?: string; /** * The list of VPC network ACLs. * The networkAcls structure is documented below. */ readonly networkAcls: outputs.Vpc.GetNetworkAclsNetworkAcl[]; readonly region: string; /** * The status of the ACL. */ readonly status?: string; } export declare function getNetworkAclsOutput(args?: GetNetworkAclsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetNetworkAclsResult>; /** * A collection of arguments for invoking getNetworkAcls. */ export interface GetNetworkAclsOutputArgs { /** * Specifies whether the network ACL is enabled. The value can be **true** or **false**. */ enabled?: pulumi.Input<string>; /** * Specifies the enterprise project ID of the network ACL. */ enterpriseProjectId?: pulumi.Input<string>; /** * Specifies the network ACL name. The value can contain no more than 64 characters, * including letters, digits, underscores (_), hyphens (-), and periods (.). */ name?: pulumi.Input<string>; /** * Specifies the network ACL ID. */ networkAclId?: pulumi.Input<string>; /** * Specifies the region in which to obtain the network ACLs. * If omitted, the provider-level region will be used. */ region?: pulumi.Input<string>; /** * Specifies the status of the network ACL. */ status?: pulumi.Input<string>; }