@pulumi/aws
Version:
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
76 lines • 2.4 kB
JavaScript
;
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
Object.defineProperty(exports, "__esModule", { value: true });
exports.getAttachmentOutput = exports.getAttachment = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* Get information on an EC2 Transit Gateway's attachment to a resource.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const example = aws.ec2transitgateway.getAttachment({
* filters: [
* {
* name: "transit-gateway-id",
* values: [exampleAwsEc2TransitGateway.id],
* },
* {
* name: "resource-type",
* values: ["peering"],
* },
* ],
* });
* ```
*/
function getAttachment(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("aws:ec2transitgateway/getAttachment:getAttachment", {
"filters": args.filters,
"region": args.region,
"tags": args.tags,
"transitGatewayAttachmentId": args.transitGatewayAttachmentId,
}, opts);
}
exports.getAttachment = getAttachment;
/**
* Get information on an EC2 Transit Gateway's attachment to a resource.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const example = aws.ec2transitgateway.getAttachment({
* filters: [
* {
* name: "transit-gateway-id",
* values: [exampleAwsEc2TransitGateway.id],
* },
* {
* name: "resource-type",
* values: ["peering"],
* },
* ],
* });
* ```
*/
function getAttachmentOutput(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("aws:ec2transitgateway/getAttachment:getAttachment", {
"filters": args.filters,
"region": args.region,
"tags": args.tags,
"transitGatewayAttachmentId": args.transitGatewayAttachmentId,
}, opts);
}
exports.getAttachmentOutput = getAttachmentOutput;
//# sourceMappingURL=getAttachment.js.map