@pulumi/gcp
Version:
A Pulumi package for creating and managing Google Cloud Platform resources.
89 lines (88 loc) • 2.82 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "../types/output";
/**
* Use this data source to list the Secret Manager Regional Secrets.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const secrets = gcp.secretmanager.getRegionalSecrets({
* location: "us-central1",
* });
* ```
*/
export declare function getRegionalSecrets(args: GetRegionalSecretsArgs, opts?: pulumi.InvokeOptions): Promise<GetRegionalSecretsResult>;
/**
* A collection of arguments for invoking getRegionalSecrets.
*/
export interface GetRegionalSecretsArgs {
/**
* Filter string, adhering to the rules in [List-operation filtering](https://cloud.google.com/secret-manager/docs/filtering). List only secrets matching the filter. If filter is empty, all regional secrets are listed from the specified location.
*/
filter?: string;
/**
* The location of the regional secret.
*/
location: string;
/**
* The ID of the project.
*/
project?: string;
}
/**
* A collection of values returned by getRegionalSecrets.
*/
export interface GetRegionalSecretsResult {
readonly filter?: string;
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
/**
* The location in which the resource belongs.
*/
readonly location: string;
/**
* The ID of the project in which the resource belongs.
*/
readonly project: string;
/**
* A list of regional secrets present in the specified location and matching the filter. Structure is defined below.
*/
readonly secrets: outputs.secretmanager.GetRegionalSecretsSecret[];
}
/**
* Use this data source to list the Secret Manager Regional Secrets.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const secrets = gcp.secretmanager.getRegionalSecrets({
* location: "us-central1",
* });
* ```
*/
export declare function getRegionalSecretsOutput(args: GetRegionalSecretsOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetRegionalSecretsResult>;
/**
* A collection of arguments for invoking getRegionalSecrets.
*/
export interface GetRegionalSecretsOutputArgs {
/**
* Filter string, adhering to the rules in [List-operation filtering](https://cloud.google.com/secret-manager/docs/filtering). List only secrets matching the filter. If filter is empty, all regional secrets are listed from the specified location.
*/
filter?: pulumi.Input<string>;
/**
* The location of the regional secret.
*/
location: pulumi.Input<string>;
/**
* The ID of the project.
*/
project?: pulumi.Input<string>;
}