@pulumiverse/dynatrace
Version:
A Pulumi package for creating and managing Dynatrace cloud resources.
70 lines • 2.78 kB
JavaScript
;
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
Object.defineProperty(exports, "__esModule", { value: true });
exports.getIamPolicyOutput = exports.getIamPolicy = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* > **Dynatrace SaaS only**
*
* > To utilize this resource, please define the environment variables `DT_CLIENT_ID`, `DT_CLIENT_SECRET`, `DT_ACCOUNT_ID` with an OAuth client including the following permissions: **Allow IAM policy configuration for environments** (`iam-policies-management`) and **View environments** (`account-env-read`).
*
* The IAM policy data source allows the policy UUID to be retrieved by its name and account/environment (exclude for global).
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as dynatrace from "@pulumi/dynatrace";
*
* const appengineadmin = dynatrace.getIamPolicy({
* name: "AppEngine - Admin",
* });
* export const policies = appengineadmin;
* ```
*
* ## Example Output
*/
function getIamPolicy(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("dynatrace:index/getIamPolicy:getIamPolicy", {
"account": args.account,
"environment": args.environment,
"name": args.name,
"uuid": args.uuid,
}, opts);
}
exports.getIamPolicy = getIamPolicy;
/**
* > **Dynatrace SaaS only**
*
* > To utilize this resource, please define the environment variables `DT_CLIENT_ID`, `DT_CLIENT_SECRET`, `DT_ACCOUNT_ID` with an OAuth client including the following permissions: **Allow IAM policy configuration for environments** (`iam-policies-management`) and **View environments** (`account-env-read`).
*
* The IAM policy data source allows the policy UUID to be retrieved by its name and account/environment (exclude for global).
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as dynatrace from "@pulumi/dynatrace";
*
* const appengineadmin = dynatrace.getIamPolicy({
* name: "AppEngine - Admin",
* });
* export const policies = appengineadmin;
* ```
*
* ## Example Output
*/
function getIamPolicyOutput(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("dynatrace:index/getIamPolicy:getIamPolicy", {
"account": args.account,
"environment": args.environment,
"name": args.name,
"uuid": args.uuid,
}, opts);
}
exports.getIamPolicyOutput = getIamPolicyOutput;
//# sourceMappingURL=getIamPolicy.js.map