1. Packages
  2. AWS
  3. API Docs
  4. organizations
  5. getPolicies
AWS v6.54.0 published on Friday, Sep 27, 2024 by Pulumi

aws.organizations.getPolicies

Explore with Pulumi AI

aws logo
AWS v6.54.0 published on Friday, Sep 27, 2024 by Pulumi

    Data source for managing an AWS Organizations Policies.

    Example Usage

    Using getPolicies

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getPolicies(args: GetPoliciesArgs, opts?: InvokeOptions): Promise<GetPoliciesResult>
    function getPoliciesOutput(args: GetPoliciesOutputArgs, opts?: InvokeOptions): Output<GetPoliciesResult>
    def get_policies(filter: Optional[str] = None,
                     opts: Optional[InvokeOptions] = None) -> GetPoliciesResult
    def get_policies_output(filter: Optional[pulumi.Input[str]] = None,
                     opts: Optional[InvokeOptions] = None) -> Output[GetPoliciesResult]
    func GetPolicies(ctx *Context, args *GetPoliciesArgs, opts ...InvokeOption) (*GetPoliciesResult, error)
    func GetPoliciesOutput(ctx *Context, args *GetPoliciesOutputArgs, opts ...InvokeOption) GetPoliciesResultOutput

    > Note: This function is named GetPolicies in the Go SDK.

    public static class GetPolicies 
    {
        public static Task<GetPoliciesResult> InvokeAsync(GetPoliciesArgs args, InvokeOptions? opts = null)
        public static Output<GetPoliciesResult> Invoke(GetPoliciesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetPoliciesResult> getPolicies(GetPoliciesArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: aws:organizations/getPolicies:getPolicies
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Filter string
    The type of policies to be returned in the response. Valid values are SERVICE_CONTROL_POLICY | TAG_POLICY | BACKUP_POLICY | AISERVICES_OPT_OUT_POLICY
    Filter string
    The type of policies to be returned in the response. Valid values are SERVICE_CONTROL_POLICY | TAG_POLICY | BACKUP_POLICY | AISERVICES_OPT_OUT_POLICY
    filter String
    The type of policies to be returned in the response. Valid values are SERVICE_CONTROL_POLICY | TAG_POLICY | BACKUP_POLICY | AISERVICES_OPT_OUT_POLICY
    filter string
    The type of policies to be returned in the response. Valid values are SERVICE_CONTROL_POLICY | TAG_POLICY | BACKUP_POLICY | AISERVICES_OPT_OUT_POLICY
    filter str
    The type of policies to be returned in the response. Valid values are SERVICE_CONTROL_POLICY | TAG_POLICY | BACKUP_POLICY | AISERVICES_OPT_OUT_POLICY
    filter String
    The type of policies to be returned in the response. Valid values are SERVICE_CONTROL_POLICY | TAG_POLICY | BACKUP_POLICY | AISERVICES_OPT_OUT_POLICY

    getPolicies Result

    The following output properties are available:

    Filter string
    Id string
    The provider-assigned unique ID for this managed resource.
    Ids List<string>
    List of all the policy ids found.
    Filter string
    Id string
    The provider-assigned unique ID for this managed resource.
    Ids []string
    List of all the policy ids found.
    filter String
    id String
    The provider-assigned unique ID for this managed resource.
    ids List<String>
    List of all the policy ids found.
    filter string
    id string
    The provider-assigned unique ID for this managed resource.
    ids string[]
    List of all the policy ids found.
    filter str
    id str
    The provider-assigned unique ID for this managed resource.
    ids Sequence[str]
    List of all the policy ids found.
    filter String
    id String
    The provider-assigned unique ID for this managed resource.
    ids List<String>
    List of all the policy ids found.

    Package Details

    Repository
    AWS Classic pulumi/pulumi-aws
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the aws Terraform Provider.
    aws logo
    AWS v6.54.0 published on Friday, Sep 27, 2024 by Pulumi