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

com.pulumi.aws.iam.UserPoliciesExclusiveArgs Maven / Gradle / Ivy

Go to download

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

There is a newer version: 6.72.0
Show 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.iam;

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


public final class UserPoliciesExclusiveArgs extends com.pulumi.resources.ResourceArgs {

    public static final UserPoliciesExclusiveArgs Empty = new UserPoliciesExclusiveArgs();

    /**
     * A list of inline policy names to be assigned to the user. Policies attached to this user but not configured in this argument will be removed.
     * 
     */
    @Import(name="policyNames", required=true)
    private Output> policyNames;

    /**
     * @return A list of inline policy names to be assigned to the user. Policies attached to this user but not configured in this argument will be removed.
     * 
     */
    public Output> policyNames() {
        return this.policyNames;
    }

    /**
     * IAM user name.
     * 
     */
    @Import(name="userName", required=true)
    private Output userName;

    /**
     * @return IAM user name.
     * 
     */
    public Output userName() {
        return this.userName;
    }

    private UserPoliciesExclusiveArgs() {}

    private UserPoliciesExclusiveArgs(UserPoliciesExclusiveArgs $) {
        this.policyNames = $.policyNames;
        this.userName = $.userName;
    }

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

    public static final class Builder {
        private UserPoliciesExclusiveArgs $;

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

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

        /**
         * @param policyNames A list of inline policy names to be assigned to the user. Policies attached to this user but not configured in this argument will be removed.
         * 
         * @return builder
         * 
         */
        public Builder policyNames(Output> policyNames) {
            $.policyNames = policyNames;
            return this;
        }

        /**
         * @param policyNames A list of inline policy names to be assigned to the user. Policies attached to this user but not configured in this argument will be removed.
         * 
         * @return builder
         * 
         */
        public Builder policyNames(List policyNames) {
            return policyNames(Output.of(policyNames));
        }

        /**
         * @param policyNames A list of inline policy names to be assigned to the user. Policies attached to this user but not configured in this argument will be removed.
         * 
         * @return builder
         * 
         */
        public Builder policyNames(String... policyNames) {
            return policyNames(List.of(policyNames));
        }

        /**
         * @param userName IAM user name.
         * 
         * @return builder
         * 
         */
        public Builder userName(Output userName) {
            $.userName = userName;
            return this;
        }

        /**
         * @param userName IAM user name.
         * 
         * @return builder
         * 
         */
        public Builder userName(String userName) {
            return userName(Output.of(userName));
        }

        public UserPoliciesExclusiveArgs build() {
            if ($.policyNames == null) {
                throw new MissingRequiredPropertyException("UserPoliciesExclusiveArgs", "policyNames");
            }
            if ($.userName == null) {
                throw new MissingRequiredPropertyException("UserPoliciesExclusiveArgs", "userName");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy