1. Packages
  2. Alibaba Cloud
  3. API Docs
  4. vpc
  5. VpcNetworkAclAttachment
Alibaba Cloud v3.53.0 published on Wednesday, Apr 17, 2024 by Pulumi

alicloud.vpc.VpcNetworkAclAttachment

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.53.0 published on Wednesday, Apr 17, 2024 by Pulumi

    Provides a VPC Network Acl Attachment resource. Resources associated with network Acl.

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

    NOTE: Available since v1.193.0.

    Create VpcNetworkAclAttachment Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new VpcNetworkAclAttachment(name: string, args: VpcNetworkAclAttachmentArgs, opts?: CustomResourceOptions);
    @overload
    def VpcNetworkAclAttachment(resource_name: str,
                                args: VpcNetworkAclAttachmentArgs,
                                opts: Optional[ResourceOptions] = None)
    
    @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)
    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.
    
    

    Parameters

    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.

    Example

    The following reference example uses placeholder values for all input properties.

    var vpcNetworkAclAttachmentResource = new AliCloud.Vpc.VpcNetworkAclAttachment("vpcNetworkAclAttachmentResource", new()
    {
        NetworkAclId = "string",
        ResourceId = "string",
        ResourceType = "string",
    });
    
    example, err := vpc.NewVpcNetworkAclAttachment(ctx, "vpcNetworkAclAttachmentResource", &vpc.VpcNetworkAclAttachmentArgs{
    	NetworkAclId: pulumi.String("string"),
    	ResourceId:   pulumi.String("string"),
    	ResourceType: pulumi.String("string"),
    })
    
    var vpcNetworkAclAttachmentResource = new VpcNetworkAclAttachment("vpcNetworkAclAttachmentResource", VpcNetworkAclAttachmentArgs.builder()        
        .networkAclId("string")
        .resourceId("string")
        .resourceType("string")
        .build());
    
    vpc_network_acl_attachment_resource = alicloud.vpc.VpcNetworkAclAttachment("vpcNetworkAclAttachmentResource",
        network_acl_id="string",
        resource_id="string",
        resource_type="string")
    
    const vpcNetworkAclAttachmentResource = new alicloud.vpc.VpcNetworkAclAttachment("vpcNetworkAclAttachmentResource", {
        networkAclId: "string",
        resourceId: "string",
        resourceType: "string",
    });
    
    type: alicloud:vpc:VpcNetworkAclAttachment
    properties:
        networkAclId: string
        resourceId: string
        resourceType: string
    

    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>
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Alibaba Cloud pulumi/pulumi-alicloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the alicloud Terraform Provider.
    alicloud logo
    Alibaba Cloud v3.53.0 published on Wednesday, Apr 17, 2024 by Pulumi