Class EvaluateCodeRequest

    • Method Detail

      • runtime

        public final AppSyncRuntime runtime()

        The runtime to be used when evaluating the code. Currently, only the APPSYNC_JS runtime is supported.

        Returns:
        The runtime to be used when evaluating the code. Currently, only the APPSYNC_JS runtime is supported.
      • code

        public final String code()

        The code definition to be evaluated. Note that code and runtime are both required for this action. The runtime value must be APPSYNC_JS.

        Returns:
        The code definition to be evaluated. Note that code and runtime are both required for this action. The runtime value must be APPSYNC_JS.
      • context

        public final String context()

        The map that holds all of the contextual information for your resolver invocation. A context is required for this action.

        Returns:
        The map that holds all of the contextual information for your resolver invocation. A context is required for this action.
      • function

        public final String function()

        The function within the code to be evaluated. If provided, the valid values are request and response.

        Returns:
        The function within the code to be evaluated. If provided, the valid values are request and response.
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object