ElasticsearchArgs

data class ElasticsearchArgs(val elasticCloudEmailAddress: Output<String>? = null, val location: Output<String>? = null, val logs: Output<ElasticsearchLogsArgs>? = null, val monitoringEnabled: Output<Boolean>? = null, val name: Output<String>? = null, val resourceGroupName: Output<String>? = null, val skuName: Output<String>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<ElasticsearchArgs>

Manages an Elasticsearch in Elastic Cloud.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.elasticcloud.Elasticsearch;
import com.pulumi.azure.elasticcloud.ElasticsearchArgs;
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 testResourceGroup = new ResourceGroup("testResourceGroup", ResourceGroupArgs.builder()
.location("West Europe")
.build());
var testElasticsearch = new Elasticsearch("testElasticsearch", ElasticsearchArgs.builder()
.resourceGroupName(testResourceGroup.name())
.location(testResourceGroup.location())
.skuName("ess-monthly-consumption_Monthly")
.elasticCloudEmailAddress("user@example.com")
.build());
}
}

Import

Elasticsearch's can be imported using the resource id, e.g.

$ pulumi import azure:elasticcloud/elasticsearch:Elasticsearch example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Elastic/monitors/monitor1

Constructors

Link copied to clipboard
fun ElasticsearchArgs(elasticCloudEmailAddress: Output<String>? = null, location: Output<String>? = null, logs: Output<ElasticsearchLogsArgs>? = null, monitoringEnabled: Output<Boolean>? = null, name: Output<String>? = null, resourceGroupName: Output<String>? = null, skuName: Output<String>? = null, tags: Output<Map<String, String>>? = null)

Functions

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

Properties

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

Specifies the Email Address which should be associated with this Elasticsearch account. Changing this forces a new Elasticsearch to be created.

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

The Azure Region where the Elasticsearch resource should exist. Changing this forces a new Elasticsearch to be created.

Link copied to clipboard
val logs: Output<ElasticsearchLogsArgs>? = null

A logs block as defined below.

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

Specifies if the Elasticsearch should have monitoring configured? Defaults to true. Changing this forces a new Elasticsearch to be created.

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

The name which should be used for this Elasticsearch resource. Changing this forces a new Elasticsearch to be created.

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

The name of the Resource Group where the Elasticsearch resource should exist. Changing this forces a new Elasticsearch to be created.

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

Specifies the name of the SKU for this Elasticsearch. Changing this forces a new Elasticsearch to be created.

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

A mapping of tags which should be assigned to the Elasticsearch resource.