1. Packages
  2. AWS
  3. API Docs
  4. mskconnect
  5. getWorkerConfiguration
AWS v6.60.0 published on Tuesday, Nov 19, 2024 by Pulumi

aws.mskconnect.getWorkerConfiguration

Explore with Pulumi AI

aws logo
AWS v6.60.0 published on Tuesday, Nov 19, 2024 by Pulumi

    Get information on an Amazon MSK Connect Worker Configuration.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = aws.mskconnect.getWorkerConfiguration({
        name: "example",
    });
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.mskconnect.get_worker_configuration(name="example")
    
    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.LookupWorkerConfiguration(ctx, &mskconnect.LookupWorkerConfigurationArgs{
    			Name: "example",
    		}, 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.GetWorkerConfiguration.Invoke(new()
        {
            Name = "example",
        });
    
    });
    
    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.GetWorkerConfigurationArgs;
    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.getWorkerConfiguration(GetWorkerConfigurationArgs.builder()
                .name("example")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          Function: aws:mskconnect:getWorkerConfiguration
          Arguments:
            name: example
    

    Using getWorkerConfiguration

    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 getWorkerConfiguration(args: GetWorkerConfigurationArgs, opts?: InvokeOptions): Promise<GetWorkerConfigurationResult>
    function getWorkerConfigurationOutput(args: GetWorkerConfigurationOutputArgs, opts?: InvokeOptions): Output<GetWorkerConfigurationResult>
    def get_worker_configuration(name: Optional[str] = None,
                                 tags: Optional[Mapping[str, str]] = None,
                                 opts: Optional[InvokeOptions] = None) -> GetWorkerConfigurationResult
    def get_worker_configuration_output(name: Optional[pulumi.Input[str]] = None,
                                 tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
                                 opts: Optional[InvokeOptions] = None) -> Output[GetWorkerConfigurationResult]
    func LookupWorkerConfiguration(ctx *Context, args *LookupWorkerConfigurationArgs, opts ...InvokeOption) (*LookupWorkerConfigurationResult, error)
    func LookupWorkerConfigurationOutput(ctx *Context, args *LookupWorkerConfigurationOutputArgs, opts ...InvokeOption) LookupWorkerConfigurationResultOutput

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

    public static class GetWorkerConfiguration 
    {
        public static Task<GetWorkerConfigurationResult> InvokeAsync(GetWorkerConfigurationArgs args, InvokeOptions? opts = null)
        public static Output<GetWorkerConfigurationResult> Invoke(GetWorkerConfigurationInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetWorkerConfigurationResult> getWorkerConfiguration(GetWorkerConfigurationArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: aws:mskconnect/getWorkerConfiguration:getWorkerConfiguration
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Name string
    Name of the worker configuration.
    Tags Dictionary<string, string>
    A map of tags assigned to the resource.
    Name string
    Name of the worker configuration.
    Tags map[string]string
    A map of tags assigned to the resource.
    name String
    Name of the worker configuration.
    tags Map<String,String>
    A map of tags assigned to the resource.
    name string
    Name of the worker configuration.
    tags {[key: string]: string}
    A map of tags assigned to the resource.
    name str
    Name of the worker configuration.
    tags Mapping[str, str]
    A map of tags assigned to the resource.
    name String
    Name of the worker configuration.
    tags Map<String>
    A map of tags assigned to the resource.

    getWorkerConfiguration Result

    The following output properties are available:

    Arn string
    the ARN of the worker configuration.
    Description string
    a summary description of the worker configuration.
    Id string
    The provider-assigned unique ID for this managed resource.
    LatestRevision int
    an ID of the latest successfully created revision of the worker configuration.
    Name string
    PropertiesFileContent string
    contents of connect-distributed.properties file.
    Tags Dictionary<string, string>
    A map of tags assigned to the resource.
    Arn string
    the ARN of the worker configuration.
    Description string
    a summary description of the worker configuration.
    Id string
    The provider-assigned unique ID for this managed resource.
    LatestRevision int
    an ID of the latest successfully created revision of the worker configuration.
    Name string
    PropertiesFileContent string
    contents of connect-distributed.properties file.
    Tags map[string]string
    A map of tags assigned to the resource.
    arn String
    the ARN of the worker configuration.
    description String
    a summary description of the worker configuration.
    id String
    The provider-assigned unique ID for this managed resource.
    latestRevision Integer
    an ID of the latest successfully created revision of the worker configuration.
    name String
    propertiesFileContent String
    contents of connect-distributed.properties file.
    tags Map<String,String>
    A map of tags assigned to the resource.
    arn string
    the ARN of the worker configuration.
    description string
    a summary description of the worker configuration.
    id string
    The provider-assigned unique ID for this managed resource.
    latestRevision number
    an ID of the latest successfully created revision of the worker configuration.
    name string
    propertiesFileContent string
    contents of connect-distributed.properties file.
    tags {[key: string]: string}
    A map of tags assigned to the resource.
    arn str
    the ARN of the worker configuration.
    description str
    a summary description of the worker configuration.
    id str
    The provider-assigned unique ID for this managed resource.
    latest_revision int
    an ID of the latest successfully created revision of the worker configuration.
    name str
    properties_file_content str
    contents of connect-distributed.properties file.
    tags Mapping[str, str]
    A map of tags assigned to the resource.
    arn String
    the ARN of the worker configuration.
    description String
    a summary description of the worker configuration.
    id String
    The provider-assigned unique ID for this managed resource.
    latestRevision Number
    an ID of the latest successfully created revision of the worker configuration.
    name String
    propertiesFileContent String
    contents of connect-distributed.properties file.
    tags Map<String>
    A map of tags assigned to the resource.

    Package Details

    Repository
    AWS Classic pulumi/pulumi-aws
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the aws Terraform Provider.
    aws logo
    AWS v6.60.0 published on Tuesday, Nov 19, 2024 by Pulumi