alicloud.vpc.VpcNetworkAclAttachment
Explore with Pulumi AI
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.
Constructor 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:
- Network
Acl stringId - The ID of the network ACL.
- Resource
Id string - The ID of the associated resource.
- Resource
Type string - The type of the associated resource. Valid values:
VSwitch
.
- Network
Acl stringId - The ID of the network ACL.
- Resource
Id string - The ID of the associated resource.
- Resource
Type string - The type of the associated resource. Valid values:
VSwitch
.
- network
Acl StringId - The ID of the network ACL.
- resource
Id String - The ID of the associated resource.
- resource
Type String - The type of the associated resource. Valid values:
VSwitch
.
- network
Acl stringId - The ID of the network ACL.
- resource
Id string - The ID of the associated resource.
- resource
Type string - The type of the associated resource. Valid values:
VSwitch
.
- network_
acl_ strid - 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
.
- network
Acl StringId - The ID of the network ACL.
- resource
Id String - The ID of the associated resource.
- resource
Type 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:
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.
- Network
Acl stringId - The ID of the network ACL.
- Resource
Id string - The ID of the associated resource.
- Resource
Type string - The type of the associated resource. Valid values:
VSwitch
. - Status string
- The status of the Network Acl Attachment.
- Network
Acl stringId - The ID of the network ACL.
- Resource
Id string - The ID of the associated resource.
- Resource
Type string - The type of the associated resource. Valid values:
VSwitch
. - Status string
- The status of the Network Acl Attachment.
- network
Acl StringId - The ID of the network ACL.
- resource
Id String - The ID of the associated resource.
- resource
Type String - The type of the associated resource. Valid values:
VSwitch
. - status String
- The status of the Network Acl Attachment.
- network
Acl stringId - The ID of the network ACL.
- resource
Id string - The ID of the associated resource.
- resource
Type string - The type of the associated resource. Valid values:
VSwitch
. - status string
- The status of the Network Acl Attachment.
- network_
acl_ strid - 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.
- network
Acl StringId - The ID of the network ACL.
- resource
Id String - The ID of the associated resource.
- resource
Type 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.