coder.AiTask
Explore with Pulumi AI
Use this resource to define Coder tasks.
Create AiTask Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AiTask(name: string, args: AiTaskArgs, opts?: CustomResourceOptions);
@overload
def AiTask(resource_name: str,
args: AiTaskArgs,
opts: Optional[ResourceOptions] = None)
@overload
def AiTask(resource_name: str,
opts: Optional[ResourceOptions] = None,
sidebar_app: Optional[AiTaskSidebarAppArgs] = None)
func NewAiTask(ctx *Context, name string, args AiTaskArgs, opts ...ResourceOption) (*AiTask, error)
public AiTask(string name, AiTaskArgs args, CustomResourceOptions? opts = null)
public AiTask(String name, AiTaskArgs args)
public AiTask(String name, AiTaskArgs args, CustomResourceOptions options)
type: coder:AiTask
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args AiTaskArgs
- 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 AiTaskArgs
- 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 AiTaskArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AiTaskArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AiTaskArgs
- 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 aiTaskResource = new Coder.AiTask("aiTaskResource", new()
{
SidebarApp = new Coder.Inputs.AiTaskSidebarAppArgs
{
Id = "string",
},
});
example, err := coder.NewAiTask(ctx, "aiTaskResource", &coder.AiTaskArgs{
SidebarApp: &coder.AiTaskSidebarAppArgs{
Id: pulumi.String("string"),
},
})
var aiTaskResource = new AiTask("aiTaskResource", AiTaskArgs.builder()
.sidebarApp(AiTaskSidebarAppArgs.builder()
.id("string")
.build())
.build());
ai_task_resource = coder.AiTask("aiTaskResource", sidebar_app={
"id": "string",
})
const aiTaskResource = new coder.AiTask("aiTaskResource", {sidebarApp: {
id: "string",
}});
type: coder:AiTask
properties:
sidebarApp:
id: string
AiTask 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 AiTask resource accepts the following input properties:
- Ai
Task Sidebar App - The coder*app to display in the sidebar. Usually a chat interface with the AI agent running in the workspace, like https://github.com/coder/agentapi.
- Ai
Task Sidebar App Args - The coder*app to display in the sidebar. Usually a chat interface with the AI agent running in the workspace, like https://github.com/coder/agentapi.
- Ai
Task Sidebar App - The coder*app to display in the sidebar. Usually a chat interface with the AI agent running in the workspace, like https://github.com/coder/agentapi.
- Ai
Task Sidebar App - The coder*app to display in the sidebar. Usually a chat interface with the AI agent running in the workspace, like https://github.com/coder/agentapi.
- Ai
Task Sidebar App Args - The coder*app to display in the sidebar. Usually a chat interface with the AI agent running in the workspace, like https://github.com/coder/agentapi.
- Property Map
- The coder*app to display in the sidebar. Usually a chat interface with the AI agent running in the workspace, like https://github.com/coder/agentapi.
Outputs
All input properties are implicitly available as output properties. Additionally, the AiTask 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 str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing AiTask Resource
Get an existing AiTask 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?: AiTaskState, opts?: CustomResourceOptions): AiTask
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
sidebar_app: Optional[AiTaskSidebarAppArgs] = None) -> AiTask
func GetAiTask(ctx *Context, name string, id IDInput, state *AiTaskState, opts ...ResourceOption) (*AiTask, error)
public static AiTask Get(string name, Input<string> id, AiTaskState? state, CustomResourceOptions? opts = null)
public static AiTask get(String name, Output<String> id, AiTaskState state, CustomResourceOptions options)
resources: _: type: coder:AiTask get: 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.
- Ai
Task Sidebar App - The coder*app to display in the sidebar. Usually a chat interface with the AI agent running in the workspace, like https://github.com/coder/agentapi.
- Ai
Task Sidebar App Args - The coder*app to display in the sidebar. Usually a chat interface with the AI agent running in the workspace, like https://github.com/coder/agentapi.
- Ai
Task Sidebar App - The coder*app to display in the sidebar. Usually a chat interface with the AI agent running in the workspace, like https://github.com/coder/agentapi.
- Ai
Task Sidebar App - The coder*app to display in the sidebar. Usually a chat interface with the AI agent running in the workspace, like https://github.com/coder/agentapi.
- Ai
Task Sidebar App Args - The coder*app to display in the sidebar. Usually a chat interface with the AI agent running in the workspace, like https://github.com/coder/agentapi.
- Property Map
- The coder*app to display in the sidebar. Usually a chat interface with the AI agent running in the workspace, like https://github.com/coder/agentapi.
Supporting Types
AiTaskSidebarApp, AiTaskSidebarAppArgs
- Id string
- A reference to an existing
coder.App
resource in your template.
- Id string
- A reference to an existing
coder.App
resource in your template.
- id String
- A reference to an existing
coder.App
resource in your template.
- id string
- A reference to an existing
coder.App
resource in your template.
- id str
- A reference to an existing
coder.App
resource in your template.
- id String
- A reference to an existing
coder.App
resource in your template.
Package Details
- Repository
- coder coder/terraform-provider-coder
- License
- Notes
- This Pulumi package is based on the
coder
Terraform Provider.