Interface TestInvokeAuthorizerResponse.Builder

  • Method Details

    • clientStatus

      TestInvokeAuthorizerResponse.Builder clientStatus(Integer clientStatus)

      The HTTP status code that the client would have received. Value is 0 if the authorizer succeeded.

      Parameters:
      clientStatus - The HTTP status code that the client would have received. Value is 0 if the authorizer succeeded.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • log

      The API Gateway execution log for the test authorizer request.

      Parameters:
      log - The API Gateway execution log for the test authorizer request.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • latency

      The execution latency, in ms, of the test authorizer request.

      Parameters:
      latency - The execution latency, in ms, of the test authorizer request.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • principalId

      TestInvokeAuthorizerResponse.Builder principalId(String principalId)

      The principal identity returned by the Authorizer

      Parameters:
      principalId - The principal identity returned by the Authorizer
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • policy

      The JSON policy document returned by the Authorizer

      Parameters:
      policy - The JSON policy document returned by the Authorizer
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • authorization

      TestInvokeAuthorizerResponse.Builder authorization(Map<String,? extends Collection<String>> authorization)

      The authorization response.

      Parameters:
      authorization - The authorization response.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • claims

      The open identity claims, with any supported custom attributes, returned from the Cognito Your User Pool configured for the API.

      Parameters:
      claims - The open identity claims, with any supported custom attributes, returned from the Cognito Your User Pool configured for the API.
      Returns:
      Returns a reference to this object so that method calls can be chained together.