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.Builderaction(Consumer<ActionIdentifier.Builder> action) Specifies the requested action to be authorized.action(ActionIdentifier action) Specifies the requested action to be authorized.default IsAuthorizedRequest.Buildercontext(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.Builderentities(Consumer<EntitiesDefinition.Builder> entities) Specifies the list of resources and principals and their associated attributes that Verified Permissions can examine when evaluating the policies.entities(EntitiesDefinition entities) 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.Builderprincipal(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.Builderresource(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
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.
-
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.Builderavoiding the need to create one manually viaEntityIdentifier.builder().When the
Consumercompletes,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.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 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.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 principals and their associated attributes that Verified Permissions can examine when evaluating the policies.
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- Specifies the list of resources and principals and their associated attributes that Verified Permissions can examine when evaluating the policies.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
Specifies the list of resources and principals 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 principal and resource entities in this parameter; you can't include actions. You must specify actions in the schema.
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
IsAuthorizedRequest.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
IsAuthorizedRequest.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.
-