published on Thursday, Jul 16, 2026 by Pulumi
published on Thursday, Jul 16, 2026 by Pulumi
Import
This resource does not currently support
pulumi import.
Create AiSearchNamespace Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AiSearchNamespace(name: string, args: AiSearchNamespaceArgs, opts?: CustomResourceOptions);@overload
def AiSearchNamespace(resource_name: str,
args: AiSearchNamespaceArgs,
opts: Optional[ResourceOptions] = None)
@overload
def AiSearchNamespace(resource_name: str,
opts: Optional[ResourceOptions] = None,
account_id: Optional[str] = None,
name: Optional[str] = None,
description: Optional[str] = None)func NewAiSearchNamespace(ctx *Context, name string, args AiSearchNamespaceArgs, opts ...ResourceOption) (*AiSearchNamespace, error)public AiSearchNamespace(string name, AiSearchNamespaceArgs args, CustomResourceOptions? opts = null)
public AiSearchNamespace(String name, AiSearchNamespaceArgs args)
public AiSearchNamespace(String name, AiSearchNamespaceArgs args, CustomResourceOptions options)
type: cloudflare:AiSearchNamespace
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "cloudflare_ai_search_namespace" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args AiSearchNamespaceArgs
- 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 AiSearchNamespaceArgs
- 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 AiSearchNamespaceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AiSearchNamespaceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AiSearchNamespaceArgs
- 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 aiSearchNamespaceResource = new Cloudflare.AiSearchNamespace("aiSearchNamespaceResource", new()
{
AccountId = "string",
Name = "string",
Description = "string",
});
example, err := cloudflare.NewAiSearchNamespace(ctx, "aiSearchNamespaceResource", &cloudflare.AiSearchNamespaceArgs{
AccountId: pulumi.String("string"),
Name: pulumi.String("string"),
Description: pulumi.String("string"),
})
resource "cloudflare_ai_search_namespace" "aiSearchNamespaceResource" {
lifecycle {
create_before_destroy = true
}
account_id = "string"
name = "string"
description = "string"
}
var aiSearchNamespaceResource = new AiSearchNamespace("aiSearchNamespaceResource", AiSearchNamespaceArgs.builder()
.accountId("string")
.name("string")
.description("string")
.build());
ai_search_namespace_resource = cloudflare.AiSearchNamespace("aiSearchNamespaceResource",
account_id="string",
name="string",
description="string")
const aiSearchNamespaceResource = new cloudflare.AiSearchNamespace("aiSearchNamespaceResource", {
accountId: "string",
name: "string",
description: "string",
});
type: cloudflare:AiSearchNamespace
properties:
accountId: string
description: string
name: string
AiSearchNamespace 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 AiSearchNamespace resource accepts the following input properties:
- Account
Id string - Name string
- Description string
- Optional description for the namespace. Max 256 characters.
- Account
Id string - Name string
- Description string
- Optional description for the namespace. Max 256 characters.
- account_
id string - name string
- description string
- Optional description for the namespace. Max 256 characters.
- account
Id String - name String
- description String
- Optional description for the namespace. Max 256 characters.
- account
Id string - name string
- description string
- Optional description for the namespace. Max 256 characters.
- account_
id str - name str
- description str
- Optional description for the namespace. Max 256 characters.
- account
Id String - name String
- description String
- Optional description for the namespace. Max 256 characters.
Outputs
All input properties are implicitly available as output properties. Additionally, the AiSearchNamespace resource produces the following output properties:
- created_
at string - id string
- The provider-assigned unique ID for this managed resource.
- created_
at str - id str
- The provider-assigned unique ID for this managed resource.
Look up Existing AiSearchNamespace Resource
Get an existing AiSearchNamespace 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?: AiSearchNamespaceState, opts?: CustomResourceOptions): AiSearchNamespace@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
account_id: Optional[str] = None,
created_at: Optional[str] = None,
description: Optional[str] = None,
name: Optional[str] = None) -> AiSearchNamespacefunc GetAiSearchNamespace(ctx *Context, name string, id IDInput, state *AiSearchNamespaceState, opts ...ResourceOption) (*AiSearchNamespace, error)public static AiSearchNamespace Get(string name, Input<string> id, AiSearchNamespaceState? state, CustomResourceOptions? opts = null)public static AiSearchNamespace get(String name, Output<String> id, AiSearchNamespaceState state, CustomResourceOptions options)resources: _: type: cloudflare:AiSearchNamespace get: id: ${id}import {
to = cloudflare_ai_search_namespace.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.
- Account
Id string - Created
At string - Description string
- Optional description for the namespace. Max 256 characters.
- Name string
- Account
Id string - Created
At string - Description string
- Optional description for the namespace. Max 256 characters.
- Name string
- account_
id string - created_
at string - description string
- Optional description for the namespace. Max 256 characters.
- name string
- account
Id String - created
At String - description String
- Optional description for the namespace. Max 256 characters.
- name String
- account
Id string - created
At string - description string
- Optional description for the namespace. Max 256 characters.
- name string
- account_
id str - created_
at str - description str
- Optional description for the namespace. Max 256 characters.
- name str
- account
Id String - created
At String - description String
- Optional description for the namespace. Max 256 characters.
- name String
Package Details
- Repository
- Cloudflare pulumi/pulumi-cloudflare
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
cloudflareTerraform Provider.
published on Thursday, Jul 16, 2026 by Pulumi