Package com.pulumi.aws.networkmanager
Class TransitGatewayConnectPeerAssociation
- java.lang.Object
-
- com.pulumi.resources.Resource
-
- com.pulumi.resources.CustomResource
-
- com.pulumi.aws.networkmanager.TransitGatewayConnectPeerAssociation
-
public class TransitGatewayConnectPeerAssociation extends com.pulumi.resources.CustomResource
Associates a transit gateway Connect peer with a device, and optionally, with a link. If you specify a link, it must be associated with the specified device. ## Example Usage ```java package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.aws.networkmanager.TransitGatewayConnectPeerAssociation; import com.pulumi.aws.networkmanager.TransitGatewayConnectPeerAssociationArgs; import java.util.List; import java.util.ArrayList; import java.util.Map; import java.io.File; import java.nio.file.Files; import java.nio.file.Paths; public class App { public static void main(String[] args) { Pulumi.run(App::stack); } public static void stack(Context ctx) { var example = new TransitGatewayConnectPeerAssociation("example", TransitGatewayConnectPeerAssociationArgs.builder() .globalNetworkId(aws_networkmanager_global_network.example().id()) .deviceId(aws_networkmanager_device.example().id()) .transitGatewayConnectPeerArn(aws_ec2_transit_gateway_connect_peer.example().arn()) .build()); } } ``` ## Import Using `pulumi import`, import `aws_networkmanager_transit_gateway_connect_peer_association` using the global network ID and customer gateway ARN. For example: ```sh $ pulumi import aws:networkmanager/transitGatewayConnectPeerAssociation:TransitGatewayConnectPeerAssociation example global-network-0d47f6t230mz46dy4,arn:aws:ec2:us-west-2:123456789012:transit-gateway-connect-peer/tgw-connect-peer-12345678 ```
-
-
Constructor Summary
Constructors Constructor Description TransitGatewayConnectPeerAssociation(java.lang.String name)
TransitGatewayConnectPeerAssociation(java.lang.String name, TransitGatewayConnectPeerAssociationArgs args)
TransitGatewayConnectPeerAssociation(java.lang.String name, TransitGatewayConnectPeerAssociationArgs args, com.pulumi.resources.CustomResourceOptions options)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.pulumi.core.Output<java.lang.String>
deviceId()
static TransitGatewayConnectPeerAssociation
get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, TransitGatewayConnectPeerAssociationState state, com.pulumi.resources.CustomResourceOptions options)
Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.com.pulumi.core.Output<java.lang.String>
globalNetworkId()
com.pulumi.core.Output<java.util.Optional<java.lang.String>>
linkId()
com.pulumi.core.Output<java.lang.String>
transitGatewayConnectPeerArn()
-
-
-
Constructor Detail
-
TransitGatewayConnectPeerAssociation
public TransitGatewayConnectPeerAssociation(java.lang.String name)
- Parameters:
name
- The _unique_ name of the resulting resource.
-
TransitGatewayConnectPeerAssociation
public TransitGatewayConnectPeerAssociation(java.lang.String name, TransitGatewayConnectPeerAssociationArgs args)
- Parameters:
name
- The _unique_ name of the resulting resource.args
- The arguments to use to populate this resource's properties.
-
TransitGatewayConnectPeerAssociation
public TransitGatewayConnectPeerAssociation(java.lang.String name, TransitGatewayConnectPeerAssociationArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options)
- Parameters:
name
- The _unique_ name of the resulting resource.args
- The arguments to use to populate this resource's properties.options
- A bag of options that control this resource's behavior.
-
-
Method Detail
-
deviceId
public com.pulumi.core.Output<java.lang.String> deviceId()
- Returns:
- The ID of the device.
-
globalNetworkId
public com.pulumi.core.Output<java.lang.String> globalNetworkId()
- Returns:
- The ID of the global network.
-
linkId
public com.pulumi.core.Output<java.util.Optional<java.lang.String>> linkId()
- Returns:
- The ID of the link.
-
transitGatewayConnectPeerArn
public com.pulumi.core.Output<java.lang.String> transitGatewayConnectPeerArn()
- Returns:
- The Amazon Resource Name (ARN) of the Connect peer.
-
get
public static TransitGatewayConnectPeerAssociation get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, @Nullable TransitGatewayConnectPeerAssociationState state, @Nullable com.pulumi.resources.CustomResourceOptions options)
Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.- Parameters:
name
- The _unique_ name of the resulting resource.id
- The _unique_ provider ID of the resource to lookup.state
-options
- Optional settings to control the behavior of the CustomResource.
-
-