Confluent v2.31.0 published on Friday, Jun 13, 2025 by Pulumi
confluentcloud.getConnectArtifact
Explore with Pulumi AI
confluentcloud.ConnectArtifact
data source represents a Connect Artifact in Confluent Cloud. Connect Artifacts are used to store and manage custom connector plugins in Confluent Cloud.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as confluentcloud from "@pulumi/confluentcloud";
const example = confluentcloud.getConnectArtifact({
id: "ca-123456",
environment: {
id: "env-123456",
},
cloud: "AWS",
});
export const artifactName = example.then(example => example.displayName);
export const artifactCloud = example.then(example => example.cloud);
export const artifactContentFormat = example.then(example => example.contentFormat);
export const artifactDescription = example.then(example => example.description);
import pulumi
import pulumi_confluentcloud as confluentcloud
example = confluentcloud.get_connect_artifact(id="ca-123456",
environment={
"id": "env-123456",
},
cloud="AWS")
pulumi.export("artifactName", example.display_name)
pulumi.export("artifactCloud", example.cloud)
pulumi.export("artifactContentFormat", example.content_format)
pulumi.export("artifactDescription", example.description)
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 {
example, err := confluentcloud.LookupConnectArtifact(ctx, &confluentcloud.LookupConnectArtifactArgs{
Id: "ca-123456",
Environment: confluentcloud.GetConnectArtifactEnvironment{
Id: "env-123456",
},
Cloud: "AWS",
}, nil)
if err != nil {
return err
}
ctx.Export("artifactName", example.DisplayName)
ctx.Export("artifactCloud", example.Cloud)
ctx.Export("artifactContentFormat", example.ContentFormat)
ctx.Export("artifactDescription", example.Description)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using ConfluentCloud = Pulumi.ConfluentCloud;
return await Deployment.RunAsync(() =>
{
var example = ConfluentCloud.GetConnectArtifact.Invoke(new()
{
Id = "ca-123456",
Environment = new ConfluentCloud.Inputs.GetConnectArtifactEnvironmentInputArgs
{
Id = "env-123456",
},
Cloud = "AWS",
});
return new Dictionary<string, object?>
{
["artifactName"] = example.Apply(getConnectArtifactResult => getConnectArtifactResult.DisplayName),
["artifactCloud"] = example.Apply(getConnectArtifactResult => getConnectArtifactResult.Cloud),
["artifactContentFormat"] = example.Apply(getConnectArtifactResult => getConnectArtifactResult.ContentFormat),
["artifactDescription"] = example.Apply(getConnectArtifactResult => getConnectArtifactResult.Description),
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.confluentcloud.ConfluentcloudFunctions;
import com.pulumi.confluentcloud.inputs.GetConnectArtifactArgs;
import com.pulumi.confluentcloud.inputs.GetConnectArtifactEnvironmentArgs;
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) {
final var example = ConfluentcloudFunctions.getConnectArtifact(GetConnectArtifactArgs.builder()
.id("ca-123456")
.environment(GetConnectArtifactEnvironmentArgs.builder()
.id("env-123456")
.build())
.cloud("AWS")
.build());
ctx.export("artifactName", example.displayName());
ctx.export("artifactCloud", example.cloud());
ctx.export("artifactContentFormat", example.contentFormat());
ctx.export("artifactDescription", example.description());
}
}
variables:
example:
fn::invoke:
function: confluentcloud:getConnectArtifact
arguments:
id: ca-123456
environment:
id: env-123456
cloud: AWS
outputs:
artifactName: ${example.displayName}
artifactCloud: ${example.cloud}
artifactContentFormat: ${example.contentFormat}
artifactDescription: ${example.description}
Using getConnectArtifact
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getConnectArtifact(args: GetConnectArtifactArgs, opts?: InvokeOptions): Promise<GetConnectArtifactResult>
function getConnectArtifactOutput(args: GetConnectArtifactOutputArgs, opts?: InvokeOptions): Output<GetConnectArtifactResult>
def get_connect_artifact(cloud: Optional[str] = None,
environment: Optional[GetConnectArtifactEnvironment] = None,
id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetConnectArtifactResult
def get_connect_artifact_output(cloud: Optional[pulumi.Input[str]] = None,
environment: Optional[pulumi.Input[GetConnectArtifactEnvironmentArgs]] = None,
id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetConnectArtifactResult]
func LookupConnectArtifact(ctx *Context, args *LookupConnectArtifactArgs, opts ...InvokeOption) (*LookupConnectArtifactResult, error)
func LookupConnectArtifactOutput(ctx *Context, args *LookupConnectArtifactOutputArgs, opts ...InvokeOption) LookupConnectArtifactResultOutput
> Note: This function is named LookupConnectArtifact
in the Go SDK.
public static class GetConnectArtifact
{
public static Task<GetConnectArtifactResult> InvokeAsync(GetConnectArtifactArgs args, InvokeOptions? opts = null)
public static Output<GetConnectArtifactResult> Invoke(GetConnectArtifactInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetConnectArtifactResult> getConnectArtifact(GetConnectArtifactArgs args, InvokeOptions options)
public static Output<GetConnectArtifactResult> getConnectArtifact(GetConnectArtifactArgs args, InvokeOptions options)
fn::invoke:
function: confluentcloud:index/getConnectArtifact:getConnectArtifact
arguments:
# arguments dictionary
The following arguments are supported:
- Cloud string
- Cloud provider where the Connect Artifact archive is uploaded.
- Environment
Pulumi.
Confluent Cloud. Inputs. Get Connect Artifact Environment - Id string
- The ID of the Connect Artifact.
- Cloud string
- Cloud provider where the Connect Artifact archive is uploaded.
- Environment
Get
Connect Artifact Environment - Id string
- The ID of the Connect Artifact.
- cloud String
- Cloud provider where the Connect Artifact archive is uploaded.
- environment
Get
Connect Artifact Environment - id String
- The ID of the Connect Artifact.
- cloud string
- Cloud provider where the Connect Artifact archive is uploaded.
- environment
Get
Connect Artifact Environment - id string
- The ID of the Connect Artifact.
- cloud str
- Cloud provider where the Connect Artifact archive is uploaded.
- environment
Get
Connect Artifact Environment - id str
- The ID of the Connect Artifact.
- cloud String
- Cloud provider where the Connect Artifact archive is uploaded.
- environment Property Map
- id String
- The ID of the Connect Artifact.
getConnectArtifact Result
The following output properties are available:
- Cloud string
- Content
Format string - (String) Archive format of the Connect Artifact. Supported formats are
JAR
andZIP
. - Description string
- (String) Description of the Connect Artifact.
- Display
Name string - (String) The unique name of the Connect Artifact per cloud, environment scope.
- Environment
Pulumi.
Confluent Cloud. Outputs. Get Connect Artifact Environment - Id string
- Cloud string
- Content
Format string - (String) Archive format of the Connect Artifact. Supported formats are
JAR
andZIP
. - Description string
- (String) Description of the Connect Artifact.
- Display
Name string - (String) The unique name of the Connect Artifact per cloud, environment scope.
- Environment
Get
Connect Artifact Environment - Id string
- cloud String
- content
Format String - (String) Archive format of the Connect Artifact. Supported formats are
JAR
andZIP
. - description String
- (String) Description of the Connect Artifact.
- display
Name String - (String) The unique name of the Connect Artifact per cloud, environment scope.
- environment
Get
Connect Artifact Environment - id String
- cloud string
- content
Format string - (String) Archive format of the Connect Artifact. Supported formats are
JAR
andZIP
. - description string
- (String) Description of the Connect Artifact.
- display
Name string - (String) The unique name of the Connect Artifact per cloud, environment scope.
- environment
Get
Connect Artifact Environment - id string
- cloud str
- content_
format str - (String) Archive format of the Connect Artifact. Supported formats are
JAR
andZIP
. - description str
- (String) Description of the Connect Artifact.
- display_
name str - (String) The unique name of the Connect Artifact per cloud, environment scope.
- environment
Get
Connect Artifact Environment - id str
- cloud String
- content
Format String - (String) Archive format of the Connect Artifact. Supported formats are
JAR
andZIP
. - description String
- (String) Description of the Connect Artifact.
- display
Name String - (String) The unique name of the Connect Artifact per cloud, environment scope.
- environment Property Map
- id String
Supporting Types
GetConnectArtifactEnvironment
- Id string
- The ID of the Environment that the Connect Artifact belongs to.
- Id string
- The ID of the Environment that the Connect Artifact belongs to.
- id String
- The ID of the Environment that the Connect Artifact belongs to.
- id string
- The ID of the Environment that the Connect Artifact belongs to.
- id str
- The ID of the Environment that the Connect Artifact belongs to.
- id String
- The ID of the Environment that the Connect Artifact belongs to.
Package Details
- Repository
- Confluent Cloud pulumi/pulumi-confluentcloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
confluent
Terraform Provider.