Snowflake v0.59.0 published on Friday, Sep 20, 2024 by Pulumi
snowflake.CortexSearchService
Explore with Pulumi AI
Import
$ pulumi import snowflake:index/cortexSearchService:CortexSearchService example 'dbName|schemaName|fileFormatName'
Create CortexSearchService Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CortexSearchService(name: string, args: CortexSearchServiceArgs, opts?: CustomResourceOptions);
@overload
def CortexSearchService(resource_name: str,
args: CortexSearchServiceArgs,
opts: Optional[ResourceOptions] = None)
@overload
def CortexSearchService(resource_name: str,
opts: Optional[ResourceOptions] = None,
database: Optional[str] = None,
on: Optional[str] = None,
query: Optional[str] = None,
schema: Optional[str] = None,
target_lag: Optional[str] = None,
warehouse: Optional[str] = None,
attributes: Optional[Sequence[str]] = None,
comment: Optional[str] = None,
name: Optional[str] = None)
func NewCortexSearchService(ctx *Context, name string, args CortexSearchServiceArgs, opts ...ResourceOption) (*CortexSearchService, error)
public CortexSearchService(string name, CortexSearchServiceArgs args, CustomResourceOptions? opts = null)
public CortexSearchService(String name, CortexSearchServiceArgs args)
public CortexSearchService(String name, CortexSearchServiceArgs args, CustomResourceOptions options)
type: snowflake:CortexSearchService
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 CortexSearchServiceArgs
- 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 CortexSearchServiceArgs
- 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 CortexSearchServiceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CortexSearchServiceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CortexSearchServiceArgs
- 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 cortexSearchServiceResource = new Snowflake.CortexSearchService("cortexSearchServiceResource", new()
{
Database = "string",
On = "string",
Query = "string",
Schema = "string",
TargetLag = "string",
Warehouse = "string",
Attributes = new[]
{
"string",
},
Comment = "string",
Name = "string",
});
example, err := snowflake.NewCortexSearchService(ctx, "cortexSearchServiceResource", &snowflake.CortexSearchServiceArgs{
Database: pulumi.String("string"),
On: pulumi.String("string"),
Query: pulumi.String("string"),
Schema: pulumi.String("string"),
TargetLag: pulumi.String("string"),
Warehouse: pulumi.String("string"),
Attributes: pulumi.StringArray{
pulumi.String("string"),
},
Comment: pulumi.String("string"),
Name: pulumi.String("string"),
})
var cortexSearchServiceResource = new CortexSearchService("cortexSearchServiceResource", CortexSearchServiceArgs.builder()
.database("string")
.on("string")
.query("string")
.schema("string")
.targetLag("string")
.warehouse("string")
.attributes("string")
.comment("string")
.name("string")
.build());
cortex_search_service_resource = snowflake.CortexSearchService("cortexSearchServiceResource",
database="string",
on="string",
query="string",
schema="string",
target_lag="string",
warehouse="string",
attributes=["string"],
comment="string",
name="string")
const cortexSearchServiceResource = new snowflake.CortexSearchService("cortexSearchServiceResource", {
database: "string",
on: "string",
query: "string",
schema: "string",
targetLag: "string",
warehouse: "string",
attributes: ["string"],
comment: "string",
name: "string",
});
type: snowflake:CortexSearchService
properties:
attributes:
- string
comment: string
database: string
name: string
"on": string
query: string
schema: string
targetLag: string
warehouse: string
CortexSearchService Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The CortexSearchService resource accepts the following input properties:
- Database string
- The database in which to create the Cortex search service.
- On string
- Specifies the column to use as the search column for the Cortex search service; must be a text value.
- Query string
- Specifies the query to use to populate the Cortex search service.
- Schema string
- The schema in which to create the Cortex search service.
- Target
Lag string - Specifies the maximum target lag time for the Cortex search service.
- Warehouse string
- The warehouse in which to create the Cortex search service.
- Attributes List<string>
- Specifies the list of columns in the base table to enable filtering on when issuing queries to the service.
- Comment string
- Specifies a comment for the Cortex search service.
- Name string
- Specifies the name of the Cortex search service. The name must be unique for the schema in which the service is created.
- Database string
- The database in which to create the Cortex search service.
- On string
- Specifies the column to use as the search column for the Cortex search service; must be a text value.
- Query string
- Specifies the query to use to populate the Cortex search service.
- Schema string
- The schema in which to create the Cortex search service.
- Target
Lag string - Specifies the maximum target lag time for the Cortex search service.
- Warehouse string
- The warehouse in which to create the Cortex search service.
- Attributes []string
- Specifies the list of columns in the base table to enable filtering on when issuing queries to the service.
- Comment string
- Specifies a comment for the Cortex search service.
- Name string
- Specifies the name of the Cortex search service. The name must be unique for the schema in which the service is created.
- database String
- The database in which to create the Cortex search service.
- on String
- Specifies the column to use as the search column for the Cortex search service; must be a text value.
- query String
- Specifies the query to use to populate the Cortex search service.
- schema String
- The schema in which to create the Cortex search service.
- target
Lag String - Specifies the maximum target lag time for the Cortex search service.
- warehouse String
- The warehouse in which to create the Cortex search service.
- attributes List<String>
- Specifies the list of columns in the base table to enable filtering on when issuing queries to the service.
- comment String
- Specifies a comment for the Cortex search service.
- name String
- Specifies the name of the Cortex search service. The name must be unique for the schema in which the service is created.
- database string
- The database in which to create the Cortex search service.
- on string
- Specifies the column to use as the search column for the Cortex search service; must be a text value.
- query string
- Specifies the query to use to populate the Cortex search service.
- schema string
- The schema in which to create the Cortex search service.
- target
Lag string - Specifies the maximum target lag time for the Cortex search service.
- warehouse string
- The warehouse in which to create the Cortex search service.
- attributes string[]
- Specifies the list of columns in the base table to enable filtering on when issuing queries to the service.
- comment string
- Specifies a comment for the Cortex search service.
- name string
- Specifies the name of the Cortex search service. The name must be unique for the schema in which the service is created.
- database str
- The database in which to create the Cortex search service.
- on str
- Specifies the column to use as the search column for the Cortex search service; must be a text value.
- query str
- Specifies the query to use to populate the Cortex search service.
- schema str
- The schema in which to create the Cortex search service.
- target_
lag str - Specifies the maximum target lag time for the Cortex search service.
- warehouse str
- The warehouse in which to create the Cortex search service.
- attributes Sequence[str]
- Specifies the list of columns in the base table to enable filtering on when issuing queries to the service.
- comment str
- Specifies a comment for the Cortex search service.
- name str
- Specifies the name of the Cortex search service. The name must be unique for the schema in which the service is created.
- database String
- The database in which to create the Cortex search service.
- on String
- Specifies the column to use as the search column for the Cortex search service; must be a text value.
- query String
- Specifies the query to use to populate the Cortex search service.
- schema String
- The schema in which to create the Cortex search service.
- target
Lag String - Specifies the maximum target lag time for the Cortex search service.
- warehouse String
- The warehouse in which to create the Cortex search service.
- attributes List<String>
- Specifies the list of columns in the base table to enable filtering on when issuing queries to the service.
- comment String
- Specifies a comment for the Cortex search service.
- name String
- Specifies the name of the Cortex search service. The name must be unique for the schema in which the service is created.
Outputs
All input properties are implicitly available as output properties. Additionally, the CortexSearchService resource produces the following output properties:
- Created
On string - Creation date for the given Cortex search service.
- Fully
Qualified stringName - Fully qualified name of the resource. For more information, see object name resolution.
- Id string
- The provider-assigned unique ID for this managed resource.
- Created
On string - Creation date for the given Cortex search service.
- Fully
Qualified stringName - Fully qualified name of the resource. For more information, see object name resolution.
- Id string
- The provider-assigned unique ID for this managed resource.
- created
On String - Creation date for the given Cortex search service.
- fully
Qualified StringName - Fully qualified name of the resource. For more information, see object name resolution.
- id String
- The provider-assigned unique ID for this managed resource.
- created
On string - Creation date for the given Cortex search service.
- fully
Qualified stringName - Fully qualified name of the resource. For more information, see object name resolution.
- id string
- The provider-assigned unique ID for this managed resource.
- created_
on str - Creation date for the given Cortex search service.
- fully_
qualified_ strname - Fully qualified name of the resource. For more information, see object name resolution.
- id str
- The provider-assigned unique ID for this managed resource.
- created
On String - Creation date for the given Cortex search service.
- fully
Qualified StringName - Fully qualified name of the resource. For more information, see object name resolution.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing CortexSearchService Resource
Get an existing CortexSearchService 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?: CortexSearchServiceState, opts?: CustomResourceOptions): CortexSearchService
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
attributes: Optional[Sequence[str]] = None,
comment: Optional[str] = None,
created_on: Optional[str] = None,
database: Optional[str] = None,
fully_qualified_name: Optional[str] = None,
name: Optional[str] = None,
on: Optional[str] = None,
query: Optional[str] = None,
schema: Optional[str] = None,
target_lag: Optional[str] = None,
warehouse: Optional[str] = None) -> CortexSearchService
func GetCortexSearchService(ctx *Context, name string, id IDInput, state *CortexSearchServiceState, opts ...ResourceOption) (*CortexSearchService, error)
public static CortexSearchService Get(string name, Input<string> id, CortexSearchServiceState? state, CustomResourceOptions? opts = null)
public static CortexSearchService get(String name, Output<String> id, CortexSearchServiceState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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.
- Attributes List<string>
- Specifies the list of columns in the base table to enable filtering on when issuing queries to the service.
- Comment string
- Specifies a comment for the Cortex search service.
- Created
On string - Creation date for the given Cortex search service.
- Database string
- The database in which to create the Cortex search service.
- Fully
Qualified stringName - Fully qualified name of the resource. For more information, see object name resolution.
- Name string
- Specifies the name of the Cortex search service. The name must be unique for the schema in which the service is created.
- On string
- Specifies the column to use as the search column for the Cortex search service; must be a text value.
- Query string
- Specifies the query to use to populate the Cortex search service.
- Schema string
- The schema in which to create the Cortex search service.
- Target
Lag string - Specifies the maximum target lag time for the Cortex search service.
- Warehouse string
- The warehouse in which to create the Cortex search service.
- Attributes []string
- Specifies the list of columns in the base table to enable filtering on when issuing queries to the service.
- Comment string
- Specifies a comment for the Cortex search service.
- Created
On string - Creation date for the given Cortex search service.
- Database string
- The database in which to create the Cortex search service.
- Fully
Qualified stringName - Fully qualified name of the resource. For more information, see object name resolution.
- Name string
- Specifies the name of the Cortex search service. The name must be unique for the schema in which the service is created.
- On string
- Specifies the column to use as the search column for the Cortex search service; must be a text value.
- Query string
- Specifies the query to use to populate the Cortex search service.
- Schema string
- The schema in which to create the Cortex search service.
- Target
Lag string - Specifies the maximum target lag time for the Cortex search service.
- Warehouse string
- The warehouse in which to create the Cortex search service.
- attributes List<String>
- Specifies the list of columns in the base table to enable filtering on when issuing queries to the service.
- comment String
- Specifies a comment for the Cortex search service.
- created
On String - Creation date for the given Cortex search service.
- database String
- The database in which to create the Cortex search service.
- fully
Qualified StringName - Fully qualified name of the resource. For more information, see object name resolution.
- name String
- Specifies the name of the Cortex search service. The name must be unique for the schema in which the service is created.
- on String
- Specifies the column to use as the search column for the Cortex search service; must be a text value.
- query String
- Specifies the query to use to populate the Cortex search service.
- schema String
- The schema in which to create the Cortex search service.
- target
Lag String - Specifies the maximum target lag time for the Cortex search service.
- warehouse String
- The warehouse in which to create the Cortex search service.
- attributes string[]
- Specifies the list of columns in the base table to enable filtering on when issuing queries to the service.
- comment string
- Specifies a comment for the Cortex search service.
- created
On string - Creation date for the given Cortex search service.
- database string
- The database in which to create the Cortex search service.
- fully
Qualified stringName - Fully qualified name of the resource. For more information, see object name resolution.
- name string
- Specifies the name of the Cortex search service. The name must be unique for the schema in which the service is created.
- on string
- Specifies the column to use as the search column for the Cortex search service; must be a text value.
- query string
- Specifies the query to use to populate the Cortex search service.
- schema string
- The schema in which to create the Cortex search service.
- target
Lag string - Specifies the maximum target lag time for the Cortex search service.
- warehouse string
- The warehouse in which to create the Cortex search service.
- attributes Sequence[str]
- Specifies the list of columns in the base table to enable filtering on when issuing queries to the service.
- comment str
- Specifies a comment for the Cortex search service.
- created_
on str - Creation date for the given Cortex search service.
- database str
- The database in which to create the Cortex search service.
- fully_
qualified_ strname - Fully qualified name of the resource. For more information, see object name resolution.
- name str
- Specifies the name of the Cortex search service. The name must be unique for the schema in which the service is created.
- on str
- Specifies the column to use as the search column for the Cortex search service; must be a text value.
- query str
- Specifies the query to use to populate the Cortex search service.
- schema str
- The schema in which to create the Cortex search service.
- target_
lag str - Specifies the maximum target lag time for the Cortex search service.
- warehouse str
- The warehouse in which to create the Cortex search service.
- attributes List<String>
- Specifies the list of columns in the base table to enable filtering on when issuing queries to the service.
- comment String
- Specifies a comment for the Cortex search service.
- created
On String - Creation date for the given Cortex search service.
- database String
- The database in which to create the Cortex search service.
- fully
Qualified StringName - Fully qualified name of the resource. For more information, see object name resolution.
- name String
- Specifies the name of the Cortex search service. The name must be unique for the schema in which the service is created.
- on String
- Specifies the column to use as the search column for the Cortex search service; must be a text value.
- query String
- Specifies the query to use to populate the Cortex search service.
- schema String
- The schema in which to create the Cortex search service.
- target
Lag String - Specifies the maximum target lag time for the Cortex search service.
- warehouse String
- The warehouse in which to create the Cortex search service.
Package Details
- Repository
- Snowflake pulumi/pulumi-snowflake
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
snowflake
Terraform Provider.