1. Packages
  2. AWS Classic
  3. API Docs
  4. cloudwatch
  5. getEventConnection

Try AWS Native preview for resources not in the classic version.

AWS Classic v6.28.1 published on Thursday, Mar 28, 2024 by Pulumi

aws.cloudwatch.getEventConnection

Explore with Pulumi AI

aws logo

Try AWS Native preview for resources not in the classic version.

AWS Classic v6.28.1 published on Thursday, Mar 28, 2024 by Pulumi

    Use this data source to retrieve information about an EventBridge connection.

    Note: EventBridge was formerly known as CloudWatch Events. The functionality is identical.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const test = aws.cloudwatch.getEventConnection({
        name: "test",
    });
    
    import pulumi
    import pulumi_aws as aws
    
    test = aws.cloudwatch.get_event_connection(name="test")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/cloudwatch"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := cloudwatch.LookupEventConnection(ctx, &cloudwatch.LookupEventConnectionArgs{
    			Name: "test",
    		}, 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 test = Aws.CloudWatch.GetEventConnection.Invoke(new()
        {
            Name = "test",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.cloudwatch.CloudwatchFunctions;
    import com.pulumi.aws.cloudwatch.inputs.GetEventConnectionArgs;
    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 test = CloudwatchFunctions.getEventConnection(GetEventConnectionArgs.builder()
                .name("test")
                .build());
    
        }
    }
    
    variables:
      test:
        fn::invoke:
          Function: aws:cloudwatch:getEventConnection
          Arguments:
            name: test
    

    Using getEventConnection

    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 getEventConnection(args: GetEventConnectionArgs, opts?: InvokeOptions): Promise<GetEventConnectionResult>
    function getEventConnectionOutput(args: GetEventConnectionOutputArgs, opts?: InvokeOptions): Output<GetEventConnectionResult>
    def get_event_connection(name: Optional[str] = None,
                             opts: Optional[InvokeOptions] = None) -> GetEventConnectionResult
    def get_event_connection_output(name: Optional[pulumi.Input[str]] = None,
                             opts: Optional[InvokeOptions] = None) -> Output[GetEventConnectionResult]
    func LookupEventConnection(ctx *Context, args *LookupEventConnectionArgs, opts ...InvokeOption) (*LookupEventConnectionResult, error)
    func LookupEventConnectionOutput(ctx *Context, args *LookupEventConnectionOutputArgs, opts ...InvokeOption) LookupEventConnectionResultOutput

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

    public static class GetEventConnection 
    {
        public static Task<GetEventConnectionResult> InvokeAsync(GetEventConnectionArgs args, InvokeOptions? opts = null)
        public static Output<GetEventConnectionResult> Invoke(GetEventConnectionInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetEventConnectionResult> getEventConnection(GetEventConnectionArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: aws:cloudwatch/getEventConnection:getEventConnection
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Name string
    Name of the connection.
    Name string
    Name of the connection.
    name String
    Name of the connection.
    name string
    Name of the connection.
    name str
    Name of the connection.
    name String
    Name of the connection.

    getEventConnection Result

    The following output properties are available:

    Arn string
    ARN (Amazon Resource Name) for the connection.
    AuthorizationType string
    Type of authorization to use to connect. One of API_KEY,BASIC,OAUTH_CLIENT_CREDENTIALS.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Name of the connection.
    SecretArn string
    ARN (Amazon Resource Name) for the secret created from the authorization parameters specified for the connection.
    Arn string
    ARN (Amazon Resource Name) for the connection.
    AuthorizationType string
    Type of authorization to use to connect. One of API_KEY,BASIC,OAUTH_CLIENT_CREDENTIALS.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Name of the connection.
    SecretArn string
    ARN (Amazon Resource Name) for the secret created from the authorization parameters specified for the connection.
    arn String
    ARN (Amazon Resource Name) for the connection.
    authorizationType String
    Type of authorization to use to connect. One of API_KEY,BASIC,OAUTH_CLIENT_CREDENTIALS.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    Name of the connection.
    secretArn String
    ARN (Amazon Resource Name) for the secret created from the authorization parameters specified for the connection.
    arn string
    ARN (Amazon Resource Name) for the connection.
    authorizationType string
    Type of authorization to use to connect. One of API_KEY,BASIC,OAUTH_CLIENT_CREDENTIALS.
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    Name of the connection.
    secretArn string
    ARN (Amazon Resource Name) for the secret created from the authorization parameters specified for the connection.
    arn str
    ARN (Amazon Resource Name) for the connection.
    authorization_type str
    Type of authorization to use to connect. One of API_KEY,BASIC,OAUTH_CLIENT_CREDENTIALS.
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    Name of the connection.
    secret_arn str
    ARN (Amazon Resource Name) for the secret created from the authorization parameters specified for the connection.
    arn String
    ARN (Amazon Resource Name) for the connection.
    authorizationType String
    Type of authorization to use to connect. One of API_KEY,BASIC,OAUTH_CLIENT_CREDENTIALS.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    Name of the connection.
    secretArn String
    ARN (Amazon Resource Name) for the secret created from the authorization parameters specified for the connection.

    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

    Try AWS Native preview for resources not in the classic version.

    AWS Classic v6.28.1 published on Thursday, Mar 28, 2024 by Pulumi