published on Sunday, Oct 25, 2026 by Aten Security
Thothpublished 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:
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
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) -> 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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 Sunday, Oct 25, 2026 by Aten Security