@pulumi/aws
Version:
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
100 lines (99 loc) • 4.02 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Provides an network ACL association resource which allows you to associate your network ACL with any subnet(s).
*
* > **NOTE on Network ACLs and Network ACL Associations:** the provider provides both a standalone network ACL association resource
* and a network ACL resource with a `subnetIds` attribute. Do not use the same subnet ID in both a network ACL
* resource and a network ACL association resource. Doing so will cause a conflict of associations and will overwrite the association.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const main = new aws.ec2.NetworkAclAssociation("main", {
* networkAclId: mainAwsNetworkAcl.id,
* subnetId: mainAwsSubnet.id,
* });
* ```
*
* ## Import
*
* Using `pulumi import`, import Network ACL associations using the `id`. For example:
*
* ```sh
* $ pulumi import aws:ec2/networkAclAssociation:NetworkAclAssociation main aclassoc-02baf37f20966b3e6
* ```
*/
export declare class NetworkAclAssociation extends pulumi.CustomResource {
/**
* Get an existing NetworkAclAssociation 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?: NetworkAclAssociationState, opts?: pulumi.CustomResourceOptions): NetworkAclAssociation;
/**
* Returns true if the given object is an instance of NetworkAclAssociation. 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 NetworkAclAssociation;
/**
* The ID of the network ACL.
*/
readonly networkAclId: pulumi.Output<string>;
/**
* Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
*/
readonly region: pulumi.Output<string>;
/**
* The ID of the associated Subnet.
*/
readonly subnetId: pulumi.Output<string>;
/**
* Create a NetworkAclAssociation 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: NetworkAclAssociationArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering NetworkAclAssociation resources.
*/
export interface NetworkAclAssociationState {
/**
* The ID of the network ACL.
*/
networkAclId?: pulumi.Input<string>;
/**
* Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
*/
region?: pulumi.Input<string>;
/**
* The ID of the associated Subnet.
*/
subnetId?: pulumi.Input<string>;
}
/**
* The set of arguments for constructing a NetworkAclAssociation resource.
*/
export interface NetworkAclAssociationArgs {
/**
* The ID of the network ACL.
*/
networkAclId: pulumi.Input<string>;
/**
* Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
*/
region?: pulumi.Input<string>;
/**
* The ID of the associated Subnet.
*/
subnetId: pulumi.Input<string>;
}