published on Tuesday, Nov 3, 2026 by Pulumi
published on Tuesday, Nov 3, 2026 by Pulumi
Creates a Custom Agent definition for the organization from the supplied configuration (name, optional RBAC role, integrations, and instructions). Requires agent_definitions:create, granted to organization admins by default. Returns the created definition including its generated id. Returns 404 if a supplied role does not exist in the organization.
Create Definition Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Definition(name: string, args: DefinitionArgs, opts?: CustomResourceOptions);@overload
def Definition(resource_name: str,
args: DefinitionArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Definition(resource_name: str,
opts: Optional[ResourceOptions] = None,
org_name: Optional[str] = None,
approval_mode: Optional[str] = None,
avatar: Optional[str] = None,
custom_instructions: Optional[str] = None,
definition_id: Optional[str] = None,
display_name: Optional[str] = None,
enabled_integrations: Optional[Sequence[Any]] = None,
name: Optional[str] = None,
permission_mode: Optional[str] = None,
purpose: Optional[str] = None,
role_id: Optional[str] = None)func NewDefinition(ctx *Context, name string, args DefinitionArgs, opts ...ResourceOption) (*Definition, error)public Definition(string name, DefinitionArgs args, CustomResourceOptions? opts = null)
public Definition(String name, DefinitionArgs args)
public Definition(String name, DefinitionArgs args, CustomResourceOptions options)
type: pulumiservice:api/agents:Definition
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "pulumiservice_api_agents_definition" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args DefinitionArgs
- 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 DefinitionArgs
- 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 DefinitionArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DefinitionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DefinitionArgs
- 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 definitionResource = new PulumiService.Api.Agents.Definition("definitionResource", new()
{
OrgName = "string",
ApprovalMode = "string",
Avatar = "string",
CustomInstructions = "string",
DefinitionID = "string",
DisplayName = "string",
EnabledIntegrations = new[]
{
"any",
},
Name = "string",
PermissionMode = "string",
Purpose = "string",
RoleId = "string",
});
example, err := agents.NewDefinition(ctx, "definitionResource", &agents.DefinitionArgs{
OrgName: pulumi.String("string"),
ApprovalMode: pulumi.String("string"),
Avatar: pulumi.String("string"),
CustomInstructions: pulumi.String("string"),
DefinitionID: pulumi.String("string"),
DisplayName: pulumi.String("string"),
EnabledIntegrations: pulumi.Array{
pulumi.Any("any"),
},
Name: pulumi.String("string"),
PermissionMode: pulumi.String("string"),
Purpose: pulumi.String("string"),
RoleId: pulumi.String("string"),
})
resource "pulumiservice_api_agents_definition" "definitionResource" {
lifecycle {
create_before_destroy = true
}
org_name = "string"
approval_mode = "string"
avatar = "string"
custom_instructions = "string"
definition_id = "string"
display_name = "string"
enabled_integrations = ["any"]
name = "string"
permission_mode = "string"
purpose = "string"
role_id = "string"
}
var definitionResource = new Definition("definitionResource", DefinitionArgs.builder()
.orgName("string")
.approvalMode("string")
.avatar("string")
.customInstructions("string")
.definitionID("string")
.displayName("string")
.enabledIntegrations("any")
.name("string")
.permissionMode("string")
.purpose("string")
.roleId("string")
.build());
definition_resource = pulumiservice.api.agents.Definition("definitionResource",
org_name="string",
approval_mode="string",
avatar="string",
custom_instructions="string",
definition_id="string",
display_name="string",
enabled_integrations=["any"],
name="string",
permission_mode="string",
purpose="string",
role_id="string")
const definitionResource = new pulumiservice.api.agents.Definition("definitionResource", {
orgName: "string",
approvalMode: "string",
avatar: "string",
customInstructions: "string",
definitionID: "string",
displayName: "string",
enabledIntegrations: ["any"],
name: "string",
permissionMode: "string",
purpose: "string",
roleId: "string",
});
type: pulumiservice:api/agents:Definition
properties:
approvalMode: string
avatar: string
customInstructions: string
definitionID: string
displayName: string
enabledIntegrations:
- any
name: string
orgName: string
permissionMode: string
purpose: string
roleId: string
Definition 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 Definition resource accepts the following input properties:
- Org
Name string - The organization name
- Approval
Mode string - The approval posture the agent's runs inherit. When omitted, runs are auto-approved, matching scheduled automations. 'manual' makes the agent propose rather than act, and applies to every run of the agent, including scheduled and triggered ones -- such a run stops and waits for a person even though nothing yet notifies them it is waiting, so choose it deliberately for an unattended agent.
- Avatar string
- A presentation token the console maps to an icon. Not an uploaded asset.
- Custom
Instructions string - Instructions that shape how the agent behaves in the team's environment.
- Definition
ID string - The agent definition identifier
- Display
Name string - The human-readable label shown wherever the agent is displayed. Required unless name is supplied, in which case the name is used as the label too.
- Enabled
Integrations List<object> - The integrations to enable for the agent's tasks, by id. Omitted or null inherits all organization integrations; an empty list enables none.
- Name string
- The agent's name: lower-case letters, digits and hyphens, at most 64 characters, unique within the organization. Optional -- when omitted it is derived from displayName, so a form that asks for one name still works. A name already taken by another agent is rejected with a 409 rather than silently suffixed. Supplying a different name on an update renames the agent, which is safe because every internal reference is by id.
- Permission
Mode string - Deprecated. Custom Agent authority is controlled by roleId and this field is ignored.
- Purpose string
- A one-line description of what this agent is for, shown under its name in the roster.
- Role
Id string - The RBAC role id the agent's tasks assume. With Agents-as-Team-Members enabled, creation with omitted/null or empty uses the feature's read-only default; on update, omitted/null preserves the existing role and empty selects that default. A role that does not exist in the organization is rejected with a 404.
- Org
Name string - The organization name
- Approval
Mode string - The approval posture the agent's runs inherit. When omitted, runs are auto-approved, matching scheduled automations. 'manual' makes the agent propose rather than act, and applies to every run of the agent, including scheduled and triggered ones -- such a run stops and waits for a person even though nothing yet notifies them it is waiting, so choose it deliberately for an unattended agent.
- Avatar string
- A presentation token the console maps to an icon. Not an uploaded asset.
- Custom
Instructions string - Instructions that shape how the agent behaves in the team's environment.
- Definition
ID string - The agent definition identifier
- Display
Name string - The human-readable label shown wherever the agent is displayed. Required unless name is supplied, in which case the name is used as the label too.
- Enabled
Integrations []interface{} - The integrations to enable for the agent's tasks, by id. Omitted or null inherits all organization integrations; an empty list enables none.
- Name string
- The agent's name: lower-case letters, digits and hyphens, at most 64 characters, unique within the organization. Optional -- when omitted it is derived from displayName, so a form that asks for one name still works. A name already taken by another agent is rejected with a 409 rather than silently suffixed. Supplying a different name on an update renames the agent, which is safe because every internal reference is by id.
- Permission
Mode string - Deprecated. Custom Agent authority is controlled by roleId and this field is ignored.
- Purpose string
- A one-line description of what this agent is for, shown under its name in the roster.
- Role
Id string - The RBAC role id the agent's tasks assume. With Agents-as-Team-Members enabled, creation with omitted/null or empty uses the feature's read-only default; on update, omitted/null preserves the existing role and empty selects that default. A role that does not exist in the organization is rejected with a 404.
- org_
name string - The organization name
- approval_
mode string - The approval posture the agent's runs inherit. When omitted, runs are auto-approved, matching scheduled automations. 'manual' makes the agent propose rather than act, and applies to every run of the agent, including scheduled and triggered ones -- such a run stops and waits for a person even though nothing yet notifies them it is waiting, so choose it deliberately for an unattended agent.
- avatar string
- A presentation token the console maps to an icon. Not an uploaded asset.
- custom_
instructions string - Instructions that shape how the agent behaves in the team's environment.
- definition_
id string - The agent definition identifier
- display_
name string - The human-readable label shown wherever the agent is displayed. Required unless name is supplied, in which case the name is used as the label too.
- enabled_
integrations list(any) - The integrations to enable for the agent's tasks, by id. Omitted or null inherits all organization integrations; an empty list enables none.
- name string
- The agent's name: lower-case letters, digits and hyphens, at most 64 characters, unique within the organization. Optional -- when omitted it is derived from displayName, so a form that asks for one name still works. A name already taken by another agent is rejected with a 409 rather than silently suffixed. Supplying a different name on an update renames the agent, which is safe because every internal reference is by id.
- permission_
mode string - Deprecated. Custom Agent authority is controlled by roleId and this field is ignored.
- purpose string
- A one-line description of what this agent is for, shown under its name in the roster.
- role_
id string - The RBAC role id the agent's tasks assume. With Agents-as-Team-Members enabled, creation with omitted/null or empty uses the feature's read-only default; on update, omitted/null preserves the existing role and empty selects that default. A role that does not exist in the organization is rejected with a 404.
- org
Name String - The organization name
- approval
Mode String - The approval posture the agent's runs inherit. When omitted, runs are auto-approved, matching scheduled automations. 'manual' makes the agent propose rather than act, and applies to every run of the agent, including scheduled and triggered ones -- such a run stops and waits for a person even though nothing yet notifies them it is waiting, so choose it deliberately for an unattended agent.
- avatar String
- A presentation token the console maps to an icon. Not an uploaded asset.
- custom
Instructions String - Instructions that shape how the agent behaves in the team's environment.
- definition
ID String - The agent definition identifier
- display
Name String - The human-readable label shown wherever the agent is displayed. Required unless name is supplied, in which case the name is used as the label too.
- enabled
Integrations List<Object> - The integrations to enable for the agent's tasks, by id. Omitted or null inherits all organization integrations; an empty list enables none.
- name String
- The agent's name: lower-case letters, digits and hyphens, at most 64 characters, unique within the organization. Optional -- when omitted it is derived from displayName, so a form that asks for one name still works. A name already taken by another agent is rejected with a 409 rather than silently suffixed. Supplying a different name on an update renames the agent, which is safe because every internal reference is by id.
- permission
Mode String - Deprecated. Custom Agent authority is controlled by roleId and this field is ignored.
- purpose String
- A one-line description of what this agent is for, shown under its name in the roster.
- role
Id String - The RBAC role id the agent's tasks assume. With Agents-as-Team-Members enabled, creation with omitted/null or empty uses the feature's read-only default; on update, omitted/null preserves the existing role and empty selects that default. A role that does not exist in the organization is rejected with a 404.
- org
Name string - The organization name
- approval
Mode string - The approval posture the agent's runs inherit. When omitted, runs are auto-approved, matching scheduled automations. 'manual' makes the agent propose rather than act, and applies to every run of the agent, including scheduled and triggered ones -- such a run stops and waits for a person even though nothing yet notifies them it is waiting, so choose it deliberately for an unattended agent.
- avatar string
- A presentation token the console maps to an icon. Not an uploaded asset.
- custom
Instructions string - Instructions that shape how the agent behaves in the team's environment.
- definition
ID string - The agent definition identifier
- display
Name string - The human-readable label shown wherever the agent is displayed. Required unless name is supplied, in which case the name is used as the label too.
- enabled
Integrations any[] - The integrations to enable for the agent's tasks, by id. Omitted or null inherits all organization integrations; an empty list enables none.
- name string
- The agent's name: lower-case letters, digits and hyphens, at most 64 characters, unique within the organization. Optional -- when omitted it is derived from displayName, so a form that asks for one name still works. A name already taken by another agent is rejected with a 409 rather than silently suffixed. Supplying a different name on an update renames the agent, which is safe because every internal reference is by id.
- permission
Mode string - Deprecated. Custom Agent authority is controlled by roleId and this field is ignored.
- purpose string
- A one-line description of what this agent is for, shown under its name in the roster.
- role
Id string - The RBAC role id the agent's tasks assume. With Agents-as-Team-Members enabled, creation with omitted/null or empty uses the feature's read-only default; on update, omitted/null preserves the existing role and empty selects that default. A role that does not exist in the organization is rejected with a 404.
- org_
name str - The organization name
- approval_
mode str - The approval posture the agent's runs inherit. When omitted, runs are auto-approved, matching scheduled automations. 'manual' makes the agent propose rather than act, and applies to every run of the agent, including scheduled and triggered ones -- such a run stops and waits for a person even though nothing yet notifies them it is waiting, so choose it deliberately for an unattended agent.
- avatar str
- A presentation token the console maps to an icon. Not an uploaded asset.
- custom_
instructions str - Instructions that shape how the agent behaves in the team's environment.
- definition_
id str - The agent definition identifier
- display_
name str - The human-readable label shown wherever the agent is displayed. Required unless name is supplied, in which case the name is used as the label too.
- enabled_
integrations Sequence[Any] - The integrations to enable for the agent's tasks, by id. Omitted or null inherits all organization integrations; an empty list enables none.
- name str
- The agent's name: lower-case letters, digits and hyphens, at most 64 characters, unique within the organization. Optional -- when omitted it is derived from displayName, so a form that asks for one name still works. A name already taken by another agent is rejected with a 409 rather than silently suffixed. Supplying a different name on an update renames the agent, which is safe because every internal reference is by id.
- permission_
mode str - Deprecated. Custom Agent authority is controlled by roleId and this field is ignored.
- purpose str
- A one-line description of what this agent is for, shown under its name in the roster.
- role_
id str - The RBAC role id the agent's tasks assume. With Agents-as-Team-Members enabled, creation with omitted/null or empty uses the feature's read-only default; on update, omitted/null preserves the existing role and empty selects that default. A role that does not exist in the organization is rejected with a 404.
- org
Name String - The organization name
- approval
Mode String - The approval posture the agent's runs inherit. When omitted, runs are auto-approved, matching scheduled automations. 'manual' makes the agent propose rather than act, and applies to every run of the agent, including scheduled and triggered ones -- such a run stops and waits for a person even though nothing yet notifies them it is waiting, so choose it deliberately for an unattended agent.
- avatar String
- A presentation token the console maps to an icon. Not an uploaded asset.
- custom
Instructions String - Instructions that shape how the agent behaves in the team's environment.
- definition
ID String - The agent definition identifier
- display
Name String - The human-readable label shown wherever the agent is displayed. Required unless name is supplied, in which case the name is used as the label too.
- enabled
Integrations List<Any> - The integrations to enable for the agent's tasks, by id. Omitted or null inherits all organization integrations; an empty list enables none.
- name String
- The agent's name: lower-case letters, digits and hyphens, at most 64 characters, unique within the organization. Optional -- when omitted it is derived from displayName, so a form that asks for one name still works. A name already taken by another agent is rejected with a 409 rather than silently suffixed. Supplying a different name on an update renames the agent, which is safe because every internal reference is by id.
- permission
Mode String - Deprecated. Custom Agent authority is controlled by roleId and this field is ignored.
- purpose String
- A one-line description of what this agent is for, shown under its name in the roster.
- role
Id String - The RBAC role id the agent's tasks assume. With Agents-as-Team-Members enabled, creation with omitted/null or empty uses the feature's read-only default; on update, omitted/null preserves the existing role and empty selects that default. A role that does not exist in the organization is rejected with a 404.
Outputs
All input properties are implicitly available as output properties. Additionally, the Definition resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Paused
At string - When the agent was paused, or null if it is not paused. A paused agent starts no new runs from any source -- console, schedule, or trigger -- until it is resumed; runs already in flight continue.
- Paused
By string - Who paused the agent, by user id. Null when the agent is not paused. Recorded by the server from the caller rather than supplied by the client.
- Paused
Reason string - Why the agent was paused. Null when it is not paused, or when no reason was given.
- Task
Counts object - Run counts for this agent, shown on its roster card.
- Id string
- The provider-assigned unique ID for this managed resource.
- Paused
At string - When the agent was paused, or null if it is not paused. A paused agent starts no new runs from any source -- console, schedule, or trigger -- until it is resumed; runs already in flight continue.
- Paused
By string - Who paused the agent, by user id. Null when the agent is not paused. Recorded by the server from the caller rather than supplied by the client.
- Paused
Reason string - Why the agent was paused. Null when it is not paused, or when no reason was given.
- Task
Counts interface{} - Run counts for this agent, shown on its roster card.
- id string
- The provider-assigned unique ID for this managed resource.
- paused_
at string - When the agent was paused, or null if it is not paused. A paused agent starts no new runs from any source -- console, schedule, or trigger -- until it is resumed; runs already in flight continue.
- paused_
by string - Who paused the agent, by user id. Null when the agent is not paused. Recorded by the server from the caller rather than supplied by the client.
- paused_
reason string - Why the agent was paused. Null when it is not paused, or when no reason was given.
- task_
counts any - Run counts for this agent, shown on its roster card.
- id String
- The provider-assigned unique ID for this managed resource.
- paused
At String - When the agent was paused, or null if it is not paused. A paused agent starts no new runs from any source -- console, schedule, or trigger -- until it is resumed; runs already in flight continue.
- paused
By String - Who paused the agent, by user id. Null when the agent is not paused. Recorded by the server from the caller rather than supplied by the client.
- paused
Reason String - Why the agent was paused. Null when it is not paused, or when no reason was given.
- task
Counts Object - Run counts for this agent, shown on its roster card.
- id string
- The provider-assigned unique ID for this managed resource.
- paused
At string - When the agent was paused, or null if it is not paused. A paused agent starts no new runs from any source -- console, schedule, or trigger -- until it is resumed; runs already in flight continue.
- paused
By string - Who paused the agent, by user id. Null when the agent is not paused. Recorded by the server from the caller rather than supplied by the client.
- paused
Reason string - Why the agent was paused. Null when it is not paused, or when no reason was given.
- task
Counts any - Run counts for this agent, shown on its roster card.
- id str
- The provider-assigned unique ID for this managed resource.
- paused_
at str - When the agent was paused, or null if it is not paused. A paused agent starts no new runs from any source -- console, schedule, or trigger -- until it is resumed; runs already in flight continue.
- paused_
by str - Who paused the agent, by user id. Null when the agent is not paused. Recorded by the server from the caller rather than supplied by the client.
- paused_
reason str - Why the agent was paused. Null when it is not paused, or when no reason was given.
- task_
counts Any - Run counts for this agent, shown on its roster card.
- id String
- The provider-assigned unique ID for this managed resource.
- paused
At String - When the agent was paused, or null if it is not paused. A paused agent starts no new runs from any source -- console, schedule, or trigger -- until it is resumed; runs already in flight continue.
- paused
By String - Who paused the agent, by user id. Null when the agent is not paused. Recorded by the server from the caller rather than supplied by the client.
- paused
Reason String - Why the agent was paused. Null when it is not paused, or when no reason was given.
- task
Counts Any - Run counts for this agent, shown on its roster card.
Package Details
- Repository
- pulumiservice pulumi/pulumi-pulumiservice
- License
- Apache-2.0
published on Tuesday, Nov 3, 2026 by Pulumi