@spacelift-io/pulumi-spacelift
Version:
A Pulumi package for creating and managing Spacelift resources.
85 lines (84 loc) • 2.37 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as spacelift from "@pulumi/spacelift";
*
* const k8s-module = spacelift.getGcpServiceAccount({
* moduleId: "k8s-module",
* });
* const k8s-core = spacelift.getGcpServiceAccount({
* stackId: "k8s-core",
* });
* ```
*/
export declare function getGcpServiceAccount(args?: GetGcpServiceAccountArgs, opts?: pulumi.InvokeOptions): Promise<GetGcpServiceAccountResult>;
/**
* A collection of arguments for invoking getGcpServiceAccount.
*/
export interface GetGcpServiceAccountArgs {
/**
* ID of the stack which uses GCP service account credentials
*/
moduleId?: string;
/**
* ID of the stack which uses GCP service account credentials
*/
stackId?: string;
}
/**
* A collection of values returned by getGcpServiceAccount.
*/
export interface GetGcpServiceAccountResult {
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
/**
* ID of the stack which uses GCP service account credentials
*/
readonly moduleId?: string;
/**
* email address of the GCP service account dedicated for this stack
*/
readonly serviceAccountEmail: string;
/**
* ID of the stack which uses GCP service account credentials
*/
readonly stackId?: string;
/**
* list of Google API scopes
*/
readonly tokenScopes: string[];
}
/**
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as spacelift from "@pulumi/spacelift";
*
* const k8s-module = spacelift.getGcpServiceAccount({
* moduleId: "k8s-module",
* });
* const k8s-core = spacelift.getGcpServiceAccount({
* stackId: "k8s-core",
* });
* ```
*/
export declare function getGcpServiceAccountOutput(args?: GetGcpServiceAccountOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetGcpServiceAccountResult>;
/**
* A collection of arguments for invoking getGcpServiceAccount.
*/
export interface GetGcpServiceAccountOutputArgs {
/**
* ID of the stack which uses GCP service account credentials
*/
moduleId?: pulumi.Input<string>;
/**
* ID of the stack which uses GCP service account credentials
*/
stackId?: pulumi.Input<string>;
}