11import { IoMessageCode } from '../io-message' ;
22
33export interface CodeInfo {
4+ code : IoMessageCode ;
45 description : string ;
56 level : string ;
67 interface ?: any ;
@@ -19,26 +20,31 @@ function codeInfo(info: CodeInfo): CodeInfo {
1920export const CODES = {
2021 // 1: Synth
2122 CDK_TOOLKIT_I1000 : codeInfo ( {
23+ code : 'CDK_TOOLKIT_I1000' ,
2224 description : 'Provides synthesis times.' ,
2325 level : 'info' ,
2426 } ) ,
2527 CDK_TOOLKIT_I1901 : codeInfo ( {
28+ code : 'CDK_TOOLKIT_I1901' ,
2629 description : 'Provides stack data' ,
2730 level : 'result' ,
2831 } ) ,
2932 CDK_TOOLKIT_I1902 : codeInfo ( {
33+ code : 'CDK_TOOLKIT_I1902' ,
3034 description : 'Successfully deployed stacks' ,
3135 level : 'result' ,
3236 } ) ,
3337
3438 // 2: List
3539 CDK_TOOLKIT_I2901 : codeInfo ( {
40+ code : 'CDK_TOOLKIT_I2901' ,
3641 description : 'Provides details on the selected stacks and their dependencies' ,
3742 level : 'result' ,
3843 } ) ,
3944
4045 // 3: Import & Migrate
4146 CDK_TOOLKIT_E3900 : codeInfo ( {
47+ code : 'CDK_TOOLKIT_E3900' ,
4248 description : 'Resource import failed' ,
4349 level : 'error' ,
4450 } ) ,
@@ -47,69 +53,84 @@ export const CODES = {
4753
4854 // 5: Deploy & Watch
4955 CDK_TOOLKIT_I5000 : codeInfo ( {
56+ code : 'CDK_TOOLKIT_I5000' ,
5057 description : 'Provides deployment times' ,
5158 level : 'info' ,
5259 } ) ,
5360 CDK_TOOLKIT_I5001 : codeInfo ( {
61+ code : 'CDK_TOOLKIT_I5001' ,
5462 description : 'Provides total time in deploy action, including synth and rollback' ,
5563 level : 'info' ,
5664 } ) ,
5765 CDK_TOOLKIT_I5002 : codeInfo ( {
66+ code : 'CDK_TOOLKIT_I5002' ,
5867 description : 'Provides time for resource migration' ,
5968 level : 'info' ,
6069 } ) ,
6170 CDK_TOOLKIT_I5031 : codeInfo ( {
71+ code : 'CDK_TOOLKIT_I5031' ,
6272 description : 'Informs about any log groups that are traced as part of the deployment' ,
6373 level : 'info' ,
6474 } ) ,
6575 CDK_TOOLKIT_I5050 : codeInfo ( {
76+ code : 'CDK_TOOLKIT_I5050' ,
6677 description : 'Confirm rollback during deployment' ,
6778 level : 'response' ,
6879 } ) ,
6980 CDK_TOOLKIT_I5060 : codeInfo ( {
81+ code : 'CDK_TOOLKIT_I5060' ,
7082 description : 'Confirm deploy security sensitive changes' ,
7183 level : 'response' ,
7284 } ) ,
7385 CDK_TOOLKIT_I5900 : codeInfo ( {
86+ code : 'CDK_TOOLKIT_I5900' ,
7487 description : 'Deployment results on success' ,
7588 level : 'result' ,
7689 } ) ,
7790
7891 CDK_TOOLKIT_E5001 : codeInfo ( {
92+ code : 'CDK_TOOLKIT_E5001' ,
7993 description : 'No stacks found' ,
8094 level : 'error' ,
8195 } ) ,
8296
8397 // 6: Rollback
8498 CDK_TOOLKIT_I6000 : codeInfo ( {
99+ code : 'CDK_TOOLKIT_I6000' ,
85100 description : 'Provides rollback times' ,
86101 level : 'info' ,
87102 } ) ,
88103
89104 CDK_TOOLKIT_E6001 : codeInfo ( {
105+ code : 'CDK_TOOLKIT_E6001' ,
90106 description : 'No stacks found' ,
91107 level : 'error' ,
92108 } ) ,
93109 CDK_TOOLKIT_E6900 : codeInfo ( {
110+ code : 'CDK_TOOLKIT_E6900' ,
94111 description : 'Rollback failed' ,
95112 level : 'error' ,
96113 } ) ,
97114
98115 // 7: Destroy
99116 CDK_TOOLKIT_I7000 : codeInfo ( {
117+ code : 'CDK_TOOLKIT_I7000' ,
100118 description : 'Provides destroy times' ,
101119 level : 'info' ,
102120 } ) ,
103121 CDK_TOOLKIT_I7010 : codeInfo ( {
122+ code : 'CDK_TOOLKIT_I7010' ,
104123 description : 'Confirm destroy stacks' ,
105124 level : 'response' ,
106125 } ) ,
107126
108127 CDK_TOOLKIT_E7010 : codeInfo ( {
128+ code : 'CDK_TOOLKIT_E7010' ,
109129 description : 'Action was aborted due to negative confirmation of request' ,
110130 level : 'error' ,
111131 } ) ,
112132 CDK_TOOLKIT_E7900 : codeInfo ( {
133+ code : 'CDK_TOOLKIT_E7900' ,
113134 description : 'Stack deletion failed' ,
114135 level : 'error' ,
115136 } ) ,
@@ -118,30 +139,37 @@ export const CODES = {
118139
119140 // Assembly codes
120141 CDK_ASSEMBLY_I0042 : codeInfo ( {
142+ code : 'CDK_ASSEMBLY_I0042' ,
121143 description : 'Writing updated context' ,
122144 level : 'debug' ,
123145 } ) ,
124146 CDK_ASSEMBLY_I0241 : codeInfo ( {
147+ code : 'CDK_ASSEMBLY_I0241' ,
125148 description : 'Fetching missing context' ,
126149 level : 'debug' ,
127150 } ) ,
128151 CDK_ASSEMBLY_I1000 : codeInfo ( {
152+ code : 'CDK_ASSEMBLY_I1000' ,
129153 description : 'Cloud assembly output starts' ,
130154 level : 'debug' ,
131155 } ) ,
132156 CDK_ASSEMBLY_I1001 : codeInfo ( {
157+ code : 'CDK_ASSEMBLY_I1001' ,
133158 description : 'Output lines emitted by the cloud assembly to stdout' ,
134159 level : 'info' ,
135160 } ) ,
136161 CDK_ASSEMBLY_E1002 : codeInfo ( {
162+ code : 'CDK_ASSEMBLY_E1002' ,
137163 description : 'Output lines emitted by the cloud assembly to stderr' ,
138164 level : 'error' ,
139165 } ) ,
140166 CDK_ASSEMBLY_I1003 : codeInfo ( {
167+ code : 'CDK_ASSEMBLY_I1003' ,
141168 description : 'Cloud assembly output finished' ,
142169 level : 'info' ,
143170 } ) ,
144171 CDK_ASSEMBLY_E1111 : codeInfo ( {
172+ code : 'CDK_ASSEMBLY_E1111' ,
145173 description : 'Incompatible CDK CLI version. Upgrade needed.' ,
146174 level : 'error' ,
147175 } ) ,
0 commit comments