aws logo
AWS Classic v5.41.0, May 15 23

aws.ec2transitgateway.getAttachments

Explore with Pulumi AI

Get information on EC2 Transit Gateway Attachments.

Using getAttachments

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 getAttachments(args: GetAttachmentsArgs, opts?: InvokeOptions): Promise<GetAttachmentsResult>
function getAttachmentsOutput(args: GetAttachmentsOutputArgs, opts?: InvokeOptions): Output<GetAttachmentsResult>
def get_attachments(filters: Optional[Sequence[GetAttachmentsFilter]] = None,
                    tags: Optional[Mapping[str, str]] = None,
                    opts: Optional[InvokeOptions] = None) -> GetAttachmentsResult
def get_attachments_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetAttachmentsFilterArgs]]]] = None,
                    tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
                    opts: Optional[InvokeOptions] = None) -> Output[GetAttachmentsResult]
func GetAttachments(ctx *Context, args *GetAttachmentsArgs, opts ...InvokeOption) (*GetAttachmentsResult, error)
func GetAttachmentsOutput(ctx *Context, args *GetAttachmentsOutputArgs, opts ...InvokeOption) GetAttachmentsResultOutput

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

public static class GetAttachments 
{
    public static Task<GetAttachmentsResult> InvokeAsync(GetAttachmentsArgs args, InvokeOptions? opts = null)
    public static Output<GetAttachmentsResult> Invoke(GetAttachmentsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetAttachmentsResult> getAttachments(GetAttachmentsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: aws:ec2transitgateway/getAttachments:getAttachments
  arguments:
    # arguments dictionary

The following arguments are supported:

Filters List<GetAttachmentsFilter>

One or more configuration blocks containing name-values filters. Detailed below.

Tags Dictionary<string, string>
Filters []GetAttachmentsFilter

One or more configuration blocks containing name-values filters. Detailed below.

Tags map[string]string
filters List<GetAttachmentsFilter>

One or more configuration blocks containing name-values filters. Detailed below.

tags Map<String,String>
filters GetAttachmentsFilter[]

One or more configuration blocks containing name-values filters. Detailed below.

tags {[key: string]: string}
filters Sequence[GetAttachmentsFilter]

One or more configuration blocks containing name-values filters. Detailed below.

tags Mapping[str, str]
filters List<Property Map>

One or more configuration blocks containing name-values filters. Detailed below.

tags Map<String>

getAttachments Result

The following output properties are available:

Id string

The provider-assigned unique ID for this managed resource.

Ids List<string>

A list of all attachments ids matching the filter. You can retrieve more information about the attachment using the [aws.ec2transitgateway.getAttachment][2] data source, searching by identifier.

Tags Dictionary<string, string>
Filters List<GetAttachmentsFilter>
Id string

The provider-assigned unique ID for this managed resource.

Ids []string

A list of all attachments ids matching the filter. You can retrieve more information about the attachment using the [aws.ec2transitgateway.getAttachment][2] data source, searching by identifier.

Tags map[string]string
Filters []GetAttachmentsFilter
id String

The provider-assigned unique ID for this managed resource.

ids List<String>

A list of all attachments ids matching the filter. You can retrieve more information about the attachment using the [aws.ec2transitgateway.getAttachment][2] data source, searching by identifier.

tags Map<String,String>
filters List<GetAttachmentsFilter>
id string

The provider-assigned unique ID for this managed resource.

ids string[]

A list of all attachments ids matching the filter. You can retrieve more information about the attachment using the [aws.ec2transitgateway.getAttachment][2] data source, searching by identifier.

tags {[key: string]: string}
filters GetAttachmentsFilter[]
id str

The provider-assigned unique ID for this managed resource.

ids Sequence[str]

A list of all attachments ids matching the filter. You can retrieve more information about the attachment using the [aws.ec2transitgateway.getAttachment][2] data source, searching by identifier.

tags Mapping[str, str]
filters Sequence[GetAttachmentsFilter]
id String

The provider-assigned unique ID for this managed resource.

ids List<String>

A list of all attachments ids matching the filter. You can retrieve more information about the attachment using the [aws.ec2transitgateway.getAttachment][2] data source, searching by identifier.

tags Map<String>
filters List<Property Map>

Supporting Types

GetAttachmentsFilter

Name string

Name of the filter check available value on official documentation

Values List<string>

List of one or more values for the filter.

Name string

Name of the filter check available value on official documentation

Values []string

List of one or more values for the filter.

name String

Name of the filter check available value on official documentation

values List<String>

List of one or more values for the filter.

name string

Name of the filter check available value on official documentation

values string[]

List of one or more values for the filter.

name str

Name of the filter check available value on official documentation

values Sequence[str]

List of one or more values for the filter.

name String

Name of the filter check available value on official documentation

values List<String>

List of one or more values for the filter.

Package Details

Repository
AWS Classic pulumi/pulumi-aws
License
Apache-2.0
Notes

This Pulumi package is based on the aws Terraform Provider.