GuardrailState constructor

const GuardrailState({
  1. Input<GuardrailAction?>? action,
  2. Input<String?>? app,
  3. Input<GuardrailCodeCallback?>? codeCallback,
  4. Input<GuardrailContentFilter?>? contentFilter,
  5. Input<String?>? createTime,
  6. Input<String?>? deletionPolicy,
  7. Input<String?>? description,
  8. Input<String?>? displayName,
  9. Input<bool?>? enabled,
  10. Input<String?>? etag,
  11. Input<String?>? guardrailId,
  12. Input<GuardrailLlmPolicy?>? llmPolicy,
  13. Input<GuardrailLlmPromptSecurity?>? llmPromptSecurity,
  14. Input<String?>? location,
  15. Input<GuardrailModelSafety?>? modelSafety,
  16. Input<String?>? name,
  17. Input<String?>? project,
  18. Input<String?>? updateTime,
})

Creates a new GuardrailState. action Action that is taken when a certain precondition is met. app Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122. codeCallback Guardrail that blocks the conversation based on the code callbacks contentFilter Guardrail that bans certain content from being used in the conversation. createTime Timestamp when the guardrail was created. deletionPolicy Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. description Description of the guardrail. displayName Display name of the guardrail. enabled Whether the guardrail is enabled. etag Etag used to ensure the object hasn't changed during a read-modify-write guardrailId The ID to use for the guardrail, which will become the final component of llmPolicy Guardrail that blocks the conversation if the LLM response is considered llmPromptSecurity Guardrail that blocks the conversation if the input is considered unsafe location Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122. modelSafety Model safety settings overrides. When this is set, it will override the name Identifier. The unique identifier of the guardrail. project The ID of the project in which the resource belongs. updateTime Timestamp when the guardrail was last updated.

Implementation

const GuardrailState({
  this.action,
  this.app,
  this.codeCallback,
  this.contentFilter,
  this.createTime,
  this.deletionPolicy,
  this.description,
  this.displayName,
  this.enabled,
  this.etag,
  this.guardrailId,
  this.llmPolicy,
  this.llmPromptSecurity,
  this.location,
  this.modelSafety,
  this.name,
  this.project,
  this.updateTime,
});