aws-solutions-constructs.aws-wafwebacl-cloudfront 2.95.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of aws-solutions-constructs.aws-wafwebacl-cloudfront might be problematic. Click here for more details.

Files changed (16) hide show
  1. aws_solutions_constructs_aws_wafwebacl_cloudfront-2.95.1/LICENSE +73 -0
  2. aws_solutions_constructs_aws_wafwebacl_cloudfront-2.95.1/MANIFEST.in +1 -0
  3. aws_solutions_constructs_aws_wafwebacl_cloudfront-2.95.1/PKG-INFO +28 -0
  4. aws_solutions_constructs_aws_wafwebacl_cloudfront-2.95.1/README.md +1 -0
  5. aws_solutions_constructs_aws_wafwebacl_cloudfront-2.95.1/pyproject.toml +9 -0
  6. aws_solutions_constructs_aws_wafwebacl_cloudfront-2.95.1/setup.cfg +4 -0
  7. aws_solutions_constructs_aws_wafwebacl_cloudfront-2.95.1/setup.py +64 -0
  8. aws_solutions_constructs_aws_wafwebacl_cloudfront-2.95.1/src/aws_solutions_constructs/aws_wafwebacl_cloudfront/__init__.py +199 -0
  9. aws_solutions_constructs_aws_wafwebacl_cloudfront-2.95.1/src/aws_solutions_constructs/aws_wafwebacl_cloudfront/_jsii/__init__.py +46 -0
  10. aws_solutions_constructs_aws_wafwebacl_cloudfront-2.95.1/src/aws_solutions_constructs/aws_wafwebacl_cloudfront/_jsii/aws-wafwebacl-cloudfront@2.95.1.jsii.tgz +0 -0
  11. aws_solutions_constructs_aws_wafwebacl_cloudfront-2.95.1/src/aws_solutions_constructs/aws_wafwebacl_cloudfront/py.typed +1 -0
  12. aws_solutions_constructs_aws_wafwebacl_cloudfront-2.95.1/src/aws_solutions_constructs.aws_wafwebacl_cloudfront.egg-info/PKG-INFO +28 -0
  13. aws_solutions_constructs_aws_wafwebacl_cloudfront-2.95.1/src/aws_solutions_constructs.aws_wafwebacl_cloudfront.egg-info/SOURCES.txt +14 -0
  14. aws_solutions_constructs_aws_wafwebacl_cloudfront-2.95.1/src/aws_solutions_constructs.aws_wafwebacl_cloudfront.egg-info/dependency_links.txt +1 -0
  15. aws_solutions_constructs_aws_wafwebacl_cloudfront-2.95.1/src/aws_solutions_constructs.aws_wafwebacl_cloudfront.egg-info/requires.txt +6 -0
  16. aws_solutions_constructs_aws_wafwebacl_cloudfront-2.95.1/src/aws_solutions_constructs.aws_wafwebacl_cloudfront.egg-info/top_level.txt +1 -0
