diff --git a/patches/0002-Add-Go-module-version-to-upstream-go.mod.patch b/patches/0002-Add-Go-module-version-to-upstream-go.mod.patch index ac37d3bd..d75860f1 100644 --- a/patches/0002-Add-Go-module-version-to-upstream-go.mod.patch +++ b/patches/0002-Add-Go-module-version-to-upstream-go.mod.patch @@ -5,7 +5,7 @@ Subject: [PATCH] Add Go module version to upstream go.mod diff --git a/go.mod b/go.mod -index cb20cc69..700e6488 100644 +index cc9e643f..85544dc4 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ diff --git a/provider/cmd/pulumi-resource-confluentcloud/schema.json b/provider/cmd/pulumi-resource-confluentcloud/schema.json index b1f3efe8..47271f38 100644 --- a/provider/cmd/pulumi-resource-confluentcloud/schema.json +++ b/provider/cmd/pulumi-resource-confluentcloud/schema.json @@ -6914,7 +6914,7 @@ } }, "confluentcloud:index/flinkArtifact:FlinkArtifact": { - "description": "## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as confluentcloud from \"@pulumi/confluentcloud\";\n\nconst development = new confluentcloud.Environment(\"development\", {displayName: \"Development\"});\nconst main = new confluentcloud.FlinkArtifact(\"main\", {\n \"class\": \"io.confluent.example.SumScalarFunction\",\n region: \"us-west-2\",\n cloud: \"AWS\",\n displayName: \"flink_sumscalar_artifact\",\n contentFormat: \"JAR\",\n environment: {\n id: development.id,\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_confluentcloud as confluentcloud\n\ndevelopment = confluentcloud.Environment(\"development\", display_name=\"Development\")\nmain = confluentcloud.FlinkArtifact(\"main\",\n class_=\"io.confluent.example.SumScalarFunction\",\n region=\"us-west-2\",\n cloud=\"AWS\",\n display_name=\"flink_sumscalar_artifact\",\n content_format=\"JAR\",\n environment={\n \"id\": development.id,\n })\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing ConfluentCloud = Pulumi.ConfluentCloud;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var development = new ConfluentCloud.Environment(\"development\", new()\n {\n DisplayName = \"Development\",\n });\n\n var main = new ConfluentCloud.FlinkArtifact(\"main\", new()\n {\n Class = \"io.confluent.example.SumScalarFunction\",\n Region = \"us-west-2\",\n Cloud = \"AWS\",\n DisplayName = \"flink_sumscalar_artifact\",\n ContentFormat = \"JAR\",\n Environment = new ConfluentCloud.Inputs.FlinkArtifactEnvironmentArgs\n {\n Id = development.Id,\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-confluentcloud/sdk/v2/go/confluentcloud\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tdevelopment, err := confluentcloud.NewEnvironment(ctx, \"development\", \u0026confluentcloud.EnvironmentArgs{\n\t\t\tDisplayName: pulumi.String(\"Development\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = confluentcloud.NewFlinkArtifact(ctx, \"main\", \u0026confluentcloud.FlinkArtifactArgs{\n\t\t\tClass: pulumi.String(\"io.confluent.example.SumScalarFunction\"),\n\t\t\tRegion: pulumi.String(\"us-west-2\"),\n\t\t\tCloud: pulumi.String(\"AWS\"),\n\t\t\tDisplayName: pulumi.String(\"flink_sumscalar_artifact\"),\n\t\t\tContentFormat: pulumi.String(\"JAR\"),\n\t\t\tEnvironment: \u0026confluentcloud.FlinkArtifactEnvironmentArgs{\n\t\t\t\tId: development.ID(),\n\t\t\t},\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.confluentcloud.Environment;\nimport com.pulumi.confluentcloud.EnvironmentArgs;\nimport com.pulumi.confluentcloud.FlinkArtifact;\nimport com.pulumi.confluentcloud.FlinkArtifactArgs;\nimport com.pulumi.confluentcloud.inputs.FlinkArtifactEnvironmentArgs;\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 development = new Environment(\"development\", EnvironmentArgs.builder()\n .displayName(\"Development\")\n .build());\n\n var main = new FlinkArtifact(\"main\", FlinkArtifactArgs.builder()\n .class_(\"io.confluent.example.SumScalarFunction\")\n .region(\"us-west-2\")\n .cloud(\"AWS\")\n .displayName(\"flink_sumscalar_artifact\")\n .contentFormat(\"JAR\")\n .environment(FlinkArtifactEnvironmentArgs.builder()\n .id(development.id())\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n development:\n type: confluentcloud:Environment\n properties:\n displayName: Development\n main:\n type: confluentcloud:FlinkArtifact\n properties:\n class: io.confluent.example.SumScalarFunction\n region: us-west-2\n cloud: AWS\n displayName: flink_sumscalar_artifact\n contentFormat: JAR\n environment:\n id: ${development.id}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nYou can import a Flink Artifact by using cloud, region, Flink Artifact ID and artifact file, in the format `\u003cEnvironment ID\u003e/\u003cregion\u003e/\u003ccloud\u003e/\u003cFlink Artifact ID\u003e`. The following example shows how to import a Flink Artifact:\n\n$ export CONFLUENT_CLOUD_API_KEY=\"\u003ccloud_api_key\u003e\"\n\n$ export CONFLUENT_CLOUD_API_SECRET=\"\u003ccloud_api_secret\u003e\"\n\n```sh\n$ pulumi import confluentcloud:index/flinkArtifact:FlinkArtifact main env-abc123/us-east-1/aws/fa-123\n```\n\n!\u003e **Warning:** Do not forget to delete terminal command history afterwards for security purposes.\n\n", + "description": "## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as confluentcloud from \"@pulumi/confluentcloud\";\n\nconst development = new confluentcloud.Environment(\"development\", {displayName: \"Development\"});\nconst main = new confluentcloud.FlinkArtifact(\"main\", {\n cloud: \"AWS\",\n region: \"us-west-2\",\n displayName: \"my_flink_sumscalar_artifact\",\n contentFormat: \"JAR\",\n environment: {\n id: development.id,\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_confluentcloud as confluentcloud\n\ndevelopment = confluentcloud.Environment(\"development\", display_name=\"Development\")\nmain = confluentcloud.FlinkArtifact(\"main\",\n cloud=\"AWS\",\n region=\"us-west-2\",\n display_name=\"my_flink_sumscalar_artifact\",\n content_format=\"JAR\",\n environment={\n \"id\": development.id,\n })\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing ConfluentCloud = Pulumi.ConfluentCloud;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var development = new ConfluentCloud.Environment(\"development\", new()\n {\n DisplayName = \"Development\",\n });\n\n var main = new ConfluentCloud.FlinkArtifact(\"main\", new()\n {\n Cloud = \"AWS\",\n Region = \"us-west-2\",\n DisplayName = \"my_flink_sumscalar_artifact\",\n ContentFormat = \"JAR\",\n Environment = new ConfluentCloud.Inputs.FlinkArtifactEnvironmentArgs\n {\n Id = development.Id,\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-confluentcloud/sdk/v2/go/confluentcloud\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\tdevelopment, err := confluentcloud.NewEnvironment(ctx, \"development\", \u0026confluentcloud.EnvironmentArgs{\n\t\t\tDisplayName: pulumi.String(\"Development\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = confluentcloud.NewFlinkArtifact(ctx, \"main\", \u0026confluentcloud.FlinkArtifactArgs{\n\t\t\tCloud: pulumi.String(\"AWS\"),\n\t\t\tRegion: pulumi.String(\"us-west-2\"),\n\t\t\tDisplayName: pulumi.String(\"my_flink_sumscalar_artifact\"),\n\t\t\tContentFormat: pulumi.String(\"JAR\"),\n\t\t\tEnvironment: \u0026confluentcloud.FlinkArtifactEnvironmentArgs{\n\t\t\t\tId: development.ID(),\n\t\t\t},\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.confluentcloud.Environment;\nimport com.pulumi.confluentcloud.EnvironmentArgs;\nimport com.pulumi.confluentcloud.FlinkArtifact;\nimport com.pulumi.confluentcloud.FlinkArtifactArgs;\nimport com.pulumi.confluentcloud.inputs.FlinkArtifactEnvironmentArgs;\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 development = new Environment(\"development\", EnvironmentArgs.builder()\n .displayName(\"Development\")\n .build());\n\n var main = new FlinkArtifact(\"main\", FlinkArtifactArgs.builder()\n .cloud(\"AWS\")\n .region(\"us-west-2\")\n .displayName(\"my_flink_sumscalar_artifact\")\n .contentFormat(\"JAR\")\n .environment(FlinkArtifactEnvironmentArgs.builder()\n .id(development.id())\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n development:\n type: confluentcloud:Environment\n properties:\n displayName: Development\n main:\n type: confluentcloud:FlinkArtifact\n properties:\n cloud: AWS\n region: us-west-2\n displayName: my_flink_sumscalar_artifact\n contentFormat: JAR\n environment:\n id: ${development.id}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nYou can import a Flink Artifact by using cloud, region, Flink Artifact ID and artifact file, in the format `\u003cEnvironment ID\u003e/\u003cregion\u003e/\u003ccloud\u003e/\u003cFlink Artifact ID\u003e`. The following example shows how to import a Flink Artifact:\n\n$ export CONFLUENT_CLOUD_API_KEY=\"\u003ccloud_api_key\u003e\"\n\n$ export CONFLUENT_CLOUD_API_SECRET=\"\u003ccloud_api_secret\u003e\"\n\n```sh\n$ pulumi import confluentcloud:index/flinkArtifact:FlinkArtifact main env-abc123/us-east-1/aws/fa-123\n```\n\n!\u003e **Warning:** Do not forget to delete terminal command history afterwards for security purposes.\n\n", "properties": { "apiVersion": { "type": "string", @@ -6926,7 +6926,8 @@ }, "class": { "type": "string", - "description": "Java class or alias for the Flink Artifact as provided by developer.\n" + "description": "Java class or alias for the Flink Artifact as provided by developer.\n", + "deprecationMessage": "The \"class\" attribute has been deprecated and will be removed in the next major version of the provider (3.0.0). Refer to the Upgrade Guide at https://registry.terraform.io/providers/confluentinc/confluent/latest/docs/guides/version-3-upgrade for more details. The guide will be published once version 3.0.0 is released." }, "cloud": { "type": "string", @@ -6934,7 +6935,7 @@ }, "contentFormat": { "type": "string", - "description": "(Optional String) Archive format of the Flink Artifact.\n" + "description": "(Optional String) Archive format of the Flink Artifact. Accepted values are: `JAR`, `ZIP`.\n" }, "description": { "type": "string", @@ -6942,7 +6943,11 @@ }, "displayName": { "type": "string", - "description": "The display name of Flink Artifact.\n" + "description": "The unique name of the Flink Artifact per cloud, region, environment scope.\n" + }, + "documentationLink": { + "type": "string", + "description": "(Optional String) Documentation link of the Flink Artifact.\n" }, "environment": { "$ref": "#/types/confluentcloud:index/FlinkArtifactEnvironment:FlinkArtifactEnvironment", @@ -6958,7 +6963,7 @@ }, "runtimeLanguage": { "type": "string", - "description": "(Optional String) Runtime language of the Flink Artifact. The default runtime language is Java.\n" + "description": "(Optional String) Runtime language of the Flink Artifact as `Python` or `Java`. Defaults to `Java`.\n" }, "versions": { "type": "array", @@ -6970,7 +6975,6 @@ }, "required": [ "apiVersion", - "class", "cloud", "contentFormat", "displayName", @@ -6988,6 +6992,7 @@ "class": { "type": "string", "description": "Java class or alias for the Flink Artifact as provided by developer.\n", + "deprecationMessage": "The \"class\" attribute has been deprecated and will be removed in the next major version of the provider (3.0.0). Refer to the Upgrade Guide at https://registry.terraform.io/providers/confluentinc/confluent/latest/docs/guides/version-3-upgrade for more details. The guide will be published once version 3.0.0 is released.", "willReplaceOnChanges": true }, "cloud": { @@ -6997,7 +7002,7 @@ }, "contentFormat": { "type": "string", - "description": "(Optional String) Archive format of the Flink Artifact.\n" + "description": "(Optional String) Archive format of the Flink Artifact. Accepted values are: `JAR`, `ZIP`.\n" }, "description": { "type": "string", @@ -7006,7 +7011,12 @@ }, "displayName": { "type": "string", - "description": "The display name of Flink Artifact.\n", + "description": "The unique name of the Flink Artifact per cloud, region, environment scope.\n", + "willReplaceOnChanges": true + }, + "documentationLink": { + "type": "string", + "description": "(Optional String) Documentation link of the Flink Artifact.\n", "willReplaceOnChanges": true }, "environment": { @@ -7021,12 +7031,11 @@ }, "runtimeLanguage": { "type": "string", - "description": "(Optional String) Runtime language of the Flink Artifact. The default runtime language is Java.\n", + "description": "(Optional String) Runtime language of the Flink Artifact as `Python` or `Java`. Defaults to `Java`.\n", "willReplaceOnChanges": true } }, "requiredInputs": [ - "class", "cloud", "displayName", "environment", @@ -7047,6 +7056,7 @@ "class": { "type": "string", "description": "Java class or alias for the Flink Artifact as provided by developer.\n", + "deprecationMessage": "The \"class\" attribute has been deprecated and will be removed in the next major version of the provider (3.0.0). Refer to the Upgrade Guide at https://registry.terraform.io/providers/confluentinc/confluent/latest/docs/guides/version-3-upgrade for more details. The guide will be published once version 3.0.0 is released.", "willReplaceOnChanges": true }, "cloud": { @@ -7056,7 +7066,7 @@ }, "contentFormat": { "type": "string", - "description": "(Optional String) Archive format of the Flink Artifact.\n" + "description": "(Optional String) Archive format of the Flink Artifact. Accepted values are: `JAR`, `ZIP`.\n" }, "description": { "type": "string", @@ -7065,7 +7075,12 @@ }, "displayName": { "type": "string", - "description": "The display name of Flink Artifact.\n", + "description": "The unique name of the Flink Artifact per cloud, region, environment scope.\n", + "willReplaceOnChanges": true + }, + "documentationLink": { + "type": "string", + "description": "(Optional String) Documentation link of the Flink Artifact.\n", "willReplaceOnChanges": true }, "environment": { @@ -7084,7 +7099,7 @@ }, "runtimeLanguage": { "type": "string", - "description": "(Optional String) Runtime language of the Flink Artifact. The default runtime language is Java.\n", + "description": "(Optional String) Runtime language of the Flink Artifact as `Python` or `Java`. Defaults to `Java`.\n", "willReplaceOnChanges": true }, "versions": { @@ -7218,7 +7233,7 @@ } }, "confluentcloud:index/flinkStatement:FlinkStatement": { - "description": "## Example Usage\n\n### Option #1: Manage multiple Flink Compute Pools in the same Pulumi Stack\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as confluentcloud from \"@pulumi/confluentcloud\";\n\nconst randomIntTable = new confluentcloud.FlinkStatement(\"random_int_table\", {\n organization: {\n id: main.id,\n },\n environment: {\n id: staging.id,\n },\n computePool: {\n id: example.id,\n },\n principal: {\n id: app_manager_flink.id,\n },\n statement: \"CREATE TABLE random_int_table(ts TIMESTAMP_LTZ(3), random_value INT);\",\n properties: {\n \"sql.current-catalog\": exampleConfluentEnvironment.displayName,\n \"sql.current-database\": exampleConfluentKafkaCluster.displayName,\n },\n restEndpoint: mainConfluentFlinkRegion.restEndpoint,\n credentials: {\n key: env_admin_flink_api_key.id,\n secret: env_admin_flink_api_key.secret,\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_confluentcloud as confluentcloud\n\nrandom_int_table = confluentcloud.FlinkStatement(\"random_int_table\",\n organization={\n \"id\": main[\"id\"],\n },\n environment={\n \"id\": staging[\"id\"],\n },\n compute_pool={\n \"id\": example[\"id\"],\n },\n principal={\n \"id\": app_manager_flink[\"id\"],\n },\n statement=\"CREATE TABLE random_int_table(ts TIMESTAMP_LTZ(3), random_value INT);\",\n properties={\n \"sql.current-catalog\": example_confluent_environment[\"displayName\"],\n \"sql.current-database\": example_confluent_kafka_cluster[\"displayName\"],\n },\n rest_endpoint=main_confluent_flink_region[\"restEndpoint\"],\n credentials={\n \"key\": env_admin_flink_api_key[\"id\"],\n \"secret\": env_admin_flink_api_key[\"secret\"],\n })\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing ConfluentCloud = Pulumi.ConfluentCloud;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var randomIntTable = new ConfluentCloud.FlinkStatement(\"random_int_table\", new()\n {\n Organization = new ConfluentCloud.Inputs.FlinkStatementOrganizationArgs\n {\n Id = main.Id,\n },\n Environment = new ConfluentCloud.Inputs.FlinkStatementEnvironmentArgs\n {\n Id = staging.Id,\n },\n ComputePool = new ConfluentCloud.Inputs.FlinkStatementComputePoolArgs\n {\n Id = example.Id,\n },\n Principal = new ConfluentCloud.Inputs.FlinkStatementPrincipalArgs\n {\n Id = app_manager_flink.Id,\n },\n Statement = \"CREATE TABLE random_int_table(ts TIMESTAMP_LTZ(3), random_value INT);\",\n Properties = \n {\n { \"sql.current-catalog\", exampleConfluentEnvironment.DisplayName },\n { \"sql.current-database\", exampleConfluentKafkaCluster.DisplayName },\n },\n RestEndpoint = mainConfluentFlinkRegion.RestEndpoint,\n Credentials = new ConfluentCloud.Inputs.FlinkStatementCredentialsArgs\n {\n Key = env_admin_flink_api_key.Id,\n Secret = env_admin_flink_api_key.Secret,\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-confluentcloud/sdk/v2/go/confluentcloud\"\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 := confluentcloud.NewFlinkStatement(ctx, \"random_int_table\", \u0026confluentcloud.FlinkStatementArgs{\n\t\t\tOrganization: \u0026confluentcloud.FlinkStatementOrganizationArgs{\n\t\t\t\tId: pulumi.Any(main.Id),\n\t\t\t},\n\t\t\tEnvironment: \u0026confluentcloud.FlinkStatementEnvironmentArgs{\n\t\t\t\tId: pulumi.Any(staging.Id),\n\t\t\t},\n\t\t\tComputePool: \u0026confluentcloud.FlinkStatementComputePoolArgs{\n\t\t\t\tId: pulumi.Any(example.Id),\n\t\t\t},\n\t\t\tPrincipal: \u0026confluentcloud.FlinkStatementPrincipalArgs{\n\t\t\t\tId: pulumi.Any(app_manager_flink.Id),\n\t\t\t},\n\t\t\tStatement: pulumi.String(\"CREATE TABLE random_int_table(ts TIMESTAMP_LTZ(3), random_value INT);\"),\n\t\t\tProperties: pulumi.StringMap{\n\t\t\t\t\"sql.current-catalog\": pulumi.Any(exampleConfluentEnvironment.DisplayName),\n\t\t\t\t\"sql.current-database\": pulumi.Any(exampleConfluentKafkaCluster.DisplayName),\n\t\t\t},\n\t\t\tRestEndpoint: pulumi.Any(mainConfluentFlinkRegion.RestEndpoint),\n\t\t\tCredentials: \u0026confluentcloud.FlinkStatementCredentialsArgs{\n\t\t\t\tKey: pulumi.Any(env_admin_flink_api_key.Id),\n\t\t\t\tSecret: pulumi.Any(env_admin_flink_api_key.Secret),\n\t\t\t},\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.confluentcloud.FlinkStatement;\nimport com.pulumi.confluentcloud.FlinkStatementArgs;\nimport com.pulumi.confluentcloud.inputs.FlinkStatementOrganizationArgs;\nimport com.pulumi.confluentcloud.inputs.FlinkStatementEnvironmentArgs;\nimport com.pulumi.confluentcloud.inputs.FlinkStatementComputePoolArgs;\nimport com.pulumi.confluentcloud.inputs.FlinkStatementPrincipalArgs;\nimport com.pulumi.confluentcloud.inputs.FlinkStatementCredentialsArgs;\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 randomIntTable = new FlinkStatement(\"randomIntTable\", FlinkStatementArgs.builder()\n .organization(FlinkStatementOrganizationArgs.builder()\n .id(main.id())\n .build())\n .environment(FlinkStatementEnvironmentArgs.builder()\n .id(staging.id())\n .build())\n .computePool(FlinkStatementComputePoolArgs.builder()\n .id(example.id())\n .build())\n .principal(FlinkStatementPrincipalArgs.builder()\n .id(app_manager_flink.id())\n .build())\n .statement(\"CREATE TABLE random_int_table(ts TIMESTAMP_LTZ(3), random_value INT);\")\n .properties(Map.ofEntries(\n Map.entry(\"sql.current-catalog\", exampleConfluentEnvironment.displayName()),\n Map.entry(\"sql.current-database\", exampleConfluentKafkaCluster.displayName())\n ))\n .restEndpoint(mainConfluentFlinkRegion.restEndpoint())\n .credentials(FlinkStatementCredentialsArgs.builder()\n .key(env_admin_flink_api_key.id())\n .secret(env_admin_flink_api_key.secret())\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n randomIntTable:\n type: confluentcloud:FlinkStatement\n name: random_int_table\n properties:\n organization:\n id: ${main.id}\n environment:\n id: ${staging.id}\n computePool:\n id: ${example.id}\n principal:\n id: ${[\"app-manager-flink\"].id}\n statement: CREATE TABLE random_int_table(ts TIMESTAMP_LTZ(3), random_value INT);\n properties:\n sql.current-catalog: ${exampleConfluentEnvironment.displayName}\n sql.current-database: ${exampleConfluentKafkaCluster.displayName}\n restEndpoint: ${mainConfluentFlinkRegion.restEndpoint}\n credentials:\n key: ${[\"env-admin-flink-api-key\"].id}\n secret: ${[\"env-admin-flink-api-key\"].secret}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n### Option #2: Manage a single Flink Compute Pool in the same Pulumi Stack\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as confluentcloud from \"@pulumi/confluentcloud\";\n\nconst example = new confluentcloud.FlinkStatement(\"example\", {\n statement: \"CREATE TABLE random_int_table(ts TIMESTAMP_LTZ(3), random_value INT);\",\n properties: {\n \"sql.current-catalog\": confluentEnvironmentDisplayName,\n \"sql.current-database\": confluentKafkaClusterDisplayName,\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_confluentcloud as confluentcloud\n\nexample = confluentcloud.FlinkStatement(\"example\",\n statement=\"CREATE TABLE random_int_table(ts TIMESTAMP_LTZ(3), random_value INT);\",\n properties={\n \"sql.current-catalog\": confluent_environment_display_name,\n \"sql.current-database\": confluent_kafka_cluster_display_name,\n })\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing ConfluentCloud = Pulumi.ConfluentCloud;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new ConfluentCloud.FlinkStatement(\"example\", new()\n {\n Statement = \"CREATE TABLE random_int_table(ts TIMESTAMP_LTZ(3), random_value INT);\",\n Properties = \n {\n { \"sql.current-catalog\", confluentEnvironmentDisplayName },\n { \"sql.current-database\", confluentKafkaClusterDisplayName },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-confluentcloud/sdk/v2/go/confluentcloud\"\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 := confluentcloud.NewFlinkStatement(ctx, \"example\", \u0026confluentcloud.FlinkStatementArgs{\n\t\t\tStatement: pulumi.String(\"CREATE TABLE random_int_table(ts TIMESTAMP_LTZ(3), random_value INT);\"),\n\t\t\tProperties: pulumi.StringMap{\n\t\t\t\t\"sql.current-catalog\": pulumi.Any(confluentEnvironmentDisplayName),\n\t\t\t\t\"sql.current-database\": pulumi.Any(confluentKafkaClusterDisplayName),\n\t\t\t},\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.confluentcloud.FlinkStatement;\nimport com.pulumi.confluentcloud.FlinkStatementArgs;\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 example = new FlinkStatement(\"example\", FlinkStatementArgs.builder()\n .statement(\"CREATE TABLE random_int_table(ts TIMESTAMP_LTZ(3), random_value INT);\")\n .properties(Map.ofEntries(\n Map.entry(\"sql.current-catalog\", confluentEnvironmentDisplayName),\n Map.entry(\"sql.current-database\", confluentKafkaClusterDisplayName)\n ))\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: confluentcloud:FlinkStatement\n properties:\n statement: CREATE TABLE random_int_table(ts TIMESTAMP_LTZ(3), random_value INT);\n properties:\n sql.current-catalog: ${confluentEnvironmentDisplayName}\n sql.current-database: ${confluentKafkaClusterDisplayName}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n\n## Getting Started\n\nThe following end-to-end example might help to get started with [Flink Statements](https://docs.confluent.io/cloud/current/flink/get-started/overview.html):\n * flink-quickstart\n * flink-carry-over-offset-between-statements\n\n## Import\n\nYou can import a Flink statement by using the Flink Statement name, for example:\n\nOption #1: Manage multiple Flink Compute Pools in the same Pulumi Stack\n\n$ export IMPORT_CONFLUENT_ORGANIZATION_ID=\"\u003corganization_id\u003e\"\n\n$ export IMPORT_CONFLUENT_ENVIRONMENT_ID=\"\u003cenvironment_id\u003e\"\n\n$ export IMPORT_FLINK_COMPUTE_POOL_ID=\"\u003cflink_compute_pool_id\u003e\"\n\n$ export IMPORT_FLINK_API_KEY=\"\u003cflink_api_key\u003e\"\n\n$ export IMPORT_FLINK_API_SECRET=\"\u003cflink_api_secret\u003e\"\n\n$ export IMPORT_FLINK_REST_ENDPOINT=\"\u003cflink_rest_endpoint\u003e\"\n\n$ export IMPORT_FLINK_PRINCIPAL_ID=\"\u003cflink_rest_endpoint\u003e\"\n\n```sh\n$ pulumi import confluentcloud:index/flinkStatement:FlinkStatement example cfeab4fe-b62c-49bd-9e99-51cc98c77a67\n```\n\nOption #2: Manage a single Flink Compute Pool in the same Pulumi Stack\n\n```sh\n$ pulumi import confluentcloud:index/flinkStatement:FlinkStatement example cfeab4fe-b62c-49bd-9e99-51cc98c77a67\n```\n\n!\u003e **Warning:** Do not forget to delete terminal command history afterwards for security purposes.\n\n", + "description": "## Example Usage\n\n### Option #1: Manage multiple Flink Compute Pools in the same Pulumi Stack\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as confluentcloud from \"@pulumi/confluentcloud\";\n\nconst randomIntTable = new confluentcloud.FlinkStatement(\"random_int_table\", {\n organization: {\n id: main.id,\n },\n environment: {\n id: staging.id,\n },\n computePool: {\n id: example.id,\n },\n principal: {\n id: app_manager_flink.id,\n },\n statement: \"CREATE TABLE random_int_table(ts TIMESTAMP_LTZ(3), random_value INT);\",\n properties: {\n \"sql.current-catalog\": exampleConfluentEnvironment.displayName,\n \"sql.current-database\": exampleConfluentKafkaCluster.displayName,\n },\n restEndpoint: mainConfluentFlinkRegion.restEndpoint,\n credentials: {\n key: env_admin_flink_api_key.id,\n secret: env_admin_flink_api_key.secret,\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_confluentcloud as confluentcloud\n\nrandom_int_table = confluentcloud.FlinkStatement(\"random_int_table\",\n organization={\n \"id\": main[\"id\"],\n },\n environment={\n \"id\": staging[\"id\"],\n },\n compute_pool={\n \"id\": example[\"id\"],\n },\n principal={\n \"id\": app_manager_flink[\"id\"],\n },\n statement=\"CREATE TABLE random_int_table(ts TIMESTAMP_LTZ(3), random_value INT);\",\n properties={\n \"sql.current-catalog\": example_confluent_environment[\"displayName\"],\n \"sql.current-database\": example_confluent_kafka_cluster[\"displayName\"],\n },\n rest_endpoint=main_confluent_flink_region[\"restEndpoint\"],\n credentials={\n \"key\": env_admin_flink_api_key[\"id\"],\n \"secret\": env_admin_flink_api_key[\"secret\"],\n })\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing ConfluentCloud = Pulumi.ConfluentCloud;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var randomIntTable = new ConfluentCloud.FlinkStatement(\"random_int_table\", new()\n {\n Organization = new ConfluentCloud.Inputs.FlinkStatementOrganizationArgs\n {\n Id = main.Id,\n },\n Environment = new ConfluentCloud.Inputs.FlinkStatementEnvironmentArgs\n {\n Id = staging.Id,\n },\n ComputePool = new ConfluentCloud.Inputs.FlinkStatementComputePoolArgs\n {\n Id = example.Id,\n },\n Principal = new ConfluentCloud.Inputs.FlinkStatementPrincipalArgs\n {\n Id = app_manager_flink.Id,\n },\n Statement = \"CREATE TABLE random_int_table(ts TIMESTAMP_LTZ(3), random_value INT);\",\n Properties = \n {\n { \"sql.current-catalog\", exampleConfluentEnvironment.DisplayName },\n { \"sql.current-database\", exampleConfluentKafkaCluster.DisplayName },\n },\n RestEndpoint = mainConfluentFlinkRegion.RestEndpoint,\n Credentials = new ConfluentCloud.Inputs.FlinkStatementCredentialsArgs\n {\n Key = env_admin_flink_api_key.Id,\n Secret = env_admin_flink_api_key.Secret,\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-confluentcloud/sdk/v2/go/confluentcloud\"\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 := confluentcloud.NewFlinkStatement(ctx, \"random_int_table\", \u0026confluentcloud.FlinkStatementArgs{\n\t\t\tOrganization: \u0026confluentcloud.FlinkStatementOrganizationArgs{\n\t\t\t\tId: pulumi.Any(main.Id),\n\t\t\t},\n\t\t\tEnvironment: \u0026confluentcloud.FlinkStatementEnvironmentArgs{\n\t\t\t\tId: pulumi.Any(staging.Id),\n\t\t\t},\n\t\t\tComputePool: \u0026confluentcloud.FlinkStatementComputePoolArgs{\n\t\t\t\tId: pulumi.Any(example.Id),\n\t\t\t},\n\t\t\tPrincipal: \u0026confluentcloud.FlinkStatementPrincipalArgs{\n\t\t\t\tId: pulumi.Any(app_manager_flink.Id),\n\t\t\t},\n\t\t\tStatement: pulumi.String(\"CREATE TABLE random_int_table(ts TIMESTAMP_LTZ(3), random_value INT);\"),\n\t\t\tProperties: pulumi.StringMap{\n\t\t\t\t\"sql.current-catalog\": pulumi.Any(exampleConfluentEnvironment.DisplayName),\n\t\t\t\t\"sql.current-database\": pulumi.Any(exampleConfluentKafkaCluster.DisplayName),\n\t\t\t},\n\t\t\tRestEndpoint: pulumi.Any(mainConfluentFlinkRegion.RestEndpoint),\n\t\t\tCredentials: \u0026confluentcloud.FlinkStatementCredentialsArgs{\n\t\t\t\tKey: pulumi.Any(env_admin_flink_api_key.Id),\n\t\t\t\tSecret: pulumi.Any(env_admin_flink_api_key.Secret),\n\t\t\t},\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.confluentcloud.FlinkStatement;\nimport com.pulumi.confluentcloud.FlinkStatementArgs;\nimport com.pulumi.confluentcloud.inputs.FlinkStatementOrganizationArgs;\nimport com.pulumi.confluentcloud.inputs.FlinkStatementEnvironmentArgs;\nimport com.pulumi.confluentcloud.inputs.FlinkStatementComputePoolArgs;\nimport com.pulumi.confluentcloud.inputs.FlinkStatementPrincipalArgs;\nimport com.pulumi.confluentcloud.inputs.FlinkStatementCredentialsArgs;\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 randomIntTable = new FlinkStatement(\"randomIntTable\", FlinkStatementArgs.builder()\n .organization(FlinkStatementOrganizationArgs.builder()\n .id(main.id())\n .build())\n .environment(FlinkStatementEnvironmentArgs.builder()\n .id(staging.id())\n .build())\n .computePool(FlinkStatementComputePoolArgs.builder()\n .id(example.id())\n .build())\n .principal(FlinkStatementPrincipalArgs.builder()\n .id(app_manager_flink.id())\n .build())\n .statement(\"CREATE TABLE random_int_table(ts TIMESTAMP_LTZ(3), random_value INT);\")\n .properties(Map.ofEntries(\n Map.entry(\"sql.current-catalog\", exampleConfluentEnvironment.displayName()),\n Map.entry(\"sql.current-database\", exampleConfluentKafkaCluster.displayName())\n ))\n .restEndpoint(mainConfluentFlinkRegion.restEndpoint())\n .credentials(FlinkStatementCredentialsArgs.builder()\n .key(env_admin_flink_api_key.id())\n .secret(env_admin_flink_api_key.secret())\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n randomIntTable:\n type: confluentcloud:FlinkStatement\n name: random_int_table\n properties:\n organization:\n id: ${main.id}\n environment:\n id: ${staging.id}\n computePool:\n id: ${example.id}\n principal:\n id: ${[\"app-manager-flink\"].id}\n statement: CREATE TABLE random_int_table(ts TIMESTAMP_LTZ(3), random_value INT);\n properties:\n sql.current-catalog: ${exampleConfluentEnvironment.displayName}\n sql.current-database: ${exampleConfluentKafkaCluster.displayName}\n restEndpoint: ${mainConfluentFlinkRegion.restEndpoint}\n credentials:\n key: ${[\"env-admin-flink-api-key\"].id}\n secret: ${[\"env-admin-flink-api-key\"].secret}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n### Option #2: Manage a single Flink Compute Pool in the same Pulumi Stack\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as confluentcloud from \"@pulumi/confluentcloud\";\n\nconst example = new confluentcloud.FlinkStatement(\"example\", {\n statement: \"CREATE TABLE random_int_table(ts TIMESTAMP_LTZ(3), random_value INT);\",\n properties: {\n \"sql.current-catalog\": confluentEnvironmentDisplayName,\n \"sql.current-database\": confluentKafkaClusterDisplayName,\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_confluentcloud as confluentcloud\n\nexample = confluentcloud.FlinkStatement(\"example\",\n statement=\"CREATE TABLE random_int_table(ts TIMESTAMP_LTZ(3), random_value INT);\",\n properties={\n \"sql.current-catalog\": confluent_environment_display_name,\n \"sql.current-database\": confluent_kafka_cluster_display_name,\n })\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing ConfluentCloud = Pulumi.ConfluentCloud;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new ConfluentCloud.FlinkStatement(\"example\", new()\n {\n Statement = \"CREATE TABLE random_int_table(ts TIMESTAMP_LTZ(3), random_value INT);\",\n Properties = \n {\n { \"sql.current-catalog\", confluentEnvironmentDisplayName },\n { \"sql.current-database\", confluentKafkaClusterDisplayName },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-confluentcloud/sdk/v2/go/confluentcloud\"\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 := confluentcloud.NewFlinkStatement(ctx, \"example\", \u0026confluentcloud.FlinkStatementArgs{\n\t\t\tStatement: pulumi.String(\"CREATE TABLE random_int_table(ts TIMESTAMP_LTZ(3), random_value INT);\"),\n\t\t\tProperties: pulumi.StringMap{\n\t\t\t\t\"sql.current-catalog\": pulumi.Any(confluentEnvironmentDisplayName),\n\t\t\t\t\"sql.current-database\": pulumi.Any(confluentKafkaClusterDisplayName),\n\t\t\t},\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.confluentcloud.FlinkStatement;\nimport com.pulumi.confluentcloud.FlinkStatementArgs;\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 example = new FlinkStatement(\"example\", FlinkStatementArgs.builder()\n .statement(\"CREATE TABLE random_int_table(ts TIMESTAMP_LTZ(3), random_value INT);\")\n .properties(Map.ofEntries(\n Map.entry(\"sql.current-catalog\", confluentEnvironmentDisplayName),\n Map.entry(\"sql.current-database\", confluentKafkaClusterDisplayName)\n ))\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: confluentcloud:FlinkStatement\n properties:\n statement: CREATE TABLE random_int_table(ts TIMESTAMP_LTZ(3), random_value INT);\n properties:\n sql.current-catalog: ${confluentEnvironmentDisplayName}\n sql.current-database: ${confluentKafkaClusterDisplayName}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\nExample of `confluentcloud.FlinkStatement` that creates a model:\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as confluentcloud from \"@pulumi/confluentcloud\";\n\nconst example = new confluentcloud.FlinkStatement(\"example\", {\n statement: \"CREATE MODEL `vector_encoding` INPUT (input STRING) OUTPUT (vector ARRAY\u003cFLOAT\u003e) WITH( 'TASK' = 'classification','PROVIDER' = 'OPENAI','OPENAI.ENDPOINT' = 'https://api.openai.com/v1/embeddings','OPENAI.API_KEY' = '{{sessionconfig/sql.secrets.openaikey}}');\",\n properties: {\n \"sql.current-catalog\": confluentEnvironmentDisplayName,\n \"sql.current-database\": confluentKafkaClusterDisplayName,\n },\n propertiesSensitive: {\n \"sql.secrets.openaikey\": \"***REDACTED***\",\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_confluentcloud as confluentcloud\n\nexample = confluentcloud.FlinkStatement(\"example\",\n statement=\"CREATE MODEL `vector_encoding` INPUT (input STRING) OUTPUT (vector ARRAY\u003cFLOAT\u003e) WITH( 'TASK' = 'classification','PROVIDER' = 'OPENAI','OPENAI.ENDPOINT' = 'https://api.openai.com/v1/embeddings','OPENAI.API_KEY' = '{{sessionconfig/sql.secrets.openaikey}}');\",\n properties={\n \"sql.current-catalog\": confluent_environment_display_name,\n \"sql.current-database\": confluent_kafka_cluster_display_name,\n },\n properties_sensitive={\n \"sql.secrets.openaikey\": \"***REDACTED***\",\n })\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing ConfluentCloud = Pulumi.ConfluentCloud;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new ConfluentCloud.FlinkStatement(\"example\", new()\n {\n Statement = \"CREATE MODEL `vector_encoding` INPUT (input STRING) OUTPUT (vector ARRAY\u003cFLOAT\u003e) WITH( 'TASK' = 'classification','PROVIDER' = 'OPENAI','OPENAI.ENDPOINT' = 'https://api.openai.com/v1/embeddings','OPENAI.API_KEY' = '{{sessionconfig/sql.secrets.openaikey}}');\",\n Properties = \n {\n { \"sql.current-catalog\", confluentEnvironmentDisplayName },\n { \"sql.current-database\", confluentKafkaClusterDisplayName },\n },\n PropertiesSensitive = \n {\n { \"sql.secrets.openaikey\", \"***REDACTED***\" },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-confluentcloud/sdk/v2/go/confluentcloud\"\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 := confluentcloud.NewFlinkStatement(ctx, \"example\", \u0026confluentcloud.FlinkStatementArgs{\n\t\t\tStatement: pulumi.String(\"CREATE MODEL `vector_encoding` INPUT (input STRING) OUTPUT (vector ARRAY\u003cFLOAT\u003e) WITH( 'TASK' = 'classification','PROVIDER' = 'OPENAI','OPENAI.ENDPOINT' = 'https://api.openai.com/v1/embeddings','OPENAI.API_KEY' = '{{sessionconfig/sql.secrets.openaikey}}');\"),\n\t\t\tProperties: pulumi.StringMap{\n\t\t\t\t\"sql.current-catalog\": pulumi.Any(confluentEnvironmentDisplayName),\n\t\t\t\t\"sql.current-database\": pulumi.Any(confluentKafkaClusterDisplayName),\n\t\t\t},\n\t\t\tPropertiesSensitive: pulumi.StringMap{\n\t\t\t\t\"sql.secrets.openaikey\": pulumi.String(\"***REDACTED***\"),\n\t\t\t},\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.confluentcloud.FlinkStatement;\nimport com.pulumi.confluentcloud.FlinkStatementArgs;\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 example = new FlinkStatement(\"example\", FlinkStatementArgs.builder()\n .statement(\"CREATE MODEL `vector_encoding` INPUT (input STRING) OUTPUT (vector ARRAY\u003cFLOAT\u003e) WITH( 'TASK' = 'classification','PROVIDER' = 'OPENAI','OPENAI.ENDPOINT' = 'https://api.openai.com/v1/embeddings','OPENAI.API_KEY' = '{{sessionconfig/sql.secrets.openaikey}}');\")\n .properties(Map.ofEntries(\n Map.entry(\"sql.current-catalog\", confluentEnvironmentDisplayName),\n Map.entry(\"sql.current-database\", confluentKafkaClusterDisplayName)\n ))\n .propertiesSensitive(Map.of(\"sql.secrets.openaikey\", \"***REDACTED***\"))\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: confluentcloud:FlinkStatement\n properties:\n statement: CREATE MODEL `vector_encoding` INPUT (input STRING) OUTPUT (vector ARRAY\u003cFLOAT\u003e) WITH( 'TASK' = 'classification','PROVIDER' = 'OPENAI','OPENAI.ENDPOINT' = 'https://api.openai.com/v1/embeddings','OPENAI.API_KEY' = '{{sessionconfig/sql.secrets.openaikey}}');\n properties:\n sql.current-catalog: ${confluentEnvironmentDisplayName}\n sql.current-database: ${confluentKafkaClusterDisplayName}\n propertiesSensitive:\n sql.secrets.openaikey: '***REDACTED***'\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n\n## Getting Started\n\nThe following end-to-end example might help to get started with [Flink Statements](https://docs.confluent.io/cloud/current/flink/get-started/overview.html):\n * flink-quickstart\n * flink-carry-over-offset-between-statements\n\n## Import\n\nYou can import a Flink statement by using the Flink Statement name, for example:\n\nOption #1: Manage multiple Flink Compute Pools in the same Pulumi Stack\n\n$ export IMPORT_CONFLUENT_ORGANIZATION_ID=\"\u003corganization_id\u003e\"\n\n$ export IMPORT_CONFLUENT_ENVIRONMENT_ID=\"\u003cenvironment_id\u003e\"\n\n$ export IMPORT_FLINK_COMPUTE_POOL_ID=\"\u003cflink_compute_pool_id\u003e\"\n\n$ export IMPORT_FLINK_API_KEY=\"\u003cflink_api_key\u003e\"\n\n$ export IMPORT_FLINK_API_SECRET=\"\u003cflink_api_secret\u003e\"\n\n$ export IMPORT_FLINK_REST_ENDPOINT=\"\u003cflink_rest_endpoint\u003e\"\n\n$ export IMPORT_FLINK_PRINCIPAL_ID=\"\u003cflink_rest_endpoint\u003e\"\n\n```sh\n$ pulumi import confluentcloud:index/flinkStatement:FlinkStatement example cfeab4fe-b62c-49bd-9e99-51cc98c77a67\n```\n\nOption #2: Manage a single Flink Compute Pool in the same Pulumi Stack\n\n```sh\n$ pulumi import confluentcloud:index/flinkStatement:FlinkStatement example cfeab4fe-b62c-49bd-9e99-51cc98c77a67\n```\n\n!\u003e **Warning:** Do not forget to delete terminal command history afterwards for security purposes.\n\n", "properties": { "computePool": { "$ref": "#/types/confluentcloud:index/FlinkStatementComputePool:FlinkStatementComputePool" @@ -7255,6 +7270,14 @@ }, "description": "The custom topic settings to set:\n" }, + "propertiesSensitive": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Block for sensitive statement properties:\n", + "secret": true + }, "restEndpoint": { "type": "string", "description": "The REST endpoint of the Flink region, for example, `https://flink.us-east-1.aws.confluent.cloud`).\n" @@ -7280,6 +7303,7 @@ "organization", "principal", "properties", + "propertiesSensitive", "statement", "statementName", "stopped" @@ -7309,6 +7333,14 @@ }, "description": "The custom topic settings to set:\n" }, + "propertiesSensitive": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Block for sensitive statement properties:\n", + "secret": true + }, "restEndpoint": { "type": "string", "description": "The REST endpoint of the Flink region, for example, `https://flink.us-east-1.aws.confluent.cloud`).\n", @@ -7369,6 +7401,14 @@ }, "description": "The custom topic settings to set:\n" }, + "propertiesSensitive": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Block for sensitive statement properties:\n", + "secret": true + }, "restEndpoint": { "type": "string", "description": "The REST endpoint of the Flink region, for example, `https://flink.us-east-1.aws.confluent.cloud`).\n", @@ -9924,7 +9964,6 @@ "required": [ "format", "metadata", - "ruleset", "schema", "schemaIdentifier", "subjectName", @@ -11888,6 +11927,11 @@ "inputs": { "description": "A collection of arguments for invoking getFlinkArtifact.\n", "properties": { + "class": { + "type": "string", + "description": "(Required String) Java class or alias for the Flink Artifact as provided by developer.\n", + "deprecationMessage": "The \"class\" attribute has been deprecated and will be removed in the next major version of the provider (3.0.0). Refer to the Upgrade Guide at https://registry.terraform.io/providers/confluentinc/confluent/latest/docs/guides/version-3-upgrade for more details. The guide will be published once version 3.0.0 is released." + }, "cloud": { "type": "string", "description": "The cloud service provider that hosts the region. Accepted values are: `AWS`, `AZURE`, and `GCP`.\n" @@ -11923,6 +11967,7 @@ "type": "string" }, "class": { + "deprecationMessage": "The \"class\" attribute has been deprecated and will be removed in the next major version of the provider (3.0.0). Refer to the Upgrade Guide at https://registry.terraform.io/providers/confluentinc/confluent/latest/docs/guides/version-3-upgrade for more details. The guide will be published once version 3.0.0 is released.", "description": "(Required String) Java class or alias for the Flink Artifact as provided by developer.\n", "type": "string" }, @@ -11940,6 +11985,9 @@ "displayName": { "type": "string" }, + "documentationLink": { + "type": "string" + }, "environment": { "$ref": "#/types/confluentcloud:index/getFlinkArtifactEnvironment:getFlinkArtifactEnvironment" }, @@ -11971,6 +12019,7 @@ "contentFormat", "description", "displayName", + "documentationLink", "environment", "id", "kind", @@ -13748,7 +13797,6 @@ "hardDelete", "metadata", "recreateOnUpdate", - "ruleset", "schema", "schemaIdentifier", "schemaReferences", diff --git a/provider/go.mod b/provider/go.mod index 2e5c0967..88a5c4b0 100644 --- a/provider/go.mod +++ b/provider/go.mod @@ -52,7 +52,7 @@ require ( github.com/confluentinc/ccloud-sdk-go-v2/byok v0.0.2 // indirect github.com/confluentinc/ccloud-sdk-go-v2/certificate-authority v0.0.0-20240921001517-750d06dd7c27 // indirect github.com/confluentinc/ccloud-sdk-go-v2/cmk v0.21.0 // indirect - github.com/confluentinc/ccloud-sdk-go-v2/connect v0.2.0 // indirect + github.com/confluentinc/ccloud-sdk-go-v2/connect v0.7.0 // indirect github.com/confluentinc/ccloud-sdk-go-v2/connect-custom-plugin v0.0.2 // indirect github.com/confluentinc/ccloud-sdk-go-v2/data-catalog v0.2.0 // indirect github.com/confluentinc/ccloud-sdk-go-v2/flink v0.9.0 // indirect diff --git a/provider/go.sum b/provider/go.sum index a8c55a79..4e8c0a7a 100644 --- a/provider/go.sum +++ b/provider/go.sum @@ -1522,8 +1522,8 @@ github.com/confluentinc/ccloud-sdk-go-v2/certificate-authority v0.0.0-2024092100 github.com/confluentinc/ccloud-sdk-go-v2/certificate-authority v0.0.0-20240921001517-750d06dd7c27/go.mod h1:xqB2YHUtcYF5cbwctSDzXoYw0YXaawj13d0lzcvphEA= github.com/confluentinc/ccloud-sdk-go-v2/cmk v0.21.0 h1:ioG3TsP8FwskPtwitfGfvBgTdprYKutHB0oxG5F4Dj8= github.com/confluentinc/ccloud-sdk-go-v2/cmk v0.21.0/go.mod h1:WndyhYUqeH7usVOfh+3g9CpVPqHWxIkJqopSISD0pGg= -github.com/confluentinc/ccloud-sdk-go-v2/connect v0.2.0 h1:rEb3sxzKCZvZCnEZ10WyGqkVIdlqxJGbmP85/4C4YdE= -github.com/confluentinc/ccloud-sdk-go-v2/connect v0.2.0/go.mod h1:lF4AfDtxoL0V7ZIMOULWiAycPwlfyt9UG659adRNdOM= +github.com/confluentinc/ccloud-sdk-go-v2/connect v0.7.0 h1:ISrVOX9qJ2Sxiu/fGBqqHeaA0SRJQujc8yP7qAZRL3Y= +github.com/confluentinc/ccloud-sdk-go-v2/connect v0.7.0/go.mod h1:zHG/3DzsnoHC81B1AY9K/8bMX3mxbIp5/nHHdypa//w= github.com/confluentinc/ccloud-sdk-go-v2/connect-custom-plugin v0.0.2 h1:NSiuOYjZOKxHTRGYI7X9wFvf57ZNzWpZaChmWv7/UQw= github.com/confluentinc/ccloud-sdk-go-v2/connect-custom-plugin v0.0.2/go.mod h1:AaF39Acy3LFnHSHExaUtqNmbs7kL5/AL54CXX61+Il8= github.com/confluentinc/ccloud-sdk-go-v2/data-catalog v0.2.0 h1:ySx0jYNGK0XLcSkgPz+hxcH05v1LI5GVb3Rg+TCqBqk= diff --git a/sdk/dotnet/FlinkArtifact.cs b/sdk/dotnet/FlinkArtifact.cs index d4815d1b..cb071a9e 100644 --- a/sdk/dotnet/FlinkArtifact.cs +++ b/sdk/dotnet/FlinkArtifact.cs @@ -27,10 +27,9 @@ namespace Pulumi.ConfluentCloud /// /// var main = new ConfluentCloud.FlinkArtifact("main", new() /// { - /// Class = "io.confluent.example.SumScalarFunction", - /// Region = "us-west-2", /// Cloud = "AWS", - /// DisplayName = "flink_sumscalar_artifact", + /// Region = "us-west-2", + /// DisplayName = "my_flink_sumscalar_artifact", /// ContentFormat = "JAR", /// Environment = new ConfluentCloud.Inputs.FlinkArtifactEnvironmentArgs /// { @@ -74,7 +73,7 @@ public partial class FlinkArtifact : global::Pulumi.CustomResource /// Java class or alias for the Flink Artifact as provided by developer. /// [Output("class")] - public Output Class { get; private set; } = null!; + public Output Class { get; private set; } = null!; /// /// The cloud service provider that runs the Flink Artifact. @@ -83,7 +82,7 @@ public partial class FlinkArtifact : global::Pulumi.CustomResource public Output Cloud { get; private set; } = null!; /// - /// (Optional String) Archive format of the Flink Artifact. + /// (Optional String) Archive format of the Flink Artifact. Accepted values are: `JAR`, `ZIP`. /// [Output("contentFormat")] public Output ContentFormat { get; private set; } = null!; @@ -95,11 +94,17 @@ public partial class FlinkArtifact : global::Pulumi.CustomResource public Output Description { get; private set; } = null!; /// - /// The display name of Flink Artifact. + /// The unique name of the Flink Artifact per cloud, region, environment scope. /// [Output("displayName")] public Output DisplayName { get; private set; } = null!; + /// + /// (Optional String) Documentation link of the Flink Artifact. + /// + [Output("documentationLink")] + public Output DocumentationLink { get; private set; } = null!; + /// /// Environment objects represent an isolated namespace for your Confluent resources for organizational purposes. /// @@ -119,7 +124,7 @@ public partial class FlinkArtifact : global::Pulumi.CustomResource public Output Region { get; private set; } = null!; /// - /// (Optional String) Runtime language of the Flink Artifact. The default runtime language is Java. + /// (Optional String) Runtime language of the Flink Artifact as `Python` or `Java`. Defaults to `Java`. /// [Output("runtimeLanguage")] public Output RuntimeLanguage { get; private set; } = null!; @@ -185,8 +190,8 @@ public sealed class FlinkArtifactArgs : global::Pulumi.ResourceArgs /// /// Java class or alias for the Flink Artifact as provided by developer. /// - [Input("class", required: true)] - public Input Class { get; set; } = null!; + [Input("class")] + public Input? Class { get; set; } /// /// The cloud service provider that runs the Flink Artifact. @@ -195,7 +200,7 @@ public sealed class FlinkArtifactArgs : global::Pulumi.ResourceArgs public Input Cloud { get; set; } = null!; /// - /// (Optional String) Archive format of the Flink Artifact. + /// (Optional String) Archive format of the Flink Artifact. Accepted values are: `JAR`, `ZIP`. /// [Input("contentFormat")] public Input? ContentFormat { get; set; } @@ -207,11 +212,17 @@ public sealed class FlinkArtifactArgs : global::Pulumi.ResourceArgs public Input? Description { get; set; } /// - /// The display name of Flink Artifact. + /// The unique name of the Flink Artifact per cloud, region, environment scope. /// [Input("displayName", required: true)] public Input DisplayName { get; set; } = null!; + /// + /// (Optional String) Documentation link of the Flink Artifact. + /// + [Input("documentationLink")] + public Input? DocumentationLink { get; set; } + /// /// Environment objects represent an isolated namespace for your Confluent resources for organizational purposes. /// @@ -225,7 +236,7 @@ public sealed class FlinkArtifactArgs : global::Pulumi.ResourceArgs public Input Region { get; set; } = null!; /// - /// (Optional String) Runtime language of the Flink Artifact. The default runtime language is Java. + /// (Optional String) Runtime language of the Flink Artifact as `Python` or `Java`. Defaults to `Java`. /// [Input("runtimeLanguage")] public Input? RuntimeLanguage { get; set; } @@ -263,7 +274,7 @@ public sealed class FlinkArtifactState : global::Pulumi.ResourceArgs public Input? Cloud { get; set; } /// - /// (Optional String) Archive format of the Flink Artifact. + /// (Optional String) Archive format of the Flink Artifact. Accepted values are: `JAR`, `ZIP`. /// [Input("contentFormat")] public Input? ContentFormat { get; set; } @@ -275,11 +286,17 @@ public sealed class FlinkArtifactState : global::Pulumi.ResourceArgs public Input? Description { get; set; } /// - /// The display name of Flink Artifact. + /// The unique name of the Flink Artifact per cloud, region, environment scope. /// [Input("displayName")] public Input? DisplayName { get; set; } + /// + /// (Optional String) Documentation link of the Flink Artifact. + /// + [Input("documentationLink")] + public Input? DocumentationLink { get; set; } + /// /// Environment objects represent an isolated namespace for your Confluent resources for organizational purposes. /// @@ -299,7 +316,7 @@ public sealed class FlinkArtifactState : global::Pulumi.ResourceArgs public Input? Region { get; set; } /// - /// (Optional String) Runtime language of the Flink Artifact. The default runtime language is Java. + /// (Optional String) Runtime language of the Flink Artifact as `Python` or `Java`. Defaults to `Java`. /// [Input("runtimeLanguage")] public Input? RuntimeLanguage { get; set; } diff --git a/sdk/dotnet/FlinkStatement.cs b/sdk/dotnet/FlinkStatement.cs index e65fd232..f3c9d0fc 100644 --- a/sdk/dotnet/FlinkStatement.cs +++ b/sdk/dotnet/FlinkStatement.cs @@ -80,6 +80,32 @@ namespace Pulumi.ConfluentCloud /// }); /// ``` /// + /// Example of `confluentcloud.FlinkStatement` that creates a model: + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using ConfluentCloud = Pulumi.ConfluentCloud; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var example = new ConfluentCloud.FlinkStatement("example", new() + /// { + /// Statement = "CREATE MODEL `vector_encoding` INPUT (input STRING) OUTPUT (vector ARRAY<FLOAT>) WITH( 'TASK' = 'classification','PROVIDER' = 'OPENAI','OPENAI.ENDPOINT' = 'https://api.openai.com/v1/embeddings','OPENAI.API_KEY' = '{{sessionconfig/sql.secrets.openaikey}}');", + /// Properties = + /// { + /// { "sql.current-catalog", confluentEnvironmentDisplayName }, + /// { "sql.current-database", confluentKafkaClusterDisplayName }, + /// }, + /// PropertiesSensitive = + /// { + /// { "sql.secrets.openaikey", "***REDACTED***" }, + /// }, + /// }); + /// + /// }); + /// ``` + /// /// ## Getting Started /// /// The following end-to-end example might help to get started with [Flink Statements](https://docs.confluent.io/cloud/current/flink/get-started/overview.html): @@ -163,6 +189,12 @@ public partial class FlinkStatement : global::Pulumi.CustomResource [Output("properties")] public Output> Properties { get; private set; } = null!; + /// + /// Block for sensitive statement properties: + /// + [Output("propertiesSensitive")] + public Output> PropertiesSensitive { get; private set; } = null!; + /// /// The REST endpoint of the Flink region, for example, `https://flink.us-east-1.aws.confluent.cloud`). /// @@ -213,6 +245,7 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? AdditionalSecretOutputs = { "credentials", + "propertiesSensitive", }, }; var merged = CustomResourceOptions.Merge(defaultOptions, options); @@ -277,6 +310,22 @@ public InputMap Properties set => _properties = value; } + [Input("propertiesSensitive")] + private InputMap? _propertiesSensitive; + + /// + /// Block for sensitive statement properties: + /// + public InputMap PropertiesSensitive + { + get => _propertiesSensitive ?? (_propertiesSensitive = new InputMap()); + set + { + var emptySecret = Output.CreateSecret(ImmutableDictionary.Create()); + _propertiesSensitive = Output.All(value, emptySecret).Apply(v => v[0]); + } + } + /// /// The REST endpoint of the Flink region, for example, `https://flink.us-east-1.aws.confluent.cloud`). /// @@ -373,6 +422,22 @@ public InputMap Properties set => _properties = value; } + [Input("propertiesSensitive")] + private InputMap? _propertiesSensitive; + + /// + /// Block for sensitive statement properties: + /// + public InputMap PropertiesSensitive + { + get => _propertiesSensitive ?? (_propertiesSensitive = new InputMap()); + set + { + var emptySecret = Output.CreateSecret(ImmutableDictionary.Create()); + _propertiesSensitive = Output.All(value, emptySecret).Apply(v => v[0]); + } + } + /// /// The REST endpoint of the Flink region, for example, `https://flink.us-east-1.aws.confluent.cloud`). /// diff --git a/sdk/dotnet/GetFlinkArtifact.cs b/sdk/dotnet/GetFlinkArtifact.cs index a13ff7cd..476d03ab 100644 --- a/sdk/dotnet/GetFlinkArtifact.cs +++ b/sdk/dotnet/GetFlinkArtifact.cs @@ -147,6 +147,12 @@ public static Output Invoke(GetFlinkArtifactInvokeArgs a public sealed class GetFlinkArtifactArgs : global::Pulumi.InvokeArgs { + /// + /// (Required String) Java class or alias for the Flink Artifact as provided by developer. + /// + [Input("class")] + public string? Class { get; set; } + /// /// The cloud service provider that hosts the region. Accepted values are: `AWS`, `AZURE`, and `GCP`. /// @@ -184,6 +190,12 @@ public GetFlinkArtifactArgs() public sealed class GetFlinkArtifactInvokeArgs : global::Pulumi.InvokeArgs { + /// + /// (Required String) Java class or alias for the Flink Artifact as provided by developer. + /// + [Input("class")] + public Input? Class { get; set; } + /// /// The cloud service provider that hosts the region. Accepted values are: `AWS`, `AZURE`, and `GCP`. /// @@ -241,6 +253,7 @@ public sealed class GetFlinkArtifactResult /// public readonly string Description; public readonly string DisplayName; + public readonly string DocumentationLink; public readonly Outputs.GetFlinkArtifactEnvironmentResult Environment; public readonly string Id; /// @@ -268,6 +281,8 @@ private GetFlinkArtifactResult( string displayName, + string documentationLink, + Outputs.GetFlinkArtifactEnvironmentResult environment, string id, @@ -286,6 +301,7 @@ private GetFlinkArtifactResult( ContentFormat = contentFormat; Description = description; DisplayName = displayName; + DocumentationLink = documentationLink; Environment = environment; Id = id; Kind = kind; diff --git a/sdk/dotnet/GetSchema.cs b/sdk/dotnet/GetSchema.cs index 10ebb836..1ed2d0b0 100644 --- a/sdk/dotnet/GetSchema.cs +++ b/sdk/dotnet/GetSchema.cs @@ -340,7 +340,7 @@ public sealed class GetSchemaResult /// /// (Optional Block) The list of schema rules. See [Data Contracts for Schema Registry](https://docs.confluent.io/platform/7.5/schema-registry/fundamentals/data-contracts.html#rules) for more details. For example, these rules can enforce that a field that contains sensitive information must be encrypted, or that a message containing an invalid age must be sent to a dead letter queue. /// - public readonly Outputs.GetSchemaRulesetResult Ruleset; + public readonly Outputs.GetSchemaRulesetResult? Ruleset; /// /// (Required String) The schema string, for example, `file("./schema_version_1.avsc")`. /// @@ -377,7 +377,7 @@ private GetSchemaResult( string? restEndpoint, - Outputs.GetSchemaRulesetResult ruleset, + Outputs.GetSchemaRulesetResult? ruleset, string schema, diff --git a/sdk/dotnet/Schema.cs b/sdk/dotnet/Schema.cs index 272bd4b4..78308d5d 100644 --- a/sdk/dotnet/Schema.cs +++ b/sdk/dotnet/Schema.cs @@ -85,7 +85,7 @@ public partial class Schema : global::Pulumi.CustomResource /// The list of schema rules. See [Data Contracts for Schema Registry](https://docs.confluent.io/platform/7.5/schema-registry/fundamentals/data-contracts.html#rules) for more details. For example, these rules can enforce that a field that contains sensitive information must be encrypted, or that a message containing an invalid age must be sent to a dead letter queue. /// [Output("ruleset")] - public Output Ruleset { get; private set; } = null!; + public Output Ruleset { get; private set; } = null!; /// /// The schema string, for example, `file("./schema_version_1.avsc")`. diff --git a/sdk/go/confluentcloud/flinkArtifact.go b/sdk/go/confluentcloud/flinkArtifact.go index 58de3f15..5a178ddc 100644 --- a/sdk/go/confluentcloud/flinkArtifact.go +++ b/sdk/go/confluentcloud/flinkArtifact.go @@ -33,10 +33,9 @@ import ( // return err // } // _, err = confluentcloud.NewFlinkArtifact(ctx, "main", &confluentcloud.FlinkArtifactArgs{ -// Class: pulumi.String("io.confluent.example.SumScalarFunction"), -// Region: pulumi.String("us-west-2"), // Cloud: pulumi.String("AWS"), -// DisplayName: pulumi.String("flink_sumscalar_artifact"), +// Region: pulumi.String("us-west-2"), +// DisplayName: pulumi.String("my_flink_sumscalar_artifact"), // ContentFormat: pulumi.String("JAR"), // Environment: &confluentcloud.FlinkArtifactEnvironmentArgs{ // Id: development.ID(), @@ -72,22 +71,26 @@ type FlinkArtifact struct { // The artifact file for Flink Artifact. ArtifactFile pulumi.StringPtrOutput `pulumi:"artifactFile"` // Java class or alias for the Flink Artifact as provided by developer. - Class pulumi.StringOutput `pulumi:"class"` + // + // Deprecated: The "class" attribute has been deprecated and will be removed in the next major version of the provider (3.0.0). Refer to the Upgrade Guide at https://registry.terraform.io/providers/confluentinc/confluent/latest/docs/guides/version-3-upgrade for more details. The guide will be published once version 3.0.0 is released. + Class pulumi.StringPtrOutput `pulumi:"class"` // The cloud service provider that runs the Flink Artifact. Cloud pulumi.StringOutput `pulumi:"cloud"` - // (Optional String) Archive format of the Flink Artifact. + // (Optional String) Archive format of the Flink Artifact. Accepted values are: `JAR`, `ZIP`. ContentFormat pulumi.StringOutput `pulumi:"contentFormat"` // (Optional String) Description of the Flink Artifact. Description pulumi.StringPtrOutput `pulumi:"description"` - // The display name of Flink Artifact. + // The unique name of the Flink Artifact per cloud, region, environment scope. DisplayName pulumi.StringOutput `pulumi:"displayName"` + // (Optional String) Documentation link of the Flink Artifact. + DocumentationLink pulumi.StringPtrOutput `pulumi:"documentationLink"` // Environment objects represent an isolated namespace for your Confluent resources for organizational purposes. Environment FlinkArtifactEnvironmentOutput `pulumi:"environment"` // (Required String) The kind of the Flink Artifact Pool, for example, `FlinkArtifact`. Kind pulumi.StringOutput `pulumi:"kind"` // The cloud service provider region that hosts the Flink Artifact. Region pulumi.StringOutput `pulumi:"region"` - // (Optional String) Runtime language of the Flink Artifact. The default runtime language is Java. + // (Optional String) Runtime language of the Flink Artifact as `Python` or `Java`. Defaults to `Java`. RuntimeLanguage pulumi.StringPtrOutput `pulumi:"runtimeLanguage"` // List of versions for this Flink Artifact. Versions FlinkArtifactVersionArrayOutput `pulumi:"versions"` @@ -100,9 +103,6 @@ func NewFlinkArtifact(ctx *pulumi.Context, return nil, errors.New("missing one or more required arguments") } - if args.Class == nil { - return nil, errors.New("invalid value for required argument 'Class'") - } if args.Cloud == nil { return nil, errors.New("invalid value for required argument 'Cloud'") } @@ -143,22 +143,26 @@ type flinkArtifactState struct { // The artifact file for Flink Artifact. ArtifactFile *string `pulumi:"artifactFile"` // Java class or alias for the Flink Artifact as provided by developer. + // + // Deprecated: The "class" attribute has been deprecated and will be removed in the next major version of the provider (3.0.0). Refer to the Upgrade Guide at https://registry.terraform.io/providers/confluentinc/confluent/latest/docs/guides/version-3-upgrade for more details. The guide will be published once version 3.0.0 is released. Class *string `pulumi:"class"` // The cloud service provider that runs the Flink Artifact. Cloud *string `pulumi:"cloud"` - // (Optional String) Archive format of the Flink Artifact. + // (Optional String) Archive format of the Flink Artifact. Accepted values are: `JAR`, `ZIP`. ContentFormat *string `pulumi:"contentFormat"` // (Optional String) Description of the Flink Artifact. Description *string `pulumi:"description"` - // The display name of Flink Artifact. + // The unique name of the Flink Artifact per cloud, region, environment scope. DisplayName *string `pulumi:"displayName"` + // (Optional String) Documentation link of the Flink Artifact. + DocumentationLink *string `pulumi:"documentationLink"` // Environment objects represent an isolated namespace for your Confluent resources for organizational purposes. Environment *FlinkArtifactEnvironment `pulumi:"environment"` // (Required String) The kind of the Flink Artifact Pool, for example, `FlinkArtifact`. Kind *string `pulumi:"kind"` // The cloud service provider region that hosts the Flink Artifact. Region *string `pulumi:"region"` - // (Optional String) Runtime language of the Flink Artifact. The default runtime language is Java. + // (Optional String) Runtime language of the Flink Artifact as `Python` or `Java`. Defaults to `Java`. RuntimeLanguage *string `pulumi:"runtimeLanguage"` // List of versions for this Flink Artifact. Versions []FlinkArtifactVersion `pulumi:"versions"` @@ -170,22 +174,26 @@ type FlinkArtifactState struct { // The artifact file for Flink Artifact. ArtifactFile pulumi.StringPtrInput // Java class or alias for the Flink Artifact as provided by developer. + // + // Deprecated: The "class" attribute has been deprecated and will be removed in the next major version of the provider (3.0.0). Refer to the Upgrade Guide at https://registry.terraform.io/providers/confluentinc/confluent/latest/docs/guides/version-3-upgrade for more details. The guide will be published once version 3.0.0 is released. Class pulumi.StringPtrInput // The cloud service provider that runs the Flink Artifact. Cloud pulumi.StringPtrInput - // (Optional String) Archive format of the Flink Artifact. + // (Optional String) Archive format of the Flink Artifact. Accepted values are: `JAR`, `ZIP`. ContentFormat pulumi.StringPtrInput // (Optional String) Description of the Flink Artifact. Description pulumi.StringPtrInput - // The display name of Flink Artifact. + // The unique name of the Flink Artifact per cloud, region, environment scope. DisplayName pulumi.StringPtrInput + // (Optional String) Documentation link of the Flink Artifact. + DocumentationLink pulumi.StringPtrInput // Environment objects represent an isolated namespace for your Confluent resources for organizational purposes. Environment FlinkArtifactEnvironmentPtrInput // (Required String) The kind of the Flink Artifact Pool, for example, `FlinkArtifact`. Kind pulumi.StringPtrInput // The cloud service provider region that hosts the Flink Artifact. Region pulumi.StringPtrInput - // (Optional String) Runtime language of the Flink Artifact. The default runtime language is Java. + // (Optional String) Runtime language of the Flink Artifact as `Python` or `Java`. Defaults to `Java`. RuntimeLanguage pulumi.StringPtrInput // List of versions for this Flink Artifact. Versions FlinkArtifactVersionArrayInput @@ -199,20 +207,24 @@ type flinkArtifactArgs struct { // The artifact file for Flink Artifact. ArtifactFile *string `pulumi:"artifactFile"` // Java class or alias for the Flink Artifact as provided by developer. - Class string `pulumi:"class"` + // + // Deprecated: The "class" attribute has been deprecated and will be removed in the next major version of the provider (3.0.0). Refer to the Upgrade Guide at https://registry.terraform.io/providers/confluentinc/confluent/latest/docs/guides/version-3-upgrade for more details. The guide will be published once version 3.0.0 is released. + Class *string `pulumi:"class"` // The cloud service provider that runs the Flink Artifact. Cloud string `pulumi:"cloud"` - // (Optional String) Archive format of the Flink Artifact. + // (Optional String) Archive format of the Flink Artifact. Accepted values are: `JAR`, `ZIP`. ContentFormat *string `pulumi:"contentFormat"` // (Optional String) Description of the Flink Artifact. Description *string `pulumi:"description"` - // The display name of Flink Artifact. + // The unique name of the Flink Artifact per cloud, region, environment scope. DisplayName string `pulumi:"displayName"` + // (Optional String) Documentation link of the Flink Artifact. + DocumentationLink *string `pulumi:"documentationLink"` // Environment objects represent an isolated namespace for your Confluent resources for organizational purposes. Environment FlinkArtifactEnvironment `pulumi:"environment"` // The cloud service provider region that hosts the Flink Artifact. Region string `pulumi:"region"` - // (Optional String) Runtime language of the Flink Artifact. The default runtime language is Java. + // (Optional String) Runtime language of the Flink Artifact as `Python` or `Java`. Defaults to `Java`. RuntimeLanguage *string `pulumi:"runtimeLanguage"` } @@ -221,20 +233,24 @@ type FlinkArtifactArgs struct { // The artifact file for Flink Artifact. ArtifactFile pulumi.StringPtrInput // Java class or alias for the Flink Artifact as provided by developer. - Class pulumi.StringInput + // + // Deprecated: The "class" attribute has been deprecated and will be removed in the next major version of the provider (3.0.0). Refer to the Upgrade Guide at https://registry.terraform.io/providers/confluentinc/confluent/latest/docs/guides/version-3-upgrade for more details. The guide will be published once version 3.0.0 is released. + Class pulumi.StringPtrInput // The cloud service provider that runs the Flink Artifact. Cloud pulumi.StringInput - // (Optional String) Archive format of the Flink Artifact. + // (Optional String) Archive format of the Flink Artifact. Accepted values are: `JAR`, `ZIP`. ContentFormat pulumi.StringPtrInput // (Optional String) Description of the Flink Artifact. Description pulumi.StringPtrInput - // The display name of Flink Artifact. + // The unique name of the Flink Artifact per cloud, region, environment scope. DisplayName pulumi.StringInput + // (Optional String) Documentation link of the Flink Artifact. + DocumentationLink pulumi.StringPtrInput // Environment objects represent an isolated namespace for your Confluent resources for organizational purposes. Environment FlinkArtifactEnvironmentInput // The cloud service provider region that hosts the Flink Artifact. Region pulumi.StringInput - // (Optional String) Runtime language of the Flink Artifact. The default runtime language is Java. + // (Optional String) Runtime language of the Flink Artifact as `Python` or `Java`. Defaults to `Java`. RuntimeLanguage pulumi.StringPtrInput } @@ -336,8 +352,10 @@ func (o FlinkArtifactOutput) ArtifactFile() pulumi.StringPtrOutput { } // Java class or alias for the Flink Artifact as provided by developer. -func (o FlinkArtifactOutput) Class() pulumi.StringOutput { - return o.ApplyT(func(v *FlinkArtifact) pulumi.StringOutput { return v.Class }).(pulumi.StringOutput) +// +// Deprecated: The "class" attribute has been deprecated and will be removed in the next major version of the provider (3.0.0). Refer to the Upgrade Guide at https://registry.terraform.io/providers/confluentinc/confluent/latest/docs/guides/version-3-upgrade for more details. The guide will be published once version 3.0.0 is released. +func (o FlinkArtifactOutput) Class() pulumi.StringPtrOutput { + return o.ApplyT(func(v *FlinkArtifact) pulumi.StringPtrOutput { return v.Class }).(pulumi.StringPtrOutput) } // The cloud service provider that runs the Flink Artifact. @@ -345,7 +363,7 @@ func (o FlinkArtifactOutput) Cloud() pulumi.StringOutput { return o.ApplyT(func(v *FlinkArtifact) pulumi.StringOutput { return v.Cloud }).(pulumi.StringOutput) } -// (Optional String) Archive format of the Flink Artifact. +// (Optional String) Archive format of the Flink Artifact. Accepted values are: `JAR`, `ZIP`. func (o FlinkArtifactOutput) ContentFormat() pulumi.StringOutput { return o.ApplyT(func(v *FlinkArtifact) pulumi.StringOutput { return v.ContentFormat }).(pulumi.StringOutput) } @@ -355,11 +373,16 @@ func (o FlinkArtifactOutput) Description() pulumi.StringPtrOutput { return o.ApplyT(func(v *FlinkArtifact) pulumi.StringPtrOutput { return v.Description }).(pulumi.StringPtrOutput) } -// The display name of Flink Artifact. +// The unique name of the Flink Artifact per cloud, region, environment scope. func (o FlinkArtifactOutput) DisplayName() pulumi.StringOutput { return o.ApplyT(func(v *FlinkArtifact) pulumi.StringOutput { return v.DisplayName }).(pulumi.StringOutput) } +// (Optional String) Documentation link of the Flink Artifact. +func (o FlinkArtifactOutput) DocumentationLink() pulumi.StringPtrOutput { + return o.ApplyT(func(v *FlinkArtifact) pulumi.StringPtrOutput { return v.DocumentationLink }).(pulumi.StringPtrOutput) +} + // Environment objects represent an isolated namespace for your Confluent resources for organizational purposes. func (o FlinkArtifactOutput) Environment() FlinkArtifactEnvironmentOutput { return o.ApplyT(func(v *FlinkArtifact) FlinkArtifactEnvironmentOutput { return v.Environment }).(FlinkArtifactEnvironmentOutput) @@ -375,7 +398,7 @@ func (o FlinkArtifactOutput) Region() pulumi.StringOutput { return o.ApplyT(func(v *FlinkArtifact) pulumi.StringOutput { return v.Region }).(pulumi.StringOutput) } -// (Optional String) Runtime language of the Flink Artifact. The default runtime language is Java. +// (Optional String) Runtime language of the Flink Artifact as `Python` or `Java`. Defaults to `Java`. func (o FlinkArtifactOutput) RuntimeLanguage() pulumi.StringPtrOutput { return o.ApplyT(func(v *FlinkArtifact) pulumi.StringPtrOutput { return v.RuntimeLanguage }).(pulumi.StringPtrOutput) } diff --git a/sdk/go/confluentcloud/flinkStatement.go b/sdk/go/confluentcloud/flinkStatement.go index 0625ce83..b01f60eb 100644 --- a/sdk/go/confluentcloud/flinkStatement.go +++ b/sdk/go/confluentcloud/flinkStatement.go @@ -91,6 +91,38 @@ import ( // // ``` // +// Example of `FlinkStatement` that creates a model: +// ```go +// package main +// +// import ( +// +// "github.com/pulumi/pulumi-confluentcloud/sdk/v2/go/confluentcloud" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// _, err := confluentcloud.NewFlinkStatement(ctx, "example", &confluentcloud.FlinkStatementArgs{ +// Statement: pulumi.String("CREATE MODEL `vector_encoding` INPUT (input STRING) OUTPUT (vector ARRAY) WITH( 'TASK' = 'classification','PROVIDER' = 'OPENAI','OPENAI.ENDPOINT' = 'https://api.openai.com/v1/embeddings','OPENAI.API_KEY' = '{{sessionconfig/sql.secrets.openaikey}}');"), +// Properties: pulumi.StringMap{ +// "sql.current-catalog": pulumi.Any(confluentEnvironmentDisplayName), +// "sql.current-database": pulumi.Any(confluentKafkaClusterDisplayName), +// }, +// PropertiesSensitive: pulumi.StringMap{ +// "sql.secrets.openaikey": pulumi.String("***REDACTED***"), +// }, +// }) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// +// ``` +// // ## Getting Started // // The following end-to-end example might help to get started with [Flink Statements](https://docs.confluent.io/cloud/current/flink/get-started/overview.html): @@ -143,6 +175,8 @@ type FlinkStatement struct { Principal FlinkStatementPrincipalOutput `pulumi:"principal"` // The custom topic settings to set: Properties pulumi.StringMapOutput `pulumi:"properties"` + // Block for sensitive statement properties: + PropertiesSensitive pulumi.StringMapOutput `pulumi:"propertiesSensitive"` // The REST endpoint of the Flink region, for example, `https://flink.us-east-1.aws.confluent.cloud`). RestEndpoint pulumi.StringPtrOutput `pulumi:"restEndpoint"` // The raw SQL text statement, for example, `SELECT CURRENT_TIMESTAMP;`. @@ -166,8 +200,12 @@ func NewFlinkStatement(ctx *pulumi.Context, if args.Credentials != nil { args.Credentials = pulumi.ToSecret(args.Credentials).(FlinkStatementCredentialsPtrInput) } + if args.PropertiesSensitive != nil { + args.PropertiesSensitive = pulumi.ToSecret(args.PropertiesSensitive).(pulumi.StringMapInput) + } secrets := pulumi.AdditionalSecretOutputs([]string{ "credentials", + "propertiesSensitive", }) opts = append(opts, secrets) opts = internal.PkgResourceDefaultOpts(opts) @@ -205,6 +243,8 @@ type flinkStatementState struct { Principal *FlinkStatementPrincipal `pulumi:"principal"` // The custom topic settings to set: Properties map[string]string `pulumi:"properties"` + // Block for sensitive statement properties: + PropertiesSensitive map[string]string `pulumi:"propertiesSensitive"` // The REST endpoint of the Flink region, for example, `https://flink.us-east-1.aws.confluent.cloud`). RestEndpoint *string `pulumi:"restEndpoint"` // The raw SQL text statement, for example, `SELECT CURRENT_TIMESTAMP;`. @@ -228,6 +268,8 @@ type FlinkStatementState struct { Principal FlinkStatementPrincipalPtrInput // The custom topic settings to set: Properties pulumi.StringMapInput + // Block for sensitive statement properties: + PropertiesSensitive pulumi.StringMapInput // The REST endpoint of the Flink region, for example, `https://flink.us-east-1.aws.confluent.cloud`). RestEndpoint pulumi.StringPtrInput // The raw SQL text statement, for example, `SELECT CURRENT_TIMESTAMP;`. @@ -251,6 +293,8 @@ type flinkStatementArgs struct { Principal *FlinkStatementPrincipal `pulumi:"principal"` // The custom topic settings to set: Properties map[string]string `pulumi:"properties"` + // Block for sensitive statement properties: + PropertiesSensitive map[string]string `pulumi:"propertiesSensitive"` // The REST endpoint of the Flink region, for example, `https://flink.us-east-1.aws.confluent.cloud`). RestEndpoint *string `pulumi:"restEndpoint"` // The raw SQL text statement, for example, `SELECT CURRENT_TIMESTAMP;`. @@ -271,6 +315,8 @@ type FlinkStatementArgs struct { Principal FlinkStatementPrincipalPtrInput // The custom topic settings to set: Properties pulumi.StringMapInput + // Block for sensitive statement properties: + PropertiesSensitive pulumi.StringMapInput // The REST endpoint of the Flink region, for example, `https://flink.us-east-1.aws.confluent.cloud`). RestEndpoint pulumi.StringPtrInput // The raw SQL text statement, for example, `SELECT CURRENT_TIMESTAMP;`. @@ -404,6 +450,11 @@ func (o FlinkStatementOutput) Properties() pulumi.StringMapOutput { return o.ApplyT(func(v *FlinkStatement) pulumi.StringMapOutput { return v.Properties }).(pulumi.StringMapOutput) } +// Block for sensitive statement properties: +func (o FlinkStatementOutput) PropertiesSensitive() pulumi.StringMapOutput { + return o.ApplyT(func(v *FlinkStatement) pulumi.StringMapOutput { return v.PropertiesSensitive }).(pulumi.StringMapOutput) +} + // The REST endpoint of the Flink region, for example, `https://flink.us-east-1.aws.confluent.cloud`). func (o FlinkStatementOutput) RestEndpoint() pulumi.StringPtrOutput { return o.ApplyT(func(v *FlinkStatement) pulumi.StringPtrOutput { return v.RestEndpoint }).(pulumi.StringPtrOutput) diff --git a/sdk/go/confluentcloud/getFlinkArtifact.go b/sdk/go/confluentcloud/getFlinkArtifact.go index cf2ec67f..0299aae3 100644 --- a/sdk/go/confluentcloud/getFlinkArtifact.go +++ b/sdk/go/confluentcloud/getFlinkArtifact.go @@ -66,6 +66,10 @@ func LookupFlinkArtifact(ctx *pulumi.Context, args *LookupFlinkArtifactArgs, opt // A collection of arguments for invoking getFlinkArtifact. type LookupFlinkArtifactArgs struct { + // (Required String) Java class or alias for the Flink Artifact as provided by developer. + // + // Deprecated: The "class" attribute has been deprecated and will be removed in the next major version of the provider (3.0.0). Refer to the Upgrade Guide at https://registry.terraform.io/providers/confluentinc/confluent/latest/docs/guides/version-3-upgrade for more details. The guide will be published once version 3.0.0 is released. + Class *string `pulumi:"class"` // The cloud service provider that hosts the region. Accepted values are: `AWS`, `AZURE`, and `GCP`. Cloud string `pulumi:"cloud"` // A human-readable name for the Flink Artifact. @@ -84,15 +88,18 @@ type LookupFlinkArtifactResult struct { // (Required String) The API Version of the schema version of the Flink Artifact, for example, `fa/v2`. ApiVersion string `pulumi:"apiVersion"` // (Required String) Java class or alias for the Flink Artifact as provided by developer. + // + // Deprecated: The "class" attribute has been deprecated and will be removed in the next major version of the provider (3.0.0). Refer to the Upgrade Guide at https://registry.terraform.io/providers/confluentinc/confluent/latest/docs/guides/version-3-upgrade for more details. The guide will be published once version 3.0.0 is released. Class string `pulumi:"class"` Cloud string `pulumi:"cloud"` // (Required String) Archive format of the Flink Artifact. ContentFormat string `pulumi:"contentFormat"` // (Required String) Description of the Flink Artifact. - Description string `pulumi:"description"` - DisplayName string `pulumi:"displayName"` - Environment GetFlinkArtifactEnvironment `pulumi:"environment"` - Id string `pulumi:"id"` + Description string `pulumi:"description"` + DisplayName string `pulumi:"displayName"` + DocumentationLink string `pulumi:"documentationLink"` + Environment GetFlinkArtifactEnvironment `pulumi:"environment"` + Id string `pulumi:"id"` // (Required String) The kind of the Flink Artifact, for example, `FlinkArtifact`. Kind string `pulumi:"kind"` Region string `pulumi:"region"` @@ -112,6 +119,10 @@ func LookupFlinkArtifactOutput(ctx *pulumi.Context, args LookupFlinkArtifactOutp // A collection of arguments for invoking getFlinkArtifact. type LookupFlinkArtifactOutputArgs struct { + // (Required String) Java class or alias for the Flink Artifact as provided by developer. + // + // Deprecated: The "class" attribute has been deprecated and will be removed in the next major version of the provider (3.0.0). Refer to the Upgrade Guide at https://registry.terraform.io/providers/confluentinc/confluent/latest/docs/guides/version-3-upgrade for more details. The guide will be published once version 3.0.0 is released. + Class pulumi.StringPtrInput `pulumi:"class"` // The cloud service provider that hosts the region. Accepted values are: `AWS`, `AZURE`, and `GCP`. Cloud pulumi.StringInput `pulumi:"cloud"` // A human-readable name for the Flink Artifact. @@ -150,6 +161,8 @@ func (o LookupFlinkArtifactResultOutput) ApiVersion() pulumi.StringOutput { } // (Required String) Java class or alias for the Flink Artifact as provided by developer. +// +// Deprecated: The "class" attribute has been deprecated and will be removed in the next major version of the provider (3.0.0). Refer to the Upgrade Guide at https://registry.terraform.io/providers/confluentinc/confluent/latest/docs/guides/version-3-upgrade for more details. The guide will be published once version 3.0.0 is released. func (o LookupFlinkArtifactResultOutput) Class() pulumi.StringOutput { return o.ApplyT(func(v LookupFlinkArtifactResult) string { return v.Class }).(pulumi.StringOutput) } @@ -172,6 +185,10 @@ func (o LookupFlinkArtifactResultOutput) DisplayName() pulumi.StringOutput { return o.ApplyT(func(v LookupFlinkArtifactResult) string { return v.DisplayName }).(pulumi.StringOutput) } +func (o LookupFlinkArtifactResultOutput) DocumentationLink() pulumi.StringOutput { + return o.ApplyT(func(v LookupFlinkArtifactResult) string { return v.DocumentationLink }).(pulumi.StringOutput) +} + func (o LookupFlinkArtifactResultOutput) Environment() GetFlinkArtifactEnvironmentOutput { return o.ApplyT(func(v LookupFlinkArtifactResult) GetFlinkArtifactEnvironment { return v.Environment }).(GetFlinkArtifactEnvironmentOutput) } diff --git a/sdk/go/confluentcloud/getSchema.go b/sdk/go/confluentcloud/getSchema.go index 8b90399f..17948a2c 100644 --- a/sdk/go/confluentcloud/getSchema.go +++ b/sdk/go/confluentcloud/getSchema.go @@ -121,7 +121,7 @@ type LookupSchemaResult struct { RecreateOnUpdate bool `pulumi:"recreateOnUpdate"` RestEndpoint *string `pulumi:"restEndpoint"` // (Optional Block) The list of schema rules. See [Data Contracts for Schema Registry](https://docs.confluent.io/platform/7.5/schema-registry/fundamentals/data-contracts.html#rules) for more details. For example, these rules can enforce that a field that contains sensitive information must be encrypted, or that a message containing an invalid age must be sent to a dead letter queue. - Ruleset GetSchemaRuleset `pulumi:"ruleset"` + Ruleset *GetSchemaRuleset `pulumi:"ruleset"` // (Required String) The schema string, for example, `file("./schema_version_1.avsc")`. Schema string `pulumi:"schema"` SchemaIdentifier int `pulumi:"schemaIdentifier"` @@ -213,8 +213,8 @@ func (o LookupSchemaResultOutput) RestEndpoint() pulumi.StringPtrOutput { } // (Optional Block) The list of schema rules. See [Data Contracts for Schema Registry](https://docs.confluent.io/platform/7.5/schema-registry/fundamentals/data-contracts.html#rules) for more details. For example, these rules can enforce that a field that contains sensitive information must be encrypted, or that a message containing an invalid age must be sent to a dead letter queue. -func (o LookupSchemaResultOutput) Ruleset() GetSchemaRulesetOutput { - return o.ApplyT(func(v LookupSchemaResult) GetSchemaRuleset { return v.Ruleset }).(GetSchemaRulesetOutput) +func (o LookupSchemaResultOutput) Ruleset() GetSchemaRulesetPtrOutput { + return o.ApplyT(func(v LookupSchemaResult) *GetSchemaRuleset { return v.Ruleset }).(GetSchemaRulesetPtrOutput) } // (Required String) The schema string, for example, `file("./schema_version_1.avsc")`. diff --git a/sdk/go/confluentcloud/schema.go b/sdk/go/confluentcloud/schema.go index 11d2b8c9..61b86326 100644 --- a/sdk/go/confluentcloud/schema.go +++ b/sdk/go/confluentcloud/schema.go @@ -59,7 +59,7 @@ type Schema struct { // The REST endpoint of the Schema Registry cluster, for example, `https://psrc-00000.us-central1.gcp.confluent.cloud:443`). RestEndpoint pulumi.StringPtrOutput `pulumi:"restEndpoint"` // The list of schema rules. See [Data Contracts for Schema Registry](https://docs.confluent.io/platform/7.5/schema-registry/fundamentals/data-contracts.html#rules) for more details. For example, these rules can enforce that a field that contains sensitive information must be encrypted, or that a message containing an invalid age must be sent to a dead letter queue. - Ruleset SchemaRulesetOutput `pulumi:"ruleset"` + Ruleset SchemaRulesetPtrOutput `pulumi:"ruleset"` // The schema string, for example, `file("./schema_version_1.avsc")`. Schema pulumi.StringOutput `pulumi:"schema"` // (Required Integer) The globally unique ID of the Schema, for example, `100003`. If the same schema is registered under a different subject, the same identifier will be returned. However, the `version` of the schema may be different under different subjects. @@ -352,8 +352,8 @@ func (o SchemaOutput) RestEndpoint() pulumi.StringPtrOutput { } // The list of schema rules. See [Data Contracts for Schema Registry](https://docs.confluent.io/platform/7.5/schema-registry/fundamentals/data-contracts.html#rules) for more details. For example, these rules can enforce that a field that contains sensitive information must be encrypted, or that a message containing an invalid age must be sent to a dead letter queue. -func (o SchemaOutput) Ruleset() SchemaRulesetOutput { - return o.ApplyT(func(v *Schema) SchemaRulesetOutput { return v.Ruleset }).(SchemaRulesetOutput) +func (o SchemaOutput) Ruleset() SchemaRulesetPtrOutput { + return o.ApplyT(func(v *Schema) SchemaRulesetPtrOutput { return v.Ruleset }).(SchemaRulesetPtrOutput) } // The schema string, for example, `file("./schema_version_1.avsc")`. diff --git a/sdk/java/src/main/java/com/pulumi/confluentcloud/FlinkArtifact.java b/sdk/java/src/main/java/com/pulumi/confluentcloud/FlinkArtifact.java index 8dad9c76..d8d8cce5 100644 --- a/sdk/java/src/main/java/com/pulumi/confluentcloud/FlinkArtifact.java +++ b/sdk/java/src/main/java/com/pulumi/confluentcloud/FlinkArtifact.java @@ -51,10 +51,9 @@ * .build()); * * var main = new FlinkArtifact("main", FlinkArtifactArgs.builder() - * .class_("io.confluent.example.SumScalarFunction") - * .region("us-west-2") * .cloud("AWS") - * .displayName("flink_sumscalar_artifact") + * .region("us-west-2") + * .displayName("my_flink_sumscalar_artifact") * .contentFormat("JAR") * .environment(FlinkArtifactEnvironmentArgs.builder() * .id(development.id()) @@ -115,16 +114,20 @@ public Output> artifactFile() { /** * Java class or alias for the Flink Artifact as provided by developer. * + * @deprecated + * The "class" attribute has been deprecated and will be removed in the next major version of the provider (3.0.0). Refer to the Upgrade Guide at https://registry.terraform.io/providers/confluentinc/confluent/latest/docs/guides/version-3-upgrade for more details. The guide will be published once version 3.0.0 is released. + * */ + @Deprecated /* The ""class"" attribute has been deprecated and will be removed in the next major version of the provider (3.0.0). Refer to the Upgrade Guide at https://registry.terraform.io/providers/confluentinc/confluent/latest/docs/guides/version-3-upgrade for more details. The guide will be published once version 3.0.0 is released. */ @Export(name="class", refs={String.class}, tree="[0]") - private Output class_; + private Output class_; /** * @return Java class or alias for the Flink Artifact as provided by developer. * */ - public Output class_() { - return this.class_; + public Output> class_() { + return Codegen.optional(this.class_); } /** * The cloud service provider that runs the Flink Artifact. @@ -141,14 +144,14 @@ public Output cloud() { return this.cloud; } /** - * (Optional String) Archive format of the Flink Artifact. + * (Optional String) Archive format of the Flink Artifact. Accepted values are: `JAR`, `ZIP`. * */ @Export(name="contentFormat", refs={String.class}, tree="[0]") private Output contentFormat; /** - * @return (Optional String) Archive format of the Flink Artifact. + * @return (Optional String) Archive format of the Flink Artifact. Accepted values are: `JAR`, `ZIP`. * */ public Output contentFormat() { @@ -169,19 +172,33 @@ public Output> description() { return Codegen.optional(this.description); } /** - * The display name of Flink Artifact. + * The unique name of the Flink Artifact per cloud, region, environment scope. * */ @Export(name="displayName", refs={String.class}, tree="[0]") private Output displayName; /** - * @return The display name of Flink Artifact. + * @return The unique name of the Flink Artifact per cloud, region, environment scope. * */ public Output displayName() { return this.displayName; } + /** + * (Optional String) Documentation link of the Flink Artifact. + * + */ + @Export(name="documentationLink", refs={String.class}, tree="[0]") + private Output documentationLink; + + /** + * @return (Optional String) Documentation link of the Flink Artifact. + * + */ + public Output> documentationLink() { + return Codegen.optional(this.documentationLink); + } /** * Environment objects represent an isolated namespace for your Confluent resources for organizational purposes. * @@ -225,14 +242,14 @@ public Output region() { return this.region; } /** - * (Optional String) Runtime language of the Flink Artifact. The default runtime language is Java. + * (Optional String) Runtime language of the Flink Artifact as `Python` or `Java`. Defaults to `Java`. * */ @Export(name="runtimeLanguage", refs={String.class}, tree="[0]") private Output runtimeLanguage; /** - * @return (Optional String) Runtime language of the Flink Artifact. The default runtime language is Java. + * @return (Optional String) Runtime language of the Flink Artifact as `Python` or `Java`. Defaults to `Java`. * */ public Output> runtimeLanguage() { diff --git a/sdk/java/src/main/java/com/pulumi/confluentcloud/FlinkArtifactArgs.java b/sdk/java/src/main/java/com/pulumi/confluentcloud/FlinkArtifactArgs.java index 824bc6ce..a050e7e4 100644 --- a/sdk/java/src/main/java/com/pulumi/confluentcloud/FlinkArtifactArgs.java +++ b/sdk/java/src/main/java/com/pulumi/confluentcloud/FlinkArtifactArgs.java @@ -35,16 +35,24 @@ public Optional> artifactFile() { /** * Java class or alias for the Flink Artifact as provided by developer. * + * @deprecated + * The "class" attribute has been deprecated and will be removed in the next major version of the provider (3.0.0). Refer to the Upgrade Guide at https://registry.terraform.io/providers/confluentinc/confluent/latest/docs/guides/version-3-upgrade for more details. The guide will be published once version 3.0.0 is released. + * */ - @Import(name="class", required=true) - private Output class_; + @Deprecated /* The ""class"" attribute has been deprecated and will be removed in the next major version of the provider (3.0.0). Refer to the Upgrade Guide at https://registry.terraform.io/providers/confluentinc/confluent/latest/docs/guides/version-3-upgrade for more details. The guide will be published once version 3.0.0 is released. */ + @Import(name="class") + private @Nullable Output class_; /** * @return Java class or alias for the Flink Artifact as provided by developer. * + * @deprecated + * The "class" attribute has been deprecated and will be removed in the next major version of the provider (3.0.0). Refer to the Upgrade Guide at https://registry.terraform.io/providers/confluentinc/confluent/latest/docs/guides/version-3-upgrade for more details. The guide will be published once version 3.0.0 is released. + * */ - public Output class_() { - return this.class_; + @Deprecated /* The ""class"" attribute has been deprecated and will be removed in the next major version of the provider (3.0.0). Refer to the Upgrade Guide at https://registry.terraform.io/providers/confluentinc/confluent/latest/docs/guides/version-3-upgrade for more details. The guide will be published once version 3.0.0 is released. */ + public Optional> class_() { + return Optional.ofNullable(this.class_); } /** @@ -63,14 +71,14 @@ public Output cloud() { } /** - * (Optional String) Archive format of the Flink Artifact. + * (Optional String) Archive format of the Flink Artifact. Accepted values are: `JAR`, `ZIP`. * */ @Import(name="contentFormat") private @Nullable Output contentFormat; /** - * @return (Optional String) Archive format of the Flink Artifact. + * @return (Optional String) Archive format of the Flink Artifact. Accepted values are: `JAR`, `ZIP`. * */ public Optional> contentFormat() { @@ -93,20 +101,35 @@ public Optional> description() { } /** - * The display name of Flink Artifact. + * The unique name of the Flink Artifact per cloud, region, environment scope. * */ @Import(name="displayName", required=true) private Output displayName; /** - * @return The display name of Flink Artifact. + * @return The unique name of the Flink Artifact per cloud, region, environment scope. * */ public Output displayName() { return this.displayName; } + /** + * (Optional String) Documentation link of the Flink Artifact. + * + */ + @Import(name="documentationLink") + private @Nullable Output documentationLink; + + /** + * @return (Optional String) Documentation link of the Flink Artifact. + * + */ + public Optional> documentationLink() { + return Optional.ofNullable(this.documentationLink); + } + /** * Environment objects represent an isolated namespace for your Confluent resources for organizational purposes. * @@ -138,14 +161,14 @@ public Output region() { } /** - * (Optional String) Runtime language of the Flink Artifact. The default runtime language is Java. + * (Optional String) Runtime language of the Flink Artifact as `Python` or `Java`. Defaults to `Java`. * */ @Import(name="runtimeLanguage") private @Nullable Output runtimeLanguage; /** - * @return (Optional String) Runtime language of the Flink Artifact. The default runtime language is Java. + * @return (Optional String) Runtime language of the Flink Artifact as `Python` or `Java`. Defaults to `Java`. * */ public Optional> runtimeLanguage() { @@ -161,6 +184,7 @@ private FlinkArtifactArgs(FlinkArtifactArgs $) { this.contentFormat = $.contentFormat; this.description = $.description; this.displayName = $.displayName; + this.documentationLink = $.documentationLink; this.environment = $.environment; this.region = $.region; this.runtimeLanguage = $.runtimeLanguage; @@ -210,8 +234,12 @@ public Builder artifactFile(String artifactFile) { * * @return builder * + * @deprecated + * The "class" attribute has been deprecated and will be removed in the next major version of the provider (3.0.0). Refer to the Upgrade Guide at https://registry.terraform.io/providers/confluentinc/confluent/latest/docs/guides/version-3-upgrade for more details. The guide will be published once version 3.0.0 is released. + * */ - public Builder class_(Output class_) { + @Deprecated /* The ""class"" attribute has been deprecated and will be removed in the next major version of the provider (3.0.0). Refer to the Upgrade Guide at https://registry.terraform.io/providers/confluentinc/confluent/latest/docs/guides/version-3-upgrade for more details. The guide will be published once version 3.0.0 is released. */ + public Builder class_(@Nullable Output class_) { $.class_ = class_; return this; } @@ -221,7 +249,11 @@ public Builder class_(Output class_) { * * @return builder * + * @deprecated + * The "class" attribute has been deprecated and will be removed in the next major version of the provider (3.0.0). Refer to the Upgrade Guide at https://registry.terraform.io/providers/confluentinc/confluent/latest/docs/guides/version-3-upgrade for more details. The guide will be published once version 3.0.0 is released. + * */ + @Deprecated /* The ""class"" attribute has been deprecated and will be removed in the next major version of the provider (3.0.0). Refer to the Upgrade Guide at https://registry.terraform.io/providers/confluentinc/confluent/latest/docs/guides/version-3-upgrade for more details. The guide will be published once version 3.0.0 is released. */ public Builder class_(String class_) { return class_(Output.of(class_)); } @@ -248,7 +280,7 @@ public Builder cloud(String cloud) { } /** - * @param contentFormat (Optional String) Archive format of the Flink Artifact. + * @param contentFormat (Optional String) Archive format of the Flink Artifact. Accepted values are: `JAR`, `ZIP`. * * @return builder * @@ -259,7 +291,7 @@ public Builder contentFormat(@Nullable Output contentFormat) { } /** - * @param contentFormat (Optional String) Archive format of the Flink Artifact. + * @param contentFormat (Optional String) Archive format of the Flink Artifact. Accepted values are: `JAR`, `ZIP`. * * @return builder * @@ -290,7 +322,7 @@ public Builder description(String description) { } /** - * @param displayName The display name of Flink Artifact. + * @param displayName The unique name of the Flink Artifact per cloud, region, environment scope. * * @return builder * @@ -301,7 +333,7 @@ public Builder displayName(Output displayName) { } /** - * @param displayName The display name of Flink Artifact. + * @param displayName The unique name of the Flink Artifact per cloud, region, environment scope. * * @return builder * @@ -310,6 +342,27 @@ public Builder displayName(String displayName) { return displayName(Output.of(displayName)); } + /** + * @param documentationLink (Optional String) Documentation link of the Flink Artifact. + * + * @return builder + * + */ + public Builder documentationLink(@Nullable Output documentationLink) { + $.documentationLink = documentationLink; + return this; + } + + /** + * @param documentationLink (Optional String) Documentation link of the Flink Artifact. + * + * @return builder + * + */ + public Builder documentationLink(String documentationLink) { + return documentationLink(Output.of(documentationLink)); + } + /** * @param environment Environment objects represent an isolated namespace for your Confluent resources for organizational purposes. * @@ -353,7 +406,7 @@ public Builder region(String region) { } /** - * @param runtimeLanguage (Optional String) Runtime language of the Flink Artifact. The default runtime language is Java. + * @param runtimeLanguage (Optional String) Runtime language of the Flink Artifact as `Python` or `Java`. Defaults to `Java`. * * @return builder * @@ -364,7 +417,7 @@ public Builder runtimeLanguage(@Nullable Output runtimeLanguage) { } /** - * @param runtimeLanguage (Optional String) Runtime language of the Flink Artifact. The default runtime language is Java. + * @param runtimeLanguage (Optional String) Runtime language of the Flink Artifact as `Python` or `Java`. Defaults to `Java`. * * @return builder * @@ -374,9 +427,6 @@ public Builder runtimeLanguage(String runtimeLanguage) { } public FlinkArtifactArgs build() { - if ($.class_ == null) { - throw new MissingRequiredPropertyException("FlinkArtifactArgs", "class_"); - } if ($.cloud == null) { throw new MissingRequiredPropertyException("FlinkArtifactArgs", "cloud"); } diff --git a/sdk/java/src/main/java/com/pulumi/confluentcloud/FlinkStatement.java b/sdk/java/src/main/java/com/pulumi/confluentcloud/FlinkStatement.java index 4a40af40..552f3274 100644 --- a/sdk/java/src/main/java/com/pulumi/confluentcloud/FlinkStatement.java +++ b/sdk/java/src/main/java/com/pulumi/confluentcloud/FlinkStatement.java @@ -125,6 +125,45 @@ * * <!--End PulumiCodeChooser --> * + * Example of `confluentcloud.FlinkStatement` that creates a model: + * <!--Start PulumiCodeChooser --> + *
+ * {@code
+ * package generated_program;
+ * 
+ * import com.pulumi.Context;
+ * import com.pulumi.Pulumi;
+ * import com.pulumi.core.Output;
+ * import com.pulumi.confluentcloud.FlinkStatement;
+ * import com.pulumi.confluentcloud.FlinkStatementArgs;
+ * import java.util.List;
+ * import java.util.ArrayList;
+ * import java.util.Map;
+ * import java.io.File;
+ * import java.nio.file.Files;
+ * import java.nio.file.Paths;
+ * 
+ * public class App {
+ *     public static void main(String[] args) {
+ *         Pulumi.run(App::stack);
+ *     }
+ * 
+ *     public static void stack(Context ctx) {
+ *         var example = new FlinkStatement("example", FlinkStatementArgs.builder()
+ *             .statement("CREATE MODEL `vector_encoding` INPUT (input STRING) OUTPUT (vector ARRAY) WITH( 'TASK' = 'classification','PROVIDER' = 'OPENAI','OPENAI.ENDPOINT' = 'https://api.openai.com/v1/embeddings','OPENAI.API_KEY' = '{{sessionconfig/sql.secrets.openaikey}}');")
+ *             .properties(Map.ofEntries(
+ *                 Map.entry("sql.current-catalog", confluentEnvironmentDisplayName),
+ *                 Map.entry("sql.current-database", confluentKafkaClusterDisplayName)
+ *             ))
+ *             .propertiesSensitive(Map.of("sql.secrets.openaikey", "***REDACTED***"))
+ *             .build());
+ * 
+ *     }
+ * }
+ * }
+ * 
+ * <!--End PulumiCodeChooser --> + * * ## Getting Started * * The following end-to-end example might help to get started with [Flink Statements](https://docs.confluent.io/cloud/current/flink/get-started/overview.html): @@ -246,6 +285,20 @@ public Output principal() { public Output> properties() { return this.properties; } + /** + * Block for sensitive statement properties: + * + */ + @Export(name="propertiesSensitive", refs={Map.class,String.class}, tree="[0,1,1]") + private Output> propertiesSensitive; + + /** + * @return Block for sensitive statement properties: + * + */ + public Output> propertiesSensitive() { + return this.propertiesSensitive; + } /** * The REST endpoint of the Flink region, for example, `https://flink.us-east-1.aws.confluent.cloud`). * @@ -343,7 +396,8 @@ private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@N var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) .additionalSecretOutputs(List.of( - "credentials" + "credentials", + "propertiesSensitive" )) .build(); return com.pulumi.resources.CustomResourceOptions.merge(defaultOptions, options, id); diff --git a/sdk/java/src/main/java/com/pulumi/confluentcloud/FlinkStatementArgs.java b/sdk/java/src/main/java/com/pulumi/confluentcloud/FlinkStatementArgs.java index 4070f0c8..5adf24a8 100644 --- a/sdk/java/src/main/java/com/pulumi/confluentcloud/FlinkStatementArgs.java +++ b/sdk/java/src/main/java/com/pulumi/confluentcloud/FlinkStatementArgs.java @@ -81,6 +81,21 @@ public Optional>> properties() { return Optional.ofNullable(this.properties); } + /** + * Block for sensitive statement properties: + * + */ + @Import(name="propertiesSensitive") + private @Nullable Output> propertiesSensitive; + + /** + * @return Block for sensitive statement properties: + * + */ + public Optional>> propertiesSensitive() { + return Optional.ofNullable(this.propertiesSensitive); + } + /** * The REST endpoint of the Flink region, for example, `https://flink.us-east-1.aws.confluent.cloud`). * @@ -150,6 +165,7 @@ private FlinkStatementArgs(FlinkStatementArgs $) { this.organization = $.organization; this.principal = $.principal; this.properties = $.properties; + this.propertiesSensitive = $.propertiesSensitive; this.restEndpoint = $.restEndpoint; this.statement = $.statement; this.statementName = $.statementName; @@ -252,6 +268,27 @@ public Builder properties(Map properties) { return properties(Output.of(properties)); } + /** + * @param propertiesSensitive Block for sensitive statement properties: + * + * @return builder + * + */ + public Builder propertiesSensitive(@Nullable Output> propertiesSensitive) { + $.propertiesSensitive = propertiesSensitive; + return this; + } + + /** + * @param propertiesSensitive Block for sensitive statement properties: + * + * @return builder + * + */ + public Builder propertiesSensitive(Map propertiesSensitive) { + return propertiesSensitive(Output.of(propertiesSensitive)); + } + /** * @param restEndpoint The REST endpoint of the Flink region, for example, `https://flink.us-east-1.aws.confluent.cloud`). * diff --git a/sdk/java/src/main/java/com/pulumi/confluentcloud/Schema.java b/sdk/java/src/main/java/com/pulumi/confluentcloud/Schema.java index 259bed4a..1ed539d1 100644 --- a/sdk/java/src/main/java/com/pulumi/confluentcloud/Schema.java +++ b/sdk/java/src/main/java/com/pulumi/confluentcloud/Schema.java @@ -147,14 +147,14 @@ public Output> restEndpoint() { * */ @Export(name="ruleset", refs={SchemaRuleset.class}, tree="[0]") - private Output ruleset; + private Output ruleset; /** * @return The list of schema rules. See [Data Contracts for Schema Registry](https://docs.confluent.io/platform/7.5/schema-registry/fundamentals/data-contracts.html#rules) for more details. For example, these rules can enforce that a field that contains sensitive information must be encrypted, or that a message containing an invalid age must be sent to a dead letter queue. * */ - public Output ruleset() { - return this.ruleset; + public Output> ruleset() { + return Codegen.optional(this.ruleset); } /** * The schema string, for example, `file("./schema_version_1.avsc")`. diff --git a/sdk/java/src/main/java/com/pulumi/confluentcloud/inputs/FlinkArtifactState.java b/sdk/java/src/main/java/com/pulumi/confluentcloud/inputs/FlinkArtifactState.java index 04b4cab6..a0c3b339 100644 --- a/sdk/java/src/main/java/com/pulumi/confluentcloud/inputs/FlinkArtifactState.java +++ b/sdk/java/src/main/java/com/pulumi/confluentcloud/inputs/FlinkArtifactState.java @@ -51,14 +51,22 @@ public Optional> artifactFile() { /** * Java class or alias for the Flink Artifact as provided by developer. * + * @deprecated + * The "class" attribute has been deprecated and will be removed in the next major version of the provider (3.0.0). Refer to the Upgrade Guide at https://registry.terraform.io/providers/confluentinc/confluent/latest/docs/guides/version-3-upgrade for more details. The guide will be published once version 3.0.0 is released. + * */ + @Deprecated /* The ""class"" attribute has been deprecated and will be removed in the next major version of the provider (3.0.0). Refer to the Upgrade Guide at https://registry.terraform.io/providers/confluentinc/confluent/latest/docs/guides/version-3-upgrade for more details. The guide will be published once version 3.0.0 is released. */ @Import(name="class") private @Nullable Output class_; /** * @return Java class or alias for the Flink Artifact as provided by developer. * + * @deprecated + * The "class" attribute has been deprecated and will be removed in the next major version of the provider (3.0.0). Refer to the Upgrade Guide at https://registry.terraform.io/providers/confluentinc/confluent/latest/docs/guides/version-3-upgrade for more details. The guide will be published once version 3.0.0 is released. + * */ + @Deprecated /* The ""class"" attribute has been deprecated and will be removed in the next major version of the provider (3.0.0). Refer to the Upgrade Guide at https://registry.terraform.io/providers/confluentinc/confluent/latest/docs/guides/version-3-upgrade for more details. The guide will be published once version 3.0.0 is released. */ public Optional> class_() { return Optional.ofNullable(this.class_); } @@ -79,14 +87,14 @@ public Optional> cloud() { } /** - * (Optional String) Archive format of the Flink Artifact. + * (Optional String) Archive format of the Flink Artifact. Accepted values are: `JAR`, `ZIP`. * */ @Import(name="contentFormat") private @Nullable Output contentFormat; /** - * @return (Optional String) Archive format of the Flink Artifact. + * @return (Optional String) Archive format of the Flink Artifact. Accepted values are: `JAR`, `ZIP`. * */ public Optional> contentFormat() { @@ -109,20 +117,35 @@ public Optional> description() { } /** - * The display name of Flink Artifact. + * The unique name of the Flink Artifact per cloud, region, environment scope. * */ @Import(name="displayName") private @Nullable Output displayName; /** - * @return The display name of Flink Artifact. + * @return The unique name of the Flink Artifact per cloud, region, environment scope. * */ public Optional> displayName() { return Optional.ofNullable(this.displayName); } + /** + * (Optional String) Documentation link of the Flink Artifact. + * + */ + @Import(name="documentationLink") + private @Nullable Output documentationLink; + + /** + * @return (Optional String) Documentation link of the Flink Artifact. + * + */ + public Optional> documentationLink() { + return Optional.ofNullable(this.documentationLink); + } + /** * Environment objects represent an isolated namespace for your Confluent resources for organizational purposes. * @@ -169,14 +192,14 @@ public Optional> region() { } /** - * (Optional String) Runtime language of the Flink Artifact. The default runtime language is Java. + * (Optional String) Runtime language of the Flink Artifact as `Python` or `Java`. Defaults to `Java`. * */ @Import(name="runtimeLanguage") private @Nullable Output runtimeLanguage; /** - * @return (Optional String) Runtime language of the Flink Artifact. The default runtime language is Java. + * @return (Optional String) Runtime language of the Flink Artifact as `Python` or `Java`. Defaults to `Java`. * */ public Optional> runtimeLanguage() { @@ -208,6 +231,7 @@ private FlinkArtifactState(FlinkArtifactState $) { this.contentFormat = $.contentFormat; this.description = $.description; this.displayName = $.displayName; + this.documentationLink = $.documentationLink; this.environment = $.environment; this.kind = $.kind; this.region = $.region; @@ -280,7 +304,11 @@ public Builder artifactFile(String artifactFile) { * * @return builder * + * @deprecated + * The "class" attribute has been deprecated and will be removed in the next major version of the provider (3.0.0). Refer to the Upgrade Guide at https://registry.terraform.io/providers/confluentinc/confluent/latest/docs/guides/version-3-upgrade for more details. The guide will be published once version 3.0.0 is released. + * */ + @Deprecated /* The ""class"" attribute has been deprecated and will be removed in the next major version of the provider (3.0.0). Refer to the Upgrade Guide at https://registry.terraform.io/providers/confluentinc/confluent/latest/docs/guides/version-3-upgrade for more details. The guide will be published once version 3.0.0 is released. */ public Builder class_(@Nullable Output class_) { $.class_ = class_; return this; @@ -291,7 +319,11 @@ public Builder class_(@Nullable Output class_) { * * @return builder * + * @deprecated + * The "class" attribute has been deprecated and will be removed in the next major version of the provider (3.0.0). Refer to the Upgrade Guide at https://registry.terraform.io/providers/confluentinc/confluent/latest/docs/guides/version-3-upgrade for more details. The guide will be published once version 3.0.0 is released. + * */ + @Deprecated /* The ""class"" attribute has been deprecated and will be removed in the next major version of the provider (3.0.0). Refer to the Upgrade Guide at https://registry.terraform.io/providers/confluentinc/confluent/latest/docs/guides/version-3-upgrade for more details. The guide will be published once version 3.0.0 is released. */ public Builder class_(String class_) { return class_(Output.of(class_)); } @@ -318,7 +350,7 @@ public Builder cloud(String cloud) { } /** - * @param contentFormat (Optional String) Archive format of the Flink Artifact. + * @param contentFormat (Optional String) Archive format of the Flink Artifact. Accepted values are: `JAR`, `ZIP`. * * @return builder * @@ -329,7 +361,7 @@ public Builder contentFormat(@Nullable Output contentFormat) { } /** - * @param contentFormat (Optional String) Archive format of the Flink Artifact. + * @param contentFormat (Optional String) Archive format of the Flink Artifact. Accepted values are: `JAR`, `ZIP`. * * @return builder * @@ -360,7 +392,7 @@ public Builder description(String description) { } /** - * @param displayName The display name of Flink Artifact. + * @param displayName The unique name of the Flink Artifact per cloud, region, environment scope. * * @return builder * @@ -371,7 +403,7 @@ public Builder displayName(@Nullable Output displayName) { } /** - * @param displayName The display name of Flink Artifact. + * @param displayName The unique name of the Flink Artifact per cloud, region, environment scope. * * @return builder * @@ -380,6 +412,27 @@ public Builder displayName(String displayName) { return displayName(Output.of(displayName)); } + /** + * @param documentationLink (Optional String) Documentation link of the Flink Artifact. + * + * @return builder + * + */ + public Builder documentationLink(@Nullable Output documentationLink) { + $.documentationLink = documentationLink; + return this; + } + + /** + * @param documentationLink (Optional String) Documentation link of the Flink Artifact. + * + * @return builder + * + */ + public Builder documentationLink(String documentationLink) { + return documentationLink(Output.of(documentationLink)); + } + /** * @param environment Environment objects represent an isolated namespace for your Confluent resources for organizational purposes. * @@ -444,7 +497,7 @@ public Builder region(String region) { } /** - * @param runtimeLanguage (Optional String) Runtime language of the Flink Artifact. The default runtime language is Java. + * @param runtimeLanguage (Optional String) Runtime language of the Flink Artifact as `Python` or `Java`. Defaults to `Java`. * * @return builder * @@ -455,7 +508,7 @@ public Builder runtimeLanguage(@Nullable Output runtimeLanguage) { } /** - * @param runtimeLanguage (Optional String) Runtime language of the Flink Artifact. The default runtime language is Java. + * @param runtimeLanguage (Optional String) Runtime language of the Flink Artifact as `Python` or `Java`. Defaults to `Java`. * * @return builder * diff --git a/sdk/java/src/main/java/com/pulumi/confluentcloud/inputs/FlinkStatementState.java b/sdk/java/src/main/java/com/pulumi/confluentcloud/inputs/FlinkStatementState.java index a4218bd1..1d803203 100644 --- a/sdk/java/src/main/java/com/pulumi/confluentcloud/inputs/FlinkStatementState.java +++ b/sdk/java/src/main/java/com/pulumi/confluentcloud/inputs/FlinkStatementState.java @@ -110,6 +110,21 @@ public Optional>> properties() { return Optional.ofNullable(this.properties); } + /** + * Block for sensitive statement properties: + * + */ + @Import(name="propertiesSensitive") + private @Nullable Output> propertiesSensitive; + + /** + * @return Block for sensitive statement properties: + * + */ + public Optional>> propertiesSensitive() { + return Optional.ofNullable(this.propertiesSensitive); + } + /** * The REST endpoint of the Flink region, for example, `https://flink.us-east-1.aws.confluent.cloud`). * @@ -181,6 +196,7 @@ private FlinkStatementState(FlinkStatementState $) { this.organization = $.organization; this.principal = $.principal; this.properties = $.properties; + this.propertiesSensitive = $.propertiesSensitive; this.restEndpoint = $.restEndpoint; this.statement = $.statement; this.statementName = $.statementName; @@ -325,6 +341,27 @@ public Builder properties(Map properties) { return properties(Output.of(properties)); } + /** + * @param propertiesSensitive Block for sensitive statement properties: + * + * @return builder + * + */ + public Builder propertiesSensitive(@Nullable Output> propertiesSensitive) { + $.propertiesSensitive = propertiesSensitive; + return this; + } + + /** + * @param propertiesSensitive Block for sensitive statement properties: + * + * @return builder + * + */ + public Builder propertiesSensitive(Map propertiesSensitive) { + return propertiesSensitive(Output.of(propertiesSensitive)); + } + /** * @param restEndpoint The REST endpoint of the Flink region, for example, `https://flink.us-east-1.aws.confluent.cloud`). * diff --git a/sdk/java/src/main/java/com/pulumi/confluentcloud/inputs/GetFlinkArtifactArgs.java b/sdk/java/src/main/java/com/pulumi/confluentcloud/inputs/GetFlinkArtifactArgs.java index 52a886a6..6dca109f 100644 --- a/sdk/java/src/main/java/com/pulumi/confluentcloud/inputs/GetFlinkArtifactArgs.java +++ b/sdk/java/src/main/java/com/pulumi/confluentcloud/inputs/GetFlinkArtifactArgs.java @@ -17,6 +17,29 @@ public final class GetFlinkArtifactArgs extends com.pulumi.resources.InvokeArgs public static final GetFlinkArtifactArgs Empty = new GetFlinkArtifactArgs(); + /** + * (Required String) Java class or alias for the Flink Artifact as provided by developer. + * + * @deprecated + * The "class" attribute has been deprecated and will be removed in the next major version of the provider (3.0.0). Refer to the Upgrade Guide at https://registry.terraform.io/providers/confluentinc/confluent/latest/docs/guides/version-3-upgrade for more details. The guide will be published once version 3.0.0 is released. + * + */ + @Deprecated /* The ""class"" attribute has been deprecated and will be removed in the next major version of the provider (3.0.0). Refer to the Upgrade Guide at https://registry.terraform.io/providers/confluentinc/confluent/latest/docs/guides/version-3-upgrade for more details. The guide will be published once version 3.0.0 is released. */ + @Import(name="class") + private @Nullable Output class_; + + /** + * @return (Required String) Java class or alias for the Flink Artifact as provided by developer. + * + * @deprecated + * The "class" attribute has been deprecated and will be removed in the next major version of the provider (3.0.0). Refer to the Upgrade Guide at https://registry.terraform.io/providers/confluentinc/confluent/latest/docs/guides/version-3-upgrade for more details. The guide will be published once version 3.0.0 is released. + * + */ + @Deprecated /* The ""class"" attribute has been deprecated and will be removed in the next major version of the provider (3.0.0). Refer to the Upgrade Guide at https://registry.terraform.io/providers/confluentinc/confluent/latest/docs/guides/version-3-upgrade for more details. The guide will be published once version 3.0.0 is released. */ + public Optional> class_() { + return Optional.ofNullable(this.class_); + } + /** * The cloud service provider that hosts the region. Accepted values are: `AWS`, `AZURE`, and `GCP`. * @@ -91,6 +114,7 @@ public Output region() { private GetFlinkArtifactArgs() {} private GetFlinkArtifactArgs(GetFlinkArtifactArgs $) { + this.class_ = $.class_; this.cloud = $.cloud; this.displayName = $.displayName; this.environment = $.environment; @@ -116,6 +140,35 @@ public Builder(GetFlinkArtifactArgs defaults) { $ = new GetFlinkArtifactArgs(Objects.requireNonNull(defaults)); } + /** + * @param class_ (Required String) Java class or alias for the Flink Artifact as provided by developer. + * + * @return builder + * + * @deprecated + * The "class" attribute has been deprecated and will be removed in the next major version of the provider (3.0.0). Refer to the Upgrade Guide at https://registry.terraform.io/providers/confluentinc/confluent/latest/docs/guides/version-3-upgrade for more details. The guide will be published once version 3.0.0 is released. + * + */ + @Deprecated /* The ""class"" attribute has been deprecated and will be removed in the next major version of the provider (3.0.0). Refer to the Upgrade Guide at https://registry.terraform.io/providers/confluentinc/confluent/latest/docs/guides/version-3-upgrade for more details. The guide will be published once version 3.0.0 is released. */ + public Builder class_(@Nullable Output class_) { + $.class_ = class_; + return this; + } + + /** + * @param class_ (Required String) Java class or alias for the Flink Artifact as provided by developer. + * + * @return builder + * + * @deprecated + * The "class" attribute has been deprecated and will be removed in the next major version of the provider (3.0.0). Refer to the Upgrade Guide at https://registry.terraform.io/providers/confluentinc/confluent/latest/docs/guides/version-3-upgrade for more details. The guide will be published once version 3.0.0 is released. + * + */ + @Deprecated /* The ""class"" attribute has been deprecated and will be removed in the next major version of the provider (3.0.0). Refer to the Upgrade Guide at https://registry.terraform.io/providers/confluentinc/confluent/latest/docs/guides/version-3-upgrade for more details. The guide will be published once version 3.0.0 is released. */ + public Builder class_(String class_) { + return class_(Output.of(class_)); + } + /** * @param cloud The cloud service provider that hosts the region. Accepted values are: `AWS`, `AZURE`, and `GCP`. * diff --git a/sdk/java/src/main/java/com/pulumi/confluentcloud/inputs/GetFlinkArtifactPlainArgs.java b/sdk/java/src/main/java/com/pulumi/confluentcloud/inputs/GetFlinkArtifactPlainArgs.java index 49183845..6fbabe51 100644 --- a/sdk/java/src/main/java/com/pulumi/confluentcloud/inputs/GetFlinkArtifactPlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/confluentcloud/inputs/GetFlinkArtifactPlainArgs.java @@ -16,6 +16,29 @@ public final class GetFlinkArtifactPlainArgs extends com.pulumi.resources.Invoke public static final GetFlinkArtifactPlainArgs Empty = new GetFlinkArtifactPlainArgs(); + /** + * (Required String) Java class or alias for the Flink Artifact as provided by developer. + * + * @deprecated + * The "class" attribute has been deprecated and will be removed in the next major version of the provider (3.0.0). Refer to the Upgrade Guide at https://registry.terraform.io/providers/confluentinc/confluent/latest/docs/guides/version-3-upgrade for more details. The guide will be published once version 3.0.0 is released. + * + */ + @Deprecated /* The ""class"" attribute has been deprecated and will be removed in the next major version of the provider (3.0.0). Refer to the Upgrade Guide at https://registry.terraform.io/providers/confluentinc/confluent/latest/docs/guides/version-3-upgrade for more details. The guide will be published once version 3.0.0 is released. */ + @Import(name="class") + private @Nullable String class_; + + /** + * @return (Required String) Java class or alias for the Flink Artifact as provided by developer. + * + * @deprecated + * The "class" attribute has been deprecated and will be removed in the next major version of the provider (3.0.0). Refer to the Upgrade Guide at https://registry.terraform.io/providers/confluentinc/confluent/latest/docs/guides/version-3-upgrade for more details. The guide will be published once version 3.0.0 is released. + * + */ + @Deprecated /* The ""class"" attribute has been deprecated and will be removed in the next major version of the provider (3.0.0). Refer to the Upgrade Guide at https://registry.terraform.io/providers/confluentinc/confluent/latest/docs/guides/version-3-upgrade for more details. The guide will be published once version 3.0.0 is released. */ + public Optional class_() { + return Optional.ofNullable(this.class_); + } + /** * The cloud service provider that hosts the region. Accepted values are: `AWS`, `AZURE`, and `GCP`. * @@ -90,6 +113,7 @@ public String region() { private GetFlinkArtifactPlainArgs() {} private GetFlinkArtifactPlainArgs(GetFlinkArtifactPlainArgs $) { + this.class_ = $.class_; this.cloud = $.cloud; this.displayName = $.displayName; this.environment = $.environment; @@ -115,6 +139,21 @@ public Builder(GetFlinkArtifactPlainArgs defaults) { $ = new GetFlinkArtifactPlainArgs(Objects.requireNonNull(defaults)); } + /** + * @param class_ (Required String) Java class or alias for the Flink Artifact as provided by developer. + * + * @return builder + * + * @deprecated + * The "class" attribute has been deprecated and will be removed in the next major version of the provider (3.0.0). Refer to the Upgrade Guide at https://registry.terraform.io/providers/confluentinc/confluent/latest/docs/guides/version-3-upgrade for more details. The guide will be published once version 3.0.0 is released. + * + */ + @Deprecated /* The ""class"" attribute has been deprecated and will be removed in the next major version of the provider (3.0.0). Refer to the Upgrade Guide at https://registry.terraform.io/providers/confluentinc/confluent/latest/docs/guides/version-3-upgrade for more details. The guide will be published once version 3.0.0 is released. */ + public Builder class_(@Nullable String class_) { + $.class_ = class_; + return this; + } + /** * @param cloud The cloud service provider that hosts the region. Accepted values are: `AWS`, `AZURE`, and `GCP`. * diff --git a/sdk/java/src/main/java/com/pulumi/confluentcloud/outputs/GetFlinkArtifactResult.java b/sdk/java/src/main/java/com/pulumi/confluentcloud/outputs/GetFlinkArtifactResult.java index 5cc7d965..48e97b2e 100644 --- a/sdk/java/src/main/java/com/pulumi/confluentcloud/outputs/GetFlinkArtifactResult.java +++ b/sdk/java/src/main/java/com/pulumi/confluentcloud/outputs/GetFlinkArtifactResult.java @@ -21,7 +21,11 @@ public final class GetFlinkArtifactResult { /** * @return (Required String) Java class or alias for the Flink Artifact as provided by developer. * + * @deprecated + * The "class" attribute has been deprecated and will be removed in the next major version of the provider (3.0.0). Refer to the Upgrade Guide at https://registry.terraform.io/providers/confluentinc/confluent/latest/docs/guides/version-3-upgrade for more details. The guide will be published once version 3.0.0 is released. + * */ + @Deprecated /* The ""class"" attribute has been deprecated and will be removed in the next major version of the provider (3.0.0). Refer to the Upgrade Guide at https://registry.terraform.io/providers/confluentinc/confluent/latest/docs/guides/version-3-upgrade for more details. The guide will be published once version 3.0.0 is released. */ private String class_; private String cloud; /** @@ -35,6 +39,7 @@ public final class GetFlinkArtifactResult { */ private String description; private String displayName; + private String documentationLink; private GetFlinkArtifactEnvironment environment; private String id; /** @@ -61,7 +66,11 @@ public String apiVersion() { /** * @return (Required String) Java class or alias for the Flink Artifact as provided by developer. * + * @deprecated + * The "class" attribute has been deprecated and will be removed in the next major version of the provider (3.0.0). Refer to the Upgrade Guide at https://registry.terraform.io/providers/confluentinc/confluent/latest/docs/guides/version-3-upgrade for more details. The guide will be published once version 3.0.0 is released. + * */ + @Deprecated /* The ""class"" attribute has been deprecated and will be removed in the next major version of the provider (3.0.0). Refer to the Upgrade Guide at https://registry.terraform.io/providers/confluentinc/confluent/latest/docs/guides/version-3-upgrade for more details. The guide will be published once version 3.0.0 is released. */ public String class_() { return this.class_; } @@ -85,6 +94,9 @@ public String description() { public String displayName() { return this.displayName; } + public String documentationLink() { + return this.documentationLink; + } public GetFlinkArtifactEnvironment environment() { return this.environment; } @@ -127,6 +139,7 @@ public static final class Builder { private String contentFormat; private String description; private String displayName; + private String documentationLink; private GetFlinkArtifactEnvironment environment; private String id; private String kind; @@ -142,6 +155,7 @@ public Builder(GetFlinkArtifactResult defaults) { this.contentFormat = defaults.contentFormat; this.description = defaults.description; this.displayName = defaults.displayName; + this.documentationLink = defaults.documentationLink; this.environment = defaults.environment; this.id = defaults.id; this.kind = defaults.kind; @@ -199,6 +213,14 @@ public Builder displayName(String displayName) { return this; } @CustomType.Setter + public Builder documentationLink(String documentationLink) { + if (documentationLink == null) { + throw new MissingRequiredPropertyException("GetFlinkArtifactResult", "documentationLink"); + } + this.documentationLink = documentationLink; + return this; + } + @CustomType.Setter public Builder environment(GetFlinkArtifactEnvironment environment) { if (environment == null) { throw new MissingRequiredPropertyException("GetFlinkArtifactResult", "environment"); @@ -257,6 +279,7 @@ public GetFlinkArtifactResult build() { _resultValue.contentFormat = contentFormat; _resultValue.description = description; _resultValue.displayName = displayName; + _resultValue.documentationLink = documentationLink; _resultValue.environment = environment; _resultValue.id = id; _resultValue.kind = kind; diff --git a/sdk/java/src/main/java/com/pulumi/confluentcloud/outputs/GetSchemaResult.java b/sdk/java/src/main/java/com/pulumi/confluentcloud/outputs/GetSchemaResult.java index a5c1c439..06937382 100644 --- a/sdk/java/src/main/java/com/pulumi/confluentcloud/outputs/GetSchemaResult.java +++ b/sdk/java/src/main/java/com/pulumi/confluentcloud/outputs/GetSchemaResult.java @@ -43,7 +43,7 @@ public final class GetSchemaResult { * @return (Optional Block) The list of schema rules. See [Data Contracts for Schema Registry](https://docs.confluent.io/platform/7.5/schema-registry/fundamentals/data-contracts.html#rules) for more details. For example, these rules can enforce that a field that contains sensitive information must be encrypted, or that a message containing an invalid age must be sent to a dead letter queue. * */ - private GetSchemaRuleset ruleset; + private @Nullable GetSchemaRuleset ruleset; /** * @return (Required String) The schema string, for example, `file("./schema_version_1.avsc")`. * @@ -106,8 +106,8 @@ public Optional restEndpoint() { * @return (Optional Block) The list of schema rules. See [Data Contracts for Schema Registry](https://docs.confluent.io/platform/7.5/schema-registry/fundamentals/data-contracts.html#rules) for more details. For example, these rules can enforce that a field that contains sensitive information must be encrypted, or that a message containing an invalid age must be sent to a dead letter queue. * */ - public GetSchemaRuleset ruleset() { - return this.ruleset; + public Optional ruleset() { + return Optional.ofNullable(this.ruleset); } /** * @return (Required String) The schema string, for example, `file("./schema_version_1.avsc")`. @@ -163,7 +163,7 @@ public static final class Builder { private GetSchemaMetadata metadata; private Boolean recreateOnUpdate; private @Nullable String restEndpoint; - private GetSchemaRuleset ruleset; + private @Nullable GetSchemaRuleset ruleset; private String schema; private Integer schemaIdentifier; private List schemaReferences; @@ -244,10 +244,8 @@ public Builder restEndpoint(@Nullable String restEndpoint) { return this; } @CustomType.Setter - public Builder ruleset(GetSchemaRuleset ruleset) { - if (ruleset == null) { - throw new MissingRequiredPropertyException("GetSchemaResult", "ruleset"); - } + public Builder ruleset(@Nullable GetSchemaRuleset ruleset) { + this.ruleset = ruleset; return this; } diff --git a/sdk/nodejs/flinkArtifact.ts b/sdk/nodejs/flinkArtifact.ts index 4f590191..542c62a4 100644 --- a/sdk/nodejs/flinkArtifact.ts +++ b/sdk/nodejs/flinkArtifact.ts @@ -15,10 +15,9 @@ import * as utilities from "./utilities"; * * const development = new confluentcloud.Environment("development", {displayName: "Development"}); * const main = new confluentcloud.FlinkArtifact("main", { - * "class": "io.confluent.example.SumScalarFunction", - * region: "us-west-2", * cloud: "AWS", - * displayName: "flink_sumscalar_artifact", + * region: "us-west-2", + * displayName: "my_flink_sumscalar_artifact", * contentFormat: "JAR", * environment: { * id: development.id, @@ -78,14 +77,16 @@ export class FlinkArtifact extends pulumi.CustomResource { public readonly artifactFile!: pulumi.Output; /** * Java class or alias for the Flink Artifact as provided by developer. + * + * @deprecated The "class" attribute has been deprecated and will be removed in the next major version of the provider (3.0.0). Refer to the Upgrade Guide at https://registry.terraform.io/providers/confluentinc/confluent/latest/docs/guides/version-3-upgrade for more details. The guide will be published once version 3.0.0 is released. */ - public readonly class!: pulumi.Output; + public readonly class!: pulumi.Output; /** * The cloud service provider that runs the Flink Artifact. */ public readonly cloud!: pulumi.Output; /** - * (Optional String) Archive format of the Flink Artifact. + * (Optional String) Archive format of the Flink Artifact. Accepted values are: `JAR`, `ZIP`. */ public readonly contentFormat!: pulumi.Output; /** @@ -93,9 +94,13 @@ export class FlinkArtifact extends pulumi.CustomResource { */ public readonly description!: pulumi.Output; /** - * The display name of Flink Artifact. + * The unique name of the Flink Artifact per cloud, region, environment scope. */ public readonly displayName!: pulumi.Output; + /** + * (Optional String) Documentation link of the Flink Artifact. + */ + public readonly documentationLink!: pulumi.Output; /** * Environment objects represent an isolated namespace for your Confluent resources for organizational purposes. */ @@ -109,7 +114,7 @@ export class FlinkArtifact extends pulumi.CustomResource { */ public readonly region!: pulumi.Output; /** - * (Optional String) Runtime language of the Flink Artifact. The default runtime language is Java. + * (Optional String) Runtime language of the Flink Artifact as `Python` or `Java`. Defaults to `Java`. */ public readonly runtimeLanguage!: pulumi.Output; /** @@ -137,6 +142,7 @@ export class FlinkArtifact extends pulumi.CustomResource { resourceInputs["contentFormat"] = state ? state.contentFormat : undefined; resourceInputs["description"] = state ? state.description : undefined; resourceInputs["displayName"] = state ? state.displayName : undefined; + resourceInputs["documentationLink"] = state ? state.documentationLink : undefined; resourceInputs["environment"] = state ? state.environment : undefined; resourceInputs["kind"] = state ? state.kind : undefined; resourceInputs["region"] = state ? state.region : undefined; @@ -144,9 +150,6 @@ export class FlinkArtifact extends pulumi.CustomResource { resourceInputs["versions"] = state ? state.versions : undefined; } else { const args = argsOrState as FlinkArtifactArgs | undefined; - if ((!args || args.class === undefined) && !opts.urn) { - throw new Error("Missing required property 'class'"); - } if ((!args || args.cloud === undefined) && !opts.urn) { throw new Error("Missing required property 'cloud'"); } @@ -165,6 +168,7 @@ export class FlinkArtifact extends pulumi.CustomResource { resourceInputs["contentFormat"] = args ? args.contentFormat : undefined; resourceInputs["description"] = args ? args.description : undefined; resourceInputs["displayName"] = args ? args.displayName : undefined; + resourceInputs["documentationLink"] = args ? args.documentationLink : undefined; resourceInputs["environment"] = args ? args.environment : undefined; resourceInputs["region"] = args ? args.region : undefined; resourceInputs["runtimeLanguage"] = args ? args.runtimeLanguage : undefined; @@ -191,6 +195,8 @@ export interface FlinkArtifactState { artifactFile?: pulumi.Input; /** * Java class or alias for the Flink Artifact as provided by developer. + * + * @deprecated The "class" attribute has been deprecated and will be removed in the next major version of the provider (3.0.0). Refer to the Upgrade Guide at https://registry.terraform.io/providers/confluentinc/confluent/latest/docs/guides/version-3-upgrade for more details. The guide will be published once version 3.0.0 is released. */ class?: pulumi.Input; /** @@ -198,7 +204,7 @@ export interface FlinkArtifactState { */ cloud?: pulumi.Input; /** - * (Optional String) Archive format of the Flink Artifact. + * (Optional String) Archive format of the Flink Artifact. Accepted values are: `JAR`, `ZIP`. */ contentFormat?: pulumi.Input; /** @@ -206,9 +212,13 @@ export interface FlinkArtifactState { */ description?: pulumi.Input; /** - * The display name of Flink Artifact. + * The unique name of the Flink Artifact per cloud, region, environment scope. */ displayName?: pulumi.Input; + /** + * (Optional String) Documentation link of the Flink Artifact. + */ + documentationLink?: pulumi.Input; /** * Environment objects represent an isolated namespace for your Confluent resources for organizational purposes. */ @@ -222,7 +232,7 @@ export interface FlinkArtifactState { */ region?: pulumi.Input; /** - * (Optional String) Runtime language of the Flink Artifact. The default runtime language is Java. + * (Optional String) Runtime language of the Flink Artifact as `Python` or `Java`. Defaults to `Java`. */ runtimeLanguage?: pulumi.Input; /** @@ -241,14 +251,16 @@ export interface FlinkArtifactArgs { artifactFile?: pulumi.Input; /** * Java class or alias for the Flink Artifact as provided by developer. + * + * @deprecated The "class" attribute has been deprecated and will be removed in the next major version of the provider (3.0.0). Refer to the Upgrade Guide at https://registry.terraform.io/providers/confluentinc/confluent/latest/docs/guides/version-3-upgrade for more details. The guide will be published once version 3.0.0 is released. */ - class: pulumi.Input; + class?: pulumi.Input; /** * The cloud service provider that runs the Flink Artifact. */ cloud: pulumi.Input; /** - * (Optional String) Archive format of the Flink Artifact. + * (Optional String) Archive format of the Flink Artifact. Accepted values are: `JAR`, `ZIP`. */ contentFormat?: pulumi.Input; /** @@ -256,9 +268,13 @@ export interface FlinkArtifactArgs { */ description?: pulumi.Input; /** - * The display name of Flink Artifact. + * The unique name of the Flink Artifact per cloud, region, environment scope. */ displayName: pulumi.Input; + /** + * (Optional String) Documentation link of the Flink Artifact. + */ + documentationLink?: pulumi.Input; /** * Environment objects represent an isolated namespace for your Confluent resources for organizational purposes. */ @@ -268,7 +284,7 @@ export interface FlinkArtifactArgs { */ region: pulumi.Input; /** - * (Optional String) Runtime language of the Flink Artifact. The default runtime language is Java. + * (Optional String) Runtime language of the Flink Artifact as `Python` or `Java`. Defaults to `Java`. */ runtimeLanguage?: pulumi.Input; } diff --git a/sdk/nodejs/flinkStatement.ts b/sdk/nodejs/flinkStatement.ts index 55b808db..a2fe66b9 100644 --- a/sdk/nodejs/flinkStatement.ts +++ b/sdk/nodejs/flinkStatement.ts @@ -56,6 +56,23 @@ import * as utilities from "./utilities"; * }); * ``` * + * Example of `confluentcloud.FlinkStatement` that creates a model: + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as confluentcloud from "@pulumi/confluentcloud"; + * + * const example = new confluentcloud.FlinkStatement("example", { + * statement: "CREATE MODEL `vector_encoding` INPUT (input STRING) OUTPUT (vector ARRAY) WITH( 'TASK' = 'classification','PROVIDER' = 'OPENAI','OPENAI.ENDPOINT' = 'https://api.openai.com/v1/embeddings','OPENAI.API_KEY' = '{{sessionconfig/sql.secrets.openaikey}}');", + * properties: { + * "sql.current-catalog": confluentEnvironmentDisplayName, + * "sql.current-database": confluentKafkaClusterDisplayName, + * }, + * propertiesSensitive: { + * "sql.secrets.openaikey": "***REDACTED***", + * }, + * }); + * ``` + * * ## Getting Started * * The following end-to-end example might help to get started with [Flink Statements](https://docs.confluent.io/cloud/current/flink/get-started/overview.html): @@ -148,6 +165,10 @@ export class FlinkStatement extends pulumi.CustomResource { * The custom topic settings to set: */ public readonly properties!: pulumi.Output<{[key: string]: string}>; + /** + * Block for sensitive statement properties: + */ + public readonly propertiesSensitive!: pulumi.Output<{[key: string]: string}>; /** * The REST endpoint of the Flink region, for example, `https://flink.us-east-1.aws.confluent.cloud`). */ @@ -186,6 +207,7 @@ export class FlinkStatement extends pulumi.CustomResource { resourceInputs["organization"] = state ? state.organization : undefined; resourceInputs["principal"] = state ? state.principal : undefined; resourceInputs["properties"] = state ? state.properties : undefined; + resourceInputs["propertiesSensitive"] = state ? state.propertiesSensitive : undefined; resourceInputs["restEndpoint"] = state ? state.restEndpoint : undefined; resourceInputs["statement"] = state ? state.statement : undefined; resourceInputs["statementName"] = state ? state.statementName : undefined; @@ -201,6 +223,7 @@ export class FlinkStatement extends pulumi.CustomResource { resourceInputs["organization"] = args ? args.organization : undefined; resourceInputs["principal"] = args ? args.principal : undefined; resourceInputs["properties"] = args ? args.properties : undefined; + resourceInputs["propertiesSensitive"] = args?.propertiesSensitive ? pulumi.secret(args.propertiesSensitive) : undefined; resourceInputs["restEndpoint"] = args ? args.restEndpoint : undefined; resourceInputs["statement"] = args ? args.statement : undefined; resourceInputs["statementName"] = args ? args.statementName : undefined; @@ -209,7 +232,7 @@ export class FlinkStatement extends pulumi.CustomResource { resourceInputs["latestOffsetsTimestamp"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); - const secretOpts = { additionalSecretOutputs: ["credentials"] }; + const secretOpts = { additionalSecretOutputs: ["credentials", "propertiesSensitive"] }; opts = pulumi.mergeOptions(opts, secretOpts); super(FlinkStatement.__pulumiType, name, resourceInputs, opts); } @@ -245,6 +268,10 @@ export interface FlinkStatementState { * The custom topic settings to set: */ properties?: pulumi.Input<{[key: string]: pulumi.Input}>; + /** + * Block for sensitive statement properties: + */ + propertiesSensitive?: pulumi.Input<{[key: string]: pulumi.Input}>; /** * The REST endpoint of the Flink region, for example, `https://flink.us-east-1.aws.confluent.cloud`). */ @@ -279,6 +306,10 @@ export interface FlinkStatementArgs { * The custom topic settings to set: */ properties?: pulumi.Input<{[key: string]: pulumi.Input}>; + /** + * Block for sensitive statement properties: + */ + propertiesSensitive?: pulumi.Input<{[key: string]: pulumi.Input}>; /** * The REST endpoint of the Flink region, for example, `https://flink.us-east-1.aws.confluent.cloud`). */ diff --git a/sdk/nodejs/getFlinkArtifact.ts b/sdk/nodejs/getFlinkArtifact.ts index 633bd4b0..2effc6fd 100644 --- a/sdk/nodejs/getFlinkArtifact.ts +++ b/sdk/nodejs/getFlinkArtifact.ts @@ -40,6 +40,7 @@ import * as utilities from "./utilities"; export function getFlinkArtifact(args: GetFlinkArtifactArgs, opts?: pulumi.InvokeOptions): Promise { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("confluentcloud:index/getFlinkArtifact:getFlinkArtifact", { + "class": args.class, "cloud": args.cloud, "displayName": args.displayName, "environment": args.environment, @@ -52,6 +53,12 @@ export function getFlinkArtifact(args: GetFlinkArtifactArgs, opts?: pulumi.Invok * A collection of arguments for invoking getFlinkArtifact. */ export interface GetFlinkArtifactArgs { + /** + * (Required String) Java class or alias for the Flink Artifact as provided by developer. + * + * @deprecated The "class" attribute has been deprecated and will be removed in the next major version of the provider (3.0.0). Refer to the Upgrade Guide at https://registry.terraform.io/providers/confluentinc/confluent/latest/docs/guides/version-3-upgrade for more details. The guide will be published once version 3.0.0 is released. + */ + class?: string; /** * The cloud service provider that hosts the region. Accepted values are: `AWS`, `AZURE`, and `GCP`. */ @@ -83,6 +90,8 @@ export interface GetFlinkArtifactResult { readonly apiVersion: string; /** * (Required String) Java class or alias for the Flink Artifact as provided by developer. + * + * @deprecated The "class" attribute has been deprecated and will be removed in the next major version of the provider (3.0.0). Refer to the Upgrade Guide at https://registry.terraform.io/providers/confluentinc/confluent/latest/docs/guides/version-3-upgrade for more details. The guide will be published once version 3.0.0 is released. */ readonly class: string; readonly cloud: string; @@ -95,6 +104,7 @@ export interface GetFlinkArtifactResult { */ readonly description: string; readonly displayName: string; + readonly documentationLink: string; readonly environment: outputs.GetFlinkArtifactEnvironment; readonly id: string; /** @@ -142,6 +152,7 @@ export interface GetFlinkArtifactResult { export function getFlinkArtifactOutput(args: GetFlinkArtifactOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("confluentcloud:index/getFlinkArtifact:getFlinkArtifact", { + "class": args.class, "cloud": args.cloud, "displayName": args.displayName, "environment": args.environment, @@ -154,6 +165,12 @@ export function getFlinkArtifactOutput(args: GetFlinkArtifactOutputArgs, opts?: * A collection of arguments for invoking getFlinkArtifact. */ export interface GetFlinkArtifactOutputArgs { + /** + * (Required String) Java class or alias for the Flink Artifact as provided by developer. + * + * @deprecated The "class" attribute has been deprecated and will be removed in the next major version of the provider (3.0.0). Refer to the Upgrade Guide at https://registry.terraform.io/providers/confluentinc/confluent/latest/docs/guides/version-3-upgrade for more details. The guide will be published once version 3.0.0 is released. + */ + class?: pulumi.Input; /** * The cloud service provider that hosts the region. Accepted values are: `AWS`, `AZURE`, and `GCP`. */ diff --git a/sdk/nodejs/getSchema.ts b/sdk/nodejs/getSchema.ts index 7efebfc4..9edb0190 100644 --- a/sdk/nodejs/getSchema.ts +++ b/sdk/nodejs/getSchema.ts @@ -113,7 +113,7 @@ export interface GetSchemaResult { /** * (Optional Block) The list of schema rules. See [Data Contracts for Schema Registry](https://docs.confluent.io/platform/7.5/schema-registry/fundamentals/data-contracts.html#rules) for more details. For example, these rules can enforce that a field that contains sensitive information must be encrypted, or that a message containing an invalid age must be sent to a dead letter queue. */ - readonly ruleset: outputs.GetSchemaRuleset; + readonly ruleset?: outputs.GetSchemaRuleset; /** * (Required String) The schema string, for example, `file("./schema_version_1.avsc")`. */ diff --git a/sdk/nodejs/schema.ts b/sdk/nodejs/schema.ts index ea2e1e59..fc0dfe2e 100644 --- a/sdk/nodejs/schema.ts +++ b/sdk/nodejs/schema.ts @@ -94,7 +94,7 @@ export class Schema extends pulumi.CustomResource { /** * The list of schema rules. See [Data Contracts for Schema Registry](https://docs.confluent.io/platform/7.5/schema-registry/fundamentals/data-contracts.html#rules) for more details. For example, these rules can enforce that a field that contains sensitive information must be encrypted, or that a message containing an invalid age must be sent to a dead letter queue. */ - public readonly ruleset!: pulumi.Output; + public readonly ruleset!: pulumi.Output; /** * The schema string, for example, `file("./schema_version_1.avsc")`. */ diff --git a/sdk/python/pulumi_confluentcloud/flink_artifact.py b/sdk/python/pulumi_confluentcloud/flink_artifact.py index 97d92a5a..b61d0db5 100644 --- a/sdk/python/pulumi_confluentcloud/flink_artifact.py +++ b/sdk/python/pulumi_confluentcloud/flink_artifact.py @@ -21,53 +21,49 @@ @pulumi.input_type class FlinkArtifactArgs: def __init__(__self__, *, - class_: pulumi.Input[str], cloud: pulumi.Input[str], display_name: pulumi.Input[str], environment: pulumi.Input['FlinkArtifactEnvironmentArgs'], region: pulumi.Input[str], artifact_file: Optional[pulumi.Input[str]] = None, + class_: Optional[pulumi.Input[str]] = None, content_format: Optional[pulumi.Input[str]] = None, description: Optional[pulumi.Input[str]] = None, + documentation_link: Optional[pulumi.Input[str]] = None, runtime_language: Optional[pulumi.Input[str]] = None): """ The set of arguments for constructing a FlinkArtifact resource. - :param pulumi.Input[str] class_: Java class or alias for the Flink Artifact as provided by developer. :param pulumi.Input[str] cloud: The cloud service provider that runs the Flink Artifact. - :param pulumi.Input[str] display_name: The display name of Flink Artifact. + :param pulumi.Input[str] display_name: The unique name of the Flink Artifact per cloud, region, environment scope. :param pulumi.Input['FlinkArtifactEnvironmentArgs'] environment: Environment objects represent an isolated namespace for your Confluent resources for organizational purposes. :param pulumi.Input[str] region: The cloud service provider region that hosts the Flink Artifact. :param pulumi.Input[str] artifact_file: The artifact file for Flink Artifact. - :param pulumi.Input[str] content_format: (Optional String) Archive format of the Flink Artifact. + :param pulumi.Input[str] class_: Java class or alias for the Flink Artifact as provided by developer. + :param pulumi.Input[str] content_format: (Optional String) Archive format of the Flink Artifact. Accepted values are: `JAR`, `ZIP`. :param pulumi.Input[str] description: (Optional String) Description of the Flink Artifact. - :param pulumi.Input[str] runtime_language: (Optional String) Runtime language of the Flink Artifact. The default runtime language is Java. + :param pulumi.Input[str] documentation_link: (Optional String) Documentation link of the Flink Artifact. + :param pulumi.Input[str] runtime_language: (Optional String) Runtime language of the Flink Artifact as `Python` or `Java`. Defaults to `Java`. """ - pulumi.set(__self__, "class_", class_) pulumi.set(__self__, "cloud", cloud) pulumi.set(__self__, "display_name", display_name) pulumi.set(__self__, "environment", environment) pulumi.set(__self__, "region", region) if artifact_file is not None: pulumi.set(__self__, "artifact_file", artifact_file) + if class_ is not None: + warnings.warn("""The \"class\" attribute has been deprecated and will be removed in the next major version of the provider (3.0.0). Refer to the Upgrade Guide at https://registry.terraform.io/providers/confluentinc/confluent/latest/docs/guides/version-3-upgrade for more details. The guide will be published once version 3.0.0 is released.""", DeprecationWarning) + pulumi.log.warn("""class_ is deprecated: The \"class\" attribute has been deprecated and will be removed in the next major version of the provider (3.0.0). Refer to the Upgrade Guide at https://registry.terraform.io/providers/confluentinc/confluent/latest/docs/guides/version-3-upgrade for more details. The guide will be published once version 3.0.0 is released.""") + if class_ is not None: + pulumi.set(__self__, "class_", class_) if content_format is not None: pulumi.set(__self__, "content_format", content_format) if description is not None: pulumi.set(__self__, "description", description) + if documentation_link is not None: + pulumi.set(__self__, "documentation_link", documentation_link) if runtime_language is not None: pulumi.set(__self__, "runtime_language", runtime_language) - @property - @pulumi.getter(name="class") - def class_(self) -> pulumi.Input[str]: - """ - Java class or alias for the Flink Artifact as provided by developer. - """ - return pulumi.get(self, "class_") - - @class_.setter - def class_(self, value: pulumi.Input[str]): - pulumi.set(self, "class_", value) - @property @pulumi.getter def cloud(self) -> pulumi.Input[str]: @@ -84,7 +80,7 @@ def cloud(self, value: pulumi.Input[str]): @pulumi.getter(name="displayName") def display_name(self) -> pulumi.Input[str]: """ - The display name of Flink Artifact. + The unique name of the Flink Artifact per cloud, region, environment scope. """ return pulumi.get(self, "display_name") @@ -128,11 +124,24 @@ def artifact_file(self) -> Optional[pulumi.Input[str]]: def artifact_file(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "artifact_file", value) + @property + @pulumi.getter(name="class") + @_utilities.deprecated("""The \"class\" attribute has been deprecated and will be removed in the next major version of the provider (3.0.0). Refer to the Upgrade Guide at https://registry.terraform.io/providers/confluentinc/confluent/latest/docs/guides/version-3-upgrade for more details. The guide will be published once version 3.0.0 is released.""") + def class_(self) -> Optional[pulumi.Input[str]]: + """ + Java class or alias for the Flink Artifact as provided by developer. + """ + return pulumi.get(self, "class_") + + @class_.setter + def class_(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "class_", value) + @property @pulumi.getter(name="contentFormat") def content_format(self) -> Optional[pulumi.Input[str]]: """ - (Optional String) Archive format of the Flink Artifact. + (Optional String) Archive format of the Flink Artifact. Accepted values are: `JAR`, `ZIP`. """ return pulumi.get(self, "content_format") @@ -152,11 +161,23 @@ def description(self) -> Optional[pulumi.Input[str]]: def description(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "description", value) + @property + @pulumi.getter(name="documentationLink") + def documentation_link(self) -> Optional[pulumi.Input[str]]: + """ + (Optional String) Documentation link of the Flink Artifact. + """ + return pulumi.get(self, "documentation_link") + + @documentation_link.setter + def documentation_link(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "documentation_link", value) + @property @pulumi.getter(name="runtimeLanguage") def runtime_language(self) -> Optional[pulumi.Input[str]]: """ - (Optional String) Runtime language of the Flink Artifact. The default runtime language is Java. + (Optional String) Runtime language of the Flink Artifact as `Python` or `Java`. Defaults to `Java`. """ return pulumi.get(self, "runtime_language") @@ -175,6 +196,7 @@ def __init__(__self__, *, content_format: Optional[pulumi.Input[str]] = None, description: Optional[pulumi.Input[str]] = None, display_name: Optional[pulumi.Input[str]] = None, + documentation_link: Optional[pulumi.Input[str]] = None, environment: Optional[pulumi.Input['FlinkArtifactEnvironmentArgs']] = None, kind: Optional[pulumi.Input[str]] = None, region: Optional[pulumi.Input[str]] = None, @@ -186,19 +208,23 @@ def __init__(__self__, *, :param pulumi.Input[str] artifact_file: The artifact file for Flink Artifact. :param pulumi.Input[str] class_: Java class or alias for the Flink Artifact as provided by developer. :param pulumi.Input[str] cloud: The cloud service provider that runs the Flink Artifact. - :param pulumi.Input[str] content_format: (Optional String) Archive format of the Flink Artifact. + :param pulumi.Input[str] content_format: (Optional String) Archive format of the Flink Artifact. Accepted values are: `JAR`, `ZIP`. :param pulumi.Input[str] description: (Optional String) Description of the Flink Artifact. - :param pulumi.Input[str] display_name: The display name of Flink Artifact. + :param pulumi.Input[str] display_name: The unique name of the Flink Artifact per cloud, region, environment scope. + :param pulumi.Input[str] documentation_link: (Optional String) Documentation link of the Flink Artifact. :param pulumi.Input['FlinkArtifactEnvironmentArgs'] environment: Environment objects represent an isolated namespace for your Confluent resources for organizational purposes. :param pulumi.Input[str] kind: (Required String) The kind of the Flink Artifact Pool, for example, `FlinkArtifact`. :param pulumi.Input[str] region: The cloud service provider region that hosts the Flink Artifact. - :param pulumi.Input[str] runtime_language: (Optional String) Runtime language of the Flink Artifact. The default runtime language is Java. + :param pulumi.Input[str] runtime_language: (Optional String) Runtime language of the Flink Artifact as `Python` or `Java`. Defaults to `Java`. :param pulumi.Input[Sequence[pulumi.Input['FlinkArtifactVersionArgs']]] versions: List of versions for this Flink Artifact. """ if api_version is not None: pulumi.set(__self__, "api_version", api_version) if artifact_file is not None: pulumi.set(__self__, "artifact_file", artifact_file) + if class_ is not None: + warnings.warn("""The \"class\" attribute has been deprecated and will be removed in the next major version of the provider (3.0.0). Refer to the Upgrade Guide at https://registry.terraform.io/providers/confluentinc/confluent/latest/docs/guides/version-3-upgrade for more details. The guide will be published once version 3.0.0 is released.""", DeprecationWarning) + pulumi.log.warn("""class_ is deprecated: The \"class\" attribute has been deprecated and will be removed in the next major version of the provider (3.0.0). Refer to the Upgrade Guide at https://registry.terraform.io/providers/confluentinc/confluent/latest/docs/guides/version-3-upgrade for more details. The guide will be published once version 3.0.0 is released.""") if class_ is not None: pulumi.set(__self__, "class_", class_) if cloud is not None: @@ -209,6 +235,8 @@ def __init__(__self__, *, pulumi.set(__self__, "description", description) if display_name is not None: pulumi.set(__self__, "display_name", display_name) + if documentation_link is not None: + pulumi.set(__self__, "documentation_link", documentation_link) if environment is not None: pulumi.set(__self__, "environment", environment) if kind is not None: @@ -246,6 +274,7 @@ def artifact_file(self, value: Optional[pulumi.Input[str]]): @property @pulumi.getter(name="class") + @_utilities.deprecated("""The \"class\" attribute has been deprecated and will be removed in the next major version of the provider (3.0.0). Refer to the Upgrade Guide at https://registry.terraform.io/providers/confluentinc/confluent/latest/docs/guides/version-3-upgrade for more details. The guide will be published once version 3.0.0 is released.""") def class_(self) -> Optional[pulumi.Input[str]]: """ Java class or alias for the Flink Artifact as provided by developer. @@ -272,7 +301,7 @@ def cloud(self, value: Optional[pulumi.Input[str]]): @pulumi.getter(name="contentFormat") def content_format(self) -> Optional[pulumi.Input[str]]: """ - (Optional String) Archive format of the Flink Artifact. + (Optional String) Archive format of the Flink Artifact. Accepted values are: `JAR`, `ZIP`. """ return pulumi.get(self, "content_format") @@ -296,7 +325,7 @@ def description(self, value: Optional[pulumi.Input[str]]): @pulumi.getter(name="displayName") def display_name(self) -> Optional[pulumi.Input[str]]: """ - The display name of Flink Artifact. + The unique name of the Flink Artifact per cloud, region, environment scope. """ return pulumi.get(self, "display_name") @@ -304,6 +333,18 @@ def display_name(self) -> Optional[pulumi.Input[str]]: def display_name(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "display_name", value) + @property + @pulumi.getter(name="documentationLink") + def documentation_link(self) -> Optional[pulumi.Input[str]]: + """ + (Optional String) Documentation link of the Flink Artifact. + """ + return pulumi.get(self, "documentation_link") + + @documentation_link.setter + def documentation_link(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "documentation_link", value) + @property @pulumi.getter def environment(self) -> Optional[pulumi.Input['FlinkArtifactEnvironmentArgs']]: @@ -344,7 +385,7 @@ def region(self, value: Optional[pulumi.Input[str]]): @pulumi.getter(name="runtimeLanguage") def runtime_language(self) -> Optional[pulumi.Input[str]]: """ - (Optional String) Runtime language of the Flink Artifact. The default runtime language is Java. + (Optional String) Runtime language of the Flink Artifact as `Python` or `Java`. Defaults to `Java`. """ return pulumi.get(self, "runtime_language") @@ -376,6 +417,7 @@ def __init__(__self__, content_format: Optional[pulumi.Input[str]] = None, description: Optional[pulumi.Input[str]] = None, display_name: Optional[pulumi.Input[str]] = None, + documentation_link: Optional[pulumi.Input[str]] = None, environment: Optional[pulumi.Input[Union['FlinkArtifactEnvironmentArgs', 'FlinkArtifactEnvironmentArgsDict']]] = None, region: Optional[pulumi.Input[str]] = None, runtime_language: Optional[pulumi.Input[str]] = None, @@ -389,10 +431,9 @@ def __init__(__self__, development = confluentcloud.Environment("development", display_name="Development") main = confluentcloud.FlinkArtifact("main", - class_="io.confluent.example.SumScalarFunction", - region="us-west-2", cloud="AWS", - display_name="flink_sumscalar_artifact", + region="us-west-2", + display_name="my_flink_sumscalar_artifact", content_format="JAR", environment={ "id": development.id, @@ -418,12 +459,13 @@ def __init__(__self__, :param pulumi.Input[str] artifact_file: The artifact file for Flink Artifact. :param pulumi.Input[str] class_: Java class or alias for the Flink Artifact as provided by developer. :param pulumi.Input[str] cloud: The cloud service provider that runs the Flink Artifact. - :param pulumi.Input[str] content_format: (Optional String) Archive format of the Flink Artifact. + :param pulumi.Input[str] content_format: (Optional String) Archive format of the Flink Artifact. Accepted values are: `JAR`, `ZIP`. :param pulumi.Input[str] description: (Optional String) Description of the Flink Artifact. - :param pulumi.Input[str] display_name: The display name of Flink Artifact. + :param pulumi.Input[str] display_name: The unique name of the Flink Artifact per cloud, region, environment scope. + :param pulumi.Input[str] documentation_link: (Optional String) Documentation link of the Flink Artifact. :param pulumi.Input[Union['FlinkArtifactEnvironmentArgs', 'FlinkArtifactEnvironmentArgsDict']] environment: Environment objects represent an isolated namespace for your Confluent resources for organizational purposes. :param pulumi.Input[str] region: The cloud service provider region that hosts the Flink Artifact. - :param pulumi.Input[str] runtime_language: (Optional String) Runtime language of the Flink Artifact. The default runtime language is Java. + :param pulumi.Input[str] runtime_language: (Optional String) Runtime language of the Flink Artifact as `Python` or `Java`. Defaults to `Java`. """ ... @overload @@ -440,10 +482,9 @@ def __init__(__self__, development = confluentcloud.Environment("development", display_name="Development") main = confluentcloud.FlinkArtifact("main", - class_="io.confluent.example.SumScalarFunction", - region="us-west-2", cloud="AWS", - display_name="flink_sumscalar_artifact", + region="us-west-2", + display_name="my_flink_sumscalar_artifact", content_format="JAR", environment={ "id": development.id, @@ -485,6 +526,7 @@ def _internal_init(__self__, content_format: Optional[pulumi.Input[str]] = None, description: Optional[pulumi.Input[str]] = None, display_name: Optional[pulumi.Input[str]] = None, + documentation_link: Optional[pulumi.Input[str]] = None, environment: Optional[pulumi.Input[Union['FlinkArtifactEnvironmentArgs', 'FlinkArtifactEnvironmentArgsDict']]] = None, region: Optional[pulumi.Input[str]] = None, runtime_language: Optional[pulumi.Input[str]] = None, @@ -498,8 +540,6 @@ def _internal_init(__self__, __props__ = FlinkArtifactArgs.__new__(FlinkArtifactArgs) __props__.__dict__["artifact_file"] = artifact_file - if class_ is None and not opts.urn: - raise TypeError("Missing required property 'class_'") __props__.__dict__["class_"] = class_ if cloud is None and not opts.urn: raise TypeError("Missing required property 'cloud'") @@ -509,6 +549,7 @@ def _internal_init(__self__, if display_name is None and not opts.urn: raise TypeError("Missing required property 'display_name'") __props__.__dict__["display_name"] = display_name + __props__.__dict__["documentation_link"] = documentation_link if environment is None and not opts.urn: raise TypeError("Missing required property 'environment'") __props__.__dict__["environment"] = environment @@ -536,6 +577,7 @@ def get(resource_name: str, content_format: Optional[pulumi.Input[str]] = None, description: Optional[pulumi.Input[str]] = None, display_name: Optional[pulumi.Input[str]] = None, + documentation_link: Optional[pulumi.Input[str]] = None, environment: Optional[pulumi.Input[Union['FlinkArtifactEnvironmentArgs', 'FlinkArtifactEnvironmentArgsDict']]] = None, kind: Optional[pulumi.Input[str]] = None, region: Optional[pulumi.Input[str]] = None, @@ -552,13 +594,14 @@ def get(resource_name: str, :param pulumi.Input[str] artifact_file: The artifact file for Flink Artifact. :param pulumi.Input[str] class_: Java class or alias for the Flink Artifact as provided by developer. :param pulumi.Input[str] cloud: The cloud service provider that runs the Flink Artifact. - :param pulumi.Input[str] content_format: (Optional String) Archive format of the Flink Artifact. + :param pulumi.Input[str] content_format: (Optional String) Archive format of the Flink Artifact. Accepted values are: `JAR`, `ZIP`. :param pulumi.Input[str] description: (Optional String) Description of the Flink Artifact. - :param pulumi.Input[str] display_name: The display name of Flink Artifact. + :param pulumi.Input[str] display_name: The unique name of the Flink Artifact per cloud, region, environment scope. + :param pulumi.Input[str] documentation_link: (Optional String) Documentation link of the Flink Artifact. :param pulumi.Input[Union['FlinkArtifactEnvironmentArgs', 'FlinkArtifactEnvironmentArgsDict']] environment: Environment objects represent an isolated namespace for your Confluent resources for organizational purposes. :param pulumi.Input[str] kind: (Required String) The kind of the Flink Artifact Pool, for example, `FlinkArtifact`. :param pulumi.Input[str] region: The cloud service provider region that hosts the Flink Artifact. - :param pulumi.Input[str] runtime_language: (Optional String) Runtime language of the Flink Artifact. The default runtime language is Java. + :param pulumi.Input[str] runtime_language: (Optional String) Runtime language of the Flink Artifact as `Python` or `Java`. Defaults to `Java`. :param pulumi.Input[Sequence[pulumi.Input[Union['FlinkArtifactVersionArgs', 'FlinkArtifactVersionArgsDict']]]] versions: List of versions for this Flink Artifact. """ opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) @@ -572,6 +615,7 @@ def get(resource_name: str, __props__.__dict__["content_format"] = content_format __props__.__dict__["description"] = description __props__.__dict__["display_name"] = display_name + __props__.__dict__["documentation_link"] = documentation_link __props__.__dict__["environment"] = environment __props__.__dict__["kind"] = kind __props__.__dict__["region"] = region @@ -597,7 +641,8 @@ def artifact_file(self) -> pulumi.Output[Optional[str]]: @property @pulumi.getter(name="class") - def class_(self) -> pulumi.Output[str]: + @_utilities.deprecated("""The \"class\" attribute has been deprecated and will be removed in the next major version of the provider (3.0.0). Refer to the Upgrade Guide at https://registry.terraform.io/providers/confluentinc/confluent/latest/docs/guides/version-3-upgrade for more details. The guide will be published once version 3.0.0 is released.""") + def class_(self) -> pulumi.Output[Optional[str]]: """ Java class or alias for the Flink Artifact as provided by developer. """ @@ -615,7 +660,7 @@ def cloud(self) -> pulumi.Output[str]: @pulumi.getter(name="contentFormat") def content_format(self) -> pulumi.Output[str]: """ - (Optional String) Archive format of the Flink Artifact. + (Optional String) Archive format of the Flink Artifact. Accepted values are: `JAR`, `ZIP`. """ return pulumi.get(self, "content_format") @@ -631,10 +676,18 @@ def description(self) -> pulumi.Output[Optional[str]]: @pulumi.getter(name="displayName") def display_name(self) -> pulumi.Output[str]: """ - The display name of Flink Artifact. + The unique name of the Flink Artifact per cloud, region, environment scope. """ return pulumi.get(self, "display_name") + @property + @pulumi.getter(name="documentationLink") + def documentation_link(self) -> pulumi.Output[Optional[str]]: + """ + (Optional String) Documentation link of the Flink Artifact. + """ + return pulumi.get(self, "documentation_link") + @property @pulumi.getter def environment(self) -> pulumi.Output['outputs.FlinkArtifactEnvironment']: @@ -663,7 +716,7 @@ def region(self) -> pulumi.Output[str]: @pulumi.getter(name="runtimeLanguage") def runtime_language(self) -> pulumi.Output[Optional[str]]: """ - (Optional String) Runtime language of the Flink Artifact. The default runtime language is Java. + (Optional String) Runtime language of the Flink Artifact as `Python` or `Java`. Defaults to `Java`. """ return pulumi.get(self, "runtime_language") diff --git a/sdk/python/pulumi_confluentcloud/flink_statement.py b/sdk/python/pulumi_confluentcloud/flink_statement.py index 5ea4c042..38e20f12 100644 --- a/sdk/python/pulumi_confluentcloud/flink_statement.py +++ b/sdk/python/pulumi_confluentcloud/flink_statement.py @@ -28,6 +28,7 @@ def __init__(__self__, *, organization: Optional[pulumi.Input['FlinkStatementOrganizationArgs']] = None, principal: Optional[pulumi.Input['FlinkStatementPrincipalArgs']] = None, properties: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, + properties_sensitive: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, rest_endpoint: Optional[pulumi.Input[str]] = None, statement_name: Optional[pulumi.Input[str]] = None, stopped: Optional[pulumi.Input[bool]] = None): @@ -36,6 +37,7 @@ def __init__(__self__, *, :param pulumi.Input[str] statement: The raw SQL text statement, for example, `SELECT CURRENT_TIMESTAMP;`. :param pulumi.Input['FlinkStatementCredentialsArgs'] credentials: The Cluster API Credentials. :param pulumi.Input[Mapping[str, pulumi.Input[str]]] properties: The custom topic settings to set: + :param pulumi.Input[Mapping[str, pulumi.Input[str]]] properties_sensitive: Block for sensitive statement properties: :param pulumi.Input[str] rest_endpoint: The REST endpoint of the Flink region, for example, `https://flink.us-east-1.aws.confluent.cloud`). :param pulumi.Input[str] statement_name: The ID of the Flink Statement, for example, `cfeab4fe-b62c-49bd-9e99-51cc98c77a67`. :param pulumi.Input[bool] stopped: Indicates whether the statement should be stopped. @@ -53,6 +55,8 @@ def __init__(__self__, *, pulumi.set(__self__, "principal", principal) if properties is not None: pulumi.set(__self__, "properties", properties) + if properties_sensitive is not None: + pulumi.set(__self__, "properties_sensitive", properties_sensitive) if rest_endpoint is not None: pulumi.set(__self__, "rest_endpoint", rest_endpoint) if statement_name is not None: @@ -132,6 +136,18 @@ def properties(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]: def properties(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]): pulumi.set(self, "properties", value) + @property + @pulumi.getter(name="propertiesSensitive") + def properties_sensitive(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]: + """ + Block for sensitive statement properties: + """ + return pulumi.get(self, "properties_sensitive") + + @properties_sensitive.setter + def properties_sensitive(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]): + pulumi.set(self, "properties_sensitive", value) + @property @pulumi.getter(name="restEndpoint") def rest_endpoint(self) -> Optional[pulumi.Input[str]]: @@ -180,6 +196,7 @@ def __init__(__self__, *, organization: Optional[pulumi.Input['FlinkStatementOrganizationArgs']] = None, principal: Optional[pulumi.Input['FlinkStatementPrincipalArgs']] = None, properties: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, + properties_sensitive: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, rest_endpoint: Optional[pulumi.Input[str]] = None, statement: Optional[pulumi.Input[str]] = None, statement_name: Optional[pulumi.Input[str]] = None, @@ -196,6 +213,7 @@ def __init__(__self__, *, ``` :param pulumi.Input[str] latest_offsets_timestamp: (Optional String) The date and time at which the Kafka topic offsets were added to the statement status. It is represented in RFC3339 format and is in UTC. For example, `2023-03-31T00:00:00-00:00`. :param pulumi.Input[Mapping[str, pulumi.Input[str]]] properties: The custom topic settings to set: + :param pulumi.Input[Mapping[str, pulumi.Input[str]]] properties_sensitive: Block for sensitive statement properties: :param pulumi.Input[str] rest_endpoint: The REST endpoint of the Flink region, for example, `https://flink.us-east-1.aws.confluent.cloud`). :param pulumi.Input[str] statement: The raw SQL text statement, for example, `SELECT CURRENT_TIMESTAMP;`. :param pulumi.Input[str] statement_name: The ID of the Flink Statement, for example, `cfeab4fe-b62c-49bd-9e99-51cc98c77a67`. @@ -217,6 +235,8 @@ def __init__(__self__, *, pulumi.set(__self__, "principal", principal) if properties is not None: pulumi.set(__self__, "properties", properties) + if properties_sensitive is not None: + pulumi.set(__self__, "properties_sensitive", properties_sensitive) if rest_endpoint is not None: pulumi.set(__self__, "rest_endpoint", rest_endpoint) if statement is not None: @@ -316,6 +336,18 @@ def properties(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]: def properties(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]): pulumi.set(self, "properties", value) + @property + @pulumi.getter(name="propertiesSensitive") + def properties_sensitive(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]: + """ + Block for sensitive statement properties: + """ + return pulumi.get(self, "properties_sensitive") + + @properties_sensitive.setter + def properties_sensitive(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]): + pulumi.set(self, "properties_sensitive", value) + @property @pulumi.getter(name="restEndpoint") def rest_endpoint(self) -> Optional[pulumi.Input[str]]: @@ -376,6 +408,7 @@ def __init__(__self__, organization: Optional[pulumi.Input[Union['FlinkStatementOrganizationArgs', 'FlinkStatementOrganizationArgsDict']]] = None, principal: Optional[pulumi.Input[Union['FlinkStatementPrincipalArgs', 'FlinkStatementPrincipalArgsDict']]] = None, properties: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, + properties_sensitive: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, rest_endpoint: Optional[pulumi.Input[str]] = None, statement: Optional[pulumi.Input[str]] = None, statement_name: Optional[pulumi.Input[str]] = None, @@ -429,6 +462,22 @@ def __init__(__self__, }) ``` + Example of `FlinkStatement` that creates a model: + ```python + import pulumi + import pulumi_confluentcloud as confluentcloud + + example = confluentcloud.FlinkStatement("example", + statement="CREATE MODEL `vector_encoding` INPUT (input STRING) OUTPUT (vector ARRAY) WITH( 'TASK' = 'classification','PROVIDER' = 'OPENAI','OPENAI.ENDPOINT' = 'https://api.openai.com/v1/embeddings','OPENAI.API_KEY' = '{{sessionconfig/sql.secrets.openaikey}}');", + properties={ + "sql.current-catalog": confluent_environment_display_name, + "sql.current-database": confluent_kafka_cluster_display_name, + }, + properties_sensitive={ + "sql.secrets.openaikey": "***REDACTED***", + }) + ``` + ## Getting Started The following end-to-end example might help to get started with [Flink Statements](https://docs.confluent.io/cloud/current/flink/get-started/overview.html): @@ -471,6 +520,7 @@ def __init__(__self__, :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[Union['FlinkStatementCredentialsArgs', 'FlinkStatementCredentialsArgsDict']] credentials: The Cluster API Credentials. :param pulumi.Input[Mapping[str, pulumi.Input[str]]] properties: The custom topic settings to set: + :param pulumi.Input[Mapping[str, pulumi.Input[str]]] properties_sensitive: Block for sensitive statement properties: :param pulumi.Input[str] rest_endpoint: The REST endpoint of the Flink region, for example, `https://flink.us-east-1.aws.confluent.cloud`). :param pulumi.Input[str] statement: The raw SQL text statement, for example, `SELECT CURRENT_TIMESTAMP;`. :param pulumi.Input[str] statement_name: The ID of the Flink Statement, for example, `cfeab4fe-b62c-49bd-9e99-51cc98c77a67`. @@ -530,6 +580,22 @@ def __init__(__self__, }) ``` + Example of `FlinkStatement` that creates a model: + ```python + import pulumi + import pulumi_confluentcloud as confluentcloud + + example = confluentcloud.FlinkStatement("example", + statement="CREATE MODEL `vector_encoding` INPUT (input STRING) OUTPUT (vector ARRAY) WITH( 'TASK' = 'classification','PROVIDER' = 'OPENAI','OPENAI.ENDPOINT' = 'https://api.openai.com/v1/embeddings','OPENAI.API_KEY' = '{{sessionconfig/sql.secrets.openaikey}}');", + properties={ + "sql.current-catalog": confluent_environment_display_name, + "sql.current-database": confluent_kafka_cluster_display_name, + }, + properties_sensitive={ + "sql.secrets.openaikey": "***REDACTED***", + }) + ``` + ## Getting Started The following end-to-end example might help to get started with [Flink Statements](https://docs.confluent.io/cloud/current/flink/get-started/overview.html): @@ -589,6 +655,7 @@ def _internal_init(__self__, organization: Optional[pulumi.Input[Union['FlinkStatementOrganizationArgs', 'FlinkStatementOrganizationArgsDict']]] = None, principal: Optional[pulumi.Input[Union['FlinkStatementPrincipalArgs', 'FlinkStatementPrincipalArgsDict']]] = None, properties: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, + properties_sensitive: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, rest_endpoint: Optional[pulumi.Input[str]] = None, statement: Optional[pulumi.Input[str]] = None, statement_name: Optional[pulumi.Input[str]] = None, @@ -608,6 +675,7 @@ def _internal_init(__self__, __props__.__dict__["organization"] = organization __props__.__dict__["principal"] = principal __props__.__dict__["properties"] = properties + __props__.__dict__["properties_sensitive"] = None if properties_sensitive is None else pulumi.Output.secret(properties_sensitive) __props__.__dict__["rest_endpoint"] = rest_endpoint if statement is None and not opts.urn: raise TypeError("Missing required property 'statement'") @@ -616,7 +684,7 @@ def _internal_init(__self__, __props__.__dict__["stopped"] = stopped __props__.__dict__["latest_offsets"] = None __props__.__dict__["latest_offsets_timestamp"] = None - secret_opts = pulumi.ResourceOptions(additional_secret_outputs=["credentials"]) + secret_opts = pulumi.ResourceOptions(additional_secret_outputs=["credentials", "propertiesSensitive"]) opts = pulumi.ResourceOptions.merge(opts, secret_opts) super(FlinkStatement, __self__).__init__( 'confluentcloud:index/flinkStatement:FlinkStatement', @@ -636,6 +704,7 @@ def get(resource_name: str, organization: Optional[pulumi.Input[Union['FlinkStatementOrganizationArgs', 'FlinkStatementOrganizationArgsDict']]] = None, principal: Optional[pulumi.Input[Union['FlinkStatementPrincipalArgs', 'FlinkStatementPrincipalArgsDict']]] = None, properties: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, + properties_sensitive: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, rest_endpoint: Optional[pulumi.Input[str]] = None, statement: Optional[pulumi.Input[str]] = None, statement_name: Optional[pulumi.Input[str]] = None, @@ -657,6 +726,7 @@ def get(resource_name: str, ``` :param pulumi.Input[str] latest_offsets_timestamp: (Optional String) The date and time at which the Kafka topic offsets were added to the statement status. It is represented in RFC3339 format and is in UTC. For example, `2023-03-31T00:00:00-00:00`. :param pulumi.Input[Mapping[str, pulumi.Input[str]]] properties: The custom topic settings to set: + :param pulumi.Input[Mapping[str, pulumi.Input[str]]] properties_sensitive: Block for sensitive statement properties: :param pulumi.Input[str] rest_endpoint: The REST endpoint of the Flink region, for example, `https://flink.us-east-1.aws.confluent.cloud`). :param pulumi.Input[str] statement: The raw SQL text statement, for example, `SELECT CURRENT_TIMESTAMP;`. :param pulumi.Input[str] statement_name: The ID of the Flink Statement, for example, `cfeab4fe-b62c-49bd-9e99-51cc98c77a67`. @@ -674,6 +744,7 @@ def get(resource_name: str, __props__.__dict__["organization"] = organization __props__.__dict__["principal"] = principal __props__.__dict__["properties"] = properties + __props__.__dict__["properties_sensitive"] = properties_sensitive __props__.__dict__["rest_endpoint"] = rest_endpoint __props__.__dict__["statement"] = statement __props__.__dict__["statement_name"] = statement_name @@ -738,6 +809,14 @@ def properties(self) -> pulumi.Output[Mapping[str, str]]: """ return pulumi.get(self, "properties") + @property + @pulumi.getter(name="propertiesSensitive") + def properties_sensitive(self) -> pulumi.Output[Mapping[str, str]]: + """ + Block for sensitive statement properties: + """ + return pulumi.get(self, "properties_sensitive") + @property @pulumi.getter(name="restEndpoint") def rest_endpoint(self) -> pulumi.Output[Optional[str]]: diff --git a/sdk/python/pulumi_confluentcloud/get_flink_artifact.py b/sdk/python/pulumi_confluentcloud/get_flink_artifact.py index 04e373c8..937e8762 100644 --- a/sdk/python/pulumi_confluentcloud/get_flink_artifact.py +++ b/sdk/python/pulumi_confluentcloud/get_flink_artifact.py @@ -28,7 +28,7 @@ class GetFlinkArtifactResult: """ A collection of values returned by getFlinkArtifact. """ - def __init__(__self__, api_version=None, class_=None, cloud=None, content_format=None, description=None, display_name=None, environment=None, id=None, kind=None, region=None, runtime_language=None, versions=None): + def __init__(__self__, api_version=None, class_=None, cloud=None, content_format=None, description=None, display_name=None, documentation_link=None, environment=None, id=None, kind=None, region=None, runtime_language=None, versions=None): if api_version and not isinstance(api_version, str): raise TypeError("Expected argument 'api_version' to be a str") pulumi.set(__self__, "api_version", api_version) @@ -47,6 +47,9 @@ def __init__(__self__, api_version=None, class_=None, cloud=None, content_format if display_name and not isinstance(display_name, str): raise TypeError("Expected argument 'display_name' to be a str") pulumi.set(__self__, "display_name", display_name) + if documentation_link and not isinstance(documentation_link, str): + raise TypeError("Expected argument 'documentation_link' to be a str") + pulumi.set(__self__, "documentation_link", documentation_link) if environment and not isinstance(environment, dict): raise TypeError("Expected argument 'environment' to be a dict") pulumi.set(__self__, "environment", environment) @@ -76,6 +79,7 @@ def api_version(self) -> str: @property @pulumi.getter(name="class") + @_utilities.deprecated("""The \"class\" attribute has been deprecated and will be removed in the next major version of the provider (3.0.0). Refer to the Upgrade Guide at https://registry.terraform.io/providers/confluentinc/confluent/latest/docs/guides/version-3-upgrade for more details. The guide will be published once version 3.0.0 is released.""") def class_(self) -> str: """ (Required String) Java class or alias for the Flink Artifact as provided by developer. @@ -108,6 +112,11 @@ def description(self) -> str: def display_name(self) -> str: return pulumi.get(self, "display_name") + @property + @pulumi.getter(name="documentationLink") + def documentation_link(self) -> str: + return pulumi.get(self, "documentation_link") + @property @pulumi.getter def environment(self) -> 'outputs.GetFlinkArtifactEnvironmentResult': @@ -157,6 +166,7 @@ def __await__(self): content_format=self.content_format, description=self.description, display_name=self.display_name, + documentation_link=self.documentation_link, environment=self.environment, id=self.id, kind=self.kind, @@ -165,7 +175,8 @@ def __await__(self): versions=self.versions) -def get_flink_artifact(cloud: Optional[str] = None, +def get_flink_artifact(class_: Optional[str] = None, + cloud: Optional[str] = None, display_name: Optional[str] = None, environment: Optional[Union['GetFlinkArtifactEnvironmentArgs', 'GetFlinkArtifactEnvironmentArgsDict']] = None, id: Optional[str] = None, @@ -195,6 +206,7 @@ def get_flink_artifact(cloud: Optional[str] = None, ``` + :param str class_: (Required String) Java class or alias for the Flink Artifact as provided by developer. :param str cloud: The cloud service provider that hosts the region. Accepted values are: `AWS`, `AZURE`, and `GCP`. :param str display_name: A human-readable name for the Flink Artifact. :param str id: The ID of the Flink Artifact, for example, `lfa-abc123`. @@ -203,6 +215,7 @@ def get_flink_artifact(cloud: Optional[str] = None, > **Note:** Exactly one from the `id` and `display_name` attributes must be specified. """ __args__ = dict() + __args__['class'] = class_ __args__['cloud'] = cloud __args__['displayName'] = display_name __args__['environment'] = environment @@ -218,13 +231,15 @@ def get_flink_artifact(cloud: Optional[str] = None, content_format=pulumi.get(__ret__, 'content_format'), description=pulumi.get(__ret__, 'description'), display_name=pulumi.get(__ret__, 'display_name'), + documentation_link=pulumi.get(__ret__, 'documentation_link'), environment=pulumi.get(__ret__, 'environment'), id=pulumi.get(__ret__, 'id'), kind=pulumi.get(__ret__, 'kind'), region=pulumi.get(__ret__, 'region'), runtime_language=pulumi.get(__ret__, 'runtime_language'), versions=pulumi.get(__ret__, 'versions')) -def get_flink_artifact_output(cloud: Optional[pulumi.Input[str]] = None, +def get_flink_artifact_output(class_: Optional[pulumi.Input[Optional[str]]] = None, + cloud: Optional[pulumi.Input[str]] = None, display_name: Optional[pulumi.Input[Optional[str]]] = None, environment: Optional[pulumi.Input[Union['GetFlinkArtifactEnvironmentArgs', 'GetFlinkArtifactEnvironmentArgsDict']]] = None, id: Optional[pulumi.Input[Optional[str]]] = None, @@ -254,6 +269,7 @@ def get_flink_artifact_output(cloud: Optional[pulumi.Input[str]] = None, ``` + :param str class_: (Required String) Java class or alias for the Flink Artifact as provided by developer. :param str cloud: The cloud service provider that hosts the region. Accepted values are: `AWS`, `AZURE`, and `GCP`. :param str display_name: A human-readable name for the Flink Artifact. :param str id: The ID of the Flink Artifact, for example, `lfa-abc123`. @@ -262,6 +278,7 @@ def get_flink_artifact_output(cloud: Optional[pulumi.Input[str]] = None, > **Note:** Exactly one from the `id` and `display_name` attributes must be specified. """ __args__ = dict() + __args__['class'] = class_ __args__['cloud'] = cloud __args__['displayName'] = display_name __args__['environment'] = environment @@ -276,6 +293,7 @@ def get_flink_artifact_output(cloud: Optional[pulumi.Input[str]] = None, content_format=pulumi.get(__response__, 'content_format'), description=pulumi.get(__response__, 'description'), display_name=pulumi.get(__response__, 'display_name'), + documentation_link=pulumi.get(__response__, 'documentation_link'), environment=pulumi.get(__response__, 'environment'), id=pulumi.get(__response__, 'id'), kind=pulumi.get(__response__, 'kind'), diff --git a/sdk/python/pulumi_confluentcloud/get_schema.py b/sdk/python/pulumi_confluentcloud/get_schema.py index 0875e2c4..0e174cb2 100644 --- a/sdk/python/pulumi_confluentcloud/get_schema.py +++ b/sdk/python/pulumi_confluentcloud/get_schema.py @@ -121,7 +121,7 @@ def rest_endpoint(self) -> Optional[str]: @property @pulumi.getter - def ruleset(self) -> 'outputs.GetSchemaRulesetResult': + def ruleset(self) -> Optional['outputs.GetSchemaRulesetResult']: """ (Optional Block) The list of schema rules. See [Data Contracts for Schema Registry](https://docs.confluent.io/platform/7.5/schema-registry/fundamentals/data-contracts.html#rules) for more details. For example, these rules can enforce that a field that contains sensitive information must be encrypted, or that a message containing an invalid age must be sent to a dead letter queue. """ diff --git a/sdk/python/pulumi_confluentcloud/schema.py b/sdk/python/pulumi_confluentcloud/schema.py index 93aad175..e10359ed 100644 --- a/sdk/python/pulumi_confluentcloud/schema.py +++ b/sdk/python/pulumi_confluentcloud/schema.py @@ -715,7 +715,7 @@ def rest_endpoint(self) -> pulumi.Output[Optional[str]]: @property @pulumi.getter - def ruleset(self) -> pulumi.Output['outputs.SchemaRuleset']: + def ruleset(self) -> pulumi.Output[Optional['outputs.SchemaRuleset']]: """ The list of schema rules. See [Data Contracts for Schema Registry](https://docs.confluent.io/platform/7.5/schema-registry/fundamentals/data-contracts.html#rules) for more details. For example, these rules can enforce that a field that contains sensitive information must be encrypted, or that a message containing an invalid age must be sent to a dead letter queue. """ diff --git a/upstream b/upstream index c9a013da..e69ed2be 160000 --- a/upstream +++ b/upstream @@ -1 +1 @@ -Subproject commit c9a013dab8dff017bdccdc898edd4ac7365ffeed +Subproject commit e69ed2bec0cb8202dccc9a026d85ef320cb40da3