Skip to content

Commit fa44435

Browse files
committed
systemtags are sometimes ommitted in the request
1 parent 4316b27 commit fa44435

File tree

4 files changed

+3
-11
lines changed

4 files changed

+3
-11
lines changed

src/proxy.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,7 @@ export class SessionProxy {
4242

4343
@allArgsConstructor
4444
@builder
45-
export class ProgressEvent<
46-
R extends BaseModel = BaseModel,
47-
T = Map<string, any>
48-
> {
45+
export class ProgressEvent<R extends BaseModel = BaseModel, T = Map<string, any>> {
4946
/**
5047
* The status indicates whether the handler has reached a terminal state or is
5148
* still computing and requires more time to complete

src/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export class RequestData<T = Map<string, any>> {
5555
logicalResourceId: LogicalResourceId;
5656
resourceProperties: T;
5757
previousResourceProperties?: T;
58-
systemTags: { [index: string]: string };
58+
systemTags?: { [index: string]: string };
5959
stackTags?: { [index: string]: string };
6060
previousStackTags?: { [index: string]: string };
6161

tests/lib/callback.test.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
import CloudFormation from 'aws-sdk/clients/cloudformation';
22
import { reportProgress } from '../../src/callback';
33
import { SessionProxy } from '../../src/proxy';
4-
import {
5-
BaseModel,
6-
HandlerErrorCode,
7-
OperationStatus,
8-
} from '../../src/interface';
4+
import { BaseModel, HandlerErrorCode, OperationStatus } from '../../src/interface';
95

106
const mockResult = (output: any): jest.Mock => {
117
return jest.fn().mockReturnValue({

tests/lib/resource.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,6 @@ describe('when getting resource', () => {
106106
logicalResourceId: 'myBucket',
107107
resourceProperties: 'state1',
108108
previousResourceProperties: 'state2',
109-
systemTags: { 'aws:cloudformation:stack-id': 'SampleStack' },
110109
stackTags: { tag1: 'abc' },
111110
previousStackTags: { tag1: 'def' },
112111
},

0 commit comments

Comments
 (0)