UNPKG

@huaweicloudos/pulumi

Version:

A Pulumi package for creating and managing Huaweicloud cloud resources.

188 lines (187 loc) 6.89 kB
import * as pulumi from "@pulumi/pulumi"; /** * !> **WARNING:** It has been deprecated, use `huaweicloud.Vpc.NetworkAcl` instead. * * Manages a network ACL resource within HuaweiCloud. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as huaweicloud from "@pulumi/huaweicloud"; * import * as pulumi from "@huaweicloudos/pulumi"; * * const subnet = huaweicloud.Vpc.getSubnet({ * name: "subnet-default", * }); * const rule1 = new huaweicloud.networkacl.AclRule("rule1", { * description: "drop TELNET traffic", * action: "deny", * protocol: "tcp", * destinationPort: "23", * enabled: true, * }); * const rule2 = new huaweicloud.networkacl.AclRule("rule2", { * description: "drop NTP traffic", * action: "deny", * protocol: "udp", * destinationPort: "123", * enabled: false, * }); * const fwAcl = new huaweicloud.networkacl.Acl("fwAcl", { * subnets: [subnet.then(subnet => subnet.id)], * inboundRules: [ * rule1.id, * rule2.id, * ], * }); * ``` */ export declare class Acl extends pulumi.CustomResource { /** * Get an existing Acl resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: AclState, opts?: pulumi.CustomResourceOptions): Acl; /** * Returns true if the given object is an instance of Acl. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is Acl; /** * Specifies the supplementary information about the network ACL. This parameter can * contain a maximum of 255 characters and cannot contain angle brackets (< or >). */ readonly description: pulumi.Output<string | undefined>; /** * The ID of the ingress firewall policy for the network ACL. */ readonly inboundPolicyId: pulumi.Output<string>; /** * A list of the IDs of ingress rules associated with the network ACL. */ readonly inboundRules: pulumi.Output<string[] | undefined>; /** * Specifies the network ACL name. This parameter can contain a maximum of 64 characters, * which may consist of letters, digits, underscores (_), and hyphens (-). */ readonly name: pulumi.Output<string>; /** * The ID of the egress firewall policy for the network ACL. */ readonly outboundPolicyId: pulumi.Output<string>; /** * A list of the IDs of egress rules associated with the network ACL. */ readonly outboundRules: pulumi.Output<string[] | undefined>; /** * A list of the port IDs of the subnet gateway. */ readonly ports: pulumi.Output<string[]>; /** * The region in which to create the network acl resource. If omitted, the * provider-level region will be used. Changing this creates a new network acl resource. */ readonly region: pulumi.Output<string>; /** * The status of the network ACL. */ readonly status: pulumi.Output<string>; /** * A list of the IDs of networks associated with the network ACL. */ readonly subnets: pulumi.Output<string[] | undefined>; /** * Create a Acl resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args?: AclArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Acl resources. */ export interface AclState { /** * Specifies the supplementary information about the network ACL. This parameter can * contain a maximum of 255 characters and cannot contain angle brackets (< or >). */ description?: pulumi.Input<string>; /** * The ID of the ingress firewall policy for the network ACL. */ inboundPolicyId?: pulumi.Input<string>; /** * A list of the IDs of ingress rules associated with the network ACL. */ inboundRules?: pulumi.Input<pulumi.Input<string>[]>; /** * Specifies the network ACL name. This parameter can contain a maximum of 64 characters, * which may consist of letters, digits, underscores (_), and hyphens (-). */ name?: pulumi.Input<string>; /** * The ID of the egress firewall policy for the network ACL. */ outboundPolicyId?: pulumi.Input<string>; /** * A list of the IDs of egress rules associated with the network ACL. */ outboundRules?: pulumi.Input<pulumi.Input<string>[]>; /** * A list of the port IDs of the subnet gateway. */ ports?: pulumi.Input<pulumi.Input<string>[]>; /** * The region in which to create the network acl resource. If omitted, the * provider-level region will be used. Changing this creates a new network acl resource. */ region?: pulumi.Input<string>; /** * The status of the network ACL. */ status?: pulumi.Input<string>; /** * A list of the IDs of networks associated with the network ACL. */ subnets?: pulumi.Input<pulumi.Input<string>[]>; } /** * The set of arguments for constructing a Acl resource. */ export interface AclArgs { /** * Specifies the supplementary information about the network ACL. This parameter can * contain a maximum of 255 characters and cannot contain angle brackets (< or >). */ description?: pulumi.Input<string>; /** * A list of the IDs of ingress rules associated with the network ACL. */ inboundRules?: pulumi.Input<pulumi.Input<string>[]>; /** * Specifies the network ACL name. This parameter can contain a maximum of 64 characters, * which may consist of letters, digits, underscores (_), and hyphens (-). */ name?: pulumi.Input<string>; /** * A list of the IDs of egress rules associated with the network ACL. */ outboundRules?: pulumi.Input<pulumi.Input<string>[]>; /** * The region in which to create the network acl resource. If omitted, the * provider-level region will be used. Changing this creates a new network acl resource. */ region?: pulumi.Input<string>; /** * A list of the IDs of networks associated with the network ACL. */ subnets?: pulumi.Input<pulumi.Input<string>[]>; }