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

com.pulumi.aws.apigatewayv2.inputs.AuthorizerJwtConfigurationArgs 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.apigatewayv2.inputs;

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


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

    public static final AuthorizerJwtConfigurationArgs Empty = new AuthorizerJwtConfigurationArgs();

    /**
     * List of the intended recipients of the JWT. A valid JWT must provide an aud that matches at least one entry in this list.
     * 
     */
    @Import(name="audiences")
    private @Nullable Output> audiences;

    /**
     * @return List of the intended recipients of the JWT. A valid JWT must provide an aud that matches at least one entry in this list.
     * 
     */
    public Optional>> audiences() {
        return Optional.ofNullable(this.audiences);
    }

    /**
     * Base domain of the identity provider that issues JSON Web Tokens, such as the `endpoint` attribute of the `aws.cognito.UserPool` resource.
     * 
     */
    @Import(name="issuer")
    private @Nullable Output issuer;

    /**
     * @return Base domain of the identity provider that issues JSON Web Tokens, such as the `endpoint` attribute of the `aws.cognito.UserPool` resource.
     * 
     */
    public Optional> issuer() {
        return Optional.ofNullable(this.issuer);
    }

    private AuthorizerJwtConfigurationArgs() {}

    private AuthorizerJwtConfigurationArgs(AuthorizerJwtConfigurationArgs $) {
        this.audiences = $.audiences;
        this.issuer = $.issuer;
    }

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

    public static final class Builder {
        private AuthorizerJwtConfigurationArgs $;

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

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

        /**
         * @param audiences List of the intended recipients of the JWT. A valid JWT must provide an aud that matches at least one entry in this list.
         * 
         * @return builder
         * 
         */
        public Builder audiences(@Nullable Output> audiences) {
            $.audiences = audiences;
            return this;
        }

        /**
         * @param audiences List of the intended recipients of the JWT. A valid JWT must provide an aud that matches at least one entry in this list.
         * 
         * @return builder
         * 
         */
        public Builder audiences(List audiences) {
            return audiences(Output.of(audiences));
        }

        /**
         * @param audiences List of the intended recipients of the JWT. A valid JWT must provide an aud that matches at least one entry in this list.
         * 
         * @return builder
         * 
         */
        public Builder audiences(String... audiences) {
            return audiences(List.of(audiences));
        }

        /**
         * @param issuer Base domain of the identity provider that issues JSON Web Tokens, such as the `endpoint` attribute of the `aws.cognito.UserPool` resource.
         * 
         * @return builder
         * 
         */
        public Builder issuer(@Nullable Output issuer) {
            $.issuer = issuer;
            return this;
        }

        /**
         * @param issuer Base domain of the identity provider that issues JSON Web Tokens, such as the `endpoint` attribute of the `aws.cognito.UserPool` resource.
         * 
         * @return builder
         * 
         */
        public Builder issuer(String issuer) {
            return issuer(Output.of(issuer));
        }

        public AuthorizerJwtConfigurationArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy