1. Packages
  2. AWS
  3. API Docs
  4. mskconnect
  5. getConnector
AWS v6.76.0 published on Tuesday, Apr 8, 2025 by Pulumi

aws.mskconnect.getConnector

Explore with Pulumi AI

AWS v6.76.0 published on Tuesday, Apr 8, 2025 by Pulumi

Get information on an Amazon MSK Connect Connector.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const example = aws.mskconnect.getConnector({
    name: "example-mskconnector",
});
Copy
import pulumi
import pulumi_aws as aws

example = aws.mskconnect.get_connector(name="example-mskconnector")
Copy
package main

import (
	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/mskconnect"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := mskconnect.LookupConnector(ctx, &mskconnect.LookupConnectorArgs{
			Name: "example-mskconnector",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;

return await Deployment.RunAsync(() => 
{
    var example = Aws.MskConnect.GetConnector.Invoke(new()
    {
        Name = "example-mskconnector",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.mskconnect.MskconnectFunctions;
import com.pulumi.aws.mskconnect.inputs.GetConnectorArgs;
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 = MskconnectFunctions.getConnector(GetConnectorArgs.builder()
            .name("example-mskconnector")
            .build());

    }
}
Copy
variables:
  example:
    fn::invoke:
      function: aws:mskconnect:getConnector
      arguments:
        name: example-mskconnector
Copy

Using getConnector

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 getConnector(args: GetConnectorArgs, opts?: InvokeOptions): Promise<GetConnectorResult>
function getConnectorOutput(args: GetConnectorOutputArgs, opts?: InvokeOptions): Output<GetConnectorResult>
Copy
def get_connector(name: Optional[str] = None,
                  tags: Optional[Mapping[str, str]] = None,
                  opts: Optional[InvokeOptions] = None) -> GetConnectorResult
def get_connector_output(name: Optional[pulumi.Input[str]] = None,
                  tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
                  opts: Optional[InvokeOptions] = None) -> Output[GetConnectorResult]
Copy
func LookupConnector(ctx *Context, args *LookupConnectorArgs, opts ...InvokeOption) (*LookupConnectorResult, error)
func LookupConnectorOutput(ctx *Context, args *LookupConnectorOutputArgs, opts ...InvokeOption) LookupConnectorResultOutput
Copy

> Note: This function is named LookupConnector in the Go SDK.

public static class GetConnector 
{
    public static Task<GetConnectorResult> InvokeAsync(GetConnectorArgs args, InvokeOptions? opts = null)
    public static Output<GetConnectorResult> Invoke(GetConnectorInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetConnectorResult> getConnector(GetConnectorArgs args, InvokeOptions options)
public static Output<GetConnectorResult> getConnector(GetConnectorArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: aws:mskconnect/getConnector:getConnector
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Name This property is required. string
Name of the connector.
Tags Dictionary<string, string>
A map of tags assigned to the resource.
Name This property is required. string
Name of the connector.
Tags map[string]string
A map of tags assigned to the resource.
name This property is required. String
Name of the connector.
tags Map<String,String>
A map of tags assigned to the resource.
name This property is required. string
Name of the connector.
tags {[key: string]: string}
A map of tags assigned to the resource.
name This property is required. str
Name of the connector.
tags Mapping[str, str]
A map of tags assigned to the resource.
name This property is required. String
Name of the connector.
tags Map<String>
A map of tags assigned to the resource.

getConnector Result

The following output properties are available:

Arn string
ARN of the connector.
Description string
Summary description of the connector.
Id string
The provider-assigned unique ID for this managed resource.
Name string
Tags Dictionary<string, string>
A map of tags assigned to the resource.
Version string
Current version of the connector.
Arn string
ARN of the connector.
Description string
Summary description of the connector.
Id string
The provider-assigned unique ID for this managed resource.
Name string
Tags map[string]string
A map of tags assigned to the resource.
Version string
Current version of the connector.
arn String
ARN of the connector.
description String
Summary description of the connector.
id String
The provider-assigned unique ID for this managed resource.
name String
tags Map<String,String>
A map of tags assigned to the resource.
version String
Current version of the connector.
arn string
ARN of the connector.
description string
Summary description of the connector.
id string
The provider-assigned unique ID for this managed resource.
name string
tags {[key: string]: string}
A map of tags assigned to the resource.
version string
Current version of the connector.
arn str
ARN of the connector.
description str
Summary description of the connector.
id str
The provider-assigned unique ID for this managed resource.
name str
tags Mapping[str, str]
A map of tags assigned to the resource.
version str
Current version of the connector.
arn String
ARN of the connector.
description String
Summary description of the connector.
id String
The provider-assigned unique ID for this managed resource.
name String
tags Map<String>
A map of tags assigned to the resource.
version String
Current version of the connector.

Package Details

Repository
AWS Classic pulumi/pulumi-aws
License
Apache-2.0
Notes
This Pulumi package is based on the aws Terraform Provider.
AWS v6.76.0 published on Tuesday, Apr 8, 2025 by Pulumi