1. Registry
  2. Packages
  3. DigitalOcean Provider
  4. API Docs
  5. AgentPlatformAgentKnowledgeBaseAttachment
Viewing docs for DigitalOcean v4.84.1
published on Tuesday, Oct 13, 2026 by Pulumi
digitalocean logo
Viewing docs for DigitalOcean v4.84.1
published on Tuesday, Oct 13, 2026 by Pulumi

    Create AgentPlatformAgentKnowledgeBaseAttachment Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new AgentPlatformAgentKnowledgeBaseAttachment(name: string, args: AgentPlatformAgentKnowledgeBaseAttachmentArgs, opts?: CustomResourceOptions);
    @overload
    def AgentPlatformAgentKnowledgeBaseAttachment(resource_name: str,
                                                  args: AgentPlatformAgentKnowledgeBaseAttachmentArgs,
                                                  opts: Optional[ResourceOptions] = None)
    
    @overload
    def AgentPlatformAgentKnowledgeBaseAttachment(resource_name: str,
                                                  opts: Optional[ResourceOptions] = None,
                                                  agent_uuid: Optional[str] = None,
                                                  knowledge_base_uuid: Optional[str] = None)
    func NewAgentPlatformAgentKnowledgeBaseAttachment(ctx *Context, name string, args AgentPlatformAgentKnowledgeBaseAttachmentArgs, opts ...ResourceOption) (*AgentPlatformAgentKnowledgeBaseAttachment, error)
    public AgentPlatformAgentKnowledgeBaseAttachment(string name, AgentPlatformAgentKnowledgeBaseAttachmentArgs args, CustomResourceOptions? opts = null)
    public AgentPlatformAgentKnowledgeBaseAttachment(String name, AgentPlatformAgentKnowledgeBaseAttachmentArgs args)
    public AgentPlatformAgentKnowledgeBaseAttachment(String name, AgentPlatformAgentKnowledgeBaseAttachmentArgs args, CustomResourceOptions options)
    
    type: digitalocean:AgentPlatformAgentKnowledgeBaseAttachment
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "digitalocean_agent_platform_agent_knowledge_base_attachment" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args AgentPlatformAgentKnowledgeBaseAttachmentArgs
    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 AgentPlatformAgentKnowledgeBaseAttachmentArgs
    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 AgentPlatformAgentKnowledgeBaseAttachmentArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AgentPlatformAgentKnowledgeBaseAttachmentArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AgentPlatformAgentKnowledgeBaseAttachmentArgs
    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 agentPlatformAgentKnowledgeBaseAttachmentResource = new DigitalOcean.AgentPlatformAgentKnowledgeBaseAttachment("agentPlatformAgentKnowledgeBaseAttachmentResource", new()
    {
        AgentUuid = "string",
        KnowledgeBaseUuid = "string",
    });
    
    example, err := digitalocean.NewAgentPlatformAgentKnowledgeBaseAttachment(ctx, "agentPlatformAgentKnowledgeBaseAttachmentResource", &digitalocean.AgentPlatformAgentKnowledgeBaseAttachmentArgs{
    	AgentUuid:         pulumi.String("string"),
    	KnowledgeBaseUuid: pulumi.String("string"),
    })
    
    resource "digitalocean_agent_platform_agent_knowledge_base_attachment" "agentPlatformAgentKnowledgeBaseAttachmentResource" {
      lifecycle {
        create_before_destroy = true
      }
      agent_uuid          = "string"
      knowledge_base_uuid = "string"
    }
    
    var agentPlatformAgentKnowledgeBaseAttachmentResource = new AgentPlatformAgentKnowledgeBaseAttachment("agentPlatformAgentKnowledgeBaseAttachmentResource", AgentPlatformAgentKnowledgeBaseAttachmentArgs.builder()
        .agentUuid("string")
        .knowledgeBaseUuid("string")
        .build());
    
    agent_platform_agent_knowledge_base_attachment_resource = digitalocean.AgentPlatformAgentKnowledgeBaseAttachment("agentPlatformAgentKnowledgeBaseAttachmentResource",
        agent_uuid="string",
        knowledge_base_uuid="string")
    
    const agentPlatformAgentKnowledgeBaseAttachmentResource = new digitalocean.AgentPlatformAgentKnowledgeBaseAttachment("agentPlatformAgentKnowledgeBaseAttachmentResource", {
        agentUuid: "string",
        knowledgeBaseUuid: "string",
    });
    
    type: digitalocean:AgentPlatformAgentKnowledgeBaseAttachment
    properties:
        agentUuid: string
        knowledgeBaseUuid: string
    

    AgentPlatformAgentKnowledgeBaseAttachment 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 AgentPlatformAgentKnowledgeBaseAttachment resource accepts the following input properties:

    AgentUuid string
    A unique identifier for an agent.
    KnowledgeBaseUuid string
    A unique identifier for a knowledge base.
    AgentUuid string
    A unique identifier for an agent.
    KnowledgeBaseUuid string
    A unique identifier for a knowledge base.
    agent_uuid string
    A unique identifier for an agent.
    knowledge_base_uuid string
    A unique identifier for a knowledge base.
    agentUuid String
    A unique identifier for an agent.
    knowledgeBaseUuid String
    A unique identifier for a knowledge base.
    agentUuid string
    A unique identifier for an agent.
    knowledgeBaseUuid string
    A unique identifier for a knowledge base.
    agent_uuid str
    A unique identifier for an agent.
    knowledge_base_uuid str
    A unique identifier for a knowledge base.
    agentUuid String
    A unique identifier for an agent.
    knowledgeBaseUuid String
    A unique identifier for a knowledge base.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the AgentPlatformAgentKnowledgeBaseAttachment 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 AgentPlatformAgentKnowledgeBaseAttachment Resource

    Get an existing AgentPlatformAgentKnowledgeBaseAttachment 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?: AgentPlatformAgentKnowledgeBaseAttachmentState, opts?: CustomResourceOptions): AgentPlatformAgentKnowledgeBaseAttachment
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            agent_uuid: Optional[str] = None,
            knowledge_base_uuid: Optional[str] = None) -> AgentPlatformAgentKnowledgeBaseAttachment
    func GetAgentPlatformAgentKnowledgeBaseAttachment(ctx *Context, name string, id IDInput, state *AgentPlatformAgentKnowledgeBaseAttachmentState, opts ...ResourceOption) (*AgentPlatformAgentKnowledgeBaseAttachment, error)
    public static AgentPlatformAgentKnowledgeBaseAttachment Get(string name, Input<string> id, AgentPlatformAgentKnowledgeBaseAttachmentState? state, CustomResourceOptions? opts = null)
    public static AgentPlatformAgentKnowledgeBaseAttachment get(String name, Output<String> id, AgentPlatformAgentKnowledgeBaseAttachmentState state, CustomResourceOptions options)
    resources:  _:    type: digitalocean:AgentPlatformAgentKnowledgeBaseAttachment    get:      id: ${id}
    import {
      to = digitalocean_agent_platform_agent_knowledge_base_attachment.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.
    The following state arguments are supported:
    AgentUuid string
    A unique identifier for an agent.
    KnowledgeBaseUuid string
    A unique identifier for a knowledge base.
    AgentUuid string
    A unique identifier for an agent.
    KnowledgeBaseUuid string
    A unique identifier for a knowledge base.
    agent_uuid string
    A unique identifier for an agent.
    knowledge_base_uuid string
    A unique identifier for a knowledge base.
    agentUuid String
    A unique identifier for an agent.
    knowledgeBaseUuid String
    A unique identifier for a knowledge base.
    agentUuid string
    A unique identifier for an agent.
    knowledgeBaseUuid string
    A unique identifier for a knowledge base.
    agent_uuid str
    A unique identifier for an agent.
    knowledge_base_uuid str
    A unique identifier for a knowledge base.
    agentUuid String
    A unique identifier for an agent.
    knowledgeBaseUuid String
    A unique identifier for a knowledge base.

    Package Details

    Repository
    DigitalOcean pulumi/pulumi-digitalocean
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the digitalocean Terraform Provider.
    digitalocean logo
    Viewing docs for DigitalOcean v4.84.1
    published on Tuesday, Oct 13, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial