Class: Aws::Bedrock::Types::GuardrailPiiEntity

Inherits:
Struct
  • Object
show all
Includes:
Structure
Defined in:
lib/aws-sdk-bedrock/types.rb

Overview

The PII entity configured for the guardrail.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#actionString

The configured guardrail action when PII entity is detected.

Returns:

  • (String)


7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
# File 'lib/aws-sdk-bedrock/types.rb', line 7619

class GuardrailPiiEntity < Struct.new(
  :type,
  :action,
  :input_action,
  :output_action,
  :input_enabled,
  :output_enabled)
  SENSITIVE = []
  include Aws::Structure
end

#input_actionString

The action to take when harmful content is detected in the input. Supported values include:

  • ‘BLOCK` – Block the content and replace it with blocked messaging.

  • ‘ANONYMIZE` – Mask the content and replace it with identifier tags.

  • ‘NONE` – Take no action but return detection information in the trace response.

Returns:

  • (String)


7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
# File 'lib/aws-sdk-bedrock/types.rb', line 7619

class GuardrailPiiEntity < Struct.new(
  :type,
  :action,
  :input_action,
  :output_action,
  :input_enabled,
  :output_enabled)
  SENSITIVE = []
  include Aws::Structure
end

#input_enabledBoolean

Indicates whether guardrail evaluation is enabled on the input. When disabled, you aren’t charged for the evaluation. The evaluation doesn’t appear in the response.

Returns:

  • (Boolean)


7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
# File 'lib/aws-sdk-bedrock/types.rb', line 7619

class GuardrailPiiEntity < Struct.new(
  :type,
  :action,
  :input_action,
  :output_action,
  :input_enabled,
  :output_enabled)
  SENSITIVE = []
  include Aws::Structure
end

#output_actionString

The action to take when harmful content is detected in the output. Supported values include:

  • ‘BLOCK` – Block the content and replace it with blocked messaging.

  • ‘ANONYMIZE` – Mask the content and replace it with identifier tags.

  • ‘NONE` – Take no action but return detection information in the trace response.

Returns:

  • (String)


7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
# File 'lib/aws-sdk-bedrock/types.rb', line 7619

class GuardrailPiiEntity < Struct.new(
  :type,
  :action,
  :input_action,
  :output_action,
  :input_enabled,
  :output_enabled)
  SENSITIVE = []
  include Aws::Structure
end

#output_enabledBoolean

Indicates whether guardrail evaluation is enabled on the output. When disabled, you aren’t charged for the evaluation. The evaluation doesn’t appear in the response.

Returns:

  • (Boolean)


7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
# File 'lib/aws-sdk-bedrock/types.rb', line 7619

class GuardrailPiiEntity < Struct.new(
  :type,
  :action,
  :input_action,
  :output_action,
  :input_enabled,
  :output_enabled)
  SENSITIVE = []
  include Aws::Structure
end

#typeString

The type of PII entity. For example, Social Security Number.

Returns:

  • (String)


7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
# File 'lib/aws-sdk-bedrock/types.rb', line 7619

class GuardrailPiiEntity < Struct.new(
  :type,
  :action,
  :input_action,
  :output_action,
  :input_enabled,
  :output_enabled)
  SENSITIVE = []
  include Aws::Structure
end