@volcengine/pulumi
Version:
A Pulumi package for creating and managing volcengine cloud resources.
175 lines (174 loc) • 5.41 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as inputs from "../types/input";
import * as outputs from "../types/output";
/**
* Provides a resource to manage network acl
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as volcengine from "@volcengine/pulumi";
*
* const fooVpc = new volcengine.vpc.Vpc("fooVpc", {
* vpcName: "acc-test-vpc",
* cidrBlock: "172.16.0.0/16",
* });
* const fooNetworkAcl = new volcengine.vpc.NetworkAcl("fooNetworkAcl", {
* vpcId: fooVpc.id,
* networkAclName: "tf-test-acl",
* ingressAclEntries: [
* {
* networkAclEntryName: "ingress1",
* policy: "accept",
* protocol: "all",
* sourceCidrIp: "192.168.0.0/24",
* },
* {
* networkAclEntryName: "ingress3",
* policy: "accept",
* protocol: "tcp",
* port: "80/80",
* sourceCidrIp: "192.168.0.0/24",
* },
* ],
* egressAclEntries: [{
* networkAclEntryName: "egress2",
* policy: "accept",
* protocol: "all",
* destinationCidrIp: "192.168.0.0/16",
* }],
* projectName: "default",
* tags: [{
* key: "k1",
* value: "v1",
* }],
* });
* ```
*
* ## Import
*
* Network Acl can be imported using the id, e.g.
*
* ```sh
* $ pulumi import volcengine:vpc/networkAcl:NetworkAcl default nacl-172leak37mi9s4d1w33pswqkh
* ```
*/
export declare class NetworkAcl extends pulumi.CustomResource {
/**
* Get an existing NetworkAcl 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?: NetworkAclState, opts?: pulumi.CustomResourceOptions): NetworkAcl;
/**
* Returns true if the given object is an instance of NetworkAcl. 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 NetworkAcl;
/**
* The description of the Network Acl.
*/
readonly description: pulumi.Output<string | undefined>;
/**
* The egress entries of Network Acl.
*/
readonly egressAclEntries: pulumi.Output<outputs.vpc.NetworkAclEgressAclEntry[]>;
/**
* The ingress entries of Network Acl.
*/
readonly ingressAclEntries: pulumi.Output<outputs.vpc.NetworkAclIngressAclEntry[]>;
/**
* The name of Network Acl.
*/
readonly networkAclName: pulumi.Output<string>;
/**
* The project name of the network acl.
*/
readonly projectName: pulumi.Output<string>;
/**
* Tags.
*/
readonly tags: pulumi.Output<outputs.vpc.NetworkAclTag[] | undefined>;
/**
* The vpc id of Network Acl.
*/
readonly vpcId: pulumi.Output<string>;
/**
* Create a NetworkAcl 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: NetworkAclArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering NetworkAcl resources.
*/
export interface NetworkAclState {
/**
* The description of the Network Acl.
*/
description?: pulumi.Input<string>;
/**
* The egress entries of Network Acl.
*/
egressAclEntries?: pulumi.Input<pulumi.Input<inputs.vpc.NetworkAclEgressAclEntry>[]>;
/**
* The ingress entries of Network Acl.
*/
ingressAclEntries?: pulumi.Input<pulumi.Input<inputs.vpc.NetworkAclIngressAclEntry>[]>;
/**
* The name of Network Acl.
*/
networkAclName?: pulumi.Input<string>;
/**
* The project name of the network acl.
*/
projectName?: pulumi.Input<string>;
/**
* Tags.
*/
tags?: pulumi.Input<pulumi.Input<inputs.vpc.NetworkAclTag>[]>;
/**
* The vpc id of Network Acl.
*/
vpcId?: pulumi.Input<string>;
}
/**
* The set of arguments for constructing a NetworkAcl resource.
*/
export interface NetworkAclArgs {
/**
* The description of the Network Acl.
*/
description?: pulumi.Input<string>;
/**
* The egress entries of Network Acl.
*/
egressAclEntries?: pulumi.Input<pulumi.Input<inputs.vpc.NetworkAclEgressAclEntry>[]>;
/**
* The ingress entries of Network Acl.
*/
ingressAclEntries?: pulumi.Input<pulumi.Input<inputs.vpc.NetworkAclIngressAclEntry>[]>;
/**
* The name of Network Acl.
*/
networkAclName?: pulumi.Input<string>;
/**
* The project name of the network acl.
*/
projectName?: pulumi.Input<string>;
/**
* Tags.
*/
tags?: pulumi.Input<pulumi.Input<inputs.vpc.NetworkAclTag>[]>;
/**
* The vpc id of Network Acl.
*/
vpcId: pulumi.Input<string>;
}