AWS Classic

v5.21.1 published on Thursday, Nov 17, 2022 by Pulumi

getConnector

Get information on an Amazon MSK Connect Connector.

Example Usage

using System.Collections.Generic;
using Pulumi;
using Aws = Pulumi.Aws;

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

});
package main

import (
	"github.com/pulumi/pulumi-aws/sdk/v5/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
	})
}
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());

    }
}
import pulumi
import pulumi_aws as aws

example = aws.mskconnect.get_connector(name="example-mskconnector")
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const example = pulumi.output(aws.mskconnect.getConnector({
    name: "example-mskconnector",
}));
variables:
  example:
    Fn::Invoke:
      Function: aws:mskconnect:getConnector
      Arguments:
        name: example-mskconnector

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

> 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)
}
public static CompletableFuture<GetConnectorResult> getConnector(GetConnectorArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: aws:mskconnect/getConnector:getConnector
  arguments:
    # arguments dictionary

The following arguments are supported:

Name string

Name of the connector.

Name string

Name of the connector.

name String

Name of the connector.

name string

Name of the connector.

name str

Name of the connector.

name String

Name of the connector.

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
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
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
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
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
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
version String

Current version of the connector.

Package Details

Repository
https://github.com/pulumi/pulumi-aws
License
Apache-2.0
Notes

This Pulumi package is based on the aws Terraform Provider.