UNPKG

@pulumi/aws

Version:

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

55 lines (54 loc) 2.33 kB
import * as pulumi from "@pulumi/pulumi"; /** * Data source for managing an AWS Organizations Policies For Target. * * ## Example Usage */ export declare function getPoliciesForTarget(args: GetPoliciesForTargetArgs, opts?: pulumi.InvokeOptions): Promise<GetPoliciesForTargetResult>; /** * A collection of arguments for invoking getPoliciesForTarget. */ export interface GetPoliciesForTargetArgs { /** * Must supply one of the 5 different policy filters for a target (AISERVICES_OPT_OUT_POLICY | BACKUP_POLICY | RESOURCE_CONTROL_POLICY | SERVICE_CONTROL_POLICY | TAG_POLICY) */ filter: string; /** * The root (string that begins with "r-" followed by 4-32 lowercase letters or digits), account (12 digit string), or Organizational Unit (string starting with "ou-" followed by 4-32 lowercase letters or digits. This string is followed by a second "-" dash and from 8-32 additional lowercase letters or digits.) */ targetId: string; } /** * A collection of values returned by getPoliciesForTarget. */ export interface GetPoliciesForTargetResult { readonly filter: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * List of all the policy ids found. */ readonly ids: string[]; readonly targetId: string; } /** * Data source for managing an AWS Organizations Policies For Target. * * ## Example Usage */ export declare function getPoliciesForTargetOutput(args: GetPoliciesForTargetOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetPoliciesForTargetResult>; /** * A collection of arguments for invoking getPoliciesForTarget. */ export interface GetPoliciesForTargetOutputArgs { /** * Must supply one of the 5 different policy filters for a target (AISERVICES_OPT_OUT_POLICY | BACKUP_POLICY | RESOURCE_CONTROL_POLICY | SERVICE_CONTROL_POLICY | TAG_POLICY) */ filter: pulumi.Input<string>; /** * The root (string that begins with "r-" followed by 4-32 lowercase letters or digits), account (12 digit string), or Organizational Unit (string starting with "ou-" followed by 4-32 lowercase letters or digits. This string is followed by a second "-" dash and from 8-32 additional lowercase letters or digits.) */ targetId: pulumi.Input<string>; }