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

com.pulumi.aws.cognito.inputs.UserPoolClientTokenValidityUnitsArgs Maven / Gradle / Ivy

Go to download

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

The 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.cognito.inputs;

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


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

    public static final UserPoolClientTokenValidityUnitsArgs Empty = new UserPoolClientTokenValidityUnitsArgs();

    /**
     * Time unit in for the value in `access_token_validity`, defaults to `hours`.
     * 
     */
    @Import(name="accessToken")
    private @Nullable Output accessToken;

    /**
     * @return Time unit in for the value in `access_token_validity`, defaults to `hours`.
     * 
     */
    public Optional> accessToken() {
        return Optional.ofNullable(this.accessToken);
    }

    /**
     * Time unit in for the value in `id_token_validity`, defaults to `hours`.
     * 
     */
    @Import(name="idToken")
    private @Nullable Output idToken;

    /**
     * @return Time unit in for the value in `id_token_validity`, defaults to `hours`.
     * 
     */
    public Optional> idToken() {
        return Optional.ofNullable(this.idToken);
    }

    /**
     * Time unit in for the value in `refresh_token_validity`, defaults to `days`.
     * 
     */
    @Import(name="refreshToken")
    private @Nullable Output refreshToken;

    /**
     * @return Time unit in for the value in `refresh_token_validity`, defaults to `days`.
     * 
     */
    public Optional> refreshToken() {
        return Optional.ofNullable(this.refreshToken);
    }

    private UserPoolClientTokenValidityUnitsArgs() {}

    private UserPoolClientTokenValidityUnitsArgs(UserPoolClientTokenValidityUnitsArgs $) {
        this.accessToken = $.accessToken;
        this.idToken = $.idToken;
        this.refreshToken = $.refreshToken;
    }

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

    public static final class Builder {
        private UserPoolClientTokenValidityUnitsArgs $;

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

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

        /**
         * @param accessToken Time unit in for the value in `access_token_validity`, defaults to `hours`.
         * 
         * @return builder
         * 
         */
        public Builder accessToken(@Nullable Output accessToken) {
            $.accessToken = accessToken;
            return this;
        }

        /**
         * @param accessToken Time unit in for the value in `access_token_validity`, defaults to `hours`.
         * 
         * @return builder
         * 
         */
        public Builder accessToken(String accessToken) {
            return accessToken(Output.of(accessToken));
        }

        /**
         * @param idToken Time unit in for the value in `id_token_validity`, defaults to `hours`.
         * 
         * @return builder
         * 
         */
        public Builder idToken(@Nullable Output idToken) {
            $.idToken = idToken;
            return this;
        }

        /**
         * @param idToken Time unit in for the value in `id_token_validity`, defaults to `hours`.
         * 
         * @return builder
         * 
         */
        public Builder idToken(String idToken) {
            return idToken(Output.of(idToken));
        }

        /**
         * @param refreshToken Time unit in for the value in `refresh_token_validity`, defaults to `days`.
         * 
         * @return builder
         * 
         */
        public Builder refreshToken(@Nullable Output refreshToken) {
            $.refreshToken = refreshToken;
            return this;
        }

        /**
         * @param refreshToken Time unit in for the value in `refresh_token_validity`, defaults to `days`.
         * 
         * @return builder
         * 
         */
        public Builder refreshToken(String refreshToken) {
            return refreshToken(Output.of(refreshToken));
        }

        public UserPoolClientTokenValidityUnitsArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy