alicloud logo
Alibaba Cloud v3.34.0, Mar 17 23

alicloud.vpc.VpcNetworkAclAttachment

Provides a VPC Network Acl Attachment resource.

For information about VPC Network Acl Attachment and how to use it, see What is Network Acl Attachment.

NOTE: Available in v1.193.0+.

Create VpcNetworkAclAttachment Resource

new VpcNetworkAclAttachment(name: string, args: VpcNetworkAclAttachmentArgs, opts?: CustomResourceOptions);
@overload
def VpcNetworkAclAttachment(resource_name: str,
                            opts: Optional[ResourceOptions] = None,
                            network_acl_id: Optional[str] = None,
                            resource_id: Optional[str] = None,
                            resource_type: Optional[str] = None)
@overload
def VpcNetworkAclAttachment(resource_name: str,
                            args: VpcNetworkAclAttachmentArgs,
                            opts: Optional[ResourceOptions] = None)
func NewVpcNetworkAclAttachment(ctx *Context, name string, args VpcNetworkAclAttachmentArgs, opts ...ResourceOption) (*VpcNetworkAclAttachment, error)
public VpcNetworkAclAttachment(string name, VpcNetworkAclAttachmentArgs args, CustomResourceOptions? opts = null)
public VpcNetworkAclAttachment(String name, VpcNetworkAclAttachmentArgs args)
public VpcNetworkAclAttachment(String name, VpcNetworkAclAttachmentArgs args, CustomResourceOptions options)
type: alicloud:vpc:VpcNetworkAclAttachment
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args VpcNetworkAclAttachmentArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
args VpcNetworkAclAttachmentArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args VpcNetworkAclAttachmentArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args VpcNetworkAclAttachmentArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args VpcNetworkAclAttachmentArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

VpcNetworkAclAttachment Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The VpcNetworkAclAttachment resource accepts the following input properties:

NetworkAclId string

The ID of the network ACL.

ResourceId string

The ID of the associated resource.

ResourceType string

The type of the associated resource. Valid values: VSwitch.

NetworkAclId string

The ID of the network ACL.

ResourceId string

The ID of the associated resource.

ResourceType string

The type of the associated resource. Valid values: VSwitch.

networkAclId String

The ID of the network ACL.

resourceId String

The ID of the associated resource.

resourceType String

The type of the associated resource. Valid values: VSwitch.

networkAclId string

The ID of the network ACL.

resourceId string

The ID of the associated resource.

resourceType string

The type of the associated resource. Valid values: VSwitch.

network_acl_id str

The ID of the network ACL.

resource_id str

The ID of the associated resource.

resource_type str

The type of the associated resource. Valid values: VSwitch.

networkAclId String

The ID of the network ACL.

resourceId String

The ID of the associated resource.

resourceType String

The type of the associated resource. Valid values: VSwitch.

Outputs

All input properties are implicitly available as output properties. Additionally, the VpcNetworkAclAttachment resource produces the following output properties:

Id string

The provider-assigned unique ID for this managed resource.

Status string

The status of the Network Acl Attachment.

Id string

The provider-assigned unique ID for this managed resource.

Status string

The status of the Network Acl Attachment.

id String

The provider-assigned unique ID for this managed resource.

status String

The status of the Network Acl Attachment.

id string

The provider-assigned unique ID for this managed resource.

status string

The status of the Network Acl Attachment.

id str

The provider-assigned unique ID for this managed resource.

status str

The status of the Network Acl Attachment.

id String

The provider-assigned unique ID for this managed resource.

status String

The status of the Network Acl Attachment.

Look up Existing VpcNetworkAclAttachment Resource

Get an existing VpcNetworkAclAttachment resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: VpcNetworkAclAttachmentState, opts?: CustomResourceOptions): VpcNetworkAclAttachment
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        network_acl_id: Optional[str] = None,
        resource_id: Optional[str] = None,
        resource_type: Optional[str] = None,
        status: Optional[str] = None) -> VpcNetworkAclAttachment
func GetVpcNetworkAclAttachment(ctx *Context, name string, id IDInput, state *VpcNetworkAclAttachmentState, opts ...ResourceOption) (*VpcNetworkAclAttachment, error)
public static VpcNetworkAclAttachment Get(string name, Input<string> id, VpcNetworkAclAttachmentState? state, CustomResourceOptions? opts = null)
public static VpcNetworkAclAttachment get(String name, Output<String> id, VpcNetworkAclAttachmentState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
NetworkAclId string

The ID of the network ACL.

ResourceId string

The ID of the associated resource.

ResourceType string

The type of the associated resource. Valid values: VSwitch.

Status string

The status of the Network Acl Attachment.

NetworkAclId string

The ID of the network ACL.

ResourceId string

The ID of the associated resource.

ResourceType string

The type of the associated resource. Valid values: VSwitch.

Status string

The status of the Network Acl Attachment.

networkAclId String

The ID of the network ACL.

resourceId String

The ID of the associated resource.

resourceType String

The type of the associated resource. Valid values: VSwitch.

status String

The status of the Network Acl Attachment.

networkAclId string

The ID of the network ACL.

resourceId string

The ID of the associated resource.

resourceType string

The type of the associated resource. Valid values: VSwitch.

status string

The status of the Network Acl Attachment.

network_acl_id str

The ID of the network ACL.

resource_id str

The ID of the associated resource.

resource_type str

The type of the associated resource. Valid values: VSwitch.

status str

The status of the Network Acl Attachment.

networkAclId String

The ID of the network ACL.

resourceId String

The ID of the associated resource.

resourceType String

The type of the associated resource. Valid values: VSwitch.

status String

The status of the Network Acl Attachment.

Import

VPC Network Acl Attachment can be imported using the id, e.g.

 $ pulumi import alicloud:vpc/vpcNetworkAclAttachment:VpcNetworkAclAttachment example <network_acl_id>:<resource_id>

Package Details

Repository
Alibaba Cloud pulumi/pulumi-alicloud
License
Apache-2.0
Notes

This Pulumi package is based on the alicloud Terraform Provider.