com.pulumi.aws.apigatewayv2.outputs.AuthorizerJwtConfiguration Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws Show documentation
Show all versions of aws Show documentation
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.outputs;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class AuthorizerJwtConfiguration {
/**
* @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.
*
*/
private @Nullable List audiences;
/**
* @return Base domain of the identity provider that issues JSON Web Tokens, such as the `endpoint` attribute of the `aws.cognito.UserPool` resource.
*
*/
private @Nullable String issuer;
private AuthorizerJwtConfiguration() {}
/**
* @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 List audiences() {
return this.audiences == null ? List.of() : this.audiences;
}
/**
* @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);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(AuthorizerJwtConfiguration defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable List audiences;
private @Nullable String issuer;
public Builder() {}
public Builder(AuthorizerJwtConfiguration defaults) {
Objects.requireNonNull(defaults);
this.audiences = defaults.audiences;
this.issuer = defaults.issuer;
}
@CustomType.Setter
public Builder audiences(@Nullable List audiences) {
this.audiences = audiences;
return this;
}
public Builder audiences(String... audiences) {
return audiences(List.of(audiences));
}
@CustomType.Setter
public Builder issuer(@Nullable String issuer) {
this.issuer = issuer;
return this;
}
public AuthorizerJwtConfiguration build() {
final var _resultValue = new AuthorizerJwtConfiguration();
_resultValue.audiences = audiences;
_resultValue.issuer = issuer;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy