@pulumi/gcp
Version:
A Pulumi package for creating and managing Google Cloud Platform resources.
64 lines • 4.45 kB
JavaScript
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
Object.defineProperty(exports, "__esModule", { value: true });
exports.getRegionalParameterVersionRenderOutput = exports.getRegionalParameterVersionRender = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* Get the value and metadata from a Parameter Manager Regional Parameter version with rendered payload data. For this datasource to work as expected, the principal of the parameter must be provided with the [Secret Manager Secret Accessor](https://cloud.google.com/secret-manager/docs/access-control#secretmanager.secretAccessor) role. For more information see the [official documentation](https://cloud.google.com/secret-manager/parameter-manager/docs/overview) and [API](https://cloud.google.com/secret-manager/parameter-manager/docs/reference/rest/v1/projects.locations.parameters.versions/render).
*
* > **Warning:** To use this data source, we must grant the `Secret Manager Secret Accessor` role to the principal of the parameter. Please note that it can take up to 7 minutes for the role to take effect. Hence, we might need to wait approximately 7 minutes after granting `Secret Manager Secret Accessor` role to the principal of the parameter. For more information see the [access change propagation documentation](https://cloud.google.com/iam/docs/access-change-propagation).
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const basic = gcp.parametermanager.getRegionalParameterVersionRender({
* parameter: "test-regional-parameter",
* parameterVersionId: "test-regional-parameter-version",
* location: "us-central1",
* });
* ```
*/
function getRegionalParameterVersionRender(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("gcp:parametermanager/getRegionalParameterVersionRender:getRegionalParameterVersionRender", {
"location": args.location,
"parameter": args.parameter,
"parameterVersionId": args.parameterVersionId,
"project": args.project,
}, opts);
}
exports.getRegionalParameterVersionRender = getRegionalParameterVersionRender;
/**
* Get the value and metadata from a Parameter Manager Regional Parameter version with rendered payload data. For this datasource to work as expected, the principal of the parameter must be provided with the [Secret Manager Secret Accessor](https://cloud.google.com/secret-manager/docs/access-control#secretmanager.secretAccessor) role. For more information see the [official documentation](https://cloud.google.com/secret-manager/parameter-manager/docs/overview) and [API](https://cloud.google.com/secret-manager/parameter-manager/docs/reference/rest/v1/projects.locations.parameters.versions/render).
*
* > **Warning:** To use this data source, we must grant the `Secret Manager Secret Accessor` role to the principal of the parameter. Please note that it can take up to 7 minutes for the role to take effect. Hence, we might need to wait approximately 7 minutes after granting `Secret Manager Secret Accessor` role to the principal of the parameter. For more information see the [access change propagation documentation](https://cloud.google.com/iam/docs/access-change-propagation).
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const basic = gcp.parametermanager.getRegionalParameterVersionRender({
* parameter: "test-regional-parameter",
* parameterVersionId: "test-regional-parameter-version",
* location: "us-central1",
* });
* ```
*/
function getRegionalParameterVersionRenderOutput(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("gcp:parametermanager/getRegionalParameterVersionRender:getRegionalParameterVersionRender", {
"location": args.location,
"parameter": args.parameter,
"parameterVersionId": args.parameterVersionId,
"project": args.project,
}, opts);
}
exports.getRegionalParameterVersionRenderOutput = getRegionalParameterVersionRenderOutput;
//# sourceMappingURL=getRegionalParameterVersionRender.js.map
;