Class CfnIndex.JwtTokenTypeConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.kendra.CfnIndex.JwtTokenTypeConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnIndex.JwtTokenTypeConfigurationProperty>
- Enclosing interface:
CfnIndex.JwtTokenTypeConfigurationProperty
@Stability(Stable)
public static final class CfnIndex.JwtTokenTypeConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnIndex.JwtTokenTypeConfigurationProperty>
A builder for
CfnIndex.JwtTokenTypeConfigurationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.claimRegex(String claimRegex) Sets the value ofCfnIndex.JwtTokenTypeConfigurationProperty.getClaimRegex()groupAttributeField(String groupAttributeField) Sets the value ofCfnIndex.JwtTokenTypeConfigurationProperty.getGroupAttributeField()Sets the value ofCfnIndex.JwtTokenTypeConfigurationProperty.getIssuer()keyLocation(String keyLocation) Sets the value ofCfnIndex.JwtTokenTypeConfigurationProperty.getKeyLocation()secretManagerArn(String secretManagerArn) Sets the value ofCfnIndex.JwtTokenTypeConfigurationProperty.getSecretManagerArn()Sets the value ofCfnIndex.JwtTokenTypeConfigurationProperty.getUrl()userNameAttributeField(String userNameAttributeField) Sets the value ofCfnIndex.JwtTokenTypeConfigurationProperty.getUserNameAttributeField()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
keyLocation
@Stability(Stable) public CfnIndex.JwtTokenTypeConfigurationProperty.Builder keyLocation(String keyLocation) Sets the value ofCfnIndex.JwtTokenTypeConfigurationProperty.getKeyLocation()- Parameters:
keyLocation- The location of the key. This parameter is required.- Returns:
this
-
claimRegex
@Stability(Stable) public CfnIndex.JwtTokenTypeConfigurationProperty.Builder claimRegex(String claimRegex) Sets the value ofCfnIndex.JwtTokenTypeConfigurationProperty.getClaimRegex()- Parameters:
claimRegex- The regular expression that identifies the claim.- Returns:
this
-
groupAttributeField
@Stability(Stable) public CfnIndex.JwtTokenTypeConfigurationProperty.Builder groupAttributeField(String groupAttributeField) Sets the value ofCfnIndex.JwtTokenTypeConfigurationProperty.getGroupAttributeField()- Parameters:
groupAttributeField- The group attribute field.- Returns:
this
-
issuer
Sets the value ofCfnIndex.JwtTokenTypeConfigurationProperty.getIssuer()- Parameters:
issuer- The issuer of the token.- Returns:
this
-
secretManagerArn
@Stability(Stable) public CfnIndex.JwtTokenTypeConfigurationProperty.Builder secretManagerArn(String secretManagerArn) Sets the value ofCfnIndex.JwtTokenTypeConfigurationProperty.getSecretManagerArn()- Parameters:
secretManagerArn- The Amazon Resource Name (arn) of the secret.- Returns:
this
-
url
Sets the value ofCfnIndex.JwtTokenTypeConfigurationProperty.getUrl()- Parameters:
url- The signing key URL.- Returns:
this
-
userNameAttributeField
@Stability(Stable) public CfnIndex.JwtTokenTypeConfigurationProperty.Builder userNameAttributeField(String userNameAttributeField) Sets the value ofCfnIndex.JwtTokenTypeConfigurationProperty.getUserNameAttributeField()- Parameters:
userNameAttributeField- The user name attribute field.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnIndex.JwtTokenTypeConfigurationProperty>- Returns:
- a new instance of
CfnIndex.JwtTokenTypeConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-