// Describes one or more attachments between resources and transit gateways. By
// default, all attachments are described. Alternatively, you can filter the
// results by attachment ID, attachment state, resource ID, or resource owner.
Describes one or more attachments between resources and transit gateways. By
default, all attachments are described. Alternatively, you can filter the
results by attachment ID, attachment state, resource ID, or resource owner.
// Describes one or more attachments between resources and transit gateways . By // default all attachments are described . Alternatively you can filter the // results by attachment ID attachment state resource ID or resource owner .
func (c *Client) DescribeTransitGatewayAttachments(ctx context.Context, params *DescribeTransitGatewayAttachmentsInput, optFns ...func(*Options)) (*DescribeTransitGatewayAttachmentsOutput, error) {
	if params == nil {
		params = &DescribeTransitGatewayAttachmentsInput{}
	}
	result, metadata, err := c.invokeOperation(ctx, "DescribeTransitGatewayAttachments", params, optFns, addOperationDescribeTransitGatewayAttachmentsMiddlewares)
	if err != nil {
		return nil, err
	}
	out := result.(*DescribeTransitGatewayAttachmentsOutput)
	out.ResultMetadata = metadata
	return out, nil
}
func ( c * Client ) DescribeTransitGatewayAttachments ( ctx context . Context , params * DescribeTransitGatewayAttachmentsInput , optFns ... func ( * Options ) ) ( * DescribeTransitGatewayAttachmentsOutput , error ) { if params == nil { params = & DescribeTransitGatewayAttachmentsInput { } } result , metadata , err := c . invokeOperation ( ctx , " " , params , optFns , addOperationDescribeTransitGatewayAttachmentsMiddlewares ) if err != nil { return nil , err } out := result . ( * DescribeTransitGatewayAttachmentsOutput ) out . ResultMetadata = metadata return out , nil }
Describes one or more attachments between resources and transit gateways.
Describes one or more attachments between resources and transit gateways .