Interface BatchIsAuthorizedWithTokenRequest.Builder

    • Method Detail

      • policyStoreId

        BatchIsAuthorizedWithTokenRequest.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

        BatchIsAuthorizedWithTokenRequest.Builder identityToken​(String identityToken)

        Specifies an identity (ID) token for the principal that you want to authorize in each request. 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 (ID) token for the principal that you want to authorize in each request. 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

        BatchIsAuthorizedWithTokenRequest.Builder accessToken​(String accessToken)

        Specifies an access token for the principal that you want to authorize in each request. 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 that you want to authorize in each request. 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.
      • entities

        BatchIsAuthorizedWithTokenRequest.Builder entities​(EntitiesDefinition 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 BatchIsAuthorizedWithToken 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 BatchIsAuthorizedWithToken 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

        default BatchIsAuthorizedWithTokenRequest.Builder entities​(Consumer<EntitiesDefinition.Builder> 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 BatchIsAuthorizedWithToken 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:
        entities(EntitiesDefinition)
      • requests

        BatchIsAuthorizedWithTokenRequest.Builder requests​(BatchIsAuthorizedWithTokenInputItem... requests)

        An array of up to 30 requests that you want Verified Permissions to evaluate.

        Parameters:
        requests - An array of up to 30 requests that you want Verified Permissions to evaluate.
        Returns:
        Returns a reference to this object so that method calls can be chained together.