nsxt.VpcAttachment
Explore with Pulumi AI
Create VpcAttachment Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new VpcAttachment(name: string, args: VpcAttachmentArgs, opts?: CustomResourceOptions);
@overload
def VpcAttachment(resource_name: str,
args: VpcAttachmentArgs,
opts: Optional[ResourceOptions] = None)
@overload
def VpcAttachment(resource_name: str,
opts: Optional[ResourceOptions] = None,
display_name: Optional[str] = None,
parent_path: Optional[str] = None,
vpc_connectivity_profile: Optional[str] = None,
description: Optional[str] = None,
nsx_id: Optional[str] = None,
tags: Optional[Sequence[VpcAttachmentTagArgs]] = None,
vpc_attachment_id: Optional[str] = None)
func NewVpcAttachment(ctx *Context, name string, args VpcAttachmentArgs, opts ...ResourceOption) (*VpcAttachment, error)
public VpcAttachment(string name, VpcAttachmentArgs args, CustomResourceOptions? opts = null)
public VpcAttachment(String name, VpcAttachmentArgs args)
public VpcAttachment(String name, VpcAttachmentArgs args, CustomResourceOptions options)
type: nsxt:VpcAttachment
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 VpcAttachmentArgs
- 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 VpcAttachmentArgs
- 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 VpcAttachmentArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args VpcAttachmentArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args VpcAttachmentArgs
- 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 vpcAttachmentResource = new Nsxt.VpcAttachment("vpcAttachmentResource", new()
{
DisplayName = "string",
ParentPath = "string",
VpcConnectivityProfile = "string",
Description = "string",
NsxId = "string",
Tags = new[]
{
new Nsxt.Inputs.VpcAttachmentTagArgs
{
Scope = "string",
Tag = "string",
},
},
VpcAttachmentId = "string",
});
example, err := nsxt.NewVpcAttachment(ctx, "vpcAttachmentResource", &nsxt.VpcAttachmentArgs{
DisplayName: pulumi.String("string"),
ParentPath: pulumi.String("string"),
VpcConnectivityProfile: pulumi.String("string"),
Description: pulumi.String("string"),
NsxId: pulumi.String("string"),
Tags: nsxt.VpcAttachmentTagArray{
&nsxt.VpcAttachmentTagArgs{
Scope: pulumi.String("string"),
Tag: pulumi.String("string"),
},
},
VpcAttachmentId: pulumi.String("string"),
})
var vpcAttachmentResource = new VpcAttachment("vpcAttachmentResource", VpcAttachmentArgs.builder()
.displayName("string")
.parentPath("string")
.vpcConnectivityProfile("string")
.description("string")
.nsxId("string")
.tags(VpcAttachmentTagArgs.builder()
.scope("string")
.tag("string")
.build())
.vpcAttachmentId("string")
.build());
vpc_attachment_resource = nsxt.VpcAttachment("vpcAttachmentResource",
display_name="string",
parent_path="string",
vpc_connectivity_profile="string",
description="string",
nsx_id="string",
tags=[{
"scope": "string",
"tag": "string",
}],
vpc_attachment_id="string")
const vpcAttachmentResource = new nsxt.VpcAttachment("vpcAttachmentResource", {
displayName: "string",
parentPath: "string",
vpcConnectivityProfile: "string",
description: "string",
nsxId: "string",
tags: [{
scope: "string",
tag: "string",
}],
vpcAttachmentId: "string",
});
type: nsxt:VpcAttachment
properties:
description: string
displayName: string
nsxId: string
parentPath: string
tags:
- scope: string
tag: string
vpcAttachmentId: string
vpcConnectivityProfile: string
VpcAttachment Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The VpcAttachment resource accepts the following input properties:
- Display
Name string - Display name of the resource.
- Parent
Path string - Policy path of parent VPC object.
- Vpc
Connectivity stringProfile - Path of VPC connectivity profile to attach to the VPC.
- Description string
- Description of the resource.
- Nsx
Id string - The NSX ID of this resource. If set, this ID will be used to create the resource.
- List<Vpc
Attachment Tag> - A list of scope + tag pairs to associate with this resource.
- Vpc
Attachment stringId - ID of the resource.
- Display
Name string - Display name of the resource.
- Parent
Path string - Policy path of parent VPC object.
- Vpc
Connectivity stringProfile - Path of VPC connectivity profile to attach to the VPC.
- Description string
- Description of the resource.
- Nsx
Id string - The NSX ID of this resource. If set, this ID will be used to create the resource.
- []Vpc
Attachment Tag Args - A list of scope + tag pairs to associate with this resource.
- Vpc
Attachment stringId - ID of the resource.
- display
Name String - Display name of the resource.
- parent
Path String - Policy path of parent VPC object.
- vpc
Connectivity StringProfile - Path of VPC connectivity profile to attach to the VPC.
- description String
- Description of the resource.
- nsx
Id String - The NSX ID of this resource. If set, this ID will be used to create the resource.
- List<Vpc
Attachment Tag> - A list of scope + tag pairs to associate with this resource.
- vpc
Attachment StringId - ID of the resource.
- display
Name string - Display name of the resource.
- parent
Path string - Policy path of parent VPC object.
- vpc
Connectivity stringProfile - Path of VPC connectivity profile to attach to the VPC.
- description string
- Description of the resource.
- nsx
Id string - The NSX ID of this resource. If set, this ID will be used to create the resource.
- Vpc
Attachment Tag[] - A list of scope + tag pairs to associate with this resource.
- vpc
Attachment stringId - ID of the resource.
- display_
name str - Display name of the resource.
- parent_
path str - Policy path of parent VPC object.
- vpc_
connectivity_ strprofile - Path of VPC connectivity profile to attach to the VPC.
- description str
- Description of the resource.
- nsx_
id str - The NSX ID of this resource. If set, this ID will be used to create the resource.
- Sequence[Vpc
Attachment Tag Args] - A list of scope + tag pairs to associate with this resource.
- vpc_
attachment_ strid - ID of the resource.
- display
Name String - Display name of the resource.
- parent
Path String - Policy path of parent VPC object.
- vpc
Connectivity StringProfile - Path of VPC connectivity profile to attach to the VPC.
- description String
- Description of the resource.
- nsx
Id String - The NSX ID of this resource. If set, this ID will be used to create the resource.
- List<Property Map>
- A list of scope + tag pairs to associate with this resource.
- vpc
Attachment StringId - ID of the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the VpcAttachment resource produces the following output properties:
Look up Existing VpcAttachment Resource
Get an existing VpcAttachment 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?: VpcAttachmentState, opts?: CustomResourceOptions): VpcAttachment
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
display_name: Optional[str] = None,
nsx_id: Optional[str] = None,
parent_path: Optional[str] = None,
path: Optional[str] = None,
revision: Optional[float] = None,
tags: Optional[Sequence[VpcAttachmentTagArgs]] = None,
vpc_attachment_id: Optional[str] = None,
vpc_connectivity_profile: Optional[str] = None) -> VpcAttachment
func GetVpcAttachment(ctx *Context, name string, id IDInput, state *VpcAttachmentState, opts ...ResourceOption) (*VpcAttachment, error)
public static VpcAttachment Get(string name, Input<string> id, VpcAttachmentState? state, CustomResourceOptions? opts = null)
public static VpcAttachment get(String name, Output<String> id, VpcAttachmentState state, CustomResourceOptions options)
resources: _: type: nsxt:VpcAttachment get: id: ${id}
- 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.
- Description string
- Description of the resource.
- Display
Name string - Display name of the resource.
- Nsx
Id string - The NSX ID of this resource. If set, this ID will be used to create the resource.
- Parent
Path string - Policy path of parent VPC object.
- Path string
- The NSX path of the policy resource.
- Revision double
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
- List<Vpc
Attachment Tag> - A list of scope + tag pairs to associate with this resource.
- Vpc
Attachment stringId - ID of the resource.
- Vpc
Connectivity stringProfile - Path of VPC connectivity profile to attach to the VPC.
- Description string
- Description of the resource.
- Display
Name string - Display name of the resource.
- Nsx
Id string - The NSX ID of this resource. If set, this ID will be used to create the resource.
- Parent
Path string - Policy path of parent VPC object.
- Path string
- The NSX path of the policy resource.
- Revision float64
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
- []Vpc
Attachment Tag Args - A list of scope + tag pairs to associate with this resource.
- Vpc
Attachment stringId - ID of the resource.
- Vpc
Connectivity stringProfile - Path of VPC connectivity profile to attach to the VPC.
- description String
- Description of the resource.
- display
Name String - Display name of the resource.
- nsx
Id String - The NSX ID of this resource. If set, this ID will be used to create the resource.
- parent
Path String - Policy path of parent VPC object.
- path String
- The NSX path of the policy resource.
- revision Double
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
- List<Vpc
Attachment Tag> - A list of scope + tag pairs to associate with this resource.
- vpc
Attachment StringId - ID of the resource.
- vpc
Connectivity StringProfile - Path of VPC connectivity profile to attach to the VPC.
- description string
- Description of the resource.
- display
Name string - Display name of the resource.
- nsx
Id string - The NSX ID of this resource. If set, this ID will be used to create the resource.
- parent
Path string - Policy path of parent VPC object.
- path string
- The NSX path of the policy resource.
- revision number
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
- Vpc
Attachment Tag[] - A list of scope + tag pairs to associate with this resource.
- vpc
Attachment stringId - ID of the resource.
- vpc
Connectivity stringProfile - Path of VPC connectivity profile to attach to the VPC.
- description str
- Description of the resource.
- display_
name str - Display name of the resource.
- nsx_
id str - The NSX ID of this resource. If set, this ID will be used to create the resource.
- parent_
path str - Policy path of parent VPC object.
- path str
- The NSX path of the policy resource.
- revision float
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
- Sequence[Vpc
Attachment Tag Args] - A list of scope + tag pairs to associate with this resource.
- vpc_
attachment_ strid - ID of the resource.
- vpc_
connectivity_ strprofile - Path of VPC connectivity profile to attach to the VPC.
- description String
- Description of the resource.
- display
Name String - Display name of the resource.
- nsx
Id String - The NSX ID of this resource. If set, this ID will be used to create the resource.
- parent
Path String - Policy path of parent VPC object.
- path String
- The NSX path of the policy resource.
- revision Number
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
- List<Property Map>
- A list of scope + tag pairs to associate with this resource.
- vpc
Attachment StringId - ID of the resource.
- vpc
Connectivity StringProfile - Path of VPC connectivity profile to attach to the VPC.
Supporting Types
VpcAttachmentTag, VpcAttachmentTagArgs
Package Details
- Repository
- nsxt vmware/terraform-provider-nsxt
- License
- Notes
- This Pulumi package is based on the
nsxt
Terraform Provider.