1. Registry
  2. Packages
  3. Thoth
  4. API Docs
  5. governance
  6. AgentEnforcement
Viewing docs for Thoth v0.1.22
published on Sunday, Oct 25, 2026 by Aten Security
thoth logo Thoth
Viewing docs for Thoth v0.1.22
published on Sunday, Oct 25, 2026 by Aten Security

    Create AgentEnforcement Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new AgentEnforcement(name: string, args: AgentEnforcementArgs, opts?: CustomResourceOptions);
    @overload
    def AgentEnforcement(resource_name: str,
                         args: AgentEnforcementArgs,
                         opts: Optional[ResourceOptions] = None)
    
    @overload
    def AgentEnforcement(resource_name: str,
                         opts: Optional[ResourceOptions] = None,
                         agent_id: Optional[str] = None,
                         enforcement_mode: Optional[str] = None,
                         high_risk_action: Optional[str] = None)
    func NewAgentEnforcement(ctx *Context, name string, args AgentEnforcementArgs, opts ...ResourceOption) (*AgentEnforcement, error)
    public AgentEnforcement(string name, AgentEnforcementArgs args, CustomResourceOptions? opts = null)
    public AgentEnforcement(String name, AgentEnforcementArgs args)
    public AgentEnforcement(String name, AgentEnforcementArgs args, CustomResourceOptions options)
    
    type: thoth:governance:AgentEnforcement
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "thoth_governance_agent_enforcement" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args AgentEnforcementArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args AgentEnforcementArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args AgentEnforcementArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AgentEnforcementArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AgentEnforcementArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var agentEnforcementResource = new Thoth.Governance.AgentEnforcement("agentEnforcementResource", new()
    {
        AgentId = "string",
        EnforcementMode = "string",
        HighRiskAction = "string",
    });
    
    example, err := governance.NewAgentEnforcement(ctx, "agentEnforcementResource", &governance.AgentEnforcementArgs{
    	AgentId:         pulumi.String("string"),
    	EnforcementMode: pulumi.String("string"),
    	HighRiskAction:  pulumi.String("string"),
    })
    
    resource "thoth_governance_agent_enforcement" "agentEnforcementResource" {
      lifecycle {
        create_before_destroy = true
      }
      agent_id         = "string"
      enforcement_mode = "string"
      high_risk_action = "string"
    }
    
    var agentEnforcementResource = new AgentEnforcement("agentEnforcementResource", AgentEnforcementArgs.builder()
        .agentId("string")
        .enforcementMode("string")
        .highRiskAction("string")
        .build());
    
    agent_enforcement_resource = thoth.governance.AgentEnforcement("agentEnforcementResource",
        agent_id="string",
        enforcement_mode="string",
        high_risk_action="string")
    
    const agentEnforcementResource = new thoth.governance.AgentEnforcement("agentEnforcementResource", {
        agentId: "string",
        enforcementMode: "string",
        highRiskAction: "string",
    });
    
    type: thoth:governance:AgentEnforcement
    properties:
        agentId: string
        enforcementMode: string
        highRiskAction: string
    

    AgentEnforcement Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The AgentEnforcement resource accepts the following input properties:

    AgentId string
    The registered agent.
    EnforcementMode string
    observe (evaluate and record, allow everything) or enforce (decisions apply).
    HighRiskAction string
    While enforcing, what a high model risk score does: hold the action for approval (default) or deny it. Rules decide either way; a score can only make a decision stricter.
    AgentId string
    The registered agent.
    EnforcementMode string
    observe (evaluate and record, allow everything) or enforce (decisions apply).
    HighRiskAction string
    While enforcing, what a high model risk score does: hold the action for approval (default) or deny it. Rules decide either way; a score can only make a decision stricter.
    agent_id string
    The registered agent.
    enforcement_mode string
    observe (evaluate and record, allow everything) or enforce (decisions apply).
    high_risk_action string
    While enforcing, what a high model risk score does: hold the action for approval (default) or deny it. Rules decide either way; a score can only make a decision stricter.
    agentId String
    The registered agent.
    enforcementMode String
    observe (evaluate and record, allow everything) or enforce (decisions apply).
    highRiskAction String
    While enforcing, what a high model risk score does: hold the action for approval (default) or deny it. Rules decide either way; a score can only make a decision stricter.
    agentId string
    The registered agent.
    enforcementMode string
    observe (evaluate and record, allow everything) or enforce (decisions apply).
    highRiskAction string
    While enforcing, what a high model risk score does: hold the action for approval (default) or deny it. Rules decide either way; a score can only make a decision stricter.
    agent_id str
    The registered agent.
    enforcement_mode str
    observe (evaluate and record, allow everything) or enforce (decisions apply).
    high_risk_action str
    While enforcing, what a high model risk score does: hold the action for approval (default) or deny it. Rules decide either way; a score can only make a decision stricter.
    agentId String
    The registered agent.
    enforcementMode String
    observe (evaluate and record, allow everything) or enforce (decisions apply).
    highRiskAction String
    While enforcing, what a high model risk score does: hold the action for approval (default) or deny it. Rules decide either way; a score can only make a decision stricter.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the AgentEnforcement resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing AgentEnforcement Resource

    Get an existing AgentEnforcement resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: AgentEnforcementState, opts?: CustomResourceOptions): AgentEnforcement
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            agent_id: Optional[str] = None,
            enforcement_mode: Optional[str] = None,
            high_risk_action: Optional[str] = None) -> AgentEnforcement
    func GetAgentEnforcement(ctx *Context, name string, id IDInput, state *AgentEnforcementState, opts ...ResourceOption) (*AgentEnforcement, error)
    public static AgentEnforcement Get(string name, Input<string> id, AgentEnforcementState? state, CustomResourceOptions? opts = null)
    public static AgentEnforcement get(String name, Output<String> id, AgentEnforcementState state, CustomResourceOptions options)
    resources:  _:    type: thoth:governance:AgentEnforcement    get:      id: ${id}
    import {
      to = thoth_governance_agent_enforcement.example
      id = "${id}"
    }
    
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    AgentId string
    The registered agent.
    EnforcementMode string
    observe (evaluate and record, allow everything) or enforce (decisions apply).
    HighRiskAction string
    While enforcing, what a high model risk score does: hold the action for approval (default) or deny it. Rules decide either way; a score can only make a decision stricter.
    AgentId string
    The registered agent.
    EnforcementMode string
    observe (evaluate and record, allow everything) or enforce (decisions apply).
    HighRiskAction string
    While enforcing, what a high model risk score does: hold the action for approval (default) or deny it. Rules decide either way; a score can only make a decision stricter.
    agent_id string
    The registered agent.
    enforcement_mode string
    observe (evaluate and record, allow everything) or enforce (decisions apply).
    high_risk_action string
    While enforcing, what a high model risk score does: hold the action for approval (default) or deny it. Rules decide either way; a score can only make a decision stricter.
    agentId String
    The registered agent.
    enforcementMode String
    observe (evaluate and record, allow everything) or enforce (decisions apply).
    highRiskAction String
    While enforcing, what a high model risk score does: hold the action for approval (default) or deny it. Rules decide either way; a score can only make a decision stricter.
    agentId string
    The registered agent.
    enforcementMode string
    observe (evaluate and record, allow everything) or enforce (decisions apply).
    highRiskAction string
    While enforcing, what a high model risk score does: hold the action for approval (default) or deny it. Rules decide either way; a score can only make a decision stricter.
    agent_id str
    The registered agent.
    enforcement_mode str
    observe (evaluate and record, allow everything) or enforce (decisions apply).
    high_risk_action str
    While enforcing, what a high model risk score does: hold the action for approval (default) or deny it. Rules decide either way; a score can only make a decision stricter.
    agentId String
    The registered agent.
    enforcementMode String
    observe (evaluate and record, allow everything) or enforce (decisions apply).
    highRiskAction String
    While enforcing, what a high model risk score does: hold the action for approval (default) or deny it. Rules decide either way; a score can only make a decision stricter.

    Package Details

    Repository
    thoth atensecurity/pulumi-thoth
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the thoth Terraform Provider.
    thoth logo Thoth
    Viewing docs for Thoth v0.1.22
    published on Sunday, Oct 25, 2026 by Aten Security

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial