import * as core from "@terrascript/core"; export interface CloudwatchEventApiDestinationArgs extends core.ResourceArgs { /** * (Required) ARN of the EventBridge Connection to use for the API Destination. */ connectionArn: string | core.StringOut; /** * (Optional) The description of the new API Destination. Maximum of 512 characters. */ description?: string | core.StringOut; /** * (Required) Select the HTTP method used for the invocation endpoint, such as GET, POST, PUT, etc. */ httpMethod: string | core.StringOut; /** * (Required) URL endpoint to invoke as a target. This could be a valid endpoint generated by a partner * service. You can include "*" as path parameters wildcards to be set from the Target HttpParameters. */ invocationEndpoint: string | core.StringOut; /** * (Optional) Enter the maximum number of invocations per second to allow for this destination. Enter a * value greater than 0 (default 300). */ invocationRateLimitPerSecond?: number | core.NumberOut; /** * (Required) The name of the new API Destination. The name must be unique for your account. Maximum of * 64 characters consisting of numbers, lower/upper case letters, .,-,_. */ name: string | core.StringOut; } export class CloudwatchEventApiDestination extends core.Resource { /** * The Amazon Resource Name (ARN) of the event API Destination. */ @core.attr(String, { computed: true }) public arn!: string | core.StringOut; /** * (Required) ARN of the EventBridge Connection to use for the API Destination. */ @core.attr(String) public connectionArn!: string | core.StringOut; /** * (Optional) The description of the new API Destination. Maximum of 512 characters. */ @core.attr(String) public description?: string | core.StringOut; /** * (Required) Select the HTTP method used for the invocation endpoint, such as GET, POST, PUT, etc. */ @core.attr(String) public httpMethod!: string | core.StringOut; @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Required) URL endpoint to invoke as a target. This could be a valid endpoint generated by a partner * service. You can include "*" as path parameters wildcards to be set from the Target HttpParameters. */ @core.attr(String) public invocationEndpoint!: string | core.StringOut; /** * (Optional) Enter the maximum number of invocations per second to allow for this destination. Enter a * value greater than 0 (default 300). */ @core.attr(Number) public invocationRateLimitPerSecond?: number | core.NumberOut; /** * (Required) The name of the new API Destination. The name must be unique for your account. Maximum of * 64 characters consisting of numbers, lower/upper case letters, .,-,_. */ @core.attr(String) public name!: string | core.StringOut; constructor(name: string, args?: CloudwatchEventApiDestinationArgs) { super(name, "aws_cloudwatch_event_api_destination", args); } public override getNamespace(): string { return "aws_eventbridge"; } }