Viewing docs for AWS v6.83.1 (Older version)
published on Monday, Mar 9, 2026 by Pulumi
published on Monday, Mar 9, 2026 by Pulumi
Viewing docs for AWS v6.83.1 (Older version)
published on Monday, Mar 9, 2026 by Pulumi
published on Monday, Mar 9, 2026 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)
public static Output<GetEventConnectionResult> getEventConnection(GetEventConnectionArgs args, InvokeOptions options)
fn::invoke:
function: aws:cloudwatch/getEventConnection:getEventConnection
arguments:
# arguments dictionaryThe 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) of the connection.
- string
- Type of authorization specified for the connection. One of
API_KEY,BASIC,OAUTH_CLIENT_CREDENTIALS. - Id string
- The provider-assigned unique ID for this managed resource.
- Kms
Key stringIdentifier - (Optional) Identifier of the AWS KMS customer managed key for EventBridge to use to encrypt the connection, if one has been specified.
- Name string
- Secret
Arn string - ARN of the secret created from the authorization parameters specified for the connection.
- Arn string
- ARN (Amazon Resource Name) of the connection.
- string
- Type of authorization specified for the connection. One of
API_KEY,BASIC,OAUTH_CLIENT_CREDENTIALS. - Id string
- The provider-assigned unique ID for this managed resource.
- Kms
Key stringIdentifier - (Optional) Identifier of the AWS KMS customer managed key for EventBridge to use to encrypt the connection, if one has been specified.
- Name string
- Secret
Arn string - ARN of the secret created from the authorization parameters specified for the connection.
- arn String
- ARN (Amazon Resource Name) of the connection.
- String
- Type of authorization specified for the connection. One of
API_KEY,BASIC,OAUTH_CLIENT_CREDENTIALS. - id String
- The provider-assigned unique ID for this managed resource.
- kms
Key StringIdentifier - (Optional) Identifier of the AWS KMS customer managed key for EventBridge to use to encrypt the connection, if one has been specified.
- name String
- secret
Arn String - ARN of the secret created from the authorization parameters specified for the connection.
- arn string
- ARN (Amazon Resource Name) of the connection.
- string
- Type of authorization specified for the connection. One of
API_KEY,BASIC,OAUTH_CLIENT_CREDENTIALS. - id string
- The provider-assigned unique ID for this managed resource.
- kms
Key stringIdentifier - (Optional) Identifier of the AWS KMS customer managed key for EventBridge to use to encrypt the connection, if one has been specified.
- name string
- secret
Arn string - ARN of the secret created from the authorization parameters specified for the connection.
- arn str
- ARN (Amazon Resource Name) of the connection.
- str
- Type of authorization specified for the connection. One of
API_KEY,BASIC,OAUTH_CLIENT_CREDENTIALS. - id str
- The provider-assigned unique ID for this managed resource.
- kms_
key_ stridentifier - (Optional) Identifier of the AWS KMS customer managed key for EventBridge to use to encrypt the connection, if one has been specified.
- name str
- secret_
arn str - ARN of the secret created from the authorization parameters specified for the connection.
- arn String
- ARN (Amazon Resource Name) of the connection.
- String
- Type of authorization specified for the connection. One of
API_KEY,BASIC,OAUTH_CLIENT_CREDENTIALS. - id String
- The provider-assigned unique ID for this managed resource.
- kms
Key StringIdentifier - (Optional) Identifier of the AWS KMS customer managed key for EventBridge to use to encrypt the connection, if one has been specified.
- name String
- secret
Arn String - ARN of 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
awsTerraform Provider.
Viewing docs for AWS v6.83.1 (Older version)
published on Monday, Mar 9, 2026 by Pulumi
published on Monday, Mar 9, 2026 by Pulumi
