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

com.pulumi.aws.grafana.WorkspaceServiceAccountArgs Maven / Gradle / Ivy

// *** 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.grafana;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final WorkspaceServiceAccountArgs Empty = new WorkspaceServiceAccountArgs();

    /**
     * The permission level to use for this service account. For more information about the roles and the permissions each has, see the [User roles](https://docs.aws.amazon.com/grafana/latest/userguide/Grafana-user-roles.html) documentation.
     * 
     */
    @Import(name="grafanaRole", required=true)
    private Output grafanaRole;

    /**
     * @return The permission level to use for this service account. For more information about the roles and the permissions each has, see the [User roles](https://docs.aws.amazon.com/grafana/latest/userguide/Grafana-user-roles.html) documentation.
     * 
     */
    public Output grafanaRole() {
        return this.grafanaRole;
    }

    /**
     * A name for the service account. The name must be unique within the workspace, as it determines the ID associated with the service account.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return A name for the service account. The name must be unique within the workspace, as it determines the ID associated with the service account.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * The Grafana workspace with which the service account is associated.
     * 
     */
    @Import(name="workspaceId", required=true)
    private Output workspaceId;

    /**
     * @return The Grafana workspace with which the service account is associated.
     * 
     */
    public Output workspaceId() {
        return this.workspaceId;
    }

    private WorkspaceServiceAccountArgs() {}

    private WorkspaceServiceAccountArgs(WorkspaceServiceAccountArgs $) {
        this.grafanaRole = $.grafanaRole;
        this.name = $.name;
        this.workspaceId = $.workspaceId;
    }

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

    public static final class Builder {
        private WorkspaceServiceAccountArgs $;

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

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

        /**
         * @param grafanaRole The permission level to use for this service account. For more information about the roles and the permissions each has, see the [User roles](https://docs.aws.amazon.com/grafana/latest/userguide/Grafana-user-roles.html) documentation.
         * 
         * @return builder
         * 
         */
        public Builder grafanaRole(Output grafanaRole) {
            $.grafanaRole = grafanaRole;
            return this;
        }

        /**
         * @param grafanaRole The permission level to use for this service account. For more information about the roles and the permissions each has, see the [User roles](https://docs.aws.amazon.com/grafana/latest/userguide/Grafana-user-roles.html) documentation.
         * 
         * @return builder
         * 
         */
        public Builder grafanaRole(String grafanaRole) {
            return grafanaRole(Output.of(grafanaRole));
        }

        /**
         * @param name A name for the service account. The name must be unique within the workspace, as it determines the ID associated with the service account.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name A name for the service account. The name must be unique within the workspace, as it determines the ID associated with the service account.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param workspaceId The Grafana workspace with which the service account is associated.
         * 
         * @return builder
         * 
         */
        public Builder workspaceId(Output workspaceId) {
            $.workspaceId = workspaceId;
            return this;
        }

        /**
         * @param workspaceId The Grafana workspace with which the service account is associated.
         * 
         * @return builder
         * 
         */
        public Builder workspaceId(String workspaceId) {
            return workspaceId(Output.of(workspaceId));
        }

        public WorkspaceServiceAccountArgs build() {
            if ($.grafanaRole == null) {
                throw new MissingRequiredPropertyException("WorkspaceServiceAccountArgs", "grafanaRole");
            }
            if ($.workspaceId == null) {
                throw new MissingRequiredPropertyException("WorkspaceServiceAccountArgs", "workspaceId");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy