DomainArgs

data class DomainArgs(val endpointOptions: Output<DomainEndpointOptionsArgs>? = null, val indexFields: Output<List<DomainIndexFieldArgs>>? = null, val multiAz: Output<Boolean>? = null, val name: Output<String>? = null, val scalingParameters: Output<DomainScalingParametersArgs>? = null) : ConvertibleToJava<DomainArgs>

Provides an CloudSearch domain resource. The provider waits for the domain to become Active when applying a configuration.

Example Usage

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.DomainIndexFieldArgs;
import com.pulumi.aws.cloudsearch.inputs.DomainScalingParametersArgs;
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()
.indexFields(
DomainIndexFieldArgs.builder()
.analysisScheme("_en_default_")
.highlight(false)
.name("headline")
.return_(true)
.search(true)
.sort(true)
.type("text")
.build(),
DomainIndexFieldArgs.builder()
.facet(true)
.name("price")
.return_(true)
.search(true)
.sort(true)
.sourceFields("headline")
.type("double")
.build())
.scalingParameters(DomainScalingParametersArgs.builder()
.desiredInstanceType("search.medium")
.build())
.build());
}
}

Import

CloudSearch Domains can be imported using the name, e.g.,

$ pulumi import aws:cloudsearch/domain:Domain example example-domain

Constructors

Link copied to clipboard
constructor(endpointOptions: Output<DomainEndpointOptionsArgs>? = null, indexFields: Output<List<DomainIndexFieldArgs>>? = null, multiAz: Output<Boolean>? = null, name: Output<String>? = null, scalingParameters: Output<DomainScalingParametersArgs>? = null)

Properties

Link copied to clipboard

Domain endpoint options. Documented below.

Link copied to clipboard
val indexFields: Output<List<DomainIndexFieldArgs>>? = null

The index fields for documents added to the domain. Documented below.

Link copied to clipboard
val multiAz: Output<Boolean>? = null

Whether or not to maintain extra instances for the domain in a second Availability Zone to ensure high availability.

Link copied to clipboard
val name: Output<String>? = null

The name of the CloudSearch domain.

Link copied to clipboard

Domain scaling parameters. Documented below.

Functions

Link copied to clipboard
open override fun toJava(): DomainArgs