Interface CustomJWTAuthorizerConfiguration.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<CustomJWTAuthorizerConfiguration.Builder,,CustomJWTAuthorizerConfiguration> SdkBuilder<CustomJWTAuthorizerConfiguration.Builder,,CustomJWTAuthorizerConfiguration> SdkPojo
- Enclosing class:
CustomJWTAuthorizerConfiguration
-
Method Summary
Modifier and TypeMethodDescriptionallowedAudience(String... allowedAudience) Represents individual audience values that are validated in the incoming JWT token validation process.allowedAudience(Collection<String> allowedAudience) Represents individual audience values that are validated in the incoming JWT token validation process.allowedClients(String... allowedClients) Represents individual client IDs that are validated in the incoming JWT token validation process.allowedClients(Collection<String> allowedClients) Represents individual client IDs that are validated in the incoming JWT token validation process.allowedScopes(String... allowedScopes) An array of scopes that are allowed to access the token.allowedScopes(Collection<String> allowedScopes) An array of scopes that are allowed to access the token.allowedWorkloadConfiguration(Consumer<AllowedWorkloadConfiguration.Builder> allowedWorkloadConfiguration) The configuration that restricts which workloads in the request's identity chain are allowed to invoke the target, identified by their hosting environments and workload identities.allowedWorkloadConfiguration(AllowedWorkloadConfiguration allowedWorkloadConfiguration) The configuration that restricts which workloads in the request's identity chain are allowed to invoke the target, identified by their hosting environments and workload identities.customClaims(Collection<CustomClaimValidationType> customClaims) An array of objects that define a custom claim validation name, value, and operationcustomClaims(Consumer<CustomClaimValidationType.Builder>... customClaims) An array of objects that define a custom claim validation name, value, and operationcustomClaims(CustomClaimValidationType... customClaims) An array of objects that define a custom claim validation name, value, and operationdiscoveryUrl(String discoveryUrl) This URL is used to fetch OpenID Connect configuration or authorization server metadata for validating incoming tokens.privateEndpoint(Consumer<PrivateEndpoint.Builder> privateEndpoint) Sets the value of the PrivateEndpoint property for this object.privateEndpoint(PrivateEndpoint privateEndpoint) Sets the value of the PrivateEndpoint property for this object.privateEndpointOverrides(Collection<PrivateEndpointOverride> privateEndpointOverrides) The private endpoint overrides for the custom JWT authorizer configuration.privateEndpointOverrides(Consumer<PrivateEndpointOverride.Builder>... privateEndpointOverrides) The private endpoint overrides for the custom JWT authorizer configuration.privateEndpointOverrides(PrivateEndpointOverride... privateEndpointOverrides) The private endpoint overrides for the custom JWT authorizer configuration.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
discoveryUrl
This URL is used to fetch OpenID Connect configuration or authorization server metadata for validating incoming tokens.
- Parameters:
discoveryUrl- This URL is used to fetch OpenID Connect configuration or authorization server metadata for validating incoming tokens.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
allowedAudience
Represents individual audience values that are validated in the incoming JWT token validation process.
- Parameters:
allowedAudience- Represents individual audience values that are validated in the incoming JWT token validation process.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
allowedAudience
Represents individual audience values that are validated in the incoming JWT token validation process.
- Parameters:
allowedAudience- Represents individual audience values that are validated in the incoming JWT token validation process.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
allowedClients
Represents individual client IDs that are validated in the incoming JWT token validation process.
- Parameters:
allowedClients- Represents individual client IDs that are validated in the incoming JWT token validation process.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
allowedClients
Represents individual client IDs that are validated in the incoming JWT token validation process.
- Parameters:
allowedClients- Represents individual client IDs that are validated in the incoming JWT token validation process.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
allowedScopes
An array of scopes that are allowed to access the token.
- Parameters:
allowedScopes- An array of scopes that are allowed to access the token.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
allowedScopes
An array of scopes that are allowed to access the token.
- Parameters:
allowedScopes- An array of scopes that are allowed to access the token.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
customClaims
CustomJWTAuthorizerConfiguration.Builder customClaims(Collection<CustomClaimValidationType> customClaims) An array of objects that define a custom claim validation name, value, and operation
- Parameters:
customClaims- An array of objects that define a custom claim validation name, value, and operation- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
customClaims
An array of objects that define a custom claim validation name, value, and operation
- Parameters:
customClaims- An array of objects that define a custom claim validation name, value, and operation- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
customClaims
CustomJWTAuthorizerConfiguration.Builder customClaims(Consumer<CustomClaimValidationType.Builder>... customClaims) An array of objects that define a custom claim validation name, value, and operation
This is a convenience method that creates an instance of theCustomClaimValidationType.Builderavoiding the need to create one manually viaCustomClaimValidationType.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocustomClaims(List<CustomClaimValidationType>).- Parameters:
customClaims- a consumer that will call methods onCustomClaimValidationType.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
privateEndpoint
Sets the value of the PrivateEndpoint property for this object.- Parameters:
privateEndpoint- The new value for the PrivateEndpoint property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
privateEndpoint
default CustomJWTAuthorizerConfiguration.Builder privateEndpoint(Consumer<PrivateEndpoint.Builder> privateEndpoint) Sets the value of the PrivateEndpoint property for this object. This is a convenience method that creates an instance of thePrivateEndpoint.Builderavoiding the need to create one manually viaPrivateEndpoint.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toprivateEndpoint(PrivateEndpoint).- Parameters:
privateEndpoint- a consumer that will call methods onPrivateEndpoint.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
privateEndpointOverrides
CustomJWTAuthorizerConfiguration.Builder privateEndpointOverrides(Collection<PrivateEndpointOverride> privateEndpointOverrides) The private endpoint overrides for the custom JWT authorizer configuration.
- Parameters:
privateEndpointOverrides- The private endpoint overrides for the custom JWT authorizer configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
privateEndpointOverrides
CustomJWTAuthorizerConfiguration.Builder privateEndpointOverrides(PrivateEndpointOverride... privateEndpointOverrides) The private endpoint overrides for the custom JWT authorizer configuration.
- Parameters:
privateEndpointOverrides- The private endpoint overrides for the custom JWT authorizer configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
privateEndpointOverrides
CustomJWTAuthorizerConfiguration.Builder privateEndpointOverrides(Consumer<PrivateEndpointOverride.Builder>... privateEndpointOverrides) The private endpoint overrides for the custom JWT authorizer configuration.
This is a convenience method that creates an instance of thePrivateEndpointOverride.Builderavoiding the need to create one manually viaPrivateEndpointOverride.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toprivateEndpointOverrides(List<PrivateEndpointOverride>).- Parameters:
privateEndpointOverrides- a consumer that will call methods onPrivateEndpointOverride.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
allowedWorkloadConfiguration
CustomJWTAuthorizerConfiguration.Builder allowedWorkloadConfiguration(AllowedWorkloadConfiguration allowedWorkloadConfiguration) The configuration that restricts which workloads in the request's identity chain are allowed to invoke the target, identified by their hosting environments and workload identities. At launch, this is supported only for AgentCore Runtime targets, and the allowed workloads are AgentCore Gateways.
- Parameters:
allowedWorkloadConfiguration- The configuration that restricts which workloads in the request's identity chain are allowed to invoke the target, identified by their hosting environments and workload identities. At launch, this is supported only for AgentCore Runtime targets, and the allowed workloads are AgentCore Gateways.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
allowedWorkloadConfiguration
default CustomJWTAuthorizerConfiguration.Builder allowedWorkloadConfiguration(Consumer<AllowedWorkloadConfiguration.Builder> allowedWorkloadConfiguration) The configuration that restricts which workloads in the request's identity chain are allowed to invoke the target, identified by their hosting environments and workload identities. At launch, this is supported only for AgentCore Runtime targets, and the allowed workloads are AgentCore Gateways.
This is a convenience method that creates an instance of theAllowedWorkloadConfiguration.Builderavoiding the need to create one manually viaAllowedWorkloadConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toallowedWorkloadConfiguration(AllowedWorkloadConfiguration).- Parameters:
allowedWorkloadConfiguration- a consumer that will call methods onAllowedWorkloadConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-