@pulumi/ec 0.11.0-alpha.1738820875 → 0.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/config/index.d.ts +1 -0
- package/config/index.d.ts.map +1 -0
- package/config/index.js +1 -1
- package/config/index.js.map +1 -1
- package/config/vars.d.ts +6 -4
- package/config/vars.d.ts.map +1 -0
- package/config/vars.js +25 -2
- package/config/vars.js.map +1 -1
- package/deployment.d.ts +101 -65
- package/deployment.d.ts.map +1 -0
- package/deployment.js +82 -49
- package/deployment.js.map +1 -1
- package/deploymentElasticsearchKeystore.d.ts +18 -5
- package/deploymentElasticsearchKeystore.d.ts.map +1 -0
- package/deploymentElasticsearchKeystore.js +52 -17
- package/deploymentElasticsearchKeystore.js.map +1 -1
- package/deploymentExtension.d.ts +93 -15
- package/deploymentExtension.d.ts.map +1 -0
- package/deploymentExtension.js +125 -25
- package/deploymentExtension.js.map +1 -1
- package/deploymentTrafficFilter.d.ts +19 -14
- package/deploymentTrafficFilter.d.ts.map +1 -0
- package/deploymentTrafficFilter.js +48 -21
- package/deploymentTrafficFilter.js.map +1 -1
- package/deploymentTrafficFilterAssociation.d.ts +5 -2
- package/deploymentTrafficFilterAssociation.d.ts.map +1 -0
- package/deploymentTrafficFilterAssociation.js +37 -12
- package/deploymentTrafficFilterAssociation.js.map +1 -1
- package/elasticsearchProject.d.ts +55 -19
- package/elasticsearchProject.d.ts.map +1 -0
- package/elasticsearchProject.js +52 -23
- package/elasticsearchProject.js.map +1 -1
- package/getAwsPrivatelinkEndpoint.d.ts +3 -2
- package/getAwsPrivatelinkEndpoint.d.ts.map +1 -0
- package/getAwsPrivatelinkEndpoint.js +28 -5
- package/getAwsPrivatelinkEndpoint.js.map +1 -1
- package/getAzurePrivatelinkEndpoint.d.ts +1 -0
- package/getAzurePrivatelinkEndpoint.d.ts.map +1 -0
- package/getAzurePrivatelinkEndpoint.js +26 -3
- package/getAzurePrivatelinkEndpoint.js.map +1 -1
- package/getDeployment.d.ts +1 -0
- package/getDeployment.d.ts.map +1 -0
- package/getDeployment.js +26 -3
- package/getDeployment.js.map +1 -1
- package/getDeploymentTemplates.d.ts +4 -3
- package/getDeploymentTemplates.d.ts.map +1 -0
- package/getDeploymentTemplates.js +26 -3
- package/getDeploymentTemplates.js.map +1 -1
- package/getDeployments.d.ts +12 -11
- package/getDeployments.d.ts.map +1 -0
- package/getDeployments.js +26 -3
- package/getDeployments.js.map +1 -1
- package/getGcpPrivateServiceConnectEndpoint.d.ts +3 -2
- package/getGcpPrivateServiceConnectEndpoint.d.ts.map +1 -0
- package/getGcpPrivateServiceConnectEndpoint.js +28 -5
- package/getGcpPrivateServiceConnectEndpoint.js.map +1 -1
- package/getStack.d.ts +2 -1
- package/getStack.d.ts.map +1 -0
- package/getStack.js +26 -3
- package/getStack.js.map +1 -1
- package/getTrafficFilter.d.ts +4 -3
- package/getTrafficFilter.d.ts.map +1 -0
- package/getTrafficFilter.js +26 -3
- package/getTrafficFilter.js.map +1 -1
- package/index.d.ts +5 -3
- package/index.d.ts.map +1 -0
- package/index.js +40 -9
- package/index.js.map +1 -1
- package/observabilityProject.d.ts +51 -12
- package/observabilityProject.d.ts.map +1 -0
- package/observabilityProject.js +50 -19
- package/observabilityProject.js.map +1 -1
- package/organization.d.ts +84 -2
- package/organization.d.ts.map +1 -0
- package/organization.js +112 -8
- package/organization.js.map +1 -1
- package/package.json +3 -3
- package/provider.d.ts +34 -17
- package/provider.d.ts.map +1 -0
- package/provider.js +45 -14
- package/provider.js.map +1 -1
- package/securityProject.d.ts +55 -16
- package/securityProject.d.ts.map +1 -0
- package/securityProject.js +54 -23
- package/securityProject.js.map +1 -1
- package/serverlessTrafficFilter.d.ts +141 -0
- package/serverlessTrafficFilter.d.ts.map +1 -0
- package/serverlessTrafficFilter.js +118 -0
- package/serverlessTrafficFilter.js.map +1 -0
- package/snapshotRepository.d.ts +27 -6
- package/snapshotRepository.d.ts.map +1 -0
- package/snapshotRepository.js +55 -12
- package/snapshotRepository.js.map +1 -1
- package/types/index.d.ts +1 -0
- package/types/index.d.ts.map +1 -0
- package/types/index.js +26 -3
- package/types/index.js.map +1 -1
- package/types/input.d.ts +445 -337
- package/types/input.d.ts.map +1 -0
- package/types/input.js +1 -1
- package/types/input.js.map +1 -1
- package/types/output.d.ts +130 -14
- package/types/output.d.ts.map +1 -0
- package/types/output.js +1 -1
- package/types/output.js.map +1 -1
- package/utilities.d.ts +1 -4
- package/utilities.d.ts.map +1 -0
- package/utilities.js +43 -30
- package/utilities.js.map +1 -1
package/config/index.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../config/index.ts"],"names":[],"mappings":"AAIA,cAAc,QAAQ,CAAC"}
|
package/config/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// *** WARNING: this file was generated by
|
|
2
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
3
3
|
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
4
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
5
5
|
if (k2 === undefined) k2 = k;
|
package/config/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../config/index.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../config/index.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;AAEjF,kBAAkB;AAClB,yCAAuB"}
|
package/config/vars.d.ts
CHANGED
|
@@ -2,14 +2,16 @@
|
|
|
2
2
|
* API Key to use for API authentication. The only valid authentication mechanism for the Elasticsearch Service.
|
|
3
3
|
*/
|
|
4
4
|
export declare const apikey: string | undefined;
|
|
5
|
+
/**
|
|
6
|
+
* Endpoint where the terraform provider will point to. Defaults to "https://api.elastic-cloud.com".
|
|
7
|
+
*/
|
|
5
8
|
export declare const endpoint: string | undefined;
|
|
6
9
|
/**
|
|
7
10
|
* Allow the provider to skip TLS validation on its outgoing HTTP calls.
|
|
8
11
|
*/
|
|
9
12
|
export declare const insecure: boolean | undefined;
|
|
10
13
|
/**
|
|
11
|
-
* Password to use for API authentication. Available only when targeting ECE Installations or Elasticsearch Service
|
|
12
|
-
* Private.
|
|
14
|
+
* Password to use for API authentication. Available only when targeting ECE Installations or Elasticsearch Service Private.
|
|
13
15
|
*/
|
|
14
16
|
export declare const password: string | undefined;
|
|
15
17
|
/**
|
|
@@ -17,8 +19,7 @@ export declare const password: string | undefined;
|
|
|
17
19
|
*/
|
|
18
20
|
export declare const timeout: string | undefined;
|
|
19
21
|
/**
|
|
20
|
-
* Username to use for API authentication. Available only when targeting ECE Installations or Elasticsearch Service
|
|
21
|
-
* Private.
|
|
22
|
+
* Username to use for API authentication. Available only when targeting ECE Installations or Elasticsearch Service Private.
|
|
22
23
|
*/
|
|
23
24
|
export declare const username: string | undefined;
|
|
24
25
|
/**
|
|
@@ -33,3 +34,4 @@ export declare const verboseCredentials: boolean | undefined;
|
|
|
33
34
|
* Timeout used for individual HTTP calls. Defaults to "1m".
|
|
34
35
|
*/
|
|
35
36
|
export declare const verboseFile: string | undefined;
|
|
37
|
+
//# sourceMappingURL=vars.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vars.d.ts","sourceRoot":"","sources":["../../config/vars.ts"],"names":[],"mappings":"AASA;;GAEG;AACH,MAAM,CAAC,OAAO,CAAC,MAAM,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;AAQhD;;GAEG;AACH,MAAM,CAAC,OAAO,CAAC,MAAM,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;AAQlD;;GAEG;AACH,MAAM,CAAC,OAAO,CAAC,MAAM,QAAQ,EAAE,OAAO,GAAG,SAAS,CAAC;AAQnD;;GAEG;AACH,MAAM,CAAC,OAAO,CAAC,MAAM,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;AAQlD;;GAEG;AACH,MAAM,CAAC,OAAO,CAAC,MAAM,OAAO,EAAE,MAAM,GAAG,SAAS,CAAC;AAQjD;;GAEG;AACH,MAAM,CAAC,OAAO,CAAC,MAAM,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;AAQlD;;GAEG;AACH,MAAM,CAAC,OAAO,CAAC,MAAM,OAAO,EAAE,OAAO,GAAG,SAAS,CAAC;AAQlD;;GAEG;AACH,MAAM,CAAC,OAAO,CAAC,MAAM,kBAAkB,EAAE,OAAO,GAAG,SAAS,CAAC;AAQ7D;;GAEG;AACH,MAAM,CAAC,OAAO,CAAC,MAAM,WAAW,EAAE,MAAM,GAAG,SAAS,CAAC"}
|
package/config/vars.js
CHANGED
|
@@ -1,8 +1,31 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// *** WARNING: this file was generated by
|
|
2
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
3
3
|
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
5
|
+
if (k2 === undefined) k2 = k;
|
|
6
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
7
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
8
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
9
|
+
}
|
|
10
|
+
Object.defineProperty(o, k2, desc);
|
|
11
|
+
}) : (function(o, m, k, k2) {
|
|
12
|
+
if (k2 === undefined) k2 = k;
|
|
13
|
+
o[k2] = m[k];
|
|
14
|
+
}));
|
|
15
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
16
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
17
|
+
}) : function(o, v) {
|
|
18
|
+
o["default"] = v;
|
|
19
|
+
});
|
|
20
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
21
|
+
if (mod && mod.__esModule) return mod;
|
|
22
|
+
var result = {};
|
|
23
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
24
|
+
__setModuleDefault(result, mod);
|
|
25
|
+
return result;
|
|
26
|
+
};
|
|
4
27
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
const pulumi = require("@pulumi/pulumi");
|
|
28
|
+
const pulumi = __importStar(require("@pulumi/pulumi"));
|
|
6
29
|
const __config = new pulumi.Config("ec");
|
|
7
30
|
Object.defineProperty(exports, "apikey", {
|
|
8
31
|
get() {
|
package/config/vars.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vars.js","sourceRoot":"","sources":["../../config/vars.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"vars.js","sourceRoot":"","sources":["../../config/vars.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AAIzC,MAAM,QAAQ,GAAG,IAAI,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AAMzC,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,QAAQ,EAAE;IACrC,GAAG;QACC,OAAO,QAAQ,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;IAClC,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC;AAMH,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,UAAU,EAAE;IACvC,GAAG;QACC,OAAO,QAAQ,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;IACpC,CAAC;IACD,UAAU,EAAE,IAAI;CACnB,CAAC,CAAC;AAMH,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,UAAU,EAAE;IACvC,GAAG;QACC,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
|
import * as inputs from "./types/input";
|
|
3
3
|
import * as outputs from "./types/output";
|
|
4
4
|
/**
|
|
5
|
+
* Provides an Elastic Cloud deployment resource, which allows deployments to be created, updated, and deleted.
|
|
6
|
+
*
|
|
7
|
+
* > **Note on traffic filters** If you use `trafficFilter` on an `ec.Deployment`, Terraform will manage the full set of traffic rules for the deployment, and treat additional traffic filters as drift. For this reason, `trafficFilter` cannot be mixed with the `ec.DeploymentTrafficFilterAssociation` resource for a given deployment.
|
|
8
|
+
*
|
|
9
|
+
* > **Note on Elastic Stack versions** Using a version prior to `6.6.0` is not supported.
|
|
10
|
+
*
|
|
11
|
+
* > **Note on regions and deployment templates** Before you start, you might want to read about [Elastic Cloud deployments](https://www.elastic.co/guide/en/cloud/current/ec-create-deployment.html) and check the [full list](https://www.elastic.co/guide/en/cloud/current/ec-regions-templates-instances.html) of regions and deployment templates available in Elasticsearch Service (ESS).
|
|
12
|
+
*
|
|
5
13
|
* ## Example Usage
|
|
6
14
|
*
|
|
7
15
|
* ### Basic
|
|
@@ -24,13 +32,13 @@ import * as outputs from "./types/output";
|
|
|
24
32
|
*
|
|
25
33
|
* ## Import
|
|
26
34
|
*
|
|
27
|
-
*
|
|
35
|
+
* > **Note on deployment credentials** The `elastic` user credentials are only available whilst creating a deployment. Importing a deployment will not import the `elasticsearchUsername` or `elasticsearchPassword` attributes.
|
|
28
36
|
*
|
|
29
|
-
*
|
|
37
|
+
* > **Note on legacy (pre-slider) deployments** Importing deployments created prior to the addition of sliders in ECE or ESS, without being migrated to use sliders, is not supported.
|
|
30
38
|
*
|
|
31
|
-
*
|
|
39
|
+
* > **Note on pre 6.6.0 deployments** Importing deployments with a version lower than `6.6.0` is not supported.
|
|
32
40
|
*
|
|
33
|
-
*
|
|
41
|
+
* > **Note on deployments with topology user settings** Only deployments with global user settings (config) are supported. Make sure to migrate to global settings before importing.
|
|
34
42
|
*
|
|
35
43
|
* Deployments can be imported using the `id`, for example:
|
|
36
44
|
*
|
|
@@ -71,11 +79,23 @@ export declare class Deployment extends pulumi.CustomResource {
|
|
|
71
79
|
* Elasticsearch cluster definition
|
|
72
80
|
*/
|
|
73
81
|
readonly elasticsearch: pulumi.Output<outputs.DeploymentElasticsearch>;
|
|
82
|
+
/**
|
|
83
|
+
* Password for authenticating to the Elasticsearch resource.
|
|
84
|
+
*
|
|
85
|
+
* > **Note on deployment credentials** The <code>elastic</code> user credentials are only available whilst creating a deployment. Importing a deployment will not import the <code>elasticsearch_username</code> or <code>elasticsearch_password</code> attributes.
|
|
86
|
+
* > **Note on deployment credentials in state** The <code>elastic</code> user credentials are stored in the state file as plain text. Please follow the official Terraform recommendations regarding senstaive data in state.
|
|
87
|
+
*/
|
|
74
88
|
readonly elasticsearchPassword: pulumi.Output<string>;
|
|
75
89
|
/**
|
|
76
90
|
* Username for authenticating to the Elasticsearch resource.
|
|
77
91
|
*/
|
|
78
92
|
readonly elasticsearchUsername: pulumi.Output<string>;
|
|
93
|
+
/**
|
|
94
|
+
* Customer-managed encryption key resource path for data-at-rest encryption. Both key ARNs (arn:aws:kms:us-east-1:123456789:key/12345678-0000-0000-0000-000000000000) and alias ARNs (arn:aws:kms:us-east-1:123456789:alias/my-key-alias) are supported. Not supported on ECE.
|
|
95
|
+
*
|
|
96
|
+
* > **Note** Changing this value after deployment creation will force a new deployment to be created.
|
|
97
|
+
*/
|
|
98
|
+
readonly encryptionKeyPath: pulumi.Output<string | undefined>;
|
|
79
99
|
/**
|
|
80
100
|
* Enterprise Search cluster definition.
|
|
81
101
|
*/
|
|
@@ -85,15 +105,16 @@ export declare class Deployment extends pulumi.CustomResource {
|
|
|
85
105
|
*/
|
|
86
106
|
readonly integrationsServer: pulumi.Output<outputs.DeploymentIntegrationsServer | undefined>;
|
|
87
107
|
/**
|
|
88
|
-
* Kibana cluster definition.
|
|
89
|
-
*
|
|
108
|
+
* Kibana cluster definition.
|
|
109
|
+
*
|
|
110
|
+
* > **Note on disabling Kibana** While optional it is recommended deployments specify a Kibana block, since not doing so might cause issues when modifying or upgrading the deployment.
|
|
90
111
|
*/
|
|
91
112
|
readonly kibana: pulumi.Output<outputs.DeploymentKibana | undefined>;
|
|
92
113
|
/**
|
|
93
|
-
* When set to true, the deployment will be updated according to the latest deployment template values.
|
|
94
|
-
*
|
|
95
|
-
* topology element, that element will not be updated.
|
|
96
|
-
* with node types. To use this field, the deployment needs to be migrated to node roles first.
|
|
114
|
+
* When set to true, the deployment will be updated according to the latest deployment template values.
|
|
115
|
+
*
|
|
116
|
+
* > **Note** If the <code>instance_configuration_id</code> or <code>instance_configuration_version</code> fields are set for a specific topology element, that element will not be updated.
|
|
117
|
+
* > **Note** Hardware migrations are not supported for deployments with node types. To use this field, the deployment needs to be migrated to node roles first.
|
|
97
118
|
*/
|
|
98
119
|
readonly migrateToLatestHardware: pulumi.Output<boolean | undefined>;
|
|
99
120
|
/**
|
|
@@ -101,8 +122,7 @@ export declare class Deployment extends pulumi.CustomResource {
|
|
|
101
122
|
*/
|
|
102
123
|
readonly name: pulumi.Output<string>;
|
|
103
124
|
/**
|
|
104
|
-
* Observability settings that you can set to ship logs and metrics to a deployment. The target deployment can also be the
|
|
105
|
-
* current deployment itself by setting observability.deployment_id to `self`.
|
|
125
|
+
* Observability settings that you can set to ship logs and metrics to a deployment. The target deployment can also be the current deployment itself by setting observability.deployment_id to `self`.
|
|
106
126
|
*/
|
|
107
127
|
readonly observability: pulumi.Output<outputs.DeploymentObservability | undefined>;
|
|
108
128
|
/**
|
|
@@ -110,8 +130,7 @@ export declare class Deployment extends pulumi.CustomResource {
|
|
|
110
130
|
*/
|
|
111
131
|
readonly region: pulumi.Output<string>;
|
|
112
132
|
/**
|
|
113
|
-
* Request ID to set when you create the deployment. Use it only when previous attempts return an error and `requestId` is
|
|
114
|
-
* returned as part of the error.
|
|
133
|
+
* Request ID to set when you create the deployment. Use it only when previous attempts return an error and `requestId` is returned as part of the error.
|
|
115
134
|
*/
|
|
116
135
|
readonly requestId: pulumi.Output<string>;
|
|
117
136
|
/**
|
|
@@ -148,81 +167,92 @@ export interface DeploymentState {
|
|
|
148
167
|
/**
|
|
149
168
|
* Deployment alias, affects the format of the resource URLs. Set to an empty value ("") to disable the alias.
|
|
150
169
|
*/
|
|
151
|
-
alias?: pulumi.Input<string>;
|
|
170
|
+
alias?: pulumi.Input<string | undefined>;
|
|
152
171
|
/**
|
|
153
172
|
* **DEPRECATED** APM cluster definition. This should only be used for deployments running a version lower than 8.0
|
|
154
173
|
*/
|
|
155
|
-
apm?: pulumi.Input<inputs.DeploymentApm>;
|
|
156
|
-
apmSecretToken?: pulumi.Input<string>;
|
|
174
|
+
apm?: pulumi.Input<inputs.DeploymentApm | undefined>;
|
|
175
|
+
apmSecretToken?: pulumi.Input<string | undefined>;
|
|
157
176
|
/**
|
|
158
177
|
* Deployment template identifier to create the deployment from. See the [full list](https://www.elastic.co/guide/en/cloud/current/ec-regions-templates-instances.html) of regions and deployment templates available in ESS.
|
|
159
178
|
*/
|
|
160
|
-
deploymentTemplateId?: pulumi.Input<string>;
|
|
179
|
+
deploymentTemplateId?: pulumi.Input<string | undefined>;
|
|
161
180
|
/**
|
|
162
181
|
* Elasticsearch cluster definition
|
|
163
182
|
*/
|
|
164
|
-
elasticsearch?: pulumi.Input<inputs.DeploymentElasticsearch>;
|
|
165
|
-
|
|
183
|
+
elasticsearch?: pulumi.Input<inputs.DeploymentElasticsearch | undefined>;
|
|
184
|
+
/**
|
|
185
|
+
* Password for authenticating to the Elasticsearch resource.
|
|
186
|
+
*
|
|
187
|
+
* > **Note on deployment credentials** The <code>elastic</code> user credentials are only available whilst creating a deployment. Importing a deployment will not import the <code>elasticsearch_username</code> or <code>elasticsearch_password</code> attributes.
|
|
188
|
+
* > **Note on deployment credentials in state** The <code>elastic</code> user credentials are stored in the state file as plain text. Please follow the official Terraform recommendations regarding senstaive data in state.
|
|
189
|
+
*/
|
|
190
|
+
elasticsearchPassword?: pulumi.Input<string | undefined>;
|
|
166
191
|
/**
|
|
167
192
|
* Username for authenticating to the Elasticsearch resource.
|
|
168
193
|
*/
|
|
169
|
-
elasticsearchUsername?: pulumi.Input<string>;
|
|
194
|
+
elasticsearchUsername?: pulumi.Input<string | undefined>;
|
|
195
|
+
/**
|
|
196
|
+
* Customer-managed encryption key resource path for data-at-rest encryption. Both key ARNs (arn:aws:kms:us-east-1:123456789:key/12345678-0000-0000-0000-000000000000) and alias ARNs (arn:aws:kms:us-east-1:123456789:alias/my-key-alias) are supported. Not supported on ECE.
|
|
197
|
+
*
|
|
198
|
+
* > **Note** Changing this value after deployment creation will force a new deployment to be created.
|
|
199
|
+
*/
|
|
200
|
+
encryptionKeyPath?: pulumi.Input<string | undefined>;
|
|
170
201
|
/**
|
|
171
202
|
* Enterprise Search cluster definition.
|
|
172
203
|
*/
|
|
173
|
-
enterpriseSearch?: pulumi.Input<inputs.DeploymentEnterpriseSearch>;
|
|
204
|
+
enterpriseSearch?: pulumi.Input<inputs.DeploymentEnterpriseSearch | undefined>;
|
|
174
205
|
/**
|
|
175
206
|
* Integrations Server cluster definition. Integrations Server replaces `apm` in Stack versions > 8.0
|
|
176
207
|
*/
|
|
177
|
-
integrationsServer?: pulumi.Input<inputs.DeploymentIntegrationsServer>;
|
|
208
|
+
integrationsServer?: pulumi.Input<inputs.DeploymentIntegrationsServer | undefined>;
|
|
178
209
|
/**
|
|
179
|
-
* Kibana cluster definition.
|
|
180
|
-
*
|
|
210
|
+
* Kibana cluster definition.
|
|
211
|
+
*
|
|
212
|
+
* > **Note on disabling Kibana** While optional it is recommended deployments specify a Kibana block, since not doing so might cause issues when modifying or upgrading the deployment.
|
|
181
213
|
*/
|
|
182
|
-
kibana?: pulumi.Input<inputs.DeploymentKibana>;
|
|
214
|
+
kibana?: pulumi.Input<inputs.DeploymentKibana | undefined>;
|
|
183
215
|
/**
|
|
184
|
-
* When set to true, the deployment will be updated according to the latest deployment template values.
|
|
185
|
-
*
|
|
186
|
-
* topology element, that element will not be updated.
|
|
187
|
-
* with node types. To use this field, the deployment needs to be migrated to node roles first.
|
|
216
|
+
* When set to true, the deployment will be updated according to the latest deployment template values.
|
|
217
|
+
*
|
|
218
|
+
* > **Note** If the <code>instance_configuration_id</code> or <code>instance_configuration_version</code> fields are set for a specific topology element, that element will not be updated.
|
|
219
|
+
* > **Note** Hardware migrations are not supported for deployments with node types. To use this field, the deployment needs to be migrated to node roles first.
|
|
188
220
|
*/
|
|
189
|
-
migrateToLatestHardware?: pulumi.Input<boolean>;
|
|
221
|
+
migrateToLatestHardware?: pulumi.Input<boolean | undefined>;
|
|
190
222
|
/**
|
|
191
223
|
* Name for the deployment
|
|
192
224
|
*/
|
|
193
|
-
name?: pulumi.Input<string>;
|
|
225
|
+
name?: pulumi.Input<string | undefined>;
|
|
194
226
|
/**
|
|
195
|
-
* Observability settings that you can set to ship logs and metrics to a deployment. The target deployment can also be the
|
|
196
|
-
* current deployment itself by setting observability.deployment_id to `self`.
|
|
227
|
+
* Observability settings that you can set to ship logs and metrics to a deployment. The target deployment can also be the current deployment itself by setting observability.deployment_id to `self`.
|
|
197
228
|
*/
|
|
198
|
-
observability?: pulumi.Input<inputs.DeploymentObservability>;
|
|
229
|
+
observability?: pulumi.Input<inputs.DeploymentObservability | undefined>;
|
|
199
230
|
/**
|
|
200
231
|
* Elasticsearch Service (ESS) region where the deployment should be hosted. For Elastic Cloud Enterprise (ECE) installations, set to `"ece-region".
|
|
201
232
|
*/
|
|
202
|
-
region?: pulumi.Input<string>;
|
|
233
|
+
region?: pulumi.Input<string | undefined>;
|
|
203
234
|
/**
|
|
204
|
-
* Request ID to set when you create the deployment. Use it only when previous attempts return an error and `requestId` is
|
|
205
|
-
* returned as part of the error.
|
|
235
|
+
* Request ID to set when you create the deployment. Use it only when previous attempts return an error and `requestId` is returned as part of the error.
|
|
206
236
|
*/
|
|
207
|
-
requestId?: pulumi.Input<string>;
|
|
237
|
+
requestId?: pulumi.Input<string | undefined>;
|
|
208
238
|
/**
|
|
209
239
|
* Explicitly resets the elasticsearchPassword when true
|
|
210
240
|
*/
|
|
211
|
-
resetElasticsearchPassword?: pulumi.Input<boolean>;
|
|
241
|
+
resetElasticsearchPassword?: pulumi.Input<boolean | undefined>;
|
|
212
242
|
/**
|
|
213
243
|
* Optional map of deployment tags
|
|
214
244
|
*/
|
|
215
245
|
tags?: pulumi.Input<{
|
|
216
246
|
[key: string]: pulumi.Input<string>;
|
|
217
|
-
}>;
|
|
247
|
+
} | undefined>;
|
|
218
248
|
/**
|
|
219
249
|
* List of traffic filters rule identifiers that will be applied to the deployment.
|
|
220
250
|
*/
|
|
221
|
-
trafficFilters?: pulumi.Input<pulumi.Input<string>[]>;
|
|
251
|
+
trafficFilters?: pulumi.Input<pulumi.Input<string>[] | undefined>;
|
|
222
252
|
/**
|
|
223
253
|
* Elastic Stack version to use for all of the deployment resources.
|
|
224
254
|
*/
|
|
225
|
-
version?: pulumi.Input<string>;
|
|
255
|
+
version?: pulumi.Input<string | undefined>;
|
|
226
256
|
}
|
|
227
257
|
/**
|
|
228
258
|
* The set of arguments for constructing a Deployment resource.
|
|
@@ -231,11 +261,11 @@ export interface DeploymentArgs {
|
|
|
231
261
|
/**
|
|
232
262
|
* Deployment alias, affects the format of the resource URLs. Set to an empty value ("") to disable the alias.
|
|
233
263
|
*/
|
|
234
|
-
alias?: pulumi.Input<string>;
|
|
264
|
+
alias?: pulumi.Input<string | undefined>;
|
|
235
265
|
/**
|
|
236
266
|
* **DEPRECATED** APM cluster definition. This should only be used for deployments running a version lower than 8.0
|
|
237
267
|
*/
|
|
238
|
-
apm?: pulumi.Input<inputs.DeploymentApm>;
|
|
268
|
+
apm?: pulumi.Input<inputs.DeploymentApm | undefined>;
|
|
239
269
|
/**
|
|
240
270
|
* Deployment template identifier to create the deployment from. See the [full list](https://www.elastic.co/guide/en/cloud/current/ec-regions-templates-instances.html) of regions and deployment templates available in ESS.
|
|
241
271
|
*/
|
|
@@ -244,60 +274,66 @@ export interface DeploymentArgs {
|
|
|
244
274
|
* Elasticsearch cluster definition
|
|
245
275
|
*/
|
|
246
276
|
elasticsearch: pulumi.Input<inputs.DeploymentElasticsearch>;
|
|
277
|
+
/**
|
|
278
|
+
* Customer-managed encryption key resource path for data-at-rest encryption. Both key ARNs (arn:aws:kms:us-east-1:123456789:key/12345678-0000-0000-0000-000000000000) and alias ARNs (arn:aws:kms:us-east-1:123456789:alias/my-key-alias) are supported. Not supported on ECE.
|
|
279
|
+
*
|
|
280
|
+
* > **Note** Changing this value after deployment creation will force a new deployment to be created.
|
|
281
|
+
*/
|
|
282
|
+
encryptionKeyPath?: pulumi.Input<string | undefined>;
|
|
247
283
|
/**
|
|
248
284
|
* Enterprise Search cluster definition.
|
|
249
285
|
*/
|
|
250
|
-
enterpriseSearch?: pulumi.Input<inputs.DeploymentEnterpriseSearch>;
|
|
286
|
+
enterpriseSearch?: pulumi.Input<inputs.DeploymentEnterpriseSearch | undefined>;
|
|
251
287
|
/**
|
|
252
288
|
* Integrations Server cluster definition. Integrations Server replaces `apm` in Stack versions > 8.0
|
|
253
289
|
*/
|
|
254
|
-
integrationsServer?: pulumi.Input<inputs.DeploymentIntegrationsServer>;
|
|
290
|
+
integrationsServer?: pulumi.Input<inputs.DeploymentIntegrationsServer | undefined>;
|
|
255
291
|
/**
|
|
256
|
-
* Kibana cluster definition.
|
|
257
|
-
*
|
|
292
|
+
* Kibana cluster definition.
|
|
293
|
+
*
|
|
294
|
+
* > **Note on disabling Kibana** While optional it is recommended deployments specify a Kibana block, since not doing so might cause issues when modifying or upgrading the deployment.
|
|
258
295
|
*/
|
|
259
|
-
kibana?: pulumi.Input<inputs.DeploymentKibana>;
|
|
296
|
+
kibana?: pulumi.Input<inputs.DeploymentKibana | undefined>;
|
|
260
297
|
/**
|
|
261
|
-
* When set to true, the deployment will be updated according to the latest deployment template values.
|
|
262
|
-
*
|
|
263
|
-
* topology element, that element will not be updated.
|
|
264
|
-
* with node types. To use this field, the deployment needs to be migrated to node roles first.
|
|
298
|
+
* When set to true, the deployment will be updated according to the latest deployment template values.
|
|
299
|
+
*
|
|
300
|
+
* > **Note** If the <code>instance_configuration_id</code> or <code>instance_configuration_version</code> fields are set for a specific topology element, that element will not be updated.
|
|
301
|
+
* > **Note** Hardware migrations are not supported for deployments with node types. To use this field, the deployment needs to be migrated to node roles first.
|
|
265
302
|
*/
|
|
266
|
-
migrateToLatestHardware?: pulumi.Input<boolean>;
|
|
303
|
+
migrateToLatestHardware?: pulumi.Input<boolean | undefined>;
|
|
267
304
|
/**
|
|
268
305
|
* Name for the deployment
|
|
269
306
|
*/
|
|
270
|
-
name?: pulumi.Input<string>;
|
|
307
|
+
name?: pulumi.Input<string | undefined>;
|
|
271
308
|
/**
|
|
272
|
-
* Observability settings that you can set to ship logs and metrics to a deployment. The target deployment can also be the
|
|
273
|
-
* current deployment itself by setting observability.deployment_id to `self`.
|
|
309
|
+
* Observability settings that you can set to ship logs and metrics to a deployment. The target deployment can also be the current deployment itself by setting observability.deployment_id to `self`.
|
|
274
310
|
*/
|
|
275
|
-
observability?: pulumi.Input<inputs.DeploymentObservability>;
|
|
311
|
+
observability?: pulumi.Input<inputs.DeploymentObservability | undefined>;
|
|
276
312
|
/**
|
|
277
313
|
* Elasticsearch Service (ESS) region where the deployment should be hosted. For Elastic Cloud Enterprise (ECE) installations, set to `"ece-region".
|
|
278
314
|
*/
|
|
279
315
|
region: pulumi.Input<string>;
|
|
280
316
|
/**
|
|
281
|
-
* Request ID to set when you create the deployment. Use it only when previous attempts return an error and `requestId` is
|
|
282
|
-
* returned as part of the error.
|
|
317
|
+
* Request ID to set when you create the deployment. Use it only when previous attempts return an error and `requestId` is returned as part of the error.
|
|
283
318
|
*/
|
|
284
|
-
requestId?: pulumi.Input<string>;
|
|
319
|
+
requestId?: pulumi.Input<string | undefined>;
|
|
285
320
|
/**
|
|
286
321
|
* Explicitly resets the elasticsearchPassword when true
|
|
287
322
|
*/
|
|
288
|
-
resetElasticsearchPassword?: pulumi.Input<boolean>;
|
|
323
|
+
resetElasticsearchPassword?: pulumi.Input<boolean | undefined>;
|
|
289
324
|
/**
|
|
290
325
|
* Optional map of deployment tags
|
|
291
326
|
*/
|
|
292
327
|
tags?: pulumi.Input<{
|
|
293
328
|
[key: string]: pulumi.Input<string>;
|
|
294
|
-
}>;
|
|
329
|
+
} | undefined>;
|
|
295
330
|
/**
|
|
296
331
|
* List of traffic filters rule identifiers that will be applied to the deployment.
|
|
297
332
|
*/
|
|
298
|
-
trafficFilters?: pulumi.Input<pulumi.Input<string>[]>;
|
|
333
|
+
trafficFilters?: pulumi.Input<pulumi.Input<string>[] | undefined>;
|
|
299
334
|
/**
|
|
300
335
|
* Elastic Stack version to use for all of the deployment resources.
|
|
301
336
|
*/
|
|
302
337
|
version: pulumi.Input<string>;
|
|
303
338
|
}
|
|
339
|
+
//# sourceMappingURL=deployment.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deployment.d.ts","sourceRoot":"","sources":["../deployment.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAG1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CG;AACH,qBAAa,UAAW,SAAQ,MAAM,CAAC,cAAc;IACjD;;;;;;;;OAQG;WACW,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,EAAE,KAAK,CAAC,EAAE,eAAe,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,qBAAqB,GAAG,UAAU;IAOtI;;;OAGG;WACW,UAAU,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,IAAI,UAAU;IAOrD;;OAEG;IACH,SAAwB,KAAK,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IACrD;;OAEG;IACH,SAAwB,GAAG,EAAE,MA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AAC;IACxC;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,uBAAuB,GAAG,SAAS,CAAC,CAAC;IACzE;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAC7B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC7C;;OAEG;IACH,0BAA0B,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,GAAG,SAAS,CAAC,CAAC;IAC/D;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC;QAAC,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAA;KAAC,GAAG,SAAS,CAAC,CAAC;IACvE;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,GAAG,SAAS,CAAC,CAAC;IAClE;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;CACjC"}
|
package/deployment.js
CHANGED
|
@@ -1,11 +1,42 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// *** WARNING: this file was generated by
|
|
2
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
3
3
|
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
5
|
+
if (k2 === undefined) k2 = k;
|
|
6
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
7
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
8
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
9
|
+
}
|
|
10
|
+
Object.defineProperty(o, k2, desc);
|
|
11
|
+
}) : (function(o, m, k, k2) {
|
|
12
|
+
if (k2 === undefined) k2 = k;
|
|
13
|
+
o[k2] = m[k];
|
|
14
|
+
}));
|
|
15
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
16
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
17
|
+
}) : function(o, v) {
|
|
18
|
+
o["default"] = v;
|
|
19
|
+
});
|
|
20
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
21
|
+
if (mod && mod.__esModule) return mod;
|
|
22
|
+
var result = {};
|
|
23
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
24
|
+
__setModuleDefault(result, mod);
|
|
25
|
+
return result;
|
|
26
|
+
};
|
|
4
27
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
28
|
exports.Deployment = void 0;
|
|
6
|
-
const pulumi = require("@pulumi/pulumi");
|
|
7
|
-
const utilities = require("./utilities");
|
|
29
|
+
const pulumi = __importStar(require("@pulumi/pulumi"));
|
|
30
|
+
const utilities = __importStar(require("./utilities"));
|
|
8
31
|
/**
|
|
32
|
+
* Provides an Elastic Cloud deployment resource, which allows deployments to be created, updated, and deleted.
|
|
33
|
+
*
|
|
34
|
+
* > **Note on traffic filters** If you use `trafficFilter` on an `ec.Deployment`, Terraform will manage the full set of traffic rules for the deployment, and treat additional traffic filters as drift. For this reason, `trafficFilter` cannot be mixed with the `ec.DeploymentTrafficFilterAssociation` resource for a given deployment.
|
|
35
|
+
*
|
|
36
|
+
* > **Note on Elastic Stack versions** Using a version prior to `6.6.0` is not supported.
|
|
37
|
+
*
|
|
38
|
+
* > **Note on regions and deployment templates** Before you start, you might want to read about [Elastic Cloud deployments](https://www.elastic.co/guide/en/cloud/current/ec-create-deployment.html) and check the [full list](https://www.elastic.co/guide/en/cloud/current/ec-regions-templates-instances.html) of regions and deployment templates available in Elasticsearch Service (ESS).
|
|
39
|
+
*
|
|
9
40
|
* ## Example Usage
|
|
10
41
|
*
|
|
11
42
|
* ### Basic
|
|
@@ -28,13 +59,13 @@ const utilities = require("./utilities");
|
|
|
28
59
|
*
|
|
29
60
|
* ## Import
|
|
30
61
|
*
|
|
31
|
-
*
|
|
62
|
+
* > **Note on deployment credentials** The `elastic` user credentials are only available whilst creating a deployment. Importing a deployment will not import the `elasticsearchUsername` or `elasticsearchPassword` attributes.
|
|
32
63
|
*
|
|
33
|
-
*
|
|
64
|
+
* > **Note on legacy (pre-slider) deployments** Importing deployments created prior to the addition of sliders in ECE or ESS, without being migrated to use sliders, is not supported.
|
|
34
65
|
*
|
|
35
|
-
*
|
|
66
|
+
* > **Note on pre 6.6.0 deployments** Importing deployments with a version lower than `6.6.0` is not supported.
|
|
36
67
|
*
|
|
37
|
-
*
|
|
68
|
+
* > **Note on deployments with topology user settings** Only deployments with global user settings (config) are supported. Make sure to migrate to global settings before importing.
|
|
38
69
|
*
|
|
39
70
|
* Deployments can be imported using the `id`, for example:
|
|
40
71
|
*
|
|
@@ -53,8 +84,10 @@ class Deployment extends pulumi.CustomResource {
|
|
|
53
84
|
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
54
85
|
*/
|
|
55
86
|
static get(name, id, state, opts) {
|
|
56
|
-
return new Deployment(name, state,
|
|
87
|
+
return new Deployment(name, state, { ...opts, id: id });
|
|
57
88
|
}
|
|
89
|
+
/** @internal */
|
|
90
|
+
static __pulumiType = 'ec:index/deployment:Deployment';
|
|
58
91
|
/**
|
|
59
92
|
* Returns true if the given object is an instance of Deployment. This is designed to work even
|
|
60
93
|
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
@@ -70,56 +103,58 @@ class Deployment extends pulumi.CustomResource {
|
|
|
70
103
|
opts = opts || {};
|
|
71
104
|
if (opts.id) {
|
|
72
105
|
const state = argsOrState;
|
|
73
|
-
resourceInputs["alias"] = state
|
|
74
|
-
resourceInputs["apm"] = state
|
|
75
|
-
resourceInputs["apmSecretToken"] = state
|
|
76
|
-
resourceInputs["deploymentTemplateId"] = state
|
|
77
|
-
resourceInputs["elasticsearch"] = state
|
|
78
|
-
resourceInputs["elasticsearchPassword"] = state
|
|
79
|
-
resourceInputs["elasticsearchUsername"] = state
|
|
80
|
-
resourceInputs["
|
|
81
|
-
resourceInputs["
|
|
82
|
-
resourceInputs["
|
|
83
|
-
resourceInputs["
|
|
84
|
-
resourceInputs["
|
|
85
|
-
resourceInputs["
|
|
86
|
-
resourceInputs["
|
|
87
|
-
resourceInputs["
|
|
88
|
-
resourceInputs["
|
|
89
|
-
resourceInputs["
|
|
90
|
-
resourceInputs["
|
|
91
|
-
resourceInputs["
|
|
106
|
+
resourceInputs["alias"] = state?.alias;
|
|
107
|
+
resourceInputs["apm"] = state?.apm;
|
|
108
|
+
resourceInputs["apmSecretToken"] = state?.apmSecretToken;
|
|
109
|
+
resourceInputs["deploymentTemplateId"] = state?.deploymentTemplateId;
|
|
110
|
+
resourceInputs["elasticsearch"] = state?.elasticsearch;
|
|
111
|
+
resourceInputs["elasticsearchPassword"] = state?.elasticsearchPassword;
|
|
112
|
+
resourceInputs["elasticsearchUsername"] = state?.elasticsearchUsername;
|
|
113
|
+
resourceInputs["encryptionKeyPath"] = state?.encryptionKeyPath;
|
|
114
|
+
resourceInputs["enterpriseSearch"] = state?.enterpriseSearch;
|
|
115
|
+
resourceInputs["integrationsServer"] = state?.integrationsServer;
|
|
116
|
+
resourceInputs["kibana"] = state?.kibana;
|
|
117
|
+
resourceInputs["migrateToLatestHardware"] = state?.migrateToLatestHardware;
|
|
118
|
+
resourceInputs["name"] = state?.name;
|
|
119
|
+
resourceInputs["observability"] = state?.observability;
|
|
120
|
+
resourceInputs["region"] = state?.region;
|
|
121
|
+
resourceInputs["requestId"] = state?.requestId;
|
|
122
|
+
resourceInputs["resetElasticsearchPassword"] = state?.resetElasticsearchPassword;
|
|
123
|
+
resourceInputs["tags"] = state?.tags;
|
|
124
|
+
resourceInputs["trafficFilters"] = state?.trafficFilters;
|
|
125
|
+
resourceInputs["version"] = state?.version;
|
|
92
126
|
}
|
|
93
127
|
else {
|
|
94
128
|
const args = argsOrState;
|
|
95
|
-
if (
|
|
129
|
+
if (args?.deploymentTemplateId === undefined && !opts.urn) {
|
|
96
130
|
throw new Error("Missing required property 'deploymentTemplateId'");
|
|
97
131
|
}
|
|
98
|
-
if (
|
|
132
|
+
if (args?.elasticsearch === undefined && !opts.urn) {
|
|
99
133
|
throw new Error("Missing required property 'elasticsearch'");
|
|
100
134
|
}
|
|
101
|
-
if (
|
|
135
|
+
if (args?.region === undefined && !opts.urn) {
|
|
102
136
|
throw new Error("Missing required property 'region'");
|
|
103
137
|
}
|
|
104
|
-
if (
|
|
138
|
+
if (args?.version === undefined && !opts.urn) {
|
|
105
139
|
throw new Error("Missing required property 'version'");
|
|
106
140
|
}
|
|
107
|
-
resourceInputs["alias"] = args
|
|
108
|
-
resourceInputs["apm"] = args
|
|
109
|
-
resourceInputs["deploymentTemplateId"] = args
|
|
110
|
-
resourceInputs["elasticsearch"] = args
|
|
111
|
-
resourceInputs["
|
|
112
|
-
resourceInputs["
|
|
113
|
-
resourceInputs["
|
|
114
|
-
resourceInputs["
|
|
115
|
-
resourceInputs["
|
|
116
|
-
resourceInputs["
|
|
117
|
-
resourceInputs["
|
|
118
|
-
resourceInputs["
|
|
119
|
-
resourceInputs["
|
|
120
|
-
resourceInputs["
|
|
121
|
-
resourceInputs["
|
|
122
|
-
resourceInputs["
|
|
141
|
+
resourceInputs["alias"] = args?.alias;
|
|
142
|
+
resourceInputs["apm"] = args?.apm;
|
|
143
|
+
resourceInputs["deploymentTemplateId"] = args?.deploymentTemplateId;
|
|
144
|
+
resourceInputs["elasticsearch"] = args?.elasticsearch;
|
|
145
|
+
resourceInputs["encryptionKeyPath"] = args?.encryptionKeyPath;
|
|
146
|
+
resourceInputs["enterpriseSearch"] = args?.enterpriseSearch;
|
|
147
|
+
resourceInputs["integrationsServer"] = args?.integrationsServer;
|
|
148
|
+
resourceInputs["kibana"] = args?.kibana;
|
|
149
|
+
resourceInputs["migrateToLatestHardware"] = args?.migrateToLatestHardware;
|
|
150
|
+
resourceInputs["name"] = args?.name;
|
|
151
|
+
resourceInputs["observability"] = args?.observability;
|
|
152
|
+
resourceInputs["region"] = args?.region;
|
|
153
|
+
resourceInputs["requestId"] = args?.requestId;
|
|
154
|
+
resourceInputs["resetElasticsearchPassword"] = args?.resetElasticsearchPassword;
|
|
155
|
+
resourceInputs["tags"] = args?.tags;
|
|
156
|
+
resourceInputs["trafficFilters"] = args?.trafficFilters;
|
|
157
|
+
resourceInputs["version"] = args?.version;
|
|
123
158
|
resourceInputs["apmSecretToken"] = undefined /*out*/;
|
|
124
159
|
resourceInputs["elasticsearchPassword"] = undefined /*out*/;
|
|
125
160
|
resourceInputs["elasticsearchUsername"] = undefined /*out*/;
|
|
@@ -131,6 +166,4 @@ class Deployment extends pulumi.CustomResource {
|
|
|
131
166
|
}
|
|
132
167
|
}
|
|
133
168
|
exports.Deployment = Deployment;
|
|
134
|
-
/** @internal */
|
|
135
|
-
Deployment.__pulumiType = 'ec:index/deployment:Deployment';
|
|
136
169
|
//# sourceMappingURL=deployment.js.map
|