@pulumi/confluentcloud 2.58.0 → 2.59.0-alpha.1770934913
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/accessPoint.d.ts +3 -3
- package/accessPoint.js +3 -3
- package/apiKey.d.ts +12 -4
- package/apiKey.js +12 -4
- package/apiKey.js.map +1 -1
- package/businessMetadata.d.ts +1 -4
- package/businessMetadata.js +1 -4
- package/businessMetadata.js.map +1 -1
- package/businessMetadataBinding.d.ts +22 -7
- package/businessMetadataBinding.js +1 -4
- package/businessMetadataBinding.js.map +1 -1
- package/byokKey.d.ts +3 -3
- package/byokKey.js +3 -3
- package/catalogEntityAttributes.d.ts +36 -7
- package/catalogEntityAttributes.js +9 -4
- package/catalogEntityAttributes.js.map +1 -1
- package/catalogIntegration.d.ts +5 -3
- package/catalogIntegration.js +5 -3
- package/catalogIntegration.js.map +1 -1
- package/certificateAuthority.d.ts +3 -3
- package/certificateAuthority.js +3 -3
- package/certificatePool.d.ts +3 -3
- package/certificatePool.js +3 -3
- package/clusterLink.d.ts +10 -21
- package/clusterLink.js +10 -21
- package/clusterLink.js.map +1 -1
- package/connectArtifact.d.ts +11 -3
- package/connectArtifact.js +11 -3
- package/connectArtifact.js.map +1 -1
- package/connector.d.ts +11 -3
- package/connector.js +11 -3
- package/connector.js.map +1 -1
- package/customConnectorPlugin.d.ts +13 -3
- package/customConnectorPlugin.js +13 -3
- package/customConnectorPlugin.js.map +1 -1
- package/customConnectorPluginVersion.d.ts +13 -3
- package/customConnectorPluginVersion.js +13 -3
- package/customConnectorPluginVersion.js.map +1 -1
- package/dnsForwarder.d.ts +3 -3
- package/dnsForwarder.js +3 -3
- package/dnsRecord.d.ts +3 -3
- package/dnsRecord.js +3 -3
- package/environment.d.ts +9 -3
- package/environment.js +9 -3
- package/environment.js.map +1 -1
- package/flinkArtifact.d.ts +11 -3
- package/flinkArtifact.js +11 -3
- package/flinkArtifact.js.map +1 -1
- package/flinkComputePool.d.ts +9 -3
- package/flinkComputePool.js +9 -3
- package/flinkComputePool.js.map +1 -1
- package/flinkConnection.d.ts +97 -11
- package/flinkConnection.js +97 -11
- package/flinkConnection.js.map +1 -1
- package/flinkStatement.d.ts +32 -11
- package/flinkStatement.js +5 -8
- package/flinkStatement.js.map +1 -1
- package/gateway.d.ts +3 -3
- package/gateway.js +3 -3
- package/getNetwork.d.ts +32 -0
- package/getNetwork.js +32 -0
- package/getNetwork.js.map +1 -1
- package/getProviderIntegrationAuthorization.d.ts +260 -0
- package/getProviderIntegrationAuthorization.js +260 -0
- package/getProviderIntegrationAuthorization.js.map +1 -1
- package/groupMapping.d.ts +3 -3
- package/groupMapping.js +3 -3
- package/identityPool.d.ts +3 -3
- package/identityPool.js +3 -3
- package/identityProvider.d.ts +3 -3
- package/identityProvider.js +3 -3
- package/invitation.d.ts +12 -3
- package/invitation.js +3 -3
- package/invitation.js.map +1 -1
- package/ipFilter.d.ts +3 -3
- package/ipFilter.js +3 -3
- package/ipGroup.d.ts +3 -3
- package/ipGroup.js +3 -3
- package/kafkaAcl.d.ts +30 -11
- package/kafkaAcl.js +3 -8
- package/kafkaAcl.js.map +1 -1
- package/kafkaClientQuota.d.ts +11 -3
- package/kafkaClientQuota.js +11 -3
- package/kafkaClientQuota.js.map +1 -1
- package/kafkaCluster.d.ts +9 -3
- package/kafkaCluster.js +9 -3
- package/kafkaCluster.js.map +1 -1
- package/kafkaClusterConfig.d.ts +1 -4
- package/kafkaClusterConfig.js +1 -4
- package/kafkaClusterConfig.js.map +1 -1
- package/kafkaMirrorTopic.d.ts +54 -4
- package/kafkaMirrorTopic.js +9 -4
- package/kafkaMirrorTopic.js.map +1 -1
- package/kafkaTopic.d.ts +11 -33
- package/kafkaTopic.js +11 -33
- package/kafkaTopic.js.map +1 -1
- package/ksqlCluster.d.ts +3 -3
- package/ksqlCluster.js +3 -3
- package/network.d.ts +9 -3
- package/network.js +9 -3
- package/network.js.map +1 -1
- package/networkLinkEndpoint.d.ts +9 -3
- package/networkLinkEndpoint.js +9 -3
- package/networkLinkEndpoint.js.map +1 -1
- package/networkLinkService.d.ts +9 -3
- package/networkLinkService.js +9 -3
- package/networkLinkService.js.map +1 -1
- package/package.json +2 -2
- package/peering.d.ts +9 -3
- package/peering.js +9 -3
- package/peering.js.map +1 -1
- package/plugin.d.ts +9 -3
- package/plugin.js +9 -3
- package/plugin.js.map +1 -1
- package/privateLinkAccess.d.ts +9 -3
- package/privateLinkAccess.js +9 -3
- package/privateLinkAccess.js.map +1 -1
- package/privateLinkAttachment.d.ts +3 -3
- package/privateLinkAttachment.js +3 -3
- package/privateLinkAttachmentConnection.d.ts +3 -3
- package/privateLinkAttachmentConnection.js +3 -3
- package/providerIntegration.d.ts +9 -3
- package/providerIntegration.js +9 -3
- package/providerIntegration.js.map +1 -1
- package/providerIntegrationAuthorization.d.ts +161 -3
- package/providerIntegrationAuthorization.js +161 -3
- package/providerIntegrationAuthorization.js.map +1 -1
- package/providerIntegrationSetup.d.ts +11 -3
- package/providerIntegrationSetup.js +11 -3
- package/providerIntegrationSetup.js.map +1 -1
- package/roleBinding.d.ts +36 -3
- package/roleBinding.js +3 -3
- package/roleBinding.js.map +1 -1
- package/schema.d.ts +22 -11
- package/schema.js +13 -11
- package/schema.js.map +1 -1
- package/schemaExporter.d.ts +3 -5
- package/schemaExporter.js +3 -5
- package/schemaExporter.js.map +1 -1
- package/schemaRegistryClusterConfig.d.ts +7 -4
- package/schemaRegistryClusterConfig.js +7 -4
- package/schemaRegistryClusterConfig.js.map +1 -1
- package/schemaRegistryClusterMode.d.ts +7 -4
- package/schemaRegistryClusterMode.js +7 -4
- package/schemaRegistryClusterMode.js.map +1 -1
- package/schemaRegistryDek.d.ts +22 -7
- package/schemaRegistryDek.js +1 -4
- package/schemaRegistryDek.js.map +1 -1
- package/schemaRegistryKek.d.ts +22 -7
- package/schemaRegistryKek.js +1 -4
- package/schemaRegistryKek.js.map +1 -1
- package/serviceAccount.d.ts +3 -3
- package/serviceAccount.js +3 -3
- package/subjectConfig.d.ts +7 -4
- package/subjectConfig.js +7 -4
- package/subjectConfig.js.map +1 -1
- package/subjectMode.d.ts +7 -4
- package/subjectMode.js +7 -4
- package/subjectMode.js.map +1 -1
- package/tableflowTopic.d.ts +7 -3
- package/tableflowTopic.js +7 -3
- package/tableflowTopic.js.map +1 -1
- package/tag.d.ts +22 -7
- package/tag.js +1 -4
- package/tag.js.map +1 -1
- package/tagBinding.d.ts +28 -4
- package/tagBinding.js +1 -4
- package/tagBinding.js.map +1 -1
- package/tfImporter.d.ts +6 -0
- package/tfImporter.js +6 -0
- package/tfImporter.js.map +1 -1
- package/transitGatewayAttachment.d.ts +9 -3
- package/transitGatewayAttachment.js +9 -3
- package/transitGatewayAttachment.js.map +1 -1
- package/types/input.d.ts +98 -16
- package/types/output.d.ts +78 -12
package/environment.js
CHANGED
|
@@ -6,6 +6,12 @@ exports.Environment = void 0;
|
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
8
|
/**
|
|
9
|
+
* [](https://docs.confluent.io/cloud/current/api.html#section/Versioning/API-Lifecycle-Policy)
|
|
10
|
+
*
|
|
11
|
+
* `confluentcloud.Environment` provides an Environment resource. The resource lets you create, edit and delete environments on Confluent Cloud.
|
|
12
|
+
*
|
|
13
|
+
* > **Note:** It is recommended to set `lifecycle { preventDestroy = true }` on production instances to prevent accidental Environment deletion. This setting rejects plans that would destroy or recreate the Environment, such as attempting to change uneditable attributes. Read more about it in the Terraform docs.
|
|
14
|
+
*
|
|
9
15
|
* ## Example Usage
|
|
10
16
|
*
|
|
11
17
|
* ```typescript
|
|
@@ -47,13 +53,13 @@ const utilities = require("./utilities");
|
|
|
47
53
|
*
|
|
48
54
|
* ## Import
|
|
49
55
|
*
|
|
56
|
+
* > **Note:** `CONFLUENT_CLOUD_API_KEY` and `CONFLUENT_CLOUD_API_SECRET` environment variables must be set before importing an Environment.
|
|
57
|
+
*
|
|
50
58
|
* You can import an Environment by using Environment ID, for example:
|
|
51
59
|
*
|
|
60
|
+
* ```sh
|
|
52
61
|
* $ export CONFLUENT_CLOUD_API_KEY="<cloud_api_key>"
|
|
53
|
-
*
|
|
54
62
|
* $ export CONFLUENT_CLOUD_API_SECRET="<cloud_api_secret>"
|
|
55
|
-
*
|
|
56
|
-
* ```sh
|
|
57
63
|
* $ pulumi import confluentcloud:index/environment:Environment my_env env-abc123
|
|
58
64
|
* ```
|
|
59
65
|
*
|
package/environment.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"environment.js","sourceRoot":"","sources":["../environment.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"environment.js","sourceRoot":"","sources":["../environment.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2DG;AACH,MAAa,WAAY,SAAQ,MAAM,CAAC,cAAc;IAClD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAwB,EAAE,IAAmC;QACtH,OAAO,IAAI,WAAW,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAClE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,WAAW,CAAC,YAAY,CAAC;IAC5D,CAAC;IAuBD,YAAY,IAAY,EAAE,WAAgD,EAAE,IAAmC;QAC3G,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA2C,CAAC;YAC1D,cAAc,CAAC,aAAa,CAAC,GAAG,KAAK,EAAE,WAAW,CAAC;YACnD,cAAc,CAAC,cAAc,CAAC,GAAG,KAAK,EAAE,YAAY,CAAC;YACrD,cAAc,CAAC,kBAAkB,CAAC,GAAG,KAAK,EAAE,gBAAgB,CAAC;SAChE;aAAM;YACH,MAAM,IAAI,GAAG,WAA0C,CAAC;YACxD,cAAc,CAAC,aAAa,CAAC,GAAG,IAAI,EAAE,WAAW,CAAC;YAClD,cAAc,CAAC,kBAAkB,CAAC,GAAG,IAAI,EAAE,gBAAgB,CAAC;YAC5D,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACtD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,WAAW,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAChE,CAAC;;AAjEL,kCAkEC;AApDG,gBAAgB;AACO,wBAAY,GAAG,8CAA8C,CAAC"}
|
package/flinkArtifact.d.ts
CHANGED
|
@@ -2,6 +2,12 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
2
2
|
import * as inputs from "./types/input";
|
|
3
3
|
import * as outputs from "./types/output";
|
|
4
4
|
/**
|
|
5
|
+
* [](https://docs.confluent.io/cloud/current/api.html#section/Versioning/API-Lifecycle-Policy)
|
|
6
|
+
*
|
|
7
|
+
* `confluentcloud.FlinkArtifact` provides a Flink Artifact resource that enables creating and deleting Flink Artifact on Confluent Cloud.
|
|
8
|
+
*
|
|
9
|
+
* > **Note:** It is recommended to set `lifecycle { preventDestroy = true }` on production instances to prevent accidental Flink Artifact deletion. This setting rejects plans that would destroy or recreate the Flink Artifact, such as attempting to change uneditable attributes. Read more about it in the Terraform docs.
|
|
10
|
+
*
|
|
5
11
|
* ## Example Usage
|
|
6
12
|
*
|
|
7
13
|
* ```typescript
|
|
@@ -23,13 +29,15 @@ import * as outputs from "./types/output";
|
|
|
23
29
|
*
|
|
24
30
|
* ## Import
|
|
25
31
|
*
|
|
26
|
-
*
|
|
32
|
+
* > **Note:** Set `artifactFile = ""` or use `IMPORT_ARTIFACT_FILENAME` environment variables before importing a Flink Artifact.
|
|
27
33
|
*
|
|
28
|
-
*
|
|
34
|
+
* > **Note:** `CONFLUENT_CLOUD_API_KEY` and `CONFLUENT_CLOUD_API_SECRET` environment variables must be set before importing a Flink Artifact.
|
|
29
35
|
*
|
|
30
|
-
*
|
|
36
|
+
* You can import a Flink Artifact by using cloud, region, Flink Artifact ID and artifact file, in the format `<Environment ID>/<region>/<cloud>/<Flink Artifact ID>`. The following example shows how to import a Flink Artifact:
|
|
31
37
|
*
|
|
32
38
|
* ```sh
|
|
39
|
+
* $ export CONFLUENT_CLOUD_API_KEY="<cloud_api_key>"
|
|
40
|
+
* $ export CONFLUENT_CLOUD_API_SECRET="<cloud_api_secret>"
|
|
33
41
|
* $ pulumi import confluentcloud:index/flinkArtifact:FlinkArtifact main env-abc123/us-east-1/aws/fa-123
|
|
34
42
|
* ```
|
|
35
43
|
*
|
package/flinkArtifact.js
CHANGED
|
@@ -6,6 +6,12 @@ exports.FlinkArtifact = void 0;
|
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
8
|
/**
|
|
9
|
+
* [](https://docs.confluent.io/cloud/current/api.html#section/Versioning/API-Lifecycle-Policy)
|
|
10
|
+
*
|
|
11
|
+
* `confluentcloud.FlinkArtifact` provides a Flink Artifact resource that enables creating and deleting Flink Artifact on Confluent Cloud.
|
|
12
|
+
*
|
|
13
|
+
* > **Note:** It is recommended to set `lifecycle { preventDestroy = true }` on production instances to prevent accidental Flink Artifact deletion. This setting rejects plans that would destroy or recreate the Flink Artifact, such as attempting to change uneditable attributes. Read more about it in the Terraform docs.
|
|
14
|
+
*
|
|
9
15
|
* ## Example Usage
|
|
10
16
|
*
|
|
11
17
|
* ```typescript
|
|
@@ -27,13 +33,15 @@ const utilities = require("./utilities");
|
|
|
27
33
|
*
|
|
28
34
|
* ## Import
|
|
29
35
|
*
|
|
30
|
-
*
|
|
36
|
+
* > **Note:** Set `artifactFile = ""` or use `IMPORT_ARTIFACT_FILENAME` environment variables before importing a Flink Artifact.
|
|
31
37
|
*
|
|
32
|
-
*
|
|
38
|
+
* > **Note:** `CONFLUENT_CLOUD_API_KEY` and `CONFLUENT_CLOUD_API_SECRET` environment variables must be set before importing a Flink Artifact.
|
|
33
39
|
*
|
|
34
|
-
*
|
|
40
|
+
* You can import a Flink Artifact by using cloud, region, Flink Artifact ID and artifact file, in the format `<Environment ID>/<region>/<cloud>/<Flink Artifact ID>`. The following example shows how to import a Flink Artifact:
|
|
35
41
|
*
|
|
36
42
|
* ```sh
|
|
43
|
+
* $ export CONFLUENT_CLOUD_API_KEY="<cloud_api_key>"
|
|
44
|
+
* $ export CONFLUENT_CLOUD_API_SECRET="<cloud_api_secret>"
|
|
37
45
|
* $ pulumi import confluentcloud:index/flinkArtifact:FlinkArtifact main env-abc123/us-east-1/aws/fa-123
|
|
38
46
|
* ```
|
|
39
47
|
*
|
package/flinkArtifact.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flinkArtifact.js","sourceRoot":"","sources":["../flinkArtifact.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"flinkArtifact.js","sourceRoot":"","sources":["../flinkArtifact.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;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;YAClD,cAAc,CAAC,mBAAmB,CAAC,GAAG,IAAI,EAAE,iBAAiB,CAAC;YAC9D,cAAc,CAAC,aAAa,CAAC,GAAG,IAAI,EAAE,WAAW,CAAC;YAClD,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,EAAE,MAAM,CAAC;YACxC,cAAc,CAAC,iBAAiB,CAAC,GAAG,IAAI,EAAE,eAAe,CAAC;YAC1D,cAAc,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACjD,cAAc,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC3C,cAAc,CAAC,UAAU,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAClD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,aAAa,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAClE,CAAC;;AA3IL,sCA4IC;AA9HG,gBAAgB;AACO,0BAAY,GAAG,kDAAkD,CAAC"}
|
package/flinkComputePool.d.ts
CHANGED
|
@@ -2,6 +2,12 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
2
2
|
import * as inputs from "./types/input";
|
|
3
3
|
import * as outputs from "./types/output";
|
|
4
4
|
/**
|
|
5
|
+
* [](https://docs.confluent.io/cloud/current/api.html#section/Versioning/API-Lifecycle-Policy)
|
|
6
|
+
*
|
|
7
|
+
* `confluentcloud.FlinkComputePool` provides a Flink Compute Pool resource that enables creating, editing, and deleting Flink Compute Pool on Confluent Cloud.
|
|
8
|
+
*
|
|
9
|
+
* > **Note:** It is recommended to set `lifecycle { preventDestroy = true }` on production instances to prevent accidental Flink Compute Pool deletion. This setting rejects plans that would destroy or recreate the Flink Compute Pool, such as attempting to change uneditable attributes. Read more about it in the Terraform docs.
|
|
10
|
+
*
|
|
5
11
|
* ## Example Usage
|
|
6
12
|
*
|
|
7
13
|
* ```typescript
|
|
@@ -22,13 +28,13 @@ import * as outputs from "./types/output";
|
|
|
22
28
|
*
|
|
23
29
|
* ## Import
|
|
24
30
|
*
|
|
31
|
+
* > **Note:** `CONFLUENT_CLOUD_API_KEY` and `CONFLUENT_CLOUD_API_SECRET` environment variables must be set before importing a Flink Compute Pool.
|
|
32
|
+
*
|
|
25
33
|
* You can import a Flink Compute Pool by using Environment ID and Flink Compute Pool ID, in the format `<Environment ID>/<Flink Compute Pool ID>`. The following example shows how to import a Flink Compute Pool:
|
|
26
34
|
*
|
|
35
|
+
* ```sh
|
|
27
36
|
* $ export CONFLUENT_CLOUD_API_KEY="<cloud_api_key>"
|
|
28
|
-
*
|
|
29
37
|
* $ export CONFLUENT_CLOUD_API_SECRET="<cloud_api_secret>"
|
|
30
|
-
*
|
|
31
|
-
* ```sh
|
|
32
38
|
* $ pulumi import confluentcloud:index/flinkComputePool:FlinkComputePool main env-abc123/lfcp-abc123
|
|
33
39
|
* ```
|
|
34
40
|
*
|
package/flinkComputePool.js
CHANGED
|
@@ -6,6 +6,12 @@ exports.FlinkComputePool = void 0;
|
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
8
|
/**
|
|
9
|
+
* [](https://docs.confluent.io/cloud/current/api.html#section/Versioning/API-Lifecycle-Policy)
|
|
10
|
+
*
|
|
11
|
+
* `confluentcloud.FlinkComputePool` provides a Flink Compute Pool resource that enables creating, editing, and deleting Flink Compute Pool on Confluent Cloud.
|
|
12
|
+
*
|
|
13
|
+
* > **Note:** It is recommended to set `lifecycle { preventDestroy = true }` on production instances to prevent accidental Flink Compute Pool deletion. This setting rejects plans that would destroy or recreate the Flink Compute Pool, such as attempting to change uneditable attributes. Read more about it in the Terraform docs.
|
|
14
|
+
*
|
|
9
15
|
* ## Example Usage
|
|
10
16
|
*
|
|
11
17
|
* ```typescript
|
|
@@ -26,13 +32,13 @@ const utilities = require("./utilities");
|
|
|
26
32
|
*
|
|
27
33
|
* ## Import
|
|
28
34
|
*
|
|
35
|
+
* > **Note:** `CONFLUENT_CLOUD_API_KEY` and `CONFLUENT_CLOUD_API_SECRET` environment variables must be set before importing a Flink Compute Pool.
|
|
36
|
+
*
|
|
29
37
|
* You can import a Flink Compute Pool by using Environment ID and Flink Compute Pool ID, in the format `<Environment ID>/<Flink Compute Pool ID>`. The following example shows how to import a Flink Compute Pool:
|
|
30
38
|
*
|
|
39
|
+
* ```sh
|
|
31
40
|
* $ export CONFLUENT_CLOUD_API_KEY="<cloud_api_key>"
|
|
32
|
-
*
|
|
33
41
|
* $ export CONFLUENT_CLOUD_API_SECRET="<cloud_api_secret>"
|
|
34
|
-
*
|
|
35
|
-
* ```sh
|
|
36
42
|
* $ pulumi import confluentcloud:index/flinkComputePool:FlinkComputePool main env-abc123/lfcp-abc123
|
|
37
43
|
* ```
|
|
38
44
|
*
|
package/flinkComputePool.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flinkComputePool.js","sourceRoot":"","sources":["../flinkComputePool.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"flinkComputePool.js","sourceRoot":"","sources":["../flinkComputePool.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,MAAa,gBAAiB,SAAQ,MAAM,CAAC,cAAc;IACvD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA6B,EAAE,IAAmC;QAC3H,OAAO,IAAI,gBAAgB,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACvE,CAAC;IAKD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IAAI,EAAE,WAAW,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBAC9C,MAAM,IAAI,KAAK,CAAC,yCAAyC,CAAC,CAAC;aAC9D;YACD,IAAI,IAAI,EAAE,MAAM,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACzC,MAAM,IAAI,KAAK,CAAC,oCAAoC,CAAC,CAAC;aACzD;YACD,cAAc,CAAC,OAAO,CAAC,GAAG,IAAI,EAAE,KAAK,CAAC;YACtC,cAAc,CAAC,aAAa,CAAC,GAAG,IAAI,EAAE,WAAW,CAAC;YAClD,cAAc,CAAC,aAAa,CAAC,GAAG,IAAI,EAAE,WAAW,CAAC;YAClD,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,EAAE,MAAM,CAAC;YACxC,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,EAAE,MAAM,CAAC;YACxC,cAAc,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACjD,cAAc,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC3C,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACtD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,gBAAgB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACrE,CAAC;;AA3GL,4CA4GC;AA9FG,gBAAgB;AACO,6BAAY,GAAG,wDAAwD,CAAC"}
|
package/flinkConnection.d.ts
CHANGED
|
@@ -2,40 +2,126 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
2
2
|
import * as inputs from "./types/input";
|
|
3
3
|
import * as outputs from "./types/output";
|
|
4
4
|
/**
|
|
5
|
+
* [](https://docs.confluent.io/cloud/current/api.html#section/Versioning/API-Lifecycle-Policy)
|
|
6
|
+
*
|
|
7
|
+
* `confluentcloud.FlinkConnection` provides a Flink Connection resource that enables creating, editing, and deleting Flink Connection on Confluent Cloud.
|
|
8
|
+
*
|
|
9
|
+
* > **Note:** It is recommended to set `lifecycle { preventDestroy = true }` on production instances to prevent accidental Flink Connection deletion. This setting rejects plans that would destroy or recreate the Flink Connection, such as attempting to change uneditable attributes. Read more about it in the Terraform docs.
|
|
10
|
+
*
|
|
11
|
+
* ## Example Usage
|
|
12
|
+
*
|
|
13
|
+
* ### Option #1: Manage multiple Flink Compute Pools in the same Pulumi Stack
|
|
14
|
+
*
|
|
15
|
+
* ```typescript
|
|
16
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
17
|
+
* import * as confluentcloud from "@pulumi/confluentcloud";
|
|
18
|
+
*
|
|
19
|
+
* const connection1 = new confluentcloud.FlinkConnection("connection1", {
|
|
20
|
+
* organization: {
|
|
21
|
+
* id: main.id,
|
|
22
|
+
* },
|
|
23
|
+
* environment: {
|
|
24
|
+
* id: staging.id,
|
|
25
|
+
* },
|
|
26
|
+
* computePool: {
|
|
27
|
+
* id: example.id,
|
|
28
|
+
* },
|
|
29
|
+
* principal: {
|
|
30
|
+
* id: app_manager_flink.id,
|
|
31
|
+
* },
|
|
32
|
+
* restEndpoint: mainConfluentFlinkRegion.restEndpoint,
|
|
33
|
+
* credentials: {
|
|
34
|
+
* key: env_admin_flink_api_key.id,
|
|
35
|
+
* secret: env_admin_flink_api_key.secret,
|
|
36
|
+
* },
|
|
37
|
+
* displayName: "connection1",
|
|
38
|
+
* type: "OPENAI",
|
|
39
|
+
* endpoint: "https://api.openai.com/v1/chat/completions",
|
|
40
|
+
* apiKey: "API_Key_value",
|
|
41
|
+
* });
|
|
42
|
+
* ```
|
|
43
|
+
*
|
|
44
|
+
* ### Option #2: Manage a single Flink Compute Pool in the same Pulumi Stack
|
|
45
|
+
*
|
|
46
|
+
* ```typescript
|
|
47
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
48
|
+
* import * as confluentcloud from "@pulumi/confluentcloud";
|
|
49
|
+
*
|
|
50
|
+
* const example = new confluentcloud.FlinkConnection("example", {
|
|
51
|
+
* displayName: "connection1",
|
|
52
|
+
* type: "OPENAI",
|
|
53
|
+
* endpoint: "https://api.openai.com/v1/chat/completions",
|
|
54
|
+
* apiKey: "API_Key_value",
|
|
55
|
+
* });
|
|
56
|
+
* ```
|
|
57
|
+
*
|
|
58
|
+
* The following arguments are supported:
|
|
59
|
+
*
|
|
60
|
+
* - `organization` (Optional Configuration Block) supports the following:
|
|
61
|
+
* - `id` - (Required String) The ID of the Organization, for example, `1111aaaa-11aa-11aa-11aa-111111aaaaaa`.
|
|
62
|
+
* - `environment` (Optional Configuration Block) supports the following:
|
|
63
|
+
* - `id` - (Required String) The ID of the Environment, for example, `env-abc123`.
|
|
64
|
+
* - `computePool` - (Optional Configuration Block) supports the following:
|
|
65
|
+
* - `id` - (Required String) The ID of the Flink Compute Pool, for example, `lfcp-abc123`.
|
|
66
|
+
* - `principal` - (Optional Configuration Block) supports the following:
|
|
67
|
+
* - `id` - (Required String) The ID of the Principal the Flink Connection runs as, for example, `sa-abc123`.
|
|
68
|
+
* - `restEndpoint` - (Optional String) The REST endpoint of the Flink region, for example, `https://flink.us-east-1.aws.confluent.cloud`.
|
|
69
|
+
* - `credentials` (Optional Configuration Block) supports the following:
|
|
70
|
+
* - `key` - (Required String) The Flink API Key.
|
|
71
|
+
* - `secret` - (Required String, Sensitive) The Flink API Secret.
|
|
72
|
+
*
|
|
73
|
+
* > **Note:** A Flink API key consists of a key and a secret. Flink API keys are required to interact with Flink Connections in Confluent Cloud. Each Flink API key is valid for one specific Flink Region.
|
|
74
|
+
*
|
|
75
|
+
* > **Note:** Use Option #2 to simplify the key rotation process. When using Option #1, to rotate a Flink API key, create a new Flink API key, update the `credentials` block in all configuration files to use the new Flink API key, run `pulumi up -target="confluent_flink_connection.example"`, and remove the old Flink API key. Alternatively, in case the old Flink API Key was deleted already, you might need to run `pulumi preview -refresh=false -target="confluent_flink_connection.example" -out=rotate-flink-api-key` and `pulumi up rotate-flink-api-key` instead.
|
|
76
|
+
*
|
|
77
|
+
* - `displayName` - (Required String) The name of the Flink Connection.
|
|
78
|
+
* - `type` - (Required String) The type of the Flink Connection. The accepted values are: `OPENAI`, `AZUREML`, `AZUREOPENAI`, `BEDROCK`, `SAGEMAKER`, `GOOGLEAI`, `VERTEXAI`, `MONGODB`, `PINECONE`, `ELASTIC` and `COUCHBASE`.
|
|
79
|
+
* - `endpoint` - (Required String) The endpoint of the Flink Connection, for example, `https://api.openai.com/v1/chat/completions`
|
|
80
|
+
* - `apiKey` - (Optional String) The api key for the connection type. This is valid and required for types `OPENAI`, `AZUREML`, `AZUREOPENAI`, `GOOGLEAI`, `ELASTIC` and `PINECONE`.
|
|
81
|
+
* - `awsAccessKey` - (Optional String) The AWS access key for the connection type. This is valid and required for types `BEDROCK` and `SAGEMAKER`.
|
|
82
|
+
* - `awsSecretKey` - (Optional String) The AWS secret key for the connection type. This is valid and required for types `BEDROCK` and `SAGEMAKER`.
|
|
83
|
+
* - `awsSessionToken` - (Optional String) The AWS session key for the connection type. This is valid and required for types `BEDROCK` and `SAGEMAKER`.
|
|
84
|
+
* - `serviceKey` - (Optional String) The service key for the connection type. This is valid and required for type `VERTEXAI`.
|
|
85
|
+
* - `username` - (Optional String) The username for the connection type. This is valid and required for types `MONGODB` and `COUCHBASE`.
|
|
86
|
+
* - `password` - (Optional String) The password for the connection type. This is valid and required for types `MONGODB` and `COUCHBASE`.
|
|
87
|
+
*
|
|
88
|
+
* !> **Warning:** Use Option #2 to avoid exposing sensitive `credentials` value in a state file. When using Option #1, Terraform doesn't encrypt the sensitive `credentials` value of the `confluentcloud.FlinkConnection` resource, so you must keep your state file secure to avoid exposing it. Refer to the Terraform documentation to learn more about securing your state file.
|
|
89
|
+
*
|
|
90
|
+
* # Attributes Reference
|
|
91
|
+
*
|
|
92
|
+
* In addition to the preceding arguments, the following attributes are exported:
|
|
93
|
+
*
|
|
94
|
+
* - `id` - (Required String) The ID of the Flink connection, in the format `<Organization ID>/<Environment ID>/<Flink Connection name>`, for example, `org-xyz123/env-abc123/connection1`.
|
|
95
|
+
* - `apiVersion` - (Required String) The API Version of the schema version of the Flink Connection, for example, `sql/v1`.
|
|
96
|
+
* - `kind` - (Required String) The kind of the Flink Connection, for example, `Connection`.
|
|
97
|
+
*
|
|
5
98
|
* ## Import
|
|
6
99
|
*
|
|
7
100
|
* You can import a Flink connection by using the Flink Connection name, for example:
|
|
8
101
|
*
|
|
9
102
|
* Option #1: Manage multiple Flink Compute Pools in the same Pulumi Stack
|
|
10
103
|
*
|
|
104
|
+
* ```sh
|
|
11
105
|
* $ export IMPORT_CONFLUENT_ORGANIZATION_ID="<organization_id>"
|
|
12
|
-
*
|
|
13
106
|
* $ export IMPORT_CONFLUENT_ENVIRONMENT_ID="<environment_id>"
|
|
14
|
-
*
|
|
15
107
|
* $ export IMPORT_FLINK_COMPUTE_POOL_ID="<flink_compute_pool_id>"
|
|
16
|
-
*
|
|
17
108
|
* $ export IMPORT_FLINK_API_KEY="<flink_api_key>"
|
|
18
|
-
*
|
|
19
109
|
* $ export IMPORT_FLINK_API_SECRET="<flink_api_secret>"
|
|
20
|
-
*
|
|
21
110
|
* $ export IMPORT_FLINK_REST_ENDPOINT="<flink_rest_endpoint>"
|
|
22
|
-
*
|
|
23
111
|
* $ export IMPORT_FLINK_PRINCIPAL_ID="<flink_principal>"
|
|
24
|
-
*
|
|
25
112
|
* $ export API_KEY="<API_KEY>"
|
|
26
|
-
*
|
|
27
|
-
* ```sh
|
|
28
113
|
* $ pulumi import confluentcloud:index/flinkConnection:FlinkConnection example org-xyz123/env-abc123/connection1
|
|
29
114
|
* ```
|
|
30
115
|
*
|
|
31
116
|
* Option #2: Manage a single Flink Compute Pool in the same Pulumi Stack
|
|
32
117
|
*
|
|
33
|
-
* $ export API_KEY="<API_KEY>"
|
|
34
|
-
*
|
|
35
118
|
* ```sh
|
|
119
|
+
* $ export API_KEY="<API_KEY>"
|
|
36
120
|
* $ pulumi import confluentcloud:index/flinkConnection:FlinkConnection example org-xyz123/env-abc123/connection1
|
|
37
121
|
* ```
|
|
38
122
|
*
|
|
123
|
+
* > **Note:** The example above is for `type = OPENAI`, so we exported `API_KEY`. Export the required field for each type as mentioned above. The fields that can be exported are: `API_KEY`, `AWS_SECRET_ACCESS_KEY_CONNECTION`, `AWS_ACCESS_KEY_ID_CONNECTION`, `AWS_SESSION_TOKEN_CONNECTION`, `SERVICE_KEY`, `USERNAME`, `PASSWORD`.
|
|
124
|
+
*
|
|
39
125
|
* !> **Warning:** Do not forget to delete terminal command history afterwards for security purposes.
|
|
40
126
|
*/
|
|
41
127
|
export declare class FlinkConnection extends pulumi.CustomResource {
|
package/flinkConnection.js
CHANGED
|
@@ -6,40 +6,126 @@ exports.FlinkConnection = void 0;
|
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
8
|
/**
|
|
9
|
+
* [](https://docs.confluent.io/cloud/current/api.html#section/Versioning/API-Lifecycle-Policy)
|
|
10
|
+
*
|
|
11
|
+
* `confluentcloud.FlinkConnection` provides a Flink Connection resource that enables creating, editing, and deleting Flink Connection on Confluent Cloud.
|
|
12
|
+
*
|
|
13
|
+
* > **Note:** It is recommended to set `lifecycle { preventDestroy = true }` on production instances to prevent accidental Flink Connection deletion. This setting rejects plans that would destroy or recreate the Flink Connection, such as attempting to change uneditable attributes. Read more about it in the Terraform docs.
|
|
14
|
+
*
|
|
15
|
+
* ## Example Usage
|
|
16
|
+
*
|
|
17
|
+
* ### Option #1: Manage multiple Flink Compute Pools in the same Pulumi Stack
|
|
18
|
+
*
|
|
19
|
+
* ```typescript
|
|
20
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
21
|
+
* import * as confluentcloud from "@pulumi/confluentcloud";
|
|
22
|
+
*
|
|
23
|
+
* const connection1 = new confluentcloud.FlinkConnection("connection1", {
|
|
24
|
+
* organization: {
|
|
25
|
+
* id: main.id,
|
|
26
|
+
* },
|
|
27
|
+
* environment: {
|
|
28
|
+
* id: staging.id,
|
|
29
|
+
* },
|
|
30
|
+
* computePool: {
|
|
31
|
+
* id: example.id,
|
|
32
|
+
* },
|
|
33
|
+
* principal: {
|
|
34
|
+
* id: app_manager_flink.id,
|
|
35
|
+
* },
|
|
36
|
+
* restEndpoint: mainConfluentFlinkRegion.restEndpoint,
|
|
37
|
+
* credentials: {
|
|
38
|
+
* key: env_admin_flink_api_key.id,
|
|
39
|
+
* secret: env_admin_flink_api_key.secret,
|
|
40
|
+
* },
|
|
41
|
+
* displayName: "connection1",
|
|
42
|
+
* type: "OPENAI",
|
|
43
|
+
* endpoint: "https://api.openai.com/v1/chat/completions",
|
|
44
|
+
* apiKey: "API_Key_value",
|
|
45
|
+
* });
|
|
46
|
+
* ```
|
|
47
|
+
*
|
|
48
|
+
* ### Option #2: Manage a single Flink Compute Pool in the same Pulumi Stack
|
|
49
|
+
*
|
|
50
|
+
* ```typescript
|
|
51
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
52
|
+
* import * as confluentcloud from "@pulumi/confluentcloud";
|
|
53
|
+
*
|
|
54
|
+
* const example = new confluentcloud.FlinkConnection("example", {
|
|
55
|
+
* displayName: "connection1",
|
|
56
|
+
* type: "OPENAI",
|
|
57
|
+
* endpoint: "https://api.openai.com/v1/chat/completions",
|
|
58
|
+
* apiKey: "API_Key_value",
|
|
59
|
+
* });
|
|
60
|
+
* ```
|
|
61
|
+
*
|
|
62
|
+
* The following arguments are supported:
|
|
63
|
+
*
|
|
64
|
+
* - `organization` (Optional Configuration Block) supports the following:
|
|
65
|
+
* - `id` - (Required String) The ID of the Organization, for example, `1111aaaa-11aa-11aa-11aa-111111aaaaaa`.
|
|
66
|
+
* - `environment` (Optional Configuration Block) supports the following:
|
|
67
|
+
* - `id` - (Required String) The ID of the Environment, for example, `env-abc123`.
|
|
68
|
+
* - `computePool` - (Optional Configuration Block) supports the following:
|
|
69
|
+
* - `id` - (Required String) The ID of the Flink Compute Pool, for example, `lfcp-abc123`.
|
|
70
|
+
* - `principal` - (Optional Configuration Block) supports the following:
|
|
71
|
+
* - `id` - (Required String) The ID of the Principal the Flink Connection runs as, for example, `sa-abc123`.
|
|
72
|
+
* - `restEndpoint` - (Optional String) The REST endpoint of the Flink region, for example, `https://flink.us-east-1.aws.confluent.cloud`.
|
|
73
|
+
* - `credentials` (Optional Configuration Block) supports the following:
|
|
74
|
+
* - `key` - (Required String) The Flink API Key.
|
|
75
|
+
* - `secret` - (Required String, Sensitive) The Flink API Secret.
|
|
76
|
+
*
|
|
77
|
+
* > **Note:** A Flink API key consists of a key and a secret. Flink API keys are required to interact with Flink Connections in Confluent Cloud. Each Flink API key is valid for one specific Flink Region.
|
|
78
|
+
*
|
|
79
|
+
* > **Note:** Use Option #2 to simplify the key rotation process. When using Option #1, to rotate a Flink API key, create a new Flink API key, update the `credentials` block in all configuration files to use the new Flink API key, run `pulumi up -target="confluent_flink_connection.example"`, and remove the old Flink API key. Alternatively, in case the old Flink API Key was deleted already, you might need to run `pulumi preview -refresh=false -target="confluent_flink_connection.example" -out=rotate-flink-api-key` and `pulumi up rotate-flink-api-key` instead.
|
|
80
|
+
*
|
|
81
|
+
* - `displayName` - (Required String) The name of the Flink Connection.
|
|
82
|
+
* - `type` - (Required String) The type of the Flink Connection. The accepted values are: `OPENAI`, `AZUREML`, `AZUREOPENAI`, `BEDROCK`, `SAGEMAKER`, `GOOGLEAI`, `VERTEXAI`, `MONGODB`, `PINECONE`, `ELASTIC` and `COUCHBASE`.
|
|
83
|
+
* - `endpoint` - (Required String) The endpoint of the Flink Connection, for example, `https://api.openai.com/v1/chat/completions`
|
|
84
|
+
* - `apiKey` - (Optional String) The api key for the connection type. This is valid and required for types `OPENAI`, `AZUREML`, `AZUREOPENAI`, `GOOGLEAI`, `ELASTIC` and `PINECONE`.
|
|
85
|
+
* - `awsAccessKey` - (Optional String) The AWS access key for the connection type. This is valid and required for types `BEDROCK` and `SAGEMAKER`.
|
|
86
|
+
* - `awsSecretKey` - (Optional String) The AWS secret key for the connection type. This is valid and required for types `BEDROCK` and `SAGEMAKER`.
|
|
87
|
+
* - `awsSessionToken` - (Optional String) The AWS session key for the connection type. This is valid and required for types `BEDROCK` and `SAGEMAKER`.
|
|
88
|
+
* - `serviceKey` - (Optional String) The service key for the connection type. This is valid and required for type `VERTEXAI`.
|
|
89
|
+
* - `username` - (Optional String) The username for the connection type. This is valid and required for types `MONGODB` and `COUCHBASE`.
|
|
90
|
+
* - `password` - (Optional String) The password for the connection type. This is valid and required for types `MONGODB` and `COUCHBASE`.
|
|
91
|
+
*
|
|
92
|
+
* !> **Warning:** Use Option #2 to avoid exposing sensitive `credentials` value in a state file. When using Option #1, Terraform doesn't encrypt the sensitive `credentials` value of the `confluentcloud.FlinkConnection` resource, so you must keep your state file secure to avoid exposing it. Refer to the Terraform documentation to learn more about securing your state file.
|
|
93
|
+
*
|
|
94
|
+
* # Attributes Reference
|
|
95
|
+
*
|
|
96
|
+
* In addition to the preceding arguments, the following attributes are exported:
|
|
97
|
+
*
|
|
98
|
+
* - `id` - (Required String) The ID of the Flink connection, in the format `<Organization ID>/<Environment ID>/<Flink Connection name>`, for example, `org-xyz123/env-abc123/connection1`.
|
|
99
|
+
* - `apiVersion` - (Required String) The API Version of the schema version of the Flink Connection, for example, `sql/v1`.
|
|
100
|
+
* - `kind` - (Required String) The kind of the Flink Connection, for example, `Connection`.
|
|
101
|
+
*
|
|
9
102
|
* ## Import
|
|
10
103
|
*
|
|
11
104
|
* You can import a Flink connection by using the Flink Connection name, for example:
|
|
12
105
|
*
|
|
13
106
|
* Option #1: Manage multiple Flink Compute Pools in the same Pulumi Stack
|
|
14
107
|
*
|
|
108
|
+
* ```sh
|
|
15
109
|
* $ export IMPORT_CONFLUENT_ORGANIZATION_ID="<organization_id>"
|
|
16
|
-
*
|
|
17
110
|
* $ export IMPORT_CONFLUENT_ENVIRONMENT_ID="<environment_id>"
|
|
18
|
-
*
|
|
19
111
|
* $ export IMPORT_FLINK_COMPUTE_POOL_ID="<flink_compute_pool_id>"
|
|
20
|
-
*
|
|
21
112
|
* $ export IMPORT_FLINK_API_KEY="<flink_api_key>"
|
|
22
|
-
*
|
|
23
113
|
* $ export IMPORT_FLINK_API_SECRET="<flink_api_secret>"
|
|
24
|
-
*
|
|
25
114
|
* $ export IMPORT_FLINK_REST_ENDPOINT="<flink_rest_endpoint>"
|
|
26
|
-
*
|
|
27
115
|
* $ export IMPORT_FLINK_PRINCIPAL_ID="<flink_principal>"
|
|
28
|
-
*
|
|
29
116
|
* $ export API_KEY="<API_KEY>"
|
|
30
|
-
*
|
|
31
|
-
* ```sh
|
|
32
117
|
* $ pulumi import confluentcloud:index/flinkConnection:FlinkConnection example org-xyz123/env-abc123/connection1
|
|
33
118
|
* ```
|
|
34
119
|
*
|
|
35
120
|
* Option #2: Manage a single Flink Compute Pool in the same Pulumi Stack
|
|
36
121
|
*
|
|
37
|
-
* $ export API_KEY="<API_KEY>"
|
|
38
|
-
*
|
|
39
122
|
* ```sh
|
|
123
|
+
* $ export API_KEY="<API_KEY>"
|
|
40
124
|
* $ pulumi import confluentcloud:index/flinkConnection:FlinkConnection example org-xyz123/env-abc123/connection1
|
|
41
125
|
* ```
|
|
42
126
|
*
|
|
127
|
+
* > **Note:** The example above is for `type = OPENAI`, so we exported `API_KEY`. Export the required field for each type as mentioned above. The fields that can be exported are: `API_KEY`, `AWS_SECRET_ACCESS_KEY_CONNECTION`, `AWS_ACCESS_KEY_ID_CONNECTION`, `AWS_SESSION_TOKEN_CONNECTION`, `SERVICE_KEY`, `USERNAME`, `PASSWORD`.
|
|
128
|
+
*
|
|
43
129
|
* !> **Warning:** Do not forget to delete terminal command history afterwards for security purposes.
|
|
44
130
|
*/
|
|
45
131
|
class FlinkConnection extends pulumi.CustomResource {
|
package/flinkConnection.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flinkConnection.js","sourceRoot":"","sources":["../flinkConnection.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"flinkConnection.js","sourceRoot":"","sources":["../flinkConnection.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0HG;AACH,MAAa,eAAgB,SAAQ,MAAM,CAAC,cAAc;IACtD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA4B,EAAE,IAAmC;QAC1H,OAAO,IAAI,eAAe,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACtE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,eAAe,CAAC,YAAY,CAAC;IAChE,CAAC;IAuED,YAAY,IAAY,EAAE,WAAwD,EAAE,IAAmC;QACnH,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA+C,CAAC;YAC9D,cAAc,CAAC,QAAQ,CAAC,GAAG,KAAK,EAAE,MAAM,CAAC;YACzC,cAAc,CAAC,YAAY,CAAC,GAAG,KAAK,EAAE,UAAU,CAAC;YACjD,cAAc,CAAC,cAA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AAQ,CAAC;YAC5C,cAAc,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACjD,cAAc,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAC9C;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,MAAM,UAAU,GAAG,EAAE,uBAAuB,EAAE,CAAC,aAAa,CAAC,EAAE,CAAC;QAChE,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;QAC7C,KAAK,CAAC,eAAe,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACpE,CAAC;;AA1JL,0CA2JC;AA7IG,gBAAgB;AACO,4BAAY,GAAG,sDAAsD,CAAC"}
|
package/flinkStatement.d.ts
CHANGED
|
@@ -2,6 +2,10 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
2
2
|
import * as inputs from "./types/input";
|
|
3
3
|
import * as outputs from "./types/output";
|
|
4
4
|
/**
|
|
5
|
+
* [](https://docs.confluent.io/cloud/current/api.html#section/Versioning/API-Lifecycle-Policy)
|
|
6
|
+
*
|
|
7
|
+
* > **Note:** It is recommended to set `lifecycle { preventDestroy = true }` on production instances to prevent accidental statement deletion. This setting rejects plans that would destroy or recreate the statement, such as attempting to change uneditable attributes. Read more about it in the Terraform docs.
|
|
8
|
+
*
|
|
5
9
|
* ## Example Usage
|
|
6
10
|
*
|
|
7
11
|
* ### Option #1: Manage multiple Flink Compute Pools in the same Pulumi Stack
|
|
@@ -80,21 +84,14 @@ import * as outputs from "./types/output";
|
|
|
80
84
|
*
|
|
81
85
|
* Option #1: Manage multiple Flink Compute Pools in the same Pulumi Stack
|
|
82
86
|
*
|
|
87
|
+
* ```sh
|
|
83
88
|
* $ export IMPORT_CONFLUENT_ORGANIZATION_ID="<organization_id>"
|
|
84
|
-
*
|
|
85
89
|
* $ export IMPORT_CONFLUENT_ENVIRONMENT_ID="<environment_id>"
|
|
86
|
-
*
|
|
87
90
|
* $ export IMPORT_FLINK_COMPUTE_POOL_ID="<flink_compute_pool_id>"
|
|
88
|
-
*
|
|
89
91
|
* $ export IMPORT_FLINK_API_KEY="<flink_api_key>"
|
|
90
|
-
*
|
|
91
92
|
* $ export IMPORT_FLINK_API_SECRET="<flink_api_secret>"
|
|
92
|
-
*
|
|
93
93
|
* $ export IMPORT_FLINK_REST_ENDPOINT="<flink_rest_endpoint>"
|
|
94
|
-
*
|
|
95
94
|
* $ export IMPORT_FLINK_PRINCIPAL_ID="<flink_rest_endpoint>"
|
|
96
|
-
*
|
|
97
|
-
* ```sh
|
|
98
95
|
* $ pulumi import confluentcloud:index/flinkStatement:FlinkStatement example cfeab4fe-b62c-49bd-9e99-51cc98c77a67
|
|
99
96
|
* ```
|
|
100
97
|
*
|
|
@@ -173,7 +170,15 @@ export declare class FlinkStatement extends pulumi.CustomResource {
|
|
|
173
170
|
*/
|
|
174
171
|
readonly statementName: pulumi.Output<string>;
|
|
175
172
|
/**
|
|
176
|
-
*
|
|
173
|
+
* The boolean flag is used to indicate the statement's running status and to control whether the Flink Statement should be stopped or resumed. Defaults to `false`. Update it to `true` to stop the statement. Subsequently update it to `false` to resume the statement.
|
|
174
|
+
*
|
|
175
|
+
* !> **Note:** To stop a running statement, no other argument can be updated except `stopped`.
|
|
176
|
+
*
|
|
177
|
+
* !> **Note:** When resuming a stopped statement, you can update `principal.id` and/or `compute_pool.id` in addition to `stopped` attribute. This enables the statement to run under a different principal (with the appropriate role assignment) or a different Flink compute pool (as long as it is in the same Flink region as the original).
|
|
178
|
+
*
|
|
179
|
+
* !> **Note:** Currently, only 3 Flink statements support the resume feature, namely: `CREATE TABLE AS`, `INSERT INTO`, and `EXECUTE STATEMENT SET`.
|
|
180
|
+
*
|
|
181
|
+
* !> **Warning:** Use Option #2 to avoid exposing sensitive `credentials` value in a state file. When using Option #1, Terraform doesn't encrypt the sensitive `credentials` value of the `confluentcloud.FlinkStatement` resource, so you must keep your state file secure to avoid exposing it. Refer to the Terraform documentation to learn more about securing your state file.
|
|
177
182
|
*/
|
|
178
183
|
readonly stopped: pulumi.Output<boolean>;
|
|
179
184
|
/**
|
|
@@ -240,7 +245,15 @@ export interface FlinkStatementState {
|
|
|
240
245
|
*/
|
|
241
246
|
statementName?: pulumi.Input<string>;
|
|
242
247
|
/**
|
|
243
|
-
*
|
|
248
|
+
* The boolean flag is used to indicate the statement's running status and to control whether the Flink Statement should be stopped or resumed. Defaults to `false`. Update it to `true` to stop the statement. Subsequently update it to `false` to resume the statement.
|
|
249
|
+
*
|
|
250
|
+
* !> **Note:** To stop a running statement, no other argument can be updated except `stopped`.
|
|
251
|
+
*
|
|
252
|
+
* !> **Note:** When resuming a stopped statement, you can update `principal.id` and/or `compute_pool.id` in addition to `stopped` attribute. This enables the statement to run under a different principal (with the appropriate role assignment) or a different Flink compute pool (as long as it is in the same Flink region as the original).
|
|
253
|
+
*
|
|
254
|
+
* !> **Note:** Currently, only 3 Flink statements support the resume feature, namely: `CREATE TABLE AS`, `INSERT INTO`, and `EXECUTE STATEMENT SET`.
|
|
255
|
+
*
|
|
256
|
+
* !> **Warning:** Use Option #2 to avoid exposing sensitive `credentials` value in a state file. When using Option #1, Terraform doesn't encrypt the sensitive `credentials` value of the `confluentcloud.FlinkStatement` resource, so you must keep your state file secure to avoid exposing it. Refer to the Terraform documentation to learn more about securing your state file.
|
|
244
257
|
*/
|
|
245
258
|
stopped?: pulumi.Input<boolean>;
|
|
246
259
|
}
|
|
@@ -283,7 +296,15 @@ export interface FlinkStatementArgs {
|
|
|
283
296
|
*/
|
|
284
297
|
statementName?: pulumi.Input<string>;
|
|
285
298
|
/**
|
|
286
|
-
*
|
|
299
|
+
* The boolean flag is used to indicate the statement's running status and to control whether the Flink Statement should be stopped or resumed. Defaults to `false`. Update it to `true` to stop the statement. Subsequently update it to `false` to resume the statement.
|
|
300
|
+
*
|
|
301
|
+
* !> **Note:** To stop a running statement, no other argument can be updated except `stopped`.
|
|
302
|
+
*
|
|
303
|
+
* !> **Note:** When resuming a stopped statement, you can update `principal.id` and/or `compute_pool.id` in addition to `stopped` attribute. This enables the statement to run under a different principal (with the appropriate role assignment) or a different Flink compute pool (as long as it is in the same Flink region as the original).
|
|
304
|
+
*
|
|
305
|
+
* !> **Note:** Currently, only 3 Flink statements support the resume feature, namely: `CREATE TABLE AS`, `INSERT INTO`, and `EXECUTE STATEMENT SET`.
|
|
306
|
+
*
|
|
307
|
+
* !> **Warning:** Use Option #2 to avoid exposing sensitive `credentials` value in a state file. When using Option #1, Terraform doesn't encrypt the sensitive `credentials` value of the `confluentcloud.FlinkStatement` resource, so you must keep your state file secure to avoid exposing it. Refer to the Terraform documentation to learn more about securing your state file.
|
|
287
308
|
*/
|
|
288
309
|
stopped?: pulumi.Input<boolean>;
|
|
289
310
|
}
|
package/flinkStatement.js
CHANGED
|
@@ -6,6 +6,10 @@ exports.FlinkStatement = void 0;
|
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
8
|
/**
|
|
9
|
+
* [](https://docs.confluent.io/cloud/current/api.html#section/Versioning/API-Lifecycle-Policy)
|
|
10
|
+
*
|
|
11
|
+
* > **Note:** It is recommended to set `lifecycle { preventDestroy = true }` on production instances to prevent accidental statement deletion. This setting rejects plans that would destroy or recreate the statement, such as attempting to change uneditable attributes. Read more about it in the Terraform docs.
|
|
12
|
+
*
|
|
9
13
|
* ## Example Usage
|
|
10
14
|
*
|
|
11
15
|
* ### Option #1: Manage multiple Flink Compute Pools in the same Pulumi Stack
|
|
@@ -84,21 +88,14 @@ const utilities = require("./utilities");
|
|
|
84
88
|
*
|
|
85
89
|
* Option #1: Manage multiple Flink Compute Pools in the same Pulumi Stack
|
|
86
90
|
*
|
|
91
|
+
* ```sh
|
|
87
92
|
* $ export IMPORT_CONFLUENT_ORGANIZATION_ID="<organization_id>"
|
|
88
|
-
*
|
|
89
93
|
* $ export IMPORT_CONFLUENT_ENVIRONMENT_ID="<environment_id>"
|
|
90
|
-
*
|
|
91
94
|
* $ export IMPORT_FLINK_COMPUTE_POOL_ID="<flink_compute_pool_id>"
|
|
92
|
-
*
|
|
93
95
|
* $ export IMPORT_FLINK_API_KEY="<flink_api_key>"
|
|
94
|
-
*
|
|
95
96
|
* $ export IMPORT_FLINK_API_SECRET="<flink_api_secret>"
|
|
96
|
-
*
|
|
97
97
|
* $ export IMPORT_FLINK_REST_ENDPOINT="<flink_rest_endpoint>"
|
|
98
|
-
*
|
|
99
98
|
* $ export IMPORT_FLINK_PRINCIPAL_ID="<flink_rest_endpoint>"
|
|
100
|
-
*
|
|
101
|
-
* ```sh
|
|
102
99
|
* $ pulumi import confluentcloud:index/flinkStatement:FlinkStatement example cfeab4fe-b62c-49bd-9e99-51cc98c77a67
|
|
103
100
|
* ```
|
|
104
101
|
*
|
package/flinkStatement.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flinkStatement.js","sourceRoot":"","sources":["../flinkStatement.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"flinkStatement.js","sourceRoot":"","sources":["../flinkStatement.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqGG;AACH,MAAa,cAAe,SAAQ,MAAM,CAAC,cAAc;IACrD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA2B,EAAE,IAAmC;QACzH,OAAO,IAAI,cAAc,CAAC,IAAI,EAAO,KAA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