Try AWS Native preview for resources not in the classic version.
aws.cloudsearch.Domain
Explore with Pulumi AI
Try AWS Native preview for resources not in the classic version.
Provides an CloudSearch domain resource.
The provider waits for the domain to become Active
when applying a configuration.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.cloudsearch.Domain("example", {
name: "example-domain",
scalingParameters: {
desiredInstanceType: "search.medium",
},
indexFields: [
{
name: "headline",
type: "text",
search: true,
"return": true,
sort: true,
highlight: false,
analysisScheme: "_en_default_",
},
{
name: "price",
type: "double",
search: true,
facet: true,
"return": true,
sort: true,
sourceFields: "headline",
},
],
});
import pulumi
import pulumi_aws as aws
example = aws.cloudsearch.Domain("example",
name="example-domain",
scaling_parameters={
"desiredInstanceType": "search.medium",
},
index_fields=[
{
"name": "headline",
"type": "text",
"search": True,
"return": True,
"sort": True,
"highlight": False,
"analysisScheme": "_en_default_",
},
{
"name": "price",
"type": "double",
"search": True,
"facet": True,
"return": True,
"sort": True,
"sourceFields": "headline",
},
])
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/cloudsearch"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cloudsearch.NewDomain(ctx, "example", &cloudsearch.DomainArgs{
Name: pulumi.String("example-domain"),
ScalingParameters: &cloudsearch.DomainScalingParametersArgs{
DesiredInstanceType: pulumi.String("search.medium"),
},
IndexFields: cloudsearch.DomainIndexFieldArray{
&cloudsearch.DomainIndexFieldArgs{
Name: pulumi.String("headline"),
Type: pulumi.String("text"),
Search: pulumi.Bool(true),
Return: pulumi.Bool(true),
Sort: pulumi.Bool(true),
Highlight: pulumi.Bool(false),
AnalysisScheme: pulumi.String("_en_default_"),
},
&cloudsearch.DomainIndexFieldArgs{
Name: pulumi.String("price"),
Type: pulumi.String("double"),
Search: pulumi.Bool(true),
Facet: pulumi.Bool(true),
Return: pulumi.Bool(true),
Sort: pulumi.Bool(true),
SourceFields: pulumi.String("headline"),
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.CloudSearch.Domain("example", new()
{
Name = "example-domain",
ScalingParameters = new Aws.CloudSearch.Inputs.DomainScalingParametersArgs
{
DesiredInstanceType = "search.medium",
},
IndexFields = new[]
{
new Aws.CloudSearch.Inputs.DomainIndexFieldArgs
{
Name = "headline",
Type = "text",
Search = true,
Return = true,
Sort = true,
Highlight = false,
AnalysisScheme = "_en_default_",
},
new Aws.CloudSearch.Inputs.DomainIndexFieldArgs
{
Name = "price",
Type = "double",
Search = true,
Facet = true,
Return = true,
Sort = true,
SourceFields = "headline",
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.cloudsearch.Domain;
import com.pulumi.aws.cloudsearch.DomainArgs;
import com.pulumi.aws.cloudsearch.inputs.DomainScalingParametersArgs;
import com.pulumi.aws.cloudsearch.inputs.DomainIndexFieldArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new Domain("example", DomainArgs.builder()
.name("example-domain")
.scalingParameters(DomainScalingParametersArgs.builder()
.desiredInstanceType("search.medium")
.build())
.indexFields(
DomainIndexFieldArgs.builder()
.name("headline")
.type("text")
.search(true)
.return_(true)
.sort(true)
.highlight(false)
.analysisScheme("_en_default_")
.build(),
DomainIndexFieldArgs.builder()
.name("price")
.type("double")
.search(true)
.facet(true)
.return_(true)
.sort(true)
.sourceFields("headline")
.build())
.build());
}
}
resources:
example:
type: aws:cloudsearch:Domain
properties:
name: example-domain
scalingParameters:
desiredInstanceType: search.medium
indexFields:
- name: headline
type: text
search: true
return: true
sort: true
highlight: false
analysisScheme: _en_default_
- name: price
type: double
search: true
facet: true
return: true
sort: true
sourceFields: headline
Create Domain Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Domain(name: string, args?: DomainArgs, opts?: CustomResourceOptions);
@overload
def Domain(resource_name: str,
args: Optional[DomainArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def Domain(resource_name: str,
opts: Optional[ResourceOptions] = None,
endpoint_options: Optional[DomainEndpointOptionsArgs] = None,
index_fields: Optional[Sequence[DomainIndexFieldArgs]] = None,
multi_az: Optional[bool] = None,
name: Optional[str] = None,
scaling_parameters: Optional[DomainScalingParametersArgs] = None)
func NewDomain(ctx *Context, name string, args *DomainArgs, opts ...ResourceOption) (*Domain, error)
public Domain(string name, DomainArgs? args = null, CustomResourceOptions? opts = null)
public Domain(String name, DomainArgs args)
public Domain(String name, DomainArgs args, CustomResourceOptions options)
type: aws:cloudsearch:Domain
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 DomainArgs
- 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 DomainArgs
- 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 DomainArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DomainArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DomainArgs
- 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 domainResource = new Aws.CloudSearch.Domain("domainResource", new()
{
EndpointOptions = new Aws.CloudSearch.Inputs.DomainEndpointOptionsArgs
{
EnforceHttps = false,
TlsSecurityPolicy = "string",
},
IndexFields = new[]
{
new Aws.CloudSearch.Inputs.DomainIndexFieldArgs
{
Name = "string",
Type = "string",
AnalysisScheme = "string",
DefaultValue = "string",
Facet = false,
Highlight = false,
Return = false,
Search = false,
Sort = false,
SourceFields = "string",
},
},
MultiAz = false,
Name = "string",
ScalingParameters = new Aws.CloudSearch.Inputs.DomainScalingParametersArgs
{
DesiredInstanceType = "string",
DesiredPartitionCount = 0,
DesiredReplicationCount = 0,
},
});
example, err := cloudsearch.NewDomain(ctx, "domainResource", &cloudsearch.DomainArgs{
EndpointOptions: &cloudsearch.DomainEndpointOptionsArgs{
EnforceHttps: pulumi.Bool(false),
TlsSecurityPolicy: pulumi.String("string"),
},
IndexFields: cloudsearch.DomainIndexFieldArray{
&cloudsearch.DomainIndexFieldArgs{
Name: pulumi.String("string"),
Type: pulumi.String("string"),
AnalysisScheme: pulumi.String("string"),
DefaultValue: pulumi.String("string"),
Facet: pulumi.Bool(false),
Highlight: pulumi.Bool(false),
Return: pulumi.Bool(false),
Search: pulumi.Bool(false),
Sort: pulumi.Bool(false),
SourceFields: pulumi.String("string"),
},
},
MultiAz: pulumi.Bool(false),
Name: pulumi.String("string"),
ScalingParameters: &cloudsearch.DomainScalingParametersArgs{
DesiredInstanceType: pulumi.String("string"),
DesiredPartitionCount: pulumi.Int(0),
DesiredReplicationCount: pulumi.Int(0),
},
})
var domainResource = new Domain("domainResource", DomainArgs.builder()
.endpointOptions(DomainEndpointOptionsArgs.builder()
.enforceHttps(false)
.tlsSecurityPolicy("string")
.build())
.indexFields(DomainIndexFieldArgs.builder()
.name("string")
.type("string")
.analysisScheme("string")
.defaultValue("string")
.facet(false)
.highlight(false)
.return_(false)
.search(false)
.sort(false)
.sourceFields("string")
.build())
.multiAz(false)
.name("string")
.scalingParameters(DomainScalingParametersArgs.builder()
.desiredInstanceType("string")
.desiredPartitionCount(0)
.desiredReplicationCount(0)
.build())
.build());
domain_resource = aws.cloudsearch.Domain("domainResource",
endpoint_options={
"enforceHttps": False,
"tlsSecurityPolicy": "string",
},
index_fields=[{
"name": "string",
"type": "string",
"analysisScheme": "string",
"defaultValue": "string",
"facet": False,
"highlight": False,
"return": False,
"search": False,
"sort": False,
"sourceFields": "string",
}],
multi_az=False,
name="string",
scaling_parameters={
"desiredInstanceType": "string",
"desiredPartitionCount": 0,
"desiredReplicationCount": 0,
})
const domainResource = new aws.cloudsearch.Domain("domainResource", {
endpointOptions: {
enforceHttps: false,
tlsSecurityPolicy: "string",
},
indexFields: [{
name: "string",
type: "string",
analysisScheme: "string",
defaultValue: "string",
facet: false,
highlight: false,
"return": false,
search: false,
sort: false,
sourceFields: "string",
}],
multiAz: false,
name: "string",
scalingParameters: {
desiredInstanceType: "string",
desiredPartitionCount: 0,
desiredReplicationCount: 0,
},
});
type: aws:cloudsearch:Domain
properties:
endpointOptions:
enforceHttps: false
tlsSecurityPolicy: string
indexFields:
- analysisScheme: string
defaultValue: string
facet: false
highlight: false
name: string
return: false
search: false
sort: false
sourceFields: string
type: string
multiAz: false
name: string
scalingParameters:
desiredInstanceType: string
desiredPartitionCount: 0
desiredReplicationCount: 0
Domain 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 Domain resource accepts the following input properties:
- Endpoint
Options DomainEndpoint Options - Domain endpoint options. Documented below.
- Index
Fields List<DomainIndex Field> - The index fields for documents added to the domain. Documented below.
- Multi
Az bool - Whether or not to maintain extra instances for the domain in a second Availability Zone to ensure high availability.
- Name string
- The name of the CloudSearch domain.
- Scaling
Parameters DomainScaling Parameters - Domain scaling parameters. Documented below.
- Endpoint
Options DomainEndpoint Options Args - Domain endpoint options. Documented below.
- Index
Fields []DomainIndex Field Args - The index fields for documents added to the domain. Documented below.
- Multi
Az bool - Whether or not to maintain extra instances for the domain in a second Availability Zone to ensure high availability.
- Name string
- The name of the CloudSearch domain.
- Scaling
Parameters DomainScaling Parameters Args - Domain scaling parameters. Documented below.
- endpoint
Options DomainEndpoint Options - Domain endpoint options. Documented below.
- index
Fields List<DomainIndex Field> - The index fields for documents added to the domain. Documented below.
- multi
Az Boolean - Whether or not to maintain extra instances for the domain in a second Availability Zone to ensure high availability.
- name String
- The name of the CloudSearch domain.
- scaling
Parameters DomainScaling Parameters - Domain scaling parameters. Documented below.
- endpoint
Options DomainEndpoint Options - Domain endpoint options. Documented below.
- index
Fields DomainIndex Field[] - The index fields for documents added to the domain. Documented below.
- multi
Az boolean - Whether or not to maintain extra instances for the domain in a second Availability Zone to ensure high availability.
- name string
- The name of the CloudSearch domain.
- scaling
Parameters DomainScaling Parameters - Domain scaling parameters. Documented below.
- endpoint_
options DomainEndpoint Options Args - Domain endpoint options. Documented below.
- index_
fields Sequence[DomainIndex Field Args] - The index fields for documents added to the domain. Documented below.
- multi_
az bool - Whether or not to maintain extra instances for the domain in a second Availability Zone to ensure high availability.
- name str
- The name of the CloudSearch domain.
- scaling_
parameters DomainScaling Parameters Args - Domain scaling parameters. Documented below.
- endpoint
Options Property Map - Domain endpoint options. Documented below.
- index
Fields List<Property Map> - The index fields for documents added to the domain. Documented below.
- multi
Az Boolean - Whether or not to maintain extra instances for the domain in a second Availability Zone to ensure high availability.
- name String
- The name of the CloudSearch domain.
- scaling
Parameters Property Map - Domain scaling parameters. Documented below.
Outputs
All input properties are implicitly available as output properties. Additionally, the Domain resource produces the following output properties:
- Arn string
- The domain's ARN.
- Document
Service stringEndpoint - The service endpoint for updating documents in a search domain.
- Domain
Id string - An internally generated unique identifier for the domain.
- Id string
- The provider-assigned unique ID for this managed resource.
- Search
Service stringEndpoint - The service endpoint for requesting search results from a search domain.
- Arn string
- The domain's ARN.
- Document
Service stringEndpoint - The service endpoint for updating documents in a search domain.
- Domain
Id string - An internally generated unique identifier for the domain.
- Id string
- The provider-assigned unique ID for this managed resource.
- Search
Service stringEndpoint - The service endpoint for requesting search results from a search domain.
- arn String
- The domain's ARN.
- document
Service StringEndpoint - The service endpoint for updating documents in a search domain.
- domain
Id String - An internally generated unique identifier for the domain.
- id String
- The provider-assigned unique ID for this managed resource.
- search
Service StringEndpoint - The service endpoint for requesting search results from a search domain.
- arn string
- The domain's ARN.
- document
Service stringEndpoint - The service endpoint for updating documents in a search domain.
- domain
Id string - An internally generated unique identifier for the domain.
- id string
- The provider-assigned unique ID for this managed resource.
- search
Service stringEndpoint - The service endpoint for requesting search results from a search domain.
- arn str
- The domain's ARN.
- document_
service_ strendpoint - The service endpoint for updating documents in a search domain.
- domain_
id str - An internally generated unique identifier for the domain.
- id str
- The provider-assigned unique ID for this managed resource.
- search_
service_ strendpoint - The service endpoint for requesting search results from a search domain.
- arn String
- The domain's ARN.
- document
Service StringEndpoint - The service endpoint for updating documents in a search domain.
- domain
Id String - An internally generated unique identifier for the domain.
- id String
- The provider-assigned unique ID for this managed resource.
- search
Service StringEndpoint - The service endpoint for requesting search results from a search domain.
Look up Existing Domain Resource
Get an existing Domain 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?: DomainState, opts?: CustomResourceOptions): Domain
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
arn: Optional[str] = None,
document_service_endpoint: Optional[str] = None,
domain_id: Optional[str] = None,
endpoint_options: Optional[DomainEndpointOptionsArgs] = None,
index_fields: Optional[Sequence[DomainIndexFieldArgs]] = None,
multi_az: Optional[bool] = None,
name: Optional[str] = None,
scaling_parameters: Optional[DomainScalingParametersArgs] = None,
search_service_endpoint: Optional[str] = None) -> Domain
func GetDomain(ctx *Context, name string, id IDInput, state *DomainState, opts ...ResourceOption) (*Domain, error)
public static Domain Get(string name, Input<string> id, DomainState? state, CustomResourceOptions? opts = null)
public static Domain get(String name, Output<String> id, DomainState 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.
- Arn string
- The domain's ARN.
- Document
Service stringEndpoint - The service endpoint for updating documents in a search domain.
- Domain
Id string - An internally generated unique identifier for the domain.
- Endpoint
Options DomainEndpoint Options - Domain endpoint options. Documented below.
- Index
Fields List<DomainIndex Field> - The index fields for documents added to the domain. Documented below.
- Multi
Az bool - Whether or not to maintain extra instances for the domain in a second Availability Zone to ensure high availability.
- Name string
- The name of the CloudSearch domain.
- Scaling
Parameters DomainScaling Parameters - Domain scaling parameters. Documented below.
- Search
Service stringEndpoint - The service endpoint for requesting search results from a search domain.
- Arn string
- The domain's ARN.
- Document
Service stringEndpoint - The service endpoint for updating documents in a search domain.
- Domain
Id string - An internally generated unique identifier for the domain.
- Endpoint
Options DomainEndpoint Options Args - Domain endpoint options. Documented below.
- Index
Fields []DomainIndex Field Args - The index fields for documents added to the domain. Documented below.
- Multi
Az bool - Whether or not to maintain extra instances for the domain in a second Availability Zone to ensure high availability.
- Name string
- The name of the CloudSearch domain.
- Scaling
Parameters DomainScaling Parameters Args - Domain scaling parameters. Documented below.
- Search
Service stringEndpoint - The service endpoint for requesting search results from a search domain.
- arn String
- The domain's ARN.
- document
Service StringEndpoint - The service endpoint for updating documents in a search domain.
- domain
Id String - An internally generated unique identifier for the domain.
- endpoint
Options DomainEndpoint Options - Domain endpoint options. Documented below.
- index
Fields List<DomainIndex Field> - The index fields for documents added to the domain. Documented below.
- multi
Az Boolean - Whether or not to maintain extra instances for the domain in a second Availability Zone to ensure high availability.
- name String
- The name of the CloudSearch domain.
- scaling
Parameters DomainScaling Parameters - Domain scaling parameters. Documented below.
- search
Service StringEndpoint - The service endpoint for requesting search results from a search domain.
- arn string
- The domain's ARN.
- document
Service stringEndpoint - The service endpoint for updating documents in a search domain.
- domain
Id string - An internally generated unique identifier for the domain.
- endpoint
Options DomainEndpoint Options - Domain endpoint options. Documented below.
- index
Fields DomainIndex Field[] - The index fields for documents added to the domain. Documented below.
- multi
Az boolean - Whether or not to maintain extra instances for the domain in a second Availability Zone to ensure high availability.
- name string
- The name of the CloudSearch domain.
- scaling
Parameters DomainScaling Parameters - Domain scaling parameters. Documented below.
- search
Service stringEndpoint - The service endpoint for requesting search results from a search domain.
- arn str
- The domain's ARN.
- document_
service_ strendpoint - The service endpoint for updating documents in a search domain.
- domain_
id str - An internally generated unique identifier for the domain.
- endpoint_
options DomainEndpoint Options Args - Domain endpoint options. Documented below.
- index_
fields Sequence[DomainIndex Field Args] - The index fields for documents added to the domain. Documented below.
- multi_
az bool - Whether or not to maintain extra instances for the domain in a second Availability Zone to ensure high availability.
- name str
- The name of the CloudSearch domain.
- scaling_
parameters DomainScaling Parameters Args - Domain scaling parameters. Documented below.
- search_
service_ strendpoint - The service endpoint for requesting search results from a search domain.
- arn String
- The domain's ARN.
- document
Service StringEndpoint - The service endpoint for updating documents in a search domain.
- domain
Id String - An internally generated unique identifier for the domain.
- endpoint
Options Property Map - Domain endpoint options. Documented below.
- index
Fields List<Property Map> - The index fields for documents added to the domain. Documented below.
- multi
Az Boolean - Whether or not to maintain extra instances for the domain in a second Availability Zone to ensure high availability.
- name String
- The name of the CloudSearch domain.
- scaling
Parameters Property Map - Domain scaling parameters. Documented below.
- search
Service StringEndpoint - The service endpoint for requesting search results from a search domain.
Supporting Types
DomainEndpointOptions, DomainEndpointOptionsArgs
- Enforce
Https bool - Enables or disables the requirement that all requests to the domain arrive over HTTPS.
- Tls
Security stringPolicy - The minimum required TLS version. See the AWS documentation for valid values.
- Enforce
Https bool - Enables or disables the requirement that all requests to the domain arrive over HTTPS.
- Tls
Security stringPolicy - The minimum required TLS version. See the AWS documentation for valid values.
- enforce
Https Boolean - Enables or disables the requirement that all requests to the domain arrive over HTTPS.
- tls
Security StringPolicy - The minimum required TLS version. See the AWS documentation for valid values.
- enforce
Https boolean - Enables or disables the requirement that all requests to the domain arrive over HTTPS.
- tls
Security stringPolicy - The minimum required TLS version. See the AWS documentation for valid values.
- enforce_
https bool - Enables or disables the requirement that all requests to the domain arrive over HTTPS.
- tls_
security_ strpolicy - The minimum required TLS version. See the AWS documentation for valid values.
- enforce
Https Boolean - Enables or disables the requirement that all requests to the domain arrive over HTTPS.
- tls
Security StringPolicy - The minimum required TLS version. See the AWS documentation for valid values.
DomainIndexField, DomainIndexFieldArgs
- Name string
- A unique name for the field. Field names must begin with a letter and be at least 3 and no more than 64 characters long. The allowed characters are:
a
-z
(lower-case letters),0
-9
, and_
(underscore). The namescore
is reserved and cannot be used as a field name. - Type string
- The field type. Valid values:
date
,date-array
,double
,double-array
,int
,int-array
,literal
,literal-array
,text
,text-array
. - Analysis
Scheme string - The analysis scheme you want to use for a
text
field. The analysis scheme specifies the language-specific text processing options that are used during indexing. - Default
Value string - The default value for the field. This value is used when no value is specified for the field in the document data.
- Facet bool
- You can get facet information by enabling this.
- Highlight bool
- You can highlight information.
- Return bool
- You can enable returning the value of all searchable fields.
- Search bool
- You can set whether this index should be searchable or not.
- Sort bool
- You can enable the property to be sortable.
- Source
Fields string - A comma-separated list of source fields to map to the field. Specifying a source field copies data from one field to another, enabling you to use the same source data in different ways by configuring different options for the fields.
- Name string
- A unique name for the field. Field names must begin with a letter and be at least 3 and no more than 64 characters long. The allowed characters are:
a
-z
(lower-case letters),0
-9
, and_
(underscore). The namescore
is reserved and cannot be used as a field name. - Type string
- The field type. Valid values:
date
,date-array
,double
,double-array
,int
,int-array
,literal
,literal-array
,text
,text-array
. - Analysis
Scheme string - The analysis scheme you want to use for a
text
field. The analysis scheme specifies the language-specific text processing options that are used during indexing. - Default
Value string - The default value for the field. This value is used when no value is specified for the field in the document data.
- Facet bool
- You can get facet information by enabling this.
- Highlight bool
- You can highlight information.
- Return bool
- You can enable returning the value of all searchable fields.
- Search bool
- You can set whether this index should be searchable or not.
- Sort bool
- You can enable the property to be sortable.
- Source
Fields string - A comma-separated list of source fields to map to the field. Specifying a source field copies data from one field to another, enabling you to use the same source data in different ways by configuring different options for the fields.
- name String
- A unique name for the field. Field names must begin with a letter and be at least 3 and no more than 64 characters long. The allowed characters are:
a
-z
(lower-case letters),0
-9
, and_
(underscore). The namescore
is reserved and cannot be used as a field name. - type String
- The field type. Valid values:
date
,date-array
,double
,double-array
,int
,int-array
,literal
,literal-array
,text
,text-array
. - analysis
Scheme String - The analysis scheme you want to use for a
text
field. The analysis scheme specifies the language-specific text processing options that are used during indexing. - default
Value String - The default value for the field. This value is used when no value is specified for the field in the document data.
- facet Boolean
- You can get facet information by enabling this.
- highlight Boolean
- You can highlight information.
- return_ Boolean
- You can enable returning the value of all searchable fields.
- search Boolean
- You can set whether this index should be searchable or not.
- sort Boolean
- You can enable the property to be sortable.
- source
Fields String - A comma-separated list of source fields to map to the field. Specifying a source field copies data from one field to another, enabling you to use the same source data in different ways by configuring different options for the fields.
- name string
- A unique name for the field. Field names must begin with a letter and be at least 3 and no more than 64 characters long. The allowed characters are:
a
-z
(lower-case letters),0
-9
, and_
(underscore). The namescore
is reserved and cannot be used as a field name. - type string
- The field type. Valid values:
date
,date-array
,double
,double-array
,int
,int-array
,literal
,literal-array
,text
,text-array
. - analysis
Scheme string - The analysis scheme you want to use for a
text
field. The analysis scheme specifies the language-specific text processing options that are used during indexing. - default
Value string - The default value for the field. This value is used when no value is specified for the field in the document data.
- facet boolean
- You can get facet information by enabling this.
- highlight boolean
- You can highlight information.
- return boolean
- You can enable returning the value of all searchable fields.
- search boolean
- You can set whether this index should be searchable or not.
- sort boolean
- You can enable the property to be sortable.
- source
Fields string - A comma-separated list of source fields to map to the field. Specifying a source field copies data from one field to another, enabling you to use the same source data in different ways by configuring different options for the fields.
- name str
- A unique name for the field. Field names must begin with a letter and be at least 3 and no more than 64 characters long. The allowed characters are:
a
-z
(lower-case letters),0
-9
, and_
(underscore). The namescore
is reserved and cannot be used as a field name. - type str
- The field type. Valid values:
date
,date-array
,double
,double-array
,int
,int-array
,literal
,literal-array
,text
,text-array
. - analysis_
scheme str - The analysis scheme you want to use for a
text
field. The analysis scheme specifies the language-specific text processing options that are used during indexing. - default_
value str - The default value for the field. This value is used when no value is specified for the field in the document data.
- facet bool
- You can get facet information by enabling this.
- highlight bool
- You can highlight information.
- return_ bool
- You can enable returning the value of all searchable fields.
- search bool
- You can set whether this index should be searchable or not.
- sort bool
- You can enable the property to be sortable.
- source_
fields str - A comma-separated list of source fields to map to the field. Specifying a source field copies data from one field to another, enabling you to use the same source data in different ways by configuring different options for the fields.
- name String
- A unique name for the field. Field names must begin with a letter and be at least 3 and no more than 64 characters long. The allowed characters are:
a
-z
(lower-case letters),0
-9
, and_
(underscore). The namescore
is reserved and cannot be used as a field name. - type String
- The field type. Valid values:
date
,date-array
,double
,double-array
,int
,int-array
,literal
,literal-array
,text
,text-array
. - analysis
Scheme String - The analysis scheme you want to use for a
text
field. The analysis scheme specifies the language-specific text processing options that are used during indexing. - default
Value String - The default value for the field. This value is used when no value is specified for the field in the document data.
- facet Boolean
- You can get facet information by enabling this.
- highlight Boolean
- You can highlight information.
- return Boolean
- You can enable returning the value of all searchable fields.
- search Boolean
- You can set whether this index should be searchable or not.
- sort Boolean
- You can enable the property to be sortable.
- source
Fields String - A comma-separated list of source fields to map to the field. Specifying a source field copies data from one field to another, enabling you to use the same source data in different ways by configuring different options for the fields.
DomainScalingParameters, DomainScalingParametersArgs
- Desired
Instance stringType - The instance type that you want to preconfigure for your domain. See the AWS documentation for valid values.
- Desired
Partition intCount - The number of partitions you want to preconfigure for your domain. Only valid when you select
search.2xlarge
as the instance type. - Desired
Replication intCount - The number of replicas you want to preconfigure for each index partition.
- Desired
Instance stringType - The instance type that you want to preconfigure for your domain. See the AWS documentation for valid values.
- Desired
Partition intCount - The number of partitions you want to preconfigure for your domain. Only valid when you select
search.2xlarge
as the instance type. - Desired
Replication intCount - The number of replicas you want to preconfigure for each index partition.
- desired
Instance StringType - The instance type that you want to preconfigure for your domain. See the AWS documentation for valid values.
- desired
Partition IntegerCount - The number of partitions you want to preconfigure for your domain. Only valid when you select
search.2xlarge
as the instance type. - desired
Replication IntegerCount - The number of replicas you want to preconfigure for each index partition.
- desired
Instance stringType - The instance type that you want to preconfigure for your domain. See the AWS documentation for valid values.
- desired
Partition numberCount - The number of partitions you want to preconfigure for your domain. Only valid when you select
search.2xlarge
as the instance type. - desired
Replication numberCount - The number of replicas you want to preconfigure for each index partition.
- desired_
instance_ strtype - The instance type that you want to preconfigure for your domain. See the AWS documentation for valid values.
- desired_
partition_ intcount - The number of partitions you want to preconfigure for your domain. Only valid when you select
search.2xlarge
as the instance type. - desired_
replication_ intcount - The number of replicas you want to preconfigure for each index partition.
- desired
Instance StringType - The instance type that you want to preconfigure for your domain. See the AWS documentation for valid values.
- desired
Partition NumberCount - The number of partitions you want to preconfigure for your domain. Only valid when you select
search.2xlarge
as the instance type. - desired
Replication NumberCount - The number of replicas you want to preconfigure for each index partition.
Import
Using pulumi import
, import CloudSearch Domains using the name
. For example:
$ pulumi import aws:cloudsearch/domain:Domain example example-domain
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aws
Terraform Provider.
Try AWS Native preview for resources not in the classic version.