UNPKG

@pulumi/aws

Version:

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

60 lines 2.31 kB
"use strict"; // *** 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.getControlsOutput = exports.getControls = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * List of Control Tower controls applied to an OU. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const _this = aws.organizations.getOrganization({}); * const thisGetOrganizationalUnits = _this.then(_this => aws.organizations.getOrganizationalUnits({ * parentId: _this.roots?.[0]?.id, * })); * const thisGetControls = thisGetOrganizationalUnits.then(thisGetOrganizationalUnits => aws.controltower.getControls({ * targetIdentifier: .filter(x => x.name == "Security").map(x => (x.arn))[0], * })); * ``` */ function getControls(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("aws:controltower/getControls:getControls", { "region": args.region, "targetIdentifier": args.targetIdentifier, }, opts); } exports.getControls = getControls; /** * List of Control Tower controls applied to an OU. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const _this = aws.organizations.getOrganization({}); * const thisGetOrganizationalUnits = _this.then(_this => aws.organizations.getOrganizationalUnits({ * parentId: _this.roots?.[0]?.id, * })); * const thisGetControls = thisGetOrganizationalUnits.then(thisGetOrganizationalUnits => aws.controltower.getControls({ * targetIdentifier: .filter(x => x.name == "Security").map(x => (x.arn))[0], * })); * ``` */ function getControlsOutput(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("aws:controltower/getControls:getControls", { "region": args.region, "targetIdentifier": args.targetIdentifier, }, opts); } exports.getControlsOutput = getControlsOutput; //# sourceMappingURL=getControls.js.map