@huaweicloudos/pulumi
Version:
A Pulumi package for creating and managing Huaweicloud cloud resources.
136 lines (135 loc) • 5.25 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import { input as inputs, output as outputs } from "../types";
/**
* Manages a network ACL resource within HuaweiCloud IEC.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as pulumi from "@huaweicloudos/pulumi";
*
* const config = new pulumi.Config();
* const iecVpcId = config.requireObject("iecVpcId");
* const iecSubnetId = config.requireObject("iecSubnetId");
* const aclTest = new huaweicloud.iec.NetworkAcl("aclTest", {
* description: "This is a network ACL of IEC with networks.",
* networks: [{
* vpcId: iecVpcId,
* subnetId: iecSubnetId,
* }],
* });
* ```
*
* ## Import
*
* Network ACL can be imported using the `id`, e.g. bash
*
* ```sh
* $ pulumi import huaweicloud:Iec/networkAcl:NetworkAcl acl_test <id>
* ```
*/
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;
/**
* Specifies the supplementary information about the iec network ACL. This parameter
* can contain a maximum of 255 characters and cannot contain angle brackets (< or >).
*/
readonly description: pulumi.Output<string | undefined>;
/**
* A list of the IDs of ingress rules associated with the iec network ACL.
*/
readonly inboundRules: pulumi.Output<string[]>;
/**
* Specifies the iec network ACL name. This parameter can contain a maximum of 64 characters,
* which may consist of letters, digits, dot (.), underscores (_), and hyphens (-).
*/
readonly name: pulumi.Output<string>;
/**
* Specifies an list of one or more networks. The networks object structure is documented
* below.
*/
readonly networks: pulumi.Output<outputs.Iec.NetworkAclNetwork[] | undefined>;
/**
* A list of the IDs of egress rules associated with the iec network ACL.
*/
readonly outboundRules: pulumi.Output<string[]>;
/**
* The status of the iec network ACL.
*/
readonly status: 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 {
/**
* Specifies the supplementary information about the iec 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 iec network ACL.
*/
inboundRules?: pulumi.Input<pulumi.Input<string>[]>;
/**
* Specifies the iec network ACL name. This parameter can contain a maximum of 64 characters,
* which may consist of letters, digits, dot (.), underscores (_), and hyphens (-).
*/
name?: pulumi.Input<string>;
/**
* Specifies an list of one or more networks. The networks object structure is documented
* below.
*/
networks?: pulumi.Input<pulumi.Input<inputs.Iec.NetworkAclNetwork>[]>;
/**
* A list of the IDs of egress rules associated with the iec network ACL.
*/
outboundRules?: pulumi.Input<pulumi.Input<string>[]>;
/**
* The status of the iec network ACL.
*/
status?: pulumi.Input<string>;
}
/**
* The set of arguments for constructing a NetworkAcl resource.
*/
export interface NetworkAclArgs {
/**
* Specifies the supplementary information about the iec network ACL. This parameter
* can contain a maximum of 255 characters and cannot contain angle brackets (< or >).
*/
description?: pulumi.Input<string>;
/**
* Specifies the iec network ACL name. This parameter can contain a maximum of 64 characters,
* which may consist of letters, digits, dot (.), underscores (_), and hyphens (-).
*/
name?: pulumi.Input<string>;
/**
* Specifies an list of one or more networks. The networks object structure is documented
* below.
*/
networks?: pulumi.Input<pulumi.Input<inputs.Iec.NetworkAclNetwork>[]>;
}