Interface IsAuthorizedRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<IsAuthorizedRequest.Builder,
,IsAuthorizedRequest> SdkBuilder<IsAuthorizedRequest.Builder,
,IsAuthorizedRequest> SdkPojo
,SdkRequest.Builder
,VerifiedPermissionsRequest.Builder
- Enclosing class:
IsAuthorizedRequest
-
Method Summary
Modifier and TypeMethodDescriptiondefault IsAuthorizedRequest.Builder
action
(Consumer<ActionIdentifier.Builder> action) Specifies the requested action to be authorized.action
(ActionIdentifier action) Specifies the requested action to be authorized.default IsAuthorizedRequest.Builder
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.default IsAuthorizedRequest.Builder
entities
(Consumer<EntitiesDefinition.Builder> entities) (Optional) Specifies the list of resources and principals and their associated attributes that Verified Permissions can examine when evaluating the policies.entities
(EntitiesDefinition entities) (Optional) Specifies the list of resources and principals and their associated attributes that Verified Permissions can examine when evaluating the policies.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.default IsAuthorizedRequest.Builder
principal
(Consumer<EntityIdentifier.Builder> principal) Specifies the principal for which the authorization decision is to be made.principal
(EntityIdentifier principal) Specifies the principal for which the authorization decision is to be made.default IsAuthorizedRequest.Builder
resource
(Consumer<EntityIdentifier.Builder> resource) Specifies the resource for which the authorization decision is to be made.resource
(EntityIdentifier resource) Specifies the resource for which the authorization decision is to be 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, sdkFieldNameToField, sdkFields
Methods 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.
-
principal
Specifies the principal for which the authorization decision is to be made.
- Parameters:
principal
- Specifies the principal for which the authorization decision is to be made.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
principal
Specifies the principal for which the authorization decision is to be made.
This is a convenience method that creates an instance of theEntityIdentifier.Builder
avoiding the need to create one manually viaEntityIdentifier.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toprincipal(EntityIdentifier)
.- Parameters:
principal
- 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:
-
action
Specifies the requested action to be authorized. For example, is the principal authorized to perform this action on the resource?
- Parameters:
action
- Specifies the requested action to be authorized. For example, is the principal authorized to perform this action on the resource?- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
action
Specifies the requested action to be authorized. For example, is the principal authorized to perform this action on the resource?
This is a convenience method that creates an instance of theActionIdentifier.Builder
avoiding the need to create one manually viaActionIdentifier.builder()
.When the
Consumer
completes,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 to be made.
- Parameters:
resource
- Specifies the resource for which the authorization decision is to be made.- 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 to be made.
This is a convenience method that creates an instance of theEntityIdentifier.Builder
avoiding the need to create one manually viaEntityIdentifier.builder()
.When the
Consumer
completes,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.Builder
avoiding the need to create one manually viaContextDefinition.builder()
.When the
Consumer
completes,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
(Optional) Specifies the list of resources and principals and their associated attributes that Verified Permissions can examine when evaluating the policies. These additional entities and their attributes can be referenced and checked by conditional elements in the policies in the specified policy store.
You can include only principal and resource entities in this parameter; you can't include actions. You must specify actions in the schema.
- Parameters:
entities
- (Optional) Specifies the list of resources and principals and their associated attributes that Verified Permissions can examine when evaluating the policies. These additional entities and their attributes can be referenced and checked by conditional elements in the policies in the specified policy store.You can include only principal and resource entities in this parameter; you can't include actions. You must specify actions in the schema.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
entities
(Optional) Specifies the list of resources and principals and their associated attributes that Verified Permissions can examine when evaluating the policies. These additional entities and their attributes can be referenced and checked by conditional elements in the policies in the specified policy store.
You can include only principal and resource entities in this parameter; you can't include actions. You must specify actions in the schema.
EntitiesDefinition.Builder
avoiding the need to create one manually viaEntitiesDefinition.builder()
.When the
Consumer
completes,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
IsAuthorizedRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
IsAuthorizedRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-