1. Registry
  2. Packages
  3. Thoth
  4. API Docs
  5. governance
  6. Agent
Viewing docs for Thoth v0.1.24
published on Thursday, Nov 5, 2026 by Aten Security
thoth logo Thoth
Viewing docs for Thoth v0.1.24
published 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)
    public Agent(String name, AgentArgs args)
    public Agent(String name, AgentArgs args, CustomResourceOptions options)
    
    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:

    AgentId string
    The agent ID the agent's SDK or proxy sends.
    ApprovedScopes List<string>
    Tool names the agent is meant to use; the rules weigh calls outside it as out of scope.
    DisplayName string
    The name shown in the dashboard and reports. Defaults to the agent ID.
    OwnerEmail string
    The person responsible for the agent.
    AgentId string
    The agent ID the agent's SDK or proxy sends.
    ApprovedScopes []string
    Tool names the agent is meant to use; the rules weigh calls outside it as out of scope.
    DisplayName string
    The name shown in the dashboard and reports. Defaults to the agent ID.
    OwnerEmail 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.
    agentId String
    The agent ID the agent's SDK or proxy sends.
    approvedScopes List<String>
    Tool names the agent is meant to use; the rules weigh calls outside it as out of scope.
    displayName String
    The name shown in the dashboard and reports. Defaults to the agent ID.
    ownerEmail String
    The person responsible for the agent.
    agentId string
    The agent ID the agent's SDK or proxy sends.
    approvedScopes string[]
    Tool names the agent is meant to use; the rules weigh calls outside it as out of scope.
    displayName string
    The name shown in the dashboard and reports. Defaults to the agent ID.
    ownerEmail 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.
    agentId String
    The agent ID the agent's SDK or proxy sends.
    approvedScopes List<String>
    Tool names the agent is meant to use; the rules weigh calls outside it as out of scope.
    displayName String
    The name shown in the dashboard and reports. Defaults to the agent ID.
    ownerEmail 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:

    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    active, or quarantined when Thoth denies the agent's actions.
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    active, or quarantined when Thoth denies the agent's actions.
    id string
    The provider-assigned unique ID for this managed resource.
    status string
    active, or quarantined when Thoth denies the agent's actions.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    active, or quarantined when Thoth denies the agent's actions.
    id string
    The provider-assigned unique ID for this managed resource.
    status string
    active, or quarantined when Thoth denies the agent's actions.
    id str
    The provider-assigned unique ID for this managed resource.
    status str
    active, or quarantined when Thoth denies the agent's actions.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    active, or quarantined when Thoth denies the agent's actions.

    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) -> Agent
    func 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.
    The following state arguments are supported:
    AgentId string
    The agent ID the agent's SDK or proxy sends.
    ApprovedScopes List<string>
    Tool names the agent is meant to use; the rules weigh calls outside it as out of scope.
    DisplayName string
    The name shown in the dashboard and reports. Defaults to the agent ID.
    OwnerEmail string
    The person responsible for the agent.
    Status string
    active, or quarantined when Thoth denies the agent's actions.
    AgentId string
    The agent ID the agent's SDK or proxy sends.
    ApprovedScopes []string
    Tool names the agent is meant to use; the rules weigh calls outside it as out of scope.
    DisplayName string
    The name shown in the dashboard and reports. Defaults to the agent ID.
    OwnerEmail string
    The person responsible for the agent.
    Status string
    active, or quarantined when 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, or quarantined when Thoth denies the agent's actions.
    agentId String
    The agent ID the agent's SDK or proxy sends.
    approvedScopes List<String>
    Tool names the agent is meant to use; the rules weigh calls outside it as out of scope.
    displayName String
    The name shown in the dashboard and reports. Defaults to the agent ID.
    ownerEmail String
    The person responsible for the agent.
    status String
    active, or quarantined when Thoth denies the agent's actions.
    agentId string
    The agent ID the agent's SDK or proxy sends.
    approvedScopes string[]
    Tool names the agent is meant to use; the rules weigh calls outside it as out of scope.
    displayName string
    The name shown in the dashboard and reports. Defaults to the agent ID.
    ownerEmail string
    The person responsible for the agent.
    status string
    active, or quarantined when 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, or quarantined when Thoth denies the agent's actions.
    agentId String
    The agent ID the agent's SDK or proxy sends.
    approvedScopes List<String>
    Tool names the agent is meant to use; the rules weigh calls outside it as out of scope.
    displayName String
    The name shown in the dashboard and reports. Defaults to the agent ID.
    ownerEmail String
    The person responsible for the agent.
    status String
    active, or quarantined when 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 thoth Terraform Provider.
    thoth logo Thoth
    Viewing docs for Thoth v0.1.24
    published on Thursday, Nov 5, 2026 by Aten Security

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial