UNPKG

@volcengine/pulumi

Version:

A Pulumi package for creating and managing volcengine cloud resources.

87 lines (86 loc) 3.02 kB
import * as pulumi from "@pulumi/pulumi"; /** * Provides a resource to manage network acl associate * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as volcengine from "@volcengine/pulumi"; * * const foo = new volcengine.vpc.NetworkAcl("foo", { * vpcId: "vpc-ru0wv9alfoxsu3nuld85rpp", * networkAclName: "tf-test-acl", * }); * const foo1 = new volcengine.vpc.NetworkAclAssociate("foo1", { * networkAclId: foo.id, * resourceId: "subnet-637jxq81u5mon3gd6ivc7rj", * }); * ``` * * ## Import * * NetworkAcl associate can be imported using the network_acl_id:resource_id, e.g. * * ```sh * $ pulumi import volcengine:vpc/networkAclAssociate:NetworkAclAssociate default nacl-172leak37mi9s4d1w33pswqkh:subnet-637jxq81u5mon3gd6ivc7rj * ``` */ export declare class NetworkAclAssociate extends pulumi.CustomResource { /** * Get an existing NetworkAclAssociate 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?: NetworkAclAssociateState, opts?: pulumi.CustomResourceOptions): NetworkAclAssociate; /** * Returns true if the given object is an instance of NetworkAclAssociate. 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 NetworkAclAssociate; /** * The id of Network Acl. */ readonly networkAclId: pulumi.Output<string>; /** * The resource id of Network Acl. */ readonly resourceId: pulumi.Output<string>; /** * Create a NetworkAclAssociate 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: NetworkAclAssociateArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering NetworkAclAssociate resources. */ export interface NetworkAclAssociateState { /** * The id of Network Acl. */ networkAclId?: pulumi.Input<string>; /** * The resource id of Network Acl. */ resourceId?: pulumi.Input<string>; } /** * The set of arguments for constructing a NetworkAclAssociate resource. */ export interface NetworkAclAssociateArgs { /** * The id of Network Acl. */ networkAclId: pulumi.Input<string>; /** * The resource id of Network Acl. */ resourceId: pulumi.Input<string>; }