AWS Classic v5.41.0, May 15 23
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<Get
Attachments Filter> One or more configuration blocks containing name-values filters. Detailed below.
- Dictionary<string, string>
- Filters
[]Get
Attachments Filter One or more configuration blocks containing name-values filters. Detailed below.
- map[string]string
- filters
List<Get
Attachments Filter> One or more configuration blocks containing name-values filters. Detailed below.
- Map<String,String>
- filters
Get
Attachments Filter[] One or more configuration blocks containing name-values filters. Detailed below.
- {[key: string]: string}
- filters
Sequence[Get
Attachments Filter] One or more configuration blocks containing name-values filters. Detailed below.
- Mapping[str, str]
- filters List<Property Map>
One or more configuration blocks containing name-values filters. Detailed below.
- 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.
- Dictionary<string, string>
- Filters
List<Get
Attachments Filter>
- 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.
- map[string]string
- Filters
[]Get
Attachments Filter
- 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.
- Map<String,String>
- filters
List<Get
Attachments Filter>
- 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.
- {[key: string]: string}
- filters
Get
Attachments Filter[]
- 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.
- Mapping[str, str]
- filters
Sequence[Get
Attachments Filter]
- 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.
- 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.