AWS v6.54.0 published on Friday, Sep 27, 2024 by Pulumi
aws.mskconnect.getConnector
Explore with Pulumi AI
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",
});
import pulumi
import pulumi_aws as aws
example = aws.mskconnect.get_connector(name="example-mskconnector")
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
})
}
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",
});
});
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());
}
}
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,
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]
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.
- Dictionary<string, string>
- A map of tags assigned to the resource.
- Name string
- Name of the connector.
- map[string]string
- A map of tags assigned to the resource.
- name String
- Name of the connector.
- Map<String,String>
- A map of tags assigned to the resource.
- name string
- Name of the connector.
- {[key: string]: string}
- A map of tags assigned to the resource.
- name str
- Name of the connector.
- Mapping[str, str]
- A map of tags assigned to the resource.
- name String
- Name of the connector.
- 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
- 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
- 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
- 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
- {[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
- 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
- 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.