All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.aws.organizations.inputs.GetPoliciesForTargetPlainArgs Maven / Gradle / Ivy

Go to download

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

The newest version!
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.aws.organizations.inputs;

import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;


public final class GetPoliciesForTargetPlainArgs extends com.pulumi.resources.InvokeArgs {

    public static final GetPoliciesForTargetPlainArgs Empty = new GetPoliciesForTargetPlainArgs();

    /**
     * Must supply one of the 4 different policy filters for a target (SERVICE_CONTROL_POLICY | TAG_POLICY | BACKUP_POLICY | AISERVICES_OPT_OUT_POLICY)
     * 
     */
    @Import(name="filter", required=true)
    private String filter;

    /**
     * @return Must supply one of the 4 different policy filters for a target (SERVICE_CONTROL_POLICY | TAG_POLICY | BACKUP_POLICY | AISERVICES_OPT_OUT_POLICY)
     * 
     */
    public String filter() {
        return this.filter;
    }

    /**
     * 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.)
     * 
     */
    @Import(name="targetId", required=true)
    private String targetId;

    /**
     * @return 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.)
     * 
     */
    public String targetId() {
        return this.targetId;
    }

    private GetPoliciesForTargetPlainArgs() {}

    private GetPoliciesForTargetPlainArgs(GetPoliciesForTargetPlainArgs $) {
        this.filter = $.filter;
        this.targetId = $.targetId;
    }

    public static Builder builder() {
        return new Builder();
    }
    public static Builder builder(GetPoliciesForTargetPlainArgs defaults) {
        return new Builder(defaults);
    }

    public static final class Builder {
        private GetPoliciesForTargetPlainArgs $;

        public Builder() {
            $ = new GetPoliciesForTargetPlainArgs();
        }

        public Builder(GetPoliciesForTargetPlainArgs defaults) {
            $ = new GetPoliciesForTargetPlainArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param filter Must supply one of the 4 different policy filters for a target (SERVICE_CONTROL_POLICY | TAG_POLICY | BACKUP_POLICY | AISERVICES_OPT_OUT_POLICY)
         * 
         * @return builder
         * 
         */
        public Builder filter(String filter) {
            $.filter = filter;
            return this;
        }

        /**
         * @param targetId 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.)
         * 
         * @return builder
         * 
         */
        public Builder targetId(String targetId) {
            $.targetId = targetId;
            return this;
        }

        public GetPoliciesForTargetPlainArgs build() {
            if ($.filter == null) {
                throw new MissingRequiredPropertyException("GetPoliciesForTargetPlainArgs", "filter");
            }
            if ($.targetId == null) {
                throw new MissingRequiredPropertyException("GetPoliciesForTargetPlainArgs", "targetId");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy