@pulumi/gcp
Version:
A Pulumi package for creating and managing Google Cloud Platform resources.
85 lines (84 loc) • 2.29 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "../types/output";
/**
* Use this data source to get information about a Parameter Manager Parameter.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const parameterDatasource = gcp.parametermanager.getParameter({
* parameterId: "foobar",
* });
* ```
*/
export declare function getParameter(args: GetParameterArgs, opts?: pulumi.InvokeOptions): Promise<GetParameterResult>;
/**
* A collection of arguments for invoking getParameter.
*/
export interface GetParameterArgs {
/**
* The name of the parameter.
*/
parameterId: string;
/**
* The ID of the project in which the resource belongs.
*/
project?: string;
}
/**
* A collection of values returned by getParameter.
*/
export interface GetParameterResult {
readonly createTime: string;
readonly effectiveLabels: {
[key: string]: string;
};
readonly format: string;
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
readonly kmsKey: string;
readonly labels: {
[key: string]: string;
};
readonly name: string;
readonly parameterId: string;
readonly policyMembers: outputs.parametermanager.GetParameterPolicyMember[];
readonly project?: string;
readonly pulumiLabels: {
[key: string]: string;
};
readonly updateTime: string;
}
/**
* Use this data source to get information about a Parameter Manager Parameter.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const parameterDatasource = gcp.parametermanager.getParameter({
* parameterId: "foobar",
* });
* ```
*/
export declare function getParameterOutput(args: GetParameterOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetParameterResult>;
/**
* A collection of arguments for invoking getParameter.
*/
export interface GetParameterOutputArgs {
/**
* The name of the parameter.
*/
parameterId: pulumi.Input<string>;
/**
* The ID of the project in which the resource belongs.
*/
project?: pulumi.Input<string>;
}