UNPKG

5.85 kBJavaScriptView Raw
1function _aws_cdk_aws_certificatemanager_ICertificate(p) {
2}
3function _aws_cdk_aws_certificatemanager_CertificateProps(p) {
4 if (p == null)
5 return;
6 visitedObjects.add(p);
7 try {
8 if (!visitedObjects.has(p.validation))
9 _aws_cdk_aws_certificatemanager_CertificateValidation(p.validation);
10 if ("validationDomains" in p)
11 print("@aws-cdk/aws-certificatemanager.CertificateProps#validationDomains", "use `validation` instead.");
12 if ("validationMethod" in p)
13 print("@aws-cdk/aws-certificatemanager.CertificateProps#validationMethod", "use `validation` instead.");
14 if (!visitedObjects.has(p.validationMethod))
15 _aws_cdk_aws_certificatemanager_ValidationMethod(p.validationMethod);
16 }
17 finally {
18 visitedObjects.delete(p);
19 }
20}
21function _aws_cdk_aws_certificatemanager_CertificationValidationProps(p) {
22 if (p == null)
23 return;
24 visitedObjects.add(p);
25 try {
26 if (p.hostedZones != null)
27 for (const o of Object.values(p.hostedZones))
28 if (!visitedObjects.has(o))
29 require("@aws-cdk/aws-route53/.warnings.jsii.js")._aws_cdk_aws_route53_IHostedZone(o);
30 if (!visitedObjects.has(p.method))
31 _aws_cdk_aws_certificatemanager_ValidationMethod(p.method);
32 }
33 finally {
34 visitedObjects.delete(p);
35 }
36}
37function _aws_cdk_aws_certificatemanager_CertificateValidation(p) {
38}
39function _aws_cdk_aws_certificatemanager_Certificate(p) {
40}
41function _aws_cdk_aws_certificatemanager_ValidationMethod(p) {
42}
43function _aws_cdk_aws_certificatemanager_DnsValidatedCertificateProps(p) {
44 if (p == null)
45 return;
46 visitedObjects.add(p);
47 try {
48 if (!visitedObjects.has(p.validation))
49 _aws_cdk_aws_certificatemanager_CertificateValidation(p.validation);
50 if ("validationDomains" in p)
51 print("@aws-cdk/aws-certificatemanager.CertificateProps#validationDomains", "use `validation` instead.");
52 if ("validationMethod" in p)
53 print("@aws-cdk/aws-certificatemanager.CertificateProps#validationMethod", "use `validation` instead.");
54 if (!visitedObjects.has(p.validationMethod))
55 _aws_cdk_aws_certificatemanager_ValidationMethod(p.validationMethod);
56 }
57 finally {
58 visitedObjects.delete(p);
59 }
60}
61function _aws_cdk_aws_certificatemanager_DnsValidatedCertificate(p) {
62}
63function _aws_cdk_aws_certificatemanager_PrivateCertificateProps(p) {
64}
65function _aws_cdk_aws_certificatemanager_PrivateCertificate(p) {
66}
67function _aws_cdk_aws_certificatemanager_CfnAccountProps(p) {
68 if (p == null)
69 return;
70 visitedObjects.add(p);
71 try {
72 if (!visitedObjects.has(p.expiryEventsConfiguration))
73 _aws_cdk_aws_certificatemanager_CfnAccount_ExpiryEventsConfigurationProperty(p.expiryEventsConfiguration);
74 }
75 finally {
76 visitedObjects.delete(p);
77 }
78}
79function _aws_cdk_aws_certificatemanager_CfnAccount(p) {
80}
81function _aws_cdk_aws_certificatemanager_CfnAccount_ExpiryEventsConfigurationProperty(p) {
82}
83function _aws_cdk_aws_certificatemanager_CfnCertificateProps(p) {
84 if (p == null)
85 return;
86 visitedObjects.add(p);
87 try {
88 if (p.tags != null)
89 for (const o of p.tags)
90 if (!visitedObjects.has(o))
91 require("@aws-cdk/core/.warnings.jsii.js")._aws_cdk_core_CfnTag(o);
92 }
93 finally {
94 visitedObjects.delete(p);
95 }
96}
97function _aws_cdk_aws_certificatemanager_CfnCertificate(p) {
98}
99function _aws_cdk_aws_certificatemanager_CfnCertificate_DomainValidationOptionProperty(p) {
100}
101function print(name, deprecationMessage) {
102 const deprecated = process.env.JSII_DEPRECATED;
103 const deprecationMode = ["warn", "fail", "quiet"].includes(deprecated) ? deprecated : "warn";
104 const message = `${name} is deprecated.\n ${deprecationMessage.trim()}\n This API will be removed in the next major release.`;
105 switch (deprecationMode) {
106 case "fail":
107 throw new DeprecationError(message);
108 case "warn":
109 console.warn("[WARNING]", message);
110 break;
111 }
112}
113function getPropertyDescriptor(obj, prop) {
114 const descriptor = Object.getOwnPropertyDescriptor(obj, prop);
115 if (descriptor) {
116 return descriptor;
117 }
118 const proto = Object.getPrototypeOf(obj);
119 const prototypeDescriptor = proto && getPropertyDescriptor(proto, prop);
120 if (prototypeDescriptor) {
121 return prototypeDescriptor;
122 }
123 return {};
124}
125const visitedObjects = new Set();
126class DeprecationError extends Error {
127 constructor(...args) {
128 super(...args);
129 Object.defineProperty(this, "name", {
130 configurable: false,
131 enumerable: true,
132 value: "DeprecationError",
133 writable: false,
134 });
135 }
136}
137module.exports = { print, getPropertyDescriptor, DeprecationError, _aws_cdk_aws_certificatemanager_ICertificate, _aws_cdk_aws_certificatemanager_CertificateProps, _aws_cdk_aws_certificatemanager_CertificationValidationProps, _aws_cdk_aws_certificatemanager_CertificateValidation, _aws_cdk_aws_certificatemanager_Certificate, _aws_cdk_aws_certificatemanager_ValidationMethod, _aws_cdk_aws_certificatemanager_DnsValidatedCertificateProps, _aws_cdk_aws_certificatemanager_DnsValidatedCertificate, _aws_cdk_aws_certificatemanager_PrivateCertificateProps, _aws_cdk_aws_certificatemanager_PrivateCertificate, _aws_cdk_aws_certificatemanager_CfnAccountProps, _aws_cdk_aws_certificatemanager_CfnAccount, _aws_cdk_aws_certificatemanager_CfnAccount_ExpiryEventsConfigurationProperty, _aws_cdk_aws_certificatemanager_CfnCertificateProps, _aws_cdk_aws_certificatemanager_CfnCertificate, _aws_cdk_aws_certificatemanager_CfnCertificate_DomainValidationOptionProperty };