UNPKG

10.8 kBJavaScriptView Raw
1function _aws_cdk_aws_codepipeline_ActionCategory(p) {
2}
3function _aws_cdk_aws_codepipeline_ActionArtifactBounds(p) {
4}
5function _aws_cdk_aws_codepipeline_GlobalVariables(p) {
6}
7function _aws_cdk_aws_codepipeline_ActionProperties(p) {
8 if (p == null)
9 return;
10 visitedObjects.add(p);
11 try {
12 if (!visitedObjects.has(p.artifactBounds))
13 _aws_cdk_aws_codepipeline_ActionArtifactBounds(p.artifactBounds);
14 if (!visitedObjects.has(p.category))
15 _aws_cdk_aws_codepipeline_ActionCategory(p.category);
16 if (p.inputs != null)
17 for (const o of p.inputs)
18 if (!visitedObjects.has(o))
19 _aws_cdk_aws_codepipeline_Artifact(o);
20 if (p.outputs != null)
21 for (const o of p.outputs)
22 if (!visitedObjects.has(o))
23 _aws_cdk_aws_codepipeline_Artifact(o);
24 }
25 finally {
26 visitedObjects.delete(p);
27 }
28}
29function _aws_cdk_aws_codepipeline_ActionBindOptions(p) {
30}
31function _aws_cdk_aws_codepipeline_ActionConfig(p) {
32}
33function _aws_cdk_aws_codepipeline_PipelineNotifyOnOptions(p) {
34 if (p == null)
35 return;
36 visitedObjects.add(p);
37 try {
38 if (p.events != null)
39 for (const o of p.events)
40 if (!visitedObjects.has(o))
41 _aws_cdk_aws_codepipeline_PipelineNotificationEvents(o);
42 }
43 finally {
44 visitedObjects.delete(p);
45 }
46}
47function _aws_cdk_aws_codepipeline_IAction(p) {
48}
49function _aws_cdk_aws_codepipeline_IPipeline(p) {
50}
51function _aws_cdk_aws_codepipeline_IStage(p) {
52}
53function _aws_cdk_aws_codepipeline_CommonActionProps(p) {
54}
55function _aws_cdk_aws_codepipeline_CommonAwsActionProps(p) {
56}
57function _aws_cdk_aws_codepipeline_Action(p) {
58}
59function _aws_cdk_aws_codepipeline_PipelineNotificationEvents(p) {
60}
61function _aws_cdk_aws_codepipeline_Artifact(p) {
62}
63function _aws_cdk_aws_codepipeline_ArtifactPath(p) {
64}
65function _aws_cdk_aws_codepipeline_StagePlacement(p) {
66 if (p == null)
67 return;
68 visitedObjects.add(p);
69 try {
70 if (!visitedObjects.has(p.justAfter))
71 _aws_cdk_aws_codepipeline_IStage(p.justAfter);
72 if (!visitedObjects.has(p.rightBefore))
73 _aws_cdk_aws_codepipeline_IStage(p.rightBefore);
74 }
75 finally {
76 visitedObjects.delete(p);
77 }
78}
79function _aws_cdk_aws_codepipeline_StageProps(p) {
80 if (p == null)
81 return;
82 visitedObjects.add(p);
83 try {
84 if (p.actions != null)
85 for (const o of p.actions)
86 if (!visitedObjects.has(o))
87 _aws_cdk_aws_codepipeline_IAction(o);
88 }
89 finally {
90 visitedObjects.delete(p);
91 }
92}
93function _aws_cdk_aws_codepipeline_StageOptions(p) {
94 if (p == null)
95 return;
96 visitedObjects.add(p);
97 try {
98 if (!visitedObjects.has(p.placement))
99 _aws_cdk_aws_codepipeline_StagePlacement(p.placement);
100 if (p.actions != null)
101 for (const o of p.actions)
102 if (!visitedObjects.has(o))
103 _aws_cdk_aws_codepipeline_IAction(o);
104 }
105 finally {
106 visitedObjects.delete(p);
107 }
108}
109function _aws_cdk_aws_codepipeline_PipelineProps(p) {
110 if (p == null)
111 return;
112 visitedObjects.add(p);
113 try {
114 if (p.crossRegionReplicationBuckets != null)
115 for (const o of Object.values(p.crossRegionReplicationBuckets))
116 if (!visitedObjects.has(o))
117 require("@aws-cdk/aws-s3/.warnings.jsii.js")._aws_cdk_aws_s3_IBucket(o);
118 if (p.stages != null)
119 for (const o of p.stages)
120 if (!visitedObjects.has(o))
121 _aws_cdk_aws_codepipeline_StageProps(o);
122 }
123 finally {
124 visitedObjects.delete(p);
125 }
126}
127function _aws_cdk_aws_codepipeline_Pipeline(p) {
128}
129function _aws_cdk_aws_codepipeline_CrossRegionSupport(p) {
130}
131function _aws_cdk_aws_codepipeline_CustomActionProperty(p) {
132}
133function _aws_cdk_aws_codepipeline_CustomActionRegistrationProps(p) {
134 if (p == null)
135 return;
136 visitedObjects.add(p);
137 try {
138 if (!visitedObjects.has(p.artifactBounds))
139 _aws_cdk_aws_codepipeline_ActionArtifactBounds(p.artifactBounds);
140 if (!visitedObjects.has(p.category))
141 _aws_cdk_aws_codepipeline_ActionCategory(p.category);
142 if (p.actionProperties != null)
143 for (const o of p.actionProperties)
144 if (!visitedObjects.has(o))
145 _aws_cdk_aws_codepipeline_CustomActionProperty(o);
146 }
147 finally {
148 visitedObjects.delete(p);
149 }
150}
151function _aws_cdk_aws_codepipeline_CustomActionRegistration(p) {
152}
153function _aws_cdk_aws_codepipeline_CfnCustomActionTypeProps(p) {
154 if (p == null)
155 return;
156 visitedObjects.add(p);
157 try {
158 if (!visitedObjects.has(p.inputArtifactDetails))
159 _aws_cdk_aws_codepipeline_CfnCustomActionType_ArtifactDetailsProperty(p.inputArtifactDetails);
160 if (!visitedObjects.has(p.outputArtifactDetails))
161 _aws_cdk_aws_codepipeline_CfnCustomActionType_ArtifactDetailsProperty(p.outputArtifactDetails);
162 if (p.tags != null)
163 for (const o of p.tags)
164 if (!visitedObjects.has(o))
165 require("@aws-cdk/core/.warnings.jsii.js")._aws_cdk_core_CfnTag(o);
166 }
167 finally {
168 visitedObjects.delete(p);
169 }
170}
171function _aws_cdk_aws_codepipeline_CfnCustomActionType(p) {
172}
173function _aws_cdk_aws_codepipeline_CfnCustomActionType_ArtifactDetailsProperty(p) {
174}
175function _aws_cdk_aws_codepipeline_CfnCustomActionType_ConfigurationPropertiesProperty(p) {
176}
177function _aws_cdk_aws_codepipeline_CfnCustomActionType_SettingsProperty(p) {
178}
179function _aws_cdk_aws_codepipeline_CfnPipelineProps(p) {
180 if (p == null)
181 return;
182 visitedObjects.add(p);
183 try {
184 if (p.tags != null)
185 for (const o of p.tags)
186 if (!visitedObjects.has(o))
187 require("@aws-cdk/core/.warnings.jsii.js")._aws_cdk_core_CfnTag(o);
188 }
189 finally {
190 visitedObjects.delete(p);
191 }
192}
193function _aws_cdk_aws_codepipeline_CfnPipeline(p) {
194}
195function _aws_cdk_aws_codepipeline_CfnPipeline_ActionDeclarationProperty(p) {
196}
197function _aws_cdk_aws_codepipeline_CfnPipeline_ActionTypeIdProperty(p) {
198}
199function _aws_cdk_aws_codepipeline_CfnPipeline_ArtifactStoreProperty(p) {
200}
201function _aws_cdk_aws_codepipeline_CfnPipeline_ArtifactStoreMapProperty(p) {
202}
203function _aws_cdk_aws_codepipeline_CfnPipeline_BlockerDeclarationProperty(p) {
204}
205function _aws_cdk_aws_codepipeline_CfnPipeline_EncryptionKeyProperty(p) {
206}
207function _aws_cdk_aws_codepipeline_CfnPipeline_InputArtifactProperty(p) {
208}
209function _aws_cdk_aws_codepipeline_CfnPipeline_OutputArtifactProperty(p) {
210}
211function _aws_cdk_aws_codepipeline_CfnPipeline_StageDeclarationProperty(p) {
212}
213function _aws_cdk_aws_codepipeline_CfnPipeline_StageTransitionProperty(p) {
214}
215function _aws_cdk_aws_codepipeline_CfnWebhookProps(p) {
216}
217function _aws_cdk_aws_codepipeline_CfnWebhook(p) {
218}
219function _aws_cdk_aws_codepipeline_CfnWebhook_WebhookAuthConfigurationProperty(p) {
220}
221function _aws_cdk_aws_codepipeline_CfnWebhook_WebhookFilterRuleProperty(p) {
222}
223function print(name, deprecationMessage) {
224 const deprecated = process.env.JSII_DEPRECATED;
225 const deprecationMode = ["warn", "fail", "quiet"].includes(deprecated) ? deprecated : "warn";
226 const message = `${name} is deprecated.\n ${deprecationMessage.trim()}\n This API will be removed in the next major release.`;
227 switch (deprecationMode) {
228 case "fail":
229 throw new DeprecationError(message);
230 case "warn":
231 console.warn("[WARNING]", message);
232 break;
233 }
234}
235function getPropertyDescriptor(obj, prop) {
236 const descriptor = Object.getOwnPropertyDescriptor(obj, prop);
237 if (descriptor) {
238 return descriptor;
239 }
240 const proto = Object.getPrototypeOf(obj);
241 const prototypeDescriptor = proto && getPropertyDescriptor(proto, prop);
242 if (prototypeDescriptor) {
243 return prototypeDescriptor;
244 }
245 return {};
246}
247const visitedObjects = new Set();
248class DeprecationError extends Error {
249 constructor(...args) {
250 super(...args);
251 Object.defineProperty(this, "name", {
252 configurable: false,
253 enumerable: true,
254 value: "DeprecationError",
255 writable: false,
256 });
257 }
258}
259module.exports = { print, getPropertyDescriptor, DeprecationError, _aws_cdk_aws_codepipeline_ActionCategory, _aws_cdk_aws_codepipeline_ActionArtifactBounds, _aws_cdk_aws_codepipeline_GlobalVariables, _aws_cdk_aws_codepipeline_ActionProperties, _aws_cdk_aws_codepipeline_ActionBindOptions, _aws_cdk_aws_codepipeline_ActionConfig, _aws_cdk_aws_codepipeline_PipelineNotifyOnOptions, _aws_cdk_aws_codepipeline_IAction, _aws_cdk_aws_codepipeline_IPipeline, _aws_cdk_aws_codepipeline_IStage, _aws_cdk_aws_codepipeline_CommonActionProps, _aws_cdk_aws_codepipeline_CommonAwsActionProps, _aws_cdk_aws_codepipeline_Action, _aws_cdk_aws_codepipeline_PipelineNotificationEvents, _aws_cdk_aws_codepipeline_Artifact, _aws_cdk_aws_codepipeline_ArtifactPath, _aws_cdk_aws_codepipeline_StagePlacement, _aws_cdk_aws_codepipeline_StageProps, _aws_cdk_aws_codepipeline_StageOptions, _aws_cdk_aws_codepipeline_PipelineProps, _aws_cdk_aws_codepipeline_Pipeline, _aws_cdk_aws_codepipeline_CrossRegionSupport, _aws_cdk_aws_codepipeline_CustomActionProperty, _aws_cdk_aws_codepipeline_CustomActionRegistrationProps, _aws_cdk_aws_codepipeline_CustomActionRegistration, _aws_cdk_aws_codepipeline_CfnCustomActionTypeProps, _aws_cdk_aws_codepipeline_CfnCustomActionType, _aws_cdk_aws_codepipeline_CfnCustomActionType_ArtifactDetailsProperty, _aws_cdk_aws_codepipeline_CfnCustomActionType_ConfigurationPropertiesProperty, _aws_cdk_aws_codepipeline_CfnCustomActionType_SettingsProperty, _aws_cdk_aws_codepipeline_CfnPipelineProps, _aws_cdk_aws_codepipeline_CfnPipeline, _aws_cdk_aws_codepipeline_CfnPipeline_ActionDeclarationProperty, _aws_cdk_aws_codepipeline_CfnPipeline_ActionTypeIdProperty, _aws_cdk_aws_codepipeline_CfnPipeline_ArtifactStoreProperty, _aws_cdk_aws_codepipeline_CfnPipeline_ArtifactStoreMapProperty, _aws_cdk_aws_codepipeline_CfnPipeline_BlockerDeclarationProperty, _aws_cdk_aws_codepipeline_CfnPipeline_EncryptionKeyProperty, _aws_cdk_aws_codepipeline_CfnPipeline_InputArtifactProperty, _aws_cdk_aws_codepipeline_CfnPipeline_OutputArtifactProperty, _aws_cdk_aws_codepipeline_CfnPipeline_StageDeclarationProperty, _aws_cdk_aws_codepipeline_CfnPipeline_StageTransitionProperty, _aws_cdk_aws_codepipeline_CfnWebhookProps, _aws_cdk_aws_codepipeline_CfnWebhook, _aws_cdk_aws_codepipeline_CfnWebhook_WebhookAuthConfigurationProperty, _aws_cdk_aws_codepipeline_CfnWebhook_WebhookFilterRuleProperty };