Interface IsAuthorizedWithTokenRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<IsAuthorizedWithTokenRequest.Builder,IsAuthorizedWithTokenRequest>,SdkBuilder<IsAuthorizedWithTokenRequest.Builder,IsAuthorizedWithTokenRequest>,SdkPojo,SdkRequest.Builder,VerifiedPermissionsRequest.Builder
- Enclosing class:
- IsAuthorizedWithTokenRequest
public static interface IsAuthorizedWithTokenRequest.Builder extends VerifiedPermissionsRequest.Builder, SdkPojo, CopyableBuilder<IsAuthorizedWithTokenRequest.Builder,IsAuthorizedWithTokenRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description IsAuthorizedWithTokenRequest.BuilderaccessToken(String accessToken)Specifies an access token for the principal to be authorized.default IsAuthorizedWithTokenRequest.Builderaction(Consumer<ActionIdentifier.Builder> action)Specifies the requested action to be authorized.IsAuthorizedWithTokenRequest.Builderaction(ActionIdentifier action)Specifies the requested action to be authorized.default IsAuthorizedWithTokenRequest.Buildercontext(Consumer<ContextDefinition.Builder> context)Specifies additional context that can be used to make more granular authorization decisions.IsAuthorizedWithTokenRequest.Buildercontext(ContextDefinition context)Specifies additional context that can be used to make more granular authorization decisions.default IsAuthorizedWithTokenRequest.Builderentities(Consumer<EntitiesDefinition.Builder> entities)Specifies the list of resources and their associated attributes that Verified Permissions can examine when evaluating the policies.IsAuthorizedWithTokenRequest.Builderentities(EntitiesDefinition entities)Specifies the list of resources and their associated attributes that Verified Permissions can examine when evaluating the policies.IsAuthorizedWithTokenRequest.BuilderidentityToken(String identityToken)Specifies an identity token for the principal to be authorized.IsAuthorizedWithTokenRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)IsAuthorizedWithTokenRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)IsAuthorizedWithTokenRequest.BuilderpolicyStoreId(String policyStoreId)Specifies the ID of the policy store.default IsAuthorizedWithTokenRequest.Builderresource(Consumer<EntityIdentifier.Builder> resource)Specifies the resource for which the authorization decision is made.IsAuthorizedWithTokenRequest.Builderresource(EntityIdentifier resource)Specifies the resource for which the authorization decision is made.-
Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Methods inherited from interface software.amazon.awssdk.services.verifiedpermissions.model.VerifiedPermissionsRequest.Builder
build
-
-
-
-
Method Detail
-
policyStoreId
IsAuthorizedWithTokenRequest.Builder policyStoreId(String policyStoreId)
Specifies the ID of the policy store. Policies in this policy store will be used to make an authorization decision for the input.
- Parameters:
policyStoreId- Specifies the ID of the policy store. Policies in this policy store will be used to make an authorization decision for the input.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
identityToken
IsAuthorizedWithTokenRequest.Builder identityToken(String identityToken)
Specifies an identity token for the principal to be authorized. This token is provided to you by the identity provider (IdP) associated with the specified identity source. You must specify either an
accessToken, anidentityToken, or both.Must be an ID token. Verified Permissions returns an error if the
token_useclaim in the submitted token isn'tid.- Parameters:
identityToken- Specifies an identity token for the principal to be authorized. This token is provided to you by the identity provider (IdP) associated with the specified identity source. You must specify either anaccessToken, anidentityToken, or both.Must be an ID token. Verified Permissions returns an error if the
token_useclaim in the submitted token isn'tid.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
accessToken
IsAuthorizedWithTokenRequest.Builder accessToken(String accessToken)
Specifies an access token for the principal to be authorized. This token is provided to you by the identity provider (IdP) associated with the specified identity source. You must specify either an
accessToken, anidentityToken, or both.Must be an access token. Verified Permissions returns an error if the
token_useclaim in the submitted token isn'taccess.- Parameters:
accessToken- Specifies an access token for the principal to be authorized. This token is provided to you by the identity provider (IdP) associated with the specified identity source. You must specify either anaccessToken, anidentityToken, or both.Must be an access token. Verified Permissions returns an error if the
token_useclaim in the submitted token isn'taccess.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
action
IsAuthorizedWithTokenRequest.Builder action(ActionIdentifier action)
Specifies the requested action to be authorized. Is the specified principal authorized to perform this action on the specified resource.
- Parameters:
action- Specifies the requested action to be authorized. Is the specified principal authorized to perform this action on the specified resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
action
default IsAuthorizedWithTokenRequest.Builder action(Consumer<ActionIdentifier.Builder> action)
Specifies the requested action to be authorized. Is the specified principal authorized to perform this action on the specified resource.
This is a convenience method that creates an instance of theActionIdentifier.Builderavoiding the need to create one manually viaActionIdentifier.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toaction(ActionIdentifier).- Parameters:
action- a consumer that will call methods onActionIdentifier.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
action(ActionIdentifier)
-
resource
IsAuthorizedWithTokenRequest.Builder resource(EntityIdentifier resource)
Specifies the resource for which the authorization decision is made. For example, is the principal allowed to perform the action on the resource?
- Parameters:
resource- Specifies the resource for which the authorization decision is made. For example, is the principal allowed to perform the action on the resource?- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resource
default IsAuthorizedWithTokenRequest.Builder resource(Consumer<EntityIdentifier.Builder> resource)
Specifies the resource for which the authorization decision is made. For example, is the principal allowed to perform the action on the resource?
This is a convenience method that creates an instance of theEntityIdentifier.Builderavoiding the need to create one manually viaEntityIdentifier.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toresource(EntityIdentifier).- Parameters:
resource- a consumer that will call methods onEntityIdentifier.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
resource(EntityIdentifier)
-
context
IsAuthorizedWithTokenRequest.Builder context(ContextDefinition context)
Specifies additional context that can be used to make more granular authorization decisions.
- Parameters:
context- Specifies additional context that can be used to make more granular authorization decisions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
context
default IsAuthorizedWithTokenRequest.Builder context(Consumer<ContextDefinition.Builder> context)
Specifies additional context that can be used to make more granular authorization decisions.
This is a convenience method that creates an instance of theContextDefinition.Builderavoiding the need to create one manually viaContextDefinition.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocontext(ContextDefinition).- Parameters:
context- a consumer that will call methods onContextDefinition.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
context(ContextDefinition)
-
entities
IsAuthorizedWithTokenRequest.Builder entities(EntitiesDefinition entities)
Specifies the list of resources and their associated attributes that Verified Permissions can examine when evaluating the policies.
You can include only resource and action entities in this parameter; you can't include principals.
-
The
IsAuthorizedWithTokenoperation takes principal attributes from only theidentityTokenoraccessTokenpassed to the operation. -
For action entities, you can include only their
IdentifierandEntityType.
- Parameters:
entities- Specifies the list of resources and their associated attributes that Verified Permissions can examine when evaluating the policies.You can include only resource and action entities in this parameter; you can't include principals.
-
The
IsAuthorizedWithTokenoperation takes principal attributes from only theidentityTokenoraccessTokenpassed to the operation. -
For action entities, you can include only their
IdentifierandEntityType.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
entities
default IsAuthorizedWithTokenRequest.Builder entities(Consumer<EntitiesDefinition.Builder> entities)
Specifies the list of resources and their associated attributes that Verified Permissions can examine when evaluating the policies.
This is a convenience method that creates an instance of theYou can include only resource and action entities in this parameter; you can't include principals.
-
The
IsAuthorizedWithTokenoperation takes principal attributes from only theidentityTokenoraccessTokenpassed to the operation. -
For action entities, you can include only their
IdentifierandEntityType.
EntitiesDefinition.Builderavoiding the need to create one manually viaEntitiesDefinition.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toentities(EntitiesDefinition).- Parameters:
entities- a consumer that will call methods onEntitiesDefinition.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
entities(EntitiesDefinition)
-
-
overrideConfiguration
IsAuthorizedWithTokenRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
IsAuthorizedWithTokenRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-