import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Manages an Elasticsearch in Elastic Cloud. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azure from "@pulumi/azure"; * * const test = new azure.core.ResourceGroup("test", { * name: "example-resources", * location: "West Europe", * }); * const testElasticsearch = new azure.elasticcloud.Elasticsearch("test", { * name: "example-elasticsearch", * resourceGroupName: test.name, * location: test.location, * skuName: "ess-consumption-2024_Monthly", * elasticCloudEmailAddress: "user@example.com", * }); * ``` * * ## API Providers * * * This resource uses the following Azure API Providers: * * * `Microsoft.Elastic` - 2023-06-01 * * ## Import * * Elasticsearch's can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:elasticcloud/elasticsearch:Elasticsearch example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Elastic/monitors/monitor1 * ``` */ export declare class Elasticsearch extends pulumi.CustomResource { /** * Get an existing Elasticsearch resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: ElasticsearchState, opts?: pulumi.CustomResourceOptions): Elasticsearch; /** * Returns true if the given object is an instance of Elasticsearch. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is Elasticsearch; /** * The ID of the Deployment within Elastic Cloud. */ readonly elasticCloudDeploymentId: pulumi.Output; /** * Specifies the Email Address which should be associated with this Elasticsearch account. Changing this forces a new Elasticsearch to be created. */ readonly elasticCloudEmailAddress: pulumi.Output; /** * The Default URL used for Single Sign On (SSO) to Elastic Cloud. */ readonly elasticCloudSsoDefaultUrl: pulumi.Output; /** * The ID of the User Account within Elastic Cloud. */ readonly elasticCloudUserId: pulumi.Output; /** * The URL to the Elasticsearch Service associated with this Elasticsearch. */ readonly elasticsearchServiceUrl: pulumi.Output; /** * The URL to the Kibana Dashboard associated with this Elasticsearch. */ readonly kibanaServiceUrl: pulumi.Output; /** * The URI used for SSO to the Kibana Dashboard associated with this Elasticsearch. */ readonly kibanaSsoUri: pulumi.Output; /** * The Azure Region where the Elasticsearch resource should exist. Changing this forces a new Elasticsearch to be created. */ readonly location: pulumi.Output; /** * A `logs` block as defined below. */ readonly logs: pulumi.Output; /** * Specifies if the Elasticsearch should have monitoring configured? Defaults to `true`. Changing this forces a new Elasticsearch to be created. */ readonly monitoringEnabled: pulumi.Output; /** * The name which should be used for this Elasticsearch resource. Changing this forces a new Elasticsearch to be created. */ readonly name: pulumi.Output; /** * The name of the Resource Group where the Elasticsearch resource should exist. Changing this forces a new Elasticsearch to be created. */ readonly resourceGroupName: pulumi.Output; /** * Specifies the name of the SKU for this Elasticsearch. Changing this forces a new Elasticsearch to be created. * * > **Note:** The SKU depends on the Elasticsearch Plans available for your account and is a combination of PlanID_Term. * Ex: If the plan ID is "planXYZ" and term is "Yearly", the SKU will be "planXYZ_Yearly". * You may find your eligible plans [here](https://portal.azure.com/#view/Microsoft_Azure_Marketplace/GalleryItemDetailsBladeNopdl/id/elastic.ec-azure-pp) or in the online documentation [here](https://azuremarketplace.microsoft.com/en-us/marketplace/apps/elastic.ec-azure-pp?tab=PlansAndPrice) for more details or in case of any issues with the SKU. */ readonly skuName: pulumi.Output; /** * A mapping of tags which should be assigned to the Elasticsearch resource. */ readonly tags: pulumi.Output<{ [key: string]: string; } | undefined>; /** * Create a Elasticsearch resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: ElasticsearchArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Elasticsearch resources. */ export interface ElasticsearchState { /** * The ID of the Deployment within Elastic Cloud. */ elasticCloudDeploymentId?: pulumi.Input; /** * Specifies the Email Address which should be associated with this Elasticsearch account. Changing this forces a new Elasticsearch to be created. */ elasticCloudEmailAddress?: pulumi.Input; /** * The Default URL used for Single Sign On (SSO) to Elastic Cloud. */ elasticCloudSsoDefaultUrl?: pulumi.Input; /** * The ID of the User Account within Elastic Cloud. */ elasticCloudUserId?: pulumi.Input; /** * The URL to the Elasticsearch Service associated with this Elasticsearch. */ elasticsearchServiceUrl?: pulumi.Input; /** * The URL to the Kibana Dashboard associated with this Elasticsearch. */ kibanaServiceUrl?: pulumi.Input; /** * The URI used for SSO to the Kibana Dashboard associated with this Elasticsearch. */ kibanaSsoUri?: pulumi.Input; /** * The Azure Region where the Elasticsearch resource should exist. Changing this forces a new Elasticsearch to be created. */ location?: pulumi.Input; /** * A `logs` block as defined below. */ logs?: pulumi.Input; /** * Specifies if the Elasticsearch should have monitoring configured? Defaults to `true`. Changing this forces a new Elasticsearch to be created. */ monitoringEnabled?: pulumi.Input; /** * The name which should be used for this Elasticsearch resource. Changing this forces a new Elasticsearch to be created. */ name?: pulumi.Input; /** * The name of the Resource Group where the Elasticsearch resource should exist. Changing this forces a new Elasticsearch to be created. */ resourceGroupName?: pulumi.Input; /** * Specifies the name of the SKU for this Elasticsearch. Changing this forces a new Elasticsearch to be created. * * > **Note:** The SKU depends on the Elasticsearch Plans available for your account and is a combination of PlanID_Term. * Ex: If the plan ID is "planXYZ" and term is "Yearly", the SKU will be "planXYZ_Yearly". * You may find your eligible plans [here](https://portal.azure.com/#view/Microsoft_Azure_Marketplace/GalleryItemDetailsBladeNopdl/id/elastic.ec-azure-pp) or in the online documentation [here](https://azuremarketplace.microsoft.com/en-us/marketplace/apps/elastic.ec-azure-pp?tab=PlansAndPrice) for more details or in case of any issues with the SKU. */ skuName?: pulumi.Input; /** * A mapping of tags which should be assigned to the Elasticsearch resource. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input; }>; } /** * The set of arguments for constructing a Elasticsearch resource. */ export interface ElasticsearchArgs { /** * Specifies the Email Address which should be associated with this Elasticsearch account. Changing this forces a new Elasticsearch to be created. */ elasticCloudEmailAddress: pulumi.Input; /** * The Azure Region where the Elasticsearch resource should exist. Changing this forces a new Elasticsearch to be created. */ location?: pulumi.Input; /** * A `logs` block as defined below. */ logs?: pulumi.Input; /** * Specifies if the Elasticsearch should have monitoring configured? Defaults to `true`. Changing this forces a new Elasticsearch to be created. */ monitoringEnabled?: pulumi.Input; /** * The name which should be used for this Elasticsearch resource. Changing this forces a new Elasticsearch to be created. */ name?: pulumi.Input; /** * The name of the Resource Group where the Elasticsearch resource should exist. Changing this forces a new Elasticsearch to be created. */ resourceGroupName: pulumi.Input; /** * Specifies the name of the SKU for this Elasticsearch. Changing this forces a new Elasticsearch to be created. * * > **Note:** The SKU depends on the Elasticsearch Plans available for your account and is a combination of PlanID_Term. * Ex: If the plan ID is "planXYZ" and term is "Yearly", the SKU will be "planXYZ_Yearly". * You may find your eligible plans [here](https://portal.azure.com/#view/Microsoft_Azure_Marketplace/GalleryItemDetailsBladeNopdl/id/elastic.ec-azure-pp) or in the online documentation [here](https://azuremarketplace.microsoft.com/en-us/marketplace/apps/elastic.ec-azure-pp?tab=PlansAndPrice) for more details or in case of any issues with the SKU. */ skuName: pulumi.Input; /** * A mapping of tags which should be assigned to the Elasticsearch resource. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input; }>; }