published on Thursday, Nov 5, 2026 by Aten Security
Thothpublished on Thursday, Nov 5, 2026 by Aten Security
Create Agent Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Agent(name: string, args: AgentArgs, opts?: CustomResourceOptions);@overload
def Agent(resource_name: str,
args: AgentArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Agent(resource_name: str,
opts: Optional[ResourceOptions] = None,
agent_id: Optional[str] = None,
approved_scopes: Optional[Sequence[str]] = None,
display_name: Optional[str] = None,
owner_email: Optional[str] = None)func NewAgent(ctx *Context, name string, args AgentArgs, opts ...ResourceOption) (*Agent, error)public Agent(string name, AgentArgs args, CustomResourceOptions? opts = null)type: thoth:governance:Agent
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "thoth_governance_agent" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args AgentArgs
- 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 AgentArgs
- 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 AgentArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AgentArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AgentArgs
- 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 agentResource = new Thoth.Governance.Agent("agentResource", new()
{
AgentId = "string",
ApprovedScopes = new[]
{
"string",
},
DisplayName = "string",
OwnerEmail = "string",
});
example, err := governance.NewAgent(ctx, "agentResource", &governance.AgentArgs{
AgentId: pulumi.String("string"),
ApprovedScopes: pulumi.StringArray{
pulumi.String("string"),
},
DisplayName: pulumi.String("string"),
OwnerEmail: pulumi.String("string"),
})
resource "thoth_governance_agent" "agentResource" {
lifecycle {
create_before_destroy = true
}
agent_id = "string"
approved_scopes = ["string"]
display_name = "string"
owner_email = "string"
}
var agentResource = new Agent("agentResource", AgentArgs.builder()
.agentId("string")
.approvedScopes("string")
.displayName("string")
.ownerEmail("string")
.build());
agent_resource = thoth.governance.Agent("agentResource",
agent_id="string",
approved_scopes=["string"],
display_name="string",
owner_email="string")
const agentResource = new thoth.governance.Agent("agentResource", {
agentId: "string",
approvedScopes: ["string"],
displayName: "string",
ownerEmail: "string",
});
type: thoth:governance:Agent
properties:
agentId: string
approvedScopes:
- string
displayName: string
ownerEmail: string
Agent 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 Agent resource accepts the following input properties:
- Agent
Id string - The agent ID the agent's SDK or proxy sends.
- Approved
Scopes List<string> - Tool names the agent is meant to use; the rules weigh calls outside it as out of scope.
- Display
Name string - The name shown in the dashboard and reports. Defaults to the agent ID.
- Owner
Email string - The person responsible for the agent.
- Agent
Id string - The agent ID the agent's SDK or proxy sends.
- Approved
Scopes []string - Tool names the agent is meant to use; the rules weigh calls outside it as out of scope.
- Display
Name string - The name shown in the dashboard and reports. Defaults to the agent ID.
- Owner
Email string - The person responsible for the agent.
- agent_
id string - The agent ID the agent's SDK or proxy sends.
- approved_
scopes list(string) - Tool names the agent is meant to use; the rules weigh calls outside it as out of scope.
- display_
name string - The name shown in the dashboard and reports. Defaults to the agent ID.
- owner_
email string - The person responsible for the agent.
- agent
Id String - The agent ID the agent's SDK or proxy sends.
- approved
Scopes List<String> - Tool names the agent is meant to use; the rules weigh calls outside it as out of scope.
- display
Name String - The name shown in the dashboard and reports. Defaults to the agent ID.
- owner
Email String - The person responsible for the agent.
- agent
Id string - The agent ID the agent's SDK or proxy sends.
- approved
Scopes string[] - Tool names the agent is meant to use; the rules weigh calls outside it as out of scope.
- display
Name string - The name shown in the dashboard and reports. Defaults to the agent ID.
- owner
Email string - The person responsible for the agent.
- agent_
id str - The agent ID the agent's SDK or proxy sends.
- approved_
scopes Sequence[str] - Tool names the agent is meant to use; the rules weigh calls outside it as out of scope.
- display_
name str - The name shown in the dashboard and reports. Defaults to the agent ID.
- owner_
email str - The person responsible for the agent.
- agent
Id String - The agent ID the agent's SDK or proxy sends.
- approved
Scopes List<String> - Tool names the agent is meant to use; the rules weigh calls outside it as out of scope.
- display
Name String - The name shown in the dashboard and reports. Defaults to the agent ID.
- owner
Email String - The person responsible for the agent.
Outputs
All input properties are implicitly available as output properties. Additionally, the Agent resource produces the following output properties:
Look up Existing Agent Resource
Get an existing Agent 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?: AgentState, opts?: CustomResourceOptions): Agent@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
agent_id: Optional[str] = None,
approved_scopes: Optional[Sequence[str]] = None,
display_name: Optional[str] = None,
owner_email: Optional[str] = None,
status: Optional[str] = None) -> Agentfunc GetAgent(ctx *Context, name string, id IDInput, state *AgentState, opts ...ResourceOption) (*Agent, error)public static Agent Get(string name, Input<string> id, AgentState? state, CustomResourceOptions? opts = null)public static Agent get(String name, Output<String> id, AgentState state, CustomResourceOptions options)resources: existingAgent: type: thoth:governance:Agent get: id: ${id}import {
to = thoth_governance_agent.example
id = "${id}"
}
- name string
- The unique name of the resulting resource.
- id Input<ID>
- The unique provider ID of the resource to look up.
- state AgentState
- Known property values the provider needs, along with the ID, to find the resource. Usually not required.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resulting resource.
- id str
- The unique provider ID of the resource to look up.
- 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 resulting resource.
- id IDInput
- The unique provider ID of the resource to look up.
- state AgentState
- Known property values the provider needs, along with the ID, to find the resource. Usually not required.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resulting resource.
- id Input<string>
- The unique provider ID of the resource to look up.
- state AgentState
- Known property values the provider needs, along with the ID, to find the resource. Usually not required.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resulting resource.
- id Output<String>
- The unique provider ID of the resource to look up.
- state AgentState
- Known property values the provider needs, along with the ID, to find the resource. Usually not required.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
- Agent
Id string - The agent ID the agent's SDK or proxy sends.
- Approved
Scopes List<string> - Tool names the agent is meant to use; the rules weigh calls outside it as out of scope.
- Display
Name string - The name shown in the dashboard and reports. Defaults to the agent ID.
- Owner
Email string - The person responsible for the agent.
- Status string
active, orquarantinedwhen Thoth denies the agent's actions.
- Agent
Id string - The agent ID the agent's SDK or proxy sends.
- Approved
Scopes []string - Tool names the agent is meant to use; the rules weigh calls outside it as out of scope.
- Display
Name string - The name shown in the dashboard and reports. Defaults to the agent ID.
- Owner
Email string - The person responsible for the agent.
- Status string
active, orquarantinedwhen Thoth denies the agent's actions.
- agent_
id string - The agent ID the agent's SDK or proxy sends.
- approved_
scopes list(string) - Tool names the agent is meant to use; the rules weigh calls outside it as out of scope.
- display_
name string - The name shown in the dashboard and reports. Defaults to the agent ID.
- owner_
email string - The person responsible for the agent.
- status string
active, orquarantinedwhen Thoth denies the agent's actions.
- agent
Id String - The agent ID the agent's SDK or proxy sends.
- approved
Scopes List<String> - Tool names the agent is meant to use; the rules weigh calls outside it as out of scope.
- display
Name String - The name shown in the dashboard and reports. Defaults to the agent ID.
- owner
Email String - The person responsible for the agent.
- status String
active, orquarantinedwhen Thoth denies the agent's actions.
- agent
Id string - The agent ID the agent's SDK or proxy sends.
- approved
Scopes string[] - Tool names the agent is meant to use; the rules weigh calls outside it as out of scope.
- display
Name string - The name shown in the dashboard and reports. Defaults to the agent ID.
- owner
Email string - The person responsible for the agent.
- status string
active, orquarantinedwhen Thoth denies the agent's actions.
- agent_
id str - The agent ID the agent's SDK or proxy sends.
- approved_
scopes Sequence[str] - Tool names the agent is meant to use; the rules weigh calls outside it as out of scope.
- display_
name str - The name shown in the dashboard and reports. Defaults to the agent ID.
- owner_
email str - The person responsible for the agent.
- status str
active, orquarantinedwhen Thoth denies the agent's actions.
- agent
Id String - The agent ID the agent's SDK or proxy sends.
- approved
Scopes List<String> - Tool names the agent is meant to use; the rules weigh calls outside it as out of scope.
- display
Name String - The name shown in the dashboard and reports. Defaults to the agent ID.
- owner
Email String - The person responsible for the agent.
- status String
active, orquarantinedwhen Thoth denies the agent's actions.
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