Interface ContextProvider.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<ContextProvider.Builder,,ContextProvider> SdkBuilder<ContextProvider.Builder,,ContextProvider> SdkPojo
- Enclosing class:
ContextProvider
-
Method Summary
Modifier and TypeMethodDescriptionkeyDefinitionList(Collection<ContextProviderKeyDefinition> keyDefinitionList) A list of source-to-target key mappings that define how keys from the external identity provider's assertion or token are mapped into trusted context keys.keyDefinitionList(Consumer<ContextProviderKeyDefinition.Builder>... keyDefinitionList) A list of source-to-target key mappings that define how keys from the external identity provider's assertion or token are mapped into trusted context keys.keyDefinitionList(ContextProviderKeyDefinition... keyDefinitionList) A list of source-to-target key mappings that define how keys from the external identity provider's assertion or token are mapped into trusted context keys.subjectSourceKey(String subjectSourceKey) The source key that is used to derive the subject for the injected trusted context.subjectTypeSourceKey(String subjectTypeSourceKey) The source key that supplies the subject type from the external identity provider's assertion or token.subjectTypeValue(String subjectTypeValue) A static value for the subject type, such asuserorworkload.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
-
keyDefinitionList
ContextProvider.Builder keyDefinitionList(Collection<ContextProviderKeyDefinition> keyDefinitionList) A list of source-to-target key mappings that define how keys from the external identity provider's assertion or token are mapped into trusted context keys. You can specify from 0 to 10 mappings.
- Parameters:
keyDefinitionList- A list of source-to-target key mappings that define how keys from the external identity provider's assertion or token are mapped into trusted context keys. You can specify from 0 to 10 mappings.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
keyDefinitionList
A list of source-to-target key mappings that define how keys from the external identity provider's assertion or token are mapped into trusted context keys. You can specify from 0 to 10 mappings.
- Parameters:
keyDefinitionList- A list of source-to-target key mappings that define how keys from the external identity provider's assertion or token are mapped into trusted context keys. You can specify from 0 to 10 mappings.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
keyDefinitionList
ContextProvider.Builder keyDefinitionList(Consumer<ContextProviderKeyDefinition.Builder>... keyDefinitionList) A list of source-to-target key mappings that define how keys from the external identity provider's assertion or token are mapped into trusted context keys. You can specify from 0 to 10 mappings.
This is a convenience method that creates an instance of theContextProviderKeyDefinition.Builderavoiding the need to create one manually viaContextProviderKeyDefinition.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tokeyDefinitionList(List<ContextProviderKeyDefinition>).- Parameters:
keyDefinitionList- a consumer that will call methods onContextProviderKeyDefinition.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
subjectSourceKey
The source key that is used to derive the subject for the injected trusted context. This value identifies the claim or attribute in the external identity provider's assertion or token that supplies the subject.
The key can contain only ASCII letters (A-Z, a-z), numbers (0-9), single spaces, and the following characters:
_ . : / = + - @ #. It can't start or end with a space or contain two spaces in a row.- Parameters:
subjectSourceKey- The source key that is used to derive the subject for the injected trusted context. This value identifies the claim or attribute in the external identity provider's assertion or token that supplies the subject.The key can contain only ASCII letters (A-Z, a-z), numbers (0-9), single spaces, and the following characters:
_ . : / = + - @ #. It can't start or end with a space or contain two spaces in a row.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
subjectTypeValue
A static value for the subject type, such as
userorworkload.This parameter is optional and is mutually exclusive with
SubjectTypeSourceKey. Specify eitherSubjectTypeValueorSubjectTypeSourceKey, but not both.- Parameters:
subjectTypeValue- A static value for the subject type, such asuserorworkload.This parameter is optional and is mutually exclusive with
SubjectTypeSourceKey. Specify eitherSubjectTypeValueorSubjectTypeSourceKey, but not both.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
subjectTypeSourceKey
The source key that supplies the subject type from the external identity provider's assertion or token.
The key can contain only ASCII letters (A-Z, a-z), numbers (0-9), single spaces, and the following characters:
_ . : / = + - @ #. It can't start or end with a space or contain two spaces in a row.This parameter is mutually exclusive with
SubjectTypeValue. Specify eitherSubjectTypeSourceKeyorSubjectTypeValue, but not both.- Parameters:
subjectTypeSourceKey- The source key that supplies the subject type from the external identity provider's assertion or token.The key can contain only ASCII letters (A-Z, a-z), numbers (0-9), single spaces, and the following characters:
_ . : / = + - @ #. It can't start or end with a space or contain two spaces in a row.This parameter is mutually exclusive with
SubjectTypeValue. Specify eitherSubjectTypeSourceKeyorSubjectTypeValue, but not both.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-