Class CfnRegistry.CustomJWTAuthorizerConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.agentregistry.CfnRegistry.CustomJWTAuthorizerConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnRegistry.CustomJWTAuthorizerConfigurationProperty>
- Enclosing interface:
CfnRegistry.CustomJWTAuthorizerConfigurationProperty
@Stability(Stable)
public static final class CfnRegistry.CustomJWTAuthorizerConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnRegistry.CustomJWTAuthorizerConfigurationProperty>
A builder for
CfnRegistry.CustomJWTAuthorizerConfigurationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionallowedAudience(List<String> allowedAudience) allowedClients(List<String> allowedClients) Sets the value ofCfnRegistry.CustomJWTAuthorizerConfigurationProperty.getAllowedClients()allowedScopes(List<String> allowedScopes) Sets the value ofCfnRegistry.CustomJWTAuthorizerConfigurationProperty.getAllowedScopes()build()Builds the configured instance.customClaims(List<? extends Object> customClaims) Sets the value ofCfnRegistry.CustomJWTAuthorizerConfigurationProperty.getCustomClaims()customClaims(IResolvable customClaims) Sets the value ofCfnRegistry.CustomJWTAuthorizerConfigurationProperty.getCustomClaims()discoveryUrl(String discoveryUrl) Sets the value ofCfnRegistry.CustomJWTAuthorizerConfigurationProperty.getDiscoveryUrl()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
discoveryUrl
@Stability(Stable) public CfnRegistry.CustomJWTAuthorizerConfigurationProperty.Builder discoveryUrl(String discoveryUrl) Sets the value ofCfnRegistry.CustomJWTAuthorizerConfigurationProperty.getDiscoveryUrl()- Parameters:
discoveryUrl- The OpenID Connect discovery URL used to retrieve the identity provider's metadata and signing keys. This parameter is required.- Returns:
this
-
allowedAudience
@Stability(Stable) public CfnRegistry.CustomJWTAuthorizerConfigurationProperty.Builder allowedAudience(List<String> allowedAudience) - Parameters:
allowedAudience- The audience values accepted during JWT validation.- Returns:
this
-
allowedClients
@Stability(Stable) public CfnRegistry.CustomJWTAuthorizerConfigurationProperty.Builder allowedClients(List<String> allowedClients) Sets the value ofCfnRegistry.CustomJWTAuthorizerConfigurationProperty.getAllowedClients()- Parameters:
allowedClients- The client identifiers accepted during JWT validation.- Returns:
this
-
allowedScopes
@Stability(Stable) public CfnRegistry.CustomJWTAuthorizerConfigurationProperty.Builder allowedScopes(List<String> allowedScopes) Sets the value ofCfnRegistry.CustomJWTAuthorizerConfigurationProperty.getAllowedScopes()- Parameters:
allowedScopes- The scopes accepted during JWT validation.- Returns:
this
-
customClaims
@Stability(Stable) public CfnRegistry.CustomJWTAuthorizerConfigurationProperty.Builder customClaims(IResolvable customClaims) Sets the value ofCfnRegistry.CustomJWTAuthorizerConfigurationProperty.getCustomClaims()- Parameters:
customClaims- Additional custom claim validations applied to the inbound JWT.- Returns:
this
-
customClaims
@Stability(Stable) public CfnRegistry.CustomJWTAuthorizerConfigurationProperty.Builder customClaims(List<? extends Object> customClaims) Sets the value ofCfnRegistry.CustomJWTAuthorizerConfigurationProperty.getCustomClaims()- Parameters:
customClaims- Additional custom claim validations applied to the inbound JWT.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnRegistry.CustomJWTAuthorizerConfigurationProperty>- Returns:
- a new instance of
CfnRegistry.CustomJWTAuthorizerConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-