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

com.pulumi.aws.quicksight.outputs.AnalysisPermission 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.outputs;

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

@CustomType
public final class AnalysisPermission {
    /**
     * @return List of IAM actions to grant or revoke permissions on.
     * 
     */
    private List actions;
    /**
     * @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.
     * 
     */
    private String principal;

    private AnalysisPermission() {}
    /**
     * @return List of IAM actions to grant or revoke permissions on.
     * 
     */
    public List actions() {
        return this.actions;
    }
    /**
     * @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 String principal() {
        return this.principal;
    }

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

    public static Builder builder(AnalysisPermission defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private List actions;
        private String principal;
        public Builder() {}
        public Builder(AnalysisPermission defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.actions = defaults.actions;
    	      this.principal = defaults.principal;
        }

        @CustomType.Setter
        public Builder actions(List actions) {
            if (actions == null) {
              throw new MissingRequiredPropertyException("AnalysisPermission", "actions");
            }
            this.actions = actions;
            return this;
        }
        public Builder actions(String... actions) {
            return actions(List.of(actions));
        }
        @CustomType.Setter
        public Builder principal(String principal) {
            if (principal == null) {
              throw new MissingRequiredPropertyException("AnalysisPermission", "principal");
            }
            this.principal = principal;
            return this;
        }
        public AnalysisPermission build() {
            final var _resultValue = new AnalysisPermission();
            _resultValue.actions = actions;
            _resultValue.principal = principal;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy