UNPKG

@spacelift-io/pulumi-spacelift

Version:

A Pulumi package for creating and managing Spacelift resources.

69 lines 2.83 kB
"use strict"; // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** Object.defineProperty(exports, "__esModule", { value: true }); exports.getAwsIntegrationAttachmentExternalIdOutput = exports.getAwsIntegrationAttachmentExternalId = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * `spacelift.getAwsIntegrationAttachmentExternalId` is used to generate the external ID that would be used for role assumption when an AWS integration is attached to a stack or module. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as spacelift from "@pulumi/spacelift"; * * const myStack = spacelift.getAwsIntegrationAttachmentExternalId({ * integrationId: spacelift_aws_integration["this"].id, * stackId: "my-stack-id", * read: true, * write: true, * }); * const myModule = spacelift.getAwsIntegrationAttachmentExternalId({ * integrationId: spacelift_aws_integration["this"].id, * moduleId: "my-module-id", * read: true, * write: true, * }); * ``` */ function getAwsIntegrationAttachmentExternalId(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("spacelift:index/getAwsIntegrationAttachmentExternalId:getAwsIntegrationAttachmentExternalId", { "integrationId": args.integrationId, "moduleId": args.moduleId, "read": args.read, "stackId": args.stackId, "write": args.write, }, opts); } exports.getAwsIntegrationAttachmentExternalId = getAwsIntegrationAttachmentExternalId; /** * `spacelift.getAwsIntegrationAttachmentExternalId` is used to generate the external ID that would be used for role assumption when an AWS integration is attached to a stack or module. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as spacelift from "@pulumi/spacelift"; * * const myStack = spacelift.getAwsIntegrationAttachmentExternalId({ * integrationId: spacelift_aws_integration["this"].id, * stackId: "my-stack-id", * read: true, * write: true, * }); * const myModule = spacelift.getAwsIntegrationAttachmentExternalId({ * integrationId: spacelift_aws_integration["this"].id, * moduleId: "my-module-id", * read: true, * write: true, * }); * ``` */ function getAwsIntegrationAttachmentExternalIdOutput(args, opts) { return pulumi.output(args).apply((a) => getAwsIntegrationAttachmentExternalId(a, opts)); } exports.getAwsIntegrationAttachmentExternalIdOutput = getAwsIntegrationAttachmentExternalIdOutput; //# sourceMappingURL=getAwsIntegrationAttachmentExternalId.js.map