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

com.pulumi.aws.rolesanywhere.ProfileArgs 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.rolesanywhere;

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


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

    public static final ProfileArgs Empty = new ProfileArgs();

    /**
     * The number of seconds the vended session credentials are valid for. Defaults to 3600.
     * 
     */
    @Import(name="durationSeconds")
    private @Nullable Output durationSeconds;

    /**
     * @return The number of seconds the vended session credentials are valid for. Defaults to 3600.
     * 
     */
    public Optional> durationSeconds() {
        return Optional.ofNullable(this.durationSeconds);
    }

    /**
     * Whether or not the Profile is enabled.
     * 
     */
    @Import(name="enabled")
    private @Nullable Output enabled;

    /**
     * @return Whether or not the Profile is enabled.
     * 
     */
    public Optional> enabled() {
        return Optional.ofNullable(this.enabled);
    }

    /**
     * A list of managed policy ARNs that apply to the vended session credentials.
     * 
     */
    @Import(name="managedPolicyArns")
    private @Nullable Output> managedPolicyArns;

    /**
     * @return A list of managed policy ARNs that apply to the vended session credentials.
     * 
     */
    public Optional>> managedPolicyArns() {
        return Optional.ofNullable(this.managedPolicyArns);
    }

    /**
     * The name of the Profile.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return The name of the Profile.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * Specifies whether instance properties are required in [CreateSession](https://docs.aws.amazon.com/rolesanywhere/latest/APIReference/API_CreateSession.html) requests with this profile.
     * 
     */
    @Import(name="requireInstanceProperties")
    private @Nullable Output requireInstanceProperties;

    /**
     * @return Specifies whether instance properties are required in [CreateSession](https://docs.aws.amazon.com/rolesanywhere/latest/APIReference/API_CreateSession.html) requests with this profile.
     * 
     */
    public Optional> requireInstanceProperties() {
        return Optional.ofNullable(this.requireInstanceProperties);
    }

    /**
     * A list of IAM roles that this profile can assume
     * 
     */
    @Import(name="roleArns", required=true)
    private Output> roleArns;

    /**
     * @return A list of IAM roles that this profile can assume
     * 
     */
    public Output> roleArns() {
        return this.roleArns;
    }

    /**
     * A session policy that applies to the trust boundary of the vended session credentials.
     * 
     */
    @Import(name="sessionPolicy")
    private @Nullable Output sessionPolicy;

    /**
     * @return A session policy that applies to the trust boundary of the vended session credentials.
     * 
     */
    public Optional> sessionPolicy() {
        return Optional.ofNullable(this.sessionPolicy);
    }

    /**
     * A map of tags to assign to the resource. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
     * 
     */
    @Import(name="tags")
    private @Nullable Output> tags;

    /**
     * @return A map of tags to assign to the resource. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
     * 
     */
    public Optional>> tags() {
        return Optional.ofNullable(this.tags);
    }

    private ProfileArgs() {}

    private ProfileArgs(ProfileArgs $) {
        this.durationSeconds = $.durationSeconds;
        this.enabled = $.enabled;
        this.managedPolicyArns = $.managedPolicyArns;
        this.name = $.name;
        this.requireInstanceProperties = $.requireInstanceProperties;
        this.roleArns = $.roleArns;
        this.sessionPolicy = $.sessionPolicy;
        this.tags = $.tags;
    }

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

    public static final class Builder {
        private ProfileArgs $;

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

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

        /**
         * @param durationSeconds The number of seconds the vended session credentials are valid for. Defaults to 3600.
         * 
         * @return builder
         * 
         */
        public Builder durationSeconds(@Nullable Output durationSeconds) {
            $.durationSeconds = durationSeconds;
            return this;
        }

        /**
         * @param durationSeconds The number of seconds the vended session credentials are valid for. Defaults to 3600.
         * 
         * @return builder
         * 
         */
        public Builder durationSeconds(Integer durationSeconds) {
            return durationSeconds(Output.of(durationSeconds));
        }

        /**
         * @param enabled Whether or not the Profile is enabled.
         * 
         * @return builder
         * 
         */
        public Builder enabled(@Nullable Output enabled) {
            $.enabled = enabled;
            return this;
        }

        /**
         * @param enabled Whether or not the Profile is enabled.
         * 
         * @return builder
         * 
         */
        public Builder enabled(Boolean enabled) {
            return enabled(Output.of(enabled));
        }

        /**
         * @param managedPolicyArns A list of managed policy ARNs that apply to the vended session credentials.
         * 
         * @return builder
         * 
         */
        public Builder managedPolicyArns(@Nullable Output> managedPolicyArns) {
            $.managedPolicyArns = managedPolicyArns;
            return this;
        }

        /**
         * @param managedPolicyArns A list of managed policy ARNs that apply to the vended session credentials.
         * 
         * @return builder
         * 
         */
        public Builder managedPolicyArns(List managedPolicyArns) {
            return managedPolicyArns(Output.of(managedPolicyArns));
        }

        /**
         * @param managedPolicyArns A list of managed policy ARNs that apply to the vended session credentials.
         * 
         * @return builder
         * 
         */
        public Builder managedPolicyArns(String... managedPolicyArns) {
            return managedPolicyArns(List.of(managedPolicyArns));
        }

        /**
         * @param name The name of the Profile.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The name of the Profile.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param requireInstanceProperties Specifies whether instance properties are required in [CreateSession](https://docs.aws.amazon.com/rolesanywhere/latest/APIReference/API_CreateSession.html) requests with this profile.
         * 
         * @return builder
         * 
         */
        public Builder requireInstanceProperties(@Nullable Output requireInstanceProperties) {
            $.requireInstanceProperties = requireInstanceProperties;
            return this;
        }

        /**
         * @param requireInstanceProperties Specifies whether instance properties are required in [CreateSession](https://docs.aws.amazon.com/rolesanywhere/latest/APIReference/API_CreateSession.html) requests with this profile.
         * 
         * @return builder
         * 
         */
        public Builder requireInstanceProperties(Boolean requireInstanceProperties) {
            return requireInstanceProperties(Output.of(requireInstanceProperties));
        }

        /**
         * @param roleArns A list of IAM roles that this profile can assume
         * 
         * @return builder
         * 
         */
        public Builder roleArns(Output> roleArns) {
            $.roleArns = roleArns;
            return this;
        }

        /**
         * @param roleArns A list of IAM roles that this profile can assume
         * 
         * @return builder
         * 
         */
        public Builder roleArns(List roleArns) {
            return roleArns(Output.of(roleArns));
        }

        /**
         * @param roleArns A list of IAM roles that this profile can assume
         * 
         * @return builder
         * 
         */
        public Builder roleArns(String... roleArns) {
            return roleArns(List.of(roleArns));
        }

        /**
         * @param sessionPolicy A session policy that applies to the trust boundary of the vended session credentials.
         * 
         * @return builder
         * 
         */
        public Builder sessionPolicy(@Nullable Output sessionPolicy) {
            $.sessionPolicy = sessionPolicy;
            return this;
        }

        /**
         * @param sessionPolicy A session policy that applies to the trust boundary of the vended session credentials.
         * 
         * @return builder
         * 
         */
        public Builder sessionPolicy(String sessionPolicy) {
            return sessionPolicy(Output.of(sessionPolicy));
        }

        /**
         * @param tags A map of tags to assign to the resource. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Output> tags) {
            $.tags = tags;
            return this;
        }

        /**
         * @param tags A map of tags to assign to the resource. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
         * 
         * @return builder
         * 
         */
        public Builder tags(Map tags) {
            return tags(Output.of(tags));
        }

        public ProfileArgs build() {
            if ($.roleArns == null) {
                throw new MissingRequiredPropertyException("ProfileArgs", "roleArns");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy