hcp logo
HashiCorp Cloud Platform (HCP) v0.1.14, Dec 2 22

hcp.getAwsTransitGatewayAttachment

The AWS transit gateway attachment data source provides information about an existing transit gateway attachment.

Example Usage

using System.Collections.Generic;
using Pulumi;
using Hcp = Pulumi.Hcp;

return await Deployment.RunAsync(() => 
{
    var test = Hcp.GetAwsTransitGatewayAttachment.Invoke(new()
    {
        HvnId = @var.Hvn_id,
        TransitGatewayAttachmentId = @var.Transit_gateway_attachment_id,
    });

});
package main

import (
	"github.com/grapl-security/pulumi-hcp/sdk/go/hcp"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := hcp.LookupAwsTransitGatewayAttachment(ctx, &GetAwsTransitGatewayAttachmentArgs{
			HvnId:                      _var.Hvn_id,
			TransitGatewayAttachmentId: _var.Transit_gateway_attachment_id,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.hcp.HcpFunctions;
import com.pulumi.hcp.inputs.GetAwsTransitGatewayAttachmentArgs;
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) {
        final var test = HcpFunctions.getAwsTransitGatewayAttachment(GetAwsTransitGatewayAttachmentArgs.builder()
            .hvnId(var_.hvn_id())
            .transitGatewayAttachmentId(var_.transit_gateway_attachment_id())
            .build());

    }
}
import pulumi
import pulumi_hcp as hcp

test = hcp.get_aws_transit_gateway_attachment(hvn_id=var["hvn_id"],
    transit_gateway_attachment_id=var["transit_gateway_attachment_id"])
import * as pulumi from "@pulumi/pulumi";
import * as hcp from "@pulumi/hcp";

const test = hcp.getAwsTransitGatewayAttachment({
    hvnId: _var.hvn_id,
    transitGatewayAttachmentId: _var.transit_gateway_attachment_id,
});
variables:
  test:
    Fn::Invoke:
      Function: hcp:getAwsTransitGatewayAttachment
      Arguments:
        hvnId: ${var.hvn_id}
        transitGatewayAttachmentId: ${var.transit_gateway_attachment_id}

Using getAwsTransitGatewayAttachment

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getAwsTransitGatewayAttachment(args: GetAwsTransitGatewayAttachmentArgs, opts?: InvokeOptions): Promise<GetAwsTransitGatewayAttachmentResult>
function getAwsTransitGatewayAttachmentOutput(args: GetAwsTransitGatewayAttachmentOutputArgs, opts?: InvokeOptions): Output<GetAwsTransitGatewayAttachmentResult>
def get_aws_transit_gateway_attachment(hvn_id: Optional[str] = None,
                                       transit_gateway_attachment_id: Optional[str] = None,
                                       wait_for_active_state: Optional[bool] = None,
                                       opts: Optional[InvokeOptions] = None) -> GetAwsTransitGatewayAttachmentResult
def get_aws_transit_gateway_attachment_output(hvn_id: Optional[pulumi.Input[str]] = None,
                                       transit_gateway_attachment_id: Optional[pulumi.Input[str]] = None,
                                       wait_for_active_state: Optional[pulumi.Input[bool]] = None,
                                       opts: Optional[InvokeOptions] = None) -> Output[GetAwsTransitGatewayAttachmentResult]
func LookupAwsTransitGatewayAttachment(ctx *Context, args *LookupAwsTransitGatewayAttachmentArgs, opts ...InvokeOption) (*LookupAwsTransitGatewayAttachmentResult, error)
func LookupAwsTransitGatewayAttachmentOutput(ctx *Context, args *LookupAwsTransitGatewayAttachmentOutputArgs, opts ...InvokeOption) LookupAwsTransitGatewayAttachmentResultOutput

> Note: This function is named LookupAwsTransitGatewayAttachment in the Go SDK.

public static class GetAwsTransitGatewayAttachment 
{
    public static Task<GetAwsTransitGatewayAttachmentResult> InvokeAsync(GetAwsTransitGatewayAttachmentArgs args, InvokeOptions? opts = null)
    public static Output<GetAwsTransitGatewayAttachmentResult> Invoke(GetAwsTransitGatewayAttachmentInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetAwsTransitGatewayAttachmentResult> getAwsTransitGatewayAttachment(GetAwsTransitGatewayAttachmentArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: hcp:index/getAwsTransitGatewayAttachment:getAwsTransitGatewayAttachment
  arguments:
    # arguments dictionary

The following arguments are supported:

HvnId string

The ID of the HashiCorp Virtual Network (HVN).

TransitGatewayAttachmentId string

The user-settable name of the transit gateway attachment in HCP.

WaitForActiveState bool
HvnId string

The ID of the HashiCorp Virtual Network (HVN).

TransitGatewayAttachmentId string

The user-settable name of the transit gateway attachment in HCP.

WaitForActiveState bool
hvnId String

The ID of the HashiCorp Virtual Network (HVN).

transitGatewayAttachmentId String

The user-settable name of the transit gateway attachment in HCP.

waitForActiveState Boolean
hvnId string

The ID of the HashiCorp Virtual Network (HVN).

transitGatewayAttachmentId string

The user-settable name of the transit gateway attachment in HCP.

waitForActiveState boolean
hvn_id str

The ID of the HashiCorp Virtual Network (HVN).

transit_gateway_attachment_id str

The user-settable name of the transit gateway attachment in HCP.

wait_for_active_state bool
hvnId String

The ID of the HashiCorp Virtual Network (HVN).

transitGatewayAttachmentId String

The user-settable name of the transit gateway attachment in HCP.

waitForActiveState Boolean

getAwsTransitGatewayAttachment Result

The following output properties are available:

CreatedAt string

The time that the transit gateway attachment was created.

ExpiresAt string

The time after which the transit gateway attachment will be considered expired if it hasn't transitioned into ACCEPTED or ACTIVE state.

HvnId string

The ID of the HashiCorp Virtual Network (HVN).

Id string

The provider-assigned unique ID for this managed resource.

OrganizationId string

The ID of the HCP organization where the transit gateway attachment is located. Always matches the HVN's organization.

ProjectId string

The ID of the HCP project where the transit gateway attachment is located. Always matches the HVN's project.

ProviderTransitGatewayAttachmentId string

The transit gateway attachment ID used by AWS.

SelfLink string

A unique URL identifying the transit gateway attachment.

State string

The state of the transit gateway attachment.

TransitGatewayAttachmentId string

The user-settable name of the transit gateway attachment in HCP.

TransitGatewayId string

The ID of the user-owned transit gateway in AWS.

WaitForActiveState bool
CreatedAt string

The time that the transit gateway attachment was created.

ExpiresAt string

The time after which the transit gateway attachment will be considered expired if it hasn't transitioned into ACCEPTED or ACTIVE state.

HvnId string

The ID of the HashiCorp Virtual Network (HVN).

Id string

The provider-assigned unique ID for this managed resource.

OrganizationId string

The ID of the HCP organization where the transit gateway attachment is located. Always matches the HVN's organization.

ProjectId string

The ID of the HCP project where the transit gateway attachment is located. Always matches the HVN's project.

ProviderTransitGatewayAttachmentId string

The transit gateway attachment ID used by AWS.

SelfLink string

A unique URL identifying the transit gateway attachment.

State string

The state of the transit gateway attachment.

TransitGatewayAttachmentId string

The user-settable name of the transit gateway attachment in HCP.

TransitGatewayId string

The ID of the user-owned transit gateway in AWS.

WaitForActiveState bool
createdAt String

The time that the transit gateway attachment was created.

expiresAt String

The time after which the transit gateway attachment will be considered expired if it hasn't transitioned into ACCEPTED or ACTIVE state.

hvnId String

The ID of the HashiCorp Virtual Network (HVN).

id String

The provider-assigned unique ID for this managed resource.

organizationId String

The ID of the HCP organization where the transit gateway attachment is located. Always matches the HVN's organization.

projectId String

The ID of the HCP project where the transit gateway attachment is located. Always matches the HVN's project.

providerTransitGatewayAttachmentId String

The transit gateway attachment ID used by AWS.

selfLink String

A unique URL identifying the transit gateway attachment.

state String

The state of the transit gateway attachment.

transitGatewayAttachmentId String

The user-settable name of the transit gateway attachment in HCP.

transitGatewayId String

The ID of the user-owned transit gateway in AWS.

waitForActiveState Boolean
createdAt string

The time that the transit gateway attachment was created.

expiresAt string

The time after which the transit gateway attachment will be considered expired if it hasn't transitioned into ACCEPTED or ACTIVE state.

hvnId string

The ID of the HashiCorp Virtual Network (HVN).

id string

The provider-assigned unique ID for this managed resource.

organizationId string

The ID of the HCP organization where the transit gateway attachment is located. Always matches the HVN's organization.

projectId string

The ID of the HCP project where the transit gateway attachment is located. Always matches the HVN's project.

providerTransitGatewayAttachmentId string

The transit gateway attachment ID used by AWS.

selfLink string

A unique URL identifying the transit gateway attachment.

state string

The state of the transit gateway attachment.

transitGatewayAttachmentId string

The user-settable name of the transit gateway attachment in HCP.

transitGatewayId string

The ID of the user-owned transit gateway in AWS.

waitForActiveState boolean
created_at str

The time that the transit gateway attachment was created.

expires_at str

The time after which the transit gateway attachment will be considered expired if it hasn't transitioned into ACCEPTED or ACTIVE state.

hvn_id str

The ID of the HashiCorp Virtual Network (HVN).

id str

The provider-assigned unique ID for this managed resource.

organization_id str

The ID of the HCP organization where the transit gateway attachment is located. Always matches the HVN's organization.

project_id str

The ID of the HCP project where the transit gateway attachment is located. Always matches the HVN's project.

provider_transit_gateway_attachment_id str

The transit gateway attachment ID used by AWS.

self_link str

A unique URL identifying the transit gateway attachment.

state str

The state of the transit gateway attachment.

transit_gateway_attachment_id str

The user-settable name of the transit gateway attachment in HCP.

transit_gateway_id str

The ID of the user-owned transit gateway in AWS.

wait_for_active_state bool
createdAt String

The time that the transit gateway attachment was created.

expiresAt String

The time after which the transit gateway attachment will be considered expired if it hasn't transitioned into ACCEPTED or ACTIVE state.

hvnId String

The ID of the HashiCorp Virtual Network (HVN).

id String

The provider-assigned unique ID for this managed resource.

organizationId String

The ID of the HCP organization where the transit gateway attachment is located. Always matches the HVN's organization.

projectId String

The ID of the HCP project where the transit gateway attachment is located. Always matches the HVN's project.

providerTransitGatewayAttachmentId String

The transit gateway attachment ID used by AWS.

selfLink String

A unique URL identifying the transit gateway attachment.

state String

The state of the transit gateway attachment.

transitGatewayAttachmentId String

The user-settable name of the transit gateway attachment in HCP.

transitGatewayId String

The ID of the user-owned transit gateway in AWS.

waitForActiveState Boolean

Package Details

Repository
hcp grapl-security/pulumi-hcp
License
Apache-2.0
Notes

This Pulumi package is based on the hcp Terraform Provider.