@@ -0,0 +1,73 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.
10
+
11
+ "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.
12
+
13
+ "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
14
+
15
+ "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.
16
+
17
+ "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.
18
+
19
+ "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.
20
+
21
+ "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).
22
+
23
+ "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.
24
+
25
+ "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."
26
+
27
+ "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.
28
+
29
+ 2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.
30
+
31
+ 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.
32
+
33
+ 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:
34
+
35
+ (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and
36
+
37
+ (b) You must cause any modified files to carry prominent notices stating that You changed the files; and
38
+
39
+ (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and
40
+
41
+ (d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License.
42
+
43
+ You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.
44
+
45
+ 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.
46
+
47
+ 6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.
48
+
49
+ 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.
50
+
51
+ 8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.
52
+
53
+ 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.
54
+
55
+ END OF TERMS AND CONDITIONS
56
+
57
+ APPENDIX: How to apply the Apache License to your work.
58
+
59
+ To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives.
60
+
61
+ Copyright [yyyy] [name of copyright owner]
62
+
63
+ Licensed under the Apache License, Version 2.0 (the "License");
64
+ you may not use this file except in compliance with the License.
65
+ You may obtain a copy of the License at
66
+
67
+ http://www.apache.org/licenses/LICENSE-2.0
68
+
69
+ Unless required by applicable law or agreed to in writing, software
70
+ distributed under the License is distributed on an "AS IS" BASIS,
71
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
72
+ See the License for the specific language governing permissions and
73
+ limitations under the License.
@@ -0,0 +1 @@
1
+ include pyproject.toml
@@ -0,0 +1,28 @@
1
+ Metadata-Version: 2.1
2
+ Name: aws-solutions-constructs.aws-wafwebacl-cloudfront
3
+ Version: 2.95.1
4
+ Summary: CDK constructs for defining an AWS web WAF connected to Amazon CloudFront.
5
+ Home-page: https://github.com/awslabs/aws-solutions-constructs.git
6
+ Author: Amazon Web Services
7
+ License: Apache-2.0
8
+ Project-URL: Source, https://github.com/awslabs/aws-solutions-constructs.git
9
+ Classifier: Intended Audience :: Developers
10
+ Classifier: Operating System :: OS Independent
11
+ Classifier: Programming Language :: JavaScript
12
+ Classifier: Programming Language :: Python :: 3 :: Only
13
+ Classifier: Programming Language :: Python :: 3.9
14
+ Classifier: Programming Language :: Python :: 3.10
15
+ Classifier: Programming Language :: Python :: 3.11
16
+ Classifier: Typing :: Typed
17
+ Classifier: License :: OSI Approved
18
+ Requires-Python: ~=3.9
19
+ Description-Content-Type: text/markdown
20
+ License-File: LICENSE
21
+ Requires-Dist: aws-cdk-lib<3.0.0,>=2.223.0
22
+ Requires-Dist: aws-solutions-constructs.core==2.95.1
23
+ Requires-Dist: constructs<11.0.0,>=10.0.0
24
+ Requires-Dist: jsii<2.0.0,>=1.119.0
25
+ Requires-Dist: publication>=0.0.3
26
+ Requires-Dist: typeguard<4.3.0,>=2.13.3
27
+
28
+ Documentation for this pattern can be found [here](https://github.com/awslabs/aws-solutions-constructs/blob/main/source/patterns/%40aws-solutions-constructs/aws-wafwebacl-cloudfront/README.adoc)
@@ -0,0 +1 @@
1
+ Documentation for this pattern can be found [here](https://github.com/awslabs/aws-solutions-constructs/blob/main/source/patterns/%40aws-solutions-constructs/aws-wafwebacl-cloudfront/README.adoc)
@@ -0,0 +1,9 @@
1
+ [build-system]
2
+ requires = ["setuptools~=75.3.2", "build~=1.3.0"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [tool.pyright]
6
+ defineConstant = { DEBUG = true }
7
+ pythonVersion = "3.9"
8
+ pythonPlatform = "All"
9
+ reportSelfClsParameterName = false
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,64 @@
1
+ import json
2
+ import setuptools
3
+
4
+ kwargs = json.loads(
5
+ """
6
+ {
7
+ "name": "aws-solutions-constructs.aws-wafwebacl-cloudfront",
8
+ "version": "2.95.1",
9
+ "description": "CDK constructs for defining an AWS web WAF connected to Amazon CloudFront.",
10
+ "license": "Apache-2.0",
11
+ "url": "https://github.com/awslabs/aws-solutions-constructs.git",
12
+ "long_description_content_type": "text/markdown",
13
+ "author": "Amazon Web Services",
14
+ "bdist_wheel": {
15
+ "universal": true
16
+ },
17
+ "project_urls": {
18
+ "Source": "https://github.com/awslabs/aws-solutions-constructs.git"
19
+ },
20
+ "package_dir": {
21
+ "": "src"
22
+ },
23
+ "packages": [
24
+ "aws_solutions_constructs.aws_wafwebacl_cloudfront",
25
+ "aws_solutions_constructs.aws_wafwebacl_cloudfront._jsii"
26
+ ],
27
+ "package_data": {
28
+ "aws_solutions_constructs.aws_wafwebacl_cloudfront._jsii": [
29
+ "aws-wafwebacl-cloudfront@2.95.1.jsii.tgz"
30
+ ],
31
+ "aws_solutions_constructs.aws_wafwebacl_cloudfront": [
32
+ "py.typed"
33
+ ]
34
+ },
35
+ "python_requires": "~=3.9",
36
+ "install_requires": [
37
+ "aws-cdk-lib>=2.223.0, <3.0.0",
38
+ "aws-solutions-constructs.core==2.95.1",
39
+ "constructs>=10.0.0, <11.0.0",
40
+ "jsii>=1.119.0, <2.0.0",
41
+ "publication>=0.0.3",
42
+ "typeguard>=2.13.3,<4.3.0"
43
+ ],
44
+ "classifiers": [
45
+ "Intended Audience :: Developers",
46
+ "Operating System :: OS Independent",
47
+ "Programming Language :: JavaScript",
48
+ "Programming Language :: Python :: 3 :: Only",
49
+ "Programming Language :: Python :: 3.9",
50
+ "Programming Language :: Python :: 3.10",
51
+ "Programming Language :: Python :: 3.11",
52
+ "Typing :: Typed",
53
+ "License :: OSI Approved"
54
+ ],
55
+ "scripts": []
56
+ }
57
+ """
58
+ )
59
+
60
+ with open("README.md", encoding="utf8") as fp:
61
+ kwargs["long_description"] = fp.read()
62
+
63
+
64
+ setuptools.setup(**kwargs)
@@ -0,0 +1,199 @@
1
+ r'''
2
+ Documentation for this pattern can be found [here](https://github.com/awslabs/aws-solutions-constructs/blob/main/source/patterns/%40aws-solutions-constructs/aws-wafwebacl-cloudfront/README.adoc)
3
+ '''
4
+ from pkgutil import extend_path
5
+ __path__ = extend_path(__path__, __name__)
6
+
7
+ import abc
8
+ import builtins
9
+ import datetime
10
+ import enum
11
+ import typing
12
+
13
+ import jsii
14
+ import publication
15
+ import typing_extensions
16
+
17
+ import typeguard
18
+ from importlib.metadata import version as _metadata_package_version
19
+ TYPEGUARD_MAJOR_VERSION = int(_metadata_package_version('typeguard').split('.')[0])
20
+
21
+ def check_type(argname: str, value: object, expected_type: typing.Any) -> typing.Any:
22
+ if TYPEGUARD_MAJOR_VERSION <= 2:
23
+ return typeguard.check_type(argname=argname, value=value, expected_type=expected_type) # type:ignore
24
+ else:
25
+ if isinstance(value, jsii._reference_map.InterfaceDynamicProxy): # pyright: ignore [reportAttributeAccessIssue]
26
+ pass
27
+ else:
28
+ if TYPEGUARD_MAJOR_VERSION == 3:
29
+ typeguard.config.collection_check_strategy = typeguard.CollectionCheckStrategy.ALL_ITEMS # type:ignore
30
+ typeguard.check_type(value=value, expected_type=expected_type) # type:ignore
31
+ else:
32
+ typeguard.check_type(value=value, expected_type=expected_type, collection_check_strategy=typeguard.CollectionCheckStrategy.ALL_ITEMS) # type:ignore
33
+
34
+ from ._jsii import *
35
+
36
+ import aws_cdk.aws_cloudfront as _aws_cdk_aws_cloudfront_ceddda9d
37
+ import aws_cdk.aws_wafv2 as _aws_cdk_aws_wafv2_ceddda9d
38
+ import constructs as _constructs_77d1e7e8
39
+
40
+
41
+ class WafwebaclToCloudFront(
42
+ _constructs_77d1e7e8.Construct,
43
+ metaclass=jsii.JSIIMeta,
44
+ jsii_type="@aws-solutions-constructs/aws-wafwebacl-cloudfront.WafwebaclToCloudFront",
45
+ ):
46
+ '''
47
+ :summary: The WafwebaclToCloudFront class.
48
+ '''
49
+
50
+ def __init__(
51
+ self,
52
+ scope: _constructs_77d1e7e8.Construct,
53
+ id: builtins.str,
54
+ *,
55
+ existing_cloud_front_web_distribution: _aws_cdk_aws_cloudfront_ceddda9d.Distribution,
56
+ existing_webacl_obj: typing.Optional[_aws_cdk_aws_wafv2_ceddda9d.CfnWebACL] = None,
57
+ webacl_props: typing.Any = None,
58
+ ) -> None:
59
+ '''
60
+ :param scope: - represents the scope for all the resources.
61
+ :param id: - this is a a scope-unique id.
62
+ :param existing_cloud_front_web_distribution: The existing CloudFront instance that will be protected with the WAF web ACL. This construct changes the CloudFront distribution by directly manipulating the CloudFormation output, so this must be the Construct and cannot be changed to the Interface (IDistribution)
63
+ :param existing_webacl_obj: Existing instance of a WAF web ACL, an error will occur if this and props is set.
64
+ :param webacl_props: Optional user-provided props to override the default props for the AWS WAF web ACL. Default: - Default properties are used.
65
+
66
+ :access: public
67
+ :summary: Constructs a new instance of the WafwebaclToCloudFront class.
68
+ '''
69
+ if __debug__:
70
+ type_hints = typing.get_type_hints(_typecheckingstub__d5d8bd547f935ab6b8d3616094fcce5144f3e97e2b6bc2efff5fc3b86536057b)
71
+ check_type(argname="argument scope", value=scope, expected_type=type_hints["scope"])
72
+ check_type(argname="argument id", value=id, expected_type=type_hints["id"])
73
+ props = WafwebaclToCloudFrontProps(
74
+ existing_cloud_front_web_distribution=existing_cloud_front_web_distribution,
75
+ existing_webacl_obj=existing_webacl_obj,
76
+ webacl_props=webacl_props,
77
+ )
78
+
79
+ jsii.create(self.__class__, self, [scope, id, props])
80
+
81
+ @builtins.property
82
+ @jsii.member(jsii_name="cloudFrontWebDistribution")
83
+ def cloud_front_web_distribution(
84
+ self,
85
+ ) -> _aws_cdk_aws_cloudfront_ceddda9d.Distribution:
86
+ return typing.cast(_aws_cdk_aws_cloudfront_ceddda9d.Distribution, jsii.get(self, "cloudFrontWebDistribution"))
87
+
88
+ @builtins.property
89
+ @jsii.member(jsii_name="webacl")
90
+ def webacl(self) -> _aws_cdk_aws_wafv2_ceddda9d.CfnWebACL:
91
+ return typing.cast(_aws_cdk_aws_wafv2_ceddda9d.CfnWebACL, jsii.get(self, "webacl"))
92
+
93
+
94
+ @jsii.data_type(
95
+ jsii_type="@aws-solutions-constructs/aws-wafwebacl-cloudfront.WafwebaclToCloudFrontProps",
96
+ jsii_struct_bases=[],
97
+ name_mapping={
98
+ "existing_cloud_front_web_distribution": "existingCloudFrontWebDistribution",
99
+ "existing_webacl_obj": "existingWebaclObj",
100
+ "webacl_props": "webaclProps",
101
+ },
102
+ )
103
+ class WafwebaclToCloudFrontProps:
104
+ def __init__(
105
+ self,
106
+ *,
107
+ existing_cloud_front_web_distribution: _aws_cdk_aws_cloudfront_ceddda9d.Distribution,
108
+ existing_webacl_obj: typing.Optional[_aws_cdk_aws_wafv2_ceddda9d.CfnWebACL] = None,
109
+ webacl_props: typing.Any = None,
110
+ ) -> None:
111
+ '''
112
+ :param existing_cloud_front_web_distribution: The existing CloudFront instance that will be protected with the WAF web ACL. This construct changes the CloudFront distribution by directly manipulating the CloudFormation output, so this must be the Construct and cannot be changed to the Interface (IDistribution)
113
+ :param existing_webacl_obj: Existing instance of a WAF web ACL, an error will occur if this and props is set.
114
+ :param webacl_props: Optional user-provided props to override the default props for the AWS WAF web ACL. Default: - Default properties are used.
115
+
116
+ :summary: The properties for the WafwebaclToCloudFront class.
117
+ '''
118
+ if __debug__:
119
+ type_hints = typing.get_type_hints(_typecheckingstub__40a0cf28e1b529b5efb8af1e8d3e34e9c89ef520a8810caf4b1ccce40fff2a84)
120
+ check_type(argname="argument existing_cloud_front_web_distribution", value=existing_cloud_front_web_distribution, expected_type=type_hints["existing_cloud_front_web_distribution"])
121
+ check_type(argname="argument existing_webacl_obj", value=existing_webacl_obj, expected_type=type_hints["existing_webacl_obj"])
122
+ check_type(argname="argument webacl_props", value=webacl_props, expected_type=type_hints["webacl_props"])
123
+ self._values: typing.Dict[builtins.str, typing.Any] = {
124
+ "existing_cloud_front_web_distribution": existing_cloud_front_web_distribution,
125
+ }
126
+ if existing_webacl_obj is not None:
127
+ self._values["existing_webacl_obj"] = existing_webacl_obj
128
+ if webacl_props is not None:
129
+ self._values["webacl_props"] = webacl_props
130
+
131
+ @builtins.property
132
+ def existing_cloud_front_web_distribution(
133
+ self,
134
+ ) -> _aws_cdk_aws_cloudfront_ceddda9d.Distribution:
135
+ '''The existing CloudFront instance that will be protected with the WAF web ACL.
136
+
137
+ This construct changes the CloudFront distribution by directly manipulating
138
+ the CloudFormation output, so this must be the Construct and cannot be
139
+ changed to the Interface (IDistribution)
140
+ '''
141
+ result = self._values.get("existing_cloud_front_web_distribution")
142
+ assert result is not None, "Required property 'existing_cloud_front_web_distribution' is missing"
143
+ return typing.cast(_aws_cdk_aws_cloudfront_ceddda9d.Distribution, result)
144
+
145
+ @builtins.property
146
+ def existing_webacl_obj(
147
+ self,
148
+ ) -> typing.Optional[_aws_cdk_aws_wafv2_ceddda9d.CfnWebACL]:
149
+ '''Existing instance of a WAF web ACL, an error will occur if this and props is set.'''
150
+ result = self._values.get("existing_webacl_obj")
151
+ return typing.cast(typing.Optional[_aws_cdk_aws_wafv2_ceddda9d.CfnWebACL], result)
152
+
153
+ @builtins.property
154
+ def webacl_props(self) -> typing.Any:
155
+ '''Optional user-provided props to override the default props for the AWS WAF web ACL.
156
+
157
+ :default: - Default properties are used.
158
+ '''
159
+ result = self._values.get("webacl_props")
160
+ return typing.cast(typing.Any, result)
161
+
162
+ def __eq__(self, rhs: typing.Any) -> builtins.bool:
163
+ return isinstance(rhs, self.__class__) and rhs._values == self._values
164
+
165
+ def __ne__(self, rhs: typing.Any) -> builtins.bool:
166
+ return not (rhs == self)
167
+
168
+ def __repr__(self) -> str:
169
+ return "WafwebaclToCloudFrontProps(%s)" % ", ".join(
170
+ k + "=" + repr(v) for k, v in self._values.items()
171
+ )
172
+
173
+
174
+ __all__ = [
175
+ "WafwebaclToCloudFront",
176
+ "WafwebaclToCloudFrontProps",
177
+ ]
178
+
179
+ publication.publish()
180
+
181
+ def _typecheckingstub__d5d8bd547f935ab6b8d3616094fcce5144f3e97e2b6bc2efff5fc3b86536057b(
182
+ scope: _constructs_77d1e7e8.Construct,
183
+ id: builtins.str,
184
+ *,
185
+ existing_cloud_front_web_distribution: _aws_cdk_aws_cloudfront_ceddda9d.Distribution,
186
+ existing_webacl_obj: typing.Optional[_aws_cdk_aws_wafv2_ceddda9d.CfnWebACL] = None,
187
+ webacl_props: typing.Any = None,
188
+ ) -> None:
189
+ """Type checking stubs"""
190
+ pass
191
+
192
+ def _typecheckingstub__40a0cf28e1b529b5efb8af1e8d3e34e9c89ef520a8810caf4b1ccce40fff2a84(
193
+ *,
194
+ existing_cloud_front_web_distribution: _aws_cdk_aws_cloudfront_ceddda9d.Distribution,
195
+ existing_webacl_obj: typing.Optional[_aws_cdk_aws_wafv2_ceddda9d.CfnWebACL] = None,
196
+ webacl_props: typing.Any = None,
197
+ ) -> None:
198
+ """Type checking stubs"""
199
+ pass
@@ -0,0 +1,46 @@
1
+ from pkgutil import extend_path
2
+ __path__ = extend_path(__path__, __name__)
3
+
4
+ import abc
5
+ import builtins
6
+ import datetime
7
+ import enum
8
+ import typing
9
+
10
+ import jsii
11
+ import publication
12
+ import typing_extensions
13
+
14
+ import typeguard
15
+ from importlib.metadata import version as _metadata_package_version
16
+ TYPEGUARD_MAJOR_VERSION = int(_metadata_package_version('typeguard').split('.')[0])
17
+
18
+ def check_type(argname: str, value: object, expected_type: typing.Any) -> typing.Any:
19
+ if TYPEGUARD_MAJOR_VERSION <= 2:
20
+ return typeguard.check_type(argname=argname, value=value, expected_type=expected_type) # type:ignore
21
+ else:
22
+ if isinstance(value, jsii._reference_map.InterfaceDynamicProxy): # pyright: ignore [reportAttributeAccessIssue]
23
+ pass
24
+ else:
25
+ if TYPEGUARD_MAJOR_VERSION == 3:
26
+ typeguard.config.collection_check_strategy = typeguard.CollectionCheckStrategy.ALL_ITEMS # type:ignore
27
+ typeguard.check_type(value=value, expected_type=expected_type) # type:ignore
28
+ else:
29
+ typeguard.check_type(value=value, expected_type=expected_type, collection_check_strategy=typeguard.CollectionCheckStrategy.ALL_ITEMS) # type:ignore
30
+
31
+ import aws_cdk._jsii
32
+ import aws_solutions_constructs.core._jsii
33
+ import constructs._jsii
34
+
35
+ __jsii_assembly__ = jsii.JSIIAssembly.load(
36
+ "@aws-solutions-constructs/aws-wafwebacl-cloudfront",
37
+ "2.95.1",
38
+ __name__[0:-6],
39
+ "aws-wafwebacl-cloudfront@2.95.1.jsii.tgz",
40
+ )
41
+
42
+ __all__ = [
43
+ "__jsii_assembly__",
44
+ ]
45
+
46
+ publication.publish()
@@ -0,0 +1,28 @@
1
+ Metadata-Version: 2.1
2
+ Name: aws-solutions-constructs.aws-wafwebacl-cloudfront
3
+ Version: 2.95.1
4
+ Summary: CDK constructs for defining an AWS web WAF connected to Amazon CloudFront.
5
+ Home-page: https://github.com/awslabs/aws-solutions-constructs.git
6
+ Author: Amazon Web Services
7
+ License: Apache-2.0
8
+ Project-URL: Source, https://github.com/awslabs/aws-solutions-constructs.git
9
+ Classifier: Intended Audience :: Developers
10
+ Classifier: Operating System :: OS Independent
11
+ Classifier: Programming Language :: JavaScript
12
+ Classifier: Programming Language :: Python :: 3 :: Only
13
+ Classifier: Programming Language :: Python :: 3.9
14
+ Classifier: Programming Language :: Python :: 3.10
15
+ Classifier: Programming Language :: Python :: 3.11
16
+ Classifier: Typing :: Typed
17
+ Classifier: License :: OSI Approved
18
+ Requires-Python: ~=3.9
19
+ Description-Content-Type: text/markdown
20
+ License-File: LICENSE
21
+ Requires-Dist: aws-cdk-lib<3.0.0,>=2.223.0
22
+ Requires-Dist: aws-solutions-constructs.core==2.95.1
23
+ Requires-Dist: constructs<11.0.0,>=10.0.0
24
+ Requires-Dist: jsii<2.0.0,>=1.119.0
25
+ Requires-Dist: publication>=0.0.3
26
+ Requires-Dist: typeguard<4.3.0,>=2.13.3
27
+
28
+ Documentation for this pattern can be found [here](https://github.com/awslabs/aws-solutions-constructs/blob/main/source/patterns/%40aws-solutions-constructs/aws-wafwebacl-cloudfront/README.adoc)
@@ -0,0 +1,14 @@
1
+ LICENSE
2
+ MANIFEST.in
3
+ README.md
4
+ pyproject.toml
5
+ setup.py
6
+ src/aws_solutions_constructs.aws_wafwebacl_cloudfront.egg-info/PKG-INFO
7
+ src/aws_solutions_constructs.aws_wafwebacl_cloudfront.egg-info/SOURCES.txt
8
+ src/aws_solutions_constructs.aws_wafwebacl_cloudfront.egg-info/dependency_links.txt
9
+ src/aws_solutions_constructs.aws_wafwebacl_cloudfront.egg-info/requires.txt
10
+ src/aws_solutions_constructs.aws_wafwebacl_cloudfront.egg-info/top_level.txt
11
+ src/aws_solutions_constructs/aws_wafwebacl_cloudfront/__init__.py
12
+ src/aws_solutions_constructs/aws_wafwebacl_cloudfront/py.typed
13
+ src/aws_solutions_constructs/aws_wafwebacl_cloudfront/_jsii/__init__.py
14
+ src/aws_solutions_constructs/aws_wafwebacl_cloudfront/_jsii/aws-wafwebacl-cloudfront@2.95.1.jsii.tgz
@@ -0,0 +1,6 @@
1
+ aws-cdk-lib<3.0.0,>=2.223.0
2
+ aws-solutions-constructs.core==2.95.1
3
+ constructs<11.0.0,>=10.0.0
4
+ jsii<2.0.0,>=1.119.0
5
+ publication>=0.0.3
6
+ typeguard<4.3.0,>=2.13.3