Interface IsAuthorizedWithTokenRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<IsAuthorizedWithTokenRequest.Builder,,IsAuthorizedWithTokenRequest> SdkBuilder<IsAuthorizedWithTokenRequest.Builder,,IsAuthorizedWithTokenRequest> SdkPojo,SdkRequest.Builder,VerifiedPermissionsRequest.Builder
- Enclosing class:
IsAuthorizedWithTokenRequest
-
Method Summary
Modifier and TypeMethodDescriptionaccessToken(String accessToken) Specifies an access token for the principal to be authorized.action(Consumer<ActionIdentifier.Builder> action) Specifies the requested action to be authorized.action(ActionIdentifier action) Specifies the requested action to be authorized.context(Consumer<ContextDefinition.Builder> context) Specifies additional context that can be used to make more granular authorization decisions.context(ContextDefinition context) Specifies additional context that can be used to make more granular authorization decisions.entities(Consumer<EntitiesDefinition.Builder> entities) Specifies the list of resources and their associated attributes that Verified Permissions can examine when evaluating the policies.entities(EntitiesDefinition entities) Specifies the list of resources and their associated attributes that Verified Permissions can examine when evaluating the policies.identityToken(String identityToken) Specifies an identity token for the principal to be authorized.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.policyStoreId(String policyStoreId) Specifies the ID of the policy store.resource(Consumer<EntityIdentifier.Builder> resource) Specifies the resource for which the authorization decision is made.resource(EntityIdentifier resource) Specifies the resource for which the authorization decision is made.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods 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, sdkFieldsMethods inherited from interface software.amazon.awssdk.services.verifiedpermissions.model.VerifiedPermissionsRequest.Builder
build
-
Method Details
-
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
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
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
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
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:
-
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
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:
-
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
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:
-
entities
Specifies the list of resources and their associated attributes that Verified Permissions can examine when evaluating the policies.
You can't include principals in this parameter, only resource and action entities. This parameter can't include any entities of a type that matches the user or group entity types that you defined in your identity source.
-
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't include principals in this parameter, only resource and action entities. This parameter can't include any entities of a type that matches the user or group entity types that you defined in your identity source.
-
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't include principals in this parameter, only resource and action entities. This parameter can't include any entities of a type that matches the user or group entity types that you defined in your identity source.
-
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:
-
-
overrideConfiguration
IsAuthorizedWithTokenRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
IsAuthorizedWithTokenRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-