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 Details

    • 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, an identityToken, or both.

      Must be an ID token. Verified Permissions returns an error if the token_use claim in the submitted token isn't id.

      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 an accessToken, an identityToken, or both.

      Must be an ID token. Verified Permissions returns an error if the token_use claim in the submitted token isn't id.

      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, an identityToken, or both.

      Must be an access token. Verified Permissions returns an error if the token_use claim in the submitted token isn't access.

      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 an accessToken, an identityToken, or both.

      Must be an access token. Verified Permissions returns an error if the token_use claim in the submitted token isn't access.

      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 the ActionIdentifier.Builder avoiding the need to create one manually via ActionIdentifier.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to action(ActionIdentifier).

      Parameters:
      action - a consumer that will call methods on ActionIdentifier.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 the EntityIdentifier.Builder avoiding the need to create one manually via EntityIdentifier.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to resource(EntityIdentifier).

      Parameters:
      resource - a consumer that will call methods on EntityIdentifier.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 the ContextDefinition.Builder avoiding the need to create one manually via ContextDefinition.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to context(ContextDefinition).

      Parameters:
      context - a consumer that will call methods on ContextDefinition.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 IsAuthorizedWithToken operation takes principal attributes from only the identityToken or accessToken passed to the operation.

      • For action entities, you can include only their Identifier and EntityType.

      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 IsAuthorizedWithToken operation takes principal attributes from only the identityToken or accessToken passed to the operation.

      • For action entities, you can include only their Identifier and EntityType.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • 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 IsAuthorizedWithToken operation takes principal attributes from only the identityToken or accessToken passed to the operation.

      • For action entities, you can include only their Identifier and EntityType.

      This is a convenience method that creates an instance of the EntitiesDefinition.Builder avoiding the need to create one manually via EntitiesDefinition.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to entities(EntitiesDefinition).

      Parameters:
      entities - a consumer that will call methods on EntitiesDefinition.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.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      overrideConfiguration - The override configuration.
      Returns:
      This object for method chaining.
    • overrideConfiguration

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      builderConsumer - A Consumer to which an empty AwsRequestOverrideConfiguration.Builder will be given.
      Returns:
      This object for method chaining.