import * as pulumi from "@pulumi/pulumi"; /** * The `scaleway.AccountProject` data source is used to retrieve information about a Scaleway project. * * Refer to the Organizations and Projects [documentation](https://www.scaleway.com/en/docs/identity-and-access-management/organizations-and-projects/) and [API documentation](https://www.scaleway.com/en/developers/api/account/project-api/) for more information. * * ## Retrieve a Scaleway Project * * The following commands allow you to: * * - retrieve a Project by its name * - retrieve a Project by its ID * - retrieve the default project of an Organization * * ```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; /** * 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 unique identifier of the Organization with which the Project is associated. * * If no default `organizationId` is set, one must be set explicitly in this datasource */ organizationId?: string; /** * The unique identifier 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; } /** * The `scaleway.AccountProject` data source is used to retrieve information about a Scaleway project. * * Refer to the Organizations and Projects [documentation](https://www.scaleway.com/en/docs/identity-and-access-management/organizations-and-projects/) and [API documentation](https://www.scaleway.com/en/developers/api/account/project-api/) for more information. * * ## Retrieve a Scaleway Project * * The following commands allow you to: * * - retrieve a Project by its name * - retrieve a Project by its ID * - retrieve the default project of an Organization * * ```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.InvokeOutputOptions): pulumi.Output; /** * 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; /** * The unique identifier of the Organization with which the Project is associated. * * If no default `organizationId` is set, one must be set explicitly in this datasource */ organizationId?: pulumi.Input; /** * The unique identifier of the Project. * Only one of the `name` and `projectId` should be specified. */ projectId?: pulumi.Input; }