Class UpdateGuardrailRequest

    • Method Detail

      • guardrailIdentifier

        public final String guardrailIdentifier()

        The unique identifier of the guardrail. This can be an ID or the ARN.

        Returns:
        The unique identifier of the guardrail. This can be an ID or the ARN.
      • name

        public final String name()

        A name for the guardrail.

        Returns:
        A name for the guardrail.
      • description

        public final String description()

        A description of the guardrail.

        Returns:
        A description of the guardrail.
      • topicPolicyConfig

        public final GuardrailTopicPolicyConfig topicPolicyConfig()

        The topic policy to configure for the guardrail.

        Returns:
        The topic policy to configure for the guardrail.
      • contentPolicyConfig

        public final GuardrailContentPolicyConfig contentPolicyConfig()

        The content policy to configure for the guardrail.

        Returns:
        The content policy to configure for the guardrail.
      • wordPolicyConfig

        public final GuardrailWordPolicyConfig wordPolicyConfig()

        The word policy to configure for the guardrail.

        Returns:
        The word policy to configure for the guardrail.
      • sensitiveInformationPolicyConfig

        public final GuardrailSensitiveInformationPolicyConfig sensitiveInformationPolicyConfig()

        The sensitive information policy to configure for the guardrail.

        Returns:
        The sensitive information policy to configure for the guardrail.
      • contextualGroundingPolicyConfig

        public final GuardrailContextualGroundingPolicyConfig contextualGroundingPolicyConfig()

        The contextual grounding policy configuration used to update a guardrail.

        Returns:
        The contextual grounding policy configuration used to update a guardrail.
      • blockedInputMessaging

        public final String blockedInputMessaging()

        The message to return when the guardrail blocks a prompt.

        Returns:
        The message to return when the guardrail blocks a prompt.
      • blockedOutputsMessaging

        public final String blockedOutputsMessaging()

        The message to return when the guardrail blocks a model response.

        Returns:
        The message to return when the guardrail blocks a model response.
      • kmsKeyId

        public final String kmsKeyId()

        The ARN of the KMS key with which to encrypt the guardrail.

        Returns:
        The ARN of the KMS key with which to encrypt the guardrail.
      • 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