nsxt.PolicyTransitGatewayAttachment
Explore with Pulumi AI
Create PolicyTransitGatewayAttachment Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new PolicyTransitGatewayAttachment(name: string, args: PolicyTransitGatewayAttachmentArgs, opts?: CustomResourceOptions);
@overload
def PolicyTransitGatewayAttachment(resource_name: str,
args: PolicyTransitGatewayAttachmentArgs,
opts: Optional[ResourceOptions] = None)
@overload
def PolicyTransitGatewayAttachment(resource_name: str,
opts: Optional[ResourceOptions] = None,
connection_path: Optional[str] = None,
display_name: Optional[str] = None,
parent_path: Optional[str] = None,
description: Optional[str] = None,
nsx_id: Optional[str] = None,
policy_transit_gateway_attachment_id: Optional[str] = None,
tags: Optional[Sequence[PolicyTransitGatewayAttachmentTagArgs]] = None)
func NewPolicyTransitGatewayAttachment(ctx *Context, name string, args PolicyTransitGatewayAttachmentArgs, opts ...ResourceOption) (*PolicyTransitGatewayAttachment, error)
public PolicyTransitGatewayAttachment(string name, PolicyTransitGatewayAttachmentArgs args, CustomResourceOptions? opts = null)
public PolicyTransitGatewayAttachment(String name, PolicyTransitGatewayAttachmentArgs args)
public PolicyTransitGatewayAttachment(String name, PolicyTransitGatewayAttachmentArgs args, CustomResourceOptions options)
type: nsxt:PolicyTransitGatewayAttachment
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 PolicyTransitGatewayAttachmentArgs
- 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 PolicyTransitGatewayAttachmentArgs
- 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 PolicyTransitGatewayAttachmentArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PolicyTransitGatewayAttachmentArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args PolicyTransitGatewayAttachmentArgs
- 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 policyTransitGatewayAttachmentResource = new Nsxt.PolicyTransitGatewayAttachment("policyTransitGatewayAttachmentResource", new()
{
ConnectionPath = "string",
DisplayName = "string",
ParentPath = "string",
Description = "string",
NsxId = "string",
PolicyTransitGatewayAttachmentId = "string",
Tags = new[]
{
new Nsxt.Inputs.PolicyTransitGatewayAttachmentTagArgs
{
Scope = "string",
Tag = "string",
},
},
});
example, err := nsxt.NewPolicyTransitGatewayAttachment(ctx, "policyTransitGatewayAttachmentResource", &nsxt.PolicyTransitGatewayAttachmentArgs{
ConnectionPath: pulumi.String("string"),
DisplayName: pulumi.String("string"),
ParentPath: pulumi.String("string"),
Description: pulumi.String("string"),
NsxId: pulumi.String("string"),
PolicyTransitGatewayAttachmentId: pulumi.String("string"),
Tags: nsxt.PolicyTransitGatewayAttachmentTagArray{
&nsxt.PolicyTransitGatewayAttachmentTagArgs{
Scope: pulumi.String("string"),
Tag: pulumi.String("string"),
},
},
})
var policyTransitGatewayAttachmentResource = new PolicyTransitGatewayAttachment("policyTransitGatewayAttachmentResource", PolicyTransitGatewayAttachmentArgs.builder()
.connectionPath("string")
.displayName("string")
.parentPath("string")
.description("string")
.nsxId("string")
.policyTransitGatewayAttachmentId("string")
.tags(PolicyTransitGatewayAttachmentTagArgs.builder()
.scope("string")
.tag("string")
.build())
.build());
policy_transit_gateway_attachment_resource = nsxt.PolicyTransitGatewayAttachment("policyTransitGatewayAttachmentResource",
connection_path="string",
display_name="string",
parent_path="string",
description="string",
nsx_id="string",
policy_transit_gateway_attachment_id="string",
tags=[{
"scope": "string",
"tag": "string",
}])
const policyTransitGatewayAttachmentResource = new nsxt.PolicyTransitGatewayAttachment("policyTransitGatewayAttachmentResource", {
connectionPath: "string",
displayName: "string",
parentPath: "string",
description: "string",
nsxId: "string",
policyTransitGatewayAttachmentId: "string",
tags: [{
scope: "string",
tag: "string",
}],
});
type: nsxt:PolicyTransitGatewayAttachment
properties:
connectionPath: string
description: string
displayName: string
nsxId: string
parentPath: string
policyTransitGatewayAttachmentId: string
tags:
- scope: string
tag: string
PolicyTransitGatewayAttachment 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 PolicyTransitGatewayAttachment resource accepts the following input properties:
- Connection
Path string - Policy path of the desired transit gateway external connection.
- Display
Name string - Display name of the resource.
- Parent
Path string - The path of the parent to bind with the profile. This is a policy path of a transit gateway.
- 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.
- Policy
Transit stringGateway Attachment Id - ID of the resource.
- List<Policy
Transit Gateway Attachment Tag> - A list of scope + tag pairs to associate with this resource.
- Connection
Path string - Policy path of the desired transit gateway external connection.
- Display
Name string - Display name of the resource.
- Parent
Path string - The path of the parent to bind with the profile. This is a policy path of a transit gateway.
- 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.
- Policy
Transit stringGateway Attachment Id - ID of the resource.
- []Policy
Transit Gateway Attachment Tag Args - A list of scope + tag pairs to associate with this resource.
- connection
Path String - Policy path of the desired transit gateway external connection.
- display
Name String - Display name of the resource.
- parent
Path String - The path of the parent to bind with the profile. This is a policy path of a transit gateway.
- 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.
- policy
Transit StringGateway Attachment Id - ID of the resource.
- List<Policy
Transit Gateway Attachment Tag> - A list of scope + tag pairs to associate with this resource.
- connection
Path string - Policy path of the desired transit gateway external connection.
- display
Name string - Display name of the resource.
- parent
Path string - The path of the parent to bind with the profile. This is a policy path of a transit gateway.
- 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.
- policy
Transit stringGateway Attachment Id - ID of the resource.
- Policy
Transit Gateway Attachment Tag[] - A list of scope + tag pairs to associate with this resource.
- connection_
path str - Policy path of the desired transit gateway external connection.
- display_
name str - Display name of the resource.
- parent_
path str - The path of the parent to bind with the profile. This is a policy path of a transit gateway.
- 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.
- policy_
transit_ strgateway_ attachment_ id - ID of the resource.
- Sequence[Policy
Transit Gateway Attachment Tag Args] - A list of scope + tag pairs to associate with this resource.
- connection
Path String - Policy path of the desired transit gateway external connection.
- display
Name String - Display name of the resource.
- parent
Path String - The path of the parent to bind with the profile. This is a policy path of a transit gateway.
- 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.
- policy
Transit StringGateway Attachment Id - ID of the resource.
- List<Property Map>
- A list of scope + tag pairs to associate with this resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the PolicyTransitGatewayAttachment resource produces the following output properties:
Look up Existing PolicyTransitGatewayAttachment Resource
Get an existing PolicyTransitGatewayAttachment 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?: PolicyTransitGatewayAttachmentState, opts?: CustomResourceOptions): PolicyTransitGatewayAttachment
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
connection_path: Optional[str] = None,
description: Optional[str] = None,
display_name: Optional[str] = None,
nsx_id: Optional[str] = None,
parent_path: Optional[str] = None,
path: Optional[str] = None,
policy_transit_gateway_attachment_id: Optional[str] = None,
revision: Optional[float] = None,
tags: Optional[Sequence[PolicyTransitGatewayAttachmentTagArgs]] = None) -> PolicyTransitGatewayAttachment
func GetPolicyTransitGatewayAttachment(ctx *Context, name string, id IDInput, state *PolicyTransitGatewayAttachmentState, opts ...ResourceOption) (*PolicyTransitGatewayAttachment, error)
public static PolicyTransitGatewayAttachment Get(string name, Input<string> id, PolicyTransitGatewayAttachmentState? state, CustomResourceOptions? opts = null)
public static PolicyTransitGatewayAttachment get(String name, Output<String> id, PolicyTransitGatewayAttachmentState state, CustomResourceOptions options)
resources: _: type: nsxt:PolicyTransitGatewayAttachment 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.
- Connection
Path string - Policy path of the desired transit gateway external connection.
- 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 - The path of the parent to bind with the profile. This is a policy path of a transit gateway.
- Path string
- The NSX path of the policy resource.
- Policy
Transit stringGateway Attachment Id - ID of the 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<Policy
Transit Gateway Attachment Tag> - A list of scope + tag pairs to associate with this resource.
- Connection
Path string - Policy path of the desired transit gateway external connection.
- 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 - The path of the parent to bind with the profile. This is a policy path of a transit gateway.
- Path string
- The NSX path of the policy resource.
- Policy
Transit stringGateway Attachment Id - ID of the resource.
- Revision float64
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
- []Policy
Transit Gateway Attachment Tag Args - A list of scope + tag pairs to associate with this resource.
- connection
Path String - Policy path of the desired transit gateway external connection.
- 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 - The path of the parent to bind with the profile. This is a policy path of a transit gateway.
- path String
- The NSX path of the policy resource.
- policy
Transit StringGateway Attachment Id - ID of the 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<Policy
Transit Gateway Attachment Tag> - A list of scope + tag pairs to associate with this resource.
- connection
Path string - Policy path of the desired transit gateway external connection.
- 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 - The path of the parent to bind with the profile. This is a policy path of a transit gateway.
- path string
- The NSX path of the policy resource.
- policy
Transit stringGateway Attachment Id - ID of the resource.
- revision number
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
- Policy
Transit Gateway Attachment Tag[] - A list of scope + tag pairs to associate with this resource.
- connection_
path str - Policy path of the desired transit gateway external connection.
- 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 - The path of the parent to bind with the profile. This is a policy path of a transit gateway.
- path str
- The NSX path of the policy resource.
- policy_
transit_ strgateway_ attachment_ id - ID of the 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[Policy
Transit Gateway Attachment Tag Args] - A list of scope + tag pairs to associate with this resource.
- connection
Path String - Policy path of the desired transit gateway external connection.
- 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 - The path of the parent to bind with the profile. This is a policy path of a transit gateway.
- path String
- The NSX path of the policy resource.
- policy
Transit StringGateway Attachment Id - ID of the 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.
Supporting Types
PolicyTransitGatewayAttachmentTag, PolicyTransitGatewayAttachmentTagArgs
Package Details
- Repository
- nsxt vmware/terraform-provider-nsxt
- License
- Notes
- This Pulumi package is based on the
nsxt
Terraform Provider.