published on Thursday, Nov 5, 2026 by Aten Security
Thothpublished on Thursday, Nov 5, 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,
after_decline: Optional[str] = None,
after_decline_minutes: Optional[int] = 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",
AfterDecline = "string",
AfterDeclineMinutes = 0,
HighRiskAction = "string",
});
example, err := governance.NewAgentEnforcement(ctx, "agentEnforcementResource", &governance.AgentEnforcementArgs{
AgentId: pulumi.String("string"),
EnforcementMode: pulumi.String("string"),
AfterDecline: pulumi.String("string"),
AfterDeclineMinutes: pulumi.Int(0),
HighRiskAction: pulumi.String("string"),
})
resource "thoth_governance_agent_enforcement" "agentEnforcementResource" {
lifecycle {
create_before_destroy = true
}
agent_id = "string"
enforcement_mode = "string"
after_decline = "string"
after_decline_minutes = 0
high_risk_action = "string"
}
var agentEnforcementResource = new AgentEnforcement("agentEnforcementResource", AgentEnforcementArgs.builder()
.agentId("string")
.enforcementMode("string")
.afterDecline("string")
.afterDeclineMinutes(0)
.highRiskAction("string")
.build());
agent_enforcement_resource = thoth.governance.AgentEnforcement("agentEnforcementResource",
agent_id="string",
enforcement_mode="string",
after_decline="string",
after_decline_minutes=0,
high_risk_action="string")
const agentEnforcementResource = new thoth.governance.AgentEnforcement("agentEnforcementResource", {
agentId: "string",
enforcementMode: "string",
afterDecline: "string",
afterDeclineMinutes: 0,
highRiskAction: "string",
});
type: thoth:governance:AgentEnforcement
properties:
afterDecline: string
afterDeclineMinutes: 0
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:
- Agent
Id string - The registered agent.
- Enforcement
Mode string observe(evaluate and record, allow everything) orenforce(decisions apply).- After
Decline string - What a person declining one of this agent's held actions does.
raise(default): its next actions of the same kind need approval forafterDeclineMinutes, in every session.stop: the session the declined action was in is isolated until a person releases it.quarantine: the agent is quarantined. A policy deny quarantines the agent whatever this says. - After
Decline intMinutes - With
afterDeclineset toraise, how long the agent's same-kind actions need approval: 5 to 1440 minutes (default 30). Ignored forstopandquarantine. - High
Risk stringAction - While enforcing, what a high model risk score does:
holdthe action for approval (default) ordenyit. 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) orenforce(decisions apply).- After
Decline string - What a person declining one of this agent's held actions does.
raise(default): its next actions of the same kind need approval forafterDeclineMinutes, in every session.stop: the session the declined action was in is isolated until a person releases it.quarantine: the agent is quarantined. A policy deny quarantines the agent whatever this says. - After
Decline intMinutes - With
afterDeclineset toraise, how long the agent's same-kind actions need approval: 5 to 1440 minutes (default 30). Ignored forstopandquarantine. - High
Risk stringAction - While enforcing, what a high model risk score does:
holdthe action for approval (default) ordenyit. 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) orenforce(decisions apply).- after_
decline string - What a person declining one of this agent's held actions does.
raise(default): its next actions of the same kind need approval forafterDeclineMinutes, in every session.stop: the session the declined action was in is isolated until a person releases it.quarantine: the agent is quarantined. A policy deny quarantines the agent whatever this says. - after_
decline_ numberminutes - With
afterDeclineset toraise, how long the agent's same-kind actions need approval: 5 to 1440 minutes (default 30). Ignored forstopandquarantine. - high_
risk_ stringaction - While enforcing, what a high model risk score does:
holdthe action for approval (default) ordenyit. 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) orenforce(decisions apply).- after
Decline String - What a person declining one of this agent's held actions does.
raise(default): its next actions of the same kind need approval forafterDeclineMinutes, in every session.stop: the session the declined action was in is isolated until a person releases it.quarantine: the agent is quarantined. A policy deny quarantines the agent whatever this says. - after
Decline IntegerMinutes - With
afterDeclineset toraise, how long the agent's same-kind actions need approval: 5 to 1440 minutes (default 30). Ignored forstopandquarantine. - high
Risk StringAction - While enforcing, what a high model risk score does:
holdthe action for approval (default) ordenyit. 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) orenforce(decisions apply).- after
Decline string - What a person declining one of this agent's held actions does.
raise(default): its next actions of the same kind need approval forafterDeclineMinutes, in every session.stop: the session the declined action was in is isolated until a person releases it.quarantine: the agent is quarantined. A policy deny quarantines the agent whatever this says. - after
Decline numberMinutes - With
afterDeclineset toraise, how long the agent's same-kind actions need approval: 5 to 1440 minutes (default 30). Ignored forstopandquarantine. - high
Risk stringAction - While enforcing, what a high model risk score does:
holdthe action for approval (default) ordenyit. 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) orenforce(decisions apply).- after_
decline str - What a person declining one of this agent's held actions does.
raise(default): its next actions of the same kind need approval forafterDeclineMinutes, in every session.stop: the session the declined action was in is isolated until a person releases it.quarantine: the agent is quarantined. A policy deny quarantines the agent whatever this says. - after_
decline_ intminutes - With
afterDeclineset toraise, how long the agent's same-kind actions need approval: 5 to 1440 minutes (default 30). Ignored forstopandquarantine. - high_
risk_ straction - While enforcing, what a high model risk score does:
holdthe action for approval (default) ordenyit. 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) orenforce(decisions apply).- after
Decline String - What a person declining one of this agent's held actions does.
raise(default): its next actions of the same kind need approval forafterDeclineMinutes, in every session.stop: the session the declined action was in is isolated until a person releases it.quarantine: the agent is quarantined. A policy deny quarantines the agent whatever this says. - after
Decline NumberMinutes - With
afterDeclineset toraise, how long the agent's same-kind actions need approval: 5 to 1440 minutes (default 30). Ignored forstopandquarantine. - high
Risk StringAction - While enforcing, what a high model risk score does:
holdthe action for approval (default) ordenyit. 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,
after_decline: Optional[str] = None,
after_decline_minutes: Optional[int] = None,
agent_id: Optional[str] = None,
enforcement_mode: Optional[str] = None,
high_risk_action: Optional[str] = None) -> AgentEnforcementfunc 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.
- After
Decline string - What a person declining one of this agent's held actions does.
raise(default): its next actions of the same kind need approval forafterDeclineMinutes, in every session.stop: the session the declined action was in is isolated until a person releases it.quarantine: the agent is quarantined. A policy deny quarantines the agent whatever this says. - After
Decline intMinutes - With
afterDeclineset toraise, how long the agent's same-kind actions need approval: 5 to 1440 minutes (default 30). Ignored forstopandquarantine. - Agent
Id string - The registered agent.
- Enforcement
Mode string observe(evaluate and record, allow everything) orenforce(decisions apply).- High
Risk stringAction - While enforcing, what a high model risk score does:
holdthe action for approval (default) ordenyit. Rules decide either way; a score can only make a decision stricter.
- After
Decline string - What a person declining one of this agent's held actions does.
raise(default): its next actions of the same kind need approval forafterDeclineMinutes, in every session.stop: the session the declined action was in is isolated until a person releases it.quarantine: the agent is quarantined. A policy deny quarantines the agent whatever this says. - After
Decline intMinutes - With
afterDeclineset toraise, how long the agent's same-kind actions need approval: 5 to 1440 minutes (default 30). Ignored forstopandquarantine. - Agent
Id string - The registered agent.
- Enforcement
Mode string observe(evaluate and record, allow everything) orenforce(decisions apply).- High
Risk stringAction - While enforcing, what a high model risk score does:
holdthe action for approval (default) ordenyit. Rules decide either way; a score can only make a decision stricter.
- after_
decline string - What a person declining one of this agent's held actions does.
raise(default): its next actions of the same kind need approval forafterDeclineMinutes, in every session.stop: the session the declined action was in is isolated until a person releases it.quarantine: the agent is quarantined. A policy deny quarantines the agent whatever this says. - after_
decline_ numberminutes - With
afterDeclineset toraise, how long the agent's same-kind actions need approval: 5 to 1440 minutes (default 30). Ignored forstopandquarantine. - agent_
id string - The registered agent.
- enforcement_
mode string observe(evaluate and record, allow everything) orenforce(decisions apply).- high_
risk_ stringaction - While enforcing, what a high model risk score does:
holdthe action for approval (default) ordenyit. Rules decide either way; a score can only make a decision stricter.
- after
Decline String - What a person declining one of this agent's held actions does.
raise(default): its next actions of the same kind need approval forafterDeclineMinutes, in every session.stop: the session the declined action was in is isolated until a person releases it.quarantine: the agent is quarantined. A policy deny quarantines the agent whatever this says. - after
Decline IntegerMinutes - With
afterDeclineset toraise, how long the agent's same-kind actions need approval: 5 to 1440 minutes (default 30). Ignored forstopandquarantine. - agent
Id String - The registered agent.
- enforcement
Mode String observe(evaluate and record, allow everything) orenforce(decisions apply).- high
Risk StringAction - While enforcing, what a high model risk score does:
holdthe action for approval (default) ordenyit. Rules decide either way; a score can only make a decision stricter.
- after
Decline string - What a person declining one of this agent's held actions does.
raise(default): its next actions of the same kind need approval forafterDeclineMinutes, in every session.stop: the session the declined action was in is isolated until a person releases it.quarantine: the agent is quarantined. A policy deny quarantines the agent whatever this says. - after
Decline numberMinutes - With
afterDeclineset toraise, how long the agent's same-kind actions need approval: 5 to 1440 minutes (default 30). Ignored forstopandquarantine. - agent
Id string - The registered agent.
- enforcement
Mode string observe(evaluate and record, allow everything) orenforce(decisions apply).- high
Risk stringAction - While enforcing, what a high model risk score does:
holdthe action for approval (default) ordenyit. Rules decide either way; a score can only make a decision stricter.
- after_
decline str - What a person declining one of this agent's held actions does.
raise(default): its next actions of the same kind need approval forafterDeclineMinutes, in every session.stop: the session the declined action was in is isolated until a person releases it.quarantine: the agent is quarantined. A policy deny quarantines the agent whatever this says. - after_
decline_ intminutes - With
afterDeclineset toraise, how long the agent's same-kind actions need approval: 5 to 1440 minutes (default 30). Ignored forstopandquarantine. - agent_
id str - The registered agent.
- enforcement_
mode str observe(evaluate and record, allow everything) orenforce(decisions apply).- high_
risk_ straction - While enforcing, what a high model risk score does:
holdthe action for approval (default) ordenyit. Rules decide either way; a score can only make a decision stricter.
- after
Decline String - What a person declining one of this agent's held actions does.
raise(default): its next actions of the same kind need approval forafterDeclineMinutes, in every session.stop: the session the declined action was in is isolated until a person releases it.quarantine: the agent is quarantined. A policy deny quarantines the agent whatever this says. - after
Decline NumberMinutes - With
afterDeclineset toraise, how long the agent's same-kind actions need approval: 5 to 1440 minutes (default 30). Ignored forstopandquarantine. - agent
Id String - The registered agent.
- enforcement
Mode String observe(evaluate and record, allow everything) orenforce(decisions apply).- high
Risk StringAction - While enforcing, what a high model risk score does:
holdthe action for approval (default) ordenyit. 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
thothTerraform Provider.
Thothpublished on Thursday, Nov 5, 2026 by Aten Security