From 05f1f9c7b0c74aac06723c6891e01db5ef7c0b99 Mon Sep 17 00:00:00 2001 From: pulumi-bot Date: Mon, 9 Dec 2024 19:34:57 +0000 Subject: [PATCH 1/2] make tfgen --- examples/go.mod | 4 ++-- examples/go.sum | 8 +++---- provider/cmd/pulumi-resource-ec/schema.json | 24 ++++++++++----------- provider/go.mod | 10 ++++----- provider/go.sum | 20 ++++++++--------- sdk/go.mod | 2 +- sdk/go.sum | 4 ++-- 7 files changed, 36 insertions(+), 36 deletions(-) diff --git a/examples/go.mod b/examples/go.mod index 68983d9..56853df 100644 --- a/examples/go.mod +++ b/examples/go.mod @@ -2,7 +2,7 @@ module github.com/pulumi/pulumi-ec/examples go 1.21 -require github.com/pulumi/pulumi/pkg/v3 v3.140.0 +require github.com/pulumi/pulumi/pkg/v3 v3.142.0 require ( cloud.google.com/go v0.112.1 // indirect @@ -123,7 +123,7 @@ require ( github.com/pmezard/go-difflib v1.0.0 // indirect github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231 // indirect github.com/pulumi/esc v0.10.0 // indirect - github.com/pulumi/pulumi/sdk/v3 v3.140.0 // indirect + github.com/pulumi/pulumi/sdk/v3 v3.142.0 // indirect github.com/rivo/uniseg v0.4.4 // indirect github.com/rogpeppe/go-internal v1.12.0 // indirect github.com/ryanuber/go-glob v1.0.0 // indirect diff --git a/examples/go.sum b/examples/go.sum index e2374cd..304740d 100644 --- a/examples/go.sum +++ b/examples/go.sum @@ -339,10 +339,10 @@ github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231 h1:vkHw5I/plNdTr435 github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231/go.mod h1:murToZ2N9hNJzewjHBgfFdXhZKjY3z5cYC1VXk+lbFE= github.com/pulumi/esc v0.10.0 h1:jzBKzkLVW0mePeanDRfqSQoCJ5yrkux0jIwAkUxpRKE= github.com/pulumi/esc v0.10.0/go.mod h1:2Bfa+FWj/xl8CKqRTWbWgDX0SOD4opdQgvYSURTGK2c= -github.com/pulumi/pulumi/pkg/v3 v3.140.0 h1:/bvHa19HY/6qHWvuAOVII8qr72MDGGczBWlPYlPo3j0= -github.com/pulumi/pulumi/pkg/v3 v3.140.0/go.mod h1:rcTtSyisd7BzZTugNk/s9zlYgX9S0S10+pha3Tko6yM= -github.com/pulumi/pulumi/sdk/v3 v3.140.0 h1:+Z/RBvdYg7tBNkBwk4p/FzlV7niBT3TbLAICq/Y0LDU= -github.com/pulumi/pulumi/sdk/v3 v3.140.0/go.mod h1:PvKsX88co8XuwuPdzolMvew5lZV+4JmZfkeSjj7A6dI= +github.com/pulumi/pulumi/pkg/v3 v3.142.0 h1:UE8TFyXrlxvPrATpd3Kl3En34KrFIFWOxxNAodywPNU= +github.com/pulumi/pulumi/pkg/v3 v3.142.0/go.mod h1:3k6WwRIT7veiDnk3Yo2NtqEYX+4dgLCrMIFvEOnjQqI= +github.com/pulumi/pulumi/sdk/v3 v3.142.0 h1:SmcVddGuvwAh3g3XUVQQ5gVRQUKH1yZ6iETpDNHIHlw= +github.com/pulumi/pulumi/sdk/v3 v3.142.0/go.mod h1:PvKsX88co8XuwuPdzolMvew5lZV+4JmZfkeSjj7A6dI= github.com/rivo/uniseg v0.1.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc= github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc= github.com/rivo/uniseg v0.4.4 h1:8TfxU8dW6PdqD27gjM8MVNuicgxIjxpm4K7x4jp8sis= diff --git a/provider/cmd/pulumi-resource-ec/schema.json b/provider/cmd/pulumi-resource-ec/schema.json index 832226c..928b140 100644 --- a/provider/cmd/pulumi-resource-ec/schema.json +++ b/provider/cmd/pulumi-resource-ec/schema.json @@ -4463,7 +4463,7 @@ } }, "ec:index/deploymentElasticsearchKeystore:DeploymentElasticsearchKeystore": { - "description": "## Example Usage\n\n### Basic\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as ec from \"@pulumi/ec\";\nimport * as std from \"@pulumi/std\";\n\nconst latest = ec.getStack({\n versionRegex: \"latest\",\n region: \"us-east-1\",\n});\n// Create an Elastic Cloud deployment\nconst exampleKeystore = new ec.Deployment(\"example_keystore\", {\n region: \"us-east-1\",\n version: latest.then(latest =\u003e latest.version),\n deploymentTemplateId: \"aws-io-optimized-v2\",\n elasticsearch: {\n hot: {\n autoscaling: {},\n },\n },\n});\n// Create the keystore secret entry\nconst gcsCredential = new ec.DeploymentElasticsearchKeystore(\"gcs_credential\", {\n deploymentId: exampleKeystore.id,\n settingName: \"gcs.client.default.credentials_file\",\n value: std.file({\n input: \"service-account-key.json\",\n }).then(invoke =\u003e invoke.result),\n asFile: true,\n});\n```\n```python\nimport pulumi\nimport pulumi_ec as ec\nimport pulumi_std as std\n\nlatest = ec.get_stack(version_regex=\"latest\",\n region=\"us-east-1\")\n# Create an Elastic Cloud deployment\nexample_keystore = ec.Deployment(\"example_keystore\",\n region=\"us-east-1\",\n version=latest.version,\n deployment_template_id=\"aws-io-optimized-v2\",\n elasticsearch={\n \"hot\": {\n \"autoscaling\": {},\n },\n })\n# Create the keystore secret entry\ngcs_credential = ec.DeploymentElasticsearchKeystore(\"gcs_credential\",\n deployment_id=example_keystore.id,\n setting_name=\"gcs.client.default.credentials_file\",\n value=std.file(input=\"service-account-key.json\").result,\n as_file=True)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing ElasticCloud = Pulumi.ElasticCloud;\nusing Std = Pulumi.Std;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var latest = ElasticCloud.GetStack.Invoke(new()\n {\n VersionRegex = \"latest\",\n Region = \"us-east-1\",\n });\n\n // Create an Elastic Cloud deployment\n var exampleKeystore = new ElasticCloud.Deployment(\"example_keystore\", new()\n {\n Region = \"us-east-1\",\n Version = latest.Apply(getStackResult =\u003e getStackResult.Version),\n DeploymentTemplateId = \"aws-io-optimized-v2\",\n Elasticsearch = new ElasticCloud.Inputs.DeploymentElasticsearchArgs\n {\n Hot = new ElasticCloud.Inputs.DeploymentElasticsearchHotArgs\n {\n Autoscaling = null,\n },\n },\n });\n\n // Create the keystore secret entry\n var gcsCredential = new ElasticCloud.DeploymentElasticsearchKeystore(\"gcs_credential\", new()\n {\n DeploymentId = exampleKeystore.Id,\n SettingName = \"gcs.client.default.credentials_file\",\n Value = Std.File.Invoke(new()\n {\n Input = \"service-account-key.json\",\n }).Apply(invoke =\u003e invoke.Result),\n AsFile = true,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-ec/sdk/go/ec\"\n\t\"github.com/pulumi/pulumi-std/sdk/go/std\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tlatest, err := ec.GetStack(ctx, \u0026ec.GetStackArgs{\n\t\t\tVersionRegex: \"latest\",\n\t\t\tRegion: \"us-east-1\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t// Create an Elastic Cloud deployment\n\t\texampleKeystore, err := ec.NewDeployment(ctx, \"example_keystore\", \u0026ec.DeploymentArgs{\n\t\t\tRegion: pulumi.String(\"us-east-1\"),\n\t\t\tVersion: pulumi.String(latest.Version),\n\t\t\tDeploymentTemplateId: pulumi.String(\"aws-io-optimized-v2\"),\n\t\t\tElasticsearch: \u0026ec.DeploymentElasticsearchArgs{\n\t\t\t\tHot: \u0026ec.DeploymentElasticsearchHotArgs{\n\t\t\t\t\tAutoscaling: \u0026ec.DeploymentElasticsearchHotAutoscalingArgs{},\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tinvokeFile, err := std.File(ctx, \u0026std.FileArgs{\n\t\t\tInput: \"service-account-key.json\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t// Create the keystore secret entry\n\t\t_, err = ec.NewDeploymentElasticsearchKeystore(ctx, \"gcs_credential\", \u0026ec.DeploymentElasticsearchKeystoreArgs{\n\t\t\tDeploymentId: exampleKeystore.ID(),\n\t\t\tSettingName: pulumi.String(\"gcs.client.default.credentials_file\"),\n\t\t\tValue: pulumi.String(invokeFile.Result),\n\t\t\tAsFile: pulumi.Bool(true),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.ec.EcFunctions;\nimport com.pulumi.ec.inputs.GetStackArgs;\nimport com.pulumi.ec.Deployment;\nimport com.pulumi.ec.DeploymentArgs;\nimport com.pulumi.ec.inputs.DeploymentElasticsearchArgs;\nimport com.pulumi.ec.inputs.DeploymentElasticsearchHotArgs;\nimport com.pulumi.ec.inputs.DeploymentElasticsearchHotAutoscalingArgs;\nimport com.pulumi.ec.DeploymentElasticsearchKeystore;\nimport com.pulumi.ec.DeploymentElasticsearchKeystoreArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var latest = EcFunctions.getStack(GetStackArgs.builder()\n .versionRegex(\"latest\")\n .region(\"us-east-1\")\n .build());\n\n // Create an Elastic Cloud deployment\n var exampleKeystore = new Deployment(\"exampleKeystore\", DeploymentArgs.builder()\n .region(\"us-east-1\")\n .version(latest.applyValue(getStackResult -\u003e getStackResult.version()))\n .deploymentTemplateId(\"aws-io-optimized-v2\")\n .elasticsearch(DeploymentElasticsearchArgs.builder()\n .hot(DeploymentElasticsearchHotArgs.builder()\n .autoscaling()\n .build())\n .build())\n .build());\n\n // Create the keystore secret entry\n var gcsCredential = new DeploymentElasticsearchKeystore(\"gcsCredential\", DeploymentElasticsearchKeystoreArgs.builder()\n .deploymentId(exampleKeystore.id())\n .settingName(\"gcs.client.default.credentials_file\")\n .value(StdFunctions.file(FileArgs.builder()\n .input(\"service-account-key.json\")\n .build()).result())\n .asFile(true)\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create an Elastic Cloud deployment\n exampleKeystore:\n type: ec:Deployment\n name: example_keystore\n properties:\n region: us-east-1\n version: ${latest.version}\n deploymentTemplateId: aws-io-optimized-v2\n elasticsearch:\n hot:\n autoscaling: {}\n # Create the keystore secret entry\n gcsCredential:\n type: ec:DeploymentElasticsearchKeystore\n name: gcs_credential\n properties:\n deploymentId: ${exampleKeystore.id}\n settingName: gcs.client.default.credentials_file\n value:\n fn::invoke:\n Function: std:file\n Arguments:\n input: service-account-key.json\n Return: result\n asFile: true\nvariables:\n latest:\n fn::invoke:\n Function: ec:getStack\n Arguments:\n versionRegex: latest\n region: us-east-1\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n### Adding credentials to use GCS as a snapshot repository\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as ec from \"@pulumi/ec\";\nimport * as std from \"@pulumi/std\";\n\nconst latest = ec.getStack({\n versionRegex: \"latest\",\n region: \"us-east-1\",\n});\n// Create an Elastic Cloud deployment\nconst exampleKeystore = new ec.Deployment(\"example_keystore\", {\n region: \"us-east-1\",\n version: latest.then(latest =\u003e latest.version),\n deploymentTemplateId: \"aws-io-optimized-v2\",\n elasticsearch: {\n hot: {\n autoscaling: {},\n },\n },\n});\n// Create the keystore secret entry\nconst gcsCredential = new ec.DeploymentElasticsearchKeystore(\"gcs_credential\", {\n deploymentId: exampleKeystore.id,\n settingName: \"gcs.client.default.credentials_file\",\n value: std.file({\n input: \"service-account-key.json\",\n }).then(invoke =\u003e invoke.result),\n asFile: true,\n});\n```\n```python\nimport pulumi\nimport pulumi_ec as ec\nimport pulumi_std as std\n\nlatest = ec.get_stack(version_regex=\"latest\",\n region=\"us-east-1\")\n# Create an Elastic Cloud deployment\nexample_keystore = ec.Deployment(\"example_keystore\",\n region=\"us-east-1\",\n version=latest.version,\n deployment_template_id=\"aws-io-optimized-v2\",\n elasticsearch={\n \"hot\": {\n \"autoscaling\": {},\n },\n })\n# Create the keystore secret entry\ngcs_credential = ec.DeploymentElasticsearchKeystore(\"gcs_credential\",\n deployment_id=example_keystore.id,\n setting_name=\"gcs.client.default.credentials_file\",\n value=std.file(input=\"service-account-key.json\").result,\n as_file=True)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing ElasticCloud = Pulumi.ElasticCloud;\nusing Std = Pulumi.Std;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var latest = ElasticCloud.GetStack.Invoke(new()\n {\n VersionRegex = \"latest\",\n Region = \"us-east-1\",\n });\n\n // Create an Elastic Cloud deployment\n var exampleKeystore = new ElasticCloud.Deployment(\"example_keystore\", new()\n {\n Region = \"us-east-1\",\n Version = latest.Apply(getStackResult =\u003e getStackResult.Version),\n DeploymentTemplateId = \"aws-io-optimized-v2\",\n Elasticsearch = new ElasticCloud.Inputs.DeploymentElasticsearchArgs\n {\n Hot = new ElasticCloud.Inputs.DeploymentElasticsearchHotArgs\n {\n Autoscaling = null,\n },\n },\n });\n\n // Create the keystore secret entry\n var gcsCredential = new ElasticCloud.DeploymentElasticsearchKeystore(\"gcs_credential\", new()\n {\n DeploymentId = exampleKeystore.Id,\n SettingName = \"gcs.client.default.credentials_file\",\n Value = Std.File.Invoke(new()\n {\n Input = \"service-account-key.json\",\n }).Apply(invoke =\u003e invoke.Result),\n AsFile = true,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-ec/sdk/go/ec\"\n\t\"github.com/pulumi/pulumi-std/sdk/go/std\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tlatest, err := ec.GetStack(ctx, \u0026ec.GetStackArgs{\n\t\t\tVersionRegex: \"latest\",\n\t\t\tRegion: \"us-east-1\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t// Create an Elastic Cloud deployment\n\t\texampleKeystore, err := ec.NewDeployment(ctx, \"example_keystore\", \u0026ec.DeploymentArgs{\n\t\t\tRegion: pulumi.String(\"us-east-1\"),\n\t\t\tVersion: pulumi.String(latest.Version),\n\t\t\tDeploymentTemplateId: pulumi.String(\"aws-io-optimized-v2\"),\n\t\t\tElasticsearch: \u0026ec.DeploymentElasticsearchArgs{\n\t\t\t\tHot: \u0026ec.DeploymentElasticsearchHotArgs{\n\t\t\t\t\tAutoscaling: \u0026ec.DeploymentElasticsearchHotAutoscalingArgs{},\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tinvokeFile, err := std.File(ctx, \u0026std.FileArgs{\n\t\t\tInput: \"service-account-key.json\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t// Create the keystore secret entry\n\t\t_, err = ec.NewDeploymentElasticsearchKeystore(ctx, \"gcs_credential\", \u0026ec.DeploymentElasticsearchKeystoreArgs{\n\t\t\tDeploymentId: exampleKeystore.ID(),\n\t\t\tSettingName: pulumi.String(\"gcs.client.default.credentials_file\"),\n\t\t\tValue: pulumi.String(invokeFile.Result),\n\t\t\tAsFile: pulumi.Bool(true),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.ec.EcFunctions;\nimport com.pulumi.ec.inputs.GetStackArgs;\nimport com.pulumi.ec.Deployment;\nimport com.pulumi.ec.DeploymentArgs;\nimport com.pulumi.ec.inputs.DeploymentElasticsearchArgs;\nimport com.pulumi.ec.inputs.DeploymentElasticsearchHotArgs;\nimport com.pulumi.ec.inputs.DeploymentElasticsearchHotAutoscalingArgs;\nimport com.pulumi.ec.DeploymentElasticsearchKeystore;\nimport com.pulumi.ec.DeploymentElasticsearchKeystoreArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var latest = EcFunctions.getStack(GetStackArgs.builder()\n .versionRegex(\"latest\")\n .region(\"us-east-1\")\n .build());\n\n // Create an Elastic Cloud deployment\n var exampleKeystore = new Deployment(\"exampleKeystore\", DeploymentArgs.builder()\n .region(\"us-east-1\")\n .version(latest.applyValue(getStackResult -\u003e getStackResult.version()))\n .deploymentTemplateId(\"aws-io-optimized-v2\")\n .elasticsearch(DeploymentElasticsearchArgs.builder()\n .hot(DeploymentElasticsearchHotArgs.builder()\n .autoscaling()\n .build())\n .build())\n .build());\n\n // Create the keystore secret entry\n var gcsCredential = new DeploymentElasticsearchKeystore(\"gcsCredential\", DeploymentElasticsearchKeystoreArgs.builder()\n .deploymentId(exampleKeystore.id())\n .settingName(\"gcs.client.default.credentials_file\")\n .value(StdFunctions.file(FileArgs.builder()\n .input(\"service-account-key.json\")\n .build()).result())\n .asFile(true)\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create an Elastic Cloud deployment\n exampleKeystore:\n type: ec:Deployment\n name: example_keystore\n properties:\n region: us-east-1\n version: ${latest.version}\n deploymentTemplateId: aws-io-optimized-v2\n elasticsearch:\n hot:\n autoscaling: {}\n # Create the keystore secret entry\n gcsCredential:\n type: ec:DeploymentElasticsearchKeystore\n name: gcs_credential\n properties:\n deploymentId: ${exampleKeystore.id}\n settingName: gcs.client.default.credentials_file\n value:\n fn::invoke:\n Function: std:file\n Arguments:\n input: service-account-key.json\n Return: result\n asFile: true\nvariables:\n latest:\n fn::invoke:\n Function: ec:getStack\n Arguments:\n versionRegex: latest\n region: us-east-1\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nThis resource cannot be imported\n\n", + "description": "## Example Usage\n\n### Basic\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as ec from \"@pulumi/ec\";\nimport * as std from \"@pulumi/std\";\n\nconst latest = ec.getStack({\n versionRegex: \"latest\",\n region: \"us-east-1\",\n});\n// Create an Elastic Cloud deployment\nconst exampleKeystore = new ec.Deployment(\"example_keystore\", {\n region: \"us-east-1\",\n version: latest.then(latest =\u003e latest.version),\n deploymentTemplateId: \"aws-io-optimized-v2\",\n elasticsearch: {\n hot: {\n autoscaling: {},\n },\n },\n});\n// Create the keystore secret entry\nconst gcsCredential = new ec.DeploymentElasticsearchKeystore(\"gcs_credential\", {\n deploymentId: exampleKeystore.id,\n settingName: \"gcs.client.default.credentials_file\",\n value: std.file({\n input: \"service-account-key.json\",\n }).then(invoke =\u003e invoke.result),\n asFile: true,\n});\n```\n```python\nimport pulumi\nimport pulumi_ec as ec\nimport pulumi_std as std\n\nlatest = ec.get_stack(version_regex=\"latest\",\n region=\"us-east-1\")\n# Create an Elastic Cloud deployment\nexample_keystore = ec.Deployment(\"example_keystore\",\n region=\"us-east-1\",\n version=latest.version,\n deployment_template_id=\"aws-io-optimized-v2\",\n elasticsearch={\n \"hot\": {\n \"autoscaling\": {},\n },\n })\n# Create the keystore secret entry\ngcs_credential = ec.DeploymentElasticsearchKeystore(\"gcs_credential\",\n deployment_id=example_keystore.id,\n setting_name=\"gcs.client.default.credentials_file\",\n value=std.file(input=\"service-account-key.json\").result,\n as_file=True)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing ElasticCloud = Pulumi.ElasticCloud;\nusing Std = Pulumi.Std;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var latest = ElasticCloud.GetStack.Invoke(new()\n {\n VersionRegex = \"latest\",\n Region = \"us-east-1\",\n });\n\n // Create an Elastic Cloud deployment\n var exampleKeystore = new ElasticCloud.Deployment(\"example_keystore\", new()\n {\n Region = \"us-east-1\",\n Version = latest.Apply(getStackResult =\u003e getStackResult.Version),\n DeploymentTemplateId = \"aws-io-optimized-v2\",\n Elasticsearch = new ElasticCloud.Inputs.DeploymentElasticsearchArgs\n {\n Hot = new ElasticCloud.Inputs.DeploymentElasticsearchHotArgs\n {\n Autoscaling = null,\n },\n },\n });\n\n // Create the keystore secret entry\n var gcsCredential = new ElasticCloud.DeploymentElasticsearchKeystore(\"gcs_credential\", new()\n {\n DeploymentId = exampleKeystore.Id,\n SettingName = \"gcs.client.default.credentials_file\",\n Value = Std.File.Invoke(new()\n {\n Input = \"service-account-key.json\",\n }).Apply(invoke =\u003e invoke.Result),\n AsFile = true,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-ec/sdk/go/ec\"\n\t\"github.com/pulumi/pulumi-std/sdk/go/std\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tlatest, err := ec.GetStack(ctx, \u0026ec.GetStackArgs{\n\t\t\tVersionRegex: \"latest\",\n\t\t\tRegion: \"us-east-1\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t// Create an Elastic Cloud deployment\n\t\texampleKeystore, err := ec.NewDeployment(ctx, \"example_keystore\", \u0026ec.DeploymentArgs{\n\t\t\tRegion: pulumi.String(\"us-east-1\"),\n\t\t\tVersion: pulumi.String(latest.Version),\n\t\t\tDeploymentTemplateId: pulumi.String(\"aws-io-optimized-v2\"),\n\t\t\tElasticsearch: \u0026ec.DeploymentElasticsearchArgs{\n\t\t\t\tHot: \u0026ec.DeploymentElasticsearchHotArgs{\n\t\t\t\t\tAutoscaling: \u0026ec.DeploymentElasticsearchHotAutoscalingArgs{},\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tinvokeFile, err := std.File(ctx, \u0026std.FileArgs{\n\t\t\tInput: \"service-account-key.json\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t// Create the keystore secret entry\n\t\t_, err = ec.NewDeploymentElasticsearchKeystore(ctx, \"gcs_credential\", \u0026ec.DeploymentElasticsearchKeystoreArgs{\n\t\t\tDeploymentId: exampleKeystore.ID(),\n\t\t\tSettingName: pulumi.String(\"gcs.client.default.credentials_file\"),\n\t\t\tValue: pulumi.String(invokeFile.Result),\n\t\t\tAsFile: pulumi.Bool(true),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.ec.EcFunctions;\nimport com.pulumi.ec.inputs.GetStackArgs;\nimport com.pulumi.ec.Deployment;\nimport com.pulumi.ec.DeploymentArgs;\nimport com.pulumi.ec.inputs.DeploymentElasticsearchArgs;\nimport com.pulumi.ec.inputs.DeploymentElasticsearchHotArgs;\nimport com.pulumi.ec.inputs.DeploymentElasticsearchHotAutoscalingArgs;\nimport com.pulumi.ec.DeploymentElasticsearchKeystore;\nimport com.pulumi.ec.DeploymentElasticsearchKeystoreArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var latest = EcFunctions.getStack(GetStackArgs.builder()\n .versionRegex(\"latest\")\n .region(\"us-east-1\")\n .build());\n\n // Create an Elastic Cloud deployment\n var exampleKeystore = new Deployment(\"exampleKeystore\", DeploymentArgs.builder()\n .region(\"us-east-1\")\n .version(latest.applyValue(getStackResult -\u003e getStackResult.version()))\n .deploymentTemplateId(\"aws-io-optimized-v2\")\n .elasticsearch(DeploymentElasticsearchArgs.builder()\n .hot(DeploymentElasticsearchHotArgs.builder()\n .autoscaling()\n .build())\n .build())\n .build());\n\n // Create the keystore secret entry\n var gcsCredential = new DeploymentElasticsearchKeystore(\"gcsCredential\", DeploymentElasticsearchKeystoreArgs.builder()\n .deploymentId(exampleKeystore.id())\n .settingName(\"gcs.client.default.credentials_file\")\n .value(StdFunctions.file(FileArgs.builder()\n .input(\"service-account-key.json\")\n .build()).result())\n .asFile(true)\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create an Elastic Cloud deployment\n exampleKeystore:\n type: ec:Deployment\n name: example_keystore\n properties:\n region: us-east-1\n version: ${latest.version}\n deploymentTemplateId: aws-io-optimized-v2\n elasticsearch:\n hot:\n autoscaling: {}\n # Create the keystore secret entry\n gcsCredential:\n type: ec:DeploymentElasticsearchKeystore\n name: gcs_credential\n properties:\n deploymentId: ${exampleKeystore.id}\n settingName: gcs.client.default.credentials_file\n value:\n fn::invoke:\n function: std:file\n arguments:\n input: service-account-key.json\n return: result\n asFile: true\nvariables:\n latest:\n fn::invoke:\n function: ec:getStack\n arguments:\n versionRegex: latest\n region: us-east-1\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n### Adding credentials to use GCS as a snapshot repository\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as ec from \"@pulumi/ec\";\nimport * as std from \"@pulumi/std\";\n\nconst latest = ec.getStack({\n versionRegex: \"latest\",\n region: \"us-east-1\",\n});\n// Create an Elastic Cloud deployment\nconst exampleKeystore = new ec.Deployment(\"example_keystore\", {\n region: \"us-east-1\",\n version: latest.then(latest =\u003e latest.version),\n deploymentTemplateId: \"aws-io-optimized-v2\",\n elasticsearch: {\n hot: {\n autoscaling: {},\n },\n },\n});\n// Create the keystore secret entry\nconst gcsCredential = new ec.DeploymentElasticsearchKeystore(\"gcs_credential\", {\n deploymentId: exampleKeystore.id,\n settingName: \"gcs.client.default.credentials_file\",\n value: std.file({\n input: \"service-account-key.json\",\n }).then(invoke =\u003e invoke.result),\n asFile: true,\n});\n```\n```python\nimport pulumi\nimport pulumi_ec as ec\nimport pulumi_std as std\n\nlatest = ec.get_stack(version_regex=\"latest\",\n region=\"us-east-1\")\n# Create an Elastic Cloud deployment\nexample_keystore = ec.Deployment(\"example_keystore\",\n region=\"us-east-1\",\n version=latest.version,\n deployment_template_id=\"aws-io-optimized-v2\",\n elasticsearch={\n \"hot\": {\n \"autoscaling\": {},\n },\n })\n# Create the keystore secret entry\ngcs_credential = ec.DeploymentElasticsearchKeystore(\"gcs_credential\",\n deployment_id=example_keystore.id,\n setting_name=\"gcs.client.default.credentials_file\",\n value=std.file(input=\"service-account-key.json\").result,\n as_file=True)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing ElasticCloud = Pulumi.ElasticCloud;\nusing Std = Pulumi.Std;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var latest = ElasticCloud.GetStack.Invoke(new()\n {\n VersionRegex = \"latest\",\n Region = \"us-east-1\",\n });\n\n // Create an Elastic Cloud deployment\n var exampleKeystore = new ElasticCloud.Deployment(\"example_keystore\", new()\n {\n Region = \"us-east-1\",\n Version = latest.Apply(getStackResult =\u003e getStackResult.Version),\n DeploymentTemplateId = \"aws-io-optimized-v2\",\n Elasticsearch = new ElasticCloud.Inputs.DeploymentElasticsearchArgs\n {\n Hot = new ElasticCloud.Inputs.DeploymentElasticsearchHotArgs\n {\n Autoscaling = null,\n },\n },\n });\n\n // Create the keystore secret entry\n var gcsCredential = new ElasticCloud.DeploymentElasticsearchKeystore(\"gcs_credential\", new()\n {\n DeploymentId = exampleKeystore.Id,\n SettingName = \"gcs.client.default.credentials_file\",\n Value = Std.File.Invoke(new()\n {\n Input = \"service-account-key.json\",\n }).Apply(invoke =\u003e invoke.Result),\n AsFile = true,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-ec/sdk/go/ec\"\n\t\"github.com/pulumi/pulumi-std/sdk/go/std\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tlatest, err := ec.GetStack(ctx, \u0026ec.GetStackArgs{\n\t\t\tVersionRegex: \"latest\",\n\t\t\tRegion: \"us-east-1\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t// Create an Elastic Cloud deployment\n\t\texampleKeystore, err := ec.NewDeployment(ctx, \"example_keystore\", \u0026ec.DeploymentArgs{\n\t\t\tRegion: pulumi.String(\"us-east-1\"),\n\t\t\tVersion: pulumi.String(latest.Version),\n\t\t\tDeploymentTemplateId: pulumi.String(\"aws-io-optimized-v2\"),\n\t\t\tElasticsearch: \u0026ec.DeploymentElasticsearchArgs{\n\t\t\t\tHot: \u0026ec.DeploymentElasticsearchHotArgs{\n\t\t\t\t\tAutoscaling: \u0026ec.DeploymentElasticsearchHotAutoscalingArgs{},\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tinvokeFile, err := std.File(ctx, \u0026std.FileArgs{\n\t\t\tInput: \"service-account-key.json\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t// Create the keystore secret entry\n\t\t_, err = ec.NewDeploymentElasticsearchKeystore(ctx, \"gcs_credential\", \u0026ec.DeploymentElasticsearchKeystoreArgs{\n\t\t\tDeploymentId: exampleKeystore.ID(),\n\t\t\tSettingName: pulumi.String(\"gcs.client.default.credentials_file\"),\n\t\t\tValue: pulumi.String(invokeFile.Result),\n\t\t\tAsFile: pulumi.Bool(true),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.ec.EcFunctions;\nimport com.pulumi.ec.inputs.GetStackArgs;\nimport com.pulumi.ec.Deployment;\nimport com.pulumi.ec.DeploymentArgs;\nimport com.pulumi.ec.inputs.DeploymentElasticsearchArgs;\nimport com.pulumi.ec.inputs.DeploymentElasticsearchHotArgs;\nimport com.pulumi.ec.inputs.DeploymentElasticsearchHotAutoscalingArgs;\nimport com.pulumi.ec.DeploymentElasticsearchKeystore;\nimport com.pulumi.ec.DeploymentElasticsearchKeystoreArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var latest = EcFunctions.getStack(GetStackArgs.builder()\n .versionRegex(\"latest\")\n .region(\"us-east-1\")\n .build());\n\n // Create an Elastic Cloud deployment\n var exampleKeystore = new Deployment(\"exampleKeystore\", DeploymentArgs.builder()\n .region(\"us-east-1\")\n .version(latest.applyValue(getStackResult -\u003e getStackResult.version()))\n .deploymentTemplateId(\"aws-io-optimized-v2\")\n .elasticsearch(DeploymentElasticsearchArgs.builder()\n .hot(DeploymentElasticsearchHotArgs.builder()\n .autoscaling()\n .build())\n .build())\n .build());\n\n // Create the keystore secret entry\n var gcsCredential = new DeploymentElasticsearchKeystore(\"gcsCredential\", DeploymentElasticsearchKeystoreArgs.builder()\n .deploymentId(exampleKeystore.id())\n .settingName(\"gcs.client.default.credentials_file\")\n .value(StdFunctions.file(FileArgs.builder()\n .input(\"service-account-key.json\")\n .build()).result())\n .asFile(true)\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create an Elastic Cloud deployment\n exampleKeystore:\n type: ec:Deployment\n name: example_keystore\n properties:\n region: us-east-1\n version: ${latest.version}\n deploymentTemplateId: aws-io-optimized-v2\n elasticsearch:\n hot:\n autoscaling: {}\n # Create the keystore secret entry\n gcsCredential:\n type: ec:DeploymentElasticsearchKeystore\n name: gcs_credential\n properties:\n deploymentId: ${exampleKeystore.id}\n settingName: gcs.client.default.credentials_file\n value:\n fn::invoke:\n function: std:file\n arguments:\n input: service-account-key.json\n return: result\n asFile: true\nvariables:\n latest:\n fn::invoke:\n function: ec:getStack\n arguments:\n versionRegex: latest\n region: us-east-1\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nThis resource cannot be imported\n\n", "properties": { "asFile": { "type": "boolean", @@ -4538,7 +4538,7 @@ } }, "ec:index/deploymentExtension:DeploymentExtension": { - "description": "Provides an Elastic Cloud extension resource, which allows extensions to be created, updated, and deleted.\n\n Extensions allow users of Elastic Cloud to use custom plugins, scripts, or dictionaries to enhance the core functionality of Elasticsearch. Before you install an extension, be sure to check out the supported and official [Elasticsearch plugins](https://www.elastic.co/guide/en/elasticsearch/plugins/current/index.html) already available.\n\n **Tip :** If you experience timeouts when uploading an extension through a slow network, you might need to increase the timeout setting.\n\n\n## Example Usage\n\n### With extension file\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.ec.DeploymentExtension;\nimport com.pulumi.ec.DeploymentExtensionArgs;\nimport com.pulumi.ec.EcFunctions;\nimport com.pulumi.ec.inputs.GetStackArgs;\nimport com.pulumi.ec.Deployment;\nimport com.pulumi.ec.DeploymentArgs;\nimport com.pulumi.ec.inputs.DeploymentElasticsearchArgs;\nimport com.pulumi.ec.inputs.DeploymentElasticsearchHotArgs;\nimport com.pulumi.ec.inputs.DeploymentElasticsearchHotAutoscalingArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var filePath = \"/path/to/plugin.zip\";\n\n var exampleExtension = new DeploymentExtension(\"exampleExtension\", DeploymentExtensionArgs.builder()\n .name(\"my_extension\")\n .description(\"my extension\")\n .version(\"*\")\n .extensionType(\"bundle\")\n .filePath(filePath)\n .fileHash(StdFunctions.filebase64sha256(Filebase64sha256Args.builder()\n .input(filePath)\n .build()).result())\n .build());\n\n final var latest = EcFunctions.getStack(GetStackArgs.builder()\n .versionRegex(\"latest\")\n .region(\"us-east-1\")\n .build());\n\n var withExtension = new Deployment(\"withExtension\", DeploymentArgs.builder()\n .name(\"my_example_deployment\")\n .region(\"us-east-1\")\n .version(latest.applyValue(getStackResult -\u003e getStackResult.version()))\n .deploymentTemplateId(\"aws-io-optimized-v2\")\n .elasticsearch(DeploymentElasticsearchArgs.builder()\n .hot(DeploymentElasticsearchHotArgs.builder()\n .autoscaling()\n .build())\n .extension(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n exampleExtension:\n type: ec:DeploymentExtension\n name: example_extension\n properties:\n name: my_extension\n description: my extension\n version: '*'\n extensionType: bundle\n filePath: ${filePath}\n fileHash:\n fn::invoke:\n Function: std:filebase64sha256\n Arguments:\n input: ${filePath}\n Return: result\n withExtension:\n type: ec:Deployment\n name: with_extension\n properties:\n name: my_example_deployment\n region: us-east-1\n version: ${latest.version}\n deploymentTemplateId: aws-io-optimized-v2\n elasticsearch:\n hot:\n autoscaling: {}\n extension:\n - name: ${exampleExtension.name}\n type: bundle\n version: ${latest.version}\n url: ${exampleExtension.url}\nvariables:\n filePath: /path/to/plugin.zip\n latest:\n fn::invoke:\n Function: ec:getStack\n Arguments:\n versionRegex: latest\n region: us-east-1\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n### With download URL\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.ec.DeploymentExtension;\nimport com.pulumi.ec.DeploymentExtensionArgs;\nimport com.pulumi.ec.EcFunctions;\nimport com.pulumi.ec.inputs.GetStackArgs;\nimport com.pulumi.ec.Deployment;\nimport com.pulumi.ec.DeploymentArgs;\nimport com.pulumi.ec.inputs.DeploymentElasticsearchArgs;\nimport com.pulumi.ec.inputs.DeploymentElasticsearchHotArgs;\nimport com.pulumi.ec.inputs.DeploymentElasticsearchHotAutoscalingArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var exampleExtension = new DeploymentExtension(\"exampleExtension\", DeploymentExtensionArgs.builder()\n .name(\"my_extension\")\n .description(\"my extension\")\n .version(\"*\")\n .extensionType(\"bundle\")\n .downloadUrl(\"https://example.net\")\n .build());\n\n final var latest = EcFunctions.getStack(GetStackArgs.builder()\n .versionRegex(\"latest\")\n .region(\"us-east-1\")\n .build());\n\n var withExtension = new Deployment(\"withExtension\", DeploymentArgs.builder()\n .name(\"my_example_deployment\")\n .region(\"us-east-1\")\n .version(latest.applyValue(getStackResult -\u003e getStackResult.version()))\n .deploymentTemplateId(\"aws-io-optimized-v2\")\n .elasticsearch(DeploymentElasticsearchArgs.builder()\n .hot(DeploymentElasticsearchHotArgs.builder()\n .autoscaling()\n .build())\n .extension(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n exampleExtension:\n type: ec:DeploymentExtension\n name: example_extension\n properties:\n name: my_extension\n description: my extension\n version: '*'\n extensionType: bundle\n downloadUrl: https://example.net\n withExtension:\n type: ec:Deployment\n name: with_extension\n properties:\n name: my_example_deployment\n region: us-east-1\n version: ${latest.version}\n deploymentTemplateId: aws-io-optimized-v2\n elasticsearch:\n hot:\n autoscaling: {}\n extension:\n - name: ${exampleExtension.name}\n type: bundle\n version: ${latest.version}\n url: ${exampleExtension.url}\nvariables:\n latest:\n fn::invoke:\n Function: ec:getStack\n Arguments:\n versionRegex: latest\n region: us-east-1\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nExtensions can be imported using the `id`, for example:\n\n```sh\n$ pulumi import ec:index/deploymentExtension:DeploymentExtension name 320b7b540dfc967a7a649c18e2fce4ed\n```\n\n", + "description": "Provides an Elastic Cloud extension resource, which allows extensions to be created, updated, and deleted.\n\n Extensions allow users of Elastic Cloud to use custom plugins, scripts, or dictionaries to enhance the core functionality of Elasticsearch. Before you install an extension, be sure to check out the supported and official [Elasticsearch plugins](https://www.elastic.co/guide/en/elasticsearch/plugins/current/index.html) already available.\n\n **Tip :** If you experience timeouts when uploading an extension through a slow network, you might need to increase the timeout setting.\n\n\n## Example Usage\n\n### With extension file\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.ec.DeploymentExtension;\nimport com.pulumi.ec.DeploymentExtensionArgs;\nimport com.pulumi.ec.EcFunctions;\nimport com.pulumi.ec.inputs.GetStackArgs;\nimport com.pulumi.ec.Deployment;\nimport com.pulumi.ec.DeploymentArgs;\nimport com.pulumi.ec.inputs.DeploymentElasticsearchArgs;\nimport com.pulumi.ec.inputs.DeploymentElasticsearchHotArgs;\nimport com.pulumi.ec.inputs.DeploymentElasticsearchHotAutoscalingArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var filePath = \"/path/to/plugin.zip\";\n\n var exampleExtension = new DeploymentExtension(\"exampleExtension\", DeploymentExtensionArgs.builder()\n .name(\"my_extension\")\n .description(\"my extension\")\n .version(\"*\")\n .extensionType(\"bundle\")\n .filePath(filePath)\n .fileHash(StdFunctions.filebase64sha256(Filebase64sha256Args.builder()\n .input(filePath)\n .build()).result())\n .build());\n\n final var latest = EcFunctions.getStack(GetStackArgs.builder()\n .versionRegex(\"latest\")\n .region(\"us-east-1\")\n .build());\n\n var withExtension = new Deployment(\"withExtension\", DeploymentArgs.builder()\n .name(\"my_example_deployment\")\n .region(\"us-east-1\")\n .version(latest.applyValue(getStackResult -\u003e getStackResult.version()))\n .deploymentTemplateId(\"aws-io-optimized-v2\")\n .elasticsearch(DeploymentElasticsearchArgs.builder()\n .hot(DeploymentElasticsearchHotArgs.builder()\n .autoscaling()\n .build())\n .extension(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n exampleExtension:\n type: ec:DeploymentExtension\n name: example_extension\n properties:\n name: my_extension\n description: my extension\n version: '*'\n extensionType: bundle\n filePath: ${filePath}\n fileHash:\n fn::invoke:\n function: std:filebase64sha256\n arguments:\n input: ${filePath}\n return: result\n withExtension:\n type: ec:Deployment\n name: with_extension\n properties:\n name: my_example_deployment\n region: us-east-1\n version: ${latest.version}\n deploymentTemplateId: aws-io-optimized-v2\n elasticsearch:\n hot:\n autoscaling: {}\n extension:\n - name: ${exampleExtension.name}\n type: bundle\n version: ${latest.version}\n url: ${exampleExtension.url}\nvariables:\n filePath: /path/to/plugin.zip\n latest:\n fn::invoke:\n function: ec:getStack\n arguments:\n versionRegex: latest\n region: us-east-1\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n### With download URL\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.ec.DeploymentExtension;\nimport com.pulumi.ec.DeploymentExtensionArgs;\nimport com.pulumi.ec.EcFunctions;\nimport com.pulumi.ec.inputs.GetStackArgs;\nimport com.pulumi.ec.Deployment;\nimport com.pulumi.ec.DeploymentArgs;\nimport com.pulumi.ec.inputs.DeploymentElasticsearchArgs;\nimport com.pulumi.ec.inputs.DeploymentElasticsearchHotArgs;\nimport com.pulumi.ec.inputs.DeploymentElasticsearchHotAutoscalingArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var exampleExtension = new DeploymentExtension(\"exampleExtension\", DeploymentExtensionArgs.builder()\n .name(\"my_extension\")\n .description(\"my extension\")\n .version(\"*\")\n .extensionType(\"bundle\")\n .downloadUrl(\"https://example.net\")\n .build());\n\n final var latest = EcFunctions.getStack(GetStackArgs.builder()\n .versionRegex(\"latest\")\n .region(\"us-east-1\")\n .build());\n\n var withExtension = new Deployment(\"withExtension\", DeploymentArgs.builder()\n .name(\"my_example_deployment\")\n .region(\"us-east-1\")\n .version(latest.applyValue(getStackResult -\u003e getStackResult.version()))\n .deploymentTemplateId(\"aws-io-optimized-v2\")\n .elasticsearch(DeploymentElasticsearchArgs.builder()\n .hot(DeploymentElasticsearchHotArgs.builder()\n .autoscaling()\n .build())\n .extension(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n exampleExtension:\n type: ec:DeploymentExtension\n name: example_extension\n properties:\n name: my_extension\n description: my extension\n version: '*'\n extensionType: bundle\n downloadUrl: https://example.net\n withExtension:\n type: ec:Deployment\n name: with_extension\n properties:\n name: my_example_deployment\n region: us-east-1\n version: ${latest.version}\n deploymentTemplateId: aws-io-optimized-v2\n elasticsearch:\n hot:\n autoscaling: {}\n extension:\n - name: ${exampleExtension.name}\n type: bundle\n version: ${latest.version}\n url: ${exampleExtension.url}\nvariables:\n latest:\n fn::invoke:\n function: ec:getStack\n arguments:\n versionRegex: latest\n region: us-east-1\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nExtensions can be imported using the `id`, for example:\n\n```sh\n$ pulumi import ec:index/deploymentExtension:DeploymentExtension name 320b7b540dfc967a7a649c18e2fce4ed\n```\n\n", "properties": { "description": { "type": "string", @@ -4673,7 +4673,7 @@ } }, "ec:index/deploymentTrafficFilter:DeploymentTrafficFilter": { - "description": "## Example Usage\n\n### IP based traffic filter\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as ec from \"@pulumi/ec\";\n\nconst latest = ec.getStack({\n versionRegex: \"latest\",\n region: \"us-east-1\",\n});\nconst example = new ec.DeploymentTrafficFilter(\"example\", {\n name: \"my traffic filter name\",\n region: \"us-east-1\",\n type: \"ip\",\n rules: [{\n source: \"0.0.0.0/0\",\n }],\n});\n// Create an Elastic Cloud deployment\nconst exampleMinimal = new ec.Deployment(\"example_minimal\", {\n name: \"my_example_deployment\",\n region: \"us-east-1\",\n version: latest.then(latest =\u003e latest.version),\n deploymentTemplateId: \"aws-io-optimized-v2\",\n trafficFilters: [example.id],\n elasticsearch: {\n hot: {\n autoscaling: {},\n },\n },\n kibana: {},\n});\n```\n```python\nimport pulumi\nimport pulumi_ec as ec\n\nlatest = ec.get_stack(version_regex=\"latest\",\n region=\"us-east-1\")\nexample = ec.DeploymentTrafficFilter(\"example\",\n name=\"my traffic filter name\",\n region=\"us-east-1\",\n type=\"ip\",\n rules=[{\n \"source\": \"0.0.0.0/0\",\n }])\n# Create an Elastic Cloud deployment\nexample_minimal = ec.Deployment(\"example_minimal\",\n name=\"my_example_deployment\",\n region=\"us-east-1\",\n version=latest.version,\n deployment_template_id=\"aws-io-optimized-v2\",\n traffic_filters=[example.id],\n elasticsearch={\n \"hot\": {\n \"autoscaling\": {},\n },\n },\n kibana={})\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing ElasticCloud = Pulumi.ElasticCloud;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var latest = ElasticCloud.GetStack.Invoke(new()\n {\n VersionRegex = \"latest\",\n Region = \"us-east-1\",\n });\n\n var example = new ElasticCloud.DeploymentTrafficFilter(\"example\", new()\n {\n Name = \"my traffic filter name\",\n Region = \"us-east-1\",\n Type = \"ip\",\n Rules = new[]\n {\n new ElasticCloud.Inputs.DeploymentTrafficFilterRuleArgs\n {\n Source = \"0.0.0.0/0\",\n },\n },\n });\n\n // Create an Elastic Cloud deployment\n var exampleMinimal = new ElasticCloud.Deployment(\"example_minimal\", new()\n {\n Name = \"my_example_deployment\",\n Region = \"us-east-1\",\n Version = latest.Apply(getStackResult =\u003e getStackResult.Version),\n DeploymentTemplateId = \"aws-io-optimized-v2\",\n TrafficFilters = new[]\n {\n example.Id,\n },\n Elasticsearch = new ElasticCloud.Inputs.DeploymentElasticsearchArgs\n {\n Hot = new ElasticCloud.Inputs.DeploymentElasticsearchHotArgs\n {\n Autoscaling = null,\n },\n },\n Kibana = null,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-ec/sdk/go/ec\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tlatest, err := ec.GetStack(ctx, \u0026ec.GetStackArgs{\n\t\t\tVersionRegex: \"latest\",\n\t\t\tRegion: \"us-east-1\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texample, err := ec.NewDeploymentTrafficFilter(ctx, \"example\", \u0026ec.DeploymentTrafficFilterArgs{\n\t\t\tName: pulumi.String(\"my traffic filter name\"),\n\t\t\tRegion: pulumi.String(\"us-east-1\"),\n\t\t\tType: pulumi.String(\"ip\"),\n\t\t\tRules: ec.DeploymentTrafficFilterRuleArray{\n\t\t\t\t\u0026ec.DeploymentTrafficFilterRuleArgs{\n\t\t\t\t\tSource: pulumi.String(\"0.0.0.0/0\"),\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t// Create an Elastic Cloud deployment\n\t\t_, err = ec.NewDeployment(ctx, \"example_minimal\", \u0026ec.DeploymentArgs{\n\t\t\tName: pulumi.String(\"my_example_deployment\"),\n\t\t\tRegion: pulumi.String(\"us-east-1\"),\n\t\t\tVersion: pulumi.String(latest.Version),\n\t\t\tDeploymentTemplateId: pulumi.String(\"aws-io-optimized-v2\"),\n\t\t\tTrafficFilters: pulumi.StringArray{\n\t\t\t\texample.ID(),\n\t\t\t},\n\t\t\tElasticsearch: \u0026ec.DeploymentElasticsearchArgs{\n\t\t\t\tHot: \u0026ec.DeploymentElasticsearchHotArgs{\n\t\t\t\t\tAutoscaling: \u0026ec.DeploymentElasticsearchHotAutoscalingArgs{},\n\t\t\t\t},\n\t\t\t},\n\t\t\tKibana: \u0026ec.DeploymentKibanaArgs{},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.ec.EcFunctions;\nimport com.pulumi.ec.inputs.GetStackArgs;\nimport com.pulumi.ec.DeploymentTrafficFilter;\nimport com.pulumi.ec.DeploymentTrafficFilterArgs;\nimport com.pulumi.ec.inputs.DeploymentTrafficFilterRuleArgs;\nimport com.pulumi.ec.Deployment;\nimport com.pulumi.ec.DeploymentArgs;\nimport com.pulumi.ec.inputs.DeploymentElasticsearchArgs;\nimport com.pulumi.ec.inputs.DeploymentElasticsearchHotArgs;\nimport com.pulumi.ec.inputs.DeploymentElasticsearchHotAutoscalingArgs;\nimport com.pulumi.ec.inputs.DeploymentKibanaArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var latest = EcFunctions.getStack(GetStackArgs.builder()\n .versionRegex(\"latest\")\n .region(\"us-east-1\")\n .build());\n\n var example = new DeploymentTrafficFilter(\"example\", DeploymentTrafficFilterArgs.builder()\n .name(\"my traffic filter name\")\n .region(\"us-east-1\")\n .type(\"ip\")\n .rules(DeploymentTrafficFilterRuleArgs.builder()\n .source(\"0.0.0.0/0\")\n .build())\n .build());\n\n // Create an Elastic Cloud deployment\n var exampleMinimal = new Deployment(\"exampleMinimal\", DeploymentArgs.builder()\n .name(\"my_example_deployment\")\n .region(\"us-east-1\")\n .version(latest.applyValue(getStackResult -\u003e getStackResult.version()))\n .deploymentTemplateId(\"aws-io-optimized-v2\")\n .trafficFilters(example.id())\n .elasticsearch(DeploymentElasticsearchArgs.builder()\n .hot(DeploymentElasticsearchHotArgs.builder()\n .autoscaling()\n .build())\n .build())\n .kibana()\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create an Elastic Cloud deployment\n exampleMinimal:\n type: ec:Deployment\n name: example_minimal\n properties:\n name: my_example_deployment\n region: us-east-1\n version: ${latest.version}\n deploymentTemplateId: aws-io-optimized-v2\n trafficFilters:\n - ${example.id}\n elasticsearch:\n hot:\n autoscaling: {}\n kibana: {}\n example:\n type: ec:DeploymentTrafficFilter\n properties:\n name: my traffic filter name\n region: us-east-1\n type: ip\n rules:\n - source: 0.0.0.0/0\nvariables:\n latest:\n fn::invoke:\n Function: ec:getStack\n Arguments:\n versionRegex: latest\n region: us-east-1\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n### Azure Private Link traffic filter\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as ec from \"@pulumi/ec\";\n\nconst region = azure_australiaeast;\nconst latest = ec.getStack({\n versionRegex: \"latest\",\n region: region,\n});\nconst azure = new ec.DeploymentTrafficFilter(\"azure\", {\n name: \"my traffic filter name\",\n region: region,\n type: \"azure_private_endpoint\",\n rules: [{\n azureEndpointName: \"my-azure-pl\",\n azureEndpointGuid: \"78c64959-fd88-41cc-81ac-1cfcdb1ac32e\",\n }],\n});\n// Create an Elastic Cloud deployment\nconst exampleMinimal = new ec.Deployment(\"example_minimal\", {\n name: \"my_example_deployment\",\n region: region,\n version: latest.then(latest =\u003e latest.version),\n deploymentTemplateId: \"azure-io-optimized-v3\",\n trafficFilters: [azure.id],\n elasticsearch: {\n hot: {\n autoscaling: {},\n },\n },\n kibana: {},\n});\n```\n```python\nimport pulumi\nimport pulumi_ec as ec\n\nregion = azure_australiaeast\nlatest = ec.get_stack(version_regex=\"latest\",\n region=region)\nazure = ec.DeploymentTrafficFilter(\"azure\",\n name=\"my traffic filter name\",\n region=region,\n type=\"azure_private_endpoint\",\n rules=[{\n \"azure_endpoint_name\": \"my-azure-pl\",\n \"azure_endpoint_guid\": \"78c64959-fd88-41cc-81ac-1cfcdb1ac32e\",\n }])\n# Create an Elastic Cloud deployment\nexample_minimal = ec.Deployment(\"example_minimal\",\n name=\"my_example_deployment\",\n region=region,\n version=latest.version,\n deployment_template_id=\"azure-io-optimized-v3\",\n traffic_filters=[azure.id],\n elasticsearch={\n \"hot\": {\n \"autoscaling\": {},\n },\n },\n kibana={})\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing ElasticCloud = Pulumi.ElasticCloud;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var region = azure_australiaeast;\n\n var latest = ElasticCloud.GetStack.Invoke(new()\n {\n VersionRegex = \"latest\",\n Region = region,\n });\n\n var azure = new ElasticCloud.DeploymentTrafficFilter(\"azure\", new()\n {\n Name = \"my traffic filter name\",\n Region = region,\n Type = \"azure_private_endpoint\",\n Rules = new[]\n {\n new ElasticCloud.Inputs.DeploymentTrafficFilterRuleArgs\n {\n AzureEndpointName = \"my-azure-pl\",\n AzureEndpointGuid = \"78c64959-fd88-41cc-81ac-1cfcdb1ac32e\",\n },\n },\n });\n\n // Create an Elastic Cloud deployment\n var exampleMinimal = new ElasticCloud.Deployment(\"example_minimal\", new()\n {\n Name = \"my_example_deployment\",\n Region = region,\n Version = latest.Apply(getStackResult =\u003e getStackResult.Version),\n DeploymentTemplateId = \"azure-io-optimized-v3\",\n TrafficFilters = new[]\n {\n azure.Id,\n },\n Elasticsearch = new ElasticCloud.Inputs.DeploymentElasticsearchArgs\n {\n Hot = new ElasticCloud.Inputs.DeploymentElasticsearchHotArgs\n {\n Autoscaling = null,\n },\n },\n Kibana = null,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-ec/sdk/go/ec\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tregion := azure_australiaeast\n\t\tlatest, err := ec.GetStack(ctx, \u0026ec.GetStackArgs{\n\t\t\tVersionRegex: \"latest\",\n\t\t\tRegion: region,\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tazure, err := ec.NewDeploymentTrafficFilter(ctx, \"azure\", \u0026ec.DeploymentTrafficFilterArgs{\n\t\t\tName: pulumi.String(\"my traffic filter name\"),\n\t\t\tRegion: pulumi.Any(region),\n\t\t\tType: pulumi.String(\"azure_private_endpoint\"),\n\t\t\tRules: ec.DeploymentTrafficFilterRuleArray{\n\t\t\t\t\u0026ec.DeploymentTrafficFilterRuleArgs{\n\t\t\t\t\tAzureEndpointName: pulumi.String(\"my-azure-pl\"),\n\t\t\t\t\tAzureEndpointGuid: pulumi.String(\"78c64959-fd88-41cc-81ac-1cfcdb1ac32e\"),\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t// Create an Elastic Cloud deployment\n\t\t_, err = ec.NewDeployment(ctx, \"example_minimal\", \u0026ec.DeploymentArgs{\n\t\t\tName: pulumi.String(\"my_example_deployment\"),\n\t\t\tRegion: pulumi.Any(region),\n\t\t\tVersion: pulumi.String(latest.Version),\n\t\t\tDeploymentTemplateId: pulumi.String(\"azure-io-optimized-v3\"),\n\t\t\tTrafficFilters: pulumi.StringArray{\n\t\t\t\tazure.ID(),\n\t\t\t},\n\t\t\tElasticsearch: \u0026ec.DeploymentElasticsearchArgs{\n\t\t\t\tHot: \u0026ec.DeploymentElasticsearchHotArgs{\n\t\t\t\t\tAutoscaling: \u0026ec.DeploymentElasticsearchHotAutoscalingArgs{},\n\t\t\t\t},\n\t\t\t},\n\t\t\tKibana: \u0026ec.DeploymentKibanaArgs{},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.ec.EcFunctions;\nimport com.pulumi.ec.inputs.GetStackArgs;\nimport com.pulumi.ec.DeploymentTrafficFilter;\nimport com.pulumi.ec.DeploymentTrafficFilterArgs;\nimport com.pulumi.ec.inputs.DeploymentTrafficFilterRuleArgs;\nimport com.pulumi.ec.Deployment;\nimport com.pulumi.ec.DeploymentArgs;\nimport com.pulumi.ec.inputs.DeploymentElasticsearchArgs;\nimport com.pulumi.ec.inputs.DeploymentElasticsearchHotArgs;\nimport com.pulumi.ec.inputs.DeploymentElasticsearchHotAutoscalingArgs;\nimport com.pulumi.ec.inputs.DeploymentKibanaArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var region = azure_australiaeast;\n\n final var latest = EcFunctions.getStack(GetStackArgs.builder()\n .versionRegex(\"latest\")\n .region(region)\n .build());\n\n var azure = new DeploymentTrafficFilter(\"azure\", DeploymentTrafficFilterArgs.builder()\n .name(\"my traffic filter name\")\n .region(region)\n .type(\"azure_private_endpoint\")\n .rules(DeploymentTrafficFilterRuleArgs.builder()\n .azureEndpointName(\"my-azure-pl\")\n .azureEndpointGuid(\"78c64959-fd88-41cc-81ac-1cfcdb1ac32e\")\n .build())\n .build());\n\n // Create an Elastic Cloud deployment\n var exampleMinimal = new Deployment(\"exampleMinimal\", DeploymentArgs.builder()\n .name(\"my_example_deployment\")\n .region(region)\n .version(latest.applyValue(getStackResult -\u003e getStackResult.version()))\n .deploymentTemplateId(\"azure-io-optimized-v3\")\n .trafficFilters(azure.id())\n .elasticsearch(DeploymentElasticsearchArgs.builder()\n .hot(DeploymentElasticsearchHotArgs.builder()\n .autoscaling()\n .build())\n .build())\n .kibana()\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create an Elastic Cloud deployment\n exampleMinimal:\n type: ec:Deployment\n name: example_minimal\n properties:\n name: my_example_deployment\n region: ${region}\n version: ${latest.version}\n deploymentTemplateId: azure-io-optimized-v3\n trafficFilters:\n - ${azure.id}\n elasticsearch:\n hot:\n autoscaling: {}\n kibana: {}\n azure:\n type: ec:DeploymentTrafficFilter\n properties:\n name: my traffic filter name\n region: ${region}\n type: azure_private_endpoint\n rules:\n - azureEndpointName: my-azure-pl\n azureEndpointGuid: 78c64959-fd88-41cc-81ac-1cfcdb1ac32e\nvariables:\n region: ${[\"azure-australiaeast\"]}\n latest:\n fn::invoke:\n Function: ec:getStack\n Arguments:\n versionRegex: latest\n region: ${region}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n###GCP Private Service Connect traffic filter\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as ec from \"@pulumi/ec\";\n\nconst region = asia_east1;\nconst latest = ec.getStack({\n versionRegex: \"latest\",\n region: region,\n});\nconst gcpPsc = new ec.DeploymentTrafficFilter(\"gcp_psc\", {\n name: \"my traffic filter name\",\n region: region,\n type: \"gcp_private_service_connect_endpoint\",\n rules: [{\n source: \"18446744072646845332\",\n }],\n});\n// Create an Elastic Cloud deployment\nconst exampleMinimal = new ec.Deployment(\"example_minimal\", {\n name: \"my_example_deployment\",\n region: region,\n version: latest.then(latest =\u003e latest.version),\n deploymentTemplateId: \"gcp-storage-optimized\",\n trafficFilters: [gcpPsc.id],\n elasticsearch: {\n hot: {\n autoscaling: {},\n },\n },\n kibana: {},\n});\n```\n```python\nimport pulumi\nimport pulumi_ec as ec\n\nregion = asia_east1\nlatest = ec.get_stack(version_regex=\"latest\",\n region=region)\ngcp_psc = ec.DeploymentTrafficFilter(\"gcp_psc\",\n name=\"my traffic filter name\",\n region=region,\n type=\"gcp_private_service_connect_endpoint\",\n rules=[{\n \"source\": \"18446744072646845332\",\n }])\n# Create an Elastic Cloud deployment\nexample_minimal = ec.Deployment(\"example_minimal\",\n name=\"my_example_deployment\",\n region=region,\n version=latest.version,\n deployment_template_id=\"gcp-storage-optimized\",\n traffic_filters=[gcp_psc.id],\n elasticsearch={\n \"hot\": {\n \"autoscaling\": {},\n },\n },\n kibana={})\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing ElasticCloud = Pulumi.ElasticCloud;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var region = asia_east1;\n\n var latest = ElasticCloud.GetStack.Invoke(new()\n {\n VersionRegex = \"latest\",\n Region = region,\n });\n\n var gcpPsc = new ElasticCloud.DeploymentTrafficFilter(\"gcp_psc\", new()\n {\n Name = \"my traffic filter name\",\n Region = region,\n Type = \"gcp_private_service_connect_endpoint\",\n Rules = new[]\n {\n new ElasticCloud.Inputs.DeploymentTrafficFilterRuleArgs\n {\n Source = \"18446744072646845332\",\n },\n },\n });\n\n // Create an Elastic Cloud deployment\n var exampleMinimal = new ElasticCloud.Deployment(\"example_minimal\", new()\n {\n Name = \"my_example_deployment\",\n Region = region,\n Version = latest.Apply(getStackResult =\u003e getStackResult.Version),\n DeploymentTemplateId = \"gcp-storage-optimized\",\n TrafficFilters = new[]\n {\n gcpPsc.Id,\n },\n Elasticsearch = new ElasticCloud.Inputs.DeploymentElasticsearchArgs\n {\n Hot = new ElasticCloud.Inputs.DeploymentElasticsearchHotArgs\n {\n Autoscaling = null,\n },\n },\n Kibana = null,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-ec/sdk/go/ec\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tregion := asia_east1\n\t\tlatest, err := ec.GetStack(ctx, \u0026ec.GetStackArgs{\n\t\t\tVersionRegex: \"latest\",\n\t\t\tRegion: region,\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tgcpPsc, err := ec.NewDeploymentTrafficFilter(ctx, \"gcp_psc\", \u0026ec.DeploymentTrafficFilterArgs{\n\t\t\tName: pulumi.String(\"my traffic filter name\"),\n\t\t\tRegion: pulumi.Any(region),\n\t\t\tType: pulumi.String(\"gcp_private_service_connect_endpoint\"),\n\t\t\tRules: ec.DeploymentTrafficFilterRuleArray{\n\t\t\t\t\u0026ec.DeploymentTrafficFilterRuleArgs{\n\t\t\t\t\tSource: pulumi.String(\"18446744072646845332\"),\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t// Create an Elastic Cloud deployment\n\t\t_, err = ec.NewDeployment(ctx, \"example_minimal\", \u0026ec.DeploymentArgs{\n\t\t\tName: pulumi.String(\"my_example_deployment\"),\n\t\t\tRegion: pulumi.Any(region),\n\t\t\tVersion: pulumi.String(latest.Version),\n\t\t\tDeploymentTemplateId: pulumi.String(\"gcp-storage-optimized\"),\n\t\t\tTrafficFilters: pulumi.StringArray{\n\t\t\t\tgcpPsc.ID(),\n\t\t\t},\n\t\t\tElasticsearch: \u0026ec.DeploymentElasticsearchArgs{\n\t\t\t\tHot: \u0026ec.DeploymentElasticsearchHotArgs{\n\t\t\t\t\tAutoscaling: \u0026ec.DeploymentElasticsearchHotAutoscalingArgs{},\n\t\t\t\t},\n\t\t\t},\n\t\t\tKibana: \u0026ec.DeploymentKibanaArgs{},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.ec.EcFunctions;\nimport com.pulumi.ec.inputs.GetStackArgs;\nimport com.pulumi.ec.DeploymentTrafficFilter;\nimport com.pulumi.ec.DeploymentTrafficFilterArgs;\nimport com.pulumi.ec.inputs.DeploymentTrafficFilterRuleArgs;\nimport com.pulumi.ec.Deployment;\nimport com.pulumi.ec.DeploymentArgs;\nimport com.pulumi.ec.inputs.DeploymentElasticsearchArgs;\nimport com.pulumi.ec.inputs.DeploymentElasticsearchHotArgs;\nimport com.pulumi.ec.inputs.DeploymentElasticsearchHotAutoscalingArgs;\nimport com.pulumi.ec.inputs.DeploymentKibanaArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var region = asia_east1;\n\n final var latest = EcFunctions.getStack(GetStackArgs.builder()\n .versionRegex(\"latest\")\n .region(region)\n .build());\n\n var gcpPsc = new DeploymentTrafficFilter(\"gcpPsc\", DeploymentTrafficFilterArgs.builder()\n .name(\"my traffic filter name\")\n .region(region)\n .type(\"gcp_private_service_connect_endpoint\")\n .rules(DeploymentTrafficFilterRuleArgs.builder()\n .source(\"18446744072646845332\")\n .build())\n .build());\n\n // Create an Elastic Cloud deployment\n var exampleMinimal = new Deployment(\"exampleMinimal\", DeploymentArgs.builder()\n .name(\"my_example_deployment\")\n .region(region)\n .version(latest.applyValue(getStackResult -\u003e getStackResult.version()))\n .deploymentTemplateId(\"gcp-storage-optimized\")\n .trafficFilters(gcpPsc.id())\n .elasticsearch(DeploymentElasticsearchArgs.builder()\n .hot(DeploymentElasticsearchHotArgs.builder()\n .autoscaling()\n .build())\n .build())\n .kibana()\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create an Elastic Cloud deployment\n exampleMinimal:\n type: ec:Deployment\n name: example_minimal\n properties:\n name: my_example_deployment\n region: ${region}\n version: ${latest.version}\n deploymentTemplateId: gcp-storage-optimized\n trafficFilters:\n - ${gcpPsc.id}\n elasticsearch:\n hot:\n autoscaling: {}\n kibana: {}\n gcpPsc:\n type: ec:DeploymentTrafficFilter\n name: gcp_psc\n properties:\n name: my traffic filter name\n region: ${region}\n type: gcp_private_service_connect_endpoint\n rules:\n - source: '18446744072646845332'\nvariables:\n region: ${[\"asia-east1\"]}\n latest:\n fn::invoke:\n Function: ec:getStack\n Arguments:\n versionRegex: latest\n region: ${region}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nTraffic filters can be imported using the `id`, for example:\n\n```sh\n$ pulumi import ec:index/deploymentTrafficFilter:DeploymentTrafficFilter name 320b7b540dfc967a7a649c18e2fce4ed\n```\n\n", + "description": "## Example Usage\n\n### IP based traffic filter\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as ec from \"@pulumi/ec\";\n\nconst latest = ec.getStack({\n versionRegex: \"latest\",\n region: \"us-east-1\",\n});\nconst example = new ec.DeploymentTrafficFilter(\"example\", {\n name: \"my traffic filter name\",\n region: \"us-east-1\",\n type: \"ip\",\n rules: [{\n source: \"0.0.0.0/0\",\n }],\n});\n// Create an Elastic Cloud deployment\nconst exampleMinimal = new ec.Deployment(\"example_minimal\", {\n name: \"my_example_deployment\",\n region: \"us-east-1\",\n version: latest.then(latest =\u003e latest.version),\n deploymentTemplateId: \"aws-io-optimized-v2\",\n trafficFilters: [example.id],\n elasticsearch: {\n hot: {\n autoscaling: {},\n },\n },\n kibana: {},\n});\n```\n```python\nimport pulumi\nimport pulumi_ec as ec\n\nlatest = ec.get_stack(version_regex=\"latest\",\n region=\"us-east-1\")\nexample = ec.DeploymentTrafficFilter(\"example\",\n name=\"my traffic filter name\",\n region=\"us-east-1\",\n type=\"ip\",\n rules=[{\n \"source\": \"0.0.0.0/0\",\n }])\n# Create an Elastic Cloud deployment\nexample_minimal = ec.Deployment(\"example_minimal\",\n name=\"my_example_deployment\",\n region=\"us-east-1\",\n version=latest.version,\n deployment_template_id=\"aws-io-optimized-v2\",\n traffic_filters=[example.id],\n elasticsearch={\n \"hot\": {\n \"autoscaling\": {},\n },\n },\n kibana={})\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing ElasticCloud = Pulumi.ElasticCloud;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var latest = ElasticCloud.GetStack.Invoke(new()\n {\n VersionRegex = \"latest\",\n Region = \"us-east-1\",\n });\n\n var example = new ElasticCloud.DeploymentTrafficFilter(\"example\", new()\n {\n Name = \"my traffic filter name\",\n Region = \"us-east-1\",\n Type = \"ip\",\n Rules = new[]\n {\n new ElasticCloud.Inputs.DeploymentTrafficFilterRuleArgs\n {\n Source = \"0.0.0.0/0\",\n },\n },\n });\n\n // Create an Elastic Cloud deployment\n var exampleMinimal = new ElasticCloud.Deployment(\"example_minimal\", new()\n {\n Name = \"my_example_deployment\",\n Region = \"us-east-1\",\n Version = latest.Apply(getStackResult =\u003e getStackResult.Version),\n DeploymentTemplateId = \"aws-io-optimized-v2\",\n TrafficFilters = new[]\n {\n example.Id,\n },\n Elasticsearch = new ElasticCloud.Inputs.DeploymentElasticsearchArgs\n {\n Hot = new ElasticCloud.Inputs.DeploymentElasticsearchHotArgs\n {\n Autoscaling = null,\n },\n },\n Kibana = null,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-ec/sdk/go/ec\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tlatest, err := ec.GetStack(ctx, \u0026ec.GetStackArgs{\n\t\t\tVersionRegex: \"latest\",\n\t\t\tRegion: \"us-east-1\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texample, err := ec.NewDeploymentTrafficFilter(ctx, \"example\", \u0026ec.DeploymentTrafficFilterArgs{\n\t\t\tName: pulumi.String(\"my traffic filter name\"),\n\t\t\tRegion: pulumi.String(\"us-east-1\"),\n\t\t\tType: pulumi.String(\"ip\"),\n\t\t\tRules: ec.DeploymentTrafficFilterRuleArray{\n\t\t\t\t\u0026ec.DeploymentTrafficFilterRuleArgs{\n\t\t\t\t\tSource: pulumi.String(\"0.0.0.0/0\"),\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t// Create an Elastic Cloud deployment\n\t\t_, err = ec.NewDeployment(ctx, \"example_minimal\", \u0026ec.DeploymentArgs{\n\t\t\tName: pulumi.String(\"my_example_deployment\"),\n\t\t\tRegion: pulumi.String(\"us-east-1\"),\n\t\t\tVersion: pulumi.String(latest.Version),\n\t\t\tDeploymentTemplateId: pulumi.String(\"aws-io-optimized-v2\"),\n\t\t\tTrafficFilters: pulumi.StringArray{\n\t\t\t\texample.ID(),\n\t\t\t},\n\t\t\tElasticsearch: \u0026ec.DeploymentElasticsearchArgs{\n\t\t\t\tHot: \u0026ec.DeploymentElasticsearchHotArgs{\n\t\t\t\t\tAutoscaling: \u0026ec.DeploymentElasticsearchHotAutoscalingArgs{},\n\t\t\t\t},\n\t\t\t},\n\t\t\tKibana: \u0026ec.DeploymentKibanaArgs{},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.ec.EcFunctions;\nimport com.pulumi.ec.inputs.GetStackArgs;\nimport com.pulumi.ec.DeploymentTrafficFilter;\nimport com.pulumi.ec.DeploymentTrafficFilterArgs;\nimport com.pulumi.ec.inputs.DeploymentTrafficFilterRuleArgs;\nimport com.pulumi.ec.Deployment;\nimport com.pulumi.ec.DeploymentArgs;\nimport com.pulumi.ec.inputs.DeploymentElasticsearchArgs;\nimport com.pulumi.ec.inputs.DeploymentElasticsearchHotArgs;\nimport com.pulumi.ec.inputs.DeploymentElasticsearchHotAutoscalingArgs;\nimport com.pulumi.ec.inputs.DeploymentKibanaArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var latest = EcFunctions.getStack(GetStackArgs.builder()\n .versionRegex(\"latest\")\n .region(\"us-east-1\")\n .build());\n\n var example = new DeploymentTrafficFilter(\"example\", DeploymentTrafficFilterArgs.builder()\n .name(\"my traffic filter name\")\n .region(\"us-east-1\")\n .type(\"ip\")\n .rules(DeploymentTrafficFilterRuleArgs.builder()\n .source(\"0.0.0.0/0\")\n .build())\n .build());\n\n // Create an Elastic Cloud deployment\n var exampleMinimal = new Deployment(\"exampleMinimal\", DeploymentArgs.builder()\n .name(\"my_example_deployment\")\n .region(\"us-east-1\")\n .version(latest.applyValue(getStackResult -\u003e getStackResult.version()))\n .deploymentTemplateId(\"aws-io-optimized-v2\")\n .trafficFilters(example.id())\n .elasticsearch(DeploymentElasticsearchArgs.builder()\n .hot(DeploymentElasticsearchHotArgs.builder()\n .autoscaling()\n .build())\n .build())\n .kibana()\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create an Elastic Cloud deployment\n exampleMinimal:\n type: ec:Deployment\n name: example_minimal\n properties:\n name: my_example_deployment\n region: us-east-1\n version: ${latest.version}\n deploymentTemplateId: aws-io-optimized-v2\n trafficFilters:\n - ${example.id}\n elasticsearch:\n hot:\n autoscaling: {}\n kibana: {}\n example:\n type: ec:DeploymentTrafficFilter\n properties:\n name: my traffic filter name\n region: us-east-1\n type: ip\n rules:\n - source: 0.0.0.0/0\nvariables:\n latest:\n fn::invoke:\n function: ec:getStack\n arguments:\n versionRegex: latest\n region: us-east-1\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n### Azure Private Link traffic filter\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as ec from \"@pulumi/ec\";\n\nconst region = azure_australiaeast;\nconst latest = ec.getStack({\n versionRegex: \"latest\",\n region: region,\n});\nconst azure = new ec.DeploymentTrafficFilter(\"azure\", {\n name: \"my traffic filter name\",\n region: region,\n type: \"azure_private_endpoint\",\n rules: [{\n azureEndpointName: \"my-azure-pl\",\n azureEndpointGuid: \"78c64959-fd88-41cc-81ac-1cfcdb1ac32e\",\n }],\n});\n// Create an Elastic Cloud deployment\nconst exampleMinimal = new ec.Deployment(\"example_minimal\", {\n name: \"my_example_deployment\",\n region: region,\n version: latest.then(latest =\u003e latest.version),\n deploymentTemplateId: \"azure-io-optimized-v3\",\n trafficFilters: [azure.id],\n elasticsearch: {\n hot: {\n autoscaling: {},\n },\n },\n kibana: {},\n});\n```\n```python\nimport pulumi\nimport pulumi_ec as ec\n\nregion = azure_australiaeast\nlatest = ec.get_stack(version_regex=\"latest\",\n region=region)\nazure = ec.DeploymentTrafficFilter(\"azure\",\n name=\"my traffic filter name\",\n region=region,\n type=\"azure_private_endpoint\",\n rules=[{\n \"azure_endpoint_name\": \"my-azure-pl\",\n \"azure_endpoint_guid\": \"78c64959-fd88-41cc-81ac-1cfcdb1ac32e\",\n }])\n# Create an Elastic Cloud deployment\nexample_minimal = ec.Deployment(\"example_minimal\",\n name=\"my_example_deployment\",\n region=region,\n version=latest.version,\n deployment_template_id=\"azure-io-optimized-v3\",\n traffic_filters=[azure.id],\n elasticsearch={\n \"hot\": {\n \"autoscaling\": {},\n },\n },\n kibana={})\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing ElasticCloud = Pulumi.ElasticCloud;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var region = azure_australiaeast;\n\n var latest = ElasticCloud.GetStack.Invoke(new()\n {\n VersionRegex = \"latest\",\n Region = region,\n });\n\n var azure = new ElasticCloud.DeploymentTrafficFilter(\"azure\", new()\n {\n Name = \"my traffic filter name\",\n Region = region,\n Type = \"azure_private_endpoint\",\n Rules = new[]\n {\n new ElasticCloud.Inputs.DeploymentTrafficFilterRuleArgs\n {\n AzureEndpointName = \"my-azure-pl\",\n AzureEndpointGuid = \"78c64959-fd88-41cc-81ac-1cfcdb1ac32e\",\n },\n },\n });\n\n // Create an Elastic Cloud deployment\n var exampleMinimal = new ElasticCloud.Deployment(\"example_minimal\", new()\n {\n Name = \"my_example_deployment\",\n Region = region,\n Version = latest.Apply(getStackResult =\u003e getStackResult.Version),\n DeploymentTemplateId = \"azure-io-optimized-v3\",\n TrafficFilters = new[]\n {\n azure.Id,\n },\n Elasticsearch = new ElasticCloud.Inputs.DeploymentElasticsearchArgs\n {\n Hot = new ElasticCloud.Inputs.DeploymentElasticsearchHotArgs\n {\n Autoscaling = null,\n },\n },\n Kibana = null,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-ec/sdk/go/ec\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tregion := azure_australiaeast\n\t\tlatest, err := ec.GetStack(ctx, \u0026ec.GetStackArgs{\n\t\t\tVersionRegex: \"latest\",\n\t\t\tRegion: region,\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tazure, err := ec.NewDeploymentTrafficFilter(ctx, \"azure\", \u0026ec.DeploymentTrafficFilterArgs{\n\t\t\tName: pulumi.String(\"my traffic filter name\"),\n\t\t\tRegion: pulumi.Any(region),\n\t\t\tType: pulumi.String(\"azure_private_endpoint\"),\n\t\t\tRules: ec.DeploymentTrafficFilterRuleArray{\n\t\t\t\t\u0026ec.DeploymentTrafficFilterRuleArgs{\n\t\t\t\t\tAzureEndpointName: pulumi.String(\"my-azure-pl\"),\n\t\t\t\t\tAzureEndpointGuid: pulumi.String(\"78c64959-fd88-41cc-81ac-1cfcdb1ac32e\"),\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t// Create an Elastic Cloud deployment\n\t\t_, err = ec.NewDeployment(ctx, \"example_minimal\", \u0026ec.DeploymentArgs{\n\t\t\tName: pulumi.String(\"my_example_deployment\"),\n\t\t\tRegion: pulumi.Any(region),\n\t\t\tVersion: pulumi.String(latest.Version),\n\t\t\tDeploymentTemplateId: pulumi.String(\"azure-io-optimized-v3\"),\n\t\t\tTrafficFilters: pulumi.StringArray{\n\t\t\t\tazure.ID(),\n\t\t\t},\n\t\t\tElasticsearch: \u0026ec.DeploymentElasticsearchArgs{\n\t\t\t\tHot: \u0026ec.DeploymentElasticsearchHotArgs{\n\t\t\t\t\tAutoscaling: \u0026ec.DeploymentElasticsearchHotAutoscalingArgs{},\n\t\t\t\t},\n\t\t\t},\n\t\t\tKibana: \u0026ec.DeploymentKibanaArgs{},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.ec.EcFunctions;\nimport com.pulumi.ec.inputs.GetStackArgs;\nimport com.pulumi.ec.DeploymentTrafficFilter;\nimport com.pulumi.ec.DeploymentTrafficFilterArgs;\nimport com.pulumi.ec.inputs.DeploymentTrafficFilterRuleArgs;\nimport com.pulumi.ec.Deployment;\nimport com.pulumi.ec.DeploymentArgs;\nimport com.pulumi.ec.inputs.DeploymentElasticsearchArgs;\nimport com.pulumi.ec.inputs.DeploymentElasticsearchHotArgs;\nimport com.pulumi.ec.inputs.DeploymentElasticsearchHotAutoscalingArgs;\nimport com.pulumi.ec.inputs.DeploymentKibanaArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var region = azure_australiaeast;\n\n final var latest = EcFunctions.getStack(GetStackArgs.builder()\n .versionRegex(\"latest\")\n .region(region)\n .build());\n\n var azure = new DeploymentTrafficFilter(\"azure\", DeploymentTrafficFilterArgs.builder()\n .name(\"my traffic filter name\")\n .region(region)\n .type(\"azure_private_endpoint\")\n .rules(DeploymentTrafficFilterRuleArgs.builder()\n .azureEndpointName(\"my-azure-pl\")\n .azureEndpointGuid(\"78c64959-fd88-41cc-81ac-1cfcdb1ac32e\")\n .build())\n .build());\n\n // Create an Elastic Cloud deployment\n var exampleMinimal = new Deployment(\"exampleMinimal\", DeploymentArgs.builder()\n .name(\"my_example_deployment\")\n .region(region)\n .version(latest.applyValue(getStackResult -\u003e getStackResult.version()))\n .deploymentTemplateId(\"azure-io-optimized-v3\")\n .trafficFilters(azure.id())\n .elasticsearch(DeploymentElasticsearchArgs.builder()\n .hot(DeploymentElasticsearchHotArgs.builder()\n .autoscaling()\n .build())\n .build())\n .kibana()\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create an Elastic Cloud deployment\n exampleMinimal:\n type: ec:Deployment\n name: example_minimal\n properties:\n name: my_example_deployment\n region: ${region}\n version: ${latest.version}\n deploymentTemplateId: azure-io-optimized-v3\n trafficFilters:\n - ${azure.id}\n elasticsearch:\n hot:\n autoscaling: {}\n kibana: {}\n azure:\n type: ec:DeploymentTrafficFilter\n properties:\n name: my traffic filter name\n region: ${region}\n type: azure_private_endpoint\n rules:\n - azureEndpointName: my-azure-pl\n azureEndpointGuid: 78c64959-fd88-41cc-81ac-1cfcdb1ac32e\nvariables:\n region: ${[\"azure-australiaeast\"]}\n latest:\n fn::invoke:\n function: ec:getStack\n arguments:\n versionRegex: latest\n region: ${region}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n###GCP Private Service Connect traffic filter\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as ec from \"@pulumi/ec\";\n\nconst region = asia_east1;\nconst latest = ec.getStack({\n versionRegex: \"latest\",\n region: region,\n});\nconst gcpPsc = new ec.DeploymentTrafficFilter(\"gcp_psc\", {\n name: \"my traffic filter name\",\n region: region,\n type: \"gcp_private_service_connect_endpoint\",\n rules: [{\n source: \"18446744072646845332\",\n }],\n});\n// Create an Elastic Cloud deployment\nconst exampleMinimal = new ec.Deployment(\"example_minimal\", {\n name: \"my_example_deployment\",\n region: region,\n version: latest.then(latest =\u003e latest.version),\n deploymentTemplateId: \"gcp-storage-optimized\",\n trafficFilters: [gcpPsc.id],\n elasticsearch: {\n hot: {\n autoscaling: {},\n },\n },\n kibana: {},\n});\n```\n```python\nimport pulumi\nimport pulumi_ec as ec\n\nregion = asia_east1\nlatest = ec.get_stack(version_regex=\"latest\",\n region=region)\ngcp_psc = ec.DeploymentTrafficFilter(\"gcp_psc\",\n name=\"my traffic filter name\",\n region=region,\n type=\"gcp_private_service_connect_endpoint\",\n rules=[{\n \"source\": \"18446744072646845332\",\n }])\n# Create an Elastic Cloud deployment\nexample_minimal = ec.Deployment(\"example_minimal\",\n name=\"my_example_deployment\",\n region=region,\n version=latest.version,\n deployment_template_id=\"gcp-storage-optimized\",\n traffic_filters=[gcp_psc.id],\n elasticsearch={\n \"hot\": {\n \"autoscaling\": {},\n },\n },\n kibana={})\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing ElasticCloud = Pulumi.ElasticCloud;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var region = asia_east1;\n\n var latest = ElasticCloud.GetStack.Invoke(new()\n {\n VersionRegex = \"latest\",\n Region = region,\n });\n\n var gcpPsc = new ElasticCloud.DeploymentTrafficFilter(\"gcp_psc\", new()\n {\n Name = \"my traffic filter name\",\n Region = region,\n Type = \"gcp_private_service_connect_endpoint\",\n Rules = new[]\n {\n new ElasticCloud.Inputs.DeploymentTrafficFilterRuleArgs\n {\n Source = \"18446744072646845332\",\n },\n },\n });\n\n // Create an Elastic Cloud deployment\n var exampleMinimal = new ElasticCloud.Deployment(\"example_minimal\", new()\n {\n Name = \"my_example_deployment\",\n Region = region,\n Version = latest.Apply(getStackResult =\u003e getStackResult.Version),\n DeploymentTemplateId = \"gcp-storage-optimized\",\n TrafficFilters = new[]\n {\n gcpPsc.Id,\n },\n Elasticsearch = new ElasticCloud.Inputs.DeploymentElasticsearchArgs\n {\n Hot = new ElasticCloud.Inputs.DeploymentElasticsearchHotArgs\n {\n Autoscaling = null,\n },\n },\n Kibana = null,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-ec/sdk/go/ec\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tregion := asia_east1\n\t\tlatest, err := ec.GetStack(ctx, \u0026ec.GetStackArgs{\n\t\t\tVersionRegex: \"latest\",\n\t\t\tRegion: region,\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tgcpPsc, err := ec.NewDeploymentTrafficFilter(ctx, \"gcp_psc\", \u0026ec.DeploymentTrafficFilterArgs{\n\t\t\tName: pulumi.String(\"my traffic filter name\"),\n\t\t\tRegion: pulumi.Any(region),\n\t\t\tType: pulumi.String(\"gcp_private_service_connect_endpoint\"),\n\t\t\tRules: ec.DeploymentTrafficFilterRuleArray{\n\t\t\t\t\u0026ec.DeploymentTrafficFilterRuleArgs{\n\t\t\t\t\tSource: pulumi.String(\"18446744072646845332\"),\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t// Create an Elastic Cloud deployment\n\t\t_, err = ec.NewDeployment(ctx, \"example_minimal\", \u0026ec.DeploymentArgs{\n\t\t\tName: pulumi.String(\"my_example_deployment\"),\n\t\t\tRegion: pulumi.Any(region),\n\t\t\tVersion: pulumi.String(latest.Version),\n\t\t\tDeploymentTemplateId: pulumi.String(\"gcp-storage-optimized\"),\n\t\t\tTrafficFilters: pulumi.StringArray{\n\t\t\t\tgcpPsc.ID(),\n\t\t\t},\n\t\t\tElasticsearch: \u0026ec.DeploymentElasticsearchArgs{\n\t\t\t\tHot: \u0026ec.DeploymentElasticsearchHotArgs{\n\t\t\t\t\tAutoscaling: \u0026ec.DeploymentElasticsearchHotAutoscalingArgs{},\n\t\t\t\t},\n\t\t\t},\n\t\t\tKibana: \u0026ec.DeploymentKibanaArgs{},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.ec.EcFunctions;\nimport com.pulumi.ec.inputs.GetStackArgs;\nimport com.pulumi.ec.DeploymentTrafficFilter;\nimport com.pulumi.ec.DeploymentTrafficFilterArgs;\nimport com.pulumi.ec.inputs.DeploymentTrafficFilterRuleArgs;\nimport com.pulumi.ec.Deployment;\nimport com.pulumi.ec.DeploymentArgs;\nimport com.pulumi.ec.inputs.DeploymentElasticsearchArgs;\nimport com.pulumi.ec.inputs.DeploymentElasticsearchHotArgs;\nimport com.pulumi.ec.inputs.DeploymentElasticsearchHotAutoscalingArgs;\nimport com.pulumi.ec.inputs.DeploymentKibanaArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var region = asia_east1;\n\n final var latest = EcFunctions.getStack(GetStackArgs.builder()\n .versionRegex(\"latest\")\n .region(region)\n .build());\n\n var gcpPsc = new DeploymentTrafficFilter(\"gcpPsc\", DeploymentTrafficFilterArgs.builder()\n .name(\"my traffic filter name\")\n .region(region)\n .type(\"gcp_private_service_connect_endpoint\")\n .rules(DeploymentTrafficFilterRuleArgs.builder()\n .source(\"18446744072646845332\")\n .build())\n .build());\n\n // Create an Elastic Cloud deployment\n var exampleMinimal = new Deployment(\"exampleMinimal\", DeploymentArgs.builder()\n .name(\"my_example_deployment\")\n .region(region)\n .version(latest.applyValue(getStackResult -\u003e getStackResult.version()))\n .deploymentTemplateId(\"gcp-storage-optimized\")\n .trafficFilters(gcpPsc.id())\n .elasticsearch(DeploymentElasticsearchArgs.builder()\n .hot(DeploymentElasticsearchHotArgs.builder()\n .autoscaling()\n .build())\n .build())\n .kibana()\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create an Elastic Cloud deployment\n exampleMinimal:\n type: ec:Deployment\n name: example_minimal\n properties:\n name: my_example_deployment\n region: ${region}\n version: ${latest.version}\n deploymentTemplateId: gcp-storage-optimized\n trafficFilters:\n - ${gcpPsc.id}\n elasticsearch:\n hot:\n autoscaling: {}\n kibana: {}\n gcpPsc:\n type: ec:DeploymentTrafficFilter\n name: gcp_psc\n properties:\n name: my traffic filter name\n region: ${region}\n type: gcp_private_service_connect_endpoint\n rules:\n - source: '18446744072646845332'\nvariables:\n region: ${[\"asia-east1\"]}\n latest:\n fn::invoke:\n function: ec:getStack\n arguments:\n versionRegex: latest\n region: ${region}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nTraffic filters can be imported using the `id`, for example:\n\n```sh\n$ pulumi import ec:index/deploymentTrafficFilter:DeploymentTrafficFilter name 320b7b540dfc967a7a649c18e2fce4ed\n```\n\n", "properties": { "description": { "type": "string", @@ -4777,7 +4777,7 @@ } }, "ec:index/deploymentTrafficFilterAssociation:DeploymentTrafficFilterAssociation": { - "description": "## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as ec from \"@pulumi/ec\";\n\nconst example = ec.getDeployment({\n id: \"320b7b540dfc967a7a649c18e2fce4ed\",\n});\nconst exampleDeploymentTrafficFilter = new ec.DeploymentTrafficFilter(\"example\", {\n name: \"my traffic filter name\",\n region: \"us-east-1\",\n type: \"ip\",\n rules: [{\n source: \"0.0.0.0/0\",\n }],\n});\nconst exampleDeploymentTrafficFilterAssociation = new ec.DeploymentTrafficFilterAssociation(\"example\", {\n trafficFilterId: exampleDeploymentTrafficFilter.id,\n deploymentId: exampleEcDeployment.id,\n});\n```\n```python\nimport pulumi\nimport pulumi_ec as ec\n\nexample = ec.get_deployment(id=\"320b7b540dfc967a7a649c18e2fce4ed\")\nexample_deployment_traffic_filter = ec.DeploymentTrafficFilter(\"example\",\n name=\"my traffic filter name\",\n region=\"us-east-1\",\n type=\"ip\",\n rules=[{\n \"source\": \"0.0.0.0/0\",\n }])\nexample_deployment_traffic_filter_association = ec.DeploymentTrafficFilterAssociation(\"example\",\n traffic_filter_id=example_deployment_traffic_filter.id,\n deployment_id=example_ec_deployment[\"id\"])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing ElasticCloud = Pulumi.ElasticCloud;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = ElasticCloud.GetDeployment.Invoke(new()\n {\n Id = \"320b7b540dfc967a7a649c18e2fce4ed\",\n });\n\n var exampleDeploymentTrafficFilter = new ElasticCloud.DeploymentTrafficFilter(\"example\", new()\n {\n Name = \"my traffic filter name\",\n Region = \"us-east-1\",\n Type = \"ip\",\n Rules = new[]\n {\n new ElasticCloud.Inputs.DeploymentTrafficFilterRuleArgs\n {\n Source = \"0.0.0.0/0\",\n },\n },\n });\n\n var exampleDeploymentTrafficFilterAssociation = new ElasticCloud.DeploymentTrafficFilterAssociation(\"example\", new()\n {\n TrafficFilterId = exampleDeploymentTrafficFilter.Id,\n DeploymentId = exampleEcDeployment.Id,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-ec/sdk/go/ec\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := ec.LookupDeployment(ctx, \u0026ec.LookupDeploymentArgs{\n\t\t\tId: \"320b7b540dfc967a7a649c18e2fce4ed\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleDeploymentTrafficFilter, err := ec.NewDeploymentTrafficFilter(ctx, \"example\", \u0026ec.DeploymentTrafficFilterArgs{\n\t\t\tName: pulumi.String(\"my traffic filter name\"),\n\t\t\tRegion: pulumi.String(\"us-east-1\"),\n\t\t\tType: pulumi.String(\"ip\"),\n\t\t\tRules: ec.DeploymentTrafficFilterRuleArray{\n\t\t\t\t\u0026ec.DeploymentTrafficFilterRuleArgs{\n\t\t\t\t\tSource: pulumi.String(\"0.0.0.0/0\"),\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = ec.NewDeploymentTrafficFilterAssociation(ctx, \"example\", \u0026ec.DeploymentTrafficFilterAssociationArgs{\n\t\t\tTrafficFilterId: exampleDeploymentTrafficFilter.ID(),\n\t\t\tDeploymentId: pulumi.Any(exampleEcDeployment.Id),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.ec.EcFunctions;\nimport com.pulumi.ec.inputs.GetDeploymentArgs;\nimport com.pulumi.ec.DeploymentTrafficFilter;\nimport com.pulumi.ec.DeploymentTrafficFilterArgs;\nimport com.pulumi.ec.inputs.DeploymentTrafficFilterRuleArgs;\nimport com.pulumi.ec.DeploymentTrafficFilterAssociation;\nimport com.pulumi.ec.DeploymentTrafficFilterAssociationArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = EcFunctions.getDeployment(GetDeploymentArgs.builder()\n .id(\"320b7b540dfc967a7a649c18e2fce4ed\")\n .build());\n\n var exampleDeploymentTrafficFilter = new DeploymentTrafficFilter(\"exampleDeploymentTrafficFilter\", DeploymentTrafficFilterArgs.builder()\n .name(\"my traffic filter name\")\n .region(\"us-east-1\")\n .type(\"ip\")\n .rules(DeploymentTrafficFilterRuleArgs.builder()\n .source(\"0.0.0.0/0\")\n .build())\n .build());\n\n var exampleDeploymentTrafficFilterAssociation = new DeploymentTrafficFilterAssociation(\"exampleDeploymentTrafficFilterAssociation\", DeploymentTrafficFilterAssociationArgs.builder()\n .trafficFilterId(exampleDeploymentTrafficFilter.id())\n .deploymentId(exampleEcDeployment.id())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n exampleDeploymentTrafficFilter:\n type: ec:DeploymentTrafficFilter\n name: example\n properties:\n name: my traffic filter name\n region: us-east-1\n type: ip\n rules:\n - source: 0.0.0.0/0\n exampleDeploymentTrafficFilterAssociation:\n type: ec:DeploymentTrafficFilterAssociation\n name: example\n properties:\n trafficFilterId: ${exampleDeploymentTrafficFilter.id}\n deploymentId: ${exampleEcDeployment.id}\nvariables:\n example:\n fn::invoke:\n Function: ec:getDeployment\n Arguments:\n id: 320b7b540dfc967a7a649c18e2fce4ed\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nImport is not supported on this resource\n\n", + "description": "## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as ec from \"@pulumi/ec\";\n\nconst example = ec.getDeployment({\n id: \"320b7b540dfc967a7a649c18e2fce4ed\",\n});\nconst exampleDeploymentTrafficFilter = new ec.DeploymentTrafficFilter(\"example\", {\n name: \"my traffic filter name\",\n region: \"us-east-1\",\n type: \"ip\",\n rules: [{\n source: \"0.0.0.0/0\",\n }],\n});\nconst exampleDeploymentTrafficFilterAssociation = new ec.DeploymentTrafficFilterAssociation(\"example\", {\n trafficFilterId: exampleDeploymentTrafficFilter.id,\n deploymentId: exampleEcDeployment.id,\n});\n```\n```python\nimport pulumi\nimport pulumi_ec as ec\n\nexample = ec.get_deployment(id=\"320b7b540dfc967a7a649c18e2fce4ed\")\nexample_deployment_traffic_filter = ec.DeploymentTrafficFilter(\"example\",\n name=\"my traffic filter name\",\n region=\"us-east-1\",\n type=\"ip\",\n rules=[{\n \"source\": \"0.0.0.0/0\",\n }])\nexample_deployment_traffic_filter_association = ec.DeploymentTrafficFilterAssociation(\"example\",\n traffic_filter_id=example_deployment_traffic_filter.id,\n deployment_id=example_ec_deployment[\"id\"])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing ElasticCloud = Pulumi.ElasticCloud;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = ElasticCloud.GetDeployment.Invoke(new()\n {\n Id = \"320b7b540dfc967a7a649c18e2fce4ed\",\n });\n\n var exampleDeploymentTrafficFilter = new ElasticCloud.DeploymentTrafficFilter(\"example\", new()\n {\n Name = \"my traffic filter name\",\n Region = \"us-east-1\",\n Type = \"ip\",\n Rules = new[]\n {\n new ElasticCloud.Inputs.DeploymentTrafficFilterRuleArgs\n {\n Source = \"0.0.0.0/0\",\n },\n },\n });\n\n var exampleDeploymentTrafficFilterAssociation = new ElasticCloud.DeploymentTrafficFilterAssociation(\"example\", new()\n {\n TrafficFilterId = exampleDeploymentTrafficFilter.Id,\n DeploymentId = exampleEcDeployment.Id,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-ec/sdk/go/ec\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := ec.LookupDeployment(ctx, \u0026ec.LookupDeploymentArgs{\n\t\t\tId: \"320b7b540dfc967a7a649c18e2fce4ed\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\texampleDeploymentTrafficFilter, err := ec.NewDeploymentTrafficFilter(ctx, \"example\", \u0026ec.DeploymentTrafficFilterArgs{\n\t\t\tName: pulumi.String(\"my traffic filter name\"),\n\t\t\tRegion: pulumi.String(\"us-east-1\"),\n\t\t\tType: pulumi.String(\"ip\"),\n\t\t\tRules: ec.DeploymentTrafficFilterRuleArray{\n\t\t\t\t\u0026ec.DeploymentTrafficFilterRuleArgs{\n\t\t\t\t\tSource: pulumi.String(\"0.0.0.0/0\"),\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = ec.NewDeploymentTrafficFilterAssociation(ctx, \"example\", \u0026ec.DeploymentTrafficFilterAssociationArgs{\n\t\t\tTrafficFilterId: exampleDeploymentTrafficFilter.ID(),\n\t\t\tDeploymentId: pulumi.Any(exampleEcDeployment.Id),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.ec.EcFunctions;\nimport com.pulumi.ec.inputs.GetDeploymentArgs;\nimport com.pulumi.ec.DeploymentTrafficFilter;\nimport com.pulumi.ec.DeploymentTrafficFilterArgs;\nimport com.pulumi.ec.inputs.DeploymentTrafficFilterRuleArgs;\nimport com.pulumi.ec.DeploymentTrafficFilterAssociation;\nimport com.pulumi.ec.DeploymentTrafficFilterAssociationArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = EcFunctions.getDeployment(GetDeploymentArgs.builder()\n .id(\"320b7b540dfc967a7a649c18e2fce4ed\")\n .build());\n\n var exampleDeploymentTrafficFilter = new DeploymentTrafficFilter(\"exampleDeploymentTrafficFilter\", DeploymentTrafficFilterArgs.builder()\n .name(\"my traffic filter name\")\n .region(\"us-east-1\")\n .type(\"ip\")\n .rules(DeploymentTrafficFilterRuleArgs.builder()\n .source(\"0.0.0.0/0\")\n .build())\n .build());\n\n var exampleDeploymentTrafficFilterAssociation = new DeploymentTrafficFilterAssociation(\"exampleDeploymentTrafficFilterAssociation\", DeploymentTrafficFilterAssociationArgs.builder()\n .trafficFilterId(exampleDeploymentTrafficFilter.id())\n .deploymentId(exampleEcDeployment.id())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n exampleDeploymentTrafficFilter:\n type: ec:DeploymentTrafficFilter\n name: example\n properties:\n name: my traffic filter name\n region: us-east-1\n type: ip\n rules:\n - source: 0.0.0.0/0\n exampleDeploymentTrafficFilterAssociation:\n type: ec:DeploymentTrafficFilterAssociation\n name: example\n properties:\n trafficFilterId: ${exampleDeploymentTrafficFilter.id}\n deploymentId: ${exampleEcDeployment.id}\nvariables:\n example:\n fn::invoke:\n function: ec:getDeployment\n arguments:\n id: 320b7b540dfc967a7a649c18e2fce4ed\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nImport is not supported on this resource\n\n", "properties": { "deploymentId": { "type": "string", @@ -5273,7 +5273,7 @@ }, "functions": { "ec:index/getAwsPrivatelinkEndpoint:getAwsPrivatelinkEndpoint": { - "description": "Use this data source to retrieve information about the AWS Private Link configuration for a given region. Further documentation on how to establish a PrivateLink connection can be found in the ESS [documentation](https://www.elastic.co/guide/en/cloud/current/ec-traffic-filtering-vpc.html).\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as ec from \"@pulumi/ec\";\n\nconst us-east-1 = ec.getAwsPrivatelinkEndpoint({\n region: \"us-east-1\",\n});\n```\n```python\nimport pulumi\nimport pulumi_ec as ec\n\nus_east_1 = ec.get_aws_privatelink_endpoint(region=\"us-east-1\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing ElasticCloud = Pulumi.ElasticCloud;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var us_east_1 = ElasticCloud.GetAwsPrivatelinkEndpoint.Invoke(new()\n {\n Region = \"us-east-1\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-ec/sdk/go/ec\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := ec.GetAwsPrivatelinkEndpoint(ctx, \u0026ec.GetAwsPrivatelinkEndpointArgs{\n\t\t\tRegion: \"us-east-1\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.ec.EcFunctions;\nimport com.pulumi.ec.inputs.GetAwsPrivatelinkEndpointArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var us-east-1 = EcFunctions.getAwsPrivatelinkEndpoint(GetAwsPrivatelinkEndpointArgs.builder()\n .region(\"us-east-1\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n us-east-1:\n fn::invoke:\n Function: ec:getAwsPrivatelinkEndpoint\n Arguments:\n region: us-east-1\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "description": "Use this data source to retrieve information about the AWS Private Link configuration for a given region. Further documentation on how to establish a PrivateLink connection can be found in the ESS [documentation](https://www.elastic.co/guide/en/cloud/current/ec-traffic-filtering-vpc.html).\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as ec from \"@pulumi/ec\";\n\nconst us-east-1 = ec.getAwsPrivatelinkEndpoint({\n region: \"us-east-1\",\n});\n```\n```python\nimport pulumi\nimport pulumi_ec as ec\n\nus_east_1 = ec.get_aws_privatelink_endpoint(region=\"us-east-1\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing ElasticCloud = Pulumi.ElasticCloud;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var us_east_1 = ElasticCloud.GetAwsPrivatelinkEndpoint.Invoke(new()\n {\n Region = \"us-east-1\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-ec/sdk/go/ec\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := ec.GetAwsPrivatelinkEndpoint(ctx, \u0026ec.GetAwsPrivatelinkEndpointArgs{\n\t\t\tRegion: \"us-east-1\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.ec.EcFunctions;\nimport com.pulumi.ec.inputs.GetAwsPrivatelinkEndpointArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var us-east-1 = EcFunctions.getAwsPrivatelinkEndpoint(GetAwsPrivatelinkEndpointArgs.builder()\n .region(\"us-east-1\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n us-east-1:\n fn::invoke:\n function: ec:getAwsPrivatelinkEndpoint\n arguments:\n region: us-east-1\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getAwsPrivatelinkEndpoint.\n", "properties": { @@ -5325,7 +5325,7 @@ } }, "ec:index/getAzurePrivatelinkEndpoint:getAzurePrivatelinkEndpoint": { - "description": "Use this data source to retrieve information about the Azure Private Link configuration for a given region. Further documentation on how to establish a PrivateLink connection can be found in the ESS [documentation](https://www.elastic.co/guide/en/cloud/current/ec-traffic-filtering-vnet.html).\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as ec from \"@pulumi/ec\";\n\nconst eastus = ec.getAzurePrivatelinkEndpoint({\n region: \"eastus\",\n});\n```\n```python\nimport pulumi\nimport pulumi_ec as ec\n\neastus = ec.get_azure_privatelink_endpoint(region=\"eastus\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing ElasticCloud = Pulumi.ElasticCloud;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var eastus = ElasticCloud.GetAzurePrivatelinkEndpoint.Invoke(new()\n {\n Region = \"eastus\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-ec/sdk/go/ec\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := ec.GetAzurePrivatelinkEndpoint(ctx, \u0026ec.GetAzurePrivatelinkEndpointArgs{\n\t\t\tRegion: \"eastus\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.ec.EcFunctions;\nimport com.pulumi.ec.inputs.GetAzurePrivatelinkEndpointArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var eastus = EcFunctions.getAzurePrivatelinkEndpoint(GetAzurePrivatelinkEndpointArgs.builder()\n .region(\"eastus\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n eastus:\n fn::invoke:\n Function: ec:getAzurePrivatelinkEndpoint\n Arguments:\n region: eastus\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "description": "Use this data source to retrieve information about the Azure Private Link configuration for a given region. Further documentation on how to establish a PrivateLink connection can be found in the ESS [documentation](https://www.elastic.co/guide/en/cloud/current/ec-traffic-filtering-vnet.html).\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as ec from \"@pulumi/ec\";\n\nconst eastus = ec.getAzurePrivatelinkEndpoint({\n region: \"eastus\",\n});\n```\n```python\nimport pulumi\nimport pulumi_ec as ec\n\neastus = ec.get_azure_privatelink_endpoint(region=\"eastus\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing ElasticCloud = Pulumi.ElasticCloud;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var eastus = ElasticCloud.GetAzurePrivatelinkEndpoint.Invoke(new()\n {\n Region = \"eastus\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-ec/sdk/go/ec\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := ec.GetAzurePrivatelinkEndpoint(ctx, \u0026ec.GetAzurePrivatelinkEndpointArgs{\n\t\t\tRegion: \"eastus\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.ec.EcFunctions;\nimport com.pulumi.ec.inputs.GetAzurePrivatelinkEndpointArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var eastus = EcFunctions.getAzurePrivatelinkEndpoint(GetAzurePrivatelinkEndpointArgs.builder()\n .region(\"eastus\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n eastus:\n fn::invoke:\n function: ec:getAzurePrivatelinkEndpoint\n arguments:\n region: eastus\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getAzurePrivatelinkEndpoint.\n", "properties": { @@ -5369,7 +5369,7 @@ } }, "ec:index/getDeployment:getDeployment": { - "description": "Use this data source to retrieve information about an existing Elastic Cloud deployment.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as ec from \"@pulumi/ec\";\n\nconst example = ec.getDeployment({\n id: \"f759065e5e64e9f3546f6c44f2743893\",\n});\n```\n```python\nimport pulumi\nimport pulumi_ec as ec\n\nexample = ec.get_deployment(id=\"f759065e5e64e9f3546f6c44f2743893\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing ElasticCloud = Pulumi.ElasticCloud;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = ElasticCloud.GetDeployment.Invoke(new()\n {\n Id = \"f759065e5e64e9f3546f6c44f2743893\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-ec/sdk/go/ec\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := ec.LookupDeployment(ctx, \u0026ec.LookupDeploymentArgs{\n\t\t\tId: \"f759065e5e64e9f3546f6c44f2743893\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.ec.EcFunctions;\nimport com.pulumi.ec.inputs.GetDeploymentArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = EcFunctions.getDeployment(GetDeploymentArgs.builder()\n .id(\"f759065e5e64e9f3546f6c44f2743893\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n Function: ec:getDeployment\n Arguments:\n id: f759065e5e64e9f3546f6c44f2743893\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "description": "Use this data source to retrieve information about an existing Elastic Cloud deployment.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as ec from \"@pulumi/ec\";\n\nconst example = ec.getDeployment({\n id: \"f759065e5e64e9f3546f6c44f2743893\",\n});\n```\n```python\nimport pulumi\nimport pulumi_ec as ec\n\nexample = ec.get_deployment(id=\"f759065e5e64e9f3546f6c44f2743893\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing ElasticCloud = Pulumi.ElasticCloud;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = ElasticCloud.GetDeployment.Invoke(new()\n {\n Id = \"f759065e5e64e9f3546f6c44f2743893\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-ec/sdk/go/ec\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := ec.LookupDeployment(ctx, \u0026ec.LookupDeploymentArgs{\n\t\t\tId: \"f759065e5e64e9f3546f6c44f2743893\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.ec.EcFunctions;\nimport com.pulumi.ec.inputs.GetDeploymentArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = EcFunctions.getDeployment(GetDeploymentArgs.builder()\n .id(\"f759065e5e64e9f3546f6c44f2743893\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n function: ec:getDeployment\n arguments:\n id: f759065e5e64e9f3546f6c44f2743893\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getDeployment.\n", "properties": { @@ -5487,7 +5487,7 @@ } }, "ec:index/getDeploymentTemplates:getDeploymentTemplates": { - "description": "Use this data source to retrieve a list of available deployment templates.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as ec from \"@pulumi/ec\";\n\nconst example = ec.getDeploymentTemplates({\n region: \"us-east-1\",\n});\nconst myDeployment = new ec.Deployment(\"my_deployment\", {\n name: \"My Deployment\",\n version: \"8.12.2\",\n region: allTemplates.region,\n deploymentTemplateId: allTemplates.templates[0].id,\n elasticsearch: {\n hot: {\n autoscaling: {},\n },\n },\n kibana: {},\n});\n```\n```python\nimport pulumi\nimport pulumi_ec as ec\n\nexample = ec.get_deployment_templates(region=\"us-east-1\")\nmy_deployment = ec.Deployment(\"my_deployment\",\n name=\"My Deployment\",\n version=\"8.12.2\",\n region=all_templates[\"region\"],\n deployment_template_id=all_templates[\"templates\"][0][\"id\"],\n elasticsearch={\n \"hot\": {\n \"autoscaling\": {},\n },\n },\n kibana={})\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing ElasticCloud = Pulumi.ElasticCloud;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = ElasticCloud.GetDeploymentTemplates.Invoke(new()\n {\n Region = \"us-east-1\",\n });\n\n var myDeployment = new ElasticCloud.Deployment(\"my_deployment\", new()\n {\n Name = \"My Deployment\",\n Version = \"8.12.2\",\n Region = allTemplates.Region,\n DeploymentTemplateId = allTemplates.Templates[0].Id,\n Elasticsearch = new ElasticCloud.Inputs.DeploymentElasticsearchArgs\n {\n Hot = new ElasticCloud.Inputs.DeploymentElasticsearchHotArgs\n {\n Autoscaling = null,\n },\n },\n Kibana = null,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-ec/sdk/go/ec\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := ec.GetDeploymentTemplates(ctx, \u0026ec.GetDeploymentTemplatesArgs{\n\t\t\tRegion: \"us-east-1\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = ec.NewDeployment(ctx, \"my_deployment\", \u0026ec.DeploymentArgs{\n\t\t\tName: pulumi.String(\"My Deployment\"),\n\t\t\tVersion: pulumi.String(\"8.12.2\"),\n\t\t\tRegion: pulumi.Any(allTemplates.Region),\n\t\t\tDeploymentTemplateId: pulumi.Any(allTemplates.Templates[0].Id),\n\t\t\tElasticsearch: \u0026ec.DeploymentElasticsearchArgs{\n\t\t\t\tHot: \u0026ec.DeploymentElasticsearchHotArgs{\n\t\t\t\t\tAutoscaling: \u0026ec.DeploymentElasticsearchHotAutoscalingArgs{},\n\t\t\t\t},\n\t\t\t},\n\t\t\tKibana: \u0026ec.DeploymentKibanaArgs{},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.ec.EcFunctions;\nimport com.pulumi.ec.inputs.GetDeploymentTemplatesArgs;\nimport com.pulumi.ec.Deployment;\nimport com.pulumi.ec.DeploymentArgs;\nimport com.pulumi.ec.inputs.DeploymentElasticsearchArgs;\nimport com.pulumi.ec.inputs.DeploymentElasticsearchHotArgs;\nimport com.pulumi.ec.inputs.DeploymentElasticsearchHotAutoscalingArgs;\nimport com.pulumi.ec.inputs.DeploymentKibanaArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = EcFunctions.getDeploymentTemplates(GetDeploymentTemplatesArgs.builder()\n .region(\"us-east-1\")\n .build());\n\n var myDeployment = new Deployment(\"myDeployment\", DeploymentArgs.builder()\n .name(\"My Deployment\")\n .version(\"8.12.2\")\n .region(allTemplates.region())\n .deploymentTemplateId(allTemplates.templates()[0].id())\n .elasticsearch(DeploymentElasticsearchArgs.builder()\n .hot(DeploymentElasticsearchHotArgs.builder()\n .autoscaling()\n .build())\n .build())\n .kibana()\n .build());\n\n }\n}\n```\n```yaml\nresources:\n myDeployment:\n type: ec:Deployment\n name: my_deployment\n properties:\n name: My Deployment\n version: 8.12.2\n region: ${allTemplates.region}\n deploymentTemplateId: ${allTemplates.templates[0].id}\n elasticsearch:\n hot:\n autoscaling: {}\n kibana: {}\nvariables:\n example:\n fn::invoke:\n Function: ec:getDeploymentTemplates\n Arguments:\n region: us-east-1\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "description": "Use this data source to retrieve a list of available deployment templates.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as ec from \"@pulumi/ec\";\n\nconst example = ec.getDeploymentTemplates({\n region: \"us-east-1\",\n});\nconst myDeployment = new ec.Deployment(\"my_deployment\", {\n name: \"My Deployment\",\n version: \"8.12.2\",\n region: allTemplates.region,\n deploymentTemplateId: allTemplates.templates[0].id,\n elasticsearch: {\n hot: {\n autoscaling: {},\n },\n },\n kibana: {},\n});\n```\n```python\nimport pulumi\nimport pulumi_ec as ec\n\nexample = ec.get_deployment_templates(region=\"us-east-1\")\nmy_deployment = ec.Deployment(\"my_deployment\",\n name=\"My Deployment\",\n version=\"8.12.2\",\n region=all_templates[\"region\"],\n deployment_template_id=all_templates[\"templates\"][0][\"id\"],\n elasticsearch={\n \"hot\": {\n \"autoscaling\": {},\n },\n },\n kibana={})\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing ElasticCloud = Pulumi.ElasticCloud;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = ElasticCloud.GetDeploymentTemplates.Invoke(new()\n {\n Region = \"us-east-1\",\n });\n\n var myDeployment = new ElasticCloud.Deployment(\"my_deployment\", new()\n {\n Name = \"My Deployment\",\n Version = \"8.12.2\",\n Region = allTemplates.Region,\n DeploymentTemplateId = allTemplates.Templates[0].Id,\n Elasticsearch = new ElasticCloud.Inputs.DeploymentElasticsearchArgs\n {\n Hot = new ElasticCloud.Inputs.DeploymentElasticsearchHotArgs\n {\n Autoscaling = null,\n },\n },\n Kibana = null,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-ec/sdk/go/ec\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := ec.GetDeploymentTemplates(ctx, \u0026ec.GetDeploymentTemplatesArgs{\n\t\t\tRegion: \"us-east-1\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = ec.NewDeployment(ctx, \"my_deployment\", \u0026ec.DeploymentArgs{\n\t\t\tName: pulumi.String(\"My Deployment\"),\n\t\t\tVersion: pulumi.String(\"8.12.2\"),\n\t\t\tRegion: pulumi.Any(allTemplates.Region),\n\t\t\tDeploymentTemplateId: pulumi.Any(allTemplates.Templates[0].Id),\n\t\t\tElasticsearch: \u0026ec.DeploymentElasticsearchArgs{\n\t\t\t\tHot: \u0026ec.DeploymentElasticsearchHotArgs{\n\t\t\t\t\tAutoscaling: \u0026ec.DeploymentElasticsearchHotAutoscalingArgs{},\n\t\t\t\t},\n\t\t\t},\n\t\t\tKibana: \u0026ec.DeploymentKibanaArgs{},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.ec.EcFunctions;\nimport com.pulumi.ec.inputs.GetDeploymentTemplatesArgs;\nimport com.pulumi.ec.Deployment;\nimport com.pulumi.ec.DeploymentArgs;\nimport com.pulumi.ec.inputs.DeploymentElasticsearchArgs;\nimport com.pulumi.ec.inputs.DeploymentElasticsearchHotArgs;\nimport com.pulumi.ec.inputs.DeploymentElasticsearchHotAutoscalingArgs;\nimport com.pulumi.ec.inputs.DeploymentKibanaArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = EcFunctions.getDeploymentTemplates(GetDeploymentTemplatesArgs.builder()\n .region(\"us-east-1\")\n .build());\n\n var myDeployment = new Deployment(\"myDeployment\", DeploymentArgs.builder()\n .name(\"My Deployment\")\n .version(\"8.12.2\")\n .region(allTemplates.region())\n .deploymentTemplateId(allTemplates.templates()[0].id())\n .elasticsearch(DeploymentElasticsearchArgs.builder()\n .hot(DeploymentElasticsearchHotArgs.builder()\n .autoscaling()\n .build())\n .build())\n .kibana()\n .build());\n\n }\n}\n```\n```yaml\nresources:\n myDeployment:\n type: ec:Deployment\n name: my_deployment\n properties:\n name: My Deployment\n version: 8.12.2\n region: ${allTemplates.region}\n deploymentTemplateId: ${allTemplates.templates[0].id}\n elasticsearch:\n hot:\n autoscaling: {}\n kibana: {}\nvariables:\n example:\n fn::invoke:\n function: ec:getDeploymentTemplates\n arguments:\n region: us-east-1\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getDeploymentTemplates.\n", "properties": { @@ -5548,7 +5548,7 @@ } }, "ec:index/getDeployments:getDeployments": { - "description": "Use this data source to retrieve a list of IDs for the deployment and resource kinds, based on the specified query.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as ec from \"@pulumi/ec\";\n\nconst example = ec.getDeployments({\n namePrefix: \"test\",\n deploymentTemplateId: \"azure-compute-optimized\",\n size: 200,\n tags: {\n foo: \"bar\",\n },\n elasticsearches: [{\n healthy: \"true\",\n }],\n kibanas: [{\n status: \"started\",\n }],\n integrationsServers: [{\n version: \"8.0.0\",\n }],\n enterpriseSearches: [{\n healthy: \"true\",\n }],\n});\n```\n```python\nimport pulumi\nimport pulumi_ec as ec\n\nexample = ec.get_deployments(name_prefix=\"test\",\n deployment_template_id=\"azure-compute-optimized\",\n size=200,\n tags={\n \"foo\": \"bar\",\n },\n elasticsearches=[{\n \"healthy\": \"true\",\n }],\n kibanas=[{\n \"status\": \"started\",\n }],\n integrations_servers=[{\n \"version\": \"8.0.0\",\n }],\n enterprise_searches=[{\n \"healthy\": \"true\",\n }])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing ElasticCloud = Pulumi.ElasticCloud;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = ElasticCloud.GetDeployments.Invoke(new()\n {\n NamePrefix = \"test\",\n DeploymentTemplateId = \"azure-compute-optimized\",\n Size = 200,\n Tags = \n {\n { \"foo\", \"bar\" },\n },\n Elasticsearches = new[]\n {\n new ElasticCloud.Inputs.GetDeploymentsElasticsearchInputArgs\n {\n Healthy = \"true\",\n },\n },\n Kibanas = new[]\n {\n new ElasticCloud.Inputs.GetDeploymentsKibanaInputArgs\n {\n Status = \"started\",\n },\n },\n IntegrationsServers = new[]\n {\n new ElasticCloud.Inputs.GetDeploymentsIntegrationsServerInputArgs\n {\n Version = \"8.0.0\",\n },\n },\n EnterpriseSearches = new[]\n {\n new ElasticCloud.Inputs.GetDeploymentsEnterpriseSearchInputArgs\n {\n Healthy = \"true\",\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-ec/sdk/go/ec\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := ec.GetDeployments(ctx, \u0026ec.GetDeploymentsArgs{\n\t\t\tNamePrefix: pulumi.StringRef(\"test\"),\n\t\t\tDeploymentTemplateId: pulumi.StringRef(\"azure-compute-optimized\"),\n\t\t\tSize: pulumi.IntRef(200),\n\t\t\tTags: map[string]interface{}{\n\t\t\t\t\"foo\": \"bar\",\n\t\t\t},\n\t\t\tElasticsearches: []ec.GetDeploymentsElasticsearch{\n\t\t\t\t{\n\t\t\t\t\tHealthy: pulumi.StringRef(\"true\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tKibanas: []ec.GetDeploymentsKibana{\n\t\t\t\t{\n\t\t\t\t\tStatus: pulumi.StringRef(\"started\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tIntegrationsServers: []ec.GetDeploymentsIntegrationsServer{\n\t\t\t\t{\n\t\t\t\t\tVersion: pulumi.StringRef(\"8.0.0\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tEnterpriseSearches: []ec.GetDeploymentsEnterpriseSearch{\n\t\t\t\t{\n\t\t\t\t\tHealthy: pulumi.StringRef(\"true\"),\n\t\t\t\t},\n\t\t\t},\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.ec.EcFunctions;\nimport com.pulumi.ec.inputs.GetDeploymentsArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = EcFunctions.getDeployments(GetDeploymentsArgs.builder()\n .namePrefix(\"test\")\n .deploymentTemplateId(\"azure-compute-optimized\")\n .size(200)\n .tags(Map.of(\"foo\", \"bar\"))\n .elasticsearches(GetDeploymentsElasticsearchArgs.builder()\n .healthy(\"true\")\n .build())\n .kibanas(GetDeploymentsKibanaArgs.builder()\n .status(\"started\")\n .build())\n .integrationsServers(GetDeploymentsIntegrationsServerArgs.builder()\n .version(\"8.0.0\")\n .build())\n .enterpriseSearches(GetDeploymentsEnterpriseSearchArgs.builder()\n .healthy(\"true\")\n .build())\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n Function: ec:getDeployments\n Arguments:\n namePrefix: test\n deploymentTemplateId: azure-compute-optimized\n size: 200\n tags:\n foo: bar\n elasticsearches:\n - healthy: 'true'\n kibanas:\n - status: started\n integrationsServers:\n - version: 8.0.0\n enterpriseSearches:\n - healthy: 'true'\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "description": "Use this data source to retrieve a list of IDs for the deployment and resource kinds, based on the specified query.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as ec from \"@pulumi/ec\";\n\nconst example = ec.getDeployments({\n namePrefix: \"test\",\n deploymentTemplateId: \"azure-compute-optimized\",\n size: 200,\n tags: {\n foo: \"bar\",\n },\n elasticsearches: [{\n healthy: \"true\",\n }],\n kibanas: [{\n status: \"started\",\n }],\n integrationsServers: [{\n version: \"8.0.0\",\n }],\n enterpriseSearches: [{\n healthy: \"true\",\n }],\n});\n```\n```python\nimport pulumi\nimport pulumi_ec as ec\n\nexample = ec.get_deployments(name_prefix=\"test\",\n deployment_template_id=\"azure-compute-optimized\",\n size=200,\n tags={\n \"foo\": \"bar\",\n },\n elasticsearches=[{\n \"healthy\": \"true\",\n }],\n kibanas=[{\n \"status\": \"started\",\n }],\n integrations_servers=[{\n \"version\": \"8.0.0\",\n }],\n enterprise_searches=[{\n \"healthy\": \"true\",\n }])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing ElasticCloud = Pulumi.ElasticCloud;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = ElasticCloud.GetDeployments.Invoke(new()\n {\n NamePrefix = \"test\",\n DeploymentTemplateId = \"azure-compute-optimized\",\n Size = 200,\n Tags = \n {\n { \"foo\", \"bar\" },\n },\n Elasticsearches = new[]\n {\n new ElasticCloud.Inputs.GetDeploymentsElasticsearchInputArgs\n {\n Healthy = \"true\",\n },\n },\n Kibanas = new[]\n {\n new ElasticCloud.Inputs.GetDeploymentsKibanaInputArgs\n {\n Status = \"started\",\n },\n },\n IntegrationsServers = new[]\n {\n new ElasticCloud.Inputs.GetDeploymentsIntegrationsServerInputArgs\n {\n Version = \"8.0.0\",\n },\n },\n EnterpriseSearches = new[]\n {\n new ElasticCloud.Inputs.GetDeploymentsEnterpriseSearchInputArgs\n {\n Healthy = \"true\",\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-ec/sdk/go/ec\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := ec.GetDeployments(ctx, \u0026ec.GetDeploymentsArgs{\n\t\t\tNamePrefix: pulumi.StringRef(\"test\"),\n\t\t\tDeploymentTemplateId: pulumi.StringRef(\"azure-compute-optimized\"),\n\t\t\tSize: pulumi.IntRef(200),\n\t\t\tTags: map[string]interface{}{\n\t\t\t\t\"foo\": \"bar\",\n\t\t\t},\n\t\t\tElasticsearches: []ec.GetDeploymentsElasticsearch{\n\t\t\t\t{\n\t\t\t\t\tHealthy: pulumi.StringRef(\"true\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tKibanas: []ec.GetDeploymentsKibana{\n\t\t\t\t{\n\t\t\t\t\tStatus: pulumi.StringRef(\"started\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tIntegrationsServers: []ec.GetDeploymentsIntegrationsServer{\n\t\t\t\t{\n\t\t\t\t\tVersion: pulumi.StringRef(\"8.0.0\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tEnterpriseSearches: []ec.GetDeploymentsEnterpriseSearch{\n\t\t\t\t{\n\t\t\t\t\tHealthy: pulumi.StringRef(\"true\"),\n\t\t\t\t},\n\t\t\t},\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.ec.EcFunctions;\nimport com.pulumi.ec.inputs.GetDeploymentsArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var example = EcFunctions.getDeployments(GetDeploymentsArgs.builder()\n .namePrefix(\"test\")\n .deploymentTemplateId(\"azure-compute-optimized\")\n .size(200)\n .tags(Map.of(\"foo\", \"bar\"))\n .elasticsearches(GetDeploymentsElasticsearchArgs.builder()\n .healthy(\"true\")\n .build())\n .kibanas(GetDeploymentsKibanaArgs.builder()\n .status(\"started\")\n .build())\n .integrationsServers(GetDeploymentsIntegrationsServerArgs.builder()\n .version(\"8.0.0\")\n .build())\n .enterpriseSearches(GetDeploymentsEnterpriseSearchArgs.builder()\n .healthy(\"true\")\n .build())\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n example:\n fn::invoke:\n function: ec:getDeployments\n arguments:\n namePrefix: test\n deploymentTemplateId: azure-compute-optimized\n size: 200\n tags:\n foo: bar\n elasticsearches:\n - healthy: 'true'\n kibanas:\n - status: started\n integrationsServers:\n - version: 8.0.0\n enterpriseSearches:\n - healthy: 'true'\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getDeployments.\n", "properties": { @@ -5707,7 +5707,7 @@ } }, "ec:index/getGcpPrivateServiceConnectEndpoint:getGcpPrivateServiceConnectEndpoint": { - "description": "Use this data source to retrieve information about the GCP Private Service Connect configuration for a given region. Further documentation on how to establish a PrivateLink connection can be found in the ESS [documentation](https://www.elastic.co/guide/en/cloud/current/ec-traffic-filtering-psc.html).\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as ec from \"@pulumi/ec\";\n\nconst us-central1 = ec.getGcpPrivateServiceConnectEndpoint({\n region: \"us-central1\",\n});\n```\n```python\nimport pulumi\nimport pulumi_ec as ec\n\nus_central1 = ec.get_gcp_private_service_connect_endpoint(region=\"us-central1\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing ElasticCloud = Pulumi.ElasticCloud;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var us_central1 = ElasticCloud.GetGcpPrivateServiceConnectEndpoint.Invoke(new()\n {\n Region = \"us-central1\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-ec/sdk/go/ec\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := ec.GetGcpPrivateServiceConnectEndpoint(ctx, \u0026ec.GetGcpPrivateServiceConnectEndpointArgs{\n\t\t\tRegion: \"us-central1\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.ec.EcFunctions;\nimport com.pulumi.ec.inputs.GetGcpPrivateServiceConnectEndpointArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var us-central1 = EcFunctions.getGcpPrivateServiceConnectEndpoint(GetGcpPrivateServiceConnectEndpointArgs.builder()\n .region(\"us-central1\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n us-central1:\n fn::invoke:\n Function: ec:getGcpPrivateServiceConnectEndpoint\n Arguments:\n region: us-central1\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "description": "Use this data source to retrieve information about the GCP Private Service Connect configuration for a given region. Further documentation on how to establish a PrivateLink connection can be found in the ESS [documentation](https://www.elastic.co/guide/en/cloud/current/ec-traffic-filtering-psc.html).\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as ec from \"@pulumi/ec\";\n\nconst us-central1 = ec.getGcpPrivateServiceConnectEndpoint({\n region: \"us-central1\",\n});\n```\n```python\nimport pulumi\nimport pulumi_ec as ec\n\nus_central1 = ec.get_gcp_private_service_connect_endpoint(region=\"us-central1\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing ElasticCloud = Pulumi.ElasticCloud;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var us_central1 = ElasticCloud.GetGcpPrivateServiceConnectEndpoint.Invoke(new()\n {\n Region = \"us-central1\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-ec/sdk/go/ec\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := ec.GetGcpPrivateServiceConnectEndpoint(ctx, \u0026ec.GetGcpPrivateServiceConnectEndpointArgs{\n\t\t\tRegion: \"us-central1\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.ec.EcFunctions;\nimport com.pulumi.ec.inputs.GetGcpPrivateServiceConnectEndpointArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var us-central1 = EcFunctions.getGcpPrivateServiceConnectEndpoint(GetGcpPrivateServiceConnectEndpointArgs.builder()\n .region(\"us-central1\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n us-central1:\n fn::invoke:\n function: ec:getGcpPrivateServiceConnectEndpoint\n arguments:\n region: us-central1\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getGcpPrivateServiceConnectEndpoint.\n", "properties": { @@ -5751,7 +5751,7 @@ } }, "ec:index/getStack:getStack": { - "description": "Use this data source to retrieve information about an existing Elastic Cloud stack.\n\n \u003e **Note on regions** Before you start, you might want to check the [full list](https://www.elastic.co/guide/en/cloud/current/ec-regions-templates-instances.html) of regions available in Elasticsearch Service (ESS).\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as ec from \"@pulumi/ec\";\n\nconst latest = ec.getStack({\n versionRegex: \"latest\",\n region: \"us-east-1\",\n lock: true,\n});\nconst latestPatch = ec.getStack({\n versionRegex: \"7.9.?\",\n region: \"us-east-1\",\n});\n```\n```python\nimport pulumi\nimport pulumi_ec as ec\n\nlatest = ec.get_stack(version_regex=\"latest\",\n region=\"us-east-1\",\n lock=True)\nlatest_patch = ec.get_stack(version_regex=\"7.9.?\",\n region=\"us-east-1\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing ElasticCloud = Pulumi.ElasticCloud;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var latest = ElasticCloud.GetStack.Invoke(new()\n {\n VersionRegex = \"latest\",\n Region = \"us-east-1\",\n Lock = true,\n });\n\n var latestPatch = ElasticCloud.GetStack.Invoke(new()\n {\n VersionRegex = \"7.9.?\",\n Region = \"us-east-1\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-ec/sdk/go/ec\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := ec.GetStack(ctx, \u0026ec.GetStackArgs{\n\t\t\tVersionRegex: \"latest\",\n\t\t\tRegion: \"us-east-1\",\n\t\t\tLock: pulumi.BoolRef(true),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = ec.GetStack(ctx, \u0026ec.GetStackArgs{\n\t\t\tVersionRegex: \"7.9.?\",\n\t\t\tRegion: \"us-east-1\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.ec.EcFunctions;\nimport com.pulumi.ec.inputs.GetStackArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var latest = EcFunctions.getStack(GetStackArgs.builder()\n .versionRegex(\"latest\")\n .region(\"us-east-1\")\n .lock(true)\n .build());\n\n final var latestPatch = EcFunctions.getStack(GetStackArgs.builder()\n .versionRegex(\"7.9.?\")\n .region(\"us-east-1\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n latest:\n fn::invoke:\n Function: ec:getStack\n Arguments:\n versionRegex: latest\n region: us-east-1\n lock: true\n latestPatch:\n fn::invoke:\n Function: ec:getStack\n Arguments:\n versionRegex: 7.9.?\n region: us-east-1\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "description": "Use this data source to retrieve information about an existing Elastic Cloud stack.\n\n \u003e **Note on regions** Before you start, you might want to check the [full list](https://www.elastic.co/guide/en/cloud/current/ec-regions-templates-instances.html) of regions available in Elasticsearch Service (ESS).\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as ec from \"@pulumi/ec\";\n\nconst latest = ec.getStack({\n versionRegex: \"latest\",\n region: \"us-east-1\",\n lock: true,\n});\nconst latestPatch = ec.getStack({\n versionRegex: \"7.9.?\",\n region: \"us-east-1\",\n});\n```\n```python\nimport pulumi\nimport pulumi_ec as ec\n\nlatest = ec.get_stack(version_regex=\"latest\",\n region=\"us-east-1\",\n lock=True)\nlatest_patch = ec.get_stack(version_regex=\"7.9.?\",\n region=\"us-east-1\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing ElasticCloud = Pulumi.ElasticCloud;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var latest = ElasticCloud.GetStack.Invoke(new()\n {\n VersionRegex = \"latest\",\n Region = \"us-east-1\",\n Lock = true,\n });\n\n var latestPatch = ElasticCloud.GetStack.Invoke(new()\n {\n VersionRegex = \"7.9.?\",\n Region = \"us-east-1\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-ec/sdk/go/ec\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := ec.GetStack(ctx, \u0026ec.GetStackArgs{\n\t\t\tVersionRegex: \"latest\",\n\t\t\tRegion: \"us-east-1\",\n\t\t\tLock: pulumi.BoolRef(true),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = ec.GetStack(ctx, \u0026ec.GetStackArgs{\n\t\t\tVersionRegex: \"7.9.?\",\n\t\t\tRegion: \"us-east-1\",\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.ec.EcFunctions;\nimport com.pulumi.ec.inputs.GetStackArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var latest = EcFunctions.getStack(GetStackArgs.builder()\n .versionRegex(\"latest\")\n .region(\"us-east-1\")\n .lock(true)\n .build());\n\n final var latestPatch = EcFunctions.getStack(GetStackArgs.builder()\n .versionRegex(\"7.9.?\")\n .region(\"us-east-1\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n latest:\n fn::invoke:\n function: ec:getStack\n arguments:\n versionRegex: latest\n region: us-east-1\n lock: true\n latestPatch:\n fn::invoke:\n function: ec:getStack\n arguments:\n versionRegex: 7.9.?\n region: us-east-1\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getStack.\n", "properties": { @@ -5863,7 +5863,7 @@ } }, "ec:index/getTrafficFilter:getTrafficFilter": { - "description": "Use this data source to filter for an existing traffic filter that has been created via one of the provided filters.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as ec from \"@pulumi/ec\";\n\nconst name = ec.getTrafficFilter({\n name: \"example-filter\",\n});\nconst id = ec.getTrafficFilter({\n id: \"41d275439f884ce89359039e53eac516\",\n});\nconst region = ec.getTrafficFilter({\n region: \"us-east-1\",\n});\n```\n```python\nimport pulumi\nimport pulumi_ec as ec\n\nname = ec.get_traffic_filter(name=\"example-filter\")\nid = ec.get_traffic_filter(id=\"41d275439f884ce89359039e53eac516\")\nregion = ec.get_traffic_filter(region=\"us-east-1\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing ElasticCloud = Pulumi.ElasticCloud;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var name = ElasticCloud.GetTrafficFilter.Invoke(new()\n {\n Name = \"example-filter\",\n });\n\n var id = ElasticCloud.GetTrafficFilter.Invoke(new()\n {\n Id = \"41d275439f884ce89359039e53eac516\",\n });\n\n var region = ElasticCloud.GetTrafficFilter.Invoke(new()\n {\n Region = \"us-east-1\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-ec/sdk/go/ec\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := ec.GetTrafficFilter(ctx, \u0026ec.GetTrafficFilterArgs{\n\t\t\tName: pulumi.StringRef(\"example-filter\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = ec.GetTrafficFilter(ctx, \u0026ec.GetTrafficFilterArgs{\n\t\t\tId: pulumi.StringRef(\"41d275439f884ce89359039e53eac516\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = ec.GetTrafficFilter(ctx, \u0026ec.GetTrafficFilterArgs{\n\t\t\tRegion: pulumi.StringRef(\"us-east-1\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.ec.EcFunctions;\nimport com.pulumi.ec.inputs.GetTrafficFilterArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var name = EcFunctions.getTrafficFilter(GetTrafficFilterArgs.builder()\n .name(\"example-filter\")\n .build());\n\n final var id = EcFunctions.getTrafficFilter(GetTrafficFilterArgs.builder()\n .id(\"41d275439f884ce89359039e53eac516\")\n .build());\n\n final var region = EcFunctions.getTrafficFilter(GetTrafficFilterArgs.builder()\n .region(\"us-east-1\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n name:\n fn::invoke:\n Function: ec:getTrafficFilter\n Arguments:\n name: example-filter\n id:\n fn::invoke:\n Function: ec:getTrafficFilter\n Arguments:\n id: 41d275439f884ce89359039e53eac516\n region:\n fn::invoke:\n Function: ec:getTrafficFilter\n Arguments:\n region: us-east-1\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", + "description": "Use this data source to filter for an existing traffic filter that has been created via one of the provided filters.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as ec from \"@pulumi/ec\";\n\nconst name = ec.getTrafficFilter({\n name: \"example-filter\",\n});\nconst id = ec.getTrafficFilter({\n id: \"41d275439f884ce89359039e53eac516\",\n});\nconst region = ec.getTrafficFilter({\n region: \"us-east-1\",\n});\n```\n```python\nimport pulumi\nimport pulumi_ec as ec\n\nname = ec.get_traffic_filter(name=\"example-filter\")\nid = ec.get_traffic_filter(id=\"41d275439f884ce89359039e53eac516\")\nregion = ec.get_traffic_filter(region=\"us-east-1\")\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing ElasticCloud = Pulumi.ElasticCloud;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var name = ElasticCloud.GetTrafficFilter.Invoke(new()\n {\n Name = \"example-filter\",\n });\n\n var id = ElasticCloud.GetTrafficFilter.Invoke(new()\n {\n Id = \"41d275439f884ce89359039e53eac516\",\n });\n\n var region = ElasticCloud.GetTrafficFilter.Invoke(new()\n {\n Region = \"us-east-1\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-ec/sdk/go/ec\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := ec.GetTrafficFilter(ctx, \u0026ec.GetTrafficFilterArgs{\n\t\t\tName: pulumi.StringRef(\"example-filter\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = ec.GetTrafficFilter(ctx, \u0026ec.GetTrafficFilterArgs{\n\t\t\tId: pulumi.StringRef(\"41d275439f884ce89359039e53eac516\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = ec.GetTrafficFilter(ctx, \u0026ec.GetTrafficFilterArgs{\n\t\t\tRegion: pulumi.StringRef(\"us-east-1\"),\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.ec.EcFunctions;\nimport com.pulumi.ec.inputs.GetTrafficFilterArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var name = EcFunctions.getTrafficFilter(GetTrafficFilterArgs.builder()\n .name(\"example-filter\")\n .build());\n\n final var id = EcFunctions.getTrafficFilter(GetTrafficFilterArgs.builder()\n .id(\"41d275439f884ce89359039e53eac516\")\n .build());\n\n final var region = EcFunctions.getTrafficFilter(GetTrafficFilterArgs.builder()\n .region(\"us-east-1\")\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n name:\n fn::invoke:\n function: ec:getTrafficFilter\n arguments:\n name: example-filter\n id:\n fn::invoke:\n function: ec:getTrafficFilter\n arguments:\n id: 41d275439f884ce89359039e53eac516\n region:\n fn::invoke:\n function: ec:getTrafficFilter\n arguments:\n region: us-east-1\n```\n\u003c!--End PulumiCodeChooser --\u003e\n", "inputs": { "description": "A collection of arguments for invoking getTrafficFilter.\n", "properties": { diff --git a/provider/go.mod b/provider/go.mod index 8517a90..0761c04 100644 --- a/provider/go.mod +++ b/provider/go.mod @@ -11,7 +11,7 @@ replace ( require ( github.com/elastic/terraform-provider-ec v0.12.2 - github.com/pulumi/pulumi-terraform-bridge/v3 v3.96.0 + github.com/pulumi/pulumi-terraform-bridge/v3 v3.96.1-0.20241209191100-0c46ff573f44 ) require ( @@ -155,10 +155,10 @@ require ( github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231 // indirect github.com/pulumi/esc v0.10.0 // indirect github.com/pulumi/inflector v0.1.1 // indirect - github.com/pulumi/pulumi-java/pkg v0.17.0 // indirect - github.com/pulumi/pulumi-yaml v1.11.2 // indirect - github.com/pulumi/pulumi/pkg/v3 v3.140.0 // indirect - github.com/pulumi/pulumi/sdk/v3 v3.140.0 // indirect + github.com/pulumi/pulumi-java/pkg v0.18.0 // indirect + github.com/pulumi/pulumi-yaml v1.12.0 // indirect + github.com/pulumi/pulumi/pkg/v3 v3.142.0 // indirect + github.com/pulumi/pulumi/sdk/v3 v3.142.0 // indirect github.com/pulumi/schema-tools v0.1.2 // indirect github.com/rivo/uniseg v0.4.4 // indirect github.com/rogpeppe/go-internal v1.12.0 // indirect diff --git a/provider/go.sum b/provider/go.sum index c0f140d..cd9382b 100644 --- a/provider/go.sum +++ b/provider/go.sum @@ -812,16 +812,16 @@ github.com/pulumi/inflector v0.1.1 h1:dvlxlWtXwOJTUUtcYDvwnl6Mpg33prhK+7mzeF+Sob github.com/pulumi/inflector v0.1.1/go.mod h1:HUFCjcPTz96YtTuUlwG3i3EZG4WlniBvR9bd+iJxCUY= github.com/pulumi/providertest v0.1.3 h1:GpNKRy/haNjRHiUA9bi4diU4Op2zf3axYXbga5AepHg= github.com/pulumi/providertest v0.1.3/go.mod h1:GcsqEGgSngwaNOD+kICJPIUQlnA911fGBU8HDlJvVL0= -github.com/pulumi/pulumi-java/pkg v0.17.0 h1:KmaVLrVmlkzShOfaJNJDlckorbFm8dM/C7L4hj6LX8U= -github.com/pulumi/pulumi-java/pkg v0.17.0/go.mod h1:ji4U4H7t81X4aaE88D9+z5CmKH/QoLwQi9N1iGl+2KQ= -github.com/pulumi/pulumi-terraform-bridge/v3 v3.96.0 h1:uJB3tM1j+9SKeXLCAx3DBVHsYk4ddXNrVoiqpgXal2Q= -github.com/pulumi/pulumi-terraform-bridge/v3 v3.96.0/go.mod h1:WnOTAfdtm5+kW3rIU0rLhxFSEHtJIMf19FdOU6NFXG0= -github.com/pulumi/pulumi-yaml v1.11.2 h1:MU7TTNbruGCSgNHhaBygjIbLWm3WSbd1q98GpMIgQzE= -github.com/pulumi/pulumi-yaml v1.11.2/go.mod h1:RdXRBupRGGAD1kbYNG1V1h6pyFnXisvQsl0AANvVjGI= -github.com/pulumi/pulumi/pkg/v3 v3.140.0 h1:/bvHa19HY/6qHWvuAOVII8qr72MDGGczBWlPYlPo3j0= -github.com/pulumi/pulumi/pkg/v3 v3.140.0/go.mod h1:rcTtSyisd7BzZTugNk/s9zlYgX9S0S10+pha3Tko6yM= -github.com/pulumi/pulumi/sdk/v3 v3.140.0 h1:+Z/RBvdYg7tBNkBwk4p/FzlV7niBT3TbLAICq/Y0LDU= -github.com/pulumi/pulumi/sdk/v3 v3.140.0/go.mod h1:PvKsX88co8XuwuPdzolMvew5lZV+4JmZfkeSjj7A6dI= +github.com/pulumi/pulumi-java/pkg v0.18.0 h1:3PApc5YegH69n6oubB63mqI97pF+oQywWr7ii4082Mw= +github.com/pulumi/pulumi-java/pkg v0.18.0/go.mod h1:YKYYFEb3Jvzf/dDJo0xOeEkIfBAMkkkdhXulauvEjmc= +github.com/pulumi/pulumi-terraform-bridge/v3 v3.96.1-0.20241209191100-0c46ff573f44 h1:EQrVmZTk66w6IXDLAKPlqHGvDchvCYEcxzYL2CoEURE= +github.com/pulumi/pulumi-terraform-bridge/v3 v3.96.1-0.20241209191100-0c46ff573f44/go.mod h1:B/Auryr+yVUkLOMzgpFe7HLwKAtXc6YJwpAXfNGyLPk= +github.com/pulumi/pulumi-yaml v1.12.0 h1:ThJP+EBqeJyCnS6w6/PwcEFOT5o112qv0lObhefmFCk= +github.com/pulumi/pulumi-yaml v1.12.0/go.mod h1:EhZd1XDfuLa15O51qVVE16U6r8ldK9mLIBclqWCX27Y= +github.com/pulumi/pulumi/pkg/v3 v3.142.0 h1:UE8TFyXrlxvPrATpd3Kl3En34KrFIFWOxxNAodywPNU= +github.com/pulumi/pulumi/pkg/v3 v3.142.0/go.mod h1:3k6WwRIT7veiDnk3Yo2NtqEYX+4dgLCrMIFvEOnjQqI= +github.com/pulumi/pulumi/sdk/v3 v3.142.0 h1:SmcVddGuvwAh3g3XUVQQ5gVRQUKH1yZ6iETpDNHIHlw= +github.com/pulumi/pulumi/sdk/v3 v3.142.0/go.mod h1:PvKsX88co8XuwuPdzolMvew5lZV+4JmZfkeSjj7A6dI= github.com/pulumi/schema-tools v0.1.2 h1:Fd9xvUjgck4NA+7/jSk7InqCUT4Kj940+EcnbQKpfZo= github.com/pulumi/schema-tools v0.1.2/go.mod h1:62lgj52Tzq11eqWTIaKd+EVyYAu5dEcDJxMhTjvMO/k= github.com/pulumi/terraform-diff-reader v0.0.2 h1:kTE4nEXU3/SYXESvAIem+wyHMI3abqkI3OhJ0G04LLI= diff --git a/sdk/go.mod b/sdk/go.mod index f4bd0ed..3bef31b 100644 --- a/sdk/go.mod +++ b/sdk/go.mod @@ -4,7 +4,7 @@ go 1.21 require ( github.com/blang/semver v3.5.1+incompatible - github.com/pulumi/pulumi/sdk/v3 v3.140.0 + github.com/pulumi/pulumi/sdk/v3 v3.142.0 ) require ( diff --git a/sdk/go.sum b/sdk/go.sum index 7fb5b07..129c0aa 100644 --- a/sdk/go.sum +++ b/sdk/go.sum @@ -150,8 +150,8 @@ github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231 h1:vkHw5I/plNdTr435 github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231/go.mod h1:murToZ2N9hNJzewjHBgfFdXhZKjY3z5cYC1VXk+lbFE= github.com/pulumi/esc v0.9.1 h1:HH5eEv8sgyxSpY5a8yePyqFXzA8cvBvapfH8457+mIs= github.com/pulumi/esc v0.9.1/go.mod h1:oEJ6bOsjYlQUpjf70GiX+CXn3VBmpwFDxUTlmtUN84c= -github.com/pulumi/pulumi/sdk/v3 v3.140.0 h1:+Z/RBvdYg7tBNkBwk4p/FzlV7niBT3TbLAICq/Y0LDU= -github.com/pulumi/pulumi/sdk/v3 v3.140.0/go.mod h1:PvKsX88co8XuwuPdzolMvew5lZV+4JmZfkeSjj7A6dI= +github.com/pulumi/pulumi/sdk/v3 v3.142.0 h1:SmcVddGuvwAh3g3XUVQQ5gVRQUKH1yZ6iETpDNHIHlw= +github.com/pulumi/pulumi/sdk/v3 v3.142.0/go.mod h1:PvKsX88co8XuwuPdzolMvew5lZV+4JmZfkeSjj7A6dI= github.com/rivo/uniseg v0.1.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc= github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc= github.com/rivo/uniseg v0.4.4 h1:8TfxU8dW6PdqD27gjM8MVNuicgxIjxpm4K7x4jp8sis= From e45e03175488d58201465bda9f89787653b4b58e Mon Sep 17 00:00:00 2001 From: pulumi-bot Date: Mon, 9 Dec 2024 19:36:21 +0000 Subject: [PATCH 2/2] make build_sdks --- sdk/nodejs/getAwsPrivatelinkEndpoint.ts | 2 +- sdk/nodejs/getAzurePrivatelinkEndpoint.ts | 2 +- sdk/nodejs/getDeployment.ts | 2 +- sdk/nodejs/getDeploymentTemplates.ts | 2 +- sdk/nodejs/getDeployments.ts | 2 +- sdk/nodejs/getGcpPrivateServiceConnectEndpoint.ts | 2 +- sdk/nodejs/getStack.ts | 2 +- sdk/nodejs/getTrafficFilter.ts | 2 +- sdk/python/pulumi_ec/get_aws_privatelink_endpoint.py | 4 ++-- sdk/python/pulumi_ec/get_azure_privatelink_endpoint.py | 4 ++-- sdk/python/pulumi_ec/get_deployment.py | 4 ++-- sdk/python/pulumi_ec/get_deployment_templates.py | 4 ++-- sdk/python/pulumi_ec/get_deployments.py | 4 ++-- .../pulumi_ec/get_gcp_private_service_connect_endpoint.py | 4 ++-- sdk/python/pulumi_ec/get_stack.py | 4 ++-- sdk/python/pulumi_ec/get_traffic_filter.py | 4 ++-- 16 files changed, 24 insertions(+), 24 deletions(-) diff --git a/sdk/nodejs/getAwsPrivatelinkEndpoint.ts b/sdk/nodejs/getAwsPrivatelinkEndpoint.ts index 15161ce..5c5e75c 100644 --- a/sdk/nodejs/getAwsPrivatelinkEndpoint.ts +++ b/sdk/nodejs/getAwsPrivatelinkEndpoint.ts @@ -74,7 +74,7 @@ export interface GetAwsPrivatelinkEndpointResult { * }); * ``` */ -export function getAwsPrivatelinkEndpointOutput(args: GetAwsPrivatelinkEndpointOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { +export function getAwsPrivatelinkEndpointOutput(args: GetAwsPrivatelinkEndpointOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("ec:index/getAwsPrivatelinkEndpoint:getAwsPrivatelinkEndpoint", { "region": args.region, diff --git a/sdk/nodejs/getAzurePrivatelinkEndpoint.ts b/sdk/nodejs/getAzurePrivatelinkEndpoint.ts index f7595ac..4401be6 100644 --- a/sdk/nodejs/getAzurePrivatelinkEndpoint.ts +++ b/sdk/nodejs/getAzurePrivatelinkEndpoint.ts @@ -70,7 +70,7 @@ export interface GetAzurePrivatelinkEndpointResult { * }); * ``` */ -export function getAzurePrivatelinkEndpointOutput(args: GetAzurePrivatelinkEndpointOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { +export function getAzurePrivatelinkEndpointOutput(args: GetAzurePrivatelinkEndpointOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("ec:index/getAzurePrivatelinkEndpoint:getAzurePrivatelinkEndpoint", { "region": args.region, diff --git a/sdk/nodejs/getDeployment.ts b/sdk/nodejs/getDeployment.ts index 44b90a9..4fdad1c 100644 --- a/sdk/nodejs/getDeployment.ts +++ b/sdk/nodejs/getDeployment.ts @@ -112,7 +112,7 @@ export interface GetDeploymentResult { * }); * ``` */ -export function getDeploymentOutput(args: GetDeploymentOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { +export function getDeploymentOutput(args: GetDeploymentOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("ec:index/getDeployment:getDeployment", { "id": args.id, diff --git a/sdk/nodejs/getDeploymentTemplates.ts b/sdk/nodejs/getDeploymentTemplates.ts index 668f285..1187e4d 100644 --- a/sdk/nodejs/getDeploymentTemplates.ts +++ b/sdk/nodejs/getDeploymentTemplates.ts @@ -115,7 +115,7 @@ export interface GetDeploymentTemplatesResult { * }); * ``` */ -export function getDeploymentTemplatesOutput(args: GetDeploymentTemplatesOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { +export function getDeploymentTemplatesOutput(args: GetDeploymentTemplatesOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("ec:index/getDeploymentTemplates:getDeploymentTemplates", { "id": args.id, diff --git a/sdk/nodejs/getDeployments.ts b/sdk/nodejs/getDeployments.ts index 8941755..80e1cc3 100644 --- a/sdk/nodejs/getDeployments.ts +++ b/sdk/nodejs/getDeployments.ts @@ -197,7 +197,7 @@ export interface GetDeploymentsResult { * }); * ``` */ -export function getDeploymentsOutput(args?: GetDeploymentsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { +export function getDeploymentsOutput(args?: GetDeploymentsOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("ec:index/getDeployments:getDeployments", { diff --git a/sdk/nodejs/getGcpPrivateServiceConnectEndpoint.ts b/sdk/nodejs/getGcpPrivateServiceConnectEndpoint.ts index 33bd921..dbf3503 100644 --- a/sdk/nodejs/getGcpPrivateServiceConnectEndpoint.ts +++ b/sdk/nodejs/getGcpPrivateServiceConnectEndpoint.ts @@ -70,7 +70,7 @@ export interface GetGcpPrivateServiceConnectEndpointResult { * }); * ``` */ -export function getGcpPrivateServiceConnectEndpointOutput(args: GetGcpPrivateServiceConnectEndpointOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { +export function getGcpPrivateServiceConnectEndpointOutput(args: GetGcpPrivateServiceConnectEndpointOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("ec:index/getGcpPrivateServiceConnectEndpoint:getGcpPrivateServiceConnectEndpoint", { "region": args.region, diff --git a/sdk/nodejs/getStack.ts b/sdk/nodejs/getStack.ts index 6a83233..f836b53 100644 --- a/sdk/nodejs/getStack.ts +++ b/sdk/nodejs/getStack.ts @@ -134,7 +134,7 @@ export interface GetStackResult { * }); * ``` */ -export function getStackOutput(args: GetStackOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { +export function getStackOutput(args: GetStackOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("ec:index/getStack:getStack", { "lock": args.lock, diff --git a/sdk/nodejs/getTrafficFilter.ts b/sdk/nodejs/getTrafficFilter.ts index 4d4e771..c591eba 100644 --- a/sdk/nodejs/getTrafficFilter.ts +++ b/sdk/nodejs/getTrafficFilter.ts @@ -95,7 +95,7 @@ export interface GetTrafficFilterResult { * }); * ``` */ -export function getTrafficFilterOutput(args?: GetTrafficFilterOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { +export function getTrafficFilterOutput(args?: GetTrafficFilterOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("ec:index/getTrafficFilter:getTrafficFilter", { diff --git a/sdk/python/pulumi_ec/get_aws_privatelink_endpoint.py b/sdk/python/pulumi_ec/get_aws_privatelink_endpoint.py index 50d708f..0299603 100644 --- a/sdk/python/pulumi_ec/get_aws_privatelink_endpoint.py +++ b/sdk/python/pulumi_ec/get_aws_privatelink_endpoint.py @@ -126,7 +126,7 @@ def get_aws_privatelink_endpoint(region: Optional[str] = None, vpc_service_name=pulumi.get(__ret__, 'vpc_service_name'), zone_ids=pulumi.get(__ret__, 'zone_ids')) def get_aws_privatelink_endpoint_output(region: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetAwsPrivatelinkEndpointResult]: + opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetAwsPrivatelinkEndpointResult]: """ Use this data source to retrieve information about the AWS Private Link configuration for a given region. Further documentation on how to establish a PrivateLink connection can be found in the ESS [documentation](https://www.elastic.co/guide/en/cloud/current/ec-traffic-filtering-vpc.html). @@ -144,7 +144,7 @@ def get_aws_privatelink_endpoint_output(region: Optional[pulumi.Input[str]] = No """ __args__ = dict() __args__['region'] = region - opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts) __ret__ = pulumi.runtime.invoke_output('ec:index/getAwsPrivatelinkEndpoint:getAwsPrivatelinkEndpoint', __args__, opts=opts, typ=GetAwsPrivatelinkEndpointResult) return __ret__.apply(lambda __response__: GetAwsPrivatelinkEndpointResult( domain_name=pulumi.get(__response__, 'domain_name'), diff --git a/sdk/python/pulumi_ec/get_azure_privatelink_endpoint.py b/sdk/python/pulumi_ec/get_azure_privatelink_endpoint.py index df43192..c9fc289 100644 --- a/sdk/python/pulumi_ec/get_azure_privatelink_endpoint.py +++ b/sdk/python/pulumi_ec/get_azure_privatelink_endpoint.py @@ -113,7 +113,7 @@ def get_azure_privatelink_endpoint(region: Optional[str] = None, region=pulumi.get(__ret__, 'region'), service_alias=pulumi.get(__ret__, 'service_alias')) def get_azure_privatelink_endpoint_output(region: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetAzurePrivatelinkEndpointResult]: + opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetAzurePrivatelinkEndpointResult]: """ Use this data source to retrieve information about the Azure Private Link configuration for a given region. Further documentation on how to establish a PrivateLink connection can be found in the ESS [documentation](https://www.elastic.co/guide/en/cloud/current/ec-traffic-filtering-vnet.html). @@ -131,7 +131,7 @@ def get_azure_privatelink_endpoint_output(region: Optional[pulumi.Input[str]] = """ __args__ = dict() __args__['region'] = region - opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts) __ret__ = pulumi.runtime.invoke_output('ec:index/getAzurePrivatelinkEndpoint:getAzurePrivatelinkEndpoint', __args__, opts=opts, typ=GetAzurePrivatelinkEndpointResult) return __ret__.apply(lambda __response__: GetAzurePrivatelinkEndpointResult( domain_name=pulumi.get(__response__, 'domain_name'), diff --git a/sdk/python/pulumi_ec/get_deployment.py b/sdk/python/pulumi_ec/get_deployment.py index faac689..421a6a4 100644 --- a/sdk/python/pulumi_ec/get_deployment.py +++ b/sdk/python/pulumi_ec/get_deployment.py @@ -244,7 +244,7 @@ def get_deployment(id: Optional[str] = None, tags=pulumi.get(__ret__, 'tags'), traffic_filters=pulumi.get(__ret__, 'traffic_filters')) def get_deployment_output(id: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetDeploymentResult]: + opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetDeploymentResult]: """ Use this data source to retrieve information about an existing Elastic Cloud deployment. @@ -262,7 +262,7 @@ def get_deployment_output(id: Optional[pulumi.Input[str]] = None, """ __args__ = dict() __args__['id'] = id - opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts) __ret__ = pulumi.runtime.invoke_output('ec:index/getDeployment:getDeployment', __args__, opts=opts, typ=GetDeploymentResult) return __ret__.apply(lambda __response__: GetDeploymentResult( alias=pulumi.get(__response__, 'alias'), diff --git a/sdk/python/pulumi_ec/get_deployment_templates.py b/sdk/python/pulumi_ec/get_deployment_templates.py index 4373edb..b553ca5 100644 --- a/sdk/python/pulumi_ec/get_deployment_templates.py +++ b/sdk/python/pulumi_ec/get_deployment_templates.py @@ -150,7 +150,7 @@ def get_deployment_templates_output(id: Optional[pulumi.Input[Optional[str]]] = region: Optional[pulumi.Input[str]] = None, show_deprecated: Optional[pulumi.Input[Optional[bool]]] = None, stack_version: Optional[pulumi.Input[Optional[str]]] = None, - opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetDeploymentTemplatesResult]: + opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetDeploymentTemplatesResult]: """ Use this data source to retrieve a list of available deployment templates. @@ -185,7 +185,7 @@ def get_deployment_templates_output(id: Optional[pulumi.Input[Optional[str]]] = __args__['region'] = region __args__['showDeprecated'] = show_deprecated __args__['stackVersion'] = stack_version - opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts) __ret__ = pulumi.runtime.invoke_output('ec:index/getDeploymentTemplates:getDeploymentTemplates', __args__, opts=opts, typ=GetDeploymentTemplatesResult) return __ret__.apply(lambda __response__: GetDeploymentTemplatesResult( id=pulumi.get(__response__, 'id'), diff --git a/sdk/python/pulumi_ec/get_deployments.py b/sdk/python/pulumi_ec/get_deployments.py index ea89b2f..e84353c 100644 --- a/sdk/python/pulumi_ec/get_deployments.py +++ b/sdk/python/pulumi_ec/get_deployments.py @@ -302,7 +302,7 @@ def get_deployments_output(apms: Optional[pulumi.Input[Optional[Sequence[Union[' name_prefix: Optional[pulumi.Input[Optional[str]]] = None, size: Optional[pulumi.Input[Optional[int]]] = None, tags: Optional[pulumi.Input[Optional[Mapping[str, str]]]] = None, - opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetDeploymentsResult]: + opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetDeploymentsResult]: """ Use this data source to retrieve a list of IDs for the deployment and resource kinds, based on the specified query. @@ -357,7 +357,7 @@ def get_deployments_output(apms: Optional[pulumi.Input[Optional[Sequence[Union[' __args__['namePrefix'] = name_prefix __args__['size'] = size __args__['tags'] = tags - opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts) __ret__ = pulumi.runtime.invoke_output('ec:index/getDeployments:getDeployments', __args__, opts=opts, typ=GetDeploymentsResult) return __ret__.apply(lambda __response__: GetDeploymentsResult( apms=pulumi.get(__response__, 'apms'), diff --git a/sdk/python/pulumi_ec/get_gcp_private_service_connect_endpoint.py b/sdk/python/pulumi_ec/get_gcp_private_service_connect_endpoint.py index 1c155d1..39f728e 100644 --- a/sdk/python/pulumi_ec/get_gcp_private_service_connect_endpoint.py +++ b/sdk/python/pulumi_ec/get_gcp_private_service_connect_endpoint.py @@ -113,7 +113,7 @@ def get_gcp_private_service_connect_endpoint(region: Optional[str] = None, region=pulumi.get(__ret__, 'region'), service_attachment_uri=pulumi.get(__ret__, 'service_attachment_uri')) def get_gcp_private_service_connect_endpoint_output(region: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetGcpPrivateServiceConnectEndpointResult]: + opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetGcpPrivateServiceConnectEndpointResult]: """ Use this data source to retrieve information about the GCP Private Service Connect configuration for a given region. Further documentation on how to establish a PrivateLink connection can be found in the ESS [documentation](https://www.elastic.co/guide/en/cloud/current/ec-traffic-filtering-psc.html). @@ -131,7 +131,7 @@ def get_gcp_private_service_connect_endpoint_output(region: Optional[pulumi.Inpu """ __args__ = dict() __args__['region'] = region - opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts) __ret__ = pulumi.runtime.invoke_output('ec:index/getGcpPrivateServiceConnectEndpoint:getGcpPrivateServiceConnectEndpoint', __args__, opts=opts, typ=GetGcpPrivateServiceConnectEndpointResult) return __ret__.apply(lambda __response__: GetGcpPrivateServiceConnectEndpointResult( domain_name=pulumi.get(__response__, 'domain_name'), diff --git a/sdk/python/pulumi_ec/get_stack.py b/sdk/python/pulumi_ec/get_stack.py index 5f07840..9917499 100644 --- a/sdk/python/pulumi_ec/get_stack.py +++ b/sdk/python/pulumi_ec/get_stack.py @@ -245,7 +245,7 @@ def get_stack(lock: Optional[bool] = None, def get_stack_output(lock: Optional[pulumi.Input[Optional[bool]]] = None, region: Optional[pulumi.Input[str]] = None, version_regex: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetStackResult]: + opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetStackResult]: """ Use this data source to retrieve information about an existing Elastic Cloud stack. @@ -273,7 +273,7 @@ def get_stack_output(lock: Optional[pulumi.Input[Optional[bool]]] = None, __args__['lock'] = lock __args__['region'] = region __args__['versionRegex'] = version_regex - opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts) __ret__ = pulumi.runtime.invoke_output('ec:index/getStack:getStack', __args__, opts=opts, typ=GetStackResult) return __ret__.apply(lambda __response__: GetStackResult( accessible=pulumi.get(__response__, 'accessible'), diff --git a/sdk/python/pulumi_ec/get_traffic_filter.py b/sdk/python/pulumi_ec/get_traffic_filter.py index e572790..e1420d7 100644 --- a/sdk/python/pulumi_ec/get_traffic_filter.py +++ b/sdk/python/pulumi_ec/get_traffic_filter.py @@ -124,7 +124,7 @@ def get_traffic_filter(id: Optional[str] = None, def get_traffic_filter_output(id: Optional[pulumi.Input[Optional[str]]] = None, name: Optional[pulumi.Input[Optional[str]]] = None, region: Optional[pulumi.Input[Optional[str]]] = None, - opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetTrafficFilterResult]: + opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetTrafficFilterResult]: """ Use this data source to filter for an existing traffic filter that has been created via one of the provided filters. @@ -148,7 +148,7 @@ def get_traffic_filter_output(id: Optional[pulumi.Input[Optional[str]]] = None, __args__['id'] = id __args__['name'] = name __args__['region'] = region - opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) + opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts) __ret__ = pulumi.runtime.invoke_output('ec:index/getTrafficFilter:getTrafficFilter', __args__, opts=opts, typ=GetTrafficFilterResult) return __ret__.apply(lambda __response__: GetTrafficFilterResult( id=pulumi.get(__response__, 'id'),