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

com.pulumi.aws.quicksight.inputs.AnalysisPermissionArgs 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.60.0-alpha.1731982519
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.quicksight.inputs;

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 AnalysisPermissionArgs extends com.pulumi.resources.ResourceArgs {

    public static final AnalysisPermissionArgs Empty = new AnalysisPermissionArgs();

    /**
     * List of IAM actions to grant or revoke permissions on.
     * 
     */
    @Import(name="actions", required=true)
    private Output> actions;

    /**
     * @return List of IAM actions to grant or revoke permissions on.
     * 
     */
    public Output> actions() {
        return this.actions;
    }

    /**
     * ARN of the principal. See the [ResourcePermission documentation](https://docs.aws.amazon.com/quicksight/latest/APIReference/API_ResourcePermission.html) for the applicable ARN values.
     * 
     */
    @Import(name="principal", required=true)
    private Output principal;

    /**
     * @return ARN of the principal. See the [ResourcePermission documentation](https://docs.aws.amazon.com/quicksight/latest/APIReference/API_ResourcePermission.html) for the applicable ARN values.
     * 
     */
    public Output principal() {
        return this.principal;
    }

    private AnalysisPermissionArgs() {}

    private AnalysisPermissionArgs(AnalysisPermissionArgs $) {
        this.actions = $.actions;
        this.principal = $.principal;
    }

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

    public static final class Builder {
        private AnalysisPermissionArgs $;

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

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

        /**
         * @param actions List of IAM actions to grant or revoke permissions on.
         * 
         * @return builder
         * 
         */
        public Builder actions(Output> actions) {
            $.actions = actions;
            return this;
        }

        /**
         * @param actions List of IAM actions to grant or revoke permissions on.
         * 
         * @return builder
         * 
         */
        public Builder actions(List actions) {
            return actions(Output.of(actions));
        }

        /**
         * @param actions List of IAM actions to grant or revoke permissions on.
         * 
         * @return builder
         * 
         */
        public Builder actions(String... actions) {
            return actions(List.of(actions));
        }

        /**
         * @param principal ARN of the principal. See the [ResourcePermission documentation](https://docs.aws.amazon.com/quicksight/latest/APIReference/API_ResourcePermission.html) for the applicable ARN values.
         * 
         * @return builder
         * 
         */
        public Builder principal(Output principal) {
            $.principal = principal;
            return this;
        }

        /**
         * @param principal ARN of the principal. See the [ResourcePermission documentation](https://docs.aws.amazon.com/quicksight/latest/APIReference/API_ResourcePermission.html) for the applicable ARN values.
         * 
         * @return builder
         * 
         */
        public Builder principal(String principal) {
            return principal(Output.of(principal));
        }

        public AnalysisPermissionArgs build() {
            if ($.actions == null) {
                throw new MissingRequiredPropertyException("AnalysisPermissionArgs", "actions");
            }
            if ($.principal == null) {
                throw new MissingRequiredPropertyException("AnalysisPermissionArgs", "principal");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy