@spacelift-io/pulumi-spacelift
Version:
A Pulumi package for creating and managing Spacelift resources.
140 lines (139 loc) • 4.99 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* `spacelift.AwsIntegrationAttachment` represents the attachment between a reusable AWS integration and a single stack or module.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as spacelift from "@spacelift-io/pulumi-spacelift";
*
* // For a stack
* const thisAwsIntegrationAttachment = new spacelift.AwsIntegrationAttachment("thisAwsIntegrationAttachment", {
* integrationId: spacelift_aws_integration["this"].id,
* stackId: "my-stack-id",
* read: true,
* write: true,
* }, {
* dependsOn: [aws_iam_role["this"]],
* });
* // For a module
* const thisIndex_awsIntegrationAttachmentAwsIntegrationAttachment = new spacelift.AwsIntegrationAttachment("thisIndex/awsIntegrationAttachmentAwsIntegrationAttachment", {
* integrationId: spacelift_aws_integration["this"].id,
* moduleId: "my-module-id",
* read: true,
* write: true,
* }, {
* dependsOn: [aws_iam_role["this"]],
* });
* ```
*
* ## Import
*
* ```sh
* $ pulumi import spacelift:index/awsIntegrationAttachment:AwsIntegrationAttachment read_write_my_stack $INTEGRATION_ID/$PROJECT_ID
* ```
*/
export declare class AwsIntegrationAttachment extends pulumi.CustomResource {
/**
* Get an existing AwsIntegrationAttachment resource's state with the given name, ID, and optional extra
* properties used to qualify the lookup.
*
* @param name The _unique_ name of the resulting resource.
* @param id The _unique_ provider ID of the resource to lookup.
* @param state Any extra arguments used during the lookup.
* @param opts Optional settings to control the behavior of the CustomResource.
*/
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: AwsIntegrationAttachmentState, opts?: pulumi.CustomResourceOptions): AwsIntegrationAttachment;
/**
* Returns true if the given object is an instance of AwsIntegrationAttachment. This is designed to work even
* when multiple copies of the Pulumi SDK have been loaded into the same process.
*/
static isInstance(obj: any): obj is AwsIntegrationAttachment;
/**
* Internal ID of the attachment entity
*/
readonly attachmentId: pulumi.Output<string>;
/**
* ID of the integration to attach
*/
readonly integrationId: pulumi.Output<string>;
/**
* ID of the module to attach the integration to
*/
readonly moduleId: pulumi.Output<string | undefined>;
/**
* Indicates whether this attachment is used for read operations. Defaults to `true`.
*/
readonly read: pulumi.Output<boolean | undefined>;
/**
* ID of the stack to attach the integration to
*/
readonly stackId: pulumi.Output<string | undefined>;
/**
* Indicates whether this attachment is used for write operations. Defaults to `true`.
*/
readonly write: pulumi.Output<boolean | undefined>;
/**
* Create a AwsIntegrationAttachment resource with the given unique name, arguments, and options.
*
* @param name The _unique_ name of the resource.
* @param args The arguments to use to populate this resource's properties.
* @param opts A bag of options that control this resource's behavior.
*/
constructor(name: string, args: AwsIntegrationAttachmentArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering AwsIntegrationAttachment resources.
*/
export interface AwsIntegrationAttachmentState {
/**
* Internal ID of the attachment entity
*/
attachmentId?: pulumi.Input<string>;
/**
* ID of the integration to attach
*/
integrationId?: pulumi.Input<string>;
/**
* ID of the module to attach the integration to
*/
moduleId?: pulumi.Input<string>;
/**
* Indicates whether this attachment is used for read operations. Defaults to `true`.
*/
read?: pulumi.Input<boolean>;
/**
* ID of the stack to attach the integration to
*/
stackId?: pulumi.Input<string>;
/**
* Indicates whether this attachment is used for write operations. Defaults to `true`.
*/
write?: pulumi.Input<boolean>;
}
/**
* The set of arguments for constructing a AwsIntegrationAttachment resource.
*/
export interface AwsIntegrationAttachmentArgs {
/**
* ID of the integration to attach
*/
integrationId: pulumi.Input<string>;
/**
* ID of the module to attach the integration to
*/
moduleId?: pulumi.Input<string>;
/**
* Indicates whether this attachment is used for read operations. Defaults to `true`.
*/
read?: pulumi.Input<boolean>;
/**
* ID of the stack to attach the integration to
*/
stackId?: pulumi.Input<string>;
/**
* Indicates whether this attachment is used for write operations. Defaults to `true`.
*/
write?: pulumi.Input<boolean>;
}