@pulumi/aws
Version:
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
81 lines (80 loc) • 2.79 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* 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],
* }));
* ```
*/
export declare function getControls(args: GetControlsArgs, opts?: pulumi.InvokeOptions): Promise<GetControlsResult>;
/**
* A collection of arguments for invoking getControls.
*/
export interface GetControlsArgs {
/**
* Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
*/
region?: string;
/**
* The ARN of the organizational unit.
*/
targetIdentifier: string;
}
/**
* A collection of values returned by getControls.
*/
export interface GetControlsResult {
/**
* List of all the ARNs for the controls applied to the `targetIdentifier`.
*/
readonly enabledControls: string[];
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
readonly region: string;
readonly targetIdentifier: string;
}
/**
* 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],
* }));
* ```
*/
export declare function getControlsOutput(args: GetControlsOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetControlsResult>;
/**
* A collection of arguments for invoking getControls.
*/
export interface GetControlsOutputArgs {
/**
* Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
*/
region?: pulumi.Input<string>;
/**
* The ARN of the organizational unit.
*/
targetIdentifier: pulumi.Input<string>;
}