UNPKG

@lbrlabs/pulumi-scaleway

Version:

A Pulumi package for creating and managing scaleway cloud resources.

93 lines (92 loc) 2.73 kB
import * as pulumi from "@pulumi/pulumi"; /** * Gets information about an existing Project. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@pulumi/scaleway"; * * const byName = scaleway.getAccountProject({ * name: "default", * }); * const byId = scaleway.getAccountProject({ * projectId: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", * }); * ``` */ export declare function getAccountProject(args?: GetAccountProjectArgs, opts?: pulumi.InvokeOptions): Promise<GetAccountProjectResult>; /** * A collection of arguments for invoking getAccountProject. */ export interface GetAccountProjectArgs { /** * The name of the Project. * Only one of the `name` and `projectId` should be specified. */ name?: string; /** * The organization ID the Project is associated with. * If no default organizationId is set, one must be set explicitly in this datasource */ organizationId?: string; /** * The ID of the Project. * Only one of the `name` and `projectId` should be specified. */ projectId?: string; } /** * A collection of values returned by getAccountProject. */ export interface GetAccountProjectResult { readonly createdAt: string; readonly description: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; readonly name?: string; readonly organizationId?: string; readonly projectId: string; readonly updatedAt: string; } /** * Gets information about an existing Project. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@pulumi/scaleway"; * * const byName = scaleway.getAccountProject({ * name: "default", * }); * const byId = scaleway.getAccountProject({ * projectId: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", * }); * ``` */ export declare function getAccountProjectOutput(args?: GetAccountProjectOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetAccountProjectResult>; /** * A collection of arguments for invoking getAccountProject. */ export interface GetAccountProjectOutputArgs { /** * The name of the Project. * Only one of the `name` and `projectId` should be specified. */ name?: pulumi.Input<string>; /** * The organization ID the Project is associated with. * If no default organizationId is set, one must be set explicitly in this datasource */ organizationId?: pulumi.Input<string>; /** * The ID of the Project. * Only one of the `name` and `projectId` should be specified. */ projectId?: pulumi.Input<string>; }