confluentcloud.getTransitGatewayAttachment
Explore with Pulumi AI
confluentcloud.TransitGatewayAttachment
describes a Transit Gateway Attachment data source.
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using ConfluentCloud = Pulumi.ConfluentCloud;
return await Deployment.RunAsync(() =>
{
var exampleUsingIdTransitGatewayAttachment = ConfluentCloud.GetTransitGatewayAttachment.Invoke(new()
{
Id = "tgwa-abc123",
Environment = new ConfluentCloud.Inputs.GetTransitGatewayAttachmentEnvironmentInputArgs
{
Id = "env-xyz456",
},
});
var exampleUsingNameTransitGatewayAttachment = ConfluentCloud.GetTransitGatewayAttachment.Invoke(new()
{
DisplayName = "my_tgwa",
Environment = new ConfluentCloud.Inputs.GetTransitGatewayAttachmentEnvironmentInputArgs
{
Id = "env-xyz456",
},
});
return new Dictionary<string, object?>
{
["exampleUsingId"] = exampleUsingIdTransitGatewayAttachment,
["exampleUsingName"] = exampleUsingNameTransitGatewayAttachment,
};
});
package main
import (
"github.com/pulumi/pulumi-confluentcloud/sdk/go/confluentcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
exampleUsingIdTransitGatewayAttachment, err := confluentcloud.LookupTransitGatewayAttachment(ctx, &confluentcloud.LookupTransitGatewayAttachmentArgs{
Id: pulumi.StringRef("tgwa-abc123"),
Environment: confluentcloud.GetTransitGatewayAttachmentEnvironment{
Id: "env-xyz456",
},
}, nil)
if err != nil {
return err
}
ctx.Export("exampleUsingId", exampleUsingIdTransitGatewayAttachment)
exampleUsingNameTransitGatewayAttachment, err := confluentcloud.LookupTransitGatewayAttachment(ctx, &confluentcloud.LookupTransitGatewayAttachmentArgs{
DisplayName: pulumi.StringRef("my_tgwa"),
Environment: confluentcloud.GetTransitGatewayAttachmentEnvironment{
Id: "env-xyz456",
},
}, nil)
if err != nil {
return err
}
ctx.Export("exampleUsingName", exampleUsingNameTransitGatewayAttachment)
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.confluentcloud.ConfluentcloudFunctions;
import com.pulumi.confluentcloud.inputs.GetTransitGatewayAttachmentArgs;
import com.pulumi.confluentcloud.inputs.GetTransitGatewayAttachmentEnvironmentArgs;
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 exampleUsingIdTransitGatewayAttachment = ConfluentcloudFunctions.getTransitGatewayAttachment(GetTransitGatewayAttachmentArgs.builder()
.id("tgwa-abc123")
.environment(GetTransitGatewayAttachmentEnvironmentArgs.builder()
.id("env-xyz456")
.build())
.build());
ctx.export("exampleUsingId", exampleUsingIdTransitGatewayAttachment.applyValue(getTransitGatewayAttachmentResult -> getTransitGatewayAttachmentResult));
final var exampleUsingNameTransitGatewayAttachment = ConfluentcloudFunctions.getTransitGatewayAttachment(GetTransitGatewayAttachmentArgs.builder()
.displayName("my_tgwa")
.environment(GetTransitGatewayAttachmentEnvironmentArgs.builder()
.id("env-xyz456")
.build())
.build());
ctx.export("exampleUsingName", exampleUsingNameTransitGatewayAttachment.applyValue(getTransitGatewayAttachmentResult -> getTransitGatewayAttachmentResult));
}
}
import pulumi
import pulumi_confluentcloud as confluentcloud
example_using_id_transit_gateway_attachment = confluentcloud.get_transit_gateway_attachment(id="tgwa-abc123",
environment=confluentcloud.GetTransitGatewayAttachmentEnvironmentArgs(
id="env-xyz456",
))
pulumi.export("exampleUsingId", example_using_id_transit_gateway_attachment)
example_using_name_transit_gateway_attachment = confluentcloud.get_transit_gateway_attachment(display_name="my_tgwa",
environment=confluentcloud.GetTransitGatewayAttachmentEnvironmentArgs(
id="env-xyz456",
))
pulumi.export("exampleUsingName", example_using_name_transit_gateway_attachment)
import * as pulumi from "@pulumi/pulumi";
import * as confluentcloud from "@pulumi/confluentcloud";
const exampleUsingIdTransitGatewayAttachment = confluentcloud.getTransitGatewayAttachment({
id: "tgwa-abc123",
environment: {
id: "env-xyz456",
},
});
export const exampleUsingId = exampleUsingIdTransitGatewayAttachment;
const exampleUsingNameTransitGatewayAttachment = confluentcloud.getTransitGatewayAttachment({
displayName: "my_tgwa",
environment: {
id: "env-xyz456",
},
});
export const exampleUsingName = exampleUsingNameTransitGatewayAttachment;
variables:
exampleUsingIdTransitGatewayAttachment:
fn::invoke:
Function: confluentcloud:getTransitGatewayAttachment
Arguments:
id: tgwa-abc123
environment:
id: env-xyz456
exampleUsingNameTransitGatewayAttachment:
fn::invoke:
Function: confluentcloud:getTransitGatewayAttachment
Arguments:
displayName: my_tgwa
environment:
id: env-xyz456
outputs:
exampleUsingId: ${exampleUsingIdTransitGatewayAttachment}
exampleUsingName: ${exampleUsingNameTransitGatewayAttachment}
Using getTransitGatewayAttachment
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 getTransitGatewayAttachment(args: GetTransitGatewayAttachmentArgs, opts?: InvokeOptions): Promise<GetTransitGatewayAttachmentResult>
function getTransitGatewayAttachmentOutput(args: GetTransitGatewayAttachmentOutputArgs, opts?: InvokeOptions): Output<GetTransitGatewayAttachmentResult>
def get_transit_gateway_attachment(display_name: Optional[str] = None,
environment: Optional[GetTransitGatewayAttachmentEnvironment] = None,
id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetTransitGatewayAttachmentResult
def get_transit_gateway_attachment_output(display_name: Optional[pulumi.Input[str]] = None,
environment: Optional[pulumi.Input[GetTransitGatewayAttachmentEnvironmentArgs]] = None,
id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetTransitGatewayAttachmentResult]
func LookupTransitGatewayAttachment(ctx *Context, args *LookupTransitGatewayAttachmentArgs, opts ...InvokeOption) (*LookupTransitGatewayAttachmentResult, error)
func LookupTransitGatewayAttachmentOutput(ctx *Context, args *LookupTransitGatewayAttachmentOutputArgs, opts ...InvokeOption) LookupTransitGatewayAttachmentResultOutput
> Note: This function is named LookupTransitGatewayAttachment
in the Go SDK.
public static class GetTransitGatewayAttachment
{
public static Task<GetTransitGatewayAttachmentResult> InvokeAsync(GetTransitGatewayAttachmentArgs args, InvokeOptions? opts = null)
public static Output<GetTransitGatewayAttachmentResult> Invoke(GetTransitGatewayAttachmentInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetTransitGatewayAttachmentResult> getTransitGatewayAttachment(GetTransitGatewayAttachmentArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: confluentcloud:index/getTransitGatewayAttachment:getTransitGatewayAttachment
arguments:
# arguments dictionary
The following arguments are supported:
- Environment
Pulumi.
Confluent Cloud. Inputs. Get Transit Gateway Attachment Environment (Required Configuration Block) supports the following:
- Display
Name string A human-readable name for the Transit Gateway Attachment.
- Id string
The ID of the Environment that the Transit Gateway Attachment belongs to, for example,
env-xyz456
.Note: Exactly one from the
id
anddisplay_name
attributes must be specified.
- Environment
Get
Transit Gateway Attachment Environment (Required Configuration Block) supports the following:
- Display
Name string A human-readable name for the Transit Gateway Attachment.
- Id string
The ID of the Environment that the Transit Gateway Attachment belongs to, for example,
env-xyz456
.Note: Exactly one from the
id
anddisplay_name
attributes must be specified.
- environment
Get
Transit Gateway Attachment Environment (Required Configuration Block) supports the following:
- display
Name String A human-readable name for the Transit Gateway Attachment.
- id String
The ID of the Environment that the Transit Gateway Attachment belongs to, for example,
env-xyz456
.Note: Exactly one from the
id
anddisplay_name
attributes must be specified.
- environment
Get
Transit Gateway Attachment Environment (Required Configuration Block) supports the following:
- display
Name string A human-readable name for the Transit Gateway Attachment.
- id string
The ID of the Environment that the Transit Gateway Attachment belongs to, for example,
env-xyz456
.Note: Exactly one from the
id
anddisplay_name
attributes must be specified.
- environment
Get
Transit Gateway Attachment Environment (Required Configuration Block) supports the following:
- display_
name str A human-readable name for the Transit Gateway Attachment.
- id str
The ID of the Environment that the Transit Gateway Attachment belongs to, for example,
env-xyz456
.Note: Exactly one from the
id
anddisplay_name
attributes must be specified.
- environment Property Map
(Required Configuration Block) supports the following:
- display
Name String A human-readable name for the Transit Gateway Attachment.
- id String
The ID of the Environment that the Transit Gateway Attachment belongs to, for example,
env-xyz456
.Note: Exactly one from the
id
anddisplay_name
attributes must be specified.
getTransitGatewayAttachment Result
The following output properties are available:
- Aws
List<Pulumi.
Confluent Cloud. Outputs. Get Transit Gateway Attachment Aw> (Required Configuration Block) The AWS-specific Transit Gateway Attachment details. It supports the following:
- Display
Name string (Required String) The name of the Transit Gateway Attachment.
- Environment
Pulumi.
Confluent Cloud. Outputs. Get Transit Gateway Attachment Environment (Required Configuration Block) supports the following:
- Id string
(Required String) The ID of the Network that the Transit Gateway Attachment belongs to, for example,
n-abc123
.- Networks
List<Pulumi.
Confluent Cloud. Outputs. Get Transit Gateway Attachment Network> (Required Configuration Block) supports the following:
- Aws
[]Get
Transit Gateway Attachment Aw (Required Configuration Block) The AWS-specific Transit Gateway Attachment details. It supports the following:
- Display
Name string (Required String) The name of the Transit Gateway Attachment.
- Environment
Get
Transit Gateway Attachment Environment (Required Configuration Block) supports the following:
- Id string
(Required String) The ID of the Network that the Transit Gateway Attachment belongs to, for example,
n-abc123
.- Networks
[]Get
Transit Gateway Attachment Network (Required Configuration Block) supports the following:
- aws
List<Get
Transit Gateway Attachment Aw> (Required Configuration Block) The AWS-specific Transit Gateway Attachment details. It supports the following:
- display
Name String (Required String) The name of the Transit Gateway Attachment.
- environment
Get
Transit Gateway Attachment Environment (Required Configuration Block) supports the following:
- id String
(Required String) The ID of the Network that the Transit Gateway Attachment belongs to, for example,
n-abc123
.- networks
List<Get
Transit Gateway Attachment Network> (Required Configuration Block) supports the following:
- aws
Get
Transit Gateway Attachment Aw[] (Required Configuration Block) The AWS-specific Transit Gateway Attachment details. It supports the following:
- display
Name string (Required String) The name of the Transit Gateway Attachment.
- environment
Get
Transit Gateway Attachment Environment (Required Configuration Block) supports the following:
- id string
(Required String) The ID of the Network that the Transit Gateway Attachment belongs to, for example,
n-abc123
.- networks
Get
Transit Gateway Attachment Network[] (Required Configuration Block) supports the following:
- aws
Sequence[Get
Transit Gateway Attachment Aw] (Required Configuration Block) The AWS-specific Transit Gateway Attachment details. It supports the following:
- display_
name str (Required String) The name of the Transit Gateway Attachment.
- environment
Get
Transit Gateway Attachment Environment (Required Configuration Block) supports the following:
- id str
(Required String) The ID of the Network that the Transit Gateway Attachment belongs to, for example,
n-abc123
.- networks
Sequence[Get
Transit Gateway Attachment Network] (Required Configuration Block) supports the following:
- aws List<Property Map>
(Required Configuration Block) The AWS-specific Transit Gateway Attachment details. It supports the following:
- display
Name String (Required String) The name of the Transit Gateway Attachment.
- environment Property Map
(Required Configuration Block) supports the following:
- id String
(Required String) The ID of the Network that the Transit Gateway Attachment belongs to, for example,
n-abc123
.- networks List<Property Map>
(Required Configuration Block) supports the following:
Supporting Types
GetTransitGatewayAttachmentAw
- string
(Required String) The Amazon Resource Name (ARN) of the Resource Access Manager (RAM) Resource Share of the transit gateway your Confluent Cloud network attaches to.
- Routes List<string>
(Required List of String) List of destination routes for traffic from Confluent VPC to customer VPC via Transit Gateway.
- Transit
Gateway stringAttachment Id (Required String) The ID of the AWS Transit Gateway VPC Attachment that attaches Confluent VPC to Transit Gateway.
- Transit
Gateway stringId (Required String) The ID of the AWS Transit Gateway that you want Confluent CLoud to be attached to. Must start with
tgw-
.
- string
(Required String) The Amazon Resource Name (ARN) of the Resource Access Manager (RAM) Resource Share of the transit gateway your Confluent Cloud network attaches to.
- Routes []string
(Required List of String) List of destination routes for traffic from Confluent VPC to customer VPC via Transit Gateway.
- Transit
Gateway stringAttachment Id (Required String) The ID of the AWS Transit Gateway VPC Attachment that attaches Confluent VPC to Transit Gateway.
- Transit
Gateway stringId (Required String) The ID of the AWS Transit Gateway that you want Confluent CLoud to be attached to. Must start with
tgw-
.
- String
(Required String) The Amazon Resource Name (ARN) of the Resource Access Manager (RAM) Resource Share of the transit gateway your Confluent Cloud network attaches to.
- routes List<String>
(Required List of String) List of destination routes for traffic from Confluent VPC to customer VPC via Transit Gateway.
- transit
Gateway StringAttachment Id (Required String) The ID of the AWS Transit Gateway VPC Attachment that attaches Confluent VPC to Transit Gateway.
- transit
Gateway StringId (Required String) The ID of the AWS Transit Gateway that you want Confluent CLoud to be attached to. Must start with
tgw-
.
- string
(Required String) The Amazon Resource Name (ARN) of the Resource Access Manager (RAM) Resource Share of the transit gateway your Confluent Cloud network attaches to.
- routes string[]
(Required List of String) List of destination routes for traffic from Confluent VPC to customer VPC via Transit Gateway.
- transit
Gateway stringAttachment Id (Required String) The ID of the AWS Transit Gateway VPC Attachment that attaches Confluent VPC to Transit Gateway.
- transit
Gateway stringId (Required String) The ID of the AWS Transit Gateway that you want Confluent CLoud to be attached to. Must start with
tgw-
.
- str
(Required String) The Amazon Resource Name (ARN) of the Resource Access Manager (RAM) Resource Share of the transit gateway your Confluent Cloud network attaches to.
- routes Sequence[str]
(Required List of String) List of destination routes for traffic from Confluent VPC to customer VPC via Transit Gateway.
- transit_
gateway_ strattachment_ id (Required String) The ID of the AWS Transit Gateway VPC Attachment that attaches Confluent VPC to Transit Gateway.
- transit_
gateway_ strid (Required String) The ID of the AWS Transit Gateway that you want Confluent CLoud to be attached to. Must start with
tgw-
.
- String
(Required String) The Amazon Resource Name (ARN) of the Resource Access Manager (RAM) Resource Share of the transit gateway your Confluent Cloud network attaches to.
- routes List<String>
(Required List of String) List of destination routes for traffic from Confluent VPC to customer VPC via Transit Gateway.
- transit
Gateway StringAttachment Id (Required String) The ID of the AWS Transit Gateway VPC Attachment that attaches Confluent VPC to Transit Gateway.
- transit
Gateway StringId (Required String) The ID of the AWS Transit Gateway that you want Confluent CLoud to be attached to. Must start with
tgw-
.
GetTransitGatewayAttachmentEnvironment
- Id string
The ID of the Environment that the Transit Gateway Attachment belongs to, for example,
env-xyz456
.Note: Exactly one from the
id
anddisplay_name
attributes must be specified.
- Id string
The ID of the Environment that the Transit Gateway Attachment belongs to, for example,
env-xyz456
.Note: Exactly one from the
id
anddisplay_name
attributes must be specified.
- id String
The ID of the Environment that the Transit Gateway Attachment belongs to, for example,
env-xyz456
.Note: Exactly one from the
id
anddisplay_name
attributes must be specified.
- id string
The ID of the Environment that the Transit Gateway Attachment belongs to, for example,
env-xyz456
.Note: Exactly one from the
id
anddisplay_name
attributes must be specified.
- id str
The ID of the Environment that the Transit Gateway Attachment belongs to, for example,
env-xyz456
.Note: Exactly one from the
id
anddisplay_name
attributes must be specified.
- id String
The ID of the Environment that the Transit Gateway Attachment belongs to, for example,
env-xyz456
.Note: Exactly one from the
id
anddisplay_name
attributes must be specified.
GetTransitGatewayAttachmentNetwork
- Id string
The ID of the Environment that the Transit Gateway Attachment belongs to, for example,
env-xyz456
.Note: Exactly one from the
id
anddisplay_name
attributes must be specified.
- Id string
The ID of the Environment that the Transit Gateway Attachment belongs to, for example,
env-xyz456
.Note: Exactly one from the
id
anddisplay_name
attributes must be specified.
- id String
The ID of the Environment that the Transit Gateway Attachment belongs to, for example,
env-xyz456
.Note: Exactly one from the
id
anddisplay_name
attributes must be specified.
- id string
The ID of the Environment that the Transit Gateway Attachment belongs to, for example,
env-xyz456
.Note: Exactly one from the
id
anddisplay_name
attributes must be specified.
- id str
The ID of the Environment that the Transit Gateway Attachment belongs to, for example,
env-xyz456
.Note: Exactly one from the
id
anddisplay_name
attributes must be specified.
- id String
The ID of the Environment that the Transit Gateway Attachment belongs to, for example,
env-xyz456
.Note: Exactly one from the
id
anddisplay_name
attributes must be specified.
Package Details
- Repository
- Confluent Cloud pulumi/pulumi-confluentcloud
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
confluent
Terraform Provider.