Skip to content

Commit

Permalink
fix(serverless): 🐛 added missing details about cloudwatch event types (
Browse files Browse the repository at this point in the history
…DefinitelyTyped#59966)

* fix: 🐛 added more details about cloudwatch event types

* fix: 🚨 fixed linting issue
  • Loading branch information
KillDozerX2 authored Apr 26, 2022
1 parent b8d5209 commit de71f8e
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion types/serverless/plugins/aws/provider/awsProvider.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,7 @@ declare namespace Aws {
}

interface CloudwatchEvent {
event: string;
event: CloudwatchEventInternalEvent | string;
name?: string | undefined;
description?: string | undefined;
enabled?: boolean | undefined;
Expand All @@ -538,6 +538,21 @@ declare namespace Aws {
inputTransformer?: InputTransformer | undefined;
}

interface CloudwatchEventInternalEvent {
source: string | string[];
"detail-type"?: string | string[];
detail?: object;
region?: string;
/**
* Supposed to be array of ARNs but needs more info
*/
resources?: string[];
version?: string;
id?: string;
time?: string;
account?: string;
}

interface CloudwatchLog {
logGroup: string;
filter: string;
Expand Down

0 comments on commit de71f8e

Please sign in to comment.