UNPKG

@pulumi/aws

Version:

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

89 lines (88 loc) 2.88 kB
import * as pulumi from "@pulumi/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 * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const test = aws.cloudwatch.getEventConnection({ * name: "test", * }); * ``` */ export declare function getEventConnection(args: GetEventConnectionArgs, opts?: pulumi.InvokeOptions): Promise<GetEventConnectionResult>; /** * A collection of arguments for invoking getEventConnection. */ export interface GetEventConnectionArgs { /** * Name of the connection. */ name: string; /** * Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration. */ region?: string; } /** * A collection of values returned by getEventConnection. */ export interface GetEventConnectionResult { /** * ARN (Amazon Resource Name) of the connection. */ readonly arn: string; /** * Type of authorization specified for the connection. One of `API_KEY`,`BASIC`,`OAUTH_CLIENT_CREDENTIALS`. */ readonly authorizationType: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * (Optional) Identifier of the AWS KMS customer managed key for EventBridge to use to encrypt the connection, if one has been specified. */ readonly kmsKeyIdentifier: string; readonly name: string; readonly region: string; /** * ARN of the secret created from the authorization parameters specified for the connection. */ readonly secretArn: string; } /** * 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 * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const test = aws.cloudwatch.getEventConnection({ * name: "test", * }); * ``` */ export declare function getEventConnectionOutput(args: GetEventConnectionOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetEventConnectionResult>; /** * A collection of arguments for invoking getEventConnection. */ export interface GetEventConnectionOutputArgs { /** * Name of the connection. */ name: pulumi.Input<string>; /** * Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration. */ region?: pulumi.Input<string>; }